text
stringlengths
93
16.4k
id
stringlengths
20
40
metadata
dict
input_ids
listlengths
45
2.05k
attention_mask
listlengths
45
2.05k
complexity
int64
1
9
func Test_fsSource_open(t *testing.T) { s := getTestSource(t, "sample-migrations") f, err := s.open(path.Join(s.path, "002_another_text.up.json")) if err != nil { t.Fatalf("unexpected error: %v", err) } defer f.Close() contents, _ := ioutil.ReadAll(f) if bytes.Compare(contents, []byte("{\"2\": \"up\"}")) != 0 ...
explode_data.jsonl/81895
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 161 }
[ 2830, 3393, 34470, 3608, 11311, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 633, 2271, 3608, 1155, 11, 330, 13611, 1448, 17824, 1138, 1166, 11, 1848, 1669, 274, 5826, 5581, 22363, 1141, 3875, 11, 330, 15, 15, 17, 12008, 1575, 4326, 1765...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCfg_New(t *testing.T) { gtest.Case(t, func() { os.Setenv("GF_GCFG_PATH", "config") c := gcfg.New("config.yml") gtest.Assert(c.Get("name"), nil) gtest.Assert(c.GetFileName(), "config.yml") configPath := gfile.Pwd() + gfile.Separator + "config" _ = gfile.Mkdir(configPath) defer func() { _ = gf...
explode_data.jsonl/24451
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 42467, 39582, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 519, 1155, 11, 2915, 368, 341, 197, 25078, 4202, 3160, 445, 36332, 2646, 29075, 7944, 497, 330, 1676, 1138, 197, 1444, 1669, 342, 14072, 7121, 445, 1676, 33936, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDaily(t *testing.T) { now := time.Now() // Create new scheduler to have clean test env s := NewScheduler() // schedule next run 1 day dayJob := s.Every(1).Day() dayJob.scheduleNextRun() tomorrow := now.AddDate(0, 0, 1) expectedTime := time.Date(tomorrow.Year(), tomorrow.Month(), tomorrow.Day(), 0, 0,...
explode_data.jsonl/63503
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 581 }
[ 2830, 3393, 43553, 1155, 353, 8840, 836, 8, 341, 80922, 1669, 882, 13244, 2822, 197, 322, 4230, 501, 28809, 311, 614, 4240, 1273, 6105, 198, 1903, 1669, 1532, 38878, 2822, 197, 322, 9700, 1790, 1598, 220, 16, 1899, 198, 98197, 12245, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMaybeUpdateResourcesWithCancelledContext(t *testing.T) { if testing.Short() { t.Skip("skip test in short mode") } dir, err := ioutil.TempDir("", "xx") if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) sess, err := NewSessionWithAssetsDir(dir) if err != nil { t.Fatal(err) } ctx := sess.NewC...
explode_data.jsonl/78949
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 229 }
[ 2830, 3393, 21390, 4289, 11277, 2354, 39473, 1972, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 20599, 1273, 304, 2805, 3856, 1138, 197, 532, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 414...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDaoSetCaptcha(t *testing.T) { var ( c = context.Background() code = "1234" mid = int64(1) linkMail = "2459593393@qq.com" ) convey.Convey("SetCaptcha", t, func(ctx convey.C) { err := d.SetCaptcha(c, code, mid, linkMail) ctx.Convey("Then err should be nil.", func(ctx convey.C) { ...
explode_data.jsonl/61955
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 12197, 1649, 34, 25431, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 1444, 286, 284, 2266, 19047, 741, 197, 43343, 257, 284, 330, 16, 17, 18, 19, 698, 197, 2109, 307, 414, 284, 526, 21, 19, 7, 16, 340, 197, 54238, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNormProbs(t *testing.T) { dist1, ok := NewNormal([]float64{0, 0}, mat.NewSymDense(2, []float64{1, 0, 0, 1}), nil) if !ok { t.Errorf("bad test") } dist2, ok := NewNormal([]float64{6, 7}, mat.NewSymDense(2, []float64{8, 2, 0, 4}), nil) if !ok { t.Errorf("bad test") } testProbability(t, []probCase{ {...
explode_data.jsonl/12019
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 24993, 1336, 1279, 1155, 353, 8840, 836, 8, 341, 74482, 16, 11, 5394, 1669, 1532, 12206, 10556, 3649, 21, 19, 90, 15, 11, 220, 15, 2137, 5517, 7121, 27912, 35, 1117, 7, 17, 11, 3056, 3649, 21, 19, 90, 16, 11, 220, 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...
3
func TestQemuLauncherWithQemuFailure(t *testing.T) { // Enable subprocess mocking ExecCommand = mockCommand defer func() { ExecCommand = exec.Command }() build, _ := newMockBuild() defer os.RemoveAll(build.(*mockBuild).enableQemu(t, FakeQemuFailing)) launcher := NewQemuLauncher(build) if _, err := launcher.Sta...
explode_data.jsonl/21706
{ "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, 48, 33063, 91176, 2354, 48, 33063, 17507, 1155, 353, 8840, 836, 8, 341, 197, 322, 18567, 23514, 66483, 198, 197, 10216, 4062, 284, 7860, 4062, 198, 16867, 2915, 368, 314, 10290, 4062, 284, 3883, 12714, 335, 2822, 69371, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetOperationLog(t *testing.T) { queryArgs := &GetOperationLogArgs{ StartTime: "2021-03-28T15:00:27Z", EndTime: "2021-03-30T15:00:27Z", } rep, err := BBC_CLIENT.GetOperationLog(queryArgs) fmt.Println(rep) ExpectEqual(t.Errorf, err, nil) }
explode_data.jsonl/4060
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 117 }
[ 2830, 3393, 1949, 8432, 2201, 1155, 353, 8840, 836, 8, 341, 27274, 4117, 1669, 609, 1949, 8432, 2201, 4117, 515, 197, 197, 40203, 25, 330, 17, 15, 17, 16, 12, 15, 18, 12, 17, 23, 51, 16, 20, 25, 15, 15, 25, 17, 22, 57, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStrangeAssignmentWithLineComment(t *testing.T) { _, errs := ParseString(`x = 7 // hi y = 6`) bvmUtils.AssertNow(t, len(errs) == 0, errs.Format()) }
explode_data.jsonl/49778
{ "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, 91334, 41613, 2354, 2460, 10677, 1155, 353, 8840, 836, 8, 341, 197, 6878, 70817, 1669, 14775, 703, 5809, 87, 284, 220, 22, 442, 15588, 198, 197, 14522, 284, 220, 21, 24183, 2233, 7338, 4209, 11711, 7039, 1155, 11, 2422, 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
func TestAddDropPrimaryKeys(t *testing.T) { t.Run("adding and dropping primary keys does not result in duplicate NOT NULL constraints", func(t *testing.T) { harness := newDoltHarness(t) addPkScript := queries.ScriptTest{ Name: "add primary keys", SetUpScript: []string{ "create table test (id int not null...
explode_data.jsonl/38752
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2439 }
[ 2830, 3393, 2212, 19871, 15972, 8850, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 2998, 323, 25100, 6028, 6894, 1558, 537, 1102, 304, 22513, 4183, 1770, 16982, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 9598, 23518, 1669, 501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImportString(t *testing.T) { imp1 := &Import{Path: VarTerm("foo"), Alias: Var("bar")} imp2 := &Import{Path: VarTerm("foo")} imp3 := &Import{Path: RefTerm(VarTerm("bar"), StringTerm("baz"), StringTerm("qux")), Alias: Var("corge")} imp4 := &Import{Path: RefTerm(VarTerm("bar"), StringTerm("baz"), StringTerm("...
explode_data.jsonl/65302
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 205 }
[ 2830, 3393, 11511, 703, 1155, 353, 8840, 836, 8, 341, 197, 6664, 16, 1669, 609, 11511, 90, 1820, 25, 8735, 17249, 445, 7975, 3975, 58040, 25, 8735, 445, 2257, 42132, 197, 6664, 17, 1669, 609, 11511, 90, 1820, 25, 8735, 17249, 445, 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 TestLogging(t *testing.T) { r := NewMock() r.Info("hello") r.Debug("help") r.Debug("help", "context", 76, "another context", 8.9) }
explode_data.jsonl/82377
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 59 }
[ 2830, 3393, 34575, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 11571, 741, 7000, 20132, 445, 14990, 1138, 7000, 20345, 445, 8653, 1138, 7000, 20345, 445, 8653, 497, 330, 2147, 497, 220, 22, 21, 11, 330, 41963, 2266, 497, 220, 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
func TestSingleStep_FirstCallToReserveMeetingPointReturnsError_Returns(t *testing.T) { unittest.SmallTest(t) switchboardMock := &mocks.Switchboard{} switchboardMock.On("ReserveMeetingPoint", testutils.AnyContext, hostname, username).Return(meetingPoint, errMyMockError) c := New(switchboardMock, mockRevPortForwardP...
explode_data.jsonl/82346
{ "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, 10888, 8304, 79790, 7220, 1249, 1061, 5852, 64576, 2609, 16446, 1454, 53316, 82, 1155, 353, 8840, 836, 8, 341, 20479, 14267, 90183, 2271, 1155, 340, 8961, 2482, 11571, 1669, 609, 16712, 82, 808, 5539, 2482, 16094, 8961, 2482, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWithin(t *testing.T) { if !MustParseOid("1.2.3").Within(MustParseOid("1.2")) { t.Errorf("Within is not working") } }
explode_data.jsonl/71790
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 58 }
[ 2830, 3393, 41961, 1155, 353, 8840, 836, 8, 341, 743, 753, 31776, 14463, 46, 307, 445, 16, 13, 17, 13, 18, 1827, 41961, 3189, 590, 14463, 46, 307, 445, 16, 13, 17, 2761, 341, 197, 3244, 13080, 445, 41961, 374, 537, 3238, 1138, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func Test_Modules(t *testing.T) { path := createTestFileWithModule(` module "my-mod" { source = "../module" input = "ok" } output "result" { value = module.my-mod.result } `, ` variable "input" { default = "?" } output "result" { value = var.input } `, "module", ) parser := New() blocks, err := parser...
explode_data.jsonl/13304
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 413 }
[ 2830, 3393, 71485, 2425, 1155, 353, 8840, 836, 8, 1476, 26781, 1669, 1855, 2271, 1703, 2354, 3332, 61528, 4352, 330, 2408, 17078, 1, 341, 47418, 284, 7005, 4352, 698, 22427, 284, 330, 562, 698, 630, 3006, 330, 1382, 1, 341, 16309, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestIssue23671(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() orgEnable := core.PreparedPlanCacheEnabled() defer core.SetPreparedPlanCache(orgEnable) core.SetPreparedPlanCache(true) se, err := session.CreateSession4TestWithOpt(store, &session.Opt{ PreparedPlanCache: kvcache.NewSim...
explode_data.jsonl/5531
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 410 }
[ 2830, 3393, 42006, 17, 18, 21, 22, 16, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 741, 87625, 11084, 1669, 6200, 28770, 7212, 20485, 8233, 5462, 741, 16867, 6200, 4202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOidDecode(t *testing.T) { encodedOid := []byte{0x2b, 0x06, 0x01, 0x04, 0x01, 0x94, 0x4c, 0x03, 0x02, 0x03, 0x01, 0x14} oid, err := DecodeOid(encodedOid) if err != nil { t.Errorf("DecodeOid '1.3.6.1.4.1.2636.3.2.3.1.20' error '%s'", err) } if fmt.Sprintf("%s", oid) != ".1.3.6.1.4.1.2636.3.2.3.1.20" { t...
explode_data.jsonl/71789
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 46, 307, 32564, 1155, 353, 8840, 836, 8, 341, 197, 19329, 46, 307, 1669, 3056, 3782, 90, 15, 87, 17, 65, 11, 220, 15, 87, 15, 21, 11, 220, 15, 87, 15, 16, 11, 220, 15, 87, 15, 19, 11, 220, 15, 87, 15, 16, 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...
3
func TestNewEtcdClientGenerator(t *testing.T) { g := NewWithT(t) subject = NewEtcdClientGenerator(&rest.Config{}, &tls.Config{MinVersion: tls.VersionTLS12}) g.Expect(subject.createClient).To(Not(BeNil())) }
explode_data.jsonl/44416
{ "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, 3564, 31860, 4385, 2959, 12561, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 2354, 51, 1155, 340, 28624, 583, 284, 1532, 31860, 4385, 2959, 12561, 2099, 3927, 10753, 22655, 609, 34488, 10753, 90, 6217, 5637, 25, 55026, 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
func TestGoogleBigtableInstance(t *testing.T) { cases := []struct { test string assertExpected func(t *testing.T, got []*resource.Resource) response []*assetpb.Asset responseErr error setupAlerterMock func(alerter *mocks.AlerterInterface) wantErr error }{ { test: ...
explode_data.jsonl/12057
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1800 }
[ 2830, 3393, 14444, 15636, 2005, 2523, 1155, 353, 8840, 836, 8, 1476, 1444, 2264, 1669, 3056, 1235, 341, 197, 18185, 1797, 914, 198, 197, 6948, 18896, 256, 2915, 1155, 353, 8840, 836, 11, 2684, 29838, 9233, 20766, 340, 197, 21735, 260, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_StrStrMap_Set_Fun(t *testing.T) { gtest.C(t, func(t *gtest.T) { m := gmap.NewStrStrMap() m.GetOrSetFunc("a", getStr) m.GetOrSetFuncLock("b", getStr) t.Assert(m.Get("a"), "z") t.Assert(m.Get("b"), "z") t.Assert(m.SetIfNotExistFunc("a", getStr), false) t.Assert(m.SetIfNotExistFunc("c", getStr), ...
explode_data.jsonl/36006
{ "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, 46171, 2580, 2227, 14812, 1400, 359, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 2109, 1669, 342, 2186, 7121, 2580, 2580, 2227, 2822, 197, 2109, 2234, 2195, 1649, 9626...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlockService_ProposeBlock(t *testing.T) { client := rpc.NewClient("") server := rpc.NewServer("") server.Register("block.propose", func(command command.ProposeBlock) (struct{}, rpc.Error) { return struct{}{}, rpc.Error{} }) blockService := adapter.NewBlockService(client) txList := []txpool.Transact...
explode_data.jsonl/31632
{ "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, 4713, 1860, 1088, 887, 960, 4713, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 35596, 7121, 2959, 31764, 41057, 1669, 35596, 7121, 5475, 445, 5130, 41057, 19983, 445, 4574, 18417, 960, 497, 2915, 15143, 3210, 42483, 960, 4713, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestM_String(t *testing.T) { m := slog.M{ "k0": 12, "k1": "abc", "k2": true, "k3": 23.45, "k4": []int{12, 23}, "k5": []string{"ab", "bc"}, "k6": map[string]interface{}{ "k6-1": 23, "k6-2": "def", }, } fmt.Println(m) dump.P(m.String(), m) assert.NotEmpty(t, m.String()) }
explode_data.jsonl/80606
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 44, 31777, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 34949, 1321, 515, 197, 197, 62911, 15, 788, 220, 16, 17, 345, 197, 197, 62911, 16, 788, 330, 13683, 756, 197, 197, 62911, 17, 788, 830, 345, 197, 197, 62911, 18, 788...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBindingUsageConversionToGQL(t *testing.T) { tests := map[string]struct { givenK8sSBU *api.ServiceBindingUsage expGQLSBU *gqlschema.ServiceBindingUsage }{ "without env prefix": { givenK8sSBU: fixRedisUsage(), expGQLSBU: &gqlschema.ServiceBindingUsage{ Name: "usage", UsedBy: gqlschema.Loc...
explode_data.jsonl/4001
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 750 }
[ 2830, 3393, 15059, 14783, 48237, 1249, 38, 3588, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 3174, 2071, 42, 23, 82, 50, 14928, 353, 2068, 13860, 15059, 14783, 198, 197, 48558, 38, 3588, 50, 14928, 256,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNoneAndSingle(t *testing.T) { var trA Transport var trB Transport listenerA, err := trA.Listen(loopbackV4) if err != nil { t.Fatal(err) } defer listenerA.Close() dialOne(t, &trB, listenerA) listenerB, err := trB.Listen(loopbackV4) if err != nil { t.Fatal(err) } defer listenerB.Close() dialOn...
explode_data.jsonl/3796
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 4064, 3036, 10888, 1155, 353, 8840, 836, 8, 341, 2405, 489, 32, 16742, 198, 2405, 489, 33, 16742, 198, 14440, 798, 32, 11, 1848, 1669, 489, 32, 68334, 64884, 1419, 53, 19, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExtensionsGet(t *testing.T) { client, err := clients.NewComputeV2Client() th.AssertNoErr(t, err) extension, err := extensions.Get(client, "os-admin-actions").Extract() th.AssertNoErr(t, err) tools.PrintResource(t, extension) th.AssertEquals(t, extension.Name, "AdminActions") }
explode_data.jsonl/15309
{ "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, 31282, 1949, 1155, 353, 8840, 836, 8, 341, 25291, 11, 1848, 1669, 8239, 7121, 46254, 53, 17, 2959, 741, 70479, 11711, 2753, 7747, 1155, 11, 1848, 692, 197, 12427, 11, 1848, 1669, 19721, 2234, 12805, 11, 330, 436, 27225, 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...
1
func TestGlob(t *testing.T) { assert := assert.New(t) assert.True(glob("", "")) assert.True(glob("*", "asdf")) assert.True(glob("*/testo/*", "asdf/testo/blah")) assert.True(glob("*/*", "asdf/testo")) assert.False(glob("*/testo/*", "asdf")) assert.False(glob("*/*/*/testo", "asdf/testo")) assert.True(glob("*/*/*...
explode_data.jsonl/60252
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 38, 1684, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 6948, 32443, 3268, 1684, 19814, 77561, 6948, 32443, 3268, 1684, 29592, 497, 330, 76615, 5455, 6948, 32443, 3268, 1684, 445, 1812, 1944, 78, 1057, 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
func TestGitCommandDiscardUnstagedFileChanges(t *testing.T) { type scenario struct { testName string file *models.File command func(string, ...string) *exec.Cmd test func(error) } scenarios := []scenario{ { "valid case", &models.File{Name: "test.txt"}, test.CreateMockCommand(t, []*test.C...
explode_data.jsonl/6323
{ "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, 46562, 4062, 23477, 567, 1806, 267, 3279, 1703, 11317, 1155, 353, 8840, 836, 8, 341, 13158, 15048, 2036, 341, 197, 18185, 675, 914, 198, 197, 17661, 257, 353, 6507, 8576, 198, 197, 45566, 220, 2915, 3609, 11, 2503, 917, 8,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUpdateTickers(t *testing.T) { err := b.UpdateTickers(context.Background(), asset.Spot) if err != nil { t.Error(err) } err = b.UpdateTickers(context.Background(), asset.CoinMarginedFutures) if err != nil { t.Error(err) } err = b.UpdateTickers(context.Background(), asset.USDTMarginedFutures) if err...
explode_data.jsonl/76550
{ "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, 4289, 22213, 388, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 293, 16689, 22213, 388, 5378, 19047, 1507, 9329, 808, 19099, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 630, 9859, 284, 293, 16689, 22213, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestGenerator(t *testing.T) { for i := 0; i < 3; i++ { err := mysql.Generate(genTestDir3, mysql.DBConnection{ Host: dbconfig.MySqLHost, Port: dbconfig.MySQLPort, User: dbconfig.MySQLUser, Password: dbconfig.MySQLPassword, DBName: "dvds", }) require.NoError(t, err) assertGen...
explode_data.jsonl/81301
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 347 }
[ 2830, 3393, 12561, 1155, 353, 8840, 836, 8, 1476, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 18, 26, 600, 1027, 341, 197, 9859, 1669, 10564, 57582, 36884, 2271, 6184, 18, 11, 10564, 22537, 4526, 515, 298, 197, 9296, 25, 257, 2927,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateDomainConfigMap(t *testing.T) { kubeClient, sharedClient, servingClient, controller, kubeInformer, sharedInformer, servingInformer, _ := newTestReconciler(t) route := getTestRouteWithTrafficTargets([]v1alpha1.TrafficTarget{}) routeClient := servingClient.ServingV1alpha1().Routes(route.Namespace) // ...
explode_data.jsonl/3289
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1110 }
[ 2830, 3393, 4289, 13636, 2648, 2227, 1155, 353, 8840, 836, 8, 341, 16463, 3760, 2959, 11, 6094, 2959, 11, 13480, 2959, 11, 6461, 11, 80958, 641, 34527, 11, 6094, 641, 34527, 11, 13480, 641, 34527, 11, 716, 1669, 501, 2271, 693, 40446,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEcdsaPublicKey(t *testing.T) { t.Parallel() lowLevelKey, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) assert.NoError(t, err) k := &ecdsaPublicKey{&lowLevelKey.PublicKey} assert.False(t, k.Symmetric()) assert.False(t, k.Private()) k.pubKey = nil ski := k.SKI() assert.Nil(t, ski) k.pubKey...
explode_data.jsonl/29815
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 464 }
[ 2830, 3393, 36, 4385, 9081, 61822, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 8810, 363, 4449, 1592, 11, 1848, 1669, 384, 4385, 9081, 57582, 1592, 7, 613, 11442, 292, 1069, 17, 20, 21, 1507, 10382, 47431, 340, 6948, 35699,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMetablockDump(t *testing.T) { // Test dump metablock errors: // - invalid content // - invalid path mbs := []Metablock{ {Signed: TestMetablockDump}, {}, } paths := []string{ "bad-metadata", "bad/path", } expectedErrors := []string{ "json: unsupported type", "open bad/path", } for i := 0;...
explode_data.jsonl/51757
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 244 }
[ 2830, 3393, 34673, 370, 1023, 51056, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 10276, 19635, 1023, 5975, 510, 197, 322, 481, 8318, 2213, 198, 197, 322, 481, 8318, 1815, 198, 2109, 1279, 1669, 3056, 34673, 370, 1023, 515, 197, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestRowsDelete(t *testing.T) { uu := map[string]struct { rows render.Rows id string e render.Rows }{ "first": { rows: render.Rows{ {ID: "a", Fields: []string{"blee", "duh"}}, {ID: "b", Fields: []string{"albert", "blee"}}, }, id: "a", e: render.Rows{ {ID: "b", Fields: []string...
explode_data.jsonl/66595
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 701 }
[ 2830, 3393, 9024, 6435, 1155, 353, 8840, 836, 8, 341, 10676, 84, 1669, 2415, 14032, 60, 1235, 341, 197, 68438, 3141, 11332, 198, 197, 15710, 256, 914, 198, 197, 7727, 262, 3141, 11332, 198, 197, 59403, 197, 197, 1, 3896, 788, 341, 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 TestPointerMarshal(t *testing.T) { result, err := Marshal(pointerTestData) if err != nil { t.Fatal(err) } expected := pointerTestToml if !bytes.Equal(result, expected) { t.Errorf("Bad pointer marshal: expected\n-----\n%s\n-----\ngot\n-----\n%s\n-----\n", expected, result) } }
explode_data.jsonl/46320
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 117 }
[ 2830, 3393, 9084, 55438, 1155, 353, 8840, 836, 8, 341, 9559, 11, 1848, 1669, 35667, 81962, 83920, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 42400, 1669, 7445, 2271, 24732, 75, 198, 743, 753, 9651, 12808, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test_applyCmd(t *testing.T) { cases := []cmdTestCase{ { name: "with no options", args: []string{"apply", "default"}, action: actionApply, expected: map[string]interface{}{ actions.OptionApp: mock.AnythingOfType("*app.App"), actions.OptionEnvName: "default", actions....
explode_data.jsonl/58008
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 340 }
[ 2830, 3393, 36551, 15613, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 8710, 16458, 515, 197, 197, 515, 298, 11609, 25, 256, 330, 4197, 902, 2606, 756, 298, 31215, 25, 256, 3056, 917, 4913, 10280, 497, 330, 2258, 7115, 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 TestRuleElseText(t *testing.T) { input := ` r1 = x { a == "foo" } else = y { b == "bar" } else { c == "baz" } else = { "k1": 1, "k2": 2 } { true } ` rule := MustParseRule(input) assertLocationText(t, strings.TrimSpace(input), rule.Location) assertLocationText(t, "r1 = x", rule.Head.Location) assertLo...
explode_data.jsonl/50503
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 651 }
[ 2830, 3393, 11337, 22971, 1178, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 22074, 81, 16, 284, 856, 341, 11323, 621, 330, 7975, 698, 92, 770, 284, 379, 341, 2233, 621, 330, 2257, 698, 630, 1503, 341, 1444, 621, 330, 42573, 698, 630,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestIssue28254(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() orgEnable := core.PreparedPlanCacheEnabled() defer core.SetPreparedPlanCache(orgEnable) core.SetPreparedPlanCache(true) se, err := session.CreateSession4TestWithOpt(store, &session.Opt{ PreparedPlanCache: kvcache.NewSim...
explode_data.jsonl/5517
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 471 }
[ 2830, 3393, 42006, 17, 23, 17, 20, 19, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 741, 87625, 11084, 1669, 6200, 28770, 7212, 20485, 8233, 5462, 741, 16867, 6200, 4202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEquals(t *testing.T) { cfg1 := &Config{} cfg2 := &Config{} // Same config result := cfg1.Equal(cfg1) if result != true { t.Errorf("Expected true") } // compare nil result = cfg1.Equal(nil) if result != false { t.Errorf("Expected false") } // Different Certs sslCert1 := resolver.AuthSSLCert{ ...
explode_data.jsonl/13966
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 681 }
[ 2830, 3393, 4315, 1155, 353, 8840, 836, 8, 341, 50286, 16, 1669, 609, 2648, 16094, 50286, 17, 1669, 609, 2648, 31483, 197, 322, 25739, 2193, 198, 9559, 1669, 13286, 16, 12808, 28272, 16, 340, 743, 1102, 961, 830, 341, 197, 3244, 13080...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestMetricRuleWithNegativeLookaheadAssertion(t *testing.T) { log.Init(log.LogAlways, "stdout") // Avoid error messages js := `[{ "match_expression":"^(?!account|application).*", "replacement":"*", "ignore":false, "eval_order":0, "each_segment":true }]` rules := NewMetricRulesFromJSON([]byte(js)) if ...
explode_data.jsonl/63829
{ "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, 54310, 11337, 2354, 38489, 10380, 42787, 68639, 1155, 353, 8840, 836, 8, 341, 6725, 26849, 12531, 5247, 37095, 11, 330, 36358, 899, 442, 34006, 1465, 6605, 198, 95636, 1669, 77644, 515, 197, 197, 1, 6347, 28068, 3252, 13268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransportInvalidTrailer_EmptyFieldName(t *testing.T) { testInvalidTrailer(t, oneHeader, headerFieldNameError(""), func(enc *hpack.Encoder) { enc.WriteField(hpack.HeaderField{Name: "", Value: "bad"}) }) }
explode_data.jsonl/16104
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 77 }
[ 2830, 3393, 27560, 7928, 1282, 38782, 76060, 1595, 51241, 1155, 353, 8840, 836, 8, 341, 18185, 7928, 1282, 38782, 1155, 11, 825, 4047, 11, 4247, 51241, 1454, 86076, 2915, 66941, 353, 71, 4748, 26598, 4316, 8, 341, 197, 197, 954, 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
func TestServiceRoleOnlyLocalNamespace(t *testing.T) { assert := assert.New(t) conf := config.NewConfig() config.Set(conf) sr := data.AddServicesToServiceRole([]string{"service21.testoops.svc.cluster.local"}, data.CreateEmptyServiceRole("sr1", "test")) sc := ServiceChecker{ ServiceRole: sr, Services: getFo...
explode_data.jsonl/8821
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 1860, 9030, 7308, 7319, 22699, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 67850, 1669, 2193, 7121, 2648, 741, 25873, 4202, 29879, 692, 1903, 81, 1669, 821, 1904, 11025, 1249, 1860, 9030, 10556, 917, 491...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCachingExpire(t *testing.T) { once.Do(testSetup) fills := countFills(func() { for i := 0; i < 3; i++ { var s string if err := expireGroup.Get(dummyCtx, "TestCachingExpire-key", StringSink(&s)); err != nil { t.Fatal(err) } if i == 1 { time.Sleep(time.Millisecond * 150) } } }) if f...
explode_data.jsonl/62844
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 34, 11829, 8033, 554, 1155, 353, 8840, 836, 8, 341, 197, 13184, 33596, 8623, 21821, 340, 1166, 3305, 1669, 1760, 37, 3305, 18552, 368, 341, 197, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 18, 26, 600, 1027, 341, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func Test_constructUrl_AddsSchemeAndCreatesUrl(t *testing.T) { tests := []struct { name string domainInput string wantedSubDomain string wantedDomain string wantError bool }{ {"Simple domain", "foo.bar.com", "foo", "bar.com", false}, {"Domain starting with https://", "https://foo...
explode_data.jsonl/72056
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 476 }
[ 2830, 3393, 64803, 2864, 21346, 82, 28906, 3036, 54868, 2864, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 2698, 3121, 2505, 257, 914, 198, 197, 6692, 7566, 3136, 13636, 914, 198, 197, 66...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestMutableTree_DeleteVersion(t *testing.T) { tree := prepareTree(t) ver, err := tree.LazyLoadVersion(2) require.True(t, ver == 2) require.NoError(t, err) require.NoError(t, tree.DeleteVersion(1)) require.False(t, tree.VersionExists(1)) require.True(t, tree.VersionExists(2)) require.False(t, tree.Version...
explode_data.jsonl/23782
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 151 }
[ 2830, 3393, 11217, 6533, 57418, 5637, 1155, 353, 8840, 836, 8, 341, 51968, 1669, 10549, 6533, 1155, 340, 197, 423, 11, 1848, 1669, 4916, 1214, 13619, 5879, 5637, 7, 17, 340, 17957, 32443, 1155, 11, 2739, 621, 220, 17, 340, 17957, 3569...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransportResponseCloseRace(t *testing.T) { if testing.Short() { t.Skip("skipping in short mode") } defer afterTest(t) ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) { })) defer ts.Close() sawRace := false SetInstallConnClosedHook(func() { sawRace = true }) defer SetInsta...
explode_data.jsonl/4922
{ "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, 27560, 2582, 7925, 55991, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 304, 2805, 3856, 1138, 197, 532, 16867, 1283, 2271, 1155, 692, 57441, 1669, 54320, 70334, 7121, 5475, 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 TestCreateDeploySet(t *testing.T) { testDeploySetName := "testName" testDeployDesc := "testDesc" testConcurrency := 1 testStrategy := "tor_ha" queryArgs := &CreateDeploySetArgs{ Strategy: testStrategy, Concurrency: testConcurrency, Name: testDeploySetName, Desc: testDeployDesc, } re...
explode_data.jsonl/4061
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 168 }
[ 2830, 3393, 4021, 69464, 1649, 1155, 353, 8840, 836, 8, 341, 18185, 69464, 69778, 1669, 330, 1944, 675, 698, 18185, 69464, 11065, 1669, 330, 1944, 11065, 698, 18185, 79611, 1669, 220, 16, 198, 18185, 19816, 1669, 330, 10980, 1523, 64, 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...
1
func TestGerritProviderTestSuite(t *testing.T) { if testing.Short() { t.Skip("skipping GerritProviderTestSuite in short mode") } else { suite.Run(t, new(GerritProviderTestSuite)) } }
explode_data.jsonl/1123
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 38, 615, 275, 5179, 2271, 28000, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 85865, 275, 5179, 2271, 28000, 304, 2805, 3856, 1138, 197, 92, 770, 341, 197, 96572, 16708, 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 ]
2
func TestGetLeaseAquired(t *testing.T) { svc := &mockDynamoDB{tableExist: true, item: map[string]*dynamodb.AttributeValue{}} kclConfig := cfg.NewKinesisClientLibConfig("appName", "test", "us-west-2", "abc"). WithInitialPositionInStream(cfg.LATEST). WithMaxRecords(10). WithMaxLeasesForWorker(1). WithShardSyncI...
explode_data.jsonl/9839
{ "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, 1949, 2304, 519, 32, 2931, 1155, 353, 8840, 836, 8, 341, 1903, 7362, 1669, 609, 16712, 35, 85608, 3506, 90, 2005, 25613, 25, 830, 11, 1509, 25, 2415, 14032, 8465, 67, 83348, 33775, 1130, 6257, 532, 16463, 564, 2648, 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 TestBitMatrixParser_Remask(t *testing.T) { masked, _ := gozxing.ParseStringToBitMatrix(""+ " ## ## ## ######## ## ## ## \n"+ "## ######## ## ## ######## ##\n"+ " #### ## ######## ## ##\n"+ "###### ######## ######## ######\n"+ " ## #### ## ...
explode_data.jsonl/32242
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 868 }
[ 2830, 3393, 8344, 6689, 6570, 54551, 1073, 1155, 353, 8840, 836, 8, 341, 74912, 291, 11, 716, 1669, 728, 66700, 287, 8937, 703, 1249, 8344, 6689, 445, 27424, 197, 197, 1, 220, 7704, 220, 7704, 220, 7704, 262, 26352, 414, 7704, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetScale(t *testing.T) { scaleClient, groupResources := fakeScaleClient(t) expectedScale := &autoscalingv1.Scale{ TypeMeta: metav1.TypeMeta{ Kind: "Scale", APIVersion: autoscalingv1.SchemeGroupVersion.String(), }, ObjectMeta: metav1.ObjectMeta{ Name: "foo", }, Spec: autoscalingv1.Sca...
explode_data.jsonl/77668
{ "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, 1949, 6947, 1155, 353, 8840, 836, 8, 341, 70780, 2959, 11, 1874, 11277, 1669, 12418, 6947, 2959, 1155, 340, 42400, 6947, 1669, 609, 79301, 81552, 85, 16, 51832, 515, 197, 27725, 12175, 25, 77520, 16, 10184, 12175, 515, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestRemoveUnknown(t *testing.T) { repo := postgres.NewConfigRepository(db, testLog) id := uuid.NewV4().String() repo.SaveUnknown(id, id) // Removal works the same for both existing and non-existing // (removed) config for i := 0; i < 2; i++ { err := repo.RemoveUnknown(id, id) require.Nil(t, err, fmt.Sp...
explode_data.jsonl/467
{ "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, 13021, 13790, 1155, 353, 8840, 836, 8, 341, 17200, 5368, 1669, 59826, 7121, 2648, 4624, 9791, 11, 1273, 2201, 692, 15710, 1669, 16040, 7121, 53, 19, 1005, 703, 741, 17200, 5368, 13599, 13790, 3724, 11, 877, 692, 197, 322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestBundleWithECDSAKeyMarshalJSON(t *testing.T) { b := newCustomizedBundlerFromFile(t, testCFSSLRootBundle, testCFSSLIntBundle, "") bundle, _ := b.BundleFromFile(leafECDSA256, leafKeyECDSA256, Optimal, "") jsonBytes, err := json.Marshal(bundle) if err != nil { t.Fatal(err) } var obj map[string]interface{...
explode_data.jsonl/36879
{ "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, 8409, 2354, 7498, 72638, 1592, 55438, 5370, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 501, 10268, 1506, 33, 85365, 43633, 1155, 11, 1273, 9650, 22594, 8439, 8409, 11, 1273, 9650, 22594, 1072, 8409, 11, 14676, 2233, 4206, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestTable_LastUsedAt(t *testing.T) { tempDir, err := ioutil.TempDir("", "table-last-used-at") require.NoError(t, err) table, _, stopFunc := buildTestTable(t, "test", tempDir) defer func() { stopFunc() require.NoError(t, os.RemoveAll(tempDir)) }() // a newly built table should have last used at close to...
explode_data.jsonl/81249
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 325 }
[ 2830, 3393, 2556, 84672, 22743, 1655, 1155, 353, 8840, 836, 8, 341, 16280, 6184, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 2005, 60515, 68521, 28783, 1138, 17957, 35699, 1155, 11, 1848, 692, 26481, 11, 8358, 2936, 9626, 1669, 1936, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_discordLogger(t *testing.T) { testName := "Test_ModeDiscord" defer Remove(DefaultDiscordName) defer Remove(testName) tests := []struct { name string mode string config interface{} wantLevel Level wantErr error }{ { name: "nil config", mode: DefaultDiscordName, w...
explode_data.jsonl/58520
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 831 }
[ 2830, 3393, 37745, 539, 7395, 1155, 353, 8840, 836, 8, 341, 18185, 675, 1669, 330, 2271, 54361, 23477, 539, 698, 16867, 10783, 87874, 23477, 539, 675, 340, 16867, 10783, 8623, 675, 692, 78216, 1669, 3056, 1235, 341, 197, 11609, 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...
1
func TestVerifyChallengeTxSigners_validServerAndMultipleClientSigners(t *testing.T) { serverKP := newKeypair0() clientKP := newKeypair1() clientKP2 := newKeypair2() txSource := NewSimpleAccount(serverKP.Address(), -1) op := ManageData{ SourceAccount: clientKP.Address(), Name: "testanchor.stellar.org ...
explode_data.jsonl/20749
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 512 }
[ 2830, 3393, 32627, 62078, 31584, 7264, 388, 8337, 5475, 3036, 32089, 2959, 7264, 388, 1155, 353, 8840, 836, 8, 341, 41057, 65036, 1669, 501, 6608, 1082, 1310, 15, 741, 25291, 65036, 1669, 501, 6608, 1082, 1310, 16, 741, 25291, 65036, 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 TestIssue1925(t *testing.T) { // Calling a function should not leave cached goroutine information in an // inconsistent state. // In particular the stepInstructionOut function called at the end of a // 'call' procedure should clean the G cache like every other function // altering the state of the target proc...
explode_data.jsonl/56346
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 274 }
[ 2830, 3393, 42006, 16, 24, 17, 20, 1155, 353, 8840, 836, 8, 341, 197, 322, 32291, 264, 729, 1265, 537, 5274, 20579, 45198, 14159, 1995, 304, 458, 198, 197, 322, 39140, 1584, 624, 197, 322, 758, 3953, 279, 3019, 16664, 2662, 729, 259...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdatePostInArchivedChannel(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() archivedChannel := th.CreateChannel(th.BasicTeam) post := th.CreatePost(archivedChannel) th.App.DeleteChannel(th.Context, archivedChannel, "") _, err := th.App.UpdatePost(th.Context, post, true) require.NotNil(t...
explode_data.jsonl/26427
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 156 }
[ 2830, 3393, 4289, 4133, 641, 18727, 2221, 9629, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 197, 1113, 2221, 9629, 1669, 270, 7251, 9629, 24365, 48868, 14597, 340, 511...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDoubleHijack(t *testing.T) { req := reqBytes("GET / HTTP/1.1\nHost: golang.org") var buf bytes.Buffer conn := &rwTestConn{ Reader: bytes.NewReader(req), Writer: &buf, closec: make(chan bool, 1), } handler := HandlerFunc(func(rw ResponseWriter, r *Request) { conn, _, err := rw.(Hijacker).Hijack() ...
explode_data.jsonl/22461
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 7378, 39, 3172, 473, 1155, 353, 8840, 836, 8, 341, 24395, 1669, 4232, 7078, 445, 3806, 608, 10130, 14, 16, 13, 16, 1699, 9296, 25, 342, 37287, 2659, 1138, 2405, 6607, 5820, 22622, 198, 32917, 1669, 609, 31768, 2271, 9701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateVeryLargeObject(t *testing.T) { defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, genericfeatures.ServerSideApply, true)() _, client, closeFn := setup(t) defer closeFn() cfg := &v1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: "large-update-test-cm", ...
explode_data.jsonl/53468
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 787 }
[ 2830, 3393, 4289, 25756, 34253, 1190, 1155, 353, 8840, 836, 8, 341, 16867, 4565, 70, 266, 57824, 287, 4202, 13859, 42318, 16014, 2271, 1155, 11, 4094, 12753, 13275, 13859, 42318, 11, 13954, 20304, 22997, 16384, 28497, 11, 830, 8, 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...
4
func TestClose(t *testing.T) { epsilon := 1 * time.Millisecond c, err := New(epsilon, epsilon, epsilon) if err != nil { t.Fatal(err) } if err := c.Close(); err != nil { t.Error("refusing to close:", err) } if _, err := c.Get("asdf"); err != Closed { t.Error("bad error:", err) } if _, err := c.GetOrCre...
explode_data.jsonl/51365
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 199 }
[ 2830, 3393, 7925, 1155, 353, 8840, 836, 8, 341, 197, 31767, 1669, 220, 16, 353, 882, 71482, 198, 1444, 11, 1848, 1669, 1532, 7, 31767, 11, 31204, 11, 31204, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 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...
6
func TestNewKubeJWTAuthenticator(t *testing.T) { trustDomain := "testdomain.com" jwtPolicy := jwt.PolicyThirdParty authenticator := NewKubeJWTAuthenticator(nil, "kubernetes", nil, trustDomain, jwtPolicy) expectedAuthenticator := &KubeJWTAuthenticator{ trustDomain: trustDomain, jwtPolicy: jwtPolicy, cluster...
explode_data.jsonl/33190
{ "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, 3564, 42, 3760, 55172, 5087, 61393, 1155, 353, 8840, 836, 8, 341, 25583, 590, 13636, 1669, 330, 1944, 12204, 905, 698, 12428, 9306, 13825, 1669, 24589, 1069, 8018, 36975, 37361, 271, 78011, 61393, 1669, 1532, 42, 3760, 55172, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVoteVerifySignature(t *testing.T) { privVal := NewMockPV() pubkey := privVal.GetPubKey() vote := examplePrecommit() signBytes := vote.SignBytes("test_chain_id") // sign it err := privVal.SignVote("test_chain_id", vote) require.NoError(t, err) // verify the same vote valid := pubkey.VerifyBytes(vote...
explode_data.jsonl/54534
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 304 }
[ 2830, 3393, 41412, 32627, 25088, 1155, 353, 8840, 836, 8, 341, 71170, 2208, 1669, 1532, 11571, 48469, 741, 62529, 792, 1669, 6095, 2208, 2234, 29162, 1592, 2822, 5195, 1272, 1669, 3110, 4703, 17413, 741, 69054, 7078, 1669, 6910, 41152, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateTeamPrivacy(t *testing.T) { th := Setup(t) defer th.TearDown() Client := th.Client createTeam := func(teamType string, allowOpenInvite bool) *model.Team { team := &model.Team{ DisplayName: teamType + " Team", Description: "Some description", CompanyName: "Some company name", ...
explode_data.jsonl/70708
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1422 }
[ 2830, 3393, 4289, 14597, 47832, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 340, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 271, 39263, 14597, 1669, 2915, 45538, 929, 914, 11, 2138, 5002, 93540, 1807, 8, 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 Test_addHeaders(t *testing.T) { req := &http.Request{Header: http.Header{}} got := addHeaders(req, "foo", "bar") assertEqual(t, "application/json", got.Header.Get("accept")) assertEqual(t, "application/json", got.Header.Get("Content-Type")) assertEqual(t, "application/json", got.Header.Get("Content-Encoding...
explode_data.jsonl/72055
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 142 }
[ 2830, 3393, 2891, 10574, 1155, 353, 8840, 836, 8, 341, 24395, 1669, 609, 1254, 9659, 90, 4047, 25, 1758, 15753, 6257, 630, 3174, 354, 1669, 912, 10574, 6881, 11, 330, 7975, 497, 330, 2257, 5130, 6948, 2993, 1155, 11, 330, 5132, 8931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSelectionType(t *testing.T) { query := makeQuery(nil) q := graphql.MustParse(` { a { fieldWithArgs(arg: 1) } } `, nil) if err := graphql.PrepareQuery(context.Background(), query, q.SelectionSet); err != nil { t.Error(err) } e := testgraphql.NewExecutorWrapperWithoutExactErrorMatch(t) ...
explode_data.jsonl/72163
{ "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, 11177, 929, 1155, 353, 8840, 836, 8, 341, 27274, 1669, 1281, 2859, 27907, 692, 18534, 1669, 48865, 50463, 14463, 61528, 197, 197, 515, 298, 11323, 341, 571, 39250, 2354, 4117, 9404, 25, 220, 16, 340, 298, 197, 532, 197, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestProportional_ComputeProbs(t *testing.T) { tests := []struct { name string rewards []mab.Dist expected []float64 }{ { "empty", []mab.Dist{}, []float64{}, }, { "one arm", []mab.Dist{mab.Point(1)}, []float64{1}, }, { "null only", []mab.Dist{mab.Null()}, []float64{...
explode_data.jsonl/67076
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 987 }
[ 2830, 3393, 1336, 403, 3914, 16946, 8492, 1336, 1279, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 17200, 4014, 220, 3056, 76, 370, 909, 380, 198, 197, 42400, 3056, 3649, 21, 19, 198, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestValidateRequestURL(t *testing.T) { type test struct { name string url string } long := strings.Repeat("x", 1025) longNumber := strings.Repeat("8", 1025) tests := []test{ {name: "scheme", url: fmt.Sprintf("%s://testing.invalid", long)}, {name: "hostname", url: fmt.Sprintf("http://%s/", long)}, {...
explode_data.jsonl/794
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 346 }
[ 2830, 3393, 17926, 1900, 3144, 1155, 353, 8840, 836, 8, 341, 13158, 1273, 2036, 341, 197, 11609, 914, 198, 197, 19320, 220, 914, 198, 197, 532, 17514, 1669, 9069, 2817, 10979, 445, 87, 497, 220, 16, 15, 17, 20, 340, 17514, 2833, 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 TestReadYAML(t *testing.T) { f := newFixture(t) defer f.TearDown() var document = ` key1: foo key2: key3: "bar" key4: true key5: 3 ` f.File("options.yaml", document) f.File("Tiltfile", ` observed = read_yaml("options.yaml") expected = { 'key1': 'foo', 'key2': { 'key3': 'bar', 'key4': Tru...
explode_data.jsonl/10606
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 290 }
[ 2830, 3393, 4418, 56, 31102, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 18930, 1155, 340, 16867, 282, 836, 682, 4454, 2822, 2405, 2197, 284, 22074, 792, 16, 25, 15229, 198, 792, 17, 510, 262, 1376, 18, 25, 330, 2257, 698, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGdbAutotmpTypes(t *testing.T) { checkGdbEnvironment(t) t.Parallel() checkGdbVersion(t) if runtime.GOOS == "aix" && testing.Short() { t.Skip("TestGdbAutotmpTypes is too slow on aix/ppc64") } dir, err := ioutil.TempDir("", "go-build") if err != nil { t.Fatalf("failed to create temp directory: %v", e...
explode_data.jsonl/62285
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 669 }
[ 2830, 3393, 38, 1999, 19602, 354, 1307, 4173, 1155, 353, 8840, 836, 8, 341, 25157, 38, 1999, 12723, 1155, 340, 3244, 41288, 7957, 741, 25157, 38, 1999, 5637, 1155, 692, 743, 15592, 97574, 3126, 621, 330, 64, 941, 1, 1009, 7497, 55958,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNamespaceWriteShardNotOwned(t *testing.T) { ctx := context.NewBackground() defer ctx.Close() ns, closer := newTestNamespace(t) defer closer() for i := range ns.shards { ns.shards[i] = nil } now := xtime.Now() seriesWrite, err := ns.Write(ctx, ident.StringID("foo"), now, 0.0, xtime.Second, nil) requ...
explode_data.jsonl/35340
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 191 }
[ 2830, 3393, 22699, 7985, 2016, 567, 2623, 57641, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 7121, 8706, 741, 16867, 5635, 10421, 2822, 84041, 11, 12128, 1669, 501, 2271, 22699, 1155, 340, 16867, 12128, 741, 2023, 600, 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 TestMultipleSessions(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() vnet := getVirtualNetwork() sesgen := NewTestSessionGenerator(vnet) defer sesgen.Close() bgen := blocksutil.NewBlockGenerator() blk := bgen.Blocks(1)[0] inst := sesgen.Instances(2) a := inst[0] ...
explode_data.jsonl/48081
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 378 }
[ 2830, 3393, 32089, 59062, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 2822, 5195, 4711, 1669, 633, 33026, 12320, 741, 1903, 288, 4370, 1669, 1532, 2271, 5283, 12561, 3747, 4711, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildCreate(t *testing.T) { testServer(t, func(c *stdsdk.Client, p *structs.MockProvider) { b1 := fxBuild b2 := structs.Build{} opts := structs.BuildCreateOptions{ Description: options.String("description"), Manifest: options.String("manifest"), } ro := stdsdk.RequestOptions{ Params: std...
explode_data.jsonl/71414
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 279 }
[ 2830, 3393, 11066, 4021, 1155, 353, 8840, 836, 8, 341, 18185, 5475, 1155, 11, 2915, 1337, 353, 1834, 51295, 11716, 11, 281, 353, 1235, 82, 24664, 5179, 8, 341, 197, 2233, 16, 1669, 33219, 11066, 198, 197, 2233, 17, 1669, 62845, 25212,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGrantStruct(t *testing.T) { r := require.New(t) // Vanilla grant := &grantID{ ResourceName: "database_name", SchemaName: "schema", ObjectName: "view_name", Privilege: "priv", Roles: []string{"test1", "test2"}, GrantOption: true, } gID, err := grant.String() r.NoError(err) r.Eq...
explode_data.jsonl/27811
{ "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, 67971, 9422, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1373, 7121, 1155, 340, 197, 322, 65582, 198, 197, 51627, 1669, 609, 51627, 915, 515, 197, 79487, 675, 25, 330, 12216, 1269, 756, 197, 77838, 675, 25, 256, 330, 17349, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCloneBugStruct(t *testing.T) { testCases := []struct { name string bug Bug comments []Comment targetRelease []string expected BugCreate }{{ name: "Clone bug", bug: Bug{ Alias: []string{"this_is_an_alias"}, AssignedTo: "user@example.com", CC: ...
explode_data.jsonl/24631
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1804 }
[ 2830, 3393, 37677, 46773, 9422, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 688, 914, 198, 197, 2233, 768, 1843, 30501, 198, 197, 197, 14727, 414, 3056, 10677, 198, 197, 28861, 16077, 3056, 917, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestManualStopWhileStopped(t *testing.T) { // Checks that RequestManualStop sent to a stopped thread does not cause the target process to die. withTestProcess("loopprog", t, func(p *proc.Target, fixture protest.Fixture) { asyncCont := func(done chan struct{}) { defer close(done) err := p.Continue() t....
explode_data.jsonl/56358
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 517 }
[ 2830, 3393, 52092, 10674, 7983, 59803, 1155, 353, 8840, 836, 8, 341, 197, 322, 24843, 429, 6145, 52092, 10674, 3208, 311, 264, 10497, 4516, 1558, 537, 5240, 279, 2169, 1882, 311, 2746, 624, 46948, 2271, 7423, 445, 10498, 32992, 497, 259...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCase2(t *testing.T) { golden := `v=0 o=- 2252316233 2252316233 IN IP4 0.0.0.0 s=Media Server c=IN IP4 0.0.0.0 t=0 0 a=control:* a=packetization-supported:DH a=rtppayload-supported:DH a=range:npt=now- m=video 0 RTP/AVP 98 a=control:trackID=0 a=framerate:25.000000 a=rtpmap:98 H265/90000 a=fmtp:98 profile-id=1;s...
explode_data.jsonl/55598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 504 }
[ 2830, 30573, 17, 1155, 353, 8840, 836, 8, 341, 3174, 813, 268, 1669, 1565, 85, 28, 15, 198, 78, 10829, 220, 17, 17, 20, 17, 18, 16, 21, 17, 18, 18, 220, 17, 17, 20, 17, 18, 16, 21, 17, 18, 18, 1964, 6790, 19, 220, 15, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadInputBindings(t *testing.T) { t.Run("app acknowledge, no retry", func(t *testing.T) { rt := NewTestDaprRuntime(modes.StandaloneMode) mockAppChannel := new(channelt.MockAppChannel) rt.appChannel = mockAppChannel fakeHTTPResponse := &channel.InvokeResponse{ Metadata: map[string]string{http_chann...
explode_data.jsonl/76070
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 736 }
[ 2830, 3393, 4418, 2505, 52843, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 676, 24645, 11, 902, 22683, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 55060, 1669, 1532, 2271, 35, 59817, 15123, 1255, 2539, 7758, 84112, 3636, 340, 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 TestCompiler_compileDrop(t *testing.T) { t.Run("range nil", func(t *testing.T) { env := newCompilerEnvironment() compiler := env.requireNewCompiler(t, newCompiler, nil) err := compiler.compilePreamble() require.NoError(t, err) // Put existing contents on stack. liveNum := 10 for i := 0; i < liveNu...
explode_data.jsonl/13226
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1597 }
[ 2830, 3393, 38406, 74170, 19871, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 9669, 2092, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 57538, 1669, 501, 38406, 12723, 741, 197, 197, 33620, 1669, 6105, 23712, 3564, 38406, 1155, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestLauncherNotControlledByUs(t *testing.T) { f := newFixture(t) startTime := metav1.Now() completionTime := metav1.Now() mpiJob := newMPIJob("test", int32Ptr(64), &startTime, &completionTime) f.setUpMPIJob(mpiJob) launcher := newLauncher(mpiJob, "kubectl-delivery") launcher.OwnerReferences = nil f.setUp...
explode_data.jsonl/75004
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 91176, 2623, 3273, 832, 1359, 3558, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 18930, 1155, 340, 21375, 1462, 1669, 77520, 16, 13244, 741, 32810, 14386, 1462, 1669, 77520, 16, 13244, 2822, 197, 39479, 12245, 1669, 501, 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 TestDesCtrCrypt(t *testing.T) { data := "hello world" key := "abcdefgh" desCtrCrypt := DesCtrCrypt([]byte(data), []byte(key)) desCtrDeCrypt := DesCtrCrypt(desCtrCrypt, []byte(key)) if string(desCtrDeCrypt) != data { internal.LogFailedTestInfo(t, "DesCtrCrypt", data, data, string(desCtrDeCrypt)) t.FailNo...
explode_data.jsonl/7307
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 4896, 77227, 53367, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 330, 14990, 1879, 698, 23634, 1669, 330, 56747, 1837, 52912, 77227, 53367, 1669, 3874, 77227, 53367, 10556, 3782, 2592, 701, 3056, 3782, 4857, 1171, 52912, 77227, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRepoDirectCycleDetection(t *testing.T) { topDir := "/cycles" cloneRoot := topDir + "/someClone" fSys := filesys.MakeFsInMemory() fSys.MkdirAll(topDir) fSys.MkdirAll(cloneRoot) root, err := demandDirectoryRoot(fSys, topDir) if err != nil { t.Fatalf("unexpected err: %v\n", err) } l1 := newLoaderAtCon...
explode_data.jsonl/65710
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 320 }
[ 2830, 3393, 25243, 16027, 44820, 54817, 1155, 353, 8840, 836, 8, 341, 42118, 6184, 1669, 3521, 48421, 698, 197, 19982, 8439, 1669, 1909, 6184, 488, 3521, 14689, 37677, 698, 1166, 32792, 1669, 3542, 1047, 50133, 48300, 641, 10642, 741, 116...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDetermineBootConfigURL(t *testing.T) { t.Parallel() o := TestUpgradeBootOptions{} o.setup() vs, err := o.requirementsVersionStream() require.NoError(t, err, "could not get requirements version stream") URL, err := determineBootConfigURL(vs.URL) require.NoError(t, err, "could not determine boot config...
explode_data.jsonl/29838
{ "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, 35, 24308, 17919, 2648, 3144, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 22229, 1669, 3393, 43861, 17919, 3798, 16094, 22229, 25338, 2822, 5195, 82, 11, 1848, 1669, 297, 23712, 1368, 5637, 3027, 741, 17957, 35699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInsertAssetStat(t *testing.T) { tt := test.Start(t) defer tt.Finish() test.ResetHorizonDB(t, tt.HorizonDB) q := &Q{tt.HorizonSession()} assetStats := []ExpAssetStat{ ExpAssetStat{ AssetType: xdr.AssetTypeAssetTypeCreditAlphanum4, AssetIssuer: "GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC...
explode_data.jsonl/42371
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 443 }
[ 2830, 3393, 13780, 16604, 15878, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 1273, 12101, 1155, 340, 16867, 17853, 991, 18176, 741, 18185, 36660, 39601, 16973, 3506, 1155, 11, 17853, 3839, 269, 16973, 3506, 340, 18534, 1669, 609, 48, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLookupLocal(t *testing.T) { tests := []struct { description string hasher artifactHasher cache map[string]ImageDetails api *testutil.FakeAPIClient expected cacheDetails }{ { description: "miss", hasher: mockHasher{"thehash"}, api: &testutil.FakeAPIClien...
explode_data.jsonl/81227
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1426 }
[ 2830, 3393, 34247, 7319, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 914, 198, 197, 50333, 261, 414, 36639, 6370, 261, 198, 197, 52680, 981, 2415, 14032, 60, 1906, 7799, 198, 197, 54299, 260, 353, 1944, 131...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccJunosServices_basic(t *testing.T) { if os.Getenv("TESTACC_SWITCH") == "" { resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, Steps: []resource.TestStep{ { Config: testAccJunosServicesConfigCreate(), Check: resource.ComposeTes...
explode_data.jsonl/18817
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 530 }
[ 2830, 3393, 14603, 35590, 436, 11025, 34729, 1155, 353, 8840, 836, 8, 341, 743, 2643, 64883, 445, 10033, 29442, 51183, 899, 621, 1591, 341, 197, 50346, 8787, 1155, 11, 5101, 31363, 515, 298, 197, 4703, 3973, 25, 220, 2915, 368, 314, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTrackUndelegationContVestingAcc(t *testing.T) { now := osttime.Now() endTime := now.Add(24 * time.Hour) _, _, addr := testdata.KeyTestPubAddr() origCoins := sdk.Coins{sdk.NewInt64Coin(feeDenom, 1000), sdk.NewInt64Coin(stakeDenom, 100)} bacc := authtypes.NewBaseAccountWithAddress(addr) // require the ab...
explode_data.jsonl/31285
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 838 }
[ 2830, 3393, 15667, 19957, 68, 87566, 818, 53, 59855, 14603, 1155, 353, 8840, 836, 8, 341, 80922, 1669, 36896, 1678, 13244, 741, 6246, 1462, 1669, 1431, 1904, 7, 17, 19, 353, 882, 73550, 692, 197, 6878, 8358, 10789, 1669, 1273, 691, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInlineNext(t *testing.T) { if ver, _ := goversion.Parse(runtime.Version()); ver.Major >= 0 && !ver.AfterOrEqual(goversion.GoVersion{Major: 1, Minor: 10, Rev: -1}) { // Versions of go before 1.10 do not have DWARF information for inlined calls t.Skip("inlining not supported") } testseq2Args(".", []string...
explode_data.jsonl/56310
{ "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, 25324, 5847, 1155, 353, 8840, 836, 8, 341, 743, 2739, 11, 716, 1669, 728, 4366, 8937, 89467, 35842, 13426, 2739, 1321, 3035, 2604, 220, 15, 1009, 753, 423, 36892, 2195, 2993, 3268, 859, 1325, 67131, 5637, 90, 34475, 25, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestHetznerConfig_FindSSHKeyByName(t *testing.T) { config := HetznerConfig{ SSHKeys: []SSHKey{ SSHKey{Name: "test-key1"}, SSHKey{Name: "test-key2"}, }, } tests := []struct { name string }{ {"test-key1"}, {"non-existing"}, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { ...
explode_data.jsonl/6630
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 318 }
[ 2830, 3393, 39, 42189, 1194, 2648, 95245, 62419, 1592, 16898, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 33166, 89, 1194, 2648, 515, 197, 197, 62419, 8850, 25, 3056, 62419, 1592, 515, 298, 197, 62419, 1592, 63121, 25, 330, 1944, 16173, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_JoinMultipleRoots(t *testing.T) { a := v1alpha1.PipelineTask{Name: "a"} b := v1alpha1.PipelineTask{Name: "b"} c := v1alpha1.PipelineTask{Name: "c"} xDependsOnA := v1alpha1.PipelineTask{ Name: "x", Resources: &v1alpha1.PipelineTaskResources{ Inputs: []v1alpha1.PipelineTaskInputResource{{From: [...
explode_data.jsonl/69248
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 855 }
[ 2830, 3393, 11066, 10598, 1961, 32089, 8439, 82, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 348, 16, 7141, 16, 1069, 8790, 6262, 63121, 25, 330, 64, 16707, 2233, 1669, 348, 16, 7141, 16, 1069, 8790, 6262, 63121, 25, 330, 65, 16707, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewCephClusterMonData(t *testing.T) { // if both monPVCTemplate and monDataDirHostPath is provided via storageCluster sc := &api.StorageCluster{} mockStorageCluster.DeepCopyInto(sc) serverVersion := &version.Info{} topologyMap := &api.NodeTopologyMap{ Labels: map[string]api.TopologyLabelValues{}, } ca...
explode_data.jsonl/16366
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1225 }
[ 2830, 3393, 3564, 34, 23544, 28678, 11095, 1043, 1155, 353, 8840, 836, 8, 341, 197, 322, 421, 2176, 1615, 48469, 1162, 3708, 323, 1615, 1043, 6184, 9296, 1820, 374, 3897, 4566, 5819, 28678, 198, 29928, 1669, 609, 2068, 43771, 28678, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRGBStyle(t *testing.T) { is := assert.New(t) ForceColor() fg := RGB(20, 144, 234) bg := RGB(234, 78, 23) s := &RGBStyle{} is.True(s.IsEmpty()) is.Equal("", s.String()) s.Set(fg, bg) is.False(s.IsEmpty()) is.Equal("38;2;20;144;234;48;2;234;78;23", s.String()) s = &RGBStyle{} s.Set(fg, bg, OpUnde...
explode_data.jsonl/7012
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1060 }
[ 2830, 3393, 18184, 2323, 1155, 353, 8840, 836, 8, 341, 19907, 1669, 2060, 7121, 1155, 692, 197, 18573, 1636, 741, 1166, 70, 1669, 20978, 7, 17, 15, 11, 220, 16, 19, 19, 11, 220, 17, 18, 19, 340, 76131, 1669, 20978, 7, 17, 18, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestShouldNotHashArgon2idPasswordDueIterationsLessThanOne(t *testing.T) { hash, err := HashPassword("password", "BpLnfgDsc2WD8F2q", HashingAlgorithmArgon2id, 0, schema.DefaultCIPasswordConfiguration.Memory*1024, schema.DefaultCIPasswordConfiguration.Parallelism, schema.DefaultCIPasswordConfiguration.KeyLength...
explode_data.jsonl/40174
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 167 }
[ 2830, 3393, 14996, 2623, 6370, 2735, 263, 17, 307, 4876, 33060, 67789, 27451, 26067, 3966, 1155, 353, 8840, 836, 8, 341, 50333, 11, 1848, 1669, 6531, 4876, 445, 3833, 497, 330, 33, 79, 40101, 4817, 35, 2388, 17, 17563, 23, 37, 17, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestVariableRefMounthPath(t *testing.T) { th := NewKustTestHarness(t, "/app/base") th.writeK("/app/base", ` resources: - deployment.yaml - namespace.yaml vars: - name: NAMESPACE objref: apiVersion: v1 kind: Namespace name: my-namespace `) th.writeF("/app/base/deployment.yaml", ` apiVersion: ap...
explode_data.jsonl/35771
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 682 }
[ 2830, 3393, 7827, 3945, 44, 1624, 339, 1820, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 1532, 42, 590, 2271, 74248, 1155, 11, 3521, 676, 26090, 1138, 70479, 3836, 42, 4283, 676, 26090, 497, 22074, 12745, 510, 12, 23172, 33406, 198, 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...
2
func TestAuthSkippedForPreflightRequests(t *testing.T) { upstreamServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(200) _, err := w.Write([]byte("response")) if err != nil { t.Fatal(err) } })) t.Cleanup(upstreamServer.Close) opts := baseTestOption...
explode_data.jsonl/36411
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 407 }
[ 2830, 3393, 5087, 19290, 6450, 2461, 29978, 4145, 35295, 1155, 353, 8840, 836, 8, 341, 59810, 4027, 5475, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6692, 69794, 7, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestKubeConfigSubCommandsThatCreateFilesWithConfigFile(t *testing.T) { var tests = []struct { command string expectedFiles []string }{ { command: "all", expectedFiles: []string{ kubeadmconstants.AdminKubeConfigFileName, kubeadmconstants.KubeletKubeConfigFileName, kubeadmconstants.C...
explode_data.jsonl/9520
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1303 }
[ 2830, 3393, 42, 3760, 2648, 3136, 30479, 4792, 4021, 10809, 2354, 2648, 1703, 1155, 353, 8840, 836, 8, 1476, 2405, 7032, 284, 3056, 1235, 341, 197, 45566, 981, 914, 198, 197, 42400, 10809, 3056, 917, 198, 197, 59403, 197, 197, 515, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsValidHostIP(t *testing.T) { for _, tc := range []struct { Name string IP net.IP V6 bool Valid bool }{ { Name: "blank", }, { Name: "127.0.0.1", IP: localIP, }, { Name: "v4", IP: net.IPv4(10, 0, 0, 1), Valid: true, }, { Name: "v4 for v6 only", IP: ...
explode_data.jsonl/10790
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 565 }
[ 2830, 3393, 55470, 9296, 3298, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 21297, 220, 914, 198, 197, 197, 3298, 262, 4179, 46917, 198, 197, 17446, 21, 262, 1807, 198, 197, 197, 4088, 1807, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestTreeCounting(t *testing.T) { flightMap, _ := LoadMap("input.txt") treeCount := GetTrajectoryTreeCount(3, 1, flightMap) if treeCount != 7 { t.Errorf("Expected to see 7 trees, saw %d", treeCount) } }
explode_data.jsonl/51690
{ "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, 6533, 2507, 287, 1155, 353, 8840, 836, 8, 341, 1166, 4145, 2227, 11, 716, 1669, 8893, 2227, 445, 1355, 3909, 1138, 51968, 2507, 1669, 2126, 48138, 23363, 6533, 2507, 7, 18, 11, 220, 16, 11, 10971, 2227, 340, 743, 4916, 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 TestInvalidProviderAggregator(t *testing.T) { agg := &AggMedian{} agg.children = []Driver{&CryptoCompare{}, &CoinBase{}, &Kyber{}} output := agg.Query([]byte("SPOTPX/AAPL")) if output.Option == dt.Answered { t.Errorf("Crypto provider must cannot find APPL price") } }
explode_data.jsonl/45662
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 107 }
[ 2830, 3393, 7928, 5179, 9042, 58131, 1155, 353, 8840, 836, 8, 341, 197, 15718, 1669, 609, 9042, 70, 79514, 16094, 197, 15718, 13360, 284, 3056, 11349, 90, 5, 58288, 27374, 22655, 609, 41180, 3978, 22655, 609, 77118, 652, 6257, 532, 2117...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_DocumentProperties_GetDocumentPropertiesOnline(t *testing.T) { config := ReadConfiguration(t) client, ctx := PrepareTest(t, config) localFile := "Common/test_multi_pages.docx" options := map[string]interface{}{ } request := &models.GetDocumentPropertiesOnlineRequest{ Documen...
explode_data.jsonl/26156
{ "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, 1557, 1452, 7903, 13614, 7524, 7903, 19598, 1155, 353, 8840, 836, 8, 341, 262, 2193, 1669, 4457, 7688, 1155, 340, 262, 2943, 11, 5635, 1669, 31166, 2271, 1155, 11, 2193, 340, 262, 2205, 1703, 1669, 330, 10839, 12697, 25133, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImporter_NotEmptyUnsaved(t *testing.T) { tree, err := NewMutableTree(db.NewMemDB(), 0) require.NoError(t, err) tree.Set([]byte("a"), []byte{1}) _, err = tree.Import(1) require.Error(t, err) }
explode_data.jsonl/25877
{ "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, 77289, 60816, 3522, 1806, 32702, 1155, 353, 8840, 836, 8, 341, 51968, 11, 1848, 1669, 1532, 11217, 6533, 9791, 7121, 18816, 3506, 1507, 220, 15, 340, 17957, 35699, 1155, 11, 1848, 340, 51968, 4202, 10556, 3782, 445, 64, 3975...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1