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 TestGetBuffering(t *testing.T) { testCases := []struct { desc string labels map[string]string expected *types.Buffering }{ { desc: "should return nil when no buffering labels", labels: map[string]string{}, expected: nil, }, { desc: "should return a struct when buffering labels...
explode_data.jsonl/51862
{ "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, 1949, 4095, 287, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 41653, 257, 914, 198, 197, 95143, 256, 2415, 14032, 30953, 198, 197, 42400, 353, 9242, 22622, 287, 198, 197, 59403, 197, 197, 515, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStepper_After(t *testing.T) { st := Stepper{ N: 2, U: Unum, } val, err := st.After(2) assert.NoError(t, err) assert.Equal(t, 4, val) }
explode_data.jsonl/78067
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 77 }
[ 2830, 3393, 20903, 6922, 1566, 1046, 1155, 353, 8840, 836, 8, 341, 18388, 1669, 3360, 6922, 515, 197, 18317, 25, 220, 17, 345, 197, 15980, 25, 1230, 372, 345, 197, 532, 19302, 11, 1848, 1669, 357, 36892, 7, 17, 340, 6948, 35699, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestEnforceNamespaceLabelOnPrometheusMonitors(t *testing.T) { type testCase struct { Name string ServiceMonitor monitoringv1.ServiceMonitor PromSpecEnforcedNamespaceLabel string ExcludedFromEnforcement []monitoringv1.ObjectReference Expected monitoringv...
explode_data.jsonl/29312
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1559 }
[ 2830, 3393, 1702, 8833, 22699, 2476, 1925, 35186, 39705, 11095, 11905, 1155, 353, 8840, 836, 8, 1476, 13158, 54452, 2036, 341, 197, 21297, 5968, 914, 198, 197, 91619, 30098, 338, 16558, 85, 16, 13860, 30098, 198, 197, 10025, 441, 8327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHistogramDataPoint_Count(t *testing.T) { ms := NewHistogramDataPoint() ms.InitEmpty() assert.EqualValues(t, uint64(0), ms.Count()) testValCount := uint64(17) ms.SetCount(testValCount) assert.EqualValues(t, testValCount, ms.Count()) }
explode_data.jsonl/19552
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 77210, 1043, 2609, 50775, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 77210, 1043, 2609, 741, 47691, 26849, 3522, 741, 6948, 12808, 6227, 1155, 11, 2622, 21, 19, 7, 15, 701, 9829, 6134, 2398, 18185, 2208, 2507, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestServerResumptionDisabled(t *testing.T) { sessionFilePath := tempFile("") defer os.Remove(sessionFilePath) config := testConfig.Clone() testIssue := &serverTest{ name: "IssueTicketPreDisable", command: []string{"openssl", "s_client", "-cipher", "AES128-SHA", "-ciphersuites", "TLS_AES_128_GCM_SHA256...
explode_data.jsonl/36346
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 401 }
[ 2830, 3393, 5475, 1061, 60574, 25907, 1155, 353, 8840, 836, 8, 341, 25054, 19090, 1669, 2730, 1703, 31764, 16867, 2643, 13270, 16264, 19090, 692, 25873, 1669, 1273, 2648, 64463, 2822, 18185, 42006, 1669, 609, 4030, 2271, 515, 197, 11609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMissingOrInvalidOSArchFetchRun(t *testing.T) { ctx := testutils.NewRktRunCtx() defer ctx.Cleanup() tests := getMissingOrInvalidTests(t, ctx) defer osArchTestRemoveImages(tests) for i, tt := range tests { imgHash, err := importImageAndFetchHash(t, ctx, "", tt.image) if err != nil { t.Fatalf("%v", e...
explode_data.jsonl/14980
{ "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, 25080, 2195, 7928, 3126, 18727, 20714, 6727, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1273, 6031, 7121, 49, 5840, 6727, 23684, 741, 16867, 5635, 727, 60639, 741, 78216, 1669, 633, 25080, 2195, 7928, 18200, 1155, 11, 5635, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDelete(t *testing.T) { mb, err := mailbox.Create("delete") if err != nil { t.Fatal(err) } msg, err := mb.PutMessage("TEST") if err != nil { t.Fatal(err) } key := mailbox.AccessKey{MailboxId: mb.Id} key.Create() req := api.DeleteMessageRequest{Message: msg.Id} req.Sign(key.Name, key.Secret) res...
explode_data.jsonl/15714
{ "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, 6435, 1155, 353, 8840, 836, 8, 341, 2109, 65, 11, 1848, 1669, 45742, 7251, 445, 4542, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 21169, 11, 1848, 1669, 10016, 39825, 2052, 445, 10033, 1138, 743...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestRemoveInvalidPDBs(t *testing.T) { deplabels := map[string]string{"foo": "deployment"} sslabels := map[string]string{"foo": "statefulset"} replicas := int32(2) one := intstr.FromInt(1) pdbs := []*pv1beta1.PodDisruptionBudget{ { ObjectMeta: metav1.ObjectMeta{ Name: "pdb-1", Labels: ownerLabe...
explode_data.jsonl/53283
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1030 }
[ 2830, 3393, 13021, 7928, 47, 3506, 82, 1155, 353, 8840, 836, 8, 341, 58351, 500, 780, 82, 1669, 2415, 14032, 30953, 4913, 7975, 788, 330, 82213, 16707, 34472, 16873, 1669, 2415, 14032, 30953, 4913, 7975, 788, 330, 2454, 1262, 746, 16707...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestPushImage(t *testing.T) { require := require.New(t) ctx, cleanup := context.BuildContextFixtureWithSampleImage() defer cleanup() p, err := PushClientFixture(ctx) require.NoError(err) require.NoError(p.Push(testutil.SampleImageTag)) }
explode_data.jsonl/63641
{ "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, 16644, 1906, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 340, 20985, 11, 21290, 1669, 2266, 25212, 1972, 18930, 2354, 17571, 1906, 741, 16867, 21290, 2822, 3223, 11, 1848, 1669, 22950, 2959, 18930, 7502, 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
func TestEnqueueReferringRouteNotEnqueueIfHasNoLatestReady(t *testing.T) { _, _, _, controller, reconciler, _, _, _, _ := newTestSetup(t) config := getTestConfiguration() f := reconciler.EnqueueReferringRoute(controller) f(config) // add this item to avoid being blocked by queue. expected := "queue-has-no-work" ...
explode_data.jsonl/3286
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 1702, 4584, 3945, 14443, 4899, 2623, 1702, 4584, 2679, 10281, 2753, 31992, 19202, 1155, 353, 8840, 836, 8, 341, 197, 6878, 8358, 8358, 6461, 11, 31445, 5769, 11, 8358, 8358, 8358, 716, 1669, 501, 2271, 21821, 1155, 340, 2587...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFleetAggregatedPlayerStatus(t *testing.T) { if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { t.SkipNow() } t.Parallel() ctx := context.Background() client := framework.AgonesClient.AgonesV1() flt := defaultFleet(framework.Namespace) flt.Spec.Template.Spec.Players = &agonesv1.PlayersSpec{ ...
explode_data.jsonl/15434
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 928 }
[ 2830, 3393, 37, 18973, 9042, 93040, 4476, 2522, 1155, 353, 8840, 836, 8, 341, 743, 753, 22255, 58434, 5462, 89467, 58434, 4476, 37119, 8, 341, 197, 3244, 57776, 7039, 741, 197, 532, 3244, 41288, 7957, 741, 20985, 1669, 2266, 19047, 741,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestCreateUserPresenter_FailureCase(t *testing.T) { presenter, useCase, ctrl := (&CreateUserPresenterTest{}).setup(t) defer ctrl.Finish() username, email, password := "username", "user@email.com", "$2a$10$KtwHGGRiKWRDEq/g/2RAguaqIqU7iJNM11aFeqcwzDhuv9jDY35uW" useCase.EXPECT(). Execute(&definitions.Crea...
explode_data.jsonl/7600
{ "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, 4021, 1474, 33849, 1400, 9373, 4207, 1155, 353, 8840, 836, 8, 341, 3223, 74646, 11, 990, 4207, 11, 23743, 1669, 15899, 4021, 1474, 33849, 2271, 6257, 568, 15188, 1155, 340, 16867, 23743, 991, 18176, 741, 72358, 11, 2551, 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 TestMeterDBManager(t *testing.T) { registry := prometheus.NewRegistry() m := &manager{databases: []*VersionedDatabase{ { Database: memdb.New(), Version: version.NewDefaultVersion(2, 0, 0), }, { Database: memdb.New(), Version: version.NewDefaultVersion(1, 5, 0), }, { Database: memdb.Ne...
explode_data.jsonl/37004
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 371 }
[ 2830, 3393, 68224, 3506, 2043, 1155, 353, 8840, 836, 8, 341, 197, 29172, 1669, 2706, 39705, 7121, 15603, 2822, 2109, 1669, 609, 13297, 90, 67, 23822, 25, 29838, 5637, 291, 5988, 515, 197, 197, 515, 298, 197, 5988, 25, 1833, 1999, 7121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIsInSlice(t *testing.T) { s := []string{"a", "b", "c"} if !isInSlice("a", s) { t.Error("isInSlice error") return } if isInSlice("d", s) { t.Error("isInSlice error") } }
explode_data.jsonl/52169
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 3872, 641, 33236, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 3056, 917, 4913, 64, 497, 330, 65, 497, 330, 66, 16707, 743, 753, 285, 641, 33236, 445, 64, 497, 274, 8, 341, 197, 3244, 6141, 445, 285, 641, 33236, 1465, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsLessThan1(t *testing.T) { for _, hey := range lessThanTests { if !hey.x1.IsLessThan(hey.x2) { t.Fatalf("%v should be less than %v", hey.x1, hey.x2) } if hey.x2.IsLessThan(hey.x1) { t.Fatalf("%v should not be less than %v", hey.x2, hey.x1) } } }
explode_data.jsonl/39013
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 3872, 27451, 26067, 16, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 34209, 1669, 2088, 2686, 26067, 18200, 341, 197, 743, 753, 35561, 1993, 16, 4506, 27451, 26067, 7, 35561, 1993, 17, 8, 341, 298, 3244, 30762, 4430, 85, 1265...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIndex_LockErr(t *testing.T) { t.Log("index should return a 503 if unable to list locks") RegisterMockTestingT(t) l := mocks.NewMockLocker() When(l.List()).ThenReturn(nil, errors.New("err")) s := server.Server{ Locker: l, } req, _ := http.NewRequest("GET", "", bytes.NewBuffer(nil)) w := httptest.NewRe...
explode_data.jsonl/15316
{ "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, 1552, 2351, 1176, 7747, 1155, 353, 8840, 836, 8, 341, 3244, 5247, 445, 1252, 1265, 470, 264, 220, 20, 15, 18, 421, 11889, 311, 1140, 31676, 1138, 79096, 11571, 16451, 51, 1155, 340, 8810, 1669, 68909, 7121, 11571, 87253, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDeviceClassOID_readOID(t *testing.T) { var snmpClient network.MockSNMPClient ctx := network.NewContextWithDeviceConnection(context.Background(), &network.RequestDeviceConnection{ SNMP: &network.RequestDeviceConnectionSNMP{ SnmpClient: &snmpClient, }, }) snmpClient. On("SNMPWalk", ctx, "1"). Ret...
explode_data.jsonl/68078
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 401 }
[ 2830, 3393, 6985, 1957, 29805, 6443, 29805, 1155, 353, 8840, 836, 8, 341, 2405, 4131, 1307, 2959, 3922, 24664, 18966, 5781, 2959, 198, 20985, 1669, 3922, 7121, 1972, 2354, 6985, 4526, 5378, 19047, 1507, 609, 17511, 9659, 6985, 4526, 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...
2
func Test_createPackageMap(t *testing.T) { tests := []struct { name string importPath string wantPackageName string wantOK bool }{ {"golang package", "context", "context", true}, {"third party", "golang.org/x/tools/present", "present", true}, //{"modules", "rsc.io/quote/v3", "qu...
explode_data.jsonl/3269
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 383 }
[ 2830, 3393, 8657, 13100, 2227, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 21918, 1820, 414, 914, 198, 197, 50780, 65655, 914, 198, 197, 50780, 3925, 688, 1807, 198, 197, 59403, 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...
3
func TestSelectorDaemonDeletesUnselectedPods(t *testing.T) { for _, strategy := range updateStrategies() { ds := newDaemonSet("foo") ds.Spec.UpdateStrategy = *strategy ds.Spec.Template.Spec.NodeSelector = simpleNodeLabel manager, podControl, _, err := newTestController(ds) if err != nil { t.Fatalf("error ...
explode_data.jsonl/50324
{ "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, 5877, 89177, 61317, 1806, 4525, 23527, 82, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 8282, 1669, 2088, 2647, 2580, 69388, 368, 341, 197, 83336, 1669, 501, 89177, 1649, 445, 7975, 1138, 197, 83336, 36473, 16689, 19816, 284, 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 TestMapProxy_TryRemoveWithNilKey(t *testing.T) { _, err := mp.TryRemove(nil, 1, time.Second) AssertErrorNotNil(t, err, "remove did not return an error for nil key") mp.Clear() }
explode_data.jsonl/56960
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 2227, 16219, 1139, 884, 13021, 2354, 19064, 1592, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 10490, 19824, 13021, 27907, 11, 220, 16, 11, 882, 32435, 340, 18017, 1454, 96144, 1155, 11, 1848, 11, 330, 5399, 1521, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestRemovedSysVars(t *testing.T) { store, clean := realtikvtest.CreateMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") variable.RegisterSysVar(&variable.SysVar{Scope: variable.ScopeGlobal | variable.ScopeSession, Name: "bogus_var", Value: "acdc"}) result := tk.Mu...
explode_data.jsonl/5746
{ "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, 42642, 32792, 28305, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1931, 83, 1579, 85, 1944, 7251, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 741, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCommandSide_RemoveProjectMember(t *testing.T) { type fields struct { eventstore *eventstore.Eventstore } type args struct { ctx context.Context projectID string userID string resourceOwner string } type res struct { want *domain.ObjectDetails err func(error) bool } te...
explode_data.jsonl/41753
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1381 }
[ 2830, 3393, 4062, 16384, 66843, 7849, 9366, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 28302, 4314, 353, 3087, 4314, 6904, 4314, 198, 197, 532, 13158, 2827, 2036, 341, 197, 20985, 1843, 2266, 9328, 198, 197, 72470, 915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateServiceAccount(t *testing.T) { cluster1Endppoints := []*model.IstioEndpoint{ {Address: "10.172.0.1", ServiceAccount: "sa1"}, {Address: "10.172.0.2", ServiceAccount: "sa-vm1"}, } testCases := []struct { name string clusterID string endpoints []*model.IstioEndpoint expect bool }{ ...
explode_data.jsonl/7954
{ "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, 4289, 1860, 7365, 1155, 353, 8840, 836, 8, 341, 197, 18855, 16, 3727, 602, 14399, 1669, 29838, 2528, 2447, 267, 815, 27380, 515, 197, 197, 90, 4286, 25, 330, 16, 15, 13, 16, 22, 17, 13, 15, 13, 16, 497, 5362, 7365, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMakePortMappings(t *testing.T) { port := func(name string, protocol v1.Protocol, containerPort, hostPort int32, ip string) v1.ContainerPort { return v1.ContainerPort{ Name: name, Protocol: protocol, ContainerPort: containerPort, HostPort: hostPort, HostIP: ip, } }...
explode_data.jsonl/18704
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 697 }
[ 2830, 3393, 8078, 7084, 83421, 1155, 353, 8840, 836, 8, 341, 52257, 1669, 2915, 3153, 914, 11, 11507, 348, 16, 54096, 11, 5476, 7084, 11, 3468, 7084, 526, 18, 17, 11, 5997, 914, 8, 348, 16, 33672, 7084, 341, 197, 853, 348, 16, 336...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAnalyzeConfig(t *testing.T) { type args struct { targetOS types.OS configBlob []byte disabledAnalyzers []analyzer.Type } tests := []struct { name string args args want []types.Package }{ { name: "happy path", args: args{ targetOS: types.OS{ Family: "alpine", ...
explode_data.jsonl/39285
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 522 }
[ 2830, 3393, 2082, 55856, 2648, 1155, 353, 8840, 836, 8, 1476, 13158, 2827, 2036, 341, 197, 28861, 3126, 688, 4494, 57054, 198, 197, 25873, 37985, 286, 3056, 3782, 198, 197, 34597, 2312, 73307, 59619, 3056, 276, 27165, 10184, 198, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRulePartitionNotAllowed(t *testing.T) { common.Log.Debug("Entering function: %s", common.GetFunctionName()) sqls := []string{ `CREATE TABLE trb3 (id INT, name VARCHAR(50), purchased DATE) PARTITION BY RANGE( YEAR(purchased) ) ( PARTITION p0 VALUES LESS THAN (1990), PARTITION p1 VALUES LESS...
explode_data.jsonl/76844
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 357 }
[ 2830, 3393, 11337, 49978, 97634, 1155, 353, 8840, 836, 8, 341, 83825, 5247, 20345, 445, 82867, 729, 25, 1018, 82, 497, 4185, 2234, 5152, 675, 2398, 30633, 82, 1669, 3056, 917, 515, 197, 197, 63, 22599, 14363, 489, 65, 18, 320, 307, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestToCrossRate(t *testing.T) { data := []struct { base sdk.Dec quote sdk.Dec expected sdk.Dec }{ { base: sdk.NewDec(1600), quote: sdk.NewDec(100), expected: sdk.NewDec(16), }, { base: sdk.NewDec(0), quote: sdk.NewDec(100), expected: sdk.NewDec(16), }, { ...
explode_data.jsonl/38391
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 549 }
[ 2830, 3393, 1249, 28501, 11564, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 3056, 1235, 341, 197, 24195, 257, 45402, 22442, 198, 197, 197, 2949, 262, 45402, 22442, 198, 197, 42400, 45402, 22442, 198, 197, 59403, 197, 197, 515, 298, 24195,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestString(t *testing.T) { testCases := []struct { name string broker CeleryBroker backend CeleryBackend taskName string taskFunc interface{} inA string inB string expected string }{ { name: "string addition with redis broker/backend", broker: redisBroker, backen...
explode_data.jsonl/77846
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 805 }
[ 2830, 3393, 703, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 2233, 45985, 256, 46543, 722, 65545, 198, 197, 197, 20942, 220, 46543, 722, 29699, 198, 197, 49115, 675, 914, 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...
5
func TestImageImmutability(t *testing.T) { img := mutate.MediaType(empty.Image, types.OCIManifestSchema1) t.Run("manifest", func(t *testing.T) { // Check that Manifest is immutable. changed, err := img.Manifest() if err != nil { t.Errorf("Manifest() = %v", err) } want := changed.DeepCopy() // Create a c...
explode_data.jsonl/3101
{ "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, 1906, 1427, 6984, 2897, 1155, 353, 8840, 836, 8, 341, 39162, 1669, 67182, 63714, 24216, 7528, 11, 4494, 13, 63983, 38495, 8632, 16, 692, 3244, 16708, 445, 42315, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 322, 4248...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetEventsInRangeWithStreamToken(t *testing.T) { t.Parallel() db := MustCreateDatabase(t) events, _ := SimpleRoom(t, testRoomID, testUserIDA, testUserIDB) MustWriteEvents(t, db, events) latest, err := db.SyncPosition(ctx) if err != nil { t.Fatalf("failed to get SyncPosition: %s", err) } // head toward...
explode_data.jsonl/36038
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 289 }
[ 2830, 3393, 1949, 7900, 76059, 2354, 3027, 3323, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 20939, 1669, 15465, 4021, 5988, 1155, 340, 90873, 11, 716, 1669, 8993, 14003, 1155, 11, 1273, 14003, 915, 11, 1273, 36899, 32, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestSourceToKafkaBrokerToKnativeService(t *testing.T) { client := test.SetupClusterAdmin(t) cleanup := func() { test.CleanupAll(t, client) client.Clients.Eventing.EventingV1().Brokers(testNamespace).Delete(context.Background(), kafkaBrokerName, metav1.DeleteOptions{}) client.Clients.Eventing.SourcesV1().Pi...
explode_data.jsonl/62773
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 950 }
[ 2830, 3393, 3608, 1249, 42, 21883, 65545, 1249, 42, 29738, 1860, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 1273, 39820, 28678, 7210, 1155, 340, 1444, 60639, 1669, 2915, 368, 341, 197, 18185, 727, 60639, 2403, 1155, 11, 2943, 340, 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 TestLocalConfig_Defaults_OK(t *testing.T) { // Arrange testConfig := ` { "ServiceDescription" : { "DisplayName" : "My Service", "Description" : "My Service Desc" }, "Services" : [ { "Path" : "test/path/1" }, {...
explode_data.jsonl/53029
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 450 }
[ 2830, 3393, 7319, 2648, 60336, 82, 8375, 1155, 353, 8840, 836, 8, 341, 197, 322, 40580, 198, 18185, 2648, 1669, 22074, 262, 341, 286, 330, 1860, 5009, 1, 549, 341, 310, 330, 26456, 1, 549, 330, 5050, 5362, 756, 310, 330, 5009, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEncodeMessage(t *testing.T) { // A generated message will be encoded using its XXX_Size and XXX_Marshal // methods pm := &testprotos.Test{ Foo: proto.String("bar"), Array: []int32{0, 1, 2, 3}, S: &testprotos.Simple{ Name: proto.String("baz"), Id: proto.Uint64(12345), }, M: map[string]int...
explode_data.jsonl/38841
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1474 }
[ 2830, 3393, 32535, 2052, 1155, 353, 8840, 836, 8, 341, 197, 322, 362, 7907, 1943, 686, 387, 20498, 1667, 1181, 19975, 45553, 323, 19975, 1245, 28423, 198, 197, 322, 5413, 198, 86511, 1669, 609, 1944, 4391, 436, 8787, 515, 197, 12727, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTracker_pipelinerun_complete(t *testing.T) { var ( pipelineName = "output-pipeline" prName = "output-pipeline-1" ns = "namespace" task1Name = "output-task-1" tr1Name = "output-task-1" tr1Pod = "output-task-1-pod-123456" task2Name = "output-task-2" tr2Name = "output-tas...
explode_data.jsonl/66716
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1288 }
[ 2830, 3393, 31133, 620, 81079, 10453, 359, 27675, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 3223, 8790, 675, 284, 330, 3006, 2268, 8790, 698, 197, 25653, 675, 981, 284, 330, 3006, 2268, 8790, 12, 16, 698, 197, 84041, 1843, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGroupCreateIntegration(t *testing.T) { c := client() users := []User{ { UserName: "ok", FirstName: "ok", LastName: "ok", Email: "test@test.com", ID: "ok", }, } gc, err := c.GroupCreate(&Group{ Name: "test-group", Description: "a test group", Email: "test@v...
explode_data.jsonl/12111
{ "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, 2808, 4021, 52464, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2943, 741, 90896, 1669, 3056, 1474, 515, 197, 197, 515, 298, 197, 18856, 25, 220, 330, 562, 756, 298, 197, 26584, 25, 330, 562, 756, 298, 197, 27920, 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...
4
func TestRedirectsNoLogin(t *testing.T) { defer prepareTestEnv(t)() var redirects = map[string]string{ "/user2/repo1/commits/master": "/user2/repo1/commits/branch/master", "/user2/repo1/src/master": "/user2/repo1/src/branch/master", "/user2/repo1/src/master/file.txt": ...
explode_data.jsonl/76466
{ "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, 17725, 82, 2753, 6231, 1155, 353, 8840, 836, 8, 341, 16867, 10549, 2271, 14359, 1155, 8, 2822, 2405, 71171, 284, 2415, 14032, 30953, 515, 197, 197, 3115, 872, 17, 10758, 5368, 16, 14, 3621, 1199, 23303, 788, 394, 3521, 872...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseConditionMessage(t *testing.T) { t.Parallel() result, errs := ParseProgram(` fun test(n: Int) { pre { n >= 0: "n must be positive" } return n } `) require.Empty(t, errs) utils.AssertEqualWithDiff(t, []ast.Declaration{ &ast.Fu...
explode_data.jsonl/35977
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1770 }
[ 2830, 3393, 14463, 10547, 2052, 1155, 353, 8840, 836, 8, 1476, 3244, 41288, 7957, 2822, 9559, 11, 70817, 1669, 14775, 10690, 61528, 286, 2464, 1273, 1445, 25, 1333, 8, 341, 310, 855, 341, 394, 308, 2604, 220, 15, 25, 330, 77, 1969, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTargetAggregatorsPerCommittee(t *testing.T) { tests := []struct { name string }{ { name: "Good", }, } service, err := prysmgrpc.New(context.Background(), prysmgrpc.WithAddress(os.Getenv("PRYSMGRPC_ADDRESS")), prysmgrpc.WithTimeout(timeout), ) require.NoError(t, err) for _, test := range t...
explode_data.jsonl/4615
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 226 }
[ 2830, 3393, 6397, 9042, 7998, 2973, 3889, 33441, 6547, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 15216, 756, 197, 197, 1583, 197, 630, 52934, 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 TestControllerGetCapabilities(t *testing.T) { d, _ := NewFakeDriver(t) capType := &csi.ControllerServiceCapability_Rpc{ Rpc: &csi.ControllerServiceCapability_RPC{ Type: csi.ControllerServiceCapability_RPC_UNKNOWN, }, } capList := []*csi.ControllerServiceCapability{{ Type: capType, }} d.Cap = capList...
explode_data.jsonl/59386
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 2051, 1949, 55315, 1155, 353, 8840, 836, 8, 341, 2698, 11, 716, 1669, 1532, 52317, 11349, 1155, 340, 1444, 391, 929, 1669, 609, 63229, 29112, 1860, 63746, 2568, 3992, 515, 197, 11143, 3992, 25, 609, 63229, 29112, 1860, 63746...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestH12_Head_ExplicitLen(t *testing.T) { h12Compare{ ReqFunc: (*Client).Head, Handler: func(w ResponseWriter, r *Request) { if r.Method != "HEAD" { t.Errorf("unexpected method %q", r.Method) } w.Header().Set("Content-Length", "1235") }, }.run(t) }
explode_data.jsonl/4747
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 39, 16, 17, 62, 12346, 62, 98923, 11271, 1155, 353, 8840, 836, 8, 341, 9598, 16, 17, 27374, 515, 197, 197, 27234, 9626, 25, 4609, 2959, 568, 12346, 345, 197, 197, 3050, 25, 2915, 3622, 5949, 6492, 11, 435, 353, 1900, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestServer_Push_RejectIfDisabled(t *testing.T) { testServer_Push_RejectSingleRequest(t, func(p http.Pusher, r *http.Request) error { if got, want := p.Push("https://"+r.Host+"/pushed", nil), http.ErrNotSupported; got != want { return fmt.Errorf("Push()=%v, want %v", got, want) } return nil }, S...
explode_data.jsonl/1971
{ "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, 5475, 1088, 1116, 50693, 583, 2679, 25907, 1155, 353, 8840, 836, 8, 341, 18185, 5475, 1088, 1116, 50693, 583, 10888, 1900, 1155, 345, 197, 29244, 1295, 1758, 34981, 261, 11, 435, 353, 1254, 9659, 8, 1465, 341, 298, 743, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvalidAddition(t *testing.T) { tev, fl := initialize(t) defer tev.tearDown() // Append block with invalid number { block := ledger.CreateNextBlock(fl, []*cb.Envelope{{Payload: []byte("My Data")}}) block.Header.Number++ assert.Error(t, fl.Append(block), "Addition of block with invalid number should ...
explode_data.jsonl/35034
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 207 }
[ 2830, 3393, 7928, 2212, 680, 1155, 353, 8840, 836, 8, 341, 197, 665, 85, 11, 1320, 1669, 9468, 1155, 340, 16867, 1013, 85, 31853, 59342, 2822, 197, 322, 29807, 2504, 448, 8318, 1372, 198, 197, 515, 197, 47996, 1669, 46933, 7251, 5847,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIsBanned(t *testing.T) { bannedSamples := []string{"2.144.0.0:0", "2.147.100.100:0", "2.147.255.255:0", "5.112.0.0:0", "5.127.255.255:0"} cleanSamples := []string{"1.1.1.1:0", "73.231.0.156:0", "104.197.111.48:0"} for _, ip := range bannedSamples { if !isBanned(ip) { t.Errorf("IP %s was not banned\n",...
explode_data.jsonl/62197
{ "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, 3872, 33, 7295, 1155, 353, 8840, 836, 8, 341, 2233, 7295, 39571, 1669, 3056, 917, 4913, 17, 13, 16, 19, 19, 13, 15, 13, 15, 25, 15, 497, 330, 17, 13, 16, 19, 22, 13, 16, 15, 15, 13, 16, 15, 15, 25, 15, 497, 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...
5
func TestQuerySelect(t *testing.T) { tb := testutil.NewTB(t) storetestutil.RunSeriesInterestingCases(tb, 200e3, 200e3, func(t testutil.TB, samplesPerSeries, series int) { benchQuerySelect(t, samplesPerSeries, series, true) }) }
explode_data.jsonl/7542
{ "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, 2859, 3379, 1155, 353, 8840, 836, 8, 341, 62842, 1669, 1273, 1314, 7121, 31160, 1155, 340, 57279, 1944, 1314, 16708, 25544, 84315, 37302, 61414, 11, 220, 17, 15, 15, 68, 18, 11, 220, 17, 15, 15, 68, 18, 11, 2915, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEmptyCredGroupsDisableSetgroups(t *testing.T) { cmd := whoamiCmd(t, os.Getuid(), os.Getgid(), false) cmd.SysProcAttr.Credential = &syscall.Credential{} if err := cmd.Run(); err != nil { t.Fatal(err) } }
explode_data.jsonl/36117
{ "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, 3522, 34, 1151, 22173, 25479, 1649, 16753, 1155, 353, 8840, 836, 8, 341, 25920, 1669, 879, 10606, 15613, 1155, 11, 2643, 2234, 2423, 1507, 2643, 2234, 34849, 1507, 895, 340, 25920, 59418, 24508, 13371, 727, 30320, 284, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestHstore(t *testing.T) { db := openTestConn(t) defer db.Close() // quitely create hstore if it doesn't exist _, err := db.Exec("CREATE EXTENSION IF NOT EXISTS hstore") if err != nil { t.Skipf("Skipping hstore tests - hstore extension create failed: %s", err.Error()) } hs := Hstore{} // test for null...
explode_data.jsonl/23327
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1503 }
[ 2830, 3393, 39, 4314, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 1787, 2271, 9701, 1155, 340, 16867, 2927, 10421, 2822, 197, 322, 16835, 974, 1855, 305, 4314, 421, 432, 3171, 944, 3000, 198, 197, 6878, 1848, 1669, 2927, 30798, 445, 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...
8
func TestGetRecentTrades(t *testing.T) { t.Parallel() currencyPair, err := currency.NewPairFromString("BTC-USDT") if err != nil { t.Fatal(err) } _, err = o.GetRecentTrades(currencyPair, asset.Spot) if err != nil { t.Error(err) } }
explode_data.jsonl/30211
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 1949, 25140, 1282, 3452, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1444, 5088, 12443, 11, 1848, 1669, 11413, 7121, 12443, 44491, 445, 59118, 32340, 10599, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRevertOneliner(t *testing.T) { tcases := []struct { in, exp string cmdResult interface{} }{ {in: "create instanceprofile name=stuff", exp: "delete instanceprofile name=stuff"}, {in: "delete instanceprofile name=stuff", exp: "create instanceprofile name=stuff"}, {in: "create appscalingtarget dimen...
explode_data.jsonl/39585
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1333 }
[ 2830, 3393, 693, 1621, 1925, 301, 10453, 1155, 353, 8840, 836, 8, 341, 3244, 23910, 1669, 3056, 1235, 341, 197, 17430, 11, 1343, 256, 914, 198, 197, 25920, 2077, 3749, 16094, 197, 59403, 197, 197, 90, 258, 25, 330, 3182, 2867, 5365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVersion(t *testing.T) { // First, create a new server and connection. serverSocket, clientSocket, err := unet.SocketPair(false) if err != nil { t.Fatalf("socketpair got err %v expected nil", err) } defer clientSocket.Close() // Create a new server and client. s := NewServer(nil) go s.Handle(serverSo...
explode_data.jsonl/2854
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 510 }
[ 2830, 3393, 5637, 1155, 353, 8840, 836, 8, 341, 197, 322, 5512, 11, 1855, 264, 501, 3538, 323, 3633, 624, 41057, 10286, 11, 2943, 10286, 11, 1848, 1669, 650, 295, 52089, 12443, 3576, 340, 743, 1848, 961, 2092, 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...
7
func TestMissingLoggerFromContext(t *testing.T) { notExpected := NopLogger() ctx := context.Background() actual := From(ctx) assert.True(t, actual != notExpected, "unexpected logger instance from context") assert.NotNil(t, actual, "expected non-nil logger") }
explode_data.jsonl/66894
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 85 }
[ 2830, 3393, 25080, 7395, 3830, 1972, 1155, 353, 8840, 836, 8, 341, 97266, 18896, 1669, 451, 453, 7395, 741, 20985, 1669, 2266, 19047, 741, 88814, 1669, 5542, 7502, 340, 6948, 32443, 1155, 11, 5042, 961, 537, 18896, 11, 330, 53859, 5925,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestCollectionParsing(t *testing.T) { ccp, ccpBytes, err := getCollectionConfigFromBytes([]byte(sampleCollectionConfigGood)) assert.NoError(t, err) assert.NotNil(t, ccp) assert.NotNil(t, ccpBytes) conf := ccp.Config[0].GetStaticCollectionConfig() pol, _ := policydsl.FromString("OR('A.member', 'B.member')") ...
explode_data.jsonl/46374
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1642 }
[ 2830, 3393, 6482, 68839, 1155, 353, 8840, 836, 8, 341, 63517, 79, 11, 98897, 7078, 11, 1848, 1669, 633, 6482, 2648, 3830, 7078, 10556, 3782, 32968, 6482, 2648, 15216, 1171, 6948, 35699, 1155, 11, 1848, 340, 6948, 93882, 1155, 11, 98897,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTransfomersImageDefaultConfig(t *testing.T) { th := kusttest_test.MakeHarness(t) makeTransfomersImageBase(th) m := th.Run("/app/base", th.MakeDefaultOptions()) th.AssertActualEqualsExpected(m, ` apiVersion: v1 group: apps kind: Deployment metadata: name: deploy1 spec: template: spec: containe...
explode_data.jsonl/49821
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 683 }
[ 2830, 3393, 3167, 69, 68538, 1906, 3675, 2648, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 595, 590, 1944, 4452, 50133, 74248, 1155, 340, 77438, 3167, 69, 68538, 1906, 3978, 24365, 340, 2109, 1669, 270, 16708, 4283, 676, 26090, 497, 270,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAutomaticHTTP2_ListenAndServe_GetCertificate(t *testing.T) { cert, err := tls.X509KeyPair(internal.LocalhostCert, internal.LocalhostKey) if err != nil { t.Fatal(err) } testAutomaticHTTP2_ListenAndServe(t, &tls.Config{ GetCertificate: func(clientHello *tls.ClientHelloInfo) (*tls.Certificate, error) { ...
explode_data.jsonl/22413
{ "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, 62790, 9230, 17, 27104, 268, 96059, 13614, 33202, 1155, 353, 8840, 836, 8, 341, 1444, 529, 11, 1848, 1669, 55026, 4338, 20, 15, 24, 1592, 12443, 98364, 20856, 3790, 36934, 11, 5306, 20856, 3790, 1592, 340, 743, 1848, 961, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGroupUint(t *testing.T) { v := &Value{data: []uint{uint(1), uint(1), uint(1), uint(1), uint(1), uint(1)}} grouped := v.GroupUint(func(i int, val uint) string { return fmt.Sprintf("%v", i%2 == 0) }).data.(map[string][]uint) assert.Equal(t, 2, len(grouped)) assert.Equal(t, 3, len(grouped["true"])) ass...
explode_data.jsonl/23461
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 159 }
[ 2830, 3393, 2808, 21570, 1155, 353, 8840, 836, 8, 1476, 5195, 1669, 609, 1130, 90, 691, 25, 3056, 2496, 90, 2496, 7, 16, 701, 2622, 7, 16, 701, 2622, 7, 16, 701, 2622, 7, 16, 701, 2622, 7, 16, 701, 2622, 7, 16, 9139, 630, 4426...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBoundedReadWriteSeeker_Seek__DynamicFileSize__SeekEnd_Negative(t *testing.T) { sb := NewSeekableBuffer() // Add twenty bytes. _, err := sb.Write([]byte("01234567890123456789")) log.PanicIf(err) _, err = sb.Seek(0, os.SEEK_SET) log.PanicIf(err) brws, err := NewBoundedReadWriteSeeker(sb, 5, 0) log.Pan...
explode_data.jsonl/21770
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 258 }
[ 2830, 3393, 33, 13082, 58610, 39350, 261, 26920, 1225, 563, 21752, 67649, 563, 39350, 3727, 1604, 15060, 1155, 353, 8840, 836, 8, 341, 24842, 1669, 1532, 39350, 480, 4095, 2822, 197, 322, 2691, 17073, 5820, 624, 197, 6878, 1848, 1669, 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...
3
func TestScopeExpandEvalBlock(t *testing.T) { schema := &configschema.Block{ Attributes: map[string]*configschema.Attribute{ "foo": { Type: cty.String, }, }, BlockTypes: map[string]*configschema.NestedBlock{ "bar": { Nesting: configschema.NestingMap, Block: configschema.Block{ Attribute...
explode_data.jsonl/16186
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2864 }
[ 2830, 3393, 10803, 38946, 54469, 4713, 1155, 353, 8840, 836, 8, 341, 1903, 3416, 1669, 609, 1676, 17349, 28477, 515, 197, 197, 10516, 25, 2415, 14032, 8465, 1676, 17349, 33775, 515, 298, 197, 1, 7975, 788, 341, 571, 27725, 25, 272, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestPriorityQueue_AddUnschedulableIfNotPresent(t *testing.T) { objs := []runtime.Object{highPriNominatedPodInfo.Pod, unschedulablePodInfo.Pod} q := NewTestQueueWithObjects(context.Background(), newDefaultQueueSort(), objs) q.Add(highPriNominatedPodInfo.Pod) q.AddUnschedulableIfNotPresent(newQueuedPodInfoForLoo...
explode_data.jsonl/68184
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 597 }
[ 2830, 3393, 20555, 7554, 21346, 1806, 72243, 360, 480, 2679, 2623, 21195, 1155, 353, 8840, 836, 8, 341, 22671, 82, 1669, 3056, 22255, 8348, 90, 11892, 92878, 45, 49515, 23527, 1731, 88823, 11, 6975, 2397, 360, 480, 23527, 1731, 88823, 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...
6
func TestRegistry(t *testing.T) { p := &testProtocol{} if l := len(All()); l != 0 { t.Fatal("failed to register") } if got := Get(p.Name()); got != nil { t.Fatal("already registered") } Register(p) if l := len(All()); l != 1 { t.Fatal("failed to register") } if got := Get(p.Name()); got == nil { t.Fata...
explode_data.jsonl/4144
{ "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, 15603, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 609, 1944, 20689, 16094, 743, 326, 1669, 2422, 7, 2403, 13426, 326, 961, 220, 15, 341, 197, 3244, 26133, 445, 16091, 311, 4161, 1138, 197, 532, 743, 2684, 1669, 2126, 1295, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenRandomString(t *testing.T) { rand.Seed(time.Now().UnixNano()) r, err := regexp.Compile("^[a-zA-Z0-9]*$") if err != nil { panic(err) } for i := -1; i <= 64; i++ { result := GenRandomString(i) if i < 1 { if result != "" { t.Fatalf("expected GenRandomString(%d) to return empty string, got %...
explode_data.jsonl/43277
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 282 }
[ 2830, 3393, 9967, 13999, 703, 1155, 353, 8840, 836, 8, 341, 7000, 437, 5732, 291, 9730, 13244, 1005, 55832, 83819, 12367, 7000, 11, 1848, 1669, 41877, 89323, 445, 27736, 64, 21088, 11171, 15, 12, 24, 8465, 87653, 743, 1848, 961, 2092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewRequestSetsAccept(t *testing.T) { r := NewRequest(nil, "get", &url.URL{Path: "/path/"}, "", ContentConfig{}, Serializers{}, nil, nil, 0) if r.headers.Get("Accept") != "" { t.Errorf("unexpected headers: %#v", r.headers) } r = NewRequest(nil, "get", &url.URL{Path: "/path/"}, "", ContentConfig{ContentTyp...
explode_data.jsonl/13245
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 183 }
[ 2830, 3393, 3564, 1900, 30175, 16646, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 1900, 27907, 11, 330, 455, 497, 609, 1085, 20893, 90, 1820, 25, 3521, 2343, 11225, 2137, 7342, 8883, 2648, 22655, 11215, 12230, 22655, 2092, 11, 2092,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapKeySet(t *testing.T) { m := Map[string, int]{ "one": 1, "two": 2, "three": 3, } set := m.KeySet() if len(set) != 3 { t.Fatalf("key set should equal map length") } if !set.Has("one") || !set.Has("two") || !set.Has("three") { t.Fatalf("key set is missing data") } }
explode_data.jsonl/45347
{ "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, 2227, 1592, 1649, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 5027, 14032, 11, 526, 60, 515, 197, 197, 1, 603, 788, 220, 16, 345, 197, 197, 1, 19789, 788, 220, 17, 345, 197, 197, 1, 27856, 788, 220, 18, 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...
5
func TestWithMarkup(t *testing.T) { src := ` Notes ----- a *b* **c** <*>d<*> ` expected := ` Doc Section[Notes] Paragraph Text[a ] Inline[i "b"] Text[ ] Inline[b "c"] Text[ <*>d<*>] ` assertParse(t, expected, src) }
explode_data.jsonl/21271
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 125 }
[ 2830, 3393, 2354, 53088, 1155, 353, 8840, 836, 8, 341, 41144, 1669, 22074, 220, 18068, 198, 220, 79949, 64, 353, 65, 9, 3070, 66, 334, 69483, 67, 78822, 397, 3989, 42400, 1669, 22074, 9550, 198, 197, 9620, 58, 21667, 921, 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 TestURLScheme(t *testing.T) { var ( are = is.New(t) dt = map[string]struct { in string out string }{ "default": {}, "unknown": {in: "oops"}, "git": {in: vcs.Git, out: "git://"}, "http": {in: vcs.HTTP, out: "http://"}, "https": {in: vcs.HTTPS, out: "https://"}, "ssh+git": {...
explode_data.jsonl/14827
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 3144, 28906, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 197, 546, 284, 374, 7121, 1155, 340, 197, 97980, 220, 284, 2415, 14032, 60, 1235, 341, 298, 17430, 220, 914, 198, 298, 13967, 914, 198, 197, 197, 59403, 298, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCanUseDefaults(t *testing.T) { var ( testbody = `{"jsonrpc":"2.0", "result":"boogaloo"}` requestBody []byte ) server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { b, err := ioutil.ReadAll(r.Body) if err != nil && err != io.EOF { t.Fatal(err) } reque...
explode_data.jsonl/1078
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 496 }
[ 2830, 3393, 6713, 10253, 16273, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 18185, 2599, 262, 284, 1565, 4913, 2236, 29414, 3252, 17, 13, 15, 497, 330, 1382, 3252, 749, 538, 278, 2624, 9207, 3989, 197, 23555, 5444, 3056, 3782, 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...
3
func TestHaGroupDeleteParams_WithHTTPClient(t *testing.T) { p := NewHaGroupDeleteParams() cli := &http.Client{} p = p.WithHTTPClient(cli) require.NotNil(t, p.HTTPClient) assert.Equal(t, cli, p.HTTPClient) }
explode_data.jsonl/7754
{ "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, 32942, 2808, 6435, 4870, 62, 2354, 9230, 2959, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 1532, 32942, 2808, 6435, 4870, 741, 86448, 1669, 609, 1254, 11716, 16094, 3223, 284, 281, 26124, 9230, 2959, 70249, 340, 17957, 93882, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestWorkerAPIAuth(t *testing.T) { t.Run("certificate signed by a trusted CA", func(t *testing.T) { cases := []struct { caseDesc string subj string success bool }{ {"valid CN 1", "/CN=worker.osbuild.org", true}, {"valid CN 2", "/CN=localhost", true}, {"invalid CN", "/CN=example.com", fal...
explode_data.jsonl/65321
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 594 }
[ 2830, 3393, 21936, 7082, 5087, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 63586, 8499, 553, 264, 21789, 9183, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1444, 2264, 1669, 3056, 1235, 341, 298, 2722, 11065, 914, 198, 298, 28624...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestListListeners(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleListenerListSuccessfully(t) pages := 0 err := listeners.List(fake.ServiceClient(), listeners.ListOpts{}).EachPage(func(page pagination.Page) (bool, error) { pages++ actual, err := listeners.ExtractListeners(page) if err != ...
explode_data.jsonl/27548
{ "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, 852, 31570, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 197, 6999, 2743, 852, 35959, 1155, 692, 3223, 1134, 1669, 220, 15, 198, 9859, 1669, 23562, 5814, 74138, 13860, 2959, 150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWrite(t *testing.T) { i := NewGrafanaIni(&testGrafanaConfig) sb, sha := i.Write() hash := sha256.New() _, err := io.WriteString(hash, testIni) require.NoError(t, err) require.Equal(t, sha, fmt.Sprintf("%x", hash.Sum(nil))) require.Equal(t, sb, testIni) }
explode_data.jsonl/24525
{ "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, 7985, 1155, 353, 8840, 836, 8, 341, 8230, 1669, 1532, 38, 15453, 3362, 43325, 2099, 1944, 38, 15453, 3362, 2648, 340, 24842, 11, 15870, 1669, 600, 4073, 2822, 50333, 1669, 15870, 17, 20, 21, 7121, 741, 197, 6878, 1848, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestForceCloseFailLocalDataLoss(t *testing.T) { t.Parallel() aliceChannel, _, cleanUp, err := CreateTestChannels( channeldb.SingleFunderBit, ) if err != nil { t.Fatalf("unable to create test channels: %v", err) } defer cleanUp() // Now that we have our set of channels, we'll modify the channel state ...
explode_data.jsonl/72510
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 287 }
[ 2830, 3393, 18573, 7925, 19524, 7319, 1043, 39838, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 63195, 9629, 11, 8358, 4240, 2324, 11, 1848, 1669, 4230, 2271, 35925, 1006, 197, 23049, 1020, 783, 65, 23119, 37, 7995, 8344,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidatePersistentVolumeSpec(t *testing.T) { fsmode := core.PersistentVolumeFilesystem blockmode := core.PersistentVolumeBlock scenarios := map[string]struct { isExpectedFailure bool isInlineSpec bool pvSpec *core.PersistentVolumeSpec }{ "pv-pvspec-valid": { isExpectedFailure: fa...
explode_data.jsonl/25618
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2136 }
[ 2830, 3393, 17926, 53194, 18902, 8327, 1155, 353, 8840, 836, 8, 341, 1166, 3563, 534, 1669, 6200, 61655, 18902, 1703, 8948, 198, 47996, 8516, 1669, 6200, 61655, 18902, 4713, 198, 29928, 60494, 1669, 2415, 14032, 60, 1235, 341, 197, 19907,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSyncer_SyncAny_reject(t *testing.T) { syncer, connSnapshot := setupOfferSyncer(t) // s22 is tried first, then s12, then s11, then errNoSnapshots s22 := &snapshot{Height: 2, Format: 2, Chunks: 3, Hash: []byte{1, 2, 3}} s12 := &snapshot{Height: 1, Format: 2, Chunks: 3, Hash: []byte{1, 2, 3}} s11 := &snapsh...
explode_data.jsonl/46287
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 540 }
[ 2830, 3393, 12154, 261, 1098, 1721, 8610, 1288, 583, 1155, 353, 8840, 836, 8, 341, 1903, 1721, 261, 11, 4534, 15009, 1669, 6505, 39462, 12154, 261, 1155, 692, 197, 322, 274, 17, 17, 374, 6679, 1156, 11, 1221, 274, 16, 17, 11, 1221, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReaderConnectError(t *testing.T) { client, err := NewClient(ClientOptions{ URL: "pulsar://invalid-hostname:6650", }) assert.Nil(t, err) defer client.Close() reader, err := client.CreateReader(ReaderOptions{ Topic: "my-topic", StartMessageID: LatestMessageID(), }) // Expect error in cr...
explode_data.jsonl/6383
{ "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, 5062, 14611, 1454, 1155, 353, 8840, 836, 8, 341, 25291, 11, 1848, 1669, 1532, 2959, 46851, 3798, 515, 197, 79055, 25, 330, 79, 14295, 277, 1110, 11808, 38589, 606, 25, 21, 21, 20, 15, 756, 197, 8824, 6948, 59678, 1155, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBulkIndexerIntegration(t *testing.T) { body := `{"body":"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."}` testCases := []...
explode_data.jsonl/74666
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3140 }
[ 2830, 3393, 88194, 1552, 261, 52464, 1155, 353, 8840, 836, 8, 341, 35402, 1669, 1565, 4913, 2599, 3252, 32783, 26342, 23655, 2444, 27212, 11, 35140, 56681, 30060, 11, 10923, 653, 79122, 18965, 86404, 8621, 72204, 1842, 57296, 58917, 85927, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetMessage_Post(t *testing.T) { // Assert body := bytes.NewBufferString("GRUMBYCAT") req, err := http.NewRequest("POST", "https://api.secrethub.io/repos/jdoe/catpictures", body) assert.OK(t, err) req.Header.Set("Date", "Fri, 10 Mar 2017 16:25:54 CET") bodySum := sha256.Sum256(body.Bytes()) encodedBod...
explode_data.jsonl/15487
{ "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, 1949, 2052, 66726, 1155, 353, 8840, 836, 8, 1476, 197, 322, 5319, 198, 35402, 1669, 5820, 7121, 4095, 703, 445, 8626, 2794, 19912, 28196, 5130, 24395, 11, 1848, 1669, 1758, 75274, 445, 2946, 497, 330, 2428, 1110, 2068, 4523,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNs(t *testing.T) { ev := eval.NewEvaler() ed := NewEditor(os.Stdin, os.Stdout).(*editor) ev.Global.AddNs("edit", ed.Ns()) ev.EvalSource(eval.NewScriptSource("[t]", "[t]", "edit:max-height = 20")) if ed.core.Config.RenderConfig.MaxHeight != 20 { t.Errorf("Failed to set MaxHeight to 20 via binding") } }
explode_data.jsonl/40145
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 47360, 1155, 353, 8840, 836, 8, 341, 74837, 1669, 5603, 7121, 54469, 261, 741, 197, 291, 1669, 1532, 9410, 9638, 36086, 258, 11, 2643, 83225, 568, 4071, 8868, 340, 74837, 27381, 1904, 47360, 445, 3587, 497, 1578, 2067, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInteractiveBackend_SelectStarterProject(t *testing.T) { type fields struct { asker func(ctrl *gomock.Controller) asker.Asker registryClient registry.Client } type args struct { devfile func() parser.DevfileObj flags map[string]string } tests := []struct { name string fields fiel...
explode_data.jsonl/48279
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1140 }
[ 2830, 3393, 71686, 29699, 58073, 623, 5295, 7849, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 197, 1073, 261, 688, 2915, 62100, 353, 36083, 1176, 29112, 8, 2548, 261, 875, 4886, 261, 198, 197, 197, 29172, 2959, 19424, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestProcessInfoIssue22068(t *testing.T) { store, clean := realtikvtest.CreateMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("create table t(a int)") var wg util.WaitGroupWrapper wg.Run(func() { tk.MustQuery("select 1 from t where a = (select sleep...
explode_data.jsonl/5750
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 7423, 1731, 42006, 17, 17, 15, 21, 23, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1931, 83, 1579, 85, 1944, 7251, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 741, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBuildDenyVariable(t *testing.T) { invalidType := &ingress.Ingress{} expected := "" actual := buildDenyVariable(invalidType) if expected != actual { t.Errorf("Expected '%v' but returned '%v'", expected, actual) } a := buildDenyVariable("host1.example.com_/.well-known/acme-challenge") b := buildDenyVa...
explode_data.jsonl/80584
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 11066, 23619, 88, 7827, 1155, 353, 8840, 836, 8, 341, 197, 11808, 929, 1669, 609, 287, 673, 5337, 2483, 16094, 42400, 1669, 8389, 88814, 1669, 1936, 23619, 88, 7827, 5900, 1891, 929, 692, 743, 3601, 961, 5042, 341, 197, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestParsePublicKeys(t *testing.T) { if testing.Short() { t.SkipNow() return } config := &quick.Config{ MaxCount: testutil.ENCODE_REPEAT_COUNT, } err := quick.Check(parsePublicKeyOk, config) testutil.AssertVerboseErrorIsNil(t, err) }
explode_data.jsonl/34474
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 14463, 12676, 8850, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 7039, 741, 197, 853, 198, 197, 630, 25873, 1669, 609, 27763, 10753, 515, 197, 197, 5974, 2507, 25, 1273, 1314, 52746, 14866, 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...
2
func TestControllerDeploymentRegistry(t *testing.T) { helmChartPath := "../charts/core" options := &helm.Options{ SetValues: map[string]string{ "registry": "registry.neuvector.com", }, } // Test ingress out := helm.RenderTemplate(t, options, helmChartPath, []string{"templates/controller-deployment.yaml"})...
explode_data.jsonl/55055
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 263 }
[ 2830, 3393, 2051, 75286, 15603, 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, 29172, 788, 330, 291...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ResolveString(t *testing.T) { testCases := []struct { name string path string attributes map[string]interface{} result string err error }{ { name: "empty attributes should produce error", path: "x.y.z", attributes: map[string]interface{}{}, result: ...
explode_data.jsonl/79609
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 744 }
[ 2830, 3393, 62, 56808, 703, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 26781, 981, 914, 198, 197, 197, 12340, 2415, 14032, 31344, 16094, 197, 9559, 257, 914, 198, 197, 9859, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMaximum(t *testing.T) { GenerateValuesAsYaml(t, "maximum.test.schema.json", func(console *tests.ConsoleWrapper, donec chan struct{}) { defer close(donec) // Test boolean type console.ExpectString("Enter a value for numberValue") console.SendLine("11.1") console.ExpectString("Sorry, your reply...
explode_data.jsonl/61753
{ "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, 27309, 1155, 353, 8840, 836, 8, 341, 197, 31115, 6227, 2121, 56, 9467, 1155, 11, 330, 39187, 5958, 30892, 4323, 756, 197, 29244, 52818, 353, 23841, 46298, 11542, 11, 2814, 66, 26023, 2036, 28875, 341, 298, 16867, 3265, 34232...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReload(t *testing.T) { ctx := context.TODO() // Create BananaBoatBot cloneCfg := stdConfig b := bot.NewBananaBoatBot(ctx, &cloneCfg) defer b.Close(ctx) // Say hello b.HandleHandlers(ctx, "test", &irc.Message{ Command: irc.PRIVMSG, Params: []string{"testbot1", "HELLO"}, }) // Read response svrI, ...
explode_data.jsonl/53606
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 482 }
[ 2830, 3393, 50035, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 90988, 741, 197, 322, 4230, 75824, 1233, 266, 23502, 198, 197, 19982, 42467, 1669, 1460, 2648, 198, 2233, 1669, 10924, 7121, 50241, 3362, 1233, 266, 23502, 7502, 11, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestBasic(t *testing.T) { l := NewSkiplist(arenaSize, new(y.DefaultKeyComparator)) val1 := newValue(42) val2 := newValue(52) val3 := newValue(62) val4 := newValue(72) // Try inserting values. // Somehow require.Nil doesn't work when checking for unsafe.Pointer(nil). l.Put(y.KeyWithTs([]byte("key1"), 0), y...
explode_data.jsonl/49650
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 547 }
[ 2830, 3393, 15944, 1155, 353, 8840, 836, 8, 341, 8810, 1669, 1532, 50, 6642, 39934, 7, 30527, 1695, 11, 501, 7021, 13275, 1592, 38658, 1171, 19302, 16, 1669, 24174, 7, 19, 17, 340, 19302, 17, 1669, 24174, 7, 20, 17, 340, 19302, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetContainerInstanceTagsFromEC2APIFailToDescribeECSTagsForInstance(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() ec2MetadataClient := mock_ec2.NewMockEC2MetadataClient(ctrl) ec2Client := mock_ec2.NewMockClient(ctrl) agent := &ecsAgent{ ec2MetadataClient: ec2MetadataClient, ec2C...
explode_data.jsonl/41605
{ "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, 1949, 4502, 2523, 15930, 3830, 7498, 17, 7082, 19524, 1249, 74785, 7498, 784, 2032, 2461, 2523, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 197, 757, 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 TestObjectWithRelation(t *testing.T) { assertParseOneTerm(t, "relation term value", `{"x": 1+1}`, ObjectTerm( Item(StringTerm("x"), CallTerm(RefTerm(VarTerm("plus")), IntNumberTerm(1), IntNumberTerm(1))), )) assertParseError(t, "invalid relation term value", `{"x": 0= }`) }
explode_data.jsonl/50454
{ "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, 1190, 2354, 33790, 1155, 353, 8840, 836, 8, 341, 6948, 14463, 3966, 17249, 1155, 11, 330, 22221, 4647, 897, 497, 1565, 4913, 87, 788, 220, 16, 10, 16, 28350, 3002, 17249, 1006, 197, 61574, 2242, 17249, 445, 87, 3975, 7143,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPodAutoscalerDuckTypes(t *testing.T) { tests := []struct { name string t duck.Implementable }{{ name: "conditions", t: &duckv1beta1.Conditions{}, }} for _, test := range tests { t.Run(test.name, func(t *testing.T) { err := duck.VerifyType(&PodAutoscaler{}, test.t) if err != nil { ...
explode_data.jsonl/32161
{ "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, 23527, 19602, 436, 63084, 35, 1942, 4173, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 3244, 262, 35985, 26914, 2764, 480, 198, 197, 15170, 515, 197, 11609, 25, 330, 16495, 756, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetOAuthApps(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() Client := th.Client AdminClient := th.SystemAdminClient defaultRolePermissions := th.SaveDefaultRolePermissions() enableOAuthServiceProvider := th.App.Config().ServiceSettings.EnableOAuthServiceProvider defer func() { th.Resto...
explode_data.jsonl/30126
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 771 }
[ 2830, 3393, 1949, 57850, 53602, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 198, 197, 7210, 2959, 1669, 270, 16620, 7210, 2959, 271, 11940, 9030, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_DeleteNilId(t *testing.T) { // arrange store := &orderTestRepo{ DeleteResult: struct{ Err error }{Err: nil}, } svr := api.NewOrderServer(store) ctx := context.Background() // act _, err := svr.Delete(ctx, &ordercomm.DeleteOrderRequest{Id: uuid.Nil.String()}) // assert if err == nil { t.Fatalf("...
explode_data.jsonl/36872
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 226 }
[ 2830, 3393, 57418, 19064, 764, 1155, 353, 8840, 836, 8, 341, 197, 322, 30893, 198, 57279, 1669, 609, 1358, 2271, 25243, 515, 197, 96672, 2077, 25, 2036, 90, 15495, 1465, 335, 90, 7747, 25, 2092, 1583, 197, 532, 1903, 18920, 1669, 6330...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReplacePE32(t *testing.T) { f := parseImage(t) // Apply the visitor. replace := &ReplacePE32{ Predicate: func(f *uefi.File, name string) bool { return f.Header.UUID == *testGUID }, NewPE32: []byte("banana"), } if err := replace.Run(f); err != nil { t.Fatal(err) } // We expect one match. if...
explode_data.jsonl/78103
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 339 }
[ 2830, 3393, 23107, 1740, 18, 17, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 4715, 1906, 1155, 692, 197, 322, 20552, 279, 20181, 624, 197, 8156, 1669, 609, 23107, 1740, 18, 17, 515, 197, 10025, 16874, 25, 2915, 955, 353, 361, 9983, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMSSQLQueryInit(t *testing.T) { MSSQLQuery, ok := NewSqlserverSQLQuery(sMSSQLQuery) if ok != nil { t.Fail() } MSSQLQuery.Init() }
explode_data.jsonl/22806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 65 }
[ 2830, 3393, 44, 1220, 3588, 2859, 3803, 1155, 353, 8840, 836, 8, 341, 9209, 1220, 3588, 2859, 11, 5394, 1669, 1532, 8269, 4030, 6688, 2859, 1141, 44, 1220, 3588, 2859, 340, 743, 5394, 961, 2092, 341, 197, 3244, 57243, 741, 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 ]
2
func TestDecoder(t *testing.T) { for _, p := range pairs { decoder := NewDecoder(StdEncoding, strings.NewReader(p.encoded)) dbuf := make([]byte, StdEncoding.DecodedLen(len(p.encoded))) count, err := decoder.Read(dbuf) if err != nil && err != io.EOF { t.Fatal("Read failed", err) } testEqual(t, "Read from...
explode_data.jsonl/35053
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 271 }
[ 2830, 3393, 20732, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 281, 1669, 2088, 13530, 341, 197, 197, 48110, 1669, 1532, 20732, 7, 22748, 14690, 11, 9069, 68587, 1295, 13, 19329, 1171, 197, 20939, 1704, 1669, 1281, 10556, 3782, 11, 42517,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func Test_Compile(t *testing.T) { if _, err := os.Stat(*cm); os.IsNotExist(err) { t.Fatalf("Invalid cm path %q err: %s", *cm, err) } }
explode_data.jsonl/4024
{ "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, 16946, 12192, 1155, 353, 8840, 836, 8, 341, 743, 8358, 1848, 1669, 2643, 53419, 4071, 6226, 1215, 2643, 4506, 45535, 3964, 8, 341, 197, 3244, 30762, 445, 7928, 9961, 1815, 1018, 80, 1848, 25, 1018, 82, 497, 353, 6226, 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 ]
2
func TestAddAppVersion(t *testing.T) { assert := assert.New(t) db := model.AddAppVersion(1, "3.69") if assert.NotNil(db) { assert.Equal(nil, db.Error, "they should be equal") } }
explode_data.jsonl/53341
{ "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, 2212, 2164, 5637, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 20939, 1669, 1614, 1904, 2164, 5637, 7, 16, 11, 330, 18, 13, 21, 24, 5130, 743, 2060, 93882, 9791, 8, 341, 197, 6948, 12808, 27907, 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 ]
2
func TestMoveBatchChange(t *testing.T) { if testing.Short() { t.Skip() } ctx := context.Background() db := dbtesting.GetDB(t) user := ct.CreateTestUser(t, db, true) userID := user.ID orgName := "move-batch-change-test" orgID := ct.InsertTestOrg(t, db, orgName) cstore := store.New(db) batchSpec := &batc...
explode_data.jsonl/13590
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 996 }
[ 2830, 3393, 9860, 21074, 4072, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 741, 197, 630, 20985, 1669, 2266, 19047, 741, 20939, 1669, 2927, 8840, 2234, 3506, 1155, 692, 19060, 1669, 20251, 7251, 2271, 147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProtocol_HandleConsignmentTransfer(t *testing.T) { require := require.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() tests := []struct { bucketOwner string blkHeight uint64 to address.Address // consignment fields nilPayload bool consignType string reclaim string ...
explode_data.jsonl/64536
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2707 }
[ 2830, 3393, 20689, 42714, 15220, 3531, 21970, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 340, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 78216, 1669, 3056, 1235, 341, 197, 2233, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDataDestinations(t *testing.T) { ctx := NewContext(nil) Convey("Given an empty data destination", t, func() { dsts := newDataDestinations(NTBox, "test_component") t := &Tuple{ InputName: "test_component", Data: data.Map{ "v": data.Int(1), }, } Convey("When sending a tuple", func() { ...
explode_data.jsonl/38417
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2150 }
[ 2830, 93200, 34830, 12634, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1532, 1972, 27907, 692, 93070, 5617, 445, 22043, 458, 4287, 821, 9106, 497, 259, 11, 2915, 368, 341, 197, 2698, 36279, 1669, 51523, 34830, 12634, 7, 6408, 1611, 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 TestErrors(t *testing.T) { // None of these tests should make it to calling the service. res := &Resolver{Client: fakeClient{}} tests := []struct { req *linkpb.LinkRequest want codes.Code }{ // Various missing parameters should report INVALID_ARGUMENT. {new(linkpb.LinkRequest), codes.InvalidArgument},...
explode_data.jsonl/8537
{ "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, 13877, 1155, 353, 8840, 836, 8, 341, 197, 322, 2240, 315, 1493, 7032, 1265, 1281, 432, 311, 8098, 279, 2473, 624, 10202, 1669, 609, 18190, 90, 2959, 25, 12418, 2959, 6257, 532, 78216, 1669, 3056, 1235, 341, 197, 24395, 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 TestGetHostname(t *testing.T) { // Reset memory counters helpers.ResetMemoryStats() code := fmt.Sprintf(` with open(r'%s', 'w') as f: name = datadog_agent.get_hostname() if sys.version_info.major == 2: assert type(name) == type(b"") else: assert type(name) == type(u"") f.write(name) `, tmpfile....
explode_data.jsonl/24542
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 1949, 88839, 1155, 353, 8840, 836, 8, 341, 197, 322, 16932, 4938, 31532, 198, 197, 21723, 36660, 10642, 16635, 2822, 43343, 1669, 8879, 17305, 61528, 46948, 1787, 2601, 36165, 82, 516, 364, 86, 863, 438, 282, 510, 197, 11609...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVTGateExecuteBatchKeyspaceIds(t *testing.T) { ks := "TestVTGateExecuteBatchKeyspaceIds" shard1 := "-20" shard2 := "20-40" createSandbox(ks) hcVTGateTest.Reset() sbc1 := hcVTGateTest.AddTestTablet("aa", "1.1.1.1", 1001, ks, shard1, topodatapb.TabletType_MASTER, true, 1, nil) hcVTGateTest.AddTestTablet("a...
explode_data.jsonl/7836
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 930 }
[ 2830, 3393, 20457, 42318, 17174, 21074, 8850, 1306, 12701, 1155, 353, 8840, 836, 8, 341, 197, 2787, 1669, 330, 2271, 20457, 42318, 17174, 21074, 8850, 1306, 12701, 698, 36196, 567, 16, 1669, 6523, 17, 15, 698, 36196, 567, 17, 1669, 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...
6