Download tasks/data/forward/0xacb__recollapse.090d711/solution/solve.sh from Lego-X/ProgramGen: direct link, hf CLI and curl.
- Browser
- Download file 304 Bytes
-
https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/forward/0xacb__recollapse.090d711/solution/solve.sh
- Command line
-
hf download hf://datasets/Lego-X/ProgramGen/tasks/data/forward/0xacb__recollapse.090d711/solution/solve.sh
-
curl -L -o solve.sh https://huggingface.co/datasets/Lego-X/ProgramGen/resolve/main/tasks/data/forward/0xacb__recollapse.090d711/solution/solve.sh
304 Bytes
| # Harbor oracle: restore the original repository into the current task workspace. | |
| set -euo pipefail | |
| WORKDIR="${WORKDIR:-/workspace/repo}" | |
| mkdir -p "$WORKDIR" | |
| cd "$WORKDIR" | |
| if [ -s /solution/golden.patch ]; then | |
| git apply --check /solution/golden.patch | |
| git apply /solution/golden.patch | |
| fi | |