name
stringclasses 23
values | new_args
stringclasses 9
values | new_implementation
stringlengths 12
1.15k
| new_return_type
stringlengths 2
39
| new_signature
stringlengths 13
87
| old_args
stringclasses 9
values | old_implementation
stringlengths 12
1.19k
| old_return_type
stringlengths 2
48
| old_signature
stringlengths 9
105
| new_name
stringlengths 4
57
| old_name
stringlengths 2
54
| gpt_name
stringlengths 3
49
| mistral_name
stringlengths 4
61
| gpt_jaccard_distance
float64 0
1
| gpt_05_jaccard_class
int64 0
1
| gpt_07_jaccard_class
int64 0
1
| gpt_08_jaccard_class
int64 0
1
| gpt_09_jaccard_class
int64 0
1
| mistral_jaccard_distance
float64 0.2
1
| mistral_05_jaccard_class
int64 0
1
| mistral_07_jaccard_class
int64 0
1
| mistral_08_jaccard_class
int64 0
1
| mistral_09_jaccard_class
int64 0
1
| llama_name
stringlengths 4
59
| llama_jaccard_distance
float64 0.29
1
| llama_05_jaccard_class
int64 0
1
| llama_07_jaccard_class
int64 0
1
| llama_08_jaccard_class
int64 0
1
| llama_09_jaccard_class
int64 0
1
| preserve
int64 0
1
| change
int64 0
0
| narrow
int64 0
5
| broaden
int64 0
5
| add
int64 0
2
| remove
int64 0
2
| result
stringclasses 5
values | result2
stringclasses 2
values | form_type
stringclasses 4
values |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
nasa$certware
|
return cCommentsKeyword_12_0;
|
Keyword
|
Keyword getCommentsKeyword_12_0()
|
return cUnitsKeyword_1_0_8;
|
Keyword
|
Keyword getUnitsKeyword_1_0_8()
|
getCommentsKeyword_12_0
|
getUnitsKeyword_1_0_8
|
getKeywordUnits
|
getCCommentsKeyword_12_0
| 0.578947 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 |
cCommentsKeyword_12_0
| 0.888889 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 2 |
remove
|
change
|
Complex
|
||
graphstream$gs-core
|
return getId();
|
String
|
String myGraphId()
|
return getId();
//return time.newEvent();
|
String
|
String getMyGraphId()
|
myGraphId
|
getMyGraphId
|
getGraphId
|
getIdMethod
| 0.583333 | 1 | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 |
getMyGraphId
| 0.615385 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
remove
|
change
|
Simple
|
||
jsr107$jsr107tck
|
assertEquals(0, cacheWriter.getWriteCount());
assertEquals(0, cacheWriter.getDeleteCount());
cache.put(1, "Gudday World");
cache.invoke(1, new Cache.EntryProcessor<Integer, String, Void>() {
@Override
public Void process(Cache.MutableEntry<Integer, String> entry, Object... arguments) {
entry.remove();
return null;
|
void
|
void invoke_RemoveEntry()
|
assertEquals(0, cacheWriter.getWriteCount());
assertEquals(0, cacheWriter.getDeleteCount());
cache.put(1, "Gudday World");
cache.invoke(1, new Cache.EntryProcessor<Integer, String, Void>() {
@Override
public Void process(Cache.MutableEntry<Integer, String> entry, Object... arguments) {
entry.remove();
return null;
|
void
|
void shouldWriteThroughUsingInvoke_remove()
|
invoke_RemoveEntry
|
shouldWriteThroughUsingInvoke_remove
|
testWriteThroughUsingInvokeRemove
|
checkAndClearCache
| 0.47619 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 |
ensureCacheIsCleanAfterInvoke
| 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 2 |
remove
|
change
|
Complex
|
||
adangel$pmd
|
return x;
public String getY() {
return y;
public void setX(String n) {
x = n;
public void setY(String n) {
y = n;
public static class NestedClass {
public NestedClass() {
|
String
|
String getX()
|
return x2;
public String getY2() {
return y2;
public void setX2(String n) {
x2 = n;
public void setY2(String n) {
y2 = n;
public void mymethod12() {
|
String
|
String getX2()
|
getX
|
getX2
|
getX
|
getY
| 1 | 1 | 1 | 1 | 1 | 0.6 | 1 | 0 | 0 | 0 |
getY
| 0.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
remove
|
change
|
Simple
|
||
cloudname$cloudname
|
callCounter++;
|
void
|
void instance1()
|
callCounter++;
|
void
|
void i1()
|
instance1
|
i1
|
incrementCallCounter
|
incrementCallCounter
| 0.428571 | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 |
incrementCounter
| 0.384615 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 |
preserve
|
change
|
Simple
|
||
jenkinsci$jacoco-plugin
|
return maxComplexity;
|
int
|
int getMaxComplexity()
|
return maxMissedComplexity;
|
int
|
int getMaxMissedComplexity()
|
getMaxComplexity
|
getMaxMissedComplexity
|
getMaxComplexity
|
getMaxComplexity
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
getMaximumComplexity
| 0.928571 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
remove
|
change
|
Simple
|
||
jenkinsci$jacoco-plugin
|
int maxClazz
|
this.maxClazz = maxClazz;
|
void
|
void setMaxClazz(int maxClazz)
|
int maxClazz
|
this.maxCoveredClazz = maxClazz;
|
void
|
void setMaxCoveredClazz(int maxClazz)
|
setMaxClazz
|
setMaxCoveredClazz
|
setMaxCoveredClazz
|
setMaxClazz
| 0.692308 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 |
updateMaxClazz
| 0.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
remove
|
change
|
Simple
|
davidrea$deacon
|
return payload;
public String getChannel() {
return channel;
|
String
|
String getPayload()
|
return response;
public void setResponse(String resp){
response = resp;
|
String
|
String getResponse()
|
getPayload
|
getResponse
|
getResponse
|
getChannelWithPayloadReturn
| 0.307692 | 0 | 0 | 0 | 0 | 0.529412 | 1 | 0 | 0 | 0 |
getChannelString
| 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 |
narrow
|
change
|
Simple
|
||
mitreid-connect$openid-connect-java-spring-server
|
boolean structured
|
this.structured = structured;
/**
* @return the structuredValue
*/
@Transient // we don't save the value of a system scope separately
public String getStructuredValue() {
return structuredValue;
|
void
|
void setStructured(boolean structured)
|
boolean isStructured
|
this.structured = isStructured;
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + (allowDynReg ? 1231 : 1237);
result = prime * result + (defaultScope ? 1231 : 1237);
result = prime * result + (structured ? 1231 : 1237);
result = prime * result + ((description == null) ? 0 : description.hashCode());
result = prime * result + ((icon == null) ? 0 : icon.hashCode());
result = prime * result + ((id == null) ? 0 : id.hashCode());
result = prime * result + ((value == null) ? 0 : value.hashCode());
return result;
|
void
|
void setIsStructured(boolean isStructured)
|
setStructured
|
setIsStructured
|
setStructured
|
setStructured
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
setStructuredValue
| 0.727273 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
remove
|
change
|
Simple
|
splunk$splunk-sdk-java
|
Map<String, Object> args = getStandardArgs();
args.put("cookie", (String) validCookie);
Service s = new Service(args);
Map<String, Object> args = getStandardArgs();
args.put("cookie", (String) "bad=cookie");
Service s = new Service(args);
@Test
public void testHttpServiceWithValidCookie() {
String validCookie = service.stringifyCookies();
HttpService httpService;
httpService = new HttpService(
(String)command.opts.get("host"),
(Integer)command.opts.get("port"),
(String)command.opts.get("scheme")
);
httpService.addCookie(validCookie);
httpService.get("/services/authentication/users");
Assert.assertEquals(validCookie, httpService.stringifyCookies());
|
void
|
void testAuthenticationFailsWithNoCookieOrLogin()
|
Service s = new Service(service.getHost(), service.getPort());
s.addCookie(validCookie);
Service s = new Service(service.getHost(), service.getPort());
s.addCookie("bad=cookie");
// @Test
// public void testTokenNotSentIfCookiePresent() {
// Assert.assertNotEquals(service.stringifyCookies().length(), 0);
// service.get("/services/authentication/users").getHeader().
//
|
void
|
void testLoginFailsWithNoCookieOrLogin()
|
testAuthenticationFailsWithNoCookieOrLogin
|
testLoginFailsWithNoCookieOrLogin
|
testHttpServiceWithValidCookie
|
testHttpServiceWithValidCookieSetup
| 0.481481 | 0 | 0 | 0 | 0 | 0.518519 | 1 | 0 | 0 | 0 |
testHttpServiceWithValidCookieAndNoLogin
| 0.666667 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
preserve
|
preserve
|
Reordering
|
||
grundid$nfctools
|
return uri != null;
|
boolean
|
boolean hasUri()
|
return uri != null;
|
boolean
|
boolean hasURI()
|
hasUri
|
hasURI
|
hasURI
|
hasValidURI
| 0.5 | 0 | 0 | 0 | 0 | 0.454545 | 0 | 0 | 0 | 0 |
isURIPresent
| 0.333333 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
preserve
|
preserve
|
Formatting
|
||
linqs$psl
|
return getRuleContext(LogicalRuleContext.class,0);
public ArithmeticRuleContext arithmeticRule() {
return getRuleContext(ArithmeticRuleContext.class,0);
public PslRuleContext(ParserRuleContext parent, int invokingState) {
@Override public int getRuleIndex() { return RULE_pslRule;
|
LogicalRuleContext
|
LogicalRuleContext logicalRule()
|
return getRuleContext(Logical_ruleContext.class,0);
public Arithmetic_ruleContext arithmetic_rule() {
return getRuleContext(Arithmetic_ruleContext.class,0);
public Psl_ruleContext(ParserRuleContext parent, int invokingState) {
@Override public int getRuleIndex() { return RULE_psl_rule;
|
Logical_ruleContext
|
Logical_ruleContext logical_rule()
|
logicalRule
|
logical_rule
|
logicalRule
|
getLogicalRuleContext
| 1 | 1 | 1 | 1 | 1 | 0.642857 | 1 | 0 | 0 | 0 |
arithmeticContext
| 0.3125 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
preserve
|
preserve
|
Formatting
|
||
hidendra$lwc
|
String player
|
player.sendMessage(" ");
player.sendMessage(" ");
player.sendMessage(Colors.LightGreen + "/lwc -c - View creation help");
player.sendMessage(Colors.LightGreen + "/lwc -c <public|private|password>");
player.sendMessage(Colors.LightGreen + "/lwc -m - Modify an existing private protection");
player.sendMessage(Colors.LightGreen + "/lwc -u - Unlock a password protected entity");
player.sendMessage(Colors.LightGreen + "/lwc -i - View information on a protected Chest or Furnace");
player.sendMessage(Colors.LightGreen + "/lwc -r <chest|furnace|modes>");
player.sendMessage(Colors.LightGreen + "/lwc -p <persist|droptransfer>"); // TODO: dynamic
if (isAdmin(player)) {
/**
* Check if a player is in a cuboid safe zone. When calling this, you can assume
* the result WILL be false if CuboidPlugin is not enabled OR the config option
* CUBOID_SAFE_AREAS is FALSE
*
* @param player
* @return
*/
public boolean isInCuboidSafeZone(Player player) {
/* Check if the config option is enabled. If it isn't.. well, don't continue! */
if(!ConfigValues.CUBOID_SAFE_AREAS.getBool()) {
return false;
|
boolean
|
boolean isPlayerDropTransferring(String player)
|
String player
|
player.sendMessage("");
player.sendMessage(Colors.Green + " Commands:");
player.sendMessage(Colors.LightGreen + "/lwc create - View detailed info on protection types");
player.sendMessage(Colors.LightGreen + "/lwc create public - Create a public protection");
player.sendMessage(Colors.LightGreen + "/lwc create password - Create a password protected entity");
player.sendMessage(Colors.LightGreen + "/lwc create private - Create a private protection");
player.sendMessage("");
player.sendMessage(Colors.LightGreen + "/lwc modify - Modify a protected entity");
player.sendMessage("");
player.sendMessage(Colors.LightGreen + "/lwc free entity - Remove a protected entity");
player.sendMessage(Colors.LightGreen + "/lwc free modes - Remove temporary modes on you");
player.sendMessage("");
player.sendMessage(Colors.LightGreen + "/lwc unlock - Unlock a password protected entity");
player.sendMessage(Colors.LightGreen + "/lwc info - View information on a protected entity");
player.sendMessage("");
if (!isModeBlacklisted("persist")) {
player.sendMessage(Colors.LightGreen + "/lwc persist - Allow use of 1 command multiple times");
|
boolean
|
boolean playerIsDropTransferring(String player)
|
isPlayerDropTransferring
|
playerIsDropTransferring
|
playerIsDropTransferring
|
displayLWCInfo
| 0.875 | 1 | 1 | 1 | 0 | 0.45 | 0 | 0 | 0 | 0 |
isInCuboidSafeZone
| 0.318182 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
preserve
|
preserve
|
Reordering
|
wocommunity$wonder
|
return _objectList;
|
List
|
List getObjectList()
|
return _objectList;
|
List
|
List get_objectList()
|
getObjectList
|
get_objectList
|
getObjectList
|
getObjectListWithModifiedReturnType
| 1 | 1 | 1 | 1 | 1 | 0.434783 | 0 | 0 | 0 | 0 |
modifiedObjectList
| 0.642857 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
preserve
|
preserve
|
Formatting
|
||
iee$iee
|
return cAdditionLeftAction_1_0_1;
|
Action
|
Action getAdditionLeftAction_1_0_1()
|
return cAdditionLeftAction_1_0_0;
|
Action
|
Action getAdditionLeftAction_1_0_0()
|
getAdditionLeftAction_1_0_1
|
getAdditionLeftAction_1_0_0
|
getAdditionLeftAction_1_0_1
|
getModifiedAdditionLeftAction
| 1 | 1 | 1 | 1 | 1 | 0.733333 | 1 | 1 | 0 | 0 |
cAdditionLeftAction_1_0_1
| 0.928571 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
preserve
|
preserve
|
Reordering
|
||
presage$presage2
|
return this;
|
Vector3D
|
Vector3D getVector()
|
Move m
|
return this;
|
Location
|
Location add(Move m)
|
getVector
|
add
|
add
|
AddAndReturnSelf
| 0 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 |
addWithVector
| 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
narrow
|
change
|
Simple
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.