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 TestNsenterInvalidPaths(t *testing.T) { args := []string{"nsenter-exec"} parent, child, err := newPipe() if err != nil { t.Fatalf("failed to create pipe %v", err) } namespaces := []string{ // join pid ns of the current process fmt.Sprintf("/proc/%d/ns/pid", -1), } cmd := &exec.Cmd{ Path: os.A...
explode_data.jsonl/25145
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 427 }
[ 2830, 3393, 47360, 1950, 7928, 26901, 1155, 353, 8840, 836, 8, 341, 31215, 1669, 3056, 917, 4913, 4412, 1950, 70721, 16707, 24804, 11, 1682, 11, 1848, 1669, 501, 34077, 741, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 16091, 311, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAesgcmXray(t *testing.T) { expected, err := ioutil.ReadFile("aesgcm_fs.xray.txt") if err != nil { t.Fatal(err) } cmd := exec.Command("../gocryptfs-xray", "aesgcm_fs/VnvoeSetPaOFjZDaZAh0lA") out, err := cmd.CombinedOutput() if err != nil { t.Fatal(err) } if bytes.Compare(out, expected) != 0 { t.Er...
explode_data.jsonl/39053
{ "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, 32, 288, 70, 6226, 55, 11611, 1155, 353, 8840, 836, 8, 341, 42400, 11, 1848, 1669, 43144, 78976, 445, 76584, 70, 6226, 34470, 1993, 11611, 3909, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 25920...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_SendGCM(t *testing.T) { client := NewClient() data := map[string]interface{}{} _, err := client.Send(test_api_key, data, test_reg_id) if err != nil { t.Errorf("Failed to send GCM message : %s", err) } }
explode_data.jsonl/59944
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 90 }
[ 2830, 3393, 46267, 38, 9985, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 1532, 2959, 741, 8924, 1669, 2415, 14032, 31344, 6257, 16094, 197, 6878, 1848, 1669, 2943, 20176, 8623, 11697, 3097, 11, 821, 11, 1273, 4920, 842, 340, 743, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestPrintNamespace(t *testing.T) { tests := []struct { namespace api.Namespace expected []metav1.TableRow }{ // Basic namespace with status and age. { namespace: api.Namespace{ ObjectMeta: metav1.ObjectMeta{ Name: "namespace1", CreationTimestamp: metav1.Time{Time: time.Now(...
explode_data.jsonl/21584
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 500 }
[ 2830, 3393, 8994, 22699, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 56623, 6330, 46011, 198, 197, 42400, 220, 3056, 4059, 402, 16, 18257, 3102, 198, 197, 59403, 197, 197, 322, 14625, 4473, 448, 2639, 323, 4231, 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...
5
func TestConn_Addr(t *testing.T) { requireVCAN0(t) conn, err := Dial("can", "vcan0") assert.NilError(t, err) assert.Assert(t, is.Nil(conn.LocalAddr())) // SocketCAN connections don't have a local connection assert.Equal(t, "can", conn.RemoteAddr().Network()) assert.Equal(t, "vcan0", conn.RemoteAddr().String()) }
explode_data.jsonl/35856
{ "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, 9701, 21346, 81, 1155, 353, 8840, 836, 8, 341, 17957, 11287, 1093, 15, 1155, 340, 32917, 11, 1848, 1669, 66155, 445, 4814, 497, 330, 85, 4814, 15, 1138, 6948, 59678, 1454, 1155, 11, 1848, 340, 6948, 11711, 1155, 11, 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 TestMqMsgStream_Seek(t *testing.T) { f := &fixture{t: t} parameters := f.setup() defer f.teardown() factory := &ProtoUDFactory{} for i := range parameters { func(client mqclient.Client) { m, err := NewMqMsgStream(context.Background(), 100, 100, client, factory.NewUnmarshalDispatcher()) assert.Nil(t, ...
explode_data.jsonl/55285
{ "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, 44, 80, 6611, 3027, 26920, 1225, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 609, 59612, 90, 83, 25, 259, 532, 67543, 1669, 282, 25338, 741, 16867, 282, 31853, 37496, 2822, 1166, 2919, 1669, 609, 31549, 4656, 4153, 16094, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUpdateSpace(t *testing.T) { Convey("Update Space", t, func() { setup(MockRoute{"PUT", "/v2/spaces/a72fa1e8-c694-47b3-85f2-55f61fd00d73", spacePayload, "", 201, "", nil}, t) defer teardown() c := &Config{ ApiAddress: server.URL, Token: "foobar", } client, err := NewClient(c) So(err, Shou...
explode_data.jsonl/59983
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 369 }
[ 2830, 3393, 4289, 9914, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 4289, 11487, 497, 259, 11, 2915, 368, 341, 197, 84571, 66436, 4899, 4913, 6221, 497, 3521, 85, 17, 26734, 2434, 14186, 22, 17, 3632, 16, 68, 23, 1786, 21, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBatchDeleteEntry(t *testing.T) { expiresAt := time.Now().Unix() parentID := td.NewID("host").String() fooSpiffeID := td.NewID("foo").String() fooEntry := &common.RegistrationEntry{ ParentId: parentID, SpiffeId: fooSpiffeID, Selectors: []*common.Selector{{Type: "not", Value: "relevant"}}, E...
explode_data.jsonl/65676
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2653 }
[ 2830, 3393, 21074, 6435, 5874, 1155, 353, 8840, 836, 8, 341, 8122, 18968, 1655, 1669, 882, 13244, 1005, 55832, 741, 24804, 915, 1669, 17941, 7121, 915, 445, 3790, 1827, 703, 2822, 197, 7975, 6406, 43414, 915, 1669, 17941, 7121, 915, 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 TestParserVariablesWithDefaults(t *testing.T) { assertTextAndMarker(t, "${name:value}", "value", &variable{}) assertTextAndMarker(t, "${1:value}", "value", &placeholder{}) assertTextAndMarker(t, "${1:bar${2:foo}bar}", "barfoobar", &placeholder{}) assertTextAndMarker(t, "${name:value", "${name:value", &text{})...
explode_data.jsonl/60278
{ "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, 6570, 7827, 16056, 16273, 1155, 353, 8840, 836, 8, 341, 6948, 1178, 3036, 20613, 1155, 11, 10857, 606, 62856, 9545, 330, 957, 497, 609, 9813, 37790, 6948, 1178, 3036, 20613, 1155, 11, 10857, 16, 62856, 9545, 330, 957, 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 TestVersionInfo(t *testing.T) { tests := []struct { version int expected uint32 }{ { 7, 0x007c94, }, { 10, 0x00a4d3, }, { 20, 0x0149a6, }, { 30, 0x01ed75, }, { 40, 0x028c69, }, } for i, test := range tests { var v *qrCodeVersion v = getQRCodeVersion(...
explode_data.jsonl/25054
{ "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, 5637, 1731, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 74954, 220, 526, 198, 197, 42400, 2622, 18, 17, 198, 197, 59403, 197, 197, 515, 298, 197, 22, 345, 298, 197, 15, 87, 15, 15, 22, 66, 24, 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 TestNegativeValuesUnsignedFields(t *testing.T) { type T struct { I string O interface{} U8 uint8 `xml:"u8"` U16 uint16 `xml:"u16"` U32 uint32 `xml:"u32"` U64 uint64 `xml:"u64"` } var tests = []T{ {I: "<T><u8>-128</u8></T>", O: uint8(0x80)}, {I: "<T><u8>-1</u8></T>", O: uint8(0xff)}, {I:...
explode_data.jsonl/25305
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 613 }
[ 2830, 3393, 38489, 6227, 56421, 8941, 1155, 353, 8840, 836, 8, 341, 13158, 350, 2036, 341, 197, 24486, 256, 914, 198, 197, 48049, 256, 3749, 16094, 197, 15980, 23, 220, 2622, 23, 220, 1565, 6455, 2974, 84, 23, 8805, 197, 15980, 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...
8
func TestMD5(t *testing.T) { pemBlock, _ := pem.Decode([]byte(md5cert)) cert, err := ParseCertificate(pemBlock.Bytes) if err != nil { t.Fatalf("failed to parse certificate: %s", err) } if sa := cert.SignatureAlgorithm; sa != MD5WithRSA { t.Errorf("signature algorithm is %v, want %v", sa, MD5WithRSA) } if err...
explode_data.jsonl/68010
{ "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, 6076, 20, 1155, 353, 8840, 836, 8, 341, 3223, 336, 4713, 11, 716, 1669, 54184, 56372, 10556, 3782, 48645, 20, 12246, 1171, 1444, 529, 11, 1848, 1669, 14775, 33202, 1295, 336, 4713, 36868, 340, 743, 1848, 961, 2092, 341, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestDeleteLock(t *testing.T) { ctx := context.Background() conn, err := grpc.DialContext(ctx, "bufnet", grpc.WithContextDialer(bufDialer), grpc.WithInsecure()) if err != nil { t.Fatalf("Failed to dial bufnet: %v", err) } defer conn.Close() defer rl.Unlock(testResourceID, testLockID) // set lock rl.Lock...
explode_data.jsonl/82344
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 232 }
[ 2830, 3393, 6435, 11989, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 32917, 11, 1848, 1669, 47900, 98462, 1972, 7502, 11, 330, 5909, 4711, 497, 47900, 26124, 1972, 35, 530, 261, 10731, 35, 530, 261, 701, 47900, 26124, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandlerRun(t *testing.T) { dummyT := &testing.T{} ac := &mockedPluggableAutoConfig{} ac.Test(t) le := &fakeLeaderEngine{ err: errors.New("failing"), } h := &Handler{ autoconfig: ac, leaderStatusFreq: 100 * time.Millisecond, warmupDuration: 250 * time.Millisecond, leadership...
explode_data.jsonl/17098
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1951 }
[ 2830, 3393, 3050, 6727, 1155, 353, 8840, 836, 8, 341, 2698, 8574, 51, 1669, 609, 8840, 836, 16094, 81200, 1669, 609, 16712, 291, 2120, 2596, 480, 13253, 2648, 16094, 81200, 8787, 1155, 340, 197, 273, 1669, 609, 30570, 52621, 4571, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewRequest(t *testing.T) { const path = "/test" emptyHeader := make(http.Header) req := NewRequest(path) if req.body != nil { t.Errorf("bad body, got: %v, want: %v", req.body, nil) } if !reflect.DeepEqual(req.Header, emptyHeader) { t.Errorf("bad Header, got: %v, want: %v", req.Header, emp...
explode_data.jsonl/55920
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 3564, 1900, 1155, 353, 8840, 836, 8, 341, 220, 733, 1815, 284, 3521, 1944, 698, 220, 4287, 4047, 1669, 1281, 19886, 15753, 692, 220, 4232, 1669, 1532, 1900, 5581, 692, 220, 421, 4232, 5079, 961, 2092, 341, 262, 259, 13080,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCipherSuitePreference(t *testing.T) { serverConfig := &Config{ CipherSuites: []uint16{TLS_RSA_WITH_RC4_128_SHA, TLS_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256}, Certificates: testConfig.Certificates, MaxVersion: VersionTLS12, GetConfigForClient: func(chi *ClientHelloInfo) (*C...
explode_data.jsonl/36321
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 475 }
[ 2830, 3393, 79460, 28000, 31173, 1155, 353, 8840, 836, 8, 341, 41057, 2648, 1669, 609, 2648, 515, 197, 6258, 10558, 62898, 288, 25, 3056, 2496, 16, 21, 90, 45439, 76994, 23929, 41414, 19, 62, 16, 17, 23, 38096, 11, 41654, 69381, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestWatchConfig(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, `{"project":{"numericProjectID":12345,"projectId":"projectId","attributes":{"osconfig-endpoint":"bad!!1","enable-os-inventory":"false"}},"instance":{"id":12345,"name":"name","...
explode_data.jsonl/4154
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 827 }
[ 2830, 3393, 14247, 2648, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 11009, 991, 33655, 3622, 11, 1565, 4913, 4987, 22317, 19600, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmptyOption(t *testing.T) { type config struct { Var string `env:"VAR,"` } cfg := &config{} os.Setenv("VAR", "val") defer os.Clearenv() assert.NoError(t, env.Parse(cfg)) assert.Equal(t, "val", cfg.Var) }
explode_data.jsonl/7502
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 99 }
[ 2830, 3393, 3522, 5341, 1155, 353, 8840, 836, 8, 341, 13158, 2193, 2036, 341, 197, 197, 3962, 914, 1565, 3160, 2974, 33040, 1335, 3989, 197, 630, 50286, 1669, 609, 1676, 31483, 25078, 4202, 3160, 445, 33040, 497, 330, 831, 1138, 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 TestIssue17045(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("drop table if exists t") tk.MustExec("create table t(a int,b varchar(20),c datetime,d double,e int,f int as(a+b),key(a),key(b),key(c),key(d),key(e),...
explode_data.jsonl/65534
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 255 }
[ 2830, 3393, 42006, 16, 22, 15, 19, 20, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFileNewFiles(t *testing.T) { s, _ := serializers.NewCirconusSerializer(time.Millisecond) fh1 := tmpFile() defer os.Remove(fh1) fh2 := tmpFile() defer os.Remove(fh2) fh3 := tmpFile() defer os.Remove(fh3) f := File{ Files: []string{fh1, fh2, fh3}, serializer: s, } err := f.Connect() assert.N...
explode_data.jsonl/3858
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 258 }
[ 2830, 3393, 1703, 3564, 10809, 1155, 353, 8840, 836, 8, 341, 1903, 11, 716, 1669, 38221, 7121, 34, 88276, 355, 13909, 9730, 71482, 340, 1166, 71, 16, 1669, 4174, 1703, 741, 16867, 2643, 13270, 89148, 16, 340, 1166, 71, 17, 1669, 4174,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeploymentError(t *testing.T) { t.Parallel() tests := []struct { in DeploymentError want string }{ { DeploymentError(0), "deployment ID 0 does not exist", }, { DeploymentError(10), "deployment ID 10 does not exist", }, { DeploymentError(123), "deployment ID 123 does not ex...
explode_data.jsonl/31868
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 242 }
[ 2830, 3393, 75286, 1454, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 17430, 256, 66292, 1454, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 515, 298, 197, 75286, 1454, 7, 15, 1326, 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...
3
func TestYamlSortByName(t *testing.T) { assert := assert.New(t) settings := testutil.Settings().WithSections().With(&print.Settings{ SortByName: true, }).Build() expected, err := testutil.GetExpected("yaml", "yaml-SortByName") assert.Nil(err) options, err := terraform.NewOptions().With(&terraform.Options{ S...
explode_data.jsonl/47282
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 223 }
[ 2830, 3393, 56, 9467, 10231, 16898, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 62930, 1669, 1273, 1314, 27000, 1005, 2354, 38122, 1005, 2354, 2099, 1350, 27000, 515, 197, 7568, 371, 16898, 25, 830, 345, 197, 16630,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHttpParser_ResponseWithBody(t *testing.T) { data := "HTTP/1.1 200 OK\r\n" + "Date: Tue, 14 Aug 2012 22:31:45 GMT\r\n" + "Expires: -1\r\n" + "Cache-Control: private, max-age=0\r\n" + "Content-Type: text/html; charset=UTF-8\r\n" + "Content-Encoding: gzip\r\n" + "Server: gws\r\n" + "Content-Length:...
explode_data.jsonl/16497
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 2905, 6570, 65873, 2354, 5444, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 330, 9230, 14, 16, 13, 16, 220, 17, 15, 15, 10402, 12016, 1699, 1, 3610, 197, 197, 1, 1916, 25, 39167, 11, 220, 16, 19, 4928, 220, 17, 15, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDB_gcSize(t *testing.T) { dir, err := ioutil.TempDir("", "localstore-stored-gc-size") if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) baseKey := make([]byte, 32) if _, err := rand.Read(baseKey); err != nil { t.Fatal(err) } logger := logging.New(ioutil.Discard, 0) db, err := New(dir, baseKey...
explode_data.jsonl/11633
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 443 }
[ 2830, 3393, 3506, 49423, 1695, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 2438, 4314, 5477, 3018, 2371, 66, 7174, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 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...
9
func TestDeleteRun(t *testing.T) { store, manager, runDetail := initWithOneTimeRun(t) defer store.Close() err := manager.DeleteRun(runDetail.UUID) assert.Nil(t, err) _, err = manager.GetRun(runDetail.UUID) assert.Equal(t, codes.NotFound, err.(*util.UserError).ExternalStatusCode()) assert.Contains(t, err.Error()...
explode_data.jsonl/28363
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 128 }
[ 2830, 3393, 6435, 6727, 1155, 353, 8840, 836, 8, 341, 57279, 11, 6645, 11, 1598, 10649, 1669, 13864, 3966, 1462, 6727, 1155, 340, 16867, 3553, 10421, 741, 9859, 1669, 6645, 18872, 6727, 38772, 10649, 39636, 340, 6948, 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...
1
func TestMalformedYAML(t *testing.T) { f := newFixture(t) defer f.TearDown() f.UseRealFS() var document = ` key1: foo key2: key3: "bar key4: true key5: 3 ` f.File("options.yaml", document) f.File("Tiltfile", `result = read_yaml("options.yaml")`) result, err := f.ExecFile("Tiltfile") require.Error(t, ...
explode_data.jsonl/10610
{ "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, 29600, 10155, 56, 31102, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 18930, 1155, 340, 16867, 282, 836, 682, 4454, 2822, 1166, 9046, 12768, 8485, 2822, 2405, 2197, 284, 22074, 792, 16, 25, 15229, 198, 792, 17, 510, 262,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewRepoAction(t *testing.T) { assert.NoError(t, PrepareTestDatabase()) user := AssertExistsAndLoadBean(t, &User{ID: 2}).(*User) repo := AssertExistsAndLoadBean(t, &Repository{OwnerID: user.ID}).(*Repository) repo.Owner = user actionBean := &Action{ OpType: ActionCreateRepo, ActUserID: user.ID, ...
explode_data.jsonl/74205
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 245 }
[ 2830, 3393, 3564, 25243, 2512, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 31166, 2271, 5988, 12367, 19060, 1669, 5319, 15575, 3036, 5879, 10437, 1155, 11, 609, 1474, 90, 915, 25, 220, 17, 16630, 4071, 1474, 340, 17200, 5368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTimeouts(t *testing.T) { customBackend := getCustomBackend() customBackend.KeyValueMap["client.peer.timeout.connection"] = "12s" customBackend.KeyValueMap["client.peer.timeout.response"] = "6s" customBackend.KeyValueMap["client.peer.timeout.discovery.greylistExpiry"] = "5m" customBackend.KeyValueMap["clie...
explode_data.jsonl/34069
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 803 }
[ 2830, 3393, 7636, 82, 1155, 353, 8840, 836, 8, 341, 1444, 1450, 29699, 1669, 633, 10268, 29699, 741, 1444, 1450, 29699, 9610, 1130, 2227, 1183, 2972, 72864, 36110, 20310, 1341, 284, 330, 16, 17, 82, 698, 1444, 1450, 29699, 9610, 1130, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRocksdbKV_Prefix(t *testing.T) { name := "/tmp/rocksdb" rocksdbKV, err := rocksdbkv.NewRocksdbKV(name) if err != nil { panic(err) } defer rocksdbKV.Close() // Need to call RemoveWithPrefix defer rocksdbKV.RemoveWithPrefix("") err = rocksdbKV.Save("abcd", "123") assert.Nil(t, err) err = rocksdbKV...
explode_data.jsonl/6342
{ "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, 49, 25183, 1999, 82707, 1088, 5060, 1155, 353, 8840, 836, 8, 341, 11609, 1669, 3521, 5173, 14, 299, 14553, 1999, 698, 197, 299, 14553, 1999, 82707, 11, 1848, 1669, 23035, 1999, 43408, 7121, 49, 25183, 1999, 82707, 3153, 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...
2
func TestContextWithOwner(t *testing.T) { ctx := context.Background() _, ok := OwnerFromContext(ctx) require.False(t, ok) ctx = ContextWithOwner(ctx, "real_owner") owner, ok := OwnerFromContext(ctx) require.True(t, ok) require.Equal(t, models.Owner("real_owner"), owner) }
explode_data.jsonl/69047
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 101 }
[ 2830, 3393, 1972, 2354, 13801, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 197, 6878, 5394, 1669, 25833, 3830, 1972, 7502, 340, 17957, 50757, 1155, 11, 5394, 692, 20985, 284, 9608, 2354, 13801, 7502, 11, 330, 7951, 2902...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAgent_UpdateCheck(t *testing.T) { t.Parallel() a := NewTestAgent(t.Name(), "") defer a.Shutdown() chk := &structs.HealthCheck{Name: "test", CheckID: "test"} chkType := &structs.CheckType{TTL: 15 * time.Second} if err := a.AddCheck(chk, chkType, false, ""); err != nil { t.Fatalf("err: %v", err) } ca...
explode_data.jsonl/33623
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 978 }
[ 2830, 3393, 16810, 47393, 3973, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 11323, 1669, 1532, 2271, 16810, 1155, 2967, 1507, 14676, 16867, 264, 10849, 18452, 2822, 23049, 74, 1669, 609, 1235, 82, 74980, 3973, 63121, 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...
6
func TestQuote(t *testing.T) { api := API{} api.SetToken(apiToken) symbol := "GME" quote, err := api.Quote(symbol) if err != nil { t.Logf("API.Quote(\"%s\") failed: %v", symbol, err) } fmt.Println(quote) }
explode_data.jsonl/49288
{ "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, 19466, 1155, 353, 8840, 836, 8, 341, 54299, 1669, 5333, 16094, 54299, 4202, 3323, 24827, 3323, 340, 1903, 4001, 1669, 330, 38, 7462, 698, 197, 2949, 11, 1848, 1669, 6330, 13, 19466, 40723, 340, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGoroutineLeaks(t *testing.T) { t.Skip() sc, _, cleanup := createContexts(t) defer cleanup() _, _, _, stopper := createNamespace(t, sc) defer func() { sc.Infof("%d goroutines:", runtime.NumGoroutine()) }() defer stopper() defer func() { sc.Infof("%d goroutines:", runtime.NumGoroutine()) }() //pan...
explode_data.jsonl/8231
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 38, 269, 14159, 52387, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 741, 29928, 11, 8358, 21290, 1669, 83674, 82, 1155, 340, 16867, 21290, 2822, 197, 6878, 8358, 8358, 2936, 712, 1669, 1855, 22699, 1155, 11, 1136, 340, 16867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAnswer(t *testing.T) { head := utils.MakeListNode(1,2,3,4,5) del := head for del.Next != nil && del.Next.Next != nil { del = del.Next } deleteNode(del) t.Logf("answer = %s", head) }
explode_data.jsonl/78917
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 16141, 1155, 353, 8840, 836, 8, 341, 46081, 1669, 12439, 50133, 58707, 7, 16, 11, 17, 11, 18, 11, 19, 11, 20, 340, 69509, 1669, 1968, 198, 2023, 1594, 18501, 961, 2092, 1009, 1594, 18501, 18501, 961, 2092, 341, 197, 6950...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPlanMigration_upApplyOne(t *testing.T) { db := dbtest.OpenWithoutMigrations(t) session, err := dbpkg.Open(db.DSN) require.NoError(t, err) migrations, err := PlanMigration(session, migrate.Up, 1) require.NoError(t, err) wantMigrations := []string{"20200309000000-initial-1.sql"} assert.Equal(t, wantMigra...
explode_data.jsonl/39317
{ "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, 20485, 20168, 8237, 28497, 3966, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 2927, 1944, 12953, 26040, 44, 17824, 1155, 340, 25054, 11, 1848, 1669, 2927, 30069, 12953, 9791, 909, 18966, 340, 17957, 35699, 1155, 11, 1848, 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 TestReactorNoBroadcastToSender(t *testing.T) { config := cfg.TestConfig() const N = 2 reactors := makeAndConnectStorageReactors(config, N) defer func() { for _, r := range reactors { r.Stop() } }() // send a bunch of txs to the first reactor's storage, claiming it came from peer // ensure peer gets ...
explode_data.jsonl/22984
{ "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, 693, 5621, 2753, 43362, 1249, 20381, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 13286, 8787, 2648, 741, 4777, 451, 284, 220, 17, 198, 197, 2934, 1087, 1669, 1281, 3036, 14611, 5793, 14799, 1087, 8754, 11, 451, 340, 16867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestBuildTrafficConfigurationNoNameRevision(t *testing.T) { tts := v1.TrafficTarget{ RevisionName: goodNewRev.Name, Percent: ptr.Int64(100), } expected := &Config{ Targets: map[string]RevisionTargets{ DefaultTarget: {{ TrafficTarget: v1.TrafficTarget{ RevisionName: goodNewRev.Name, ...
explode_data.jsonl/37872
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 554 }
[ 2830, 3393, 11066, 87229, 7688, 2753, 675, 33602, 1155, 353, 8840, 836, 8, 341, 3244, 2576, 1669, 348, 16, 836, 956, 20615, 6397, 515, 197, 197, 33602, 675, 25, 1661, 3564, 36184, 2967, 345, 197, 197, 32010, 25, 414, 10087, 7371, 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 TestExec(t *testing.T) { kubectlPath, err := os_exec.LookPath("kubectl") if err != nil { t.Skip(err) } ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second) var output []byte output, err = exec.New().CommandContext( ctx, kubectlPath, "--help", ).CombinedOutput() cancel() out := ...
explode_data.jsonl/67827
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 391 }
[ 2830, 3393, 10216, 1155, 353, 8840, 836, 8, 341, 16463, 53380, 1820, 11, 1848, 1669, 2643, 18430, 36851, 1820, 445, 79971, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 57776, 3964, 340, 197, 532, 20985, 11, 9121, 1669, 2266, 26124, 7636,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_skip_map_of_list(t *testing.T) { should := require.New(t) for _, c := range test.Combinations { buf, proto := c.CreateProtocol() proto.WriteMapBegin(thrift.I64, thrift.LIST, 1) proto.WriteI64(1) proto.WriteListBegin(thrift.I64, 1) proto.WriteI64(1) proto.WriteListEnd() proto.WriteMapEnd() it...
explode_data.jsonl/29856
{ "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, 44830, 5376, 3575, 2019, 1155, 353, 8840, 836, 8, 341, 197, 5445, 1669, 1373, 7121, 1155, 340, 2023, 8358, 272, 1669, 2088, 1273, 727, 2855, 12634, 341, 197, 26398, 11, 18433, 1669, 272, 7251, 20689, 741, 197, 197, 15110, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAliveHandler(t *testing.T) { da := &mocks.App{} apih := makeMockApiHandler(t, da, nil) req, _ := http.NewRequest("GET", "http://localhost"+uriAlive, nil) recorded := test.RunRequest(t, apih, req) recorded.CodeIs(http.StatusNoContent) }
explode_data.jsonl/624
{ "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, 32637, 3050, 1155, 353, 8840, 836, 8, 341, 2698, 64, 1669, 609, 16712, 82, 5105, 16094, 54299, 71, 1669, 1281, 11571, 6563, 3050, 1155, 11, 2994, 11, 2092, 340, 24395, 11, 716, 1669, 1758, 75274, 445, 3806, 497, 330, 1254,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadOnlyLogTX_Rollback(t *testing.T) { ctx := context.Background() cleanTestDB(t, db) s := NewLogStorage(db, nil) tx, err := s.Snapshot(ctx) if err != nil { t.Fatalf("Snapshot() = (_, %v), want = (_, nil)", err) } defer tx.Close() // nolint: errcheck if _, err := tx.GetActiveLogIDs(ctx); err != n...
explode_data.jsonl/30705
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 223 }
[ 2830, 3393, 20914, 2201, 22867, 2568, 965, 1419, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 1444, 2675, 2271, 3506, 1155, 11, 2927, 692, 1903, 1669, 1532, 2201, 5793, 9791, 11, 2092, 692, 46237, 11, 1848, 1669, 274, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetZoneByProviderID(t *testing.T) { c := &Cloud{} _, err := c.GetZoneByProviderID(context.Background(), "ibm") if nil == err { t.Fatalf("GetZoneByProviderID did not return an error") } }
explode_data.jsonl/77150
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 76 }
[ 2830, 3393, 1949, 15363, 1359, 5179, 915, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 609, 16055, 16094, 197, 6878, 1848, 1669, 272, 2234, 15363, 1359, 5179, 915, 5378, 19047, 1507, 330, 579, 76, 1138, 743, 2092, 621, 1848, 341, 197, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProcessExec(t *testing.T) { provider := StubAwsProvider( cycleProcessListStackResources, cycleProcessDescribeStacks, cycleProcessListTasksByStack, cycleProcessListTasksByService1, cycleProcessListTasksByService2, cycleProcessListTasksByStarted, cycleProcessDescribeTasksAll, cycleProcessDescrib...
explode_data.jsonl/47782
{ "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, 7423, 10216, 1155, 353, 8840, 836, 8, 341, 197, 19979, 1669, 66611, 47359, 5179, 1006, 197, 1444, 5449, 7423, 852, 4336, 11277, 345, 197, 1444, 5449, 7423, 74785, 4336, 82, 345, 197, 1444, 5449, 7423, 852, 25449, 1359, 4336,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPatchScale(t *testing.T) { scaleClient, groupResources := fakeScaleClient(t) expectedScale := &autoscalingv1.Scale{ TypeMeta: metav1.TypeMeta{ Kind: "Scale", APIVersion: autoscalingv1.SchemeGroupVersion.String(), }, ObjectMeta: metav1.ObjectMeta{ Name: "foo", }, Spec: autoscalingv1.S...
explode_data.jsonl/77670
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 755 }
[ 2830, 3393, 43622, 6947, 1155, 353, 8840, 836, 8, 341, 70780, 2959, 11, 1874, 11277, 1669, 12418, 6947, 2959, 1155, 340, 42400, 6947, 1669, 609, 79301, 81552, 85, 16, 51832, 515, 197, 27725, 12175, 25, 77520, 16, 10184, 12175, 515, 298,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestUpdatesDockerSecret(t *testing.T) { t.Parallel() existingNamespace := &core_v1.Namespace{ TypeMeta: meta_v1.TypeMeta{ Kind: k8s.NamespaceKind, APIVersion: core_v1.SchemeGroupVersion.String(), }, ObjectMeta: meta_v1.ObjectMeta{ Name: namespaceName, Labels: map[string]string{ voyag...
explode_data.jsonl/4279
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 931 }
[ 2830, 3393, 37091, 35, 13659, 19773, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 8122, 11083, 22699, 1669, 609, 2153, 2273, 16, 46011, 515, 197, 27725, 12175, 25, 8823, 2273, 16, 10184, 12175, 515, 298, 197, 10629, 25, 981, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_buildAnnotations_From_CreateRequest(t *testing.T) { request := types.FunctionDeployment{ Annotations: &map[string]string{ "date-created": "Wed 25 Jul 21:26:22 BST 2018", "foo": "bar", }, } annotations := buildAnnotations(request) if len(annotations) != 3 { t.Errorf("want: %d annotat...
explode_data.jsonl/1071
{ "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, 20801, 21418, 53157, 34325, 1900, 1155, 353, 8840, 836, 8, 341, 23555, 1669, 4494, 30547, 75286, 515, 197, 197, 21418, 25, 609, 2186, 14032, 30953, 515, 298, 197, 1, 1028, 70957, 788, 330, 26503, 220, 17, 20, 10057, 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...
4
func TestClaimShard(t *testing.T) { svc := &mockDynamoDB{tableExist: true, item: map[string]*dynamodb.AttributeValue{}} kclConfig := cfg.NewKinesisClientLibConfig("appName", "test", "us-west-2", "abc"). WithInitialPositionInStream(cfg.LATEST). WithMaxRecords(10). WithMaxLeasesForWorker(1). WithShardSyncInterv...
explode_data.jsonl/9847
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 749 }
[ 2830, 3393, 45544, 2016, 567, 1155, 353, 8840, 836, 8, 341, 1903, 7362, 1669, 609, 16712, 35, 85608, 3506, 90, 2005, 25613, 25, 830, 11, 1509, 25, 2415, 14032, 8465, 67, 83348, 33775, 1130, 6257, 532, 16463, 564, 2648, 1669, 13286, 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...
4
func TestDeQueue(t *testing.T) { queue := NewQueue() queue.EnQueue(1) queue.EnQueue(2) queue.EnQueue(3) queue.EnQueue(4) len1 := queue.Len() val1, err := queue.DeQueue() if err != nil { t.Fatal("dequeue error:", err) } len2 := queue.Len() val2, err := queue.DeQueue() if err != nil { t.Fatal("dequeue ...
explode_data.jsonl/55229
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 237 }
[ 2830, 3393, 1912, 7554, 1155, 353, 8840, 836, 8, 341, 46993, 1669, 1532, 7554, 2822, 46993, 22834, 7554, 7, 16, 340, 46993, 22834, 7554, 7, 17, 340, 46993, 22834, 7554, 7, 18, 340, 46993, 22834, 7554, 7, 19, 692, 33111, 16, 1669, 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...
8
func TestBasicSets(t *testing.T) { b := NewOptions( 999, OptionSetWidth(888), OptionSetRenderBlankState(true), OptionSetWriter(ioutil.Discard), // suppressing output for this test ) tc := b.config if tc.max != 999 { t.Errorf("Expected %s to be %d, instead I got %d\n%+v", "max", 999, tc.max, b) } if ...
explode_data.jsonl/52762
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 243 }
[ 2830, 3393, 15944, 30175, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 1532, 3798, 1006, 197, 197, 24, 24, 24, 345, 197, 197, 5341, 1649, 3327, 7, 23, 23, 23, 1326, 197, 197, 5341, 1649, 6750, 22770, 1397, 3715, 18459, 197, 197, 5341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_Handler_PipeInPipeGroupReturnsNilValue_ExpectAbortPipeGroupExecution(t *testing.T) { var returnsNilPipe Pipe = func(v reflect.Value, args ...interface{}) (*reflect.Value, error) { return nil, nil } executed := false var pipeWhatHaveToNotExecuteAfter Pipe = func(v reflect.Value, args ...interface{}) (*r...
explode_data.jsonl/45776
{ "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, 41879, 1088, 3444, 641, 34077, 2808, 16446, 19064, 1130, 62, 17536, 85891, 34077, 2808, 20294, 1155, 353, 8840, 836, 8, 341, 2405, 4675, 19064, 34077, 27805, 284, 2915, 3747, 8708, 6167, 11, 2827, 2503, 4970, 28875, 4609, 3491...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEtcdWatchEndpointsBadSelector(t *testing.T) { ctx := api.NewContext() fakeClient := tools.NewFakeEtcdClient(t) registry := NewTestEtcdRegistry(fakeClient) _, err := registry.WatchEndpoints( ctx, labels.Everything(), labels.SelectorFromSet(labels.Set{"Field.Selector": "foo"}), "", ) if err == nil ...
explode_data.jsonl/8178
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 236 }
[ 2830, 3393, 31860, 4385, 14247, 80786, 17082, 5877, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 6330, 7121, 1972, 741, 1166, 726, 2959, 1669, 7375, 7121, 52317, 31860, 4385, 2959, 1155, 340, 197, 29172, 1669, 1532, 2271, 31860, 4385, 15603...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCustomPkg(t *testing.T) { runTest(t, []string{ "github.com/sagernet/gomobile/bind/testdata/testpkg", }, "org.golang.custompkg", "CustomPkgTest") }
explode_data.jsonl/16768
{ "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, 10268, 47, 7351, 1155, 353, 8840, 836, 8, 341, 56742, 2271, 1155, 11, 3056, 917, 515, 197, 197, 9749, 905, 2687, 351, 13845, 4846, 316, 3372, 84480, 12697, 691, 12697, 30069, 756, 197, 2137, 330, 1775, 1302, 37287, 24268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNamedValueChecker(t *testing.T) { Register("NamedValueCheck", &nvcDriver{}) db, err := Open("NamedValueCheck", "") if err != nil { t.Fatal(err) } defer db.Close() ctx, cancel := context.WithCancel(context.Background()) defer cancel() _, err = db.ExecContext(ctx, "WIPE") if err != nil { t.Fatal("...
explode_data.jsonl/16032
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 544 }
[ 2830, 3393, 15810, 1130, 35188, 1155, 353, 8840, 836, 8, 341, 79096, 445, 15810, 1130, 3973, 497, 609, 77, 7362, 11349, 37790, 20939, 11, 1848, 1669, 5264, 445, 15810, 1130, 3973, 497, 14676, 743, 1848, 961, 2092, 341, 197, 3244, 26133,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckPkScriptStandard(t *testing.T) { var pubKeys [][]byte for i := 0; i < 4; i++ { pk, err := btcec.NewPrivateKey(btcec.S256()) if err != nil { t.Fatalf("TestCheckPkScriptStandard NewPrivateKey failed: %v", err) return } pubKeys = append(pubKeys, pk.PubKey().SerializeCompressed()) } tes...
explode_data.jsonl/1116
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1305 }
[ 2830, 3393, 3973, 58415, 5910, 19781, 1155, 353, 8840, 836, 8, 341, 2405, 6675, 8850, 52931, 3782, 198, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 19, 26, 600, 1027, 341, 197, 3223, 74, 11, 1848, 1669, 19592, 68955, 7121, 75981, 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...
9
func TestKeyExistsCheck(t *testing.T) { store, clean := createMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("drop table if exists chk") tk.MustExec("create table chk (k int primary key)") tk.MustExec("insert chk values (1)") tk.MustExec("delete from c...
explode_data.jsonl/12455
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 277 }
[ 2830, 3393, 1592, 15575, 3973, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1855, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50463, 10216,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadPlainFLOAT(t *testing.T) { testData := [][]interface{}{ {float32(0), float32(1), float32(2)}, {float32(0), float32(0.1), float32(0.2)}, } for _, data := range testData { res, _ := ReadPlainFLOAT(bytes.NewReader(WritePlainFLOAT(data)), uint64(len(data))) if fmt.Sprintf("%v", data) != fmt.Sprintf...
explode_data.jsonl/23897
{ "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, 4418, 26982, 50915, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 1669, 52931, 4970, 67066, 197, 197, 90, 3649, 18, 17, 7, 15, 701, 2224, 18, 17, 7, 16, 701, 2224, 18, 17, 7, 17, 39781, 197, 197, 90, 3649, 18, 17, 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...
3
func TestCommit(t *testing.T) { eng := NewTestEngine(t) defer mkDaemonFromEngine(eng, t).Nuke() config, _, _, err := runconfig.Parse([]string{unitTestImageID, "/bin/cat"}, nil) if err != nil { t.Fatal(err) } id := createTestContainer(eng, config, t) job := eng.Job("commit", id) job.Setenv("repo", "testrepo...
explode_data.jsonl/1591
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 185 }
[ 2830, 3393, 33441, 1155, 353, 8840, 836, 8, 341, 197, 826, 1669, 1532, 2271, 4571, 1155, 340, 16867, 23789, 89177, 3830, 4571, 7, 826, 11, 259, 568, 45, 10430, 2822, 25873, 11, 8358, 8358, 1848, 1669, 1598, 1676, 8937, 10556, 917, 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 TestNewUserRedirect(t *testing.T) { // redirect to a completely new name assert.NoError(t, PrepareTestDatabase()) user := AssertExistsAndLoadBean(t, &User{ID: 1}).(*User) assert.NoError(t, newUserRedirect(x, user.ID, user.Name, "newusername")) AssertExistsAndLoadBean(t, &UserRedirect{ LowerName: user...
explode_data.jsonl/41090
{ "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, 3564, 1474, 17725, 1155, 353, 8840, 836, 8, 341, 197, 322, 6423, 311, 264, 6587, 501, 829, 198, 6948, 35699, 1155, 11, 31166, 2271, 5988, 12367, 19060, 1669, 5319, 15575, 3036, 5879, 10437, 1155, 11, 609, 1474, 90, 915, 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 TestCluster_confirmNodeDownDown(t *testing.T) { uri := URI{} uri.Scheme = "http" uri.Host = "DoesntMatter" uri.Port = 6666 if !confirmNodeDown(uri, logger.NewVerboseLogger(os.Stdout)) { t.Errorf("expected node to be down") } }
explode_data.jsonl/59888
{ "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, 28678, 23800, 1955, 4454, 4454, 1155, 353, 8840, 836, 8, 341, 197, 6070, 1669, 16020, 16094, 197, 6070, 92719, 284, 330, 1254, 698, 197, 6070, 29840, 284, 330, 21468, 406, 44, 1650, 698, 197, 6070, 43013, 284, 220, 21, 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...
2
func TestNIST411_Success(t *testing.T) { registry := framework.RegistrySingleton() check := registry.Lookup(standardID) require.NotNil(t, check) policies := getPolicies(t, cvssPolicyEnabledAndEnforced, buildPolicyEnforced) mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() data := complianceMocks.New...
explode_data.jsonl/70940
{ "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, 45, 3846, 19, 16, 16, 87161, 1155, 353, 8840, 836, 8, 341, 197, 29172, 1669, 12626, 89142, 25915, 741, 25157, 1669, 19424, 79261, 7, 20270, 915, 340, 17957, 93882, 1155, 11, 1779, 692, 3223, 42038, 1669, 57720, 42038, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAttributeMap_ForEach_WithNils(t *testing.T) { rawMap := map[string]AttributeValue{ "k_string": NewAttributeValueString("123"), "k_int": NewAttributeValueInt(123), "k_double": NewAttributeValueDouble(1.23), "k_bool": NewAttributeValueBool(true), "k_null": NewAttributeValueNull(), "k_null2": ...
explode_data.jsonl/38200
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 389 }
[ 2830, 3393, 3907, 2227, 84368, 4854, 62, 2354, 45, 8669, 1155, 353, 8840, 836, 8, 341, 76559, 2227, 1669, 2415, 14032, 60, 78554, 515, 197, 197, 62911, 3904, 788, 1532, 78554, 703, 445, 16, 17, 18, 4461, 197, 197, 62911, 4042, 788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQueryInfo(t *testing.T) { ctx := context.Background() c, rollback := makeConnectionAuth(t) defer rollback() infos, err := c.QueryInfo(ctx) if err != nil { t.Log("Server doesn't support querying info") return } if _, ok := infos["swift"]; !ok { t.Fatal("No 'swift' section found in configuration") ...
explode_data.jsonl/12719
{ "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, 2859, 1731, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1444, 11, 60414, 1669, 1281, 4526, 5087, 1155, 340, 16867, 60414, 741, 197, 55965, 11, 1848, 1669, 272, 15685, 1731, 7502, 340, 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...
3
func TestCheckOutputProgramHash(t *testing.T) { programHash := common.Uint168{} // empty program hash should pass assert.NoError(t, checkOutputProgramHash(88813, programHash)) // prefix standard program hash should pass programHash[0] = uint8(contract.PrefixStandard) assert.NoError(t, checkOutputProgramHash(888...
explode_data.jsonl/5225
{ "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, 3973, 5097, 10690, 6370, 1155, 353, 8840, 836, 8, 341, 197, 14906, 6370, 1669, 4185, 71869, 16, 21, 23, 31483, 197, 322, 4287, 2025, 5175, 1265, 1494, 198, 6948, 35699, 1155, 11, 1779, 5097, 10690, 6370, 7, 23, 23, 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...
1
func TestRemoveAttribute(t *testing.T) { t.Parallel() tests := []struct { sel string by QueryOption attr string }{ {`/html/body/img`, BySearch, "alt"}, {`img`, ByQueryAll, "alt"}, {`img`, ByQuery, "alt"}, {`#icon-github`, ByID, "alt"}, {`document.querySelector('#icon-github')`, ByJSPath, "alt"}, ...
explode_data.jsonl/59480
{ "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, 13021, 3907, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 1903, 301, 220, 914, 198, 197, 197, 1694, 256, 11361, 5341, 198, 197, 60943, 914, 198, 197, 59403, 197, 197, 90, 63, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMakeXRegistryConfigHeader(t *testing.T) { for _, tc := range []struct { name string fileContents string username, password string shouldErr bool expectedContents string }{ { name: "no data", fileContents: "", username: "", passwor...
explode_data.jsonl/33432
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1039 }
[ 2830, 3393, 8078, 55, 15603, 2648, 4047, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 11609, 2290, 914, 198, 197, 17661, 14803, 981, 914, 198, 197, 72358, 11, 3552, 914, 198, 197, 197, 5445, 7747,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func Test_unmarshal_anonymous_struct_invalid(t *testing.T) { should := require.New(t) t0 := struct { Field1 string }{} cfg := jsoniter.ConfigCompatibleWithStandardLibrary err := cfg.UnmarshalFromString(`{"Field1":`, &t0) should.NotNil(err) should.NotContains(err.Error(), reflect.TypeOf(t0).String()) cfgCase...
explode_data.jsonl/60993
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2217 }
[ 2830, 3393, 4907, 27121, 12008, 9757, 15126, 31433, 1155, 353, 8840, 836, 8, 341, 197, 5445, 1669, 1373, 7121, 1155, 340, 3244, 15, 1669, 2036, 341, 197, 94478, 16, 914, 198, 197, 15170, 630, 50286, 1669, 2951, 2015, 10753, 29161, 2354,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildFlyteWorkflow_withInputs(t *testing.T) { w := createSampleMockWorkflow() startNode := w.GetNodes()[common.StartNodeID].(*mockNode) vars := []*core.Variable{ { Type: &core.LiteralType{Type: &core.LiteralType_Simple{Simple: core.SimpleType_INTEGER}}, }, { Type: &core.LiteralType{Type: &core....
explode_data.jsonl/26896
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 781 }
[ 2830, 3393, 11066, 53000, 665, 62768, 6615, 31946, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 1855, 17571, 11571, 62768, 2822, 21375, 1955, 1669, 289, 2234, 12288, 10116, 5464, 12101, 1955, 915, 936, 4071, 16712, 1955, 340, 2405, 82, 1669,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPrivateActivityYesHeatmapVisibleForUserItselfAtProfile(t *testing.T) { defer prepareTestEnv(t)() testPrivateActivityDoSomethingForActionEntries(t) testPrivateActivityHelperEnablePrivateActivity(t) session := loginUser(t, privateActivityTestUser) visible := testPrivateActivityHelperHasVisibleProfileHeatma...
explode_data.jsonl/51659
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 16787, 4052, 9454, 61306, 2186, 5715, 2461, 1474, 2132, 721, 1655, 8526, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSimpleFindLimit1_split(t *testing.T) { if testing.Verbose() { logp.LogInit(logp.LOG_DEBUG, "", false, true, []string{"mongodb", "mongodbdetailed"}) } mongodb := mongodbModForTests() mongodb.sendRequest = true mongodb.sendResponse = true // request and response from tests/pcaps/mongo_one_row.pcap req...
explode_data.jsonl/35542
{ "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, 16374, 9885, 16527, 16, 17052, 1155, 353, 8840, 836, 8, 341, 743, 7497, 42505, 8297, 368, 341, 197, 6725, 79, 5247, 3803, 12531, 79, 36202, 11139, 11, 7342, 895, 11, 830, 11, 3056, 917, 4913, 37197, 497, 330, 71155, 347, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSwitchFallthrough(t *testing.T) { gopClTest(t, `v := "Hello" switch v { case "Hello": println(v) fallthrough case "hi": println(v) fallthrough default: println(v) } `, `package main import fmt "fmt" func main() { v := "Hello" switch v { case "Hello": fmt.Println(v) fallthrough case "hi": fmt....
explode_data.jsonl/73677
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 16837, 49772, 19742, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 1565, 85, 1669, 330, 9707, 698, 17338, 348, 341, 5638, 330, 9707, 4660, 81168, 3747, 340, 1166, 541, 19742, 198, 5638, 330, 6023, 4660, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHistogramDataPointSlice_MoveAndAppendTo(t *testing.T) { // Test MoveAndAppendTo to empty expectedSlice := generateTestHistogramDataPointSlice() dest := NewHistogramDataPointSlice() src := generateTestHistogramDataPointSlice() src.MoveAndAppendTo(dest) assert.EqualValues(t, generateTestHistogramDataPointS...
explode_data.jsonl/19544
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 356 }
[ 2830, 3393, 77210, 1043, 2609, 33236, 66352, 3036, 23877, 1249, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 14561, 3036, 23877, 1249, 311, 4287, 198, 42400, 33236, 1669, 6923, 2271, 77210, 1043, 2609, 33236, 741, 49616, 1669, 1532, 7721...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetIssueWatch(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) _, exists, err := GetIssueWatch(9, 1) assert.True(t, exists) assert.NoError(t, err) iw, exists, err := GetIssueWatch(2, 2) assert.True(t, exists) assert.NoError(t, err) assert.False(t, iw.IsWatching) _, exists, err = Ge...
explode_data.jsonl/11891
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 159 }
[ 2830, 3393, 1949, 42006, 14247, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 19905, 28770, 3380, 2271, 5988, 12367, 197, 6878, 6724, 11, 1848, 1669, 2126, 42006, 14247, 7, 24, 11, 220, 16, 340, 6948, 32443, 1155, 11, 6724, 340...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCloseClientConnectionOnIdleServer(t *testing.T) { clientConn, serverConn := localPipe(t) client := Client(clientConn, testConfig.Clone()) go func() { var b [1]byte serverConn.Read(b[:]) client.Close() }() client.SetWriteDeadline(time.Now().Add(time.Minute)) err := client.Handshake() if err != nil ...
explode_data.jsonl/27735
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 198 }
[ 2830, 3393, 7925, 2959, 4526, 1925, 41370, 5475, 1155, 353, 8840, 836, 8, 341, 25291, 9701, 11, 3538, 9701, 1669, 2205, 34077, 1155, 340, 25291, 1669, 8423, 12805, 9701, 11, 1273, 2648, 64463, 2398, 30680, 2915, 368, 341, 197, 2405, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSubscribeDuplicateKeys(t *testing.T) { ctx := context.Background() s := pubsub.NewServer() s.SetLogger(log.TestingLogger()) require.NoError(t, s.Start()) defer s.Stop() testCases := []struct { query string expected interface{} }{ { "withdraw.rewards='17'", "Iceman", }, { "withdraw...
explode_data.jsonl/22057
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 444 }
[ 2830, 3393, 28573, 53979, 8850, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1903, 1669, 6675, 1966, 7121, 5475, 741, 1903, 4202, 7395, 12531, 8787, 287, 7395, 2398, 17957, 35699, 1155, 11, 274, 12101, 2398, 16867, 274, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConvertToYAML(t *testing.T) { object := map[string]int{"a":2} _, err := ConvertToYAML(&object) if err != nil { t.Errorf("ConvertToYAML should have been able to convert yaml:\n%s", err) } }
explode_data.jsonl/52976
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 3393, 12012, 1249, 56, 31102, 1155, 353, 8840, 836, 8, 341, 220, 1633, 1669, 2415, 14032, 63025, 4913, 64, 788, 17, 630, 220, 8358, 1848, 1669, 7169, 1249, 56, 31102, 2099, 1700, 340, 220, 421, 1848, 961, 2092, 341, 262, 259, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateRun_OverrideParametersError(t *testing.T) { store := NewFakeClientManagerOrFatal(util.NewFakeTimeForEpoch()) defer store.Close() manager := NewResourceManager(store) apiRun := &api.Run{ Name: "run1", PipelineSpec: &api.PipelineSpec{ WorkflowManifest: testWorkflow.ToStringForStore(), Paramet...
explode_data.jsonl/28360
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 197 }
[ 2830, 3393, 4021, 6727, 62, 2177, 9706, 1454, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 1532, 52317, 2959, 2043, 2195, 62396, 67811, 7121, 52317, 1462, 2461, 44338, 2398, 16867, 3553, 10421, 741, 92272, 1669, 1532, 32498, 31200, 340, 542...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExternalWithWildcard(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` // Should match import "/assets/images/test.jpg"; import "/dir/x/file.gif"; import "/dir//file.gif"; import "./file.png"; // Should not match import "/sassets...
explode_data.jsonl/38533
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 391 }
[ 2830, 3393, 25913, 2354, 92988, 1155, 353, 8840, 836, 8, 341, 11940, 57239, 25952, 33, 1241, 832, 1155, 11, 51450, 515, 197, 74075, 25, 2415, 14032, 30953, 515, 298, 197, 3115, 4085, 2857, 788, 22074, 571, 197, 322, 12260, 2432, 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 TestRolesCRUD(t *testing.T) { clients.RequireAdmin(t) client, err := clients.NewIdentityV3Client() th.AssertNoErr(t, err) createOpts := roles.CreateOpts{ Name: "testrole", DomainID: "default", Extra: map[string]interface{}{ "description": "test role description", }, } // Create Role in the ...
explode_data.jsonl/57723
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 507 }
[ 2830, 3393, 25116, 8973, 4656, 1155, 353, 8840, 836, 8, 341, 197, 31869, 81288, 7210, 1155, 692, 25291, 11, 1848, 1669, 8239, 7121, 18558, 53, 18, 2959, 741, 70479, 11711, 2753, 7747, 1155, 11, 1848, 692, 39263, 43451, 1669, 12783, 7251...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetRootCert(t *testing.T) { assert := tassert.New(t) mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() // This is used to dynamically set expectations for each test in the list of table driven tests type dynamicMock struct { mockCatalog *catalog.MockMeshCataloger mockConfigurator *conf...
explode_data.jsonl/56035
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1281 }
[ 2830, 3393, 1949, 8439, 36934, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 259, 2207, 7121, 1155, 340, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 7860, 15001, 991, 18176, 2822, 197, 322, 1096, 374, 1483, 311, 42011,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetBaseURLWithSuffix(t *testing.T) { assert := assert.New(t) d, err := NewClient("localhost:8082") assert.Nil(err, "error should be nil") assert.NotNil(d, "client should not be nil") wantBaseURL, _ := url.ParseRequestURI("/") err = d.setBaseURL("") assert.Nil(err, "error should be nil") assert.Equal(...
explode_data.jsonl/28556
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 141 }
[ 2830, 3393, 1649, 3978, 3144, 2354, 40177, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 2698, 11, 1848, 1669, 1532, 2959, 445, 8301, 25, 23, 15, 23, 17, 1138, 6948, 59678, 3964, 11, 330, 841, 1265, 387, 2092, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPublishWithSourceIdInPayloadAndHeaderAndPayloadOneIsGivenPrecedence(t *testing.T) { subject := buildDefaultTestSubject() requestPayload := buildDefaultTestPayload() sub, _ := sc.Subscribe(subject, func(m *stan.Msg) { msg = m }) responseBody, statusCode := performPublishRequestWithHeaders(t, publishServe...
explode_data.jsonl/74408
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 148 }
[ 2830, 3393, 50145, 2354, 3608, 764, 641, 29683, 3036, 4047, 3036, 29683, 3966, 3872, 22043, 4703, 1998, 763, 1155, 353, 8840, 836, 8, 341, 28624, 583, 1669, 1936, 3675, 2271, 13019, 741, 23555, 29683, 1669, 1936, 3675, 2271, 29683, 741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSendChannelInvite(t *testing.T) { maxWait := 5 * time.Second s := NewTestServer() go s.Start() rtm := s.GetTestRTMInstance() go rtm.ManageConnection() evChan := make(chan (slack.Channel), 1) go func() { for msg := range rtm.IncomingEvents { switch ev := msg.Data.(type) { case *slack.ChannelJoine...
explode_data.jsonl/7550
{ "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, 11505, 9629, 93540, 1155, 353, 8840, 836, 8, 341, 22543, 14190, 1669, 220, 20, 353, 882, 32435, 198, 1903, 1669, 1532, 2271, 5475, 741, 30680, 274, 12101, 741, 55060, 76, 1669, 274, 2234, 2271, 5350, 44, 2523, 741, 30680, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestToLogEntryPayload(t *testing.T) { var logger Logger for _, test := range []struct { in interface{} wantText string wantStruct *structpb.Struct }{ { in: "string", wantText: "string", }, { in: map[string]interface{}{"a": 1, "b": true}, wantStruct: &structpb.Struct{ ...
explode_data.jsonl/33206
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 584 }
[ 2830, 3393, 1249, 2201, 5874, 29683, 1155, 353, 8840, 836, 8, 341, 2405, 5925, 9514, 198, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 17430, 260, 3749, 16094, 197, 50780, 1178, 256, 914, 198, 197, 50780, 9422, 353, 1235, 16650, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrintRecords(t *testing.T) { fakeIterator := "fake-iterator" cases := []struct { name string mockClient kinesisiface.KinesisAPI mockIsAggregated func(*kinesis.Record) bool mockDeaggregate func(*kinesis.Record) []*kinesis.Record expectAnyError bool expectedOutput string }{...
explode_data.jsonl/57243
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1131 }
[ 2830, 3393, 8994, 25876, 1155, 353, 8840, 836, 8, 341, 1166, 726, 11951, 1669, 330, 30570, 12, 6854, 1837, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 1797, 914, 198, 197, 77333, 2959, 981, 595, 82789, 52674, 11352, 82789, 7082, 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 TestDecode(t *testing.T) { dec, _ := decode("test-s-probelom-zhshshch") require.Equal(t, "тест с пробелом жшщ", dec) }
explode_data.jsonl/68566
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 32564, 1155, 353, 8840, 836, 8, 341, 197, 8169, 11, 716, 1669, 16895, 445, 1944, 1331, 9838, 9779, 316, 9141, 71, 927, 927, 331, 1138, 17957, 12808, 1155, 11, 330, 1792, 36177, 5409, 126963, 12121, 12228, 57217, 12150, 14144...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTrieDB_GetClientStats(t *testing.T) { a := assert.New(t) db := NewStore() tt := []struct { clientID string topic packets.Topic }{ {clientID: "id0", topic: packets.Topic{Name: "name0", Qos: packets.QOS_0}}, {clientID: "id0", topic: packets.Topic{Name: "name1", Qos: packets.QOS_1}}, {clientID: "...
explode_data.jsonl/80981
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 409 }
[ 2830, 3393, 51, 7231, 3506, 13614, 2959, 16635, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 2060, 7121, 1155, 340, 20939, 1669, 1532, 6093, 741, 3244, 83, 1669, 3056, 1235, 341, 197, 25291, 915, 914, 198, 197, 3244, 24810, 262, 27035, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTagDefault3(t *testing.T) { assert.NoError(t, PrepareEngine()) type DefaultStruct3 struct { Id int64 Name string `xorm:"default('myname')"` } assertSync(t, new(DefaultStruct3)) tables, err := testEngine.DBMetas() assert.NoError(t, err) var defaultVal string var isDefaultExist bool tableName ...
explode_data.jsonl/19212
{ "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, 5668, 3675, 18, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 31166, 4571, 12367, 13158, 7899, 9422, 18, 2036, 341, 197, 67211, 256, 526, 21, 19, 198, 197, 21297, 914, 1565, 87, 493, 2974, 2258, 492, 2408, 606, 86...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFuncState(t *testing.T) { //Reset streamList := []string{"text"} handleStream(false, streamList, t) //Data setup var tests = []ruleTest{ { name: `TestFuncStateRule1`, sql: `SELECT accumulateWordCount(slogan, " ") as wc FROM text`, r: [][]map[string]interface{}{ {{ "wc": float64(3), ...
explode_data.jsonl/47454
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 777 }
[ 2830, 3393, 9626, 1397, 1155, 353, 8840, 836, 8, 341, 197, 322, 14828, 198, 44440, 852, 1669, 3056, 917, 4913, 1318, 16707, 53822, 3027, 3576, 11, 4269, 852, 11, 259, 340, 197, 322, 1043, 6505, 198, 2405, 7032, 284, 3056, 12937, 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 TestTESTSPECLogonSort(t *testing.T) { recieved := testspec.TESTSPECLogon.Sort expected := []int{ testspec.BeginString8, testspec.BodyLength9, testspec.MsgType35, testspec.SenderCompID49, testspec.TargetCompID56, testspec.MsgSeqNum34, testspec.PossDupFlag43, testspec.PossResend97, testspec.Sendi...
explode_data.jsonl/38782
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 391 }
[ 2830, 3393, 10033, 56481, 2201, 263, 10231, 1155, 353, 8840, 836, 8, 341, 67904, 30977, 1669, 7032, 992, 73501, 56481, 2201, 263, 35976, 198, 42400, 1669, 3056, 396, 515, 197, 18185, 9535, 28467, 703, 23, 345, 197, 18185, 9535, 20934, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestWatchControllers(t *testing.T) { fakeWatch := watch.NewFake() c := &fake.Clientset{} c.AddWatchReactor("*", core.DefaultWatchReactor(fakeWatch, nil)) manager := NewReplicationManager(c, controller.NoResyncPeriodFunc, BurstReplicas, 0) manager.podStoreSynced = alwaysReady var testControllerSpec api.Repli...
explode_data.jsonl/37488
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 482 }
[ 2830, 3393, 14247, 14353, 1155, 353, 8840, 836, 8, 341, 1166, 726, 14247, 1669, 3736, 7121, 52317, 741, 1444, 1669, 609, 30570, 11716, 746, 16094, 1444, 1904, 14247, 693, 5621, 29592, 497, 6200, 13275, 14247, 693, 5621, 74138, 14247, 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...
4
func TestTemplateNoBasePlease(t *testing.T) { t.Parallel() b := newTestSitesBuilder(t).WithSimpleConfigFile() b.WithTemplates("_default/list.html", ` {{ define "main" }} Bonjour {{ end }} {{ printf "list" }} `) b.WithTemplates( "_default/single.html", ` {{ printf "single" }} {{ define "main" }} Bonj...
explode_data.jsonl/60653
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 217 }
[ 2830, 3393, 7275, 2753, 3978, 5501, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2233, 1669, 501, 2271, 93690, 3297, 1155, 568, 2354, 16374, 2648, 1703, 2822, 2233, 26124, 51195, 16975, 2258, 20936, 2564, 497, 22074, 197, 2979, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKeeperDB_Registries(t *testing.T) { t.Parallel() store, orm, cleanup := setupKeeperDB(t) defer cleanup() ethKeyStore := cltest.NewKeyStore(t, store.DB).Eth() cltest.MustInsertKeeperRegistry(t, store, ethKeyStore) cltest.MustInsertKeeperRegistry(t, store, ethKeyStore) existingRegistries, err := orm.Reg...
explode_data.jsonl/27006
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 154 }
[ 2830, 3393, 77233, 3506, 49384, 380, 4019, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 57279, 11, 67602, 11, 21290, 1669, 6505, 77233, 3506, 1155, 340, 16867, 21290, 741, 197, 769, 1592, 6093, 1669, 1185, 1944, 7121, 1592, 609...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShowStatsHealthy(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("drop table if exists t") tk.MustExec("create table t (a int)") tk.MustExec("create index idx on t(a)") tk.MustExec("analyze table t") tk.Mu...
explode_data.jsonl/38135
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 505 }
[ 2830, 3393, 7812, 16635, 96113, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50463, 10216,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestServer_Issue1301(t *testing.T) { log.SetOutput(ioutil.Discard) defer log.SetOutput(os.Stdout) gen, err := testAppGenerator(t, "../fixtures/enhancements/1301/swagger.yml", "custom producers") if assert.NoError(t, err) { app, err := gen.makeCodegenApp() if assert.NoError(t, err) { buf := bytes.NewBuff...
explode_data.jsonl/3790
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 652 }
[ 2830, 3393, 5475, 7959, 83890, 16, 18, 15, 16, 1155, 353, 8840, 836, 8, 341, 6725, 4202, 5097, 1956, 30158, 909, 47560, 340, 16867, 1487, 4202, 5097, 9638, 83225, 340, 82281, 11, 1848, 1669, 1273, 2164, 12561, 1155, 11, 7005, 45247, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetAccountInfo(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip() } _, err := f.GetAccountInfo(context.Background()) if err != nil { t.Error(err) } }
explode_data.jsonl/15164
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 1949, 7365, 1731, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 341, 197, 3244, 57776, 741, 197, 532, 197, 6878, 1848, 1669, 282, 2234, 7365, 1731, 5378, 19047, 2398, 743...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOr(t *testing.T) { bA1, _ := randBitArray(51) bA2, _ := randBitArray(31) bA3 := bA1.Or(bA2) if bA3.Bits != 51 { t.Error("Expected max bits") } if len(bA3.Elems) != len(bA1.Elems) { t.Error("Expected max elems length") } for i := 0; i < bA3.Bits; i++ { expected := bA1.GetIndex(i) || bA2.GetIndex...
explode_data.jsonl/77647
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 235 }
[ 2830, 3393, 2195, 1155, 353, 8840, 836, 8, 1476, 2233, 32, 16, 11, 716, 1669, 10382, 8344, 1857, 7, 20, 16, 340, 2233, 32, 17, 11, 716, 1669, 10382, 8344, 1857, 7, 18, 16, 340, 2233, 32, 18, 1669, 293, 32, 16, 90449, 1883, 32, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDatabaseEncoding(t *testing.T) { db := Database{ Name: "test", Username: "foobar", MaxDiskUsage: 100, } fixtArgs := `<database xsi:type="ns1:Db"> <name xsi:type="xsd:string">test</name> <username xsi:type="xsd:string">foobar</username> <maxDiskUsage xsi:type="xsd:int">100</maxDiskUsage...
explode_data.jsonl/35228
{ "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, 5988, 14690, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 9994, 515, 197, 21297, 25, 260, 330, 1944, 756, 197, 197, 11115, 25, 257, 330, 50267, 756, 197, 197, 5974, 47583, 14783, 25, 220, 16, 15, 15, 345, 197, 630, 1166, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCopyTokenCharData(t *testing.T) { data := []byte("same data") var tok1 Token = CharData(data) tok2 := CopyToken(tok1) if !reflect.DeepEqual(tok1, tok2) { t.Error("CopyToken(CharData) != CharData") } data[1] = 'o' if reflect.DeepEqual(tok1, tok2) { t.Error("CopyToken(CharData) uses same buffer.") } ...
explode_data.jsonl/48618
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 139 }
[ 2830, 3393, 12106, 3323, 4768, 1043, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 3056, 3782, 445, 24063, 821, 1138, 2405, 9628, 16, 9660, 284, 4864, 1043, 2592, 340, 3244, 562, 17, 1669, 14540, 3323, 66853, 16, 340, 743, 753, 34913, 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...
3
func TestOptions(t *testing.T) { opt, err := InitOptions() if err != nil { t.Error(err) } if opt.Port != "8090" { t.Errorf("Expected port to be 8090, got %v", opt.Port) } if !opt.Debug { t.Errorf("Expected debug to be true, got %t", opt.Debug) } }
explode_data.jsonl/10313
{ "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, 3798, 1155, 353, 8840, 836, 8, 972, 64838, 11, 1848, 1669, 15690, 3798, 3568, 743, 1848, 961, 2092, 972, 197, 3244, 6141, 3964, 1218, 197, 1771, 743, 3387, 43013, 961, 330, 23, 15, 24, 15, 1, 972, 197, 3244, 13080, 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...
4
func TestAdmin_Title(t *testing.T) { ts, srv, teardown := startupT(t) defer teardown() srv.DataService.TitleExtractor = service.NewTitleExtractor(http.Client{Timeout: time.Second}) tss := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.URL.String() == "/post1" { _, err ...
explode_data.jsonl/51823
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 698 }
[ 2830, 3393, 7210, 72001, 1155, 353, 8840, 836, 8, 341, 57441, 11, 43578, 11, 49304, 1669, 20567, 51, 1155, 340, 16867, 49304, 2822, 1903, 10553, 3336, 1860, 22967, 56118, 284, 2473, 7121, 3851, 56118, 19886, 11716, 90, 7636, 25, 882, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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