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 TestPeerRequestSent(t *testing.T) { params := &BpPeerParams{timeout: 2 * time.Millisecond} peer := NewBpPeer( p2p.ID(tmrand.Str(12)), 0, 10, func(err error, _ p2p.ID) {}, params) peer.SetLogger(log.TestingLogger()) peer.RequestSent(1) assert.NotNil(t, peer.recvMonitor) assert.NotNil(t, peer.blockRes...
explode_data.jsonl/35423
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 226 }
[ 2830, 3393, 30888, 1900, 31358, 1155, 353, 8840, 836, 8, 341, 25856, 1669, 609, 33, 79, 30888, 4870, 90, 14150, 25, 220, 17, 353, 882, 71482, 630, 197, 16537, 1669, 1532, 33, 79, 30888, 1006, 197, 3223, 17, 79, 9910, 64190, 11335, 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 TestGenKeyCertK8sCA(t *testing.T) { testCases := map[string]struct { gracePeriodRatio float32 minGracePeriod time.Duration k8sCaCertFile string dnsNames []string secretNames []string serviceNamespaces []string expectFaill bool }{ "gen cert should succeed": { graceP...
explode_data.jsonl/18243
{ "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, 9967, 1592, 36934, 42, 23, 82, 5049, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 90059, 578, 23750, 22777, 220, 2224, 18, 17, 198, 197, 25320, 86543, 23750, 262, 882, 33795, 198, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func Test01(t *testing.T) { assert := assert.New(t) errors := make(chan error, 10) actor.Start(func(mailbox <-chan interface{}) error { panic(10) }, mailboxSize(10), period(time.Millisecond*10), numberOfRetries(3), onError(func(e error) { errors <- e })) var c int FOR01: for i := 1; i <= 10; i++ { s...
explode_data.jsonl/9204
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 192 }
[ 2830, 3393, 15, 16, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 73424, 1669, 1281, 35190, 1465, 11, 220, 16, 15, 340, 93410, 12101, 18552, 59484, 2011, 9119, 5658, 3749, 28875, 1465, 341, 197, 30764, 7, 16, 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 TestPopulateCluster_IsolateMastersFalse(t *testing.T) { c := buildMinimalCluster() // default: c.Spec.IsolateMasters = fi.Bool(false) cloud, err := BuildCloud(c) if err != nil { t.Fatalf("error from BuildCloud: %v", err) } err = PerformAssignments(c, cloud) if err != nil { t.Fatalf("error from Perform...
explode_data.jsonl/75037
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 252 }
[ 2830, 3393, 11598, 6334, 28678, 31879, 33066, 44, 14199, 4049, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1936, 88328, 28678, 741, 197, 322, 1638, 25, 272, 36473, 4506, 33066, 44, 14199, 284, 9136, 52497, 3576, 692, 197, 12361, 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...
5
func TestBootstrapOfNonEmptyStore(t *testing.T) { defer leaktest.AfterTest(t)() stopper := stop.NewStopper() ctx := context.TODO() defer stopper.Stop(ctx) eng := engine.NewInMem(roachpb.Attributes{}, 1<<20) stopper.AddCloser(eng) // Put some random garbage into the engine. if err := eng.Put(engine.MakeMVCCMeta...
explode_data.jsonl/75744
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 394 }
[ 2830, 3393, 45511, 2124, 8121, 3522, 6093, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 62644, 712, 1669, 2936, 7121, 10674, 712, 741, 20985, 1669, 2266, 90988, 741, 16867, 2936, 712, 30213, 7502, 340, 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 TestRPCRatelimit(t *testing.T) { if testing.Short() { t.SkipNow() } t.Parallel() g1 := newNamedTestingGateway(t, "1") defer func() { if err := g1.Close(); err != nil { t.Fatal(err) } }() g2 := newNamedTestingGateway(t, "2") defer func() { if err := g2.Close(); err != nil { t.Fatal(err) } }...
explode_data.jsonl/74455
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1023 }
[ 2830, 3393, 29528, 49, 83326, 2353, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 7039, 741, 197, 532, 3244, 41288, 7957, 741, 3174, 16, 1669, 501, 15810, 16451, 40709, 1155, 11, 330, 16, 1138, 16867, 291...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestBitmapRank2(t *testing.T) { r := NewBitmap() for i := uint64(1); i < 8194; i += 2 { r.Add(i) } rank := r.Rank(63) assert.EqualValues(t, 32, rank) }
explode_data.jsonl/20335
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 79 }
[ 2830, 3393, 16773, 22550, 17, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 16773, 741, 2023, 600, 1669, 2622, 21, 19, 7, 16, 1215, 600, 366, 220, 23, 16, 24, 19, 26, 600, 1421, 220, 17, 341, 197, 7000, 1904, 1956, 340, 197, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDeleteFabricsSubscription(t *testing.T) { // Intializing plugin token evcommon.Token.Tokens = map[string]string{ "ILO": "token", } config.SetUpMockConfig(t) defer func() { err := common.TruncateDB(common.InMemory) if err != nil { t.Fatalf("error: %v", err) } err = common.TruncateDB(common.OnD...
explode_data.jsonl/18100
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 532 }
[ 2830, 3393, 6435, 52167, 6198, 33402, 1155, 353, 8840, 836, 8, 341, 197, 322, 1333, 530, 4849, 9006, 3950, 198, 74837, 5464, 32277, 836, 9713, 284, 2415, 14032, 30953, 515, 197, 197, 7044, 1593, 788, 330, 5839, 756, 197, 532, 25873, 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...
3
func TestPoint_Tags(t *testing.T) { examples := []struct { Point string Tags models.Tags }{ {`cpu value=1`, models.Tags{}}, {"cpu,tag0=v0 value=1", models.NewTags(map[string]string{"tag0": "v0"})}, {"cpu,tag0=v0,tag1=v0 value=1", models.NewTags(map[string]string{"tag0": "v0", "tag1": "v0"})}, {`cpu,tag0=...
explode_data.jsonl/16891
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 614 }
[ 2830, 3393, 2609, 1139, 2032, 1155, 353, 8840, 836, 8, 341, 8122, 4023, 1669, 3056, 1235, 341, 197, 50298, 914, 198, 197, 10261, 2032, 220, 4119, 73522, 198, 197, 59403, 197, 197, 90, 63, 16475, 897, 28, 16, 7808, 4119, 73522, 6257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFailureBadProcessFieldTag(t *testing.T) { badParentSpanIDESSpan, err := loadESSpanFixture(1) require.NoError(t, err) badParentSpanIDESSpan.Process.Tag = map[string]interface{}{"foo": struct{}{}} failingSpanTransformAnyMsg(t, &badParentSpanIDESSpan) }
explode_data.jsonl/5156
{ "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, 17507, 17082, 7423, 1877, 5668, 1155, 353, 8840, 836, 8, 341, 2233, 329, 8387, 12485, 915, 9996, 848, 11, 1848, 1669, 2795, 9996, 848, 18930, 7, 16, 340, 17957, 35699, 1155, 11, 1848, 340, 2233, 329, 8387, 12485, 915, 9996...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccPermissionsTokens(t *testing.T) { permissionsTestHelper(t, func(permissionsAPI PermissionsAPI, user, group string, ef func(string) PermissionsEntity) { objectID := "/authorization/tokens" require.NoError(t, permissionsAPI.Update(objectID, AccessControlChangeList{ AccessControlList: []AccessControl...
explode_data.jsonl/50889
{ "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, 14603, 23851, 29300, 1155, 353, 8840, 836, 8, 341, 197, 29900, 2271, 5511, 1155, 11, 2915, 7, 29900, 7082, 53357, 7082, 11, 1196, 11, 1874, 914, 345, 197, 197, 823, 2915, 3609, 8, 53357, 3030, 8, 341, 197, 35798, 915, 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 TestSynchronizer(t *testing.T) { resourceOptions := resource.NewOptions() rig, err := newTestRig(resourceOptions) if err != nil { t.Errorf("unable to run synchronizer integration tests: %s", err) t.FailNow() } defer rig.kubernetes.Stop() // Allow no more than 15 seconds for these tests to run ctx, can...
explode_data.jsonl/9818
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2087 }
[ 2830, 3393, 50, 14113, 3135, 1155, 353, 8840, 836, 8, 341, 50346, 3798, 1669, 5101, 7121, 3798, 741, 7000, 343, 11, 1848, 1669, 501, 2271, 49, 343, 23599, 3798, 340, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 45928, 311, 1598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Txn(t *testing.T) { endpoint := os.Getenv("ETCD_ENDPOINT") if endpoint == "" { t.Error("not found env ETCD_ENDPOINT or ETCD_ENDPOINT is empty string") return } fmt.Printf("endpoint=[%s]\n", endpoint) Init(endpoint) defer Close() kvc := clientv3.NewKV(gClient) _, err := kvc.Put(context.TODO(), ...
explode_data.jsonl/27607
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 436 }
[ 2830, 3393, 1139, 42967, 1155, 353, 8840, 836, 8, 341, 6246, 2768, 1669, 2643, 64883, 445, 1348, 6484, 48756, 1138, 743, 14887, 621, 1591, 341, 197, 3244, 6141, 445, 1921, 1730, 6105, 17768, 6484, 48756, 476, 17768, 6484, 48756, 374, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_indices_put_mapping_6ce0585ab13a480796add86de6b2037c(t *testing.T) { es, _ := elasticsearch.NewDefaultClient() // tag:6ce0585ab13a480796add86de6b2037c[] { res, err := es.Index( "users", strings.NewReader(`{ "user_id": 12345 }`), es.Index.WithRefresh("wait_for"), es.Index.WithPretty(), ...
explode_data.jsonl/57507
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 397 }
[ 2830, 3393, 18333, 15557, 26930, 62, 21, 346, 15, 20, 23, 20, 370, 16, 18, 64, 19, 23, 15, 22, 24, 21, 718, 23, 21, 450, 21, 65, 17, 15, 18, 22, 66, 1155, 353, 8840, 836, 8, 341, 78966, 11, 716, 1669, 655, 27791, 7121, 3675,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAbsCollection_Map(t *testing.T) { intColl := NewIntCollection([]int{1, 2, 3, 4}) newIntColl := intColl.Map(func(item interface{}, key int) interface{} { v := item.(int) return v * 2 }) if newIntColl.Count() != 4 { t.Fatal("Map错误") } newIntColl2 := intColl.Map(func(item interface{}, key int) inter...
explode_data.jsonl/66439
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 373 }
[ 2830, 3393, 27778, 6482, 56992, 1155, 353, 8840, 836, 8, 341, 2084, 15265, 1669, 1532, 1072, 6482, 10556, 396, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 3518, 8638, 1072, 15265, 1669, 526, 15265, 10104, 18552, 5393, 3749, 22655, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestElementWire(t *testing.T) { type writeElementReflect int32 tests := []struct { in interface{} // Value to encode buf []byte // Wire encoding }{ {int32(1), []byte{0x01, 0x00, 0x00, 0x00}}, {uint32(256), []byte{0x00, 0x01, 0x00, 0x00}}, { int64(65536), []byte{0x00, 0x00, 0x01, 0x00, 0x0...
explode_data.jsonl/15294
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1690 }
[ 2830, 3393, 1691, 37845, 1155, 353, 8840, 836, 8, 341, 13158, 3270, 1691, 72789, 526, 18, 17, 271, 78216, 1669, 3056, 1235, 341, 197, 17430, 220, 3749, 6257, 442, 5162, 311, 16164, 198, 197, 26398, 3056, 3782, 414, 442, 19378, 11170, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSchemeIsHTTPS(t *testing.T) { GetURL := func(u string) *url.URL { x, err := url.ParseRequestURI(u) require.NoError(t, err) return x } assert.False(t, isSchemeHTTPS( GetURL("http://mytest.example.com/abc/?query=abc"))) assert.False(t, isSchemeHTTPS( GetURL("ws://mytest.example.com/abc/?query=abc...
explode_data.jsonl/20199
{ "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, 28906, 3872, 82354, 1155, 353, 8840, 836, 8, 341, 37654, 3144, 1669, 2915, 8154, 914, 8, 353, 1085, 20893, 341, 197, 10225, 11, 1848, 1669, 2515, 8937, 1900, 10301, 8154, 340, 197, 17957, 35699, 1155, 11, 1848, 692, 197, 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 TestListDeploymentConfigsError(t *testing.T) { mockRegistry := test.NewDeploymentConfigRegistry() mockRegistry.Err = fmt.Errorf("test error") storage := REST{ registry: mockRegistry, } deploymentConfigs, err := storage.List(kapi.NewDefaultContext(), nil, nil) if err != mockRegistry.Err { t.Errorf("Expe...
explode_data.jsonl/66981
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 177 }
[ 2830, 3393, 852, 75286, 84905, 1454, 1155, 353, 8840, 836, 8, 341, 77333, 15603, 1669, 1273, 7121, 75286, 2648, 15603, 741, 77333, 15603, 27862, 284, 8879, 13080, 445, 1944, 1465, 5130, 197, 16172, 1669, 25414, 515, 197, 197, 29172, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestResolveIdentifyImplicitTeamOffline(t *testing.T) { tt := newTeamTester(t) defer tt.cleanup() tt.addUser("abc") g := tt.users[0].tc.G tt.addUser("wong") wong := tt.users[1] wong.proveRooter() // Set the ConnectivityMonitor in our test context fcm := fakeConnectivityMonitor{} fcm.Set(libkb.Connectivi...
explode_data.jsonl/42662
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1033 }
[ 2830, 3393, 56808, 28301, 1437, 59558, 14597, 52563, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 501, 14597, 58699, 1155, 340, 16867, 17853, 87689, 2822, 3244, 83, 1364, 1474, 445, 13683, 1138, 3174, 1669, 17853, 20653, 58, 15, 936, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetExchangeByName(t *testing.T) { e := CreateTestBot(t) exch := e.GetExchangeByName(testExchange) if exch == nil { t.Errorf("TestGetExchangeByName: Failed to get exchange") } if !exch.IsEnabled() { t.Errorf("TestGetExchangeByName: Unexpected result") } exch.SetEnabled(false) bfx := e.GetExchange...
explode_data.jsonl/4165
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 1949, 31564, 16898, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 4230, 2271, 23502, 1155, 692, 8122, 331, 1669, 384, 2234, 31564, 16898, 8623, 31564, 340, 743, 505, 331, 621, 2092, 341, 197, 3244, 13080, 445, 2271, 1949, 31564,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRequestBuilder(t *testing.T) { is := is.New(t) now := time.Now() r := RequestBuilder{} r.Arguments("1", "2", "3") r.Arguments("4") r.Option("stringkey", "stringvalue") r.Option("bytekey", []byte("bytevalue")) r.Option("boolkey", true) r.Option("otherkey", now) r.Header("some-header", "header-value")...
explode_data.jsonl/48632
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 295 }
[ 2830, 3393, 1900, 3297, 1155, 353, 8840, 836, 8, 341, 19907, 1669, 374, 7121, 1155, 692, 80922, 1669, 882, 13244, 741, 7000, 1669, 6145, 3297, 16094, 7000, 80108, 445, 16, 497, 330, 17, 497, 330, 18, 1138, 7000, 80108, 445, 19, 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 Test_isUnixSystemRuntimePath(t *testing.T) { tests := []struct { path string expected bool }{ { path: "proc/place", expected: false, }, { path: "/proc/place", expected: true, }, { path: "/proc", expected: true, }, { path: "/pro/c", expected: false, ...
explode_data.jsonl/50129
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 349 }
[ 2830, 3393, 6892, 55832, 2320, 15123, 1820, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 26781, 257, 914, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 515, 298, 26781, 25, 257, 330, 15782, 60775, 756, 298, 424...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLess(t *testing.T) { assert := assert.New(t) r1 := Parse("00000000000000000000000000000001") r2 := Parse("00000000000000000000000000000002") assert.False(r1.Less(r1)) assert.True(r1.Less(r2)) assert.False(r2.Less(r1)) assert.False(r2.Less(r2)) r0 := Hash{} assert.False(r0.Less(r0)) assert.True(r0....
explode_data.jsonl/15931
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 155 }
[ 2830, 3393, 27451, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 7000, 16, 1669, 14775, 445, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 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 TestRedirectURLFormat(t *testing.T) { req, _ := NewRequest("GET", "http://example.com/qux/", nil) var tests = []struct { in string want string }{ // normal http {"http://foobar.com/baz", "http://foobar.com/baz"}, // normal https {"https://foobar.com/baz", "https://foobar.com/baz"}, // custom sc...
explode_data.jsonl/22429
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 430 }
[ 2830, 3393, 17725, 3144, 4061, 1155, 353, 8840, 836, 8, 341, 24395, 11, 716, 1669, 1532, 1900, 445, 3806, 497, 330, 1254, 1110, 8687, 905, 78845, 87, 28105, 2092, 692, 2405, 7032, 284, 3056, 1235, 341, 197, 17430, 256, 914, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGreater(t *testing.T) { assert := assert.New(t) r1 := Parse("00000000000000000000000000000001") r2 := Parse("00000000000000000000000000000002") assert.False(r1.Greater(r1)) assert.False(r1.Greater(r2)) assert.True(r2.Greater(r1)) assert.False(r2.Greater(r2)) r0 := Hash{} assert.False(r0.Greater(r0)...
explode_data.jsonl/15932
{ "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, 41366, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 7000, 16, 1669, 14775, 445, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 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 TestNodeSendUnknownBatchRequest(t *testing.T) { defer leaktest.AfterTest(t)() ba := roachpb.BatchRequest{ Requests: make([]roachpb.RequestUnion, 1), } n := &Node{} br, err := n.batchInternal(context.Background(), &ba) if err != nil { t.Fatal(err) } if br.Error == nil { t.Fatal("no batch error return...
explode_data.jsonl/49432
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 184 }
[ 2830, 3393, 1955, 11505, 13790, 21074, 1900, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 2233, 64, 1669, 926, 610, 16650, 45791, 1900, 515, 197, 197, 35295, 25, 1281, 10556, 64500, 16650, 9659, 32658, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestService_CreateLink(t *testing.T) { type fields struct { ctx context.Context } type args struct { param *CreateLinkRequest } tests := []struct { name string fields fields args args want string wantErr bool }{ { name: "创建短链接", fields: fields{ ctx: context.Background(), ...
explode_data.jsonl/81475
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 480 }
[ 2830, 3393, 1860, 34325, 3939, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 20985, 2266, 9328, 198, 197, 532, 13158, 2827, 2036, 341, 197, 36037, 353, 4021, 3939, 1900, 198, 197, 532, 78216, 1669, 3056, 1235, 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, 1...
4
func TestCachedChartsRefreshErrorDownloadingPackage(t *testing.T) { ChartDataExistsOrig := charthelper.ChartDataExists defer func() { charthelper.ChartDataExists = ChartDataExistsOrig }() charthelper.ChartDataExists = func(chart *swaggermodels.ChartPackage) (bool, error) { return false, nil } DownloadAndExtractCha...
explode_data.jsonl/37978
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 70293, 64878, 14567, 1454, 76017, 13100, 1155, 353, 8840, 836, 8, 341, 197, 95367, 15575, 62726, 1669, 1161, 339, 2947, 42667, 1043, 15575, 198, 16867, 2915, 368, 314, 1161, 339, 2947, 42667, 1043, 15575, 284, 21266, 1043, 155...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHappyGTG(t *testing.T) { draftContentRW := mockHealthyExternalService() cAPI := mockHealthyExternalService() liveBlogPost := mockHealthyExternalService() h, err := NewHealthService("", "", "", draftContentRW, cAPI, &mockConfig, []ExternalService{liveBlogPost}) assert.NoError(t, err) req := httptest.New...
explode_data.jsonl/2303
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 190 }
[ 2830, 3393, 32847, 25388, 38, 1155, 353, 8840, 836, 8, 341, 2698, 2944, 2762, 56368, 1669, 7860, 96113, 25913, 1860, 741, 1444, 7082, 1669, 7860, 96113, 25913, 1860, 741, 8810, 533, 26700, 4133, 1669, 7860, 96113, 25913, 1860, 2822, 9598,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSalesOrderTypeGetAll(t *testing.T) { req := client.NewSalesOrderTypeGetAll() resp, err := req.Do() if err != nil { t.Error(err) } b, _ := json.MarshalIndent(resp, "", " ") log.Println(string(b)) }
explode_data.jsonl/46385
{ "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, 35418, 4431, 929, 1949, 2403, 1155, 353, 8840, 836, 8, 341, 24395, 1669, 2943, 7121, 35418, 4431, 929, 1949, 2403, 741, 34653, 11, 1848, 1669, 4232, 33596, 741, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestStashApply(t *testing.T) { runner := oscommands.NewFakeRunner(t). ExpectGitArgs([]string{"stash", "apply", "stash@{1}"}, "", nil) instance := buildStashCommands(commonDeps{runner: runner}) assert.NoError(t, instance.Apply(1)) runner.CheckForMissingCalls() }
explode_data.jsonl/41416
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 102 }
[ 2830, 3393, 623, 988, 28497, 1155, 353, 8840, 836, 8, 341, 197, 41736, 1669, 2643, 24270, 7121, 52317, 19486, 1155, 4292, 197, 35911, 46562, 4117, 10556, 917, 4913, 49771, 497, 330, 10280, 497, 330, 49771, 31, 90, 16, 9863, 2137, 7342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetMountRefs(t *testing.T) { fm := &FakeMounter{ MountPoints: []MountPoint{ {Device: "/dev/sdb", Path: "/var/lib/kubelet/plugins/kubernetes.io/gce-pd/mounts/gce-pd"}, {Device: "/dev/sdb", Path: "/var/lib/kubelet/pods/some-pod/volumes/kubernetes.io~gce-pd/gce-pd-in-pod"}, {Device: "/dev/sdc", Path: ...
explode_data.jsonl/76945
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 697 }
[ 2830, 3393, 1949, 16284, 82807, 1155, 353, 8840, 836, 8, 341, 1166, 76, 1669, 609, 52317, 16284, 261, 515, 197, 9209, 629, 11411, 25, 3056, 16284, 2609, 515, 298, 197, 90, 6985, 25, 3521, 3583, 2687, 1999, 497, 7933, 25, 3521, 947, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCellularBuilder_Build(t *testing.T) { plugin.RegisterPluginForTests(t, &lteplugin.LteOrchestratorPlugin{}) plugin.RegisterPluginForTests(t, &pluginimpl.BaseOrchestratorPlugin{}) config_test_init.StartTestService(t) builder := &cellular_config.CellularBuilder{} actual, err := builder.Build("network", "gw1"...
explode_data.jsonl/53632
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1467 }
[ 2830, 3393, 3599, 1276, 3297, 96686, 1155, 353, 8840, 836, 8, 341, 197, 9138, 19983, 11546, 2461, 18200, 1155, 11, 609, 48791, 9138, 1214, 665, 2195, 331, 15111, 850, 11546, 37790, 197, 9138, 19983, 11546, 2461, 18200, 1155, 11, 609, 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 TestEtcdReset(t *testing.T) { dir, err := ioutil.TempDir("", "agola") if err != nil { t.Fatalf("unexpected err: %v", err) } defer os.RemoveAll(dir) etcdDir, err := ioutil.TempDir(dir, "etcd") if err != nil { t.Fatalf("unexpected err: %v", err) } tetcd := setupEtcd(t, etcdDir) defer shutdownEtcd(tetcd...
explode_data.jsonl/81134
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1182 }
[ 2830, 3393, 31860, 4385, 14828, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 351, 7924, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 53859, 1848, 25, 1018, 85, 497, 1848, 340, 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 Test_getJvmExector_fail(t *testing.T) { address1 := &address.Address{} envHandleUintptr := uintptr(unsafe.Pointer(address1)) jvmsCached, _ = lru.New(1000) _, ok := getJvmExector(envHandleUintptr) assert.Equal(t, false, ok) address2 := &address.Address{} jvmsCached.Add(envHandleUintptr, address2) _, ok = ...
explode_data.jsonl/38981
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 3062, 70693, 840, 1256, 22121, 1155, 353, 8840, 836, 8, 341, 63202, 16, 1669, 609, 4995, 26979, 16094, 57538, 6999, 21570, 3505, 1669, 38190, 7, 38157, 41275, 15434, 16, 1171, 12428, 85, 1011, 70293, 11, 716, 284, 326, 2672,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetBundleConfig(t *testing.T) { var testBundles []Bundle var testBundleConfig BundleConfig testBundles = append(testBundles, Bundle{Bundle: "KAFKA"}) testBundleConfig = getBundleConfig(testBundles) expectedOutput := BundleConfig{ IsKafkaCluster: true, HasRestProxy: false, HasSchemaRegistry:...
explode_data.jsonl/3819
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 478 }
[ 2830, 3393, 1949, 8409, 2648, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 33, 49204, 3056, 8409, 198, 2405, 1273, 8409, 2648, 13182, 2648, 271, 18185, 33, 49204, 284, 8737, 8623, 33, 49204, 11, 13182, 90, 8409, 25, 330, 42, 8276, 26444,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCADBinit(t *testing.T) { orgwd, err := os.Getwd() if err != nil { t.Fatal("failed to get cwd") } confDir, err := cdTmpTestDir("TestCADBinit") defer func() { err = os.Chdir(orgwd) if err != nil { t.Fatalf("failed to cd to %v: %s", orgwd, err) } }() wd, err := os.Getwd() defer cleanupTmpfiles(...
explode_data.jsonl/82705
{ "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, 48570, 33, 2327, 1155, 353, 8840, 836, 8, 341, 87625, 6377, 11, 1848, 1669, 2643, 2234, 6377, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 445, 16091, 311, 633, 46938, 1138, 197, 532, 67850, 6184, 11, 1848, 1669, 1530...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSample1(t *testing.T) { L, H := 3, 5 S := "aabcbcbca" a, b := 2, 4 runSample(t, L, H, S, a, b) }
explode_data.jsonl/74392
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 60 }
[ 2830, 3393, 17571, 16, 1155, 353, 8840, 836, 8, 341, 15070, 11, 472, 1669, 220, 18, 11, 220, 20, 198, 7568, 1669, 330, 88607, 7221, 7221, 924, 698, 11323, 11, 293, 1669, 220, 17, 11, 220, 19, 198, 56742, 17571, 1155, 11, 444, 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
func TestAdminTokenAuth(t *testing.T) { var ( baseTransport = &http.Transport{} gun data.GUN = "test" ) auth, err := tokenAuth("https://localhost:9999", baseTransport, gun, admin) require.NoError(t, err) require.Nil(t, auth) }
explode_data.jsonl/77486
{ "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, 7210, 3323, 5087, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 24195, 27560, 688, 284, 609, 1254, 87669, 16094, 197, 3174, 359, 1843, 821, 1224, 1861, 284, 330, 1944, 698, 197, 340, 78011, 11, 1848, 1669, 3950, 5087, 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 TestSupervisedPool_ExecTTL_OK(t *testing.T) { var cfgExecTTL = &Config{ NumWorkers: uint64(1), AllocateTimeout: time.Second, DestroyTimeout: time.Second, Supervisor: &SupervisorConfig{ WatchTick: 1 * time.Second, TTL: 100 * time.Second, IdleTTL: 100 * time.Second, ...
explode_data.jsonl/78517
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 449 }
[ 2830, 3393, 10048, 77990, 10551, 62, 10216, 51, 13470, 8375, 1155, 353, 8840, 836, 8, 341, 2405, 13286, 10216, 51, 13470, 284, 609, 2648, 515, 197, 197, 4651, 74486, 25, 414, 2622, 21, 19, 7, 16, 1326, 197, 197, 75380, 7636, 25, 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 TestErrorListFlattensAllDiagnostics(t *testing.T) { const ( detail1 = "error 1" detail2 = "error 2" ) var ( range1 = hcl.Range{ Filename: "file1.tm", Start: hcl.Pos{Line: 1, Column: 5, Byte: 3}, End: hcl.Pos{Line: 1, Column: 10, Byte: 13}, } range2 = hcl.Range{ Filename: "file2.tm...
explode_data.jsonl/82011
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 455 }
[ 2830, 3393, 1454, 852, 3882, 1587, 724, 2403, 35, 18938, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 2698, 1628, 16, 284, 330, 841, 220, 16, 698, 197, 2698, 1628, 17, 284, 330, 841, 220, 17, 698, 197, 340, 2405, 2399, 197, 7508...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseJSONArray(t *testing.T) { assert := assert.New(t) input := []byte(`["1234",22]`) // naive is float,string var p1 []interface{} err := json.Unmarshal(input, &p1) if assert.Nil(err) { v, ok := p1[0].(string) if assert.True(ok, "%#v", p1[0]) { assert.EqualValues("1234", v) } h, ok := p1[1]...
explode_data.jsonl/2609
{ "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, 14463, 47812, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 22427, 1669, 3056, 3782, 5809, 1183, 16, 17, 18, 19, 497, 17, 17, 60, 63, 692, 197, 322, 49665, 374, 2224, 37058, 198, 2405, 281, 16, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetParametersFromSsmParameterStoreWithUnresolvedIgnoreNoPaging(t *testing.T) { parametersList := []string{} for i := 0; i < 2; i++ { key := "{{ssm:name_" + strconv.Itoa(i) + "}}" parametersList = append(parametersList, key) } serviceObject := newServiceMockedObjectWithExtraRecords(map[string]SsmParame...
explode_data.jsonl/56725
{ "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, 1949, 9706, 3830, 50, 3563, 4971, 6093, 2354, 1806, 39747, 12497, 2753, 47, 4118, 1155, 353, 8840, 836, 8, 341, 67543, 852, 1669, 3056, 917, 16094, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 17, 26, 600, 1027, 341, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAgeMoreThan(t *testing.T) { var users []User filter.MoreThan("21", "age", "AND"). ToSql(). Find(&users) assert.Equal(t, 1, len(users)) filter.Clear() }
explode_data.jsonl/80110
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 73 }
[ 2830, 3393, 16749, 7661, 26067, 1155, 353, 8840, 836, 8, 341, 2405, 3847, 3056, 1474, 198, 50108, 92768, 26067, 445, 17, 16, 497, 330, 424, 497, 330, 3976, 38609, 197, 197, 1249, 8269, 25829, 197, 197, 9885, 2099, 4218, 692, 6948, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrivateActivityYesVisibleForAdmin(t *testing.T) { defer prepareTestEnv(t)() testPrivateActivityDoSomethingForActionEntries(t) testPrivateActivityHelperEnablePrivateActivity(t) session := loginUser(t, privateActivityTestAdmin) visible := testPrivateActivityHelperHasVisibleActivitiesFromSession(t, session)...
explode_data.jsonl/51652
{ "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, 16787, 4052, 9454, 5715, 2461, 7210, 1155, 353, 8840, 836, 8, 341, 16867, 10549, 2271, 14359, 1155, 8, 741, 18185, 16787, 4052, 5404, 23087, 2461, 2512, 24533, 1155, 340, 18185, 16787, 4052, 5511, 11084, 16787, 4052, 1155, 692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConnectUnexpectedPeer(t *testing.T) { // Scenarios: In both scenarios, comm1 connects to comm2 or comm3. // and expects to see a PKI-ID which is equal to comm4's PKI-ID. // The connection attempt would succeed or fail based on whether comm2 or comm3 // are in the same org as comm4 identityByPort := func(...
explode_data.jsonl/42165
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1037 }
[ 2830, 3393, 14611, 29430, 30888, 1155, 353, 8840, 836, 8, 341, 197, 322, 2463, 60494, 25, 758, 2176, 25283, 11, 1063, 16, 33061, 311, 1063, 17, 476, 1063, 18, 624, 197, 322, 323, 24297, 311, 1490, 264, 24826, 40, 53365, 892, 374, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultiSitesBuild(t *testing.T) { t.Parallel() for _, config := range []struct { content string suffix string }{ {multiSiteTOMLConfigTemplate, "toml"}, {multiSiteYAMLConfigTemplate, "yml"}, {multiSiteJSONConfigTemplate, "json"}, } { doTestMultiSitesBuild(t, config.content, config.suffix) } }
explode_data.jsonl/16237
{ "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, 20358, 93690, 11066, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2023, 8358, 2193, 1669, 2088, 3056, 1235, 341, 197, 27751, 914, 198, 197, 1903, 13554, 220, 914, 198, 197, 59403, 197, 197, 90, 26268, 17597, 51, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetCopy(t *testing.T) { orig := MustParseTerm("{1,2,3}") cpy := orig.Copy() vis := NewGenericVisitor(func(x interface{}) bool { if Compare(IntNumberTerm(2), x) == 0 { x.(*Term).Value = String("modified") } return false }) vis.Walk(orig) expOrig := MustParseTerm(`{1, "modified", 3}`) expCpy := M...
explode_data.jsonl/2929
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 231 }
[ 2830, 3393, 1649, 12106, 1155, 353, 8840, 836, 8, 341, 197, 4670, 1669, 15465, 14463, 17249, 13976, 16, 11, 17, 11, 18, 14451, 1444, 3288, 1669, 2713, 31770, 741, 197, 2682, 1669, 1532, 19964, 16796, 18552, 2075, 3749, 28875, 1807, 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 TestMotorDriverIsOn(t *testing.T) { d := initTestMotorDriver() d.CurrentMode = "digital" d.CurrentState = 1 gobottest.Assert(t, d.IsOn(), true) d.CurrentMode = "analog" d.CurrentSpeed = 100 gobottest.Assert(t, d.IsOn(), true) }
explode_data.jsonl/23129
{ "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, 33577, 11349, 3872, 1925, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 2930, 2271, 33577, 11349, 741, 2698, 11517, 3636, 284, 330, 57269, 698, 2698, 11517, 1397, 284, 220, 16, 198, 3174, 674, 1716, 477, 11711, 1155, 11, 294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCodeVarintSlice(t *testing.T) { var buf = make([]byte, 64) var v []uint64 = []uint64{1} var n uint64 n = EncodeVarintSlice(buf, v) var d = make([]uint64, 2) n = DecodeVarintSlice(buf[:n], &d) if v[0] != d[0] { t.Errorf("error %d != %d", v[0], d[0]) } if n != SizeofVarintSlice(v) { t.Errorf("error ...
explode_data.jsonl/58560
{ "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, 2078, 3962, 396, 33236, 1155, 353, 8840, 836, 8, 341, 2405, 6607, 284, 1281, 10556, 3782, 11, 220, 21, 19, 340, 2405, 348, 3056, 2496, 21, 19, 284, 3056, 2496, 21, 19, 90, 16, 532, 2405, 308, 2622, 21, 19, 198, 9038, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSet_SIsmember(t *testing.T) { var testSetSIsMembersKey = []byte("SIsmemberKey") testAddData(t, testSetSIsMembersKey, []byte("ExistsValue")) type args struct { member []byte } tests := []struct { name string key []byte args args want int64 }{ { name: "testExistMember", key: testSetSIsM...
explode_data.jsonl/56405
{ "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, 1649, 94421, 3563, 1377, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 1649, 50, 3872, 24371, 1592, 284, 3056, 3782, 445, 13817, 3563, 1377, 1592, 1138, 18185, 2212, 1043, 1155, 11, 1273, 1649, 50, 3872, 24371, 1592, 11, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCommentStats_String(t *testing.T) { v := CommentStats{ TotalCommitComments: Int(0), TotalGistComments: Int(0), TotalIssueComments: Int(0), TotalPullRequestComments: Int(0), } want := `github.CommentStats{TotalCommitComments:0, TotalGistComments:0, TotalIssueComments:0, TotalPullReq...
explode_data.jsonl/33225
{ "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, 10677, 16635, 31777, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 12255, 16635, 515, 197, 197, 7595, 33441, 17373, 25, 414, 1333, 7, 15, 1326, 197, 197, 7595, 38, 380, 17373, 25, 286, 1333, 7, 15, 1326, 197, 197, 7595, 4200...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckTx(t *testing.T) { // This ante handler reads the key and checks that the value matches the current counter. // This ensures changes to the kvstore persist across successive CheckTx. counterKey := []byte("counter-key") txHandlerOpt := func(bapp *baseapp.BaseApp) { legacyRouter := middleware.NewLega...
explode_data.jsonl/30035
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 728 }
[ 2830, 3393, 3973, 31584, 1155, 353, 8840, 836, 8, 341, 197, 322, 1096, 39424, 7013, 15804, 279, 1376, 323, 12341, 429, 279, 897, 9071, 279, 1482, 5546, 624, 197, 322, 1096, 25351, 4344, 311, 279, 16178, 4314, 22334, 3941, 48924, 4248, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBackup_Run(t *testing.T) { defer os.Remove(testDB) cancelChan := make(chan struct{}, 1) backup := prepStorage() values, _ := backup.DB.List("../test/testdata/hash1") assert.Equal(t, len(values), 0) worker, _ := backup.Run(1, cancelChan) <-worker values, _ = backup.DB.List("../test/testdata/hash1") ass...
explode_data.jsonl/69618
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 308 }
[ 2830, 3393, 56245, 84158, 1155, 353, 8840, 836, 8, 341, 16867, 2643, 13270, 8623, 3506, 340, 84441, 46019, 1669, 1281, 35190, 2036, 22655, 220, 16, 340, 197, 31371, 1669, 21327, 5793, 741, 45939, 11, 716, 1669, 15725, 22537, 5814, 17409, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKillContainerInPodWithError(t *testing.T) { manager, fakeDocker := newTestDockerManager() pod := makePod("qux", nil) containers := []*FakeContainer{ { ID: "1111", Name: "/k8s_foo_qux_new_1234_42", }, { ID: "2222", Name: "/k8s_bar_qux_new_1234_42", }, } fakeDocker.SetFakeRunningCon...
explode_data.jsonl/31159
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 53734, 4502, 641, 23527, 66102, 1155, 353, 8840, 836, 8, 341, 92272, 11, 12418, 35, 13659, 1669, 501, 2271, 35, 13659, 2043, 2822, 3223, 347, 1669, 1281, 23527, 445, 446, 87, 497, 2092, 340, 197, 39399, 1669, 29838, 52317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadConfigWithEmbeddedUsersWithPaths(t *testing.T) { // get a config file with embedded users configPath := filepath.Join(getConfigPath(), configEmbeddedUsersTestFile) configBackend1, err := config.FromFile(configPath)() if err != nil { t.Fatal(err) } endpointConfig, err := ConfigFromBackend(configBac...
explode_data.jsonl/34089
{ "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, 5879, 2648, 2354, 83466, 7137, 2354, 26901, 1155, 353, 8840, 836, 8, 341, 197, 322, 633, 264, 2193, 1034, 448, 22864, 3847, 198, 25873, 1820, 1669, 26054, 22363, 5433, 2648, 1820, 1507, 2193, 83466, 7137, 2271, 1703, 340, 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...
5
func TestHandlerWrapper_Label(t *testing.T) { Convey("A handler wrapper allows labels to be added to a report", t, func() { a := NewAgent(Config{}) hw := &HandlerWrapper{agent: a} Convey("Doesnot panic if there is no report", func() { So(hw.report, ShouldBeNil) So(func() { hw.Label("foo") }, Shoul...
explode_data.jsonl/35581
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 364 }
[ 2830, 3393, 3050, 11542, 53557, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 32, 7013, 13261, 6147, 9201, 311, 387, 3694, 311, 264, 1895, 497, 259, 11, 2915, 368, 341, 197, 11323, 1669, 1532, 16810, 33687, 37790, 197, 9598, 86, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDemoProvisioned(t *testing.T) { host := newDefaultNamedHost(demo.ProvisionedHost, t) host.Spec.Image = &metalkubev1alpha1.Image{ URL: "a-url", Checksum: "a-checksum", } host.Spec.Online = true r := newDemoReconciler(host) tryReconcile(t, r, host, func(host *metalkubev1alpha1.BareMetalHost, re...
explode_data.jsonl/9498
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 251 }
[ 2830, 3393, 37413, 1336, 13013, 291, 1155, 353, 8840, 836, 8, 341, 63104, 1669, 501, 3675, 15810, 9296, 1500, 6726, 7763, 13013, 291, 9296, 11, 259, 340, 63104, 36473, 7528, 284, 609, 4059, 1692, 3760, 85, 16, 7141, 16, 7528, 515, 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 TestPEXReactorAddRemovePeer(t *testing.T) { r, book := createReactor(&PEXReactorConfig{}) defer teardownReactor(book) size := book.Size() peer := p2p.CreateRandomPeer(false) r.AddPeer(peer) assert.Equal(t, size+1, book.Size()) r.RemovePeer(peer, "peer not available") assert.Equal(t, size+1, book.Size())...
explode_data.jsonl/6124
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 1740, 55, 693, 5621, 2212, 13021, 30888, 1155, 353, 8840, 836, 8, 341, 7000, 11, 2311, 1669, 1855, 693, 5621, 2099, 1740, 55, 693, 5621, 2648, 37790, 16867, 49304, 693, 5621, 33130, 692, 13832, 1669, 2311, 2465, 741, 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 TestTrie_InsertDifferentPrefixes(t *testing.T) { trie := NewTrie() data := []testData{ {"Pepaneeeeeeeeeeeeee", "Pepan Zdepan", success}, {"Honzooooooooooooooo", "Honza Novak", success}, {"Jenikuuuuuuuuuuuuuu", "Jenik Poustevnicek", success}, } for _, v := range data { t.Logf("INSERT prefix=%v, item=%...
explode_data.jsonl/2355
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 51, 7231, 76417, 69123, 14335, 288, 1155, 353, 8840, 836, 8, 341, 197, 8927, 1669, 1532, 51, 7231, 2822, 8924, 1669, 3056, 1944, 1043, 515, 197, 197, 4913, 47, 747, 276, 68616, 68616, 68616, 2127, 497, 330, 47, 747, 276, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVoronoi2Points(t *testing.T) { sites := []Vertex{ Vertex{4, 5}, Vertex{6, 5}, } verifyDiagram(ComputeDiagram(sites, NewBBox(0, 10, 0, 10), true), 7, 2, 4, t) verifyDiagram(ComputeDiagram(sites, NewBBox(0, 10, 0, 10), false), 1, 2, 1, t) }
explode_data.jsonl/26271
{ "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, 53, 84850, 6728, 17, 11411, 1155, 353, 8840, 836, 8, 341, 1903, 3611, 1669, 3056, 8320, 515, 197, 197, 8320, 90, 19, 11, 220, 20, 1583, 197, 197, 8320, 90, 21, 11, 220, 20, 1583, 197, 630, 93587, 92895, 7, 46254, 92895...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBestSplit(t *testing.T) { feature, thresh := findBestSplit(collegeData) if feature != 1 { t.Error(feature) } if thresh != 38000 { t.Error(thresh) } left, right := splitData(collegeData, feature, thresh) feature, thresh = findBestSplit(left) if feature != -1 { t.Error(feature) } if thresh != -1...
explode_data.jsonl/10542
{ "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, 14470, 20193, 1155, 353, 8840, 836, 8, 341, 1166, 15208, 11, 51744, 1669, 1477, 14470, 20193, 19611, 4757, 1043, 340, 743, 4565, 961, 220, 16, 341, 197, 3244, 6141, 27062, 340, 197, 532, 743, 51744, 961, 220, 18, 23, 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...
7
func TestResumeFromInitializedDB(t *testing.T) { itest, reachedLedger := initializeDBIntegrationTest(t) tt := assert.New(t) // Stop the integration test, and restart it with the same database oldDBURL := itest.GetHorizonConfig().DatabaseURL itestConfig := protocol15Config itestConfig.PostgresURL = oldDBURL ite...
explode_data.jsonl/3153
{ "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, 28563, 3830, 22495, 3506, 1155, 353, 8840, 836, 8, 341, 23374, 477, 11, 8643, 60850, 1389, 1669, 9468, 3506, 52464, 2271, 1155, 340, 3244, 83, 1669, 2060, 7121, 1155, 692, 197, 322, 14215, 279, 17590, 1273, 11, 323, 17024, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTxProofs(t *testing.T) { assert, require := assert.New(t), require.New(t) cl := client.NewLocal(node) client.WaitForHeight(cl, 1, nil) tx := eyes.NewSetTx([]byte("key-a"), []byte("value-a")) btx := types.Tx(wire.BinaryBytes(tx)) br, err := cl.BroadcastTxCommit(btx) require.NoError(err, "%+v", err) r...
explode_data.jsonl/76167
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 484 }
[ 2830, 3393, 31584, 31076, 82, 1155, 353, 8840, 836, 8, 341, 6948, 11, 1373, 1669, 2060, 7121, 1155, 701, 1373, 7121, 1155, 692, 39407, 1669, 2943, 7121, 7319, 6958, 340, 25291, 99153, 3640, 9849, 11, 220, 16, 11, 2092, 692, 46237, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestString_Type(t *testing.T) { tests := []struct { name string e String want Type }{ {name: "", e: String{""}, want: ValTypes.String}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := tt.e.Type(); !got.Equal(tt.want) { t.Errorf("String.Type() = %v, want %v", got, ...
explode_data.jsonl/34773
{ "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, 703, 13729, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 7727, 262, 923, 198, 197, 50780, 3990, 198, 197, 59403, 197, 197, 47006, 25, 7342, 384, 25, 923, 90, 3014, 2137, 1366, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestVolumeNode(t *testing.T) { g := goblin.Goblin(t) g.Describe("Volumes", func() { g.Describe("given a yaml file", func() { g.It("should unmarshal", func() { in := []byte("foo: { driver: blockbridge }") out := volumeList{} err := yaml.Unmarshal(in, &out) if err != nil { g.Fail(err) ...
explode_data.jsonl/49480
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 526 }
[ 2830, 3393, 18902, 1955, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 47061, 1224, 47061, 1155, 692, 3174, 23548, 3114, 445, 96325, 497, 2915, 368, 341, 197, 3174, 23548, 3114, 445, 41968, 264, 32246, 1034, 497, 2915, 368, 1476, 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 TestCallMethodJump(t *testing.T) { // In reflect.Value.Call, trigger a garbage collection after reflect.call // returns but before the args frame has been discarded. // This is a little clumsy but makes the failure repeatable. *CallGC = true p := &Outer{Inner: new(Inner)} p.Inner.X = p ValueOf(p).Method(0)...
explode_data.jsonl/29623
{ "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, 7220, 3523, 33979, 1155, 353, 8840, 836, 8, 341, 197, 322, 758, 8708, 6167, 27017, 11, 8183, 264, 25878, 4426, 1283, 8708, 8524, 198, 197, 322, 4675, 714, 1573, 279, 2827, 4034, 702, 1012, 43210, 624, 197, 322, 1096, 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...
1
func TestFilterCIDRs(t *testing.T) { var cidrList []string var cidrs []string var expected []string cidrs = filterCIDRs(true, []string{}) if len(cidrs) > 0 { t.Errorf("An empty list produces a non-empty return %v", cidrs) } cidrList = []string{"1000::/64", "10.0.0.0/16", "11.0.0.0/16", "2000::/64"} expected ...
explode_data.jsonl/44379
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 397 }
[ 2830, 3393, 5632, 54146, 42327, 1155, 353, 8840, 836, 8, 341, 2405, 32141, 81, 852, 3056, 917, 198, 2405, 32141, 5428, 3056, 917, 198, 2405, 3601, 3056, 917, 198, 1444, 307, 5428, 284, 4051, 54146, 42327, 3715, 11, 3056, 917, 37790, 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...
5
func TestNewSortsDatabases(t *testing.T) { dir := t.TempDir() vers := []version.Version{ version.NewDefaultVersion(2, 1, 2), version.NewDefaultVersion(2, 0, 2), version.NewDefaultVersion(1, 3, 2), version.NewDefaultVersion(1, 0, 2), version.NewDefaultVersion(1, 0, 1), } for _, version := range vers { ...
explode_data.jsonl/37001
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 547 }
[ 2830, 3393, 3564, 10231, 82, 35, 23822, 1155, 353, 8840, 836, 8, 341, 48532, 1669, 259, 65009, 6184, 2822, 197, 3004, 1669, 3056, 4366, 35842, 515, 197, 74954, 7121, 3675, 5637, 7, 17, 11, 220, 16, 11, 220, 17, 1326, 197, 74954, 712...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUpdateTeamDisplayName(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() Client := th.BasicClient team := &model.Team{DisplayName: "Name", Name: "z-z-" + model.NewId() + "a", Email: "success+" + model.NewId() + "@simulator.amazonses.com", Type: model.TEAM_OPEN} team = Client.Must(Client.Creat...
explode_data.jsonl/48510
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 467 }
[ 2830, 3393, 4289, 14597, 26456, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 71724, 1669, 270, 48868, 2959, 271, 197, 9196, 1669, 609, 2528, 65842, 90, 26456, 25, 330, 675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAgeEqual(t *testing.T) { var users []User filter.Equal("22", "age", "AND"). ToSql(). Find(&users) assert.Equal(t, 1, len(users)) filter.Clear() }
explode_data.jsonl/80108
{ "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, 16749, 2993, 1155, 353, 8840, 836, 8, 341, 2405, 3847, 3056, 1474, 198, 50108, 12808, 445, 17, 17, 497, 330, 424, 497, 330, 3976, 38609, 197, 197, 1249, 8269, 25829, 197, 197, 9885, 2099, 4218, 692, 6948, 12808, 1155, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestValidatorMarshalUnmarshalJSON(t *testing.T) { validator := newValidator(t, valAddr1, pk1) js, err := legacy.Cdc.MarshalJSON(validator) require.NoError(t, err) require.NotEmpty(t, js) require.Contains(t, string(js), "\"consensus_pubkey\":{\"type\":\"tendermint/PubKeyEd25519\"") got := &types.Validator{} ...
explode_data.jsonl/2335
{ "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, 14256, 55438, 1806, 27121, 5370, 1155, 353, 8840, 836, 8, 341, 197, 16112, 1669, 501, 14256, 1155, 11, 1044, 13986, 16, 11, 22458, 16, 340, 95636, 11, 1848, 1669, 19588, 727, 7628, 37271, 5370, 7, 16112, 340, 17957, 35699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSortOddAscEvenDescList(t *testing.T) { head := SortOddAscEvenDescList(Entity.Node1) var got []int for head !=nil{ got = append(got, head.Val) head = head.Next } want := []int{1, 2, 3, 4, 5, 6} if !reflect.DeepEqual(want, got){ t.Errorf("excepted:%v, got:%v", want, got) }else{ fmt.Println("test p...
explode_data.jsonl/12441
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 151 }
[ 2830, 3393, 10231, 67389, 40103, 13159, 11065, 852, 1155, 353, 8840, 836, 8, 341, 46081, 1669, 15967, 67389, 40103, 13159, 11065, 852, 33761, 21714, 16, 340, 2405, 2684, 3056, 396, 198, 2023, 1968, 961, 8385, 515, 197, 3174, 354, 284, 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...
3
func TestAccDataflowJobRegionCreate(t *testing.T) { t.Parallel() resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheckDataflowJobRegionDestroy, Steps: []resource.TestStep{ { Config: testAccDataflowJobRegion, Check...
explode_data.jsonl/71742
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 187 }
[ 2830, 3393, 14603, 1043, 4965, 12245, 14091, 4021, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50346, 8787, 1155, 11, 5101, 31363, 515, 197, 197, 4703, 3973, 25, 257, 2915, 368, 314, 1273, 14603, 4703, 3973, 1155, 8, 1153, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInt64ArrayValue(t *testing.T) { result, err := Int64Array(nil).Value() if err != nil { t.Fatalf("Expected no error for nil, got %v", err) } if result != nil { t.Errorf("Expected nil, got %q", result) } result, err = Int64Array([]int64{}).Value() if err != nil { t.Fatalf("Expected no error for e...
explode_data.jsonl/5331
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 284 }
[ 2830, 3393, 1072, 21, 19, 1857, 1130, 1155, 353, 8840, 836, 8, 341, 9559, 11, 1848, 1669, 1333, 21, 19, 1857, 27907, 568, 1130, 2822, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 18896, 902, 1465, 369, 2092, 11, 2684, 1018, 85,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestInputBuilderFactoryOverrides(t *testing.T) { t.Run("should append overrides for the same components multiple times", func(t *testing.T) { // given var ( dummyOptComponentsSvc = dummyOptionalComponentServiceMock(fixKymaComponentList()) overridesA1 = []*gqlschema.ConfigEntryInput{ {Key: "key-1", ...
explode_data.jsonl/69385
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1522 }
[ 2830, 3393, 2505, 89139, 80010, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5445, 8737, 35455, 369, 279, 1852, 6813, 5248, 3039, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 322, 2661, 198, 197, 2405, 2399, 298, 2698, 8574, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_SelectEndWithoutShift(t *testing.T) { e, window := setupSelection(t, false) defer teardownImageTest(window) c := window.Canvas() // end after releasing shift typeKeys(e, keyShiftLeftUp, fyne.KeyEnd) test.AssertRendersToMarkup(t, "entry/selection_end.xml", c) assert.Equal(t, "", e.SelectedText()) ...
explode_data.jsonl/12355
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 120 }
[ 2830, 3393, 5874, 58073, 3727, 26040, 24841, 1155, 353, 8840, 836, 8, 341, 7727, 11, 3241, 1669, 6505, 11177, 1155, 11, 895, 340, 16867, 49304, 1906, 2271, 15906, 340, 1444, 1669, 3241, 54121, 2822, 197, 322, 835, 1283, 27865, 6407, 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 TestConstCache(t *testing.T) { c := testConfig(t) f := c.Fun("entry", Bloc("entry", Valu("mem", OpInitMem, types.TypeMem, 0, nil), Exit("mem"))) v1 := f.f.ConstBool(c.config.Types.Bool, false) v2 := f.f.ConstBool(c.config.Types.Bool, true) f.f.freeValue(v1) f.f.freeValue(v2) v3 := f.f.ConstBool(c.co...
explode_data.jsonl/66554
{ "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, 19167, 8233, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1273, 2648, 1155, 340, 1166, 1669, 272, 991, 359, 445, 4085, 756, 197, 12791, 1074, 445, 4085, 756, 298, 197, 2208, 84, 445, 10536, 497, 10672, 3803, 18816, 11, 4494, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunApplyAutoscalePolicies(t *testing.T) { petBeAutoCell, err := ioutil.ReadFile(filepath.Join("testdata", "cells", "pet-be-auto.json")) if err != nil { t.Errorf("failed to read mock cell yaml file") } cellMap := make(map[string][]byte) cellMap["pet-be-auto"] = petBeAutoCell mockCli := test.NewMockCli(t...
explode_data.jsonl/5994
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 360 }
[ 2830, 3393, 6727, 28497, 19602, 436, 2246, 47, 42038, 1155, 353, 8840, 836, 8, 341, 3223, 295, 3430, 13253, 3599, 11, 1848, 1669, 43144, 78976, 34793, 22363, 445, 92425, 497, 330, 36691, 497, 330, 6862, 15150, 19938, 4323, 5455, 743, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestErrorCodeStringer(t *testing.T) { tests := []struct { in ErrorCode want string }{ {ErrDuplicateBlock, "ErrDuplicateBlock"}, {ErrBlockTooBig, "ErrBlockTooBig"}, {ErrBlockVersionTooOld, "ErrBlockVersionTooOld"}, {ErrInvalidTime, "ErrInvalidTime"}, {ErrTimeTooOld, "ErrTimeTooOld"}, {ErrTimeToo...
explode_data.jsonl/31866
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 941 }
[ 2830, 3393, 30748, 703, 261, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 17430, 256, 60084, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 90, 7747, 53979, 4713, 11, 330, 7747, 53979, 4713, 7115, 197, 197, 90, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestListRule(t *testing.T) { args := &ListRuleArgs{ Marker: "your-marker", MaxKeys: 100, RuleName: "your-choose-rule-name", RuleId: "your-choose-rule-id", } res, err := BBC_CLIENT.ListRule(args) ExpectEqual(t.Errorf, err, nil) fmt.Println(res) }
explode_data.jsonl/4084
{ "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, 852, 11337, 1155, 353, 8840, 836, 8, 341, 31215, 1669, 609, 852, 11337, 4117, 515, 197, 197, 20613, 25, 256, 330, 21732, 69828, 756, 197, 197, 5974, 8850, 25, 220, 220, 16, 15, 15, 345, 197, 11143, 1111, 675, 25, 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 TestSubscribe(t *testing.T) { if testing.Short() { t.Skip("Skipping E2E tests in short mode") } h := newHarness() defer h.shutdown() // create sender account sender, err := orbs.CreateAccount() require.NoError(t, err) // create client endpoint := getEndpoint() client := orbs.NewClient(endpoint, VIRT...
explode_data.jsonl/19745
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 515 }
[ 2830, 3393, 28573, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 85945, 468, 17, 36, 7032, 304, 2805, 3856, 1138, 197, 630, 9598, 1669, 501, 74248, 741, 16867, 305, 53050, 2822, 197, 322, 1855, 4646,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthorization_JWT(t *testing.T) { framework.NewTest(t). Run(func(ctx framework.TestContext) { ns := namespace.NewOrFail(t, ctx, namespace.Config{ Prefix: "v1beta1-jwt", Inject: true, }) args := map[string]string{ "Namespace": ns.Name(), } policies := tmpl.EvaluateAllOrFail(t, arg...
explode_data.jsonl/41492
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1512 }
[ 2830, 3393, 18124, 10598, 18454, 1155, 353, 8840, 836, 8, 341, 1166, 5794, 7121, 2271, 1155, 4292, 197, 85952, 18552, 7502, 12626, 8787, 1972, 8, 341, 298, 84041, 1669, 4473, 7121, 46059, 1155, 11, 5635, 11, 4473, 10753, 515, 571, 10025...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLabelService_UpdateLabel(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/35725
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1171 }
[ 2830, 3393, 2476, 1860, 47393, 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 TestGetFeeByTypeOfflineTradeFee(t *testing.T) { t.Parallel() var feeBuilder = setFeeBuilder() _, err := b.GetFeeByType(context.Background(), feeBuilder) if err != nil { t.Fatal(err) } if !areTestAPIKeysSet() || mockTests { if feeBuilder.FeeType != exchange.OfflineTradeFee { t.Errorf("Expected %v, rec...
explode_data.jsonl/76656
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 215 }
[ 2830, 3393, 1949, 41941, 1359, 929, 52563, 39173, 41941, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2405, 11060, 3297, 284, 738, 41941, 3297, 741, 197, 6878, 1848, 1669, 293, 2234, 41941, 1359, 929, 5378, 19047, 1507, 11060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPartialResponse(t *testing.T) { type kv struct { Key string Value int } kvs := []kv{ {"one", 1}, {"two", 2}, {"three", 3}, } srv := serve(func(conn conn) { req, err := conn.ReadRequest() require.NoError(t, err) for i := range kvs { data, err := graphson.Marshal([]kv{kvs[i]}) requi...
explode_data.jsonl/9359
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 440 }
[ 2830, 3393, 37314, 2582, 1155, 353, 8840, 836, 8, 341, 13158, 16178, 2036, 341, 197, 55242, 256, 914, 198, 197, 47399, 526, 198, 197, 532, 16463, 11562, 1669, 3056, 43408, 515, 197, 197, 4913, 603, 497, 220, 16, 1583, 197, 197, 4913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWithWriteBufferSize(t *testing.T) { type T = transport type args struct { bs int64 } 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) } default...
explode_data.jsonl/57554
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 738 }
[ 2830, 3393, 2354, 7985, 52661, 1155, 353, 8840, 836, 8, 341, 13158, 350, 284, 7557, 198, 13158, 2827, 2036, 341, 197, 93801, 526, 21, 19, 198, 197, 532, 13158, 1366, 2036, 341, 197, 22671, 353, 51, 198, 197, 9859, 1465, 198, 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...
3
func TestWithEmptySamplingConfig(t *testing.T) { uiconfig := v1alpha1.NewFreeForm(map[string]interface{}{}) jaeger := v1alpha1.NewJaeger("TestWithEmptySamplingConfig") jaeger.Spec.UI.Options = uiconfig config := NewConfig(jaeger) cm := config.Get() assert.NotNil(t, cm) assert.Equal(t, defaultSamplingStrategy, c...
explode_data.jsonl/52377
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 2354, 3522, 98622, 2648, 1155, 353, 8840, 836, 8, 341, 10676, 1924, 904, 1669, 348, 16, 7141, 16, 7121, 10940, 1838, 9147, 14032, 31344, 6257, 37790, 197, 5580, 1878, 1669, 348, 16, 7141, 16, 7121, 52445, 1878, 445, 2271, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateCallsPush(t *testing.T) { mkObj := func(name string, val interface{}) testUndeltaObject { return testUndeltaObject{name: name, val: val} } var got []interface{} var callcount int = 0 push := func(m []interface{}) { callcount++ got = m } u := NewUndeltaStore(push, testUndeltaKey...
explode_data.jsonl/69024
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 257 }
[ 2830, 3393, 4289, 55292, 16644, 1155, 353, 8840, 836, 8, 972, 2109, 74, 5261, 1669, 2915, 3153, 914, 11, 1044, 3749, 28875, 1273, 19957, 5964, 1190, 972, 197, 853, 1273, 19957, 5964, 1190, 47006, 25, 829, 11, 1044, 25, 1044, 1771, 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 TestPrivatePublish(t *testing.T) { t.Run("classic", testPublishPerAlgo(refs.RefAlgoFeedSSB1)) t.Run("gabby", testPublishPerAlgo(refs.RefAlgoFeedGabby)) }
explode_data.jsonl/30386
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 67 }
[ 2830, 3393, 16787, 50145, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 79709, 497, 1273, 50145, 3889, 2101, 3346, 13321, 82, 18369, 2101, 3346, 28916, 1220, 33, 16, 1171, 3244, 16708, 445, 70, 78636, 497, 1273, 50145, 3889, 2101, 334...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDiagnosticClearingOnClose(t *testing.T) { runner.Run(t, badPackage, func(t *testing.T, env *Env) { env.CreateBuffer("c.go", `package consts const a = 3`) env.Await( env.DiagnosticAtRegexp("a.go", "a = 1"), env.DiagnosticAtRegexp("b.go", "a = 2"), env.DiagnosticAtRegexp("c.go", "a = 3")) env.Cl...
explode_data.jsonl/38904
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 79388, 14008, 287, 1925, 7925, 1155, 353, 8840, 836, 8, 341, 197, 41736, 16708, 1155, 11, 3873, 13100, 11, 2915, 1155, 353, 8840, 836, 11, 6105, 353, 14359, 8, 341, 197, 57538, 7251, 4095, 445, 66, 18002, 497, 1565, 1722, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetServerResourcesWithV1Server(t *testing.T) { server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { var obj interface{} switch req.URL.Path { case "/api": obj = &metav1.APIVersions{ Versions: []string{ "v1", }, } default: w.WriteHeader(ht...
explode_data.jsonl/19750
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 393 }
[ 2830, 3393, 1949, 5475, 11277, 2354, 53, 16, 5475, 1155, 353, 8840, 836, 8, 341, 41057, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 4232, 353, 1254, 9659, 8, 341, 197, 2405, 2839, 3749, 16094, 197, 8961, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLiveUpdateCustomBuildExec(t *testing.T) { f := newBDFixture(t, k8s.EnvGKE, container.RuntimeDocker) defer f.TearDown() lu := assembleLiveUpdate(SanchoSyncSteps(f), SanchoRunSteps, false, nil, f) tCase := testCase{ manifest: manifestbuilder.New(f, "sancho"). WithK8sYAML(SanchoYAML). WithImageTarget...
explode_data.jsonl/35171
{ "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, 20324, 4289, 10268, 11066, 10216, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 33, 5262, 12735, 1155, 11, 595, 23, 82, 81214, 38, 3390, 11, 5476, 16706, 35, 13659, 340, 16867, 282, 836, 682, 4454, 2822, 8810, 84, 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 TestMultiIntersect(t *testing.T) { var cases = []struct { p [][]uint64 res []uint64 }{ { p: [][]uint64{ {1, 2, 3, 4, 5, 6, 1000, 1001}, {2, 4, 5, 6, 7, 8, 999, 1001}, {1, 2, 5, 6, 7, 8, 1001, 1200}, }, res: []uint64{2, 5, 6, 1001}, }, // One of the reproducible cases for: // ht...
explode_data.jsonl/13124
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 408 }
[ 2830, 3393, 20358, 3306, 9687, 1155, 353, 8840, 836, 8, 341, 2405, 5048, 284, 3056, 1235, 341, 197, 3223, 256, 52931, 2496, 21, 19, 198, 197, 10202, 3056, 2496, 21, 19, 198, 197, 59403, 197, 197, 515, 298, 3223, 25, 52931, 2496, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ipNetsAreEqual(t *testing.T) { t.Parallel() testCases := map[string]struct { a *net.IPNet b *net.IPNet equal bool }{ "both nil": { equal: true, }, "first nil": { b: &net.IPNet{}, }, "second nil": { a: &net.IPNet{}, }, "both not nil": { a: &net.IPNet{}, b: ...
explode_data.jsonl/25735
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 718 }
[ 2830, 3393, 10385, 45, 1415, 11526, 2993, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 11323, 257, 353, 4711, 46917, 6954, 198, 197, 2233, 257, 353, 4711, 46917, 6954, 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 TestJsonSamples(t *testing.T) { bidder, buildErr := Builder(openrtb_ext.BidderSilverMob, config.Adapter{ Endpoint: "http://{{.Host}}.example.com/api/dsp/bid/{{.ZoneID}}"}) if buildErr != nil { t.Fatalf("Builder returned unexpected error %v", buildErr) } adapterstest.RunJSONBidderTest(t, "silvermobtest", ...
explode_data.jsonl/50005
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 5014, 39571, 1155, 353, 8840, 836, 8, 341, 2233, 307, 1107, 11, 1936, 7747, 1669, 20626, 30981, 3342, 65, 9927, 1785, 307, 1107, 52343, 60061, 11, 2193, 34190, 515, 197, 197, 27380, 25, 330, 1254, 1110, 2979, 13, 9296, 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 TestIncorrectSign(t *testing.T) { testMember := createMember(t) seed, err := requester.GetSeed(launchnet.TestAPIURL) require.NoError(t, err) body, err := requester.GetResponseBodyContract( launchnet.TestRPCUrl, requester.ContractRequest{ Request: requester.Request{ Version: "2.0", ID: 1, ...
explode_data.jsonl/26356
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 360 }
[ 2830, 3393, 40468, 7264, 1155, 353, 8840, 836, 8, 341, 18185, 9366, 1669, 1855, 9366, 1155, 340, 197, 22602, 11, 1848, 1669, 83584, 2234, 41471, 2333, 64, 359, 2125, 295, 8787, 7082, 3144, 340, 17957, 35699, 1155, 11, 1848, 340, 35402, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSchemeIsWSS(t *testing.T) { GetURL := func(u string) *url.URL { x, err := url.ParseRequestURI(u) require.NoError(t, err) return x } assert.False(t, isSchemeWSS( GetURL("ws://mytest.example.com/abc/?query=abc"))) assert.False(t, isSchemeWSS( GetURL("http://mytest.example.com/abc/?query=abc"))) ...
explode_data.jsonl/20200
{ "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, 28906, 3872, 54, 1220, 1155, 353, 8840, 836, 8, 341, 37654, 3144, 1669, 2915, 8154, 914, 8, 353, 1085, 20893, 341, 197, 10225, 11, 1848, 1669, 2515, 8937, 1900, 10301, 8154, 340, 197, 17957, 35699, 1155, 11, 1848, 692, 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 TestCreateStackPolicyInput(t *testing.T) { stackName := "StackName" templateBody := "TestTemplate" returnedValue := createStackPolicyInput(&templateBody, &stackName) assert.Equal(t, *returnedValue.StackName, stackName) assert.Equal(t, *returnedValue.StackPolicyBody, templateBody) }
explode_data.jsonl/19687
{ "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, 4021, 4336, 13825, 2505, 1155, 353, 8840, 836, 8, 341, 48227, 675, 1669, 330, 4336, 675, 698, 22832, 5444, 1669, 330, 2271, 7275, 698, 853, 291, 1130, 1669, 1855, 4336, 13825, 2505, 2099, 4214, 5444, 11, 609, 7693, 675, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIN(t *testing.T) { fmt.Println("===== IN =====") var i1 = IN("a", []int{1, 2, 3, 4}) fmt.Println(i1.ToSQL()) var i2 = IN("b", []int{}) fmt.Println(i2.ToSQL()) var a []int = nil var i3 = IN("b", a) fmt.Println(i3.ToSQL()) var sb = NewSelectBuilder() sb.Selects("u.id", "u.name") sb.From("user", "AS...
explode_data.jsonl/1263
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 202 }
[ 2830, 3393, 687, 1155, 353, 8840, 836, 8, 341, 11009, 12419, 445, 46725, 1964, 30742, 1138, 2405, 600, 16, 284, 1964, 445, 64, 497, 3056, 396, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 3518, 11009, 12419, 1956, 16, 3274, 6688...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1