MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / load_summary

Function load_summary

eval/compare_results.py:49–66  ·  view source on GitHub ↗
(path: Path, label: str)

Source from the content-addressed store, hash-verified

47
48
49def load_summary(path: Path, label: str) -> Summary:
50 raw = json.loads(path.read_text(encoding="utf-8"))
51 return Summary(
52 label=label,
53 path=path,
54 total=int(raw.get("total_instances", 0)),
55 submitted=int(raw.get("submitted_instances", 0)),
56 completed=int(raw.get("completed_instances", 0)),
57 resolved=int(raw.get("resolved_instances", 0)),
58 unresolved=int(raw.get("unresolved_instances", 0)),
59 empty_patch=int(raw.get("empty_patch_instances", 0)),
60 error=int(raw.get("error_instances", 0)),
61 resolved_ids=frozenset(raw.get("resolved_ids", [])),
62 unresolved_ids=frozenset(raw.get("unresolved_ids", [])),
63 empty_patch_ids=frozenset(raw.get("empty_patch_ids", [])),
64 error_ids=frozenset(raw.get("error_ids", [])),
65 submitted_ids=frozenset(raw.get("submitted_ids", [])),
66 )
67
68
69def _pct(n: int, d: int) -> str:

Callers 2

cmd_runFunction · 0.90
mainFunction · 0.85

Calls 2

SummaryClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected