MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / index

Function index

atomic-core/examples/semantic_codec_lab/report.py:13–20  ·  view source on GitHub ↗
(document)

Source from the content-addressed store, hash-verified

11
12
13def index(document):
14 if document.get("failures"):
15 raise ValueError("refusing a partial/failed benchmark")
16 rows = document["rows"]
17 keyed = {row["source_hash"]: row for row in rows}
18 if not rows or len(keyed) != len(rows):
19 raise ValueError("empty corpus or duplicate source hashes")
20 return keyed
21
22
23def summarize(semantic, graph, raw=None):

Callers 2

summarizeFunction · 0.85
observationMethod · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected