You are given a directory /data/events containing many JSON log files (UTF-8, .json extension). Each file…
You are given a directory /data/events containing many JSON log files (UTF-8, .json extension). Each file…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Your task: write a script /data/process.py that reads all these files, normalizes every timestamp to UTC (as…
The task
Your task: write a script `/data/process.py` that reads all these files, normalizes every timestamp to UTC (as an ISO-8601 string with `Z` suffix and exactly 3 decimal fractional seconds, e.g. `2024-02-15T09:30:45.123Z`), and groups the events into 5-minute UTC buckets. The bucket key is the start of the 5-minute…
Part of ai-and/termgrade-environments.