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 TestDefaultAppLogger(t *testing.T) { cases := []struct { name string in string out string }{ { name: "helloworld", in: "helloworld", out: "helloworld\n", }, } for _, c := range cases { t.Run(c.name, func(t *testing.T) { var ( buf = new(bytes.Buffer) ) a, _, _ := Defaul...
explode_data.jsonl/37585
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 281 }
[ 2830, 3393, 3675, 2164, 7395, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 17430, 256, 914, 198, 197, 13967, 220, 914, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 71, 95292, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateServiceClass(t *testing.T) { cases := []struct { name string serviceClass *servicecatalog.ServiceClass valid bool }{ { name: "valid serviceClass", serviceClass: validServiceClass(), valid: true, }, { name: "valid serviceClass - uppercase in GUID",...
explode_data.jsonl/48909
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1336 }
[ 2830, 3393, 17926, 1860, 1957, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 52934, 1957, 353, 7936, 26539, 13860, 1957, 198, 197, 56322, 286, 1807, 198, 197, 59403, 197, 197, 515, 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 TestMimeTypeMap(t *testing.T) { t.Run("File format not changed", func(t *testing.T) { var _mimeTypeMap = map[MimeType]string{ Text: "txt", Csv: "csv", Tsv: "tsv", URIList: "uri", HTML: "html", XML: "xml", JSON: "json", Yaml: "yaml", Pcap: "pcap", Png: ...
explode_data.jsonl/43666
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1113 }
[ 2830, 3393, 97081, 2227, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1703, 3561, 537, 5497, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 2405, 716, 76, 34872, 2227, 284, 2415, 39379, 34872, 30953, 515, 298, 49635, 25, 262, 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...
2
func TestExistsSubscription(t *testing.T) { t.Run("Exists subscription test", func(t *testing.T) { Init(clientId) _, err := ExistsSubscription(subName) if err != nil { t.Error(err) } else { log.Println("Exists subs test is successful.") } }) }
explode_data.jsonl/4861
{ "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, 15575, 33402, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 15575, 15142, 1273, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 98762, 12805, 764, 692, 197, 197, 6878, 1848, 1669, 72426, 33402, 10624, 675, 692, 197, 743, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSignatureFilter(t *testing.T) { lf, rl := NewRAMLedgerAndFactory(10) consenters := make(map[string]Consenter) consenters[conf.Orderer.OrdererType] = &mockConsenter{} manager := NewManagerImpl(lf, consenters, &mockCryptoHelper{}) cs, ok := manager.GetChain(provisional.TestChainID) if !ok { t.Fatalf(...
explode_data.jsonl/32477
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 400 }
[ 2830, 3393, 25088, 5632, 1155, 353, 8840, 836, 8, 341, 8810, 69, 11, 38877, 1669, 1532, 49, 31102, 291, 1389, 3036, 4153, 7, 16, 15, 692, 197, 6254, 306, 388, 1669, 1281, 9147, 14032, 60, 15220, 1950, 340, 197, 6254, 306, 388, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOnDemandAuthorizationServiceRetrieve(t *testing.T) { c := newMockClient(200, filepath.Join("testdata", "on-demand-authorization.json")) res, err := c.OnDemandAuthorization.Retrieve(ctx, "30e7c028-0bdf-e511-80de-0aa34a9b2388") assert.Nil(t, err) assert.NotNil(t, res) assert.Equal(t, res.BodyText, "I agre...
explode_data.jsonl/82567
{ "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, 1925, 81027, 18124, 1860, 87665, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 501, 11571, 2959, 7, 17, 15, 15, 11, 26054, 22363, 445, 92425, 497, 330, 263, 56264, 12, 39554, 4323, 5455, 10202, 11, 1848, 1669, 272, 8071, 81027...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSumPerKeyCrossPartitionContributionBoundingInt(t *testing.T) { // triples contains {1,0,1}, {2,0,1}, …, {50,0,1}, {1,1,1}, …, {50,1,1}, {1,2,1}, …, {50,9,1}. var triples []testutils.TripleWithIntValue for i := 0; i < 10; i++ { triples = append(triples, testutils.MakeSampleTripleWithIntValue(50, i)...) } ...
explode_data.jsonl/42965
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 703 }
[ 2830, 3393, 9190, 3889, 1592, 28501, 49978, 1109, 31140, 37909, 1072, 1155, 353, 8840, 836, 8, 341, 197, 322, 88561, 5610, 314, 16, 11, 15, 11, 16, 2137, 314, 17, 11, 15, 11, 16, 2137, 4593, 11, 314, 20, 15, 11, 15, 11, 16, 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...
4
func TestProto3SetDefaults(t *testing.T) { in := &pb.Message{ Terrain: map[string]*pb.Nested{ "meadow": new(pb.Nested), }, Proto2Field: new(tpb.SubDefaults), Proto2Value: map[string]*tpb.SubDefaults{ "badlands": new(tpb.SubDefaults), }, } got := proto.Clone(in).(*pb.Message) proto.SetDefaults(got) ...
explode_data.jsonl/73391
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 362 }
[ 2830, 3393, 31549, 18, 1649, 16273, 1155, 353, 8840, 836, 8, 341, 17430, 1669, 609, 16650, 8472, 515, 197, 10261, 615, 466, 25, 2415, 14032, 8465, 16650, 2067, 9980, 515, 298, 197, 1, 2660, 5843, 788, 501, 76878, 2067, 9980, 1326, 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 TestOrderedEdgesSlice(t *testing.T) { for _, test := range orderedEdgesTests { for i := 0; i < 2; i++ { it := iterator.NewOrderedEdges(test.edges) got := it.EdgeSlice() want := test.edges if !reflect.DeepEqual(got, want) { t.Errorf("unexpected iterator output for round %d: got:%#v want:%#v", i, ...
explode_data.jsonl/67498
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 54384, 41122, 33236, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 11457, 41122, 18200, 341, 197, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 17, 26, 600, 1027, 341, 298, 23374, 1669, 15091, 7121, 54384, 411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContextDeadlineOnPeer(t *testing.T) { once.Do(testSetup) peer0 := &slowPeer{} peer1 := &slowPeer{} peer2 := &slowPeer{} peerList := fakePeers([]ProtoGetter{peer0, peer1, peer2, nil}) getter := func(_ context.Context, key string, dest Sink) error { return dest.SetString("got:"+key, time.Time{}) } test...
explode_data.jsonl/62852
{ "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, 1972, 83593, 1925, 30888, 1155, 353, 8840, 836, 8, 341, 197, 13184, 33596, 8623, 21821, 340, 197, 16537, 15, 1669, 609, 35211, 30888, 16094, 197, 16537, 16, 1669, 609, 35211, 30888, 16094, 197, 16537, 17, 1669, 609, 35211, 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 TestBlockByHash_46147(t *testing.T) { t.Parallel() srv := rpctest.NewFileServer(t, "testdata/get_block_by_hash__46147.golden") defer srv.Close() client := w3.MustDial(srv.URL()) defer client.Close() var ( block = new(types.Block) wantBlock = types.NewBlockWithHeader(&types.Header{ ParentHash: ...
explode_data.jsonl/62501
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1268 }
[ 2830, 3393, 4713, 1359, 6370, 62, 19, 21, 16, 19, 22, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1903, 10553, 1669, 33109, 67880, 7121, 1703, 5475, 1155, 11, 330, 92425, 23302, 7113, 3710, 8950, 563, 19, 21, 16, 19, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsSharedSuccess(t *testing.T) { successMountInfo := `62 0 253:0 / / rw,relatime shared:1 - ext4 /dev/mapper/ssd-root rw,seclabel,data=ordered 76 62 8:1 / /boot rw,relatime shared:29 - ext4 /dev/sda1 rw,seclabel,data=ordered 78 62 0:41 / /tmp rw,nosuid,nodev shared:30 - tmpfs tmpfs rw,seclabel 80 62 0:42 / /...
explode_data.jsonl/76948
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 975 }
[ 2830, 3393, 3872, 16997, 7188, 1155, 353, 8840, 836, 8, 341, 30553, 16284, 1731, 19687, 197, 197, 63, 21, 17, 220, 15, 220, 17, 20, 18, 25, 15, 608, 608, 25991, 11, 3748, 266, 545, 6094, 25, 16, 481, 1303, 19, 608, 3583, 3183, 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...
5
func TestInclude(t *testing.T) { _, err := MakeConfMapFromFile(tempFile5Name) if nil != err { t.Fatalf("MakeConfMapFromFile() of <tempdir>/%v that includes <tempdir>/%v got %#v", filepath.Base(tempFile5Name), filepath.Base(tempFile4Name), err) } }
explode_data.jsonl/9168
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 99 }
[ 2830, 3393, 22283, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 7405, 15578, 2227, 43633, 9758, 1703, 20, 675, 340, 743, 2092, 961, 1848, 341, 197, 3244, 30762, 445, 8078, 15578, 2227, 43633, 368, 315, 366, 3888, 3741, 29, 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...
2
func Test_configFile(t *testing.T) { c := Configuration{} err := yaml.Unmarshal([]byte(defaultConfigPayload), &c) assert.Nil(t, err) assert.NotNil(t, c.Identity.Defaults) assert.Len(t, c.Identity.Defaults, 1) u := c.Identity.Defaults[0] assert.NotNil(t, u) assert.Equal(t, "admin", u.User) assert.Equal(t, "...
explode_data.jsonl/75682
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 5332, 1703, 1155, 353, 8840, 836, 8, 1476, 1444, 1669, 12221, 31483, 9859, 1669, 32246, 38097, 10556, 3782, 18978, 2648, 29683, 701, 609, 66, 340, 6948, 59678, 1155, 11, 1848, 692, 6948, 93882, 1155, 11, 272, 24423, 13275, 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...
1
func TestBindName(t *testing.T) { t.Parallel() ctx := NewIsolate().NewContext() xyz := ctx.Bind("xyz", func(CallbackArgs) (*Value, error) { return nil, nil }) if str := xyz.String(); str != "function xyz() { [native code] }" { t.Errorf("Wrong function signature: %q", str) } }
explode_data.jsonl/81568
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 107 }
[ 2830, 3393, 9950, 675, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 20985, 1669, 1532, 3872, 33066, 1005, 3564, 1972, 2822, 197, 28854, 1669, 5635, 32451, 445, 28854, 497, 2915, 3025, 3420, 4117, 8, 4609, 1130, 11, 1465, 8, 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 TestPrintPodwide(t *testing.T) { condition1 := "condition1" condition2 := "condition2" condition3 := "condition3" tests := []struct { pod api.Pod expect []metav1.TableRow }{ { // Test when the NodeName and PodIP are not none api.Pod{ ObjectMeta: metav1.ObjectMeta{Name: "test1"}, Spec: a...
explode_data.jsonl/21598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1686 }
[ 2830, 3393, 8994, 23527, 9150, 1155, 353, 8840, 836, 8, 341, 197, 9056, 16, 1669, 330, 9056, 16, 698, 197, 9056, 17, 1669, 330, 9056, 17, 698, 197, 9056, 18, 1669, 330, 9056, 18, 698, 78216, 1669, 3056, 1235, 341, 197, 3223, 347, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResponse(t *testing.T) { common.SetUpMockConfig() var wg sync.WaitGroup var originResource = []string{ "4228c0db-253b-4dc8-93d1-dab9359139ba.1", "423e8254-e3ef-42bd-a130-f096c93a6c42.1", "37646c88-a7d7-468c-af58-49e8a0adbbb2.1", } var hosts = []string{"10.24.1.10", "10.24.1.11", "10.24.1.12"} var r...
explode_data.jsonl/7620
{ "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, 2582, 1155, 353, 8840, 836, 8, 341, 83825, 4202, 2324, 11571, 2648, 741, 2405, 63581, 12811, 28384, 2808, 198, 2405, 6238, 4783, 284, 3056, 917, 515, 197, 197, 1, 19, 17, 17, 23, 66, 15, 1999, 12, 17, 20, 18, 65, 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...
1
func TestRest_UpdateNotOwner(t *testing.T) { ts, srv, teardown := startupT(t) defer teardown() c1 := store.Comment{Text: "test test #1", ParentID: "p1", Locator: store.Locator{SiteID: "remark42", URL: "https://radio-t.com/blah1"}, User: store.User{ID: "xyz"}} id1, err := srv.DataService.Create(c1) assert.NoErro...
explode_data.jsonl/37395
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 565 }
[ 2830, 3393, 12416, 47393, 2623, 13801, 1155, 353, 8840, 836, 8, 341, 57441, 11, 43578, 11, 49304, 1669, 20567, 51, 1155, 340, 16867, 49304, 2822, 1444, 16, 1669, 3553, 56730, 90, 1178, 25, 330, 1944, 1273, 671, 16, 497, 17022, 915, 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 TestPostgreSQL_CreateUser(t *testing.T) { cleanup, connURL := preparePostgresTestContainer(t) defer cleanup() connectionDetails := map[string]interface{}{ "connection_url": connURL, } dbRaw, _ := New() db := dbRaw.(*PostgreSQL) err := db.Initialize(connectionDetails, true) if err != nil { t.Fatalf("e...
explode_data.jsonl/45465
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 447 }
[ 2830, 3393, 4133, 59796, 34325, 1474, 1155, 353, 8840, 836, 8, 341, 1444, 60639, 11, 4534, 3144, 1669, 10549, 4133, 17818, 2271, 4502, 1155, 340, 16867, 21290, 2822, 54590, 7799, 1669, 2415, 14032, 31344, 67066, 197, 197, 1, 7742, 2903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChecker(t *testing.T) { fake := &fakeIsolateService{} checker := newChecker(context.Background(), fake, 8) type itemPair struct { item *Item ps *isolatedclient.PushState } gotc := make(chan itemPair, 150) for i := 0; i < 150; i++ { item := &Item{ Path: fmt.Sprintf("/item/%d", i), Digest...
explode_data.jsonl/70501
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 586 }
[ 2830, 3393, 35188, 1155, 353, 8840, 836, 8, 341, 1166, 726, 1669, 609, 30570, 3872, 33066, 1860, 16094, 25157, 261, 1669, 501, 35188, 5378, 19047, 1507, 12418, 11, 220, 23, 692, 13158, 1509, 12443, 2036, 341, 197, 22339, 353, 1234, 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
func TestTimer(t *testing.T) { type args struct { c *testContext d time.Duration e error f func(ctx *testContext) } tests := []struct { name string args args wantErr bool }{ { name: "success", args: args{ c: newTestContext(), d: 100 * time.Millisecond, e: nil, f: nil, ...
explode_data.jsonl/54489
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 571 }
[ 2830, 3393, 10105, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 1444, 353, 1944, 1972, 198, 197, 2698, 882, 33795, 198, 197, 7727, 1465, 198, 197, 1166, 2915, 7502, 353, 1944, 1972, 340, 197, 630, 78216, 1669, 3056, 1235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoveRow(t *testing.T) { xlsx := NewFile() sheet1 := xlsx.GetSheetName(1) r, err := xlsx.workSheetReader(sheet1) assert.NoError(t, err) const ( colCount = 10 rowCount = 10 ) fillCells(xlsx, sheet1, colCount, rowCount) xlsx.SetCellHyperLink(sheet1, "A5", "https://github.com/360EntSecGroup-Skylar/e...
explode_data.jsonl/30490
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 681 }
[ 2830, 3393, 13021, 3102, 1155, 353, 8840, 836, 8, 341, 10225, 29017, 1669, 1532, 1703, 741, 1903, 3674, 16, 1669, 856, 29017, 2234, 10541, 675, 7, 16, 340, 7000, 11, 1848, 1669, 856, 29017, 18282, 10541, 5062, 61680, 16, 340, 6948, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntersect1(t *testing.T) { pp, err := prefixpool.New("10.10.1.0/24") require.Nil(t, err) x, _ := pp.Intersect("10.10.1.0/28") require.True(t, x) x, _ = pp.Intersect("10.10.1.10/28") require.True(t, x) x, _ = pp.Intersect("10.10.1.0/10") require.True(t, x) x, _ = pp.Intersect("10.10.0.0/10") require....
explode_data.jsonl/45814
{ "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, 3306, 9687, 16, 1155, 353, 8840, 836, 8, 341, 65729, 11, 1848, 1669, 9252, 10285, 7121, 445, 16, 15, 13, 16, 15, 13, 16, 13, 15, 14, 17, 19, 1138, 17957, 59678, 1155, 11, 1848, 692, 10225, 11, 716, 1669, 11823, 15405, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Hoverfly_GetFilteredSimulation_WithPlainTextUrlQuery(t *testing.T) { RegisterTestingT(t) unit := NewHoverflyWithConfiguration(&Configuration{}) unit.Simulation.AddPair(&models.RequestMatcherResponsePair{ RequestMatcher: models.RequestMatcher{ Destination: []models.RequestFieldMatchers{ { Ma...
explode_data.jsonl/45371
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 377 }
[ 2830, 3393, 2039, 1975, 21642, 13614, 67310, 64554, 62, 2354, 73248, 2864, 2859, 1155, 353, 8840, 836, 8, 341, 79096, 16451, 51, 1155, 692, 81189, 1669, 1532, 34379, 21642, 2354, 7688, 2099, 7688, 6257, 692, 81189, 808, 60361, 1904, 12443...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrepareCacheChangeCharsetCollation(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() orgEnable := core.PreparedPlanCacheEnabled() defer core.SetPreparedPlanCache(orgEnable) core.SetPreparedPlanCache(true) se, err := session.CreateSession4TestWithOpt(store, &session.Opt{ PreparedP...
explode_data.jsonl/5498
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 651 }
[ 2830, 3393, 50590, 8233, 4072, 78172, 15265, 367, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 741, 87625, 11084, 1669, 6200, 28770, 7212, 20485, 8233, 5462, 741, 16867, 6200,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUserServiceGet(t *testing.T) { // prepare mock and service mock := NewMockUserService(t) service := NewUserService(mock) // EXPECT SUCCESS will simulated normal operation with no error return // this simulation expect all goes as expected t.Run("EXPECT SUCCESS", func(t *testing.T){ ...
explode_data.jsonl/30942
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 395 }
[ 2830, 3393, 60004, 1949, 1155, 353, 8840, 836, 8, 341, 262, 442, 10549, 7860, 323, 2473, 198, 262, 7860, 1669, 1532, 11571, 60004, 1155, 340, 262, 2473, 1669, 1532, 60004, 30389, 692, 262, 442, 8921, 33941, 686, 45736, 4622, 5666, 448, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSearcher__refreshInterval(t *testing.T) { if v := getDataRefreshInterval(log.NewNopLogger(), ""); v.String() != "12h0m0s" { t.Errorf("Got %v", v) } if v := getDataRefreshInterval(log.NewNopLogger(), "60s"); v.String() != "1m0s" { t.Errorf("Got %v", v) } if v := getDataRefreshInterval(log.NewNopLogger(...
explode_data.jsonl/29462
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 223 }
[ 2830, 3393, 5890, 261, 563, 17168, 10256, 1155, 353, 8840, 836, 8, 341, 743, 348, 1669, 27616, 14567, 10256, 12531, 7121, 45, 453, 7395, 1507, 93754, 348, 6431, 368, 961, 330, 16, 17, 71, 15, 76, 15, 82, 1, 341, 197, 3244, 13080, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetAnnotations(t *testing.T) { testTid := "tid_test" testCtx := tid.TransactionAwareContext(context.Background(), testTid) testUUID := uuid.New() expectedAnnotations := AnnotationsBody{Annotations: []Annotation{ { Predicate: "foo", ConceptID: "bar", }, }, } testAnnotations := map[string]Annot...
explode_data.jsonl/19418
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 319 }
[ 2830, 3393, 1949, 21418, 1155, 353, 8840, 836, 8, 341, 18185, 51, 307, 1669, 330, 24449, 4452, 698, 18185, 23684, 1669, 13112, 29284, 58793, 1972, 5378, 19047, 1507, 1273, 51, 307, 340, 18185, 24754, 1669, 16040, 7121, 741, 42400, 21418, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUserSuppliedMSSOnListenAccept(t *testing.T) { const mtu = 5000 ips := []struct { name string createEP func(*context.Context) sendPkt func(*context.Context, *context.Headers) checker func(*testing.T, *context.Context, uint16, uint16) maxMSS uint16 }{ { name: "IPv4", createEP: func(...
explode_data.jsonl/75934
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1510 }
[ 2830, 3393, 1474, 10048, 3440, 44, 1220, 1925, 38714, 16646, 1155, 353, 8840, 836, 8, 341, 4777, 11965, 84, 284, 220, 20, 15, 15, 15, 271, 197, 3077, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 39263, 9197, 2915, 4071, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBatchWriteBlobsRpcRetriesExhausted(t *testing.T) { t.Parallel() f := setup(t) f.fake.retriableForever = true defer f.shutDown() blobs := map[digest.Digest][]byte{ digest.TestNew("a", 1): []byte{1}, digest.TestNew("b", 1): []byte{2}, } err := f.client.BatchWriteBlobs(f.ctx, blobs) if err == nil { ...
explode_data.jsonl/5609
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 283 }
[ 2830, 3393, 21074, 7985, 33, 68164, 60248, 12020, 4019, 840, 15074, 291, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1166, 1669, 6505, 1155, 340, 1166, 94624, 1327, 376, 2156, 90561, 284, 830, 198, 16867, 282, 2395, 332, 4454,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandleInboundPortsIncludeWithEmptyInboundPorts(t *testing.T) { cfg := constructTestConfig() cfg.InboundPortsInclude = "" iptConfigurator := NewIptablesConfigurator(cfg, &dep.StdoutStubDependencies{}) iptConfigurator.handleInboundPortsInclude() ip4Rules := FormatIptablesCommands(iptConfigurator.iptables....
explode_data.jsonl/65393
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 238 }
[ 2830, 3393, 6999, 641, 10891, 68273, 22283, 2354, 3522, 641, 10891, 68273, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 9245, 2271, 2648, 741, 50286, 5337, 10891, 68273, 22283, 284, 35829, 8230, 417, 2648, 57383, 1669, 1532, 40, 417, 4788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetRetryAfterReader(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() vmGetErr := &retry.Error{ RawError: fmt.Errorf("azure cloud provider throttled for operation %s with reason %q", "VMGet", "client throttled"), Retriable: true, RetryAfter: getFutureTime(), } armClient := moc...
explode_data.jsonl/16682
{ "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, 1949, 51560, 6025, 5062, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 54879, 1949, 7747, 1669, 609, 44848, 6141, 515, 197, 11143, 672, 1454, 25, 256, 8879,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckErrorDetails(t *testing.T) { tests := []struct { detail ErrorDetails expected []string }{ { detail: &RefErrUnsupportedDetail{ Ref: MustParseRef("data.foo[x]"), Pos: 1, Have: types.N, }, expected: []string{ "data.foo[x]", "^^^^^^^^", "have: number", }, }, ...
explode_data.jsonl/14571
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 753 }
[ 2830, 3393, 3973, 1454, 7799, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 2698, 1628, 256, 4600, 7799, 198, 197, 42400, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 2698, 1628, 25, 609, 3945, 7747, 41884, 1064...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDoesNotDeadLockIfContextCancelledBeforePublish(t *testing.T) { g := blocksutil.NewBlockGenerator() ctx, cancel := context.WithCancel(context.Background()) n := New() defer n.Shutdown() t.Log("generate a large number of blocks. exceed default buffer") bs := g.Blocks(1000) ks := func() []cid.Cid { var...
explode_data.jsonl/8961
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 21468, 2623, 28320, 11989, 2679, 1972, 39473, 10227, 50145, 1155, 353, 8840, 836, 8, 1476, 3174, 1669, 10010, 1314, 7121, 4713, 12561, 741, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 9038, 1669, 1532, 741, 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...
2
func TestAllKeysWithEnv(t *testing.T) { v := New() // bind and define environment variables (including a nested one) v.BindEnv("id") v.BindEnv("foo.bar") v.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) testutil.Setenv(t, "ID", "13") testutil.Setenv(t, "FOO_BAR", "baz") expectedKeys := sort.StringSlice{"id...
explode_data.jsonl/9887
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 2403, 8850, 2354, 14359, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 1532, 2822, 197, 322, 10719, 323, 6979, 4573, 7332, 320, 16169, 264, 24034, 825, 340, 5195, 32451, 14359, 445, 307, 1138, 5195, 32451, 14359, 445, 7975, 2200...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListRules(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleRuleListSuccessfully(t) pages := 0 err := l7policies.ListRules(fake.ServiceClient(), "8a1412f0-4c32-4257-8b07-af4770b604fd", l7policies.ListRulesOpts{}).EachPage(func(page pagination.Page) (bool, error) { pages++ actual, err := l...
explode_data.jsonl/79642
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 294 }
[ 2830, 3393, 852, 26008, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 197, 6999, 11337, 852, 35959, 1155, 692, 3223, 1134, 1669, 220, 15, 198, 9859, 1669, 326, 22, 79, 42038, 5814, 26008, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPutManyContent(t *testing.T) { var serviceID string ctx := getContext() svc := &pb.MicroService{ ServiceName: "TestPutManyContent", Schemas: []string{"schemaID_1"}, } resp, err := datasource.GetMetadataManager().RegisterService(ctx, &pb.CreateServiceRequest{ Service: svc, }) assert.NoError(t,...
explode_data.jsonl/74503
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1963 }
[ 2830, 3393, 19103, 8441, 2762, 1155, 353, 8840, 836, 8, 341, 2405, 2473, 915, 914, 198, 20985, 1669, 66175, 2822, 1903, 7362, 1669, 609, 16650, 1321, 2754, 1860, 515, 197, 91619, 675, 25, 330, 2271, 19103, 8441, 2762, 756, 197, 7568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestActiveActorsCount(t *testing.T) { t.Run("Actors Count", func(t *testing.T) { expectedCounts := []ActiveActorsCount{{Type: "cat", Count: 2}, {Type: "dog", Count: 1}} testActorRuntime := newTestActorsRuntime() actorKey1 := testActorRuntime.constructCompositeKey("cat", "abcd") fakeCallAndActivateActor(...
explode_data.jsonl/60030
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 5728, 2414, 1087, 2507, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 2414, 1087, 4504, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 42400, 63731, 1669, 3056, 5728, 2414, 1087, 2507, 2979, 929, 25, 330, 4616, 497, 4504,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Execution_FetchDeploy_BadInputError_Unamarshalling(t *testing.T) { // Should end in clean state as nothing has happened yet stateMachine := createTestStateMachine(t, models.MockAwsClients(models.MockRelease(t))) exec, err := stateMachine.Execute(struct{ Subnets string }{Subnets: ""}) output := exec.Outpu...
explode_data.jsonl/3582
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 62, 20294, 1400, 2995, 69464, 1668, 329, 2505, 1454, 40687, 15554, 927, 16740, 1155, 353, 8840, 836, 8, 341, 197, 322, 12260, 835, 304, 4240, 1584, 438, 4302, 702, 6932, 3602, 198, 24291, 21605, 1669, 1855, 2271, 94666, 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
func TestNasTypeGetSetSpareHalfOctetAndNgksi(t *testing.T) { a := nasType.NewSpareHalfOctetAndNgksi() for _, table := range nasTypeNewNgksiAndSpareHalfOctetTable { a.SetTSC(table.inTsc) assert.Equal(t, table.outTsc, a.GetTSC()) a.SetNasKeySetIdentifiler(table.inNASKeySetIdentifier) assert.Equal(t, table.outNA...
explode_data.jsonl/66750
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 211 }
[ 2830, 3393, 45, 300, 929, 1949, 1649, 50, 3380, 42627, 18053, 295, 3036, 20897, 31060, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 17141, 929, 7121, 50, 3380, 42627, 18053, 295, 3036, 20897, 31060, 741, 2023, 8358, 1965, 1669, 2088, 1714...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSharedPatchDisAllowed(t *testing.T) { th := kusttest_test.NewKustTestHarnessFull( t, "/app/overlay", loader.RestrictionRootOnly, plugins.DefaultPluginConfig()) writeSmallBase(th) th.WriteK("/app/overlay", ` commonLabels: env: prod resources: - ../base patchesStrategicMerge: - ../shared/deployment-patc...
explode_data.jsonl/59904
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 295 }
[ 2830, 3393, 16997, 43622, 4839, 35382, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 595, 590, 1944, 4452, 7121, 42, 590, 2271, 74248, 9432, 1006, 197, 3244, 11, 3521, 676, 14, 21118, 756, 197, 197, 8355, 77850, 2479, 8439, 7308, 11, 172...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_JSON_SPBF(test *testing.T) { g12 := gsd.JSONGraph("../../example_files/testgraph.json", "testgraph.012") s12, ok12 := SPBF(g12, "S", "T") s12c := "S(=0) → A(=7) → C(=4) → B(=2) → T(=-2)" ok12c := true if s12 != s12c || ok12 != ok12c { test.Errorf("Should be same but %v", s12) } g13 := gsd.JSONGraph(...
explode_data.jsonl/19346
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 257 }
[ 2830, 3393, 25356, 17747, 19883, 8623, 353, 8840, 836, 8, 341, 3174, 16, 17, 1669, 342, 13446, 18009, 11212, 36800, 8687, 10931, 12697, 4439, 4323, 497, 330, 1944, 4439, 13, 15, 16, 17, 1138, 1903, 16, 17, 11, 5394, 16, 17, 1669, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSortedArray_PopLeft(t *testing.T) { gtest.C(t, func(t *gtest.T) { array1 := garray.NewSortedArrayFrom( []interface{}{"a", "d", "c", "b"}, gutil.ComparatorString, ) i1, ok := array1.PopLeft() t.Assert(ok, true) t.Assert(gconv.String(i1), "a") t.Assert(array1.Len(), 3) t.Assert(array1, []int...
explode_data.jsonl/67010
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 379 }
[ 2830, 3393, 51051, 1857, 1088, 453, 5415, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 11923, 16, 1669, 342, 1653, 7121, 51051, 1857, 3830, 1006, 298, 197, 1294, 4970, 6257, 4913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccMonitoringAlertPolicy(t *testing.T) { testCases := map[string]func(t *testing.T){ "basic": testAccMonitoringAlertPolicy_basic, "full": testAccMonitoringAlertPolicy_full, "update": testAccMonitoringAlertPolicy_update, } for name, tc := range testCases { // shadow the tc variable into scope so ...
explode_data.jsonl/3595
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 219 }
[ 2830, 3393, 14603, 98062, 9676, 13825, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 2830, 1155, 353, 8840, 836, 1264, 197, 197, 1, 22342, 788, 220, 1273, 14603, 98062, 9676, 13825, 34729, 345, 197, 197, 1, 8878, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnion(t *testing.T) { first := []string{ "one", "two", "three", } second := []string{ "zero", "two", "three", "four", } union := Union(first, second) contains := func(v string) bool { for _, each := range union { if v == each { return true } } return false } assert.Equal(...
explode_data.jsonl/76727
{ "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, 32658, 1155, 353, 8840, 836, 8, 341, 42190, 1669, 3056, 917, 515, 197, 197, 1, 603, 756, 197, 197, 1, 19789, 756, 197, 197, 1, 27856, 756, 197, 532, 197, 5569, 1669, 3056, 917, 515, 197, 197, 1, 14154, 756, 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...
3
func TestEth_coinbase(t *testing.T) { zeroAddress := hexutil.Bytes(common.Address{}.Bytes()) rpcRes := call(t, "eth_coinbase", []string{}) var res hexutil.Bytes err := res.UnmarshalJSON(rpcRes.Result) require.NoError(t, err) t.Logf("Got coinbase block proposer: %s\n", res.String()) require.NotEqual(t, zeroAddr...
explode_data.jsonl/843
{ "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, 65390, 75718, 3152, 1155, 353, 8840, 836, 8, 341, 197, 14154, 4286, 1669, 12371, 1314, 36868, 57802, 26979, 46391, 7078, 2398, 7000, 3992, 1061, 1669, 1618, 1155, 11, 330, 769, 75718, 3152, 497, 3056, 917, 6257, 692, 2405, 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 TestDBCrudOperation(t *testing.T) { commonValidators := []validator{ func(s sdktrace.ReadOnlySpan) bool { return assert.Equal(t, "test-collection.insert", s.Name(), "expected %s", s.Name()) }, func(s sdktrace.ReadOnlySpan) bool { return assert.Contains(t, s.Attributes(), attribute.String("db.operation...
explode_data.jsonl/33054
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1509 }
[ 2830, 3393, 3506, 92061, 8432, 1155, 353, 8840, 836, 8, 341, 83825, 31748, 1669, 3056, 16112, 515, 197, 29244, 1141, 45402, 15067, 26460, 12485, 8, 1807, 341, 298, 853, 2060, 12808, 1155, 11, 330, 1944, 95609, 7030, 497, 274, 2967, 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 TestImportAttachment(t *testing.T) { th := Setup(t) defer th.TearDown() testsDir, _ := fileutils.FindDir("tests") testImage := filepath.Join(testsDir, "test.png") invalidPath := "some-invalid-path" userId := model.NewId() data := AttachmentImportData{Path: &testImage} _, err := th.App.importAttachment(&d...
explode_data.jsonl/67144
{ "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, 11511, 33569, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 340, 16867, 270, 836, 682, 4454, 2822, 78216, 6184, 11, 716, 1669, 1034, 6031, 9998, 6184, 445, 23841, 1138, 18185, 1906, 1669, 26054, 22363, 8623, 82, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetChainConfigsDirNotExist(t *testing.T) { tests := map[string]struct { structure string file map[string]string err error errMessage string flagSet bool expected map[string]chains.ChainConfig }{ "cdir not exist": { structure: "/", file: map[string]string{"config.ex...
explode_data.jsonl/51976
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 989 }
[ 2830, 3393, 1649, 18837, 84905, 6184, 45535, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 6472, 552, 220, 914, 198, 197, 17661, 981, 2415, 14032, 30953, 198, 197, 9859, 286, 1465, 198, 197, 9859, 2052, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGnpDirected(t *testing.T) { t.Parallel() for n := 2; n <= 20; n++ { for p := 0.; p <= 1; p += 0.1 { g := &gnDirected{DirectedBuilder: simple.NewDirectedGraph()} orig := g.NewNode() g.AddNode(orig) err := Gnp(g, n, p, nil) if err != nil { t.Fatalf("unexpected error: n=%d, p=%v: %v", n, p,...
explode_data.jsonl/52029
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 316 }
[ 2830, 3393, 38, 6199, 92669, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 308, 1669, 220, 17, 26, 308, 2651, 220, 17, 15, 26, 308, 1027, 341, 197, 2023, 281, 1669, 220, 15, 15642, 281, 2651, 220, 16, 26, 281, 1421, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateDCToSupervisor(t *testing.T) { type args struct { name string imageName string expectedImage string imageNamespace string dc appsv1.DeploymentConfig } tests := []struct { name string args args wantErr bool actions int }{ { name: "Case 1: Check ...
explode_data.jsonl/65174
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1508 }
[ 2830, 3393, 4289, 35, 1162, 78, 10048, 31396, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 11609, 1843, 914, 198, 197, 31426, 675, 414, 914, 198, 197, 42400, 1906, 220, 914, 198, 197, 31426, 22699, 914, 198, 197, 87249, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSecretController(t *testing.T) { cluster1 := mkCluster("cluster1", api_v1.ConditionTrue) cluster2 := mkCluster("cluster2", api_v1.ConditionTrue) fakeClient := &fake_federation_release_1_4.Clientset{} RegisterList("clusters", &fakeClient.Fake, &federation_api.ClusterList{Items: []federation_api.Cluster{*cl...
explode_data.jsonl/56752
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1290 }
[ 2830, 3393, 19773, 2051, 1155, 353, 8840, 836, 8, 341, 197, 18855, 16, 1669, 23789, 28678, 445, 18855, 16, 497, 6330, 2273, 16, 75134, 2514, 340, 197, 18855, 17, 1669, 23789, 28678, 445, 18855, 17, 497, 6330, 2273, 16, 75134, 2514, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTryCatch(t *testing.T) { if err := testTryCatch1(); err != nil { t.Log(err) } else { t.FailNow() } if err := testTryCatch2(); err != nil { t.Log(err) } else { t.FailNow() } var tc TryCatcher if err := tc.Catch(); err != nil { t.FailNow() } tc.Try(error(nil)) }
explode_data.jsonl/46784
{ "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, 21453, 57760, 1155, 353, 8840, 836, 8, 341, 743, 1848, 1669, 1273, 21453, 57760, 16, 2129, 1848, 961, 2092, 341, 197, 3244, 5247, 3964, 340, 197, 92, 770, 341, 197, 3244, 57243, 7039, 741, 197, 630, 743, 1848, 1669, 1273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMatFromPtr(t *testing.T) { mat := NewMatWithSize(101, 102, MatTypeCV8U) defer mat.Close() pmat, _ := mat.FromPtr(11, 12, MatTypeCV8U, 10, 10) defer pmat.Close() if pmat.Rows() != 11 { t.Errorf("Mat copy incorrect row count: %v\n", pmat.Rows()) } if pmat.Cols() != 12 { t.Errorf("Mat copy incorrect ...
explode_data.jsonl/81688
{ "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, 11575, 3830, 5348, 1155, 353, 8840, 836, 8, 341, 59874, 1669, 1532, 11575, 2354, 1695, 7, 16, 15, 16, 11, 220, 16, 15, 17, 11, 6867, 929, 19589, 23, 52, 340, 16867, 5517, 10421, 741, 3223, 8470, 11, 716, 1669, 5517, 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 TestGetHost(t *testing.T) { testCases := []struct { desc string expected string instanceInfo ecsInstance }{ { desc: "Default host should be 10.0.0.0", expected: "10.0.0.0", instanceInfo: simpleEcsInstance(map[string]*string{}), }, } for _, test := range testCases { ...
explode_data.jsonl/51268
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 219 }
[ 2830, 3393, 1949, 9296, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 41653, 260, 914, 198, 197, 42400, 257, 914, 198, 197, 56256, 1731, 78422, 2523, 198, 197, 59403, 197, 197, 515, 298, 41653, 25, 260, 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 TestContext2Plan_moduleProviderDefaultsVar(t *testing.T) { var l sync.Mutex var calls []string m := testModule(t, "plan-module-provider-defaults-var") ctx := testContext2(t, &ContextOpts{ Config: m, ProviderResolver: providers.ResolverFixed( map[string]providers.Factory{ "aws": func() (providers.In...
explode_data.jsonl/28653
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 819 }
[ 2830, 3393, 1972, 17, 20485, 10750, 5179, 16273, 3962, 1155, 353, 8840, 836, 8, 341, 2405, 326, 12811, 99014, 198, 2405, 6738, 3056, 917, 271, 2109, 1669, 1273, 3332, 1155, 11, 330, 10393, 46718, 81532, 13672, 82, 85415, 1138, 20985, 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...
3
func TestTaskSortByType(t *testing.T) { names := map[TaskSortByType]string{ SortTaskIDAsc: "TaskIDAsc", SortTaskIDDesc: "TaskIDDesc", SortTodoTextAsc: "TodoTextAsc", SortTodoTextDesc: "TodoTextDesc", SortPriorityAsc: "PriorityAsc", SortPriorityDesc: "PriorityDesc", So...
explode_data.jsonl/24860
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 429 }
[ 2830, 3393, 6262, 10231, 1359, 929, 1155, 353, 8840, 836, 8, 341, 93940, 1669, 2415, 58, 6262, 10231, 1359, 929, 30953, 515, 197, 7568, 371, 6262, 915, 40103, 25, 260, 330, 6262, 915, 40103, 756, 197, 7568, 371, 6262, 915, 11065, 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 TestCombineBase64Url(t *testing.T) { // creates a set of shares s := "nghiatcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" arr := []string{ "3yHo_uVUBRJJ8AiBL-3SS2OAFoe8A0lYF9PVsylFpfU=hFNCvpl0Vo9pESdgVuQs88bna5lMFgfVsixJEjT38EU=rnqFtyOaWu6ROU7LqegKRBG...
explode_data.jsonl/38124
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1903 }
[ 2830, 3393, 81114, 3978, 21, 19, 2864, 1155, 353, 8840, 836, 8, 341, 197, 322, 11450, 264, 738, 315, 13248, 198, 1903, 1669, 330, 77, 866, 10358, 66, 44102, 44102, 44102, 44102, 44102, 44102, 44102, 44102, 44102, 44102, 44102, 44102, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHashes(t *testing.T) { t.Parallel() cases := []struct { h Hash s string desc string }{ {ERC20Transfer, "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "ERC20 transfer"}, {ERC20Approve, "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", "ERC20 approve"...
explode_data.jsonl/80650
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 6370, 288, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1444, 2264, 1669, 3056, 1235, 341, 197, 9598, 262, 6531, 198, 197, 1903, 262, 914, 198, 197, 41653, 914, 198, 197, 59403, 197, 197, 90, 27434, 17, 15, 2197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVerifyAPIServerBindAddress(t *testing.T) { tests := []struct { name string address string expectedError bool }{ { name: "valid address: IPV4", address: "192.168.0.1", }, { name: "valid address: IPV6", address: "2001:db8:85a3::8a2e:370:7334", }, { name: ...
explode_data.jsonl/10227
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 595 }
[ 2830, 3393, 32627, 2537, 1637, 2836, 9950, 4286, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 688, 914, 198, 197, 63202, 981, 914, 198, 197, 42400, 1454, 1807, 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 TestSet_Parse(t *testing.T) { set := NewHTMLSet("./testData/resolve") var c int64 = 100 group := &sync.WaitGroup{} for i, l := int64(0), c; i < l; i++ { (func() { template, _ := set.Parse("TestTemplate", `{{extends "sub/extend"}}`) RunJetTestWithTemplate(t, template, nil, nil, "simple - simple.jet - ...
explode_data.jsonl/22908
{ "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, 1649, 77337, 1155, 353, 8840, 836, 8, 341, 8196, 1669, 1532, 5835, 1649, 13988, 1944, 1043, 14, 17325, 5130, 2405, 272, 526, 21, 19, 284, 220, 16, 15, 15, 271, 44260, 1669, 609, 12996, 28384, 2808, 16094, 2023, 600, 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...
1
func TestRenegotiateOnce(t *testing.T) { config := testConfig.clone() config.Renegotiation = RenegotiateOnceAsClient test := &clientTest{ name: "RenegotiateOnce", command: []string{"openssl", "s_server", "-state"}, config: config, numRenegotiations: 1, } runClientTestTLS...
explode_data.jsonl/32301
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 147 }
[ 2830, 3393, 34625, 65978, 6493, 12522, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 1273, 2648, 15997, 741, 25873, 2013, 268, 65978, 7101, 284, 13775, 65978, 6493, 12522, 2121, 2959, 271, 18185, 1669, 609, 2972, 2271, 515, 197, 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...
1
func TestCompositeEncodeDecode(t *testing.T) { raw := loadMetaDataTest(` { "V1": { "types": [ { "id": 0, "type": { "def": { "primitive": "u128" } } }, { "id": 1, "type": { "def": { "primitive": "bool" } } }, { "id": 2, "type": { "def": { "composite"...
explode_data.jsonl/78229
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 764 }
[ 2830, 3393, 41685, 32535, 32564, 1155, 353, 8840, 836, 8, 341, 76559, 1669, 2795, 37307, 2271, 61528, 515, 197, 1, 53, 16, 788, 341, 197, 197, 1, 9242, 788, 2278, 197, 197, 515, 298, 197, 28700, 788, 220, 15, 345, 298, 197, 44470, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildBodyFromFile(t *testing.T) { file, err := ioutil.TempFile("/tmp", "prefix") if err != nil { log.Fatal(err) } defer os.Remove(file.Name()) _, _ = file.WriteString("lorem content") s, _ := file.Stat() d := entity.Definition{ ResponseFile: s.Name(), } assert.Equal(t, []byte("lorem content"),...
explode_data.jsonl/68886
{ "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, 11066, 5444, 43633, 1155, 353, 8840, 836, 8, 341, 17661, 11, 1848, 1669, 43144, 65009, 1703, 4283, 5173, 497, 330, 11849, 1138, 743, 1848, 961, 2092, 341, 197, 6725, 26133, 3964, 340, 197, 532, 16867, 2643, 13270, 4866, 2967...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRouteMatch(t *testing.T) { defaultRoutes, err := ParseRoutes(DefaultRoutes) assert.NoError(t, err) assert.Len(t, defaultRoutes, 3) allWarningRoute := defaultRoutes[0] warningCheck := checks.AppCheck{ CheckName: "check-name", Result: checks.Warning, } warningCheckMatch := allWarningRoute.Match(wa...
explode_data.jsonl/42338
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 212 }
[ 2830, 3393, 4899, 8331, 1155, 353, 8840, 836, 8, 341, 11940, 26653, 11, 1848, 1669, 14775, 26653, 87874, 26653, 340, 6948, 35699, 1155, 11, 1848, 340, 6948, 65819, 1155, 11, 1638, 26653, 11, 220, 18, 692, 50960, 12087, 4899, 1669, 1638,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ExecuteDEL(t *testing.T) { cmd := &command{ action: DEL, key: "foo", } ds.Add("foo", "bar") got, err := cmd.Execute() want := "DELETED" if err != nil { t.Fatal(err) } if got != want { t.Errorf("%s = %q, want %q", got, want, want) } got = ds.Find("foo") want = "" if got != want { t...
explode_data.jsonl/79585
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 83453, 38332, 1155, 353, 8840, 836, 8, 341, 25920, 1669, 609, 5631, 515, 197, 38933, 25, 23777, 345, 197, 23634, 25, 262, 330, 7975, 756, 197, 630, 83336, 1904, 445, 7975, 497, 330, 2257, 5130, 3174, 354, 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...
4
func TestFacility(t *testing.T) { formatter := NewFormatter("[{L}] {M}") expect := formatter.Format(time.Now(), Info, "x") + "\n" bfr := bytes.NewBufferString("") bfr2 := bytes.NewBufferString("") log := NewFacility() // Test write log.PushHandler(NewHandler(bfr).SetFormatter(formatter)) log.PushHandler(NewHa...
explode_data.jsonl/57864
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 549 }
[ 2830, 3393, 28702, 1403, 1155, 353, 8840, 836, 8, 341, 197, 32941, 1669, 1532, 14183, 10937, 90, 43, 25439, 314, 44, 14451, 24952, 1669, 24814, 9978, 9730, 13244, 1507, 13074, 11, 330, 87, 899, 488, 2917, 77, 698, 2233, 1626, 1669, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCanceledLongRequest(t *testing.T) { // skip until flakiness will be fixed. t.SkipNow() ctx, cancel := context.WithCancel(context.Background()) srv := serve(func(conn conn) { var responses [3]*gremlin.Response for i := 0; i < len(responses); i++ { req, err := conn.ReadRequest() require.NoError(t, ...
explode_data.jsonl/9358
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 539 }
[ 2830, 3393, 63263, 6583, 1900, 1155, 353, 8840, 836, 8, 341, 197, 322, 10706, 3080, 1320, 585, 1880, 686, 387, 8356, 624, 3244, 57776, 7039, 741, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 1903, 10553, 1669, 8683, 1855...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseVolumeWithBindOptions(t *testing.T) { volume, err := parseVolume("/source:/target:slave") expected := types.ServiceVolumeConfig{ Type: "bind", Source: "/source", Target: "/target", Bind: &types.ServiceVolumeBind{Propagation: "slave"}, } assert.NoError(t, err) assert.Equal(t, expected, vol...
explode_data.jsonl/70099
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 118 }
[ 2830, 3393, 14463, 18902, 2354, 9950, 3798, 1155, 353, 8840, 836, 8, 341, 5195, 4661, 11, 1848, 1669, 4715, 18902, 4283, 2427, 14375, 5657, 25, 52505, 1138, 42400, 1669, 4494, 13860, 18902, 2648, 515, 197, 27725, 25, 256, 330, 7666, 756...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHttp_configsSettingHeaders(t *testing.T) { http := HttpModForTests() config := new(config.Http) // Assign config vars config.Send_headers = []string{"a", "b", "c"} // Set config http.SetFromConfig(*config) // Check if http config is set correctly assert.True(t, http.Send_headers) assert.Equal(t, l...
explode_data.jsonl/6853
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 2905, 59150, 15400, 10574, 1155, 353, 8840, 836, 8, 1476, 28080, 1669, 4823, 4459, 2461, 18200, 741, 25873, 1669, 501, 8754, 9524, 692, 197, 322, 31639, 2193, 19942, 198, 25873, 20176, 26719, 284, 3056, 917, 4913, 64, 497, 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 TestTenancyUserProcess(t *testing.T) { auth, _ := base.TenancyWithLoginTester(t) defer base.BaseLogOut(auth) obj := auth.POST("v1/merchant/user/registerAdmin"). WithJSON(map[string]interface{}{"username": "admin1111", "password": "123456", "ConfirmPassword": "123456", "authorityId": []string{source.TenancyAut...
explode_data.jsonl/29883
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1112 }
[ 2830, 3393, 32687, 6572, 1474, 7423, 1155, 353, 8840, 836, 8, 341, 78011, 11, 716, 1669, 2331, 836, 268, 6572, 2354, 6231, 58699, 1155, 340, 16867, 2331, 13018, 2201, 2662, 27435, 340, 22671, 1669, 4166, 14721, 445, 85, 16, 14, 39011, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGaussianBadSigma(t *testing.T) { _, err := window.NewGaussian(0.51) assert.Error(t, err) _, err = window.NewGaussian(-0.01) assert.Error(t, err) }
explode_data.jsonl/52499
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 38, 46972, 17082, 62016, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 3241, 7121, 38, 46972, 7, 15, 13, 20, 16, 340, 6948, 6141, 1155, 11, 1848, 692, 197, 6878, 1848, 284, 3241, 7121, 38, 46972, 4080, 15, 13, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSmallSegReceiveWindowAdvertisement(t *testing.T) { c := context.New(t, defaultMTU) defer c.Cleanup() opt := tcpip.TCPReceiveBufferSizeRangeOption{ Min: 1, Default: tcp.DefaultReceiveBufferSize, Max: tcp.DefaultReceiveBufferSize << tcp.FindWndScale(seqnum.Size(tcp.DefaultReceiveBufferSize)), ...
explode_data.jsonl/75954
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1032 }
[ 2830, 3393, 25307, 10998, 14742, 4267, 13582, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2266, 7121, 1155, 11, 1638, 8505, 52, 340, 16867, 272, 727, 60639, 2822, 64838, 1669, 28051, 573, 836, 7123, 14742, 52661, 6046, 5341, 515, 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 TestPartitionByRepo(t *testing.T) { var testCases = []struct { name string input filenameToConfig output ByOrgRepo }{ { name: "no input", input: filenameToConfig{}, output: ByOrgRepo{}, }, { name: "complex input", input: filenameToConfig{ "a": api.ReleaseBuildConfiguration{Me...
explode_data.jsonl/281
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1140 }
[ 2830, 3393, 49978, 1359, 25243, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 37302, 284, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 22427, 220, 3899, 1249, 2648, 198, 197, 21170, 3216, 42437, 25243, 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...
5
func TestNewGenerateCmd(t *testing.T) { t.Parallel() command := newGenerateCmd() if command.Use != generateName || command.Short != generateShortDescription || command.Long != generateLongDescription { t.Fatalf("generate command should have use %s equal %s, short %s equal %s and long %s equal to %s", command.Use,...
explode_data.jsonl/58942
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 279 }
[ 2830, 3393, 3564, 31115, 15613, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 45566, 1669, 501, 31115, 15613, 741, 743, 3210, 9046, 961, 6923, 675, 1369, 3210, 55958, 961, 6923, 12472, 5009, 1369, 3210, 41811, 961, 6923, 6583, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConditionRuleInitErrorPropagates(t *testing.T) { testErr := errors.New("test") filter, err := NewConditional(func(_ *common.Config) (Processor, error) { return nil, testErr })(common.NewConfig()) assert.Equal(t, testErr, err) assert.Nil(t, filter) }
explode_data.jsonl/21722
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 99 }
[ 2830, 3393, 10547, 11337, 3803, 1454, 2008, 351, 973, 1155, 353, 8840, 836, 8, 341, 18185, 7747, 1669, 5975, 7121, 445, 1944, 1138, 50108, 11, 1848, 1669, 1532, 79233, 18552, 2490, 353, 5464, 10753, 8, 320, 22946, 11, 1465, 8, 341, 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...
1
func TestMapProxy_RemoveIfSameWithNilValue(t *testing.T) { _, err := mp.RemoveIfSame("test", nil) AssertErrorNotNil(t, err, "remove did not return an error for nil key") mp.Clear() }
explode_data.jsonl/56971
{ "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, 2227, 16219, 66843, 2679, 19198, 2354, 19064, 1130, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 10490, 13270, 2679, 19198, 445, 1944, 497, 2092, 340, 18017, 1454, 96144, 1155, 11, 1848, 11, 330, 5399, 1521, 537, 470...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProtoToJson(t *testing.T) { r := &Reply{} b, err := json.Marshal(r) assert.Nil(t, err) assert.Equal(t, b, []byte(`{}`)) encode := &jsonpb.Marshaler{EmitDefaults: true} s, err := encode.MarshalToString(r) assert.Nil(t, err) assert.Equal(t, s, `{"isOk":false,"msg":null}`) var dr Reply err = jsonpb.Unm...
explode_data.jsonl/58321
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 861 }
[ 2830, 3393, 31549, 78967, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 609, 20841, 16094, 2233, 11, 1848, 1669, 2951, 37271, 2601, 340, 6948, 59678, 1155, 11, 1848, 340, 6948, 12808, 1155, 11, 293, 11, 3056, 3782, 5809, 90, 5541, 4390, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNoArmoredData(t *testing.T) { _, err := ReadArmoredKeyRing(bytes.NewBufferString("foo")) if _, ok := err.(errors.InvalidArgumentError); !ok { t.Errorf("error was not an InvalidArgumentError: %s", err) } }
explode_data.jsonl/2291
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 2753, 32913, 3018, 1043, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 4457, 32913, 3018, 1592, 43466, 23158, 7121, 4095, 703, 445, 7975, 5455, 743, 8358, 5394, 1669, 1848, 12832, 7650, 48144, 9171, 1454, 1215, 753, 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 ]
2
func TestKymaSubcommands(t *testing.T) { t.Parallel() c := NewCmd(&cli.Options{}) c.SetOutput(ioutil.Discard) // not interested in the command's output // test default flag values require.NoError(t, c.Execute(), "Command execution must not fail") sub := c.Commands() require.Equal(t, 18, len(sub), "Number of K...
explode_data.jsonl/19897
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 42, 1600, 64, 3136, 24270, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1444, 1669, 1532, 15613, 2099, 19521, 22179, 37790, 1444, 4202, 5097, 1956, 30158, 909, 47560, 8, 442, 537, 8014, 304, 279, 3210, 594, 2550, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReplicaSet_IsScaledDown_OneMember_AtATime_WhenItAlreadyExists(t *testing.T) { mdb := newTestReplicaSet() mdb.Spec.Members = 5 mgr := client.NewManager(&mdb) r := NewReconciler(mgr) res, err := r.Reconcile(context.TODO(), reconcile.Request{NamespacedName: types.NamespacedName{Namespace: mdb.Namespace, Nam...
explode_data.jsonl/80685
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 565 }
[ 2830, 3393, 18327, 15317, 1649, 31879, 94201, 4454, 68201, 9366, 55581, 828, 545, 62, 4498, 2132, 38370, 15575, 1155, 353, 8840, 836, 8, 341, 2109, 1999, 1669, 501, 2271, 18327, 15317, 1649, 741, 2109, 1999, 36473, 91758, 284, 220, 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...
1
func TestServerDialogue(t *testing.T) { ip := []byte{127, 0, 0, 1} server := newDHCPTestServer("", ip, ip, 8067, 8068) if server == nil { t.Fatalf("failed to start DHCP test server") } if err := simpleServerExchange(server); err != nil { t.Fatalf("test failed with error: %v", err) } }
explode_data.jsonl/52174
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 112 }
[ 2830, 3393, 5475, 82890, 1155, 353, 8840, 836, 8, 341, 46531, 1669, 3056, 3782, 90, 16, 17, 22, 11, 220, 15, 11, 220, 15, 11, 220, 16, 532, 41057, 1669, 501, 51326, 7123, 2271, 5475, 19814, 5997, 11, 5997, 11, 220, 23, 15, 21, 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...
3
func TestSearch__fedachCityOnlySearchRequest(t *testing.T) { u, _ := url.Parse("https://moov.io/fed/ach/search?city=CALDWELL") req := readFEDSearchRequest(u) if req.City != "CALDWELL" { t.Errorf("req.City=%s", req.City) } if !req.cityOnly() { t.Errorf("req is not city only") } }
explode_data.jsonl/71088
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 5890, 563, 51123, 610, 12730, 7308, 5890, 1900, 1155, 353, 8840, 836, 8, 341, 10676, 11, 716, 1669, 2515, 8937, 445, 2428, 1110, 6355, 859, 4245, 6663, 291, 14, 610, 23167, 30, 8926, 40917, 969, 54219, 19114, 1138, 24395, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestH12_FlushMidBody(t *testing.T) { h12Compare{Handler: func(w ResponseWriter, r *Request) { io.WriteString(w, "foo") w.(Flusher).Flush() io.WriteString(w, "bar") }}.run(t) }
explode_data.jsonl/4746
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 39, 16, 17, 1400, 34604, 33648, 5444, 1155, 353, 8840, 836, 8, 341, 9598, 16, 17, 27374, 90, 3050, 25, 2915, 3622, 5949, 6492, 11, 435, 353, 1900, 8, 341, 197, 53112, 44747, 3622, 11, 330, 7975, 1138, 197, 6692, 12832, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShouldTimeIntervalsMakeSense(t *testing.T) { assert.Equal(t, Hour, time.Minute*60) assert.Equal(t, Day, Hour*24) assert.Equal(t, Week, Day*7) assert.Equal(t, Year, Day*365) assert.Equal(t, Month, Year/12) }
explode_data.jsonl/12155
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 14996, 1462, 1072, 42198, 8078, 61009, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 30833, 11, 882, 75770, 9, 21, 15, 340, 6948, 12808, 1155, 11, 6059, 11, 30833, 9, 17, 19, 340, 6948, 12808, 1155, 11, 10348, 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...
1
func TestStateFullRound2(t *testing.T) { config := configSetup(t) ctx, cancel := context.WithCancel(context.Background()) defer cancel() cs1, vss := makeState(ctx, t, makeStateArgs{config: config, validators: 2}) vs2 := vss[1] height, round := cs1.Height, cs1.Round voteCh := subscribe(ctx, t, cs1.eventBus, typ...
explode_data.jsonl/54263
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 485 }
[ 2830, 3393, 1397, 9432, 27497, 17, 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, 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...
1
func TestPostRequest(t *testing.T) { setupServer() defer teardownServer() setupDefaultMux(`"body"`) var req = URL("http://example.com/url") if err := req.Post(); err != nil { t.Error(err) } assertTextualBody(t, `"body"`, req.Response.Body) assertMethod(t, "POST", req.Request.Method) }
explode_data.jsonl/24762
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 117 }
[ 2830, 3393, 4133, 1900, 1155, 353, 8840, 836, 8, 341, 84571, 5475, 741, 16867, 49304, 5475, 741, 84571, 3675, 44, 2200, 5809, 1, 2599, 39917, 692, 2405, 4232, 284, 5548, 445, 1254, 1110, 8687, 905, 57254, 5130, 743, 1848, 1669, 4232, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestK8SServiceVolumeSecretAddsVolumeAndVolumeMountToPod(t *testing.T) { t.Parallel() deployment := renderK8SServiceDeploymentWithSetValues( t, map[string]string{ "secrets.dbsettings.as": "volume", "secrets.dbsettings.mountPath": "/etc/db", }, ) // Verify that there is only one container an...
explode_data.jsonl/59761
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 380 }
[ 2830, 3393, 42, 23, 1220, 1017, 18902, 19773, 72111, 18902, 3036, 18902, 16284, 1249, 23527, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 82213, 1669, 3141, 42, 23, 1220, 1017, 75286, 2354, 1649, 6227, 1006, 197, 3244, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAPITimeMarshalJSON(t *testing.T) { var ( when = time.Now() subject = factory.NewAPITime(when) expected = []byte(when.Format(fmt.Sprintf(`"%s"`, time.RFC3339Nano))) ) actual, err := json.Marshal(&subject) if err != nil { t.Fatal(err) } if !bytes.Equal(actual, expected) { t.Errorf("expected ...
explode_data.jsonl/19473
{ "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, 2537, 952, 545, 55438, 5370, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 60180, 257, 284, 882, 13244, 741, 197, 28624, 583, 220, 284, 8633, 7121, 2537, 952, 545, 7, 9309, 340, 197, 42400, 284, 3056, 3782, 7, 9309, 997...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAnnotations(t *testing.T) { sourceFile, err := ioutil.ReadFile("testdata/annotations/annotations.pb.go") if err != nil { t.Fatal(err) } metaFile, err := ioutil.ReadFile("testdata/annotations/annotations.pb.go.meta") if err != nil { t.Fatal(err) } gotInfo := &descriptorpb.GeneratedCodeInfo{} if err ...
explode_data.jsonl/52311
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 856 }
[ 2830, 3393, 21418, 1155, 353, 8840, 836, 8, 341, 47418, 1703, 11, 1848, 1669, 43144, 78976, 445, 92425, 14, 39626, 14, 39626, 37916, 18002, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 84004, 1703, 11, 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...
7
func TestComputeSplitKeyTableIDs(t *testing.T) { defer leaktest.AfterTest(t)() const ( start = keys.MinUserDescID reservedStart = keys.MaxSystemConfigDescID + 1 ) // Used in place of roachpb.RKeyMin in order to test the behavior of splits // at the start of the system config and user tables rather th...
explode_data.jsonl/25324
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2053 }
[ 2830, 3393, 46254, 20193, 1592, 2556, 30466, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 4777, 2399, 197, 21375, 260, 284, 6894, 17070, 1474, 11065, 915, 198, 197, 10202, 2771, 3479, 284, 6894, 14535, 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...
3
func TestDetect(t *testing.T) { tests := []struct { name string mockString []string mockError error expectLang language.Tag expectError error }{ { "normal", []string{"en-US"}, nil, language.AmericanEnglish, nil, }, { "not detected", []string(nil), ErrNotDetected, ...
explode_data.jsonl/80092
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 345 }
[ 2830, 3393, 57193, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 77333, 703, 220, 3056, 917, 198, 197, 77333, 1454, 256, 1465, 198, 197, 24952, 26223, 220, 4128, 23676, 198, 197, 24952, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPolicyTransportScopesUnmarshalJSON(t *testing.T) { // Start with a valid JSON. validPTS := PolicyTransportScopes{ "": []PolicyRequirement{ xNewPRSignedByKeyData(SBKeyTypeGPGKeys, []byte("global"), NewPRMMatchRepoDigestOrExact()), }, } // Nothing can be unmarshaled directly into PolicyTransportScope...
explode_data.jsonl/36494
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 13825, 27560, 3326, 18523, 1806, 27121, 5370, 1155, 353, 8840, 836, 8, 341, 197, 322, 5145, 448, 264, 2697, 4718, 624, 56322, 73693, 1669, 10974, 27560, 3326, 18523, 515, 197, 197, 28796, 3056, 13825, 75802, 515, 298, 10225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLog_GlobalLogger_Save(t *testing.T) { assert.NotNil(t, GlobalLogger()) // ensure initialization restoreFn := SaveGlobalLoggerAndFilter(true) level := GlobalLogger().Copy().GetLogLevel() filter := GetGlobalLevelFilter() if level != insolar.PanicLevel { SetLogLevel(level + 1) } else { SetLogLevel(ins...
explode_data.jsonl/40297
{ "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, 2201, 93132, 7395, 78746, 1155, 353, 8840, 836, 8, 341, 6948, 93882, 1155, 11, 7962, 7395, 2140, 442, 5978, 17465, 271, 96027, 24911, 1669, 10255, 11646, 7395, 3036, 5632, 3715, 340, 53743, 1669, 7962, 7395, 1005, 12106, 1005,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunStatusLogQuery(t *testing.T) { t.Parallel() bg := context.Background() expected := mustExpandTick(` SELECT BUILDS.infra.swarming.task_id AS swarming_id, BUILDS.id AS bbid, JSON_EXTRACT_SCALAR(BUILDS.output.properties, r"$.compressed_result") AS bb_output_properties, FROM {{$tick}}cr-buildbucket.c...
explode_data.jsonl/28495
{ "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, 6727, 2522, 2201, 2859, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 76131, 1669, 2266, 19047, 741, 42400, 1669, 1969, 38946, 22213, 61528, 4858, 198, 220, 425, 9776, 5936, 30957, 956, 3064, 32902, 15034, 842, 5752, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFloat32(t *testing.T) { if Float32(float32(0), float32(1)) { t.Fatalf("desc.TestFloat32 failed: %v\n", greaterThanErr) } }
explode_data.jsonl/78911
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 60 }
[ 2830, 3393, 5442, 18, 17, 1155, 353, 8840, 836, 8, 341, 743, 13001, 18, 17, 8268, 18, 17, 7, 15, 701, 2224, 18, 17, 7, 16, 593, 341, 197, 3244, 30762, 445, 8614, 8787, 5442, 18, 17, 4641, 25, 1018, 85, 1699, 497, 7046, 26067, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBoldColors(t *testing.T) { assert.Equal(t, fabenc.ColorBlack.Bold(), "\x1b[30;1m") assert.Equal(t, fabenc.ColorRed.Bold(), "\x1b[31;1m") assert.Equal(t, fabenc.ColorGreen.Bold(), "\x1b[32;1m") assert.Equal(t, fabenc.ColorYellow.Bold(), "\x1b[33;1m") assert.Equal(t, fabenc.ColorBlue.Bold(), "\x1b[34;1m") ...
explode_data.jsonl/8422
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 242 }
[ 2830, 3393, 42800, 13108, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 9570, 954, 6669, 14417, 20080, 1507, 2917, 87, 16, 65, 58, 18, 15, 26, 16, 76, 1138, 6948, 12808, 1155, 11, 9570, 954, 6669, 6033, 20080, 1507, 2917, 87,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_MemoryStore_Reset(t *testing.T) { m := NewMemoryStore() m.Open() pm := newPublishMsg(QOS_TWO, "/f/r/s", []byte{0xAB}) pm.setMsgId(81) key := obound_mid2key(pm.MsgId()) m.Put(key, pm) if len(m.messages) != 1 { t.Fatalf("message not in memstore") } m.Reset() if len(m.messages) != 0 { t.Fatalf...
explode_data.jsonl/37294
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 1245, 4731, 6093, 67771, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1532, 10642, 6093, 741, 2109, 12953, 2822, 86511, 1669, 501, 50145, 6611, 6253, 3126, 73892, 11, 3521, 69, 7382, 2687, 497, 3056, 3782, 90, 15, 78146, 3518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewTriangular(t *testing.T) { t.Parallel() for i, test := range []struct { data []float64 n int kind TriKind mat *TriDense }{ { data: []float64{ 1, 2, 3, 4, 5, 6, 7, 8, 9, }, n: 3, kind: Upper, mat: &TriDense{ mat: blas64.Triangular{ N: 3, Strid...
explode_data.jsonl/25855
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 577 }
[ 2830, 3393, 3564, 21884, 4234, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 600, 11, 1273, 1669, 2088, 3056, 1235, 341, 197, 8924, 3056, 3649, 21, 19, 198, 197, 9038, 262, 526, 198, 197, 197, 15314, 12359, 10629, 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
func TestGetLogicSchema(t *testing.T) { log.InitLoggerConsole() db, err := common.ConnectClickHouse("192.168.21.73", 9000, "default", "ck", "123456") assert.Nil(t, err) sqls, err := GetLogicSchema(db, "bench", "shanghai", true) assert.Nil(t, err) fmt.Printf("sqls:%#v\n", sqls) }
explode_data.jsonl/64496
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 125 }
[ 2830, 3393, 1949, 26751, 8632, 1155, 353, 8840, 836, 8, 341, 6725, 26849, 7395, 12372, 741, 20939, 11, 1848, 1669, 4185, 43851, 2612, 28607, 445, 16, 24, 17, 13, 16, 21, 23, 13, 17, 16, 13, 22, 18, 497, 220, 24, 15, 15, 15, 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...
1