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 TestCertificates(t *testing.T) { testCases := []struct { name string bp string certificateOverride string expectedLineage string expectedCertificate string }{ { name: "default", bp: ` android_app { name: "foo", srcs: ["a.java"], sdk_version...
explode_data.jsonl/58493
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1619 }
[ 2830, 3393, 97140, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 394, 914, 198, 197, 2233, 79, 1698, 914, 198, 197, 1444, 20962, 2177, 914, 198, 197, 42400, 2460, 424, 257, 914, 198, 197, 42400, 33202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrivForPub(t *testing.T) { db, mock, _ := sqlmock.New(sqlmock.QueryMatcherOption(sqlmock.QueryMatcherEqual)) defer db.Close() pub, priv, _ := box.GenerateKey(rand.Reader) query := fmt.Sprintf(` SELECT server_private_key FROM encryption_keys WHERE server_public_key = ? AND created > (NOW() - INTERVAL...
explode_data.jsonl/64735
{ "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, 32124, 2461, 29162, 1155, 353, 8840, 836, 8, 341, 20939, 11, 7860, 11, 716, 1669, 5704, 16712, 7121, 13148, 16712, 15685, 37554, 5341, 13148, 16712, 15685, 37554, 2993, 1171, 16867, 2927, 10421, 2822, 62529, 11, 6095, 11, 716,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRequestID(t *testing.T) { c := context.Background() id := fastjson.RawMessage("1") c = WithRequestID(c, &id) var pick *fastjson.RawMessage require.NotPanics(t, func() { pick = RequestID(c) }) require.Equal(t, &id, pick) }
explode_data.jsonl/74571
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 1900, 915, 1155, 353, 8840, 836, 8, 1476, 1444, 1669, 2266, 19047, 741, 15710, 1669, 4937, 2236, 50575, 2052, 445, 16, 1138, 1444, 284, 3085, 1900, 915, 1337, 11, 609, 307, 340, 2405, 3735, 353, 9349, 2236, 50575, 2052, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFilterChainRouter(t *testing.T) { app := NewHttpSever() const filterNonMatch = "filter-chain-non-match" app.InsertFilterChain("/app/nonMatch/before/*", func(next FilterFunc) FilterFunc { return func(ctx *context.Context) { ctx.Output.Header("filter", filterNonMatch) next(ctx) } }) const filterA...
explode_data.jsonl/14968
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 604 }
[ 2830, 3393, 5632, 18837, 9523, 1155, 353, 8840, 836, 8, 341, 28236, 1669, 1532, 2905, 1514, 423, 741, 4777, 4051, 8121, 8331, 284, 330, 5315, 65186, 98700, 45704, 698, 28236, 23142, 5632, 18837, 4283, 676, 91130, 8331, 3470, 4642, 1057, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQuery_NoEntityFound(t *testing.T) { for _, cmd := range []string{"read", "range"} { c := StartCapture() exit = func(r int) {} os.Args = []string{ "dosa", "query", cmd, "--scope", "foo", "--namePrefix", "foo", "--path", "../../testentity", "TestEntity1", "StrKey:eq:foo", } mai...
explode_data.jsonl/70150
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 2859, 36989, 3030, 6650, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 5439, 1669, 2088, 3056, 917, 4913, 878, 497, 330, 9669, 9207, 341, 197, 1444, 1669, 5145, 27429, 741, 197, 14519, 284, 2915, 2601, 526, 8, 5613, 197, 25078...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteOnCursor(t *testing.T) { cID := "cid" env := testEnvsMap[levelDBtestEnvName] env.init(t, "TestDeleteOnCursor", nil) defer env.cleanup() txMgr := env.getTxMgr() txMgrHelper := newTxMgrTestHelper(t, txMgr) // Simulate and commit tx1 to populate sample data (key_001 through key_010) s, _ := txMgr....
explode_data.jsonl/63621
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 661 }
[ 2830, 3393, 6435, 1925, 14543, 1155, 353, 8840, 836, 8, 341, 1444, 915, 1669, 330, 20558, 698, 57538, 1669, 1273, 1702, 11562, 2227, 64586, 3506, 1944, 14359, 675, 921, 57538, 8271, 1155, 11, 330, 2271, 6435, 1925, 14543, 497, 2092, 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...
3
func TestCollectionService_Follow(t *testing.T) { client, mux := setup(t) mux.HandleFunc("/api/v1/collections/follow_collection", func(w http.ResponseWriter, r *http.Request) { require.Equal(t, http.MethodPost, r.Method) form := url.Values{} form.Set("collection_id", "37f1e52d-7ec9-466b-b4cc-59e86e071ed7") ...
explode_data.jsonl/12637
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 240 }
[ 2830, 3393, 6482, 1860, 1400, 1544, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 1669, 6505, 1155, 692, 2109, 2200, 63623, 4283, 2068, 5457, 16, 2899, 3107, 6663, 1544, 25019, 497, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestId(t *testing.T) { want := Nuc(922350000) got := Id("U235") if got != want { t.Errorf("want %v, got %v", want, got) } }
explode_data.jsonl/31991
{ "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, 764, 1155, 353, 8840, 836, 8, 341, 50780, 1669, 451, 1754, 7, 24, 17, 17, 18, 20, 15, 15, 15, 15, 340, 3174, 354, 1669, 5223, 445, 52, 17, 18, 20, 1138, 743, 2684, 961, 1366, 341, 197, 3244, 13080, 445, 52657, 1018, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRequestWithContext(t *testing.T) { ctx := context.WithValue(context.Background(), interface{}("myKey"), interface{}("myValue")) req, err := NewClient(nil, "").NewRequest("GET", "test", nil, []OptionFunc{WithContext(ctx)}) if err != nil { t.Fatalf("Failed to create request: %v", err) } if req.Context() ...
explode_data.jsonl/47242
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 133 }
[ 2830, 3393, 1900, 91101, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 26124, 1130, 5378, 19047, 1507, 3749, 6257, 445, 2408, 1592, 3975, 3749, 6257, 445, 2408, 1130, 5455, 24395, 11, 1848, 1669, 1532, 2959, 27907, 11, 35229, 3564, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMountingSimilarPattern(t *testing.T) { r := NewRouter() r.Get("/hi", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("bye")) }) r2 := NewRouter() r2.Get("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("foobar")) }) r3 := NewRouter() r3.Get("/", func(w http.Respons...
explode_data.jsonl/42883
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 247 }
[ 2830, 3393, 16284, 287, 34402, 15760, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 9523, 741, 7000, 2234, 4283, 6023, 497, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6692, 4073, 10556, 3782, 445, 28374, 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...
1
func TestNamespaceResetting(t *testing.T) { namec := make(chan *string, 1) c0 := aetesting.FakeSingleContext(t, "search", "IndexDocument", func(req *pb.IndexDocumentRequest, res *pb.IndexDocumentResponse) error { namec <- req.Params.IndexSpec.Namespace return fmt.Errorf("RPC error") }) // Check that wrapping c...
explode_data.jsonl/27966
{ "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, 22699, 14828, 1280, 1155, 353, 8840, 836, 8, 341, 11609, 66, 1669, 1281, 35190, 353, 917, 11, 220, 16, 340, 1444, 15, 1669, 264, 57824, 287, 991, 726, 10888, 1972, 1155, 11, 330, 1836, 497, 330, 1552, 7524, 497, 2915, 68...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestComposeUpMultiNet(t *testing.T) { base := testutil.NewBase(t) var dockerComposeYAML = fmt.Sprintf(` version: '3.1' services: svc0: image: %s networks: - net0 - net1 - net2 svc1: image: %s networks: - net0 - net1 svc2: image: %s networks: - n...
explode_data.jsonl/20532
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 586 }
[ 2830, 3393, 70492, 2324, 20358, 6954, 1155, 353, 8840, 836, 8, 341, 24195, 1669, 1273, 1314, 7121, 3978, 1155, 692, 2405, 26588, 70492, 56, 31102, 284, 8879, 17305, 61528, 4366, 25, 364, 18, 13, 16, 3876, 12779, 510, 220, 46154, 15, 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 TestGetActiveOrders(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip("API keys required but not set, skipping test") } var orderReq order.GetOrdersRequest cp := currency.NewPairWithDelimiter(currency.BTC.String(), currency.USDT.String(), "/") orderReq.Pairs = append(orderReq.Pairs, cp) orderR...
explode_data.jsonl/15220
{ "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, 1949, 5728, 24898, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 341, 197, 3244, 57776, 445, 7082, 6894, 2567, 714, 537, 738, 11, 42659, 1273, 1138, 197, 532, 2405, 1973,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSaveDeviceSubscription(t *testing.T) { common.SetUpMockConfig() defer func() { err := common.TruncateDB(common.OnDisk) if err != nil { t.Fatalf("error: %v", err) } }() var devSubscription = DeviceSubscription{ EventHostIP: "10.10.0.1", Location: "https://10.10.10.23/redfish/v1/Even...
explode_data.jsonl/49409
{ "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, 8784, 6985, 33402, 1155, 353, 8840, 836, 8, 341, 83825, 4202, 2324, 11571, 2648, 741, 16867, 2915, 368, 341, 197, 9859, 1669, 4185, 8240, 26900, 3506, 57802, 8071, 47583, 340, 197, 743, 1848, 961, 2092, 341, 298, 3244, 30762...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAfterRetryWithContextCanceled(t *testing.T) { c := awstesting.NewClient() req := c.NewRequest(&request.Operation{Name: "Operation"}, nil, nil) ctx := &awstesting.FakeContext{DoneCh: make(chan struct{})} req.SetContext(ctx) req.Error = fmt.Errorf("some error") req.Retryable = aws.Bool(true) req.HTTPRe...
explode_data.jsonl/44095
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 6025, 51560, 91101, 63263, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1360, 267, 59855, 7121, 2959, 2822, 24395, 1669, 272, 75274, 2099, 2035, 56297, 63121, 25, 330, 8432, 14345, 2092, 11, 2092, 692, 20985, 1669, 609, 672, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestLogger(t *testing.T) { testCases := []struct { name string want *zap.Logger wantErr bool }{ { name: "should return error: not initialized", want: nil, wantErr: true, }, { name: "should return the initialized logger", want: zap.NewExample(), wantErr: false, },...
explode_data.jsonl/73946
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 320 }
[ 2830, 3393, 7395, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 50780, 262, 353, 92371, 12750, 198, 197, 50780, 7747, 1807, 198, 197, 59403, 197, 197, 515, 298, 11609, 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...
2
func TestOpen(t *testing.T) { for _, alg := range hashAlgs { vfsObj, root, ctx, err := newVerityRoot(t, alg) if err != nil { t.Fatalf("newVerityRoot: %v", err) } filename := "verity-test-file" fd, _, err := newFileFD(ctx, t, vfsObj, root, filename, 0644) if err != nil { t.Fatalf("newFileFD: %v", err...
explode_data.jsonl/56755
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 358 }
[ 2830, 3393, 5002, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17345, 1669, 2088, 5175, 2101, 5857, 341, 197, 5195, 3848, 5261, 11, 3704, 11, 5635, 11, 1848, 1669, 501, 10141, 487, 8439, 1155, 11, 17345, 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...
6
func TestReceiveBufferAutoTuningApplicationLimited(t *testing.T) { const mtu = 1500 const mss = mtu - header.IPv4MinimumSize - header.TCPMinimumSize c := context.New(t, mtu) defer c.Cleanup() stk := c.Stack() // Set lower limits for auto-tuning tests. This is required because the // test stops the worker which...
explode_data.jsonl/76017
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1474 }
[ 2830, 3393, 14742, 4095, 13253, 51, 37202, 4988, 74477, 1155, 353, 8840, 836, 8, 341, 4777, 11965, 84, 284, 220, 16, 20, 15, 15, 198, 4777, 296, 778, 284, 11965, 84, 481, 4247, 46917, 85, 19, 28695, 1695, 481, 4247, 836, 7123, 28695...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWAL_EmptyJournal(t *testing.T) { ctx := context.Background() dir, cleanup := mustTempDir(t) defer cleanup() // Start the WAL and close it without writing anything. // Creates an empty initial journal file. if err := func() error { w, err := Open(ctx, dir, WithAllowWrite(true)) if err != nil { re...
explode_data.jsonl/70888
{ "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, 54, 969, 76060, 1595, 43494, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 48532, 11, 21290, 1669, 1969, 12151, 6184, 1155, 340, 16867, 21290, 2822, 197, 322, 5145, 279, 73792, 323, 3265, 432, 2041, 4378, 411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransportPersistConnLeakShortBody(t *testing.T) { // Not parallel: measures goroutines. defer afterTest(t) ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) { })) defer ts.Close() c := ts.Client() tr := c.Transport.(*Transport) n0 := runtime.NumGoroutine() body := []byte("Hello"...
explode_data.jsonl/14095
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 395 }
[ 2830, 3393, 27560, 61267, 9701, 2304, 585, 12472, 5444, 1155, 353, 8840, 836, 8, 341, 197, 322, 2806, 15279, 25, 10953, 45198, 28628, 624, 16867, 1283, 2271, 1155, 340, 57441, 1669, 54320, 70334, 7121, 5475, 7, 3050, 9626, 18552, 3622, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsZeroHashP2PHKAddress(t *testing.T) { mainnetDummy := "DsQxuVRvS4eaJ42dhQEsCXauMWjvopWgrVg" testnetDummy := "TsR28UZRprhgQQhzWns2M6cAwchrNVvbYq2" simnetDummy := "SsUMGgvWLcixEeHv3GT4TGYyez4kY79RHth" positiveTest := true negativeTest := !positiveTest testIsZeroHashP2PHKAddress(t, mainnetDummy, &chaincf...
explode_data.jsonl/54134
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 423 }
[ 2830, 3393, 3872, 17999, 6370, 47, 17, 10842, 42, 4286, 1155, 353, 8840, 836, 8, 341, 36641, 4711, 43344, 1669, 330, 66950, 48, 87, 84, 18800, 85, 50, 19, 12508, 41, 19, 17, 30621, 48, 17360, 65240, 2863, 54173, 73, 85, 453, 54, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMain(t *testing.T) { args := os.Args defer func() { os.Args = args }() // os.Args = []string{"./pravasan", "add", "ct", "test123", "first:int"} // fmt.Println(os.Args) // main() }
explode_data.jsonl/22640
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 6202, 1155, 353, 8840, 836, 8, 341, 31215, 1669, 2643, 51015, 198, 16867, 2915, 368, 314, 2643, 51015, 284, 2827, 50746, 197, 322, 2643, 51015, 284, 3056, 917, 4913, 1725, 649, 402, 45388, 497, 330, 718, 497, 330, 302, 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 TestTerminateSectors(t *testing.T) { periodOffset := abi.ChainEpoch(100) actor := newHarness(t, periodOffset) builder := builderForHarness(actor). WithBalance(bigBalance, big.Zero()) commitSector := func(t *testing.T, rt *mock.Runtime) *miner.SectorOnChainInfo { actor.constructAndVerify(rt) precommitEpo...
explode_data.jsonl/43148
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 903 }
[ 2830, 3393, 62519, 50, 10605, 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 TestHas(t *testing.T) { m := NewSharedMap() // Get a missing element. if m.Has("Money") == true { t.Error("element shouldn't exists") } elephant := Animal{"elephant"} m.Store("elephant", elephant) if m.Has("elephant") == false { t.Error("element exists, expecting Has to return True.") } }
explode_data.jsonl/77833
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 110 }
[ 2830, 3393, 10281, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1532, 16997, 2227, 2822, 197, 322, 2126, 264, 7402, 2392, 624, 743, 296, 16152, 445, 24786, 899, 621, 830, 341, 197, 3244, 6141, 445, 6101, 13133, 944, 6724, 1138, 197, 630,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGocloak_GetCerts(t *testing.T) { t.Parallel() cfg := GetConfig(t) client := NewClientWithDebug(t) certs, err := client.GetCerts(cfg.GoCloak.Realm) FailIfErr(t, err, "get certs") t.Log(certs) }
explode_data.jsonl/79507
{ "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, 38, 509, 385, 585, 13614, 34, 15546, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50286, 1669, 2126, 2648, 1155, 340, 25291, 1669, 1532, 2959, 2354, 7939, 1155, 340, 1444, 15546, 11, 1848, 1669, 2943, 2234, 34, 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 TestHarness(t *testing.T) { h, err := NewHarness(t, params.PrivNetParam.Params) if err != nil { t.Errorf("create new test harness instance failed %v", err) } if err := h.Setup(); err != nil { t.Errorf("setup test harness instance failed %v", err) } h2, err := NewHarness(t, params.PrivNetParam.Params) d...
explode_data.jsonl/3897
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 666 }
[ 2830, 3393, 74248, 1155, 353, 8840, 836, 8, 341, 9598, 11, 1848, 1669, 1532, 74248, 1155, 11, 3628, 17947, 344, 6954, 2001, 58268, 340, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 3182, 501, 1273, 32408, 2867, 4641, 1018, 85, 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...
7
func Test_Transaction(t *testing.T) { table := createInitTable() defer dropTable(table) gtest.C(t, func(t *gtest.T) { err := db.Transaction(func(tx *gdb.TX) error { if _, err := tx.Replace(table, g.Map{ "id": 1, "passport": "USER_1", "password": "PASS_1", "nickname": "NAME_1",...
explode_data.jsonl/41321
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 569 }
[ 2830, 3393, 34932, 1311, 1155, 353, 8840, 836, 8, 341, 26481, 1669, 1855, 3803, 2556, 741, 16867, 5943, 2556, 15761, 692, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 9859, 1669, 2927, 29284, 18552, 27301, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNamespaceSnapshotShardSkipNotBootstrapped(t *testing.T) { shardMethodResults := []snapshotTestCase{ { isSnapshotting: false, expectSnapshot: true, shardBootstrapStateBeforeTick: Bootstrapped, shardSnapshotErr: nil, isBootstrapped: true...
explode_data.jsonl/35362
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 330 }
[ 2830, 3393, 22699, 15009, 2016, 567, 35134, 2623, 17919, 495, 5677, 1155, 353, 8840, 836, 8, 341, 36196, 567, 3523, 9801, 1669, 3056, 35501, 16458, 515, 197, 197, 515, 298, 19907, 15009, 1280, 25, 394, 895, 345, 298, 24952, 15009, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInt32_Clear(t *testing.T) { testcases := []struct { name string s Int32 }{ { name: "test Int32 Clear, s is empty", s: Int32{}, }, { name: "test Int32 Clear, s is not empty", s: map[int32]struct{}{1: {}, 2: {}, 3: {}}, }, } for _, tc := range testcases { t.Logf("running sc...
explode_data.jsonl/62323
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 216 }
[ 2830, 3393, 1072, 18, 17, 57744, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 1903, 262, 1333, 18, 17, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 1944, 1333, 18, 17, 12023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseMnemonic(t *testing.T) { type args struct { mnemonic string } tests := []struct { name string args args wantMasterSeed string wantErr bool }{ { name: "ring defense obey exhaust boat popular surround supreme front lemon monster number", args: args{ mnemo...
explode_data.jsonl/25835
{ "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, 14463, 44, 70775, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 2109, 70775, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 1843, 914, 198, 197, 31215, 1843, 2827, 198, 197, 50780, 18041, 41471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImageTagInvalidReference(t *testing.T) { client := &Client{ client: newMockClient(errorMock(http.StatusInternalServerError, "Server error")), } err := client.ImageTag(context.Background(), "image_id", "aa/asdf$$^/aa") if err == nil || err.Error() != `Error parsing reference: "aa/asdf$$^/aa" is not a val...
explode_data.jsonl/22950
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 143 }
[ 2830, 3393, 1906, 5668, 7928, 8856, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 609, 2959, 515, 197, 25291, 25, 501, 11571, 2959, 6390, 11571, 19886, 66760, 11, 330, 5475, 1465, 30154, 197, 630, 9859, 1669, 2943, 7528, 5668, 5378, 19047,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSaveBlock(t *testing.T) { s := objmock.NewStore() blk := testutils.BuildRawCSV(5, 10) buf := bytes.NewBuffer(nil) enc := objects.NewStrListEncoder(true) _, err := objects.WriteBlockTo(enc, buf, blk) require.NoError(t, err) bb := make([]byte, 1024) sum, bb, err := objects.SaveBlock(s, bb, buf.Bytes()) ...
explode_data.jsonl/57826
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 281 }
[ 2830, 3393, 8784, 4713, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 2839, 16712, 7121, 6093, 2822, 197, 34989, 1669, 1273, 6031, 25212, 20015, 44209, 7, 20, 11, 220, 16, 15, 340, 26398, 1669, 5820, 7121, 4095, 27907, 340, 197, 954, 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 TestIncrementBytes(t *testing.T) { tests := []struct { in []byte out []byte }{ { in: []byte{0}, out: []byte{1}, }, { in: []byte{0, 0}, out: []byte{0, 1}, }, { in: []byte{0, 255}, out: []byte{1, 0}, }, } for _, test := range tests { actual := incrementBytes(test.in) if...
explode_data.jsonl/9140
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 38311, 7078, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 17430, 220, 3056, 3782, 198, 197, 13967, 3056, 3782, 198, 197, 59403, 197, 197, 515, 298, 17430, 25, 220, 3056, 3782, 90, 15, 1583, 298, 13967, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnmarshalJSONPBUnmarshaler(t *testing.T) { rawJson := `{ "foo": "bar", "baz": [0, 1, 2, 3] }` var msg dynamicMessage if err := Unmarshal(strings.NewReader(rawJson), &msg); err != nil { t.Errorf("an unexpected error occurred when parsing into JSONPBUnmarshaler: %v", err) } if msg.RawJson != rawJson { t...
explode_data.jsonl/63126
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 166 }
[ 2830, 3393, 1806, 27121, 5370, 40637, 1806, 27121, 261, 1155, 353, 8840, 836, 8, 341, 76559, 5014, 1669, 53692, 330, 7975, 788, 330, 2257, 497, 330, 42573, 788, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 60, 335, 3989, 2405, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCoinbaseMatured(t *testing.T) { t.Parallel() params := chaincfg.MainNetParams() maturity := int32(params.CoinbaseMaturity) tests := []struct { txHeight, tipHeight int32 matured bool }{ {0, 0, false}, {0, maturity - 1, false}, {0, maturity, true}, {0, maturity + 1, true}, {1, 0, f...
explode_data.jsonl/68627
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 274 }
[ 2830, 3393, 41180, 3152, 44, 1568, 67, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 25856, 1669, 8781, 14072, 23873, 6954, 4870, 741, 2109, 37854, 1669, 526, 18, 17, 8917, 727, 1961, 3152, 44, 37854, 340, 78216, 1669, 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, 1...
3
func TestSyncer_SyncAny(t *testing.T) { state := sm.State{ ChainID: "chain", Version: tmstate.Version{ Consensus: tmversion.Consensus{ Block: version.BlockProtocol, App: 0, }, Software: version.TMCoreSemVer, }, LastBlockHeight: 1, LastBlockID: types.BlockID{Hash: []byte("blockhash")}...
explode_data.jsonl/46284
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2466 }
[ 2830, 3393, 12154, 261, 1098, 1721, 8610, 1155, 353, 8840, 836, 8, 341, 24291, 1669, 1525, 18942, 515, 197, 197, 18837, 915, 25, 330, 8819, 756, 197, 77847, 25, 17333, 2454, 35842, 515, 298, 197, 15220, 13626, 25, 17333, 4366, 94594, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseJS(t *testing.T) { for _, tc := range []struct { desc, name, js string want []string }{ { desc: "empty", name: "empty^file.js", js: "", want: []string{}, }, { desc: "import single quote", name: "single.js", js: `export * from 'date-fns';`, want: []string{"...
explode_data.jsonl/70248
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1390 }
[ 2830, 3393, 14463, 12545, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 41653, 11, 829, 11, 6994, 914, 198, 197, 50780, 1843, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 41653, 25, 330, 3194, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSendHitVisitor(t *testing.T) { visitor := createVisitor("test", nil) err := visitor.SendHit(&model.EventHit{}) if err == nil { t.Errorf("Expected error as hit is malformed.") } err = visitor.SendHit(&model.EventHit{ Action: "test_action", }) if err != nil { t.Errorf("Did not expect error as hit ...
explode_data.jsonl/12297
{ "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, 11505, 19498, 16796, 1155, 353, 8840, 836, 8, 341, 197, 39985, 1669, 1855, 16796, 445, 1944, 497, 2092, 340, 9859, 1669, 20181, 20176, 19498, 2099, 2528, 6904, 19498, 6257, 692, 743, 1848, 621, 2092, 341, 197, 3244, 13080, 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 TestECDSAGetKeyBySKI(t *testing.T) { t.Parallel() provider, _, cleanup := currentTestConfig.Provider(t) defer cleanup() k, err := provider.KeyGen(&bccsp.ECDSAKeyGenOpts{Temporary: false}) if err != nil { t.Fatalf("Failed generating ECDSA key [%s]", err) } k2, err := provider.GetKey(k.SKI()) if err != n...
explode_data.jsonl/29257
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 329 }
[ 2830, 3393, 7498, 5936, 1890, 295, 1592, 1359, 81545, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 19979, 11, 8358, 21290, 1669, 1482, 2271, 2648, 36208, 1155, 340, 16867, 21290, 2822, 16463, 11, 1848, 1669, 9109, 9610, 99...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestURI(t *testing.T) { cases := []struct { name string uri string valid bool }{ { name: "valid", uri: "https://example.com", valid: true, }, { name: "missing scheme", uri: "example.com", valid: false, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) ...
explode_data.jsonl/56442
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 10301, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 197, 6070, 256, 914, 198, 197, 56322, 1807, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 220, 330, 1891, 756, 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 TestMustKey_invalid(t *testing.T) { assert.Panics(t, func() { var m map[string]int b := lex.MustKey(m) assert.Nil(t, b) }) }
explode_data.jsonl/50169
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 31776, 1592, 31433, 1155, 353, 8840, 836, 8, 341, 6948, 1069, 276, 1211, 1155, 11, 2915, 368, 341, 197, 2405, 296, 2415, 14032, 63025, 198, 197, 2233, 1669, 22429, 50463, 1592, 1255, 340, 197, 6948, 59678, 1155, 11, 293, 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
func TestDesCbcEncrypt(t *testing.T) { data := "hello world" key := "abcdefgh" desCbcEncrypt := DesCbcEncrypt([]byte(data), []byte(key)) desCbcDecrypt := DesCbcDecrypt(desCbcEncrypt, []byte(key)) if string(desCbcDecrypt) != data { internal.LogFailedTestInfo(t, "DesCbcEncrypt/DesCbcDecrypt", data, data, string(...
explode_data.jsonl/7306
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 146 }
[ 2830, 3393, 4896, 34, 8904, 61520, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 330, 14990, 1879, 698, 23634, 1669, 330, 56747, 1837, 52912, 34, 8904, 61520, 1669, 3874, 34, 8904, 61520, 10556, 3782, 2592, 701, 3056, 3782, 4857, 1171, 5291...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCmd(t *testing.T) { b := newBuilderWithMockBackend() sb := newDispatchRequest(b, '`', nil, newBuildArgs(make(map[string]*string)), newStagesBuildResults()) command := "./executable" cmd := &instructions.CmdCommand{ ShellDependantCmdLine: instructions.ShellDependantCmdLine{ CmdLine: strslice.StrS...
explode_data.jsonl/34869
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 283 }
[ 2830, 3393, 15613, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 501, 3297, 2354, 11571, 29699, 741, 24842, 1669, 501, 11283, 1900, 1883, 11, 55995, 516, 2092, 11, 501, 11066, 4117, 36944, 9147, 14032, 8465, 917, 5731, 501, 623, 1134, 11066...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSqDist(t *testing.T) { tests := []struct { a, b Color c uint32 }{ {Color{0, 0, 0}, Color{0, 0, 0}, 0}, {Color{2, 0, 0}, Color{0, 0, 0}, 4}, {Color{0, 2, 0}, Color{0, 0, 0}, 4}, {Color{0, 0, 2}, Color{0, 0, 0}, 4}, {Color{255, 255, 255}, Color{1, 1, 1}, 254 * 254 * 3}, } for _, test := rang...
explode_data.jsonl/29423
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 287 }
[ 2830, 3393, 81015, 23356, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11323, 11, 293, 3478, 198, 197, 1444, 262, 2622, 18, 17, 198, 197, 59403, 197, 197, 90, 1636, 90, 15, 11, 220, 15, 11, 220, 15, 2137, 3478,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImporter_Commit_Empty(t *testing.T) { tree, err := NewMutableTree(db.NewMemDB(), 0) require.NoError(t, err) importer, err := tree.Import(3) require.NoError(t, err) defer importer.Close() err = importer.Commit() require.NoError(t, err) assert.EqualValues(t, 3, tree.Version()) }
explode_data.jsonl/25883
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 77289, 16946, 1763, 76060, 1595, 1155, 353, 8840, 836, 8, 341, 51968, 11, 1848, 1669, 1532, 11217, 6533, 9791, 7121, 18816, 3506, 1507, 220, 15, 340, 17957, 35699, 1155, 11, 1848, 340, 21918, 261, 11, 1848, 1669, 4916, 67275...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseTime(t *testing.T) { ts, err := time.Parse(time.RFC3339Nano, "2015-06-03T13:21:58.555Z") if err != nil { panic(err) } var tests = []struct { input string fail bool result time.Time }{ { input: "", fail: true, }, { input: "abc", fail: true, }, { input: "30s", fail...
explode_data.jsonl/72406
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 535 }
[ 2830, 3393, 14463, 1462, 1155, 353, 8840, 836, 8, 341, 57441, 11, 1848, 1669, 882, 8937, 9730, 2013, 6754, 18, 18, 18, 24, 83819, 11, 330, 17, 15, 16, 20, 12, 15, 21, 12, 15, 18, 51, 16, 18, 25, 17, 16, 25, 20, 23, 13, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestStorageTest(t *testing.T) { storagetest.Test(t, func(t *testing.T) (sto blobserver.Storage, cleanup func()) { ld := test.NewLoader() return newNamespace(t, ld), func() {} }) }
explode_data.jsonl/58644
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 5793, 2271, 1155, 353, 8840, 836, 8, 341, 18388, 269, 351, 57824, 8787, 1155, 11, 2915, 1155, 353, 8840, 836, 8, 320, 33052, 23404, 4030, 43771, 11, 21290, 2915, 2140, 341, 197, 197, 507, 1669, 1273, 7121, 9181, 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
func TestMultiContainerLogs(t *testing.T) { f := newPLMFixture(t) defer f.TearDown() f.kClient.SetLogsForPodContainer(podID, "cont1", "hello world!") f.kClient.SetLogsForPodContainer(podID, "cont2", "goodbye world!") state := f.store.LockMutableStateForTesting() p := store.Pod{ PodID: podID, Containers: []...
explode_data.jsonl/65268
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 268 }
[ 2830, 3393, 20358, 4502, 51053, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 2916, 44, 18930, 1155, 340, 16867, 282, 836, 682, 4454, 2822, 1166, 5202, 2959, 4202, 51053, 2461, 23527, 4502, 1295, 347, 915, 11, 330, 772, 16, 497, 330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetVolumePublicationNotFound(t *testing.T) { mockCtrl := gomock.NewController(t) // Create a mocked persistent store client mockStoreClient := mockpersistentstore.NewMockStoreClient(mockCtrl) // Set the store client behavior we don't care about for this testcase mockStoreClient.EXPECT().GetVolumeTransacti...
explode_data.jsonl/62742
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 269 }
[ 2830, 3393, 1949, 18902, 72390, 10372, 1155, 353, 8840, 836, 8, 341, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 197, 322, 4230, 264, 46149, 24999, 3553, 2943, 198, 77333, 6093, 2959, 1669, 7860, 69389, 4314, 7121, 11571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRegisterSigningMethod(t *testing.T) { RegisterSigningMethod(MySigningMethod) if GetSigningMethod("SuperSignerAlgorithm1000") == nil { t.Error("Expected SuperSignerAlgorithm1000, got nil") } RemoveSigningMethod(MySigningMethod) }
explode_data.jsonl/33941
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 8690, 93358, 3523, 1155, 353, 8840, 836, 8, 1476, 79096, 93358, 3523, 37485, 93358, 3523, 692, 743, 2126, 93358, 3523, 445, 19284, 7264, 261, 27847, 16, 15, 15, 15, 899, 621, 2092, 341, 197, 3244, 6141, 445, 18896, 7297, 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 ]
2
func TestYmdStr(t *testing.T) { t.Log(YmdStr(2020, 11, 26)) t.Log(YmdStr(2020, 11, 26, "/")) }
explode_data.jsonl/47981
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 49 }
[ 2830, 3393, 89224, 2580, 1155, 353, 8840, 836, 8, 341, 3244, 5247, 20206, 2277, 2580, 7, 17, 15, 17, 15, 11, 220, 16, 16, 11, 220, 17, 21, 1171, 3244, 5247, 20206, 2277, 2580, 7, 17, 15, 17, 15, 11, 220, 16, 16, 11, 220, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestScripts(t *testing.T) { var skipped []string if types.IsFormat_DOLT_1(types.Format_Default) { skipped = append(skipped, // Different error output for primary key error "failed statements data validation for INSERT, UPDATE", // wrong results "Indexed Join On Keyless Table", // Different query...
explode_data.jsonl/38662
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 199 }
[ 2830, 3393, 44942, 1155, 353, 8840, 836, 8, 341, 2405, 35157, 3056, 917, 198, 743, 4494, 4506, 4061, 1557, 35320, 62, 16, 52613, 9978, 60336, 8, 341, 197, 1903, 74, 6450, 284, 8737, 68907, 6450, 345, 298, 197, 322, 33396, 1465, 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...
2
func TestServiceRouter(t *testing.T) { go func() { StartServer("8082", t) }() time.Sleep(2 * time.Second) var result = make([]int, 0) { err := toolbox.RouteToService("get", "http://127.0.0.1:8082/v1/reverse/1,7,3", nil, &result) if err != nil { t.Errorf("failed to send get request %v", err) } asser...
explode_data.jsonl/9974
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 593 }
[ 2830, 3393, 1860, 9523, 1155, 353, 8840, 836, 8, 341, 30680, 2915, 368, 341, 197, 65999, 5475, 445, 23, 15, 23, 17, 497, 259, 340, 197, 66816, 21957, 31586, 7, 17, 353, 882, 32435, 340, 2405, 1102, 284, 1281, 10556, 396, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestProjectResourceHandler_CreateProjectResources(t *testing.T) { type fields struct { ProjectResourceManager *handler_mock.IResourceManagerMock } tests := []struct { name string fields fields request *http.Request wantParams *models.CreateResourcesParams wantStatus int }{ { name:...
explode_data.jsonl/7377
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1847 }
[ 2830, 3393, 7849, 4783, 3050, 34325, 7849, 11277, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 197, 7849, 32498, 353, 17905, 34134, 2447, 32498, 11571, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAssessRunStatusWorstMessageInReconcileAnalysisRunInDryRunMode(t *testing.T) { newRun := StartAssessRunStatusWorstMessageInReconcileAnalysisRun(t, true) assert.Equal(t, v1alpha1.AnalysisPhaseSuccessful, newRun.Status.Phase) assert.Equal(t, "", newRun.Status.Message) expectedDryRunSummary := v1alpha1.RunSumm...
explode_data.jsonl/75849
{ "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, 5615, 433, 6727, 2522, 54, 65296, 2052, 641, 693, 40446, 457, 26573, 6727, 641, 85215, 6727, 3636, 1155, 353, 8840, 836, 8, 341, 8638, 6727, 1669, 5145, 5615, 433, 6727, 2522, 54, 65296, 2052, 641, 693, 40446, 457, 26573, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRepository_Add(t *testing.T) { const expectedRequestBody = `{"description":"Jim key","sshKey":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDf2pxWX/yhUBDyk2LPhvRtI0LnVO8PyR5Zt6AHrnhtLGqK+8YG9EMlWbCCWrASR+Q1hFQG example"}` server := mockServer{t: t, expectedURL: "/ssh-keys", expectedMethod: "POST", statusCode: 201, ...
explode_data.jsonl/16249
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 286 }
[ 2830, 3393, 4624, 21346, 1155, 353, 8840, 836, 8, 341, 4777, 3601, 33334, 284, 1565, 4913, 4684, 3252, 36634, 1376, 2198, 25537, 1592, 3252, 25537, 3795, 9081, 47097, 1867, 18, 45, 4360, 34, 16, 3337, 17, 36, 50107, 32293, 48, 1867, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSortOptions(t *testing.T) { index, err := Open("Doc") if err != nil { t.Fatalf("err from Open: %v", err) } noErr := errors.New("") // Sentinel err to return to prevent sending request. testCases := []struct { desc string sort *SortOptions wantSort []*pb.SortSpec wantScorer *pb.Sc...
explode_data.jsonl/27962
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1035 }
[ 2830, 3393, 10231, 3798, 1155, 353, 8840, 836, 8, 341, 26327, 11, 1848, 1669, 5264, 445, 9550, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 615, 504, 5264, 25, 1018, 85, 497, 1848, 340, 197, 630, 72104, 7747, 1669, 5975, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInitContainerLogs(t *testing.T) { f := newPLMFixture(t) defer f.TearDown() f.kClient.SetLogsForPodContainer(podID, "cont1", "hello world!") state := f.store.LockMutableStateForTesting() cNameInit := container.Name("cNameInit") cNameNormal := container.Name("cNameNormal") p := store.Pod{ PodID: podI...
explode_data.jsonl/65271
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 375 }
[ 2830, 3393, 3803, 4502, 51053, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 2916, 44, 18930, 1155, 340, 16867, 282, 836, 682, 4454, 2822, 1166, 5202, 2959, 4202, 51053, 2461, 23527, 4502, 1295, 347, 915, 11, 330, 772, 16, 497, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetRoleMembers(t *testing.T) { server, client, err := testutil.GetServerAndClient() if err != nil { t.Fatal(err) } if server != nil { defer server.Close() } if _, _, err := client.GetRoleMembers("Admin"); err != nil { t.Fatal("Failed to GetRoleMembers", err) } if _, _, err := client.GetRoleMembe...
explode_data.jsonl/70279
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 189 }
[ 2830, 3393, 1949, 9030, 24371, 1155, 353, 8840, 836, 8, 341, 41057, 11, 2943, 11, 1848, 1669, 1273, 1314, 2234, 5475, 3036, 2959, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 743, 3538, 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 TestServiceImportedAfterCreated(t *testing.T) { for _, mode := range []EndpointMode{EndpointsOnly, EndpointSliceOnly} { t.Run(mode.String(), func(t *testing.T) { c, ic, cleanup := newTestServiceImportCache(mode) defer cleanup() ic.createKubeService(t, c) ic.createServiceImport(t, mcsapi.ClusterSetI...
explode_data.jsonl/50091
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 166 }
[ 2830, 3393, 1860, 11511, 291, 6025, 11694, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 3856, 1669, 2088, 3056, 27380, 3636, 90, 80786, 7308, 11, 47269, 33236, 7308, 92, 341, 197, 3244, 16708, 31356, 6431, 1507, 2915, 1155, 353, 8840, 836,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_computeLineFromPos(t *testing.T) { testcases := []struct { pos int wantLine uint wantCol uint input string wantOk bool }{ { 15, 2, 6, "SELECT *\nFROM foo", true, // foo table does not exists }, { 16, 3, 6, "SELECT *\n\nFROM foo", true, // foo table does not exists, empty lin...
explode_data.jsonl/70112
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 947 }
[ 2830, 3393, 57028, 2460, 3830, 4859, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 28164, 414, 526, 198, 197, 50780, 2460, 2622, 198, 197, 50780, 6127, 220, 2622, 198, 197, 22427, 262, 914, 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, 1...
7
func TestReconcileProvisioner_reconcileNamespace(t *testing.T) { g := gomega.NewGomegaWithT(t) ctrl := gomock.NewController(t) defer ctrl.Finish() // Setup the Manager and Controller. Wrap the Controller Reconcile function so it writes each request to a // channel when it is finished. mgr, err := manager.New(cf...
explode_data.jsonl/58271
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 798 }
[ 2830, 3393, 693, 40446, 457, 1336, 13013, 261, 1288, 40446, 457, 22699, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 32696, 7121, 38, 32696, 2354, 51, 1155, 340, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMakeSprintUpdateName(t *testing.T) { assert := assert.New(t) evt := sdk.AgileSprintUpdateMutation{} evt.Set.Name = sdk.StringPointer("my sprint 1") update, updated, err := makeSprintUpdate("5", &evt) assert.NoError(err) assert.True(updated) assert.Equal("{\"id\":5,\"name\":\"my sprint 1\"}", sdk.Stringi...
explode_data.jsonl/3683
{ "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, 8078, 50, 1350, 4289, 675, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 197, 28734, 1669, 45402, 49850, 457, 50, 1350, 4289, 53998, 16094, 197, 28734, 4202, 2967, 284, 45402, 6431, 9084, 445, 2408, 37849,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthService_SendRecoveryEmail(t *testing.T) { user := createTestUser() codeMatcher := func(code string) bool { return len(code) == 6 } dao := dao.MockUserDao{} mailer.On( "SendRecoveryCode", user.Email, mock.MatchedBy(codeMatcher)).Return(nil) dao.On( "SetRecoveryCode", user.ID, mock.Ma...
explode_data.jsonl/18898
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 90466, 46267, 693, 7449, 4781, 1155, 353, 8840, 836, 8, 341, 19060, 1669, 1855, 2271, 1474, 2822, 43343, 37554, 1669, 2915, 15842, 914, 8, 1807, 341, 197, 853, 2422, 15842, 8, 621, 220, 21, 198, 197, 630, 2698, 3441, 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 TestReadWriteQueue_ScheduleResponse(t *testing.T) { var startTime time.Time cases := []struct { desc string reqData *requestData curTime time.Time want time.Duration }{ { desc: "20 ms request, curTime: 0 ms", reqData: &requestData{ &Request{ Type: ReadRequest, Timestamp...
explode_data.jsonl/64723
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 737 }
[ 2830, 3393, 58610, 7554, 1098, 8796, 2582, 1155, 353, 8840, 836, 8, 341, 2405, 22858, 882, 16299, 271, 1444, 2264, 1669, 3056, 1235, 341, 197, 41653, 262, 914, 198, 197, 24395, 1043, 353, 93478, 198, 197, 33209, 1462, 882, 16299, 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...
4
func TestParse(t *testing.T) { tests := []struct { name string in *MountParams want *MountConfig }{ { name: "single secret", in: &MountParams{ Attributes: ` { "secrets": "- resourceName: \"projects/project/secrets/test/versions/latest\"\n fileName: \"good1.txt\"\n", "csi.storage.k8s...
explode_data.jsonl/30919
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1185 }
[ 2830, 3393, 14463, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 17430, 256, 353, 16284, 4870, 198, 197, 50780, 353, 16284, 2648, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 15338, 623...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIPv6Validation(t *testing.T) { tests := []struct { param string expected bool }{ {"10.0.0.1", false}, {"172.16.0.1", false}, {"192.168.0.1", false}, {"192.168.255.254", false}, {"192.168.255.256", false}, {"172.16.255.254", false}, {"172.16.256.255", false}, {"2001:cdba:0000:0000:0000:...
explode_data.jsonl/77237
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 438 }
[ 2830, 3393, 58056, 21, 13799, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 36037, 262, 914, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 4913, 16, 15, 13, 15, 13, 15, 13, 16, 497, 895, 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...
6
func TestBonding(t *testing.T) { kb, err := keys.NewKeyBaseFromDir(InitClientHome(t, "")) require.NoError(t, err) addr, _ := CreateAddr(t, name1, pw, kb) cleanup, valPubKeys, operAddrs, port := InitializeTestLCD(t, 2, []sdk.AccAddress{addr}, false) tests.WaitForHeight(1, port) defer cleanup() require.Equal(t, ...
explode_data.jsonl/25410
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2354 }
[ 2830, 3393, 89844, 287, 1155, 353, 8840, 836, 8, 341, 16463, 65, 11, 1848, 1669, 6894, 7121, 1592, 3978, 3830, 6184, 7, 3803, 2959, 7623, 1155, 11, 77561, 17957, 35699, 1155, 11, 1848, 340, 53183, 11, 716, 1669, 4230, 13986, 1155, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGCodeGenerator(t *testing.T) { rendererCounter := newCounter() layers := make([]data.PartitionedLayer, 3) generator := gcode.NewGenerator(&data.Options{ GoSlice: data.GoSliceOptions{ Logger: log.New(os.Stdout, "", 0), }, }, gcode.WithRenderer(&fakeRenderer{t: t, c: rendererCounter})) generator.In...
explode_data.jsonl/63449
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 267 }
[ 2830, 3393, 38, 2078, 12561, 1155, 353, 8840, 836, 8, 341, 83509, 14099, 1669, 501, 14099, 2822, 8810, 5074, 1669, 1281, 10556, 691, 52250, 680, 291, 9188, 11, 220, 18, 692, 3174, 15312, 1669, 342, 1851, 7121, 12561, 2099, 691, 22179, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMessageTransaction_ValidateExtended3(t *testing.T) { /* Test for signing a message transaction via slave with an used ots key */ xmss := helper.GetAliceXMSS(6) // Master XMSS masterAddress := misc.UCharVectorToBytes(xmss.Address()) xmss2 := helper.GetBobXMSS(6) // Slave XMSS message := "hello" fee := ...
explode_data.jsonl/10391
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 541 }
[ 2830, 3393, 2052, 8070, 62, 17926, 53190, 18, 1155, 353, 8840, 836, 8, 341, 197, 3284, 197, 73866, 369, 15971, 264, 1943, 7745, 4566, 20362, 448, 458, 1483, 297, 2576, 1376, 198, 197, 3276, 10225, 76, 778, 1669, 13137, 2234, 61686, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInputService1ProtocolTestBasicXMLSerializationCase3(t *testing.T) { sess := session.New() svc := NewInputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) input := &InputService1TestShapeInputService1TestCaseOperation3Input{} req, _ := svc.InputService1TestCaseOperation3Request(...
explode_data.jsonl/46470
{ "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, 2505, 1860, 16, 20689, 2271, 15944, 10609, 35865, 4207, 18, 1155, 353, 8840, 836, 8, 341, 1903, 433, 1669, 3797, 7121, 741, 1903, 7362, 1669, 1532, 2505, 1860, 16, 20689, 2271, 57223, 11, 609, 8635, 10753, 90, 27380, 25, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDockerStateToContainerState(t *testing.T) { taskEngine, done, _ := setupWithDefaultConfig(t) defer done() ctx, cancel := context.WithCancel(context.TODO()) defer cancel() testTask := createTestTask("test_task") container := testTask.Containers[0] // let the container keep running to prevent the edge ...
explode_data.jsonl/39465
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 796 }
[ 2830, 3393, 35, 13659, 1397, 1249, 4502, 1397, 1155, 353, 8840, 836, 8, 341, 49115, 4571, 11, 2814, 11, 716, 1669, 6505, 2354, 3675, 2648, 1155, 340, 16867, 2814, 2822, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 90988, 2398, 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 TestUntypedComplexIssue799(t *testing.T) { gopClTest(t, ` const ulp1 = imag(1i + 2i / 3 - 5i / 3) const ulp2 = imag(1i + complex(0, 2) / 3 - 5i / 3) func main() { const a = (ulp1 == ulp2) } `, `package main const ulp1 = imag(1i + 2i/3 - 5i/3) const ulp2 = imag(1i + complex(0, 2)/3 - 5i/3) func main() { const...
explode_data.jsonl/73588
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 170 }
[ 2830, 3393, 20250, 32501, 31137, 42006, 22, 24, 24, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 1024, 8557, 79, 16, 284, 6532, 7, 16, 72, 488, 220, 17, 72, 608, 220, 18, 481, 220, 20, 72, 608, 220, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNew(t *testing.T) { Convey("New", t, func() { Convey("When passing Binary Tree should get a binary tree type", func() { t := tree.New(tree.BinarySearchTree) b := bst.NewTree() So(t, ShouldHaveSameTypeAs, b) }) Convey("should panic when passing an unknown type", func() { f := func() { tre...
explode_data.jsonl/52892
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 166 }
[ 2830, 3393, 3564, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 3564, 497, 259, 11, 2915, 368, 341, 197, 93070, 5617, 445, 4498, 12299, 17718, 8942, 1265, 633, 264, 7868, 4916, 943, 497, 2915, 368, 341, 298, 3244, 1669, 4916, 7121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestScalarBls12377G1Sub(t *testing.T) { bls12377G1 := BLS12377G1() nine := bls12377G1.Scalar.New(9) six := bls12377G1.Scalar.New(6) n := new(big.Int).Set(bls12377modulus) n.Sub(n, big.NewInt(3)) expected, err := bls12377G1.Scalar.SetBigInt(n) require.NoError(t, err) actual := six.Sub(nine) require.Equal(...
explode_data.jsonl/15756
{ "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, 20639, 33, 4730, 16, 17, 18, 22, 22, 38, 16, 3136, 1155, 353, 8840, 836, 8, 341, 96421, 82, 16, 17, 18, 22, 22, 38, 16, 1669, 425, 7268, 16, 17, 18, 22, 22, 38, 16, 741, 9038, 482, 1669, 1501, 82, 16, 17, 18, 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 TestState_Channel(t *testing.T) { t.Parallel() st := setupNewState() if got, ok := st.Channel(channels[0]); ok { t.Errorf("Expected: %v to be nil.", got) } if got, ok := st.Channel(channels[1]); ok { t.Errorf("Expected: %v to be nil.", got) } st.addChannel(channels[0]) if _, ok := st.Channel(channels[...
explode_data.jsonl/32078
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 1397, 68858, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18388, 1669, 6505, 3564, 1397, 741, 743, 2684, 11, 5394, 1669, 357, 38716, 7520, 6680, 58, 15, 14979, 5394, 341, 197, 3244, 13080, 445, 18896, 25, 1018, 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...
7
func TestOTLPTraceExporter_Default(t *testing.T) { td := consumerdata.OTLPTraceData{} te, err := NewOTLPTraceExporter(fakeTraceExporterConfig, newPushOTLPTrace(0, nil)) assert.NotNil(t, te) assert.Nil(t, err) assert.Nil(t, te.ConsumeOTLPTrace(context.Background(), td)) assert.Nil(t, te.Shutdown()) }
explode_data.jsonl/1580
{ "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, 1793, 12567, 6550, 88025, 60336, 1155, 353, 8840, 836, 8, 341, 76373, 1669, 11502, 691, 13, 1793, 12567, 6550, 1043, 16094, 197, 665, 11, 1848, 1669, 1532, 1793, 12567, 6550, 88025, 74138, 6550, 88025, 2648, 11, 501, 16644, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPreReceiveHook_String(t *testing.T) { v := PreReceiveHook{ ID: Int64(0), Name: String(""), Enforcement: String(""), ConfigURL: String(""), } want := `github.PreReceiveHook{ID:0, Name:"", Enforcement:"", ConfigURL:""}` if got := v.String(); got != want { t.Errorf("PreReceiveHook....
explode_data.jsonl/33267
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 157 }
[ 2830, 3393, 4703, 14742, 31679, 31777, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 4968, 14742, 31679, 515, 197, 29580, 25, 688, 1333, 21, 19, 7, 15, 1326, 197, 21297, 25, 286, 923, 445, 4461, 197, 197, 1702, 10927, 25, 923, 445, 4461...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetUserAccessTokens(t *testing.T) { t.Run("GetUserAccessTokens, not a system admin", func(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableUserAccessTokens = true }) th.App.UpdateUserRoles(th.BasicUser.Id, model.S...
explode_data.jsonl/47548
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 729 }
[ 2830, 3393, 1949, 1474, 6054, 29300, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1949, 1474, 6054, 29300, 11, 537, 264, 1849, 3986, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 70479, 1669, 18626, 1155, 568, 3803, 15944, 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 TestPacketICMPv6NeighborSolicitation(t *testing.T) { p := gopacket.NewPacket(testPacketICMPv6NeighborSolicitation, LinkTypeEthernet, gopacket.Default) if p.ErrorLayer() != nil { t.Error("Failed to decode packet:", p.ErrorLayer().Error()) } checkLayers(p, []gopacket.LayerType{LayerTypeEthernet, LayerTypeIPv6,...
explode_data.jsonl/80131
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 144 }
[ 2830, 3393, 16679, 1317, 5781, 85, 21, 88109, 50, 7762, 7556, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 342, 453, 5709, 7121, 16679, 8623, 16679, 1317, 5781, 85, 21, 88109, 50, 7762, 7556, 11, 5948, 929, 98006, 11, 342, 453, 5709, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReversiAnz29(t *testing.T) { r := NewReversiAnz() r.SetOwnEdgeCnt(1) if r.GetOwnEdgeCnt() != 1 { t.Errorf("NG") } }
explode_data.jsonl/23052
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 68 }
[ 2830, 3393, 693, 3004, 72, 2082, 89, 17, 24, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 693, 3004, 72, 2082, 89, 741, 7000, 4202, 14182, 11656, 33747, 7, 16, 340, 743, 435, 2234, 14182, 11656, 33747, 368, 961, 220, 16, 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 ]
2
func TestPvtDataCollections_Unmarshal(t *testing.T) { collection := util.PvtDataCollections{ &ledger.TxPvtData{ SeqInBlock: uint64(1), WriteSet: &rwset.TxPvtReadWriteSet{ DataModel: rwset.TxReadWriteSet_KV, NsPvtRwset: []*rwset.NsPvtReadWriteSet{ { Namespace: "ns1", CollectionPvtRwset:...
explode_data.jsonl/36181
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 437 }
[ 2830, 3393, 47, 9708, 1043, 52730, 40687, 27121, 1155, 353, 8840, 836, 8, 341, 1444, 1908, 1669, 4094, 1069, 9708, 1043, 52730, 515, 197, 197, 5, 50704, 81362, 47, 9708, 1043, 515, 298, 197, 20183, 641, 4713, 25, 2622, 21, 19, 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...
1
func TestSlug(t *testing.T) { tests := [][]string{ {"", ""}, {"a", "a"}, {"a/b", "a-b"}, {"a b", "a-b"}, {"a////b", "a-b"}, {" a////b ", "a-b"}, {" Manowar / Friends ", "manowar-friends"}, } for _, test := range tests { v := Slug(test[0], "-")...
explode_data.jsonl/40629
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 253 }
[ 2830, 3393, 54968, 1155, 353, 8840, 836, 8, 341, 262, 7032, 1669, 52931, 917, 515, 286, 5212, 497, 77496, 286, 5212, 64, 497, 330, 64, 7115, 286, 5212, 64, 3470, 497, 330, 64, 1455, 7115, 286, 5212, 64, 293, 497, 330, 64, 1455, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNetwork(t *testing.T) { network, err := CreateTestNetwork() if err != nil { t.Error(err) } _, err = network.Delete() if err != nil { t.Error(err) } }
explode_data.jsonl/7696
{ "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, 12320, 1155, 353, 8840, 836, 8, 341, 9038, 2349, 11, 1848, 1669, 4230, 2271, 12320, 741, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 532, 197, 6878, 1848, 284, 3922, 18872, 741, 743, 1848, 961, 2092, 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 ]
3
func TestGreaterEqualInts(t *testing.T) { t.Parallel() match, err := path.GreaterEqual(&testType1{ Ints: []int{2, 4, 7}, }, "ints", "5") require.Nil(t, err) require.True(t, match) match, err = path.GreaterEqual(&testType1{ Ints: []int{2, 4, 7}, }, "ints", "7") require.Nil(t, err) require.True(t, match) ...
explode_data.jsonl/78472
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 211 }
[ 2830, 3393, 41366, 2993, 1072, 82, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 47706, 11, 1848, 1669, 1815, 1224, 28362, 2993, 2099, 1944, 929, 16, 515, 197, 57152, 82, 25, 3056, 396, 90, 17, 11, 220, 19, 11, 220, 22, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAverage(t *testing.T) { x, err := Average(8, 7, 9, 6, 10) if x != 8 || err != nil { t.Errorf("Average Function Failed ... ") } nums := []float64{ 162, 671, 933, 414, 788, 730, 817, 33, 536, 875, 670, 236, 473, 167, 877, 980, 316, 950, 456, 92, 517, 557, 956, 954, 104, 178, 794, 278, 147, 773, 43...
explode_data.jsonl/61183
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 701 }
[ 2830, 3393, 26292, 1155, 353, 8840, 836, 8, 1476, 10225, 11, 1848, 1669, 23565, 7, 23, 11, 220, 22, 11, 220, 24, 11, 220, 21, 11, 220, 16, 15, 692, 743, 856, 961, 220, 23, 1369, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 26292...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func Test_longestCommonSubsequence(t *testing.T) { type args struct { text1 string text2 string } tests := []struct { name string args args want int }{ {"case1", args{"abcde", "ace"}, 3}, {"case2", args{"abc", "ace"}, 2}, {"case3", args{"abc", "abc"}, 3}, {"case4", args{"abc", "def"}, 0}, } for ...
explode_data.jsonl/6880
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 240 }
[ 2830, 3393, 17799, 477, 10839, 3136, 15512, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 15425, 16, 914, 198, 197, 15425, 17, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestExecute(t *testing.T) { ctx, cancel := context.RootContext() defer cancel() for i, tc := range []struct { script string runtime string }{ {"fn1()", ""}, {"a := fn2()", "a: int: 3\n"}, {"b := fn3(44)", "b: int: 44\n"}, {`c := fn4("oh my")`, `c: *slang.tt1: oh my `}, {`d,f := fn10("1h30s", fal...
explode_data.jsonl/63538
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 476 }
[ 2830, 3393, 17174, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 45345, 1972, 741, 16867, 9121, 741, 2023, 600, 11, 17130, 1669, 2088, 3056, 1235, 341, 197, 86956, 220, 914, 198, 197, 7000, 4466, 914, 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...
4
func TestServerBoundHandshake_IsRealIPAddress(t *testing.T) { tt := []struct { addr string result bool }{ { addr: mc.RealIPSeparator, result: true, }, { addr: "example.com:25565" + mc.RealIPSeparator, result: true, }, { addr: "example.com:1337" + mc.RealIPSeparator + "some data", ...
explode_data.jsonl/45004
{ "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, 5475, 19568, 2314, 29661, 31879, 12768, 87976, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 3056, 1235, 341, 197, 53183, 256, 914, 198, 197, 9559, 1807, 198, 197, 59403, 197, 197, 515, 298, 53183, 25, 256, 19223, 95552, 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 TestNil(t *testing.T) { { var r *map[interface{}]interface{} d, err := msgpack.Marshal(nil) if err != nil { t.Error(err) } if d[0] != def.Nil { t.Error("not nil type") } err = msgpack.Unmarshal(d, &r) if err != nil { t.Error(err) } if r != nil { t.Error("not nil") } } }
explode_data.jsonl/64211
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 19064, 1155, 353, 8840, 836, 8, 341, 197, 515, 197, 2405, 435, 353, 2186, 58, 4970, 78134, 4970, 16094, 197, 2698, 11, 1848, 1669, 3750, 4748, 37271, 27907, 340, 197, 743, 1848, 961, 2092, 341, 298, 3244, 6141, 3964, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestDirAndSymlinkStats(t *testing.T) { // TODO: revert to upstream test once symlinks and t.TempDir are implemented tmpdir := os.TempDir() dir := filepath.Join(tmpdir, "dir") os.Remove(dir) if err := os.Mkdir(dir, 0777); err != nil { t.Fatal(err) return } testDirStats(t, dir) }
explode_data.jsonl/53389
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 6184, 3036, 34667, 44243, 16635, 1155, 353, 8840, 836, 8, 341, 197, 322, 5343, 25, 41128, 311, 41730, 1273, 3055, 6568, 1014, 15504, 323, 259, 65009, 6184, 525, 11537, 198, 20082, 3741, 1669, 2643, 65009, 6184, 741, 48532, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRequestTimeOut(t *testing.T) { mux := http.NewServeMux() done := make(chan bool) mux.HandleFunc("/latest/api/token", func(w http.ResponseWriter, r *http.Request) { // wait to read from channel done <-done }) mux.HandleFunc("/latest/", func(w http.ResponseWriter, r *http.Request) { if len(r.Header.G...
explode_data.jsonl/17850
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 768 }
[ 2830, 3393, 1900, 1462, 2662, 1155, 353, 8840, 836, 8, 341, 2109, 2200, 1669, 1758, 7121, 60421, 44, 2200, 741, 40495, 1669, 1281, 35190, 1807, 340, 2109, 2200, 63623, 4283, 19350, 10508, 54386, 497, 2915, 3622, 1758, 37508, 11, 435, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPoolMoreWorkThanWorkersWithTimeouts(t *testing.T) { defer leaktest.Check(t)() p, err := NewPoolWithInit(func() (interface{}, error) { return nil, nil }, 1) assert.Nil(t, err, "no init error should be returned") defer p.Cancel() var wg sync.WaitGroup wg.Add(5) for index := 0; index < 5; index++ { go...
explode_data.jsonl/59164
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 278 }
[ 2830, 3393, 10551, 7661, 6776, 26067, 74486, 2354, 7636, 82, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 10600, 1155, 8, 741, 3223, 11, 1848, 1669, 1532, 10551, 2354, 3803, 18552, 368, 320, 4970, 22655, 1465, 8, 341, 197, 853, 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 TestAPISudoUserForbidden(t *testing.T) { defer prepareTestEnv(t)() adminUsername := "user1" normalUsername := "user2" session := loginUser(t, normalUsername) token := getTokenForLoggedInUser(t, session) urlStr := fmt.Sprintf("/api/v1/user?sudo=%s&token=%s", adminUsername, token) req := NewRequest(t, "GET"...
explode_data.jsonl/71781
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 145 }
[ 2830, 3393, 2537, 1637, 7680, 1474, 69115, 1155, 353, 8840, 836, 8, 341, 16867, 10549, 2271, 14359, 1155, 8, 741, 64394, 11115, 1669, 330, 872, 16, 698, 197, 8252, 11115, 1669, 330, 872, 17, 1837, 25054, 1669, 87169, 1155, 11, 4622, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWSReadPongFrame(t *testing.T) { for _, test := range []struct { name string payload []byte }{ {"without payload", nil}, {"with payload", []byte("optional payload")}, } { t.Run(test.name, func(t *testing.T) { c, ri, tr := testWSSetupForRead() pong := testWSCreateClientMsg(wsPongMessage, 1,...
explode_data.jsonl/42696
{ "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, 7433, 4418, 47, 644, 4369, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 76272, 3056, 3782, 198, 197, 59403, 197, 197, 4913, 28996, 7729, 497, 2092, 1583, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestSigningWithDegenerateKeys(t *testing.T) { // Signing with degenerate private keys should not cause an infinite // loop. badKeys := []struct { p, q, g, y, x string }{ {"00", "01", "00", "00", "00"}, {"01", "ff", "00", "00", "00"}, } for i, test := range badKeys { priv := PrivateKey{ PublicKey:...
explode_data.jsonl/23310
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 296 }
[ 2830, 3393, 93358, 2354, 45657, 13220, 8850, 1155, 353, 8840, 836, 8, 341, 197, 322, 87424, 448, 5254, 13220, 869, 6894, 1265, 537, 5240, 458, 23809, 198, 197, 322, 6337, 624, 2233, 329, 8850, 1669, 3056, 1235, 341, 197, 3223, 11, 280...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConvertWithBadKeyMapMapKey(t *testing.T) { lines, err := convertTypes( "Foo", "Bar", ` typedef string UUID struct Foo { 1: optional map<map<string, string>, string> one 2: required map<i32, string> two } struct Bar { 1: optional map<map<string, string>, string> one 2: required map<i3...
explode_data.jsonl/62059
{ "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, 12012, 2354, 17082, 1592, 2227, 2227, 1592, 1155, 353, 8840, 836, 8, 341, 78390, 11, 1848, 1669, 5508, 4173, 1006, 197, 197, 1, 40923, 497, 330, 3428, 756, 197, 197, 3989, 197, 31199, 914, 23698, 271, 197, 6472, 33428, 341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestConnectionSpeedForPeerReceivedFromSeed(t *testing.T) { // directory to store address books dir, err := ioutil.TempDir("", "pex_reactor") require.Nil(t, err) defer os.RemoveAll(dir) // nolint: errcheck // 1. create peer peer := testCreateDefaultPeer(dir, 1) require.Nil(t, peer.Start()) defer peer.Stop(...
explode_data.jsonl/6783
{ "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, 4526, 11056, 2461, 30888, 23260, 3830, 41471, 1155, 353, 8840, 836, 8, 341, 197, 322, 6220, 311, 3553, 2621, 6467, 198, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 79, 327, 1288, 5621, 1138, 17957, 59678, 1155, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewExportedTLSPort_PutFails(t *testing.T) { controller := gomock.NewController(t) mockKV := mock_etcd.NewMockKV(controller) mockLease := mock_etcd.NewMockLease(controller) ctx := context.TODO() mockLease.EXPECT().Grant(gomock.Eq(ctx), gomock.Eq(int64(30000))).Return( &clientv3.LeaseGrantResponse{ ID...
explode_data.jsonl/66150
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 588 }
[ 2830, 3393, 3564, 16894, 291, 13470, 4592, 371, 1088, 332, 37, 6209, 1155, 353, 8840, 836, 8, 341, 61615, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 77333, 82707, 1669, 7860, 45668, 4385, 7121, 11571, 82707, 40845, 340, 77333, 2304, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestUintSetInt64(t *testing.T) { var v int64 = 100 var expected uint64 = 100 tu := Uint{} err := tu.Set(v) if err != nil { t.Errorf("Not Expected error. error:%v", err.Error()) } if tu.Weak() != expected { t.Errorf("This value should return 100 (uint64). value:%#v", tu.Weak()) } }
explode_data.jsonl/13392
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 21570, 1649, 1072, 21, 19, 1155, 353, 8840, 836, 8, 341, 2405, 348, 526, 21, 19, 284, 220, 16, 15, 15, 198, 2405, 3601, 2622, 21, 19, 284, 220, 16, 15, 15, 198, 3244, 84, 1669, 27883, 16094, 9859, 1669, 9765, 4202, 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