HF RL Explorer

Goal: Parse a system log file and produce a strict JSON report.

Goal: Parse a system log file and produce a strict JSON report.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). You must write a Python script ( analyze.py ) that: 1. Reads a log file from a path given as the first command-line argument. 2. Produces a JSON report…

The task

You must write a Python script (`analyze.py`) that: 1. Reads a log file from a path given as the first command-line argument. 2. Produces a JSON report on stdout.

Part of ai-and/termgrade-environments.