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

Function _extract

tests/test_java_anonymous_class.py:22–33  ·  view source on GitHub ↗
(tmp_path, files: dict[str, str])

Source from the content-addressed store, hash-verified

20
21
22def _extract(tmp_path, files: dict[str, str]):
23 for name, body in files.items():
24 p = tmp_path / name
25 p.parent.mkdir(parents=True, exist_ok=True)
26 p.write_text(body)
27 old = os.getcwd()
28 try:
29 os.chdir(tmp_path)
30 r = extract([Path(n) for n in files], cache_root=tmp_path / ".cache")
31 finally:
32 os.chdir(old)
33 return r
34
35
36def _edges(r, relation):

Calls 2

extractFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected