Datasets:
id stringlengths 11 81 | class stringclasses 6
values | label bool 2
classes | label_method stringclasses 2
values | label_model stringclasses 2
values | origin stringclasses 2
values | synthetic_original_id stringclasses 730
values | repository stringlengths 7 59 | commit stringlengths 40 40 | path stringlengths 4 109 | source_url stringlengths 80 234 | source_sha256 stringlengths 64 64 | license stringclasses 4
values | split_group stringlengths 7 59 | candidate_start int64 12 222k | candidate_end int64 22 222k | candidate_text stringlengths 1 1.68k | context_runs listlengths 1 3 | context stringlengths 1 4.08k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DC420/DC101 | DC | false | model-assisted | claude-fable-5-1 | natural | null | authzed/zed | b3e6f953074cb476c03112cbc8bad005d5cf9b8d | pkg/backupformat/redaction.go | https://github.com/authzed/zed/blob/b3e6f953074cb476c03112cbc8bad005d5cf9b8d/pkg/backupformat/redaction.go | 9d07cb80e6db748ce5bbd8263fdff3ad0fe57085ad96c5cbe4700464a8f29fa6 | Apache-2.0 | authzed/zed | 2,769 | 2,829 | // Next redacts the next record and writes it to the writer. | [
{
"start": 2769,
"end": 2829,
"text": "// Next redacts the next record and writes it to the writer."
},
{
"start": 2830,
"end": 2861,
"text": "func (r *Redactor) Next() error"
}
] | // Next redacts the next record and writes it to the writer.
func (r *Redactor) Next() error |
DC420/DC102 | DC | false | model-assisted | claude-fable-5-1 | natural | null | nutanix-cloud-native/cluster-api-runtime-extensions-nutanix | bf5cd510cce605ee8898056f204048eb7b385b1a | api/external/sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2/awsmachine_types.go | https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/blob/bf5cd510cce605ee8898056f204048eb7b385b1a/api/external/sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2/awsmachine_types.go | 07e91496fdb79628ceaf150bb8176e84df5c3e1a2c278b60d269c5829effd1a7 | Apache-2.0 | nutanix-cloud-native/cluster-api-runtime-extensions-nutanix | 15,992 | 16,174 | // Ignition defines options related to the bootstrapping systems where Ignition is used.
// For more information on Ignition configuration, see https://coreos.github.io/butane/specs/ | [
{
"start": 15992,
"end": 16174,
"text": "// Ignition defines options related to the bootstrapping systems where Ignition is used.\n// For more information on Ignition configuration, see https://coreos.github.io/butane/specs/"
},
{
"start": 16175,
"end": 16197,
"text": "type Ignition stru... | // Ignition defines options related to the bootstrapping systems where Ignition is used.
// For more information on Ignition configuration, see https://coreos.github.io/butane/specs/
type Ignition struct { |
DC420/DC103 | DC | true | model-assisted | claude-fable-5-1 | natural | null | segmentio/analytics-go | bddbeed695c749b5c8ff47231d15b00d8e34e611 | integrations.go | https://github.com/segmentio/analytics-go/blob/bddbeed695c749b5c8ff47231d15b00d8e34e611/integrations.go | 8a602818c3848be2d07395ac73e4f2ccd190772a4933d19d9b0d16d43b9bcc86 | MIT | segmentio/analytics-go | 969 | 1,124 | // Sets an integration named by the first argument to the specified value, any
// value other than `false` will be interpreted as enabling the integration. | [
{
"start": 969,
"end": 1124,
"text": "// Sets an integration named by the first argument to the specified value, any\n// value other than `false` will be interpreted as enabling the integration."
},
{
"start": 1125,
"end": 1195,
"text": "func (i Integrations) Set(name string, value inter... | // Sets an integration named by the first argument to the specified value, any
// value other than `false` will be interpreted as enabling the integration.
func (i Integrations) Set(name string, value interface{}) Integrations |
DC420/DC104 | DC | false | model-assisted | claude-fable-5-1 | natural | null | RoryQ/wrench | c3fac9acb06979c9dd0f2021b438d74f42fb2531 | internal/graceful/graceful.go | https://github.com/RoryQ/wrench/blob/c3fac9acb06979c9dd0f2021b438d74f42fb2531/internal/graceful/graceful.go | 367116873cf427605a0526afe8aa7c078f570cce8ffc467c2045fcaf2a954bbd | MIT | RoryQ/wrench | 68 | 241 | // OnShutdown will call registered functions pass to Do when the program receives a shutdown signal. It should be
// declared once where cleanup tasks need to be registered. | [
{
"start": 68,
"end": 241,
"text": "// OnShutdown will call registered functions pass to Do when the program receives a shutdown signal. It should be\n// declared once where cleanup tasks need to be registered."
},
{
"start": 242,
"end": 266,
"text": "type OnShutdown struct {"
}
] | // OnShutdown will call registered functions pass to Do when the program receives a shutdown signal. It should be
// declared once where cleanup tasks need to be registered.
type OnShutdown struct { |
DC420/DC105 | DC | true | model-assisted | claude-fable-5-1 | natural | null | cncf/devstatscode | d6b8550fa0002d669f2dcccf972b851953a4834a | gha.go | https://github.com/cncf/devstatscode/blob/d6b8550fa0002d669f2dcccf972b851953a4834a/gha.go | ee23476f857801cb3acea0398be26a4456fafbe03e298d404243e736659211f9 | Apache-2.0 | cncf/devstatscode | 5,686 | 5,846 | // Actor - GHA Actor structure
// Name is unexported and not used by JSON load/save
// But is used when importing affiliations from cncf/gitdm:github_users.json | [
{
"start": 5686,
"end": 5846,
"text": "// Actor - GHA Actor structure\n// Name is unexported and not used by JSON load/save\n// But is used when importing affiliations from cncf/gitdm:github_users.json"
},
{
"start": 5847,
"end": 5866,
"text": "type Actor struct {"
}
] | // Actor - GHA Actor structure
// Name is unexported and not used by JSON load/save
// But is used when importing affiliations from cncf/gitdm:github_users.json
type Actor struct { |
DC420/DC106 | DC | false | model-assisted | claude-fable-5-1 | natural | null | shlin168/go-nvd | 21d8c0da4b600f0598ead6b6691178d8a4e547a0 | nvd/schema/mitre_cve.go | https://github.com/shlin168/go-nvd/blob/21d8c0da4b600f0598ead6b6691178d8a4e547a0/nvd/schema/mitre_cve.go | c78fe57411fb4f2ea5caae589f0fc00448b9ce585fb889110574e3d2264d11ec | MIT | shlin168/go-nvd | 2,722 | 2,765 | // MitreCve is the cve part of MitreCveItem | [
{
"start": 2722,
"end": 2765,
"text": "// MitreCve is the cve part of MitreCveItem"
},
{
"start": 2766,
"end": 2788,
"text": "type MitreCve struct {"
}
] | // MitreCve is the cve part of MitreCveItem
type MitreCve struct { |
DC420/DC107 | DC | false | model-assisted | claude-fable-5-1 | natural | null | automerge/automerge-go | 6fb4f2d0824411287925acfc0232948b46d899f8 | value.go | https://github.com/automerge/automerge-go/blob/6fb4f2d0824411287925acfc0232948b46d899f8/value.go | ba5e8adf9204505b030eb02ecc40a48473ff9ede9d6ff088763e35f6ee63b693 | MIT | automerge/automerge-go | 3,309 | 3,377 | // Map returns the value as a [*Map], it panics if Kind() != KindMap | [
{
"start": 3309,
"end": 3377,
"text": "// Map returns the value as a [*Map], it panics if Kind() != KindMap"
},
{
"start": 3378,
"end": 3404,
"text": "func (v *Value) Map() *Map"
}
] | // Map returns the value as a [*Map], it panics if Kind() != KindMap
func (v *Value) Map() *Map |
DC420/DC108 | DC | false | model-assisted | claude-fable-5-1 | natural | null | adubovskoy/tbook_converter | a7f61cf87c9f3319460cc4a16467bad06db1d788 | internal/translate/client.go | https://github.com/adubovskoy/tbook_converter/blob/a7f61cf87c9f3319460cc4a16467bad06db1d788/internal/translate/client.go | 695c841bb4ebf485b581a924b755b7ca72bc5a93a129932598985486aac59bdb | MIT | adubovskoy/tbook_converter | 17,003 | 17,065 | // Model returns the model id this client sends requests with. | [
{
"start": 17003,
"end": 17065,
"text": "// Model returns the model id this client sends requests with."
},
{
"start": 17066,
"end": 17097,
"text": "func (c *Client) Model() string"
}
] | // Model returns the model id this client sends requests with.
func (c *Client) Model() string |
DC420/DC109 | DC | false | model-assisted | claude-fable-5-1 | natural | null | ksamirdev/schedy | 7b2eef57a378af7ba967662a01d2435cdd0fc050 | internal/scheduler/store.go | https://github.com/ksamirdev/schedy/blob/7b2eef57a378af7ba967662a01d2435cdd0fc050/internal/scheduler/store.go | d78ae2945a57037a4a4127035e1a2e35efa60571f68ab4d6154d18f72342f5fc | MIT | ksamirdev/schedy | 2,801 | 2,920 | // RecoverRunning re-queues Tasks stuck in running (e.g. after a crash)
// back to pending. Delivery is at-least-once. | [
{
"start": 1472,
"end": 1494,
"text": "type Store interface {"
},
{
"start": 2801,
"end": 2920,
"text": "// RecoverRunning re-queues Tasks stuck in running (e.g. after a crash)\n\t// back to pending. Delivery is at-least-once."
},
{
"start": 2922,
"end": 2944,
"text": "Re... | type Store interface {
// RecoverRunning re-queues Tasks stuck in running (e.g. after a crash)
// back to pending. Delivery is at-least-once.
RecoverRunning() error |
DC420/DC110 | DC | false | model-assisted | claude-fable-5-1 | natural | null | mash/osc8wrap | a210d23fac3235d8f29034bd39fc6f8b78d1223d | gitcontext.go | https://github.com/mash/osc8wrap/blob/a210d23fac3235d8f29034bd39fc6f8b78d1223d/gitcontext.go | ba54137a6f0f27bfeaaf2a28cd4d5f100c31f7e87bc4a871b5d87ba2bd54251a | MIT | mash/osc8wrap | 1,410 | 1,638 | // Resolve never fails: a directory outside a repository, a deleted directory
// and a broken checkout all yield the zero gitContext, cached like any other
// answer. A listing must not lose a row because a worktree was removed. | [
{
"start": 1410,
"end": 1638,
"text": "// Resolve never fails: a directory outside a repository, a deleted directory\n// and a broken checkout all yield the zero gitContext, cached like any other\n// answer. A listing must not lose a row because a worktree was removed."
},
{
"start": 1639,
"... | // Resolve never fails: a directory outside a repository, a deleted directory
// and a broken checkout all yield the zero gitContext, cached like any other
// answer. A listing must not lose a row because a worktree was removed.
func (r *gitContextResolver) Resolve(dir string) gitContext |
DC420/DC112 | DC | false | model-assisted | claude-fable-5-1 | natural | null | fidelity/kconnect | 3be6b580a4e70508ac256c4a3d77eec8e87d7021 | pkg/app/use.go | https://github.com/fidelity/kconnect/blob/3be6b580a4e70508ac256c4a3d77eec8e87d7021/pkg/app/use.go | 241158cd23ddf8711b5212c9ee17357797b44d43a6c430caae5536eff34f11d7 | Apache-2.0 | fidelity/kconnect | 1,169 | 1,219 | // UseInput are the parameters to the use function | [
{
"start": 1169,
"end": 1219,
"text": "// UseInput are the parameters to the use function"
},
{
"start": 1220,
"end": 1242,
"text": "type UseInput struct {"
}
] | // UseInput are the parameters to the use function
type UseInput struct { |
DC420/DC113 | DC | false | model-assisted | claude-fable-5-1 | natural | null | cloudmanic/herdr-plus | f38df3570bea8f7ca71dc1ba11bce3b123d14402 | quickactionspicker.go | https://github.com/cloudmanic/herdr-plus/blob/f38df3570bea8f7ca71dc1ba11bce3b123d14402/quickactionspicker.go | 9c812c808097f75b819c97244c20196c33303e6456be4608334b96c0997bd24c | MIT | cloudmanic/herdr-plus | 4,051 | 4,200 | // Update routes key presses to the handler for the current stage and forwards
// everything else (window sizes, the blink tick) to the active input. | [
{
"start": 4051,
"end": 4200,
"text": "// Update routes key presses to the handler for the current stage and forwards\n// everything else (window sizes, the blink tick) to the active input."
},
{
"start": 4201,
"end": 4262,
"text": "func (m pickerModel) Update(msg tea.Msg) (tea.Model, te... | // Update routes key presses to the handler for the current stage and forwards
// everything else (window sizes, the blink tick) to the active input.
func (m pickerModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) |
DC420/DC114 | DC | false | model-assisted | claude-fable-5-1 | natural | null | ipfs-shipyard/nopfs | 9f5e735ad88065efc6d7947ce8008d83cc828ed0 | entry.go | https://github.com/ipfs-shipyard/nopfs/blob/9f5e735ad88065efc6d7947ce8008d83cc828ed0/entry.go | f7c785e519c0a091a270f5ca4ec727426e2891b3b62b494083a43d8df30a79fe | Apache-2.0 | ipfs-shipyard/nopfs | 2,548 | 2,628 | // Matches returns whether the given path matched the blocked (or allowed) path. | [
{
"start": 2548,
"end": 2628,
"text": "// Matches returns whether the given path matched the blocked (or allowed) path."
},
{
"start": 2629,
"end": 2679,
"text": "func (bpath BlockedPath) Matches(path string) bool"
}
] | // Matches returns whether the given path matched the blocked (or allowed) path.
func (bpath BlockedPath) Matches(path string) bool |
DC420/DC117 | DC | false | model-assisted | claude-fable-5-1 | natural | null | earthboundkid/resperr | 6e65c183797e6f2bc0c9d6e188ea0f5b506ce564 | validator.go | https://github.com/earthboundkid/resperr/blob/6e65c183797e6f2bc0c9d6e188ea0f5b506ce564/validator.go | 7c0d537ce35dc1658155d523c3e0959bfb0b30ae55cb5d8adb084f8de57e67e4 | MIT | earthboundkid/resperr | 668 | 844 | // AddIfUnset adds the provided message to field if cond is true and the field does not already have a validation message.
// AddIfUnset works with the zero value of Validator. | [
{
"start": 668,
"end": 844,
"text": "// AddIfUnset adds the provided message to field if cond is true and the field does not already have a validation message.\n// AddIfUnset works with the zero value of Validator."
},
{
"start": 845,
"end": 926,
"text": "func (v *Validator) AddIfUnset(f... | // AddIfUnset adds the provided message to field if cond is true and the field does not already have a validation message.
// AddIfUnset works with the zero value of Validator.
func (v *Validator) AddIfUnset(field string, cond bool, message string, a ...any) |
DC420/DC118 | DC | false | model-assisted | claude-fable-5-1 | natural | null | D4n13l3k00/mikrotik-lists-manager | a03b457e02deafd7ae5a364b6f4c6acc995dbaea | internal/syncer/syncer.go | https://github.com/D4n13l3k00/mikrotik-lists-manager/blob/a03b457e02deafd7ae5a364b6f4c6acc995dbaea/internal/syncer/syncer.go | ba05564e375a1bdf31132c574b3cbf9e7acc145647ae10221fdab06bf992c13f | MIT | D4n13l3k00/mikrotik-lists-manager | 584 | 628 | // Change describes a single planned change. | [
{
"start": 584,
"end": 628,
"text": "// Change describes a single planned change."
},
{
"start": 629,
"end": 649,
"text": "type Change struct {"
}
] | // Change describes a single planned change.
type Change struct { |
DC420/DC119 | DC | false | model-assisted | claude-fable-5-1 | natural | null | RocksLabs/kvrocks_exporter | cfb7efb37d3850683f3c81acddf2d4a05a610787 | exporter/tls.go | https://github.com/RocksLabs/kvrocks_exporter/blob/cfb7efb37d3850683f3c81acddf2d4a05a610787/exporter/tls.go | 3025326b05714899f31eab1c8e7c52f214647b21f2eea460c6836d7cd1e00f63 | MIT | RocksLabs/kvrocks_exporter | 107 | 190 | // CreateClientTLSConfig verifies configured files and return a prepared tls.Config | [
{
"start": 107,
"end": 190,
"text": "// CreateClientTLSConfig verifies configured files and return a prepared tls.Config"
},
{
"start": 191,
"end": 254,
"text": "func (e *Exporter) CreateClientTLSConfig() (*tls.Config, error)"
}
] | // CreateClientTLSConfig verifies configured files and return a prepared tls.Config
func (e *Exporter) CreateClientTLSConfig() (*tls.Config, error) |
DC420/DC120 | DC | true | model-assisted | claude-fable-5-1 | natural | null | dubbogo/triple | 339a5a68ac537265703b9d2bd13d705b75193b36 | pkg/config/config.go | https://github.com/dubbogo/triple/blob/339a5a68ac537265703b9d2bd13d705b75193b36/pkg/config/config.go | 74beb54ab58424e7d1c29561179aabea8cde577dd696417aab91ffd3da036bfa | Apache-2.0 | dubbogo/triple | 1,025 | 1,041 | // triple option | [
{
"start": 1025,
"end": 1041,
"text": "// triple option"
},
{
"start": 1042,
"end": 1062,
"text": "type Option struct {"
}
] | // triple option
type Option struct { |
DC420/DC121 | DC | false | model-assisted | claude-fable-5-1 | natural | null | shlin168/go-nvd | 21d8c0da4b600f0598ead6b6691178d8a4e547a0 | nvd/schema/utils.go | https://github.com/shlin168/go-nvd/blob/21d8c0da4b600f0598ead6b6691178d8a4e547a0/nvd/schema/utils.go | fb18bd3f015b5e441e60cf2d5b53be2bee03fbba1e15f8d13ace942f9ed8f5ef | MIT | shlin168/go-nvd | 4,795 | 4,861 | // IsVersionMatch match criteria (CPE Name 2.3) with query version | [
{
"start": 4795,
"end": 4861,
"text": "// IsVersionMatch match criteria (CPE Name 2.3) with query version"
},
{
"start": 4862,
"end": 4926,
"text": "func (cpeToMatch CpeMatch) IsVersionMatch(qryVerStr string) bool"
}
] | // IsVersionMatch match criteria (CPE Name 2.3) with query version
func (cpeToMatch CpeMatch) IsVersionMatch(qryVerStr string) bool |
DC420/DC122 | DC | false | model-assisted | claude-fable-5-1 | natural | null | shlin168/go-nvd | 21d8c0da4b600f0598ead6b6691178d8a4e547a0 | nvd/schema/api_cve.go | https://github.com/shlin168/go-nvd/blob/21d8c0da4b600f0598ead6b6691178d8a4e547a0/nvd/schema/api_cve.go | 6a23c3498f7a8551833a44ab4a7a034a9eea60365ccf937c3783dd3818e8bcfd | MIT | shlin168/go-nvd | 3,894 | 3,958 | // CpeMatch describes how this cpe (Criteria) matches to the CVE | [
{
"start": 3894,
"end": 3958,
"text": "// CpeMatch describes how this cpe (Criteria) matches to the CVE"
},
{
"start": 3959,
"end": 3981,
"text": "type CpeMatch struct {"
}
] | // CpeMatch describes how this cpe (Criteria) matches to the CVE
type CpeMatch struct { |
DC420/DC123 | DC | false | model-assisted | claude-fable-5-1 | natural | null | mengbin92/micro-one-api | 8bccf17743968cbd0c1110a947d228634d6a477b | app/log/internal/biz/batch_writer.go | https://github.com/mengbin92/micro-one-api/blob/8bccf17743968cbd0c1110a947d228634d6a477b/app/log/internal/biz/batch_writer.go | 8218bf70dcdf5f9c4221d307f327580a8dfe1f7a184c7df7945628b205306a14 | MIT | mengbin92/micro-one-api | 1,813 | 1,865 | // Start starts the batch writer background workers. | [
{
"start": 1813,
"end": 1865,
"text": "// Start starts the batch writer background workers."
},
{
"start": 1866,
"end": 1898,
"text": "func (w *BatchLogWriter) Start()"
}
] | // Start starts the batch writer background workers.
func (w *BatchLogWriter) Start() |
DC420/DC124 | DC | false | model-assisted | claude-fable-5-1 | natural | null | michimani/gotwi | 86b19e67adbdcec6c19456697b26e0c7d0ebbb76 | user/userlookup/types/parameter.go | https://github.com/michimani/gotwi/blob/86b19e67adbdcec6c19456697b26e0c7d0ebbb76/user/userlookup/types/parameter.go | 4294becbd1de7f75afcb8a5c3e76c6e1b4a3131693afae493ae904b8efcc7854 | MIT | michimani/gotwi | 5,243 | 5,411 | // GetMeInput is struct for requesting `GET /2/users/me`.
// more information: https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-me | [
{
"start": 5243,
"end": 5411,
"text": "// GetMeInput is struct for requesting `GET /2/users/me`.\n// more information: https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-me"
},
{
"start": 5412,
"end": 5436,
"text": "type GetMeInput struct {"
}
] | // GetMeInput is struct for requesting `GET /2/users/me`.
// more information: https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-me
type GetMeInput struct { |
DC420/DC125 | DC | true | model-assisted | claude-fable-5-1 | natural | null | jybp/twitch-downloader | 5a417331d706ced16a5218b938baa9c715a11bd7 | twitch/twitch.go | https://github.com/jybp/twitch-downloader/blob/5a417331d706ced16a5218b938baa9c715a11bd7/twitch/twitch.go | d01fe8f7d2f9477da8b2e3485f007b52281525b713cd5cd1a9ffea058844bc5e | MIT | jybp/twitch-downloader | 3,668 | 3,719 | // Name retrieves the name of the video from a URL. | [
{
"start": 3668,
"end": 3719,
"text": "// Name retrieves the name of the video from a URL."
},
{
"start": 3720,
"end": 3785,
"text": "func (c *Client) VOD(ctx context.Context, id string) (VOD, error)"
}
] | // Name retrieves the name of the video from a URL.
func (c *Client) VOD(ctx context.Context, id string) (VOD, error) |
DC420/DC126 | DC | true | model-assisted | claude-fable-5-1 | natural | null | nutanix-cloud-native/cluster-api-runtime-extensions-nutanix | bf5cd510cce605ee8898056f204048eb7b385b1a | api/v1alpha1/clusterconfig_types.go | https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/blob/bf5cd510cce605ee8898056f204048eb7b385b1a/api/v1alpha1/clusterconfig_types.go | 6e2be5e298f605bfecad0a69e386e6eb43c0e06bc4e4b6d09ec094a74732f6c0 | Apache-2.0 | nutanix-cloud-native/cluster-api-runtime-extensions-nutanix | 8,785 | 8,888 | // KubeadmConfigSpec defines configuration that can be set when using kubeadm to bootstrap the cluster. | [
{
"start": 8785,
"end": 8888,
"text": "// KubeadmConfigSpec defines configuration that can be set when using kubeadm to bootstrap the cluster."
},
{
"start": 8889,
"end": 8927,
"text": "type KubeadmClusterConfigSpec struct {"
}
] | // KubeadmConfigSpec defines configuration that can be set when using kubeadm to bootstrap the cluster.
type KubeadmClusterConfigSpec struct { |
DC420/DC127 | DC | true | model-assisted | claude-fable-5-1 | natural | null | lostdusty/gobalt | c2f46f4581e6b84426810f03ec8e77ccf766108d | gobalt.go | https://github.com/lostdusty/gobalt/blob/c2f46f4581e6b84426810f03ec8e77ccf766108d/gobalt.go | 560be9126388059a708b3cd6a74a1ec61e19be0cd7db2a32d2ba4cdb6e60698a | MIT | lostdusty/gobalt | 18,358 | 18,420 | // Deprecated: Cobalt response returns the file name and size. | [
{
"start": 18358,
"end": 18420,
"text": "// Deprecated: Cobalt response returns the file name and size."
},
{
"start": 18421,
"end": 18444,
"text": "type MediaInfo struct {"
}
] | // Deprecated: Cobalt response returns the file name and size.
type MediaInfo struct { |
DC420/DC129 | DC | false | model-assisted | claude-fable-5-1 | natural | null | KaotoIO/kaoto-operator | e9e7e0c3e2cdf957dbab39fd78daf8aa94489682 | pkg/conditions/conditions.go | https://github.com/KaotoIO/kaoto-operator/blob/e9e7e0c3e2cdf957dbab39fd78daf8aa94489682/pkg/conditions/conditions.go | 3be12c4e5cb8d16b406de05b8fdbc463d5a2f1c9d26aa7f65bf49d494375fd98 | Apache-2.0 | KaotoIO/kaoto-operator | 386 | 448 | // GetConditions returns the list of conditions for an object. | [
{
"start": 329,
"end": 352,
"text": "type Getter interface {"
},
{
"start": 386,
"end": 448,
"text": "// GetConditions returns the list of conditions for an object."
},
{
"start": 450,
"end": 476,
"text": "GetConditions() Conditions"
}
] | type Getter interface {
// GetConditions returns the list of conditions for an object.
GetConditions() Conditions |
DC420/DC130 | DC | false | model-assisted | claude-fable-5-1 | natural | null | 6enta0/CPAplus | 0662b85a1af87fe9dbafafb8773ed8edce51cdc3 | internal/runtime/geminicli/state.go | https://github.com/6enta0/CPAplus/blob/0662b85a1af87fe9dbafafb8773ed8edce51cdc3/internal/runtime/geminicli/state.go | b2e9c7565bdaf4ef6f481a41a65c4957723a957e43a847aad4d4fd686d15fecc | MIT | 0xAstroAlpha/cliProxyAPI-Dashboard | 976 | 1,047 | // ProjectIDs returns a snapshot of the configured project identifiers. | [
{
"start": 976,
"end": 1047,
"text": "// ProjectIDs returns a snapshot of the configured project identifiers."
},
{
"start": 1048,
"end": 1096,
"text": "func (s *SharedCredential) ProjectIDs() []string"
}
] | // ProjectIDs returns a snapshot of the configured project identifiers.
func (s *SharedCredential) ProjectIDs() []string |
DC420/DC131 | DC | false | model-assisted | claude-fable-5-1 | natural | null | jybp/twitch-downloader | 5a417331d706ced16a5218b938baa9c715a11bd7 | m3u8/media.go | https://github.com/jybp/twitch-downloader/blob/5a417331d706ced16a5218b938baa9c715a11bd7/m3u8/media.go | abf2c637a202c7675d91d49d0ebd8267925bbc4b0b1395c8b4b2e4ce61be3b1e | MIT | jybp/twitch-downloader | 285 | 429 | // MediaPlaylist contains a series of Media Segments that make up the
// overall presentation.
//
// https://tools.ietf.org/html/rfc8216#page-22 | [
{
"start": 285,
"end": 429,
"text": "// MediaPlaylist contains a series of Media Segments that make up the\n// overall presentation.\n//\n// https://tools.ietf.org/html/rfc8216#page-22"
},
{
"start": 430,
"end": 457,
"text": "type MediaPlaylist struct {"
}
] | // MediaPlaylist contains a series of Media Segments that make up the
// overall presentation.
//
// https://tools.ietf.org/html/rfc8216#page-22
type MediaPlaylist struct { |
DC420/DC132 | DC | true | model-assisted | claude-fable-5-1 | natural | null | splunk/vault-plugin-secrets-artifactory | 238e81109b9520d38140673c811f7fee0544a214 | plugin/token.go | https://github.com/splunk/vault-plugin-secrets-artifactory/blob/238e81109b9520d38140673c811f7fee0544a214/plugin/token.go | ac392a812597b7626779ed58b38d21e0d9c7e717f84c53d85d5168d408a9ac24 | Apache-2.0 | splunk/vault-plugin-secrets-artifactory | 735 | 792 | // TokenCreateEntry is the structure for creating a token | [
{
"start": 735,
"end": 792,
"text": "// TokenCreateEntry is the structure for creating a token"
},
{
"start": 793,
"end": 823,
"text": "type TokenCreateEntry struct {"
}
] | // TokenCreateEntry is the structure for creating a token
type TokenCreateEntry struct { |
DC420/DC133 | DC | false | model-assisted | claude-fable-5-1 | natural | null | einride/backstage-go | ad3a7305b4bb39dfc474836ba4744b6e26c39fc3 | catalog/entity_metadata.go | https://github.com/einride/backstage-go/blob/ad3a7305b4bb39dfc474836ba4744b6e26c39fc3/catalog/entity_metadata.go | 83c6fe1261580d687d410b4d07ba66bff30cf298ef0215cc5ec952efef7c37b9 | MIT | einride/backstage-go | 17 | 289 | // EntityMetadata contains fields common to all versions/kinds of entity.
//
// See also:
//
// https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#objectmeta-v1-meta
// https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/ | [
{
"start": 17,
"end": 289,
"text": "// EntityMetadata contains fields common to all versions/kinds of entity.\n//\n// See also:\n//\n// https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#objectmeta-v1-meta\n// https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes... | // EntityMetadata contains fields common to all versions/kinds of entity.
//
// See also:
//
// https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#objectmeta-v1-meta
// https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/
type EntityMetadata struct { |
DC420/DC134 | DC | false | model-assisted | claude-fable-5-1 | natural | null | einride/backstage-go | ad3a7305b4bb39dfc474836ba4744b6e26c39fc3 | catalog/spec_template.go | https://github.com/einride/backstage-go/blob/ad3a7305b4bb39dfc474836ba4744b6e26c39fc3/catalog/spec_template.go | d8b6ec4fc27a44e5180c19d91b4c03a1a76ad3c10e19bb559220978b5f5a84d7 | MIT | einride/backstage-go | 41 | 195 | // TemplateSpec contains the Template standard spec fields.
//
// See: https://backstage.io/docs/features/software-catalog/descriptor-format#kind-template | [
{
"start": 41,
"end": 195,
"text": "// TemplateSpec contains the Template standard spec fields.\n//\n// See: https://backstage.io/docs/features/software-catalog/descriptor-format#kind-template"
},
{
"start": 196,
"end": 222,
"text": "type TemplateSpec struct {"
}
] | // TemplateSpec contains the Template standard spec fields.
//
// See: https://backstage.io/docs/features/software-catalog/descriptor-format#kind-template
type TemplateSpec struct { |
DC420/DC135 | DC | false | model-assisted | claude-fable-5-1 | natural | null | fidelity/kconnect | 3be6b580a4e70508ac256c4a3d77eec8e87d7021 | pkg/provider/discovery/discovery.go | https://github.com/fidelity/kconnect/blob/3be6b580a4e70508ac256c4a3d77eec8e87d7021/pkg/provider/discovery/discovery.go | 079333dafaef0cdf080125336c5304d2fa90c94c66d24afa5b2d1f2700a35f96 | Apache-2.0 | fidelity/kconnect | 648 | 723 | // Discover will discover what clusters the supplied identity has access to | [
{
"start": 561,
"end": 586,
"text": "type Provider interface {"
},
{
"start": 648,
"end": 723,
"text": "// Discover will discover what clusters the supplied identity has access to"
},
{
"start": 725,
"end": 801,
"text": "Discover(ctx context.Context, input *DiscoverInput)... | type Provider interface {
// Discover will discover what clusters the supplied identity has access to
Discover(ctx context.Context, input *DiscoverInput) (*DiscoverOutput, error) |
DC420/DC136 | DC | false | model-assisted | claude-fable-5-1 | natural | null | ianlewis/go-stardict | 6ad32d14b560aa39e6f9ddff1672c142fc214618 | stardict.go | https://github.com/ianlewis/go-stardict/blob/6ad32d14b560aa39e6f9ddff1672c142fc214618/stardict.go | 6165d609d37cd54f3f6c1d2532145bd769b2f0171441aeb6b38a2ba2120ab529 | Apache-2.0 | ianlewis/go-stardict | 9,492 | 9,562 | // Index returns a simple in-memory version of the dictionary's index. | [
{
"start": 9492,
"end": 9562,
"text": "// Index returns a simple in-memory version of the dictionary's index."
},
{
"start": 9563,
"end": 9607,
"text": "func (s *Stardict) Index() (*idx.Idx, error)"
}
] | // Index returns a simple in-memory version of the dictionary's index.
func (s *Stardict) Index() (*idx.Idx, error) |
DC420/DC137 | DC | false | model-assisted | claude-fable-5-1 | natural | null | fluxergo/fluxergo | 9338f5000983a9934ed167ffda0aef3be6a39ae6 | fluxer/message_create.go | https://github.com/fluxergo/fluxergo/blob/9338f5000983a9934ed167ffda0aef3be6a39ae6/fluxer/message_create.go | 5b6077c74de1fa8e514848ada545855ae4522d5c5ee091c6b1bfa5ba6c8d6898 | Apache-2.0 | fluxergo/fluxergo | 6,635 | 6,717 | // RemoveFlags returns a new MessageCreate with the provided MessageFlags removed. | [
{
"start": 6635,
"end": 6717,
"text": "// RemoveFlags returns a new MessageCreate with the provided MessageFlags removed."
},
{
"start": 6718,
"end": 6789,
"text": "func (m MessageCreate) RemoveFlags(flags ...MessageFlags) MessageCreate"
}
] | // RemoveFlags returns a new MessageCreate with the provided MessageFlags removed.
func (m MessageCreate) RemoveFlags(flags ...MessageFlags) MessageCreate |
DC420/DC138 | DC | true | model-assisted | claude-fable-5-1 | natural | null | Riskified/dynamic-environment | ad957acc7887579eee1bb0ba690f6f41652a7d43 | pkg/handlers/handler.go | https://github.com/Riskified/dynamic-environment/blob/ad957acc7887579eee1bb0ba690f6f41652a7d43/pkg/handlers/handler.go | 6fea644985f2719cb7b7fd3fd52e8789253038d2f04c3483f2ca21b8dd06b579 | Apache-2.0 | Riskified/dynamic-environment | 877 | 923 | // Get the subset unique name for this handler | [
{
"start": 729,
"end": 757,
"text": "type BaseHandler interface {"
},
{
"start": 877,
"end": 923,
"text": "// Get the subset unique name for this handler"
},
{
"start": 925,
"end": 943,
"text": "GetSubset() string"
}
] | type BaseHandler interface {
// Get the subset unique name for this handler
GetSubset() string |
DC420/DC139 | DC | true | model-assisted | claude-fable-5-1 | natural | null | go-generalize/api_gen | 060c54e2b166e9dfc0d6f2c2fbfab3aa11beab0d | pkg/go2json/generate_type.go | https://github.com/go-generalize/api_gen/blob/060c54e2b166e9dfc0d6f2c2fbfab3aa11beab0d/pkg/go2json/generate_type.go | 27ab303a436bd195e315ece7dd8c4fa0bfe56ff8b47863734100d5fc441ae32b | MIT | go-generalize/api_gen | 144 | 169 | // GenerateType mock json | [
{
"start": 144,
"end": 169,
"text": "// GenerateType mock json"
},
{
"start": 170,
"end": 196,
"text": "type GenerateType struct {"
}
] | // GenerateType mock json
type GenerateType struct { |
DC420/DC141 | DC | false | model-assisted | claude-fable-5-1 | natural | null | kbcz1989/tmcg | 568dbb99df169f40c39b6f6887335429e53bbd3e | internal/tmcg/terraform/tf.go | https://github.com/kbcz1989/tmcg/blob/568dbb99df169f40c39b6f6887335429e53bbd3e/internal/tmcg/terraform/tf.go | 6d4c0f0be1b99941c37053eae5b965a3f67e4fd5ef585f8a031c43a5ed14d26c | MIT | kbcz1989/tmcg | 9,353 | 9,431 | // CreateVariablesTF generates the variables.tf file based on resource schemas | [
{
"start": 9353,
"end": 9431,
"text": "// CreateVariablesTF generates the variables.tf file based on resource schemas"
},
{
"start": 9432,
"end": 9588,
"text": "func (t *Tf) CreateVariablesTF(dir string, cleanedSchema map[string]*tfjson.ProviderSchema, resources []tmcgParsing.Resource, d... | // CreateVariablesTF generates the variables.tf file based on resource schemas
func (t *Tf) CreateVariablesTF(dir string, cleanedSchema map[string]*tfjson.ProviderSchema, resources []tmcgParsing.Resource, descAsCommentsFlag bool) error |
DC420/DC142 | DC | false | model-assisted | claude-fable-5-1 | natural | null | mash/osc8wrap | a210d23fac3235d8f29034bd39fc6f8b78d1223d | session_types.go | https://github.com/mash/osc8wrap/blob/a210d23fac3235d8f29034bd39fc6f8b78d1223d/session_types.go | cff00f2434c3b656f9d3adc7033011911e89cc5fc37e47efd943521669574799 | MIT | mash/osc8wrap | 5,260 | 5,385 | // Available reports whether navigation can work at all in this
// environment, with a human-readable reason when it cannot. | [
{
"start": 5053,
"end": 5079,
"text": "type Navigator interface {"
},
{
"start": 5260,
"end": 5385,
"text": "// Available reports whether navigation can work at all in this\n\t// environment, with a human-readable reason when it cannot."
},
{
"start": 5387,
"end": 5413,
"... | type Navigator interface {
// Available reports whether navigation can work at all in this
// environment, with a human-readable reason when it cannot.
Available() (bool, string) |
DC420/DC143 | DC | false | model-assisted | claude-fable-5-1 | natural | null | jsimonetti/rtnetlink | 9498c7a8aec537cfc4efb4ff7e817540415c9069 | driver/vlan.go | https://github.com/jsimonetti/rtnetlink/blob/9498c7a8aec537cfc4efb4ff7e817540415c9069/driver/vlan.go | 789311b3f32873c817059ca6cd4d242393324ea670f76882399d66bb0182259e | MIT | jsimonetti/rtnetlink | 3,067 | 3,116 | // Decode decodes netlink attributes into a Vlan. | [
{
"start": 3067,
"end": 3116,
"text": "// Decode decodes netlink attributes into a Vlan."
},
{
"start": 3117,
"end": 3174,
"text": "func (v *Vlan) Decode(ad *netlink.AttributeDecoder) error"
}
] | // Decode decodes netlink attributes into a Vlan.
func (v *Vlan) Decode(ad *netlink.AttributeDecoder) error |
DC420/DC144 | DC | false | model-assisted | claude-fable-5-1 | natural | null | freiheit-com/kuberpult | 8621cc8a2e9c870502fdb1c463e79b79c8cb8979 | services/manifest-repo-export-service/pkg/repository/repository.go | https://github.com/freiheit-com/kuberpult/blob/8621cc8a2e9c870502fdb1c463e79b79c8cb8979/services/manifest-repo-export-service/pkg/repository/repository.go | 86bc6f33c1db6b0fdfbbaed959d54784984256d15e4755a8f4cd7a0724c472fc | MIT | freiheit-com/kuberpult | 12,041 | 12,092 | // TagPushResult is there just for logging purposes | [
{
"start": 12041,
"end": 12092,
"text": "// TagPushResult is there just for logging purposes"
},
{
"start": 12093,
"end": 12120,
"text": "type TagPushResult struct {"
}
] | // TagPushResult is there just for logging purposes
type TagPushResult struct { |
DC420/DC145 | DC | false | model-assisted | claude-fable-5-1 | natural | null | Unleash/unleash-go-sdk | 8f455141d37a130404e3a3261f4ebd7f8deb34ae | utils.go | https://github.com/Unleash/unleash-go-sdk/blob/8f455141d37a130404e3a3261f4ebd7f8deb34ae/utils.go | 12db267e048623bf0af490d280efb2092e78b1ca9e19eb80159a08748c2ae54e | Apache-2.0 | Unleash/unleash-go-sdk | 1,278 | 1,316 | // Warn logs the warning message once. | [
{
"start": 1278,
"end": 1316,
"text": "// Warn logs the warning message once."
},
{
"start": 1317,
"end": 1357,
"text": "func (wo *WarnOnce) Warn(message string)"
}
] | // Warn logs the warning message once.
func (wo *WarnOnce) Warn(message string) |
DC420/DC146 | DC | false | model-assisted | claude-fable-5-1 | natural | null | btnguyen2k/goyai | 1d2b3fcb2a478172d2d6829dc6593e5c9c8d3084 | impl.go | https://github.com/btnguyen2k/goyai/blob/1d2b3fcb2a478172d2d6829dc6593e5c9c8d3084/impl.go | c236550ca01a1876f9288a9b1363811c58ace3c9d82d8f786d20618a37c7bd3d | MIT | btnguyen2k/goyai | 2,648 | 2,701 | // AvailableLocales implements I18n.AvailableLocales. | [
{
"start": 2648,
"end": 2701,
"text": "// AvailableLocales implements I18n.AvailableLocales."
},
{
"start": 2702,
"end": 2750,
"text": "func (i *Goi18n) AvailableLocales() []LocaleInfo"
}
] | // AvailableLocales implements I18n.AvailableLocales.
func (i *Goi18n) AvailableLocales() []LocaleInfo |
DC420/DC147 | DC | false | model-assisted | claude-fable-5-1 | natural | null | kbcz1989/tmcg | 568dbb99df169f40c39b6f6887335429e53bbd3e | internal/tmcg/parsing/parsing.go | https://github.com/kbcz1989/tmcg/blob/568dbb99df169f40c39b6f6887335429e53bbd3e/internal/tmcg/parsing/parsing.go | 6000bafcb4b7c42a1cc348e70fbce72f8e21deb0bbf36d5cc82d7f24ab984a1c | MIT | kbcz1989/tmcg | 2,387 | 2,473 | // ParseProviders parses and validates provider strings into a map of Provider structs | [
{
"start": 2387,
"end": 2473,
"text": "// ParseProviders parses and validates provider strings into a map of Provider structs"
},
{
"start": 2474,
"end": 2557,
"text": "func (p *Parser) ParseProviders(providerPtrs []string) (map[string]Provider, error)"
}
] | // ParseProviders parses and validates provider strings into a map of Provider structs
func (p *Parser) ParseProviders(providerPtrs []string) (map[string]Provider, error) |
DC420/DC148 | DC | false | model-assisted | claude-fable-5-1 | natural | null | hyperledger-firefly/signer | c215e8a0cb4c011b5050a3c7bd4e4ce59c58bdbd | pkg/abi/abi.go | https://github.com/hyperledger-firefly/signer/blob/c215e8a0cb4c011b5050a3c7bd4e4ce59c58bdbd/pkg/abi/abi.go | dd2bc8d8f223f6cc55e95564bdbd7b0b699cc45b99d49b613feb575dfcef1e95 | Apache-2.0 | hyperledger-firefly/signer | 9,603 | 9,661 | // Parameter is an individual typed parameter input/output | [
{
"start": 9603,
"end": 9661,
"text": "// Parameter is an individual typed parameter input/output"
},
{
"start": 9662,
"end": 9685,
"text": "type Parameter struct {"
}
] | // Parameter is an individual typed parameter input/output
type Parameter struct { |
DC420/DC149 | DC | false | model-assisted | claude-fable-5-1 | natural | null | alexandrevilain/ollama-machine | 232a150a41f644bfda3fa296236d9dee38fbb3ea | pkg/ssh/keygen.go | https://github.com/alexandrevilain/ollama-machine/blob/232a150a41f644bfda3fa296236d9dee38fbb3ea/pkg/ssh/keygen.go | 894e5db684df46c79acb613f7a3ab30d3151072420f87b1a5cd509098fc9a75f | Apache-2.0 | alexandrevilain/ollama-machine | 1,084 | 1,148 | // KeyPairFiles holds the paths to a private & public key files. | [
{
"start": 1084,
"end": 1148,
"text": "// KeyPairFiles holds the paths to a private & public key files."
},
{
"start": 1149,
"end": 1175,
"text": "type KeyPairFiles struct {"
}
] | // KeyPairFiles holds the paths to a private & public key files.
type KeyPairFiles struct { |
DC420/DC150 | DC | false | model-assisted | claude-fable-5-1 | natural | null | btnguyen2k/goyai | 1d2b3fcb2a478172d2d6829dc6593e5c9c8d3084 | message.go | https://github.com/btnguyen2k/goyai/blob/1d2b3fcb2a478172d2d6829dc6593e5c9c8d3084/message.go | 346d392a1c2dc86f5b23c76fd11ce5ad0f96d2550c72e9a29bc49b3d8798fe12 | MIT | btnguyen2k/goyai | 527 | 581 | // Message represents a message that can be localized. | [
{
"start": 527,
"end": 581,
"text": "// Message represents a message that can be localized."
},
{
"start": 582,
"end": 603,
"text": "type Message struct {"
}
] | // Message represents a message that can be localized.
type Message struct { |
DC420/DC151 | DC | true | model-assisted | claude-fable-5-1 | natural | null | jsimonetti/rtnetlink | 9498c7a8aec537cfc4efb4ff7e817540415c9069 | route.go | https://github.com/jsimonetti/rtnetlink/blob/9498c7a8aec537cfc4efb4ff7e817540415c9069/route.go | de46b44ce65bff99313f88b28428f8ae598a5a84e940543c109bee4e0100dc3b | MIT | jsimonetti/rtnetlink | 3,608 | 3,742 | // List matching Route(s). For attributes to be included as part of the match filter the
// netlink connection must be in strict mode. | [
{
"start": 3608,
"end": 3742,
"text": "// List matching Route(s). For attributes to be included as part of the match filter the\n// netlink connection must be in strict mode."
},
{
"start": 3743,
"end": 3818,
"text": "func (r *RouteService) ListMatch(req *RouteMessage) ([]RouteMessage, e... | // List matching Route(s). For attributes to be included as part of the match filter the
// netlink connection must be in strict mode.
func (r *RouteService) ListMatch(req *RouteMessage) ([]RouteMessage, error) |
DC420/DC152 | DC | false | model-assisted | claude-fable-5-1 | natural | null | alexandrevilain/ollama-machine | 232a150a41f644bfda3fa296236d9dee38fbb3ea | pkg/provider/types.go | https://github.com/alexandrevilain/ollama-machine/blob/232a150a41f644bfda3fa296236d9dee38fbb3ea/pkg/provider/types.go | 4b5a0d6b2a64110a262ce1ed06b5b9adfd66d75f5a578accccea472a618844e8 | Apache-2.0 | alexandrevilain/ollama-machine | 1,969 | 2,016 | // Get retrieves the machine with the given ID. | [
{
"start": 1304,
"end": 1335,
"text": "type MachineManager interface {"
},
{
"start": 1969,
"end": 2016,
"text": "// Get retrieves the machine with the given ID."
},
{
"start": 2018,
"end": 2071,
"text": "Get(ctx context.Context, id string) (*Machine, error)"
}
] | type MachineManager interface {
// Get retrieves the machine with the given ID.
Get(ctx context.Context, id string) (*Machine, error) |
DC420/DC153 | DC | false | model-assisted | claude-fable-5-1 | natural | null | RocksLabs/kvrocks_exporter | cfb7efb37d3850683f3c81acddf2d4a05a610787 | exporter/exporter.go | https://github.com/RocksLabs/kvrocks_exporter/blob/cfb7efb37d3850683f3c81acddf2d4a05a610787/exporter/exporter.go | 54effeef6dd6308718e37f263cbaf66b58bf0e189377006f30cdcbac7c54b827 | MIT | RocksLabs/kvrocks_exporter | 10,265 | 10,311 | // Describe outputs Redis metric descriptions. | [
{
"start": 10265,
"end": 10311,
"text": "// Describe outputs Redis metric descriptions."
},
{
"start": 10312,
"end": 10367,
"text": "func (e *Exporter) Describe(ch chan<- *prometheus.Desc)"
}
] | // Describe outputs Redis metric descriptions.
func (e *Exporter) Describe(ch chan<- *prometheus.Desc) |
DC420/DC154 | DC | false | model-assisted | claude-fable-5-1 | natural | null | kyma-project/cli | ad83cf1a629e00971f64dd96cabd5a4fcad73cfe | internal/cmdcommon/types/env.go | https://github.com/kyma-project/cli/blob/ad83cf1a629e00971f64dd96cabd5a4fcad73cfe/internal/cmdcommon/types/env.go | e60a3f6fb189e66f0b05ecdd621ea54c6c10ccc050be2a2f7516c14540bde802 | Apache-2.0 | kyma-project/cli | 312 | 374 | // SetValue sets the value of the NullableString from a string | [
{
"start": 312,
"end": 374,
"text": "// SetValue sets the value of the NullableString from a string"
},
{
"start": 375,
"end": 421,
"text": "func (e *EnvMap) SetValue(value *string) error"
}
] | // SetValue sets the value of the NullableString from a string
func (e *EnvMap) SetValue(value *string) error |
DC420/DC156 | DC | false | model-assisted | claude-fable-5-1 | natural | null | freiheit-com/kuberpult | 8621cc8a2e9c870502fdb1c463e79b79c8cb8979 | tests/kind-brackets/ops.go | https://github.com/freiheit-com/kuberpult/blob/8621cc8a2e9c870502fdb1c463e79b79c8cb8979/tests/kind-brackets/ops.go | 62f4b603029ecbdc97c3f65d854ff430673f8ca1ea9b27622a48044fb321bc2d | MIT | freiheit-com/kuberpult | 2,127 | 2,195 | // HelmUpgradeParams configures bracket settings for a helm upgrade. | [
{
"start": 2127,
"end": 2195,
"text": "// HelmUpgradeParams configures bracket settings for a helm upgrade."
},
{
"start": 2196,
"end": 2227,
"text": "type HelmUpgradeParams struct {"
}
] | // HelmUpgradeParams configures bracket settings for a helm upgrade.
type HelmUpgradeParams struct { |
DC420/DC157 | DC | false | model-assisted | claude-fable-5-1 | natural | null | adubovskoy/tbook_converter | a7f61cf87c9f3319460cc4a16467bad06db1d788 | internal/gui/paths/paths.go | https://github.com/adubovskoy/tbook_converter/blob/a7f61cf87c9f3319460cc4a16467bad06db1d788/internal/gui/paths/paths.go | 015f08afe3c80e7a30cc9f87e658e1c0df93617b011d6281111066f844226571 | MIT | adubovskoy/tbook_converter | 1,789 | 1,834 | // Cache is the shared converter --cache-dir. | [
{
"start": 1789,
"end": 1834,
"text": "// Cache is the shared converter --cache-dir."
},
{
"start": 1835,
"end": 1863,
"text": "func (d Dirs) Cache() string"
}
] | // Cache is the shared converter --cache-dir.
func (d Dirs) Cache() string |
DC420/DC158 | DC | false | model-assisted | claude-fable-5-1 | natural | null | shlin168/go-nvd | 21d8c0da4b600f0598ead6b6691178d8a4e547a0 | nvd/client.go | https://github.com/shlin168/go-nvd/blob/21d8c0da4b600f0598ead6b6691178d8a4e547a0/nvd/client.go | 91ac6467b9cbcc4b0e9697c794deccc823b9627335d5ba05d74b59c40f69a19f | MIT | shlin168/go-nvd | 2,897 | 2,937 | // Client is the client to query NVD API | [
{
"start": 2897,
"end": 2937,
"text": "// Client is the client to query NVD API"
},
{
"start": 2938,
"end": 2958,
"text": "type Client struct {"
}
] | // Client is the client to query NVD API
type Client struct { |
DC420/DC160 | DC | false | model-assisted | claude-fable-5-1 | natural | null | alexandrevilain/ollama-machine | 232a150a41f644bfda3fa296236d9dee38fbb3ea | pkg/connectivity/public.go | https://github.com/alexandrevilain/ollama-machine/blob/232a150a41f644bfda3fa296236d9dee38fbb3ea/pkg/connectivity/public.go | 08aaaff309c229b5891cc6dea1dd84ca1353afb04d953e40d43c467627c9382c | Apache-2.0 | alexandrevilain/ollama-machine | 1,068 | 1,109 | // Name returns the name of the provider. | [
{
"start": 1068,
"end": 1109,
"text": "// Name returns the name of the provider."
},
{
"start": 1110,
"end": 1148,
"text": "func (p *PublicProvider) Name() string"
}
] | // Name returns the name of the provider.
func (p *PublicProvider) Name() string |
DC420/DC161 | DC | false | model-assisted | claude-fable-5-1 | natural | null | GoogleCloudPlatform/docker-credential-gcr | f230219543535d6083538a989019b942373cc27e | store/store.go | https://github.com/GoogleCloudPlatform/docker-credential-gcr/blob/f230219543535d6083538a989019b942373cc27e/store/store.go | 16e571de2be59d4499bd69d4b01935ba1b248fb9129cb6b060c899436cddc229 | Apache-2.0 | GoogleCloudPlatform/docker-credential-gcr | 2,756 | 2,825 | // GetGCRAuth creates an GCRAuth for the currently signed-in account. | [
{
"start": 2756,
"end": 2825,
"text": "// GetGCRAuth creates an GCRAuth for the currently signed-in account."
},
{
"start": 2826,
"end": 2876,
"text": "func (s *credStore) GetGCRAuth() (*GCRAuth, error)"
}
] | // GetGCRAuth creates an GCRAuth for the currently signed-in account.
func (s *credStore) GetGCRAuth() (*GCRAuth, error) |
DC420/DC162 | DC | false | model-assisted | claude-fable-5-1 | natural | null | 6enta0/CPAplus | 0662b85a1af87fe9dbafafb8773ed8edce51cdc3 | internal/api/handlers/management/handler.go | https://github.com/6enta0/CPAplus/blob/0662b85a1af87fe9dbafafb8773ed8edce51cdc3/internal/api/handlers/management/handler.go | a858e1e0ef71b30d96f3e1c102b729587abc262a8892bc9e22d1d3d1b54ef8fe | MIT | 0xAstroAlpha/cliProxyAPI-Dashboard | 3,485 | 3,567 | // SetAuthManager updates the auth manager reference used by management endpoints. | [
{
"start": 3485,
"end": 3567,
"text": "// SetAuthManager updates the auth manager reference used by management endpoints."
},
{
"start": 3568,
"end": 3627,
"text": "func (h *Handler) SetAuthManager(manager *coreauth.Manager)"
}
] | // SetAuthManager updates the auth manager reference used by management endpoints.
func (h *Handler) SetAuthManager(manager *coreauth.Manager) |
DC420/DC163 | DC | false | model-assisted | claude-fable-5-1 | natural | null | KaotoIO/kaoto-operator | e9e7e0c3e2cdf957dbab39fd78daf8aa94489682 | internal/controller/designer/kaoto_controller.go | https://github.com/KaotoIO/kaoto-operator/blob/e9e7e0c3e2cdf957dbab39fd78daf8aa94489682/internal/controller/designer/kaoto_controller.go | fe7d0da4c4eb0d585d75e5d46811f271e604a1f9b3dd2bdf5eae7e547a8e9a57 | Apache-2.0 | KaotoIO/kaoto-operator | 2,990 | 3,050 | // SetupWithManager sets up the controller with the Manager. | [
{
"start": 2990,
"end": 3050,
"text": "// SetupWithManager sets up the controller with the Manager."
},
{
"start": 3051,
"end": 3138,
"text": "func (r *KaotoReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error"
}
] | // SetupWithManager sets up the controller with the Manager.
func (r *KaotoReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error |
DC420/DC165 | DC | false | model-assisted | claude-fable-5-1 | natural | null | int128/argocd-commenter | d54aeb8c9ce34214ae8c9dd67adaeb76999eeb19 | internal/controller/applicationhealthcomment_controller.go | https://github.com/int128/argocd-commenter/blob/d54aeb8c9ce34214ae8c9dd67adaeb76999eeb19/internal/controller/applicationhealthcomment_controller.go | ca404335a207cbb126a89c25f32cb81fe3883d0433e56b09ee6d90975cd4078a | Apache-2.0 | int128/argocd-commenter | 5,822 | 5,882 | // SetupWithManager sets up the controller with the Manager. | [
{
"start": 5822,
"end": 5882,
"text": "// SetupWithManager sets up the controller with the Manager."
},
{
"start": 5883,
"end": 5968,
"text": "func (r *ApplicationHealthCommentReconciler) SetupWithManager(mgr ctrl.Manager) error"
}
] | // SetupWithManager sets up the controller with the Manager.
func (r *ApplicationHealthCommentReconciler) SetupWithManager(mgr ctrl.Manager) error |
DC420/DC166 | DC | false | model-assisted | claude-fable-5-1 | natural | null | kube-logging/telemetry-controller | cb05e857d64e75272a088fb8f2107893403be56f | api/telemetry/v1alpha1/tenant_types.go | https://github.com/kube-logging/telemetry-controller/blob/cb05e857d64e75272a088fb8f2107893403be56f/api/telemetry/v1alpha1/tenant_types.go | f8289de361bcf1ef183f99766277f686038cd163555748111eb23ab87c59af00 | Apache-2.0 | kube-logging/telemetry-controller | 5,804 | 5,856 | // TenantStatus defines the observed state of Tenant | [
{
"start": 5804,
"end": 5856,
"text": "// TenantStatus defines the observed state of Tenant"
},
{
"start": 5857,
"end": 5883,
"text": "type TenantStatus struct {"
}
] | // TenantStatus defines the observed state of Tenant
type TenantStatus struct { |
DC420/DC167 | DC | false | model-assisted | claude-fable-5-1 | natural | null | kube-logging/telemetry-controller | cb05e857d64e75272a088fb8f2107893403be56f | api/telemetry/v1alpha1/collector_types.go | https://github.com/kube-logging/telemetry-controller/blob/cb05e857d64e75272a088fb8f2107893403be56f/api/telemetry/v1alpha1/collector_types.go | fe87f292a49ff487ff7682f59dff0a7016108848847f1108e56713fb30fb292e | Apache-2.0 | kube-logging/telemetry-controller | 5,718 | 5,776 | // CollectorStatus defines the observed state of Collector | [
{
"start": 5718,
"end": 5776,
"text": "// CollectorStatus defines the observed state of Collector"
},
{
"start": 5777,
"end": 5806,
"text": "type CollectorStatus struct {"
}
] | // CollectorStatus defines the observed state of Collector
type CollectorStatus struct { |
DC420/DC168 | DC | false | model-assisted | claude-fable-5-1 | natural | null | ruaan-deysel/unraid-management-agent | 649428b3d724138f21a0a0310fa9ec7b2c111a16 | daemon/dto/system.go | https://github.com/ruaan-deysel/unraid-management-agent/blob/649428b3d724138f21a0a0310fa9ec7b2c111a16/daemon/dto/system.go | 3cbf986aefd9f0ff527542f037f0bb967b292abc22852d11a10bd748eed782ce | MIT | ruaan-deysel/unraid-management-agent | 3,344 | 3,385 | // FanInfo contains fan speed information | [
{
"start": 3344,
"end": 3385,
"text": "// FanInfo contains fan speed information"
},
{
"start": 3386,
"end": 3407,
"text": "type FanInfo struct {"
}
] | // FanInfo contains fan speed information
type FanInfo struct { |
DC420/DC169 | DC | false | model-assisted | claude-fable-5-1 | natural | null | SpellingDragon/wechat-robot-go | 8c75994231c76678da570fc875d8a9d781ce9383 | wechat/internal/model/message.go | https://github.com/SpellingDragon/wechat-robot-go/blob/8c75994231c76678da570fc875d8a9d781ce9383/wechat/internal/model/message.go | 8b31d82b9cafd82ff10db9993684abe349ad0a435b7ca928c3739712aa3e97f6 | MIT | SpellingDragon/wechat-robot-go | 7,399 | 7,469 | // GetUpdatesResponse is the response from POST /ilink/bot/getupdates. | [
{
"start": 7399,
"end": 7469,
"text": "// GetUpdatesResponse is the response from POST /ilink/bot/getupdates."
},
{
"start": 7470,
"end": 7502,
"text": "type GetUpdatesResponse struct {"
}
] | // GetUpdatesResponse is the response from POST /ilink/bot/getupdates.
type GetUpdatesResponse struct { |
DC420/DC170 | DC | true | model-assisted | claude-fable-5-1 | natural | null | ksamirdev/schedy | 7b2eef57a378af7ba967662a01d2435cdd0fc050 | internal/api/handler.go | https://github.com/ksamirdev/schedy/blob/7b2eef57a378af7ba967662a01d2435cdd0fc050/internal/api/handler.go | 3e197ce581cc2df31377d3ba220720ed1111dba0d4cc60fb8bd175adf1b4ae36 | MIT | ksamirdev/schedy | 1,281 | 1,311 | // Middleware to check API key | [
{
"start": 1281,
"end": 1311,
"text": "// Middleware to check API key"
},
{
"start": 1312,
"end": 1378,
"text": "func (h *Handler) WithAuth(next http.HandlerFunc) http.HandlerFunc"
}
] | // Middleware to check API key
func (h *Handler) WithAuth(next http.HandlerFunc) http.HandlerFunc |
DC420/DC171 | DC | false | model-assisted | claude-fable-5-1 | natural | null | glycerine/greenpack | fb68ca6c21f04c15747112ec142c55e8c04a4b59 | msgp/circular.go | https://github.com/glycerine/greenpack/blob/fb68ca6c21f04c15747112ec142c55e8c04a4b59/msgp/circular.go | eee036398e6876ce358ef25306a5f4e17e1e19b3ecbaeaf4e9e596ed0e94ad17 | MIT | glycerine/greenpack | 410 | 569 | // Read implements io.Reader. In practice, it
// always returns (len(p), nil), although it
// fills the supplied slice while the benchmark
// timer is stopped. | [
{
"start": 410,
"end": 569,
"text": "// Read implements io.Reader. In practice, it\n// always returns (len(p), nil), although it\n// fills the supplied slice while the benchmark\n// timer is stopped."
},
{
"start": 570,
"end": 621,
"text": "func (c *EndlessReader) Read(p []byte) (int, er... | // Read implements io.Reader. In practice, it
// always returns (len(p), nil), although it
// fills the supplied slice while the benchmark
// timer is stopped.
func (c *EndlessReader) Read(p []byte) (int, error) |
DC420/DC172 | DC | true | model-assisted | claude-fable-5-1 | natural | null | fengjx/lucky | 4a871ae2b30e843082f202056a447220612ea323 | logic/sys/internal/protocol/app.go | https://github.com/fengjx/lucky/blob/4a871ae2b30e843082f202056a447220612ea323/logic/sys/internal/protocol/app.go | e8bdbb650bff54212c4cde3cc0b50be965156f56008f9595e0a973d656760646 | MIT | fengjx/lucky | 69 | 96 | // AppDataResp 配置数据 | [
{
"start": 69,
"end": 96,
"text": "// AppDataResp 配置数据"
},
{
"start": 97,
"end": 122,
"text": "type AppDataResp struct {"
}
] | // AppDataResp 配置数据
type AppDataResp struct { |
DC420/DC173 | DC | false | model-assisted | claude-fable-5-1 | natural | null | michimani/gotwi | 86b19e67adbdcec6c19456697b26e0c7d0ebbb76 | space/spacelookup/types/parameter.go | https://github.com/michimani/gotwi/blob/86b19e67adbdcec6c19456697b26e0c7d0ebbb76/space/spacelookup/types/parameter.go | 46e328eff6b5e6b90216a9b964b83d461eef4a0b64600969258647f44062edf8 | MIT | michimani/gotwi | 1,183 | 1,248 | // ListInput is struct of parameters
// for request GET /2/spaces | [
{
"start": 1183,
"end": 1248,
"text": "// ListInput is struct of parameters\n// for request GET /2/spaces"
},
{
"start": 1249,
"end": 1272,
"text": "type ListInput struct {"
}
] | // ListInput is struct of parameters
// for request GET /2/spaces
type ListInput struct { |
DC420/DC174 | DC | false | model-assisted | claude-fable-5-1 | natural | null | splunk/vault-plugin-secrets-artifactory | 238e81109b9520d38140673c811f7fee0544a214 | plugin/backend.go | https://github.com/splunk/vault-plugin-secrets-artifactory/blob/238e81109b9520d38140673c811f7fee0544a214/plugin/backend.go | 6f40d89b866e5801961040e291e38f6c6acbdf7285a50ecfdb1683383b9b99e8 | Apache-2.0 | splunk/vault-plugin-secrets-artifactory | 800 | 859 | // ArtifactoryBackend is the backend for artifactory plugin | [
{
"start": 800,
"end": 859,
"text": "// ArtifactoryBackend is the backend for artifactory plugin"
},
{
"start": 860,
"end": 892,
"text": "type ArtifactoryBackend struct {"
}
] | // ArtifactoryBackend is the backend for artifactory plugin
type ArtifactoryBackend struct { |
DC420/DC175 | DC | false | model-assisted | claude-fable-5-1 | natural | null | Ret2Hell/jiratui | e93ba58a81dd6bbcdd901d9eee038d8c3d088967 | internal/tasksave/journal.go | https://github.com/Ret2Hell/jiratui/blob/e93ba58a81dd6bbcdd901d9eee038d8c3d088967/internal/tasksave/journal.go | eaa2b1e9efe80686238bfa6e9849e6a98b3cae1a8cb372de4f55da38ea37ce76 | MIT | Ret2Hell/jiratui | 712 | 762 | // Draft is the user's intended Jira task content. | [
{
"start": 712,
"end": 762,
"text": "// Draft is the user's intended Jira task content."
},
{
"start": 763,
"end": 782,
"text": "type Draft struct {"
}
] | // Draft is the user's intended Jira task content.
type Draft struct { |
DC420/DC176 | DC | false | model-assisted | claude-fable-5-1 | natural | null | gden173/geotiff | d51586b98e5bca970cdbacfa4901e0fb20e3c8a8 | geotiff/reader.go | https://github.com/gden173/geotiff/blob/d51586b98e5bca970cdbacfa4901e0fb20e3c8a8/geotiff/reader.go | 36622c314133f4a9d01ad205020c6f8d24cd3ad555d867f4c684c69ac8863226 | MIT | gden173/geotiff | 20,950 | 21,015 | // Contains checks if a point falls inside the corner coordinates | [
{
"start": 20950,
"end": 21015,
"text": "// Contains checks if a point falls inside the corner coordinates"
},
{
"start": 21016,
"end": 21066,
"text": "func (cc CornerCoordinates) Contains(p Point) bool"
}
] | // Contains checks if a point falls inside the corner coordinates
func (cc CornerCoordinates) Contains(p Point) bool |
DC420/DC177 | DC | false | model-assisted | claude-fable-5-1 | natural | null | earthboundkid/resperr | 6e65c183797e6f2bc0c9d6e188ea0f5b506ce564 | e.go | https://github.com/earthboundkid/resperr/blob/6e65c183797e6f2bc0c9d6e188ea0f5b506ce564/e.go | 9defb04efc3e2970f6c983c089bea158b5f1c1c330b5695e92828a9ff9f7d9c0 | MIT | earthboundkid/resperr | 65 | 118 | // E is a simple struct for building response errors. | [
{
"start": 65,
"end": 118,
"text": "// E is a simple struct for building response errors."
},
{
"start": 119,
"end": 134,
"text": "type E struct {"
}
] | // E is a simple struct for building response errors.
type E struct { |
DC420/DC178 | DC | true | model-assisted | claude-fable-5-1 | natural | null | douyu/jupiter-examples | 5a52e465368ab7ac2a647bc9ac5a5f2940b03bdc | uuid/internal/app/uuidserver/service/service.go | https://github.com/douyu/jupiter-examples/blob/5a52e465368ab7ac2a647bc9ac5a5f2940b03bdc/uuid/internal/app/uuidserver/service/service.go | 564544e499067e8e0a206e1d4e6960d7f19ecf9ba6c9567868ea1ad1720baf58 | Apache-2.0 | douyu/jupiter-examples | 386 | 408 | // Options wireservice | [
{
"start": 386,
"end": 408,
"text": "// Options wireservice"
},
{
"start": 409,
"end": 430,
"text": "type Options struct {"
}
] | // Options wireservice
type Options struct { |
DC420/DC179 | DC | false | model-assisted | claude-fable-5-1 | natural | null | StencilFrame/autopilot | 56a6fcad13d9484c91591acd5c0a87c68fcd3e05 | pkg/core/context.go | https://github.com/StencilFrame/autopilot/blob/56a6fcad13d9484c91591acd5c0a87c68fcd3e05/pkg/core/context.go | e2e94163b6a03a08034fe4ac43fa7604cd5761d86fed7246315a0b713433ae8c | Apache-2.0 | StencilFrame/autopilot | 364 | 402 | // Set sets a variable in the context. | [
{
"start": 364,
"end": 402,
"text": "// Set sets a variable in the context."
},
{
"start": 403,
"end": 455,
"text": "func (c *Context) Set(key string, value interface{})"
}
] | // Set sets a variable in the context.
func (c *Context) Set(key string, value interface{}) |
DC420/DC180 | DC | true | model-assisted | claude-fable-5-1 | natural | null | SparebankenVest/azure-key-vault-to-kubernetes | 4d59110a73aa8caed8a6f5b7cecb5a7b12a67432 | pkg/docker/registry/registry.go | https://github.com/SparebankenVest/azure-key-vault-to-kubernetes/blob/4d59110a73aa8caed8a6f5b7cecb5a7b12a67432/pkg/docker/registry/registry.go | 822768ee6b3b28b1c2468707b8bee88d96cbca8ec9f722bb23e5e78edff5e35d | Apache-2.0 | SparebankenVest/azure-key-vault-to-kubernetes | 1,588 | 1,604 | // Registry impl | [
{
"start": 1588,
"end": 1604,
"text": "// Registry impl"
},
{
"start": 1605,
"end": 1627,
"text": "type Registry struct {"
}
] | // Registry impl
type Registry struct { |
DC420/DC181 | DC | true | model-assisted | claude-fable-5-1 | natural | null | timtatt/sift | d2784171924a80e18e56696d8285b5a73d597199 | internal/tests/test_manager.go | https://github.com/timtatt/sift/blob/d2784171924a80e18e56696d8285b5a73d597199/internal/tests/test_manager.go | 807b50be329d72369a7cab08218f5b25777bfcd105f5874e7bbe6b1382195907 | MIT | timtatt/sift | 1,342 | 1,377 | // JSON output from `go test -json` | [
{
"start": 1342,
"end": 1377,
"text": "// JSON output from `go test -json`"
},
{
"start": 1378,
"end": 1406,
"text": "type TestOutputLine struct {"
}
] | // JSON output from `go test -json`
type TestOutputLine struct { |
DC420/DC182 | DC | true | model-assisted | claude-fable-5-1 | natural | null | bcspragu/stronk | 5bf7dd86c142e71dab5a505667cb27832ab74d20 | stronk.go | https://github.com/bcspragu/stronk/blob/5bf7dd86c142e71dab5a505667cb27832ab74d20/stronk.go | 8ff5063f375e5dec270ca1b5f74566fcd63911fa5e06bf8652ccce80e0fa9cee | MIT | bcspragu/stronk | 3,919 | 3,991 | // Database routine types - these represent the stored routine structure | [
{
"start": 3919,
"end": 3991,
"text": "// Database routine types - these represent the stored routine structure"
},
{
"start": 3992,
"end": 4019,
"text": "type StoredRoutine struct {"
}
] | // Database routine types - these represent the stored routine structure
type StoredRoutine struct { |
DC420/DC183 | DC | false | model-assisted | claude-fable-5-1 | natural | null | embrace-io/s3-batch-object-store | e33c5b508eb1cb86645a153f07ea9b9ce5df5b85 | temp_file.go | https://github.com/embrace-io/s3-batch-object-store/blob/e33c5b508eb1cb86645a153f07ea9b9ce5df5b85/temp_file.go | 7c6bfb7d35f96a96975fb4dd930204a454eb03b06cab225f20a11cde7926b941 | Apache-2.0 | embrace-io/s3-batch-object-store | 4,023 | 4,088 | // MetaFileKey returns the key to be used for the json meta file | [
{
"start": 4023,
"end": 4088,
"text": "// MetaFileKey returns the key to be used for the json meta file"
},
{
"start": 4089,
"end": 4131,
"text": "func (f *TempFile[K]) MetaFileKey() string"
}
] | // MetaFileKey returns the key to be used for the json meta file
func (f *TempFile[K]) MetaFileKey() string |
DC420/DC184 | DC | false | model-assisted | claude-fable-5-1 | natural | null | ichenhe/syncthing-hook | a011bbd2f46b23b746b4388a7b70a9abd7a3fd18 | domain/evhandler.go | https://github.com/ichenhe/syncthing-hook/blob/a011bbd2f46b23b746b4388a7b70a9abd7a3fd18/domain/evhandler.go | 1d53f3c4bec359b208eb55f5812d2a9eec75f18975002f45e4702be57d119da4 | MIT | ichenhe/syncthing-hook | 401 | 586 | // Destroy will be called when the handler will not be used anymore.
// Typically, it should cancel any ongoing coroutines or release other resources.
//
// Do not call next handler. | [
{
"start": 221,
"end": 250,
"text": "type EventHandler interface {"
},
{
"start": 401,
"end": 586,
"text": "// Destroy will be called when the handler will not be used anymore.\n\t// Typically, it should cancel any ongoing coroutines or release other resources.\n\t//\n\t// Do not call ne... | type EventHandler interface {
// Destroy will be called when the handler will not be used anymore.
// Typically, it should cancel any ongoing coroutines or release other resources.
//
// Do not call next handler.
Destroy() |
DC420/DC185 | DC | false | model-assisted | claude-fable-5-1 | natural | null | gotd/tl | c7bf2f1a0dcc3e5d151cbad486a349ddd3f7bcc0 | definition.go | https://github.com/gotd/tl/blob/c7bf2f1a0dcc3e5d151cbad486a349ddd3f7bcc0/definition.go | b1b98df3ab3e2db3ef0485c54c6bd319be8573e279f30a859b60a28c4aacb743 | MIT | gotd/tl | 1,347 | 1,422 | // Parse TL definition line like `foo#123 code:int name:string = Message;`. | [
{
"start": 1347,
"end": 1422,
"text": "// Parse TL definition line like `foo#123 code:int name:string = Message;`."
},
{
"start": 1423,
"end": 1468,
"text": "func (d *Definition) Parse(line string) error"
}
] | // Parse TL definition line like `foo#123 code:int name:string = Message;`.
func (d *Definition) Parse(line string) error |
DC420/DC186 | DC | false | model-assisted | claude-fable-5-1 | natural | null | cloudmanic/herdr-plus | f38df3570bea8f7ca71dc1ba11bce3b123d14402 | action.go | https://github.com/cloudmanic/herdr-plus/blob/f38df3570bea8f7ca71dc1ba11bce3b123d14402/action.go | fca2a34ba1389503b09d1431a37019732d0bbc68c2bf4fcb8c0b8346293ac823 | MIT | cloudmanic/herdr-plus | 2,844 | 2,910 | // FormConfig customizes the text field shown for a "form" action. | [
{
"start": 2844,
"end": 2910,
"text": "// FormConfig customizes the text field shown for a \"form\" action."
},
{
"start": 2911,
"end": 2935,
"text": "type FormConfig struct {"
}
] | // FormConfig customizes the text field shown for a "form" action.
type FormConfig struct { |
DC420/DC187 | DC | false | model-assisted | claude-fable-5-1 | natural | null | ichenhe/syncthing-hook | a011bbd2f46b23b746b4388a7b70a9abd7a3fd18 | utils/safechan/safechannel.go | https://github.com/ichenhe/syncthing-hook/blob/a011bbd2f46b23b746b4388a7b70a9abd7a3fd18/utils/safechan/safechannel.go | a56a7670b7c9b707a4d6aafb106c71742c84328603a01d980a4a64af75d35a69 | MIT | ichenhe/syncthing-hook | 207 | 251 | // OutCh returns a native read-only channel. | [
{
"start": 207,
"end": 251,
"text": "// OutCh returns a native read-only channel."
},
{
"start": 252,
"end": 293,
"text": "func (c *SafeChannel[T]) OutCh() <-chan T"
}
] | // OutCh returns a native read-only channel.
func (c *SafeChannel[T]) OutCh() <-chan T |
DC420/DC188 | DC | false | model-assisted | claude-fable-5-1 | natural | null | tink-crypto/tink-go-gcpkms | cc1762791b8a78382a880c5e48b8064528d57c15 | integration/gcpkms/gcp_kms_grpc_mac.go | https://github.com/tink-crypto/tink-go-gcpkms/blob/cc1762791b8a78382a880c5e48b8064528d57c15/integration/gcpkms/gcp_kms_grpc_mac.go | 109eaa0f54ed17ff29df35601789d61242b7681f1dd75be1c0221a864944ce30 | Apache-2.0 | tink-crypto/tink-go-gcpkms | 2,814 | 2,874 | // VerifyMAC verifies whether mac is a correct MAC for data. | [
{
"start": 2814,
"end": 2874,
"text": "// VerifyMAC verifies whether mac is a correct MAC for data."
},
{
"start": 2875,
"end": 2926,
"text": "func (m *GRPCMAC) VerifyMAC(mac, data []byte) error"
}
] | // VerifyMAC verifies whether mac is a correct MAC for data.
func (m *GRPCMAC) VerifyMAC(mac, data []byte) error |
DC420/DC189 | DC | false | model-assisted | claude-fable-5-1 | natural | null | boltrunner/gcli2api | 6071bf6ae25e5d4819f3ab2d544324524e02c3d1 | internal/server/middleware.go | https://github.com/boltrunner/gcli2api/blob/6071bf6ae25e5d4819f3ab2d544324524e02c3d1/internal/server/middleware.go | 4fae9fb2d2a80a438587af65f4603748e006650c9273af5bd411a46cf9f8047e | MIT | boltrunner/gcli2api | 327 | 406 | // Flush implements http.Flusher by forwarding to the underlying ResponseWriter | [
{
"start": 327,
"end": 406,
"text": "// Flush implements http.Flusher by forwarding to the underlying ResponseWriter"
},
{
"start": 407,
"end": 440,
"text": "func (rw *responseWriter) Flush()"
}
] | // Flush implements http.Flusher by forwarding to the underlying ResponseWriter
func (rw *responseWriter) Flush() |
DC420/DC190 | DC | false | model-assisted | claude-fable-5-1 | natural | null | getlago/lago-go-client | 557cd20cf667b0ecf8140b813cab72d4ca473441 | error.go | https://github.com/getlago/lago-go-client/blob/557cd20cf667b0ecf8140b813cab72d4ca473441/error.go | 4950753a8f7dba6185ae8b1266cc6e0feff778f67cccaa64aa77dde7a2b0c719 | MIT | getlago/lago-go-client | 2,856 | 2,924 | // Error returns a JSON string representation of the RateLimitError. | [
{
"start": 2856,
"end": 2924,
"text": "// Error returns a JSON string representation of the RateLimitError."
},
{
"start": 2925,
"end": 2963,
"text": "func (e RateLimitError) Error() string"
}
] | // Error returns a JSON string representation of the RateLimitError.
func (e RateLimitError) Error() string |
DC420/DC191 | DC | false | model-assisted | claude-fable-5-1 | natural | null | hackclub/arker | f9f14b66b42b5e3938fee93b5399b56f17e9654a | internal/workers/archive_worker.go | https://github.com/hackclub/arker/blob/f9f14b66b42b5e3938fee93b5399b56f17e9654a/internal/workers/archive_worker.go | 7052b862e1438770ac32261c89d6ea28be8930365932705019aca2bfd577043b | MIT | hackclub/arker | 328 | 397 | // ArchiveJobArgs represents the payload for an archive job in River. | [
{
"start": 328,
"end": 397,
"text": "// ArchiveJobArgs represents the payload for an archive job in River."
},
{
"start": 398,
"end": 426,
"text": "type ArchiveJobArgs struct {"
}
] | // ArchiveJobArgs represents the payload for an archive job in River.
type ArchiveJobArgs struct { |
DC420/DC192 | DC | false | model-assisted | claude-fable-5-1 | natural | null | ksamirdev/schedy | 7b2eef57a378af7ba967662a01d2435cdd0fc050 | internal/executor/executor.go | https://github.com/ksamirdev/schedy/blob/7b2eef57a378af7ba967662a01d2435cdd0fc050/internal/executor/executor.go | 9adbe670a66e9740245178664d18189dbc2fecb6c33ed1c3fe2727e485cbd333 | MIT | ksamirdev/schedy | 424 | 478 | // Result is the outcome of a single delivery attempt. | [
{
"start": 424,
"end": 478,
"text": "// Result is the outcome of a single delivery attempt."
},
{
"start": 479,
"end": 499,
"text": "type Result struct {"
}
] | // Result is the outcome of a single delivery attempt.
type Result struct { |
DC420/DC193 | DC | false | model-assisted | claude-fable-5-1 | natural | null | ipfs-shipyard/nopfs | 9f5e735ad88065efc6d7947ce8008d83cc828ed0 | ipfs/namesys.go | https://github.com/ipfs-shipyard/nopfs/blob/9f5e735ad88065efc6d7947ce8008d83cc828ed0/ipfs/namesys.go | 7643b5c686537fe3a9d6aee7be39999146e88c00bb5e55e97b63f513fc2316fa | Apache-2.0 | ipfs-shipyard/nopfs | 230 | 300 | // NameSystem implements a blocking namesys.NameSystem implementation. | [
{
"start": 230,
"end": 300,
"text": "// NameSystem implements a blocking namesys.NameSystem implementation."
},
{
"start": 301,
"end": 325,
"text": "type NameSystem struct {"
}
] | // NameSystem implements a blocking namesys.NameSystem implementation.
type NameSystem struct { |
DC420/DC194 | DC | false | model-assisted | claude-fable-5-1 | natural | null | JetBrains/teamcity-cli | f9f1a7c606f885e735fefee56d6c8eb321ad397f | internal/output/printer.go | https://github.com/JetBrains/teamcity-cli/blob/f9f1a7c606f885e735fefee56d6c8eb321ad397f/internal/output/printer.go | 2fbd06ed288748ed2f312c3c57d500222890ccb10361300c79f9c2fe02a2c428 | Apache-2.0 | JetBrains/teamcity-cli | 81 | 147 | // Printer writes formatted output respecting Quiet/Verbose flags. | [
{
"start": 81,
"end": 147,
"text": "// Printer writes formatted output respecting Quiet/Verbose flags."
},
{
"start": 148,
"end": 169,
"text": "type Printer struct {"
}
] | // Printer writes formatted output respecting Quiet/Verbose flags.
type Printer struct { |
DC420/DC195 | DC | false | model-assisted | claude-fable-5-1 | natural | null | mlihgenel/docufy | cdaa722dcf6f268acfdde5aa1faf48cf37074b5d | internal/watch/watcher.go | https://github.com/mlihgenel/docufy/blob/cdaa722dcf6f268acfdde5aa1faf48cf37074b5d/internal/watch/watcher.go | 20e11975f91b287687b16b9ca83d48957c9fa8a16369de2e708e6f1eee61de5c | MIT | mlihgenel/docufy | 3,091 | 3,132 | // Close polling backend için no-op'tur. | [
{
"start": 3091,
"end": 3132,
"text": "// Close polling backend için no-op'tur."
},
{
"start": 3133,
"end": 3164,
"text": "func (w *Watcher) Close() error"
}
] | // Close polling backend için no-op'tur.
func (w *Watcher) Close() error |
DC420/DC196 | DC | false | model-assisted | claude-fable-5-1 | natural | null | orofarne/scenic-routing-mcp | 20cef9ac7a5988bcc45d8d3fbe6b2c3af8029682 | internal/ollama/ollama.go | https://github.com/orofarne/scenic-routing-mcp/blob/20cef9ac7a5988bcc45d8d3fbe6b2c3af8029682/internal/ollama/ollama.go | f6d5689bd2910636bf01409f60132d7a4500db7a129adad443acd0cccc0764c1 | MIT | orofarne/scenic-routing-mcp | 312 | 359 | // Client calls the Ollama /api/embed endpoint. | [
{
"start": 312,
"end": 359,
"text": "// Client calls the Ollama /api/embed endpoint."
},
{
"start": 360,
"end": 380,
"text": "type Client struct {"
}
] | // Client calls the Ollama /api/embed endpoint.
type Client struct { |
DC420/DC197 | DC | true | model-assisted | claude-fable-5-1 | natural | null | kube-logging/telemetry-controller | cb05e857d64e75272a088fb8f2107893403be56f | api/telemetry/v1alpha1/output_types.go | https://github.com/kube-logging/telemetry-controller/blob/cb05e857d64e75272a088fb8f2107893403be56f/api/telemetry/v1alpha1/output_types.go | f878f88dcd205d0a692bacf7a2e1e279646833cf92288480aaa1e1292430e1b2 | Apache-2.0 | kube-logging/telemetry-controller | 12,598 | 12,646 | // Configuration for the fluentforward exporter. | [
{
"start": 12598,
"end": 12646,
"text": "// Configuration for the fluentforward exporter."
},
{
"start": 12647,
"end": 12674,
"text": "type Fluentforward struct {"
}
] | // Configuration for the fluentforward exporter.
type Fluentforward struct { |
DC420/DC199 | DC | false | model-assisted | claude-fable-5-1 | natural | null | authzed/zed | b3e6f953074cb476c03112cbc8bad005d5cf9b8d | pkg/backupformat/rewriter.go | https://github.com/authzed/zed/blob/b3e6f953074cb476c03112cbc8bad005d5cf9b8d/pkg/backupformat/rewriter.go | 2c4b9e793366e1095d7510372d4024249ec9b9c9556d75cef92ed1d84c9d8b7a | Apache-2.0 | authzed/zed | 1,662 | 1,752 | // RewriteRelationship transforms a relationship or returns nil to signal
// its removal. | [
{
"start": 1528,
"end": 1553,
"text": "type Rewriter interface {"
},
{
"start": 1662,
"end": 1752,
"text": "// RewriteRelationship transforms a relationship or returns nil to signal\n\t// its removal."
},
{
"start": 1754,
"end": 1819,
"text": "RewriteRelationship(r *v1.Re... | type Rewriter interface {
// RewriteRelationship transforms a relationship or returns nil to signal
// its removal.
RewriteRelationship(r *v1.Relationship) (*v1.Relationship, error) |
DC420/DC200 | DC | true | model-assisted | claude-fable-5-1 | natural | null | mattermost/mattermost-plugin-google-calendar | 24230a63fb4c15adbf5aab97350c6a95efc1e631 | gcal/subscription.go | https://github.com/mattermost/mattermost-plugin-google-calendar/blob/24230a63fb4c15adbf5aab97350c6a95efc1e631/gcal/subscription.go | 456ef6db179ee03ee29e499f4e0280c238080c3dd4a2b5ef59e8dd72953b8d68 | Apache-2.0 | mattermost/mattermost-plugin-google-calendar | 2,218 | 2,262 | // DeleteSubscription deletes a subscription | [
{
"start": 2218,
"end": 2262,
"text": "// DeleteSubscription deletes a subscription"
},
{
"start": 2263,
"end": 2330,
"text": "func (c *client) DeleteSubscription(sub *remote.Subscription) error"
}
] | // DeleteSubscription deletes a subscription
func (c *client) DeleteSubscription(sub *remote.Subscription) error |
DC420/DC201 | DC | false | model-assisted | claude-fable-5-1 | natural | null | bojieli/agentreach | 3433f1308217c51ad2cda65875e8eb5d78f72100 | internal/fileops/pool.go | https://github.com/bojieli/agentreach/blob/3433f1308217c51ad2cda65875e8eb5d78f72100/internal/fileops/pool.go | bd1896acd7fe7d18a1ef6d554901811fad9e280009e2641ba5b2cee27eaae4a6 | MIT | bojieli/agentreach | 7,175 | 7,202 | // Hash implements FileOps. | [
{
"start": 7175,
"end": 7202,
"text": "// Hash implements FileOps."
},
{
"start": 7203,
"end": 7275,
"text": "func (p *poolOps) Hash(ctx context.Context, path string) (string, error)"
}
] | // Hash implements FileOps.
func (p *poolOps) Hash(ctx context.Context, path string) (string, error) |
DC420/DC202 | DC | true | model-assisted | claude-fable-5-1 | natural | null | OpenTreeHole/auth_next | d6661ac5e039cdc5d857c8ca59f3d84b52263416 | apis/schemas.go | https://github.com/OpenTreeHole/auth_next/blob/d6661ac5e039cdc5d857c8ca59f3d84b52263416/apis/schemas.go | c4c62e4250cd8ddacd030fe3df6744b289420cb160064545b10a33b1bad1dacb | Apache-2.0 | OpenTreeHole/auth_next | 1,961 | 2,195 | // Question 通用题目 schema.
// 题库中不需要设置 ID 信息,加载题库时由上到下自动设置题号
// 发送题目时去除 Answer 信息,需要有自动生成的 ID 信息
// 按照题库设置可选乱序出题 | [
{
"start": 1961,
"end": 2195,
"text": "// Question 通用题目 schema.\n// 题库中不需要设置 ID 信息,加载题库时由上到下自动设置题号\n// 发送题目时去除 Answer 信息,需要有自动生成的 ID 信息\n// 按照题库设置可选乱序出题"
},
{
"start": 2196,
"end": 2218,
"text": "type Question struct {"
}
] | // Question 通用题目 schema.
// 题库中不需要设置 ID 信息,加载题库时由上到下自动设置题号
// 发送题目时去除 Answer 信息,需要有自动生成的 ID 信息
// 按照题库设置可选乱序出题
type Question struct { |
DC420/DC204 | DC | false | model-assisted | claude-fable-5-1 | natural | null | kube-logging/telemetry-controller | cb05e857d64e75272a088fb8f2107893403be56f | api/telemetry/v1alpha1/otlp_config.go | https://github.com/kube-logging/telemetry-controller/blob/cb05e857d64e75272a088fb8f2107893403be56f/api/telemetry/v1alpha1/otlp_config.go | c873ee16acf2692db66205805e3d6f95dedb26237ade48e752ff14b8815896f7 | Apache-2.0 | kube-logging/telemetry-controller | 11,390 | 11,491 | // CookiesConfig defines the configuration of the HTTP client regarding cookies served by the server. | [
{
"start": 11390,
"end": 11491,
"text": "// CookiesConfig defines the configuration of the HTTP client regarding cookies served by the server."
},
{
"start": 11492,
"end": 11519,
"text": "type CookiesConfig struct {"
}
] | // CookiesConfig defines the configuration of the HTTP client regarding cookies served by the server.
type CookiesConfig struct { |
DC420/DC205 | DC | false | model-assisted | claude-fable-5-1 | natural | null | ichenhe/syncthing-hook | a011bbd2f46b23b746b4388a7b70a9abd7a3fd18 | exevent/executor_creator.go | https://github.com/ichenhe/syncthing-hook/blob/a011bbd2f46b23b746b4388a7b70a9abd7a3fd18/exevent/executor_creator.go | 067be3aa9dcd782b4b99af0ac547e254028be67b1908aa67dde548f460db89c3 | MIT | ichenhe/syncthing-hook | 370 | 501 | // CreateExecutor creates executor handler based on given configuration.
//
// Returned error could be domain.ErrInvalidActionType. | [
{
"start": 370,
"end": 501,
"text": "// CreateExecutor creates executor handler based on given configuration.\n//\n// Returned error could be domain.ErrInvalidActionType."
},
{
"start": 502,
"end": 636,
"text": "func (c *ActionExecutorCreator) CreateExecutor(action *domain.HookAction, ho... | // CreateExecutor creates executor handler based on given configuration.
//
// Returned error could be domain.ErrInvalidActionType.
func (c *ActionExecutorCreator) CreateExecutor(action *domain.HookAction, hookDef *domain.HookDefinition) (domain.EventHandler, error) |
DC420/DC206 | DC | false | model-assisted | claude-fable-5-1 | natural | null | orsinium-labs/valdo | 58780ca0abb8673f61acb6a5b367f461ebb03728 | valdo/composers.go | https://github.com/orsinium-labs/valdo/blob/58780ca0abb8673f61acb6a5b367f461ebb03728/valdo/composers.go | 11871e0d3b662cbf1a0573a58fef53f704709b5254edfb9a137a0b2a3bbacfdc | MIT | orsinium-labs/valdo | 215 | 250 | // Validate implements [Validator]. | [
{
"start": 215,
"end": 250,
"text": "// Validate implements [Validator]."
},
{
"start": 251,
"end": 290,
"text": "func (n allOf) Validate(data any) Error"
}
] | // Validate implements [Validator].
func (n allOf) Validate(data any) Error |
DC420/DC207 | DC | false | model-assisted | claude-fable-5-1 | natural | null | buildbarn/bb-remote-execution | 77f7642b12228833c0584453c6a2ee9452717976 | pkg/filesystem/virtual/nfs_handle_allocator.go | https://github.com/buildbarn/bb-remote-execution/blob/77f7642b12228833c0584453c6a2ee9452717976/pkg/filesystem/virtual/nfs_handle_allocator.go | e3c2285e202cf4fd7cc88fee1f4689f0fc9c984a0521c6dc644c79dcf4663adf | Apache-2.0 | buildbarn/bb-remote-execution | 5,828 | 5,876 | // New creates a new stateful handle allocation. | [
{
"start": 5828,
"end": 5876,
"text": "// New creates a new stateful handle allocation."
},
{
"start": 5877,
"end": 5945,
"text": "func (hr *NFSStatefulHandleAllocator) New() StatefulHandleAllocation"
}
] | // New creates a new stateful handle allocation.
func (hr *NFSStatefulHandleAllocator) New() StatefulHandleAllocation |
DC420/DC208 | DC | false | model-assisted | claude-fable-5-1 | natural | null | dubbogo/triple | 339a5a68ac537265703b9d2bd13d705b75193b36 | pkg/triple/dubbo3_server.go | https://github.com/dubbogo/triple/blob/339a5a68ac537265703b9d2bd13d705b75193b36/pkg/triple/dubbo3_server.go | 5b5ea24ed67e6f15821eb31cad038ead2cac94aec19b3bb7c69fe9c9bcce33b5 | Apache-2.0 | dubbogo/triple | 3,746 | 3,800 | // UnmarshalRequest unmarshal bytes @data to interface | [
{
"start": 3746,
"end": 3800,
"text": "// UnmarshalRequest unmarshal bytes @data to interface"
},
{
"start": 3801,
"end": 3876,
"text": "func (h *GenericCodec) UnmarshalRequest(data []byte) ([]interface{}, error)"
}
] | // UnmarshalRequest unmarshal bytes @data to interface
func (h *GenericCodec) UnmarshalRequest(data []byte) ([]interface{}, error) |
DC420/DC209 | DC | true | model-assisted | claude-fable-5-1 | natural | null | fisker086/KeyOps | 59bca1c72a8aea07a36422310f7b4fad790ae6bf | internal/auth/ldap.go | https://github.com/fisker086/KeyOps/blob/59bca1c72a8aea07a36422310f7b4fad790ae6bf/internal/auth/ldap.go | e2c538d9f67c6cf22e543b14ddc33ac37dba4a2a3364b0348f7270dc5a502c06 | MIT | fisker086/KeyOps | 11,272 | 11,301 | // LDAPUser LDAP 用户信息 | [
{
"start": 11272,
"end": 11301,
"text": "// LDAPUser LDAP 用户信息"
},
{
"start": 11302,
"end": 11324,
"text": "type LDAPUser struct {"
}
] | // LDAPUser LDAP 用户信息
type LDAPUser struct { |
DC420/DC210 | DC | true | model-assisted | claude-fable-5-1 | natural | null | suapapa/go_kinvest | 64a030d78829bc43b8fdd29c4ed87530b08f9446 | balance.go | https://github.com/suapapa/go_kinvest/blob/64a030d78829bc43b8fdd29c4ed87530b08f9446/balance.go | 27ca633096209333b5518666be644ad8da10f98a0e42d78776682a4224ba2ce8 | MIT | suapapa/go_kinvest | 118 | 192 | // GetDomesticAccountBalance retrieves the balance of the domestic account | [
{
"start": 118,
"end": 192,
"text": "// GetDomesticAccountBalance retrieves the balance of the domestic account"
},
{
"start": 193,
"end": 289,
"text": "func (c *Client) GetDomesticAccountBalance(ctx context.Context) (*DomesticAccountBalance, error)"
}
] | // GetDomesticAccountBalance retrieves the balance of the domestic account
func (c *Client) GetDomesticAccountBalance(ctx context.Context) (*DomesticAccountBalance, error) |
STAVE Go style dataset
STAVE Go Style contains 181,879 labelled Go code examples. Each row shows a location in the code, its surrounding
context and a label for one of six style criteria. A positive label (true) flags a rule violation or a suggested
improvement. An acceptable label (false) means the check found no issue at that location.
Three classes follow exact rules for else after return, error string literals and underscores in declared names. The
other three use model-assisted judgements of test failure messages, documentation comments and the clarity of return
values.
The dataset has 106,287 training, 35,717 validation and 39,875 held-out test examples. Each repository and its known clones stay in one split.
Load the training split
Install datasets with python -m pip install datasets, then load the training Parquet file.
from datasets import load_dataset
train = load_dataset("aholovko/stave-go-style", data_files="data/train-*.parquet", split="train")
Worked example
In version 1.0.0, train[4609] is a synthetic example made by adding an else to the Max function in
dlvhdr/gh-dash. Original source (MIT)
if a > b {
return a
} else {
return b
}
The first branch exits Max, so return b can follow the if directly. The unnecessary else makes the P1 label
true. The keyword occupies bytes 226 through 229 of the modified file, so the end offset is 230.
row = train[4609]
print(row["id"])
print(row["class"], row["label"], row["label_method"], row["candidate_text"])
print(row["candidate_start"], row["candidate_end"])
P1:v3-mutant-5fd205af7a268a45ee9f0c47c2e067a182e164de560db7da729f9cd8da131a80:0
P1 True rule-based else
226 230
Classes
An example is positive when the condition for its class holds.
Rule-based labels
- P1 (unnecessary
else) — anelseorelse iffollows anifblock that ends in a directreturn. - P2 (error strings) — the string literal passed to
errors.Neworfmt.Errorfstarts with an uppercase letter followed by a lowercase one (or nothing), or ends with.,:,!or a line feed. - P3 (underscores in names) — a nonblank identifier at a declaring position contains
_.
Model-assisted labels for advisory criteria
- TF (test failure messages) — a
t.Error,t.Errorf,t.Fatalort.Fatalfcall leaves out a fact established by the test that a reader needs to distinguish failures with different diagnoses. - DC (documentation comments) — an existing documentation comment on an exported struct type or exported method does not start with the declared name, does not read as a sentence, or adds no descriptive information.
- RP (return value clarity) — an exported function or method returns two or more unnamed results of the same type and its name and documentation do not make their meanings and order clear.
Splits and counts
Each class row shows positive / acceptable counts. For each label, every class has at least 500 training, 100 validation and 200 test examples.
| Class | Training | Validation | Test |
|---|---|---|---|
| P1 | 500 / 1,140 | 100 / 523 | 200 / 2,049 |
| P2 | 500 / 5,408 | 100 / 2,635 | 215 / 6,805 |
| P3 | 2,254 / 85,597 | 357 / 29,822 | 214 / 26,440 |
| TF | 505 / 5,713 | 104 / 1,078 | 205 / 1,463 |
| DC | 502 / 2,808 | 104 / 580 | 228 / 1,490 |
| RP | 846 / 514 | 185 / 129 | 358 / 208 |
| Total | 106,287 | 35,717 | 39,875 |
P3 has the most acceptable examples because it checks every identifier at a declaring position. RP has more positive than acceptable examples in every split. The test split uses targeted sampling and has an uneven mix of classes and labels. These counts reflect how examples were selected and cannot establish how common the issues are in Go code.
What an example contains
id— unique case ID. IDs for P1, P2 and P3 start withP1:,P2:andP3:, respectively.class— one of P1, P2, P3, TF, DC or RPlabel—truefor a positive example orfalsefor an acceptable examplelabel_method—rule-basedfor P1, P2 and P3, ormodel-assistedfor TF, DC and RPlabel_model— model identifier for a model-assisted label when recorded, otherwise nullorigin—naturalfor examples taken directly from source code orsyntheticfor deliberately modified codesynthetic_original_id— ID of the original used to create a synthetic example, otherwise nullrepository,commit,path— the GitHub repository, pinned revision and path of the original source filesource_url— link to that file at the pinned revisionsource_sha256— SHA-256 of that file's bytes (for a synthetic example, of the mutated file)license— SPDX identifier of the source repository's licence (see Licence below)split_group— repository group used to assign the split. A repository and its known clones share this value.candidate_start,candidate_end— byte offsets in the source file. The start is inclusive and the end is exclusive.candidate_text— text at those offsetscontext_runs— contiguous source excerpts selected for the class, each with byte offsets (start,end) andtextcontext— the excerpts joined by a newline. Usecontext_runsto locate gaps in the original file.
The dataset excludes inputs longer than 1,023 tokens for P1–P3 or 512 tokens for TF, DC and RP.
How the labels were made
- For P1, P2 and P3, audited reference procedures apply each class's rule independently of the STAVE analyzer.
- For TF, DC and RP, the reference labels are model judgements. Each model followed fixed instructions for its class.
claude-opus-5-5assessed TF at high effort.claude-fable-5-1assessed DC and RP at maximum effort. The model identifier returned for each run was checked against the one requested. label_modelidentifies the model for 9,062 TF, 5,341 DC and 1,927 RP examples. The records for the other 690 model-assisted examples omit the identifier, so the field is null.- Unknown, unsure, invalid, refused and unattempted cases were excluded, never treated as acceptable.
Sources, splits and provenance
The examples come from 1,947 public GitHub repositories. Sources include GitHub searches, an earlier Go corpus and 32 repositories reserved for testing before development.
The training split includes 759 positive examples made by modifying source files. In 382 examples, the change
introduced an unnecessary else (P1). In 377, it changed the capitalization of an error string (P2). For these rows,
commit and path identify the original file. The byte offsets and source_sha256 refer to the modified file.
The STAVE models were trained on this split.
Known limitations
- Identical short P2 and P3 inputs occur in different splits, even across repository groups. High P3 scores alone cannot show how well a model handles unseen inputs. Some repository clones may also have gone undetected.
- P2 covers only non-test Go files. Just 11 natural P2 training positives meet the trailing-punctuation rule. TF draws on the test files retained during collection, so its coverage is incomplete.
- TF, DC and RP use model-assisted labels. No separate study measured disagreement on these labels.
Licence
Labels, metadata and this documentation are released under CC BY 4.0.
Each code excerpt keeps its source repository's licence. The license field gives the licence for each example, and
licenses.json lists the evidence for each repository. The repository, commit and path fields
identify the original file.
Across all splits, the counts by source licence are MIT (101,975 examples), Apache-2.0 (67,391 examples), BSD-3-Clause (10,875 examples), BSD-2-Clause (1,390 examples), unknown (248 examples).
- For Jeel-Vaishnav/AegisLimiter (248 test examples) the source repository is no longer available on GitHub and no
retained record states its licence;
licenseis null for these examples.
Citation
Cite version 1.0.0 using DOI 10.57967/hf/11350.
@dataset{holovko2026stavegostyle,
author = {Holovko, Andrii},
title = {{STAVE} {Go} style dataset: labelled {Go} code examples for six code-style classes},
year = {2026},
version = {1.0.0},
publisher = {Hugging Face},
doi = {10.57967/hf/11350},
url = {https://huggingface.co/datasets/aholovko/stave-go-style}
}
CITATION.cff carries the same metadata.
- Downloads last month
- 67