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

Function is_probably_boilerplate

scripts/afml_semantic_index.py:86–94  ·  view source on GitHub ↗
(line: str)

Source from the content-addressed store, hash-verified

84
85
86def is_probably_boilerplate(line: str) -> bool:
87 s = line.strip()
88 if not s:
89 return True
90 if RE_PAGE_ONLY.match(s):
91 return True
92 if len(s) < 3:
93 return True
94 return False
95
96
97def extract_pages(pdf_path: Path) -> list[dict[str, Any]]:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected