HF RL Explorer

Implement a command-line tool /app/toposort that reads a dependency specification from stdin and writes a…

Implement a command-line tool /app/toposort that reads a dependency specification from stdin and writes a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): - One dependency per line. - Each line has the format: TASK <whitespace DEPENDS ON…

The task

**Input format** (stdin): - One dependency per line. - Each line has the format: `TASK <whitespace> DEPENDS_ON <whitespace> TASK` - Task names are non-empty strings of printable ASCII characters (codes 32-126), no leading/trailing whitespace within a name, and never contain the literal substring ` DEPENDS ON ` or `…

Part of ai-and/termgrade-environments.