Download TypeScript_2/README.md from lolbench26/LoLBench: direct link, hf CLI and curl.
- Browser
- Download file 2.86 kB
-
https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/TypeScript_2/README.md
- Command line
-
hf download hf://datasets/lolbench26/LoLBench/TypeScript_2/README.md
-
curl -L -o README.md https://huggingface.co/datasets/lolbench26/LoLBench/resolve/main/TypeScript_2/README.md
LoLBench Harbor Task: TypeScript_2
This is a Harbor-format LoLBench task generated from TypeScript_PR-54505_Using-and-await-using-declarations.
Selected source instance:
- Harbor ID:
TypeScript_2 - PR:
microsoft/TypeScript#54505 - Base commit:
d90eb0d731c3f74b131dcfafe69ef5341ed14934 - Test modes:
orig, aug, union - Default/canonical mode:
union - Harbor image:
smartdub26/lolbench-linux:TypeScript_2-1.0.0 - Docker Hub image:
smartdub26/lolbench-linux:TypeScript_2-1.0.0 - Docker Hub digest (arm64):
sha256:1291a122c50d1363d03e1ec0cc4061113f7153f02d0c42773cb22479a431a79d - Docker Hub Linux image (amd64):
smartdub26/lolbench-linux:TypeScript_2-1.0.0 - Docker Hub Linux digest:
sha256:f2bd5e6d40bb6c1a0babeecf6d25e4b11dcbc18e9b17f7ebaa1686f215754cf5
Image Setup
Prefer the published Docker Hub image when it is available. Harbor refers to
the image as smartdub26/lolbench-linux:TypeScript_2-1.0.0, so Docker can pull it
directly when it is not present locally:
docker pull smartdub26/lolbench-linux:TypeScript_2-1.0.0
Only if the Docker Hub image is unavailable, build the single task image locally:
docker build -t lolbench/typescript_2:1.0.0 harbor_tasks/TypeScript_2/environment
docker tag lolbench/typescript_2:1.0.0 smartdub26/lolbench-linux:TypeScript_2-1.0.0
The image contains the processed source tree at the base commit under
/workspace/typescript. Harbor must not mount a host source checkout
for the agent.
Run an Agent
.harbor-venv/bin/harbor run \
-p harbor_tasks/TypeScript_2 \
-a codex \
-m "<model>" \
--job-name TypeScript_2_agent_union \
--jobs-dir harbor_runs/TypeScript_2 \
--no-delete \
--n-concurrent 1 \
--ve LOLBENCH_SUITE=union
After implementing the requirement, the agent must clean any test-file edits and run:
lolbench-submit
Evaluate a Patch
Choose one mode with LOLBENCH_SUITE=orig, aug, or union; if unset, the
task defaults to union.
PATCH="$(pwd)/path/to/solution.patch"
.harbor-venv/bin/harbor run \
-p harbor_tasks/TypeScript_2 \
-a oracle \
--job-name TypeScript_2_eval_union \
--jobs-dir harbor_runs/TypeScript_2 \
--no-delete \
--n-concurrent 1 \
--mounts '[{"type":"bind","source":"'"$PATCH"'","target":"/candidate/solution.patch","read_only":true}]' \
--ae LOLBENCH_ORACLE_PATCH=/candidate/solution.patch \
--ve LOLBENCH_SUITE=union
Outputs:
find harbor_runs/TypeScript_2/TypeScript_2_eval_union -path '*/verifier/agent_report.json' -print
find harbor_runs/TypeScript_2/TypeScript_2_eval_union -path '*/verifier/reward.json' -print
tests/docker-compose.yaml is a verifier-only Harbor overlay. It mounts
tests/, tests/private/, and solution/ into the separate verifier
container; none of those paths are mounted into the agent container.