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 TestTokenAuthenticator(t *testing.T) { now := metav1.Now() tests := []struct { name string secrets []*api.Secret token string wantNotFound bool wantUser *user.DefaultInfo }{ { name: "valid token", secrets: []*api.Secret{ { ObjectMeta: metav1.ObjectMeta{ Name: bootstrapa...
explode_data.jsonl/65924
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3263 }
[ 2830, 3393, 3323, 5087, 61393, 1155, 353, 8840, 836, 8, 341, 80922, 1669, 77520, 16, 13244, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 271, 197, 84686, 52710, 29838, 2068, 74779, 198, 197, 43947, 256, 914, 271, 197, 50780, 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...
6
func TestByteSubscriptions_keys(t *testing.T) { tests := []struct { name string sub ByteSubscriptions want []string }{ { "0,8", ByteSubscriptions{ "0000": &PartialSubscription{0, "0", ByteSubscriptions{}}, "1000": &PartialSubscription{0, "8", ByteSubscriptions{}}, }, []string{"0000", "100...
explode_data.jsonl/38238
{ "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, 7153, 3136, 29966, 12631, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 28624, 220, 10906, 3136, 29966, 198, 197, 50780, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 197, 1, 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 TestReconcileServiceInstanceUpdateAsynchronous(t *testing.T) { key := osb.OperationKey(testOperation) fakeKubeClient, fakeCatalogClient, fakeClusterServiceBrokerClient, testController, sharedInformers := newTestController(t, fakeosb.FakeClientConfiguration{ UpdateInstanceReaction: &fakeosb.UpdateInstanceReacti...
explode_data.jsonl/58196
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 973 }
[ 2830, 3393, 693, 40446, 457, 1860, 2523, 4289, 2121, 27834, 1155, 353, 8840, 836, 8, 341, 23634, 1669, 2643, 65, 56297, 1592, 8623, 8432, 340, 1166, 726, 42, 3760, 2959, 11, 12418, 41606, 2959, 11, 12418, 28678, 1860, 65545, 2959, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestDefaultErrorHandlerDoesNotWriteIfAlreadyWritten(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() mrw := NewMockResponseWriter(ctrl) mrw.EXPECT().Len().Return(1) mc := NewMockContext(ctrl) mc.EXPECT().Response().Return(mrw) defaultErrorHandler(mc, errors.New("hello, world")) }
explode_data.jsonl/18943
{ "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, 3675, 66673, 21468, 2623, 7985, 2679, 38370, 35624, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 2109, 31768, 1669, 1532, 11571, 2582, 6492, 62100, 340, 2109...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParamSubstitutionWithArtifact(t *testing.T) { wf := test.LoadE2EWorkflow("functional/param-sub-with-artifacts.yaml") woc := newWoc(*wf) woc.operate() wf, err := woc.controller.wfclientset.ArgoprojV1alpha1().Workflows("").Get(wf.ObjectMeta.Name, metav1.GetOptions{}) assert.NoError(t, err) assert.Equal(t, ...
explode_data.jsonl/54376
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 215 }
[ 2830, 3393, 2001, 3136, 10446, 2354, 85578, 1155, 353, 8840, 836, 8, 341, 6692, 69, 1669, 1273, 13969, 36, 17, 36, 62768, 445, 49228, 14, 903, 17967, 26189, 37821, 26401, 33406, 1138, 6692, 509, 1669, 501, 54, 509, 4071, 43083, 340, 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 TestMonthDays(t *testing.T) { type args struct { year int month time.Month } tests := []struct { name string args args want int }{ {"1月", args{2020, time.January}, 31}, {"闰年2月", args{2020, time.February}, 29}, {"非闰年2月", args{2019, time.February}, 28}, {"3月", args{2020, time.March}, 31}, {"...
explode_data.jsonl/45308
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 435 }
[ 2830, 3393, 11318, 20557, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 197, 3157, 220, 526, 198, 197, 197, 10249, 882, 48383, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 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 TestDaoTagCount(t *testing.T) { var ( c = context.TODO() tid = int64(0) ) convey.Convey("TagCount", t, func(ctx convey.C) { res, err := d.TagCount(c, tid) ctx.Convey("Then err should be nil.res should not be nil.", func(ctx convey.C) { ctx.So(err, convey.ShouldBeNil) ctx.So(res, convey.ShouldNot...
explode_data.jsonl/36694
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 154 }
[ 2830, 3393, 12197, 5668, 2507, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 1444, 256, 284, 2266, 90988, 741, 197, 3244, 307, 284, 526, 21, 19, 7, 15, 340, 197, 340, 37203, 5617, 4801, 5617, 445, 5668, 2507, 497, 259, 11, 2915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAgent_Members(t *testing.T) { t.Parallel() a := NewTestAgent(t.Name(), "") defer a.Shutdown() req, _ := http.NewRequest("GET", "/v1/agent/members", nil) obj, err := a.srv.AgentMembers(nil, req) if err != nil { t.Fatalf("Err: %v", err) } val := obj.([]serf.Member) if len(val) == 0 { t.Fatalf("bad ...
explode_data.jsonl/33599
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 16810, 1245, 7062, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 11323, 1669, 1532, 2271, 16810, 1155, 2967, 1507, 14676, 16867, 264, 10849, 18452, 2822, 24395, 11, 716, 1669, 1758, 75274, 445, 3806, 497, 3521, 85, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenUUIDPreservedWhenNodeCountExceeds4(t *testing.T) { cluster := &logging.ClusterLogging{ Spec: logging.ClusterLoggingSpec{ LogStore: &logging.LogStoreSpec{ Type: "elasticsearch", ElasticsearchSpec: logging.ElasticsearchSpec{ NodeCount: 3, }, }, }, } cr := &ClusterLoggingRequest{ ...
explode_data.jsonl/72383
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 504 }
[ 2830, 3393, 9967, 24754, 14367, 2771, 4498, 1955, 2507, 840, 4635, 82, 19, 1155, 353, 8840, 836, 8, 341, 197, 18855, 1669, 609, 25263, 72883, 34575, 515, 197, 7568, 992, 25, 8392, 72883, 34575, 8327, 515, 298, 24201, 6093, 25, 609, 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 TestOutboundListenerConflict_Unordered(t *testing.T) { // Ensure that the order is preserved when all the times match. The first service in the list wins. testOutboundListenerConflict(t, buildService("test1.com", wildcardIP, protocol.HTTP, tzero), buildService("test2.com", wildcardIP, protocol.TCP, tzero), ...
explode_data.jsonl/61264
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 2662, 10891, 2743, 57974, 40687, 10544, 1155, 353, 8840, 836, 8, 341, 197, 322, 29279, 429, 279, 1973, 374, 33583, 979, 678, 279, 3039, 2432, 13, 576, 1156, 2473, 304, 279, 1140, 14816, 624, 18185, 2662, 10891, 2743, 57974, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewRestConfigFromKubeconfigSecretRefErrors(t *testing.T) { testcases := []struct { name string secret *secrets }{ { name: "empty map in the secret/kubeconfig doesn't exist as a key", secret: &secrets{ secret: &v1.Secret{ Data: map[string][]byte{ "unknown key": []byte(""), },...
explode_data.jsonl/65359
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 350 }
[ 2830, 3393, 3564, 12416, 2648, 3830, 42, 3760, 1676, 19773, 3945, 13877, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 197, 20474, 353, 325, 52710, 198, 197, 59403, 197, 197, 515, 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...
3
func TestUpgradeFromPrev(t *testing.T) { upgradedDbInfo := getUpgradedDbInfo(t, false, baseExtensionState) pristineDbInfo := getPristineDbInfo(t, false, baseExtensionState) if !reflect.DeepEqual(pristineDbInfo, upgradedDbInfo) { PrintDbSnapshotDifferences(t, pristineDbInfo, upgradedDbInfo) } }
explode_data.jsonl/79300
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 103 }
[ 2830, 3393, 43861, 3830, 33528, 1155, 353, 8840, 836, 8, 341, 59810, 23343, 7994, 1731, 1669, 633, 2324, 23343, 7994, 1731, 1155, 11, 895, 11, 2331, 12049, 1397, 340, 25653, 53065, 7994, 1731, 1669, 57720, 2819, 482, 7994, 1731, 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...
2
func TestAndCloseOpen(t *testing.T) { dir, err := ioutil.TempDir("", "tarwriter_test") if err != nil { assert.FailNow(t, "Cannot create temp dir", err.Error()) } tempFilePath := filepath.Join(dir, "test_file.tar") defer os.RemoveAll(dir) w := tarfile.NewWriter(tempFilePath) defer w.Close() err = w.Open() ass...
explode_data.jsonl/75874
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 3036, 7925, 5002, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 26737, 18189, 4452, 1138, 743, 1848, 961, 2092, 341, 197, 6948, 57243, 7039, 1155, 11, 330, 17444, 1855, 2730, 5419, 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...
3
func TestDecodeAssuredCallbackMissingTarget(t *testing.T) { decoded := false testDecode := func(resp http.ResponseWriter, req *http.Request) { c, err := decodeAssuredCallback(ctx, req) require.Nil(t, c) require.Error(t, err) require.Equal(t, "'Assured-Callback-Target' header required for callback", err.Error...
explode_data.jsonl/20259
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 265 }
[ 2830, 3393, 32564, 5615, 3073, 7494, 25080, 6397, 1155, 353, 8840, 836, 8, 341, 197, 62913, 1669, 895, 198, 18185, 32564, 1669, 2915, 20267, 1758, 37508, 11, 4232, 353, 1254, 9659, 8, 341, 197, 1444, 11, 1848, 1669, 16895, 5615, 3073, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScanJSONB(t *testing.T) { { a := testStruct{} err := ScanJSONB(&a, []byte(`{"x": 5, "z": "Hello", "v": 1}`)) assert.NoError(t, err) assert.Equal(t, "Hello", a.Z) assert.Equal(t, float64(1), a.V.V) assert.Equal(t, 5, a.X) } { a := testStruct{} err := DecodeJSONB(&a, []byte(`{"x": 5, "z": "Hel...
explode_data.jsonl/77556
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 916 }
[ 2830, 3393, 26570, 5370, 33, 1155, 353, 8840, 836, 8, 341, 197, 515, 197, 11323, 1669, 1273, 9422, 16094, 197, 9859, 1669, 31108, 5370, 33, 2099, 64, 11, 3056, 3782, 5809, 4913, 87, 788, 220, 20, 11, 330, 89, 788, 330, 9707, 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 TestSSH_CustomUser(t *testing.T) { withTestClient(t, func(config *CmdConfig, tm *tcMocks) { tm.sshRunner.EXPECT().Run().Return(nil) tc := config.Doit.(*doctl.TestConfig) tc.SSHFn = func(user, host, keyPath string, port int, opts ssh.Options) runner.Runner { assert.Equal(t, "foobar", user) return tm.s...
explode_data.jsonl/6480
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 230 }
[ 2830, 3393, 62419, 57402, 1474, 1155, 353, 8840, 836, 8, 341, 46948, 2271, 2959, 1155, 11, 2915, 8754, 353, 15613, 2648, 11, 17333, 353, 10413, 72577, 8, 341, 197, 3244, 76, 514, 927, 19486, 22402, 7285, 1005, 6727, 1005, 5598, 27907, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEngineNoQuery(t *testing.T) { config := DefaultConfig() sender := &common.SenderTest{} sender.T = t config.Sender = sender sender.Default(true) sender.CantGetAcceptedFrontier = false gBlk := &Blk{ id: GenerateID(), status: choices.Accepted, } vm := &VMTest{} vm.T = t vm.LastAcceptedF = f...
explode_data.jsonl/3566
{ "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, 4571, 2753, 2859, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 7899, 2648, 2822, 1903, 1659, 1669, 609, 5464, 808, 1659, 2271, 16094, 1903, 1659, 836, 284, 259, 198, 25873, 808, 1659, 284, 4646, 271, 1903, 1659, 13275, 3715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReplaceHook_DeleteError(t *testing.T) { controller := gomock.NewController(t) defer controller.Finish() hooks := []*scm.Hook{ { ID: "1", Target: "https://drone.company.com/hook", }, } hookInput := &scm.HookInput{ Target: "https://drone.company.com/hook", } remote := mockscm.NewMockRepo...
explode_data.jsonl/40652
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 294 }
[ 2830, 3393, 23107, 31679, 57418, 1454, 1155, 353, 8840, 836, 8, 341, 61615, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 6461, 991, 18176, 2822, 9598, 14685, 1669, 29838, 2388, 76, 3839, 1941, 515, 197, 197, 515, 298, 29580, 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...
2
func Test_scsi_GetDMChildren(t *testing.T) { type args struct { ctx context.Context dm string } ctx := context.Background() defaultArgs := args{ctx: ctx, dm: mh.ValidDMName} ctrl := gomock.NewController(t) defer ctrl.Finish() sysPath := fmt.Sprintf("/sys/block/%s/slaves/", mh.ValidDMName) mock := mh.M...
explode_data.jsonl/65989
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 979 }
[ 2830, 3393, 643, 63229, 13614, 8395, 11539, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 20985, 2266, 9328, 198, 197, 2698, 76, 220, 914, 198, 197, 630, 20985, 1669, 2266, 19047, 2822, 11940, 4117, 1669, 2827, 90, 3773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRepoLoadsAllDependantTemplates(t *testing.T) { var b bytes.Buffer repo := NewRepository(nil) err := repo.AddFile("multiple", multipleDefinitions) assert.NoError(t, err) err = repo.AddFile("dependant", dependantTemplate) assert.NoError(t, err) templ, err := repo.Get("dependant") assert.Nil(t, err) ...
explode_data.jsonl/49689
{ "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, 25243, 78517, 2403, 7839, 20372, 51195, 1155, 353, 8840, 836, 8, 1476, 2405, 293, 5820, 22622, 198, 17200, 5368, 1669, 1532, 4624, 27907, 692, 9859, 1669, 15867, 1904, 1703, 445, 35673, 497, 5248, 50542, 340, 6948, 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 TestPeerDistanceHeap_Distance(t *testing.T) { rng := rand.New(rand.NewSource(int64(0))) target := id.NewPseudoRandom(rng) cp := NewClosestPeers(target, 8) for _, p := range peer.NewTestPeers(rng, 8) { assert.True(t, target.Distance(p.ID()).Cmp(cp.Distance(p)) == 0) } }
explode_data.jsonl/41123
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 30888, 14778, 27909, 1557, 3924, 1155, 353, 8840, 836, 8, 341, 7000, 968, 1669, 10382, 7121, 37595, 7121, 3608, 1548, 21, 19, 7, 15, 5929, 28861, 1669, 877, 7121, 47, 21952, 13999, 87597, 340, 52018, 1669, 1532, 7925, 267, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_mapper_MapRulesSpecialCharNamespace(t *testing.T) { l := log.NewLogfmtLogger(os.Stdout) l = level.NewFilter(l, level.AllowInfo()) setupRuleSets() m := &mapper{ Path: "/rules", FS: afero.NewMemMapFs(), logger: l, } t.Run("create special characters rulegroup", func(t *testing.T) { updated, ...
explode_data.jsonl/34365
{ "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, 76664, 56992, 26008, 20366, 4768, 22699, 1155, 353, 8840, 836, 8, 341, 8810, 1669, 1487, 7121, 2201, 12501, 7395, 9638, 83225, 340, 8810, 284, 2188, 7121, 5632, 2333, 11, 2188, 29081, 1731, 2398, 84571, 11337, 30175, 741, 2109...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCollection_EnsureIndex(t *testing.T) { ast := require.New(t) cli := initClient("test") defer cli.Close(context.Background()) defer cli.DropCollection(context.Background()) cli.ensureIndex(context.Background(), nil) indexOpts := officialOpts.Index() indexOpts.SetUnique(true) cli.ensureIndex(context.Bac...
explode_data.jsonl/18367
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 356 }
[ 2830, 3393, 6482, 62, 64439, 1552, 1155, 353, 8840, 836, 8, 341, 88836, 1669, 1373, 7121, 1155, 340, 86448, 1669, 2930, 2959, 445, 1944, 1138, 16867, 21348, 10421, 5378, 19047, 2398, 16867, 21348, 21688, 6482, 5378, 19047, 12367, 86448, 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 TestDaoUpReportState(t *testing.T) { var ( c = context.TODO() id = int64(0) state = int32(0) ) convey.Convey("UpReportState", t, func(ctx convey.C) { affect, err := d.UpReportState(c, id, state) ctx.Convey("Then err should be nil.affect should not be nil.", func(ctx convey.C) { ctx.So(err, c...
explode_data.jsonl/51296
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 12197, 2324, 10361, 1397, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 1444, 257, 284, 2266, 90988, 741, 197, 15710, 262, 284, 526, 21, 19, 7, 15, 340, 197, 24291, 284, 526, 18, 17, 7, 15, 340, 197, 340, 37203, 5617,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetSNMPConnection_v2(t *testing.T) { s := &Snmp{ Agents: []string{"1.2.3.4:567", "1.2.3.4", "udp://127.0.0.1"}, ClientConfig: snmp.ClientConfig{ Timeout: config.Duration(3 * time.Second), Retries: 4, Version: 2, Community: "foo", }, } err := s.Init() require.NoError(t, err) gsc, e...
explode_data.jsonl/50784
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 498 }
[ 2830, 3393, 1949, 18966, 5781, 4526, 2273, 17, 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, 25, 20, 21, 22, 497, 330, 16, 13, 17, 13, 18, 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 TestRedis_HdelHlen(t *testing.T) { runOnRedis(t, func(client *Redis) { assert.Nil(t, client.Hset("a", "aa", "aaa")) assert.Nil(t, client.Hset("a", "bb", "bbb")) _, err := NewRedis(client.Addr, "").Hlen("a") assert.NotNil(t, err) num, err := client.Hlen("a") assert.Nil(t, err) assert.Equal(t, 2, num)...
explode_data.jsonl/39159
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 248 }
[ 2830, 3393, 48137, 2039, 9588, 39, 2892, 1155, 353, 8840, 836, 8, 341, 56742, 1925, 48137, 1155, 11, 2915, 12805, 353, 48137, 8, 341, 197, 6948, 59678, 1155, 11, 2943, 3839, 746, 445, 64, 497, 330, 5305, 497, 330, 32646, 5455, 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 TestRequest(t *testing.T) { t.Run("Context", func(t *testing.T) { t.Run("Default", testRequestContextDefault) t.Run("Custom", testRequestContextCustom) }) t.Run("WithContext", func(t *testing.T) { t.Run("Nil", testRequestWithContextNil) t.Run("Custom", testRequestWithContextCustom) }) }
explode_data.jsonl/14997
{ "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, 1900, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1972, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 16708, 445, 3675, 497, 1273, 1900, 1972, 3675, 340, 197, 3244, 16708, 445, 10268, 497, 1273, 1900, 1972, 10268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServerGetRecursive(t *testing.T) { listenerGo, hostGo, portGo := testServer(t, GolangSFTP, READONLY) defer listenerGo.Close() dirRemote, err := os.Getwd() if err != nil { t.Fatal(err) } tmpDirLocal := "/tmp/" + randName() defer os.RemoveAll(tmpDirLocal) t.Logf("get recursive: local %v remote %v", t...
explode_data.jsonl/6585
{ "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, 5475, 1949, 78542, 1155, 353, 8840, 836, 8, 341, 14440, 798, 10850, 11, 3468, 10850, 11, 2635, 10850, 1669, 1273, 5475, 1155, 11, 479, 37287, 50, 56468, 11, 18666, 31092, 340, 16867, 11446, 10850, 10421, 2822, 48532, 24703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJsonDirsPresenter(t *testing.T) { var buffer bytes.Buffer catalog := pkg.NewCatalog() // populate catalog with test data catalog.Add(pkg.Package{ ID: "package-1-id", Name: "package-1", Version: "1.0.1", Type: pkg.PythonPkg, FoundBy: "the-cataloger-1", Locations: []source.Location{ ...
explode_data.jsonl/13597
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 782 }
[ 2830, 3393, 5014, 97384, 33849, 1155, 353, 8840, 836, 8, 341, 2405, 4147, 5820, 22622, 271, 1444, 7750, 1669, 24793, 7121, 41606, 2822, 197, 322, 30446, 16403, 448, 1273, 821, 198, 1444, 7750, 1904, 68780, 49834, 515, 197, 29580, 25, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMarshal_roundtripFromBytes(t *testing.T) { before := []byte{ // length 0x1c, 0x0, 0x0, 0x0, // --- begin array --- // type - document 0x3, // key - "foo" 0x66, 0x6f, 0x6f, 0x0, // length 0x12, 0x0, 0x0, 0x0, // type - string 0x2, // key - "bar" 0x62, 0x61, 0x72, 0x0, // value - ...
explode_data.jsonl/12830
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 55438, 29896, 32981, 3830, 7078, 1155, 353, 8840, 836, 8, 341, 63234, 1669, 3056, 3782, 515, 197, 197, 322, 3084, 198, 197, 197, 15, 87, 16, 66, 11, 220, 15, 87, 15, 11, 220, 15, 87, 15, 11, 220, 15, 87, 15, 3554, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetEnv(t *testing.T) { // backup environment vars oldEnv := os.Environ() os.Clearenv() os.Setenv("k3", "v3") os.Setenv("PATH", "/bin") os.Setenv("k2", "v2") os.Setenv("FOO_k3", "foo_v3") os.Setenv("k4", "v4") os.Setenv("FOO_k2", "foo_v2") os.Setenv("FOO_HTTPS_PROXY", "a.b.c:1080") os.Setenv("HTTPS_...
explode_data.jsonl/52872
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 606 }
[ 2830, 3393, 1949, 14359, 1155, 353, 8840, 836, 8, 341, 197, 322, 15725, 4573, 19942, 198, 61828, 14359, 1669, 2643, 22834, 2772, 2822, 25078, 727, 273, 9151, 85, 741, 25078, 4202, 3160, 445, 74, 18, 497, 330, 85, 18, 1138, 25078, 4202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestColIdentMarshal(t *testing.T) { str := NewColIdent("Ab") b, err := json.Marshal(str) if err != nil { t.Fatal(err) } got := string(b) want := `"Ab"` if got != want { t.Errorf("json.Marshal()= %s, want %s", got, want) } var out ColIdent if err := json.Unmarshal(b, &out); err != nil { t.Errorf("Un...
explode_data.jsonl/3383
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 205 }
[ 2830, 3393, 6127, 28301, 55438, 1155, 353, 8840, 836, 8, 341, 11355, 1669, 1532, 6127, 28301, 445, 5830, 1138, 2233, 11, 1848, 1669, 2951, 37271, 4199, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 3174, 354, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBaseIdentity_GetThwart(t *testing.T) { i := getTestBaseIdentity() th := i.GetThwart() if th != 0 { t.Errorf("When isHero is false, GetThwart should return 0. Expected 0, got: %d", th) } i.ChangeForm() th = i.GetThwart() if th != TestThwart { t.Errorf("When isHero is true, GetThwart should return ...
explode_data.jsonl/55788
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 151 }
[ 2830, 3393, 3978, 18558, 13614, 1001, 35608, 1155, 353, 8840, 836, 8, 341, 8230, 1669, 633, 2271, 3978, 18558, 2822, 70479, 1669, 600, 2234, 1001, 35608, 741, 743, 270, 961, 220, 15, 341, 197, 3244, 13080, 445, 4498, 374, 30228, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestConnMaxLifetime(t *testing.T) { t0 := time.Unix(1000000, 0) offset := time.Duration(0) nowFunc = func() time.Time { return t0.Add(offset) } defer func() { nowFunc = time.Now }() db := newTestDB(t, "magicquery") defer closeDB(t, db) driver := db.Driver().(*fakeDriver) // Force the number of open con...
explode_data.jsonl/16008
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 663 }
[ 2830, 3393, 9701, 5974, 74579, 1155, 353, 8840, 836, 8, 341, 3244, 15, 1669, 882, 10616, 941, 7, 16, 15, 15, 15, 15, 15, 15, 11, 220, 15, 340, 40668, 1669, 882, 33795, 7, 15, 692, 80922, 9626, 284, 2915, 368, 882, 16299, 314, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_vAdapter_run(t *testing.T) { const ( // number of vcsim events emitted for default VPX model vcsimEvents = 26 ) now := time.Now().UTC() type fields struct { StatusCodes []int Source string KVStore kvstore.Interface CpConfig CheckpointConfig } tests := []struct { name ...
explode_data.jsonl/66111
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1983 }
[ 2830, 3393, 2273, 5940, 14007, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 197, 322, 1372, 315, 348, 4837, 318, 4357, 46942, 369, 1638, 36010, 55, 1614, 198, 197, 5195, 4837, 318, 7900, 284, 220, 17, 21, 198, 197, 692, 80922, 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...
1
func TestCreateAndApplyTransactionPanic(t *testing.T) { if testing.Short() { t.SkipNow() } t.Parallel() // Create invalid update that triggers a panic. update := writeaheadlog.Update{ Name: "invalid name", } // Declare a helper to check for a panic. assertRecover := func() { if r := recover(); r == nil ...
explode_data.jsonl/14702
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 4021, 3036, 28497, 8070, 47, 31270, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 7039, 741, 197, 532, 3244, 41288, 7957, 2822, 197, 322, 4230, 8318, 2647, 429, 30754, 264, 21975, 624, 27175, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChannelGetGroupVersionKind(t *testing.T) { want := schema.GroupVersionKind{ Group: "messaging.cloud.google.com", Version: "v1beta1", Kind: "Channel", } c := &Channel{} got := c.GetGroupVersionKind() if diff := cmp.Diff(want, got); diff != "" { t.Errorf("failed to get expected (-want, +got) ...
explode_data.jsonl/24163
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 133 }
[ 2830, 3393, 9629, 1949, 2808, 5637, 10629, 1155, 353, 8840, 836, 8, 341, 50780, 1669, 10802, 5407, 5637, 10629, 515, 197, 197, 2808, 25, 256, 330, 76, 32140, 16935, 5713, 905, 756, 197, 77847, 25, 330, 85, 16, 19127, 16, 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, 1...
2
func TestPatchPost(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() Client := th.Client channel := th.BasicChannel th.App.SetLicense(model.NewTestLicense()) fileIds := make([]string, 3) data, err := testutils.ReadTestFile("test.png") require.Nil(t, err) for i := 0; i < len(fileIds); i++ { fil...
explode_data.jsonl/5246
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1352 }
[ 2830, 3393, 43622, 4133, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 198, 71550, 1669, 270, 48868, 9629, 271, 70479, 5105, 4202, 9827, 7635, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTransportTLSHandshakeTimeout(t *testing.T) { defer afterTest(t) if testing.Short() { t.Skip("skipping in short mode") } ln := newLocalListener(t) defer ln.Close() testdonec := make(chan struct{}) defer close(testdonec) go func() { c, err := ln.Accept() if err != nil { t.Error(err) return ...
explode_data.jsonl/4913
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 558 }
[ 2830, 3393, 27560, 45439, 2314, 29661, 7636, 1155, 353, 8840, 836, 8, 341, 16867, 1283, 2271, 1155, 340, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 304, 2805, 3856, 1138, 197, 532, 197, 2261, 1669, 501, 7319, 2743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPFCount(t *testing.T) { r.Del("hll", "hll2") r.PFAdd("hll", "1", "2") r.PFAdd("hll2", "a", "1") n, err := r.PFCount("hll") if err != nil { t.Error(err.Error()) } if n != 2 { t.Fail() } n, _ = r.PFCount("hll", "hll2") if n != 3 { t.Fail() } }
explode_data.jsonl/81268
{ "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, 19701, 2507, 1155, 353, 8840, 836, 8, 341, 7000, 909, 301, 445, 71, 654, 497, 330, 71, 654, 17, 1138, 7000, 1069, 37, 2212, 445, 71, 654, 497, 330, 16, 497, 330, 17, 1138, 7000, 1069, 37, 2212, 445, 71, 654, 17, 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...
4
func TestDeliverServiceBadConfig(t *testing.T) { // Empty endpoints service, err := NewDeliverService(&Config{ Endpoints: []string{}, Gossip: &mocks.MockGossipServiceAdapter{}, CryptoSvc: &mockMCS{}, ABCFactory: DefaultABCFactory, ConnFactory: DefaultConnectionFactory, }) assert.Error(t, err) a...
explode_data.jsonl/10585
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 565 }
[ 2830, 3393, 16532, 1524, 1860, 17082, 2648, 1155, 353, 8840, 836, 8, 341, 197, 322, 22228, 36342, 198, 52934, 11, 1848, 1669, 1532, 16532, 1524, 1860, 2099, 2648, 515, 197, 38407, 7706, 25, 256, 3056, 917, 38837, 197, 9600, 41473, 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 TestStrArray_Sort(t *testing.T) { gtest.C(t, func(t *gtest.T) { expect1 := []string{"0", "1", "2", "3"} expect2 := []string{"3", "2", "1", "0"} array := garray.NewStrArray() for i := 3; i >= 0; i-- { array.Append(gconv.String(i)) } array.Sort() t.Assert(array.Slice(), expect1) array.Sort(true) ...
explode_data.jsonl/53082
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 175 }
[ 2830, 3393, 2580, 1857, 1098, 371, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 24952, 16, 1669, 3056, 917, 4913, 15, 497, 330, 16, 497, 330, 17, 497, 330, 18, 16707, 197, 2495...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmptyTemplate(t *testing.T) { cases := []struct { defn []string in string want string }{ {[]string{""}, "once", ""}, {[]string{"", ""}, "twice", ""}, {[]string{"{{.}}", "{{.}}"}, "twice", "twice"}, {[]string{"{{/* a comment */}}", "{{/* a comment */}}"}, "comment", ""}, {[]string{"{{.}}", "...
explode_data.jsonl/71993
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 352 }
[ 2830, 3393, 3522, 7275, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 7452, 77, 3056, 917, 198, 197, 17430, 256, 914, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 90, 1294, 917, 90, 3014, 2137, 330, 13184...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTypeSystem_ObjectTypesMustBeAssertable_AcceptsAnObjectTypeWithAnIsTypeOfFunction(t *testing.T) { _, err := schemaWithFieldType(graphql.NewObject(graphql.ObjectConfig{ Name: "AnotherObject", IsTypeOf: func(p graphql.IsTypeOfParams) bool { return true }, Fields: graphql.Fields{ "f": &graphql.Field...
explode_data.jsonl/79159
{ "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, 929, 2320, 27839, 4173, 31776, 3430, 8534, 480, 1566, 66, 57771, 2082, 49530, 2354, 2082, 3872, 929, 2124, 5152, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 10802, 2354, 63733, 24312, 1470, 7121, 1190, 24312, 1470, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_timeDurationDecorator(t *testing.T) { f := new(Field) (*DefaultMappings["time.Duration"]).Decorators.Run(&Package{}, &Message{}, f) assert.Equal(t, NewLiteralValue("true"), f.Options["(gogoproto.stdduration)"]) }
explode_data.jsonl/53659
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 87 }
[ 2830, 3393, 3009, 12945, 47951, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 57788, 340, 197, 4071, 3675, 83421, 1183, 1678, 33795, 45014, 35227, 2973, 16708, 2099, 13100, 22655, 609, 2052, 22655, 282, 692, 6948, 12808, 1155, 11, 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
func TestHash(t *testing.T) { data := []byte("some other data") block := NewBlock(data) hash, err := mh.Sum(data, mh.SHA2_256, -1) if err != nil { t.Fatal(err) } if !bytes.Equal(block.Multihash(), hash) { t.Error("wrong multihash") } }
explode_data.jsonl/74315
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 110 }
[ 2830, 3393, 6370, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 3056, 3782, 445, 14689, 1008, 821, 1138, 47996, 1669, 1532, 4713, 2592, 692, 50333, 11, 1848, 1669, 72317, 41676, 2592, 11, 72317, 808, 17020, 17, 62, 17, 20, 21, 11, 481, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClient_GetTransferInfo(t *testing.T) { // 初始化参数结构体 bm := make(gopay.BodyMap) bm.Set("nonce_str", util.GetRandomString(32)). Set("partner_trade_no", util.GetRandomString(32)) // 查询企业付款 // body:参数Body // certFilePath:cert证书路径 // keyFilePath:Key证书路径 // pkcs12FilePath:p12证书路径 wxRsp, err := ...
explode_data.jsonl/56605
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 278 }
[ 2830, 3393, 2959, 13614, 21970, 1731, 1155, 353, 8840, 836, 8, 341, 197, 322, 76090, 32665, 100166, 31914, 198, 2233, 76, 1669, 1281, 3268, 453, 352, 20934, 2227, 340, 2233, 76, 4202, 445, 39593, 2895, 497, 4094, 2234, 13999, 703, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestFindAllPairs(t *testing.T) { pairs := []struct { pairs []string }{ { []string{ "uatom", "ubtsg", "udvpn", "uxprt", "uakt", "uluna", "ungm", "uiris", "xrun", "uregen", "udsm", "ucom", "ugcyb", }, }, { []string{ "uatom", "ubtsg", ...
explode_data.jsonl/23722
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 367 }
[ 2830, 3393, 9885, 2403, 54228, 1155, 353, 8840, 836, 8, 341, 3223, 4720, 1669, 3056, 1235, 341, 197, 3223, 4720, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 197, 1294, 917, 515, 571, 197, 1, 84, 21855, 756, 571, 197, 1, 392, 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...
4
func TestSRVGetCluster(t *testing.T) { defer func() { lookupSRV = net.LookupSRV resolveTCPAddr = net.ResolveTCPAddr }() name := "dnsClusterTest" dns := map[string]string{ "1.example.com.:2480": "10.0.0.1:2480", "2.example.com.:2480": "10.0.0.2:2480", "3.example.com.:2480": "10.0.0.3:2480", "4.example.c...
explode_data.jsonl/26136
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1116 }
[ 2830, 3393, 14557, 53, 1949, 28678, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 197, 21020, 14557, 53, 284, 4179, 79261, 14557, 53, 198, 197, 87778, 49896, 13986, 284, 4179, 57875, 49896, 13986, 198, 197, 66816, 11609, 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...
1
func TestEntryCounterRateLimiting(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() e, _, now := testEntry(ctrl, testEntryOptions{}) // Reset runtime options to disable rate limiting. noRateLimitRuntimeOpts := runtime.NewOptions().SetWriteValuesPerMetricLimitPerSecond(0) e.SetRuntimeOptions(no...
explode_data.jsonl/24206
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 486 }
[ 2830, 3393, 5874, 14099, 11564, 16527, 287, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 7727, 11, 8358, 1431, 1669, 1273, 5874, 62100, 11, 1273, 5874, 3798, 6257, 692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestAlign(t *testing.T) { t.Parallel() const input = ` foo$0(a ptr[in, s0]) s0 { f0 int8 f1 int16 } foo$1(a ptr[in, s1]) s1 { f0 ptr[in, s2, opt] } s2 { f1 s1 f2 array[s1, 2] f3 array[array[s1, 2], 2] } ` eh := func(pos ast.Pos, msg string) { t.Errorf("%v: %v", pos, msg) } desc := ast.Parse([]byte(i...
explode_data.jsonl/53123
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 281 }
[ 2830, 3393, 10069, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 4777, 1946, 284, 22074, 7975, 3, 15, 2877, 10087, 15375, 11, 274, 15, 2546, 82, 15, 341, 1166, 15, 2084, 23, 198, 1166, 16, 2084, 16, 21, 198, 630, 7975, 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 TestRateLimiterWithConfig(t *testing.T) { var inMemoryStore = NewRateLimiterMemoryStoreWithConfig(RateLimiterMemoryStoreConfig{Rate: 1, Burst: 3}) e := echo.New() handler := func(c echo.Context) error { return c.String(http.StatusOK, "test") } mw := RateLimiterWithConfig(RateLimiterConfig{ IdentifierEx...
explode_data.jsonl/33963
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 540 }
[ 2830, 3393, 11564, 43, 17700, 2354, 2648, 1155, 353, 8840, 836, 8, 341, 2405, 304, 10642, 6093, 284, 1532, 11564, 43, 17700, 10642, 6093, 2354, 2648, 2785, 349, 43, 17700, 10642, 6093, 2648, 90, 11564, 25, 220, 16, 11, 77467, 25, 220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCreateAccessApplications(t *testing.T) { setup() defer teardown() handler := func(w http.ResponseWriter, r *http.Request) { assert.Equal(t, r.Method, "POST", "Expected method 'POST', got %s", r.Method) w.Header().Set("content-type", "application/json") fmt.Fprintf(w, `{ "success": true, "errors...
explode_data.jsonl/45470
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1180 }
[ 2830, 3393, 4021, 6054, 50359, 1155, 353, 8840, 836, 8, 341, 84571, 741, 16867, 49304, 2822, 53326, 1669, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6948, 12808, 1155, 11, 435, 20798, 11, 330, 2946, 497, 330, 1889...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValuesInNonInsertStmt(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec(`use test;`) tk.MustExec(`drop table if exists t;`) tk.MustExec(`create table t(a bigint, b double, c decimal, d varchar(20), e datetime, f time, g json);`) tk.M...
explode_data.jsonl/65471
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 246 }
[ 2830, 3393, 6227, 641, 8121, 13780, 31063, 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 TestCustomCertsTransform(t *testing.T) { tests := []struct { name string input servingv1alpha1.CustomCerts expectError bool expectSource *v1.VolumeSource }{{ name: "FromSecret", input: servingv1alpha1.CustomCerts{ Type: "Secret", Name: "my-secret", }, expectError: false, e...
explode_data.jsonl/68528
{ "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, 10268, 34, 15546, 8963, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 22427, 286, 13480, 85, 16, 7141, 16, 27649, 34, 15546, 198, 197, 24952, 1454, 220, 1807, 198, 197, 24952, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCraftSweepAllTx(t *testing.T) { t.Parallel() // First, we'll make a mock signer along with a fee estimator, We'll // use zero fees to we can assert a precise output value. signer := &mockSigner{} feeEstimator := newMockFeeEstimator(0, 0) // For our UTXO source, we'll pass in all the UTXOs that we know ...
explode_data.jsonl/37471
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 756 }
[ 2830, 3393, 38849, 50, 48542, 2403, 31584, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 5512, 11, 582, 3278, 1281, 264, 7860, 70039, 3156, 448, 264, 11060, 67298, 11, 1205, 3278, 198, 197, 322, 990, 7168, 12436, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetAppDetailsKustomize(t *testing.T) { service := newService("../..") res, err := service.GetAppDetails(context.Background(), &apiclient.RepoServerAppDetailsQuery{ Repo: &argoappv1.Repository{}, Source: &argoappv1.ApplicationSource{ Path: "./util/kustomize/testdata/kustomization_yaml", }, }) ass...
explode_data.jsonl/5691
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 213 }
[ 2830, 3393, 1949, 2164, 7799, 42, 1450, 551, 1155, 353, 8840, 836, 8, 341, 52934, 1669, 501, 1860, 17409, 496, 5130, 10202, 11, 1848, 1669, 2473, 2234, 2164, 7799, 5378, 19047, 1507, 609, 391, 292, 1451, 2817, 5368, 5475, 2164, 7799, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStrOpsTextJustify_String_03(t *testing.T) { testStr := "Right" txtJustify := TextJustify(0).Right() actualStr := txtJustify.String() if actualStr != testStr { t.Errorf("Error: Expected return of object string value= \"Right\".\n"+ "Instead, object string value = '%v'\n", testStr) } }
explode_data.jsonl/29338
{ "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, 2580, 38904, 1178, 9952, 1437, 31777, 62, 15, 18, 1155, 353, 8840, 836, 8, 1476, 18185, 2580, 1669, 330, 5979, 1837, 68272, 9952, 1437, 1669, 2918, 9952, 1437, 7, 15, 568, 5979, 2822, 88814, 2580, 1669, 7932, 9952, 1437, 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 TestFromIDAndToken(t *testing.T) { webhook1, err := FromIDAndToken(id, token) if err != nil { t.Error("Got unexpected error ", err) } if *webhook != *webhook1 { t.Fail() } }
explode_data.jsonl/3988
{ "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, 3830, 915, 3036, 3323, 1155, 353, 8840, 836, 8, 341, 97250, 20873, 16, 11, 1848, 1669, 5542, 915, 3036, 3323, 3724, 11, 3950, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 445, 32462, 16500, 1465, 3670, 1848, 340, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
3
func Test_fsSource_ReadUp(t *testing.T) { s := getTestSource(t, "sample-migrations") up, identifier, err := s.ReadUp(1) if err != nil { t.Fatalf("unexpected error: %v", err) } if identifier != "some-text" { t.Fatalf("expected identifier to be some-text, got: %s", identifier) } defer up.Close() contents, _ :...
explode_data.jsonl/81892
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 185 }
[ 2830, 3393, 34470, 3608, 38381, 2324, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 633, 2271, 3608, 1155, 11, 330, 13611, 1448, 17824, 1138, 59810, 11, 12816, 11, 1848, 1669, 274, 6503, 2324, 7, 16, 340, 743, 1848, 961, 2092, 341, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestConstrainedPrefAttachmentSelectEmptyGraph(t *testing.T) { const ( minChanSize = 0 maxChanSize = btcutil.Amount(btcutil.SatoshiPerBitcoin) chanLimit = 3 threshold = 0.5 ) // First, we'll generate a random key that represents "us", and create // a new instance of the heuristic with our set param...
explode_data.jsonl/28781
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 556 }
[ 2830, 3393, 1109, 57727, 29978, 33569, 3379, 3522, 11212, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 25320, 46019, 1695, 284, 220, 15, 198, 197, 22543, 46019, 1695, 284, 86037, 1314, 62192, 1883, 10413, 1314, 808, 14030, 6023, 3889, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFiles_Delete(t *testing.T) { setup() defer teardown() mux.HandleFunc("/v2/files/delete", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "POST") testHeader(t, r, "Content-Type", "application/x-www-form-urlencoded") fmt.Fprintln(w, `{"status": "OK"}`) }) ctx := context.Background() ...
explode_data.jsonl/48317
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 248 }
[ 2830, 3393, 10809, 57418, 1155, 353, 8840, 836, 8, 341, 84571, 741, 16867, 49304, 2822, 2109, 2200, 63623, 4283, 85, 17, 33220, 32275, 497, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 18185, 3523, 1155, 11, 435, 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 TestComplex(t *testing.T) { for _, format := range formats { format := format t.Run(fmt.Sprintf("amd64-%s", format), func(t *testing.T) { accept(t, acceptParms{ Name: fmt.Sprintf("complex_%s", format), Conf: "complex.yaml", Format: format, Dockerfile: fmt.Sprintf("%s.complex...
explode_data.jsonl/15456
{ "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, 31137, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 3561, 1669, 2088, 19856, 341, 197, 59416, 1669, 3561, 198, 197, 3244, 16708, 28197, 17305, 445, 67913, 21, 19, 11069, 82, 497, 3561, 701, 2915, 1155, 353, 8840, 836, 8, 341,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRedis_Keys(t *testing.T) { runOnRedis(t, func(client *Redis) { err := client.Set("key1", "value1") assert.Nil(t, err) err = client.Set("key2", "value2") assert.Nil(t, err) _, err = NewRedis(client.Addr, "").Keys("*") assert.NotNil(t, err) keys, err := client.Keys("*") assert.Nil(t, err) asse...
explode_data.jsonl/39167
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 175 }
[ 2830, 3393, 48137, 62, 8850, 1155, 353, 8840, 836, 8, 341, 56742, 1925, 48137, 1155, 11, 2915, 12805, 353, 48137, 8, 341, 197, 9859, 1669, 2943, 4202, 445, 792, 16, 497, 330, 957, 16, 1138, 197, 6948, 59678, 1155, 11, 1848, 340, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTypeSystem_ObjectsMustHaveFields_AcceptsAnObjectTypeWithFieldsObject(t *testing.T) { _, err := schemaWithFieldType(graphql.NewObject(graphql.ObjectConfig{ Name: "SomeObject", Fields: graphql.Fields{ "f": &graphql.Field{ Type: graphql.String, }, }, })) if err != nil { t.Fatalf("unexpected e...
explode_data.jsonl/79143
{ "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, 929, 2320, 62, 11543, 31776, 12116, 8941, 1566, 66, 57771, 2082, 49530, 2354, 8941, 1190, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 10802, 2354, 63733, 24312, 1470, 7121, 1190, 24312, 1470, 8348, 2648, 515, 197, 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 TestMountStores(t *testing.T) { app := setupBaseApp(t) // check both stores store1 := app.CMS().GetCommitKVStore(capKey1) require.NotNil(t, store1) store2 := app.CMS().GetCommitKVStore(capKey2) require.NotNil(t, store2) }
explode_data.jsonl/30021
{ "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, 16284, 69026, 1155, 353, 8840, 836, 8, 341, 28236, 1669, 6505, 3978, 2164, 1155, 692, 197, 322, 1779, 2176, 10533, 198, 57279, 16, 1669, 906, 727, 4826, 1005, 1949, 33441, 82707, 6093, 51386, 1592, 16, 340, 17957, 93882, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestConverterRecursiveMixedAll(t *testing.T) { fieldMap := make(map[string]codegen.FieldMapperEntry) lines, err := convertTypes( "Foo", "Bar", ` struct NestedFooA { 1: optional map<string, NestedFooAA> one } struct NestedFooAA { 1: required list<NestedFooAAA> two } struct NestedFooAAA { ...
explode_data.jsonl/62101
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2464 }
[ 2830, 3393, 14920, 78542, 86433, 2403, 1155, 353, 8840, 836, 8, 341, 39250, 2227, 1669, 1281, 9147, 14032, 60, 95859, 17087, 10989, 5874, 692, 78390, 11, 1848, 1669, 5508, 4173, 1006, 197, 197, 1, 40923, 497, 330, 3428, 756, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAnchorIndex(t *testing.T) { type args struct { b []byte anchor *regexp.Regexp } tests := []struct { name string args args want int }{ { "nil", args{ nil, regexp.MustCompile(`exports=\{`), }, -1, }, { "empty", args{ []byte(""), regexp.MustCompile(`expor...
explode_data.jsonl/19265
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 950 }
[ 2830, 3393, 14677, 1552, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 2233, 414, 3056, 3782, 198, 197, 197, 17109, 353, 55796, 8989, 4580, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServerDoS_MaxHeaderListSize(t *testing.T) { st := newServerTester(t, func(w http.ResponseWriter, r *http.Request) {}) defer st.Close() // shake hands frameSize := defaultMaxReadFrameSize var advHeaderListSize *uint32 st.greetAndCheckSettings(func(s Setting) error { switch s.ID { case SettingMaxFrame...
explode_data.jsonl/71685
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 775 }
[ 2830, 3393, 5475, 5404, 50, 58843, 4047, 852, 1695, 1155, 353, 8840, 836, 8, 341, 18388, 1669, 501, 5475, 58699, 1155, 11, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 35248, 16867, 357, 10421, 2822, 197, 322, 26025, 6078, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestOptionsValidate(t *testing.T) { validateData := struct { flagName string err error }{ flagName: "token-auth-file", err: errors.New("token-auth-file must be non-empty"), } testdata := []struct { opts Options expectedErr []error }{ {Options{empty}, []error{validateData.err...
explode_data.jsonl/35576
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 401 }
[ 2830, 3393, 3798, 17926, 1155, 353, 8840, 836, 8, 341, 197, 7067, 1043, 1669, 2036, 341, 197, 30589, 675, 914, 198, 197, 9859, 414, 1465, 198, 197, 59403, 197, 30589, 675, 25, 330, 5839, 33503, 14203, 756, 197, 9859, 25, 414, 5975, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGetNextTrigger(t *testing.T) { tests := []struct { timezone string now time.Time sched *Schedule trigger time.Time err bool }{ { timezone: "UTC", now: time.Date(2019, 3, 4, 8, 0, 0, 0, time.UTC), // monday sched: &Schedule{ hour: 18, min: 0, dayOfWeek: map...
explode_data.jsonl/5946
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 741 }
[ 2830, 3393, 1949, 5847, 17939, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 21957, 8684, 914, 198, 197, 80922, 414, 882, 16299, 198, 197, 1903, 2397, 262, 353, 32210, 198, 197, 83228, 220, 882, 16299, 198, 197, 985...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRecreateWithObjectName(t *testing.T) { // Arrange iCmd := RecreateCommand( "ingress", "test-ingress-0", "-n", "test-0", ) ingressesBefore := mustLsIngress(t, "test-0") // Act mustExecute(t, iCmd) // Assert ingressesAfter := mustLsIngress(t, "test-0") assert.NotEqual(t, ingressesBefore[0].Res...
explode_data.jsonl/68718
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 198 }
[ 2830, 3393, 693, 3182, 2354, 37748, 1155, 353, 8840, 836, 8, 341, 197, 322, 40580, 198, 8230, 15613, 1669, 4067, 964, 4062, 1006, 197, 197, 1, 287, 673, 756, 197, 197, 1, 1944, 83905, 673, 12, 15, 756, 197, 197, 34294, 77, 756, 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 TestReversiAnz34(t *testing.T) { r := NewReversiAnz() if r.GetOwnEdgeSideThreeCnt() != 0 { t.Errorf("NG") } }
explode_data.jsonl/23057
{ "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, 693, 3004, 72, 2082, 89, 18, 19, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 693, 3004, 72, 2082, 89, 741, 743, 435, 2234, 14182, 11656, 16384, 19641, 33747, 368, 961, 220, 15, 341, 197, 3244, 13080, 445, 6140, 1138,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestKeyManagementKeyRing(t *testing.T) { kb, err := New("keybasename", "test", t.TempDir(), nil) require.NoError(t, err) algo := hd.Secp256k1 n1, n2, n3 := "personal", "business", "other" // Check empty state l, err := kb.List() require.Nil(t, err) require.Empty(t, l) _, _, err = kb.NewMnemonic(n1, Eng...
explode_data.jsonl/73434
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 962 }
[ 2830, 3393, 1592, 22237, 1592, 43466, 1155, 353, 8840, 836, 8, 341, 16463, 65, 11, 1848, 1669, 1532, 445, 792, 42953, 497, 330, 1944, 497, 259, 65009, 6184, 1507, 2092, 340, 17957, 35699, 1155, 11, 1848, 692, 69571, 3346, 1669, 17907, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWatchRestoreSyncedWatcher(t *testing.T) { b1, b1Path := backend.NewDefaultTmpBackend() s1 := newWatchableStore(zap.NewExample(), b1, &lease.FakeLessor{}, cindex.NewConsistentIndex(b1.BatchTx()), StoreConfig{}) defer cleanup(s1, b1, b1Path) b2, b2Path := backend.NewDefaultTmpBackend() s2 := newWatchableSt...
explode_data.jsonl/67208
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 656 }
[ 2830, 3393, 14247, 56284, 12154, 291, 47248, 1155, 353, 8840, 836, 8, 341, 2233, 16, 11, 293, 16, 1820, 1669, 19163, 7121, 3675, 35986, 29699, 741, 1903, 16, 1669, 501, 14247, 480, 6093, 13174, 391, 7121, 13314, 1507, 293, 16, 11, 609...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestTopDownWalkBuiltin(t *testing.T) { tests := []struct { note string rules []string expected interface{} }{ { note: "scalar", rules: []string{ `p[x] { walk(data.a[0], x) }`, }, expected: `[ [[], 1] ]`, }, { note: "arrays", rules: []string{ `p[x] { walk(data....
explode_data.jsonl/25218
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 757 }
[ 2830, 3393, 5366, 4454, 48849, 33, 25628, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 9038, 1272, 257, 914, 198, 197, 7000, 2425, 262, 3056, 917, 198, 197, 42400, 3749, 16094, 197, 59403, 197, 197, 515, 298, 9038...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSharedDoNotAutoprovisionVolume(t *testing.T) { taskEngine, done, _ := setupWithDefaultConfig(t) defer done() stateChangeEvents := taskEngine.StateChangeEvents() client := taskEngine.(*DockerTaskEngine).client // Set the task clean up duration to speed up the test taskEngine.(*DockerTaskEngine).cfg.TaskCl...
explode_data.jsonl/39474
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 509 }
[ 2830, 3393, 16997, 5404, 2623, 19602, 45926, 13013, 18902, 1155, 353, 8840, 836, 8, 341, 49115, 4571, 11, 2814, 11, 716, 1669, 6505, 2354, 3675, 2648, 1155, 340, 16867, 2814, 741, 24291, 4072, 7900, 1669, 3383, 4571, 18942, 4072, 7900, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPublishSubscribe(t *testing.T) { blockSent := blocks.NewBlock([]byte("Greetings from The Interval")) n := New() defer n.Shutdown() ch := n.Subscribe(context.Background(), blockSent.Cid()) n.Publish(blockSent) blockRecvd, ok := <-ch if !ok { t.Fail() } assertBlocksEqual(t, blockRecvd, blockSent) ...
explode_data.jsonl/8955
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 121 }
[ 2830, 3393, 50145, 28573, 1155, 353, 8840, 836, 8, 341, 47996, 31358, 1669, 10010, 7121, 4713, 10556, 3782, 445, 91786, 504, 576, 40584, 28075, 9038, 1669, 1532, 741, 16867, 308, 10849, 18452, 741, 23049, 1669, 308, 82628, 5378, 19047, 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 TestClosedBySelf(t *testing.T) { tcb := connected(t, 1234, 789, 30000, 50000) // Send FIN. tcp := make(header.TCP, header.TCPMinimumSize) tcp.Encode(&header.TCPFields{ SeqNum: 1235, AckNum: 790, DataOffset: header.TCPMinimumSize, Flags: header.TCPFlagAck | header.TCPFlagFin, WindowSize:...
explode_data.jsonl/17725
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 538 }
[ 2830, 3393, 26884, 1359, 12092, 1155, 353, 8840, 836, 8, 341, 3244, 7221, 1669, 8433, 1155, 11, 220, 16, 17, 18, 19, 11, 220, 22, 23, 24, 11, 220, 18, 15, 15, 15, 15, 11, 220, 20, 15, 15, 15, 15, 692, 197, 322, 11000, 24344, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpStatuses(t *testing.T) { for _, status := range upStatuses { status := status t.Run(fmt.Sprintf("Test OK HTTP status %d", status), func(t *testing.T) { server, event := checkServer(t, hbtest.HelloWorldHandler(status)) port, err := hbtest.ServerPort(server) require.NoError(t, err) mapvaltest...
explode_data.jsonl/39389
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 259 }
[ 2830, 3393, 2324, 2522, 288, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 2639, 1669, 2088, 705, 2522, 288, 341, 197, 23847, 1669, 2639, 198, 197, 3244, 16708, 28197, 17305, 445, 2271, 10402, 10130, 2639, 1018, 67, 497, 2639, 701, 2915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAddEntry(t *testing.T) { var d = NewDirectory("z", GetTemplate(t)) d.AddEntry("", true) d.AddEntry("dir", true) d.AddEntry("a/b/c/d.txt", false) d.AddEntry("a/b/c/colon:colon.txt", false) d.AddEntry("\"quotes\".txt", false) assert.Equal(t, []DirEntry{ {remote: "", URL: "/", Leaf: "/"}, {remote: "dir...
explode_data.jsonl/965
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 408 }
[ 2830, 3393, 2212, 5874, 1155, 353, 8840, 836, 8, 341, 2405, 294, 284, 1532, 9310, 445, 89, 497, 2126, 7275, 1155, 1171, 2698, 1904, 5874, 19814, 830, 340, 2698, 1904, 5874, 445, 3741, 497, 830, 340, 2698, 1904, 5874, 445, 64, 3470, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIdentifyLite(t *testing.T) { tt := newTeamTester(t) defer tt.cleanup() tt.addUser("abc") teamName := tt.users[0].createTeam() g := tt.users[0].tc.G t.Logf("make a team") team, err := GetTeamForTestByStringName(context.Background(), g, teamName) require.NoError(t, err) getTeamName := func(teamID key...
explode_data.jsonl/42658
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1302 }
[ 2830, 3393, 28301, 1437, 43844, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 501, 14597, 58699, 1155, 340, 16867, 17853, 87689, 2822, 3244, 83, 1364, 1474, 445, 13683, 1138, 197, 9196, 675, 1669, 17853, 20653, 58, 15, 936, 3182, 14597,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Run_Balance_Fail(t *testing.T) { mockScheduler := mocks.Scheduler{} mockExchange := mocks.ExchangeClient{} errFailAddFunc := errors.New("fail_add_func") mockConfig := &shresiesbot.AutoInvest{ Balance: &shresiesbot.BalanceConfiguration{ Scheduler: "MY_SCHEDULER", Holds: []shresiesbot.Hold{}, ...
explode_data.jsonl/5835
{ "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, 84158, 1668, 4978, 1400, 604, 1155, 353, 8840, 836, 8, 341, 77333, 38878, 1669, 68909, 808, 15222, 16094, 77333, 31564, 1669, 68909, 86997, 2959, 31483, 9859, 19524, 2212, 9626, 1669, 5975, 7121, 445, 18403, 2891, 9596, 5130, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthOptions_ToAuthMethod(t *testing.T) { // given for testName, testData := range map[string]struct { authType git.RepositoryAuthType credentials map[string]string expectedCallback gomega.OmegaMatcher expectedCertCheck gomega.OmegaMatcher expectedErr gomega.OmegaMatcher }{ "should be ...
explode_data.jsonl/71586
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1465 }
[ 2830, 3393, 5087, 3798, 38346, 5087, 3523, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 2023, 94396, 11, 67348, 1669, 2088, 2415, 14032, 60, 1235, 341, 197, 78011, 929, 262, 16345, 25170, 5087, 929, 198, 197, 197, 32353, 2415, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParse(t *testing.T) { type args struct { req *http.Request provider providers.Provider } tests := []struct { name string args args want *providers.Hook wantErr bool }{ { name: "TestParseWithCorrectRequestValues", args: args{ req: createGitlabRequest(http.MethodPost, "...
explode_data.jsonl/7633
{ "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, 14463, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 24395, 414, 353, 1254, 9659, 198, 197, 197, 19979, 12565, 36208, 198, 197, 630, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 31215, 262, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRefreshTokenRenewExpired(t *testing.T) { s := newTestService(t) ctx := context.Background() clientID := datastore.NameKey(kindClient, newRandomID(), nil) rt := &hubauth.RefreshToken{ ClientID: clientID.Encode(), CodeID: datastore.NameKey(kindCode, newRandomID(), clientID).Encode(), UserID: ...
explode_data.jsonl/56426
{ "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, 14567, 3323, 34625, 365, 54349, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 501, 2271, 1860, 1155, 340, 20985, 1669, 2266, 19047, 2822, 25291, 915, 1669, 64986, 2967, 1592, 62697, 2959, 11, 501, 13999, 915, 1507, 2092, 340, 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...
1
func TestAWSCluster_DefaultCNIIngressRules(t *testing.T) { AZUsageLimit := 3 defaultVPCSpec := VPCSpec{ AvailabilityZoneUsageLimit: &AZUsageLimit, AvailabilityZoneSelection: &AZSelectionSchemeOrdered, } g := NewWithT(t) tests := []struct { name string beforeCluster *AWSCluster afterCluster *AW...
explode_data.jsonl/70925
{ "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, 14419, 3540, 75, 4993, 60336, 34, 14912, 641, 2483, 26008, 1155, 353, 8840, 836, 8, 341, 22985, 57, 14783, 16527, 1669, 220, 18, 198, 11940, 53, 4872, 8327, 1669, 647, 4872, 8327, 515, 197, 197, 51703, 15363, 14783, 16527, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckResourceIntegration(t *testing.T) { rand.Seed(time.Now().UnixNano()) for _, test := range []struct { testName string actual []runtime.Object expected runtime.Object shouldError bool }{ { testName: "match object by labels, first in list matches", actual: []runtime.Object{ ...
explode_data.jsonl/43658
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2908 }
[ 2830, 3393, 3973, 4783, 52464, 1155, 353, 8840, 836, 8, 341, 7000, 437, 5732, 291, 9730, 13244, 1005, 55832, 83819, 12367, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 18185, 675, 262, 914, 198, 197, 88814, 414, 3056, 22255, 8348...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIstioOutboundIPRangesInjection(t *testing.T) { var annotations map[string]string // A valid IP range in := " 10.10.10.0/24\r,,\t,\n,," want := "10.10.10.0/24" annotations = getPodAnnotationsForConfig(t, in, "") if got := annotations[resources.IstioOutboundIPRangeAnnotation]; want != got { t.Fatalf("%...
explode_data.jsonl/27423
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 653 }
[ 2830, 3393, 40, 267, 815, 2662, 10891, 3298, 74902, 36653, 1155, 353, 8840, 836, 8, 341, 2405, 32207, 2415, 14032, 30953, 271, 197, 322, 362, 2697, 6790, 2088, 198, 17430, 1669, 330, 220, 220, 16, 15, 13, 16, 15, 13, 16, 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, 1...
6
func TestBuildPlatformInvalid(t *testing.T) { skip.If(t, versions.LessThan(testEnv.DaemonAPIVersion(), "1.40"), "experimental in older versions") ctx := context.Background() defer setupTest(t)() dockerfile := `FROM busybox ` buf := bytes.NewBuffer(nil) w := tar.NewWriter(buf) writeTarRecord(t, w, "Dockerfile"...
explode_data.jsonl/82590
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 277 }
[ 2830, 3393, 11066, 17296, 7928, 1155, 353, 8840, 836, 8, 341, 1903, 13389, 32901, 1155, 11, 10795, 1214, 433, 26067, 8623, 14359, 909, 64, 7291, 7082, 5637, 1507, 330, 16, 13, 19, 15, 3975, 330, 86703, 304, 9014, 10795, 5130, 20985, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntegration_EthLog(t *testing.T) { t.Parallel() rpcClient, gethClient, sub, assertMockCalls := cltest.NewEthMocks(t) defer assertMockCalls() app, cleanup := cltest.NewApplication(t, eth.NewClientWith(rpcClient, gethClient), ) defer cleanup() sub.On("Err").Return(nil).Maybe() sub.On("Unsubscribe").R...
explode_data.jsonl/75891
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 500 }
[ 2830, 3393, 52464, 2089, 339, 2201, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 7000, 3992, 2959, 11, 633, 71, 2959, 11, 1186, 11, 2060, 11571, 55292, 1669, 1185, 1944, 7121, 65390, 72577, 1155, 340, 16867, 2060, 11571, 55292...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStringReplace_Replace_InputEmpty(t *testing.T) { stringReplace := StringReplace{Old: "foo", New: "bar"} assert.Equal(t, "", stringReplace.Replace("", NewVariables())) }
explode_data.jsonl/66404
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 703, 23107, 62, 23107, 48653, 3522, 1155, 353, 8840, 836, 8, 341, 262, 914, 23107, 1669, 923, 23107, 90, 18284, 25, 330, 7975, 497, 1532, 25, 330, 2257, 16707, 262, 2060, 12808, 1155, 11, 7342, 914, 23107, 20858, 19814, 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
func TestFetchAutoMigsZonal(t *testing.T) { server := NewHttpServerMock() defer server.Close() server.On("handle", "/project1/zones/"+zoneB+"/instanceGroups").Return(buildListInstanceGroupsResponse(zoneB, gceMigA, gceMigB)).Once() server.On("handle", "/project1/zones/"+zoneB+"/instanceGroupManagers/"+gceMigA).Retu...
explode_data.jsonl/27614
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 696 }
[ 2830, 3393, 20714, 13253, 44, 14462, 57, 24202, 1155, 353, 8840, 836, 8, 341, 41057, 1669, 1532, 2905, 5475, 11571, 741, 16867, 3538, 10421, 2822, 41057, 8071, 445, 8192, 497, 3521, 4987, 16, 31082, 3154, 33778, 8684, 33, 27569, 4851, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSplitManifest(t *testing.T) { manifests := SplitManifests(manifestFile) if len(manifests) != 1 { t.Errorf("Expected 1 manifest, got %v", len(manifests)) } expected := map[string]string{"manifest-0": expectedManifest} if !reflect.DeepEqual(manifests, expected) { t.Errorf("Expected %v, got %v", expected...
explode_data.jsonl/37744
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 128 }
[ 2830, 3393, 20193, 38495, 1155, 353, 8840, 836, 8, 341, 197, 42315, 82, 1669, 27810, 38495, 82, 60671, 6962, 1703, 340, 743, 2422, 60671, 6962, 82, 8, 961, 220, 16, 341, 197, 3244, 13080, 445, 18896, 220, 16, 14455, 11, 2684, 1018, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCreateAzureManagerValidConfig(t *testing.T) { manager, err := CreateAzureManager(strings.NewReader(validAzureCfg), cloudprovider.NodeGroupDiscoveryOptions{}) expectedConfig := &Config{ Cloud: "AzurePublicCloud", Location: "southeastasia", TenantID: "fakeId", Subsc...
explode_data.jsonl/12787
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1031 }
[ 2830, 3393, 4021, 78107, 2043, 4088, 2648, 1155, 353, 8840, 836, 8, 341, 92272, 11, 1848, 1669, 4230, 78107, 2043, 51442, 68587, 41529, 78107, 42467, 701, 9437, 19979, 21714, 2808, 67400, 3798, 6257, 692, 42400, 2648, 1669, 609, 2648, 515...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDisconnectGitAlternates(t *testing.T) { locator := config.NewLocator(config.Config) server, serverSocketPath := runObjectPoolServer(t, config.Config, locator) defer server.Stop() client, conn := newObjectPoolClient(t, serverSocketPath) defer conn.Close() ctx, cancel := testhelper.Context() defer cance...
explode_data.jsonl/8
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 699 }
[ 2830, 3393, 60651, 46562, 34543, 973, 1155, 353, 8840, 836, 8, 341, 197, 68033, 1669, 2193, 7121, 33831, 8754, 10753, 340, 41057, 11, 3538, 10286, 1820, 1669, 1598, 1190, 10551, 5475, 1155, 11, 2193, 10753, 11, 47117, 340, 16867, 3538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMVCCStatsTxnSysPutAbort(t *testing.T) { defer leaktest.AfterTest(t)() defer log.Scope(t).Close(t) for _, engineImpl := range mvccEngineImpls { t.Run(engineImpl.name, func(t *testing.T) { engine := engineImpl.create() defer engine.Close() ctx := context.Background() aggMS := &enginepb.MVCCStat...
explode_data.jsonl/70085
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 912 }
[ 2830, 3393, 66626, 3706, 16635, 31584, 77, 32792, 19103, 85891, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 16867, 1487, 77940, 1155, 568, 7925, 1155, 340, 2023, 8358, 4712, 9673, 1669, 2088, 23164, 638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_func_pointer_type(t *testing.T) { type TestObject2 struct { F func() } type TestObject1 struct { Obj *TestObject2 } t.Run("encode null is valid", func(t *testing.T) { should := require.New(t) output, err := json.Marshal(TestObject1{}) should.Nil(err) should.Equal(`{"Obj":null}`, string(output...
explode_data.jsonl/73520
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 510 }
[ 2830, 3393, 9596, 21425, 1819, 1155, 353, 8840, 836, 8, 341, 13158, 3393, 1190, 17, 2036, 341, 197, 12727, 2915, 741, 197, 532, 13158, 3393, 1190, 16, 2036, 341, 197, 197, 5261, 353, 2271, 1190, 17, 198, 197, 532, 3244, 16708, 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 TestDDL(t *testing.T) { testcases := []struct { query string output *DDL affected []string }{{ query: "create table a", output: &DDL{ Action: CreateStr, Table: TableName{Name: NewTableIdent("a")}, }, affected: []string{"a"}, }, { query: "rename table a to b", output: &DDL{ Actio...
explode_data.jsonl/3373
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 807 }
[ 2830, 3393, 58781, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 27274, 262, 914, 198, 197, 21170, 256, 353, 58781, 198, 197, 197, 31057, 3056, 917, 198, 197, 15170, 515, 197, 27274, 25, 330, 3182, 1965, 264,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestList_Pop(t *testing.T) { gtest.C(t, func(t *gtest.T) { l := NewFrom([]interface{}{1, 2, 3, 4, 5, 6, 7, 8, 9}) t.Assert(l.PopBack(), 9) t.Assert(l.PopBacks(2), []interface{}{8, 7}) t.Assert(l.PopFront(), 1) t.Assert(l.PopFronts(2), []interface{}{2, 3}) }) }
explode_data.jsonl/30910
{ "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, 852, 1088, 453, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 8810, 1669, 1532, 3830, 10556, 4970, 6257, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1