HF RL Explorer

Create a safe archive extractor script at /app/extract.py that accepts exactly two arguments: an archive…

Create a safe archive extractor script at /app/extract.py that accepts exactly two arguments: an archive…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - Arguments: extract.py ARCHIVE PATH TARGET DIR - Input archives: Only .tar , .tar.gz …

The task

**Exact I/O contract:** - **Arguments:** `extract.py ARCHIVE_PATH TARGET_DIR` - **Input archives:** Only `.tar`, `.tar.gz`, `.tar.bz2`, `.tar.xz`, `.zip` files. The archive may contain files, directories, symlinks, hardlinks, and empty entries. - **Output:** Extracts all regular files and directories into…

Part of ai-and/termgrade-environments.