Write a Python script /app/quantile.py that reads a UTF-8 encoded text file from a path given as the first…
Write a Python script /app/quantile.py that reads a UTF-8 encoded text file from a path given as the first…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). A "valid numeric line" is a non-empty line that, after…
The task
A "valid numeric line" is a non-empty line that, after stripping leading/trailing whitespace, can be parsed as a finite float and is NOT NaN or Infinity. Invalid lines (empty, whitespace-only, non-numeric, NaN, Infinity, -Infinity) are silently skipped and not counted.