[{ "testCaseDescription": "javascript-subscript-access-variable-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "Identifier", "range": [ 2, 14 ] } ], "range": [ 0, 15 ] } ], "range": [ 0, 16 ] } ], "patch": "insert", "range": [ 0, 17 ] } ], "hasChanges": true, "range": [ 0, 17 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "patch": "insert", "range": [ 17, 17 ] } ], "hasChanges": true, "range": [ 17, 17 ], "number": 2 } ] ], "paths": [ "subscript-access-variable.js", "subscript-access-variable.js" ], "oids": [ "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "9a7b3d3ecbd9ae9071fa2982c0eaac926089a731" ] }, "filePaths": [ "subscript-access-variable.js" ], "patch": [ "diff --git a/subscript-access-variable.js b/subscript-access-variable.js", "index e69de29..9a7b3d3 100644", "--- a/subscript-access-variable.js", "+++ b/subscript-access-variable.js", "@@ -0,0 +1 @@", "+x[someVariable];" ], "gitDir": "test/corpus/repos/javascript", "shas": "75ba258ab370ff0efecb47f5f6a2f6a9968e9b8d..23c97f1701f504da098e41630d463fde923ef329" } ,{ "testCaseDescription": "javascript-subscript-access-variable-replacement-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "Identifier", "range": [ 2, 19 ] } ], "range": [ 0, 20 ] } ], "patch": "insert", "range": [ 0, 21 ] } ], "range": [ 0, 22 ] } ], "hasChanges": true, "range": [ 0, 22 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 22, 23 ] }, { "category": "Identifier", "range": [ 24, 36 ] } ], "range": [ 22, 37 ] } ], "patch": "insert", "range": [ 22, 38 ] } ], "range": [ 22, 39 ] } ], "hasChanges": true, "range": [ 22, 39 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "Identifier", "range": [ 2, 14 ] } ], "range": [ 0, 15 ] } ], "range": [ 0, 16 ] } ], "range": [ 0, 17 ] } ], "hasChanges": false, "range": [ 0, 17 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 39, 40 ] }, { "category": "Identifier", "range": [ 41, 53 ] } ], "range": [ 39, 54 ] } ], "range": [ 39, 55 ] } ], "range": [ 39, 56 ] } ], "hasChanges": false, "range": [ 39, 56 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 17, 17 ] } ], "hasChanges": false, "range": [ 17, 17 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [], "range": [ 56, 56 ] } ], "hasChanges": false, "range": [ 56, 56 ], "number": 4 } ] ], "paths": [ "subscript-access-variable.js", "subscript-access-variable.js" ], "oids": [ "9a7b3d3ecbd9ae9071fa2982c0eaac926089a731", "000d190c91bb13f18455c830ddff5090eedba40b" ] }, "filePaths": [ "subscript-access-variable.js" ], "patch": [ "diff --git a/subscript-access-variable.js b/subscript-access-variable.js", "index 9a7b3d3..000d190 100644", "--- a/subscript-access-variable.js", "+++ b/subscript-access-variable.js", "@@ -1 +1,3 @@", "+x[someOtherVariable];", "+x[someVariable];", " x[someVariable];" ], "gitDir": "test/corpus/repos/javascript", "shas": "23c97f1701f504da098e41630d463fde923ef329..d31176af5821d8c2be72bfb9313f424b2b21f883" } ,{ "testCaseDescription": "javascript-subscript-access-variable-delete-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "Identifier", "patch": "replace", "range": [ 2, 19 ] } ], "range": [ 0, 20 ] } ], "range": [ 0, 21 ] } ], "range": [ 0, 22 ] } ], "hasChanges": true, "range": [ 0, 22 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "Identifier", "patch": "replace", "range": [ 2, 14 ] } ], "range": [ 0, 15 ] } ], "range": [ 0, 16 ] } ], "range": [ 0, 17 ] } ], "hasChanges": true, "range": [ 0, 17 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 22, 23 ] }, { "category": "Identifier", "range": [ 24, 36 ] } ], "range": [ 22, 37 ] } ], "range": [ 22, 38 ] } ], "range": [ 22, 39 ] } ], "hasChanges": false, "range": [ 22, 39 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 17, 18 ] }, { "category": "Identifier", "range": [ 19, 31 ] } ], "range": [ 17, 32 ] } ], "range": [ 17, 33 ] } ], "range": [ 17, 34 ] } ], "hasChanges": false, "range": [ 17, 34 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 39, 40 ] }, { "category": "Identifier", "range": [ 41, 53 ] } ], "range": [ 39, 54 ] } ], "range": [ 39, 55 ] } ], "range": [ 39, 56 ] } ], "hasChanges": false, "range": [ 39, 56 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 34, 35 ] }, { "category": "Identifier", "range": [ 36, 48 ] } ], "range": [ 34, 49 ] } ], "range": [ 34, 50 ] } ], "range": [ 34, 51 ] } ], "hasChanges": false, "range": [ 34, 51 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 56, 56 ] } ], "hasChanges": false, "range": [ 56, 56 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 51, 51 ] } ], "hasChanges": false, "range": [ 51, 51 ], "number": 4 } ] ], "paths": [ "subscript-access-variable.js", "subscript-access-variable.js" ], "oids": [ "000d190c91bb13f18455c830ddff5090eedba40b", "01f61ef9b09f11777de2aaaa0dfc0ed53c2bf9ad" ] }, "filePaths": [ "subscript-access-variable.js" ], "patch": [ "diff --git a/subscript-access-variable.js b/subscript-access-variable.js", "index 000d190..01f61ef 100644", "--- a/subscript-access-variable.js", "+++ b/subscript-access-variable.js", "@@ -1,3 +1,3 @@", "-x[someOtherVariable];", "+x[someVariable];", " x[someVariable];", " x[someVariable];" ], "gitDir": "test/corpus/repos/javascript", "shas": "d31176af5821d8c2be72bfb9313f424b2b21f883..35cfecb96f5660cb9ae603f56d49853d1ab357c0" } ,{ "testCaseDescription": "javascript-subscript-access-variable-replacement-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "Identifier", "patch": "replace", "range": [ 2, 14 ] } ], "range": [ 0, 15 ] } ], "range": [ 0, 16 ] } ], "range": [ 0, 17 ] } ], "hasChanges": true, "range": [ 0, 17 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "Identifier", "patch": "replace", "range": [ 2, 19 ] } ], "range": [ 0, 20 ] } ], "range": [ 0, 21 ] } ], "range": [ 0, 22 ] } ], "hasChanges": true, "range": [ 0, 22 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 17, 18 ] }, { "category": "Identifier", "range": [ 19, 31 ] } ], "range": [ 17, 32 ] } ], "range": [ 17, 33 ] } ], "range": [ 17, 34 ] } ], "hasChanges": false, "range": [ 17, 34 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 22, 23 ] }, { "category": "Identifier", "range": [ 24, 36 ] } ], "range": [ 22, 37 ] } ], "range": [ 22, 38 ] } ], "range": [ 22, 39 ] } ], "hasChanges": false, "range": [ 22, 39 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 34, 35 ] }, { "category": "Identifier", "range": [ 36, 48 ] } ], "range": [ 34, 49 ] } ], "range": [ 34, 50 ] } ], "range": [ 34, 51 ] } ], "hasChanges": false, "range": [ 34, 51 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 39, 40 ] }, { "category": "Identifier", "range": [ 41, 53 ] } ], "range": [ 39, 54 ] } ], "range": [ 39, 55 ] } ], "range": [ 39, 56 ] } ], "hasChanges": false, "range": [ 39, 56 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 51, 51 ] } ], "hasChanges": false, "range": [ 51, 51 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 56, 56 ] } ], "hasChanges": false, "range": [ 56, 56 ], "number": 4 } ] ], "paths": [ "subscript-access-variable.js", "subscript-access-variable.js" ], "oids": [ "01f61ef9b09f11777de2aaaa0dfc0ed53c2bf9ad", "000d190c91bb13f18455c830ddff5090eedba40b" ] }, "filePaths": [ "subscript-access-variable.js" ], "patch": [ "diff --git a/subscript-access-variable.js b/subscript-access-variable.js", "index 01f61ef..000d190 100644", "--- a/subscript-access-variable.js", "+++ b/subscript-access-variable.js", "@@ -1,3 +1,3 @@", "-x[someVariable];", "+x[someOtherVariable];", " x[someVariable];", " x[someVariable];" ], "gitDir": "test/corpus/repos/javascript", "shas": "35cfecb96f5660cb9ae603f56d49853d1ab357c0..a016d5179e851e36e838d44502bc212e05b27fd0" } ,{ "testCaseDescription": "javascript-subscript-access-variable-delete-replacement-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "Identifier", "range": [ 2, 19 ] } ], "range": [ 0, 20 ] } ], "patch": "delete", "range": [ 0, 21 ] } ], "range": [ 0, 22 ] } ], "hasChanges": true, "range": [ 0, 22 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 22, 23 ] }, { "category": "Identifier", "range": [ 24, 36 ] } ], "range": [ 22, 37 ] } ], "patch": "delete", "range": [ 22, 38 ] } ], "range": [ 22, 39 ] } ], "hasChanges": true, "range": [ 22, 39 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 39, 40 ] }, { "category": "Identifier", "range": [ 41, 53 ] } ], "range": [ 39, 54 ] } ], "range": [ 39, 55 ] } ], "range": [ 39, 56 ] } ], "hasChanges": false, "range": [ 39, 56 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "Identifier", "range": [ 2, 14 ] } ], "range": [ 0, 15 ] } ], "range": [ 0, 16 ] } ], "range": [ 0, 17 ] } ], "hasChanges": false, "range": [ 0, 17 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 17, 18 ] }, { "category": "Identifier", "range": [ 19, 36 ] } ], "range": [ 17, 37 ] } ], "patch": "insert", "range": [ 17, 38 ] } ], "range": [ 17, 39 ] } ], "hasChanges": true, "range": [ 17, 39 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 56, 56 ] } ], "hasChanges": false, "range": [ 56, 56 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 39, 39 ] } ], "hasChanges": false, "range": [ 39, 39 ], "number": 3 } ] ], "paths": [ "subscript-access-variable.js", "subscript-access-variable.js" ], "oids": [ "000d190c91bb13f18455c830ddff5090eedba40b", "2aaae7e77dd229064fe3b9843c8fa27f0b1a1d62" ] }, "filePaths": [ "subscript-access-variable.js" ], "patch": [ "diff --git a/subscript-access-variable.js b/subscript-access-variable.js", "index 000d190..2aaae7e 100644", "--- a/subscript-access-variable.js", "+++ b/subscript-access-variable.js", "@@ -1,3 +1,2 @@", "-x[someOtherVariable];", "-x[someVariable];", " x[someVariable];", "+x[someOtherVariable];" ], "gitDir": "test/corpus/repos/javascript", "shas": "a016d5179e851e36e838d44502bc212e05b27fd0..6cb518ca4bddfb965e79b029574ca2f66d3ba324" } ,{ "testCaseDescription": "javascript-subscript-access-variable-delete-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "Identifier", "range": [ 2, 14 ] } ], "range": [ 0, 15 ] } ], "patch": "delete", "range": [ 0, 16 ] } ], "range": [ 0, 17 ] } ], "hasChanges": true, "range": [ 0, 17 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 17, 18 ] }, { "category": "Identifier", "range": [ 19, 36 ] } ], "range": [ 17, 37 ] } ], "range": [ 17, 38 ] } ], "range": [ 17, 39 ] } ], "hasChanges": false, "range": [ 17, 39 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "Identifier", "range": [ 2, 19 ] } ], "range": [ 0, 20 ] } ], "range": [ 0, 21 ] } ], "range": [ 0, 22 ] } ], "hasChanges": false, "range": [ 0, 22 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 39, 39 ] } ], "hasChanges": false, "range": [ 39, 39 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [], "range": [ 22, 22 ] } ], "hasChanges": false, "range": [ 22, 22 ], "number": 2 } ] ], "paths": [ "subscript-access-variable.js", "subscript-access-variable.js" ], "oids": [ "2aaae7e77dd229064fe3b9843c8fa27f0b1a1d62", "baa3661b2fa0ed916478b9afaf71f2005b8efa5e" ] }, "filePaths": [ "subscript-access-variable.js" ], "patch": [ "diff --git a/subscript-access-variable.js b/subscript-access-variable.js", "index 2aaae7e..baa3661 100644", "--- a/subscript-access-variable.js", "+++ b/subscript-access-variable.js", "@@ -1,2 +1 @@", "-x[someVariable];", " x[someOtherVariable];" ], "gitDir": "test/corpus/repos/javascript", "shas": "6cb518ca4bddfb965e79b029574ca2f66d3ba324..a94c11e468e53c7366ae98264e0e2655f9a239e0" } ,{ "testCaseDescription": "javascript-subscript-access-variable-delete-rest-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "SubscriptAccess", "children": [ { "category": "Identifier", "range": [ 0, 1 ] }, { "category": "Identifier", "range": [ 2, 19 ] } ], "range": [ 0, 20 ] } ], "range": [ 0, 21 ] } ], "patch": "delete", "range": [ 0, 22 ] } ], "hasChanges": true, "range": [ 0, 22 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "patch": "delete", "range": [ 22, 22 ] } ], "hasChanges": true, "range": [ 22, 22 ], "number": 2 } ] ], "paths": [ "subscript-access-variable.js", "subscript-access-variable.js" ], "oids": [ "baa3661b2fa0ed916478b9afaf71f2005b8efa5e", "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391" ] }, "filePaths": [ "subscript-access-variable.js" ], "patch": [ "diff --git a/subscript-access-variable.js b/subscript-access-variable.js", "index baa3661..e69de29 100644", "--- a/subscript-access-variable.js", "+++ b/subscript-access-variable.js", "@@ -1 +0,0 @@", "-x[someOtherVariable];" ], "gitDir": "test/corpus/repos/javascript", "shas": "a94c11e468e53c7366ae98264e0e2655f9a239e0..b120fb35e9c89d5480c33ff8e9e5d6e5e3632044" }]