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 TestAddAddress(t *testing.T) { newbase := Base{} newbase.AddAddress("Gibson", "LTC", "LTCWALLETTEST", 0.02) portfolio := GetPortfolio() portfolio.SeedPortfolio(newbase) if !portfolio.AddressExists("Gibson") { t.Error("Test Failed - portfolio_test.go - AddAddress error") } // Test updating balance to <= 0...
explode_data.jsonl/33741
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 205 }
[ 2830, 3393, 2212, 4286, 1155, 353, 8840, 836, 8, 341, 8638, 3152, 1669, 5351, 16094, 8638, 3152, 1904, 4286, 445, 38, 579, 930, 497, 330, 43, 7749, 497, 330, 43, 7749, 54, 969, 20756, 10033, 497, 220, 15, 13, 15, 17, 340, 197, 271...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateStream(t *testing.T) { defer cleanupStorage(t) // Use a central NATS server. ns := natsdTest.RunDefaultServer() defer ns.Shutdown() // Configure server. s1Config := getTestConfig("a", true, 5050) s1 := runServerWithConfig(t, s1Config) defer s1.Stop() getMetadataLeader(t, 10*time.Second, s1) ...
explode_data.jsonl/34459
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 4021, 3027, 1155, 353, 8840, 836, 8, 341, 16867, 21290, 5793, 1155, 692, 197, 322, 5443, 264, 8622, 18248, 50, 3538, 624, 84041, 1669, 308, 1862, 67, 2271, 16708, 3675, 5475, 741, 16867, 12268, 10849, 18452, 2822, 197, 322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPeerConnection_ShutdownNoDTLS(t *testing.T) { dtlsMatchFunc := mux.MatchDTLS defer func() { mux.MatchDTLS = dtlsMatchFunc }() // Drop all incoming DTLS traffic mux.MatchDTLS = func([]byte) bool { return false } lim := test.TimeOut(time.Second * 10) defer lim.Stop() api := NewAPI() offerPC, ans...
explode_data.jsonl/37346
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 368 }
[ 2830, 3393, 30888, 4526, 36578, 18452, 2753, 10599, 7268, 1155, 353, 8840, 836, 8, 341, 2698, 34488, 8331, 9626, 1669, 59807, 36062, 10599, 7268, 198, 16867, 2915, 368, 341, 197, 2109, 2200, 36062, 10599, 7268, 284, 7594, 4730, 8331, 9626...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBadDockerHostConfigRawConfig(t *testing.T) { for _, badHostConfig := range []string{"malformed", `{"Privileged": "wrongType"}`} { testTask := Task{ Arn: "arn:aws:ecs:us-east-1:012345678910:task/c09f0188-7f87-4b0f-bfc3-16296622b6fe", Family: "myFamily", Version: "1", Containers: []*apicontai...
explode_data.jsonl/37187
{ "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, 17082, 35, 13659, 9296, 2648, 20015, 2648, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 3873, 9296, 2648, 1669, 2088, 3056, 917, 4913, 14649, 10155, 497, 1565, 4913, 32124, 68431, 788, 330, 34870, 929, 1, 53944, 341, 197, 18185...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNoOperationsReturnOutOfLoop(t *testing.T) { state := makeState() state.isShutdown() state.getStats("foo") state.getHash(1) state.getPendingHashCt() state.logResponse("foo", 1) state.doHash("foo", 0) state.isShutdown() }
explode_data.jsonl/67654
{ "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, 2753, 35120, 5598, 31731, 14620, 1155, 353, 8840, 836, 8, 341, 24291, 1669, 1281, 1397, 741, 24291, 2079, 62004, 741, 24291, 670, 16635, 445, 7975, 1138, 24291, 670, 6370, 7, 16, 340, 24291, 670, 32027, 6370, 34, 83, 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...
1
func TestNewHTTPBearerToken(t *testing.T) { server := httptest.NewServer( http.HandlerFunc( func(w http.ResponseWriter, r *http.Request) { expected := "Bearer 1234" received := r.Header.Get("Authorization") if expected != received { t.Fatalf("Authorization header was not set correctly: expected '...
explode_data.jsonl/16311
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 255 }
[ 2830, 3393, 3564, 9230, 26399, 3323, 1155, 353, 8840, 836, 8, 341, 41057, 1669, 54320, 70334, 7121, 5475, 1006, 197, 28080, 89164, 1006, 298, 29244, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 571, 42400, 1669, 330, 26399, 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...
2
func TestShouldNotFindAnyContextsInEmptyFile(t *testing.T) { actual := astContextParse(`package main`, t) if len(actual) != 0 { t.Fatalf("expected no contexts to be found, but there was some: %v", actual) } }
explode_data.jsonl/59037
{ "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, 14996, 2623, 9885, 8610, 1972, 82, 641, 3522, 1703, 1155, 353, 8840, 836, 8, 341, 88814, 1669, 11763, 1972, 14463, 5809, 1722, 1887, 7808, 259, 692, 743, 2422, 29721, 8, 961, 220, 15, 341, 197, 3244, 30762, 445, 7325, 902,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUserStoreDelete(t *testing.T) { Setup() u1 := &model.User{} u1.Email = model.NewId() Must(store.User().Save(u1)) Must(store.Team().SaveMember(&model.TeamMember{TeamId: model.NewId(), UserId: u1.Id})) if err := (<-store.User().PermanentDelete(u1.Id)).Err; err != nil { t.Fatal(err) } }
explode_data.jsonl/5103
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 128 }
[ 2830, 3393, 1474, 6093, 6435, 1155, 353, 8840, 836, 8, 341, 197, 21821, 2822, 10676, 16, 1669, 609, 2528, 7344, 16094, 10676, 16, 24066, 284, 1614, 7121, 764, 741, 9209, 590, 31200, 7344, 1005, 8784, 8154, 16, 1171, 9209, 590, 31200, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCurrentContextManifestMetadata(t *testing.T) { expectedMeta := &config.Metadata{ Inventory: &config.InventoryMeta{ Path: "manifests/site/inventory", }, PhaseMeta: &config.PhaseMeta{ Path: "manifests/site/phases", }, } conf, cleanup := testutil.InitConfig(t) defer cleanup(t) tests := []struct...
explode_data.jsonl/57911
{ "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, 5405, 1972, 38495, 14610, 1155, 353, 8840, 836, 8, 341, 42400, 12175, 1669, 609, 1676, 46475, 515, 197, 197, 22319, 25, 609, 1676, 74260, 12175, 515, 298, 69640, 25, 330, 42315, 82, 47881, 17996, 7223, 756, 197, 197, 1583, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmit(t *testing.T) { eventData := TektonStepCloudEvent{ PodRef: &corev1.ObjectReference{ APIVersion: "v1", Kind: "Pod", Name: "test-name", Namespace: "test-namespace", }, Log: "this is log", Step: &v1beta1.Step{}, StepState: &v1beta1.StepState{}, } eventTypes :...
explode_data.jsonl/537
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 883 }
[ 2830, 3393, 36, 1763, 1155, 353, 8840, 836, 8, 341, 28302, 1043, 1669, 55434, 777, 8304, 16055, 1556, 515, 197, 10025, 347, 3945, 25, 609, 98645, 16, 8348, 8856, 515, 298, 197, 7082, 5637, 25, 330, 85, 16, 756, 298, 197, 10629, 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...
3
func TestScalarBls12377G1One(t *testing.T) { bls12377G1 := BLS12377G1() sc := bls12377G1.Scalar.One() require.True(t, sc.IsOne()) require.True(t, sc.IsOdd()) }
explode_data.jsonl/15747
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 82 }
[ 2830, 3393, 20639, 33, 4730, 16, 17, 18, 22, 22, 38, 16, 3966, 1155, 353, 8840, 836, 8, 341, 96421, 82, 16, 17, 18, 22, 22, 38, 16, 1669, 425, 7268, 16, 17, 18, 22, 22, 38, 16, 741, 29928, 1669, 1501, 82, 16, 17, 18, 22, 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...
1
func TestDequeueLeavesGuardInterval(t *testing.T) { ctx := context.Background() cleanTestDB(t, db) tree := createTreeOrPanic(db, testonly.LogTree) s := NewLogStorage(db, nil) mustSignAndStoreLogRoot(ctx, t, s, tree, 0) leaves := createTestLeaves(leavesToInsert, 20) if _, err := s.QueueLeaves(ctx, tree, leaves...
explode_data.jsonl/30689
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 465 }
[ 2830, 3393, 1912, 4584, 2304, 4693, 20806, 10256, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 1444, 2675, 2271, 3506, 1155, 11, 2927, 692, 51968, 1669, 1855, 6533, 2195, 47, 31270, 9791, 11, 1273, 3243, 5247, 6533, 340...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestMakeRequest(t *testing.T) { var cases = []struct { m string s *SuperAgent }{ {POST, New().Post("/")}, {GET, New().Get("/")}, {HEAD, New().Head("/")}, {PUT, New().Put("/")}, {PATCH, New().Patch("/")}, {DELETE, New().Delete("/")}, {OPTIONS, New().Options("/")}, } for _, c := range cases { ...
explode_data.jsonl/25462
{ "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, 8078, 1900, 1155, 353, 8840, 836, 8, 341, 2405, 5048, 284, 3056, 1235, 341, 197, 2109, 914, 198, 197, 1903, 353, 19284, 16810, 198, 197, 59403, 197, 197, 90, 2946, 11, 1532, 1005, 4133, 75218, 1583, 197, 197, 90, 3806, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTmplLevelExecutorSecurityContext(t *testing.T) { var user int64 = 1000 ctx := context.Background() woc := newWoc() _, err := util.CreateServiceAccountWithToken(ctx, woc.controller.kubeclientset, "", "foo", "foo-token") assert.NoError(t, err) _, err = util.CreateServiceAccountWithToken(ctx, woc.controller...
explode_data.jsonl/75370
{ "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, 51, 54010, 4449, 25255, 15352, 1972, 1155, 353, 8840, 836, 8, 341, 2405, 1196, 526, 21, 19, 284, 220, 16, 15, 15, 15, 198, 20985, 1669, 2266, 19047, 741, 6692, 509, 1669, 501, 54, 509, 741, 197, 6878, 1848, 1669, 4094, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrometheusSourceGetConditionSet(t *testing.T) { r := &PrometheusSource{} if got, want := r.GetConditionSet().GetTopLevelConditionType(), apis.ConditionReady; got != want { t.Errorf("GetTopLevelCondition=%v, want=%v", got, want) } }
explode_data.jsonl/41233
{ "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, 35186, 39705, 3608, 1949, 10547, 1649, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 609, 35186, 39705, 3608, 31483, 743, 2684, 11, 1366, 1669, 435, 2234, 10547, 1649, 1005, 1949, 5366, 4449, 10547, 929, 1507, 97723, 75134, 19202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDLOSegmentation(t *testing.T) { ctx := context.Background() c, rollback := makeConnectionWithSegmentsContainer(t) defer rollback() opts := swift.LargeObjectOpts{ Container: CONTAINER, ObjectName: OBJECT, ContentType: "image/jpeg", ChunkSize: 6, NoBuffer: true, } testSegmentation(t, c,...
explode_data.jsonl/12729
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 720 }
[ 2830, 3393, 35, 1593, 21086, 367, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1444, 11, 60414, 1669, 1281, 4526, 2354, 64813, 4502, 1155, 340, 16867, 60414, 2822, 64734, 1669, 29362, 92762, 1190, 43451, 515, 197, 197, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetReturnPayloadWithForeach(t *testing.T) { stmts := []*sysl.Statement{ { Stmt: &sysl.Statement_Foreach{ Foreach: &sysl.Foreach{ Collection: "collection 1", Stmt: []*sysl.Statement{ { Stmt: &sysl.Statement_Ret{ Ret: &sysl.Return{ Payload: "test", }, ...
explode_data.jsonl/58749
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 1949, 5598, 29683, 2354, 37, 8539, 1155, 353, 8840, 836, 8, 341, 55822, 82, 1669, 29838, 7791, 75, 70215, 515, 197, 197, 515, 298, 197, 31063, 25, 609, 7791, 75, 70215, 1400, 8539, 515, 571, 12727, 8539, 25, 609, 7791, 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 TestCollectionService_UpdateLayoutGallery(t *testing.T) { client, mux := setup(t) mux.HandleFunc("/api/v1/collections/update_collection_display_layout", func(w http.ResponseWriter, r *http.Request) { require.Equal(t, http.MethodPost, r.Method) form := url.Values{} form.Set("collection_id", "37f1e52d-7ec9...
explode_data.jsonl/12636
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 252 }
[ 2830, 3393, 6482, 1860, 47393, 2175, 34182, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 1669, 6505, 1155, 692, 2109, 2200, 63623, 4283, 2068, 5457, 16, 2899, 3107, 29832, 25019, 14825, 14466, 497, 2915, 3622, 1758, 37508, 11, 435, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRemove(t *testing.T) { x := []string{"a", "b", "c", "d", "e"} x = remove(x, "b") assert.Equal(t, []string{"a", "c", "d", "e"}, x) x = remove(x, "e") assert.Equal(t, []string{"a", "c", "d"}, x) x = remove(x, "a") assert.Equal(t, []string{"c", "d"}, x) }
explode_data.jsonl/7230
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 133 }
[ 2830, 3393, 13021, 1155, 353, 8840, 836, 8, 341, 10225, 1669, 3056, 917, 4913, 64, 497, 330, 65, 497, 330, 66, 497, 330, 67, 497, 330, 68, 63159, 10225, 284, 4057, 2075, 11, 330, 65, 1138, 6948, 12808, 1155, 11, 3056, 917, 4913, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestChangesAfterChannelAdded(t *testing.T) { if testing.Short() { t.Skip("skipping test in short mode") } db := setupTestDB(t) defer db.Close() defer base.SetUpTestLogging(base.LevelDebug, base.KeyCache, base.KeyChanges)() db.ChannelMapper = channels.NewDefaultChannelMapper() // Create a user with ac...
explode_data.jsonl/60349
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 941 }
[ 2830, 3393, 11317, 6025, 9629, 19337, 1155, 353, 8840, 836, 8, 1476, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 304, 2805, 3856, 1138, 197, 630, 20939, 1669, 6505, 2271, 3506, 1155, 340, 16867, 2927, 10421, 282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ValidateAlertmanagerConfig(t *testing.T) { setup(t) defer cleanup(t) userID := makeUserID() for i, test := range amCfgValidationTests { resp := requestAsUser(t, userID, "POST", "/api/prom/configs/alertmanager/validate", "", strings.NewReader(test.config)) data := map[string]string{} err := json.Unm...
explode_data.jsonl/37317
{ "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, 62, 17926, 9676, 13297, 2648, 1155, 353, 8840, 836, 8, 341, 84571, 1155, 340, 16867, 21290, 1155, 692, 19060, 915, 1669, 1281, 36899, 741, 2023, 600, 11, 1273, 1669, 2088, 1079, 42467, 13799, 18200, 341, 197, 34653, 1669, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestIsValidPortNum(t *testing.T) { goodValues := []int{1, 2, 1000, 16384, 32768, 65535} for _, val := range goodValues { if msgs := IsValidPortNum(val); len(msgs) != 0 { t.Errorf("expected true for %d, got %v", val, msgs) } } badValues := []int{0, -1, 65536, 100000} for _, val := range badValues { i...
explode_data.jsonl/11822
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 55470, 7084, 4651, 1155, 353, 8840, 836, 8, 341, 3174, 1386, 6227, 1669, 3056, 396, 90, 16, 11, 220, 17, 11, 220, 16, 15, 15, 15, 11, 220, 16, 21, 18, 23, 19, 11, 220, 18, 17, 22, 21, 23, 11, 220, 21, 20, 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...
5
func TestCreateDirectChannel(t *testing.T) { th := Setup().InitBasic().InitSystemAdmin() defer th.TearDown() Client := th.Client user1 := th.BasicUser user2 := th.BasicUser2 user3 := th.CreateUser() dm, resp := Client.CreateDirectChannel(user1.Id, user2.Id) CheckNoError(t, resp) channelName := "" if user2.I...
explode_data.jsonl/65645
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 535 }
[ 2830, 3393, 4021, 16027, 9629, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 1005, 3803, 2320, 7210, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 198, 19060, 16, 1669, 270, 48868, 1474, 198, 1906...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestUpstreamSummaryPattern(t *testing.T) { tt := []struct { summary string valid bool }{ {valid: true, summary: "UPSTREAM: 12345: a change"}, {valid: true, summary: "UPSTREAM: k8s.io/heapster: 12345: a change"}, {valid: true, summary: "UPSTREAM: <carry>: a change"}, {valid: true, summary: "UPSTREAM...
explode_data.jsonl/10031
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 507 }
[ 2830, 3393, 2324, 4027, 19237, 15760, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 3056, 1235, 341, 197, 197, 1708, 914, 198, 197, 56322, 256, 1807, 198, 197, 59403, 197, 197, 90, 1891, 25, 830, 11, 12126, 25, 330, 3124, 54326, 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 TestServer_Handler_Sends_WindowUpdate(t *testing.T) { puppet := newHandlerPuppet() st := newServerTester(t, func(w http.ResponseWriter, r *http.Request) { puppet.act(w, r) }) defer st.Close() defer puppet.done() st.greet() st.writeHeaders(HeadersFrameParam{ StreamID: 1, // clients send odd number...
explode_data.jsonl/71640
{ "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, 5475, 41879, 1098, 1412, 60649, 4289, 1155, 353, 8840, 836, 8, 341, 3223, 38836, 1669, 501, 3050, 47, 38836, 741, 18388, 1669, 501, 5475, 58699, 1155, 11, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 322...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStdCopyWithInvalidInputHeader(t *testing.T) { dstOut := NewStdWriter(ioutil.Discard, Stdout) dstErr := NewStdWriter(ioutil.Discard, Stderr) src := strings.NewReader("Invalid input") _, err := StdCopy(dstOut, dstErr, src) if err == nil { t.Fatal("StdCopy with invalid input header should fail.") } }
explode_data.jsonl/52162
{ "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, 22748, 12106, 2354, 7928, 2505, 4047, 1155, 353, 8840, 836, 8, 341, 52051, 2662, 1669, 1532, 22748, 6492, 1956, 30158, 909, 47560, 11, 42517, 411, 340, 52051, 7747, 1669, 1532, 22748, 6492, 1956, 30158, 909, 47560, 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...
2
func TestNotNilWrapper(t *testing.T) { assert := New(new(testing.T)) if !assert.NotNil(new(AssertionTesterConformingObject)) { t.Error("NotNil should return true: object is not nil") } if assert.NotNil(nil) { t.Error("NotNil should return false: object is nil") } }
explode_data.jsonl/54966
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 107 }
[ 2830, 3393, 96144, 11542, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 1532, 1755, 8623, 287, 836, 4390, 743, 753, 2207, 93882, 1755, 4346, 778, 529, 290, 58699, 1109, 54757, 1190, 593, 341, 197, 3244, 6141, 445, 96144, 1265, 470, 830, 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...
3
func TestAuthenticationRequestValid(t *testing.T) { assert := assert.New(t) req := models.AuthenticationRequest{ Username: "valid-username", Password: "valid-password", } assert.NoError(req.Valid(true)) req.Password = "" assert.NoError(req.Valid(false)) assert.Error(req.Valid(true)) req.Username = "" r...
explode_data.jsonl/16334
{ "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, 19297, 1900, 4088, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 24395, 1669, 4119, 40673, 1900, 515, 197, 197, 11115, 25, 330, 1891, 12, 5113, 756, 197, 197, 4876, 25, 330, 1891, 33069, 756, 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
func TestSignVerify(t *testing.T) { cstore := NewInMemory() algo := Secp256k1 n1, n2, n3 := "some dude", "a dudette", "dude-ish" p1, p2, p3 := nums, foobar, foobar // create two users and get their info i1, _, err := cstore.CreateMnemonic(n1, English, p1, algo) require.Nil(t, err) i2, _, err := cstore.Create...
explode_data.jsonl/10670
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 866 }
[ 2830, 3393, 7264, 32627, 1155, 353, 8840, 836, 8, 341, 1444, 4314, 1669, 1532, 641, 10642, 741, 69571, 3346, 1669, 4520, 79, 17, 20, 21, 74, 16, 271, 9038, 16, 11, 308, 17, 11, 308, 18, 1669, 330, 14689, 35057, 497, 330, 64, 294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestErrEventFingerprintDefault(t *testing.T) { assert := assert.New(t) event := errEvent(context.Background(), logger.ErrorEvent{ Flag: logger.Fatal, Err: ex.New("this is a test", ex.OptMessage("a message")), State: &http.Request{ Method: "POST", Host: "example.org", TLS: &tls.ConnectionSta...
explode_data.jsonl/81454
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 206 }
[ 2830, 3393, 7747, 1556, 37, 47918, 3675, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 28302, 1669, 1848, 1556, 5378, 19047, 1507, 5925, 6141, 1556, 515, 197, 197, 12135, 25, 5925, 26133, 345, 197, 197, 7747, 25, 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...
1
func Test_Resolve_Models_Reversed_Order_With_Enum(t *testing.T) { data := ` models: Model1: field1: Model3 field2: Model2 Model2: field: string Model3: enum: - some_item ` old, err := unmarshalSpec([]byte(data)) assert.Equal(t, err, nil) enrichSpec(old) assert.Equal(t, len(old.Version...
explode_data.jsonl/79855
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 62, 56808, 21626, 82, 50693, 43776, 53267, 62, 2354, 62, 10766, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 22074, 6507, 510, 220, 4903, 16, 510, 262, 2070, 16, 25, 4903, 18, 198, 262, 2070, 17, 25, 4903, 17, 198, 220, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInsertIntoReadme(t *testing.T) { type args struct { title string current string generated string } tests := []struct { name string args args want string err string }{ { name: "simple", args: args{ title: "# sample", current: `<!-- BEGINNING OF PRE-COMMIT-BLUEPRINT DOCS ...
explode_data.jsonl/6197
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1146 }
[ 2830, 3393, 13780, 26591, 4418, 2660, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 24751, 257, 914, 198, 197, 20121, 256, 914, 198, 197, 3174, 10543, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 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...
2
func TestGet(t *testing.T) { t.Run("return nil if the root of config is not an Object", func(t *testing.T) { config := &Config{Array{Int(1)}} got := config.Get("a") assertNil(t, got) }) t.Run("find the value if the root of config is an object and a value exist with the given path", func(t *testing.T) { conf...
explode_data.jsonl/4131
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 238 }
[ 2830, 3393, 1949, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 689, 2092, 421, 279, 3704, 315, 2193, 374, 537, 458, 3002, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 25873, 1669, 609, 2648, 90, 1857, 90, 1072, 7, 16, 9139, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestScanTestOutput_WithDotsFormatter(t *testing.T) { defer patchPkgPathPrefix("github.com/gotestyourself/gotestyourself")() out := new(bytes.Buffer) dotfmt := &dotFormatter{ pkgs: make(map[string]*dotLine), writer: dotwriter.New(out), termWidth: 80, } shim := newFakeHandler(dotfmt, "go-test-jso...
explode_data.jsonl/9533
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 244 }
[ 2830, 3393, 26570, 2271, 5097, 62, 2354, 35, 2412, 14183, 1155, 353, 8840, 836, 8, 341, 16867, 10900, 47, 7351, 1820, 14335, 445, 5204, 905, 4846, 354, 477, 21732, 721, 4846, 354, 477, 21732, 721, 899, 2822, 13967, 1669, 501, 23158, 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...
1
func TestLogTreeTX_AddSequencedLeaves(t *testing.T) { t.Run("bad connection (driver)", func(t *testing.T) { ndb, done := openTestDBOrDie() tx, err := ndb.BeginTx(context.Background(), nil /* opts */) require.NoError(t, err) done(context.Background()) _, err = (&logTreeTX{ ls: NewLogStorage(ndb, nil).(*...
explode_data.jsonl/30686
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 247 }
[ 2830, 3393, 2201, 6533, 22867, 21346, 1514, 446, 5767, 2304, 4693, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 13855, 3633, 320, 12521, 11583, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 303, 65, 11, 2814, 1669, 1787, 2271, 3506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStableKey(t *testing.T) { container := &v1.Container{ Name: "test_container", Image: "foo/image:v1", } pod := &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "test_pod", Namespace: "test_pod_namespace", UID: "test_pod_uid", }, Spec: v1.PodSpec{ Containers: []v1.Container{*con...
explode_data.jsonl/22800
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 623, 480, 1592, 1155, 353, 8840, 836, 8, 341, 53290, 1669, 609, 85, 16, 33672, 515, 197, 21297, 25, 220, 330, 1944, 15847, 756, 197, 53397, 25, 330, 7975, 23349, 52649, 16, 756, 197, 532, 3223, 347, 1669, 609, 85, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDataBlock(t *testing.T) { want := &DataBlock{ Serial: 123, Data: []byte{0x17, 0x2a}, Length: 2, } data := want.Bytes(Rate34Data, true) if data == nil { t.Fatal("encode failed") } // Size is the user-data + two octets of serial/crc size := int(dataBlockLength(Rate34Data, true)) + 2 if len(dat...
explode_data.jsonl/3410
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 183 }
[ 2830, 93200, 4713, 1155, 353, 8840, 836, 8, 341, 50780, 1669, 609, 1043, 4713, 515, 197, 93658, 25, 220, 16, 17, 18, 345, 197, 40927, 25, 256, 3056, 3782, 90, 15, 87, 16, 22, 11, 220, 15, 87, 17, 64, 1583, 197, 197, 4373, 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...
3
func TestTypeToPtrType(t *testing.T) { // Encode a T, decode a *T type Type0 struct { A int } t0 := Type0{7} t0p := new(Type0) if err := encAndDec(t0, t0p); err != nil { t.Error(err) } }
explode_data.jsonl/43383
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 929, 1249, 5348, 929, 1155, 353, 8840, 836, 8, 341, 197, 322, 56562, 264, 350, 11, 16895, 264, 353, 51, 198, 13158, 3990, 15, 2036, 341, 197, 22985, 526, 198, 197, 532, 3244, 15, 1669, 3990, 15, 90, 22, 532, 3244, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetObject(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleGetObjectSuccessfully(t) expected := map[string]string{"Gophercloud-Test": "objects"} actual, err := Get(fake.ServiceClient(), "testContainer", "testObject", nil).ExtractMetadata() th.AssertNoErr(t, err) th.CheckDeepEquals(t, expect...
explode_data.jsonl/30756
{ "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, 84540, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 197, 6999, 84540, 35959, 1155, 692, 42400, 1669, 2415, 14032, 30953, 4913, 38, 16940, 12361, 12, 2271, 788, 330, 19210, 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...
1
func TestSyncReplicationControllerDeletes(t *testing.T) { c := clientset.NewForConfigOrDie(&restclient.Config{Host: "", ContentConfig: restclient.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) fakePodControl := controller.FakePodControl{} manager := NewReplicationManager(c, controller.NoResyncPeriodFu...
explode_data.jsonl/37481
{ "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, 12154, 18327, 1693, 2051, 61317, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2943, 746, 7121, 2461, 2648, 2195, 18175, 2099, 3927, 2972, 10753, 90, 9296, 25, 7342, 8883, 2648, 25, 2732, 2972, 12614, 2648, 90, 2808, 5637, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScpGetRemoteParallel(t *testing.T) { t.Parallel() ns := newTestNs() content := []byte(`T€st Content 123`) srv, cl := getTestServer(func(w http.ResponseWriter, r *http.Request) { w.Write(content) }) defer func() { srv.Close() }() url := "http://Foo.Bar/foo_Bar-Foo" req, err := http.NewRequest("GET"...
explode_data.jsonl/69219
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 380 }
[ 2830, 3393, 3326, 79, 1949, 24703, 16547, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 84041, 1669, 501, 2271, 47360, 2822, 27751, 1669, 3056, 3782, 5809, 51, 15056, 267, 8883, 220, 16, 17, 18, 24183, 1903, 10553, 11, 1185, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ReadAll_ErrorLineNumbers(t *testing.T) { t.Parallel() type sample2 struct { A float64 `csv:"a"` B string `csv:"b"` } brokenCSV := `a,b 1.0,a 2.0-,b 3.3,c ` ctx := context.Background() um, err := NewUnmarshaller(sample2{}, csv.NewReader(strings.NewReader(brokenCSV))) require.NoError(t, err, "Fai...
explode_data.jsonl/78437
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 206 }
[ 2830, 3393, 38381, 2403, 28651, 2460, 27237, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 13158, 6077, 17, 2036, 341, 197, 22985, 2224, 21, 19, 1565, 18104, 2974, 64, 8805, 197, 12791, 914, 220, 1565, 18104, 2974, 65, 8805, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseFrequency(t *testing.T) { durationStr := "P1D" duration := parseFrequency(durationStr) if duration.Hours() != 24 { t.Errorf(TestUnexpectedMsgFormatStrForFloatVal, duration.Hours(), 24.0) } durationStr = "PT50S" duration = parseFrequency(durationStr) if duration.Seconds() != 50 { t.Errorf(Tes...
explode_data.jsonl/61744
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 206 }
[ 2830, 3393, 14463, 38614, 1155, 353, 8840, 836, 8, 341, 89300, 2580, 1669, 330, 47, 16, 35, 698, 89300, 1669, 4715, 38614, 48148, 2580, 692, 743, 8090, 3839, 2471, 368, 961, 220, 17, 19, 341, 197, 3244, 13080, 31159, 29430, 6611, 4061...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPlayer_Assists(t *testing.T) { pl := playerWithResourceProperty("m_iAssists", st.PropertyValue{IntVal: 3}) assert.Equal(t, 3, pl.Assists()) }
explode_data.jsonl/12207
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 57 }
[ 2830, 3393, 4476, 62222, 1671, 1155, 353, 8840, 836, 8, 341, 72213, 1669, 2781, 2354, 4783, 3052, 445, 76, 5318, 5615, 1671, 497, 357, 15727, 1130, 90, 1072, 2208, 25, 220, 18, 8824, 6948, 12808, 1155, 11, 220, 18, 11, 625, 10871, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRoute_useDefaultPortIfEmpty(t *testing.T) { testCases := []struct { p string want string }{ {"8080", "8080"}, {"", "80"}, } for _, tc := range testCases { got := useDefaultPortIfEmpty(tc.p) if got != tc.want { t.Errorf("useDefaultPortIfEmpty(%s) = %s, want %s", tc.p, got, tc.want) } ...
explode_data.jsonl/67779
{ "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, 4899, 15951, 3675, 7084, 2679, 3522, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 3223, 262, 914, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 4913, 23, 15, 23, 15, 497, 330, 23, 15, 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...
3
func TestRateLimiterWithConfig_skipper(t *testing.T) { e := echo.New() var beforeFuncRan bool handler := func(c echo.Context) error { return c.String(http.StatusOK, "test") } var inMemoryStore = NewRateLimiterMemoryStore(5) req := httptest.NewRequest(http.MethodGet, "/", nil) req.Header.Add(echo.HeaderXRealI...
explode_data.jsonl/33966
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 306 }
[ 2830, 3393, 11564, 43, 17700, 2354, 2648, 44830, 712, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 1687, 7121, 2822, 2405, 1573, 9626, 49, 276, 1807, 198, 53326, 1669, 2915, 1337, 1687, 9328, 8, 1465, 341, 197, 853, 272, 6431, 19886, 529...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJobScheduler_AddJob(t *testing.T) { conf, err := loadConfig() if err != nil { t.Error(err) return } cron := NewJobScheduler(conf) cron.AddJob("0/1 * * * * ?", func() { Log.Info("喵~~~~~") }) queue := make(chan bool, 0) defer close(queue) time.AfterFunc(time.Second * 10, func() { cron.Stop...
explode_data.jsonl/21773
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 12245, 38878, 21346, 12245, 1155, 353, 8840, 836, 8, 341, 67850, 11, 1848, 1669, 2795, 2648, 741, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 853, 198, 197, 532, 1572, 1444, 2248, 1669, 1532, 12245, 38878, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestE2E(t *testing.T) { gomega.RegisterFailHandler(ginkgo.Fail) reportDir := os.Getenv(reportDirEnv) if reportDir == "" { reportDir = defaultReportDir } r := []ginkgo.Reporter{reporters.NewJUnitReporter(path.Join(reportDir, "junit_01.xml"))} ginkgo.RunSpecsWithDefaultAndCustomReporters(t, "SMB CSI Driver E...
explode_data.jsonl/49506
{ "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, 36, 17, 36, 1155, 353, 8840, 836, 8, 341, 3174, 32696, 19983, 19524, 3050, 3268, 766, 3346, 57243, 340, 69931, 6184, 1669, 2643, 64883, 45175, 6184, 14359, 340, 743, 1895, 6184, 621, 1591, 341, 197, 69931, 6184, 284, 1638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConstructor(t *testing.T) { require := require.New(t) table := []struct { name string success bool }{ // No empty names {"", false}, // Some good names {".", true}, {"a", true}, {"a.", true}, {"a.b.c", true}, {"a.b.c.", true}, {"aa.bb.cc", true}, {"a-a.b-b.c-c", true}, // No ...
explode_data.jsonl/47252
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 543 }
[ 2830, 3393, 13288, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 26481, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 30553, 1807, 198, 197, 59403, 197, 197, 322, 2308, 4287, 5036, 198, 197, 197, 4913, 497...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestIsProposer(t *testing.T) { val1, _ := validator.GenerateTestValidator(0) val2, _ := validator.GenerateTestValidator(1) val3, _ := validator.GenerateTestValidator(2) val4, _ := validator.GenerateTestValidator(3) val5, _ := validator.GenerateTestValidator(4) committee, err := NewCommittee([]*validator.Val...
explode_data.jsonl/35322
{ "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, 3872, 2008, 23438, 1155, 353, 8840, 836, 8, 341, 19302, 16, 11, 716, 1669, 22935, 57582, 2271, 14256, 7, 15, 340, 19302, 17, 11, 716, 1669, 22935, 57582, 2271, 14256, 7, 16, 340, 19302, 18, 11, 716, 1669, 22935, 57582, 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...
1
func TestPool(t *testing.T) { t.Run("create a worker gopool with 10 workers and 10 jobs in queue", func(t *testing.T) { _, err := NewPool(10, 10) assert.NoError(t, err) }) t.Run("create a worker gopool with 0 workers", func(t *testing.T) { _, err := NewPool(0, 3) assert.Error(t, err) }) t.Run("create a w...
explode_data.jsonl/82224
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 619 }
[ 2830, 3393, 10551, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 3182, 264, 11864, 342, 453, 1749, 448, 220, 16, 15, 7337, 323, 220, 16, 15, 6887, 304, 7177, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 6878, 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, 1...
1
func TestGenericNode(t *testing.T) { yamlEnv := yamlEnvironment{} e := parseYaml("./testdata/yaml/overwritten/ekara.yaml", &TemplateContext{}, &yamlEnv) assert.Nil(t, e) env, e := CreateEnvironment(component{Id: MainComponentId}, yamlEnv) assert.Nil(t, e) assert.Nil(t, e) if assert.Equal(t, len(env.NodeSets), 1)...
explode_data.jsonl/56648
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 394 }
[ 2830, 3393, 19964, 1955, 1155, 353, 8840, 836, 8, 341, 14522, 9467, 14359, 1669, 32246, 12723, 16094, 7727, 1669, 4715, 56, 9467, 13988, 92425, 26491, 9467, 14, 1975, 25569, 14, 1225, 5059, 33406, 497, 609, 7275, 1972, 22655, 609, 41466, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccAwsDmsEndpoint_Kafka_Broker(t *testing.T) { resourceName := "aws_dms_endpoint.test" rName := acctest.RandomWithPrefix("tf-acc-test") brokerPrefix := "ec2-12-345-678-901" brokerService := "compute-1" brokerPort1 := 2345 brokerPort2 := 3456 resource.ParallelTest(t, resource.TestCase{ PreCheck: f...
explode_data.jsonl/37171
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 659 }
[ 2830, 3393, 14603, 47359, 35, 1011, 27380, 10102, 21883, 1668, 45985, 1155, 353, 8840, 836, 8, 341, 50346, 675, 1669, 330, 8635, 814, 1011, 36699, 5958, 698, 7000, 675, 1669, 1613, 67880, 26709, 2354, 14335, 445, 8935, 12, 4475, 16839, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStateLockPOLSafety2(t *testing.T) { cs1, vss := randState(4) vs2, vs3, vs4 := vss[1], vss[2], vss[3] height, round := cs1.Height, cs1.Round partSize := types.BlockPartSizeBytes proposalCh := subscribe(cs1.eventBus, types.EventQueryCompleteProposal) timeoutWaitCh := subscribe(cs1.eventBus, types.EventQu...
explode_data.jsonl/81652
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1130 }
[ 2830, 3393, 1397, 11989, 47, 40263, 38618, 17, 1155, 353, 8840, 836, 8, 341, 71899, 16, 11, 348, 778, 1669, 10382, 1397, 7, 19, 340, 5195, 82, 17, 11, 6165, 18, 11, 6165, 19, 1669, 348, 778, 58, 16, 1125, 348, 778, 58, 17, 1125,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRevocationPublicKey(t *testing.T) { testdir, err := ioutil.TempDir(".", "revocationpubkeytest") if err != nil { t.Fatalf("Failed to create temp directory: %s", err.Error()) } defer os.RemoveAll(testdir) err = os.MkdirAll(filepath.Join(testdir, "msp/keystore"), 0777) if err != nil { t.Fatalf("Failed ...
explode_data.jsonl/23685
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 387 }
[ 2830, 3393, 36184, 2276, 61822, 1155, 353, 8840, 836, 8, 341, 18185, 3741, 11, 1848, 1669, 43144, 65009, 6184, 64217, 330, 7282, 2276, 9585, 792, 1944, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 9408, 311, 1855, 2730, 6220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReplication(t *testing.T) { encoderCfg := zapcore.EncoderConfig{ MessageKey: "msg", LevelKey: "level", NameKey: "logger", EncodeLevel: zapcore.LowercaseLevelEncoder, EncodeTime: zapcore.ISO8601TimeEncoder, EncodeDuration: zapcore.StringDurationEncoder, } core := zapcore.N...
explode_data.jsonl/65808
{ "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, 18327, 1693, 1155, 353, 8840, 836, 8, 341, 197, 27008, 42467, 1669, 32978, 2153, 26598, 4316, 2648, 515, 197, 46733, 1592, 25, 257, 330, 3236, 756, 197, 197, 4449, 1592, 25, 981, 330, 3294, 756, 197, 21297, 1592, 25, 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...
8
func Test3(t *testing.T) { instanceId := "5e4d6b56" crc32 := "933736b0" var fileSize uint64 = 1024 time.Sleep(time.Second) fmt.Println(createCRCFileID(instanceId, crc32, fileSize)) time.Sleep(time.Second) fmt.Println(createCRCFileID(instanceId, crc32, fileSize)) time.Sleep(time.Second) fmt.Println(createMD5Fil...
explode_data.jsonl/22070
{ "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, 18, 1155, 353, 8840, 836, 8, 341, 56256, 764, 1669, 330, 20, 68, 19, 67, 21, 65, 20, 21, 698, 1444, 1287, 18, 17, 1669, 330, 24, 18, 18, 22, 18, 21, 65, 15, 698, 2405, 71976, 2622, 21, 19, 284, 220, 16, 15, 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 TestStartStep_RunIfDeprovisioningDone(t *testing.T) { // given st := storage.NewMemoryStorage() step := NewStartStep(st.Operations(), st.Instances()) dOp := fixture.FixDeprovisioningOperation("d-op-id", "instance-id") dOp.State = domain.Succeeded dOp.Temporary = true pOp := fixture.FixProvisioningOperation(...
explode_data.jsonl/71258
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 320 }
[ 2830, 3393, 3479, 8304, 84158, 2679, 7839, 299, 13013, 287, 17453, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 18388, 1669, 5819, 7121, 10642, 5793, 741, 77093, 1669, 1532, 3479, 8304, 5895, 13, 35120, 1507, 357, 5337, 9436, 2398...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMetric_Unit(t *testing.T) { ms := NewMetric() assert.EqualValues(t, "", ms.Unit()) testValUnit := "1" ms.SetUnit(testValUnit) assert.EqualValues(t, testValUnit, ms.Unit()) }
explode_data.jsonl/32688
{ "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, 54310, 80481, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 54310, 741, 6948, 12808, 6227, 1155, 11, 7342, 9829, 25159, 2398, 18185, 2208, 4562, 1669, 330, 16, 698, 47691, 4202, 4562, 8623, 2208, 4562, 340, 6948, 12808, 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
func TestLineStringStrideMismatch(t *testing.T) { for _, c := range []struct { layout Layout coords []Coord err error }{ { layout: XY, coords: nil, err: nil, }, { layout: XY, coords: []Coord{}, err: nil, }, { layout: XY, coords: []Coord{{1, 2}, {}}, err: ErrStrid...
explode_data.jsonl/6510
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 442 }
[ 2830, 3393, 2460, 703, 64169, 82572, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 272, 1669, 2088, 3056, 1235, 341, 197, 61104, 13821, 198, 197, 197, 35030, 3056, 19437, 198, 197, 9859, 262, 1465, 198, 197, 59403, 197, 197, 515, 298, 611...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewTransactionProposal(t *testing.T) { user := mspmocks.NewMockSigningIdentity("test", "1234") ctx := mocks.NewMockContext(user) request := fab.ChaincodeInvokeRequest{ ChaincodeID: "qscc", Fcn: "Hello", } txh, err := NewHeader(ctx, testChannel) if err != nil { t.Fatalf("create transaction...
explode_data.jsonl/26395
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 279 }
[ 2830, 3393, 3564, 8070, 98637, 1155, 353, 8840, 836, 8, 341, 19060, 1669, 296, 2154, 16712, 82, 7121, 11571, 93358, 18558, 445, 1944, 497, 330, 16, 17, 18, 19, 1138, 20985, 1669, 68909, 7121, 11571, 1972, 4277, 692, 23555, 1669, 9570, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMenu_ToEvent(t *testing.T) { var m = newMenu(nil, targetIDApp, []*MenuItemOptions{{Label: PtrStr("1")}, {Label: PtrStr("2")}}, asticontext.NewCanceller(), newDispatcher(), newIdentifier(), nil) e := m.toEvent() assert.Equal(t, &EventMenu{EventSubMenu: &EventSubMenu{ID: "1", Items: []*EventMenuItem{{ID: "2",...
explode_data.jsonl/76492
{ "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, 3514, 38346, 1556, 1155, 353, 8840, 836, 8, 341, 2405, 296, 284, 501, 3514, 27907, 11, 2169, 915, 2164, 11, 29838, 7580, 3798, 2979, 2476, 25, 46409, 2580, 445, 16, 899, 2137, 314, 2476, 25, 46409, 2580, 445, 17, 899, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMove(t *testing.T) { s, err := Run() ok(t, err) defer s.Close() c, err := redis.Dial("tcp", s.Addr()) ok(t, err) // No problem. { s.Set("foo", "bar!") v, err := redis.Int(c.Do("MOVE", "foo", 1)) ok(t, err) equals(t, 1, v) } // Src key doesn't exists. { v, err := redis.Int(c.Do("MOVE", "no...
explode_data.jsonl/23149
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 479 }
[ 2830, 3393, 9860, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 6452, 741, 59268, 1155, 11, 1848, 340, 16867, 274, 10421, 741, 1444, 11, 1848, 1669, 20870, 98462, 445, 27161, 497, 274, 93626, 2398, 59268, 1155, 11, 1848, 692, 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 TestPaginatedBase_Next(t *testing.T) { t.Run("NotLastPage_GetsNextPage", func(t *testing.T) { b := PaginatedBase{ parameters: APIRequestParameters{ Pagination: APIRequestPagination{ Page: 5, }, }, pagination: APIResponseMetadataPagination{ TotalPages: 8, }, getFunc: func(paramete...
explode_data.jsonl/44635
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 416 }
[ 2830, 3393, 47712, 15479, 3978, 1604, 427, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 2623, 5842, 2665, 2646, 1415, 5847, 2665, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 2233, 1669, 42355, 15479, 3978, 515, 298, 67543, 25, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResourceIndex(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) var wg sync.WaitGroup for i := 0; i < 100; i++ { wg.Add(1) go func(i int) { testInsertIssue(t, fmt.Sprintf("issue %d", i+1), "my issue", 0) wg.Done() }(i) } wg.Wait() }
explode_data.jsonl/46849
{ "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, 4783, 1552, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 19905, 28770, 3380, 2271, 5988, 12367, 2405, 63581, 12811, 28384, 2808, 198, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 16, 15, 15, 26, 600, 1027, 341, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBoolInt_MarshalJSON_GotInt(t *testing.T) { var sampleInp struct { Val BoolInt `json:"val"` } var i int64 = 123456789 sampleInp.Val.Value = &i var sampleOut = []byte(`{"val":123456789}`) data, _ := json.Marshal(sampleInp) if bytes.Compare(data, sampleOut) != 0 { t.Errorf("should be %s but got %s", ...
explode_data.jsonl/31045
{ "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, 11233, 1072, 1245, 28423, 5370, 2646, 354, 1072, 1155, 353, 8840, 836, 8, 341, 2405, 6077, 641, 79, 2036, 341, 197, 197, 2208, 12608, 1072, 1565, 2236, 2974, 831, 8805, 197, 532, 2405, 600, 526, 21, 19, 284, 220, 16, 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...
2
func TestCreatePipeline(t *testing.T) { tmp, _ := ioutil.TempDir("", "TestCreatePipeline") gaia.Cfg = new(gaia.Config) gaia.Cfg.HomePath = tmp gaia.Cfg.PipelinePath = tmp buf := new(bytes.Buffer) gaia.Cfg.Logger = hclog.New(&hclog.LoggerOptions{ Level: hclog.Trace, Output: buf, Name: "Gaia", }) mcp := ...
explode_data.jsonl/13142
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 400 }
[ 2830, 3393, 4021, 34656, 1155, 353, 8840, 836, 8, 341, 20082, 11, 716, 1669, 43144, 65009, 6184, 19814, 330, 2271, 4021, 34656, 1138, 3174, 64, 685, 727, 4817, 284, 501, 3268, 64, 685, 10753, 340, 3174, 64, 685, 727, 4817, 59965, 1820...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMergeRequestList_tty_withFlags(t *testing.T) { t.Run("repo", func(t *testing.T) { fakeHTTP := httpmock.New() defer fakeHTTP.Verify(t) fakeHTTP.RegisterResponder("GET", "/projects/OWNER/REPO/merge_requests", httpmock.NewStringResponse(200, `[]`)) fakeHTTP.RegisterResponder("GET", "/users", http...
explode_data.jsonl/48220
{ "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, 52096, 1900, 852, 528, 1881, 6615, 9195, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 23476, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1166, 726, 9230, 1669, 1758, 16712, 7121, 741, 197, 16867, 12418, 9230, 54853, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadAuthnResponse(t *testing.T) { p := &provider{ samlSP: &saml2.SAMLServiceProvider{ IdentityProviderSSOURL: "http://localhost:3220/auth/realms/master", IdentityProviderIssuer: "http://localhost:3220/auth/realms/master", Clock: dsig.NewFakeClockAt(time.Date(2018, ti...
explode_data.jsonl/41386
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 647 }
[ 2830, 3393, 4418, 5087, 77, 2582, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 609, 19979, 515, 197, 1903, 9467, 4592, 25, 609, 82, 9467, 17, 808, 31102, 32604, 515, 298, 197, 18558, 5179, 1220, 46, 3144, 25, 414, 330, 1254, 1110, 8301...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLatestTimestampErrors(t *testing.T) { ctx := context.Background() for _, tt := range []struct { name string getDescError error listTSError error listTSResponse []string // textproto of monitoringpb.TimeSeries wantErr string }{ {"error getting descriptor", fmt.Errorf("some ...
explode_data.jsonl/52890
{ "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, 31992, 20812, 13877, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 2023, 8358, 17853, 1669, 2088, 3056, 1235, 341, 197, 11609, 1843, 914, 198, 197, 10366, 11065, 1454, 256, 1465, 198, 197, 14440, 51, 19224, 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...
3
func TestGetCIDRs(t *testing.T) { fcmd := exec.FakeCmd{ CombinedOutputScript: []exec.FakeCombinedOutputAction{ func() ([]byte, error) { return []byte(tcFilterOutput), nil }, }, } fexec := exec.FakeExec{ CommandScript: []exec.FakeCommandAction{ func(cmd string, args ...string) exec.Cmd { return exec.I...
explode_data.jsonl/5408
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 284 }
[ 2830, 3393, 1949, 54146, 42327, 1155, 353, 8840, 836, 8, 341, 1166, 8710, 1669, 3883, 991, 726, 15613, 515, 197, 197, 94268, 5097, 5910, 25, 3056, 11748, 991, 726, 94268, 5097, 2512, 515, 298, 29244, 368, 34923, 3782, 11, 1465, 8, 314...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateProperties_CustomNodeLabels(t *testing.T) { t.Run("Should throw error for invalid Kubernetes Label Keys", func(t *testing.T) { t.Parallel() cs := getK8sDefaultContainerService(false) agentPoolProfiles := cs.Properties.AgentPoolProfiles agentPoolProfiles[0].CustomNodeLabels = map[string]string...
explode_data.jsonl/17888
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 780 }
[ 2830, 3393, 17926, 7903, 57402, 1955, 23674, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 14996, 2510, 1465, 369, 8318, 66374, 9402, 24133, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 41288, 7957, 741, 197, 71899, 1669, 633,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPython3NotInstalled(t *testing.T) { stderr := &bytes.Buffer{} badPython := "python3000" expectedError := fmt.Sprintf( "error: Failed to locate '%s' on your PATH. Have you installed Python 3.6 or greater?", badPython) integration.ProgramTest(t, &integration.ProgramTestOptions{ Dir: path.Join("empty", ...
explode_data.jsonl/76369
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 355 }
[ 2830, 3393, 30280, 18, 2623, 60800, 1155, 353, 8840, 836, 8, 341, 6736, 615, 1669, 609, 9651, 22622, 16094, 2233, 329, 30280, 1669, 330, 12669, 18, 15, 15, 15, 698, 42400, 1454, 1669, 8879, 17305, 1006, 197, 197, 1, 841, 25, 21379, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVolumesList(t *testing.T) { client, err := clients.NewBlockStorageV1Client() if err != nil { t.Fatalf("Unable to create a blockstorage client: %v", err) } allPages, err := volumes.List(client, volumes.ListOpts{}).AllPages() if err != nil { t.Fatalf("Unable to retrieve volumes: %v", err) } ...
explode_data.jsonl/72637
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 211 }
[ 2830, 3393, 96325, 852, 1155, 353, 8840, 836, 8, 972, 25291, 11, 1848, 1669, 8239, 7121, 4713, 5793, 53, 16, 2959, 3568, 743, 1848, 961, 2092, 972, 197, 3244, 30762, 445, 17075, 311, 1855, 264, 2504, 16172, 2943, 25, 1018, 85, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestFranchisesCreateValidationError(t *testing.T) { testCases := []struct { name string franchise *models.Franchise }{ { name: "Empty name", franchise: &models.Franchise{}, }, { name: "Filled ID", franchise: &models.Franchise{ ID: "123", Name: "Batman", }, }, { ...
explode_data.jsonl/60311
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 588 }
[ 2830, 3393, 22560, 3497, 4909, 4021, 80553, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 97714, 65690, 353, 6507, 991, 81, 65690, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCreateFileShareAclDBEntry(t *testing.T) { var in = &model.FileShareAclSpec{ BaseModel: &model.BaseModel{ Id: "6ad25d59-a160-45b2-8920-211be282e2df", }, Description: "This is a sample Acl for testing", ProfileId: "1106b972-66ef-11e7-b172-db03f3689c9c", Type: "ip", AccessCapability: []string{"R...
explode_data.jsonl/29983
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2289 }
[ 2830, 3393, 4021, 1703, 12115, 32, 564, 3506, 5874, 1155, 353, 8840, 836, 8, 341, 2405, 304, 284, 609, 2528, 8576, 12115, 32, 564, 8327, 515, 197, 66732, 1712, 25, 609, 2528, 13018, 1712, 515, 298, 67211, 25, 330, 21, 329, 17, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMustParseBig256(t *testing.T) { defer func() { if recover() == nil { t.Error("MustParseBig should've panicked") } }() MustParseBig256("ggg") }
explode_data.jsonl/35390
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 68 }
[ 2830, 3393, 31776, 14463, 15636, 17, 20, 21, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 743, 11731, 368, 621, 2092, 341, 298, 3244, 6141, 445, 31776, 14463, 15636, 1265, 3003, 93010, 1138, 197, 197, 532, 197, 69826, 920...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAzureDevOpsProject_CreateProject_DoesNotSwallowErrorFromFailedAsyncStatusCheckCall(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() coreClient := azdosdkmocks.NewMockCoreClient(ctrl) operationsClient := azdosdkmocks.NewMockOperationsClient(ctrl) clients := &config.AggregatedClient{ C...
explode_data.jsonl/3730
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 353 }
[ 2830, 3393, 78107, 14592, 38904, 7849, 34325, 7849, 1557, 7072, 2623, 13218, 7183, 1454, 3830, 9408, 6525, 2522, 3973, 7220, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_getBechKeyOut(t *testing.T) { type args struct { bechPrefix string } tests := []struct { name string args args want bechKeyOutFn wantErr bool }{ {"empty", args{""}, nil, true}, {"wrong", args{"???"}, nil, true}, {"acc", args{sdk.PrefixAccount}, keyring.MkAccKeyOutput, false}, {"...
explode_data.jsonl/13882
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 326 }
[ 2830, 3393, 3062, 3430, 331, 1592, 2662, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 73142, 331, 14335, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 31215, 262, 2827, 198, 197, 50780...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDBUpdate(t *testing.T) { for _, item := range updated { t.Run(item, func(*testing.T) { n := model.Name{Name: item} body, _ := json.Marshal(n) request, _ := http.NewRequest("PUT", endpointPrefix+"/name/update/"+item, bytes.NewReader(body)) request.Header.Set("Content-Type", "application/json") ...
explode_data.jsonl/64861
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 336 }
[ 2830, 3393, 3506, 4289, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1509, 1669, 2088, 6049, 341, 197, 3244, 16708, 5393, 11, 2915, 4071, 8840, 836, 8, 341, 298, 9038, 1669, 1614, 2967, 63121, 25, 1509, 532, 298, 35402, 11, 716, 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 TestAcceptDatalossSubcommand(t *testing.T) { const ( vs = "test-virtual-storage-1" repo = "test-repository-1" st1 = "test-physical-storage-1" st2 = "test-physical-storage-2" st3 = "test-physical-storage-3" ) conf := config.Config{ VirtualStorages: []*config.VirtualStorage{ { Name: vs, ...
explode_data.jsonl/42910
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2239 }
[ 2830, 3393, 16646, 35, 4212, 3662, 3136, 5631, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 5195, 82, 256, 284, 330, 1944, 8273, 2901, 62795, 12, 16, 698, 197, 17200, 5368, 284, 330, 1944, 5504, 3099, 12, 16, 698, 197, 18388, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test_MockMethodCalled(t *testing.T) { m := new(Mock) m.On("foo", "hello").Return("world") retArgs := m.MethodCalled("foo", "hello") require.True(t, len(retArgs) == 1) require.Equal(t, "world", retArgs[0]) m.AssertExpectations(t) }
explode_data.jsonl/8629
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 112 }
[ 2830, 3393, 1245, 1176, 3523, 20960, 1155, 353, 8840, 836, 8, 972, 2109, 1669, 501, 66436, 1218, 2109, 8071, 445, 7975, 497, 330, 14990, 1827, 5598, 445, 14615, 30218, 11262, 4117, 1669, 296, 20798, 20960, 445, 7975, 497, 330, 14990, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGenerateForward(t *testing.T) { pr := NewForwardProbe("example.org") q := pr.Question() // Strictly, we don't know what type the probe has generated, so don't test for // it. if !strings.HasSuffix(q.Name, "example.org.") { t.Error("q.Name should have trailing domain", q.Name) } if strings.HasPrefix(...
explode_data.jsonl/14927
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 238 }
[ 2830, 3393, 31115, 25925, 1155, 353, 8840, 836, 8, 341, 25653, 1669, 1532, 25925, 81426, 445, 8687, 2659, 1138, 18534, 1669, 548, 58521, 2822, 197, 322, 52881, 398, 11, 582, 1513, 944, 1414, 1128, 943, 279, 21730, 702, 7907, 11, 773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoaderLoad(t *testing.T) { for i, c := range LoaderTests { var l Loader l.LimitSpeed(c.Limits[0], c.Limits[1]) l.LimitPosition(c.Limits[2], c.Limits[3]) _, err := l.Load(c.Input) if err != c.Error { t.Errorf("case %d: errors did not match, want %v, got %v", i, c.Error, err) } } }
explode_data.jsonl/51101
{ "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, 9181, 5879, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 272, 1669, 2088, 27811, 18200, 341, 197, 2405, 326, 27811, 198, 197, 8810, 1214, 2353, 11056, 1337, 1214, 22866, 58, 15, 1125, 272, 1214, 22866, 58, 16, 2546, 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 TestCrudConstraintsFailures(t *testing.T) { var res middleware.Responder db := entity.NewTestDB() c := &crud{} defer db.Close() defer gostub.StubFunc(&getDB, db).Reset() c.CreateFlag(flag.CreateFlagParams{ Body: &models.CreateFlagRequest{ Description: util.StringPtr("funny flag"), }, }) c.CreateSe...
explode_data.jsonl/19454
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1396 }
[ 2830, 3393, 92061, 12925, 19524, 1413, 1155, 353, 8840, 836, 8, 341, 2405, 592, 29679, 8377, 20328, 198, 20939, 1669, 5387, 7121, 2271, 3506, 741, 1444, 1669, 609, 53569, 31483, 16867, 2927, 10421, 741, 16867, 67934, 392, 7758, 392, 9626,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsFile(t *testing.T) { assert := assert.New(t) dir1, err := ioutil.TempDir("", "dir") assert.Nil(err) defer os.RemoveAll(dir1) file1, err := ioutil.TempFile("", "file") assert.Nil(err) file1.Close() defer os.Remove(file1.Name()) type args struct { filename string } tests := []struct { name ...
explode_data.jsonl/11247
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 392 }
[ 2830, 3393, 3872, 1703, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 48532, 16, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 3741, 1138, 6948, 59678, 3964, 340, 16867, 2643, 84427, 14161, 16, 692, 17661, 16, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestValidateResourceQuotaWithAlphaLocalStorageCapacityIsolation(t *testing.T) { spec := core.ResourceQuotaSpec{ Hard: core.ResourceList{ core.ResourceCPU: resource.MustParse("100"), core.ResourceMemory: resource.MustParse("10000"), core.ResourceRequestsCPU: ...
explode_data.jsonl/25636
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 631 }
[ 2830, 3393, 17926, 4783, 2183, 6089, 2354, 19384, 90464, 29392, 3872, 34962, 1155, 353, 8840, 836, 8, 341, 98100, 1669, 6200, 20766, 2183, 6089, 8327, 515, 197, 13292, 567, 25, 6200, 20766, 852, 515, 298, 71882, 20766, 31615, 25, 2549, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetValueConverted(t *testing.T) { a := assert.New(t) obj := myStruct{InferredName: "Hello."} meta := getCachedColumnCollectionFromInstance(obj) col := meta.Lookup()["big_int"] a.NotNil(col) err := col.SetValue(&obj, int(21)) a.Nil(err) a.Equal(21, obj.BigIntColumn) }
explode_data.jsonl/58397
{ "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, 48068, 61941, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 2060, 7121, 1155, 340, 22671, 1669, 847, 9422, 90, 641, 5554, 675, 25, 330, 9707, 1189, 630, 84004, 1669, 43099, 3854, 2933, 6482, 3830, 2523, 6779, 340, 46640, 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 TestSetMetadata(t *testing.T) { port, _ := freeport.GetFreePort() fakeComponent := components_v1alpha.Component{} fakeComponent.Name = "testComponent" fakeAPI := &api{ id: "fakeAPI", } server := startDaprAPIServer(port, fakeAPI, "") defer server.Stop() clientConn := createTestClient(port) defer clientC...
explode_data.jsonl/21743
{ "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, 1649, 14610, 1155, 353, 8840, 836, 8, 341, 52257, 11, 716, 1669, 1910, 403, 2234, 10940, 7084, 741, 1166, 726, 2189, 1669, 6813, 2273, 16, 7141, 5119, 16094, 1166, 726, 2189, 2967, 284, 330, 1944, 2189, 698, 1166, 726, 708...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateCSIVolumeSource(t *testing.T) { testCases := []struct { name string csi *core.CSIPersistentVolumeSource errtype field.ErrorType errfield string }{ { name: "all required fields ok", csi: &core.CSIPersistentVolumeSource{Driver: "test-driver", VolumeHandle: "test-123", ReadOnl...
explode_data.jsonl/25630
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2132 }
[ 2830, 3393, 17926, 6412, 3090, 4661, 3608, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 1444, 6321, 414, 353, 2153, 727, 50, 3298, 13931, 18902, 3608, 198, 197, 9859, 1313, 220, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestKubernetesOrchestratorVersionFailWhenInvalid(t *testing.T) { vlabscs := &vlabs.ContainerService{ Properties: &vlabs.Properties{ OrchestratorProfile: &vlabs.OrchestratorProfile{ OrchestratorType: vlabs.Kubernetes, OrchestratorVersion: "1.10.8", }, }, } _, err := ConvertVLabsContainerSer...
explode_data.jsonl/34630
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 395 }
[ 2830, 3393, 42, 29827, 2195, 331, 15111, 850, 5637, 19524, 4498, 7928, 1155, 353, 8840, 836, 8, 341, 5195, 14380, 2388, 82, 1669, 609, 14536, 3435, 33672, 1860, 515, 197, 197, 7903, 25, 609, 14536, 3435, 15945, 515, 298, 197, 2195, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestJSTruthyValues(t *testing.T) { testtype.SkipUnlessTestType(t, testtype.UnitTestType) Convey("With some sample values", t, func() { Convey("known server code edge cases are correct", func() { Convey("true -> true", func() { So(IsTruthy(true), ShouldBeTrue) }) Convey("{} -> true", func() { ...
explode_data.jsonl/79041
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 674 }
[ 2830, 3393, 41, 784, 81, 940, 88, 6227, 1155, 353, 8840, 836, 8, 341, 18185, 1313, 57776, 35587, 2271, 929, 1155, 11, 1273, 1313, 25159, 2271, 929, 692, 93070, 5617, 445, 2354, 1045, 6077, 2750, 497, 259, 11, 2915, 368, 341, 197, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCTEInvalidUsage(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test;") tk.MustExec("drop table if exists t;") tk.MustExec("create table t(a int);") // A CTE can refer to CTEs defined earlier in the same WITH clause, but not ...
explode_data.jsonl/65584
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1427 }
[ 2830, 3393, 1162, 36, 7928, 14783, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 692, 3244, 74, 50463, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLoadingEmptyMaps(t *testing.T) { configFile, _ := ioutil.TempFile("", "") defer os.Remove(configFile.Name()) mockConfig := clientcmdapi.Config{ CurrentContext: "any-context-value", } WriteToFile(mockConfig, configFile.Name()) config, err := LoadFromFile(configFile.Name()) if err != nil { t.Errorf...
explode_data.jsonl/67851
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 8578, 3522, 36562, 1155, 353, 8840, 836, 8, 341, 25873, 1703, 11, 716, 1669, 43144, 65009, 1703, 19814, 14676, 16867, 2643, 13270, 8754, 1703, 2967, 12367, 77333, 2648, 1669, 2943, 8710, 2068, 10753, 515, 197, 197, 5405, 1972,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSpatialObjectToKML(t *testing.T) { testCases := []struct { ewkt geopb.EWKT expected string }{ {"POINT(1.0 1.0)", `<?xml version="1.0" encoding="UTF-8"?> <Point><coordinates>1,1</coordinates></Point>`}, {"SRID=4004;POINT(1.0 1.0)", `<?xml version="1.0" encoding="UTF-8"?> <Point><coordinates>1,1</c...
explode_data.jsonl/31778
{ "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, 90618, 1190, 1249, 42, 2668, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 197, 365, 5840, 257, 3893, 453, 65, 5142, 54, 33539, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 4913, 21531, 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...
1
func TestStepSchedulerConfigMigrateNonGitopsBasic(t *testing.T) { tests.SkipForWindows(t, "NewTerminal() does not work on windows") pegomock.RegisterMockTestingT(t) testOptions := &StepSchedulerMigrateTestOptions{} testOptions.createSchedulerMigrateTestOptions("nongitops_basic", false, t) testOptions.StepScheduler...
explode_data.jsonl/50506
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 309 }
[ 2830, 3393, 8304, 38878, 2648, 44, 34479, 8121, 46562, 3721, 15944, 1155, 353, 8840, 836, 8, 341, 78216, 57776, 2461, 13164, 1155, 11, 330, 3564, 47890, 368, 1558, 537, 975, 389, 11030, 1138, 197, 10311, 316, 1176, 19983, 11571, 16451, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRespondentBestEffortSend(t *testing.T) { s := GetSocket(t, NewSocket) p := GetSocket(t, xsurveyor.NewSocket) MustSucceed(t, s.SetOption(mangos.OptionWriteQLen, 1)) MustSucceed(t, p.SetOption(mangos.OptionReadQLen, 1)) MustSucceed(t, s.SetOption(mangos.OptionBestEffort, true)) ConnectPair(t, s, p) for i...
explode_data.jsonl/57406
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 382 }
[ 2830, 3393, 65354, 306, 14470, 46588, 371, 11505, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 2126, 10286, 1155, 11, 1532, 10286, 340, 3223, 1669, 2126, 10286, 1155, 11, 11943, 38278, 269, 7121, 10286, 340, 9209, 590, 50, 29264, 1155, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDirectoryResolver_FilesByPath(t *testing.T) { cases := []struct { name string root string input string expected string refCount int forcePositiveHasPath bool }{ { name: "finds a file (relative)", root: "./test-...
explode_data.jsonl/50112
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 944 }
[ 2830, 3393, 9310, 18190, 1400, 3658, 1359, 1820, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 338, 914, 198, 197, 33698, 338, 914, 198, 197, 22427, 394, 914, 198, 197, 42400, 1797, 914, 198, 197, 59504,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDown45Func(t *testing.T) { require := require.New(t) var down45F = NewFunc([]Dot{ { X: 0.0 * DecimalUnit, Y: 20.0 * DecimalUnit, }, { X: 10.0 * DecimalUnit, Y: 10.0 * DecimalUnit, }, { X: 20.0 * DecimalUnit, Y: 0.0 * DecimalUnit, }, }) for i, x := range []uint64{0, 1, 2, 5, ...
explode_data.jsonl/19344
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 223 }
[ 2830, 3393, 4454, 19, 20, 9626, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 2405, 1495, 19, 20, 37, 284, 1532, 9626, 10556, 34207, 515, 197, 197, 515, 298, 22123, 25, 220, 15, 13, 15, 353, 26728, 4562, 345, 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 TestUnexposedStruct(t *testing.T) { validate := New() type Test struct { Name string unexposed struct { A string `validate:"required"` } } s := &Test{ Name: "TEST", } Equal(t, s.unexposed.A, "") errs := validate.Struct(s) Equal(t, errs, nil) }
explode_data.jsonl/77307
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 1806, 327, 3865, 9422, 1155, 353, 8840, 836, 8, 341, 197, 7067, 1669, 1532, 2822, 13158, 3393, 2036, 341, 197, 21297, 414, 914, 198, 197, 20479, 327, 3865, 2036, 341, 298, 22985, 914, 1565, 7067, 2974, 6279, 8805, 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