HF RL Explorer

Write a Python script that reads a custom binary file format and outputs a JSON array of objects to stdout.

Write a Python script that reads a custom binary file format and outputs a JSON array of objects to stdout.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The input file format consists of a sequence of records. Each record has three fields: - A 1-byte tag…

The task

The input file format consists of a sequence of records. Each record has three fields: - A 1-byte tag (unsigned integer, 0-255) - A variable-length unsigned integer length (see encoding below) - A payload of exactly `length` bytes

Part of ai-and/termgrade-environments.