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 TestZombieNodeWithoutClustedrInfoWillBeReported(t *testing.T) { mc := newMultiCluster() ci := pb.ClusterInfo{ ClusterId: 1, NodeId: 2, IsLeader: true, Nodes: map[uint64]string{1: "a1", 2: "a2", 3: "a3"}, ConfigChangeIndex: 100, } nhi := pb.NodeHostInfo{ RaftA...
explode_data.jsonl/24606
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 515 }
[ 2830, 3393, 57, 23342, 1955, 26040, 5066, 27145, 81, 1731, 9945, 3430, 10361, 291, 1155, 353, 8840, 836, 8, 341, 97662, 1669, 501, 20358, 28678, 741, 1444, 72, 1669, 17310, 72883, 1731, 515, 197, 197, 28678, 764, 25, 260, 220, 16, 345...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoggingForCustomLogger(t *testing.T) { //Now add sample logger resetLoggerInstance() InitLogger(testdata.GetSampleLoggingProvider(&buf)) //Create new logger logger := NewLogger(moduleName) //Test logger.print outputs modlog.VerifyBasicLogging(t, apilogging.INFO, logger.Print, nil, &buf, true, moduleNa...
explode_data.jsonl/7301
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 903 }
[ 2830, 3393, 34575, 2461, 10268, 7395, 1155, 353, 8840, 836, 8, 1476, 197, 322, 7039, 912, 6077, 5925, 198, 70343, 7395, 2523, 741, 98762, 7395, 8623, 691, 2234, 17571, 34575, 5179, 2099, 5909, 1171, 197, 322, 4021, 501, 5925, 198, 17060...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateDiscovery(t *testing.T) { var tests = []struct { name string d *kubeadm.Discovery expected bool }{ { "invalid: .BootstrapToken and .File cannot both be set", &kubeadm.Discovery{ BootstrapToken: &kubeadm.BootstrapTokenDiscovery{ Token: "abcdef.1234567890123456", }...
explode_data.jsonl/39232
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 402 }
[ 2830, 3393, 17926, 67400, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 2698, 286, 353, 74, 392, 3149, 76, 10166, 7449, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 515, 298, 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...
2
func TestCommandListIndexes(t *testing.T) { noerr := func(t *testing.T, err error) { // t.Helper() if err != nil { t.Errorf("Unepexted error: %v", err) t.FailNow() } } t.Run("InvalidDatabaseName", func(t *testing.T) { skipIfBelow30(t) ns := command.Namespace{DB: "ex", Collection: "space"} _, err :...
explode_data.jsonl/73413
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1401 }
[ 2830, 3393, 4062, 852, 62229, 1155, 353, 8840, 836, 8, 341, 72104, 615, 1669, 2915, 1155, 353, 8840, 836, 11, 1848, 1465, 8, 341, 197, 197, 322, 259, 69282, 741, 197, 743, 1848, 961, 2092, 341, 298, 3244, 13080, 445, 1806, 747, 427,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue986(t *testing.T) { store, clean := realtikvtest.CreateMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") sqlText := `CREATE TABLE address ( id bigint(20) NOT NULL AUTO_INCREMENT, PRIMARY KEY (id));` tk.MustExec(sqlText) tk.MustExec(`insert into add...
explode_data.jsonl/5794
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 42006, 24, 23, 21, 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, 3553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNegativeZeroForHashJoin(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test;") tk.MustExec("drop table if exists t0, t1") tk.MustExec("CREATE TABLE t0(c0 float);") tk.MustExec("CREATE TABLE t1(c0 float);") tk.MustExec("INSER...
explode_data.jsonl/65519
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 232 }
[ 2830, 3393, 38489, 17999, 2461, 6370, 12292, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUptimeMonitorMonitorsToBaseMonitorsMapper(t *testing.T) { uptimeMonitorObject1 := UptimeMonitorMonitor{ Name: "Test Monitor", PK: 124, MspAddress: "https://stakater.com", MspInterval: 5, CheckType: "HTTP", Locations: []string{"US-Central"}, ContactGroups: []strin...
explode_data.jsonl/56710
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 810 }
[ 2830, 3393, 52, 28941, 30098, 11095, 11905, 1249, 3978, 11095, 11905, 10989, 1155, 353, 8840, 836, 8, 341, 197, 74659, 30098, 1190, 16, 1669, 547, 28941, 30098, 30098, 515, 197, 21297, 25, 688, 330, 2271, 23519, 756, 197, 10025, 42, 25,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestSelectVersion(t *testing.T) { t.Run("Should return error when requested version does not exist", func(t *testing.T) { _, err := SelectVersion( makePluginWithVersions(versionArg{Version: "version"}), "1.1.1", ) assert.Error(t, err) }) t.Run("Should return error when no version supports current a...
explode_data.jsonl/74304
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 690 }
[ 2830, 3393, 3379, 5637, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 14996, 470, 1465, 979, 11223, 2319, 1558, 537, 3000, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 6878, 1848, 1669, 8427, 5637, 1006, 298, 77438, 11546, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConditionalAddArchiveLocationTemplateArchiveLogs(t *testing.T) { tests := []struct { controllerArchiveLog bool workflowArchiveLog string templateArchiveLog string finalArchiveLog bool }{ {true, "true", "true", true}, {true, "true", "false", true}, {true, "false", "true", true}, {true...
explode_data.jsonl/75379
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 918 }
[ 2830, 3393, 79233, 2212, 42502, 4707, 7275, 42502, 51053, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 61615, 42502, 2201, 1807, 198, 197, 197, 56249, 42502, 2201, 256, 914, 198, 197, 22832, 42502, 2201, 256, 914, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestNew(t *testing.T) { os.Unsetenv("AZURE_TENANT_ID") os.Unsetenv("AZURE_CLIENT_ID") os.Unsetenv("AZURE_CLIENT_SECRET") os.Unsetenv("AZURE_ENVIRONMENT") os.Unsetenv("AZURE_VAULT_URL") // nil secret config _, err := New(nil) assert.Equal(t, err, ErrAzureTenantIDNotSet) os.Setenv("AZURE_TENANT_ID", "inval...
explode_data.jsonl/52758
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 346 }
[ 2830, 3393, 3564, 1155, 353, 8840, 836, 8, 341, 25078, 10616, 746, 3160, 445, 23563, 4521, 1139, 953, 2821, 3450, 1138, 25078, 10616, 746, 3160, 445, 23563, 4521, 22521, 3450, 1138, 25078, 10616, 746, 3160, 445, 23563, 4521, 22521, 31408,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNilError(t *testing.T) { var err *FieldError if got, want := err.Error(), ""; got != want { t.Errorf("got %v, wanted %v", got, want) } }
explode_data.jsonl/68802
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 62 }
[ 2830, 3393, 19064, 1454, 1155, 353, 8840, 836, 8, 341, 2405, 1848, 353, 1877, 1454, 198, 743, 2684, 11, 1366, 1669, 1848, 6141, 1507, 35466, 2684, 961, 1366, 341, 197, 3244, 13080, 445, 22390, 1018, 85, 11, 4829, 1018, 85, 497, 2684, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUCancelOrder(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() || !canManipulateRealOrders { t.Skip("skipping test: api keys not set or canManipulateRealOrders set to false") } _, err := b.UCancelOrder(context.Background(), currency.NewPair(currency.BTC, currency.USDT), "123", "") if err != nil { t...
explode_data.jsonl/76573
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 127 }
[ 2830, 3393, 5459, 4949, 4431, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 1369, 753, 4814, 92876, 6334, 12768, 24898, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 25, 6330, 6894, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBot_GetMyCommands(t *testing.T) { type fields struct { Configuration Configuration apiClient apiClient BotUser User } tests := []struct { name string fields fields wantResult axon.A wantErr bool }{ { name: "test1", fields: fields{ apiClient: &mockAPIClient{ ...
explode_data.jsonl/46090
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 553 }
[ 2830, 3393, 23502, 13614, 5050, 30479, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 197, 7688, 12221, 198, 197, 54299, 2959, 257, 6330, 2959, 198, 197, 12791, 354, 1474, 981, 2657, 198, 197, 532, 78216, 1669, 3056, 1235, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWaitTimeoutProposeOnNilPolkaForTheCurrentRound(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, int32(1) time...
explode_data.jsonl/54287
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 385 }
[ 2830, 3393, 14190, 7636, 2008, 960, 1925, 19064, 14658, 4554, 2461, 785, 5405, 27497, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNodeGroupIncreaseSize(t *testing.T) { type testCase struct { description string delta int initial int32 expected int32 } test := func(t *testing.T, tc *testCase, testConfig *testConfig) { controller, stop := mustCreateTestController(t, testConfig) defer stop() nodegroups, err :=...
explode_data.jsonl/19668
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 795 }
[ 2830, 3393, 1955, 2808, 69556, 1695, 1155, 353, 8840, 836, 8, 341, 13158, 54452, 2036, 341, 197, 42407, 914, 198, 197, 85435, 981, 526, 198, 197, 85270, 257, 526, 18, 17, 198, 197, 42400, 262, 526, 18, 17, 198, 197, 630, 18185, 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...
8
func TestRowFunc(t *testing.T) { t.Parallel() ctx := createContext(t) fc := funcs[ast.RowFunc] _, err := fc.getFunction(ctx, datumsToConstants(types.MakeDatums([]interface{}{"1", 1.2, true, 120}...))) require.NoError(t, err) }
explode_data.jsonl/53880
{ "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, 3102, 9626, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 20985, 1669, 83674, 1155, 340, 1166, 66, 1669, 76871, 58, 559, 14657, 9626, 921, 197, 6878, 1848, 1669, 25563, 670, 5152, 7502, 11, 3258, 6237, 1249, 9386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDocstore_UpdateNote(t *testing.T) { cases := []struct { name string dbFile string conn string domid []byte txid []byte original *model.AnchorRecord wantNote string }{ {"normal", testdb2, conn2, dom1, tx1, ar1, "yo"}, } for _, c := range cases { c := c t.Run(c.name, func...
explode_data.jsonl/61315
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 471 }
[ 2830, 3393, 9550, 4314, 47393, 9112, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 20939, 1703, 256, 914, 198, 197, 32917, 257, 914, 198, 197, 2698, 43019, 262, 3056, 3782, 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...
5
func TestMainCreateRuntime(t *testing.T) { assert := assert.New(t) const cmd = "foo" const msg = "moo FAILURE" resetCLIGlobals() exitStatus := 0 savedOSArgs := os.Args savedExitFunc := exitFunc savedBefore := runtimeBeforeSubcommands savedCommands := runtimeCommands os.Args = []string{name, cmd} exitFun...
explode_data.jsonl/52204
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 303 }
[ 2830, 3393, 6202, 4021, 15123, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 4777, 5439, 284, 330, 7975, 698, 4777, 3750, 284, 330, 76, 2624, 64024, 1837, 70343, 3140, 1914, 16616, 2822, 14519, 2522, 1669, 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...
1
func TestEachPreOrderness(t *testing.T) { tree := NewArtTree() tree.Insert([]byte("1"), []byte("1")) tree.Insert([]byte("2"), []byte("2")) traversal := []*ArtNode{} tree.Each(func(node *ArtNode) { traversal = append(traversal, node) }) // Order should be Node4, 1, 2 if traversal[0] != tree.root || traversa...
explode_data.jsonl/43965
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 4854, 4703, 24621, 28568, 1155, 353, 8840, 836, 8, 341, 51968, 1669, 1532, 9286, 6533, 741, 51968, 23142, 10556, 3782, 445, 16, 3975, 3056, 3782, 445, 16, 5455, 51968, 23142, 10556, 3782, 445, 17, 3975, 3056, 3782, 445, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDefaultCollectorImage(t *testing.T) { viper.Set("jaeger-collector-image", "org/custom-collector-image") defer viper.Reset() jaeger := v1.NewJaeger(types.NamespacedName{Name: "my-instance"}) collector := NewCollector(jaeger) dep := collector.Get() containers := dep.Spec.Template.Spec.Containers assert....
explode_data.jsonl/69118
{ "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, 3675, 53694, 1906, 1155, 353, 8840, 836, 8, 341, 5195, 12858, 4202, 445, 5580, 1878, 19459, 27669, 13746, 497, 330, 1775, 34665, 19459, 27669, 13746, 1138, 16867, 95132, 36660, 2822, 197, 5580, 1878, 1669, 348, 16, 7121, 52445...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilterToAvailableSince(t *testing.T) { tests := []struct { name string syncGrantChannels ch.TimedSet syncGrantRoles ch.TimedSet syncGrantRoleChannels ch.TimedSet expectedResult ch.VbSequence expectedSecondaryTrigger ch.VbSequence }{ {"AllBefore...
explode_data.jsonl/31567
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2427 }
[ 2830, 3393, 5632, 1249, 16485, 12549, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 11609, 3824, 914, 198, 197, 1903, 1721, 67971, 35925, 286, 521, 836, 75485, 1649, 198, 197, 1903, 1721, 67971, 25116, 1843, 521, 836...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHypervisorDefaultsImage(t *testing.T) { assert := assert.New(t) tmpdir, err := ioutil.TempDir(testDir, "") assert.NoError(err) defer os.RemoveAll(tmpdir) testImagePath := filepath.Join(tmpdir, "image") testImageLinkPath := filepath.Join(tmpdir, "image-link") err = createEmptyFile(testImagePath) asse...
explode_data.jsonl/11736
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 291 }
[ 2830, 3393, 39, 1082, 31396, 16273, 1906, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 20082, 3741, 11, 1848, 1669, 43144, 65009, 6184, 8623, 6184, 11, 14676, 6948, 35699, 3964, 340, 16867, 2643, 84427, 10368, 3741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRepositoriesService_ListTrafficClones(t *testing.T) { client, mux, _, teardown := setup() defer teardown() mux.HandleFunc("/repos/o/r/traffic/clones", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "GET") fmt.Fprintf(w, `{"count": 7, "uniques": 6, "clones": [{ "timestamp": "2...
explode_data.jsonl/51024
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 891 }
[ 2830, 3393, 44814, 1860, 27104, 87229, 5066, 3154, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 11, 8358, 49304, 1669, 6505, 741, 16867, 49304, 2822, 2109, 2200, 63623, 4283, 68354, 20271, 7382, 14, 53987, 55931, 3154, 497, 2915, 3622,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSolveOperators_SubscriptionlessOperatorsCanConflict(t *testing.T) { APISet := APISet{opregistry.APIKey{"g", "v", "k", "ks"}: struct{}{}} Provides := APISet namespace := "olm" catalog := registry.CatalogKey{"community", namespace} csv := existingOperator(namespace, "packageA.v1", "packageA", "alpha", "",...
explode_data.jsonl/43811
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 526 }
[ 2830, 3393, 50, 3948, 77760, 36359, 12124, 1717, 77760, 6713, 57974, 1155, 353, 8840, 836, 8, 341, 197, 2537, 1637, 295, 1669, 10106, 1637, 295, 90, 453, 29172, 24922, 1592, 4913, 70, 497, 330, 85, 497, 330, 74, 497, 330, 2787, 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...
1
func TestUnreadByteOthers(t *testing.T) { // A list of readers to use in conjunction with UnreadByte. var readers = []func(*Reader, byte) ([]byte, error){ (*Reader).ReadBytes, (*Reader).ReadSlice, func(r *Reader, delim byte) ([]byte, error) { data, err := r.ReadString(delim) return []byte(data), err }, ...
explode_data.jsonl/22855
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 633 }
[ 2830, 3393, 1806, 878, 7153, 50054, 1155, 353, 8840, 836, 8, 341, 197, 322, 362, 1140, 315, 12726, 311, 990, 304, 31446, 448, 1230, 878, 7153, 624, 2405, 12726, 284, 3056, 2830, 4071, 5062, 11, 4922, 8, 34923, 3782, 11, 1465, 1264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCallDep(t *testing.T) { const ( cachedir = "../.gop" cachefile = cachedir + "/gop.cache" ) os.Remove(cachefile) defer func() { os.Remove(cachefile) os.Remove(cachedir) }() for i := 0; i < 2; i++ { gopClTest(t, ` import ( "reflect" "testing" ) func TestNew(t *testing.T) { ret := New() expe...
explode_data.jsonl/73694
{ "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, 7220, 7839, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 1444, 3854, 404, 220, 284, 7005, 13, 70, 453, 698, 197, 1444, 610, 823, 457, 284, 20579, 404, 488, 3521, 70, 453, 20087, 698, 197, 340, 25078, 13270, 1337, 610, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIncludeConfigFiles(t *testing.T) { assert := assert.New(t) common.SetupConfig("./test") zipFilePath := getArchivePath() filePath, err := createArchive(zipFilePath, true, SearchPaths{"": "./test/confd"}, "") assert.NoError(err) assert.Equal(zipFilePath, filePath) if _, err := os.Stat(zipFilePath); os....
explode_data.jsonl/18214
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 385 }
[ 2830, 3393, 22283, 2648, 10809, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 83825, 39820, 2648, 13988, 1944, 1138, 197, 9964, 19090, 1669, 633, 42502, 1820, 741, 17661, 1820, 11, 1848, 1669, 1855, 42502, 38249, 19090,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResponseHandler(t *testing.T) { var handler http.Handler handler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { rw := w.(ResponseWriter) rw.WriteHeader(http.StatusFound) }) w := httptest.NewRecorder() r := httptest.NewRequest(http.MethodGet, "http://www.example.com", nil) handle...
explode_data.jsonl/22523
{ "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, 2582, 3050, 1155, 353, 8840, 836, 8, 341, 2405, 7013, 1758, 31010, 271, 53326, 284, 1758, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 7000, 86, 1669, 289, 12832, 2582, 6492, 340, 197, 7000, 86, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUsingKeyspaceShardMap(t *testing.T) { tests := []struct { testcase string ShardRangeMap map[string]map[string]*topo.ShardInfo }{ { testcase: "select-sharded-8", ShardRangeMap: map[string]map[string]*topo.ShardInfo{ "ks_sharded": { "-20": testShardInfo("ks_sharded", "", "20", t), ...
explode_data.jsonl/12771
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 690 }
[ 2830, 3393, 16429, 8850, 1306, 2016, 567, 2227, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 18185, 5638, 414, 914, 198, 197, 197, 2016, 567, 6046, 2227, 2415, 14032, 60, 2186, 14032, 8465, 3481, 78, 10849, 567, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestControllerReferenceMode(t *testing.T) { wf := unmarshalWF(globalVariablePlaceholders) cancel, controller := newController() defer cancel() ctx := context.Background() controller.Config.WorkflowRestrictions = &config.WorkflowRestrictions{} controller.Config.WorkflowRestrictions.TemplateReferencing = conf...
explode_data.jsonl/71013
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 379 }
[ 2830, 3393, 2051, 8856, 3636, 1155, 353, 8840, 836, 8, 341, 6692, 69, 1669, 650, 27121, 32131, 31951, 7827, 17371, 16662, 340, 84441, 11, 6461, 1669, 501, 2051, 741, 16867, 9121, 2822, 20985, 1669, 2266, 19047, 741, 61615, 10753, 28748, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewClientWithBaseURL(t *testing.T) { githubBaseURL := os.Getenv(EnvBaseURL) defer func() { os.Setenv(EnvBaseURL, githubBaseURL) }() os.Setenv(EnvBaseURL, "") testCases := []struct { config Config envBaseURL string expect string }{ { // specify directly config: Config{ Token: ...
explode_data.jsonl/37416
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 923 }
[ 2830, 3393, 3564, 2959, 2354, 3978, 3144, 1155, 353, 8840, 836, 8, 341, 3174, 3827, 3978, 3144, 1669, 2643, 64883, 7, 14359, 3978, 3144, 340, 16867, 2915, 368, 341, 197, 25078, 4202, 3160, 7, 14359, 3978, 3144, 11, 31004, 3978, 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
func TestQpsSuperfluousMetrics(t *testing.T) { tc := testCase{ replicas: 3, desiredError: fmt.Errorf("requested metrics for 3 pods, got metrics for 6"), metricName: "qps", reportedMetricsPoints: [][]metricPoint{{{1000, 1}}, {{2000, 4}}, {{2000, 1}}, {{4000, 5}}, {{2000, 1}}, {{...
explode_data.jsonl/66351
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 48, 1690, 19284, 1489, 9193, 27328, 1155, 353, 8840, 836, 8, 341, 78255, 1669, 54452, 515, 197, 73731, 52210, 25, 1060, 220, 18, 345, 197, 52912, 2690, 1454, 25, 688, 8879, 13080, 445, 67105, 16734, 369, 220, 18, 54587, 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 TestAPIModelWithManagedIdentityWithoutServicePrincipalProfileAndClientIdAndSecretInGenerateCmd(t *testing.T) { t.Parallel() apiloader := &api.Apiloader{ Translator: nil, } apimodel := getAPIModelWithoutServicePrincipalProfile(true) cs, ver, err := apiloader.DeserializeContainerService([]byte(apimodel), f...
explode_data.jsonl/58948
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 503 }
[ 2830, 3393, 7082, 1712, 2354, 27192, 18558, 26040, 1860, 31771, 8526, 3036, 94116, 3036, 19773, 641, 31115, 15613, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 69898, 18045, 998, 1669, 609, 2068, 22829, 18045, 998, 515, 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...
5
func TestSenderExecutor(t *testing.T) { tests := []struct { name string mockDb NotificationLoader expectedResult []contract.Notification expectedError bool expectedErrType error }{ { name: "Successful database call", mockDb: createMockNotificiationLoaderSen...
explode_data.jsonl/31056
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 867 }
[ 2830, 3393, 20381, 25255, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 77333, 7994, 688, 16571, 9181, 198, 197, 42400, 2077, 220, 3056, 20257, 49329, 198, 197, 42400, 1454, 256, 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...
7
func TestBoolColumnValue_Clone(t *testing.T) { tests := []struct { name string b *BoolColumnValue want ColumnValue }{ { name: "true", b: NewBoolColumnValue(true).(*BoolColumnValue), want: NewBoolColumnValue(true), }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got ...
explode_data.jsonl/73246
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 269 }
[ 2830, 3393, 11233, 2933, 1130, 85110, 603, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 2233, 262, 353, 11233, 2933, 1130, 198, 197, 50780, 9332, 1130, 198, 197, 59403, 197, 197, 515, 298, 116...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestControllerUpdateEventWithGoodController(t *testing.T) { c, tc := makeController("apps/v1", "ReplicaSet") c.Update(simpleOwnedPod("unit", "test")) validateSent(t, tc, sourcesv1beta1.ApiServerSourceUpdateRefEventType) }
explode_data.jsonl/39267
{ "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, 2051, 4289, 1556, 2354, 15216, 2051, 1155, 353, 8840, 836, 8, 341, 1444, 11, 17130, 1669, 1281, 2051, 445, 27635, 5457, 16, 497, 330, 18327, 15317, 1649, 1138, 1444, 16689, 1141, 6456, 57641, 23527, 445, 3843, 497, 330, 1944...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIPv4(t *testing.T) { b := header.IPv4(make([]byte, header.IPv4MinimumSize)) b.Encode(&header.IPv4Fields{}) const want = header.IPv4Version if v := header.IPVersion(b); v != want { t.Fatalf("Bad version, want %v, got %v", want, v) } }
explode_data.jsonl/67077
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 58056, 19, 1155, 353, 8840, 836, 8, 972, 2233, 1669, 4247, 46917, 85, 19, 36944, 10556, 3782, 11, 4247, 46917, 85, 19, 28695, 1695, 5784, 2233, 50217, 2099, 2708, 46917, 85, 19, 8941, 28875, 871, 4777, 1366, 284, 4247, 469...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOptsDomain(t *testing.T) { testInputs(t, ` /ads$domain=foo.com|~info.foo.com ||bar.com^$domain=bar.com ||bar.com^$domain=baz.com `, []TestInput{ {URL: "http://foo.com/ads", Matched: true, OriginDomain: "foo.com"}, {URL: "http://foo.com/ads", Matched: false}, {URL: "http://other.foo.com/ads", Matche...
explode_data.jsonl/81617
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 333 }
[ 2830, 3393, 43451, 13636, 1155, 353, 8840, 836, 8, 341, 18185, 31946, 1155, 11, 22074, 14, 7664, 3, 12204, 28, 7975, 905, 91, 93, 2733, 58432, 905, 198, 8484, 2257, 905, 61, 3, 12204, 28, 2257, 905, 198, 8484, 2257, 905, 61, 3, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMulWithMULX(t *testing.T) { defer resetCpuFeatures() if !HasBMI2 { t.Skip("MULX not supported by the platform") } testMul(t, kUse_MULX, kUse_MUL) }
explode_data.jsonl/20916
{ "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, 59155, 2354, 44, 1094, 55, 1155, 353, 8840, 836, 8, 341, 16867, 7585, 34, 5584, 21336, 741, 743, 753, 10281, 95526, 17, 341, 197, 3244, 57776, 445, 44, 1094, 55, 537, 7248, 553, 279, 5339, 1138, 197, 532, 18185, 59155, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnmarshalEmptyValues(t *testing.T) { // Test first with a zero-valued dst. v := new(Parent) if err := Unmarshal([]byte(emptyXML), v); err != nil { t.Fatalf("zero: Unmarshal failed: got %v", err) } zBytes, zInt, zStr, zFloat, zBool := []byte{}, 0, "", float32(0), false want := &Parent{ IPtr: ...
explode_data.jsonl/25302
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1629 }
[ 2830, 3393, 1806, 27121, 3522, 6227, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 1156, 448, 264, 7168, 45154, 3260, 10648, 624, 5195, 1669, 501, 5304, 1390, 340, 743, 1848, 1669, 1230, 27121, 10556, 3782, 24216, 10609, 701, 348, 1215,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGarbageCollectBelowLowThreshold(t *testing.T) { policy := ImageGCPolicy{ HighThresholdPercent: 90, LowThresholdPercent: 80, } manager, _, mockStatsProvider := newRealImageGCManager(policy) // Expect 40% usage. mockStatsProvider.On("ImageFsStats").Return(&statsapi.FsStats{ AvailableBytes: uint64Ptr...
explode_data.jsonl/48112
{ "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, 43930, 20652, 47504, 38214, 24187, 37841, 1155, 353, 8840, 836, 8, 341, 3223, 8018, 1669, 4654, 38, 7123, 8018, 515, 197, 197, 11976, 37841, 32010, 25, 220, 24, 15, 345, 197, 15070, 363, 37841, 32010, 25, 220, 220, 23, 15,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRequestLTCreation(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip() } _, err := f.RequestLTCreation(context.Background(), testLeverageToken, 1) if err != nil { t.Error(err) } }
explode_data.jsonl/15202
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 90 }
[ 2830, 3393, 1900, 43, 7749, 26453, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 341, 197, 3244, 57776, 741, 197, 532, 197, 6878, 1848, 1669, 282, 9659, 43, 7749, 26453, 5378, 19047,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGenModel_Issue196(t *testing.T) { specDoc, err := loads.Spec("../fixtures/bugs/196/swagger.yml") require.NoError(t, err) definitions := specDoc.Spec().Definitions schema := definitions["Event"] opts := opts() genModel, err := makeGenDefinition("Event", "models", schema, specDoc, opts) require.NoError(t...
explode_data.jsonl/2537
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 229 }
[ 2830, 3393, 9967, 1712, 7959, 83890, 16, 24, 21, 1155, 353, 8840, 836, 8, 341, 98100, 9550, 11, 1848, 1669, 20907, 36473, 17409, 45247, 14, 56176, 14, 16, 24, 21, 80930, 33936, 1138, 17957, 35699, 1155, 11, 1848, 692, 7452, 4054, 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...
1
func TestFindNear(t *testing.T) { l := NewSkiplist(arenaSize, new(y.DefaultKeyComparator)) defer l.DecrRef() for i := 0; i < 1000; i++ { key := fmt.Sprintf("%05d", i*10+5) l.Put(y.KeyWithTs([]byte(key), 0), y.ValueStruct{Value: newValue(i), Meta: 0, UserMeta: 0}) } n, eq := l.findNear(y.KeyWithTs([]byte("0000...
explode_data.jsonl/49653
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1982 }
[ 2830, 3393, 9885, 51962, 1155, 353, 8840, 836, 8, 341, 8810, 1669, 1532, 50, 6642, 39934, 7, 30527, 1695, 11, 501, 7021, 13275, 1592, 38658, 1171, 16867, 326, 22442, 81, 3945, 741, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 16, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestRemapCRDVersionActionData(t *testing.T) { backup := &v1.Backup{} clientset := apiextfakes.NewSimpleClientset() betaClient := clientset.ApiextensionsV1beta1().CustomResourceDefinitions() a := NewRemapCRDVersionAction(velerotest.NewLogger(), betaClient) tests := []struct { crd string...
explode_data.jsonl/48953
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1122 }
[ 2830, 3393, 6590, 391, 8973, 35, 5637, 2512, 1043, 1155, 353, 8840, 836, 8, 341, 197, 31371, 1669, 609, 85, 16, 8864, 454, 16094, 25291, 746, 1669, 6330, 427, 69, 2050, 7121, 16374, 2959, 746, 741, 2233, 1915, 2959, 1669, 2943, 746, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetSNMPConnection_v3(t *testing.T) { s := &Snmp{ Agents: []string{"1.2.3.4"}, ClientConfig: snmp.ClientConfig{ Version: 3, MaxRepetitions: 20, ContextName: "mycontext", SecLevel: "authPriv", SecName: "myuser", AuthProtocol: "md5", AuthPassword: "password123"...
explode_data.jsonl/50786
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 601 }
[ 2830, 3393, 1949, 18966, 5781, 4526, 2273, 18, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 609, 20720, 1307, 515, 197, 197, 91804, 25, 3056, 917, 4913, 16, 13, 17, 13, 18, 13, 19, 7115, 197, 71724, 2648, 25, 4131, 1307, 11716, 2648, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWorkflowValidateActionConnectedness(t *testing.T) { workflow := &Workflow{ Name: "testWorkflow", Version: "v0.0.0.0.1", TaskTemplates: []TaskTemplate{ TaskTemplate{ TaskName: "GetHTML", Initial: true, ActionTemplates: []ActionTemplate{ ActionTemplate{ Name: "HTTP1", ...
explode_data.jsonl/19593
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 480 }
[ 2830, 3393, 62768, 17926, 2512, 21146, 2090, 1155, 353, 8840, 836, 8, 341, 197, 56249, 1669, 609, 62768, 515, 197, 21297, 25, 262, 330, 1944, 62768, 756, 197, 77847, 25, 330, 85, 15, 13, 15, 13, 15, 13, 15, 13, 16, 756, 197, 81153...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDFSPath(t *testing.T) { g := map[int][]int{ 1: {2}, 2: {3, 4}, 3: {2}, 4: {1}, } t1 := newTestTraversal(g) p1 := DFSPath(t1, t1.Equals, 1, 2) if !reflect.DeepEqual(p1, []T{1, 2}) { t.Errorf("Expected DFS(1,2) to equal {1,2} but got: %v", p1) } t2 := newTestTraversal(g) p2 := DFSPath(t2, t...
explode_data.jsonl/30659
{ "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, 62266, 1820, 1155, 353, 8840, 836, 8, 1476, 3174, 1669, 2415, 18640, 45725, 396, 515, 197, 197, 16, 25, 314, 17, 1583, 197, 197, 17, 25, 314, 18, 11, 220, 19, 1583, 197, 197, 18, 25, 314, 17, 1583, 197, 197, 19, 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...
4
func TestCurrentContextEntryPoint(t *testing.T) { conf, cleanup := testutil.InitConfig(t) defer cleanup(t) entryPoint, err := conf.CurrentContextEntryPoint(defaultString) require.Error(t, err) assert.Equal(t, "", entryPoint) conf.CurrentContext = currentContextName conf.Contexts[currentContextName].Manifest = ...
explode_data.jsonl/57908
{ "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, 5405, 1972, 97416, 1155, 353, 8840, 836, 8, 341, 67850, 11, 21290, 1669, 1273, 1314, 26849, 2648, 1155, 340, 16867, 21290, 1155, 692, 48344, 2609, 11, 1848, 1669, 2335, 11517, 1972, 97416, 18978, 703, 340, 17957, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGFp2Invert(t *testing.T) { pool := new(bnPool) a := newGFp2(pool) a.x.SetString("23423492374", 10) a.y.SetString("12934872398472394827398470", 10) inv := newGFp2(pool) inv.Invert(a, pool) b := newGFp2(pool).Mul(inv, a, pool) if b.x.Int64() != 0 || b.y.Int64() != 1 { t.Fatalf("bad result for a^-1*a...
explode_data.jsonl/52893
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 238 }
[ 2830, 3393, 36332, 79, 17, 641, 1621, 1155, 353, 8840, 836, 8, 341, 85273, 1669, 501, 1883, 77, 10551, 692, 11323, 1669, 501, 36332, 79, 17, 41838, 340, 11323, 1993, 97304, 445, 17, 18, 19, 17, 18, 19, 24, 17, 18, 22, 19, 497, 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...
4
func TestNote_Delete(t *testing.T) { key := "api key" mockResponse := "" server, err := invdmockserver.New(204, mockResponse, "json", true) if err != nil { t.Fatal(err) } defer server.Close() client := Client{invoiced.NewMockApi(key, server)} err = client.Delete(1234) if err != nil { t.Fatal("Error oc...
explode_data.jsonl/74514
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 9112, 57418, 1155, 353, 8840, 836, 8, 341, 23634, 1669, 330, 2068, 1376, 1837, 77333, 2582, 1669, 35829, 41057, 11, 1848, 1669, 1529, 13849, 1176, 4030, 7121, 7, 17, 15, 19, 11, 7860, 2582, 11, 330, 2236, 497, 830, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestMalformedComment(t *testing.T) { testData := []string{ "<X><!-- a---></X>", "<X><!-- -- --></X>", "<X><!-- a--b --></X>", "<X><!------></X>", } for i, test := range testData { data := []byte(test) v := new(X) if err := Unmarshal(data, v); err == nil { t.Errorf("%d: unmarshal should reject i...
explode_data.jsonl/25300
{ "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, 29600, 10155, 10677, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 1669, 3056, 917, 515, 197, 197, 22476, 55, 13301, 264, 313, 405, 522, 55, 35452, 197, 197, 22476, 55, 13301, 1177, 1177, 1472, 55, 35452, 197, 197, 22476, 55,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransportResponseAndResetWithoutConsumingBodyRace(t *testing.T) { st := newServerTester(t, func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) }, optOnlyServer) defer st.Close() tr := &Transport{TLSClientConfig: tlsConfigInsecure} defer tr.CloseIdleConnections() // The request...
explode_data.jsonl/16145
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 27560, 2582, 3036, 14828, 26040, 41966, 287, 5444, 55991, 1155, 353, 8840, 836, 8, 341, 18388, 1669, 501, 5475, 58699, 1155, 11, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6692, 69794, 19886, 52989, 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 TestNewApplicationGroup(t *testing.T) { t.Run("Application with capabilities", func(t *testing.T) { config := genesisconfig.Load(genesisconfig.SampleSingleMSPChannelV11Profile) group, err := NewApplicationGroup(config.Application) assert.NoError(t, err) assert.NotNil(t, group) }) t.Run("Application unk...
explode_data.jsonl/78130
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 217 }
[ 2830, 3393, 3564, 4988, 2808, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4988, 448, 16928, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 25873, 1669, 59366, 1676, 13969, 36884, 13774, 1676, 76266, 10888, 44, 4592, 9629, 53, 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 TestBlock1(t *testing.T) { dir := testutils.InitTestEnv(ModuleName, t) c, mgr, driver := initTestContext(t, dir) defer driver.Close() defer mgr.Stop() defer c.Close() txn1 := mgr.StartTxn(nil) db, _ := txn1.CreateDatabase("db") schema := catalog.MockSchema(1) rel, _ := db.CreateRelation(schema) seg, _ :...
explode_data.jsonl/14656
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 439 }
[ 2830, 3393, 4713, 16, 1155, 353, 8840, 836, 8, 341, 48532, 1669, 1273, 6031, 26849, 2271, 14359, 75295, 675, 11, 259, 340, 1444, 11, 57897, 11, 5579, 1669, 2930, 2271, 1972, 1155, 11, 5419, 340, 16867, 5579, 10421, 741, 16867, 57897, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExceedingSizeCausesEviction(t *testing.T) { const ( testCacheSize = 5 testTimeout = 2 * time.Second ) evictCh := make(chan Key, testCacheSize) onEvicted := func(k Key, _ *Entry) { t.Logf("evicted key {%+v} from cache", k) evictCh <- k } keysToFill := []Key{{Path: "a"}, {Path: "b"}, {Path: "c"...
explode_data.jsonl/77598
{ "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, 840, 4635, 287, 1695, 22571, 4776, 34112, 2479, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 18185, 8233, 1695, 284, 220, 20, 198, 197, 18185, 7636, 256, 284, 220, 17, 353, 882, 32435, 198, 197, 692, 74837, 849, 1143, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEtcdBeforeShutdown(t *testing.T) { t.Parallel() for _, table := range etcdSDTables { t.Run(table.server.ID, func(t *testing.T) { config := config.NewDefaultEtcdServiceDiscoveryConfig() c, cli := helpers.GetTestEtcd(t) defer c.Terminate(t) e := getEtcdSD(t, *config, table.server, cli) e.Init(...
explode_data.jsonl/61565
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 31860, 4385, 10227, 62004, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 8358, 1965, 1669, 2088, 1842, 4385, 5491, 21670, 341, 197, 3244, 16708, 15761, 12638, 9910, 11, 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 TestTaskExecID(t *testing.T) { results := make(map[string]bool) testcases := []struct { taskID string execID string }{ { taskID: "task-task", execID: "task", }, { taskID: "task", execID: "task-task", }, { taskID: "task", execID: "task", }, { taskID: "task", execID: "",...
explode_data.jsonl/22772
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 293 }
[ 2830, 3393, 6262, 10216, 915, 1155, 353, 8840, 836, 8, 341, 55497, 1669, 1281, 9147, 14032, 96436, 692, 18185, 23910, 1669, 3056, 1235, 341, 197, 49115, 915, 914, 198, 197, 67328, 915, 914, 198, 197, 59403, 197, 197, 515, 298, 49115, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInstall(t *testing.T) { // Initialize ledgermgmt that inturn initializes internal components (such as cceventmgmt on which this test depends) tempdir, err := ioutil.TempDir("", "lscc-test") require.NoError(t, err, "failed to create temporary directory") defer os.RemoveAll(tempdir) initializer := ledgermg...
explode_data.jsonl/11788
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1374 }
[ 2830, 3393, 24690, 1155, 353, 8840, 836, 8, 341, 197, 322, 9008, 46933, 12311, 2501, 429, 304, 412, 57857, 5306, 6813, 320, 20805, 438, 272, 346, 684, 12311, 2501, 389, 892, 419, 1273, 13798, 340, 16280, 3741, 11, 1848, 1669, 43144, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBufioDecReader(t *testing.T) { testOnce.Do(testInitAll) // try to read 85 bytes in chunks of 7 at a time. var s = strings.Repeat("01234'56789 ", 5) // fmt.Printf("s: %s\n", s) var r = strings.NewReader(s) var br = &bufioDecReader{r: r, buf: make([]byte, 0, 13)} b, err := ioutil.ReadAll(br) if err ...
explode_data.jsonl/21003
{ "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, 15064, 815, 4900, 5062, 1155, 353, 8840, 836, 8, 341, 18185, 12522, 33596, 8623, 3803, 2403, 340, 197, 322, 1430, 311, 1349, 220, 23, 20, 5820, 304, 26757, 315, 220, 22, 518, 264, 882, 624, 2405, 274, 284, 9069, 2817, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestRetryPolicySuccessWithPerTryTimeout(t *testing.T) { srv, close := mock.NewServer() defer close() srv.AppendResponse(mock.WithSlowResponse(5 * time.Second)) srv.AppendResponse(mock.WithStatusCode(http.StatusOK)) opt := testRetryOptions() opt.TryTimeout = 1 * time.Second pl := NewPipeline(srv, NewRetryPol...
explode_data.jsonl/24393
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 371 }
[ 2830, 3393, 51560, 13825, 7188, 2354, 3889, 21453, 7636, 1155, 353, 8840, 836, 8, 341, 1903, 10553, 11, 3265, 1669, 7860, 7121, 5475, 741, 16867, 3265, 741, 1903, 10553, 8982, 2582, 30389, 26124, 58289, 2582, 7, 20, 353, 882, 32435, 117...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDaoTxUpdateStateTagRes(t *testing.T) { var ( tid = int64(0) oid = int64(0) tp = int32(0) state = int32(0) ) convey.Convey("TxUpdateStateTagRes", t, func(ctx convey.C) { tx, err := d.BeginTran(context.TODO()) if err != nil { return } affect, err := d.TxUpdateStateTagRes(tx, tid, oid...
explode_data.jsonl/46404
{ "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, 12197, 31584, 4289, 1397, 5668, 1061, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 3244, 307, 256, 284, 526, 21, 19, 7, 15, 340, 197, 197, 588, 256, 284, 526, 21, 19, 7, 15, 340, 197, 73423, 262, 284, 526, 18, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAcceptOTCQuote(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() || !canManipulateRealOrders { t.Skip("skipping test, either api keys or canManipulateRealOrders isnt set correctly") } err := f.AcceptOTCQuote(context.Background(), "1031") if err != nil { t.Error(err) } }
explode_data.jsonl/15236
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 111 }
[ 2830, 3393, 16646, 1793, 34, 19466, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 1369, 753, 4814, 92876, 6334, 12768, 24898, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 11, 2987, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWithGremlinVersion(t *testing.T) { t.Parallel() Convey("Given a Gremlin version and dialer", t, func() { v := 3 dialer := &mockDialerStruct{} Convey("When Dial is called with Gremlin Version", func() { c, _ := mockDial(dialer, WithGremlinVersion(v)) Convey("Then the client Gremlin version should...
explode_data.jsonl/53403
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 158 }
[ 2830, 3393, 2354, 64747, 40926, 5637, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 93070, 5617, 445, 22043, 264, 13532, 40926, 2319, 323, 27860, 261, 497, 259, 11, 2915, 368, 341, 197, 5195, 1669, 220, 18, 198, 197, 2698, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestKafkaClient_decodeOffsetKeyV0_Errors(t *testing.T) { for _, values := range decodeOffsetKeyV0Errors { _, errorAt := decodeOffsetKeyV0(bytes.NewBuffer(values.Bytes)) assert.Equalf(t, values.ErrorAt, errorAt, "Expected errorAt to be %v, not %v", values.ErrorAt, errorAt) } }
explode_data.jsonl/34266
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 108 }
[ 2830, 3393, 42, 21883, 2959, 15227, 6446, 1592, 53, 15, 93623, 1087, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 2750, 1669, 2088, 16895, 6446, 1592, 53, 15, 13877, 341, 197, 197, 6878, 1465, 1655, 1669, 16895, 6446, 1592, 53, 15, 23158...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNumberDataPointSlice(t *testing.T) { es := NewNumberDataPointSlice() assert.EqualValues(t, 0, es.Len()) es = newNumberDataPointSlice(&[]*otlpmetrics.NumberDataPoint{}) assert.EqualValues(t, 0, es.Len()) es.EnsureCapacity(7) emptyVal := newNumberDataPoint(&otlpmetrics.NumberDataPoint{}) testVal := gener...
explode_data.jsonl/32716
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 216 }
[ 2830, 3393, 2833, 1043, 2609, 33236, 1155, 353, 8840, 836, 8, 341, 78966, 1669, 1532, 2833, 1043, 2609, 33236, 741, 6948, 12808, 6227, 1155, 11, 220, 15, 11, 1531, 65819, 2398, 78966, 284, 501, 2833, 1043, 2609, 33236, 2099, 1294, 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...
2
func TestLang_English_ToShortWeekString(t *testing.T) { assert := assert.New(t) tests := []struct { input string // 输入值 expected string // 期望值 }{ {"", ""}, {"0", ""}, {"0000-00-00", ""}, {"00:00:00", ""}, {"0000-00-00 00:00:00", ""}, {"2020-08-01", "Sat"}, {"2020-08-02", "Sun"}, {"2020-08-03...
explode_data.jsonl/29476
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 304 }
[ 2830, 3393, 26223, 2089, 968, 1672, 38346, 12472, 17053, 703, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 78216, 1669, 3056, 1235, 341, 197, 22427, 262, 914, 442, 69058, 25511, 198, 197, 42400, 914, 442, 220, 106076...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_MapKeys(t *testing.T) { keys := MapKeys(mapTestData) count := 0 var o fluent.Option[string] for o = keys.Next(); o.IsPresent(); o = keys.Next() { count++ val := o.Get() assert.Contains(t, mapTestKeys, val, "value") } assert.Equal(t, len(mapTestKeys), count, "size") assert.NotNil(t, o, "option")...
explode_data.jsonl/53412
{ "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, 56992, 8850, 1155, 353, 8840, 836, 8, 341, 80112, 1669, 5027, 8850, 9147, 83920, 692, 18032, 1669, 220, 15, 198, 2405, 297, 57768, 52216, 14032, 921, 2023, 297, 284, 6894, 18501, 2129, 297, 4506, 21195, 2129, 297, 284, 6894,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPathWithinBase(t *testing.T) { tests := []struct { name string fullPath string basePath string expected bool }{ { name: "good subpath", fullPath: "/a/b/c", basePath: "/a", expected: true, }, { name: "good subpath 2", fullPath: "/a/b/c", basePath: "/a/b", expe...
explode_data.jsonl/76950
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 876 }
[ 2830, 3393, 1820, 41961, 3978, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 94042, 1820, 914, 198, 197, 24195, 1820, 914, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 515, 298, 11609...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMetricLoggerNoOp(t *testing.T) { metrics := GetMetricLogger().ExtendDimensions("location=Dublin") metrics.Record("ProcessingTime", 1, MILLI_SECOND) metrics.IncCounter("MyCounter", 1) }
explode_data.jsonl/80960
{ "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, 54310, 7395, 2753, 7125, 1155, 353, 8840, 836, 8, 341, 262, 16734, 1669, 2126, 54310, 7395, 1005, 72136, 21351, 445, 2527, 48634, 392, 3732, 1138, 262, 16734, 49959, 445, 28892, 1462, 497, 220, 16, 11, 82485, 40, 56224, 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
func TestReOpenningImmudbStore(t *testing.T) { defer os.RemoveAll("ahtree_test") ItCount := 5 ACount := 100 for it := 0; it < ItCount; it++ { tree, err := Open("ahtree_test", DefaultOptions().WithSynced(false)) require.NoError(t, err) for i := 0; i < ACount; i++ { p := []byte{byte(i)} _, _, err := t...
explode_data.jsonl/49664
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 405 }
[ 2830, 3393, 693, 5002, 1229, 50739, 661, 65, 6093, 1155, 353, 8840, 836, 8, 341, 16867, 2643, 84427, 445, 64, 426, 765, 4452, 5130, 61535, 2507, 1669, 220, 20, 198, 197, 1706, 629, 1669, 220, 16, 15, 15, 271, 2023, 432, 1669, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestFloat32_HasAny(t *testing.T) { testcases := []struct { name string s Float32 input []float32 expect bool }{ { name: "test Float32 HasAny, s has all elements", s: map[float32]struct{}{1: {}, 1.5: {}, 1.2: {}}, input: []float32{1, 1.5}, expect: true, }, { name: "t...
explode_data.jsonl/60109
{ "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, 5442, 18, 17, 2039, 300, 8610, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 1903, 414, 13001, 18, 17, 198, 197, 22427, 220, 3056, 3649, 18, 17, 198, 197, 24952, 1807,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccSnapshot_extendingManagedDisk(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_snapshot", "test") r := SnapshotResource{} data.ResourceTest(t, r, []acceptance.TestStep{ { Config: r.extendingManagedDisk(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).E...
explode_data.jsonl/78019
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 14603, 15009, 9927, 2459, 27192, 47583, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 25505, 25212, 83920, 1155, 11, 330, 1370, 324, 4195, 53265, 497, 330, 1944, 1138, 7000, 1669, 68697, 4783, 31483, 8924, 20766, 2271, 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 TestRuncRunExit(t *testing.T) { ctx := context.Background() okRunc := &Runc{ Command: "/bin/true", } status, err := okRunc.Run(ctx, "fake-id", "fake-bundle", &CreateOpts{}) if err != nil { t.Fatalf("Unexpected error from Run: %s", err) } if status != 0 { t.Fatalf("Expected exit status 0 from Run, got...
explode_data.jsonl/29501
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 302 }
[ 2830, 3393, 49, 1347, 6727, 15339, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 59268, 49, 1347, 1669, 609, 49, 1347, 515, 197, 97493, 25, 3521, 6863, 14, 1866, 756, 197, 630, 23847, 11, 1848, 1669, 5394, 49, 1347, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWsClient_Jrpc(t *testing.T) { //r := prework_pri(ISOLATE_ACCOUNT) r := prework_pri(CROSS_ACCOUNT) var res bool var err error var data *ProcessDetail start := time.Now() var args []map[string]interface{} param := map[string]interface{}{} param["instId"] = "BTC-USDT" param["clOrdId"] = "SIM0dcopy1606...
explode_data.jsonl/61324
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1474 }
[ 2830, 3393, 74733, 2959, 10598, 29414, 1155, 353, 8840, 836, 8, 341, 197, 322, 81, 1669, 855, 1778, 85639, 37096, 1930, 2336, 38831, 340, 7000, 1669, 855, 1778, 85639, 3025, 44484, 38831, 340, 2405, 592, 1807, 198, 2405, 1848, 1465, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestCharsetMakeFromBytesInverse(t *testing.T) { testdata := []struct { any Range src string printType int str string size uint32 }{ {Range{1, 256}, "", print_as_int, "1-255", 255}, {Range{1, 10}, "\\x01\\002", print_as_int, "3-9", 7}, {Range{1, 30}, "\\x01\\002-\\...
explode_data.jsonl/51967
{ "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, 78172, 8078, 3830, 7078, 69179, 1155, 353, 8840, 836, 8, 972, 18185, 691, 1669, 3056, 1235, 972, 197, 197, 3767, 981, 16437, 319, 197, 41144, 981, 914, 319, 197, 6900, 929, 526, 319, 197, 11355, 981, 914, 319, 197, 13832, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetServicesForChallenge(t *testing.T) { const createdServiceKey = "createdService" tests := map[string]solverFixture{ "should return one service that matches": { Challenge: &v1alpha1.Challenge{ Spec: v1alpha1.ChallengeSpec{ DNSName: "example.com", Config: &v1alpha1.SolverConfig{ HTTP...
explode_data.jsonl/57699
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1042 }
[ 2830, 3393, 1949, 11025, 2461, 62078, 1155, 353, 8840, 836, 8, 341, 4777, 3465, 1860, 1592, 284, 330, 7120, 1860, 698, 78216, 1669, 2415, 14032, 60, 75501, 18930, 515, 197, 197, 1, 5445, 470, 825, 2473, 429, 9071, 788, 341, 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...
2
func TestAccessibleReposEnv_CountRepos(t *testing.T) { assert.NoError(t, PrepareTestDatabase()) org := AssertExistsAndLoadBean(t, &User{ID: 3}).(*User) testSuccess := func(userID, expectedCount int64) { env, err := org.AccessibleReposEnv(userID) assert.NoError(t, err) count, err := env.CountRepos() assert.No...
explode_data.jsonl/71073
{ "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, 55390, 693, 966, 14359, 50775, 693, 966, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 31166, 2271, 5988, 2398, 87625, 1669, 5319, 15575, 3036, 5879, 10437, 1155, 11, 609, 1474, 90, 915, 25, 220, 18, 16630, 4071, 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...
1
func TestInitWithEC2metadataLocalIPErr(t *testing.T) { ctrl, mockMetadata, _ := setup(t) defer ctrl.Finish() mockMetadata.EXPECT().GetMetadata(metadataAZ).Return(az, nil) mockMetadata.EXPECT().GetMetadata(metadataLocalIP).Return(localIP, errors.New("Error on localIP")) ins := &EC2InstanceMetadataCache{ec2Metadata...
explode_data.jsonl/19283
{ "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, 3803, 2354, 7498, 17, 17637, 7319, 40, 1740, 634, 1155, 353, 8840, 836, 8, 341, 84381, 11, 7860, 14610, 11, 716, 1669, 6505, 1155, 340, 16867, 23743, 991, 18176, 2822, 77333, 14610, 22402, 7285, 1005, 1949, 14610, 54436, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAppExitStatus(t *testing.T) { // First container will succeed. succSpec := testutil.NewSpecWithArgs("true") conf := testutil.TestConfig() rootDir, bundleDir, err := testutil.SetupContainer(succSpec, conf) if err != nil { t.Fatalf("error setting up container: %v", err) } defer os.RemoveAll(rootDir) de...
explode_data.jsonl/48918
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 445 }
[ 2830, 3393, 2164, 15339, 2522, 1155, 353, 8840, 836, 8, 341, 197, 322, 5512, 5476, 686, 11996, 624, 1903, 14570, 8327, 1669, 1273, 1314, 7121, 8327, 2354, 4117, 445, 1866, 1138, 67850, 1669, 1273, 1314, 8787, 2648, 741, 33698, 6184, 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...
7
func TestGetOsVersionReturnsNoError(t *testing.T) { t.Parallel() ver, err := GetOsVersion() assert.NoError(t, err) assert.NotNil(t, ver) assert.NotEmpty(t, ver) //assert.Equal(t, "Windows 10 Pro 1803 build 17134", ver) }
explode_data.jsonl/72930
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 91 }
[ 2830, 3393, 1949, 28867, 5637, 16446, 2753, 1454, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 423, 11, 1848, 1669, 2126, 28867, 5637, 741, 6948, 35699, 1155, 11, 1848, 340, 6948, 93882, 1155, 11, 2739, 340, 6948, 15000, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEntrypoint(t *testing.T) { b := newBuilderWithMockBackend() sb := newDispatchRequest(b, '`', nil, newBuildArgs(make(map[string]*string)), newStagesBuildResults()) entrypointCmd := "/usr/sbin/nginx" cmd := &instructions.EntrypointCommand{ ShellDependantCmdLine: instructions.ShellDependantCmdLine{ CmdL...
explode_data.jsonl/34872
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 307 }
[ 2830, 3393, 52048, 1082, 781, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 501, 3297, 2354, 11571, 29699, 741, 24842, 1669, 501, 11283, 1900, 1883, 11, 55995, 516, 2092, 11, 501, 11066, 4117, 36944, 9147, 14032, 8465, 917, 5731, 501, 623, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOrPlan(t *testing.T) { plan := NewOrPlan( NewBooleanExpressionPlan( "=", NewVariablePlan("name"), NewConstantPlan("x"), ), NewBooleanExpressionPlan( "=", NewVariablePlan("name"), NewConstantPlan("y"), ), ) err := plan.Build() assert.Nil(t, err) t.Logf("%v", plan.Name()) err = p...
explode_data.jsonl/81465
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 283 }
[ 2830, 3393, 2195, 20485, 1155, 353, 8840, 836, 8, 341, 197, 10393, 1669, 1532, 2195, 20485, 1006, 197, 197, 3564, 6890, 9595, 20485, 1006, 298, 197, 1, 428, 345, 298, 197, 3564, 7827, 20485, 445, 606, 4461, 298, 197, 3564, 15472, 2048...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGC_TrackDeletedLayers_PostponeReviewOnConflict(t *testing.T) { require.NoError(t, testutil.TruncateAllTables(suite.db)) // create repo r := randomRepository(t) rs := datastore.NewRepositoryStore(suite.db) r, err := rs.CreateByPath(suite.ctx, r.Path) require.NoError(t, err) // create layer blob bs := ...
explode_data.jsonl/48568
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 649 }
[ 2830, 3393, 22863, 21038, 473, 26039, 40235, 66726, 80917, 19432, 1925, 57974, 1155, 353, 8840, 836, 8, 341, 17957, 35699, 1155, 11, 1273, 1314, 8240, 26900, 2403, 21670, 89516, 7076, 4390, 197, 322, 1855, 15867, 198, 7000, 1669, 4194, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnique(t *testing.T) { t.Log(rx.Slice(rx.Unique(rx.SliceIter(5, 2, 1, 2, 3, 3, 1, 4, 1)))) }
explode_data.jsonl/13717
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 52 }
[ 2830, 3393, 22811, 1155, 353, 8840, 836, 8, 341, 3244, 5247, 75279, 95495, 75279, 87443, 75279, 95495, 8537, 7, 20, 11, 220, 17, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 18, 11, 220, 16, 11, 220, 19, 11, 220, 16, 22788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGatherOhlcv(t *testing.T) { GatherOhlcv(&types.Options{ Symbol: "BTC", Convert: "USD", }, gocron.Every(10).Seconds()) gocron.Start() time.Sleep(15 * time.Second) }
explode_data.jsonl/15046
{ "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, 38, 1856, 11908, 75, 13122, 1155, 353, 8840, 836, 8, 341, 9600, 1856, 11908, 75, 13122, 2099, 9242, 22179, 515, 197, 7568, 4001, 25, 220, 330, 59118, 756, 197, 197, 12012, 25, 330, 26749, 756, 197, 2137, 342, 509, 2248, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSaveECDSA(t *testing.T) { f, err := ioutil.TempFile("", "saveecdsa_test.*.txt") if err != nil { t.Fatal(err) } file := f.Name() f.Close() defer os.Remove(file) key, _ := HexToECDSA(testPrivHex) if err := SaveECDSA(file, key); err != nil { t.Fatal(err) } loaded, err := LoadECDSA(file) if err != ...
explode_data.jsonl/3762
{ "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, 8784, 7498, 72638, 1155, 353, 8840, 836, 8, 341, 1166, 11, 1848, 1669, 43144, 65009, 1703, 19814, 330, 6628, 757, 96780, 4452, 4908, 13, 8586, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 17661, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStorageHandlePersistAndDiscard(t *testing.T) { dir := t.TempDir() fm := NewLocalFileManager(storagecfg.LocalFileConfig{BaseDir: dir}) mockManagerClient := &manager.MockClient{} cli := rpcutil.NewFailoverRPCClientsForTest[pb.ResourceManagerClient](mockManagerClient) desc, err := fm.CreateResource("worker-...
explode_data.jsonl/59647
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 676 }
[ 2830, 3393, 5793, 6999, 61267, 3036, 23477, 567, 1155, 353, 8840, 836, 8, 341, 48532, 1669, 259, 65009, 6184, 741, 1166, 76, 1669, 1532, 7319, 62878, 52463, 14072, 20856, 1703, 2648, 90, 3978, 6184, 25, 5419, 3518, 77333, 2043, 2959, 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 TestIsYellow(t *testing.T) { var tests = []struct { name string word string letter string position int guess string want bool }{ { name: "Yellow", word: "FROGS", letter: "F", position: 1, guess: "AFROS", want: true, }, { name: "Green (Y...
explode_data.jsonl/31143
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1063 }
[ 2830, 3393, 3872, 47699, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 66298, 257, 914, 198, 197, 197, 9451, 256, 914, 198, 197, 35739, 526, 198, 197, 3174, 33301, 262, 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...
2
func TestNewModuleRegistry(t *testing.T) { modulesPath, err := filepath.Abs("../module") require.NoError(t, err) falseVar := false configs := []*ModuleConfig{ { Module: "nginx", Filesets: map[string]*FilesetConfig{ "access": {}, "error": {}, "ingress_controller": { Enabled: &falseVar, ...
explode_data.jsonl/64753
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 838 }
[ 2830, 3393, 3564, 3332, 15603, 1155, 353, 8840, 836, 8, 341, 42228, 2425, 1820, 11, 1848, 1669, 26054, 33255, 17409, 4352, 1138, 17957, 35699, 1155, 11, 1848, 692, 36012, 3962, 1669, 895, 271, 25873, 82, 1669, 29838, 3332, 2648, 515, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestExecFailure(t *testing.T) { t.Parallel() testWithAndWithoutPreferSimpleProtocol(t, func(t *testing.T, conn *pgx.Conn) { if _, err := conn.Exec(context.Background(), "selct;"); err == nil { t.Fatal("Expected SQL syntax error") } rows, _ := conn.Query(context.Background(), "select 1") rows.Close()...
explode_data.jsonl/40005
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 10216, 17507, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18185, 2354, 3036, 26040, 4703, 802, 16374, 20689, 1155, 11, 2915, 1155, 353, 8840, 836, 11, 4534, 353, 3517, 87, 50422, 8, 341, 197, 743, 8358, 1848, 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...
3
func TestMysql(t *testing.T) { config := DatabaseConfig{ Type: "mysql", Database: "TEAM_IDE_TEST", Host: "mysql", Port: 3306, Username: "root", Password: "123456", } all(config) }
explode_data.jsonl/64704
{ "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, 44, 14869, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 9994, 2648, 515, 197, 27725, 25, 257, 330, 12272, 756, 197, 197, 5988, 25, 330, 97052, 3450, 36, 11641, 756, 197, 197, 9296, 25, 257, 330, 12272, 756, 197, 98459, 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 TestPublishTopic(t *testing.T) { port, _ := freeport.GetFreePort() srv := &api{ pubsubAdapter: &daprt.MockPubSubAdapter{ PublishFn: func(req *pubsub.PublishRequest) error { if req.Topic == "error-topic" { return errors.New("error when publish") } if req.Topic == "err-not-found" { ret...
explode_data.jsonl/21737
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 747 }
[ 2830, 3393, 50145, 26406, 1155, 353, 8840, 836, 8, 341, 52257, 11, 716, 1669, 1910, 403, 2234, 10940, 7084, 2822, 1903, 10553, 1669, 609, 2068, 515, 197, 62529, 1966, 5940, 25, 609, 91294, 3342, 24664, 29162, 3136, 5940, 515, 298, 10025...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestValueBinder_Ints_Types(t *testing.T) { type target struct { int64 []int64 mustInt64 []int64 uint64 []uint64 mustUint64 []uint64 int32 []int32 mustInt32 []int32 uint32 []uint32 mustUint32 []uint32 int16 []int16 mustInt16 []int16 uint16 []uint16 mustUint16...
explode_data.jsonl/82546
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1344 }
[ 2830, 3393, 1130, 44055, 32054, 82, 1139, 1804, 1155, 353, 8840, 836, 8, 341, 13158, 2169, 2036, 341, 197, 2084, 21, 19, 414, 3056, 396, 21, 19, 198, 197, 2109, 590, 1072, 21, 19, 220, 3056, 396, 21, 19, 198, 197, 8254, 21, 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...
2
func TestGetOfferStatus(t *testing.T) { t.Parallel() _, err := b.GetOfferStatus(1337) if err == nil { t.Error("Test Failed - NewOffer() error") } }
explode_data.jsonl/79960
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 65 }
[ 2830, 3393, 1949, 39462, 2522, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 6878, 1848, 1669, 293, 2234, 39462, 2522, 7, 16, 18, 18, 22, 340, 743, 1848, 621, 2092, 341, 197, 3244, 6141, 445, 2271, 21379, 481, 1532, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClient_PurchaseReservedEip(t *testing.T) { args := &PurchaseReservedEipArgs{ Billing: &Billing{ Reservation: &Reservation{ ReservationLength: 1, ReservationTimeUnit: "month", }, }, } err := EIP_CLIENT.PurchaseReservedEip(EIP_ADDRESS, args) ExpectEqual(t.Errorf, nil, err) }
explode_data.jsonl/3037
{ "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, 2959, 1088, 12877, 53003, 36, 573, 1155, 353, 8840, 836, 8, 341, 31215, 1669, 609, 42841, 53003, 36, 573, 4117, 515, 197, 12791, 9400, 25, 609, 82007, 515, 298, 197, 54948, 25, 609, 54948, 515, 571, 197, 54948, 4373, 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 TestValidatePipelineTasks_Success(t *testing.T) { tests := []struct { name string tasks []PipelineTask }{{ name: "pipeline task with valid taskref name", tasks: []PipelineTask{{ Name: "foo", TaskRef: &TaskRef{Name: "example.com/my-foo-task"}, }}, }, { name: "pipeline task with valid tasksp...
explode_data.jsonl/26525
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 328 }
[ 2830, 3393, 17926, 34656, 25449, 87161, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 3244, 4604, 3056, 34656, 6262, 198, 197, 15170, 515, 197, 11609, 25, 330, 51258, 3383, 448, 2697, 3383, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGoCloakAdapter_SetServiceAccountAttributes(t *testing.T) { mockClient := new(MockGoCloakClient) adapter := GoCloakAdapter{ client: mockClient, basePath: "", token: &gocloak.JWT{AccessToken: "token"}, } usr1 := gocloak.User{ Username: gocloak.StringP("user1"), Attributes: &map[string][]stri...
explode_data.jsonl/4141
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 319 }
[ 2830, 3393, 10850, 51236, 585, 5940, 14812, 1860, 7365, 10516, 1155, 353, 8840, 836, 8, 341, 77333, 2959, 1669, 501, 66436, 10850, 51236, 585, 2959, 692, 197, 19731, 1669, 5994, 51236, 585, 5940, 515, 197, 25291, 25, 256, 7860, 2959, 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...
2
func TestSlaveStorage_getSlave(t *testing.T) { assert := assert.New(t) slaveStorage := newSlaveStorage() assert.Equal(0, len(slaveStorage.slaves)) slaveId := "slave1" slaveHostname := "slave1Hostname" _, exists := slaveStorage.getSlave(slaveId) assert.Equal(false, exists) slaveStorage.checkAndAdd(slaveId, s...
explode_data.jsonl/63770
{ "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, 95960, 5793, 3062, 95960, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 78626, 523, 5793, 1669, 501, 95960, 5793, 741, 6948, 12808, 7, 15, 11, 2422, 55691, 523, 5793, 25101, 4693, 4390, 78626, 523, 764, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetIconPackage(t *testing.T) { si, _ := simple_icons_go.Load() icon, err := si.Get("liquibase") if err != nil { t.Error(err) } lbIcon := simple_icons_go.Icon{ Title: "Liquibase", Slug: "liquibase", Hex: "2962FF", Source: "https://www.liquibase.com/brand", Svg: "<sv...
explode_data.jsonl/37385
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 780 }
[ 2830, 3393, 1949, 4395, 13100, 1155, 353, 8840, 836, 8, 341, 1903, 72, 11, 716, 1669, 4285, 59819, 25515, 13969, 741, 45084, 11, 1848, 1669, 4403, 2234, 445, 39993, 98746, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3