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 TestOverlappingKeyRangeError(t *testing.T) { dir, err := ioutil.TempDir("", "badger-test") require.NoError(t, err) defer os.RemoveAll(dir) opt := DefaultOptions opt.Dir = dir opt.ValueDir = dir kv, err := Open(opt) require.NoError(t, err) lh0 := newLevelHandler(kv, 0) lh1 := newLevelHandler(kv, 1) f :=...
explode_data.jsonl/53656
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 535 }
[ 2830, 3393, 1918, 90619, 1592, 6046, 1454, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 13855, 1389, 16839, 1138, 17957, 35699, 1155, 11, 1848, 340, 16867, 2643, 84427, 14161, 340, 64838, 1669, 7899...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGroup(t *testing.T) { r := New() a := r.Group("/a") { a.GET("/", func(rw http.ResponseWriter, r *http.Request) { rw.Write([]byte("/a")) }) a.GET("/b", func(rw http.ResponseWriter, r *http.Request) { rw.Write([]byte("/a/b")) }) a.GET("c", func(rw http.ResponseWriter, r *http.Request) { r...
explode_data.jsonl/10768
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 564 }
[ 2830, 3393, 2808, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 741, 11323, 1669, 435, 5407, 4283, 64, 1138, 197, 515, 197, 11323, 17410, 35460, 2915, 2601, 86, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 298, 7000, 86, 4073, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEnabled(t *testing.T) { var tests = []struct { spec string enabledAt zapcore.Level }{ {spec: "payload", enabledAt: flogging.PayloadLevel}, {spec: "debug", enabledAt: zapcore.DebugLevel}, {spec: "info", enabledAt: zapcore.InfoLevel}, {spec: "warn", enabledAt: zapcore.WarnLevel}, {spec: "pan...
explode_data.jsonl/81866
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 490 }
[ 2830, 3393, 5462, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 98100, 414, 914, 198, 197, 197, 15868, 1655, 32978, 2153, 25259, 198, 197, 59403, 197, 197, 90, 9535, 25, 330, 19427, 497, 8970, 1655, 25, 282, 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 TestClient_GetConfiguration(t *testing.T) { t.Parallel() app, cleanup := cltest.NewApplicationWithKey(t, cltest.LenientEthMock) defer cleanup() require.NoError(t, app.Start()) client, r := app.NewClientAndRenderer() assert.NoError(t, client.GetConfiguration(cltest.EmptyCLIContext())) require.Equal(t, 1, l...
explode_data.jsonl/78863
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 454 }
[ 2830, 3393, 2959, 13614, 7688, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 28236, 11, 21290, 1669, 1185, 1944, 7121, 4988, 2354, 1592, 1155, 11, 1185, 1944, 65819, 1167, 65390, 11571, 340, 16867, 21290, 741, 17957, 35699, 1155,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMakeAuhtorizationHeader(t *testing.T) { testCases := []struct { name string prefix string token string extraHeaders map[string]string }{ { name: "With an empty prefix, token and no additional headers", prefix: "", token: "", extraHeaders: nil, ...
explode_data.jsonl/56831
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 655 }
[ 2830, 3393, 8078, 65332, 426, 269, 2022, 4047, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 3223, 5060, 981, 914, 198, 197, 43947, 286, 914, 198, 197, 8122, 2172, 10574, 2415, 1403...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewDirInfo(t *testing.T) { modTime := time.Unix(1566738000, 0) // 2019-08-25 13:00:00 UTC dirInfo := NewDirItem("dir", modTime) convey.Convey("New Directory Info", t, func() { convey.Convey("Will display the correct Mode", func() { convey.So(dirInfo.Mode(), convey.ShouldEqual, os.ModeDir|0666) }) ...
explode_data.jsonl/66759
{ "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, 3564, 6184, 1731, 1155, 353, 8840, 836, 8, 341, 42228, 1462, 1669, 882, 10616, 941, 7, 16, 20, 21, 21, 22, 18, 23, 15, 15, 15, 11, 220, 15, 8, 442, 220, 17, 15, 16, 24, 12, 15, 23, 12, 17, 20, 220, 16, 18, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCStore_AnyContainsReverse(t *testing.T) { cs := New() cs.StoreKey("redirect") cs.StoreKey("smash") cs.StoreKey("potato") type args struct { haystack string } tests := []struct { name string args args want bool }{ {"contains substr", args{"com_liferay_portal_redirect"}, true}, {"contains e...
explode_data.jsonl/59223
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 263 }
[ 2830, 3393, 34, 6093, 1566, 3834, 23805, 45695, 1155, 353, 8840, 836, 8, 341, 71899, 1669, 1532, 2822, 71899, 38047, 1592, 445, 8117, 1138, 71899, 38047, 1592, 445, 3563, 988, 1138, 71899, 38047, 1592, 445, 19099, 4330, 5130, 13158, 2827,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResolveLockNoCandidate(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) wg := &sync.WaitGroup{} ch1 := make(chan *cdcpb.ChangeDataEvent, 10) srv1 := newMockChangeDataService(t, ch1) server1, addr1 := newMockService(ctx, t, srv1, wg) defer func() { close(ch1) server1.Stop() ...
explode_data.jsonl/32880
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1040 }
[ 2830, 3393, 56808, 11989, 2753, 63901, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 72079, 1669, 609, 12996, 28384, 2808, 31483, 23049, 16, 1669, 1281, 35190, 353, 4385, 4672, 65, 39348, 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 TestFullBlocks(t *testing.T) { tests, err := fullblocktests.Generate(false) if err != nil { t.Fatalf("failed to generate tests: %v", err) } // Create a new database and chain instance to run tests against. chain, teardownFunc, err := chainSetup("fullblocktest", &chaincfg.RegressionNetParams) if err != n...
explode_data.jsonl/389
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2184 }
[ 2830, 3393, 9432, 29804, 1155, 353, 8840, 836, 8, 341, 78216, 11, 1848, 1669, 2480, 4574, 23841, 57582, 3576, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 16091, 311, 6923, 7032, 25, 1018, 85, 497, 1848, 340, 197, 630, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestLinkRoutesDel(t *testing.T) { mockNetLinkOps := new(mocks.NetLinkOps) mockLink := new(netlink_mocks.Link) // below is defined in net_linux.go netLinkOps = mockNetLinkOps tests := []struct { desc string inputLink netlink.Link inputSubnets []*net.IPNet ...
explode_data.jsonl/30956
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1789 }
[ 2830, 3393, 3939, 26653, 16532, 1155, 353, 8840, 836, 8, 341, 77333, 6954, 3939, 38904, 1669, 501, 1255, 25183, 16993, 3939, 38904, 340, 77333, 3939, 1669, 501, 30723, 2080, 717, 25183, 22534, 340, 197, 322, 3685, 374, 4512, 304, 4179, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestErr(t *testing.T) { os.Setenv(OverrideEnv, "0") f := tests.NewFakeFile() SetErrFile(f) Err("xyz123 %s\n", "%s%%%d") Ln("unrelated message") got := f.String() want := "xyz123 %s%%%d\n" if got != want { t.Errorf("Err() = %q, want %q", got, want) } }
explode_data.jsonl/50986
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 7747, 1155, 353, 8840, 836, 8, 341, 25078, 4202, 3160, 7, 2177, 14359, 11, 330, 15, 1138, 1166, 1669, 7032, 7121, 52317, 1703, 741, 22212, 7747, 1703, 955, 340, 197, 7747, 445, 28854, 16, 17, 18, 1018, 82, 1699, 497, 596...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListVolumeAttachmentsWithFilter(t *testing.T) { type test struct { input []*model.VolumeAttachmentSpec param map[string][]string expected []*model.VolumeAttachmentSpec } tests := []test{ // select by storage type { input: []*model.VolumeAttachmentSpec{ &SampleMultiAttachments[0], ...
explode_data.jsonl/50718
{ "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, 852, 18902, 75740, 2354, 5632, 1155, 353, 8840, 836, 8, 341, 13158, 1273, 2036, 341, 197, 22427, 262, 29838, 2528, 79106, 33569, 8327, 198, 197, 36037, 262, 2415, 14032, 45725, 917, 198, 197, 42400, 29838, 2528, 79106, 33569, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDepositWithinBatch(t *testing.T) { mnemonic := "guard cream sadness conduct invite crumble clock pudding hole grit liar hotel maid produce squeeze return argue turtle know drive eight casino maze host" accAddr, privKey, err := wallet.RecoverAccountFromMnemonic(mnemonic, "") require.NoError(t, err) chainI...
explode_data.jsonl/23723
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 708 }
[ 2830, 3393, 78982, 41961, 21074, 1155, 353, 8840, 836, 8, 341, 2109, 70775, 1669, 330, 26098, 12644, 50878, 6786, 21399, 1560, 22733, 8866, 81427, 14178, 40918, 72624, 9500, 42065, 8193, 36563, 470, 17585, 36089, 1414, 6541, 8063, 11846, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNil(t *testing.T) { s := NewScan() _,_,err := s.EndpointReqWithConf(nil) if err == nil { t.Errorf("nil conf should result in error") } }
explode_data.jsonl/46873
{ "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, 19064, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 26570, 741, 197, 6878, 6878, 615, 1669, 274, 90409, 27234, 2354, 15578, 27907, 340, 743, 1848, 621, 2092, 341, 197, 3244, 13080, 445, 8385, 2335, 1265, 1102, 304, 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 ]
2
func TestGetKeyspaceMetadata(t *testing.T) { session := createSession(t) defer session.Close() keyspaceMetadata, err := getKeyspaceMetadata(session, "gocql_test") if err != nil { t.Fatalf("failed to query the keyspace metadata with err: %v", err) } if keyspaceMetadata == nil { t.Fatal("failed to query the ke...
explode_data.jsonl/11172
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 449 }
[ 2830, 3393, 1949, 8850, 1306, 14610, 1155, 353, 8840, 836, 8, 341, 25054, 1669, 1855, 5283, 1155, 340, 16867, 3797, 10421, 2822, 23634, 8746, 14610, 11, 1848, 1669, 633, 8850, 1306, 14610, 16264, 11, 330, 70, 509, 1470, 4452, 1138, 743,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestMultistoreSnapshotRestore(t *testing.T) { source := newMultiStoreWithMixedMountsAndBasicData(dbm.NewMemDB()) target := newMultiStoreWithMixedMounts(dbm.NewMemDB()) version := uint64(source.LastCommitID().Version) require.EqualValues(t, 3, version) chunks, err := source.Snapshot(version, snapshottypes.Cur...
explode_data.jsonl/44877
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 348 }
[ 2830, 3393, 40404, 380, 460, 15009, 56284, 1155, 353, 8840, 836, 8, 341, 47418, 1669, 501, 20358, 6093, 2354, 86433, 16284, 82, 3036, 15944, 1043, 9791, 76, 7121, 18816, 3506, 2398, 28861, 1669, 501, 20358, 6093, 2354, 86433, 16284, 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...
3
func TestLogin(t *testing.T) { // Load the environment variables, this is where things like api keys should be stored. // Can also store constants shared by multiple services err := godotenv.Load("../.env") if err != nil { panic(errors.Wrap(err, "Could not load .env file")) } // Connect to the database err = ...
explode_data.jsonl/69742
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 752 }
[ 2830, 3393, 6231, 1155, 353, 8840, 836, 8, 341, 197, 322, 8893, 279, 4573, 7332, 11, 419, 374, 1380, 2513, 1075, 6330, 6894, 1265, 387, 9768, 624, 197, 322, 2980, 1083, 3553, 18021, 6094, 553, 5248, 3516, 198, 9859, 1669, 9886, 354, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOpChangeFeedDetail(t *testing.T) { s := &etcdTester{} s.setUpTest(t) defer s.tearDownTest(t) ctx := context.Background() detail := &model.ChangeFeedInfo{ SinkURI: "root@tcp(127.0.0.1:3306)/mysql", SortDir: "/old-version/sorter", } cfID := "test-op-cf" err := s.client.SaveChangeFeedInfo(ctx, detail...
explode_data.jsonl/70531
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 301 }
[ 2830, 3393, 7125, 4072, 28916, 10649, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 609, 295, 4385, 58699, 16094, 1903, 77700, 2271, 1155, 340, 16867, 274, 31853, 59342, 2271, 1155, 340, 20985, 1669, 2266, 19047, 741, 2698, 1628, 1669, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHandleStoppedToSteadyStateTransition(t *testing.T) { ctrl := gomock.NewController(t) mockStateManager := mock_statemanager.NewMockStateManager(ctrl) defer ctrl.Finish() taskEngine := &DockerTaskEngine{ saver: mockStateManager, } firstContainerName := "container1" firstContainer := &apicontainer.Conta...
explode_data.jsonl/24579
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1166 }
[ 2830, 3393, 6999, 59803, 1249, 623, 3149, 88, 1397, 21768, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 77333, 83132, 1669, 7860, 16271, 336, 8184, 7121, 11571, 83132, 62100, 340, 16867, 23743, 991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResolveFunc(t *testing.T) { r := MapResolver(map[string]interface{}{ "env._print": func(ctx Context, addr uint32) uint32 { c := NewCodec(ctx) if c.CString(addr) != "hello world" { panic("not equal") } return 0 }, }) withCode(t, "testdata/extern_func.wat", r, func(code Code) { ctx, err ...
explode_data.jsonl/7441
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 224 }
[ 2830, 3393, 56808, 9626, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 5027, 18190, 9147, 14032, 31344, 67066, 197, 197, 1, 3160, 1436, 1350, 788, 2915, 7502, 9608, 11, 10789, 2622, 18, 17, 8, 2622, 18, 17, 341, 298, 1444, 1669, 1532, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestFileExists(t *testing.T) { createTestFile() eng := New() err := eng.Execute(`if (!$file.exists('test')) { throw new Error(); }`) if err != nil { t.Error(err) } err = eng.Execute(`if ($file.exists('test2')) { throw new Error(); }`) if err != nil { t.Error(err) } defer os.Remove("test") }
explode_data.jsonl/36282
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 133 }
[ 2830, 3393, 1703, 15575, 1155, 353, 8840, 836, 8, 341, 39263, 2271, 1703, 741, 197, 826, 1669, 1532, 741, 9859, 1669, 2922, 13827, 5809, 333, 11378, 1192, 12076, 492, 1944, 3789, 314, 2510, 501, 4600, 2129, 335, 24183, 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 TestHashRound(t *testing.T){ for _, test := range tests { actual := Hexed(test.input) if actual != test.output { t.Fatalf("Mistakes were made.. %s returned %d expecting %d.", test.input, actual, test.output, ) } } }
explode_data.jsonl/14704
{ "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, 6370, 27497, 1155, 353, 8840, 836, 1264, 1572, 2023, 8358, 1273, 1669, 2088, 7032, 1476, 197, 88814, 1669, 27228, 291, 8623, 10046, 340, 2394, 197, 743, 5042, 961, 1273, 13413, 341, 298, 3244, 30762, 445, 44, 380, 2050, 1033...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListChangesetOptsFromArgs(t *testing.T) { var wantFirst int32 = 10 wantPublicationStates := []batches.ChangesetPublicationState{ "PUBLISHED", "INVALID", } wantStates := []batches.ChangesetState{"OPEN", "INVALID"} wantExternalStates := []batches.ChangesetExternalState{"OPEN"} wantReviewStates := []bat...
explode_data.jsonl/13591
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1868 }
[ 2830, 3393, 852, 11317, 295, 43451, 3830, 4117, 1155, 353, 8840, 836, 8, 341, 2405, 1366, 5338, 526, 18, 17, 284, 220, 16, 15, 198, 50780, 72390, 23256, 1669, 3056, 65, 9118, 6353, 5520, 295, 72390, 1397, 515, 197, 197, 67681, 14119, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFindsNestedKeys(t *testing.T) { initConfigs() dob, _ := time.Parse(time.RFC3339, "1979-05-27T07:32:00Z") Set("super", map[string]interface{}{ "deep": map[string]interface{}{ "nested": "value", }, }) expected := map[string]interface{}{ "super": map[string]interface{}{ "deep": map[string]inter...
explode_data.jsonl/5575
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1136 }
[ 2830, 3393, 37, 8673, 71986, 8850, 1155, 353, 8840, 836, 8, 341, 28248, 84905, 741, 2698, 674, 11, 716, 1669, 882, 8937, 9730, 2013, 6754, 18, 18, 18, 24, 11, 330, 16, 24, 22, 24, 12, 15, 20, 12, 17, 22, 51, 15, 22, 25, 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 TestOkMessage3(t *testing.T) { // Check header msg := &Ok{Type: uint32(M_USER_AUTH)} if msg.Type != uint32(M_USER_AUTH) { t.Fail() } }
explode_data.jsonl/29145
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 67 }
[ 2830, 3393, 11578, 2052, 18, 1155, 353, 8840, 836, 8, 341, 197, 322, 4248, 4247, 198, 21169, 1669, 609, 11578, 90, 929, 25, 2622, 18, 17, 3189, 9107, 22675, 73822, 743, 3750, 10184, 961, 2622, 18, 17, 3189, 9107, 22675, 8, 341, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestNewStdPlayfield(t *testing.T) { pf := NewStdPlayfield() if pf.Width != 10 { t.Errorf("pf.Width == %v, expected == 10", pf.Width) } if pf.Height != 20 { t.Errorf("pf.Height == %v, expected == 20", pf.Height) } }
explode_data.jsonl/38421
{ "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, 3564, 22748, 9137, 2566, 1155, 353, 8840, 836, 8, 341, 3223, 69, 1669, 1532, 22748, 9137, 2566, 2822, 743, 27418, 14914, 961, 220, 16, 15, 341, 197, 3244, 13080, 445, 15897, 14914, 621, 1018, 85, 11, 3601, 621, 220, 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...
3
func TestUpdate(t *testing.T) { tcs := []struct { resource string name string namespace string obj *unstructured.Unstructured path string }{ { resource: "rtest", name: "normal_update", path: "/apis/gtest/vtest/rtest/normal_update", obj: getObject("gtest/vTest", "r...
explode_data.jsonl/37545
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1008 }
[ 2830, 3393, 4289, 1155, 353, 8840, 836, 8, 341, 3244, 4837, 1669, 3056, 1235, 341, 197, 50346, 220, 914, 198, 197, 11609, 414, 914, 198, 197, 56623, 914, 198, 197, 22671, 981, 353, 359, 51143, 10616, 51143, 198, 197, 26781, 414, 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...
4
func TestGetFinallyTaskRunTimeout(t *testing.T) { prName := "pipelinerun-finallyTimeouts" ns := "foo" p := "pipeline" tcs := []struct { name string pr *v1beta1.PipelineRun rprt *resources.ResolvedPipelineRunTask expected *metav1.Duration }{{ name: "nil timeout duration", pr: &v1beta1.Pip...
explode_data.jsonl/68282
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1709 }
[ 2830, 3393, 1949, 23949, 6262, 6727, 7636, 1155, 353, 8840, 836, 8, 341, 25653, 675, 1669, 330, 51501, 301, 10453, 359, 2220, 37645, 7636, 82, 698, 84041, 1669, 330, 7975, 698, 3223, 1669, 330, 51258, 1837, 3244, 4837, 1669, 3056, 1235,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDotImport(t *testing.T) { gopClTest(t, `import . "math" var a = round(1.2) `, `package main import math "math" var a = math.Round(1.2) `) }
explode_data.jsonl/73668
{ "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, 34207, 11511, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 1565, 474, 659, 330, 10374, 1837, 947, 264, 284, 4778, 7, 16, 13, 17, 340, 7808, 1565, 1722, 1887, 271, 474, 6888, 330, 10374, 1837, 947, 264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEventBusPublishEventTxDuplicateKeys(t *testing.T) { eventBus := NewEventBus() err := eventBus.Start() require.NoError(t, err) defer eventBus.Stop() tx := Tx("foo") result := abci.ResponseDeliverTx{ Data: []byte("bar"), Events: []abci.Event{ { Type: "transfer", Attributes: []cmn.KVPair{ ...
explode_data.jsonl/13675
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1078 }
[ 2830, 3393, 1556, 15073, 50145, 1556, 51, 15764, 14070, 8850, 1155, 353, 8840, 836, 8, 341, 28302, 15073, 1669, 1532, 1556, 15073, 741, 9859, 1669, 1538, 15073, 12101, 741, 17957, 35699, 1155, 11, 1848, 340, 16867, 1538, 15073, 30213, 282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPreparedCommand_RunS(t *testing.T) { stdout := shx.RecordStdout() defer stdout.Release() stderr := shx.RecordStderr() defer stderr.Release() err := shx.RunS("go", "run", "echo.go", "hello world") gotStdout := stdout.Output() gotStderr := stderr.Output() if err != nil { t.Fatal(err) } assert.Empty...
explode_data.jsonl/57098
{ "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, 4703, 7212, 4062, 84158, 50, 1155, 353, 8840, 836, 8, 341, 6736, 411, 1669, 557, 87, 49959, 22748, 411, 741, 16867, 20075, 58693, 741, 6736, 615, 1669, 557, 87, 49959, 22748, 615, 741, 16867, 26436, 58693, 2822, 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...
2
func TestBigIntAssignOp3(t *testing.T) { gopClTest(t, ` x := 3r x *= 2r `, `package main import ( builtin "github.com/goplus/gop/builtin" big "math/big" ) func main() { x := builtin.Gop_bigint_Init__1(big.NewInt(3)) x.Gop_MulAssign(builtin.Gop_bigint_Init__1(big.NewInt(2))) } `) }
explode_data.jsonl/73627
{ "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, 87474, 28933, 7125, 18, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 87, 1669, 220, 18, 81, 198, 87, 11404, 220, 17, 81, 198, 7808, 1565, 1722, 1887, 271, 474, 2399, 2233, 25628, 330, 5204, 905, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGoodFuncNames(t *testing.T) { names := []string{ "_", "a", "a1", "a1", "Ӵ", } for _, name := range names { tmpl := New("X").Funcs( FuncMap{ name: funcNameTestFunc, }, ) if tmpl == nil { t.Fatalf("nil result for %q", name) } } }
explode_data.jsonl/62392
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 146 }
[ 2830, 3393, 15216, 9626, 7980, 1155, 353, 8840, 836, 8, 341, 93940, 1669, 3056, 917, 515, 197, 197, 35089, 756, 197, 197, 56693, 756, 197, 197, 56693, 16, 756, 197, 197, 56693, 16, 756, 197, 197, 1, 143, 112, 756, 197, 532, 2023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateRemoteStorage(t *testing.T) { s := DefaultServer() // No remote storage by default storage, err := s.createRemoteStorageInstance() require.NoError(t, err) require.Nil(t, storage) // Set remote storage options s.WithOptions(DefaultOptions().WithRemoteStorageOptions( DefaultRemoteStorageOptions(...
explode_data.jsonl/38332
{ "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, 4021, 24703, 5793, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 7899, 5475, 2822, 197, 322, 2308, 8699, 5819, 553, 1638, 198, 197, 16172, 11, 1848, 1669, 274, 2520, 24703, 5793, 2523, 741, 17957, 35699, 1155, 11, 1848, 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 TestCalculateOutputResponse(t *testing.T) { sec := payload{'s', "second", 1} min := payload{'m', "minute", 60} hr := payload{'h', "hour", 3600} // create map of the payloads m3 := map[int]payload{0: hr, 1: min, 2: sec} secExpected := "second" secActual := calculateOutputResponse(1, m3) if secActual != se...
explode_data.jsonl/3971
{ "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, 47866, 5097, 2582, 1155, 353, 8840, 836, 8, 341, 197, 5024, 1669, 7729, 13608, 82, 516, 330, 5569, 497, 220, 16, 532, 25320, 1669, 7729, 13608, 76, 516, 330, 42557, 497, 220, 21, 15, 532, 78847, 1669, 7729, 13608, 71, 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...
4
func TestFunNN(t *testing.T) { for _, a := range sumNN { arg := a testFunNN(t, "add", nat.add, arg) arg = argNN{a.z, a.y, a.x} testFunNN(t, "add symmetric", nat.add, arg) arg = argNN{a.x, a.z, a.y} testFunNN(t, "sub", nat.sub, arg) arg = argNN{a.y, a.z, a.x} testFunNN(t, "sub symmetric", nat.sub, ar...
explode_data.jsonl/2182
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 252 }
[ 2830, 3393, 30855, 9745, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 264, 1669, 2088, 2629, 9745, 341, 197, 47903, 1669, 264, 198, 197, 18185, 30855, 9745, 1155, 11, 330, 718, 497, 17588, 1364, 11, 1392, 692, 197, 47903, 284, 1392, 9745...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSaveAsWrongPath(t *testing.T) { f, err := OpenFile(filepath.Join("test", "Book1.xlsx")) if assert.NoError(t, err) { // Test write file to not exist directory. err = f.SaveAs("") if assert.Error(t, err) { assert.True(t, os.IsNotExist(err), "Error: %v: Expected os.IsNotExists(err) == true", err) } ...
explode_data.jsonl/36957
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 138 }
[ 2830, 3393, 8784, 2121, 29185, 1820, 1155, 353, 8840, 836, 8, 341, 1166, 11, 1848, 1669, 5264, 1703, 34793, 22363, 445, 1944, 497, 330, 7134, 16, 46838, 5455, 743, 2060, 35699, 1155, 11, 1848, 8, 341, 197, 197, 322, 3393, 3270, 1034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCT_TextUnderlineLineFollowTextMarshalUnmarshal(t *testing.T) { v := dml.NewCT_TextUnderlineLineFollowText() buf, _ := xml.Marshal(v) v2 := dml.NewCT_TextUnderlineLineFollowText() xml.Unmarshal(buf, v2) }
explode_data.jsonl/44529
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 1162, 20550, 16250, 1056, 2460, 12480, 1178, 55438, 1806, 27121, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 294, 1014, 7121, 1162, 20550, 16250, 1056, 2460, 12480, 1178, 741, 26398, 11, 716, 1669, 8396, 37271, 3747, 340, 5195, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCopyToPodNoPreserve(t *testing.T) { tf := cmdtesting.NewTestFactory().WithNamespace("test") ns := scheme.Codecs codec := scheme.Codecs.LegacyCodec(scheme.Scheme.PrioritizedVersionsAllGroups()...) tf.Client = &fake.RESTClient{ GroupVersion: schema.GroupVersion{Group: "", Version: "v1"}, Negotia...
explode_data.jsonl/58293
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 748 }
[ 2830, 3393, 12106, 1249, 23527, 2753, 14367, 5852, 1155, 353, 8840, 836, 8, 341, 3244, 69, 1669, 5439, 8840, 7121, 2271, 4153, 1005, 2354, 22699, 445, 1944, 1138, 84041, 1669, 12859, 20274, 4837, 198, 43343, 66, 1669, 12859, 20274, 4837, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewFromEnv(t *testing.T) { td := t.TempDir() t.Setenv("TUF_ROOT", td) ctx := context.Background() // Make sure nothing is expired tuf, err := NewFromEnv(ctx) if err != nil { t.Fatal(err) } checkTargetsAndMeta(t, tuf) tuf.Close() // Now try with expired targets forceExpiration(t, true) tuf, err...
explode_data.jsonl/9331
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 315 }
[ 2830, 3393, 3564, 3830, 14359, 1155, 353, 8840, 836, 8, 341, 76373, 1669, 259, 65009, 6184, 741, 3244, 4202, 3160, 445, 51, 20538, 16197, 497, 17941, 340, 20985, 1669, 2266, 19047, 2822, 197, 322, 7405, 2704, 4302, 374, 26391, 198, 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...
6
func TestUTF8StringFromBytes(t *testing.T) { // The code point for ó is less than 255 but needs two unicode bytes - it's value expressed as a single byte // is in the private use area so is invalid. goodString := "Cliente - Doc. identificación" badString := BadStringToHexFunction(goodString) str, err := UTF8String...
explode_data.jsonl/29075
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 275 }
[ 2830, 3393, 8561, 23, 703, 3830, 7078, 1155, 353, 8840, 836, 8, 341, 197, 322, 576, 2038, 1459, 369, 40867, 374, 2686, 1091, 220, 17, 20, 20, 714, 3880, 1378, 26077, 5820, 481, 432, 594, 897, 13302, 438, 264, 3175, 4922, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIssue52(t *testing.T) { dir := filepath.Join(".", "testdata", "issue52") mods := []packagestest.Module{ {Name: "issue52", Files: packagestest.MustCopyFileTree(dir)}, } packagestest.TestAll(t, func(t *testing.T, exporter packagestest.Exporter) { if exporter == packagestest.Modules && !modulesSupported()...
explode_data.jsonl/28466
{ "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, 42006, 20, 17, 1155, 353, 8840, 836, 8, 341, 48532, 1669, 26054, 22363, 64217, 330, 92425, 497, 330, 11159, 20, 17, 1138, 2109, 29697, 1669, 3056, 1722, 267, 477, 26958, 515, 197, 197, 63121, 25, 330, 11159, 20, 17, 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...
6
func Test_check(t *testing.T) { resource := &resource{} eResource := &emptyResource{} var tests = []struct { input []byte output []byte }{ { []byte(`{"source":{},"version":null}`), []byte(`[{"c":"d"}]`), }, { []byte(`{"source":{},"version":{"a":"b"}}`), []byte(`[{"c":"d"}]`), }, { []b...
explode_data.jsonl/15554
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 398 }
[ 2830, 3393, 7200, 1155, 353, 8840, 836, 8, 341, 50346, 1669, 609, 9233, 16094, 7727, 4783, 1669, 609, 3194, 4783, 31483, 2405, 7032, 284, 3056, 1235, 341, 197, 22427, 220, 3056, 3782, 198, 197, 21170, 3056, 3782, 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 TestAPIDemo(t *testing.T) { const router = apiPrefix + "v1/demos" var err error w := httptest.NewRecorder() // post /demos addItem := &schema.Demo{ Code: util.MustUUID(), Name: util.MustUUID(), Status: 1, } engine.ServeHTTP(w, newPostRequest(router, addItem)) assert.Equal(t, 200, w.Code) var ...
explode_data.jsonl/10033
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 696 }
[ 2830, 3393, 2537, 915, 6726, 1155, 353, 8840, 836, 8, 341, 4777, 9273, 284, 6330, 14335, 488, 330, 85, 16, 3446, 14946, 698, 2405, 1848, 1465, 271, 6692, 1669, 54320, 70334, 7121, 47023, 2822, 197, 322, 1736, 608, 67, 14946, 198, 1271...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLegacyQueryTaxCap(t *testing.T) { input := CreateTestInput(t) querier := NewLegacyQuerier(input.TreasuryKeeper, input.Cdc) params := input.TreasuryKeeper.GetParams(input.Ctx) // Get a currency super random; should default to policy coin. queriedTaxCap := getQueriedTaxCap(t, input.Ctx, input.Cdc, querier...
explode_data.jsonl/6690
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 141 }
[ 2830, 3393, 77415, 2859, 31349, 12903, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 4230, 2271, 2505, 1155, 340, 197, 15959, 1268, 1669, 1532, 77415, 2183, 261, 1268, 5384, 836, 265, 26102, 77233, 11, 1946, 727, 7628, 692, 25856, 1669, 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 TestFindExistingHost(t *testing.T) { cases := []struct { name string ironic *testserver.IronicMock hostName string provisioningID string nodeName string }{ { name: "no-node", hostName: "name", provisioningID: "uuid", ironic: testserver.NewIronic(t).N...
explode_data.jsonl/71180
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 817 }
[ 2830, 3393, 9885, 53067, 9296, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 197, 2475, 292, 353, 1944, 4030, 2447, 8370, 11571, 271, 197, 63104, 675, 981, 914, 198, 197, 197, 776, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPolicy(t *testing.T) { policies := []*iam.Policy{ {Arn: aws.String("a"), PolicyId: aws.String("b"), PolicyName: aws.String("c")}, {Arn: aws.String("a"), PolicyId: aws.String("b"), PolicyName: aws.String("d")}, {Arn: aws.String("a"), PolicyId: aws.String("b"), PolicyName: aws.String("e")}, } expected ...
explode_data.jsonl/55914
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 353 }
[ 2830, 3393, 13825, 1155, 353, 8840, 836, 8, 341, 3223, 42038, 1669, 29838, 4932, 1069, 8018, 515, 197, 197, 90, 58331, 25, 31521, 6431, 445, 64, 3975, 10974, 764, 25, 31521, 6431, 445, 65, 3975, 10974, 675, 25, 31521, 6431, 445, 66, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestWithJSONSetsContentLength(t *testing.T) { r, err := Prepare(&http.Request{}, WithJSON(&mocks.T{Name: "Rob Pike", Age: 42})) if err != nil { t.Fatalf("autorest: WithJSON failed with error (%v)", err) } b, err := ioutil.ReadAll(r.Body) if err != nil { t.Fatalf("autorest: WithJSON failed with...
explode_data.jsonl/20971
{ "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, 2354, 5370, 30175, 2762, 4373, 1155, 353, 8840, 836, 8, 972, 7000, 11, 1848, 1669, 31166, 2099, 1254, 9659, 6257, 1871, 197, 197, 2354, 5370, 2099, 16712, 82, 836, 63121, 25, 330, 14465, 68729, 497, 13081, 25, 220, 19, 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...
4
func TestCustomRoute(t *testing.T) { var ( weight int32 = 100 ) type args struct { cr *operatorv1.Console tlsConfig *CustomTLSCert } tests := []struct { name string args args want *routev1.Route }{ { name: "Test custom hostname route without custom TLS", args: args{ cr: &operatorv1....
explode_data.jsonl/62120
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1413 }
[ 2830, 3393, 10268, 4899, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 197, 4765, 526, 18, 17, 284, 220, 16, 15, 15, 198, 197, 340, 13158, 2827, 2036, 341, 197, 91492, 286, 353, 7884, 85, 16, 46298, 198, 197, 3244, 4730, 2648, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResultRawForLiteral(t *testing.T) { for _, lit := range []string{"null", "true", "false"} { result := Parse(lit) if result.Raw != lit { t.Fatalf("expected '%v', got '%v'", lit, result.Raw) } } }
explode_data.jsonl/43447
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 91 }
[ 2830, 3393, 2077, 20015, 2461, 17350, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 13020, 1669, 2088, 3056, 917, 4913, 2921, 497, 330, 1866, 497, 330, 3849, 9207, 341, 197, 9559, 1669, 14775, 2333, 275, 340, 197, 743, 1102, 50575, 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, 1...
3
func Test_ou_dirtyLocked(t *testing.T) { t.Parallel() type fields struct { mu sync.Mutex read atomic.Value dirty map[uint32]*entryOu misses int } type want struct{} type test struct { name string fields fields want want checkFunc func(want) error beforeFunc func() afterF...
explode_data.jsonl/61544
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 872 }
[ 2830, 3393, 62, 283, 63642, 49010, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 13158, 5043, 2036, 341, 197, 2109, 84, 257, 12811, 99014, 198, 197, 37043, 256, 24510, 6167, 198, 197, 2698, 16531, 220, 2415, 58, 2496, 18, 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 TestSpanProcessor_skipSpan(t *testing.T) { testCases := []testCase{ { serviceName: "bankss", inputName: "url/url", outputName: "url/url", }, { serviceName: "banks", inputName: "noslasheshere", outputName: "noslasheshere", }, { serviceName: "banks", inputName: "www.test.co...
explode_data.jsonl/51044
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 752 }
[ 2830, 3393, 12485, 22946, 44830, 12485, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 66194, 515, 197, 197, 515, 298, 52934, 675, 25, 330, 17033, 778, 756, 298, 22427, 675, 25, 256, 330, 1085, 57254, 756, 298, 21170, 675, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestTLSClientCertsFromFilesIncorrectPaths(t *testing.T) { configEntity := endpointConfigEntity{} testlookup := lookup.New(configBackend) testlookup.UnmarshalKey("client", &configEntity.Client) //Set client tls paths to empty strings configEntity.Client.TLSCerts.Client.Cert.Path = filepath.Clean("/pkg/config...
explode_data.jsonl/34092
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 338 }
[ 2830, 3393, 45439, 2959, 34, 15546, 3830, 10809, 40468, 26901, 1155, 353, 8840, 836, 8, 1476, 25873, 3030, 1669, 14887, 2648, 3030, 16094, 18185, 21020, 1669, 18615, 7121, 8754, 29699, 340, 18185, 21020, 38097, 1592, 445, 2972, 497, 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 TestKeepaliveNoClientResponse(t *testing.T) { t.Parallel() // set up GRPCServer instance kap := &comm.KeepaliveOptions{ ServerInterval: 2 * time.Second, ServerTimeout: 1 * time.Second, } testAddress := "localhost:9400" srv, err := comm.NewGRPCServer(testAddress, comm.ServerConfig{KaOpts: kap}) assert.N...
explode_data.jsonl/38632
{ "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, 19434, 50961, 2753, 2959, 2582, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 322, 738, 705, 14773, 4872, 5475, 2867, 198, 16463, 391, 1669, 609, 3621, 13, 19434, 50961, 3798, 515, 197, 92075, 10256, 25, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestLabelError(t *testing.T) { err := missingLabel("test") t.Log(err) if got, want := err, errBadDockerfile; !errors.Is(got, want) { t.Errorf("%v != %v", got, want) } if got, want := err, missingLabel("test"); !errors.Is(got, want) { t.Errorf("%v != %v", got, want) } }
explode_data.jsonl/49866
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 2476, 1454, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 7402, 2476, 445, 1944, 1138, 3244, 5247, 3964, 340, 743, 2684, 11, 1366, 1669, 1848, 11, 1848, 17082, 35, 13659, 1192, 26, 753, 7650, 4506, 3268, 354, 11, 1366, 8, 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...
3
func TestAddRepo(t *testing.T) { expectedArgs := []string{"repo", "add", repo, repoURL} helm, runner := createHelm(t, nil, "") err := helm.AddRepo(repo, repoURL, "", "") assert.NoError(t, err, "should add helm repo without any error") verifyArgs(t, helm, runner, expectedArgs...) }
explode_data.jsonl/4641
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 2212, 25243, 1155, 353, 8840, 836, 8, 341, 42400, 4117, 1669, 3056, 917, 4913, 23476, 497, 330, 718, 497, 15867, 11, 15867, 3144, 532, 9598, 23162, 11, 22259, 1669, 1855, 39, 23162, 1155, 11, 2092, 11, 85617, 9859, 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 TestFileLifecycle(t *testing.T) { t.Parallel() ctx := project.TestContext(t) testDB, _ := testDatabaseInstance.NewDatabase(t) mirrorDB := New(testDB) mirror := model.Mirror{ IndexFile: "https://mysever/exports/index.txt", ExportRoot: "https://myserver/", CloudStorageBucket: "b1", Fi...
explode_data.jsonl/47897
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 775 }
[ 2830, 3393, 1703, 62731, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20985, 1669, 2390, 8787, 1972, 1155, 340, 18185, 3506, 11, 716, 1669, 1273, 5988, 2523, 7121, 5988, 1155, 340, 2109, 28812, 3506, 1669, 1532, 8623, 3506, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAggregate(t *testing.T) { b := &BuilderStandard{} s := NewSelect(b) sql, args, err := s.Agg("COUNT", "id", "agg_count"). From("student"). Where(expr.In("age", 13, 14)). ToSql() if err != nil { t.Fatal(err) } assert.Equal(t, "SELECT COUNT(id) AS agg_count FROM student WHERE age IN (?, ?)", sql...
explode_data.jsonl/16785
{ "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, 64580, 1155, 353, 8840, 836, 8, 1476, 2233, 1669, 609, 3297, 19781, 16094, 1903, 1669, 1532, 3379, 1883, 692, 30633, 11, 2827, 11, 1848, 1669, 274, 875, 14398, 445, 38143, 497, 330, 307, 497, 330, 15718, 3180, 38609, 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 TestGyCreditExhaustionWithCRRU(t *testing.T) { fmt.Println("\nRunning TestGyCreditExhaustionWithCRRU...") tr, ruleManager, ue := ocsCreditExhaustionTestSetup(t) defer func() { // Clear hss, ocs, and pcrf assert.NoError(t, clearOCSMockDriver()) assert.NoError(t, ruleManager.RemoveInstalledRules()) asser...
explode_data.jsonl/18980
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1342 }
[ 2830, 3393, 38, 88, 33493, 840, 15074, 290, 2354, 34, 8106, 52, 1155, 353, 8840, 836, 8, 341, 11009, 12419, 4921, 77, 18990, 3393, 38, 88, 33493, 840, 15074, 290, 2354, 34, 8106, 52, 1112, 5130, 25583, 11, 5912, 2043, 11, 60098, 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...
1
func TestAllocateFileRange(t *testing.T) { sizes := []int64{1, 99, 34, 65536, 88888} for _, size := range sizes { allocateFileRangeWithNewFile(t, size) } }
explode_data.jsonl/39303
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 75380, 1703, 6046, 1155, 353, 8840, 836, 8, 341, 1903, 4756, 1669, 3056, 396, 21, 19, 90, 16, 11, 220, 24, 24, 11, 220, 18, 19, 11, 220, 21, 20, 20, 18, 21, 11, 220, 23, 23, 23, 23, 23, 532, 2023, 8358, 1379, 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 TestOptimizationWhenInGoroot(t *testing.T) { testConfig{ gopathFiles: map[string]string{ "foo/foo.go": "package foo\nconst X = 1\n", }, }.test(t, func(t *goimportTest) { testHookScanDir = func(dir string) { if dir != filepath.Join(build.Default.GOROOT, "src") { t.Errorf("unexpected dir scan of %s...
explode_data.jsonl/12433
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 21367, 65964, 4498, 641, 38, 269, 1905, 1155, 353, 8840, 836, 8, 341, 18185, 2648, 515, 197, 3174, 35111, 10809, 25, 2415, 14032, 30953, 515, 298, 197, 1, 7975, 60555, 18002, 788, 330, 1722, 15229, 1699, 1024, 1599, 284, 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...
2
func TestRPC_RawTX(t *testing.T) { codec.UpgradeHeight = 7000 _, kb, cleanup := NewInMemoryTendermintNode(t, oneValTwoNodeGenesisState()) cb, err := kb.GetCoinbase() assert.Nil(t, err) kp, err := kb.Create("test") assert.Nil(t, err) pk, err := kb.ExportPrivateKeyObject(cb.GetAddress(), "test") assert.Nil(t, err...
explode_data.jsonl/44731
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 914 }
[ 2830, 3393, 29528, 2568, 672, 22867, 1155, 353, 8840, 836, 8, 341, 43343, 66, 13, 43861, 3640, 284, 220, 22, 15, 15, 15, 198, 197, 6878, 38653, 11, 21290, 1669, 1532, 641, 10642, 51, 1659, 67791, 1955, 1155, 11, 825, 2208, 11613, 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 TestTextArgs(t *testing.T) { expTa := map[string]string{ TmpVarProjectName: "prj1", TmpVarBranchName: "feature/TASK-123/some-description", TmpVarTargetBranchName: "develop", TmpVarGitlabMentions: "@test", TmpVarRemote: "origin", TmpVarUsername: "xxx", "Task": ...
explode_data.jsonl/12248
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 377 }
[ 2830, 3393, 1178, 4117, 1155, 353, 8840, 836, 8, 341, 48558, 55999, 1669, 2415, 14032, 30953, 515, 197, 10261, 1307, 3962, 7849, 675, 25, 414, 330, 649, 73, 16, 756, 197, 10261, 1307, 3962, 18197, 675, 25, 981, 330, 12753, 16731, 7384...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQueryDisable(t *testing.T) { cfg := CacheConfig{ QueryDisable: true, } hintCache := initHintCacheWithConfig(t, cfg) // Insert a new confirmation hint with a non-zero height. const confHeight = 100 confRequest := ConfRequest{ TxID: chainhash.Hash{0x01, 0x02, 0x03}, } err := hintCache.CommitConfirm...
explode_data.jsonl/38309
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 381 }
[ 2830, 3393, 2859, 25479, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 19479, 2648, 515, 197, 60362, 25479, 25, 830, 345, 197, 630, 9598, 396, 8233, 1669, 2930, 26987, 8233, 2354, 2648, 1155, 11, 13286, 692, 197, 322, 17101, 264, 501, 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 TestOVSFlowReplay(t *testing.T) { skipIfProviderIs(t, "kind", "stopping OVS daemons create connectivity issues") data, err := setupTest(t) if err != nil { t.Fatalf("Error when setting up test: %v", err) } defer teardownTest(t, data) numPods := 2 podNames := make([]string, numPods) for idx := range podNa...
explode_data.jsonl/49180
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 757 }
[ 2830, 3393, 46, 26050, 18878, 693, 1363, 1155, 353, 8840, 836, 8, 341, 1903, 13389, 2679, 5179, 3872, 1155, 11, 330, 15314, 497, 330, 267, 7008, 506, 26050, 2994, 58296, 1855, 30257, 4714, 1138, 8924, 11, 1848, 1669, 6505, 2271, 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 TestCreateFileShareDBEntry(t *testing.T) { var in = &model.FileShareSpec{ BaseModel: &model.BaseModel{}, Name: "sample-fileshare-01", Description: "This is a sample fileshare for testing", Size: int64(1), ProfileId: "b3585ebe-c42c-120g-b28e-f373746a71ca", Status: model.FileShare...
explode_data.jsonl/29980
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1288 }
[ 2830, 3393, 4021, 1703, 12115, 3506, 5874, 1155, 353, 8840, 836, 8, 341, 2405, 304, 284, 609, 2528, 8576, 12115, 8327, 515, 197, 66732, 1712, 25, 256, 609, 2528, 13018, 1712, 38837, 197, 21297, 25, 286, 330, 13611, 14203, 19368, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGenerateToken(t *testing.T) { rand.Seed(int64(99)) type args struct { ctx context.Context } tests := []struct { name string args args want string wantErr bool }{ // TODO: Add test cases. {name: "first", args: args{ctx: context.TODO()}, want: "75ed1842-49e9-bc19-675e-4d1f766213da", w...
explode_data.jsonl/46173
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 323 }
[ 2830, 3393, 31115, 3323, 1155, 353, 8840, 836, 8, 341, 7000, 437, 5732, 291, 1548, 21, 19, 7, 24, 24, 1171, 13158, 2827, 2036, 341, 197, 20985, 2266, 9328, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestSeriesFile_Series(t *testing.T) { sfile := MustOpenSeriesFile(t) defer sfile.Close() series := []Series{ {Name: []byte("cpu"), Tags: models.NewTags(map[string]string{"region": "east"})}, {Name: []byte("cpu"), Tags: models.NewTags(map[string]string{"region": "west"})}, {Name: []byte("mem"), Tags: mode...
explode_data.jsonl/78507
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 395 }
[ 2830, 3393, 25544, 1703, 1098, 4699, 1155, 353, 8840, 836, 8, 341, 1903, 1192, 1669, 15465, 5002, 25544, 1703, 1155, 340, 16867, 274, 1192, 10421, 2822, 197, 19880, 1669, 3056, 25544, 515, 197, 197, 63121, 25, 3056, 3782, 445, 16475, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCodeFloat32(t *testing.T) { var f float32 = 3.14 var n uint64 var buf = make([]byte, 4) n = EncodeFloat32(buf, f) var v float32 n = DecodeFloat32(buf[:n], &v) if v != f { t.Errorf("error %.7f != %.7f", v, f) } if n != SizeofFloat32(f) { t.Errorf("error %d != %d", n, len(buf[:n])) } }
explode_data.jsonl/58551
{ "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, 2078, 5442, 18, 17, 1155, 353, 8840, 836, 8, 341, 2405, 282, 2224, 18, 17, 284, 220, 18, 13, 16, 19, 198, 2405, 308, 2622, 21, 19, 198, 2405, 6607, 284, 1281, 10556, 3782, 11, 220, 19, 340, 9038, 284, 56562, 5442, 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...
3
func TestDeadlineExceeded_InGuild(t *testing.T) { expected := &discordgo.Guild{Name: mockconstants.TestGuild} mnr := &callbacks.DeadlineExceeded{Guild: expected} actual := mnr.InGuild() err := deepEqual(actual, expected) if err != nil { t.Error(err) } }
explode_data.jsonl/56104
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 83593, 840, 94206, 25972, 72574, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 609, 42579, 3346, 1224, 1498, 63121, 25, 7860, 15763, 8787, 72574, 532, 2109, 19618, 1669, 609, 68311, 909, 3149, 1056, 840, 94206, 90, 72574, 25, 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 TestNewCopyFrom(t *testing.T) { a := map[string]interface{}{ "foo": Foo{}, "rand": 10, "date": testDate, "color": testColor, } a2 := CopyFrom(a) if !reflect.DeepEqual(a, a2) { t.Errorf("expected %v, got: %v", a, a2) } }
explode_data.jsonl/81597
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 3564, 12106, 3830, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 2415, 14032, 31344, 67066, 197, 197, 1, 7975, 788, 256, 33428, 38837, 197, 197, 1, 11335, 788, 220, 220, 16, 15, 345, 197, 197, 1, 1028, 788, 220, 1273, 1916,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnpinPost(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() Client := th.Client pinnedPost := th.CreatePinnedPost() pass, resp := Client.UnpinPost(pinnedPost.Id) CheckNoError(t, resp) require.True(t, pass, "should have passed") rpost, err := th.App.GetSinglePost(pinnedPost.Id) require.N...
explode_data.jsonl/5248
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 285 }
[ 2830, 3393, 1806, 13273, 4133, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 271, 3223, 20561, 4133, 1669, 270, 7251, 47, 20561, 4133, 741, 41431...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResolveEnvironmentBuildArgs(t *testing.T) { tests := []struct { description string input []string expected []string mockedEnvironmentResolver func(string) string }{ { description: "replace when environment variable is present and value is not sp...
explode_data.jsonl/69089
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 637 }
[ 2830, 3393, 56808, 12723, 11066, 4117, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 2290, 914, 198, 197, 22427, 3824, 3056, 917, 198, 197, 42400, 1698, 3056, 917, 198, 197, 2109, 67385, 12723, 18190, 2915, 360...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestListContainers(t *testing.T) { dm, err := getDockerManager() if err != nil { t.Errorf("test new docker manager failed. %v", err) } containers, err := dm.ListContainers() if err != nil { t.Errorf("test TestListContainers failed, err [%v]", err) } for _, v := range containers { t.Logf("test TestLis...
explode_data.jsonl/24917
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 852, 74632, 1155, 353, 8840, 836, 8, 341, 2698, 76, 11, 1848, 1669, 633, 35, 13659, 2043, 741, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 1944, 501, 26588, 6645, 4641, 13, 1018, 85, 497, 1848, 340, 197, 532, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestAutobinding(t *testing.T) { t.Run("valid paths", func(t *testing.T) { cfg := Config{ Models: TypeMap{}, AutoBind: []string{ "github.com/vndocker/encrypted-graphql/example/chat", "github.com/vndocker/encrypted-graphql/example/scalars/model", }, Packages: &code.Packages{}, } cfg.Schem...
explode_data.jsonl/38433
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 489 }
[ 2830, 3393, 19602, 674, 3961, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1891, 12716, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 50286, 1669, 5532, 515, 298, 197, 16969, 25, 3990, 2227, 38837, 298, 197, 13253, 9950, 25, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewReceiver_encoding_err(t *testing.T) { c := Config{ Encoding: "foo", } r, err := newReceiver(c, component.ReceiverCreateParams{}, defaultUnmarshallers(), consumertest.NewTracesNop()) require.Error(t, err) assert.Nil(t, r) assert.EqualError(t, err, errUnrecognizedEncoding.Error()) }
explode_data.jsonl/2056
{ "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, 3564, 25436, 37613, 9266, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 5532, 515, 197, 197, 14690, 25, 330, 7975, 756, 197, 532, 7000, 11, 1848, 1669, 501, 25436, 1337, 11, 3692, 2817, 12862, 4021, 4870, 22655, 1638, 1806, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMinLength(t *testing.T) { GenerateValuesAsYaml(t, "minLength.test.schema.json", func(console *tests.ConsoleWrapper, donec chan struct{}) { defer close(donec) // Test boolean type console.ExpectString("Enter a value for stringValue") console.SendLine("short") console.ExpectString("Sorry, your ...
explode_data.jsonl/61758
{ "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, 6217, 4373, 1155, 353, 8840, 836, 8, 341, 197, 31115, 6227, 2121, 56, 9467, 1155, 11, 330, 1065, 4373, 5958, 30892, 4323, 756, 197, 29244, 52818, 353, 23841, 46298, 11542, 11, 2814, 66, 26023, 2036, 28875, 341, 298, 16867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRfDefaultClient(t *testing.T) { httpRFClient = nil SetHTTPClientTimeout(35) client := RfDefaultClient() if client.InsecureClient.HTTPClient.Timeout != time.Duration(35)*time.Second { t.Errorf("Test 1: FAIL: Got unexpected/no timeout") } }
explode_data.jsonl/48201
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 49, 69, 3675, 2959, 1155, 353, 8840, 836, 8, 341, 28080, 17612, 2959, 284, 2092, 198, 22212, 9230, 2959, 7636, 7, 18, 20, 340, 25291, 1669, 431, 69, 3675, 2959, 741, 743, 2943, 5337, 25132, 2959, 27358, 2959, 63977, 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...
2
func TestSetPortSqsAndDevFile(t *testing.T) { cfg, output, err := settings.FromFlags("lambda-router", []string{ "-port", "8000", "-sqs-endpoint", "http://sqs", "-config", "testdata/functions.yml", }) if err != nil { t.Fatalf("Unexpected error: %v", err) } assert.Empty(t, output) expected := settings.De...
explode_data.jsonl/14451
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 185 }
[ 2830, 3393, 1649, 7084, 50, 26358, 3036, 14592, 1703, 1155, 353, 8840, 836, 8, 341, 50286, 11, 2550, 11, 1848, 1669, 5003, 11439, 9195, 445, 12935, 14266, 497, 3056, 917, 515, 197, 197, 34294, 403, 497, 330, 23, 15, 15, 15, 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...
2
func TestHealObjectHandler(t *testing.T) { adminTestBed, err := prepareAdminXLTestBed() if err != nil { t.Fatal("Failed to initialize a single node XL backend for admin handler tests.") } defer adminTestBed.TearDown() // Create an object myobject under bucket mybucket. bucketName := "mybucket" objName := "myo...
explode_data.jsonl/7926
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1109 }
[ 2830, 3393, 1519, 278, 1190, 3050, 1155, 353, 8840, 836, 8, 341, 64394, 2271, 15686, 11, 1848, 1669, 10549, 7210, 36530, 2271, 15686, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 445, 9408, 311, 9468, 264, 3175, 2436, 29881, 19163,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApplyConfigNoneEnabled(t *testing.T) { conf, err := ReadConfig(bytes.NewBufferString(NoServicesConfigString)) require.NoError(t, err) cfg := service.MakeDefaultConfig() err = ApplyFileConfig(conf, cfg) require.NoError(t, err) require.False(t, cfg.Auth.Enabled) require.Empty(t, cfg.Auth.PublicAddrs) r...
explode_data.jsonl/47165
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 280 }
[ 2830, 3393, 28497, 2648, 4064, 5462, 1155, 353, 8840, 836, 8, 341, 67850, 11, 1848, 1669, 4457, 2648, 23158, 7121, 4095, 703, 7, 2753, 11025, 2648, 703, 1171, 17957, 35699, 1155, 11, 1848, 692, 50286, 1669, 2473, 50133, 3675, 2648, 741,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test2LevelSubTreeWithNack(t *testing.T) { ctx := context.Background() ctx, cancel := context.WithTimeout(ctx, time.Second) defer cancel() workChan := make(chan *TestWork, 100) workChan2 := make(chan *TestWork, 1000) for i := 0; i < 5; i++ { go level1Worker(t, workChan, workChan2) } for i := 0; i < 10; i...
explode_data.jsonl/51892
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 418 }
[ 2830, 3393, 17, 4449, 3136, 6533, 2354, 45, 473, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 20985, 11, 9121, 1669, 2266, 26124, 7636, 7502, 11, 882, 32435, 340, 16867, 9121, 2822, 97038, 46019, 1669, 1281, 35190, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEncodeUnquoted(t *testing.T) { encoded := Encode("GET key") expected := "*2\r\n$3\r\nGET\r\n$3\r\nkey\r\n" if encoded != expected { t.Fatal("Encode should handle unquoted args") } }
explode_data.jsonl/71592
{ "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, 32535, 1806, 63725, 1155, 353, 8840, 836, 8, 341, 197, 19329, 1669, 56562, 445, 3806, 1376, 1138, 42400, 1669, 15630, 17, 12016, 1699, 3, 18, 12016, 1699, 3806, 12016, 1699, 3, 18, 12016, 1699, 792, 12016, 1699, 698, 743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCertificateRequestOperationValidateInvalidAlias(t *testing.T) { operation := certificateRequestOperation{ domainName: "example.com", aliases: []string{"z"}, // Invalid } errs := operation.validate() if len(errs) != 1 { t.Errorf("Invalid number of errors; want 1, got: %d", len(errs)) } if stri...
explode_data.jsonl/29940
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 175 }
[ 2830, 3393, 33202, 1900, 8432, 17926, 7928, 22720, 1155, 353, 8840, 836, 8, 341, 197, 9262, 1669, 15748, 1900, 8432, 515, 197, 2698, 3121, 675, 25, 330, 8687, 905, 756, 197, 197, 33924, 25, 262, 3056, 917, 4913, 89, 14345, 442, 13882,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConverter_InputFromGraphQL(t *testing.T) { // given testCases := []struct { Name string Input *graphql.VersionInput Expected *model.VersionInput }{ { Name: "All properties given", Input: fixGQLVersionInput("foo", true, "bar", false), Expected: fixModelVersionInput("foo", true,...
explode_data.jsonl/37070
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 338 }
[ 2830, 3393, 14920, 48653, 3830, 88637, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 18185, 37302, 1669, 3056, 1235, 341, 197, 21297, 257, 914, 198, 197, 66588, 262, 353, 38294, 35842, 2505, 198, 197, 197, 18896, 353, 2528, 35842, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseTokenRequestNoAuth(t *testing.T) { r := newRequest(map[string]string{ "grant_type": PasswordGrantType, "client_id": "foo", "client_secret": "bar", "username": "baz", "password": "qux", }) req, err := ParseTokenRequest(r) assert.NoError(t, err) assert.Equal(t, "password", r...
explode_data.jsonl/1724
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 216 }
[ 2830, 3393, 14463, 3323, 1900, 2753, 5087, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 501, 1900, 9147, 14032, 30953, 515, 197, 197, 1, 51627, 1819, 788, 262, 12362, 67971, 929, 345, 197, 197, 1, 2972, 842, 788, 257, 330, 7975, 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...
1
func TestAttributeDecoding(t *testing.T) { exampleJson := []byte(`{"fields":{"age":{"Kind":{"NumberValue":34}},"bool":{"Kind":{"BoolValue":true}},"list":{"Kind":{"ListValue":{"values":[{"Kind":{"NumberValue":1}},{"Kind":{"NumberValue":2}},{"Kind":{"NumberValue":3}},{"Kind":{"NumberValue":4}}]}}},"name":{"Kind":{"Strin...
explode_data.jsonl/2473
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 368 }
[ 2830, 3393, 3907, 4900, 3700, 1155, 353, 8840, 836, 8, 341, 8122, 1516, 5014, 1669, 3056, 3782, 5809, 4913, 9007, 22317, 424, 22317, 10629, 22317, 2833, 1130, 788, 18, 19, 3417, 1335, 2641, 22317, 10629, 22317, 11233, 1130, 788, 1866, 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...
7
func TestGCSGetBackendForURI(t *testing.T) { b, err := GetBackendForURI(testBucketGood) if err != nil { t.Errorf("Error while trying to get backend: %v", err) } if _, ok := b.(*GoogleCloudStorageBackend); !ok { t.Errorf("Expected to get a backend of type GoogleCloudStorageBackend, but did not.") } }
explode_data.jsonl/66360
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 38, 6412, 1949, 29699, 2461, 10301, 1155, 353, 8840, 836, 8, 341, 2233, 11, 1848, 1669, 2126, 29699, 2461, 10301, 8623, 36018, 15216, 340, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 1454, 1393, 4460, 311, 633, 19163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_swapRuleV3_AssignOffset(t *testing.T) { type args struct { lenShardSubstitute int lenCommittees int numberOfFixedValidators int minCommitteeSize int } tests := []struct { name string s *swapRuleV3 args args want int }{ { name: "lenCommittees < max assign perce...
explode_data.jsonl/62410
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 503 }
[ 2830, 3393, 40991, 11337, 53, 18, 62222, 622, 6446, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 33111, 2016, 567, 3136, 7660, 414, 526, 198, 197, 33111, 33441, 29800, 1843, 526, 198, 197, 197, 37823, 13520, 31748, 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...
2
func TestArchiveDisabled(t *testing.T) { f := NewFactory() f.archiveConfig = &mockClientBuilder{Configuration: escfg.Configuration{Enabled: false}} w, err := f.CreateArchiveSpanWriter() assert.Nil(t, w) assert.Nil(t, err) r, err := f.CreateArchiveSpanReader() assert.Nil(t, r) assert.Nil(t, err) }
explode_data.jsonl/37910
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 121 }
[ 2830, 3393, 42502, 25907, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 1532, 4153, 741, 1166, 82232, 2648, 284, 609, 16712, 2959, 3297, 90, 7688, 25, 3835, 4817, 17334, 90, 5462, 25, 895, 11248, 6692, 11, 1848, 1669, 282, 7251, 42502, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDependencyMockOutputMergeWithStateNoOverride(t *testing.T) { t.Parallel() cleanupTerraformFolder(t, TEST_FIXTURE_GET_OUTPUT) tmpEnvPath := copyEnvironment(t, TEST_FIXTURE_GET_OUTPUT) rootPath := util.JoinPath(tmpEnvPath, TEST_FIXTURE_GET_OUTPUT, "mock-outputs-merge-with-state", "merge-with-state-no-overri...
explode_data.jsonl/10138
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 670 }
[ 2830, 3393, 36387, 11571, 5097, 52096, 2354, 1397, 2753, 2177, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 60639, 51, 13886, 627, 13682, 1155, 11, 13602, 42635, 41486, 12702, 23981, 340, 20082, 14359, 1820, 1669, 2975, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMarshal_Challenge(t *testing.T) { t.Parallel() bytes, _ := getChallengeReference().Marshal() assert.Equal(t, testChallengeFromAcceptor, hex.EncodeToString(bytes), "Marshalling did not yield the expected result.") }
explode_data.jsonl/54234
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 76 }
[ 2830, 3393, 55438, 27588, 15832, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 70326, 11, 716, 1669, 633, 62078, 8856, 1005, 55438, 741, 6948, 12808, 1155, 11, 1273, 62078, 3830, 11654, 15349, 11, 12371, 50217, 5870, 23158, 1326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_MockKV(t *testing.T) { k1 := &mockTestKV{} prefix := make(map[string][]string) k1.loadWithPrefix = func(key string, ts typeutil.Timestamp) ([]string, []string, error) { if val, ok := prefix[key]; ok { return nil, val, nil } return nil, nil, fmt.Errorf("load prefix error") } _, err := NewMetaTab...
explode_data.jsonl/67321
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1113 }
[ 2830, 3393, 1245, 1176, 82707, 1155, 353, 8840, 836, 8, 341, 16463, 16, 1669, 609, 16712, 2271, 82707, 16094, 3223, 5060, 1669, 1281, 9147, 14032, 45725, 917, 340, 16463, 16, 5104, 2354, 14335, 284, 2915, 4857, 914, 11, 10591, 943, 1314...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestEditorCaretConsistency(t *testing.T) { gtx := layout.Context{ Ops: new(op.Ops), Constraints: layout.Exact(image.Pt(100, 100)), } cache := text.NewCache(gofont.Collection()) fontSize := unit.Px(10) font := text.Font{} for _, a := range []text.Alignment{text.Start, text.Middle, text.End} { e ...
explode_data.jsonl/27263
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 823 }
[ 2830, 3393, 9410, 34, 11302, 15220, 47094, 1155, 353, 8840, 836, 8, 341, 3174, 3998, 1669, 6789, 9328, 515, 197, 197, 38904, 25, 260, 501, 17096, 8382, 1690, 1326, 197, 197, 12925, 25, 6789, 5121, 531, 10075, 1069, 83, 7, 16, 15, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestFilteredByNonExistingPrefix(t *testing.T) { name := "carotte" ghLabel := &github.Label{ Name: &name, } prefixes := []string{"to", "cour"} assert.False(t, FilteredBy(HasPrefix, prefixes)(ghLabel)) }
explode_data.jsonl/16587
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 84 }
[ 2830, 3393, 67310, 1359, 8121, 53067, 14335, 1155, 353, 8840, 836, 8, 341, 11609, 1669, 330, 6918, 50011, 698, 197, 866, 2476, 1669, 609, 5204, 4679, 515, 197, 21297, 25, 609, 606, 345, 197, 630, 3223, 5060, 288, 1669, 3056, 917, 4913...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientRetryRequestWithCustomDecider(t *testing.T) { t.Parallel() dialsCount := 0 c := &Client{ Dial: func(addr string) (net.Conn, error) { dialsCount++ switch dialsCount { case 1: return &singleReadConn{ s: "invalid response", }, nil case 2: return &writeErrorConn{}, nil c...
explode_data.jsonl/79372
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 554 }
[ 2830, 3393, 2959, 51560, 1900, 2354, 10268, 4900, 1776, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2698, 10309, 2507, 1669, 220, 15, 198, 1444, 1669, 609, 2959, 515, 197, 10957, 530, 25, 2915, 24497, 914, 8, 320, 4711, 504...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRewriteWithLazyImage(t *testing.T) { description := `<img src="" data-url="https://example.org/image.jpg" alt="Image"><noscript><img src="https://example.org/fallback.jpg" alt="Fallback"></noscript>` output := Rewriter("https://example.org/article", description, "add_dynamic_image") expected := `<img src="h...
explode_data.jsonl/21480
{ "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, 58465, 1247, 2354, 39766, 1906, 1155, 353, 8840, 836, 8, 341, 42407, 1669, 30586, 1892, 2286, 8407, 821, 25443, 428, 2428, 1110, 8687, 2659, 23349, 4819, 1, 4797, 428, 1906, 3088, 36391, 1228, 1784, 1892, 2286, 428, 2428, 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 TestCreatePostPublic(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() Client := th.Client post := &model.Post{ChannelId: th.BasicChannel.Id, Message: "#hashtag a" + model.NewId() + "a"} user := model.User{Email: th.GenerateTestEmail(), Nickname: "Joram Wilander", Password: "hello1", Username: ...
explode_data.jsonl/5240
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 539 }
[ 2830, 3393, 4021, 4133, 12676, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 271, 51172, 1669, 609, 2528, 23442, 90, 9629, 764, 25, 270, 48868, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListClusterTemplates(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleListClusterTemplateSuccessfully(t) count := 0 sc := fake.ServiceClient() sc.Endpoint = sc.Endpoint + "v1/" clustertemplates.List(sc, clustertemplates.ListOpts{Limit: 2}).EachPage(func(page pagination.Page) (bool, error)...
explode_data.jsonl/20365
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 258 }
[ 2830, 3393, 852, 28678, 51195, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 2822, 197, 6999, 852, 28678, 7275, 35959, 1155, 692, 18032, 1669, 220, 15, 271, 29928, 1669, 12418, 13860, 2959, 741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfigRootCAs(t *testing.T) { f, err := ioutil.TempFile(os.TempDir(), "kubeadm-external-etcd-test-cafile") if err != nil { t.Errorf("failed configRootCAs:\n\texpected: succeed creating temp CA file\n\tactual:%v", err) } defer os.Remove(f.Name()) if err := ioutil.WriteFile(f.Name(), []byte(externalEtcdRo...
explode_data.jsonl/20509
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 361 }
[ 2830, 3393, 2648, 8439, 34, 2121, 1155, 353, 8840, 836, 8, 341, 1166, 11, 1848, 1669, 43144, 65009, 1703, 9638, 65009, 6184, 1507, 330, 74, 392, 3149, 76, 12, 20921, 96010, 4385, 16839, 50777, 1192, 1138, 743, 1848, 961, 2092, 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...
5