text
stringlengths
93
16.4k
id
stringlengths
20
40
metadata
dict
input_ids
listlengths
45
2.05k
attention_mask
listlengths
45
2.05k
complexity
int64
1
9
func TestConcurrentConns(t *testing.T) { listener := TcpListener{ ServiceAddress: ":8195", AllowedPendingMessages: 10000, MaxTCPConnections: 2, } listener.parser, _ = parsers.NewInfluxParser() acc := &testutil.Accumulator{} require.NoError(t, listener.Start(acc)) defer listener.Stop() time.S...
explode_data.jsonl/33002
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 446 }
[ 2830, 3393, 1109, 3231, 1109, 4412, 1155, 353, 8840, 836, 8, 341, 14440, 798, 1669, 64876, 2743, 515, 197, 91619, 4286, 25, 260, 13022, 23, 16, 24, 20, 756, 197, 197, 35382, 32027, 15820, 25, 220, 16, 15, 15, 15, 15, 345, 197, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestContext2Plan_computedList(t *testing.T) { m := testModule(t, "plan-computed-list") p := testProvider("aws") p.GetSchemaReturn = &ProviderSchema{ ResourceTypes: map[string]*configschema.Block{ "aws_instance": { Attributes: map[string]*configschema.Attribute{ "compute": {Type: cty.String, Option...
explode_data.jsonl/28673
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1332 }
[ 2830, 3393, 1972, 17, 20485, 2965, 19292, 852, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1273, 3332, 1155, 11, 330, 10393, 11476, 19292, 9029, 1138, 3223, 1669, 1273, 5179, 445, 8635, 1138, 3223, 2234, 8632, 5598, 284, 609, 5179, 8632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestValidateAlias(t *testing.T) { require := require.New(t) testFilePath := filepath.Join(os.TempDir(), testPath) defer testutil.CleanupPath(testFilePath) alias := "aaa" config.ReadConfig.Aliases = map[string]string{} err := validateAlias(alias) require.NoError(err) config.ReadConfig.Aliases[alias] = "a"...
explode_data.jsonl/13450
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 163 }
[ 2830, 3393, 17926, 22720, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 340, 18185, 19090, 1669, 26054, 22363, 9638, 65009, 6184, 1507, 1273, 1820, 340, 16867, 1273, 1314, 727, 60639, 1820, 8623, 19090, 340, 197, 14956, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestControlPlaneIsHealthy(t *testing.T) { readyStatus := corev1.PodStatus{ Conditions: []corev1.PodCondition{ { Type: corev1.PodReady, Status: corev1.ConditionTrue, }, }, } workloadCluster := &cluster{ client: &fakeClient{ list: nodeListForTestControlPlaneIsHealthy(), get: map[string...
explode_data.jsonl/9765
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 508 }
[ 2830, 3393, 3273, 34570, 3872, 96113, 1155, 353, 8840, 836, 8, 341, 197, 2307, 2522, 1669, 6200, 85, 16, 88823, 2522, 515, 197, 197, 35435, 25, 3056, 98645, 16, 88823, 10547, 515, 298, 197, 515, 571, 27725, 25, 256, 6200, 85, 16, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestS6aProxyWithHSS_AIA(t *testing.T) { config := generateS6aProxyConfig() addr := startTestServer(t, config, true) // Set up a connection to the server. conn, err := grpc.Dial(addr, grpc.WithInsecure()) if err != nil { t.Fatalf("GRPC connect error: %v", err) return } defer conn.Close() c := protos.Ne...
explode_data.jsonl/81464
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 889 }
[ 2830, 3393, 50, 21, 64, 16219, 2354, 39, 1220, 1566, 5863, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 6923, 50, 21, 64, 16219, 2648, 741, 53183, 1669, 1191, 2271, 5475, 1155, 11, 2193, 11, 830, 340, 197, 322, 2573, 705, 264, 3633, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestDecodeKeyPairs(t *testing.T) { cert := cert{ Domain: domain{"foo.bar"}, Key: "a2V5", Certificate: "Y2VydA==", } if err := decodeKeyPairs(&cert); err != nil { t.Failed() } assert.Equal(t, cert.Key, "key") assert.Equal(t, cert.Certificate, "cert") }
explode_data.jsonl/5440
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 136 }
[ 2830, 3393, 32564, 1592, 54228, 1155, 353, 8840, 836, 8, 1476, 1444, 529, 1669, 2777, 515, 197, 10957, 3121, 25, 414, 7947, 4913, 7975, 22001, 7115, 197, 55242, 25, 260, 330, 64, 17, 53, 20, 756, 197, 6258, 20962, 25, 330, 56, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMinimal_141(t *testing.T) { runTestAWS(t, "minimal-141.example.com", "minimal-141", "v1alpha0", false, 1, true, false, nil) }
explode_data.jsonl/17493
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 57 }
[ 2830, 3393, 88328, 62, 16, 19, 16, 1155, 353, 8840, 836, 8, 341, 56742, 2271, 36136, 1155, 11, 330, 92607, 12, 16, 19, 16, 7724, 905, 497, 330, 92607, 12, 16, 19, 16, 497, 330, 85, 16, 7141, 15, 497, 895, 11, 220, 16, 11, 830,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestMultipleBucketsDeferredBuild(t *testing.T) { log.Printf("In TestMultipleBucketsDeferredBuild()") e := secondaryindex.DropAllSecondaryIndexes(indexManagementAddress) FailTestIfError(e, "Error in DropAllSecondaryIndexes", t) index1 := "buck1_id1" index2 := "buck1_id2" index3 := "buck2_id3" bucket1 := "...
explode_data.jsonl/59132
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1719 }
[ 2830, 3393, 32089, 33, 38551, 88417, 11066, 1155, 353, 8840, 836, 8, 341, 6725, 19367, 445, 641, 3393, 32089, 33, 38551, 88417, 11066, 368, 5130, 7727, 1669, 14246, 1252, 21688, 2403, 48963, 62229, 7195, 22237, 4286, 340, 12727, 604, 2271...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestRunningAddressesWithPublishStatusAddress(t *testing.T) { fk := buildStatusSync() fk.PublishStatusAddress = "127.0.0.1" ra, _ := fk.runningAddresses() if ra == nil { t.Fatalf("returned nil but expected valid []string") } rl := len(ra) if len(ra) != 1 { t.Errorf("returned %v but expected %v", rl, 1) ...
explode_data.jsonl/63336
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 188 }
[ 2830, 3393, 18990, 52290, 2354, 50145, 2522, 4286, 1155, 353, 8840, 836, 8, 341, 1166, 74, 1669, 1936, 2522, 12154, 741, 1166, 74, 83935, 2522, 4286, 284, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 1837, 197, 956, 11, 716, 1669, 626...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestUnixSocketProxyPaths(t *testing.T) { greeting := "Hello route %s" tests := []struct { url string prefix string expected string }{ {"", "", fmt.Sprintf(greeting, "/")}, {"/hello", "", fmt.Sprintf(greeting, "/hello")}, {"/foo/bar", "", fmt.Sprintf(greeting, "/foo/bar")}, {"/foo?bar", "",...
explode_data.jsonl/64235
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 737 }
[ 2830, 3393, 55832, 10286, 16219, 26901, 1155, 353, 8840, 836, 8, 341, 3174, 43632, 1669, 330, 9707, 6021, 1018, 82, 1837, 78216, 1669, 3056, 1235, 341, 197, 19320, 414, 914, 198, 197, 3223, 5060, 256, 914, 198, 197, 42400, 914, 198, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestSerializeBasic(t *testing.T) { pr := &pingRequest{ ClientSiteID: "0101-0101", LicenseKey: "mylicense", DeployType: "server", ClientVersionString: "3.12.6", AuthProviders: []string{"foo", "bar"}, ExternalServices: []string{extsvc.KindG...
explode_data.jsonl/3334
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1172 }
[ 2830, 3393, 15680, 15944, 1155, 353, 8840, 836, 8, 341, 25653, 1669, 609, 9989, 1900, 515, 197, 71724, 17597, 915, 25, 1797, 330, 15, 16, 15, 16, 12, 15, 16, 15, 16, 756, 197, 197, 9827, 1592, 25, 2290, 330, 2408, 13266, 756, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDataFragment(t *testing.T) { msg, err := BuildMessageData("CQCQCQ PD0MZ", DDFormatUTF16, true) if err != nil { t.Fatalf("build message failed: %v", err) } want := &DataFragment{Data: msg} blocks, err := want.DataBlocks(Rate34Data, true) if err != nil { t.Fatalf("encode failed: %v", err) } if block...
explode_data.jsonl/3411
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 378 }
[ 2830, 93200, 9488, 1155, 353, 8840, 836, 8, 341, 21169, 11, 1848, 1669, 7854, 2052, 1043, 445, 34, 61042, 61042, 48, 26474, 15, 96988, 497, 30904, 4061, 8561, 16, 21, 11, 830, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestCreateBreaker(t *testing.T) { destination := &Destination{ Client: Client{ Name: "demo-provider", Namespace: "demo-dev", Version: "v1", }, MaxConnections: 1, HttpMaxPendingRequests: 1, SleepWindow: 1, HttpDetectionInterval: 1, Htt...
explode_data.jsonl/59911
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 287 }
[ 2830, 3393, 4021, 22524, 261, 1155, 353, 8840, 836, 8, 341, 197, 17997, 1669, 609, 33605, 515, 197, 71724, 25, 8423, 515, 298, 21297, 25, 286, 330, 25762, 81532, 756, 298, 90823, 25, 256, 330, 25762, 25758, 756, 298, 77847, 25, 257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCompositesWithRefs(t *testing.T) { ref1 := RefTerm(VarTerm("a"), VarTerm("i"), StringTerm("b")) ref2 := RefTerm(VarTerm("c"), IntNumberTerm(0), StringTerm("d"), StringTerm("e"), VarTerm("j")) assertParseOneTerm(t, "ref keys", "[{a[i].b: 8, c[0][\"d\"].e[j]: f}]", ArrayTerm(ObjectTerm(Item(ref1, IntNumberTer...
explode_data.jsonl/50464
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 261 }
[ 2830, 3393, 1092, 80139, 2354, 82807, 1155, 353, 8840, 836, 8, 341, 59504, 16, 1669, 8550, 17249, 7, 3962, 17249, 445, 64, 3975, 8735, 17249, 445, 72, 3975, 923, 17249, 445, 65, 5455, 59504, 17, 1669, 8550, 17249, 7, 3962, 17249, 445,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestScanField(t *testing.T) { type value struct { Field string Negated bool Advance int } cases := []struct { Input string Negated bool Want value }{ // Valid field. { Input: "repo:foo", Want: value{ Field: "repo", Advance: 5, }, }, { Input: "RepO:foo", Want:...
explode_data.jsonl/49623
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 895 }
[ 2830, 3393, 26570, 1877, 1155, 353, 8840, 836, 8, 341, 13158, 897, 2036, 341, 197, 94478, 256, 914, 198, 197, 18317, 791, 657, 1807, 198, 197, 197, 95027, 526, 198, 197, 532, 1444, 2264, 1669, 3056, 1235, 341, 197, 66588, 256, 914, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestKubeenvMetrics(t *testing.T) { if err := applyMixerRule(kubeenvTelemetryRule); err != nil { fatalf(t, "could not create required mixer rule: %v", err) } defer func() { if err := deleteMixerRule(kubeenvTelemetryRule); err != nil { t.Logf("could not clear rule: %v", err) } }() allowRuleSync() i...
explode_data.jsonl/81436
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 580 }
[ 2830, 3393, 42, 3760, 3160, 27328, 1155, 353, 8840, 836, 8, 341, 743, 1848, 1669, 3796, 44, 39014, 11337, 5969, 3760, 3160, 6639, 35958, 11337, 1215, 1848, 961, 2092, 341, 197, 1166, 266, 3104, 1155, 11, 330, 28077, 537, 1855, 2567, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSendDB(t *testing.T) { tempDir, err := ioutil.TempDir("", "") if err != nil { t.Fatalf("unexpected error creating temp dir: %s", err) } defer os.RemoveAll(tempDir) var paths []string ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { paths = append(paths, r.URL....
explode_data.jsonl/21435
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 561 }
[ 2830, 3393, 11505, 3506, 1155, 353, 8840, 836, 8, 341, 16280, 6184, 11, 1848, 1669, 43144, 65009, 6184, 19814, 14676, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 53859, 1465, 6825, 2730, 5419, 25, 1018, 82, 497, 1848, 340, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestFillingDefaultRpcNameAndAddress(t *testing.T) { cfg := &Config{ ClusterMetadata: &ClusterMetadata{ CurrentClusterName: "clusterA", ClusterInformation: map[string]ClusterInformation{ "clusterA": { RPCAddress: "127.0.0.1:7933", }, }, }, PublicClient: PublicClient{ HostPort: "", ...
explode_data.jsonl/46569
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 37, 9400, 3675, 60248, 675, 3036, 4286, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 609, 2648, 515, 197, 197, 28678, 14610, 25, 609, 28678, 14610, 515, 298, 197, 5405, 28678, 675, 25, 330, 18855, 32, 756, 298, 197, 28678, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDeleteControllerAndExpectations(t *testing.T) { client := clientset.NewForConfigOrDie(&restclient.Config{Host: "", ContentConfig: restclient.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc, 10, 0) manager.podStoreSynced =...
explode_data.jsonl/10054
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 525 }
[ 2830, 3393, 6435, 2051, 3036, 17536, 804, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 2943, 746, 7121, 2461, 2648, 2195, 18175, 2099, 3927, 2972, 10753, 90, 9296, 25, 7342, 8883, 2648, 25, 2732, 2972, 12614, 2648, 90, 2808, 5637, 25, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestMultipleRulesCoveringSingleRule(t *testing.T) { escalationTest{ ownerRules: []authorizationapi.PolicyRule{ {Verbs: sets.NewString("delete"), Resources: sets.NewString("deployments")}, {Verbs: sets.NewString("delete"), Resources: sets.NewString("builds")}, {Verbs: sets.NewString("update"), Resources...
explode_data.jsonl/9043
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 32089, 26008, 30896, 287, 10888, 11337, 1155, 353, 8840, 836, 8, 341, 80629, 278, 367, 2271, 515, 197, 197, 8118, 26008, 25, 3056, 39554, 2068, 1069, 8018, 11337, 515, 298, 197, 90, 10141, 1279, 25, 7289, 7121, 703, 445, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInjectionIgnoreNotProvided(t *testing.T) { type Aaa1 struct{} type Bbb1 struct { Aaa1 *Aaa1 `inject:""` } b := new(Bbb1) _ = NewDebug(). WithObjects(b). InitializeGraphWithImplicitObjects() fmt.Printf("b=%#v\n", b) assert.NotNil(t, b.Aaa1, "b=%#v", b) }
explode_data.jsonl/72955
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 136 }
[ 2830, 3393, 36653, 12497, 2623, 35819, 291, 1155, 353, 8840, 836, 8, 341, 13158, 362, 5305, 16, 2036, 16094, 13158, 425, 6066, 16, 2036, 341, 197, 22985, 5305, 16, 353, 32, 5305, 16, 1565, 32133, 2974, 8805, 197, 630, 2233, 1669, 501,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDeleteFileShare(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() cloud := &Cloud{} mockFileClient := mockfileclient.NewMockInterface(ctrl) mockFileClient.EXPECT().DeleteFileShare(gomock.Any(), gomock.Any(), gomock.Any()).Return(nil).AnyTimes() cloud.FileClient = mockFileClient tests...
explode_data.jsonl/10211
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 355 }
[ 2830, 3393, 6435, 1703, 12115, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 197, 12361, 1669, 609, 16055, 16094, 77333, 1703, 2959, 1669, 7860, 1192, 2972, 7121, 11571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestPeersToProto(t *testing.T) { // single node single := &node{ id: testNodeId, address: testNodeAddress, peers: make(map[string]*node), network: newNetwork(Name(testNodeNetName)), status: newStatus(), } topCount := 0 protoPeers := PeersToProto(single, 0) if len(protoPeers.Peers) != topC...
explode_data.jsonl/23550
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 343 }
[ 2830, 3393, 10197, 388, 1249, 31549, 1155, 353, 8840, 836, 8, 341, 197, 322, 3175, 2436, 198, 1903, 2173, 1669, 609, 3509, 515, 197, 15710, 25, 414, 1273, 79206, 345, 197, 63202, 25, 1273, 1955, 4286, 345, 197, 197, 375, 388, 25, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestEtcdListPods(t *testing.T) { fakeClient := tools.NewFakeEtcdClient(t) ctx := api.NewDefaultContext() key := makePodListKey(ctx) fakeClient.Data[key] = tools.EtcdResponseWithError{ R: &etcd.Response{ Node: &etcd.Node{ Nodes: []*etcd.Node{ { Value: runtime.EncodeOrDie(latest.Codec, &api.P...
explode_data.jsonl/8153
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 505 }
[ 2830, 3393, 31860, 4385, 852, 23527, 82, 1155, 353, 8840, 836, 8, 341, 1166, 726, 2959, 1669, 7375, 7121, 52317, 31860, 4385, 2959, 1155, 340, 20985, 1669, 6330, 7121, 3675, 1972, 741, 23634, 1669, 1281, 23527, 852, 1592, 7502, 340, 116...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestContext2Plan_moduleDestroyMultivar(t *testing.T) { m := testModule(t, "plan-module-destroy-multivar") p := testProvider("aws") p.DiffFn = testDiffFn s := MustShimLegacyState(&State{ Modules: []*ModuleState{ &ModuleState{ Path: rootModulePath, Resources: map[string]*ResourceState{}, }, ...
explode_data.jsonl/28692
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 706 }
[ 2830, 3393, 1972, 17, 20485, 10750, 14245, 40404, 56398, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1273, 3332, 1155, 11, 330, 10393, 46718, 12, 15518, 96927, 56398, 1138, 3223, 1669, 1273, 5179, 445, 8635, 1138, 3223, 98063, 24911, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestHasOrgVisibleTypePublic(t *testing.T) { assert.NoError(t, PrepareTestDatabase()) owner := AssertExistsAndLoadBean(t, &User{ID: 2}).(*User) user3 := AssertExistsAndLoadBean(t, &User{ID: 3}).(*User) const newOrgName = "test-org-public" org := &User{ Name: newOrgName, Visibility: structs.VisibleTy...
explode_data.jsonl/71077
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 320 }
[ 2830, 3393, 10281, 42437, 5715, 929, 12676, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 31166, 2271, 5988, 2398, 197, 8118, 1669, 5319, 15575, 3036, 5879, 10437, 1155, 11, 609, 1474, 90, 915, 25, 220, 17, 16630, 4071, 1474, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUpdateTaskRunResultTwoResults(t *testing.T) { for _, c := range []struct { desc string podStatus corev1.PodStatus taskRunStatus *v1beta1.TaskRunStatus want []v1beta1.TaskRunResult }{{ desc: "two test results", podStatus: corev1.PodStatus{ ContainerStatuses: []corev1.Conta...
explode_data.jsonl/60090
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 538 }
[ 2830, 3393, 4289, 6262, 6727, 2077, 11613, 9801, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 272, 1669, 2088, 3056, 1235, 341, 197, 41653, 688, 914, 198, 197, 3223, 347, 2522, 257, 6200, 85, 16, 88823, 2522, 198, 197, 49115, 6727, 2522,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCreatePublicToken(t *testing.T) { sandboxResp, _ := testClient.CreateSandboxPublicToken(sandboxInstitution, testProducts) tokenResp, _ := testClient.ExchangePublicToken(sandboxResp.PublicToken) publicTokenResp, err := testClient.CreatePublicToken(tokenResp.AccessToken) assert.Nil(t, err) assert.True(t, s...
explode_data.jsonl/12576
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 121 }
[ 2830, 3393, 4021, 12676, 3323, 1155, 353, 8840, 836, 8, 341, 1903, 31536, 36555, 11, 716, 1669, 1273, 2959, 7251, 50, 31536, 12676, 3323, 1141, 31536, 641, 10446, 11, 1273, 17746, 340, 43947, 36555, 11, 716, 1669, 1273, 2959, 86997, 126...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGet(t *testing.T) { t.Run("exists", func(t *testing.T) { mockStore := new(store.MockStore) mockStore.On("Get", "test key").Return("test value", true) testServer := server.NewServer(mockStore, newLogger()) response, err := testServer.Get(context.Background(), &api.GetRequest{ Key: "test key", }) ...
explode_data.jsonl/28527
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 350 }
[ 2830, 3393, 1949, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 16304, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 77333, 6093, 1669, 501, 31200, 24664, 6093, 340, 197, 77333, 6093, 8071, 445, 1949, 497, 330, 1944, 1376, 1827, 559...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestClient_Do(t *testing.T) { tests := []struct { name string cfg config.Metadata mockReceiver *mockEventStoreReceiver sendReq *types.Request wantReq *types.Request wantResp *types.Response wantErr bool }{ { name: "request", cfg: config.Metadata{ Name...
explode_data.jsonl/42675
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1413 }
[ 2830, 3393, 2959, 93481, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 50286, 688, 2193, 46475, 198, 197, 77333, 25436, 353, 16712, 1556, 6093, 25436, 198, 197, 32817, 27234, 414, 353, 9242,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestHook_SafeName(t *testing.T) { WorkingDir = "/hooks" hookPath := "/hooks/002-cool-hooks/monitor-namespaces.py" hookName, err := filepath.Rel(WorkingDir, hookPath) if err != nil { t.Error(err) } h := NewHook(hookName, hookPath) assert.Equal(t, "002-cool-hooks-monitor-namespaces-py", h.SafeName()) }
explode_data.jsonl/7944
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 129 }
[ 2830, 3393, 31679, 1098, 5645, 675, 1155, 353, 8840, 836, 8, 341, 197, 33978, 6184, 284, 3521, 38560, 698, 9598, 1941, 1820, 1669, 3521, 38560, 14, 15, 15, 17, 22471, 337, 78387, 14, 32225, 89044, 27338, 7197, 1837, 9598, 1941, 675, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestZeroList(t *testing.T) { gtest.C(t, func(t *gtest.T) { var l1 = New() l1.PushFront(1) checkList(t, l1, []interface{}{1}) var l2 = New() l2.PushBack(1) checkList(t, l2, []interface{}{1}) var l3 = New() l3.PushFrontList(l1) checkList(t, l3, []interface{}{1}) var l4 = New() l4.PushBackLi...
explode_data.jsonl/30892
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 188 }
[ 2830, 3393, 17999, 852, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 2405, 326, 16, 284, 1532, 741, 197, 8810, 16, 34981, 23395, 7, 16, 340, 197, 25157, 852, 1155, 11, 326, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMonFoundInQuorum(t *testing.T) { response := client.MonStatusResponse{} // "a" is in quorum response.Quorum = []int{0} response.MonMap.Mons = []client.MonMapEntry{ {Name: "a", Rank: 0}, {Name: "b", Rank: 1}, {Name: "c", Rank: 2}, } assert.True(t, monFoundInQuorum("a", response)) assert.False(t, m...
explode_data.jsonl/57261
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 265 }
[ 2830, 3393, 11095, 6650, 641, 2183, 33006, 1155, 353, 8840, 836, 8, 341, 21735, 1669, 2943, 52211, 2522, 2582, 31483, 197, 322, 330, 64, 1, 374, 304, 922, 33006, 198, 21735, 33907, 33006, 284, 3056, 396, 90, 15, 532, 21735, 52211, 222...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCommandStats(t *testing.T) { e := getTestExporter() setupDBKeys(t, os.Getenv("TEST_REDIS_URI")) defer deleteKeysFromDB(t, os.Getenv("TEST_REDIS_URI")) chM := make(chan prometheus.Metric) go func() { e.Collect(chM) close(chM) }() want := map[string]bool{"test_commands_duration_seconds_total": fals...
explode_data.jsonl/46994
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 244 }
[ 2830, 3393, 4062, 16635, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 633, 2271, 88025, 2822, 84571, 3506, 8850, 1155, 11, 2643, 64883, 445, 10033, 2192, 21202, 23116, 5455, 16867, 3698, 8850, 3830, 3506, 1155, 11, 2643, 64883, 445, 10033, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFlipServiceInternalAnnotation(t *testing.T) { svc := getTestService("servicea", v1.ProtocolTCP, 80) svcUpdated := flipServiceInternalAnnotation(&svc) if !requiresInternalLoadBalancer(svcUpdated) { t.Errorf("Expected svc to be an internal service") } svcUpdated = flipServiceInternalAnnotation(svcUpdated)...
explode_data.jsonl/50382
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 267 }
[ 2830, 3393, 46808, 1860, 11569, 19711, 1155, 353, 8840, 836, 8, 341, 1903, 7362, 1669, 633, 2271, 1860, 445, 7936, 64, 497, 348, 16, 54096, 49896, 11, 220, 23, 15, 340, 1903, 7362, 16196, 1669, 18287, 1860, 11569, 19711, 2099, 58094, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestPopulateCluster_Custom_CIDR(t *testing.T) { c := buildMinimalCluster() c.Spec.NetworkCIDR = "172.20.2.0/24" c.Spec.Subnets = []kopsapi.ClusterSubnetSpec{ {Name: "subnet-us-mock-1a", Zone: "us-mock-1a", CIDR: "172.20.2.0/27"}, {Name: "subnet-us-mock-1b", Zone: "us-mock-1b", CIDR: "172.20.2.32/27"}, {Na...
explode_data.jsonl/75035
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 392 }
[ 2830, 3393, 11598, 6334, 28678, 57402, 87525, 49, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1936, 88328, 28678, 741, 1444, 36473, 30149, 54146, 49, 284, 330, 16, 22, 17, 13, 17, 15, 13, 17, 13, 15, 14, 17, 19, 698, 1444, 36473, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestStateFromName(t *testing.T) { t.Run("valid state names", func(t *testing.T) { states := []state{ &stateInitial{}, &statePrepareResponse{}, &stateAwaitResponse{}, &stateDone{}, } for _, expected := range states { actual, err := stateFromName(expected.Name()) require.NoError(t, err) ...
explode_data.jsonl/11778
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 196 }
[ 2830, 3393, 1397, 3830, 675, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1891, 1584, 5036, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 18388, 973, 1669, 3056, 2454, 515, 298, 197, 5, 2454, 6341, 38837, 298, 197, 5, 2454, 50590...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestPEGWorking(t *testing.T) { tests := []struct { name string input string ncalls int }{ { name: "Empty", input: "", ncalls: 0}, { name: "Set", input: "Set(2, f=10)", ncalls: 1}, { name: "SetWithColKeySingleQuote", input: `Set('foo', f=10)`, ncalls: 1}, { ...
explode_data.jsonl/21701
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2515 }
[ 2830, 3393, 22061, 33978, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 22427, 220, 914, 198, 197, 197, 1016, 5583, 526, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 256, 330, 3522, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestOnlyLocalLoadBalancing(t *testing.T) { ipt, fp := buildFakeProxier() svcIP := "10.20.30.41" svcPort := 80 svcNodePort := 3001 svcLBIP := "1.2.3.4" svcPortName := proxy.ServicePortName{ NamespacedName: makeNSN("ns1", "svc1"), Port: "p80", } makeServiceMap(fp, makeTestService(svcPortNam...
explode_data.jsonl/44362
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1314 }
[ 2830, 3393, 7308, 7319, 5879, 37889, 8974, 1155, 353, 8840, 836, 8, 341, 8230, 417, 11, 12007, 1669, 1936, 52317, 1336, 87, 1268, 2822, 1903, 7362, 3298, 1669, 330, 16, 15, 13, 17, 15, 13, 18, 15, 13, 19, 16, 698, 1903, 7362, 7084...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEditHistoryUnflushed(t *testing.T) { // Bob writes one file. expectedEdits1 := []expectedEdit{ { "alice,bob", keybase1.FolderType_PRIVATE, "bob", []string{"/keybase/private/alice,bob/a/b"}, nil, }, } // Alice and Bob both write a second file, but alice's is unflushed. expectedEdits2Alic...
explode_data.jsonl/54760
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1183 }
[ 2830, 3393, 4036, 13424, 1806, 21664, 291, 1155, 353, 8840, 836, 8, 341, 197, 322, 14261, 13914, 825, 1034, 624, 42400, 2715, 1199, 16, 1669, 3056, 7325, 4036, 515, 197, 197, 515, 298, 197, 1, 63195, 8402, 674, 756, 298, 23634, 3152, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetCategoryById(t *testing.T) { fmt.Println("TestGetCategoryById") if testing.Short() { t.Skip("skipping test short mode") } initTest() cat, err := manager.getCategoryByID(1) if err != nil { t.Error(err) } if cat == nil { t.Error("expected category") } p := "" if cat.ParentCategoryId != nil {...
explode_data.jsonl/22085
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 1949, 6746, 2720, 1155, 353, 8840, 836, 8, 341, 11009, 12419, 445, 2271, 1949, 6746, 2720, 1138, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 2805, 3856, 1138, 197, 532, 28248, 2271, 741, 92791, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestEmptyNameConstraints(t *testing.T) { block, _ := pem.Decode([]byte(emptyNameConstraintsPEM)) _, err := ParseCertificate(block.Bytes) if err == nil { t.Fatal("unexpected success") } const expected = "empty name constraints" if str := err.Error(); !strings.Contains(str, expected) { t.Errorf("expected ...
explode_data.jsonl/68015
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 3522, 675, 12925, 1155, 353, 8840, 836, 8, 341, 47996, 11, 716, 1669, 54184, 56372, 10556, 3782, 24216, 675, 12925, 1740, 44, 1171, 197, 6878, 1848, 1669, 14775, 33202, 18682, 36868, 340, 743, 1848, 621, 2092, 341, 197, 3244...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestStateOversizedBlock(t *testing.T) { config := configSetup(t) ctx, cancel := context.WithCancel(context.Background()) defer cancel() cs1, vss := makeState(ctx, t, makeStateArgs{config: config, validators: 2}) cs1.state.ConsensusParams.Block.MaxBytes = 2000 height, round := cs1.Height, cs1.Round vs2 := v...
explode_data.jsonl/54260
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 781 }
[ 2830, 3393, 1397, 46, 3004, 1506, 4713, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 2193, 21821, 1155, 340, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 2822, 71899, 16, 11, 348, 778, 1669, 1281, 1397, 7502, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestNewEnvironment(t *testing.T) { context := "" // empty, use current-Context kubeconfig, wantConfig := createFakeKubeconfigFileOrDie(t) var wOut, wErr bytes.Buffer wantEnv := &KubeEnvironment{ config: wantConfig, stdout: &wOut, stderr: &wErr, kubeconfig: kubeconfig, } gotEnv, err := ...
explode_data.jsonl/65418
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 561 }
[ 2830, 3393, 3564, 12723, 1155, 353, 8840, 836, 8, 341, 28413, 1669, 1591, 442, 4287, 11, 990, 1482, 12, 1972, 198, 16463, 3760, 1676, 11, 1366, 2648, 1669, 1855, 52317, 42, 3760, 1676, 1703, 2195, 18175, 1155, 692, 2405, 289, 2662, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestRootMappingFsMount(t *testing.T) { c := qt.New(t) fs := NewBaseFileDecorator(afero.NewMemMapFs()) testfile := "test.txt" c.Assert(afero.WriteFile(fs, filepath.Join("themes/a/mynoblogcontent", testfile), []byte("some no content"), 0755), qt.IsNil) c.Assert(afero.WriteFile(fs, filepath.Join("themes/a/myen...
explode_data.jsonl/13727
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1548 }
[ 2830, 3393, 8439, 6807, 48300, 16284, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 38949, 7121, 1155, 340, 53584, 1669, 1532, 3978, 1703, 47951, 2877, 802, 78, 7121, 18816, 2227, 48300, 12367, 18185, 1192, 1669, 330, 1944, 3909, 1837, 1444, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestUpdatePostTimeLimit(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() post := th.BasicPost.Clone() th.App.Srv().SetLicense(model.NewTestLicense()) th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.PostEditTimeLimit = -1 }) _, err := th.App.UpdatePost(th.Context, post, ...
explode_data.jsonl/26426
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 351 }
[ 2830, 3393, 4289, 4133, 1462, 16527, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 51172, 1669, 270, 48868, 4133, 64463, 2822, 70479, 5105, 808, 10553, 1005, 1649, 9827, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStoreWatchExpireEmptyRefresh(t *testing.T) { s := newStore() fc := newFakeClock() s.clock = fc var eidx uint64 s.Create("/foo", false, "bar", false, TTLOptionSet{ExpireTime: fc.Now().Add(500 * time.Millisecond), Refresh: true}) // Should be no-op fc.Advance(200 * time.Millisecond) s.DeleteExpiredKeys(...
explode_data.jsonl/44124
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 371 }
[ 2830, 3393, 6093, 14247, 8033, 554, 3522, 14567, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 501, 6093, 741, 1166, 66, 1669, 501, 52317, 26104, 741, 1903, 50546, 284, 25563, 271, 2405, 384, 6361, 2622, 21, 19, 198, 1903, 7251, 4283, 797...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInRepoConfigEnabled(t *testing.T) { testCases := []struct { name string config Config expected bool testing string }{ { name: "Exact match", config: Config{ ProwConfig: ProwConfig{ InRepoConfig: InRepoConfig{ Enabled: map[string]*bool{ "org/repo": utilpointer.Bool...
explode_data.jsonl/41041
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1551 }
[ 2830, 3393, 641, 25243, 2648, 5462, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 25873, 256, 5532, 198, 197, 42400, 1807, 198, 197, 197, 8840, 220, 914, 198, 197, 59403, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestPutReflect_struct(t *testing.T) { var a1 testStruct = testStruct{42, "hello", 12.5} expected := make([]byte, 18) lex.PutInt(expected, a1.A) lex.PutString(expected[8:], a1.B) lex.PutFloat32(expected[14:], a1.C) actual := make([]byte, 18) lex.PutReflect(actual, a1) assert.True(t, bytes.Equal(expected,...
explode_data.jsonl/50147
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 138 }
[ 2830, 3393, 19103, 72789, 15126, 1155, 353, 8840, 836, 8, 341, 2405, 264, 16, 1273, 9422, 284, 1273, 9422, 90, 19, 17, 11, 330, 14990, 497, 220, 16, 17, 13, 20, 630, 42400, 1669, 1281, 10556, 3782, 11, 220, 16, 23, 340, 197, 2571,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIssue14159(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("DROP TABLE IF EXISTS t") tk.MustExec("CREATE TABLE t (v VARCHAR(100))") tk.MustExec("INSERT INTO t VALUES ('3289742893213123732904809')") tk.MustQ...
explode_data.jsonl/65508
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 159 }
[ 2830, 3393, 42006, 16, 19, 16, 20, 24, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPostgresqlIgnoresUnwantedColumnsIntegration(t *testing.T) { if testing.Short() { t.Skip("Skipping integration test in short mode") } p := &Postgresql{ Log: testutil.Logger{}, Service: postgresql.Service{ Address: fmt.Sprintf( "host=%s user=postgres sslmode=disable", testutil.GetLocalHost()...
explode_data.jsonl/20139
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 4133, 81624, 40, 70, 2152, 416, 1806, 86592, 13965, 52464, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 85945, 17590, 1273, 304, 2805, 3856, 1138, 197, 630, 3223, 1669, 609, 4133, 81624, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestZb_CancelOrder(t *testing.T) { r, err := zb.CancelOrder("201802014255365", goex.NewCurrencyPair2("BTC_QC")) t.Log(err) t.Log(r) }
explode_data.jsonl/28912
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 68 }
[ 2830, 3393, 57, 65, 97485, 4431, 1155, 353, 8840, 836, 8, 341, 7000, 11, 1848, 1669, 74355, 36491, 4431, 445, 17, 15, 16, 23, 15, 17, 15, 16, 19, 17, 20, 20, 18, 21, 20, 497, 728, 327, 7121, 26321, 12443, 17, 445, 59118, 13337, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestInvokeCmd(t *testing.T) { defer viper.Reset() defer resetFlags() resetFlags() mockCF, err := getMockChaincodeCmdFactory() assert.NoError(t, err, "Error getting mock chaincode command factory") // Error case 0: no channelID specified cmd := invokeCmd(mockCF) addFlags(cmd) args := []string{"-n", "exam...
explode_data.jsonl/65802
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1664 }
[ 2830, 3393, 17604, 15613, 1155, 353, 8840, 836, 8, 341, 16867, 95132, 36660, 741, 16867, 7585, 9195, 2822, 70343, 9195, 741, 77333, 9650, 11, 1848, 1669, 633, 11571, 18837, 1851, 15613, 4153, 741, 6948, 35699, 1155, 11, 1848, 11, 330, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResolvePlaceholdersInGlobalVariables(t *testing.T) { ctx := context.Background() wf := unmarshalWF(globalVariablePlaceholders) woc := newWoc(*wf) woc.operate(ctx) assert.Equal(t, wfv1.WorkflowRunning, woc.wf.Status.Phase) pods, err := listPods(woc) assert.NoError(t, err) assert.True(t, len(pods.Items) ...
explode_data.jsonl/71007
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 315 }
[ 2830, 3393, 56808, 17371, 16662, 641, 11646, 22678, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 6692, 69, 1669, 650, 27121, 32131, 31951, 7827, 17371, 16662, 340, 6692, 509, 1669, 501, 54, 509, 4071, 43083, 340, 6692, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAliasInConfigFile(t *testing.T) { // the config file specifies "beard". If we make this an alias for // "hasbeard", we still want the old config file to work with beard. RegisterAlias("beard", "hasbeard") assert.Equal(t, true, Get("hasbeard")) Set("hasbeard", false) assert.Equal(t, false, Get("beard")) ...
explode_data.jsonl/5550
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 22720, 641, 2648, 1703, 1155, 353, 8840, 836, 8, 341, 197, 322, 279, 2193, 1034, 29102, 330, 1371, 567, 3263, 220, 1416, 582, 1281, 419, 458, 15534, 369, 198, 197, 322, 330, 4648, 1371, 567, 497, 582, 2058, 1366, 279, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFirstBigSet(t *testing.T) { tests := []struct { num *big.Int ix int }{ {big.NewInt(0), 0}, {big.NewInt(1), 0}, {big.NewInt(2), 1}, {big.NewInt(0x100), 8}, } for _, test := range tests { if ix := FirstBitSet(test.num); ix != test.ix { t.Errorf("FirstBitSet(b%b) = %d, want %d", test.num, ix...
explode_data.jsonl/35393
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 171 }
[ 2830, 3393, 5338, 15636, 1649, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 22431, 353, 16154, 7371, 198, 197, 197, 941, 220, 526, 198, 197, 59403, 197, 197, 90, 16154, 7121, 1072, 7, 15, 701, 220, 15, 1583, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestConfigSourceManager_ResolveErrors(t *testing.T) { ctx := context.Background() testErr := errors.New("test error") tests := []struct { name string config map[string]interface{} configSourceMap map[string]configsource.ConfigSource }{ { name: "incorrect_cfgsrc_ref", config: ...
explode_data.jsonl/34667
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 466 }
[ 2830, 3393, 2648, 3608, 2043, 62, 56808, 13877, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 18185, 7747, 1669, 5975, 7121, 445, 1944, 1465, 5130, 78216, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 25873, 688,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFetchConfigFilenames(t *testing.T) { if _, err := fetchConfigFilenames(""); err == nil { t.Errorf("FetchConfigFilenames(): should throw ==> '%v'", "config dir name is empty") return } var noneexistingDir = "cafebabe" if _, err := fetchConfigFilenames(noneexistingDir); err == nil { t.Errorf("FetchCo...
explode_data.jsonl/7669
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 414 }
[ 2830, 3393, 20714, 2648, 37, 52768, 1155, 353, 8840, 836, 8, 1476, 743, 8358, 1848, 1669, 7807, 2648, 37, 52768, 97918, 1848, 621, 2092, 341, 197, 3244, 13080, 445, 20714, 2648, 37, 52768, 4555, 1265, 2510, 32296, 7677, 85, 22772, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestTrackFunctionsFailingPOST(t *testing.T) { assert := assert.New(t) httpmock.Activate() defer httpmock.DeactivateAndReset() httpmock.RegisterResponder( "POST", "http://com.acme.collector/com.snowplowanalytics.snowplow/tp2", httpmock.NewStringResponder(404, ""), ) tracker := InitTracker( RequireEm...
explode_data.jsonl/37652
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 353 }
[ 2830, 3393, 15667, 25207, 37, 14277, 2946, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 28080, 16712, 14140, 731, 741, 16867, 1758, 16712, 8934, 16856, 3036, 14828, 2822, 28080, 16712, 19983, 30884, 1006, 197, 197, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCacheTimes(t *testing.T) { var found bool tc := New(50*time.Millisecond, 1*time.Millisecond) tc.Set("a", 1, DefaultExpiration) tc.Set("b", 2, NoExpiration) tc.Set("c", 3, 20*time.Millisecond) tc.Set("d", 4, 70*time.Millisecond) <-time.After(25 * time.Millisecond) _, found = tc.Get("c") if found { ...
explode_data.jsonl/63757
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 355 }
[ 2830, 3393, 8233, 18889, 1155, 353, 8840, 836, 8, 341, 2405, 1730, 1807, 271, 78255, 1669, 1532, 7, 20, 15, 77053, 71482, 11, 220, 16, 77053, 71482, 340, 78255, 4202, 445, 64, 497, 220, 16, 11, 7899, 66301, 340, 78255, 4202, 445, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestBaseTable_Instance(t *testing.T) { tests := []struct { name string b *BaseTable want string }{ { name: "1", b: NewBaseTable("db", "schema", "table"), want: "db", }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := tt.b.Instance(); got != tt.want { ...
explode_data.jsonl/20039
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 191 }
[ 2830, 3393, 3978, 2556, 70849, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 2233, 262, 353, 3978, 2556, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 16, 756, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestRuleForbiddenView(t *testing.T) { common.Log.Debug("Entering function: %s", common.GetFunctionName()) sqls := []string{ `create view v_today (today) AS SELECT CURRENT_DATE;`, `CREATE VIEW v (col) AS SELECT 'abc';`, } for _, sql := range sqls { q, _ := NewQuery4Audit(sql) rule := q.RuleForbiddenView...
explode_data.jsonl/76801
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 11337, 69115, 851, 1155, 353, 8840, 836, 8, 341, 83825, 5247, 20345, 445, 82867, 729, 25, 1018, 82, 497, 4185, 2234, 5152, 675, 2398, 30633, 82, 1669, 3056, 917, 515, 197, 197, 63, 3182, 1651, 348, 68717, 320, 30113, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestTarUntarWrongPrefix(t *testing.T) { dir, err := ioutil.TempDir("", "input") checkErr(t, err) dir2, err := ioutil.TempDir("", "output") checkErr(t, err) dir = dir + "/" defer func() { os.RemoveAll(dir) os.RemoveAll(dir2) }() filepath := path.Join(dir, "foo") if err := os.MkdirAll(path.Dir(filepat...
explode_data.jsonl/58288
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 350 }
[ 2830, 3393, 62733, 20250, 277, 29185, 14335, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 1355, 1138, 25157, 7747, 1155, 11, 1848, 340, 48532, 17, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHOTP_HexRFCTestValues(t *testing.T) { otpHex, err := NewHOTP(rfc4226TestSecret, WithLength(8), FormatHex()) assert.NoError(t, err) // Expected results from https://tools.ietf.org/html/rfc4226#page-32 expectedResults := []string{ "4c93cf18", "41397eea", "082fef30", "66ef7655", "61c5938a", "33c...
explode_data.jsonl/41259
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 261 }
[ 2830, 3393, 39, 90146, 2039, 327, 17612, 76434, 6227, 1155, 353, 8840, 836, 8, 341, 197, 48708, 20335, 11, 1848, 1669, 1532, 39, 90146, 2601, 8316, 19, 17, 17, 21, 2271, 19773, 11, 3085, 4373, 7, 23, 701, 15042, 20335, 12367, 6948, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestReaderOnLatestWithBatching(t *testing.T) { client, err := NewClient(ClientOptions{ URL: lookupURL, }) assert.Nil(t, err) defer client.Close() topic := newTopicName() ctx := context.Background() // create producer producer, err := client.CreateProducer(ProducerOptions{ Topic: to...
explode_data.jsonl/6386
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 540 }
[ 2830, 3393, 5062, 1925, 31992, 2354, 21074, 287, 1155, 353, 8840, 836, 8, 341, 25291, 11, 1848, 1669, 1532, 2959, 46851, 3798, 515, 197, 79055, 25, 18615, 3144, 345, 197, 8824, 6948, 59678, 1155, 11, 1848, 340, 16867, 2943, 10421, 2822,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRandomUint64(t *testing.T) { tries := 1 << 8 // 2^8 watermark := uint64(1 << 56) // 2^56 maxHits := 5 badRNG := "The random number generator on this system is clearly " + "terrible since we got %d values less than %d in %d runs " + "when only %d was expected" numHits := 0 for i := 0; i ...
explode_data.jsonl/15306
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 307 }
[ 2830, 3393, 13999, 21570, 21, 19, 1155, 353, 8840, 836, 8, 341, 197, 4543, 1669, 220, 16, 1115, 220, 23, 1060, 442, 220, 17, 61, 23, 198, 6692, 962, 3987, 1669, 2622, 21, 19, 7, 16, 1115, 220, 20, 21, 8, 442, 220, 17, 61, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestSumInt64DataPoints(t *testing.T) { desc := metric.NewDescriptor("", metric.ValueRecorderKind, metric.Int64NumberKind) labels := label.NewSet() s := sumAgg.New() assert.NoError(t, s.Update(context.Background(), metric.Number(1), &desc)) s.Checkpoint(context.Background(), &desc) if m, err := sum(&desc, &la...
explode_data.jsonl/70792
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 251 }
[ 2830, 3393, 9190, 1072, 21, 19, 1043, 11411, 1155, 353, 8840, 836, 8, 341, 41653, 1669, 18266, 7121, 11709, 19814, 18266, 6167, 47023, 10629, 11, 18266, 7371, 21, 19, 2833, 10629, 340, 95143, 1669, 2383, 7121, 1649, 741, 1903, 1669, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestProperties_ValidateInvalidStruct(t *testing.T) { cs := getK8sDefaultContainerService(false) cs.Properties.OrchestratorProfile = &OrchestratorProfile{} expectedMsg := "missing Properties.OrchestratorProfile.OrchestratorType" if err := cs.Validate(false); err == nil || err.Error() != expectedMsg { t.Errorf...
explode_data.jsonl/17874
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 7903, 62, 17926, 7928, 9422, 1155, 353, 8840, 836, 8, 341, 71899, 1669, 633, 42, 23, 82, 3675, 4502, 1860, 3576, 340, 71899, 15945, 90449, 331, 15111, 850, 8526, 284, 609, 2195, 331, 15111, 850, 8526, 16094, 42400, 6611, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestPrepareRepoContext(t *testing.T) { var out bytes.Buffer logger := zerolog.New(&out) ctx := logger.WithContext(context.Background()) _, logger = PrepareRepoContext(ctx, 42, &github.Repository{ Name: github.String("test"), Owner: &github.User{ Login: github.String("mhaypenny"), }, }) logger.Inf...
explode_data.jsonl/70537
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 306 }
[ 2830, 3393, 50590, 25243, 1972, 1155, 353, 8840, 836, 8, 341, 2405, 700, 5820, 22622, 271, 17060, 1669, 76178, 1609, 7121, 2099, 411, 340, 20985, 1669, 5925, 26124, 1972, 5378, 19047, 12367, 197, 6878, 5925, 284, 31166, 25243, 1972, 7502,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestInferGrantType(t *testing.T) { for _, path := range []string{"dex", "okta", "auth0", "onelogin"} { t.Run(path, func(t *testing.T) { rawConfig, err := ioutil.ReadFile("testdata/" + path + ".json") assert.NoError(t, err) var config OIDCConfiguration err = json.Unmarshal(rawConfig, &config) asse...
explode_data.jsonl/51089
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 308 }
[ 2830, 3393, 641, 802, 67971, 929, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1815, 1669, 2088, 3056, 917, 4913, 91769, 497, 330, 562, 2565, 497, 330, 3242, 15, 497, 330, 263, 50571, 258, 9207, 341, 197, 3244, 16708, 5581, 11, 2915, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestTruncateToBitSize(t *testing.T) { tests := []struct{ v, bits, res uint64 }{ {0, 1, 0}, {1, 1, 1}, {0x123, 4, 0x3}, {0xabc, 4, 0xc}, {0x123, 8, 0x23}, {0xabc, 8, 0xbc}, {0x12345678abcdabcd, 64, 0x12345678abcdabcd}, {0xf2345678abcdabcd, 64, 0xf2345678abcdabcd}, } for i, test := range tests { ...
explode_data.jsonl/73782
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 291 }
[ 2830, 3393, 1282, 26900, 1249, 8344, 1695, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 90, 348, 11, 9472, 11, 592, 2622, 21, 19, 335, 515, 197, 197, 90, 15, 11, 220, 16, 11, 220, 15, 1583, 197, 197, 90, 16, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestServiceLoopCatchError(t *testing.T) { if dipper.Logger == nil { f, _ := os.OpenFile(os.DevNull, os.O_APPEND, 0o777) defer f.Close() dipper.GetLogger("test service", "DEBUG", f, f) } svc := &Service{ name: "testsvc", driverRuntimes: map[string]*driver.Runtime{ "d1": { State: driver.DriverAl...
explode_data.jsonl/12388
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1550 }
[ 2830, 3393, 1860, 14620, 57760, 1454, 1155, 353, 8840, 836, 8, 341, 743, 23604, 712, 12750, 621, 2092, 341, 197, 1166, 11, 716, 1669, 2643, 12953, 1703, 9638, 77611, 3280, 11, 2643, 8382, 65851, 11, 220, 15, 78, 22, 22, 22, 340, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSetCompactionFailed(t *testing.T) { tmpdir, err := ioutil.TempDir("", "test") testutil.Ok(t, err) defer func() { testutil.Ok(t, os.RemoveAll(tmpdir)) }() blockDir := createBlock(t, tmpdir, genSeries(1, 1, 0, 1)) b, err := OpenBlock(nil, blockDir, nil) testutil.Ok(t, err) testutil.Equals(t, false, b....
explode_data.jsonl/9633
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 262 }
[ 2830, 3393, 1649, 13552, 1311, 9408, 1155, 353, 8840, 836, 8, 341, 20082, 3741, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 1944, 1138, 18185, 1314, 54282, 1155, 11, 1848, 340, 16867, 2915, 368, 341, 197, 18185, 1314, 54282, 1155, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSetEnvVar(t *testing.T) { ctx := context.Background() scope := NewReferenceScope(TestTx) for _, v := range setEnvVarTests { err := SetEnvVar(ctx, scope, v.Expr) if err != nil { if len(v.Error) < 1 { t.Errorf("%s: unexpected error %q", v.Name, err) } else if err.Error() != v.Error { t.Err...
explode_data.jsonl/50848
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 300 }
[ 2830, 3393, 1649, 14359, 3962, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 66836, 1669, 1532, 8856, 10803, 31159, 31584, 692, 2023, 8358, 348, 1669, 2088, 738, 14359, 3962, 18200, 341, 197, 9859, 1669, 2573, 14359, 3962, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestRabbitMQGetMetricSpecForScaling(t *testing.T) { for _, testData := range rabbitMQMetricIdentifiers { meta, err := parseRabbitMQMetadata(&ScalerConfig{ResolvedEnv: sampleRabbitMqResolvedEnv, TriggerMetadata: testData.metadataTestData.metadata, AuthParams: nil}) if err != nil { t.Fatal("Could not parse m...
explode_data.jsonl/61599
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 268 }
[ 2830, 3393, 49, 19949, 35169, 1949, 54310, 8327, 2461, 59684, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 67348, 1669, 2088, 38724, 35169, 54310, 28301, 11836, 341, 197, 84004, 11, 1848, 1669, 4715, 49, 19949, 35169, 14610, 2099, 59553, 264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestRepositoryRelease_String(t *testing.T) { v := RepositoryRelease{ TagName: String(""), TargetCommitish: String(""), Name: String(""), Body: String(""), Draft: Bool(false), Prerelease: Bool(false), ID: Int64(0), CreatedAt: &Timestam...
explode_data.jsonl/33289
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 481 }
[ 2830, 3393, 4624, 16077, 31777, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 26377, 16077, 515, 197, 197, 22616, 25, 260, 923, 445, 4461, 197, 197, 6397, 33441, 812, 25, 923, 445, 4461, 197, 21297, 25, 310, 923, 445, 4461, 197, 197, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAdminApplet(t *testing.T) { Convey("Connecting to applet", t, func(ctx C) { app, err := New() So(err, ShouldBeNil) defer app.Close() Convey("Admin Applet behaves correctly", func(ctx C) { _, code, err := app.Send([]byte{0x00, 0xA4, 0x04, 0x00, 0x05, 0xF0, 0x00, 0x00, 0x00, 0x00}) So(err, Sho...
explode_data.jsonl/52257
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 923 }
[ 2830, 3393, 7210, 2164, 1149, 1155, 353, 8840, 836, 8, 1476, 93070, 5617, 445, 62924, 311, 906, 1149, 497, 259, 11, 2915, 7502, 356, 8, 1476, 197, 28236, 11, 1848, 1669, 1532, 741, 197, 76912, 3964, 11, 12260, 3430, 19064, 340, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMaxPathLen(t *testing.T) { template := &Certificate{ SerialNumber: big.NewInt(1), Subject: pkix.Name{ CommonName: "Σ Acme Co", }, NotBefore: time.Unix(1000, 0), NotAfter: time.Unix(100000, 0), BasicConstraintsValid: true, IsCA: true, } cert1 := serialiseAndParse(t, templ...
explode_data.jsonl/68005
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 444 }
[ 2830, 3393, 5974, 1820, 11271, 1155, 353, 8840, 836, 8, 341, 22832, 1669, 609, 33202, 515, 197, 93658, 2833, 25, 2409, 7121, 1072, 7, 16, 1326, 197, 197, 13019, 25, 22458, 941, 2967, 515, 298, 90580, 675, 25, 330, 144624, 6381, 2660, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestParseDERCRL(t *testing.T) { derBytes := fromBase64(derCRLBase64) certList, err := ParseDERCRL(derBytes) if err != nil { t.Errorf("error parsing: %s", err) return } numCerts := len(certList.TBSCertList.RevokedCertificates) expected := 88 if numCerts != expected { t.Errorf("bad number of revoked cer...
explode_data.jsonl/56553
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 14463, 11391, 34, 4728, 1155, 353, 8840, 836, 8, 341, 197, 1107, 7078, 1669, 504, 3978, 21, 19, 7, 1107, 34, 4728, 3978, 21, 19, 340, 1444, 529, 852, 11, 1848, 1669, 14775, 11391, 34, 4728, 7, 1107, 7078, 340, 743, 184...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestHasVar(t *testing.T) { for _, tt := range []struct { name string r *Rule s string want bool }{ { name: "has var", r: &Rule{ Matchers: []orderedMatcher{ &ByteMatch{ Variable: "foovar", }, }, }, s: "foovar", want: true, }, { name: "has var", r...
explode_data.jsonl/59698
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 383 }
[ 2830, 3393, 10281, 3962, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 3056, 1235, 341, 197, 11609, 914, 198, 197, 7000, 262, 353, 11337, 198, 197, 1903, 262, 914, 198, 197, 50780, 1807, 198, 197, 59403, 197, 197, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestTransportClone(t *testing.T) { tr := &Transport{ Proxy: func(*Request) (*url.URL, error) { panic("") }, DialContext: func(ctx context.Context, network, addr string) (net.Conn, error) { panic("") }, Dial: func(network, addr string) (net.Conn, error) { panic("...
explode_data.jsonl/14182
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 730 }
[ 2830, 3393, 27560, 37677, 1155, 353, 8840, 836, 8, 341, 25583, 1669, 609, 27560, 515, 197, 197, 16219, 25, 1698, 2915, 4071, 1900, 8, 4609, 1085, 20893, 11, 1465, 8, 314, 21975, 39047, 1153, 197, 10957, 530, 1972, 25, 310, 2915, 7502,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTypes(t *testing.T) { var type1 Min8Max28NumericText assert.NotNil(t, type1.Validate()) type1 = "test" assert.NotNil(t, type1.Validate()) type1 = "1111111111" assert.Nil(t, type1.Validate()) var type2 InvestigationStatus1Code assert.NotNil(t, type2.Validate()) type2 = "test" assert.NotNil(t, type2.V...
explode_data.jsonl/33449
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 689 }
[ 2830, 3393, 4173, 1155, 353, 8840, 836, 8, 341, 2405, 943, 16, 3386, 23, 5974, 17, 23, 36296, 1178, 198, 6948, 93882, 1155, 11, 943, 16, 47667, 2398, 13158, 16, 284, 330, 1944, 698, 6948, 93882, 1155, 11, 943, 16, 47667, 2398, 13158...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReadWaitsForLock(t *testing.T) { t.Parallel() dir, remove := mustTempDir(t) defer remove() path := filepath.Join(dir, "timestamp.txt") f, err := lockedfile.Create(path) if err != nil { t.Fatalf("Create: %v", err) } defer f.Close() const ( part1 = "part 1\n" part2 = "part 2\n" ) _, err = f....
explode_data.jsonl/44954
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 423 }
[ 2830, 3393, 4418, 54, 56479, 2461, 11989, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 48532, 11, 4057, 1669, 1969, 12151, 6184, 1155, 340, 16867, 4057, 2822, 26781, 1669, 26054, 22363, 14161, 11, 330, 13035, 3909, 5130, 1166, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestExpandUserNothingToExpand(t *testing.T) { expected := "does/not/expand" path, err := ExpandUser(expected) assert.NilError(t, err) assert.Equal(t, expected, path) }
explode_data.jsonl/34410
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 67 }
[ 2830, 3393, 38946, 1474, 23780, 1249, 38946, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 330, 27057, 62441, 14, 32317, 698, 26781, 11, 1848, 1669, 50141, 1474, 15253, 692, 6948, 59678, 1454, 1155, 11, 1848, 340, 6948, 12808, 1155, 11, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestRawArtifact(t *testing.T) { a := &RawArtifact{Data: "my-data"} assert.True(t, a.HasLocation()) assert.Error(t, a.SetKey("my-key")) _, err := a.GetKey() assert.Error(t, err) }
explode_data.jsonl/26024
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 82 }
[ 2830, 3393, 20015, 85578, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 609, 20015, 85578, 90, 1043, 25, 330, 2408, 13945, 16707, 6948, 32443, 1155, 11, 264, 16152, 4707, 2398, 6948, 6141, 1155, 11, 264, 4202, 1592, 445, 2408, 16173, 5455,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestKraken_GetUnfinishOrders(t *testing.T) { ords, err := k.GetUnfinishOrders(goex.NewCurrencyPair(goex.XBT, goex.USD)) assert.Nil(t, err) t.Log(ords) }
explode_data.jsonl/44494
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 76 }
[ 2830, 3393, 81165, 3366, 13614, 1806, 30150, 24898, 1155, 353, 8840, 836, 8, 341, 197, 2260, 11, 1848, 1669, 595, 2234, 1806, 30150, 24898, 47415, 327, 7121, 26321, 12443, 47415, 327, 4338, 17602, 11, 728, 327, 13, 26749, 1171, 6948, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestHoard_GetWithError(t *testing.T) { h := Make(ExpiresNever) result, err := h.GetWithError("key", func() (interface{}, error, *Expiration) { return "first", nil, ExpiresNever }) assert.Equal(t, result, "first") assert.Nil(t, err) result, err = h.GetWithError("key2", func() (interface{}, error, *Expir...
explode_data.jsonl/82499
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 39, 33386, 13614, 66102, 1155, 353, 8840, 836, 8, 1476, 9598, 1669, 7405, 7, 65331, 26155, 692, 9559, 11, 1848, 1669, 305, 2234, 66102, 445, 792, 497, 2915, 368, 320, 4970, 22655, 1465, 11, 353, 66301, 8, 341, 197, 853, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLogToStdoutSet(t *testing.T) { cfg := &AutomaticLoggingConfig{ Backend: BackendStdout, Spans: true, } p, err := newTraceProcessor(&automaticLoggingProcessor{}, cfg) require.NoError(t, err) require.True(t, p.(*automaticLoggingProcessor).logToStdout) err = p.Start(context.Background(), componenttes...
explode_data.jsonl/73351
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 232 }
[ 2830, 3393, 2201, 1249, 22748, 411, 1649, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 609, 62790, 34575, 2648, 515, 197, 197, 29699, 25, 55260, 22748, 411, 345, 197, 197, 6406, 596, 25, 256, 830, 345, 197, 630, 3223, 11, 1848, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestValidateDecoration(t *testing.T) { defCfg := prowapi.DecorationConfig{ UtilityImages: &prowjobv1.UtilityImages{ CloneRefs: "clone-me", InitUpload: "upload-me", Entrypoint: "enter-me", Sidecar: "official-drink-of-the-org", }, GCSCredentialsSecret: "upload-secret", GCSConfiguration: &pro...
explode_data.jsonl/8074
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 664 }
[ 2830, 3393, 17926, 19431, 1155, 353, 8840, 836, 8, 341, 7452, 42467, 1669, 47558, 2068, 22442, 7614, 2648, 515, 197, 15980, 12189, 14228, 25, 609, 79, 651, 8799, 85, 16, 62652, 14228, 515, 298, 197, 37677, 82807, 25, 220, 330, 19982, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestWithBrowser(t *testing.T) { // an easy way to check if auth works with webserver // to test, run with // $ go test -run TestWithBrowser -- server // configure a browser to use the printed proxy address, use the proxy // and exit with Ctrl-C. It will throw error if your haven't acutally used the proxy if ...
explode_data.jsonl/43783
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 334 }
[ 2830, 3393, 2354, 17878, 1155, 353, 8840, 836, 8, 341, 197, 322, 458, 4135, 1616, 311, 1779, 421, 4166, 4278, 448, 3482, 4030, 198, 197, 322, 311, 1273, 11, 1598, 448, 198, 197, 322, 400, 728, 1273, 481, 6108, 3393, 2354, 17878, 117...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestKafkaClient_Configure(t *testing.T) { module := fixtureModule() module.Configure("test", "consumer.test") assert.NotNil(t, module.saramaConfig, "Expected saramaConfig to be populated") assert.Equal(t, "__consumer_offsets", module.offsetsTopic, "Default OffsetTopic value of __consumer_offsets did not get se...
explode_data.jsonl/34249
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 106 }
[ 2830, 3393, 42, 21883, 2959, 15100, 17781, 1155, 353, 8840, 836, 8, 341, 54020, 1669, 12507, 3332, 741, 54020, 78281, 445, 1944, 497, 330, 46764, 5958, 1138, 6948, 93882, 1155, 11, 4688, 514, 637, 64, 2648, 11, 330, 18896, 274, 637, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_readHash_(t *testing.T) { if PrintTestNames { printTestName() } var test = func(input []byte) { var resultHash []byte { buf := bytes.NewBuffer(input) resultHash = readHash(buf) } var expectHash []byte { buf := bytes.NewBuffer(input) expectHash = makeHash(buf.Bytes()) } if !bytes...
explode_data.jsonl/70784
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 6443, 6370, 8361, 83, 353, 8840, 836, 8, 341, 743, 8213, 2271, 7980, 341, 197, 6900, 2271, 675, 741, 197, 532, 2405, 1273, 284, 2915, 5384, 3056, 3782, 8, 341, 197, 2405, 1102, 6370, 3056, 3782, 198, 197, 197, 515, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMissingHeadRefs(t *testing.T) { require := require.New(t) cwd, err := os.Getwd() require.NoError(err) path := filepath.Join(cwd, "_testdata") lib, err := siva.NewLibrary("siva", osfs.New(path), siva.LibraryOptions{ RootedRepo: true, }) require.NoError(err) pool := gitbase.NewRepositoryPool(cache....
explode_data.jsonl/13695
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 244 }
[ 2830, 3393, 25080, 12346, 82807, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 1444, 6377, 11, 1848, 1669, 2643, 2234, 6377, 741, 17957, 35699, 3964, 692, 26781, 1669, 26054, 22363, 1337, 6377, 11, 9000, 92425, 5130, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestControllerUpdateEventWithWrongController(t *testing.T) { c, tc := makeController("v1", "Pod") c.Update(simpleOwnedPod("unit", "test")) validateNotSent(t, tc, sourcesv1beta1.ApiServerSourceUpdateRefEventType) }
explode_data.jsonl/39266
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 76 }
[ 2830, 3393, 2051, 4289, 1556, 2354, 29185, 2051, 1155, 353, 8840, 836, 8, 341, 1444, 11, 17130, 1669, 1281, 2051, 445, 85, 16, 497, 330, 23527, 1138, 1444, 16689, 1141, 6456, 57641, 23527, 445, 3843, 497, 330, 1944, 5455, 197, 7067, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestNormalizeComponentName(t *testing.T) { if name := "lib.FooBar"; normalizeComponentName(name) != "lib.foobar" { t.Errorf("name is not lib.foobar: %s", name) } if name := "main.FooBar"; normalizeComponentName(name) != "foobar" { t.Errorf("name is not foobar: %s", name) } }
explode_data.jsonl/36074
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 87824, 2189, 675, 1155, 353, 8840, 836, 8, 341, 743, 829, 1669, 330, 2740, 991, 2624, 3428, 5123, 21694, 2189, 675, 3153, 8, 961, 330, 2740, 13, 50267, 1, 341, 197, 3244, 13080, 445, 606, 374, 537, 3051, 13, 50267, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestInitializeContainersV3MetadataEndpoint(t *testing.T) { task := Task{ Containers: []*apicontainer.Container{ { Name: "c1", Environment: make(map[string]string), }, }, } container := task.Containers[0] task.initializeContainersV3MetadataEndpoint(utils.NewStaticUUIDProvider("new-uuid...
explode_data.jsonl/37201
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 9928, 74632, 53, 18, 14610, 27380, 1155, 353, 8840, 836, 8, 341, 49115, 1669, 5430, 515, 197, 197, 74632, 25, 29838, 391, 51160, 1743, 33672, 515, 298, 197, 515, 571, 21297, 25, 286, 330, 66, 16, 756, 571, 197, 12723, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetTemplatesRequest_Execute(t *testing.T) { expectedResult := randomGetTemplatesResult() var givenResult []messages.GetTemplatesResult req := test.NewRequest(func(req *http.Request) (res *http.Response, err error) { result := api.Response{ Result: expectedResult, } response, _ := json.Marshal(&re...
explode_data.jsonl/54169
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 251 }
[ 2830, 3393, 1949, 51195, 1900, 83453, 1155, 353, 8840, 836, 8, 341, 42400, 2077, 1669, 4194, 1949, 51195, 2077, 741, 2405, 2661, 2077, 3056, 16325, 2234, 51195, 2077, 271, 24395, 1669, 1273, 75274, 18552, 6881, 353, 1254, 9659, 8, 320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestServiceAccountIsMutuallyExclusiveWithAuth(t *testing.T) { paramUri := fmt.Sprintf("localhost?user=test&pass=yep&useServiceAccount=true") _, err := newHawkularSource(paramUri) if err == nil { t.Errorf("Expected error from newHawkularSource") } }
explode_data.jsonl/55851
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 93 }
[ 2830, 3393, 1860, 7365, 3872, 51440, 1832, 70405, 2354, 5087, 1155, 353, 8840, 836, 8, 341, 36037, 13899, 1669, 8879, 17305, 445, 8301, 30, 872, 53538, 5, 6385, 29368, 747, 5, 810, 1860, 7365, 11265, 1138, 197, 6878, 1848, 1669, 501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSharedMap_ComputeIfAbsent(t *testing.T) { sharedMap := NewSharedMap() actual, loaded := sharedMap.ComputeIfAbsent("1", func(key string) interface{} { return "any" }) assert.False(t, loaded) assert.EqualValues(t, "any", actual) actual, loaded = sharedMap.ComputeIfAbsent("1", func(key string) interface{...
explode_data.jsonl/77839
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 154 }
[ 2830, 3393, 16997, 2227, 16946, 8492, 2679, 80251, 1155, 353, 8840, 836, 8, 341, 197, 6100, 2227, 1669, 1532, 16997, 2227, 741, 88814, 11, 6661, 1669, 6094, 2227, 89237, 2679, 80251, 445, 16, 497, 2915, 4857, 914, 8, 3749, 6257, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestWriteHumanReadableWriterError(t *testing.T) { assert := assert.New(t) err := errors.New("test") w := &errorWriter{err} assert.Equal(err, WriteEncodedValue(w, Number(42))) }
explode_data.jsonl/60907
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 68 }
[ 2830, 3393, 7985, 33975, 57938, 6492, 1454, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 9859, 1669, 5975, 7121, 445, 1944, 1138, 6692, 1669, 609, 841, 6492, 90, 615, 532, 6948, 12808, 3964, 11, 9645, 46795, 1130, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1