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 Test_PJWHash64(t *testing.T) { var x uint64 = 31150 gtest.C(t, func(t *gtest.T) { j := ghash.PJWHash64(strBasic) t.Assert(j, x) }) }
explode_data.jsonl/60235
{ "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, 1088, 41, 54, 6370, 21, 19, 1155, 353, 8840, 836, 8, 341, 2405, 856, 2622, 21, 19, 284, 220, 18, 16, 16, 20, 15, 198, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 12428, 1669, 342, 8296, 1069,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStxoSerialization(t *testing.T) { tests := []struct { name string stxo txo.SpentTxOut serialized string }{ { name: "Spends last output of coinbase, height 1", stxo: coinbaseStxo, serialized: "0x030065cd1d0000000000e3054b411051da5492aec7a823b00cb3add772d70c00000000000000000000000...
explode_data.jsonl/37662
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1611 }
[ 2830, 3393, 623, 40822, 35865, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 18388, 40822, 981, 9854, 78, 808, 45125, 31584, 2662, 198, 197, 197, 75277, 914, 198, 197, 59403, 197, 197, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateBatchChangesCredential(t *testing.T) { if testing.Short() { t.Skip() } ct.MockRSAKeygen(t) ctx := context.Background() db := dbtest.NewDB(t, "") pruneUserCredentials(t, db, nil) userID := ct.CreateTestUser(t, db, true).ID cstore := store.New(db, nil) r := &Resolver{store: cstore} s, err...
explode_data.jsonl/53217
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1495 }
[ 2830, 3393, 4021, 21074, 11317, 48265, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 741, 197, 630, 89216, 24664, 73564, 1592, 4370, 1155, 692, 20985, 1669, 2266, 19047, 741, 20939, 1669, 2927, 1944, 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 Test_run(t *testing.T) { t.Log("Current test is [c]") testCases := [][2]string{ { `1 1 5 6`, `2`, }, { `1 1 1 200001`, `2`, }, { `2 3 998244353 998244853`, `3`, }, { `1 1 1 1`, `0`, }, // TODO 测试参数的下界和上界 { `1 1 1 6`, `2`, }, } testutil.AssertEqualStringCase(t...
explode_data.jsonl/23580
{ "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, 14007, 1155, 353, 8840, 836, 8, 341, 3244, 5247, 445, 5405, 1273, 374, 508, 66, 47915, 18185, 37302, 1669, 508, 1457, 17, 30953, 515, 197, 197, 515, 298, 197, 63, 16, 220, 16, 198, 20, 220, 21, 12892, 298, 197, 63, 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 TestEncodingApplies(t *testing.T) { temp, err := os.CreateTemp("", "zapup-encoding-test") require.NoError(t, err, "Unexpected error constructing logger.") defer os.Remove(temp.Name()) os.Setenv(KeyLogLevel, "info") os.Setenv(KeyFieldCustomer, "gopher") os.Setenv(KeyFieldStage, "test") os.Setenv(KeyFieldAp...
explode_data.jsonl/63193
{ "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, 14690, 10611, 7202, 1155, 353, 8840, 836, 8, 1476, 16280, 11, 1848, 1669, 2643, 7251, 12151, 19814, 330, 92371, 454, 12, 17159, 16839, 1138, 17957, 35699, 1155, 11, 1848, 11, 330, 29430, 1465, 49353, 5925, 13053, 16867, 2643, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTooLargeResourceVersionList(t *testing.T) { server, etcdStorage := newEtcdTestStorage(t, etcd3testing.PathPrefix()) defer server.Terminate(t) cacher, v, err := newTestCacher(etcdStorage) if err != nil { t.Fatalf("Couldn't create cacher: %v", err) } defer cacher.Stop() podFoo := makeTestPod("foo") fo...
explode_data.jsonl/41359
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 373 }
[ 2830, 3393, 31246, 34253, 4783, 5637, 852, 1155, 353, 8840, 836, 8, 341, 41057, 11, 1842, 4385, 5793, 1669, 501, 31860, 4385, 2271, 5793, 1155, 11, 1842, 4385, 18, 8840, 17474, 14335, 2398, 16867, 3538, 836, 261, 34016, 1155, 340, 1444,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestServerDisableHeaderNamesNormalizing(t *testing.T) { headerName := "CASE-senSITive-HEAder-NAME" headerNameLower := strings.ToLower(headerName) headerValue := "foobar baz" s := &Server{ Handler: func(ctx *RequestCtx) { hv := ctx.Request.Header.Peek(headerName) if string(hv) != headerValue { t.Fat...
explode_data.jsonl/73279
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 647 }
[ 2830, 3393, 5475, 25479, 4047, 7980, 12206, 4849, 1155, 353, 8840, 836, 8, 341, 20883, 675, 1669, 330, 40371, 1331, 268, 50, 952, 533, 12, 1799, 32, 1107, 12, 7535, 698, 20883, 675, 9053, 1669, 9069, 29983, 25534, 675, 340, 20883, 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...
3
func TestTerraform_StringifyContent(t *testing.T) { type fields struct { parser Parser } type args struct { content []byte } tests := []struct { name string fields fields args args want string wantErr bool }{ { name: "test stringify content", fields: fields{ parser: Parser{}, ...
explode_data.jsonl/40766
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 441 }
[ 2830, 3393, 51, 13886, 627, 31777, 1437, 2762, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 55804, 21102, 198, 197, 532, 13158, 2827, 2036, 341, 197, 27751, 3056, 3782, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSingleModifier(t *testing.T) { var data = `{"@key": "value"}` assert(t, Get(data, "@key").String() == "value") assert(t, Get(data, "\\@key").String() == "value") }
explode_data.jsonl/43472
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 10888, 34405, 1155, 353, 8840, 836, 8, 341, 2405, 821, 284, 1565, 4913, 31, 792, 788, 330, 957, 9207, 3989, 6948, 1155, 11, 2126, 2592, 11, 8428, 792, 1827, 703, 368, 621, 330, 957, 1138, 6948, 1155, 11, 2126, 2592, 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
func TestControllerFilterSecret(t *testing.T) { t.Parallel() tests := []struct { name string secret metav1.Object wantAdd bool wantUpdate bool wantDelete bool }{ { name: "a secret of the right type", secret: &corev1.Secret{ Type: "secrets.pinniped.dev/oidc-client", Objec...
explode_data.jsonl/8269
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 879 }
[ 2830, 3393, 2051, 5632, 19773, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 197, 20474, 257, 77520, 16, 8348, 198, 197, 50780, 2212, 262, 1807, 198, 197, 50780, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReplicationMode(t *testing.T) { re := require.New(t) registerDefaultSchedulers() cfgData := ` [replication-mode] replication-mode = "dr-auto-sync" [replication-mode.dr-auto-sync] label-key = "zone" primary = "zone1" dr = "zone2" primary-replicas = 2 dr-replicas = 1 wait-store-timeout = "120s" ` cfg := NewC...
explode_data.jsonl/78169
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 430 }
[ 2830, 3393, 18327, 1693, 3636, 1155, 353, 8840, 836, 8, 341, 17200, 1669, 1373, 7121, 1155, 340, 29422, 3675, 74674, 741, 50286, 1043, 1669, 22074, 58, 9995, 1693, 14982, 921, 9995, 1693, 14982, 284, 330, 3612, 19938, 65034, 698, 58, 99...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHitCondBreakpointEQ(t *testing.T) { withTestProcess("break", t, func(p *proc.Target, fixture protest.Fixture) { bp := setFileBreakpoint(p, t, fixture.Source, 7) bp.UserBreaklet().HitCond = &struct { Op token.Token Val int }{token.EQL, 3} assertNoError(p.Continue(), t, "Continue()") ivar := e...
explode_data.jsonl/56240
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 247 }
[ 2830, 3393, 19498, 49696, 22524, 2768, 54007, 1155, 353, 8840, 836, 8, 341, 46948, 2271, 7423, 445, 8960, 497, 259, 11, 2915, 1295, 353, 15782, 35016, 11, 12507, 8665, 991, 12735, 8, 341, 197, 2233, 79, 1669, 738, 1703, 22524, 2768, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRestoredPrivileges(t *testing.T) { defer leaktest.AfterTest(t)() const numAccounts = 1 _, _, sqlDB, dir, cleanupFn := BackupRestoreTestSetup(t, singleNode, numAccounts, InitNone) defer cleanupFn() args := base.TestServerArgs{ExternalIODir: dir} rootOnly := sqlDB.QueryStr(t, `SHOW GRANTS ON data.bank`) ...
explode_data.jsonl/57602
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 927 }
[ 2830, 3393, 12416, 3018, 32124, 70838, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 4777, 1629, 41369, 284, 220, 16, 198, 197, 6878, 8358, 5704, 3506, 11, 5419, 11, 21290, 24911, 1669, 43438, 56284, 2271...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSortedKeys(t *testing.T) { service := kobject.ServiceConfig{ ContainerName: "name", Image: "image", } service1 := kobject.ServiceConfig{ ContainerName: "name", Image: "image", } c := []string{"a", "b"} komposeObject := kobject.KomposeObject{ ServiceConfigs: map[string]kobject.S...
explode_data.jsonl/58963
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 198 }
[ 2830, 3393, 51051, 8850, 1155, 353, 8840, 836, 8, 341, 52934, 1669, 595, 1700, 13860, 2648, 515, 197, 197, 4502, 675, 25, 330, 606, 756, 197, 53397, 25, 260, 330, 1805, 756, 197, 532, 52934, 16, 1669, 595, 1700, 13860, 2648, 515, 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...
2
func TestNewQuerier(t *testing.T) { app, ctx := createTestApp(false) keeper := app.SupplyKeeper() cdc := app.Codec() supplyCoins := chainType.NewCoins( chainType.NewCoin(constants.DefaultBondDenom, sdk.NewInt(100)), chainType.NewCoin(constants.ChainMainNameStr+"/"+"photon", sdk.NewInt(50)), chainType.NewCoin...
explode_data.jsonl/14268
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 579 }
[ 2830, 3393, 3564, 2183, 261, 1268, 1155, 353, 8840, 836, 8, 341, 28236, 11, 5635, 1669, 1855, 2271, 2164, 3576, 340, 197, 18861, 1669, 906, 38736, 2541, 77233, 741, 1444, 7628, 1669, 906, 20274, 66, 2822, 1903, 83923, 69602, 1669, 8781,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHasTable(t *testing.T) { type Foo struct { Id int Stuff string } DB.DropTable(&Foo{}) // Table should not exist at this point, HasTable should return false if ok := DB.HasTable("foos"); ok { t.Errorf("Table should not exist, but does") } if ok := DB.HasTable(&Foo{}); ok { t.Errorf("Table sho...
explode_data.jsonl/28037
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 271 }
[ 2830, 3393, 10281, 2556, 1155, 353, 8840, 836, 8, 341, 13158, 33428, 2036, 341, 197, 67211, 262, 526, 198, 197, 197, 86622, 914, 198, 197, 532, 45409, 58626, 2099, 40923, 6257, 692, 197, 322, 6633, 1265, 537, 3000, 518, 419, 1459, 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 TestMapProxy_PutAllWithNonSerializableMapValue(t *testing.T) { testMap := make(map[interface{}]interface{}, 0) testMap[5] = student{} err := mp.PutAll(testMap) AssertErrorNotNil(t, err, "putAll did not return an error for nonserializable map value") mp.Clear() }
explode_data.jsonl/57071
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 98 }
[ 2830, 3393, 2227, 16219, 1088, 332, 2403, 2354, 8121, 29268, 2227, 1130, 1155, 353, 8840, 836, 8, 341, 18185, 2227, 1669, 1281, 9147, 58, 4970, 78134, 4970, 22655, 220, 15, 340, 18185, 2227, 58, 20, 60, 284, 5458, 16094, 9859, 1669, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIntegration_ExternalInitiator(t *testing.T) { t.Parallel() rpcClient, gethClient, _, assertMockCalls := cltest.NewEthMocksWithStartupAssertions(t) defer assertMockCalls() app, cleanup := cltest.NewApplication(t, eth.NewClientWith(rpcClient, gethClient), services.NewExternalInitiatorManager(), ) defe...
explode_data.jsonl/75902
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 809 }
[ 2830, 3393, 52464, 62, 25913, 3803, 36122, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 7000, 3992, 2959, 11, 633, 71, 2959, 11, 8358, 2060, 11571, 55292, 1669, 1185, 1944, 7121, 65390, 11571, 16056, 39076, 90206, 1155, 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...
1
func TestLockWorks(t *testing.T) { dktesting.ParallelTest(t, specs, func(t *testing.T, c dktest.ContainerInfo) { ip, port, err := c.Port(defaultPort) if err != nil { t.Fatal(err) } addr := fmt.Sprintf("mysql://root:root@tcp(%v:%v)/public", ip, port) p := &Mysql{} d, err := p.Open(addr) if err != nil ...
explode_data.jsonl/47863
{ "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, 11989, 37683, 1155, 353, 8840, 836, 8, 341, 2698, 74, 8840, 41288, 7957, 2271, 1155, 11, 32247, 11, 2915, 1155, 353, 8840, 836, 11, 272, 40204, 1944, 33672, 1731, 8, 341, 197, 46531, 11, 2635, 11, 1848, 1669, 272, 43013, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMemHashPathSpec(t *testing.T) { assert := assert.New(t) s := types.String("hello") spec, err := ForPath("mem::#" + mustHash(s.Hash(types.Format_7_18)).String()) assert.NoError(err) defer spec.Close() assert.Equal("mem", spec.Protocol) assert.Equal("", spec.DatabaseName) assert.False(spec.Path.IsEmpt...
explode_data.jsonl/49588
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 196 }
[ 2830, 3393, 18816, 6370, 1820, 8327, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 1903, 1669, 4494, 6431, 445, 14990, 5130, 98100, 11, 1848, 1669, 1752, 1820, 445, 10536, 486, 55543, 488, 1969, 6370, 1141, 15103, 526...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLedgerBackup(t *testing.T) { ledgerid := "TestLedger" originalPath := "/tmp/fabric/ledgertests/kvledger1" restorePath := "/tmp/fabric/ledgertests/kvledger2" viper.Set("ledger.history.enableHistoryDatabase", true) // create and populate a ledger in the original environment env := createTestEnv(t, origina...
explode_data.jsonl/2822
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1658 }
[ 2830, 3393, 60850, 1389, 56245, 1155, 353, 8840, 836, 8, 341, 197, 50704, 307, 1669, 330, 2271, 60850, 1389, 698, 197, 9889, 1820, 1669, 3521, 5173, 6663, 28897, 14, 832, 70, 529, 17966, 14109, 85, 50704, 16, 698, 96027, 1820, 1669, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestOrderCount(t *testing.T) { setup() defer teardown() httpmock.RegisterResponder("GET", fmt.Sprintf("https://fooshop.myshopify.com/%s/orders/count.json", client.pathPrefix), httpmock.NewStringResponder(200, `{"count": 7}`)) params := map[string]string{"created_at_min": "2016-01-01T00:00:00Z"} httpmock.R...
explode_data.jsonl/17989
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 405 }
[ 2830, 3393, 4431, 2507, 1155, 353, 8840, 836, 8, 341, 84571, 741, 16867, 49304, 2822, 28080, 16712, 19983, 30884, 445, 3806, 497, 8879, 17305, 445, 2428, 1110, 824, 9267, 453, 12618, 8675, 1437, 905, 12627, 82, 82818, 81043, 4323, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func Test_StrArray_Basic(t *testing.T) { gtest.C(t, func(t *gtest.T) { expect := []string{"0", "1", "2", "3"} array := garray.NewStrArrayFrom(expect) array2 := garray.NewStrArrayFrom(expect, true) array3 := garray.NewStrArrayFrom([]string{}) t.Assert(array.Slice(), expect) t.Assert(array.Interfaces(), expe...
explode_data.jsonl/53080
{ "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, 46171, 1857, 1668, 5971, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 24952, 1669, 3056, 917, 4913, 15, 497, 330, 16, 497, 330, 17, 497, 330, 18, 16707, 197, 11923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPath(t *testing.T) { books := URL("https://example.com/books") book1 := books.Path("/1", "/2", "3") if books == book1 { t.Errorf("books and books1 should not be equal") } if books.URL != "https://example.com/books" { t.Error("books url is wrong") } want := "https://example.com/books/1/2/3" if b...
explode_data.jsonl/24752
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 163 }
[ 2830, 3393, 1820, 1155, 353, 8840, 836, 8, 341, 197, 12110, 1669, 5548, 445, 2428, 1110, 8687, 905, 71263, 1138, 197, 2190, 16, 1669, 6467, 17474, 4283, 16, 497, 3521, 17, 497, 330, 18, 5130, 743, 6467, 621, 2311, 16, 341, 197, 3244...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestBlockService_Online_Inline(t *testing.T) { cfg := &configuration.Configuration{ Mode: configuration.Online, } mockIndexer := &mocks.Indexer{} servicer := NewBlockAPIService(cfg, mockIndexer) ctx := context.Background() rawBlock := &types.Block{ BlockIdentifier: &types.BlockIdentifier{ Index: 100,...
explode_data.jsonl/24696
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 867 }
[ 2830, 3393, 4713, 1860, 62, 19598, 62, 25324, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 609, 21138, 17334, 515, 197, 197, 3636, 25, 6546, 8071, 1056, 345, 197, 532, 77333, 1552, 261, 1669, 609, 16712, 82, 18338, 261, 16094, 1903, 648...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRedis_List(t *testing.T) { runOnRedis(t, func(client *Redis) { _, err := NewRedis(client.Addr, "").Lpush("key", "value1", "value2") assert.NotNil(t, err) val, err := client.Lpush("key", "value1", "value2") assert.Nil(t, err) assert.Equal(t, 2, val) _, err = NewRedis(client.Addr, "").Rpush("key", "...
explode_data.jsonl/39169
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 913 }
[ 2830, 3393, 48137, 27104, 1155, 353, 8840, 836, 8, 341, 56742, 1925, 48137, 1155, 11, 2915, 12805, 353, 48137, 8, 341, 197, 197, 6878, 1848, 1669, 1532, 48137, 12805, 93626, 11, 35229, 43, 9077, 445, 792, 497, 330, 957, 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 TestGetHistoricCandlesExtended(t *testing.T) { currencyPair, err := currency.NewPairFromString("BTC-USD") if err != nil { t.Fatal(err) } startTime := time.Unix(1588636800, 0) _, err = o.GetHistoricCandlesExtended(currencyPair, asset.Spot, startTime, time.Now(), kline.OneMin) if err != nil { t.Fatal(err) ...
explode_data.jsonl/30210
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 195 }
[ 2830, 3393, 1949, 48983, 292, 34, 20125, 53190, 1155, 353, 8840, 836, 8, 341, 1444, 5088, 12443, 11, 1848, 1669, 11413, 7121, 12443, 44491, 445, 59118, 12, 26749, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestParseRepoRefParams(t *testing.T) { var testCases = []struct { name string wharfGroup string wharfProject string wantAzureOrg string wantAzureProject string wantAzureRepo string }{ { name: "old v1 format", wharfGroup: "Org", wharfProject: ...
explode_data.jsonl/70541
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 480 }
[ 2830, 3393, 14463, 25243, 3945, 4870, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 37302, 284, 3056, 1235, 341, 197, 11609, 1797, 914, 198, 197, 197, 1312, 59226, 2808, 981, 914, 198, 197, 197, 1312, 59226, 7849, 257, 914, 198, 197, 5078...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunPipeWithoutMainFunc(t *testing.T) { folder := testlib.Mktmp(t) writeMainWithoutMainFunc(t, folder) config := config.Project{ Builds: []config.Build{ { Binary: "no-main", Hooks: config.HookConfig{}, Targets: []string{ runtimeTarget, }, }, }, } ctx := context.New(config) ...
explode_data.jsonl/54150
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 562 }
[ 2830, 3393, 6727, 34077, 26040, 6202, 9626, 1155, 353, 8840, 836, 8, 341, 1166, 2018, 1669, 1273, 2740, 1321, 74, 5173, 1155, 340, 24945, 6202, 26040, 6202, 9626, 1155, 11, 8527, 340, 25873, 1669, 2193, 30944, 515, 197, 197, 11066, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue15613(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustQuery("select sec_to_time(1e-4)").Check(testkit.Rows("00:00:00.000100")) tk.MustQuery("select sec_to_time(1e-5)").Check(testkit.Rows("00:00:00.000010")) tk.MustQuery("select sec_...
explode_data.jsonl/65494
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 199 }
[ 2830, 3393, 42006, 16, 20, 21, 16, 18, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInputService8ProtocolTestTimestampValuesCase1(t *testing.T) { svc := NewInputService8ProtocolTest(nil) svc.Endpoint = "https://test" input := &InputService8TestShapeInputShape{ TimeArg: aws.Time(time.Unix(1422172800, 0)), } req, _ := svc.InputService8TestCaseOperation1Request(input) r := req.HTTPReque...
explode_data.jsonl/53208
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 272 }
[ 2830, 3393, 2505, 1860, 23, 20689, 2271, 20812, 6227, 4207, 16, 1155, 353, 8840, 836, 8, 341, 1903, 7362, 1669, 1532, 2505, 1860, 23, 20689, 2271, 27907, 340, 1903, 7362, 90409, 284, 330, 2428, 1110, 1944, 1837, 22427, 1669, 609, 2505, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoveCredential(t *testing.T) { sp := &mockStreamProvider{credentialOfDesiredType: config.SDKKey("")} store := makeMockStore(nil, nil) es := NewEnvStreams([]StreamProvider{sp}, store, 0, ldlog.NewDisabledLoggers()) defer es.Close() sdkKey1, sdkKey2 := config.SDKKey("sdk-key1"), config.SDKKey("sdk-key2"...
explode_data.jsonl/69846
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 305 }
[ 2830, 3393, 13021, 48265, 1155, 353, 8840, 836, 8, 341, 41378, 1669, 609, 16712, 3027, 5179, 90, 66799, 2124, 4896, 2690, 929, 25, 2193, 46822, 1592, 39047, 630, 57279, 1669, 1281, 11571, 6093, 27907, 11, 2092, 340, 78966, 1669, 1532, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_traps(t *testing.T) { type args struct { height []int } tests := []struct { name string args args want int }{ { "test 1", args{ []int{4, 2, 0, 3, 2, 5}, }, 9, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := trap(tt.args.height); got != tt.wa...
explode_data.jsonl/52733
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 3547, 2625, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 30500, 3056, 396, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 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...
2
func TestBranchProtectionRelease(t *testing.T) { actual := readConfig(t) for _, currentRelease := range releases.GetAllKymaReleases() { relBranch := currentRelease.Branch() t.Run("repository kyma, branch "+relBranch, func(t *testing.T) { p, err := actual.GetBranchProtection("kyma-project", "kyma", relBranch, ...
explode_data.jsonl/46217
{ "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, 18197, 78998, 16077, 1155, 353, 8840, 836, 8, 341, 88814, 1669, 1349, 2648, 1155, 692, 2023, 8358, 1482, 16077, 1669, 2088, 19232, 45732, 42, 1600, 64, 693, 28299, 368, 341, 197, 197, 3748, 18197, 1669, 1482, 16077, 97249, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetProxyConn(t *testing.T) { poolOnce = sync.Once{} redisClientOptions := ClientOptions{} redisClent := NewClient( redisClientOptions.WithProxy( func() interface{} { monitorProxyOptions := MonitorProxyOptions{} return NewMonitorProxy( monitorProxyOptions.WithLogger(log.NewLogger()), ) ...
explode_data.jsonl/59702
{ "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, 1949, 16219, 9701, 1155, 353, 8840, 836, 8, 341, 85273, 12522, 284, 12811, 77946, 16094, 197, 21748, 2959, 3798, 1669, 8423, 3798, 16094, 197, 21748, 5066, 306, 1669, 1532, 2959, 1006, 197, 197, 21748, 2959, 3798, 26124, 16219...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateMetric(t *testing.T) { ctx := context.Background() metric := &Metric{ ID: ltesting.UniqueID(testMetricIDPrefix), Description: "DESC", Filter: "FILTER", } // Updating a non-existent metric creates a new one. if err := client.UpdateMetric(ctx, metric); err != nil { t.Fatal(err) ...
explode_data.jsonl/25534
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 365 }
[ 2830, 3393, 4289, 54310, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 2109, 16340, 1669, 609, 54310, 515, 197, 29580, 25, 688, 326, 8840, 87443, 915, 8623, 54310, 915, 14335, 1326, 197, 47414, 25, 330, 30910, 756, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestPopulateSecretsAsEnvOnlySSM(t *testing.T) { secret1 := apicontainer.Secret{ Provider: "asm", Name: "secret1", Region: "us-west-2", Type: "MOUNT_POINT", ValueFrom: "arn:aws:secretsmanager:us-west-2:11111:secret:/test/secretName", } secret2 := apicontainer.Secret{ Provider: "asm", ...
explode_data.jsonl/37250
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 725 }
[ 2830, 3393, 11598, 6334, 19773, 82, 2121, 14359, 7308, 1220, 44, 1155, 353, 8840, 836, 8, 341, 197, 20474, 16, 1669, 1443, 51160, 1743, 74779, 515, 197, 197, 5179, 25, 220, 330, 10530, 756, 197, 21297, 25, 414, 330, 20474, 16, 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...
1
func TestMarshal_roundtripFromDoc(t *testing.T) { before := D{ {"foo", "bar"}, {"baz", int64(-27)}, {"bing", A{nil, primitive.Regex{Pattern: "word", Options: "i"}}}, } b, err := Marshal(before) require.NoError(t, err) var after D require.NoError(t, Unmarshal(b, &after)) if !cmp.Equal(after, before) { ...
explode_data.jsonl/12831
{ "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, 55438, 29896, 32981, 3830, 9550, 1155, 353, 8840, 836, 8, 341, 63234, 1669, 422, 515, 197, 197, 4913, 7975, 497, 330, 2257, 7115, 197, 197, 4913, 42573, 497, 526, 21, 19, 4080, 17, 22, 39781, 197, 197, 4913, 7132, 497, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMuxerDuplicate(t *testing.T) { _, err := MuxerConstructor(func(_ peer.ID, _ peer.ID) mux.Transport { return nil }) if err != nil { t.Fatal(err) } }
explode_data.jsonl/23664
{ "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, 44, 2200, 261, 53979, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 386, 2200, 261, 13288, 18552, 2490, 14397, 9910, 11, 716, 14397, 9910, 8, 59807, 87669, 314, 470, 2092, 2751, 743, 1848, 961, 2092, 341, 197, 3244,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestInjector_Inject(t *testing.T) { // Create our injector injector := NewInjector() // Provided without name. Resolved through the type. If a type is provided again then the old is overwritten. injector.Provide(depA{prefix: "A"}, depB{prefix: "B"}) // Provided with name. Duplicate types allowed. injector....
explode_data.jsonl/41768
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 332 }
[ 2830, 3393, 61836, 62, 13738, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 1039, 62643, 198, 17430, 583, 269, 1669, 1532, 61836, 2822, 197, 322, 53874, 2041, 829, 13, 1800, 8731, 1526, 279, 943, 13, 1416, 264, 943, 374, 3897, 1549, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClient_testCleanup(t *testing.T) { // Create a temporary dir to store the result file td, err := ioutil.TempDir("", "plugin") if err != nil { t.Fatalf("err: %s", err) } defer os.RemoveAll(td) // Create a path that the helper process will write on cleanup path := filepath.Join(td, "output") // Test ...
explode_data.jsonl/57834
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 294 }
[ 2830, 3393, 2959, 4452, 67335, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 264, 13340, 5419, 311, 3553, 279, 1102, 1034, 198, 76373, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 9138, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 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...
4
func TestScannerTiming(t *testing.T) { defer leaktest.AfterTest(t)() const count = 3 const runTime = 100 * time.Millisecond const maxError = 7500 * time.Microsecond durations := []time.Duration{ 15 * time.Millisecond, 25 * time.Millisecond, } for i, duration := range durations { testutils.SucceedsSoon(t, f...
explode_data.jsonl/78117
{ "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, 31002, 62805, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 4777, 1760, 284, 220, 18, 198, 4777, 1598, 1462, 284, 220, 16, 15, 15, 353, 882, 71482, 198, 4777, 1932, 1454, 284, 220, 22, 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...
3
func TestStreamWriter3(t *testing.T) { normalModeOpts := DefaultOptions managedModeOpts := DefaultOptions managedModeOpts.managedTxns = true for _, opts := range []*Options{&normalModeOpts, &managedModeOpts} { runBadgerTest(t, opts, func(t *testing.T, db *DB) { // write entries using stream writer noOfKeys...
explode_data.jsonl/17981
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 995 }
[ 2830, 3393, 93031, 18, 1155, 353, 8840, 836, 8, 341, 197, 8252, 3636, 43451, 1669, 7899, 3798, 198, 197, 25270, 3636, 43451, 1669, 7899, 3798, 198, 197, 25270, 3636, 43451, 99052, 31584, 4412, 284, 830, 271, 2023, 8358, 12185, 1669, 208...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ORM_CreateManagerService(t *testing.T) { t.Parallel() store, cleanup := cltest.NewStore(t) t.Cleanup(cleanup) orm := feeds.NewORM(store.DB) mgr := &feeds.FeedsManager{ URI: uri, Name: name, PublicKey: publicKey, JobTypes: jobTypes, Network: network, } count, err := orm.Count...
explode_data.jsonl/71708
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 255 }
[ 2830, 3393, 62, 4365, 34325, 2043, 1860, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 57279, 11, 21290, 1669, 1185, 1944, 7121, 6093, 1155, 340, 3244, 727, 60639, 1337, 60639, 692, 197, 493, 1669, 34396, 7121, 4365, 31200, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPublishVolume(t *testing.T) { // Boilerplate mocking code mockCtrl := gomock.NewController(t) // Set fake values backendUUID := "1234" // Create mocked backend that returns the expected object mockBackend := mockstorage.NewMockBackend(mockCtrl) mockBackend.EXPECT().PublishVolume(gomock.Any(), gomock.A...
explode_data.jsonl/62767
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 431 }
[ 2830, 3393, 50145, 18902, 1155, 353, 8840, 836, 8, 341, 197, 322, 45665, 1750, 66483, 2038, 198, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 692, 197, 322, 2573, 12418, 2750, 198, 197, 20942, 24754, 1669, 330, 16, 17, 18, 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 TestWrongMSPID(t *testing.T) { localConfig := proto.Clone(insecureConfig).(*cb.Config) policyName := "foo" localConfig.ChannelGroup.Groups[channelconfig.OrdererGroupKey].Policies[policyName] = &cb.ConfigPolicy{ Policy: &cb.Policy{ Type: int32(cb.Policy_SIGNATURE), Value: utils.MarshalOrPanic(cauthdsl.S...
explode_data.jsonl/4591
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 255 }
[ 2830, 3393, 29185, 44, 4592, 915, 1155, 353, 8840, 836, 8, 341, 8854, 2648, 1669, 18433, 64463, 5900, 25132, 2648, 568, 4071, 7221, 10753, 340, 3223, 8018, 675, 1669, 330, 7975, 698, 8854, 2648, 38716, 2808, 59800, 69324, 1676, 19664, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSchemaParser_SimpleFieldWithListArg(t *testing.T) { body := ` type Hello { world(things: [String]): String }` astDoc := parse(t, body) expected := &ast.Document{ Loc: testLoc(1, 49), Definitions: []ast.Node{ &ast.ObjectDefinition{ Loc: testLoc(1, 49), Name: &ast.Name{ Value: "Hello", ...
explode_data.jsonl/51227
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 720 }
[ 2830, 3393, 8632, 6570, 1098, 6456, 1877, 2354, 852, 2735, 1155, 353, 8840, 836, 8, 341, 35402, 1669, 22074, 1313, 21927, 341, 220, 1879, 24365, 819, 25, 508, 703, 24320, 923, 198, 31257, 88836, 9550, 1669, 4715, 1155, 11, 2487, 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...
2
func TestFunctionsWithAliases(t *testing.T) { cryptoProvider, err := sw.NewDefaultSecurityLevelWithKeystore(sw.NewDummyKeyStore()) require.NoError(t, err) scc := &SCC{ BuiltinSCCs: map[string]struct{}{"lscc": {}}, Support: &MockSupport{}, ACLProvider: mockAclProvider, GetMSPIDs: get...
explode_data.jsonl/11792
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1086 }
[ 2830, 3393, 5152, 16056, 95209, 1155, 353, 8840, 836, 8, 341, 1444, 9444, 5179, 11, 1848, 1669, 2021, 7121, 3675, 15352, 4449, 2354, 6608, 63373, 58902, 7121, 43344, 1592, 6093, 2398, 17957, 35699, 1155, 11, 1848, 340, 1903, 638, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLeftSplit(t *testing.T) { left, right := splitData(collegeData, 0, 25) for _, point := range left { if point.Values[0] >= 25 { t.Fail() } if len(left) != 3 { t.Fail() } } for _, point := range right { if point.Values[0] < 25 { t.Fail() } if len(right) != 7 { t.Fail() } } }
explode_data.jsonl/10540
{ "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, 5415, 20193, 1155, 353, 8840, 836, 8, 341, 35257, 11, 1290, 1669, 6718, 1043, 19611, 4757, 1043, 11, 220, 15, 11, 220, 17, 20, 340, 2023, 8358, 1459, 1669, 2088, 2115, 341, 197, 743, 1459, 35145, 58, 15, 60, 2604, 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...
7
func TestGenerateCaptchaJWT(t *testing.T) { g := initTestGoogleCaptcha(t) tests := []struct { name string testFunc func() }{ { name: "test normal generation", testFunc: func() { w := httptest.NewRecorder() err := g.GenerateCaptchaJWT(w) require.Nil(t, err) resp := w.Result() defe...
explode_data.jsonl/60457
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 277 }
[ 2830, 3393, 31115, 34, 25431, 55172, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 2930, 2271, 14444, 34, 25431, 1155, 340, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 18185, 9626, 2915, 741, 197, 59403, 197, 197, 515, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMapGetNextID(t *testing.T) { testutils.SkipOnOldKernel(t, "4.13", "bpf_map_get_next_id") var next MapID var err error hash := createHash() defer hash.Close() if next, err = MapGetNextID(MapID(0)); err != nil { t.Fatal("Can't get next ID:", err) } if next == MapID(0) { t.Fatal("Expected next ID ot...
explode_data.jsonl/21676
{ "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, 2227, 1949, 5847, 915, 1155, 353, 8840, 836, 8, 341, 18185, 6031, 57776, 1925, 18284, 26343, 1155, 11, 330, 19, 13, 16, 18, 497, 330, 65, 15897, 5376, 3062, 11257, 842, 1138, 2405, 1790, 5027, 915, 198, 2405, 1848, 1465, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTHeaderProtocolIDPtrMustPanic(t *testing.T) { var invalidProtoID = THeaderProtocolID(-1) if invalidProtoID.Validate() == nil { t.Fatalf("Expected %v to be an invalid THeaderProtocolID, it passes the validation", invalidProtoID) } defer func() { if recovered := recover(); recovered == nil { t.Error(...
explode_data.jsonl/9729
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 51, 4047, 20689, 915, 5348, 31776, 47, 31270, 1155, 353, 8840, 836, 8, 341, 2405, 8318, 31549, 915, 284, 350, 4047, 20689, 915, 4080, 16, 340, 743, 8318, 31549, 915, 47667, 368, 621, 2092, 341, 197, 3244, 30762, 445, 18896...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMysqlConnLimit(t *testing.T) { requireMysqlVars(t) cfg := mysql.Config{ User: *mysqlUser, Passwd: *mysqlPass, DBName: *mysqlDb, AllowNativePasswords: true, } proxyConnLimitTest(t, *mysqlConnName, "mysql", cfg.FormatDSN(), mysqlPort) }
explode_data.jsonl/47452
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 154 }
[ 2830, 3393, 44, 14869, 9701, 16527, 1155, 353, 8840, 836, 8, 341, 17957, 44, 14869, 28305, 1155, 340, 50286, 1669, 10564, 10753, 515, 197, 31672, 25, 338, 353, 12272, 1474, 345, 197, 10025, 395, 6377, 25, 2290, 353, 12272, 12187, 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 TestApplicationRegistryJobPostsubmit(t *testing.T) { // WHEN jobConfig, err := tester.ReadJobConfig("./../../../../prow/jobs/kyma/components/application-registry/application-registry.yaml") // THEN require.NoError(t, err) assert.Len(t, jobConfig.Postsubmits, 1) kymaPost, ex := jobConfig.Postsubmits["kyma-pr...
explode_data.jsonl/39032
{ "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, 4988, 15603, 12245, 4133, 5955, 1155, 353, 8840, 836, 8, 341, 197, 322, 33633, 198, 68577, 2648, 11, 1848, 1669, 37111, 6503, 12245, 2648, 13988, 84257, 79, 651, 4437, 5481, 14109, 1600, 64, 20261, 33032, 12, 29172, 33032, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCustomerManager(t *testing.T) { const ( //fill your data here sk = "" cc = "" someAvailableUsername = "" ) //and here var ( testingCustomer = &CustomerRequest{ CompanyName: "", Username: "", Password: "", } ctx = context.Background() ) c...
explode_data.jsonl/66214
{ "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, 12792, 2043, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 197, 322, 7559, 697, 821, 1588, 198, 197, 1903, 74, 503, 284, 8389, 197, 63517, 503, 284, 8389, 197, 1903, 635, 16485, 11115, 284, 8389, 197, 340, 197, 322, 437...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRTCPReceiverReorderedPackets(t *testing.T) { v := uint32(0x65f83afb) rr := New(&v, 90000) srPkt := rtcp.SenderReport{ SSRC: 0xba9da416, NTPTime: 0xe363887a17ced916, RTPTime: 1287981738, PacketCount: 714, OctetCount: 859127, } ts := time.Date(2008, 0o5, 20, 22, 15, 20, 0, time.UT...
explode_data.jsonl/72793
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 774 }
[ 2830, 3393, 5350, 7123, 25436, 693, 10544, 47, 18382, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 2622, 18, 17, 7, 15, 87, 21, 20, 69, 23, 18, 96834, 340, 197, 634, 1669, 1532, 2099, 85, 11, 220, 24, 15, 15, 15, 15, 692, 1903, 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 TestDockerLogger_Success(t *testing.T) { ctu.DockerCompatible(t) t.Parallel() require := require.New(t) containerImage, containerImageName, containerImageTag := testContainerDetails() client, err := docker.NewClientFromEnv() if err != nil { t.Skip("docker unavailable:", err) } if img, err := client.I...
explode_data.jsonl/76333
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 747 }
[ 2830, 3393, 35, 13659, 7395, 87161, 1155, 353, 8840, 836, 8, 341, 89216, 84, 909, 13659, 29161, 1155, 692, 3244, 41288, 7957, 741, 17957, 1669, 1373, 7121, 1155, 692, 53290, 1906, 11, 5476, 1906, 675, 11, 5476, 1906, 5668, 1669, 1273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDefaultClientset(t *testing.T) { c, err := New(zap.NewNop(), k8sconfig.APIConfig{}, ExtractionRules{}, Filters{}, []Association{}, Excludes{}, nil, nil, nil) assert.Error(t, err) assert.Equal(t, "invalid authType for kubernetes: ", err.Error()) assert.Nil(t, c) c, err = New(zap.NewNop(), k8sconfig.APICon...
explode_data.jsonl/56837
{ "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, 3675, 2959, 746, 1155, 353, 8840, 836, 8, 341, 1444, 11, 1848, 1669, 1532, 13174, 391, 7121, 45, 453, 1507, 595, 23, 82, 1676, 24922, 2648, 22655, 94506, 26008, 22655, 45012, 22655, 3056, 63461, 22655, 1374, 7396, 22655, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReconcile_CloudEvents(t *testing.T) { names.TestingSeed() prs := []*v1beta1.PipelineRun{ parse.MustParsePipelineRun(t, ` metadata: name: test-pipelinerun namespace: foo selfLink: /pipeline/1234 spec: pipelineRef: name: test-pipeline `), } ps := []*v1beta1.Pipeline{ parse.MustParsePipeline(...
explode_data.jsonl/27327
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 922 }
[ 2830, 3393, 693, 40446, 457, 920, 52178, 7900, 1155, 353, 8840, 836, 8, 341, 93940, 8787, 287, 41471, 2822, 25653, 82, 1669, 29838, 85, 16, 19127, 16, 1069, 8790, 6727, 515, 197, 75115, 50463, 14463, 34656, 6727, 1155, 11, 22074, 17637,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCancelParallelQuery(t *testing.T) { defer leaktest.AfterTest(t)() const queryToBlock = "INSERT INTO nums VALUES (1) RETURNING NOTHING;" const queryToCancel = "INSERT INTO nums2 VALUES (2) RETURNING NOTHING;" const sqlToRun = "BEGIN TRANSACTION; " + queryToBlock + queryToCancel + " COMMIT;" // conn1 is us...
explode_data.jsonl/54859
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1242 }
[ 2830, 3393, 9269, 16547, 2859, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 4777, 3239, 1249, 4713, 284, 330, 12698, 12496, 10307, 14710, 320, 16, 8, 30880, 1718, 86081, 41655, 4777, 3239, 1249, 9269, 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...
2
func TestEDSServiceResolutionUpdate(t *testing.T) { s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{}) addEdsCluster(s, "edsdns.svc.cluster.local", "http", "10.0.0.53", 8080) addEdsCluster(s, "other.local", "http", "1.1.1.1", 8080) adscConn := s.Connect(nil, nil, watchAll) // Validate that endpoints are pushe...
explode_data.jsonl/7951
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 354 }
[ 2830, 3393, 1479, 1220, 1017, 38106, 4289, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 856, 5356, 7121, 52317, 67400, 5475, 1155, 11, 856, 5356, 991, 726, 3798, 37790, 12718, 2715, 82, 28678, 1141, 11, 330, 6767, 45226, 514, 7362, 40501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRobotStartAutoRun(t *testing.T) { adaptor1 := newTestAdaptor("Connection1", "/dev/null") driver1 := newTestDriver(adaptor1, "Device1", "0") //work := func() {} r := NewRobot("autorun", []Connection{adaptor1}, []Device{driver1}, //work, ) go func() { gobottest.Assert(t, r.Start(), nil) }() tim...
explode_data.jsonl/24445
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 198 }
[ 2830, 3393, 43374, 3479, 13253, 6727, 1155, 353, 8840, 836, 8, 341, 98780, 32657, 16, 1669, 501, 2271, 2589, 32657, 445, 4526, 16, 497, 3521, 3583, 19293, 1138, 33652, 16, 1669, 501, 2271, 11349, 43779, 32657, 16, 11, 330, 6985, 16, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAssumeRole(t *testing.T) { creds := &sts.Credentials{ AccessKeyId: aws.String("foo"), SecretAccessKey: aws.String("bar"), SessionToken: aws.String("my-token"), } cases := []struct { name string ambient bool role string expErr bool expCreds *sts.Credentials expRegion ...
explode_data.jsonl/65006
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1439 }
[ 2830, 3393, 5615, 3885, 9030, 1155, 353, 8840, 836, 8, 341, 197, 85734, 1669, 609, 36279, 727, 15735, 515, 197, 197, 6054, 81343, 25, 257, 31521, 6431, 445, 7975, 4461, 197, 7568, 50856, 6054, 1592, 25, 31521, 6431, 445, 2257, 4461, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSubOperationExecution(t *testing.T) { // ARRANGE cdata := map[uint64]map[string][]byte{ subOperationRootID: {"subOperationRootID": []byte(`{"title":"title_1","content":"hello world"}`)}, } inContainers := []*Container{{Data: cdata[subOperationRootID], ID: subOperationRootID}} _, runner, output, input, t...
explode_data.jsonl/33797
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 690 }
[ 2830, 3393, 3136, 8432, 20294, 1155, 353, 8840, 836, 8, 341, 197, 322, 82079, 11503, 198, 1444, 691, 1669, 2415, 58, 2496, 21, 19, 60, 2186, 14032, 45725, 3782, 515, 197, 28624, 8432, 8439, 915, 25, 5212, 1966, 8432, 8439, 915, 788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestRejectOldCluster(t *testing.T) { defer testutil.AfterTest(t) // 2 endpoints to test multi-endpoint Status clus := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 2, SkipCreatingClient: true}) defer clus.Terminate(t) cfg := clientv3.Config{ Endpoints: []string{clus.Members[0].GRPCAdd...
explode_data.jsonl/30356
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 232 }
[ 2830, 3393, 78413, 18284, 28678, 1155, 353, 8840, 836, 8, 341, 16867, 1273, 1314, 36892, 2271, 1155, 340, 197, 322, 220, 17, 36342, 311, 1273, 7299, 13068, 2768, 8104, 198, 197, 4163, 1669, 17590, 7121, 28678, 53, 18, 1155, 11, 609, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestFileLogrotate(t *testing.T) { dir, err := ioutil.TempDir("", "tlog_rotate_") if err != nil { t.Fatalf("create tmp dir: %v", err) } defer func() { if !t.Failed() { os.RemoveAll(dir) return } t.Logf("dir: %v", dir) }() fname := fmt.Sprintf("file.%d.log", os.Getpid()) f := CreateLogrotate(...
explode_data.jsonl/3486
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 616 }
[ 2830, 3393, 1703, 2201, 16213, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 83, 839, 60834, 62, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 3182, 4174, 5419, 25, 1018, 85, 497, 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 TestEndpointTemplateMalformed(t *testing.T) { _, buildErr := Builder(openrtb_ext.BidderTappx, config.Adapter{ Endpoint: "{{Malformed}}"}) assert.Error(t, buildErr) }
explode_data.jsonl/51704
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 27380, 7275, 29600, 10155, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1936, 7747, 1669, 20626, 30981, 3342, 65, 9927, 1785, 307, 1107, 51, 676, 87, 11, 2193, 34190, 515, 197, 197, 27380, 25, 47219, 29600, 10155, 23386, 8824, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMocker_CreateWebhook(t *testing.T) { t.Run("success", func(t *testing.T) { m, s := NewSession(t) data := api.CreateWebhookData{Name: "abc"} expect := discord.Webhook{ ID: 123, Name: "abc", ChannelID: 456, User: discord.User{ID: 789}, } m.CreateWebhook(data, expect) ...
explode_data.jsonl/49374
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 430 }
[ 2830, 3393, 11571, 261, 34325, 5981, 20873, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5630, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 2109, 11, 274, 1669, 1532, 5283, 1155, 692, 197, 8924, 1669, 6330, 7251, 5981, 20873, 1043...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_NewFile(t *testing.T) { file, err := os.Create("/tmp/file") if err != nil { log.Println(err) } defer file.Close() fileDl, err := NewFileDl("https://d10.baidupcs.com/file/c98e49c3a3b477332c34cc23ebc88fd7?bkt=p3-1400c98e49c3a3b477332c34cc23ebc88fd7b6fedaef000000341e00&xcode=2d2e45fa551b13775d7ceaea994bf...
explode_data.jsonl/63469
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1232 }
[ 2830, 3393, 39582, 1703, 1155, 353, 8840, 836, 8, 341, 17661, 11, 1848, 1669, 2643, 7251, 4283, 5173, 23903, 1138, 743, 1848, 961, 2092, 341, 197, 6725, 12419, 3964, 340, 197, 532, 16867, 1034, 10421, 2822, 17661, 35, 75, 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...
4
func TestAddMemberAfterClusterFullRotation(t *testing.T) { defer testutil.AfterTest(t) c := NewCluster(t, 3) c.Launch(t) defer c.Terminate(t) // remove all the previous three members and add in three new members. for i := 0; i < 3; i++ { c.RemoveMember(t, uint64(c.Members[0].s.ID())) c.waitLeader(t, c.Member...
explode_data.jsonl/16298
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 2212, 9366, 6025, 28678, 9432, 18440, 1155, 353, 8840, 836, 8, 341, 16867, 1273, 1314, 36892, 2271, 1155, 340, 1444, 1669, 1532, 28678, 1155, 11, 220, 18, 340, 1444, 1214, 18423, 1155, 340, 16867, 272, 836, 261, 34016, 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 TestMarshalProof(t *testing.T) { for _, test := range []struct { desc string p log.Proof want string }{ { desc: "valid", p: log.Proof{ []byte("one"), []byte("two"), []byte("three"), }, want: "b25l\ndHdv\ndGhyZWU=\n", }, { desc: "valid empty", p: log.Proof{}, want: "", }...
explode_data.jsonl/61513
{ "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, 55438, 31076, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 41653, 914, 198, 197, 3223, 262, 1487, 7763, 1055, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 515, 298, 41653, 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...
2
func TestBrokenFile(t *testing.T) { // Test write file with broken file struct. f := File{} t.Run("SaveWithoutName", func(t *testing.T) { assert.EqualError(t, f.Save(), "no path defined for file, consider File.WriteTo or File.Write") }) t.Run("SaveAsEmptyStruct", func(t *testing.T) { // Test write file with ...
explode_data.jsonl/36959
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 392 }
[ 2830, 3393, 90526, 1703, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 3270, 1034, 448, 10865, 1034, 2036, 624, 1166, 1669, 2887, 31483, 3244, 16708, 445, 8784, 26040, 675, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 6948, 12808, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDdlErrors(t *testing.T) { var err error if err = DB.Close(); err != nil { t.Errorf("Closing DDL test db connection err=%s", err) } defer func() { // Reopen DB connection. if DB, err = OpenTestConnection(); err != nil { t.Fatalf("Failed re-opening db connection: %s", err) } }() if err := DB.F...
explode_data.jsonl/28064
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 167 }
[ 2830, 3393, 35, 8736, 13877, 1155, 353, 8840, 836, 8, 341, 2405, 1848, 1465, 271, 743, 1848, 284, 5952, 10421, 2129, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 36294, 422, 16524, 1273, 2927, 3633, 1848, 7846, 82, 497, 1848, 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...
2
func TestReconcileWithDifferentServiceAccounts(t *testing.T) { names.TestingSeed() ps := []*v1beta1.Pipeline{{ ObjectMeta: baseObjectMeta("test-pipeline", "foo"), Spec: v1beta1.PipelineSpec{ Tasks: []v1beta1.PipelineTask{ { Name: "hello-world-0", TaskRef: &v1beta1.TaskRef{ Name: "hello-wor...
explode_data.jsonl/68277
{ "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, 693, 40446, 457, 2354, 69123, 1860, 41369, 1155, 353, 8840, 836, 8, 341, 93940, 8787, 287, 41471, 2822, 35009, 1669, 29838, 85, 16, 19127, 16, 1069, 8790, 90, 515, 197, 23816, 12175, 25, 2331, 1190, 12175, 445, 1944, 2268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunnerError(t *testing.T) { store := NewMockStoreIface() ticker := glock.NewMockTicker(time.Second) refreshTicker := glock.NewMockTicker(time.Second * 30) store.ListFunc.SetDefaultReturn([]Migration{ {ID: 1, Progress: 0.5}, }, nil) runner := newRunner(store, refreshTicker, &observation.TestContext) ...
explode_data.jsonl/11530
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 419 }
[ 2830, 3393, 19486, 1454, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 1532, 11571, 6093, 40, 1564, 741, 3244, 5215, 1669, 342, 1023, 7121, 11571, 87278, 9730, 32435, 340, 197, 17168, 87278, 1669, 342, 1023, 7121, 11571, 87278, 9730, 32435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNodeInfoAddChannel(t *testing.T) { nodeInfo := testNodeInfo(t, testNodeID(), "testing") nodeInfo.Channels = []byte{} require.Empty(t, nodeInfo.Channels) nodeInfo.AddChannel(2) require.Contains(t, nodeInfo.Channels, byte(0x02)) // adding the same channel again shouldn't be a problem nodeInfo.AddChannel...
explode_data.jsonl/14844
{ "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, 1955, 1731, 2212, 9629, 1155, 353, 8840, 836, 8, 341, 20831, 1731, 1669, 1273, 1955, 1731, 1155, 11, 1273, 1955, 915, 1507, 330, 8840, 1138, 20831, 1731, 6353, 6680, 284, 3056, 3782, 16094, 17957, 11180, 1155, 11, 2436, 1731...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLocalizeDefaultMessage(t *testing.T) { t.Run("fine", func(t *testing.T) { api := &plugintest.API{} p := setupTestPlugin(t, api, &mockstore.Store{}) l := p.getServerLocalizer() m := &i18n.Message{ Other: "test message", } assert.Equal(t, m.Other, p.LocalizeDefaultMessage(l, m)) }) t.Run("emp...
explode_data.jsonl/8756
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 251 }
[ 2830, 3393, 7319, 551, 3675, 2052, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 62057, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 54299, 1669, 609, 47474, 396, 477, 24922, 31483, 197, 3223, 1669, 6505, 2271, 11546, 1155, 11, 633...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValueWrite(t *testing.T) { writer := inspect.NewInspector(new(inspect.TextWriteInspector[json.Writer])) value := defaultIntValue var buffer bytes.Buffer writer.SetWriter(&buffer, 10) value.Inspect(writer) expected := strconv.Itoa(int(defaultIntValue)) writer.Flush() result := string(buffer.Bytes()) if...
explode_data.jsonl/54479
{ "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, 1130, 7985, 1155, 353, 8840, 836, 8, 341, 38959, 1669, 24085, 7121, 46230, 1755, 56337, 987, 1979, 7985, 46230, 58, 2236, 47838, 10907, 16309, 1669, 1638, 1072, 1130, 198, 2405, 4147, 5820, 22622, 198, 38959, 4202, 6492, 2099,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResolveIdentifyImplicitTeamWithIdentifyFailures(t *testing.T) { tt := newTeamTester(t) defer tt.cleanup() tt.addUser("abc") g := tt.users[0].tc.G tt.addUser("wong") wong := tt.users[1] iTeamNameCreate := strings.Join([]string{tt.users[0].username, wong.username}, ",") t.Logf("make an implicit team"...
explode_data.jsonl/42664
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1571 }
[ 2830, 3393, 56808, 28301, 1437, 59558, 14597, 2354, 28301, 1437, 19524, 1413, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 501, 14597, 58699, 1155, 340, 16867, 17853, 87689, 2822, 3244, 83, 1364, 1474, 445, 13683, 1138, 3174, 1669, 17853...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetGroupProjects(t *testing.T) { projectID1, err := dao.AddProject(models.Project{ Name: "grouptest01", OwnerID: 1, }) if err != nil { t.Errorf("Error occurred when AddProject: %v", err) } defer dao.DeleteProject(projectID1) projectID2, err := dao.AddProject(models.Project{ Name: "grouptest...
explode_data.jsonl/73820
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 894 }
[ 2830, 3393, 1949, 2808, 29958, 1155, 353, 8840, 836, 8, 341, 72470, 915, 16, 11, 1848, 1669, 24775, 1904, 7849, 20289, 30944, 515, 197, 21297, 25, 262, 330, 70, 581, 70334, 15, 16, 756, 197, 197, 13801, 915, 25, 220, 16, 345, 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 TestGetChannelStateChannelNotFound(t *testing.T) { channelId := big.NewInt(42) stateServiceTest.channelServiceMock.Clear() reply, err := stateServiceTest.service.GetChannelState( nil, &ChannelStateRequest{ ChannelId: bigIntToBytes(channelId), Signature: getSignature(bigIntToBytes(channelId), stateSer...
explode_data.jsonl/6075
{ "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, 1949, 9629, 1397, 9629, 10372, 1155, 353, 8840, 836, 8, 341, 71550, 764, 1669, 2409, 7121, 1072, 7, 19, 17, 340, 24291, 1860, 2271, 16195, 1860, 11571, 13524, 2822, 86149, 11, 1848, 1669, 1584, 1860, 2271, 5736, 2234, 9629, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRecvTimeout(t *testing.T) { p := newTestPeer() msg, err := RecvTimeout(p, time.Millisecond) if err == nil { t.Fatal("Expected timeout error") } go func() { p.Send(&Hello{}) }() msg, err = RecvTimeout(p, time.Millisecond) if err != nil || msg == nil { t.Fatal("Failed to recv message") } p.Clos...
explode_data.jsonl/18474
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 192 }
[ 2830, 3393, 63483, 7636, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 501, 2271, 30888, 741, 21169, 11, 1848, 1669, 4067, 85, 7636, 1295, 11, 882, 71482, 340, 743, 1848, 621, 2092, 341, 197, 3244, 26133, 445, 18896, 9632, 1465, 1138, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUnescape(t *testing.T) { tests := []struct { name string in string want string }{ {"string that needs no escaping", "lorem ipsum", "lorem ipsum"}, {"escaped with backslash", "lorem\\ ipsum", "lorem ipsum"}, {"escaped with quotes", "'lorem ipsum'", "lorem ipsum"}, {"backslash within quotes", "...
explode_data.jsonl/11003
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 332 }
[ 2830, 3393, 1806, 12998, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 17430, 256, 914, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 4913, 917, 429, 3880, 902, 52654, 497, 330, 385, 1826, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLRUCapacityBytes(t *testing.T) { require := require.New(t) const cacheSize = 5 cache, err := New( Capacity(uint64(cacheSize*sha256.Size), true), ) require.NoError(err, "New") entries := makeEntries(cacheSize) for _, ent := range entries { err = cache.Put(ent.key, ent) require.NoError(err, "Put"...
explode_data.jsonl/69519
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 274 }
[ 2830, 3393, 20117, 5459, 391, 4018, 7078, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 4777, 6500, 1695, 284, 220, 20, 271, 52680, 11, 1848, 1669, 1532, 1006, 197, 6258, 391, 4018, 8488, 21, 19, 31933, 1695, 9, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestBackwardCompatibilityWithChunksStorage(t *testing.T) { for previousImage, flagsFn := range previousVersionImages { t.Run(fmt.Sprintf("Backward compatibility upgrading from %s", previousImage), func(t *testing.T) { flags := ChunksStorageFlags if flagsFn != nil { flags = flagsFn(flags) } runB...
explode_data.jsonl/77205
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 136 }
[ 2830, 3393, 3707, 1606, 85880, 2354, 89681, 5793, 1155, 353, 8840, 836, 8, 341, 2023, 3681, 1906, 11, 8042, 24911, 1669, 2088, 3681, 5637, 14228, 341, 197, 3244, 16708, 28197, 17305, 445, 3707, 1606, 24748, 45935, 504, 1018, 82, 497, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContext_Session2(t *testing.T) { c := NewContext() c.Input.CruSession = &session.MemSessionStore{} if store, err := c.Session(); store == nil || err != nil { t.FailNow() } }
explode_data.jsonl/39541
{ "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, 1972, 84664, 17, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1532, 1972, 741, 1444, 16130, 727, 2672, 5283, 284, 609, 5920, 1321, 336, 5283, 6093, 31483, 743, 3553, 11, 1848, 1669, 272, 20674, 2129, 3553, 621, 2092, 1369, 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 ]
3
func TestCollection_UpdateId(t *testing.T) { ast := require.New(t) cli := initClient("test") defer cli.Close(context.Background()) defer cli.DropCollection(context.Background()) cli.EnsureIndexes(context.Background(), []string{"name"}, nil) id1 := primitive.NewObjectID() id2 := primitive.NewObjectID() docs := ...
explode_data.jsonl/18377
{ "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, 6482, 47393, 764, 1155, 353, 8840, 836, 8, 341, 88836, 1669, 1373, 7121, 1155, 340, 86448, 1669, 2930, 2959, 445, 1944, 1138, 16867, 21348, 10421, 5378, 19047, 2398, 16867, 21348, 21688, 6482, 5378, 19047, 2398, 86448, 22834, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWithinSlice(t *testing.T) { outer := make([]byte, 0, 50) inner := outer[2:34] if !WithinBytes(outer, inner) { t.Fatal("unexpected outer/inner result") } if WithinBytes(outer, make([]byte, 0, 10)) { t.Fatal("new slice is incorrectly within outer") } }
explode_data.jsonl/9686
{ "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, 41961, 33236, 1155, 353, 8840, 836, 8, 341, 197, 2676, 1669, 1281, 10556, 3782, 11, 220, 15, 11, 220, 20, 15, 340, 197, 4382, 1669, 15955, 58, 17, 25, 18, 19, 2533, 743, 753, 41961, 7078, 7, 2676, 11, 9179, 8, 341, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestProcess_OnAnalyzeProjectUsecase_WhenAnalyzingIdentifiers_ShouldReturnAnalysisResults(t *testing.T) { project := entity.Project{ ID: uuid.MustParse("f9b76fde-c342-4328-8650-85da8f21e2be"), Reference: "eroatta/test", Metadata: entity.Metadata{ Fullname: "eroatta/test", }, SourceCode: entity....
explode_data.jsonl/64110
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 847 }
[ 2830, 3393, 7423, 35482, 2082, 55856, 7849, 52, 5024, 519, 62, 4498, 73307, 20371, 28301, 11836, 36578, 616, 5598, 26573, 9801, 1155, 353, 8840, 836, 8, 341, 72470, 1669, 5387, 30944, 515, 197, 29580, 25, 286, 16040, 50463, 14463, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMVCCStatsDelDelGC(t *testing.T) { defer leaktest.AfterTest(t)() engine := createTestEngine() defer engine.Close() ctx := context.Background() aggMS := &enginepb.MVCCStats{} assertEq(t, engine, "initially", aggMS, &enginepb.MVCCStats{}) key := roachpb.Key("a") ts1 := hlc.Timestamp{WallTime: 1E9} ts2...
explode_data.jsonl/41644
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 660 }
[ 2830, 3393, 66626, 3706, 16635, 16532, 16532, 22863, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 80118, 1669, 1855, 2271, 4571, 741, 16867, 4712, 10421, 2822, 20985, 1669, 2266, 19047, 741, 197, 15718, 482...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKnativeProbeHeader(t *testing.T) { req, err := http.NewRequest(http.MethodGet, "http://example.com/", nil) if err != nil { t.Fatal("Error building request:", err) } if h := KnativeProbeHeader(req); h != "" { t.Errorf("KnativeProbeHeader(req)=%v, want empty string", h) } const want = "activator" req....
explode_data.jsonl/58829
{ "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, 42, 29738, 81426, 4047, 1155, 353, 8840, 836, 8, 341, 24395, 11, 1848, 1669, 1758, 75274, 19886, 20798, 1949, 11, 330, 1254, 1110, 8687, 905, 28105, 2092, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 445, 1454, 4752, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTlfNameChangePrivateWithoutObservation(t *testing.T) { test(t, users("alice", "bob"), inPrivateTlf("alice,bob@twitter"), as(bob, expectError(initRoot(), "bob does not have read access to directory /keybase/private/alice,bob@twitter"), ), addNewAssertion("bob", "bob@twitter"), inPrivateTlfNonC...
explode_data.jsonl/41324
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 202 }
[ 2830, 3393, 51, 11008, 675, 4072, 16787, 26040, 37763, 367, 1155, 353, 8840, 836, 8, 341, 18185, 1155, 345, 197, 90896, 445, 63195, 497, 330, 47086, 4461, 197, 17430, 16787, 51, 11008, 445, 63195, 8402, 674, 31, 14679, 4461, 197, 60451,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDebRules(t *testing.T) { accept(t, acceptParms{ Name: "rules.deb", Conf: "rules.deb.yaml", Format: "deb", Dockerfile: "rules.deb.dockerfile", }) }
explode_data.jsonl/15464
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 89 }
[ 2830, 3393, 1912, 65, 26008, 1155, 353, 8840, 836, 8, 341, 197, 10330, 1155, 11, 4193, 85440, 515, 197, 21297, 25, 981, 330, 21977, 80731, 756, 197, 197, 15578, 25, 981, 330, 21977, 80731, 33406, 756, 197, 197, 4061, 25, 257, 330, 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
func Test_adaptStreams(t *testing.T) { t.SkipNow() tests := []struct { name string terraform string expected []kinesis.Stream }{ { name: "basic", terraform: ` resource "" "example" { } `, expected: []kinesis.Stream{}, }, } for _, test := range tests { t.Run(test.name, func(t *testi...
explode_data.jsonl/16194
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 218 }
[ 2830, 3393, 10027, 2689, 73576, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 7039, 741, 78216, 1669, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 197, 61385, 914, 198, 197, 42400, 220, 3056, 74, 82789, 33308, 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...
1
func TestPrintJsonVersion(t *testing.T) { pkg.Commit = "abc123" pkg.Version = "v1.2.3" m := NewTestMixin(t) opts := version.Options{} opts.RawFormat = string(printer.FormatJson) err := opts.Validate() require.NoError(t, err) m.PrintVersion(opts) gotOutput := m.TestContext.GetOutput() wantOutput := `{ "na...
explode_data.jsonl/64488
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 230 }
[ 2830, 3393, 8994, 5014, 5637, 1155, 353, 8840, 836, 8, 341, 3223, 7351, 53036, 284, 330, 13683, 16, 17, 18, 698, 3223, 7351, 35842, 284, 330, 85, 16, 13, 17, 13, 18, 1837, 2109, 1669, 1532, 2271, 38456, 1155, 692, 64734, 1669, 2319,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddAudiences(t *testing.T) { type RequestBody struct { AudienceGroupID int `json:"audienceGroupId,omitempty"` UploadDescription string `json:"uploadDescription,omitempty"` Audiences []audience `json:"audiences,omitempty"` } type want struct { URLPath string RequestBody Req...
explode_data.jsonl/37771
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2309 }
[ 2830, 3393, 2212, 52949, 11975, 1155, 353, 8840, 836, 8, 341, 13158, 6145, 5444, 2036, 341, 197, 22985, 661, 1835, 2808, 915, 256, 526, 286, 1565, 2236, 2974, 7880, 1835, 48410, 20478, 8805, 197, 197, 13844, 5009, 914, 257, 1565, 2236, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMallocCrashesOnNil(t *testing.T) { t.Parallel() cmd := exec.Command("go", "run", path("malloc.go")) out, err := cmd.CombinedOutput() if err == nil { t.Logf("%#q:\n%s", strings.Join(cmd.Args, " "), out) t.Fatalf("succeeded unexpectedly") } }
explode_data.jsonl/5830
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 111 }
[ 2830, 3393, 53681, 16001, 14051, 1925, 19064, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 25920, 1669, 3883, 12714, 445, 3346, 497, 330, 6108, 497, 1815, 445, 16166, 18002, 5455, 13967, 11, 1848, 1669, 5439, 727, 2855, 1589, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_getWorkflowHandler_AsProvider(t *testing.T) { api, tsURL := newTestServer(t) admin, _ := assets.InsertAdminUser(t, api.mustDB()) localConsumer, err := authentication.LoadConsumerByTypeAndUserID(context.TODO(), api.mustDB(), sdk.ConsumerLocal, admin.ID, authentication.LoadConsumerOptions.WithAuthentifiedUs...
explode_data.jsonl/31070
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 756 }
[ 2830, 3393, 3062, 62768, 3050, 62741, 5179, 1155, 353, 8840, 836, 8, 341, 54299, 11, 10591, 3144, 1669, 501, 2271, 5475, 1155, 692, 64394, 11, 716, 1669, 11770, 23142, 7210, 1474, 1155, 11, 6330, 69419, 3506, 2398, 8854, 29968, 11, 1848...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSTMConflict(t *testing.T) { clus := NewClusterV3(t, &ClusterConfig{Size: 3}) defer clus.Terminate(t) etcdc := clus.RandClient() keys := make([]string, 5) for i := 0; i < len(keys); i++ { keys[i] = fmt.Sprintf("foo-%d", i) if _, err := etcdc.Put(context.TODO(), keys[i], "100"); err != nil { t.Fatal...
explode_data.jsonl/51049
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 773 }
[ 2830, 3393, 35849, 57974, 1155, 353, 8840, 836, 8, 341, 197, 4163, 1669, 1532, 28678, 53, 18, 1155, 11, 609, 28678, 2648, 90, 1695, 25, 220, 18, 3518, 16867, 1185, 355, 836, 261, 34016, 1155, 692, 197, 295, 72026, 1669, 1185, 355, 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 TestRunCallbacks(t *testing.T) { p := Product{Code: "unique_code", Price: 100} DB.Save(&p) if !reflect.DeepEqual(p.GetCallTimes(), []int64{1, 1, 0, 1, 1, 0, 0, 0, 0}) { t.Errorf("Callbacks should be invoked successfully, %v", p.GetCallTimes()) } DB.Where("Code = ?", "unique_code").First(&p) if !reflect.D...
explode_data.jsonl/13358
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 538 }
[ 2830, 3393, 6727, 44461, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 5643, 90, 2078, 25, 330, 9587, 4136, 497, 8483, 25, 220, 16, 15, 15, 532, 45409, 13599, 2099, 79, 692, 743, 753, 34913, 94750, 1295, 2234, 7220, 18889, 1507, 3056, 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...
8