Dataset Viewer
Auto-converted to Parquet Duplicate
hexsha
stringlengths
40
40
size
int64
61
981k
ext
stringclasses
1 value
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
9
192
max_stars_repo_name
stringlengths
4
78
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
sequencelengths
1
6
max_stars_count
int64
1
107k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
9
192
max_issues_repo_name
stringlengths
4
76
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
sequencelengths
1
6
max_issues_count
int64
1
98.3k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
9
192
max_forks_repo_name
stringlengths
4
76
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
sequencelengths
1
6
max_forks_count
int64
1
36.6k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
61
981k
avg_line_length
float64
6.25
4.6k
max_line_length
int64
25
142k
alphanum_fraction
float64
0.13
0.99
test_functions
sequencelengths
1
2.19k
f700249a3e7dad9df09c48c5e4f9cc2c1e4a60dc
6,115
go
Go
vendor/github.com/hyperhq/hypercli/api/client/formatter/custom_test.go
sozercan/virtual-kubelet
f3ebde2533f7854698df8a298386154d423854e2
[ "MIT" ]
192
2016-04-06T15:42:41.000Z
2021-11-09T09:34:49.000Z
vendor/github.com/hyperhq/hypercli/api/client/formatter/custom_test.go
tjfontaine/virtual-kubelet
5286869440706ff178f75c270635be369fae87fe
[ "Apache-2.0" ]
146
2016-04-06T15:46:05.000Z
2020-05-06T08:24:35.000Z
vendor/github.com/hyperhq/hypercli/api/client/formatter/custom_test.go
tjfontaine/virtual-kubelet
5286869440706ff178f75c270635be369fae87fe
[ "Apache-2.0" ]
54
2016-04-05T23:40:20.000Z
2021-01-07T13:19:53.000Z
package formatter import ( "reflect" "strings" "testing" "time" "github.com/hyperhq/hyper-api/types" "github.com/hyperhq/hypercli/pkg/stringid" ) func TestContainerPsContext(t *testing.T) { containerID := stringid.GenerateRandomID() unix := time.Now().Unix() var ctx containerContext cases := []struct { ...
31.683938
135
0.673426
[ "func TestContainerPsContext(t *testing.T) {\n\tcontainerID := stringid.GenerateRandomID()\n\tunix := time.Now().Unix()\n\n\tvar ctx containerContext\n\tcases := []struct {\n\t\tcontainer types.Container\n\t\ttrunc bool\n\t\texpValue string\n\t\texpHeader string\n\t\tcall func() string\n\t}{\n\t\t{types.C...
f7002a680f4e674bf27e31b32897a25024d1eb11
2,671
go
Go
pkg/reconciler/v1alpha1/autoscaling/kpa/resources/service_test.go
TommyLike/serving
d4b62734274f62dd9f553f8923f5574f65899840
[ "Apache-2.0" ]
null
null
null
pkg/reconciler/v1alpha1/autoscaling/kpa/resources/service_test.go
TommyLike/serving
d4b62734274f62dd9f553f8923f5574f65899840
[ "Apache-2.0" ]
null
null
null
pkg/reconciler/v1alpha1/autoscaling/kpa/resources/service_test.go
TommyLike/serving
d4b62734274f62dd9f553f8923f5574f65899840
[ "Apache-2.0" ]
null
null
null
/* 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, softwar...
28.72043
72
0.659678
[ "func TestMakeService(t *testing.T) {\n\tpa := &pav1a1.PodAutoscaler{\n\t\tObjectMeta: metav1.ObjectMeta{\n\t\t\tNamespace: \"here\",\n\t\t\tName: \"with-you\",\n\t\t\tUID: \"2006\",\n\t\t\t// Those labels are propagated from the Revision->KPA.\n\t\t\tLabels: map[string]string{\n\t\t\t\tserving.RevisionL...
f70036544af62e3a238cc85a71a32c3450e32147
4,590
go
Go
encoding/json/register_test.go
nishakhater/yarpc-go
dbbaeda2c7a6097c2c787c6967e6980ec8cde6a2
[ "MIT" ]
null
null
null
encoding/json/register_test.go
nishakhater/yarpc-go
dbbaeda2c7a6097c2c787c6967e6980ec8cde6a2
[ "MIT" ]
null
null
null
encoding/json/register_test.go
nishakhater/yarpc-go
dbbaeda2c7a6097c2c787c6967e6980ec8cde6a2
[ "MIT" ]
null
null
null
// Copyright (c) 2020 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...
20.675676
82
0.615686
[ "func TestWrapUnaryHandlerInvalid(t *testing.T) {\n\ttests := []struct {\n\t\tName string\n\t\tFunc interface{}\n\t}{\n\t\t{\"empty\", func() {}},\n\t\t{\"not-a-function\", 0},\n\t\t{\n\t\t\t\"wrong-args-in\",\n\t\t\tfunc(context.Context) (*struct{}, error) {\n\t\t\t\treturn nil, nil\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\...
f7003e92d4439a3e3aca7d846f26562a35ea34a4
221
go
Go
go_agent/src/bosh/agent/applier/bundlecollection/bundlecollection_suite_test.go
cloudfoundry-community-attic/bosh-cloudstack-cpi
279eac830413bac109d78a856334a80f85c8308d
[ "Apache-2.0" ]
1
2020-09-18T11:17:07.000Z
2020-09-18T11:17:07.000Z
go_agent/src/bosh/agent/applier/bundlecollection/bundlecollection_suite_test.go
zengxianhui/bosh-2605
0156f559d1c9535c6177012a085ed59c40509ac1
[ "Ruby", "Apache-2.0" ]
null
null
null
go_agent/src/bosh/agent/applier/bundlecollection/bundlecollection_suite_test.go
zengxianhui/bosh-2605
0156f559d1c9535c6177012a085ed59c40509ac1
[ "Ruby", "Apache-2.0" ]
1
2018-08-24T20:19:00.000Z
2018-08-24T20:19:00.000Z
package bundlecollection_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" "testing" ) func TestBundlecollection(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "Bundlecollection Suite") }
15.785714
41
0.746606
[ "func TestBundlecollection(t *testing.T) {\n\tRegisterFailHandler(Fail)\n\tRunSpecs(t, \"Bundlecollection Suite\")\n}" ]
f7003f423c2a7cf8e3d5961945a425ee02a0ab28
6,045
go
Go
internal/gitaly/service/objectpool/alternates_test.go
k00mi/gitaly
666ac9ff4149cc9d8e25cadee708717958a04ef1
[ "MIT" ]
1
2021-01-20T05:40:29.000Z
2021-01-20T05:40:29.000Z
internal/gitaly/service/objectpool/alternates_test.go
k00mi/gitaly
666ac9ff4149cc9d8e25cadee708717958a04ef1
[ "MIT" ]
null
null
null
internal/gitaly/service/objectpool/alternates_test.go
k00mi/gitaly
666ac9ff4149cc9d8e25cadee708717958a04ef1
[ "MIT" ]
null
null
null
package objectpool import ( "fmt" "io/ioutil" "os" "testing" "github.com/stretchr/testify/require" "gitlab.com/gitlab-org/gitaly/internal/git" "gitlab.com/gitlab-org/gitaly/internal/git/objectpool" "gitlab.com/gitlab-org/gitaly/internal/gitaly/config" "gitlab.com/gitlab-org/gitaly/internal/testhelper" "gitl...
36.197605
126
0.750868
[ "func TestDisconnectGitAlternates(t *testing.T) {\n\tlocator := config.NewLocator(config.Config)\n\tserver, serverSocketPath := runObjectPoolServer(t, config.Config, locator)\n\tdefer server.Stop()\n\n\tclient, conn := newObjectPoolClient(t, serverSocketPath)\n\tdefer conn.Close()\n\n\tctx, cancel := testhelper.Con...
f700417668b2ee0a871d2cd13966ac0cec01bd70
6,417
go
Go
contrib/mongodb/mongo-go-driver/vendor/github.com/mongodb/mongo-go-driver/mongo/client_options_test.go
FlamingTree/dd-trace-go
827caf89bbb4b955554157db7b0d7e59959a1408
[ "BSD-3-Clause" ]
null
null
null
contrib/mongodb/mongo-go-driver/vendor/github.com/mongodb/mongo-go-driver/mongo/client_options_test.go
FlamingTree/dd-trace-go
827caf89bbb4b955554157db7b0d7e59959a1408
[ "BSD-3-Clause" ]
null
null
null
contrib/mongodb/mongo-go-driver/vendor/github.com/mongodb/mongo-go-driver/mongo/client_options_test.go
FlamingTree/dd-trace-go
827caf89bbb4b955554157db7b0d7e59959a1408
[ "BSD-3-Clause" ]
null
null
null
// Copyright (C) MongoDB, Inc. 2017-present. // // 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 package mongo import ( "context" "net" "sync/a...
31.610837
160
0.647499
[ "func TestClientOptions_simple(t *testing.T) {\n\tt.Parallel()\n\n\tif testing.Short() {\n\t\tt.Skip()\n\t}\n\n\tcs := testutil.ConnString(t)\n\tclient, err := NewClientWithOptions(cs.String(), clientopt.AppName(\"foo\"))\n\trequire.NoError(t, err)\n\n\trequire.Equal(t, \"foo\", client.connString.AppName)\n}", "f...
f70046e4048897753a40a3d78933ed37ca50ffd8
684
go
Go
backend/service/topology/topology_test.go
titansmc/clutch
96be7bc7d1eeb5c06932690dfd8f9e04387b46be
[ "Apache-2.0" ]
null
null
null
backend/service/topology/topology_test.go
titansmc/clutch
96be7bc7d1eeb5c06932690dfd8f9e04387b46be
[ "Apache-2.0" ]
30
2020-09-16T19:53:30.000Z
2021-11-02T15:08:38.000Z
backend/service/topology/topology_test.go
titansmc/clutch
96be7bc7d1eeb5c06932690dfd8f9e04387b46be
[ "Apache-2.0" ]
null
null
null
package topology import ( "testing" "github.com/stretchr/testify/assert" "github.com/uber-go/tally/v4" "go.uber.org/zap/zaptest" "google.golang.org/protobuf/types/known/anypb" topologyv1 "github.com/lyft/clutch/backend/api/config/service/topology/v1" ) func TestNew(t *testing.T) { cfg, _ := anypb.New(&topolo...
22.8
75
0.70614
[ "func TestNew(t *testing.T) {\n\tcfg, _ := anypb.New(&topologyv1.Config{})\n\n\tlog := zaptest.NewLogger(t)\n\tscope := tally.NewTestScope(\"\", nil)\n\n\t// Should throw error looking for postgres\n\t_, err := New(cfg, log, scope)\n\tassert.Error(t, err)\n}", "func TestNewWithWrongConfig(t *testing.T) {\n\t_, er...
f7004df6820a7c5527fbac06d58dae8cbf6b9cda
20,444
go
Go
x/ibc/core/04-channel/types/msgs_test.go
alessio/cosmos-sdk
c0d723314133f96bd118e29401d99187a90ce986
[ "Apache-2.0" ]
null
null
null
x/ibc/core/04-channel/types/msgs_test.go
alessio/cosmos-sdk
c0d723314133f96bd118e29401d99187a90ce986
[ "Apache-2.0" ]
null
null
null
x/ibc/core/04-channel/types/msgs_test.go
alessio/cosmos-sdk
c0d723314133f96bd118e29401d99187a90ce986
[ "Apache-2.0" ]
null
null
null
package types_test import ( "fmt" "testing" "github.com/stretchr/testify/suite" abci "github.com/tendermint/tendermint/abci/types" dbm "github.com/tendermint/tm-db" "github.com/cosmos/cosmos-sdk/simapp" "github.com/cosmos/cosmos-sdk/store/iavl" "github.com/cosmos/cosmos-sdk/store/rootmulti" storetypes "git...
45.431111
219
0.733222
[ "func TestTypesTestSuite(t *testing.T) {\n\tsuite.Run(t, new(TypesTestSuite))\n}" ]
f7005398f3d6c86068ea5a7980d16fae06749079
523
go
Go
pkg/event/call/write_test.go
andrewalexander/swoll
4658a5b2ebfce04ae053180c39aa5ebc8a8d59ab
[ "Apache-2.0" ]
71
2020-11-13T18:46:11.000Z
2022-01-21T07:42:06.000Z
pkg/event/call/write_test.go
andrewalexander/swoll
4658a5b2ebfce04ae053180c39aa5ebc8a8d59ab
[ "Apache-2.0" ]
2
2021-02-03T21:51:20.000Z
2021-02-06T04:57:40.000Z
pkg/event/call/write_test.go
andrewalexander/swoll
4658a5b2ebfce04ae053180c39aa5ebc8a8d59ab
[ "Apache-2.0" ]
8
2020-11-13T18:52:15.000Z
2021-11-03T22:55:33.000Z
package call import ( "reflect" "testing" "encoding/json" "github.com/criticalstack/swoll/pkg/types" ) func TestWrite(t *testing.T) { s := &Write{ FD: types.InputFD(1), Buf: types.Buffer([]byte("write test")), Count: 12, } j, err := json.Marshal(s) if err != nil { t.Fatal(err) } var w Writ...
14.942857
74
0.608031
[ "func TestWrite(t *testing.T) {\n\n\ts := &Write{\n\t\tFD: types.InputFD(1),\n\t\tBuf: types.Buffer([]byte(\"write test\")),\n\t\tCount: 12,\n\t}\n\n\tj, err := json.Marshal(s)\n\tif err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\tvar w Write\n\tif err = json.Unmarshal(j, &w); err != nil {\n\t\tt.Fatal(err)\n\t}\n\n\...
f70060988c8c1a55e767054b32bd44ef28bb1317
2,587
go
Go
pkg/policy/common_test.go
phantomnat/kubevela
c8264b8c3419f90d90a0f8f4470e0289a7d075df
[ "Apache-2.0" ]
27
2020-08-06T02:39:48.000Z
2020-09-08T12:56:43.000Z
pkg/policy/common_test.go
phantomnat/kubevela
c8264b8c3419f90d90a0f8f4470e0289a7d075df
[ "Apache-2.0" ]
143
2020-07-31T04:23:16.000Z
2020-09-10T07:15:20.000Z
pkg/policy/common_test.go
phantomnat/kubevela
c8264b8c3419f90d90a0f8f4470e0289a7d075df
[ "Apache-2.0" ]
28
2020-07-03T06:13:56.000Z
2020-09-09T09:53:48.000Z
/* Copyright 2021 The KubeVela 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, softw...
30.797619
76
0.743719
[ "func TestParseGarbageCollectPolicy(t *testing.T) {\n\tr := require.New(t)\n\tapp := &v1beta1.Application{Spec: v1beta1.ApplicationSpec{\n\t\tPolicies: []v1beta1.AppPolicy{{Type: \"example\"}},\n\t}}\n\tspec, err := ParseGarbageCollectPolicy(app)\n\tr.NoError(err)\n\tr.Nil(spec)\n\tapp.Spec.Policies = append(app.Sp...
f70065f28227c87a91b986c30479a44af840f5dc
26,070
go
Go
playground/backend/internal/code_processing/code_processing_test.go
viclai/beam
872455570ae7f3e2e35360bccf93b503ae9fdb5c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
playground/backend/internal/code_processing/code_processing_test.go
viclai/beam
872455570ae7f3e2e35360bccf93b503ae9fdb5c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
6
2021-08-10T21:44:38.000Z
2022-03-16T18:03:33.000Z
playground/backend/internal/code_processing/code_processing_test.go
viclai/beam
872455570ae7f3e2e35360bccf93b503ae9fdb5c
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
2
2021-09-29T00:15:27.000Z
2022-02-22T19:13:12.000Z
// Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2.0 // (the "License"); you may not...
31.072706
307
0.647718
[ "func Test_Process(t *testing.T) {\n\tdefer goleak.VerifyNone(t, opt)\n\tappEnvs, err := environment.GetApplicationEnvsFromOsEnvs()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tsdkEnv, err := environment.ConfigureBeamEnvs(appEnvs.WorkingDir())\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\ttype args struct {\n\t\tctx ...
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
3