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

Function section_text_with_source

scripts/extract_evidence.py:95–105  ·  view source on GitHub ↗
(
    section_map: dict[str, str],
    section: str,
    fallback: str = "",
)

Source from the content-addressed store, hash-verified

93
94
95def section_text_with_source(
96 section_map: dict[str, str],
97 section: str,
98 fallback: str = "",
99) -> tuple[str, str]:
100 text = section_map.get(section, "")
101 if text:
102 return text, section
103 if fallback:
104 return fallback, "abstract"
105 return "", ""
106
107
108def build_section_extraction_coverage(

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected