[{ "testCaseDescription": "ruby-for-insert-test", "expectedResult": { "changes": { "for.rb": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 3, 4 ] } }, "summary": "Added the 'x in y' for statement" } ] }, "errors": {} }, "filePaths": [ "for.rb" ], "patch": [ "diff --git a/for.rb b/for.rb", "index e69de29..e4ea259 100644", "--- a/for.rb", "+++ b/for.rb", "@@ -0,0 +1,3 @@", "+for x in y", "+ f", "+end" ], "gitDir": "test/corpus/repos/ruby", "shas": "b8e7a4d5034214328f3391e3c6001076f5bb6ec9..1e4b5ce7ca850c42c111c21fd9d8f38990fc3cbf" } ,{ "testCaseDescription": "ruby-for-replacement-insert-test", "expectedResult": { "changes": { "for.rb": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 3, 4 ] } }, "summary": "Added the 'i in [1,2,3]' for statement" }, { "span": { "insert": { "start": [ 4, 1 ], "end": [ 6, 4 ] } }, "summary": "Added the 'x in y' for statement" } ] }, "errors": {} }, "filePaths": [ "for.rb" ], "patch": [ "diff --git a/for.rb b/for.rb", "index e4ea259..1ec5fb3 100644", "--- a/for.rb", "+++ b/for.rb", "@@ -1,3 +1,9 @@", "+for i in [1,2,3] do", "+ print i", "+end", "+for x in y", "+ f", "+end", " for x in y", " f", " end" ], "gitDir": "test/corpus/repos/ruby", "shas": "1e4b5ce7ca850c42c111c21fd9d8f38990fc3cbf..c2e6812edb506dd8a3b9419e33f6d21c4998a1b7" } ,{ "testCaseDescription": "ruby-for-delete-insert-test", "expectedResult": { "changes": { "for.rb": [ { "span": { "replace": [ { "start": [ 1, 1 ], "end": [ 3, 4 ] }, { "start": [ 1, 1 ], "end": [ 3, 4 ] } ] }, "summary": "Replaced the 'i in [1,2,3]' for statement with the 'x in y' for statement" } ] }, "errors": {} }, "filePaths": [ "for.rb" ], "patch": [ "diff --git a/for.rb b/for.rb", "index 1ec5fb3..b6b5bdd 100644", "--- a/for.rb", "+++ b/for.rb", "@@ -1,5 +1,5 @@", "-for i in [1,2,3] do", "- print i", "+for x in y", "+ f", " end", " for x in y", " f" ], "gitDir": "test/corpus/repos/ruby", "shas": "c2e6812edb506dd8a3b9419e33f6d21c4998a1b7..bd3974e67a2154631e5a3348a1c4d13d38277cf7" } ,{ "testCaseDescription": "ruby-for-replacement-test", "expectedResult": { "changes": { "for.rb": [ { "span": { "replace": [ { "start": [ 1, 1 ], "end": [ 3, 4 ] }, { "start": [ 1, 1 ], "end": [ 3, 4 ] } ] }, "summary": "Replaced the 'x in y' for statement with the 'i in [1,2,3]' for statement" } ] }, "errors": {} }, "filePaths": [ "for.rb" ], "patch": [ "diff --git a/for.rb b/for.rb", "index b6b5bdd..1ec5fb3 100644", "--- a/for.rb", "+++ b/for.rb", "@@ -1,5 +1,5 @@", "-for x in y", "- f", "+for i in [1,2,3] do", "+ print i", " end", " for x in y", " f" ], "gitDir": "test/corpus/repos/ruby", "shas": "bd3974e67a2154631e5a3348a1c4d13d38277cf7..7547579e6c4c271afb05ba08271f0ed4b4b678ea" } ,{ "testCaseDescription": "ruby-for-delete-replacement-test", "expectedResult": { "changes": { "for.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 3, 4 ] } }, "summary": "Deleted the 'i in [1,2,3]' for statement" }, { "span": { "delete": { "start": [ 4, 1 ], "end": [ 6, 4 ] } }, "summary": "Deleted the 'x in y' for statement" }, { "span": { "insert": { "start": [ 4, 1 ], "end": [ 6, 4 ] } }, "summary": "Added the 'i in [1,2,3]' for statement" } ] }, "errors": {} }, "filePaths": [ "for.rb" ], "patch": [ "diff --git a/for.rb b/for.rb", "index 1ec5fb3..543a0c8 100644", "--- a/for.rb", "+++ b/for.rb", "@@ -1,9 +1,6 @@", "-for i in [1,2,3] do", "- print i", "-end", " for x in y", " f", " end", "-for x in y", "- f", "+for i in [1,2,3] do", "+ print i", " end" ], "gitDir": "test/corpus/repos/ruby", "shas": "7547579e6c4c271afb05ba08271f0ed4b4b678ea..467953257426ae06a5f6026a93d2820676c903c0" } ,{ "testCaseDescription": "ruby-for-delete-test", "expectedResult": { "changes": { "for.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 3, 4 ] } }, "summary": "Deleted the 'x in y' for statement" } ] }, "errors": {} }, "filePaths": [ "for.rb" ], "patch": [ "diff --git a/for.rb b/for.rb", "index 543a0c8..9031ee4 100644", "--- a/for.rb", "+++ b/for.rb", "@@ -1,6 +1,3 @@", "-for x in y", "- f", "-end", " for i in [1,2,3] do", " print i", " end" ], "gitDir": "test/corpus/repos/ruby", "shas": "467953257426ae06a5f6026a93d2820676c903c0..1fd6b5413c62cdb0f0b1822736dfdacdbbc267a0" } ,{ "testCaseDescription": "ruby-for-delete-rest-test", "expectedResult": { "changes": { "for.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 3, 4 ] } }, "summary": "Deleted the 'i in [1,2,3]' for statement" } ] }, "errors": {} }, "filePaths": [ "for.rb" ], "patch": [ "diff --git a/for.rb b/for.rb", "index 9031ee4..e69de29 100644", "--- a/for.rb", "+++ b/for.rb", "@@ -1,3 +0,0 @@", "-for i in [1,2,3] do", "- print i", "-end" ], "gitDir": "test/corpus/repos/ruby", "shas": "1fd6b5413c62cdb0f0b1822736dfdacdbbc267a0..72f935172c31da7ddd21bf1a12c7baeb4fdb3419" }]