Dataset Viewer
Auto-converted to Parquet Duplicate
messages
listlengths
3
16
tools
listlengths
0
6
source
stringclasses
6 values
category
stringclasses
4 values
complexity
stringclasses
6 values
tags
listlengths
0
4
quality_score
int64
7
9
trajectory_length
int64
0
6
tools_used
listlengths
0
6
repo
stringclasses
6 values
file_path
stringlengths
0
129
symbol_name
stringlengths
0
76
symbol_kind
stringclasses
8 values
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nvar applyTemplate = `\n// Apply takes the given apply declarative configuration, applies i...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
staging/src/k8s.io/code-generator/cmd/client-gen/generators/fake/generator_fake_for_type.go
applyTemplate
var
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "Show a production-oriented Go a...
[]
synthetic
senior_staff
complex
[ "grpc", "protobuf-evolution" ]
8
0
[]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// configure returns the configuration for the given sanitizer.\nfunc configure(sanitizer ...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/cgo/internal/testsanitizers/cc_test.go
configure
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise Go 1.26 guidance, compilable examples, and production trade-offs." }, { "role": "user", "content": "Write staff-level review guidance for faster cgo calls." }, { "role": "assistant", "content": "A pr...
[]
synthetic
go126
hard
[ "go1.26", "cgo-performance", "best-practice" ]
8
0
[]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nconst\n\n// TODO: complete this declaration\n```" }, { "role": "assistant", "c...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
pkg/controller/volume/events/event.go
WaitForFirstConsumer
const
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc TestComputePhaseRunFlags(t *testing.T) {\n\t// TODO: complete this implementation\n}\...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
cmd/kubeadm/app/cmd/phases/workflow/runner_test.go
TestComputePhaseRunFlags
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Review this Go code for correctness and maintainability:\n\n```go\nfunc getLabelNamespace(key string) string {\n\tif parts := string...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
cmd/kubelet/app/options/options.go
getLabelNamespace
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// InlinedCall updates the [State] to take into account a newly inlined call.\nfunc (s *St...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/compile/internal/devirtualize/devirtualize.go
InlinedCall
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// controlledHistories returns all ControllerRevisions in namespace that selected by selec...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
staging/src/k8s.io/kubectl/pkg/polymorphichelpers/history.go
controlledHistoryV1
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc BenchmarkECDH(b *testing.B) {\n\t// TODO: complete this implementation\n}\n```" }, ...
[]
go
repo_task
medium
[]
7
0
[]
go
src/crypto/ecdh/ecdh_test.go
BenchmarkECDH
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go struct does:\n\n```go\ntype\n\n// The actor to check the cache to determine what work needs to be done for the ...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/go/internal/work/action.go
checkCacheActor
struct
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc testPeerFailedRPC(t *testing.T, e env) {\n\t// TODO: complete this implementation\n}\...
[]
grpc-go
repo_task
medium
[]
7
0
[]
grpc-go
test/end2end_test.go
testPeerFailedRPC
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Review this Go code for correctness and maintainability:\n\n```go\nfunc ClosureIndirectDeclReassign() {\n\tvar f func(p *int)\n\tf =...
[]
go
repo_task
medium
[]
7
0
[]
go
test/escape_closure.go
ClosureIndirectDeclReassign
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// Issue 43822: tests that returns EOF when conn write timeout.\nfunc TestSendfileOnWriteT...
[]
go
repo_task
medium
[]
7
0
[]
go
src/net/sendfile_test.go
TestSendfileOnWriteTimeoutExceeded
func
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "Compare the viable approaches t...
[]
synthetic
senior_staff
complex
[ "performance", "connection-reuse" ]
9
0
[]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go const does:\n\n```go\nconst\n\n// RISC-V mnemonics, as defined in the \"opcodes\" and \"opcodes-pseudo\" files\...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/internal/obj/riscv/cpu.go
AVLSEG2E32FFV
const
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc getDeletedPodNames(client *fake.Clientset) sets.Set[string] {\n\t// TODO: complete th...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
pkg/controller/podgc/gc_controller_test.go
getDeletedPodNames
func
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "We are reviewing deadline propa...
[]
synthetic
senior_staff
complex
[ "grpc", "deadline-propagation" ]
9
0
[]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Write thorough Go tests for this function:\n\n```go\n// SetDefaults_InitConfiguration assigns default values for the InitConfigurati...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
cmd/kubeadm/app/apis/kubeadm/v1beta4/defaults.go
SetDefaults_InitConfiguration
func
[ { "role": "system", "content": "You are a senior Go developer working in an existing repository. Inspect before editing, preserve local conventions, and verify changes with focused tools." }, { "role": "user", "content": "Refactor `catalog` so normalization is centralized without changing behavi...
[ { "type": "function", "function": { "name": "search_code", "description": "Search source code", "parameters": { "type": "object", "properties": { "query": { "type": "string" }, "file_pattern": { "type": "string" ...
synthetic
tool_trajectory
high
[ "tool-calling", "agent-planning" ]
8
6
[ "search_code", "write_file", "go_fmt", "go_build", "go_test", "go_vet" ]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc TestCreateKubeconfigFilesAndWrappers(t *testing.T) {\n\t// TODO: complete this implem...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go
TestCreateKubeconfigFilesAndWrappers
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc (l *lister) Get(name string) (*corev1.Secret, error) {\n\t// TODO: complete this impl...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
plugin/pkg/auth/authenticator/token/bootstrap/bootstrap_test.go
Get
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\ntype TargetWithImmutable struct {\n\t// +k8s:immutable\n// TODO: complete this declaration...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
staging/src/k8s.io/code-generator/cmd/validation-gen/output_tests/tags/subfield/shortcircuit/doc.go
TargetWithImmutable
struct
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Write thorough Go tests for this function:\n\n```go\n// simdV31ResultInArg0 generates a destructive 3-register instruction,\n// e.g....
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/compile/internal/arm64/ssa.go
simdV31ResultInArg0
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc (c *conn) GetConnector(ctx context.Context, id string) (conn storage.Connector, err e...
[]
dex
repo_task
medium
[]
7
0
[]
dex
storage/etcd/etcd.go
GetConnector
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go struct does:\n\n```go\ntype\n\n// StatefulSet represents a set of pods with consistent identities.\n// Identiti...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
staging/src/k8s.io/api/apps/v1/types.go
StatefulSet
struct
[ { "role": "system", "content": "You are an expert Go software engineer. Use tools when evidence is needed, explain each action briefly, and return precise production-ready guidance." }, { "role": "user", "content": "Fix the failing `shipping` package." }, { "role": "assistant", "cont...
[ { "type": "function", "function": { "name": "go_build", "description": "Build a Go package", "parameters": { "type": "object", "properties": { "path": { "type": "string" } }, "required": [ "path" ] } ...
synthetic
tool_trajectory
high
[ "tool-calling", "error-recovery" ]
9
6
[ "go_build", "read_file", "write_file", "go_fmt", "go_test" ]
synthetic
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "We are reviewing bulkheads in a...
[]
synthetic
senior_staff
complex
[ "reliability", "bulkheads" ]
9
0
[]
synthetic
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "We are reviewing consistency mo...
[]
synthetic
senior_staff
complex
[ "distributed-systems", "consistency-models" ]
8
0
[]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// hasLegacyInvalidTopologySpreadConstrainMatchLabelKeys return true if spec.TopologySprea...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
pkg/api/pod/util.go
hasLegacyInvalidTopologySpreadConstrainMatchLabelKeys
func
[ { "role": "system", "content": "You are an expert Go software engineer. Use tools when evidence is needed, explain each action briefly, and return precise production-ready guidance." }, { "role": "user", "content": "Explain how the ratelimit handler validates input." }, { "role": "assist...
[ { "type": "function", "function": { "name": "read_file", "description": "Read file contents", "parameters": { "type": "object", "properties": { "path": { "type": "string" } }, "required": [ "path" ] } ...
synthetic
tool_trajectory
medium
[ "tool-calling", "failed-tool" ]
8
3
[ "read_file", "search_code" ]
synthetic
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "Write a concise design-review r...
[]
synthetic
senior_staff
complex
[ "concurrency", "data-races" ]
9
0
[]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nconst\n\n// TODO: complete this declaration\n```" }, { "role": "assistant", "c...
[]
go
repo_task
medium
[]
7
0
[]
go
src/internal/types/testdata/check/const0.go
_p5
const
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Review this Go code for correctness and maintainability:\n\n```go\nfunc (d *EndpointsDescriber) Describe(namespace, name string, des...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
staging/src/k8s.io/kubectl/pkg/describe/describe.go
Describe
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc TestGuessJSON(t *testing.T) {\n\t// TODO: complete this implementation\n}\n```" }, ...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder_test.go
TestGuessJSON
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nconst\n\n// TODO: complete this declaration\n```" }, { "role": "assistant", "c...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/link/internal/sym/symkind.go
SRODATAEND
const
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "Show a production-oriented Go a...
[]
synthetic
senior_staff
complex
[ "concurrency", "channel-patterns" ]
8
0
[]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Review this Go code for correctness and maintainability:\n\n```go\n// MarkdownPostProcessing goes though the generated files\nfunc M...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
cmd/genkubedocs/postprocessing.go
MarkdownPostProcessing
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// addResultsAnalyzer creates a new resultsAnalyzer helper object for\n// the function fn,...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/compile/internal/inline/inlheur/analyze_func_returns.go
addResultsAnalyzer
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// EnsureProxyAddon creates the kube-proxy addons\nfunc EnsureProxyAddon(cfg *kubeadmapi.C...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
cmd/kubeadm/app/phases/addons/proxy/proxy.go
EnsureProxyAddon
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// posBaseIdx returns the specified position base, reading it first if\n// needed.\nfunc (...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/compile/internal/noder/reader.go
posBaseIdx
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// ValidateBytes validates bytes per a ConjunctiveSchema.\nfunc (c ConjunctiveSchema) Vali...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
staging/src/k8s.io/kubectl/pkg/validation/schema.go
ValidateBytes
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// validatePodResizeContainerOrdering validates container ordering for a resize request.\n...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
pkg/apis/core/validation/validation.go
validatePodResizeContainerOrdering
func
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "How would you design circuit br...
[]
synthetic
senior_staff
complex
[ "reliability", "circuit-breakers" ]
9
0
[]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc openPackage(path string) (*os.File, error) {\n\t// TODO: complete this implementation...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/compile/internal/noder/import.go
openPackage
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go method does:\n\n```go\n// Stop ends recording of trace data. It blocks until any concurrent WriteTo calls compl...
[]
go
repo_task
medium
[]
7
0
[]
go
src/runtime/trace/flightrecorder.go
Stop
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// meet meets all of phi arguments and computes result lattice\nfunc (t *worklist) meet(va...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/compile/internal/ssa/sccp.go
meet
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc (v *mutatingAdmissionPolicyAccessor) GetParamKind() *v1.ParamKind {\n\t// TODO: compl...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/mutating/accessor.go
GetParamKind
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// Test to use ANDN, if available\nfunc TestAndNot(t *testing.T) {\n\t// TODO: complete th...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/compile/internal/amd64/versions_test.go
TestAndNot
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Write thorough Go tests for this function:\n\n```go\nfunc extractParameters(parameters runtime.RawExtension, env *map[string]string,...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
test/e2e/dra/test-driver/app/kubeletplugin.go
extractParameters
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise Go 1.26 guidance, compilable examples, and production trade-offs." }, { "role": "user", "content": "Fix a common misuse of self-referential generic constraints in a security-sensitive service." }, { "rol...
[]
synthetic
go126
medium
[ "go1.26", "self-referential-generics", "bug-fix" ]
8
0
[]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\ntype lcaRangeBlock struct {\n\tb *Block\n// TODO: complete this declaration\n```"...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/compile/internal/ssa/lca.go
lcaRangeBlock
struct
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc testSignalHandlers(t *testing.T, pkgname, cfile, cmd string) {\n\t// TODO: complete t...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/cgo/internal/testcshared/cshared_test.go
testSignalHandlers
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go struct does:\n\n```go\ntype\n\n// IntervalsBuilder is a helper for constructing intervals based on\n// live dat...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/compile/internal/liveness/intervals.go
IntervalsBuilder
struct
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "Compare the viable approaches t...
[]
synthetic
senior_staff
complex
[ "api-design", "rate-limiting-backpressure" ]
9
0
[]
synthetic
[ { "role": "system", "content": "Act as a pragmatic Go coding agent. Never invent tool output; diagnose failures from evidence and keep changes small and testable." }, { "role": "user", "content": "Map the public ratelimit API and confirm the create endpoint's response." }, { "role": "ass...
[ { "type": "function", "function": { "name": "search_code", "description": "Search source code", "parameters": { "type": "object", "properties": { "query": { "type": "string" }, "file_pattern": { "type": "string" ...
synthetic
tool_trajectory
medium
[ "tool-calling", "api-exploration" ]
9
3
[ "search_code", "read_file", "http_request" ]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Write thorough Go tests for this function:\n\n```go\nfunc TestSyncJobComplete(t *testing.T) {\n\t_, ctx := ktesting.NewTestContext(t...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
pkg/controller/job/job_controller_test.go
TestSyncJobComplete
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// String implements fmt.Stringer and sanitizes sensitive fields of ExecConfig\n// to prev...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
staging/src/k8s.io/client-go/tools/clientcmd/api/types.go
String
method
[ { "role": "system", "content": "Act as a pragmatic Go coding agent. Never invent tool output; diagnose failures from evidence and keep changes small and testable." }, { "role": "user", "content": "Check whether `configuration` is ready to merge: inspect its source and current tests." }, { ...
[ { "type": "function", "function": { "name": "read_file", "description": "Read file contents", "parameters": { "type": "object", "properties": { "path": { "type": "string" } }, "required": [ "path" ] } ...
synthetic
tool_trajectory
medium
[ "tool-calling", "multi-tool-parallel" ]
8
2
[ "read_file", "go_test" ]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go func does:\n\n```go\n// Returns the list of indexes corresponding to the set of pods\nfunc getIndexes(pods []*v...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
pkg/controller/job/indexed_job_utils.go
getIndexes
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// makeParamsAnalyzer creates a new helper object to analyze parameters\n// of function fn...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/compile/internal/inline/inlheur/analyze_func_params.go
makeParamsAnalyzer
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc (rr *NetlinkRouteRequest) toWireFormat() []byte {\n\t// TODO: complete this implement...
[]
go
repo_task
medium
[]
7
0
[]
go
src/syscall/netlink_linux.go
toWireFormat
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Write thorough Go tests for this function:\n\n```go\nfunc newResourceQuotaControllerDescriptor() *ControllerDescriptor {\n\treturn &...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
cmd/kube-controller-manager/app/core.go
newResourceQuotaControllerDescriptor
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go func does:\n\n```go\n// normalizedImageName returns the CRI compliant name for a given image.\n// TODO: cover t...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
pkg/scheduler/framework/plugins/imagelocality/image_locality.go
normalizedImageName
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// Build a GOPATH package into a shared library with gccgo and an executable that\n// link...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/cgo/internal/testshared/shared_test.go
TestGoPathShlibGccgo
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go func does:\n\n```go\nfunc TestAllowAll(t *testing.T) {\n\tcheckAllowAll := func(allowAll bool, cidrs ...string)...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
pkg/api/service/util_test.go
TestAllowAll
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc TestNext(t *testing.T) {\n\t// TODO: complete this implementation\n}\n```" }, { ...
[]
go
repo_task
medium
[]
7
0
[]
go
src/bytes/buffer_test.go
TestNext
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go method does:\n\n```go\nfunc (s) TestLookup_DroppedChainFallback(t *testing.T) {\n\tlis := &v3listenerpb.Listene...
[]
grpc-go
repo_task
medium
[]
7
0
[]
grpc-go
internal/xds/server/filter_chain_manager_test.go
TestLookup_DroppedChainFallback
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// argPropsForCall returns a slice of argument properties for the\n// expressions being pa...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/compile/internal/inline/inlheur/analyze_func_callsites.go
argPropsForCall
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go method does:\n\n```go\n// GetDeviceRequest extracts a device request from the database by user code.\nfunc (d *...
[]
dex
repo_task
medium
[]
7
0
[]
dex
storage/ent/client/devicerequest.go
GetDeviceRequest
method
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "We are reviewing sync pool in a...
[]
synthetic
senior_staff
complex
[ "performance", "sync-pool" ]
8
0
[]
synthetic
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "How would you design mutation t...
[]
synthetic
senior_staff
complex
[ "testing", "mutation-testing" ]
9
0
[]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go method does:\n\n```go\n// getPodEtcHostsStats gets status for pod etc hosts usage\nfunc (h hostStatsProvider) g...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
pkg/kubelet/stats/host_stats_provider.go
getPodEtcHostsStats
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go func does:\n\n```go\nfunc TestDecodeCorrupt(t *testing.T) {\n\ttype corrupt struct {\n\t\te string\n\t\tp int\n...
[]
go
repo_task
medium
[]
7
0
[]
go
src/encoding/ascii85/ascii85_test.go
TestDecodeCorrupt
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// TestInformerWatcherDeletedFinalStateUnknown tests the code path when `DeleteFunc`\n// i...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
staging/src/k8s.io/client-go/tools/watch/informerwatcher_test.go
TestInformerWatcherDeletedFinalStateUnknown
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// ReadLine is a low-level line-reading primitive. Most callers should use\n// [Reader.Rea...
[]
go
repo_task
medium
[]
7
0
[]
go
src/bufio/bufio.go
ReadLine
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc TestStatefulSetControllerAddPod(t *testing.T) {\n\t// TODO: complete this implementat...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
pkg/controller/statefulset/stateful_set_test.go
TestStatefulSetControllerAddPod
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Review this Go code for correctness and maintainability:\n\n```go\nfunc TestReadString(t *testing.T) {\n\tfor _, test := range readB...
[]
go
repo_task
medium
[]
7
0
[]
go
src/bytes/buffer_test.go
TestReadString
func
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "Write a concise design-review r...
[]
synthetic
senior_staff
complex
[ "api-design", "openapi-documentation" ]
9
0
[]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Review this Go code for correctness and maintainability:\n\n```go\nfunc FuzzReplace(f *testing.F) {\n\tfor _, tt := range ReplaceTes...
[]
go
repo_task
medium
[]
7
0
[]
go
src/bytes/bytes_test.go
FuzzReplace
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc (s) TestCredentialsMisuse(t *testing.T) {\n\t// TODO: complete this implementation\n}...
[]
grpc-go
repo_task
medium
[]
7
0
[]
grpc-go
clientconn_test.go
TestCredentialsMisuse
method
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "Show a production-oriented Go a...
[]
synthetic
senior_staff
complex
[ "distributed-systems", "leader-election-leases" ]
8
0
[]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Write thorough Go tests for this function:\n\n```go\nfunc (asw *actualStateOfWorld) getAttachedVolumeFromUpdateObject(volumesToRepor...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
pkg/controller/volume/attachdetach/cache/actual_state_of_world.go
getAttachedVolumeFromUpdateObject
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nconst\n\n// TODO: complete this declaration\n```" }, { "role": "assistant", "c...
[]
go
repo_task
medium
[]
7
0
[]
go
src/fmt/print.go
commaSpaceString
const
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nfunc (c SChan) Send(x int) {\n\t// TODO: complete this implementation\n}\n```" }, { ...
[]
go
repo_task
medium
[]
7
0
[]
go
test/closedchan.go
Send
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go const does:\n\n```go\nconst\n\n// RISC-V mnemonics, as defined in the \"opcodes\" and \"opcodes-pseudo\" files\...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/internal/obj/riscv/cpu.go
ABEXTI
const
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\n// AddFlags adds flags related to EndpointSliceController for controller manager to the sp...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
cmd/kube-controller-manager/app/options/endpointslicecontroller.go
AddFlags
method
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Review this Go code for correctness and maintainability:\n\n```go\nfunc TestGrow(t *testing.T) {\n\tx := []byte{'x'}\n\ty := []byte{...
[]
go
repo_task
medium
[]
7
0
[]
go
src/bytes/buffer_test.go
TestGrow
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go const does:\n\n```go\nconst (\n\n\t// this name is used for two different healthz endpoints:\n\t// - when one o...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config.go
kmsReloadHealthCheckName
const
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Write thorough Go tests for this function:\n\n```go\nfunc TestPrintNodeMetrics(t *testing.T) {\n\n\ttests := []struct {\n\t\tname ...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
staging/src/k8s.io/kubectl/pkg/metricsutil/metrics_printer_test.go
TestPrintNodeMetrics
func
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Explain what this Go func does:\n\n```go\nfunc TestGetHostPorts(t *testing.T) {\n\ttests := []struct {\n\t\tpod *v1.Pod\n\t\twant [...
[]
kubernetes
repo_task
medium
[]
7
0
[]
kubernetes
pkg/scheduler/util/utils_test.go
TestGetHostPorts
func
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "We are reviewing locking in a m...
[]
synthetic
senior_staff
complex
[ "database-patterns", "locking" ]
8
0
[]
synthetic
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Review this Go code for correctness and maintainability:\n\n```go\nconst\n\n// Type flags for Header.Typeflag.\n(\n\n\t// Type '1' t...
[]
go
repo_task
medium
[]
7
0
[]
go
src/archive/tar/common.go
TypeLink
const
[ { "role": "system", "content": "You are an expert Go software engineer. Give precise, idiomatic, and technically correct answers." }, { "role": "user", "content": "Complete the following Go code:\n\n```go\nconst\n\n// TODO: complete this declaration\n```" }, { "role": "assistant", "c...
[]
go
repo_task
medium
[]
7
0
[]
go
src/cmd/internal/obj/loong64/inst.go
AXVBITREVW
const
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "Write a concise design-review r...
[]
synthetic
senior_staff
complex
[ "distributed-systems", "outbox-inbox" ]
8
0
[]
synthetic
[ { "role": "system", "content": "You are a senior staff Go software engineer. Give production-oriented advice, make assumptions explicit, explain trade-offs and failure modes, and prefer simple, observable designs over clever ones." }, { "role": "user", "content": "Show a production-oriented Go a...
[]
synthetic
senior_staff
complex
[ "reliability", "timeout-budgeting" ]
8
0
[]
synthetic
End of preview. Expand in Data Studio

YAML Metadata Warning:The task_categories "conversational" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other

GoModel Go Expert v4 Dataset

Description

A high-quality dataset for fine-tuning Qwen2.5-Coder-7B to be an expert Go software engineer with tool-calling capabilities. This is version 4, substantially rebuilt from v3 with:

  • Structured messages format (not pre-rendered ChatML text)
  • Go AST-extracted code from real repositories using go/parser
  • Go 1.26 feature coverage (February 2026 release)
  • Senior/staff-level engineering content (architecture, distributed systems, API design)
  • Native Qwen2.5 tool-calling format with structured tool_calls and tools fields
  • Semantic deduplication and repository-disjoint splits

Dataset Statistics

Split Examples Est. Tokens
Train 20195 ~8,157,109
Validation 708 ~304,641
Test 520 ~238,381
Total 21423 ~8,700,131

Categories

{ "go126": 775, "repo_task": 15785, "senior_staff": 3936, "tool_trajectory": 927 }

Sources

{ "dex": 253, "go": 6850, "grpc-go": 969, "krakend-ce": 11, "kubernetes": 7702, "synthetic": 5638 }

Tool Trajectory Stats

  • Count: 927
  • Average trajectory length: 3.16
  • Total tool calls: 2933

Data Format

Each example is a JSON object with:

{
  "messages": [
    {"role": "system", "content": "You are an expert Go software engineer..."},
    {"role": "user", "content": "Fix the failing test..."},
    {"role": "assistant", "content": "Let me read the file...", "tool_calls": [
      {"type": "function", "function": {"name": "read_file", "arguments": {"path": "main.go"}}}
    ]},
    {"role": "tool", "name": "read_file", "content": "package main..."},
    {"role": "assistant", "content": "The issue is..."}
  ],
  "tools": [
    {"type": "function", "function": {"name": "read_file", "description": "...", "parameters": {...}}}
  ],
  "source": "grpc-go",
  "category": "tool_trajectory",
  "complexity": "medium",
  "tags": ["tool-calling", "debugging"],
  "quality_score": 8
}

Data Sources

Repository-Grounded (Real Code)

  • Kubernetes (7702 examples): Extracted using go/parser from the Kubernetes codebase
  • Go Standard Library (6850 examples): Extracted from Go standard library source
  • grpc-go (969 examples): Extracted from the official gRPC Go implementation
  • Dex (253 examples): Extracted from the Dex identity service
  • KrakenD (11 examples): Extracted from KrakenD CE

Synthetic (High-Quality Generated)

  • Go 1.26 Features (775 examples): Covers all Go 1.26 features from official release notes
  • Senior/Staff Content (3936 examples): Architecture, distributed systems, API design, etc.
  • Tool Trajectories (927 examples): Multi-step tool-calling workflows

Preprocessing

  1. AST Extraction: Go code extracted using go/parser and go/ast (not regex)
  2. Quality Filtering: Trivial functions (<5 lines) and generated code excluded
  3. Task Generation: Completion, explanation, review, and test-writing tasks from each code symbol
  4. Semantic Deduplication: Near-duplicate detection on normalized user+assistant content
  5. Repository-Disjoint Splits: Code split by file-path clusters within repos
  6. Go 1.26 Validation: Feature examples verified against official release notes

Go 1.26 Features Covered

  • new(expr) expression support
  • Self-referential generic type constraints
  • Green Tea garbage collector (enabled by default)
  • go fix modernizers with //go:fix inline directives
  • Goroutine leak profiler (experimental)
  • crypto/hpke package (RFC 9180)
  • simd/archsimd (experimental, GOEXPERIMENT=simd)
  • errors.AsType generic error type assertion
  • slog.NewMultiHandler
  • bytes.Buffer.Peek
  • Reflect iterators (Type.Fields, Type.Methods, etc.)
  • Testing artifacts (T.ArtifactDir, B.ArtifactDir)
  • And more...

Intended Use

Fine-tuning Qwen2.5-Coder-7B-Instruct for:

  • Production Go code generation
  • Autonomous coding agent workflows (OpenCode, etc.)
  • Tool calling / function calling in Go development contexts
  • Senior/staff-level Go engineering advice
  • Go 1.26 feature education

Citation

@dataset{mencosk_gomodel_go_expert_v4,
  author       = {mencosk},
  title        = {GoModel Go Expert v4 Dataset},
  year         = 2026,
  publisher    = {Hugging Face},
  url          = {https://huggingface.co/datasets/mencosk/gomodel-go-expert-v4}
}
Downloads last month
9