Dataset Viewer
Auto-converted to Parquet Duplicate
pair_id
stringlengths
64
64
repository
stringlengths
7
57
commit
stringlengths
40
40
path
stringlengths
5
166
license
stringclasses
5 values
repository_stars
int64
100
88.9k
content_kind
stringclasses
4 values
is_test
bool
2 classes
module_dir
stringlengths
1
83
module_path
stringlengths
0
103
module_go_version
stringclasses
23 values
target_toolchain
stringclasses
1 value
original_content_sha256
stringlengths
64
64
fixed_content_sha256
stringlengths
64
64
input_size_bytes
int64
39
33.6k
output_size_bytes
int64
18
32.7k
combined_size_bytes
int64
70
65.5k
input_content
stringlengths
39
33.6k
output_content
stringlengths
18
32.7k
system_prompt
stringclasses
1 value
instruction
stringclasses
1 value
gofmt_status
stringclasses
1 value
post_list_status
stringclasses
1 value
post_vet_status
stringclasses
2 values
near_cluster_id
stringlengths
64
64
near_cluster_size
int32
1
187
0000012f029170e3ad107c4b448aef98409825a2b07eec80480a5b22788b7cd2
helixml/kodit
eb826e6fa527d9c9c8bbb977fc2a849aefc3dd31
infrastructure/enricher/example/parser.go
apache-2.0
119
example
false
.
github.com/helixml/kodit
1.25.4
go version go1.26.5 darwin/arm64
f4b2f57e10cac1638025d40ef77d3b50770c8b438bd688d96bacc1422d180eb4
cb9c8c23c7094f621d2595ad67b55e8386d1a3fdbb14916f2eda96f1a4eeb76b
4,005
3,955
7,960
package example import ( "path/filepath" "regexp" "strings" ) // Parser extracts code blocks from documentation content. type Parser interface { Parse(content string) []CodeBlock } // MarkdownParser parses Markdown documentation. type MarkdownParser struct { codeBlockPattern *regexp.Regexp } // NewMarkdownPars...
package example import ( "path/filepath" "regexp" "strings" ) // Parser extracts code blocks from documentation content. type Parser interface { Parse(content string) []CodeBlock } // MarkdownParser parses Markdown documentation. type MarkdownParser struct { codeBlockPattern *regexp.Regexp } // NewMarkdownPars...
You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation.
Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file.
canonical
clean
clean
cb9c8c23c7094f621d2595ad67b55e8386d1a3fdbb14916f2eda96f1a4eeb76b
1
0001225c6d0203d13306b7e950381d78e2af829374c3f8b18347dc050a5d11a4
deckhouse/k8s-image-availability-exporter
333891c87211d5ef5bdf339443ca9d42c34b585e
pkg/registry/indexers.go
apache-2.0
252
source
false
.
github.com/flant/k8s-image-availability-exporter
1.25.8
go version go1.26.5 darwin/arm64
5e8c706ed4c326c1d40dcce6d14381f774a7233a1f84ea59b2e35008620031c8
a3a411feeb784dfc8875c797809c2496de11b8fad693a71c172dd2d19b74eec8
8,237
8,133
16,370
package registry import ( "fmt" "slices" "strings" "github.com/flant/k8s-image-availability-exporter/pkg/store" "github.com/sirupsen/logrus" appsv1 "k8s.io/api/apps/v1" batchv1 "k8s.io/api/batch/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/tools/cache" ) c...
package registry import ( "fmt" "slices" "strings" "github.com/flant/k8s-image-availability-exporter/pkg/store" "github.com/sirupsen/logrus" appsv1 "k8s.io/api/apps/v1" batchv1 "k8s.io/api/batch/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/client-go/tools/cache" ) c...
You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation.
Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file.
canonical
clean
clean
a3a411feeb784dfc8875c797809c2496de11b8fad693a71c172dd2d19b74eec8
1
000197684082318e32c40ecada885e1baa0069d4249dfae55d23978989bfc4c3
nginx/agent
1644ce43c9b8372b8185f3da965e61dee8d5263d
internal/nginx/nginx_instance_operator_test.go
apache-2.0
358
test
true
.
github.com/nginx/agent/v3
1.26.0
go version go1.26.5 darwin/arm64
85c7d23379d96a44fa86db3c0639fbae60a46bf7ee54757df15288206752c864
eea099158e18d47f234aa1eed15c2a87753bbe9026ff940d345e56d00fec5339
13,783
13,775
27,558
// Copyright (c) F5, Inc. // // This source code is licensed under the Apache License, Version 2.0 license found in the // LICENSE file in the root directory of this source tree. package nginx import ( "bytes" "context" "errors" "fmt" "slices" "sync" "testing" "time" "github.com/nginx/agent/v3/internal/conf...
// Copyright (c) F5, Inc. // // This source code is licensed under the Apache License, Version 2.0 license found in the // LICENSE file in the root directory of this source tree. package nginx import ( "bytes" "context" "errors" "fmt" "slices" "sync" "testing" "time" "github.com/nginx/agent/v3/internal/conf...
You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation.
Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file.
canonical
clean
clean
eea099158e18d47f234aa1eed15c2a87753bbe9026ff940d345e56d00fec5339
1
0001c31561de84d50b8976b912e674eb4c37253c0c2bc7207b99fee4c7467c99
luci/luci-go
5b5798cd0342538810d93f7ae5adccc46a9331e0
server/secrets/gsm.go
apache-2.0
159
source
false
.
go.chromium.org/luci
1.25.0
go version go1.26.5 darwin/arm64
66f164f4e551c6fc793609f4da1cc0f169dd5e61f9aee1dda85487fa7b8eca40
804f3fd73fe246d9a1da76420237f3a341482f40f787851d4b1ba5bee649ea4d
21,263
21,201
42,464
// Copyright 2020 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
// Copyright 2020 The LUCI Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation.
Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file.
canonical
clean
failed
804f3fd73fe246d9a1da76420237f3a341482f40f787851d4b1ba5bee649ea4d
1
0002ac57a7ee84fbe8d23d7bc332d5e8b606b55ad32f3c58405f1ece8ce87ba8
gogpu/wgpu
da6261a77a319d550fa98aeb06ed6a3d6432035b
core/buffer_test.go
mit
155
test
true
.
github.com/gogpu/wgpu
1.25.0
go version go1.26.5 darwin/arm64
b1186e9cab84a8894635ce09aaf288e1d31610759b7c449b133edcc74f513a03
9a21c0b110d11e9078afb0b14486058e12d7389b5987adca6ecc6be060b6f4eb
7,747
7,707
15,454
//go:build !(js && wasm) package core import ( "sync" "testing" "github.com/gogpu/gputypes" ) func TestBuffer_NewBuffer(t *testing.T) { halDevice := &mockHALDevice{} device := NewDevice(halDevice, &Adapter{}, gputypes.Features(0), gputypes.DefaultLimits(), "TestDevice") halBuffer := mockBuffer{} buffer := N...
//go:build !(js && wasm) package core import ( "sync" "testing" "github.com/gogpu/gputypes" ) func TestBuffer_NewBuffer(t *testing.T) { halDevice := &mockHALDevice{} device := NewDevice(halDevice, &Adapter{}, gputypes.Features(0), gputypes.DefaultLimits(), "TestDevice") halBuffer := mockBuffer{} buffer := N...
You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation.
Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file.
canonical
clean
failed
9a21c0b110d11e9078afb0b14486058e12d7389b5987adca6ecc6be060b6f4eb
1
0002c0dc113fc55a8fcd01d397b5a173a4a9cdd81e2e0aa11a792a13f6ce6d30
velero-io/velero
9a690cc8157756aad2acd82dca71e825e63f80d2
test/e2e/e2e_suite_test.go
apache-2.0
10,130
test
true
.
github.com/vmware-tanzu/velero
1.26.0
go version go1.26.5 darwin/arm64
0dfdeb9e43a97bebb85579db875c3ef1b463d3d308120edab0a3b563eb44ee0e
16fa16e4b4b726f793a4a65944dd10108cbc47a77b4a34f75a37f8d5a00862c6
26,144
26,144
52,288
/* Copyright the Velero contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
/* Copyright the Velero contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation.
Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file.
canonical
clean
failed
16fa16e4b4b726f793a4a65944dd10108cbc47a77b4a34f75a37f8d5a00862c6
1
0002f26318d1ea56d4f709450346f2e9a5e66e83779ff5b5ee424468854fa2c3
interuss/dss
70fd48e93f7f9fd7e3b6ff7b909808f82a92ebde
pkg/models/models.go
apache-2.0
154
source
false
.
github.com/interuss/dss
1.26.2
go version go1.26.5 darwin/arm64
d87aa80b53c3c2d6e7d7c5300e315f382c5ad00aa7fc3ecd68ac89d4244a9190
e2d7669b8d90a4560c9b17a43948afc2e5f3c814c6a8309840aeebbbfb2dcda4
4,541
4,533
9,074
"package models\n\nimport (\n\t\"strconv\"\n\t\"time\"\n\n\t\"github.com/google/uuid\"\n\t\"github.c(...TRUNCATED)
"package models\n\nimport (\n\t\"strconv\"\n\t\"time\"\n\n\t\"github.com/google/uuid\"\n\t\"github.c(...TRUNCATED)
"You are an expert Go maintainer. Apply requested automated Go source modernizations while preservin(...TRUNCATED)
"Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. P(...TRUNCATED)
canonical
clean
clean
e2d7669b8d90a4560c9b17a43948afc2e5f3c814c6a8309840aeebbbfb2dcda4
1
000557937b3b4e174cedbe31fa1915414830ed5f1090575b20314e982b77c173
turbot/steampipe-plugin-aws
5b4b0511f4251a99294e1fe5134f73068ae78694
aws/table_aws_glue_job.go
apache-2.0
228
source
false
.
github.com/turbot/steampipe-plugin-aws
1.26.0
go version go1.26.5 darwin/arm64
de62891752a13b68a326f9f81bcc6221d73fe2f73ea179a17b9473dff3f8d8bf
25a7ea932ac4cfad52bd343a602c22675177716c16e9da57cba012d9abcab055
10,031
9,991
20,022
"package aws\n\nimport (\n\t\"context\"\n\n\t\"github.com/aws/aws-sdk-go-v2/aws\"\n\t\"github.com/aw(...TRUNCATED)
"package aws\n\nimport (\n\t\"context\"\n\n\t\"github.com/aws/aws-sdk-go-v2/aws\"\n\t\"github.com/aw(...TRUNCATED)
"You are an expert Go maintainer. Apply requested automated Go source modernizations while preservin(...TRUNCATED)
"Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. P(...TRUNCATED)
canonical
clean
clean
25a7ea932ac4cfad52bd343a602c22675177716c16e9da57cba012d9abcab055
1
0006c18589c8c351ea62109343956a85cfa3e8a4ecdea6d292d4a1857fe40621
redpanda-data/benthos
a9fc41bdd0e8a1894e3b1f0faa6c700752b87158
public/service/message_test.go
mit
552
benchmark
true
.
github.com/redpanda-data/benthos/v4
1.26.4
go version go1.26.5 darwin/arm64
51719769aaeeee384d548304e69121fa41f47c5282891ff75676b36de9776348
24c3b4dfdc53e0efe373372fbe20097a14cac4c5d2827a4fe7fd96bc6b8f3ebe
29,522
29,493
59,015
"// Copyright 2025 Redpanda Data, Inc.\n\npackage service\n\nimport (\n\t\"errors\"\n\t\"sync\"\n\t\(...TRUNCATED)
"// Copyright 2025 Redpanda Data, Inc.\n\npackage service\n\nimport (\n\t\"errors\"\n\t\"sync\"\n\t\(...TRUNCATED)
"You are an expert Go maintainer. Apply requested automated Go source modernizations while preservin(...TRUNCATED)
"Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. P(...TRUNCATED)
canonical
clean
clean
24c3b4dfdc53e0efe373372fbe20097a14cac4c5d2827a4fe7fd96bc6b8f3ebe
1
0006e4cdb14a2bfbefc2f9aa4e7082f411c6e3f9476ac558d8e2fe8edb4ab20a
fullstorydev/grpchan
575affded1d723fc09ef08563309f4ff5159c4e4
intercept_server_test.go
mit
229
test
true
.
github.com/fullstorydev/grpchan
1.25.0
go version go1.26.5 darwin/arm64
f954aae223d8342251af8722a8f2b96b88a3e6896f85a67f0e3c8ab595cfad4a
3e2b30b5aad33415cabdf869ec70efcb33cde15402520096a7560f10ea41f932
13,497
13,425
26,922
"package grpchan_test\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"io\"\n\t\"reflect\"\n\t\"testing\"\(...TRUNCATED)
"package grpchan_test\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"io\"\n\t\"reflect\"\n\t\"testing\"\(...TRUNCATED)
"You are an expert Go maintainer. Apply requested automated Go source modernizations while preservin(...TRUNCATED)
"Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. P(...TRUNCATED)
canonical
clean
clean
3e2b30b5aad33415cabdf869ec70efcb33cde15402520096a7560f10ea41f932
1
End of preview. Expand in Data Studio

Go Fix SFT

Go Fix SFT is a supervised fine-tuning dataset of validated original-to-modernized Go source pairs. Each output was produced with Go 1.26 go fix, is gofmt canonical, and passed a post-transformation package check.

Dataset size

Split Examples
Train 78,357
Validation 591
Test 540
Total 79,488

The examples come from 2,501 repositories. Splits are assigned by repository and checked for near-clone leakage.

Fields

The main training fields are:

  • system_prompt: stable model behavior instruction
  • instruction: requested modernization task
  • input_content: complete original Go source file
  • output_content: complete modernized Go source file

Rows also include repository, commit, path, license, module, toolchain, content hashes, validation results, and clone-cluster provenance.

Loading

from datasets import load_dataset

dataset = load_dataset("sumpterc/go-fix-sft")

Apply the target model's chat template to system_prompt, instruction plus input_content, and output_content. Perform model-specific token-length validation before training.

Filtering policy

Only final split-eligible, non-generated, non-sensitive, gofmt-canonical transformations are included. Examples whose combined input and output exceed 65,536 bytes are not truncated; their metadata is retained in excluded.parquet.

Licenses

Each row retains the detected license and exact source repository/commit provenance. Included licenses are Apache-2.0, MIT, BSD-2-Clause, BSD-3-Clause, and ISC. The underlying source remains governed by its respective license.

Exact-commit license bodies and discovered Apache NOTICE files for all 2,501 represented repositories are included under third_party/. The human-readable consolidated text is third_party/THIRD_PARTY_LICENSES.txt; Parquet indexes retain raw bytes, paths, hashes, validation methods, and repository mappings.

Limitations

This dataset teaches the mechanical transformations validated through go fix; it is not a general-purpose Go instruction dataset. The examples are machine-generated and machine-validated, so representative human review is recommended before a production model release.

See manifest.json for complete construction policy, source hashes, counts, and artifact hashes.

Downloads last month
70