MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / iter_jsonl

Function iter_jsonl

experiments/benchmark/evaluate_benchmark_predictions.py:24–29  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

22
23
24def iter_jsonl(path: Path):
25 with path.open("r", encoding="utf-8-sig") as handle:
26 for line in handle:
27 line = line.strip()
28 if line:
29 yield json.loads(line)
30
31
32def safe_div(num: float, den: float) -> float:

Callers 2

load_labelsFunction · 0.70
load_predictionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected