Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASTDiff: Update snapshot #788

Merged
merged 3 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,7 @@ public class Constants {
public static final String INITIALIZER = "Initializer";
public static final String QUALIFIED_NAME = "QualifiedName";
public static final String CLASS_INSTANCE_CREATION = "ClassInstanceCreation";

public static final String LINE_COMMENT = "LineComment";
public static final String BLOCK_COMMENT = "BlockComment";
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

public class BenchmarkUtilityRunner {
public static void main(String[] args) {
System.setProperty("rm.jdt.comments", "false");
// Create instances of command classes
AddCommand addCommand = new AddCommand();
RemoveCommand removeCommand = new RemoveCommand();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3020,74 +3020,8 @@
"firstParentType" : "Block",
"secondParentType" : "Block",
"firstPos" : 4607,
"secondPos" : 4848,
"firstEndPos" : 4658,
"secondEndPos" : 4864
}, {
"firstType" : "MethodInvocation",
"secondType" : "MethodInvocation",
"firstLabel" : "",
"secondLabel" : "",
"firstParentType" : "ExpressionStatement",
"secondParentType" : "ExpressionStatement",
"firstPos" : 4607,
"secondPos" : 4848,
"firstEndPos" : 4657,
"secondEndPos" : 4863
}, {
"firstType" : "METHOD_INVOCATION_RECEIVER",
"secondType" : "METHOD_INVOCATION_RECEIVER",
"firstLabel" : "",
"secondLabel" : "",
"firstParentType" : "MethodInvocation",
"secondParentType" : "MethodInvocation",
"firstPos" : 4607,
"secondPos" : 4848,
"firstEndPos" : 4613,
"secondEndPos" : 4854
}, {
"firstType" : "SimpleName",
"secondType" : "SimpleName",
"firstLabel" : "tokens",
"secondLabel" : "tokens",
"firstParentType" : "METHOD_INVOCATION_RECEIVER",
"secondParentType" : "METHOD_INVOCATION_RECEIVER",
"firstPos" : 4607,
"secondPos" : 4848,
"firstEndPos" : 4613,
"secondEndPos" : 4854
}, {
"firstType" : "SimpleName",
"secondType" : "SimpleName",
"firstLabel" : "add",
"secondLabel" : "add",
"firstParentType" : "MethodInvocation",
"secondParentType" : "MethodInvocation",
"firstPos" : 4614,
"secondPos" : 4855,
"firstEndPos" : 4617,
"secondEndPos" : 4858
}, {
"firstType" : "METHOD_INVOCATION_ARGUMENTS",
"secondType" : "METHOD_INVOCATION_ARGUMENTS",
"firstLabel" : "",
"secondLabel" : "",
"firstParentType" : "MethodInvocation",
"secondParentType" : "MethodInvocation",
"firstPos" : 4618,
"secondPos" : 4859,
"firstEndPos" : 4656,
"secondEndPos" : 4862
}, {
"firstType" : "ExpressionStatement",
"secondType" : "ExpressionStatement",
"firstLabel" : "",
"secondLabel" : "",
"firstParentType" : "Block",
"secondParentType" : "Block",
"firstPos" : 4679,
"secondPos" : 4926,
"firstEndPos" : 4747,
"firstEndPos" : 4658,
"secondEndPos" : 4963
}, {
"firstType" : "MethodInvocation",
Expand All @@ -3096,9 +3030,9 @@
"secondLabel" : "",
"firstParentType" : "ExpressionStatement",
"secondParentType" : "ExpressionStatement",
"firstPos" : 4679,
"firstPos" : 4607,
"secondPos" : 4926,
"firstEndPos" : 4746,
"firstEndPos" : 4657,
"secondEndPos" : 4962
}, {
"firstType" : "METHOD_INVOCATION_RECEIVER",
Expand All @@ -3107,9 +3041,9 @@
"secondLabel" : "",
"firstParentType" : "MethodInvocation",
"secondParentType" : "MethodInvocation",
"firstPos" : 4679,
"firstPos" : 4607,
"secondPos" : 4926,
"firstEndPos" : 4685,
"firstEndPos" : 4613,
"secondEndPos" : 4932
}, {
"firstType" : "SimpleName",
Expand All @@ -3118,9 +3052,9 @@
"secondLabel" : "tokens",
"firstParentType" : "METHOD_INVOCATION_RECEIVER",
"secondParentType" : "METHOD_INVOCATION_RECEIVER",
"firstPos" : 4679,
"firstPos" : 4607,
"secondPos" : 4926,
"firstEndPos" : 4685,
"firstEndPos" : 4613,
"secondEndPos" : 4932
}, {
"firstType" : "SimpleName",
Expand All @@ -3129,9 +3063,9 @@
"secondLabel" : "add",
"firstParentType" : "MethodInvocation",
"secondParentType" : "MethodInvocation",
"firstPos" : 4686,
"firstPos" : 4614,
"secondPos" : 4933,
"firstEndPos" : 4689,
"firstEndPos" : 4617,
"secondEndPos" : 4936
}, {
"firstType" : "METHOD_INVOCATION_ARGUMENTS",
Expand All @@ -3140,9 +3074,9 @@
"secondLabel" : "",
"firstParentType" : "MethodInvocation",
"secondParentType" : "MethodInvocation",
"firstPos" : 4690,
"firstPos" : 4618,
"secondPos" : 4937,
"firstEndPos" : 4745,
"firstEndPos" : 4656,
"secondEndPos" : 4961
}, {
"firstType" : "MethodInvocation",
Expand All @@ -3151,9 +3085,9 @@
"secondLabel" : "",
"firstParentType" : "METHOD_INVOCATION_ARGUMENTS",
"secondParentType" : "METHOD_INVOCATION_ARGUMENTS",
"firstPos" : 4690,
"firstPos" : 4618,
"secondPos" : 4937,
"firstEndPos" : 4745,
"firstEndPos" : 4656,
"secondEndPos" : 4961
}, {
"firstType" : "METHOD_INVOCATION_RECEIVER",
Expand All @@ -3162,9 +3096,9 @@
"secondLabel" : "",
"firstParentType" : "MethodInvocation",
"secondParentType" : "MethodInvocation",
"firstPos" : 4690,
"firstPos" : 4618,
"secondPos" : 4937,
"firstEndPos" : 4695,
"firstEndPos" : 4623,
"secondEndPos" : 4942
}, {
"firstType" : "SimpleName",
Expand All @@ -3173,9 +3107,9 @@
"secondLabel" : "token",
"firstParentType" : "METHOD_INVOCATION_RECEIVER",
"secondParentType" : "METHOD_INVOCATION_RECEIVER",
"firstPos" : 4690,
"firstPos" : 4618,
"secondPos" : 4937,
"firstEndPos" : 4695,
"firstEndPos" : 4623,
"secondEndPos" : 4942
}, {
"firstType" : "SimpleName",
Expand All @@ -3184,9 +3118,9 @@
"secondLabel" : "substring",
"firstParentType" : "MethodInvocation",
"secondParentType" : "MethodInvocation",
"firstPos" : 4696,
"firstPos" : 4624,
"secondPos" : 4943,
"firstEndPos" : 4705,
"firstEndPos" : 4633,
"secondEndPos" : 4952
}, {
"firstType" : "METHOD_INVOCATION_ARGUMENTS",
Expand All @@ -3195,120 +3129,109 @@
"secondLabel" : "",
"firstParentType" : "MethodInvocation",
"secondParentType" : "MethodInvocation",
"firstPos" : 4706,
"firstPos" : 4634,
"secondPos" : 4953,
"firstEndPos" : 4744,
"firstEndPos" : 4655,
"secondEndPos" : 4960
}, {
"firstType" : "InfixExpression",
"secondType" : "InfixExpression",
"firstType" : "Block",
"secondType" : "Block",
"firstLabel" : "",
"secondLabel" : "",
"firstParentType" : "METHOD_INVOCATION_ARGUMENTS",
"secondParentType" : "METHOD_INVOCATION_ARGUMENTS",
"firstPos" : 4706,
"secondPos" : 4953,
"firstEndPos" : 4728,
"secondEndPos" : 4960
"firstParentType" : "IfStatement",
"secondParentType" : "IfStatement",
"firstPos" : 4803,
"secondPos" : 4826,
"firstEndPos" : 4861,
"secondEndPos" : 5003
}, {
"firstType" : "ExpressionStatement",
"secondType" : "ExpressionStatement",
"firstLabel" : "",
"secondLabel" : "",
"firstParentType" : "Block",
"secondParentType" : "Block",
"firstPos" : 4825,
"secondPos" : 4848,
"firstEndPos" : 4843,
"secondEndPos" : 4864
}, {
"firstType" : "MethodInvocation",
"secondType" : "MethodInvocation",
"firstLabel" : "",
"secondLabel" : "",
"firstParentType" : "InfixExpression",
"secondParentType" : "VariableDeclarationFragment",
"firstPos" : 4706,
"secondPos" : 4549,
"firstEndPos" : 4724,
"secondEndPos" : 4567
"firstParentType" : "ExpressionStatement",
"secondParentType" : "ExpressionStatement",
"firstPos" : 4825,
"secondPos" : 4848,
"firstEndPos" : 4842,
"secondEndPos" : 4863
}, {
"firstType" : "METHOD_INVOCATION_RECEIVER",
"secondType" : "METHOD_INVOCATION_RECEIVER",
"firstLabel" : "",
"secondLabel" : "",
"firstParentType" : "MethodInvocation",
"secondParentType" : "MethodInvocation",
"firstPos" : 4706,
"secondPos" : 4549,
"firstEndPos" : 4711,
"secondEndPos" : 4554
"firstPos" : 4825,
"secondPos" : 4848,
"firstEndPos" : 4831,
"secondEndPos" : 4854
}, {
"firstType" : "SimpleName",
"secondType" : "SimpleName",
"firstLabel" : "token",
"secondLabel" : "token",
"firstLabel" : "tokens",
"secondLabel" : "tokens",
"firstParentType" : "METHOD_INVOCATION_RECEIVER",
"secondParentType" : "METHOD_INVOCATION_RECEIVER",
"firstPos" : 4706,
"secondPos" : 4549,
"firstEndPos" : 4711,
"secondEndPos" : 4554
"firstPos" : 4825,
"secondPos" : 4848,
"firstEndPos" : 4831,
"secondEndPos" : 4854
}, {
"firstType" : "SimpleName",
"secondType" : "SimpleName",
"firstLabel" : "indexOf",
"secondLabel" : "indexOf",
"firstLabel" : "add",
"secondLabel" : "add",
"firstParentType" : "MethodInvocation",
"secondParentType" : "MethodInvocation",
"firstPos" : 4712,
"secondPos" : 4555,
"firstEndPos" : 4719,
"secondEndPos" : 4562
}, {
"firstType" : "CharacterLiteral",
"secondType" : "CharacterLiteral",
"firstLabel" : "'='",
"secondLabel" : "'='",
"firstParentType" : "METHOD_INVOCATION_ARGUMENTS",
"secondParentType" : "METHOD_INVOCATION_ARGUMENTS",
"firstPos" : 4720,
"secondPos" : 4563,
"firstEndPos" : 4723,
"secondEndPos" : 4566
"firstPos" : 4832,
"secondPos" : 4855,
"firstEndPos" : 4835,
"secondEndPos" : 4858
}, {
"firstType" : "METHOD_INVOCATION_ARGUMENTS",
"secondType" : "METHOD_INVOCATION_ARGUMENTS",
"firstLabel" : "",
"secondLabel" : "",
"firstParentType" : "MethodInvocation",
"secondParentType" : "MethodInvocation",
"firstPos" : 4720,
"secondPos" : 4563,
"firstEndPos" : 4723,
"secondEndPos" : 4566
}, {
"firstType" : "INFIX_EXPRESSION_OPERATOR",
"secondType" : "INFIX_EXPRESSION_OPERATOR",
"firstLabel" : "+",
"secondLabel" : "+",
"firstParentType" : "InfixExpression",
"secondParentType" : "InfixExpression",
"firstPos" : 4725,
"secondPos" : 4957,
"firstEndPos" : 4726,
"secondEndPos" : 4958
"firstPos" : 4836,
"secondPos" : 4859,
"firstEndPos" : 4841,
"secondEndPos" : 4862
}, {
"firstType" : "NumberLiteral",
"secondType" : "NumberLiteral",
"firstLabel" : "1",
"secondLabel" : "1",
"firstParentType" : "InfixExpression",
"secondParentType" : "InfixExpression",
"firstPos" : 4727,
"secondPos" : 4959,
"firstEndPos" : 4728,
"secondEndPos" : 4960
"firstType" : "SimpleName",
"secondType" : "SimpleName",
"firstLabel" : "token",
"secondLabel" : "token",
"firstParentType" : "METHOD_INVOCATION_ARGUMENTS",
"secondParentType" : "METHOD_INVOCATION_RECEIVER",
"firstPos" : 4836,
"secondPos" : 4549,
"firstEndPos" : 4841,
"secondEndPos" : 4554
}, {
"firstType" : "Block",
"secondType" : "Block",
"firstLabel" : "",
"secondLabel" : "",
"firstParentType" : "IfStatement",
"secondParentType" : "IfStatement",
"firstPos" : 4803,
"secondPos" : 4826,
"firstEndPos" : 4861,
"secondEndPos" : 5003
"firstType" : "SimpleName",
"secondType" : "SimpleName",
"firstLabel" : "token",
"secondLabel" : "token",
"firstParentType" : "METHOD_INVOCATION_ARGUMENTS",
"secondParentType" : "METHOD_INVOCATION_RECEIVER",
"firstPos" : 4836,
"secondPos" : 4618,
"firstEndPos" : 4841,
"secondEndPos" : 4623
}, {
"firstType" : "IfStatement",
"secondType" : "IfStatement",
Expand Down
Loading