Skip to content

Commit

Permalink
gumtree used version is updated to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
khesoem committed Oct 23, 2019
1 parent 3d3bedb commit b895eff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 157 deletions.
156 changes: 1 addition & 155 deletions coming_results/all_instances_found.json
Original file line number Diff line number Diff line change
@@ -1,157 +1,3 @@
{
"instances": [
{
"revision": "cardumen",
"repairability": [
{
"tool-name": "Cardumen",
"pattern-name": "Cardumen;expression_replacement",
"Unified_Diff_of-files:": "Starts Below...",
"CHANGE_old:": " minRatioPositions.add(i);",
"CHANGE_new:": " Precision.equals(entry, 0.0, maxUlps);",
"instance_detail": [
{
"pattern_action": "UPD",
"pattern_entity": {
"entity_type": "Expression",
"entity_new value": "*",
"entity_role": "*",
"entity_parent": "null"
},
"concrete_change": {
"operator": "UPD",
"src_type": "Invocation",
"dst_type": "Invocation",
"src": "minRatioPositions.add(i)",
"dst": "org.apache.commons.math3.util.Precision.equals(entry, 0.0, maxUlps)",
"src_parent_type": "Block",
"dst_parent_type": "Block",
"src_parent": "{\r\n minRatioPositions.add(i);\r\n}",
"dst_parent": "{\r\n org.apache.commons.math3.util.Precision.equals(entry, 0.0, maxUlps);\r\n}"
},
"line": 104,
"file": "D:\\Daneshgah\\phd-kth\\projects\\commit summarization\\template-based\\coming\\two",
"stats": {
"number_of_src_entities": 16,
"number_of_dst_entities": 26,
"src_entity_types": "[java.lang.Integer, int, java.util.List\u003cjava.lang.Integer\u003e, java.util.List]",
"dst_entity_types": "[org.apache.commons.math3.util.Precision, double, org.apache.commons.math3.optimization.linear.SimplexSolver]"
}
}
]
},
{
"tool-name": "Cardumen",
"pattern-name": "Cardumen;expression_replacement",
"Unified_Diff_of-files:": "Starts Below...",
"CHANGE_old:": " minRatioPositions.add(i);",
"CHANGE_new:": " Precision.equals(entry, 0.0, maxUlps);",
"instance_detail": [
{
"pattern_action": "UPD",
"pattern_entity": {
"entity_type": "Expression",
"entity_new value": "*",
"entity_role": "*",
"entity_parent": "null"
},
"concrete_change": {
"operator": "UPD",
"src_type": "VariableRead",
"dst_type": "VariableRead",
"src": "minRatioPositions",
"dst": "entry",
"src_parent_type": "Invocation",
"dst_parent_type": "Invocation",
"src_parent": "minRatioPositions.add(i)",
"dst_parent": "org.apache.commons.math3.util.Precision.equals(entry, 0.0, maxUlps)"
},
"line": 104,
"file": "D:\\Daneshgah\\phd-kth\\projects\\commit summarization\\template-based\\coming\\two",
"stats": {
"number_of_src_entities": 6,
"number_of_dst_entities": 3,
"src_entity_types": "[java.lang.Integer, java.util.List\u003cjava.lang.Integer\u003e]",
"dst_entity_types": "[double]"
}
}
]
},
{
"tool-name": "Cardumen",
"pattern-name": "Cardumen;expression_replacement",
"Unified_Diff_of-files:": "Starts Below...",
"CHANGE_old:": " minRatioPositions.add(i);",
"CHANGE_new:": " Precision.equals(entry, 0.0, maxUlps);",
"instance_detail": [
{
"pattern_action": "UPD",
"pattern_entity": {
"entity_type": "Expression",
"entity_new value": "*",
"entity_role": "*",
"entity_parent": "null"
},
"concrete_change": {
"operator": "UPD",
"src_type": "Invocation",
"dst_type": "Invocation",
"src": "minRatioPositions.add(i)",
"dst": "org.apache.commons.math3.util.Precision.equals(entry, 0.0, maxUlps)",
"src_parent_type": "Block",
"dst_parent_type": "Block",
"src_parent": "{\r\n minRatio \u003d ratio;\r\n minRatioPositions \u003d new java.util.ArrayList\u003cjava.lang.Integer\u003e();\r\n minRatioPositions.add(i);\r\n}",
"dst_parent": "{\r\n minRatio \u003d ratio;\r\n minRatioPositions \u003d new java.util.ArrayList\u003cjava.lang.Integer\u003e();\r\n org.apache.commons.math3.util.Precision.equals(entry, 0.0, maxUlps);\r\n}"
},
"line": 108,
"file": "D:\\Daneshgah\\phd-kth\\projects\\commit summarization\\template-based\\coming\\two",
"stats": {
"number_of_src_entities": 16,
"number_of_dst_entities": 26,
"src_entity_types": "[java.lang.Integer, int, java.util.List\u003cjava.lang.Integer\u003e, java.util.List]",
"dst_entity_types": "[org.apache.commons.math3.util.Precision, double, org.apache.commons.math3.optimization.linear.SimplexSolver]"
}
}
]
},
{
"tool-name": "Cardumen",
"pattern-name": "Cardumen;expression_replacement",
"Unified_Diff_of-files:": "Starts Below...",
"CHANGE_old:": " minRatioPositions.add(i);",
"CHANGE_new:": " Precision.equals(entry, 0.0, maxUlps);",
"instance_detail": [
{
"pattern_action": "UPD",
"pattern_entity": {
"entity_type": "Expression",
"entity_new value": "*",
"entity_role": "*",
"entity_parent": "null"
},
"concrete_change": {
"operator": "UPD",
"src_type": "VariableRead",
"dst_type": "VariableRead",
"src": "minRatioPositions",
"dst": "entry",
"src_parent_type": "Invocation",
"dst_parent_type": "Invocation",
"src_parent": "minRatioPositions.add(i)",
"dst_parent": "org.apache.commons.math3.util.Precision.equals(entry, 0.0, maxUlps)"
},
"line": 108,
"file": "D:\\Daneshgah\\phd-kth\\projects\\commit summarization\\template-based\\coming\\two",
"stats": {
"number_of_src_entities": 6,
"number_of_dst_entities": 3,
"src_entity_types": "[java.lang.Integer, java.util.List\u003cjava.lang.Integer\u003e]",
"dst_entity_types": "[double]"
}
}
]
}
]
}
]
"instances": []
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<dependency>
<groupId>fr.inria.gforge.spoon.labs </groupId>
<artifactId>gumtree-spoon-ast-diff</artifactId>
<version>1.20</version>
<version>1.21</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public boolean filter(ChangePatternInstance instance, IRevision revision) {
} else if (anyOperation instanceof UpdateOperation) {
element = anyOperation.getDstNode(); // See why are using DstNode: https://github.com/SpoonLabs/coming/issues/72#issuecomment-508123273
} else if (anyOperation instanceof DeleteOperation) {
// ASSUMPTION ONLY A STATEMENT CAN BE DELETED
// ASSUMPTION: ONLY A STATEMENT CAN BE DELETED
return anyOperation.getSrcNode().getRoleInParent() == CtRole.STATEMENT;
} else if (anyOperation instanceof MoveOperation) {
// based on move never occurs actually based on the analysis of our dataset but it may occur when in case of swaps(as described in the paper)
Expand Down

0 comments on commit b895eff

Please sign in to comment.