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 TestTemplateDir(t *testing.T) { // When Path has no "/"s. tpl := Template{Path: "test.gold"} if tpl.Dir() != "./" { t.Errorf("Dir return value is invalid.") } // When Path has a "/". tpl = Template{Path: "./test.gold"} if tpl.Dir() != "./" { t.Errorf("Dir return value is invalid.") } // When Path ha...
explode_data.jsonl/74604
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 181 }
[ 2830, 3393, 7275, 6184, 1155, 353, 8840, 836, 8, 341, 197, 322, 3197, 7933, 702, 902, 16891, 82, 624, 3244, 500, 1669, 14355, 90, 1820, 25, 330, 1944, 92960, 16707, 743, 60979, 83757, 368, 961, 5924, 1, 341, 197, 3244, 13080, 445, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestLoad(t *testing.T) { actual, err := Load(buildConfigDetails(sampleDict)) if !assert.NoError(t, err) { return } assert.Equal(t, serviceSort(sampleConfig.Services), serviceSort(actual.Services)) assert.Equal(t, sampleConfig.Networks, actual.Networks) assert.Equal(t, sampleConfig.Volumes, actual.Volumes) ...
explode_data.jsonl/16378
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 5879, 1155, 353, 8840, 836, 8, 341, 88814, 11, 1848, 1669, 8893, 43333, 2648, 7799, 32968, 13448, 1171, 743, 753, 2207, 35699, 1155, 11, 1848, 8, 341, 197, 853, 198, 197, 532, 6948, 12808, 1155, 11, 2473, 10231, 32968, 264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestUpdate(t *testing.T) { LTCUSDPAIR := currency.NewPairFromString("LTCUSD") BTCUSDPAIR := currency.NewPairFromString("BTCUSD") bidTargets := []orderbook.Item{ {Price: 49, Amount: 24}, // Amend {Price: 48, Amount: 0}, // Delete {Price: 1337, Amount: 100}, // Append {Price: 1336, Amount: 0}, /...
explode_data.jsonl/29306
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 650 }
[ 2830, 3393, 4289, 1155, 353, 8840, 836, 8, 341, 15070, 7749, 26749, 82966, 1669, 11413, 7121, 12443, 44491, 445, 43, 7749, 26749, 1138, 12791, 7749, 26749, 82966, 1669, 11413, 7121, 12443, 44491, 445, 59118, 26749, 5130, 2233, 307, 49030, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNodeInfoAddPodWithMultiTenancy(t *testing.T) { nodeName := "test-node" pods := []*v1.Pod{ { ObjectMeta: metav1.ObjectMeta{ Tenant: "test-te", Namespace: "node_info_cache_test", Name: "test-1", UID: types.UID("test-1"), }, Spec: v1.PodSpec{ Containers: []v1.Contain...
explode_data.jsonl/20560
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2417 }
[ 2830, 3393, 1955, 1731, 2212, 23527, 2354, 20358, 32687, 6572, 1155, 353, 8840, 836, 8, 341, 20831, 675, 1669, 330, 1944, 39054, 698, 3223, 29697, 1669, 29838, 85, 16, 88823, 515, 197, 197, 515, 298, 23816, 12175, 25, 77520, 16, 80222, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDefaultRoute(t *testing.T) { var ( weight int32 = 100 ) type args struct { cr *operatorv1.Console } tests := []struct { name string args args want *routev1.Route }{ { name: "Test default route", args: args{ cr: &operatorv1.Console{ TypeMeta: metav1.TypeMeta{}, ObjectMeta...
explode_data.jsonl/62119
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1277 }
[ 2830, 3393, 3675, 4899, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 197, 4765, 526, 18, 17, 284, 220, 16, 15, 15, 198, 197, 340, 13158, 2827, 2036, 341, 197, 91492, 353, 7884, 85, 16, 46298, 198, 197, 532, 78216, 1669, 3056, 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...
2
func TestBool_Encode(t *testing.T) { assertEncode(t, []encodingAssert{ {NewBool(true), []byte{0x01}}, {NewBool(false), []byte{0x00}}, }) }
explode_data.jsonl/66066
{ "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, 11233, 93529, 534, 1155, 353, 8840, 836, 8, 341, 6948, 32535, 1155, 11, 3056, 17159, 8534, 515, 197, 197, 90, 3564, 11233, 3715, 701, 3056, 3782, 90, 15, 87, 15, 16, 22050, 197, 197, 90, 3564, 11233, 3576, 701, 3056, 378...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadBalancerRun(t *testing.T) { cloud := NewMockAzureCloud("eastus") ctx := &fi.Context{ Cloud: cloud, Target: azure.NewAzureAPITarget(cloud), } lb := newTestLoadBalancer() err := lb.Run(ctx) if err != nil { t.Fatalf("unexpected error: %s", err) } e := map[string]*string{ azure.TagClusterName...
explode_data.jsonl/767
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 226 }
[ 2830, 3393, 5879, 93825, 6727, 1155, 353, 8840, 836, 8, 341, 197, 12361, 1669, 1532, 11571, 78107, 16055, 445, 60501, 355, 1138, 20985, 1669, 609, 9983, 9328, 515, 197, 197, 16055, 25, 220, 9437, 345, 197, 197, 6397, 25, 76530, 7121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDetectPkgManager(t *testing.T) { d := Detector{} result, err := d.DetectPkgManager("", "", "") // parameters only matter for linux assert.NoError(t, err) assert.Equal(t, c.PackageManagerMac, result) }
explode_data.jsonl/37619
{ "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, 57193, 47, 7351, 2043, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 79019, 16094, 9559, 11, 1848, 1669, 294, 909, 13176, 47, 7351, 2043, 19814, 7342, 11700, 442, 5029, 1172, 4925, 369, 36245, 271, 6948, 35699, 1155, 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
func TestAddAnswerOption(t *testing.T) { assert := assert.New(t) t.Run("all fine", func(t *testing.T) { p := testutils.GetPollWithVotes() err := p.AddAnswerOption("new option") assert.Nil(err) assert.Equal("new option", p.AnswerOptions[len(p.AnswerOptions)-1].Answer) }) t.Run("dublicant options", func(t *...
explode_data.jsonl/30284
{ "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, 2212, 16141, 5341, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 3244, 16708, 445, 541, 6915, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3223, 1669, 1273, 6031, 2234, 49207, 2354, 75535, 2822, 197, 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 TestBuildVirtualHostStub(t *testing.T) { testCases := []struct { name string namePrefix string host string domains []string expectedName string }{ { name: "inbound virtual host", namePrefix: inboundVirtualHost, host: httpHostHeaderKey, domains: ...
explode_data.jsonl/75512
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 403 }
[ 2830, 3393, 11066, 33026, 9296, 33838, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 11609, 14335, 256, 914, 198, 197, 63104, 260, 914, 198, 197, 2698, 316, 1735, 414, 3056, 917, 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 TestDescribeConsumerGroup(t *testing.T) { seedBroker := NewMockBroker(t, 1) defer seedBroker.Close() expectedGroupID := "my-group" seedBroker.SetHandlerByMap(map[string]MockResponse{ "DescribeGroupsRequest": NewMockDescribeGroupsResponse(t).AddGroupDescription(expectedGroupID, &GroupDescription{ GroupId...
explode_data.jsonl/40804
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 436 }
[ 2830, 3393, 74785, 29968, 2808, 1155, 353, 8840, 836, 8, 341, 197, 22602, 65545, 1669, 1532, 11571, 65545, 1155, 11, 220, 16, 340, 16867, 10320, 65545, 10421, 2822, 42400, 2808, 915, 1669, 330, 2408, 4351, 1837, 197, 22602, 65545, 4202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCLIQueryConn(t *testing.T) { cfg := network.DefaultConfig() cfg.NumValidators = 1 n := network.New(t, cfg) defer n.Cleanup() testClient := testdata.NewQueryClient(n.Validators[0].ClientCtx) res, err := testClient.Echo(context.Background(), &testdata.EchoRequest{Message: "hello"}) require.NoError(t, er...
explode_data.jsonl/30381
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 136 }
[ 2830, 3393, 63959, 2859, 9701, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 3922, 13275, 2648, 741, 50286, 39847, 31748, 284, 220, 16, 271, 9038, 1669, 3922, 7121, 1155, 11, 13286, 340, 16867, 308, 727, 60639, 2822, 18185, 2959, 1669, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMetadataV10_Decode(t *testing.T) { metadata := NewMetadataV10() err := DecodeFromBytes(MustHexDecodeString(ExamplaryMetadataV10String), metadata) assert.NoError(t, err) assert.Equal(t, *ExamplaryMetadataV10, *metadata) }
explode_data.jsonl/59408
{ "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, 14610, 53, 16, 15, 78668, 534, 1155, 353, 8840, 836, 8, 341, 2109, 7603, 1669, 1532, 14610, 53, 16, 15, 2822, 9859, 1669, 50194, 3830, 7078, 3189, 590, 20335, 32564, 703, 7, 66694, 500, 658, 14610, 53, 16, 15, 703, 701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOTLPGRPCAuth(t *testing.T) { systemtest.CleanupElasticsearch(t) srv := apmservertest.NewUnstartedServer(t) srv.Config.SecretToken = "abc123" err := srv.Start() require.NoError(t, err) ctx, cancel := context.WithCancel(context.Background()) defer cancel() err = sendOTLPTrace(ctx, srv, sdktrace.Config{...
explode_data.jsonl/41681
{ "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, 1793, 12567, 8626, 4872, 5087, 1155, 353, 8840, 836, 8, 341, 40293, 1944, 727, 60639, 36, 51179, 1836, 1155, 340, 1903, 10553, 1669, 1443, 76, 799, 1621, 477, 7121, 1806, 46723, 5475, 1155, 340, 1903, 10553, 10753, 74779, 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...
1
func TestConfig_normalizeAddrs_DevMode(t *testing.T) { // allow to advertise 127.0.0.1 if dev-mode is enabled c := &Config{ BindAddr: "127.0.0.1", Ports: &Ports{ HTTP: 4646, RPC: 4647, Serf: 4648, }, Addresses: &Addresses{}, AdvertiseAddrs: &AdvertiseAddrs{}, DevMode: true, } if e...
explode_data.jsonl/76937
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 638 }
[ 2830, 3393, 2648, 80807, 2212, 5428, 1557, 5120, 3636, 1155, 353, 8840, 836, 8, 341, 197, 322, 2138, 311, 50836, 220, 16, 17, 22, 13, 15, 13, 15, 13, 16, 421, 3483, 14982, 374, 8970, 198, 1444, 1669, 609, 2648, 515, 197, 197, 9950...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContext2Plan_moduleProviderVar(t *testing.T) { m := testModule(t, "plan-module-provider-var") p := testProvider("aws") p.GetSchemaReturn = &ProviderSchema{ Provider: &configschema.Block{ Attributes: map[string]*configschema.Attribute{ "value": {Type: cty.String, Optional: true}, }, }, Resour...
explode_data.jsonl/28654
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 603 }
[ 2830, 3393, 1972, 17, 20485, 10750, 5179, 3962, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1273, 3332, 1155, 11, 330, 10393, 46718, 81532, 85415, 1138, 3223, 1669, 1273, 5179, 445, 8635, 1138, 3223, 2234, 8632, 5598, 284, 609, 5179, 8632...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestAddressUnmarshalJSON(t *testing.T) { var tests = []struct { Input string ShouldErr bool Output *big.Int }{ {"", true, nil}, {`""`, true, nil}, {`"0x"`, true, nil}, {`"0x00"`, true, nil}, {`"0xG000000000000000000000000000000000000000"`, true, nil}, {`"0x0000000000000000000000000000000...
explode_data.jsonl/35496
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 368 }
[ 2830, 3393, 4286, 1806, 27121, 5370, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 66588, 257, 914, 198, 197, 197, 14996, 7747, 1807, 198, 197, 80487, 262, 353, 16154, 7371, 198, 197, 59403, 197, 197, 4913, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestWithTargetURLsInvalid(t *testing.T) { ctx := setupTestContext("test", "Org1MSP") opt := WithTargetEndpoints("invalid") mockConfig := &fcmocks.MockConfig{} oConfig := &fab.PeerConfig{ URL: "127.0.0.1:7050", } mockConfig.SetCustomPeerCfg(oConfig) ctx.SetEndpointConfig(mockConfig) opts := requestOpt...
explode_data.jsonl/64977
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 164 }
[ 2830, 3393, 2354, 6397, 3144, 82, 7928, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 6505, 2271, 1972, 445, 1944, 497, 330, 42437, 16, 44, 4592, 1138, 64838, 1669, 3085, 6397, 80786, 445, 11808, 5130, 77333, 2648, 1669, 609, 69, 6226, 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...
1
func TestParse(t *testing.T) { tests := []struct { name string value string want time.Time }{ { "empty value", "", time.Time{}, }, { "2012-11-22 21:28:10 +0000 +0000", "2012-11-22 21:28:10 +0000 +0000", time.Date(2012, 11, 22, 21, 28, 10, 0, time.UTC), }, { "2012-11-22 +0000 +00...
explode_data.jsonl/45312
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 415 }
[ 2830, 3393, 14463, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 16309, 914, 198, 197, 50780, 220, 882, 16299, 198, 197, 59403, 197, 197, 515, 298, 197, 1, 3194, 897, 756, 298, 197, 3968...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseStmts(t *testing.T) { t.Parallel() p := NewParser() inReader, inWriter := io.Pipe() recv := make(chan bool, 10) errc := make(chan error, 1) go func() { errc <- p.Stmts(inReader, func(s *Stmt) bool { recv <- true return true }) }() io.WriteString(inWriter, "foo\n") <-recv io.WriteString...
explode_data.jsonl/55127
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 14463, 31063, 82, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3223, 1669, 1532, 6570, 741, 17430, 5062, 11, 304, 6492, 1669, 6399, 1069, 3444, 741, 197, 33977, 1669, 1281, 35190, 1807, 11, 220, 16, 15, 340, 9859,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStandardCheckMtric(t *testing.T) { v := errCheck.Metric() if v.Status != check.Success { t.Errorf("Wrong status: %d", v.Status) } if v.Output != fmt.Sprintf("err 2.900000 %d", time.Now().Unix()) { t.Errorf("Wrong message: %s", v.Output) } }
explode_data.jsonl/49833
{ "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, 19781, 3973, 44, 376, 292, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 1848, 3973, 1321, 16340, 2822, 743, 348, 10538, 961, 1779, 33320, 341, 197, 3244, 13080, 445, 29185, 2639, 25, 1018, 67, 497, 348, 10538, 340, 197, 630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestForPhraseUDT4(t *testing.T) { gopClTest(t, ` type fooIter struct { data *foo idx int } func (p *fooIter) Next() (key int, val string, ok bool) { if p.idx < len(p.data.key) { key, val, ok = p.data.key[p.idx], p.data.val[p.idx], true p.idx++ } return } type foo struct { key []int val []string } f...
explode_data.jsonl/73644
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 545 }
[ 2830, 3393, 2461, 46806, 4656, 51, 19, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 1313, 15229, 8537, 2036, 341, 8924, 353, 7975, 198, 62077, 220, 526, 198, 630, 2830, 320, 79, 353, 7975, 8537, 8, 9295, 368...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTextUnmarshalersError(t *testing.T) { type config struct { Unmarshalers []unmarshaler `env:"UNMARSHALERS"` } os.Setenv("UNMARSHALERS", "1s,invalid") cfg := &config{} assert.EqualError(t, Parse(cfg), "env: parse error on field \"Unmarshalers\" of type \"[]env.unmarshaler\": time: invalid duration invalid...
explode_data.jsonl/78797
{ "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, 1178, 1806, 27121, 388, 1454, 1155, 353, 8840, 836, 8, 341, 13158, 2193, 2036, 341, 197, 197, 1806, 27121, 388, 3056, 359, 27121, 261, 1565, 3160, 2974, 1861, 60661, 8590, 969, 4321, 8805, 197, 532, 25078, 4202, 3160, 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 TestClusterAdminDescribeConfigWithErrorCode(t *testing.T) { seedBroker := NewMockBroker(t, 1) defer seedBroker.Close() seedBroker.SetHandlerByMap(map[string]MockResponse{ "MetadataRequest": NewMockMetadataResponse(t). SetController(seedBroker.BrokerID()). SetBroker(seedBroker.Addr(), seedBroker.BrokerI...
explode_data.jsonl/40794
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 334 }
[ 2830, 3393, 28678, 7210, 74785, 2648, 2354, 30748, 1155, 353, 8840, 836, 8, 341, 197, 22602, 65545, 1669, 1532, 11571, 65545, 1155, 11, 220, 16, 340, 16867, 10320, 65545, 10421, 2822, 197, 22602, 65545, 4202, 3050, 1359, 2227, 9147, 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 TestNewLighthouseJob(t *testing.T) { var testCases = []struct { name string spec v1alpha1.LighthouseJobSpec labels map[string]string expectedLabels map[string]string annotations map[string]string expectedAnnotations map[string]string }{ { n...
explode_data.jsonl/51116
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2926 }
[ 2830, 3393, 3564, 43, 57909, 12245, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 37302, 284, 3056, 1235, 341, 197, 11609, 394, 914, 198, 197, 98100, 394, 348, 16, 7141, 16, 1214, 57909, 12245, 8327, 198, 197, 95143, 1060, 2415, 14032, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQueryString(t *testing.T) { var token string g := newServer(Options{ Secret: "secret123", }) g.GET("/login", func(c *gin.Context) { token = GetToken(c) }) g.POST("/login", func(c *gin.Context) { c.String(http.StatusOK, "OK") }) r1 := request(g, requestOptions{URL: "/login"}) r2 := request(g, ...
explode_data.jsonl/22730
{ "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, 67001, 1155, 353, 8840, 836, 8, 341, 2405, 3950, 914, 198, 3174, 1669, 501, 5475, 7, 3798, 515, 197, 7568, 50856, 25, 330, 20474, 16, 17, 18, 756, 197, 8824, 3174, 17410, 4283, 3673, 497, 2915, 1337, 353, 8163, 9328, 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 TestDateValidation(t *testing.T) { utc, err := time.LoadLocation("UTC") if err != nil { t.Fatalf("error loading utc") } var aug1 time.Time aug1, err = time.ParseInLocation(project.RFC3339Date, "2020-08-01", utc) if err != nil { t.Fatalf("error parsing date") } tests := []struct { v string ...
explode_data.jsonl/39581
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 660 }
[ 2830, 3393, 1916, 13799, 1155, 353, 8840, 836, 8, 341, 197, 28355, 11, 1848, 1669, 882, 13969, 4707, 445, 21183, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 841, 8277, 69596, 1138, 197, 532, 2405, 19303, 16, 882, 16299, 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...
9
func TestStringer(t *testing.T) { tests := []struct { name string key func(int) interface{} }{ {name: "int", key: iKey}, {name: "string", key: sKey}, {name: "[]byte", key: bKey}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { m := &HashMap{} elephant := &Animal{"elephant"} mo...
explode_data.jsonl/24429
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 398 }
[ 2830, 3393, 703, 261, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 23634, 220, 2915, 1548, 8, 3749, 16094, 197, 59403, 197, 197, 47006, 25, 330, 396, 497, 1376, 25, 600, 1592, 1583, 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 TestContextDuplicateACI(t *testing.T) { c := NewParallelE2eCLI(t, binDir) c.RunDockerCmd("context", "create", "mycontext", "--from", "default") res := c.RunDockerOrExitError("context", "create", "aci", "mycontext") res.Assert(t, icmd.Expected{ ExitCode: 1, Err: "context mycontext: already exists", }...
explode_data.jsonl/5429
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 131 }
[ 2830, 3393, 1972, 53979, 1706, 40, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1532, 16547, 36, 17, 68, 63959, 1155, 11, 9544, 6184, 692, 1444, 16708, 35, 13659, 15613, 445, 2147, 497, 330, 3182, 497, 330, 2408, 2147, 497, 14482, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultiICPSFiles(t *testing.T) { testDataDir = filepath.Join(repoRootDir, "cmd/mesh/testdata/manifest-generate") t.Run("multi-ICPS files", func(t *testing.T) { inPathBase := filepath.Join(testDataDir, "input/all_off.yaml") inPathOverride := filepath.Join(testDataDir, "input/telemetry_override_only.yaml") ...
explode_data.jsonl/55977
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 367 }
[ 2830, 3393, 20358, 1317, 5012, 10809, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 6184, 284, 26054, 22363, 50608, 8439, 6184, 11, 330, 8710, 3183, 4288, 12697, 691, 14, 42315, 2371, 13220, 1138, 3244, 16708, 445, 26268, 12, 1317, 5012, 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 TestGeneratePrivateKey(t *testing.T) { priv, signer, err := csp.GeneratePrivateKey(testDir) assert.NoError(t, err, "Failed to generate private key") assert.NotNil(t, priv, "Should have returned a bccsp.Key") assert.Equal(t, true, priv.Private(), "Failed to return private key") assert.NotNil(t, signer, "Shoul...
explode_data.jsonl/49024
{ "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, 31115, 75981, 1155, 353, 8840, 836, 8, 1476, 71170, 11, 70039, 11, 1848, 1669, 272, 2154, 57582, 75981, 8623, 6184, 340, 6948, 35699, 1155, 11, 1848, 11, 330, 9408, 311, 6923, 869, 1376, 1138, 6948, 93882, 1155, 11, 6095, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetPublicKey(t *testing.T) { for _, tt := range []struct { name string err string code codes.Code fakeEntries []fakeKeyEntry keyID string }{ { name: "existing key", keyID: spireKeyID, fakeEntries: []fakeKeyEntry{ { AliasName: aws.String(aliasName), ...
explode_data.jsonl/69037
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 587 }
[ 2830, 3393, 1949, 61822, 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, 43343, 286, 13912, 20274, 198, 197, 1166, 726, 24533, 3056, 30570, 1592, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIndexGetTwoValue(t *testing.T) { gopClTest(t, ` a := {"Hello": 1, "Hi": 3, "xsw": 5, "Go+": 7} x, ok := a["Hi"] y := a["Go+"] `, `package main func main() { a := map[string]int{"Hello": 1, "Hi": 3, "xsw": 5, "Go+": 7} x, ok := a["Hi"] y := a["Go+"] } `) }
explode_data.jsonl/73655
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 1552, 1949, 11613, 1130, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 64, 1669, 5212, 9707, 788, 220, 16, 11, 330, 13048, 788, 220, 18, 11, 330, 87, 2280, 788, 220, 20, 11, 330, 10850, 80479, 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...
1
func TestMostRequested(t *testing.T) { labels1 := map[string]string{ "foo": "bar", "baz": "blah", } labels2 := map[string]string{ "bar": "foo", "baz": "blah", } noResources := v1.PodSpec{ Containers: []v1.Container{}, } cpuOnly := v1.PodSpec{ NodeName: "machine1", Containers: []v1.Container{ { ...
explode_data.jsonl/46950
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2147 }
[ 2830, 3393, 13319, 37630, 1155, 353, 8840, 836, 8, 341, 95143, 16, 1669, 2415, 14032, 30953, 515, 197, 197, 1, 7975, 788, 330, 2257, 756, 197, 197, 1, 42573, 788, 330, 70614, 756, 197, 532, 95143, 17, 1669, 2415, 14032, 30953, 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...
4
func TestAgent_ServiceMaintenance_BadRequest(t *testing.T) { t.Parallel() a := NewTestAgent(t.Name(), "") defer a.Shutdown() t.Run("not enabled", func(t *testing.T) { req, _ := http.NewRequest("PUT", "/v1/agent/service/maintenance/test", nil) resp := httptest.NewRecorder() if _, err := a.srv.AgentServiceMain...
explode_data.jsonl/33638
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 489 }
[ 2830, 3393, 16810, 52548, 92735, 1668, 329, 1900, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 11323, 1669, 1532, 2271, 16810, 1155, 2967, 1507, 14676, 16867, 264, 10849, 18452, 2822, 3244, 16708, 445, 1921, 8970, 497, 2915, 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...
3
func TestBitmapRank(t *testing.T) { for n := uint64(1); n <= 1048576; n *= 2 { t.Run("rank tests"+strconv.Itoa(int(n)), func(t *testing.T) { for gap := uint64(1); gap <= 65536; gap *= 2 { rb1 := NewBitmap() for x := uint64(0); x <= n; x += gap { rb1.Add(x) } for y := uint64(0); y <= n; y++ { ...
explode_data.jsonl/20336
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 245 }
[ 2830, 3393, 16773, 22550, 1155, 353, 8840, 836, 8, 341, 2023, 308, 1669, 2622, 21, 19, 7, 16, 1215, 308, 2651, 220, 16, 15, 19, 23, 20, 22, 21, 26, 308, 11404, 220, 17, 341, 197, 3244, 16708, 445, 13129, 7032, 5572, 51848, 64109, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCountReadings(t *testing.T) { reset() myMock := &dbMock.DBClient{} myMock.On("ReadingCount").Return(2, nil) dbClient = myMock _, err := countReadings(logger.NewMockClient()) if err != nil { t.Errorf("Unexpected error in CountReadings") } }
explode_data.jsonl/48174
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 103 }
[ 2830, 3393, 2507, 4418, 819, 1155, 353, 8840, 836, 8, 341, 70343, 741, 13624, 11571, 1669, 609, 1999, 11571, 22537, 2959, 31483, 13624, 11571, 8071, 445, 31899, 2507, 1827, 5598, 7, 17, 11, 2092, 692, 20939, 2959, 284, 847, 11571, 271, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_GetUser(t *testing.T) { ast := assert.New(t) setupConfig(t) defer teardownConfig(t) users := []model.User{} err := model.GetUsers(users, bson.D{}) ast.Empty(err) log.WithFields(log.Fields{"users": users}).Info("GetUser end") }
explode_data.jsonl/48641
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 13614, 1474, 1155, 353, 8840, 836, 8, 972, 88836, 1669, 2060, 7121, 1155, 1218, 84571, 2648, 1155, 1218, 16867, 49304, 2648, 1155, 7229, 90896, 1669, 3056, 2528, 7344, 90, 1771, 9859, 1669, 1614, 2234, 7137, 35438, 11, 50980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFromBuffer(t *testing.T) { t.Parallel() for name, tc := range fromBufferTT { tc := tc t.Run(name, func(t *testing.T) { t.Parallel() if got := hotlm.FromBuffer(tc.buf); got != tc.want { t.Fatalf("\n\twant: %+v\n\tgot: %+v", tc.want, got) } }) } }
explode_data.jsonl/77738
{ "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, 3830, 4095, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 829, 11, 17130, 1669, 2088, 504, 4095, 14903, 341, 197, 78255, 1669, 17130, 198, 197, 3244, 16708, 3153, 11, 2915, 1155, 353, 8840, 836, 8, 341, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestUIDPresentIssuer(t *testing.T) { inputPath := "issuerUID.pem" expected := lint.Error out := test.TestLint("e_cert_contains_unique_identifier", inputPath) if out.Status != expected { t.Errorf("%s: expected %s, got %s", inputPath, expected, out.Status) } }
explode_data.jsonl/41432
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 102 }
[ 2830, 3393, 6463, 21195, 98902, 1155, 353, 8840, 836, 8, 341, 22427, 1820, 1669, 330, 66817, 6463, 49373, 698, 42400, 1669, 57920, 6141, 198, 13967, 1669, 1273, 8787, 47556, 445, 68, 37097, 63598, 21218, 33176, 497, 1946, 1820, 340, 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...
2
func TestNewClient(t *testing.T) { o := testclient.NewObjects(kapi.Scheme, kapi.Scheme) if err := testclient.AddObjectsFromPath("../../../test/integration/fixtures/test-deployment-config.json", o, kapi.Scheme); err != nil { t.Fatal(err) } oc, _ := NewFixtureClients(o) list, err := oc.DeploymentConfigs("test").Li...
explode_data.jsonl/81801
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 289 }
[ 2830, 3393, 3564, 2959, 1155, 353, 8840, 836, 8, 341, 22229, 1669, 1273, 2972, 7121, 11543, 5969, 2068, 92719, 11, 595, 2068, 92719, 340, 743, 1848, 1669, 1273, 2972, 1904, 11543, 3830, 1820, 445, 26744, 1944, 31114, 17376, 94275, 12697, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScripts(t *testing.T) { notTested := make(map[string]bool) for k := range Scripts { notTested[k] = true } for _, test := range inTest { if _, ok := Scripts[test.script]; !ok { t.Fatal(test.script, "not a known script") } if !Is(Scripts[test.script], test.rune) { t.Errorf("IsScript(%U, %s) = f...
explode_data.jsonl/49914
{ "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, 44942, 1155, 353, 8840, 836, 8, 341, 97266, 2271, 291, 1669, 1281, 9147, 14032, 96436, 340, 2023, 595, 1669, 2088, 63621, 341, 197, 97266, 2271, 291, 6732, 60, 284, 830, 198, 197, 532, 2023, 8358, 1273, 1669, 2088, 304, 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...
8
func Test_addonValidator_Validate_NoDeps(t *testing.T) { var cache = NewAddonVersionCacheClient() type fields struct { addon *addonmgrv1alpha1.Addon } tests := []struct { name string fields fields want bool wantErr bool }{ // TODO: Add test cases. {name: "addon-validates-no-dependencies", fiel...
explode_data.jsonl/2958
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 716 }
[ 2830, 3393, 2891, 263, 14256, 62, 17926, 36989, 35, 7124, 1155, 353, 8840, 836, 8, 341, 2405, 6500, 284, 1532, 84312, 5637, 8233, 2959, 741, 13158, 5043, 2036, 341, 197, 12718, 263, 353, 51099, 48292, 85, 16, 7141, 16, 1904, 263, 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...
3
func TestMain(t *testing.T) { benches := flag.CommandLine.Lookup("test.bench").Value.String() repo.Start(strings.Index(benches, "Seed") >= 0, benches, itemsInDataSet) }
explode_data.jsonl/58508
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 62 }
[ 2830, 3393, 6202, 1155, 353, 8840, 836, 8, 341, 2233, 268, 8528, 1669, 5181, 12714, 2460, 79261, 445, 1944, 948, 19762, 1827, 1130, 6431, 741, 17200, 5368, 12101, 51442, 18338, 1883, 268, 8528, 11, 330, 41471, 899, 2604, 220, 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
func TestNotReadyNodeDaemonDoesLaunchPod(t *testing.T) { forEachStrategy(t, func(t *testing.T, strategy *apps.DaemonSetUpdateStrategy) { server, closeFn, dc, informers, clientset := setup(t) defer closeFn() ns := framework.CreateTestingNamespace("simple-daemonset-test", server, t) defer framework.DeleteTesting...
explode_data.jsonl/8556
{ "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, 2623, 19202, 1955, 89177, 21468, 32067, 23527, 1155, 353, 8840, 836, 8, 341, 2023, 4854, 19816, 1155, 11, 2915, 1155, 353, 8840, 836, 11, 8282, 353, 27635, 909, 64, 7291, 1649, 4289, 19816, 8, 341, 197, 41057, 11, 3265, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPaintArc(t *testing.T) { run(t, func(o *op.Ops) { p := new(clip.Path) p.Begin(o) p.Move(f32.Pt(0, 20)) p.Line(f32.Pt(10, 0)) p.Arc(f32.Pt(10, 0), f32.Pt(40, 0), math.Pi) p.Line(f32.Pt(30, 0)) p.Line(f32.Pt(0, 25)) p.Arc(f32.Pt(-10, 5), f32.Pt(10, 15), -math.Pi) p.Line(f32.Pt(0, 25)) p.Arc(...
explode_data.jsonl/18105
{ "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, 18098, 36809, 1155, 353, 8840, 836, 8, 341, 56742, 1155, 11, 2915, 10108, 353, 453, 8382, 1690, 8, 341, 197, 3223, 1669, 501, 7, 7974, 17474, 340, 197, 3223, 28467, 10108, 340, 197, 3223, 31195, 955, 18, 17, 1069, 83, 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...
1
func TestInterpretConvertCharacterToString(t *testing.T) { t.Parallel() inter := parseCheckAndInterpret(t, ` fun test(): String { let c: Character = "x" return c.toString() } `) result, err := inter.Invoke("test") require.NoError(t, err) require.Equal(t, interpreter.NewStringValue...
explode_data.jsonl/73424
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 143 }
[ 2830, 3393, 3306, 8043, 12012, 12404, 5870, 1155, 353, 8840, 836, 8, 1476, 3244, 41288, 7957, 2822, 58915, 1669, 4715, 3973, 3036, 3306, 8043, 1155, 11, 22074, 262, 2464, 1273, 4555, 923, 341, 286, 1077, 272, 25, 15633, 284, 330, 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 TestJolokia2_ProxyTargets(t *testing.T) { config := ` [jolokia2_proxy] url = "%s" [[jolokia2_proxy.target]] url = "service:jmx:rmi:///jndi/rmi://target1:9010/jmxrmi" [[jolokia2_proxy.target]] url = "service:jmx:rmi:///jndi/rmi://target2:9010/jmxrmi" [[jolokia2_proxy.metric]] name = "hello" mbean...
explode_data.jsonl/5360
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 662 }
[ 2830, 3393, 41, 337, 27552, 17, 16670, 4130, 49030, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 22074, 197, 3809, 337, 27552, 17, 29712, 921, 197, 19320, 284, 5962, 82, 1837, 197, 15505, 73, 337, 27552, 17, 29712, 6539, 14288, 197, 193...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCSVConvert(t *testing.T) { testtype.VerifyTestType(t, testtype.UnitTestType) Convey("With a CSV input reader", t, func() { Convey("calling convert on a CSVConverter should return the expected BSON document", func() { csvConverter := CSVConverter{ colSpecs: []ColumnSpec{ {"field1", new(FieldAuto...
explode_data.jsonl/18636
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 320 }
[ 2830, 3393, 44209, 12012, 1155, 353, 8840, 836, 8, 341, 18185, 1313, 54853, 2271, 929, 1155, 11, 1273, 1313, 25159, 2271, 929, 340, 93070, 5617, 445, 2354, 264, 27445, 1946, 6604, 497, 259, 11, 2915, 368, 341, 197, 93070, 5617, 445, 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...
1
func TestGetLocation(t *testing.T) { setup() var rsp ResponseArray var err error rsp, err = GetLocation("Austin", 3) if err != nil { t.Error(err) } //log.Println(rsp[0]) first := rsp[0].(map[string]interface{}) googleID := first["google_id"].(float64) if googleID != float64(200635) { t.Error(googleID) ...
explode_data.jsonl/19468
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 139 }
[ 2830, 3393, 1949, 4707, 1155, 353, 8840, 836, 8, 341, 84571, 2822, 2405, 42160, 5949, 1857, 198, 2405, 1848, 1465, 198, 7000, 2154, 11, 1848, 284, 2126, 4707, 445, 82389, 497, 220, 18, 692, 743, 1848, 961, 2092, 341, 197, 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...
3
func TestIssue17287(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) orgEnable := plannercore.PreparedPlanCacheEnabled() defer func() { plannercore.SetPreparedPlanCache(orgEnable) }() plannercore.SetPreparedPlanCache(true) var err error se, err := s...
explode_data.jsonl/65538
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 422 }
[ 2830, 3393, 42006, 16, 22, 17, 23, 22, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 87625, 11084, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetExpiring(t *testing.T) { var numTimesInitialized int32 var numTimesFinalized int32 cache := New("Example_Expiring_Cache", func(key Key) (interface{}, error) { if key.String() == "error" { return nil, fmt.Errorf("some error") } atomic.AddInt32(&numTimesInitialized, 1) return fmt.Sprintf...
explode_data.jsonl/2256
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 618 }
[ 2830, 3393, 1949, 840, 78763, 1155, 353, 8840, 836, 8, 341, 2405, 1629, 18889, 22495, 526, 18, 17, 198, 2405, 1629, 18889, 19357, 1506, 526, 18, 17, 271, 52680, 1669, 1532, 445, 13314, 62531, 78763, 920, 1777, 756, 197, 29244, 4857, 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...
2
func TestAllowActivitiesWhitelist(t *testing.T) { vendorListData := MarshalVendorList(buildVendorList34()) perms := allPurposesEnabledPermissions() perms.vendorIDs = map[openrtb_ext.BidderName]uint16{ openrtb_ext.BidderAppnexus: 2, openrtb_ext.BidderPubmatic: 6, openrtb_ext.BidderRubicon: 8, } perms.fetchV...
explode_data.jsonl/31095
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 427 }
[ 2830, 3393, 18605, 67820, 1639, 57645, 1155, 353, 8840, 836, 8, 341, 5195, 8029, 852, 1043, 1669, 35667, 44691, 852, 43333, 44691, 852, 18, 19, 12367, 197, 87772, 1669, 678, 47, 324, 8285, 5462, 23851, 741, 197, 87772, 72395, 30466, 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...
1
func TestListSnapshots(t *testing.T) { app, teardown := setupBaseAppWithSnapshots(t, 5, 4) defer teardown() resp := app.ListSnapshots(abci.RequestListSnapshots{}) for _, s := range resp.Snapshots { assert.NotEmpty(t, s.Hash) assert.NotEmpty(t, s.Metadata) s.Hash = nil s.Metadata = nil } assert.Equal(t, a...
explode_data.jsonl/30050
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 852, 61871, 27634, 1155, 353, 8840, 836, 8, 341, 28236, 11, 49304, 1669, 6505, 3978, 2164, 2354, 61871, 27634, 1155, 11, 220, 20, 11, 220, 19, 340, 16867, 49304, 2822, 34653, 1669, 906, 5814, 61871, 27634, 56085, 5855, 9659,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJvStringOnNonStringType(t *testing.T) { jv := jq.JvNull() defer jv.Free() if _, err := jv.String(); err == nil { t.Errorf("created string from jv null value") } }
explode_data.jsonl/38755
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 41, 85, 703, 1925, 8121, 703, 929, 1155, 353, 8840, 836, 8, 341, 12428, 85, 1669, 44648, 3503, 85, 3280, 741, 16867, 502, 85, 52229, 2822, 743, 8358, 1848, 1669, 502, 85, 6431, 2129, 1848, 621, 2092, 341, 197, 3244, 1308...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGRPCServerSettings_ToListener_Error(t *testing.T) { settings := GRPCServerSettings{ NetAddr: confignet.NetAddr{ Endpoint: "127.0.0.1:1234567", Transport: "tcp", }, TLSSetting: &configtls.TLSServerSetting{ TLSSetting: configtls.TLSSetting{ CertFile: "/doesnt/exist", }, }, Keepalive: ...
explode_data.jsonl/80331
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 170 }
[ 2830, 3393, 8626, 4872, 5475, 6086, 38346, 2743, 28651, 1155, 353, 8840, 836, 8, 341, 62930, 1669, 14773, 4872, 5475, 6086, 515, 197, 197, 6954, 13986, 25, 2335, 84858, 16993, 13986, 515, 298, 197, 27380, 25, 220, 330, 16, 17, 22, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEnforceNamespaceLabelOnPrometheusRules(t *testing.T) { type testCase struct { Name string PromRule monitoringv1.PrometheusRule PromSpecEnforcedNamespaceLabel string ExcludedFromEnforcement []monitoringv1.ObjectReference PromSpecExcludedRules ...
explode_data.jsonl/29311
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3218 }
[ 2830, 3393, 1702, 8833, 22699, 2476, 1925, 35186, 39705, 26008, 1155, 353, 8840, 836, 8, 1476, 13158, 54452, 2036, 341, 197, 21297, 5968, 914, 198, 197, 10025, 441, 11337, 5180, 16558, 85, 16, 1069, 441, 39705, 11337, 198, 197, 10025, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestDiffSchemaAndDocs(t *testing.T) { for _, tt := range tests { func() { s := newTestSchema() c, err := config.New() if err != nil { t.Error(err) } docPath, _ := ioutil.TempDir("", "tbls") force := true adjust := tt.adjust erFormat := "png" defer os.RemoveAll(docPath) err = c....
explode_data.jsonl/23086
{ "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, 21751, 8632, 3036, 63107, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 7032, 341, 197, 29244, 368, 341, 298, 1903, 1669, 501, 2271, 8632, 741, 298, 1444, 11, 1848, 1669, 2193, 7121, 741, 298, 743, 1848, 961...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewExporter_err_auth_type(t *testing.T) { c := Config{ ProtocolVersion: "2.0.0", Authentication: kafkaexporter.Authentication{ TLS: &configtls.TLSClientSetting{ TLSSetting: configtls.TLSSetting{ CAFile: "/doesnotexist", }, }, }, Encoding: defaultEncoding, Metadata: kafkaexporter.M...
explode_data.jsonl/2057
{ "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, 3564, 88025, 9266, 14014, 1819, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 5532, 515, 197, 197, 20689, 5637, 25, 330, 17, 13, 15, 13, 15, 756, 197, 197, 19297, 25, 67852, 1533, 261, 40673, 515, 298, 10261, 7268, 25, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCopyChunkedByteSlices_oneChunk(t *testing.T) { src := [][]byte{ []byte("influx"), []byte("data"), } dst := CopyChunkedByteSlices(src, 3) if !reflect.DeepEqual(src, dst) { t.Errorf("destination should match source src: %v dst: %v", src, dst) } dst[0][1] = 'z' if reflect.DeepEqual(src, dst) { t....
explode_data.jsonl/51738
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 159 }
[ 2830, 3393, 12106, 28304, 291, 7153, 50, 37414, 11667, 28304, 1155, 353, 8840, 836, 8, 341, 41144, 1669, 52931, 3782, 515, 197, 197, 1294, 3782, 445, 258, 36706, 4461, 197, 197, 1294, 3782, 445, 691, 4461, 197, 630, 52051, 1669, 14540, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestArchiveCmd(t *testing.T) { encoderCfg := zapcore.EncoderConfig{ MessageKey: "msg", LevelKey: "level", NameKey: "logger", EncodeLevel: zapcore.LowercaseLevelEncoder, EncodeTime: zapcore.ISO8601TimeEncoder, EncodeDuration: zapcore.StringDurationEncoder, } core := zapcore.Ne...
explode_data.jsonl/65809
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 704 }
[ 2830, 3393, 42502, 15613, 1155, 353, 8840, 836, 8, 341, 197, 27008, 42467, 1669, 32978, 2153, 26598, 4316, 2648, 515, 197, 46733, 1592, 25, 257, 330, 3236, 756, 197, 197, 4449, 1592, 25, 981, 330, 3294, 756, 197, 21297, 1592, 25, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTrimAllPrefixExistingPrefix(t *testing.T) { prefixes := []string{"type/", "legume/"} assert.Equal(t, "potiron", TrimAllPrefix(prefixes)("type/legume/potiron")) }
explode_data.jsonl/16594
{ "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, 25656, 2403, 14335, 53067, 14335, 1155, 353, 8840, 836, 8, 341, 3223, 5060, 288, 1669, 3056, 917, 4913, 1313, 28105, 330, 1937, 3885, 11225, 630, 6948, 12808, 1155, 11, 330, 19099, 2475, 497, 44376, 2403, 14335, 28918, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSkylinePruning(t *testing.T) { tests := []struct { sql string result string }{ { sql: "select * from t", result: "PRIMARY_KEY", }, { sql: "select * from t order by f", result: "PRIMARY_KEY,f,f_g", }, { sql: "select * from t where a > 1", result: "PRIMARY_KEY", },...
explode_data.jsonl/50231
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1396 }
[ 2830, 3393, 45948, 1056, 3533, 37202, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 30633, 262, 914, 198, 197, 9559, 914, 198, 197, 59403, 197, 197, 515, 298, 30633, 25, 262, 330, 1742, 353, 504, 259, 756, 298, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUndefinedLocalsReferenceBreaks(t *testing.T) { t.Parallel() cleanupTerraformFolder(t, TEST_FIXTURE_LOCALS_ERROR_UNDEFINED_LOCAL) err := runTerragruntCommand(t, fmt.Sprintf("terragrunt apply -auto-approve --terragrunt-non-interactive --terragrunt-working-dir %s", TEST_FIXTURE_LOCALS_ERROR_UNDEFINED_LOCAL), ...
explode_data.jsonl/10114
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 148 }
[ 2830, 3393, 30571, 9152, 1127, 8856, 22524, 82, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 60639, 51, 13886, 627, 13682, 1155, 11, 13602, 42635, 41486, 28399, 50, 5414, 76863, 28399, 340, 9859, 1669, 1598, 51402, 68305, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLegacyQueryParams(t *testing.T) { input := CreateTestInput(t) querier := NewLegacyQuerier(input.TreasuryKeeper, input.Cdc) params := types.DefaultParams() input.TreasuryKeeper.SetParams(input.Ctx, params) queriedParams := getQueriedParameters(t, input.Ctx, input.Cdc, querier) require.Equal(t, queriedP...
explode_data.jsonl/6687
{ "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, 77415, 2859, 4870, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 4230, 2271, 2505, 1155, 340, 197, 15959, 1268, 1669, 1532, 77415, 2183, 261, 1268, 5384, 836, 265, 26102, 77233, 11, 1946, 727, 7628, 692, 25856, 1669, 4494, 1327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBadLimitUnit(t *testing.T) { expectConfigPanic( t, func() { config.NewRateLimitConfigImpl( loadFile("bad_limit_unit.yaml"), stats.NewStore(stats.NewNullSink(), false)) }, "bad_limit_unit.yaml: invalid rate limit unit 'foo'") }
explode_data.jsonl/41134
{ "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, 17082, 16527, 4562, 1155, 353, 8840, 836, 8, 341, 24952, 2648, 47, 31270, 1006, 197, 3244, 345, 197, 29244, 368, 341, 298, 25873, 7121, 11564, 16527, 2648, 9673, 1006, 571, 49386, 1703, 445, 13855, 14763, 14832, 33406, 4461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPNGWriter_QR(t *testing.T) { f, err := os.OpenFile("file_qr_1.png", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0666) if err != nil { t.Fatal(err) } defer f.Close() w := NewPNGWriter(L, f) assert.NoError(t, w.QR("Hello world!")) }
explode_data.jsonl/59208
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 59824, 6492, 13337, 49, 1155, 353, 8840, 836, 8, 341, 1166, 11, 1848, 1669, 2643, 12953, 1703, 445, 1192, 8976, 81, 62, 16, 3508, 497, 2643, 8382, 88649, 91, 436, 8382, 25823, 91, 436, 8382, 94642, 11, 220, 15, 21, 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...
2
func TestUpdateTaskRunResourceResult(t *testing.T) { for _, c := range []struct { desc string podStatus corev1.PodStatus taskRunStatus *v1alpha1.TaskRunStatus want []v1alpha1.PipelineResourceResult }{{ desc: "image resource updated", podStatus: corev1.PodStatus{ ContainerStatuses:...
explode_data.jsonl/51344
{ "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, 4289, 6262, 6727, 4783, 2077, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 272, 1669, 2088, 3056, 1235, 341, 197, 41653, 688, 914, 198, 197, 3223, 347, 2522, 257, 6200, 85, 16, 88823, 2522, 198, 197, 49115, 6727, 2522, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRedfishRemoteDirectSystemRebootFailed(t *testing.T) { m := &redfishMocks.RedfishAPI{} defer m.AssertExpectations(t) systemID := computerSystemID httpSuccResp := &http.Response{StatusCode: 200} m.On("GetSystem", context.Background(), systemID). Return(getTestSystem(), httpSuccResp, nil) m.On("InsertVi...
explode_data.jsonl/12282
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 359 }
[ 2830, 3393, 6033, 18170, 24703, 16027, 2320, 693, 4619, 9408, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 609, 1151, 18170, 72577, 20943, 18170, 7082, 16094, 16867, 296, 11711, 17536, 804, 1155, 692, 40293, 915, 1669, 6366, 2320, 915, 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 Test_Autoscaling_Integration(t *testing.T) { path := filepath.Join("testdata", "autoscaling", manifestPath) wantedManifestBytes, err := ioutil.ReadFile(path) require.NoError(t, err) mft, err := manifest.UnmarshalWorkload(wantedManifestBytes) require.NoError(t, err) v, ok := mft.(*manifest.LoadBalancedWebServ...
explode_data.jsonl/64803
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 597 }
[ 2830, 3393, 1566, 20435, 81552, 32054, 17376, 1155, 353, 8840, 836, 8, 341, 26781, 1669, 26054, 22363, 445, 92425, 497, 330, 79301, 81552, 497, 14455, 1820, 340, 6692, 7566, 38495, 7078, 11, 1848, 1669, 43144, 78976, 5581, 340, 17957, 356...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSHA512HashSaltValidValues(t *testing.T) { var err error var hash string datas := utils.SliceString(HashingPossibleSaltCharacters, 16) for _, salt := range datas { hash, err = HashPassword("password", salt, HashingAlgorithmSHA512, 1000, 0, 0, 0, 16) assert.NoError(t, err) assert.Equal(t, fmt.Sprint...
explode_data.jsonl/40168
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 33145, 20, 16, 17, 6370, 47318, 4088, 6227, 1155, 353, 8840, 836, 8, 341, 2405, 1848, 1465, 271, 2405, 5175, 914, 271, 2698, 19346, 1669, 12439, 95495, 703, 7, 6370, 287, 65222, 47318, 37489, 11, 220, 16, 21, 692, 2023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWatchInterpretation_ResponseNoNode(t *testing.T) { actions := []string{"create", "set", "compareAndSwap", "delete"} for _, action := range actions { w := newEtcdWatcher(false, Everything, codec, versioner, nil) w.emit = func(e watch.Event) { t.Errorf("Unexpected emit: %v", e) } w.sendResult(&etcd....
explode_data.jsonl/40975
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 148 }
[ 2830, 3393, 14247, 3306, 8043, 367, 65873, 2753, 1955, 1155, 353, 8840, 836, 8, 341, 197, 4020, 1669, 3056, 917, 4913, 3182, 497, 330, 746, 497, 330, 18948, 3036, 46179, 497, 330, 4542, 16707, 2023, 8358, 1917, 1669, 2088, 6168, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestContainersAll(t *testing.T) { ctx := context.Background() c, rollback := makeConnectionWithContainer(t) defer rollback() containers1, err := c.ContainersAll(ctx, nil) if err != nil { t.Fatal(err) } containers2, err := c.Containers(ctx, nil) if err != nil { t.Fatal(err) } if len(containers1) != le...
explode_data.jsonl/12665
{ "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, 74632, 2403, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1444, 11, 60414, 1669, 1281, 4526, 2354, 4502, 1155, 340, 16867, 60414, 741, 197, 39399, 16, 11, 1848, 1669, 272, 2451, 20568, 2403, 7502, 11, 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...
6
func TestACL_Capabilities(t *testing.T) { t.Run("root-ns", func(t *testing.T) { t.Parallel() policy := []*Policy{&Policy{Name: "root"}} ctx := namespace.RootContext(nil) acl, err := NewACL(ctx, policy) if err != nil { t.Fatalf("err: %v", err) } actual := acl.Capabilities(ctx, "any/path") expected :...
explode_data.jsonl/15266
{ "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, 55393, 920, 391, 8456, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 2888, 12, 4412, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 41288, 7957, 741, 197, 3223, 8018, 1669, 29838, 13825, 90, 5, 13825, 63121, 25, 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...
3
func TestValueBinder_errorStopsBinding(t *testing.T) { // this test documents "feature" that binding multiple params can change destination if it was binded before // failing parameter binding c := createTestContext("/api/user/999?id=1&nr=nope", nil, nil) b := QueryParamsBinder(c) id := int64(99) // will be chan...
explode_data.jsonl/82532
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 1130, 44055, 4096, 623, 3721, 15059, 1155, 353, 8840, 836, 8, 341, 197, 322, 419, 1273, 9293, 330, 12753, 1, 429, 10970, 5248, 3628, 646, 2297, 9106, 421, 432, 572, 10719, 291, 1573, 198, 197, 322, 21394, 5733, 10970, 271,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInterpreterArgumentCompatibility(t *testing.T) { // This isn't a totally obvious property of the interpreter, but when an argument specifies // a type and is given None, we adopt the default. This allows external functions to use None // for various arguments (e.g. deps), but internally we can treat them as...
explode_data.jsonl/81076
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 150 }
[ 2830, 3393, 58426, 9171, 85880, 1155, 353, 8840, 836, 8, 341, 197, 322, 1096, 4436, 944, 264, 12473, 8036, 3343, 315, 279, 39299, 11, 714, 979, 458, 5693, 29102, 198, 197, 322, 264, 943, 323, 374, 2661, 2240, 11, 582, 10902, 279, 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 TestTableOutputFewerValues(t *testing.T) { var buf bytes.Buffer table := NewTableOutputWithWriter(&buf) table.SetHeaders([]string{"header1", "header2"}) err := table.AddRow([]string{"value1"}) assert.NoError(t, err) table.Draw() expectedOutput := `+---------+---------+ | HEADER1 | HEADER2 | +---------+-----...
explode_data.jsonl/59415
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 145 }
[ 2830, 3393, 2556, 5097, 71104, 261, 6227, 1155, 353, 8840, 836, 8, 341, 2405, 6607, 5820, 22622, 198, 26481, 1669, 1532, 2556, 5097, 2354, 6492, 2099, 5909, 340, 26481, 4202, 10574, 10556, 917, 4913, 2708, 16, 497, 330, 2708, 17, 23625,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNilPtrValueSub(t *testing.T) { var pi *int if pv := ValueOf(pi); pv.Elem().IsValid() { t.Error("ValueOf((*int)(nil)).Elem().IsValid()") } }
explode_data.jsonl/29546
{ "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, 19064, 5348, 1130, 3136, 1155, 353, 8840, 836, 8, 341, 2405, 8938, 353, 396, 198, 743, 33491, 1669, 5162, 2124, 51264, 1215, 33491, 5142, 3433, 1005, 55470, 368, 341, 197, 3244, 6141, 445, 1130, 2124, 26609, 396, 2376, 8385,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPublishBlobsSendMessageFail(t *testing.T) { bm, cancel := newTestBroadcast(t) defer cancel() mdi := bm.database.(*databasemocks.Plugin) mdx := bm.exchange.(*dataexchangemocks.Plugin) mps := bm.publicstorage.(*publicstoragemocks.Plugin) blobHash := fftypes.NewRandB32() dataID := fftypes.NewUUID() ctx ...
explode_data.jsonl/12107
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 516 }
[ 2830, 3393, 50145, 33, 68164, 80863, 19524, 1155, 353, 8840, 836, 8, 341, 2233, 76, 11, 9121, 1669, 501, 2271, 43362, 1155, 340, 16867, 9121, 741, 2109, 8579, 1669, 34868, 15062, 41399, 67, 2096, 300, 336, 25183, 64378, 340, 2109, 12719...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWaitUntilFreshAndGet(t *testing.T) { store := newTestWatchCache(3) // In background, update the store. go func() { store.Add(makeTestPod("foo", 2)) store.Add(makeTestPod("bar", 5)) }() obj, exists, resourceVersion, err := store.WaitUntilFreshAndGet(5, "prefix/ns/bar", nil) if err != nil { t.Fatal...
explode_data.jsonl/25509
{ "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, 14190, 24493, 55653, 97726, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 501, 2271, 14247, 8233, 7, 18, 692, 197, 322, 758, 4004, 11, 2647, 279, 3553, 624, 30680, 2915, 368, 341, 197, 57279, 1904, 36944, 2271, 23527, 445, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetComponentDir(t *testing.T) { type args struct { path string paramType config.SrcType } tests := []struct { testName string args args want string wantErr bool }{ { testName: "Case: Git URL", args: args{ paramType: config.GIT, path: "https://github.com/opensh...
explode_data.jsonl/4416
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 630 }
[ 2830, 3393, 25640, 6184, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 26781, 414, 914, 198, 197, 36037, 929, 2193, 808, 1287, 929, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 18185, 675, 914, 198, 197, 31215, 257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestRPCBasic(t *testing.T) { fakeUUID := uuid.UUID([16]byte{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}) replyMessage := amqpMessageWithCorrelationId(fakeUUID.String()) replyMessage.ApplicationProperties = map[string]interface{}{ "status-code": int32(200), } ch := make(chan struct{}) sender := &...
explode_data.jsonl/57207
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 513 }
[ 2830, 3393, 29528, 15944, 1155, 353, 8840, 836, 8, 341, 1166, 726, 24754, 1669, 16040, 39636, 2561, 16, 21, 90184, 90, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 23,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetSettingsUnauthorized(t *testing.T) { dbMock := new(DBMock) authHandler := AuthHandlerMock{} services := &Services{db: dbMock, cookieHandler: &authHandler} router, err := CreateRouter(services) assert.NoError(t, err) req, _ := http.NewRequest("GET", "/api/settings", nil) res := httptest.NewRecorder(...
explode_data.jsonl/62529
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 199 }
[ 2830, 3393, 1949, 6086, 51181, 1155, 353, 8840, 836, 8, 341, 20939, 11571, 1669, 501, 32184, 11571, 340, 78011, 3050, 1669, 7366, 3050, 11571, 31483, 1903, 2161, 1669, 609, 11025, 90, 1999, 25, 2927, 11571, 11, 12544, 3050, 25, 609, 324...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransaction(t *testing.T) { r := NewTest(t) r.RunTest(e.Multi).ExpectSuccess() r.RunTest(e.Set, "a", "1").ExpectSuccess() r.RunTest(e.Set, "b", "2").ExpectSuccess() r.RunTest(e.Incr, "a").ExpectSuccess() r.RunTest(e.Scan().ALL) r.RunTest(e.HSet, "hash", "ha", "1").ExpectSuccess() r.RunTest(e.HSet, "ha...
explode_data.jsonl/7504
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 8070, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 2271, 1155, 692, 7000, 16708, 2271, 2026, 57706, 568, 17536, 7188, 741, 7000, 16708, 2271, 2026, 4202, 11, 330, 64, 497, 330, 16, 1827, 17536, 7188, 741, 7000, 16708, 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...
1
func TestS3Store_Put(t *testing.T) { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() type fields struct { headObjectFunc func(input *s3.HeadObjectInput) (*s3.HeadObjectOutput, error) sent stores.Sent bucket string } type args struct { messageID mail.ID contentsHash []by...
explode_data.jsonl/14344
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2550 }
[ 2830, 3393, 50, 18, 6093, 1088, 332, 1155, 353, 8840, 836, 8, 341, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 7860, 15001, 991, 18176, 741, 13158, 5043, 2036, 341, 197, 46081, 1190, 9626, 2915, 5384, 353, 82, 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...
1
func TestGetTargetsFromMHC(t *testing.T) { machine1 := maotesting.NewMachine("match1", "node1") machine2 := maotesting.NewMachine("match2", "node2") mhc := maotesting.NewMachineHealthCheck("findTargets") testCases := []struct { testCase string mhc *mapiv1beta1.MachineHealthCheck machines ...
explode_data.jsonl/31002
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3554 }
[ 2830, 3393, 1949, 49030, 3830, 44, 22455, 1155, 353, 8840, 836, 8, 341, 2109, 3814, 16, 1669, 7491, 354, 59855, 7121, 21605, 445, 6347, 16, 497, 330, 3509, 16, 1138, 2109, 3814, 17, 1669, 7491, 354, 59855, 7121, 21605, 445, 6347, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestSCRAMHMAC(t *testing.T) { t.Run("valid", func(t *testing.T) { scram := SCRAMPassword{} expected, _ := hex.DecodeString("ac9872eb21043142c3bf073c9fa4caf9553940750ef7b85116905aaa456a2d07") actual := scram.hmac(sha256.New, []byte("hippo"), []byte("datalake")) if bytes.Compare(expected, actual) != 0 { ...
explode_data.jsonl/28540
{ "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, 3540, 33905, 39, 25788, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1891, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 29928, 2396, 1669, 7531, 33905, 4876, 16094, 197, 42400, 11, 716, 1669, 12371, 56372, 703, 445, 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...
2
func TestCheckCellInArea(t *testing.T) { f := NewFile() expectedTrueCellInAreaList := [][2]string{ {"c2", "A1:AAZ32"}, {"B9", "A1:B9"}, {"C2", "C2:C2"}, } for _, expectedTrueCellInArea := range expectedTrueCellInAreaList { cell := expectedTrueCellInArea[0] area := expectedTrueCellInArea[1] ok, err := f...
explode_data.jsonl/946
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 519 }
[ 2830, 3393, 3973, 3599, 641, 8726, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 1532, 1703, 741, 42400, 2514, 3599, 641, 8726, 852, 1669, 508, 1457, 17, 30953, 515, 197, 197, 4913, 66, 17, 497, 330, 32, 16, 25, 6029, 57, 18, 17, 7115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInviteGroup(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() th.BasicTeam.GroupConstrained = model.NewBool(true) var err *model.AppError _, _ = th.App.AddTeamMember(th.BasicTeam.Id, th.BasicUser.Id) _, err = th.App.AddTeamMember(th.BasicTeam.Id, th.BasicUser2.Id) require.Nil(t, err) th.B...
explode_data.jsonl/20520
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 739 }
[ 2830, 3393, 93540, 2808, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 70479, 48868, 14597, 5407, 1109, 57727, 284, 1614, 7121, 11233, 3715, 340, 2405, 1848, 353, 2528, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFormatStore_Batch(t *testing.T) { t.Run("Fail to format key", func(t *testing.T) { t.Run("Formatter uses non-deterministic key formatting", func(t *testing.T) { provider := formattedstore.NewProvider(mem.NewProvider(), &mockFormatter{errFormat: errors.New("key formatting failure")}) require.NotNil...
explode_data.jsonl/28245
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 834 }
[ 2830, 3393, 4061, 6093, 1668, 754, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 19524, 311, 3561, 1376, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 16708, 445, 14183, 5711, 2477, 1737, 16483, 4532, 1376, 36566, 497, 2915, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSQLQueryFactory(t *testing.T) { s, _ := newMockProvider().init() s.individualSort = true fb := database.MessageQueryFactory.NewFilter(context.Background()) f := fb.And( fb.Eq("namespace", "ns1"), fb.Or( fb.Eq("id", "35c11cba-adff-4a4d-970a-02e3a0858dc8"), fb.Eq("id", "caefb9d1-9fc9-4d6a-a155-514d...
explode_data.jsonl/34916
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 515 }
[ 2830, 3393, 6688, 2859, 4153, 1155, 353, 8840, 836, 8, 341, 1903, 11, 716, 1669, 501, 11571, 5179, 1005, 2327, 741, 1903, 28473, 16826, 10231, 284, 830, 198, 1166, 65, 1669, 4625, 8472, 2859, 4153, 7121, 5632, 5378, 19047, 2398, 1166, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParse_Counters(t *testing.T) { s := NewTestStatsd() // Test that counters work validLines := []string{ "small.inc:1|c", "big.inc:100|c", "big.inc:1|c", "big.inc:100000|c", "big.inc:1000000|c", "small.inc:1|c", "zero.init:0|c", "sample.rate:1|c|@0.1", "sample.rate:1|c", "scientific.notat...
explode_data.jsonl/14365
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 497 }
[ 2830, 3393, 14463, 50775, 388, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 2271, 16635, 67, 2822, 197, 322, 3393, 429, 31532, 975, 198, 56322, 16794, 1669, 3056, 917, 515, 197, 197, 1, 9004, 26797, 25, 16, 91, 66, 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...
5
func TestPeerIDTOBS58ThenBack(t *testing.T) { p := RandomPeerID() q, _ := PeerIDFromBese58(p.Bese58String()) if bytes.Compare(p, q) != 0 { t.Fatal("fail to test peer id to bs58 then back") } }
explode_data.jsonl/54176
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 3393, 30888, 915, 5207, 7347, 20, 23, 12209, 3707, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 10612, 30888, 915, 741, 18534, 11, 716, 1669, 45147, 915, 3830, 33, 2367, 20, 23, 1295, 1785, 2367, 20, 23, 703, 12367, 743, 5820, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRun(t *testing.T) { tmpfilepath, envVars, err := setUp() if err != nil { t.Error(err) } defer func() { err := os.Remove(tmpfilepath) if err != nil { log.Printf("problem removing file %q: %s", tmpfilepath, err) } for k := range envVars { err := os.Unsetenv(k) if err != nil { log.Print...
explode_data.jsonl/9807
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 296 }
[ 2830, 3393, 6727, 1155, 353, 8840, 836, 8, 341, 20082, 44157, 11, 6105, 28305, 11, 1848, 1669, 18620, 741, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 532, 16867, 2915, 368, 341, 197, 9859, 1669, 2643, 13270, 10368, 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...
4
func TestRunArgs(t *testing.T) { t.Run("test initialization happy path", func(t *testing.T) { args := RunArgs{ Database: "example", Host: "localhost", Password: "root", Port: "3306", Safe: false, Tables: []string{"users.yaml", "accounts.yaml"}, User: "root", } validate := v...
explode_data.jsonl/54074
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 645 }
[ 2830, 3393, 6727, 4117, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1944, 17465, 6247, 1815, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 31215, 1669, 6452, 4117, 515, 298, 197, 5988, 25, 330, 8687, 756, 298, 197, 9296, 25, 257...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_storePipelineSpec(t *testing.T) { labels := map[string]string{"lbl": "value"} annotations := map[string]string{"io.annotation": "value"} pr := &v1beta1.PipelineRun{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", Labels: labels, Annotations: annotations, }, } ps := v1beta1.PipelineS...
explode_data.jsonl/27322
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 486 }
[ 2830, 3393, 14809, 34656, 8327, 1155, 353, 8840, 836, 8, 341, 95143, 1669, 2415, 14032, 30953, 4913, 31998, 788, 330, 957, 16707, 197, 39626, 1669, 2415, 14032, 30953, 4913, 815, 5067, 788, 330, 957, 16707, 25653, 1669, 609, 85, 16, 191...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestControllerFleetReplicasCount(t *testing.T) { registry := prometheus.NewRegistry() _, err := RegisterPrometheusExporter(registry) assert.Nil(t, err) c := newFakeController() defer c.close() c.run(t) f := fleet("fleet-test", 8, 2, 5, 1) fd := fleet("fleet-deleted", 100, 100, 100, 100) c.fleetWatch.Ad...
explode_data.jsonl/53229
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 246 }
[ 2830, 3393, 2051, 37, 18973, 18327, 52210, 2507, 1155, 353, 8840, 836, 8, 1476, 197, 29172, 1669, 2706, 39705, 7121, 15603, 741, 197, 6878, 1848, 1669, 8451, 35186, 39705, 88025, 18390, 4944, 340, 6948, 59678, 1155, 11, 1848, 692, 1444, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGitService_GetBlob_invalidOwner(t *testing.T) { client, _, _, teardown := setup() defer teardown() _, _, err := client.Git.GetBlob(context.Background(), "%", "%", "%") testURLParseError(t, err) }
explode_data.jsonl/11495
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 84 }
[ 2830, 3393, 46562, 1860, 13614, 37985, 31433, 13801, 1155, 353, 8840, 836, 8, 341, 25291, 11, 8358, 8358, 49304, 1669, 6505, 741, 16867, 49304, 2822, 197, 6878, 8358, 1848, 1669, 2943, 1224, 275, 2234, 37985, 5378, 19047, 1507, 5962, 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, 1, 1, 1, 1 ]
1
func TestTiDBIsOwnerFunc(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) result := tk.MustQuery("select tidb_is_ddl_owner()") ddlOwnerChecker := tk.Session().DDLOwnerChecker() require.NotNil(t, ddlOwnerChecker) var ret int64 if ddlOwnerChecker.IsOwner...
explode_data.jsonl/65463
{ "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, 45351, 3506, 3872, 13801, 9626, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 9559, 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...
2
func Test_FileStore_Del(t *testing.T) { storedir := "/tmp/TestStore/_del" f := NewFileStore(storedir) f.Open() pm := newPublishMsg(QOS_ONE, "/a/b/c", []byte{0xBE, 0xEF, 0xED}) pm.setMsgId(17) key := ibound_mid2key(pm.MsgId()) f.Put(key, pm) if !exists(storedir + "/i.17.msg") { t.Fatalf("message not in stor...
explode_data.jsonl/37289
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 198 }
[ 2830, 3393, 34061, 6093, 1557, 301, 1155, 353, 8840, 836, 8, 341, 18388, 3018, 404, 1669, 3521, 5173, 80527, 6093, 19632, 9588, 698, 1166, 1669, 1532, 1703, 6093, 5895, 3018, 404, 340, 1166, 12953, 2822, 86511, 1669, 501, 50145, 6611, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3