Skip to content

Commit da7a9f9

Browse files
committed
Correction in benchmark 2
1 parent 3d4b5ba commit da7a9f9

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,11 +493,11 @@ As of **August 26, 2025** the precision and recall of RefactoringMiner on this b
493493
**Files**: [tse-dataset](https://github.com/tsantalis/RefactoringMiner/tree/master/src/test/resources/oracle/tse-dataset)
494494

495495
The original benchmark has been re-validated and corrected by Nikolaos Tsantalis. The validation process is still in progress.
496-
As of **September 5, 2025** the precision and recall of RefactoringMiner on this benchmark is:
496+
As of **September 8, 2025** the precision and recall of RefactoringMiner on this benchmark is:
497497

498498
| Refactoring Type | TP | FP | FN | Precision | Recall |
499499
|:-----------------------|-----------:|--------:|--------:|--------:|--------:|
500-
|**Total**|3254 | 109 | 198 | 0.968 | 0.943|
500+
|**Total**|3255 | 108 | 198 | 0.968 | 0.943|
501501
|Extract Method|362 | 4 | 11 | 0.989 | 0.971|
502502
|Rename Class|231 | 1 | 2 | 0.996 | 0.991|
503503
|Move Attribute|72 | 0 | 7 | 1.000 | 0.911|
@@ -519,7 +519,7 @@ As of **September 5, 2025** the precision and recall of RefactoringMiner on this
519519
|Extract And Move Method|109 | 8 | 18 | 0.932 | 0.858|
520520
|Move And Inline Method|26 | 1 | 12 | 0.963 | 0.684|
521521
|Replace Anonymous With Class| 5 | 0 | 0 | 1.000 | 1.000|
522-
|Extract Variable|259 | 8 | 28 | 0.970 | 0.902|
522+
|Extract Variable|260 | 7 | 28 | 0.974 | 0.903|
523523
|Extract Attribute| 3 | 0 | 0 | 1.000 | 1.000|
524524
|Inline Variable|99 | 6 | 27 | 0.943 | 0.786|
525525
|Rename Variable|290 | 17 | 15 | 0.945 | 0.951|

src/test/java/org/refactoringminer/test/TestNewDatasetRefactorings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ public void testAllRefactorings() throws Exception {
4848
.or(Refactorings.ReplacePipelineWithLoop.getValue());
4949
TestBuilder test = new TestBuilder(detector, REPOS, types);
5050
RefactoringPopulator.feedTSERefactoringInstances(test);
51-
test.assertExpectationsWithGitHubAPI(3254, 109, 198);
51+
test.assertExpectationsWithGitHubAPI(3255, 108, 198);
5252
}
5353
}

src/test/resources/oracle/tse-dataset/okhttp.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,11 @@
658658
"type": "INLINE_OPERATION",
659659
"description": "Inline Method\tprivate remapResponse(response Response) : Response inlined to public intercept(chain Chain) : Response in class okhttp3.URLConnectionTest.LegacyRedirectInterceptor",
660660
"validation": true
661+
},
662+
{
663+
"type": "EXTRACT_VARIABLE",
664+
"description": "Extract Variable\tcode : int in method public intercept(chain Chain) : Response from class okhttp3.URLConnectionTest.LegacyRedirectInterceptor",
665+
"validation": true
661666
}
662667
]
663668
},

0 commit comments

Comments
 (0)