MIGRATION-BENCH
Collection
A collection of large scale code migration benchmark datasets at the repository level, across multiple programming languages.
β’
3 items
β’
Updated
repo
stringclasses 3
values | base_commit
stringclasses 3
values | num_java_files
int32 7
79
| num_loc
int32 599
26.3k
| num_pom_xml
int32 1
1
| num_src_test_java_files
int32 2
16
| num_test_cases
int32 -2
10
| license
stringclasses 2
values |
---|---|---|---|---|---|---|---|
0000005/sync2any | af57b4f8621afd5bf1bd428cd65349eca85e0b8a | 79 | 26,320 | 1 | 16 | -2 | Apache-2.0 |
0rtis/mochimo-farm-manager | 5ae99dc9af5169a5719a031cc1047ac2d3b0e3c2 | 47 | 5,006 | 1 | 2 | 1 | MIT |
0x100/n-loops | 3b5939a7c653aae971535ae15fc5bb16f8e43a4d | 7 | 599 | 1 | 2 | 10 | MIT |
|
|
|
|
|
π€ MIGRATION-BENCH is a large-scale code migration benchmark dataset at the repository level, across multiple programming languages.
java 8
repositories with the maven
build system, as of May 2025.There are three datasets in π€ MIGRATION-BENCH:
MIT
or Apache-2.0
license.Index | Dataset | Size | Notes |
---|---|---|---|
1 | π€ AmazonScience/migration-bench-java-full |
5,102 | Each repo has a test directory or at least one test case |
2 | π€ AmazonScience/migration-bench-java-selected |
300 | A subset of π€ migration-bench-java-full |
3 | π€ AmazonScience/migration-bench-java-utg |
4,814 | The unit test generation (utg) dataset, disjoint with π€ migration-bench-java-full |
Metadata is provided in the csv
file for each dataset:
repo (str)
: The original repo URL without the https://github.com/
prefixbase_commit (str)
: Base commit idjava 8
and maven
, the repository is able to (1) compile and (2) pass existing unit tests and integration tests if anyjava 8
num_java_files (int)
: Number of *.java
files in the repository at base_commit
, similarly for all other num_*
columnsnum_loc (int)
: Lines of code for the repositorynum_pom_xml (int)
: Number of modules (pom.xml
files) in the repositorynum_src_test_java_files (int)
: Number of *.java
files in the dedicated src/test/
directorynum_test_cases (int)
: Number of test cases, based on running the mvn -f test .
command in the root directory[INFO] Results:
(-2
) or [INFO] Tests run:
(-1
) regex is missinglicense (str)
: The license of the repository, either MIT
or Apache2.0
for the whole datasetHere is a sample maven -f test .
command output to get valid num_test_cases
:
...
[INFO] Results:
[INFO]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
...