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

Function load_jsonl

experiments/drift/build_drift_adaptation_experiment.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 handle:
40 for line in handle:
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 parse_date(value: Any) -> Optional[datetime]:

Callers 3

group_episode_rowsFunction · 0.70
read_episode_metadataFunction · 0.70
read_drift_eventsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected