[{ "testCaseDescription": "javascript-nested-functions-insert-test", "expectedResult": { "changes": { "nested-functions.js": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 1, 103 ] } }, "summary": "Added the 'parent' function" } ] }, "errors": {} }, "filePaths": [ "nested-functions.js" ], "patch": [ "diff --git a/nested-functions.js b/nested-functions.js", "index e69de29..72531d8 100644", "--- a/nested-functions.js", "+++ b/nested-functions.js", "@@ -0,0 +1 @@", "+function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg3); console.log(arg4); } }" ], "gitDir": "test/corpus/repos/javascript", "shas": "d1b2bee18a7da4fefa2a4786b2f692fc5795f48c..71dc5237f7ffca394739d3f93487a7187b0a12a8" } ,{ "testCaseDescription": "javascript-nested-functions-replacement-insert-test", "expectedResult": { "changes": { "nested-functions.js": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 1, 103 ] } }, "summary": "Added the 'parent' function" }, { "span": { "insert": { "start": [ 2, 1 ], "end": [ 2, 103 ] } }, "summary": "Added the 'parent' function" } ] }, "errors": {} }, "filePaths": [ "nested-functions.js" ], "patch": [ "diff --git a/nested-functions.js b/nested-functions.js", "index 72531d8..c960aae 100644", "--- a/nested-functions.js", "+++ b/nested-functions.js", "@@ -1 +1,3 @@", "+function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg1); console.log(arg2); } }", "+function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg3); console.log(arg4); } }", " function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg3); console.log(arg4); } }" ], "gitDir": "test/corpus/repos/javascript", "shas": "71dc5237f7ffca394739d3f93487a7187b0a12a8..7e5b3b060a63fde4ac14ad0902c3cfa453e7342e" } ,{ "testCaseDescription": "javascript-nested-functions-delete-insert-test", "expectedResult": { "changes": { "nested-functions.js": [ { "span": { "replace": [ { "start": [ 1, 74 ], "end": [ 1, 78 ] }, { "start": [ 1, 74 ], "end": [ 1, 78 ] } ] }, "summary": "Replaced the 'arg1' identifier with the 'arg3' identifier in the console.log(arg3) method call of the 'child' function" }, { "span": { "replace": [ { "start": [ 1, 93 ], "end": [ 1, 97 ] }, { "start": [ 1, 93 ], "end": [ 1, 97 ] } ] }, "summary": "Replaced the 'arg2' identifier with the 'arg4' identifier in the console.log(arg4) method call of the 'child' function" } ] }, "errors": {} }, "filePaths": [ "nested-functions.js" ], "patch": [ "diff --git a/nested-functions.js b/nested-functions.js", "index c960aae..1b9b61a 100644", "--- a/nested-functions.js", "+++ b/nested-functions.js", "@@ -1,3 +1,3 @@", "-function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg1); console.log(arg2); } }", "+function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg3); console.log(arg4); } }", " function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg3); console.log(arg4); } }", " function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg3); console.log(arg4); } }" ], "gitDir": "test/corpus/repos/javascript", "shas": "7e5b3b060a63fde4ac14ad0902c3cfa453e7342e..ca415e38a948a4c4de9d07e37c1c9cfc34d8445c" } ,{ "testCaseDescription": "javascript-nested-functions-replacement-test", "expectedResult": { "changes": { "nested-functions.js": [ { "span": { "replace": [ { "start": [ 1, 74 ], "end": [ 1, 78 ] }, { "start": [ 1, 74 ], "end": [ 1, 78 ] } ] }, "summary": "Replaced the 'arg3' identifier with the 'arg1' identifier in the console.log(arg1) method call of the 'child' function" }, { "span": { "replace": [ { "start": [ 1, 93 ], "end": [ 1, 97 ] }, { "start": [ 1, 93 ], "end": [ 1, 97 ] } ] }, "summary": "Replaced the 'arg4' identifier with the 'arg2' identifier in the console.log(arg2) method call of the 'child' function" } ] }, "errors": {} }, "filePaths": [ "nested-functions.js" ], "patch": [ "diff --git a/nested-functions.js b/nested-functions.js", "index 1b9b61a..c960aae 100644", "--- a/nested-functions.js", "+++ b/nested-functions.js", "@@ -1,3 +1,3 @@", "-function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg3); console.log(arg4); } }", "+function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg1); console.log(arg2); } }", " function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg3); console.log(arg4); } }", " function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg3); console.log(arg4); } }" ], "gitDir": "test/corpus/repos/javascript", "shas": "ca415e38a948a4c4de9d07e37c1c9cfc34d8445c..2c630214d8f19ee0f2818b939a13a27d703d2b17" } ,{ "testCaseDescription": "javascript-nested-functions-delete-replacement-test", "expectedResult": { "changes": { "nested-functions.js": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 1, 103 ] } }, "summary": "Deleted the 'parent' function" }, { "span": { "delete": { "start": [ 2, 1 ], "end": [ 2, 103 ] } }, "summary": "Deleted the 'parent' function" }, { "span": { "insert": { "start": [ 2, 1 ], "end": [ 2, 103 ] } }, "summary": "Added the 'parent' function" } ] }, "errors": {} }, "filePaths": [ "nested-functions.js" ], "patch": [ "diff --git a/nested-functions.js b/nested-functions.js", "index c960aae..81522c7 100644", "--- a/nested-functions.js", "+++ b/nested-functions.js", "@@ -1,3 +1,2 @@", "-function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg1); console.log(arg2); } }", "-function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg3); console.log(arg4); } }", " function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg3); console.log(arg4); } }", "+function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg1); console.log(arg2); } }" ], "gitDir": "test/corpus/repos/javascript", "shas": "2c630214d8f19ee0f2818b939a13a27d703d2b17..8d2f83fd46bff59083e96ad5e3f2840603171027" } ,{ "testCaseDescription": "javascript-nested-functions-delete-test", "expectedResult": { "changes": { "nested-functions.js": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 1, 103 ] } }, "summary": "Deleted the 'parent' function" } ] }, "errors": {} }, "filePaths": [ "nested-functions.js" ], "patch": [ "diff --git a/nested-functions.js b/nested-functions.js", "index 81522c7..3056480 100644", "--- a/nested-functions.js", "+++ b/nested-functions.js", "@@ -1,2 +1 @@", "-function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg3); console.log(arg4); } }", " function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg1); console.log(arg2); } }" ], "gitDir": "test/corpus/repos/javascript", "shas": "8d2f83fd46bff59083e96ad5e3f2840603171027..13f268f35a3fde68001653b29f9e0eb0568c4d14" } ,{ "testCaseDescription": "javascript-nested-functions-delete-rest-test", "expectedResult": { "changes": { "nested-functions.js": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 1, 103 ] } }, "summary": "Deleted the 'parent' function" } ] }, "errors": {} }, "filePaths": [ "nested-functions.js" ], "patch": [ "diff --git a/nested-functions.js b/nested-functions.js", "index 3056480..e69de29 100644", "--- a/nested-functions.js", "+++ b/nested-functions.js", "@@ -1 +0,0 @@", "-function parent (arg1, arg2) { function child (arg3, arg4) { console.log(arg1); console.log(arg2); } }" ], "gitDir": "test/corpus/repos/javascript", "shas": "13f268f35a3fde68001653b29f9e0eb0568c4d14..b916dd0d4e57f46f672acd9dc9130eef9e0bcc60" }]