MCPcopy Index your code
hub / github.com/PRIME-RL/PRIME / load_jsonl

Function load_jsonl

eval/Math/Qwen25-Math/evaluation/utils.py:20–27  ·  view source on GitHub ↗
(file: Union[str, Path])

Source from the content-addressed store, hash-verified

18
19
20def load_jsonl(file: Union[str, Path]) -> Iterable[Any]:
21 with open(file, "r", encoding="utf-8") as f:
22 for line in f:
23 try:
24 yield json.loads(line)
25 except:
26 print("Error in loading:", line)
27 exit()
28
29
30def save_jsonl(samples, save_path):

Callers 5

eval_rm_k_metricsFunction · 0.90
eval_maj_k_metricsFunction · 0.90
load_dataFunction · 0.90
prepare_dataFunction · 0.90
evaluateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected