Datasets:
Add dataset card
Browse files
README.md
CHANGED
|
@@ -1,44 +1,66 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
dtype: string
|
| 14 |
-
- name: interface_code
|
| 15 |
-
dtype: string
|
| 16 |
-
- name: prompt_files
|
| 17 |
-
list:
|
| 18 |
-
- name: code
|
| 19 |
-
dtype: string
|
| 20 |
-
- name: language
|
| 21 |
-
dtype: string
|
| 22 |
-
- name: path
|
| 23 |
-
dtype: string
|
| 24 |
-
- name: prompt
|
| 25 |
-
dtype: string
|
| 26 |
-
- name: answer_prefix
|
| 27 |
-
dtype: string
|
| 28 |
-
splits:
|
| 29 |
-
- name: dev
|
| 30 |
-
num_bytes: 28512
|
| 31 |
-
num_examples: 4
|
| 32 |
-
- name: test
|
| 33 |
-
num_bytes: 311948
|
| 34 |
-
num_examples: 30
|
| 35 |
-
download_size: 154927
|
| 36 |
-
dataset_size: 340460
|
| 37 |
-
configs:
|
| 38 |
-
- config_name: default
|
| 39 |
-
data_files:
|
| 40 |
-
- split: dev
|
| 41 |
-
path: data/dev-*
|
| 42 |
-
- split: test
|
| 43 |
-
path: data/test-*
|
| 44 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
pretty_name: API-Upgrade
|
| 3 |
+
license: other
|
| 4 |
+
task_categories:
|
| 5 |
+
- text-generation
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- code
|
| 10 |
+
- rust
|
| 11 |
+
- software-engineering
|
| 12 |
+
- arxiv:2607.13921
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
## API-Upgrade
|
| 16 |
+
|
| 17 |
+
API-Upgrade evaluates repository-level Rust synthesis against newer dependency APIs.
|
| 18 |
+
|
| 19 |
+
This dataset was used for evaluation in the paper
|
| 20 |
+
[Generative Compilation: On-the-Fly Compiler Feedback as AI Generates Code](https://arxiv.org/abs/2607.13921).
|
| 21 |
+
You can find the corresponding evaluation code in
|
| 22 |
+
[the project GitHub repository](https://github.com/eth-sri/generative-compilation).
|
| 23 |
+
|
| 24 |
+
### Example Usage
|
| 25 |
+
|
| 26 |
+
```python
|
| 27 |
+
from datasets import load_dataset
|
| 28 |
+
import json
|
| 29 |
+
|
| 30 |
+
dataset = load_dataset("eth-sri/API-Upgrade")
|
| 31 |
+
for instance in dataset["test"]:
|
| 32 |
+
print(json.dumps(instance, indent=2))
|
| 33 |
+
break
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
### Example Instance
|
| 37 |
+
|
| 38 |
+
```json
|
| 39 |
+
{
|
| 40 |
+
"id": "test/addr2line__0.25.1_to_0.26.0/output/src/lib.rs",
|
| 41 |
+
"project": "addr2line__0.25.1_to_0.26.0",
|
| 42 |
+
"project_rel": "test/addr2line__0.25.1_to_0.26.0/output",
|
| 43 |
+
"interface_path": "src/lib.rs",
|
| 44 |
+
"target_path": "src/lib.rs",
|
| 45 |
+
"interface_code": "pub fn ... {\\n unimplemented!();\\n}",
|
| 46 |
+
"prompt_files": [
|
| 47 |
+
{
|
| 48 |
+
"path": "Cargo.toml",
|
| 49 |
+
"code": "...",
|
| 50 |
+
"language": "toml"
|
| 51 |
+
}
|
| 52 |
+
],
|
| 53 |
+
"prompt": "...",
|
| 54 |
+
"answer_prefix": "src/lib.rs\\n```rust\\n"
|
| 55 |
+
}
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
Each row also includes the complete rendered `prompt`, the `answer_prefix` used
|
| 59 |
+
to start model generation, and the structured source fields needed to inspect
|
| 60 |
+
the task.
|
| 61 |
+
|
| 62 |
+
### License
|
| 63 |
+
|
| 64 |
+
The benchmark combines source code from multiple upstream projects. The license
|
| 65 |
+
of each upstream project continues to apply to its code; consult the source files
|
| 66 |
+
and the project repository for the corresponding license notices.
|