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

Function _extract

tests/test_python_builtin_call_shadowing_4989.py:21–28  ·  view source on GitHub ↗
(tmp_path: Path, files: dict[str, str])

Source from the content-addressed store, hash-verified

19
20
21def _extract(tmp_path: Path, files: dict[str, str]) -> dict:
22 paths = []
23 for rel, text in files.items():
24 path = tmp_path / rel
25 path.parent.mkdir(parents=True, exist_ok=True)
26 path.write_text(text, encoding="utf-8")
27 paths.append(path)
28 return extract(paths, cache_root=tmp_path / ".cache", root=tmp_path)
29
30
31def _calls(result: dict, source_file: str, target_file: str) -> list[dict]:

Calls 2

extractFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected