HF RL Explorer

Create a command-line tool /app/apply hunks.py that applies a set of textual hunks to a base file, producing…

Create a command-line tool /app/apply hunks.py that applies a set of textual hunks to a base file, producing…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The tool receives exactly two arguments: <base file <hunks file - Base file is a UTF-8…

The task

**Input contract:** - The tool receives exactly two arguments: `<base_file> <hunks_file>` - Base file is a UTF-8 text file with Unix line endings (LF). - Hunks file is a UTF-8 text file with Unix line endings (LF) containing one or more hunks. - Each hunk starts with a header line: `@@ -<start>,<count>…

Part of ai-and/termgrade-environments.