Goal: Create a command-line tool at /usr/local/bin/normalize — a Python 3 script, invoked as python3…
Goal: Create a command-line tool at /usr/local/bin/normalize — a Python 3 script, invoked as python3…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - Read all input from stdin (UTF-8 text). - Input format is auto-detected per line: if a line…
The task
Exact I/O contract: - Read all input from stdin (UTF-8 text). - Input format is auto-detected per line: if a line starts with '{' or '[', treat it as a JSON object/array line (NDJSON); otherwise treat it as a CSV line. - For CSV lines: the first line is the header (column names). Subsequent CSV lines become JSON…
Part of ai-and/termgrade-environments.