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 TestGet(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() fixtures.HandleGetSuccessfully(t) aId := "a26887c6-c47b-4654-abb5-dfadf7d3f804" serverId := "4d8c3732-a248-40ed-bebc-539a6ffd25c0" actual, err := Get(client.ServiceClient(), serverId, aId).Extract() th.AssertNoErr(t, err) th.CheckDeepEquals(t,...
explode_data.jsonl/34615
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 161 }
[ 2830, 3393, 1949, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 1166, 941, 18513, 31421, 1949, 35959, 1155, 340, 11323, 764, 1669, 330, 64, 17, 21, 23, 23, 22, 66, 21, 1786, 19, 22, 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 TestMoveByStops(t *testing.T) { tests := []MoveTest{ { []Region{{45, 45}}, "stops", false, true, []Region{{56, 56}}, Args{"word_end": true}, }, { []Region{{45, 45}}, "stops", false, true, []Region{{46, 46}}, Args{"word_end": true, "separators": ""}, }, { []Region{{...
explode_data.jsonl/27886
{ "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, 9860, 1359, 623, 3721, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 9860, 2271, 515, 197, 197, 515, 298, 197, 1294, 14091, 2979, 19, 20, 11, 220, 19, 20, 22050, 298, 197, 1, 98020, 756, 298, 36012, 345, 298, 42808, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetUserHomeDirectory(t *testing.T) { users := TestUsers() SetupTestHooks(users) usr, err := currentUser() assert.NoError(t, err, "getting current user failed") testCases := []struct { user *user.User home string expectedHomeDir string }{ {users["alice"], users["alice"].HomeD...
explode_data.jsonl/54589
{ "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, 1949, 1474, 7623, 9310, 1155, 353, 8840, 836, 8, 341, 90896, 1669, 3393, 7137, 741, 197, 21821, 2271, 67769, 35438, 340, 197, 7063, 11, 1848, 1669, 31443, 741, 6948, 35699, 1155, 11, 1848, 11, 330, 50110, 1482, 1196, 4641, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadingMap(t *testing.T) { flightMap, err := LoadMap("input.txt") if err != nil { t.Fatal(err) } fmt.Printf("%v", flightMap[0]) if len(flightMap) != 11 { t.Errorf("Expected length of 11, Got %d", len(flightMap)) } if len(flightMap[1]) != 11 { t.Errorf("Expected length of 11, Got %d", len(flight...
explode_data.jsonl/51689
{ "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, 8578, 2227, 1155, 353, 8840, 836, 8, 341, 1166, 4145, 2227, 11, 1848, 1669, 8893, 2227, 445, 1355, 3909, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 11009, 19367, 4430, 85, 497, 10971, 2227, 58,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestConn_ReadWrite(t *testing.T) { requireVCAN0(t) // given a reader and writer reader, err := Dial("can", "vcan0") assert.NilError(t, err) writer, err := Dial("can", "vcan0") assert.NilError(t, err) // when the reader reads var g errgroup.Group var readFrame can.Frame g.Go(func() error { rec := NewRec...
explode_data.jsonl/35858
{ "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, 9701, 38381, 7985, 1155, 353, 8840, 836, 8, 341, 17957, 11287, 1093, 15, 1155, 340, 197, 322, 2661, 264, 6604, 323, 6916, 198, 61477, 11, 1848, 1669, 66155, 445, 4814, 497, 330, 85, 4814, 15, 1138, 6948, 59678, 1454, 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 TestMemCache_Clean(t *testing.T) { assert := assert.New(t) err := cMem.Set("test", "aaa", time.Millisecond*500) assert.Nil(err) cMem.Clear() _, err = cMem.Get("test") assert.True(isNotExits(err)) }
explode_data.jsonl/74757
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 90 }
[ 2830, 3393, 18816, 8233, 920, 2675, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 9859, 1669, 272, 18816, 4202, 445, 1944, 497, 330, 32646, 497, 882, 71482, 9, 20, 15, 15, 340, 6948, 59678, 3964, 340, 1444, 18816, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test64BitValues(t *testing.T) { bmp := New() bmp.SetCopyOnWrite(true) for i := 100; i < 1000; i++ { bmp.Add(uint64(i)) } var i uint64 for i = 14000000000000000100; i < 14000000000000001000; i++ { bmp.Add(i) } assert.True(t, bmp.Contains(uint64(14000000000000000500))) array := []uint64{5, 1, 2, 2342949...
explode_data.jsonl/20355
{ "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, 21, 19, 8344, 6227, 1155, 353, 8840, 836, 8, 341, 2233, 1307, 1669, 1532, 741, 2233, 1307, 4202, 12106, 1925, 7985, 3715, 340, 2023, 600, 1669, 220, 16, 15, 15, 26, 600, 366, 220, 16, 15, 15, 15, 26, 600, 1027, 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...
3
func TestAddImagePullSecrets(t *testing.T) { ns := "myns" admit := NewServiceAccount() informerFactory := informers.NewSharedInformerFactory(nil, controller.NoResyncPeriodFunc()) admit.SetExternalKubeInformerFactory(informerFactory) admit.LimitSecretReferences = true admit.RequireAPIToken = false sa := &corev1...
explode_data.jsonl/61355
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 481 }
[ 2830, 3393, 2212, 1906, 36068, 19773, 82, 1155, 353, 8840, 836, 8, 341, 84041, 1669, 330, 76, 1872, 82, 1837, 98780, 1763, 1669, 1532, 1860, 7365, 741, 17430, 34527, 4153, 1669, 6051, 388, 7121, 16997, 641, 34527, 4153, 27907, 11, 6461,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDexPreoptSystemOther(t *testing.T) { config := android.TestConfig("out", nil, "", nil) ctx := android.BuilderContextForTesting(config) globalSoong := globalSoongConfigForTests() global := GlobalConfigForTests(ctx) systemModule := testSystemModuleConfig(ctx, "Stest") systemProductModule := testSystemProdu...
explode_data.jsonl/56808
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 742 }
[ 2830, 3393, 35, 327, 4703, 2912, 2320, 11409, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 2103, 8787, 2648, 445, 411, 497, 2092, 11, 7342, 2092, 340, 20985, 1669, 2103, 15641, 1972, 2461, 16451, 8754, 340, 18842, 4416, 644, 1669, 3644, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVersion(t *testing.T) { expected := "tarsum" var v Version if v.String() != expected { t.Errorf("expected %q, got %q", expected, v.String()) } expected = "tarsum.v1" v = 1 if v.String() != expected { t.Errorf("expected %q, got %q", expected, v.String()) } expected = "tarsum.dev" v = 2 if v.Str...
explode_data.jsonl/63049
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 5637, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 330, 26737, 1242, 698, 2405, 348, 6079, 198, 743, 348, 6431, 368, 961, 3601, 341, 197, 3244, 13080, 445, 7325, 1018, 80, 11, 2684, 1018, 80, 497, 3601, 11, 348, 6431, 2398...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEndBytes(t *testing.T) { serverOutput := "hello world" ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) w.Write([]byte(serverOutput)) })) defer ts.Close() // Callback. { resp, bodyBytes, errs := New().Get(ts.URL).EndBytes(func(resp Respons...
explode_data.jsonl/25471
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 565 }
[ 2830, 3393, 3727, 7078, 1155, 353, 8840, 836, 8, 341, 41057, 5097, 1669, 330, 14990, 1879, 698, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6692, 69794, 7, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAnnounceTimeout(t *testing.T) { s, err := NewServer(&ServerConfig{ StartingNodes: addrResolver("1.2.3.4:5"), Conn: mustListen(":0"), QueryResendDelay: func() time.Duration { return 0 }, }) require.NoError(t, err) var ih [20]byte copy(ih[:], "12341234123412341234") a, err := s.Announce...
explode_data.jsonl/35953
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 184 }
[ 2830, 3393, 27093, 9734, 7636, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 1532, 5475, 2099, 5475, 2648, 515, 197, 197, 24617, 12288, 25, 10789, 18190, 445, 16, 13, 17, 13, 18, 13, 19, 25, 20, 4461, 197, 197, 9701, 25, 688...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_defaultFiltersFlags_String(t *testing.T) { tests := []struct { name string filters []*eskip.Filter want string }{ { name: "test string", filters: []*eskip.Filter{}, want: "<default filters>", }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { dpf := &de...
explode_data.jsonl/22589
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 238 }
[ 2830, 3393, 9993, 28351, 9195, 31777, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 1166, 8612, 29838, 288, 13389, 31696, 198, 197, 50780, 262, 914, 198, 197, 59403, 197, 197, 515, 298, 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...
2
func TestHealth(t *testing.T) { Convey("Given I register the health handler", t, func() { lc := fxtest.NewLifecycle(t) logger, err := zap.NewLogger(lc, zap.NewConfig()) So(err, ShouldBeNil) cc := checker.NewHTTPChecker("https://httpstat.us/200", test.NewHTTPClient(logger)) hr := server.NewRegistration("htt...
explode_data.jsonl/49474
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 561 }
[ 2830, 3393, 14542, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 22043, 358, 4161, 279, 2820, 7013, 497, 259, 11, 2915, 368, 341, 197, 8810, 66, 1669, 33219, 1944, 7121, 62731, 1155, 692, 197, 17060, 11, 1848, 1669, 32978, 7121, 739...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransferInputVerifyNoValue(t *testing.T) { in := TransferInput{ Amt: 0, Input: Input{ SigIndices: []uint32{0, 1}, }, } err := in.Verify() if err == nil { t.Fatalf("Should have errored with a no value input") } }
explode_data.jsonl/31622
{ "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, 21970, 2505, 32627, 2753, 1130, 1155, 353, 8840, 836, 8, 341, 17430, 1669, 23200, 2505, 515, 197, 22985, 2501, 25, 220, 15, 345, 197, 66588, 25, 5571, 515, 298, 7568, 343, 31941, 25, 3056, 2496, 18, 17, 90, 15, 11, 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...
2
func TestPermError(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() mw := NewMailWorker() go func(ctx context.Context) { mw.Start(ctx) }(ctx) expectedError := &textproto.Error{ Code: 500, Msg: "Permanent error", } sender := newMockErrorSender(expectedError) diale...
explode_data.jsonl/55822
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 583 }
[ 2830, 3393, 81245, 1454, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 2822, 2109, 86, 1669, 1532, 16702, 21936, 741, 30680, 2915, 7502, 2266, 9328, 8, 341, 197, 2109, 86, 12101,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRetryEvent(t *testing.T) { e, err := unmarshal([]string{"retry:"}) if err != nil { t.Errorf("Unexpected failure while unmarshaling valid EventsResponse") } if e.Type != eventRetry { t.Errorf("Parsed event type is supposed to be retry") } }
explode_data.jsonl/78027
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 51560, 1556, 1155, 353, 8840, 836, 8, 341, 7727, 11, 1848, 1669, 650, 27121, 10556, 917, 4913, 44848, 2974, 3518, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 29430, 7901, 1393, 650, 36239, 6132, 2697, 17627, 2582, 1138...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestShuffle(t *testing.T) { endorsers := make(Endorsers, 1000) for i := 0; i < len(endorsers); i++ { endorsers[i] = &Peer{ StateInfoMessage: stateInfoWithHeight(uint64(i)), } } isHeightAscending := func(endorsers Endorsers) bool { for i := 0; i < len(endorsers)-1; i++ { currHeight := endorsers[i]....
explode_data.jsonl/38942
{ "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, 2016, 13208, 1155, 353, 8840, 836, 8, 341, 6246, 1087, 388, 1669, 1281, 7, 3727, 1087, 388, 11, 220, 16, 15, 15, 15, 340, 2023, 600, 1669, 220, 15, 26, 600, 366, 2422, 15076, 1087, 388, 1215, 600, 1027, 341, 197, 6246,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMap(t *testing.T) { type Test struct { Map map[string]string `s:"defaultMap,dive,defaultStr"` } set := New() set.SetTagName("s") set.Register("defaultMap", func(ctx context.Context, t *Transformer, value reflect.Value, param string) error { if HasValue(value) { return nil } value.Set(reflect.M...
explode_data.jsonl/43617
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 420 }
[ 2830, 3393, 2227, 1155, 353, 8840, 836, 8, 341, 13158, 3393, 2036, 341, 197, 26873, 2415, 14032, 30953, 1565, 82, 2974, 2258, 2227, 11991, 533, 87696, 2580, 8805, 197, 630, 8196, 1669, 1532, 741, 8196, 4202, 22616, 445, 82, 1138, 8196, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPatchTeamSanitization(t *testing.T) { th := Setup(t) defer th.TearDown() team, resp := th.Client.CreateTeam(&model.Team{ DisplayName: t.Name() + "_1", Name: GenerateTestTeamName(), Email: th.GenerateTestEmail(), Type: model.TEAM_OPEN, AllowedDomains: "simulator.ama...
explode_data.jsonl/70707
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 398 }
[ 2830, 3393, 43622, 14597, 23729, 275, 2022, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 340, 16867, 270, 836, 682, 4454, 2822, 197, 9196, 11, 9039, 1669, 270, 11716, 7251, 14597, 2099, 2528, 65842, 515, 197, 197, 26456, 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 Test_String(t *testing.T) { a := assert.New(t) a.Equal(String("", "foo"), "foo") a.Equal(String("bar", "foo"), "bar") var s string a.Equal(String(s, "foo"), "foo") }
explode_data.jsonl/12070
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 79 }
[ 2830, 3393, 31777, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 2060, 7121, 1155, 692, 11323, 12808, 2242, 19814, 330, 7975, 3975, 330, 7975, 1138, 11323, 12808, 2242, 445, 2257, 497, 330, 7975, 3975, 330, 2257, 1138, 2405, 274, 914, 198,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestClient_CoinsData(t *testing.T) { cd, err := client.CoinsID(CoinsDataParams{Id: "solana"}) require.NoError(t, err) require.Equal(t, "solana", cd.Id) require.Equal(t, "sol", cd.Symbol) require.Equal(t, "Solana", cd.Name) }
explode_data.jsonl/37792
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 2959, 920, 68798, 1043, 1155, 353, 8840, 836, 8, 341, 72826, 11, 1848, 1669, 2943, 52114, 1330, 915, 3025, 68798, 1043, 4870, 90, 764, 25, 330, 38198, 3362, 23625, 17957, 35699, 1155, 11, 1848, 340, 17957, 12808, 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 TestGatewayConformance(t *testing.T) { framework. NewTest(t). RequiresSingleCluster(). Features("traffic.gateway"). Run(func(ctx framework.TestContext) { if !supportsCRDv1(ctx) { t.Skip("Not supported; requires CRDv1 support.") } if err := ctx.ConfigIstio(). File("", "testdata/gateway-api...
explode_data.jsonl/48646
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 654 }
[ 2830, 3393, 40709, 1109, 11795, 1155, 353, 8840, 836, 8, 341, 1166, 5794, 624, 197, 197, 3564, 2271, 1155, 4292, 197, 197, 46961, 10888, 28678, 25829, 197, 197, 21336, 445, 53987, 80292, 38609, 197, 85952, 18552, 7502, 12626, 8787, 1972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmptyAndToSql(t *testing.T) { sql, args, err := And{}.ToSql() assert.NoError(t, err) expectedSql := "(1=1)" assert.Equal(t, expectedSql, sql) expectedArgs := []interface{}{} assert.Equal(t, expectedArgs, args) }
explode_data.jsonl/44175
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 93 }
[ 2830, 3393, 3522, 3036, 1249, 8269, 1155, 353, 8840, 836, 8, 341, 30633, 11, 2827, 11, 1848, 1669, 1597, 46391, 1249, 8269, 741, 6948, 35699, 1155, 11, 1848, 692, 42400, 8269, 1669, 11993, 16, 28, 16, 12954, 6948, 12808, 1155, 11, 360...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransformGroup(t *testing.T) { tests := []struct { commonFields common.Fields expected []string }{ { commonFields: common.Fields{common.Field{Name: "context", Path: "something"}}, expected: []string{"context"}, }, { commonFields: common.Fields{ common.Field{ Name: "context...
explode_data.jsonl/37635
{ "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, 8963, 2808, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 83825, 8941, 4185, 42809, 198, 197, 42400, 257, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 83825, 8941, 25, 4185, 42809, 90, 5464, 17087, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestLimitStep(t *testing.T) { tc := newFakeTableClient() _, flowChan := tc.t.Start() defer tc.t.Stop() for tc.t.State() != common.RunningState { time.Sleep(100 * time.Millisecond) } flowChan <- newICMPFlow(222) flowChan <- newICMPFlow(444) time.Sleep(time.Second) query := `G.Flows()` res := execTra...
explode_data.jsonl/45639
{ "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, 16527, 8304, 1155, 353, 8840, 836, 8, 341, 78255, 1669, 501, 52317, 2556, 2959, 2822, 197, 6878, 6396, 46019, 1669, 17130, 734, 12101, 741, 16867, 17130, 734, 30213, 741, 2023, 17130, 734, 18942, 368, 961, 4185, 2013, 11216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCopy(t *testing.T) { var e1, e2 float32 e := createRandomObject(e1) if v, ok := e.(float32); ok { e1 = v } e = createRandomObject(e2) if v, ok := e.(float32); ok { e2 = v } s1 := New() s1.Add(e1) s1.Add(e2) s2 := s1.Copy() if !s2.IsEqual(s1) { t.Errorf("expected %v to be equal to %v after...
explode_data.jsonl/35015
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 12106, 1155, 353, 8840, 836, 8, 341, 2405, 384, 16, 11, 384, 17, 2224, 18, 17, 198, 7727, 1669, 1855, 13999, 1190, 2026, 16, 340, 743, 348, 11, 5394, 1669, 384, 12832, 3649, 18, 17, 1215, 5394, 341, 197, 7727, 16, 284,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestScrapeLoopStopBeforeRun(t *testing.T) { scraper := &testScraper{} sl := newScrapeLoop(context.Background(), scraper, nil, nil, nopMutator, nopMutator, nil, nil, 0, true, ) // The scrape pool synchronizes on stopping scrape loops. However, new scrape // loops are started asynchronously. Thus ...
explode_data.jsonl/56118
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 443 }
[ 2830, 3393, 3326, 19842, 14620, 10674, 10227, 6727, 1155, 353, 8840, 836, 8, 341, 1903, 86282, 1669, 609, 1944, 65508, 3191, 31483, 78626, 1669, 501, 3326, 19842, 14620, 5378, 19047, 3148, 197, 1903, 86282, 345, 197, 84131, 11, 2092, 345,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAgentConnectAuthorize_deny(t *testing.T) { t.Parallel() assert := assert.New(t) a := NewTestAgent(t.Name(), "") defer a.Shutdown() target := "db" // Create some intentions { req := structs.IntentionRequest{ Datacenter: "dc1", Op: structs.IntentionOpCreate, Intention: structs.TestI...
explode_data.jsonl/33670
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 436 }
[ 2830, 3393, 16810, 14611, 37483, 814, 32395, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 6948, 1669, 2060, 7121, 1155, 340, 11323, 1669, 1532, 2271, 16810, 1155, 2967, 1507, 14676, 16867, 264, 10849, 18452, 2822, 28861, 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...
1
func TestReconcileCancelledRunFinallyFailsTaskRunCancellation(t *testing.T) { // TestReconcileCancelledRunFinallyFailsTaskRunCancellation runs "Reconcile" on a PipelineRun with a single TaskRun. // The TaskRun cannot be cancelled. Check that the pipelinerun graceful cancel fails, that reconcile fails and // an event...
explode_data.jsonl/27289
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1584 }
[ 2830, 3393, 693, 40446, 457, 39473, 6727, 23949, 37, 6209, 6262, 6727, 82298, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 693, 40446, 457, 39473, 6727, 23949, 37, 6209, 6262, 6727, 82298, 8473, 330, 693, 40446, 457, 1, 389, 264, 409...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeletePolicy(t *testing.T) { appProtectConfiguration := NewAppProtectConfiguration() appProtectConfiguration.Policies["testing/test"] = &AppProtectPolicyEx{} tests := []struct { key string expectedChanges []AppProtectChange expectedProblems []AppProtectProblem msg string ...
explode_data.jsonl/19387
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 462 }
[ 2830, 3393, 6435, 13825, 1155, 353, 8840, 836, 8, 341, 28236, 61547, 7688, 1669, 1532, 2164, 61547, 7688, 741, 28236, 61547, 7688, 1069, 42038, 1183, 8840, 12697, 1341, 284, 609, 2164, 61547, 13825, 840, 16094, 78216, 1669, 3056, 1235, 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...
4
func Test_Bitmap_003(t *testing.T) { tool.Test(t, nil, new(App), func(app *App) { app.Require(app.Bitmaps) reader, err := os.Open(PNG_FILEPATH) if err != nil { t.Fatal(err) } defer reader.Close() if bitmap, _, err := image.Decode(reader); err != nil { t.Error(err) } else if dest, err := app.NewBit...
explode_data.jsonl/15083
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 426 }
[ 2830, 3393, 1668, 19244, 62, 15, 15, 18, 1155, 353, 8840, 836, 8, 341, 197, 14172, 8787, 1155, 11, 2092, 11, 501, 23231, 701, 2915, 11462, 353, 2164, 8, 341, 197, 28236, 81288, 11462, 68866, 17640, 692, 197, 61477, 11, 1848, 1669, 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 TestVersionObjectList(t *testing.T) { ctx := context.Background() c, rollback := makeConnectionWithVersionsObject(t) defer rollback() if skipVersionTests { t.Log("Server doesn't support Versions - skipping test") return } list, err := c.VersionObjectList(ctx, VERSIONS_CONTAINER, OBJECT) if err != nil { ...
explode_data.jsonl/12711
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 148 }
[ 2830, 3393, 5637, 1190, 852, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1444, 11, 60414, 1669, 1281, 4526, 2354, 69015, 1190, 1155, 340, 16867, 60414, 741, 743, 10706, 5637, 18200, 341, 197, 3244, 5247, 445, 5475, 3171...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExtractTLSSecretName(t *testing.T) { testCases := map[string]struct { host string ingress *ingress.Ingress fn func(string) (*ingress.SSLCert, error) expName string }{ "nil ingress": { "foo.bar", nil, func(string) (*ingress.SSLCert, error) { return nil, nil }, "", }, "...
explode_data.jsonl/69683
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1534 }
[ 2830, 3393, 28959, 13470, 1220, 50856, 675, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 63104, 262, 914, 198, 197, 197, 287, 673, 353, 287, 673, 5337, 2483, 198, 197, 40095, 414, 2915, 3609, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPrometheusTracer_ResolveFieldDidStart(t *testing.T) { mockTime, cleanup := mockTime() defer cleanup() tests := []struct { name string allowList []string delta time.Duration runs int err error want string }{ { name: "omitted from allow list", allowList: []s...
explode_data.jsonl/82526
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1371 }
[ 2830, 3393, 35186, 39705, 1282, 9584, 62, 56808, 1877, 6986, 3479, 1155, 353, 8840, 836, 8, 341, 77333, 1462, 11, 21290, 1669, 7860, 1462, 741, 16867, 21290, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 197, 7183,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAPITimeUnmarshalJSONSupportsRFC3339Nano(t *testing.T) { var ( when = time.Now().Add(1 * time.Nanosecond) format = time.RFC3339Nano marshaledExample = []byte(fmt.Sprintf(`"%s"`, when.Format(format))) actual repo.APITime ) if err := json.Unmarshal(marshaledExample, &actual); err...
explode_data.jsonl/19475
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 2537, 952, 545, 1806, 27121, 5370, 7916, 82, 64371, 18, 18, 18, 24, 83819, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 60180, 1797, 284, 882, 13244, 1005, 2212, 7, 16, 353, 882, 2067, 276, 960, 1297, 340, 197, 59416, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateJob(t *testing.T) { t.Parallel() store, cleanup := cltest.NewStore(t) defer cleanup() // Create a funding key. require.NoError(t, store.KeyStore.Unlock(cltest.Password)) funding, err := store.KeyStore.NewAccount() require.NoError(t, err) fundingKey := models.Key{ Address: models.EIP55Addre...
explode_data.jsonl/75327
{ "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, 12245, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 57279, 11, 21290, 1669, 1185, 1944, 7121, 6093, 1155, 340, 16867, 21290, 2822, 197, 322, 4230, 264, 10773, 1376, 624, 17957, 35699, 1155, 11, 3553, 9610, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultiRangeScanReverseScanInconsistent(t *testing.T) { defer leaktest.AfterTest(t)() for _, rc := range []roachpb.ReadConsistencyType{ roachpb.READ_UNCOMMITTED, roachpb.INCONSISTENT, } { t.Run(rc.String(), func(t *testing.T) { s, _ := startNoSplitMergeServer(t) ctx := context.TODO() defer s.S...
explode_data.jsonl/36460
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1263 }
[ 2830, 3393, 20358, 6046, 26570, 45695, 26570, 641, 78399, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 2023, 8358, 10192, 1669, 2088, 3056, 64500, 16650, 6503, 15220, 47094, 929, 515, 197, 197, 64500, 1665...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClient_Notify(t *testing.T) { httpmock.Activate() defer httpmock.DeactivateAndReset() ctx := context.Background() webhookURL := "https://test.example.com/v1/api-endpoint" type args struct { modelType string eventType EventType model interface{} id string } useArgs := args{ modelT...
explode_data.jsonl/26277
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 880 }
[ 2830, 3393, 2959, 1604, 37253, 1155, 353, 8840, 836, 8, 341, 28080, 16712, 14140, 731, 741, 16867, 1758, 16712, 8934, 16856, 3036, 14828, 2822, 20985, 1669, 2266, 19047, 741, 97250, 20873, 3144, 1669, 330, 2428, 1110, 1944, 7724, 905, 545...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRequestCtxSendFile(t *testing.T) { var ctx RequestCtx var req Request ctx.Init(&req, nil, defaultLogger) filePath := "./server_test.go" ctx.SendFile(filePath) w := &bytes.Buffer{} bw := bufio.NewWriter(w) if err := ctx.Response.Write(bw); err != nil { t.Fatalf("error when writing response: %s", err...
explode_data.jsonl/73295
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 400 }
[ 2830, 3393, 1900, 23684, 11505, 1703, 1155, 353, 8840, 836, 8, 341, 2405, 5635, 6145, 23684, 198, 2405, 4232, 6145, 198, 20985, 26849, 2099, 2958, 11, 2092, 11, 1638, 7395, 692, 17661, 1820, 1669, 5924, 4030, 4452, 18002, 698, 20985, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestPruneStalePeers(t *testing.T) { // complicated node graph node := testSetup() nodes := node.Nodes() // this will delete all nodes besides the root node pruneTime := 10 * time.Millisecond time.Sleep(pruneTime) // should delete all nodes besides (root) node pruned := node.PruneStalePeers(pruneTime) if...
explode_data.jsonl/23548
{ "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, 3533, 2886, 623, 1574, 10197, 388, 1155, 353, 8840, 836, 8, 341, 197, 322, 16965, 2436, 4771, 198, 20831, 1669, 1273, 21821, 741, 79756, 1669, 2436, 52184, 741, 197, 322, 419, 686, 3698, 678, 7798, 27758, 279, 3704, 2436, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransactionsEpoch(t *testing.T) { p := NewPersist() ctx := context.Background() tm := time.Now().UTC().Truncate(1 * time.Second) v := &TransactionsEpoch{} v.ID = "id1" v.Epoch = 10 v.VertexID = "vid1" v.CreatedAt = tm stream := health.NewStream() rawDBConn, err := dbr.Open(TestDB, TestDSN, stream)...
explode_data.jsonl/12931
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 520 }
[ 2830, 3393, 48761, 44338, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 1532, 61267, 741, 20985, 1669, 2266, 19047, 741, 3244, 76, 1669, 882, 13244, 1005, 21183, 1005, 1282, 26900, 7, 16, 353, 882, 32435, 692, 5195, 1669, 609, 48761, 44338,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuffer_RejectCallsMetricRejectWithOverwritten(t *testing.T) { var reject int mm := &MockMetric{ Metric: Metric(), RejectF: func() { reject++ }, } b := setup(NewBuffer("test", 5)) b.Add(mm, mm, mm, mm, mm) batch := b.Batch(5) b.Add(mm, mm) require.Equal(t, 0, reject) b.Reject(batch) require.E...
explode_data.jsonl/17696
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 158 }
[ 2830, 3393, 4095, 50693, 583, 55292, 54310, 78413, 2354, 1918, 25569, 1155, 353, 8840, 836, 8, 341, 2405, 7850, 526, 198, 2109, 76, 1669, 609, 11571, 54310, 515, 197, 9209, 16340, 25, 52458, 3148, 197, 197, 78413, 37, 25, 2915, 368, 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 TestGC_TrackDeletedManifests_DoesNothingIfTriggerDisabled(t *testing.T) { require.NoError(t, testutil.TruncateAllTables(suite.db)) enable, err := testutil.GCTrackDeletedManifestsTrigger.Disable(suite.db) require.NoError(t, err) defer enable() // disable other triggers that also insert on gc_blob_review_queue...
explode_data.jsonl/48566
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 542 }
[ 2830, 3393, 22863, 21038, 473, 26039, 38495, 82, 1557, 7072, 23780, 2679, 17939, 25907, 1155, 353, 8840, 836, 8, 341, 17957, 35699, 1155, 11, 1273, 1314, 8240, 26900, 2403, 21670, 89516, 7076, 4390, 197, 12552, 11, 1848, 1669, 1273, 1314,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfigSetValues(t *testing.T) { var err error assert := asrt.New(t) // Create a temporary directory and switch to it. tmpdir := testcommon.CreateTmpDir(t.Name()) defer testcommon.CleanupDir(tmpdir) defer testcommon.Chdir(tmpdir)() // Create an existing docroot docroot := "web" if err = os.MkdirAll(f...
explode_data.jsonl/76711
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2609 }
[ 2830, 3393, 2648, 1649, 6227, 1155, 353, 8840, 836, 8, 341, 2405, 1848, 1465, 198, 6948, 1669, 438, 3342, 7121, 1155, 692, 197, 322, 4230, 264, 13340, 6220, 323, 3398, 311, 432, 624, 20082, 3741, 1669, 1273, 5464, 7251, 35986, 6184, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewWithEmptyApiToken(t *testing.T) { _, err := users.New("", "any-base-url") if err == nil { t.Fatal("Expected error when API token is empty") } if err.Error() != "API token not defined" { t.Fatalf("The expected error message to be '%s' but was '%s'", "API token not defined", err.Error()) } }
explode_data.jsonl/30295
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 120 }
[ 2830, 3393, 3564, 2354, 3522, 6563, 3323, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 3847, 7121, 19814, 330, 3767, 30013, 25443, 5130, 743, 1848, 621, 2092, 341, 197, 3244, 26133, 445, 18896, 1465, 979, 5333, 3950, 374, 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...
3
func Test_gap_in_body_http1dot0_fin(t *testing.T) { if testing.Verbose() { logp.LogInit(logp.LOG_DEBUG, "", false, true, []string{"http", "httpdetailed"}) } http := HttpModForTests() data1 := []byte("GET / HTTP/1.0\r\n\r\n") data2 := []byte("HTTP/1.0 200 OK\r\n" + "Date: Tue, 14 Aug 2012 22:31:45 GMT\r\n"...
explode_data.jsonl/6851
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 541 }
[ 2830, 3393, 51790, 1243, 14114, 25888, 16, 16119, 15, 39737, 1155, 353, 8840, 836, 8, 341, 743, 7497, 42505, 8297, 368, 341, 197, 6725, 79, 5247, 3803, 12531, 79, 36202, 11139, 11, 7342, 895, 11, 830, 11, 3056, 917, 4913, 1254, 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...
2
func TestDeleteLines(t *testing.T) { origin := `111 222 333 444 555` content := []byte(origin) lines := bytes.Split(content, []byte{'\n'}) assert.Equal(t, 5, len(lines)) var ( res []byte err error ) // 常规操作 res, err = DeleteLines(content, LineRange{From: 1, To: 1}) assert.Equal(t, nil, err) assert.Equa...
explode_data.jsonl/57671
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1118 }
[ 2830, 3393, 6435, 16794, 1155, 353, 8840, 836, 8, 341, 197, 8611, 1669, 1565, 16, 16, 16, 198, 17, 17, 17, 198, 18, 18, 18, 198, 19, 19, 19, 198, 20, 20, 20, 19324, 27751, 1669, 3056, 3782, 45375, 340, 78390, 1669, 5820, 19823, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandleInboundIpv4RulesWithWildCard(t *testing.T) { cfg := constructTestConfig() iptConfigurator := NewIptablesConfigurator(cfg, &dep.StdoutStubDependencies{}) ipv4Range := NetworkRange{ IsWildcard: true, IPNets: nil, } iptConfigurator.handleInboundIpv4Rules(ipv4Range) actual := FormatIptablesCom...
explode_data.jsonl/65386
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 244 }
[ 2830, 3393, 6999, 641, 10891, 80656, 19, 26008, 2354, 40603, 5770, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 9245, 2271, 2648, 2822, 8230, 417, 2648, 57383, 1669, 1532, 40, 417, 4788, 2648, 57383, 28272, 11, 609, 14891, 83225, 33838, 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 TestRemoveProjectDestination(t *testing.T) { fixture.EnsureCleanState(t) projectName := "proj-" + strconv.FormatInt(time.Now().Unix(), 10) _, err := fixture.AppClientset.ArgoprojV1alpha1().AppProjects(fixture.ArgoCDNamespace).Create(context.Background(), &v1alpha1.AppProject{ ObjectMeta: metav1.ObjectMeta{Na...
explode_data.jsonl/58442
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 536 }
[ 2830, 3393, 13021, 7849, 33605, 1155, 353, 8840, 836, 8, 341, 1166, 12735, 22834, 19098, 27529, 1397, 1155, 692, 72470, 675, 1669, 330, 30386, 27651, 488, 33317, 9978, 1072, 9730, 13244, 1005, 55832, 1507, 220, 16, 15, 340, 197, 6878, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWritePartitionContents(t *testing.T) { table := GetValidTable() request := 0 size := table.Partitions[request].Size b := make([]byte, size, size) rand.Read(b) reader := bytes.NewReader(b) b2 := make([]byte, 0, size) f := &testhelper.FileImpl{ Writer: func(b []byte, offset int64) (int, error) { b2 ...
explode_data.jsonl/61031
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 284 }
[ 2830, 3393, 7985, 49978, 14803, 1155, 353, 8840, 836, 8, 341, 26481, 1669, 2126, 4088, 2556, 741, 23555, 1669, 220, 15, 198, 13832, 1669, 1965, 52250, 5930, 58, 2035, 936, 1695, 198, 2233, 1669, 1281, 10556, 3782, 11, 1379, 11, 1379, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNoneSignDoesntBarfOnNil(t *testing.T) { defer func() { if r := recover(); r != nil { t.Errorf("%v", r) } }() credentials.None.Sign(nil) }
explode_data.jsonl/48264
{ "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, 4064, 7264, 21468, 406, 3428, 69, 1925, 19064, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 743, 435, 1669, 11731, 2129, 435, 961, 2092, 341, 298, 3244, 13080, 4430, 85, 497, 435, 340, 197, 197, 532, 197, 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 ]
2
func TestClusterAdmin(t *testing.T) { seedBroker := NewMockBroker(t, 1) defer seedBroker.Close() seedBroker.SetHandlerByMap(map[string]MockResponse{ "MetadataRequest": NewMockMetadataResponse(t). SetController(seedBroker.BrokerID()). SetBroker(seedBroker.Addr(), seedBroker.BrokerID()), }) config := NewTe...
explode_data.jsonl/40775
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 28678, 7210, 1155, 353, 8840, 836, 8, 341, 197, 22602, 65545, 1669, 1532, 11571, 65545, 1155, 11, 220, 16, 340, 16867, 10320, 65545, 10421, 2822, 197, 22602, 65545, 4202, 3050, 1359, 2227, 9147, 14032, 60, 11571, 2582, 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...
3
func TestKeycloakClientReconciler_Test_ClientScope_DifferenceIntersection(t *testing.T) { // given a := []v1alpha1.KeycloakClientScope{ {Name: "a"}, {ID: "ignored", Name: "b"}, {ID: "cID", Name: "c"}, } b := []v1alpha1.KeycloakClientScope{ {Name: "b"}, {ID: "cID", Name: "differentName"}, {Name: "d"}, }...
explode_data.jsonl/28521
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 282 }
[ 2830, 3393, 1592, 88751, 2959, 693, 40446, 5769, 32541, 46102, 10803, 1557, 18192, 72927, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 11323, 1669, 3056, 85, 16, 7141, 16, 9610, 88751, 2959, 10803, 515, 197, 197, 63121, 25, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDegenerateRenderThingMissingTemplate(t *testing.T) { t.Parallel() cfg, fs := newTestCfg() writeSource(t, fs, filepath.Join("content", "a", "file.md"), pageSimpleTitle) s := buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{}) require.Len(t, s.RegularPages, 1) p := s.RegularPages[0] err :=...
explode_data.jsonl/40662
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 45657, 13220, 6750, 52940, 25080, 7275, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50286, 11, 8619, 1669, 501, 2271, 42467, 2822, 24945, 3608, 1155, 11, 8619, 11, 26054, 22363, 445, 1796, 497, 330, 64, 497, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func Test_deleteQueue(t *testing.T) { tests := []struct { name string client *mockSQSclient err bool }{ { name: "delete SQS queue", client: &mockSQSclient{}, err: false, }, { name: "delete SQS queue error", client: &mockSQSclient{ err: errors.New("unable to delete SQS queue"),...
explode_data.jsonl/40273
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 323 }
[ 2830, 3393, 11353, 7554, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 25291, 353, 16712, 64308, 50, 2972, 198, 197, 9859, 262, 1807, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEtcdDeletePod(t *testing.T) { ctx := api.NewDefaultContext() fakeClient := tools.NewFakeEtcdClient(t) fakeClient.TestIndex = true key, _ := makePodKey(ctx, "foo") fakeClient.Set(key, runtime.EncodeOrDie(latest.Codec, &api.Pod{ TypeMeta: api.TypeMeta{ID: "foo"}, DesiredState: api.PodState{Host: "m...
explode_data.jsonl/8149
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 487 }
[ 2830, 3393, 31860, 4385, 6435, 23527, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 6330, 7121, 3675, 1972, 741, 1166, 726, 2959, 1669, 7375, 7121, 52317, 31860, 4385, 2959, 1155, 340, 1166, 726, 2959, 8787, 1552, 284, 830, 271, 23634, 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...
6
func TestNotNilPointer(t *testing.T) { c := "Name" name := &c eq := Eq{"name": name} sql, args, err := eq.ToSql() assert.NoError(t, err) assert.Equal(t, []interface{}{"Name"}, args) assert.Equal(t, "name = ?", sql) neq := NotEq{"name": name} sql, args, err = neq.ToSql() assert.NoError(t, err) assert.Equal...
explode_data.jsonl/44174
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 526 }
[ 2830, 3393, 96144, 9084, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 330, 675, 698, 11609, 1669, 609, 66, 198, 7727, 80, 1669, 33122, 4913, 606, 788, 829, 532, 30633, 11, 2827, 11, 1848, 1669, 8939, 3274, 8269, 2822, 6948, 35699, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRepositoryCreate(t *testing.T) { defer gock.Off() gock.New("https://api.github.com"). Post("/orgs/octocat/repos"). Reply(201). Type("application/json"). SetHeaders(mockHeaders). File("testdata/repo_create.json") in := &scm.RepositoryInput{ Namespace: "octocat", Name: "Hello-World", } ...
explode_data.jsonl/29876
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 345 }
[ 2830, 3393, 4624, 4021, 1155, 353, 8840, 836, 8, 341, 16867, 728, 377, 13, 4596, 2822, 3174, 1176, 7121, 445, 2428, 1110, 2068, 11021, 905, 38609, 197, 197, 4133, 4283, 1775, 82, 59182, 509, 266, 49505, 38609, 197, 197, 20841, 7, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestUtilsBasic(t *testing.T) { basicTest(t, ConsortiumValue("foo")) basicTest(t, HashingAlgorithmValue()) basicTest(t, BlockDataHashingStructureValue()) basicTest(t, OrdererAddressesValue([]string{"foo:1", "bar:2"})) basicTest(t, ConsensusTypeValue("foo", []byte("bar"))) basicTest(t, BatchSizeValue(1, 2, 3))...
explode_data.jsonl/53196
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 299 }
[ 2830, 84745, 15944, 1155, 353, 8840, 836, 8, 341, 2233, 5971, 2271, 1155, 11, 72447, 1130, 445, 7975, 5455, 2233, 5971, 2271, 1155, 11, 6531, 287, 27847, 1130, 2398, 2233, 5971, 2271, 1155, 11, 8362, 1043, 6370, 287, 22952, 1130, 2398, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAttributesAll(t *testing.T) { t.Parallel() ctx, cancel := testAllocate(t, "image.html") defer cancel() tests := []struct { sel string by QueryOption exp []map[string]string }{ { "img", ByQueryAll, []map[string]string{ { "alt": "Brankas - Easy Money Management", "id": "icon-...
explode_data.jsonl/59476
{ "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, 10516, 2403, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20985, 11, 9121, 1669, 1273, 75380, 1155, 11, 330, 1805, 2564, 1138, 16867, 9121, 2822, 78216, 1669, 3056, 1235, 341, 197, 1903, 301, 914, 198, 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...
4
func TestUnwrapDelay(t *testing.T) { for i, tc := range unwrapValidTestCases { t.Run(fmt.Sprintf("valid:%d", i), func(t *testing.T) { var del *delay.Delay if !tc.noDelay { del = &delay.Delay{} } r, err := forward.Unwrap(del, xml.NewDecoder(strings.NewReader(tc.inXML))) if err != nil { t.Fatalf...
explode_data.jsonl/26570
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 519 }
[ 2830, 3393, 1806, 10097, 20039, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 17130, 1669, 2088, 79813, 4088, 2271, 37302, 341, 197, 3244, 16708, 28197, 17305, 445, 1891, 7533, 67, 497, 600, 701, 2915, 1155, 353, 8840, 836, 8, 341, 298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func Test_getConfig(t *testing.T) { var configOpts = []struct { name string value string defaultValue string isConfugured bool }{ { name: "scaling_max_limit", value: "", defaultValue: "4", isConfugured: true, }, { name: "scaling_max_limit", value:...
explode_data.jsonl/11983
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 434 }
[ 2830, 3393, 3062, 2648, 1155, 353, 8840, 836, 8, 1476, 2405, 2193, 43451, 284, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 16309, 286, 914, 198, 197, 11940, 1130, 914, 198, 197, 19907, 15578, 768, 3073, 1807, 198, 197, 59403, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestServiceDiscoveryGetProxyServiceInstances(t *testing.T) { store, sd, _, stopFn := initServiceDiscovery() defer stopFn() createConfigs([]*model.Config{httpStatic, tcpStatic}, store, t) expectProxyInstances(t, sd, []*model.ServiceInstance{ makeInstance(httpStatic, "2.2.2.2", 7080, httpStatic.Spec.(*networ...
explode_data.jsonl/12838
{ "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, 1860, 67400, 1949, 16219, 1860, 42725, 1155, 353, 8840, 836, 8, 341, 57279, 11, 20585, 11, 8358, 2936, 24911, 1669, 2930, 1860, 67400, 741, 16867, 2936, 24911, 2822, 39263, 84905, 85288, 2528, 10753, 90, 1254, 11690, 11, 28051...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInitFunctions(t *testing.T) { // the "github.com/netapp/trident/storage_drivers/ontap/api/rest/models" uses a lot of init() // the way they are generated within go-swagger, they can fail and cause our other unit tests // to fail as a side effect. this test exists as a quick sanity test to make sure those i...
explode_data.jsonl/23606
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 3803, 25207, 1155, 353, 8840, 836, 8, 1476, 197, 322, 279, 330, 5204, 905, 38065, 676, 21485, 1713, 53345, 26680, 1945, 14, 544, 391, 10508, 45265, 20268, 1, 5711, 264, 2696, 315, 2930, 741, 197, 322, 279, 1616, 807, 525, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRegisterFlagsInvalidArgs(t *testing.T) { data := struct{ Field string }{} err := RegisterFlags(viper.GetViper(), &pflag.FlagSet{}, &data, nil) assert.Error(t, err) assert.Contains(t, err.Error(), "Field is missing a help tag") data2 := struct{ Field bool }{} err = RegisterFlags(viper.GetViper(), &pflag....
explode_data.jsonl/75465
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 486 }
[ 2830, 3393, 8690, 9195, 7928, 4117, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 2036, 90, 8601, 914, 335, 16094, 9859, 1669, 8451, 9195, 3747, 12858, 2234, 53, 12858, 1507, 609, 79, 9903, 80911, 1649, 22655, 609, 691, 11, 2092, 340, 694...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReportSinceLastUpdated(t *testing.T) { tmpDir := filepath.Clean(os.TempDir()) var tests = []struct { description string ae proto.ActionableErr logs []string expected string expectedMute string }{ { description: "logs more than 3 lines", ae: proto.ActionableE...
explode_data.jsonl/81098
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1314 }
[ 2830, 3393, 10361, 12549, 5842, 16196, 1155, 353, 8840, 836, 8, 341, 20082, 6184, 1669, 26054, 727, 2675, 9638, 65009, 6184, 2398, 2405, 7032, 284, 3056, 1235, 341, 197, 42407, 220, 914, 198, 197, 197, 5918, 1843, 18433, 11360, 480, 774...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrintServiceAccount(t *testing.T) { tests := []struct { serviceAccount api.ServiceAccount expected []metav1.TableRow }{ // Basic service account without secrets { serviceAccount: api.ServiceAccount{ ObjectMeta: metav1.ObjectMeta{ Name: "sa1", CreationTimestamp: met...
explode_data.jsonl/21586
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 583 }
[ 2830, 3393, 8994, 1860, 7365, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 52934, 7365, 6330, 13860, 7365, 198, 197, 42400, 981, 3056, 4059, 402, 16, 18257, 3102, 198, 197, 59403, 197, 197, 322, 14625, 2473, 2692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEnv2Variables(t *testing.T) { variables := []string{"var1", "val1", "var2", "val2"} bflags := &BFlags{} config := &container.Config{} b := &Builder{flags: bflags, runConfig: config, disableCommit: true} if err := env(b, variables, nil, ""); err != nil { t.Fatalf("Error when executing env: %s", err.Er...
explode_data.jsonl/28273
{ "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, 14359, 17, 22678, 1155, 353, 8840, 836, 8, 341, 2405, 2156, 82, 1669, 3056, 917, 4913, 947, 16, 497, 330, 831, 16, 497, 330, 947, 17, 497, 330, 831, 17, 63159, 2233, 11161, 1669, 609, 33, 9195, 16094, 25873, 1669, 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...
4
func TestFavoritesAddTwice(t *testing.T) { mockCtrl, config, ctx := favTestInit(t, false) f := NewFavorites(config) f.InitForTest() defer favTestShutdown(t, mockCtrl, config, f) // Call Add twice in a row, but only get one Add KBPKI call fav1 := favorites.ToAdd{ Folder: favorites.Folder{ Name: "test", Ty...
explode_data.jsonl/14679
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 357 }
[ 2830, 3393, 85221, 2212, 22816, 558, 1155, 353, 8840, 836, 8, 341, 77333, 15001, 11, 2193, 11, 5635, 1669, 9244, 2271, 3803, 1155, 11, 895, 340, 1166, 1669, 1532, 85221, 8754, 340, 1166, 26849, 2461, 2271, 741, 16867, 9244, 2271, 62004,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSlashValidatorAtCurrentHeight(t *testing.T) { ctx, keeper, _ := setupHelper(t, 10) consAddr := sdk.ConsAddress(PKs[0].Address()) fraction := sdk.NewDecWithPrec(5, 1) oldPool := keeper.GetPool(ctx) validator, found := keeper.GetValidatorByConsAddr(ctx, consAddr) require.True(t, found) keeper.Slash(ctx, ...
explode_data.jsonl/49546
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 350 }
[ 2830, 3393, 88004, 14256, 1655, 5405, 3640, 1155, 353, 8840, 836, 8, 341, 20985, 11, 53416, 11, 716, 1669, 6505, 5511, 1155, 11, 220, 16, 15, 340, 197, 6254, 13986, 1669, 45402, 94594, 4286, 5304, 42, 82, 58, 15, 936, 4286, 2398, 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 TestGenerateNodesURITemplate(t *testing.T) { assert := assert.New(t) cluster := testCluster(t) assert.Equal( fmt.Sprintf("%s-%s-node.%s.svc.cluster.local:%d", clusterName, "%d", clusterNamespace, httpContainerPort), generateNodesURITemplate(cluster)) }
explode_data.jsonl/28890
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 113 }
[ 2830, 3393, 31115, 12288, 1511, 952, 3708, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 197, 18855, 1669, 1273, 28678, 1155, 692, 6948, 12808, 1006, 197, 11009, 17305, 4430, 82, 11069, 82, 39054, 22445, 82, 514, 7362...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWithStreamDownloader(t *testing.T) { var db *sql.DB var err error if db, err = sql.Open("snowflake", dsn); err != nil { t.Fatalf("failed to open db. %v, err: %v", dsn, err) } defer db.Close() ctx := WithStreamDownloader(context.Background()) numrows := 100000 rows, _ := db.QueryContext(ctx, fmt.Spr...
explode_data.jsonl/23257
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 315 }
[ 2830, 3393, 2354, 3027, 92698, 1155, 353, 8840, 836, 8, 341, 2405, 2927, 353, 3544, 22537, 198, 2405, 1848, 1465, 271, 743, 2927, 11, 1848, 284, 5704, 12953, 445, 74478, 63456, 497, 294, 9613, 1215, 1848, 961, 2092, 341, 197, 3244, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestReserveExecute_WithTx(t *testing.T) { db, tsv := setupTabletServerTest(t, "") defer tsv.StopService() defer db.Close() target := querypb.Target{TabletType: topodatapb.TabletType_PRIMARY} transactionID, _, err := tsv.Begin(ctx, &target, &querypb.ExecuteOptions{}) require.NoError(t, err) require.NotEqual...
explode_data.jsonl/80026
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 377 }
[ 2830, 3393, 1061, 5852, 17174, 62, 2354, 31584, 1155, 353, 8840, 836, 8, 341, 20939, 11, 259, 3492, 1669, 6505, 2556, 83, 5475, 2271, 1155, 11, 14676, 16867, 259, 3492, 30213, 1860, 741, 16867, 2927, 10421, 741, 28861, 1669, 3239, 16650...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateAndBuildNodeBIdKeyNodeTypeValidationFailure(t *testing.T) { plmnId := "dddd" nbId := "eeee" _, err := ValidateAndBuildNodeBIdKey("", plmnId, nbId) assert.NotNil(t, err) assert.IsType(t, &ValidationError{}, err) assert.Equal(t, "#utils.ValidateAndBuildNodeBIdKey - an empty node type received", err...
explode_data.jsonl/33041
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 127 }
[ 2830, 3393, 17926, 3036, 11066, 1955, 33, 764, 1592, 66137, 13799, 17507, 1155, 353, 8840, 836, 8, 341, 72213, 21775, 764, 1669, 330, 64100, 698, 9038, 65, 764, 1669, 330, 68616, 698, 197, 6878, 1848, 1669, 23282, 3036, 11066, 1955, 33,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEncodeByProtocol(t *testing.T) { type args struct { in []byte protocol string } tests := []struct { name string args args wantEncoded string wantEncodingType string wantErr bool }{ { "ethereum", args{ testutil.MustHexDecodeString("5602ea...
explode_data.jsonl/81157
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 657 }
[ 2830, 3393, 32535, 1359, 20689, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 17430, 981, 3056, 3782, 198, 197, 197, 17014, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 1797, 914, 198, 197, 31215, 1797, 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...
4
func TestMigrate(t *testing.T) { encodingConfig := simapp.MakeTestEncodingConfig() clientCtx := client.Context{}. WithInterfaceRegistry(encodingConfig.InterfaceRegistry). WithTxConfig(encodingConfig.TxConfig). WithLegacyAmino(encodingConfig.Amino). WithCodec(encodingConfig.Codec) addr1, err := sdk.ConsAddre...
explode_data.jsonl/74984
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1857 }
[ 2830, 3393, 44, 34479, 1155, 353, 8840, 836, 8, 341, 197, 17159, 2648, 1669, 1643, 676, 50133, 2271, 14690, 2648, 741, 25291, 23684, 1669, 2943, 9328, 6257, 624, 197, 197, 2354, 5051, 15603, 85863, 2648, 41065, 15603, 4292, 197, 197, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSetIteratorAt(t *testing.T) { assert := assert.New(t) vs := newTestValueStore() numbers := append(generateNumbersAsValues(5), Float(10)) s, err := NewSet(context.Background(), vs, numbers...) assert.NoError(err) i, err := s.IteratorAt(context.Background(), 0) assert.NoError(err) vals, err := iterToSl...
explode_data.jsonl/10996
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 318 }
[ 2830, 3393, 1649, 11951, 1655, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 5195, 82, 1669, 501, 2271, 1130, 6093, 2822, 22431, 1902, 1669, 8737, 3268, 13220, 27237, 2121, 6227, 7, 20, 701, 13001, 7, 16, 15, 1171, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthEdgeCases(t *testing.T) { t.Run("ReadConfig/MissedConfig", func(t *testing.T) { cnfg := &AuthCnfg{} if err := cnfg.ReadConfig("wrong_path.json"); err == nil { t.Error("wrong_path config should not pass") } }) t.Run("ReadConfig/MissedConfig", func(t *testing.T) { cnfg := &AuthCnfg{} if err...
explode_data.jsonl/31319
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 819 }
[ 2830, 3393, 5087, 11656, 37302, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 4418, 2648, 10270, 1038, 291, 2648, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1444, 77, 4817, 1669, 609, 5087, 34, 77, 4817, 16094, 197, 743, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMineVbkBlock(t *testing.T) { assert := assert.New(t) mockMiner := NewMockMiner() blockTip, err := mockMiner.MineVbkBlockTip() assert.NoError(err) assert.Equal(uint32(1), blockTip.Height) blockTip, err = mockMiner.MineVbkBlock(blockTip.GetHash()) assert.NoError(err) assert.Equal(uint32(2), blockTip.H...
explode_data.jsonl/39848
{ "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, 63495, 53, 40029, 4713, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 77333, 6217, 261, 1669, 1532, 11571, 6217, 261, 2822, 47996, 16011, 11, 1848, 1669, 7860, 6217, 261, 1321, 482, 53, 40029, 4713, 16011,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_FetchOrder(t *testing.T) { account, order := makeOrder(t) if _, err := testClient.FetchOrder(account, testClient.Directory().URL+"/asdasdasd"); err == nil { t.Fatal("expected error, got none") } fetchedOrder, err := testClient.FetchOrder(account, order.URL) if err != nil { t.Fatalf("unexpecte...
explode_data.jsonl/68106
{ "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, 2959, 1400, 2995, 4431, 1155, 353, 8840, 836, 8, 341, 86866, 11, 1973, 1669, 1281, 4431, 1155, 692, 743, 8358, 1848, 1669, 1273, 2959, 78506, 4431, 23758, 11, 1273, 2959, 54107, 1005, 3144, 27569, 300, 34889, 34889, 67, 5038...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRoundEdgeCases(t *testing.T) { type testException struct { number float64 decimalPlaces int expected error } errorString := "parameters too big" tests := []testException{ {number: 1.80, decimalPlaces: 308, expected: &RoundError{Err: errorString}}, {number: 180.43, decimalPlaces: 310...
explode_data.jsonl/9016
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 261 }
[ 2830, 3393, 27497, 11656, 37302, 1155, 353, 8840, 836, 8, 341, 13158, 1273, 1354, 2036, 341, 197, 57135, 286, 2224, 21, 19, 198, 197, 197, 23289, 58825, 526, 198, 197, 42400, 414, 1465, 198, 197, 630, 18290, 703, 1669, 330, 13786, 223...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAppendToPrefixed(t *testing.T) { form := &Values{} data := &testStruct{String: "foo"} AppendToPrefixed(form, data, []string{"prefix"}) assert.Equal(t, []string{"foo"}, form.Get("prefix[string]")) }
explode_data.jsonl/30324
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 79 }
[ 2830, 3393, 23877, 1249, 29978, 3286, 1155, 353, 8840, 836, 8, 341, 37410, 1669, 609, 6227, 16094, 8924, 1669, 609, 1944, 9422, 90, 703, 25, 330, 7975, 16707, 197, 23877, 1249, 29978, 3286, 16760, 11, 821, 11, 3056, 917, 4913, 11849, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDomainName_RejectingTrailingDot(t *testing.T) { cases := []struct { domain string valid bool }{ {"", false}, {" ", false}, {"a", true}, {".", false}, {"日本語", false}, {"日本語.com", false}, {"abc.日本語.com", false}, {"a日本語a.com", false}, {"abc", true}, {"ABC", false}, {"ABC123", false}, ...
explode_data.jsonl/56438
{ "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, 13636, 675, 50693, 583, 287, 1282, 14277, 34207, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 2698, 3121, 914, 198, 197, 56322, 220, 1807, 198, 197, 59403, 197, 197, 4913, 497, 895, 1583, 197, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestOKExFuture_MarketCloseAllPosition(t *testing.T) { t.Log(okex.OKExFuture.MarketCloseAllPosition(goex.BTC_USD, goex.THIS_WEEK_CONTRACT, goex.CLOSE_BUY)) }
explode_data.jsonl/3933
{ "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, 3925, 840, 24206, 1245, 54560, 7925, 2403, 3812, 1155, 353, 8840, 836, 8, 341, 3244, 5247, 60207, 327, 15480, 840, 24206, 1321, 54560, 7925, 2403, 3812, 47415, 327, 1785, 7749, 13467, 35, 11, 728, 327, 56841, 1637, 76999, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildContentLength_ZeroBody(t *testing.T) { server := setupContentLengthTestServer(t, false, 0) svc := s3.New(unit.Session, &aws.Config{ Endpoint: aws.String(server.URL), S3ForcePathStyle: aws.Bool(true), DisableSSL: aws.Bool(true), }) _, err := svc.GetObject(&s3.GetObjectInput{ Buck...
explode_data.jsonl/57766
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 181 }
[ 2830, 3393, 11066, 2762, 4373, 97672, 5444, 1155, 353, 8840, 836, 8, 341, 41057, 1669, 6505, 2762, 4373, 2271, 5475, 1155, 11, 895, 11, 220, 15, 692, 1903, 7362, 1669, 274, 18, 7121, 24144, 20674, 11, 609, 8635, 10753, 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 TestHTMLTemplate_RenderError(t *testing.T) { tpl := template.New("test") _, err := tpl.Parse(`{{ define "foo" }}foo{{ .Foo.Bar }}bar{{ end }}`) require.NoError(t, err) htmlTemplate := NewHTMLTemplate(tpl, "foo") assert.Equal(t, "foo", htmlTemplate.Render()) buf := &bytes.Buffer{} assert.Error(t, htmlTempl...
explode_data.jsonl/53385
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 147 }
[ 2830, 3393, 5835, 7275, 42102, 1454, 1155, 353, 8840, 836, 8, 341, 3244, 500, 1669, 3811, 7121, 445, 1944, 1138, 197, 6878, 1848, 1669, 60979, 8937, 5809, 2979, 6979, 330, 7975, 1, 3869, 7975, 2979, 659, 40923, 40520, 3869, 2257, 2979, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCashout(t *testing.T) { chequebookAddress := common.HexToAddress("abcd") recipientAddress := common.HexToAddress("efff") txHash := common.HexToHash("dddd") totalPayout := big.NewInt(100) cumulativePayout := big.NewInt(500) cheque := &chequebook.SignedCheque{ Cheque: chequebook.Cheque{ Beneficiary: ...
explode_data.jsonl/17066
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1413 }
[ 2830, 3393, 47441, 411, 1155, 353, 8840, 836, 8, 341, 197, 1528, 591, 2190, 4286, 1669, 4185, 91538, 1249, 4286, 445, 68644, 1138, 197, 42610, 4286, 1669, 4185, 91538, 1249, 4286, 445, 6445, 69, 1138, 46237, 6370, 1669, 4185, 91538, 124...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoveVolumeFromDeploymentConfig(t *testing.T) { type args struct { pvc string dcName string } tests := []struct { name string dcBefore *appsv1.DeploymentConfig args args wantErr bool }{ { name: "Test case : 1", dcBefore: &appsv1.DeploymentConfig{ Spec: appsv1.Deployment...
explode_data.jsonl/65141
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1134 }
[ 2830, 3393, 13021, 18902, 3830, 75286, 2648, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 3223, 7362, 262, 914, 198, 197, 87249, 675, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 8724...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFindColors10(t *testing.T) { // .ico with 8-bit bmp, ColorsUsed=0 assertFindsRightColor(t, "icon10.ico.gz", "fe6d4c") }
explode_data.jsonl/14304
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 57 }
[ 2830, 3393, 9885, 13108, 16, 15, 1155, 353, 8840, 836, 8, 341, 197, 322, 659, 3955, 448, 220, 23, 15257, 43301, 11, 9526, 22743, 28, 15, 198, 6948, 37, 8673, 5979, 1636, 1155, 11, 330, 1924, 16, 15, 39186, 20963, 497, 330, 1859, 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
func TestConfigClients_Create_Success_Storage(t *testing.T) { s, _, _, h, iss, err := setupHydraTest(false) if err != nil { t.Fatalf("setupHydraTest() failed: %v", err) } clientName := "new_client" newClientID := "00000000-0000-0000-0000-100000000000" cli := &cpb.Client{ RedirectUris: []string{"http://clien...
explode_data.jsonl/18517
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 588 }
[ 2830, 3393, 2648, 47174, 34325, 87161, 62, 5793, 1155, 353, 8840, 836, 8, 341, 1903, 11, 8358, 8358, 305, 11, 2369, 11, 1848, 1669, 6505, 30816, 22248, 2271, 3576, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 15188, 30816, 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...
7
func TestParseWriteMeta(t *testing.T) { t.Parallel() resp := &http.Response{ Header: make(map[string][]string), } resp.Header.Set("X-Nomad-Index", "12345") wm := &WriteMeta{} if err := parseWriteMeta(resp, wm); err != nil { t.Fatalf("err: %v", err) } if wm.LastIndex != 12345 { t.Fatalf("Bad: %v", wm) }...
explode_data.jsonl/65022
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 145 }
[ 2830, 3393, 14463, 7985, 12175, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 34653, 1669, 609, 1254, 12574, 515, 197, 197, 4047, 25, 1281, 9147, 14032, 45725, 917, 1326, 197, 532, 34653, 15753, 4202, 445, 55, 11250, 316, 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
func TestGetIDErrorPaths(t *testing.T) { testCases := []struct { arn string name string }{ {"", "EmptyString"}, {"invalidArn", "InvalidARN"}, {"arn:aws:ecs:region:account-id:task:task-id", "IncorrectSections"}, {"arn:aws:ecs:region:account-id:task", "IncorrectResourceSections"}, } task := Task{} for...
explode_data.jsonl/37219
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 1949, 915, 1454, 26901, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 197, 1885, 220, 914, 198, 197, 11609, 914, 198, 197, 59403, 197, 197, 4913, 497, 330, 3522, 703, 7115, 197, 197, 4913, 11808, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetAsset(t *testing.T) { tt := test.Start(t) defer tt.Finish() action := makeTestAction() ts := action.GetAsset("native_") if tt.Assert.NoError(action.Err) { tt.Assert.Equal(xdr.AssetTypeAssetTypeNative, ts.Type) } ts = action.GetAsset("4_") if tt.Assert.NoError(action.Err) { tt.Assert.Equal(xdr....
explode_data.jsonl/549
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 348 }
[ 2830, 3393, 1949, 16604, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 1273, 12101, 1155, 340, 16867, 17853, 991, 18176, 741, 38933, 1669, 1281, 2271, 2512, 2822, 57441, 1669, 1917, 2234, 16604, 445, 29738, 62, 1138, 743, 17853, 11711, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContainerStopSignal(t *testing.T) { c := &Container{ CommonContainer: CommonContainer{ Config: &runconfig.Config{}, }, } def, err := signal.ParseSignal(signal.DefaultStopSignal) if err != nil { t.Fatal(err) } s := c.stopSignal() if s != int(def) { t.Fatalf("Expected %v, got %v", def, s) } ...
explode_data.jsonl/21113
{ "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, 4502, 10674, 26810, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 609, 4502, 515, 197, 90580, 4502, 25, 7718, 4502, 515, 298, 66156, 25, 609, 6108, 1676, 10753, 38837, 197, 197, 1583, 197, 630, 7452, 11, 1848, 1669, 8286, 8937...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShopDownUp(t *testing.T) { bsToken := getBusToken() mSm := new(logics.SmLogic) args := cards.ArgsShopDownUpSm{ BsToken: bsToken, ShopSmIds: []int{1, 2, 3, 4, 5}, OptType: cards.OPT_DOWN, } logs.Info(mSm.ShopDownUpSm(context.Background(), &args)) }
explode_data.jsonl/35930
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 124 }
[ 2830, 3393, 19795, 4454, 2324, 1155, 353, 8840, 836, 8, 341, 93801, 3323, 1669, 633, 15073, 3323, 741, 2109, 10673, 1669, 501, 12531, 1211, 92445, 26751, 340, 31215, 1669, 7411, 51015, 19795, 4454, 2324, 10673, 515, 197, 12791, 82, 3323, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSmudgePassesInvalidData(t *testing.T) { repo := NewRepository(t, "empty") defer repo.Test() cmd := repo.Command("smudge", "somefile") cmd.Input = bytes.NewBufferString("this is not a pointer file\n") cmd.Output = "this is not a pointer file" }
explode_data.jsonl/8398
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 90 }
[ 2830, 3393, 10673, 19561, 12187, 288, 7928, 1043, 1155, 353, 8840, 836, 8, 341, 17200, 5368, 1669, 1532, 4624, 1155, 11, 330, 3194, 1138, 16867, 15867, 8787, 2822, 25920, 1669, 15867, 12714, 445, 3563, 19561, 497, 330, 14689, 1192, 1138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDecodeInstanceInfo(t *testing.T) { response := `{"ID":"_azdev","UD":"0","FD":"99"}` faultDomain, err := readFaultDomain(strings.NewReader(response)) if err != nil { t.Error("Unexpected error in ReadFaultDomain") } if faultDomain == nil { t.Error("Fault domain was unexpectedly nil") } if *faultDom...
explode_data.jsonl/50416
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 32564, 2523, 1731, 1155, 353, 8840, 836, 8, 341, 21735, 1669, 1565, 4913, 915, 3252, 62, 1370, 3583, 2198, 4656, 3252, 15, 2198, 14596, 3252, 24, 24, 1, 5541, 271, 1166, 945, 13636, 11, 1848, 1669, 1349, 58780, 13636, 5144...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAlterFuncMap_tplfunc(t *testing.T) { c := &chart.Chart{ Metadata: &chart.Metadata{Name: "TplFunction"}, Templates: []*chart.File{ {Name: "templates/base", Data: []byte(`Evaluate tpl {{tpl "Value: {{ .Values.value | quote}}" .}}`)}, }, } v := chartutil.Values{ "Values": chartutil.Values{ "valu...
explode_data.jsonl/74711
{ "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, 74290, 9626, 2227, 14107, 2830, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 609, 15941, 42667, 515, 197, 9209, 7603, 25, 609, 15941, 46475, 63121, 25, 330, 87137, 5152, 7115, 197, 10261, 76793, 25, 29838, 15941, 8576, 515, 298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test_Validate_Networking_Flannel(t *testing.T) { grid := []struct { Input kops.FlannelNetworkingSpec ExpectedErrors []string }{ { Input: kops.FlannelNetworkingSpec{ Backend: "udp", }, }, { Input: kops.FlannelNetworkingSpec{ Backend: "vxlan", }, }, { Input: kops.Flan...
explode_data.jsonl/61618
{ "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, 62, 17926, 1604, 2349, 287, 1400, 75, 2594, 1155, 353, 8840, 836, 8, 1476, 49018, 1669, 3056, 1235, 341, 197, 66588, 688, 595, 3721, 73459, 2594, 78007, 8327, 198, 197, 197, 18896, 13877, 3056, 917, 198, 197, 59403, 197, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2