Datasets:
File size: 1,686 Bytes
9d874e7 226dcc5 9d874e7 226dcc5 b44eb35 226dcc5 b44eb35 226dcc5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | ---
pretty_name: API-Upgrade
license: other
task_categories:
- text-generation
language:
- en
tags:
- code
- rust
- software-engineering
- arxiv:2607.13921
---
## API-Upgrade
API-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
```python
from datasets import load_dataset
import json
dataset = 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` used
to start model generation, and the structured source fields needed to inspect
the task.
### License
The benchmark combines source code from multiple upstream projects. The license
of each upstream project continues to apply to its code; consult the source files
and the project repository for the corresponding license notices.
|