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

Function load_jsonl

experiments/benchmark/evaluate_simulation_metrics.py:35–47  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected