HF RL Explorer

Create a command-line tool /usr/local/bin/normalize that reads an input file in either CSV or NDJSON format…

Create a command-line tool /usr/local/bin/normalize that reads an input file in either CSV or NDJSON format…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format detection : If the first non-empty line of the file starts with { , treat the file as NDJSON…

The task

**Input format detection**: If the first non-empty line of the file starts with `{`, treat the file as NDJSON (one JSON object per line). Otherwise, treat it as CSV with a header row.

Part of ai-and/termgrade-environments.