HF RL Explorer

Write a command-line tool /usr/local/bin/normalize that normalizes CSV and NDJSON files.

Write a command-line tool /usr/local/bin/normalize that normalizes CSV and NDJSON files.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal : Given one or more input file paths (or --stdin to read from stdin), the tool must detect each file's format (CSV with…

The task

**Goal**: Given one or more input file paths (or `--stdin` to read from stdin), the tool must detect each file's format (CSV with headers, CSV without headers, or NDJSON) and normalize them into a consistent output format. The output is written to stdout.

Part of ai-and/termgrade-environments.