def load_jsonl(path, field, tag):
"""Load a JSONL file, extract a given field, and tag the example."""
records = []
with open(path, "r") as f:
for line in f:
if not line.strip():
continue
obj = json.loads(line)
if field in obj:
records.append({
"prompt": obj[field],
"category": tag
})… See the full description on the dataset page:
https://huggingface.co/datasets/hamishivi/codeeditorbench_prompts.