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 TestCorruptDB_TableIndex(t *testing.T) { h := newDbCorruptHarness(t) defer h.close() h.build(10000) h.compactMem() h.closeDB() h.corrupt(storage.TypeTable, -1, -2000, 500) h.openDB() h.check(5000, 9999) }
explode_data.jsonl/45792
{ "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, 10580, 6585, 3506, 42544, 1552, 1155, 353, 8840, 836, 8, 341, 9598, 1669, 501, 7994, 10580, 6585, 74248, 1155, 340, 16867, 305, 4653, 2822, 9598, 13239, 7, 16, 15, 15, 15, 15, 340, 9598, 39702, 531, 18816, 741, 9598, 4653,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_checkWhitelist(t *testing.T) { type args struct { path string whitelist []string } tests := []struct { name string args args want bool }{ { name: "file whitelisted", args: args{ path: "/foo", whitelist: []string{"/foo"}, }, want: true, }, { name: "directory...
explode_data.jsonl/79682
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 476 }
[ 2830, 3393, 7200, 1639, 57645, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 26781, 414, 914, 198, 197, 197, 1312, 57645, 3056, 917, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestTM(t *testing.T) { // The precision of sqlite is not implemented if dORM.Driver().Type() == 2 { return } var recTM TM tm := NewTM() tm.TMPrecision1 = time.Unix(1596766024, 123456789) tm.TMPrecision2 = time.Unix(1596766024, 123456789) _, err := dORM.Insert(tm) throwFail(t, err) err = dORM.QueryTabl...
explode_data.jsonl/18120
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 231 }
[ 2830, 3393, 22034, 1155, 353, 8840, 836, 8, 341, 197, 322, 576, 16052, 315, 22003, 374, 537, 11537, 198, 743, 294, 4365, 41768, 1005, 929, 368, 621, 220, 17, 341, 197, 853, 198, 197, 532, 2405, 1395, 22034, 23975, 198, 3244, 76, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResponseWriterEmptyBodyHeaders(t *testing.T) { res := newResponseRecorder() w := newHandlerWriter(res, tchannel.Raw, canonicalizedHeaderCase) w.AddHeaders(transport.NewHeaders().With("foo", "bar")) require.NoError(t, w.Close()) assert.NotEmpty(t, res.arg2.Bytes(), "headers must not be empty") assert.Em...
explode_data.jsonl/53841
{ "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, 2582, 6492, 3522, 5444, 10574, 1155, 353, 8840, 836, 8, 341, 10202, 1669, 501, 2582, 47023, 741, 6692, 1669, 501, 3050, 6492, 4590, 11, 259, 10119, 50575, 11, 42453, 1506, 4047, 4207, 692, 6692, 1904, 10574, 7, 26445, 7121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestProductService_Get(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() product := mock_application.NewMockProductInterface(ctrl) persistence := mock_application.NewMockProductPersistenceInterface(ctrl) persistence.EXPECT().Get(gomock.Any()).Return(product, nil).AnyTimes() service := appl...
explode_data.jsonl/44570
{ "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, 4816, 1860, 13614, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 69288, 1669, 7860, 38721, 7121, 11571, 4816, 5051, 62100, 340, 3223, 8026, 1669, 7860, 38721,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExprWith(t *testing.T) { assertParseOneExpr(t, "input", "data.foo with input as baz", &Expr{ Terms: MustParseTerm("data.foo"), With: []*With{ { Target: NewTerm(InputRootRef), Value: VarTerm("baz"), }, }, }) assertParseOneExpr(t, "builtin/ref target/composites", `plus(data.foo, 1, x) wi...
explode_data.jsonl/50474
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 552 }
[ 2830, 3393, 16041, 2354, 1155, 353, 8840, 836, 8, 341, 6948, 14463, 3966, 16041, 1155, 11, 330, 1355, 497, 330, 691, 58432, 448, 1946, 438, 50247, 497, 609, 16041, 515, 197, 10261, 261, 1011, 25, 15465, 14463, 17249, 445, 691, 58432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPlayback_Tx_panic_read(t *testing.T) { p := Playback{Ops: []IO{{R: []byte{1}}}} defer func() { v := recover() err, ok := v.(error) if !ok { t.Fatal("expected error") } if !IsErr(err) { t.Fatalf("unexpected error: %v", err) } }() _ = p.Tx(nil, []byte{0, 1}) t.Fatal("shouldn't run") }
explode_data.jsonl/44857
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 155 }
[ 2830, 3393, 87125, 1139, 87, 620, 31270, 6443, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 95301, 90, 38904, 25, 3056, 3810, 2979, 49, 25, 3056, 3782, 90, 16, 3417, 11248, 16867, 2915, 368, 341, 197, 5195, 1669, 11731, 741, 197, 9859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGetActiveOrders(t *testing.T) { b.SetDefaults() TestSetup(t) var getOrdersRequest = exchange.GetOrdersRequest{ OrderType: exchange.AnyOrderType, } _, err := b.GetActiveOrders(&getOrdersRequest) if areTestAPIKeysSet() && err != nil { t.Errorf("Could not get open orders: %s", err) } else if !areTest...
explode_data.jsonl/14539
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 1949, 5728, 24898, 1155, 353, 8840, 836, 8, 341, 2233, 4202, 16273, 741, 73866, 21821, 1155, 692, 2405, 633, 24898, 1900, 284, 9289, 2234, 24898, 1900, 515, 197, 197, 4431, 929, 25, 9289, 13311, 4431, 929, 345, 197, 630, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestPullerMetrics(t *testing.T) { // Scenario: p1 pulls from p2 and sends metric reports gn := &gossipNetwork{} policyStore := newCollectionStore().withPolicy("col1", uint64(100)).thatMapsTo("p2") factoryMock1 := &mocks.CollectionAccessFactory{} policyMock1 := &mocks.CollectionAccessPolicy{} Setup(policyMock...
explode_data.jsonl/53271
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1064 }
[ 2830, 3393, 36068, 261, 27328, 1155, 353, 8840, 836, 8, 341, 197, 322, 58663, 25, 281, 16, 33045, 504, 281, 17, 323, 21308, 18266, 6682, 198, 3174, 77, 1669, 609, 70, 41473, 12320, 16094, 3223, 8018, 6093, 1669, 501, 6482, 6093, 1005,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUserPaging(t *testing.T) { log, db, teardown := tests.NewUnit(t) t.Cleanup(teardown) schema.Seed(db) store := user.NewStore(log, db) t.Log("Given the need to page through User records.") { testID := 0 t.Logf("\tTest %d:\tWhen paging through 2 users.", testID) { ctx := context.Background() ...
explode_data.jsonl/37351
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 737 }
[ 2830, 3393, 1474, 47, 4118, 1155, 353, 8840, 836, 8, 341, 6725, 11, 2927, 11, 49304, 1669, 7032, 7121, 4562, 1155, 340, 3244, 727, 60639, 71847, 37496, 692, 1903, 3416, 5732, 291, 9791, 692, 57279, 1669, 1196, 7121, 6093, 12531, 11, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestValidatorMarshalUnmarshalJSON(t *testing.T) { validator := NewValidator(valAddr1, pk1, Description{}) js, err := codec.Cdc.MarshalJSON(validator) require.NoError(t, err) require.NotEmpty(t, js) require.Contains(t, string(js), "\"consensus_pubkey\":\"cosmosvalconspu") got := &Validator{} err = codec.Cdc....
explode_data.jsonl/745
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 164 }
[ 2830, 3393, 14256, 55438, 1806, 27121, 5370, 1155, 353, 8840, 836, 8, 341, 197, 16112, 1669, 1532, 14256, 9098, 13986, 16, 11, 22458, 16, 11, 7662, 37790, 95636, 11, 1848, 1669, 34647, 727, 7628, 37271, 5370, 7, 16112, 340, 17957, 35699...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNotify(t *testing.T) { cluster := initCluster() cluster.InitCluster() urls := make([]*motan.URL, 0, 2) urls = append(urls, &motan.URL{Host: "127.0.0.1", Port: 8001, Protocol: "test"}) urls = append(urls, &motan.URL{Host: "127.0.0.1", Port: 8002, Protocol: "test"}) cluster.Notify(RegistryURL, urls) if le...
explode_data.jsonl/19271
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 310 }
[ 2830, 3393, 28962, 1155, 353, 8840, 836, 8, 341, 197, 18855, 1669, 2930, 28678, 741, 197, 18855, 26849, 28678, 741, 19320, 82, 1669, 1281, 85288, 46828, 276, 20893, 11, 220, 15, 11, 220, 17, 340, 19320, 82, 284, 8737, 91182, 11, 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...
3
func TestInit(t *testing.T) { m := getTestMetadata() tw := NewTwitter(logger.NewLogger("test")) err := tw.Init(m) assert.Nilf(t, err, "error initializing valid metadata properties") }
explode_data.jsonl/21297
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 68 }
[ 2830, 3393, 3803, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 633, 2271, 14610, 741, 3244, 86, 1669, 1532, 24862, 37833, 7121, 7395, 445, 1944, 5455, 9859, 1669, 4384, 26849, 1255, 340, 6948, 59678, 69, 1155, 11, 1848, 11, 330, 841, 570...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthBasicAuthErrorUsername(t *testing.T) { authBasicAuth := NewAuthBasicAuth(map[string]string{ "Username": "user", }) assert.NotNil(t, authBasicAuth) authMethod, err := authBasicAuth.Create() assert.Error(t, err) assert.Nil(t, authMethod) }
explode_data.jsonl/26421
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 5087, 15944, 5087, 1454, 11115, 1155, 353, 8840, 836, 8, 341, 78011, 15944, 5087, 1669, 1532, 5087, 15944, 5087, 9147, 14032, 30953, 515, 197, 197, 1, 11115, 788, 330, 872, 756, 197, 3518, 6948, 93882, 1155, 11, 4166, 15944,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDelete(t *testing.T) { srv := httptest.NewServer(http.HandlerFunc(HandleDelete)) defer srv.Close() url := "http://" + srv.Listener.Addr().String() resp, err := Delete(url, nil, nil, nil) if err != nil { t.Error(err) } assert.Equal(t, 200, resp.Status()) }
explode_data.jsonl/14809
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 112 }
[ 2830, 3393, 6435, 1155, 353, 8840, 836, 8, 341, 1903, 10553, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 90832, 6435, 1171, 16867, 43578, 10421, 741, 19320, 1669, 330, 1254, 52136, 488, 43578, 64091, 93626, 1005, 703, 741, 34653, 11, 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 TestMsgProposeBase(t *testing.T) { specs := map[string]struct { src MsgProposeBase expErr bool }{ "all good with minimum fields set": { src: MsgProposeBase{ GroupAccount: []byte("valid--group-address"), Proposers: []sdk.AccAddress{[]byte("valid-member-address")}, }, }, "group accoun...
explode_data.jsonl/17747
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 639 }
[ 2830, 3393, 6611, 2008, 960, 3978, 1155, 353, 8840, 836, 8, 341, 98100, 82, 1669, 2415, 14032, 60, 1235, 341, 197, 41144, 262, 24205, 2008, 960, 3978, 198, 197, 48558, 7747, 1807, 198, 197, 59403, 197, 197, 1, 541, 1661, 448, 8028, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExportSigned(t *testing.T) { testFixtures := filepath.Join("..", "signature", "testdata") testPublicRing := filepath.Join(testFixtures, "public.gpg") signedBun := filepath.Join(testFixtures, "signed.json.asc") tempDir, err := setupTempDir() if err != nil { t.Fatal(err) } defer os.RemoveAll(tempDir) ...
explode_data.jsonl/27758
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 505 }
[ 2830, 3393, 16894, 49312, 1155, 353, 8840, 836, 8, 341, 18185, 25958, 18513, 1669, 26054, 22363, 95032, 497, 330, 34140, 497, 330, 92425, 1138, 18185, 12676, 43466, 1669, 26054, 22363, 8623, 25958, 18513, 11, 330, 888, 1302, 3517, 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...
1
func TestIronwareCommunicator_GetCPUComponentCPULoad_100thPercent(t *testing.T) { var snmpClient network.MockSNMPClient ctx := network.NewContextWithDeviceConnection(context.Background(), &network.RequestDeviceConnection{ SNMP: &network.RequestDeviceConnectionSNMP{ SnmpClient: &snmpClient, }, }) snmpClient....
explode_data.jsonl/70360
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 893 }
[ 2830, 3393, 46393, 1664, 80923, 850, 13614, 31615, 2189, 7123, 1094, 2731, 62, 16, 15, 15, 339, 32010, 1155, 353, 8840, 836, 8, 341, 2405, 4131, 1307, 2959, 3922, 24664, 18966, 5781, 2959, 198, 20985, 1669, 3922, 7121, 1972, 2354, 6985,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAllowable(t *testing.T) { if err := testAllowable("hell*", "hell", "helm"); err != nil { t.Fatal(err) } if err := testAllowable("hell?", "hell"+string(0), "hell"+string(utf8.MaxRune)); err != nil { t.Fatal(err) } if err := testAllowable("h解析ell*", "h解析ell", "h解析elm"); err != nil { t.Fatal(err) } i...
explode_data.jsonl/78715
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 201 }
[ 2830, 3393, 18605, 480, 1155, 353, 8840, 836, 8, 341, 743, 1848, 1669, 1273, 18605, 480, 445, 56095, 78729, 330, 56095, 497, 330, 51899, 5038, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 743, 1848, 1669, 1273, 18605, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImageRef_BMP(t *testing.T) { Startup(nil) raw, err := ioutil.ReadFile(resources + "bmp.bmp") require.NoError(t, err) img, err := NewImageFromBuffer(raw) require.NoError(t, err) require.NotNil(t, img) defer img.Close() _, metadata, err := img.Export(nil) assert.NoError(t, err) assert.Equal(t, Image...
explode_data.jsonl/38812
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 144 }
[ 2830, 3393, 1906, 3945, 1668, 5781, 1155, 353, 8840, 836, 8, 341, 197, 39076, 27907, 692, 76559, 11, 1848, 1669, 43144, 78976, 52607, 488, 330, 52696, 55476, 1138, 17957, 35699, 1155, 11, 1848, 692, 39162, 11, 1848, 1669, 1532, 1906, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNew(t *testing.T) { ctx, _ := SetupFakeContext(t) setReconcilerEnv() c := NewConstructor()(ctx, configmap.NewStaticWatcher( &corev1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: logging.ConfigMapName(), Namespace: system.Namespace(), }, Data: map[string]string{}, }, &corev1.C...
explode_data.jsonl/31716
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 321 }
[ 2830, 3393, 3564, 1155, 353, 8840, 836, 8, 341, 20985, 11, 716, 1669, 18626, 52317, 1972, 1155, 692, 8196, 693, 40446, 5769, 14359, 2822, 1444, 1669, 1532, 13288, 26311, 3773, 11, 2193, 2186, 7121, 11690, 47248, 1006, 197, 197, 5, 98645...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetIPFSTimeout(t *testing.T) { t.Run("Not specified -> default value", func(t *testing.T) { cmd := getTestCmd(t) timeout, err := getDuration(cmd, ipfsTimeoutFlagName, ipfsTimeoutEnvKey, defaultIPFSTimeout) require.NoError(t, err) require.Equal(t, defaultIPFSTimeout, timeout) }) t.Run("Invalid valu...
explode_data.jsonl/31133
{ "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, 1949, 3298, 37, 784, 545, 411, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 2623, 5189, 1464, 1638, 897, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 25920, 1669, 633, 2271, 15613, 1155, 692, 197, 78395, 11, 1848, 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 TestCLIFlags(t *testing.T) { url := "testFlags" cliURLFLag := CLIFlags(url)[1].(cli.StringFlag) assert.Equal(t, cliURLFLag.Value, url) }
explode_data.jsonl/81105
{ "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, 3140, 2773, 22851, 1155, 353, 8840, 836, 8, 341, 19320, 1669, 330, 1944, 9195, 698, 86448, 3144, 6126, 351, 1669, 6976, 2773, 22851, 6522, 6620, 16, 936, 7, 19521, 6431, 12135, 692, 6948, 12808, 1155, 11, 21348, 3144, 6126, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAllocation_EncryptAndUploadFile(t *testing.T) { const ( mockLocalPath = "1.txt" mockTmpPath = "/tmp" ) require := require.New(t) if teardown := setupMockFile(t, mockLocalPath); teardown != nil { defer teardown(t) } a := &Allocation{ Tx: "TestAllocation_EncryptAndUploadFile", ParityS...
explode_data.jsonl/4708
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 78316, 93529, 3571, 3036, 13844, 1703, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 77333, 7319, 1820, 284, 330, 16, 3909, 698, 197, 77333, 35986, 1820, 256, 284, 3521, 5173, 698, 197, 340, 17957, 1669, 1373, 7121, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCPUProfileLabel(t *testing.T) { testCPUProfile(t, []string{"runtime/pprof.cpuHogger;key=value"}, func(dur time.Duration) { Do(context.Background(), Labels("key", "value"), func(context.Context) { cpuHogger(cpuHog1, dur) }) }) }
explode_data.jsonl/13657
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 31615, 8526, 2476, 1155, 353, 8840, 836, 8, 341, 18185, 31615, 8526, 1155, 11, 3056, 917, 4913, 22255, 87146, 299, 69, 42387, 39, 538, 1389, 26, 792, 46538, 14345, 2915, 1500, 324, 882, 33795, 8, 341, 197, 197, 5404, 5378,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccountData(t *testing.T) { hmock := httptest.NewClient() client := &Client{ HorizonURL: "https://localhost/", HTTP: hmock, } // no parameters accountRequest := AccountRequest{} hmock.On( "GET", "https://localhost/accounts/GCLWGQPMKXQSPF776IU33AH4PZNOOWNAWGGKVTBQMIC5IMKUNP3E6NVU/data/test"...
explode_data.jsonl/34852
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 595 }
[ 2830, 3393, 7365, 1043, 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 TestPeek(t *testing.T) { src := "foo" p := NewHtmlParser(src) actual := peek(p) if actual != 'f' { t.Errorf("expected f, actual %s", string(actual)) } if p.pos != 0 { t.Errorf("expected 0, actual %d", p.pos) } }
explode_data.jsonl/34978
{ "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, 10197, 1225, 1155, 353, 8840, 836, 8, 341, 41144, 1669, 330, 7975, 698, 3223, 1669, 1532, 13591, 6570, 14705, 340, 88814, 1669, 32592, 1295, 340, 743, 5042, 961, 364, 69, 6, 341, 197, 3244, 13080, 445, 7325, 282, 11, 5042,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestErrors_DescribeToken(t *testing.T) { t.Run("eof", func(t *testing.T) { tok := mockToken(token.EOF, "-not-eof-", 1, 1) assertEqual(t, "end-of-file", errors.DescribeToken(tok)) }) t.Run("eof", func(t *testing.T) { tok := mockToken(token.INVALID, "-not-eof-", 1, 1) assertEqual(t, "unknown/invalid toke...
explode_data.jsonl/29097
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 13877, 98054, 3114, 3323, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 77594, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 562, 1669, 7860, 3323, 13274, 86492, 11, 6523, 1921, 5655, 1055, 73918, 220, 16, 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...
1
func TestCancelExchangeOrder(t *testing.T) { TestSetRealOrderDefaults(t) currencyPair := currency.NewPair(currency.LTC, currency.BTC) var orderCancellation = order.Cancel{ ID: "1", WalletAddress: core.BitcoinDonationAddress, AccountID: "1", Pair: currencyPair, } err := o.CancelOrde...
explode_data.jsonl/30201
{ "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, 9269, 31564, 4431, 1155, 353, 8840, 836, 8, 341, 73866, 1649, 12768, 4431, 16273, 1155, 340, 1444, 5088, 12443, 1669, 11413, 7121, 12443, 90475, 1214, 7749, 11, 11413, 1785, 7749, 340, 2405, 1973, 82298, 284, 1973, 36491, 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...
1
func TestGetDate(t *testing.T) { cases := []struct { in time.Time expected time.Time }{ // normal weekday before NextDayAfter {time.Date(2017, 05, 31, 0, 0, 0, 0, time.Local), time.Date(2017, 05, 31, 0, 0, 0, 0, time.Local)}, // normal weekday after NextDayAfter {time.Date(2017, 05, 31, 16, 0, 0,...
explode_data.jsonl/67947
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 625 }
[ 2830, 3393, 1949, 1916, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 17430, 981, 882, 16299, 198, 197, 42400, 882, 16299, 198, 197, 59403, 197, 197, 322, 4622, 46578, 1573, 9295, 10159, 6025, 198, 197, 197, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildOutboundRoutes(t *testing.T) { assert := tassert.New(t) testWeightedCluster := service.WeightedCluster{ ClusterName: "testCluster", Weight: 100, } input := []*trafficpolicy.RouteWeightedClusters{ { HTTPRouteMatch: trafficpolicy.HTTPRouteMatch{ Path: "/hello", PathMatchT...
explode_data.jsonl/75514
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 479 }
[ 2830, 3393, 11066, 2662, 10891, 26653, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 259, 2207, 7121, 1155, 692, 18185, 8295, 291, 28678, 1669, 2473, 22404, 64507, 28678, 515, 197, 197, 28678, 675, 25, 330, 1944, 28678, 756, 197, 197, 8295,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUserEntityInsertSUCCESS(t *testing.T) { resp := sendPost("http://localhost:8080/SignUp", APPJASON_UTF_8, UserEntityInsertSUCCESS) response := responseToString(resp) compareResults(t, response, HyperText.CustomResponses["success-insert"]) }
explode_data.jsonl/59333
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 1474, 3030, 13780, 39308, 1155, 353, 8840, 836, 8, 341, 34653, 1669, 3624, 4133, 445, 1254, 1110, 8301, 25, 23, 15, 23, 15, 14, 57522, 497, 17912, 41, 35304, 55061, 62, 23, 11, 2657, 3030, 13780, 39308, 340, 21735, 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
func TestSymmetricAssociationEdge(t *testing.T) { edgeInfo := getTestEdgeInfo(t, "account") edge := edgeInfo.GetAssociationEdgeByName("Friends") expectedAssocEdge := &AssociationEdge{ EdgeConst: "AccountToFriendsEdge", commonEdgeInfo: getCommonEdgeInfo( "Friends", schemaparser.GetEntConfigFromName("accoun...
explode_data.jsonl/73724
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 27912, 15903, 63461, 11656, 1155, 353, 8840, 836, 8, 341, 197, 7186, 1731, 1669, 633, 2271, 11656, 1731, 1155, 11, 330, 4608, 1138, 197, 7186, 1669, 6821, 1731, 2234, 63461, 11656, 16898, 445, 44343, 5130, 42400, 98628, 11656,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVersionCompare(t *testing.T) { v := ServerVersion{Major: 2, Minor: 3} tests := []struct { major, minor, result int }{ {major: 1, minor: 0, result: 1}, {major: 2, minor: 0, result: 1}, {major: 2, minor: 2, result: 1}, {major: 2, minor: 3, result: 0}, {major: 2, minor: 4, result: -1}, {major: 3,...
explode_data.jsonl/10848
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 5637, 27374, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 8422, 5637, 90, 34475, 25, 220, 17, 11, 29793, 25, 220, 18, 532, 78216, 1669, 3056, 1235, 341, 197, 2109, 3035, 11, 8922, 11, 1102, 526, 198, 197, 59403, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestNewEngine(t *testing.T) { for id, v := range exprExampleList { engine, err := NewEngine(v.expr) if err != nil { t.Error(err) } result, err := engine.RunRule(v.control) if err != nil { t.Error(err) } if v.result != result { t.Errorf("id %d failed test %v , result = %v", id, v, result) ...
explode_data.jsonl/3648
{ "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, 3564, 4571, 1155, 353, 8840, 836, 8, 341, 2023, 877, 11, 348, 1669, 2088, 15169, 13314, 852, 341, 197, 80118, 11, 1848, 1669, 1532, 4571, 3747, 57029, 340, 197, 743, 1848, 961, 2092, 341, 298, 3244, 6141, 3964, 340, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestUnorderedCloseEvent(t *testing.T) { conn := ConnectionStats{ Pid: 123, Type: TCP, Family: AFINET, Source: util.AddressFromString("127.0.0.1"), Dest: util.AddressFromString("127.0.0.1"), MonotonicSentBytes: 3, } client := "client...
explode_data.jsonl/22152
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 687 }
[ 2830, 3393, 1806, 10544, 7925, 1556, 1155, 353, 8840, 836, 8, 341, 32917, 1669, 11032, 16635, 515, 197, 10025, 307, 25, 394, 220, 16, 17, 18, 345, 197, 27725, 25, 2290, 26656, 345, 197, 12727, 5174, 25, 1797, 362, 16750, 1348, 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 TestPing_Get(t *testing.T) { conexão, err := sql.Open("testdb", "") if err != nil { t.Fatalf("erro ao inicializar a conexão do banco de dados. Detalhes: %s", err) } cenários := []struct { descrição string simulação func() logger log.Logger códigoHTTPEsperado int }{ {...
explode_data.jsonl/76181
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 751 }
[ 2830, 3393, 69883, 13614, 1155, 353, 8840, 836, 8, 341, 37203, 327, 3413, 11, 1848, 1669, 5704, 12953, 445, 1944, 1999, 497, 14676, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 40296, 14845, 48556, 11155, 264, 54204, 3413, 653, 524...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCPU(t *testing.T) { firstCPUStat := []procfs.CPUStat{{ User: 100.0, Nice: 100.0, System: 100.0, Idle: 100.0, Iowait: 100.0, IRQ: 100.0, SoftIRQ: 100.0, Steal: 100.0, Guest: 100.0, GuestNice: 100.0, }} c := makeTestCPUCollector(firstCPUStat) want := ...
explode_data.jsonl/25719
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 842 }
[ 2830, 3393, 31615, 1155, 353, 8840, 836, 8, 341, 42190, 31615, 15878, 1669, 3056, 15782, 3848, 727, 6325, 15878, 90, 515, 197, 31672, 25, 414, 220, 16, 15, 15, 13, 15, 345, 197, 18317, 558, 25, 414, 220, 16, 15, 15, 13, 15, 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...
4
func TestRollbackErrorStopsHeartbeat(t *testing.T) { defer leaktest.AfterTest(t)() defer log.Scope(t).Close(t) ctx := context.Background() clock := hlc.NewClock(hlc.UnixNano, time.Nanosecond) ambient := log.AmbientContext{Tracer: tracing.NewTracer()} sender := &mockSender{} stopper := stop.NewStopper() defer st...
explode_data.jsonl/76899
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 724 }
[ 2830, 3393, 32355, 1419, 1454, 623, 3721, 45384, 22227, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 16867, 1487, 77940, 1155, 568, 7925, 1155, 340, 20985, 1669, 2266, 19047, 741, 84165, 1669, 305, 17257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckMountPoint_Permissions(t *testing.T) { var tests = []struct { testname, name string mode int }{ {"NO_READ_PERM", "folder", 0333}, {"NO_WRITE_PERM", "node", 0555}, } for _, tt := range tests { t.Run(tt.testname, func(t *testing.T) { node, err := ioutil.TempDir("", tt.name) i...
explode_data.jsonl/18652
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 283 }
[ 2830, 3393, 3973, 16284, 2609, 53918, 5176, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 18185, 606, 11, 829, 914, 198, 197, 60247, 1843, 526, 198, 197, 59403, 197, 197, 4913, 8996, 13117, 10617, 44, 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...
4
func TestFindManifests_Exclude(t *testing.T) { objs, err := findManifests("testdata/app-include-exclude", ".", nil, argoappv1.ApplicationSourceDirectory{ Recurse: true, Exclude: "subdir/deploymentSub.yaml", }, map[string]bool{}) if !assert.NoError(t, err) || !assert.Len(t, objs, 1) { return } assert.Equal(...
explode_data.jsonl/5701
{ "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, 9885, 38495, 82, 62531, 857, 1155, 353, 8840, 836, 8, 341, 22671, 82, 11, 1848, 1669, 1477, 38495, 82, 445, 92425, 10640, 12, 997, 10187, 857, 497, 68514, 2092, 11, 1392, 78, 676, 85, 16, 17521, 3608, 9310, 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...
3
func TestManageSellOfferNewOffer(t *testing.T) { kp0 := newKeypair0() kp1 := newKeypair1() sourceAccount := NewSimpleAccount(kp1.Address(), int64(41137196761092)) selling := NativeAsset{} buying := CreditAsset{"ABCD", kp0.Address()} sellAmount := "100" price := "0.01" createOffer, err := CreateOfferOp(selling,...
explode_data.jsonl/20678
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 505 }
[ 2830, 3393, 33076, 68533, 39462, 3564, 39462, 1155, 353, 8840, 836, 8, 341, 16463, 79, 15, 1669, 501, 6608, 1082, 1310, 15, 741, 16463, 79, 16, 1669, 501, 6608, 1082, 1310, 16, 741, 47418, 7365, 1669, 1532, 16374, 7365, 5969, 79, 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 TestRDSIngressSpecMissingHTTPKey(t *testing.T) { rh, c, done := setup(t) defer done() i1 := &v1beta1.Ingress{ ObjectMeta: metav1.ObjectMeta{ Name: "test-ingress3", Namespace: "default", }, Spec: v1beta1.IngressSpec{ Rules: []v1beta1.IngressRule{{ Host: "test1.test.com", }, { Host...
explode_data.jsonl/24113
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 508 }
[ 2830, 3393, 49, 5936, 641, 2483, 8327, 25080, 9230, 1592, 1155, 353, 8840, 836, 8, 341, 7000, 71, 11, 272, 11, 2814, 1669, 6505, 1155, 340, 16867, 2814, 2822, 8230, 16, 1669, 609, 85, 16, 19127, 16, 5337, 2483, 515, 197, 23816, 1217...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWalletNew(t *testing.T) { address.CurrentNetwork = address.Mainnet ki, addr, err := WalletNew(types.KTBLS) if err != nil { t.Error(err) } t.Log(hex.EncodeToString(ki.PrivateKey)) t.Log(addr.String()) // baf063287d69520fe17d6065446a7b8a200799d676ba6844c8bfdca5dd3deb5c // f3qmpxmbmdjkqk73zacadt3dkt...
explode_data.jsonl/17780
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 191 }
[ 2830, 3393, 38259, 3564, 1155, 353, 8840, 836, 8, 1476, 63202, 11517, 12320, 284, 2621, 23873, 4711, 271, 197, 6642, 11, 10789, 11, 1848, 1669, 36483, 3564, 52613, 11352, 31160, 7268, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 396...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSubmitServer_SubmitJob_AddsExpectedEventsInCorrectOrder(t *testing.T) { withSubmitServer(func(s *SubmitServer, events repository.EventRepository) { jobSetId := util.NewULID() jobRequest := createJobRequest(jobSetId, 1) _, err := s.SubmitJobs(context.Background(), jobRequest) assert.Empty(t, err) m...
explode_data.jsonl/32523
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 304 }
[ 2830, 3393, 8890, 5475, 36359, 1763, 12245, 21346, 82, 18896, 7900, 641, 33092, 4431, 1155, 353, 8840, 836, 8, 341, 46948, 8890, 5475, 18552, 1141, 353, 8890, 5475, 11, 4357, 12542, 6904, 4624, 8, 341, 197, 68577, 1649, 764, 1669, 4094,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRepoAllowlistChecker_ContainsSchema(t *testing.T) { cases := []struct { allowlist string expErr string }{ { "://", `allowlist "://" contained ://`, }, { "valid/*,https://bitbucket.org/*", `allowlist "https://bitbucket.org/*" contained ://`, }, } for _, c := range cases { t.Run...
explode_data.jsonl/71968
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 207 }
[ 2830, 3393, 25243, 18605, 1607, 35188, 62, 23805, 8632, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 197, 7183, 1607, 914, 198, 197, 48558, 7747, 262, 914, 198, 197, 59403, 197, 197, 515, 298, 197, 788, 322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHasFilepathPrefix(t *testing.T) { dir, err := ioutil.TempDir("", "dep") if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) // dir2 is the same as dir but with different capitalization on Windows to // test case insensitivity var dir2 string if runtime.GOOS == "windows" { dir = strin...
explode_data.jsonl/72198
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1014 }
[ 2830, 3393, 10281, 1703, 2343, 14335, 1155, 353, 8840, 836, 8, 972, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 14891, 6060, 743, 1848, 961, 2092, 972, 197, 3244, 26133, 3964, 1218, 197, 1771, 16867, 2643, 84427, 14161, 7229, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCompactFlushQueuedLargeBatch(t *testing.T) { // Verify that compaction forces a flush of a queued large batch. mem := vfs.NewMem() d, err := Open("", testingRandomized(&Options{ FS: mem, })) require.NoError(t, err) // The default large batch threshold is slightly less than 1/2 of the // memtable siz...
explode_data.jsonl/51419
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 407 }
[ 2830, 3393, 98335, 46874, 25776, 3260, 34253, 21074, 1155, 353, 8840, 836, 8, 341, 197, 322, 25429, 429, 1367, 1311, 8437, 264, 18198, 315, 264, 57163, 3460, 7162, 382, 14145, 1669, 92941, 7121, 18816, 741, 2698, 11, 1848, 1669, 5264, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewFileBadImports_Issue36960(t *testing.T) { testenv.NeedsGo1Point(t, 14) const simplePackage = ` -- go.mod -- module mod.com go 1.14 -- a/a1.go -- package a import "fmt" func _() { fmt.Println("hi") } ` runner.Run(t, simplePackage, func(t *testing.T, env *Env) { env.OpenFile("a/a1.go") env.CreateBu...
explode_data.jsonl/38923
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 374 }
[ 2830, 3393, 3564, 1703, 17082, 31250, 7959, 83890, 18, 21, 24, 21, 15, 1155, 353, 8840, 836, 8, 341, 18185, 3160, 2067, 68, 6767, 10850, 16, 2609, 1155, 11, 220, 16, 19, 340, 4777, 4285, 13100, 284, 22074, 313, 728, 10929, 39514, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMap(t *testing.T) { assert(t, len(ParseBytes([]byte(`"asdf"`)).Map()) == 0) assert(t, ParseBytes([]byte(`{"asdf":"ghjk"`)).Map()["asdf"].String() == "ghjk") assert(t, len(Result{Type: JSON, Raw: "**invalid**"}.Map()) == 0) assert(t, Result{Type: JSON, Raw: "**invalid**"}.Value() == nil) assert(t, Result...
explode_data.jsonl/43427
{ "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, 2227, 1155, 353, 8840, 836, 8, 341, 6948, 1155, 11, 2422, 71812, 7078, 10556, 3782, 5809, 1, 76615, 39917, 4579, 2227, 2140, 621, 220, 15, 340, 6948, 1155, 11, 14775, 7078, 10556, 3782, 5809, 4913, 76615, 3252, 866, 41808, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStrArray_RemoveValue(t *testing.T) { slice := g.SliceStr{"a", "b", "d", "c"} array := garray.NewStrArrayFrom(slice) gtest.C(t, func(t *gtest.T) { t.Assert(array.RemoveValue("e"), false) t.Assert(array.RemoveValue("b"), true) t.Assert(array.RemoveValue("a"), true) t.Assert(array.RemoveValue("c"), tru...
explode_data.jsonl/53115
{ "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, 2580, 1857, 66843, 1130, 1155, 353, 8840, 836, 8, 341, 1903, 4754, 1669, 342, 95495, 2580, 4913, 64, 497, 330, 65, 497, 330, 67, 497, 330, 66, 16707, 11923, 1669, 342, 1653, 7121, 2580, 1857, 3830, 75282, 340, 3174, 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...
1
func TestLogsFollowTailEmpty(t *testing.T) { // FIXME(vdemeester) fails on a e2e run on linux... skip.If(t, testEnv.IsRemoteDaemon) defer setupTest(t)() client := testEnv.APIClient() ctx := context.Background() id := container.Run(ctx, t, client, container.WithCmd("sleep", "100000")) logs, err := client.Contai...
explode_data.jsonl/68177
{ "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, 51053, 12480, 44795, 3522, 1155, 353, 8840, 836, 8, 341, 197, 322, 27475, 3747, 67, 3894, 5191, 8, 14525, 389, 264, 384, 17, 68, 1598, 389, 36245, 9338, 1903, 13389, 32901, 1155, 11, 1273, 14359, 4506, 24703, 89177, 340, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_StrStrMap_Map(t *testing.T) { gtest.C(t, func(t *gtest.T) { m := gmap.NewStrStrMap() m.Set("1", "1") m.Set("2", "2") t.Assert(m.Get("1"), "1") t.Assert(m.Get("2"), "2") data := m.Map() t.Assert(data["1"], "1") t.Assert(data["2"], "2") data["3"] = "3" t.Assert(m.Get("3"), "3") m.Set("4",...
explode_data.jsonl/36012
{ "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, 46171, 2580, 2227, 56992, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 2109, 1669, 342, 2186, 7121, 2580, 2580, 2227, 741, 197, 2109, 4202, 445, 16, 497, 330, 16, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckPoolDoubleSpend(t *testing.T) { t.Parallel() testCases := []struct { name string setup func(ctx *testContext) *asiutil.Tx isReplacement bool }{ { // Transactions that double spend inputs and signal // replacement are invalid if the mempool's policy // rejects replacem...
explode_data.jsonl/53802
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1389 }
[ 2830, 3393, 3973, 10551, 7378, 50, 3740, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 688, 914, 198, 197, 84571, 260, 2915, 7502, 353, 1944, 1972, 8, 353, 10215, 1314, 81362, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestFileHelper_GetVolumeName_01(t *testing.T) { fh := FileHelper{} volumeName := fh.GetVolumeName("") if volumeName != "" { t.Errorf("Expected an empty string return from fh.GetVolumeName(\"\") because "+ "the input parameter is an empty string. Instead, the return value='%v' ", volumeName) } ...
explode_data.jsonl/14481
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 109 }
[ 2830, 3393, 1703, 5511, 13614, 18902, 675, 62, 15, 16, 1155, 353, 8840, 836, 8, 1476, 220, 36075, 1669, 2887, 5511, 31483, 220, 8123, 675, 1669, 36075, 2234, 18902, 675, 445, 5130, 220, 421, 8123, 675, 961, 1591, 341, 262, 259, 13080,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestContainerStopTimeout(t *testing.T) { c := &Container{ Config: &container.Config{}, } s := c.StopTimeout() if s != defaultStopTimeout { t.Fatalf("Expected %v, got %v", defaultStopTimeout, s) } stopTimeout := 15 c = &Container{ Config: &container.Config{StopTimeout: &stopTimeout}, } s = c.StopTi...
explode_data.jsonl/72825
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 155 }
[ 2830, 3393, 4502, 10674, 7636, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 609, 4502, 515, 197, 66156, 25, 609, 3586, 10753, 38837, 197, 630, 1903, 1669, 272, 30213, 7636, 741, 743, 274, 961, 1638, 10674, 7636, 341, 197, 3244, 30762, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestValidateInValidUserAgentRequest(t *testing.T) { req := getRequest() req.Header.Set("User-Agent", "Wrong") client := NewWebhookRequestHandler(req) _, err := client.ValidateAndGetData() assert.Error(t, err) }
explode_data.jsonl/25840
{ "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, 17926, 641, 4088, 1474, 16810, 1900, 1155, 353, 8840, 836, 8, 341, 24395, 1669, 78731, 741, 24395, 15753, 4202, 445, 1474, 45118, 497, 330, 29185, 1138, 25291, 1669, 1532, 5981, 20873, 1900, 3050, 6881, 340, 197, 6878, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestPRSignedByIsSignatureAuthorAccepted(t *testing.T) { ktGPG := SBKeyTypeGPGKeys prm := NewPRMMatchExact() testImage, closer := dirImageMock(t, "fixtures/dir-img-valid", "testing/manifest:latest") defer closer() testImageSig, err := ioutil.ReadFile("fixtures/dir-img-valid/signature-1") require.NoError(t, er...
explode_data.jsonl/17105
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2318 }
[ 2830, 3393, 6480, 49312, 1359, 3872, 25088, 7133, 65906, 1155, 353, 8840, 836, 8, 341, 197, 5840, 38, 11383, 1669, 25247, 97964, 38, 11383, 8850, 198, 25653, 76, 1669, 1532, 6480, 8035, 754, 57954, 741, 18185, 1906, 11, 12128, 1669, 541...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_SubResource_StatusARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { t.Parallel() parameters := gopter.DefaultTestParameters() parameters.MaxSize = 10 properties := gopter.NewProperties(parameters) properties.Property( "Round trip of SubResource_StatusARM via JSON returns original", prop.Fo...
explode_data.jsonl/59653
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 152 }
[ 2830, 3393, 36359, 4783, 36449, 17911, 62, 4498, 77521, 78967, 98054, 2848, 4756, 2121, 2993, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 67543, 1669, 728, 73137, 13275, 2271, 9706, 741, 67543, 14535, 1695, 284, 220, 16, 15, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestKibanaObjects_ImportWithoutOverride(t *testing.T) { underTest, err, teardown := setupKibanaObjectsTest() assert.NoError(t, err) defer teardown() mux.HandleFunc("/v1/kibana/import", importMockHandler(t)) payload, err := getImportPayloadFromFixture("import_without_override.json") assert.NoError(t, err) ...
explode_data.jsonl/42854
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 42, 579, 3362, 11543, 62, 11511, 26040, 2177, 1155, 353, 8840, 836, 8, 341, 197, 7995, 2271, 11, 1848, 11, 49304, 1669, 6505, 42, 579, 3362, 11543, 2271, 741, 6948, 35699, 1155, 11, 1848, 340, 16867, 49304, 2822, 2109, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSimpleMetaFactoryUpdateStruct(t *testing.T) { factory := SimpleMetaFactory{BaseFields: []string{"Test"}, VersionField: "V", KindField: "K"} type Inner struct { V string K string } obj := struct { Test Inner }{Test: Inner{"1", "2"}} // updates if err := factory.Update("test", "other", &obj); err ...
explode_data.jsonl/34480
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 178 }
[ 2830, 3393, 16374, 12175, 4153, 4289, 9422, 1155, 353, 8840, 836, 8, 341, 1166, 2919, 1669, 8993, 12175, 4153, 90, 3978, 8941, 25, 3056, 917, 4913, 2271, 14345, 6079, 1877, 25, 330, 53, 497, 16840, 1877, 25, 330, 42, 63159, 13158, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCounterquoteQueryPaginated(t *testing.T) { keeper, ctx := setupKeeper(t) wctx := sdk.WrapSDKContext(ctx) msgs := createNCounterquote(keeper, ctx, 5) request := func(next []byte, offset, limit uint64, total bool) *types.QueryAllCounterquoteRequest { return &types.QueryAllCounterquoteRequest{ Paginatio...
explode_data.jsonl/9748
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 659 }
[ 2830, 3393, 14099, 2949, 2859, 47712, 15479, 1155, 353, 8840, 836, 8, 341, 197, 18861, 11, 5635, 1669, 6505, 77233, 1155, 340, 6692, 3773, 1669, 45402, 38968, 31534, 1972, 7502, 340, 21169, 82, 1669, 1855, 45, 14099, 2949, 7, 18861, 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 TestLevelDBReceiptsFilterByIDs(t *testing.T) { assert := assert.New(t) conf := &LevelDBReceiptStoreConf{ Path: path.Join(tmpdir, "test2"), } r, err := newLevelDBReceipts(conf) defer r.store.Close() now := time.Now() var receivedAt int64 receivedAt = int64(now.UnixNano() / int64(time.Millisecond)) rec...
explode_data.jsonl/21454
{ "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, 4449, 3506, 67461, 82, 5632, 1359, 30466, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 67850, 1669, 609, 4449, 3506, 67461, 6093, 15578, 515, 197, 69640, 25, 1815, 22363, 10368, 3741, 11, 330, 1944, 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 TestIsClusterServiceBrokerReady(t *testing.T) { cases := []struct { name string input *v1beta1.ServiceInstance ready bool }{ { name: "ready", input: getTestServiceInstanceWithStatus(v1beta1.ConditionTrue), ready: true, }, { name: "no status", input: getTestServiceInstance(), read...
explode_data.jsonl/40492
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 259 }
[ 2830, 3393, 3872, 28678, 1860, 65545, 19202, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 22427, 353, 85, 16, 19127, 16, 13860, 2523, 198, 197, 197, 2307, 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...
3
func TestManipulate_ContextOption(t *testing.T) { mctx := NewContext(context.Background()) Convey("Calling ContextOptionFilter should work", t, func() { ContextOptionFilter(elemental.NewFilterComposer().WithKey("a").Equals("b").Done())(mctx.(*mcontext)) So(mctx.Filter().String(), ShouldEqual, `a == "b"`) }) ...
explode_data.jsonl/46933
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1679 }
[ 2830, 3393, 92876, 6334, 71994, 5341, 1155, 353, 8840, 836, 8, 1476, 2109, 3773, 1669, 1532, 1972, 5378, 19047, 12367, 93070, 5617, 445, 48853, 9608, 5341, 5632, 1265, 975, 497, 259, 11, 2915, 368, 341, 197, 70871, 5341, 5632, 11488, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPaymentSource_UnmarshalJSON(t *testing.T) { // Unmarshals from a JSON string { var v PaymentSource err := json.Unmarshal([]byte(`"ba_123"`), &v) assert.NoError(t, err) assert.Equal(t, "ba_123", v.ID) } // Unmarshals from a JSON object { // We build the JSON object manually here because it's key...
explode_data.jsonl/43027
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 290 }
[ 2830, 3393, 20188, 3608, 40687, 27121, 5370, 1155, 353, 8840, 836, 8, 341, 197, 322, 1230, 36239, 1127, 504, 264, 4718, 914, 198, 197, 515, 197, 2405, 348, 20453, 3608, 198, 197, 9859, 1669, 2951, 38097, 10556, 3782, 5809, 1, 4645, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOrderingServiceCrashAndRecover(t *testing.T) { testOrderingServiceCrashAndRecover(t, blockDelivererConsumerWithRecv) testOrderingServiceCrashAndRecover(t, blockDelivererConsumerWithSend) connWG.Wait() }
explode_data.jsonl/60874
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 4431, 287, 1860, 16001, 988, 3036, 693, 3688, 1155, 353, 8840, 836, 8, 341, 18185, 4431, 287, 1860, 16001, 988, 3036, 693, 3688, 1155, 11, 2504, 16532, 1524, 261, 29968, 2354, 63483, 340, 18185, 4431, 287, 1860, 16001, 988, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseRalativeDateTime(t *testing.T) { _, err := parseRalativeDateTime(" - 1234 H") if err == nil { t.Fatal("must be error, but it is not") } _, err = parseRalativeDateTime(" -1234 H") if err == nil { t.Fatal("must be error, but it is not") } testParseRalativeDateTime(t, "-0.01m", time.Second) tes...
explode_data.jsonl/66056
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 267 }
[ 2830, 3393, 14463, 84981, 1388, 7689, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 4715, 84981, 1388, 7689, 445, 481, 220, 16, 17, 18, 19, 472, 1138, 743, 1848, 621, 2092, 341, 197, 3244, 26133, 445, 24812, 387, 1465, 11, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoggingServiceV2ListLogs(t *testing.T) { var nextPageToken string = "" var logNamesElement string = "logNamesElement-1079688374" var logNames = []string{logNamesElement} var expectedResponse = &loggingpb.ListLogsResponse{ NextPageToken: nextPageToken, LogNames: logNames, } mockLogging.err = nil...
explode_data.jsonl/77765
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 440 }
[ 2830, 3393, 34575, 1860, 53, 17, 852, 51053, 1155, 353, 8840, 836, 8, 341, 2405, 83595, 3323, 914, 284, 8389, 2405, 1487, 7980, 1691, 914, 284, 330, 839, 7980, 1691, 12, 16, 15, 22, 24, 21, 23, 23, 18, 22, 19, 698, 2405, 1487, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestContextGetInt64(t *testing.T) { c, _ := CreateTestContext(httptest.NewRecorder()) c.Set("int64", int64(42424242424242)) assert.Equal(t, int64(42424242424242), c.GetInt64("int64")) }
explode_data.jsonl/26749
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 81 }
[ 2830, 3393, 1972, 85097, 21, 19, 1155, 353, 8840, 836, 8, 341, 1444, 11, 716, 1669, 4230, 2271, 1972, 73392, 83, 70334, 7121, 47023, 2398, 1444, 4202, 445, 396, 21, 19, 497, 526, 21, 19, 7, 19, 17, 19, 17, 19, 17, 19, 17, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestValidateActionReturnBodyFails(t *testing.T) { tests := []struct { body string msg string }{ { body: "Request to $host", msg: "invalid variable format", }, { body: `Request to host failed "`, msg: "unescaped double quotes", }, { body: "Please access to ${something}.com", msg...
explode_data.jsonl/65889
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 17926, 2512, 5598, 5444, 37, 6209, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 35402, 914, 198, 197, 21169, 220, 914, 198, 197, 59403, 197, 197, 515, 298, 35402, 25, 330, 1900, 311, 400, 3790, 756, 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 TestNewPeerEndorserBadParams(t *testing.T) { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() config := mockfab.DefaultMockConfig(mockCtrl) url := "" _, err := newPeerEndorser(getPeerEndorserRequest(url, nil, "", config, kap, false, false)) if err == nil { t.Fatal("Peer conn should not be cons...
explode_data.jsonl/45089
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 131 }
[ 2830, 3393, 3564, 30888, 3727, 269, 799, 17082, 4870, 1155, 353, 8840, 836, 8, 341, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 7860, 15001, 991, 18176, 2822, 25873, 1669, 7860, 36855, 13275, 11571, 2648, 30389, 1500...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccessLog(t *testing.T) { server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {})) testCases := []struct { desc string routersConfig map[string]*config.Router serviceConfig map[string]*config.Service middlewaresConfig map[string]*config.Mid...
explode_data.jsonl/74619
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1276 }
[ 2830, 3393, 6054, 2201, 1155, 353, 8840, 836, 8, 341, 41057, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 4687, 4390, 18185, 37302, 1669, 3056, 1235, 341, 197, 41653, 1060, 914, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestButton(t *testing.T) { btn := button{} btn.Update(true) if !btn.JustPressed() { t.Error("button not pressed") } if !btn.Down() { t.Error("button not down") } btn.Reset() btn.Update(true) if btn.JustPressed() { t.Error("button should not be pressed") } if !btn.Down() { t.Error("button not d...
explode_data.jsonl/51638
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 239 }
[ 2830, 3393, 1567, 1155, 353, 8840, 836, 8, 341, 43021, 1669, 3137, 16094, 43021, 16689, 3715, 692, 743, 753, 3905, 3503, 590, 12775, 368, 341, 197, 3244, 6141, 445, 2159, 537, 17320, 1138, 197, 532, 743, 753, 3905, 73543, 368, 341, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestGocloak_GetKeyStoreConfig(t *testing.T) { t.Parallel() cfg := GetConfig(t) client := NewClientWithDebug(t) token := GetAdminToken(t, client) config, err := client.GetKeyStoreConfig( token.AccessToken, cfg.GoCloak.Realm) t.Log(config) FailIfErr(t, err, "GetKeyStoreConfig") }
explode_data.jsonl/79516
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 118 }
[ 2830, 3393, 38, 509, 385, 585, 13614, 1592, 6093, 2648, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50286, 1669, 2126, 2648, 1155, 340, 25291, 1669, 1532, 2959, 2354, 7939, 1155, 340, 43947, 1669, 2126, 7210, 3323, 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 TestAddSecurityGroupRule(t *testing.T) { type args struct { ctx context.Context req service.AddSecurityGroupRuleRequest } tests := []struct { name string args args want string wantErr bool }{ { name: "测试添加一条入安全组策略", args: args{ ctx: nil, req: service.AddSecurityGroupRuleReq...
explode_data.jsonl/72642
{ "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, 2212, 15352, 2808, 11337, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 20985, 2266, 9328, 198, 197, 24395, 2473, 1904, 15352, 2808, 11337, 1900, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_DirectedWithMultipleValuesForNode(t *testing.T) { gb := NewGraphBuilder(BuilderOptions{IsDirected: true}) gb.AddNode(1, "value 1", "value 2") _, err := gb.Build() assert.ErrorIs(t, err, multipleValuesForNodeError{nodeID: 1}) }
explode_data.jsonl/81793
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 87 }
[ 2830, 3393, 1557, 74612, 2354, 32089, 6227, 2461, 1955, 1155, 353, 8840, 836, 8, 341, 3174, 65, 1669, 1532, 11212, 3297, 7, 3297, 3798, 90, 3872, 92669, 25, 830, 3518, 3174, 65, 1904, 1955, 7, 16, 11, 330, 957, 220, 16, 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...
1
func TestListenDropIncrement(t *testing.T) { c := context.New(t, defaultMTU) defer c.Cleanup() stats := c.Stack().Stats() c.Create(-1 /*epRcvBuf*/) if err := c.EP.Bind(tcpip.FullAddress{Addr: context.StackAddr, Port: context.StackPort}); err != nil { t.Fatalf("Bind failed: %s", err) } if err := c.EP.Listen(1...
explode_data.jsonl/76015
{ "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, 38714, 19871, 38311, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2266, 7121, 1155, 11, 1638, 8505, 52, 340, 16867, 272, 727, 60639, 2822, 79659, 1669, 272, 58646, 1005, 16635, 741, 1444, 7251, 4080, 16, 1391, 747, 49, 13122, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetExternalTagInvalidSourceType(t *testing.T) { // Reset memory counters helpers.ResetMemoryStats() code := ` tags = [ ('hostname', {'source_type': ['tag1', 'tag2']}), ('hostname2', {123: ['tag3', 'tag4']}), ] datadog_agent.set_external_tags(tags) ` out, err := run(code) if err != nil { t.Fatal...
explode_data.jsonl/24556
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 200 }
[ 2830, 3393, 1649, 25913, 5668, 7928, 93363, 1155, 353, 8840, 836, 8, 341, 197, 322, 16932, 4938, 31532, 198, 197, 21723, 36660, 10642, 16635, 2822, 43343, 1669, 22074, 3244, 2032, 284, 2278, 197, 197, 492, 27806, 516, 5360, 2427, 1819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue3699(t *testing.T) { // start a cluster of 3 nodes a, b, c defer testutil.AfterTest(t) c := NewCluster(t, 3) c.Launch(t) defer c.Terminate(t) // make node a unavailable c.Members[0].Stop(t) // add node d c.AddMember(t) // electing node d as leader makes node a unable to participate leaderID ...
explode_data.jsonl/16303
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 572 }
[ 2830, 3393, 42006, 18, 21, 24, 24, 1155, 353, 8840, 836, 8, 341, 197, 322, 1191, 264, 10652, 315, 220, 18, 7798, 264, 11, 293, 11, 272, 198, 16867, 1273, 1314, 36892, 2271, 1155, 340, 1444, 1669, 1532, 28678, 1155, 11, 220, 18, 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...
7
func TestIsBaseRole(t *testing.T) { for _, role := range BaseRoles { require.True(t, IsBaseRole(role)) } require.False(t, IsBaseRole("user")) require.False(t, IsBaseRole( RoleName(path.Join(CanonicalTargetsRole.String(), "level1", "level2", "level3")))) require.False(t, IsBaseRole(RoleName(path.Join(CanonicalT...
explode_data.jsonl/66973
{ "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, 3872, 3978, 9030, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 3476, 1669, 2088, 5351, 25116, 341, 197, 17957, 32443, 1155, 11, 2160, 3978, 9030, 35898, 1171, 197, 532, 17957, 50757, 1155, 11, 2160, 3978, 9030, 445, 872, 5455, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShutdownError(t *testing.T) { f := newFixture(t) errMsg := "failed to shutdown" // Add a mock httpListener to the server m := &mockHTTPListener{ ShutdownHook: func() error { return errors.New(errMsg) }, } f.server.httpListeners = []httpListener{m} ctx, cancel := context.WithTimeout(context.Bac...
explode_data.jsonl/79035
{ "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, 62004, 1454, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 18930, 1155, 692, 9859, 6611, 1669, 330, 16091, 311, 23766, 1837, 197, 322, 2691, 264, 7860, 1758, 2743, 311, 279, 3538, 198, 2109, 1669, 609, 16712, 9230, 2743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetList(t *testing.T) { tstest.ResourceCheck(t) pl, err := GetList(nil) if err != nil { t.Fatal(err) } for i, p := range pl { t.Logf("[%d] %+v", i, p) } t.Logf("As String: %v", pl.String()) }
explode_data.jsonl/53616
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 106 }
[ 2830, 3393, 1949, 852, 1155, 353, 8840, 836, 8, 341, 3244, 267, 477, 20766, 3973, 1155, 692, 72213, 11, 1848, 1669, 2126, 852, 27907, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 2023, 600, 11, 281, 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...
3
func TestPathMatches(t *testing.T) { type test struct { url string pattern string allow bool } var testCases = []test{ {url: "/", pattern: "/", allow: true}, {url: "/xyz/subpath1/subpath2", pattern: "/xyz/*/subpath3", allow: false}, {url: "/ops/portal/admin", pattern: "/ops/portal/", allow: false}...
explode_data.jsonl/8409
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 342 }
[ 2830, 3393, 1820, 42470, 1155, 353, 8840, 836, 8, 341, 13158, 1273, 2036, 341, 197, 19320, 257, 914, 198, 197, 3223, 3227, 914, 198, 197, 197, 7183, 256, 1807, 198, 197, 630, 2405, 1273, 37302, 284, 3056, 1944, 515, 197, 197, 90, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestPluginScalarParse(t *testing.T) { grpcClientMock, teardown := setupPluginDriverTests(t) defer teardown(t) plug := plugin.NewPlugin(plugin.Config{ Cmd: "fake-plugin-command", }) defer plug.Close() data := []struct { in driver.ScalarParseInput out driver.ScalarParseOutput outErr error }{ ...
explode_data.jsonl/37054
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 374 }
[ 2830, 3393, 11546, 20639, 14463, 1155, 353, 8840, 836, 8, 341, 197, 56585, 2959, 11571, 11, 49304, 1669, 6505, 11546, 11349, 18200, 1155, 340, 16867, 49304, 1155, 340, 197, 47474, 1669, 9006, 7121, 11546, 46801, 10753, 515, 197, 6258, 227...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSimpleApplicationEventGetEvent(t *testing.T) { tests := []struct { name string appID string event events.ApplicationEventType wantEvent events.ApplicationEventType }{ {TestEventName, "testAppId001", events.SubmitApplication, events.SubmitApplication}, } for _, tt := range tests { ...
explode_data.jsonl/9770
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 16374, 4988, 1556, 1949, 1556, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 28236, 915, 257, 914, 198, 197, 28302, 257, 4357, 17521, 47906, 198, 197, 50780, 1556, 4357, 17521, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Text_ReplaceText(t *testing.T) { config := ReadConfiguration(t) client, ctx := PrepareTest(t, config) remoteDataFolder := remoteBaseTestDataFolder + "/DocumentElements/Text" remoteFileName := "TestReplaceText.docx" localFile := "Common/test_multi_pages.docx" UploadNextFileToStorage(t,...
explode_data.jsonl/65690
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 402 }
[ 2830, 3393, 20550, 62, 23107, 1178, 1155, 353, 8840, 836, 8, 341, 262, 2193, 1669, 4457, 7688, 1155, 340, 262, 2943, 11, 5635, 1669, 31166, 2271, 1155, 11, 2193, 340, 262, 8699, 1043, 13682, 1669, 8699, 3978, 83920, 13682, 488, 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...
2
func TestParseLobstersQueries(t *testing.T) { for _, query := range loadQueries(t, "lobsters.sql.gz") { _, err := Parse(query) if err != nil { t.Errorf("failed to parse %q: %v", query, err) } } }
explode_data.jsonl/27194
{ "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, 14463, 43, 674, 12570, 55261, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 3239, 1669, 2088, 2795, 55261, 1155, 11, 330, 1684, 12570, 10045, 20963, 899, 341, 197, 197, 6878, 1848, 1669, 14775, 10741, 340, 197, 743, 1848, 961, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestPostDecObj(t *testing.T) { const SCRIPT = ` var object = {valueOf: function() {return 1}}; var y = object--; var ok = false; if (y === 1) { ok = true; } ok; ` testScript1(SCRIPT, valueTrue, t) }
explode_data.jsonl/75253
{ "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, 4133, 4900, 5261, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 2405, 1633, 284, 314, 93013, 25, 729, 368, 314, 689, 220, 16, 52481, 2405, 379, 284, 1633, 11481, 2405, 5394, 284, 895, 280, 743, 320, 88, 2049, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBasic(t *testing.T) { d := &testStorage{} l := NewSkiplist(d, 0) it := l.NewIter() // Try adding values. require.Nil(t, l.Add(d.add("key1"))) require.Nil(t, l.Add(d.add("key2"))) require.Nil(t, l.Add(d.add("key3"))) require.True(t, it.SeekGE(makeKey("key"))) require.EqualValues(t, "key1", it.Key().U...
explode_data.jsonl/26099
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 324 }
[ 2830, 3393, 15944, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 609, 1944, 5793, 16094, 8810, 1669, 1532, 50, 6642, 39934, 1500, 11, 220, 15, 340, 23374, 1669, 326, 7121, 8537, 2822, 197, 322, 9735, 7842, 2750, 624, 17957, 59678, 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 TestPriorityQueue_Delete(t *testing.T) { objs := []runtime.Object{highPriorityPodInfo.Pod, unschedulablePodInfo.Pod} q := NewTestQueueWithObjects(context.Background(), newDefaultQueueSort(), objs) q.Update(highPriorityPodInfo.Pod, highPriNominatedPodInfo.Pod) q.Add(unschedulablePodInfo.Pod) if err := q.Delete...
explode_data.jsonl/68188
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 461 }
[ 2830, 3393, 20555, 7554, 57418, 1155, 353, 8840, 836, 8, 341, 22671, 82, 1669, 3056, 22255, 8348, 90, 11892, 20555, 23527, 1731, 88823, 11, 6975, 2397, 360, 480, 23527, 1731, 88823, 532, 18534, 1669, 1532, 2271, 7554, 2354, 11543, 5378, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGogsDeployPush(t *testing.T) { repo := &Repo{Branch: "master", Hook: HookConfig{URL: "/gogs_deploy"}} gsHook := GogsHook{} for i, test := range []struct { body string event string responseBody string code int }{ {"", "", "", 400}, {"", "push", "", 400}, {pushGSBodyOthe...
explode_data.jsonl/31864
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 444 }
[ 2830, 3393, 38, 26307, 69464, 16644, 1155, 353, 8840, 836, 8, 341, 17200, 5368, 1669, 609, 25243, 90, 18197, 25, 330, 13629, 497, 28171, 25, 28171, 2648, 90, 3144, 25, 3521, 70, 26307, 91890, 95642, 3174, 82, 31679, 1669, 479, 26307, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReplicaPlacementSerialDeserial(t *testing.T) { rp, _ := NewReplicaPlacementFromString("001") newRp, _ := NewReplicaPlacementFromByte(rp.Byte()) if rp.String() != newRp.String() { println("expected:", rp.String(), "actual:", newRp.String()) t.Fail() } }
explode_data.jsonl/51601
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 106 }
[ 2830, 3393, 18327, 15317, 28237, 5915, 4896, 2848, 1155, 353, 8840, 836, 8, 341, 7000, 79, 11, 716, 1669, 1532, 18327, 15317, 28237, 44491, 445, 15, 15, 16, 1138, 8638, 61730, 11, 716, 1669, 1532, 18327, 15317, 28237, 3830, 7153, 95970,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFB_Sections(t *testing.T) { expected := []AB{{1, 16}, {16, 31}, {31, 46}, {46, 61}, {61, 76}, {76, 91}, {91, 101}} f := FB{} f.Init() f.Sections(1, 101, 15) if !reflect.DeepEqual(expected, f.i) { t.Fatalf("v:%v\n", f.i) } }
explode_data.jsonl/19481
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 16208, 26920, 5136, 1155, 353, 8840, 836, 8, 1476, 42400, 1669, 3056, 1867, 2979, 16, 11, 220, 16, 21, 1583, 197, 197, 90, 16, 21, 11, 220, 18, 16, 2137, 314, 18, 16, 11, 220, 19, 21, 1583, 197, 197, 90, 19, 21, 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 TestInitDB(t *testing.T) { InitDB("test", "user", "pass", "localhost", nil, pgx.LogLevelDebug) if DB.connection == nil { t.Error("database could not be initialized correctly") } }
explode_data.jsonl/29855
{ "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, 3803, 3506, 1155, 353, 8840, 836, 8, 341, 98762, 3506, 445, 1944, 497, 330, 872, 497, 330, 6385, 497, 330, 8301, 497, 2092, 11, 17495, 87, 5247, 4449, 7939, 340, 743, 5952, 20310, 621, 2092, 341, 197, 3244, 6141, 445, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestHTTPPostNoParameterPassed(t *testing.T) { sender := NewHTTPSender("", "", false) continuePipeline, result := sender.HTTPPost(context) assert.False(t, continuePipeline, "Pipeline should stop") assert.Error(t, result.(error), "Result should be an error") assert.Equal(t, "No Data Received", result.(error)....
explode_data.jsonl/75580
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 108 }
[ 2830, 3393, 9230, 4133, 2753, 4971, 64723, 1155, 353, 8840, 836, 8, 1476, 1903, 1659, 1669, 1532, 9230, 20381, 19814, 7342, 895, 340, 11664, 34656, 11, 1102, 1669, 4646, 27358, 4133, 5378, 692, 6948, 50757, 1155, 11, 3060, 34656, 11, 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 TestMultiReturnWithArray(t *testing.T) { const definition = `[{"name" : "multi", "outputs": [{"type": "uint64[3]"}, {"type": "uint64"}]}]` abi, err := JSON(strings.NewReader(definition)) if err != nil { t.Fatal(err) } buff := new(bytes.Buffer) buff.Write(common.Hex2Bytes("0000000000000000000000000000000000...
explode_data.jsonl/22755
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 20358, 5598, 2354, 1857, 1155, 353, 8840, 836, 8, 341, 4777, 7271, 284, 77644, 4913, 606, 1, 549, 330, 26268, 497, 330, 41006, 788, 61753, 1313, 788, 330, 2496, 21, 19, 58, 18, 60, 14345, 5212, 1313, 788, 330, 2496, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestKubeletDefaults(t *testing.T) { defaults, _ := kubeletoptions.NewKubeletServer() // This is a snapshot of the default config // If the default changes (new fields are added, or default values change), we want to know // Once we've reacted to the changes appropriately in BuildKubernetesNodeConfig(), update...
explode_data.jsonl/79693
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2923 }
[ 2830, 3393, 42, 3760, 1149, 16273, 1155, 353, 8840, 836, 8, 341, 11940, 82, 11, 716, 1669, 80958, 273, 983, 1300, 7121, 42, 3760, 1149, 5475, 2822, 197, 322, 1096, 374, 264, 16295, 315, 279, 1638, 2193, 198, 197, 322, 1416, 279, 163...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateChangesetSpec(t *testing.T) { if testing.Short() { t.Skip() } ctx := context.Background() db := dbtesting.GetDB(t) userID := ct.CreateTestUser(t, db, true).ID cstore := store.New(db) repoStore := database.ReposWith(cstore) esStore := database.ExternalServicesWith(cstore) repo := newGitHubT...
explode_data.jsonl/13587
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 631 }
[ 2830, 3393, 4021, 11317, 295, 8327, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 741, 197, 630, 20985, 1669, 2266, 19047, 741, 20939, 1669, 2927, 8840, 2234, 3506, 1155, 692, 19060, 915, 1669, 20251, 7251,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewDB(t *testing.T) { cfg := &DBConfig{ Host: "localhost", User: "pgtest", Pass: "", Database: "pgtest", Port: 5432, } db, err := NewDB(cfg) if err != nil { t.Fatal(err) } if err := db.Ping(); err != nil { t.Error(err) } }
explode_data.jsonl/74273
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 3564, 3506, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 609, 3506, 2648, 515, 197, 197, 9296, 25, 257, 330, 8301, 756, 197, 31672, 25, 257, 330, 3517, 1944, 756, 197, 10025, 395, 25, 257, 8324, 197, 197, 5988, 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...
3