HF RL Explorer

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 Environments: 1,004 executable Linux tasks (Harbor dataset). Input format detection: - If the file extension is .csv (case-insensitive), treat it as CSV. - If the extension…

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…

Part of ai-and/termgrade-environments.