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

Function _call_pairs

tests/test_multilang.py:16–21  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

14 return [n["label"] for n in result["nodes"]]
15
16def _call_pairs(result):
17 node_by_id = {n["id"]: n["label"] for n in result["nodes"]}
18 return {
19 (node_by_id.get(e["source"], e["source"]), node_by_id.get(e["target"], e["target"]))
20 for e in result["edges"] if e["relation"] == "calls"
21 }
22
23def _confidences(result):
24 return {e["confidence"] for e in result["edges"]}

Callers 3

test_ts_emits_callsFunction · 0.85
test_go_emits_callsFunction · 0.85
test_rust_emits_callsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected