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 TestFreeSpaceRemoveByLeastRecentlyUsed(t *testing.T) { manager, fakeRuntime, _ := newRealImageGCManager(ImageGCPolicy{}) fakeRuntime.ImageList = []container.Image{ makeImage(0, 1024), makeImage(1, 2048), } fakeRuntime.AllPodList = []*containertest.FakePod{ {Pod: &container.Pod{ Containers: []*containe...
explode_data.jsonl/48110
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 426 }
[ 2830, 3393, 10940, 9914, 13021, 1359, 81816, 45137, 22743, 1155, 353, 8840, 836, 8, 341, 92272, 11, 12418, 15123, 11, 716, 1669, 501, 12768, 1906, 22863, 2043, 30122, 38, 7123, 8018, 37790, 1166, 726, 15123, 7528, 852, 284, 3056, 3586, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOkMessage6(t *testing.T) { // Check header msg := NewPacket(VERSION_2).Ok(234) if msg.Header.GetSize() <= 6 { t.Fail() } }
explode_data.jsonl/29148
{ "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, 11578, 2052, 21, 1155, 353, 8840, 836, 8, 341, 197, 322, 4248, 4247, 198, 21169, 1669, 1532, 16679, 7, 17636, 62, 17, 568, 11578, 7, 17, 18, 19, 340, 743, 3750, 15753, 87472, 368, 2651, 220, 21, 341, 197, 3244, 57243, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHashSha1(t *testing.T) { // Prepare and run test cases type args struct { arr []byte sep string } tests := []struct { name string args args want string }{ {"no-sep", args{[]byte("test"), ""}, "A94A8FE5CCB19BA61C4C0873D391E987982FBBD3"}, {"with-sep", args{[]byte("test"), ":"}, "A9:4A:8F:E5:C...
explode_data.jsonl/57655
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 301 }
[ 2830, 3393, 6370, 62316, 16, 1155, 353, 8840, 836, 8, 1476, 197, 322, 31166, 323, 1598, 1273, 5048, 198, 13158, 2827, 2036, 341, 197, 36511, 3056, 3782, 198, 197, 197, 28036, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 1160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMkdirsReturnsNoErrorWhenDirectoryExists(t *testing.T) { beforeTest(t) conn := _getConnection(t) defer conn.Close() client := agaveproto.NewSftpRelayClient(conn) // create a random directory name in our test dir tmpTestDirPath, err := _createTempDirectory("") if err != nil { assert.FailNowf(t, err....
explode_data.jsonl/32549
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 749 }
[ 2830, 3393, 44, 12438, 82, 16446, 2753, 1454, 4498, 9310, 15575, 1155, 353, 8840, 836, 8, 1476, 63234, 2271, 1155, 692, 32917, 1669, 716, 52414, 1155, 340, 16867, 4534, 10421, 2822, 25291, 1669, 933, 523, 15110, 7121, 50, 25068, 6740, 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...
5
func Test_Unmarshaller_Allocation(t *testing.T) { t.Parallel() exactHeaders := `field_a,field_b` overlappingHeaders := `field_b,field_c` disjointHeaders := `field_c,field_d` var um *Unmarshaller var err error config := &Config{ Holder: sample{}, } // An Unmarshaller should be returned if the file headers ...
explode_data.jsonl/78440
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 710 }
[ 2830, 3393, 40687, 52541, 40812, 2527, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 8122, 531, 10574, 1669, 1565, 2566, 4306, 11, 2566, 880, 3989, 197, 1975, 90619, 10574, 1669, 1565, 2566, 880, 11, 2566, 666, 3989, 34597, 328...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue23623(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(c1 int);") tk.MustExec("insert into t1 values(-2147483648), (-2147483648), (null);") tk.Mu...
explode_data.jsonl/65577
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 164 }
[ 2830, 3393, 42006, 17, 18, 21, 17, 18, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDefaultOptions(t *testing.T) { opts := DefaultOptions() a := assert.New(t) a.Equal(75, opts.Ante) a.Equal((&StandardEdition{}).Name(), opts.Edition.Name()) a.Equal(3, opts.Lives) a.Equal(false, opts.AllowBlocks) }
explode_data.jsonl/72007
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 101 }
[ 2830, 3393, 3675, 3798, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 7899, 3798, 2822, 11323, 1669, 2060, 7121, 1155, 340, 11323, 12808, 7, 22, 20, 11, 12185, 875, 23446, 340, 11323, 12808, 42902, 19781, 88856, 6257, 568, 675, 1507, 12185...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewNeighbourWeightScalerInt64(t *testing.T) { require.Panics(t, func() { NewScalerInt64(-1) }) fullRange := int64(0) n1 := NewScalerInt64(fullRange) require.Equal(t, uint32(fullRange), n1.max) require.Equal(t, uint8(0), n1.shift) fullRange = int64(1 << 32) n2 := NewScalerInt64(fullRange) require.Equ...
explode_data.jsonl/30792
{ "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, 3564, 8813, 46818, 8295, 59553, 1072, 21, 19, 1155, 353, 8840, 836, 8, 341, 17957, 1069, 276, 1211, 1155, 11, 2915, 368, 314, 1532, 59553, 1072, 21, 19, 4080, 16, 8, 9568, 94042, 6046, 1669, 526, 21, 19, 7, 15, 340, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMultiFileInitOrder(t *testing.T) { mustParse := func(src string) *syntax.File { f, err := parseSrc("main", src) if err != nil { t.Fatal(err) } return f } fileA := mustParse(`package main; var a = 1`) fileB := mustParse(`package main; var b = 2`) // The initialization order must not depend on ...
explode_data.jsonl/29382
{ "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, 20358, 1703, 3803, 4431, 1155, 353, 8840, 836, 8, 341, 2109, 590, 14463, 1669, 2915, 14705, 914, 8, 353, 56193, 8576, 341, 197, 1166, 11, 1848, 1669, 4715, 20360, 445, 3817, 497, 2286, 340, 197, 743, 1848, 961, 2092, 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...
2
func Test_SequenceTimeout(t *testing.T) { projectName := "sequence-timeout" serviceName := "my-service" sequenceStateShipyardFilePath, err := CreateTmpShipyardFile(sequenceTimeoutShipyard) require.Nil(t, err) defer os.Remove(sequenceStateShipyardFilePath) source := "golang-test" t.Logf("creating project %s", p...
explode_data.jsonl/59553
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 773 }
[ 2830, 3393, 26920, 4375, 7636, 1155, 353, 8840, 836, 8, 341, 72470, 675, 1669, 330, 15512, 7246, 411, 698, 52934, 675, 1669, 330, 2408, 23461, 698, 197, 15512, 1397, 29624, 17428, 19090, 11, 1848, 1669, 4230, 35986, 29624, 17428, 1703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFeatureFlags(t *testing.T) { var c *api.Cluster var err error if c, err = ClusterFromBytes([]byte(singleAzConfigYaml + featureGates)); err != nil { t.Errorf("Incorrect config for controller feature gates: %s\n%s", err, featureGates) } if c.ControllerFeatureGates().Enabled() != true { t.Errorf("Incorre...
explode_data.jsonl/4361
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 207 }
[ 2830, 3393, 13859, 9195, 1155, 353, 8840, 836, 8, 341, 2405, 272, 353, 2068, 72883, 198, 2405, 1848, 1465, 198, 743, 272, 11, 1848, 284, 35380, 3830, 7078, 10556, 3782, 89903, 37199, 2648, 56, 9467, 488, 4565, 38, 973, 5905, 1848, 961...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestCallerInfos(t *testing.T) { module := "sample-module-caller-info" ShowCallerInfo(module, CRITICAL) ShowCallerInfo(module, DEBUG) HideCallerInfo(module, INFO) HideCallerInfo(module, ERROR) HideCallerInfo(module, WARNING) require.True(t, IsCallerInfoEnabled(module, CRITICAL)) require.True(t, IsCallerIn...
explode_data.jsonl/79296
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 58735, 38059, 1155, 353, 8840, 836, 8, 341, 54020, 1669, 330, 13611, 46718, 1786, 13956, 12505, 1837, 197, 7812, 58735, 1731, 19123, 11, 12617, 46817, 340, 197, 7812, 58735, 1731, 19123, 11, 12657, 340, 13292, 577, 58735, 1731...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMainEntry(t *testing.T) { conf := *gblConf conf.NoAutoGenMain = false gopClTestEx(t, &conf, "main", ` `, `package main func main() { } `) gopClTestEx(t, &conf, "main", ` func test() { println "hello" } `, `package main import fmt "fmt" func test() { fmt.Println("hello") } func main() { } `) gopClTe...
explode_data.jsonl/73712
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 200 }
[ 2830, 3393, 6202, 5874, 1155, 353, 8840, 836, 8, 341, 67850, 1669, 353, 70, 2024, 15578, 198, 67850, 16766, 13253, 9967, 6202, 284, 895, 271, 3174, 453, 5066, 2271, 840, 1155, 11, 609, 6135, 11, 330, 3817, 497, 22074, 7808, 1565, 1722...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSuObjectMigrate(t *testing.T) { assert := assert.T(t).This ob := SuObject{} for i := 1; i < 5; i++ { ob.Set(SuInt(i), SuInt(i)) } assert(ob.NamedSize()).Is(4) assert(ob.ListSize()).Is(0) ob.Add(Zero) assert(ob.NamedSize()).Is(0) assert(ob.ListSize()).Is(5) }
explode_data.jsonl/7114
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 36459, 1190, 44, 34479, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 836, 1155, 568, 1986, 198, 63353, 1669, 16931, 1190, 16094, 2023, 600, 1669, 220, 16, 26, 600, 366, 220, 20, 26, 600, 1027, 341, 197, 63353, 4202, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestUseEventDispatch(t *testing.T) { dispatch := storage.UseEventDispatch() cache := storage.CreateNamespaceConfig("abc") cache.AddChangeListener(dispatch) l := cache.GetChangeListeners() Assert(t, l.Len(), Equal(1)) }
explode_data.jsonl/17974
{ "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, 10253, 1556, 11283, 1155, 353, 8840, 836, 8, 341, 60072, 1669, 5819, 9046, 1556, 11283, 741, 52680, 1669, 5819, 7251, 22699, 2648, 445, 13683, 1138, 52680, 1904, 31668, 39226, 340, 8810, 1669, 6500, 2234, 4072, 31570, 741, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetTimeTypeCalendar(t *testing.T) { now := time.Now() year, month, day := now.Date() fmt.Printf("year:%d, month:%d, day:%d\n", year, month, day) fmt.Println(now.Year()) fmt.Println(now.Month()) fmt.Println(now.Day()) // clock hour, min, sec := now.Clock() fmt.Printf("hour:%d, min:%d, sec:%d\n", hour,...
explode_data.jsonl/4699
{ "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, 1949, 1462, 929, 19882, 1155, 353, 8840, 836, 8, 341, 80922, 1669, 882, 13244, 741, 197, 3157, 11, 2254, 11, 1899, 1669, 1431, 8518, 741, 11009, 19367, 445, 3157, 7533, 67, 11, 2254, 7533, 67, 11, 1899, 7533, 67, 1699, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUnauth(t *testing.T) { req, rec := setup() h := wraph(func(rw http.ResponseWriter, r *http.Request) { t.Error("should not invoke GitHub API") http.NotFound(rw, r) }) h.ServeHTTP(rec, req) if rec.Code != http.StatusUnauthorized { t.Error("wrong status code:", rec.Code) } }
explode_data.jsonl/21812
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 1806, 3242, 1155, 353, 8840, 836, 8, 341, 24395, 11, 1395, 1669, 6505, 741, 9598, 1669, 289, 1935, 18552, 2601, 86, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 3244, 6141, 445, 5445, 537, 19873, 32095, 5333, 1138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPipelineClientIssue832(t *testing.T) { t.Parallel() ln := fasthttputil.NewInmemoryListener() req := AcquireRequest() // Don't defer ReleaseRequest as we use it in a goroutine that might not be done at the end. req.SetHost("example.com") res := AcquireResponse() // Don't defer ReleaseResponse as we u...
explode_data.jsonl/79331
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 456 }
[ 2830, 3393, 34656, 2959, 42006, 23, 18, 17, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 2261, 1669, 4937, 96336, 628, 321, 7121, 641, 17269, 2743, 2822, 24395, 1669, 6381, 984, 1900, 741, 197, 322, 4320, 944, 17956, 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 TestKVVars(t *testing.T) { store, clean := realtikvtest.CreateMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("set @@tidb_backoff_lock_fast = 1") tk.MustExec("set @@tidb_backoff_weight = 100") tk.MustExec("create table if not exists kvvars (a int key...
explode_data.jsonl/5738
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 503 }
[ 2830, 3393, 82707, 28305, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1931, 83, 1579, 85, 1944, 7251, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 741, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewEtcdRaftConsenter(t *testing.T) { srv, err := comm.NewGRPCServer("127.0.0.1:0", comm.ServerConfig{}) assert.NoError(t, err) defer srv.Stop() dialer := &cluster.PredicateDialer{} cryptoProvider, err := sw.NewDefaultSecurityLevelWithKeystore(sw.NewDummyKeyStore()) assert.NoError(t, err) consenter := et...
explode_data.jsonl/41064
{ "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, 3564, 31860, 4385, 55535, 723, 15220, 1950, 1155, 353, 8840, 836, 8, 341, 1903, 10553, 11, 1848, 1669, 1063, 7121, 8626, 4872, 5475, 445, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 15, 497, 1063, 22997, 2648, 37790, 6948, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRouter1LevelUnmatch(t *testing.T) { // Create empty handler h := new(Handler) // Create empty context c := new(Context) c.Params = Params{} // Create route r := Route("/level", h) // Non-matching routes rs := []string{"/", "", "/:level", "/Level", "/some/thing", "some/thing", "/more/levels/to/be/su...
explode_data.jsonl/35794
{ "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, 9523, 16, 4449, 1806, 6347, 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, 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 TestReadHTBClasses(t *testing.T) { tests := []struct { input string want map[TCHandle]HTBClass }{ {input: "", want: map[TCHandle]HTBClass{}}, {input: "\n", want: map[TCHandle]HTBClass{}}, {input: "\n \n", want: map[TCHandle]HTBClass{}}, { input: `class htb 1:2 root prio 0 rate 354917Kbit ceil 35...
explode_data.jsonl/69823
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 672 }
[ 2830, 3393, 4418, 2545, 33, 20077, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 22427, 914, 198, 197, 50780, 220, 2415, 20340, 83153, 60, 2545, 33, 1957, 198, 197, 59403, 197, 197, 90, 1355, 25, 7342, 1366, 25, 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 TestGaiaCLISend(t *testing.T) { chainID, servAddr, port := initializeFixtures(t) flags := fmt.Sprintf("--home=%s --node=%v --chain-id=%v", gaiacliHome, servAddr, chainID) // start gaiad server proc := tests.GoExecuteTWithStdout(t, fmt.Sprintf("gaiad start --home=%s --rpc.laddr=%v", gaiadHome, servAddr)) def...
explode_data.jsonl/20992
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 897 }
[ 2830, 3393, 80788, 685, 3140, 1637, 408, 1155, 353, 8840, 836, 8, 341, 197, 8819, 915, 11, 4853, 13986, 11, 2635, 1669, 9468, 25958, 18513, 1155, 340, 59516, 1669, 8879, 17305, 21549, 5117, 7846, 82, 1177, 3509, 7846, 85, 1177, 8819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTextT_Primitive(t *testing.T) { var p Primitive = &TextT{} if p == nil { // In actuality, this test won't compile if it isn't a Primitive. t.Errorf("TextT does not implement the Primitive interface") } }
explode_data.jsonl/42364
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 1178, 51, 32716, 13654, 1155, 353, 8840, 836, 8, 341, 2405, 281, 51460, 284, 609, 1178, 51, 16094, 743, 281, 621, 2092, 341, 197, 197, 322, 758, 5042, 487, 11, 419, 1273, 2765, 944, 19192, 421, 432, 4436, 944, 264, 51460...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransformerToKnativeService(t *testing.T) { kfsvc := v1alpha2.KFService{ ObjectMeta: metav1.ObjectMeta{ Name: "mnist", Namespace: "default", }, Spec: v1alpha2.KFServiceSpec{ Default: v1alpha2.EndpointSpec{ Transformer: &v1alpha2.TransformerSpec{ DeploymentSpec: v1alpha2.Deployment...
explode_data.jsonl/63804
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2704 }
[ 2830, 3393, 46358, 1249, 42, 29738, 1860, 1155, 353, 8840, 836, 8, 341, 16463, 69, 58094, 1669, 348, 16, 7141, 17, 11352, 37, 1860, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 21297, 25, 414, 330, 21775, 380, 756, 298, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestCorrectNumTombstones(t *testing.T) { db, delete := openTestDB(t, nil) defer func() { testutil.Ok(t, db.Close()) delete() }() blockRange := DefaultOptions.BlockRanges[0] defaultLabel := labels.FromStrings("foo", "bar") defaultMatcher := labels.NewEqualMatcher(defaultLabel[0].Name, defaultLabel[0].Val...
explode_data.jsonl/64387
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 485 }
[ 2830, 3393, 33092, 4651, 51, 2855, 32510, 1155, 353, 8840, 836, 8, 341, 20939, 11, 3698, 1669, 1787, 2271, 3506, 1155, 11, 2092, 340, 16867, 2915, 368, 341, 197, 18185, 1314, 54282, 1155, 11, 2927, 10421, 2398, 197, 15618, 741, 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...
1
func TestDuplicateTxId(t *testing.T) { theLedger := new(mockLedger) pm := &mocks.Mapper{} cryptoProvider, err := sw.NewDefaultSecurityLevelWithKeystore(sw.NewDummyKeyStore()) assert.NoError(t, err) validator := txvalidatorv14.NewTxValidator( "", semaphore.New(10), &mocktxvalidator.Support{LedgerVal: theLedge...
explode_data.jsonl/47820
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 426 }
[ 2830, 3393, 53979, 31584, 764, 1155, 353, 8840, 836, 8, 341, 32088, 60850, 1389, 1669, 501, 30389, 60850, 1389, 340, 86511, 1669, 609, 16712, 82, 71892, 16094, 1444, 9444, 5179, 11, 1848, 1669, 2021, 7121, 3675, 15352, 4449, 2354, 6608, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApp_Run_Help(t *testing.T) { var helpArguments = [][]string{{"boom", "--help"}, {"boom", "-h"}, {"boom", "help"}} for _, args := range helpArguments { buf := new(bytes.Buffer) t.Logf("==> checking with arguments %v", args) app := &App{ Name: "boom", Usage: "make an explosive entrance", W...
explode_data.jsonl/52588
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 305 }
[ 2830, 3393, 2164, 84158, 2039, 1267, 1155, 353, 8840, 836, 8, 341, 2405, 1492, 19139, 284, 52931, 917, 2979, 1, 95316, 497, 14482, 8653, 14345, 5212, 95316, 497, 6523, 71, 14345, 5212, 95316, 497, 330, 8653, 9207, 630, 2023, 8358, 2827,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGraphDriver(t *testing.T) { h := NewHandlerFromGraphDriver(Init) l := sockets.NewInmemSocket("test", 0) go h.Serve(l) defer l.Close() client := &http.Client{Transport: &http.Transport{ Dial: l.Dial, }} resp, err := pluginRequest(client, "/GraphDriver.Init", &graphPlugin.InitRequest{Home: "foo"}) if...
explode_data.jsonl/76498
{ "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, 11212, 11349, 1155, 353, 8840, 836, 8, 341, 9598, 1669, 1532, 3050, 3830, 11212, 11349, 7, 3803, 340, 8810, 1669, 47557, 7121, 641, 10536, 10286, 445, 1944, 497, 220, 15, 340, 30680, 305, 83535, 2333, 340, 16867, 326, 10421,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateJobBase(t *testing.T) { ka := string(prowjobv1.KubernetesAgent) ja := string(prowjobv1.JenkinsAgent) goodSpec := v1.PodSpec{ Containers: []v1.Container{ {}, }, } cfg := Config{ ProwConfig: ProwConfig{ Plank: Plank{JobQueueConcurrencies: map[string]int{"queue": 0}}, PodNamespa...
explode_data.jsonl/41015
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1435 }
[ 2830, 3393, 17926, 12245, 3978, 1155, 353, 8840, 836, 8, 341, 197, 4554, 1669, 914, 1295, 651, 8799, 85, 16, 11352, 29827, 16810, 340, 197, 5580, 1669, 914, 1295, 651, 8799, 85, 16, 3503, 57006, 16810, 340, 3174, 1386, 8327, 1669, 348...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGitServiceKindFromSecrets(t *testing.T) { t.Parallel() secret := createSecret(secretName, map[string]string{ "jenkins.io/service-kind": serviceKind, }, map[string]string{ "jenkins.io/url": serviceURL, }) kubeClient := fake.NewSimpleClientset(secret) foundServiceKind, err := kube.GetServiceKi...
explode_data.jsonl/6626
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 190 }
[ 2830, 3393, 46562, 1860, 10629, 3830, 19773, 82, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 20474, 1669, 1855, 19773, 75862, 675, 345, 197, 19567, 14032, 30953, 515, 298, 197, 1, 23166, 11704, 4245, 34186, 59706, 788, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNotExistGet(t *testing.T) { d, done := newDS(t, nil) defer done() addTestCases(t, d, testcases) has, err := d.Has(bg, ds.NewKey("/a/b/c/d")) if err != nil { t.Error(err) } if has { t.Error("Key should not be found") } val, err := d.Get(bg, ds.NewKey("/a/b/c/d")) if val != nil { t.Error("Key ...
explode_data.jsonl/922
{ "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, 45535, 1949, 1155, 353, 8840, 836, 8, 341, 2698, 11, 2814, 1669, 501, 5936, 1155, 11, 2092, 340, 16867, 2814, 741, 12718, 2271, 37302, 1155, 11, 294, 11, 1273, 23910, 692, 63255, 11, 1848, 1669, 294, 16152, 59360, 11, 1147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInitialize_Activate(t *testing.T) { data, err := json.Marshal(resp) assert.NoError(t, err) r := []*mock.Response{} for i := 0; i < len(goodCases); i++ { r = append(r, mock.NewResponse(200, data)) } ms := mock.NewServer(nil, r...) assert.NotNil(t, ms) defer ms.Close() ic := &config.InitConfig{} e...
explode_data.jsonl/24503
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1154 }
[ 2830, 3393, 9928, 46672, 731, 1155, 353, 8840, 836, 8, 341, 8924, 11, 1848, 1669, 2951, 37271, 20267, 340, 6948, 35699, 1155, 11, 1848, 692, 7000, 1669, 29838, 16712, 12574, 16094, 2023, 600, 1669, 220, 15, 26, 600, 366, 2422, 3268, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddEntry(t *testing.T) { for i := range testCases { fcmd := fakeexec.FakeCmd{ CombinedOutputScript: []fakeexec.FakeAction{ // Success func() ([]byte, []byte, error) { return []byte{}, nil, nil }, // Success func() ([]byte, []byte, error) { return []byte{}, nil, nil }, // Failure f...
explode_data.jsonl/74010
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 821 }
[ 2830, 3393, 2212, 5874, 1155, 353, 8840, 836, 8, 341, 2023, 600, 1669, 2088, 1273, 37302, 341, 197, 1166, 8710, 1669, 12418, 11748, 991, 726, 15613, 515, 298, 197, 94268, 5097, 5910, 25, 3056, 30570, 11748, 991, 726, 2512, 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...
1
func TestServer_ErrorParsingTemplate(t *testing.T) { log.SetOutput(ioutil.Discard) defer log.SetOutput(os.Stdout) assert.Panics(t, badParseCall, "templates.MustGet() did not panic() as currently expected") }
explode_data.jsonl/3788
{ "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, 5475, 28651, 68839, 7275, 1155, 353, 8840, 836, 8, 341, 6725, 4202, 5097, 1956, 30158, 909, 47560, 340, 16867, 1487, 4202, 5097, 9638, 83225, 692, 6948, 1069, 276, 1211, 1155, 11, 3873, 14463, 7220, 11, 330, 15463, 50463, 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
func TestRead(t *testing.T) { dir, err := ioutil.TempDir("", "agola") if err != nil { t.Fatalf("unexpected err: %v", err) } defer os.RemoveAll(dir) etcdDir, err := ioutil.TempDir(dir, "etcd") if err != nil { t.Fatalf("unexpected err: %v", err) } tetcd := setupEtcd(t, etcdDir) defer shutdownEtcd(tetcd) c...
explode_data.jsonl/81140
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1058 }
[ 2830, 3393, 4418, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 351, 7924, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 53859, 1848, 25, 1018, 85, 497, 1848, 340, 197, 532, 16867, 2643...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDcodeMap(t *testing.T) { t.Skip("skipping TestDcodeMap") m := map[string]int{} _ = CodecDecode("83a56170706c65cc96a662616e616e61cd012ca56c656d6f6ecd012c", &m) if m["apple"] != 150 { t.Errorf("CodecDecode result: %+v", m) } }
explode_data.jsonl/30442
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 35, 1851, 2227, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 445, 4886, 5654, 3393, 35, 1851, 2227, 5130, 2109, 1669, 2415, 14032, 63025, 16094, 197, 62, 284, 67077, 32564, 445, 23, 18, 64, 20, 21, 16, 22, 15, 22, 15, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestClientEvalSha(t *testing.T) { opts := &redis.Options{Addr: "127.0.0.1:6379"} assert := assert.New(t) mt := mocktracer.Start() defer mt.Stop() client := NewClient(opts, WithServiceName("my-redis")) sha1 := client.ScriptLoad("return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}").Val() mt.Reset() client.EvalSha(s...
explode_data.jsonl/43233
{ "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, 2959, 54469, 62316, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 609, 21748, 22179, 90, 13986, 25, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 21, 18, 22, 24, 16707, 6948, 1669, 2060, 7121, 1155, 340, 2109, 83, 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 TestDependencyOutputWithTerragruntSource(t *testing.T) { t.Parallel() cleanupTerraformFolder(t, TEST_FIXTURE_GET_OUTPUT) tmpEnvPath := copyEnvironment(t, TEST_FIXTURE_GET_OUTPUT) rootPath := util.JoinPath(tmpEnvPath, TEST_FIXTURE_GET_OUTPUT, "regression-1124", "live") modulePath := util.JoinPath(tmpEnvPath, ...
explode_data.jsonl/10146
{ "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, 36387, 5097, 2354, 51402, 68305, 3850, 3608, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 60639, 51, 13886, 627, 13682, 1155, 11, 13602, 42635, 41486, 12702, 23981, 340, 20082, 14359, 1820, 1669, 2975, 12723, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMacroEngine(t *testing.T) { Convey("MacroEngine", t, func() { engine := &MySqlMacroEngine{} query := &tsdb.Query{} Convey("Given a time range between 2018-04-12 00:00 and 2018-04-12 00:05", func() { from := time.Date(2018, 4, 12, 18, 0, 0, 0, time.UTC) to := from.Add(5 * time.Minute) timeRange...
explode_data.jsonl/49532
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2817 }
[ 2830, 3393, 60175, 4571, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 60175, 4571, 497, 259, 11, 2915, 368, 341, 197, 80118, 1669, 609, 5050, 8269, 60175, 4571, 16094, 197, 27274, 1669, 609, 2576, 1999, 15685, 31483, 197, 93070, 5617...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntegrationTTL(t *testing.T) { settings := testIntegrationSettings(t) client, err := NewClient(context.Background(), []string{settings.addr}, ClientOptions{ DialTimeout: 2 * time.Second, DialKeepAlive: 2 * time.Second, }) if err != nil { t.Fatalf("NewClient(%q): %v", settings.addr, err) } servic...
explode_data.jsonl/53142
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 195 }
[ 2830, 3393, 52464, 51, 13470, 1155, 353, 8840, 836, 8, 341, 62930, 1669, 1273, 52464, 6086, 1155, 340, 25291, 11, 1848, 1669, 1532, 2959, 5378, 19047, 1507, 3056, 917, 90, 6511, 42826, 2137, 8423, 3798, 515, 197, 10957, 530, 7636, 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 TestPagerCmdParseFail(t *testing.T) { if _, err := StartPagerWriter("'foo", ioutil.Discard); err == nil || !strings.Contains(err.Error(), "Cannot parsing") { t.Fatal("Unexpected error", err) } }
explode_data.jsonl/51375
{ "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, 22640, 15613, 14463, 19524, 1155, 353, 8840, 836, 8, 341, 743, 8358, 1848, 1669, 5145, 22640, 6492, 45456, 7975, 497, 43144, 909, 47560, 1215, 1848, 621, 2092, 1369, 753, 18594, 11545, 3964, 6141, 1507, 330, 17444, 22314, 899,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapProxy_ReplaceIfSameWithNonSerializableKey(t *testing.T) { _, err := mp.ReplaceIfSame(student{}, "test", "test") AssertErrorNotNil(t, err, "replaceIfSame did not return an error for nonserializable key") mp.Clear() }
explode_data.jsonl/57063
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 2227, 16219, 62, 23107, 2679, 19198, 2354, 8121, 29268, 1592, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 10490, 20858, 2679, 19198, 39004, 22655, 330, 1944, 497, 330, 1944, 1138, 18017, 1454, 96144, 1155, 11, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestErrParseSchema(t *testing.T) { testSchema := ` create table t1 like t2; ` expected := "check your schema, table[t2] doesn't exist" ddl, err := parseSchema(testSchema, &Options{StrictDDL: true}) if err != nil { t.Fatalf("parseSchema: %v", err) } _, err = newTabletEnvironment(ddl, defaultTestOpts()) if...
explode_data.jsonl/27938
{ "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, 7747, 14463, 8632, 1155, 353, 8840, 836, 8, 341, 18185, 8632, 1669, 22074, 3182, 1965, 259, 16, 1075, 259, 17, 280, 3989, 42400, 1669, 330, 2028, 697, 10802, 11, 1965, 14193, 17, 60, 3171, 944, 3000, 698, 197, 78372, 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 TestGetLogName(t *testing.T) { name := GetLogName([]byte("xxx"), 0) assert.Equal(t, "LogReserved", name) assert.Equal(t, "LogErr", GetLogName([]byte("coins"), 1)) assert.Equal(t, "LogFee", GetLogName([]byte("token"), 2)) assert.Equal(t, "LogReserved", GetLogName([]byte("xxxx"), 100)) }
explode_data.jsonl/58325
{ "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, 1949, 2201, 675, 1155, 353, 8840, 836, 8, 341, 11609, 1669, 2126, 2201, 675, 10556, 3782, 445, 24048, 3975, 220, 15, 340, 6948, 12808, 1155, 11, 330, 2201, 53003, 497, 829, 340, 6948, 12808, 1155, 11, 330, 2201, 7747, 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 TestGetUserinfo(t *testing.T) { px, idp, _ := newTestProxyService(nil) token := newTestToken(idp.getLocation()).getToken() client, _ := px.client.OAuthClient() claims, err := getUserinfo(client, px.idp.UserInfoEndpoint.String(), token.Encode()) assert.NoError(t, err) assert.NotEmpty(t, claims) }
explode_data.jsonl/12648
{ "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, 1474, 2733, 1155, 353, 8840, 836, 8, 341, 197, 1767, 11, 877, 79, 11, 716, 1669, 501, 2271, 16219, 1860, 27907, 340, 43947, 1669, 501, 2271, 3323, 3724, 79, 51228, 6011, 84731, 741, 25291, 11, 716, 1669, 17146, 6581,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTimer_AddLessThanInterval(t *testing.T) { gtest.Case(t, func() { timer := gtimer.New(10, 100*time.Millisecond) array := garray.New() timer.Add(20*time.Millisecond, func() { array.Append(1) }) time.Sleep(50*time.Millisecond) gtest.Assert(array.Len(...
explode_data.jsonl/3725
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 10105, 21346, 27451, 26067, 10256, 1155, 353, 8840, 836, 8, 341, 262, 342, 1944, 727, 519, 1155, 11, 2915, 368, 341, 286, 9021, 1669, 342, 19278, 7121, 7, 16, 15, 11, 220, 16, 15, 15, 77053, 71482, 340, 286, 1334, 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 TestGenerate(t *testing.T) { config.Init() vt := &v2Token{} req1, _ := http.NewRequest(http.MethodHead, "/api/2.0/", nil) assert.Nil(t, vt.Generate(req1)) req2, _ := http.NewRequest(http.MethodGet, "/v2/library/ubuntu/manifests/v1.0", nil) req2.Header.Set("Authorization", "Bearer 123") assert.Nil(t, vt.Gene...
explode_data.jsonl/66187
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 351 }
[ 2830, 3393, 31115, 1155, 353, 8840, 836, 8, 341, 25873, 26849, 741, 5195, 83, 1669, 609, 85, 17, 3323, 16094, 24395, 16, 11, 716, 1669, 1758, 75274, 19886, 20798, 12346, 11, 3521, 2068, 14, 17, 13, 15, 28105, 2092, 340, 6948, 59678, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTestInterfaceRoundRobinPool_F(t *testing.T) { impl1 := &testImpl{r1: "11", r2: "12"} impl2 := &testImpl{r1: "21", r2: "22"} wrapped, err := NewTestInterfaceRoundRobinPool(impl1, impl2) require.NoError(t, err) for i := 0; i < 8; i++ { r1, r2, err := wrapped.F(context.Background(), "a1", "a2") assert....
explode_data.jsonl/24522
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 272 }
[ 2830, 3393, 2271, 5051, 27497, 76671, 10551, 1400, 1155, 353, 8840, 836, 8, 341, 197, 6383, 16, 1669, 609, 1944, 9673, 90, 81, 16, 25, 330, 16, 16, 497, 435, 17, 25, 330, 16, 17, 16707, 197, 6383, 17, 1669, 609, 1944, 9673, 90, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestSlowClientIsRemovedWithErrOutOfCapacity(t *testing.T) { s := pubsub.NewServer() s.SetLogger(log.TestingLogger()) s.Start() defer s.Stop() ctx := context.Background() subscription, err := s.Subscribe(ctx, clientID, query.Empty{}) require.NoError(t, err) err = s.Publish(ctx, "Fat Cobra") require.NoErro...
explode_data.jsonl/22055
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 58289, 2959, 3872, 42642, 2354, 7747, 31731, 29392, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 6675, 1966, 7121, 5475, 741, 1903, 4202, 7395, 12531, 8787, 287, 7395, 2398, 1903, 12101, 741, 16867, 274, 30213, 2822, 20985, 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 TestEmptyPathToString(t *testing.T) { path := neo4j.Path{ Nodes: []neo4j.Node{}, Relationships: []neo4j.Relationship{}, } actual := input.ToString(path) expected := `` if actual != expected { t.Fatalf(`expected '%v' but got '%v'`, expected, actual) } }
explode_data.jsonl/7081
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 3522, 1820, 5870, 1155, 353, 8840, 836, 8, 341, 26781, 1669, 35082, 19, 73, 17474, 515, 197, 197, 12288, 25, 260, 3056, 51260, 19, 73, 21714, 38837, 197, 197, 50822, 82, 25, 3056, 51260, 19, 73, 38939, 15471, 38837, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestWSClientPingPong(t *testing.T) { cl := client.NewWSClient(tcpAddr, websocketEndpoint) cl.SetLogger(log.TestingLogger()) err := cl.Start() require.Nil(t, err) defer cl.Stop() time.Sleep(6 * time.Second) }
explode_data.jsonl/47839
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 90 }
[ 2830, 3393, 7433, 2959, 69883, 47, 644, 1155, 353, 8840, 836, 8, 341, 39407, 1669, 2943, 7121, 7433, 2959, 98203, 13986, 11, 58943, 27380, 340, 39407, 4202, 7395, 12531, 8787, 287, 7395, 2398, 9859, 1669, 1185, 12101, 741, 17957, 59678, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_normalizeInfo(t *testing.T) { type args struct { data coingecko.CoinPrice } tests := []struct { name string args args wantInfo blockatlas.ChartCoinInfo }{ { "test normalize coingecko chart info 1", args{ data: coingecko.CoinPrice{ MarketCap: 555, TotalVolume: ...
explode_data.jsonl/23999
{ "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, 80807, 1731, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 8924, 1062, 17707, 31463, 727, 1961, 6972, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 31215, 257, 2827, 198, 197, 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 TestHeadTracker_New(t *testing.T) { t.Parallel() db := pgtest.NewGormDB(t) ethClient, sub := cltest.NewEthClientAndSubMockWithDefaultChain(t) ethClient.On("SubscribeNewHead", mock.Anything, mock.Anything).Return(sub, nil) ethClient.On("HeadByNumber", mock.Anything, (*big.Int)(nil)).Return(cltest.Head(0), ni...
explode_data.jsonl/63745
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 329 }
[ 2830, 3393, 12346, 31133, 39582, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20939, 1669, 17495, 1944, 7121, 38, 493, 3506, 1155, 692, 197, 769, 2959, 11, 1186, 1669, 1185, 1944, 7121, 65390, 2959, 3036, 3136, 11571, 2354, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestVolumeCopyUp(t *testing.T) { const ( testImage = "gcr.io/k8s-cri-containerd/volume-copy-up:1.0" execTimeout = time.Minute ) t.Logf("Create a sandbox") sbConfig := PodSandboxConfig("sandbox", "volume-copy-up") sb, err := runtimeService.RunPodSandbox(sbConfig, *runtimeHandler) require.NoError(t, err...
explode_data.jsonl/43697
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 762 }
[ 2830, 3393, 18902, 12106, 2324, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 18185, 1906, 256, 284, 330, 70, 5082, 4245, 14109, 23, 82, 12, 740, 12578, 67, 5457, 4661, 66140, 5239, 25, 16, 13, 15, 698, 197, 67328, 7636, 284, 882, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetClusterServiceClass(t *testing.T) { classExternalMetaData := make(map[string]interface{}) classExternalMetaData["longDescription"] = "example long description" classExternalMetaData["dependencies"] = []string{"docker.io/centos/7", "docker.io/centos/8"} classExternalMetaDataRaw, err := json.Marshal(clas...
explode_data.jsonl/65169
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2241 }
[ 2830, 3393, 1949, 28678, 1860, 1957, 1155, 353, 8840, 836, 8, 341, 15487, 25913, 37307, 1669, 1281, 9147, 14032, 31344, 37790, 15487, 25913, 37307, 1183, 4825, 5009, 1341, 284, 330, 8687, 1293, 4008, 698, 15487, 25913, 37307, 1183, 54274, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCanonicalHost(t *testing.T) { for h, want := range canonicalHostTests { got, err := canonicalHost(h) if want == "error" { if err == nil { t.Errorf("%q: got %q and nil error, want non-nil", h, got) } continue } if err != nil { t.Errorf("%q: %v", h, err) continue } if got != want ...
explode_data.jsonl/14659
{ "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, 70914, 9296, 1155, 353, 8840, 836, 8, 341, 2023, 305, 11, 1366, 1669, 2088, 42453, 9296, 18200, 341, 197, 3174, 354, 11, 1848, 1669, 42453, 9296, 3203, 340, 197, 743, 1366, 621, 330, 841, 1, 341, 298, 743, 1848, 621, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestUnavailableHosts(t *testing.T) { // Scenario: A node is configured to connect // to a host that is down node1 := newTestNode(t) clientConfig := node1.dialer.Config // The below timeout makes sure that connection establishment is done // asynchronously. Had it been synchronous, the Remote() call would be...
explode_data.jsonl/39832
{ "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, 92928, 9296, 82, 1155, 353, 8840, 836, 8, 341, 197, 322, 58663, 25, 362, 2436, 374, 19755, 311, 4564, 198, 197, 322, 311, 264, 3468, 429, 374, 1495, 198, 20831, 16, 1669, 501, 2271, 1955, 1155, 692, 25291, 2648, 1669, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCustomImageDelete(t *testing.T) { setup() defer teardown() mux.HandleFunc(testlib.CloudServerURL(strings.Join([]string{customImagePath, "0b5ae9ed-7cfb-454b-a5cc-df0bba693532"}, "/")), func(writer http.ResponseWriter, r *http.Request) { require.Equal(t, http.MethodDelete, r.Method) }) err := client.S...
explode_data.jsonl/35489
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 178 }
[ 2830, 3393, 10268, 1906, 6435, 1155, 353, 8840, 836, 8, 341, 84571, 741, 16867, 49304, 741, 2109, 2200, 63623, 8623, 2740, 94492, 5475, 3144, 51442, 22363, 10556, 917, 90, 9163, 66356, 11, 330, 15, 65, 20, 5918, 24, 291, 12, 22, 9792,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_metricsForwarder_cleanSecretsCache(t *testing.T) { mf := &metricsForwarder{ creds: sync.Map{}, } mf.creds.Store("k", "v") mf.creds.Store("kk", "vv") mf.cleanSecretsCache() _, found := mf.creds.Load("k") assert.False(t, found) _, found = mf.creds.Load("kk") assert.False(t, found) mf.creds.Rang...
explode_data.jsonl/8875
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 187 }
[ 2830, 3393, 37686, 25925, 261, 19573, 19773, 82, 8233, 1155, 353, 8840, 836, 8, 341, 2109, 69, 1669, 609, 43262, 25925, 261, 515, 197, 197, 85734, 25, 12811, 10104, 38837, 197, 630, 2109, 69, 520, 53369, 38047, 445, 74, 497, 330, 85, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateAssetTxNotState(t *testing.T) { intf := interface{}(&CreateAssetTx{}) if _, ok := intf.(verify.State); ok { t.Fatalf("shouldn't be marked as state") } }
explode_data.jsonl/73229
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 67 }
[ 2830, 3393, 4021, 16604, 31584, 2623, 1397, 1155, 353, 8840, 836, 8, 341, 2084, 69, 1669, 3749, 6257, 2099, 4021, 16604, 31584, 37790, 743, 8358, 5394, 1669, 93706, 12832, 12446, 18942, 1215, 5394, 341, 197, 3244, 30762, 445, 5445, 77, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAnnounce(t *testing.T) { ctx := context.New(config.Project{ Announce: config.Announce{ Twitter: config.Twitter{ Enabled: true, }, }, }) require.Error(t, Pipe{}.Run(ctx)) }
explode_data.jsonl/35941
{ "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, 27093, 9734, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 7121, 8754, 30944, 515, 197, 197, 27093, 9734, 25, 2193, 875, 7370, 9734, 515, 298, 10261, 3801, 25, 2193, 836, 3801, 515, 571, 197, 5462, 25, 830, 345, 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
func TestDisjointMulticlusterEntries(t *testing.T) { assert := assert.New(t) // Mock the k8s client with a "global" ServiceEntry k8s := kubetest.NewK8SClientMock() remoteSE := kubernetes.GenericIstioObject{ ObjectMeta: meta_v1.ObjectMeta{ Name: "externalSE", }, Spec: map[string]interface{}{ "hosts": [...
explode_data.jsonl/75204
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 828 }
[ 2830, 3393, 4839, 32850, 40404, 87367, 4993, 24533, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 197, 322, 14563, 279, 595, 23, 82, 2943, 448, 264, 330, 9752, 1, 5362, 5874, 198, 16463, 23, 82, 1669, 595, 392, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDirectoryResolver_MultipleFilesByPath(t *testing.T) { cases := []struct { name string input []string refCount int }{ { name: "finds multiple files", input: []string{"image-symlinks/file-1.txt", "image-symlinks/file-2.txt"}, refCount: 2, }, { name: "skips non-existing...
explode_data.jsonl/50113
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 424 }
[ 2830, 3393, 9310, 18190, 1245, 12229, 10809, 1359, 1820, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 22427, 262, 3056, 917, 198, 197, 59504, 2507, 526, 198, 197, 59403, 197, 197, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestImageTooManyFill(t *testing.T) { const width = 1024 indexToColor := func(index int) uint8 { return uint8((17*index + 0x40) % 256) } src, _ := NewImage(1, 1, FilterNearest) dst, _ := NewImage(width, 1, FilterNearest) for i := 0; i < width; i++ { c := indexToColor(i) src.Fill(color.RGBA{c, c, c, 0x...
explode_data.jsonl/10899
{ "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, 1906, 31246, 8441, 14449, 1155, 353, 8840, 836, 8, 341, 4777, 2374, 284, 220, 16, 15, 17, 19, 271, 26327, 1249, 1636, 1669, 2915, 7195, 526, 8, 2622, 23, 341, 197, 853, 2622, 23, 1188, 16, 22, 9, 1252, 488, 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...
1
func TestJsonListValue_ConvertToNative_Any(t *testing.T) { list := NewJSONList(NewRegistry(), &structpb.ListValue{Values: []*structpb.Value{ {Kind: &structpb.Value_StringValue{StringValue: "hello"}}, {Kind: &structpb.Value_NumberValue{NumberValue: 1}}}}) anyVal, err := list.ConvertToNative(anyValueType) if err !...
explode_data.jsonl/55357
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 5014, 852, 1130, 15100, 1621, 1249, 20800, 1566, 3834, 1155, 353, 8840, 836, 8, 341, 14440, 1669, 1532, 5370, 852, 35063, 15603, 1507, 609, 1235, 16650, 5814, 1130, 90, 6227, 25, 29838, 1235, 16650, 6167, 515, 197, 197, 90, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestBoundedReadWriteSeeker_Seek__SeekEnd_Zero(t *testing.T) { sb := NewSeekableBuffer() brws, err := NewBoundedReadWriteSeeker(sb, 55, 99) log.PanicIf(err) offsetRaw, err := brws.Seek(0, os.SEEK_END) log.PanicIf(err) if offsetRaw != 99 { t.Fatalf("Relative offset not correct: (%d)", offsetRaw) } real...
explode_data.jsonl/21768
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 33, 13082, 58610, 39350, 261, 26920, 1225, 563, 39350, 3727, 97672, 1155, 353, 8840, 836, 8, 341, 24842, 1669, 1532, 39350, 480, 4095, 2822, 80255, 8915, 11, 1848, 1669, 1532, 33, 13082, 58610, 39350, 261, 36384, 11, 220, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestAccAWSServiceDiscoveryService_Tags(t *testing.T) { rName := fmt.Sprintf("tf-acc-test-%s", acctest.RandStringFromCharSet(8, acctest.CharSetAlpha)) resourceName := "aws_service_discovery_service.test" resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t); testAccPartitionHas...
explode_data.jsonl/59711
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 673 }
[ 2830, 3393, 14603, 14419, 1220, 1017, 67400, 1860, 1139, 2032, 1155, 353, 8840, 836, 8, 341, 7000, 675, 1669, 8879, 17305, 445, 8935, 12, 4475, 16839, 11069, 82, 497, 1613, 67880, 2013, 437, 703, 3830, 4768, 1649, 7, 23, 11, 1613, 678...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDefaultMessageFormat(t *testing.T) { plugin := Plugin{ Repo: Repo{ Name: "go-hello", Namespace: "appleboy", }, Commit: Commit{ Sha: "e7c4f0a63ceeb42a39ac7806f7b51f3f0d204fd2", Author: "Bo-Yi Wu", Branch: "master", Message: "update travis", }, Build: Build{ Number: 101...
explode_data.jsonl/17928
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 257 }
[ 2830, 3393, 3675, 2052, 4061, 1155, 353, 8840, 836, 8, 341, 197, 9138, 1669, 21245, 515, 197, 197, 25243, 25, 71509, 515, 298, 21297, 25, 414, 330, 3346, 2832, 4791, 756, 298, 90823, 25, 330, 22377, 17184, 756, 197, 197, 1583, 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 TestLinuxConnIntegrationClosedConn(t *testing.T) { c, err := Dial(unix.NETLINK_GENERIC, nil) if err != nil { t.Fatalf("failed to dial netlink: %v", err) } // Close the connection immediately and ensure that future calls get EBADF. if err := c.Close(); err != nil { t.Fatalf("failed to close: %v", err) } ...
explode_data.jsonl/33494
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 46324, 9701, 52464, 26884, 9701, 1155, 353, 8840, 836, 8, 341, 1444, 11, 1848, 1669, 66155, 18364, 941, 36515, 35956, 25274, 11, 2092, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 16091, 311, 27860, 4179, 2080, 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...
4
func TestClient_Read(t *testing.T) { reg, _ := newSimpleRegistrar(scope, namePrefix, table) fieldsToRead := []string{"ID", "Email"} results := map[string]dosa.FieldValue{ "id": int64(2), "name": "bar", "email": "bar@email.com", } // success case ctrl := gomock.NewController(t) defer ctrl.Finish() moc...
explode_data.jsonl/53328
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 616 }
[ 2830, 3393, 2959, 38381, 1155, 353, 8840, 836, 8, 341, 37013, 11, 716, 1669, 501, 16374, 70252, 32013, 11, 829, 14335, 11, 1965, 340, 55276, 1249, 4418, 1669, 3056, 917, 4913, 915, 497, 330, 4781, 16707, 55497, 1669, 2415, 14032, 60, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfig(t *testing.T) { rand.Seed(time.Now().UnixNano()) configFilePath := filepath.Join(os.TempDir(), fmt.Sprintf("config-%d.yaml", rand.Int())) fmt.Println(configFilePath) t.Run("save and load a config", func(t *testing.T) { c := Config{ TLSConfig: comm.Config{ CertPath: "foo", KeyPath:...
explode_data.jsonl/39815
{ "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, 2648, 1155, 353, 8840, 836, 8, 341, 7000, 437, 5732, 291, 9730, 13244, 1005, 55832, 83819, 2398, 25873, 19090, 1669, 26054, 22363, 9638, 65009, 6184, 1507, 8879, 17305, 445, 1676, 11069, 67, 33406, 497, 10382, 7371, 12145, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPopulateGPUEnvironmentVariables(t *testing.T) { container := &apicontainer.Container{ Name: "myName", Image: "image:tag", GPUIDs: []string{"gpu1", "gpu2"}, } container1 := &apicontainer.Container{ Name: "myName1", Image: "image:tag", } task := &Task{ Arn: "test", Resourc...
explode_data.jsonl/37253
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 11598, 6334, 49891, 12723, 22678, 1155, 353, 8840, 836, 8, 341, 53290, 1669, 609, 391, 51160, 1743, 33672, 515, 197, 21297, 25, 256, 330, 2408, 675, 756, 197, 53397, 25, 220, 330, 1805, 25, 4578, 756, 197, 9600, 6325, 3046...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMd5(t *testing.T) { Convey("If Md5", t, func() { So(Md5("too"), ShouldEqual, "b403d3f0efbf4cb850d2d543758cb57c") }) }
explode_data.jsonl/78105
{ "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, 72529, 20, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 2679, 53110, 20, 497, 259, 11, 2915, 368, 341, 197, 76912, 3189, 67, 20, 445, 36127, 3975, 12260, 2993, 11, 330, 65, 19, 15, 18, 67, 18, 69, 15, 823, 13233, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStorageKey_Decode(t *testing.T) { bz := []byte{12, 251, 42} decoded := make(StorageKey, len(bz)) err := DecodeFromBytes(bz, &decoded) assert.NoError(t, err) assert.Equal(t, StorageKey(bz), decoded) }
explode_data.jsonl/3062
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 91 }
[ 2830, 3393, 5793, 1592, 78668, 534, 1155, 353, 8840, 836, 8, 341, 2233, 89, 1669, 3056, 3782, 90, 16, 17, 11, 220, 17, 20, 16, 11, 220, 19, 17, 532, 197, 62913, 1669, 1281, 7, 5793, 1592, 11, 2422, 1883, 89, 1171, 9859, 1669, 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 TestResponse_GetAgents_AgentVerboseEqual(t *testing.T) { popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) p := NewPopulatedResponse_GetAgents_Agent(popr, false) data, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { panic(err) } msg := &Response_GetAgents_Agent{} if err :=...
explode_data.jsonl/42023
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 2582, 13614, 91804, 1566, 15772, 63404, 2993, 1155, 353, 8840, 836, 8, 341, 3223, 46288, 1669, 6888, 33864, 7121, 37270, 33864, 7121, 3608, 9730, 13244, 1005, 55832, 83819, 12145, 3223, 1669, 1532, 11598, 7757, 2582, 13614, 9180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNodeAddr(t *testing.T) { var r Record if addr := r.NodeAddr(); addr != nil { t.Errorf("wrong address on empty record: got %v, want %v", addr, nil) } require.NoError(t, r.Sign(privkey)) expected := "caaa1485d83b18b32ed9ad666026151bf0cae8a0a88c857ae2d4c5be2daa6726" assert.Equal(t, expected, hex.EncodeTo...
explode_data.jsonl/39494
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 152 }
[ 2830, 3393, 1955, 13986, 1155, 353, 8840, 836, 8, 341, 2405, 435, 13583, 198, 743, 10789, 1669, 435, 21714, 13986, 2129, 10789, 961, 2092, 341, 197, 3244, 13080, 445, 34870, 2621, 389, 4287, 3255, 25, 2684, 1018, 85, 11, 1366, 1018, 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...
2
func TestConnector_ContextCanceled(t *testing.T) { store := newStore(t, []string{"1.2.3.4:666"}) log, check := newLogFunc(t) connector := protocol.NewConnector(0, store, protocol.Config{}, log) ctx, cancel := context.WithTimeout(context.Background(), 25*time.Millisecond) defer cancel() _, err := connector.Conn...
explode_data.jsonl/39279
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 184 }
[ 2830, 3393, 35954, 71994, 63263, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 501, 6093, 1155, 11, 3056, 917, 4913, 16, 13, 17, 13, 18, 13, 19, 25, 21, 21, 21, 1, 8824, 6725, 11, 1779, 1669, 501, 2201, 9626, 1155, 340, 32917, 1256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPushCommandHelpOutput(t *testing.T) { reqFactory := &testreq.FakeReqFactory{} cmdRunner := commands.NewRunner(nil, reqFactory) app, _ := NewApp(cmdRunner) var updateCommand, pushCommand cli.Command for _, cmd := range app.Commands { if cmd.Name == "push" { pushCommand = cmd } else if cmd.Name == "...
explode_data.jsonl/27046
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 308 }
[ 2830, 3393, 16644, 4062, 12689, 5097, 1155, 353, 8840, 836, 8, 341, 24395, 4153, 1669, 609, 1944, 2958, 991, 726, 27234, 4153, 16094, 25920, 19486, 1669, 11293, 7121, 19486, 27907, 11, 4232, 4153, 340, 28236, 11, 716, 1669, 1532, 2164, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContextFormFileFailed(t *testing.T) { buf := new(bytes.Buffer) mw := multipart.NewWriter(buf) mw.Close() c, _ := CreateTestContext(httptest.NewRecorder()) c.Request, _ = http.NewRequest("POST", "/", nil) c.Request.Header.Set("Content-Type", mw.FormDataContentType()) c.engine.MaxMultipartMemory = 8 << 20...
explode_data.jsonl/26738
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 155 }
[ 2830, 3393, 1972, 1838, 1703, 9408, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 501, 23158, 22622, 340, 2109, 86, 1669, 68058, 7121, 6492, 10731, 340, 2109, 86, 10421, 741, 1444, 11, 716, 1669, 4230, 2271, 1972, 73392, 83, 70334, 7121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_JavaScript_Partial_Without_Extension(t *testing.T) { const tmpl = "let a = 1;\n<%= partial(\"part\") %>" const part = "alert('Hi <%= name %>!');" r := require.New(t) e := NewEngine() box := e.TemplatesBox r.NoError(box.AddString(jsTemplate, tmpl)) r.NoError(box.AddString("_part.js", part)) h := e....
explode_data.jsonl/44613
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 10598, 2907, 5910, 1088, 20894, 62, 26040, 62, 12049, 1155, 353, 8840, 836, 8, 341, 4777, 79839, 284, 330, 1149, 264, 284, 220, 16, 17882, 77, 27, 35205, 7130, 36014, 4480, 62705, 1018, 19134, 4777, 949, 284, 330, 5083, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_chartsFromIndex(t *testing.T) { r := &models.Repo{Name: "test", URL: "http://testrepo.com"} index, _ := parseRepoIndex([]byte(validRepoIndexYAML)) charts := chartsFromIndex(index, r) assert.Equal(t, len(charts), 2, "number of charts") indexWithDeprecated := validRepoIndexYAML + ` deprecated-chart: -...
explode_data.jsonl/67802
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 4138, 7038, 3830, 1552, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 609, 6507, 2817, 5368, 63121, 25, 330, 1944, 497, 5548, 25, 330, 1254, 1110, 1944, 23476, 905, 16707, 26327, 11, 716, 1669, 4715, 25243, 1552, 10556, 3782, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_CreateScratchWithOpts_SizeGB_Success(t *testing.T) { rhcs := runhcs.Runhcs{ Debug: true, } scratchPath := filepath.Join(t.TempDir(), "scratch.vhdx") ctx := context.TODO() opts := &runhcs.CreateScratchOpts{ SizeGB: 30, } err := rhcs.CreateScratchWithOpts(ctx, scratchPath, opts) if err != nil { ...
explode_data.jsonl/71753
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 208 }
[ 2830, 3393, 34325, 65508, 754, 2354, 43451, 45553, 5381, 87161, 1155, 353, 8840, 836, 8, 341, 7000, 71, 4837, 1669, 1598, 71, 4837, 16708, 71, 4837, 515, 197, 34424, 25, 830, 345, 197, 630, 1903, 86284, 1820, 1669, 26054, 22363, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestBatchedStatement(t *testing.T) { dktesting.ParallelTest(t, specs, func(t *testing.T, c dktest.ContainerInfo) { ip, port, err := c.Port(defaultPort) if err != nil { t.Fatal(err) } addr := msConnectionString(ip, port, "x-batch=true") ms := &SQLServer{} d, err := ms.Open(addr) if err != nil { ...
explode_data.jsonl/74114
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 419 }
[ 2830, 3393, 21074, 291, 8636, 1155, 353, 8840, 836, 8, 341, 2698, 74, 8840, 41288, 7957, 2271, 1155, 11, 32247, 11, 2915, 1155, 353, 8840, 836, 11, 272, 40204, 1944, 33672, 1731, 8, 341, 197, 46531, 11, 2635, 11, 1848, 1669, 272, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestT(t *testing.T) { CustomVerboseFlag = true logLevel := os.Getenv("log_level") logutil.InitLogger(logutil.NewLogConfig(logLevel, logutil.DefaultLogFormat, "", logutil.EmptyFileLogConfig, false)) TestingT(t) }
explode_data.jsonl/45353
{ "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, 51, 1155, 353, 8840, 836, 8, 341, 6258, 1450, 63404, 12135, 284, 830, 198, 6725, 4449, 1669, 2643, 64883, 445, 839, 8274, 1138, 6725, 1314, 26849, 7395, 12531, 1314, 7121, 2201, 2648, 12531, 4449, 11, 1487, 1314, 13275, 2201...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_UnsafeSetIsProperSubset(t *testing.T) { a := makeUnsafeSet([]int{1, 2, 3, 5, 7}) b := NewThreadUnsafeSet() b.Add(7) b.Add(1) b.Add(5) b.Add(3) b.Add(2) if !a.IsSubset(b) { t.Error("set a should be a subset of set b") } if a.IsProperSubset(b) { t.Error("set a should not be a proper subset of set...
explode_data.jsonl/185
{ "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, 40687, 18675, 1649, 3872, 1336, 712, 70584, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 1281, 78770, 1649, 10556, 396, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 20, 11, 220, 22, 3518, 2233, 1669, 1532, 6855, 78770, 1649,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetScopes(t *testing.T) { log.Println("Test GetScopes") res, err := testDevice.GetScopes() if err != nil { t.Error(err) } js := prettyJSON(&res) fmt.Println(js) }
explode_data.jsonl/60356
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 1949, 3326, 18523, 1155, 353, 8840, 836, 8, 341, 6725, 12419, 445, 2271, 2126, 3326, 18523, 5130, 10202, 11, 1848, 1669, 1273, 6985, 2234, 3326, 18523, 741, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestNamespaceFlushDontNeedFlush(t *testing.T) { ns, close := newTestNamespaceWithIDOpts(t, defaultTestNs1ID, namespace.NewOptions().SetFlushEnabled(false)) defer close() ns.bootstrapState = Bootstrapped err := ns.WarmFlush(xtime.Now(), nil) require.NoError(t, err) require.NoError(t, ns.ColdFlush(nil)) }
explode_data.jsonl/35355
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 22699, 46874, 35, 544, 23657, 46874, 1155, 353, 8840, 836, 8, 341, 84041, 11, 3265, 1669, 501, 2271, 22699, 2354, 915, 43451, 1155, 11, 1638, 2271, 47360, 16, 915, 345, 197, 56623, 7121, 3798, 1005, 1649, 46874, 5462, 3576, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInterpreterAliases(t *testing.T) { s, err := parseFile("src/parse/asp/test_data/interpreter/aliases.build") require.NoError(t, err) assert.EqualValues(t, 42, s.Lookup("v")) }
explode_data.jsonl/81073
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 58426, 95209, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 4715, 1703, 445, 3548, 14, 6400, 14, 13367, 12697, 1769, 14, 90554, 14, 33924, 13239, 1138, 17957, 35699, 1155, 11, 1848, 340, 6948, 12808, 6227, 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
func TestDogServer(t *testing.T) { d := gd.Default() // Rpc d.RpcServer.AddDogHandler(1024, test) if err := d.RpcServer.DogRpcRegister(); err != nil { t.Logf("DogRpcRegister occur error:%s", err) return } err := d.RpcServer.Run(10241) if err != nil { t.Logf("Error occurs, error = %s", err.Error()) retur...
explode_data.jsonl/19360
{ "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, 48940, 5475, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 32630, 13275, 741, 197, 322, 79961, 198, 2698, 2013, 3992, 5475, 1904, 48940, 3050, 7, 16, 15, 17, 19, 11, 1273, 340, 743, 1848, 1669, 294, 2013, 3992, 5475, 909, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRecvMsgVote(t *testing.T) { tests := []struct { state StateType i, term uint64 voteFor uint64 wreject bool }{ {StateFollower, 0, 0, None, true}, {StateFollower, 0, 1, None, true}, {StateFollower, 0, 2, None, true}, {StateFollower, 0, 3, None, false}, {StateFollower, 1, 0, None, true}, ...
explode_data.jsonl/67352
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 753 }
[ 2830, 3393, 63483, 6611, 41412, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 24291, 256, 3234, 929, 198, 197, 8230, 11, 4647, 2622, 21, 19, 198, 197, 5195, 1272, 2461, 2622, 21, 19, 198, 197, 6692, 46996, 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, 1...
7
func TestNoDialH2RoundTripperType(t *testing.T) { t1 := new(http.Transport) t2 := new(Transport) rt := noDialH2RoundTripper{t2} if err := registerHTTPSProtocol(t1, rt); err != nil { t.Fatal(err) } rv := reflect.ValueOf(rt) if rv.Type().Kind() != reflect.Struct { t.Fatalf("kind = %v; net/http expects struct",...
explode_data.jsonl/16152
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 242 }
[ 2830, 3393, 2753, 35, 530, 39, 17, 27497, 21884, 6922, 929, 1155, 353, 8840, 836, 8, 341, 3244, 16, 1669, 501, 19886, 87669, 340, 3244, 17, 1669, 501, 7, 27560, 340, 55060, 1669, 902, 35, 530, 39, 17, 27497, 21884, 6922, 90, 83, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func Test_mergeMaps(t *testing.T) { m1 := map[string]interface{}{ "apiVersion": "apiextensions.k8s.io/v1beta1", "kind": "CustomResourceDefinition", "metadata": map[string]interface{}{ "labels": map[string]interface{}{ "app": "cert-manager", "chart": "cert-manager-0.2.2", "heritage": ...
explode_data.jsonl/82637
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 670 }
[ 2830, 3393, 20888, 36562, 1155, 353, 8840, 836, 8, 341, 2109, 16, 1669, 2415, 14032, 31344, 67066, 197, 197, 1, 2068, 5637, 788, 330, 2068, 27609, 5202, 23, 82, 4245, 5457, 16, 19127, 16, 756, 197, 197, 1, 15314, 788, 981, 330, 1026...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDoltUserPrivileges(t *testing.T) { harness := newDoltHarness(t) for _, script := range DoltUserPrivTests { t.Run(script.Name, func(t *testing.T) { harness.Setup(setup.MydbData) engine, err := harness.NewEngine(t) require.NoError(t, err) defer engine.Close() ctx := enginetest.NewContextWithC...
explode_data.jsonl/38663
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 832 }
[ 2830, 3393, 35, 6181, 1474, 32124, 70838, 1155, 353, 8840, 836, 8, 341, 9598, 23518, 1669, 501, 35, 6181, 74248, 1155, 340, 2023, 8358, 5316, 1669, 2088, 422, 6181, 1474, 32124, 18200, 341, 197, 3244, 16708, 42795, 2967, 11, 2915, 1155,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewPollerWithFinalGET(t *testing.T) { srv, close := mock.NewServer() srv.AppendResponse(mock.WithStatusCode(http.StatusAccepted), mock.WithHeader(shared.HeaderRetryAfter, "1")) srv.AppendResponse(mock.WithStatusCode(http.StatusOK)) // terminal srv.AppendRespon...
explode_data.jsonl/74220
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 508 }
[ 2830, 3393, 3564, 49207, 261, 2354, 19357, 3806, 1155, 353, 8840, 836, 8, 341, 1903, 10553, 11, 3265, 1669, 7860, 7121, 5475, 741, 1903, 10553, 8982, 2582, 30389, 26124, 15872, 19886, 10538, 65906, 701, 7860, 26124, 4047, 65069, 15753, 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 TestEmptyMarshal(t *testing.T) { result, err := Marshal(emptyTestData) if err != nil { t.Fatal(err) } expected := emptyTestToml if !bytes.Equal(result, expected) { t.Errorf("Bad empty marshal: expected\n-----\n%s\n-----\ngot\n-----\n%s\n-----\n", expected, result) } }
explode_data.jsonl/46316
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 3522, 55438, 1155, 353, 8840, 836, 8, 341, 9559, 11, 1848, 1669, 35667, 24216, 83920, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 42400, 1669, 4287, 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 TestChangefeedRestartDuringBackfill(t *testing.T) { defer leaktest.AfterTest(t)() defer func(i time.Duration) { jobs.DefaultAdoptInterval = i }(jobs.DefaultAdoptInterval) jobs.DefaultAdoptInterval = 10 * time.Millisecond testFn := func(t *testing.T, db *gosql.DB, f cdctest.TestFeedFactory) { knobs := f.Ser...
explode_data.jsonl/7064
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1834 }
[ 2830, 3393, 1143, 524, 823, 12051, 59354, 16014, 3707, 7559, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 16867, 2915, 1956, 882, 33795, 8, 314, 6887, 13275, 2589, 2912, 10256, 284, 600, 95916, 31105, 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 Test_invertTree(t *testing.T) { root := &TreeNode{Val: 4, Left: &TreeNode{Val: 2, Left: &TreeNode{Val: 1}, Right: &TreeNode{Val: 3}}, Right: &TreeNode{Val: 7, Left: &TreeNode{Val: 6}, Right: &TreeNode{Val: 9}}} if r := invertTree(root); r.String() != "<<<<nil> 9 <nil>> 7 <<nil> 6 <nil>>> 4 <<<nil> 3 <nil>> 2 <<...
explode_data.jsonl/65670
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 154 }
[ 2830, 3393, 1243, 1621, 6533, 1155, 353, 8840, 836, 8, 341, 33698, 1669, 609, 26597, 90, 2208, 25, 220, 19, 11, 13727, 25, 609, 26597, 90, 2208, 25, 220, 17, 11, 13727, 25, 609, 26597, 90, 2208, 25, 220, 16, 2137, 10083, 25, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestClock_StopGracefull(t *testing.T) { var ( jobsNum = 2000 myClock = NewClock() jobInterval = time.Millisecond * 100 count = int32(0) ) fn := func() { atomic.AddInt32(&count, 1) } for i := 0; i < jobsNum; i++ { myClock.AddJobRepeat(time.Second+jobInterval*time.Duration(i), 1, fn) ...
explode_data.jsonl/2028
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 240 }
[ 2830, 3393, 26104, 80308, 86543, 8878, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 12428, 5481, 4651, 257, 284, 220, 17, 15, 15, 15, 198, 197, 13624, 26104, 257, 284, 1532, 26104, 741, 197, 68577, 10256, 284, 882, 71482, 353, 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 TestInitCacheEmptyFeatures(t *testing.T) { tmpdir, err := ioutil.TempDir("", "wasmvm-testing") require.NoError(t, err) defer os.RemoveAll(tmpdir) cache, err := InitCache(tmpdir, "", TESTING_CACHE_SIZE, TESTING_MEMORY_LIMIT) ReleaseCache(cache) }
explode_data.jsonl/62547
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 102 }
[ 2830, 3393, 3803, 8233, 3522, 21336, 1155, 353, 8840, 836, 8, 341, 20082, 3741, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 86, 10530, 7338, 82155, 1138, 17957, 35699, 1155, 11, 1848, 340, 16867, 2643, 84427, 10368, 3741, 340, 52680, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1