Goal: Create a command-line tool /app/process logs that reads an access-style log file and outputs a summary…
Goal: Create a command-line tool /app/process logs that reads an access-style log file and outputs a summary…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - Input: path to a log file, passed as the sole argument to /app/process logs - Log…
The task
Exact I/O contract: - Input: path to a log file, passed as the sole argument to `/app/process_logs` - Log format: `<ISO8601_timestamp> <ip_address> <status_code> <bytes_sent> <path>` - Fields separated by exactly one space - Lines terminated by LF (`\n`) - ISO8601 timestamp: `YYYY-MM-DDTHH:MM:SS` (no timezone, no…
Part of ai-and/termgrade-environments.