MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / _iter_jsonl_results

Function _iter_jsonl_results

analysis/loader.py:123–135  ·  view source on GitHub ↗
(path: Path, benchmark_index: dict[str, dict[str, Any]])

Source from the content-addressed store, hash-verified

121
122
123def _iter_jsonl_results(path: Path, benchmark_index: dict[str, dict[str, Any]]) -> Iterator[NormalizedResult]:
124 with path.open("r", encoding="utf-8") as stream:
125 for line in stream:
126 line = line.strip()
127 if not line:
128 continue
129 try:
130 payload = json.loads(line)
131 except json.JSONDecodeError:
132 continue
133 if not isinstance(payload, dict):
134 continue
135 yield from _normalize_payload(payload, path, benchmark_index)
136
137
138def _normalize_payload(

Callers 1

iter_normalized_resultsFunction · 0.85

Calls 1

_normalize_payloadFunction · 0.85

Tested by

no test coverage detected