File size: 1,722 Bytes
34611b2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: mit
task_categories:
  - text-generation
language:
  - en
tags:
  - code
  - deprecated-api
size_categories:
  - 10K<n<100K
---

# Deprecated-API Code Generation Benchmark

Python functions mined from open-source repositories, each anchored on a library
API that has since been deprecated or replaced. Used to test whether a code LLM
still emits the outdated API, and to build forget / test splits per model.

## Structure

```
outdated_all.json          # O — samples calling the deprecated API
uptodated_all.json         # U — samples calling the replacement API
<model>/                   # codegen | codellama | deepseek | starcoder
├── updated_dep.json       #   samples of U where this model still emits the OLD API
├── D_forget.json          #   O + half of updated_dep
├── D_test.json            #   U minus that same half
├── D_test_U_dep.json      #   part of D_test that is in updated_dep
└── D_test_U_nondep.json   #   the rest of D_test
```

`O` and `U` are disjoint. `updated_dep.json` is model-specific and is a subset of
`U`: half of it goes into `D_forget`, the other half stays in `D_test` and is
exactly `D_test_U_dep`. So `D_forget ∩ D_test = ∅` and
`D_test_U_dep + D_test_U_nondep = D_test`.

## Counts

| | records |
|---|---:|
| `outdated_all.json` (O) | 9,087 |
| `uptodated_all.json` (U) | 18,340 |

| Model | `updated_dep` | `D_forget` | `D_test` | `D_test_U_dep` | `D_test_U_nondep` |
|---|---:|---:|---:|---:|---:|
| codegen   | 3,314 | 10,744 | 16,683 | 1,657 | 15,026 |
| codellama | 2,619 | 10,396 | 17,031 | 1,310 | 15,721 |
| deepseek  | 1,161 |  9,667 | 17,760 |   581 | 17,179 |
| starcoder | 2,963 | 10,568 | 16,859 | 1,482 | 15,377 |