Dataset Viewer
Auto-converted to Parquet
repo
string
base_commit
string
num_java_files
int32
num_loc
int32
num_pom_xml
int32
num_src_test_java_files
int32
num_test_cases
int32
license
string
15093015999/EJServer
7e51c59e090484ae4573290099b6936855554064
68
10,089
1
1
1
MIT
284885166/spring-boot-hashids
4973285e49b48be7b10818fae530159c55af267a
11
614
3
0
1
Apache-2.0
adlered/Picuang
8c361437de5fe56f45ff6cf6785a033a8e267d2a
25
1,500
1
1
1
Apache-2.0

MIGRATION-BENCH

MIGRATION-BENCH Code java-full java-selected java-utg

1. πŸ“– Overview

πŸ€— MIGRATION-BENCH is a large-scale code migration benchmark dataset at the repository level, across multiple programming languages.

  • Current and initial release includes java 8 repositories with the maven build system, as of May 2025.

2. Datasets

There are three datasets in πŸ€— MIGRATION-BENCH:

  • All repositories included in the datasets are available on GitHub, under the 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

3. Metadata

Metadata is provided in the csv file for each dataset:

  1. repo (str): The original repo URL without the https://github.com/ prefix
  2. base_commit (str): Base commit id
    • At this commit with java 8 and maven, the repository is able to (1) compile and (2) pass existing unit tests and integration tests if any
    • It is the starting point for code migration from java 8
  3. num_java_files (int): Number of *.java files in the repository at base_commit, similarly for all other num_* columns
  4. num_loc (int): Lines of code for the repository
  5. num_pom_xml (int): Number of modules (pom.xml files) in the repository
  6. num_src_test_java_files (int): Number of *.java files in the dedicated src/test/ directory
  7. num_test_cases (int): Number of test cases, based on running the mvn -f test . command in the root directory
    • Non negative values indicate number of test cases is parsed correctly from the output
    • Negative values means it's unable to parse the output: [INFO] Results: (-2) or [INFO] Tests run: (-1) regex is missing
  8. license (str): The license of the repository, either MIT or Apache2.0 for the whole dataset

3.1 Parsing Java Test Cases

Here 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
...

4. πŸ“š Citation

Downloads last month
2

Collection including AmazonScience/migration-bench-java-selected