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 TestInterface(t *testing.T) { gopClTest(t, ` type Shape interface { Area() float64 } func foo(shape Shape) { shape.Area() } `, `package main type Shape interface { Area() float64 } func foo(shape Shape) { shape.Area() } `) }
explode_data.jsonl/73604
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 93 }
[ 2830, 3393, 5051, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 1565, 271, 1313, 22526, 3749, 341, 197, 8726, 368, 2224, 21, 19, 198, 630, 2830, 15229, 25933, 22526, 8, 341, 197, 12231, 81435, 741, 532, 7808, 1565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_CardinalitySet(t *testing.T) { a := NewSet() if a.Cardinality() != 0 { t.Error("set should be an empty set") } a.Add(1) if a.Cardinality() != 1 { t.Error("set should have a size of 1") } a.Remove(1) if a.Cardinality() != 0 { t.Error("set should be an empty set") } a.Add(9) if a.Cardina...
explode_data.jsonl/180
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 202 }
[ 2830, 3393, 920, 567, 80777, 1649, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 1532, 1649, 2822, 743, 264, 48613, 80777, 368, 961, 220, 15, 341, 197, 3244, 6141, 445, 746, 1265, 387, 458, 4287, 738, 1138, 197, 630, 11323, 1904, 7, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestArrayStack(t *testing.T) { as := NewArrayStack() assert.Equal(t, 0, as.n) assert.Equal(t, 0, as.Size()) assert.Equal(t, 1, len(as.a)) err := as.Add(0, "a") // [a] assert.NoError(t, err) assert.Equal(t, ArrayStack{ a: []interface{}{"a"}, n: 1, }, as) assert.Equal(t, 1, len(as.a)) err = as.Add(0,...
explode_data.jsonl/34360
{ "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, 1857, 4336, 1155, 353, 8840, 836, 8, 341, 60451, 1669, 1532, 1857, 4336, 741, 6948, 12808, 1155, 11, 220, 15, 11, 438, 1253, 340, 6948, 12808, 1155, 11, 220, 15, 11, 438, 2465, 2398, 6948, 12808, 1155, 11, 220, 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...
1
func TestWrapOnewayHandlerInvalid(t *testing.T) { tests := []struct { Name string Func interface{} }{ {"empty", func() {}}, {"not-a-function", 0}, { "wrong-args-in", func(context.Context) error { return nil }, }, { "wrong-ctx", func(string, *struct{}) error { return nil }, },...
explode_data.jsonl/5
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 460 }
[ 2830, 3393, 26787, 46, 931, 352, 3050, 7928, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 21297, 914, 198, 197, 197, 9626, 3749, 16094, 197, 59403, 197, 197, 4913, 3194, 497, 2915, 368, 4687, 1583, 197, 197, 4913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestWebhookCABundleRetrieval(t *testing.T) { logrus.SetLevel(logrus.DebugLevel) namespace := "ns" missingCAError := fmt.Errorf("Unable to find ca") caBundle := []byte("Foo") type initial struct { csvs []runtime.Object crds []runtime.Object objs []runtime.Object desc v1alpha1.WebhookDescription } ty...
explode_data.jsonl/31209
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3265 }
[ 2830, 3393, 5981, 20873, 34, 1867, 4206, 12020, 7231, 831, 1155, 353, 8840, 836, 8, 341, 90822, 4202, 4449, 12531, 20341, 20345, 4449, 340, 56623, 1669, 330, 4412, 698, 197, 30616, 5049, 1454, 1669, 8879, 13080, 445, 17075, 311, 1477, 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 TestAccSnapshot_update(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_snapshot", "test") r := SnapshotResource{} data.ResourceTest(t, r, []acceptance.TestStep{ { Config: r.fromManagedDisk(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzure(r), ...
explode_data.jsonl/78018
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 201 }
[ 2830, 3393, 14603, 15009, 8882, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 25505, 25212, 83920, 1155, 11, 330, 1370, 324, 4195, 53265, 497, 330, 1944, 1138, 7000, 1669, 68697, 4783, 31483, 8924, 20766, 2271, 1155, 11, 435, 11, 3056, 1033...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGocloak_GetUsers(t *testing.T) { t.Parallel() cfg := GetConfig(t) client := NewClientWithDebug(t) token := GetAdminToken(t, client) users, err := client.GetUsers( token.AccessToken, cfg.GoCloak.Realm, GetUsersParams{ Username: cfg.GoCloak.UserName, }) FailIfErr(t, err, "GetUsers failed") t.L...
explode_data.jsonl/79556
{ "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, 38, 509, 385, 585, 13614, 7137, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50286, 1669, 2126, 2648, 1155, 340, 25291, 1669, 1532, 2959, 2354, 7939, 1155, 340, 43947, 1669, 2126, 7210, 3323, 1155, 11, 2943, 692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_scsi_GetDMDeviceByChildren(t *testing.T) { type args struct { ctx context.Context devices []string } ctx := context.Background() defaultArgs := args{ctx: ctx, devices: []string{mh.ValidDeviceName, mh.ValidDeviceName2}} ctrl := gomock.NewController(t) defer ctrl.Finish() sysPath1 := fmt.Spri...
explode_data.jsonl/65986
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1635 }
[ 2830, 3393, 643, 63229, 13614, 8395, 6985, 1359, 11539, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 20985, 257, 2266, 9328, 198, 197, 27302, 1216, 3056, 917, 198, 197, 630, 20985, 1669, 2266, 19047, 2822, 11940, 4117, 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 TestSetCellFloat(t *testing.T) { sheet := "Sheet1" t.Run("with no decimal", func(t *testing.T) { f := NewFile() assert.NoError(t, f.SetCellFloat(sheet, "A1", 123.0, -1, 64)) assert.NoError(t, f.SetCellFloat(sheet, "A2", 123.0, 1, 64)) val, err := f.GetCellValue(sheet, "A1") assert.NoError(t, err) ass...
explode_data.jsonl/947
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 522 }
[ 2830, 3393, 1649, 3599, 5442, 1155, 353, 8840, 836, 8, 341, 1903, 3674, 1669, 330, 10541, 16, 698, 3244, 16708, 445, 4197, 902, 12122, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1166, 1669, 1532, 1703, 741, 197, 6948, 35699, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCPUShare_ParseCPUShare(t *testing.T) { tests := []struct { in string out CPUShare err error }{ {"1024", 1024, nil}, {"1", 0, ErrInvalidCPUShare}, {"1025", 1025, nil}, } for _, tt := range tests { c, err := ParseCPUShare(tt.in) if err != tt.err { t.Fatalf("err => %v; want %v", err, tt.e...
explode_data.jsonl/64516
{ "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, 31615, 12115, 77337, 31615, 12115, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 17430, 220, 914, 198, 197, 13967, 13940, 12115, 198, 197, 9859, 1465, 198, 197, 59403, 197, 197, 4913, 16, 15, 17, 19, 497...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestLexPosition(t *testing.T) { l := lex("x", nil) c1 := l.next() if c1 != 'x' { t.Errorf("next: unexpected rune %d", c1) } if l.pos != 1 { t.Errorf("next: unexpected position %d", l.pos) } if l.start != 0 { t.Errorf("next: unexpected start %d", l.start) } l.backup() if l.pos != 0 { t.Errorf("bac...
explode_data.jsonl/81026
{ "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, 47778, 3812, 1155, 353, 8840, 836, 8, 341, 8810, 1669, 22429, 445, 87, 497, 2092, 340, 1444, 16, 1669, 326, 4529, 741, 743, 272, 16, 961, 364, 87, 6, 341, 197, 3244, 13080, 445, 3600, 25, 16500, 63499, 1018, 67, 497, 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...
7
func TestBindWriterOnUint8Slice(t *testing.T) { cases := []struct { p []byte v []uint8 }{ { []byte{0x88}, []uint8{0x88}, }, { []byte{ 0x88, 0x83, 0x00, 0x00, }, []uint8{0x88, 0x83, 0x00, 0x00}, }, } for _, c := range cases { var u []uint8 w := BindWriterOnUint8Slice(&u) if w ==...
explode_data.jsonl/58525
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 360 }
[ 2830, 3393, 9950, 6492, 1925, 21570, 23, 33236, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 3223, 3056, 3782, 198, 197, 5195, 3056, 2496, 23, 198, 197, 59403, 197, 197, 515, 298, 197, 1294, 3782, 90, 15, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHasMonotonicClock(t *testing.T) { yes := func(expr string, tt Time) { if GetMono(&tt) == 0 { t.Errorf("%s: missing monotonic clock reading", expr) } } no := func(expr string, tt Time) { if GetMono(&tt) != 0 { t.Errorf("%s: unexpected monotonic clock reading", expr) } } yes("<-After(1)", <-A...
explode_data.jsonl/48363
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 647 }
[ 2830, 3393, 10281, 11095, 354, 14011, 26104, 1155, 353, 8840, 836, 8, 341, 197, 9693, 1669, 2915, 34322, 914, 11, 17853, 4120, 8, 341, 197, 743, 2126, 58946, 2099, 5566, 8, 621, 220, 15, 341, 298, 3244, 13080, 4430, 82, 25, 7402, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDateTimeAddReal(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) cases := []struct { sql string result string }{ {`SELECT "1900-01-01 00:00:00" + INTERVAL 1.123456789e3 SECOND;`, "1900-01-01 00:18:43.456789"}, {`SELECT 19000101000000 ...
explode_data.jsonl/65486
{ "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, 7689, 2212, 12768, 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, 692, 1444, 2264, 1669, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func Test_Join_string(t *testing.T) { type args struct { outer Enumerator[string] inner Enumerator[string] outerKeySelector func(string) string innerKeySelector func(string) string resultSelector func(string, string) string } tests := []struct { name string args args want Enum...
explode_data.jsonl/67374
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 538 }
[ 2830, 3393, 10598, 1961, 3904, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 197, 2676, 310, 76511, 14032, 921, 197, 197, 4382, 310, 76511, 14032, 921, 197, 197, 2676, 1592, 5877, 2915, 3609, 8, 914, 198, 197, 197, 4382, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListLemMeasure(t *testing.T) { net, objs := networkWithLemMeasureObjects(t, 5) ctx := net.Validators[0].ClientCtx request := func(next []byte, offset, limit uint64, total bool) []string { args := []string{ fmt.Sprintf("--%s=json", tmcli.OutputFlag), } if next == nil { args = append(args, fmt.Sp...
explode_data.jsonl/44105
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 865 }
[ 2830, 3393, 852, 43, 336, 32236, 1155, 353, 8840, 836, 8, 341, 59486, 11, 52937, 1669, 3922, 2354, 43, 336, 32236, 11543, 1155, 11, 220, 20, 692, 20985, 1669, 4179, 13, 31748, 58, 15, 936, 2959, 23684, 198, 23555, 1669, 2915, 16913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCompactionAllowZeroSeqNum(t *testing.T) { var d *DB defer func() { if d != nil { require.NoError(t, d.Close()) } }() metaRE := regexp.MustCompile(`^L([0-9]+):([^-]+)-(.+)$`) var fileNum base.FileNum parseMeta := func(s string) (level int, meta *fileMetadata) { match := metaRE.FindStringSubmatch...
explode_data.jsonl/51412
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1371 }
[ 2830, 3393, 13552, 1311, 18605, 17999, 20183, 4651, 1155, 353, 8840, 836, 8, 341, 2405, 294, 353, 3506, 198, 16867, 2915, 368, 341, 197, 743, 294, 961, 2092, 341, 298, 17957, 35699, 1155, 11, 294, 10421, 2398, 197, 197, 532, 197, 6681...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvalidRequest(t *testing.T) { reqUrl := createUrl("/wd/hub/session") resp, err := http.Post( reqUrl, "text/plain", strings.NewReader("payload"), ) AssertThat(t, err, Is{nil}) AssertThat(t, resp, Code{http.StatusBadRequest}) }
explode_data.jsonl/65292
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 99 }
[ 2830, 3393, 7928, 1900, 1155, 353, 8840, 836, 8, 341, 24395, 2864, 1669, 1855, 2864, 4283, 6377, 7530, 392, 54760, 1138, 34653, 11, 1848, 1669, 1758, 23442, 1006, 197, 24395, 2864, 345, 197, 197, 66251, 36971, 756, 197, 11355, 819, 6858...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCompare(t *testing.T) { got := CompareOrPanic(integer.FromInt64(10).(types.Numeric), integer.FromInt64(20).(types.Numeric)) if got != Less { t.Errorf("CompareOrPanic(10, 20) = %v want %v", got, Less) } }
explode_data.jsonl/65204
{ "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, 27374, 1155, 353, 8840, 836, 8, 341, 3174, 354, 1669, 23768, 2195, 47, 31270, 87414, 11439, 1072, 21, 19, 7, 16, 15, 68615, 9242, 2067, 12572, 701, 7546, 11439, 1072, 21, 19, 7, 17, 15, 68615, 9242, 2067, 12572, 1171, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func Test_deployHelper(t *testing.T) { tempdir, helperpath, err := deployHelper() if err != nil { t.Fatal(err) } t.Cleanup(func() { os.RemoveAll(tempdir) }) info, err := os.Stat(tempdir) if err != nil { t.Fatal(err) } if !info.IsDir() { t.Fatalf("expected %s to be a directory", tempdir) } // Veri...
explode_data.jsonl/67861
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 368 }
[ 2830, 3393, 91890, 5511, 1155, 353, 8840, 836, 8, 341, 16280, 3741, 11, 13137, 2343, 11, 1848, 1669, 10517, 5511, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 3244, 727, 60639, 18552, 368, 341, 197, 25078, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDimensionToMetadataUpdate(t *testing.T) { dimension := types.Dimension{ Name: "my_dimension", Value: "my_dimension_value", Properties: map[string]string{ "this_property_should_be_updated": "with_this_property_value", "this_property_should_be_removed": "", }, Tags: map[string]bool{ "this_ta...
explode_data.jsonl/6185
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 428 }
[ 2830, 3393, 26121, 1249, 14610, 4289, 1155, 353, 8840, 836, 8, 341, 2698, 18161, 1669, 4494, 53234, 515, 197, 21297, 25, 220, 330, 2408, 49619, 756, 197, 47399, 25, 330, 2408, 49619, 3142, 756, 197, 197, 7903, 25, 2415, 14032, 30953, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetNodeSize(t *testing.T) { helper := func(data resourceDataInterface, bundles []Bundle, expectedErrMsg, expectedSize string) { size, err := getNodeSize(data, bundles) if len(expectedErrMsg) > 0 { if err == nil || err.Error() != expectedErrMsg { t.Fatalf("Expect error %s but got %s", expectedErrMsg...
explode_data.jsonl/3828
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1384 }
[ 2830, 3393, 1949, 1955, 1695, 1155, 353, 8840, 836, 8, 341, 9598, 2947, 1669, 2915, 2592, 5101, 1043, 5051, 11, 48607, 3056, 8409, 11, 3601, 75449, 11, 3601, 1695, 914, 8, 341, 197, 13832, 11, 1848, 1669, 81798, 1695, 2592, 11, 48607,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func Test_SalesReports_Filter_ToQueryParamsMap(t *testing.T) { filter := &SalesReportsFilter{} date, _ := time.Parse("2006-01-02", "2020-05-05") filter.Daily().TypeSales().SubTypeSummary().Version10().SetReportDate(date) qs := make(map[string]interface{}) qs["filter[reportDate]"] = "2020-05-05" qs["filter[report...
explode_data.jsonl/60784
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 216 }
[ 2830, 3393, 1098, 3831, 23748, 68935, 38346, 2859, 4870, 2227, 1155, 353, 8840, 836, 8, 341, 50108, 1669, 609, 35418, 23748, 5632, 16094, 44086, 11, 716, 1669, 882, 8937, 445, 17, 15, 15, 21, 12, 15, 16, 12, 15, 17, 497, 330, 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 TestDeleteControllerAndExpectations(t *testing.T) { c := clientset.NewForConfigOrDie(&restclient.Config{Host: "", ContentConfig: restclient.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, 10, 0) manager.podStoreSynced = alwaysReady...
explode_data.jsonl/37495
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 499 }
[ 2830, 3393, 6435, 2051, 3036, 17536, 804, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2943, 746, 7121, 2461, 2648, 2195, 18175, 2099, 3927, 2972, 10753, 90, 9296, 25, 7342, 8883, 2648, 25, 2732, 2972, 12614, 2648, 90, 2808, 5637, 25, 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...
5
func TestTopicPartitions(t *testing.T) { client, err := NewClient(ClientOptions{ URL: "pulsar://localhost:6650", }) assert.Nil(t, err) defer client.Close() // Create topic with 5 partitions err = httpPut("admin/v2/persistent/public/default/TestGetTopicPartitions/partitions", 5) assert.Nil(t, err) partition...
explode_data.jsonl/69313
{ "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, 26406, 5800, 5930, 1155, 353, 8840, 836, 8, 341, 25291, 11, 1848, 1669, 1532, 2959, 46851, 3798, 515, 197, 79055, 25, 330, 79, 14295, 277, 1110, 8301, 25, 21, 21, 20, 15, 756, 197, 8824, 6948, 59678, 1155, 11, 1848, 340,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestBitMaskString(t *testing.T) { tests := []struct { in CryptographicUsageMask out string }{ { in: CryptographicUsageMaskSign, out: "Sign", }, { in: CryptographicUsageMask(0x00100000), out: "0x00100000", }, { in: CryptographicUsageMaskSign | CryptographicUsageMaskExport, out:...
explode_data.jsonl/42190
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 331 }
[ 2830, 3393, 8344, 12686, 703, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 17430, 220, 37447, 12679, 14783, 12686, 198, 197, 13967, 914, 198, 197, 59403, 197, 197, 515, 298, 17430, 25, 220, 37447, 12679, 14783, 12686...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInit(t *testing.T) { New([]config.Client{ { Serial: "12FF9503829A3A0DDE9CB87191A472D4", Scopes: []string{"READ", "WRITE"}, }, { Serial: "22FF9503829A3A0DDE9CB87191A472D4", Scopes: []string{"READ"}, }, }) for k, v := range clients { switch k { case 0: if v.Serial != "12FF9503829A3...
explode_data.jsonl/65811
{ "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, 3803, 1155, 353, 8840, 836, 8, 341, 197, 3564, 10556, 1676, 11716, 515, 197, 197, 515, 298, 93658, 25, 330, 16, 17, 1748, 24, 20, 15, 18, 23, 17, 24, 32, 18, 32, 15, 35, 1150, 24, 12979, 23, 22, 16, 24, 16, 32, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestToDNSLinkDNSLabel(t *testing.T) { for _, test := range []struct { in string out string err error }{ {"dnslink.long-name.example.com", "dnslink-long--name-example-com", nil}, {"dnslink.too-long.f1siqrebi3vir8sab33hu5vcy008djegvay6atmz91ojesyjs8lx350b7y7i1nvyw2haytfukfyu2f2x4tocdrfa0zgij6p4zpl4u5o.e...
explode_data.jsonl/26659
{ "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, 1249, 61088, 3939, 61088, 2476, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 17430, 220, 914, 198, 197, 13967, 914, 198, 197, 9859, 1465, 198, 197, 59403, 197, 197, 4913, 45226, 2080, 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 TestDefaultSize(t *testing.T) { jaeger := v1.NewJaeger(types.NamespacedName{Name: "my-instance"}) collector := NewCollector(jaeger) dep := collector.Get() assert.Nil(t, dep.Spec.Replicas) // we let Kubernetes define the default }
explode_data.jsonl/59516
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 89 }
[ 2830, 3393, 3675, 1695, 1155, 353, 8840, 836, 8, 341, 197, 5580, 1878, 1669, 348, 16, 7121, 52445, 1878, 52613, 98932, 68552, 675, 63121, 25, 330, 2408, 73655, 1, 8824, 1444, 24605, 269, 1669, 1532, 53694, 3325, 64, 1878, 340, 197, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSocketPVVoteResetDeadline(t *testing.T) { for _, tc := range socketTestCases(t) { func() { var ( chainID = cmn.RandStr(12) validatorEndpoint, serviceEndpoint = testSetupSocketPair( t, chainID, types.NewMockPV(), tc.addr, tc.dialer) ts = ...
explode_data.jsonl/77982
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 467 }
[ 2830, 3393, 10286, 48469, 41412, 14828, 83593, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 7575, 2271, 37302, 1155, 8, 341, 197, 29244, 368, 341, 298, 2405, 2399, 571, 197, 8819, 915, 999, 284, 9961, 77, 2013, 437, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCheckIfDockerIsRunning2(t *testing.T) { // Mock functions isDockerRunning = func() bool { return false } logErrorCallCount := 0 logError = func(message string, exit bool) { logErrorCallCount++ assert.Equal(t, "Docker engine is not running. Please start it and execute Compose Generator again.", messa...
explode_data.jsonl/67934
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 3973, 2679, 35, 13659, 3872, 18990, 17, 1155, 353, 8840, 836, 8, 341, 197, 322, 14563, 5746, 198, 19907, 35, 13659, 18990, 284, 2915, 368, 1807, 341, 197, 853, 895, 198, 197, 532, 6725, 1454, 7220, 2507, 1669, 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...
1
func TestReceiversBuilder_StopAll(t *testing.T) { receivers := make(Receivers) rcvCfg := &configmodels.ReceiverSettings{} receiver := &componenttest.ExampleReceiverProducer{} receivers[rcvCfg] = &builtReceiver{ logger: zap.NewNop(), receiver: receiver, } assert.Equal(t, false, receiver.Stopped) assert....
explode_data.jsonl/50906
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 158 }
[ 2830, 3393, 693, 346, 1945, 3297, 80308, 2403, 1155, 353, 8840, 836, 8, 341, 17200, 346, 1945, 1669, 1281, 7, 693, 346, 1945, 340, 30295, 85, 42467, 1669, 609, 1676, 6507, 2817, 12862, 6086, 31483, 17200, 12862, 1669, 609, 8571, 1944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDecodeExtensions(t *testing.T) { ex := `version https://git-lfs.github.com/spec/v1 ext-0-foo sha256:ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff ext-1-bar sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ext-2-baz sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
explode_data.jsonl/50437
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 703 }
[ 2830, 3393, 32564, 31282, 1155, 353, 8840, 836, 8, 341, 8122, 1669, 1565, 4366, 3703, 1110, 12882, 70162, 11021, 905, 45389, 5457, 16, 198, 427, 12, 15, 12, 7975, 15870, 17, 20, 21, 25, 53697, 53697, 53697, 53697, 53697, 53697, 53697, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDockerConfigRawConfig(t *testing.T) { rawConfigInput := dockercontainer.Config{ Hostname: "hostname", Domainname: "domainname", NetworkDisabled: true, WorkingDir: "workdir", User: "user", } rawConfig, err := json.Marshal(&rawConfigInput) if err != nil { t.Fatal(err)...
explode_data.jsonl/37188
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 394 }
[ 2830, 3393, 35, 13659, 2648, 20015, 2648, 1155, 353, 8840, 836, 8, 341, 76559, 2648, 2505, 1669, 26588, 3586, 10753, 515, 197, 197, 88839, 25, 286, 330, 27806, 756, 197, 10957, 3121, 606, 25, 414, 330, 12204, 606, 756, 197, 197, 12320...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSelect_NamesInSelect(t *testing.T) { s := MustParseSelectStatement("select count(asdf), count(bar) from cpu") a := s.NamesInSelect() if !reflect.DeepEqual(a, []string{"asdf", "bar"}) { t.Fatal("expected names asdf and bar") } }
explode_data.jsonl/24806
{ "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, 3379, 1604, 971, 641, 3379, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 15465, 14463, 3379, 8636, 445, 1742, 1760, 36951, 2940, 701, 1760, 54630, 8, 504, 17319, 1138, 11323, 1669, 274, 98932, 641, 3379, 741, 743, 753, 34913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadDefaultKubeConfig(t *testing.T) { if _, defined := os.LookupEnv("TEST_K8S"); !defined { t.SkipNow() return } config, err := Load("") assert.NoError(t, err) assert.NotNil(t, config) }
explode_data.jsonl/66165
{ "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, 5879, 3675, 42, 3760, 2648, 1155, 353, 8840, 836, 8, 341, 743, 8358, 4512, 1669, 2643, 79261, 14359, 445, 10033, 10102, 23, 50, 5038, 753, 9711, 341, 197, 3244, 57776, 7039, 741, 197, 853, 198, 197, 630, 25873, 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 ]
2
func TestGetReservedPorts(t *testing.T) { configMap := &v1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: "hbase-goosefs-values", Namespace: "fluid", }, Data: map[string]string{ "data": valuesConfigMapData, }, } dataSets := []*v1alpha1.Dataset{ { ObjectMeta: metav1.ObjectMeta{ Name: ...
explode_data.jsonl/66524
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 812 }
[ 2830, 3393, 1949, 53003, 68273, 1155, 353, 8840, 836, 8, 341, 25873, 2227, 1669, 609, 85, 16, 10753, 2227, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 21297, 25, 414, 330, 71, 3152, 2371, 13752, 3848, 69050, 756, 298, 9082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrepare(t *testing.T) { nodeUUID := "33ce8659-7400-4c68-9535-d10766f07a58" cases := []struct { name string ironic *testserver.IronicMock unprepared bool expectedStarted bool expectedDirty bool expectedError bool expectedRequestAfter int...
explode_data.jsonl/48857
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1678 }
[ 2830, 3393, 50590, 1155, 353, 8840, 836, 8, 341, 20831, 24754, 1669, 330, 18, 18, 346, 23, 21, 20, 24, 12, 22, 19, 15, 15, 12, 19, 66, 21, 23, 12, 24, 20, 18, 20, 1737, 16, 15, 22, 21, 21, 69, 15, 22, 64, 20, 23, 698, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPathCreatePath(t *testing.T) { peerP := PathCreatePeer() msg := updateMsgP1() updateMsgP := msg.Body.(*bgp.BGPUpdate) nlriList := updateMsgP.NLRI pathAttributes := updateMsgP.PathAttributes nlri_info := nlriList[0] path := NewPath(peerP[0], nlri_info, false, pathAttributes, time.Now(), false) assert.No...
explode_data.jsonl/57483
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 131 }
[ 2830, 3393, 1820, 4021, 1820, 1155, 353, 8840, 836, 8, 341, 197, 16537, 47, 1669, 7933, 4021, 30888, 741, 21169, 1669, 2647, 6611, 47, 16, 741, 27175, 6611, 47, 1669, 3750, 20934, 41399, 12220, 79, 1785, 24430, 4289, 340, 9038, 75, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWhiterectangledetector_containsBlackPoint(t *testing.T) { img, _ := gozxing.NewBitMatrix(20, 20) img.Set(10, 10) detector, _ := NewWhiteRectangleDetectorFromImage(img) if !detector.containsBlackPoint(5, 15, 10, true) { t.Fatalf("containsBlackPoint(5, 15, 10, true) must be true") } if !detector.contai...
explode_data.jsonl/49100
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 1639, 2015, 439, 38940, 295, 1256, 63598, 14417, 2609, 1155, 353, 8840, 836, 8, 341, 39162, 11, 716, 1669, 728, 66700, 287, 7121, 8344, 6689, 7, 17, 15, 11, 220, 17, 15, 340, 39162, 4202, 7, 16, 15, 11, 220, 16, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestIterateQueueJobs(t *testing.T) { withRepository(func(r *RedisJobRepository) { addedJobs := []*api.Job{} for i := 0; i < 10; i++ { addedJobs = append(addedJobs, addTestJob(t, r, "q1")) } iteratedJobs := []*api.Job{} err := r.IterateQueueJobs("q1", func(j *api.Job) { iteratedJobs = append(itera...
explode_data.jsonl/32068
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 211 }
[ 2830, 3393, 8537, 349, 7554, 40667, 1155, 353, 8840, 836, 8, 341, 46948, 4624, 18552, 2601, 353, 48137, 12245, 4624, 8, 341, 197, 12718, 291, 40667, 1669, 29838, 2068, 45293, 16094, 197, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReverseByte(t *testing.T) { type args struct { s []byte } tests := []struct { name string args args want []byte }{ {name: "testcase1", args: args{s: []byte{1, 2, 3, 4, 5}}, want: []byte{5, 4, 3, 2, 1}}, {name: "testcase2", args: args{s: []byte{}}, want: []byte{}}, {name: "testcase3", args: ar...
explode_data.jsonl/73908
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 306 }
[ 2830, 3393, 45695, 7153, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 1903, 3056, 3782, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 3056, 3782, 198, 197, 59403, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDatabaseWriteTaggedBatchNoNamespace(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() d, mapCh, _ := newTestDatabase(t, ctrl, BootstrapNotStarted) defer func() { close(mapCh) }() require.NoError(t, d.Open()) var ( notExistNamespace = ident.StringID("not-exist-namespace") batchS...
explode_data.jsonl/46541
{ "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, 5988, 7985, 5668, 3556, 21074, 2753, 22699, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 2698, 11, 2415, 1143, 11, 716, 1669, 501, 2271, 5988, 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...
1
func TestElasticBoolQuery(t *testing.T) { for _, test := range elasticCases { t.Run(test.name, func(t *testing.T) { runToElasticBoolQueryTestCase(t, test) }) } }
explode_data.jsonl/58005
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 74 }
[ 2830, 3393, 36, 51179, 11233, 2859, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 35473, 37302, 341, 197, 3244, 16708, 8623, 2644, 11, 2915, 1155, 353, 8840, 836, 8, 341, 298, 56742, 1249, 36, 51179, 11233, 2859, 16458, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNibbleN(t *testing.T) { for n, test := range nnTestEntries { vm := &MinFuckVM{Code: test.code} for i, r := range test.read { g, err := vm.nibbleN(uint32(r)) if err != nil { if !test.err { t.Errorf("Test #%d failed: VM should not return error while nibbleN(): %v", n+1, err) } return ...
explode_data.jsonl/5841
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 248 }
[ 2830, 3393, 29125, 891, 45, 1155, 353, 8840, 836, 8, 341, 2023, 308, 11, 1273, 1669, 2088, 10883, 2271, 24533, 341, 197, 54879, 1669, 609, 6217, 76374, 11187, 90, 2078, 25, 1273, 10210, 532, 197, 2023, 600, 11, 435, 1669, 2088, 1273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestDecodingLayerParserFullTCPPacket(t *testing.T) { dlp := gopacket.NewDecodingLayerParser(LayerTypeEthernet, &Ethernet{}, &IPv4{}, &TCP{}, &gopacket.Payload{}) decoded := make([]gopacket.LayerType, 1) err := dlp.DecodeLayers(testSimpleTCPPacket, &decoded) if err != nil { t.Error("Error from dlp parser: ", ...
explode_data.jsonl/42259
{ "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, 4900, 3700, 9188, 6570, 9432, 7749, 4406, 5709, 1155, 353, 8840, 836, 8, 341, 2698, 13545, 1669, 342, 453, 5709, 7121, 4900, 3700, 9188, 6570, 4957, 1135, 929, 98006, 11, 609, 98006, 22655, 609, 58056, 19, 22655, 609, 49896,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateRouter(t *testing.T) { router := NewRouter() router.AddChild([]string{"p1", "p2", "p3"}, &ApiGroup{ Post: &Api{ Description: "Hello World", }, }) assert.Equal(t, router.Children["p1"].Path, "p1") assert.Equal(t, router.Children["p1"].Children["p2"].Path, "p2") assert.Equal(t, router.Childr...
explode_data.jsonl/71587
{ "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, 31115, 9523, 1155, 353, 8840, 836, 8, 341, 67009, 1669, 1532, 9523, 741, 67009, 1904, 3652, 10556, 917, 4913, 79, 16, 497, 330, 79, 17, 497, 330, 79, 18, 14345, 609, 6563, 2808, 515, 197, 197, 4133, 25, 609, 6563, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIssue1223(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 testjson") tk.MustExec("CREATE TABLE testjson (j json DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8;") tk.MustExec(`INSERT I...
explode_data.jsonl/65520
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1564 }
[ 2830, 3393, 42006, 16, 17, 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, 50463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCachedConn_QueryRowIndex_HasCache(t *testing.T) { resetStats() r, clean, err := redistest.CreateRedis() assert.Nil(t, err) defer clean() c := NewNodeConn(dummySqlConn{}, r, cache.WithExpiry(time.Second*10), cache.WithNotFoundExpiry(time.Second)) var str string r.Set("index", `"primary"`) err = c.Qu...
explode_data.jsonl/64123
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 377 }
[ 2830, 3393, 70293, 9701, 48042, 68919, 2039, 300, 8233, 1155, 353, 8840, 836, 8, 341, 70343, 16635, 741, 7000, 11, 4240, 11, 1848, 1669, 2518, 380, 477, 7251, 48137, 741, 6948, 59678, 1155, 11, 1848, 340, 16867, 4240, 2822, 1444, 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 TestDay4(t *testing.T) { fDemo, err := os.Open("testdata/day4_demo.txt") if err != nil { t.Fatalf("got error: %v\n", err) } fReal, err := os.Open("testdata/day4_task1.txt") if err != nil { t.Fatalf("got error: %v\n", err) } tests := []struct { reader io.Reader fieldsExists int valid ...
explode_data.jsonl/75618
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 509 }
[ 2830, 3393, 10159, 19, 1155, 353, 8840, 836, 8, 341, 1166, 37413, 11, 1848, 1669, 2643, 12953, 445, 92425, 44739, 19, 47830, 3909, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 22390, 1465, 25, 1018, 85, 1699, 497, 1848, 340...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestOperatorSemver(t *testing.T) { testCases := []checkTestCase{ { ctx: &context.Context{Properties: map[string]string{"v": "1.2.3"}}, constraints: []api.Constraint{{ContextName: "v", Operator: "SEMVER_EQ", Value: "3.2.1"}}, expected: false, }, { ctx: &context.Context{Properti...
explode_data.jsonl/67492
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1197 }
[ 2830, 3393, 18461, 29499, 423, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 2028, 16458, 515, 197, 197, 515, 298, 20985, 25, 260, 609, 2147, 9328, 90, 7903, 25, 2415, 14032, 30953, 4913, 85, 788, 330, 16, 13, 17, 13, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestPrimitivePutInt(t *testing.T) { client := newPrimitiveClient() a, b := int32(-1), int32(2) result, err := client.PutInt(context.Background(), IntWrapper{Field1: &a, Field2: &b}, nil) if err != nil { t.Fatalf("PutInt: %v", err) } if s := result.RawResponse.StatusCode; s != http.StatusOK { t.Fatalf("un...
explode_data.jsonl/61668
{ "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, 33313, 19103, 1072, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 501, 33313, 2959, 741, 11323, 11, 293, 1669, 526, 18, 17, 4080, 16, 701, 526, 18, 17, 7, 17, 340, 9559, 11, 1848, 1669, 2943, 39825, 1072, 5378, 19047, 1507,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIDDriverScanError(t *testing.T) { id := ID{} err := id.Scan(0) assert.EqualError(t, err, "xid: scanning unsupported type: int") err = id.Scan("0") assert.EqualError(t, err, strInvalidID) }
explode_data.jsonl/58928
{ "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, 915, 11349, 26570, 1454, 1155, 353, 8840, 836, 8, 341, 15710, 1669, 3034, 16094, 9859, 1669, 877, 54874, 7, 15, 340, 6948, 12808, 1454, 1155, 11, 1848, 11, 330, 87, 307, 25, 35101, 40409, 943, 25, 526, 1138, 9859, 284, 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
func Test_UpdateBatch(t *testing.T) { helper := sysutil.NewFileTestUtil(t) helper.CreateCgroupFile("/", sysutil.CPUShares) helper.CreateFile(commonTestFile) absFile := path.Join(helper.TempDir, commonTestFile) tests := []struct { name string resources []ResourceUpdater }{ { name: "test_update_val...
explode_data.jsonl/56861
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 372 }
[ 2830, 3393, 47393, 21074, 1155, 353, 8840, 836, 8, 1476, 9598, 2947, 1669, 5708, 1314, 7121, 1703, 2271, 2742, 1155, 692, 9598, 2947, 7251, 34, 4074, 1703, 35460, 5708, 1314, 727, 6325, 73015, 340, 9598, 2947, 7251, 1703, 57802, 2271, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHasChild(t *testing.T) { node := NodeStatus{ Children: []string{"a", "b"}, } assert.True(t, node.HasChild("a")) assert.False(t, node.HasChild("c")) assert.False(t, node.HasChild("")) }
explode_data.jsonl/26061
{ "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, 10281, 3652, 1155, 353, 8840, 836, 8, 341, 20831, 1669, 6018, 2522, 515, 197, 197, 11539, 25, 3056, 917, 4913, 64, 497, 330, 65, 7115, 197, 532, 6948, 32443, 1155, 11, 2436, 16152, 3652, 445, 64, 5455, 6948, 50757, 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
func TestFloat32_Each(t *testing.T) { testcases := []struct { name string origin Float32 }{ { name: "test Float32 Each", origin: map[float32]struct{}{1: {}, 2: {}, 3: {}}, }, } for _, tc := range testcases { t.Logf("running scenario: %s", tc.name) var expect []float32 tc.origin.Each(func(i f...
explode_data.jsonl/60112
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 181 }
[ 2830, 3393, 5442, 18, 17, 2089, 610, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 197, 8611, 13001, 18, 17, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 256, 330, 1944, 13001,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApplyTemplate(t *testing.T) { o := graphite.Options{ Separator: "_", Templates: []string{"current.* measurement.measurement"}, } p, err := graphite.NewParserWithOptions(o) if err != nil { t.Fatalf("unexpected error creating parser, got %v", err) } measurement, _, _, _ := p.ApplyTemplate("current.u...
explode_data.jsonl/32190
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 169 }
[ 2830, 3393, 28497, 7275, 1155, 353, 8840, 836, 8, 341, 22229, 1669, 94173, 22179, 515, 197, 7568, 91640, 25, 9000, 756, 197, 10261, 76793, 25, 3056, 917, 4913, 3231, 4908, 18662, 17326, 24359, 7115, 197, 532, 3223, 11, 1848, 1669, 94173...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseExecutableError(t *testing.T) { root := ggql.NewRoot(nil) for _, d := range []parseTestData{ {src: "query dup { title } query dup { origin }", line: 1, col: 28}, {src: ` { title } fragment dup on Artist { title } fragment dup on Artist { origin }`, line: 4, col: 11}, {src: "{ title } { artists }",...
explode_data.jsonl/48189
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 844 }
[ 2830, 3393, 14463, 94772, 1454, 1155, 353, 8840, 836, 8, 341, 33698, 1669, 52034, 1470, 7121, 8439, 27907, 340, 2023, 8358, 294, 1669, 2088, 3056, 6400, 83920, 515, 197, 197, 90, 3548, 25, 330, 1631, 22737, 314, 2265, 335, 3239, 22737, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBootstrapper(t *testing.T) { config := genesisconfig.Load(genesisconfig.SampleDevModeSoloProfile) t.Run("New bootstrapper", func(t *testing.T) { bootstrapper := New(config) assert.NotNil(t, bootstrapper.GenesisBlock(), "genesis block should not be nil") assert.NotNil(t, bootstrapper.GenesisBlockForChan...
explode_data.jsonl/78133
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 213 }
[ 2830, 3393, 17919, 495, 3106, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 59366, 1676, 13969, 36884, 13774, 1676, 76266, 14592, 3636, 89299, 8526, 340, 3244, 16708, 445, 3564, 10459, 495, 3106, 497, 2915, 1155, 353, 8840, 836, 8, 341, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_GetMd5String_1(t *testing.T) { str := "123456789" md5str := GetMd5String(str) t.Log("GetMd5String:", md5str) test.Equal(t, "25f9e794323b453885f5181f1b624d0b", md5str) }
explode_data.jsonl/60541
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 98 }
[ 2830, 3393, 13614, 72529, 20, 703, 62, 16, 1155, 353, 8840, 836, 8, 341, 11355, 1669, 330, 16, 17, 18, 19, 20, 21, 22, 23, 24, 698, 84374, 20, 495, 1669, 2126, 72529, 20, 703, 4199, 340, 3244, 5247, 445, 1949, 72529, 20, 703, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCommandFlags(t *testing.T) { cmd := cli.NewCommand("unit test") cases := []struct { giveName string wantShorthand string wantDefault string }{ {giveName: "config", wantShorthand: "c", wantDefault: ".rr.yaml"}, {giveName: "WorkDir", wantShorthand: "w", wantDefault: ""}, {giveName: "dotenv...
explode_data.jsonl/17536
{ "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, 4062, 9195, 1155, 353, 8840, 836, 8, 341, 25920, 1669, 21348, 7121, 4062, 445, 3843, 1273, 5130, 1444, 2264, 1669, 3056, 1235, 341, 197, 3174, 533, 675, 414, 914, 198, 197, 50780, 2016, 61679, 914, 198, 197, 50780, 3675, 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 TestHTTPMethodToAction(t *testing.T) { tests := []struct { method string exceptedAction string }{ { method: "GET", exceptedAction: ReadAction, }, { method: "POST", exceptedAction: AllAction, }, { method: "UNKNOWN", exceptedAction: ReadAction, }, ...
explode_data.jsonl/52242
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 248 }
[ 2830, 3393, 9230, 3523, 1249, 2512, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42257, 260, 914, 198, 197, 34599, 291, 2512, 914, 198, 197, 59403, 197, 197, 515, 298, 42257, 25, 260, 330, 3806, 756, 298, 34599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWriteHumanReadableStructOptionalFields(t *testing.T) { typ := MakeStructType("S1", StructField{"a", BoolType, false}, StructField{"b", BoolType, true}) assertWriteHRSEqual(t, "Struct S1 {\n a: Bool,\n b?: Bool,\n}", typ) }
explode_data.jsonl/60910
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 7985, 33975, 57938, 9422, 15309, 8941, 1155, 353, 8840, 836, 8, 341, 25314, 1669, 7405, 9422, 929, 445, 50, 16, 756, 197, 197, 9422, 1877, 4913, 64, 497, 12608, 929, 11, 895, 1583, 197, 197, 9422, 1877, 4913, 65, 497, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_StoreRepo_Update(t *testing.T) { s := sample.NewStore() testCases := []struct { name string arg *domain.Store expectedErr bool prepare func(mock sqlmock.Sqlmock) }{ { name: "failure_exec_query_returns_error", arg: s, expectedErr: true, prepare: func(m...
explode_data.jsonl/20620
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1307 }
[ 2830, 3393, 92684, 25243, 47393, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 6077, 7121, 6093, 741, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 47903, 260, 353, 12204, 38047, 198, 197, 42400, 7747, 1807, 198, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInt2Hex(t *testing.T) { assert.EqualValues(t, "64", Int2Hex(100)) assert.EqualValues(t, "6400", Int2Hex(25600)) assert.EqualValues(t, "ffffffffffffffff", Int2Hex(math.MaxUint64)) assert.EqualValues(t, "ffffffff", Int2Hex(math.MaxUint32)) }
explode_data.jsonl/31333
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 113 }
[ 2830, 3393, 1072, 17, 20335, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 6227, 1155, 11, 330, 21, 19, 497, 1333, 17, 20335, 7, 16, 15, 15, 1171, 6948, 12808, 6227, 1155, 11, 330, 21, 19, 15, 15, 497, 1333, 17, 20335, 7, 17, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPrewriteNotMatchError(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) wg := &sync.WaitGroup{} var requestIds sync.Map var server1Stopped int32 = 0 server1StoppedCh := make(chan struct{}) ch1 := make(chan *cdcpb.ChangeDataEvent, 10) srv1 := newMockChangeDataService(t, ch1) serve...
explode_data.jsonl/32888
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1725 }
[ 2830, 3393, 47, 52473, 2623, 8331, 1454, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 72079, 1669, 609, 12996, 28384, 2808, 31483, 2405, 1681, 12701, 12811, 10104, 198, 2405, 3538, 16, 59803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListPackages(t *testing.T) { ui := termui.New(&bytes.Buffer{}, ioutil.Discard, nil) assert := assert.New(t) workDir, err := os.Getwd() assert.NoError(err) roleManifestPath := filepath.Join(workDir, "../test-assets/role-manifests/app/no-instance-groups/no-instance-groups.yml") badReleasePath := filepath...
explode_data.jsonl/47758
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 370 }
[ 2830, 3393, 852, 69513, 1155, 353, 8840, 836, 8, 341, 37278, 1669, 4647, 1963, 7121, 2099, 9651, 22622, 22655, 43144, 909, 47560, 11, 2092, 340, 6948, 1669, 2060, 7121, 1155, 692, 97038, 6184, 11, 1848, 1669, 2643, 2234, 6377, 741, 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...
2
func TestInitDBNotInitialized(t *testing.T) { cfg := &Config{ NonceExpiration: "15s", NonceSweepInterval: "15m", } var db *dmocks.FabricCADB issuer := NewIssuer("ca1", ".", cfg, util.GetDefaultBCCSP(), NewLib()) err := issuer.Init(false, db, &dbutil.Levels{Credential: 1, RAInfo: 1, Nonce: 1}) assert.NoErro...
explode_data.jsonl/23677
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 246 }
[ 2830, 3393, 3803, 3506, 2623, 22495, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 609, 2648, 515, 197, 197, 90528, 66301, 25, 262, 330, 16, 20, 82, 756, 197, 197, 90528, 50, 48542, 10256, 25, 330, 16, 20, 76, 756, 197, 532, 2405, 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...
1
func TestParserLiteral(t *testing.T) { assertTextAndMarker(t, "far`123`boo", "far`123`boo", &text{}) assertTextAndMarker(t, "far\\`123\\`boo", "far\\`123\\`boo", &text{}) }
explode_data.jsonl/60276
{ "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, 6570, 17350, 1155, 353, 8840, 836, 8, 341, 6948, 1178, 3036, 20613, 1155, 11, 330, 23559, 63, 16, 17, 18, 63, 32993, 497, 330, 23559, 63, 16, 17, 18, 63, 32993, 497, 609, 1318, 37790, 6948, 1178, 3036, 20613, 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...
1
func TestUpdatePackageFlatcar(t *testing.T) { a := newForTest(t) defer a.Close() pkg := &Package{ Type: PkgTypeFlatcar, URL: "https://update.release.flatcar-linux.net/amd64-usr/XYZ/", Filename: null.StringFrom("update.gz"), Version: "2016.6.6", Size: null.StringFrom(...
explode_data.jsonl/74613
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 862 }
[ 2830, 3393, 4289, 13100, 31019, 6918, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 501, 2461, 2271, 1155, 340, 16867, 264, 10421, 2822, 3223, 7351, 1669, 609, 13100, 515, 197, 27725, 25, 688, 393, 7351, 929, 31019, 6918, 345, 197, 79055, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSquashConfigForSysMgmtdHost(t *testing.T) { defaultConfig := *beegfsv1.NewBeegfsConfig() defaultConfig.ConnInterfaces = []string{"ib0"} fileSystemSpecificBeegfsConfig := *beegfsv1.NewBeegfsConfig() fileSystemSpecificBeegfsConfig.ConnInterfaces = []string{"ib1"} testConfig := beegfsv1.PluginConfig{ Defau...
explode_data.jsonl/77108
{ "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, 50, 446, 988, 2648, 2461, 32792, 44, 26186, 1296, 9296, 1155, 353, 8840, 836, 8, 341, 11940, 2648, 1669, 353, 1371, 791, 69, 3492, 16, 7121, 3430, 791, 3848, 2648, 741, 11940, 2648, 50422, 41066, 284, 3056, 917, 4913, 579,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPeerUnknown(t *testing.T) { store := NewMemStore() node := NewForTests("node02", store, nil) node.initPeers() defer node.Stop() t.Run("last success", func(t *testing.T) { assertar := assert.New(t) peer := &peerAttr{ ID: hash.FakePeer(), Host: &hostAttr{ LastSuccess: time.Now().Truncate(nod...
explode_data.jsonl/54068
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 418 }
[ 2830, 3393, 30888, 13790, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 1532, 18816, 6093, 741, 20831, 1669, 1532, 2461, 18200, 445, 3509, 15, 17, 497, 3553, 11, 2092, 340, 20831, 8271, 10197, 388, 741, 16867, 2436, 30213, 2822, 3244, 1670...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestZeroReader(t *testing.T) { var z zeroReader r := NewReader(z) c := make(chan error) go func() { _, err := r.ReadByte() c <- err }() select { case err := <-c: if err == nil { t.Error("error expected") } else if err != io.ErrNoProgress { t.Error("unexpected error:", err) } case <-time.A...
explode_data.jsonl/2876
{ "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, 17999, 5062, 1155, 353, 8840, 836, 8, 341, 2405, 1147, 7168, 5062, 198, 7000, 1669, 1532, 5062, 13174, 692, 1444, 1669, 1281, 35190, 1465, 340, 30680, 2915, 368, 341, 197, 197, 6878, 1848, 1669, 435, 89626, 741, 197, 1444, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCodeJSON(t *testing.T) { if testing.Short() { t.Skip("skipping code.json.gz") } var ref interface{} data := testdataFile("testdata/code.json.gz") json.Unmarshal(data, &ref) config := NewDefaultConfig() jsn := config.NewJson(data) if jsnrem, val := jsn.Tovalue(); jsnrem != nil { t.Errorf("remainin...
explode_data.jsonl/70408
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 186 }
[ 2830, 3393, 2078, 5370, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 2038, 4323, 20963, 1138, 197, 630, 2405, 2053, 3749, 16094, 8924, 1669, 1273, 691, 1703, 445, 92425, 46928, 4323, 20963...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVersionedRandomTreeSpecial2(t *testing.T) { require := require.New(t) tree := NewMutableTree(db.NewMemDB(), 100) tree.Set([]byte("OFMe2Yvm"), []byte("ez2OtQtE")) tree.Set([]byte("WEN4iN7Y"), []byte("kQNyUalI")) tree.SaveVersion() tree.Set([]byte("1yY3pXHr"), []byte("udYznpII")) tree.Set([]byte("7OSHNE...
explode_data.jsonl/25116
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 192 }
[ 2830, 3393, 5637, 291, 13999, 6533, 20366, 17, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 340, 51968, 1669, 1532, 11217, 6533, 9791, 7121, 18816, 3506, 1507, 220, 16, 15, 15, 692, 51968, 4202, 10556, 3782, 445, 12483, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrintPriorityLevelConfiguration(t *testing.T) { tests := []struct { pl flowcontrol.PriorityLevelConfiguration expected []metav1.TableRow }{ { pl: flowcontrol.PriorityLevelConfiguration{ ObjectMeta: metav1.ObjectMeta{ Name: "unlimited", CreationTimestamp: metav1.Time{...
explode_data.jsonl/72310
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1135 }
[ 2830, 3393, 8994, 20555, 4449, 7688, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 72213, 981, 6396, 2865, 83590, 4449, 7688, 198, 197, 42400, 3056, 4059, 402, 16, 18257, 3102, 198, 197, 59403, 197, 197, 515, 298, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestWritePrettyBackupList_ShortColumnsValues(t *testing.T) { expectedRes := "+---+------+----------+--------------------------+------------+-------------+----------+---------+------------+-----------+------------+-----------+\n" + "| # | NAME | MODIFIED | WAL SEGMENT BACKUP START | START TIME | FINISH TIME | HO...
explode_data.jsonl/23910
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 463 }
[ 2830, 3393, 7985, 51940, 56245, 852, 1098, 22007, 13965, 6227, 1155, 353, 8840, 836, 8, 341, 42400, 1061, 1669, 6630, 4421, 10, 61247, 15340, 10, 771, 15340, 10, 5161, 10, 19528, 10, 15340, 10, 22738, 10, 5161, 10, 18088, 10, 5161, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapStringBytesLookup(t *testing.T) { // Use large string keys to avoid small-allocation coalescing, // which can cause AllocsPerRun to report lower counts than it should. m := map[string]int{ "1000000000000000000000000000000000000000000000000": 1, "2000000000000000000000000000000000000000000000000": 2, ...
explode_data.jsonl/19921
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 386 }
[ 2830, 3393, 2227, 703, 7078, 34247, 1155, 353, 8840, 836, 8, 341, 197, 322, 5443, 3460, 914, 6894, 311, 5648, 2613, 18779, 2527, 1062, 3831, 6125, 345, 197, 322, 892, 646, 5240, 46685, 82, 3889, 6727, 311, 1895, 4722, 14579, 1091, 432...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPullerDifferentPeersDifferentCollections(t *testing.T) { // Scenario: p1 pulls from p2 and from p3 // and each has different collections gn := &gossipNetwork{} factoryMock1 := &mocks.CollectionAccessFactory{} accessPolicyMock1 := &mocks.CollectionAccessPolicy{} Setup(accessPolicyMock1, 1, 2, func(data pr...
explode_data.jsonl/53265
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1549 }
[ 2830, 3393, 36068, 261, 69123, 10197, 388, 69123, 52730, 1155, 353, 8840, 836, 8, 341, 197, 322, 58663, 25, 281, 16, 33045, 504, 281, 17, 323, 504, 281, 18, 198, 197, 322, 323, 1817, 702, 2155, 15302, 198, 3174, 77, 1669, 609, 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...
2
func TestListOfStringsInputWithSliceOfStrings(t *testing.T) { input := [][]string{ {"Column A", "Column B", "Column C"}, {"x","y","z"}, } config := DefaultConfig() output := FormatWithSliceOfStrings(input, config) expected := "Column A Column B Column C\n" expected += "x y z" if output !...
explode_data.jsonl/10650
{ "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, 64090, 20859, 2505, 2354, 33236, 2124, 20859, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 52931, 917, 515, 197, 197, 4913, 2933, 362, 497, 330, 2933, 425, 497, 330, 2933, 356, 7115, 197, 197, 4913, 87, 2198, 88, 2198, 89, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidationInvalidEndorsing(t *testing.T) { theLedger := new(mockLedger) pm := &mocks.Mapper{} factory := &mocks.PluginFactory{} plugin := &mocks.Plugin{} factory.On("New").Return(plugin) plugin.On("Init", mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(nil) plugin.On("Validate", mock....
explode_data.jsonl/47821
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 620 }
[ 2830, 3393, 13799, 7928, 3727, 1087, 287, 1155, 353, 8840, 836, 8, 341, 32088, 60850, 1389, 1669, 501, 30389, 60850, 1389, 340, 86511, 1669, 609, 16712, 82, 71892, 16094, 1166, 2919, 1669, 609, 16712, 82, 64378, 4153, 16094, 197, 9138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidatePersistentVolumeClaim(t *testing.T) { invalidClassName := "-invalid-" validClassName := "valid" validMode := core.PersistentVolumeFilesystem scenarios := map[string]struct { isExpectedFailure bool claim *core.PersistentVolumeClaim }{ "good-claim": { isExpectedFailure: false, ...
explode_data.jsonl/27056
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2911 }
[ 2830, 3393, 17926, 53194, 18902, 45544, 1155, 353, 8840, 836, 8, 341, 197, 11808, 14541, 1669, 6523, 11808, 12, 698, 56322, 14541, 1669, 330, 1891, 698, 56322, 3636, 1669, 6200, 61655, 18902, 1703, 8948, 198, 29928, 60494, 1669, 2415, 140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMuxResponse(t *testing.T) { testCases := map[string]struct { muxResponse ios.MuxResponse successful bool }{ "successful response": {ios.MuxResponse{MessageType: "random", Number: 0}, true}, "unsuccessful response": {ios.MuxResponse{MessageType: "random", Number: 1}, false}, } for _, tc := range...
explode_data.jsonl/5363
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 196 }
[ 2830, 3393, 44, 2200, 2582, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 2109, 2200, 2582, 27531, 1321, 2200, 2582, 198, 197, 30553, 1262, 220, 1807, 198, 197, 59403, 197, 197, 1, 30950, 2033, 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...
2
func TestGetShmSizeBindMounted(t *testing.T) { if os.Geteuid() != 0 { t.Skip("Test disabled as requires root privileges") } dir, err := ioutil.TempDir("", "") assert.Nil(t, err) defer os.RemoveAll(dir) shmPath := filepath.Join(dir, "shm") err = os.Mkdir(shmPath, 0700) assert.Nil(t, err) size := 8192 if r...
explode_data.jsonl/44052
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 422 }
[ 2830, 3393, 1949, 2016, 76, 1695, 9950, 90789, 1155, 353, 8840, 836, 8, 341, 743, 2643, 2234, 68, 2423, 368, 961, 220, 15, 341, 197, 3244, 57776, 445, 2271, 8386, 438, 7460, 3704, 35732, 1138, 197, 630, 48532, 11, 1848, 1669, 43144, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTracingSpanName(t *testing.T) { traceContent := fmt.Sprintf("%x", md5.New().Sum([]byte(time.Now().String()))) s := startTestServer(nil, 0, func(r *http.Request) { th, ok := r.Header[traceHeader] if !ok { t.Errorf("missing %s request header", traceHeader) } else { if th[0] != traceContent { t....
explode_data.jsonl/50647
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 447 }
[ 2830, 3393, 1282, 4527, 12485, 675, 1155, 353, 8840, 836, 8, 341, 65058, 2762, 1669, 8879, 17305, 4430, 87, 497, 10688, 20, 7121, 1005, 9190, 10556, 3782, 9730, 13244, 1005, 703, 60131, 1903, 1669, 1191, 2271, 5475, 27907, 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 TestRepositoryComponents(t *testing.T) { t.Parallel() testRegistry := "gcr.io" testRepository := "project-id/image" repositoryNameStr := testRegistry + "/" + testRepository repository, err := NewRepository(repositoryNameStr, StrictValidation) if err != nil { t.Fatalf("`%s` should be a valid Repository nam...
explode_data.jsonl/39008
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 265 }
[ 2830, 3393, 4624, 10443, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 18185, 15603, 1669, 330, 70, 5082, 4245, 698, 18185, 4624, 1669, 330, 4987, 12897, 23349, 1837, 17200, 3099, 675, 2580, 1669, 1273, 15603, 488, 16891, 488, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateNamespace(t *testing.T) { validLabels := map[string]string{"a": "b"} invalidLabels := map[string]string{"NoUppercaseOrSpecialCharsLike=Equals": "b"} successCases := []core.Namespace{ { ObjectMeta: metav1.ObjectMeta{Name: "abc", Labels: validLabels}, }, { ObjectMeta: metav1.ObjectMeta{Nam...
explode_data.jsonl/1047
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 492 }
[ 2830, 3393, 17926, 22699, 1155, 353, 8840, 836, 8, 341, 56322, 23674, 1669, 2415, 14032, 30953, 4913, 64, 788, 330, 65, 16707, 197, 11808, 23674, 1669, 2415, 14032, 30953, 4913, 2753, 52, 602, 2962, 519, 2195, 20366, 32516, 12949, 28, 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...
5
func TestGetOwners(t *testing.T) { owners := []meta.ShardOwner{ {NodeID: 1}, {NodeID: 2}, {NodeID: 3}, {NodeID: 4}, {NodeID: 5}, {NodeID: 6}, } ori_len := len(owners) assert.Equal(t, ori_len, len(getOwners(nil, owners))) assert.Equal(t, ori_len, len(getOwners(map[uint64]bool{}, owners))) assert.Equal...
explode_data.jsonl/43795
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 409 }
[ 2830, 3393, 1949, 57762, 1155, 353, 8840, 836, 8, 341, 197, 22980, 1669, 3056, 5490, 10849, 567, 13801, 515, 197, 197, 90, 1955, 915, 25, 220, 16, 1583, 197, 197, 90, 1955, 915, 25, 220, 17, 1583, 197, 197, 90, 1955, 915, 25, 220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestWorkerReady(t *testing.T) { f := newFixture(t) startTime := metav1.Now() completionTime := metav1.Now() mpiJob := newMPIJob("test", int32Ptr(16), &startTime, &completionTime) f.setUpMPIJob(mpiJob) f.setUpConfigMap(newConfigMap(mpiJob, 2, 8)) f.setUpRbac(mpiJob, 2) worker := newWorker(mpiJob, 2, 8, g...
explode_data.jsonl/75017
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 300 }
[ 2830, 3393, 21936, 19202, 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, 56369, 12245, 445, 1944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShouldRaiseWhenCredentialsAreNotInBase64(t *testing.T) { _, _, err := parseBasicAuth(ProxyAuthorizationHeader, "Basic alzefzlfzemjfej==") assert.Error(t, err) assert.Equal(t, "illegal base64 data at input byte 16", err.Error()) }
explode_data.jsonl/20179
{ "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, 14996, 93101, 4498, 27025, 11526, 2623, 641, 3978, 21, 19, 1155, 353, 8840, 836, 8, 341, 197, 6878, 8358, 1848, 1669, 4715, 15944, 5087, 7, 16219, 18124, 4047, 11, 330, 15944, 452, 89, 823, 89, 11008, 94133, 73, 1859, 73, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRouter_Any_ReturnsErrorIfInvalidRoute(t *testing.T) { path := "/path1{" router := Router{} err := router.Any(path, testHandlerFunc) assertNotNil(t, err) }
explode_data.jsonl/31724
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 64 }
[ 2830, 3393, 9523, 1566, 3834, 53316, 82, 1454, 2679, 7928, 4899, 1155, 353, 8840, 836, 8, 341, 26781, 1669, 3521, 2343, 16, 90, 1837, 67009, 1669, 10554, 16094, 9859, 1669, 9273, 13311, 5581, 11, 1273, 3050, 9626, 340, 6948, 96144, 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
func Test_entryOu_storeLocked(t *testing.T) { t.Parallel() type args struct { i *string } type fields struct { p unsafe.Pointer } type want struct{} type test struct { name string args args fields fields want want checkFunc func(want) error beforeFunc func(args) afterFunc...
explode_data.jsonl/61540
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 817 }
[ 2830, 3393, 9078, 46, 84, 14809, 49010, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 13158, 2827, 2036, 341, 197, 8230, 353, 917, 198, 197, 532, 13158, 5043, 2036, 341, 197, 3223, 19860, 41275, 198, 197, 532, 13158, 1366, 203...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNegate(t *testing.T) { tests := []struct { in string //十六进制编码值 expected string // }{ //secp256k1 prime(又名0) {"0", "0"}, {"fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f", "0"}, {"0", "fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"}, //secp256k1主-1 {"ffffffff...
explode_data.jsonl/362
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 827 }
[ 2830, 3393, 47800, 349, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 258, 981, 914, 442, 102853, 41299, 43316, 112950, 25511, 198, 7325, 914, 6475, 197, 59403, 322, 325, 4672, 17, 20, 21, 74, 16, 10250, 9909, 99518, 130...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExtensionsList(t *testing.T) { client, err := clients.NewComputeV2Client() th.AssertNoErr(t, err) allPages, err := extensions.List(client).AllPages() th.AssertNoErr(t, err) allExtensions, err := extensions.ExtractExtensions(allPages) th.AssertNoErr(t, err) var found bool for _, extension := range al...
explode_data.jsonl/15308
{ "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, 31282, 852, 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, 50960, 17713, 11, 1848, 1669, 19721, 5814, 12805, 568, 2403, 17713, 741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestPatchByFullSymbolName(t *testing.T) { Convey("[TestPatchByFullSymbolName]", t, func() { patchGuard := PatchByFullSymbolName("github.com/cch123/supermonkey.hey", func() string { return "ok" }) So(hey(), ShouldEqual, "ok") patchGuard.Unpatch() }) }
explode_data.jsonl/31446
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 106 }
[ 2830, 3393, 43622, 1359, 9432, 15090, 675, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 10937, 2271, 43622, 1359, 9432, 15090, 675, 19076, 259, 11, 2915, 368, 341, 197, 3223, 754, 20806, 1669, 30412, 1359, 9432, 15090, 675, 445, 5204, 905...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFormatWithdrawPermissions(t *testing.T) { b.SetDefaults() expected := exchange.NoAPIWithdrawalMethodsText actual := b.FormatWithdrawPermissions() if actual != expected { t.Errorf("Expected: %s, Received: %s", expected, actual) } }
explode_data.jsonl/14541
{ "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, 4061, 92261, 23851, 1155, 353, 8840, 836, 8, 341, 2233, 4202, 16273, 741, 42400, 1669, 9289, 16766, 7082, 92261, 278, 17856, 1178, 198, 88814, 1669, 293, 9978, 92261, 23851, 741, 743, 5042, 961, 3601, 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 ]
2
func TestCheckMatchErrors(t *testing.T) { tests := []struct { note string query string }{ {"null", "null = true"}, {"boolean", "true = null"}, {"number", "1 = null"}, {"string", `"hello" = null`}, {"array", "[1,2,3] = null"}, {"array-nested", `[1,2,3] = [1,2,"3"]`}, {"array-nested-2", `[1,2] = [1,2...
explode_data.jsonl/14562
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 445 }
[ 2830, 3393, 3973, 8331, 13877, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 9038, 1272, 220, 914, 198, 197, 27274, 914, 198, 197, 59403, 197, 197, 4913, 2921, 497, 330, 2921, 284, 830, 7115, 197, 197, 4913, 6117, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPulsarProducer(t *testing.T) { pulsarAddress, _ := Params.Load("_PulsarAddress") pc, err := GetPulsarClientInstance(pulsar.ClientOptions{URL: pulsarAddress}) defer pc.Close() assert.NoError(t, err) assert.NotNil(t, pc) topic := "TEST" producer, err := pc.CreateProducer(ProducerOptions{Topic: topic}) a...
explode_data.jsonl/67683
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 258 }
[ 2830, 3393, 47, 14295, 277, 45008, 1155, 353, 8840, 836, 8, 341, 3223, 14295, 277, 4286, 11, 716, 1669, 34352, 13969, 16975, 47, 14295, 277, 4286, 1138, 82013, 11, 1848, 1669, 2126, 47, 14295, 277, 2959, 2523, 1295, 14295, 277, 11716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGoRun(t *testing.T) { e := newTestGo() s, _, _ := stressClient.NewTestStressTest() e.Run(s) if e == nil { t.Fail() } }
explode_data.jsonl/43288
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 64 }
[ 2830, 3393, 10850, 6727, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 501, 2271, 10850, 741, 1903, 11, 8358, 716, 1669, 8464, 2959, 7121, 2271, 623, 673, 2271, 741, 7727, 16708, 1141, 340, 743, 384, 621, 2092, 341, 197, 3244, 57243, 741,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestDeleteOrganization(t *testing.T) { assert.NoError(t, PrepareTestDatabase()) org := AssertExistsAndLoadBean(t, &User{ID: 6}).(*User) assert.NoError(t, DeleteOrganization(org)) AssertNotExistsBean(t, &User{ID: 6}) AssertNotExistsBean(t, &OrgUser{OrgID: 6}) AssertNotExistsBean(t, &Team{OrgID: 6}) org = As...
explode_data.jsonl/71060
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 251 }
[ 2830, 3393, 6435, 41574, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 31166, 2271, 5988, 2398, 87625, 1669, 5319, 15575, 3036, 5879, 10437, 1155, 11, 609, 1474, 90, 915, 25, 220, 21, 16630, 4071, 1474, 340, 6948, 35699, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1