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 TestTransportDialPreservesNetOpProxyError(t *testing.T) { defer afterTest(t) var errDial = errors.New("some dial error") tr := &Transport{ Proxy: func(*Request) (*url.URL, error) { return url.Parse("http://proxy.fake.tld/") }, Dial: func(string, string) (net.Conn, error) { return nil, errDial },...
explode_data.jsonl/14091
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 413 }
[ 2830, 3393, 27560, 35, 530, 14367, 13280, 6954, 7125, 16219, 1454, 1155, 353, 8840, 836, 8, 341, 16867, 1283, 2271, 1155, 692, 2405, 1848, 35, 530, 284, 5975, 7121, 445, 14689, 27860, 1465, 5130, 25583, 1669, 609, 27560, 515, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMapProxy_GetWithNilKey(t *testing.T) { testKey := "testingKey" testValue := "testingValue" mp.Put(testKey, testValue) _, err := mp.Get(nil) AssertErrorNotNil(t, err, "get did not return an error for nil key") mp.Clear() }
explode_data.jsonl/56958
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 92 }
[ 2830, 3393, 2227, 16219, 13614, 2354, 19064, 1592, 1155, 353, 8840, 836, 8, 341, 18185, 1592, 1669, 330, 8840, 1592, 698, 18185, 1130, 1669, 330, 8840, 1130, 698, 53230, 39825, 8623, 1592, 11, 1273, 1130, 340, 197, 6878, 1848, 1669, 104...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSimpleRunWithMarker(t *testing.T) { // ARRANGE c1data := map[string][]byte{"c1data": []byte(`{"title":"title_1","content":"hello world"}`)} c2data := map[string][]byte{"c2data": []byte(`{"title":"title_2","content":"greetings my lord"}`)} format, runner, output, input, tracker := build(t, []*Container{ {...
explode_data.jsonl/33794
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 807 }
[ 2830, 3393, 16374, 51918, 20613, 1155, 353, 8840, 836, 8, 341, 197, 322, 82079, 11503, 198, 1444, 16, 691, 1669, 2415, 14032, 45725, 3782, 4913, 66, 16, 691, 788, 3056, 3782, 5809, 4913, 2102, 3252, 2102, 62, 16, 2198, 1796, 3252, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRuntimeNameCollisionNoBundle(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` function __require() { return 123 } console.log(__require()) `, }, entryPaths: []string{"/entry.js"}, options: config.Options{ AbsOutputFile: "/out.js", }, ...
explode_data.jsonl/38508
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 136 }
[ 2830, 3393, 15123, 675, 32280, 2753, 8409, 1155, 353, 8840, 836, 8, 341, 11940, 57239, 25952, 33, 1241, 832, 1155, 11, 51450, 515, 197, 74075, 25, 2415, 14032, 30953, 515, 298, 197, 3115, 4085, 2857, 788, 22074, 571, 7527, 1304, 4310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilterServiceInstancesByName(t *testing.T) { Convey("Test empty array return empty array", t, func() { result := FilterServiceInstancesByName([]ServiceInstance{}, "test") So(result, ShouldResemble, []ServiceInstance{}) }) Convey("Test one matching by lowercase name instance returned from array", t, fun...
explode_data.jsonl/9314
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 334 }
[ 2830, 3393, 5632, 1860, 42725, 16898, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 2271, 4287, 1334, 470, 4287, 1334, 497, 259, 11, 2915, 368, 341, 197, 9559, 1669, 12339, 1860, 42725, 16898, 10556, 1860, 2523, 22655, 330, 1944, 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 TestPodSpecFeatureValidation(t *testing.T) { runtimeClassName := "test" featureData := []struct { name string featureSpec corev1.PodSpec cfgOpts []configOption err *apis.FieldError }{{ name: "Affinity", featureSpec: corev1.PodSpec{ Affinity: &corev1.Affinity{ NodeAffinity:...
explode_data.jsonl/48120
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1941 }
[ 2830, 3393, 23527, 8327, 13859, 13799, 1155, 353, 8840, 836, 8, 341, 7000, 4466, 14541, 1669, 330, 1944, 1837, 1166, 15208, 1043, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 1166, 15208, 8327, 6200, 85, 16, 88823, 8327, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestScanConversion(t *testing.T) { for _, tt := range scanConversionTests { values := []interface{}{tt.src} dest := reflect.New(reflect.TypeOf(tt.dest)) values, err := redis.Scan(values, dest.Interface()) if err != nil { t.Errorf("Scan(%v) returned error %v", tt, err) continue } if !reflect.Deep...
explode_data.jsonl/44280
{ "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, 26570, 48237, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 8569, 48237, 18200, 341, 197, 45939, 1669, 3056, 4970, 6257, 90, 5566, 14681, 532, 197, 49616, 1669, 8708, 7121, 13321, 767, 73921, 47152, 21489, 1171,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResponsibleForPod(t *testing.T) { handler := utiltesting.FakeHandler{ StatusCode: 500, ResponseBody: "", T: t, } server := httptest.NewServer(&handler) defer server.Close() client := clientset.NewForConfigOrDie(&restclient.Config{Host: server.URL, ContentConfig: restclient.ContentConfig...
explode_data.jsonl/13326
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1318 }
[ 2830, 3393, 1061, 42319, 2461, 23527, 1155, 353, 8840, 836, 8, 341, 53326, 1669, 4094, 8840, 991, 726, 3050, 515, 197, 197, 15872, 25, 256, 220, 20, 15, 15, 345, 197, 197, 29637, 25, 8324, 197, 10261, 25, 310, 259, 345, 197, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestAndNot_TheSameBitmap(t *testing.T) { var a Bitmap for i := uint32(0); i < 100; i += 2 { a.Set(i) } a.AndNot(a) for i := uint32(0); i < 100; i++ { assert.Equal(t, false, a.Contains(i), "for "+strconv.Itoa(int(i))) } assert.Equal(t, 0, a.Count()) }
explode_data.jsonl/39885
{ "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, 3036, 2623, 62, 785, 19198, 16773, 1155, 353, 8840, 836, 8, 341, 2405, 264, 17533, 198, 2023, 600, 1669, 2622, 18, 17, 7, 15, 1215, 600, 366, 220, 16, 15, 15, 26, 600, 1421, 220, 17, 341, 197, 11323, 4202, 1956, 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...
3
func TestValueReleaseMoreThanOnceIsOk(t *testing.T) { t.Parallel() iso := NewIsolate() ctx := iso.NewContext() res, err := ctx.Eval("5", "test.js") if err != nil { t.Fatal(err) } res.release() res.release() res.release() res.release() ctx.release() iso.release() ctx.release() ctx.release() iso.releas...
explode_data.jsonl/81575
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 143 }
[ 2830, 3393, 1130, 16077, 7661, 26067, 12522, 3872, 11578, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 15420, 1669, 1532, 3872, 33066, 741, 20985, 1669, 33456, 7121, 1972, 2822, 10202, 11, 1848, 1669, 5635, 5142, 831, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestNextEffectsPage(t *testing.T) { hmock := httptest.NewClient() client := &Client{ AuroraURL: "https://localhost/", HTTP: hmock, } // Account effects effectRequest := EffectRequest{ForAccount: "GCDIZFWLOTBWHTPODXCBH6XNXPFMSQFRVIDRP3JLEKQZN66G7NF3ANOD"} hmock.On( "GET", "https://localhost/ac...
explode_data.jsonl/28813
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 406 }
[ 2830, 3393, 5847, 39782, 2665, 1155, 353, 8840, 836, 8, 341, 9598, 16712, 1669, 54320, 70334, 7121, 2959, 741, 25291, 1669, 609, 2959, 515, 197, 22985, 324, 6215, 3144, 25, 330, 2428, 1110, 8301, 35075, 197, 197, 9230, 25, 981, 305, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCompressionHCRatio(t *testing.T) { input, err := ioutil.ReadFile("sample.txt") if err != nil { t.Fatal(err) } output := make([]byte, CompressBound(input)) outSize, err := CompressHC(output, input) if err != nil { t.Fatal(err) } if want := 4317; want != outSize { t.Fatalf("HC Compressed output le...
explode_data.jsonl/62977
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 146 }
[ 2830, 3393, 81411, 39, 8973, 6266, 1155, 353, 8840, 836, 8, 341, 22427, 11, 1848, 1669, 43144, 78976, 445, 13611, 3909, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 21170, 1669, 1281, 10556, 3782, 11, 1198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInterceptor(t *testing.T) { defer assertNotPanic(t) app := fiber.New() handler := Middleware( rkmidprom.WithEntryNameAndType("ut-entry", "ut-type"), rkmidprom.WithRegisterer(prometheus.NewRegistry())) app.Use(handler) app.Get("/ut-path", func(ctx *fiber.Ctx) error { return nil }) req := httpte...
explode_data.jsonl/70203
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 188 }
[ 2830, 3393, 32786, 1155, 353, 8840, 836, 8, 341, 16867, 2060, 2623, 47, 31270, 1155, 692, 28236, 1669, 23788, 7121, 2822, 53326, 1669, 72012, 1006, 197, 7000, 16017, 307, 24468, 26124, 5874, 675, 3036, 929, 445, 332, 47244, 497, 330, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Mock_Called_blocks(t *testing.T) { var mockedService = new(TestExampleImplementation) mockedService.Mock.On("asyncCall", 1, 2, 3).Return(5, "6", true).After(2 * time.Millisecond) ch := make(chan Arguments) go asyncCall(&mockedService.Mock, ch) select { case <-ch: t.Fatal("should have ...
explode_data.jsonl/8593
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 404 }
[ 2830, 3393, 1245, 1176, 920, 4736, 25201, 1155, 353, 8840, 836, 8, 8022, 2405, 46149, 1860, 284, 501, 31159, 13314, 36850, 7229, 2109, 67385, 1860, 24664, 8071, 445, 7692, 7220, 497, 220, 16, 11, 220, 17, 11, 220, 18, 568, 5598, 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 TestValidatePlatform(t *testing.T) { cases := []struct { name string platform *nutanix.Platform expectedError string }{ { name: "minimal", platform: validPlatform(), }, { name: "missing Prism Central address", platform: func() *nutanix.Platform { p := validPlatform()...
explode_data.jsonl/71759
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1979 }
[ 2830, 3393, 17926, 17296, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 688, 914, 198, 197, 197, 15734, 414, 353, 23333, 276, 941, 51227, 198, 197, 42400, 1454, 914, 198, 197, 59403, 197, 197, 515, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNestedIfElse(t *testing.T) { testStr := ` <?php function foo (){if (true) {} else {} someExpr(); } ` p := NewParser() p.disableScoping = true ast, err := p.Parse("", testStr) if err != nil { t.Fatalf("parse: %v", err) } if ast.Nodes[1].Children()[1].Children()[1].String() != "someExpr()" { t.Fatal(...
explode_data.jsonl/28428
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 143 }
[ 2830, 3393, 71986, 2679, 22971, 1155, 353, 8840, 836, 8, 341, 18185, 2580, 1669, 22074, 1316, 1208, 729, 15229, 93083, 333, 320, 1866, 8, 4687, 770, 4687, 1045, 16041, 2129, 456, 3989, 3223, 1669, 1532, 6570, 741, 3223, 42628, 3326, 337...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test_two_elements(t *testing.T) { should := require.New(t) iter := jsoner.ParseString(jsoner.DefaultAPI(), `[1,2]`) should.True(iter.ReadArray()) should.Equal(int64(1), iter.ReadInt64()) should.True(iter.ReadArray()) should.Equal(int64(2), iter.ReadInt64()) should.False(iter.ReadArray()) iter = jsoner.Pars...
explode_data.jsonl/57873
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 23241, 22801, 1155, 353, 8840, 836, 8, 341, 197, 5445, 1669, 1373, 7121, 1155, 340, 79924, 1669, 2951, 261, 8937, 703, 9304, 261, 13275, 7082, 1507, 77644, 16, 11, 17, 60, 24183, 197, 5445, 32443, 27070, 6503, 1857, 2398, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReed(t *testing.T) { if os.Getenv("RUN_LIVE_TW_TEST") != "true" { t.SkipNow() // skip this test until able to read credentials in test infra } m := bindings.Metadata{} m.Properties = getRuntimeMetadata() // add query m.Properties["query"] = "microsoft" tw := NewTwitter(logger.NewLogger("test")) tw.lo...
explode_data.jsonl/21299
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 293 }
[ 2830, 3393, 693, 291, 1155, 353, 8840, 836, 8, 341, 743, 2643, 64883, 445, 47390, 2351, 6537, 95747, 11641, 899, 961, 330, 1866, 1, 341, 197, 3244, 57776, 7039, 368, 442, 10706, 419, 1273, 3080, 2952, 311, 1349, 16387, 304, 1273, 4817...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInstrumentationLibrarySpans_MoveTo(t *testing.T) { ms := generateTestInstrumentationLibrarySpans() dest := NewInstrumentationLibrarySpans() ms.MoveTo(dest) assert.EqualValues(t, NewInstrumentationLibrarySpans(), ms) assert.EqualValues(t, generateTestInstrumentationLibrarySpans(), dest) }
explode_data.jsonl/63251
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 56324, 367, 16915, 6406, 596, 66352, 1249, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 6923, 2271, 56324, 367, 16915, 6406, 596, 741, 49616, 1669, 1532, 56324, 367, 16915, 6406, 596, 741, 47691, 31195, 1249, 27010, 340, 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 TestBuildSummary(t *testing.T) { node := api.Node{} node.Name = "FooNode" nodeConfig := cm.NodeConfig{ RuntimeCgroupsName: "/docker-daemon", SystemCgroupsName: "/system", KubeletCgroupsName: "/kubelet", } const ( namespace0 = "test0" namespace2 = "test2" ) const ( seedRoot = 0 seedR...
explode_data.jsonl/12764
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2371 }
[ 2830, 3393, 11066, 19237, 1155, 353, 8840, 836, 8, 341, 20831, 1669, 6330, 21714, 16094, 20831, 2967, 284, 330, 40923, 1955, 698, 20831, 2648, 1669, 9961, 21714, 2648, 515, 197, 68321, 34, 16753, 675, 25, 3521, 28648, 65897, 7291, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestOptions(t *testing.T) { t.Run("APIKeyChecks", func(t *testing.T) { var apikeytests = []struct { in string out bool }{ {"", false}, // Fail, empty string {"1234567890123456789012345678901", false}, // Fail, too short {"123456789012345678901234567890123", false}, // Fail, too long {"123...
explode_data.jsonl/18535
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2441 }
[ 2830, 3393, 3798, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 7082, 1592, 49820, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 2405, 6330, 792, 23841, 284, 3056, 1235, 341, 298, 17430, 220, 914, 198, 298, 13967, 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...
2
func TestRuntimeDependency(t *testing.T) { require := require.New(t) require.Implements((*acktypes.AWSResourceIdentifiers)(nil), new(fakeIdentifiers)) require.Implements((*acktypes.AWSResourceDescriptor)(nil), new(fakeDescriptor)) // ACK runtime v0.2.3 introduced a new logger that is now passed into the // Conte...
explode_data.jsonl/64331
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 696 }
[ 2830, 3393, 15123, 36387, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 17957, 26914, 4674, 26609, 473, 9242, 91670, 4783, 28301, 11836, 2376, 8385, 701, 501, 74138, 28301, 11836, 1171, 17957, 26914, 4674, 26609, 473, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServerlessLowApdex(t *testing.T) { apdex := -1 * time.Second cfgFn := func(cfg *Config) { cfg.ServerlessMode.Enabled = true cfg.ServerlessMode.ApdexThreshold = apdex } app := testApp(nil, cfgFn, t) txn := app.StartTransaction("hello") txn.SetWebRequestHTTP(nil) // only web gets apdex txn.End() app...
explode_data.jsonl/52865
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 387 }
[ 2830, 3393, 5475, 1717, 24187, 10611, 91769, 1155, 353, 8840, 836, 8, 341, 69898, 91769, 1669, 481, 16, 353, 882, 32435, 198, 50286, 24911, 1669, 2915, 28272, 353, 2648, 8, 341, 197, 50286, 22997, 1717, 3636, 13690, 284, 830, 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 TestNewTaskEngineRestoreFromCheckpointNoEC2InstanceIDToLoadHappyPath(t *testing.T) { ctrl, credentialsManager, _, imageManager, _, dockerClient, stateManagerFactory, saveableOptionFactory, execCmdMgr := setup(t) defer ctrl.Finish() ec2MetadataClient := mock_ec2.NewMockEC2MetadataClient(ctrl) mockPauseLoader...
explode_data.jsonl/41582
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 856 }
[ 2830, 3393, 3564, 6262, 4571, 56284, 3830, 92688, 2753, 7498, 17, 2523, 915, 1249, 5879, 32847, 1820, 1155, 353, 8840, 836, 8, 341, 84381, 11, 16387, 2043, 11, 8358, 2168, 2043, 11, 716, 345, 197, 2698, 13659, 2959, 11, 1584, 2043, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestService_getGNMIServiceVersion(t *testing.T) { version, err := getGNMIServiceVersion() assert.NilError(t, err) assert.Equal(t, *version, "0.7.0") }
explode_data.jsonl/40354
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 1860, 3062, 25167, 44, 95125, 5637, 1155, 353, 8840, 836, 8, 341, 74954, 11, 1848, 1669, 633, 25167, 44, 95125, 5637, 741, 6948, 59678, 1454, 1155, 11, 1848, 340, 6948, 12808, 1155, 11, 353, 4366, 11, 330, 15, 13, 22, 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
func TestPlainDynamicMsg(t *testing.T) { fromPrefix := "from" toPrefix := "to" tppff := &testProtoPlainFieldFactory{ fromPrefix: fromPrefix, toPrefix: toPrefix, } fieldFactories = []protoFieldFactory{tppff, variablyOpaqueFieldFactory{}} pfValue := "foo" startMsg := &testprotos.DynamicMsg{ DynamicType: ...
explode_data.jsonl/78815
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 472 }
[ 2830, 3393, 26982, 21752, 6611, 1155, 353, 8840, 836, 8, 341, 42727, 14335, 1669, 330, 1499, 698, 31709, 14335, 1669, 330, 983, 698, 3244, 602, 542, 1669, 609, 1944, 31549, 26982, 1877, 4153, 515, 197, 42727, 14335, 25, 504, 14335, 345,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParser_ParseStructPointerMembers(t *testing.T) { src := ` package api type Child struct { Name string } type Parent struct { Test1 *string //test1 Test2 *Child //test2 } // @Success 200 {object} Parent // @Router /api/{id} [get] func Test(){ } ` expected := `{ "api.Child": { "type": "objec...
explode_data.jsonl/63568
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 539 }
[ 2830, 3393, 6570, 77337, 9422, 9084, 24371, 1155, 353, 8840, 836, 8, 341, 41144, 1669, 22074, 1722, 6330, 271, 1313, 9391, 2036, 341, 21297, 914, 198, 630, 1313, 17022, 2036, 341, 73866, 16, 353, 917, 220, 442, 1944, 16, 198, 73866, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetReady(t *testing.T) { masterHost := "127.0.0.1" masterPort := 6557 server := newTestServer(masterHost, masterPort) defer server.close() server.start() rateLimiter := NewStableRateLimiter(100, time.Second) r := newSlaveRunner(masterHost, masterPort, nil, rateLimiter) defer r.close() defer Events.U...
explode_data.jsonl/11401
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 322 }
[ 2830, 3393, 1949, 19202, 1155, 353, 8840, 836, 8, 341, 2109, 2300, 9296, 1669, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 698, 2109, 2300, 7084, 1669, 220, 21, 20, 20, 22, 271, 41057, 1669, 501, 2271, 5475, 54394, 9296, 11, 7341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue1768(t *testing.T) { // this data is from captured handshake packet, using mysql client. // TiDB should handle authorization correctly, even mysql client set // the ClientPluginAuthLenencClientData capability. data := []byte{ 0x85, 0xa6, 0xff, 0x01, 0x00, 0x00, 0x00, 0x01, 0x21, 0x00, 0x00, 0x00, ...
explode_data.jsonl/73146
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 903 }
[ 2830, 3393, 42006, 16, 22, 21, 23, 1155, 353, 8840, 836, 8, 341, 197, 322, 419, 821, 374, 504, 17006, 57020, 10151, 11, 1667, 10564, 2943, 624, 197, 322, 22325, 3506, 1265, 3705, 23715, 12440, 11, 1496, 10564, 2943, 738, 198, 197, 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 TestEmbeddedPtrIgnored(t *testing.T) { // embedded pointer fields are not normally supported but here // we explicitly exclude it so the non-nil embedded structs // should work as expected var args struct { *A `arg:"-"` B } err := parse("--y=321", &args) require.NoError(t, err) assert.Equal(t, 321, arg...
explode_data.jsonl/13064
{ "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, 83466, 5348, 43337, 3018, 1155, 353, 8840, 836, 8, 341, 197, 322, 22864, 7445, 5043, 525, 537, 14279, 7248, 714, 1588, 198, 197, 322, 582, 20975, 21687, 432, 773, 279, 2477, 83248, 22864, 62845, 198, 197, 322, 1265, 975, 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 TestGenerateStructMapper(t *testing.T) { out := jen.NewFile("main") sym, err := symbols.ProjectByDir(".", symbols.All) assert.NoError(t, err, "parse") stA, err := sym.FindSymbol("A", sym.Package.FindFile("gen_test.go")) assert.NoError(t, err, "find struct A") userA, err := sym.FindSymbol("UserA", sym.Package...
explode_data.jsonl/50764
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 254 }
[ 2830, 3393, 31115, 9422, 10989, 1155, 353, 8840, 836, 8, 341, 13967, 1669, 502, 268, 7121, 1703, 445, 3817, 1138, 1903, 1600, 11, 1848, 1669, 17738, 30944, 1359, 6184, 64217, 17738, 16764, 340, 6948, 35699, 1155, 11, 1848, 11, 330, 6400...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPortsForObject(t *testing.T) { f := NewFactory(NewTestConfigFlags()) pod := &api.Pod{ ObjectMeta: metav1.ObjectMeta{Name: "baz", Namespace: "test", ResourceVersion: "12"}, Spec: api.PodSpec{ Containers: []api.Container{ { Ports: []api.ContainerPort{ { ContainerPort: 101, }...
explode_data.jsonl/7937
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 269 }
[ 2830, 3393, 68273, 94604, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 1532, 4153, 35063, 2271, 2648, 9195, 12367, 3223, 347, 1669, 609, 2068, 88823, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 63121, 25, 330, 42573, 497, 41962, 25, 330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGetMgmtSecretRandom(t *testing.T) { expectedVal := util.GetMgmtSecret("DOES_NOT_EXIST_MGMT_SECRET") require.NotEmpty(t, expectedVal) for i := 0; i < 5; i++ { val := util.GetMgmtSecret("DOES_NOT_EXIST_MGMT_SECRET") assert.Equal(t, expectedVal, val) } }
explode_data.jsonl/6091
{ "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, 1949, 44, 46063, 19773, 13999, 1155, 353, 8840, 836, 8, 341, 42400, 2208, 1669, 4094, 2234, 44, 46063, 19773, 445, 5865, 1570, 9169, 49049, 1245, 37077, 31408, 1138, 17957, 15000, 3522, 1155, 11, 3601, 2208, 692, 2023, 600, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetJokeByID(t *testing.T) { mockResp := `{ "type": "success", "value": { "id": 1, "joke": "test", "categories": [] } }` ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, mockResp) })) baseURL = ts.URL joke, err := GetJokeByID(1, nil) if err != nil...
explode_data.jsonl/30646
{ "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, 1949, 41, 4740, 60572, 1155, 353, 8840, 836, 8, 341, 77333, 36555, 1669, 53692, 330, 1313, 788, 330, 5630, 497, 330, 957, 788, 314, 330, 307, 788, 220, 16, 11, 330, 73, 4740, 788, 330, 1944, 497, 330, 15497, 788, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDomainAndType(t *testing.T) { jar := newTestJar() for _, tc := range domainAndTypeTests { domain, hostOnly, err := jar.domainAndType(tc.host, tc.domain) if err != tc.wantErr { t.Errorf("%q/%q: got %q error, want %q", tc.host, tc.domain, err, tc.wantErr) continue } if err != nil { continu...
explode_data.jsonl/14665
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 13636, 3036, 929, 1155, 353, 8840, 836, 8, 341, 12428, 277, 1669, 501, 2271, 71735, 741, 2023, 8358, 17130, 1669, 2088, 7947, 3036, 929, 18200, 341, 197, 2698, 3121, 11, 3468, 7308, 11, 1848, 1669, 29595, 11003, 3036, 929, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConsentHelper(t *testing.T) { km := &jwk.MemoryManager{Keys: map[string]*jose.JsonWebKeySet{}} km.AddKeySet(oauth2.ConsentChallengeKey, genKey()) km.AddKeySet(oauth2.ConsentEndpointKey, genKey()) _, err := km.GetKey(oauth2.ConsentChallengeKey, "private") require.Nil(t, err) c := Consent{KeyManager: km} ...
explode_data.jsonl/79433
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 636 }
[ 2830, 3393, 15220, 306, 5511, 1155, 353, 8840, 836, 8, 341, 197, 16017, 1669, 609, 73, 50522, 71162, 2043, 90, 8850, 25, 2415, 14032, 8465, 73, 960, 13562, 5981, 1592, 1649, 6257, 532, 197, 16017, 1904, 1592, 1649, 10108, 3242, 17, 94...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClient_PublicAppAuthorize(t *testing.T) { t.Log("========== PublicAppAuthorize ==========") var result, err = client.PublicAppAuthorize([]string{"auth_user"}, "http://127.0.0.1", "hhh") t.Log(result, err) }
explode_data.jsonl/15847
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 79 }
[ 2830, 3393, 2959, 73905, 2164, 37483, 1155, 353, 8840, 836, 8, 341, 3244, 5247, 445, 43256, 3066, 2164, 37483, 284, 885, 428, 340, 2405, 1102, 11, 1848, 284, 2943, 49139, 2164, 37483, 10556, 917, 4913, 3242, 3317, 14345, 330, 1254, 1110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGeneratedAssets(t *testing.T) { generatedAssets := &assetfs.AssetFS{Asset: Asset, AssetDir: AssetDir, AssetInfo: AssetInfo} if !supportHttp.EqualFileSystems(http.Dir("."), generatedAssets, "migrations") { t.Fatalf("generated migrations does not match local migrations") } }
explode_data.jsonl/12579
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 15741, 26879, 1155, 353, 8840, 836, 8, 341, 3174, 10543, 26879, 1669, 609, 9852, 3848, 88161, 8485, 90, 16604, 25, 22605, 11, 22605, 6184, 25, 22605, 6184, 11, 22605, 1731, 25, 22605, 1731, 532, 743, 753, 23362, 2905, 12808,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCmdSourcesInfo(t *testing.T) { // Test the "sources info" command mc := root.SetupCmdTest(func(request *http.Request) (*http.Response, error) { json := `{ "errors": [ { "id": "UnknownSource", "msg": "unknown is not a valid source" } ], "sources": { ...
explode_data.jsonl/62991
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 688 }
[ 2830, 3393, 15613, 32200, 1731, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 279, 330, 39651, 3546, 1, 3210, 198, 97662, 1669, 3704, 39820, 15613, 2271, 18552, 4875, 353, 1254, 9659, 8, 4609, 1254, 12574, 11, 1465, 8, 341, 197, 30847...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPassword(t *testing.T) { a := assertions.New(t) a.So(Password("_Foo1__BaR"), should.BeNil) a.So(Password("_Foo1."), should.NotBeNil) a.So(Password("hhHiHIHIii1555"), should.BeNil) a.So(Password("Hi12//i12ddddd"), should.BeNil) a.So(Password(1), should.NotBeNil) a.So(Password(""), should.NotBeNil) }
explode_data.jsonl/61488
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 144 }
[ 2830, 3393, 4876, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 54836, 7121, 1155, 340, 11323, 46387, 7, 4876, 16975, 40923, 16, 563, 58827, 49, 3975, 1265, 70923, 19064, 340, 11323, 46387, 7, 4876, 16975, 40923, 16, 82815, 1265, 15000, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIsLetter(t *testing.T) { assert.True(t, IsLetter('a')) assert.True(t, IsLetter('e')) assert.True(t, IsLetter('q')) assert.True(t, IsLetter('z')) assert.True(t, IsLetter('A')) assert.True(t, IsLetter('E')) assert.True(t, IsLetter('Q')) assert.True(t, IsLetter('Z')) assert.True(t, IsLetter('_')) assert...
explode_data.jsonl/14322
{ "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, 3872, 34264, 1155, 353, 8840, 836, 8, 341, 6948, 32443, 1155, 11, 2160, 34264, 492, 64, 6987, 6948, 32443, 1155, 11, 2160, 34264, 492, 68, 6987, 6948, 32443, 1155, 11, 2160, 34264, 492, 80, 6987, 6948, 32443, 1155, 11, 216...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInitConfig_fail(t *testing.T) { require.Panics(t, func() { os.Setenv("APP_GRACEFULSHUTDOWNTIMEOUT", "[42]") // nolint: errcheck, gosec initConfig("../../configs/trigger-api/default.yaml") }) }
explode_data.jsonl/81188
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 3393, 3803, 2648, 22121, 1155, 353, 8840, 836, 8, 341, 17957, 1069, 276, 1211, 1155, 11, 2915, 368, 341, 197, 25078, 4202, 3160, 445, 14707, 17874, 5576, 49636, 8590, 1381, 35, 3307, 6408, 5660, 3656, 497, 10545, 19, 17, 87282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEntropyRead(t *testing.T) { file, err := os.Create("./veryrandom.sh") file.Chmod(0740) if err != nil { panic(err) } _, err = file.WriteString("#!/bin/sh\necho Hey, good morning, Monstropolis") if err != nil { panic(err) } file.Close() defer os.Remove("./veryrandom.sh") execRand := "./veryrandom...
explode_data.jsonl/20647
{ "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, 97582, 4418, 1155, 353, 8840, 836, 8, 341, 17661, 11, 1848, 1669, 2643, 7251, 13988, 1204, 11463, 2395, 1138, 17661, 6353, 2593, 7, 15, 22, 19, 15, 692, 743, 1848, 961, 2092, 341, 197, 30764, 3964, 340, 197, 532, 197, 68...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapProxy_PutAllWithNonSerializableMapKey(t *testing.T) { testMap := make(map[interface{}]interface{}, 0) testMap[student{}] = 5 err := mp.PutAll(testMap) AssertErrorNotNil(t, err, "putAll did not return an error for nonserializable map key") mp.Clear() }
explode_data.jsonl/57070
{ "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, 2227, 16219, 1088, 332, 2403, 2354, 8121, 29268, 2227, 1592, 1155, 353, 8840, 836, 8, 341, 18185, 2227, 1669, 1281, 9147, 58, 4970, 78134, 4970, 22655, 220, 15, 340, 18185, 2227, 58, 12038, 78134, 284, 220, 20, 198, 9859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBoolInt_UnmarshalJSON_GotTrue(t *testing.T) { var sampleOut struct { Val BoolInt `json:"val"` } var sampleIn = []byte(`{"val":true}`) json.Unmarshal(sampleIn, &sampleOut) if !sampleOut.Val.Flag { t.Errorf("should be true but got false") } if sampleOut.Val.Value != nil { t.Error("int value should...
explode_data.jsonl/31040
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 11233, 1072, 40687, 27121, 5370, 2646, 354, 2514, 1155, 353, 8840, 836, 8, 341, 2405, 6077, 2662, 2036, 341, 197, 197, 2208, 12608, 1072, 1565, 2236, 2974, 831, 8805, 197, 532, 2405, 6077, 641, 284, 3056, 3782, 5809, 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...
3
func TestTCMDQuery(t *testing.T) { path := fmt.Sprintf("%s/%s/datatype", TCDataspace, TCDataset) params := map[string]string{ "predicate": "name='Undefined'", } resp, err := get(path, params) assert.NoError(t, err, "QUERY %s should not return error %v", path, err) assert.NotNil(t, resp, "QUERY %s should not ret...
explode_data.jsonl/64294
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 7749, 6076, 2859, 1155, 353, 8840, 836, 8, 341, 26781, 1669, 8879, 17305, 4430, 82, 12627, 82, 37566, 20157, 497, 350, 6484, 19346, 1306, 11, 350, 6484, 8369, 340, 25856, 1669, 2415, 14032, 30953, 515, 197, 197, 1, 61785, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewWithTLSDialer(t *testing.T) { expected := errors.New("mocked error") tlsDialer := dialer.TLSDialer{ Config: new(tls.Config), Dialer: httptransport.FakeDialer{Err: expected}, TLSHandshaker: dialer.SystemTLSHandshaker{}, } txp := httptransport.New(httptransport.Config{ TLSDialer: tls...
explode_data.jsonl/78395
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 236 }
[ 2830, 3393, 3564, 2354, 13470, 5491, 530, 261, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 5975, 7121, 445, 16712, 291, 1465, 1138, 3244, 4730, 35, 530, 261, 1669, 27860, 261, 836, 43, 5491, 530, 261, 515, 197, 66156, 25, 286, 501, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestManagerDeploymentCert(t *testing.T) { helmChartPath := "../charts/core" options := &helm.Options{ SetValues: map[string]string{ "manager.certificate.secret": "https-cert", }, } // Test ingress out := helm.RenderTemplate(t, options, helmChartPath, []string{"templates/manager-deployment.yaml"}) ou...
explode_data.jsonl/55059
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 2043, 75286, 36934, 1155, 353, 8840, 836, 8, 341, 9598, 23162, 14488, 1820, 1669, 7005, 36584, 5320, 1837, 35500, 1669, 609, 51899, 22179, 515, 197, 22212, 6227, 25, 2415, 14032, 30953, 515, 298, 197, 1, 13297, 520, 20962, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSnmpInit(t *testing.T) { testDataPath, err := filepath.Abs("./testdata") require.NoError(t, err) s := &Snmp{ Tables: []Table{ {Oid: "RFC1213-MIB::atTable"}, }, Fields: []Field{ {Oid: "RFC1213-MIB::atPhysAddress"}, }, ClientConfig: snmp.ClientConfig{ Path: []string{testDataPath}, }, } ...
explode_data.jsonl/50781
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 464 }
[ 2830, 3393, 20720, 1307, 3803, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 1820, 11, 1848, 1669, 26054, 33255, 13988, 92425, 1138, 17957, 35699, 1155, 11, 1848, 692, 1903, 1669, 609, 20720, 1307, 515, 197, 197, 21670, 25, 3056, 2556, 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 TestGenerateNotEnoughInputParams(t *testing.T) { pwd, err := os.Getwd() if err != nil { t.Error(err) } out := fmt.Sprintf("test_%d.gr8.tmp", time.Now().Unix()) testFileOutput := filepath.Join(pwd, out) defer func() { os.Remove(testFileOutput) }() g := &gener8{ skipFormat: true, kws: "1,2...
explode_data.jsonl/14280
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 385 }
[ 2830, 3393, 31115, 2623, 95801, 2505, 4870, 1155, 353, 8840, 836, 8, 341, 3223, 6377, 11, 1848, 1669, 2643, 2234, 6377, 2822, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 630, 13967, 1669, 8879, 17305, 445, 1944, 18695, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConvertToColName(t *testing.T) { for i := 1; i < 200; i++ { fmt.Println(ConvertToColName(i), " -- ", i) } return }
explode_data.jsonl/40230
{ "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, 12012, 1249, 6127, 675, 1155, 353, 8840, 836, 8, 341, 2023, 600, 1669, 220, 16, 26, 600, 366, 220, 17, 15, 15, 26, 600, 1027, 341, 197, 11009, 12419, 44383, 1249, 6127, 675, 1956, 701, 330, 1177, 3670, 600, 340, 197, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func Test_checkIPandProtocol(t *testing.T) { testset := &IPSet{ Name: "test1", SetType: HashIPPort, HashFamily: ProtocolFamilyIPV4, HashSize: 1024, MaxElem: 65536, PortRange: DefaultPortRange, } testCases := []struct { name string entry *Entry valid bool }{ { name: "valid IP ...
explode_data.jsonl/74022
{ "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, 7200, 3298, 437, 20689, 1155, 353, 8840, 836, 8, 341, 18185, 746, 1669, 609, 3298, 1649, 515, 197, 21297, 25, 981, 330, 1944, 16, 756, 197, 22212, 929, 25, 262, 6531, 3298, 7084, 345, 197, 197, 6370, 15192, 25, 24572, 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...
2
func TestDeleteImages(t *testing.T) { mockRepoName := "mockRepoName" mockError := errors.New("mockError") mockDigest := "mockDigest" mockImages := []Image{ Image{ Digest: mockDigest, }, } mockFailCode := "400" mockFailReason := "some reason" // with only one image identifier var imageIdentifiers []*ecr....
explode_data.jsonl/31315
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1364 }
[ 2830, 3393, 6435, 14228, 1155, 353, 8840, 836, 8, 341, 77333, 25243, 675, 1669, 330, 16712, 25243, 675, 698, 77333, 1454, 1669, 5975, 7121, 445, 16712, 1454, 1138, 77333, 45217, 1669, 330, 16712, 45217, 698, 77333, 14228, 1669, 3056, 1906...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRing_Orientation(t *testing.T) { cases := []struct { name string ring Ring result Orientation }{ { name: "simple box, ccw", ring: Ring{{0, 0}, {0.001, 0}, {0.001, 0.001}, {0, 0.001}, {0, 0}}, result: CCW, }, { name: "simple box, cw", ring: Ring{{0, 0}, {0, 0.001}, {0.00...
explode_data.jsonl/48432
{ "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, 43466, 2232, 17663, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 7000, 287, 256, 21525, 198, 197, 9559, 54134, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 256, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestListNodes(t *testing.T) { orchestrator := getOrchestrator(t) expectedNode1 := &utils.Node{ Name: "testNode", IQN: "myIQN", IPs: []string{"1.1.1.1", "2.2.2.2"}, } expectedNode2 := &utils.Node{ Name: "testNode2", IQN: "myOtherIQN", IPs: []string{"3.3.3.3", "4.4.4.4"}, } initialNodes := map[...
explode_data.jsonl/62759
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 337 }
[ 2830, 3393, 852, 12288, 1155, 353, 8840, 836, 8, 341, 197, 21584, 15111, 850, 1669, 633, 2195, 331, 15111, 850, 1155, 340, 42400, 1955, 16, 1669, 609, 6031, 21714, 515, 197, 21297, 25, 330, 1944, 1955, 756, 197, 24486, 87054, 25, 220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestByteaArrayScanError(t *testing.T) { for _, tt := range []struct { input, err string }{ {``, "unable to parse array"}, {`{`, "unable to parse array"}, {`{{"\\xfeff"},{"\\xbeef"}}`, "cannot convert ARRAY[2][1] to ByteaArray"}, {`{"\\abc"}`, "could not parse bytea array index 0: could not parse bytea ...
explode_data.jsonl/5316
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 7153, 64, 1857, 26570, 1454, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 3056, 1235, 341, 197, 22427, 11, 1848, 914, 198, 197, 59403, 197, 197, 90, 90716, 330, 45928, 311, 4715, 1334, 7115, 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...
5
func TestSuicide_zeroTimeout(t *testing.T) { defer glog.Flush() k := New(Config{}) tracker := &suicideTracker{suicideWatcher: k.suicideWatch} k.suicideWatch = tracker ch := k.resetSuicideWatch(nil) select { case <-ch: case <-time.After(2 * time.Second): t.Fatalf("timeout waiting for reset of suicide watch"...
explode_data.jsonl/59737
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 219 }
[ 2830, 3393, 36459, 14502, 19359, 7636, 1155, 353, 8840, 836, 8, 341, 16867, 342, 839, 61559, 2822, 16463, 1669, 1532, 33687, 37790, 25583, 9683, 1669, 609, 27051, 14502, 31133, 90, 27051, 14502, 47248, 25, 595, 514, 84, 14502, 14247, 532,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestDeployWithErrorShuttingdownProxy(t *testing.T) { p := &fakeProxy{ errOnShutdown: assert.AnError, } e := &fakeExecutor{} c := &deployCommand{ getManifest: getFakeManifest, proxy: p, executor: e, kubeconfig: &fakeKubeConfig{}, } ctx := context.Background() cwd := "/tmp" opts := &Optio...
explode_data.jsonl/6528
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 302 }
[ 2830, 3393, 69464, 66102, 2016, 73981, 2923, 16219, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 609, 30570, 16219, 515, 197, 9859, 1925, 62004, 25, 2060, 8624, 1454, 345, 197, 532, 7727, 1669, 609, 30570, 25255, 16094, 1444, 1669, 609, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLimitedConnAttempts(t *testing.T) { testLimitedConnAttempts(t, blockDelivererConsumerWithRecv) testLimitedConnAttempts(t, blockDelivererConsumerWithSend) assert.Equal(t, 0, connNumber) }
explode_data.jsonl/38317
{ "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, 74477, 9701, 81517, 1155, 353, 8840, 836, 8, 341, 18185, 74477, 9701, 81517, 1155, 11, 2504, 16532, 1524, 261, 29968, 2354, 63483, 340, 18185, 74477, 9701, 81517, 1155, 11, 2504, 16532, 1524, 261, 29968, 2354, 11505, 340, 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
func TestApiV2DevAuthDeleteToken(t *testing.T) { t.Parallel() // enforce specific field naming in errors returned by API updateRestErrorFieldName() tcases := []struct { req *http.Request code int body string err error }{ { req: test.MakeSimpleRequest("DELETE", "http://1.2.3.4/api/management/v2...
explode_data.jsonl/631
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 524 }
[ 2830, 3393, 6563, 53, 17, 14592, 5087, 6435, 3323, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 28162, 3151, 2070, 34948, 304, 5975, 5927, 553, 5333, 198, 27175, 12416, 1454, 51241, 2822, 3244, 23910, 1669, 3056, 123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransformToCloudEvent(t *testing.T) { type dataTest struct { valueType string want string event models.Event } valueTypesToValues := map[string]string{ models.ValueTypeBool: "true", models.ValueTypeString: "This is a string", models.ValueTypeUint8: "123", models.ValueTypeUint16...
explode_data.jsonl/58240
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 892 }
[ 2830, 3393, 8963, 1249, 16055, 1556, 1155, 353, 8840, 836, 8, 341, 13158, 821, 2271, 2036, 341, 197, 16309, 929, 914, 198, 197, 50780, 414, 914, 198, 197, 28302, 257, 4119, 6904, 198, 197, 630, 16309, 4173, 1249, 6227, 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...
1
func TestJsonPatchJSONTransformer_Transform(t *testing.T) { rf := resource.NewFactory( kunstruct.NewKunstructuredFactoryImpl()) id := resid.NewResId(deploy, "deploy1") base := resmap.ResMap{ id: rf.FromMap( map[string]interface{}{ "apiVersion": "apps/v1", "kind": "Deployment", "metadata": ma...
explode_data.jsonl/80901
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1132 }
[ 2830, 3393, 5014, 43622, 5370, 46358, 34932, 627, 1155, 353, 8840, 836, 8, 341, 7000, 69, 1669, 5101, 7121, 4153, 1006, 197, 16463, 359, 1235, 7121, 42, 359, 51143, 4153, 9673, 2398, 15710, 1669, 21151, 7121, 1061, 764, 12797, 2693, 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...
5
func TestListEachPage(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleListSuccessfully(t) sc := ServiceClient() count := 0 err := groups.List(sc, groups.ListOpts{Limit: 1}).EachPage(func(page pagination.Page) (bool, error) { count++ data, paErr := groups.ExtractGroups(page) if paErr != nil { ...
explode_data.jsonl/66387
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 852, 4854, 2665, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 197, 6999, 852, 35959, 1155, 340, 29928, 1669, 5362, 2959, 741, 18032, 1669, 220, 15, 198, 9859, 1669, 5203, 5814, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSokuonR(t *testing.T) { const want = "rrarrirrurrerro" for _, v := range []string{"っらっりっるっれっろ", "ッラッリッルッレッロ"} { got, err := KanaToRomaji(v) assert.Equal(t, want, got) assert.Nil(t, err) } }
explode_data.jsonl/11355
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 110 }
[ 2830, 3393, 50, 16493, 263, 49, 1155, 353, 8840, 836, 8, 341, 4777, 1366, 284, 330, 634, 1118, 404, 81, 8027, 40296, 1837, 2023, 8358, 348, 1669, 2088, 3056, 917, 4913, 41791, 32403, 41791, 30331, 41791, 29269, 41791, 32021, 41791, 8469...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStringMap_InitFromMap(t *testing.T) { sm := NewStringMap().InitFromMap(map[string]string(nil)) assert.EqualValues(t, NewStringMap(), sm) rawMap := map[string]string{"k0": "v0", "k1": "v1", "k2": "v2"} rawOrig := []*otlpcommon.StringKeyValue{ { Key: "k0", Value: "v0", }, { Key: "k1", ...
explode_data.jsonl/38212
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 236 }
[ 2830, 3393, 703, 2227, 15644, 3830, 2227, 1155, 353, 8840, 836, 8, 341, 72023, 1669, 1532, 703, 2227, 1005, 3803, 3830, 2227, 9147, 14032, 30953, 27907, 1171, 6948, 12808, 6227, 1155, 11, 1532, 703, 2227, 1507, 1525, 692, 76559, 2227, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartAndShutdownWithErroringWork(t *testing.T) { const testTimeout = 500 * time.Millisecond item := types.NamespacedName{Namespace: "", Name: "bar"} impl := NewImplWithStats(&errorReconciler{}, TestLogger(t), "Testing", &FakeStatsReporter{}) impl.EnqueueKey(item) ctx, cancel := context.WithTimeout(cont...
explode_data.jsonl/45291
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 505 }
[ 2830, 3393, 3479, 3036, 62004, 66102, 287, 6776, 1155, 353, 8840, 836, 8, 341, 4777, 1273, 7636, 284, 220, 20, 15, 15, 353, 882, 71482, 271, 22339, 1669, 4494, 98932, 68552, 675, 90, 22699, 25, 7342, 3988, 25, 330, 2257, 63159, 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 TestValidatePermissionsEmptyDestination(t *testing.T) { conditions, err := ValidatePermissions(context.Background(), &argoappv1.ApplicationSpec{ Source: argoappv1.ApplicationSource{RepoURL: "https://github.com/argoproj/argo-cd", Path: "."}, }, &argoappv1.AppProject{ Spec: argoappv1.AppProjectSpec{ SourceR...
explode_data.jsonl/49988
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 221 }
[ 2830, 3393, 17926, 23851, 3522, 33605, 1155, 353, 8840, 836, 8, 341, 197, 16495, 11, 1848, 1669, 23282, 23851, 5378, 19047, 1507, 609, 12088, 676, 85, 16, 17521, 8327, 515, 197, 197, 3608, 25, 1392, 78, 676, 85, 16, 17521, 3608, 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 TestStartOrderWatcher(t *testing.T) { db, err := bolt.Open(testDbName, testDbPerms, &bolt.Options{Timeout: testDbTimeout * time.Millisecond}) if err != nil { t.Fatal(err) } defer func() { if err := db.Close(); err != nil { panic(err) } /* if err := os.Remove(testDbName); err != nil { panic(er...
explode_data.jsonl/42235
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1118 }
[ 2830, 3393, 3479, 4431, 47248, 1155, 353, 8840, 836, 8, 341, 20939, 11, 1848, 1669, 31842, 12953, 8623, 7994, 675, 11, 1273, 7994, 3889, 1011, 11, 609, 52433, 22179, 90, 7636, 25, 1273, 7994, 7636, 353, 882, 71482, 3518, 743, 1848, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestHasSufCoins(t *testing.T) { initConfig() addr, err := sdk.AccAddressFromBech32("okexchain18mxjm0knqjpkaxk2zd2jr67pgrd8c0ct0tycvl") require.Nil(t, err) availDecCoins, err := sdk.ParseDecCoins(fmt.Sprintf("%d%s,%d%s", 200000, "btc", 100000, NativeToken)) require.Nil(t, err) availCoins := availDecCoins ...
explode_data.jsonl/61603
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 440 }
[ 2830, 3393, 10281, 50, 1704, 69602, 1155, 353, 8840, 836, 8, 341, 28248, 2648, 741, 53183, 11, 1848, 1669, 45402, 77538, 4286, 3830, 3430, 331, 18, 17, 445, 562, 327, 8819, 16, 23, 18085, 65939, 15, 19095, 80, 73, 20819, 706, 74, 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 TestSumDistanceSymmetry(t *testing.T) { // Generate two sequences at random in parallel seqchan := make(chan dna.Sequence, 2) go func(seq chan dna.Sequence) { seq <- utils.RandSeq(rand.Intn(math.MaxInt16)) }(seqchan) go func(seq chan dna.Sequence) { seq <- utils.RandSeq(rand.Intn(math.MaxInt16)) }(seqcha...
explode_data.jsonl/41093
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 270 }
[ 2830, 3393, 9190, 14778, 27912, 32242, 1155, 353, 8840, 836, 8, 341, 197, 322, 19813, 1378, 23700, 518, 4194, 304, 15279, 198, 78561, 5658, 1669, 1281, 35190, 75334, 63537, 11, 220, 17, 340, 30680, 2915, 34820, 26023, 75334, 63537, 8, 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 TestDatasources_Vault_TokenAuth(t *testing.T) { v := setupDatasourcesVaultTest(t) v.vc.Logical().Write("secret/foo", map[string]interface{}{"value": "bar"}) defer v.vc.Logical().Delete("secret/foo") tok, err := v.tokenCreate("readpol", 5) require.NoError(t, err) o, e, err := cmd(t, "-d", "vault=vault:///se...
explode_data.jsonl/57231
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 583 }
[ 2830, 3393, 47663, 2360, 2334, 945, 1139, 1679, 5087, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 6505, 47663, 2360, 79177, 2271, 1155, 692, 5195, 3133, 66, 5247, 938, 1005, 7985, 445, 20474, 60555, 497, 2415, 14032, 31344, 6257, 4913, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConcurrentUpdate(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 shutdownEtc...
explode_data.jsonl/81136
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 911 }
[ 2830, 3393, 1109, 3231, 4289, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApp01maVendorHndlrRowDisplay(t *testing.T) { var td *TestData_App01maVendor t.Logf("TestVendor.RowDisplay()...\n") td = &TestData_App01maVendor{} td.Setup(t) t.Logf("TestVendorRowShow() - End of Test\n\n\n") }
explode_data.jsonl/78279
{ "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, 2164, 15, 16, 1728, 44691, 39, 303, 19018, 3102, 7020, 1155, 353, 8840, 836, 8, 341, 262, 762, 17941, 688, 353, 83920, 36117, 15, 16, 1728, 44691, 271, 262, 259, 98954, 445, 2271, 44691, 14657, 7020, 368, 30801, 77, 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 TestLogInfo_Obfuscate(t *testing.T) { var config = NewConfig() config.License = "testabcd" actual, err := config.PublicFields() assert.NoError(t, err) actualVal, exists := actual["license_key"] assert.True(t, exists) assert.Equal(t, "<HIDDEN>", actualVal) }
explode_data.jsonl/22927
{ "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, 2201, 1731, 2232, 13233, 25034, 349, 1155, 353, 8840, 836, 8, 341, 2405, 2193, 284, 1532, 2648, 741, 25873, 1214, 1545, 284, 330, 1944, 68644, 1837, 88814, 11, 1848, 1669, 2193, 49139, 8941, 741, 6948, 35699, 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, 1, 1, 1...
1
func TestAddCompleteRemovesEmptyFiles(t *testing.T) { removeTestFiles() storage := getNewStorageManager() log.Printf("Minimum file size is %d", storage.MinFileSize()) log.Printf("Maximum no of files is %d", storage.MaxNoOfFiles()) rand.Seed(time.Now().UnixNano()) for i := 1; i < storage.MaxNoOfFiles()+100; i ...
explode_data.jsonl/16213
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 314 }
[ 2830, 3393, 2212, 12548, 6590, 10088, 3522, 10809, 1155, 353, 8840, 836, 8, 341, 47233, 2271, 10809, 2822, 197, 16172, 1669, 633, 3564, 5793, 2043, 2822, 6725, 19367, 445, 28695, 1034, 1379, 374, 1018, 67, 497, 5819, 17070, 67649, 2398, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRevokedAuthorizationSeek(t *testing.T) { mm := newMockMultichainManager() for i := 1; i < ledgerSize; i++ { l := mm.chains[systemChainID].ledger l.Append(ledger.CreateNextBlock(l, []*cb.Envelope{&cb.Envelope{Payload: []byte(fmt.Sprintf("%d", i))}}, "")) } m := newMockD() defer close(m.recvChan) ds :...
explode_data.jsonl/36261
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 486 }
[ 2830, 3393, 36184, 10823, 18124, 39350, 1155, 353, 8840, 836, 8, 341, 2109, 76, 1669, 501, 11571, 40404, 713, 466, 2043, 741, 2023, 600, 1669, 220, 16, 26, 600, 366, 46933, 1695, 26, 600, 1027, 341, 197, 8810, 1669, 9465, 5329, 1735, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDaoDelReplySetRds(t *testing.T) { convey.Convey("DelReplySetRds", t, func(ctx convey.C) { var ( oid = int64(0) tp = int(0) ) ctx.Convey("When everything goes positive", func(ctx convey.C) { err := d.DelReplySetRds(context.Background(), oid, tp) ctx.Convey("Then err should be nil.", func(ctx...
explode_data.jsonl/21795
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 12197, 16532, 20841, 1649, 49, 5356, 1155, 353, 8840, 836, 8, 341, 37203, 5617, 4801, 5617, 445, 16532, 20841, 1649, 49, 5356, 497, 259, 11, 2915, 7502, 20001, 727, 8, 341, 197, 2405, 2399, 298, 197, 588, 284, 526, 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, 1...
1
func TestWithdrawCryptocurrencyFunds(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() || !canManipulateRealOrders { t.Skip("skipping test, either api keys or canManipulateRealOrders isnt set correctly") } var request = new(withdraw.Request) request.Amount = 5 request.Currency = currency.NewCode("FTT") var ...
explode_data.jsonl/15229
{ "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, 92261, 53367, 77480, 37, 42950, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 1369, 753, 4814, 92876, 6334, 12768, 24898, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestHarvestTriggerGet(t *testing.T) { reply := &ConnectReply{} errorEventConfig := 100 txnEventData := 10000 customEventConfig := 10000 spanEventConfig := 1000 reply.EventHarvestConfig = collector.EventHarvestConfig{ ReportPeriod: 60000, EventConfigs: collector.EventConfigs{ ErrorEventConfig: colle...
explode_data.jsonl/34724
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 296 }
[ 2830, 3393, 26490, 7019, 17939, 1949, 1155, 353, 8840, 836, 8, 1476, 86149, 1669, 609, 14611, 20841, 31483, 18290, 1556, 2648, 1669, 220, 16, 15, 15, 198, 3244, 42967, 65874, 1669, 220, 16, 15, 15, 15, 15, 198, 1444, 1450, 1556, 2648,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestNewEffect_EffectTrustlineAuthorizedToMaintainLiabilities(t *testing.T) { tt := assert.New(t) ctx, _ := test.ContextWithLogBuffer() details := `{ "asset_code": "COP", "asset_issuer": "GDRW375MAYR46ODGF2WGANQC2RRZL7O246DYHHCGWTV2RE7IHE2QUQLD", "asset_type": "credit_alphanum4", "trustor": "GD...
explode_data.jsonl/48246
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 536 }
[ 2830, 3393, 3564, 7738, 2089, 1705, 45548, 1056, 60454, 1249, 66734, 466, 45421, 8456, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 2060, 7121, 1155, 340, 20985, 11, 716, 1669, 1273, 9328, 2354, 2201, 4095, 2822, 2698, 2237, 1669, 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 TestProcessWithDistUpgrade(t *testing.T) { _, f, _, _ := runtime.Caller(0) testDataPath := filepath.Join(filepath.Dir(f)) + "/testdata/DistUpgrade/" // Create a mock datastore. datastore := newMockDatastore() datastore.FctInsertLayer = func(layer database.Layer) error { datastore.layers[layer.Name] = layer...
explode_data.jsonl/9857
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1181 }
[ 2830, 3393, 7423, 2354, 23356, 43861, 1155, 353, 8840, 836, 8, 341, 197, 6878, 282, 11, 8358, 716, 1669, 15592, 727, 13956, 7, 15, 340, 18185, 1043, 1820, 1669, 26054, 22363, 34793, 83757, 955, 593, 488, 3521, 92425, 14953, 380, 43861, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWithStart_ReturnError(t *testing.T) { want := errors.New("my_error") start := func(context.Context, component.Host) error { return want } bp := newBaseProcessor(testFullName, WithStart(start)) assert.Equal(t, want, bp.Start(context.Background(), componenttest.NewNopHost())) }
explode_data.jsonl/4007
{ "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, 2354, 3479, 53316, 1454, 1155, 353, 8840, 836, 8, 341, 50780, 1669, 5975, 7121, 445, 2408, 4096, 1138, 21375, 1669, 2915, 5378, 9328, 11, 3692, 29840, 8, 1465, 314, 470, 1366, 555, 2233, 79, 1669, 501, 3978, 22946, 8623, 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 TestAgent_serviceTokens(t *testing.T) { config := nextConfig() config.ACLToken = "default" l := new(localState) l.Init(config, nil) l.AddService(&structs.NodeService{ ID: "redis", }, "") // Returns default when no token is set if token := l.ServiceToken("redis"); token != "default" { t.Fatalf("bad: %...
explode_data.jsonl/69070
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 239 }
[ 2830, 3393, 16810, 12267, 29300, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 1790, 2648, 741, 25873, 875, 3140, 3323, 284, 330, 2258, 698, 8810, 1669, 501, 18082, 1397, 340, 8810, 26849, 8754, 11, 2092, 692, 8810, 1904, 1860, 2099, 1235,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestEtcdWatchChangesWithBlacklist(t *testing.T) { t.Parallel() for _, table := range etcdSDBlacklistTables { t.Run(table.name, func(t *testing.T) { config := config.NewDefaultEtcdServiceDiscoveryConfig() config.SyncServers.Interval = 100 * time.Millisecond config.ServerTypesBlacklist = table.serverTyp...
explode_data.jsonl/61569
{ "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, 31860, 4385, 14247, 11317, 2354, 14417, 1607, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 8358, 1965, 1669, 2088, 1842, 4385, 50, 3506, 75, 473, 1607, 21670, 341, 197, 3244, 16708, 15761, 2644, 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...
3
func TestParseLocation(t *testing.T) { var err error var location string // invalid locations _, err = parseLocation("https://example.com") assert.NotNil(t, err) assert.Contains(t, err.Error(), "invalid location 'https://example.com': URI schemes are not supported") _, err = parseLocation("john.doe@example.com...
explode_data.jsonl/62222
{ "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, 14463, 4707, 1155, 353, 8840, 836, 8, 341, 2405, 1848, 1465, 198, 2405, 3728, 914, 271, 197, 322, 8318, 10468, 198, 197, 6878, 1848, 284, 4715, 4707, 445, 2428, 1110, 8687, 905, 1138, 6948, 93882, 1155, 11, 1848, 340, 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 TestIntString(t *testing.T) { // Non-escaping result of intstring. s := "" for i := 0; i < 4; i++ { s += string(i+'0') + string(i+'0'+1) } if want := "01122334"; s != want { t.Fatalf("want '%v', got '%v'", want, s) } // Escaping result of intstring. var a [4]string for i := 0; i < 4; i++ { a[i] = s...
explode_data.jsonl/79321
{ "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, 1072, 703, 1155, 353, 8840, 836, 8, 341, 197, 322, 11581, 12, 42480, 1102, 315, 526, 917, 624, 1903, 1669, 8389, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 19, 26, 600, 1027, 341, 197, 1903, 1421, 914, 1956, 6829, 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...
5
func TestExpirationPanic(t *testing.T) { identity3 := []byte("invalidIdentity") msgCryptoService.revokedIdentities[string(identity3)] = struct{}{} assert.Panics(t, func() { NewIdentityMapper(msgCryptoService, identity3, noopPurgeTrigger, msgCryptoService) }) }
explode_data.jsonl/6638
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 66301, 47, 31270, 1155, 353, 8840, 836, 8, 341, 197, 16912, 18, 1669, 3056, 3782, 445, 11808, 18558, 1138, 21169, 58288, 1860, 69373, 10823, 764, 10499, 14032, 86843, 18, 7252, 284, 2036, 6257, 16094, 6948, 1069, 276, 1211, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestYamlToObject(t *testing.T) { obj, err := YamlToObject([]byte(testDeployment)) if err != nil { t.Fatalf("YamlToObj failed: %s", err) } nd, ok := obj.(*appsv1.Deployment) if !ok { t.Fatalf("Fail to assert deployment: %s", err) } if nd.GetName() != "nginx-deployment" { t.Fatalf("YamlToObj failed: w...
explode_data.jsonl/64645
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 292 }
[ 2830, 3393, 56, 9467, 81541, 1155, 353, 8840, 836, 8, 341, 22671, 11, 1848, 1669, 809, 9467, 81541, 10556, 3782, 8623, 75286, 1171, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 56, 9467, 1249, 5261, 4641, 25, 1018, 82, 497, 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, 1, 1, 1...
7
func TestBreakersFallback(t *testing.T) { errDummy := errors.New("any") for i := 0; i < 10000; i++ { err := DoWithFallback("fallback", func() error { return errDummy }, func(err error) error { return nil }) assert.True(t, err == nil || err == errDummy) } verify(t, func() bool { return ErrServiceUnav...
explode_data.jsonl/20900
{ "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, 22524, 388, 87206, 1155, 353, 8840, 836, 8, 341, 9859, 43344, 1669, 5975, 7121, 445, 3767, 1138, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 16, 15, 15, 15, 15, 26, 600, 1027, 341, 197, 9859, 1669, 3155, 2354, 87206, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCFB(t *testing.T) { block, err := aes.NewCipher(commonKey128) if err != nil { t.Error(err) return } plaintext := []byte("this is the plaintext") iv := make([]byte, block.BlockSize()) rand.Reader.Read(iv) cfb := cipher.NewCFBEncrypter(block, iv) ciphertext := make([]byte, len(plaintext)) cfb.XORKe...
explode_data.jsonl/607
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 9650, 33, 1155, 353, 8840, 836, 8, 341, 47996, 11, 1848, 1669, 56575, 7121, 79460, 57802, 1592, 16, 17, 23, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 853, 198, 197, 630, 197, 71223, 1669, 3056, 378...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRocksDBErrorSafeMessage(t *testing.T) { defer leaktest.AfterTest(t)() dir, dirCleanup := testutils.TempDir(t) defer dirCleanup() open := func() (*RocksDB, error) { return NewRocksDB( RocksDBConfig{ Settings: cluster.MakeTestingClusterSettings(), Dir: dir, }, RocksDBCache{}, ) } ...
explode_data.jsonl/36053
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 735 }
[ 2830, 3393, 49, 25183, 3506, 1454, 25663, 2052, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 48532, 11, 5419, 67335, 1669, 1273, 6031, 65009, 6184, 1155, 340, 16867, 5419, 67335, 2822, 52199, 1669, 2915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlockAPI(t *testing.T) { if err := server.OpenTest(); err != nil { t.Fatalf("can't open test server: %v\n", err) } defer server.CloseTest() uuid, _ := initTestRepo() grayscale := makeGrayscale(uuid, t, "grayscale") // construct random blocks of data. numBlockBytes := int32(grayscale.BlockSize().Prod...
explode_data.jsonl/31327
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 686 }
[ 2830, 3393, 4713, 7082, 1155, 353, 8840, 836, 8, 341, 743, 1848, 1669, 3538, 12953, 2271, 2129, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 4814, 944, 1787, 1273, 3538, 25, 1018, 85, 1699, 497, 1848, 340, 197, 532, 16867, 3538, 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...
9
func TestGracefulShutdown(t *testing.T) { server := kubeapiservertesting.StartTestServerOrDie(t, nil, nil, framework.SharedEtcd()) tearDownOnce := sync.Once{} defer tearDownOnce.Do(server.TearDownFn) transport, err := rest.TransportFor(server.ClientConfig) if err != nil { t.Fatalf("unexpected error: %v", err) ...
explode_data.jsonl/67167
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 770 }
[ 2830, 3393, 86543, 1262, 62004, 1155, 353, 8840, 836, 8, 341, 41057, 1669, 80958, 391, 12059, 1621, 59855, 12101, 2271, 5475, 2195, 18175, 1155, 11, 2092, 11, 2092, 11, 12626, 32969, 31860, 4385, 12367, 197, 82892, 12522, 1669, 12811, 779...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSQLite_AddColumns(t *testing.T) { liteRun(t, func(t *liteTest) { usersT := &schema.Table{ Name: "users", Columns: []*schema.Column{ {Name: "id", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "integer"}}, Attrs: []schema.Attr{sqlite.AutoIncrement{}}}, }, } usersT.PrimaryKey = &schema...
explode_data.jsonl/20087
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1027 }
[ 2830, 3393, 81772, 21346, 13965, 1155, 353, 8840, 836, 8, 341, 8810, 632, 6727, 1155, 11, 2915, 1155, 353, 68078, 2271, 8, 341, 197, 90896, 51, 1669, 609, 17349, 18257, 515, 298, 21297, 25, 330, 4218, 756, 298, 197, 13965, 25, 29838, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStoreGet(t *testing.T) { testWithPostgresStoreV2(t, func(s storev2.Interface) { fixture := corev3.FixtureEntityState("foo") ctx := context.Background() req := storev2.NewResourceRequestFromResource(ctx, fixture) req.UsePostgres = true wrapper := WrapEntityState(fixture) // CreateIfNotExists should...
explode_data.jsonl/73382
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 238 }
[ 2830, 3393, 6093, 1949, 1155, 353, 8840, 836, 8, 341, 18185, 2354, 4133, 17818, 6093, 53, 17, 1155, 11, 2915, 1141, 3553, 85, 17, 41065, 8, 341, 197, 1166, 12735, 1669, 6200, 85, 18, 991, 12735, 3030, 1397, 445, 7975, 1138, 197, 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...
4
func TestPartialMap(t *testing.T) { op := func(s string) (int, bool) { a, err := strconv.Atoi(s) return a, err == nil } assertTry(t, gs.Success(1), try.PartialMap(gs.Success("1"), op)) assertTry(t, gs.Failure[int](gs.ErrEmpty), try.PartialMap(gs.Failure[string](gs.ErrEmpty), op), ) }
explode_data.jsonl/23078
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 37314, 2227, 1155, 353, 8840, 836, 8, 341, 39703, 1669, 2915, 1141, 914, 8, 320, 396, 11, 1807, 8, 341, 197, 11323, 11, 1848, 1669, 33317, 67107, 1141, 340, 197, 853, 264, 11, 1848, 621, 2092, 198, 197, 630, 6948, 21453,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetKeyspaceHandler(t *testing.T) { onKeyspaceSetCalled := false var onKeyspaceSet = func(keyspace string) { require.Equal(t, "ks1", keyspace) onKeyspaceSetCalled = true } server, clientConn, cancelFn := createServerAndClient(t, client.NewSetKeyspaceHandler(onKeyspaceSet)) testUseQuery(t, clientConn)...
explode_data.jsonl/42767
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 150 }
[ 2830, 3393, 1649, 8850, 1306, 3050, 1155, 353, 8840, 836, 8, 1476, 24630, 8850, 1306, 1649, 20960, 1669, 895, 198, 2405, 389, 8850, 1306, 1649, 284, 2915, 4857, 8746, 914, 8, 341, 197, 17957, 12808, 1155, 11, 330, 2787, 16, 497, 6894,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetHosts(t *testing.T) { cli := client.NewClientSet(tests.ServiceEndpoint) result, err := cli.V1().Hosts().List(context.TODO()) if err != nil { t.Error(err) return } t.Logf("%+v", result) }
explode_data.jsonl/45738
{ "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, 1949, 9296, 82, 1155, 353, 8840, 836, 8, 341, 86448, 1669, 2943, 7121, 2959, 1649, 8623, 82, 13860, 27380, 340, 9559, 11, 1848, 1669, 21348, 5058, 16, 1005, 9296, 82, 1005, 852, 5378, 90988, 2398, 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 ]
2
func Test_snmpSession_traceLog_disabled(t *testing.T) { config := checkconfig.CheckConfig{ IPAddress: "1.2.3.4", CommunityString: "abc", } var b bytes.Buffer w := bufio.NewWriter(&b) l, err := seelog.LoggerFromWriterWithMinLevelAndFormat(w, seelog.InfoLvl, "[%LEVEL] %FuncShort: %Msg") assert.Nil(t, err...
explode_data.jsonl/59174
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 229 }
[ 2830, 3393, 28022, 1307, 5283, 23575, 2201, 51401, 1155, 353, 8840, 836, 8, 1476, 25873, 1669, 1779, 1676, 10600, 2648, 515, 197, 197, 87976, 25, 981, 330, 16, 13, 17, 13, 18, 13, 19, 756, 197, 197, 33768, 703, 25, 330, 13683, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTypedString(t *testing.T) { db := newTestDB(t, "people") defer closeDB(t, db) type Str string var scanned Str err := db.QueryRow("SELECT|people|name|name=?", "Alice").Scan(&scanned) if err != nil { t.Fatal(err) } expected := Str("Alice") if scanned != expected { t.Errorf("expected %+v, got %+v",...
explode_data.jsonl/16039
{ "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, 44466, 703, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 501, 2271, 3506, 1155, 11, 330, 16069, 1138, 16867, 3265, 3506, 1155, 11, 2927, 692, 13158, 4509, 914, 198, 2405, 47448, 4509, 271, 9859, 1669, 2927, 15685, 3102, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3