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 TestWithConstructor(t *testing.T) { g := gomega.NewGomegaWithT(t) j := New() g.Expect(j.LoadPrivateKey("testdata/private.pem")).Should(gomega.Succeed()) g.Expect(j.LoadPublicKey("testdata/public.pem")).Should(gomega.Succeed()) s, err := j.Sign(jwt.StandardClaims{ ExpiresAt: time.Now().Add(time.Minute).Uni...
explode_data.jsonl/13923
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 593 }
[ 2830, 3393, 2354, 13288, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 32696, 7121, 38, 32696, 2354, 51, 1155, 692, 12428, 1669, 1532, 741, 3174, 81893, 3325, 13969, 75981, 445, 92425, 81001, 49373, 15197, 14996, 3268, 32696, 808, 29264,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestQuote(t *testing.T) { for _, qt := range quoteTests { act := Quote(qt.in) if act != qt.exp { t.Error(pretty.Compare(act, qt.exp)) } } }
explode_data.jsonl/69150
{ "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, 19466, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 38949, 1669, 2088, 12641, 18200, 341, 197, 92699, 1669, 24535, 10583, 83, 1858, 340, 197, 743, 1160, 961, 38949, 13754, 341, 298, 3244, 6141, 1295, 21322, 32377, 59478, 11, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateRequestBody(t *testing.T) { t.Run("raw", func(t *testing.T) { validatePayloads(t, func(tracer *apm.Tracer) { tracer.SetCaptureBody(apm.CaptureBodyAll) tx := tracer.StartTransaction("name", "type") defer tx.End() body := strings.NewReader(strings.Repeat("x", 1025)) req, _ := http.NewR...
explode_data.jsonl/793
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 402 }
[ 2830, 3393, 17926, 33334, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1041, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 7067, 29683, 82, 1155, 11, 2915, 7624, 9584, 353, 391, 76, 8240, 9584, 8, 341, 298, 25583, 9584, 4202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResourceQuotaCollector(t *testing.T) { // Fixed metadata on type and help text. We prepend this to every expected // output so we only have to modify a single place when doing adjustments. const metadata = ` # HELP kube_resourcequota Information about resource quota. # TYPE kube_resourcequota gauge # HEL...
explode_data.jsonl/72063
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2921 }
[ 2830, 3393, 4783, 2183, 6089, 53694, 1155, 353, 8840, 836, 8, 341, 197, 322, 20149, 11160, 389, 943, 323, 1492, 1467, 13, 1205, 73647, 419, 311, 1449, 3601, 198, 197, 322, 2550, 773, 582, 1172, 614, 311, 5602, 264, 3175, 1992, 979, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInterfaceToInt8Downcast(t *testing.T) { var out int8 var ok bool out, ok = InterfaceToInt8Downcast(int(1)) require.True(t, ok) require.Equal(t, int8(1), out) out, ok = InterfaceToInt8Downcast(float32(2)) require.True(t, ok) require.Equal(t, int8(2), out) out, ok = InterfaceToInt8Downcast(float32(2....
explode_data.jsonl/52295
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 365 }
[ 2830, 3393, 5051, 38544, 23, 4454, 3829, 1155, 353, 8840, 836, 8, 341, 2405, 700, 526, 23, 198, 2405, 5394, 1807, 271, 13967, 11, 5394, 284, 20019, 38544, 23, 4454, 3829, 1548, 7, 16, 1171, 17957, 32443, 1155, 11, 5394, 340, 17957, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_makeBoardURL(t *testing.T) { type args struct { board string page int } tests := []struct { name string args args want string }{ {"no page", args{"ezsoft", -1}, "https://www.ptt.cc/bbs/ezsoft/index.html"}, {"page1", args{"ezsoft", 1}, "https://www.ptt.cc/bbs/ezsoft/index1.html"}, } for _,...
explode_data.jsonl/714
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 237 }
[ 2830, 3393, 28230, 11932, 3144, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 59868, 914, 198, 197, 35272, 220, 526, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewAggregatorMixin(t *testing.T) { src := newMockAggregate("1", "foo", 1) updated := newMockAggregate("1", "foo", 2) src.UpdateState(updated) assert.Equal(t, src.Val, updated.Val) }
explode_data.jsonl/48905
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 3564, 9042, 58131, 38456, 1155, 353, 8840, 836, 8, 341, 41144, 1669, 501, 11571, 64580, 445, 16, 497, 330, 7975, 497, 220, 16, 340, 197, 11768, 1669, 501, 11571, 64580, 445, 16, 497, 330, 7975, 497, 220, 17, 692, 41144, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestIterator_FieldNumber(t *testing.T) { message := &testmsg.Packed{ I64: make([]int64, 4000), } data, err := proto.Marshal(message) if err != nil { t.Fatalf("unable to marshal: %v", err) } msg := New(data) if !msg.Next() { t.Fatalf("next is false?") } iter, err := msg.Iterator(nil) if err != nil...
explode_data.jsonl/61789
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 11951, 46272, 2833, 1155, 353, 8840, 836, 8, 341, 24753, 1669, 609, 1944, 3236, 1069, 11191, 515, 197, 24486, 21, 19, 25, 1281, 10556, 396, 21, 19, 11, 220, 19, 15, 15, 15, 1326, 197, 532, 8924, 11, 1848, 1669, 18433, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetObject_NilMsgPayload(t *testing.T) { t.Parallel() ctx := inslogger.TestContext(t) meta := payload.Meta{ Polymorph: uint32(payload.TypeMeta), Payload: nil, } handler := handle.NewGetObject(nil, meta, false) err := handler.Present(ctx, flow.NewFlowMock(t)) require.Error(t, err) }
explode_data.jsonl/61479
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 121 }
[ 2830, 3393, 84540, 1604, 321, 6611, 29683, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20985, 1669, 1640, 9786, 8787, 1972, 1155, 340, 84004, 1669, 7729, 58806, 515, 197, 10025, 337, 1600, 16347, 25, 2622, 18, 17, 26772, 1018...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNginxBasic(t *testing.T) { cli, err := getDockerClient() if err != nil { t.Fatal(err) } resp, err := cli.ContainerCreate(context.Background(), &container.Config{ Image: "busybox", Cmd: []string{"sh"}, Tty: true, Labels: map[string]string{ "interlock.hostname": "test.local", }, }, nil, n...
explode_data.jsonl/1860
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 261 }
[ 2830, 3393, 45, 8163, 14377, 5971, 1155, 353, 8840, 836, 8, 341, 86448, 11, 1848, 1669, 633, 35, 13659, 2959, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 34653, 11, 1848, 1669, 21348, 33672, 4021, 5378, 1904...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestFxVerifyTransferOperationWrongUTXO(t *testing.T) { vm := secp256k1fx.TestVM{ Codec: linearcodec.NewDefault(), Log: logging.NoLog{}, } date := time.Date(2019, time.January, 19, 16, 25, 17, 3, time.UTC) vm.CLK.Set(date) fx := Fx{} if err := fx.Initialize(&vm); err != nil { t.Fatal(err) } tx := &...
explode_data.jsonl/56458
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 437 }
[ 2830, 3393, 81856, 32627, 21970, 8432, 29185, 1381, 55, 46, 1155, 353, 8840, 836, 8, 341, 54879, 1669, 511, 4672, 17, 20, 21, 74, 16, 8298, 8787, 11187, 515, 197, 197, 36913, 25, 13482, 34607, 7121, 3675, 3148, 197, 24201, 25, 256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestEnvoyStatsCompleteAndSuccessful(t *testing.T) { g := NewGomegaWithT(t) stats := "cluster_manager.cds.update_success: 1\nlistener_manager.lds.update_success: 1" server := createAndStartServer(stats) defer server.Close() err := probe.Check() g.Expect(err).NotTo(HaveOccurred()) }
explode_data.jsonl/41344
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 109 }
[ 2830, 3393, 14359, 2253, 16635, 12548, 3036, 36374, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 38, 32696, 2354, 51, 1155, 340, 79659, 1669, 330, 18855, 12144, 520, 5356, 5317, 18632, 25, 220, 16, 1699, 35039, 12144, 13, 71033, 5317...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMessageUnmarshal(t *testing.T) { skipBigEndian(t) tests := []struct { name string b []byte m Message err error }{ { name: "empty", err: errShortMessage, }, { name: "short", b: make([]byte, 15), err: errShortMessage, }, { name: "unaligned", b: make([]byt...
explode_data.jsonl/25584
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 925 }
[ 2830, 3393, 2052, 1806, 27121, 1155, 353, 8840, 836, 8, 341, 1903, 13389, 15636, 43231, 1155, 692, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 2233, 262, 3056, 3782, 198, 197, 2109, 262, 4856, 198, 197, 9859, 220, 1465, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestResponseWriterWithFlusher(t *testing.T) { r := httptest.NewRecorder() w := NewResponseWriter(r) s := "A little copying is better than a little dependency." t.Run("StatusReturnZero", func(t *testing.T) { equal(t, 0, w.Status()) }) t.Run("FlushReturnFalse", func(t *testing.T) { equal(t, false, r.Flus...
explode_data.jsonl/22519
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 2582, 6492, 2354, 46874, 261, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 54320, 70334, 7121, 47023, 741, 6692, 1669, 1532, 2582, 6492, 2601, 340, 1903, 1669, 330, 32, 2632, 31039, 374, 2664, 1091, 264, 2632, 24036, 2217, 3244...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResolveServers(t *testing.T) { tests := []struct { servers Servers results []string }{ { servers: nil, results: nil, }, { servers: Servers{}, results: nil, }, { servers: Servers{"A"}, results: []string{"A"}, }, { servers: Servers{"A", "B"}, results: []string{"A", "B"...
explode_data.jsonl/38859
{ "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, 56808, 78139, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 1903, 18729, 71797, 198, 197, 55497, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 1903, 18729, 25, 2092, 345, 298, 55497, 25, 2092, 345, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestPackerDockerExampleLocal(t *testing.T) { t.Parallel() packerOptions := &packer.Options{ // The path to where the Packer template is located Template: "../examples/packer-docker-example/build.json", // Only build the Docker image for local testing Only: "ubuntu-docker", // Configure retries for i...
explode_data.jsonl/40699
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 570 }
[ 2830, 3393, 47, 9683, 35, 13659, 13314, 7319, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 3223, 9683, 3798, 1669, 609, 4748, 261, 22179, 515, 197, 197, 322, 576, 1815, 311, 1380, 279, 393, 9683, 3811, 374, 7407, 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 TestRecursiveScannerOptions(t *testing.T) { t.Run("When erroring option is passed", ScannerTest(func(t *testing.T) { s, err := NewRecursiveScanner(func(_ *RecursiveScanner) error { return errors.New("dummy error") }) Expect(err).To(HaveOccurred()) Expect(s).To(BeNil()) })) t.Run("When no directorie...
explode_data.jsonl/25347
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 78542, 31002, 3798, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4498, 1465, 287, 2999, 374, 5823, 497, 17170, 2271, 18552, 1155, 353, 8840, 836, 8, 341, 197, 1903, 11, 1848, 1669, 1532, 78542, 31002, 18552, 2490, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEventsByTimeRange(t *testing.T) { event1 := persistedEvent event2 := persistedEvent event2.Origin = event2.Origin + 20 event3 := persistedEvent event3.Origin = event3.Origin + 30 event4 := persistedEvent event4.Origin = event4.Origin + 40 event5 := persistedEvent event5.Origin = event5.Origin + 50 d...
explode_data.jsonl/54249
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 970 }
[ 2830, 3393, 7900, 1359, 1462, 6046, 1155, 353, 8840, 836, 8, 341, 28302, 16, 1669, 52995, 1556, 198, 28302, 17, 1669, 52995, 1556, 198, 28302, 17, 13, 13298, 284, 1538, 17, 13, 13298, 488, 220, 17, 15, 198, 28302, 18, 1669, 52995, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRunMigratorMigrationFinishesUp(t *testing.T) { store := NewMockStoreIface() ticker := glock.NewMockTicker(time.Second) migrator := NewMockMigrator() migrator.ProgressFunc.PushReturn(0.8, nil) // check migrator.ProgressFunc.PushReturn(0.9, nil) // after up migrator.ProgressFunc.SetDefaultRetu...
explode_data.jsonl/11534
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 315 }
[ 2830, 3393, 6727, 44, 5233, 850, 20168, 9134, 20527, 2324, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 1532, 11571, 6093, 40, 1564, 741, 3244, 5215, 1669, 342, 1023, 7121, 11571, 87278, 9730, 32435, 692, 2109, 5233, 850, 1669, 1532, 1157...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCryptocurrencyParseAndCheck(t *testing.T) { for i, v := range testVectors { typ, _, err := CryptocurrencyParseAndCheck(v.address) if typ != v.wantedType { t.Fatalf("Address %s (%d): got wrong CryptocurrencyTyp: %v != %v (%v)", v.address, i, typ, v.wantedType, err) } } }
explode_data.jsonl/21966
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 118 }
[ 2830, 3393, 53367, 77480, 14463, 3036, 3973, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 348, 1669, 2088, 1273, 84744, 341, 197, 25314, 11, 8358, 1848, 1669, 37447, 77480, 14463, 3036, 3973, 3747, 13792, 340, 197, 743, 3582, 961, 348, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCreateDisallowedOtherClaim(t *testing.T) { b, storage := getTestBackend(t) role := "tester" err := writeRole(b, storage, role, role+".example.com", map[string]interface{}{"sub": "not allowed"}, map[string]interface{}{}) if err == nil { t.Fatalf("Create role should have failed") } err = writeRole(b, ...
explode_data.jsonl/1315
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 303 }
[ 2830, 3393, 4021, 4839, 20967, 11409, 45544, 1155, 353, 8840, 836, 8, 341, 2233, 11, 5819, 1669, 633, 2271, 29699, 1155, 692, 197, 5778, 1669, 330, 73358, 1837, 9859, 1669, 3270, 9030, 1883, 11, 5819, 11, 3476, 11, 3476, 41449, 8687, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHashingAlgorithm(t *testing.T) { cc := &ChannelConfig{protos: &ChannelProtos{HashingAlgorithm: &cb.HashingAlgorithm{}}} assert.Error(t, cc.validateHashingAlgorithm(), "Must supply hashing algorithm") cc = &ChannelConfig{protos: &ChannelProtos{HashingAlgorithm: &cb.HashingAlgorithm{Name: "MD5"}}} assert.Er...
explode_data.jsonl/30622
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 363 }
[ 2830, 3393, 6370, 287, 27847, 1155, 353, 8840, 836, 8, 341, 63517, 1669, 609, 9629, 2648, 90, 4391, 436, 25, 609, 9629, 12423, 436, 90, 6370, 287, 27847, 25, 609, 7221, 15103, 287, 27847, 90, 3417, 532, 6948, 6141, 1155, 11, 12527, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetConcernedFiles(t *testing.T) { data := githubFakes.FakeRepoData() actualConcernMap := GetConcernedFiles(data, test.ProjDir()) t.Logf("concerned files for PR %v:%v", data.Pr, actualConcernMap) expectedConcerns := test.MakeStringSet() for _, fileName := range []string{ "common.go", "onlySrcChange.go...
explode_data.jsonl/11550
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 275 }
[ 2830, 3393, 1949, 62142, 291, 10809, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 31004, 37, 2050, 991, 726, 25243, 1043, 741, 88814, 62142, 2227, 1669, 2126, 62142, 291, 10809, 2592, 11, 1273, 7763, 73, 6184, 2398, 3244, 98954, 445, 443, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func Test_NewResourceGroup(t *testing.T) { g := NewGomegaWithT(t) ctx := context.Background() testContext, err := testContext.ForTest(t) g.Expect(err).ToNot(HaveOccurred()) resourceGroup := testContext.NewTestResourceGroup() resolved := genruntime.ConvertToARMResolvedDetails{ Name: resourceGroup...
explode_data.jsonl/3277
{ "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, 39582, 4783, 2808, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 38, 32696, 2354, 51, 1155, 340, 20985, 1669, 2266, 19047, 2822, 18185, 1972, 11, 1848, 1669, 1273, 1972, 26676, 2271, 1155, 340, 3174, 81893, 3964, 568, 1249...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIntArray_Shuffle(t *testing.T) { gtest.C(t, func(t *gtest.T) { a1 := []int{0, 1, 2, 3, 4, 5, 6} array1 := garray.NewIntArrayFrom(a1) t.Assert(array1.Shuffle().Len(), 7) }) }
explode_data.jsonl/47611
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 95338, 36578, 13208, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 11323, 16, 1669, 3056, 396, 90, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 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 TestGetActiveOrders(t *testing.T) { p.SetDefaults() TestSetup(t) var getOrdersRequest = exchange.GetOrdersRequest{ OrderType: exchange.AnyOrderType, } _, err := p.GetActiveOrders(&getOrdersRequest) if areTestAPIKeysSet() && err != nil { t.Errorf("Could not get open orders: %s", err) } else if !areTest...
explode_data.jsonl/23569
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 1949, 5728, 24898, 1155, 353, 8840, 836, 8, 341, 3223, 4202, 16273, 741, 73866, 21821, 1155, 692, 2405, 633, 24898, 1900, 284, 9289, 2234, 24898, 1900, 515, 197, 197, 4431, 929, 25, 9289, 13311, 4431, 929, 345, 197, 630, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestIntn(t *testing.T) { ctx := context.Background() seed := "testing" newCtx := WithSeed(ctx, seed) r := Intn(newCtx, 5) if r != 2 { t.Errorf("Failed to get expected 'random' result from int: got %d instead of 2", r) } }
explode_data.jsonl/28154
{ "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, 1072, 77, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 197, 22602, 1669, 330, 8840, 1837, 8638, 23684, 1669, 3085, 41471, 7502, 11, 10320, 692, 7000, 1669, 1333, 77, 1755, 23684, 11, 220, 20, 692, 743, 435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWalletGetDefault(t *testing.T) { app, mockApi, buffer, done := NewMockAppWithFullAPI(t, WithCategory("wallet", walletGetDefault)) defer done() ctx, cancel := context.WithCancel(context.Background()) defer cancel() addr, err := address.NewFromString("t0123") assert.NoError(t, err) mockApi.EXPECT().Wal...
explode_data.jsonl/8253
{ "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, 38259, 1949, 3675, 1155, 353, 8840, 836, 8, 341, 28236, 11, 7860, 6563, 11, 4147, 11, 2814, 1669, 1532, 11571, 2164, 2354, 9432, 7082, 1155, 11, 3085, 6746, 445, 35735, 497, 15085, 1949, 3675, 1171, 16867, 2814, 2822, 20985,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_mul(t *testing.T) { numA, numB, expectedResult := 4, 8, 32 result := mul(numA, numB) if result != expectedResult { t.Fatalf("Mul error: expected %d, but got %d", expectedResult, result) } }
explode_data.jsonl/22788
{ "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, 24944, 1155, 353, 8840, 836, 8, 341, 22431, 32, 11, 1629, 33, 11, 81441, 1669, 220, 19, 11, 220, 23, 11, 220, 18, 17, 198, 9559, 1669, 15602, 8068, 32, 11, 1629, 33, 340, 743, 1102, 961, 81441, 341, 197, 3244, 30762, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCancelRetry(t *testing.T) { assert := internal.NewAssert(t, "TestCancelRetry") ctx, cancel := context.WithCancel(context.TODO()) var number int increaseNumber := func() error { number++ if number > 3 { cancel() } return errors.New("error occurs") } err := Retry(increaseNumber, RetryDuratio...
explode_data.jsonl/30741
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 163 }
[ 2830, 3393, 9269, 51560, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 5306, 7121, 8534, 1155, 11, 330, 2271, 9269, 51560, 5130, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 90988, 2398, 2405, 1372, 526, 198, 17430, 19947, 2833, 1669, 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...
2
func TestStrToUInt16(t *testing.T) { tests := []struct { flag []string expected []uint16 expected_error bool }{ { // Happy case flag: []string{"TLS_RSA_WITH_RC4_128_SHA", "TLS_RSA_WITH_AES_128_CBC_SHA", "TLS_ECDHE_RSA_WITH_RC4_128_SHA", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA"}, ...
explode_data.jsonl/36380
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 895 }
[ 2830, 3393, 2580, 1249, 18777, 16, 21, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 30589, 1843, 3056, 917, 198, 197, 42400, 981, 3056, 2496, 16, 21, 198, 197, 42400, 4096, 1807, 198, 197, 59403, 197, 197, 515, 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...
5
func TestVarStringWire(t *testing.T) { pver := ProtocolVersion // str256 is a string that takes a 2-byte varint to encode. str256 := strings.Repeat("test", 64) tests := []struct { in string // String to encode out string // String to decoded value buf []byte // Wire encoding pver uint32 // Protocol ve...
explode_data.jsonl/15300
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 560 }
[ 2830, 3393, 3962, 703, 37845, 1155, 353, 8840, 836, 8, 341, 3223, 423, 1669, 24572, 5637, 271, 197, 322, 607, 17, 20, 21, 374, 264, 914, 429, 4990, 264, 220, 17, 53952, 762, 396, 311, 16164, 624, 11355, 17, 20, 21, 1669, 9069, 281...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAsyncDeleteRequest(t *testing.T) { t.Log("Sending DELETE async request... (expected http code: 200)") req := NewRequest() ch := make(chan *AsyncResponse) for i := 0; i <= 100; i++ { req.AsyncDelete("http://httpbin.org/delete", ch) } for i := 0; i <= 100; i++ { aRes := <-ch if aRes.Err != nil { ...
explode_data.jsonl/74149
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 6525, 6435, 1900, 1155, 353, 8840, 836, 8, 341, 3244, 5247, 445, 49282, 17197, 3312, 1681, 1112, 320, 7325, 1758, 2038, 25, 220, 17, 15, 15, 95377, 24395, 1669, 1532, 1900, 741, 23049, 1669, 1281, 35190, 353, 6525, 2582, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestValidateCognitoIdentityPoolName(t *testing.T) { validValues := []string{ "123", "1 2 3", "foo", "foo bar", "foo_bar", "1foo 2bar 3", } for _, s := range validValues { _, errors := validateCognitoIdentityPoolName(s, "identity_pool_name") if len(errors) > 0 { t.Fatalf("%q should be a valid...
explode_data.jsonl/78621
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 298 }
[ 2830, 3393, 17926, 34, 63441, 18558, 10551, 675, 1155, 353, 8840, 836, 8, 341, 56322, 6227, 1669, 3056, 917, 515, 197, 197, 1, 16, 17, 18, 756, 197, 197, 1, 16, 220, 17, 220, 18, 756, 197, 197, 1, 7975, 756, 197, 197, 1, 7975, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProxyManager(t *testing.T) { Params.Init() etcdCli, err := etcd.GetEtcdClient(&Params.BaseParams) assert.Nil(t, err) defer etcdCli.Close() ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() sessKey := path.Join(Params.BaseParams.MetaRootPath, sessionutil.DefaultServ...
explode_data.jsonl/23589
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 835 }
[ 2830, 3393, 16219, 2043, 1155, 353, 8840, 836, 8, 341, 197, 4870, 26849, 2822, 197, 295, 4385, 87014, 11, 1848, 1669, 1842, 4385, 2234, 31860, 4385, 2959, 2099, 4870, 13018, 4870, 340, 6948, 59678, 1155, 11, 1848, 340, 16867, 1842, 4385...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSelectByGVK(t *testing.T) { type testCase struct { description string in Gvk filter *Gvk expected bool } testCases := []testCase{ { description: "nil filter", in: Gvk{}, filter: nil, expected: true, }, { description: "gvk matches", in: Gvk{ ...
explode_data.jsonl/39019
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1002 }
[ 2830, 3393, 3379, 1359, 39718, 42, 1155, 353, 8840, 836, 8, 341, 13158, 54452, 2036, 341, 197, 42407, 914, 198, 197, 17430, 688, 479, 48363, 198, 197, 50108, 414, 353, 38, 48363, 198, 197, 42400, 262, 1807, 198, 197, 532, 18185, 37302...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_MostBuffer(t *testing.T) { t.Skip() ori := make([]byte, 16*1024) buffers := make([]*Buffer, 0) for i := 0; i < 1024*1024; i++ { t.Logf("No.%d buffer", i) io.ReadFull(rand.Reader, ori) buf := FromBytes(ori) buffers = append(buffers, buf) } t.Logf("total %d buffers", len(buffers)) }
explode_data.jsonl/49450
{ "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, 1245, 535, 4095, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 741, 197, 13601, 1669, 1281, 10556, 3782, 11, 220, 16, 21, 9, 16, 15, 17, 19, 340, 2233, 20342, 1669, 1281, 85288, 4095, 11, 220, 15, 692, 2023, 600, 1669, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestUnresolvedIntentQueue(t *testing.T) { defer leaktest.AfterTest(t)() uiq := makeUnresolvedIntentQueue() // Test empty queue. require.Equal(t, 0, uiq.Len()) require.Nil(t, uiq.Oldest()) require.Nil(t, uiq.Before(hlc.MinTimestamp)) require.Nil(t, uiq.Before(hlc.MaxTimestamp)) // Increment a non-existent...
explode_data.jsonl/2007
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2410 }
[ 2830, 3393, 1806, 39747, 11536, 7554, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 37278, 80, 1669, 1281, 1806, 39747, 11536, 7554, 2822, 197, 322, 3393, 4287, 7177, 624, 17957, 12808, 1155, 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...
1
func TestKernelMemoryLimit(t *testing.T) { c, err := NewContainer(ContainerName) if err != nil { t.Errorf(err.Error()) } if _, err := c.KernelMemoryLimit(); err != nil { t.Errorf(err.Error()) } }
explode_data.jsonl/2784
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 26343, 10642, 16527, 1155, 353, 8840, 836, 8, 341, 1444, 11, 1848, 1669, 1532, 4502, 75145, 675, 340, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 3964, 6141, 2398, 197, 630, 743, 8358, 1848, 1669, 272, 11352, 5454, 10642, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
3
func TestSubsegmentDataRaceWithContextCancel(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) ctx, seg := BeginSegment(ctx, "TestSegment") wg := sync.WaitGroup{} for i := 0; i < 4; i++ { if i!=3{ wg.Add(1) } go func(i int) { if i!=3{ time.Sleep(1) defer wg.Done() } ...
explode_data.jsonl/76223
{ "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, 3136, 23169, 1043, 55991, 91101, 9269, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 20985, 11, 4810, 1669, 18597, 21086, 7502, 11, 330, 2271, 21086, 5130, 72079, 1669, 12811, 28384...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseNameNS(t *testing.T) { tests := []struct { title string input string ns string name string expErr bool }{ {"empty string", "", "", "", true}, {"demo", "demo", "", "", true}, {"kube-system", "kube-system", "", "", true}, {"default/kube-system", "default/kube-system", "default", ...
explode_data.jsonl/5381
{ "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, 14463, 675, 2448, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 24751, 220, 914, 198, 197, 22427, 220, 914, 198, 197, 84041, 257, 914, 198, 197, 11609, 256, 914, 198, 197, 48558, 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...
6
func TestDeleteWithAssociations(t *testing.T) { user := GetUser("delete_with_associations", Config{Account: true, Pets: 2, Toys: 4, Company: true, Manager: true, Team: 1, Languages: 1, Friends: 1}) if err := DB.Create(user).Error; err != nil { t.Fatalf("failed to create user, got error %v", err) } if err := DB....
explode_data.jsonl/31681
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 397 }
[ 2830, 3393, 6435, 2354, 29815, 804, 1155, 353, 8840, 836, 8, 341, 19060, 1669, 85937, 445, 4542, 6615, 58665, 804, 497, 5532, 90, 7365, 25, 830, 11, 35886, 25, 220, 17, 11, 48381, 25, 220, 19, 11, 8188, 25, 830, 11, 10567, 25, 830...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRWPublish(t *testing.T) { var rw = &testReadWriter{ C: make(chan []byte), } var b = NewRW(rw, rw, cb) go func() { err := b.Publish("foo", []byte("[\"bar\"]")) assert.NoError(t, err) }() expected, err := json.Marshal(&IOPacket{ Event: "foo", Data: []byte("[\"bar\"]"), }) assert.NoError(t, e...
explode_data.jsonl/31838
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 49, 25674, 2538, 1155, 353, 8840, 836, 8, 341, 2405, 25991, 284, 609, 1944, 4418, 6492, 515, 197, 6258, 25, 1281, 35190, 3056, 3782, 1326, 197, 532, 2405, 293, 284, 1532, 56368, 2601, 86, 11, 25991, 11, 9858, 692, 30680, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestWKT(t *testing.T) { var g = goblin.Goblin(t) var areaA, areaB = 31263.0267879, 30875.6418663 var wkta = "LINESTRING ( 280 320, 300 360, 280 420, 340 460, 440 440, 440 500, 480 500, 560 400, 520 360, 620 380, 619.9847625162381 453.03751576722357, 680 400, 740 500 )" var wktb = "LINESTRING ( 280 320, 300 360...
explode_data.jsonl/80359
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 328 }
[ 2830, 3393, 54, 33539, 1155, 353, 8840, 836, 8, 341, 2405, 342, 284, 342, 47061, 1224, 47061, 1155, 340, 2405, 3082, 32, 11, 3082, 33, 284, 220, 18, 16, 17, 21, 18, 13, 15, 17, 21, 22, 23, 22, 24, 11, 220, 18, 15, 23, 22, 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 TestClearReferencedBytesWhenClearRefsMissing(t *testing.T) { //overwrite package variable clearRefsFilePathPattern = "testdata/clear_refs%d" pids := []int{10} err := clearReferencedBytes(pids, 0, 1) assert.Nil(t, err) }
explode_data.jsonl/43793
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 87 }
[ 2830, 3393, 14008, 47447, 5767, 7078, 4498, 14008, 82807, 25080, 1155, 353, 8840, 836, 8, 341, 197, 322, 64915, 6328, 3890, 198, 40408, 82807, 19090, 15760, 284, 330, 92425, 2899, 1547, 60638, 14841, 1837, 3223, 3365, 1669, 3056, 396, 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 TestCaseInsensitiveMoveFile(t *testing.T) { ctx := context.Background() r := fstest.NewRun(t) defer r.Finalise() if !r.Fremote.Features().CaseInsensitive { return } file1 := r.WriteFile("file1", "file1 contents", t1) fstest.CheckItems(t, r.Flocal, file1) file2 := file1 file2.Path = "sub/file2" err :...
explode_data.jsonl/51940
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 425 }
[ 2830, 30573, 75293, 9860, 1703, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 7000, 1669, 48434, 477, 7121, 6727, 1155, 340, 16867, 435, 991, 977, 1064, 741, 743, 753, 81, 991, 18147, 73257, 1005, 4207, 75293, 341, 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 TestOracleFulfillmentFunctionID20190123(t *testing.T) { assert.Equal(t, "0xeea57e70", models.OracleFulfillmentFunctionID20190123) }
explode_data.jsonl/67473
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 53 }
[ 2830, 3393, 48663, 37, 86516, 478, 5152, 915, 17, 15, 16, 24, 15, 16, 17, 18, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 330, 15, 50138, 64, 20, 22, 68, 22, 15, 497, 4119, 13, 48663, 37, 86516, 478, 5152, 915, 17, 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
func TestRouterNegative(t *testing.T) { r := newRouter() mockServer := httptest.NewServer(r) resp, err := http.Post(mockServer.URL+"/", "", nil) if err != nil { t.Fatal(err) } // We want our status to be 405 (method not allowed) if resp.StatusCode != http.StatusMethodNotAllowed { t.Errorf("Status should b...
explode_data.jsonl/10028
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 148 }
[ 2830, 3393, 9523, 38489, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 501, 9523, 2822, 77333, 5475, 1669, 54320, 70334, 7121, 5475, 2601, 692, 34653, 11, 1848, 1669, 1758, 23442, 30389, 5475, 20893, 27569, 497, 7342, 2092, 692, 743, 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...
3
func TestOption_WithParam(t *testing.T) { client, err := NewClient("test", "http://httpbin.org/") if err != nil { t.Fatal(err) } v := "smallfish" resp := &respCarrier{} err = client.Get(resp, "/get", WithParam("username", v)) if err != nil { t.Fatal(err) } t.Log(resp.String()) n := strings.Index(resp.St...
explode_data.jsonl/68694
{ "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, 5341, 62, 2354, 2001, 1155, 353, 8840, 836, 8, 341, 25291, 11, 1848, 1669, 1532, 2959, 445, 1944, 497, 330, 1254, 1110, 1254, 6863, 2659, 53006, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 5195, 1669,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestSubscribeStreamHandleResetError(t *testing.T) { subscription := subscriptionPartition{"projects/123456/locations/us-central1-b/subscriptions/my-sub", 0} msg := seqMsgWithOffsetAndSize(67, 100) verifiers := test.NewVerifiers(t) stream := test.NewRPCVerifier(t) stream.Push(initSubReqCommit(subscription), i...
explode_data.jsonl/31645
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 369 }
[ 2830, 3393, 28573, 3027, 6999, 14828, 1454, 1155, 353, 8840, 836, 8, 341, 28624, 12124, 1669, 15142, 49978, 4913, 17161, 14, 16, 17, 18, 19, 20, 21, 14, 31309, 62431, 84081, 16, 1455, 37885, 29966, 34198, 17967, 497, 220, 15, 532, 211...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetContainer(t *testing.T) { t.Parallel() a := db.Container{BlueprintID: "4567"} b := db.Container{BlueprintID: "432"} res, err := GetContainer([]db.Container{a, b}, "4567") assert.Nil(t, err) assert.Equal(t, a, res) res, err = GetContainer([]db.Container{a, b}, "456") assert.Nil(t, err) assert.Equ...
explode_data.jsonl/18208
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 366 }
[ 2830, 3393, 1949, 4502, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 11323, 1669, 2927, 33672, 90, 16203, 915, 25, 330, 19, 20, 21, 22, 16707, 2233, 1669, 2927, 33672, 90, 16203, 915, 25, 330, 19, 18, 17, 63159, 10202, 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 TestSNSTopicSubscriptionFunction(t *testing.T) { if testing.Short() { t.Skip("skipping test in short mode") } tf := ` resource "aws_sns_topic_subscription" "http" { endpoint = "some-dummy-endpoint" protocol = "http" topic_arn = "aws_sns_topic.topic.arn" } ` res...
explode_data.jsonl/27439
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 348 }
[ 2830, 3393, 18966, 784, 24810, 33402, 5152, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 304, 2805, 3856, 1138, 197, 630, 3244, 69, 1669, 22074, 286, 5101, 330, 8635, 643, 4412, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewFromFile(t *testing.T) { got, err := NewFromFile("./test_data/test.wf.json") if err != nil { t.Fatal(err) } wd, err := os.Getwd() if err != nil { t.Fatal(err) } want := New() // These are difficult to validate and irrelevant, so we cheat. want.id = got.ID() want.Cancel = got.Cancel want.cle...
explode_data.jsonl/8050
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1834 }
[ 2830, 3393, 3564, 43633, 1155, 353, 8840, 836, 8, 341, 3174, 354, 11, 1848, 1669, 1532, 43633, 13988, 1944, 1769, 12697, 1418, 69, 4323, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 197, 6377, 11, 1848, 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...
5
func TestMessage(t *testing.T) { m := NewMessage() m.SetAddressHeader("From", "from@example.com", "Señor From") m.SetHeader("To", m.FormatAddress("to@example.com", "Señor To"), "tobis@example.com") m.SetAddressHeader("Cc", "cc@example.com", "A, B") m.SetAddressHeader("X-To", "ccbis@example.com", "à, b") m.SetDate...
explode_data.jsonl/31569
{ "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, 2052, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1532, 2052, 741, 2109, 4202, 4286, 4047, 445, 3830, 497, 330, 1499, 35487, 905, 497, 330, 1514, 5653, 269, 5542, 1138, 2109, 4202, 4047, 445, 1249, 497, 296, 9978, 4286, 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...
1
func TestEngine_CreateCursor_Ascending(t *testing.T) { t.Parallel() for _, index := range tsdb.RegisteredIndexes() { t.Run(index, func(t *testing.T) { e := MustOpenEngine(index) defer e.Close() e.MeasurementFields([]byte("cpu")).CreateFieldIfNotExists([]byte("value"), influxql.Float) e.CreateSeriesIf...
explode_data.jsonl/28099
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 726 }
[ 2830, 3393, 4571, 34325, 14543, 1566, 2388, 2459, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2023, 8358, 1922, 1669, 2088, 10591, 1999, 19983, 291, 62229, 368, 341, 197, 3244, 16708, 7195, 11, 2915, 1155, 353, 8840, 836, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestDownloadSkipObject(t *testing.T) { var ( proxyURL = tutils.RandomProxyURL(t) bck = cmn.Bck{ Name: cos.RandString(10), Provider: cmn.ProviderAIS, } objName = cos.RandString(10) link = "https://storage.googleapis.com/minikube/iso/minikube-v0.23.2.iso.sha256" expectedSize int64...
explode_data.jsonl/70393
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 342 }
[ 2830, 3393, 11377, 35134, 1190, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 197, 22803, 3144, 284, 259, 6031, 26709, 16219, 3144, 1155, 340, 197, 2233, 377, 414, 284, 9961, 77, 1785, 377, 515, 298, 21297, 25, 257, 7960, 2013, 437, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMaxExecDepth(t *testing.T) { tmpl := Must(New("tmpl").Parse(`{{template "tmpl" .}}`)) err := tmpl.Execute(ioutil.Discard, nil) got := "<nil>" if err != nil { got = err.Error() } const want = "exceeded maximum template depth" if !strings.Contains(got, want) { t.Errorf("got error %q; want %q", got, wa...
explode_data.jsonl/41534
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 138 }
[ 2830, 3393, 5974, 10216, 19776, 1155, 353, 8840, 836, 8, 341, 3244, 54010, 1669, 15465, 35063, 445, 71359, 1827, 14463, 5809, 2979, 4214, 330, 71359, 1, 659, 3417, 63, 1171, 9859, 1669, 79839, 13827, 1956, 30158, 909, 47560, 11, 2092, 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...
3
func TestPullListComments(t *testing.T) { defer gock.Off() gock.New("https://gitlab.com"). Get("/api/v4/projects/diaspora/diaspora/merge_requests/1/notes"). MatchParam("page", "1"). MatchParam("per_page", "30"). Reply(200). Type("application/json"). SetHeaders(mockHeaders). SetHeaders(mockPageHeaders)....
explode_data.jsonl/78658
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 358 }
[ 2830, 3393, 36068, 852, 17373, 1155, 353, 8840, 836, 8, 341, 16867, 728, 377, 13, 4596, 2822, 3174, 1176, 7121, 445, 2428, 1110, 12882, 14380, 905, 38609, 197, 37654, 4283, 2068, 5457, 19, 39606, 3446, 3473, 70664, 3446, 3473, 70664, 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...
3
func TestNodeAddress(t *testing.T) { node := testSetup() if node.Address() != testNodeAddress { t.Errorf("Expected address: %s, found: %s", testNodeAddress, node.Address()) } }
explode_data.jsonl/23542
{ "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, 1955, 4286, 1155, 353, 8840, 836, 8, 341, 20831, 1669, 1273, 21821, 741, 743, 2436, 26979, 368, 961, 1273, 1955, 4286, 341, 197, 3244, 13080, 445, 18896, 2621, 25, 1018, 82, 11, 1730, 25, 1018, 82, 497, 1273, 1955, 4286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBasicModelWithoutResources(t *testing.T) { e, _ := NewEnforcer("examples/basic_without_resources_model.conf", "examples/basic_without_resources_policy.csv") testEnforceWithoutUsers(t, e, "alice", "read", true) testEnforceWithoutUsers(t, e, "alice", "write", false) testEnforceWithoutUsers(t, e, "bob", "rea...
explode_data.jsonl/57120
{ "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, 15944, 1712, 26040, 11277, 1155, 353, 8840, 836, 8, 341, 7727, 11, 716, 1669, 1532, 1702, 82010, 445, 51668, 77909, 39904, 35569, 5047, 13937, 497, 330, 51668, 77909, 39904, 35569, 22773, 11219, 5130, 18185, 1702, 8833, 26040, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_perEncodingE2SmKpmIndicationHeader(t *testing.T) { ih, err := createE2SmKpmIndicationHeader() assert.NilError(t, err) per, err := encoder.PerEncodeE2SmKpmIndicationHeader(ih) assert.NilError(t, err) t.Logf("E2SM-KPM-IndicationHeader PER\n%v", hex.Dump(per)) result, err := encoder.PerDecodeE2SmKpmIndi...
explode_data.jsonl/70692
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 916 }
[ 2830, 3393, 5678, 14690, 36, 17, 10673, 42, 5187, 1425, 20285, 4047, 1155, 353, 8840, 836, 8, 1476, 197, 6996, 11, 1848, 1669, 1855, 36, 17, 10673, 42, 5187, 1425, 20285, 4047, 741, 6948, 59678, 1454, 1155, 11, 1848, 692, 197, 712, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGameRuntime(t *testing.T) { t.Parallel() testMatchRuntime := &TestMatchRuntime{ T: t, Game: &surrenderGame{}, Match: protocol.Match{NumberOfPlayersRequired: 2}, PlayersName: []string{"foo", "bar"}, } SetupTestMatchRuntime(t, testMatchRuntime) defer testMatchRuntime.Stop() ...
explode_data.jsonl/44146
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 435 }
[ 2830, 3393, 4868, 15123, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18185, 8331, 15123, 1669, 609, 2271, 8331, 15123, 515, 197, 10261, 25, 1843, 259, 345, 197, 40944, 25, 286, 609, 82, 843, 900, 4868, 38837, 197, 197, 8331...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestConfigErrorSubmatchGroupMissing(t *testing.T) { testConfig := []byte(`metrics: - name: submatch event_matcher: - key: Message expr: Normal labels: volume: Message[1] `) _, err := NewConfig(bytes.NewBuffer(testConfig)) require.EqualError(t, err, "Configuration for metric 'submatch' invalid: Mat...
explode_data.jsonl/36672
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 127 }
[ 2830, 3393, 2648, 1454, 3136, 6347, 2808, 25080, 1155, 353, 8840, 836, 8, 341, 18185, 2648, 1669, 3056, 3782, 5809, 43262, 510, 12, 829, 25, 1186, 6347, 198, 220, 1538, 10708, 261, 510, 220, 481, 1376, 25, 4856, 198, 262, 15169, 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 TestK8SServiceEnvironmentConfigMapAddsEnvVarsToPod(t *testing.T) { t.Parallel() deployment := renderK8SServiceDeploymentWithSetValues( t, map[string]string{ "configMaps.dbsettings.as": "environment", "configMaps.dbsettings.items.host.envVarName": "DB_HOST", "configMaps.dbsettings...
explode_data.jsonl/59755
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 641 }
[ 2830, 3393, 42, 23, 1220, 1017, 12723, 2648, 2227, 72111, 14359, 28305, 1249, 23527, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 82213, 1669, 3141, 42, 23, 1220, 1017, 75286, 2354, 1649, 6227, 1006, 197, 3244, 345, 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 TestNonTLSListener(t *testing.T) { rh, cc, done := setup(t) defer done() // assert that without any ingress objects registered // there are no active listeners assertEqual(t, &v2.DiscoveryResponse{ VersionInfo: "0", Resources: resources(t, staticListener(), ), TypeUrl: listenerType, Nonce: "0"...
explode_data.jsonl/22817
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1115 }
[ 2830, 3393, 8121, 45439, 2743, 1155, 353, 8840, 836, 8, 341, 7000, 71, 11, 12527, 11, 2814, 1669, 6505, 1155, 340, 16867, 2814, 2822, 197, 322, 2060, 429, 2041, 894, 78559, 6171, 9681, 198, 197, 322, 1052, 525, 902, 4541, 23562, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestConverterMapStructWithSubFieldsReqToOpt(t *testing.T) { fieldMap := make(map[string]codegen.FieldMapperEntry) fieldMap["Three.One"] = codegen.FieldMapperEntry{ QualifiedName: "Three.Two", Override: true, } fieldMap["Four.Two"] = codegen.FieldMapperEntry{ QualifiedName: "Four.One", Override: ...
explode_data.jsonl/62081
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 553 }
[ 2830, 3393, 14920, 2227, 9422, 2354, 3136, 8941, 27234, 1249, 21367, 1155, 353, 8840, 836, 8, 341, 39250, 2227, 1669, 1281, 9147, 14032, 60, 95859, 17087, 10989, 5874, 340, 39250, 2227, 1183, 19641, 37067, 1341, 284, 2038, 4370, 17087, 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 TestLog_pipelinerun_only_one(t *testing.T) { version := "v1alpha1" var ( pipelineName = "pipeline1" prName = "pr1" ns = "namespaces" taskName = "task1" ) namespaces := []*corev1.Namespace{ { ObjectMeta: metav1.ObjectMeta{ Name: ns, }, }, } pipelines := []*v1alpha1....
explode_data.jsonl/14867
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 776 }
[ 2830, 3393, 2201, 620, 81079, 10453, 359, 18410, 11667, 1155, 353, 8840, 836, 8, 341, 74954, 1669, 330, 85, 16, 7141, 16, 698, 2405, 2399, 197, 3223, 8790, 675, 284, 330, 51258, 16, 698, 197, 25653, 675, 981, 284, 330, 649, 16, 698,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServer_Issue987(t *testing.T) { log.SetOutput(ioutil.Discard) defer log.SetOutput(os.Stdout) gen, err := testAppGenerator(t, "../fixtures/bugs/987/swagger.yml", "deeper consumes produces") if assert.NoError(t, err) { app, err := gen.makeCodegenApp() if assert.NoError(t, err) { buf := bytes.NewBuffer...
explode_data.jsonl/3785
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 381 }
[ 2830, 3393, 5475, 7959, 83890, 24, 23, 22, 1155, 353, 8840, 836, 8, 341, 6725, 4202, 5097, 1956, 30158, 909, 47560, 340, 16867, 1487, 4202, 5097, 9638, 83225, 340, 82281, 11, 1848, 1669, 1273, 2164, 12561, 1155, 11, 7005, 45247, 14, 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...
5
func TestListenLocal(t *testing.T) { sset, err := makeStatefulSet(&monitoringv1.Alertmanager{ Spec: monitoringv1.AlertmanagerSpec{ ListenLocal: true, }, }, defaultTestConfig, "") if err != nil { t.Fatalf("Unexpected error while making StatefulSet: %v", err) } found := false for _, flag := range sset.Spe...
explode_data.jsonl/25243
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 333 }
[ 2830, 3393, 38714, 7319, 1155, 353, 8840, 836, 8, 341, 1903, 746, 11, 1848, 1669, 1281, 1397, 1262, 1649, 2099, 32225, 287, 85, 16, 40143, 13297, 515, 197, 7568, 992, 25, 16558, 85, 16, 40143, 13297, 8327, 515, 298, 10675, 268, 7319, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestConcurrentInit(t *testing.T) { cnt := 0 resolveWait := make(chan bool) r := &Resolver{ cache: make(map[string]*cacheRecord), resolve: func(name string) ([]net.IP, error) { cnt++ // The first call should be blocked on resolveWait. if cnt == 1 { <-resolveWait return []net.IP{net.ParseIP("...
explode_data.jsonl/27871
{ "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, 1109, 3231, 3803, 1155, 353, 8840, 836, 8, 341, 60553, 1669, 220, 15, 198, 87778, 14190, 1669, 1281, 35190, 1807, 340, 7000, 1669, 609, 18190, 515, 197, 52680, 25, 1281, 9147, 14032, 8465, 9360, 6471, 1326, 197, 87778, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestContextQuery(t *testing.T) { c, _ := CreateTestContext(httptest.NewRecorder()) c.Request, _ = http.NewRequest("GET", "http://example.com/?foo=bar&page=10&id=", nil) value, ok := c.GetQuery("foo") assert.True(t, ok) assert.Equal(t, "bar", value) assert.Equal(t, "bar", c.DefaultQuery("foo", "none")) asse...
explode_data.jsonl/26761
{ "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, 1972, 2859, 1155, 353, 8840, 836, 8, 341, 1444, 11, 716, 1669, 4230, 2271, 1972, 73392, 83, 70334, 7121, 47023, 2398, 1444, 9659, 11, 716, 284, 1758, 75274, 445, 3806, 497, 330, 1254, 1110, 8687, 905, 17763, 7975, 28, 2257...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewCache(t *testing.T) { tests := []struct { name string want *Cache }{ // TODO: Add test cases. } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := NewCache(); !reflect.DeepEqual(got, tt.want) { t.Errorf("NewCache() = %v, want %v", got, tt.want) } }) } }
explode_data.jsonl/59939
{ "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, 3564, 8233, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 50780, 353, 8233, 198, 197, 59403, 197, 322, 5343, 25, 2691, 1273, 5048, 624, 197, 532, 2023, 8358, 17853, 1669, 2088, 7032...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconcileWithoutPVC(t *testing.T) { // TestReconcileWithoutPVC runs "Reconcile" on a PipelineRun that has two unrelated tasks. // It verifies that reconcile is successful and that no PVC is created ps := []*v1beta1.Pipeline{parse.MustParsePipeline(t, ` metadata: name: test-pipeline namespace: foo spec: ...
explode_data.jsonl/27296
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 577 }
[ 2830, 3393, 693, 40446, 457, 26040, 47, 11287, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 693, 40446, 457, 26040, 47, 11287, 8473, 330, 693, 40446, 457, 1, 389, 264, 40907, 6727, 429, 702, 1378, 45205, 9079, 624, 197, 322, 1084, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateKeepaliveEvent(t *testing.T) { event := corev2.FixtureEvent("entity1", "keepalive") keepaliveEvent := createKeepaliveEvent(event) assert.Equal(t, "keepalive", keepaliveEvent.Check.Name) assert.Equal(t, uint32(60), keepaliveEvent.Check.Interval) assert.Equal(t, []string{"keepalive"}, keepaliveEvent.C...
explode_data.jsonl/45980
{ "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, 4021, 19434, 50961, 1556, 1155, 353, 8840, 836, 8, 341, 28302, 1669, 6200, 85, 17, 991, 12735, 1556, 445, 2996, 16, 497, 330, 13096, 50961, 1138, 197, 13096, 50961, 1556, 1669, 1855, 19434, 50961, 1556, 6235, 340, 6948, 1280...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestObjectWithVars(t *testing.T) { assertParseOneTerm(t, "var keys", "{foo: \"bar\", bar: 64}", ObjectTerm(Item(VarTerm("foo"), StringTerm("bar")), Item(VarTerm("bar"), IntNumberTerm(64)))) assertParseOneTerm(t, "nested var keys", "{baz: {foo: \"bar\", bar: qux}}", ObjectTerm(Item(VarTerm("baz"), ObjectTerm(Item...
explode_data.jsonl/50453
{ "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, 1190, 2354, 28305, 1155, 353, 8840, 836, 8, 341, 6948, 14463, 3966, 17249, 1155, 11, 330, 947, 6894, 497, 13868, 7975, 25, 7245, 2257, 16215, 3619, 25, 220, 21, 19, 9545, 3002, 17249, 29771, 7, 3962, 17249, 445, 7975, 3975...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUnknownType(t *testing.T) { acc, err := NewAccessDetails("foo://192.168.122.1") if err == nil || acc != nil { t.Fatalf("unexpected parse success") } }
explode_data.jsonl/11832
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 61 }
[ 2830, 3393, 13790, 929, 1155, 353, 8840, 836, 8, 341, 197, 4475, 11, 1848, 1669, 1532, 6054, 7799, 445, 7975, 1110, 16, 24, 17, 13, 16, 21, 23, 13, 16, 17, 17, 13, 16, 1138, 743, 1848, 621, 2092, 1369, 1029, 961, 2092, 341, 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 ]
3
func TestGitLabProviderUsername(t *testing.T) { b := testGitLabBackend() defer b.Close() bURL, _ := url.Parse(b.URL) p := testGitLabProvider(bURL.Host) p.AllowUnverifiedEmail = true session := &sessions.SessionState{AccessToken: "gitlab_access_token"} username, err := p.GetUserName(session) assert.Equal(t, ni...
explode_data.jsonl/12895
{ "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, 46562, 29046, 5179, 11115, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 1273, 46562, 29046, 29699, 741, 16867, 293, 10421, 2822, 2233, 3144, 11, 716, 1669, 2515, 8937, 1883, 20893, 340, 3223, 1669, 1273, 46562, 29046, 5179, 1883,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCreatePostAll(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() Client := th.Client post := &model.Post{ChannelId: th.BasicChannel.Id, Message: "#hashtag a" + model.NewId() + "a"} user := model.User{Email: th.GenerateTestEmail(), Nickname: "Joram Wilander", Password: "hello1", Username: Gen...
explode_data.jsonl/5241
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 632 }
[ 2830, 3393, 4021, 4133, 2403, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 271, 51172, 1669, 609, 2528, 23442, 90, 9629, 764, 25, 270, 48868, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestOperators(t *testing.T) { qs := dORM.QueryTable("user") num, err := qs.Filter("user_name", "slene").Count() throwFail(t, err) throwFail(t, AssertIs(num, 1)) num, err = qs.Filter("user_name__exact", String("slene")).Count() throwFail(t, err) throwFail(t, AssertIs(num, 1)) num, err = qs.Filter("user_na...
explode_data.jsonl/18129
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1573 }
[ 2830, 3393, 77760, 1155, 353, 8840, 836, 8, 341, 18534, 82, 1669, 294, 4365, 15685, 2556, 445, 872, 1138, 22431, 11, 1848, 1669, 32421, 31696, 445, 872, 1269, 497, 330, 3226, 1952, 1827, 2507, 741, 9581, 19524, 1155, 11, 1848, 340, 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...
8
func TestIntegration_MultiwordV1_Sim(t *testing.T) { t.Parallel() // Simulate a consumer contract calling to obtain ETH quotes in 3 different currencies // in a single callback. config, cleanup := cltest.NewConfig(t) defer cleanup() user, _, _, consumerContract, operatorContract, b := setupMultiWordContracts(t) ...
explode_data.jsonl/75908
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1075 }
[ 2830, 3393, 52464, 1245, 7068, 1158, 53, 16, 1098, 318, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 4467, 6334, 264, 11502, 5116, 8098, 311, 6851, 37742, 17194, 304, 220, 18, 2155, 35602, 198, 197, 322, 304, 264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAPIs(t *testing.T) { RegisterFailHandler(Fail) RunSpecsWithDefaultAndCustomReporters(t, "v1 Webhook Suite", []Reporter{printer.NewlineReporter{}}) }
explode_data.jsonl/28957
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 63 }
[ 2830, 3393, 7082, 82, 1155, 353, 8840, 836, 8, 341, 79096, 19524, 3050, 7832, 604, 692, 85952, 8327, 16056, 3675, 3036, 10268, 10361, 388, 1155, 345, 197, 197, 1, 85, 16, 4895, 20873, 20977, 756, 197, 197, 1294, 52766, 90, 62956, 7121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestAbsCollection_Max(t *testing.T) { intColl := NewIntCollection([]int{1, 2, 2, 3}) max, err := intColl.Max().ToInt() if err != nil { t.Fatal(err) } if max != 3 { t.Fatal("max错误") } }
explode_data.jsonl/66453
{ "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, 27778, 6482, 58843, 1155, 353, 8840, 836, 8, 341, 2084, 15265, 1669, 1532, 1072, 6482, 10556, 396, 90, 16, 11, 220, 17, 11, 220, 17, 11, 220, 18, 3518, 22543, 11, 1848, 1669, 526, 15265, 14535, 1005, 38544, 741, 743, 184...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUint16Serial(t *testing.T) { b := buf.New() defer b.Release() n, err := serial.WriteUint16(b, 10) common.Must(err) if n != 2 { t.Error("expect 2 bytes writtng, but actually ", n) } if diff := cmp.Diff(b.Bytes(), []byte{0, 10}); diff != "" { t.Error(diff) } }
explode_data.jsonl/10870
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 124 }
[ 2830, 3393, 21570, 16, 21, 5915, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 6607, 7121, 741, 16867, 293, 58693, 2822, 9038, 11, 1848, 1669, 6146, 4073, 21570, 16, 21, 1883, 11, 220, 16, 15, 340, 83825, 50463, 3964, 340, 743, 308, 961...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGateway_HTTPIngress(t *testing.T) { istioNamespace := tc.Kube.IstioSystemNamespace() ingressGatewayServiceName := tc.Kube.IstioIngressGatewayService() // Configure a route from us.bookinfo.com to "c-v2" only cfgs := &deployableConfig{ Namespace: tc.Kube.Namespace, YamlFiles: []string{ "testdata/net...
explode_data.jsonl/15607
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 480 }
[ 2830, 3393, 40709, 34954, 641, 2483, 1155, 353, 8840, 836, 8, 341, 197, 380, 815, 22699, 1669, 17130, 11352, 3760, 2447, 267, 815, 2320, 22699, 741, 197, 287, 673, 40709, 1860, 675, 1669, 17130, 11352, 3760, 2447, 267, 815, 641, 2483, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sortStringSliceByLength(t *testing.T) { type args struct { m []string } tests := []struct { name string args args want PathSlices }{ { name: "00", args: args{ []string{"/aa/bb/cc", "/aa", "/aa/bb"}, }, want: []PathSlice{{ Path: "/aa/bb/cc", }, { Path: "/aa/bb", }, {...
explode_data.jsonl/48287
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 297 }
[ 2830, 3393, 18435, 703, 33236, 1359, 4373, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 2109, 3056, 917, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 7933, 50, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMarshalCmdErrors(t *testing.T) { t.Parallel() tests := []struct { name string id interface{} cmd interface{} err dcrjson.Error }{ { name: "unregistered type", id: 1, cmd: (*int)(nil), err: dcrjson.Error{Code: dcrjson.ErrUnregisteredMethod}, }, { name: "nil instance of r...
explode_data.jsonl/73750
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 526 }
[ 2830, 3393, 55438, 15613, 13877, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 15710, 256, 3749, 16094, 197, 25920, 220, 3749, 16094, 197, 9859, 220, 294, 5082, 2236, 614...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIstioRules(t *testing.T) { r, stop := startTestReconciler(t) defer stop() in, cleanup := createTestInstance(t, testFeatureFlags{istio: true}) defer cleanup() cfg, err := r.getConfig() require.NoError(t, err) list, err := istioRules(cfg, in) require.NoError(t, err) require.Len(t, list, len(in.Spec.Se...
explode_data.jsonl/47208
{ "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, 40, 267, 815, 26008, 1155, 353, 8840, 836, 8, 341, 7000, 11, 2936, 1669, 1191, 2271, 693, 40446, 5769, 1155, 340, 16867, 2936, 741, 17430, 11, 21290, 1669, 1855, 2271, 2523, 1155, 11, 1273, 13859, 9195, 90, 380, 815, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAccReboot_basic(t *testing.T) { if isCluster { t.Skip("Cluster does not support reboot operation") } if isCpxRun { t.Skip("CPX does not support reboot operation") } resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: test...
explode_data.jsonl/28826
{ "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, 14603, 693, 4619, 34729, 1155, 353, 8840, 836, 8, 341, 743, 374, 28678, 341, 197, 3244, 57776, 445, 28678, 1558, 537, 1824, 34592, 5666, 1138, 197, 532, 743, 374, 34, 1767, 6727, 341, 197, 3244, 57776, 445, 7123, 55, 1558,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetppid(t *testing.T) { test.DropPrivilege(t) defer test.ResetPrivilege(t) pid := os.Getpid() ppid := os.Getppid() list := []struct { name string pid int ppid int expectSuccess bool }{ {"ProcessZero", 0, -1, false}, {"CurrentProcess", pid, ppid, true}, {"InitPr...
explode_data.jsonl/19792
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 341 }
[ 2830, 3393, 1949, 602, 307, 1155, 353, 8840, 836, 8, 341, 18185, 21688, 32124, 42769, 1155, 340, 16867, 1273, 36660, 32124, 42769, 1155, 692, 78799, 1669, 2643, 2234, 10412, 741, 65729, 307, 1669, 2643, 2234, 602, 307, 2822, 14440, 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...
7
func TestEditFileToNewBranch(t *testing.T) { prepareTestEnv(t) session := loginUser(t, "user2") testEditFileToNewBranch(t, session, "user2", "repo1", "master", "feature/test", "README.md") }
explode_data.jsonl/62574
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 4036, 1703, 1249, 3564, 18197, 1155, 353, 8840, 836, 8, 341, 197, 13609, 2271, 14359, 1155, 340, 25054, 1669, 87169, 1155, 11, 330, 872, 17, 1138, 18185, 4036, 1703, 1249, 3564, 18197, 1155, 11, 3797, 11, 330, 872, 17, 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
func Test_Hoverfly_GetVersion_GetsVersion(t *testing.T) { RegisterTestingT(t) unit := Hoverfly{ version: "test-version", } Expect(unit.GetVersion()).To(Equal("test-version")) }
explode_data.jsonl/45392
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 71 }
[ 2830, 3393, 2039, 1975, 21642, 13614, 5637, 2646, 1415, 5637, 1155, 353, 8840, 836, 8, 341, 79096, 16451, 51, 1155, 692, 81189, 1669, 85569, 21642, 515, 197, 74954, 25, 330, 1944, 45367, 756, 197, 630, 35911, 24144, 2234, 5637, 6011, 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
func TestNewProtobufEvent(t *testing.T) { Convey("given a protobuf event with a nil property value", t, func() { protoEvent := &sfxmodel.Event{ EventType: "mwp.test2", Dimensions: []*sfxmodel.Dimension{}, Properties: []*sfxmodel.Property{ { Key: "version", Value: &sfxmodel.PropertyValue{}, ...
explode_data.jsonl/81471
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 208 }
[ 2830, 3393, 3564, 12423, 18464, 1556, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 41968, 264, 69634, 1538, 448, 264, 2092, 3343, 897, 497, 259, 11, 2915, 368, 341, 197, 197, 15110, 1556, 1669, 609, 82, 8298, 2528, 6904, 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 TestGetKeySucceeds(t *testing.T) { s, ctx := newSessionWithMock() pubKey := &rsa.PublicKey{N: big.NewInt(1), E: 1} // test newSigner works when everything... works ctx.GetAttributeValueFunc = func(_ pkcs11.SessionHandle, _ pkcs11.ObjectHandle, attrs []*pkcs11.Attribute) ([]*pkcs11.Attribute, error) { var re...
explode_data.jsonl/1167
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 294 }
[ 2830, 3393, 1949, 1592, 50, 29264, 82, 1155, 353, 8840, 836, 8, 341, 1903, 11, 5635, 1669, 501, 5283, 2354, 11571, 741, 62529, 1592, 1669, 609, 60869, 49139, 1592, 90, 45, 25, 2409, 7121, 1072, 7, 16, 701, 468, 25, 220, 16, 630, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestBaselineMetrics(t *testing.T) { w := httptest.NewRecorder() req, _ := http.NewRequest("GET", "/", nil) promhttp.Handler().ServeHTTP(w, req) assertMetricsExist(t, w.Body.String(), baselineMetrics) }
explode_data.jsonl/75857
{ "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, 64611, 27328, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 54320, 70334, 7121, 47023, 741, 24395, 11, 716, 1669, 1758, 75274, 445, 3806, 497, 64657, 2092, 340, 3223, 441, 1254, 31010, 1005, 60421, 9230, 3622, 11, 4232, 340, 694...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestDB_Batch_Panic(t *testing.T) { db := MustOpenDB() defer db.MustClose() var sentinel int var bork = &sentinel var problem interface{} var err error // Execute a function inside a batch that panics. func() { defer func() { if p := recover(); p != nil { problem = p } }() err = db.Batch(f...
explode_data.jsonl/27491
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 257 }
[ 2830, 3393, 3506, 1668, 754, 1088, 31270, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 15465, 5002, 3506, 741, 16867, 2927, 50463, 7925, 2822, 2405, 80778, 526, 198, 2405, 293, 669, 284, 609, 24512, 29708, 198, 2405, 3491, 3749, 16094, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetPortForward(t *testing.T) { const ( podName = "podFoo" podNamespace = "nsFoo" podUID types.UID = "12345678" port int32 = 5000 ) testcases := []struct { description string podName string expectError bool }{{ description: "success case", po...
explode_data.jsonl/49889
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 616 }
[ 2830, 3393, 1949, 7084, 25925, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 3223, 347, 675, 394, 284, 330, 39073, 40923, 698, 197, 3223, 347, 22699, 1843, 284, 330, 4412, 40923, 698, 197, 3223, 347, 6463, 981, 4494, 5255, 915, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestReadArchives(t *testing.T) { archiveArgsA.summaryArg = true summaries, _ := inspectArchives([]string{"testData/rs3.zip", "testData/rs2.zip"}, &archiveArgsA) if len(summaries) != 2 { t.Fatalf("Expected %d results but got %d", 2, len(summaries)) } }
explode_data.jsonl/13174
{ "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, 4418, 18727, 1886, 1155, 353, 8840, 836, 8, 341, 197, 16019, 4117, 32, 35341, 2735, 284, 830, 198, 31479, 89333, 11, 716, 1669, 24085, 18727, 1886, 10556, 917, 4913, 1944, 1043, 91885, 18, 20991, 497, 330, 1944, 1043, 91885,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewEncoderNoName(t *testing.T) { _, err := newEncoder("", zapcore.EncoderConfig{}) assert.Equal(t, errNoEncoderNameSpecified, err, "expected an error when creating an encoder with no name") }
explode_data.jsonl/54648
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 3564, 19921, 2753, 675, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 501, 19921, 19814, 32978, 2153, 26598, 4316, 2648, 37790, 6948, 12808, 1155, 11, 1848, 2753, 19921, 675, 8327, 1870, 11, 1848, 11, 330, 7325, 458, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestCentroidDistanceSwapLess(t *testing.T) { dp1 := newBasicNodeWithLen(nil) dp2 := newBasicNodeWithLen([]int{1, 2, 3}) centroid := newBasicNodeWithLen(nil) data := []Node{dp1, dp2} cd := newCentroidDistance(centroid, data) if !cd.Less(0, 1) { t.Errorf("Expected dp1 < dp2.\n") } }
explode_data.jsonl/9173
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 129 }
[ 2830, 3393, 22233, 1577, 14778, 46179, 27451, 1155, 353, 8840, 836, 8, 341, 55256, 16, 1669, 501, 15944, 1955, 2354, 11271, 27907, 340, 55256, 17, 1669, 501, 15944, 1955, 2354, 11271, 10556, 396, 90, 16, 11, 220, 17, 11, 220, 18, 8824...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandlerGetBuilders(t *testing.T) { dh := &Handler{} builders := map[string]*dashboard.BuildConfig{ "linux-amd64-testfile": { Name: "linux-amd64-testfile", HostType: "this-is-a-test-file", Notes: "", MinimumGoVersion: types.MajorMinor{}, }, "linux-386-testfile"...
explode_data.jsonl/45361
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 836 }
[ 2830, 3393, 3050, 1949, 62306, 1155, 353, 8840, 836, 8, 341, 2698, 71, 1669, 609, 3050, 16094, 69371, 388, 1669, 2415, 14032, 8465, 18641, 25212, 2648, 515, 197, 197, 1, 14210, 32217, 67, 21, 19, 16839, 1192, 788, 341, 298, 21297, 25,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2