[{ "testCaseDescription": "go-float-literals-insert-test", "expectedResult": { "changes": { "float-literals.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 1, 3 ] } }, "summary": "Added the 'f1' identifier" }, { "span": { "insert": { "start": [ 1, 6 ], "end": [ 1, 9 ] } }, "summary": "Added the '1.5' float_literal" }, { "span": { "insert": { "start": [ 2, 1 ], "end": [ 2, 3 ] } }, "summary": "Added the 'f2' identifier" }, { "span": { "insert": { "start": [ 2, 6 ], "end": [ 2, 13 ] } }, "summary": "Added the '1.5e100' float_literal" }, { "span": { "insert": { "start": [ 3, 1 ], "end": [ 3, 3 ] } }, "summary": "Added the 'f3' identifier" }, { "span": { "insert": { "start": [ 3, 6 ], "end": [ 3, 13 ] } }, "summary": "Added the '1.5e+50' float_literal" }, { "span": { "insert": { "start": [ 4, 1 ], "end": [ 4, 3 ] } }, "summary": "Added the 'f4' identifier" }, { "span": { "insert": { "start": [ 4, 6 ], "end": [ 4, 12 ] } }, "summary": "Added the '1.5e-5' float_literal" }, { "span": { "insert": { "start": [ 5, 1 ], "end": [ 5, 3 ] } }, "summary": "Added the 'f5' identifier" }, { "span": { "insert": { "start": [ 5, 6 ], "end": [ 5, 12 ] } }, "summary": "Added the '.5e-50' float_literal" } ] }, "errors": {} }, "filePaths": [ "float-literals.go" ], "patch": [ "diff --git a/float-literals.go b/float-literals.go", "index e69de29..60df0eb 100644", "--- a/float-literals.go", "+++ b/float-literals.go", "@@ -0,0 +1,5 @@", "+f1 = 1.5", "+f2 = 1.5e100", "+f3 = 1.5e+50", "+f4 = 1.5e-5", "+f5 = .5e-50" ], "gitDir": "test/corpus/repos/go", "shas": "eed71b35d2b20c15d1b2bbb4ab07de8f3ab7759b..3abbe20124737fd651436305fe0ce5d9e0b742f9" } ,{ "testCaseDescription": "go-float-literals-replacement-insert-test", "expectedResult": { "changes": { "float-literals.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 1, 3 ] } }, "summary": "Added the 'f2' identifier" }, { "span": { "insert": { "start": [ 1, 6 ], "end": [ 1, 9 ] } }, "summary": "Added the '1.5' float_literal" }, { "span": { "insert": { "start": [ 2, 1 ], "end": [ 2, 3 ] } }, "summary": "Added the 'f3' identifier" }, { "span": { "insert": { "start": [ 2, 6 ], "end": [ 2, 13 ] } }, "summary": "Added the '1.5e100' float_literal" }, { "span": { "insert": { "start": [ 3, 1 ], "end": [ 3, 3 ] } }, "summary": "Added the 'f4' identifier" }, { "span": { "insert": { "start": [ 3, 6 ], "end": [ 3, 13 ] } }, "summary": "Added the '1.5e+50' float_literal" }, { "span": { "insert": { "start": [ 4, 1 ], "end": [ 4, 3 ] } }, "summary": "Added the 'f5' identifier" }, { "span": { "insert": { "start": [ 4, 6 ], "end": [ 4, 12 ] } }, "summary": "Added the '1.5e-5' float_literal" }, { "span": { "insert": { "start": [ 5, 1 ], "end": [ 5, 3 ] } }, "summary": "Added the 'f6' identifier" }, { "span": { "insert": { "start": [ 5, 6 ], "end": [ 5, 12 ] } }, "summary": "Added the '.5e-50' float_literal" }, { "span": { "insert": { "start": [ 6, 1 ], "end": [ 6, 3 ] } }, "summary": "Added the 'f1' identifier" }, { "span": { "insert": { "start": [ 6, 6 ], "end": [ 6, 9 ] } }, "summary": "Added the '1.5' float_literal" }, { "span": { "insert": { "start": [ 7, 1 ], "end": [ 7, 3 ] } }, "summary": "Added the 'f2' identifier" }, { "span": { "insert": { "start": [ 7, 6 ], "end": [ 7, 13 ] } }, "summary": "Added the '1.5e100' float_literal" }, { "span": { "insert": { "start": [ 8, 1 ], "end": [ 8, 3 ] } }, "summary": "Added the 'f3' identifier" }, { "span": { "insert": { "start": [ 8, 6 ], "end": [ 8, 13 ] } }, "summary": "Added the '1.5e+50' float_literal" }, { "span": { "insert": { "start": [ 9, 1 ], "end": [ 9, 3 ] } }, "summary": "Added the 'f4' identifier" }, { "span": { "insert": { "start": [ 9, 6 ], "end": [ 9, 12 ] } }, "summary": "Added the '1.5e-5' float_literal" }, { "span": { "insert": { "start": [ 10, 1 ], "end": [ 10, 3 ] } }, "summary": "Added the 'f5' identifier" }, { "span": { "insert": { "start": [ 10, 6 ], "end": [ 10, 12 ] } }, "summary": "Added the '.5e-50' float_literal" } ] }, "errors": {} }, "filePaths": [ "float-literals.go" ], "patch": [ "diff --git a/float-literals.go b/float-literals.go", "index 60df0eb..c0dd078 100644", "--- a/float-literals.go", "+++ b/float-literals.go", "@@ -1,3 +1,13 @@", "+f2 = 1.5", "+f3 = 1.5e100", "+f4 = 1.5e+50", "+f5 = 1.5e-5", "+f6 = .5e-50", "+f1 = 1.5", "+f2 = 1.5e100", "+f3 = 1.5e+50", "+f4 = 1.5e-5", "+f5 = .5e-50", " f1 = 1.5", " f2 = 1.5e100", " f3 = 1.5e+50" ], "gitDir": "test/corpus/repos/go", "shas": "3abbe20124737fd651436305fe0ce5d9e0b742f9..fa6d9a21623346b092a2f32b838f9b23bbf35003" } ,{ "testCaseDescription": "go-float-literals-delete-insert-test", "expectedResult": { "changes": { "float-literals.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 1, 3 ] } }, "summary": "Added the 'f1' identifier" }, { "span": { "insert": { "start": [ 1, 6 ], "end": [ 1, 9 ] } }, "summary": "Added the '1.5' float_literal" }, { "span": { "replace": [ { "start": [ 1, 6 ], "end": [ 1, 9 ] }, { "start": [ 2, 6 ], "end": [ 2, 13 ] } ] }, "summary": "Replaced the '1.5' float_literal with the '1.5e100' float_literal" }, { "span": { "replace": [ { "start": [ 2, 6 ], "end": [ 2, 13 ] }, { "start": [ 3, 6 ], "end": [ 3, 13 ] } ] }, "summary": "Replaced the '1.5e100' float_literal with the '1.5e+50' float_literal" }, { "span": { "insert": { "start": [ 4, 1 ], "end": [ 4, 3 ] } }, "summary": "Added the 'f4' identifier" }, { "span": { "insert": { "start": [ 4, 6 ], "end": [ 4, 12 ] } }, "summary": "Added the '1.5e-5' float_literal" }, { "span": { "insert": { "start": [ 5, 1 ], "end": [ 5, 3 ] } }, "summary": "Added the 'f5' identifier" }, { "span": { "insert": { "start": [ 5, 6 ], "end": [ 5, 12 ] } }, "summary": "Added the '.5e-50' float_literal" }, { "span": { "delete": { "start": [ 3, 1 ], "end": [ 3, 3 ] } }, "summary": "Deleted the 'f4' identifier" }, { "span": { "delete": { "start": [ 3, 6 ], "end": [ 3, 13 ] } }, "summary": "Deleted the '1.5e+50' float_literal" }, { "span": { "delete": { "start": [ 4, 1 ], "end": [ 4, 3 ] } }, "summary": "Deleted the 'f5' identifier" }, { "span": { "delete": { "start": [ 4, 6 ], "end": [ 4, 12 ] } }, "summary": "Deleted the '1.5e-5' float_literal" }, { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 3 ] } }, "summary": "Deleted the 'f6' identifier" }, { "span": { "delete": { "start": [ 5, 6 ], "end": [ 5, 12 ] } }, "summary": "Deleted the '.5e-50' float_literal" } ] }, "errors": {} }, "filePaths": [ "float-literals.go" ], "patch": [ "diff --git a/float-literals.go b/float-literals.go", "index c0dd078..1d76e74 100644", "--- a/float-literals.go", "+++ b/float-literals.go", "@@ -1,8 +1,8 @@", "-f2 = 1.5", "-f3 = 1.5e100", "-f4 = 1.5e+50", "-f5 = 1.5e-5", "-f6 = .5e-50", "+f1 = 1.5", "+f2 = 1.5e100", "+f3 = 1.5e+50", "+f4 = 1.5e-5", "+f5 = .5e-50", " f1 = 1.5", " f2 = 1.5e100", " f3 = 1.5e+50" ], "gitDir": "test/corpus/repos/go", "shas": "fa6d9a21623346b092a2f32b838f9b23bbf35003..ad77d689a6e6f27940b9403edee4e5397f58f9e1" } ,{ "testCaseDescription": "go-float-literals-replacement-test", "expectedResult": { "changes": { "float-literals.go": [ { "span": { "insert": { "start": [ 1, 1 ], "end": [ 1, 3 ] } }, "summary": "Added the 'f2' identifier" }, { "span": { "insert": { "start": [ 1, 6 ], "end": [ 1, 9 ] } }, "summary": "Added the '1.5' float_literal" }, { "span": { "insert": { "start": [ 2, 1 ], "end": [ 2, 3 ] } }, "summary": "Added the 'f3' identifier" }, { "span": { "insert": { "start": [ 2, 6 ], "end": [ 2, 13 ] } }, "summary": "Added the '1.5e100' float_literal" }, { "span": { "insert": { "start": [ 3, 1 ], "end": [ 3, 3 ] } }, "summary": "Added the 'f4' identifier" }, { "span": { "insert": { "start": [ 3, 6 ], "end": [ 3, 13 ] } }, "summary": "Added the '1.5e+50' float_literal" }, { "span": { "insert": { "start": [ 4, 1 ], "end": [ 4, 3 ] } }, "summary": "Added the 'f5' identifier" }, { "span": { "insert": { "start": [ 4, 6 ], "end": [ 4, 12 ] } }, "summary": "Added the '1.5e-5' float_literal" }, { "span": { "insert": { "start": [ 5, 1 ], "end": [ 5, 3 ] } }, "summary": "Added the 'f6' identifier" }, { "span": { "insert": { "start": [ 5, 6 ], "end": [ 5, 12 ] } }, "summary": "Added the '.5e-50' float_literal" }, { "span": { "delete": { "start": [ 1, 1 ], "end": [ 1, 3 ] } }, "summary": "Deleted the 'f1' identifier" }, { "span": { "delete": { "start": [ 1, 6 ], "end": [ 1, 9 ] } }, "summary": "Deleted the '1.5' float_literal" }, { "span": { "delete": { "start": [ 2, 1 ], "end": [ 2, 3 ] } }, "summary": "Deleted the 'f2' identifier" }, { "span": { "delete": { "start": [ 2, 6 ], "end": [ 2, 13 ] } }, "summary": "Deleted the '1.5e100' float_literal" }, { "span": { "delete": { "start": [ 3, 1 ], "end": [ 3, 3 ] } }, "summary": "Deleted the 'f3' identifier" }, { "span": { "delete": { "start": [ 3, 6 ], "end": [ 3, 13 ] } }, "summary": "Deleted the '1.5e+50' float_literal" }, { "span": { "delete": { "start": [ 4, 1 ], "end": [ 4, 3 ] } }, "summary": "Deleted the 'f4' identifier" }, { "span": { "delete": { "start": [ 4, 6 ], "end": [ 4, 12 ] } }, "summary": "Deleted the '1.5e-5' float_literal" }, { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 3 ] } }, "summary": "Deleted the 'f5' identifier" }, { "span": { "delete": { "start": [ 5, 6 ], "end": [ 5, 12 ] } }, "summary": "Deleted the '.5e-50' float_literal" } ] }, "errors": {} }, "filePaths": [ "float-literals.go" ], "patch": [ "diff --git a/float-literals.go b/float-literals.go", "index 1d76e74..c0dd078 100644", "--- a/float-literals.go", "+++ b/float-literals.go", "@@ -1,8 +1,8 @@", "-f1 = 1.5", "-f2 = 1.5e100", "-f3 = 1.5e+50", "-f4 = 1.5e-5", "-f5 = .5e-50", "+f2 = 1.5", "+f3 = 1.5e100", "+f4 = 1.5e+50", "+f5 = 1.5e-5", "+f6 = .5e-50", " f1 = 1.5", " f2 = 1.5e100", " f3 = 1.5e+50" ], "gitDir": "test/corpus/repos/go", "shas": "ad77d689a6e6f27940b9403edee4e5397f58f9e1..b3024d2e60943980cc2d3a980b1c2f637085640f" } ,{ "testCaseDescription": "go-float-literals-delete-replacement-test", "expectedResult": { "changes": { "float-literals.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 1, 3 ] } }, "summary": "Deleted the 'f2' identifier" }, { "span": { "delete": { "start": [ 1, 6 ], "end": [ 1, 9 ] } }, "summary": "Deleted the '1.5' float_literal" }, { "span": { "delete": { "start": [ 2, 1 ], "end": [ 2, 3 ] } }, "summary": "Deleted the 'f3' identifier" }, { "span": { "delete": { "start": [ 2, 6 ], "end": [ 2, 13 ] } }, "summary": "Deleted the '1.5e100' float_literal" }, { "span": { "delete": { "start": [ 3, 1 ], "end": [ 3, 3 ] } }, "summary": "Deleted the 'f4' identifier" }, { "span": { "delete": { "start": [ 3, 6 ], "end": [ 3, 13 ] } }, "summary": "Deleted the '1.5e+50' float_literal" }, { "span": { "delete": { "start": [ 4, 1 ], "end": [ 4, 3 ] } }, "summary": "Deleted the 'f5' identifier" }, { "span": { "delete": { "start": [ 4, 6 ], "end": [ 4, 12 ] } }, "summary": "Deleted the '1.5e-5' float_literal" }, { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 3 ] } }, "summary": "Deleted the 'f6' identifier" }, { "span": { "delete": { "start": [ 5, 6 ], "end": [ 5, 12 ] } }, "summary": "Deleted the '.5e-50' float_literal" }, { "span": { "delete": { "start": [ 6, 1 ], "end": [ 6, 3 ] } }, "summary": "Deleted the 'f1' identifier" }, { "span": { "delete": { "start": [ 6, 6 ], "end": [ 6, 9 ] } }, "summary": "Deleted the '1.5' float_literal" }, { "span": { "delete": { "start": [ 7, 1 ], "end": [ 7, 3 ] } }, "summary": "Deleted the 'f2' identifier" }, { "span": { "delete": { "start": [ 7, 6 ], "end": [ 7, 13 ] } }, "summary": "Deleted the '1.5e100' float_literal" }, { "span": { "delete": { "start": [ 8, 1 ], "end": [ 8, 3 ] } }, "summary": "Deleted the 'f3' identifier" }, { "span": { "delete": { "start": [ 8, 6 ], "end": [ 8, 13 ] } }, "summary": "Deleted the '1.5e+50' float_literal" }, { "span": { "delete": { "start": [ 9, 1 ], "end": [ 9, 3 ] } }, "summary": "Deleted the 'f4' identifier" }, { "span": { "delete": { "start": [ 9, 6 ], "end": [ 9, 12 ] } }, "summary": "Deleted the '1.5e-5' float_literal" }, { "span": { "delete": { "start": [ 10, 1 ], "end": [ 10, 3 ] } }, "summary": "Deleted the 'f5' identifier" }, { "span": { "delete": { "start": [ 10, 6 ], "end": [ 10, 12 ] } }, "summary": "Deleted the '.5e-50' float_literal" }, { "span": { "insert": { "start": [ 6, 1 ], "end": [ 6, 3 ] } }, "summary": "Added the 'f2' identifier" }, { "span": { "insert": { "start": [ 6, 6 ], "end": [ 6, 9 ] } }, "summary": "Added the '1.5' float_literal" }, { "span": { "insert": { "start": [ 7, 1 ], "end": [ 7, 3 ] } }, "summary": "Added the 'f3' identifier" }, { "span": { "insert": { "start": [ 7, 6 ], "end": [ 7, 13 ] } }, "summary": "Added the '1.5e100' float_literal" }, { "span": { "insert": { "start": [ 8, 1 ], "end": [ 8, 3 ] } }, "summary": "Added the 'f4' identifier" }, { "span": { "insert": { "start": [ 8, 6 ], "end": [ 8, 13 ] } }, "summary": "Added the '1.5e+50' float_literal" }, { "span": { "insert": { "start": [ 9, 1 ], "end": [ 9, 3 ] } }, "summary": "Added the 'f5' identifier" }, { "span": { "insert": { "start": [ 9, 6 ], "end": [ 9, 12 ] } }, "summary": "Added the '1.5e-5' float_literal" }, { "span": { "insert": { "start": [ 10, 1 ], "end": [ 10, 3 ] } }, "summary": "Added the 'f6' identifier" }, { "span": { "insert": { "start": [ 10, 6 ], "end": [ 10, 12 ] } }, "summary": "Added the '.5e-50' float_literal" } ] }, "errors": {} }, "filePaths": [ "float-literals.go" ], "patch": [ "diff --git a/float-literals.go b/float-literals.go", "index c0dd078..2fc4057 100644", "--- a/float-literals.go", "+++ b/float-literals.go", "@@ -1,15 +1,10 @@", "-f2 = 1.5", "-f3 = 1.5e100", "-f4 = 1.5e+50", "-f5 = 1.5e-5", "-f6 = .5e-50", "-f1 = 1.5", "-f2 = 1.5e100", "-f3 = 1.5e+50", "-f4 = 1.5e-5", "-f5 = .5e-50", " f1 = 1.5", " f2 = 1.5e100", " f3 = 1.5e+50", " f4 = 1.5e-5", " f5 = .5e-50", "+f2 = 1.5", "+f3 = 1.5e100", "+f4 = 1.5e+50", "+f5 = 1.5e-5", "+f6 = .5e-50" ], "gitDir": "test/corpus/repos/go", "shas": "b3024d2e60943980cc2d3a980b1c2f637085640f..dadd5991a3f82c4a1120e7b1764df728c9203172" } ,{ "testCaseDescription": "go-float-literals-delete-test", "expectedResult": { "changes": { "float-literals.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 1, 3 ] } }, "summary": "Deleted the 'f1' identifier" }, { "span": { "delete": { "start": [ 1, 6 ], "end": [ 1, 9 ] } }, "summary": "Deleted the '1.5' float_literal" }, { "span": { "delete": { "start": [ 2, 1 ], "end": [ 2, 3 ] } }, "summary": "Deleted the 'f2' identifier" }, { "span": { "delete": { "start": [ 2, 6 ], "end": [ 2, 13 ] } }, "summary": "Deleted the '1.5e100' float_literal" }, { "span": { "delete": { "start": [ 3, 1 ], "end": [ 3, 3 ] } }, "summary": "Deleted the 'f3' identifier" }, { "span": { "delete": { "start": [ 3, 6 ], "end": [ 3, 13 ] } }, "summary": "Deleted the '1.5e+50' float_literal" }, { "span": { "delete": { "start": [ 4, 1 ], "end": [ 4, 3 ] } }, "summary": "Deleted the 'f4' identifier" }, { "span": { "delete": { "start": [ 4, 6 ], "end": [ 4, 12 ] } }, "summary": "Deleted the '1.5e-5' float_literal" }, { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 3 ] } }, "summary": "Deleted the 'f5' identifier" }, { "span": { "delete": { "start": [ 5, 6 ], "end": [ 5, 12 ] } }, "summary": "Deleted the '.5e-50' float_literal" } ] }, "errors": {} }, "filePaths": [ "float-literals.go" ], "patch": [ "diff --git a/float-literals.go b/float-literals.go", "index 2fc4057..c99af8e 100644", "--- a/float-literals.go", "+++ b/float-literals.go", "@@ -1,8 +1,3 @@", "-f1 = 1.5", "-f2 = 1.5e100", "-f3 = 1.5e+50", "-f4 = 1.5e-5", "-f5 = .5e-50", " f2 = 1.5", " f3 = 1.5e100", " f4 = 1.5e+50" ], "gitDir": "test/corpus/repos/go", "shas": "dadd5991a3f82c4a1120e7b1764df728c9203172..e8a66835d4cea4cdb3eb5face5feb6018633954b" } ,{ "testCaseDescription": "go-float-literals-delete-rest-test", "expectedResult": { "changes": { "float-literals.go": [ { "span": { "delete": { "start": [ 1, 1 ], "end": [ 1, 3 ] } }, "summary": "Deleted the 'f2' identifier" }, { "span": { "delete": { "start": [ 1, 6 ], "end": [ 1, 9 ] } }, "summary": "Deleted the '1.5' float_literal" }, { "span": { "delete": { "start": [ 2, 1 ], "end": [ 2, 3 ] } }, "summary": "Deleted the 'f3' identifier" }, { "span": { "delete": { "start": [ 2, 6 ], "end": [ 2, 13 ] } }, "summary": "Deleted the '1.5e100' float_literal" }, { "span": { "delete": { "start": [ 3, 1 ], "end": [ 3, 3 ] } }, "summary": "Deleted the 'f4' identifier" }, { "span": { "delete": { "start": [ 3, 6 ], "end": [ 3, 13 ] } }, "summary": "Deleted the '1.5e+50' float_literal" }, { "span": { "delete": { "start": [ 4, 1 ], "end": [ 4, 3 ] } }, "summary": "Deleted the 'f5' identifier" }, { "span": { "delete": { "start": [ 4, 6 ], "end": [ 4, 12 ] } }, "summary": "Deleted the '1.5e-5' float_literal" }, { "span": { "delete": { "start": [ 5, 1 ], "end": [ 5, 3 ] } }, "summary": "Deleted the 'f6' identifier" }, { "span": { "delete": { "start": [ 5, 6 ], "end": [ 5, 12 ] } }, "summary": "Deleted the '.5e-50' float_literal" } ] }, "errors": {} }, "filePaths": [ "float-literals.go" ], "patch": [ "diff --git a/float-literals.go b/float-literals.go", "index c99af8e..e69de29 100644", "--- a/float-literals.go", "+++ b/float-literals.go", "@@ -1,5 +0,0 @@", "-f2 = 1.5", "-f3 = 1.5e100", "-f4 = 1.5e+50", "-f5 = 1.5e-5", "-f6 = .5e-50" ], "gitDir": "test/corpus/repos/go", "shas": "e8a66835d4cea4cdb3eb5face5feb6018633954b..b8eb065c8ee459f70c83429d04abfbb3c9ab444f" }]