HF RL Explorer

Goal: Write a Python script at /app/decoder.py that reads a binary file from stdin and writes a single JSON…

Goal: Write a Python script at /app/decoder.py that reads a binary file from stdin and writes a single JSON…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (binary, read from stdin): - The file consists of zero or more records, concatenated with no…

The task

Input format (binary, read from stdin): - The file consists of zero or more records, concatenated with no separators. - Each record has three parts: Tag, Length, Value. - Tag: an unsigned 64-bit integer, encoded as a varint (see below). - Length: an unsigned 64-bit integer, encoded as a varint. Indicates the number…

Part of ai-and/termgrade-environments.