[{ "testCaseDescription": "javascript-function-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 9, 13 ] }, { "category": "Identifier", "range": [ 15, 19 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 23, 27 ] } ], "range": [ 23, 28 ] } ], "range": [ 21, 30 ] } ], "range": [ 0, 30 ] } ], "range": [ 0, 31 ] } ], "patch": "insert", "range": [ 0, 32 ] } ], "hasChanges": true, "range": [ 0, 32 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "patch": "insert", "range": [ 32, 32 ] } ], "hasChanges": true, "range": [ 32, 32 ], "number": 2 } ] ], "paths": [ "function.js", "function.js" ], "oids": [ "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "2d8d739d482e7d7f0d980b6142fc423d75eb3010" ] }, "filePaths": [ "function.js" ], "sha1": "c64220acd06d1d07ebc6df15d54c3328fa9edecc", "gitDir": "test/corpus/repos/javascript", "sha2": "bc4f5e3bdb4d447ffbe84935a1fcbfcf47d76b4b" } ,{ "testCaseDescription": "javascript-function-replacement-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 9, 13 ] }, { "category": "Identifier", "range": [ 15, 19 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 23, 27 ] } ], "range": [ 23, 28 ] } ], "range": [ 21, 30 ] } ], "range": [ 0, 30 ] } ], "patch": "insert", "range": [ 0, 31 ] } ], "range": [ 0, 32 ] } ], "hasChanges": true, "range": [ 0, 32 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 41, 45 ] }, { "category": "Identifier", "range": [ 47, 51 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 55, 59 ] } ], "range": [ 55, 60 ] } ], "range": [ 53, 62 ] } ], "range": [ 32, 62 ] } ], "patch": "insert", "range": [ 32, 63 ] } ], "range": [ 32, 64 ] } ], "hasChanges": true, "range": [ 32, 64 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 9, 13 ] }, { "category": "Identifier", "range": [ 15, 19 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 23, 27 ] } ], "range": [ 23, 28 ] } ], "range": [ 21, 30 ] } ], "range": [ 0, 30 ] } ], "range": [ 0, 31 ] } ], "range": [ 0, 32 ] } ], "hasChanges": false, "range": [ 0, 32 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 73, 77 ] }, { "category": "Identifier", "range": [ 79, 83 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 87, 91 ] } ], "range": [ 87, 92 ] } ], "range": [ 85, 94 ] } ], "range": [ 64, 94 ] } ], "range": [ 64, 95 ] } ], "range": [ 64, 96 ] } ], "hasChanges": false, "range": [ 64, 96 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 32, 32 ] } ], "hasChanges": false, "range": [ 32, 32 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [], "range": [ 96, 96 ] } ], "hasChanges": false, "range": [ 96, 96 ], "number": 4 } ] ], "paths": [ "function.js", "function.js" ], "oids": [ "2d8d739d482e7d7f0d980b6142fc423d75eb3010", "43894067640469e6a77901bd079d5d4e5722834b" ] }, "filePaths": [ "function.js" ], "sha1": "bc4f5e3bdb4d447ffbe84935a1fcbfcf47d76b4b", "gitDir": "test/corpus/repos/javascript", "sha2": "e3c63f0a2aad10e4e3c45afbeca877951945a0da" } ,{ "testCaseDescription": "javascript-function-delete-insert-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 9, 13 ] }, { "category": "Identifier", "range": [ 15, 19 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "patch": "replace", "range": [ 23, 27 ] } ], "range": [ 23, 28 ] } ], "range": [ 21, 30 ] } ], "range": [ 0, 30 ] } ], "range": [ 0, 31 ] } ], "range": [ 0, 32 ] } ], "hasChanges": true, "range": [ 0, 32 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 9, 13 ] }, { "category": "Identifier", "range": [ 15, 19 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "patch": "replace", "range": [ 23, 27 ] } ], "range": [ 23, 28 ] } ], "range": [ 21, 30 ] } ], "range": [ 0, 30 ] } ], "range": [ 0, 31 ] } ], "range": [ 0, 32 ] } ], "hasChanges": true, "range": [ 0, 32 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 41, 45 ] }, { "category": "Identifier", "range": [ 47, 51 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 55, 59 ] } ], "range": [ 55, 60 ] } ], "range": [ 53, 62 ] } ], "range": [ 32, 62 ] } ], "range": [ 32, 63 ] } ], "range": [ 32, 64 ] } ], "hasChanges": false, "range": [ 32, 64 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 41, 45 ] }, { "category": "Identifier", "range": [ 47, 51 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 55, 59 ] } ], "range": [ 55, 60 ] } ], "range": [ 53, 62 ] } ], "range": [ 32, 62 ] } ], "range": [ 32, 63 ] } ], "range": [ 32, 64 ] } ], "hasChanges": false, "range": [ 32, 64 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 73, 77 ] }, { "category": "Identifier", "range": [ 79, 83 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 87, 91 ] } ], "range": [ 87, 92 ] } ], "range": [ 85, 94 ] } ], "range": [ 64, 94 ] } ], "range": [ 64, 95 ] } ], "range": [ 64, 96 ] } ], "hasChanges": false, "range": [ 64, 96 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 73, 77 ] }, { "category": "Identifier", "range": [ 79, 83 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 87, 91 ] } ], "range": [ 87, 92 ] } ], "range": [ 85, 94 ] } ], "range": [ 64, 94 ] } ], "range": [ 64, 95 ] } ], "range": [ 64, 96 ] } ], "hasChanges": false, "range": [ 64, 96 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 96, 96 ] } ], "hasChanges": false, "range": [ 96, 96 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 96, 96 ] } ], "hasChanges": false, "range": [ 96, 96 ], "number": 4 } ] ], "paths": [ "function.js", "function.js" ], "oids": [ "43894067640469e6a77901bd079d5d4e5722834b", "924c99e8aa9987bfcbda2792c3339981a92b87fe" ] }, "filePaths": [ "function.js" ], "sha1": "e3c63f0a2aad10e4e3c45afbeca877951945a0da", "gitDir": "test/corpus/repos/javascript", "sha2": "57d4e9f50c805256fc99f77d9c873ff487121c67" } ,{ "testCaseDescription": "javascript-function-replacement-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 9, 13 ] }, { "category": "Identifier", "range": [ 15, 19 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "patch": "replace", "range": [ 23, 27 ] } ], "range": [ 23, 28 ] } ], "range": [ 21, 30 ] } ], "range": [ 0, 30 ] } ], "range": [ 0, 31 ] } ], "range": [ 0, 32 ] } ], "hasChanges": true, "range": [ 0, 32 ], "number": 1 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 9, 13 ] }, { "category": "Identifier", "range": [ 15, 19 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "patch": "replace", "range": [ 23, 27 ] } ], "range": [ 23, 28 ] } ], "range": [ 21, 30 ] } ], "range": [ 0, 30 ] } ], "range": [ 0, 31 ] } ], "range": [ 0, 32 ] } ], "hasChanges": true, "range": [ 0, 32 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 41, 45 ] }, { "category": "Identifier", "range": [ 47, 51 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 55, 59 ] } ], "range": [ 55, 60 ] } ], "range": [ 53, 62 ] } ], "range": [ 32, 62 ] } ], "range": [ 32, 63 ] } ], "range": [ 32, 64 ] } ], "hasChanges": false, "range": [ 32, 64 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 41, 45 ] }, { "category": "Identifier", "range": [ 47, 51 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 55, 59 ] } ], "range": [ 55, 60 ] } ], "range": [ 53, 62 ] } ], "range": [ 32, 62 ] } ], "range": [ 32, 63 ] } ], "range": [ 32, 64 ] } ], "hasChanges": false, "range": [ 32, 64 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 73, 77 ] }, { "category": "Identifier", "range": [ 79, 83 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 87, 91 ] } ], "range": [ 87, 92 ] } ], "range": [ 85, 94 ] } ], "range": [ 64, 94 ] } ], "range": [ 64, 95 ] } ], "range": [ 64, 96 ] } ], "hasChanges": false, "range": [ 64, 96 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 73, 77 ] }, { "category": "Identifier", "range": [ 79, 83 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 87, 91 ] } ], "range": [ 87, 92 ] } ], "range": [ 85, 94 ] } ], "range": [ 64, 94 ] } ], "range": [ 64, 95 ] } ], "range": [ 64, 96 ] } ], "hasChanges": false, "range": [ 64, 96 ], "number": 3 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 96, 96 ] } ], "hasChanges": false, "range": [ 96, 96 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 96, 96 ] } ], "hasChanges": false, "range": [ 96, 96 ], "number": 4 } ] ], "paths": [ "function.js", "function.js" ], "oids": [ "924c99e8aa9987bfcbda2792c3339981a92b87fe", "43894067640469e6a77901bd079d5d4e5722834b" ] }, "filePaths": [ "function.js" ], "sha1": "57d4e9f50c805256fc99f77d9c873ff487121c67", "gitDir": "test/corpus/repos/javascript", "sha2": "d04102b3a4d088dee11ccb28fc9b7e5d17752267" } ,{ "testCaseDescription": "javascript-function-delete-replacement-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 9, 13 ] }, { "category": "Identifier", "range": [ 15, 19 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 23, 27 ] } ], "range": [ 23, 28 ] } ], "range": [ 21, 30 ] } ], "range": [ 0, 30 ] } ], "patch": "delete", "range": [ 0, 31 ] } ], "range": [ 0, 32 ] } ], "hasChanges": true, "range": [ 0, 32 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 41, 45 ] }, { "category": "Identifier", "range": [ 47, 51 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 55, 59 ] } ], "range": [ 55, 60 ] } ], "range": [ 53, 62 ] } ], "range": [ 32, 62 ] } ], "patch": "delete", "range": [ 32, 63 ] } ], "range": [ 32, 64 ] } ], "hasChanges": true, "range": [ 32, 64 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 73, 77 ] }, { "category": "Identifier", "range": [ 79, 83 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 87, 91 ] } ], "range": [ 87, 92 ] } ], "range": [ 85, 94 ] } ], "range": [ 64, 94 ] } ], "range": [ 64, 95 ] } ], "range": [ 64, 96 ] } ], "hasChanges": false, "range": [ 64, 96 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 9, 13 ] }, { "category": "Identifier", "range": [ 15, 19 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 23, 27 ] } ], "range": [ 23, 28 ] } ], "range": [ 21, 30 ] } ], "range": [ 0, 30 ] } ], "range": [ 0, 31 ] } ], "range": [ 0, 32 ] } ], "hasChanges": false, "range": [ 0, 32 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 41, 45 ] }, { "category": "Identifier", "range": [ 47, 51 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 55, 59 ] } ], "range": [ 55, 60 ] } ], "range": [ 53, 62 ] } ], "range": [ 32, 62 ] } ], "patch": "insert", "range": [ 32, 63 ] } ], "range": [ 32, 64 ] } ], "hasChanges": true, "range": [ 32, 64 ], "number": 2 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 96, 96 ] } ], "hasChanges": false, "range": [ 96, 96 ], "number": 4 }, { "terms": [ { "category": "Program", "children": [], "range": [ 64, 64 ] } ], "hasChanges": false, "range": [ 64, 64 ], "number": 3 } ] ], "paths": [ "function.js", "function.js" ], "oids": [ "43894067640469e6a77901bd079d5d4e5722834b", "254dbcf8c9097c6baf325a62c8caa89ce4cc988c" ] }, "filePaths": [ "function.js" ], "sha1": "d04102b3a4d088dee11ccb28fc9b7e5d17752267", "gitDir": "test/corpus/repos/javascript", "sha2": "ab8067fea06c7bf8b5e30ce60e5acbf5a2d8a381" } ,{ "testCaseDescription": "javascript-function-delete-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 9, 13 ] }, { "category": "Identifier", "range": [ 15, 19 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 23, 27 ] } ], "range": [ 23, 28 ] } ], "range": [ 21, 30 ] } ], "range": [ 0, 30 ] } ], "patch": "delete", "range": [ 0, 31 ] } ], "range": [ 0, 32 ] } ], "hasChanges": true, "range": [ 0, 32 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 41, 45 ] }, { "category": "Identifier", "range": [ 47, 51 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 55, 59 ] } ], "range": [ 55, 60 ] } ], "range": [ 53, 62 ] } ], "range": [ 32, 62 ] } ], "range": [ 32, 63 ] } ], "range": [ 32, 64 ] } ], "hasChanges": false, "range": [ 32, 64 ], "number": 2 }, { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 9, 13 ] }, { "category": "Identifier", "range": [ 15, 19 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 23, 27 ] } ], "range": [ 23, 28 ] } ], "range": [ 21, 30 ] } ], "range": [ 0, 30 ] } ], "range": [ 0, 31 ] } ], "range": [ 0, 32 ] } ], "hasChanges": false, "range": [ 0, 32 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "range": [ 64, 64 ] } ], "hasChanges": false, "range": [ 64, 64 ], "number": 3 }, { "terms": [ { "category": "Program", "children": [], "range": [ 32, 32 ] } ], "hasChanges": false, "range": [ 32, 32 ], "number": 2 } ] ], "paths": [ "function.js", "function.js" ], "oids": [ "254dbcf8c9097c6baf325a62c8caa89ce4cc988c", "b37e8671369086f500640d97788b75427fef8d5b" ] }, "filePaths": [ "function.js" ], "sha1": "ab8067fea06c7bf8b5e30ce60e5acbf5a2d8a381", "gitDir": "test/corpus/repos/javascript", "sha2": "c174551848d6f73197e5e7134ee00797b904812d" } ,{ "testCaseDescription": "javascript-function-delete-rest-test", "expectedResult": { "rows": [ [ { "terms": [ { "category": "Program", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Function", "children": [ { "category": "Identifier", "range": [ 9, 13 ] }, { "category": "Identifier", "range": [ 15, 19 ] }, { "category": "ExpressionStatements", "children": [ { "category": "ExpressionStatements", "children": [ { "category": "Identifier", "range": [ 23, 27 ] } ], "range": [ 23, 28 ] } ], "range": [ 21, 30 ] } ], "range": [ 0, 30 ] } ], "range": [ 0, 31 ] } ], "patch": "delete", "range": [ 0, 32 ] } ], "hasChanges": true, "range": [ 0, 32 ], "number": 1 } ], [ { "terms": [ { "category": "Program", "children": [], "patch": "delete", "range": [ 32, 32 ] } ], "hasChanges": true, "range": [ 32, 32 ], "number": 2 } ] ], "paths": [ "function.js", "function.js" ], "oids": [ "b37e8671369086f500640d97788b75427fef8d5b", "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391" ] }, "filePaths": [ "function.js" ], "sha1": "c174551848d6f73197e5e7134ee00797b904812d", "gitDir": "test/corpus/repos/javascript", "sha2": "34935b093118fc5ab9a3ac0ef476252d235a67e1" }]