HF RL Explorer

You are given a large file /data/events.dat containing one record per line. Each record is a comma-separated…

You are given a large file /data/events.dat containing one record per line. Each record is a comma-separated…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Your task: implement a script /app/compute.py that reads /data/events.dat and writes to /app/output.txt…

The task

Your task: implement a script `/app/compute.py` that reads `/data/events.dat` and writes to `/app/output.txt` the **top-3 categories by sum of value**, breaking ties by category name lexicographically ascending (UTF-8 byte order), followed by the **median of all values** computed exactly, with specific formatting.

Part of ai-and/termgrade-environments.