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

Function _graph

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

Source from the content-addressed store, hash-verified

14
15
16def _graph(tmp_path: Path, files: dict[str, str]):
17 paths = []
18 for name, body in files.items():
19 p = tmp_path / name
20 p.parent.mkdir(parents=True, exist_ok=True)
21 p.write_text(body, encoding="utf-8")
22 paths.append(p)
23 r = extract(paths, cache_root=tmp_path / "graphify-out")
24 label = {n["id"]: n["label"] for n in r["nodes"]}
25 calls = {
26 (label.get(e["source"]), label.get(e["target"]))
27 for e in r["edges"]
28 if e["relation"] == "calls"
29 }
30 return r, calls
31
32
33MODEL = (

Calls 3

extractFunction · 0.90
itemsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected