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 TestObjectStat(t *testing.T) { obj := "QmZTR5bcpQD7cFgTorqxZDYaew1Wqgfbd2ud9QqGPAkK2V" is := is.New(t) s := NewShell(shellUrl) stat, err := s.ObjectStat("QmZTR5bcpQD7cFgTorqxZDYaew1Wqgfbd2ud9QqGPAkK2V") is.Nil(err) is.Equal(stat.Hash, obj) is.Equal(stat.LinksSize, 3) is.Equal(stat.CumulativeSize, 1688) }
explode_data.jsonl/61088
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 181 }
[ 2830, 3393, 1190, 15878, 1155, 353, 8840, 836, 8, 341, 22671, 1669, 330, 48, 76, 57, 2378, 20, 65, 4672, 48, 35, 22, 66, 37, 70, 32350, 88735, 57, 35, 62893, 365, 16, 54, 80, 45124, 8940, 17, 661, 24, 48, 80, 38, 8041, 74, 42,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHostClientPost(t *testing.T) { t.Parallel() skipIfNotUnix(t) addr := "./TestHostClientPost.unix" s := startEchoServer(t, "unix", addr) defer s.Stop() c := createEchoClient(t, "unix", addr) testHostClientPost(t, c, 100) }
explode_data.jsonl/79382
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 100 }
[ 2830, 3393, 9296, 2959, 4133, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1903, 13389, 2679, 2623, 55832, 1155, 340, 53183, 1669, 5924, 2271, 9296, 2959, 4133, 6307, 941, 698, 1903, 1669, 1191, 74994, 5475, 1155, 11, 330, 566...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPersistenceLayer_Query(t *testing.T) { tests := []struct { name string db *mockQueryEventDatabase expectedResult EventsResult expectError bool argAssertions []assertion }{ { "find accounts error", &mockQueryEventDatabase{ findAccountsErr: errors.New("did not wo...
explode_data.jsonl/45975
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1644 }
[ 2830, 3393, 71562, 9188, 48042, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 1843, 914, 198, 197, 20939, 1797, 353, 16712, 2859, 1556, 5988, 198, 197, 42400, 2077, 17627, 2077, 198, 197, 24952, 1454, 262, 1807...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewStrArrayFromCopy(t *testing.T) { gtest.C(t, func(t *gtest.T) { a1 := []string{"0", "1", "2", "3", "4", "5", "6"} a2 := garray.NewStrArrayFromCopy(a1) a3 := garray.NewStrArrayFromCopy(a1, true) t.Assert(a2.Contains("1"), true) t.Assert(a2.Len(), 7) t.Assert(a2, a3) }) }
explode_data.jsonl/53102
{ "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, 3564, 2580, 1857, 3830, 12106, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 11323, 16, 1669, 3056, 917, 4913, 15, 497, 330, 16, 497, 330, 17, 497, 330, 18, 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 TestEvents(t *testing.T) { expectedURL := "/events" filters := filters.NewArgs() filters.Add("label", "label1") filters.Add("label", "label2") expectedFiltersJSON := `{"label":{"label1":true,"label2":true}}` eventsCases := []struct { options types.EventsOptions expectedQueryParams map[strin...
explode_data.jsonl/29018
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 771 }
[ 2830, 3393, 7900, 1155, 353, 8840, 836, 8, 341, 42400, 3144, 1669, 3521, 12389, 1837, 1166, 8612, 1669, 13406, 7121, 4117, 741, 1166, 8612, 1904, 445, 1502, 497, 330, 1502, 16, 1138, 1166, 8612, 1904, 445, 1502, 497, 330, 1502, 17, 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...
4
func TestIssue11594(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec(`drop table if exists t1;`) tk.MustExec("CREATE TABLE t1 (v bigint(20) UNSIGNED NOT NULL);") tk.MustExec("INSERT INTO t1 VALUES (1), (2);") tk.Must...
explode_data.jsonl/65498
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 287 }
[ 2830, 3393, 42006, 16, 16, 20, 24, 19, 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 TestGenesis(t *testing.T) { const genesis = ` { "msgfee": [ { "msg_path": "foo/bar", "fee": {"whole": 1, "fractional": 2, "ticker": "DOGE"} }, { "msg_path": "a/b", "fee": {"whole": 2, "fractional": 0, "ticker": "ETH"} } ] } ` var opts weave.Options if err := json.Unmarshal([]byte(genesis)...
explode_data.jsonl/46511
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 472 }
[ 2830, 3393, 84652, 1155, 353, 8840, 836, 8, 341, 4777, 59366, 284, 22074, 515, 197, 1, 3236, 30017, 788, 2278, 197, 197, 515, 298, 197, 1, 3236, 2638, 788, 330, 7975, 49513, 756, 298, 197, 1, 30017, 788, 5212, 66633, 788, 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...
7
func TestRouterMultiLevelCatchAll(t *testing.T) { // Create empty handler h := new(Handler) // Create empty context c := new(Context) c.Params = Params{} // Create route r := Route("/a/b/*", h) // Matching routes rs := []string{"/a/b/c", "a/b/c", "/a/b/c/d/e", "a/b/c/d"} // Check for _, s := range rs { ...
explode_data.jsonl/35797
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 183 }
[ 2830, 3393, 9523, 20358, 4449, 57760, 2403, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 4287, 7013, 198, 9598, 1669, 501, 7, 3050, 692, 197, 322, 4230, 4287, 2266, 198, 1444, 1669, 501, 14001, 340, 1444, 58268, 284, 34352, 31483, 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...
3
func TestUploadHeapTryUpdate(t *testing.T) { if testing.Short() { t.SkipNow() } t.Parallel() // Create renter and define shorter named helper for uploadHeap rt, err := newRenterTester(t.Name()) if err != nil { t.Fatal(err) } defer func() { if err := rt.renter.Close(); err != nil { t.Fatal(err) } }(...
explode_data.jsonl/3315
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1854 }
[ 2830, 3393, 13844, 27909, 21453, 4289, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 7039, 741, 197, 532, 3244, 41288, 7957, 2822, 197, 322, 4230, 8016, 261, 323, 6979, 23327, 6941, 13137, 369, 8135, 27909,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetBalance(t *testing.T) { const responseBody = `[ { "currency_code": "JPY", "amount": 1024078, "available": 508000 }, { "currency_code": "BTC", "amount": 10.24, "available": 4.12 }, { "currency_code": "ETH", "amount": 20.48, "available": 16.38 } ]` const ( a...
explode_data.jsonl/54012
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 610 }
[ 2830, 3393, 1949, 21190, 1155, 353, 8840, 836, 8, 341, 4777, 98065, 284, 1565, 9640, 220, 341, 262, 330, 15973, 4136, 788, 330, 27188, 56, 756, 262, 330, 6045, 788, 220, 16, 15, 17, 19, 15, 22, 23, 345, 262, 330, 10334, 788, 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 TestUnpack(t *testing.T) { headerBuffer := make([]byte, 10) tests := []struct { name string header []byte }{ { name: "UnpackTest", header: headerBuffer, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { h := &PackageHeader{} h.Unpack(tt.header) }) } }
explode_data.jsonl/19768
{ "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, 1806, 4748, 1155, 353, 8840, 836, 8, 341, 20883, 4095, 1669, 1281, 10556, 3782, 11, 220, 16, 15, 340, 78216, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 20883, 3056, 3782, 198, 197, 59403, 197, 197, 515, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAssignDefaultAddonImages(t *testing.T) { customImage := "myimage" defaultAddonImages := map[string]string{ TillerAddonName: "gcr.io/kubernetes-helm/tiller:v2.11.0", ACIConnectorAddonName: "microsoft/virtual-kubelet:latest", ClusterAutoscalerAddonName: "k8s.gcr.io...
explode_data.jsonl/33863
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1567 }
[ 2830, 3393, 28933, 3675, 84312, 14228, 1155, 353, 8840, 836, 8, 341, 1444, 1450, 1906, 1669, 330, 2408, 1805, 698, 11940, 84312, 14228, 1669, 2415, 14032, 30953, 515, 197, 10261, 15252, 84312, 675, 25, 503, 330, 70, 5082, 4245, 79587, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestNewEndpoints(t *testing.T) { t.Run("disabled", func(t *testing.T) { e := newEndpoints(&config.AgentConfig{Enabled: false}, "") _, ok := e[0].(*nullEndpoint) assert.True(t, ok) }) t.Run("panic", func(t *testing.T) { for name, tt := range map[string]struct { cfg *config.AgentConfig err string ...
explode_data.jsonl/1532
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1395 }
[ 2830, 3393, 3564, 80786, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 11978, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 7727, 1669, 501, 80786, 2099, 1676, 88869, 2648, 90, 5462, 25, 895, 2137, 14676, 197, 197, 6878, 5394, 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 TestRequestHandlerWithIllegalRouterRule(t *testing.T) { meta := middleware.Metadata{Properties: map[string]string{ "rule": "^[A-Za-z0-9/._-]+$", }} log := logger.NewLogger("routerchecker.test") rchecker := NewMiddleware(log) handler, err := rchecker.GetHandler(meta) assert.Nil(t, err) var ctx fasthttp.Re...
explode_data.jsonl/34015
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 238 }
[ 2830, 3393, 1900, 3050, 2354, 33713, 9523, 11337, 1155, 353, 8840, 836, 8, 341, 84004, 1669, 29679, 46475, 90, 7903, 25, 2415, 14032, 30953, 515, 197, 197, 1, 12937, 788, 330, 27736, 32, 39279, 9141, 15, 12, 24, 14, 1436, 12, 65778, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_NewFileStore(t *testing.T) { storedir := "/tmp/TestStore/_new" f := NewFileStore(storedir) if f.opened { t.Fatalf("filestore was opened without opening it") } if f.directory != storedir { t.Fatalf("filestore directory is wrong") } // storedir might exist or might not, just like with a real client ...
explode_data.jsonl/37283
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 139 }
[ 2830, 3393, 39582, 1703, 6093, 1155, 353, 8840, 836, 8, 341, 18388, 3018, 404, 1669, 3521, 5173, 80527, 6093, 19632, 931, 698, 1166, 1669, 1532, 1703, 6093, 5895, 3018, 404, 340, 743, 282, 5826, 291, 341, 197, 3244, 30762, 445, 1192, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApplyDiff(t *testing.T) { tcd.WithObjs(t, []tcdata.TCObj{ tcdata.CDNs, tcdata.Types, tcdata.Tenants, tcdata.Parameters, tcdata.Profiles, tcdata.ProfileParameters, tcdata.Divisions, tcdata.Regions, tcdata.PhysLocations, tcdata.CacheGroups, tcdata.Servers, tcdata.Topologies, tcdata.DeliveryServices}, ...
explode_data.jsonl/13549
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1274 }
[ 2830, 3393, 28497, 21751, 1155, 353, 8840, 836, 8, 341, 3244, 4385, 26124, 4121, 2519, 1155, 11, 3056, 10413, 691, 836, 34, 5261, 515, 197, 78255, 691, 727, 31264, 82, 11, 17130, 691, 29147, 11, 17130, 691, 836, 268, 1783, 11, 17130, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWithDiscoveryFilter(t *testing.T) { ctx := mocks.NewMockContext(mspmocks.NewMockSigningIdentity("test", mspID1)) config := &config{ EndpointConfig: mocks.NewMockEndpointConfig(), peers: channelPeers, } ctx.SetEndpointConfig(config) discClient := clientmocks.NewMockDiscoveryClient() clientPr...
explode_data.jsonl/43217
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 924 }
[ 2830, 3393, 2354, 67400, 5632, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 68909, 7121, 11571, 1972, 35680, 5187, 25183, 7121, 11571, 93358, 18558, 445, 1944, 497, 296, 2154, 915, 16, 1171, 25873, 1669, 609, 1676, 515, 197, 197, 27380, 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 TestFindTestsTesting(t *testing.T) { test := ` package foo // foo does not import "testing", but defines Examples. func Example() {} func ExampleA() {} ` pkgs := create(t, test) _, tests, benchmarks, examples := ssa.FindTests(pkgs) if len(tests) > 0 { t.Errorf("FindTests.tests = %s, want none", tests) } ...
explode_data.jsonl/24604
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 9885, 18200, 16451, 1155, 353, 8840, 836, 8, 341, 18185, 1669, 22074, 1722, 15229, 271, 322, 15229, 1558, 537, 1159, 330, 8840, 497, 714, 18653, 25311, 382, 2830, 13383, 368, 5613, 2830, 13383, 32, 368, 5613, 3989, 3223, 74,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnArchiveConversation(t *testing.T) { http.HandleFunc("/conversations.unarchive", okJSONHandler) once.Do(startServer) api := New("testing-token", OptionAPIURL("http://"+serverAddr+"/")) err := api.UnArchiveConversation("CXXXXXXXX") if err != nil { t.Errorf("Unexpected error: %s", err) return } }
explode_data.jsonl/78540
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 120 }
[ 2830, 3393, 1806, 42502, 60313, 1155, 353, 8840, 836, 8, 341, 28080, 63623, 4283, 443, 72995, 6307, 16019, 497, 5394, 5370, 3050, 340, 197, 13184, 33596, 10639, 5475, 340, 54299, 1669, 1532, 445, 8840, 34841, 497, 6959, 7082, 3144, 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...
2
func TestInvalidBoolsSlice(t *testing.T) { type config struct { BadBools []bool `env:"BADBOOLS"` } os.Setenv("BADBOOLS", "t,f,TRUE,faaaalse") cfg := &config{} assert.Error(t, env.Parse(cfg)) }
explode_data.jsonl/7486
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 92 }
[ 2830, 3393, 7928, 1233, 3069, 33236, 1155, 353, 8840, 836, 8, 341, 13158, 2193, 2036, 341, 197, 12791, 329, 1233, 3069, 3056, 2641, 1565, 3160, 2974, 53572, 10395, 50, 8805, 197, 630, 25078, 4202, 3160, 445, 53572, 10395, 50, 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 TestStaticDatasetQueryUnHappy(t *testing.T) { Convey("Given the graphQL Client is not configured", t, func() { testCtx := context.Background() mockHttpClient := &dphttp.ClienterMock{} cantabularClient := cantabular.NewClient( cantabular.Config{ Host: "cantabular.host", }, mockHttpClient, ...
explode_data.jsonl/8456
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 724 }
[ 2830, 3393, 11690, 33363, 2859, 1806, 32847, 1155, 353, 8840, 836, 8, 1476, 93070, 5617, 445, 22043, 279, 4771, 3588, 8423, 374, 537, 19755, 497, 259, 11, 2915, 368, 341, 197, 18185, 23684, 1669, 2266, 19047, 2822, 197, 77333, 26316, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPdfWithImageHolder(t *testing.T) { err := initTesting() if err != nil { t.Error(err) return } pdf := setupDefaultA4PDF(t) pdf.AddPage() bytesOfImg, err := ioutil.ReadFile("./test/res/PNG_transparency_demonstration_1.png") if err != nil { t.Error(err) return } imgH, err := ImageHolderByBytes...
explode_data.jsonl/60941
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 309 }
[ 2830, 3393, 67596, 2354, 1906, 8589, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 2930, 16451, 741, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 853, 198, 197, 630, 3223, 2940, 1669, 6505, 3675, 32, 19, 23424, 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...
6
func TestDefaultReplicas(t *testing.T) { cluster := &MySQLCluster{} cluster.EnsureDefaults() if cluster.Spec.Replicas != defaultReplicas { t.Errorf("Expected default replicas to be %d but got %d", defaultReplicas, cluster.Spec.Replicas) } }
explode_data.jsonl/22107
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 87 }
[ 2830, 3393, 3675, 18327, 52210, 1155, 353, 8840, 836, 8, 341, 197, 18855, 1669, 609, 59224, 28678, 16094, 197, 18855, 22834, 19098, 16273, 2822, 743, 10652, 36473, 2817, 79, 52210, 961, 1638, 18327, 52210, 341, 197, 3244, 13080, 445, 1889...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseMatchStatements(t *testing.T) { checkParseStatement( t, ` match optional { case Some(x) { print(x) } case None { print("None") } } `, `(match optional (match-case (Some x) (block (expression-statement (call print x)))) (match-case None (block (expression-statement (call pr...
explode_data.jsonl/33527
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 14463, 8331, 93122, 1155, 353, 8840, 836, 8, 341, 25157, 14463, 8636, 1006, 197, 3244, 345, 197, 197, 3989, 197, 47706, 10101, 341, 298, 2722, 4329, 2075, 8, 341, 571, 6900, 2075, 340, 298, 197, 532, 298, 2722, 2240, 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
func Test_KeepAlive(t *testing.T) { endpoint := os.Getenv("ETCD_ENDPOINT") if endpoint == "" { t.Error("not found env ETCD_ENDPOINT or ETCD_ENDPOINT is empty string") return } fmt.Printf("endpoint=[%s]\n", endpoint) Init(endpoint) defer Close() k := "foo" v := "bar" leaseID, err := GrantLease(5) err ...
explode_data.jsonl/27606
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 262 }
[ 2830, 3393, 62, 19434, 32637, 1155, 353, 8840, 836, 8, 341, 6246, 2768, 1669, 2643, 64883, 445, 1348, 6484, 48756, 1138, 743, 14887, 621, 1591, 341, 197, 3244, 6141, 445, 1921, 1730, 6105, 17768, 6484, 48756, 476, 17768, 6484, 48756, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParametricRoutes(t *testing.T) { router := MakeRouter() router.GET("/activity/:user", writeData) router.POST("/activity/:user/:activity", writeData) router.GET("/activity/:user/:activity/comments/:comment", writeData) RunRequest(router, "GET", "/activity/raccoon", 200, "raccoon--", t) RunRequest(router,...
explode_data.jsonl/15099
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 182 }
[ 2830, 3393, 2001, 16340, 26653, 1155, 353, 8840, 836, 8, 341, 67009, 1669, 7405, 9523, 741, 67009, 17410, 4283, 7175, 11315, 872, 497, 3270, 1043, 340, 67009, 14721, 4283, 7175, 11315, 872, 11315, 7175, 497, 3270, 1043, 340, 67009, 17410,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWhoisParsing(t *testing.T) { for _, tt := range []struct { domain string err string }{ {domain: "google.ai", err: "could not parse whois response"}, {domain: "domreg.lt", err: ""}, {domain: "fakedomain.foo", err: "could not parse whois response: Domain not found"}, {domain: "google.cn", err: "...
explode_data.jsonl/69564
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 548 }
[ 2830, 3393, 15191, 285, 68839, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 3056, 1235, 341, 197, 2698, 3121, 914, 198, 197, 9859, 262, 914, 198, 197, 59403, 197, 197, 90, 12204, 25, 330, 17485, 40383, 497, 1848, 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 TestLoggerFatalExpected(t *testing.T) { checkMessages(t, zapcore.DebugLevel, nil, zapcore.FatalLevel, []string{ "hello", "world", "foo", }, func(logger *Logger) { logger.Fatal("hello") logger.Fatalf("world") logger.Fatalln("foo") }) }
explode_data.jsonl/58462
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 113 }
[ 2830, 3393, 7395, 62396, 18896, 1155, 353, 8840, 836, 8, 341, 25157, 15820, 1155, 11, 32978, 2153, 20345, 4449, 11, 2092, 11, 32978, 2153, 26133, 4449, 11, 3056, 917, 515, 197, 197, 1, 14990, 756, 197, 197, 1, 14615, 756, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIsFree(t *testing.T) { s := NewScope() items := []ScopeItem{{10, 80}, {100, 400}, {550, 250}, {900, 600}} for _, v := range items { s.Insert(v.Address, v.Size) } type node struct { addr, size uint64 free bool } nodes := []node{ {5, 4, true}, {5, 5, true}, {10, 80, false}, {90, 10, true},...
explode_data.jsonl/17765
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 283 }
[ 2830, 3393, 3872, 10940, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 10803, 741, 46413, 1669, 3056, 10803, 1234, 2979, 16, 15, 11, 220, 23, 15, 2137, 314, 16, 15, 15, 11, 220, 19, 15, 15, 2137, 314, 20, 20, 15, 11, 220, 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 TestBuild_WithTags(t *testing.T) { // Dependency has several tags checkBuildWithOptionalFields(t, "with-tags", chart.Dependency{ Tags: []string{"tag1", "tag2"}, }) }
explode_data.jsonl/24405
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 64 }
[ 2830, 3393, 11066, 62, 2354, 15930, 1155, 353, 8840, 836, 8, 341, 197, 322, 32977, 702, 3807, 9492, 198, 25157, 11066, 2354, 15309, 8941, 1155, 11, 330, 4197, 63814, 497, 9487, 49918, 515, 197, 10261, 2032, 25, 3056, 917, 4913, 4578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOpenRenamedFileFails(t *testing.T) { testCases := []struct { name string // The original file is renamed if changeFile is true. changeFile bool // The Merkle tree file is renamed if changeMerkleFile is true. changeMerkleFile bool }{ { name: "FileOnly", changeFile: true, ...
explode_data.jsonl/56768
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 733 }
[ 2830, 3393, 5002, 34625, 3606, 1703, 37, 6209, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 197, 322, 576, 4024, 1034, 374, 27280, 421, 2297, 1703, 374, 830, 624, 197, 68380, 1703, 1807...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestSessionBindRoutingKey(t *testing.T) { cluster := createCluster() cluster.PoolConfig.HostSelectionPolicy = TokenAwareHostPolicy(RoundRobinHostPolicy()) session := createSessionFromCluster(cluster, t) defer session.Close() if err := createTable(session, `CREATE TABLE gocql_test.test_bind_routing_key ( ...
explode_data.jsonl/11185
{ "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, 5283, 9950, 24701, 1592, 1155, 353, 8840, 836, 8, 341, 197, 18855, 1669, 1855, 28678, 741, 197, 18855, 89701, 2648, 29840, 11177, 13825, 284, 9660, 58793, 9296, 13825, 2785, 795, 76671, 9296, 13825, 12367, 25054, 1669, 1855, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHookMessageWillBePosted(t *testing.T) { t.Run("rejected", func(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() tearDown, _, _ := SetAppEnvironmentWithPlugins(t, []string{ ` package main import ( "github.com/blastbao/mattermost-server/plugin" "github.com/blastbao/matterm...
explode_data.jsonl/30303
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2402 }
[ 2830, 3393, 31679, 2052, 9945, 3430, 17372, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 95353, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 197, 16867, 270, 836, 682, 4454, 2822, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGlobalVarsOnExit(t *testing.T) { wf := unmarshalWF(globalVarsOnExit) wftmpl := unmarshalWFTmpl(wftmplGlobalVarsOnExit) cancel, controller := newController(wf, wftmpl) defer cancel() woc := newWorkflowOperationCtx(wf, controller) ctx := context.Background() woc.operate(ctx) node := woc.wf.Status.Nodes...
explode_data.jsonl/71025
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 11646, 28305, 1925, 15339, 1155, 353, 8840, 836, 8, 341, 6692, 69, 1669, 650, 27121, 32131, 31951, 28305, 1925, 15339, 340, 6692, 723, 54010, 1669, 650, 27121, 54, 3994, 54010, 3622, 723, 54010, 11646, 28305, 1925, 15339, 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...
4
func TestKeylevelValidationLedgerFailures(t *testing.T) { // Scenario: we validate a transaction that updates // the key-level validation parameters for a key. // we simulate the case where we fail to retrieve // the validation parameters from the ledger with // both deterministic and non-deterministic errors rw...
explode_data.jsonl/80490
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 718 }
[ 2830, 3393, 6608, 967, 889, 13799, 60850, 1389, 19524, 1413, 1155, 353, 8840, 836, 8, 341, 197, 322, 58663, 25, 582, 9593, 264, 7745, 429, 8837, 198, 197, 322, 279, 1376, 11591, 10519, 5029, 369, 264, 1376, 624, 197, 322, 582, 37453, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGeneratePackage(t *testing.T) { generatePackage := func(tool string, pkg *schema.Package, files map[string][]byte) (map[string][]byte, error) { for f := range files { t.Logf("Ignoring extraFile %s", f) } return GeneratePackage(tool, pkg) } test.TestSDKCodegen(t, &test.SDKCodegenOptions{ Languag...
explode_data.jsonl/22934
{ "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, 31115, 13100, 1155, 353, 8840, 836, 8, 341, 3174, 13220, 13100, 1669, 2915, 48950, 914, 11, 24793, 353, 17349, 49834, 11, 3542, 2415, 14032, 45725, 3782, 8, 320, 2186, 14032, 45725, 3782, 11, 1465, 8, 1476, 197, 2023, 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...
2
func TestProcessAssociationUnableToLoadAssociationDetail(t *testing.T) { processor := createProcessor() svcMock := service.NewMockDefault() assocRawData := createAssociationRawData() parserMock := parserMock{} sys = &systemStub{} complianceUploader := complianceUploader.NewMockDefault() // Arrange processor.a...
explode_data.jsonl/74692
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 649 }
[ 2830, 3393, 7423, 63461, 17075, 1249, 5879, 63461, 10649, 1155, 353, 8840, 836, 8, 341, 197, 29474, 1669, 1855, 22946, 741, 1903, 7362, 11571, 1669, 2473, 7121, 11571, 3675, 741, 197, 46877, 20015, 1043, 1669, 1855, 63461, 20015, 1043, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIAVLReverseIterator(t *testing.T) { db := dbm.NewMemDB() tree, err := iavl.NewMutableTree(db, cacheSize) require.NoError(t, err) iavlStore := UnsafeNewStore(tree) iavlStore.Set([]byte{0x00}, []byte("0")) iavlStore.Set([]byte{0x00, 0x00}, []byte("0 0")) iavlStore.Set([]byte{0x00, 0x01}, []byte("0 1"))...
explode_data.jsonl/38063
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 560 }
[ 2830, 3393, 5863, 30698, 45695, 11951, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 2927, 76, 7121, 18816, 3506, 2822, 51968, 11, 1848, 1669, 600, 67311, 7121, 11217, 6533, 9791, 11, 6500, 1695, 340, 17957, 35699, 1155, 11, 1848, 692, 823...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVolumeValidate(t *testing.T) { tests := []struct { volumemount *Volume shouldError bool }{ { nil, false, }, { &Volume{ Name: "", Source: Source{ Secret: map[string]string{ "a": "this is a test", }, }, }, true, }, { &Volume{ Name: "a", Source...
explode_data.jsonl/27199
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 547 }
[ 2830, 3393, 18902, 17926, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 5195, 1132, 336, 629, 353, 18902, 198, 197, 197, 5445, 1454, 1807, 198, 197, 59403, 197, 197, 515, 298, 84131, 345, 298, 36012, 345, 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...
6
func TestSharedMemory(t *testing.T) { assert := assert.New(t) chainID0 := ids.GenerateTestID() chainID1 := ids.GenerateTestID() for _, test := range SharedMemoryTests { m := Memory{} baseDB := memdb.New() memoryDB := prefixdb.New([]byte{0}, baseDB) testDB := prefixdb.New([]byte{1}, baseDB) err := m.Ini...
explode_data.jsonl/45650
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 16997, 10642, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 197, 8819, 915, 15, 1669, 14151, 57582, 2271, 915, 741, 197, 8819, 915, 16, 1669, 14151, 57582, 2271, 915, 2822, 2023, 8358, 1273, 1669, 2088, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEatBodyChunked(t *testing.T) { logp.TestingSetup(logp.WithSelectors("http", "httpdetailed")) msgs := [][]byte{ []byte("03\r"), []byte("\n123\r\n03\r\n123\r"), []byte("\n0\r\n\r\n"), } st := &stream{ data: msgs[0], parseOffset: 0, bodyReceived: 0, parseState: stateBodyChunkedStart,...
explode_data.jsonl/16504
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 764 }
[ 2830, 3393, 88611, 5444, 28304, 291, 1155, 353, 8840, 836, 8, 341, 6725, 79, 8787, 287, 21821, 12531, 79, 26124, 96995, 445, 1254, 497, 330, 1254, 67, 10111, 28075, 21169, 82, 1669, 52931, 3782, 515, 197, 197, 1294, 3782, 445, 15, 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...
4
func TestGauge(t *testing.T) { // just for test originPath := types.MosnConfigPath types.MosnConfigPath = "." defer func() { types.MosnConfigPath = originPath }() zone := InitMetricsZone("TestGauge", 10*1024) defer func() { zone.Detach() Reset() }() entry, err := defaultZone.alloc("TestGauge") if err ...
explode_data.jsonl/70928
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 246 }
[ 2830, 3393, 38, 19392, 1155, 353, 8840, 836, 8, 341, 197, 322, 1101, 369, 1273, 198, 197, 8611, 1820, 1669, 4494, 1321, 436, 77, 2648, 1820, 198, 98785, 1321, 436, 77, 2648, 1820, 284, 330, 2217, 16867, 2915, 368, 341, 197, 98785, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCandidateRecvNewEntry(t *testing.T) { ctx := startup_candidate_test(t) defer teardown_candidate_test(t, ctx) ctx.svr.election_timeout = 3 * time.Second for _, o := range ctx.svr.cluster_info { oo, _ := o.client.(*MockClient) // holy shit oo.ReplaceVoteFunctor(func(id string) func(ctx context.Context,...
explode_data.jsonl/59091
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 532 }
[ 2830, 3393, 63901, 63483, 3564, 5874, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 20567, 62360, 4452, 1155, 340, 16867, 49304, 62360, 4452, 1155, 11, 5635, 340, 20985, 514, 18920, 1734, 1170, 20537, 284, 220, 18, 353, 882, 32435, 198, 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...
1
func TestAPI(t *testing.T) { require := require.New(t) c := New(DefaultCoherentConfig) k1, k2 := [20]byte{1}, [20]byte{2} db := memdb.NewTestDB(t) get := func(key [20]byte, expectTxnID uint64) (res [1]chan []byte) { wg := sync.WaitGroup{} for i := 0; i < len(res); i++ { wg.Add(1) res[i] = make(chan []byt...
explode_data.jsonl/11840
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2296 }
[ 2830, 3393, 7082, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 340, 1444, 1669, 1532, 87874, 7339, 37538, 2648, 340, 16463, 16, 11, 595, 17, 1669, 508, 17, 15, 90184, 90, 16, 2137, 508, 17, 15, 90184, 90, 17, 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 TestFewItemsNoExtend(t *testing.T) { q := New(3) q.Push(0) q.Push(1) q.Push(2) if q.Len() != 3 { t.Fatal("Size does not reflect correct number of items") } q.Pop() if item, ok := q.Pop(); item != 1 || !ok { t.Fatal("Invalid pop return", item, "expected", 1) } q.Push(3) q.Push(4) if q.Len() != 3 { ...
explode_data.jsonl/7365
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 211 }
[ 2830, 3393, 71104, 4353, 2753, 72136, 1155, 353, 8840, 836, 8, 341, 18534, 1669, 1532, 7, 18, 340, 18534, 34981, 7, 15, 340, 18534, 34981, 7, 16, 340, 18534, 34981, 7, 17, 340, 743, 2804, 65819, 368, 961, 220, 18, 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...
7
func Test_SetterNotFound(t *testing.T) { c1 := NewLidi(Settings{}) type A struct{} type B struct { a *A `lidi:"inject(MySetter)"` } if err := c1.Provide(&A{}); err != nil { t.Fatal(err) } if err := c1.Provide(&B{}); err != nil { if err.Error() != "lidi: setter method 'MySetter' not found" { t.Fatal("No...
explode_data.jsonl/40207
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 171 }
[ 2830, 3393, 14812, 465, 10372, 1155, 353, 8840, 836, 8, 341, 1444, 16, 1669, 1532, 43, 12278, 57395, 6257, 692, 13158, 362, 2036, 16094, 13158, 425, 2036, 341, 197, 11323, 353, 32, 1565, 75, 12278, 2974, 32133, 37485, 44294, 8, 8805, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCancelWorkflow_RecoversFromManuallyClosedChannel(t *testing.T) { w := testWorkflow() if w.isCanceled { t.Error("Didn't expect workflow to be canceled.") } close(w.Cancel) w.CancelWorkflow() if !w.isCanceled { t.Error("Expect workflow to be canceled.") } }
explode_data.jsonl/3868
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 108 }
[ 2830, 3393, 9269, 62768, 62, 3820, 8969, 3830, 1658, 1832, 26884, 9629, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 1273, 62768, 741, 743, 289, 2079, 63263, 341, 197, 3244, 6141, 445, 86519, 944, 1720, 28288, 311, 387, 33446, 13053, 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 TestCACommon_GenerateRSAPKCS1PrivateKey(t *testing.T) { if _, errCA = RSAGeneratePriKey(512, pathcarsapksc1512, caPriKeyFileName, "PRIVATE KEY", RSAPKSC1()); nil != errCA { t.Error(errCA) } priData, errCA = ioutil.ReadFile(filepath.Join(pathcarsapksc1512, caPriKeyFileName)) if nil != errCA { t.Error(errCA)...
explode_data.jsonl/24074
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 596 }
[ 2830, 3393, 5049, 10839, 2646, 13220, 11451, 2537, 42, 6412, 16, 75981, 1155, 353, 8840, 836, 8, 341, 743, 8358, 1848, 5049, 284, 23229, 1890, 13220, 92878, 1592, 7, 20, 16, 17, 11, 1815, 50708, 93812, 2388, 16, 20, 16, 17, 11, 2162...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWebhookManagement(t *testing.T) { framework. NewTest(t). Run(func(ctx framework.TestContext) { ctx.Skip("TODO(github.com/istio/istio/issues/20289)") // Test that webhook configurations are enabled through istioctl successfully. args := []string{"experimental", "post-install", "webhook", "enable"...
explode_data.jsonl/46393
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 950 }
[ 2830, 3393, 5981, 20873, 22237, 1155, 353, 8840, 836, 8, 341, 1166, 5794, 624, 197, 197, 3564, 2271, 1155, 4292, 197, 85952, 18552, 7502, 12626, 8787, 1972, 8, 341, 298, 20985, 57776, 445, 14732, 3268, 3827, 905, 14, 380, 815, 14, 380...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateInValidBodyRequest(t *testing.T) { body := invalidWebhookEvent{ ID: "1337", } req := getRequest() JSONBody, _ := json.Marshal(body) req.Body = ioutil.NopCloser(strings.NewReader(string(JSONBody))) client := NewWebhookRequestHandler(req) _, err := client.ValidateAndGetData() assert.Error(...
explode_data.jsonl/25842
{ "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, 17926, 641, 4088, 5444, 1900, 1155, 353, 8840, 836, 8, 1476, 35402, 1669, 8318, 5981, 20873, 1556, 515, 197, 29580, 25, 330, 16, 18, 18, 22, 756, 197, 630, 24395, 1669, 78731, 2822, 197, 5370, 5444, 11, 716, 1669, 2951, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetSenderServiceTagEvent(t *testing.T) { resetAggregator() InitAggregator(nil, "testhostname") senderMetricSampleChan := make(chan senderMetricSample, 10) serviceCheckChan := make(chan metrics.ServiceCheck, 10) eventChan := make(chan metrics.Event, 10) bucketChan := make(chan senderHistogramBucket, 10) ...
explode_data.jsonl/78301
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 399 }
[ 2830, 3393, 1949, 20381, 1860, 5668, 1556, 1155, 353, 8840, 836, 8, 341, 70343, 9042, 58131, 741, 98762, 9042, 58131, 27907, 11, 330, 1944, 27806, 5130, 1903, 1659, 54310, 17571, 46019, 1669, 1281, 35190, 4646, 54310, 17571, 11, 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...
1
func TestApixu_ReadResponseBodyError(t *testing.T) { a := &apixu{ config: Config{}, httpClient: &httpClientMock{ response: &http.Response{ StatusCode: http.StatusOK, Body: &bodyMock{}, }, err: nil, }, read: func(r io.Reader) ([]byte, error) { return []byte{}, errors.New("error") }, ...
explode_data.jsonl/14948
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 183 }
[ 2830, 3393, 10611, 941, 84, 38381, 29637, 1454, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 609, 391, 941, 84, 515, 197, 25873, 25, 5532, 38837, 197, 28080, 2959, 25, 609, 83417, 11571, 515, 298, 21735, 25, 609, 1254, 12574, 515, 571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTombstonedNodes(t *testing.T) { opts := NewOptions() opts.Logger = newTestLogger(t) tcpAddr, httpAddr, nsqlookupd := mustStartLookupd(opts) defer nsqlookupd.Exit() lookupdHTTPAddrs := []string{fmt.Sprintf("%s", httpAddr)} topicName := "inactive_nodes" conn := mustConnectLookupd(t, tcpAddr) defer con...
explode_data.jsonl/12603
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 482 }
[ 2830, 3393, 51, 2855, 7720, 291, 12288, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 1532, 3798, 741, 64734, 12750, 284, 501, 2271, 7395, 1155, 340, 3244, 4672, 13986, 11, 1758, 13986, 11, 12268, 80, 21020, 67, 1669, 1969, 3479, 34247, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateReminder(t *testing.T) { testActorsRuntime := newTestActorsRuntime() actorType, actorID := getTestActorTypeAndID() err := testActorsRuntime.CreateReminder(&CreateReminderRequest{ ActorID: actorID, ActorType: actorType, Name: "reminder1", Period: "1s", DueTime: "1s", Data: ...
explode_data.jsonl/12877
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 147 }
[ 2830, 3393, 4021, 95359, 1155, 353, 8840, 836, 8, 341, 18185, 2414, 1087, 15123, 1669, 501, 2271, 2414, 1087, 15123, 741, 93410, 929, 11, 12089, 915, 1669, 633, 2271, 18870, 929, 3036, 915, 741, 9859, 1669, 1273, 2414, 1087, 15123, 7251...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestListWatchedCMD(t *testing.T) { testTelegramClientInst, answerChan, _ := NewTestMovieBot("./test_data/test_data.sql") updates := make(chan tgbotapi.Update) go testTelegramClientInst.GetWatchedFilms(updates) updates <- tgbotapi.Update{Message: &tgbotapi.Message{Text: "", Chat: &tgbotapi.Chat{ID: 1}}} answer...
explode_data.jsonl/19226
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 852, 14247, 291, 38680, 1155, 353, 8840, 836, 8, 341, 18185, 72244, 2959, 8724, 11, 4226, 46019, 11, 716, 1669, 1532, 2271, 19668, 23502, 13988, 1944, 1769, 12697, 1769, 10045, 1138, 197, 49661, 1669, 1281, 35190, 53188, 6331,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Hoverfly_GetSimulation_ReturnsASingleRequestResponsePair(t *testing.T) { RegisterTestingT(t) unit := NewHoverflyWithConfiguration(&Configuration{}) unit.Simulation.AddPair(&models.RequestMatcherResponsePair{ RequestMatcher: models.RequestMatcher{ Destination: []models.RequestFieldMatchers{ { ...
explode_data.jsonl/45367
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 592 }
[ 2830, 3393, 2039, 1975, 21642, 13614, 64554, 53316, 82, 1911, 2173, 1900, 2582, 12443, 1155, 353, 8840, 836, 8, 341, 79096, 16451, 51, 1155, 692, 81189, 1669, 1532, 34379, 21642, 2354, 7688, 2099, 7688, 6257, 692, 81189, 808, 60361, 1904,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultiMap(t *testing.T) { e := &Env{} e.Set("foo", "bar") e.Set("bar", "baz") e.Set("hello", "world") m := e.MultiMap() e2 := &Env{} e2.Set("old_key", "something something something") e2.InitMultiMap(m) if v := e2.Get("old_key"); v != "" { t.Fatalf("%#v", v) } if v := e2.Get("bar"); v != "baz" { ...
explode_data.jsonl/15391
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 20358, 2227, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 609, 14359, 16094, 7727, 4202, 445, 7975, 497, 330, 2257, 1138, 7727, 4202, 445, 2257, 497, 330, 42573, 1138, 7727, 4202, 445, 14990, 497, 330, 14615, 1138, 2109, 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...
4
func TestMutableTree_LoadVersion_Empty(t *testing.T) { memDB := db.NewMemDB() tree, err := NewMutableTree(memDB, 0) require.NoError(t, err) version, err := tree.LoadVersion(0) require.NoError(t, err) assert.EqualValues(t, 0, version) version, err = tree.LoadVersion(-1) require.NoError(t, err) assert.EqualVal...
explode_data.jsonl/23775
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 157 }
[ 2830, 3393, 11217, 6533, 19553, 5637, 76060, 1595, 1155, 353, 8840, 836, 8, 341, 14145, 3506, 1669, 2927, 7121, 18816, 3506, 741, 51968, 11, 1848, 1669, 1532, 11217, 6533, 39908, 3506, 11, 220, 15, 340, 17957, 35699, 1155, 11, 1848, 692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSharedAutoprovisionVolume(t *testing.T) { taskEngine, done, _ := setupWithDefaultConfig(t) defer done() stateChangeEvents := taskEngine.StateChangeEvents() // Set the task clean up duration to speed up the test taskEngine.(*DockerTaskEngine).cfg.TaskCleanupWaitDuration = 1 * time.Second testTask, tmpDir...
explode_data.jsonl/39473
{ "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, 16997, 19602, 45926, 13013, 18902, 1155, 353, 8840, 836, 8, 341, 49115, 4571, 11, 2814, 11, 716, 1669, 6505, 2354, 3675, 2648, 1155, 340, 16867, 2814, 741, 24291, 4072, 7900, 1669, 3383, 4571, 18942, 4072, 7900, 741, 197, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetData(t *testing.T) { var dataPath = "../test/data/bes3tint.dta" var cfgPath = "../test/data/bes3tint.dsc" var testEprFile, _ = NewEprFile(dataPath, cfgPath) testEprFile.cfg["BSEQ"] = "LIT" data1, _ := testEprFile.GetData() testEprFile.cfg["BSEQ"] = "BIG" data2, _ := testEprFile.GetData() assert.NotE...
explode_data.jsonl/5233
{ "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, 68957, 1155, 353, 8840, 836, 8, 341, 2405, 821, 1820, 284, 7005, 1944, 13167, 3470, 288, 18, 83, 396, 950, 2565, 698, 2405, 13286, 1820, 284, 7005, 1944, 13167, 3470, 288, 18, 83, 396, 950, 2388, 698, 2405, 1273, 36, 649...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrepositions(t *testing.T) { if pass := prepositions("written_by"); !pass { t.Error("Given \"written_by\", prepositions() returned false, expected true") } if pass := prepositions("all_except"); !pass { t.Error("Given \"all_except\", prepositions() returned false, expected true") } if pass := prepos...
explode_data.jsonl/45807
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 236 }
[ 2830, 3393, 4703, 27436, 1155, 353, 8840, 836, 8, 341, 743, 1494, 1669, 855, 27436, 445, 25569, 3710, 5038, 753, 6385, 341, 197, 3244, 6141, 445, 22043, 7245, 25569, 3710, 16215, 855, 27436, 368, 5927, 895, 11, 3601, 830, 1138, 197, 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...
6
func TestUnmarshalWithoutNameType(t *testing.T) { var x TestThree if err := Unmarshal([]byte(withoutNameTypeData), &x); err != nil { t.Fatalf("Unmarshal: %s", err) } if x.Attr != OK { t.Fatalf("have %v\nwant %v", x.Attr, OK) } }
explode_data.jsonl/25292
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 108 }
[ 2830, 3393, 1806, 27121, 26040, 675, 929, 1155, 353, 8840, 836, 8, 341, 2405, 856, 3393, 19641, 198, 743, 1848, 1669, 1230, 27121, 10556, 3782, 16980, 411, 675, 929, 1043, 701, 609, 87, 1215, 1848, 961, 2092, 341, 197, 3244, 30762, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestPathExpr(t *testing.T) { tests := []struct { expr string res document.Value fails bool }{ {"a", document.NewIntegerValue(1), false}, {"b", func() document.Value { fb := document.NewFieldBuffer() err := json.Unmarshal([]byte(`{"foo bar": [1, 2]}`), fb) require.NoError(t, err) return d...
explode_data.jsonl/70245
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 511 }
[ 2830, 3393, 1820, 16041, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 8122, 649, 220, 914, 198, 197, 10202, 256, 2197, 6167, 198, 197, 1166, 6209, 1807, 198, 197, 59403, 197, 197, 4913, 64, 497, 2197, 7121, 3486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPhantomValidation(t *testing.T) { testDBEnv := testEnvs[levelDBtestEnvName] testDBEnv.Init(t) defer testDBEnv.Cleanup() db := testDBEnv.GetDBHandle("TestDB") //populate db with initial data batch := privacyenabledstate.NewUpdateBatch() batch.PubUpdates.Put("ns1", "key1", []byte("value1"), version.NewHe...
explode_data.jsonl/65028
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1464 }
[ 2830, 3393, 3357, 30002, 13799, 1155, 353, 8840, 836, 8, 341, 18185, 3506, 14359, 1669, 1273, 1702, 11562, 64586, 3506, 1944, 14359, 675, 921, 18185, 3506, 14359, 26849, 1155, 340, 16867, 1273, 3506, 14359, 727, 60639, 741, 20939, 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 TestCloudHypervisorStartSandbox(t *testing.T) { assert := assert.New(t) clhConfig, err := newClhConfig() assert.NoError(err) store, err := persist.GetDriver() assert.NoError(err) clhConfig.VMStorePath = store.RunVMStoragePath() clhConfig.RunStorePath = store.RunStoragePath() clh := &cloudHypervisor{ c...
explode_data.jsonl/68502
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 197 }
[ 2830, 3393, 16055, 39, 1082, 31396, 3479, 50, 31536, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 39407, 71, 2648, 11, 1848, 1669, 501, 5066, 71, 2648, 741, 6948, 35699, 3964, 692, 57279, 11, 1848, 1669, 22334, 223...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCandidateVoteSuccess(t *testing.T) { ctx := startup_candidate_test(t) defer teardown_candidate_test(t, ctx) for _, o := range ctx.svr.cluster_info { oo, _ := o.client.(*MockClient) oo.ReplaceVoteFunctor(func(ctx context.Context, req *pb.RequestVoteReq) (*pb.RequestVoteRes, error) { rsp := new(pb.Requ...
explode_data.jsonl/59088
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 268 }
[ 2830, 3393, 63901, 41412, 7188, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 20567, 62360, 4452, 1155, 340, 16867, 49304, 62360, 4452, 1155, 11, 5635, 340, 2023, 8358, 297, 1669, 2088, 5635, 514, 18920, 40501, 3109, 341, 197, 197, 2624, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAgentConnectAuthorize_defaultDeny(t *testing.T) { t.Parallel() assert := assert.New(t) a := NewTestAgent(t.Name(), TestACLConfig()) defer a.Shutdown() args := &structs.ConnectAuthorizeRequest{ Target: "foo", ClientCertURI: connect.TestSpiffeIDService(t, "web").URI().String(), } req, _ := ht...
explode_data.jsonl/33674
{ "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, 16810, 14611, 37483, 9993, 23619, 88, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 6948, 1669, 2060, 7121, 1155, 340, 11323, 1669, 1532, 2271, 16810, 1155, 2967, 1507, 3393, 55393, 2648, 2398, 16867, 264, 10849, 1845...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMessageWorkerStopQueue(t *testing.T) { s1 := newTestSignaler() m1 := message{context: Context{Signal: s1}} s2 := newTestSignaler() m2 := message{context: Context{Signal: s2}} qu := make(chan message, 2) qu <- m1 qu <- m2 stopQueue(qu) assert.False(t, s1.wait()) assert.False(t, s2.wait()) }
explode_data.jsonl/72809
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 127 }
[ 2830, 3393, 2052, 21936, 10674, 7554, 1155, 353, 8840, 836, 8, 341, 1903, 16, 1669, 501, 2271, 7264, 13111, 741, 2109, 16, 1669, 1943, 90, 2147, 25, 9608, 90, 26810, 25, 274, 16, 47449, 1903, 17, 1669, 501, 2271, 7264, 13111, 741, 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 TestTxWithPvtdataMetadata(t *testing.T) { ledgerid, ns, coll := "testtxwithpvtdatametadata", "ns", "coll" btlPolicy := btltestutil.SampleBTLPolicy( map[[2]string]uint64{ {"ns", "coll"}: 1000, }, ) for _, testEnv := range testEnvs { t.Logf("Running test for TestEnv = %s", testEnv.getName()) testEnv.i...
explode_data.jsonl/63624
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 188 }
[ 2830, 3393, 31584, 2354, 47, 9708, 691, 14610, 1155, 353, 8840, 836, 8, 341, 197, 50704, 307, 11, 12268, 11, 4530, 1669, 330, 1944, 3998, 4197, 30168, 1296, 266, 309, 7603, 497, 330, 4412, 497, 330, 17222, 698, 2233, 11544, 13825, 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 TestDequeueLeavesTimeOrdering(t *testing.T) { // Queue two small batches of leaves at different timestamps. Do two separate dequeue // transactions and make sure the returned leaves are respecting the time ordering of the // queue. ctx := context.Background() cleanTestDB(t, db) as := NewAdminStorage(db) t...
explode_data.jsonl/30690
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 985 }
[ 2830, 3393, 1912, 4584, 2304, 4693, 1462, 4431, 287, 1155, 353, 8840, 836, 8, 341, 197, 322, 18745, 1378, 2613, 44792, 315, 10901, 518, 2155, 48781, 13, 3155, 1378, 8651, 83873, 198, 197, 322, 14131, 323, 1281, 2704, 279, 5927, 10901, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConsumer_Metadata(t *testing.T) { for _, tc := range []struct { name string td consumerdata.TraceData }{ {name: "jaeger", td: consumerdata.TraceData{ SourceFormat: "jaeger", Node: &commonpb.Node{ Identifier: &commonpb.ProcessIdentifier{ HostName: "host-foo", Pid: ...
explode_data.jsonl/33582
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 811 }
[ 2830, 3393, 29968, 62219, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 11609, 914, 198, 197, 76373, 256, 11502, 691, 46920, 1043, 198, 197, 59403, 197, 197, 47006, 25, 330, 5580, 1878, 756, 298, 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 TestWRBuffer(t *testing.T) { for _, tc := range []struct { name string want rtests.ROOTer }{ { name: "TFree", want: &freeSegment{ first: 21, last: 24, }, }, { name: "TFree", want: &freeSegment{ first: 21, last: kStartBigFile + 24, }, }, { name: "TKey", want...
explode_data.jsonl/2118
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1876 }
[ 2830, 3393, 17925, 4095, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 11609, 914, 198, 197, 50780, 435, 23841, 13, 23888, 261, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 10808, 765, 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...
8
func TestAddWiredTigerStats(t *testing.T) { d := NewMongodbData( &StatLine{ StorageEngine: "wiredTiger", CacheDirtyPercent: 0, CacheUsedPercent: 0, TrackedDirtyBytes: 0, CurrentCachedBytes: 0, MaxBytesConfigured: 0, AppThreadsPageReadCount: 0,...
explode_data.jsonl/35775
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 499 }
[ 2830, 3393, 2212, 54, 2690, 51, 7272, 16635, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 1532, 44, 21225, 1043, 1006, 197, 197, 5, 15878, 2460, 515, 298, 197, 5793, 4571, 25, 1797, 330, 86, 2690, 51, 7272, 756, 298, 6258, 1777, 36485,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetComment(t *testing.T) { // 初始化请求地址 uri := "/comments" // 发起Get请求 body := util.Get(uri, r) fmt.Printf("response:%v\n", string(body)) // 判断响应是否和预期一致 // if string(body) != "success" { // t.Errorf("响应字符串不符, body:%v\n", string(body)) // } }
explode_data.jsonl/32308
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 170 }
[ 2830, 3393, 1949, 10677, 1155, 353, 8840, 836, 8, 341, 197, 322, 76090, 34859, 46477, 198, 197, 6070, 1669, 3521, 14727, 1837, 197, 322, 69425, 71618, 1949, 34859, 198, 35402, 1669, 4094, 2234, 25797, 11, 435, 340, 11009, 19367, 445, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMerge_WAN(t *testing.T) { cases := []struct { members []*serf.Member expect string }{ // Not a server { members: []*serf.Member{ makeNode("dc2", "node1", "96430788-246f-4379-94ce-257f7429e340", false), }, expect: "not a server", }, // Good cluster. { members: []*...
explode_data.jsonl/82642
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 467 }
[ 2830, 3393, 52096, 2763, 1093, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 2109, 7062, 29838, 799, 69, 46404, 198, 197, 24952, 220, 914, 198, 197, 59403, 197, 197, 322, 2806, 264, 3538, 198, 197, 197, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestAssigningSubscriberIgnoreOutstandingAcks(t *testing.T) { const subscription = "projects/123456/locations/us-central1-b/subscriptions/my-sub" receiver := newTestMessageReceiver(t) msg1 := seqMsgWithOffsetAndSize(11, 100) msg2 := seqMsgWithOffsetAndSize(22, 200) verifiers := test.NewVerifiers(t) // Assig...
explode_data.jsonl/31657
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 827 }
[ 2830, 3393, 28933, 287, 40236, 12497, 2662, 10070, 32, 14553, 1155, 353, 8840, 836, 8, 341, 4777, 15142, 284, 330, 17161, 14, 16, 17, 18, 19, 20, 21, 14, 31309, 62431, 84081, 16, 1455, 37885, 29966, 34198, 17967, 698, 17200, 12862, 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 TestFSGapsInSequenceWithSliceMaxMsgsLimits(t *testing.T) { opts := testFSGetOptionsForGapsTests() for _, o := range opts { t.Run(o.name, func(t *testing.T) { cleanupFSDatastore(t) defer cleanupFSDatastore(t) s := createDefaultFileStore(t, o.opt, SliceConfig(3, 0, 0, "")) defer s.Close() cs :=...
explode_data.jsonl/7784
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 871 }
[ 2830, 3393, 37, 7783, 2625, 641, 14076, 2354, 33236, 5974, 6611, 82, 94588, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 1273, 8485, 1949, 3798, 2461, 38, 2625, 18200, 741, 2023, 8358, 297, 1669, 2088, 12185, 341, 197, 3244, 16708, 10108,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPaymentControlSwitchDoubleSend(t *testing.T) { t.Parallel() db, err := initDB() if err != nil { t.Fatalf("unable to init db: %v", err) } pControl := NewPaymentControl(db) info, attempt, preimg, err := genInfo() if err != nil { t.Fatalf("unable to generate htlc message: %v", err) } // Sends bas...
explode_data.jsonl/73789
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 788 }
[ 2830, 3393, 20188, 3273, 16837, 7378, 11505, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20939, 11, 1848, 1669, 2930, 3506, 741, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 45928, 311, 2930, 2927, 25, 1018, 85, 497, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestEmptyGoPrefix(t *testing.T) { files := []fileSpec{ {path: "WORKSPACE"}, { path: "foo/foo.go", content: "package foo", }, { path: "bar/bar.go", content: ` package bar import ( _ "fmt" _ "foo" ) `, }, } dir, err := createFiles(files) if err != nil { t.Fatal(err) } defer os.Remo...
explode_data.jsonl/40394
{ "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, 3522, 10850, 14335, 1155, 353, 8840, 836, 8, 341, 74075, 1669, 3056, 1192, 8327, 515, 197, 197, 90, 2343, 25, 330, 18470, 44641, 7115, 197, 197, 515, 298, 26781, 25, 262, 330, 7975, 60555, 18002, 756, 298, 27751, 25, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCreateEc2(t *testing.T) { terraformOptions := &terraform.Options{ TerraformDir: "../examples/ec2-test", Vars: map[string]interface{}{}, } defer terraform.Destroy(t, terraformOptions) terraform.InitAndApply(t, terraformOptions) instanceURL := terraform.Output(t, terraformOptions, "instance-...
explode_data.jsonl/78321
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 194 }
[ 2830, 3393, 4021, 50730, 17, 1155, 353, 8840, 836, 8, 1476, 197, 61385, 3798, 1669, 609, 61385, 22179, 515, 197, 10261, 13886, 627, 6184, 25, 7005, 51668, 73058, 17, 16839, 756, 197, 17446, 1561, 25, 260, 2415, 14032, 31344, 6257, 38837...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapProxy_PutTransientWithNilKey(t *testing.T) { testValue := "testingValue" err := mp.PutTransient(nil, testValue, 1, time.Millisecond) AssertErrorNotNil(t, err, "putTransient did not return an error for nil key") mp.Clear() }
explode_data.jsonl/56974
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 3393, 2227, 16219, 1088, 332, 48183, 2354, 19064, 1592, 1155, 353, 8840, 836, 8, 341, 18185, 1130, 1669, 330, 8840, 1130, 698, 9859, 1669, 10490, 39825, 48183, 27907, 11, 1273, 1130, 11, 220, 16, 11, 882, 71482, 340, 18017, 1454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDownloadBatchDownloadDataReadFail(t *testing.T) { dm, cancel := newTestDownloadManager(t) defer cancel() reader := ioutil.NopCloser(iotest.ErrReader(fmt.Errorf("read failed"))) mss := dm.sharedstorage.(*sharedstoragemocks.Plugin) mss.On("DownloadData", mock.Anything, "ref1").Return(reader, nil) _, _,...
explode_data.jsonl/45627
{ "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, 11377, 21074, 11377, 1043, 4418, 19524, 1155, 353, 8840, 836, 8, 1476, 2698, 76, 11, 9121, 1669, 501, 2271, 11377, 2043, 1155, 340, 16867, 9121, 2822, 61477, 1669, 43144, 2067, 453, 51236, 799, 1956, 354, 477, 27862, 5062, 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 TestMatBorderInterpolate(t *testing.T) { n := BorderInterpolate(1, 5, 1) if n == 0 { t.Error("TestBorderInterpolate dst should not be 0.") } }
explode_data.jsonl/81729
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 60 }
[ 2830, 3393, 11575, 10691, 3306, 45429, 1155, 353, 8840, 836, 8, 341, 9038, 1669, 13992, 3306, 45429, 7, 16, 11, 220, 20, 11, 220, 16, 340, 743, 308, 621, 220, 15, 341, 197, 3244, 6141, 445, 2271, 10691, 3306, 45429, 10648, 1265, 537...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestDecodeCmdMessageGetStreamLength(t *testing.T) { bin := []byte{ // nil 0x05, // string: abc 0x02, 0x00, 0x03, 0x61, 0x62, 0x63, } r := bytes.NewReader(bin) d := amf0.NewDecoder(r) var v AMFConvertible err := CmdBodyDecoderFor("getStreamLength", 42)(r, d, &v) assert.Nil(t, err) assert.Equal(t, &...
explode_data.jsonl/7730
{ "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, 32564, 15613, 2052, 1949, 3027, 4373, 1155, 353, 8840, 836, 8, 341, 2233, 258, 1669, 3056, 3782, 515, 197, 197, 322, 2092, 198, 197, 197, 15, 87, 15, 20, 345, 197, 197, 322, 914, 25, 39022, 198, 197, 197, 15, 87, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLeakingBody(t *testing.T) { // Some form of AWS credentials must be set up for tests to succeed awsCreds := fetchMockCredentials() authConfig := AuthConfig{Region: "region", Service: "service"} server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { _, err := v4.GetS...
explode_data.jsonl/19760
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 478 }
[ 2830, 3393, 2304, 1765, 5444, 1155, 353, 8840, 836, 8, 341, 197, 322, 4329, 1352, 315, 23245, 16387, 1969, 387, 738, 705, 369, 7032, 311, 11996, 198, 197, 8635, 34, 53369, 1669, 7807, 11571, 27025, 741, 78011, 2648, 1669, 7366, 2648, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRouter_getSetup(t *testing.T) { t.Run("empty", func(t *testing.T) { rt := router{ config: &config.Config{}, db: &mockGetSetupDatabase{result: true}, } m := gin.New() m.GET("/", rt.getSetup) r := httptest.NewRequest(http.MethodGet, "/", nil) w := httptest.NewRecorder() m.ServeHTTP(w, r...
explode_data.jsonl/11626
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 364 }
[ 2830, 3393, 9523, 3062, 21821, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 3194, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 55060, 1669, 9273, 515, 298, 25873, 25, 609, 1676, 10753, 38837, 298, 20939, 25, 257, 609, 16712, 1949,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStoreWins(t *testing.T) { store := StubPlayerStore{ map[string]int{}, nil,nil, } server := NewPlayerServer(&store) t.Run("it records wins on POST", func(t *testing.T) { player := "Pepper" request := newPostWinRequest(player) response := httptest.NewRecorder() server.ServeHTTP(response, reque...
explode_data.jsonl/29294
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 6093, 96186, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 66611, 4476, 6093, 515, 197, 19567, 14032, 63025, 38837, 197, 84131, 37760, 345, 197, 532, 41057, 1669, 1532, 4476, 5475, 2099, 4314, 692, 3244, 16708, 445, 275, 7424, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKernelMemoryUsage(t *testing.T) { c, err := NewContainer(ContainerName) if err != nil { t.Errorf(err.Error()) } if _, err := c.KernelMemoryUsage(); err != nil { t.Errorf(err.Error()) } }
explode_data.jsonl/2779
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 26343, 10642, 14783, 1155, 353, 8840, 836, 8, 341, 1444, 11, 1848, 1669, 1532, 4502, 75145, 675, 340, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 3964, 6141, 2398, 197, 630, 743, 8358, 1848, 1669, 272, 11352, 5454, 10642, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJoinArgType(t *testing.T) { p := asm.NewPlan([]interface{}{ []interface{}{"join", 1, "x"}, }) err := p.Execute(map[string]interface{}{}) tt.NotNil(t, err) }
explode_data.jsonl/39853
{ "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, 12292, 2735, 929, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 32828, 7121, 20485, 10556, 4970, 67066, 197, 197, 1294, 4970, 6257, 4913, 5987, 497, 220, 16, 11, 330, 87, 7115, 197, 3518, 9859, 1669, 281, 13827, 9147, 14032, 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
func TestRouterParamBacktraceNotFound(t *testing.T) { e := New() r := e.router // Add r.Add(http.MethodGet, "/:param1", func(c Context) error { return nil }) r.Add(http.MethodGet, "/:param1/foo", func(c Context) error { return nil }) r.Add(http.MethodGet, "/:param1/bar", func(c Context) error { return ni...
explode_data.jsonl/47131
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 475 }
[ 2830, 3393, 9523, 2001, 3707, 15067, 10372, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 1532, 741, 7000, 1669, 384, 22125, 271, 197, 322, 2691, 198, 7000, 1904, 19886, 20798, 1949, 11, 3521, 25, 903, 16, 497, 2915, 1337, 9608, 8, 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...
1
func Test_WithoutConfig_MigrationDirectoryExists(t *testing.T) { args := os.Args defer func() { os.Args = args }() os.Args = []string{""} initializeDefaults() _, err := migrationDirectoryExists() if err != nil { t.Error("failed....") t.Log(err) } }
explode_data.jsonl/22638
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 99 }
[ 2830, 3393, 62, 26040, 2648, 1245, 5033, 9310, 15575, 1155, 353, 8840, 836, 8, 341, 31215, 1669, 2643, 51015, 198, 16867, 2915, 368, 314, 2643, 51015, 284, 2827, 50746, 25078, 51015, 284, 3056, 917, 90, 3014, 532, 97129, 16273, 741, 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 TestMailGetMails(t *testing.T) { teardown := setup(t, nil) defer teardown(t) mails := testDb.GetMails() if len(mails) > 0 { t.Errorf("testDb.GetMails() should be 0") } }
explode_data.jsonl/66562
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 81 }
[ 2830, 3393, 16702, 1949, 44, 6209, 1155, 353, 8840, 836, 8, 341, 197, 665, 37496, 1669, 6505, 1155, 11, 2092, 340, 16867, 49304, 1155, 692, 2109, 6209, 1669, 1273, 7994, 2234, 44, 6209, 741, 743, 2422, 1255, 6209, 8, 861, 220, 15, 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 ]
2
func TestMsgTransferNFTGetSignBytesMethod(t *testing.T) { newMsgTransferNFT := types.NewMsgTransferNFT(denomID, denom, id, tokenURI, uriHash, tokenData, address.String(), address2.String()) sortedBytes := newMsgTransferNFT.GetSignBytes() expected := `{"type":"irismod/nft/MsgTransferNFT","value":{"data":"https://goog...
explode_data.jsonl/28171
{ "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, 6611, 21970, 45, 3994, 1949, 7264, 7078, 3523, 1155, 353, 8840, 836, 8, 341, 8638, 6611, 21970, 45, 3994, 1669, 4494, 7121, 6611, 21970, 45, 3994, 1500, 268, 316, 915, 11, 49744, 11, 877, 11, 3950, 10301, 11, 13071, 6370, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccKeycloakDefaultGroups_import(t *testing.T) { realmName := "terraform-" + acctest.RandString(10) groupName := "terraform-group-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ ProviderFactories: testAccProviderFactories, PreCheck: func() { testAccPreCheck(t) }, Steps: []resou...
explode_data.jsonl/28422
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 284 }
[ 2830, 3393, 14603, 1592, 88751, 3675, 22173, 18434, 1155, 353, 8840, 836, 8, 341, 17200, 7673, 675, 1669, 330, 61385, 27651, 488, 1613, 67880, 2013, 437, 703, 7, 16, 15, 340, 44260, 675, 1669, 330, 61385, 4351, 27651, 488, 1613, 67880, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilterAndTransform(t *testing.T) { carotte := "carotte" ghLabelCarotte := &github.Label{ Name: &carotte, } courgette := "courgette" ghLabelCourgette := &github.Label{ Name: &courgette, } tomate := "tomate" ghLabelTomate := &github.Label{ Name: &tomate, } legumes := []*github.Label{ghLabelCar...
explode_data.jsonl/16580
{ "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, 5632, 3036, 8963, 1155, 353, 8840, 836, 8, 341, 1444, 277, 50011, 1669, 330, 6918, 50011, 698, 197, 866, 2476, 8852, 50011, 1669, 609, 5204, 4679, 515, 197, 21297, 25, 609, 6918, 50011, 345, 197, 630, 1444, 413, 455, 665, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadLinesFromByteBuffer(t *testing.T) { testFn := func(byteArray []byte, expected []string) { index := 0 readIndex := 0 for ; readIndex < len(byteArray); index++ { line, n := utiliptables.ReadLine(readIndex, byteArray) readIndex = n if expected[index] != line { t.Errorf("expected:%q, actual...
explode_data.jsonl/9283
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 401 }
[ 2830, 3393, 4418, 16794, 3830, 79229, 1155, 353, 8840, 836, 8, 341, 18185, 24911, 1669, 2915, 19738, 1857, 3056, 3782, 11, 3601, 3056, 917, 8, 341, 197, 26327, 1669, 220, 15, 198, 197, 37043, 1552, 1669, 220, 15, 198, 197, 2023, 2587,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServer_ModifyTx_corrupt(t *testing.T) { scheme := "unix" srcAddr, dstAddr := newUnixAddr(), newUnixAddr() defer func() { os.RemoveAll(srcAddr) os.RemoveAll(dstAddr) }() ln := listen(t, scheme, dstAddr, transport.TLSInfo{}) defer ln.Close() p := NewServer(ServerConfig{ Logger: testLogger, From: ...
explode_data.jsonl/63064
{ "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, 5475, 71485, 1437, 31584, 14734, 6585, 1155, 353, 8840, 836, 8, 341, 1903, 8058, 1669, 330, 56646, 698, 41144, 13986, 11, 10648, 13986, 1669, 501, 55832, 13986, 1507, 501, 55832, 13986, 741, 16867, 2915, 368, 341, 197, 25078, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTempUrl(t *testing.T) { ctx := context.Background() c, rollback := makeConnectionWithContainer(t) defer rollback() err := c.ObjectPutBytes(ctx, CONTAINER, OBJECT, []byte(CONTENTS), "") if err != nil { t.Fatal(err) } defer func() { err = c.ObjectDelete(ctx, CONTAINER, OBJECT) if err != nil { t.F...
explode_data.jsonl/12718
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 607 }
[ 2830, 3393, 12151, 2864, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1444, 11, 60414, 1669, 1281, 4526, 2354, 4502, 1155, 340, 16867, 60414, 741, 9859, 1669, 272, 8348, 19103, 7078, 7502, 11, 16120, 34521, 11, 39786, 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 TestVPCs_Create(t *testing.T) { setup() defer teardown() svc := client.VPCs path := "/v2/vpcs" want := vTestObj req := &VPCCreateRequest{ Name: "my-new-vpc", RegionSlug: "s2r7", } jsonBlob := ` { "vpc": ` + vTestJSON + ` } ` mux.HandleFunc(path, func(w http.ResponseWriter, r *http.Request) {...
explode_data.jsonl/41241
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 300 }
[ 2830, 3393, 53, 4872, 82, 34325, 1155, 353, 8840, 836, 8, 341, 84571, 741, 16867, 49304, 2822, 1903, 7362, 1669, 2943, 5058, 4872, 82, 198, 26781, 1669, 3521, 85, 17, 5457, 47313, 698, 50780, 1669, 348, 2271, 5261, 198, 24395, 1669, 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 TestMembersIntersect(t *testing.T) { members1 := Members{ {PKIid: common.PKIidType("p0"), Endpoint: "p0"}, {PKIid: common.PKIidType("p1"), Endpoint: "p1"}, } members2 := Members{ {PKIid: common.PKIidType("p1"), Endpoint: "p1"}, {PKIid: common.PKIidType("p2"), Endpoint: "p2"}, } assert.Equal(t, Members...
explode_data.jsonl/62279
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 177 }
[ 2830, 3393, 24371, 3306, 9687, 1155, 353, 8840, 836, 8, 341, 2109, 7062, 16, 1669, 16954, 515, 197, 197, 90, 22242, 40, 307, 25, 4185, 1069, 80971, 307, 929, 445, 79, 15, 3975, 47269, 25, 330, 79, 15, 7115, 197, 197, 90, 22242, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1