A Python script at /app/merge logs.py reads two structured log files and produces a merged, sorted…
A Python script at /app/merge logs.py reads two structured log files and produces a merged, sorted…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - Two files, paths given as CLI arguments: ./merge logs.py <file1 <file2 - Each line is a…
The task
**Input contract:** - Two files, paths given as CLI arguments: `./merge_logs.py <file1> <file2>` - Each line is a timestamped event: `YYYY-MM-DDTHH:MM:SS.mmmmmm+HH:MM EVENT_NAME [payload]` - Timestamps use 6-digit microseconds, the timezone offset is always `+HH:MM` format - `EVENT_NAME` is a non-empty string of…
Part of ai-and/termgrade-environments.