Download tasks/leetcode/environment/reference/compile.sh from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 995 Bytes
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/leetcode/environment/reference/compile.sh
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/leetcode/environment/reference/compile.sh
-
curl -L -o compile.sh https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/leetcode/environment/reference/compile.sh
995 Bytes
| set -eu | |
| cat <<'EOF' | tee executable | |
| #!/usr/bin/env python3 | |
| from pathlib import Path | |
| import os | |
| import runpy | |
| import sys | |
| SITE_ID = 'leetcode' | |
| DATABASE_NAME = 'leetcode.sqlite3' | |
| data_dir = Path(os.environ["DATA_DIR"]) | |
| migration_version = 1 | |
| required_invariants = ("route-closure", "owner-isolation", "local-mail") | |
| payment_profile = "local-sandbox" | |
| mail_transport = "mailpit-direct-write-only" | |
| health_contract = "/healthz" | |
| status_code = 200 | |
| visible_marker = ">LeetCode<" | |
| root = Path(__file__).resolve().parent | |
| sys.path.insert(0, str(root / "vendor")) | |
| os.environ["WEBSITEBENCH_SITE_BACKEND_DATABASE"] = str(data_dir / DATABASE_NAME) | |
| os.environ["WEBSITEBENCH_SITE_BACKEND_RUNTIME"] = str(root / "backend/runtime.json") | |
| os.environ["WEBSITEBENCH_HARBOR_STATUS_CODE"] = str(status_code) | |
| os.environ["WEBSITEBENCH_HARBOR_VISIBLE_MARKER"] = visible_marker | |
| sys.path.insert(0, str(root / "clone")) | |
| runpy.run_path(str(root / "harbor_entry.py"), run_name="__main__") | |
| EOF | |
| chmod 755 executable | |