[{ "testCaseDescription": "ruby-singleton-class-insert-test", "expectedResult": { "changes": { "singleton-class.rb": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 3, 4 ] } }, "summary": "Added the 'self' singleton class" } ] }, "errors": {} }, "filePaths": [ "singleton-class.rb" ], "patch": [ "diff --git a/singleton-class.rb b/singleton-class.rb", "index e69de29..590cb5d 100644", "--- a/singleton-class.rb", "+++ b/singleton-class.rb", "@@ -0,0 +1,3 @@", "+class << self", "+ foo", "+end" ], "gitDir": "test/corpus/repos/ruby", "shas": "5a0c5f74c27f2622ddce9d3c8b936ca4f8465bc3..f2f61d73782ecfc1e56390af63e2ccc73a3fa920" } ,{ "testCaseDescription": "ruby-singleton-class-replacement-insert-test", "expectedResult": { "changes": { "singleton-class.rb": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 3, 4 ] } }, "summary": "Added the 'Foo' singleton class" }, { "span": { "insert": { "start": [ 4, 1 ], "end": [ 6, 4 ] } }, "summary": "Added the 'self' singleton class" } ] }, "errors": {} }, "filePaths": [ "singleton-class.rb" ], "patch": [ "diff --git a/singleton-class.rb b/singleton-class.rb", "index 590cb5d..0e4dd17 100644", "--- a/singleton-class.rb", "+++ b/singleton-class.rb", "@@ -1,3 +1,9 @@", "+class << Foo", "+ bar", "+end", "+class << self", "+ foo", "+end", " class << self", " foo", " end" ], "gitDir": "test/corpus/repos/ruby", "shas": "f2f61d73782ecfc1e56390af63e2ccc73a3fa920..0f833bc1b36270e4d8aed6e34d7dfb229417faa4" } ,{ "testCaseDescription": "ruby-singleton-class-delete-insert-test", "expectedResult": { "changes": { "singleton-class.rb": [ { "span": { "replace": [ { "start": [ 1, 10 ], "end": [ 1, 13 ] }, { "start": [ 1, 10 ], "end": [ 1, 14 ] } ] }, "summary": "Replaced the 'Foo' identifier with the 'self' identifier in the self singleton class" }, { "span": { "replace": [ { "start": [ 2, 3 ], "end": [ 2, 6 ] }, { "start": [ 2, 3 ], "end": [ 2, 6 ] } ] }, "summary": "Replaced the 'bar' identifier with the 'foo' identifier in the self singleton class" } ] }, "errors": {} }, "filePaths": [ "singleton-class.rb" ], "patch": [ "diff --git a/singleton-class.rb b/singleton-class.rb", "index 0e4dd17..ad3e3cd 100644", "--- a/singleton-class.rb", "+++ b/singleton-class.rb", "@@ -1,5 +1,5 @@", "-class << Foo", "- bar", "+class << self", "+ foo", " end", " class << self", " foo" ], "gitDir": "test/corpus/repos/ruby", "shas": "0f833bc1b36270e4d8aed6e34d7dfb229417faa4..62b6faea97c969484d00d50d4bc8503c149f9aee" } ,{ "testCaseDescription": "ruby-singleton-class-replacement-test", "expectedResult": { "changes": { "singleton-class.rb": [ { "span": { "replace": [ { "start": [ 1, 10 ], "end": [ 1, 14 ] }, { "start": [ 1, 10 ], "end": [ 1, 13 ] } ] }, "summary": "Replaced the 'self' identifier with the 'Foo' identifier in the Foo singleton class" }, { "span": { "replace": [ { "start": [ 2, 3 ], "end": [ 2, 6 ] }, { "start": [ 2, 3 ], "end": [ 2, 6 ] } ] }, "summary": "Replaced the 'foo' identifier with the 'bar' identifier in the Foo singleton class" } ] }, "errors": {} }, "filePaths": [ "singleton-class.rb" ], "patch": [ "diff --git a/singleton-class.rb b/singleton-class.rb", "index ad3e3cd..0e4dd17 100644", "--- a/singleton-class.rb", "+++ b/singleton-class.rb", "@@ -1,5 +1,5 @@", "-class << self", "- foo", "+class << Foo", "+ bar", " end", " class << self", " foo" ], "gitDir": "test/corpus/repos/ruby", "shas": "62b6faea97c969484d00d50d4bc8503c149f9aee..5dfaa997376c8d6e8ef956bd8debd0f9a13c1805" } ,{ "testCaseDescription": "ruby-singleton-class-delete-replacement-test", "expectedResult": { "changes": { "singleton-class.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 3, 4 ] } }, "summary": "Deleted the 'Foo' singleton class" }, { "span": { "delete": { "start": [ 4, 1 ], "end": [ 6, 4 ] } }, "summary": "Deleted the 'self' singleton class" }, { "span": { "insert": { "start": [ 4, 1 ], "end": [ 6, 4 ] } }, "summary": "Added the 'Foo' singleton class" } ] }, "errors": {} }, "filePaths": [ "singleton-class.rb" ], "patch": [ "diff --git a/singleton-class.rb b/singleton-class.rb", "index 0e4dd17..487331f 100644", "--- a/singleton-class.rb", "+++ b/singleton-class.rb", "@@ -1,9 +1,6 @@", "-class << Foo", "- bar", "-end", " class << self", " foo", " end", "-class << self", "- foo", "+class << Foo", "+ bar", " end" ], "gitDir": "test/corpus/repos/ruby", "shas": "5dfaa997376c8d6e8ef956bd8debd0f9a13c1805..fb92710b032e59059fa07921b85351dbefdc47ca" } ,{ "testCaseDescription": "ruby-singleton-class-delete-test", "expectedResult": { "changes": { "singleton-class.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 3, 4 ] } }, "summary": "Deleted the 'self' singleton class" } ] }, "errors": {} }, "filePaths": [ "singleton-class.rb" ], "patch": [ "diff --git a/singleton-class.rb b/singleton-class.rb", "index 487331f..a3937d3 100644", "--- a/singleton-class.rb", "+++ b/singleton-class.rb", "@@ -1,6 +1,3 @@", "-class << self", "- foo", "-end", " class << Foo", " bar", " end" ], "gitDir": "test/corpus/repos/ruby", "shas": "fb92710b032e59059fa07921b85351dbefdc47ca..f2e68b6768a7f2f7ae78d09eda20b276492045b9" } ,{ "testCaseDescription": "ruby-singleton-class-delete-rest-test", "expectedResult": { "changes": { "singleton-class.rb": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 3, 4 ] } }, "summary": "Deleted the 'Foo' singleton class" } ] }, "errors": {} }, "filePaths": [ "singleton-class.rb" ], "patch": [ "diff --git a/singleton-class.rb b/singleton-class.rb", "index a3937d3..e69de29 100644", "--- a/singleton-class.rb", "+++ b/singleton-class.rb", "@@ -1,3 +0,0 @@", "-class << Foo", "- bar", "-end" ], "gitDir": "test/corpus/repos/ruby", "shas": "f2e68b6768a7f2f7ae78d09eda20b276492045b9..bc06c5994d9bcf120ff71c6dd145f5341d84cec3" }]