[{ "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": "1d4f83ab851291701d4202d4d9aff886b208e275..f26dbab00557d88c440eaca7d28d2069c4647683" } ,{ "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": "f26dbab00557d88c440eaca7d28d2069c4647683..a8adbacbb531252a917538293c2a3a859756b4a4" } ,{ "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": "a8adbacbb531252a917538293c2a3a859756b4a4..9b4922f981f8032d17f286af9c670a5d54550268" } ,{ "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": "9b4922f981f8032d17f286af9c670a5d54550268..3e214881a29dcc9bf08d3a977a31b0ec0a88836f" } ,{ "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": "3e214881a29dcc9bf08d3a977a31b0ec0a88836f..3f072683373d79db8ec9c92d9ba9c231171b8bdc" } ,{ "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": "3f072683373d79db8ec9c92d9ba9c231171b8bdc..ceaeca444f476215bc747b6284c6679c3cfc5270" } ,{ "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": "ceaeca444f476215bc747b6284c6679c3cfc5270..2c09d54b94582d170b2a4d5075014c08af2f648b" }]