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 TestFindIssueByIDNotFoundNoErr(t *testing.T) { i := domain.Issue{ ID: 1, Title: "test-title", Description: "test-description", Status: 1, ProjectID: 1, } cucm, iucm, lucm, pucm, m := prepareMocksAndRUC() iucm.On("FindByID", i.ID).Return(i, errors.New("record not found")) c, ...
explode_data.jsonl/60168
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 240 }
[ 2830, 3393, 9885, 42006, 60572, 10372, 2753, 7747, 1155, 353, 8840, 836, 8, 341, 8230, 1669, 7947, 2447, 83890, 515, 197, 29580, 25, 688, 220, 16, 345, 197, 92233, 25, 981, 330, 1944, 8816, 756, 197, 47414, 25, 330, 1944, 42830, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResolveRandomPort(t *testing.T) { opts := &server.Options{Host: "127.0.0.1", Port: server.RANDOM_PORT, NoSigs: true} s := RunServer(opts) defer s.Shutdown() addr := s.Addr() _, port, err := net.SplitHostPort(addr.String()) if err != nil { t.Fatalf("Expected no error: Got %v\n", err) } portNum, err ...
explode_data.jsonl/55809
{ "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, 56808, 13999, 7084, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 609, 4030, 22179, 90, 9296, 25, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 497, 5776, 25, 3538, 2013, 36415, 12377, 11, 2308, 50, 14462, 25, 830, 532, 1903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSpliceErrors(t *testing.T) { err1 := errors.New("this is error 1") err2 := errors.New("this is error 2") err3 := errors.New("this is error 3") const head = "[\n" var line1 = fmt.Sprintf(" %s\n", err1) var line2 = fmt.Sprintf(" %s\n", err2) var line3 = fmt.Sprintf(" %s\n", err3) const tail = "]\n" ...
explode_data.jsonl/76277
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 341 }
[ 2830, 3393, 6406, 4754, 13877, 1155, 353, 8840, 836, 8, 341, 9859, 16, 1669, 5975, 7121, 445, 574, 374, 1465, 220, 16, 1138, 9859, 17, 1669, 5975, 7121, 445, 574, 374, 1465, 220, 17, 1138, 9859, 18, 1669, 5975, 7121, 445, 574, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestAbsentUIDCache(t *testing.T) { rc1Pod1 := getPod("rc1Pod1", []metav1.OwnerReference{ { Kind: "ReplicationController", Name: "rc1", UID: "1", APIVersion: "v1", }, }) rc1Pod2 := getPod("rc1Pod2", []metav1.OwnerReference{ { Kind: "ReplicationController", Name: ...
explode_data.jsonl/1192
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1233 }
[ 2830, 3393, 80251, 6463, 8233, 1155, 353, 8840, 836, 8, 341, 30295, 16, 23527, 16, 1669, 633, 23527, 445, 1287, 16, 23527, 16, 497, 3056, 4059, 402, 16, 49920, 8856, 515, 197, 197, 515, 298, 197, 10629, 25, 981, 330, 18327, 1693, 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...
7
func TestFlagSet_Register_Env(t *testing.T) { os.Setenv(constant.EgoConfigPath, "config/env.toml") defer os.Unsetenv(constant.EgoConfigPath) resetFlagSet() Register(&StringFlag{ Name: "config", Usage: "--config", EnvVar: constant.EgoConfigPath, Action: func(name string, fs *FlagSet) {}, }) err := Pars...
explode_data.jsonl/50978
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 186 }
[ 2830, 3393, 12135, 1649, 73124, 62, 14359, 1155, 353, 8840, 836, 8, 341, 25078, 4202, 3160, 2741, 517, 5142, 3346, 2648, 1820, 11, 330, 1676, 14358, 73494, 75, 1138, 16867, 2643, 10616, 746, 3160, 2741, 517, 5142, 3346, 2648, 1820, 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...
1
func TestReleaseAppAllocationAskEventGetApplicationID(t *testing.T) { tests := []struct { name string appID, taskID string terminationType si.TerminationType wantID string }{ {TestAppIDName, "testAppId001", "testTaskId001", si.TerminationType_TIMEOUT, "testAppId001"}, } for _, tt :=...
explode_data.jsonl/9805
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 248 }
[ 2830, 3393, 16077, 2164, 78316, 26172, 1556, 1949, 4988, 915, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 28236, 915, 11, 3383, 915, 256, 914, 198, 197, 197, 88676, 929, 4403, 836, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPipelineCanBeProcessedAgain(t *testing.T) { p := pipeline.New( pipeline.Node(&NoOpProcessor{}), ) assert.NoError(t, <-p.Process(&SimpleReader{CountObject: 10})) assert.NoError(t, <-p.Process(&SimpleReader{CountObject: 20})) }
explode_data.jsonl/64693
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 93 }
[ 2830, 3393, 34656, 69585, 82535, 30385, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 15301, 7121, 1006, 197, 3223, 8790, 21714, 2099, 2753, 7125, 22946, 6257, 1326, 197, 692, 6948, 35699, 1155, 11, 9119, 79, 29012, 2099, 16374, 5062, 90, 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 TestRetryable(t *testing.T) { clnt, auths := test.SimulatedBackend(t) auth := auths[0] bridgeAddress, _, bridge, err := ethbridgecontracts.DeployBridge(auth, clnt) test.FailIfError(t, err) inboxAddress, _, inbox, err := ethbridgecontracts.DeployInbox(auth, clnt) test.FailIfError(t, err) clnt.Commit() _, e...
explode_data.jsonl/12509
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 803 }
[ 2830, 3393, 51560, 480, 1155, 353, 8840, 836, 8, 341, 39407, 406, 11, 4166, 82, 1669, 1273, 808, 318, 7757, 29699, 1155, 340, 78011, 1669, 4166, 82, 58, 15, 921, 197, 13709, 4286, 11, 8358, 14164, 11, 1848, 1669, 8372, 13709, 63322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestISBN10Validation(t *testing.T) { tests := []struct { param string expected bool }{ {"", false}, {"foo", false}, {"3423214121", false}, {"978-3836221191", false}, {"3-423-21412-1", false}, {"3 423 21412 1", false}, {"3836221195", true}, {"1-61729-085-8", true}, {"3 423 21412 0", true}...
explode_data.jsonl/77277
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 389 }
[ 2830, 3393, 45185, 16, 15, 13799, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 36037, 262, 914, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 4913, 497, 895, 1583, 197, 197, 4913, 7975, 497, 895, 1583, 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...
6
func TestExample(t *testing.T) { testDB := NewDB("./test.data") defer os.Remove("./test.data") v, _ := testDB.Get("not-exist") t.Log(v) testDB.Set("k", "v", 1*time.Minute) v, _ = testDB.Get("k") t.Log(v) ttl, _ := testDB.TTL("k") t.Log(int(math.Ceil(ttl.Seconds()))) time.Sleep(2 * time.Second) ttl, _ =...
explode_data.jsonl/55218
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 218 }
[ 2830, 3393, 13314, 1155, 353, 8840, 836, 8, 341, 18185, 3506, 1669, 1532, 3506, 13988, 1944, 2196, 1138, 16867, 2643, 13270, 13988, 1944, 2196, 5130, 5195, 11, 716, 1669, 1273, 3506, 2234, 445, 1921, 10187, 380, 1138, 3244, 5247, 3747, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRouteConfiguration(t *testing.T) { client := framework.MustNewClientset(t, nil) defer framework.MustRemoveImageRegistry(t, client) hostname := "test.example.com" cr := &imageregistryapiv1.Config{ TypeMeta: metav1.TypeMeta{ APIVersion: imageregistryapiv1.SchemeGroupVersion.String(), Kind: "...
explode_data.jsonl/50514
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 475 }
[ 2830, 3393, 4899, 7688, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 12626, 50463, 3564, 2959, 746, 1155, 11, 2092, 692, 16867, 12626, 50463, 13021, 1906, 15603, 1155, 11, 2943, 692, 197, 27806, 1669, 330, 1944, 7724, 905, 1837, 91492, 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 Test_timeTimeDecorator(t *testing.T) { f := new(Field) (*DefaultMappings["time.Time"]).Decorators.Run(&Package{}, &Message{}, f) assert.Equal(t, NewLiteralValue("true"), f.Options["(gogoproto.stdtime)"]) }
explode_data.jsonl/53658
{ "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, 3009, 1462, 47951, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 57788, 340, 197, 4071, 3675, 83421, 1183, 1678, 16299, 45014, 35227, 2973, 16708, 2099, 13100, 22655, 609, 2052, 22655, 282, 692, 6948, 12808, 1155, 11, 1532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvalidDuration(t *testing.T) { os.Setenv("DURATION", "should-be-a-valid-duration") defer os.Clearenv() cfg := Config{} assert.EqualError(t, Parse(&cfg), "env: parse error on field \"Duration\" of type \"time.Duration\": unable to parse duration: time: invalid duration should-be-a-valid-duration") }
explode_data.jsonl/78772
{ "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, 7928, 12945, 1155, 353, 8840, 836, 8, 341, 25078, 4202, 3160, 445, 35, 28328, 497, 330, 5445, 15150, 7409, 84810, 64383, 1138, 16867, 2643, 727, 273, 9151, 85, 2822, 50286, 1669, 5532, 16094, 6948, 12808, 1454, 1155, 11, 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...
1
func Test_extractV1LayersWithCommands(t *testing.T) { command1 := docker_manifest.Schema1V1Compatibility{} command1.ContainerConfig.Cmd = []string{"command1"} command2 := docker_manifest.Schema1V1Compatibility{} command2.ContainerConfig.Cmd = []string{"command2"} commandPartsToStrip := docker_manifest.Schema1V1Com...
explode_data.jsonl/28533
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1873 }
[ 2830, 3393, 39123, 53, 16, 40235, 2354, 30479, 1155, 353, 8840, 836, 8, 341, 45566, 16, 1669, 26588, 74269, 21105, 16, 53, 16, 85880, 16094, 45566, 16, 33672, 2648, 64512, 284, 3056, 917, 4913, 5631, 16, 16707, 45566, 17, 1669, 26588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildNodeFromTemplateSetsResources(t *testing.T) { var thirtyPodsPerNode int64 = 30 type testCase struct { scenario string kubeEnv string accelerators []*gce.AcceleratorConfig mig Mig physicalCpu int64 physicalMem...
explode_data.jsonl/50913
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3233 }
[ 2830, 3393, 11066, 1955, 3830, 7275, 30175, 11277, 1155, 353, 8840, 836, 8, 341, 2405, 26127, 23527, 82, 3889, 1955, 526, 21, 19, 284, 220, 18, 15, 198, 13158, 54452, 2036, 341, 197, 29928, 20413, 1698, 914, 198, 197, 16463, 3760, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVerifyChallengeTxSigners_allowsAdditionalManageDataOpsWithSourceAccountSetToServerAccount(t *testing.T) { serverKP := newKeypair0() clientKP := newKeypair1() txSource := NewSimpleAccount(serverKP.Address(), -1) op1 := ManageData{ SourceAccount: clientKP.Address(), Name: "testanchor.stellar.or...
explode_data.jsonl/20764
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 554 }
[ 2830, 3393, 32627, 62078, 31584, 7264, 388, 5705, 4241, 29019, 33076, 1043, 38904, 2354, 3608, 7365, 1649, 1249, 5475, 7365, 1155, 353, 8840, 836, 8, 341, 41057, 65036, 1669, 501, 6608, 1082, 1310, 15, 741, 25291, 65036, 1669, 501, 6608, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWantDaemonize(t *testing.T) { c, err := NewContainer(ContainerName) if err != nil { t.Errorf(err.Error()) } if err := c.WantDaemonize(false); err != nil || c.Daemonize() { t.Errorf("WantDaemonize failed...") } }
explode_data.jsonl/2761
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 93 }
[ 2830, 3393, 28823, 89177, 551, 1155, 353, 8840, 836, 8, 341, 1444, 11, 1848, 1669, 1532, 4502, 75145, 675, 340, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 3964, 6141, 2398, 197, 630, 743, 1848, 1669, 272, 1175, 517, 89177, 551, 3576...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKeeper_DistributeDeposits(t *testing.T) { ctx, _, keeper, _, _ := CreateTestInput(t, false, 1000) content := types.NewTextProposal("Test", "description") proposal, err := keeper.SubmitProposal(ctx, content) require.Nil(t, err) proposalID := proposal.ProposalID amount1 := sdk.SysCoins{sdk.NewInt64DecCoi...
explode_data.jsonl/78318
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 410 }
[ 2830, 3393, 77233, 1557, 80133, 7839, 436, 1199, 1155, 353, 8840, 836, 8, 341, 20985, 11, 8358, 53416, 11, 8358, 716, 1669, 4230, 2271, 2505, 1155, 11, 895, 11, 220, 16, 15, 15, 15, 692, 27751, 1669, 4494, 7121, 1178, 98637, 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...
1
func TestConvertListOfBinary(t *testing.T) { lines, err := convertTypes( "Foo", "Bar", `struct Foo { 1: optional list<binary> one 2: required list<binary> two } struct Bar { 1: optional list<binary> one 2: required list<binary> two }`, nil, nil, ) assert.NoError(t, err) assertPrettyEqual...
explode_data.jsonl/62046
{ "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, 12012, 64090, 21338, 1155, 353, 8840, 836, 8, 341, 78390, 11, 1848, 1669, 5508, 4173, 1006, 197, 197, 1, 40923, 497, 330, 3428, 756, 197, 197, 63, 1235, 33428, 341, 298, 197, 16, 25, 10101, 1140, 27, 25891, 29, 825, 198,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReplaceIndexInDashboardObject(t *testing.T) { tests := []struct { dashboard []byte pattern string expected []byte }{ { []byte(`{"attributes":{"kibanaSavedObjectMeta":{"searchSourceJSON":"{\"index\":\"metricbeat-*\"}"}}}`), "otherindex-*", []byte(`{"attributes":{"kibanaSavedObjectMeta":{"s...
explode_data.jsonl/54838
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 782 }
[ 2830, 3393, 23107, 1552, 641, 26947, 1190, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 2698, 7349, 3056, 3782, 198, 197, 3223, 3227, 256, 914, 198, 197, 42400, 220, 3056, 3782, 198, 197, 59403, 197, 197, 515, 298,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestIsTypeWrapper(t *testing.T) { assert := New(new(testing.T)) if !assert.IsType(new(AssertionTesterConformingObject), new(AssertionTesterConformingObject)) { t.Error("IsType should return true: AssertionTesterConformingObject is the same type as AssertionTesterConformingObject") } if assert.IsType(new(Ass...
explode_data.jsonl/54964
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 171 }
[ 2830, 3393, 3872, 929, 11542, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 1532, 1755, 8623, 287, 836, 4390, 743, 753, 2207, 4506, 929, 1755, 4346, 778, 529, 290, 58699, 1109, 54757, 1190, 701, 501, 4346, 778, 529, 290, 58699, 1109, 5475...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_StepsDeprovisionSucceeded(t *testing.T) { tests := []struct { name string giveOperation func() internal.UpgradeKymaOperation giveSteps func(t *testing.T, memoryStorageOp storage.Operations, instanceStorage storage.Instances, accountProvider *hyperscalerautomock.AccountPro...
explode_data.jsonl/4228
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2593 }
[ 2830, 3393, 62, 33951, 7839, 299, 13013, 50, 43805, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 394, 914, 198, 197, 3174, 533, 8432, 981, 2915, 368, 5306, 13, 43861, 42, 1600, 64, 8432, 198, 197, 3174, 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 TestReversiAnz18(t *testing.T) { r := NewReversiAnz() if r.GetEdgeSideOtherCnt() != 0 { t.Errorf("NG") } }
explode_data.jsonl/23041
{ "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, 693, 3004, 72, 2082, 89, 16, 23, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 693, 3004, 72, 2082, 89, 741, 743, 435, 2234, 11656, 16384, 11409, 33747, 368, 961, 220, 15, 341, 197, 3244, 13080, 445, 6140, 1138, 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 ]
2
func TestYouonR(t *testing.T) { const want = "ryaryuryoryaryiryuryeryo" for _, v := range [2]string{"りゃりゅりょりぁりぃりぅりぇりぉ", "リャリュリョリァリィリゥリェリォ"} { got, err := KanaToRomaji(v) assert.Equal(t, want, got) assert.Nil(t, err) } }
explode_data.jsonl/11337
{ "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, 2610, 263, 49, 1155, 353, 8840, 836, 8, 341, 4777, 1366, 284, 330, 884, 658, 3350, 679, 658, 33770, 3350, 722, 78, 1837, 2023, 8358, 348, 1669, 2088, 508, 17, 30953, 4913, 30331, 124234, 30331, 138218, 30331, 124180, 30331, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapProxy_ReplaceIfSameWithNilKey(t *testing.T) { _, err := mp.ReplaceIfSame(nil, "test", "test") AssertErrorNotNil(t, err, "replaceIfSame did not return an error for nil key") mp.Clear() }
explode_data.jsonl/57002
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 76 }
[ 2830, 3393, 2227, 16219, 62, 23107, 2679, 19198, 2354, 19064, 1592, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 10490, 20858, 2679, 19198, 27907, 11, 330, 1944, 497, 330, 1944, 1138, 18017, 1454, 96144, 1155, 11, 1848, 11, 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
func TestInstanceChangeSubnet(t *testing.T) { args := &InstanceChangeSubnetArgs{ InstanceId: "i-DFlNGqLf", SubnetId: "sbn-z1y9tcedqnh6", InternalIp: "10.10.10.1", Reboot: true, } err := BBC_CLIENT.InstanceChangeSubnet(args) ExpectEqual(t.Errorf, err, nil) }
explode_data.jsonl/4096
{ "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, 2523, 4072, 3136, 4711, 1155, 353, 8840, 836, 8, 341, 31215, 1669, 609, 2523, 4072, 3136, 4711, 4117, 515, 197, 197, 65918, 25, 330, 72, 9420, 3882, 6140, 80, 66678, 756, 197, 197, 3136, 4711, 764, 25, 330, 82, 11081, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestWithGzipGob(t *testing.T) { type T = gzipCompressor type args struct { opts []GobOption } type want struct { obj *T err error } type test struct { name string args args want want checkFunc func(want, *T, error) error beforeFunc func(args) afterFunc func(args) } de...
explode_data.jsonl/30254
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 664 }
[ 2830, 3393, 2354, 38, 9964, 38, 674, 1155, 353, 8840, 836, 8, 341, 13158, 350, 284, 57795, 1092, 56220, 198, 13158, 2827, 2036, 341, 197, 64734, 3056, 38, 674, 5341, 198, 197, 532, 13158, 1366, 2036, 341, 197, 22671, 353, 51, 198, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestNewCurrencyPairSyncer(t *testing.T) { t.Skip() if Bot == nil { Bot = new(Engine) } Bot.Config = &config.Cfg err := Bot.Config.LoadConfig("", true) if err != nil { t.Fatalf("TestNewExchangeSyncer: Failed to load config: %s", err) } Bot.Settings.DisableExchangeAutoPairUpdates = true Bot.Settings.E...
explode_data.jsonl/32437
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 321 }
[ 2830, 3393, 3564, 26321, 12443, 12154, 261, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 2822, 743, 23007, 621, 2092, 341, 197, 12791, 354, 284, 501, 7, 4571, 340, 197, 532, 12791, 354, 10753, 284, 609, 1676, 727, 4817, 198, 9859, 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 TestLogTreeTX_DequeueLeaves(t *testing.T) { tx, err := db.BeginTx(context.Background(), nil /* opts */) require.NoError(t, err) _, err = (&logTreeTX{ root: types.LogRootV1{}, treeTX: treeTX{ tx: tx, treeType: trillian.TreeType_PREORDERED_LOG, }, }).DequeueLeaves(context.Background(), 1, time...
explode_data.jsonl/30683
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 2201, 6533, 22867, 24597, 4584, 2304, 4693, 1155, 353, 8840, 836, 8, 341, 46237, 11, 1848, 1669, 2927, 28467, 31584, 5378, 19047, 1507, 2092, 1391, 12185, 639, 340, 17957, 35699, 1155, 11, 1848, 692, 197, 6878, 1848, 284, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestListChangesetOptsFromArgs(t *testing.T) { var wantFirst int32 = 10 wantPublicationStates := []btypes.ChangesetPublicationState{ "PUBLISHED", "INVALID", } haveStates := []string{"OPEN", "INVALID"} haveReviewStates := []string{"APPROVED", "INVALID"} haveCheckStates := []string{"PENDING", "INVALID"} wa...
explode_data.jsonl/53216
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2029 }
[ 2830, 3393, 852, 11317, 295, 43451, 3830, 4117, 1155, 353, 8840, 836, 8, 341, 2405, 1366, 5338, 526, 18, 17, 284, 220, 16, 15, 198, 50780, 72390, 23256, 1669, 3056, 65, 9242, 6353, 5520, 295, 72390, 1397, 515, 197, 197, 67681, 14119, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestArtTreeInsertAndSearch(t *testing.T) { tree := NewArtTree() tree.Insert([]byte("hello"), "world") res := tree.Search([]byte("hello")) if res != "world" { t.Error("Unexpected search result.") } }
explode_data.jsonl/43947
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 76 }
[ 2830, 3393, 9286, 6533, 13780, 3036, 5890, 1155, 353, 8840, 836, 8, 341, 51968, 1669, 1532, 9286, 6533, 2822, 51968, 23142, 10556, 3782, 445, 14990, 3975, 330, 14615, 1138, 10202, 1669, 4916, 31903, 10556, 3782, 445, 14990, 28075, 743, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIpToRadixkey(t *testing.T) { for i := byte(0); i < 255; i += 3 { for y := byte(1); y < 128; y *= 2 { ip := net.IPv4(i, i+2, i+3, i-y) for n := uint8(16); n <= 32; n += 2 { exp := CidrToRadixkey(fmt.Sprintf("%v/%d", ip.To4(), n)) got := IpToRadixkey(ip.To4(), n) if exp != got { t.Fatal...
explode_data.jsonl/14524
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 331 }
[ 2830, 3393, 23378, 1249, 41931, 941, 792, 1155, 353, 8840, 836, 8, 341, 2023, 600, 1669, 4922, 7, 15, 1215, 600, 366, 220, 17, 20, 20, 26, 600, 1421, 220, 18, 341, 197, 2023, 379, 1669, 4922, 7, 16, 1215, 379, 366, 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...
7
func TestOverrideAndroidApp(t *testing.T) { result := PrepareForTestWithJavaDefaultModules.RunTestWithBp( t, ` android_app { name: "foo", srcs: ["a.java"], certificate: "expiredkey", overrides: ["qux"], sdk_version: "current", } override_android_app { name: "bar", base: "foo", certific...
explode_data.jsonl/58497
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2688 }
[ 2830, 3393, 2177, 21831, 2164, 1155, 353, 8840, 836, 8, 341, 9559, 1669, 31166, 2461, 2271, 2354, 15041, 3675, 28201, 16708, 2271, 2354, 33, 79, 1006, 197, 3244, 11, 22074, 197, 197, 5954, 8191, 341, 298, 11609, 25, 330, 7975, 756, 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...
3
func TestChallenge(t *testing.T) { var s Session fastrand.Read(s.challenge[:]) sig := s.SignChallenge(dummyKey{}) if !s.VerifyChallenge(sig, dummyKey{}) { t.Fatal("challenge was not signed/verified correctly") } }
explode_data.jsonl/54338
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 62078, 1155, 353, 8840, 836, 8, 341, 2405, 274, 9164, 198, 1166, 20467, 437, 6503, 1141, 5329, 15832, 3447, 2546, 84841, 1669, 274, 41152, 62078, 83671, 1592, 37790, 743, 753, 82, 54853, 62078, 49129, 11, 17292, 1592, 28875, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRouterFromMuxWith(t *testing.T) { t.Parallel() r := NewRouter() with := r.With(func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { next.ServeHTTP(w, r) }) }) with.Get("/with_middleware", func(w http.ResponseWriter, r *http.Request) {}) ...
explode_data.jsonl/42872
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 186 }
[ 2830, 3393, 9523, 3830, 44, 2200, 2354, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 7000, 1669, 1532, 9523, 2822, 46948, 1669, 435, 26124, 18552, 16913, 1758, 31010, 8, 1758, 31010, 341, 197, 853, 1758, 89164, 18552, 3622, 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 TestTenantNetworksList(t *testing.T) { choices, err := clients.AcceptanceTestChoicesFromEnv() th.AssertNoErr(t, err) client, err := clients.NewComputeV2Client() th.AssertNoErr(t, err) allPages, err := tenantnetworks.List(client).AllPages() th.AssertNoErr(t, err) allTenantNetworks, err := tenantnetworks.E...
explode_data.jsonl/56707
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 219 }
[ 2830, 3393, 71252, 12320, 82, 852, 1155, 353, 8840, 836, 8, 341, 197, 24789, 11, 1848, 1669, 8239, 52265, 681, 2271, 89283, 3830, 14359, 741, 70479, 11711, 2753, 7747, 1155, 11, 1848, 692, 25291, 11, 1848, 1669, 8239, 7121, 46254, 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...
3
func TestProtobufHttpRequestMarshal(t *testing.T) { var marshaler transports.Marshaler marshaler = transports.ProtobufMarshaler{} var i interface{} i = request _, err := marshaler.Marshal(&i) if err != nil { t.Fatal("Can't marshal HttpRequest") } }
explode_data.jsonl/71160
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 12423, 18464, 26362, 55438, 1155, 353, 8840, 836, 8, 341, 2405, 60771, 261, 68069, 37271, 261, 198, 2109, 28423, 261, 284, 68069, 42825, 18464, 55438, 261, 16094, 2405, 600, 3749, 16094, 8230, 284, 1681, 198, 197, 6878, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestFilterByReplicationLag(t *testing.T) { cases := []struct { description string input []uint32 output []uint32 }{ { "0 tablet", []uint32{}, []uint32{}, }, { "1 serving tablet", []uint32{1}, []uint32{1}, }, { "lags of (1s, 1s, 1s, 30s)", []uint32{1, 1, 1, 30}, ...
explode_data.jsonl/261
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1139 }
[ 2830, 3393, 5632, 1359, 18327, 1693, 43, 351, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 42407, 914, 198, 197, 22427, 981, 3056, 2496, 18, 17, 198, 197, 21170, 414, 3056, 2496, 18, 17, 198, 197, 59403, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestUpdateEQCond(t *testing.T) { tests := []struct { sql string best string }{ { sql: "select t1.a from t t1, t t2 where t1.a = t2.a+1", best: "Join{DataScan(t1)->DataScan(t2)->Projection}(test.t.a,Column#25)->Projection->Projection", }, } s := createPlannerSuite() ctx := context.TODO() for i...
explode_data.jsonl/50233
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 422 }
[ 2830, 3393, 4289, 54007, 49696, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 30633, 220, 914, 198, 197, 92410, 914, 198, 197, 59403, 197, 197, 515, 298, 30633, 25, 220, 330, 1742, 259, 16, 5849, 504, 259, 259, 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...
2
func TestSetNetworks(t *testing.T) { cfg, output, err := settings.FromFlags("lambda-router", []string{ "-networks", "sqs,s3,lambda", }) if err != nil { t.Fatalf("Unexpected error: %v", err) } assert.Empty(t, output) expected := settings.DefaultConfig() expected.Networks = []string{"sqs", "s3", "lambda"} ...
explode_data.jsonl/14452
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 1649, 12320, 82, 1155, 353, 8840, 836, 8, 341, 50286, 11, 2550, 11, 1848, 1669, 5003, 11439, 9195, 445, 12935, 14266, 497, 3056, 917, 515, 197, 197, 34294, 17511, 82, 497, 330, 82, 26358, 10671, 18, 11, 12935, 756, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetServiceInstanceList(t *testing.T) { type args struct { Project string Selector string } tests := []struct { name string args args serviceList scv1beta1.ServiceInstanceList output []scv1beta1.ServiceInstance wantErr bool }{ { name: "test case 1", args: args...
explode_data.jsonl/65171
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1908 }
[ 2830, 3393, 1949, 1860, 2523, 852, 1155, 353, 8840, 836, 8, 1476, 13158, 2827, 2036, 341, 197, 197, 7849, 220, 914, 198, 197, 197, 5877, 914, 198, 197, 630, 78216, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 31215, 286, 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 TestApplyTemplateSpecificIsNA(t *testing.T) { o := graphite.Options{ Separator: "_", Templates: []string{ "current.* measurement.service", "current.*.*.test measurement.measurement.service", }, } p, err := graphite.NewParserWithOptions(o) if err != nil { t.Fatalf("unexpected error creating parser...
explode_data.jsonl/32193
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 195 }
[ 2830, 3393, 28497, 7275, 47514, 3872, 7326, 1155, 353, 8840, 836, 8, 341, 22229, 1669, 94173, 22179, 515, 197, 7568, 91640, 25, 9000, 756, 197, 10261, 76793, 25, 3056, 917, 515, 298, 197, 1, 3231, 4908, 18662, 5736, 756, 298, 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...
3
func TestCompareTempString(t *testing.T) { s := strings.Repeat("x", sizeNoStack) b := []byte(s) n := testing.AllocsPerRun(1000, func() { if string(b) != s { t.Fatalf("strings are not equal: '%v' and '%v'", string(b), s) } if string(b) == s { } else { t.Fatalf("strings are not equal: '%v' and '%v'", str...
explode_data.jsonl/79319
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 196 }
[ 2830, 3393, 27374, 12151, 703, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 9069, 2817, 10979, 445, 87, 497, 1379, 2753, 4336, 340, 2233, 1669, 3056, 3782, 1141, 340, 9038, 1669, 7497, 9636, 83629, 3889, 6727, 7, 16, 15, 15, 15, 11, 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...
3
func TestValidateMixerAttributes(t *testing.T) { cases := []struct { name string in *mpb.Attributes_AttributeValue valid bool }{ {"happy string", &mpb.Attributes_AttributeValue{Value: &mpb.Attributes_AttributeValue_StringValue{"my-service"}}, true}, {"invalid string", &mpb.Attributes_AttributeV...
explode_data.jsonl/56900
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 845 }
[ 2830, 3393, 17926, 44, 39014, 10516, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 17430, 262, 353, 1307, 65, 31384, 55581, 2199, 1130, 198, 197, 56322, 1807, 198, 197, 59403, 197, 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...
3
func Test_expressionEnvironment(t *testing.T) { env, err := expressionEnvironment(context.TODO(), "my-ns", "my-d", &wfv1.Item{Value: []byte(`{"foo":"bar"}`)}) if assert.NoError(t, err) { assert.Equal(t, "my-ns", env["namespace"]) assert.Equal(t, "my-d", env["discriminator"]) assert.Contains(t, env, "metadata") ...
explode_data.jsonl/12817
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 175 }
[ 2830, 3393, 28068, 12723, 1155, 353, 8840, 836, 8, 341, 57538, 11, 1848, 1669, 7493, 12723, 5378, 90988, 1507, 330, 2408, 12, 4412, 497, 330, 2408, 1737, 497, 609, 86, 27890, 16, 9399, 90, 1130, 25, 3056, 3782, 5809, 4913, 7975, 3252,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAppDataDir(t *testing.T) { // App name plus upper and lowercase variants. appName := "myapp" appNameUpper := string(unicode.ToUpper(rune(appName[0]))) + appName[1:] appNameLower := string(unicode.ToLower(rune(appName[0]))) + appName[1:] // When we're on Windows, set the expected local and roaming directo...
explode_data.jsonl/10885
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1862 }
[ 2830, 3393, 2164, 1043, 6184, 1155, 353, 8840, 836, 8, 341, 197, 322, 1845, 829, 5519, 8416, 323, 42047, 26012, 624, 28236, 675, 1669, 330, 2408, 676, 698, 28236, 675, 14251, 1669, 914, 7, 24519, 49396, 2601, 2886, 11462, 675, 58, 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...
6
func TestNewPoll(t *testing.T) { t.Run("all fine", func(t *testing.T) { assert := assert.New(t) patch1 := monkey.Patch(model.GetMillis, func() int64 { return 1234567890 }) patch2 := monkey.Patch(model.NewId, func() string { return testutils.GetPollID() }) defer patch1.Unpatch() defer patch2.Unpatch() crea...
explode_data.jsonl/47301
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 561 }
[ 2830, 3393, 3564, 49207, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 541, 6915, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 6948, 1669, 2060, 7121, 1155, 340, 197, 3223, 754, 16, 1669, 38703, 1069, 754, 7635, 2234, 17897, 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 TestBytes8_Encode(t *testing.T) { assertEncode(t, []encodingAssert{ {NewBytes8([8]byte{0, 0, 0}), MustHexDecodeString("0x0000000000000000")}, {NewBytes8([8]byte{171, 18, 52}), MustHexDecodeString("0xab12340000000000")}, }) }
explode_data.jsonl/70601
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 100 }
[ 2830, 3393, 7078, 23, 93529, 534, 1155, 353, 8840, 836, 8, 341, 6948, 32535, 1155, 11, 3056, 17159, 8534, 515, 197, 197, 90, 3564, 7078, 23, 2561, 23, 90184, 90, 15, 11, 220, 15, 11, 220, 15, 38842, 15465, 20335, 32564, 703, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEntry_SetText_Underflow(t *testing.T) { entry := widget.NewEntry() test.Type(entry, "test") assert.Equal(t, 4, entry.CursorColumn) entry.Text = "" entry.Refresh() assert.Equal(t, 0, entry.CursorColumn) key := &fyne.KeyEvent{Name: fyne.KeyBackspace} entry.TypedKey(key) assert.Equal(t, 0, entry.Curso...
explode_data.jsonl/12371
{ "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, 5874, 14812, 1178, 6665, 900, 4965, 1155, 353, 8840, 836, 8, 341, 48344, 1669, 9086, 7121, 5874, 741, 18185, 10184, 18238, 11, 330, 1944, 1138, 6948, 12808, 1155, 11, 220, 19, 11, 4343, 29929, 2933, 692, 48344, 1979, 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...
1
func TestEmpire_Run(t *testing.T) { e := empiretest.NewEmpire(t) user := &empire.User{Name: "ejholmes"} app, err := e.Create(context.Background(), empire.CreateOpts{ User: user, Name: "acme-inc", }) assert.NoError(t, err) img := image.Image{Repository: "remind101/acme-inc"} _, err = e.Deploy(context.Backg...
explode_data.jsonl/35284
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 891 }
[ 2830, 3393, 28731, 554, 84158, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 31347, 1944, 7121, 28731, 554, 1155, 692, 19060, 1669, 609, 3262, 554, 7344, 63121, 25, 330, 35468, 8452, 8828, 63159, 28236, 11, 1848, 1669, 384, 7251, 5378, 1904...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestContextRenderFile(t *testing.T) { w := httptest.NewRecorder() c, _ := CreateTestContext(w) c.Request, _ = http.NewRequest("GET", "/", nil) c.File("./gin.go") assert.Equal(t, http.StatusOK, w.Code) assert.Contains(t, w.Body.String(), "func New() *Engine {") assert.Equal(t, "text/plain; charset=utf-8", ...
explode_data.jsonl/26793
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 142 }
[ 2830, 3393, 1972, 6750, 1703, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 54320, 70334, 7121, 47023, 741, 1444, 11, 716, 1669, 4230, 2271, 1972, 3622, 692, 1444, 9659, 11, 716, 284, 1758, 75274, 445, 3806, 497, 64657, 2092, 340, 1444, 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...
1
func TestSampleCondition(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() mockFilter := index.NewMockSeriesIDsFilter(ctrl) s := mockSeriesIDSet(int64(1), roaring.BitmapOf(1, 2, 3, 4)) query, _ := sql.Parse("select f from cpu") search := newSeriesSearch(1, mockFilter, query) resultSet, _ := se...
explode_data.jsonl/31350
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 833 }
[ 2830, 3393, 17571, 10547, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 741, 77333, 5632, 1669, 1922, 7121, 11571, 25544, 30466, 5632, 62100, 340, 1903, 1669, 7860, 25544, 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...
1
func TestShutdownOrNotify(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() se, err := session.CreateSession4Test(store) require.NoError(t, err) tc := &TiDBContext{ Session: se, stmts: make(map[int]*TiDBStatement), } cc := &clientConn{ connectionID: 1, server: &Server{ capabil...
explode_data.jsonl/73154
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 62004, 2195, 28962, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 741, 84686, 11, 1848, 1669, 3797, 7251, 5283, 19, 2271, 31200, 340, 17957, 35699, 1155, 11, 1848...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestProverb(t *testing.T) { want := "Concurrency is not parallelism." if got := Proverb(); got != want { t.Errorf("Proverb() = %q, want %q", got, want) } }
explode_data.jsonl/16570
{ "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, 1336, 22328, 1155, 353, 8840, 836, 8, 341, 50780, 1669, 330, 79611, 374, 537, 15279, 2142, 10040, 743, 2684, 1669, 1298, 22328, 2129, 2684, 961, 1366, 341, 197, 3244, 13080, 445, 1336, 22328, 368, 284, 1018, 80, 11, 1366, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSuspendTemplateWithFilteredResume(t *testing.T) { cancel, controller := newController() defer cancel() wfcset := controller.wfclientset.ArgoprojV1alpha1().Workflows("") // operate the workflow. it should become in a suspended state after ctx := context.Background() wf := unmarshalWF(suspendTemplate) wf...
explode_data.jsonl/70974
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 690 }
[ 2830, 3393, 50, 12758, 7275, 2354, 67310, 28563, 1155, 353, 8840, 836, 8, 341, 84441, 11, 6461, 1669, 501, 2051, 741, 16867, 9121, 741, 6692, 8316, 746, 1669, 6461, 1418, 69, 2972, 746, 18979, 45926, 73, 53, 16, 7141, 16, 1005, 6776, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckCreateAliasWithSig(t *testing.T) { to, path := createCheckerTestObjects(t) defer func() { to.stor.close(t) err := common.CleanTemporaryDirs(path) assert.NoError(t, err, "failed to clean test data dirs") }() tx := createCreateAliasWithSig(t) info := defaultCheckerInfo(t) _, err := to.tc.che...
explode_data.jsonl/63092
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 372 }
[ 2830, 3393, 3973, 4021, 22720, 2354, 47246, 1155, 353, 8840, 836, 8, 341, 31709, 11, 1815, 1669, 1855, 35188, 2271, 11543, 1155, 692, 16867, 2915, 368, 341, 197, 31709, 1236, 269, 4653, 1155, 692, 197, 9859, 1669, 4185, 727, 2675, 59362...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIfdBuilder_Find__Miss(t *testing.T) { im := NewIfdMapping() err := LoadStandardIfds(im) log.PanicIf(err) ti := NewTagIndex() ib := NewIfdBuilder(im, ti, exifcommon.IfdStandardIfdIdentity, exifcommon.TestDefaultByteOrder) bt := &BuilderTag{ ifdPath: exifcommon.IfdStandardIfdIdentity.UnindexedString()...
explode_data.jsonl/36634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 578 }
[ 2830, 3393, 2679, 67, 3297, 95245, 563, 35312, 1155, 353, 8840, 836, 8, 341, 54892, 1669, 1532, 2679, 67, 6807, 2822, 9859, 1669, 8893, 19781, 2679, 5356, 25107, 340, 6725, 1069, 31270, 2679, 3964, 692, 72859, 1669, 1532, 5668, 1552, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestAsStructuredWatcherClosedChannel(t *testing.T) { nwf := func(ctx context.Context, lo metav1.ListOptions) (watch.Interface, error) { return watch.NewEmptyWatch(), nil } wf := duck.AsStructuredWatcher(context.Background(), nwf, &duckv1alpha1.AddressableType{}) wi, err := wf(metav1.ListOptions{}) if err ...
explode_data.jsonl/51699
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 186 }
[ 2830, 3393, 2121, 97457, 47248, 26884, 9629, 1155, 353, 8840, 836, 8, 341, 9038, 43083, 1669, 2915, 7502, 2266, 9328, 11, 775, 77520, 16, 5814, 3798, 8, 320, 14321, 41065, 11, 1465, 8, 341, 197, 853, 3736, 7121, 3522, 14247, 1507, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSingleScriptPrepared(t *testing.T) { t.Skip() s := []setup.SetupScript{ { "create table test (pk int primary key, c1 int)", "insert into test values (0,0), (1,1);", "set @Commit1 = dolt_commit('-am', 'creating table');", "call dolt_branch('-c', 'main', 'newb')", "alter table test add column...
explode_data.jsonl/38640
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 553 }
[ 2830, 3393, 10888, 5910, 4703, 7212, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 2822, 1903, 1669, 3056, 15188, 39820, 5910, 515, 197, 197, 515, 298, 197, 1, 3182, 1965, 1273, 320, 20819, 526, 6028, 1376, 11, 272, 16, 526, 15752, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMissingImport(t *testing.T) { install, stdOut, _ := newInstall() err := install.Install([]string{"missing_import"}) require.Error(t, err) assert.Contains(t, []string{ filepath.Join(os.Getenv("TMP_DIR"), "tools/please_go/install/test_data/example.com/missing_import/missing_import.go:3:8: could not import ...
explode_data.jsonl/36377
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 417 }
[ 2830, 3393, 25080, 11511, 1155, 353, 8840, 836, 8, 341, 197, 12248, 11, 1460, 2662, 11, 716, 1669, 501, 24690, 741, 9859, 1669, 4582, 71207, 541, 10556, 917, 4913, 30616, 18434, 23625, 17957, 6141, 1155, 11, 1848, 340, 6948, 11545, 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 TestSub(t *testing.T) { // simple case (nil checks) result := Sub(nil, nil) if result == nil || len(result.Resources) != 0 { t.Errorf("sub nil resources did not return zero resource: %v", result) } // empty resources left := NewResourceBuilder().Build() result = Sub(left, nil) if result == nil || len(re...
explode_data.jsonl/63798
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 454 }
[ 2830, 3393, 3136, 1155, 353, 8840, 836, 8, 341, 197, 322, 4285, 1142, 320, 8385, 12341, 340, 9559, 1669, 3719, 27907, 11, 2092, 340, 743, 1102, 621, 2092, 1369, 2422, 4456, 21703, 8, 961, 220, 15, 341, 197, 3244, 13080, 445, 1966, 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...
8
func TestList_Populate(t *testing.T) { type fields struct { appConfig config.Config err error items []forecastle.App } tests := []struct { name string fields fields want *List }{ { name: "TestListPopulate", fields: fields{ appConfig: config.Config{ CustomApps: []config.Cus...
explode_data.jsonl/72058
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 705 }
[ 2830, 3393, 852, 1088, 453, 6334, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 28236, 2648, 2193, 10753, 198, 197, 9859, 981, 1465, 198, 197, 46413, 257, 3056, 1324, 35108, 5105, 198, 197, 532, 78216, 1669, 3056, 1235, 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...
2
func TestStore_Open_InvalidRetentionPolicy(t *testing.T) { s := NewStore() defer s.Close() // Create an RP file instead of a directory. if err := os.MkdirAll(filepath.Join(s.Path(), "db0"), 0777); err != nil { t.Fatal(err) } else if _, err := os.Create(filepath.Join(s.Path(), "db0", "rp0")); err != nil { t.Fa...
explode_data.jsonl/44152
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 213 }
[ 2830, 3393, 6093, 51747, 62, 7928, 12020, 78165, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 6093, 741, 16867, 274, 10421, 2822, 197, 322, 4230, 458, 41461, 1034, 4518, 315, 264, 6220, 624, 743, 1848, 1669, 2643, 1321, 12438, 2403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateAddressBalance(t *testing.T) { newbase := Base{} newbase.AddAddress("someaddress", "LTC", "LTCWALLETTEST", 0.02) newbase.UpdateAddressBalance("someaddress", 0.03) value := newbase.GetPortfolioSummary() if value.Totals[0].Coin != "LTC" && value.Totals[0].Balance != 0.03 { t.Error("Test Failed - po...
explode_data.jsonl/33737
{ "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, 4289, 4286, 21190, 1155, 353, 8840, 836, 8, 341, 8638, 3152, 1669, 5351, 16094, 8638, 3152, 1904, 4286, 445, 14689, 4995, 497, 330, 43, 7749, 497, 330, 43, 7749, 54, 969, 20756, 10033, 497, 220, 15, 13, 15, 17, 340, 8638...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEOF(t *testing.T) { report := test.CheckRoutines(t) defer report() log := logging.NewDefaultLoggerFactory().NewLogger("test") label := "test-channel" testData := []byte("this is some test data") t.Run("Detach", func(t *testing.T) { // Use Detach data channels mode s := SettingEngine{} s.DetachDat...
explode_data.jsonl/68049
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2078 }
[ 2830, 3393, 23483, 1155, 353, 8840, 836, 8, 341, 69931, 1669, 1273, 10600, 49, 28628, 1155, 340, 16867, 1895, 2822, 6725, 1669, 8392, 7121, 3675, 7395, 4153, 1005, 3564, 7395, 445, 1944, 1138, 29277, 1669, 330, 1944, 53868, 698, 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 Test_Throw(t *testing.T) { gtest.C(t, func(t *gtest.T) { defer func() { t.Assert(recover(), "gutil Throw test") }() gutil.Throw("gutil Throw test") }) }
explode_data.jsonl/28550
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 62, 23079, 1155, 353, 8840, 836, 8, 1476, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 16867, 2915, 368, 341, 298, 3244, 11711, 5801, 3688, 1507, 330, 70, 1314, 31345, 1273, 1138, 197, 197, 66816, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func Test_Hoverfly_GetSimulation_ReturnsMultipleDelaysLogNormal(t *testing.T) { RegisterTestingT(t) unit := NewHoverflyWithConfiguration(&Configuration{}) delay1 := models.ResponseDelayLogNormal{ UrlPattern: "test-pattern", Min: 100, Max: 400, Mean: 300, Median: 200, } delay2 :...
explode_data.jsonl/45370
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 598 }
[ 2830, 3393, 2039, 1975, 21642, 13614, 64554, 53316, 82, 32089, 16532, 942, 2201, 12206, 1155, 353, 8840, 836, 8, 341, 79096, 16451, 51, 1155, 692, 81189, 1669, 1532, 34379, 21642, 2354, 7688, 2099, 7688, 6257, 692, 55174, 16, 1669, 4119, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestComposerWrongNodeType(t *testing.T) { gd := "[aaa] -> [bbb]" c := comp.NewSessionComposer("test_session") if err := c.ParseGraphDescription(gd); err != nil { t.Fatal("parse graph failed") } if err := c.ComposeNodes(event.NewEventGraph()); err == nil { t.Fatal("should fail to prepare wrong type nodes")...
explode_data.jsonl/17542
{ "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, 90067, 29185, 66137, 1155, 353, 8840, 836, 8, 341, 3174, 67, 1669, 10545, 32646, 60, 1464, 508, 53151, 38445, 1444, 1669, 1367, 7121, 5283, 90067, 445, 1944, 12316, 1138, 743, 1848, 1669, 272, 8937, 11212, 5009, 3268, 67, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestLabelService_DeleteLabel(t *testing.T) { type fields struct { LabelService influxdb.LabelService } type args struct { id platform.ID permissions []influxdb.Permission } type wants struct { err error } tests := []struct { name string fields fields args args wants wants }{ ...
explode_data.jsonl/35726
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1090 }
[ 2830, 3393, 2476, 1860, 57418, 2476, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 82126, 1860, 52852, 1999, 4679, 1860, 198, 197, 532, 13158, 2827, 2036, 341, 197, 15710, 688, 5339, 9910, 198, 197, 197, 29900, 3056, 258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTimeMillisLogicalTypeEncode(t *testing.T) { schema := `{"type": "int", "logicalType": "time-millis"}` testBinaryDecodeFail(t, schema, []byte(""), "short buffer") testBinaryEncodeFail(t, schema, "test", "cannot transform to binary time-millis, expected time.Duration") testBinaryCodecPass(t, schema, 66904022...
explode_data.jsonl/12007
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 1462, 17897, 64312, 929, 32535, 1155, 353, 8840, 836, 8, 341, 1903, 3416, 1669, 1565, 4913, 1313, 788, 330, 396, 497, 330, 30256, 929, 788, 330, 1678, 1448, 56212, 9207, 3989, 18185, 21338, 32564, 19524, 1155, 11, 10802, 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 TestGocloak_GetClientScope(t *testing.T) { t.Parallel() cfg := GetConfig(t) client := NewClientWithDebug(t) token := GetAdminToken(t, client) tearDown, scopeID := CreateClientScope(t, client, nil) defer tearDown() // Getting exact client scope createdClientScope, err := client.GetClientScope( token.Acce...
explode_data.jsonl/79530
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 182 }
[ 2830, 3393, 38, 509, 385, 585, 13614, 2959, 10803, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50286, 1669, 2126, 2648, 1155, 340, 25291, 1669, 1532, 2959, 2354, 7939, 1155, 340, 43947, 1669, 2126, 7210, 3323, 1155, 11, 2943, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuctioneer(t *testing.T) { // these integration tests can take a bit, especially under load; // 1 second is too harsh SetDefaultEventuallyTimeout(10 * time.Second) RegisterFailHandler(Fail) RunSpecs(t, "Auctioneer Cmd Suite") }
explode_data.jsonl/41678
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 32, 2654, 34756, 1155, 353, 8840, 836, 8, 341, 197, 322, 1493, 17590, 7032, 646, 1896, 264, 2699, 11, 5310, 1212, 2795, 280, 197, 322, 220, 16, 2086, 374, 2238, 24939, 198, 22212, 3675, 67982, 7636, 7, 16, 15, 353, 882, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdate(t *testing.T) { FakeNow := time.Now() var testcases = []struct { name string resources []common.Resource resName string owner string state string expectErr error }{ { name: "ranch has no resource", resources: []common.Resource{}, resName: "res", owner:...
explode_data.jsonl/12949
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1271 }
[ 2830, 3393, 4289, 1155, 353, 8840, 836, 8, 341, 12727, 726, 7039, 1669, 882, 13244, 2822, 2405, 1273, 23910, 284, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 10202, 2360, 3056, 5464, 20766, 198, 197, 10202, 675, 256, 914, 198, 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...
9
func TestMembershipMutator(t *testing.T) { placementInstance1 := placement. NewInstance(). SetHostname("host1"). SetPort(9374). SetID("inst1") placementInstance2 := placement. NewInstance(). SetHostname("host2"). SetPort(9374). SetID("inst2") instance1 := models.Instance{ Name: "inst1", Host: "...
explode_data.jsonl/2387
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 772 }
[ 2830, 3393, 80904, 51440, 850, 1155, 353, 8840, 836, 8, 341, 197, 16101, 2523, 16, 1669, 21448, 624, 197, 197, 3564, 2523, 25829, 197, 22212, 88839, 445, 3790, 16, 38609, 197, 22212, 7084, 7, 24, 18, 22, 19, 4292, 197, 22212, 915, 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 TestParseSliceInt(t *testing.T) { var tcs = []struct { name string input []string expected []int }{ { name: tt.Name{ Given: "slice of string", When: "the value is valid", Then: "return valid slice of int", }.Construct(), input: []string{"1", "2"}, expected: []int{1, 2}...
explode_data.jsonl/9691
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 321 }
[ 2830, 3393, 14463, 33236, 1072, 1155, 353, 8840, 836, 8, 341, 2405, 259, 4837, 284, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 22427, 262, 3056, 917, 198, 197, 42400, 3056, 396, 198, 197, 59403, 197, 197, 515, 298, 11609, 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 TestValidateShouldFailWithInvalidConfigs(t *testing.T) { invalidConfigs := []*LogsConfig{ {}, {Type: FileType}, {Type: TCPType}, {Type: UDPType}, {Type: DockerType, ProcessingRules: []ProcessingRule{{Name: "foo"}}}, {Type: DockerType, ProcessingRules: []ProcessingRule{{Name: "foo", Type: "bar"}}}, {...
explode_data.jsonl/41172
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 298 }
[ 2830, 3393, 17926, 14996, 19524, 2354, 7928, 84905, 1155, 353, 8840, 836, 8, 341, 197, 11808, 84905, 1669, 29838, 51053, 2648, 515, 197, 197, 38837, 197, 197, 90, 929, 25, 93238, 1583, 197, 197, 90, 929, 25, 26656, 929, 1583, 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...
2
func TestTable_Sync(t *testing.T) { tempDir, err := ioutil.TempDir("", "table-sync") require.NoError(t, err) defer func() { require.NoError(t, os.RemoveAll(tempDir)) }() objectStoragePath := filepath.Join(tempDir, objectsStorageDirName) tableName := "test" tablePathInStorage := filepath.Join(objectStoragePat...
explode_data.jsonl/81248
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 736 }
[ 2830, 3393, 2556, 1098, 1721, 1155, 353, 8840, 836, 8, 341, 16280, 6184, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 2005, 65034, 1138, 17957, 35699, 1155, 11, 1848, 692, 16867, 2915, 368, 341, 197, 17957, 35699, 1155, 11, 2643, 844...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResponseWriterWritten(t *testing.T) { r := httptest.NewRecorder() w := NewResponseWriter(r) t.Run("ReturnFalse", func(t *testing.T) { equal(t, false, w.Written()) }) t.Run("ReturnTrue", func(t *testing.T) { w.WriteHeader(http.StatusTeapot) equal(t, true, w.Written()) w.WriteHeader(http.StatusCo...
explode_data.jsonl/22516
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 164 }
[ 2830, 3393, 2582, 6492, 35624, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 54320, 70334, 7121, 47023, 741, 6692, 1669, 1532, 2582, 6492, 2601, 692, 3244, 16708, 445, 5598, 4049, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 7727, 1751, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddCategorySubCatEmpty1(t *testing.T) { t.Parallel() // arrange p := podcast.New("title", "link", "description", nil, nil) // act p.AddCategory("mycat", []string{""}) // assert assert.Len(t, p.ICategories, 1) assert.EqualValues(t, p.Category, "mycat") assert.Len(t, p.ICategories[0].ICategories, 0) ...
explode_data.jsonl/73070
{ "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, 2212, 6746, 3136, 26801, 3522, 16, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 30893, 198, 3223, 1669, 17711, 7121, 445, 2102, 497, 330, 2080, 497, 330, 4684, 497, 2092, 11, 2092, 692, 197, 322, 1160, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFStringOptimisation(t *testing.T) { s, stmts, err := parseFileToStatements("src/parse/asp/test_data/interpreter/fstring_optimisation.build") require.NoError(t, err) assert.EqualValues(t, s.Lookup("x"), "test") // Check that it's been optimised to something assign := stmts[0].Ident.Action.Assign assert.Ni...
explode_data.jsonl/81092
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 169 }
[ 2830, 3393, 37, 703, 21367, 318, 7923, 1155, 353, 8840, 836, 8, 341, 1903, 11, 20020, 82, 11, 1848, 1669, 4715, 1703, 1249, 93122, 445, 3548, 14, 6400, 14, 13367, 12697, 1769, 14, 90554, 6663, 917, 15032, 318, 7923, 13239, 1138, 17957...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestContainerTypeFailure(t *testing.T) { var ociSpec specs.Spec expected := vc.UnknownContainerType unknownType := "unknown_type" assert := assert.New(t) ociSpec.Annotations = map[string]string{ annotations.ContainerType: unknownType, } containerType, err := ContainerType(ociSpec) assert.Error(err) as...
explode_data.jsonl/44043
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 4502, 929, 17507, 1155, 353, 8840, 836, 8, 341, 2405, 93975, 8327, 32247, 36473, 198, 42400, 1669, 24553, 69971, 4502, 929, 198, 197, 16088, 929, 1669, 330, 16088, 1819, 698, 6948, 1669, 2060, 7121, 1155, 692, 197, 2119, 832...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBondStatus(t *testing.T) { require.False(t, types.Unbonded == types.Bonded) require.False(t, types.Unbonded == types.Unbonding) require.False(t, types.Bonded == types.Unbonding) require.Equal(t, types.BondStatus(4).String(), "4") require.Equal(t, types.BondStatusUnspecified, types.Unspecified.String()) r...
explode_data.jsonl/2340
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 203 }
[ 2830, 3393, 89844, 2522, 1155, 353, 8840, 836, 8, 341, 17957, 50757, 1155, 11, 4494, 10616, 64239, 291, 621, 4494, 1785, 2111, 291, 340, 17957, 50757, 1155, 11, 4494, 10616, 64239, 291, 621, 4494, 10616, 64239, 287, 340, 17957, 50757, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRecordMetric(t *testing.T) { sink := &AttributionSink{ log: log, attributionData: map[string]*TimeseriesGroup{}, } dp1 := samplers.InterMetric{ Name: "atrtest.1", Timestamp: 1532009163, Value: 1, Tags: []string{"dim1:val1"}, Type: samplers.CounterMetric, } dp2...
explode_data.jsonl/34031
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 524 }
[ 2830, 3393, 6471, 54310, 1155, 353, 8840, 836, 8, 341, 1903, 766, 1669, 609, 19665, 1488, 45094, 515, 197, 6725, 25, 1797, 1487, 345, 197, 35447, 31140, 1043, 25, 2415, 14032, 8465, 18889, 4699, 2808, 38837, 197, 630, 55256, 16, 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 Test_client_GetLatestReleaseTag(t *testing.T) { tests := []struct { name string responseStatus int responseContent string want string wantErr bool }{ {"ok", 200, "latest.json", "v0.8.1", false}, {"no tagname", 200, "latest_no_tagname.json", "", true}, {"invalid json...
explode_data.jsonl/45921
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 536 }
[ 2830, 3393, 8179, 13614, 31992, 16077, 5668, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 21735, 2522, 220, 526, 198, 197, 21735, 2762, 914, 198, 197, 50780, 310, 914, 198, 197, 50780, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReadBigInt(t *testing.T) { expectedInt := 9193970688 b, _ := hex.DecodeString("0500dc5c2402") bytesReader := bytes.NewReader(b) reader := bufio.NewReaderSize(bytesReader, len(b)) value, _ := smartcontract.ReadBigInt(reader) log.Printf("expected %v got %v (%v)", expectedInt, value.Int64(), value.BitLen...
explode_data.jsonl/28980
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 142 }
[ 2830, 3393, 4418, 87474, 1155, 353, 8840, 836, 8, 341, 42400, 1072, 1669, 220, 24, 16, 24, 18, 24, 22, 15, 21, 23, 23, 198, 2233, 11, 716, 1669, 12371, 56372, 703, 445, 15, 20, 15, 15, 7628, 20, 66, 17, 19, 15, 17, 5130, 70326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDirectorydUpdateLocation(t *testing.T) { srv := createTestDirectorydServicer(t) stateTestInit.StartTestService(t) // Create an identity and context for sending requests as gateway id := protos.Identity{} idgw := protos.Identity_Gateway{HardwareId: testGwHwId1, NetworkId: testNetworkId, LogicalId: testGwLo...
explode_data.jsonl/26843
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 754 }
[ 2830, 3393, 9310, 67, 4289, 4707, 1155, 353, 8840, 836, 8, 341, 1903, 10553, 1669, 1855, 2271, 9310, 67, 39159, 12999, 1155, 340, 24291, 2271, 3803, 12101, 2271, 1860, 1155, 340, 197, 322, 4230, 458, 9569, 323, 2266, 369, 11628, 7388, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewFromISOString(t *testing.T) { date := "2011-05-13" testTime := time.Date(2011, 5, 13, 0, 0, 0, 0, time.UTC) lib, err := New(date) if assert.NoError(t, err) { assert.True(t, testTime.Equal(lib.ToTime())) assert.True(t, lib.ToTime().Location() == time.UTC) } }
explode_data.jsonl/73966
{ "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, 3564, 3830, 66979, 1155, 353, 8840, 836, 8, 341, 44086, 1669, 330, 17, 15, 16, 16, 12, 15, 20, 12, 16, 18, 698, 18185, 1462, 1669, 882, 8518, 7, 17, 15, 16, 16, 11, 220, 20, 11, 220, 16, 18, 11, 220, 15, 11, 220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestUtilSMS(t *testing.T) { server := httptest.NewServer(reqMiddleware(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) { rw.Header().Set("Content-Type", "application/json") rw.WriteHeader(200) defer req.Body.Close() bodyBytes, _ := ioutil.ReadAll(req.Body) fmt.Printf("body: %s\n", strin...
explode_data.jsonl/9662
{ "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, 2742, 65565, 1155, 353, 8840, 836, 8, 341, 41057, 1669, 54320, 70334, 7121, 5475, 6881, 24684, 19886, 89164, 18552, 2601, 86, 1758, 37508, 11, 4232, 353, 1254, 9659, 8, 341, 197, 7000, 86, 15753, 1005, 1649, 445, 2762, 10804...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetIndexByRepo(t *testing.T) { runCodeCheckingCases(t, &codeCheckingCase{ request: &testingRequest{ url: "/chartrepo/library/index.yaml", method: http.MethodGet, credential: projDeveloper, }, code: http.StatusOK, }) }
explode_data.jsonl/74127
{ "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, 1949, 1552, 1359, 25243, 1155, 353, 8840, 836, 8, 341, 56742, 2078, 40129, 37302, 1155, 11, 609, 1851, 40129, 4207, 515, 197, 23555, 25, 609, 8840, 1900, 515, 298, 19320, 25, 286, 3521, 15941, 23476, 45446, 9022, 33406, 756,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEventFailArtifactRepoCm(t *testing.T) { // Test whether a WorkflowFailed event is emitted in case of failure in loading artifact repository config map controller := newController() wfcset := controller.wfclientset.ArgoprojV1alpha1().Workflows("") wf := unmarshalWF(failLoadArtifactRepoCm) wf, err := wfcset...
explode_data.jsonl/54394
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 305 }
[ 2830, 3393, 1556, 19524, 85578, 25243, 34, 76, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 3425, 264, 60173, 9408, 1538, 374, 46942, 304, 1142, 315, 7901, 304, 8277, 36639, 12542, 2193, 2415, 198, 61615, 1669, 501, 2051, 741, 6692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMixedOSBuildJob(t *testing.T) { require := require.New(t) emptyManifestV2 := distro.Manifest(`{"version":"2","pipelines":{}}`) server := newTestServer(t, t.TempDir(), time.Millisecond*10, "/") fbPipelines := &worker.PipelineNames{Build: distro.BuildPipelinesFallback(), Payload: distro.PayloadPipelinesFall...
explode_data.jsonl/1109
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1662 }
[ 2830, 3393, 86433, 3126, 11066, 12245, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 197, 3194, 38495, 53, 17, 1669, 1582, 299, 72272, 5809, 4913, 4366, 3252, 17, 2198, 51501, 10999, 788, 90, 3417, 24183, 41057, 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 TestUnmarshalObject(t *testing.T) { data := "O:7:\"struct1\":3:{s:3:\"foo\";i:10;s:3:\"bar\";O:7:\"Struct2\":1:{s:3:\"qux\";d:1.23;}s:3:\"baz\";s:3:\"yay\";}" var result struct1 err := phpserialize.Unmarshal([]byte(data), &result) expectErrorToNotHaveOccurred(t, err) if result.Foo != 10 { t.Errorf("Expecte...
explode_data.jsonl/27027
{ "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, 1806, 27121, 1190, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 330, 46, 25, 22, 75035, 1235, 16, 11693, 18, 12547, 82, 25, 18, 75035, 7975, 2105, 26, 72, 25, 16, 15, 39414, 25, 18, 75035, 2257, 2105, 26, 46, 25, 22, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWrappedMeter(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() mm := mock.NewMockMeter(ctrl) me := mock.NewMockMeterEnergy(ctrl) type EnergyDecorator struct { api.Meter api.MeterEnergy } cm := &EnergyDecorator{Meter: mm, MeterEnergy: me} cr := NewChargeRater(util.NewLogger("fo...
explode_data.jsonl/46522
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 452 }
[ 2830, 3393, 67795, 68224, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 2109, 76, 1669, 7860, 7121, 11571, 68224, 62100, 340, 49294, 1669, 7860, 7121, 11571, 68224, 32675...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetSwapPositions(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip("API keys required but not set, skipping test") } _, err := c.GetSwapPositions(swapTestPair) if err != nil { t.Error(err) } }
explode_data.jsonl/42943
{ "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, 1949, 46179, 45793, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 341, 197, 3244, 57776, 445, 7082, 6894, 2567, 714, 537, 738, 11, 42659, 1273, 1138, 197, 532, 197, 6878,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSpec(t *testing.T) { var tests = []struct { input string output string }{ {input: "", output: "info"}, {input: "debug", output: "debug"}, {input: "a.=info:warning", output: "a.=info:warn"}, {input: "a-b=error", output: "a-b=error:info"}, {input: "a#b=error", output: "a#b=error:info"}, {input...
explode_data.jsonl/81865
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 292 }
[ 2830, 3393, 8327, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 22427, 220, 914, 198, 197, 21170, 914, 198, 197, 59403, 197, 197, 90, 1355, 25, 7342, 2550, 25, 330, 2733, 7115, 197, 197, 90, 1355, 25, 330, 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 TestConfigWriter_PrintEndpointSummary(t *testing.T) { tests := []struct { name string filter EndpointFilter wantOutputFile string callPrime bool wantErr bool }{ { name: "display all endpoints when no filter is passed", filter: EndpointFilter{}, ...
explode_data.jsonl/19936
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 893 }
[ 2830, 3393, 2648, 6492, 45788, 27380, 19237, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 1843, 914, 198, 197, 50108, 260, 47269, 5632, 198, 197, 50780, 5097, 1703, 914, 198, 197, 67288, 32306, 414, 1807, 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...
7
func TestNoRaceParseStateReconnectFunctionality(t *testing.T) { ts := RunServerOnPort(TEST_PORT) ch := make(chan bool) opts := reconnectOpts dch := make(chan bool) dErrCh := make(chan bool) opts.DisconnectedErrCB = func(_ *Conn, _ error) { dErrCh <- true } opts.DisconnectedCB = func(_ *Conn) { dch <- true ...
explode_data.jsonl/622
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 691 }
[ 2830, 3393, 2753, 55991, 14463, 1397, 693, 6459, 5152, 2719, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 6452, 5475, 1925, 7084, 50320, 12377, 340, 23049, 1669, 1281, 35190, 1807, 692, 64734, 1669, 50036, 43451, 198, 2698, 331, 1669, 1281,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLatestReleaseBranch(t *testing.T) { testRepo := newTestRepo(t) defer testRepo.cleanup(t) branch, err := testRepo.sut.LatestReleaseBranch() require.Nil(t, err) require.Equal(t, testRepo.branchName, branch) }
explode_data.jsonl/14045
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 91 }
[ 2830, 3393, 31992, 16077, 18197, 1155, 353, 8840, 836, 8, 341, 18185, 25243, 1669, 501, 2271, 25243, 1155, 340, 16867, 1273, 25243, 87689, 1155, 692, 197, 17940, 11, 1848, 1669, 1273, 25243, 514, 332, 1214, 13893, 16077, 18197, 741, 17957...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestAddStandardAnswerAVPS(t *testing.T) { msg := diam.NewMessage(diam.AuthenticationInformation, 0, diam.TGPP_S6A_APP_ID, 1, 2, dict.Default) serverCfg := &mconfig.DiamServerConfig{ DestHost: "magma_host", DestRealm: "magma_realm", } hss.AddStandardAnswerAVPS(msg, "magma", serverCfg, diam.Success) var a...
explode_data.jsonl/20001
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 239 }
[ 2830, 3393, 2212, 19781, 16141, 8093, 5012, 1155, 353, 8840, 836, 8, 341, 21169, 1669, 12757, 7121, 2052, 1500, 4932, 40673, 14873, 11, 220, 15, 11, 12757, 836, 38, 4406, 1098, 21, 32, 16410, 3450, 11, 220, 16, 11, 220, 17, 11, 6451...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGoroutineLables(t *testing.T) { withTestProcess("goroutineLabels", t, func(p *proc.Target, fixture protest.Fixture) { assertNoError(p.Continue(), t, "Continue()") g, err := proc.GetG(p.CurrentThread()) assertNoError(err, t, "GetG()") if len(g.Labels()) != 0 { t.Fatalf("No labels expected") } a...
explode_data.jsonl/56266
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 278 }
[ 2830, 3393, 38, 269, 14159, 43, 4788, 1155, 353, 8840, 836, 8, 341, 46948, 2271, 7423, 445, 5628, 14159, 23674, 497, 259, 11, 2915, 1295, 353, 15782, 35016, 11, 12507, 8665, 991, 12735, 8, 341, 197, 6948, 2753, 1454, 1295, 2451, 6232,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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