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

Function _extract

tests/test_ruby_underscore_ids.py:16–23  ·  view source on GitHub ↗
(tmp_path: Path, files: dict[str, str])

Source from the content-addressed store, hash-verified

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