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 TestConnectLookupdList(t *testing.T) { Convey("Given list of lookupd address", t, func() { Convey("It should not produce any error", func() { err := ConnectLookupdList(lookupdHTTPAddrs) So(err, ShouldEqual, nil) }) }) Convey("Given list of wrong lookupd address", t, func() { Convey("It should not p...
explode_data.jsonl/5603
{ "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, 14611, 34247, 67, 852, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 22043, 1140, 315, 18615, 67, 2621, 497, 259, 11, 2915, 368, 341, 197, 93070, 5617, 445, 2132, 1265, 537, 8193, 894, 1465, 497, 2915, 368, 341, 298, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewReceiver_version_err(t *testing.T) { c := Config{ Encoding: defaultEncoding, ProtocolVersion: "none", } r, err := newReceiver(c, component.ReceiverCreateParams{}, defaultUnmarshallers(), consumertest.NewTracesNop()) assert.Error(t, err) assert.Nil(t, r) }
explode_data.jsonl/2055
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 3564, 25436, 9438, 9266, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 5532, 515, 197, 197, 14690, 25, 286, 1638, 14690, 345, 197, 197, 20689, 5637, 25, 330, 6697, 756, 197, 532, 7000, 11, 1848, 1669, 501, 25436, 1337, 11, 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 TestContrast(t *testing.T) { cases := []struct { desc string change float64 value image.Image expected *image.RGBA }{ { desc: "1.0", change: 1.0, value: &image.RGBA{ Rect: image.Rect(0, 0, 2, 2), Stride: 8, Pix: []uint8{ 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0...
explode_data.jsonl/5952
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1717 }
[ 2830, 3393, 41437, 559, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 41653, 257, 914, 198, 197, 68380, 256, 2224, 21, 19, 198, 197, 16309, 262, 2168, 7528, 198, 197, 42400, 353, 1805, 80114, 32, 198, 197, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEngine_InitializeMetrics(t *testing.T) { engine := NewDefaultEngine() engine.MustOpen() reg := prometheus.NewRegistry() reg.MustRegister(engine.PrometheusCollectors()...) mfs, err := reg.Gather() if err != nil { t.Fatal(err) } files := promtest.MustFindMetric(t, mfs, "storage_tsm_files_total", pro...
explode_data.jsonl/5989
{ "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, 4571, 62, 9928, 27328, 1155, 353, 8840, 836, 8, 341, 80118, 1669, 1532, 3675, 4571, 2822, 80118, 50463, 5002, 741, 37013, 1669, 2706, 39705, 7121, 15603, 741, 37013, 50463, 8690, 48974, 1069, 441, 39705, 47504, 1087, 368, 6182...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDownloadSyncthing(t *testing.T) { var tests = []struct { os string arch string }{ {os: "windows", arch: "amd64"}, {os: "darwin", arch: "amd64"}, {os: "darwin", arch: "arm64"}, {os: "linux", arch: "amd64"}, {os: "linux", arch: "arm64"}, {os: "linux", arch: "arm"}, } ctx := context.Backgro...
explode_data.jsonl/37549
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 398 }
[ 2830, 3393, 11377, 37134, 91821, 287, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 25078, 256, 914, 198, 197, 197, 1113, 914, 198, 197, 59403, 197, 197, 90, 436, 25, 330, 27077, 497, 5325, 25, 330, 67913, 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...
4
func Test_MockReturnAndCalledConcurrent(t *testing.T) { iterations := 1000 m := &Mock{} call := m.On("ConcurrencyTestMethod") wg := sync.WaitGroup{} wg.Add(2) go func() { for i := 0; i < iterations; i++ { call.Return(10) } wg.Done() }() go func() { for i := 0; i < iterations; i++ { ...
explode_data.jsonl/8630
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 194 }
[ 2830, 3393, 1245, 1176, 5598, 3036, 20960, 1109, 3231, 1155, 353, 8840, 836, 8, 972, 197, 67584, 1669, 220, 16, 15, 15, 15, 319, 2109, 1669, 609, 11571, 90, 1771, 67288, 1669, 296, 8071, 445, 79611, 22928, 30218, 72079, 1669, 12811, 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...
2
func TestMsgVote(t *testing.T) { _, _, addr := testdata.KeyTestPubAddr() memberAddr := addr.String() specs := map[string]struct { src MsgVoteRequest expErr bool }{ "all good with minimum fields set": { src: MsgVoteRequest{ ProposalId: 1, Choice: Choice_CHOICE_YES, Voter: memberAddr...
explode_data.jsonl/82402
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 708 }
[ 2830, 3393, 6611, 41412, 1155, 353, 8840, 836, 8, 341, 197, 6878, 8358, 10789, 1669, 1273, 691, 9610, 2271, 29162, 13986, 741, 2109, 1377, 13986, 1669, 10789, 6431, 2822, 98100, 82, 1669, 2415, 14032, 60, 1235, 341, 197, 41144, 262, 242...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntegration_CreateTaskAndExecute(t *testing.T) { scheduler := server.NewScheduler() server := httptest.NewServer(http.HandlerFunc(scheduler.TaskHandler)) defer server.Close() client := client.Client{Url: server.URL} createdTask, err := client.Execute("hostname") if err != nil { t.Error(err) } tra...
explode_data.jsonl/62111
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 196 }
[ 2830, 3393, 52464, 34325, 6262, 3036, 17174, 1155, 353, 8840, 836, 8, 1476, 1903, 15222, 1669, 3538, 7121, 38878, 741, 41057, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 1141, 15222, 28258, 3050, 1171, 16867, 3538, 10421, 2822, 25291, 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...
3
func TestRepository_SaveAffiliateExtra(t *testing.T) { db, err := sqlx.Connect("pgx", "host=localhost port=5432 user=postgres dbname=juno password=postgres sslmode=disable") if err != nil { t.Fatal(err) } // Create the codec codec := simapp.MakeTestEncodingConfig() type args struct { msg []*accountstypes.Ms...
explode_data.jsonl/62714
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1001 }
[ 2830, 3393, 4624, 78746, 25841, 34850, 11612, 1155, 353, 8840, 836, 8, 341, 20939, 11, 1848, 1669, 5704, 87, 43851, 445, 3517, 87, 497, 330, 3790, 84551, 2635, 28, 20, 19, 18, 17, 1196, 28, 43070, 83492, 45612, 16311, 3552, 28, 43070,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResponseRouterBadCorrelationID(t *testing.T) { messageWithBadCorrelationID := &amqp.Message{ Properties: &amqp.MessageProperties{ CorrelationID: uint64(1), }, } receiver := &fakeReceiver{ Responses: []rpcResponse{ {messageWithBadCorrelationID, nil}, {nil, amqp.ErrLinkClosed}, }, } link ...
explode_data.jsonl/57203
{ "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, 2582, 9523, 17082, 10580, 22221, 915, 1155, 353, 8840, 836, 8, 341, 24753, 2354, 17082, 10580, 22221, 915, 1669, 609, 309, 32763, 8472, 515, 197, 197, 7903, 25, 609, 309, 32763, 8472, 7903, 515, 298, 6258, 269, 22221, 915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWriteConfigDotEnv(t *testing.T) { fs := afero.NewMemMapFs() testCases := map[string]struct { configName string configType string fileName string input []byte }{ "with file extension": { configName: "c", configType: "env", fileName: "c.env", input: dotenvExample, }, "w...
explode_data.jsonl/9909
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 611 }
[ 2830, 3393, 7985, 2648, 34207, 14359, 1155, 353, 8840, 836, 8, 341, 53584, 1669, 264, 802, 78, 7121, 18816, 2227, 48300, 741, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 25873, 675, 914, 198, 197, 25873, 929, 914, 198, 197, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestNewSecureString(t *testing.T) { str, err := NewSecureString(0) require.NoError(t, err) require.Empty(t, str) for i := 1; i <= 1024; i++ { str, err = NewSecureString(i) require.NoError(t, err) require.NotEmpty(t, str) require.Len(t, str, i) } }
explode_data.jsonl/13672
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 115 }
[ 2830, 3393, 3564, 49813, 703, 1155, 353, 8840, 836, 8, 341, 11355, 11, 1848, 1669, 1532, 49813, 703, 7, 15, 340, 17957, 35699, 1155, 11, 1848, 340, 17957, 11180, 1155, 11, 607, 692, 2023, 600, 1669, 220, 16, 26, 600, 2651, 220, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGCSInit(t *testing.T) { testCases := []struct { testcase gcsTestCase output error prefix string }{ { testcase: gcsTestCase{ client: validClient, conf: validConfig, }, output: nil, }, { testcase: gcsTestCase{ client: &gcsMockClient{ bucketErr: errTest, }, ...
explode_data.jsonl/66361
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 506 }
[ 2830, 3393, 38, 6412, 3803, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 18185, 5638, 342, 4837, 16458, 198, 197, 21170, 256, 1465, 198, 197, 3223, 5060, 256, 914, 198, 197, 59403, 197, 197, 515, 298, 18185,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartCmdWithMissingClientIDArg(t *testing.T) { startCmd := GetStartCmd(&mockServer{}) var args []string args = append(args, hostURLArg()...) args = append(args, endpointAuthURLArg()...) args = append(args, endpointTokenURLArg()...) args = append(args, clientRedirectURLArg()...) startCmd.SetArgs(args) ...
explode_data.jsonl/23760
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 163 }
[ 2830, 3393, 3479, 15613, 2354, 25080, 2959, 915, 2735, 1155, 353, 8840, 836, 8, 341, 21375, 15613, 1669, 2126, 3479, 15613, 2099, 16712, 5475, 6257, 692, 2405, 2827, 3056, 917, 198, 31215, 284, 8737, 7356, 11, 3468, 3144, 2735, 368, 312...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContainerWait(t *testing.T) { expectedURL := "/containers/container_id/wait" client := &Client{ client: newMockClient(func(req *http.Request) (*http.Response, error) { if !strings.HasPrefix(req.URL.Path, expectedURL) { return nil, fmt.Errorf("Expected URL '%s', got '%s'", expectedURL, req.URL) } ...
explode_data.jsonl/66423
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 347 }
[ 2830, 3393, 4502, 14190, 1155, 353, 8840, 836, 8, 341, 42400, 3144, 1669, 3521, 39399, 83897, 842, 86103, 698, 25291, 1669, 609, 2959, 515, 197, 25291, 25, 501, 11571, 2959, 18552, 6881, 353, 1254, 9659, 8, 4609, 1254, 12574, 11, 1465, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStrong(t *testing.T) { var tests = []string{ "nothing inline\n", "<p>nothing inline</p>\n", "simple **inline** test\n", "<p>simple <strong>inline</strong> test</p>\n", "**at the** beginning\n", "<p><strong>at the</strong> beginning</p>\n", "at the **end**\n", "<p>at the <strong>end</strong>...
explode_data.jsonl/57348
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 628 }
[ 2830, 3393, 47586, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 917, 515, 197, 197, 1, 41212, 7381, 1699, 756, 197, 197, 22476, 79, 29, 41212, 7381, 522, 79, 8449, 77, 25897, 197, 197, 1, 22944, 3070, 5057, 334, 1273, 1699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFind(t *testing.T) { t.Run("return nil if path does not contain any dot and there is no value with the given path", func(t *testing.T) { object := Object{"a": Int(1)} got := object.find("b") assertNil(t, got) }) t.Run("find the value with the path that does not contain any dot", func(t *testing.T) { ...
explode_data.jsonl/4128
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 306 }
[ 2830, 3393, 9885, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 689, 2092, 421, 1815, 1558, 537, 6644, 894, 12756, 323, 1052, 374, 902, 897, 448, 279, 2661, 1815, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 35798, 1669, 3002, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFromYAMLToYAMLWithNotif(t *testing.T) { tests := []struct { name string yaml string wantErr bool }{ { name: "two pipelines with one notif", yaml: `name: test-notif-1 version: v2.0 workflow: test: pipeline: test test_2: depends_on: - test when: - success pipelin...
explode_data.jsonl/10300
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1811 }
[ 2830, 3393, 3830, 56, 31102, 1249, 56, 31102, 2354, 2623, 333, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 14522, 9467, 262, 914, 198, 197, 50780, 7747, 1807, 198, 197, 59403, 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...
7
func TestSysdateIsNow(t *testing.T) { store, clean := realtikvtest.CreateMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustQuery("show variables like '%tidb_sysdate_is_now%'").Check(testkit.Rows("tidb_sysdate_is_now OFF")) require.False(t, tk.Session().GetSessio...
explode_data.jsonl/5711
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 226 }
[ 2830, 3393, 32792, 1028, 3872, 7039, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1931, 83, 1579, 85, 1944, 7251, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAddDimensionToInstanceReturnsForbidden(t *testing.T) { t.Parallel() Convey("Add a dimension to a published instance returns forbidden", t, func() { json := strings.NewReader(`{"value":"24", "code_list":"123-456", "dimension": "test"}`) r, err := createRequestWithToken("POST", "http://localhost:21800/inst...
explode_data.jsonl/20836
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 339 }
[ 2830, 3393, 2212, 26121, 1249, 2523, 16446, 69115, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 93070, 5617, 445, 2212, 264, 12871, 311, 264, 4652, 2867, 4675, 36813, 497, 259, 11, 2915, 368, 341, 197, 30847, 1669, 9069, 68587,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnimportService(t *testing.T) { for _, mode := range []EndpointMode{EndpointsOnly, EndpointSliceOnly} { t.Run(mode.String(), func(t *testing.T) { // Create and run the controller. c, ic, cleanup := newTestServiceImportCache(mode) defer cleanup() ic.createKubeService(t, c) ic.createServiceImp...
explode_data.jsonl/50096
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 170 }
[ 2830, 3393, 1806, 474, 1860, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 3856, 1669, 2088, 3056, 27380, 3636, 90, 80786, 7308, 11, 47269, 33236, 7308, 92, 341, 197, 3244, 16708, 31356, 6431, 1507, 2915, 1155, 353, 8840, 836, 8, 341, 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...
1
func TestClientNodeID(t *testing.T) { defer leaktest.AfterTest(t)() stopper := stop.NewStopper() disconnected := make(chan *client, 1) localNodeID := roachpb.NodeID(1) local, remote := startFakeServerGossips(t, localNodeID, stopper) // Use an insecure context. We're talking to tcp socket which are not in the c...
explode_data.jsonl/18546
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 456 }
[ 2830, 3393, 2959, 1955, 915, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 62644, 712, 1669, 2936, 7121, 10674, 712, 741, 34597, 15288, 1669, 1281, 35190, 353, 2972, 11, 220, 16, 692, 8854, 1955, 915, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCounterList(t *testing.T) { clist := NewList() fc := NewFloat("myfloat") uc := NewUint("myuint") ic := NewInt("myint") err := clist.Add(fc) if err != nil { t.Fatal(err) } err = clist.Add(uc) if err != nil { t.Fatal(err) } err = clist.Add(ic) i...
explode_data.jsonl/27968
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 662 }
[ 2830, 3393, 14099, 852, 1155, 353, 8840, 836, 8, 341, 262, 1185, 380, 1669, 1532, 852, 2822, 262, 25563, 1669, 1532, 5442, 445, 2408, 3649, 1138, 262, 25721, 1669, 1532, 21570, 445, 2408, 2496, 1138, 262, 17902, 1669, 1532, 1072, 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 TestSetValidBlockOnDelayedProposal(t *testing.T) { config := configSetup(t) ctx, cancel := context.WithCancel(context.Background()) defer cancel() cs1, vss := makeState(ctx, t, makeStateArgs{config: config}) vs2, vs3, vs4 := vss[1], vss[2], vss[3] height, round := cs1.Height, cs1.Round partSize := types.B...
explode_data.jsonl/54277
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 848 }
[ 2830, 3393, 1649, 4088, 4713, 1925, 57361, 98637, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 2193, 21821, 1155, 340, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 2822, 71899, 16, 11, 348, 778, 1669, 1281, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpsertSQLMissingWhere(t *testing.T) { _, _, err := Upsert("tab").Columns("b", "c").Values(1, 2).ToSQL() assert.Error(t, err) }
explode_data.jsonl/32407
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 58 }
[ 2830, 3393, 98778, 529, 6688, 25080, 9064, 1155, 353, 8840, 836, 8, 341, 197, 6878, 8358, 1848, 1669, 71316, 529, 445, 6192, 1827, 13965, 445, 65, 497, 330, 66, 1827, 6227, 7, 16, 11, 220, 17, 568, 1249, 6688, 741, 6948, 6141, 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
func TestStop(t *testing.T) { redisPool := &redis.Pool{ Dial: func() (redis.Conn, error) { c, err := redis.Dial("tcp", "notworking:6379", redis.DialConnectTimeout(1*time.Second)) if err != nil { return nil, err } return c, nil }, } wp := NewWorkerPool(TestContext{}, 10, "work", redisPool) wp.Sta...
explode_data.jsonl/35601
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 10674, 1155, 353, 8840, 836, 8, 341, 197, 21748, 10551, 1669, 609, 21748, 89701, 515, 197, 10957, 530, 25, 2915, 368, 320, 21748, 50422, 11, 1465, 8, 341, 298, 1444, 11, 1848, 1669, 20870, 98462, 445, 27161, 497, 330, 1921...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEqualsOrContainsPath(t *testing.T) { testEqualsOrContainsPath(t, true, "a.proto", "a.proto") testEqualsOrContainsPath(t, true, ".", "a.proto") testEqualsOrContainsPath(t, false, "a.proto", ".") testEqualsOrContainsPath(t, true, ".", "a/b.proto") testEqualsOrContainsPath(t, true, ".", "a/b") testEqualsOrC...
explode_data.jsonl/11907
{ "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, 4315, 2195, 23805, 1820, 1155, 353, 8840, 836, 8, 341, 18185, 4315, 2195, 23805, 1820, 1155, 11, 830, 11, 330, 64, 57322, 497, 330, 64, 57322, 1138, 18185, 4315, 2195, 23805, 1820, 1155, 11, 830, 11, 68514, 330, 64, 57322,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReturnsErrorWhenPagerDutyNotPresent(t *testing.T) { t.Parallel() ns := &core_v1.Namespace{ TypeMeta: meta_v1.TypeMeta{}, ObjectMeta: meta_v1.ObjectMeta{ Name: namespaceName, Labels: map[string]string{ voyager.ServiceNameLabel: serviceName, }, }, } tc := testCase{ mainClientObjects: [...
explode_data.jsonl/4268
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 495 }
[ 2830, 3393, 16446, 1454, 4498, 22640, 35, 20237, 2623, 21195, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 84041, 1669, 609, 2153, 2273, 16, 46011, 515, 197, 27725, 12175, 25, 8823, 2273, 16, 10184, 12175, 38837, 197, 23816, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFileName(t *testing.T) { t.Run("Valid composite key", func(t *testing.T) { key := getFileName("app_id||key") assert.Equal(t, "key", key) }) t.Run("No delimiter present", func(t *testing.T) { key := getFileName("key") assert.Equal(t, "key", key) }) }
explode_data.jsonl/24157
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 115 }
[ 2830, 3393, 10903, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4088, 27714, 1376, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 23634, 1669, 633, 10903, 445, 676, 842, 8484, 792, 1138, 197, 6948, 12808, 1155, 11, 330, 792, 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 TestAssignOp(t *testing.T) { gopClTest(t, ` var x uint32 x += 3 `, `package main var x uint32 func main() { x += 3 } `) }
explode_data.jsonl/73624
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 61 }
[ 2830, 3393, 28933, 7125, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 947, 856, 2622, 18, 17, 198, 87, 1421, 220, 18, 198, 7808, 1565, 1722, 1887, 271, 947, 856, 2622, 18, 17, 271, 2830, 1887, 368, 341, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewMappingRuleSnapshotStoragePoliciesAndDropPolicy(t *testing.T) { proto := &rulepb.MappingRuleSnapshot{ StoragePolicies: []*policypb.StoragePolicy{ &policypb.StoragePolicy{ Resolution: policypb.Resolution{ WindowSize: 10 * time.Second.Nanoseconds(), Precision: time.Second.Nanoseconds(), ...
explode_data.jsonl/64567
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 253 }
[ 2830, 3393, 3564, 6807, 11337, 15009, 5793, 47, 42038, 3036, 19871, 13825, 1155, 353, 8840, 836, 8, 341, 197, 15110, 1669, 609, 12937, 16650, 76455, 11337, 15009, 515, 197, 197, 5793, 47, 42038, 25, 29838, 79, 7762, 1082, 65, 43771, 138...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEth_GetTransactionReceipt(t *testing.T) { hash := sendTestTransaction(t) time.Sleep(time.Second * 5) param := []string{hash.String()} rpcRes := call(t, "eth_getTransactionReceipt", param) require.Nil(t, rpcRes.Error) receipt := make(map[string]interface{}) err := json.Unmarshal(rpcRes.Result, &receip...
explode_data.jsonl/855
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 196 }
[ 2830, 3393, 65390, 13614, 8070, 67461, 1155, 353, 8840, 836, 8, 341, 50333, 1669, 3624, 2271, 8070, 1155, 692, 21957, 31586, 9730, 32435, 353, 220, 20, 692, 36037, 1669, 3056, 917, 90, 8296, 6431, 23509, 7000, 3992, 1061, 1669, 1618, 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 TestValidateHTTPStatus(t *testing.T) { testCases := []struct { in int32 valid bool }{ {-100, false}, {0, true}, {200, true}, {600, true}, {601, false}, } for _, tc := range testCases { if got := validateHTTPStatus(tc.in); (got == nil) != tc.valid { t.Errorf("validateHTTPStatus(%d) => got...
explode_data.jsonl/56911
{ "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, 17926, 9230, 2522, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 17430, 262, 526, 18, 17, 198, 197, 56322, 1807, 198, 197, 59403, 197, 197, 19999, 16, 15, 15, 11, 895, 1583, 197, 197, 90, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGoLevelDBNewGoLevelDB(t *testing.T) { name := fmt.Sprintf("test_%x", cmn.RandStr(12)) defer cleanupDBDir("", name) // Test we can't open the db twice for writing wr1, err := NewGoLevelDB(name, "") require.Nil(t, err) _, err = NewGoLevelDB(name, "") require.NotNil(t, err) wr1.Close() // Close the db to...
explode_data.jsonl/18328
{ "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, 10850, 4449, 3506, 3564, 10850, 4449, 3506, 1155, 353, 8840, 836, 8, 341, 11609, 1669, 8879, 17305, 445, 1944, 18695, 87, 497, 9961, 77, 2013, 437, 2580, 7, 16, 17, 1171, 16867, 21290, 3506, 6184, 19814, 829, 692, 197, 322...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSqrt(t *testing.T) { num := sdk.NewDecWithPrec(144, 4) floatNum, err := strconv.ParseFloat(num.String(), 64) require.NoError(t, err) floatNum = math.Sqrt(floatNum) num, err = sdk.NewDecFromStr(fmt.Sprintf("%f", floatNum)) require.NoError(t, err) require.Equal(t, sdk.NewDecWithPrec(12, 2), num) }
explode_data.jsonl/38392
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 138 }
[ 2830, 3393, 50, 8140, 1155, 353, 8840, 836, 8, 341, 22431, 1669, 45402, 7121, 4900, 2354, 68833, 7, 16, 19, 19, 11, 220, 19, 340, 8139, 4651, 11, 1848, 1669, 33317, 8937, 5442, 8068, 6431, 1507, 220, 21, 19, 340, 17957, 35699, 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 TestModifyAccountDescription(t *testing.T) { var req ModifyAccountDescriptionRequest req.Init() req.SetFormat("JSON") req.SetRegionId("cn-shenzhen") var accessId = "Ie65kUInu5GeAsma" var accessSecret = "8cCqoxdYU9zKUihwXFXiN1HEACBDwB" resp, err := ModifyAccountDescription(&req, accessId, accessSecret) if e...
explode_data.jsonl/74847
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 168 }
[ 2830, 3393, 44427, 7365, 5009, 1155, 353, 8840, 836, 8, 341, 2405, 4232, 49370, 7365, 5009, 1900, 198, 24395, 26849, 741, 24395, 4202, 4061, 445, 5370, 1138, 24395, 4202, 14091, 764, 445, 14271, 7514, 78411, 1138, 2405, 2615, 764, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientNewBasicAuth(t *testing.T) { c := bitbucket.NewBasicAuth("example", "password") r := reflect.ValueOf(c) if r.Type().String() != "*bitbucket.Client" { t.Error("Unknown error by `NewBasicAuth`.") } }
explode_data.jsonl/67689
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 82 }
[ 2830, 3393, 2959, 3564, 15944, 5087, 1155, 353, 8840, 836, 8, 1476, 1444, 1669, 2699, 30410, 7121, 15944, 5087, 445, 8687, 497, 330, 3833, 5130, 7000, 1669, 8708, 6167, 2124, 1337, 692, 743, 435, 10184, 1005, 703, 368, 961, 15630, 4489,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRxPk(t *testing.T) { // setup jsonFile, err := os.Open("../test.json") if err != nil { t.Fatal("error opening json testfile:", err) } defer jsonFile.Close() lineScanner := bufio.NewScanner(jsonFile) // tests t.Run("A", func(t *testing.T) { for lineScanner.Scan() { err := json.Unmarshal(lineScan...
explode_data.jsonl/68418
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 624 }
[ 2830, 3393, 50639, 58415, 1155, 353, 8840, 836, 8, 341, 197, 322, 6505, 198, 30847, 1703, 11, 1848, 1669, 2643, 12953, 17409, 1944, 4323, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 445, 841, 8568, 2951, 1273, 1192, 12147, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestContext2Plan_invalidModuleOutput(t *testing.T) { m := testModuleInline(t, map[string]string{ "child/main.tf": ` data "aws_data_source" "name" {} output "out" { value = "${data.aws_data_source.name.missing}" }`, "main.tf": ` module "child" { source = "./child" } resource "aws_instance" "foo" { foo ...
explode_data.jsonl/28727
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 388 }
[ 2830, 3393, 1972, 17, 20485, 31433, 3332, 5097, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1273, 3332, 25324, 1155, 11, 2415, 14032, 30953, 515, 197, 197, 1, 3048, 15351, 68994, 788, 22074, 691, 330, 8635, 1769, 10347, 1, 330, 606, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidate(t *testing.T) { dir := fs.NewDir(t, "xcuitest-config", fs.WithFile("test.ipa", "", fs.WithMode(0655)), fs.WithFile("test.zip", "", fs.WithMode(0655))) defer dir.Remove() appIPA := filepath.Join(dir.Path(), "test.ipa") appZIP := filepath.Join(dir.Path(), "test.zip") badAppIPA := filepath.Join(...
explode_data.jsonl/79919
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1098 }
[ 2830, 3393, 17926, 1155, 353, 8840, 836, 8, 341, 48532, 1669, 8619, 7121, 6184, 1155, 11, 330, 8148, 3083, 477, 25130, 756, 197, 53584, 26124, 1703, 445, 1944, 23171, 64, 497, 7342, 8619, 26124, 3636, 7, 15, 21, 20, 20, 6965, 197, 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...
7
func TestIsRegular(t *testing.T) { wd, err := os.Getwd() if err != nil { t.Fatal(err) } var fn string cleanup := setupInaccessibleDir(t, func(dir string) error { fn = filepath.Join(dir, "file") fh, err := os.Create(fn) if err != nil { return err } return fh.Close() }) defer cle...
explode_data.jsonl/72216
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 630 }
[ 2830, 3393, 3872, 30404, 1155, 353, 8840, 836, 8, 972, 197, 6377, 11, 1848, 1669, 2643, 2234, 6377, 3568, 743, 1848, 961, 2092, 972, 197, 3244, 26133, 3964, 1218, 197, 2570, 2405, 5168, 914, 871, 1444, 60639, 1669, 6505, 641, 62347, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestLQSolveToCond(t *testing.T) { for _, test := range []*Dense{ NewDense(2, 2, []float64{1, 0, 0, 1e-20}), NewDense(2, 3, []float64{1, 0, 0, 0, 1e-20, 0}), } { m, _ := test.Dims() var lq LQ lq.Factorize(test) b := NewDense(m, 2, nil) var x Dense if err := lq.SolveTo(&x, false, b); err == nil { ...
explode_data.jsonl/15097
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 272 }
[ 2830, 3393, 43, 70810, 3948, 1249, 49696, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 29838, 35, 1117, 515, 197, 197, 3564, 35, 1117, 7, 17, 11, 220, 17, 11, 3056, 3649, 21, 19, 90, 16, 11, 220, 15, 11, 220, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestBatchLogProcessor_Shutdown(t *testing.T) { cfg := Config{ ProcessorSettings: config.NewProcessorSettings(config.NewComponentID(typeStr)), Timeout: 3 * time.Second, SendBatchSize: 1000, } requestCount := 5 logsPerRequest := 10 sink := new(consumertest.LogsSink) creationSet := componen...
explode_data.jsonl/25033
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 336 }
[ 2830, 3393, 21074, 2201, 22946, 36578, 18452, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 5532, 515, 197, 197, 22946, 6086, 25, 2193, 7121, 22946, 6086, 8754, 7121, 2189, 915, 5808, 2580, 6965, 197, 197, 7636, 25, 1843, 220, 18, 353, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestUDPSendMsgAltLogic(t *testing.T) { const expectedIPv4 = "6 probe=0 pid=1234 tid=1235 udp_sendmsg(sock=0x0, size=0, 10.11.12.13:1010 -> 10.20.30.40:1234)" const expectedIPv6 = "6 probe=0 pid=1234 tid=1235 udpv6_sendmsg(sock=0x0, size=0, [fddd::bebe]:1010 -> [fddd::cafe]:1234)" t.Run("ipv4 non-connected", fun...
explode_data.jsonl/70817
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1018 }
[ 2830, 3393, 4656, 5012, 408, 6611, 26017, 26751, 1155, 353, 8840, 836, 8, 341, 4777, 3601, 58056, 19, 284, 330, 21, 21730, 28, 15, 14814, 28, 16, 17, 18, 19, 13112, 28, 16, 17, 18, 20, 49219, 13565, 3236, 30850, 28, 15, 87, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMigrate(t *testing.T) { parentPostCreator, err := sdk.AccAddressFromBech32("cosmos1y54exmx84cqtasvjnskf9f63djuuj68p7hqf47") require.NoError(t, err) postCreator, err := sdk.AccAddressFromBech32("cosmos1cjf97gpzwmaf30pzvaargfgr884mpp5ak8f7ns") require.NoError(t, err) parentCreationTime := time.Now().UTC()...
explode_data.jsonl/81206
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2234 }
[ 2830, 3393, 44, 34479, 1155, 353, 8840, 836, 8, 341, 24804, 4133, 31865, 11, 1848, 1669, 45402, 77538, 4286, 3830, 3430, 331, 18, 17, 445, 9407, 8631, 16, 88, 20, 19, 327, 18085, 23, 19, 66, 23044, 300, 72773, 4412, 81869, 24, 69, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOperator_Operands(t *testing.T) { t.Run("with generics - float32", testOperatorOperands[float32]) t.Run("with generics - float64", testOperatorOperands[float64]) }
explode_data.jsonl/49575
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 61 }
[ 2830, 3393, 18461, 2232, 712, 2844, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4197, 95545, 481, 2224, 18, 17, 497, 1273, 18461, 5494, 2844, 95381, 18, 17, 2546, 3244, 16708, 445, 4197, 95545, 481, 2224, 21, 19, 497, 1273, 18461,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWSAdvertise(t *testing.T) { o := testWSOptions() o.Cluster.Port = 0 o.HTTPPort = 0 o.Websocket.Advertise = "xxx:host:yyy" s, err := NewServer(o) if err != nil { t.Fatalf("Unexpected error: %v", err) } defer s.Shutdown() l := &captureFatalLogger{fatalCh: make(chan string, 1)} s.SetLogger(l, false, f...
explode_data.jsonl/42721
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 796 }
[ 2830, 3393, 7433, 2589, 67787, 1155, 353, 8840, 836, 8, 341, 22229, 1669, 1273, 7433, 3798, 741, 22229, 72883, 43013, 284, 220, 15, 198, 22229, 27358, 7084, 284, 220, 15, 198, 22229, 6473, 9556, 17865, 67787, 284, 330, 24048, 72361, 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...
6
func TestBSTree_PostOrderTraverse(t *testing.T) { assert := internal.NewAssert(t, "TestBSTree_PostOrderTraverse") bstree := NewBSTree(6, &intComparator{}) bstree.InsertNode(7) bstree.InsertNode(5) bstree.InsertNode(2) bstree.InsertNode(4) acturl := bstree.PostOrderTraverse() t.Log(acturl) assert.Equal([]int...
explode_data.jsonl/41661
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 152 }
[ 2830, 3393, 61006, 765, 66726, 4431, 1282, 22439, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 5306, 7121, 8534, 1155, 11, 330, 2271, 61006, 765, 66726, 4431, 1282, 22439, 5130, 2233, 267, 765, 1669, 1532, 61006, 765, 7, 21, 11, 609, 396...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDockerLoadFromFile(t *testing.T) { file := "file" g := NewWithT(t) ctx := context.Background() mockCtrl := gomock.NewController(t) executable := mockexecutables.NewMockExecutable(mockCtrl) executable.EXPECT().Execute(ctx, "load", "-i", file).Return(bytes.Buffer{}, nil) d := executables.NewDocker(execu...
explode_data.jsonl/6806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 147 }
[ 2830, 3393, 35, 13659, 5879, 43633, 1155, 353, 8840, 836, 8, 341, 17661, 1669, 330, 1192, 1837, 3174, 1669, 1532, 2354, 51, 1155, 340, 20985, 1669, 2266, 19047, 741, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 692, 67328, 5922...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMockFunc(t *testing.T) { tt := new(Mock) defer tt.Close() // mock tt.MockFunc("Dosomething", Dosomething) //collaborator tt.On("Dosomething", 1).Return(2) //test Dosomething(1) //assert tt.AssertExpectations(t) }
explode_data.jsonl/16780
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 11571, 9626, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 501, 66436, 340, 16867, 17853, 10421, 2822, 197, 322, 7860, 198, 3244, 83, 24664, 9626, 445, 84343, 11532, 497, 56920, 11532, 692, 197, 322, 17222, 4324, 850, 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 TestUpdateRelease_ReuseValuesWithNoValues(t *testing.T) { c := helm.NewContext() rs := rsFixture() installReq := &services.InstallReleaseRequest{ Namespace: "spaced", Chart: &chart.Chart{ Metadata: &chart.Metadata{Name: "hello"}, Templates: []*chart.Template{ {Name: "templates/hello", Data: []byt...
explode_data.jsonl/82235
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 398 }
[ 2830, 3393, 4289, 16077, 62, 38081, 6227, 2354, 2753, 6227, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 33765, 7121, 1972, 741, 41231, 1669, 10036, 18930, 2822, 197, 12248, 27234, 1669, 609, 12779, 71207, 541, 16077, 1900, 515, 197, 90823, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_GetDifferentPathsBetweenStructs(t *testing.T) { r1 := argoappv1.Repository{} r2 := argoappv1.Repository{ Name: "SomeName", } difference, _ := GetDifferentPathsBetweenStructs(r1, r2) assert.Equal(t, difference, []string{"Name"}) }
explode_data.jsonl/50001
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 100 }
[ 2830, 3393, 13614, 69123, 26901, 25477, 9422, 82, 1155, 353, 8840, 836, 8, 1476, 7000, 16, 1669, 1392, 78, 676, 85, 16, 25170, 16094, 7000, 17, 1669, 1392, 78, 676, 85, 16, 25170, 515, 197, 21297, 25, 330, 8373, 675, 756, 197, 630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInt32(t *testing.T) { convert(t, Int32, int32(1), int32(1)) convert(t, Int32, 1, int32(1)) convert(t, Int32, int64(1), int32(1)) convert(t, Int32, "5", int32(5)) convertErr(t, Int32, "") lt(t, Int32, int32(1), int32(2)) eq(t, Int32, int32(1), int32(1)) gt(t, Int32, int32(3), int32(2)) }
explode_data.jsonl/54299
{ "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, 1072, 18, 17, 1155, 353, 8840, 836, 8, 341, 197, 14166, 1155, 11, 1333, 18, 17, 11, 526, 18, 17, 7, 16, 701, 526, 18, 17, 7, 16, 1171, 197, 14166, 1155, 11, 1333, 18, 17, 11, 220, 16, 11, 526, 18, 17, 7, 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...
1
func TestGetGroup(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() group := th.CreateGroup() group, err := th.App.GetGroup(group.Id) require.Nil(t, err) require.NotNil(t, group) group, err = th.App.GetGroup(model.NewId()) require.NotNil(t, err) require.Nil(t, group) }
explode_data.jsonl/37033
{ "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, 1949, 2808, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 44260, 1669, 270, 7251, 2808, 2822, 44260, 11, 1848, 1669, 270, 5105, 2234, 2808, 17690, 6444, 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 TestServerRpc(t *testing.T) { go ServerRpc(":9002") client, err := rpc_drive.NewRpcClient(":9002") if err != nil { t.Error(err) } result := "" item := model.Profile{ Name: "Les", Province: "Beijing", Age: "27", MarriedOrNot: "yes", Height: "181...
explode_data.jsonl/59580
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 252 }
[ 2830, 3393, 5475, 60248, 1155, 353, 8840, 836, 8, 341, 30680, 8422, 60248, 18893, 24, 15, 15, 17, 5130, 25291, 11, 1848, 1669, 35596, 67151, 7121, 60248, 2959, 18893, 24, 15, 15, 17, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 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...
3
func TestYouonH(t *testing.T) { const want = "hyahyuhyohyahyihyuhyehyo" for _, v := range [2]string{"ひゃひゅひょひぁひぃひぅひぇひぉ", "ヒャヒュヒョヒァヒィヒゥヒェヒォ"} { got, err := KanaToRomaji(v) assert.Equal(t, want, got) assert.Nil(t, err) } }
explode_data.jsonl/11328
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 155 }
[ 2830, 3393, 2610, 263, 39, 1155, 353, 8840, 836, 8, 341, 4777, 1366, 284, 330, 8503, 1466, 40001, 8503, 2267, 94680, 88, 6996, 40001, 8503, 2636, 16032, 1837, 2023, 8358, 348, 1669, 2088, 508, 17, 30953, 4913, 124877, 124234, 124877, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSchemaCustomizer(t *testing.T) { type Bla struct { UntaggedStringField string AnonStruct struct { InnerFieldWithoutTag int InnerFieldWithTag int `mymintag:"-1" mymaxtag:"50"` } EnumField string `json:"another" myenumtag:"a,b"` } schemaRef, _, err := NewSchemaRefForValue(&Bla{}, Us...
explode_data.jsonl/55880
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 727 }
[ 2830, 3393, 8632, 10268, 3135, 1155, 353, 8840, 836, 8, 341, 13158, 2502, 64, 2036, 341, 197, 15980, 94905, 3556, 703, 1877, 914, 198, 197, 197, 2082, 263, 9422, 688, 2036, 341, 298, 197, 31597, 1877, 26040, 5668, 526, 198, 298, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestStored(t *testing.T) { var key = "WyJlODlmYTdhNTE3IiwghODAyMTQ4MDEzMTUiXSLCAib2xkY29rZSJd" var url = "https://api.mailgun.net/v2/domains/mg/messages/Wy9JZlJd" body := []byte(fmt.Sprintf(`{ "event": "stored", "storage": { "key": "%s", "url": "%s" }}`, key, url)...
explode_data.jsonl/69104
{ "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, 93243, 1155, 353, 8840, 836, 8, 341, 2405, 1376, 284, 330, 66907, 41, 75, 2069, 17771, 78345, 30621, 45, 2446, 18, 40, 37081, 866, 2069, 73109, 8505, 48, 19, 44, 1150, 89, 8505, 23710, 55, 7984, 5049, 579, 17, 87, 74, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetFullQueryGzipped(t *testing.T) { var buf bytes.Buffer zw := gzip.NewWriter(&buf) q := makeQuery(1000) _, err := zw.Write([]byte(q)) if err != nil { t.Fatal(err) } zw.Close() req, err := http.NewRequest("POST", "http://127.0.0.1:9090", &buf) req.Header.Set("Content-Encoding", "gzip") if err != ni...
explode_data.jsonl/31704
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 1949, 9432, 2859, 38, 89, 6450, 1155, 353, 8840, 836, 8, 341, 2405, 6607, 5820, 22622, 198, 20832, 86, 1669, 57795, 7121, 6492, 2099, 5909, 340, 18534, 1669, 1281, 2859, 7, 16, 15, 15, 15, 340, 197, 6878, 1848, 1669, 243...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewBoard(t *testing.T) { for i := 0; i < 1000; i++ { b := RandomBoard() if len(b) != tileNum { t.Errorf("number of tiles in new board was %v, expected %v", len(b), tileNum) } } }
explode_data.jsonl/29102
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 85 }
[ 2830, 3393, 3564, 11932, 1155, 353, 8840, 836, 8, 341, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 16, 15, 15, 15, 26, 600, 1027, 341, 197, 2233, 1669, 10612, 11932, 741, 197, 743, 2422, 1883, 8, 961, 10023, 4651, 341, 298, 3244,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestValidate(t *testing.T) { const imageName = "myimage.qcow2" tests := []struct { name string execFunc execFunctionType errString string }{ { name: "validate success", execFunc: mockExecFunction(goodValidateJSON, ""), errString: "", }, { name: "validate error", exec...
explode_data.jsonl/34487
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 678 }
[ 2830, 3393, 17926, 1155, 353, 8840, 836, 8, 341, 4777, 66073, 284, 330, 2408, 1805, 11354, 18921, 17, 1837, 78216, 1669, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 67328, 9626, 220, 3883, 5152, 929, 198, 197, 9859, 703, 914, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestValidateAlphaTwoTFJobSpec(t *testing.T) { testCases := []tfv2.TFJobSpec{ { TFReplicaSpecs: nil, }, { TFReplicaSpecs: map[tfv2.TFReplicaType]*tfv2.TFReplicaSpec{ tfv2.TFReplicaTypeWorker: &tfv2.TFReplicaSpec{ Template: v1.PodTemplateSpec{ Spec: v1.PodSpec{ Containers: []v1.Con...
explode_data.jsonl/25091
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 669 }
[ 2830, 3393, 17926, 19384, 11613, 10808, 12245, 8327, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 8935, 85, 17, 836, 37, 12245, 8327, 515, 197, 197, 515, 298, 10261, 37, 18327, 15317, 8327, 82, 25, 2092, 345, 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 TestCreateRdWr(t *testing.T) { tests := []struct { dl DataLocation expectedRdT reflect.Type expectedWrT reflect.Type }{ {NewDataLocation(testTableName, ""), reflect.TypeOf((*noms.NomsMapReader)(nil)).Elem(), reflect.TypeOf((*tableEditorWriteCloser)(nil)).Elem()}, {NewDataLocation("file.csv", "...
explode_data.jsonl/46603
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 875 }
[ 2830, 3393, 4021, 49, 67, 35214, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 2698, 75, 688, 2885, 4707, 198, 197, 42400, 49, 90363, 8708, 10184, 198, 197, 42400, 35214, 51, 8708, 10184, 198, 197, 59403, 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...
9
func TestAlertTags(t *testing.T) { alertID := getAnAlertID(t) // Test addAlertTags require.Empty(t, getAlertTags(alertID, t)) expectedTagsAfterAdd := []string{"awesome", "is", "test", "this"} require.Equal(t, addAlertTags(alertID, []string{"this", "test", "test", "is", "awesome"}, t), expectedTagsAfterAdd) requi...
explode_data.jsonl/40045
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 261 }
[ 2830, 3393, 9676, 15930, 1155, 353, 8840, 836, 8, 341, 24192, 915, 1669, 633, 2082, 9676, 915, 1155, 692, 197, 322, 3393, 912, 9676, 15930, 198, 17957, 11180, 1155, 11, 633, 9676, 15930, 53437, 915, 11, 259, 1171, 42400, 15930, 6025, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateUUIDValidationCode_NonString(t *testing.T) { v := NewUUIDValidator() e := UUIDTestStruct{} et := reflect.TypeOf(e) field, _ := et.FieldByName("UUIDNonString") _, err := v.Generate(et, field, []string{}) require.Equal(t, errors.New("UUIDValidator does not support fields of type: 'int'"), err) }
explode_data.jsonl/48498
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 31115, 24754, 13799, 2078, 1604, 263, 703, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 1532, 24754, 14256, 741, 7727, 1669, 23698, 2271, 9422, 16094, 197, 295, 1669, 8708, 73921, 2026, 692, 39250, 11, 716, 1669, 1842, 17087, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_reenableExtension(t *testing.T) { ctx := log.NewSyncLogger(log.NewLogfmtLogger(os.Stdout)) mm := createMockVMExtensionEnvironmentManager() ii, _ := GetInitializationInfo("yaba", "5.0", true, testEnableCallback) ii.SupportsDisable = true ext, _ := getVMExtensionInternal(ctx, ii, mm) createDirsForVMExten...
explode_data.jsonl/18587
{ "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, 1288, 12552, 12049, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1487, 7121, 12154, 7395, 12531, 7121, 2201, 12501, 7395, 9638, 83225, 1171, 2109, 76, 1669, 1855, 11571, 11187, 12049, 12723, 2043, 741, 197, 3808, 11, 716, 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 TestStream_ReadMap(t *testing.T) { t.Run("test ok", func(t *testing.T) { assert := base.NewAssert(t) testRange := getTestRange(streamPosBody, 3*streamBlockSize, 80, 80, 61) for _, testData := range streamTestSuccessCollections["map"] { for _, i := range testRange { stream := NewStream() stream.Se...
explode_data.jsonl/21227
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1598 }
[ 2830, 3393, 3027, 38381, 2227, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1944, 5394, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 6948, 1669, 2331, 7121, 8534, 1155, 340, 197, 18185, 6046, 1669, 633, 2271, 6046, 20574, 4859, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSample1(t *testing.T) { n, K := 2, 1 A := []int{1, 0} expect := 1 runSample(t, n, A, K, expect) }
explode_data.jsonl/71226
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 55 }
[ 2830, 3393, 17571, 16, 1155, 353, 8840, 836, 8, 341, 9038, 11, 730, 1669, 220, 17, 11, 220, 16, 198, 22985, 1669, 3056, 396, 90, 16, 11, 220, 15, 532, 24952, 1669, 220, 16, 198, 56742, 17571, 1155, 11, 308, 11, 362, 11, 730, 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
func TestChatSrvGetThreadNonblock(t *testing.T) { runWithMemberTypes(t, func(mt chat1.ConversationMembersType) { ctc := makeChatTestContext(t, "GetThreadNonblock", 1) defer ctc.cleanup() users := ctc.users() ui := kbtest.NewChatUI() ctc.as(t, users[0]).h.mockChatUI = ui t.Logf("test empty thread") quer...
explode_data.jsonl/63698
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 966 }
[ 2830, 3393, 15672, 50, 10553, 1949, 6855, 8121, 4574, 1155, 353, 8840, 836, 8, 341, 56742, 2354, 9366, 4173, 1155, 11, 2915, 81618, 6236, 16, 4801, 22323, 24371, 929, 8, 341, 197, 89216, 66, 1669, 1281, 15672, 2271, 1972, 1155, 11, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetBloombitsProofs(t *testing.T) { // Assemble the test environment db, _ := ethdb.NewMemDatabase() pm := newTestProtocolManagerMust(t, false, light.BloomTrieFrequency+256, testChainGen, nil, nil, db) bc := pm.blockchain.(*core.BlockChain) peer, _ := newTestPeer(t, "peer", 2, pm, true) defer peer.close()...
explode_data.jsonl/19313
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 631 }
[ 2830, 3393, 1949, 95449, 2855, 1199, 31076, 82, 1155, 353, 8840, 836, 8, 341, 197, 322, 1634, 15790, 279, 1273, 4573, 198, 20939, 11, 716, 1669, 8372, 1999, 7121, 18816, 5988, 741, 86511, 1669, 501, 2271, 20689, 2043, 31776, 1155, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestDeepCopyMapNilEntry(t *testing.T) { this := &MapWithStructs{StringToPtrToName: map[string]*Name{ "a": nil, }} that := &MapWithStructs{} deepcopy(this, that) if want, got := true, reflect.DeepEqual(this, that); want != got { t.Fatalf("want %v got %v\n this = %#v, that = %#v\n", want, got, this, that) ...
explode_data.jsonl/70020
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 136 }
[ 2830, 3393, 33464, 12106, 2227, 19064, 5874, 1155, 353, 8840, 836, 8, 341, 2046, 1669, 609, 2227, 2354, 9422, 82, 90, 703, 1249, 5348, 1249, 675, 25, 2415, 14032, 8465, 675, 515, 197, 197, 56693, 788, 2092, 345, 197, 11248, 63342, 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 TestWait(t *testing.T) { fctesting.RequiresRoot(t) cases := []struct { name string stop func(m *Machine, cancel context.CancelFunc) }{ { name: "StopVMM", stop: func(m *Machine, _ context.CancelFunc) { err := m.StopVMM() require.NoError(t, err) }, }, { name: "Kill", stop: func(m...
explode_data.jsonl/70445
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1048 }
[ 2830, 3393, 14190, 1155, 353, 8840, 836, 8, 341, 1166, 302, 59855, 85012, 8439, 1155, 692, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 62644, 2915, 1255, 353, 21605, 11, 9121, 2266, 36491, 9626, 340, 197, 59403, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestZoneDeleteIntegration(t *testing.T) { c := client() zs, err := c.ZonesListAll(ListFilter{}) if err != nil { t.Error(err) } z := zs[0].ID _, err = c.ZoneDelete(z) if err != nil { t.Error(err) } limit := 10 for i := 0; i < limit; time.Sleep(10 * time.Second) { i++ exists, err := c.ZoneExists...
explode_data.jsonl/12130
{ "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, 15363, 6435, 52464, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2943, 741, 20832, 82, 11, 1848, 1669, 272, 13476, 3154, 852, 2403, 10278, 5632, 37790, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 532, 20832, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMergeAndGet_MarshalInput(t *testing.T) { cases := []struct { inputDoc map[string]interface{} existingDoc map[string]interface{} outputDoc jsoniter.RawMessage apply FieldOPType }{ { map[string]interface{}{ "int_value": 200, "string_value": "simple_insert1_update_modified", ...
explode_data.jsonl/41292
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 632 }
[ 2830, 3393, 52096, 97726, 1245, 28423, 2505, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 22427, 9550, 262, 2415, 14032, 31344, 16094, 197, 8122, 11083, 9550, 2415, 14032, 31344, 16094, 197, 21170, 9550, 256, 2951...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadErrors(t *testing.T) { var r Record ip4 := IP4{127, 0, 0, 1} r.Set(ip4) // Check error for missing keys. var ip6 IP6 err := r.Load(&ip6) if !IsNotFound(err) { t.Error("IsNotFound should return true for missing key") } assert.Equal(t, &KeyError{Key: ip6.ENRKey(), Err: errNotFound}, err) // Che...
explode_data.jsonl/39489
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 274 }
[ 2830, 3393, 5879, 13877, 1155, 353, 8840, 836, 8, 341, 2405, 435, 13583, 198, 46531, 19, 1669, 6790, 19, 90, 16, 17, 22, 11, 220, 15, 11, 220, 15, 11, 220, 16, 532, 7000, 4202, 23443, 19, 692, 197, 322, 4248, 1465, 369, 7402, 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...
4
func TestCreateDaisyInflater_Image_HappyCase(t *testing.T) { inflater := createDaisyInflaterForImageSafe(t, ImageImportRequest{ Source: imageSource{uri: "projects/test/uri/image"}, Zone: "us-west1-b", ExecutionID: "1234", }) assert.Equal(t, "zones/us-west1-b/disks/disk-1234", inflater.inflatedDisk...
explode_data.jsonl/75625
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 4021, 35, 49056, 12342, 45949, 2039, 11144, 4207, 1155, 353, 8840, 836, 8, 341, 17430, 11729, 1669, 1855, 35, 49056, 12342, 2461, 1906, 25663, 1155, 11, 4654, 11511, 1900, 515, 197, 197, 3608, 25, 414, 2168, 3608, 90, 6070, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestT(t *testing.T) { CustomVerboseFlag = true *CustomParallelSuiteFlag = true logLevel := os.Getenv("log_level") logutil.InitLogger(logutil.NewLogConfig(logLevel, logutil.DefaultLogFormat, "", logutil.EmptyFileLogConfig, false)) autoid.SetStep(5000) config.UpdateGlobal(func(conf *config.Config) { conf.Lo...
explode_data.jsonl/60037
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 253 }
[ 2830, 3393, 51, 1155, 353, 8840, 836, 8, 341, 6258, 1450, 63404, 12135, 284, 830, 198, 197, 9, 10268, 16547, 28000, 12135, 284, 830, 198, 6725, 4449, 1669, 2643, 64883, 445, 839, 8274, 1138, 6725, 1314, 26849, 7395, 12531, 1314, 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 TestBackupSlots(t *testing.T) { dir, err := ioutil.TempDir("", "commitlog-index") assert.NoError(t, err) fmt.Println("dir-->", dir) fd := NewFileDB(dir, 1024*1024, 256) defer func() { fd.Close() // close很慢 os.Remove(dir) }() for i := 0; i < 100; i++ { fd.db.Update(func(t *bbolt.Tx) error { b, _ :=...
explode_data.jsonl/64030
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 534 }
[ 2830, 3393, 56245, 51647, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 17413, 839, 21492, 1138, 6948, 35699, 1155, 11, 1848, 340, 11009, 12419, 445, 3741, 313, 21156, 5419, 340, 61721, 1669, 1532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRetrieveAll(t *testing.T) { repo := postgres.NewConfigRepository(db, testLog) for i := 0; i < numConfigs; i++ { c := config // Use UUID to prevent conflict errors. id := uuid.NewV4().String() c.ExternalID = id c.Name = fmt.Sprintf("name %d", i) c.MFThing = id c.MFKey = id if i%2 == 0 { c....
explode_data.jsonl/460
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 740 }
[ 2830, 3393, 87665, 2403, 1155, 353, 8840, 836, 8, 341, 17200, 5368, 1669, 59826, 7121, 2648, 4624, 9791, 11, 1273, 2201, 692, 2023, 600, 1669, 220, 15, 26, 600, 366, 1629, 84905, 26, 600, 1027, 341, 197, 1444, 1669, 2193, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestGrantViewRelated(t *testing.T) { store, clean := realtikvtest.CreateMockStoreAndSetup(t) defer clean() tkRoot := testkit.NewTestKit(t, store) tkUser := testkit.NewTestKit(t, store) tkRoot.MustExec("use test") tkUser.MustExec("use test") tkRoot.Session().Auth(&auth.UserIdentity{Username: "root", Hostna...
explode_data.jsonl/5759
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 836 }
[ 2830, 3393, 67971, 851, 11686, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1931, 83, 1579, 85, 1944, 7251, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 2822, 3244, 74, 8439, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRowsSortMetrics(t *testing.T) { uu := map[string]struct { rows render.Rows col int asc bool e render.Rows }{ "metricAsc": { rows: render.Rows{ {Fields: []string{"10m", "duh"}}, {Fields: []string{"1m", "blee"}}, }, col: 0, asc: true, e: render.Rows{ {Fields: []string{...
explode_data.jsonl/66599
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 432 }
[ 2830, 3393, 9024, 10231, 27328, 1155, 353, 8840, 836, 8, 341, 10676, 84, 1669, 2415, 14032, 60, 1235, 341, 197, 68438, 3141, 11332, 198, 197, 46640, 220, 526, 198, 197, 197, 5061, 220, 1807, 198, 197, 7727, 262, 3141, 11332, 198, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParseKey(t *testing.T) { tests := []struct { inCABytes []byte outType types.CertAuthType outClusterName string }{ // 0 - host ca in known_hosts format { []byte(`@cert-authority *.foo ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCz+PzY6z2Xa1cMeiJqOH5BRpwY+PlS3Q6C4e3Yj8xjLW1zD3Cehm71zjsYmrpuF...
explode_data.jsonl/47168
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1217 }
[ 2830, 3393, 14463, 1592, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 17430, 5049, 7078, 414, 3056, 3782, 198, 197, 13967, 929, 286, 4494, 727, 529, 5087, 929, 198, 197, 13967, 28678, 675, 914, 198, 197, 59403, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestExifEditor_EmptyBuilder(t *testing.T) { je := getJpegEditor(LeicaImg, t) err := je.ee.Clear(true) if err != nil { t.Fatalf("Could not set an empty builder: %v", err) } b, err := je.Bytes() if err != nil { t.Fatalf("Could not write bytes: %v", err) } md, err := NewMetaData(b) if err != nil { t.Fa...
explode_data.jsonl/79878
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 840, 333, 9410, 76060, 1595, 3297, 1155, 353, 8840, 836, 8, 341, 197, 3756, 1669, 633, 41, 10311, 9410, 7, 2304, 3001, 13033, 11, 259, 340, 9859, 1669, 4759, 1734, 68, 13524, 3715, 340, 743, 1848, 961, 2092, 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, 1, 1, 1, 1, 1, 1...
6
func TestGetTeamMember(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() if result, err := th.BasicClient.GetTeamMember(th.BasicTeam.Id, th.BasicUser.Id); err != nil { t.Fatal(err) } else { member := result.Data.(*model.TeamMember) if member == nil { t.Fatal("should be valid") } } if _, e...
explode_data.jsonl/48518
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 337 }
[ 2830, 3393, 1949, 14597, 9366, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 743, 1102, 11, 1848, 1669, 270, 48868, 2959, 2234, 14597, 9366, 24365, 48868, 14597, 6444, 11, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFormatSelection(t *testing.T) { type test struct { tag string key Reference args []interface{} want string } empty := []interface{}{} joe := []interface{}{"Joe"} joeAndMary := []interface{}{"Joe", "Mary"} testCases := []struct { desc string cat []entry test []test }{{ desc: "empty", ...
explode_data.jsonl/31529
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1436 }
[ 2830, 3393, 4061, 11177, 1155, 353, 8840, 836, 8, 341, 13158, 1273, 2036, 341, 197, 60439, 220, 914, 198, 197, 23634, 220, 17207, 198, 197, 31215, 3056, 4970, 16094, 197, 50780, 914, 198, 197, 532, 197, 3194, 1669, 3056, 4970, 6257, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestApplyTemplateHeaders(t *testing.T) { newFile := func() *descriptor.File { msgdesc := &descriptorpb.DescriptorProto{ Name: proto.String("ExampleMessage"), } meth := &descriptorpb.MethodDescriptorProto{ Name: proto.String("Example"), InputType: proto.String("ExampleMessage"), OutputType...
explode_data.jsonl/32791
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2380 }
[ 2830, 3393, 28497, 7275, 10574, 1155, 353, 8840, 836, 8, 341, 8638, 1703, 1669, 2915, 368, 353, 53132, 8576, 341, 197, 21169, 8614, 1669, 609, 53132, 16650, 23548, 6820, 31549, 515, 298, 21297, 25, 18433, 6431, 445, 13314, 2052, 4461, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStrictSearch(t *testing.T) { tests := []struct { vector []float64 want StrictSearchResult }{ {[]float64{1, 0, 0, 0, 0, 0}, StrictSearchResult{1, 0, nil}}, {[]float64{0, 1, 0, 0, 0, 0}, StrictSearchResult{2, 0, nil}}, {[]float64{0, 0, 1, 0, 0, 0}, StrictSearchResult{3, 0, nil}}, {[]float64{0, 0,...
explode_data.jsonl/31020
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 450 }
[ 2830, 3393, 41857, 5890, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 20365, 3056, 3649, 21, 19, 198, 197, 50780, 256, 52881, 5890, 2077, 198, 197, 59403, 197, 197, 90, 1294, 3649, 21, 19, 90, 16, 11, 220, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestValidProduct(t *testing.T) { file, err := os.Open("testdata/products-sle12.json") if err != nil { t.Fatal("Something went wrong when reading the JSON file") } defer file.Close() products, err := parseProducts(file) if err != nil { t.Fatal("Unexpected error when reading a valid JSON file") } if len...
explode_data.jsonl/43075
{ "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, 4088, 4816, 1155, 353, 8840, 836, 8, 341, 17661, 11, 1848, 1669, 2643, 12953, 445, 92425, 33480, 1331, 273, 16, 17, 4323, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 445, 23087, 3937, 4969, 979, 5290, 279, 4718, 103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShouldContainerBeRestarted(t *testing.T) { pod := &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ UID: "12345678", Name: "foo", Namespace: "new", }, Spec: v1.PodSpec{ Containers: []v1.Container{ {Name: "no-history"}, {Name: "alive"}, {Name: "succeed"}, {Name: "failed"}, ...
explode_data.jsonl/18702
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 802 }
[ 2830, 3393, 14996, 4502, 3430, 59354, 291, 1155, 353, 8840, 836, 8, 341, 3223, 347, 1669, 609, 85, 16, 88823, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 197, 6463, 25, 981, 330, 16, 17, 18, 19, 20, 21, 22, 23, 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, 1...
4
func TestIntegration_FluxMonitor_Deviation(t *testing.T) { gethClient := new(mocks.GethClient) rpcClient := new(mocks.RPCClient) sub := new(mocks.Subscription) config, cfgCleanup := cltest.NewConfig(t) defer cfgCleanup() app, appCleanup := cltest.NewApplicationWithConfig(t, config, eth.NewClientWith(rpcClient,...
explode_data.jsonl/75905
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2219 }
[ 2830, 3393, 52464, 1400, 62859, 30098, 1557, 5120, 7101, 1155, 353, 8840, 836, 8, 341, 10366, 71, 2959, 1669, 501, 1255, 25183, 1224, 769, 2959, 340, 7000, 3992, 2959, 1669, 501, 1255, 25183, 2013, 4872, 2959, 340, 28624, 1669, 501, 125...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewClient(t *testing.T) { t.Parallel() Convey("NewClient", t, func(c C) { // Create a test server which expects the token. srv := httptest.NewServer(http.HandlerFunc(func(_ http.ResponseWriter, req *http.Request) { c.So(req.Header.Get(vmtoken.Header), ShouldEqual, "token") })) // Create a mock m...
explode_data.jsonl/8541
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 361 }
[ 2830, 3393, 3564, 2959, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 93070, 5617, 445, 3564, 2959, 497, 259, 11, 2915, 1337, 356, 8, 341, 197, 197, 322, 4230, 264, 1273, 3538, 892, 24297, 279, 3950, 624, 197, 1903, 10553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTpmAnnotator_Do(t *testing.T) { b, err := ioutil.ReadFile("../../test/res/config.json") if err != nil { t.Fatalf(err.Error()) } var cfg config.SdkInfo err = json.Unmarshal(b, &cfg) if err != nil { t.Fatalf(err.Error()) } badHashType := cfg badHashType.Hash.Type = "invalid" badKeyType := cfg b...
explode_data.jsonl/82204
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 564 }
[ 2830, 3393, 51, 5187, 2082, 1921, 850, 93481, 1155, 353, 8840, 836, 8, 341, 2233, 11, 1848, 1669, 43144, 78976, 36800, 1944, 32426, 14730, 4323, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 3964, 6141, 2398, 197, 630, 2405, 13286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPropertyAsMulti(t *testing.T) { // GIVEN graphName := "mygraph" g := NewGraph(graphName) require.NotNil(t, g) v := NewVertexG(g) require.NotNil(t, v) p := NewPropertyV(v) require.NotNil(t, p) l1 := "label1" l2 := "label2" // WHEN p = p.As(l1, l2) // THEN assert.NotNil(t, p) assert.Equal(t, fm...
explode_data.jsonl/38221
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 191 }
[ 2830, 3393, 3052, 2121, 20358, 1155, 353, 8840, 836, 8, 1476, 197, 322, 89836, 198, 66616, 675, 1669, 330, 2408, 4439, 698, 3174, 1669, 1532, 11212, 24312, 675, 340, 17957, 93882, 1155, 11, 342, 340, 5195, 1669, 1532, 8320, 38, 3268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSingleConcurrency(t *testing.T) { clients := setup(t) // add test case specific name to its own logger logger := logging.GetContextLogger("TestSingleConcurrency") imagePath := test.ImagePath(singleThreadedImage) names := test.ResourceNames{ Config: test.AppendRandomString("prod", logger), Route: t...
explode_data.jsonl/27689
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1185 }
[ 2830, 3393, 10888, 79611, 1155, 353, 8840, 836, 8, 341, 197, 31869, 1669, 6505, 1155, 692, 197, 322, 912, 1273, 1142, 3151, 829, 311, 1181, 1828, 5925, 198, 17060, 1669, 8392, 2234, 1972, 7395, 445, 2271, 10888, 79611, 5130, 31426, 1820...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntArray_Clone(t *testing.T) { gtest.C(t, func(t *gtest.T) { a1 := []int{1, 2, 3, 5} array1 := garray.NewIntArrayFrom(a1) array2 := array1.Clone() t.Assert(array1, array2) }) }
explode_data.jsonl/47618
{ "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, 95338, 85110, 603, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 11323, 16, 1669, 3056, 396, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 20, 532, 197, 11923, 16, 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 TestIPNetSetList(t *testing.T) { s, err := ParseIPNets("3.0.0.0/8", "1.0.0.0/8", "2.0.0.0/8") if err != nil { t.Errorf("error parsing IPNets: %v", err) } l := s.StringSlice() sort.Strings(l) if !reflect.DeepEqual(l, []string{"1.0.0.0/8", "2.0.0.0/8", "3.0.0.0/8"}) { t.Errorf("List gave unexpected result:...
explode_data.jsonl/15547
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 3298, 6954, 1649, 852, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 14775, 3298, 45, 1415, 445, 18, 13, 15, 13, 15, 13, 15, 14, 23, 497, 330, 16, 13, 15, 13, 15, 13, 15, 14, 23, 497, 330, 17, 13, 15, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIndexKey(t *testing.T) { for i := 0; i < 10; i++ { b1, err := createRandomBlock(genesisHash, false) if err != nil { t.Fatalf("Error occurred: %v", err) } b2, err := createRandomBlock(genesisHash, false) if err != nil { t.Fatalf("Error occurred: %v", err) } // Test partial order bi1 :...
explode_data.jsonl/55812
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 410 }
[ 2830, 3393, 1552, 1592, 1155, 353, 8840, 836, 8, 341, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 16, 15, 26, 600, 1027, 341, 197, 2233, 16, 11, 1848, 1669, 1855, 13999, 4713, 36884, 13774, 6370, 11, 895, 692, 197, 743, 1848, 961...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmpty(t *testing.T) { _, storage, _, _, destroyFunc := newStorage(t) defer destroyFunc() if err := storage.Allocate(net.ParseIP("192.168.1.2")); !strings.Contains(err.Error(), "cannot allocate resources of type serviceipallocations at this time") { t.Fatal(err) } }
explode_data.jsonl/352
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 3522, 1155, 353, 8840, 836, 8, 341, 197, 6878, 5819, 11, 8358, 8358, 6921, 9626, 1669, 501, 5793, 1155, 340, 16867, 6921, 9626, 741, 743, 1848, 1669, 5819, 9636, 22401, 30723, 8937, 3298, 445, 16, 24, 17, 13, 16, 21, 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...
2
func TestFlatten(t *testing.T) { tests := []struct { name string indices []string want string }{{ name: "simple", indices: strings.Split("foo.[1]", "."), want: "foo[1]", }, { name: "no brackets", indices: strings.Split("foo.bar", "."), want: "foo.bar", }, { name: "err([0]).V...
explode_data.jsonl/68806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 557 }
[ 2830, 3393, 3882, 14456, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 197, 14987, 3056, 917, 198, 197, 50780, 262, 914, 198, 197, 15170, 515, 197, 11609, 25, 262, 330, 22944, 756, 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 TestEventBuilderNoHost(t *testing.T) { b := builder event, err := b.Build() if err != nil { t.Fatal(err) } _, found := event.Fields["metricset-host"] assert.False(t, found) }
explode_data.jsonl/22663
{ "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, 1556, 3297, 2753, 9296, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 7363, 198, 28302, 11, 1848, 1669, 293, 25212, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 197, 6878, 1730, 1669, 1538, 42809, 118...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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