MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _extract

Function _extract

tests/test_markdown_code_spans.py:80–91  ·  view source on GitHub ↗
(tmp_path, files: dict[str, str])

Source from the content-addressed store, hash-verified

78
79
80def _extract(tmp_path, files: dict[str, str]):
81 for name, body in files.items():
82 p = tmp_path / name
83 p.parent.mkdir(parents=True, exist_ok=True)
84 p.write_text(body)
85 old = os.getcwd()
86 try:
87 os.chdir(tmp_path)
88 return extract([Path(n) for n in files],
89 cache_root=tmp_path / ".cache", parallel=False)
90 finally:
91 os.chdir(old)
92
93
94def _node(r, label, source_contains=""):

Calls 2

extractFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected