CoolFace
Datasetpublic

tummitum/Data-Collection

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 |… See the full description on the dataset page: https://huggingface.co/datasets/tummitum/Data-Collection.

sourceHugging Facemitupdated 19d agoView on Hugging Face
1likes212downloads
Dataset Card

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`
codegen3,31410,74416,6831,65715,026
codellama2,61910,39617,0311,31015,721
deepseek1,1619,66717,76058117,179
starcoder2,96310,56816,8591,48215,377