Datasets:
Add dataset card
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344---dataset_info:features:- name: iddtype: string- name: projectdtype: string- name: project_reldtype: string- name: interface_pathdtype: string- name: target_pathdtype: string- name: interface_codedtype: string- name: prompt_fileslist:- name: codedtype: string- name: languagedtype: string- name: pathdtype: string- name: promptdtype: string- name: answer_prefixdtype: stringsplits:- name: devnum_bytes: 28512num_examples: 4- name: testnum_bytes: 311948num_examples: 30download_size: 154927dataset_size: 340460configs:- config_name: defaultdata_files:- split: devpath: data/dev-*- split: testpath: data/test-*---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566---pretty_name: API-Upgradelicense: othertask_categories:- text-generationlanguage:- entags:- code- rust- software-engineering- arxiv:2607.13921---## API-UpgradeAPI-Upgrade evaluates repository-level Rust synthesis against newer dependency APIs.This dataset was used for evaluation in the paper[Generative Compilation: On-the-Fly Compiler Feedback as AI Generates Code](https://arxiv.org/abs/2607.13921).You can find the corresponding evaluation code in[the project GitHub repository](https://github.com/eth-sri/generative-compilation).### Example Usage```pythonfrom datasets import load_datasetimport jsondataset = load_dataset("eth-sri/API-Upgrade")for instance in dataset["test"]:print(json.dumps(instance, indent=2))break```### Example Instance```json{"id": "test/addr2line__0.25.1_to_0.26.0/output/src/lib.rs","project": "addr2line__0.25.1_to_0.26.0","project_rel": "test/addr2line__0.25.1_to_0.26.0/output","interface_path": "src/lib.rs","target_path": "src/lib.rs","interface_code": "pub fn ... {\\n unimplemented!();\\n}","prompt_files": [{"path": "Cargo.toml","code": "...","language": "toml"}],"prompt": "...","answer_prefix": "src/lib.rs\\n```rust\\n"}```Each row also includes the complete rendered `prompt`, the `answer_prefix` usedto start model generation, and the structured source fields needed to inspectthe task.### LicenseThe benchmark combines source code from multiple upstream projects. The licenseof each upstream project continues to apply to its code; consult the source filesand the project repository for the corresponding license notices.
README.md+64-42