HF RL Explorer

Goal: Write a Python script /app/decode.py that reads a binary file from stdin and writes valid JSON to…

Goal: Write a Python script /app/decode.py that reads a binary file from stdin and writes valid JSON to…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Binary format specification: - The file consists of a sequence of records. - Each record is a Tag-Length-Value…

The task

**Binary format specification:** - The file consists of a sequence of records. - Each record is a Tag-Length-Value (TLV) structure: - **Tag**: 1 byte (`uint8`). Tag value `0x00` marks end-of-stream; no length or value follows. Records with tag `0x00` MUST be ignored (not included in output). - **Length**:…

Part of ai-and/termgrade-environments.