Goal: Fix the broken log parser.py script so it correctly parses a sensor-data log file and produces a…
Goal: Fix the broken log parser.py script so it correctly parses a sensor-data log file and produces a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input : The script reads a file sensor data.log from /tmp/logs/ . Each line represents a sensor reading and…
The task
**Input**: The script reads a file `sensor_data.log` from `/tmp/logs/`. Each line represents a sensor reading and follows this format (but the file may contain corrupt/malformed lines): ``` [TIMESTAMP] SENSOR_ID=STRING VALUE=NUMBER UNIT=STRING ```
Part of ai-and/termgrade-environments.