Datasets:
instance_id stringlengths 45 255 | repo stringclasses 212
values | language stringclasses 1
value | base_commit stringlengths 40 40 | merge_commit stringlengths 40 40 | refactoring_types listlengths 1 1 | refactoring_descriptions listlengths 0 0 | file_path stringlengths 20 218 | source_code_before stringlengths 63 461k | source_code_after stringlengths 104 464k | diff stringlengths 349 149k | is_pure_refactoring null | compile_before bool 2
classes | compile_after bool 2
classes | FAIL_TO_PASS listlengths 0 169 ⌀ | PASS_TO_PASS listlengths 0 58.7k ⌀ | created_at timestamp[s]date 2007-01-01 23:59:51 2026-06-02 04:36:01 | repo_license stringclasses 5
values | lines_changed int64 1 792 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
adorsys__keycloak-config-cli@81831169:src/main/java/de/adorsys/keycloak/config/service/normalize/AuthFlowNormalizationService.java | adorsys/keycloak-config-cli | java | 323fed875c303381a16f33a89df8fca3c6757ec3 | 818311693940c022047293c075ae0d57c8d213bf | [
"Extract Variable"
] | [] | src/main/java/de/adorsys/keycloak/config/service/normalize/AuthFlowNormalizationService.java | /*-
* ---license-start
* keycloak-config-cli
* ---
* Copyright (C) 2017 - 2022 adorsys GmbH & Co. KG @ https://adorsys.com
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | /*-
* ---license-start
* keycloak-config-cli
* ---
* Copyright (C) 2017 - 2022 adorsys GmbH & Co. KG @ https://adorsys.com
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | diff --git a/src/main/java/de/adorsys/keycloak/config/service/normalize/AuthFlowNormalizationService.java b/src/main/java/de/adorsys/keycloak/config/service/normalize/AuthFlowNormalizationService.java
index 68fe5eb2..664781b4 100644
--- a/src/main/java/de/adorsys/keycloak/config/service/normalize/AuthFlowNormalizationS... | null | true | true | [] | [] | 2026-05-12T15:39:17 | Apache-2.0 | 85 |
adorsys__keycloak-config-cli@8a7fd33d:src/test/java/de/adorsys/keycloak/config/service/ClientAuthorizationImportServiceTest.java | adorsys/keycloak-config-cli | java | 5e58ef9fc60257fe483f6af88cd9097bd78948b6 | 8a7fd33d52060bb6b58b88e287afce1b79c922fd | [
"Extract Attribute"
] | [] | src/test/java/de/adorsys/keycloak/config/service/ClientAuthorizationImportServiceTest.java | /*-
* ---license-start
* keycloak-config-cli
* ---
* Copyright (C) 2017 - 2025 adorsys GmbH & Co. KG @ https://adorsys.com
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | /*-
* ---license-start
* keycloak-config-cli
* ---
* Copyright (C) 2017 - 2025 adorsys GmbH & Co. KG @ https://adorsys.com
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | diff --git a/src/test/java/de/adorsys/keycloak/config/service/ClientAuthorizationImportServiceTest.java b/src/test/java/de/adorsys/keycloak/config/service/ClientAuthorizationImportServiceTest.java
index 64630b4b..fc57403d 100644
--- a/src/test/java/de/adorsys/keycloak/config/service/ClientAuthorizationImportServiceTest... | null | true | true | [] | [
"de.adorsys.keycloak.config.service.normalize.AuthFlowNormalizationServiceTest.testNormalizeAuthFlows_EmptyResult",
"de.adorsys.keycloak.config.service.clientauthorization.PermissionTypeAndIdTest.fromResourceName(String, PermissionTypeAndId)[2]",
"de.adorsys.keycloak.config.service.clientauthorization.Permissio... | 2026-03-19T14:39:22 | Apache-2.0 | 39 |
adorsys__keycloak-config-cli@19db7ebb:src/main/java/de/adorsys/keycloak/config/repository/AuthenticationFlowRepository.java | adorsys/keycloak-config-cli | java | a8fdc6278bec3303e9b4758e2cb0ee902410e492 | 19db7ebbfaa2fdc6e0fc246677b0f1ee2b6b8697 | [
"Change Variable Type"
] | [] | src/main/java/de/adorsys/keycloak/config/repository/AuthenticationFlowRepository.java | /*-
* ---license-start
* keycloak-config-cli
* ---
* Copyright (C) 2017 - 2021 adorsys GmbH & Co. KG @ https://adorsys.com
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | /*-
* ---license-start
* keycloak-config-cli
* ---
* Copyright (C) 2017 - 2021 adorsys GmbH & Co. KG @ https://adorsys.com
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | diff --git a/src/main/java/de/adorsys/keycloak/config/repository/AuthenticationFlowRepository.java b/src/main/java/de/adorsys/keycloak/config/repository/AuthenticationFlowRepository.java
index 69989a2e..425674ed 100644
--- a/src/main/java/de/adorsys/keycloak/config/repository/AuthenticationFlowRepository.java
+++ b/src... | null | true | true | [] | [
"de.adorsys.keycloak.config.service.normalize.AuthFlowNormalizationServiceTest.testNormalizeAuthFlows_EmptyResult",
"de.adorsys.keycloak.config.service.clientauthorization.PermissionTypeAndIdTest.fromResourceName(String, PermissionTypeAndId)[2]",
"de.adorsys.keycloak.config.service.clientauthorization.Permissio... | 2026-02-11T10:24:47 | Apache-2.0 | 3 |
"adorsys__keycloak-config-cli@ceae4588:src/main/java/de/adorsys/keycloak/config/provider/KeycloakPro(...TRUNCATED) | adorsys/keycloak-config-cli | java | 20ac300f78c72050913eda0147828594ff7efc06 | ceae4588052e4c6a3bb21ab9a764b827b3728f6a | [
"Add Method Annotation"
] | [] | src/main/java/de/adorsys/keycloak/config/provider/KeycloakProvider.java | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2021 adorsys GmbH(...TRUNCATED) | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2021 adorsys GmbH(...TRUNCATED) | "diff --git a/src/main/java/de/adorsys/keycloak/config/provider/KeycloakProvider.java b/src/main/jav(...TRUNCATED) | null | true | true | [] | ["de.adorsys.keycloak.config.service.normalize.AuthFlowNormalizationServiceTest.testNormalizeAuthFlo(...TRUNCATED) | 2026-03-10T12:59:45 | Apache-2.0 | 14 |
"adorsys__keycloak-config-cli@939c5dab:src/main/java/de/adorsys/keycloak/config/properties/ImportCon(...TRUNCATED) | adorsys/keycloak-config-cli | java | 0029ce49f906f1a178b1f51e799ec32fb4da0fbd | 939c5dabca027c2bd69dbddb648d98ebf9820b79 | [
"Add Parameter"
] | [] | src/main/java/de/adorsys/keycloak/config/properties/ImportConfigProperties.java | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2021 adorsys GmbH(...TRUNCATED) | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2021 adorsys GmbH(...TRUNCATED) | "diff --git a/src/main/java/de/adorsys/keycloak/config/properties/ImportConfigProperties.java b/src/(...TRUNCATED) | null | true | true | [] | ["de.adorsys.keycloak.config.service.normalize.AuthFlowNormalizationServiceTest.testNormalizeAuthFlo(...TRUNCATED) | 2026-03-02T15:25:15 | Apache-2.0 | 39 |
"adorsys__keycloak-config-cli@665b4e01:src/main/java/de/adorsys/keycloak/config/properties/ImportCon(...TRUNCATED) | adorsys/keycloak-config-cli | java | 568da23d9aacdc8a344bd17037c3dc5cdeeb6b0e | 665b4e01000e38985a66b19fd262391c4ff61f9e | [
"Remove Parameter"
] | [] | src/main/java/de/adorsys/keycloak/config/properties/ImportConfigProperties.java | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2021 adorsys GmbH(...TRUNCATED) | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2021 adorsys GmbH(...TRUNCATED) | "diff --git a/src/main/java/de/adorsys/keycloak/config/properties/ImportConfigProperties.java b/src/(...TRUNCATED) | null | true | true | [] | ["de.adorsys.keycloak.config.service.normalize.AuthFlowNormalizationServiceTest.testNormalizeAuthFlo(...TRUNCATED) | 2026-03-04T16:13:22 | Apache-2.0 | 24 |
"adorsys__keycloak-config-cli@8f67506e:src/main/java/de/adorsys/keycloak/config/service/normalize/Re(...TRUNCATED) | adorsys/keycloak-config-cli | java | b1c021c0b7c27a7c80a9bfb34d6e21ef9ae67cbd | 8f67506e80c8002759b7e32d9ee90d8fcd84cdcb | [
"Add Parameter"
] | [] | src/main/java/de/adorsys/keycloak/config/service/normalize/RealmNormalizationService.java | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2022 adorsys GmbH(...TRUNCATED) | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2022 adorsys GmbH(...TRUNCATED) | "diff --git a/src/main/java/de/adorsys/keycloak/config/service/normalize/RealmNormalizationService.j(...TRUNCATED) | null | true | true | ["de.adorsys.keycloak.config.service.normalize.RoleNormalizationServiceTest.testNormalizeList","de.a(...TRUNCATED) | [] | 2026-05-12T15:38:46 | Apache-2.0 | 15 |
"adorsys__keycloak-config-cli@f95c59e5:src/main/java/de/adorsys/keycloak/config/repository/Organizat(...TRUNCATED) | adorsys/keycloak-config-cli | java | bd002e1867996f8679b199e4584472fec6238f49 | f95c59e5bb274aa9bfcb1bb9b76f06bd8155349d | [
"Extract Variable"
] | [] | src/main/java/de/adorsys/keycloak/config/repository/OrganizationRepository.java | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2021 adorsys GmbH(...TRUNCATED) | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2021 adorsys GmbH(...TRUNCATED) | "diff --git a/src/main/java/de/adorsys/keycloak/config/repository/OrganizationRepository.java b/src/(...TRUNCATED) | null | true | true | [] | ["de.adorsys.keycloak.config.service.normalize.AuthFlowNormalizationServiceTest.testNormalizeAuthFlo(...TRUNCATED) | 2026-02-24T08:00:42 | Apache-2.0 | 4 |
"adorsys__keycloak-config-cli@1db59818:src/main/java/de/adorsys/keycloak/config/service/UserImportSe(...TRUNCATED) | adorsys/keycloak-config-cli | java | 9ba96446cdf5cc494e744af64bb2c445e362fd71 | 1db59818ffdafb5192b949191b262a88322fb85d | [
"Rename Attribute"
] | [] | src/main/java/de/adorsys/keycloak/config/service/UserImportService.java | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2021 adorsys GmbH(...TRUNCATED) | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2021 adorsys GmbH(...TRUNCATED) | "diff --git a/src/main/java/de/adorsys/keycloak/config/service/UserImportService.java b/src/main/jav(...TRUNCATED) | null | true | true | [] | [] | 2026-02-25T11:58:39 | Apache-2.0 | 25 |
"adorsys__keycloak-config-cli@9ba96446:src/main/java/de/adorsys/keycloak/config/properties/ImportCon(...TRUNCATED) | adorsys/keycloak-config-cli | java | 12e1967bfb951a4f74b084d6949491f4e2a9b560 | 9ba96446cdf5cc494e744af64bb2c445e362fd71 | [
"Add Parameter"
] | [] | src/main/java/de/adorsys/keycloak/config/properties/ImportConfigProperties.java | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2021 adorsys GmbH(...TRUNCATED) | "/*-\n * ---license-start\n * keycloak-config-cli\n * ---\n * Copyright (C) 2017 - 2021 adorsys GmbH(...TRUNCATED) | "diff --git a/src/main/java/de/adorsys/keycloak/config/properties/ImportConfigProperties.java b/src/(...TRUNCATED) | null | true | true | [] | [] | 2026-02-25T11:58:36 | Apache-2.0 | 12 |
Java Refactoring Benchmark
Task
Given a Java source file before a refactoring and the refactoring type, produce the refactored file.
Schema
instance_id— unique identifierrepo— GitHub repo (owner/name)language— "java"base_commit— parent SHA (before state)merge_commit— commit where refactoring was appliedrefactoring_types— list of RefactoringMiner type names detected in this commitrefactoring_descriptions— corresponding human-readable descriptionsfile_path— primary changed Java file (most lines changed)source_code_before— full file content before refactoringsource_code_after— full file content after refactoring (ground truth)diff— full unified diff of the commit (all changed files)is_pure_refactoring— null = not yet checked; true = no extraneous changescompile_before/compile_after— null = not yet verifiedPASS_TO_PASS/FAIL_TO_PASS— null = not yet verifiedcreated_at— commit timestamp (ISO 8601)repo_license— SPDX license of the source repolines_changed— total lines changed in the commit
Split
test: 5857 instances from 23 repos
Refactoring types
{ "Change Variable Type": 2443, "Add Method Annotation": 2338, "Change Return Type": 1690, "Change Parameter Type": 1595, "Extract Method": 1398, "Add Parameter": 1351, "Rename Method": 1306, "Extract Variable": 1283, "Change Method Access Modifier": 1183, "Rename Variable": 1089, "Remove Method Annotation": 1018, "Change Attribute Type": 957, "Rename Parameter": 852, "Remove Thrown Exception Type": 738, "Add Attribute Modifier": 656, "Remove Parameter": 611, "Inline Variable": 595, "Extract And Move Method": 586, "Change Attribute Access Modifier": 572, "Rename Attribute": 517, "Move Method": 510, "Add Class Annotation": 419, "Pull Up Method": 392, "Encapsulate Attribute": 310, "Modify Method Annotation": 287, "Move Class": 282, "Add Attribute Annotation": 270, "Add Method Modifier": 263, "Add Thrown Exception Type": 238, "Rename Class": 235, "Change Class Access Modifier": 224, "Modify Class Annotation": 213, "Replace Variable With Attribute": 212, "Remove Attribute Modifier": 211, "Inline Method": 207, "Move Code": 196, "Remove Class Annotation": 192, "Parameterize Variable": 186, "Add Parameter Modifier": 185, "Pull Up Attribute": 182, "Invert Condition": 175, "Remove Method Modifier": 174, "Add Parameter Annotation": 168, "Move Attribute": 155, "Extract Attribute": 154, "Add Variable Modifier": 148, "Extract Class": 144, "Remove Attribute Annotation": 142, "Move And Rename Method": 133, "Change Thrown Exception Type": 128, "Move And Inline Method": 128, "Push Down Method": 127, "Remove Parameter Modifier": 109, "Assert Throws": 105, "Remove Parameter Annotation": 90, "Replace Generic With Diamond": 90, "Replace Attribute With Variable": 84, "Move And Rename Class": 81, "Move Source Folder": 81, "Localize Parameter": 80, "Merge Conditional": 80, "Add Class Modifier": 71, "Split Conditional": 70, "Replace Anonymous With Lambda": 59, "Remove Class Modifier": 57, "Extract Superclass": 56, "Remove Variable Modifier": 55, "Extract Fixture": 52, "Replace Conditional With Ternary": 48, "Inline Attribute": 43, "Modify Attribute Annotation": 41, "Replace Anonymous With Class": 37, "Try With Resources": 32, "Change Type Declaration Kind": 31, "Merge Parameter": 28, "Push Down Attribute": 25, "Extract Interface": 24, "Parameterize Attribute": 23, "Reorder Parameter": 23, "Split Parameter": 20, "Split Method": 16, "Rename Package": 14, "Merge Variable": 14, "Move And Rename Attribute": 13, "Extract Subclass": 12, "Move Package": 11, "Replace Loop With Pipeline": 10, "Replace Pipeline With Loop": 10, "Parameterize Test": 9, "Remove Variable Annotation": 9, "Merge Attribute": 9, "Merge Catch": 9, "Split Attribute": 8, "Add Variable Annotation": 7, "Modify Parameter Annotation": 6, "Replace Conditional With Assumption": 6, "Merge Class": 5, "Replace Attribute": 5, "Collapse Hierarchy": 4, "Merge Method": 3, "Split Class": 2, "Split Variable": 1 }
Detection
Mined using RefactoringMiner 3.1.3.
- Downloads last month
- 97