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

Function make_inputs

tests/test_report.py:10–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8FIXTURES = Path(__file__).parent / "fixtures"
9
10def make_inputs():
11 extraction = json.loads((FIXTURES / "extraction.json").read_text())
12 G = build_from_json(extraction)
13 communities = cluster(G)
14 cohesion = score_all(G, communities)
15 labels = {cid: f"Community {cid}" for cid in communities}
16 gods = god_nodes(G)
17 surprises = surprising_connections(G)
18 detection = {"total_files": 4, "total_words": 62400, "needs_graph": True, "warning": None}
19 tokens = {"input": extraction["input_tokens"], "output": extraction["output_tokens"]}
20 return G, communities, cohesion, labels, gods, surprises, detection, tokens
21
22def test_report_contains_header():
23 G, communities, cohesion, labels, gods, surprises, detection, tokens = make_inputs()

Calls 5

build_from_jsonFunction · 0.90
clusterFunction · 0.90
score_allFunction · 0.90
god_nodesFunction · 0.90
surprising_connectionsFunction · 0.90

Tested by

no test coverage detected