[{ "testCaseDescription": "ruby-while-insert-test", "expectedResult": { "changes": { "while.rb": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 2, 4 ] } }, "summary": "Added the 'foo' while statement" }, { "span": { "insert": { "start": [ 3, 1 ], "end": [ 3, 14 ] } }, "summary": "Added the 'run' while statement" } ] }, "errors": {} }, "filePaths": [ "while.rb" ], "patch": [ "diff --git a/while.rb b/while.rb", "index e69de29..9990bdf 100644", "--- a/while.rb", "+++ b/while.rb", "@@ -0,0 +1,3 @@", "+while foo do", "+end", "+foo while run" ], "gitDir": "test/corpus/repos/ruby", "shas": "0ea1cbaad545a54267144f11a8d792fca30cf547..1c849fa3191de04f500a9534aae7f04708bae91e" } ,{ "testCaseDescription": "ruby-while-replacement-insert-test", "expectedResult": { "changes": { "while.rb": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 3, 4 ] } }, "summary": "Added the 'foo' while statement" }, { "span": { "insert": { "start": [ 4, 1 ], "end": [ 5, 4 ] } }, "summary": "Added the 'foo' while statement" }, { "span": { "insert": { "start": [ 6, 1 ], "end": [ 6, 14 ] } }, "summary": "Added the 'run' while statement" } ] }, "errors": {} }, "filePaths": [ "while.rb" ], "patch": [ "diff --git a/while.rb b/while.rb", "index 9990bdf..5a24260 100644", "--- a/while.rb", "+++ b/while.rb", "@@ -1,3 +1,9 @@", "+while foo", "+ bar", "+end", "+while foo do", "+end", "+foo while run", " while foo do", " end", " foo while run" ], "gitDir": "test/corpus/repos/ruby", "shas": "1c849fa3191de04f500a9534aae7f04708bae91e..ce45201d611ff1a381bee7c0d7b4eba2a5261228" } ,{ "testCaseDescription": "ruby-while-delete-insert-test", "expectedResult": { "changes": { "while.rb": [ { "span": { "delete": { "start": [ 2, 3 ], "end": [ 2, 6 ] } }, "summary": "Deleted the 'bar' identifier" }, { "span": { "insert": { "start": [ 3, 1 ], "end": [ 3, 14 ] } }, "summary": "Added the 'run' while statement" } ] }, "errors": {} }, "filePaths": [ "while.rb" ], "patch": [ "diff --git a/while.rb b/while.rb", "index 5a24260..c0c26cd 100644", "--- a/while.rb", "+++ b/while.rb", "@@ -1,6 +1,6 @@", "-while foo", "- bar", "+while foo do", " end", "+foo while run", " while foo do", " end", " foo while run" ], "gitDir": "test/corpus/repos/ruby", "shas": "ce45201d611ff1a381bee7c0d7b4eba2a5261228..76f1616d8999184e0058a66f6871ca4f039f5e1c" } ,{ "testCaseDescription": "ruby-while-replacement-test", "expectedResult": { "changes": { "while.rb": [ { "span": { "insert": { "start": [ 2, 3 ], "end": [ 2, 6 ] } }, "summary": "Added the 'bar' identifier" }, { "span": { "delete": { "start": [ 3, 1 ], "end": [ 3, 14 ] } }, "summary": "Deleted the 'run' while statement" } ] }, "errors": {} }, "filePaths": [ "while.rb" ], "patch": [ "diff --git a/while.rb b/while.rb", "index c0c26cd..5a24260 100644", "--- a/while.rb", "+++ b/while.rb", "@@ -1,6 +1,6 @@", "-while foo do", "+while foo", "+ bar", " end", "-foo while run", " while foo do", " end", " foo while run" ], "gitDir": "test/corpus/repos/ruby", "shas": "76f1616d8999184e0058a66f6871ca4f039f5e1c..d2fb5c6486f918b1d250f5561389fec71fadc005" } ,{ "testCaseDescription": "ruby-while-delete-replacement-test", "expectedResult": { "changes": { "while.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 3, 4 ] } }, "summary": "Deleted the 'foo' while statement" }, { "span": { "delete": { "start": [ 4, 1 ], "end": [ 5, 4 ] } }, "summary": "Deleted the 'foo' while statement" }, { "span": { "delete": { "start": [ 6, 1 ], "end": [ 6, 14 ] } }, "summary": "Deleted the 'run' while statement" }, { "span": { "insert": { "start": [ 4, 1 ], "end": [ 6, 4 ] } }, "summary": "Added the 'foo' while statement" } ] }, "errors": {} }, "filePaths": [ "while.rb" ], "patch": [ "diff --git a/while.rb b/while.rb", "index 5a24260..3763a72 100644", "--- a/while.rb", "+++ b/while.rb", "@@ -1,9 +1,6 @@", "-while foo", "- bar", "-end", " while foo do", " end", " foo while run", "-while foo do", "+while foo", "+ bar", " end", "-foo while run" ], "gitDir": "test/corpus/repos/ruby", "shas": "d2fb5c6486f918b1d250f5561389fec71fadc005..deb693d7595e21ca8bf5d127aba20362b01259ee" } ,{ "testCaseDescription": "ruby-while-delete-test", "expectedResult": { "changes": { "while.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 2, 4 ] } }, "summary": "Deleted the 'foo' while statement" }, { "span": { "delete": { "start": [ 3, 1 ], "end": [ 3, 14 ] } }, "summary": "Deleted the 'run' while statement" } ] }, "errors": {} }, "filePaths": [ "while.rb" ], "patch": [ "diff --git a/while.rb b/while.rb", "index 3763a72..57e673b 100644", "--- a/while.rb", "+++ b/while.rb", "@@ -1,6 +1,3 @@", "-while foo do", "-end", "-foo while run", " while foo", " bar", " end" ], "gitDir": "test/corpus/repos/ruby", "shas": "deb693d7595e21ca8bf5d127aba20362b01259ee..b96838d1e529db101b960f04c66dd54aeec21d92" } ,{ "testCaseDescription": "ruby-while-delete-rest-test", "expectedResult": { "changes": { "while.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 3, 4 ] } }, "summary": "Deleted the 'foo' while statement" } ] }, "errors": {} }, "filePaths": [ "while.rb" ], "patch": [ "diff --git a/while.rb b/while.rb", "index 57e673b..e69de29 100644", "--- a/while.rb", "+++ b/while.rb", "@@ -1,3 +0,0 @@", "-while foo", "- bar", "-end" ], "gitDir": "test/corpus/repos/ruby", "shas": "b96838d1e529db101b960f04c66dd54aeec21d92..527524ae442ea64d2a0f8d057a8f3f29091b94b7" }]