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 TestAnchorKey(t *testing.T) { defer leaktest.AfterTest(t)() defer log.Scope(t).Close(t) ctx := context.Background() manual := hlc.NewManualClock(123) clock := hlc.NewClock(manual.UnixNano, time.Nanosecond) ambient := log.AmbientContext{Tracer: tracing.NewTracer()} stopper := stop.NewStopper() defer stoppe...
explode_data.jsonl/76911
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 568 }
[ 2830, 3393, 14677, 1592, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 16867, 1487, 77940, 1155, 568, 7925, 1155, 692, 20985, 1669, 2266, 19047, 741, 197, 19730, 1669, 305, 17257, 7121, 52092, 26104, 7, 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 TestValidateTime(t *testing.T) { time := "1h 2s" allErrs := validateTime(time, field.NewPath("time-field")) if len(allErrs) != 0 { t.Errorf("validateTime returned errors %v valid input %v", allErrs, time) } }
explode_data.jsonl/65865
{ "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, 17926, 1462, 1155, 353, 8840, 836, 8, 341, 21957, 1669, 330, 16, 71, 220, 17, 82, 698, 50960, 7747, 82, 1669, 9593, 1462, 9730, 11, 2070, 7121, 1820, 445, 1678, 19130, 28075, 743, 2422, 20388, 7747, 82, 8, 961, 220, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAddVoteMsg(t *testing.T) { smr, err := MakeSmr(t) if err != nil { t.Error("TestAddVoteMsg MakeSmr error", err) return } msg := &pb.ChainedBftVoteMessage{ ProposalId: []byte("test case1"), Signature: &pb.SignInfo{ Address: "testcase", PublicKey: `{"Curvname":"P-256","X":74695617477160058757...
explode_data.jsonl/33029
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 602 }
[ 2830, 3393, 2212, 41412, 6611, 1155, 353, 8840, 836, 8, 341, 1903, 20946, 11, 1848, 1669, 7405, 10673, 81, 1155, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 445, 2271, 2212, 41412, 6611, 7405, 10673, 81, 1465, 497, 1848, 340, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestAWSCluster_ValidateAllowedCIDRBlocks(t *testing.T) { tests := []struct { name string awsc *AWSCluster wantErr bool }{ { name: "allow valid CIDRs", awsc: &AWSCluster{ Spec: AWSClusterSpec{ Bastion: Bastion{ AllowedCIDRBlocks: []string{ "192.168.0.0/16", "192.16...
explode_data.jsonl/70926
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 967 }
[ 2830, 3393, 14419, 3540, 75, 4993, 62, 17926, 35382, 54146, 49, 29804, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 197, 672, 2388, 262, 353, 14419, 3540, 75, 4993, 198, 197, 50780, 7747,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFunc(tt *testing.T) { // Single error return _ = a() // BLANK a() // UNCHECKED // Return another value and an error _, _ = b() // BLANK b() // UNCHECKED // Return a custom error type _ = customError() // BLANK customError() // UNCHECKED // Return a custom concrete error type _ = cu...
explode_data.jsonl/69167
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 755 }
[ 2830, 3393, 9626, 47152, 353, 8840, 836, 8, 341, 197, 322, 11327, 1465, 470, 198, 197, 62, 284, 264, 368, 442, 14850, 16012, 198, 11323, 368, 257, 442, 6643, 34516, 1479, 271, 197, 322, 3411, 2441, 897, 323, 458, 1465, 198, 197, 687...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServer_Query_DeleteSeries(t *testing.T) { t.Parallel() s := OpenServer(NewConfig()) defer s.Close() test := tests.load(t, "delete_series_time") if err := s.CreateDatabaseAndRetentionPolicy(test.database(), NewRetentionPolicySpec(test.retentionPolicy(), 1, 0), true); err != nil { t.Fatal(err) } for ...
explode_data.jsonl/61238
{ "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, 5475, 48042, 57418, 25544, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1903, 1669, 5264, 5475, 35063, 2648, 2398, 16867, 274, 10421, 2822, 18185, 1669, 7032, 5104, 1155, 11, 330, 4542, 35015, 3009, 5130, 743, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestKVDelete(t *testing.T) { defer testutil.AfterTest(t) clus := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 3}) defer clus.Terminate(t) kv := clus.RandClient() ctx := context.TODO() presp, err := kv.Put(ctx, "foo", "") if err != nil { t.Fatalf("couldn't put 'foo' (%v)", err) } if pr...
explode_data.jsonl/16406
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 363 }
[ 2830, 3393, 82707, 6435, 1155, 353, 8840, 836, 8, 341, 16867, 1273, 1314, 36892, 2271, 1155, 692, 197, 4163, 1669, 17590, 7121, 28678, 53, 18, 1155, 11, 609, 60168, 72883, 2648, 90, 1695, 25, 220, 18, 3518, 16867, 1185, 355, 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...
7
func TestHTTPContainerInfoGetterGetContainerInfoSuccessfully(t *testing.T) { req := &cadvisorapi.ContainerInfoRequest{ NumStats: 10, } cinfo := cadvisorapitest.GenerateRandomContainerInfo( "dockerIDWhichWillNotBeChecked", // docker ID 2, // Number of cores req, 1*time.Second, ) testHTTPContainerInfoGette...
explode_data.jsonl/53976
{ "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, 9230, 4502, 1731, 31485, 1949, 4502, 1731, 35959, 1155, 353, 8840, 836, 8, 341, 24395, 1669, 609, 34455, 38012, 2068, 33672, 1731, 1900, 515, 197, 197, 4651, 16635, 25, 220, 16, 15, 345, 197, 532, 1444, 2733, 1669, 19409, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTodo(t *testing.T) { c := client.New(LoaderMiddleware(handler.NewDefaultServer(NewExecutableSchema(Config{Resolvers: &Resolver{}})))) t.Run("create a new todo", func(t *testing.T) { var resp interface{} c.MustPost(`{ customers { name address { street } orders { id ...
explode_data.jsonl/49313
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 877 }
[ 2830, 3393, 24176, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2943, 7121, 7, 9181, 24684, 36514, 7121, 3675, 5475, 35063, 94772, 8632, 33687, 90, 1061, 39435, 25, 609, 18190, 90, 3417, 57570, 3244, 16708, 445, 3182, 264, 501, 11804, 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...
1
func TestRedis_Hmget(t *testing.T) { runOnRedis(t, func(client *Redis) { assert.Nil(t, client.Hset("a", "aa", "aaa")) assert.Nil(t, client.Hset("a", "bb", "bbb")) _, err := NewRedis(client.Addr, "").Hmget("a", "aa", "bb") assert.NotNil(t, err) vals, err := client.Hmget("a", "aa", "bb") assert.Nil(t, err) ...
explode_data.jsonl/39162
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 245 }
[ 2830, 3393, 48137, 2039, 76, 455, 1155, 353, 8840, 836, 8, 341, 56742, 1925, 48137, 1155, 11, 2915, 12805, 353, 48137, 8, 341, 197, 6948, 59678, 1155, 11, 2943, 3839, 746, 445, 64, 497, 330, 5305, 497, 330, 32646, 5455, 197, 6948, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_ObjectTracker_Multiple_Expectations(t *testing.T) { g := gomega.NewWithT(t) ot := newObjTracker(schema.GroupVersionKind{}, nil) const count = 10 ct := makeCTSlice("ct-", count) for i := 0; i < len(ct); i++ { ot.Expect(ct[i]) } g.Expect(ot.Satisfied()).NotTo(gomega.BeTrue(), "should not be satisfied ...
explode_data.jsonl/52315
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 275 }
[ 2830, 3393, 27839, 31133, 1245, 12229, 62, 17536, 804, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 32696, 7121, 2354, 51, 1155, 340, 197, 354, 1669, 74259, 31133, 42735, 5407, 5637, 10629, 22655, 2092, 692, 4777, 1760, 284, 220, 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 TestAdd(t *testing.T) { bm := New(100) bm.Add(10) if !bm.Has(10) { t.Errorf("wanted %v but get nil", 10) } }
explode_data.jsonl/26717
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 61 }
[ 2830, 3393, 2212, 1155, 353, 8840, 836, 8, 341, 2233, 76, 1669, 1532, 7, 16, 15, 15, 340, 2233, 76, 1904, 7, 16, 15, 340, 743, 753, 29307, 16152, 7, 16, 15, 8, 341, 197, 3244, 13080, 445, 86592, 1018, 85, 714, 633, 2092, 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 ]
2
func TestSuccessfulCommand(t *testing.T) { f := newLTFixture(t) defer f.TearDown() targ := f.localTarget("echo hello world") res, err := f.ltbad.BuildAndDeploy(f.ctx, f.st, []model.TargetSpec{targ}, store.BuildStateSet{}) require.Nil(t, err) assert.Equal(t, targ.ID(), res[targ.ID()].TargetID()) assert.Contai...
explode_data.jsonl/17635
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 152 }
[ 2830, 3393, 36374, 4062, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 43, 10808, 12735, 1155, 340, 16867, 282, 836, 682, 4454, 2822, 3244, 858, 1669, 282, 11033, 6397, 445, 3047, 23811, 1879, 5130, 10202, 11, 1848, 1669, 282, 82092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApp01maVendorHndlrDB(t *testing.T) { var err error var td *TestData_App01maVendor var rcd App01maVendor.App01maVendor var rcd2 App01maVendor.App01maVendor t.Logf("TestVendor.DB()...\n") td = &TestData_App01maVendor{} td.Setup(t) t.Logf("\tChecki...
explode_data.jsonl/78270
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 2164, 15, 16, 1728, 44691, 39, 303, 19018, 3506, 1155, 353, 8840, 836, 8, 341, 262, 762, 1848, 260, 1465, 198, 262, 762, 17941, 688, 353, 83920, 36117, 15, 16, 1728, 44691, 198, 262, 762, 435, 4385, 260, 1845, 15, 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 TestRepositories(t *testing.T) { require := require.New(t) tmpDir, err := CreateTempDir() require.NoError(err) defer os.RemoveAll(tmpDir) config := GitServerConfig{ RepositoriesCache: tmpDir, Complexity: 0, } repos, err := NewRepositories(config) require.NotNil(repos) require.NoError(err) r...
explode_data.jsonl/76543
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 300 }
[ 2830, 3393, 44814, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 20082, 6184, 11, 1848, 1669, 4230, 12151, 6184, 741, 17957, 35699, 3964, 340, 16867, 2643, 84427, 10368, 6184, 692, 25873, 1669, 21120, 5475, 2648, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestRevokeAllSessions(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() user := th.BasicUser th.Client.Login(user.Email, user.Password) resp, err := th.Client.RevokeAllSessions(th.BasicUser2.Id) require.Error(t, err) CheckForbiddenStatus(t, resp) resp, err = th.Client.RevokeAllSessions("jun...
explode_data.jsonl/47532
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 407 }
[ 2830, 3393, 693, 7621, 2403, 59062, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 19060, 1669, 270, 48868, 1474, 198, 70479, 11716, 32499, 4277, 24066, 11, 1196, 25690, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVerifyExpiredTokenWindowAndAud(t *testing.T) { tokenIsValidWindow, errTokenPayload := VerifyToken(expiredToken, &testLocalSessions, nil) if tokenIsValidWindow { t.Fail() t.Logf("token window should be expired") } if errTokenPayload != nil { t.Fail() t.Logf(errTokenPayload.Error()) } }
explode_data.jsonl/11055
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 32627, 54349, 3323, 4267, 3036, 52949, 1155, 353, 8840, 836, 8, 341, 43947, 55470, 4267, 11, 1848, 3323, 29683, 1669, 25429, 3323, 25865, 2690, 3323, 11, 609, 1944, 7319, 59062, 11, 2092, 340, 743, 3950, 55470, 4267, 341, 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 TestGetFileContentTypeDOC(t *testing.T) { file := `../testdata/files/test5.doc` fileType, err := GetFileContentType(file) if err != nil { t.Log("Error -> ", err) t.Fail() } if fileType != "application/doc" { t.Log(fileType) t.Fail() } }
explode_data.jsonl/24010
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 108 }
[ 2830, 3393, 1949, 1703, 29504, 31464, 1155, 353, 8840, 836, 8, 341, 17661, 1669, 1565, 1244, 92425, 33220, 12697, 20, 23671, 3989, 17661, 929, 11, 1848, 1669, 2126, 1703, 29504, 4866, 692, 743, 1848, 961, 2092, 341, 197, 3244, 5247, 445...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestClientMethodWithQueryParams(t *testing.T) { Convey("TestClientMethodWithQueryParams Requests", t, func(c C) { targetDir, err := ioutil.TempDir("", "") c.So(err, ShouldBeNil) apiDef := new(raml.APIDefinition) err = raml.ParseFile("../fixtures/body_with_query_params.raml", apiDef) c.So(err, ShouldBeN...
explode_data.jsonl/19338
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 733 }
[ 2830, 3393, 2959, 3523, 2354, 2859, 4870, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 2271, 2959, 3523, 2354, 2859, 4870, 50882, 497, 259, 11, 2915, 1337, 356, 8, 341, 197, 28861, 6184, 11, 1848, 1669, 43144, 65009, 6184, 19814, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPerformRequestWithCancel(t *testing.T) { tr := &sleepingTransport{timeout: 3 * time.Second} httpClient := &http.Client{Transport: tr} client, err := NewSimpleClient(SetHttpClient(httpClient), SetMaxRetries(0)) if err != nil { t.Fatal(err) } type result struct { res *Response err error } ctx, ca...
explode_data.jsonl/38026
{ "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, 46951, 1900, 2354, 9269, 1155, 353, 8840, 836, 8, 341, 25583, 1669, 609, 25809, 287, 27560, 90, 14150, 25, 220, 18, 353, 882, 32435, 532, 28080, 2959, 1669, 609, 1254, 11716, 90, 27560, 25, 489, 630, 25291, 11, 1848, 1669,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGuild_AddChannel(t *testing.T) { snowflakes := []Snowflake{ NewSnowflake(6), NewSnowflake(65), NewSnowflake(324), NewSnowflake(5435), NewSnowflake(63453), NewSnowflake(111111111), } guild := NewGuild() for i := range snowflakes { channel := NewChannel() channel.ID = snowflakes[len(snowfla...
explode_data.jsonl/55146
{ "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, 72574, 21346, 9629, 1155, 353, 8840, 836, 8, 341, 1903, 3328, 1489, 2050, 1669, 3056, 62285, 63456, 515, 197, 197, 3564, 62285, 63456, 7, 21, 1326, 197, 197, 3564, 62285, 63456, 7, 21, 20, 1326, 197, 197, 3564, 62285, 6345...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSpatialObjectToWKB(t *testing.T) { testCases := []struct { ewkt geopb.EWKT expected geopb.WKB }{ {"POINT(1.0 1.0)", []byte("\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf0\x3f\x00\x00\x00\x00\x00\x00\xf0\x3f")}, {"SRID=4004;POINT(1.0 1.0)", []byte("\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\xf...
explode_data.jsonl/31775
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 386 }
[ 2830, 3393, 90618, 1190, 1249, 54, 29862, 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, 3893, 453, 65, 1175, 29862, 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...
1
func TestTriggerImmutableFields(t *testing.T) { tests := []struct { name string current *Trigger original *Trigger want *apis.FieldError }{{ name: "good (no change)", current: &Trigger{ Spec: TriggerSpec{ Broker: "broker", }, }, original: &Trigger{ Spec: TriggerSpec{ Broker: ...
explode_data.jsonl/23592
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 636 }
[ 2830, 3393, 17939, 58890, 8941, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 20121, 220, 353, 17939, 198, 197, 197, 9889, 353, 17939, 198, 197, 50780, 257, 353, 13725, 17087, 1454, 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...
2
func TestReadOnly(t *testing.T) { Reset() // Mock command line arguments os.Args = append(os.Args, defaultDuskConfig) // This relies on default.dusk.toml if err := Load("default.dusk", nil, nil); err != nil { t.Errorf("Failed parse: %v", err) } if Get().Logger.Level != "debug" { t.Error("Invalid logger le...
explode_data.jsonl/43171
{ "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, 20914, 1155, 353, 8840, 836, 8, 341, 197, 14828, 2822, 197, 322, 14563, 3210, 1555, 5977, 198, 25078, 51015, 284, 8737, 9638, 51015, 11, 1638, 35, 32779, 2648, 692, 197, 322, 1096, 33644, 389, 1638, 950, 32779, 73494, 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 TestGroup_Pattern(t *testing.T) { type fields struct { str string name string } tests := []struct { name string fields fields want string }{ // TODO: Add test cases. } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { g := Group{ str: tt.fields.str, name: tt.fields...
explode_data.jsonl/56174
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 2808, 1088, 3227, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 11355, 220, 914, 198, 197, 11609, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 55276, 5043, 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 TestSync(t *testing.T) { //Test should create the file before deleting it src := "s3://bucket/path/to/copy/to" dst := "k8s://namespace/pod/container/path/to/copy/from" parallel := 1 // one file at a time bufferSize := 1.0 // 1GB of in memory buffer size if err := skbn.Sync(src, dst, parallel, bufferSize...
explode_data.jsonl/13931
{ "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, 12154, 1155, 353, 8840, 836, 8, 341, 197, 322, 2271, 1265, 1855, 279, 1034, 1573, 33011, 432, 198, 41144, 1669, 330, 82, 18, 1110, 30410, 50976, 32429, 2899, 1266, 32429, 698, 52051, 1669, 330, 74, 23, 82, 1110, 2231, 4322...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTimer_AddLeveledEntry1(t *testing.T) { gtest.Case(t, func() { timer := New() array := garray.New() //glog.Println("start") timer.DelayAdd(1000*time.Millisecond, 1001*time.Millisecond, func() { //glog.Println("add") array.Append(1) }) t...
explode_data.jsonl/3726
{ "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, 10105, 21346, 2304, 93964, 5874, 16, 1155, 353, 8840, 836, 8, 341, 262, 342, 1944, 727, 519, 1155, 11, 2915, 368, 341, 286, 9021, 1669, 1532, 741, 286, 1334, 1669, 342, 1653, 7121, 741, 286, 442, 70, 839, 12419, 445, 246...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFeatureEnabled(t *testing.T) { t.Run("Test feature enabled is correct", func(t *testing.T) { features := []FeatureSpec{ { Name: "testEnabled", Enabled: true, }, { Name: "testDisabled", Enabled: false, }, } assert.True(t, IsFeatureEnabled(features, "testEnabled")) asse...
explode_data.jsonl/9032
{ "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, 13859, 5462, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 2271, 4565, 8970, 374, 4396, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1166, 22462, 1669, 3056, 13859, 8327, 515, 298, 197, 515, 571, 21297, 25, 262, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSmiRouter_GetRoutes(t *testing.T) { mocks := newFixture(nil) router := &SmiRouter{ logger: mocks.logger, flaggerClient: mocks.flaggerClient, smiClient: mocks.meshClient, kubeClient: mocks.kubeClient, } err := router.Reconcile(mocks.canary) require.NoError(t, err) p, c, m, err := r...
explode_data.jsonl/8374
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 212 }
[ 2830, 3393, 50, 8155, 9523, 13614, 26653, 1155, 353, 8840, 836, 8, 341, 2109, 25183, 1669, 501, 18930, 27907, 340, 67009, 1669, 609, 50, 8155, 9523, 515, 197, 17060, 25, 286, 68909, 16078, 345, 197, 1166, 75, 10114, 2959, 25, 68909, 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 TestAppConfig_SwitchContextByName(t *testing.T) { config := getAppConfig() config.SwitchContextByName("second-context") if config.CurrentContext.Name != "second-context" { t.Error("could not switch context") } }
explode_data.jsonl/6632
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 71 }
[ 2830, 3393, 2164, 2648, 1098, 5539, 1972, 16898, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 76382, 2648, 2822, 25873, 808, 5539, 1972, 16898, 445, 5569, 63633, 5130, 743, 2193, 11517, 1972, 2967, 961, 330, 5569, 63633, 1, 341, 197, 3244...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestLaunchIDFromVerifiedClientIDQuerySingle(t *testing.T) { keeper, ctx := keepertest.Monitoringc(t) wctx := sdk.WrapSDKContext(ctx) msgs := createNLaunchIDFromVerifiedClientID(keeper, ctx, 2) for _, tc := range []struct { desc string request *types.QueryGetLaunchIDFromVerifiedClientIDRequest respon...
explode_data.jsonl/22539
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 605 }
[ 2830, 3393, 32067, 915, 3830, 54558, 2959, 915, 2859, 10888, 1155, 353, 8840, 836, 8, 341, 197, 18861, 11, 5635, 1669, 2506, 83386, 1321, 30314, 287, 66, 1155, 340, 6692, 3773, 1669, 45402, 38968, 31534, 1972, 7502, 340, 21169, 82, 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...
2
func TestMapProxy_SinglePutGet(t *testing.T) { testKey := "testingKey" testValue := "testingValue" mp.Put(testKey, testValue) res, err := mp.Get(testKey) AssertEqualf(t, err, res, testValue, "get returned a wrong value") mp.Clear() }
explode_data.jsonl/56955
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 90 }
[ 2830, 3393, 2227, 16219, 1098, 2173, 19103, 1949, 1155, 353, 8840, 836, 8, 341, 18185, 1592, 1669, 330, 8840, 1592, 698, 18185, 1130, 1669, 330, 8840, 1130, 698, 53230, 39825, 8623, 1592, 11, 1273, 1130, 340, 10202, 11, 1848, 1669, 1049...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddCreateOrder(t *testing.T) { cs := fillChangeset("Create") if cs.Create[0].Kind != "ServiceAccount" { t.Errorf("SA needs to be created before PVC") } if cs.Create[1].Kind != "PersistentVolumeClaim" { t.Errorf("PVC needs to be created before DC") } }
explode_data.jsonl/33774
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 98 }
[ 2830, 3393, 2212, 4021, 4431, 1155, 353, 8840, 836, 8, 341, 71899, 1669, 5155, 11317, 295, 445, 4021, 1138, 743, 10532, 7251, 58, 15, 936, 10629, 961, 330, 1860, 7365, 1, 341, 197, 3244, 13080, 445, 7778, 3880, 311, 387, 3465, 1573, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_CreateScratch_DirDestpath_Failure(t *testing.T) { rhcs := runhcs.Runhcs{ Debug: true, } ctx := context.TODO() err := rhcs.CreateScratch(ctx, t.TempDir()) if err == nil { t.Fatal("Should have failed 'CreateScratch' command with dir destpath") } }
explode_data.jsonl/71751
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 34325, 65508, 754, 1557, 404, 34830, 2343, 1400, 9373, 1155, 353, 8840, 836, 8, 341, 7000, 71, 4837, 1669, 1598, 71, 4837, 16708, 71, 4837, 515, 197, 34424, 25, 830, 345, 197, 630, 20985, 1669, 2266, 90988, 741, 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...
2
func TestNewCommand(t *testing.T) { root := &cmds.Command{ Subcommands: map[string]*cmds.Command{ "test": NewCommand(&oldcmds.Command{ Run: func(req oldcmds.Request, res oldcmds.Response) { res.SetOutput("Test.") }, Marshalers: map[oldcmds.EncodingType]oldcmds.Marshaler{ oldcmds.Text: func(r...
explode_data.jsonl/71793
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 957 }
[ 2830, 3393, 3564, 4062, 1155, 353, 8840, 836, 8, 341, 33698, 1669, 609, 92407, 12714, 515, 197, 197, 3136, 24270, 25, 2415, 14032, 8465, 92407, 12714, 515, 298, 197, 1, 1944, 788, 1532, 4062, 2099, 813, 92407, 12714, 515, 571, 85952, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Subscribe(t *testing.T) { var testCases = []struct { desc string retryInterval time.Duration amqpDeliveryList []amqp.Delivery expectedMessages []mq.Message channelErr error notifyErr *amqp.Error }{ { desc: "amqp type messages get converted to appropriate...
explode_data.jsonl/47220
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1260 }
[ 2830, 3393, 36359, 6273, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 37302, 284, 3056, 1235, 341, 197, 41653, 1797, 914, 198, 197, 17200, 1539, 10256, 262, 882, 33795, 198, 197, 197, 309, 32763, 38121, 852, 3056, 309, 32763, 909, 72871, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMiddlewarePanicOnLateUse(t *testing.T) { handler := func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("hello\n")) } mw := func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { next.ServeHTTP(w, r) }) } defer func() { if recov...
explode_data.jsonl/42881
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 24684, 47, 31270, 1925, 61457, 10253, 1155, 353, 8840, 836, 8, 341, 53326, 1669, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6692, 4073, 10556, 3782, 445, 14990, 1699, 5455, 197, 630, 2109, 86, 1669, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_findModifiedCharts_repo2(t *testing.T) { // repo2 is a single-project repo with a single chart in a nested "deploy" directory clonedPath, teardown := setupGitRepo("repo2_bare", t) defer teardown() tests := []struct { p *Plugin want map[string]bool reason string }{ { reason: "Initial Co...
explode_data.jsonl/58799
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 897 }
[ 2830, 3393, 21814, 19148, 64878, 37784, 17, 1155, 353, 8840, 836, 8, 341, 197, 322, 15867, 17, 374, 264, 3175, 33696, 15867, 448, 264, 3175, 9487, 304, 264, 24034, 330, 35794, 1, 6220, 198, 39407, 19684, 1820, 11, 49304, 1669, 6505, 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...
5
func TestHscan(t *testing.T) { s, err := Run() ok(t, err) defer s.Close() c, err := proto.Dial(s.Addr()) ok(t, err) defer c.Close() // We cheat with hscan. It always returns everything. s.HSet("h", "field1", "value1") s.HSet("h", "field2", "value2") // No problem mustDo(t, c, "HSCAN", "h", "0", proto....
explode_data.jsonl/11379
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 881 }
[ 2830, 3393, 39, 16405, 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, 18433, 98462, 1141, 93626, 2398, 59268, 1155, 11, 1848, 340, 16867, 272, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandlerGetErrorsPercentage(t *testing.T) { config := mockConfig{ doErrorsPercentage: func() int { return 12 }, } response := doGetErrorsPercentageRequest(handlerForConfig(config)) checkStatusCode(t, response, http.StatusOK) checkBody(t, response, "12\n") }
explode_data.jsonl/48339
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 98 }
[ 2830, 3393, 3050, 1949, 13877, 36167, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 7860, 2648, 515, 197, 19935, 13877, 36167, 25, 2915, 368, 526, 341, 298, 853, 220, 16, 17, 198, 197, 197, 1583, 197, 630, 21735, 1669, 56704, 13877, 3616...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsMethodAllowedReturnsTrueWithOptions(t *testing.T) { s := New(Options{ // Intentionally left blank. }) if !s.isMethodAllowed("OPTIONS") { t.Error("IsMethodAllowed should return true when c.allowedMethods is nil.") } }
explode_data.jsonl/57642
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 81 }
[ 2830, 3393, 3872, 3523, 35382, 16446, 2514, 74238, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 7, 3798, 515, 197, 322, 1333, 2939, 745, 2115, 10113, 624, 197, 3518, 743, 753, 82, 2079, 3523, 35382, 445, 56929, 899, 341, 197, 3244,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestFetchConnectionRecord(t *testing.T) { t.Run("fetch connection record - invalid payload", func(t *testing.T) { svc, err := New(&protocol.MockProvider{ ServiceMap: map[string]interface{}{ mediator.Coordination: &mockroute.MockMediatorSvc{}, }, }) require.NoError(t, err) _, err = svc.fetchConn...
explode_data.jsonl/30540
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 613 }
[ 2830, 3393, 20714, 4526, 6471, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 9641, 3633, 3255, 481, 8318, 7729, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1903, 7362, 11, 1848, 1669, 1532, 2099, 17014, 24664, 5179, 515, 298, 9161...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateSecurityRuleType(t *testing.T) { validTypes := []string{ "ingress", "egress", } for _, v := range validTypes { if _, errors := validateSecurityRuleType(v, "type"); len(errors) > 0 { t.Fatalf("%q should be a valid Security Group Rule type: %v", v, errors) } } invalidTypes := []string{ ...
explode_data.jsonl/78591
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 208 }
[ 2830, 3393, 17926, 15352, 11337, 929, 1155, 353, 8840, 836, 8, 341, 56322, 4173, 1669, 3056, 917, 515, 197, 197, 1, 287, 673, 756, 197, 197, 1, 791, 673, 756, 197, 532, 2023, 8358, 348, 1669, 2088, 2697, 4173, 341, 197, 743, 8358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnitHandleGetPractitionerResources(t *testing.T) { err := os.Chdir("..") if err != nil { log.ErrorR(nil, fmt.Errorf("error accessing root directory")) } Convey("Must need a transactionID in the URL", t, func() { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() res := serveGetPractition...
explode_data.jsonl/25956
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 974 }
[ 2830, 3393, 4562, 6999, 1949, 3533, 531, 71246, 11277, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 2643, 6353, 3741, 95032, 1138, 743, 1848, 961, 2092, 341, 197, 6725, 6141, 49, 27907, 11, 8879, 13080, 445, 841, 31788, 3704, 6220, 5455, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInterpretError(t *testing.T) { tests := []struct { Test string Input string Output string }{ { Test: "other plugin not installed", Input: `{"error":{"root_cause":[{"type":"parse_exception","reason":"No processor type exists with name [hello_test]","header":{"processor_type":"hello_test"}}],...
explode_data.jsonl/64760
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 899 }
[ 2830, 3393, 3306, 8043, 1454, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 73866, 256, 914, 198, 197, 66588, 220, 914, 198, 197, 80487, 914, 198, 197, 59403, 197, 197, 515, 298, 73866, 25, 220, 330, 1575, 9006, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDuplicate(t *testing.T) { s, c := makeTestServer() defer s.Shutdown() filename := "test-duplicate" mode := "octet" bs := []byte("lalala") sender, err := c.Send(filename, mode) if err != nil { t.Fatalf("requesting write: %v", err) } buf := bytes.NewBuffer(bs) _, err = sender.ReadFrom(buf) if err !=...
explode_data.jsonl/17555
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 212 }
[ 2830, 3393, 53979, 1155, 353, 8840, 836, 8, 341, 1903, 11, 272, 1669, 1281, 2271, 5475, 741, 16867, 274, 10849, 18452, 741, 66434, 1669, 330, 1944, 1737, 14070, 698, 60247, 1669, 330, 41692, 295, 698, 93801, 1669, 3056, 3782, 445, 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 TestGetOrderbook(t *testing.T) { t.Parallel() _, err := b.GetOrderbook(BTCAUD, 2) if err != nil { t.Error("GetTrades() error", err) } }
explode_data.jsonl/33143
{ "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, 1949, 4431, 2190, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 6878, 1848, 1669, 293, 2234, 4431, 2190, 5349, 51, 5049, 4656, 11, 220, 17, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 445, 1949, 1282, 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 ]
2
func TestBatchGetPeers(t *testing.T) { once.Do(testSetup) peer0 := &fakePeer{} peer1 := &fakePeer{} peer2 := &fakePeer{} peerList := fakePeers([]ProtoGetter{peer0, peer1, peer2, nil}) const cacheSize = 0 // disabled localHits := 0 getter := func(_ context.Context, keyList []string, destList []Sink) []error { ...
explode_data.jsonl/62847
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1191 }
[ 2830, 3393, 21074, 1949, 10197, 388, 1155, 353, 8840, 836, 8, 341, 197, 13184, 33596, 8623, 21821, 340, 197, 16537, 15, 1669, 609, 30570, 30888, 16094, 197, 16537, 16, 1669, 609, 30570, 30888, 16094, 197, 16537, 17, 1669, 609, 30570, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeclareFaults(t *testing.T) { periodOffset := abi.ChainEpoch(100) actor := newHarness(t, periodOffset) builder := builderForHarness(actor). WithBalance(bigBalance, big.Zero()) t.Run("declare fault pays fee", func(t *testing.T) { // Get sector into proving state rt := builder.Build(t) actor.constru...
explode_data.jsonl/43146
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 347 }
[ 2830, 3393, 78455, 58780, 82, 1155, 353, 8840, 836, 8, 341, 197, 19304, 6446, 1669, 61050, 98269, 44338, 7, 16, 15, 15, 340, 93410, 1669, 501, 74248, 1155, 11, 4168, 6446, 340, 44546, 1669, 7363, 2461, 74248, 65451, 4292, 197, 197, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestWorstPatternFormat(t *testing.T) { in := "short:[%d %t] good:[%D %T] levelPadded:[%-10L] long:%S short:%s xs:%10x Msg:%M Fnc:%P Pkg:%p" out := "short:[2011/10/20 15:39:07] good:[2011-10-20 15:39:07.383] levelPadded:[INFO ] " + "long:/blah/der/some_file.go:7 short:some_file.go:7 xs: some_file Msg:hello...
explode_data.jsonl/25104
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 54, 65296, 15760, 4061, 1155, 353, 8840, 836, 8, 341, 17430, 1669, 330, 8676, 7259, 4, 67, 1018, 83, 60, 1661, 7259, 4, 35, 1018, 51, 60, 2188, 47, 16828, 7259, 42973, 16, 15, 43, 60, 1293, 7533, 50, 2805, 7533, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestOSDPlacement(t *testing.T) { clientset := fake.NewSimpleClientset() clusterInfo := &cephclient.ClusterInfo{ Namespace: "ns", CephVersion: cephver.Nautilus, } clusterInfo.SetName("testing") clusterInfo.OwnerInfo = cephclient.NewMinimumOwnerInfo(t) context := &clusterd.Context{Clientset: clientset, C...
explode_data.jsonl/73008
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2336 }
[ 2830, 3393, 3126, 35, 28237, 1155, 353, 8840, 836, 8, 341, 25291, 746, 1669, 12418, 7121, 16374, 2959, 746, 741, 197, 18855, 1731, 1669, 609, 58722, 2972, 72883, 1731, 515, 197, 90823, 25, 256, 330, 4412, 756, 197, 6258, 23544, 5637, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGet(t *testing.T) { var numTimesInitialized int32 expectedTimesInitialized := 2 cache := New("Example_Cache", func(key Key) (interface{}, error) { if key.String() == "error" { return nil, fmt.Errorf("some error") } atomic.AddInt32(&numTimesInitialized, 1) return fmt.Sprintf("Value_for_key_%s", k...
explode_data.jsonl/2252
{ "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, 1949, 1155, 353, 8840, 836, 8, 341, 2405, 1629, 18889, 22495, 526, 18, 17, 198, 42400, 18889, 22495, 1669, 220, 17, 271, 52680, 1669, 1532, 445, 13314, 920, 1777, 497, 2915, 4857, 5309, 8, 320, 4970, 22655, 1465, 8, 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...
2
func Test_createBootClone_into_empty_directory_succeeds(t *testing.T) { log.SetOutput(ioutil.Discard) bootDir, err := ioutil.TempDir("", "boot-test") require.NoError(t, err) defer func() { _ = os.RemoveAll(bootDir) }() factory := cmd_mocks.NewMockFactory() commonOpts := opts.NewCommonOptionsWithFactory(factor...
explode_data.jsonl/63006
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 260 }
[ 2830, 3393, 8657, 17919, 37677, 45514, 15124, 14846, 643, 29264, 82, 1155, 353, 8840, 836, 8, 341, 6725, 4202, 5097, 1956, 30158, 909, 47560, 340, 197, 4619, 6184, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 4619, 16839, 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 TestIteratorNext(t *testing.T) { const n = 100 l := NewSkiplist(arenaSize, new(y.DefaultKeyComparator)) defer l.DecrRef() it := l.NewIterator() defer it.Close() require.False(t, it.Valid()) it.SeekToFirst() require.False(t, it.Valid()) for i := n - 1; i >= 0; i-- { l.Put(y.KeyWithTs([]byte(fmt.Sprintf("...
explode_data.jsonl/49654
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 11951, 5847, 1155, 353, 8840, 836, 8, 341, 4777, 308, 284, 220, 16, 15, 15, 198, 8810, 1669, 1532, 50, 6642, 39934, 7, 30527, 1695, 11, 501, 7021, 13275, 1592, 38658, 1171, 16867, 326, 22442, 81, 3945, 741, 23374, 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...
3
func TestObjSetSym(t *testing.T) { const SCRIPT = ` 'use strict'; var sym = Symbol(true); var p1 = Object.create(null); var p2 = Object.create(p1); Object.defineProperty(p1, sym, { value: 42 }); Object.defineProperty(p2, sym, { value: 43, writable: true, }); var o = Object.create(p2); o[sym] = 44; o[...
explode_data.jsonl/10515
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 163 }
[ 2830, 3393, 5261, 1649, 27912, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 197, 19176, 7304, 1010, 2405, 7886, 284, 19612, 3715, 317, 2405, 281, 16, 284, 3002, 2520, 4967, 317, 2405, 281, 17, 284, 3002, 2520, 1295, 16, 317,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseValidListLine(t *testing.T) { for _, lt := range listTests { entry, err := parseListLine(lt.line, now, time.UTC) if err != nil { t.Errorf("parseListLine(%v) returned err = %v", lt.line, err) continue } if entry.Name != lt.name { t.Errorf("parseListLine(%v).Name = '%v', want '%v'", lt.lin...
explode_data.jsonl/54610
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 334 }
[ 2830, 3393, 14463, 4088, 852, 2460, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 25175, 1669, 2088, 1140, 18200, 341, 197, 48344, 11, 1848, 1669, 4715, 852, 2460, 2333, 83, 10932, 11, 1431, 11, 882, 87069, 340, 197, 743, 1848, 961, 2092,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestAdmissionPluginNames(t *testing.T) { for _, plugin := range CombinedAdmissionControlPlugins { if !strings.HasPrefix(plugin, "openshift.io/") && !kubeAdmissionPlugins.Has(plugin) && !legacyOpenshiftAdmissionPlugins.Has(plugin) { t.Errorf("openshift admission plugins must be prefixed with openshift.io/ %v"...
explode_data.jsonl/49109
{ "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, 2589, 2728, 11546, 7980, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 9006, 1669, 2088, 57652, 2589, 2728, 3273, 45378, 341, 197, 743, 753, 18594, 94357, 46801, 11, 330, 24175, 47833, 4245, 97112, 1009, 753, 97717, 2589, 2728, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCall_ReserveResourcesStringer(t *testing.T) { popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) p := NewPopulatedCall_ReserveResources(popr, false) s1 := p.String() s2 := fmt.Sprintf("%v", p) if s1 != s2 { t.Fatalf("String want %v got %v", s1, s2) } }
explode_data.jsonl/42090
{ "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, 7220, 92815, 5852, 11277, 703, 261, 1155, 353, 8840, 836, 8, 341, 3223, 46288, 1669, 6888, 33864, 7121, 37270, 33864, 7121, 3608, 9730, 13244, 1005, 55832, 83819, 12145, 3223, 1669, 1532, 11598, 7757, 7220, 92815, 5852, 11277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_HookProvider_TransformRequest(t *testing.T) { provider := HookProvider{} t.Log("Unsupported Event Type") { request := http.Request{ Header: http.Header{ "X-Event-Key": {"not:supported"}, "Content-Type": {"application/json; charset=utf-8"}, "X-Attempt-Number": {"1"}, }, } h...
explode_data.jsonl/62891
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2444 }
[ 2830, 3393, 2039, 1941, 5179, 34932, 627, 1900, 1155, 353, 8840, 836, 8, 341, 197, 19979, 1669, 28171, 5179, 31483, 3244, 5247, 445, 41884, 3665, 3990, 1138, 197, 515, 197, 23555, 1669, 1758, 9659, 515, 298, 197, 4047, 25, 1758, 15753, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEnumComments(test *testing.T) { var err error egood, err := parseRDLString(` // Comment for TestEnum type TestEnum enum { ONE, // Comment for ONE TWO // Comment for TWO } `) if err != nil { test.Errorf("cannot parse valid RDL: %v", err) } ebad, err := parseRDLString(` // Comment for TestEnum typ...
explode_data.jsonl/74355
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 282 }
[ 2830, 3393, 10766, 17373, 8623, 353, 8840, 836, 8, 341, 2405, 1848, 1465, 198, 197, 791, 1386, 11, 1848, 1669, 4715, 49, 16524, 703, 61528, 322, 12255, 369, 3393, 10766, 198, 1313, 3393, 10766, 7618, 341, 262, 24038, 11, 442, 12255, 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...
4
func TestDeletePrivateDNS(t *testing.T) { testcases := []struct { name string expectedError string expect func(s *mock_privatedns.MockScopeMockRecorder, m *mock_privatedns.MockclientMockRecorder) }{ { name: "no private dns", expectedError: "", expect: func(s *mock_privatedns....
explode_data.jsonl/70330
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2767 }
[ 2830, 3393, 6435, 16787, 61088, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 11609, 688, 914, 198, 197, 42400, 1454, 914, 198, 197, 24952, 286, 2915, 1141, 353, 16712, 24726, 657, 4412, 24664, 10803, 11571, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewClient(t *testing.T) { p := &Provider{} gomega.RegisterTestingT(t) // nil store _, err := p.NewClient(context.Background(), nil, nil, "") gomega.Expect(err).To(gomega.HaveOccurred()) // missing provider _, err = p.NewClient(context.Background(), &esv1beta1.SecretStore{}, nil, "") gomega.Expect(err...
explode_data.jsonl/20411
{ "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, 3564, 2959, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 609, 5179, 16094, 3174, 32696, 19983, 16451, 51, 1155, 692, 197, 322, 2092, 3553, 198, 197, 6878, 1848, 1669, 281, 7121, 2959, 5378, 19047, 1507, 2092, 11, 2092, 11, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReconcileCancelledPipelineRun(t *testing.T) { ps := []*v1alpha1.Pipeline{tb.Pipeline("test-pipeline", "foo", tb.PipelineSpec( tb.PipelineTask("hello-world-1", "hello-world", tb.Retries(1)), ))} prs := []*v1alpha1.PipelineRun{tb.PipelineRun("test-pipeline-run-with-timeout", "foo", tb.PipelineRunSpec("tes...
explode_data.jsonl/81292
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 671 }
[ 2830, 3393, 693, 40446, 457, 39473, 34656, 6727, 1155, 353, 8840, 836, 8, 341, 35009, 1669, 29838, 85, 16, 7141, 16, 1069, 8790, 90, 18387, 1069, 8790, 445, 1944, 2268, 8790, 497, 330, 7975, 497, 16363, 1069, 8790, 8327, 1006, 197, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPersistence(t *testing.T) { db := db.NewMemDB() // Create some random key value pairs records := make(map[string]string) for i := 0; i < 10000; i++ { records[randstr(20)] = randstr(20) } // Construct some tree and save it t1 := NewIAVLTree(0, db) for key, value := range records { t1.Set([]byte(ke...
explode_data.jsonl/5016
{ "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, 71562, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 2927, 7121, 18816, 3506, 2822, 197, 322, 4230, 1045, 4194, 1376, 897, 13530, 198, 197, 26203, 1669, 1281, 9147, 14032, 30953, 340, 2023, 600, 1669, 220, 15, 26, 600, 366, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestResourceName(t *testing.T) { assert.Equal(t, "rook-ceph-mon-a", resourceName("rook-ceph-mon-a")) assert.Equal(t, "rook-ceph-mon123", resourceName("rook-ceph-mon123")) assert.Equal(t, "rook-ceph-mon-b", resourceName("b")) }
explode_data.jsonl/39524
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 103 }
[ 2830, 3393, 4783, 675, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 330, 299, 562, 53212, 759, 77296, 7409, 497, 98485, 445, 299, 562, 53212, 759, 77296, 7409, 5455, 6948, 12808, 1155, 11, 330, 299, 562, 53212, 759, 77296, 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 TestNewPodCommandExecutor(t *testing.T) { restClientConfig := &rest.Config{Host: "foo"} poster := &mockPoster{} pce := NewPodCommandExecutor(restClientConfig, poster).(*defaultPodCommandExecutor) assert.Equal(t, restClientConfig, pce.restClientConfig) assert.Equal(t, poster, pce.restClient) assert.Equal(t, &...
explode_data.jsonl/62113
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 131 }
[ 2830, 3393, 3564, 23527, 4062, 25255, 1155, 353, 8840, 836, 8, 341, 197, 3927, 2959, 2648, 1669, 609, 3927, 10753, 90, 9296, 25, 330, 7975, 16707, 197, 45401, 1669, 609, 16712, 95077, 16094, 3223, 346, 1669, 1532, 23527, 4062, 25255, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateMotorcyclePresenter_Handle(t *testing.T) { // ARRANGE roles := map[authorizationrole.AuthorizationRole]bool{ authorizationrole.AdminAuthorizationRole: true, } authService, _ := security.NewAuthService(true, roles) repo, _ := repository.NewMotorcycleRepository() // Insert a motorcycle so we can ...
explode_data.jsonl/78288
{ "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, 4289, 33577, 21621, 33849, 42714, 1155, 353, 8840, 836, 8, 1476, 197, 322, 82079, 11503, 198, 197, 14643, 1669, 2415, 58, 39554, 5778, 53786, 9030, 96436, 515, 197, 197, 39554, 5778, 39469, 18124, 9030, 25, 830, 345, 197, 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 TestNoSources(t *testing.T) { install, _, _ := newInstall() err := install.Install([]string{"no_sources"}) require.Error(t, err) assert.Contains(t, err.Error(), "failed to compile example.com/no_sources: no buildable Go source files") }
explode_data.jsonl/36378
{ "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, 2753, 32200, 1155, 353, 8840, 836, 8, 341, 197, 12248, 11, 8358, 716, 1669, 501, 24690, 2822, 9859, 1669, 4582, 71207, 541, 10556, 917, 4913, 2152, 52896, 23625, 17957, 6141, 1155, 11, 1848, 340, 6948, 11545, 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
func TestIsErrAndNotRetriable(t *testing.T) { tests := []struct { description string statusCode proto.StatusCode expected bool }{ { description: "rollout status connection error", statusCode: proto.StatusCode_STATUSCHECK_KUBECTL_CONNECTION_ERR, }, { description: "rollout status kubectl comma...
explode_data.jsonl/81097
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 472 }
[ 2830, 3393, 3872, 7747, 3036, 2623, 12020, 461, 480, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 914, 198, 197, 23847, 2078, 220, 18433, 37828, 198, 197, 42400, 262, 1807, 198, 197, 59403, 197, 197, 515, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestModuleSampler(t *testing.T) { rand.Seed(time.Now().Unix()) for mod := uint64(1); mod <= 100; mod++ { var ( sampler = zipkin.NewModuloSampler(mod) want = uint64(rand.Intn(1000)) max = mod * want found = uint64(0) ) for i := uint64(0); i < max; i++ { if sampler(i) { found++ ...
explode_data.jsonl/74307
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 3332, 66048, 1155, 353, 8840, 836, 8, 341, 7000, 437, 5732, 291, 9730, 13244, 1005, 55832, 12367, 2023, 1463, 1669, 2622, 21, 19, 7, 16, 1215, 1463, 2651, 220, 16, 15, 15, 26, 1463, 1027, 341, 197, 2405, 2399, 298, 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...
5
func TestStorageSample(t *testing.T) { du, err := disk.Usage("/") if err != nil { t.Skipf("this linux distro can't get the usage statistics: %v", err.Error()) } if du.InodesTotal == 0 { t.Skipf("this linux distro is not supported for inodes: %#v", du) } // GIVEN a Storage Sampler ps := storage.NewSampler(co...
explode_data.jsonl/79672
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 508 }
[ 2830, 3393, 5793, 17571, 1155, 353, 8840, 836, 8, 341, 197, 1054, 11, 1848, 1669, 13364, 85900, 61710, 743, 1848, 961, 2092, 341, 197, 3244, 57776, 69, 445, 574, 36245, 1582, 299, 646, 944, 633, 279, 10431, 13142, 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...
3
func TestManagerHTTP(t *testing.T) { t.Run("case=regenerate csrf on principal change", func(t *testing.T) { _, reg := internal.NewFastRegistryWithMocks(t) mock := new(mockCSRFHandler) reg.WithCSRFHandler(mock) require.NoError(t, reg.SessionManager().IssueCookie(context.Background(), httptest.NewRecorder(), ne...
explode_data.jsonl/8552
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2480 }
[ 2830, 3393, 2043, 9230, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5638, 28, 1580, 13220, 35522, 389, 12435, 2297, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 6878, 1217, 1669, 5306, 7121, 32174, 15603, 2354, 72577, 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 TestAsyncAbortPoisons(t *testing.T) { defer leaktest.AfterTest(t)() // Add a testing request filter which pauses a get request for the // key until after the signal channel is closed. var storeKnobs storage.StoreTestingKnobs keyA, keyB := roachpb.Key("a"), roachpb.Key("b") commitCh := make(chan error, 1) s...
explode_data.jsonl/36470
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 789 }
[ 2830, 3393, 6525, 85891, 32904, 19379, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 197, 322, 2691, 264, 7497, 1681, 4051, 892, 85832, 264, 633, 1681, 369, 279, 198, 197, 322, 1376, 3080, 1283, 279, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestGetTinkerbellTemplateConfig(t *testing.T) { tests := []struct { testName string fileName string wantConfigs map[string]*TinkerbellTemplateConfig wantErr bool }{ { testName: "file doesn't exist", fileName: "testdata/fake_file.yaml", wantConfigs: nil, wantErr: true, ...
explode_data.jsonl/7373
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2519 }
[ 2830, 3393, 1949, 51, 41112, 17250, 7275, 2648, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 18185, 675, 262, 914, 198, 197, 17661, 675, 262, 914, 198, 197, 50780, 84905, 2415, 14032, 8465, 51, 41112, 17250, 7275, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFluky_Bool_WithOptions(t *testing.T) { mRng := new(RngMock) mRng.On("Float64").Return(0.75).Times(1) mRng.On("Float64").Return(0.25).Times(1) mRng.On("Float64").Return(0.75).Times(1) mRng.On("Float64").Return(0.74999999999999).Times(1) f := NewFluky(mRng) assert.Equal(t, true, f.Bool(WithLikelihood(0.9...
explode_data.jsonl/77194
{ "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, 3882, 3101, 88, 79948, 62, 74238, 1155, 353, 8840, 836, 8, 341, 2109, 49, 968, 1669, 501, 2785, 968, 11571, 340, 2109, 49, 968, 8071, 445, 5442, 21, 19, 1827, 5598, 7, 15, 13, 22, 20, 568, 18889, 7, 16, 340, 2109, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfigDefaultFileSettingsS3SSE(t *testing.T) { c1 := Config{} c1.SetDefaults() if *c1.FileSettings.AmazonS3SSE { t.Fatal("FileSettings.AmazonS3SSE should default to false") } }
explode_data.jsonl/50670
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 77 }
[ 2830, 3393, 2648, 3675, 1703, 6086, 50, 18, 50, 925, 1155, 353, 8840, 836, 8, 341, 1444, 16, 1669, 5532, 16094, 1444, 16, 4202, 16273, 2822, 743, 353, 66, 16, 8576, 6086, 875, 76, 5522, 50, 18, 50, 925, 341, 197, 3244, 26133, 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 ]
2
func TestValidNonce(t *testing.T) { wfe, _ := setupWFE(t) // signRequestEmbed with a `nil` nonce.NonceService will result in the // JWS not having a protected nonce header. missingNonceJWS, _, _ := signRequestEmbed(t, nil, "", "", nil) // signRequestEmbed with a badNonceProvider will result in the JWS // having...
explode_data.jsonl/15351
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 811 }
[ 2830, 3393, 4088, 90528, 1155, 353, 8840, 836, 8, 341, 6692, 1859, 11, 716, 1669, 6505, 54, 11419, 1155, 692, 197, 322, 1841, 1900, 25486, 448, 264, 1565, 8385, 63, 39676, 2067, 13184, 1860, 686, 1102, 304, 279, 198, 197, 322, 619, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetStaticScrapeWorkFailure(t *testing.T) { f := func(data string) { t.Helper() sws, err := getStaticScrapeWork([]byte(data), "non-existing-file") if err == nil { t.Fatalf("expecting non-nil error") } if sws != nil { t.Fatalf("expecting nil sws") } } // incorrect yaml f(`foo bar baz`) /...
explode_data.jsonl/13544
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1583 }
[ 2830, 3393, 1949, 11690, 3326, 19842, 6776, 17507, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 2915, 2592, 914, 8, 341, 197, 3244, 69282, 741, 197, 1903, 8915, 11, 1848, 1669, 633, 11690, 3326, 19842, 6776, 10556, 3782, 2592, 701, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test_client_modifyConfig(t *testing.T) { // setup context gin.SetMode(gin.TestMode) resp := httptest.NewRecorder() _, engine := gin.CreateTestContext(resp) // setup mock server engine.GET("/api/v3/repos/foo/bar/contents/:path", func(c *gin.Context) { c.Header("Content-Type", "application/json") c.Statu...
explode_data.jsonl/24140
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2903 }
[ 2830, 3393, 8179, 57725, 2648, 1155, 353, 8840, 836, 8, 341, 197, 322, 6505, 2266, 198, 3174, 258, 4202, 3636, 3268, 258, 8787, 3636, 692, 34653, 1669, 54320, 70334, 7121, 47023, 741, 197, 6878, 4712, 1669, 46183, 7251, 2271, 1972, 2026...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPodControllerLookup(t *testing.T) { manager := NewReplicaSetController(clientset.NewForConfigOrDie(&restclient.Config{Host: "", ContentConfig: restclient.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}), controller.NoResyncPeriodFunc, BurstReplicas, 0) manager.podStoreSynced = alwaysReady testC...
explode_data.jsonl/10046
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 846 }
[ 2830, 3393, 23527, 2051, 34247, 1155, 353, 8840, 836, 8, 341, 92272, 1669, 1532, 18327, 15317, 1649, 2051, 12805, 746, 7121, 2461, 2648, 2195, 18175, 2099, 3927, 2972, 10753, 90, 9296, 25, 7342, 8883, 2648, 25, 2732, 2972, 12614, 2648, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func Test_IntProvide(t *testing.T) { c := NewLidi(Settings{}) a := rand.Int() err := c.Provide(a) if err != nil { t.Error(err) } err = c.InvokeFunction(func(b int) { if a != b { t.Fatal("Not equal") } }) if err != nil { t.Error(err) } }
explode_data.jsonl/40200
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 127 }
[ 2830, 3393, 32054, 60424, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1532, 43, 12278, 57395, 37790, 11323, 1669, 10382, 7371, 741, 9859, 1669, 272, 7763, 19448, 2877, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAgentPoolProfile(t *testing.T) { mockCS := getMockBaseContainerService("1.10") properties := mockCS.Properties properties.OrchestratorProfile.OrchestratorType = Kubernetes properties.MasterProfile.Count = 1 mockCS.SetPropertiesDefaults(false, false) if properties.AgentPoolProfiles[0].ScaleSetPriority != ...
explode_data.jsonl/33877
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 367 }
[ 2830, 3393, 16810, 10551, 8526, 1155, 353, 8840, 836, 8, 341, 77333, 6412, 1669, 633, 11571, 3978, 4502, 1860, 445, 16, 13, 16, 15, 1138, 86928, 1669, 7860, 6412, 15945, 198, 86928, 90449, 331, 15111, 850, 8526, 90449, 331, 15111, 850, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInsert(t *testing.T) { table := []struct { vals []int expect string }{ {[]int{1}, "B:1(,)"}, {[]int{5, 1, 10}, "B:5(B:1(,),B:10(,))"}, {[]int{5, 1, 10, 7}, "B:5(B:1(,),B:10(R:7(,),))"}, {[]int{5, 1, 10, 7, 6}, "B:5(B:1(,),B:7(R:6(,),R:10(,)))"}, {[]int{1, 5, 6, 7, 10}, "B:5(B:1(,),B:7(R:6(,),...
explode_data.jsonl/9587
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 369 }
[ 2830, 3393, 13780, 1155, 353, 8840, 836, 8, 341, 26481, 1669, 3056, 1235, 341, 197, 19302, 82, 256, 3056, 396, 198, 197, 24952, 914, 198, 197, 59403, 197, 197, 90, 1294, 396, 90, 16, 2137, 330, 33, 25, 16, 7, 46021, 7115, 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...
5
func TestJob_Delete(t *testing.T) { type fields struct { session session.ServiceFormatter info Response } tests := []struct { name string fields fields wantErr bool }{ { name: "Passing", fields: fields{ info: Response{ ID: "1234", }, session: &mockSessionFormatter{ url...
explode_data.jsonl/19884
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1304 }
[ 2830, 3393, 12245, 57418, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 25054, 3797, 13860, 14183, 198, 197, 27043, 262, 5949, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 55276, 220, 5043, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetDBCodeVersion(t *testing.T) { tests := []struct { desc string storedMigration Migration expectVersion semver.Version expectErr string }{ { desc: "no code version", storedMigration: Migration{}, expectVersion: semver.Version{}, }, { desc: ...
explode_data.jsonl/43222
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 498 }
[ 2830, 3393, 1949, 3506, 2078, 5637, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 41653, 310, 914, 198, 197, 18388, 3018, 20168, 21248, 198, 197, 24952, 5637, 256, 5234, 423, 35842, 198, 197, 24952, 7747, 981, 914, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadAccount(t *testing.T) { tests := []struct { name string conn Connection exp []byte }{ { name: "should list table output correctly", conn: testNewConnection(t, table.NewWriter()), exp: []byte(testReadAccountTable), }, { name: "should list json output correctly", conn: testNewC...
explode_data.jsonl/64647
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 365 }
[ 2830, 3393, 4418, 7365, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 32917, 11032, 198, 197, 48558, 220, 3056, 3782, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 5445, 1140, 1965, 2550...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJobSpecErrorsController_Delete_InvalidUuid(t *testing.T) { t.Parallel() ethClient, _, assertMocksCalled := cltest.NewEthMocksWithStartupAssertions(t) defer assertMocksCalled() app, cleanup := cltest.NewApplication(t, ethClient, ) defer cleanup() require.NoError(t, app.Start()) client := app.NewHTTPC...
explode_data.jsonl/71931
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 178 }
[ 2830, 3393, 12245, 8327, 13877, 2051, 57418, 62, 7928, 38431, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 769, 2959, 11, 8358, 2060, 72577, 20960, 1669, 1185, 1944, 7121, 65390, 11571, 16056, 39076, 90206, 1155, 340, 16867,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNumberDataPoint_DoubleVal(t *testing.T) { ms := NewNumberDataPoint() assert.EqualValues(t, float64(0.0), ms.DoubleVal()) testValDoubleVal := float64(17.13) ms.SetDoubleVal(testValDoubleVal) assert.EqualValues(t, testValDoubleVal, ms.DoubleVal()) }
explode_data.jsonl/32725
{ "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, 2833, 1043, 2609, 84390, 2208, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 2833, 1043, 2609, 741, 6948, 12808, 6227, 1155, 11, 2224, 21, 19, 7, 15, 13, 15, 701, 9829, 36113, 2208, 2398, 18185, 2208, 7378, 2208, 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 TestPointerUnmarshal(t *testing.T) { result := pointerMarshalTestStruct{} err := Unmarshal(pointerTestToml, &result) expected := pointerTestData if err != nil { t.Fatal(err) } if !reflect.DeepEqual(result, expected) { t.Errorf("Bad pointer unmarshal: expected %v, got %v", expected, result) } }
explode_data.jsonl/46321
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 117 }
[ 2830, 3393, 9084, 1806, 27121, 1155, 353, 8840, 836, 8, 341, 9559, 1669, 7445, 55438, 2271, 9422, 16094, 9859, 1669, 1230, 27121, 81962, 2271, 24732, 75, 11, 609, 1382, 340, 42400, 1669, 7445, 83920, 198, 743, 1848, 961, 2092, 341, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestHandleCommandRespondsToAPanic(t *testing.T) { defer leaktest.Check(t)() ctx, cancel := context.WithCancel(context.Background()) defer cancel() var origReply = _reply defer func() { _reply = origReply }() didPanic := false sentMessage := "" _reply = func(ctx context.Context, tweet *twitter.Tweet, me...
explode_data.jsonl/10602
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 396 }
[ 2830, 3393, 6999, 4062, 65354, 82, 1249, 2537, 31270, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 10600, 1155, 8, 741, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 741, 2405, 2713, 20841, 284, 716, 210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEscapeTranslation(t *testing.T) { tests := []struct { in, out string }{ {`"\a"`, `"\a"`}, {`"\b"`, `"\b"`}, {`"\f"`, `"\f"`}, {`"\n"`, `"\n"`}, {`"\r"`, `"\r"`}, {`"\t"`, `"\t"`}, {`"\v"`, `"\v"`}, {`"\d\g\h"`, `"dgh"`}, {`'\d\g\h'`, "`\\d\\g\\h`"}, {`"\""`, `"\""`}, {`"\'"`, `"'"`}, ...
explode_data.jsonl/75152
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 460 }
[ 2830, 3393, 48124, 24412, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 17430, 11, 700, 914, 198, 197, 59403, 197, 197, 90, 63, 11934, 64, 1, 7808, 1565, 11934, 64, 39917, 1583, 197, 197, 90, 63, 11934, 65, 1, 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...
6
func TestStartCommandLineWithWrongArgumentLength(t *testing.T) { want := "Please pass some command" os.Args = []string{ "--t=123", } err := StartCommandLine(emptyOnlyOneCommand) if err.Error() != want { t.Errorf("Error handling error: want %s, got %s", want, err.Error()) } }
explode_data.jsonl/30297
{ "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, 3479, 71885, 2354, 29185, 9171, 4373, 1155, 353, 8840, 836, 8, 341, 50780, 1669, 330, 5501, 1494, 1045, 3210, 698, 25078, 51015, 284, 3056, 917, 515, 197, 197, 74757, 83, 28, 16, 17, 18, 756, 197, 532, 9859, 1669, 5145, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetEndpointAndPut(t *testing.T) { defer testutil.AfterTest(t) clus := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 2}) defer clus.Terminate(t) clus.Client(1).SetEndpoints(clus.Members[0].GRPCAddr()) _, err := clus.Client(1).Put(context.TODO(), "foo", "bar") if err != nil && !strings.Cont...
explode_data.jsonl/30358
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 152 }
[ 2830, 3393, 1649, 27380, 3036, 19103, 1155, 353, 8840, 836, 8, 341, 16867, 1273, 1314, 36892, 2271, 1155, 340, 197, 4163, 1669, 17590, 7121, 28678, 53, 18, 1155, 11, 609, 60168, 72883, 2648, 90, 1695, 25, 220, 17, 3518, 16867, 1185, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestInitHoF(t *testing.T) { var conf = NewDefaultGAConfig() conf.NPops = 4 var ga, err = conf.NewGA() if err != nil { t.Errorf("Expected nil, got %v", err) } if err = ga.init(NewVector); err != nil { t.Errorf("Expected nil, got %v", err) } for _, pop := range ga.Populations { for _, indi := range pop...
explode_data.jsonl/82078
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 194 }
[ 2830, 3393, 3803, 47978, 37, 1155, 353, 8840, 836, 8, 341, 2405, 2335, 284, 1532, 3675, 16128, 2648, 741, 67850, 2067, 47, 3721, 284, 220, 19, 198, 2405, 13510, 11, 1848, 284, 2335, 7121, 16128, 741, 743, 1848, 961, 2092, 341, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestLogger_Log(t *testing.T) { expectedLog := testLogStatement + "\n" // Note that Log always adds a new line. f := func() { logger := NewLogger(DEBUG) logger.Log(testLogStatement) } output := testutil.StdoutOutputForFunc(f) if output != expectedLog { t.Errorf("Stdout mismatch. Expected: %s Got: %s",...
explode_data.jsonl/46806
{ "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, 7395, 44083, 1155, 353, 8840, 836, 8, 341, 42400, 2201, 1669, 1273, 2201, 8636, 488, 2917, 77, 1, 442, 7036, 429, 2835, 2677, 11367, 264, 501, 1555, 382, 1166, 1669, 2915, 368, 341, 197, 17060, 1669, 1532, 7395, 52792, 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 TestAndroidAppLinkType(t *testing.T) { testJava(t, ` android_app { name: "foo", srcs: ["a.java"], libs: ["bar"], static_libs: ["baz"], platform_apis: true, } java_library { name: "bar", sdk_version: "current", srcs: ["b.java"], } android_library { name: "baz", sdk_version...
explode_data.jsonl/58476
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 717 }
[ 2830, 3393, 21831, 2164, 3939, 929, 1155, 353, 8840, 836, 8, 341, 18185, 15041, 1155, 11, 22074, 197, 197, 5954, 8191, 341, 298, 11609, 25, 330, 7975, 756, 298, 41144, 82, 25, 4383, 64, 10848, 8097, 298, 197, 35719, 25, 4383, 2257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGaiaCLICreateValidator(t *testing.T) { chainID, servAddr, port := initializeFixtures(t) flags := fmt.Sprintf("--home=%s --node=%v --chain-id=%v", gaiacliHome, servAddr, chainID) // start gaiad server proc := tests.GoExecuteTWithStdout(t, fmt.Sprintf("gaiad start --home=%s --rpc.laddr=%v", gaiadHome, servA...
explode_data.jsonl/20994
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1351 }
[ 2830, 3393, 80788, 685, 3140, 1317, 964, 14256, 1155, 353, 8840, 836, 8, 341, 197, 8819, 915, 11, 4853, 13986, 11, 2635, 1669, 9468, 25958, 18513, 1155, 340, 59516, 1669, 8879, 17305, 21549, 5117, 7846, 82, 1177, 3509, 7846, 85, 1177, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInt64DataPointSlice_CopyTo(t *testing.T) { dest := NewInt64DataPointSlice() // Test CopyTo to empty NewInt64DataPointSlice().CopyTo(dest) assert.EqualValues(t, NewInt64DataPointSlice(), dest) // Test CopyTo larger slice generateTestInt64DataPointSlice().CopyTo(dest) assert.EqualValues(t, generateTestIn...
explode_data.jsonl/19525
{ "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, 1072, 21, 19, 1043, 2609, 33236, 77637, 1249, 1155, 353, 8840, 836, 8, 341, 49616, 1669, 1532, 1072, 21, 19, 1043, 2609, 33236, 741, 197, 322, 3393, 14540, 1249, 311, 4287, 198, 197, 3564, 1072, 21, 19, 1043, 2609, 33236, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClusterSlave(t *testing.T) { if os.Getenv("TEST_REDIS_CLUSTER_SLAVE_URI") == "" { t.Skipf("TEST_REDIS_CLUSTER_SLAVE_URI not set - skipping") } addr := os.Getenv("TEST_REDIS_CLUSTER_SLAVE_URI") e, _ := NewRedisExporter(addr, Options{Namespace: "test", Registry: prometheus.NewRegistry()}) ts := httptest....
explode_data.jsonl/47005
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 573 }
[ 2830, 3393, 28678, 95960, 1155, 353, 8840, 836, 8, 341, 743, 2643, 64883, 445, 10033, 2192, 21202, 77871, 74418, 23116, 899, 621, 1591, 341, 197, 3244, 57776, 69, 445, 10033, 2192, 21202, 77871, 74418, 23116, 537, 738, 481, 42659, 1138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRuleNoOSCKey(t *testing.T) { common.Log.Debug("Entering function: %s", common.GetFunctionName()) sqls := [][]string{ // 正面的例子 { "CREATE TABLE tbl (a int, b int)", }, // 反面的例子 { "CREATE TABLE tbl (a int, primary key(`a`))", "CREATE TABLE tbl (a int, unique key(`a`))", }, } for _, sql :=...
explode_data.jsonl/76841
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 431 }
[ 2830, 3393, 11337, 2753, 78961, 1592, 1155, 353, 8840, 836, 8, 341, 83825, 5247, 20345, 445, 82867, 729, 25, 1018, 82, 497, 4185, 2234, 5152, 675, 2398, 30633, 82, 1669, 52931, 917, 515, 197, 197, 322, 71928, 96, 27091, 111564, 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...
7