import json import os with open("HumanEval.jsonl") as f: for line in f: contents = json.loads(line)