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 TestValidateDefaultValueType(t *testing.T) { type test struct { Type string Value string Format string expectedError error } tests := []test{ { "string", `"string"`, "", nil, }, { "string", "\"2012-11-01T22:08:41+00:00\"", "date-time", nil, }, { ...
explode_data.jsonl/32793
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1650 }
[ 2830, 3393, 17926, 41533, 929, 1155, 353, 8840, 836, 8, 341, 13158, 1273, 2036, 341, 197, 27725, 688, 914, 198, 197, 47399, 260, 914, 198, 197, 197, 4061, 286, 914, 198, 197, 42400, 1454, 1465, 198, 197, 532, 78216, 1669, 3056, 1944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPanicHandler(t *testing.T) { var buf bytes.Buffer h := PanicHandler(getLogger(&buf)) res := httptest.NewRecorder() req, _ := http.NewRequest("GET", "/users/", nil) c := routing.NewContext(res, req, h, handler3, handler2) err := c.Next() if assert.NotNil(t, err) { assert.Equal(t, "xyz", err.Error()) ...
explode_data.jsonl/11992
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 397 }
[ 2830, 3393, 47, 31270, 3050, 1155, 353, 8840, 836, 8, 341, 2405, 6607, 5820, 22622, 198, 9598, 1669, 83740, 3050, 5433, 7395, 2099, 5909, 4390, 10202, 1669, 54320, 70334, 7121, 47023, 741, 24395, 11, 716, 1669, 1758, 75274, 445, 3806, 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...
2
func TestEnsureFolder(t *testing.T) { t.Parallel() tests := []struct { give string want string }{ { give: "", want: "/", }, { give: "a", want: "a/", }, { give: "a/", want: "a/", }, { give: "a/b", want: "a/b/", }, { give: "a/", want: "a/", }, } for _, tt := ra...
explode_data.jsonl/81327
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 260 }
[ 2830, 3393, 64439, 13682, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 3174, 533, 914, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 515, 298, 3174, 533, 25, 8324, 298, 50780, 25, 3521, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHealthy(t *testing.T) { ctx := context.Background() d, err := CreateSession(ctx, wdAddress(), 1, nil) if err != nil { t.Fatal(err) } if err := d.Healthy(ctx); err != nil { t.Error(err) } if err := d.Quit(ctx); err != nil { t.Error(err) } if err := d.Healthy(ctx); err == nil { t.Error("got nil...
explode_data.jsonl/68731
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 151 }
[ 2830, 3393, 96113, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 2698, 11, 1848, 1669, 4230, 5283, 7502, 11, 45404, 4286, 1507, 220, 16, 11, 2092, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 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...
5
func TestPickRandom(t *testing.T) { for idx := 0; idx < 123; idx++ { bA1 := NewBitArray(123) bA1.SetIndex(idx, true) index, ok := bA1.PickRandom() if !ok { t.Fatal("Expected to pick element but got none") } if index != idx { t.Fatalf("Expected to pick element at %v but got wrong index", idx) } } }
explode_data.jsonl/77650
{ "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, 36953, 13999, 1155, 353, 8840, 836, 8, 341, 2023, 7187, 1669, 220, 15, 26, 7187, 366, 220, 16, 17, 18, 26, 7187, 1027, 341, 197, 2233, 32, 16, 1669, 1532, 8344, 1857, 7, 16, 17, 18, 340, 197, 2233, 32, 16, 4202, 1552...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteListener(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleListenerDeletionSuccessfully(t) res := listeners.Delete(fake.ServiceClient(), "4ec89087-d057-4e2c-911f-60a3b47ee304") th.AssertNoErr(t, res.Err) }
explode_data.jsonl/27553
{ "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, 6435, 2743, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 197, 6999, 2743, 1912, 52625, 35959, 1155, 692, 10202, 1669, 23562, 18872, 74138, 13860, 2959, 1507, 330, 19, 757, 23, 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 TestSimEvents(t *testing.T) { trans := logic.NewS() N := 10 ms := make([]z.Lit, N) carry := trans.T ins := make([]z.Lit, 8) all := trans.T for i := range ins { ins[i] = trans.Lit() all = trans.And(all, ins[i]) } allm := trans.T for i := range ms { m := trans.Latch(trans.F) ms[i] = m //trans.Set...
explode_data.jsonl/73102
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 580 }
[ 2830, 3393, 14027, 7900, 1155, 353, 8840, 836, 8, 341, 72453, 1669, 12218, 7121, 50, 741, 18317, 1669, 220, 16, 15, 198, 47691, 1669, 1281, 10556, 89, 1214, 275, 11, 451, 340, 1444, 11433, 1669, 1356, 836, 198, 197, 1330, 1669, 1281, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFind(t *testing.T) { items := []int{23, 24, 2, 5, 10} interfaceItems := make([]interface{}, len(items)) for i, v := range items { interfaceItems[i] = v } a := New(interfaceItems) value := a.Find(func(value interface{}, index int) bool { return value.(int) > 20 }) firstItem, _ := a.Get(0) if v...
explode_data.jsonl/47085
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 266 }
[ 2830, 3393, 9885, 1155, 353, 8840, 836, 8, 341, 46413, 1669, 3056, 396, 90, 17, 18, 11, 220, 17, 19, 11, 220, 17, 11, 220, 20, 11, 220, 16, 15, 532, 58915, 1564, 4353, 1669, 1281, 10556, 4970, 22655, 2422, 24337, 4390, 2023, 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...
1
func TestFoldersService_GetFolders(t *testing.T) { client, mux, _, teardown := setup() defer teardown() mux.HandleFunc("/space/789/folder", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "GET") fmt.Fprint(w, `{ "folders": [ { "id": "457", "name": "Updated Folder Name", ...
explode_data.jsonl/51558
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 951 }
[ 2830, 3393, 92779, 1860, 13614, 92779, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 11, 8358, 49304, 1669, 6505, 741, 16867, 49304, 2822, 2109, 2200, 63623, 4283, 8746, 14, 22, 23, 24, 6663, 2018, 497, 2915, 3622, 1758, 37508, 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 TestBuild(t *testing.T) { tests := []struct { description string dir string args []string }{ { description: "docker build", dir: "testdata/build", }, { description: "git tagger", dir: "testdata/tagPolicy", args: []string{"-p", "gitCommit"}, }, { ...
explode_data.jsonl/22937
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 469 }
[ 2830, 3393, 11066, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 914, 198, 197, 48532, 260, 914, 198, 197, 31215, 286, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 42407, 25, 330, 28648, 1936, 756, 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 TestSchedulerWithVolumeBinding(t *testing.T) { findErr := fmt.Errorf("find err") assumeErr := fmt.Errorf("assume err") bindErr := fmt.Errorf("bind err") client := clientsetfake.NewSimpleClientset() eventBroadcaster := events.NewBroadcaster(&events.EventSinkImpl{Interface: client.EventsV1beta1().Events("")}) ...
explode_data.jsonl/24714
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2262 }
[ 2830, 3393, 38878, 2354, 18902, 15059, 1155, 353, 8840, 836, 8, 341, 80603, 7747, 1669, 8879, 13080, 445, 3903, 1848, 1138, 197, 45051, 7747, 1669, 8879, 13080, 445, 45051, 1848, 1138, 2233, 484, 7747, 1669, 8879, 13080, 445, 7666, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSdot(t *testing.T) { ctx, handle, buffers := setupTest(t, []float32{1, 2, 3, 4, -2, -3, 5}, []float32{3, -1, 2, 3, -2, 0, 4, 2.5, 3.5}, []float32{0}) <-ctx.Run(func() error { var res float32 err := handle.Sdot(3, buffers[0], 1, buffers[1], 1, &res) if err != nil { t.Error(err) return nil } ...
explode_data.jsonl/70347
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 532 }
[ 2830, 3393, 50, 16119, 1155, 353, 8840, 836, 8, 341, 20985, 11, 3705, 11, 27389, 1669, 6505, 2271, 1155, 11, 3056, 3649, 18, 17, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 481, 17, 11, 481, 18, 11, 220, 20, 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...
9
func TestForNameShouldReturnErrorWhenNoService(t *testing.T) { svc, err := ForName("foo") assert.NotNil(t, err) assert.Equal(t, "Service 'foo' not found", err.Error()) assert.Equal(t, "*service.NotFound", reflect.TypeOf(svc).String()) }
explode_data.jsonl/18569
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 91 }
[ 2830, 3393, 2461, 675, 14996, 5598, 1454, 4498, 2753, 1860, 1155, 353, 8840, 836, 8, 341, 1903, 7362, 11, 1848, 1669, 1752, 675, 445, 7975, 1138, 6948, 93882, 1155, 11, 1848, 340, 6948, 12808, 1155, 11, 330, 1860, 364, 7975, 6, 537, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGroupBool(t *testing.T) { v := &Value{data: []bool{bool(true), bool(true), bool(true), bool(true), bool(true), bool(true)}} grouped := v.GroupBool(func(i int, val bool) string { return fmt.Sprintf("%v", i%2 == 0) }).data.(map[string][]bool) assert.Equal(t, 2, len(grouped)) assert.Equal(t, 3, len(grou...
explode_data.jsonl/23405
{ "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, 2808, 11233, 1155, 353, 8840, 836, 8, 1476, 5195, 1669, 609, 1130, 90, 691, 25, 3056, 2641, 90, 2641, 3715, 701, 1807, 3715, 701, 1807, 3715, 701, 1807, 3715, 701, 1807, 3715, 701, 1807, 3715, 9139, 630, 44260, 291, 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 Test_ExecuteGET(t *testing.T) { cmd := &command{ action: GET, key: "foo", } ds.Add("foo", "bar") // This is coupling with the current package dataStore. We can define a test interface impl. in the future. got, err := cmd.Execute() want := "bar" if err != nil { t.Fatal(err) } if got != want { ...
explode_data.jsonl/79583
{ "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, 83453, 3806, 1155, 353, 8840, 836, 8, 341, 25920, 1669, 609, 5631, 515, 197, 38933, 25, 7890, 345, 197, 23634, 25, 262, 330, 7975, 756, 197, 630, 83336, 1904, 445, 7975, 497, 330, 2257, 899, 442, 1096, 374, 57986, 448, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestIntArray_PopLeftsAndPopRights(t *testing.T) { gtest.C(t, func(t *gtest.T) { array := garray.NewIntArray() v, ok := array.PopLeft() t.Assert(v, 0) t.Assert(ok, false) t.Assert(array.PopLefts(10), nil) v, ok = array.PopRight() t.Assert(v, 0) t.Assert(ok, false) t.Assert(array.PopRights(10)...
explode_data.jsonl/47598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 514 }
[ 2830, 3393, 95338, 1088, 453, 5415, 82, 3036, 11598, 81875, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 11923, 1669, 342, 1653, 7121, 95338, 2822, 197, 5195, 11, 5394, 1669, 1334,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCancelSelectQuery(t *testing.T) { defer leaktest.AfterTest(t)() const queryToCancel = "SELECT * FROM generate_series(1,20000000)" var conn1 *gosql.DB var conn2 *gosql.DB tc := serverutils.StartTestCluster(t, 2, /* numNodes */ base.TestClusterArgs{ ReplicationMode: base.ReplicationManual, }) def...
explode_data.jsonl/54858
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 453 }
[ 2830, 3393, 9269, 3379, 2859, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 4777, 3239, 1249, 9269, 284, 330, 4858, 353, 4295, 6923, 35015, 7, 16, 11, 17, 15, 15, 15, 15, 15, 15, 15, 52294, 2405, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateKubernetesApiBaseUrlFor(t *testing.T) { t.Run("Generates correct URL when all elements are present", func(t *testing.T) { schemeHostAndPort := "ftp://some-server.example.com:666" namespace := "some-namespace" extraPath := "/starts/with/slash" url, err := generateKubernetesApiBaseUrlFor(schemeH...
explode_data.jsonl/18879
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 408 }
[ 2830, 3393, 31115, 42, 29827, 6563, 71587, 2461, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5531, 973, 4396, 5548, 979, 678, 5424, 525, 3042, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1903, 8058, 9296, 3036, 7084, 1669, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestEngine_WriteAndIndex(t *testing.T) { engine := NewDefaultEngine() defer engine.Close() // Calling WritePoints when the engine is not open will return // ErrEngineClosed. if got, exp := engine.Engine.WritePoints(context.TODO(), nil), storage.ErrEngineClosed; got != exp { t.Fatalf("got %v, expected %v", ...
explode_data.jsonl/5981
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 546 }
[ 2830, 3393, 4571, 31825, 3036, 1552, 1155, 353, 8840, 836, 8, 341, 80118, 1669, 1532, 3675, 4571, 741, 16867, 4712, 10421, 2822, 197, 322, 32291, 9645, 11411, 979, 279, 4712, 374, 537, 1787, 686, 470, 198, 197, 322, 15495, 4571, 26884, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadPaginatedResults(t *testing.T) { type response struct { labels []Label next string } cases := []struct { name string baseSuffix string initialPath string responses map[string]response expectedLabels []Label }{ { name: "regular pagination", initialPat...
explode_data.jsonl/6270
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1046 }
[ 2830, 3393, 4418, 47712, 15479, 9801, 1155, 353, 8840, 836, 8, 341, 13158, 2033, 2036, 341, 197, 95143, 3056, 2476, 198, 197, 28144, 256, 914, 198, 197, 532, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 1843, 914, 198, 197, 24195, 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...
5
func TestGoRPCTabletConn(t *testing.T) { // fake service service := tabletconntest.CreateFakeServer(t) // listen on a random port listener, err := net.Listen("tcp", ":0") if err != nil { t.Fatalf("Cannot listen: %v", err) } port := listener.Addr().(*net.TCPAddr).Port // Create a Go Rpc server and listen on ...
explode_data.jsonl/70038
{ "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, 10850, 21657, 1162, 480, 83, 9701, 1155, 353, 8840, 836, 8, 341, 197, 322, 12418, 2473, 198, 52934, 1669, 20697, 443, 406, 477, 7251, 52317, 5475, 1155, 692, 197, 322, 8844, 389, 264, 4194, 2635, 198, 14440, 798, 11, 1848,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestPluginVolume(t *testing.T) { vol := &api.Volume{ Name: "vol1", VolumeSource: api.VolumeSource{Glusterfs: &api.GlusterfsVolumeSource{EndpointsName: "ep", Path: "vol", ReadOnly: false}}, } doTestPlugin(t, volume.NewSpecFromVolume(vol)) }
explode_data.jsonl/48310
{ "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, 11546, 18902, 1155, 353, 8840, 836, 8, 341, 5195, 337, 1669, 609, 2068, 79106, 515, 197, 21297, 25, 260, 330, 12536, 16, 756, 197, 17446, 4661, 3608, 25, 6330, 79106, 3608, 90, 31541, 4993, 3848, 25, 609, 2068, 1224, 75, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSchemaParser_SimpleFieldWithArgWithDefaultValue(t *testing.T) { body := ` type Hello { world(flag: Boolean = true): String }` astDoc := parse(t, body) expected := &ast.Document{ Loc: testLoc(1, 53), Definitions: []ast.Node{ &ast.ObjectDefinition{ Loc: testLoc(1, 53), Name: &ast.Name{ V...
explode_data.jsonl/51226
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 721 }
[ 2830, 3393, 8632, 6570, 1098, 6456, 1877, 2354, 2735, 2354, 41533, 1155, 353, 8840, 836, 8, 341, 35402, 1669, 22074, 1313, 21927, 341, 220, 1879, 33104, 25, 6992, 284, 830, 1648, 923, 198, 31257, 88836, 9550, 1669, 4715, 1155, 11, 2487,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestArgumentsSpecialCaseNoBundle(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` (() => { var arguments; function foo(x = arguments) { return arguments } (function(x = arguments) { return arguments }); ({foo(x = arguments) { return arg...
explode_data.jsonl/38518
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 580 }
[ 2830, 3393, 19139, 20366, 4207, 2753, 8409, 1155, 353, 8840, 836, 8, 341, 11940, 57239, 25952, 33, 1241, 832, 1155, 11, 51450, 515, 197, 74075, 25, 2415, 14032, 30953, 515, 298, 197, 3115, 4085, 2857, 788, 22074, 571, 197, 5065, 589, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReportWorkflowResource_ScheduledWorkflowIDEmpty_Success(t *testing.T) { store, manager, run := initWithOneTimeRun(t) expectedExperimentUUID := run.ExperimentUUID defer store.Close() // report workflow workflow := util.NewWorkflow(&v1alpha1.Workflow{ ObjectMeta: v1.ObjectMeta{ UID: types.UID(run...
explode_data.jsonl/77054
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 637 }
[ 2830, 3393, 10361, 62768, 4783, 1098, 26644, 62768, 915, 3522, 87161, 1155, 353, 8840, 836, 8, 341, 57279, 11, 6645, 11, 1598, 1669, 13864, 3966, 1462, 6727, 1155, 340, 42400, 77780, 24754, 1669, 1598, 5121, 14329, 24754, 198, 16867, 3553...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShowFlag(t *testing.T) { defer func() { TestTx.UseColor(false) initFlag(TestTx.Flags) }() TestTx.UseColor(true) ctx := context.Background() scope := NewReferenceScope(TestTx) for _, v := range showFlagTests { initFlag(TestTx.Flags) TestTx.UseColor(true) for _, expr := range v.SetExprs { _ ...
explode_data.jsonl/50845
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 372 }
[ 2830, 3393, 7812, 12135, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 73866, 31584, 9046, 1636, 3576, 340, 197, 28248, 12135, 31159, 31584, 51887, 340, 197, 66816, 73866, 31584, 9046, 1636, 3715, 340, 20985, 1669, 2266, 19047...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunPipeline5(t *testing.T) { // Define a script that repeats the first word of each line rep := NewScript() rep.AppendStmt(nil, func(s *Script) { s.Println(s.F(1), s.F(1)) }) // Define a script that replaces the second number in a line with // "fizz" if the first number is a multiple of 3. fizz := Ne...
explode_data.jsonl/3032
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 883 }
[ 2830, 3393, 6727, 34656, 20, 1155, 353, 8840, 836, 8, 341, 197, 322, 18614, 264, 5316, 429, 43594, 279, 1156, 3409, 315, 1817, 1555, 198, 73731, 1669, 1532, 5910, 741, 73731, 8982, 31063, 27907, 11, 2915, 1141, 353, 5910, 8, 341, 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 TestInvalidKeyspace(t *testing.T) { cluster := createCluster() cluster.Keyspace = "invalidKeyspace" session, err := cluster.CreateSession() if err != nil { if err != ErrNoConnectionsStarted { t.Fatalf("Expected ErrNoConnections but got %v", err) } } else { session.Close() //Clean up the session t.F...
explode_data.jsonl/11131
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 129 }
[ 2830, 3393, 7928, 8850, 1306, 1155, 353, 8840, 836, 8, 341, 197, 18855, 1669, 1855, 28678, 741, 197, 18855, 37863, 1306, 284, 330, 11808, 8850, 1306, 698, 25054, 11, 1848, 1669, 10652, 7251, 5283, 741, 743, 1848, 961, 2092, 341, 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 TestFrameMarshalText(t *testing.T) { var tests = []struct { Frame want string }{{ initpc, `^github.com/marmotedu/errors\.init(\.ializers)? .+/github\.com/marmotedu/errors/stack_test.go:\d+$`, }, { 0, `^unknown$`, }} for i, tt := range tests { got, err := tt.Frame.MarshalText() if err != nil { ...
explode_data.jsonl/19130
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 4369, 55438, 1178, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 197, 4369, 198, 197, 50780, 914, 198, 197, 15170, 515, 197, 28248, 3992, 345, 197, 197, 63, 61, 5204, 905, 3183, 2178, 9253, 84, 571...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSBSPromoteReaderToWriter(t *testing.T) { test(t, users("alice", "bob"), inPrivateTlf("alice,bob@twitter#bob"), as(alice, mkfile("alice.txt", "hello bob"), ), as(bob, read("alice.txt", "hello bob"), expectError(mkfile("bob.txt", "hello alice"), "bob does not have write access to director...
explode_data.jsonl/41330
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 466 }
[ 2830, 3393, 16680, 4592, 441, 1272, 5062, 1249, 6492, 1155, 353, 8840, 836, 8, 341, 18185, 1155, 345, 197, 90896, 445, 63195, 497, 330, 47086, 4461, 197, 17430, 16787, 51, 11008, 445, 63195, 8402, 674, 31, 14679, 2, 47086, 4461, 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 TestSetValueJSON(t *testing.T) { a := assert.New(t) obj := myStruct{InferredName: "Hello."} meta := getCachedColumnCollectionFromInstance(obj) col := meta.Lookup()["json_col"] a.NotNil(col) err := col.SetValue(&obj, sql.NullString{String: `{"foo":"bar"}`, Valid: true}) a.Nil(err) a.Equal("bar", obj.JSONCo...
explode_data.jsonl/58398
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 133 }
[ 2830, 3393, 48068, 5370, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 2060, 7121, 1155, 340, 22671, 1669, 847, 9422, 90, 641, 5554, 675, 25, 330, 9707, 1189, 532, 84004, 1669, 43099, 3854, 2933, 6482, 3830, 2523, 6779, 692, 46640, 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 TestValidateLambdaPermissionAction(t *testing.T) { validNames := []string{ "lambda:*", "lambda:InvokeFunction", "*", } for _, v := range validNames { _, errors := validateLambdaPermissionAction(v, "action") if len(errors) != 0 { t.Fatalf("%q should be a valid Lambda permission action: %q", v, error...
explode_data.jsonl/78562
{ "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, 17926, 58266, 14966, 2512, 1155, 353, 8840, 836, 8, 341, 56322, 7980, 1669, 3056, 917, 515, 197, 197, 1, 12935, 53386, 756, 197, 197, 1, 12935, 25, 17604, 5152, 756, 197, 197, 61593, 756, 197, 532, 2023, 8358, 348, 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...
5
func Test_BigP2PIntegrationSuite(t *testing.T) { t.Skip() s := new(P2PIntegrationSuite) s.IntegrationTestSuite = new(IntegrationTestSuite) protocolsHelper(s) s.BootstrappedNodeCount = 100 s.BootstrapNodesCount = 3 s.NeighborsCount = 8 suite.Run(t, s) }
explode_data.jsonl/53418
{ "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, 1668, 343, 47, 17, 47, 52464, 28000, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 741, 1903, 1669, 501, 5304, 17, 47, 52464, 28000, 340, 1903, 7371, 17376, 2271, 28000, 284, 501, 24123, 17376, 2271, 28000, 692, 197, 85412, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIsInCommentTree(t *testing.T) { // Setup test data oneNodeTree := []comments.Comment{ { CommentID: 1, ParentID: 0, }, } twoLeafsTree := []comments.Comment{ { CommentID: 1, ParentID: 0, }, { CommentID: 2, ParentID: 0, }, } threeLevelsTree := []comments.Comment{ { Co...
explode_data.jsonl/4253
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1222 }
[ 2830, 3393, 3872, 641, 10677, 6533, 1155, 353, 8840, 836, 8, 341, 197, 322, 18626, 1273, 821, 198, 197, 603, 1955, 6533, 1669, 3056, 14727, 56730, 515, 197, 197, 515, 298, 197, 10677, 915, 25, 220, 16, 345, 298, 197, 8387, 915, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestFindIndexOfEmail_Successful_With_One_Input(t *testing.T) { x := []string{"testing@test.org"} got := FindIndexOfEmail(x) want := 0 if got != want { t.Errorf("Got: %d, Wanted: %d", got, want) } }
explode_data.jsonl/45942
{ "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, 9885, 27376, 4781, 87161, 1262, 62, 2354, 68201, 48653, 1155, 353, 8840, 836, 8, 341, 10225, 1669, 3056, 917, 4913, 8840, 47327, 2659, 63159, 3174, 354, 1669, 7379, 27376, 4781, 2075, 692, 50780, 1669, 220, 15, 271, 743, 268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Mock_On_WithArgs(t *testing.T) { // make a test impl object var mockedService = new(TestExampleImplementation) c := mockedService.On("TheExampleMethod", 1, 2, 3, 4) assert.Equal(t, []*Call{c}, mockedService.ExpectedCalls) assert.Equal(t, "TheExampleMethod", c.Method) assert.Equal(t, Argument...
explode_data.jsonl/8568
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 141 }
[ 2830, 3393, 1245, 1176, 35482, 62, 2354, 4117, 1155, 353, 8840, 836, 8, 8022, 197, 322, 1281, 264, 1273, 11605, 1633, 319, 2405, 46149, 1860, 284, 501, 31159, 13314, 36850, 7229, 1444, 1669, 46149, 1860, 8071, 445, 785, 13314, 3523, 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...
1
func TestDomainRegexp(t *testing.T) { for _, d := range []string{ "localhost", "localhost:5000", "example.com", "example.com:80", "gcr.io", "index.docker.com", } { if !domainRegexp.MatchString(d) { t.Errorf("domain regexp did not match %q", d) } } }
explode_data.jsonl/60181
{ "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, 13636, 3477, 4580, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 294, 1669, 2088, 3056, 917, 515, 197, 197, 1, 8301, 497, 330, 8301, 25, 20, 15, 15, 15, 756, 197, 197, 1, 8687, 905, 497, 330, 8687, 905, 25, 23, 15, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestAnySecurityRequirementMet(t *testing.T) { // Create of a map of scheme names and whether they are valid schemes := map[string]bool{ "a": true, "b": true, "c": false, "d": false, } // Create the test cases tc := []struct { name string schemes []string error bool }{ { name: "/ok...
explode_data.jsonl/41697
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1018 }
[ 2830, 3393, 8610, 15352, 75802, 34673, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 315, 264, 2415, 315, 12859, 5036, 323, 3425, 807, 525, 2697, 198, 1903, 66346, 1669, 2415, 14032, 96436, 515, 197, 197, 56693, 788, 830, 345, 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 TestWritersFailAfterNRetries(t *testing.T) { numfetch := 0 tableNoWriters := &db.RoutingTable{TimeToLive: 1, Routers: []string{"rt1", "rt2"}, Readers: []string{"rd1"}} pool := &poolFake{ borrow: func(names []string, cancel context.CancelFunc, _ log.BoltLogger) (db.Connection, error) { // Return no writers ...
explode_data.jsonl/40052
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 366 }
[ 2830, 3393, 54, 31829, 19524, 6025, 45, 12020, 4019, 1155, 353, 8840, 836, 8, 341, 22431, 9641, 1669, 220, 15, 198, 26481, 2753, 54, 31829, 1669, 609, 1999, 2013, 10909, 2556, 90, 1462, 1249, 20324, 25, 220, 16, 11, 431, 66095, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestProxyConfigurationVersion(t *testing.T) { tests := []struct { desc string fc FileConfig want service.ProxyConfig checkErr require.ErrorAssertionFunc }{ { desc: "v2 config with default web address", fc: FileConfig{ Version: defaults.TeleportConfigVersionV2, Proxy: Proxy{ ...
explode_data.jsonl/47175
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1102 }
[ 2830, 3393, 16219, 7688, 5637, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 41653, 257, 914, 198, 197, 1166, 66, 981, 2887, 2648, 198, 197, 50780, 257, 2473, 75200, 2648, 198, 197, 25157, 7747, 1373, 6141, 68639, 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 TestBasicConfig(t *testing.T) { assert := assert.New(t) stats := stats.NewStore(stats.NewNullSink(), false) rlConfig := config.NewRateLimitConfigImpl(loadFile("basic_config.yaml"), stats) rlConfig.Dump() assert.Nil(rlConfig.GetLimit(nil, "foo_domain", &pb_struct.RateLimitDescriptor{})) assert.Nil(rlConfig.Ge...
explode_data.jsonl/41129
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2101 }
[ 2830, 3393, 15944, 2648, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 79659, 1669, 10472, 7121, 6093, 50714, 7121, 3280, 45094, 1507, 895, 340, 197, 2381, 2648, 1669, 2193, 7121, 11564, 16527, 2648, 9673, 49092, 1703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCastStrToInt(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") cases := []struct { sql string result int }{ {"select cast('' as signed)", 0}, {"select cast('12345abcde' as signed)", 12345}, {"select cast('123e...
explode_data.jsonl/65506
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 295 }
[ 2830, 3393, 18714, 2580, 38544, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50463, 10216,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParsesDefaultConfig(t *testing.T) { cfg := Config{} assert.NoError(t, env.Parse(&cfg)) assert.Equal(t, "postgres://localhost:5432/db", cfg.DatabaseURL) }
explode_data.jsonl/7488
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 47, 1561, 288, 3675, 2648, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 5532, 16094, 6948, 35699, 1155, 11, 6105, 8937, 2099, 14072, 1171, 6948, 12808, 1155, 11, 330, 43070, 1110, 8301, 25, 20, 19, 18, 17, 29357, 497, 13286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestSendMessage(t *testing.T) { srv := httptest.NewServer(http.HandlerFunc(handlerToBeTested)) u, _ := url.Parse(srv.URL) u.Scheme = "ws" var log = log.NewMockLog() var ws = NewWebsocketUtil(log, nil) conn, _ := ws.OpenConnection(u.String()) assert.NotNil(t, conn, "Open connection failed.") conn.WriteMessa...
explode_data.jsonl/58793
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 177 }
[ 2830, 3393, 80863, 1155, 353, 8840, 836, 8, 341, 1903, 10553, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 36514, 1249, 3430, 2271, 291, 1171, 10676, 11, 716, 1669, 2515, 8937, 1141, 10553, 20893, 340, 10676, 92719, 284, 330, 8915, 698, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddrsWithEmptyListenAddr(t *testing.T) { s := New() s.httpListeners = []httpListener{&mockHTTPListener{}} a := s.Addrs() if len(a) != 0 { t.Errorf("expected an empty list of addresses, got: %+v", a) } }
explode_data.jsonl/79038
{ "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, 2212, 5428, 2354, 3522, 38714, 13986, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 741, 1903, 6964, 31570, 284, 3056, 1254, 2743, 90, 5, 16712, 9230, 2743, 6257, 532, 11323, 1669, 274, 1904, 5428, 741, 743, 2422, 2877, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPublicKey(t *testing.T) { _, pk, err := Bliss.GenerateKey(rand.Reader) if err != nil{ t.Fatal("Error in Generate keys") } pkBytes := pk.Serialize() restoredPK, err := Bliss.ParsePubKey(pkBytes) if err != nil{ t.Fatal("Error in parsepubkey()") } pkBytes2 := restoredPK.Serialize() if !bytes.Equal...
explode_data.jsonl/20903
{ "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, 61822, 1155, 353, 8840, 836, 8, 1476, 197, 6878, 22458, 11, 1848, 1669, 91570, 57582, 1592, 37595, 47431, 340, 743, 1848, 961, 2092, 515, 197, 3244, 26133, 445, 1454, 304, 19813, 6894, 1138, 197, 630, 3223, 74, 7078, 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...
5
func TestInvalidJSONUnmarshal(t *testing.T) { cases := []struct { name string req map[string]interface{} target interface{} }{ { name: "InvalidTTLSegments", req: map[string]interface{}{ "ttl": "1.2.3s", }, target: &AndroidConfig{}, }, { name: "IncorrectTTLSeconds", req: map[stri...
explode_data.jsonl/70172
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 848 }
[ 2830, 3393, 7928, 5370, 1806, 27121, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 24395, 262, 2415, 14032, 31344, 16094, 197, 28861, 3749, 16094, 197, 59403, 197, 197, 515, 298, 11609,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMsgTransferNFTValidateBasicMethod(t *testing.T) { newMsgTransferNFT := types.NewMsgTransferNFT(denomID, "", id, tokenURI, uriHash, tokenData, address.String(), address2.String()) err := newMsgTransferNFT.ValidateBasic() require.Error(t, err) newMsgTransferNFT = types.NewMsgTransferNFT(denomID, denom, "", ...
explode_data.jsonl/28170
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 287 }
[ 2830, 3393, 6611, 21970, 45, 3994, 17926, 15944, 3523, 1155, 353, 8840, 836, 8, 341, 8638, 6611, 21970, 45, 3994, 1669, 4494, 7121, 6611, 21970, 45, 3994, 1500, 268, 316, 915, 11, 7342, 877, 11, 3950, 10301, 11, 13071, 6370, 11, 3950,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoveThatFails(t *testing.T) { mock := task.CallbackMock{} funcRegistry := task.NewFuncRegistry() store := getStoreBridge(funcRegistry, nil) task := newTask(funcRegistry, mock.CallWithChan, make(chan bool)) err := store.Remove(task) if err == nil { t.Error("Wrong call to remove a task with a channel a...
explode_data.jsonl/12079
{ "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, 13021, 4792, 37, 6209, 1155, 353, 8840, 836, 8, 341, 77333, 1669, 3383, 48787, 11571, 16094, 29244, 15603, 1669, 3383, 7121, 9626, 15603, 741, 57279, 1669, 633, 6093, 32848, 18552, 15603, 11, 2092, 340, 49115, 1669, 501, 6262,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetAuthOptionsIdentityUnsupported(t *testing.T) { identity := Identity{ Endpoint: "https://keystone.acme.com", Username: "BpcRBmKbj1gY", Password: "vxWNRLiagH8aEjxA", TenantID: "sfgAc5sN3LZUhm2Uho8Sreo0qbUPq8Cd", Version: 1, } assert.Panics(t, func() { identity.GetAuthOpts() }) }
explode_data.jsonl/54216
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 146 }
[ 2830, 3393, 1949, 5087, 3798, 18558, 41884, 1155, 353, 8840, 836, 8, 341, 197, 16912, 1669, 26540, 515, 197, 197, 27380, 25, 330, 2428, 1110, 440, 41266, 15399, 2660, 905, 756, 197, 197, 11115, 25, 330, 33, 3992, 29259, 76, 42, 35751,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateBroadcastsForRuleViolationPenalties(t *testing.T) { cases := []struct { name string violationPenalties map[string]shared.IIGOSanctionsScore expectedCommunications []map[shared.CommunicationFieldName]shared.CommunicationContent }{ { name: "Sanction thresholds test", v...
explode_data.jsonl/74046
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 438 }
[ 2830, 3393, 4021, 43362, 82, 2461, 11337, 74971, 28205, 23487, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 4293, 914, 198, 197, 5195, 24903, 367, 28205, 23487, 257, 2415, 14032, 60, 6100, 2447, 1914, 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 TestCreateOrUpdateEnvironment(t *testing.T) { path := helpers.BuildURL(api.BasePath, api.EnvironmentsPath, tests.AnotherEnvironmentIDAsString) t.Run("returns bad request with empty body", func(t *testing.T) { resp, err := helpers.HTTPPut(path, strings.NewReader("")) require.Nil(t, err) assert.Equal(t, htt...
explode_data.jsonl/62912
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 593 }
[ 2830, 3393, 4021, 56059, 12723, 1155, 353, 8840, 836, 8, 341, 26781, 1669, 30187, 25212, 3144, 24827, 13018, 1820, 11, 6330, 22834, 17866, 1820, 11, 7032, 8624, 1575, 12723, 915, 26582, 692, 3244, 16708, 445, 4216, 3873, 1681, 448, 4287, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateWidths(t *testing.T) { testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("Using a grid writer, the cached column width", t, func() { gw := GridWriter{} defaultWidths := []int{1, 2, 3, 4} Convey("should be updated when one or more new cell widths are greater", func() { // the first ...
explode_data.jsonl/51605
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 428 }
[ 2830, 3393, 4289, 3327, 82, 1155, 353, 8840, 836, 8, 341, 18185, 1313, 57776, 35587, 2271, 929, 1155, 11, 1273, 1313, 25159, 2271, 929, 692, 93070, 5617, 445, 16429, 264, 5827, 6916, 11, 279, 20579, 3250, 2374, 497, 259, 11, 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...
1
func TestClient_LoginPasswordNoToken(t *testing.T) { checkCredentialsAndSkip(t) client := NewClient(sfURL, DefaultClientID, DefaultAPIVersion, logger.New()) if client == nil { t.Fatal() } // Trusted IP must be configured AND the request must be initiated from the trusted IP range. err := client.LoginPassword(...
explode_data.jsonl/27752
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 157 }
[ 2830, 3393, 2959, 79232, 4876, 2753, 3323, 1155, 353, 8840, 836, 8, 341, 25157, 27025, 3036, 35134, 1155, 692, 25291, 1669, 1532, 2959, 33804, 3144, 11, 7899, 2959, 915, 11, 7899, 7082, 5637, 11, 5925, 7121, 2398, 743, 2943, 621, 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...
3
func TestNotBotUA(t *testing.T) { var fail []string for _, b := range notBots { r := &http.Request{Header: make(http.Header)} r.Header.Add("User-Agent", b) if Is(Bot(r)) { fail = append(fail, b) } } if len(fail) > 0 { t.Errorf("%d failed:\n%s", len(fail), strings.Join(fail, "\n")) } }
explode_data.jsonl/82222
{ "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, 2623, 23502, 17782, 1155, 353, 8840, 836, 8, 341, 2405, 3690, 3056, 917, 198, 2023, 8358, 293, 1669, 2088, 537, 33, 2412, 341, 197, 7000, 1669, 609, 1254, 9659, 90, 4047, 25, 1281, 19886, 15753, 10569, 197, 7000, 15753, 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...
4
func TestAccAWSDBInstance_subnetGroup(t *testing.T) { var v rds.DBInstance rName := acctest.RandString(10) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheckAWSDBInstanceDestroy, Steps: []resource.TestStep{ { Con...
explode_data.jsonl/33919
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 383 }
[ 2830, 3393, 14603, 36136, 3506, 2523, 95681, 2808, 1155, 353, 8840, 836, 8, 341, 2405, 348, 435, 5356, 22537, 2523, 198, 7000, 675, 1669, 1613, 67880, 2013, 437, 703, 7, 16, 15, 692, 50346, 8787, 1155, 11, 5101, 31363, 515, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_getSections(t *testing.T) { type args struct { str string } tests := []struct { name string args args want map[string]*Section wantErr bool }{ // TODO: Add test cases. {"1", args{"\nprop1=1\n"}, map[string]*Section{"": &Section{name: "", props: map[string]string{"prop1": "1"}}}, fal...
explode_data.jsonl/62171
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 553 }
[ 2830, 3393, 3062, 38122, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 11355, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 31215, 262, 2827, 198, 197, 50780, 262, 2415, 14032, 8465, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMessageExportSetDefaults(t *testing.T) { mes := &MessageExportSettings{} mes.SetDefaults() require.False(t, *mes.EnableExport) require.Equal(t, "01:00", *mes.DailyRunTime) require.Equal(t, int64(0), *mes.ExportFromTimestamp) require.Equal(t, 10000, *mes.BatchSize) require.Equal(t, COMPLIANCE_EXPORT_TYP...
explode_data.jsonl/50690
{ "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, 2052, 16894, 1649, 16273, 1155, 353, 8840, 836, 8, 341, 2109, 288, 1669, 609, 2052, 16894, 6086, 16094, 2109, 288, 4202, 16273, 2822, 17957, 50757, 1155, 11, 353, 8828, 32287, 16894, 340, 17957, 12808, 1155, 11, 330, 15, 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 TestReconcile_Single_SidecarState(t *testing.T) { runningState := corev1.ContainerStateRunning{StartedAt: metav1.Time{Time: time.Now()}} taskRun := tb.TaskRun("test-taskrun-sidecars", tb.TaskRunSpec( tb.TaskRunTaskRef(taskSidecar.Name), ), tb.TaskRunStatus( tb.SidecarState( tb.SidecarStateName("s...
explode_data.jsonl/893
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 599 }
[ 2830, 3393, 693, 40446, 457, 1098, 2173, 1098, 577, 6918, 1397, 1155, 353, 8840, 836, 8, 341, 197, 27173, 1397, 1669, 6200, 85, 16, 33672, 1397, 18990, 90, 32527, 1655, 25, 77520, 16, 16299, 90, 1462, 25, 882, 13244, 98708, 49115, 672...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOrdererConfig(t *testing.T) { endpointConfig, err := ConfigFromBackend(configBackend) if err != nil { t.Fatal("Failed to get endpoint config from backend") } oConfig, _, _ := endpointConfig.OrdererConfig("invalid") if oConfig != nil { t.Fatal("Testing non-existing OrdererConfig failed") } orderers...
explode_data.jsonl/34072
{ "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, 4431, 261, 2648, 1155, 353, 8840, 836, 8, 341, 6246, 2768, 2648, 11, 1848, 1669, 5532, 3830, 29699, 8754, 29699, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 445, 9408, 311, 633, 14887, 2193, 504, 19163, 1138, 197, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestGrowWithNaN(t *testing.T) { m := make(map[float64]int, 4) nan := math.NaN() // Use both assignment and assignment operations as they may // behave differently. m[nan] = 1 m[nan] = 2 m[nan] += 4 cnt := 0 s := 0 growflag := true for k, v := range m { if growflag { // force a hashtable resize ...
explode_data.jsonl/19907
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 288 }
[ 2830, 3393, 56788, 2354, 22831, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1281, 9147, 95381, 21, 19, 63025, 11, 220, 19, 340, 9038, 276, 1669, 6888, 78706, 2822, 197, 322, 5443, 2176, 16319, 323, 16319, 7525, 438, 807, 1231, 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...
8
func TestGenerateInstance(t *testing.T) { cluster := &v1beta1.PostgresCluster{ ObjectMeta: metav1.ObjectMeta{ Namespace: "ns1", Name: "pg0", }, } set := &v1beta1.PostgresInstanceSetSpec{Name: "hippos"} instance := GenerateInstance(cluster, set) assert.Equal(t, cluster.Namespace, instance.Namespace) asser...
explode_data.jsonl/22347
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 156 }
[ 2830, 3393, 31115, 2523, 1155, 353, 8840, 836, 8, 341, 197, 18855, 1669, 609, 85, 16, 19127, 16, 23442, 17818, 28678, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 90823, 25, 330, 4412, 16, 497, 3988, 25, 330, 3517, 15, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestImportImportEmoji(t *testing.T) { th := Setup(t) defer th.TearDown() th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableCustomEmoji = true }) testsDir, _ := fileutils.FindDir("tests") testImage := filepath.Join(testsDir, "test.png") data := EmojiImportData{Name: ptrStr(model.NewI...
explode_data.jsonl/67143
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 548 }
[ 2830, 3393, 11511, 11511, 92731, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 340, 16867, 270, 836, 682, 4454, 2822, 70479, 5105, 16689, 2648, 18552, 28272, 353, 2528, 10753, 8, 314, 353, 14072, 13860, 6086, 32287, 10268, 92731...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDisclosureNonexistingCredTypeUpdateSchemeManager(t *testing.T) { client, _ := parseStorage(t) request := irma.NewDisclosureRequest( irma.NewAttributeTypeIdentifier("irma-demo.RU.foo.bar"), irma.NewAttributeTypeIdentifier("irma-demo.baz.qux.abc"), ) _, err := client.Configuration.Download(request) requ...
explode_data.jsonl/70006
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 404 }
[ 2830, 3393, 91065, 8121, 36895, 34, 1151, 929, 4289, 28906, 2043, 1155, 353, 8840, 836, 8, 341, 25291, 11, 716, 1669, 4715, 5793, 1155, 340, 23555, 1669, 6216, 1728, 7121, 91065, 1900, 1006, 197, 197, 44011, 7121, 3907, 929, 8714, 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 TestResetStalledIndexes(t *testing.T) { if testing.Short() { t.Skip() } dbtesting.SetupGlobalTestDB(t) db := testDB() now := time.Unix(1587396557, 0).UTC() t1 := now.Add(-time.Second * 6) // old t2 := now.Add(-time.Second * 2) // new enough t3 := now.Add(-time.Second * 3) // new enough t4 := now.Add(-t...
explode_data.jsonl/11076
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 506 }
[ 2830, 3393, 14828, 623, 4736, 62229, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 741, 197, 532, 20939, 8840, 39820, 11646, 2271, 3506, 1155, 340, 20939, 1669, 1273, 3506, 2822, 80922, 1669, 882, 10616, 94...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvalidEnvironmentObject(t *testing.T) { _, err := loadYAML(` version: "3" services: dict-env: image: busybox environment: "FOO=1" `) assert.Error(t, err) assert.Contains(t, err.Error(), "services.dict-env.environment must be a mapping") }
explode_data.jsonl/16390
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 101 }
[ 2830, 3393, 7928, 12723, 1190, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 2795, 56, 31102, 61528, 4366, 25, 330, 18, 698, 12779, 510, 220, 6451, 67462, 510, 262, 2168, 25, 13028, 2011, 198, 262, 4573, 25, 330, 3788, 46, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCCInfoCache(t *testing.T) { ccname := "foo" ccver := "1.0" ccpath := "github.com/hyperledger/fabric/examples/chaincode/go/example02/cmd" ccinfoFs := &mockCCInfoFSStorageMgrImpl{CCMap: map[string]CCPackage{}} cccache := NewCCInfoCache(ccinfoFs) //测试GeT端 //CC数据尚不在缓存中 _, err := cccache.GetChaincodeData(c...
explode_data.jsonl/10593
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 755 }
[ 2830, 3393, 3706, 1731, 8233, 1155, 353, 8840, 836, 8, 341, 63517, 606, 1669, 330, 7975, 698, 63517, 423, 1669, 330, 16, 13, 15, 698, 63517, 2343, 1669, 330, 5204, 905, 7530, 39252, 50704, 6663, 28897, 67020, 14, 8819, 1851, 25525, 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 TestAddParseTree(t *testing.T) { // Create some templates. root, err := New("root").Parse(cloneText1) if err != nil { t.Fatal(err) } _, err = root.Parse(cloneText2) if err != nil { t.Fatal(err) } // Add a new parse tree. tree, err := parse.Parse("cloneText3", cloneText3, "", "", nil, builtins()) if e...
explode_data.jsonl/71986
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 281 }
[ 2830, 3393, 2212, 14463, 6533, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 1045, 19911, 624, 33698, 11, 1848, 1669, 1532, 445, 2888, 1827, 14463, 95906, 1178, 16, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 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...
7
func Test_findSource(t *testing.T) { gopath, err := getGopath() if err != nil { t.Errorf("failed to get GOPATH: %s", err) } var source SourceMap source, err = findSource(gopath, "github.com/sinochem-tech/fabric/peer") if err != nil { t.Errorf("failed to find source: %s", err) } if _, ok := source["src/gi...
explode_data.jsonl/2261
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 223 }
[ 2830, 3393, 21814, 3608, 1155, 353, 8840, 836, 8, 341, 3174, 35111, 11, 1848, 1669, 633, 38, 35111, 741, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 16091, 311, 633, 18106, 4827, 25, 1018, 82, 497, 1848, 340, 197, 630, 2405, 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...
5
func TestPro(t *testing.T) { t.Run("202. Happy Number", func(t *testing.T) { n := 19 want := true got := solution(n) if got != want { t.Errorf("got: %v, want: %v", got, want) } }) }
explode_data.jsonl/34582
{ "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, 1336, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 17, 15, 17, 13, 23355, 5624, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 9038, 1669, 220, 16, 24, 198, 197, 50780, 1669, 830, 198, 197, 3174, 354, 1669, 6291, 144...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmbeddedStructs(t *testing.T) { type EmbeddedStruct struct { ID string } type ContainerStruct struct { Name string EmbeddedStruct } instance := &ContainerStruct{ Name: "Container", EmbeddedStruct: EmbeddedStruct{ ID: "Embedded", }, } generator := NewGenerator(UseAllExportedFields()) ...
explode_data.jsonl/55877
{ "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, 83466, 9422, 82, 1155, 353, 8840, 836, 8, 341, 13158, 61383, 9422, 2036, 341, 197, 29580, 914, 198, 197, 630, 13158, 9678, 9422, 2036, 341, 197, 21297, 914, 198, 197, 197, 83466, 9422, 198, 197, 630, 56256, 1669, 609, 4502...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTx_ForEach_WithError(t *testing.T) { db := MustOpenDB() defer db.MustClose() if err := db.Update(func(tx *bolt.Tx) error { b, err := tx.CreateBucket([]byte("widgets")) if err != nil { t.Fatal(err) } if err := b.Put([]byte("foo"), []byte("bar")); err != nil { t.Fatal(err) } marker := error...
explode_data.jsonl/1699
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 237 }
[ 2830, 3393, 31584, 84368, 4854, 62, 66102, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 15465, 5002, 3506, 741, 16867, 2927, 50463, 7925, 741, 743, 1848, 1669, 2927, 16689, 18552, 27301, 353, 52433, 81362, 8, 1465, 341, 197, 2233, 11, 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...
1
func TestLoadAndUpgrade(t *testing.T) { oldFilePath := initTmpOldFile(t) defer os.Remove(oldFilePath) newStateFile, err := ioutil.TempFile("", "priv_validator_state*.json") defer os.Remove(newStateFile.Name()) require.NoError(t, err) newKeyFile, err := ioutil.TempFile("", "priv_validator_key*.json") defer os.Re...
explode_data.jsonl/45168
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1268 }
[ 2830, 3393, 5879, 3036, 43861, 1155, 353, 8840, 836, 8, 1476, 61828, 19090, 1669, 2930, 35986, 18284, 1703, 1155, 340, 16867, 2643, 13270, 21972, 19090, 340, 8638, 1397, 1703, 11, 1848, 1669, 43144, 65009, 1703, 19814, 330, 11887, 64959, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMinerGET(t *testing.T) { if testing.Short() { t.SkipNow() } t.Parallel() st, err := createServerTester(t.Name()) if err != nil { t.Fatal(err) } defer st.server.panicClose() // Get the api returned fields of the miner. var mg MinerGET err = st.getAPI("/miner", &mg) if err != nil { t.Fatal(err)...
explode_data.jsonl/7792
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 317 }
[ 2830, 3393, 6217, 261, 3806, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 7039, 741, 197, 532, 3244, 41288, 7957, 741, 18388, 11, 1848, 1669, 1855, 5475, 58699, 1155, 2967, 2398, 743, 1848, 961, 2092, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestDeleteExperiment_CrdFailure(t *testing.T) { store, manager, experiment := initWithExperiment(t) defer store.Close() manager.workflowClient = &FakeBadWorkflowClient{} err := manager.DeleteExperiment(experiment.UUID) assert.Nil(t, err) }
explode_data.jsonl/28370
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 85 }
[ 2830, 3393, 6435, 77780, 920, 6498, 17507, 1155, 353, 8840, 836, 8, 341, 57279, 11, 6645, 11, 9342, 1669, 13864, 77780, 1155, 340, 16867, 3553, 10421, 2822, 92272, 72774, 2959, 284, 609, 52317, 17082, 62768, 2959, 16094, 9859, 1669, 6645,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateComponentConfig(t *testing.T) { boolTrue := true boolFalse := false testCases := []struct { name string config *Config errExpected bool }{ { name: "Valid default URL, no err", config: &Config{ProwConfig: ProwConfig{Plank: Plank{ JobURLPrefixConfig: map[string]string{"*...
explode_data.jsonl/41030
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2038 }
[ 2830, 3393, 17926, 2189, 2648, 1155, 353, 8840, 836, 8, 341, 7562, 2514, 1669, 830, 198, 7562, 4049, 1669, 895, 198, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 25873, 414, 353, 2648, 198, 197, 9859, 18896, 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...
2
func TestRegexpMaxWidth(t *testing.T) { assert.Equal(t, 1, regexpMaxWidth(`a`)) assert.Equal(t, 4, regexpMaxWidth(`a...`)) assert.Equal(t, 1, regexpMaxWidth(`a|b`)) assert.Equal(t, 1, regexpMaxWidth(`((a)|b)`)) assert.Equal(t, 1, regexpMaxWidth(`((a)|b)?`)) assert.Equal(t, 3, regexpMaxWidth(`a|bc|def|g|hi|jkl`)) ...
explode_data.jsonl/69321
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 390 }
[ 2830, 3393, 3477, 4580, 5974, 3327, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 220, 16, 11, 41877, 5974, 3327, 5809, 64, 63, 1171, 6948, 12808, 1155, 11, 220, 19, 11, 41877, 5974, 3327, 5809, 64, 1112, 63, 1171, 6948, 1280...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKeeper_GetDeposit(t *testing.T) { ctx, _, keeper, _, _ := CreateTestInput(t, false, 1000) content := types.NewTextProposal("Test", "description") proposal, err := keeper.SubmitProposal(ctx, content) require.Nil(t, err) proposalID := proposal.ProposalID err = keeper.AddDeposit(ctx, proposalID, Addrs[0],...
explode_data.jsonl/78316
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 340 }
[ 2830, 3393, 77233, 13614, 78982, 1155, 353, 8840, 836, 8, 341, 20985, 11, 8358, 53416, 11, 8358, 716, 1669, 4230, 2271, 2505, 1155, 11, 895, 11, 220, 16, 15, 15, 15, 692, 27751, 1669, 4494, 7121, 1178, 98637, 445, 2271, 497, 330, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateAccessApplication(t *testing.T) { setup() defer teardown() handler := func(w http.ResponseWriter, r *http.Request) { assert.Equal(t, r.Method, "PUT", "Expected method 'PUT', got %s", r.Method) w.Header().Set("content-type", "application/json") fmt.Fprintf(w, `{ "success": true, "errors": ...
explode_data.jsonl/45471
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1114 }
[ 2830, 3393, 4289, 6054, 4988, 1155, 353, 8840, 836, 8, 341, 84571, 741, 16867, 49304, 2822, 53326, 1669, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6948, 12808, 1155, 11, 435, 20798, 11, 330, 6221, 497, 330, 18896...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckInvalidErr(t *testing.T) { testCheckError(t, []checkErrTestCase{ { errors.NewInvalid(corev1.SchemeGroupVersion.WithKind("Invalid1").GroupKind(), "invalidation", field.ErrorList{field.Invalid(field.NewPath("field"), "single", "details")}), "The Invalid1 \"invalidation\" is invalid: field: Invalid ...
explode_data.jsonl/38773
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 577 }
[ 2830, 3393, 3973, 7928, 7747, 1155, 353, 8840, 836, 8, 341, 18185, 3973, 1454, 1155, 11, 3056, 2028, 7747, 16458, 515, 197, 197, 515, 298, 73424, 7121, 7928, 47867, 85, 16, 92719, 2808, 5637, 26124, 10629, 445, 7928, 16, 1827, 2808, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGreenPath(t *testing.T) { t.Parallel() client, admin, service := createClientAndService(t, testdir) defer service.Stop() defer client.conn.Close() service.lsccMetadataManager.query.On("GetState", "lscc", "cc1").Return(cc1Bytes, nil) service.lsccMetadataManager.query.On("GetState", "lscc", "cc2").Return(...
explode_data.jsonl/25951
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1664 }
[ 2830, 3393, 19576, 1820, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 25291, 11, 3986, 11, 2473, 1669, 1855, 2959, 3036, 1860, 1155, 11, 1273, 3741, 340, 16867, 2473, 30213, 741, 16867, 2943, 22810, 10421, 2822, 52934, 98576, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestChannelIsInChannel(t *testing.T) { t.Parallel() cs := &cryptoService{} cs.On("VerifyBlock", mock.Anything).Return(nil) adapter := new(gossipAdapterMock) configureAdapter(adapter) gc := NewGossipChannel(pkiIDInOrg1, orgInChannelA, cs, channelA, adapter, &joinChanMsg{}, disabledMetrics) adapter.On("Gossi...
explode_data.jsonl/66319
{ "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, 9629, 3872, 641, 9629, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 71899, 1669, 609, 35772, 1860, 16094, 71899, 8071, 445, 32627, 4713, 497, 7860, 13311, 1596, 568, 5598, 27907, 340, 197, 19731, 1669, 501, 3268, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReplySticker(t *testing.T) { message := mockMessage() go message.ReplySticker("server.go") reply := <-message.Replies if reply.Data == "" { t.Error("Reply should contain sticker url") } }
explode_data.jsonl/25061
{ "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, 20841, 623, 5215, 1155, 353, 8840, 836, 8, 341, 24753, 1669, 7860, 2052, 741, 30680, 1943, 2817, 2541, 623, 5215, 445, 4030, 18002, 1138, 86149, 1669, 9119, 1994, 2817, 7202, 198, 743, 9851, 3336, 621, 1591, 341, 197, 3244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestValueAssignmentReadWrite(t *testing.T) { t.Parallel() data := `{ concat: ["http://", get_attribute: [HOST, public_ip_address], ":", get_property: [SELF, port] ] }` va := ValueAssignment{} err := yaml.Unmarshal([]byte(data), &va) require.Nil(t, err) require.Equal(t, `concat: ["http://", get_attribute: [H...
explode_data.jsonl/64268
{ "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, 1130, 41613, 58610, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 8924, 1669, 53692, 33720, 25, 4383, 1254, 1110, 497, 633, 16791, 25, 508, 28687, 11, 584, 10385, 6744, 1125, 330, 12147, 633, 16638, 25, 508, 65773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReauthorizeUserJob(t *testing.T) { needsReauth := func(env *mock.Environment, u *user.DBUser) (bool, error) { dbUser, err := user.FindOneById(u.Username()) if err != nil { return false, errors.WithStack(err) } if dbUser.LoginCache.Token == "" { return false, nil } return time.Since(dbUser.Lo...
explode_data.jsonl/70064
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2023 }
[ 2830, 3393, 693, 52022, 1474, 12245, 1155, 353, 8840, 836, 8, 341, 197, 55245, 693, 3242, 1669, 2915, 16978, 353, 16712, 45651, 11, 575, 353, 872, 22537, 1474, 8, 320, 2641, 11, 1465, 8, 341, 197, 20939, 1474, 11, 1848, 1669, 1196, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPodLabelsAnnotations(t *testing.T) { annotations := map[string]string{ "testannotation": "testvalue", } labels := map[string]string{ "testlabel": "testvalue", } sset, err := makeStatefulSet(&monitoringv1.Alertmanager{ ObjectMeta: metav1.ObjectMeta{}, Spec: monitoringv1.AlertmanagerSpec{ PodMeta...
explode_data.jsonl/25238
{ "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, 23527, 23674, 21418, 1155, 353, 8840, 836, 8, 341, 197, 39626, 1669, 2415, 14032, 30953, 515, 197, 197, 1, 1944, 24674, 788, 330, 1944, 957, 756, 197, 532, 95143, 1669, 2415, 14032, 30953, 515, 197, 197, 1, 1944, 1502, 788...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidTrigger(t *testing.T) { a := test_setup.SetupTestEnv(t) r := Event{}.ValidTrigger("gift") a.Equal(true, r) r = Event{}.ValidTrigger("notgift") a.Equal(false, r) }
explode_data.jsonl/48398
{ "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, 4088, 17939, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 1273, 21363, 39820, 2271, 14359, 1155, 692, 7000, 1669, 3665, 46391, 4088, 17939, 445, 52330, 1138, 11323, 12808, 3715, 11, 435, 692, 7000, 284, 3665, 46391, 4088, 17939,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSubtractStrSlicesEqual(t *testing.T) { orig := []string{"a"} new := []string{"a"} res := subtractStrSlices(orig, new) require.Len(t, res, 0) }
explode_data.jsonl/66964
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 65 }
[ 2830, 3393, 3136, 2144, 2580, 50, 37414, 2993, 1155, 353, 8840, 836, 8, 341, 197, 4670, 1669, 3056, 917, 4913, 64, 16707, 8638, 1669, 3056, 917, 4913, 64, 63159, 10202, 1669, 32256, 2580, 50, 37414, 54837, 11, 501, 340, 17957, 65819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetCurrencies(t *testing.T) { _, err := anx.GetCurrencies() if err != nil { t.Fatalf("Test failed. TestGetCurrencies failed. Err: %s", err) } }
explode_data.jsonl/8471
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 61 }
[ 2830, 3393, 1949, 34, 19607, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 73784, 2234, 34, 19607, 741, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 2271, 4641, 13, 3393, 1949, 34, 19607, 4641, 13, 15495, 25, 1018, 82, 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 ]
2
func TestLogsWorkflowOpts_Validate_LookBackError(t *testing.T) { opts := logsWorkflowOpts{logsWorkflowVars: logsWorkflowVars{logsSharedVars: logsSharedVars{lookBack: "abc"}}} err := opts.Validate() assert.Equal(t, fmt.Errorf("time: invalid duration \"abc\""), err) }
explode_data.jsonl/74225
{ "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, 51053, 62768, 43451, 62, 17926, 2351, 1941, 3707, 1454, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 18422, 62768, 43451, 90, 22081, 62768, 28305, 25, 18422, 62768, 28305, 90, 22081, 16997, 28305, 25, 18422, 16997, 28305, 90, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadPlainFIXED_LEN_BYTE_ARRAY(t *testing.T) { testData := [][]interface{}{ {("hello"), ("world")}, {("a"), ("b"), ("c"), ("d")}, } for _, data := range testData { res, _ := ReadPlainFIXED_LEN_BYTE_ARRAY(bytes.NewReader(WritePlainFIXED_LEN_BYTE_ARRAY(data)), uint64(len(data)), uint64(len(data[0].(stri...
explode_data.jsonl/23896
{ "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, 4418, 26982, 39690, 1479, 15536, 27349, 17724, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 1669, 52931, 4970, 67066, 197, 197, 90, 445, 14990, 3975, 3489, 14615, 79583, 197, 197, 90, 445, 64, 3975, 3489, 65, 3975, 3489, 66, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLDSStreamEmpty(t *testing.T) { _, cc, done := setup(t) defer done() // assert that streaming LDS with no ingresses does not stall. assertEqual(t, &v2.DiscoveryResponse{ VersionInfo: "0", TypeUrl: listenerType, Nonce: "0", }, streamLDS(t, cc, "HTTP")) }
explode_data.jsonl/22821
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 43, 5936, 3027, 3522, 1155, 353, 8840, 836, 8, 341, 197, 6878, 12527, 11, 2814, 1669, 6505, 1155, 340, 16867, 2814, 2822, 197, 322, 2060, 429, 16842, 71536, 448, 902, 6749, 43257, 1558, 537, 42693, 624, 6948, 2993, 1155, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEffectsRequest(t *testing.T) { hmock := httptest.NewClient() client := &Client{ HorizonURL: "https://localhost/", HTTP: hmock, } effectRequest := EffectRequest{} // all effects hmock.On( "GET", "https://localhost/effects", ).ReturnString(200, effectsResponse) effs, err := client.Effect...
explode_data.jsonl/82469
{ "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, 39782, 1900, 1155, 353, 8840, 836, 8, 341, 9598, 16712, 1669, 54320, 70334, 7121, 2959, 741, 25291, 1669, 609, 2959, 515, 197, 13292, 269, 16973, 3144, 25, 330, 2428, 1110, 8301, 35075, 197, 197, 9230, 25, 981, 305, 16712, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestRootMappingFsOs(t *testing.T) { c := qt.New(t) fs := afero.NewOsFs() d, err := ioutil.TempDir("", "hugo-root-mapping") c.Assert(err, qt.IsNil) defer func() { os.RemoveAll(d) }() testfile := "myfile.txt" c.Assert(fs.Mkdir(filepath.Join(d, "f1t"), 0755), qt.IsNil) c.Assert(fs.Mkdir(filepath.Join(d, ...
explode_data.jsonl/13729
{ "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, 8439, 6807, 48300, 28867, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 38949, 7121, 1155, 340, 53584, 1669, 264, 802, 78, 7121, 28867, 48300, 2822, 2698, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 71, 33501, 39214, 1448, 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 TestJSONMarshalSecret(t *testing.T) { test := struct { S Secret }{ S: Secret("test"), } c, err := json.Marshal(test) if err != nil { t.Fatal(err) } // u003c -> "<" // u003e -> ">" require.Equal(t, "{\"S\":\"\\u003csecret\\u003e\"}", string(c), "Secret not properly elided.") }
explode_data.jsonl/72908
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 5370, 55438, 19773, 1155, 353, 8840, 836, 8, 341, 18185, 1669, 2036, 341, 197, 7568, 8599, 198, 197, 59403, 197, 7568, 25, 8599, 445, 1944, 4461, 197, 630, 1444, 11, 1848, 1669, 2951, 37271, 8623, 340, 743, 1848, 961, 2092...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestKMSKeyTrimVersion(t *testing.T) { t.Parallel() cases := []struct { name string i string o string }{ { "malformed", "foo", "foo", }, { "no_version", "projects/p/locations/l/keyRings/kr/cryptoKeys/ck", "projects/p/locations/l/keyRings/kr/cryptoKeys/ck", }, { "versio...
explode_data.jsonl/72220
{ "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, 42, 4826, 1592, 25656, 5637, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 8230, 262, 914, 198, 197, 22229, 262, 914, 198, 197, 59403, 197, 197, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSubchartRemoteDependencies(t *testing.T) { input := []byte(remoteRequirementsYAML) actual, err := localSubchartDependencies(input) if err != nil { t.Fatal(err) } assert.Empty(t, actual) }
explode_data.jsonl/15144
{ "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, 3136, 15941, 24703, 48303, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 3056, 3782, 61381, 59202, 56, 31102, 340, 88814, 11, 1848, 1669, 2205, 3136, 15941, 48303, 5384, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 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 ]
2
func TestEngine_Stats(t *testing.T) { eng := NewEngine(EngineOpts{}, &statsQuerier{}, NoLimits, log.NewNopLogger()) queueTime := 2 * time.Nanosecond q := eng.Query(LiteralParams{ qs: `{foo="bar"}`, start: time.Now(), end: time.Now(), direction: logproto.BACKWARD, limit: 1000, }) ctx...
explode_data.jsonl/59953
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 252 }
[ 2830, 3393, 4571, 62, 16635, 1155, 353, 8840, 836, 8, 341, 197, 826, 1669, 1532, 4571, 7, 4571, 43451, 22655, 609, 16260, 2183, 261, 1268, 22655, 2308, 94588, 11, 1487, 7121, 45, 453, 7395, 12367, 46993, 1462, 1669, 220, 17, 353, 882,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLimiter_Wait__Slept(t *testing.T) { lim := NewLimiter(10, 1, 1) isWaitDone := false go func() { lim.Wait() lim.Wait() isWaitDone = true }() time.Sleep(time.Millisecond * 50) assert.Equal(t, isWaitDone, false) }
explode_data.jsonl/38235
{ "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, 43, 17700, 2763, 1315, 563, 50, 273, 417, 1155, 353, 8840, 836, 8, 341, 197, 4659, 1669, 1532, 43, 17700, 7, 16, 15, 11, 220, 16, 11, 220, 16, 340, 19907, 14190, 17453, 1669, 895, 271, 30680, 2915, 368, 341, 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 TestCreateManyObjectsOK(t *testing.T) { testServer(func(s *core.Server) { //test create scores := getGameScoreBatch(1005, "adnaan", t) headers := make(map[string]string) headers["X-Api-Token"] = apiToken headers["X-Api-Secret"] = apiSecret url := "/api/v1/objects/batch" + "GameScore" //make reques...
explode_data.jsonl/42218
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 370 }
[ 2830, 3393, 4021, 8441, 11543, 3925, 1155, 353, 8840, 836, 8, 1476, 18185, 5475, 18552, 1141, 353, 2153, 22997, 8, 341, 197, 197, 322, 1944, 1855, 198, 197, 1903, 7701, 1669, 633, 4868, 10570, 21074, 7, 16, 15, 15, 20, 11, 330, 329,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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