HF RL Explorer

Write a Python script /app/decoder.py that reads a binary file from a path given as the first command-line…

Write a Python script /app/decoder.py that reads a binary file from a path given as the first command-line…: 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 sequence of…

The task

**Binary format specification:** - The file consists of a sequence of records. - Each record is a sequence of fields: a 1-byte Tag, a Length (encoded as a variable-length unsigned integer, "varint"), and a Value of `Length` bytes. - The end of a record is marked by a Tag of `0x00` (with no Length or Value following…

Part of ai-and/termgrade-environments.