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

Function iter_normalized_results

analysis/loader.py:94–102  ·  view source on GitHub ↗
(
    paths: str | Path | Sequence[str | Path],
    *,
    benchmark_files: Sequence[str | Path] | None = None,
)

Source from the content-addressed store, hash-verified

92
93
94def iter_normalized_results(
95 paths: str | Path | Sequence[str | Path],
96 *,
97 benchmark_files: Sequence[str | Path] | None = None,
98) -> Iterator[NormalizedResult]:
99 benchmark_index = _load_benchmark_index(benchmark_files or [])
100 for input_path in _coerce_input_paths(paths):
101 for jsonl_path in _iter_jsonl_files(input_path):
102 yield from _iter_jsonl_results(jsonl_path, benchmark_index)
103
104
105def _coerce_input_paths(paths: str | Path | Sequence[str | Path]) -> list[Path]:

Callers 1

load_normalized_resultsFunction · 0.85

Calls 4

_load_benchmark_indexFunction · 0.85
_coerce_input_pathsFunction · 0.85
_iter_jsonl_filesFunction · 0.85
_iter_jsonl_resultsFunction · 0.85

Tested by

no test coverage detected