emirhanyildirim34555's picture
Publish reviewed research staging to main
b9e9c57 verified
Raw History Blame Contribute Delete
296 Bytes
from pathlib import Path
import json
def load_records(path=None):
p=Path(path) if path else Path(__file__).with_name("data.jsonl")
with p.open(encoding="utf8") as f:
return [json.loads(line) for line in f if line.strip()]
if __name__ == "__main__":
print(len(load_records()))