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

Function load_jsonl

experiments/benchmark/export_human_audit_subset.py:38–48  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

36
37
38def load_jsonl(path: Path) -> List[Dict[str, Any]]:
39 rows: List[Dict[str, Any]] = []
40 with path.open("r", encoding="utf-8") as f:
41 for line in f:
42 line = line.strip()
43 if not line:
44 continue
45 payload = json.loads(line)
46 if isinstance(payload, dict):
47 rows.append(payload)
48 return rows
49
50
51def truncate(value: Any, limit: int) -> str:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected