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

Function _extract

tests/test_csharp_explicit_interface.py:30–40  ·  view source on GitHub ↗
(tmp_path, files: dict[str, str], cache_root: Path | None = None)

Source from the content-addressed store, hash-verified

28
29
30def _extract(tmp_path, files: dict[str, str], cache_root: Path | None = None):
31 for name, body in files.items():
32 p = tmp_path / name
33 p.parent.mkdir(parents=True, exist_ok=True)
34 p.write_text(body)
35 old = os.getcwd()
36 try:
37 os.chdir(tmp_path)
38 return extract([Path(n) for n in files], cache_root=cache_root or Path(tempfile.mkdtemp()))
39 finally:
40 os.chdir(old)
41
42
43def _methods(result, name: str) -> list[dict]:

Calls 2

extractFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected