[{ "testCaseDescription": "javascript-variable-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "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": [ "variable.js", "variable.js" ], "oids": [ "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "1cf4ad05ef284fd6411546e5ddfb1938c9151cb1" ] }, "filePaths": [ "variable.js" ], "patch": [ "diff --git a/variable.js b/variable.js", "index e69de29..1cf4ad0 100644", "--- a/variable.js", "+++ b/variable.js", "@@ -0,0 +1 @@", "+theVar;" ], "gitDir": "test/corpus/repos/javascript", "shas": "3accaff544c4d4e390ec737b8c076a43e5d56563..49c032f849f019e32d810e49774f40a58f567df8" } ,{ "testCaseDescription": "javascript-variable-replacement-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 7 ] } ], "patch": "insert", "range": [ 0, 8 ] } ], "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "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": "Identifier", "range": [ 0, 6 ] } ], "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": false, "range": [ 0, 8 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "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": [ "variable.js", "variable.js" ], "oids": [ "1cf4ad05ef284fd6411546e5ddfb1938c9151cb1", "888855ad41100937e0019b87e0a81fb922b040b7" ] }, "filePaths": [ "variable.js" ], "patch": [ "diff --git a/variable.js b/variable.js", "index 1cf4ad0..888855a 100644", "--- a/variable.js", "+++ b/variable.js", "@@ -1 +1,3 @@", "+theVar2", "+theVar;", " theVar;" ], "gitDir": "test/corpus/repos/javascript", "shas": "49c032f849f019e32d810e49774f40a58f567df8..ae375a014a72082ea44bed596598c1e12a348025" } ,{ "testCaseDescription": "javascript-variable-delete-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "patch": "replace", "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "patch": "replace", "range": [ 0, 6 ] } ], "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 8, 14 ] } ], "range": [ 8, 15 ] } ], "range": [ 8, 16 ] } ], "hasChanges": false, "range": [ 8, 16 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 8, 14 ] } ], "range": [ 8, 15 ] } ], "range": [ 8, 16 ] } ], "hasChanges": false, "range": [ 8, 16 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 16, 22 ] } ], "range": [ 16, 23 ] } ], "range": [ 16, 24 ] } ], "hasChanges": false, "range": [ 16, 24 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "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": [ "variable.js", "variable.js" ], "oids": [ "888855ad41100937e0019b87e0a81fb922b040b7", "60e041c1f5c995232ea415ada7796a8fc59cf50a" ] }, "filePaths": [ "variable.js" ], "patch": [ "diff --git a/variable.js b/variable.js", "index 888855a..60e041c 100644", "--- a/variable.js", "+++ b/variable.js", "@@ -1,3 +1,3 @@", "-theVar2", "+theVar;", " theVar;", " theVar;" ], "gitDir": "test/corpus/repos/javascript", "shas": "ae375a014a72082ea44bed596598c1e12a348025..c5b76769a302fcd3a48d68f455a991c01d58a0c5" } ,{ "testCaseDescription": "javascript-variable-replacement-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "patch": "replace", "range": [ 0, 6 ] } ], "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "patch": "replace", "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 8, 14 ] } ], "range": [ 8, 15 ] } ], "range": [ 8, 16 ] } ], "hasChanges": false, "range": [ 8, 16 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 8, 14 ] } ], "range": [ 8, 15 ] } ], "range": [ 8, 16 ] } ], "hasChanges": false, "range": [ 8, 16 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 16, 22 ] } ], "range": [ 16, 23 ] } ], "range": [ 16, 24 ] } ], "hasChanges": false, "range": [ 16, 24 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "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": [ "variable.js", "variable.js" ], "oids": [ "60e041c1f5c995232ea415ada7796a8fc59cf50a", "888855ad41100937e0019b87e0a81fb922b040b7" ] }, "filePaths": [ "variable.js" ], "patch": [ "diff --git a/variable.js b/variable.js", "index 60e041c..888855a 100644", "--- a/variable.js", "+++ b/variable.js", "@@ -1,3 +1,3 @@", "-theVar;", "+theVar2", " theVar;", " theVar;" ], "gitDir": "test/corpus/repos/javascript", "shas": "c5b76769a302fcd3a48d68f455a991c01d58a0c5..99fc27128f2bcedf21b589afe5d355c8f01b1673" } ,{ "testCaseDescription": "javascript-variable-delete-replacement-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 7 ] } ], "patch": "delete", "range": [ 0, 8 ] } ], "range": [ 0, 8 ] } ], "hasChanges": true, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "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": "Identifier", "range": [ 16, 22 ] } ], "range": [ 16, 23 ] } ], "range": [ 16, 24 ] } ], "hasChanges": false, "range": [ 16, 24 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 6 ] } ], "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "hasChanges": false, "range": [ 0, 8 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 8, 15 ] } ], "patch": "insert", "range": [ 8, 16 ] } ], "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": [ "variable.js", "variable.js" ], "oids": [ "888855ad41100937e0019b87e0a81fb922b040b7", "fbc7b28e28030a5474633484e56cfb97fbba5102" ] }, "filePaths": [ "variable.js" ], "patch": [ "diff --git a/variable.js b/variable.js", "index 888855a..fbc7b28 100644", "--- a/variable.js", "+++ b/variable.js", "@@ -1,3 +1,2 @@", "-theVar2", "-theVar;", " theVar;", "+theVar2" ], "gitDir": "test/corpus/repos/javascript", "shas": "99fc27128f2bcedf21b589afe5d355c8f01b1673..1ec955cdacef1045e39f487523b6b11245f31137" } ,{ "testCaseDescription": "javascript-variable-delete-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "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": "Identifier", "range": [ 8, 15 ] } ], "range": [ 8, 16 ] } ], "range": [ 8, 16 ] } ], "hasChanges": false, "range": [ 8, 16 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "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": [ "variable.js", "variable.js" ], "oids": [ "fbc7b28e28030a5474633484e56cfb97fbba5102", "7276d95d4675eba989693d641b606c19e5c1e6ba" ] }, "filePaths": [ "variable.js" ], "patch": [ "diff --git a/variable.js b/variable.js", "index fbc7b28..7276d95 100644", "--- a/variable.js", "+++ b/variable.js", "@@ -1,2 +1 @@", "-theVar;", " theVar2" ], "gitDir": "test/corpus/repos/javascript", "shas": "1ec955cdacef1045e39f487523b6b11245f31137..b64e131430cad9f2e1b958fe3ee4cd577de5381b" } ,{ "testCaseDescription": "javascript-variable-delete-rest-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 7 ] } ], "range": [ 0, 8 ] } ], "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": [ "variable.js", "variable.js" ], "oids": [ "7276d95d4675eba989693d641b606c19e5c1e6ba", "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391" ] }, "filePaths": [ "variable.js" ], "patch": [ "diff --git a/variable.js b/variable.js", "index 7276d95..e69de29 100644", "--- a/variable.js", "+++ b/variable.js", "@@ -1 +0,0 @@", "-theVar2" ], "gitDir": "test/corpus/repos/javascript", "shas": "b64e131430cad9f2e1b958fe3ee4cd577de5381b..1b8151602239d34159506d5d6e55de712e8c0d10" }]