Write a command-line tool, normalize , that reads a CSV or NDJSON file, normalizes its records to a…
Write a command-line tool, normalize , that reads a CSV or NDJSON file, normalizes its records to a…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input format detection: - If the file extension is .csv , the input…
The task
**Input format detection:** - If the file extension is `.csv`, the input is CSV with a header row. - If the file extension is `.ndjson` or `.jsonl`, the input is newline-delimited JSON (one JSON object per line). - Any other extension: treat as CSV. - If the input is CSV but has NO rows after the header, output an…