Write a command-line tool /usr/local/bin/normalize that reads a CSV or NDJSON file and produces a clean…
Write a command-line tool /usr/local/bin/normalize that reads a CSV or NDJSON file and produces a clean…: 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 task
**Input format detection:** - If the file extension is `.csv` (case-insensitive), treat it as CSV. - If the extension is `.ndjson` or `.jsonl` (case-insensitive), treat it as NDJSON. - If the file has no extension or an unrecognized extension, sniff the content: if the first non-empty, non-comment line starts with…