fetch
genlm.eval.domains.livecodebench.fetch
Load + decode LiveCodeBench code_generation_lite releases.
Downloads raw testN.jsonl via huggingface_hub — the datasets builder
hits a pyarrow offset-overflow on the large private_test_cases column.
derive_testtype(metadata, tests)
functional iff a func_name is present (matches run_test's which_type), else fall back to the first test's recorded testtype, else stdin.
Source code in genlm/eval/domains/livecodebench/fetch.py
build_row(raw, release, max_tests=None)
Convert a raw HF row into a clean snapshot row with a harness-ready
eval_sample ({"input_output": <json str>}).
Source code in genlm/eval/domains/livecodebench/fetch.py
iter_release_rows(release='release_v6', max_tests=None, cache_dir=None, cumulative=True, raw_filter=None)
Yield clean built rows for a release (needs HF cache).
cumulative=True (official version_tag semantics) loads test.jsonl..testN.jsonl
de-duped by question_id (release_v6 == ~1055); cumulative=False loads only that
window. Dedup keeps the first occurrence, so release = first-seen.
raw_filter is applied to the raw HF row BEFORE the (expensive) private-test
decode, so callers can drop e.g. out-of-window rows cheaply.