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

Function _extract

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

Source from the content-addressed store, hash-verified

18
19
20def _extract(tmp_path, files: dict[str, str]):
21 for name, body in files.items():
22 (tmp_path / name).write_text(body)
23 old = os.getcwd()
24 try:
25 os.chdir(tmp_path)
26 return extract([Path(n) for n in files], cache_root=Path(tempfile.mkdtemp()))
27 finally:
28 os.chdir(old)
29
30
31def _pairs(r, relation):

Calls 2

extractFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected