MCPcopy Create free account
hub / github.com/apple/ml-streambridge / load_jsonl

Function load_jsonl

eval/utils.py:175–181  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

173 json.dump(file, f, indent=2)
174
175def load_jsonl(path):
176 data = []
177 with open(path, 'r') as file:
178 for line in file:
179 json_object = json.loads(line)
180 data.append(json_object)
181 return data
182
183def load_pkl(path):
184 with open(path, 'rb') as f:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected