[{ "testCaseDescription": "javascript-null-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 4 ] } ], "range": [ 0, 5 ] } ], "patch": "insert", "range": [ 0, 6 ] } ], "hasChanges": true, "range": [ 0, 6 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "patch": "insert", "range": [ 6, 6 ] } ], "hasChanges": true, "range": [ 6, 6 ], "number": 2 } ] ], "paths": [ "null.js", "null.js" ], "oids": [ "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "ff464d15b288f85c9b313d7db279de2c7bf7061d" ] }, "filePaths": [ "null.js" ], "patch": [ "diff --git a/null.js b/null.js", "index e69de29..ff464d1 100644", "--- a/null.js", "+++ b/null.js", "@@ -0,0 +1 @@", "+null;" ], "gitDir": "test/corpus/repos/javascript", "shas": "32100dbe7cbc819422359a14ab7495be3254310f..86f55a90cfe40fbdeeb68022238d81184f0932e0" } ,{ "testCaseDescription": "javascript-null-replacement-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 7, 11 ] } ], "patch": "insert", "range": [ 0, 12 ] } ], "range": [ 0, 13 ] } ], "hasChanges": true, "range": [ 0, 13 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 13, 17 ] } ], "patch": "insert", "range": [ 13, 18 ] } ], "range": [ 13, 19 ] } ], "hasChanges": true, "range": [ 13, 19 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 4 ] } ], "range": [ 0, 5 ] } ], "range": [ 0, 6 ] } ], "hasChanges": false, "range": [ 0, 6 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 19, 23 ] } ], "range": [ 19, 24 ] } ], "range": [ 19, 25 ] } ], "hasChanges": false, "range": [ 19, 25 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 6, 6 ] } ], "hasChanges": false, "range": [ 6, 6 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [], "range": [ 25, 25 ] } ], "hasChanges": false, "range": [ 25, 25 ], "number": 4 } ] ], "paths": [ "null.js", "null.js" ], "oids": [ "ff464d15b288f85c9b313d7db279de2c7bf7061d", "2d3c3e032c12f42ff6f0ce1fce49f512071d403f" ] }, "filePaths": [ "null.js" ], "patch": [ "diff --git a/null.js b/null.js", "index ff464d1..2d3c3e0 100644", "--- a/null.js", "+++ b/null.js", "@@ -1 +1,3 @@", "+return null;", "+null;", " null;" ], "gitDir": "test/corpus/repos/javascript", "shas": "86f55a90cfe40fbdeeb68022238d81184f0932e0..0289269250068ba7071ae26974fd3c8a7ed46ab0" } ,{ "testCaseDescription": "javascript-null-delete-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 7, 11 ] } ], "patch": "delete", "range": [ 0, 12 ] } ], "range": [ 0, 13 ] } ], "hasChanges": true, "range": [ 0, 13 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 4 ] } ], "patch": "insert", "range": [ 0, 5 ] } ], "range": [ 0, 6 ] } ], "hasChanges": true, "range": [ 0, 6 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 13, 17 ] } ], "range": [ 13, 18 ] } ], "range": [ 13, 19 ] } ], "hasChanges": false, "range": [ 13, 19 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 6, 10 ] } ], "range": [ 6, 11 ] } ], "range": [ 6, 12 ] } ], "hasChanges": false, "range": [ 6, 12 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 19, 23 ] } ], "range": [ 19, 24 ] } ], "range": [ 19, 25 ] } ], "hasChanges": false, "range": [ 19, 25 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 12, 16 ] } ], "range": [ 12, 17 ] } ], "range": [ 12, 18 ] } ], "hasChanges": false, "range": [ 12, 18 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 25, 25 ] } ], "hasChanges": false, "range": [ 25, 25 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 18, 18 ] } ], "hasChanges": false, "range": [ 18, 18 ], "number": 4 } ] ], "paths": [ "null.js", "null.js" ], "oids": [ "2d3c3e032c12f42ff6f0ce1fce49f512071d403f", "3122897c071b31b6350901c14ada2c0bb1b24e4f" ] }, "filePaths": [ "null.js" ], "patch": [ "diff --git a/null.js b/null.js", "index 2d3c3e0..3122897 100644", "--- a/null.js", "+++ b/null.js", "@@ -1,3 +1,3 @@", "-return null;", "+null;", " null;", " null;" ], "gitDir": "test/corpus/repos/javascript", "shas": "0289269250068ba7071ae26974fd3c8a7ed46ab0..e48a4fe220f501abddbc4a16c44d570b990a3026" } ,{ "testCaseDescription": "javascript-null-replacement-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 4 ] } ], "patch": "delete", "range": [ 0, 5 ] } ], "range": [ 0, 6 ] } ], "hasChanges": true, "range": [ 0, 6 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 7, 11 ] } ], "patch": "insert", "range": [ 0, 12 ] } ], "range": [ 0, 13 ] } ], "hasChanges": true, "range": [ 0, 13 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 6, 10 ] } ], "range": [ 6, 11 ] } ], "range": [ 6, 12 ] } ], "hasChanges": false, "range": [ 6, 12 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 13, 17 ] } ], "range": [ 13, 18 ] } ], "range": [ 13, 19 ] } ], "hasChanges": false, "range": [ 13, 19 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 12, 16 ] } ], "range": [ 12, 17 ] } ], "range": [ 12, 18 ] } ], "hasChanges": false, "range": [ 12, 18 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 19, 23 ] } ], "range": [ 19, 24 ] } ], "range": [ 19, 25 ] } ], "hasChanges": false, "range": [ 19, 25 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 18, 18 ] } ], "hasChanges": false, "range": [ 18, 18 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 25, 25 ] } ], "hasChanges": false, "range": [ 25, 25 ], "number": 4 } ] ], "paths": [ "null.js", "null.js" ], "oids": [ "3122897c071b31b6350901c14ada2c0bb1b24e4f", "2d3c3e032c12f42ff6f0ce1fce49f512071d403f" ] }, "filePaths": [ "null.js" ], "patch": [ "diff --git a/null.js b/null.js", "index 3122897..2d3c3e0 100644", "--- a/null.js", "+++ b/null.js", "@@ -1,3 +1,3 @@", "-null;", "+return null;", " null;", " null;" ], "gitDir": "test/corpus/repos/javascript", "shas": "e48a4fe220f501abddbc4a16c44d570b990a3026..4983cc8781e012c5884c8f077015d7a4ed689d67" } ,{ "testCaseDescription": "javascript-null-delete-replacement-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 7, 11 ] } ], "patch": "delete", "range": [ 0, 12 ] } ], "range": [ 0, 13 ] } ], "hasChanges": true, "range": [ 0, 13 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 13, 17 ] } ], "patch": "delete", "range": [ 13, 18 ] } ], "range": [ 13, 19 ] } ], "hasChanges": true, "range": [ 13, 19 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 19, 23 ] } ], "range": [ 19, 24 ] } ], "range": [ 19, 25 ] } ], "hasChanges": false, "range": [ 19, 25 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 4 ] } ], "range": [ 0, 5 ] } ], "range": [ 0, 6 ] } ], "hasChanges": false, "range": [ 0, 6 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 13, 17 ] } ], "patch": "insert", "range": [ 6, 18 ] } ], "range": [ 6, 19 ] } ], "hasChanges": true, "range": [ 6, 19 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 25, 25 ] } ], "hasChanges": false, "range": [ 25, 25 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 19, 19 ] } ], "hasChanges": false, "range": [ 19, 19 ], "number": 3 } ] ], "paths": [ "null.js", "null.js" ], "oids": [ "2d3c3e032c12f42ff6f0ce1fce49f512071d403f", "0eb99c86abfbb4431a5b044161749c789d7864d4" ] }, "filePaths": [ "null.js" ], "patch": [ "diff --git a/null.js b/null.js", "index 2d3c3e0..0eb99c8 100644", "--- a/null.js", "+++ b/null.js", "@@ -1,3 +1,2 @@", "-return null;", "-null;", " null;", "+return null;" ], "gitDir": "test/corpus/repos/javascript", "shas": "4983cc8781e012c5884c8f077015d7a4ed689d67..cea8b90183ea7a84318980bb1b3934ee54b8a1f1" } ,{ "testCaseDescription": "javascript-null-delete-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 0, 4 ] } ], "patch": "delete", "range": [ 0, 5 ] } ], "range": [ 0, 6 ] } ], "hasChanges": true, "range": [ 0, 6 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 13, 17 ] } ], "range": [ 6, 18 ] } ], "range": [ 6, 19 ] } ], "hasChanges": false, "range": [ 6, 19 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 7, 11 ] } ], "range": [ 0, 12 ] } ], "range": [ 0, 13 ] } ], "hasChanges": false, "range": [ 0, 13 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 19, 19 ] } ], "hasChanges": false, "range": [ 19, 19 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [], "range": [ 13, 13 ] } ], "hasChanges": false, "range": [ 13, 13 ], "number": 2 } ] ], "paths": [ "null.js", "null.js" ], "oids": [ "0eb99c86abfbb4431a5b044161749c789d7864d4", "76137ff0e049cae270a489efd5473c201f39cc2f" ] }, "filePaths": [ "null.js" ], "patch": [ "diff --git a/null.js b/null.js", "index 0eb99c8..76137ff 100644", "--- a/null.js", "+++ b/null.js", "@@ -1,2 +1 @@", "-null;", " return null;" ], "gitDir": "test/corpus/repos/javascript", "shas": "cea8b90183ea7a84318980bb1b3934ee54b8a1f1..5dbd5eecb4a0dac8872d09eca47ac9717eca9abb" } ,{ "testCaseDescription": "javascript-null-delete-rest-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "Return", "children": [ { "category": "Identifier", "range": [ 7, 11 ] } ], "range": [ 0, 12 ] } ], "patch": "delete", "range": [ 0, 13 ] } ], "hasChanges": true, "range": [ 0, 13 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "patch": "delete", "range": [ 13, 13 ] } ], "hasChanges": true, "range": [ 13, 13 ], "number": 2 } ] ], "paths": [ "null.js", "null.js" ], "oids": [ "76137ff0e049cae270a489efd5473c201f39cc2f", "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391" ] }, "filePaths": [ "null.js" ], "patch": [ "diff --git a/null.js b/null.js", "index 76137ff..e69de29 100644", "--- a/null.js", "+++ b/null.js", "@@ -1 +0,0 @@", "-return null;" ], "gitDir": "test/corpus/repos/javascript", "shas": "5dbd5eecb4a0dac8872d09eca47ac9717eca9abb..61695447b9d6c99d6fbee197c961837045e9237b" }]