HF RL Explorer

Write a Python script /app/topk quantile.py that reads a large log file and computes a streaming top-k and…

Write a Python script /app/topk quantile.py that reads a large log file and computes a streaming top-k and…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: - Each line is a JSON object with at least the key "value" (a number) and optionally…

The task

**Input file format:** - Each line is a JSON object with at least the key "value" (a number) and optionally other keys. - The file may be encoded as `utf-8`, `latin-1`, or `ascii`. Non-decodable bytes for the given encoding must cause the script to exit with code 2 before writing output. - Lines may be terminated by…

Part of ai-and/termgrade-environments.