(path)
| 173 | json.dump(file, f, indent=2) |
| 174 | |
| 175 | def 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 | |
| 183 | def load_pkl(path): |
| 184 | with open(path, 'rb') as f: |
nothing calls this directly
no outgoing calls
no test coverage detected