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

Function _extract

tests/test_lua_underscore_ids.py:17–24  ·  view source on GitHub ↗
(tmp_path: Path, files: dict[str, str])

Source from the content-addressed store, hash-verified

15
16
17def _extract(tmp_path: Path, files: dict[str, str]) -> dict:
18 paths = []
19 for rel, text in files.items():
20 p = tmp_path / rel
21 p.parent.mkdir(parents=True, exist_ok=True)
22 p.write_text(text, encoding="utf-8")
23 paths.append(p)
24 return extract(paths, cache_root=tmp_path, root=tmp_path)
25
26
27def _ids_by_label(result: dict, source_file: str) -> dict[str, list[str]]:

Calls 2

extractFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected