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 TestCollectionService_UpdateTitle(t *testing.T) { client, mux := setup(t) mux.HandleFunc("/api/v1/collections/update_collection_title", func(w http.ResponseWriter, r *http.Request) { require.Equal(t, http.MethodPost, r.Method) form := url.Values{} form.Set("collection_id", "37f1e52d-7ec9-466b-b4cc-59e86e...
explode_data.jsonl/12633
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 6482, 1860, 47393, 3851, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 1669, 6505, 1155, 692, 2109, 2200, 63623, 4283, 2068, 5457, 16, 2899, 3107, 29832, 25019, 6112, 497, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 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...
1
func TestCatalog_NodeServices_FilterACL(t *testing.T) { t.Parallel() dir, token, srv, codec := testACLFilterServer(t) defer os.RemoveAll(dir) defer srv.Shutdown() defer codec.Close() opt := structs.NodeSpecificRequest{ Datacenter: "dc1", Node: srv.config.NodeName, QueryOptions: structs.QueryOptio...
explode_data.jsonl/49248
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 324 }
[ 2830, 3393, 41606, 41340, 11025, 68935, 55393, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 48532, 11, 3950, 11, 43578, 11, 34647, 1669, 1273, 55393, 5632, 5475, 1155, 340, 16867, 2643, 84427, 14161, 340, 16867, 43578, 10849, 184...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestContextBadAutoBind(t *testing.T) { w := httptest.NewRecorder() c, _ := CreateTestContext(w) c.Request, _ = http.NewRequest("POST", "http://example.com", bytes.NewBufferString("\"foo\":\"bar\", \"bar\":\"foo\"}")) c.Request.Header.Add("Content-Type", MIMEJSON) var obj struct { Foo string `json:"foo"` ...
explode_data.jsonl/26824
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 1972, 17082, 13253, 9950, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 54320, 70334, 7121, 47023, 741, 1444, 11, 716, 1669, 4230, 2271, 1972, 3622, 692, 1444, 9659, 11, 716, 284, 1758, 75274, 445, 2946, 497, 330, 1254, 1110, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetenvTemplates(t *testing.T) { g := &gomplate{ funcMap: template.FuncMap{ "getenv": env.Getenv, "bool": conv.Bool, }, } assert.Empty(t, testTemplate(g, `{{getenv "BLAHBLAHBLAH"}}`)) assert.Equal(t, os.Getenv("USER"), testTemplate(g, `{{getenv "USER"}}`)) assert.Equal(t, "default value", testT...
explode_data.jsonl/54447
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 167 }
[ 2830, 3393, 1949, 3160, 51195, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 609, 36083, 1750, 515, 197, 29244, 2227, 25, 3811, 69845, 2227, 515, 298, 197, 1, 455, 3160, 788, 6105, 64883, 345, 298, 197, 1, 2641, 788, 256, 5686, 52497, 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 TestStringConstructor(t *testing.T) { const SCRIPT = ` function F() { return String(33) + " " + String("cows"); } F(); ` testScript1(SCRIPT, asciiString("33 cows"), t) }
explode_data.jsonl/75244
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 74 }
[ 2830, 3393, 703, 13288, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 7527, 434, 368, 341, 197, 853, 923, 7, 18, 18, 8, 488, 330, 330, 488, 923, 445, 66, 4241, 797, 197, 630, 12727, 543, 197, 3989, 18185, 5910, 16, 7, 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
func TestLog_invalid_namespace(t *testing.T) { ns := []*corev1.Namespace{ { ObjectMeta: metav1.ObjectMeta{ Name: "ns", }, }, } tdc := testDynamic.Options{} dc, _ := tdc.Client() cs, _ := test.SeedTestData(t, pipelinetest.Data{Namespaces: ns}) p := &test.Params{Tekton: cs.Pipeline, Kube: cs.Kube, Dyn...
explode_data.jsonl/14853
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 291 }
[ 2830, 3393, 2201, 31433, 41571, 1155, 353, 8840, 836, 8, 341, 84041, 1669, 29838, 98645, 16, 46011, 515, 197, 197, 515, 298, 23816, 12175, 25, 77520, 16, 80222, 515, 571, 21297, 25, 330, 4412, 756, 298, 197, 1583, 197, 197, 1583, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestPagerRunGivenMultipleArguments(t *testing.T) { var buf bytes.Buffer w, err := StartPagerWriter("echo hello 'and goodbye' \"world\"", &buf) if err != nil { t.Fatal(err) } if err := w.Wait(); err != nil { t.Fatal(err) } have := buf.String() if have != "hello and goodbye world\n" { t.Fatal("Multi...
explode_data.jsonl/51378
{ "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, 22640, 6727, 22043, 32089, 19139, 1155, 353, 8840, 836, 8, 341, 2405, 6607, 5820, 22622, 271, 6692, 11, 1848, 1669, 5145, 22640, 6492, 445, 3047, 23811, 364, 437, 46455, 6, 7245, 14615, 55853, 609, 5909, 340, 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...
4
func TestGetConversationReplies(t *testing.T) { http.HandleFunc("/conversations.replies", getConversationRepliesHandler) once.Do(startServer) api := New("testing-token", OptionAPIURL("http://"+serverAddr+"/")) params := GetConversationRepliesParameters{ ChannelID: "CXXXXXXXX", Timestamp: "1234567890.123456", }...
explode_data.jsonl/78550
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 169 }
[ 2830, 3393, 1949, 60313, 693, 7202, 1155, 353, 8840, 836, 8, 341, 28080, 63623, 4283, 443, 72995, 1327, 7202, 497, 633, 60313, 693, 7202, 3050, 340, 197, 13184, 33596, 10639, 5475, 340, 54299, 1669, 1532, 445, 8840, 34841, 497, 6959, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_IfdByteEncoder_EncodeToExif_WithChildAndSibling(t *testing.T) { defer func() { if state := recover(); state != nil { err := log.Wrap(state.(error)) log.PrintErrorf(err, "Test failure.") panic(err) } }() im := NewIfdMapping() err := LoadStandardIfds(im) log.PanicIf(err) ti := NewTagIndex(...
explode_data.jsonl/52756
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1295 }
[ 2830, 3393, 62, 2679, 67, 7153, 19921, 93529, 534, 1249, 840, 333, 62, 2354, 3652, 3036, 35643, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 743, 1584, 1669, 11731, 2129, 1584, 961, 2092, 341, 298, 9859, 1669, 1487, 38968...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadConfig_Concurrent(t *testing.T) { _ = os.Unsetenv("ALGOREA_ENV") appenv.SetDefaultEnvToTest() assert := assertlib.New(t) assert.NotPanics(func() { LoadConfig() for i := 0; i < 1000; i++ { go func() { LoadConfig() }() } }) }
explode_data.jsonl/61936
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 110 }
[ 2830, 3393, 5879, 2648, 15100, 3231, 1155, 353, 8840, 836, 8, 341, 197, 62, 284, 2643, 10616, 746, 3160, 445, 969, 38, 5881, 32, 22027, 1138, 28236, 3160, 4202, 3675, 14359, 1249, 2271, 741, 6948, 1669, 2060, 2740, 7121, 1155, 340, 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...
1
func TestContextRenderSecureJSON(t *testing.T) { w := httptest.NewRecorder() c, router := CreateTestContext(w) router.SecureJsonPrefix("&&&START&&&") c.SecureJSON(http.StatusCreated, []string{"foo", "bar"}) assert.Equal(t, http.StatusCreated, w.Code) assert.Equal(t, "&&&START&&&[\"foo\",\"bar\"]", w.Body.String...
explode_data.jsonl/26777
{ "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, 1972, 6750, 49813, 5370, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 54320, 70334, 7121, 47023, 741, 1444, 11, 9273, 1669, 4230, 2271, 1972, 3622, 692, 67009, 808, 76108, 5014, 14335, 445, 7672, 5, 22564, 7672, 5, 1138, 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 TestAssignNodesToCache(t *testing.T) { dataSet := &v1alpha1.Dataset{ TypeMeta: metav1.TypeMeta{}, ObjectMeta: metav1.ObjectMeta{ Name: "hbase", Namespace: "fluid", }, Spec: v1alpha1.DatasetSpec{}, Status: v1alpha1.DatasetStatus{}, } nodeInputs := []*v1.Node{ { ObjectMeta: metav1.Obje...
explode_data.jsonl/29946
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1740 }
[ 2830, 3393, 28933, 12288, 1249, 8233, 1155, 353, 8840, 836, 8, 341, 8924, 1649, 1669, 609, 85, 16, 7141, 16, 79356, 515, 197, 27725, 12175, 25, 77520, 16, 10184, 12175, 38837, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 21297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBalance(t *testing.T) { client := v1.New(&v1.Config{ Key: os.Getenv("BFKEY"), Secret: os.Getenv("BFSECRET"), }) balance, err := client.Balance(balance.New()) assert.NoError(t, err) fmt.Printf("%+v\n", strings.Join(balance.List(), "\n")) }
explode_data.jsonl/41201
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 111 }
[ 2830, 3393, 21190, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 348, 16, 7121, 2099, 85, 16, 10753, 515, 197, 55242, 25, 262, 2643, 64883, 445, 19883, 4784, 4461, 197, 7568, 50856, 25, 2643, 64883, 445, 19883, 65310, 4461, 197, 3518, 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...
1
func Test_fsSource_Prev(t *testing.T) { s := getTestSource(t, "sample-migrations") version, err := s.Prev(2) if err != nil { t.Fatalf("unexpected error: %v", err) } if version != uint64(1) { t.Fatalf("expected first version to be 2, got: %d", version) } }
explode_data.jsonl/81887
{ "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, 34470, 3608, 1088, 7282, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 633, 2271, 3608, 1155, 11, 330, 13611, 1448, 17824, 1138, 74954, 11, 1848, 1669, 274, 1069, 7282, 7, 17, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSummaryDecay(t *testing.T) { sum := NewSummary(SummaryOpts{ Name: "test_summary", Help: "helpless", MaxAge: 100 * time.Millisecond, Objectives: map[float64]float64{0.1: 0.001}, AgeBuckets: 10, }) m := &dto.Metric{} i := 0 tick := time.NewTicker(time.Millisecond) for _ = range t...
explode_data.jsonl/8536
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 312 }
[ 2830, 3393, 19237, 4900, 352, 1155, 353, 8840, 836, 8, 341, 31479, 1669, 1532, 19237, 3759, 372, 1534, 43451, 515, 197, 21297, 25, 981, 330, 1944, 27251, 756, 197, 197, 12689, 25, 981, 330, 8653, 1717, 756, 197, 197, 5974, 16749, 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...
5
func TestCheck(t *testing.T) { testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) { res, err := c.GetStream("/check", stdsdk.RequestOptions{}) require.NoError(t, err) defer res.Body.Close() data, err := ioutil.ReadAll(res.Body) require.NoError(t, err) require.Equal(t, "ok", string(data)) }) }
explode_data.jsonl/28919
{ "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, 3973, 1155, 353, 8840, 836, 8, 341, 18185, 5475, 1155, 11, 2915, 1337, 353, 1834, 51295, 11716, 11, 281, 353, 1235, 82, 24664, 5179, 8, 341, 197, 10202, 11, 1848, 1669, 272, 2234, 3027, 4283, 2028, 497, 1460, 51295, 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...
1
func TestConnectionCreateParallel(t *testing.T) { assert := assert.New(t) err := createTable(nil) assert.Nil(err) defer dropTableIfExists(nil) wg := sync.WaitGroup{} wg.Add(5) for x := 0; x < 5; x++ { go func() { defer wg.Done() obj := &benchObj{ Name: fmt.Sprintf("test_object_0"), UUID: ...
explode_data.jsonl/33842
{ "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, 4526, 4021, 16547, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 9859, 1669, 1855, 2556, 27907, 340, 6948, 59678, 3964, 340, 16867, 5943, 2556, 40232, 27907, 692, 72079, 1669, 12811, 28384, 2808, 16094, 7207...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandlers(t *testing.T) { insp := newFakeInspector() h := NewRESTHandlers(insp) t.Run("without a concept", func(t *testing.T) { insp.reset() r := httptest.NewRequest("GET", "/", nil) w := httptest.NewRecorder() h.Handler().ServeHTTP(w, r) res := w.Result() defer res.Body.Close() assert.Equal(...
explode_data.jsonl/69180
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 567 }
[ 2830, 3393, 39949, 1155, 353, 8840, 836, 8, 341, 197, 1330, 79, 1669, 501, 52317, 46230, 741, 9598, 1669, 1532, 38307, 39949, 56337, 79, 692, 3244, 16708, 445, 28996, 264, 7286, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 1330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestString(t *testing.T) { test.AssertEqual(t, lexerError("'"), "<stdin>: error: Unterminated string token\n") test.AssertEqual(t, lexerError("\""), "<stdin>: error: Unterminated string token\n") test.AssertEqual(t, lexerError("'\\'"), "<stdin>: error: Unterminated string token\n") test.AssertEqual(t, lexerErr...
explode_data.jsonl/47977
{ "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, 703, 1155, 353, 8840, 836, 8, 341, 18185, 11711, 2993, 1155, 11, 53259, 1454, 45456, 3975, 4055, 51602, 26818, 1465, 25, 33312, 51199, 914, 3950, 1699, 1138, 18185, 11711, 2993, 1155, 11, 53259, 1454, 38915, 3975, 4055, 51602,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWriteHumanReadableBlob(t *testing.T) { vrw := newTestValueStore() assertWriteHRSEqual(t, "blob {}", NewEmptyBlob(vrw)) b1 := NewBlob(vrw, bytes.NewBuffer([]byte{0x01})) assertWriteHRSEqual(t, "blob {01}", b1) b2 := NewBlob(vrw, bytes.NewBuffer([]byte{0x01, 0x02})) assertWriteHRSEqual(t, "blob {01 02}",...
explode_data.jsonl/60902
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1055 }
[ 2830, 3393, 7985, 33975, 57938, 37985, 1155, 353, 8840, 836, 8, 341, 5195, 31768, 1669, 501, 2271, 1130, 6093, 741, 6948, 7985, 17088, 925, 1751, 1155, 11, 330, 35112, 24689, 1532, 3522, 37985, 3747, 31768, 4390, 2233, 16, 1669, 1532, 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 TestGetPullRequest(t *testing.T) { ts := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.Method != http.MethodGet { t.Errorf("Bad method: %s", r.Method) } if r.URL.Path != "/repos/k8s/kuber/pulls/12" { t.Errorf("Bad request path: %s", r.URL.Path) } pr := ...
explode_data.jsonl/6253
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 336 }
[ 2830, 3393, 1949, 36068, 1900, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 13470, 1220, 2836, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 743, 435, 20798, 961, 1758, 20798, 1949, 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...
4
func TestSpec(t *testing.T) { defer ClearTask() wg := &sync.WaitGroup{} wg.Add(2) tk1 := NewTask("tk1", "0 12 * * * *", func() error { fmt.Println("tk1"); return nil }) tk2 := NewTask("tk2", "0,10,20 * * * * *", func() error { fmt.Println("tk2"); wg.Done(); return nil }) tk3 := NewTask("tk3", "0 10 * * * *", fun...
explode_data.jsonl/33788
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 243 }
[ 2830, 3393, 8327, 1155, 353, 8840, 836, 8, 341, 16867, 12023, 6262, 2822, 72079, 1669, 609, 12996, 28384, 2808, 16094, 72079, 1904, 7, 17, 340, 3244, 74, 16, 1669, 1532, 6262, 445, 6242, 16, 497, 330, 15, 220, 16, 17, 353, 353, 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...
1
func Test_NewConfigImpl(t *testing.T) { type args struct { routerConfig *v2.RouterConfiguration } FALSE := false tests := []struct { name string args args want *configImpl }{ { name: "case1", args: args{ routerConfig: &v2.RouterConfiguration{ RouterConfigurationConfig: v2.RouterConfigur...
explode_data.jsonl/46016
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 836 }
[ 2830, 3393, 39582, 2648, 9673, 1155, 353, 8840, 836, 8, 1476, 13158, 2827, 2036, 341, 197, 67009, 2648, 353, 85, 17, 31413, 7688, 198, 197, 630, 12727, 5720, 1669, 895, 271, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 312...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServicedCLI_CmdServiceList_all(t *testing.T) { expected, err := DefaultServiceAPITest.GetServices() if err != nil { t.Fatal(err) } var actual []*service.Service output := pipe(InitServiceAPITest, "serviced", "service", "list", "--verbose") if err := json.Unmarshal(output, &actual); err != nil { t.Fa...
explode_data.jsonl/18997
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 256 }
[ 2830, 3393, 39159, 7572, 63959, 98253, 1860, 852, 5705, 1155, 353, 8840, 836, 8, 341, 42400, 11, 1848, 1669, 7899, 1860, 2537, 952, 477, 2234, 11025, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 2405, 5042, 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...
6
func TestDynamoDBTable(t *testing.T) { tests := []struct { test string dirName string mocks func(*repository.MockDynamoDBRepository, *mocks.AlerterInterface) wantErr error }{ { test: "no DynamoDB Table", dirName: "dynamodb_table_empty", mocks: func(client *repository.MockDynamoDBRepository,...
explode_data.jsonl/59895
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1382 }
[ 2830, 3393, 35, 85608, 3506, 2556, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 18185, 262, 914, 198, 197, 48532, 675, 914, 198, 197, 2109, 25183, 256, 2915, 4071, 23319, 24664, 35, 85608, 3506, 4624, 11, 353, 1671...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateSecp256k1MultisigScript(t *testing.T) { var publicKeys [][]byte key, err := hex.DecodeString("032edb83018b57ddeb9bcc7287c5cc5da57e6e0289d31c9e98cb361e88678d6288") if err != nil { assert.Error(t, err) } publicKeys = append(publicKeys, key) key, err = hex.DecodeString("033aeb3fdbfaac72e9e34c558...
explode_data.jsonl/8438
{ "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, 31115, 8430, 79, 17, 20, 21, 74, 16, 40404, 285, 343, 5910, 1155, 353, 8840, 836, 8, 341, 2405, 584, 8850, 52931, 3782, 271, 23634, 11, 1848, 1669, 12371, 56372, 703, 445, 15, 18, 17, 93727, 23, 18, 15, 16, 23, 65, 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...
6
func TestDeletionOfMultipleIngressAnnotations(t *testing.T) { iCmd := RecreateCommand("ingress", "-n", "test-2", "-a", "--remove-annotations", "anno1, anno2, anno3") mustExecute(t, iCmd) ingressesAfter := mustLsIngress(t, "test-2") for _, ingress := range ingressesAfter { for annotation := range ingr...
explode_data.jsonl/68721
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 202 }
[ 2830, 3393, 1912, 52625, 2124, 32089, 641, 2483, 21418, 1155, 353, 8840, 836, 8, 341, 8230, 15613, 1669, 4067, 964, 4062, 445, 287, 673, 756, 197, 197, 34294, 77, 756, 197, 197, 1, 1944, 12, 17, 756, 197, 197, 34294, 64, 756, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestSyscallN(t *testing.T) { if _, err := exec.LookPath("gcc"); err != nil { t.Skip("skipping test: gcc is missing") } if runtime.GOARCH != "amd64" { t.Skipf("skipping test: GOARCH=%s", runtime.GOARCH) } for arglen := 0; arglen <= runtime.MaxArgs; arglen++ { arglen := arglen t.Run(fmt.Sprintf("arg-%d...
explode_data.jsonl/82614
{ "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, 32792, 6659, 45, 1155, 353, 8840, 836, 8, 341, 743, 8358, 1848, 1669, 3883, 36851, 1820, 445, 70983, 5038, 1848, 961, 2092, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 25, 50917, 374, 7402, 1138, 197, 532, 743, 15592, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestACMEService_CreateAccount(t *testing.T) { httpmock.Activate() defer httpmock.DeactivateAndReset() httpmock.RegisterResponder("POST", "https://cert-manager.com/api/acme/v1/account", httpmock.ResponderFromResponse(&http.Response{ Status: strconv.Itoa(201), StatusCode: 201, Header: http....
explode_data.jsonl/40538
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 256 }
[ 2830, 3393, 1706, 87711, 1017, 34325, 7365, 1155, 353, 8840, 836, 8, 341, 28080, 16712, 14140, 731, 741, 16867, 1758, 16712, 8934, 16856, 3036, 14828, 741, 28080, 16712, 19983, 30884, 445, 2946, 497, 330, 2428, 1110, 12246, 44896, 905, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRender(t *testing.T) { tests := []struct { description string renderConfig *latest.RenderConfig labels map[string]string expected string }{ { description: "single manifest with no labels", renderConfig: &latest.RenderConfig{ Generate: latest.Generate{RawK8s: []string{"pod.yaml"...
explode_data.jsonl/81011
{ "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, 6750, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 220, 914, 198, 197, 33921, 2648, 353, 19350, 27386, 2648, 198, 197, 95143, 981, 2415, 14032, 30953, 198, 197, 42400, 257, 914, 198, 197, 59403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetFileSize(t *testing.T) { path := "http://dl.360safe.com/setup.exe" size, err := GetFileSize(path) if err != nil { t.Error("url size error") } else { t.Log(fmt.Sprintf("size = %d", size)) t.Log("pass") } path = "http:adasd/adas/d/asd" size, err = GetFileSize(path) if err != nil { t.Log(err) ...
explode_data.jsonl/30422
{ "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, 1949, 67649, 1155, 353, 8840, 836, 8, 341, 26781, 1669, 330, 1254, 1110, 8736, 13, 18, 21, 15, 18675, 905, 77443, 19399, 698, 13832, 11, 1848, 1669, 2126, 67649, 5581, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 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...
3
func TestCmdStreamBad(t *testing.T) { // TODO Windows: Figure out why this is failing in CI but not locally if runtime.GOOS == "windows" { t.Skip("Failing on Windows CI machines") } badCmd := exec.Command("sh", "-c", "echo hello; echo >&2 error couldn\\'t reverse the phase pulser; exit 1") out, err := cmdStream(...
explode_data.jsonl/79234
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 267 }
[ 2830, 3393, 15613, 3027, 17082, 1155, 353, 8840, 836, 8, 341, 197, 322, 5343, 5515, 25, 19037, 700, 3170, 419, 374, 21394, 304, 20694, 714, 537, 23490, 198, 743, 15592, 97574, 3126, 621, 330, 27077, 1, 341, 197, 3244, 57776, 445, 37, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFloat32Positive(t *testing.T) { assert := assert.New(t) var verr error var val float32 = 5.0 verr = Float32(&val).Positive()() assert.Nil(verr) verr = Float32(nil).Positive()() assert.NotNil(verr) assert.Nil(ErrValue(verr)) assert.Equal(ErrFloat32Positive, ErrCause(verr)) val = -5.0 verr = Float3...
explode_data.jsonl/11545
{ "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, 5442, 18, 17, 35490, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 2405, 71467, 1465, 198, 2405, 1044, 2224, 18, 17, 284, 220, 20, 13, 15, 198, 197, 423, 81, 284, 13001, 18, 17, 2099, 831, 568, 35490...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnmarshal_WithInteger(t *testing.T) { type testStruct struct { Intval int64 } testUnmarshal(t, []testcase{ {`intval = 0`, nil, &testStruct{0}}, {`intval = +0`, nil, &testStruct{0}}, {`intval = -0`, nil, &testStruct{-0}}, {`intval = 1`, nil, &testStruct{1}}, {`intval = +1`, nil, &testStruct{1}}, ...
explode_data.jsonl/52953
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 869 }
[ 2830, 3393, 1806, 27121, 62, 2354, 3486, 1155, 353, 8840, 836, 8, 341, 13158, 1273, 9422, 2036, 341, 197, 57152, 831, 526, 21, 19, 198, 197, 532, 18185, 1806, 27121, 1155, 11, 3056, 1944, 5638, 515, 197, 197, 90, 63, 57602, 284, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUnmarshal(t *testing.T) { t.Parallel() tests := []struct { name string hcl string want interface{} }{ {"Empty", "", hclDict{}}, {"Empty list", "[]", hclList{}}, {"List of int", "[1,2,3]", hclList{1, 2, 3}}, {"Array of map", "a { b { c { d = 1 e = 2 }}}", hclDict{"a": hclDict{"b": hclDict{"c"...
explode_data.jsonl/60153
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 293 }
[ 2830, 3393, 1806, 27121, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 9598, 564, 220, 914, 198, 197, 50780, 3749, 16094, 197, 59403, 197, 197, 4913, 3522, 497, 7342, 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 TestPlatformTestSuite(t *testing.T) { if testing.Short() { return } suite.Run(t, new(DeployFunctionTestSuite)) suite.Run(t, new(UpdateFunctionTestSuite)) suite.Run(t, new(DeleteFunctionTestSuite)) suite.Run(t, new(DeployAPIGatewayTestSuite)) suite.Run(t, new(ProjectTestSuite)) }
explode_data.jsonl/6199
{ "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, 17296, 2271, 28000, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 853, 198, 197, 532, 96572, 16708, 1155, 11, 501, 5432, 747, 1989, 5152, 2271, 28000, 1171, 96572, 16708, 1155, 11, 501, 7, 4289, 5152, 2271...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestEventMappingStatsXPack(t *testing.T) { files, err := filepath.Glob("./_meta/test/stats-legacy.*.json") require.NoError(t, err) for _, f := range files { input, err := ioutil.ReadFile(f) require.NoError(t, err) reporter := &mbtest.CapturingReporterV2{} now := time.Now() err = eventMappingStatsX...
explode_data.jsonl/29490
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 1556, 6807, 16635, 27375, 473, 1155, 353, 8840, 836, 8, 1476, 74075, 11, 1848, 1669, 26054, 1224, 1684, 13988, 62, 5490, 12697, 94933, 12, 39884, 4908, 13, 2236, 1138, 17957, 35699, 1155, 11, 1848, 692, 2023, 8358, 282, 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 TestGetStateHTTP(t *testing.T) { MarkIntegrationTest(t, CanRunWithoutGcp) httpAddr := randomPort() setupSkaffoldWithArgs(t, "--rpc-http-port", httpAddr) time.Sleep(3 * time.Second) // give skaffold time to process all events success := false var httpState proto.State for i := 0; i < readRetries; i++ { h...
explode_data.jsonl/22970
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 1949, 1397, 9230, 1155, 353, 8840, 836, 8, 341, 197, 8949, 52464, 2271, 1155, 11, 2980, 6727, 26040, 38, 4672, 692, 28080, 13986, 1669, 4194, 7084, 741, 84571, 19290, 2649, 813, 2354, 4117, 1155, 11, 14482, 29414, 71312, 414...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidatePodStatusUpdate(t *testing.T) { tests := []struct { new core.Pod old core.Pod err string test string }{ { core.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", }, Spec: core.PodSpec{ NodeName: "node1", }, Status: core.PodStatus{ NominatedNodeName: "n...
explode_data.jsonl/1032
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1241 }
[ 2830, 3393, 17926, 23527, 2522, 4289, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 8638, 220, 6200, 88823, 198, 197, 61828, 220, 6200, 88823, 198, 197, 9859, 220, 914, 198, 197, 18185, 914, 198, 197, 59403, 197, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestDomainAnchor(t *testing.T) { testInputs(t, ` ||ads.example.com ||foo.com/baz.gif `, []TestInput{ {URL: "http://ads.example.com/foo.gif", Matched: true}, {URL: "http://server1.ads.example.com/foo.gif", Matched: true}, {URL: "https://ads.example.com:8000/foo.gif", Matched: true}, {URL: "http://ads...
explode_data.jsonl/81616
{ "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, 13636, 14677, 1155, 353, 8840, 836, 8, 341, 18185, 31946, 1155, 11, 22074, 8484, 7664, 7724, 905, 198, 8484, 7975, 905, 3470, 1370, 16008, 198, 12892, 197, 197, 1294, 2271, 2505, 515, 298, 197, 90, 3144, 25, 330, 1254, 111...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEscapePath(t *testing.T) { jsonStr := `{ "test":{ "*":"valZ", "*v":"val0", "keyv*":"val1", "key*v":"val2", "keyv?":"val3", "key?v":"val4", "keyv.":"val5", "key.v":"val6", "keyk*":{"key?":"val7"} } }` testEscapePath(t, jsonStr, "test.\\*", "valZ") testEscapePath(t, jsonStr, "...
explode_data.jsonl/43414
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 358 }
[ 2830, 3393, 48124, 1820, 1155, 353, 8840, 836, 8, 341, 30847, 2580, 1669, 1565, 515, 197, 197, 1, 1944, 12602, 298, 197, 61593, 3252, 831, 57, 756, 298, 197, 61593, 85, 3252, 831, 15, 756, 298, 197, 1, 792, 85, 9, 3252, 831, 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 TestUpdateClusterTemplateInvalidUpdate(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleUpdateClusterTemplateInvalidUpdate(t) updateOpts := []clustertemplates.UpdateOptsBuilder{ clustertemplates.UpdateOpts{ Op: clustertemplates.ReplaceOp, Path: "/master_lb_enabled", }, clustertempla...
explode_data.jsonl/20370
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 299 }
[ 2830, 3393, 4289, 28678, 7275, 7928, 4289, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 2822, 197, 6999, 4289, 28678, 7275, 7928, 4289, 1155, 692, 27175, 43451, 1669, 3056, 564, 590, 529, 76793, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTemp1(t *testing.T) { edges := [][]int{ []int{1, 3, 5}, []int{2, 3, 2}, []int{3, 2, 7}, []int{1, 2, 0}, []int{2, 3, 2}, []int{3, 2, 0}, []int{2, 2, 5}, } temp(3, edges) }
explode_data.jsonl/52279
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 12151, 16, 1155, 353, 8840, 836, 8, 341, 197, 16900, 1669, 52931, 396, 515, 197, 197, 1294, 396, 90, 16, 11, 220, 18, 11, 220, 20, 1583, 197, 197, 1294, 396, 90, 17, 11, 220, 18, 11, 220, 17, 1583, 197, 197, 1294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBadChunkData(t *testing.T) { testDecodeErr(t, "") testDecodeErr(t, "null") testDecodeErr(t, "42") testDecodeErr(t, "\"null\"") testDecodeErr(t, "{}") testDecodeErr(t, "[[]") testDecodeErr(t, "[null]") testDecodeErr(t, `[[hello world]]`) testDecodeErr(t, `[[""hello world""]]`) testDecodeErr(t, `[["\...
explode_data.jsonl/23249
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 329 }
[ 2830, 3393, 17082, 28304, 1043, 1155, 353, 8840, 836, 8, 341, 18185, 32564, 7747, 1155, 11, 14676, 18185, 32564, 7747, 1155, 11, 330, 2921, 1138, 18185, 32564, 7747, 1155, 11, 330, 19, 17, 1138, 18185, 32564, 7747, 1155, 11, 15898, 2921...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFileHelper_GetPathFromPathFileName_14(t *testing.T) { fh := FileHelper{} commonDir := fh.AdjustPathSlash(".\\pathfilego\\003_filehelper\\common\\.git") expectedDir := fh.AdjustPathSlash(".\\pathfilego\\003_filehelper\\common") result, isEmpty, err := fh.GetPathFromPathFileName(commonDir) if err !...
explode_data.jsonl/14472
{ "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, 1703, 5511, 13614, 1820, 3830, 1820, 10903, 62, 16, 19, 1155, 353, 8840, 836, 8, 341, 220, 36075, 1669, 2887, 5511, 31483, 220, 4185, 6184, 1669, 36075, 17865, 4250, 1820, 88004, 5680, 3422, 2343, 1192, 3346, 3422, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestAliases(t *testing.T) { RegisterAlias("years", "age") assert.Equal(t, 40, Get("years")) Set("years", 45) assert.Equal(t, 45, Get("age")) }
explode_data.jsonl/5549
{ "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, 95209, 1155, 353, 8840, 836, 8, 341, 79096, 22720, 445, 41720, 497, 330, 424, 1138, 6948, 12808, 1155, 11, 220, 19, 15, 11, 2126, 445, 41720, 5455, 22212, 445, 41720, 497, 220, 19, 20, 340, 6948, 12808, 1155, 11, 220, 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
func TestControllerCleansUpOnPodDeletion(t *testing.T) { controller, r := newTestController("", "") // create an entry for the POD in one service account r.CreateEntry(&types.Entry{ Selectors: []*types.Selector{ namespaceSelector("NAMESPACE"), podNameSelector("PODNAME"), }, }) // create an entry for th...
explode_data.jsonl/32153
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 451 }
[ 2830, 3393, 2051, 34, 21708, 2324, 1925, 23527, 1912, 52625, 1155, 353, 8840, 836, 8, 341, 61615, 11, 435, 1669, 501, 2271, 2051, 19814, 85617, 197, 322, 1855, 458, 4343, 369, 279, 90501, 304, 825, 2473, 2692, 198, 7000, 7251, 5874, 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 TestUncompressDex(t *testing.T) { testCases := []struct { name string bp string uncompressedPlatform bool uncompressedUnbundled bool }{ { name: "normal", bp: ` android_app { name: "foo", srcs: ["a.java"], sdk_version: "current", } `, uncompressedPlatform: true, ...
explode_data.jsonl/58506
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1153 }
[ 2830, 3393, 1806, 38360, 35, 327, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 2233, 79, 256, 914, 271, 197, 20479, 45703, 17296, 220, 1807, 198, 197, 20479, 45703, 1806, 65, 1241, 832,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckCollectionMemberPolicy(t *testing.T) { // error case: no msp manager set, no collection config set err := checkCollectionMemberPolicy(nil, nil) assert.Error(t, err) mockmsp := new(mspmocks.MockMSP) mockmsp.On("DeserializeIdentity", []byte("signer0")).Return(&mspmocks.MockIdentity{}, nil) mockmsp.On...
explode_data.jsonl/46566
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1823 }
[ 2830, 3393, 3973, 6482, 9366, 13825, 1155, 353, 8840, 836, 8, 341, 197, 322, 1465, 1142, 25, 902, 296, 2154, 6645, 738, 11, 902, 4426, 2193, 738, 198, 9859, 1669, 1779, 6482, 9366, 13825, 27907, 11, 2092, 340, 6948, 6141, 1155, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewAnalyzeProjectUsecase_ShouldReturnNewInstance(t *testing.T) { uc := usecase.NewAnalyzeProjectUsecase(nil, nil, nil, nil, nil) assert.Empty(t, uc) }
explode_data.jsonl/64100
{ "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, 3564, 2082, 55856, 7849, 52, 5024, 519, 36578, 616, 5598, 3564, 2523, 1155, 353, 8840, 836, 8, 341, 197, 1754, 1669, 990, 5638, 7121, 2082, 55856, 7849, 52, 5024, 519, 27907, 11, 2092, 11, 2092, 11, 2092, 11, 2092, 692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCorruptDB_RecoverTable(t *testing.T) { t.Skip("") h := newDbCorruptHarnessWopt(t, &opt.Options{ WriteBuffer: 112 * opt.KiB, CompactionTableSize: 90 * opt.KiB, Filter: filter.NewBloomFilter(10), }) defer h.close() h.build(1000) h.compactMem() fmt.Println("---------------------...
explode_data.jsonl/45802
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 537 }
[ 2830, 3393, 10580, 6585, 3506, 50693, 3688, 2556, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 31764, 9598, 1669, 501, 7994, 10580, 6585, 74248, 54, 2912, 1155, 11, 609, 2912, 22179, 515, 197, 60373, 4095, 25, 260, 220, 16, 16, 17, 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...
4
func TestProcessEvent(t *testing.T) { // We want to check if the format of 1 New event creates a DD event accordingly. // We also want to check that filtered and empty events aren't submitted ev1 := createEvent(2, "default", "dca-789976f5d7-2ljx6", "ReplicaSet", "e6417a7f-f566-11e7-9749-0e4863e1cbf4", "default-sched...
explode_data.jsonl/54433
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1004 }
[ 2830, 3393, 75002, 1155, 353, 8840, 836, 8, 341, 197, 322, 1205, 1366, 311, 1779, 421, 279, 3561, 315, 220, 16, 1532, 1538, 11450, 264, 30904, 1538, 27079, 624, 197, 322, 1205, 1083, 1366, 311, 1779, 429, 18293, 323, 4287, 4357, 7629,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTxRWSetMarshalUnmarshal(t *testing.T) { txRW := &TxReadWriteSet{} nsRW1 := &NsReadWriteSet{"ns1", []*KVRead{&KVRead{"key1", version.NewHeight(1, 1)}}, []*KVWrite{&KVWrite{"key2", false, []byte("value2")}}, nil} nsRW2 := &NsReadWriteSet{"ns2", []*KVRead{&KVRead{"key3", version.NewHeight(1, 2)}}, [...
explode_data.jsonl/41719
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 782 }
[ 2830, 3393, 31584, 56368, 1649, 55438, 1806, 27121, 1155, 353, 8840, 836, 8, 341, 46237, 56368, 1669, 609, 31584, 58610, 1649, 16094, 84041, 56368, 16, 1669, 609, 47360, 58610, 1649, 4913, 4412, 16, 756, 197, 197, 1294, 9, 82707, 4418, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_CurrentProposal(t *testing.T) { type want struct { wantErr bool containsErr string currentProposal string } cases := []struct { name string inputHanler http.Handler want }{ { "handles RPC error", gtGoldenHTTPMock(currentProposalHandlerMock(readResponse(rpcerrors), b...
explode_data.jsonl/48374
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 556 }
[ 2830, 3393, 40735, 98637, 1155, 353, 8840, 836, 8, 341, 13158, 1366, 2036, 341, 197, 50780, 7747, 260, 1807, 198, 197, 197, 13372, 7747, 257, 914, 198, 197, 20121, 98637, 914, 198, 197, 630, 1444, 2264, 1669, 3056, 1235, 341, 197, 116...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFindStrongChecksum(t *testing.T) { i := makeChecksumIndex([]*syncpb.ChunkChecksum{ {BlockIndex: 0, WeakHash: weakA, StrongHash: []byte("b")}, {BlockIndex: 1, WeakHash: weakB, StrongHash: []byte("c")}, {BlockIndex: 2, WeakHash: weakB, StrongHash: []byte("d")}, }) result := i.FindWeakChecksum(weakB) s...
explode_data.jsonl/10912
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 9885, 47586, 73190, 1155, 353, 8840, 836, 8, 341, 8230, 1669, 1281, 73190, 1552, 85288, 12996, 16650, 6353, 3122, 73190, 515, 197, 197, 90, 4713, 1552, 25, 220, 15, 11, 41164, 6370, 25, 7469, 32, 11, 26099, 6370, 25, 3056,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProjectCreateTwoProjects(t *testing.T) { dir1, err := ioutil.TempDir("", testDir) if err != nil { t.Fatalf("Failed to create a temporary directory") } defer os.RemoveAll(dir1) dir2, err := ioutil.TempDir("", testDir) if err != nil { t.Fatalf("Failed to create a temporary directory") } defer os.Rem...
explode_data.jsonl/81773
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 278 }
[ 2830, 3393, 7849, 4021, 11613, 29958, 1155, 353, 8840, 836, 8, 341, 48532, 16, 11, 1848, 1669, 43144, 65009, 6184, 19814, 1273, 6184, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 9408, 311, 1855, 264, 13340, 6220, 1138, 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...
7
func TestTestBool(t *testing.T) { abi, err := JSON(strings.NewReader(jsondata2)) if err != nil { t.Error(err) t.FailNow() } if _, err := abi.Pack("bool", true); err != nil { t.Error(err) } }
explode_data.jsonl/64553
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 92 }
[ 2830, 3393, 2271, 11233, 1155, 353, 8840, 836, 8, 341, 197, 25084, 11, 1848, 1669, 4718, 51442, 68587, 9304, 691, 17, 1171, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 3244, 57243, 7039, 741, 197, 630, 743, 8358, 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 ]
3
func TestSyncEventTarget_Emit(t *testing.T) { target:=NewSyncEventTarget() finishCh:=make(chan struct{},1) target.On(func() { finishCh<- struct{}{} }) target.Emit() select { case <-finishCh: case <-time.After(time.Second): t.Failed() } }
explode_data.jsonl/71314
{ "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, 12154, 1556, 6397, 2089, 1763, 1155, 353, 8840, 836, 8, 341, 28861, 14209, 3564, 12154, 1556, 6397, 741, 1166, 18176, 1143, 14209, 6927, 35190, 2036, 22655, 16, 340, 28861, 8071, 18552, 368, 341, 197, 1166, 18176, 1143, 45342,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSerializeMetricFloat(t *testing.T) { now := time.Now() tags := map[string]string{ "cpu": "cpu0", } fields := map[string]interface{}{ "usage_idle": float64(91.5), } m, err := metric.New("cpu", tags, fields, now) assert.NoError(t, err) s, _ := NewSerializer(0) var buf []byte buf, err = s.Serialize...
explode_data.jsonl/47348
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 15680, 54310, 5442, 1155, 353, 8840, 836, 8, 341, 80922, 1669, 882, 13244, 741, 3244, 2032, 1669, 2415, 14032, 30953, 515, 197, 197, 1, 16475, 788, 330, 16475, 15, 756, 197, 532, 55276, 1669, 2415, 14032, 31344, 67066, 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 TestClient_Do(t *testing.T) { middle := &mockMiddleware{} middle.Init() tests := []struct { name string cfg config.Spec wantErr bool middleware middleware.Middleware }{ { name: "valid mqtt receive", cfg: config.Spec{ Name: "messaging-mqtt", Kind: "messaging.mqtt", Pr...
explode_data.jsonl/19133
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 585 }
[ 2830, 3393, 2959, 93481, 1155, 353, 8840, 836, 8, 341, 2109, 3310, 1669, 609, 16712, 24684, 16094, 2109, 3310, 26849, 741, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 50286, 286, 2193, 36473, 198, 197, 50780, 7747, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAddContext(t *testing.T) { conf, cleanup := testutil.InitConfig(t) defer cleanup(t) co := testutil.DummyContextOptions() context := conf.AddContext(co) assert.EqualValues(t, conf.Contexts[co.Name], context) }
explode_data.jsonl/57903
{ "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, 2212, 1972, 1155, 353, 8840, 836, 8, 341, 67850, 11, 21290, 1669, 1273, 1314, 26849, 2648, 1155, 340, 16867, 21290, 1155, 692, 197, 1015, 1669, 1273, 1314, 909, 8574, 1972, 3798, 741, 28413, 1669, 2335, 1904, 1972, 19494, 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
func TestEventTooLarge(t *testing.T) { ch := setupTest(t) // post a request that issues an event too large tx, _, err := ch.PostRequestSyncTx( solo.NewCallParams(manyEventsContract.Name, funcBigEvent.Name).WithIotas(1), nil, ) require.Error(t, err) // error expected (event too large) reqs, err := ch.Env.Requ...
explode_data.jsonl/69726
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 413 }
[ 2830, 3393, 1556, 31246, 34253, 1155, 353, 8840, 836, 8, 341, 23049, 1669, 6505, 2271, 1155, 692, 197, 322, 1736, 264, 1681, 429, 4714, 458, 1538, 2238, 3460, 198, 46237, 11, 8358, 1848, 1669, 521, 23442, 1900, 12154, 31584, 1006, 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 TestGetV3Space(t *testing.T) { Convey("Get V3 Space", t, func() { setup(MockRoute{"GET", "/v3/spaces/space-guid", []string{getV3SpacePayload}, "", http.StatusOK, "", nil}, t) defer teardown() c := &Config{ApiAddress: server.URL, Token: "foobar"} client, err := NewClient(c) So(err, ShouldBeNil) space...
explode_data.jsonl/54701
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 341 }
[ 2830, 3393, 1949, 53, 18, 9914, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 1949, 647, 18, 11487, 497, 259, 11, 2915, 368, 341, 197, 84571, 66436, 4899, 4913, 3806, 497, 3521, 85, 18, 26734, 2434, 2687, 1306, 83692, 497, 3056, 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...
1
func TestOverrides(t *testing.T) { fd := &FakeSTI{} sti, err := New( &api.Config{ DockerConfig: &api.DockerConfig{Endpoint: "unix:///var/run/docker.sock"}, }, build.Overrides{ Downloader: fd, }, ) if err != nil { t.Fatal(err) } if sti.source != fd { t.Errorf("Override of downloader not set: %#v"...
explode_data.jsonl/59433
{ "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, 80010, 1155, 353, 8840, 836, 8, 341, 61721, 1669, 609, 52317, 784, 40, 16094, 18388, 72, 11, 1848, 1669, 1532, 1006, 197, 197, 5, 2068, 10753, 515, 298, 10957, 13659, 2648, 25, 609, 2068, 909, 13659, 2648, 90, 27380, 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 TestTrackFunctionsFailingGET(t *testing.T) { assert := assert.New(t) httpmock.Activate() defer httpmock.DeactivateAndReset() httpmock.RegisterResponder( "GET", "http://com.acme.collector/i", httpmock.NewStringResponder(404, ""), ) tracker := InitTracker( RequireEmitter(InitEmitter( RequireCollec...
explode_data.jsonl/37651
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 344 }
[ 2830, 3393, 15667, 25207, 37, 14277, 3806, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 28080, 16712, 14140, 731, 741, 16867, 1758, 16712, 8934, 16856, 3036, 14828, 2822, 28080, 16712, 19983, 30884, 1006, 197, 197, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestApplicationStatusChangeEventGetEvent(t *testing.T) { tests := []struct { name string appID string event events.ApplicationEventType state string wantEvent events.ApplicationEventType }{ {TestEventName, "testAppId001", events.SubmitApplication, "SubmitApplication", events.SubmitAp...
explode_data.jsonl/9778
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 229 }
[ 2830, 3393, 4988, 2522, 76498, 1949, 1556, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 28236, 915, 257, 914, 198, 197, 28302, 257, 4357, 17521, 47906, 198, 197, 24291, 257, 914, 198, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestRunInjectCmd(t *testing.T) { testCases := []injectCmd{ { inputFileName: "inject_gettest_deployment.bad.input.yml", stdErrGoldenFileName: "inject_gettest_deployment.bad.golden", exitCode: 1, }, { inputFileName: "inject_gettest_deployment.good.input.yml", stdOutGol...
explode_data.jsonl/22529
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 387 }
[ 2830, 3393, 6727, 13738, 15613, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 32133, 15613, 515, 197, 197, 515, 298, 22427, 10903, 25, 286, 330, 32133, 3062, 1944, 2259, 52799, 31563, 10046, 33936, 756, 298, 6736, 7747, 59790, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckForClient(t *testing.T) { defer func() { client = nil logger = nil }() Convey("Given a host", t, func() { host := "testhost" Convey("When checkForClient is called with no logger or client established", func() { err := checkForClient(host) Convey("Then an error should be returned", func() ...
explode_data.jsonl/9671
{ "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, 3973, 2461, 2959, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 25291, 284, 2092, 198, 197, 17060, 284, 2092, 198, 197, 69826, 93070, 5617, 445, 22043, 264, 3468, 497, 259, 11, 2915, 368, 341, 197, 63104, 1669,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIndent(t *testing.T) { input := `This has multiple lines ` expected := ` This has multiple lines` // Should chomp ending blank lines actual := Indent(" ", input) if d := cmp.Diff(actual, expected); d != "" { t.Errorf(d) } }
explode_data.jsonl/36897
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 42729, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 1565, 1986, 198, 4648, 198, 35673, 198, 7969, 198, 19324, 42400, 1669, 1565, 220, 1096, 198, 220, 702, 198, 220, 5248, 198, 220, 5128, 63, 442, 12260, 521, 14435, 13391, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenericArrayScanErrors(t *testing.T) { var sa [1]string var nis []sql.NullInt64 var pss *[]string for _, tt := range []struct { src, dest interface{} err string }{ {nil, pss, "destination *[]string is nil"}, {`{`, &sa, "unable to parse"}, {`{}`, &sa, "cannot convert ARRAY[0] to [1]string"...
explode_data.jsonl/5347
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 331 }
[ 2830, 3393, 19964, 1857, 26570, 13877, 1155, 353, 8840, 836, 8, 341, 2405, 822, 508, 16, 30953, 198, 2405, 308, 285, 3056, 3544, 23979, 1072, 21, 19, 198, 2405, 281, 778, 353, 1294, 917, 271, 2023, 8358, 17853, 1669, 2088, 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...
4
func TestCreateProduct(t *testing.T) { t.Parallel() migration := sqltest.New(t, sqltest.Options{ Force: *force, Path: "../../migrations", }) pool := migration.Setup(context.Background(), "") db := &DB{ Postgres: pool, } type args struct { ctx context.Context params inventory.CreateProductParams ...
explode_data.jsonl/25449
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1685 }
[ 2830, 3393, 4021, 4816, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2109, 5033, 1669, 5704, 1944, 7121, 1155, 11, 5704, 1944, 22179, 515, 197, 197, 18573, 25, 353, 8833, 345, 197, 69640, 25, 220, 10208, 76, 17824, 756, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestGetXWso2Endpoints(t *testing.T) { type getXWso2EndpointsTestItem struct { inputVendorExtensions map[string]interface{} inputEndpointName string result *EndpointCluster message string } dataItems := []getXWso2EndpointsTestItem{ { inputEndpointName: "x-wso2-produc...
explode_data.jsonl/28620
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 615 }
[ 2830, 3393, 76622, 54, 704, 17, 80786, 1155, 353, 8840, 836, 8, 341, 13158, 75656, 54, 704, 17, 80786, 2271, 1234, 2036, 341, 197, 22427, 44691, 31282, 2415, 14032, 31344, 16094, 197, 22427, 27380, 675, 257, 914, 198, 197, 9559, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEventCloseSuccess(t *testing.T) { event := NewEvent(5) closeProc = SimpleMockProc(1, 0, ErrorSuccess) err := event.Close() require.NoError(t, err) require.Equal(t, uintptr(0), event.handle) }
explode_data.jsonl/57220
{ "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, 1556, 7925, 7188, 1155, 353, 8840, 836, 8, 341, 28302, 1669, 1532, 1556, 7, 20, 340, 27873, 24508, 284, 8993, 11571, 24508, 7, 16, 11, 220, 15, 11, 4600, 7188, 340, 9859, 1669, 1538, 10421, 741, 17957, 35699, 1155, 11, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestFederationUsers(t *testing.T) { WithObjs(t, []TCObj{CDNs, Types, Tenants, Users, Parameters, Profiles, Statuses, Divisions, Regions, PhysLocations, CacheGroups, DeliveryServices, CDNFederations, FederationUsers}, func() { CreateTestInvalidFederationUsers(t) GetTestInvalidFederationIDUsers(t) }) }
explode_data.jsonl/48005
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 100 }
[ 2830, 3393, 37, 96013, 7137, 1155, 353, 8840, 836, 8, 341, 197, 2354, 4121, 2519, 1155, 11, 3056, 7749, 5261, 90, 6484, 47360, 11, 20768, 11, 17695, 1783, 11, 14627, 11, 13522, 11, 71727, 11, 8104, 288, 11, 8765, 6805, 11, 77347, 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 TestLocation_MarshalJSON(t *testing.T) { m1 := &Location{ LocationID: 1, BookNumber: sql.NullInt32{Int32: 2, Valid: true}, ChapterNumber: sql.NullInt32{Int32: 3, Valid: true}, DocumentID: sql.NullInt32{Int32: 4, Valid: true}, Track: sql.NullInt32{Int32: 5, Valid: true}, IssueTagN...
explode_data.jsonl/60847
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 385 }
[ 2830, 3393, 4707, 1245, 28423, 5370, 1155, 353, 8840, 836, 8, 341, 2109, 16, 1669, 609, 4707, 515, 197, 197, 4707, 915, 25, 257, 220, 16, 345, 197, 197, 7134, 2833, 25, 257, 5704, 23979, 1072, 18, 17, 90, 1072, 18, 17, 25, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestServiceTriggersRebuild(t *testing.T) { cache := func(objs ...interface{}) *KubernetesCache { cache := KubernetesCache{ FieldLogger: fixture.NewTestLogger(t), } for _, o := range objs { cache.Insert(o) } return &cache } service := func(namespace, name string) *v1.Service { return &v1.Serv...
explode_data.jsonl/66533
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2394 }
[ 2830, 3393, 1860, 1282, 21385, 693, 5834, 1155, 353, 8840, 836, 8, 1476, 52680, 1669, 2915, 6779, 82, 2503, 4970, 28875, 353, 42, 29827, 8233, 341, 197, 52680, 1669, 66374, 8233, 515, 298, 94478, 7395, 25, 12507, 7121, 2271, 7395, 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...
2
func TestLogsConsumerGroupHandler_error_nextConsumer(t *testing.T) { consumerError := errors.New("failed to consumer") c := logsConsumerGroupHandler{ unmarshaler: &otlpLogsPbUnmarshaler{}, logger: zap.NewNop(), ready: make(chan bool), nextConsumer: consumertest.NewErr(consumerError), obsrecv: ...
explode_data.jsonl/79405
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 339 }
[ 2830, 3393, 51053, 29968, 2808, 3050, 4096, 11257, 29968, 1155, 353, 8840, 836, 8, 341, 37203, 11761, 1454, 1669, 5975, 7121, 445, 16091, 311, 11502, 1138, 1444, 1669, 18422, 29968, 2808, 3050, 515, 197, 20479, 27121, 261, 25, 220, 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 TestMulti(t *testing.T) { tests := []struct { delta Delta f func(a, b float64) float64 firstValue float64 }{ { Delta{ Type: COUNTER, Method: "inc", }, func(before, value float64) float64 { return before + 1 }, 0, }, { Delta{ Type: COUNTER, Meth...
explode_data.jsonl/39905
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1526 }
[ 2830, 3393, 20358, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 85435, 414, 24957, 198, 197, 1166, 688, 2915, 2877, 11, 293, 2224, 21, 19, 8, 2224, 21, 19, 198, 197, 42190, 1130, 2224, 21, 19, 198, 197, 59403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVerifyChecksumPatchNegative(t *testing.T) { t.Parallel() fName := "TestVerifyChecksumPatchNegative" defer cleanup(fName) writeOldFile(fName, t) patch := new(bytes.Buffer) anotherFile := []byte{0x77, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66} err := binarydist.Diff(bytes.NewReader(oldFile), bytes.NewReader(an...
explode_data.jsonl/73986
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 247 }
[ 2830, 3393, 32627, 73190, 43622, 38489, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1166, 675, 1669, 330, 2271, 32627, 73190, 43622, 38489, 698, 16867, 21290, 955, 675, 340, 24945, 18284, 1703, 955, 675, 11, 259, 692, 3223, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestReconcileOnPendingPipelineRun(t *testing.T) { // TestReconcileOnPendingPipelineRun runs "Reconcile" on a PipelineRun that is pending. // It verifies that reconcile is successful, the pipeline status updated and events generated. prs := []*v1beta1.PipelineRun{parse.MustParsePipelineRun(t, ` metadata: name:...
explode_data.jsonl/27294
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 468 }
[ 2830, 3393, 693, 40446, 457, 1925, 32027, 34656, 6727, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 693, 40446, 457, 1925, 32027, 34656, 6727, 8473, 330, 693, 40446, 457, 1, 389, 264, 40907, 6727, 429, 374, 15280, 624, 197, 322, 1084...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlocker_statusServer(t *testing.T) { cli := statusServerTestConfig() b := New(cli) b.Pools["api.github.com/tmax-cloud/cicd-operator"] = NewPRPool(testICNamespace, testICName) srv := httptest.NewServer(b.newRouter()) // TEST 1 resp, err := http.Get(fmt.Sprintf("%s/status", srv.URL)) if err != nil { ...
explode_data.jsonl/1504
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 361 }
[ 2830, 3393, 4713, 261, 4773, 5475, 1155, 353, 8840, 836, 8, 341, 86448, 1669, 2639, 5475, 2271, 2648, 2822, 2233, 1669, 1532, 70249, 340, 2233, 1069, 6178, 1183, 2068, 11021, 905, 5523, 2810, 59197, 2899, 292, 67, 94687, 1341, 284, 1532...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUploadSize(t *testing.T) { _, b := newRandomBlob(64) readFromLocationPath := "/v2/test/upload/readfrom/uploads/testid" writeLocationPath := "/v2/test/upload/readfrom/uploads/testid" m := testutil.RequestResponseMap([]testutil.RequestResponseMapping{ { Request: testutil.Request{ Method: "GET", ...
explode_data.jsonl/23735
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 958 }
[ 2830, 3393, 13844, 1695, 1155, 353, 8840, 836, 8, 341, 197, 6878, 293, 1669, 501, 13999, 37985, 7, 21, 19, 340, 37043, 3830, 4707, 1820, 1669, 3521, 85, 17, 12697, 37173, 69199, 1499, 29581, 12697, 307, 698, 24945, 4707, 1820, 1669, 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...
6
func TestInvokeMoveWrongMark(t *testing.T) { stub := initContract(t) position := int32(1) actualContract, err := getLedgerContract(stub) if err != nil { t.Fatalf(err.Error()) } mark := tttPb.Mark_O if actualContract.State != tttPb.TttContract_XTURN { mark = tttPb.Mark_X } r, err := newMoveArgsBuilder("0...
explode_data.jsonl/67449
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 339 }
[ 2830, 3393, 17604, 9860, 29185, 8949, 1155, 353, 8840, 836, 8, 341, 18388, 392, 1669, 2930, 14067, 1155, 340, 35739, 1669, 526, 18, 17, 7, 16, 692, 88814, 14067, 11, 1848, 1669, 633, 60850, 1389, 14067, 5895, 392, 340, 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 TestActualContentLength(t *testing.T) { tests := []struct { req *http.Request want int64 }{ // Verify we don't read from Body: 0: { req: &http.Request{Body: panicReader{}}, want: -1, }, // nil Body means 0, regardless of ContentLength: 1: { req: &http.Request{Body: nil, ContentLength: 5...
explode_data.jsonl/16054
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 324 }
[ 2830, 3393, 28123, 2762, 4373, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 24395, 220, 353, 1254, 9659, 198, 197, 50780, 526, 21, 19, 198, 197, 59403, 197, 197, 322, 25429, 582, 1513, 944, 1349, 504, 13958, 510, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInstrumentationLibraryMetrics_Metrics(t *testing.T) { ms := NewInstrumentationLibraryMetrics() ms.InitEmpty() assert.EqualValues(t, NewMetricSlice(), ms.Metrics()) fillTestMetricSlice(ms.Metrics()) testValMetrics := generateTestMetricSlice() assert.EqualValues(t, testValMetrics, ms.Metrics()) }
explode_data.jsonl/19504
{ "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, 56324, 367, 16915, 27328, 1245, 13468, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 56324, 367, 16915, 27328, 741, 47691, 26849, 3522, 741, 6948, 12808, 6227, 1155, 11, 1532, 54310, 33236, 1507, 9829, 1321, 13468, 2398, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFirestoreListen(t *testing.T) { var expectedResponse *firestorepb.ListenResponse = &firestorepb.ListenResponse{} mockFirestore.err = nil mockFirestore.reqs = nil mockFirestore.resps = append(mockFirestore.resps[:0], expectedResponse) var formattedDatabase string = fmt.Sprintf("projects/%s/databases/%s"...
explode_data.jsonl/27392
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 401 }
[ 2830, 3393, 48513, 38714, 1155, 353, 8840, 836, 8, 341, 2405, 3601, 2582, 353, 10796, 4314, 16650, 68334, 2582, 284, 609, 10796, 4314, 16650, 68334, 2582, 31483, 77333, 48513, 18441, 284, 2092, 198, 77333, 48513, 1327, 26358, 284, 2092, 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...
8
func Test_New_No_Attrs(t *testing.T) { r := require.New(t) g, err := New(&Options{ Name: "widget", }) r.NoError(err) run := gentest.NewRunner() run.With(g) r.NoError(run.Run()) res := run.Results() f, err := res.Find("models/widget.go") r.NoError(err) tf := gogen.FmtTransformer() f, err = tf.Transfor...
explode_data.jsonl/6876
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 39582, 36989, 55581, 85385, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1373, 7121, 1155, 340, 3174, 11, 1848, 1669, 1532, 2099, 3798, 515, 197, 21297, 25, 330, 9797, 756, 197, 8824, 7000, 35699, 3964, 692, 56742, 1669, 15886,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResponseGzippedOutput(t *testing.T) { server := Gzip{Configs: []Config{ {ResponseFilters: []ResponseFilter{SkipCompressedFilter{}}}, }} server.Next = httpserver.HandlerFunc(func(w http.ResponseWriter, r *http.Request) (int, error) { w.Header().Set("Content-Encoding", "gzip") w.Write([]byte("gzipped")...
explode_data.jsonl/15903
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 217 }
[ 2830, 3393, 2582, 38, 89, 6450, 5097, 1155, 353, 8840, 836, 8, 341, 41057, 1669, 479, 9964, 90, 84905, 25, 3056, 2648, 515, 197, 197, 90, 2582, 28351, 25, 3056, 2582, 5632, 90, 35134, 1092, 14318, 5632, 90, 74869, 197, 47449, 41057, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRouting_activityHandler(t *testing.T) { data := url.Values{} data.Set("clientId", "123123") data.Set("activity", `{"active": true, "freeze": false}`) req, err := http.NewRequest("POST", "/actions/activity", strings.NewReader(data.Encode())) if err != nil { t.Fatal(err) } req.Header.Add("Content-Type...
explode_data.jsonl/62467
{ "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, 24701, 30026, 3050, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 2515, 35145, 16094, 8924, 4202, 445, 67683, 497, 330, 16, 17, 18, 16, 17, 18, 1138, 8924, 4202, 445, 7175, 497, 1565, 4913, 3028, 788, 830, 11, 330, 51638, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBroadcastDatatypeBadValue(t *testing.T) { bm, cancel := newTestBroadcast(t) defer cancel() mdm := bm.data.(*datamocks.Manager) mdm.On("VerifyNamespaceExists", mock.Anything, "ns1").Return(nil) mdm.On("CheckDatatype", mock.Anything, "ns1", mock.Anything).Return(nil) mim := bm.identity.(*identitymanagermoc...
explode_data.jsonl/78966
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 271 }
[ 2830, 3393, 43362, 45696, 20157, 17082, 1130, 1155, 353, 8840, 836, 8, 341, 2233, 76, 11, 9121, 1669, 501, 2271, 43362, 1155, 340, 16867, 9121, 741, 2109, 13849, 1669, 34868, 2196, 41399, 5911, 309, 25183, 58298, 340, 2109, 13849, 8071, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestS6aProxyServiceWitPLMNlist(t *testing.T) { config := generateS6aProxyConfigWithPLMNs() addr := startTestServer(t, config, false) // Set up a connection to the server. conn, err := grpc.Dial(addr, grpc.WithInsecure()) if err != nil { t.Fatalf("GRPC connect error: %v", err) return } defer conn.Close(...
explode_data.jsonl/81463
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 771 }
[ 2830, 3393, 50, 21, 64, 16219, 1860, 54, 275, 2916, 55181, 1607, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 6923, 50, 21, 64, 16219, 2648, 2354, 2916, 44, 47360, 741, 53183, 1669, 1191, 2271, 5475, 1155, 11, 2193, 11, 895, 692, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestGameServerDisableServiceAccount(t *testing.T) { t.Parallel() gs := &GameServer{ObjectMeta: metav1.ObjectMeta{Name: "gameserver", UID: "1234"}, Spec: GameServerSpec{ Template: corev1.PodTemplateSpec{ Spec: corev1.PodSpec{ Containers: []corev1.Container{{Name: "container", Image: "container/image"}},...
explode_data.jsonl/19635
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 286 }
[ 2830, 3393, 4868, 5475, 25479, 1860, 7365, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 3174, 82, 1669, 609, 4868, 5475, 90, 1190, 12175, 25, 77520, 16, 80222, 63121, 25, 330, 34568, 2836, 497, 37428, 25, 330, 16, 17, 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 TestPvtdataResultsItr(t *testing.T) { testEnv := testEnvs[0] testEnv.init(t, "test-pvtdata-range-queries") defer testEnv.cleanup() txMgr := testEnv.getTxMgr().(*LockBasedTxMgr) updates := privacyenabledstate.NewUpdateBatch() putPvtUpdates(t, updates, "ns1", "coll1", "key1", []byte("pvt_value1"), version.Ne...
explode_data.jsonl/73743
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 590 }
[ 2830, 3393, 47, 9708, 691, 9801, 40, 376, 1155, 353, 8840, 836, 8, 341, 18185, 14359, 1669, 1273, 1702, 11562, 58, 15, 921, 18185, 14359, 8271, 1155, 11, 330, 1944, 2268, 9708, 691, 30508, 12, 42835, 1138, 16867, 1273, 14359, 87689, 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 TestMarshalJSON(t *testing.T) { s := Sample{Timestamp: 1653811620000, Value: 771479351.231} b, err := json.Marshal(s) assert.NoError(t, err) assert.True(t, len(b) > 1) }
explode_data.jsonl/63656
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 55438, 5370, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 19143, 90, 20812, 25, 220, 16, 21, 20, 18, 23, 16, 16, 21, 17, 15, 15, 15, 15, 11, 5162, 25, 220, 22, 22, 16, 19, 22, 24, 18, 20, 16, 13, 17, 18, 16, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIncompatibleSavepointFail(t *testing.T) { httpmock.Activate() defer httpmock.DeactivateAndReset() ctx := context.Background() responder := httpmock.NewStringResponder(500, incompatibleSavepointResponse) httpmock.RegisterResponder("POST", fakeSubmitURL, responder) client := getTestJobManagerClient() re...
explode_data.jsonl/32368
{ "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, 641, 34842, 8784, 2768, 19524, 1155, 353, 8840, 836, 8, 341, 28080, 16712, 14140, 731, 741, 16867, 1758, 16712, 8934, 16856, 3036, 14828, 741, 20985, 1669, 2266, 19047, 2822, 10202, 20328, 1669, 1758, 16712, 7121, 703, 30884, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInsert(t *testing.T) { Convey("Testing Insert/Update/Delete and Getters with data", t, func() { var p Prize Convey("Testing Insert", func() { err := p.Save() So(err, ShouldNotEqual, nil) p.Title = "Test Prize" err = p.Save() So(err, ShouldNotEqual, nil) p.Title = "Test Prize" p.Desc...
explode_data.jsonl/35735
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 758 }
[ 2830, 3393, 13780, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 16451, 17101, 14, 4289, 63675, 323, 2126, 5045, 448, 821, 497, 259, 11, 2915, 368, 341, 197, 2405, 281, 31193, 198, 197, 93070, 5617, 445, 16451, 17101, 497, 2915, 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...
3
func TestMetaBackend_configuredChangeCopy_singleState(t *testing.T) { // Create a temporary working directory that is empty td := tempDir(t) copy.CopyDir(testFixturePath("backend-change-single-to-single"), td) defer os.RemoveAll(td) defer testChdir(t, td)() // Register the single-state backend backendinit.Set("...
explode_data.jsonl/34325
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 511 }
[ 2830, 3393, 12175, 29699, 5332, 3073, 4072, 12106, 19487, 1397, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 264, 13340, 3238, 6220, 429, 374, 4287, 198, 76373, 1669, 2730, 6184, 1155, 340, 49124, 31770, 6184, 8623, 18930, 1820, 445, 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...
8
func TestInitialBoardAdvanceDraw(t *testing.T) { b := InitialBoard() b.P1.Direction = Left b.P2.Direction = Right w, _ := b.Advance() assert.Equal(t, w, (Winner)(Draw)) }
explode_data.jsonl/7800
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 73 }
[ 2830, 3393, 6341, 11932, 95027, 8137, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 4127, 11932, 2822, 2233, 1069, 16, 47282, 284, 13727, 198, 2233, 1069, 17, 47282, 284, 10083, 271, 6692, 11, 716, 1669, 293, 17865, 85, 681, 2822, 6948, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestReversiAnz33(t *testing.T) { r := NewReversiAnz() r.SetOwnEdgeSideTwoCnt(1) if r.GetOwnEdgeSideTwoCnt() != 1 { t.Errorf("NG") } }
explode_data.jsonl/23056
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 693, 3004, 72, 2082, 89, 18, 18, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 693, 3004, 72, 2082, 89, 741, 7000, 4202, 14182, 11656, 16384, 11613, 33747, 7, 16, 340, 743, 435, 2234, 14182, 11656, 16384, 11613, 33747, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddCompleteFileStaysWithinFileLimit(t *testing.T) { removeTestFiles() //Create some old files to clean up for i := 1; i < 10; i = i + 1 { createTestFile(i, t) } storage := getNewStorageManager() log.Printf("Minimum file size is %d", storage.MinFileSize()) log.Printf("Maximum no of files is %d", sto...
explode_data.jsonl/16212
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 269 }
[ 2830, 3393, 2212, 12548, 1703, 623, 942, 41961, 1703, 16527, 1155, 353, 8840, 836, 8, 341, 47233, 2271, 10809, 2822, 197, 322, 4021, 1045, 2310, 3542, 311, 4240, 705, 198, 2023, 600, 1669, 220, 16, 26, 600, 366, 220, 16, 15, 26, 600...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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