Download cpython_13/environment/lolbench-submit from lolbench26/LoLBench: direct link, hf CLI and curl.
- Browser
- Download file 696 Bytes
-
https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/cpython_13/environment/lolbench-submit
- Command line
-
hf download hf://datasets/lolbench26/LoLBench/cpython_13/environment/lolbench-submit
-
curl -L -o lolbench-submit https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/cpython_13/environment/lolbench-submit
696 Bytes
| set -euo pipefail | |
| repo=${1:-$PWD} | |
| out=${LOLBENCH_PATCH_OUT:-/logs/artifacts/solution.patch} | |
| mkdir -p "$(dirname "$out")" | |
| cd "$repo" | |
| baseline=/opt/lolbench/base_untracked.txt | |
| current=$(mktemp) | |
| new_files=$(mktemp) | |
| trap 'rm -f "$current" "$new_files"' EXIT | |
| git ls-files --others --exclude-standard | sort > "$current" | |
| if [ -f "$baseline" ]; then | |
| comm -13 "$baseline" "$current" > "$new_files" | |
| else | |
| cp "$current" "$new_files" | |
| fi | |
| if [ -s "$new_files" ]; then | |
| xargs -r git add -N -- < "$new_files" | |
| fi | |
| git diff --binary > "$out" | |
| if [ ! -s "$out" ]; then | |
| echo "warning: wrote an empty solution patch to $out" >&2 | |
| else | |
| echo "wrote solution patch to $out" | |
| fi | |