MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / _score

Method _score

claw-code/src/runtime.py:186–192  ·  view source on GitHub ↗
(tokens: set[str], module: PortingModule)

Source from the content-addressed store, hash-verified

184
185 @staticmethod
186 def _score(tokens: set[str], module: PortingModule) -> int:
187 haystacks = [module.name.lower(), module.source_hint.lower(), module.responsibility.lower()]
188 score = 0
189 for token in tokens:
190 if any(token in haystack for haystack in haystacks):
191 score += 1
192 return score

Callers 1

_collect_matchesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected