HF RL Explorer

Write a command-line tool that reads a binary file containing records and prints a JSON array of decoded…

Write a command-line tool that reads a binary file containing records and prints a JSON array of decoded…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The binary format: - The file consists of a sequence of records. No global header or footer. - Each record…

The task

The binary format: - The file consists of a sequence of records. No global header or footer. - Each record starts with a 1-byte type tag (unsigned 8-bit integer). - Immediately following the tag is a variable-length unsigned integer (LEB128) indicating the payload length in bytes. - Immediately following the length…

Part of ai-and/termgrade-environments.