HF RL Explorer

Goal: Build a command-line tool normalize that reads a UTF-8 text file containing either CSV or NDJSON…

Goal: Build a command-line tool normalize that reads a UTF-8 text file containing either CSV or NDJSON…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The tool detects the input format: - If EVERY non-empty line starts with { and ends with } , treat input as…

The task

The tool detects the input format: - If EVERY non-empty line starts with `{` and ends with `}`, treat input as NDJSON (one JSON object per line). - Otherwise, treat input as CSV with a header row.

Part of ai-and/termgrade-environments.