MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / _count_term_hits

Function _count_term_hits

scripts/common.py:1387–1388  ·  view source on GitHub ↗
(terms: list[str], text: str)

Source from the content-addressed store, hash-verified

1385
1386
1387def _count_term_hits(terms: list[str], text: str) -> int:
1388 return sum(1 for term in terms if _term_in_text(term, text))
1389
1390
1391def _domain_route_label(rule: dict[str, Any]) -> str:

Callers 2

domain_name_scoreFunction · 0.85

Calls 1

_term_in_textFunction · 0.85

Tested by

no test coverage detected