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

Function iter_jsonl

experiments/benchmark/prepare_hf_benchmark_package.py:18–23  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

16
17
18def iter_jsonl(path: Path):
19 with path.open("r", encoding="utf-8") as handle:
20 for line in handle:
21 line = line.strip()
22 if line:
23 yield json.loads(line)
24
25
26def write_jsonl(path: Path, rows) -> int:

Callers 2

paper_rowsFunction · 0.70
label_rowsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected