Write a command-line tool normalize that reads an input file (CSV or NDJSON) and writes normalized NDJSON to…
Write a command-line tool normalize that reads an input file (CSV or NDJSON) and writes normalized NDJSON to…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - First positional argument: path to input file (extension .csv or .ndjson ). - Input…
The task
**Input contract:** - First positional argument: path to input file (extension `.csv` or `.ndjson`). - Input encoding: UTF-8, but some files may contain Latin-1 bytes (0x80-0xFF) that must be silently transcoded to UTF-8 equivalents without crashing. - CSV input: first row is header. Fields may be quoted with double…
Part of ai-and/termgrade-environments.