Goal: Create a command-line tool that processes interval queries over a set of named ranges. The tool reads…
Goal: Create a command-line tool that processes interval queries over a set of named ranges. The tool reads…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - The tool is invoked as: python interval query.py <state file <query file <output file…
The task
Exact I/O contract: - The tool is invoked as: `python interval_query.py <state_file> <query_file> <output_file>` - State file format: One interval per line. Each line has format: `name,start,end` where name is a non-empty string (no commas), start and end are integers (possibly negative). Lines may have trailing…
Part of ai-and/termgrade-environments.