HF RL Explorer

Write a Python script /app/patch applier.py that takes exactly two command-line arguments: a base text file…

Write a Python script /app/patch applier.py that takes exactly two command-line arguments: a base text file…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Output contract: - On success: print patched content to stdout exactly, preserving line endings as they…

The task

Output contract: - On success: print patched content to stdout exactly, preserving line endings as they appear in the input files (don't normalize to `\n`). Exit code 0. - On overlapping hunks: print "ERROR: Overlapping hunks detected" to stderr and exit with code 1. - On any other malformed input (bad ranges,…

Part of ai-and/termgrade-environments.