[{ "testCaseDescription": "javascript-undefined-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 9 ] } ], "range": [ 0, 10 ] } ], "patch": "insert", "range": [ 0, 11 ] } ], "hasChanges": true, "range": [ 0, 11 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "patch": "insert", "range": [ 11, 11 ] } ], "hasChanges": true, "range": [ 11, 11 ], "number": 2 } ] ], "paths": [ "undefined.js", "undefined.js" ], "oids": [ "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "c2ca02c0e25c62262bca12b6f3c05f572570f427" ] }, "filePaths": [ "undefined.js" ], "patch": [ "diff --git a/undefined.js b/undefined.js", "index e69de29..c2ca02c 100644", "--- a/undefined.js", "+++ b/undefined.js", "@@ -0,0 +1 @@", "+undefined;" ], "gitDir": "test/corpus/repos/javascript", "shas": "61695447b9d6c99d6fbee197c961837045e9237b..4934441f9dfeeaa135562268f75a96859b0348ec" } ,{ "testCaseDescription": "javascript-undefined-replacement-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 7, 16 ] } ], "patch": "insert", "range": [ 0, 17 ] } ], "range": [ 0, 18 ] } ], "hasChanges": true, "range": [ 0, 18 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 18, 27 ] } ], "patch": "insert", "range": [ 18, 28 ] } ], "range": [ 18, 29 ] } ], "hasChanges": true, "range": [ 18, 29 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 9 ] } ], "range": [ 0, 10 ] } ], "range": [ 0, 11 ] } ], "hasChanges": false, "range": [ 0, 11 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 29, 38 ] } ], "range": [ 29, 39 ] } ], "range": [ 29, 40 ] } ], "hasChanges": false, "range": [ 29, 40 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 11, 11 ] } ], "hasChanges": false, "range": [ 11, 11 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [], "range": [ 40, 40 ] } ], "hasChanges": false, "range": [ 40, 40 ], "number": 4 } ] ], "paths": [ "undefined.js", "undefined.js" ], "oids": [ "c2ca02c0e25c62262bca12b6f3c05f572570f427", "a4352cc6bbfeae2fa8d00a541438a36377b97c1e" ] }, "filePaths": [ "undefined.js" ], "patch": [ "diff --git a/undefined.js b/undefined.js", "index c2ca02c..a4352cc 100644", "--- a/undefined.js", "+++ b/undefined.js", "@@ -1 +1,3 @@", "+return undefined;", "+undefined;", " undefined;" ], "gitDir": "test/corpus/repos/javascript", "shas": "4934441f9dfeeaa135562268f75a96859b0348ec..bd30c0f337fea623e026c46dd81f07c5bd939c39" } ,{ "testCaseDescription": "javascript-undefined-delete-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 7, 16 ] } ], "patch": "delete", "range": [ 0, 17 ] } ], "range": [ 0, 18 ] } ], "hasChanges": true, "range": [ 0, 18 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 9 ] } ], "patch": "insert", "range": [ 0, 10 ] } ], "range": [ 0, 11 ] } ], "hasChanges": true, "range": [ 0, 11 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 18, 27 ] } ], "range": [ 18, 28 ] } ], "range": [ 18, 29 ] } ], "hasChanges": false, "range": [ 18, 29 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 11, 20 ] } ], "range": [ 11, 21 ] } ], "range": [ 11, 22 ] } ], "hasChanges": false, "range": [ 11, 22 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 29, 38 ] } ], "range": [ 29, 39 ] } ], "range": [ 29, 40 ] } ], "hasChanges": false, "range": [ 29, 40 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 22, 31 ] } ], "range": [ 22, 32 ] } ], "range": [ 22, 33 ] } ], "hasChanges": false, "range": [ 22, 33 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 40, 40 ] } ], "hasChanges": false, "range": [ 40, 40 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 33, 33 ] } ], "hasChanges": false, "range": [ 33, 33 ], "number": 4 } ] ], "paths": [ "undefined.js", "undefined.js" ], "oids": [ "a4352cc6bbfeae2fa8d00a541438a36377b97c1e", "52ea2570918458867713f5d04ff2e9affb0394ab" ] }, "filePaths": [ "undefined.js" ], "patch": [ "diff --git a/undefined.js b/undefined.js", "index a4352cc..52ea257 100644", "--- a/undefined.js", "+++ b/undefined.js", "@@ -1,3 +1,3 @@", "-return undefined;", "+undefined;", " undefined;", " undefined;" ], "gitDir": "test/corpus/repos/javascript", "shas": "bd30c0f337fea623e026c46dd81f07c5bd939c39..8933579c6ec5e19655165fdc6dfc67c2f56c6458" } ,{ "testCaseDescription": "javascript-undefined-replacement-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 9 ] } ], "patch": "delete", "range": [ 0, 10 ] } ], "range": [ 0, 11 ] } ], "hasChanges": true, "range": [ 0, 11 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 7, 16 ] } ], "patch": "insert", "range": [ 0, 17 ] } ], "range": [ 0, 18 ] } ], "hasChanges": true, "range": [ 0, 18 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 11, 20 ] } ], "range": [ 11, 21 ] } ], "range": [ 11, 22 ] } ], "hasChanges": false, "range": [ 11, 22 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 18, 27 ] } ], "range": [ 18, 28 ] } ], "range": [ 18, 29 ] } ], "hasChanges": false, "range": [ 18, 29 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 22, 31 ] } ], "range": [ 22, 32 ] } ], "range": [ 22, 33 ] } ], "hasChanges": false, "range": [ 22, 33 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 29, 38 ] } ], "range": [ 29, 39 ] } ], "range": [ 29, 40 ] } ], "hasChanges": false, "range": [ 29, 40 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 33, 33 ] } ], "hasChanges": false, "range": [ 33, 33 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 40, 40 ] } ], "hasChanges": false, "range": [ 40, 40 ], "number": 4 } ] ], "paths": [ "undefined.js", "undefined.js" ], "oids": [ "52ea2570918458867713f5d04ff2e9affb0394ab", "a4352cc6bbfeae2fa8d00a541438a36377b97c1e" ] }, "filePaths": [ "undefined.js" ], "patch": [ "diff --git a/undefined.js b/undefined.js", "index 52ea257..a4352cc 100644", "--- a/undefined.js", "+++ b/undefined.js", "@@ -1,3 +1,3 @@", "-undefined;", "+return undefined;", " undefined;", " undefined;" ], "gitDir": "test/corpus/repos/javascript", "shas": "8933579c6ec5e19655165fdc6dfc67c2f56c6458..d25d4c09aba8b5c49cadb2dccdc776a9f1fbe009" } ,{ "testCaseDescription": "javascript-undefined-delete-replacement-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 7, 16 ] } ], "patch": "delete", "range": [ 0, 17 ] } ], "range": [ 0, 18 ] } ], "hasChanges": true, "range": [ 0, 18 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 18, 27 ] } ], "patch": "delete", "range": [ 18, 28 ] } ], "range": [ 18, 29 ] } ], "hasChanges": true, "range": [ 18, 29 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 29, 38 ] } ], "range": [ 29, 39 ] } ], "range": [ 29, 40 ] } ], "hasChanges": false, "range": [ 29, 40 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 9 ] } ], "range": [ 0, 10 ] } ], "range": [ 0, 11 ] } ], "hasChanges": false, "range": [ 0, 11 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 18, 27 ] } ], "patch": "insert", "range": [ 11, 28 ] } ], "range": [ 11, 29 ] } ], "hasChanges": true, "range": [ 11, 29 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 40, 40 ] } ], "hasChanges": false, "range": [ 40, 40 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 29, 29 ] } ], "hasChanges": false, "range": [ 29, 29 ], "number": 3 } ] ], "paths": [ "undefined.js", "undefined.js" ], "oids": [ "a4352cc6bbfeae2fa8d00a541438a36377b97c1e", "a16e7474247c8fe2bd14b257579e7130547e0f50" ] }, "filePaths": [ "undefined.js" ], "patch": [ "diff --git a/undefined.js b/undefined.js", "index a4352cc..a16e747 100644", "--- a/undefined.js", "+++ b/undefined.js", "@@ -1,3 +1,2 @@", "-return undefined;", "-undefined;", " undefined;", "+return undefined;" ], "gitDir": "test/corpus/repos/javascript", "shas": "d25d4c09aba8b5c49cadb2dccdc776a9f1fbe009..04a2c6b24a79d6334f7076d6593c15bf9390fc7c" } ,{ "testCaseDescription": "javascript-undefined-delete-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 9 ] } ], "patch": "delete", "range": [ 0, 10 ] } ], "range": [ 0, 11 ] } ], "hasChanges": true, "range": [ 0, 11 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 18, 27 ] } ], "range": [ 11, 28 ] } ], "range": [ 11, 29 ] } ], "hasChanges": false, "range": [ 11, 29 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 7, 16 ] } ], "range": [ 0, 17 ] } ], "range": [ 0, 18 ] } ], "hasChanges": false, "range": [ 0, 18 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 29, 29 ] } ], "hasChanges": false, "range": [ 29, 29 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [], "range": [ 18, 18 ] } ], "hasChanges": false, "range": [ 18, 18 ], "number": 2 } ] ], "paths": [ "undefined.js", "undefined.js" ], "oids": [ "a16e7474247c8fe2bd14b257579e7130547e0f50", "fb505bb3a7ace63b8b37db2399a689b120aa9e3b" ] }, "filePaths": [ "undefined.js" ], "patch": [ "diff --git a/undefined.js b/undefined.js", "index a16e747..fb505bb 100644", "--- a/undefined.js", "+++ b/undefined.js", "@@ -1,2 +1 @@", "-undefined;", " return undefined;" ], "gitDir": "test/corpus/repos/javascript", "shas": "04a2c6b24a79d6334f7076d6593c15bf9390fc7c..8b75a6f10906ce72cbcac5b8460569fc12d1d46a" } ,{ "testCaseDescription": "javascript-undefined-delete-rest-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 7, 16 ] } ], "range": [ 0, 17 ] } ], "patch": "delete", "range": [ 0, 18 ] } ], "hasChanges": true, "range": [ 0, 18 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "patch": "delete", "range": [ 18, 18 ] } ], "hasChanges": true, "range": [ 18, 18 ], "number": 2 } ] ], "paths": [ "undefined.js", "undefined.js" ], "oids": [ "fb505bb3a7ace63b8b37db2399a689b120aa9e3b", "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391" ] }, "filePaths": [ "undefined.js" ], "patch": [ "diff --git a/undefined.js b/undefined.js", "index fb505bb..e69de29 100644", "--- a/undefined.js", "+++ b/undefined.js", "@@ -1 +0,0 @@", "-return undefined;" ], "gitDir": "test/corpus/repos/javascript", "shas": "8b75a6f10906ce72cbcac5b8460569fc12d1d46a..e4ca78655510a1ab2e5ceade62c77bd39b3a9599" }]