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 TestInvoiceExpiryWhenAddingMultipleInvoices(t *testing.T) { t.Parallel() test := newInvoiceExpiryWatcherTest(t, testTime, 5, 5) var invoices []channeldb.InvoiceWithPaymentHash for hash, invoice := range test.testData.expiredInvoices { invoices = append(invoices, channeldb.InvoiceWithPaymentHash{ Inv...
explode_data.jsonl/47247
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 290 }
[ 2830, 3393, 34674, 840, 48209, 4498, 32308, 32089, 641, 40683, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18185, 1669, 501, 34674, 840, 48209, 47248, 2271, 1155, 11, 1273, 1462, 11, 220, 20, 11, 220, 20, 340, 2405, 64052, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsLikelyNotMountPoint(t *testing.T) { mounter := Mounter{"fake/path"} tests := []struct { fileName string targetLinkName string setUp func(base, fileName, targetLinkName string) error expectedResult bool expectError bool }{ { "Dir", "", func(base, fileName, targetLink...
explode_data.jsonl/48691
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 947 }
[ 2830, 3393, 3872, 71997, 974, 2623, 16284, 2609, 1155, 353, 8840, 836, 8, 341, 2109, 39914, 1669, 10423, 261, 4913, 30570, 50976, 63159, 78216, 1669, 3056, 1235, 341, 197, 17661, 675, 981, 914, 198, 197, 28861, 3939, 675, 914, 198, 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 TestGetCreateFlags(t *testing.T) { Register("foo", &RegisteredDriver{ New: func(machineName string, storePath string, caCert string, privateKey string) (Driver, error) { return nil, nil }, GetCreateFlags: func() []cli.Flag { return []cli.Flag{ cli.StringFlag{ Name: "a", Value: "", ...
explode_data.jsonl/75878
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 699 }
[ 2830, 3393, 1949, 4021, 9195, 1155, 353, 8840, 836, 8, 341, 79096, 445, 7975, 497, 609, 41430, 11349, 515, 197, 197, 3564, 25, 2915, 80212, 675, 914, 11, 3553, 1820, 914, 11, 2162, 36934, 914, 11, 70565, 914, 8, 320, 11349, 11, 1465...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddNode(t *testing.T) { node := &utils.Node{ Name: "testNode", IQN: "myIQN", IPs: []string{"1.1.1.1", "2.2.2.2"}, TopologyLabels: map[string]string{"topology.kubernetes.io/region": "Region1"}, } orchestrator := getOrchestrator(t) if err := orchestrator.AddNode(ctx(),...
explode_data.jsonl/62757
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 190 }
[ 2830, 3393, 2212, 1955, 1155, 353, 8840, 836, 8, 341, 20831, 1669, 609, 6031, 21714, 515, 197, 21297, 25, 1843, 330, 1944, 1955, 756, 197, 24486, 87054, 25, 310, 330, 2408, 61950, 45, 756, 197, 197, 3298, 82, 25, 310, 3056, 917, 491...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDiskQueueReaderUpdateEnd(t *testing.T) { // init empty with end // init old reader with end // reader position should read from meta file dqName := "test_disk_queue" + strconv.Itoa(int(time.Now().Unix())) tmpDir, err := ioutil.TempDir("", fmt.Sprintf("nsq-test-%d", time.Now().UnixNano())) test.Nil(t, er...
explode_data.jsonl/58221
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1091 }
[ 2830, 3393, 47583, 7554, 5062, 4289, 3727, 1155, 353, 8840, 836, 8, 341, 197, 322, 2930, 4287, 448, 835, 198, 197, 322, 2930, 2310, 6604, 448, 835, 198, 197, 322, 6604, 2309, 1265, 1349, 504, 8823, 1034, 271, 2698, 80, 675, 1669, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCloser(t *testing.T) { definition := `schema {query:Query} type Query { me: String! }` operation := `{me}` def := unsafeparser.ParseGraphqlDocumentString(definition) op := unsafeparser.ParseGraphqlDocumentString(operation) err := asttransform.MergeDefinitionWithBaseSchema(&def) if err != nil { t.Fata...
explode_data.jsonl/17019
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 483 }
[ 2830, 3393, 51236, 799, 1155, 353, 8840, 836, 8, 1476, 7452, 4054, 1669, 1565, 17349, 314, 1631, 25, 2859, 92, 943, 11361, 314, 752, 25, 923, 0, 335, 3989, 197, 9262, 1669, 53692, 2660, 5541, 271, 7452, 1669, 6975, 2577, 747, 10425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWriteUpdateBlob(t *testing.T) { tests := []struct { name string blob *UpdateBlob want string wantErr string }{ { name: "empty", blob: NewUpdateBlob(), want: "{}", }, { name: "valid", blob: &UpdateBlob{ HostnameHashes: HostnameHashes{ "ss-infra_0": []byte("45")...
explode_data.jsonl/3963
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 474 }
[ 2830, 3393, 7985, 4289, 37985, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 2233, 1684, 262, 353, 4289, 37985, 198, 197, 50780, 262, 914, 198, 197, 50780, 7747, 914, 198, 197, 59403, 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 TestBitbucketCloudCloneURLs(t *testing.T) { repo := &bitbucketcloud.Repo{ FullName: "sg/sourcegraph", } repo.Links.Clone = []struct { Href string "json:\"href\"" Name string "json:\"name\"" }{ {Name: "https", Href: "https://asdine@bitbucket.org/sg/sourcegraph.git"}, {Name: "ssh", Href: "git@bitbucke...
explode_data.jsonl/39376
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 437 }
[ 2830, 3393, 8344, 30410, 16055, 37677, 3144, 82, 1155, 353, 8840, 836, 8, 341, 17200, 5368, 1669, 609, 4489, 30410, 12361, 2817, 5368, 515, 197, 197, 36217, 25, 330, 1991, 54373, 4439, 756, 197, 630, 17200, 5368, 1214, 15504, 64463, 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...
2
func TestSetPrimaryENs(t *testing.T) { ctrl, mockMetadata, _ := setup(t) defer ctrl.Finish() mockMetadata.EXPECT().GetMetadata(metadataMACPath).Return(primaryMAC+" "+eni2MAC, nil) gomock.InOrder( mockMetadata.EXPECT().GetMetadata(metadataMACPath+primaryMAC+metadataDeviceNum).Return(eni1Device, nil), mockMetad...
explode_data.jsonl/19286
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 254 }
[ 2830, 3393, 1649, 15972, 953, 82, 1155, 353, 8840, 836, 8, 341, 84381, 11, 7860, 14610, 11, 716, 1669, 6505, 1155, 340, 16867, 23743, 991, 18176, 2822, 77333, 14610, 22402, 7285, 1005, 1949, 14610, 54436, 25788, 1820, 568, 5598, 73259, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNthHappy(t *testing.T) { nth := gomath.NewNthInt(gomath.Happys(0)) assertEqual(t, int64(100), nth.Nth(20)) assertEqual(t, int64(694), nth.Nth(100)) assertEqual(t, int64(6899), nth.Nth(1000)) assertEqual(t, int64(67169), nth.Nth(10000)) }
explode_data.jsonl/23248
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 124 }
[ 2830, 3393, 45, 339, 32847, 1155, 353, 8840, 836, 8, 341, 9038, 339, 1669, 342, 316, 587, 7121, 45, 339, 1072, 3268, 316, 587, 3839, 676, 1047, 7, 15, 1171, 6948, 2993, 1155, 11, 526, 21, 19, 7, 16, 15, 15, 701, 55129, 2067, 339...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPluginCustomBackend(t *testing.T) { ctx := context.Background() manager, _ := plugins.New(nil, "test-instance-id", inmem.New()) backend := &testPlugin{} manager.Register("test_plugin", backend) config, err := ParseConfig([]byte(`{"plugin": "test_plugin"}`), nil, []string{"test_plugin"}) if err != nil {...
explode_data.jsonl/27533
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 207 }
[ 2830, 3393, 11546, 10268, 29699, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 92272, 11, 716, 1669, 17215, 7121, 27907, 11, 330, 1944, 73655, 12897, 497, 304, 10536, 7121, 12367, 197, 20942, 1669, 609, 1944, 11546, 16094, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoggedIn_Endpoint_Hydra_Success(t *testing.T) { s, cfg, _, h, _, err := setupHydraTest(true) if err != nil { t.Fatalf("setupHydraTest() failed: %v", err) } pname := "dr_joe_elixir" resp := sendLoggedIn(t, s, cfg, h, pname, "", loginStateID, pb.ResourceTokenRequestState_ENDPOINT) if resp.StatusCode !...
explode_data.jsonl/18501
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 386 }
[ 2830, 3393, 28559, 49953, 2768, 2039, 88, 22248, 87161, 1155, 353, 8840, 836, 8, 341, 1903, 11, 13286, 11, 8358, 305, 11, 8358, 1848, 1669, 6505, 30816, 22248, 2271, 3715, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 15188, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAcceptExplicitValueFromSecurityWhenOnOpenShift(t *testing.T) { viper.Set("platform", "openshift") defer viper.Reset() jaeger := v1.NewJaeger(types.NamespacedName{Name: "my-instance"}) jaeger.Spec.Ingress.Security = v1.IngressSecurityNoneExplicit normalize(context.Background(), jaeger) assert.Equal(t, ...
explode_data.jsonl/21856
{ "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, 16646, 98923, 1130, 3830, 15352, 4498, 1925, 5002, 24841, 1155, 353, 8840, 836, 8, 341, 5195, 12858, 4202, 445, 15734, 497, 330, 24175, 47833, 1138, 16867, 95132, 36660, 2822, 197, 5580, 1878, 1669, 348, 16, 7121, 52445, 1878,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateStatusMatchFails(t *testing.T) { tests := []struct { status string msg string }{ { status: "qwe", msg: "Invalid: no digits", }, { status: "!", msg: "Invalid: `!` character only", }, { status: "!500", msg: "Invalid: no space after !", }, { status: "0"...
explode_data.jsonl/65873
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 492 }
[ 2830, 3393, 17926, 2522, 8331, 37, 6209, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 23847, 914, 198, 197, 21169, 262, 914, 198, 197, 59403, 197, 197, 515, 298, 23847, 25, 330, 80, 896, 756, 298, 21169, 25, 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...
3
func TestRepeat(t *testing.T) { repeated := Repeat("a", 5) expected := "aaaaa" if repeated != expected { t.Errorf("expected %q but got %q", expected, repeated) } }
explode_data.jsonl/62545
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 38718, 1155, 353, 8840, 836, 8, 972, 17200, 41954, 1669, 44801, 445, 64, 497, 220, 20, 1218, 42400, 1669, 330, 28458, 64, 18591, 743, 11504, 961, 3601, 972, 197, 3244, 13080, 445, 7325, 1018, 80, 714, 2684, 1018, 80, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUint128(t *testing.T) { bigInt0 := big.NewInt(0) bigInt1 := big.NewInt(1) bigIntNeg1 := big.NewInt(-1) bigMaxUint8 := &big.Int{} bigMaxUint8.SetUint64(uint64(math.MaxUint8)) bigMaxUint64 := &big.Int{} bigMaxUint64.SetUint64(^uint64(0)) bigMaxUint64Add1 := &big.Int{} bigMaxUint64Add1.Add(bigMaxUint...
explode_data.jsonl/55027
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1034 }
[ 2830, 3393, 21570, 16, 17, 23, 1155, 353, 8840, 836, 8, 341, 2233, 343, 1072, 15, 1669, 2409, 7121, 1072, 7, 15, 692, 2233, 343, 1072, 16, 1669, 2409, 7121, 1072, 7, 16, 340, 2233, 343, 1072, 47800, 16, 1669, 2409, 7121, 1072, 408...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDelete(t *testing.T) { ctx := testhelper.Context(t) cfg, repoProto, _, _, client := setup(ctx, t) repo := localrepo.NewTestRepo(t, cfg, repoProto) pool := initObjectPool(t, cfg, cfg.Storages[0]) _, err := client.CreateObjectPool(ctx, &gitalypb.CreateObjectPoolRequest{ ObjectPool: pool.ToProto(), Orig...
explode_data.jsonl/31592
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 945 }
[ 2830, 3393, 6435, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1273, 18764, 9328, 1155, 340, 50286, 11, 15867, 31549, 11, 8358, 8358, 2943, 1669, 6505, 7502, 11, 259, 340, 17200, 5368, 1669, 2205, 23476, 7121, 2271, 25243, 1155, 11, 13286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPreparedCommand_Run(t *testing.T) { stdout := shx.RecordStdout() defer stdout.Release() stderr := shx.RecordStderr() defer stderr.Release() err := shx.Run("go", "run", "echo.go", "hello world") gotStdout := stdout.Output() gotStderr := stderr.Output() if err != nil { t.Fatal(err) } assert.Empty(t...
explode_data.jsonl/57092
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 157 }
[ 2830, 3393, 4703, 7212, 4062, 84158, 1155, 353, 8840, 836, 8, 341, 6736, 411, 1669, 557, 87, 49959, 22748, 411, 741, 16867, 20075, 58693, 741, 6736, 615, 1669, 557, 87, 49959, 22748, 615, 741, 16867, 26436, 58693, 2822, 9859, 1669, 557,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMasterForMasterWithConentsNeedsAdmin(t *testing.T) { testingInput := []byte(` repos: istio: branches: <<: *blocked_branches master: protect: true required_status_checks: contexts: - "ci/circleci: e2e-pilot-cloudfoundry-v1alpha3-v2" ...
explode_data.jsonl/18919
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 501 }
[ 2830, 3393, 18041, 2461, 18041, 2354, 1109, 805, 65064, 7210, 1155, 353, 8840, 836, 8, 341, 197, 8840, 2505, 1669, 3056, 3782, 61528, 68354, 510, 220, 5999, 815, 510, 262, 23091, 510, 286, 1115, 25, 353, 61348, 28031, 288, 198, 286, 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...
2
func TestCaseInsensitive(t *testing.T) { store, clean := realtikvtest.CreateMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("create table T (a text, B int)") tk.MustExec("insert t (A, b) values ('aaa', 1)") rs, err := tk.Exec("select * from t") require...
explode_data.jsonl/5797
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 425 }
[ 2830, 30573, 75293, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1931, 83, 1579, 85, 1944, 7251, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 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...
1
func TestBulkIndexRequestSerialization(t *testing.T) { tests := []struct { Request BulkableRequest Expected []string }{ // #0 { Request: NewBulkIndexRequest().Index("index1").Type("doc").Id("1"). Doc(tweet{User: "olivere", Created: time.Date(2014, 1, 18, 23, 59, 58, 0, time.UTC)}), Expected: []stri...
explode_data.jsonl/63226
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1317 }
[ 2830, 3393, 88194, 1552, 1900, 35865, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 73806, 220, 60920, 480, 1900, 198, 197, 197, 18896, 3056, 917, 198, 197, 59403, 197, 197, 322, 671, 15, 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...
7
func TestGdbConst(t *testing.T) { checkGdbEnvironment(t) t.Parallel() checkGdbVersion(t) dir, err := ioutil.TempDir("", "go-build") if err != nil { t.Fatalf("failed to create temp directory: %v", err) } defer os.RemoveAll(dir) // Build the source code. src := filepath.Join(dir, "main.go") err = ioutil.Wri...
explode_data.jsonl/62286
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 592 }
[ 2830, 3393, 38, 1999, 19167, 1155, 353, 8840, 836, 8, 341, 25157, 38, 1999, 12723, 1155, 340, 3244, 41288, 7957, 741, 25157, 38, 1999, 5637, 1155, 692, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 3346, 32145, 1138, 743, 1848,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUserServiceFindAll(t *testing.T) { //prepare db test db, _ := database.PrepareTestDB("txdb") defer database.CleanTestDB(db) // scenario find all success u := NewUserService(db) list, err := u.FindAll() assert.NotEmpty(t, list, "No Empty") assert.NoError(t, err, "Error") }
explode_data.jsonl/37408
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 109 }
[ 2830, 3393, 60004, 9885, 2403, 1155, 353, 8840, 836, 8, 341, 197, 322, 13609, 2927, 1273, 198, 20939, 11, 716, 1669, 4625, 28770, 3380, 2271, 3506, 445, 3998, 1999, 1138, 16867, 4625, 727, 2675, 2271, 3506, 9791, 692, 197, 322, 15048, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemove(t *testing.T) { keys := []Key{ {Path: "/service1/method1", KeyMap: "k1=v1,k2=v2"}, {Path: "/service2/method2", KeyMap: "k1=v1,k2=v2"}, {Path: "/service3/method3", KeyMap: "k1=v1,k2=v2"}, } lru := NewLRU(testCacheMaxSize, nil) for _, k := range keys { lru.Add(k, &Entry{}) } for _, k := ran...
explode_data.jsonl/77597
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 231 }
[ 2830, 3393, 13021, 1155, 353, 8840, 836, 8, 341, 80112, 1669, 3056, 1592, 515, 197, 197, 90, 1820, 25, 3521, 7936, 16, 91837, 16, 497, 5309, 2227, 25, 330, 74, 16, 39254, 16, 16147, 17, 39254, 17, 7115, 197, 197, 90, 1820, 25, 352...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNegativeCapacityHeap(t *testing.T) { h := NewFloatHeap(false, -1) assert.Equal(t, 0, h.Cap()) _, seen := h.Peek() assert.False(t, seen) length := 10000 testArray := make([]float64, length) for i := range testArray { testArray[i] = rand.Float64() h.Push(testArray[i], i) } assert.Equal(t, length, ...
explode_data.jsonl/68388
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 216 }
[ 2830, 3393, 38489, 29392, 27909, 1155, 353, 8840, 836, 8, 341, 9598, 1669, 1532, 5442, 27909, 3576, 11, 481, 16, 340, 6948, 12808, 1155, 11, 220, 15, 11, 305, 78963, 2398, 197, 6878, 3884, 1669, 305, 94279, 741, 6948, 50757, 1155, 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...
3
func TestGetFuturesOrderbookTicker(t *testing.T) { t.Parallel() _, err := b.GetFuturesOrderbookTicker(context.Background(), currency.EMPTYPAIR, "") if err != nil { t.Error(err) } _, err = b.GetFuturesOrderbookTicker(context.Background(), currency.NewPairWithDelimiter("BTCUSD", "PERP", "_"), "") if err != nil { ...
explode_data.jsonl/76609
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 1949, 37, 74606, 4431, 2190, 87278, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 6878, 1848, 1669, 293, 2234, 37, 74606, 4431, 2190, 87278, 5378, 19047, 1507, 11413, 48377, 82966, 11, 14676, 743, 1848, 961, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVolumePrunePromptYes(t *testing.T) { // FIXME(vdemeester) make it work.. skip.If(t, runtime.GOOS == "windows", "TODO: fix test on windows") for _, input := range []string{"y", "Y"} { cli := test.NewFakeCli(&fakeClient{ volumePruneFunc: simplePruneFunc, }) cli.SetIn(command.NewInStream(ioutil.NopC...
explode_data.jsonl/66805
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 202 }
[ 2830, 3393, 18902, 3533, 2886, 54615, 9454, 1155, 353, 8840, 836, 8, 341, 197, 322, 27475, 3747, 67, 3894, 5191, 8, 1281, 432, 975, 33947, 1903, 13389, 32901, 1155, 11, 15592, 97574, 3126, 621, 330, 27077, 497, 330, 14732, 25, 5046, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMarshalAllTypes(t *testing.T) { manager := bootstrap.TopLevelManager() bootstrap.Into(manager) RegisterQualified(manager) type testCase struct { aleCode string output string } tests := []testCase{ {`{:a "hello"}`, `{"a":"hello"}`}, {`{:a 1234}`, `{"a":1234}`}, {`{:a 1234.5}`, `{"a":1234.5}`},...
explode_data.jsonl/21921
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 452 }
[ 2830, 3393, 55438, 2403, 4173, 1155, 353, 8840, 836, 8, 341, 92272, 1669, 26925, 17557, 4449, 2043, 741, 197, 6281, 7371, 78, 55168, 340, 79096, 65993, 55168, 692, 13158, 54452, 2036, 341, 197, 197, 1574, 2078, 914, 198, 197, 21170, 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...
4
func TestCalcTimestamp(t *testing.T) { var i Interval _ = i.ValueOf("1m") now := Now() n := time.Now() timestamp := CalcTimestamp(now, 10, i) assert.True(t, timestamp >= n.Add(10*time.Minute).Unix()*1000) }
explode_data.jsonl/75710
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 90 }
[ 2830, 3393, 47168, 20812, 1155, 353, 8840, 836, 8, 341, 2405, 600, 40584, 271, 197, 62, 284, 600, 6167, 2124, 445, 16, 76, 1138, 80922, 1669, 4695, 741, 9038, 1669, 882, 13244, 741, 3244, 4702, 1669, 34215, 20812, 32263, 11, 220, 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 TestEntry_SetTextStyle(t *testing.T) { entry, window := setupImageTest(t, false) defer teardownImageTest(window) c := window.Canvas() entry.Text = "Styled Text" entry.TextStyle = fyne.TextStyle{Bold: true} entry.Refresh() test.AssertRendersToMarkup(t, "entry/set_text_style_bold.xml", c) entry.TextStyle =...
explode_data.jsonl/12372
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 5874, 14812, 72963, 1155, 353, 8840, 836, 8, 341, 48344, 11, 3241, 1669, 6505, 1906, 2271, 1155, 11, 895, 340, 16867, 49304, 1906, 2271, 15906, 340, 1444, 1669, 3241, 54121, 2822, 48344, 1979, 284, 330, 34180, 2918, 698, 483...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProcessRunDetached(t *testing.T) { provider := StubAwsProvider( cycleProcessReleaseGetItem, cycleProcessDescribeStacks, cycleProcessDescribeStacks, cycleProcessReleaseGetItem, cycleProcessReleaseListStackResources, cycleProcessReleaseEnvironmentGet, cycleSystemListStackResources, cycleProcessB...
explode_data.jsonl/47786
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 524 }
[ 2830, 3393, 7423, 6727, 17076, 3854, 1155, 353, 8840, 836, 8, 341, 197, 19979, 1669, 66611, 47359, 5179, 1006, 197, 1444, 5449, 7423, 16077, 1949, 1234, 345, 197, 1444, 5449, 7423, 74785, 4336, 82, 345, 197, 1444, 5449, 7423, 74785, 433...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRPC_QueryDAOOwner(t *testing.T) { codec.UpgradeHeight = 7000 _, kb, cleanup := NewInMemoryTendermintNode(t, oneValTwoNodeGenesisState()) cb, err := kb.GetCoinbase() assert.Nil(t, err) _, stopCli, evtChan := subscribeTo(t, tmTypes.EventNewBlock) <-evtChan // Wait for block var params = HeightParams{ He...
explode_data.jsonl/44721
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 389 }
[ 2830, 3393, 29528, 48042, 19532, 13801, 1155, 353, 8840, 836, 8, 341, 43343, 66, 13, 43861, 3640, 284, 220, 22, 15, 15, 15, 198, 197, 6878, 38653, 11, 21290, 1669, 1532, 641, 10642, 51, 1659, 67791, 1955, 1155, 11, 825, 2208, 11613, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKeycloakService_RegisterOSDClusterClientInSSO(t *testing.T) { tokenErr := pkgErr.New("token error") failedToCreateClientErr := pkgErr.New("failed to create client") type fields struct { kcClient keycloak.KcClient } tests := []struct { name string fields fields want string wantErr *errors...
explode_data.jsonl/61907
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1589 }
[ 2830, 3393, 1592, 88751, 1860, 73124, 3126, 35, 28678, 2959, 641, 1220, 46, 1155, 353, 8840, 836, 8, 341, 43947, 7747, 1669, 24793, 7747, 7121, 445, 5839, 1465, 1138, 1166, 5687, 1249, 4021, 2959, 7747, 1669, 24793, 7747, 7121, 445, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetAllIcons(t *testing.T) { req, err := http.NewRequest("GET", "/allicons.json?url=apple.com", nil) if err != nil { log.Fatal(err) } w := httptest.NewRecorder() alliconsHandler(w, req) assertStringEquals(t, "200", fmt.Sprintf("%d", w.Code)) assertStringEquals(t, "application/json", w.Header().Get("C...
explode_data.jsonl/25595
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 1949, 2403, 19106, 1155, 353, 8840, 836, 8, 341, 24395, 11, 1848, 1669, 1758, 75274, 445, 3806, 497, 3521, 278, 415, 2382, 4323, 94399, 28, 22377, 905, 497, 2092, 340, 743, 1848, 961, 2092, 341, 197, 6725, 26133, 3964, 340...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnmarshalingBadInput(t *testing.T) { for _, tt := range unmarshalingShouldError { err := UnmarshalString(tt.in, tt.pb) if err == nil { t.Errorf("an error was expected when parsing %q instead of an object", tt.desc) } } }
explode_data.jsonl/63124
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 1806, 36239, 6132, 17082, 2505, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 650, 36239, 6132, 14996, 1454, 341, 197, 9859, 1669, 1230, 27121, 703, 47152, 1858, 11, 17853, 37916, 340, 197, 743, 1848, 621, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestState_NChannels(t *testing.T) { t.Parallel() st := setupNewState() if got, exp := st.NChannels(), 0; exp != got { t.Errorf("Expected: %v, got: %v", exp, got) } st.addChannel(channels[0]) st.addChannel(channels[0]) // Test that adding a channel twice does nothing. if got, exp := st.NChannels(), 1; exp...
explode_data.jsonl/32081
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 213 }
[ 2830, 3393, 1397, 1604, 35925, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18388, 1669, 6505, 3564, 1397, 741, 743, 2684, 11, 1343, 1669, 357, 2067, 35925, 1507, 220, 15, 26, 1343, 961, 2684, 341, 197, 3244, 13080, 445, 188...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStat(t *testing.T) { resetStats() r, clean, err := redistest.CreateRedis() assert.Nil(t, err) defer clean() cach := cache.NewNode(r, singleFlight, stats, mgo.ErrNotFound) c := newCollection(dummyConn{}, cach).(*cachedCollection) for i := 0; i < 10; i++ { var str string if err = c.cache.Take(&str, ...
explode_data.jsonl/33947
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 235 }
[ 2830, 3393, 15878, 1155, 353, 8840, 836, 8, 341, 70343, 16635, 741, 7000, 11, 4240, 11, 1848, 1669, 2518, 380, 477, 7251, 48137, 741, 6948, 59678, 1155, 11, 1848, 340, 16867, 4240, 2822, 1444, 610, 1669, 6500, 7121, 1955, 2601, 11, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewPointLargeInteger(t *testing.T) { test(t, `cpu value=6632243i 1000000000`, NewTestPoint( "cpu", models.NewTags(map[string]string{}), models.Fields{ "value": int64(6632243), // if incorrectly encoded as a float, it would show up as 6.632243e+06 }, time.Unix(1, 0)), ) }
explode_data.jsonl/16952
{ "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, 3564, 2609, 34253, 3486, 1155, 353, 8840, 836, 8, 341, 18185, 1155, 11, 1565, 16475, 897, 28, 21, 21, 18, 17, 17, 19, 18, 72, 220, 16, 15, 15, 15, 15, 15, 15, 15, 15, 15, 12892, 197, 197, 3564, 2271, 2609, 1006, 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...
1
func TestListEntries(t *testing.T) { output := `Name: foobar Type: hash:ip,port Revision: 2 Header: family inet hashsize 1024 maxelem 65536 Size in memory: 16592 References: 0 Members: 192.168.1.2,tcp:8080 192.168.1.1,udp:53` emptyOutput := `Name: KUBE-NODE-PORT Type: bitmap:port Revision: 1 Header: range 0-65535 S...
explode_data.jsonl/74014
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 742 }
[ 2830, 3393, 852, 24533, 1155, 353, 8840, 836, 8, 1476, 21170, 1669, 1565, 675, 25, 11756, 31393, 198, 929, 25, 5175, 25, 573, 96898, 198, 33602, 25, 220, 17, 198, 4047, 25, 2997, 49476, 5175, 2141, 220, 16, 15, 17, 19, 1932, 18871, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLiveMigration_Get(t *testing.T) { client, mux, teardown := setup() defer teardown() mux.HandleFunc(fmt.Sprintf("/api/atlas/v1.0/groups/%s/liveMigrations/%s", groupID, id), func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, http.MethodGet) fmt.Fprint(w, `{ "_id": "a659ce44c03ca1e348b1e...
explode_data.jsonl/14795
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 357 }
[ 2830, 3393, 20324, 20168, 13614, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 11, 49304, 1669, 6505, 741, 16867, 49304, 2822, 2109, 2200, 63623, 28197, 17305, 4283, 2068, 80730, 14493, 5457, 16, 13, 15, 77685, 12627, 82, 94212, 44, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandleHeartbeatResp(t *testing.T) { storage := NewMemoryStorage() storage.Append([]pb.Entry{{Index: 1, Term: 1}, {Index: 2, Term: 2}, {Index: 3, Term: 3}}) sm := newRaft(1, []uint64{1, 2}, 5, 1, storage, 0) sm.becomeCandidate() sm.becomeLeader() sm.raftLog.commitTo(sm.raftLog.lastIndex()) // A heartbea...
explode_data.jsonl/67350
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 798 }
[ 2830, 3393, 6999, 45384, 22227, 36555, 1155, 353, 8840, 836, 8, 341, 197, 16172, 1669, 1532, 10642, 5793, 741, 197, 16172, 8982, 10556, 16650, 22330, 2979, 1552, 25, 220, 16, 11, 17519, 25, 220, 16, 2137, 314, 1552, 25, 220, 17, 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...
9
func TestWebSocket(t *testing.T) { assert := assert.New(t) u := url.URL{Scheme: "ws", Host: fmt.Sprintf("%s:%d", "127.0.0.1", consts.TEST_HTTP_FRP_PORT), Path: "/ws"} c, _, err := websocket.DefaultDialer.Dial(u.String(), nil) assert.NoError(err) defer c.Close() err = c.WriteMessage(websocket.TextMessage, []byte...
explode_data.jsonl/79665
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 205 }
[ 2830, 3393, 61238, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 10676, 1669, 2515, 20893, 90, 28906, 25, 330, 8915, 497, 16102, 25, 8879, 17305, 4430, 82, 7533, 67, 497, 330, 16, 17, 22, 13, 15, 13, 15, 13, 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 TestSynchronizerResourceOptions(t *testing.T) { resourceOptions := resource.NewOptions() resourceOptions.CNRMEnabled = true resourceOptions.GoogleProjectId = "something" resourceOptions.GoogleCloudSQLProxyContainerImage = "cloudsqlproxy" rig, err := newTestRig(resourceOptions) if err != nil { t.Errorf("un...
explode_data.jsonl/9819
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1223 }
[ 2830, 3393, 50, 14113, 3135, 4783, 3798, 1155, 353, 8840, 836, 8, 341, 50346, 3798, 1669, 5101, 7121, 3798, 741, 50346, 3798, 727, 45, 23652, 5462, 284, 830, 198, 50346, 3798, 60393, 7849, 764, 284, 330, 33331, 698, 50346, 3798, 60393, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMarkdownMessage_SetAt(t *testing.T) { got := NewMarkdownMessage() got.SetAt([]string{"atMobiles"}, false) want := NewMarkdownMessage() want.At = At{ AtMobiles: []string{"atMobiles"}, IsAtAll: false, } if !reflect.DeepEqual(got, want) { t.Errorf("SetMarkdown() = %v, want %v", got, want) } }
explode_data.jsonl/74061
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 68005, 2052, 14812, 1655, 1155, 353, 8840, 836, 8, 341, 3174, 354, 1669, 1532, 68005, 2052, 741, 3174, 354, 4202, 1655, 10556, 917, 4913, 266, 18370, 82, 14345, 895, 692, 50780, 1669, 1532, 68005, 2052, 741, 50780, 15543, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunVersionStep(t *testing.T) { RegisterMockTestingT(t) logger := logging.NewNoopLogger(t) workspace := "default" context := models.ProjectCommandContext{ Log: logger, EscapedCommentArgs: []string{"comment", "args"}, Workspace: workspace, RepoRelDir: ".", User: ...
explode_data.jsonl/54428
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 428 }
[ 2830, 3393, 6727, 5637, 8304, 1155, 353, 8840, 836, 8, 341, 79096, 11571, 16451, 51, 1155, 340, 17060, 1669, 8392, 7121, 2753, 453, 7395, 1155, 340, 197, 42909, 1669, 330, 2258, 1837, 28413, 1669, 4119, 30944, 4062, 1972, 515, 197, 2420...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMergeClusterConfig(t *testing.T) { g := NewGomegaWithT(t) cc := *ClusterConfig.DeepCopy() oc := netopv1.NetworkConfigSpec{} MergeClusterConfig(&oc, cc) g.Expect(oc).To(Equal(netopv1.NetworkConfigSpec{ ServiceNetwork: []string{"192.168.0.0/20"}, ClusterNetwork: []netopv1.ClusterNetworkEntry{ { ...
explode_data.jsonl/68313
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 258 }
[ 2830, 3393, 52096, 28678, 2648, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 38, 32696, 2354, 51, 1155, 692, 63517, 1669, 353, 28678, 2648, 55602, 12106, 2822, 197, 509, 1669, 4179, 453, 85, 16, 30149, 2648, 8327, 31483, 9209, 10080,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadNextChunkInvalidChunkId(t *testing.T) { s := wire.NewSyncScanner(strings.NewReader( "ATAD\006\000\000\000hello ")) // Read 1st chunk _, err := readNextChunk(s) assert.EqualError(t, err, "AssertionError: expected chunk id 'DATA' or 'DONE', but got 'ATAD'") }
explode_data.jsonl/50767
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 109 }
[ 2830, 3393, 4418, 5847, 28304, 7928, 28304, 764, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 9067, 7121, 12154, 31002, 51442, 68587, 1006, 197, 197, 1, 828, 1808, 59, 15, 15, 21, 59, 15, 15, 15, 59, 15, 15, 15, 59, 15, 15, 15, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBoolColumnValue_Type(t *testing.T) { tests := []struct { name string b *BoolColumnValue want ColumnType }{ { name: "true", b: NewBoolColumnValue(true).(*BoolColumnValue), want: TypeBool, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := tt.b.Type();...
explode_data.jsonl/73238
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 208 }
[ 2830, 3393, 11233, 2933, 1130, 13729, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 2233, 262, 353, 11233, 2933, 1130, 198, 197, 50780, 9332, 929, 198, 197, 59403, 197, 197, 515, 298, 11609, 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...
2
func TestGetPublicKeys(t *testing.T) { for _, tt := range []struct { name string err string fakeEntries []fakeKeyEntry }{ { name: "existing key", fakeEntries: []fakeKeyEntry{ { AliasName: aws.String(aliasName), KeyID: aws.String(keyID), KeySpec: types.CustomerMas...
explode_data.jsonl/69038
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 477 }
[ 2830, 3393, 1949, 12676, 8850, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 9859, 260, 914, 198, 197, 1166, 726, 24533, 3056, 30570, 1592, 5874, 198, 197, 59403, 197, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAppSettingsInvalidJson(t *testing.T) { t.Parallel() handler := fakeHTTPServer{} server := httptest.NewServer(&handler) defer server.Close() deis, err := deis.New(false, server.URL, "abc") if err != nil { t.Fatal(err) } _, err = List(deis, "invalidjson-test") expected := "json: cannot unmarshal st...
explode_data.jsonl/13184
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 274 }
[ 2830, 3393, 2164, 6086, 7928, 5014, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 53326, 1669, 12418, 9230, 5475, 16094, 41057, 1669, 54320, 70334, 7121, 5475, 2099, 17905, 340, 16867, 3538, 10421, 2822, 58351, 285, 11, 1848, 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...
6
func Test_postEnvironmentImportHandler_ExistingAppFromYAMLWithoutForce(t *testing.T) { api, db, _, end := newTestAPI(t) defer end() u, pass := assets.InsertAdminUser(t, db) proj := assets.InsertTestProject(t, db, api.Cache, sdk.RandomString(10), sdk.RandomString(10)) test.NotNil(t, proj) env := sdk.Environment{...
explode_data.jsonl/20310
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 399 }
[ 2830, 3393, 6333, 12723, 11511, 3050, 62, 53067, 2164, 3830, 56, 31102, 26040, 18573, 1155, 353, 8840, 836, 8, 341, 54299, 11, 2927, 11, 8358, 835, 1669, 501, 2271, 7082, 1155, 340, 16867, 835, 2822, 10676, 11, 1494, 1669, 11770, 23142,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCodeRepoVersions(t *testing.T) { testenv.MustHaveExternalNetwork(t) tmpdir, err := ioutil.TempDir("", "vgo-modfetch-test-") if err != nil { t.Fatal(err) } defer os.RemoveAll(tmpdir) for _, tt := range codeRepoVersionsTests { t.Run(strings.Replace(tt.path, "/", "_", -1), func(t *testing.T) { repo,...
explode_data.jsonl/62926
{ "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, 2078, 25243, 69015, 1155, 353, 8840, 836, 8, 341, 18185, 3160, 50463, 12116, 25913, 12320, 1155, 692, 20082, 3741, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 85, 3346, 17078, 9641, 16839, 12, 1138, 743, 1848, 961, 2092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVppAddSPD(t *testing.T) { ctx, ipSecHandler, _ := ipSecTestSetup(t) defer ctx.TeardownTestCtx() ctx.MockVpp.MockReply(&vpp_ipsec.IpsecSpdAddDelReply{}) err := ipSecHandler.AddSPD(10) Expect(err).ShouldNot(HaveOccurred()) Expect(ctx.MockChannel.Msg).To(BeEquivalentTo(&vpp_ipsec.IpsecSpdAddDel{ IsAdd:...
explode_data.jsonl/18271
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 53, 602, 2212, 4592, 35, 1155, 353, 8840, 836, 8, 341, 20985, 11, 5997, 8430, 3050, 11, 716, 1669, 5997, 8430, 2271, 21821, 1155, 340, 16867, 5635, 94849, 37496, 2271, 23684, 2822, 20985, 24664, 53, 602, 24664, 20841, 2099, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadDataSet(t *testing.T) { data := mustReadFile("examples/IM-0001-0001.dcm", dicom.ReadOptions{}) elem, err := data.FindElementByName("PatientName") require.NoError(t, err) assert.Equal(t, elem.MustGetString(), "TOUTATIX") elem, err = data.FindElementByName("TransferSyntaxUID") require.NoError(t, err) ...
explode_data.jsonl/22624
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 4418, 21577, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 1969, 4418, 1703, 445, 51668, 14, 1791, 12, 15, 15, 15, 16, 12, 15, 15, 15, 16, 950, 6226, 497, 21249, 316, 6503, 3798, 37790, 68779, 11, 1848, 1669, 821, 67964, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNasTypeNewPDUSessionAuthenticationCommandMessage(t *testing.T) { for i, table := range nasMessagePDUSessionAuthenticationCommandTable { t.Logf("Test Cnt:%d", i) a := nasMessage.NewPDUSessionAuthenticationCommand(0) b := nasMessage.NewPDUSessionAuthenticationCommand(0) assert.NotNil(t, a) assert.Not...
explode_data.jsonl/40925
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 472 }
[ 2830, 3393, 45, 300, 929, 3564, 23025, 2034, 1338, 19297, 4062, 2052, 1155, 353, 8840, 836, 8, 1476, 2023, 600, 11, 1965, 1669, 2088, 17141, 2052, 23025, 2034, 1338, 19297, 4062, 2556, 341, 197, 3244, 98954, 445, 2271, 356, 406, 7533, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTuplePqTop(t *testing.T) { st := []struct { name string pq TuplePriorityQueue nodes [][3]int exp [3]int }{ {"nodes' len eq 1", TuplePriorityQueue{}, [][3]int{[3]int{1, 2, 3}}, [3]int{1, 2, 3}}, {"nodes' len eq 2", TuplePriorityQueue{}, [][3]int{[3]int{1, 2, 3}, [3]int{2, 3, 4}}, [3]int{1, 2...
explode_data.jsonl/28732
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 344 }
[ 2830, 3393, 28681, 47, 80, 5366, 1155, 353, 8840, 836, 8, 341, 18388, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 3223, 80, 262, 24622, 20555, 7554, 198, 197, 79756, 508, 1457, 18, 63025, 198, 197, 48558, 256, 508, 18, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseRequest(t *testing.T) { g := gomega.NewGomegaWithT(t) listener, err := CreateWebhookListener(cfg, cfg, scheme.Scheme, "", "", false) g.Expect(err).NotTo(gomega.HaveOccurred()) reqBody, err := json.Marshal(map[string]string{ "name": "joe", "age": "19", }) g.Expect(err).NotTo(gomega.HaveOccurre...
explode_data.jsonl/59427
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 491 }
[ 2830, 3393, 14463, 1900, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 32696, 7121, 38, 32696, 2354, 51, 1155, 692, 14440, 798, 11, 1848, 1669, 4230, 5981, 20873, 2743, 28272, 11, 13286, 11, 12859, 92719, 11, 7342, 7342, 895, 340, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMinimalSandboxConfig(t *testing.T) { assert := assert.New(t) configPath, err := createConfig("config.json", minimalConfig) assert.NoError(err) savedFunc := config.GetHostPathFunc // Simply assign container path to host path for device. config.GetHostPathFunc = func(devInfo config.DeviceInfo) (string, e...
explode_data.jsonl/44029
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1595 }
[ 2830, 3393, 88328, 50, 31536, 2648, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 25873, 1820, 11, 1848, 1669, 1855, 2648, 445, 1676, 4323, 497, 17377, 2648, 340, 6948, 35699, 3964, 692, 1903, 4141, 9626, 1669, 2193, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSessionReadErrors(t *testing.T) { for _, ca := range []struct { name string hv base.HeaderValue err string }{ { "empty", base.HeaderValue{}, "value not provided", }, { "2 values", base.HeaderValue{"a", "b"}, "value provided multiple times ([a b])", }, { "invalid key-va...
explode_data.jsonl/58801
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 326 }
[ 2830, 3393, 5283, 4418, 13877, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 2162, 1669, 2088, 3056, 1235, 341, 197, 11609, 914, 198, 197, 9598, 85, 256, 2331, 15753, 1130, 198, 197, 9859, 220, 914, 198, 197, 59403, 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...
1
func TestCreateRun_NoExperiment(t *testing.T) { store := NewFakeClientManagerOrFatal(util.NewFakeTimeForEpoch()) manager := NewResourceManager(store) apiRun := &api.Run{ Name: "No experiment", PipelineSpec: &api.PipelineSpec{ WorkflowManifest: testWorkflow.ToStringForStore(), Parameters: []*api.Parameter{ ...
explode_data.jsonl/28357
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 366 }
[ 2830, 3393, 4021, 6727, 36989, 77780, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 1532, 52317, 2959, 2043, 2195, 62396, 67811, 7121, 52317, 1462, 2461, 44338, 2398, 92272, 1669, 1532, 32498, 31200, 340, 54299, 6727, 1669, 609, 2068, 16708, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteExecuteWithExtraStack(t *testing.T) { config.WAITFREQUENCY = 0 client := new(CFClient) stackname := "ToDeleteStack" client.Client = &fakeDeleteCFClient{err: nil, stackname: stackname} opts := &commander.CommandHelper{} opts.Args = append(opts.Args, "teststack") d := Delete{ client: client, } d...
explode_data.jsonl/29825
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 166 }
[ 2830, 3393, 6435, 17174, 2354, 11612, 4336, 1155, 353, 8840, 836, 8, 341, 25873, 1175, 18587, 37, 787, 74113, 284, 220, 15, 198, 25291, 1669, 501, 3025, 37, 2959, 340, 48227, 606, 1669, 330, 64105, 4336, 698, 25291, 11716, 284, 609, 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 TestGetOptionsValidate(t *testing.T) { for _, test := range []struct { name string opts GetOptions hasErr bool }{ { name: "InvalidCedarOpts", opts: GetOptions{ TaskID: "task", }, hasErr: true, }, { name: "MissingTaskID", opts: GetOptions{ Cedar: timber.GetOptions{ B...
explode_data.jsonl/43520
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 686 }
[ 2830, 3393, 1949, 3798, 17926, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 64734, 256, 2126, 3798, 198, 197, 63255, 7747, 1807, 198, 197, 59403, 197, 197, 515, 298, 1160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_Problem598(t *testing.T) { qs := []question598{ { para598{3, 3, [][]int{{2, 2}, {3, 3}}}, ans598{4}, }, } fmt.Printf("------------------------Leetcode Problem 598------------------------\n") for _, q := range qs { _, p := q.ans598, q.para598 fmt.Printf("【input】:%v 【output】:%v\n", p...
explode_data.jsonl/27440
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 183 }
[ 2830, 3393, 16670, 10121, 20, 24, 23, 1155, 353, 8840, 836, 8, 1476, 18534, 82, 1669, 3056, 7841, 20, 24, 23, 4257, 197, 197, 515, 298, 197, 14794, 20, 24, 23, 90, 18, 11, 220, 18, 11, 52931, 396, 2979, 17, 11, 220, 17, 2137, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMempoolUpdate(t *testing.T) { app := kvstore.NewApplication() cc := proxy.NewLocalClientCreator(app) mempool, cleanup := newMempoolWithApp(cc) defer cleanup() // 1. Adds valid txs to the cache { err := mempool.Update(1, []types.Tx{[]byte{0x01}}, abciResponses(1, abci.CodeTypeOK), nil, nil) require.N...
explode_data.jsonl/14610
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 464 }
[ 2830, 3393, 44, 3262, 1749, 4289, 1155, 353, 8840, 836, 8, 341, 28236, 1669, 16178, 4314, 7121, 4988, 741, 63517, 1669, 13291, 7121, 7319, 2959, 31865, 11462, 340, 2109, 3262, 1749, 11, 21290, 1669, 501, 44, 3262, 1749, 2354, 2164, 3142...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteSharded(t *testing.T) { t.Parallel() flight := newShardedSyncU64set() flight.AddIfNotPresent(10) flight.Delete(10) if flight.shards[10%256].pks.Has(10) { t.Error("did not delete the value") } }
explode_data.jsonl/7437
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 89 }
[ 2830, 3393, 6435, 2016, 20958, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1166, 4145, 1669, 501, 2016, 20958, 12154, 52, 21, 19, 746, 741, 1166, 4145, 1904, 2679, 2623, 21195, 7, 16, 15, 692, 1166, 4145, 18872, 7, 16, 15,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestManager(t *testing.T) { managerList := &v1alpha1.ManagerList{ TypeMeta: metav1.TypeMeta{ Kind: "Manager", APIVersion: "contrail.juniper.net/v1alpha1", }, } err := test.AddToFrameworkScheme(apis.AddToScheme, managerList) if err != nil { t.Fatalf("failed to add custom resource scheme to fra...
explode_data.jsonl/41420
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 182 }
[ 2830, 3393, 2043, 1155, 353, 8840, 836, 8, 341, 92272, 852, 1669, 609, 85, 16, 7141, 16, 58298, 852, 515, 197, 27725, 12175, 25, 77520, 16, 10184, 12175, 515, 298, 197, 10629, 25, 981, 330, 2043, 756, 298, 197, 7082, 5637, 25, 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
func TestIssue573(t *testing.T) { // calls to runtime.duffzero and runtime.duffcopy jump directly into the middle // of the function and the internal breakpoint set by StepInto may be missed. protest.AllowRecording(t) withTestProcess("issue573", t, func(p *proc.Target, fixture protest.Fixture) { setFunctionBreakp...
explode_data.jsonl/56256
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 205 }
[ 2830, 3393, 42006, 20, 22, 18, 1155, 353, 8840, 836, 8, 341, 197, 322, 6738, 311, 15592, 950, 1362, 14154, 323, 15592, 950, 1362, 8560, 7784, 5961, 1119, 279, 6149, 198, 197, 322, 315, 279, 729, 323, 279, 5306, 52745, 738, 553, 1482...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReplaceAlternativeFlowProcessors(t *testing.T) { logp.TestingSetup() cases := []struct { name string esVersion *common.Version content map[string]interface{} expected map[string]interface{} isErrExpected bool }{ { name: "Replace in on_failure section", esVersio...
explode_data.jsonl/61784
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3779 }
[ 2830, 3393, 23107, 75763, 18878, 7423, 1087, 1155, 353, 8840, 836, 8, 341, 6725, 79, 8787, 287, 21821, 741, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 688, 914, 198, 197, 78966, 5637, 257, 353, 5464, 35842, 198, 197, 27751, 981, 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, 1, 1, 1...
2
func TestDocPartialUnmarshal(t *testing.T) { file, err := ioutil.TempFile("", "test-*.toml") if err != nil { t.Fatal(err) } defer os.Remove(file.Name()) err = ioutil.WriteFile(file.Name(), marshalTestToml, 0) if err != nil { t.Fatal(err) } tree, _ := LoadFile(file.Name()) subTree := tree.Get("subdoc").(*...
explode_data.jsonl/46312
{ "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, 9550, 37314, 1806, 27121, 1155, 353, 8840, 836, 8, 341, 17661, 11, 1848, 1669, 43144, 65009, 1703, 19814, 330, 1944, 12, 19922, 37401, 75, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 2643, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAllDocsQuery(t *testing.T) { if base.UnitTestUrlIsWalrus() || base.TestsDisableGSI() { t.Skip("This test is Couchbase Server and UseViews=false only") } db := setupTestDB(t) defer db.Close() // Add docs with channel assignment for i := 1; i <= 10; i++ { _, _, err := db.Put(fmt.Sprintf("allDocsTest...
explode_data.jsonl/2708
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 641 }
[ 2830, 3393, 2403, 63107, 2859, 1155, 353, 8840, 836, 8, 1476, 743, 2331, 25159, 2271, 2864, 3872, 88298, 20341, 368, 1369, 2331, 37133, 25479, 38, 13817, 368, 341, 197, 3244, 57776, 445, 1986, 1273, 374, 61128, 3152, 8422, 323, 5443, 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...
8
func TestServeContentErrorMessages(t *testing.T) { defer afterTest(t) fs := fakeFS{ "/500": &fakeFileInfo{ err: errors.New("random error"), }, "/403": &fakeFileInfo{ err: &os.PathError{Err: os.ErrPermission}, }, } ts := httptest.NewServer(FileServer(fs)) defer ts.Close() for _, code := range []int{4...
explode_data.jsonl/48239
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 276 }
[ 2830, 3393, 60421, 2762, 1454, 15820, 1155, 353, 8840, 836, 8, 341, 16867, 1283, 2271, 1155, 340, 53584, 1669, 12418, 8485, 515, 197, 197, 3115, 20, 15, 15, 788, 609, 30570, 45430, 515, 298, 9859, 25, 5975, 7121, 445, 11463, 1465, 446...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_hcsTask_KillExec_UnknownExecID_Error(t *testing.T) { lt, _, _ := setupTestHcsTask(t) err := lt.KillExec(context.TODO(), "thisshouldnotmatch", 0xf, false) verifyExpectedError(t, nil, err, errdefs.ErrNotFound) }
explode_data.jsonl/56372
{ "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, 1523, 4837, 6262, 10102, 483, 10216, 62, 13790, 10216, 915, 28651, 1155, 353, 8840, 836, 8, 341, 197, 4832, 11, 8358, 716, 1669, 6505, 2271, 39, 4837, 6262, 1155, 692, 9859, 1669, 25175, 11352, 483, 10216, 5378, 90988, 1507,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVmoduleOn(t *testing.T) { setFlags() defer logging.swap(logging.newBuffers()) logging.vmodule.Set("glog_test=2") defer logging.vmodule.Set("") if !V(1) { t.Error("V not enabled for 1") } if !V(2) { t.Error("V not enabled for 2") } if V(3) { t.Error("V enabled for 3") } V(2).Info("test") if !c...
explode_data.jsonl/8432
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 217 }
[ 2830, 3393, 53, 4352, 1925, 1155, 353, 8840, 836, 8, 341, 8196, 9195, 741, 16867, 8392, 54537, 51687, 4618, 36219, 2398, 90085, 3133, 4352, 4202, 445, 70, 839, 4452, 28, 17, 1138, 16867, 8392, 3133, 4352, 4202, 31764, 743, 753, 53, 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...
6
func Test_Proxy_Run(t *testing.T) { builder := NewMockBuilder() runner := NewMockRunner() proxy := gin.NewProxy(builder, runner) config := &gin.Config{} proxy.Run(config) defer proxy.Close() }
explode_data.jsonl/38855
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 73 }
[ 2830, 3393, 16670, 4130, 84158, 1155, 353, 8840, 836, 8, 341, 44546, 1669, 1532, 11571, 3297, 741, 197, 41736, 1669, 1532, 11571, 19486, 741, 197, 22803, 1669, 46183, 7121, 16219, 30750, 11, 22259, 692, 25873, 1669, 609, 8163, 10753, 3148...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWalletDelete(t *testing.T) { app, mockApi, _, done := NewMockAppWithFullAPI(t, WithCategory("wallet", walletDelete)) defer done() ctx, cancel := context.WithCancel(context.Background()) defer cancel() addr, err := address.NewIDAddress(1234) assert.NoError(t, err) mockApi.EXPECT().WalletDelete(ctx, ad...
explode_data.jsonl/8258
{ "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, 38259, 6435, 1155, 353, 8840, 836, 8, 341, 28236, 11, 7860, 6563, 11, 8358, 2814, 1669, 1532, 11571, 2164, 2354, 9432, 7082, 1155, 11, 3085, 6746, 445, 35735, 497, 15085, 6435, 1171, 16867, 2814, 2822, 20985, 11, 9121, 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 TestDefaultStreamInterceptorAuthFailure(t *testing.T) { // prepare authCalled := false expectedErr := fmt.Errorf("not authenticated") authFunc := func(context.Context, map[string][]string) (context.Context, error) { authCalled = true return context.Background(), expectedErr } handler := func(srv interfac...
explode_data.jsonl/80342
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 260 }
[ 2830, 3393, 3675, 3027, 32786, 5087, 17507, 1155, 353, 8840, 836, 8, 341, 197, 322, 10549, 198, 78011, 20960, 1669, 895, 198, 42400, 7747, 1669, 8879, 13080, 445, 1921, 37260, 1138, 78011, 9626, 1669, 2915, 5378, 9328, 11, 2415, 14032, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSnapshotAndRestartMember(t *testing.T) { defer testutil.AfterTest(t) m := mustNewMember(t, "snapAndRestartTest", nil, nil) m.SnapCount = 100 m.Launch() defer m.Terminate(t) m.WaitOK(t) resps := make([]*client.Response, 120) var err error for i := 0; i < 120; i++ { cc := mustNewHTTPClient(t, []strin...
explode_data.jsonl/725
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 502 }
[ 2830, 3393, 15009, 3036, 59354, 9366, 1155, 353, 8840, 836, 8, 341, 16867, 1273, 1314, 36892, 2271, 1155, 340, 2109, 1669, 1969, 3564, 9366, 1155, 11, 330, 48854, 3036, 59354, 2271, 497, 2092, 11, 2092, 340, 2109, 808, 6861, 2507, 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...
6
func TestShouldReturnUnauthorizedWhenAccountIsMissing(t *testing.T) { // mock AccountsFetcher mockAccountsFetcher := &mockAccountsFetcher{} // mock PBS Analytics Module mockAnalyticsModule := &eventsMockAnalyticsModule{ Fail: false, } // mock config cfg := &config.Configuration{ AccountDefaults: config.Ac...
explode_data.jsonl/136
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 312 }
[ 2830, 3393, 14996, 5598, 51181, 4498, 7365, 3872, 25080, 1155, 353, 8840, 836, 8, 1476, 197, 322, 7860, 40655, 97492, 198, 77333, 41369, 97492, 1669, 609, 16712, 41369, 97492, 31483, 197, 322, 7860, 59045, 32427, 13711, 198, 77333, 60539, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOutputTemplate(t *testing.T) { for _, tt := range testsTemplate { s := newTestSchema() c, err := config.New() if err != nil { t.Error(err) } tempDir, _ := ioutil.TempDir("", "tbls") force := true adjust := tt.adjust erFormat := "png" defer os.RemoveAll(tempDir) err = c.Load(filepath.Joi...
explode_data.jsonl/23085
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 496 }
[ 2830, 3393, 5097, 7275, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 7032, 7275, 341, 197, 1903, 1669, 501, 2271, 8632, 741, 197, 1444, 11, 1848, 1669, 2193, 7121, 741, 197, 743, 1848, 961, 2092, 341, 298, 3244, 6141, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWsClient_SubscribeAndUnSubscribe_priv(t *testing.T) { r := prework_pri(ISOLATE_ACCOUNT) var err error var res bool var params []map[string]string params = append(params, map[string]string{"channel": "orders", "instType": SPOT, "instId": "BTC-USDT"}) //一个失败的订阅用例 params = append(params, map[string]string...
explode_data.jsonl/61323
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 402 }
[ 2830, 3393, 74733, 2959, 36359, 6273, 3036, 1806, 28573, 24726, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 855, 1778, 85639, 37096, 1930, 2336, 38831, 340, 2405, 1848, 1465, 198, 2405, 592, 1807, 271, 2405, 3628, 3056, 2186, 14032, 30953, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSuccess(t *testing.T) { l := startServer(t) dialer := NewDialer(Config{ DialServer: func() (net.Conn, error) { log.Debugf("Dialing with timeout to: %v", l.Addr()) conn, err := net.DialTimeout(l.Addr().Network(), l.Addr().String(), 2*time.Second) log.Debugf("Got conn %v and err %v", conn, err) ...
explode_data.jsonl/15728
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 167 }
[ 2830, 3393, 7188, 1155, 353, 8840, 836, 8, 341, 8810, 1669, 1191, 5475, 1155, 692, 2698, 530, 261, 1669, 1532, 35, 530, 261, 33687, 515, 197, 10957, 530, 5475, 25, 2915, 368, 320, 4711, 50422, 11, 1465, 8, 341, 298, 6725, 88278, 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 TestNewHistoryCommandErrors(t *testing.T) { testCases := []struct { name string args []string expectedError string imageHistoryFunc func(img string) ([]image.HistoryResponseItem, error) }{ { name: "wrong-args", args: []string{}, expectedError: "requ...
explode_data.jsonl/40310
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 369 }
[ 2830, 3393, 3564, 13424, 4062, 13877, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 1797, 914, 198, 197, 31215, 1797, 3056, 917, 198, 197, 42400, 1454, 262, 914, 198, 197, 31426, 13424, 9626, 2915, 11022...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMockHypervisorGetSandboxConsole(t *testing.T) { var m *mockHypervisor expected := "" result, err := m.getSandboxConsole("testSandboxID") assert.NoError(t, err) assert.Equal(t, result, expected) }
explode_data.jsonl/59370
{ "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, 11571, 39, 1082, 31396, 1949, 50, 31536, 12372, 1155, 353, 8840, 836, 8, 341, 2405, 296, 353, 16712, 39, 1082, 31396, 271, 42400, 1669, 8389, 9559, 11, 1848, 1669, 296, 52966, 31536, 12372, 445, 1944, 50, 31536, 915, 1138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProjectRead404(t *testing.T) { ctx := context.Background() prov := sentryProvider{ sentryClient: &sentryClientMock{ getProject: func(org sentry.Organization, projslug string) (sentry.Project, error) { return sentry.Project{}, sentry.APIError{Detail: "not found", StatusCode: 404} }, }, } resp,...
explode_data.jsonl/27974
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 195 }
[ 2830, 3393, 7849, 4418, 19, 15, 19, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 197, 42947, 1669, 3208, 884, 5179, 515, 197, 1903, 4085, 2959, 25, 609, 82, 4085, 2959, 11571, 515, 298, 10366, 7849, 25, 2915, 36246, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRetrieveByExternalID(t *testing.T) { repo := postgres.NewConfigRepository(db, testLog) c := config // Use UUID to prevent conflicts. id := uuid.NewV4().String() c.MFKey = id c.MFThing = id c.ExternalID = id c.ExternalKey = id _, err := repo.Save(c) require.Nil(t, err, fmt.Sprintf("Saving config expec...
explode_data.jsonl/461
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 498 }
[ 2830, 3393, 87665, 1359, 25913, 915, 1155, 353, 8840, 836, 8, 341, 17200, 5368, 1669, 59826, 7121, 2648, 4624, 9791, 11, 1273, 2201, 340, 1444, 1669, 2193, 198, 197, 322, 5443, 23698, 311, 5358, 25800, 624, 15710, 1669, 16040, 7121, 53,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJsonNoInputs(t *testing.T) { assert := assert.New(t) settings := testutil.Settings().With(&print.Settings{ ShowHeader: true, ShowInputs: false, ShowOutputs: true, ShowProviders: true, ShowRequirements: true, }).Build() expected, err := testutil.GetExpected("json", "json-NoInp...
explode_data.jsonl/40848
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 218 }
[ 2830, 3393, 5014, 2753, 31946, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 62930, 1669, 1273, 1314, 27000, 1005, 2354, 2099, 1350, 27000, 515, 197, 197, 7812, 4047, 25, 981, 830, 345, 197, 197, 7812, 31946, 25, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconciler_Destructive(t *testing.T) { job := mock.Job() // Create 10 existing allocations var allocs []*structs.Allocation for i := 0; i < 10; i++ { alloc := mock.Alloc() alloc.Job = job alloc.JobID = job.ID alloc.NodeID = uuid.Generate() alloc.Name = structs.AllocName(job.ID, job.TaskGroups[0]...
explode_data.jsonl/67237
{ "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, 693, 40446, 5769, 1557, 29294, 533, 1155, 353, 8840, 836, 8, 341, 68577, 1669, 7860, 45293, 2822, 197, 322, 4230, 220, 16, 15, 6350, 69642, 198, 2405, 5574, 82, 29838, 1235, 82, 9636, 2527, 198, 2023, 600, 1669, 220, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAes256CtsHmacSha196_StringToKey(t *testing.T) { t.Parallel() // Test vectors from RFC 3962 Appendix B b, _ := hex.DecodeString("1234567878563412") s := string(b) b, _ = hex.DecodeString("f09d849e") s2 := string(b) var tests = []struct { iterations int64 phrase string salt string pbkdf2...
explode_data.jsonl/61848
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1095 }
[ 2830, 3393, 32, 288, 17, 20, 21, 34, 2576, 39, 11948, 62316, 16, 24, 21, 31777, 1249, 1592, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 322, 3393, 22879, 504, 39233, 220, 18, 24, 21, 17, 64714, 425, 198, 2233, 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...
3
func TestSeriesType(t *testing.T) { // Create new series init := []Series{ NewSeriesFloat64("test", &SeriesInit{1, 0}), NewSeriesInt64("test", &SeriesInit{1, 0}), NewSeriesString("test", &SeriesInit{1, 0}), NewSeriesTime("test", &SeriesInit{1, 0}), NewSeriesMixed("test", &SeriesInit{1, 0}), NewSeriesGene...
explode_data.jsonl/9998
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 25544, 929, 1155, 353, 8840, 836, 8, 1476, 197, 322, 4230, 501, 4013, 198, 28248, 1669, 3056, 25544, 515, 197, 197, 3564, 25544, 5442, 21, 19, 445, 1944, 497, 609, 25544, 3803, 90, 16, 11, 220, 15, 30793, 197, 197, 3564,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteSnippet(t *testing.T) { app := newTestApp(t) // start the https test server ts := newTestServer(t, app.routes()) defer ts.Close() // get snippet page properties code, _, response := ts.get(t, "/snippet/1") if code != http.StatusOK { t.Errorf("want %d; got %d", http.StatusOK, code) } // pre...
explode_data.jsonl/12762
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 555 }
[ 2830, 3393, 6435, 87852, 1155, 353, 8840, 836, 8, 1476, 28236, 1669, 501, 2271, 2164, 1155, 692, 197, 322, 1191, 279, 3703, 1273, 3538, 198, 57441, 1669, 501, 2271, 5475, 1155, 11, 906, 39306, 2398, 16867, 10591, 10421, 2822, 197, 322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDasum(t *testing.T) { testNorm64(t, func(h *Handle, n int, x cuda.Buffer, inc int, res interface{}) error { return h.Dasum(n, x, inc, res) }, 1) }
explode_data.jsonl/70356
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 32617, 372, 1155, 353, 8840, 836, 8, 341, 18185, 24993, 21, 19, 1155, 11, 2915, 3203, 353, 6999, 11, 308, 526, 11, 856, 24408, 22622, 11, 3625, 526, 11, 592, 3749, 28875, 1465, 341, 197, 853, 305, 909, 300, 372, 1445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSubmitRequest(t *testing.T) { hmock := httptest.NewClient() client := &Client{ HorizonURL: "https://localhost/", HTTP: hmock, } txXdr := `AAAAABB90WssODNIgi6BHveqzxTRmIpvAFRyVNM+Hm2GVuCcAAAAZAAABD0AAuV/AAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAyTBGxOgfSApppsTnb/YRr6gOR8WT0LZNrhLh4y3FCgoAAAAXSHboAAAAAAAAAA...
explode_data.jsonl/82475
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1452 }
[ 2830, 3393, 8890, 1900, 1155, 353, 8840, 836, 8, 341, 9598, 16712, 1669, 54320, 70334, 7121, 2959, 741, 25291, 1669, 609, 2959, 515, 197, 13292, 269, 16973, 3144, 25, 330, 2428, 1110, 8301, 35075, 197, 197, 9230, 25, 981, 305, 16712, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestThisNoStrict(t *testing.T) { const SCRIPT = ` Object.defineProperty(Object.prototype, "x", { get: function () { return this; } }); (5).x == 5; ` testScript1(SCRIPT, valueTrue, t) }
explode_data.jsonl/75210
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 74 }
[ 2830, 3393, 1986, 2753, 41857, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 23816, 24802, 12526, 6003, 11, 330, 87, 497, 314, 633, 25, 729, 1719, 314, 470, 419, 26, 335, 3011, 197, 7, 20, 568, 87, 621, 220, 20, 280, 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
func TestShouldParseArgon2idHash(t *testing.T) { passwordHash, err := ParseHash("$argon2id$v=19$m=65536,t=1,p=8$NEwwcVNuQWlQMFpkMndxdg$LlHjiLxPB94pdmOiNwr7Bgy+uy3huSv6y9phCQ+mLls") assert.NoError(t, err) assert.Equal(t, schema.DefaultCIPasswordConfiguration.Iterations, passwordHash.Iterations) assert.Equal(t, schem...
explode_data.jsonl/40184
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 14996, 14463, 2735, 263, 17, 307, 6370, 1155, 353, 8840, 836, 8, 341, 58199, 6370, 11, 1848, 1669, 14775, 6370, 20912, 70821, 17, 307, 65020, 28, 16, 24, 53516, 28, 21, 20, 20, 18, 21, 13960, 28, 16, 7237, 28, 23, 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 Test_AWSOpenEgressSecurityGroupRule(t *testing.T) { expectedCode := "aws-vpc-no-public-egress-sgr" var tests = []struct { name string source string mustIncludeResultCode string mustExcludeResultCode string }{ { name: "check aws_security_group_rule egress on 0.0.0.0/...
explode_data.jsonl/66577
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 530 }
[ 2830, 3393, 1566, 7433, 5002, 36, 2483, 15352, 2808, 11337, 1155, 353, 8840, 836, 8, 341, 42400, 2078, 1669, 330, 8635, 8273, 3992, 28366, 56471, 12, 791, 673, 1331, 901, 1837, 2405, 7032, 284, 3056, 1235, 341, 197, 11609, 1698, 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...
1
func TestIsNonEmptyString(t *testing.T) { tests := []struct { name string input string want bool }{ {name: "simple", input: "data", want: true}, {name: "empty", input: "", want: false}, {name: "space", input: "s p a c e", want: true}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { ...
explode_data.jsonl/13872
{ "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, 3872, 8121, 3522, 703, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 22427, 914, 198, 197, 50780, 220, 1807, 198, 197, 59403, 197, 197, 47006, 25, 330, 22944, 497, 1946, 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...
2
func TestParseRgwDump(t *testing.T) { c := &Ceph{Log: testutil.Logger{}} dump, err := c.parseDump(rgwPerfDump) require.NoError(t, err) require.InEpsilon(t, 0.002219876, dump["rgw"]["get_initial_lat.sum"], epsilon) require.Equal(t, float64(0), dump["rgw"]["put_initial_lat.avgcount"]) }
explode_data.jsonl/40223
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 14463, 49, 54133, 51056, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 609, 34, 23544, 90, 2201, 25, 1273, 1314, 12750, 6257, 532, 2698, 1510, 11, 1848, 1669, 272, 4632, 51056, 7, 1984, 86, 3889, 69, 51056, 340, 17957, 35699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_AutoscaleSettings_StatusARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { t.Parallel() parameters := gopter.DefaultTestParameters() parameters.MaxSize = 10 properties := gopter.NewProperties(parameters) properties.Property( "Round trip of AutoscaleSettings_StatusARM via JSON returns original...
explode_data.jsonl/9506
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 1566, 20435, 2246, 6086, 36449, 17911, 62, 4498, 77521, 78967, 98054, 2848, 4756, 2121, 2993, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 67543, 1669, 728, 73137, 13275, 2271, 9706, 741, 67543, 14535, 1695, 284, 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...
1
func TestConfigGzipFalse(t *testing.T) { var data = ` gzip: false ` newTestConfig(data, func(c Config, seq sequence) { c.loadGzip(seq) assert.Empty(t, c.gzipPatterns.globs) }) }
explode_data.jsonl/8670
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 79 }
[ 2830, 3393, 2648, 38, 9964, 4049, 1155, 353, 8840, 836, 8, 341, 2405, 821, 284, 22074, 70996, 25, 895, 198, 3989, 8638, 2271, 2648, 2592, 11, 2915, 1337, 5532, 11, 12981, 8500, 8, 341, 197, 1444, 5104, 38, 9964, 34820, 340, 197, 694...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPipelineDescriber_String(t *testing.T) { oldHumanize := humanizeTime humanizeTime = func(then time.Time) string { now, _ := time.Parse(time.RFC3339, "2020-06-19T00:00:00+00:00") return humanize.RelTime(then, now, "ago", "from now") } defer func() { humanizeTime = oldHumanize }() testCases := map[st...
explode_data.jsonl/39133
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1924 }
[ 2830, 3393, 34656, 62664, 652, 31777, 1155, 353, 8840, 836, 8, 341, 61828, 33975, 551, 1669, 3738, 551, 1462, 198, 9598, 7136, 551, 1462, 284, 2915, 7, 3391, 882, 16299, 8, 914, 341, 197, 80922, 11, 716, 1669, 882, 8937, 9730, 2013, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1