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 TestDeSerializeMapInterface(t *testing.T) { t.Skip("skipping TestDeSerializeInterfaces") //TODO:check make is required or not. //args := make([]map[string]interface{}, 3) args := []map[string]interface{}{} err := FromGOB64("Df+FAgEC/4YAAf+EAAAO/4MEAQL/hAABDAEQAAD/tP+GAAMDBmZpZWxkMQNpbnQEAgAUBmZpZWxkMgZzdHJpb...
explode_data.jsonl/30438
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 462 }
[ 2830, 3393, 1912, 15680, 2227, 5051, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 445, 4886, 5654, 3393, 1912, 15680, 41066, 5130, 197, 322, 14732, 25, 2028, 1281, 374, 2567, 476, 537, 624, 197, 322, 2116, 1669, 1281, 10556, 2186, 14032, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStrArray_UnmarshalValue(t *testing.T) { type V struct { Name string Array *garray.StrArray } // JSON gtest.C(t, func(t *gtest.T) { var v *V err := gconv.Struct(g.Map{ "name": "john", "array": []byte(`["1","2","3"]`), }, &v) t.Assert(err, nil) t.Assert(v.Name, "john") t.Assert(v.Arra...
explode_data.jsonl/53116
{ "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, 2580, 1857, 40687, 27121, 1130, 1155, 353, 8840, 836, 8, 341, 13158, 647, 2036, 341, 197, 21297, 220, 914, 198, 197, 58743, 353, 70, 1653, 27318, 1857, 198, 197, 532, 197, 322, 4718, 198, 3174, 1944, 727, 1155, 11, 2915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_RecoverPush(t *testing.T) { chain, mock33 := createBlockChain(t) ps := &bcMocks.PostService{} ps.On("PostData", mock.Anything, mock.Anything, mock.Anything).Return(nil) chain.push.postService = ps subscribe := new(types.PushSubscribeReq) subscribe.Name = "push-test" subscribe.URL = "http://localhost" ...
explode_data.jsonl/61731
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 655 }
[ 2830, 3393, 50693, 3688, 16644, 1155, 353, 8840, 836, 8, 341, 197, 8819, 11, 7860, 18, 18, 1669, 1855, 4713, 18837, 1155, 340, 35009, 1669, 609, 8904, 72577, 23442, 1860, 16094, 35009, 8071, 445, 4133, 1043, 497, 7860, 13311, 1596, 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 TestMarshalMap(t *testing.T) { s := &Point{ NHash: "n_hash", NName: "n_name", NGroup: "n_group", NOrigin: Point_manual, Node: &Point_Shadowsocksr{ Shadowsocksr: &Shadowsocksr{ Server: "server", }, }, } data, _ := protojson.MarshalOptions{UseProtoNames: true, EmitUnpopulated: true}.Ma...
explode_data.jsonl/34737
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 392 }
[ 2830, 3393, 55438, 2227, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 609, 2609, 515, 197, 18317, 6370, 25, 256, 330, 77, 8950, 756, 197, 18317, 675, 25, 256, 330, 77, 1269, 756, 197, 18317, 2808, 25, 220, 330, 77, 6288, 756, 197, 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...
5
func TestTransactionFetcherTimeoutTimerResets(t *testing.T) { testTransactionFetcherParallel(t, txFetcherTest{ init: func() *TxFetcher { return NewTxFetcher( func(common.Hash) bool { return false }, nil, func(string, []common.Hash) error { return nil }, ) }, steps: []interface{}{ doTxNotify{...
explode_data.jsonl/52220
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 591 }
[ 2830, 3393, 8070, 97492, 7636, 10105, 1061, 1415, 1155, 353, 8840, 836, 8, 341, 18185, 8070, 97492, 16547, 1155, 11, 259, 9770, 2995, 261, 2271, 515, 197, 28248, 25, 2915, 368, 353, 51, 9770, 2995, 261, 341, 298, 853, 1532, 51, 9770, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRepeatedCall(t *testing.T) { reporter, ctrl := createFixtures(t) subject := new(Subject) ctrl.RecordCall(subject, "FooMethod", "argument").Times(3) ctrl.Call(subject, "FooMethod", "argument") ctrl.Call(subject, "FooMethod", "argument") ctrl.Call(subject, "FooMethod", "argument") reporter.assertPass("Af...
explode_data.jsonl/17271
{ "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, 90989, 7220, 1155, 353, 8840, 836, 8, 341, 69931, 261, 11, 23743, 1669, 1855, 25958, 18513, 1155, 340, 28624, 583, 1669, 501, 7, 13019, 692, 84381, 49959, 7220, 29128, 11, 330, 40923, 3523, 497, 330, 14479, 1827, 18889, 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...
1
func TestGRPC(t *testing.T) { ds := xds.NewXDS() ds.DiscoveryServer.Generators["grpc"] = &grpcgen.GrpcConfigGenerator{} epGen := &envoyv2.EdsGenerator{ds.DiscoveryServer} ds.DiscoveryServer.Generators["grpc/"+envoyv2.EndpointType] = epGen sd := ds.DiscoveryServer.MemRegistry sd.AddHTTPService("fortio1.fortio.svc...
explode_data.jsonl/72598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1265 }
[ 2830, 3393, 8626, 4872, 1155, 353, 8840, 836, 8, 341, 83336, 1669, 856, 5356, 7121, 55, 5936, 741, 83336, 10166, 7449, 5475, 1224, 798, 2973, 1183, 56585, 1341, 284, 609, 56585, 4370, 1224, 29414, 2648, 12561, 16094, 96626, 9967, 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...
4
func TestGetPriceChangeStats(t *testing.T) { t.Parallel() _, err := b.GetPriceChangeStats(context.Background(), currency.NewPair(currency.BTC, currency.USDT)) if err != nil { t.Error("Binance GetPriceChangeStats() error", err) } }
explode_data.jsonl/76649
{ "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, 1949, 6972, 4072, 16635, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 6878, 1848, 1669, 293, 2234, 6972, 4072, 16635, 5378, 19047, 1507, 11413, 7121, 12443, 90475, 1785, 7749, 11, 11413, 67672, 10599, 1171, 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, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestSafeWriteConfigWithMissingConfigPath(t *testing.T) { v := New() fs := afero.NewMemMapFs() v.SetFs(fs) v.SetConfigName("c") v.SetConfigType("yaml") require.EqualError(t, v.SafeWriteConfig(), "missing configuration for 'configPath'") }
explode_data.jsonl/9911
{ "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, 25663, 7985, 2648, 2354, 25080, 2648, 1820, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 1532, 741, 53584, 1669, 264, 802, 78, 7121, 18816, 2227, 48300, 741, 5195, 4202, 48300, 31856, 340, 5195, 4202, 2648, 675, 445, 66, 1138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPlayerBroke(t *testing.T) { t.Parallel() g, err := blackjack.NewBlackjackGame() if err != nil { t.Fatal(err) } p := &blackjack.Player{ Name: "Planty", Hands: []*blackjack.Hand{ { Id: 1, Outcome: blackjack.OutcomeLose, Payout: -1, }, }, Cash: 0, } g.AddPlayer(p) p....
explode_data.jsonl/5927
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 224 }
[ 2830, 3393, 4476, 33, 7441, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 3174, 11, 1848, 1669, 57262, 7121, 14417, 27134, 4868, 2822, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 3223, 1669, 609, 11453, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestAbsCollection_Slice(t *testing.T) { intColl := NewIntCollection([]int{1, 2, 3, 4, 5}) retColl := intColl.Slice(2) if retColl.Count() != 3 { t.Fatal("Slice 错误") } retColl = intColl.Slice(2, 2) if retColl.Count() != 2 { t.Fatal("Slice 两个参数错误") } // retColl.DD() retColl = intColl.Slice(2, -1) if ...
explode_data.jsonl/66436
{ "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, 27778, 6482, 1098, 4754, 1155, 353, 8840, 836, 8, 341, 2084, 15265, 1669, 1532, 1072, 6482, 10556, 396, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 3518, 11262, 15265, 1669, 526, 15265, 95495, 7, 17, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestReportSinceLastUpdatedMultipleTimes(t *testing.T) { var tests = []struct { description string podStatuses []string reportStatusSeq []bool expected string }{ { description: "report first time should return status", podStatuses: []string{"cannot pull image"}, reportSta...
explode_data.jsonl/81099
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 764 }
[ 2830, 3393, 10361, 12549, 5842, 16196, 32089, 18889, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 42407, 257, 914, 198, 197, 3223, 347, 2522, 288, 257, 3056, 917, 198, 197, 69931, 2522, 20183, 3056, 2641, 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...
3
func TestFindImportVendor(t *testing.T) { testConfig{ gorootFiles: map[string]string{ "vendor/golang.org/x/net/http2/hpack/huffman.go": "package hpack\nfunc HuffmanDecode() { }\n", }, }.test(t, func(t *goimportTest) { got, rename, err := findImportGoPath("hpack", map[string]bool{"HuffmanDecode": true}, filep...
explode_data.jsonl/12428
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 256 }
[ 2830, 3393, 9885, 11511, 44691, 1155, 353, 8840, 836, 8, 341, 18185, 2648, 515, 197, 3174, 269, 1905, 10809, 25, 2415, 14032, 30953, 515, 298, 197, 1, 19213, 4846, 37287, 2659, 10776, 38065, 15627, 17, 7530, 4748, 7530, 77708, 18002, 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...
4
func Test_New(t *testing.T) { t.Parallel() a := assert.New(t) provider := facebookProvider() a.Equal(provider.ClientKey, os.Getenv("FACEBOOK_KEY")) a.Equal(provider.Secret, os.Getenv("FACEBOOK_SECRET")) a.Equal(provider.CallbackURL, "/foo") }
explode_data.jsonl/81038
{ "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, 39582, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 11323, 1669, 2060, 7121, 1155, 692, 197, 19979, 1669, 22943, 5179, 741, 11323, 12808, 50886, 11716, 1592, 11, 2643, 64883, 445, 19759, 36625, 6600, 5455, 11323, 1280...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWsServerClient(t *testing.T) { defer goroutineLeakCheck(t)() payload := []byte("hello world") refMsg := messageMeta{ service: serviceID(7), command: commandID(11), msgID: 15, payload: payload} enc, err := encodeMessage(int(refMsg.msgID), int(refMsg.refMsgID), refMsg.service, refMsg.command, pay...
explode_data.jsonl/13933
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 739 }
[ 2830, 3393, 74733, 5475, 2959, 1155, 353, 8840, 836, 8, 341, 16867, 45198, 14159, 2304, 585, 3973, 1155, 8, 2822, 76272, 1669, 3056, 3782, 445, 14990, 1879, 1138, 59504, 6611, 1669, 1943, 12175, 515, 197, 52934, 25, 2473, 915, 7, 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...
2
func TestSubmitJobError(t *testing.T) { httpmock.Activate() defer httpmock.DeactivateAndReset() ctx := context.Background() httpmock.RegisterResponder("POST", fakeSubmitURL, nil) client := getTestJobManagerClient() resp, err := client.SubmitJob(ctx, testURL, "1", SubmitJobRequest{ Parallelism: 10, }) assert....
explode_data.jsonl/32369
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 161 }
[ 2830, 3393, 8890, 12245, 1454, 1155, 353, 8840, 836, 8, 341, 28080, 16712, 14140, 731, 741, 16867, 1758, 16712, 8934, 16856, 3036, 14828, 741, 20985, 1669, 2266, 19047, 741, 28080, 16712, 19983, 30884, 445, 2946, 497, 12418, 8890, 3144, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidator(t *testing.T) { RegisterFailHandler(Fail) junitReporter := reporters.NewJUnitReporter("../../../report/v1_validator_suite.xml") RunSpecsWithDefaultAndCustomReporters(t, "v1 Validator Suite", []Reporter{junitReporter}) }
explode_data.jsonl/72948
{ "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, 14256, 1155, 353, 8840, 836, 8, 341, 79096, 19524, 3050, 7832, 604, 340, 12428, 3843, 52766, 1669, 19040, 7121, 56248, 52766, 445, 26744, 11736, 5457, 16, 64959, 57239, 9028, 1138, 85952, 8327, 16056, 3675, 3036, 10268, 10361, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_CreateScratch_EmptyDestpath_Fail(t *testing.T) { rhcs := runhcs.Runhcs{ Debug: true, } ctx := context.TODO() err := rhcs.CreateScratch(ctx, "") if err == nil { t.Fatal("Should have failed 'CreateScratch' command.") } }
explode_data.jsonl/71750
{ "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, 34325, 65508, 754, 76060, 1595, 34830, 2343, 1400, 604, 1155, 353, 8840, 836, 8, 341, 7000, 71, 4837, 1669, 1598, 71, 4837, 16708, 71, 4837, 515, 197, 34424, 25, 830, 345, 197, 630, 20985, 1669, 2266, 90988, 741, 9859, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestTARWriterSystem(t *testing.T) { chezmoitest.WithTestFS(t, map[string]interface{}{ "/home/user/.local/share/chezmoi": map[string]interface{}{ ".chezmoiignore": "README.md\n", ".chezmoiremove": "*.txt\n", ".chezmoiversion": "1.2.3\n", ".chezmoitemplates": map[string]interface{}{ "template": ...
explode_data.jsonl/72411
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1120 }
[ 2830, 3393, 51, 934, 6492, 2320, 1155, 353, 8840, 836, 8, 341, 197, 34015, 6355, 97105, 26124, 2271, 8485, 1155, 11, 2415, 14032, 31344, 67066, 197, 197, 3115, 5117, 11739, 11930, 2438, 33914, 14, 34015, 6355, 72, 788, 2415, 14032, 3134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQueryEventsAPI(t *testing.T) { want := "Greater than 0" got := QueryEventAPI("") if len(got.Events) <= 0 { t.Errorf("Query events failed: %v \nwant: %v", got, want) } }
explode_data.jsonl/69058
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 74 }
[ 2830, 3393, 2859, 7900, 7082, 1155, 353, 8840, 836, 8, 341, 50780, 1669, 330, 41366, 1091, 220, 15, 698, 3174, 354, 1669, 11361, 1556, 7082, 445, 5130, 743, 2422, 3268, 354, 36492, 8, 2651, 220, 15, 341, 197, 3244, 13080, 445, 2859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBalance_Historical_Hash(t *testing.T) { mockJSONRPC := &mocks.JSONRPC{} mockGraphQL := &mocks.GraphQL{} c := &Client{ c: mockJSONRPC, g: mockGraphQL, traceSemaphore: semaphore.NewWeighted(100), } ctx := context.Background() account := "0x2f93B2f047E05cdf602820Ac4B3178efc...
explode_data.jsonl/55490
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1183 }
[ 2830, 3393, 21190, 2039, 95698, 2039, 988, 1155, 353, 8840, 836, 8, 341, 77333, 5370, 29528, 1669, 609, 16712, 82, 18009, 29528, 16094, 77333, 88637, 1669, 609, 16712, 82, 40237, 3588, 31483, 1444, 1669, 609, 2959, 515, 197, 1444, 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...
1
func TestIdSet_Two(t *testing.T) { s := MakeIdSet([]*Resource{testDeployment, testConfigMap}) assert.Equal(t, 2, s.Size()) assert.True(t, s.Contains(testDeployment.CurId())) assert.True(t, s.Contains(testConfigMap.CurId())) }
explode_data.jsonl/66091
{ "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, 764, 1649, 82989, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 7405, 764, 1649, 85288, 4783, 90, 1944, 75286, 11, 1273, 2648, 2227, 3518, 6948, 12808, 1155, 11, 220, 17, 11, 274, 2465, 2398, 6948, 32443, 1155, 11, 274, 11545,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKustomize(t *testing.T) { testCase := &tests.KustomizeTestCase{ Package: "../../../../katib/installs/katib-standalone-ibm", Expected: "test_data/expected", } tests.RunTestCase(t, testCase) }
explode_data.jsonl/81341
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 84 }
[ 2830, 3393, 42, 1450, 551, 1155, 353, 8840, 836, 8, 341, 18185, 4207, 1669, 609, 23841, 11352, 1450, 551, 16458, 515, 197, 10025, 1434, 25, 220, 63392, 33755, 579, 14, 6308, 5583, 14109, 266, 579, 12, 2685, 31576, 12, 579, 76, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestSaturatedLinear(t *testing.T) { n := NewSingleInputNeuron(1, "s-linear") a := n.Do(-5, 1) if a != 0 { t.Error("a should be 0 for -5, 1")} a = n.Do(-1, 1) if a != 0 { t.Error("a should be 0 for -1, 1")} a = n.Do(-1, 0) if a != 1 { t.Error("a should be 0 for -1, 0")} a = n.Do(-0.5, 1) if a != 0.5 { t.Er...
explode_data.jsonl/67121
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 50, 34367, 31898, 1155, 353, 8840, 836, 8, 341, 9038, 1669, 1532, 10888, 2505, 8813, 36090, 7, 16, 11, 330, 82, 61299, 1138, 11323, 1669, 308, 33596, 4080, 20, 11, 220, 16, 340, 743, 264, 961, 220, 15, 314, 259, 6141, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBatchCreate(t *testing.T) { tests := []struct { name string nodes []*CreateSpec expect func(sqlmock.Sqlmock) wantErr bool }{ { name: "empty", expect: func(m sqlmock.Sqlmock) { m.ExpectBegin() m.ExpectCommit() }, }, { name: "multiple", nodes: []*CreateSpec{ { ...
explode_data.jsonl/41707
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1843 }
[ 2830, 3393, 21074, 4021, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 79756, 256, 29838, 4021, 8327, 198, 197, 24952, 220, 2915, 13148, 16712, 23005, 16712, 340, 197, 50780, 7747, 1807, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEnvs(t *testing.T) { if testing.Short() { t.Skip("skipping in short mode") } for _, spec := range EnvSpecs { t.Run(spec.Name, func(t *testing.T) { env, err := NewEnv(spec) if err != nil { t.Error(err) return } defer env.Close() for i := 0; i < 2; i++ { if err := env.Reset(); e...
explode_data.jsonl/33587
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 275 }
[ 2830, 3393, 1702, 11562, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 304, 2805, 3856, 1138, 197, 532, 2023, 8358, 1398, 1669, 2088, 37039, 8327, 82, 341, 197, 3244, 16708, 38209, 2967, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPluginRequeue(t *testing.T) { ctx := context.Background() fixture := newTestFixture(t) defer fixture.server.stop() fixture.server.ch = make(chan []EventV1, 1) var input interface{} = map[string]interface{}{"method": "GET"} var result1 interface{} = false fixture.plugin.Log(ctx, &server.Info{ Deci...
explode_data.jsonl/2174
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 401 }
[ 2830, 3393, 11546, 693, 4584, 1155, 353, 8840, 836, 8, 1476, 20985, 1669, 2266, 19047, 2822, 1166, 12735, 1669, 501, 69356, 1155, 340, 16867, 12507, 12638, 13227, 2822, 1166, 12735, 12638, 5329, 284, 1281, 35190, 3056, 1556, 53, 16, 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...
6
func TestClientHMAC(t *testing.T) { for _, mac := range supportedMACs { config := &ClientConfig{ User: "testuser", Auth: []AuthMethod{ PublicKeys(testSigners["rsa"]), }, Config: Config{ MACs: []string{mac}, }, HostKeyCallback: InsecureIgnoreHostKey(), } if err := tryAuth(t, config); err...
explode_data.jsonl/6940
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 2959, 39, 25788, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 8978, 1669, 2088, 7248, 25788, 82, 341, 197, 25873, 1669, 609, 2959, 2648, 515, 298, 31672, 25, 330, 1944, 872, 756, 298, 197, 5087, 25, 3056, 5087, 3523, 515, 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...
3
func TestReconcileWithConditionChecks(t *testing.T) { // TestReconcileWithConditionChecks runs "Reconcile" on a PipelineRun that has a task with // multiple conditions. It verifies that reconcile is successful, taskruns are created and // the status is updated. It checks that the correct events are sent. names.Test...
explode_data.jsonl/68285
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1396 }
[ 2830, 3393, 693, 40446, 457, 2354, 10547, 49820, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 693, 40446, 457, 2354, 10547, 49820, 8473, 330, 693, 40446, 457, 1, 389, 264, 40907, 6727, 429, 702, 264, 3383, 448, 198, 197, 322, 5248, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBindXmlStatsV2(t *testing.T) { ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) url := ts.Listener.Addr().String() host, port, _ := net.SplitHostPort(url) defer ts.Close() b := Bind{ Urls: []string{ts.URL + "/xml/v2"}, GatherMemoryContexts: true, GatherViews: ...
explode_data.jsonl/18719
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2350 }
[ 2830, 3393, 9950, 11593, 16635, 53, 17, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 8576, 5475, 19886, 83757, 445, 92425, 29836, 19320, 1669, 10591, 64091, 93626, 1005, 703, 741, 63104, 11, 2635, 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 TestSummaryDataPoint_Count(t *testing.T) { ms := NewSummaryDataPoint() ms.InitEmpty() assert.EqualValues(t, uint64(0), ms.Count()) testValCount := uint64(17) ms.SetCount(testValCount) assert.EqualValues(t, testValCount, ms.Count()) }
explode_data.jsonl/19578
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 92 }
[ 2830, 3393, 19237, 1043, 2609, 50775, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 19237, 1043, 2609, 741, 47691, 26849, 3522, 741, 6948, 12808, 6227, 1155, 11, 2622, 21, 19, 7, 15, 701, 9829, 6134, 2398, 18185, 2208, 2507, 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 TestSecurityEnhancedMode(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) sem.Enable() defer sem.Disable() // When SEM is enabled these features are restricted to all users // regardless of what privileges they have available. _, err := tk.Exec("...
explode_data.jsonl/65582
{ "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, 15352, 57468, 4874, 3636, 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, 89527, 32287, 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 TestB32Encode(t *testing.T) { for _, test := range b32TestCases { actual := B32Encode(test.decoded) expected := test.encoded if actual != expected { fmt.Printf("FAIL:\n Exp: %s\n Act: %s\n", expected, actual) t.Fail() } } }
explode_data.jsonl/12912
{ "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, 33, 18, 17, 32535, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 293, 18, 17, 2271, 37302, 341, 197, 88814, 1669, 425, 18, 17, 32535, 8623, 28020, 6737, 340, 197, 42400, 1669, 1273, 13, 19329, 198, 197, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test_GetNotExistProcessInfo(t *testing.T) { getInfo := &GetProcessInfoLinux{} _, err := getInfo.GetInfo("/mnt/hgfs/Source/c++/iVideo/Source/APS/Bin/aps1") if nil == err { t.Error("程序居然运行了") } }
explode_data.jsonl/33945
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 103 }
[ 2830, 3393, 13614, 45535, 7423, 1731, 1155, 353, 8840, 836, 8, 341, 10366, 1731, 1669, 609, 1949, 7423, 1731, 46324, 16094, 197, 6878, 1848, 1669, 91824, 2234, 1731, 4283, 40882, 7530, 70, 3848, 14, 3608, 2899, 1027, 14, 72, 10724, 14, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestUserAcceptInvite(t *testing.T) { client, _ := New("https://bitbucket.example.com") res, err := client.Users.AcceptInvitation(context.Background(), 0) assert.Equal(t, res.Status, 200, "Should be success response") assert.NoError(t, err, "Should not be an error") }
explode_data.jsonl/45536
{ "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, 1474, 16646, 93540, 1155, 353, 8840, 836, 8, 341, 25291, 11, 716, 1669, 1532, 445, 2428, 1110, 4489, 30410, 7724, 905, 5130, 10202, 11, 1848, 1669, 2943, 36782, 52265, 15174, 7556, 5378, 19047, 1507, 220, 15, 692, 6948, 1280...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAdminShowNextID(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() HelperTestAdminShowNextID(t, store, `admin show `) HelperTestAdminShowNextID(t, store, `show table `) }
explode_data.jsonl/38140
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 74 }
[ 2830, 3393, 7210, 7812, 5847, 915, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 197, 5511, 2271, 7210, 7812, 5847, 915, 1155, 11, 3553, 11, 1565, 2882, 1473, 1565, 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
func TestTaskRunOpts_runTaskCommand(t *testing.T) { wantedCommand := ecs.RunTaskRequest{} testCases := map[string]struct { inGenerateCommandTarget string setupMockStore func(m *mocks.Mockstore) mockRunTaskRequester mockRunTaskRequester wantedCommand *ecs.RunTaskRequest wantedError error }{ "sh...
explode_data.jsonl/14724
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2676 }
[ 2830, 3393, 6262, 6727, 43451, 14007, 6262, 4062, 1155, 353, 8840, 836, 8, 341, 6692, 7566, 4062, 1669, 78422, 16708, 6262, 1900, 31483, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 17430, 31115, 4062, 6397, 914, 271, 197, 84571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOpenshiftRoles(t *testing.T) { roles := bootstrappolicy.GetBootstrapOpenshiftRoles("openshift") list := &api.List{} for i := range roles { list.Items = append(list.Items, &roles[i]) } testObjects(t, list, "bootstrap_openshift_roles.yaml") }
explode_data.jsonl/10197
{ "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, 36771, 47833, 25116, 1155, 353, 8840, 836, 8, 341, 197, 14643, 1669, 10459, 495, 676, 8018, 2234, 45511, 36771, 47833, 25116, 445, 24175, 47833, 1138, 14440, 1669, 609, 2068, 5814, 16094, 2023, 600, 1669, 2088, 12783, 341, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAddress(t *testing.T) { deriver := NewAddressDeriver(Mainnet, []string{"xpub6CjzRxucHWJbmtuNTg6EjPax3V75AhsBRnFKn8MEkc8UFFEhrCoWcQN6oUBhfZWoFKqTyQ21iNVK8KMbC44ifW25uyXaMPWkRtpwcbAWXJx"}, 1, "") addr := deriver.Derive(0, 5) assert.Equal(t, addr.Path(), "m/.../0/5") assert.Equal(t, addr.String(), "1N4VBTZqwL...
explode_data.jsonl/80964
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 289 }
[ 2830, 3393, 4286, 1155, 353, 8840, 836, 8, 341, 197, 1107, 1524, 1669, 1532, 4286, 22171, 1524, 26496, 4711, 11, 3056, 917, 4913, 87, 9585, 21, 34, 73, 89, 50639, 1754, 38252, 41, 65, 2501, 84, 6408, 70, 21, 36, 73, 47, 706, 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 TestLoadURLSuccess(t *testing.T) { contentTypes := []string{ "application/vnd.paos.xml", "application/vnd.otps.ct-kip+xml", "application/vnd.openxmlformats-package.core-properties+xml", "application/CDFX+XML", "application/ATXML", "application/3gpdash-qoe-report+xml", "application/vnd.nokia.pcd+wbxm...
explode_data.jsonl/18837
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 514 }
[ 2830, 3393, 5879, 3144, 7188, 1155, 353, 8840, 836, 8, 341, 27751, 4173, 1669, 3056, 917, 515, 197, 197, 1, 5132, 42701, 56875, 436, 9028, 756, 197, 197, 1, 5132, 42701, 79361, 1690, 49464, 12646, 573, 65837, 756, 197, 197, 1, 5132, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServerBaseContext(t *testing.T) { r := NewRouter() r.Get("/", HandlerFunc(func(ctx context.Context, rc *fasthttp.RequestCtx) { baseYes := ctx.Value(ctxKey{"base"}).(string) rc.Write([]byte(baseYes)) })) // Setup http Server with a base context baseCtx := context.WithValue(context.Background(), ctxKey...
explode_data.jsonl/47972
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 5475, 93824, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 9523, 741, 7000, 2234, 35460, 19954, 9626, 18552, 7502, 2266, 9328, 11, 10192, 353, 9349, 1254, 9659, 23684, 8, 341, 197, 24195, 9454, 1669, 5635, 6167, 7502, 1592...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGuildBanObject(t *testing.T) { data, err := ioutil.ReadFile("testdata/guild/ban1.json") check(err, t) ban := Ban{} err = httd.Unmarshal(data, &ban) check(err, t) }
explode_data.jsonl/55143
{ "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, 72574, 50241, 1190, 1155, 353, 8840, 836, 8, 341, 8924, 11, 1848, 1669, 43144, 78976, 445, 92425, 4846, 1498, 3470, 276, 16, 4323, 1138, 25157, 3964, 11, 259, 692, 2233, 276, 1669, 22730, 16094, 9859, 284, 34323, 1296, 38097...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNeighbors(t *testing.T) { neighbors := originPosition.Neighbors() if len(neighbors) != 8 { t.Errorf("Position neighbors should contain 8 elems") } if positionsInclude(neighbors, originPosition) { t.Errorf("Neighbors of a position should not include that position itself") } }
explode_data.jsonl/6545
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 58086, 1155, 353, 8840, 836, 8, 341, 197, 79488, 1669, 6238, 3812, 2067, 68, 24101, 2822, 743, 2422, 48405, 24101, 8, 961, 220, 23, 341, 197, 3244, 13080, 445, 3812, 18709, 1265, 6644, 220, 23, 55968, 1138, 197, 532, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestManagedHmacEntityValidation(t *testing.T) { testCases := []struct { name string prowConfig Config shouldFail bool }{ { name: "Missing managed HmacEntities", prowConfig: Config{ProwConfig: ProwConfig{ManagedWebhooks: ManagedWebhooks{}}}, shouldFail: false, }, { name: "Confi...
explode_data.jsonl/8089
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 548 }
[ 2830, 3393, 27192, 39, 11948, 3030, 13799, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 3223, 651, 2648, 5532, 198, 197, 197, 5445, 19524, 1807, 198, 197, 59403, 197, 197, 515, 298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestTrimAllPrefixEmptyPrefix(t *testing.T) { var prefixes []string assert.Equal(t, "type/legume/potiron", TrimAllPrefix(prefixes)("type/legume/potiron")) }
explode_data.jsonl/16596
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 63 }
[ 2830, 3393, 25656, 2403, 14335, 3522, 14335, 1155, 353, 8840, 836, 8, 341, 2405, 62576, 3056, 917, 271, 6948, 12808, 1155, 11, 330, 1313, 14, 1937, 3885, 4322, 354, 2475, 497, 44376, 2403, 14335, 28918, 288, 61173, 1313, 14, 1937, 3885,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandleOutboundPortsIncludeWithOutboundPorts(t *testing.T) { cfg := constructTestConfig() cfg.OutboundPortsInclude = "32000,31000" iptConfigurator := NewIptablesConfigurator(cfg, &dep.StdoutStubDependencies{}) iptConfigurator.handleOutboundPortsInclude() ip4Rules := FormatIptablesCommands(iptConfigurator...
explode_data.jsonl/65399
{ "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, 6999, 2662, 10891, 68273, 22283, 2354, 2662, 10891, 68273, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 9245, 2271, 2648, 741, 50286, 47178, 10891, 68273, 22283, 284, 330, 18, 17, 15, 15, 15, 11, 18, 16, 15, 15, 15, 1837, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLiveUpdateDockerContainerUserRunFailureDoesntFallBack(t *testing.T) { f := newBDFixture(t, k8s.EnvDockerDesktop, container.RuntimeDocker) defer f.TearDown() f.docker.SetExecError(userFailureErrDocker) tCase := testCase{ manifest: NewSanchoLiveUpdateManifest(f), changedFiles: []string{"a.txt"}, ...
explode_data.jsonl/35160
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 292 }
[ 2830, 3393, 20324, 4289, 35, 13659, 4502, 1474, 6727, 17507, 21468, 406, 49772, 3707, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 33, 5262, 12735, 1155, 11, 595, 23, 82, 81214, 35, 13659, 23597, 11, 5476, 16706, 35, 13659, 340, 168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRequestBodyReadCloseRace(t *testing.T) { for i := 0; i < 100; i++ { body := &requestBody{ pipe: &pipe{ b: new(bytes.Buffer), }, } body.pipe.CloseWithError(io.EOF) done := make(chan bool, 1) buf := make([]byte, 10) go func() { time.Sleep(1 * time.Millisecond) body.Close() done <...
explode_data.jsonl/71704
{ "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, 33334, 4418, 7925, 55991, 1155, 353, 8840, 836, 8, 341, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 16, 15, 15, 26, 600, 1027, 341, 197, 35402, 1669, 609, 2035, 5444, 515, 298, 197, 13768, 25, 609, 13768, 515, 571, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNodePool_Nodes(t *testing.T) { t.Run("success", func(t *testing.T) { var cli clientMock rancherNodes := []rancher.Node{ {Name: "worker1"}, {Name: "worker2"}, {Name: "worker3"}, } cli.nodesByNodePoolFn = func(nodePoolID string) ([]rancher.Node, error) { return rancherNodes, nil } np :...
explode_data.jsonl/71598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 431 }
[ 2830, 3393, 1955, 10551, 1604, 2539, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5630, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 2405, 21348, 2943, 11571, 198, 197, 7000, 3497, 261, 12288, 1669, 3056, 81, 3497, 261, 21714, 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 TestGRPC(t *testing.T) { t.Parallel() clients := test.Setup(t) const suffix = "- pong" name, port, cancel := CreateGRPCService(t, clients, suffix) defer cancel() domain := name + ".example.com" // Create a simple Ingress over the Service. _, dialCtx, cancel := CreateIngressReadyDialContext(t, clients, v...
explode_data.jsonl/51347
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 583 }
[ 2830, 3393, 8626, 4872, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 31869, 1669, 1273, 39820, 1155, 692, 4777, 20525, 284, 6523, 77622, 698, 11609, 11, 2635, 11, 9121, 1669, 4230, 8626, 4872, 1860, 1155, 11, 8239, 11, 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 TestProcessProposal(t *testing.T) { smr, err := MakeSmr(t) if err != nil { t.Error("TestProcessProposal MakeSmr error", err) return } validatesInfos := []*cons_base.CandidateInfo{ &cons_base.CandidateInfo{ Address: "dpzuVdosQrF2kmzumhVeFQZa1aYcdgFpN", PeerAddr: "127.0.0.1:37101", }, } _, err =...
explode_data.jsonl/33024
{ "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, 7423, 98637, 1155, 353, 8840, 836, 8, 341, 1903, 20946, 11, 1848, 1669, 7405, 10673, 81, 1155, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 445, 2271, 7423, 98637, 7405, 10673, 81, 1465, 497, 1848, 340, 197, 853, 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...
3
func TestReplicaCountTransformer(t *testing.T) { tc := plugins.NewEnvForTest(t).Set() defer tc.Reset() tc.BuildGoPlugin( "builtin", "", "ReplicaCountTransformer") th := kusttest_test.NewKustTestPluginHarness(t, "/app") rm := th.LoadAndRunTransformer(` apiVersion: builtin kind: ReplicaCountTransformer metadata...
explode_data.jsonl/33802
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 782 }
[ 2830, 3393, 18327, 15317, 2507, 46358, 1155, 353, 8840, 836, 8, 341, 78255, 1669, 17215, 7121, 14359, 2461, 2271, 1155, 568, 1649, 741, 16867, 17130, 36660, 2822, 78255, 25212, 10850, 11546, 1006, 197, 197, 1, 42457, 497, 7342, 330, 18327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCertificateServiceGetByID(t *testing.T) { service := createCertificateService(t) require.NotNil(t, service) resource, err := service.GetByID(emptyString) assert.Equal(t, err, createInvalidParameterError(OperationGetByID, ParameterID)) assert.Nil(t, resource) resource, err = service.GetByID(whitespaceSt...
explode_data.jsonl/71912
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 288 }
[ 2830, 3393, 33202, 1860, 1949, 60572, 1155, 353, 8840, 836, 8, 341, 52934, 1669, 1855, 33202, 1860, 1155, 340, 17957, 93882, 1155, 11, 2473, 692, 50346, 11, 1848, 1669, 2473, 2234, 60572, 24216, 703, 340, 6948, 12808, 1155, 11, 1848, 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...
2
func TestEvaluatInOperator(t *testing.T) { floats := []float64{float64(2), float64(2)} b, err := EvalCondition(floats, "2 in result") assert.Nil(t, err) assert.True(t, b) }
explode_data.jsonl/51796
{ "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, 36, 25510, 266, 641, 18461, 1155, 353, 8840, 836, 8, 341, 8139, 82, 1669, 3056, 3649, 21, 19, 90, 3649, 21, 19, 7, 17, 701, 2224, 21, 19, 7, 17, 10569, 2233, 11, 1848, 1669, 58239, 10547, 8268, 82, 11, 330, 17, 304, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Params_Modify(t *testing.T) { p, _ := ports.PopRand() s := g.Server(p) s.BindHandler("/param/modify", func(r *ghttp.Request) { param := r.GetMap() param["id"] = 2 paramBytes, err := gjson.Encode(param) if err != nil { r.Response.Write(err) return } r.Request.Body = ioutil.NopCloser(bytes....
explode_data.jsonl/25343
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 357 }
[ 2830, 3393, 44656, 71485, 1437, 1155, 353, 8840, 836, 8, 341, 3223, 11, 716, 1669, 20325, 47424, 56124, 741, 1903, 1669, 342, 22997, 1295, 340, 1903, 32451, 3050, 4283, 903, 14, 34053, 497, 2915, 2601, 353, 70, 1254, 9659, 8, 341, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestParseCommitsUniqueToBranch(t *testing.T) { commits, err := parseCommitsUniqueToBranch([]string{ "c165bfff52e9d4f87891bba497e3b70fea144d89:2020-08-04T08:23:30-05:00", "f73ee8ed601efea74f3b734eeb073307e1615606:2020-04-16T16:06:21-04:00", "6057f7ed8d331c82030c713b650fc8fd2c0c2347:2020-04-16T16:20:26-04:00"...
explode_data.jsonl/8523
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 817 }
[ 2830, 3393, 14463, 17977, 1199, 22811, 1249, 18197, 1155, 353, 8840, 836, 8, 341, 197, 3621, 1199, 11, 1848, 1669, 4715, 17977, 1199, 22811, 1249, 18197, 10556, 917, 515, 197, 197, 96946, 16, 21, 20, 65, 14092, 20, 17, 68, 24, 67, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfig_GetInt(t *testing.T) { expectedTimeout, err := strconv.Atoi(string(TestDefaultServerPort())) if err != nil { fmt.Printf("Error converting default memory %q to integer", err) t.Fail() } actualTimeout := configObj.GetInt("server.port", 0) assert.Equal(t, expectedTimeout, actualTimeout, "Integer...
explode_data.jsonl/50529
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 118 }
[ 2830, 3393, 2648, 13614, 1072, 1155, 353, 8840, 836, 8, 341, 42400, 7636, 11, 1848, 1669, 33317, 67107, 3609, 31159, 3675, 5475, 7084, 12145, 743, 1848, 961, 2092, 341, 197, 11009, 19367, 445, 1454, 33437, 1638, 4938, 1018, 80, 311, 754...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetHistoricCandles(t *testing.T) { currencyPair, err := currency.NewPairFromString("BTC-USD") if err != nil { t.Fatal(err) } startTime := time.Unix(1588636800, 0) _, err = o.GetHistoricCandles(currencyPair, asset.Spot, startTime, time.Now(), kline.OneMin) if err != nil { t.Fatal(err) } }
explode_data.jsonl/30209
{ "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, 1949, 48983, 292, 34, 20125, 1155, 353, 8840, 836, 8, 341, 1444, 5088, 12443, 11, 1848, 1669, 11413, 7121, 12443, 44491, 445, 59118, 12, 26749, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 21375, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreatePool(t *testing.T) { mockServer := NewMockHttpServer(200, SuccessCreatePoolContent) defer mockServer.Close() mockHttpClient := NewMockHttpClient(mockServer.URL) client := NewRookNetworkRestClient(mockServer.URL, mockHttpClient) // invoke the CreatePool method that will use our mock http client/serv...
explode_data.jsonl/27841
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 271 }
[ 2830, 3393, 4021, 10551, 1155, 353, 8840, 836, 8, 341, 77333, 5475, 1669, 1532, 11571, 2905, 5475, 7, 17, 15, 15, 11, 13047, 4021, 10551, 2762, 340, 16867, 7860, 5475, 10421, 741, 77333, 26316, 1669, 1532, 11571, 26316, 30389, 5475, 208...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParse_Sets(t *testing.T) { s := NewTestStatsd() // Test that sets work validLines := []string{ "unique.user.ids:100|s", "unique.user.ids:100|s", "unique.user.ids:100|s", "unique.user.ids:100|s", "unique.user.ids:100|s", "unique.user.ids:101|s", "unique.user.ids:102|s", "unique.user.ids:102|...
explode_data.jsonl/14364
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 546 }
[ 2830, 3393, 14463, 1098, 1415, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 2271, 16635, 67, 2822, 197, 322, 3393, 429, 7289, 975, 198, 56322, 16794, 1669, 3056, 917, 515, 197, 197, 1, 9587, 3324, 56202, 25, 16, 15, 15, 91, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func Test_Echo_Bad_Params_Parse(t *testing.T) { e := newEcho() req := httptest.NewRequest(http.MethodGet, "http://example.com/count/USD/USD", nil) res := httptest.NewRecorder() e.ServeHTTP(res, req) require.Equal(t, http.StatusBadRequest, res.Code) }
explode_data.jsonl/54632
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 2089, 958, 1668, 329, 44656, 77337, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 501, 74994, 2822, 24395, 1669, 54320, 70334, 75274, 19886, 20798, 1949, 11, 330, 1254, 1110, 8687, 905, 81043, 14, 26749, 14, 26749, 497, 2092, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReadOptions(t *testing.T) { tid := []byte{1} for _, test := range []struct { q *Query want *pb.ReadOptions }{ { q: NewQuery(""), want: nil, }, { q: NewQuery("").Transaction(nil), want: nil, }, { q: NewQuery("").Transaction(&Transaction{id: tid}), want: &pb.ReadOption...
explode_data.jsonl/50247
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 540 }
[ 2830, 3393, 4418, 3798, 1155, 353, 8840, 836, 8, 341, 3244, 307, 1669, 3056, 3782, 90, 16, 532, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 18534, 262, 353, 2859, 198, 197, 50780, 353, 16650, 6503, 3798, 198, 197, 59403, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestMinVersion(t *testing.T) { c := testSpec(t) c.Spec.CephVersion.AllowUnsupported = true c.ClusterInfo = &client.ClusterInfo{Context: context.TODO()} // All versions less than 15.2.0 or invalid tag are invalid v := &cephver.CephVersion{Major: 15, Minor: 1, Extra: 999} assert.Error(t, c.validateCephVersion...
explode_data.jsonl/15034
{ "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, 6217, 5637, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1273, 8327, 1155, 340, 1444, 36473, 727, 23544, 5637, 29081, 41884, 284, 830, 198, 1444, 72883, 1731, 284, 609, 2972, 72883, 1731, 90, 1972, 25, 2266, 90988, 368, 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...
1
func TestShowFields(t *testing.T) { defer func() { _ = TestTx.ReleaseResources() TestTx.uncommittedViews.Clean() initFlag(TestTx.Flags) }() initFlag(TestTx.Flags) TestTx.Flags.Repository = TestDir ctx := context.Background() for _, v := range showFieldsTests { _ = TestTx.cachedViews.Clean(TestTx.FileCon...
explode_data.jsonl/50847
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 489 }
[ 2830, 3393, 7812, 8941, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 197, 62, 284, 3393, 31584, 58693, 11277, 741, 197, 73866, 31584, 6307, 97446, 23217, 727, 2675, 741, 197, 28248, 12135, 31159, 31584, 51887, 340, 197, 668...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNotEscaping(t *testing.T) { r := newRand(nil, rand.NewSource(0)) s := &state{ files: map[string]bool{"./file0": true}, } bound := 1000000 if testing.Short() { bound = 1000 } for i := 0; i < bound; i++ { fn := r.filenameImpl(s) if escapingFilename(fn) { t.Errorf("sandbox escaping file name %q"...
explode_data.jsonl/73777
{ "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, 2623, 36121, 14216, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 501, 56124, 27907, 11, 10382, 7121, 3608, 7, 15, 1171, 1903, 1669, 609, 2454, 515, 197, 74075, 25, 2415, 14032, 96436, 4913, 1725, 1192, 15, 788, 830, 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 TestAccAivenServiceUser_basic(t *testing.T) { resourceName := "aiven_service_user.foo" rName := acctest.RandStringFromCharSet(10, acctest.CharSetAlphaNum) rName2 := acctest.RandStringFromCharSet(10, acctest.CharSetAlphaNum) resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCh...
explode_data.jsonl/36134
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 578 }
[ 2830, 3393, 14603, 32, 2071, 1860, 1474, 34729, 1155, 353, 8840, 836, 8, 341, 50346, 675, 1669, 330, 64, 2071, 12267, 3317, 58432, 698, 7000, 675, 1669, 1613, 67880, 2013, 437, 703, 3830, 4768, 1649, 7, 16, 15, 11, 1613, 67880, 10447,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApp_OnUsageError_WithWrongFlagValue(t *testing.T) { app := &App{ Flags: []Flag{ &IntFlag{Name: "flag"}, }, OnUsageError: func(c *Context, err error, isSubcommand bool) error { if isSubcommand { t.Errorf("Expect no subcommand") } if !strings.HasPrefix(err.Error(), "invalid value \"wrong\"...
explode_data.jsonl/52594
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 321 }
[ 2830, 3393, 2164, 35482, 14783, 1454, 62, 2354, 29185, 12135, 1130, 1155, 353, 8840, 836, 8, 341, 28236, 1669, 609, 2164, 515, 197, 197, 9195, 25, 3056, 12135, 515, 298, 197, 5, 1072, 12135, 63121, 25, 330, 9903, 7115, 197, 197, 1583,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHealthCheckMultipleShutdowns(t *testing.T) { config := Config{ TCPAddr: confignet.TCPAddr{ Endpoint: testutil.GetAvailableLocalAddress(t), }, CheckCollectorPipeline: defaultCheckCollectorPipelineSettings(), Path: "/", } hcExt := newServer(config, zap.NewNop()) require.NotNil(t...
explode_data.jsonl/11623
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 14542, 3973, 32089, 62004, 82, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 5532, 515, 197, 10261, 7123, 13986, 25, 2335, 84858, 836, 7123, 13986, 515, 298, 197, 27380, 25, 1273, 1314, 2234, 16485, 7319, 4286, 1155, 1326, 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 TestRuleSQLCalcFoundRows(t *testing.T) { common.Log.Debug("Entering function: %s", common.GetFunctionName()) sqls := []string{ "select SQL_CALC_FOUND_ROWS col from tbl where id>1000", } for _, sql := range sqls { q, err := NewQuery4Audit(sql) if err == nil { rule := q.RuleSQLCalcFoundRows() if rule...
explode_data.jsonl/76762
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 230 }
[ 2830, 3393, 11337, 6688, 47168, 6650, 9024, 1155, 353, 8840, 836, 8, 341, 83825, 5247, 20345, 445, 82867, 729, 25, 1018, 82, 497, 4185, 2234, 5152, 675, 2398, 30633, 82, 1669, 3056, 917, 515, 197, 197, 1, 1742, 7870, 98014, 24687, 627...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMocker_ModifyWebhookWithTokenWithToken(t *testing.T) { t.Run("success", func(t *testing.T) { m := New(t) data := api.ModifyWebhookData{Name: option.NewString("abc")} expect := discord.Webhook{ ID: 123, Name: "abc", Token: "def", ChannelID: 456, User: discord.User{ID...
explode_data.jsonl/49380
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 509 }
[ 2830, 3393, 11571, 261, 71485, 1437, 5981, 20873, 2354, 3323, 2354, 3323, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5630, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 2109, 1669, 1532, 1155, 692, 197, 8924, 1669, 6330, 23127, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartAgentDaemonsetWithToleration(t *testing.T) { clientset := test.New(3) os.Setenv(k8sutil.PodNamespaceEnvVar, "rook-system") defer os.Unsetenv(k8sutil.PodNamespaceEnvVar) os.Setenv(k8sutil.PodNameEnvVar, "rook-operator") defer os.Unsetenv(k8sutil.PodNameEnvVar) os.Setenv(agentDaemonsetTolerationEnv...
explode_data.jsonl/35523
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 634 }
[ 2830, 3393, 3479, 16810, 89177, 746, 2354, 51, 337, 20927, 1155, 353, 8840, 836, 8, 341, 25291, 746, 1669, 1273, 7121, 7, 18, 692, 25078, 4202, 3160, 5969, 23, 82, 1314, 88823, 22699, 14359, 3962, 11, 330, 299, 562, 36648, 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 TestBuildBindMount(t *testing.T) { project := composetypes.Project{} volume := composetypes.ServiceVolumeConfig{ Type: composetypes.VolumeTypeBind, Source: "", Target: "/data", } mount, err := buildMount(project, volume) assert.NilError(t, err) assert.Assert(t, filepath.IsAbs(mount.Source)) _, err =...
explode_data.jsonl/72624
{ "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, 11066, 9950, 16284, 1155, 353, 8840, 836, 8, 341, 72470, 1669, 39221, 67553, 30944, 16094, 5195, 4661, 1669, 39221, 67553, 13860, 18902, 2648, 515, 197, 27725, 25, 256, 39221, 67553, 79106, 929, 9950, 345, 197, 197, 3608, 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 TestFormatAndMount(t *testing.T) { fakeMounter := ErrorMounter{&FakeMounter{}, 0, nil} execCallback := func(cmd string, args ...string) ([]byte, error) { for j := range args { if strings.Contains(args[j], "Get-Disk -Number") { return []byte("0"), nil } if strings.Contains(args[j], "Get-Partition ...
explode_data.jsonl/48690
{ "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, 4061, 3036, 16284, 1155, 353, 8840, 836, 8, 341, 1166, 726, 16284, 261, 1669, 4600, 16284, 261, 90, 5, 52317, 16284, 261, 22655, 220, 15, 11, 2092, 532, 67328, 7494, 1669, 2915, 14160, 914, 11, 2827, 2503, 917, 8, 34923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContextBindWithJSON(t *testing.T) { w := httptest.NewRecorder() c, _ := CreateTestContext(w) c.Request, _ = http.NewRequest("POST", "/", bytes.NewBufferString("{\"foo\":\"bar\", \"bar\":\"foo\"}")) c.Request.Header.Add("Content-Type", MIMEXML) // set fake content-type var obj struct { Foo string `json...
explode_data.jsonl/26819
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 201 }
[ 2830, 3393, 1972, 9950, 2354, 5370, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 54320, 70334, 7121, 47023, 741, 1444, 11, 716, 1669, 4230, 2271, 1972, 3622, 692, 1444, 9659, 11, 716, 284, 1758, 75274, 445, 2946, 497, 64657, 5820, 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 TestCompareCommits(t *testing.T) { t.Parallel() log := zaptest.NewLogger(t) scope := tally.NewTestScope("", nil) tests := []struct { id string handler func(http.ResponseWriter, *http.Request) req *sourcegraphv1.CompareCommitsRequest res *sourcegraphv1.CompareCommitsResponse }{ { id...
explode_data.jsonl/3231
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1506 }
[ 2830, 3393, 27374, 17977, 1199, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 6725, 1669, 32978, 1944, 7121, 7395, 1155, 340, 66836, 1669, 52295, 7121, 2271, 10803, 19814, 2092, 692, 78216, 1669, 3056, 1235, 341, 197, 15710, 414,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteJob_JobObjectShouldBeRemovedAfterRetentionPeriod(t *testing.T) { withRepositoryUsingJobDefaults(configuration.DatabaseRetentionPolicy{JobRetentionDuration: time.Hour}, func(r *RedisJobRepository) { job := addLeasedJob(t, r, "queue1", "cluster1") result, err := r.DeleteJobs([]*api.Job{job}) if err...
explode_data.jsonl/32049
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 466 }
[ 2830, 3393, 6435, 12245, 10598, 674, 1190, 14996, 3430, 42642, 6025, 86329, 23750, 1155, 353, 8840, 836, 8, 341, 46948, 4624, 16429, 12245, 16273, 48724, 25008, 12020, 78165, 90, 12245, 86329, 12945, 25, 882, 73550, 2137, 2915, 2601, 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 TestPrepareCacheChangingParamType(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() orgEnable := core.PreparedPlanCacheEnabled() defer core.SetPreparedPlanCache(orgEnable) core.SetPreparedPlanCache(true) se, err := session.CreateSession4TestWithOpt(store, &session.Opt{ PreparedPlanCa...
explode_data.jsonl/5497
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1612 }
[ 2830, 3393, 50590, 8233, 59046, 2001, 929, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 741, 87625, 11084, 1669, 6200, 28770, 7212, 20485, 8233, 5462, 741, 16867, 6200, 4202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteInstance(t *testing.T) { var req DeleteInstanceRequest req.Init() req.SetFormat("JSON") req.SetRegionId("cn-shenzhen") var accessId = "Ie65kUInu5GeAsma" var accessSecret = "8cCqoxdYU9zKUihwXFXiN1HEACBDwB" resp, err := DeleteInstance(&req, accessId, accessSecret) if err != nil { t.Errorf("Error:...
explode_data.jsonl/54887
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 6435, 2523, 1155, 353, 8840, 836, 8, 341, 2405, 4232, 10428, 2523, 1900, 198, 24395, 26849, 741, 24395, 4202, 4061, 445, 5370, 1138, 24395, 4202, 14091, 764, 445, 14271, 7514, 78411, 1138, 2405, 2615, 764, 284, 330, 40, 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...
2
func TestSeekValidateIndexEntriesFile(t *testing.T) { dir, err := ioutil.TempDir("", "testdb") if err != nil { t.Fatal(err) } filePathPrefix := filepath.Join(dir, "") defer os.RemoveAll(dir) w := newTestWriter(t, filePathPrefix) writerOpts := DataWriterOpenOptions{ BlockSize: testBlockSize, Identifier: Fi...
explode_data.jsonl/10720
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 751 }
[ 2830, 3393, 39350, 17926, 1552, 24533, 1703, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 1944, 1999, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 17661, 1820, 14335, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestTypeException(t *testing.T) { l1 := &Leaf{1} nc := &NoCloneType{1} slice := InterfaceSlice{ l1, nc, } clone := CloneAST(slice) // change the original values l1.v = 99 nc.v = 99 expected := InterfaceSlice{ &Leaf{1}, // the change is not seen &NoCloneType{99}, // since this type is n...
explode_data.jsonl/24688
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 929, 1354, 1155, 353, 8840, 836, 8, 341, 8810, 16, 1669, 609, 31461, 90, 16, 532, 197, 1016, 1669, 609, 2753, 37677, 929, 90, 16, 630, 1903, 4754, 1669, 20019, 33236, 515, 197, 8810, 16, 345, 197, 197, 1016, 345, 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 TestRespondedState_Execute(t *testing.T) { mtps := []string{transport.MediaTypeDIDCommV2Profile, transport.MediaTypeRFC0019EncryptedEnvelope} for _, mtp := range mtps { prov := getProvider(t) tests := []struct { name string ctx *context }{ { name: "using context with ED25519 main VM and X255...
explode_data.jsonl/2097
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1973 }
[ 2830, 3393, 65354, 291, 1397, 83453, 1155, 353, 8840, 836, 8, 341, 2109, 96031, 1669, 3056, 917, 90, 26445, 63714, 35, 915, 17977, 53, 17, 8526, 11, 7557, 63714, 64371, 15, 15, 16, 24, 7408, 14026, 62712, 630, 2023, 8358, 296, 790, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStatsConnectFailed(t *testing.T) { opts := nsqdNs.NewOptions() opts.StatsdProtocol = "udp" opts.StatsdInterval = time.Second * 2 opts.StatsdAddress = "nsq-monitor.example.com:1234" opts.Logger = newTestLogger(t) nc := statsd.NewClient(opts.StatsdAddress, opts.StatsdPrefix) err := nc.CreateSocket(opts.St...
explode_data.jsonl/59840
{ "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, 16635, 14611, 9408, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 12268, 76727, 47360, 7121, 3798, 741, 64734, 7758, 1862, 67, 20689, 284, 330, 31101, 698, 64734, 7758, 1862, 67, 10256, 284, 882, 32435, 353, 220, 17, 198, 64734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteLogConf(t *testing.T) { t.Parallel() appProtectConfiguration := newConfigurationImpl() appProtectConfiguration.LogConfs["testing/test"] = &LogConfEx{} tests := []struct { key string expectedChanges []Change expectedProblems []Problem msg string }{ { key: "test...
explode_data.jsonl/45882
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 464 }
[ 2830, 3393, 6435, 2201, 15578, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 28236, 61547, 7688, 1669, 501, 7688, 9673, 741, 28236, 61547, 7688, 5247, 1109, 3848, 1183, 8840, 12697, 1341, 284, 609, 2201, 15578, 840, 16094, 78216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEntry_CursorColumn_Ends(t *testing.T) { entry := widget.NewEntry() entry.SetText("Hello") assert.Equal(t, 0, entry.CursorColumn) // down should go to end for last line down := &fyne.KeyEvent{Name: fyne.KeyDown} entry.TypedKey(down) assert.Equal(t, 5, entry.CursorColumn) assert.Equal(t, 0, entry.Cursor...
explode_data.jsonl/12314
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 203 }
[ 2830, 3393, 5874, 920, 3823, 2933, 49953, 82, 1155, 353, 8840, 836, 8, 341, 48344, 1669, 9086, 7121, 5874, 741, 48344, 92259, 445, 9707, 1138, 6948, 12808, 1155, 11, 220, 15, 11, 4343, 29929, 2933, 692, 197, 322, 1495, 1265, 728, 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...
1
func Test_toReceiverOptions(t *testing.T) { require.Nil(t, toReceiverOptions(nil)) require.EqualValues(t, &ReceiverOptions{ ReceiveMode: ReceiveModeReceiveAndDelete, }, toReceiverOptions(&SessionReceiverOptions{ ReceiveMode: ReceiveModeReceiveAndDelete, })) }
explode_data.jsonl/70566
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 2346, 25436, 3798, 1155, 353, 8840, 836, 8, 341, 17957, 59678, 1155, 11, 311, 25436, 3798, 27907, 4390, 17957, 12808, 6227, 1155, 11, 609, 25436, 3798, 515, 197, 197, 14742, 3636, 25, 37422, 3636, 14742, 3036, 6435, 345, 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 TestLXCConfig(t *testing.T) { root, err := ioutil.TempDir("", "TestLXCConfig") if err != nil { t.Fatal(err) } defer os.RemoveAll(root) // Memory is allocated randomly for testing rand.Seed(time.Now().UTC().UnixNano()) memMin := 33554432 memMax := 536870912 mem := memMin + rand.Intn(memMax-memMin) // CP...
explode_data.jsonl/4341
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 390 }
[ 2830, 3393, 43, 37946, 2648, 1155, 353, 8840, 836, 8, 341, 33698, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 2271, 43, 37946, 2648, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 2643, 84427, 9206, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLimitRangeDelete(t *testing.T) { ns := api.NamespaceDefault c := &testClient{ Request: testRequest{Method: "DELETE", Path: testapi.ResourcePath(getLimitRangesResourceName(), ns, "foo"), Query: buildQueryValues(nil)}, Response: Response{StatusCode: 200}, } err := c.Setup().LimitRanges(ns).Delete("foo")...
explode_data.jsonl/69632
{ "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, 16527, 6046, 6435, 1155, 353, 8840, 836, 8, 341, 84041, 1669, 6330, 46011, 3675, 198, 1444, 1669, 609, 1944, 2959, 515, 197, 73806, 25, 220, 1273, 1900, 90, 3523, 25, 330, 14424, 497, 7933, 25, 1273, 2068, 20766, 1820, 543...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenModel_Issue1347(t *testing.T) { specDoc, err := loads.Spec("../fixtures/bugs/1347/fixture-1347.yaml") require.NoError(t, err) definitions := specDoc.Spec().Definitions schema := definitions["ContainerConfig"] opts := opts() genModel, err := makeGenDefinition("ContainerConfig", "models", schema, specD...
explode_data.jsonl/2560
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 9967, 1712, 7959, 83890, 16, 18, 19, 22, 1155, 353, 8840, 836, 8, 341, 98100, 9550, 11, 1848, 1669, 20907, 36473, 17409, 45247, 14, 56176, 14, 16, 18, 19, 22, 14, 59612, 12, 16, 18, 19, 22, 33406, 1138, 17957, 35699, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDiskPressureCondition(t *testing.T) { now := time.Now() before := now.Add(-time.Second) nowFunc := func() time.Time { return now } cases := []struct { desc string node *v1.Node pressure bool expectConditions []v1.NodeCondition expectEvents []testEvent }{ { ...
explode_data.jsonl/31860
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1547 }
[ 2830, 3393, 47583, 68269, 10547, 1155, 353, 8840, 836, 8, 341, 80922, 1669, 882, 13244, 741, 63234, 1669, 1431, 1904, 4080, 1678, 32435, 340, 80922, 9626, 1669, 2915, 368, 882, 16299, 314, 470, 1431, 555, 1444, 2264, 1669, 3056, 1235, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEncodeBulkBytes(t *testing.T) { resp := NewBulkBytes(nil) testEncodeAndCheck(t, resp, []byte("$-1\r\n")) resp.Value = []byte{} testEncodeAndCheck(t, resp, []byte("$0\r\n\r\n")) resp.Value = []byte("helloworld!!") testEncodeAndCheck(t, resp, []byte("$12\r\nhelloworld!!\r\n")) }
explode_data.jsonl/48348
{ "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, 32535, 88194, 7078, 1155, 353, 8840, 836, 8, 341, 34653, 1669, 1532, 88194, 7078, 27907, 340, 18185, 32535, 3036, 3973, 1155, 11, 9039, 11, 3056, 3782, 20912, 12, 16, 12016, 1699, 5455, 34653, 6167, 284, 3056, 3782, 16094, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccComputeInstanceFromTemplate_overrideMetadataDotStartupScript(t *testing.T) { var instance compute.Instance instanceName := fmt.Sprintf("terraform-test-%s", acctest.RandString(10)) templateName := fmt.Sprintf("terraform-test-%s", acctest.RandString(10)) resourceName := "google_compute_instance_from_templ...
explode_data.jsonl/73321
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 305 }
[ 2830, 3393, 14603, 46254, 2523, 3830, 7275, 48576, 14610, 34207, 97799, 1155, 353, 8840, 836, 8, 341, 2405, 2867, 12564, 12688, 198, 56256, 675, 1669, 8879, 17305, 445, 61385, 16839, 11069, 82, 497, 1613, 67880, 2013, 437, 703, 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...
1
func TestIoBufferRead(t *testing.T) { b := newIoBuffer(0) data := make([]byte, 1) n, err := b.Read(data) if err != io.EOF { t.Errorf("Expect io.EOF but got %s", err) } if n != 0 { t.Errorf("Expect 0 bytes but got %d", n) } n, err = b.Read(nil) if n != 0 || err != nil { t.Errorf("Expect (0, nil) but go...
explode_data.jsonl/24056
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 341 }
[ 2830, 3393, 42799, 4095, 4418, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 501, 42799, 4095, 7, 15, 340, 8924, 1669, 1281, 10556, 3782, 11, 220, 16, 692, 9038, 11, 1848, 1669, 293, 6503, 2592, 340, 743, 1848, 961, 6399, 86492, 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...
8
func TestMapBug1(t *testing.T) { in := make(Bug1StructMap) in["val1"] = Bug1Elem{"elem1", 1} in["val2"] = Bug1Elem{"elem2", 2} b := new(bytes.Buffer) enc := NewEncoder(b) err := enc.Encode(in) if err != nil { t.Fatal("encode:", err) } dec := NewDecoder(b) out := make(Bug1StructMap) err = dec.Decode(&out) ...
explode_data.jsonl/43397
{ "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, 2227, 46773, 16, 1155, 353, 8840, 836, 8, 341, 17430, 1669, 1281, 5349, 768, 16, 9422, 2227, 340, 17430, 1183, 831, 16, 1341, 284, 30501, 16, 25586, 4913, 18871, 16, 497, 220, 16, 532, 17430, 1183, 831, 17, 1341, 284, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestGetServiceHostname(t *testing.T) { testCases := []struct { name string expectedHostName string predictorHostName string }{ { name: "using knative domainTemplate: {{.Name}}.{{.Namespace}}.{{.Domain}}", expectedHostName: "kftest.user1.example.com", predictorHostNam...
explode_data.jsonl/3044
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 400 }
[ 2830, 3393, 1949, 1860, 88839, 1155, 353, 8840, 836, 8, 1476, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 1060, 914, 198, 197, 42400, 85305, 220, 914, 198, 197, 3223, 8861, 269, 85305, 914, 198, 197, 59403, 197, 197, 515, 298, 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...
2
func TestInsertFinalNewlineInvalidSpec(t *testing.T) { ctx := context.TODO() for _, f := range []string{"no_final_newline.txt", "with_final_newline.md"} { errs := eclint.Lint(ctx, fmt.Sprintf("./testdata/insert_final_newline/%s", f)) if len(errs) == 0 { t.Errorf("one error was expected, got none") } } }
explode_data.jsonl/82397
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 13780, 19357, 3564, 1056, 7928, 8327, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 90988, 2822, 2023, 8358, 282, 1669, 2088, 3056, 917, 4913, 2152, 20676, 5921, 1056, 3909, 497, 330, 4197, 20676, 5921, 1056, 21324, 9207, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPeriodicalExecutor_WaitFast(t *testing.T) { const total = 3 var cnt int var lock sync.Mutex executer := NewBulkExecutor(func(tasks []interface{}) { defer func() { cnt++ }() lock.Lock() defer lock.Unlock() time.Sleep(10 * time.Millisecond) }, WithBulkTasks(1), WithBulkInterval(10*time.Millisec...
explode_data.jsonl/57501
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 23750, 938, 25255, 2763, 1315, 32174, 1155, 353, 8840, 836, 8, 341, 4777, 2790, 284, 220, 18, 198, 2405, 13195, 526, 198, 2405, 5296, 12811, 99014, 198, 67328, 27951, 1669, 1532, 88194, 25255, 18552, 70339, 3056, 4970, 28875, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDynamicPython(t *testing.T) { var randomVal string integration.ProgramTest(t, &integration.ProgramTestOptions{ Dir: filepath.Join("dynamic", "python"), Dependencies: []string{ path.Join("..", "..", "sdk", "python", "env", "src"), }, ExtraRuntimeValidation: func(t *testing.T, stack integration.Runt...
explode_data.jsonl/76371
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 21752, 30280, 1155, 353, 8840, 836, 8, 341, 2405, 4194, 2208, 914, 198, 2084, 17376, 80254, 2271, 1155, 11, 609, 60168, 80254, 2271, 3798, 515, 197, 197, 6184, 25, 26054, 22363, 445, 21544, 497, 330, 12669, 4461, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSetParsing(t *testing.T) { diceSet, err := ParseSet("3d8") if err != nil { t.Fatalf(`err = %v, want nil`, err) } if c := diceSet.Count; c != 3 { t.Fatalf(`diceSet.Count = %v, want 3`, c) } if die := diceSet.Of; die != 8 { t.Fatalf(`diceSet.Of = %v, want 8`, die) } }
explode_data.jsonl/67868
{ "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, 68839, 1155, 353, 8840, 836, 8, 341, 2698, 558, 1649, 11, 1848, 1669, 14775, 1649, 445, 18, 67, 23, 5130, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 5809, 615, 284, 1018, 85, 11, 1366, 2092, 7808, 1848, 340, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestPrimitives(t *testing.T) { const record = `{x:10 (int32),f:2.5,s:"hello"} (=0)` // Test simple literals testSuccessful(t, "50", record, zint64(50)) testSuccessful(t, "3.14", record, zfloat64(3.14)) testSuccessful(t, `"boo"`, record, zstring("boo")) // Test good field references testSuccessful(t, "x", ...
explode_data.jsonl/2306
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 178 }
[ 2830, 3393, 3533, 35209, 1155, 353, 8840, 836, 8, 341, 4777, 3255, 284, 53692, 87, 25, 16, 15, 320, 396, 18, 17, 701, 69, 25, 17, 13, 20, 10671, 2974, 14990, 9207, 38738, 15, 8, 19324, 197, 322, 3393, 4285, 75275, 198, 18185, 3637...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Response_RST_Unblocks_LargeWrite(t *testing.T) { const size = 1 << 20 const maxFrameSize = 16 << 10 testServerResponse(t, func(w http.ResponseWriter, r *http.Request) error { w.(http.Flusher).Flush() errc := make(chan error, 1) go func() { _, err := w.Write(bytes.Repeat([]byte("a"), size)) ...
explode_data.jsonl/71671
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 447 }
[ 2830, 3393, 5475, 65873, 64093, 40687, 21928, 2351, 2744, 7985, 1155, 353, 8840, 836, 8, 341, 4777, 1379, 284, 220, 16, 1115, 220, 17, 15, 198, 4777, 1932, 4369, 1695, 284, 220, 16, 21, 1115, 220, 16, 15, 198, 18185, 5475, 2582, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1