HF RL Explorer

Write a Python script /app/sorter.py that reads a dependency specification from stdin and outputs a valid…

Write a Python script /app/sorter.py that reads a dependency specification from stdin and outputs a valid…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): - One line per dependency. - Each line has the form: TASK NAME depends on DEP1 DEP2 …

The task

**Input format (stdin):** - One line per dependency. - Each line has the form: `TASK_NAME depends on DEP1 DEP2 ... DEPN` - If a task has no dependencies, the line is: `TASK_NAME depends on` - Task names are non-empty strings of printable ASCII characters (no spaces, no tabs). There will be no duplicate task…

Part of ai-and/termgrade-environments.