[{ "testCaseDescription": "javascript-math-assignment-operator-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "NumberLiteral", "range": [ 5, 6 ] } ], "range": [ 0, 6 ] } ], "range": [ 0, 7 ] } ], "patch": "insert", "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "patch": "insert", "range": [ 8, 8 ] } ], "hasChanges": true, "range": [ 8, 8 ], "number": 2 } ] ], "paths": [ "math-assignment-operator.js", "math-assignment-operator.js" ], "oids": [ "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "7150d6e7aaaa31b485dad53b7938765558a5ef7b" ] }, "filePaths": [ "math-assignment-operator.js" ], "patch": [ "diff --git a/math-assignment-operator.js b/math-assignment-operator.js", "index e69de29..7150d6e 100644", "--- a/math-assignment-operator.js", "+++ b/math-assignment-operator.js", "@@ -0,0 +1 @@", "+x += 1;" ], "gitDir": "test/corpus/repos/javascript", "shas": "2dd315197d728e8efdfc502c8ec48dac3ee8a4b7..ded203079c60a3d7a343120c4c5a54079dd4340e" } ,{ "testCaseDescription": "javascript-math-assignment-operator-replacement-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "NumberLiteral", "range": [ 5, 6 ] } ], "range": [ 0, 6 ] } ], "patch": "insert", "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 8, 9 ] }, { "category": "NumberLiteral", "range": [ 13, 14 ] } ], "range": [ 8, 14 ] } ], "patch": "insert", "range": [ 8, 15 ] } ], "range": [ 8, 16 ] } ], "hasChanges": true, "range": [ 8, 16 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "NumberLiteral", "range": [ 5, 6 ] } ], "range": [ 0, 6 ] } ], "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": false, "range": [ 0, 8 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 16, 17 ] }, { "category": "NumberLiteral", "range": [ 21, 22 ] } ], "range": [ 16, 22 ] } ], "range": [ 16, 23 ] } ], "range": [ 16, 24 ] } ], "hasChanges": false, "range": [ 16, 24 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 8, 8 ] } ], "hasChanges": false, "range": [ 8, 8 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [], "range": [ 24, 24 ] } ], "hasChanges": false, "range": [ 24, 24 ], "number": 4 } ] ], "paths": [ "math-assignment-operator.js", "math-assignment-operator.js" ], "oids": [ "7150d6e7aaaa31b485dad53b7938765558a5ef7b", "0bf97e75fb39f981fc1b59bbf98a59d49b6ac9d6" ] }, "filePaths": [ "math-assignment-operator.js" ], "patch": [ "diff --git a/math-assignment-operator.js b/math-assignment-operator.js", "index 7150d6e..0bf97e7 100644", "--- a/math-assignment-operator.js", "+++ b/math-assignment-operator.js", "@@ -1 +1,3 @@", "+x += 2;", "+x += 1;", " x += 1;" ], "gitDir": "test/corpus/repos/javascript", "shas": "ded203079c60a3d7a343120c4c5a54079dd4340e..ab4c64432f01363febab14a118751ced86cbede9" } ,{ "testCaseDescription": "javascript-math-assignment-operator-delete-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "NumberLiteral", "patch": "replace", "range": [ 5, 6 ] } ], "range": [ 0, 6 ] } ], "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "NumberLiteral", "patch": "replace", "range": [ 5, 6 ] } ], "range": [ 0, 6 ] } ], "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 8, 9 ] }, { "category": "NumberLiteral", "range": [ 13, 14 ] } ], "range": [ 8, 14 ] } ], "range": [ 8, 15 ] } ], "range": [ 8, 16 ] } ], "hasChanges": false, "range": [ 8, 16 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 8, 9 ] }, { "category": "NumberLiteral", "range": [ 13, 14 ] } ], "range": [ 8, 14 ] } ], "range": [ 8, 15 ] } ], "range": [ 8, 16 ] } ], "hasChanges": false, "range": [ 8, 16 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 16, 17 ] }, { "category": "NumberLiteral", "range": [ 21, 22 ] } ], "range": [ 16, 22 ] } ], "range": [ 16, 23 ] } ], "range": [ 16, 24 ] } ], "hasChanges": false, "range": [ 16, 24 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 16, 17 ] }, { "category": "NumberLiteral", "range": [ 21, 22 ] } ], "range": [ 16, 22 ] } ], "range": [ 16, 23 ] } ], "range": [ 16, 24 ] } ], "hasChanges": false, "range": [ 16, 24 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 24, 24 ] } ], "hasChanges": false, "range": [ 24, 24 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 24, 24 ] } ], "hasChanges": false, "range": [ 24, 24 ], "number": 4 } ] ], "paths": [ "math-assignment-operator.js", "math-assignment-operator.js" ], "oids": [ "0bf97e75fb39f981fc1b59bbf98a59d49b6ac9d6", "ad04937aee456c0697e6e26b9172bb3f951d187f" ] }, "filePaths": [ "math-assignment-operator.js" ], "patch": [ "diff --git a/math-assignment-operator.js b/math-assignment-operator.js", "index 0bf97e7..ad04937 100644", "--- a/math-assignment-operator.js", "+++ b/math-assignment-operator.js", "@@ -1,3 +1,3 @@", "-x += 2;", "+x += 1;", " x += 1;", " x += 1;" ], "gitDir": "test/corpus/repos/javascript", "shas": "ab4c64432f01363febab14a118751ced86cbede9..c631f771b1428cf1a28dc4db4d00252aa24b22fe" } ,{ "testCaseDescription": "javascript-math-assignment-operator-replacement-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "NumberLiteral", "patch": "replace", "range": [ 5, 6 ] } ], "range": [ 0, 6 ] } ], "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "NumberLiteral", "patch": "replace", "range": [ 5, 6 ] } ], "range": [ 0, 6 ] } ], "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 8, 9 ] }, { "category": "NumberLiteral", "range": [ 13, 14 ] } ], "range": [ 8, 14 ] } ], "range": [ 8, 15 ] } ], "range": [ 8, 16 ] } ], "hasChanges": false, "range": [ 8, 16 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 8, 9 ] }, { "category": "NumberLiteral", "range": [ 13, 14 ] } ], "range": [ 8, 14 ] } ], "range": [ 8, 15 ] } ], "range": [ 8, 16 ] } ], "hasChanges": false, "range": [ 8, 16 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 16, 17 ] }, { "category": "NumberLiteral", "range": [ 21, 22 ] } ], "range": [ 16, 22 ] } ], "range": [ 16, 23 ] } ], "range": [ 16, 24 ] } ], "hasChanges": false, "range": [ 16, 24 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 16, 17 ] }, { "category": "NumberLiteral", "range": [ 21, 22 ] } ], "range": [ 16, 22 ] } ], "range": [ 16, 23 ] } ], "range": [ 16, 24 ] } ], "hasChanges": false, "range": [ 16, 24 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 24, 24 ] } ], "hasChanges": false, "range": [ 24, 24 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 24, 24 ] } ], "hasChanges": false, "range": [ 24, 24 ], "number": 4 } ] ], "paths": [ "math-assignment-operator.js", "math-assignment-operator.js" ], "oids": [ "ad04937aee456c0697e6e26b9172bb3f951d187f", "0bf97e75fb39f981fc1b59bbf98a59d49b6ac9d6" ] }, "filePaths": [ "math-assignment-operator.js" ], "patch": [ "diff --git a/math-assignment-operator.js b/math-assignment-operator.js", "index ad04937..0bf97e7 100644", "--- a/math-assignment-operator.js", "+++ b/math-assignment-operator.js", "@@ -1,3 +1,3 @@", "-x += 1;", "+x += 2;", " x += 1;", " x += 1;" ], "gitDir": "test/corpus/repos/javascript", "shas": "c631f771b1428cf1a28dc4db4d00252aa24b22fe..6f08c08ae092e52ef599812163e6b8b39330ab63" } ,{ "testCaseDescription": "javascript-math-assignment-operator-delete-replacement-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "NumberLiteral", "range": [ 5, 6 ] } ], "range": [ 0, 6 ] } ], "patch": "delete", "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 8, 9 ] }, { "category": "NumberLiteral", "range": [ 13, 14 ] } ], "range": [ 8, 14 ] } ], "patch": "delete", "range": [ 8, 15 ] } ], "range": [ 8, 16 ] } ], "hasChanges": true, "range": [ 8, 16 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 16, 17 ] }, { "category": "NumberLiteral", "range": [ 21, 22 ] } ], "range": [ 16, 22 ] } ], "range": [ 16, 23 ] } ], "range": [ 16, 24 ] } ], "hasChanges": false, "range": [ 16, 24 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "NumberLiteral", "range": [ 5, 6 ] } ], "range": [ 0, 6 ] } ], "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": false, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 8, 9 ] }, { "category": "NumberLiteral", "range": [ 13, 14 ] } ], "range": [ 8, 14 ] } ], "patch": "insert", "range": [ 8, 15 ] } ], "range": [ 8, 16 ] } ], "hasChanges": true, "range": [ 8, 16 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 24, 24 ] } ], "hasChanges": false, "range": [ 24, 24 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 16, 16 ] } ], "hasChanges": false, "range": [ 16, 16 ], "number": 3 } ] ], "paths": [ "math-assignment-operator.js", "math-assignment-operator.js" ], "oids": [ "0bf97e75fb39f981fc1b59bbf98a59d49b6ac9d6", "71275450ce8eab1ec02ce012fe725a62327af0ef" ] }, "filePaths": [ "math-assignment-operator.js" ], "patch": [ "diff --git a/math-assignment-operator.js b/math-assignment-operator.js", "index 0bf97e7..7127545 100644", "--- a/math-assignment-operator.js", "+++ b/math-assignment-operator.js", "@@ -1,3 +1,2 @@", "-x += 2;", "-x += 1;", " x += 1;", "+x += 2;" ], "gitDir": "test/corpus/repos/javascript", "shas": "6f08c08ae092e52ef599812163e6b8b39330ab63..b7d905cc763b31035f76fda7ac7f3b48f8df1154" } ,{ "testCaseDescription": "javascript-math-assignment-operator-delete-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "NumberLiteral", "range": [ 5, 6 ] } ], "range": [ 0, 6 ] } ], "patch": "delete", "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 8, 9 ] }, { "category": "NumberLiteral", "range": [ 13, 14 ] } ], "range": [ 8, 14 ] } ], "range": [ 8, 15 ] } ], "range": [ 8, 16 ] } ], "hasChanges": false, "range": [ 8, 16 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "NumberLiteral", "range": [ 5, 6 ] } ], "range": [ 0, 6 ] } ], "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": false, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 16, 16 ] } ], "hasChanges": false, "range": [ 16, 16 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [], "range": [ 8, 8 ] } ], "hasChanges": false, "range": [ 8, 8 ], "number": 2 } ] ], "paths": [ "math-assignment-operator.js", "math-assignment-operator.js" ], "oids": [ "71275450ce8eab1ec02ce012fe725a62327af0ef", "94d1472273d5e1435104388d3ffb1a3465112096" ] }, "filePaths": [ "math-assignment-operator.js" ], "patch": [ "diff --git a/math-assignment-operator.js b/math-assignment-operator.js", "index 7127545..94d1472 100644", "--- a/math-assignment-operator.js", "+++ b/math-assignment-operator.js", "@@ -1,2 +1 @@", "-x += 1;", " x += 2;" ], "gitDir": "test/corpus/repos/javascript", "shas": "b7d905cc763b31035f76fda7ac7f3b48f8df1154..634f52893f90b01720432e519a9feb7c07c26012" } ,{ "testCaseDescription": "javascript-math-assignment-operator-delete-rest-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "MathAssignment", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "NumberLiteral", "range": [ 5, 6 ] } ], "range": [ 0, 6 ] } ], "range": [ 0, 7 ] } ], "patch": "delete", "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "patch": "delete", "range": [ 8, 8 ] } ], "hasChanges": true, "range": [ 8, 8 ], "number": 2 } ] ], "paths": [ "math-assignment-operator.js", "math-assignment-operator.js" ], "oids": [ "94d1472273d5e1435104388d3ffb1a3465112096", "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391" ] }, "filePaths": [ "math-assignment-operator.js" ], "patch": [ "diff --git a/math-assignment-operator.js b/math-assignment-operator.js", "index 94d1472..e69de29 100644", "--- a/math-assignment-operator.js", "+++ b/math-assignment-operator.js", "@@ -1 +0,0 @@", "-x += 2;" ], "gitDir": "test/corpus/repos/javascript", "shas": "634f52893f90b01720432e519a9feb7c07c26012..8dd4d424eeae076b657c04fb290058c4635ae818" }]