You are given a broken Python script /opt/fixer/repair.py that is supposed to read a binary file of 8-byte…
You are given a broken Python script /opt/fixer/repair.py that is supposed to read a binary file of 8-byte…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The script reads from /data/records.bin (binary file). - Each record is exactly 8 bytes…
The task
**Input contract:** - The script reads from `/data/records.bin` (binary file). - Each record is exactly 8 bytes: `timestamp` (4 bytes, little-endian unsigned int, seconds since Unix epoch), `sensor_id` (2 bytes, big-endian unsigned int), `temp_raw` (2 bytes, signed little-endian int, representing temperature in…
Part of ai-and/termgrade-environments.