MCPcopy Create free account
hub / github.com/Open-Quant/openquant / chapter_eq

Function chapter_eq

scripts/afml_docs_loop.py:112–116  ·  view source on GitHub ↗
(left: str, right: str)

Source from the content-addressed store, hash-verified

110
111
112def chapter_eq(left: str, right: str) -> bool:
113 def _norm(v: str) -> str:
114 return re.sub(r"\s+", " ", v.strip().upper())
115
116 return _norm(left) == _norm(right)
117
118
119def filter_hits_to_chapter(hits: list[dict[str, Any]], chapter: str) -> list[dict[str, Any]]:

Callers 2

filter_hits_to_chapterFunction · 0.85
cmd_evidenceFunction · 0.85

Calls 1

_normFunction · 0.70

Tested by

no test coverage detected