HF RL Explorer

Write a command-line tool /app/topk that reads a UTF-8 encoded file of newline-separated JSON objects from…

Write a command-line tool /app/topk that reads a UTF-8 encoded file of newline-separated JSON objects from…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): - Each line is a JSON object with at least these fields: - "id" : string (unique…

The task

**Input format (stdin):** - Each line is a JSON object with at least these fields: - `"id"`: string (unique identifier) - `"score"`: number (can be integer or float, positive/negative/zero, possibly extremely large/small, but never NaN or Infinity) - `"ts"`: string in ISO 8601 format with timezone (e.g.,…

Part of ai-and/termgrade-environments.