Search is not available for this dataset
SHA256 string | Repository string | File Name string | File path in Repository string | Code string | Code Commit hash string | File Path for Unit Test string | Unit Test - (Ground Truth) string | Unit Test Commit hash string |
|---|---|---|---|---|---|---|---|---|
40ee25c9bcd565bd2b85d741009bf358defd75f2bdbb26cd90c263fc44f13600 | golang/go | aes.go | src/crypto/internal/fips/aes/aes.go | // Copyright 2009 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 aes
import (
"crypto/internal/fips"
"crypto/internal/fips/alias"
"strconv"
)
// BlockSize is the AES block size in bytes.
const BlockSize = 16
// ... | 06eff26d0c559bba5921d1550dd115d1b6f00534 | src/crypto/internal/fips/aes/aes_test.go | // Copyright 2009 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 aes
import "testing"
// See const.go for overview of math here.
// Test that powx is initialized correctly.
// (Can adapt this code to generate it to... | 35046389135c44e0ef65ae6a64ed2f2f030fc492 |
9cd365387e94129bde899d8896b170712ce7eb67e365ff2b57821cc770aaf152 | moby/moby | v2_metadata_service.go | distribution/metadata/v2_metadata_service.go | package metadata // import "github.com/docker/docker/distribution/metadata"
import (
"crypto/hmac"
"crypto/sha256"
"encoding/hex"
"encoding/json"
"errors"
"github.com/docker/docker/api/types/registry"
"github.com/docker/docker/layer"
"github.com/opencontainers/go-digest"
)
// V2MetadataService maps layer IDs... | bdb72da15700bdd9bfcf3f21d4e116d3b70c9813 | distribution/metadata/v2_metadata_service_test.go | package metadata // import "github.com/docker/docker/distribution/metadata"
import (
"encoding/hex"
"math/rand"
"os"
"reflect"
"testing"
"github.com/docker/docker/layer"
"github.com/opencontainers/go-digest"
)
func TestV2MetadataService(t *testing.T) {
tmpDir, err := os.MkdirTemp("", "blobsum-storage-service... | 94d0f0b9c3ebdfd2258c658db3e5ed2f3efb4300 |
8cb3908ceb17c405009542acbe562a5066a0f1484f89aca84f12af47160a1197 | gohugoio/hugo | finder.go | identity/finder.go | // Copyright 2024 The Hugo 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 required by applicable ... | 91fac72378bfc6843f136907f74454a73300b2ca | identity/finder_test.go | // Copyright 2024 The Hugo 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 required by applicable ... | abfab9d756a31d9c2a4151358809c1f1e8d8ed50 |
ce8e08543736a7ba30fa4c1a18e7af8129ec98301e813cfa78639c3fac445583 | pingcap/tidb | runtime.go | pkg/timer/runtime/runtime.go | // Copyright 2023 PingCAP, 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 to i... | 4e3638fd96775d105258bea04a557422ad970178 | pkg/timer/runtime/runtime_test.go | // Copyright 2023 PingCAP, 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 to i... | 63280502606254ddb3c34b07b7ea80ac2d2d2355 |
983d2eb284cbdaf95595f5bb63290b43f698a14e2c3da67d3cf1a05343cfc1de | kubernetes/kubernetes | election.go | pkg/controlplane/controller/leaderelection/election.go | /*
Copyright 2024 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, ... | 9b77345f76c1d71b62f0bba48ccf078f80fc98b9 | pkg/controlplane/controller/leaderelection/election_test.go | /*
Copyright 2024 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, ... | c6b08d2c7f70a4338e825117b2855709e1c204ae |
33de171dd038c1cbbc8d6e6af05f6181485b9a2353b362f91ed62c4e9aa91c26 | prometheus/prometheus | zookeeper.go | discovery/zookeeper/zookeeper.go | // Copyright 2015 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... | a1cfe3d055b356458381098d97222d5da7acdc95 | discovery/zookeeper/zookeeper_test.go | // Copyright 2018 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... | c2b41ce7a3ca7b3ccb83b9811e501b0944380aff |
7c2b3ca106bf35c6031a97c7678c8e4afa60029b06ab54a82cecfb1d685dbe96 | golang/go | p256_asm.go | src/crypto/internal/fips/nistec/p256_asm.go | // 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.
// This file contains the Go wrapper for the constant-time, 64-bit assembly
// implementation of P256. The optimizations performed here are described in
// deta... | 08e771cc10015114e8fbe6e09e7935fd40a0785c | src/crypto/internal/fips/nistec/p256_asm_test.go | // Copyright 2024 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.
//go:build (amd64 || arm64 || ppc64le || s390x) && !purego && linux
package nistec
import (
"syscall"
"testing"
"unsafe"
)
// Lightly adapted from the byt... | 71edb9575c43ce3a8a4aeaad21f10173e5778fc3 |
46988d2705294b127235a78253eb0f5fa2c9efa790b8af8cd1ea6f4f7ef1ffe4 | gohugoio/hugo | predicate_identity.go | identity/predicate_identity.go | // Copyright 2024 The Hugo 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 required by applicable ... | bad247867201a77a414678cfd49e89cca5e5ed96 | identity/predicate_identity_test.go | // Copyright 2024 The Hugo 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 required by applicable ... | 3a54dee750a394730da325b0e21db63bd6e3d54c |
ccf9a46cbf5e4eefd3254e6c80d6a5cfd98a62a8198fdb77fe07304b116930d0 | kubernetes/kubernetes | controller_ref.go | staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/controller_ref.go | /*
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, ... | 5005beb12db24d833e230ffc723af3b3a1536225 | staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/controller_ref_test.go | /*
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, ... | 3abfb9aa919969e37afa13b07ed2b88059e1687e |
d66fa34792e35b1f0282db0437b1013d34ad27a1578617974470b0c50151ef16 | kubernetes/kubernetes | filter.go | pkg/proxy/conntrack/filter.go | //go:build linux
// +build linux
/*
Copyright 2024 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 applic... | 75dd3f0c57fc8b03c02c01babe24b020313555fe | pkg/proxy/conntrack/filter_test.go | //go:build linux
// +build linux
/*
Copyright 2024 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 applic... | a8b8a4b3f8704230bfb15a31186e313cc72f4530 |
9a91b55e7dc8b650e794cdf0ee8f0f4ededbfd02dfe2a83eb7573d8ed89d3efa | hashicorp/terraform | migration.go | internal/cloud/migration.go | // Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package cloud
import (
"github.com/hashicorp/terraform/internal/command/workdir"
"github.com/hashicorp/terraform/internal/configs"
)
// Most of the logic for migrating into and out of "cloud mode" actually lives
// in the "command" package as pa... | f42e8735674542f761ae3e43074058f1cb9e7c67 | internal/cloud/migration_test.go | // Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package cloud
import (
"testing"
"github.com/hashicorp/terraform/internal/command/workdir"
"github.com/hashicorp/terraform/internal/configs"
)
func TestDetectConfigChangeType(t *testing.T) {
tests := map[string]struct {
stateType ... | bfc83dae1a37c68be15c8654c2178a335c5ca9e5 |
2b659e4d276e4439596e1e6e7b440ca2cf35084032f29a89d10651ca9a2c4d16 | kubernetes/kubernetes | fieldmanager.go | staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/fieldmanager.go | /*
Copyright 2022 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, ... | eca04a711638b389c6f281aade15ceef78ad3857 | staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/fieldmanager_test.go | /*
Copyright 2019 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, ... | 1ae01dab6e91e9974ad2303f3d145cf7c8e8247e |
52f86873461eadc6a43add111d1545050c917fb1dcee2fbfd6fcbc10c7d7e5e7 | hashicorp/terraform | get_cache.go | internal/plugin/discovery/get_cache.go | // Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package discovery
// PluginCache is an interface implemented by objects that are able to maintain
// a cache of plugins.
type PluginCache interface {
// CachedPluginPath returns a path where the requested plugin is already
// cached, or an empty ... | 97b2b6edbb572c60c532d5987d92fbb3056254d0 | internal/plugin/discovery/get_cache_test.go | // Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package discovery
import (
"testing"
)
func TestLocalPluginCache(t *testing.T) {
cache := NewLocalPluginCache("testdata/plugin-cache")
foo1Path := cache.CachedPluginPath("provider", "foo", VersionStr("v0.0.1").MustParse())
if foo1Path == "" {... | f5a7b7a6d98bb937da8fa9df70843e5c39a3e193 |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 10