Skip to content

Commit

Permalink
Update oracle with new refactoring instances
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Mar 23, 2024
1 parent 7ae8abe commit 3ae58f1
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public void testAllRefactorings() throws Exception {
GitHistoryRefactoringMinerImpl detector = new GitHistoryRefactoringMinerImpl();
TestBuilder test = new TestBuilder(detector, REPOS, Refactorings.All.getValue());
RefactoringPopulator.feedRefactoringsInstances(Refactorings.All.getValue(), Systems.FSE.getValue(), test);
test.assertExpectationsWithGitHubAPI(12133, 20, 240);
test.assertExpectationsWithGitHubAPI(12148, 20, 240);
}
}
105 changes: 105 additions & 0 deletions src/test/resources/oracle/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -25135,6 +25135,13 @@
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond ArrayList<Object> with ArrayList<> in attribute private keys : List<Object> from class org.infinispan.stats.BaseTxClusterExtendedStatisticLogicTest",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}],
"refDiffExecutionTime": 7011
}, {
Expand Down Expand Up @@ -40523,6 +40530,13 @@
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond LinkedList<ResourceFinder> with LinkedList<> in attribute private stack : Deque<ResourceFinder> from class org.glassfish.jersey.server.internal.scanning.CompositeResourceFinder",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}],
"refDiffExecutionTime": 6782
}, {
Expand Down Expand Up @@ -69404,6 +69418,27 @@
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond ConcurrentLinkedQueue<Page<V>> with ConcurrentLinkedQueue<> in attribute private clock : Queue<Page<V>> from class org.neo4j.kernel.impl.cache.ClockCache",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond ConcurrentHashMap<K,Page<V>> with ConcurrentHashMap<> in attribute private cache : Map<K,Page<V>> from class org.neo4j.kernel.impl.cache.ClockCache",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond HashMap<String,ConsoleSessionCreator> with HashMap<> in attribute private engineCreators : Map<String,ConsoleSessionCreator> from class org.neo4j.server.rest.management.console.SessionFactoryImpl",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}],
"refDiffExecutionTime": 10292
}, {
Expand Down Expand Up @@ -79245,6 +79280,34 @@
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond InjectedValue<ProtocolDefaults> with InjectedValue<> in attribute private defaults : InjectedValue<ProtocolDefaults> from class org.infinispan.server.jgroups.subsystem.JChannelFactoryBuilder",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond InjectedValue<ServerEnvironment> with InjectedValue<> in attribute private environment : InjectedValue<ServerEnvironment> from class org.infinispan.server.jgroups.subsystem.JChannelFactoryBuilder",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond LinkedList<ProtocolConfiguration> with LinkedList<> in attribute private protocols : List<ValueDependency<ProtocolConfiguration>> from class org.infinispan.server.jgroups.subsystem.JChannelFactoryBuilder",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond HashMap<String,Map<String,String>> with HashMap<> in attribute private map : Map<String,Map<String,String>> from class org.infinispan.server.jgroups.subsystem.ProtocolDefaultsBuilder",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}],
"refDiffExecutionTime": 3908
}, {
Expand Down Expand Up @@ -85588,6 +85651,13 @@
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond HashMap<String,Double> with HashMap<> in attribute private POS_SCORE : Map<String,Double> from class org.ansj.app.keyword.KeyWordComputer",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}],
"refDiffExecutionTime": 0
}, {
Expand Down Expand Up @@ -88236,6 +88306,13 @@
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond TreeMap<String,Cell> with TreeMap<> in attribute package rows : SortedMap<String,Cell> from class org.apache.hadoop.hive.metastore.hbase.TestHBaseStore",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}],
"refDiffExecutionTime": 55783
}, {
Expand Down Expand Up @@ -91706,6 +91783,13 @@
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond EnumMap<Verb,DroppedMessageMetrics> with EnumMap<> in attribute private droppedMessagesMap : Map<Verb,DroppedMessages> from class org.apache.cassandra.net.MessagingService",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}],
"refDiffExecutionTime": 4492
}, {
Expand Down Expand Up @@ -99380,6 +99464,13 @@
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond LinkedHashMap<ColumnIdentifier,Boolean> with LinkedHashMap<> in attribute package definedOrdering : Map<ColumnIdentifier,Boolean> from class org.apache.cassandra.cql3.statements.CFProperties",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}],
"refDiffExecutionTime": 11578
}, {
Expand Down Expand Up @@ -110743,6 +110834,20 @@
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond HashMap<String,ResourceBundle> with HashMap<> in attribute private BUNDLE_CACHE : Map<String,ResourceBundle> from class com.puppycrawl.tools.checkstyle.api.LocalizedMessage",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}, {
"type": "Replace Generic With Diamond",
"description": "Replace Generic With Diamond PackageObjectFactory with PackageObjectFactory in attribute private factory : PackageObjectFactory from class com.puppycrawl.tools.checkstyle.PackageObjectFactoryTest",
"comment": null,
"validation": "TP",
"detectionTools": "RefactoringMiner",
"validators": null
}],
"refDiffExecutionTime": null
}, {
Expand Down
18 changes: 9 additions & 9 deletions src/test/resources/oracle/expected.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ e19c6874431dc2c3046436c2ac249a0ab2ef3457, 2, 0, 0
55ffa2f3353c5dc77fe6b790e5e045b76a07a772, 2, 0, 0
84937551787072a4befac29fb48436b3187ac4c6, 25, 0, 1
5a38d0bca0e48853c3f7c00a0f098bada64797df, 42, 0, 1
a26b61201cd86c9a8773b418d9c84b446e95a601, 67, 0, 4
a26b61201cd86c9a8773b418d9c84b446e95a601, 70, 0, 4
74d2cc420e5590ba3bc0ffcc15b30b76a9cbef0b, 10, 0, 5
001de307492df8f84ad15f6aaa0bd1e748d4ce27, 154, 3, 8
4712de476aabe69cd762233c9641dd3cf9f8361b, 53, 0, 2
Expand Down Expand Up @@ -257,7 +257,7 @@ e3b0d87b3ca0fd27cec39937cb3dc3a05b0cfc4e, 4, 0, 0
2801269c7e47bd6e243612654a74cee809d20959, 2, 0, 0
ebb483320d971ff4d9e947309668f5da1fcd3d23, 7, 0, 0
ce1f3d07976de31aed8f8189ec5e1a6453f4b580, 7, 0, 0
ce4f6292d6350a2c6b82d995352fdf6d07042c9c, 103, 0, 2
ce4f6292d6350a2c6b82d995352fdf6d07042c9c, 104, 0, 2
a7401e5091c06c68fae499ea1972b40143c66fa9, 4, 0, 0
5a37c2aa596377cb4c9b6f916614407fd0a7d3db, 26, 0, 1
c97659888126e43e95f0d52d22188bfe194a8439, 301, 0, 0
Expand All @@ -269,7 +269,7 @@ c76e6e1f27a6697b3b88ad4ed710441b801afb3b, 2, 0, 1
d57b1401f874f96a53f1ec1c0f8a6089ae66a4ce, 46, 0, 1
d94ca2b27c9e8a5fa9fe19483d58d2f2ef024606, 13, 0, 0
ee5aa50af6b4586fbe92cab718abfae8113a81aa, 25, 0, 0
fab1516773d50bf86d9cc37e2f6db13496f0ecae, 109, 0, 0
fab1516773d50bf86d9cc37e2f6db13496f0ecae, 110, 0, 0
5b184ac783784c1ca4baf1437888c79bd9460763, 1, 0, 0
ed966510ccf8441115614e2258aea61df0ea55f5, 7, 0, 0
9aeefcd8120bb3b89cdb437d8c32d2ed84b8a825, 1, 0, 0
Expand All @@ -288,7 +288,7 @@ c8e09e2056c54ead97bce4386a25b222154223b1, 25, 0, 0
7ffc62aa554f5884064b81ee80078e35e3833006, 2, 0, 0
7837d0baf1aef45340eec699516a8c3a22aeb553, 1, 0, 0
1ef86e69d5a108c2b4d836b0634ebdea912cfe00, 4, 0, 0
913704e835169255530c7408cad11ce9a714d4ec, 158, 0, 4
913704e835169255530c7408cad11ce9a714d4ec, 159, 0, 4
95bfa40630e34f6f369e0055d9f37f49bca60247, 1, 0, 0
bf5ee44b3b576e01ab09cae9f50300417b01dc07, 480, 0, 0
2fd96c777164dd812e8b5a4294b162889601df1d, 7, 0, 0
Expand Down Expand Up @@ -335,7 +335,7 @@ e37d577b6cfc2d3e11252cef87ab9ebba72e1d52, 3, 0, 0
2b2bb6c734d106cdd1c0f4691607be2fe11d7ebb, 1, 0, 0
7f80425b6a0af9bdfef12c8a873676e39e0a04a6, 398, 2, 7
4fcd7d4d366d001cf5f1f7d926c608c902e3f0af, 2, 0, 0
573a1d115b86abbe3fb53ff930464d7d8fd95600, 17, 0, 0
573a1d115b86abbe3fb53ff930464d7d8fd95600, 18, 0, 0
ec52e77ecde749e7c5a483b26cbd8041f2a5a33c, 2, 0, 0
7fea4c9d5ee97d4a61ad985cadc9c5c0ab2db780, 118, 0, 0
664923815b5aeeba2025bfe1dc5a0cd1a02a80e2, 17, 0, 0
Expand All @@ -347,7 +347,7 @@ f797bfa4da53315b49f8d97b784047f33ba1bf5f, 87, 1, 1
92e98858e742bbb669ccbf790a71a618c581df21, 4, 0, 0
102b23b16bf26cbf439009b4b95542490a082710, 10, 0, 0
b8d2140fe4faccadcf1a6343ec8cd0cc58c315f9, 5, 0, 0
3bdcaa336a6e6a9727c333b433bb9f5d3afc0fb1, 52, 0, 0
3bdcaa336a6e6a9727c333b433bb9f5d3afc0fb1, 53, 0, 0
f664789737d516ac664462732664121acc111a1e, 3, 0, 0
abe6cd5d4614eb2ae3a78d85196f4d786d5886bd, 8, 0, 0
999e0e3616525d77cf46c5865f9981b5a6b5609a, 1, 0, 0
Expand Down Expand Up @@ -380,7 +380,7 @@ eb500cca282e39d01a9882e1d0a83186da6d1a26, 3, 0, 0
8707194f003444a9fb8e00bffa2893ef0c2492c6, 4, 0, 0
f36b736cf1206dd1af794d6fb4cee967a3553b1f, 1, 0, 0
d403a0b2322a74dde824094d67b7997c1c371883, 4, 0, 1
8f446b6ddf540e1b1fefca34dd10f45ba7256095, 332, 3, 19
8f446b6ddf540e1b1fefca34dd10f45ba7256095, 336, 3, 19
0bb4cca1105fc6eb86e7c4b75bfff3dbbd55f0c8, 4, 0, 0
c142b8ca3e9f9467931987ee16805cf53e6bc5d2, 5, 0, 0
d7f781da42e54824c17875a6036d3448672637f5, 10, 0, 0
Expand All @@ -395,7 +395,7 @@ c9c475a6c7a8cb728ba1c091b386db46f11a781f, 2, 0, 0
a07cae0aca9f9072256b3a5fd05779e8d69b9748, 8, 0, 0
febbc986cb25ed460ea601c0a68c7d2597f89ee4, 3, 0, 0
cdf3e56bacd3895262af8a1df9ca5c81f4071970, 2, 0, 0
de022d2434e58dd633fd50a7f9bb50565a8767b5, 81, 0, 0
de022d2434e58dd633fd50a7f9bb50565a8767b5, 83, 0, 0
9d44f0e06232661259681d64002dd53c7c43099d, 11, 0, 0
b6565814805dfb2d989be25c11d4fb4cf8fb1d84, 10, 0, 0
e4a309c160285708f917ea23238573da3b677f7f, 1, 0, 0
Expand Down Expand Up @@ -542,5 +542,5 @@ abba5d83602c7ae23901bd579ba9fbb7dc36adc0, 27, 0, 4
ab298886b59f4ad0235cd6d5764854189eb59eb6, 11, 0, 0
cf1efb6d27a4037cdbe5a780afa6053859a60d4a, 3, 0, 0
1b21ba4bcea986988d4bbd578e3bb9a20ec69606, 12, 0, 1
c53c6f45988db869d56abe3b1d831ff775f4fa73, 16, 0, 0
c53c6f45988db869d56abe3b1d831ff775f4fa73, 17, 0, 0
446e2537895c15b404a74107069a12f3fc404b15, 44, 2, 0

0 comments on commit 3ae58f1

Please sign in to comment.