pair_id stringlengths 64 64 | repository stringlengths 7 57 | commit stringlengths 40 40 | path stringlengths 5 166 | license stringclasses 5
values | repository_stars int64 100 88.9k | content_kind stringclasses 4
values | is_test bool 2
classes | module_dir stringlengths 1 83 | module_path stringlengths 0 103 | module_go_version stringclasses 23
values | target_toolchain stringclasses 1
value | original_content_sha256 stringlengths 64 64 | fixed_content_sha256 stringlengths 64 64 | input_size_bytes int64 39 33.6k | output_size_bytes int64 18 32.7k | combined_size_bytes int64 70 65.5k | input_content stringlengths 39 33.6k | output_content stringlengths 18 32.7k | system_prompt stringclasses 1
value | instruction stringclasses 1
value | gofmt_status stringclasses 1
value | post_list_status stringclasses 1
value | post_vet_status stringclasses 2
values | near_cluster_id stringlengths 64 64 | near_cluster_size int32 1 187 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0000012f029170e3ad107c4b448aef98409825a2b07eec80480a5b22788b7cd2 | helixml/kodit | eb826e6fa527d9c9c8bbb977fc2a849aefc3dd31 | infrastructure/enricher/example/parser.go | apache-2.0 | 119 | example | false | . | github.com/helixml/kodit | 1.25.4 | go version go1.26.5 darwin/arm64 | f4b2f57e10cac1638025d40ef77d3b50770c8b438bd688d96bacc1422d180eb4 | cb9c8c23c7094f621d2595ad67b55e8386d1a3fdbb14916f2eda96f1a4eeb76b | 4,005 | 3,955 | 7,960 | package example
import (
"path/filepath"
"regexp"
"strings"
)
// Parser extracts code blocks from documentation content.
type Parser interface {
Parse(content string) []CodeBlock
}
// MarkdownParser parses Markdown documentation.
type MarkdownParser struct {
codeBlockPattern *regexp.Regexp
}
// NewMarkdownPars... | package example
import (
"path/filepath"
"regexp"
"strings"
)
// Parser extracts code blocks from documentation content.
type Parser interface {
Parse(content string) []CodeBlock
}
// MarkdownParser parses Markdown documentation.
type MarkdownParser struct {
codeBlockPattern *regexp.Regexp
}
// NewMarkdownPars... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | cb9c8c23c7094f621d2595ad67b55e8386d1a3fdbb14916f2eda96f1a4eeb76b | 1 |
0001225c6d0203d13306b7e950381d78e2af829374c3f8b18347dc050a5d11a4 | deckhouse/k8s-image-availability-exporter | 333891c87211d5ef5bdf339443ca9d42c34b585e | pkg/registry/indexers.go | apache-2.0 | 252 | source | false | . | github.com/flant/k8s-image-availability-exporter | 1.25.8 | go version go1.26.5 darwin/arm64 | 5e8c706ed4c326c1d40dcce6d14381f774a7233a1f84ea59b2e35008620031c8 | a3a411feeb784dfc8875c797809c2496de11b8fad693a71c172dd2d19b74eec8 | 8,237 | 8,133 | 16,370 | package registry
import (
"fmt"
"slices"
"strings"
"github.com/flant/k8s-image-availability-exporter/pkg/store"
"github.com/sirupsen/logrus"
appsv1 "k8s.io/api/apps/v1"
batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/tools/cache"
)
c... | package registry
import (
"fmt"
"slices"
"strings"
"github.com/flant/k8s-image-availability-exporter/pkg/store"
"github.com/sirupsen/logrus"
appsv1 "k8s.io/api/apps/v1"
batchv1 "k8s.io/api/batch/v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/tools/cache"
)
c... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | a3a411feeb784dfc8875c797809c2496de11b8fad693a71c172dd2d19b74eec8 | 1 |
000197684082318e32c40ecada885e1baa0069d4249dfae55d23978989bfc4c3 | nginx/agent | 1644ce43c9b8372b8185f3da965e61dee8d5263d | internal/nginx/nginx_instance_operator_test.go | apache-2.0 | 358 | test | true | . | github.com/nginx/agent/v3 | 1.26.0 | go version go1.26.5 darwin/arm64 | 85c7d23379d96a44fa86db3c0639fbae60a46bf7ee54757df15288206752c864 | eea099158e18d47f234aa1eed15c2a87753bbe9026ff940d345e56d00fec5339 | 13,783 | 13,775 | 27,558 | // Copyright (c) F5, Inc.
//
// This source code is licensed under the Apache License, Version 2.0 license found in the
// LICENSE file in the root directory of this source tree.
package nginx
import (
"bytes"
"context"
"errors"
"fmt"
"slices"
"sync"
"testing"
"time"
"github.com/nginx/agent/v3/internal/conf... | // Copyright (c) F5, Inc.
//
// This source code is licensed under the Apache License, Version 2.0 license found in the
// LICENSE file in the root directory of this source tree.
package nginx
import (
"bytes"
"context"
"errors"
"fmt"
"slices"
"sync"
"testing"
"time"
"github.com/nginx/agent/v3/internal/conf... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | eea099158e18d47f234aa1eed15c2a87753bbe9026ff940d345e56d00fec5339 | 1 |
0001c31561de84d50b8976b912e674eb4c37253c0c2bc7207b99fee4c7467c99 | luci/luci-go | 5b5798cd0342538810d93f7ae5adccc46a9331e0 | server/secrets/gsm.go | apache-2.0 | 159 | source | false | . | go.chromium.org/luci | 1.25.0 | go version go1.26.5 darwin/arm64 | 66f164f4e551c6fc793609f4da1cc0f169dd5e61f9aee1dda85487fa7b8eca40 | 804f3fd73fe246d9a1da76420237f3a341482f40f787851d4b1ba5bee649ea4d | 21,263 | 21,201 | 42,464 | // Copyright 2020 The LUCI Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | // Copyright 2020 The LUCI Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 804f3fd73fe246d9a1da76420237f3a341482f40f787851d4b1ba5bee649ea4d | 1 |
0002ac57a7ee84fbe8d23d7bc332d5e8b606b55ad32f3c58405f1ece8ce87ba8 | gogpu/wgpu | da6261a77a319d550fa98aeb06ed6a3d6432035b | core/buffer_test.go | mit | 155 | test | true | . | github.com/gogpu/wgpu | 1.25.0 | go version go1.26.5 darwin/arm64 | b1186e9cab84a8894635ce09aaf288e1d31610759b7c449b133edcc74f513a03 | 9a21c0b110d11e9078afb0b14486058e12d7389b5987adca6ecc6be060b6f4eb | 7,747 | 7,707 | 15,454 | //go:build !(js && wasm)
package core
import (
"sync"
"testing"
"github.com/gogpu/gputypes"
)
func TestBuffer_NewBuffer(t *testing.T) {
halDevice := &mockHALDevice{}
device := NewDevice(halDevice, &Adapter{}, gputypes.Features(0), gputypes.DefaultLimits(), "TestDevice")
halBuffer := mockBuffer{}
buffer := N... | //go:build !(js && wasm)
package core
import (
"sync"
"testing"
"github.com/gogpu/gputypes"
)
func TestBuffer_NewBuffer(t *testing.T) {
halDevice := &mockHALDevice{}
device := NewDevice(halDevice, &Adapter{}, gputypes.Features(0), gputypes.DefaultLimits(), "TestDevice")
halBuffer := mockBuffer{}
buffer := N... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 9a21c0b110d11e9078afb0b14486058e12d7389b5987adca6ecc6be060b6f4eb | 1 |
0002c0dc113fc55a8fcd01d397b5a173a4a9cdd81e2e0aa11a792a13f6ce6d30 | velero-io/velero | 9a690cc8157756aad2acd82dca71e825e63f80d2 | test/e2e/e2e_suite_test.go | apache-2.0 | 10,130 | test | true | . | github.com/vmware-tanzu/velero | 1.26.0 | go version go1.26.5 darwin/arm64 | 0dfdeb9e43a97bebb85579db875c3ef1b463d3d308120edab0a3b563eb44ee0e | 16fa16e4b4b726f793a4a65944dd10108cbc47a77b4a34f75a37f8d5a00862c6 | 26,144 | 26,144 | 52,288 | /*
Copyright the Velero contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | /*
Copyright the Velero contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 16fa16e4b4b726f793a4a65944dd10108cbc47a77b4a34f75a37f8d5a00862c6 | 1 |
0002f26318d1ea56d4f709450346f2e9a5e66e83779ff5b5ee424468854fa2c3 | interuss/dss | 70fd48e93f7f9fd7e3b6ff7b909808f82a92ebde | pkg/models/models.go | apache-2.0 | 154 | source | false | . | github.com/interuss/dss | 1.26.2 | go version go1.26.5 darwin/arm64 | d87aa80b53c3c2d6e7d7c5300e315f382c5ad00aa7fc3ecd68ac89d4244a9190 | e2d7669b8d90a4560c9b17a43948afc2e5f3c814c6a8309840aeebbbfb2dcda4 | 4,541 | 4,533 | 9,074 | package models
import (
"strconv"
"time"
"github.com/google/uuid"
"github.com/interuss/stacktrace"
"github.com/jackc/pgx/v5/pgtype"
)
type (
// ID represents a UUID-formatted string.
ID string
// Owner is the owner taken from the oauth token.
Owner string
// Semantically similar to Owner
Manager string
... | package models
import (
"strconv"
"time"
"github.com/google/uuid"
"github.com/interuss/stacktrace"
"github.com/jackc/pgx/v5/pgtype"
)
type (
// ID represents a UUID-formatted string.
ID string
// Owner is the owner taken from the oauth token.
Owner string
// Semantically similar to Owner
Manager string
... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | e2d7669b8d90a4560c9b17a43948afc2e5f3c814c6a8309840aeebbbfb2dcda4 | 1 |
000557937b3b4e174cedbe31fa1915414830ed5f1090575b20314e982b77c173 | turbot/steampipe-plugin-aws | 5b4b0511f4251a99294e1fe5134f73068ae78694 | aws/table_aws_glue_job.go | apache-2.0 | 228 | source | false | . | github.com/turbot/steampipe-plugin-aws | 1.26.0 | go version go1.26.5 darwin/arm64 | de62891752a13b68a326f9f81bcc6221d73fe2f73ea179a17b9473dff3f8d8bf | 25a7ea932ac4cfad52bd343a602c22675177716c16e9da57cba012d9abcab055 | 10,031 | 9,991 | 20,022 | package aws
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/glue"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/turbot/steampipe-plugin-sdk/v6/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v6/plugin"
"github.com/turbot/steampipe-plugin-sdk/v6/p... | package aws
import (
"context"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/glue"
"github.com/aws/aws-sdk-go-v2/service/glue/types"
"github.com/turbot/steampipe-plugin-sdk/v6/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v6/plugin"
"github.com/turbot/steampipe-plugin-sdk/v6/p... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 25a7ea932ac4cfad52bd343a602c22675177716c16e9da57cba012d9abcab055 | 1 |
0006c18589c8c351ea62109343956a85cfa3e8a4ecdea6d292d4a1857fe40621 | redpanda-data/benthos | a9fc41bdd0e8a1894e3b1f0faa6c700752b87158 | public/service/message_test.go | mit | 552 | benchmark | true | . | github.com/redpanda-data/benthos/v4 | 1.26.4 | go version go1.26.5 darwin/arm64 | 51719769aaeeee384d548304e69121fa41f47c5282891ff75676b36de9776348 | 24c3b4dfdc53e0efe373372fbe20097a14cac4c5d2827a4fe7fd96bc6b8f3ebe | 29,522 | 29,493 | 59,015 | // Copyright 2025 Redpanda Data, Inc.
package service
import (
"errors"
"sync"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
ibloblang "github.com/redpanda-data/benthos/v4/internal/bloblang"
"github.com/redpanda-data/benthos/v4/internal/message"
"github.com/redpanda-da... | // Copyright 2025 Redpanda Data, Inc.
package service
import (
"errors"
"sync"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
ibloblang "github.com/redpanda-data/benthos/v4/internal/bloblang"
"github.com/redpanda-data/benthos/v4/internal/message"
"github.com/redpanda-da... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 24c3b4dfdc53e0efe373372fbe20097a14cac4c5d2827a4fe7fd96bc6b8f3ebe | 1 |
0006e4cdb14a2bfbefc2f9aa4e7082f411c6e3f9476ac558d8e2fe8edb4ab20a | fullstorydev/grpchan | 575affded1d723fc09ef08563309f4ff5159c4e4 | intercept_server_test.go | mit | 229 | test | true | . | github.com/fullstorydev/grpchan | 1.25.0 | go version go1.26.5 darwin/arm64 | f954aae223d8342251af8722a8f2b96b88a3e6896f85a67f0e3c8ab595cfad4a | 3e2b30b5aad33415cabdf869ec70efcb33cde15402520096a7560f10ea41f932 | 13,497 | 13,425 | 26,922 | package grpchan_test
import (
"context"
"fmt"
"io"
"reflect"
"testing"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/emptypb"
"github.com/fullstorydev/grp... | package grpchan_test
import (
"context"
"fmt"
"io"
"reflect"
"testing"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/emptypb"
"github.com/fullstorydev/grp... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 3e2b30b5aad33415cabdf869ec70efcb33cde15402520096a7560f10ea41f932 | 1 |
0007d82c6cf93dc1678cc69e3a7000ddd8f4c903689e61381998623dd6c2ec12 | jcmoraisjr/haproxy-ingress | 14ea46fba7972eabee71df556cbfe9812403973d | pkg/acme/x/acme/jws.go | apache-2.0 | 1,160 | source | false | . | github.com/jcmoraisjr/haproxy-ingress | 1.26.0 | go version go1.26.5 darwin/arm64 | 01c405c81efc5553593f5f2cf020e64ce9add0e61ecfb8031dfef60ae25f717d | 95c59f5c59a1163d7c943e7e4679bff3f9892b59812b06faa21dc70046d1e486 | 4,571 | 4,563 | 9,134 | // Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package acme
// From: https://golang.org/cl/86635
import (
"crypto"
"crypto/ecdsa"
"crypto/rand"
"crypto/rsa"
"crypto/sha256"
_ "crypto/sha512" // need ... | // Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package acme
// From: https://golang.org/cl/86635
import (
"crypto"
"crypto/ecdsa"
"crypto/rand"
"crypto/rsa"
"crypto/sha256"
_ "crypto/sha512" // need ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 95c59f5c59a1163d7c943e7e4679bff3f9892b59812b06faa21dc70046d1e486 | 1 |
0007ed064ee5b8424eb032a11299fb6e735e8ae4dcf7a59f34121481bde8637f | ovh/cds | 5f4282ac48c8c23d6bb7ae4f576ca99f6c282194 | cli/cdsctl/version.go | bsd-3-clause | 4,831 | source | false | . | github.com/ovh/cds | 1.25.5 | go version go1.26.5 darwin/arm64 | f00cfdd6fffe6036456075af6f898524612004c2e92940d5f11bea91f6b3a003 | 4186606be23538c60288a3dd2ff05465e7b1b4f35e2536c3031a88032a2bd0cd | 1,957 | 1,947 | 3,904 | package main
import (
"encoding/json"
"fmt"
"github.com/spf13/cobra"
yaml "gopkg.in/yaml.v2"
"github.com/ovh/cds/cli"
"github.com/ovh/cds/cli/cdsctl/internal"
"github.com/ovh/cds/sdk"
)
var versionCmd = cli.Command{
Name: "version",
Short: "show cdsctl version",
Flags: []cli.Flag{
{
Type: cli.FlagS... | package main
import (
"encoding/json"
"fmt"
"github.com/spf13/cobra"
yaml "gopkg.in/yaml.v2"
"github.com/ovh/cds/cli"
"github.com/ovh/cds/cli/cdsctl/internal"
"github.com/ovh/cds/sdk"
)
var versionCmd = cli.Command{
Name: "version",
Short: "show cdsctl version",
Flags: []cli.Flag{
{
Type: cli.FlagS... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 4186606be23538c60288a3dd2ff05465e7b1b4f35e2536c3031a88032a2bd0cd | 1 |
00081e5ee0bc7938b3c99c450ce2391d938451263a1d4b864ecd87e2cda1ce67 | cirruslabs/cirrus-cli | 1769788a20dc72f6aef85bcdc92abaa1bf061cdc | cmd/cirrus/main.go | mit | 282 | source | false | . | github.com/cirruslabs/cirrus-cli | 1.25.5 | go version go1.26.5 darwin/arm64 | 08f7c3058c31ed6b3b167f5c99c1ecf952bc70855fde2f3425324df116aaf9fd | 3c489d0dbcdf1dc7d1e98fe979b4caaf889548483080a5df574acc177f4ed55d | 2,713 | 2,713 | 5,426 | package main
import (
"context"
"crypto/x509"
"errors"
"fmt"
"github.com/breml/rootcerts/embedded"
"github.com/cirruslabs/cirrus-cli/internal/agent"
"github.com/cirruslabs/cirrus-cli/internal/commands"
"github.com/cirruslabs/cirrus-cli/internal/commands/helpers"
"github.com/cirruslabs/cirrus-cli/internal/open... | package main
import (
"context"
"crypto/x509"
"errors"
"fmt"
"github.com/breml/rootcerts/embedded"
"github.com/cirruslabs/cirrus-cli/internal/agent"
"github.com/cirruslabs/cirrus-cli/internal/commands"
"github.com/cirruslabs/cirrus-cli/internal/commands/helpers"
"github.com/cirruslabs/cirrus-cli/internal/open... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 3c489d0dbcdf1dc7d1e98fe979b4caaf889548483080a5df574acc177f4ed55d | 1 |
0008de6ffa1a66c4c4099ea6eb20b088d5973fef22335ecc8443269845bd9a25 | newrelic/nri-flex | 2d6b8daf6074a376deb8253e75323a9c3900af1d | cmd/nri-flex/fips.go | apache-2.0 | 123 | source | false | . | github.com/newrelic/nri-flex | 1.26.5 | go version go1.26.5 darwin/arm64 | 7b70b56aba409d8ba60a4c2646b43cdc684ac07d25774a185da2379ffb1d9ddf | c7bb414b55d36d541257d6196fe4f74edf9eeac9d75e29568e12792253edb9f1 | 184 | 169 | 353 | // Copyright 2019 New Relic Corporation. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//go:build fips
// +build fips
package main
import (
_ "crypto/tls/fipsonly"
)
| // Copyright 2019 New Relic Corporation. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//go:build fips
package main
import (
_ "crypto/tls/fipsonly"
)
| You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | c7bb414b55d36d541257d6196fe4f74edf9eeac9d75e29568e12792253edb9f1 | 1 |
0009d91b9e966d31378775a06430be80570d3960981e0dd288649f85ebc1fa60 | qydysky/bili_danmu | 1d815e3866e58545ae9cd0eb696063f5a9f79e82 | Send/Send.go | mit | 169 | source | false | . | github.com/qydysky/bili_danmu | 1.26 | go version go1.26.5 darwin/arm64 | d1dee5e4a75e51de91987f9a80cfc96be6a800e516c8e69cba6f6eafa1844210 | a0eb63a267c7ebc31bca2c81c8600fcb9c410c39ec5df9e3a7aa02a974cd3378 | 3,493 | 3,485 | 6,978 | package send
import (
"encoding/json"
"errors"
"io"
"strconv"
"time"
c "github.com/qydysky/bili_danmu/CV"
file "github.com/qydysky/part/file"
limit "github.com/qydysky/part/limit"
reqf "github.com/qydysky/part/reqf"
)
// 每5s一个令牌,最多等20秒
var danmu_s_limit = limit.New(1, "5s", "20s")
var damnu_official = make... | package send
import (
"encoding/json"
"errors"
"io"
"strconv"
"time"
c "github.com/qydysky/bili_danmu/CV"
file "github.com/qydysky/part/file"
limit "github.com/qydysky/part/limit"
reqf "github.com/qydysky/part/reqf"
)
// 每5s一个令牌,最多等20秒
var danmu_s_limit = limit.New(1, "5s", "20s")
var damnu_official = make... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | a0eb63a267c7ebc31bca2c81c8600fcb9c410c39ec5df9e3a7aa02a974cd3378 | 1 |
000a00376fc696f7b54c928d86732a093af0dbebf01d6daced23db1a035b641f | SAP/jenkins-library | 0500577efcb8961d41dfdf69af7612a442340ed7 | pkg/terraform/terraform_test.go | apache-2.0 | 819 | test | true | . | github.com/SAP/jenkins-library | 1.25.0 | go version go1.26.5 darwin/arm64 | 45d172cf3fd56592c5f27dcbcfef7f2d3f2b97841093e2ed8a5ee40a9c81573a | ad348af369e4bda16ee3fe3ebebd18839c6b7a742f1a80f3683bdc4cc5245090 | 1,809 | 1,794 | 3,603 | //go:build unit
// +build unit
package terraform
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestReadOutputs(t *testing.T) {
terraformOutputsJson := `{
"boolean": {
"sensitive": false,
"type": "bool",
"value": true
},
"list_any": {
"sensitive": false,
"type": [
... | //go:build unit
package terraform
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestReadOutputs(t *testing.T) {
terraformOutputsJson := `{
"boolean": {
"sensitive": false,
"type": "bool",
"value": true
},
"list_any": {
"sensitive": false,
"type": [
"tuple",
... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | ad348af369e4bda16ee3fe3ebebd18839c6b7a742f1a80f3683bdc4cc5245090 | 1 |
000b05e0a5ad62ecd5ba8b35c0df6d33dd0b324fdc4b00ee106a48e02dffaea8 | Azure/azure-sdk-for-go | e7bdd0d046654306ed2356ea6f26b3fd005f604f | sdk/messaging/azeventhubs/processor_test.go | mit | 1,841 | test | true | sdk/messaging/azeventhubs | github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/v2 | 1.25.0 | go version go1.26.5 darwin/arm64 | 8cb3a85700fd43abfdb2dce130f972f32d12f6b8a99c604e71b01a75933b95ee | 2ae03146860ebfb0d14f71d58955473ab2ab848d15018b044cdff9a216d5fd64 | 25,297 | 25,268 | 50,565 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package azeventhubs_test
import (
"context"
"errors"
"fmt"
"log"
"sort"
"strings"
"sync"
"sync/atomic"
"testing"
"time"
"github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/v2"
"github.com/Azure/azure-s... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package azeventhubs_test
import (
"context"
"errors"
"fmt"
"log"
"sort"
"strings"
"sync"
"sync/atomic"
"testing"
"time"
"github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/v2"
"github.com/Azure/azure-s... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 2ae03146860ebfb0d14f71d58955473ab2ab848d15018b044cdff9a216d5fd64 | 1 |
000b5d258c0f7de9f1af96add60156ac0613d475ec8be5f5fb26b71703deda27 | thunder-id/thunderid | d946d3448c4b89e1dbcf5d9501aebcbcc25c1c24 | backend/internal/flow/executor/provisioning_executor.go | apache-2.0 | 341 | source | false | backend | github.com/thunder-id/thunderid | 1.26 | go version go1.26.5 darwin/arm64 | ed22afcc5b97a623a99680c675f6a24263cc402530c02f1d7d616bd4127705a8 | a7828e12395b4817cf3bdfc3abd7870053a36f3ca1b2a25299fe19c03bc50181 | 31,269 | 31,165 | 62,434 | /*
* Copyright (c) 2025-2026, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... | /*
* Copyright (c) 2025-2026, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | a7828e12395b4817cf3bdfc3abd7870053a36f3ca1b2a25299fe19c03bc50181 | 1 |
000de51d8645aa24c06f2fb426810929114867f48a704f7c36f02ab9308076ab | GoogleCloudPlatform/k8s-config-connector | 5c52baaf805f89dee2f09b8aa487a1dbd2582929 | operator/pkg/kccstate/kccstate_test.go | apache-2.0 | 1,052 | test | true | . | github.com/GoogleCloudPlatform/k8s-config-connector | 1.26 | go version go1.26.5 darwin/arm64 | 5153b8a43fd840ac3fd0c83a8a883092fbd01cf0479e1177a35fc4872ea49806 | c4a4eeddf85a04b3e561b0670747a8f2e1a5a2ed5a7ce8e863f21ab1b99c7107 | 4,529 | 4,518 | 9,047 | // Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | c4a4eeddf85a04b3e561b0670747a8f2e1a5a2ed5a7ce8e863f21ab1b99c7107 | 1 |
000f180953bc55fcd7652383ef39f26099fb02288be1cf8018b93b75aaa3a155 | openshift/microshift | 59677718bec1da79551f1f0bba70265146c7e046 | deps/github.com/openshift/kubernetes/test/e2e/framework/ginkgowrapper_test.go | apache-2.0 | 834 | test | true | deps/github.com/openshift/kubernetes | k8s.io/kubernetes | 1.25.0 | go version go1.26.5 darwin/arm64 | a048ef7ae19ca6a43742a7f4830662b36572c9b9c04e076b94f6ded493bc41c2 | 73e53050d98c755002afe342e5c57e255056ee27998bd5c1ba27aa4a567689e8 | 1,498 | 1,490 | 2,988 | /*
Copyright 2023 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | /*
Copyright 2023 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 73e53050d98c755002afe342e5c57e255056ee27998bd5c1ba27aa4a567689e8 | 1 |
000fe180c79609b37eede5c387ce54dbe3bcc8f336308a29717096b3d125f64d | ory/kratos | b0c11d30c57d269b9db0c475febc17de4c6eaf13 | courier/template/email/recovery_code_valid.go | apache-2.0 | 13,756 | source | false | . | github.com/ory/kratos | 1.26 | go version go1.26.5 darwin/arm64 | 4e3bf68b9780bd1dd0da276ae287a1fb880b90a5f2368e2861c8d787d863281f | 326a24a521b672830773500b47b6f746d69e328009ec4ceece698cb82d22141d | 2,421 | 2,365 | 4,786 | // Copyright © 2023 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package email
import (
"context"
"encoding/json"
"net/http"
"os"
"strings"
"github.com/ory/kratos/courier/template"
)
type (
RecoveryCodeValid struct {
deps template.Dependencies
model *RecoveryCodeValidModel
}
RecoveryCodeValidModel ... | // Copyright © 2023 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package email
import (
"context"
"encoding/json"
"net/http"
"os"
"strings"
"github.com/ory/kratos/courier/template"
)
type (
RecoveryCodeValid struct {
deps template.Dependencies
model *RecoveryCodeValidModel
}
RecoveryCodeValidModel ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 326a24a521b672830773500b47b6f746d69e328009ec4ceece698cb82d22141d | 1 |
00105dd94f8f22e7f851f1ea925eeed0c9462305c372134021df18bca86ef35e | cosmos/cosmos-sdk | 315d7ce75a23aa5a176cb484dd39c5ba68364002 | baseapp/grpcrouter_test.go | apache-2.0 | 7,023 | test | true | . | github.com/cosmos/cosmos-sdk | 1.26.5 | go version go1.26.5 darwin/arm64 | a3c5ec0b576019cbe689a34c2b1d5b9060d1d948ab18b15c1161262f74c94d16 | 585b59eebce20e1a4f9cc2dd6c3a686d966e8e0a3946d1708f2b6cf7cbef9550 | 7,124 | 7,095 | 14,219 | package baseapp_test
import (
"context"
"sync"
"testing"
dbm "github.com/cosmos/cosmos-db"
"github.com/stretchr/testify/require"
"cosmossdk.io/depinject"
"cosmossdk.io/log/v2"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/runtime"
"github.... | package baseapp_test
import (
"context"
"sync"
"testing"
dbm "github.com/cosmos/cosmos-db"
"github.com/stretchr/testify/require"
"cosmossdk.io/depinject"
"cosmossdk.io/log/v2"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/runtime"
"github.... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 585b59eebce20e1a4f9cc2dd6c3a686d966e8e0a3946d1708f2b6cf7cbef9550 | 1 |
0010cb61339dfe03f14b9d07ae591ca6af50e2d3e8dd3e54ef314c4485862af7 | stakater/Reloader | 0d180429d81f52260a9fc7a3dd7a6d1d7732a5d1 | test/e2e/utils/annotations.go | apache-2.0 | 10,215 | source | false | . | github.com/stakater/Reloader | 1.26.4 | go version go1.26.5 darwin/arm64 | 912f46a52455670db4fb081e4d5aa2b4c4b10284206abb99bbcd1976b0046f9d | 1dd3750db0886e7938d0ed6e1a3b4e811abe2f961c57fe7e07856f60dd5b7583 | 9,360 | 9,435 | 18,795 | package utils
// Annotation key constants used by Reloader.
// These follow the pattern: {scope}.reloader.stakater.com/{action}
// where scope can be empty (all resources), "configmap", "secret", "deployment", etc.
const (
// ============================================================
// Core reload annotations
//... | package utils
import "strings"
// Annotation key constants used by Reloader.
// These follow the pattern: {scope}.reloader.stakater.com/{action}
// where scope can be empty (all resources), "configmap", "secret", "deployment", etc.
const (
// ============================================================
// Core relo... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 1dd3750db0886e7938d0ed6e1a3b4e811abe2f961c57fe7e07856f60dd5b7583 | 1 |
0010f97b3ee98753ebbcbdcfda9b186fbed78cf58725470d97f0bfff6152d8b6 | easegress-io/easegress | 3bdb1923a213334fad95dd98ca35dac7dd4c391c | pkg/filters/builder/extrafuncs_test.go | apache-2.0 | 5,872 | test | true | . | github.com/megaease/easegress/v2 | 1.26.0 | go version go1.26.5 darwin/arm64 | 4a7a24ec5d10c144a2da667adb26f615f90b9cd21931ba384651d9e16aa1b890 | f3278852196c6567041d2b0137397a3e6a7115f8df43c0c90446913ae78fdbeb | 3,664 | 3,560 | 7,224 | /*
* Copyright (c) 2017, The Easegress Authors
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | /*
* Copyright (c) 2017, The Easegress Authors
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | f3278852196c6567041d2b0137397a3e6a7115f8df43c0c90446913ae78fdbeb | 1 |
00116b41a7e9760e818368a4a2b11fe472197bc3cf12132ff58763e7950b7dfe | cockroachdb/pebble | 8fb150d9135d6f94e183a874475e0bd1afb18f63 | sstable/reader_iter.go | bsd-3-clause | 5,950 | source | false | . | github.com/cockroachdb/pebble | 1.25.3 | go version go1.26.5 darwin/arm64 | 7728e51cebe94b049d3c060d33f32ac422e07a12c038cca96c84c91c60230117 | dea665f19a12dac346c7b1f7914b5651a7eb988b40dd1ba668919572deb42a2f | 10,026 | 9,978 | 20,004 | // Copyright 2011 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.
package sstable
import (
"fmt"
"os"
"sync"
"github.com/cockroachdb/pebble/internal/base"
"github.com/cockroachdb/pebble/internal/invar... | // Copyright 2011 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.
package sstable
import (
"fmt"
"os"
"sync"
"github.com/cockroachdb/pebble/internal/base"
"github.com/cockroachdb/pebble/internal/invar... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | dea665f19a12dac346c7b1f7914b5651a7eb988b40dd1ba668919572deb42a2f | 1 |
0011c15b998554575318a8efae692ca7df75bcf5efc45f092c82f3cefac29bbb | jfrog/terraform-provider-artifactory | fe4f8bc7a3eb0c4fb37c9f42f05461f31215462d | pkg/artifactory/resource/repository/local/resource_artifactory_local_hex_repository_test.go | apache-2.0 | 286 | test | true | . | github.com/jfrog/terraform-provider-artifactory/v12 | 1.25.8 | go version go1.26.5 darwin/arm64 | da85468a31c81cfb20f6c648b164528e9e13164687a794d2d4de36af3f329649 | a301e01efa00527a9fb1c735a4b0a618ef6c4eae270e88960f49ea05d6994ce4 | 17,710 | 17,654 | 35,364 | // Copyright (c) JFrog Ltd. (2025)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | // Copyright (c) JFrog Ltd. (2025)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | a301e01efa00527a9fb1c735a4b0a618ef6c4eae270e88960f49ea05d6994ce4 | 1 |
001228c10e8d358c62cefe0626f3e0d3d32917e8cedc55fa6ba956cce89106af | olric-data/olric | 23138abd4b11814847e691c541669453f9a864c9 | internal/server/mux_test.go | apache-2.0 | 3,472 | test | true | . | github.com/olric-data/olric | 1.25.0 | go version go1.26.5 darwin/arm64 | bbcf97ce2a84c1c097f0314c73778f71cccbaab8fe27808ca02732bb6193fc5a | 26c8bdfd85bd40c599c516595f5327e75d1a8925c6fc41f258223f05413ec2ca | 1,455 | 1,447 | 2,902 | // Copyright 2018-2026 The Olric Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | // Copyright 2018-2026 The Olric Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 26c8bdfd85bd40c599c516595f5327e75d1a8925c6fc41f258223f05413ec2ca | 1 |
00127510ca1e0b1e0cf1e60aa4fa099e78afe265c71b927a9053e337979f0d96 | blevesearch/bleve | 8fb0f1b6835b16b50254d61568224eebc4281838 | cmd/bleve/cmd/scorch/root.go | apache-2.0 | 11,141 | source | false | . | github.com/blevesearch/bleve/v2 | 1.25.0 | go version go1.26.5 darwin/arm64 | 2521ebf2606f70a476d34c3afb5416208e4e81b5dc592cf07ff3198e757b9e55 | cf8ad0db114564f9a68c60a4424fbde5cb9926ac348fd9664d477f5dd6fa6fc6 | 1,839 | 1,831 | 3,670 | // Copyright (c) 2017 Couchbase, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | // Copyright (c) 2017 Couchbase, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | cf8ad0db114564f9a68c60a4424fbde5cb9926ac348fd9664d477f5dd6fa6fc6 | 1 |
0013eab847c8d045b885d985cc9ae2637cae9bd545ebe9d2f6590c9dcfa557e6 | kubernetes/autoscaler | 5420e36e99b60a466d824896c308783fe43f5dcb | cluster-autoscaler/simulator/drainability/rules/rules.go | apache-2.0 | 8,899 | source | false | cluster-autoscaler | k8s.io/autoscaler/cluster-autoscaler | 1.26.0 | go version go1.26.5 darwin/arm64 | ce6c5a6037f75adeba330bd6d7b0183d5e18e74b3951e51f63f8b4612627907c | 1c12bc4025c2fa974ef0f47632abbab4341214c8dc3004d156083b66afcfeeb1 | 4,380 | 4,358 | 8,738 | /*
Copyright 2023 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | /*
Copyright 2023 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 1c12bc4025c2fa974ef0f47632abbab4341214c8dc3004d156083b66afcfeeb1 | 1 |
0013fac22dada8c49078a845694b32ac1af2615ed6ccd49f2bc6420d49a5a527 | united-manufacturing-hub/united-manufacturing-hub | 3250dc5aef4e6436d83f8deab7f31efb75beba91 | umh-core/pkg/fsmv2/workers/transport/pull/worker.go | apache-2.0 | 372 | source | false | umh-core | github.com/united-manufacturing-hub/united-manufacturing-hub/umh-core | 1.26.4 | go version go1.26.5 darwin/arm64 | c5584ea59020594bf9ad1b3fd6cf5a1cccd83d3997b2b207c24cd380653bcb47 | 4895f1a84e6d07cfdbd0ac5f5e4077cab0eab6e331d3e17fd8428a4af6c315c5 | 6,623 | 6,615 | 13,238 | // Copyright 2025 UMH Systems GmbH
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | // Copyright 2025 UMH Systems GmbH
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 4895f1a84e6d07cfdbd0ac5f5e4077cab0eab6e331d3e17fd8428a4af6c315c5 | 1 |
0015bac7227404d43d234efd1d0e059307a7420fd0ce4bc48a88d8568fe2fd11 | kubernetes-sigs/aws-load-balancer-controller | 9a893d3f31150b888239534841866fa68270f7fd | pkg/ingress2gateway/translate/httproute_test.go | apache-2.0 | 4,310 | test | true | . | sigs.k8s.io/aws-load-balancer-controller | 1.26.5 | go version go1.26.5 darwin/arm64 | 2c0cd129e9b2bc93bd1c1acd2b2a592d1d0aac58ef3b0760c646d688aeb7fdaf | 976b0f6ffbbc925ba24ef6943070a421dae9472c0702e3eda592d28ca33dea36 | 30,439 | 30,459 | 60,898 | package translate
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
corev1 "k8s.io/api/core/v1"
networking "k8s.io/api/networking/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gatewayv1beta1 "sigs.k8s.io/aws-load-balancer-controller/apis/gateway/v1beta1"
"sigs.k... | package translate
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
corev1 "k8s.io/api/core/v1"
networking "k8s.io/api/networking/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
gatewayv1beta1 "sigs.k8s.io/aws-load-balancer-controller/apis/gateway/v1beta1"
"sigs.k... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 976b0f6ffbbc925ba24ef6943070a421dae9472c0702e3eda592d28ca33dea36 | 1 |
0015f849316edd0f2423db1cf65cf860018590a636bf9794d59ad6c12df7b199 | ekristen/aws-nuke | 6aeca0bd8fe27dcceb89a41b679f4f41d8c830ab | tools/generate-docs/docs.go | mit | 1,354 | source | false | . | github.com/ekristen/aws-nuke/v3 | 1.26.1 | go version go1.26.5 darwin/arm64 | b21c5ddbe6e34f137344eb032a1c4ff7c852688604ebd5b0f686cfb1a927c81b | d997a606ae65be9f74ae8e044b310d1b6dd01edd3cd17ff318916403e57efa56 | 7,868 | 7,926 | 15,794 | package main
import (
"bytes"
"context"
"embed"
"fmt"
"os"
"path/filepath"
"regexp"
"slices"
"strings"
"text/template"
"github.com/sirupsen/logrus"
"github.com/urfave/cli/v3"
"golang.org/x/text/cases"
"golang.org/x/text/language"
"github.com/ekristen/libnuke/pkg/docs"
"github.com/ekristen/libnuke/pk... | package main
import (
"bytes"
"context"
"embed"
"fmt"
"os"
"path/filepath"
"regexp"
"slices"
"strings"
"text/template"
"github.com/sirupsen/logrus"
"github.com/urfave/cli/v3"
"golang.org/x/text/cases"
"golang.org/x/text/language"
"github.com/ekristen/libnuke/pkg/docs"
"github.com/ekristen/libnuke/pk... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | d997a606ae65be9f74ae8e044b310d1b6dd01edd3cd17ff318916403e57efa56 | 1 |
0018a98d73f2573835275c7df23b4c366d267a34ac4536323f468c72d14b1112 | percona/percona-backup-mongodb | 6f9fc3bf2e59e0754b7c9d3d9fa1c84b2f3aba45 | cmd/pbm/config.go | apache-2.0 | 330 | source | false | . | github.com/percona/percona-backup-mongodb | 1.25.9 | go version go1.26.5 darwin/arm64 | c946c918261a0924f249b9a2357ca6ad9fbe7807a852d9ca788e645ec0d9fc3c | 6786ebf284814787dfd40ffc7ad5c1ab79fd15a70b69461e18854bb1acf4e38e | 3,870 | 3,914 | 7,784 | package main
import (
"context"
"fmt"
"log"
"os"
"time"
"go.mongodb.org/mongo-driver/v2/mongo"
"github.com/percona/percona-backup-mongodb/pbm/config"
"github.com/percona/percona-backup-mongodb/pbm/connect"
"github.com/percona/percona-backup-mongodb/pbm/errors"
"github.com/percona/percona-backup-mongodb/sdk... | package main
import (
"context"
"fmt"
"log"
"os"
"strings"
"time"
"go.mongodb.org/mongo-driver/v2/mongo"
"github.com/percona/percona-backup-mongodb/pbm/config"
"github.com/percona/percona-backup-mongodb/pbm/connect"
"github.com/percona/percona-backup-mongodb/pbm/errors"
"github.com/percona/percona-backup-... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 6786ebf284814787dfd40ffc7ad5c1ab79fd15a70b69461e18854bb1acf4e38e | 1 |
001b1f7907fdc5f64cac4e937fff69ce975941463b1803d46e6553b12366e205 | Azure/karpenter-provider-azure | 5f63ac1d99c062d6ddd968a1162860032ad20602 | test/suites/gpu/suite_test.go | apache-2.0 | 549 | test | true | . | github.com/Azure/karpenter-provider-azure | 1.26.5 | go version go1.26.5 darwin/arm64 | d1a2e97ecac5d896a1a47f2c99640bd14926bf1e3b7b88f2167d5db4644ba125 | b3c7dd593a9ff7782e867ccfd27b19f81300c869f18266a068c75c83b2035059 | 8,255 | 8,250 | 16,505 | /*
Portions Copyright (c) Microsoft Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | /*
Portions Copyright (c) Microsoft Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | b3c7dd593a9ff7782e867ccfd27b19f81300c869f18266a068c75c83b2035059 | 1 |
001c8ccb7515880bc9c0d90769949e12fa547c5d51ded8d30514d55f9c57d782 | mjl-/mox | 1a47ba33893e5297371a59b9b368287598d02086 | iprev/iprev.go | mit | 5,746 | source | false | . | github.com/mjl-/mox | 1.25.0 | go version go1.26.5 darwin/arm64 | 454d0678a93efd1b02455671949d07a42ce8021fcd32eee3feed04496783b6d4 | 36c109226d3083d2c2aa487b56e2c3da63441fd7bc49bad56dfd6baac9f7a246 | 2,868 | 2,860 | 5,728 | // Package iprev checks if an IP has a reverse DNS name configured and that the
// reverse DNS name resolves back to the IP (RFC 8601, Section 3).
package iprev
import (
"context"
"errors"
"fmt"
"log/slog"
"net"
"time"
"github.com/mjl-/mox/dns"
"github.com/mjl-/mox/mlog"
"github.com/mjl-/mox/stub"
)
var xlo... | // Package iprev checks if an IP has a reverse DNS name configured and that the
// reverse DNS name resolves back to the IP (RFC 8601, Section 3).
package iprev
import (
"context"
"errors"
"fmt"
"log/slog"
"net"
"slices"
"time"
"github.com/mjl-/mox/dns"
"github.com/mjl-/mox/mlog"
"github.com/mjl-/mox/stub"
... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 36c109226d3083d2c2aa487b56e2c3da63441fd7bc49bad56dfd6baac9f7a246 | 1 |
001de02a4fb789797885ec9c67fa2f2a43e7206a44ec228b7e969075dc55a037 | litmuschaos/litmus | 80a31ab741a08ec6a299092c60911591a455889c | chaoscenter/authentication/pkg/project/repository.go | apache-2.0 | 5,510 | source | false | chaoscenter/authentication | github.com/litmuschaos/litmus/chaoscenter/authentication | 1.25.0 | go version go1.26.5 darwin/arm64 | 0094444416761d2dacd065631df8da5b54316c962c8fb01f93ba7962d34d54c3 | 95b965eae698b31400d38b6d224a240b07d73cd7ac2f761bd08640a03c779664 | 17,039 | 17,015 | 34,054 | package project
import (
"context"
"errors"
"log"
"time"
project_utils "github.com/litmuschaos/litmus/chaoscenter/authentication/api/utils"
"github.com/litmuschaos/litmus/chaoscenter/authentication/pkg/entities"
"github.com/litmuschaos/litmus/chaoscenter/authentication/pkg/utils"
"go.mongodb.org/mongo-driver... | package project
import (
"context"
"errors"
"log"
"time"
project_utils "github.com/litmuschaos/litmus/chaoscenter/authentication/api/utils"
"github.com/litmuschaos/litmus/chaoscenter/authentication/pkg/entities"
"github.com/litmuschaos/litmus/chaoscenter/authentication/pkg/utils"
"go.mongodb.org/mongo-driver... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 95b965eae698b31400d38b6d224a240b07d73cd7ac2f761bd08640a03c779664 | 1 |
00207185d69fded9afe38c418a63a59187c761bf55a84f6028e5cb31109b6b83 | dnote/dnote | 1610b41e18a814b7aa7f4f784ba283794150853f | pkg/cli/validate/books.go | apache-2.0 | 3,044 | source | false | . | github.com/dnote/dnote | 1.25 | go version go1.26.5 darwin/arm64 | 0e3314b38fd385c7917c64dc43a660de3fbe2b1dff004eb7587ba13e594a3783 | 26034e291d783fcfb20d117b5d93dae8f471762824a4b750573ae97bfc001fab | 2,041 | 2,007 | 4,048 | /* Copyright 2025 Dnote Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | /* Copyright 2025 Dnote Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 26034e291d783fcfb20d117b5d93dae8f471762824a4b750573ae97bfc001fab | 1 |
00219f43fcb15977904f9616cbd3f0109ed4e8630951e659842510342d2f233d | aws/karpenter-provider-aws | 692ccdd0629e488300821443f0fa0bc3c3e08047 | pkg/providers/subnet/subnet.go | apache-2.0 | 7,668 | source | false | . | github.com/aws/karpenter-provider-aws | 1.26.5 | go version go1.26.5 darwin/arm64 | e5f23db3bf0ca809903bd9e610d4887cb872ecbdc668ab313a07523c0db2aa8a | aa419f5242df3895d54bd0406639df38c31380416bbac8f3434f2e6606b4d9f2 | 11,597 | 11,592 | 23,189 | /*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License i... | /*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License i... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | aa419f5242df3895d54bd0406639df38c31380416bbac8f3434f2e6606b4d9f2 | 1 |
002579a418db3e66a25c4f8d030833f5caceb466eeaa9db29ac85f682b3e5735 | luckyPipewrench/pipelock | 68eb7c90f74ed8963aff6eaa8e3162522ed9a122 | internal/mcp/jsonrpc/jsonrpc_test.go | apache-2.0 | 755 | test | true | . | github.com/luckyPipewrench/pipelock | 1.25.0 | go version go1.26.5 darwin/arm64 | ca73a59ade67d1baf094b22fea4a229f714bd47e598a9b11f5413abf3ad0ef1a | 21809807e06156a81da0788eb302c3d60bc5700a8656a48163ef39540db62aeb | 18,478 | 18,418 | 36,896 | // Copyright 2026 Josh Waldrep
// SPDX-License-Identifier: Apache-2.0
package jsonrpc
import (
"encoding/json"
"fmt"
"regexp"
"strconv"
"strings"
"testing"
)
// depthGuardLeaf is the sentinel string placed at the bottom of deeply-nested
// test JSON to verify the extraction depth guard.
const depthGuardLeaf = ... | // Copyright 2026 Josh Waldrep
// SPDX-License-Identifier: Apache-2.0
package jsonrpc
import (
"encoding/json"
"fmt"
"regexp"
"strconv"
"strings"
"testing"
)
// depthGuardLeaf is the sentinel string placed at the bottom of deeply-nested
// test JSON to verify the extraction depth guard.
const depthGuardLeaf = ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 21809807e06156a81da0788eb302c3d60bc5700a8656a48163ef39540db62aeb | 1 |
0028bc46bb017f3eb0385b9a6a239a3443ded4c95460b0c804876ebd64098f1c | unxed/f4 | 6efd92e272e3010f33eb62bb31272337ebaeadb4 | history_provider_test.go | bsd-3-clause | 129 | test | true | . | github.com/unxed/f4 | 1.25.5 | go version go1.26.5 darwin/arm64 | a6a0b6c572c05966363c98673199286099617692f79a95cf08c66be1a0a599c0 | 11e3aa27446a44c3a226d1b3ac207fef94e16d1758ff793139fc85762e7e53ef | 2,084 | 2,078 | 4,162 | package main
import (
"os"
"path/filepath"
"strconv"
"testing"
"github.com/unxed/vtui"
)
func TestF4HistoryProvider_Persistence(t *testing.T) {
tmpDir := t.TempDir()
dbPath := filepath.Join(tmpDir, "history.json")
hp := &F4HistoryProvider{
path: dbPath,
data: make(map[string][]string),
}
// 1. Save d... | package main
import (
"os"
"path/filepath"
"strconv"
"testing"
"github.com/unxed/vtui"
)
func TestF4HistoryProvider_Persistence(t *testing.T) {
tmpDir := t.TempDir()
dbPath := filepath.Join(tmpDir, "history.json")
hp := &F4HistoryProvider{
path: dbPath,
data: make(map[string][]string),
}
// 1. Save d... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 11e3aa27446a44c3a226d1b3ac207fef94e16d1758ff793139fc85762e7e53ef | 1 |
002a1e18e9909c4867ea7d80e1c7bbcf0d2b8b7c33d1d7dc82c8117027420a8d | asheshgoplani/agent-deck | f70f19e04a44541792dfc871660bf80fd138a8ed | internal/testutil/fakeclock/fakeclock_test.go | mit | 482 | test | true | . | github.com/asheshgoplani/agent-deck | 1.25.11 | go version go1.26.5 darwin/arm64 | d832aefdfb28a8447c62a81c4abeeb27b0fa4c6b2a4b5c13391a1fcd49735b55 | f7272bfdf4bcfa36bafef22105428ae2d86fe08c33debd4695ddd6cf2caaff72 | 2,201 | 2,172 | 4,373 | package fakeclock_test
import (
"sync"
"testing"
"time"
"github.com/asheshgoplani/agent-deck/internal/testutil/fakeclock"
)
func TestNew_StartsAtSeed(t *testing.T) {
seed := time.Date(2026, 1, 2, 3, 4, 5, 0, time.UTC)
c := fakeclock.New(seed)
if got := c.Now(); !got.Equal(seed) {
t.Fatalf("Now()=%v want %v"... | package fakeclock_test
import (
"sync"
"testing"
"time"
"github.com/asheshgoplani/agent-deck/internal/testutil/fakeclock"
)
func TestNew_StartsAtSeed(t *testing.T) {
seed := time.Date(2026, 1, 2, 3, 4, 5, 0, time.UTC)
c := fakeclock.New(seed)
if got := c.Now(); !got.Equal(seed) {
t.Fatalf("Now()=%v want %v"... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | f7272bfdf4bcfa36bafef22105428ae2d86fe08c33debd4695ddd6cf2caaff72 | 1 |
002b9b540eeed8a495cd45f1d089d22b8d1bfe67dbd54f5777d633af0693c46a | projectdiscovery/nuclei | 85723be139cfcd09825c10b271369ed102cbd7e8 | pkg/utils/telnetmini/telnet.go | mit | 29,743 | source | false | . | github.com/projectdiscovery/nuclei/v3 | 1.25.7 | go version go1.26.5 darwin/arm64 | e6a37df04d73f636548abefd1ee4eb81ab7b5232f9581dbab27f8953b28bbfb1 | d687052dfbb05b84a2bf5e040ac57f87bc059ef2222b753e12271f4717d4104f | 9,908 | 9,941 | 19,849 | // telnetmini.go
// Minimal Telnet helper for authentication + simple I/O over an existing or new connection.
package telnetmini
import (
"bufio"
"context"
"errors"
"fmt"
"io"
"net"
"strings"
"time"
)
// Telnet protocol constants
const (
IAC = 255 // Interpret As Command
WILL = 251 // Will
WONT ... | // telnetmini.go
// Minimal Telnet helper for authentication + simple I/O over an existing or new connection.
package telnetmini
import (
"bufio"
"context"
"errors"
"fmt"
"io"
"net"
"strings"
"time"
)
// Telnet protocol constants
const (
IAC = 255 // Interpret As Command
WILL = 251 // Will
WONT ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | d687052dfbb05b84a2bf5e040ac57f87bc059ef2222b753e12271f4717d4104f | 1 |
002c77b99df0f702a952f9a15cda806155467af1bcdfbac8716eb21923911a21 | minekube/gate | aa50f2aced06b36a8faed479aa093c2b43960cfc | pkg/edition/java/proto/util/queue/packet_queue_test.go | apache-2.0 | 1,062 | test | true | . | go.minekube.com/gate | 1.26 | go version go1.26.5 darwin/arm64 | 8c71d545de2529b4a75e9eb321a6c013e4eb880e7b7ee3e4b9db549c05d7d0e0 | 5bfb746aa4219d5f63e9b61abefaf7e04f7018bc93677063ca9ef25fe9d4a6ec | 1,581 | 1,575 | 3,156 | package queue
import (
"io"
"testing"
"github.com/stretchr/testify/require"
"go.minekube.com/gate/pkg/edition/java/proto/version"
"go.minekube.com/gate/pkg/gate/proto"
)
// dummyPlayPacket is a packet that is NOT registered in CONFIG state,
// so it will be queued by PlayPacketQueue.
type dummyPlayPacket struct... | package queue
import (
"io"
"testing"
"github.com/stretchr/testify/require"
"go.minekube.com/gate/pkg/edition/java/proto/version"
"go.minekube.com/gate/pkg/gate/proto"
)
// dummyPlayPacket is a packet that is NOT registered in CONFIG state,
// so it will be queued by PlayPacketQueue.
type dummyPlayPacket struct... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 5bfb746aa4219d5f63e9b61abefaf7e04f7018bc93677063ca9ef25fe9d4a6ec | 1 |
002d09727f1d1dad37c37fe648b1370750505e034ae2a131a88997d9c2af3d90 | onsi/ginkgo | 09bbf5fe63a392c8616dc1c80257b177e2aa7033 | ginkgo/automaxprocs/cpu_quota_linux.go | mit | 9,021 | source | false | . | github.com/onsi/ginkgo/v2 | 1.25.0 | go version go1.26.5 darwin/arm64 | 79deb15583523d994be628a83808cbcadb5c8147b4fd66e12d74d2c40aff45f3 | a45921d9e4ceb26b861c476239ababa71d750012f37cd1a179f449132c5caba0 | 2,282 | 2,266 | 4,548 | // Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... | // Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | a45921d9e4ceb26b861c476239ababa71d750012f37cd1a179f449132c5caba0 | 1 |
002d2701765a756032f8bd03f35617811752de66750628b532f7a85d7639b7d7 | project-dalec/dalec | 91a8ea64cfe1e790a9e9dc54bcf8861b550389f1 | targets/linux/distro_handler.go | apache-2.0 | 314 | source | false | . | github.com/project-dalec/dalec | 1.25.9 | go version go1.26.5 darwin/arm64 | 00714e0cf3e4d23211e171aee76a080a1270ec971b8f43c1e96d44b69afd4ce8 | 5dbf330ca2fb5091e308731b04e689665764b98bf57db107916f3695b8ef8fcc | 13,377 | 13,365 | 26,742 | package linux
import (
"context"
_ "embed"
"encoding/json"
"fmt"
"sort"
"strings"
"github.com/containerd/platforms"
"github.com/moby/buildkit/client/llb"
"github.com/moby/buildkit/client/llb/sourceresolver"
"github.com/moby/buildkit/frontend/dockerui"
gwclient "github.com/moby/buildkit/frontend/gateway/cli... | package linux
import (
"context"
_ "embed"
"encoding/json"
"fmt"
"maps"
"sort"
"strings"
"github.com/containerd/platforms"
"github.com/moby/buildkit/client/llb"
"github.com/moby/buildkit/client/llb/sourceresolver"
"github.com/moby/buildkit/frontend/dockerui"
gwclient "github.com/moby/buildkit/frontend/gat... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 5dbf330ca2fb5091e308731b04e689665764b98bf57db107916f3695b8ef8fcc | 1 |
002ed170d8f398697deec25ee6ffb227baec070767784b26da97de3290e3d3ce | cybertec-postgresql/pg_hardstorage | a67f25975dc71164a8947c4a6ba60f36dcbf2aa4 | internal/plugin/renderer/tap/tap_test.go | apache-2.0 | 101 | test | true | . | github.com/cybertec-postgresql/pg_hardstorage | 1.26 | go version go1.26.5 darwin/arm64 | af261c3d42867df638a038baf52d026f82c2931cb6ce34709904595f428da952 | 0cebf35a8e6335f711e71298492f9b11b797e1653d0712416feb5e6312f54c23 | 6,962 | 6,965 | 13,927 | package tap_test
import (
"bytes"
"strings"
"testing"
"github.com/cybertec-postgresql/pg_hardstorage/internal/output"
"github.com/cybertec-postgresql/pg_hardstorage/internal/plugin/renderer/tap"
)
// renderResult is a small helper that runs the TAP renderer against
// a given Result and returns the rendered str... | package tap_test
import (
"bytes"
"strings"
"testing"
"github.com/cybertec-postgresql/pg_hardstorage/internal/output"
"github.com/cybertec-postgresql/pg_hardstorage/internal/plugin/renderer/tap"
)
// renderResult is a small helper that runs the TAP renderer against
// a given Result and returns the rendered str... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 0cebf35a8e6335f711e71298492f9b11b797e1653d0712416feb5e6312f54c23 | 1 |
00307c7168dc1059dce379ec07100a6288182867804eae107f4affac7743c081 | boshu2/agentops | d306077855514bb97ddf251d1dd0d32c461bb333 | cli/internal/skills/load.go | apache-2.0 | 408 | source | false | cli | github.com/boshu2/agentops/cli | 1.26 | go version go1.26.5 darwin/arm64 | 10f807e9c873901c5345b22deaa4a80cfb66ea166a9be1429bf9fefc6f4bf37c | abe3bb35a013a1587893a56ec04719b51f0e7e5b9e25a31bf0f479ae19752316 | 4,392 | 4,381 | 8,773 | package skills
import (
"fmt"
"os"
"path/filepath"
"sort"
"strings"
)
// Load reads every skills/<name>/SKILL.md under skillsDir, parses its
// frontmatter, and returns the catalog as SkillMeta sorted by name. Directories
// without a readable SKILL.md are skipped. There is no static index file — the
// catalog ... | package skills
import (
"fmt"
"os"
"path/filepath"
"sort"
"strings"
)
// Load reads every skills/<name>/SKILL.md under skillsDir, parses its
// frontmatter, and returns the catalog as SkillMeta sorted by name. Directories
// without a readable SKILL.md are skipped. There is no static index file — the
// catalog ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | abe3bb35a013a1587893a56ec04719b51f0e7e5b9e25a31bf0f479ae19752316 | 1 |
0030e9646c2f54c614a7a183eb963023d066b3512251c60cea2f5c587798707b | knative/serving | dbce551f802c2e3b5fe4275fe7370275568ad717 | pkg/reconciler/route/controller.go | apache-2.0 | 6,072 | source | false | . | knative.dev/serving | 1.25.0 | go version go1.26.5 darwin/arm64 | ea957563c164032c0345ce1b6bf937e41432d24e62b3ad320db545f54c3e6ef2 | ea6e63ab32c12f4a860b042da23de064055b2e268bed69cca8d70c4965d7d85e | 5,045 | 5,029 | 10,074 | /*
Copyright 2019 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | /*
Copyright 2019 The Knative Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | ea6e63ab32c12f4a860b042da23de064055b2e268bed69cca8d70c4965d7d85e | 1 |
003173610a3947ba8affb7464e3ede8096ca3f3f980b3a9537caaac6919307b0 | google/adk-go | 0c8812640d082885894d2e690a15da58ee0fbd7f | model/registry_test.go | apache-2.0 | 8,530 | test | true | . | google.golang.org/adk/v2 | 1.25.0 | go version go1.26.5 darwin/arm64 | 16ef3759d32fd6d406ebbaa38f48a6b90619f316dc15cfc0ab2ac3f72571352e | 1f2bb46e7ba4ba549ee8a1d595d28c855821e747dc24e4aed3eca5f8c19d1baa | 4,779 | 4,773 | 9,552 | // Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | // Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 1f2bb46e7ba4ba549ee8a1d595d28c855821e747dc24e4aed3eca5f8c19d1baa | 1 |
003723bb3b72354a44470caefb7d74f841128fdeca350d00a373c793bc5565e6 | infiniflow/ragflow | 891261e1085d746fba45701fe9d94cac6ccbccdd | internal/parser/parser/pdf_parser_docling.go | apache-2.0 | 84,812 | source | false | . | ragflow | 1.26.4 | go version go1.26.5 darwin/arm64 | b50e4f51f496e7a3b0b356f634d802492b3a77a0db539de308e8c85885a6e4c2 | cacee53334248382ea8631372ee2afdfb0f037ae80d78c40dbcb5d698cda113d | 7,342 | 7,310 | 14,652 | package parser
import (
"context"
"encoding/base64"
"encoding/json"
"fmt"
"io"
"ragflow/internal/common"
"strings"
models "ragflow/internal/entity/models"
)
type doclingChunk struct {
Text string `json:"text"`
Chunk *struct {
Text string `json:"text"`
} `json:"chunk"`
}
type doclingDocument struct {
... | package parser
import (
"context"
"encoding/base64"
"encoding/json"
"fmt"
"io"
"ragflow/internal/common"
"strings"
models "ragflow/internal/entity/models"
)
type doclingChunk struct {
Text string `json:"text"`
Chunk *struct {
Text string `json:"text"`
} `json:"chunk"`
}
type doclingDocument struct {
... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | cacee53334248382ea8631372ee2afdfb0f037ae80d78c40dbcb5d698cda113d | 1 |
00374746d92b5b138aeb73ccd5e670d551f920baf7aabeaa10262c06247dac39 | paralus/paralus | 209be7ff8aac08e9a53e7681a68a182783bb0a7a | pkg/gateway/httpbody.go | apache-2.0 | 1,200 | source | false | . | github.com/paralus/paralus | 1.25.5 | go version go1.26.5 darwin/arm64 | 43029281bb78a03603e5d0c0e60a6eb02af59892f7805a58c7d64fb5fa36fac7 | d8d30a03bf10d49519941824771c38d64c011fb82c28891d3c2a0182d3165178 | 1,521 | 1,497 | 3,018 | package gateway
import (
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
common "github.com/paralus/paralus/proto/types/commonpb/v3"
)
// httpBodyMarshaler is a Marshaler which supports marshaling of a
// paralus.dev.common.types.v2.HttpBody message as the full response body if it is
// the actual message used ... | package gateway
import (
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
common "github.com/paralus/paralus/proto/types/commonpb/v3"
)
// httpBodyMarshaler is a Marshaler which supports marshaling of a
// paralus.dev.common.types.v2.HttpBody message as the full response body if it is
// the actual message used ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | d8d30a03bf10d49519941824771c38d64c011fb82c28891d3c2a0182d3165178 | 1 |
0037cfcb0028ad102b3dacc60c113d1e8b6ec16c2d6746b93098bf37919ccc54 | projectdiscovery/nuclei | 85723be139cfcd09825c10b271369ed102cbd7e8 | pkg/tmplexec/generic/exec.go | mit | 29,743 | source | false | . | github.com/projectdiscovery/nuclei/v3 | 1.25.7 | go version go1.26.5 darwin/arm64 | 422cd210a5ce2e37bbf2083707e764ebf91238fdee1cda3a96dc7d14ca7f6351 | 550009330d6782d8071aeddd8548a6178e74311be3916fdb66e0f9943e58fa41 | 3,160 | 3,144 | 6,304 | package generic
import (
"sync/atomic"
"github.com/projectdiscovery/gologger"
"github.com/projectdiscovery/nuclei/v3/pkg/output"
"github.com/projectdiscovery/nuclei/v3/pkg/protocols"
"github.com/projectdiscovery/nuclei/v3/pkg/scan"
"github.com/projectdiscovery/nuclei/v3/pkg/tmplexec/utils"
mapsutil "github.com... | package generic
import (
"sync/atomic"
"github.com/projectdiscovery/gologger"
"github.com/projectdiscovery/nuclei/v3/pkg/output"
"github.com/projectdiscovery/nuclei/v3/pkg/protocols"
"github.com/projectdiscovery/nuclei/v3/pkg/scan"
"github.com/projectdiscovery/nuclei/v3/pkg/tmplexec/utils"
mapsutil "github.com... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 550009330d6782d8071aeddd8548a6178e74311be3916fdb66e0f9943e58fa41 | 1 |
00380a489385b6f77fa623c7c78a946212bb33750c0f752bb9bffef4bda354cc | turbot/steampipe-plugin-aws | 5b4b0511f4251a99294e1fe5134f73068ae78694 | aws/table_aws_securityhub_hub.go | apache-2.0 | 228 | source | false | . | github.com/turbot/steampipe-plugin-aws | 1.26.0 | go version go1.26.5 darwin/arm64 | cf68381acb1bcb828ff999868a92b1735d09b52ed7ab401637f20e384a5d5f00 | b95bf6c54fe058924de43d8a9e2ce5076e2ffcc0d6aa4cb2799793d9ead027f7 | 5,900 | 5,868 | 11,768 | package aws
import (
"context"
"strings"
"github.com/aws/aws-sdk-go-v2/service/securityhub"
"github.com/turbot/steampipe-plugin-sdk/v6/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v6/plugin"
"github.com/turbot/steampipe-plugin-sdk/v6/plugin/transform"
)
//// TABLE DEFINITION
func tableAwsSecurityHub(_... | package aws
import (
"context"
"strings"
"github.com/aws/aws-sdk-go-v2/service/securityhub"
"github.com/turbot/steampipe-plugin-sdk/v6/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v6/plugin"
"github.com/turbot/steampipe-plugin-sdk/v6/plugin/transform"
)
//// TABLE DEFINITION
func tableAwsSecurityHub(_... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | b95bf6c54fe058924de43d8a9e2ce5076e2ffcc0d6aa4cb2799793d9ead027f7 | 1 |
003838d92508b6b02022b7f1eeba06e859092467b4fab6187ab50895a3204bfb | leodip/goiabada | 80e87b997021789187411e3b07655204a375354e | src/adminconsole/internal/handlers/adminuserhandlers/handler_admin_user_profile_picture.go | mit | 192 | source | false | src/adminconsole | github.com/leodip/goiabada/adminconsole | 1.26.4 | go version go1.26.5 darwin/arm64 | 8dcc3807c6e499b9e254973d19456d3b95cbe61f67a79c3fa929ce33960d6ee1 | 52d63a2211b2b26a539b17ff9b133a9cea27740df0c68aab78ccde73560d1235 | 4,754 | 4,658 | 9,412 | package adminuserhandlers
import (
"encoding/json"
"io"
"net/http"
"strconv"
"github.com/go-chi/chi/v5"
"github.com/pkg/errors"
"github.com/leodip/goiabada/adminconsole/internal/apiclient"
"github.com/leodip/goiabada/adminconsole/internal/handlers"
"github.com/leodip/goiabada/core/constants"
"github.com/le... | package adminuserhandlers
import (
"encoding/json"
"io"
"net/http"
"strconv"
"github.com/go-chi/chi/v5"
"github.com/pkg/errors"
"github.com/leodip/goiabada/adminconsole/internal/apiclient"
"github.com/leodip/goiabada/adminconsole/internal/handlers"
"github.com/leodip/goiabada/core/constants"
"github.com/le... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 4b259e62f165a324109da52e01c0b928687b74e72f5dd70931842721979a018a | 2 |
003a32d373dfdd6de007f0e000185cbc51b8097e81390cb2a3d024c142d9362a | fystack/multichain-indexer | 90f4b3156c36bf048ec513e395f7dadef66f32e1 | pkg/common/stringutils/string.go | mit | 104 | source | false | . | github.com/fystack/multichain-indexer | 1.25.0 | go version go1.26.5 darwin/arm64 | 01fa9d9f5053ad751cea03074cf9766c06af3e5780e48225cafe84fc661c3f9b | 11a532b159c03793b5e34ccd4167c3c021814f2d811e85d485c9a9ddf79fdefb | 3,988 | 3,982 | 7,970 | package stringutils
import (
"crypto/rand"
"encoding/hex"
"fmt"
"math/big"
"os"
"regexp"
"strings"
"unicode"
"github.com/fystack/multichain-indexer/pkg/common/logger"
"github.com/tyler-smith/go-bip39"
)
var (
cachedWordList []string
)
func init() {
cachedWordList = bip39.GetWordList() // Only load once
... | package stringutils
import (
"crypto/rand"
"encoding/hex"
"fmt"
"math/big"
"os"
"regexp"
"strings"
"unicode"
"github.com/fystack/multichain-indexer/pkg/common/logger"
"github.com/tyler-smith/go-bip39"
)
var (
cachedWordList []string
)
func init() {
cachedWordList = bip39.GetWordList() // Only load once
... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 11a532b159c03793b5e34ccd4167c3c021814f2d811e85d485c9a9ddf79fdefb | 1 |
003a76b437351e53b739940ed24cfa6a3f0f55ac0f8e6d8f72874abb698a539a | JamesWoolfenden/sato | e35d41d2331367218502c27ba2bda4f6e26c17a1 | src/arm/replace.go | apache-2.0 | 109 | source | false | . | sato | 1.26 | go version go1.26.5 darwin/arm64 | 77132e3eb98dac54957494052cdf4b2dda0a62497eb13a2ce8abfef4d6dd70fb | 272160f68ed5afc66de0be79071bdc812af3b5f51771f033bca0173a32810102 | 11,095 | 11,020 | 22,115 | package arm
import (
"fmt"
"regexp"
"sato/src/see"
"sato/src/tfgen"
"strconv"
"strings"
"unicode"
"github.com/rs/zerolog/log"
)
// subResourceSuffix maps ARM sub-resource types that translate to a block on
// a parent terraform resource rather than a resource of their own. The value
// is the attribute path ... | package arm
import (
"fmt"
"regexp"
"sato/src/see"
"sato/src/tfgen"
"strconv"
"strings"
"unicode"
"github.com/rs/zerolog/log"
)
// subResourceSuffix maps ARM sub-resource types that translate to a block on
// a parent terraform resource rather than a resource of their own. The value
// is the attribute path ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 272160f68ed5afc66de0be79071bdc812af3b5f51771f033bca0173a32810102 | 1 |
003be5bfc6b4f59c2469b8cdf0e54f71860589fb9f08c66c54f1ba67198445ab | ariga/atlas | a5e0aecc2bb64143bf522734f8ad88e04885fca6 | sql/internal/sqltest/sqltest.go | apache-2.0 | 8,560 | source | false | . | ariga.io/atlas | 1.26.4 | go version go1.26.5 darwin/arm64 | 096526b862936ddca23bc17dd8888b02b9dfc2f7c0a983925f204744bef8d5d7 | ad8c1369791542be6f722fb544ca6a7769ad8ab421889ea042e687173fc8f5e5 | 1,993 | 1,982 | 3,975 | // Copyright 2021-present The Atlas Authors. All rights reserved.
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.
package sqltest
import (
"database/sql/driver"
"regexp"
"strings"
"unicode"
"github.com/DATA-DOG/go-sqlmock"
)
/... | // Copyright 2021-present The Atlas Authors. All rights reserved.
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.
package sqltest
import (
"database/sql/driver"
"regexp"
"strings"
"unicode"
"github.com/DATA-DOG/go-sqlmock"
)
/... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | ad8c1369791542be6f722fb544ca6a7769ad8ab421889ea042e687173fc8f5e5 | 1 |
003c7331bc5062b01e4fead1a191cd14ffa32daa41e49a605ee75ad70418b469 | stackrox/stackrox | 48fb5cfab9aa093535c2fd358ebbdc858b71f873 | operator/internal/images/overrides_test.go | apache-2.0 | 1,298 | test | true | . | github.com/stackrox/rox | 1.26.3 | go version go1.26.5 darwin/arm64 | 04ef2865acb44c70d2b29afb73a09be2131dda51a853511e74a8754f622d0522 | f7d9b220fd3a642bf01e24dfe0ea27e1fc272d659e9d1994407fd3be9d0ab06f | 701 | 685 | 1,386 | package images
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"helm.sh/helm/v3/pkg/chartutil"
)
func TestToValues(t *testing.T) {
testOverrides := Overrides{
Main: "central.image.fullRef",
Scanner: "scanner.image.fullRef",
ScannerDB: "scanner.dbImage.f... | package images
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"helm.sh/helm/v3/pkg/chartutil"
)
func TestToValues(t *testing.T) {
testOverrides := Overrides{
Main: "central.image.fullRef",
Scanner: "scanner.image.fullRef",
ScannerDB: "scanner.dbImage.f... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | f7d9b220fd3a642bf01e24dfe0ea27e1fc272d659e9d1994407fd3be9d0ab06f | 1 |
003edc8fcac53aac6ddbab6121058811e85412ec01b02b0eed69a4bdee738bde | open-telemetry/opentelemetry-lambda | 7af6bd8e0c53a667ef6608f1cfbbce756e5b09b2 | collector/internal/telemetryapi/listener_test.go | apache-2.0 | 428 | test | true | collector | github.com/open-telemetry/opentelemetry-lambda/collector | 1.26.1 | go version go1.26.5 darwin/arm64 | 8d4498e0adfec3c5126d9e659ea42e5edc359cb03e211a81d8a32218339d7895 | 24fb8d72f82270df3cdc914431c81300f4e0d255618820e024b6c2172e3a6c79 | 8,819 | 8,795 | 17,614 | // Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | // Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 24fb8d72f82270df3cdc914431c81300f4e0d255618820e024b6c2172e3a6c79 | 1 |
003f57d0fcc17f4f0f4728b56c552477b0ff2905f6f3f7c37236765d300afa3c | kanisterio/kanister | b69ad3cb3afb8d01065b677b3079c8edaba26a82 | pkg/function/kubeops.go | apache-2.0 | 882 | source | false | . | github.com/kanisterio/kanister | 1.26.1 | go version go1.26.5 darwin/arm64 | 2e65a26fa4b102eeb16316ceeaf8821f932e26d32894c74db458d392efe2829d | eeae493ba1f7ed3efa957a3b0a931bdbbd506faece44e125b77cb27f9b4248c2 | 4,782 | 4,758 | 9,540 | // Copyright 2021 The Kanister Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | // Copyright 2021 The Kanister Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | eeae493ba1f7ed3efa957a3b0a931bdbbd506faece44e125b77cb27f9b4248c2 | 1 |
003f5c77d0b787f1a8202c57e16dabbb57f82246d0b7283cc79a51fa3a0e8d5a | kubernetes-sigs/kro | 1762f16d30670376a5b1a1892152f8fed8c7df18 | pkg/cel/library/json_test.go | apache-2.0 | 2,947 | test | true | . | github.com/kubernetes-sigs/kro | 1.26.0 | go version go1.26.5 darwin/arm64 | 5c49ec91f74c239cb5f71bea0acc7dcb35aa32689c89c8562ffb4b961f578faa | 697c260ea2f458b1f551046a86061d0afde9c34522200303923b590639ef4f1c | 5,180 | 5,132 | 10,312 | // Copyright 2025 The Kubernetes Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... | // Copyright 2025 The Kubernetes Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 697c260ea2f458b1f551046a86061d0afde9c34522200303923b590639ef4f1c | 1 |
00403182512cf7373dc86d885d3bc2ee8f800b47345a559fb2f43b9e55d52c23 | gotd/td | 731927a20b83758dbde2b2e3dd6892843cf436ae | telegram/message/internal/mkrun/generator.go | mit | 2,281 | source | false | . | github.com/gotd/td | 1.25.0 | go version go1.26.5 darwin/arm64 | 4342236d79ff9ea64d05799c376fa72ed2cb193073814929aeb19eefd0298b25 | a73bd16500b7db82d63e4698b4fd0e55db021212060a886e16870f997d1b8f3e | 337 | 329 | 666 | package mkrun
import "flag"
// Generator represents generator script.
type Generator interface {
// Name is generator name.
Name() string
// Flags sets generator flags.
Flags(set *flag.FlagSet)
// Template returns generation template.
Template() string
// Data returns associated generation data.
Data() (inter... | package mkrun
import "flag"
// Generator represents generator script.
type Generator interface {
// Name is generator name.
Name() string
// Flags sets generator flags.
Flags(set *flag.FlagSet)
// Template returns generation template.
Template() string
// Data returns associated generation data.
Data() (any, ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | a73bd16500b7db82d63e4698b4fd0e55db021212060a886e16870f997d1b8f3e | 1 |
0040cefa7b209271b0373ef4ee0deacb2afa2bd599a4fcec9d0e96162eff9ac2 | volcengine/veadk-go | 0a12c62da4c05f14eb1d421917fb4a168b0dc902 | integrations/ve_mem0/client.go | apache-2.0 | 125 | source | false | . | github.com/volcengine/veadk-go | 1.25.0 | go version go1.26.5 darwin/arm64 | 415a3c757830f34c6c17fd0dc7f5477055e12813246eb8d80328f4453b182d73 | b6c595fa5c71318bf565448c7e09bfee705f173057b6300044b776d759b37e2e | 5,352 | 5,190 | 10,542 | // Copyright (c) 2025 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2... | // Copyright (c) 2025 Beijing Volcano Engine Technology Co., Ltd. and/or its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | b6c595fa5c71318bf565448c7e09bfee705f173057b6300044b776d759b37e2e | 1 |
0041823ce9239e467ee46a7c66d8a10fcb960cf43ae478224c6702fbc1cccda6 | hyperledger/fabric-ca | 850b22dd026d133f00835eb22509af24c4fc96da | lib/servercertificates.go | apache-2.0 | 452 | source | false | . | github.com/hyperledger/fabric-ca | 1.26.3 | go version go1.26.5 darwin/arm64 | 8697f344c2dd545e17ac246ee82b728f6376cea756dd22b169c87b4f6129b758 | 4ba518ee895a7eae196d4cafefaba071d8c067d0f2ac9542068ce85c53ee658b | 4,267 | 4,256 | 8,523 | /*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package lib
import (
"fmt"
"net/http"
"os"
"github.com/cloudflare/cfssl/log"
"github.com/hyperledger/fabric-ca/lib/caerrors"
"github.com/hyperledger/fabric-ca/lib/server/certificaterequest"
cadbuser "github.com/hyperledger/fab... | /*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package lib
import (
"fmt"
"net/http"
"os"
"github.com/cloudflare/cfssl/log"
"github.com/hyperledger/fabric-ca/lib/caerrors"
"github.com/hyperledger/fabric-ca/lib/server/certificaterequest"
cadbuser "github.com/hyperledger/fab... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 4ba518ee895a7eae196d4cafefaba071d8c067d0f2ac9542068ce85c53ee658b | 1 |
00419396a0bb8c347a128c33eec33689416f83df391875de8496817a13c3a904 | Kocoro-lab/Kocoro | b60f718a19b1adf513f34e0cc81830d16499b055 | internal/mcp/supervisor.go | mit | 391 | source | false | . | github.com/Kocoro-lab/ShanClaw | 1.25.7 | go version go1.26.5 darwin/arm64 | 35303e5c441d00a936ef7f537a80ba86571fe53e50ab4742110a8607ec7e409e | e5abb13d5c746a84a88cbf649ae79d0b7f41849bafa0d1afa4a6133863288104 | 18,289 | 18,236 | 36,525 | package mcp
import (
"context"
"log"
"math/rand"
"os"
"path/filepath"
"sync"
"time"
)
// HealthState represents the health of an MCP server.
type HealthState int
const (
StateHealthy HealthState = iota
StateDegraded
StateDisconnected
)
func (s HealthState) String() string {
switch s {
case StateHealthy:... | package mcp
import (
"context"
"log"
"maps"
"math/rand"
"os"
"path/filepath"
"sync"
"time"
)
// HealthState represents the health of an MCP server.
type HealthState int
const (
StateHealthy HealthState = iota
StateDegraded
StateDisconnected
)
func (s HealthState) String() string {
switch s {
case State... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | e5abb13d5c746a84a88cbf649ae79d0b7f41849bafa0d1afa4a6133863288104 | 1 |
00419bbaeff31b61bf802dfec34c07606ac25395b035b962fb7d63f2796c5a70 | etcd-io/etcd | 12caed621b38312cc1084113415bf135c59e6457 | server/proxy/grpcproxy/metrics.go | apache-2.0 | 51,975 | source | false | server | go.etcd.io/etcd/server/v3 | 1.26 | go version go1.26.5 darwin/arm64 | 74ad37ee1d81c94acda940299dd259bcb888939fae4f241e8aec39a6175a3cb4 | a841e6e0b8ef989f43d299ae1d9c1e3488b125a7c40ca0fdecc0bc7e99faa41b | 3,467 | 3,461 | 6,928 | // Copyright 2016 The etcd Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | // Copyright 2016 The etcd Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | a841e6e0b8ef989f43d299ae1d9c1e3488b125a7c40ca0fdecc0bc7e99faa41b | 1 |
00423bf89d06a412ab9bfaa6935c51467381d85c56837a821da28f016762c78c | jenkins-x/lighthouse | 0017598db92ba133e42a415d60d07452989dc794 | pkg/repoowners/repoowners_test.go | apache-2.0 | 188 | test | true | . | github.com/jenkins-x/lighthouse | 1.26.3 | go version go1.26.5 darwin/arm64 | 5aa08a319d915433d2d53c279f3adba6c8be713cabfa56aac98d5bd3f1c7b43f | 485cb2dde560bcbdbdc158164dca3b06a0ce6a82349619991d7e5fa56ad9cb5f | 29,985 | 30,002 | 59,987 | /*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | /*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 485cb2dde560bcbdbdc158164dca3b06a0ce6a82349619991d7e5fa56ad9cb5f | 1 |
0042444e4d42f6f341eca0c8e10fd4e9a4a5a4ae27d38949830729fec0c385e9 | wannanbigpig/gin-layout | 115db37da8551644de1c9cc6c9d8fb17498ddc3c | cmd/cron/cron.go | mit | 157 | source | false | . | github.com/wannanbigpig/gin-layout | 1.26 | go version go1.26.5 darwin/arm64 | 8b8c75d664f11fe53cbdb89a3968934b9cb31923f4eb81dbbebd25ffea5ce8dd | c5c727904703b6ba54102abacd21b135220281a8d95b8d29c12e219db056198b | 3,364 | 3,348 | 6,712 | package cron
import (
"context"
"fmt"
"os"
"os/signal"
"syscall"
"time"
"github.com/robfig/cron/v3"
"github.com/spf13/cobra"
"go.uber.org/zap"
"github.com/wannanbigpig/gin-layout/cmd/bootstrapx"
"github.com/wannanbigpig/gin-layout/data"
log "github.com/wannanbigpig/gin-layout/internal/pkg/logger"
)
var ... | package cron
import (
"context"
"fmt"
"os"
"os/signal"
"syscall"
"time"
"github.com/robfig/cron/v3"
"github.com/spf13/cobra"
"go.uber.org/zap"
"github.com/wannanbigpig/gin-layout/cmd/bootstrapx"
"github.com/wannanbigpig/gin-layout/data"
log "github.com/wannanbigpig/gin-layout/internal/pkg/logger"
)
var ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | c5c727904703b6ba54102abacd21b135220281a8d95b8d29c12e219db056198b | 1 |
0043512f68f6e994cd3eaaa8ae9accf03c6cbbd440aea139a2715585b5161642 | kubernetes-sigs/cluster-api | a132cfa06c2eb656dab99d359ed88db114ab24de | util/util.go | apache-2.0 | 4,256 | source | false | . | sigs.k8s.io/cluster-api | 1.26.0 | go version go1.26.5 darwin/arm64 | b3711da7ed39b6e6fa54396958adb182d1bb7b8344fc0af44ccda451b74a74a3 | 7fafdc6749b86c6fb1a6d6d896fddd09b8b510103b4349f2f4e054ba6f5ea4e4 | 26,897 | 26,874 | 53,771 | /*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | /*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 7fafdc6749b86c6fb1a6d6d896fddd09b8b510103b4349f2f4e054ba6f5ea4e4 | 1 |
00435e5938de057787a7820e7acd2818bdeee4d11feb45173b1c3fc11339d140 | warpdl/warpdl | cea494b28086c4ff210c643cea24b0bfee5858f2 | pkg/warplib/dloader_mkdir_test.go | mit | 102 | test | true | . | github.com/warpdl/warpdl | 1.26 | go version go1.26.5 darwin/arm64 | f3ad4d50f493f73f1ccb633b85dbb868b10022fb5c1d1fe62fb7ce6e4c981ac0 | 48e49f49f170d6eb4ffa71392eb04f04edacfce9c1dd69e7c330e160a1abf091 | 10,050 | 9,954 | 20,004 | package warplib
import (
"bytes"
"net/http"
"net/http/httptest"
"os"
"path/filepath"
"runtime"
"strconv"
"sync"
"sync/atomic"
"testing"
"time"
)
// TestSetupDlPathConcurrent tests concurrent directory creation by multiple downloaders.
// This test SHOULD FAIL with the current implementation using WarpMkdir... | package warplib
import (
"bytes"
"net/http"
"net/http/httptest"
"os"
"path/filepath"
"runtime"
"strconv"
"sync"
"sync/atomic"
"testing"
"time"
)
// TestSetupDlPathConcurrent tests concurrent directory creation by multiple downloaders.
// This test SHOULD FAIL with the current implementation using WarpMkdir... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 48e49f49f170d6eb4ffa71392eb04f04edacfce9c1dd69e7c330e160a1abf091 | 1 |
004371c719bdbe363ee4a8e188508619e6f24144446d8480bbf3c0637be2e3ed | infiniflow/ragflow | 891261e1085d746fba45701fe9d94cac6ccbccdd | internal/ingestion/component/chunker/token_test.go | apache-2.0 | 84,812 | test | true | . | ragflow | 1.26.4 | go version go1.26.5 darwin/arm64 | 791efaaff61ba2c1fee588685f30231702d40c630927b9257986d34f73855242 | f54bd580346cd400ec0a87bf92a319c4e689f2fd7f5580f4afaaacefb1e6dab5 | 10,318 | 10,302 | 20,620 | //
// Copyright 2026 The InfiniFlow Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless r... | //
// Copyright 2026 The InfiniFlow Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless r... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | f54bd580346cd400ec0a87bf92a319c4e689f2fd7f5580f4afaaacefb1e6dab5 | 1 |
0043db2e4ffb6b95c2e7ea5260a4dbca203c044a3db4a37901bb44d448f8084e | qor/auth | 6aa52bf8a9d609f73803a5528c6bc5e923473494 | authority/authority_rule.go | mit | 774 | source | false | . | github.com/qor/auth | 1.25.0 | go version go1.26.5 darwin/arm64 | f4f4c0b3c378cdb7621c8abab538612d31dc0b76bf0f3a723b005a9d4501946d | cb4499dbac7f5eb9a6ee3745e46d0f1ed235cc86e8d5200c2e86870ec9e9bc76 | 1,298 | 1,290 | 2,588 | package authority
import (
"net/http"
"time"
"github.com/qor/roles"
)
// Rule authority rule's definition
type Rule struct {
TimeoutSinceLastLogin time.Duration
LongestDistractionSinceLastLogin time.Duration
}
// Handler generate roles checker
func (authority Authority) Handler(rule Rule) roles.Chec... | package authority
import (
"net/http"
"time"
"github.com/qor/roles"
)
// Rule authority rule's definition
type Rule struct {
TimeoutSinceLastLogin time.Duration
LongestDistractionSinceLastLogin time.Duration
}
// Handler generate roles checker
func (authority Authority) Handler(rule Rule) roles.Chec... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | cb4499dbac7f5eb9a6ee3745e46d0f1ed235cc86e8d5200c2e86870ec9e9bc76 | 1 |
004412fde3f85672e78f0e7ab3a47de00e2cbf37947f2749c9b2cff931756c47 | prometheus/statsd_exporter | 3f432595d8985fea4e8bedba730fddabb64f27df | exporter_benchmark_test.go | apache-2.0 | 982 | benchmark | true | . | github.com/prometheus/statsd_exporter | 1.25.0 | go version go1.26.5 darwin/arm64 | 6d9186ffc90961003717e12f9f2383c1dafee7405fbade8726913c996fa97c3c | 383b3bc46bde2ad8cc18d75f15e92869f5914a5b639e3fe608cf7b02e7e3dc56 | 5,480 | 5,437 | 10,917 | // Copyright 2013 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | // Copyright 2013 The Prometheus Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 383b3bc46bde2ad8cc18d75f15e92869f5914a5b639e3fe608cf7b02e7e3dc56 | 1 |
00444c328908b5565962a7583041e11caed20b6ac227aa3702467aa595c81167 | kaitranntt/CLIProxyAPIPlus | 3aae95a1a7b835c31f65af17756494cb615a32cd | internal/auth/kiro/refresh_utils.go | mit | 169 | source | false | . | github.com/router-for-me/CLIProxyAPI/v7 | 1.26.0 | go version go1.26.5 darwin/arm64 | 7915a738d38e4976ae309eb651c9018af27166dfe0b797e8a4c175f73a3802cf | d2fab46e97dbef36d911897592085c1115a8aa0a07ac49fd5ca7307c2b245cfb | 4,762 | 4,725 | 9,487 | // Package kiro provides refresh utilities for Kiro token management.
package kiro
import (
"context"
"fmt"
"time"
log "github.com/sirupsen/logrus"
)
// RefreshResult contains the result of a token refresh attempt.
type RefreshResult struct {
TokenData *KiroTokenData
Error error
UsedFallback bool //... | // Package kiro provides refresh utilities for Kiro token management.
package kiro
import (
"context"
"fmt"
"time"
log "github.com/sirupsen/logrus"
)
// RefreshResult contains the result of a token refresh attempt.
type RefreshResult struct {
TokenData *KiroTokenData
Error error
UsedFallback bool //... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | d2fab46e97dbef36d911897592085c1115a8aa0a07ac49fd5ca7307c2b245cfb | 1 |
00444efaec4b0cf71e44485be2837259a6fb1a6b163969514d74fe9f1b62f264 | cloudnative-pg/cloudnative-pg | fa3b9af35ef6b81691bb3d3d62256bfcbde7e4bf | api/v1/subscription_funcs.go | apache-2.0 | 8,961 | source | false | . | github.com/cloudnative-pg/cloudnative-pg | 1.26.5 | go version go1.26.5 darwin/arm64 | da8a8b30774dd4098d17d757a7f4463a594b4f9bfe96b6fb6b09b7e1cbb19f19 | 0c49909839ed9ce9a02f4f1203eeb4eb6005b303a70034863122b5d008e085a5 | 2,736 | 2,710 | 5,446 | /*
Copyright © contributors to CloudNativePG, established as
CloudNativePG a Series of LF Projects, LLC.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2... | /*
Copyright © contributors to CloudNativePG, established as
CloudNativePG a Series of LF Projects, LLC.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 0c49909839ed9ce9a02f4f1203eeb4eb6005b303a70034863122b5d008e085a5 | 1 |
0044ae616ce548b9da4dd016131085cdc49222b4a48d178f9f6bff476951ca45 | crossplane-contrib/provider-helm | 9a6fb4bcc26a26b2accb95395e536a819cff5ce6 | pkg/clients/helm/oci_test.go | apache-2.0 | 142 | test | true | . | github.com/crossplane-contrib/provider-helm | 1.26.4 | go version go1.26.5 darwin/arm64 | fc8b3b6f32feb1915e8e6d06f38aeb75effa17b4dcfb3f25021c0e784b4ba359 | 6065bf43a06f05fea13aa5a62348420220d5d33088e7281bd9ff24ec583ae4d0 | 21,881 | 21,857 | 43,738 | package helm
import (
"fmt"
"os"
"path/filepath"
"strings"
"testing"
"github.com/crossplane/crossplane-runtime/v2/pkg/errors"
"github.com/crossplane/crossplane-runtime/v2/pkg/logging"
"github.com/crossplane/crossplane-runtime/v2/pkg/test"
"github.com/google/go-cmp/cmp"
clusterv1beta1 "github.com/crossplane... | package helm
import (
"fmt"
"os"
"path/filepath"
"strings"
"testing"
"github.com/crossplane/crossplane-runtime/v2/pkg/errors"
"github.com/crossplane/crossplane-runtime/v2/pkg/logging"
"github.com/crossplane/crossplane-runtime/v2/pkg/test"
"github.com/google/go-cmp/cmp"
clusterv1beta1 "github.com/crossplane... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 6065bf43a06f05fea13aa5a62348420220d5d33088e7281bd9ff24ec583ae4d0 | 1 |
0046327e3e697839b5b4887018ec5574de08fb3e4326375bacdaf7e1d2056fcf | GoogleCloudPlatform/golang-samples | 11717ad741671c4e4ec9209718f7700b4d00c543 | firestore/save_data_set_id_random_collection.go | apache-2.0 | 4,634 | source | false | firestore | github.com/GoogleCloudPlatform/golang-samples/firestore | 1.25.0 | go version go1.26.5 darwin/arm64 | d73d9049d5ea3cd46ca3007593a9162017daf9969487dbe0a00a29b8578e25bc | a650f137e17ec1f1113a5de52774a7ec0c25cf4dd210bbeb55a290f21a12ed1f | 1,125 | 1,117 | 2,242 | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | // Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | a650f137e17ec1f1113a5de52774a7ec0c25cf4dd210bbeb55a290f21a12ed1f | 1 |
0046872191eae7101f428213e13884a8c6a4bb74fb79b387d0f26450cbce5a67 | SAP/jenkins-library | 0500577efcb8961d41dfdf69af7612a442340ed7 | pkg/reporting/reporting_test.go | apache-2.0 | 819 | test | true | . | github.com/SAP/jenkins-library | 1.25.0 | go version go1.26.5 darwin/arm64 | 814e752c0ab59b294012abf54020960d287d5b73fe7fc7b0f2ea6dd277e60d71 | c714d892c2e08122f823340feab16eb4d7c38b658c61ac910eb3efee2413090a | 7,321 | 7,306 | 14,627 | //go:build unit
// +build unit
package reporting
import (
"os"
"path/filepath"
"testing"
"time"
"github.com/stretchr/testify/assert"
)
func TestVulToMarkdown(t *testing.T) {
t.Parallel()
t.Run("success - empty", func(t *testing.T) {
t.Parallel()
vulReport := VulnerabilityReport{}
_, err := vulReport.To... | //go:build unit
package reporting
import (
"os"
"path/filepath"
"testing"
"time"
"github.com/stretchr/testify/assert"
)
func TestVulToMarkdown(t *testing.T) {
t.Parallel()
t.Run("success - empty", func(t *testing.T) {
t.Parallel()
vulReport := VulnerabilityReport{}
_, err := vulReport.ToMarkdown()
as... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | c714d892c2e08122f823340feab16eb4d7c38b658c61ac910eb3efee2413090a | 1 |
00498dae06c561c8fad176c43ac7f443af8b75f61515f9a028c8a423a1808cd4 | Azure/azure-sdk-for-go | e7bdd0d046654306ed2356ea6f26b3fd005f604f | sdk/messaging/azeventhubs/partition_client_unit_test.go | mit | 1,841 | test | true | sdk/messaging/azeventhubs | github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/v2 | 1.25.0 | go version go1.26.5 darwin/arm64 | b71f9bba79d110936a19254eb01a08b89a9f579b67e29aca4328df9a5871518b | d873d9fa37207e0ab4d572b0e36c8ed1b822e17d24f9ee6e76c54c3739bf4e31 | 7,017 | 7,006 | 14,023 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package azeventhubs
import (
"context"
"fmt"
"testing"
"time"
"github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/v2/internal"
"github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/v2/internal/test"
... | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package azeventhubs
import (
"context"
"fmt"
"testing"
"time"
"github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/v2/internal"
"github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/v2/internal/test"
... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | d873d9fa37207e0ab4d572b0e36c8ed1b822e17d24f9ee6e76c54c3739bf4e31 | 1 |
0049ab9ef553a25027d2282ab9167b7519db83749b4fb05c6d1d8475ec548d24 | golang/arch | 3272c9030fbd9910980beef07069be5629f57e92 | x86/x86spec/parse.go | bsd-3-clause | 160 | source | false | . | golang.org/x/arch | 1.25.0 | go version go1.26.5 darwin/arm64 | e578692b3fc89bdf0a6988ed59e8cbba5a5ad38e1da033a35ff453571ff7b41e | ca8b1bbf8ae44a931cafffdd40c5c45b4ff9c494c22a8fa76b8b622b3a162015 | 23,468 | 23,565 | 47,033 | // Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"bytes"
"errors"
"fmt"
"io"
"log"
"math"
"os"
"reflect"
"regexp"
"sort"
"strconv"
"strings"
"time"
"rsc.io/pdf"
)
// lis... | // Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"bytes"
"errors"
"fmt"
"io"
"log"
"math"
"os"
"reflect"
"regexp"
"sort"
"strconv"
"strings"
"time"
"rsc.io/pdf"
)
// lis... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | ca8b1bbf8ae44a931cafffdd40c5c45b4ff9c494c22a8fa76b8b622b3a162015 | 1 |
004a01538ff453e62a58f848e35d73060cde80dd6d6861f7b293075cd79ba419 | cloudnative-pg/plugin-barman-cloud | 2cc4e9905db6b1d1c5788dd6093a1a7d330d9064 | test/e2e/internal/objectstore/minio.go | apache-2.0 | 174 | source | false | . | github.com/cloudnative-pg/plugin-barman-cloud | 1.26.3 | go version go1.26.5 darwin/arm64 | 782087888daf35a1eea52ca8cc20d0ed955aab350621d6cebaf68489c4e439ed | 46d72661a9e717d582f49879f795f8008faf4051453f7f3266b2df41bb47bb4b | 6,157 | 6,134 | 12,291 | /*
Copyright © contributors to CloudNativePG, established as
CloudNativePG a Series of LF Projects, LLC.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2... | /*
Copyright © contributors to CloudNativePG, established as
CloudNativePG a Series of LF Projects, LLC.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 46d72661a9e717d582f49879f795f8008faf4051453f7f3266b2df41bb47bb4b | 1 |
004a385a010e52f476776ab9ffe03a6d6cf8fe168ac380e0a62671322b4d89ce | goccy/bigquery-emulator | cb8555bee739c794343337e8c3242b59d5d7470a | internal/metadata/table.go | mit | 1,117 | source | false | . | github.com/goccy/bigquery-emulator | 1.25.0 | go version go1.26.5 darwin/arm64 | f8f62cc7c6cb58b3a7992cb4d601c0560fc6a252d8713949fbc087332a9a75de | 9f846c8a57295ffe5d1bbdb2ac5c84c3b2a75aba19ebb855a3243e9c39137f99 | 2,361 | 2,301 | 4,662 | package metadata
import (
"context"
"database/sql"
"fmt"
"github.com/goccy/go-json"
bigqueryv2 "google.golang.org/api/bigquery/v2"
)
type Table struct {
ID string
ProjectID string
DatasetID string
metadata map[string]interface{}
repo *Repository
}
// Patch shallow-merges the provided top-leve... | package metadata
import (
"context"
"database/sql"
"fmt"
"maps"
"github.com/goccy/go-json"
bigqueryv2 "google.golang.org/api/bigquery/v2"
)
type Table struct {
ID string
ProjectID string
DatasetID string
metadata map[string]any
repo *Repository
}
// Patch shallow-merges the provided top-leve... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 9f846c8a57295ffe5d1bbdb2ac5c84c3b2a75aba19ebb855a3243e9c39137f99 | 1 |
004a933368e198106bf3ee5444a297cf53d9215a1528d238c96f2cb2a517151e | dmachard/DNS-collector | e2a3f9ec7976e0dc6e6d6b656397d9087c1ea012 | workers/syslog.go | mit | 515 | source | false | . | github.com/dmachard/go-dnscollector/v2 | 1.26.4 | go version go1.26.5 darwin/arm64 | a84a3c282863289604e2e822f4d63d3fa96431692155ca76c4b26f9bba6a7e59 | 93618e788629350b47398b6598c76a0098dbb7382966d5212b2f59b36b24d178 | 10,225 | 10,214 | 20,439 | package workers
import (
"bytes"
"crypto/tls"
"encoding/json"
"time"
"strings"
syslog "github.com/dmachard/go-clientsyslog"
"github.com/dmachard/go-dnscollector/v2/dnsutils"
"github.com/dmachard/go-dnscollector/v2/pkgconfig"
"github.com/dmachard/go-dnscollector/v2/transformers"
"github.com/dmachard/go-log... | package workers
import (
"bytes"
"crypto/tls"
"encoding/json"
"time"
"strings"
syslog "github.com/dmachard/go-clientsyslog"
"github.com/dmachard/go-dnscollector/v2/dnsutils"
"github.com/dmachard/go-dnscollector/v2/pkgconfig"
"github.com/dmachard/go-dnscollector/v2/transformers"
"github.com/dmachard/go-log... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 93618e788629350b47398b6598c76a0098dbb7382966d5212b2f59b36b24d178 | 1 |
004ac5a41a31eeccc7f1aec80e48ff605192f15c8f08ca6d78d5d8a521081bf1 | google/kf | 0e89b58f54ddc9ebc159abf26c2d4c2f780e1a63 | pkg/apis/kf/v1alpha1/app_lifecycle_test.go | apache-2.0 | 405 | test | true | . | github.com/google/kf/v2 | 1.26.3 | go version go1.26.5 darwin/arm64 | 34661b2d6ac56b0dca049979ea56c5e03dad27f3328a49e59317c95d9e68a760 | b6384ca19d5668c723b425b57d1273120de4f160b300f910e28caffd63dc4218 | 31,277 | 31,261 | 62,538 | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | b6384ca19d5668c723b425b57d1273120de4f160b300f910e28caffd63dc4218 | 1 |
004c42640108940f2764b2f0ef9cddb7a57edd2f0a449aa610c439908ea8e3a1 | Insajin/autopus-adk | 2aa61c2d95b1eb6f5a2d48625d7164da603e2613 | pkg/qa/releasereadiness/dispatch.go | mit | 106 | source | false | . | github.com/insajin/autopus-adk | 1.26 | go version go1.26.5 darwin/arm64 | e5a66a64595f73cae6767f5f8b3304509908e3fe4361d311809651a73565057d | baf03f9afc772737facb1375ae489f65858164f306dc15a6c8886f0e89254d8b | 3,912 | 3,879 | 7,791 | package releasereadiness
import (
"os/exec"
"github.com/insajin/autopus-adk/pkg/qa/adapter"
"github.com/insajin/autopus-adk/pkg/qa/journey"
qarun "github.com/insajin/autopus-adk/pkg/qa/run"
)
// laneForPack maps a journey pack to its release-readiness lane. Synthesized
// packs declare a single lane (browser-sta... | package releasereadiness
import (
"os/exec"
"slices"
"github.com/insajin/autopus-adk/pkg/qa/adapter"
"github.com/insajin/autopus-adk/pkg/qa/journey"
qarun "github.com/insajin/autopus-adk/pkg/qa/run"
)
// laneForPack maps a journey pack to its release-readiness lane. Synthesized
// packs declare a single lane (b... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | baf03f9afc772737facb1375ae489f65858164f306dc15a6c8886f0e89254d8b | 1 |
004d15f40198e0fd84c789a8dbda92d9585c68abd62411ff8360580156c4c154 | openshift/library-go | a0ff75920a1e53f96bbd21895fb6ae40fd99f179 | pkg/operator/status/status_controller.go | apache-2.0 | 106 | source | false | . | github.com/openshift/library-go | 1.25.0 | go version go1.26.5 darwin/arm64 | 21b7f1f172acdae623fc392eae8dda6d38c824df526c85c4e9306bfde7f99059 | f834b65168ffb1efe57adf079fb4059f833f0b497ad9bebcdcd1eceab0a3a172 | 13,073 | 12,998 | 26,071 | package status
import (
"context"
"strings"
"time"
"k8s.io/apimachinery/pkg/api/equality"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/klog/v2"
"k8s.io/utils/clock"
configv1 "github.com/openshift/api/... | package status
import (
"context"
"slices"
"strings"
"time"
"k8s.io/apimachinery/pkg/api/equality"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
"k8s.io/klog/v2"
"k8s.io/utils/clock"
configv1 "github.com/open... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | f834b65168ffb1efe57adf079fb4059f833f0b497ad9bebcdcd1eceab0a3a172 | 1 |
004d214f6bfa65927a69257f2020f0d165b425276a963018b42460630805dd4a | target/goalert | 630775ab3aefc0925a31bdc672141130e7652719 | gadb/dest.go | apache-2.0 | 2,780 | source | false | . | github.com/target/goalert | 1.26.0 | go version go1.26.5 darwin/arm64 | 1c8ac82d38b59f43882cede3cc4279b05114cb90cc7452d4f4dde70001fab8bc | f67f814516f75b82a49fb0530c7e0460883befea622855d4503b69f17faad2db | 2,620 | 2,588 | 5,208 | package gadb
import (
"crypto/sha256"
"encoding/json"
"fmt"
)
func NewDestV1(typeID string, args ...string) DestV1 {
d := DestV1{
Type: typeID,
}
if len(args)%2 != 0 {
panic("args must be key-value pairs")
}
for i := 0; i < len(args); i += 2 {
d.SetArg(args[i], args[i+1])
}
return d
}
type DestHas... | package gadb
import (
"crypto/sha256"
"encoding/json"
"fmt"
)
func NewDestV1(typeID string, args ...string) DestV1 {
d := DestV1{
Type: typeID,
}
if len(args)%2 != 0 {
panic("args must be key-value pairs")
}
for i := 0; i < len(args); i += 2 {
d.SetArg(args[i], args[i+1])
}
return d
}
type DestHas... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | f67f814516f75b82a49fb0530c7e0460883befea622855d4503b69f17faad2db | 1 |
004dc99d44a3949c132451088e7ca5437b8c129a5b8ba6ed7f5390a9b02618ee | nats-io/nsc | c8d67c23c187ed0db496ce5b2b66e96715bb72bf | cmd/validate.go | apache-2.0 | 135 | source | false | . | github.com/nats-io/nsc/v2 | 1.25.0 | go version go1.26.5 darwin/arm64 | 62d1fd3f32621adcd6d2c6b88e1eeab18ef93f872ff17fd37dfdf70d20721a22 | 31e3e84186e4bccc533ffefc52352005c12c71b98e792feb3d088604613c460f | 8,597 | 8,597 | 17,194 | // Copyright 2018-2024 The NATS Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | // Copyright 2018-2024 The NATS Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 31e3e84186e4bccc533ffefc52352005c12c71b98e792feb3d088604613c460f | 1 |
005059990dbec2f766798d8c0578cb4fe76ce7ff8380b7a149595853a67dc250 | obot-platform/obot | 7c4a7031cf5180f2448237f9377f04854d275a3f | pkg/api/handlers/messagepolicyviolation.go | mit | 883 | source | false | . | github.com/obot-platform/obot | 1.26.4 | go version go1.26.5 darwin/arm64 | b389bd68a9f92e32e618c9ffa0bd259ee4d5fd7646810e4fbf008302b89ce593 | 84057d5f2be7d912ef034b4836e6b670a8153a73e444897935c64491286d991f | 6,798 | 6,798 | 13,596 | package handlers
import (
"net/url"
"sort"
"strconv"
"strings"
"time"
types "github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/api"
gateway "github.com/obot-platform/obot/pkg/gateway/client"
)
type MessagePolicyViolationHandler struct{}
func NewMessagePolicyViolationHandler()... | package handlers
import (
"net/url"
"sort"
"strconv"
"strings"
"time"
types "github.com/obot-platform/obot/apiclient/types"
"github.com/obot-platform/obot/pkg/api"
gateway "github.com/obot-platform/obot/pkg/gateway/client"
)
type MessagePolicyViolationHandler struct{}
func NewMessagePolicyViolationHandler()... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 84057d5f2be7d912ef034b4836e6b670a8153a73e444897935c64491286d991f | 1 |
00526eb6ab72587bb3ce0d32ae929b60e5723b9b1ca24992605583643a4d4ec4 | aws/amazon-cloudwatch-agent | c6575bf35ed8948b0d44541de4a1c5acbc738287 | internal/ecsservicediscovery/config.go | mit | 539 | source | false | . | github.com/aws/amazon-cloudwatch-agent | 1.25.8 | go version go1.26.5 darwin/arm64 | 7d15bc6a2f80f3c8a82fc78fa7ec437fbab458f131bd4002535ca5f0c4c0c201 | 839dc464db0279fdc899ad144eef52952788c9df63d1b068a31450e8f73cf8d3 | 3,373 | 3,373 | 6,746 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT
package ecsservicediscovery
import (
"fmt"
"regexp"
"strconv"
"strings"
)
const (
AwsSdkLevelRetryCount = 3
portSeparator = ";"
)
type ServiceNameForTasksConfig struct {
ContainerNamePattern string `toml:"s... | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT
package ecsservicediscovery
import (
"fmt"
"regexp"
"strconv"
"strings"
)
const (
AwsSdkLevelRetryCount = 3
portSeparator = ";"
)
type ServiceNameForTasksConfig struct {
ContainerNamePattern string `toml:"s... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 839dc464db0279fdc899ad144eef52952788c9df63d1b068a31450e8f73cf8d3 | 1 |
0052902a602c4c62a5e98f4be7323fe3a9b7c900e9a74d04322399425e413fd1 | ory/kratos | b0c11d30c57d269b9db0c475febc17de4c6eaf13 | selfservice/flow/state.go | apache-2.0 | 13,756 | source | false | . | github.com/ory/kratos | 1.26 | go version go1.26.5 darwin/arm64 | 089e0561836b663411066626ea1d90fbb05442e27f6df9c421ba158bb245b3fa | 1b160803cb3610f294f8439308a08d4b773fba8cf1debf8c34e62813cc6ffdaf | 3,744 | 3,736 | 7,480 | // Copyright © 2023 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package flow
import (
"database/sql"
"database/sql/driver"
"encoding/json"
"strings"
"github.com/pkg/errors"
)
// Flow State
//
// The state represents the state of the verification flow.
//
// - choose_method: ask the user to choose a method ... | // Copyright © 2023 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package flow
import (
"database/sql"
"database/sql/driver"
"encoding/json"
"strings"
"github.com/pkg/errors"
)
// Flow State
//
// The state represents the state of the verification flow.
//
// - choose_method: ask the user to choose a method ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 1b160803cb3610f294f8439308a08d4b773fba8cf1debf8c34e62813cc6ffdaf | 1 |
0052b7a1a34e6acc09ee559d2dde6d8b8881b5196d0d309cb4a014182f8aa18b | falcosecurity/falcosidekick | 3762836e2f2beb6511ece5f30f939d23b5586f2c | outputs/spyderbat.go | apache-2.0 | 675 | source | false | . | github.com/falcosecurity/falcosidekick | 1.26.0 | go version go1.26.5 darwin/arm64 | 01f9ac3d1df0ec858ae7e49fbad2473a43a69275c5c5b49b3596960763bfbeeb | 8783647f3201b5eb5d9f0faa8b609fa6f1f8cafe72bd6267e294bcd8d975ebf4 | 7,713 | 7,705 | 15,418 | // SPDX-License-Identifier: MIT OR Apache-2.0
package outputs
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strings"
"time"
"github.com/DataDog/datadog-go/statsd"
"github.com/google/uuid"
"go.opentelemetry.io/otel/attribute"
"github.com/falcosecurity/falcosidekick/internal/... | // SPDX-License-Identifier: MIT OR Apache-2.0
package outputs
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strings"
"time"
"github.com/DataDog/datadog-go/statsd"
"github.com/google/uuid"
"go.opentelemetry.io/otel/attribute"
"github.com/falcosecurity/falcosidekick/internal/... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 8783647f3201b5eb5d9f0faa8b609fa6f1f8cafe72bd6267e294bcd8d975ebf4 | 1 |
0052eae529e00bc453f6138d9dd9be315959a1efddb3f28a553cc15ebe90bf9b | kweaver-ai/kweaver-core | b9b35fb245c31660127114c883e91165b42dc8f0 | adp/bkn/ontology-query/server/common/convert.go | apache-2.0 | 836 | source | false | adp/bkn/ontology-query/server | ontology-query | 1.25.0 | go version go1.26.5 darwin/arm64 | 6e589a754767b801a03a627ea82f137109c0e6023327ad808eca9e5db17495d7 | eb12d176ed5cfd2c6f82d9fe9b9b44f2c7a5770d92da28d4853413c1d693310a | 11,111 | 11,100 | 22,211 | // Copyright The kweaver.ai Authors.
//
// Licensed under the Apache License, Version 2.0.
// See the LICENSE file in the project root for details.
package common
import (
"errors"
"fmt"
"math"
"reflect"
"strconv"
"strings"
"time"
lib_common "github.com/kweaver-ai/kweaver-go-lib/common"
)
// string 转 []stri... | // Copyright The kweaver.ai Authors.
//
// Licensed under the Apache License, Version 2.0.
// See the LICENSE file in the project root for details.
package common
import (
"errors"
"fmt"
"math"
"reflect"
"strconv"
"strings"
"time"
lib_common "github.com/kweaver-ai/kweaver-go-lib/common"
)
// string 转 []stri... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | eb12d176ed5cfd2c6f82d9fe9b9b44f2c7a5770d92da28d4853413c1d693310a | 1 |
0054e9a3e8854c6d96b5e300061b22eec0fcf30d52b5dcc3899d9bfae62fa3e7 | asynkron/protoactor-go | 288962e52f3f59533c8f463fc31f98b8d5d39e41 | actor/eventstream_process_test.go | apache-2.0 | 5,478 | test | true | . | github.com/asynkron/protoactor-go | 1.25.3 | go version go1.26.5 darwin/arm64 | 01f2e5c34165f1d3b9ff1a4c4c2d042f98fe98c63ca91bcb6076285bf38fa124 | 06fa2bfe15d6a717a193948efba7aff2d106c06f8436c5badbca37d25ec7ae7a | 777 | 761 | 1,538 | package actor
import (
"testing"
)
type EsTestMsg struct{}
func TestSendsMessagesToEventStream(t *testing.T) {
testCases := []struct {
name string
message interface{}
}{
{name: "plain", message: &EsTestMsg{}},
{name: "envelope", message: WrapEnvelope(&EsTestMsg{})},
}
for _, testCase := range testCa... | package actor
import (
"testing"
)
type EsTestMsg struct{}
func TestSendsMessagesToEventStream(t *testing.T) {
testCases := []struct {
name string
message any
}{
{name: "plain", message: &EsTestMsg{}},
{name: "envelope", message: WrapEnvelope(&EsTestMsg{})},
}
for _, testCase := range testCases {
... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 06fa2bfe15d6a717a193948efba7aff2d106c06f8436c5badbca37d25ec7ae7a | 1 |
00556171ce37e531797989d25ffb1b6f9d062ddd07662bee8ce6affc0004ddf2 | FDio/govpp | c4ce3e4c0071189e11187b40dc5b2f8c6a2356fd | binapigen/vppapi/parse_json.go | apache-2.0 | 259 | source | false | . | go.fd.io/govpp | 1.25.0 | go version go1.26.5 darwin/arm64 | bb876987c18cde2ffdaf98834bdd8626ab74a79c06ef108965898136867dce0e | ddad05421a59e208c87db2e97b3c19fdc3311c5630a9393e4609f21ede9101c1 | 19,285 | 19,277 | 38,562 | // Copyright (c) 2020 Cisco and/or its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | // Copyright (c) 2020 Cisco and/or its affiliates.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at:
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | ddad05421a59e208c87db2e97b3c19fdc3311c5630a9393e4609f21ede9101c1 | 1 |
0055f6058062eec9e4d4005a9f999a692e4bdfce67d2798457a477ffdd7c1dd4 | alibaba/open-code-review | 22782aa66e9ac0e81e97a35521f732ccde652366 | internal/llmloop/compression.go | apache-2.0 | 10,430 | source | false | . | github.com/open-code-review/open-code-review | 1.25.5 | go version go1.26.5 darwin/arm64 | 3756a2a5dc9841c8b6f41a85529022a2e6f489e3003aa6b95cd8b25a6ed127e2 | a486d7ad2122eb830b120d970d99226ba686be6757ca534a477c2e4b52455fff | 10,179 | 10,169 | 20,348 | package llmloop
import (
"context"
"fmt"
"strings"
"sync/atomic"
"time"
"github.com/open-code-review/open-code-review/internal/llm"
"github.com/open-code-review/open-code-review/internal/session"
"github.com/open-code-review/open-code-review/internal/stdout"
)
// Compression thresholds, as fractions of MaxTo... | package llmloop
import (
"context"
"fmt"
"strings"
"sync/atomic"
"time"
"github.com/open-code-review/open-code-review/internal/llm"
"github.com/open-code-review/open-code-review/internal/session"
"github.com/open-code-review/open-code-review/internal/stdout"
)
// Compression thresholds, as fractions of MaxTo... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | a486d7ad2122eb830b120d970d99226ba686be6757ca534a477c2e4b52455fff | 1 |
0058cc7c80312fb290e7e422c3218b0e702478024ab6c4a7dcb15409cb4fe3ea | gastownhall/gastown | f8e6d07224d18f17d80fdfeb839cb887bb062551 | internal/daemon/dolt_endpoint_config_test.go | mit | 16,978 | test | true | . | github.com/steveyegge/gastown | 1.26.2 | go version go1.26.5 darwin/arm64 | cdd56333a7f3aecbfe3a08bcee87399a9510cf7acf841833e8699ade39bdab32 | 768834bdc1a1e42a6d593c5c727cd9405f61f8517675a71b1718ae8884155943 | 5,359 | 5,327 | 10,686 | package daemon
import (
"os"
"path/filepath"
"testing"
"time"
)
func TestNewDoltServerManagerNormalizesManagedEndpointFromTownConfig(t *testing.T) {
townRoot := t.TempDir()
writeManagedDoltConfig(t, townRoot, "listener:\n host: 127.0.0.2\n port: 5507\n")
t.Setenv("GT_DOLT_IGNORE_CONFIG", "")
t.Setenv("GT_DO... | package daemon
import (
"os"
"path/filepath"
"testing"
"time"
)
func TestNewDoltServerManagerNormalizesManagedEndpointFromTownConfig(t *testing.T) {
townRoot := t.TempDir()
writeManagedDoltConfig(t, townRoot, "listener:\n host: 127.0.0.2\n port: 5507\n")
t.Setenv("GT_DOLT_IGNORE_CONFIG", "")
t.Setenv("GT_DO... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 768834bdc1a1e42a6d593c5c727cd9405f61f8517675a71b1718ae8884155943 | 1 |
0059af0031500f8ed0e1f1c8193de5823f3ed392e36cdc65a740f83db2704573 | seaweedfs/seaweedfs | 013281b49859e3e4a0b3c1e64f9f71ff25603f18 | weed/admin/dash/file_browser_data.go | apache-2.0 | 33,445 | source | false | . | github.com/seaweedfs/seaweedfs | 1.25.8 | go version go1.26.5 darwin/arm64 | 3ce9c23c4b3f1f6f86ea638fb52c69c2bb04fd478bf58dec7cfb7487eb35e794 | b478dcff5d9e7946baaa19672f1f52e206678267c563994437e7431f78b97864 | 7,385 | 7,418 | 14,803 | package dash
import (
"context"
"path"
"strings"
"time"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/s3api/s3tables"
)
// FileEntry represents a file or directory entry in the file browser
type FileEntry struct {
Name ... | package dash
import (
"context"
"path"
"strings"
"time"
"github.com/seaweedfs/seaweedfs/weed/glog"
"github.com/seaweedfs/seaweedfs/weed/pb/filer_pb"
"github.com/seaweedfs/seaweedfs/weed/s3api/s3tables"
)
// FileEntry represents a file or directory entry in the file browser
type FileEntry struct {
Name ... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | b478dcff5d9e7946baaa19672f1f52e206678267c563994437e7431f78b97864 | 1 |
005a5317d0a4a41061509573b8d2dfa5ae4b097bd3f59fe7782251508961d33e | secmon-lab/warren | 262912b6d631c4e610acd2d3982b2e8c3642579d | pkg/tool/bigquery/interfaces.go | apache-2.0 | 128 | source | false | . | github.com/secmon-lab/warren | 1.26.4 | go version go1.26.5 darwin/arm64 | 0044323d435c6ccac31226d230f3761856e155771b954514a967cb11d512a157 | 568177a137dd30b7947be96feec7dfe8006cd894797a88f02a10b42b07583e66 | 4,640 | 4,624 | 9,264 | package bigquery
import (
"context"
"cloud.google.com/go/bigquery"
"google.golang.org/api/option"
)
// BigQueryClient is an interface for BigQuery client
type BigQueryClient interface {
Query(query string) BigQueryQuery
Dataset(datasetID string) BigQueryDataset
Close() error
}
// BigQueryQuery is an interface... | package bigquery
import (
"context"
"cloud.google.com/go/bigquery"
"google.golang.org/api/option"
)
// BigQueryClient is an interface for BigQuery client
type BigQueryClient interface {
Query(query string) BigQueryQuery
Dataset(datasetID string) BigQueryDataset
Close() error
}
// BigQueryQuery is an interface... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | clean | 568177a137dd30b7947be96feec7dfe8006cd894797a88f02a10b42b07583e66 | 1 |
005ae21fe50a0cf35410fbb2a8d126b0c14849696bb65b093c6edac13b7a81fd | LFDT-Lineth/lineth-monorepo | de6d6730456a84b3160161963a3f19b19caf5daa | prover/lib/compressor/blob/v0/compress/stream.go | apache-2.0 | 125 | source | false | prover | github.com/consensys/linea-monorepo/prover | 1.25.7 | go version go1.26.5 darwin/arm64 | 6ef46f3ef0623f9e10679ead373090a2d9499d09f7295e08bd812b4a45b3839a | 6adb02bc7fc63f17b99db3168b23bb6b1e8f1e47f13002c7f63fe9e328ce1d68 | 3,676 | 3,659 | 7,335 | package compress
import (
"bytes"
"hash"
"math/big"
"github.com/icza/bitio"
)
// Stream is an inefficient data structure used for easy experimentation with compression algorithms.
type Stream struct {
D []int
NbSymbs int
}
func (s *Stream) Len() int {
return len(s.D)
}
func (s *Stream) RunLen(i int) i... | package compress
import (
"bytes"
"hash"
"math/big"
"github.com/icza/bitio"
)
// Stream is an inefficient data structure used for easy experimentation with compression algorithms.
type Stream struct {
D []int
NbSymbs int
}
func (s *Stream) Len() int {
return len(s.D)
}
func (s *Stream) RunLen(i int) i... | You are an expert Go maintainer. Apply requested automated Go source modernizations while preserving behavior and unrelated code. Return only the complete updated Go source file, without Markdown fences or explanation. | Apply the semantics-preserving source updates produced by Go 1.26 `go fix` to this complete file. Preserve unrelated code and return the complete updated file. | canonical | clean | failed | 6adb02bc7fc63f17b99db3168b23bb6b1e8f1e47f13002c7f63fe9e328ce1d68 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.