Publish validated Stack v3 C++ ReFineID benchmark
Browse filesFiles changed (5)
- README.mdAdded+70
- manifest.jsonAdded+1
- provenance.jsonlAdded
- test.csvAdded
- test.parquetAdded+3
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970---license: otherlanguage:- codepretty_name: RefineID-format C++ identifier recovery from The Stack v3configs:- config_name: default data_files: - split: test path: test.parquet---
# RefineID-format C++ identifier recovery from The Stack v3
This public benchmark contains **1,000** examples from **1,000**source repositories and **3,961** masked identifier positions. Eachexample is a full source file with one chosen identifier name masked at everyeligible identifier token position. The target is the original name.
## Format and use
`test.csv` has **no header** and exactly three columns in the same order as theoriginal RefineID benchmark: `id, code_masked, target`. IDs are `0` through`999`. Each target position is the literal, whitespace-delimited`[MASK]`. `test.parquet` holds the identical rows with named string columns andis the default Hugging Face `test` split:
```pythonfrom datasets import load_datasetds = load_dataset("D4vidHuang/refineid-stack-v3-cpp", split="test")assert len(ds) == 1000```
`provenance.jsonl` is aligned by ID and records the upstream repository, commit,file path, content ID, detected SPDX licenses, source revision, source text hash,and the half-open Unicode character spans used for masking. `manifest.json`records checksums, parameters and corpus-level counts.
## Construction and interpretation
Source: [`HuggingFaceCode/stack-v3-train`](https://huggingface.co/datasets/HuggingFaceCode/stack-v3-train)at commit `8f3f25d86e44fd691428131efd17af75d4716499`. We use the upstream PII-redacted,quality-filtered train corpus and accept only files marked `permissive` withdetected licenses. Vendored files, short/oversized files, parse failures,ambiguous identifier uses, and files with a few obvious remaining sensitivepatterns are excluded. Candidates whose target spelling remains visible incomments, strings, or other code are also excluded. A seeded Parquet traversal selects at most oneexample per repository for this language. This is a deterministic conveniencesample, **not a uniform random sample** of all Stack v3 files. See the manifestfor the exact seed and scan boundary.
The source is a single code snapshot. These examples evaluate **identifiername recovery**; they are not observed before/after rename commits. Syntax-treefilters reduce false targets, but they do not prove compiler-resolved binding,compilation, or behavior. Original RefineID has a different source and length/site distribution, so scores across the two datasets require separate reporting.
## License and removal
The Stack v3 collection is ODC-By. Each source file retains its original license;this dataset does not assign one blanket license to the underlying code. Check the per-row`detected_licenses` and upstream repository before reuse. License detectionand PII redaction are imperfect. The Stack v3 card documents its[opt-out process](https://huggingface.co/datasets/HuggingFaceCode/stack-v3-train). We pin anupstream release and will review new opt-outs before future republishes.
## Citation
Please cite The Stack v3 dataset card and the original RefineID paper whenusing this benchmark.1{"extraction_policy":"tree-sitter syntax; declaration-backed local/parameter; all same-spelling identifier tokens in full file; reject residual visible target spelling and ambiguous cases; no binding proof","files":{"README.md":"677ea653f3d9ced8f801f2ae4d0571a96be388a9336a0e744abfbc2d600fb5b2","provenance.jsonl":"3ab009c2ff6f09abc93a0c620301803120453bf79fc0f5402ee08672db86b428","test.csv":"1efc1975a3007c37a20c520e2a0a323f23bb94c80879069deb645a5dceb18b0b","test.parquet":"3eb5f906a02fdf2625f0b43c5a20308a3aee5d7f759de7236e4594867953ad14"},"generation_timestamp":"2026-09-24T14:27:17.233273+00:00","language":"C++","processing_code_sha256":{"/Users/yhuang18/Desktop/Projects/CoRefusion/experiments/stack_v3_refineid/build.py":"dac8c84d78e85200554ce366ecb587c33c827b3fadffc23554bc67c81a64cfcd","/Users/yhuang18/Desktop/Projects/CoRefusion/experiments/stack_v3_refineid/extract.py":"b34f7916d2a6773c92688891f20b83ee62e8d9c9e5d3e19bef7ee7606466f9cf","/Users/yhuang18/Desktop/Projects/CoRefusion/experiments/stack_v3_refineid/source.py":"d352c7b00a624793bb27ffd2733d3fe23dd33073a1bdd4807f9c51072e1248e5"},"row_count":1000,"schema_version":1,"source_sampling":{"buffer_size":32,"last_selected_source_position":2116946,"max_repos":6000000,"max_source_bytes":200000,"min_source_chars":800,"scan_stats":{"files_bad_content":80,"files_bad_provenance":0,"files_bad_size":86009,"files_generated":0,"files_nonpermissive":11196416,"files_pii_placeholder":28289,"files_seen":45212090,"files_vendor":4356,"files_wrong_language":33682317,"files_yielded":242902,"next_repo":3521859,"repos_scanned":3422508,"repos_skipped":99352},"seed":20260924,"selection":"seeded shuffled repository stream; first eligible file/candidate per repository and language","source_mode":"official_pinned_parquet","uniform_random_sample":false},"statistics":{"masked_code_chars_max":187709,"masked_code_chars_min":783,"masked_sites":3961,"max_sites":101,"max_target_frequency":2,"min_sites":2,"unique_content_ids":1000,"unique_repositories":1000,"unique_targets":934},"upstream_dataset":"HuggingFaceCode/stack-v3-train","upstream_revision":"8f3f25d86e44fd691428131efd17af75d4716499"}123version https://git-lfs.github.com/spec/v1oid sha256:3eb5f906a02fdf2625f0b43c5a20308a3aee5d7f759de7236e4594867953ad14size 2159972README.mdAdded+70
manifest.jsonAdded+1
provenance.jsonlAdded
test.csvAdded
test.parquetAdded+3