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 TestFormatTimeLapse(t *testing.T) { var d = time.Duration(time.Hour*3 + time.Minute*4 + time.Second*5) str := FormatTimeLapse(d) if fmt.Sprint(str) != " 03:04:05 h:m:s " { t.Error("failed to print time as desired") } }
explode_data.jsonl/35720
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 100 }
[ 2830, 3393, 4061, 1462, 43, 7477, 1155, 353, 8840, 836, 8, 341, 2405, 294, 284, 882, 33795, 9730, 73550, 9, 18, 488, 882, 75770, 9, 19, 488, 882, 32435, 9, 20, 340, 11355, 1669, 15042, 1462, 43, 7477, 1500, 340, 743, 8879, 808, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestEndpoints_DeepEqual(t *testing.T) { type fields struct { svcEP *Endpoints } type args struct { o *Endpoints } tests := []struct { name string fields fields args args want bool }{ { name: "both equal", fields: fields{ svcEP: &Endpoints{ Backends: map[string]*Backend{ ...
explode_data.jsonl/31605
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2650 }
[ 2830, 3393, 80786, 24597, 747, 2993, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 1903, 7362, 9197, 353, 80786, 198, 197, 532, 13158, 2827, 2036, 341, 197, 22229, 353, 80786, 198, 197, 532, 78216, 1669, 3056, 1235, 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...
2
func TestAuthCodeURL(t *testing.T) { conf := newConf("server") url := conf.AuthCodeURL("foo", AccessTypeOffline, ApprovalForce) if url != "server/auth?access_type=offline&approval_prompt=force&client_id=CLIENT_ID&redirect_uri=REDIRECT_URL&response_type=code&scope=scope1+scope2&state=foo" { t.Errorf("Auth code URL ...
explode_data.jsonl/25884
{ "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, 5087, 2078, 3144, 1155, 353, 8840, 836, 8, 341, 67850, 1669, 501, 15578, 445, 4030, 1138, 19320, 1669, 2335, 25233, 2078, 3144, 445, 7975, 497, 9549, 929, 52563, 11, 63777, 18573, 340, 743, 2515, 961, 330, 4030, 17369, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestStakeAccumulator(t *testing.T) { require := require.New(t) thresholds := map[ThresholdKind]quantity.Quantity{ KindEntity: *quantity.NewFromUint64(1_000), KindNodeValidator: *quantity.NewFromUint64(10_000), KindNodeCompute: *quantity.NewFromUint64(5_000), KindNodeKeyManager: *...
explode_data.jsonl/36022
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1878 }
[ 2830, 3393, 623, 726, 14603, 372, 10511, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 197, 28902, 82, 1669, 2415, 58, 37841, 10629, 60, 13523, 66267, 515, 197, 197, 10629, 3030, 25, 310, 353, 13523, 7121, 3830, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAcceptInvitation(t *testing.T) { t.Run("accept invitation - success", func(t *testing.T) { sp := mockstorage.NewMockStoreProvider() k := newKMS(t, sp) ctx := &context{ kms: k, keyType: kms.ED25519Type, keyAgreementType: kms.X25519ECDHKWType, } svc, err := New(&protocol...
explode_data.jsonl/30536
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1575 }
[ 2830, 3393, 16646, 15174, 7556, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 10330, 28688, 481, 2393, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 41378, 1669, 7860, 16172, 7121, 11571, 6093, 5179, 741, 197, 16463, 1669, 501, 42, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEdsWeightedServiceEntry(t *testing.T) { s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{ConfigString: mustReadFile(t, "tests/testdata/config/static-weighted-se.yaml")}) adscConn := s.Connect(nil, nil, watchEds) endpoints := adscConn.GetEndpoints() lbe, f := endpoints["outbound|80||weighted.static.svc.cl...
explode_data.jsonl/7949
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 434 }
[ 2830, 3393, 2715, 82, 8295, 291, 1860, 5874, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 856, 5356, 7121, 52317, 67400, 5475, 1155, 11, 856, 5356, 991, 726, 3798, 90, 2648, 703, 25, 1969, 4418, 1703, 1155, 11, 330, 23841, 12697, 691, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsLatestDigestRunning_OK(t *testing.T) { cake := &Cake{ Repo: "test/repo", PreviousDigest: "", LatestDigest: "TestLatestDigest", } // Mocking listContainers function inside Cake.IsLatestDigestRunning() listContainers = func(_ *dockerClient.Client) []types.Container { // Some white box ...
explode_data.jsonl/49457
{ "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, 3872, 31992, 45217, 18990, 8375, 1155, 353, 8840, 836, 8, 341, 1444, 726, 1669, 609, 61090, 515, 197, 197, 25243, 25, 1843, 330, 1944, 10758, 5368, 756, 197, 197, 21291, 45217, 25, 8324, 197, 15070, 13893, 45217, 25, 256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientSniffOnDefaultURL(t *testing.T) { client, _ := NewClient() if client == nil { t.Fatal("no client returned") } ch := make(chan error, 1) go func() { ch <- client.sniff(DefaultSnifferTimeoutStartup) }() select { case err := <-ch: if err != nil { t.Fatalf("expected sniff to succeed; got: ...
explode_data.jsonl/38007
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 324 }
[ 2830, 3393, 2959, 20720, 3092, 1925, 3675, 3144, 1155, 353, 8840, 836, 8, 341, 25291, 11, 716, 1669, 1532, 2959, 741, 743, 2943, 621, 2092, 341, 197, 3244, 26133, 445, 2152, 2943, 5927, 1138, 197, 630, 23049, 1669, 1281, 35190, 1465, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSystemRootsErrorUnwrap(t *testing.T) { var err1 = errors.New("err1") err := SystemRootsError{Err: err1} if !errors.Is(err, err1) { t.Error("errors.Is failed, wanted success") } }
explode_data.jsonl/29008
{ "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, 2320, 8439, 82, 1454, 1806, 10097, 1155, 353, 8840, 836, 8, 341, 2405, 1848, 16, 284, 5975, 7121, 445, 615, 16, 1138, 9859, 1669, 739, 8439, 82, 1454, 90, 7747, 25, 1848, 16, 532, 743, 753, 7650, 4506, 3964, 11, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestReverseProxyInsecureSkipVerify(t *testing.T) { log.SetOutput(ioutil.Discard) defer log.SetOutput(os.Stderr) var requestReceived bool var requestWasHTTP2 bool backend := newTLSServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { requestReceived = true requestWasHTTP2 = r.ProtoAtLeast...
explode_data.jsonl/64226
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 336 }
[ 2830, 3393, 45695, 16219, 641, 25132, 35134, 32627, 1155, 353, 8840, 836, 8, 341, 6725, 4202, 5097, 1956, 30158, 909, 47560, 340, 16867, 1487, 4202, 5097, 9638, 77319, 692, 2405, 1681, 23260, 1807, 198, 2405, 1681, 26034, 9230, 17, 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...
1
func TestCreateBuild(t *testing.T) { testutil.DeleteAllEtcdKeys() openshift := NewTestBuildOpenshift(t) defer openshift.Close() build := mockBuild() expected, err := openshift.Client.Builds(testutil.Namespace()).Create(build) if err != nil { t.Fatalf("Unexpected error: %v", err) } if expected.Name == "" { ...
explode_data.jsonl/38963
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 235 }
[ 2830, 3393, 4021, 11066, 1155, 353, 8840, 836, 8, 1476, 18185, 1314, 18872, 2403, 31860, 4385, 8850, 741, 197, 24175, 47833, 1669, 1532, 2271, 11066, 36771, 47833, 1155, 340, 16867, 15885, 47833, 10421, 741, 69371, 1669, 7860, 11066, 2822, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckLeaseCancelWithSig(t *testing.T) { to, path := createCheckerTestObjects(t) defer func() { to.stor.close(t) err := common.CleanTemporaryDirs(path) assert.NoError(t, err, "failed to clean test data dirs") }() leaseTx := createLeaseWithSig(t) info := defaultCheckerInfo(t) info.currentTimestamp...
explode_data.jsonl/63090
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 482 }
[ 2830, 3393, 3973, 2304, 519, 9269, 2354, 47246, 1155, 353, 8840, 836, 8, 341, 31709, 11, 1815, 1669, 1855, 35188, 2271, 11543, 1155, 692, 16867, 2915, 368, 341, 197, 31709, 1236, 269, 4653, 1155, 692, 197, 9859, 1669, 4185, 727, 2675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconcile_SuccessDeletion(t *testing.T) { var ( c = setup(t, node1ID) e = &mocks.GoMockExecutor{} req = ctrl.Request{NamespacedName: types.NamespacedName{Namespace: ns, Name: lvgCR1.Name}} ) c.lvmOps = lvm.NewLVM(e, testLogger) lvgToDell := lvgCR1 lvgToDell.ObjectMeta.DeletionTimestamp = &v1.T...
explode_data.jsonl/51719
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 368 }
[ 2830, 3393, 693, 40446, 457, 87161, 1912, 52625, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 1444, 256, 284, 6505, 1155, 11, 2436, 16, 915, 340, 197, 7727, 256, 284, 609, 16712, 82, 67131, 11571, 25255, 16094, 197, 24395, 284, 2374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapAllEqualOrContainingPaths(t *testing.T) { testMapAllEqualOrContainingPaths(t, []string{"a.proto"}, "a.proto", "a.proto") testMapAllEqualOrContainingPaths(t, nil, ".", "a.proto") testMapAllEqualOrContainingPaths(t, []string{"."}, "a.proto", ".") testMapAllEqualOrContainingPaths(t, []string{"."}, "a/b.pro...
explode_data.jsonl/11909
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 394 }
[ 2830, 3393, 2227, 2403, 2993, 2195, 86641, 26901, 1155, 353, 8840, 836, 8, 341, 18185, 2227, 2403, 2993, 2195, 86641, 26901, 1155, 11, 3056, 917, 4913, 64, 57322, 14345, 330, 64, 57322, 497, 330, 64, 57322, 1138, 18185, 2227, 2403, 2993...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDecodeAssuredCall(t *testing.T) { decoded := false expected := &Call{ Path: "test/assured", StatusCode: http.StatusOK, Method: http.MethodPost, Response: []byte(`{"assured": true}`), Headers: map[string]string{}, Query: map[string]string{"assured": "max"}, } testDecode := fu...
explode_data.jsonl/20253
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 349 }
[ 2830, 3393, 32564, 5615, 3073, 7220, 1155, 353, 8840, 836, 8, 341, 197, 62913, 1669, 895, 198, 42400, 1669, 609, 7220, 515, 197, 69640, 25, 981, 330, 1944, 14, 395, 3073, 756, 197, 197, 15872, 25, 1758, 52989, 345, 197, 84589, 25, 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 TestFilterPATH(t *testing.T) { s := string(os.PathListSeparator) type args struct { env map[string]string excludes []string } tests := []struct { name string args args want string }{ { "Filters out matching path", args{ map[string]string{"PATH": "/path/to/key1" + s + "/path/to/key2"...
explode_data.jsonl/54018
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 525 }
[ 2830, 3393, 5632, 13593, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 914, 9638, 17474, 852, 16409, 340, 13158, 2827, 2036, 341, 197, 57538, 414, 2415, 14032, 30953, 198, 197, 8122, 7396, 3056, 917, 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 TestSearchInPath(t *testing.T) { filename := ".dotfilenoext" path := "/tmp" file := filepath.Join(path, filename) SetConfigName(filename) SetConfigType("yaml") AddConfigPath(path) _, createErr := v.fs.Create(file) defer func() { _ = v.fs.Remove(file) }() assert.NoError(t, createErr) filename, err := v...
explode_data.jsonl/9860
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 159 }
[ 2830, 3393, 5890, 641, 1820, 1155, 353, 8840, 836, 8, 341, 66434, 1669, 5933, 16119, 12441, 11790, 427, 698, 26781, 1669, 3521, 5173, 698, 17661, 1669, 26054, 22363, 5581, 11, 3899, 340, 22212, 2648, 675, 10961, 340, 22212, 2648, 929, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNative_Compile_StagesPipeline_Modification(t *testing.T) { // setup context gin.SetMode(gin.TestMode) resp := httptest.NewRecorder() _, engine := gin.CreateTestContext(resp) engine.POST("/config/bad", func(c *gin.Context) { c.Header("Content-Type", "application/json") c.JSON(http.StatusOK, gin.H{"fo...
explode_data.jsonl/24130
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 713 }
[ 2830, 3393, 20800, 16946, 12192, 70645, 1134, 34656, 71485, 2404, 1155, 353, 8840, 836, 8, 341, 197, 322, 6505, 2266, 198, 3174, 258, 4202, 3636, 3268, 258, 8787, 3636, 692, 34653, 1669, 54320, 70334, 7121, 47023, 741, 197, 6878, 4712, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHTTPSpan(t *testing.T) { tracer, apmtracer, recorder := newTestTracer() defer apmtracer.Close() clientURL := "https://root:hunter2@testing.invalid:8443/foo?bar:baz" url, err := url.Parse(clientURL) require.NoError(t, err) url.User = nil // user/password should be stripped off txSpan := tracer.StartSpa...
explode_data.jsonl/28593
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 448 }
[ 2830, 3393, 9230, 12485, 1155, 353, 8840, 836, 8, 341, 25583, 9584, 11, 1443, 76, 94941, 11, 48835, 1669, 501, 2271, 1282, 9584, 741, 16867, 1443, 76, 94941, 10421, 2822, 25291, 3144, 1669, 330, 2428, 1110, 2888, 69651, 29159, 17, 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...
1
func TestMatEigenNonSymmetric(t *testing.T) { src := NewMatWithSizeFromScalar(NewScalar(0.1, 0.1, 0.1, 0.1), 10, 10, MatTypeCV32F) eigenvalues := NewMat() eigenvectors := NewMat() EigenNonSymmetric(src, &eigenvalues, &eigenvectors) if eigenvectors.Empty() || eigenvalues.Empty() { t.Error("TestEigenNonSymmetric s...
explode_data.jsonl/81738
{ "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, 11575, 71740, 8121, 27912, 15903, 1155, 353, 8840, 836, 8, 341, 41144, 1669, 1532, 11575, 2354, 1695, 3830, 20639, 35063, 20639, 7, 15, 13, 16, 11, 220, 15, 13, 16, 11, 220, 15, 13, 16, 11, 220, 15, 13, 16, 701, 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...
3
func TestKubeProxyConfig(t *testing.T) { g := NewGomegaWithT(t) errs := validateKubeProxy(&config) g.Expect(errs).To(HaveLen(0)) cfg, err := kubeProxyConfiguration(map[string]operv1.ProxyArgumentList{ // special address+port combo "metrics-bind-address": {"1.2.3.4"}, "metrics-port": {"999"}, "...
explode_data.jsonl/57152
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 589 }
[ 2830, 3393, 42, 3760, 16219, 2648, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 38, 32696, 2354, 51, 1155, 692, 9859, 82, 1669, 9593, 42, 3760, 16219, 2099, 1676, 340, 3174, 81893, 3964, 82, 568, 1249, 77057, 11271, 7, 15, 4390, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCommandSimpleExecuting(t *testing.T) { cmd := cli.NewCommand("unit test") cmd.SetArgs([]string{"-c", "./../../.rr.yaml"}) var executed bool if cmd.Run == nil { // override "Run" property for test (if it was not set) cmd.Run = func(cmd *cobra.Command, args []string) { executed = true } } assert....
explode_data.jsonl/17537
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 143 }
[ 2830, 3393, 4062, 16374, 51853, 1155, 353, 8840, 836, 8, 341, 25920, 1669, 21348, 7121, 4062, 445, 3843, 1273, 1138, 25920, 4202, 4117, 10556, 917, 4913, 12, 66, 497, 5924, 2748, 13, 634, 33406, 1, 8824, 2405, 15695, 1807, 271, 743, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRenderWithDefaultValues(t *testing.T) { ctx, _, _ := NewTestContext() exitCode, err := Render(ctx) assert.Equal(t, err.Error(), "tfcw config/hcl: <nil>: Configuration file not found; The configuration file does not exist.") assert.Equal(t, exitCode, 1) }
explode_data.jsonl/13608
{ "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, 6750, 2354, 3675, 6227, 1155, 353, 8840, 836, 8, 341, 20985, 11, 8358, 716, 1669, 1532, 2271, 1972, 741, 14519, 2078, 11, 1848, 1669, 13848, 7502, 340, 6948, 12808, 1155, 11, 1848, 6141, 1507, 330, 83, 8316, 86, 2193, 7530...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBindingClient(t *testing.T) { const name = "test-binding" client, _, shutdownServer := getFreshApiserverAndClient(t, func() runtime.Object { return &servicecatalog.ServiceBinding{} }) defer shutdownServer() if err := testBindingClient(client, name); err != nil { t.Fatal(err) } }
explode_data.jsonl/51886
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 15059, 2959, 1155, 353, 8840, 836, 8, 341, 4777, 829, 284, 330, 1944, 64400, 698, 25291, 11, 8358, 23766, 5475, 1669, 633, 55653, 91121, 2836, 3036, 2959, 1155, 11, 2915, 368, 15592, 8348, 341, 197, 853, 609, 7936, 26539, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConnectDeleteNonExistentCounter(t *testing.T) { err := Connect("./db/mstat.db") if err != nil { t.Fatal(err) } else { deleted := DelCounter("statx") if deleted != 0 { t.Fatal("keys deleted: ", deleted) } } }
explode_data.jsonl/1819
{ "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, 14611, 6435, 8121, 840, 18128, 14099, 1155, 353, 8840, 836, 8, 1476, 9859, 1669, 13015, 13988, 1999, 3183, 9878, 7076, 5130, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 92, 770, 1476, 197, 197, 26521, 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...
3
func TestProjectJsonFeature(t *testing.T) { bp := ` rust_library { name: "liba", srcs: ["a/src/lib.rs"], crate_name: "a", features: ["f1", "f2"] } ` jsonContent := testProjectJson(t, bp) crates := validateJsonCrates(t, jsonContent) for _, c := range crates { crate := validateCrate(t, c) cfgs, ok := c...
explode_data.jsonl/25963
{ "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, 7849, 5014, 13859, 1155, 353, 8840, 836, 8, 341, 2233, 79, 1669, 22074, 7000, 590, 39461, 341, 197, 11609, 25, 330, 2740, 64, 756, 197, 41144, 82, 25, 4383, 64, 13437, 8194, 25638, 8097, 197, 1444, 7698, 1269, 25, 330, 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...
7
func TestConstructENINetworkConfig(t *testing.T) { ecscniClient := NewClient(&Config{}) config := &Config{ ENIID: "eni-12345678", ContainerID: "containerid12", ContainerPID: "pid", ENIIPV4Address: "172.31.21.40", ENIIPV6Address: "2001:0db8:85a...
explode_data.jsonl/30402
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 519 }
[ 2830, 3393, 28468, 953, 687, 2349, 2648, 1155, 353, 8840, 836, 8, 341, 197, 757, 2388, 7751, 2959, 1669, 1532, 2959, 2099, 2648, 6257, 692, 25873, 1669, 609, 2648, 515, 197, 197, 953, 58948, 25, 503, 330, 33129, 12, 16, 17, 18, 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 TestShowWarningWithDependentModulesBeforeDestroy(t *testing.T) { rootPath := copyEnvironment(t, TEST_FIXTURE_DESTROY_WARNING) rootPath = util.JoinPath(rootPath, TEST_FIXTURE_DESTROY_WARNING) vpcPath := util.JoinPath(rootPath, "vpc") appPath := util.JoinPath(rootPath, "app") cleanupTerraformFolder(t, rootPa...
explode_data.jsonl/10182
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 436 }
[ 2830, 3393, 7812, 12087, 2354, 7839, 28193, 28201, 10227, 14245, 1155, 353, 8840, 836, 8, 1476, 33698, 1820, 1669, 2975, 12723, 1155, 11, 13602, 42635, 41486, 79400, 31962, 692, 33698, 1820, 284, 4094, 22363, 1820, 9206, 1820, 11, 13602, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnmarshalSecretURL(t *testing.T) { b := []byte(`"http://example.com/se cret"`) var u SecretURL err := json.Unmarshal(b, &u) if err != nil { t.Fatal(err) } require.Equal(t, "http://example.com/se%20cret", u.String(), "SecretURL not properly unmarshalled in JSON.") err = yaml.Unmarshal(b, &u) if err ...
explode_data.jsonl/72910
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 194 }
[ 2830, 3393, 1806, 27121, 19773, 3144, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 3056, 3782, 5809, 1, 1254, 1110, 8687, 905, 59587, 1884, 83, 1, 24183, 2405, 575, 8599, 3144, 271, 9859, 1669, 2951, 38097, 1883, 11, 609, 84, 340, 743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestInvalidFileFormat(t *testing.T) { var fileName = "../../test/invalidJsonFormat.json" _, err := LoadConfig(fileName) if err == err.(config.ErrorConfigConversion) { t.Log("Could not convert file content as expected.") } else if err != nil && err != err.(config.ErrorConfigConversion) { t.Errorf("Failed u...
explode_data.jsonl/75883
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 7928, 1703, 4061, 1155, 353, 8840, 836, 8, 341, 2405, 12665, 284, 10208, 1944, 14, 11808, 5014, 4061, 4323, 698, 197, 6878, 1848, 1669, 8893, 2648, 23014, 692, 743, 1848, 621, 1848, 12832, 1676, 6141, 2648, 48237, 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...
4
func TestGetMemory(t *testing.T) { tests := []struct { name string reply string threadCount int threadIdx int thread vppcalls.MemoryThread }{ { name: "single", reply: `Thread 0 vpp_main virtual memory start 0x7f60d0ee7000, size 1048640k, 262160 pages, page size 4k numa 0: 5...
explode_data.jsonl/69842
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1544 }
[ 2830, 3393, 1949, 10642, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 86149, 981, 914, 198, 197, 68214, 2507, 526, 198, 197, 68214, 11420, 256, 526, 198, 197, 68214, 414, 348, 602, 44620,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewPointsWithBytesWithCorruptData(t *testing.T) { corrupted := []byte{0, 0, 0, 3, 102, 111, 111, 0, 0, 0, 4, 61, 34, 65, 34, 1, 0, 0, 0, 14, 206, 86, 119, 24, 32, 72, 233, 168, 2, 148} p, err := models.NewPointFromBytes(corrupted) if p != nil || err == nil { t.Fatalf("NewPointFromBytes: got: (%v, %v), exp...
explode_data.jsonl/16971
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 150 }
[ 2830, 3393, 3564, 11411, 2354, 7078, 2354, 10580, 6585, 1043, 1155, 353, 8840, 836, 8, 341, 1444, 269, 85954, 1669, 3056, 3782, 90, 15, 11, 220, 15, 11, 220, 15, 11, 220, 18, 11, 220, 16, 15, 17, 11, 220, 16, 16, 16, 11, 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...
3
func TestWSNoAuthUserValidation(t *testing.T) { o := testWSOptions() o.Users = []*User{{Username: "user", Password: "pwd"}} // Should fail because it is not part of o.Users. o.Websocket.NoAuthUser = "notfound" if _, err := NewServer(o); err == nil || !strings.Contains(err.Error(), "not present as user") { t.Fata...
explode_data.jsonl/42732
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 257 }
[ 2830, 3393, 7433, 2753, 5087, 1474, 13799, 1155, 353, 8840, 836, 8, 341, 22229, 1669, 1273, 7433, 3798, 741, 22229, 36782, 284, 29838, 1474, 2979, 11115, 25, 330, 872, 497, 12362, 25, 330, 25565, 95642, 197, 322, 12260, 3690, 1576, 432,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMap(t *testing.T) { m := map[string]*contact{ "bill": &contact{Name: "bill smith"}, "mary": &contact{Name: "mary smith"}, } out, err := starlight.Eval([]byte(`out = contacts["bill"].Name`), map[string]interface{}{"contacts": m}, nil) if err != nil { t.Fatal(err) } o, ok := out["out"] if !ok { t...
explode_data.jsonl/47071
{ "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, 2227, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 2415, 14032, 8465, 6287, 515, 197, 197, 1, 29642, 788, 609, 6287, 63121, 25, 330, 29642, 76721, 7115, 197, 197, 1, 1534, 788, 609, 6287, 63121, 25, 330, 1534, 76721, 7115, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestZones(t *testing.T) { os := Rackspace{ provider: &gophercloud.ProviderClient{ IdentityBase: "http://auth.url/", }, region: "myRegion", } z, ok := os.Zones() if !ok { t.Fatalf("Zones() returned false") } zone, err := z.GetZone() if err != nil { t.Fatalf("GetZone() returned error: %s", err)...
explode_data.jsonl/6590
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 177 }
[ 2830, 3393, 57, 3154, 1155, 353, 8840, 836, 8, 341, 25078, 1669, 431, 7821, 1306, 515, 197, 197, 19979, 25, 609, 70, 16940, 12361, 36208, 2959, 515, 298, 197, 18558, 3978, 25, 330, 1254, 1110, 3242, 7315, 35075, 197, 197, 1583, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestQueue_Push(t *testing.T) { const cap = 10 queue := New(cap) for i := 0; i < cap; i++ { if queue.Push(i) != nil { t.FailNow() } } if queue.Push(cap) != ErrOverFlow { t.FailNow() } queue.Close() for i := 0; i < cap; i++ { if queue.Push(cap) != ErrClosed { t.FailNow() } } }
explode_data.jsonl/81007
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 148 }
[ 2830, 3393, 7554, 1088, 1116, 1155, 353, 8840, 836, 8, 1476, 4777, 2062, 284, 220, 16, 15, 198, 46993, 1669, 1532, 51386, 692, 2023, 600, 1669, 220, 15, 26, 600, 366, 2062, 26, 600, 1027, 341, 197, 743, 7177, 34981, 1956, 8, 961, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestManyPartition(t *testing.T) { runtime.GOMAXPROCS(4) fmt.Printf("Test: Many clients, changing partitions ...\n") tag := "many" const nservers = 5 //const nservers = 3 var kva []*KVPaxos = make([]*KVPaxos, nservers) defer cleanup(kva) defer cleanpp(tag, nservers) for i := 0; i < nservers; i++ { var...
explode_data.jsonl/75326
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1248 }
[ 2830, 3393, 8441, 49978, 1155, 353, 8840, 836, 8, 341, 7000, 4466, 1224, 1898, 2954, 9117, 6412, 7, 19, 692, 11009, 19367, 445, 2271, 25, 8999, 8239, 11, 10018, 46688, 98760, 77, 5130, 60439, 1669, 330, 34576, 698, 4777, 12268, 18729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultiStatement(t *testing.T) { mt.ParallelTest(t, versions, isReady, func(t *testing.T, i mt.Instance) { p := &Postgres{} addr := pgConnectionString(i.Host(), i.Port()) d, err := p.Open(addr) if err != nil { t.Fatalf("%v", err) } defer d.Close() if err := d.Run(bytes.NewReader([]byt...
explode_data.jsonl/70106
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 335 }
[ 2830, 3393, 20358, 8636, 1155, 353, 8840, 836, 8, 341, 2109, 83, 41288, 7957, 2271, 1155, 11, 10795, 11, 374, 19202, 345, 197, 29244, 1155, 353, 8840, 836, 11, 600, 11965, 12688, 8, 341, 298, 3223, 1669, 609, 4133, 17818, 16094, 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...
5
func TestGitURL(t *testing.T) { tests := []struct { name string s string want string }{ {name: "empty string"}, {name: "non-http", s: "howdy"}, { name: "normal URL, no slash", s: "https://docs.github.com/en/rest/reference/activity/events", want: "https://docs.github.com/en/rest/reference/ac...
explode_data.jsonl/50641
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 418 }
[ 2830, 3393, 46562, 3144, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 1903, 262, 914, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 47006, 25, 330, 3194, 914, 7115, 197, 197, 47006, 25, 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...
2
func TestSimpleCase(t *testing.T) { obj := &generated.Simple{ FieldA: 1, FieldB: "test", FieldC: &generated.Simple_Name{ Name: "test", }, } testSerialization(t, obj) }
explode_data.jsonl/48807
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 79 }
[ 2830, 3393, 16374, 4207, 1155, 353, 8840, 836, 8, 341, 22671, 1669, 609, 16187, 24252, 515, 197, 94478, 32, 25, 220, 16, 345, 197, 94478, 33, 25, 330, 1944, 756, 197, 94478, 34, 25, 609, 16187, 24252, 19015, 515, 298, 21297, 25, 330...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestEnqueueReferringRouteNotEnqueueIfCannotFindRoute(t *testing.T) { _, _, _, controller, reconciler, _, _, _, _ := newTestSetup(t) config := getTestConfiguration() rev := getTestRevisionForConfig(config) route := getTestRouteWithTrafficTargets( []v1alpha1.TrafficTarget{{ ConfigurationName: config.Name, ...
explode_data.jsonl/3285
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 299 }
[ 2830, 3393, 1702, 4584, 3945, 14443, 4899, 2623, 1702, 4584, 2679, 17444, 9885, 4899, 1155, 353, 8840, 836, 8, 341, 197, 6878, 8358, 8358, 6461, 11, 31445, 5769, 11, 8358, 8358, 8358, 716, 1669, 501, 2271, 21821, 1155, 692, 25873, 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...
2
func TestRecordCodec_NativeToBinary_Basic(t *testing.T) { record := struct { Username string `id:"1"` FavoriteNumber int `id:"2"` Interests []string `id:"3"` }{ FavoriteNumber: 1337, Username: "bob", Interests: []string{"daydreaming", "hacking"}, } var codec codecs.RecordCo...
explode_data.jsonl/29902
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 469 }
[ 2830, 3393, 6471, 36913, 98233, 1249, 21338, 1668, 5971, 1155, 353, 8840, 836, 8, 341, 71952, 1669, 2036, 341, 197, 197, 11115, 981, 914, 256, 1565, 307, 2974, 16, 8805, 197, 12727, 15622, 2833, 526, 414, 1565, 307, 2974, 17, 8805, 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 TestZipkinAnnotationsToOCStatus(t *testing.T) { type test struct { haveTags []*binaryAnnotation wantAttributes *tracepb.Span_Attributes wantStatus *tracepb.Status } cases := []test{ // only status.code tag { haveTags: []*binaryAnnotation{{ Key: "status.code", Value: "13", }}...
explode_data.jsonl/9088
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3097 }
[ 2830, 3393, 31047, 7989, 21418, 1249, 7612, 2522, 1155, 353, 8840, 836, 8, 341, 13158, 1273, 2036, 341, 197, 9598, 523, 15930, 981, 29838, 25891, 19711, 198, 197, 50780, 10516, 353, 15067, 16650, 85309, 55581, 3604, 198, 197, 50780, 2522,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestForbidUnsupportedCollations(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) mustGetUnsupportedCollation := func(sql string, coll string) { tk.MustGetErrMsg(sql, fmt.Sprintf("[ddl:1273]Unsupported collation when new collation is enabled: '%s'", ...
explode_data.jsonl/38147
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 415 }
[ 2830, 3393, 2461, 20648, 41884, 15265, 804, 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, 2109, 590, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReplaceReceiverHtlcSpendRedeemPreimage(t *testing.T) { t.Parallel() // pushes generates nb data pushes of 1-byte length pushes := func(nb int) []byte { return bytes.Repeat([]byte{0x01, 0xff}, nb) } tests := []struct { name string sigScript []byte preimage []byte valid bool }{ { ...
explode_data.jsonl/78154
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 703 }
[ 2830, 3393, 23107, 25436, 39, 11544, 66, 50, 3740, 6033, 68, 336, 4703, 1805, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 40702, 26885, 16649, 821, 40702, 315, 220, 16, 53952, 3084, 198, 43155, 288, 1669, 2915, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartAndShutdownWithPermanentErroringWork(t *testing.T) { r := &permanentErrorReconciler{} reporter := &FakeStatsReporter{} impl := NewImplWithStats(r, TestLogger(t), "Testing", reporter) ctx, cancel := context.WithCancel(context.Background()) doneCh := make(chan struct{}) go func() { defer close(done...
explode_data.jsonl/45292
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 396 }
[ 2830, 3393, 3479, 3036, 62004, 2354, 78793, 1454, 287, 6776, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 609, 97424, 1454, 693, 40446, 5769, 16094, 69931, 261, 1669, 609, 52317, 16635, 52766, 16094, 197, 6383, 1669, 1532, 9673, 2354, 16635,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSubaccountBalances(t *testing.T) { t.Parallel() _, err := f.SubaccountBalances(context.Background(), "") if !errors.Is(err, errSubaccountNameMustBeSpecified) { t.Errorf("expected %s, but received: %s", errSubaccountNameMustBeSpecified, err) } if !areTestAPIKeysSet() { t.Skip("skipping test, api keys n...
explode_data.jsonl/15249
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 290 }
[ 2830, 3393, 3136, 4608, 37889, 3020, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 6878, 1848, 1669, 282, 12391, 4608, 37889, 3020, 5378, 19047, 1507, 14676, 743, 753, 7650, 4506, 3964, 11, 1848, 3136, 4608, 675, 31776, 343...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPaddingLayout_Layout(t *testing.T) { sz := fyne.NewSize(5, 5) obj1 := testhelp.NewTestObject(sz) obj2 := testhelp.NewTestObject(sz) tests := map[string]struct { lyt fyne.Layout objs []fyne.CanvasObject expectedSz fyne.Size expectedPos fyne.Position }{ "Single object": { lyt: ...
explode_data.jsonl/54426
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 781 }
[ 2830, 3393, 21616, 2175, 62, 2175, 1155, 353, 8840, 836, 8, 341, 1903, 89, 1669, 51941, 811, 7121, 1695, 7, 20, 11, 220, 20, 340, 22671, 16, 1669, 1273, 8653, 7121, 2271, 1190, 40571, 340, 22671, 17, 1669, 1273, 8653, 7121, 2271, 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 TestSuccessMergeBase(t *testing.T) { testRepo := newTestRepo(t) defer testRepo.cleanup(t) mergeBase, err := testRepo.sut.MergeBase(git.DefaultBranch, testRepo.branchName) require.Nil(t, err) require.Equal(t, testRepo.firstCommit, mergeBase) }
explode_data.jsonl/13984
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 106 }
[ 2830, 3393, 7188, 52096, 3978, 1155, 353, 8840, 836, 8, 341, 18185, 25243, 1669, 501, 2271, 25243, 1155, 340, 16867, 1273, 25243, 87689, 1155, 692, 197, 19052, 3978, 11, 1848, 1669, 1273, 25243, 514, 332, 93855, 3978, 3268, 275, 13275, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoad(t *testing.T) { cases := []struct { name string config []string expectError bool expectSet []Flag expectUnset []Flag }{ { name: "loads with no flags set", config: []string{}, expectError: false, }, { name: "loads with the test flag set", co...
explode_data.jsonl/271
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 694 }
[ 2830, 3393, 5879, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 25873, 414, 3056, 917, 198, 197, 24952, 1454, 1807, 198, 197, 24952, 1649, 256, 3056, 12135, 198, 197, 24952, 1806, 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...
9
func TestStructure(t *testing.T) { firstResourcePath := root.Index(0) testCases := []struct { desc string in *config.EncryptionConfiguration want field.ErrorList }{ { desc: "nil encryption config", in: nil, want: field.ErrorList{ field.Required(root, encryptionConfigNilErr), }, }, { ...
explode_data.jsonl/75100
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1839 }
[ 2830, 3393, 22952, 1155, 353, 8840, 836, 8, 341, 42190, 4783, 1820, 1669, 3704, 18338, 7, 15, 340, 18185, 37302, 1669, 3056, 1235, 341, 197, 41653, 914, 198, 197, 17430, 256, 353, 1676, 26598, 15597, 7688, 198, 197, 50780, 2070, 6141, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestLogger_Env(t *testing.T) { for _, test := range tests { t.Run(test.name, func(t *testing.T) { clearEnv() loadDotEnv(t) c, err := loadNormalized(test.file) assert.NoError(t, err) l := c.Logger assert.Equal(t, testPkg, l.Package) assert.Equal(t, testLevel, l.Level) assert.Equal(t, logF...
explode_data.jsonl/20567
{ "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, 7395, 62, 14359, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 7032, 341, 197, 3244, 16708, 8623, 2644, 11, 2915, 1155, 353, 8840, 836, 8, 341, 298, 40408, 14359, 741, 298, 49386, 34207, 14359, 1155, 340, 298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestASGrammarDeclaration(t *testing.T) { t.Run("ensure idnames match map key", func(t *testing.T) { for i, g := range ASGRAMMAR.rules { if ASGRAMMAR.rules[g.idName] != g || g.idName != i { println("Hey! Rule with idName:", g.idName, " and key:", i, " does not match map key!") t.Fail() } } }) }
explode_data.jsonl/74068
{ "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, 1911, 97178, 24489, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 27289, 877, 11400, 2432, 2415, 1376, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 2023, 600, 11, 342, 1669, 2088, 5752, 22968, 60661, 43651, 341, 298, 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...
4
func TestImportUpdatedID(t *testing.T) { p := &TestPlan{} provURN := p.NewProviderURN("pkgA", "default", "") resURN := p.NewURN("pkgA:m:typA", "resA", "") importID := resource.ID("myID") actualID := resource.ID("myNewID") loaders := []*deploytest.ProviderLoader{ deploytest.NewProviderLoader("pkgA", semver.Mus...
explode_data.jsonl/4173
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 567 }
[ 2830, 3393, 11511, 16196, 915, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 609, 2271, 20485, 31483, 197, 42947, 11274, 1669, 281, 7121, 5179, 11274, 445, 30069, 32, 497, 330, 2258, 497, 14676, 10202, 11274, 1669, 281, 7121, 11274, 445, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestJSONMarshalLevel(t *testing.T) { type Inner struct { Name string `json:"name"` } wrapper := &struct { InnerIns Inner *Inner Password string `json:"pwd"` }{ InnerIns: Inner{Name: "wrapper"}, Inner: &Inner{Name: "direct"}, Password: "123", } wrapperByte, _ := json.Marshal(wrapper) fmt.P...
explode_data.jsonl/2044
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 169 }
[ 2830, 3393, 5370, 55438, 4449, 1155, 353, 8840, 836, 8, 341, 13158, 36356, 2036, 341, 197, 21297, 914, 1565, 2236, 2974, 606, 8805, 197, 630, 6692, 5518, 1669, 609, 1235, 341, 197, 197, 31597, 15474, 36356, 198, 197, 197, 9, 31597, 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 TestIgnoredTags(t *testing.T) { suite := NewSuite(t, WithFeaturesPath("features/ignored_tags.feature"), WithIgnoredTags("@ignore")) suite.AddStep(`fail the test`, fail) suite.Run() }
explode_data.jsonl/69378
{ "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, 43337, 3018, 15930, 1155, 353, 8840, 836, 8, 341, 96572, 1669, 1532, 28000, 1155, 11, 3085, 21336, 1820, 445, 20304, 14, 58471, 16333, 29591, 3975, 3085, 43337, 3018, 15930, 10662, 13130, 5455, 96572, 1904, 8304, 5809, 18403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInterleavedFrameReadErrors(t *testing.T) { for _, ca := range []struct { name string byts []byte err string }{ { "empty", []byte{}, "EOF", }, { "invalid magic byte", []byte{0x55, 0x00, 0x00, 0x00}, "invalid magic byte (0x55)", }, { "payload size too big", []byte{0x24,...
explode_data.jsonl/74945
{ "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, 3306, 273, 4141, 4369, 4418, 13877, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 2162, 1669, 2088, 3056, 1235, 341, 197, 11609, 914, 198, 197, 197, 1694, 2576, 3056, 3782, 198, 197, 9859, 220, 914, 198, 197, 59403, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestWorkflowMessage(t *testing.T) { ctl := gomock.NewController(t) defer ctl.Finish() message := mock.NewMockMessageClient(ctl) gomock.InOrder( message.EXPECT(). Send(gomock.Any(), gomock.Any()). Return(&pb.StateReply{State: true}, nil), ) ctx := rulebot.NewContext(nil, nil, nil, message, nil, ni...
explode_data.jsonl/55329
{ "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, 62768, 2052, 1155, 353, 8840, 836, 8, 341, 197, 12373, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 64935, 991, 18176, 2822, 24753, 1669, 7860, 7121, 11571, 2052, 2959, 7, 12373, 340, 3174, 316, 1176, 5337, 4431, 1006...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWebSocketReverseProxyFromWSClient(t *testing.T) { // Echo server allows us to test that socket bytes are properly // being proxied. wsEcho := httptest.NewServer(websocket.Handler(func(ws *websocket.Conn) { io.Copy(ws, ws) })) defer wsEcho.Close() // Get proxy to use for the test p := newWebSocketTest...
explode_data.jsonl/64232
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 483 }
[ 2830, 3393, 61238, 45695, 16219, 3830, 7433, 2959, 1155, 353, 8840, 836, 8, 341, 197, 322, 37806, 3538, 6147, 601, 311, 1273, 429, 7575, 5820, 525, 10277, 198, 197, 322, 1660, 21542, 1122, 624, 6692, 82, 74994, 1669, 54320, 70334, 7121,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBackend_RegisteredNonCA_CRL(t *testing.T) { config := logical.TestBackendConfig() storage := &logical.InmemStorage{} config.StorageView = storage b, err := Factory(config) if err != nil { t.Fatal(err) } nonCACert, err := ioutil.ReadFile(testCertPath1) if err != nil { t.Fatal(err) } // Register...
explode_data.jsonl/68940
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 733 }
[ 2830, 3393, 29699, 62, 41430, 8121, 5049, 920, 4728, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 19819, 8787, 29699, 2648, 741, 197, 16172, 1669, 609, 30256, 5337, 10536, 5793, 16094, 25873, 43771, 851, 284, 5819, 271, 2233, 11, 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...
7
func TestValidateCleanClusterInfo(t *testing.T) { config := clientcmdapi.NewConfig() config.Clusters["clean"] = &clientcmdapi.Cluster{ Server: "anything", } test := configValidationTest{ config: config, } test.testCluster("clean", t) test.testConfig(t) }
explode_data.jsonl/13492
{ "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, 17926, 27529, 28678, 1731, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 2943, 8710, 2068, 7121, 2648, 741, 25873, 21610, 14605, 1183, 18377, 1341, 284, 609, 2972, 8710, 2068, 72883, 515, 197, 92075, 25, 330, 72154, 756, 197, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBucketReconciler_Reconcile(t *testing.T) { g := NewWithT(t) s3Server := s3mock.NewServer("test-bucket") s3Server.Objects = []*s3mock.Object{ { Key: "test.yaml", Content: []byte("test"), ContentType: "text/plain", LastModified: time.Now(), }, } s3Server.Start() defer s3Serv...
explode_data.jsonl/80414
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1274 }
[ 2830, 3393, 36018, 693, 40446, 5769, 50693, 40446, 457, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 2354, 51, 1155, 692, 1903, 18, 5475, 1669, 274, 18, 16712, 7121, 5475, 445, 1944, 1455, 11152, 1138, 1903, 18, 5475, 40314, 284, 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 TestTolerations(t *testing.T) { woc := newWoc() woc.execWf.Spec.Templates[0].Tolerations = []apiv1.Toleration{{ Key: "nvidia.com/gpu", Operator: "Exists", Effect: "NoSchedule", }} tmplCtx, err := woc.createTemplateContext(wfv1.ResourceScopeLocal, "") assert.NoError(t, err) ctx := context.Backgr...
explode_data.jsonl/75373
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 318 }
[ 2830, 3393, 51, 22072, 804, 1155, 353, 8840, 836, 8, 341, 6692, 509, 1669, 501, 54, 509, 741, 6692, 509, 15776, 54, 69, 36473, 836, 76793, 58, 15, 936, 51, 22072, 804, 284, 3056, 391, 344, 16, 836, 337, 20927, 90, 515, 197, 55242,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSyncer(t *testing.T) { ctx := context.Background() ctx, clearTimeout := context.WithTimeout(ctx, time.Second*10) defer clearTimeout() ctx, cancel := context.WithCancel(ctx) defer cancel() lis := bufconn.Listen(1) r1 := &Record{Version: 1000, Id: "r1"} r2 := &Record{Version: 1001, Id: "r2"} r3 := &Rec...
explode_data.jsonl/68624
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1823 }
[ 2830, 3393, 12154, 261, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 20985, 11, 53225, 1669, 2266, 26124, 7636, 7502, 11, 882, 32435, 9, 16, 15, 340, 16867, 53225, 741, 20985, 11, 9121, 1669, 2266, 26124, 9269, 7502, 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...
5
func TestDefinition(t *testing.T) { input := "(set x 5)" lex := lexer.NewLexer(input) tokens, _ := lex.GetTokens() parser := NewParser(tokens) exprs, _ := parser.GetExpressions() defe, ok := exprs[0].(expr.Set) if !ok { t.Fatalf("Conversion to Set expression failed") } assertString(t, defe.Var.Name, "x") as...
explode_data.jsonl/43723
{ "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, 10398, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 11993, 746, 856, 220, 20, 12954, 197, 2571, 1669, 53259, 7121, 92847, 5384, 340, 3244, 9713, 11, 716, 1669, 22429, 2234, 29300, 741, 55804, 1669, 1532, 6570, 34052, 340, 8122...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlockPullerNoOrdererAliveAtStartup(t *testing.T) { //场景:单一排序节点,以及块拉具 //启动-订购者找不到。 osn := newClusterNode(t) osn.stop() defer osn.stop() dialer := newCountingDialer() bp := newBlockPuller(dialer, osn.srv.Address()) //将记录器配置为等待连接尝试失败 var connectionAttempt sync.WaitGroup connectionAttempt.Add(1) bp.Logge...
explode_data.jsonl/47276
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 554 }
[ 2830, 3393, 4713, 36068, 261, 2753, 4431, 261, 32637, 1655, 39076, 1155, 353, 8840, 836, 8, 341, 322, 102122, 5122, 106215, 74661, 92374, 3837, 101034, 99922, 72225, 76813, 198, 322, 101159, 12, 114574, 28946, 106486, 8997, 25078, 77, 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...
2
func TestScriptMatchConfiguration(t *testing.T) { t.Run("no merge", func(t *testing.T) { confs := []ConfigurationItem{ { Match: &ScriptMatch{Expr: `c.protocol > 5 && c.browser != "firefox"`}, Configuration: &livekit.ClientConfiguration{ ResumeConnection: livekit.ClientConfigSetting_ENABLED, }, ...
explode_data.jsonl/35109
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 687 }
[ 2830, 3393, 5910, 8331, 7688, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 2152, 10880, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 37203, 3848, 1669, 3056, 7688, 1234, 515, 298, 197, 515, 571, 197, 8331, 25, 609, 5910, 8331, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestProcessCookieNoCookieError(t *testing.T) { pcTest, err := NewProcessCookieTestWithDefaults() if err != nil { t.Fatal(err) } session, err := pcTest.LoadCookiedSession() assert.Error(t, err, "cookie \"_oauth2_proxy\" not present") if session != nil { t.Errorf("expected nil session. got %#v", session) ...
explode_data.jsonl/36397
{ "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, 7423, 20616, 2753, 20616, 1454, 1155, 353, 8840, 836, 8, 341, 82013, 2271, 11, 1848, 1669, 1532, 7423, 20616, 2271, 2354, 16273, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 25054, 11, 1848, 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...
3
func TestCreatePostAsUser(t *testing.T) { t.Run("marks channel as viewed for regular user", func(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() post := &model.Post{ ChannelId: th.BasicChannel.Id, Message: "test", UserId: th.BasicUser.Id, } channelMemberBefore, err := th.App.Sr...
explode_data.jsonl/26437
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1469 }
[ 2830, 3393, 4021, 4133, 2121, 1474, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 15544, 5496, 438, 19334, 369, 5792, 1196, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 197, 16867, 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 TestRTCPSender(t *testing.T) { now = func() time.Time { return time.Date(2008, 5, 20, 22, 16, 20, 600000000, time.UTC) } done := make(chan struct{}) rs := New(500*time.Millisecond, 90000, func(pkt rtcp.Packet) { require.Equal(t, &rtcp.SenderReport{ SSRC: 0xba9da416, NTPTime: 0xcbddcc34999...
explode_data.jsonl/24197
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 609 }
[ 2830, 3393, 48673, 5012, 1659, 1155, 353, 8840, 836, 8, 341, 80922, 284, 2915, 368, 882, 16299, 341, 197, 853, 882, 8518, 7, 17, 15, 15, 23, 11, 220, 20, 11, 220, 17, 15, 11, 220, 17, 17, 11, 220, 16, 21, 11, 220, 17, 15, 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 TestMatch(t *testing.T) { ctxt := Default what := "default" match := func(tag string, want map[string]bool) { m := make(map[string]bool) if !ctxt.match(tag, m) { t.Errorf("%s context should match %s, does not", what, tag) } if !reflect.DeepEqual(m, want) { t.Errorf("%s tags = %v, want %v", tag, m,...
explode_data.jsonl/511
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 645 }
[ 2830, 3393, 8331, 1155, 353, 8840, 836, 8, 341, 197, 77492, 1669, 7899, 198, 197, 12555, 1669, 330, 2258, 698, 47706, 1669, 2915, 19343, 914, 11, 1366, 2415, 14032, 96436, 8, 341, 197, 2109, 1669, 1281, 9147, 14032, 96436, 340, 197, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestStdio(t *testing.T) { if err := testutil.Pull("alpine"); err != nil { t.Fatalf("docker pull failed: %v", err) } d := testutil.MakeDocker("stdio-test") wantStdout := "hello stdout" wantStderr := "bonjour stderr" cmd := fmt.Sprintf("echo %q; echo %q 1>&2;", wantStdout, wantStderr) if err := d.Run("alpi...
explode_data.jsonl/33463
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 261 }
[ 2830, 3393, 22748, 815, 1155, 353, 8840, 836, 8, 341, 743, 1848, 1669, 1273, 1314, 97357, 445, 278, 38038, 5038, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 28648, 6815, 4641, 25, 1018, 85, 497, 1848, 340, 197, 532, 2698, 1669, 1273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSchemaParser_SimpleInputObject(t *testing.T) { body := ` input Hello { world: String }` astDoc := parse(t, body) expected := ast.NewDocument(&ast.Document{ Loc: testLoc(1, 32), Definitions: []ast.Node{ ast.NewInputObjectDefinition(&ast.InputObjectDefinition{ Loc: testLoc(1, 32), Name: ast.N...
explode_data.jsonl/73881
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 505 }
[ 2830, 3393, 8632, 6570, 1098, 6456, 2505, 1190, 1155, 353, 8840, 836, 8, 341, 35402, 1669, 22074, 1355, 21927, 341, 220, 1879, 25, 923, 198, 31257, 88836, 9550, 1669, 4715, 1155, 11, 2487, 340, 42400, 1669, 11763, 7121, 7524, 2099, 559,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListClear(t *testing.T) { list := New() list.Add("e", "f", "g", "a", "b", "c", "d") list.Clear() if actualValue := list.Empty(); actualValue != true { t.Errorf("Got %v expected %v", actualValue, true) } if actualValue := list.Size(); actualValue != 0 { t.Errorf("Got %v expected %v", actualValue, 0) ...
explode_data.jsonl/18287
{ "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, 852, 14008, 1155, 353, 8840, 836, 8, 341, 14440, 1669, 1532, 741, 14440, 1904, 445, 68, 497, 330, 69, 497, 330, 70, 497, 330, 64, 497, 330, 65, 497, 330, 66, 497, 330, 67, 1138, 14440, 13524, 741, 743, 5042, 1130, 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...
3
func TestGetWordInfo(t *testing.T) { fmt.Println("-- getWordInfo --") // Valid case 1 searchedWord := "test" t.Log(getWordInfoUrl) request, err := client.Get(getWordInfoUrl + "/" + searchedWord) // Create request with JSON body if err != nil { t.Error(err.Error()) } defer request.Body.Close() if request.S...
explode_data.jsonl/74523
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 298 }
[ 2830, 3393, 1949, 10879, 1731, 1155, 353, 8840, 836, 8, 341, 11009, 12419, 21549, 633, 10879, 1731, 1177, 5130, 197, 322, 7818, 1142, 220, 16, 271, 45573, 291, 10879, 1669, 330, 1944, 698, 3244, 5247, 5433, 10879, 1731, 2864, 340, 23555...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMSSQLMarkBeginBadConn(t *testing.T) { params := newConnParams() testFn := func(label string, nextFn func(driver.Conn) error) { cc, sc := drv.Stats.ConnCount, drv.Stats.StmtCount defer func() { if should, is := sc, drv.Stats.StmtCount; should != is { t.Errorf("leaked statement, should=%d, is=%d", ...
explode_data.jsonl/33565
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 767 }
[ 2830, 3393, 44, 1220, 3588, 8949, 11135, 17082, 9701, 1155, 353, 8840, 836, 8, 341, 25856, 1669, 501, 9701, 4870, 2822, 18185, 24911, 1669, 2915, 13345, 914, 11, 1790, 24911, 2915, 24032, 50422, 8, 1465, 8, 341, 197, 63517, 11, 1136, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApiServerIsUp(t *testing.T) { // override flags if enviroment variable exists if e := os.Getenv("API_VERSION"); e != "" { apiVersion = &e } client, err := NewTestClient() if err != nil { t.Fatal(err) } statusCode, body := client.Get("/healthcheck", ApiServer) expected := "200 OK" if statusCode !...
explode_data.jsonl/23593
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 6563, 5475, 3872, 2324, 1155, 353, 8840, 836, 8, 341, 197, 322, 2812, 8042, 421, 49264, 441, 306, 3890, 6724, 198, 743, 384, 1669, 2643, 64883, 445, 7082, 10678, 5038, 384, 961, 1591, 341, 197, 54299, 5637, 284, 609, 68, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestNewOrQuery(t *testing.T) { Convey("or query nil", t, func() { oq := NewOrQuery(nil, nil) So(oq, ShouldBeNil) }) }
explode_data.jsonl/43258
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 59 }
[ 2830, 3393, 3564, 2195, 2859, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 269, 3239, 2092, 497, 259, 11, 2915, 368, 341, 197, 22229, 80, 1669, 1532, 2195, 2859, 27907, 11, 2092, 340, 197, 76912, 10108, 80, 11, 12260, 3430, 19064, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCmdAddTwoContainers(t *testing.T) { defer resetGlobalTestVariables() testAnnotations[injectAnnotationKey] = "true" testContainers = []string{"mockContainer", "mockContainer2"} testCmdAdd(t) if !nsenterFuncCalled { t.Fatalf("expected nsenterFunc to be called") } mockIntercept, ok := GetInterceptRuleM...
explode_data.jsonl/17790
{ "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, 15613, 2212, 11613, 74632, 1155, 353, 8840, 836, 8, 341, 16867, 7585, 11646, 2271, 22678, 741, 18185, 21418, 15375, 583, 19711, 1592, 60, 284, 330, 1866, 698, 18185, 74632, 284, 3056, 917, 4913, 16712, 4502, 497, 330, 16712, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewGatewayClientIncorrectData(t *testing.T) { _, err := NewGatewayClient("", "SecKey") assert.EqualError(t, err, "GUID can't be empty. It's required for merchant authorization") _, err2 := NewGatewayClient("3383e58e-9cde-4ffa-85cf-81cd25b2423e", "") assert.EqualError(t, err2, "secret key can't be empty. I...
explode_data.jsonl/67938
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 129 }
[ 2830, 3393, 3564, 40709, 2959, 40468, 1043, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 1532, 40709, 2959, 19814, 330, 8430, 1592, 1138, 6948, 12808, 1454, 1155, 11, 1848, 11, 330, 41778, 646, 944, 387, 4287, 13, 1084, 594, 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 TestString(t *testing.T) { for _, a := range strTests { s := a.x.string(a.c) if s != a.s { t.Errorf("string%+v\n\tgot s = %s; want %s", a, s, a.s) } x, b, err := nat(nil).scan(strings.NewReader(a.s), len(a.c)) if x.cmp(a.x) != 0 { t.Errorf("scan%+v\n\tgot z = %v; want %v", a, x, a.x) } if b !...
explode_data.jsonl/2185
{ "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, 703, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 264, 1669, 2088, 607, 18200, 341, 197, 1903, 1669, 264, 1993, 4804, 2877, 520, 340, 197, 743, 274, 961, 264, 514, 341, 298, 3244, 13080, 445, 917, 4, 10, 85, 1699, 4955, 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...
6
func TestCertificateServiceGetByPartialName(t *testing.T) { service := createCertificateService(t) require.NotNil(t, service) resources, err := service.GetByPartialName(emptyString) assert.Equal(t, err, createInvalidParameterError(OperationGetByPartialName, ParameterName)) assert.NotNil(t, resources) assert.Len(...
explode_data.jsonl/71913
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 362 }
[ 2830, 3393, 33202, 1860, 1949, 1359, 37314, 675, 1155, 353, 8840, 836, 8, 341, 52934, 1669, 1855, 33202, 1860, 1155, 340, 17957, 93882, 1155, 11, 2473, 692, 10202, 2360, 11, 1848, 1669, 2473, 2234, 1359, 37314, 675, 24216, 703, 340, 694...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFileRemoveFile(t *testing.T) { t.Run("remove non-existent", func(t *testing.T) { path, tearDown := setupConfigFile(t, minimalConfig) defer tearDown() fs, err := config.NewFileStore(path, true) require.NoError(t, err) defer fs.Close() err = fs.RemoveFile("non-existent") require.NoError(t, err) ...
explode_data.jsonl/32388
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 811 }
[ 2830, 3393, 1703, 13021, 1703, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5399, 2477, 59828, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 26781, 11, 32825, 1669, 6505, 2648, 1703, 1155, 11, 17377, 2648, 340, 197, 16867, 32825, 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 TestDefaultLoggingOutlet(t *testing.T) { conf := testValidGlobalSection(t, "") assert.Equal(t, 1, len(*conf.Global.Logging)) o := (*conf.Global.Logging)[0].Ret.(*StdoutLoggingOutlet) assert.Equal(t, "warn", o.Level) assert.Equal(t, "human", o.Format) }
explode_data.jsonl/18554
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 107 }
[ 2830, 3393, 3675, 34575, 10643, 1155, 353, 8840, 836, 8, 341, 67850, 1669, 1273, 4088, 11646, 9620, 1155, 11, 14676, 6948, 12808, 1155, 11, 220, 16, 11, 2422, 4071, 6135, 27381, 41945, 1171, 22229, 1669, 4609, 6135, 27381, 41945, 6620, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue17791(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("SET sql_mode=DEFAULT;") tk.MustExec("CREATE TABLE t1 (" + " id INT NOT NULL PRIMARY KEY auto_increment,"...
explode_data.jsonl/65517
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 247 }
[ 2830, 3393, 42006, 16, 22, 22, 24, 16, 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, 692, 3244, 74, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBuildMeta(t *testing.T) { cases := []struct { name string pj prowjobv1.ProwJob expected func(prowjobv1.ProwJob, *metav1.ObjectMeta) }{ { name: "Use pj.Spec.Namespace for build namespace", pj: prowjobv1.ProwJob{ ObjectMeta: metav1.ObjectMeta{ Name: "whatever", Namesp...
explode_data.jsonl/78933
{ "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, 11066, 12175, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 3223, 73, 981, 47558, 8799, 85, 16, 1069, 651, 12245, 198, 197, 42400, 2915, 1295, 651, 8799, 85, 16, 1069, 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 TestSkiplistAdd(t *testing.T) { d := &testStorage{} l := NewSkiplist(d, 0) it := l.NewIter() // Add empty key. require.Nil(t, l.Add(d.add(""))) require.EqualValues(t, []byte{}, it.Key().UserKey) // Add to empty list. require.Nil(t, l.Add(d.add("00002"))) require.True(t, it.SeekGE(makeKey("00002"))) req...
explode_data.jsonl/26100
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 457 }
[ 2830, 3393, 50, 6642, 39934, 2212, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 609, 1944, 5793, 16094, 8810, 1669, 1532, 50, 6642, 39934, 1500, 11, 220, 15, 340, 23374, 1669, 326, 7121, 8537, 2822, 197, 322, 2691, 4287, 1376, 624, 17957...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetValidator(t *testing.T) { assert := assert.New(t) fakeViper := viper.New() t.Run("TestAuthHeaderNotSet", func(t *testing.T) { validator, err := getValidator(fakeViper) assert.Nil(err) validators := validator.(secure.Validators) assert.Equal(0, len(validators)) }) t.Run("TestAuthHeaderSet",...
explode_data.jsonl/63814
{ "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, 1949, 14256, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 1166, 726, 53, 12858, 1669, 95132, 7121, 2822, 3244, 16708, 445, 2271, 5087, 4047, 2623, 1649, 497, 2915, 1155, 353, 8840, 836, 8, 341, 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 TestDequeue(t *testing.T) { queue := NewQueue() t.Run("when queue is empty", func(t *testing.T) { expectedQueue := NewQueue() t.Run("it should return nil response", func(t *testing.T) { item := queue.Dequeue() assert.Nil(t, item) assert.Equal(t, queue, expectedQueue) }) }) t.Run("when queue ...
explode_data.jsonl/44140
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 310 }
[ 2830, 3393, 1912, 4584, 1155, 353, 8840, 836, 8, 341, 46993, 1669, 1532, 7554, 2822, 3244, 16708, 445, 9309, 7177, 374, 4287, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 42400, 7554, 1669, 1532, 7554, 2822, 197, 3244, 16708, 445, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEnvs(t *testing.T) { g := goblin.Goblin(t) RegisterFailHandler(func(m string, _ ...int) { g.Fail(m) }) g.Describe("Parsing File", func() { g.It("should parse envs from a file", func() { es, err := envs.ParseFile("./basic.env") Expect(err).NotTo(HaveOccurred()) Expect(len(es)).To(Equal(3)) Ex...
explode_data.jsonl/43003
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 837 }
[ 2830, 3393, 1702, 11562, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 47061, 1224, 47061, 1155, 340, 79096, 19524, 3050, 18552, 1255, 914, 11, 716, 2503, 396, 8, 314, 342, 57243, 1255, 8, 9568, 3174, 23548, 3114, 445, 68839, 2887, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_nextHouse(t *testing.T) { data := []struct { start point move rune expected point expectedMessage string }{ {point{10, 20}, '<', point{9, 20}, ""}, {point{10, 20}, '>', point{11, 20}, ""}, {point{10, 20}, '^', point{10, 21}, ""}, {point{10, 20}, 'v', point{10, 19}...
explode_data.jsonl/30722
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 331 }
[ 2830, 3393, 11257, 28607, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 3056, 1235, 341, 197, 21375, 1843, 1459, 198, 197, 49288, 310, 63499, 198, 197, 42400, 286, 1459, 198, 197, 42400, 2052, 914, 198, 197, 59403, 197, 197, 90, 2768, 90,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestListApp(t *testing.T) { username := superAdminUser password := superAdminPassword otherUsername := subscriber.UserName otherPassword := subscriber.Password apim := apimClients[0] addApp(t, apim, username, password) addApp(t, apim, otherUsername, otherPassword) base.SetupEnv(t, apim.GetEnvName(), apim...
explode_data.jsonl/42429
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 157 }
[ 2830, 3393, 852, 2164, 1155, 353, 8840, 836, 8, 341, 72358, 1669, 2256, 7210, 1474, 198, 58199, 1669, 2256, 7210, 4876, 198, 197, 1575, 11115, 1669, 32115, 43672, 198, 197, 1575, 4876, 1669, 32115, 25690, 271, 69898, 318, 1669, 1443, 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...
1
func TestDeleteEventsByAge(t *testing.T) { dbClientMock := newMockDB(true) dic := mocks.NewMockDIC() dic.Update(di.ServiceConstructorMap{ container.DBClientInterfaceName: func(get di.Get) interface{} { return dbClientMock }, }) err := DeleteEventsByAge(0, dic) require.NoError(t, err) }
explode_data.jsonl/54250
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 120 }
[ 2830, 3393, 6435, 7900, 1359, 16749, 1155, 353, 8840, 836, 8, 341, 20939, 2959, 11571, 1669, 501, 11571, 3506, 3715, 692, 2698, 292, 1669, 68909, 7121, 11571, 93161, 741, 2698, 292, 16689, 55493, 13860, 13288, 2227, 515, 197, 53290, 22537...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddParseTreeToUnparsedTemplate(t *testing.T) { master := "{{define \"master\"}}{{end}}" tmpl := New("master") tree, err := parse.Parse("master", master, "", "", nil) if err != nil { t.Fatalf("unexpected parse err: %v", err) } masterTree := tree["master"] tmpl.AddParseTree("master", masterTree) // used...
explode_data.jsonl/71987
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 2212, 14463, 6533, 1249, 1806, 41030, 7275, 1155, 353, 8840, 836, 8, 341, 2109, 2300, 1669, 47219, 1289, 7245, 13629, 2105, 77286, 408, 95063, 3244, 54010, 1669, 1532, 445, 13629, 1138, 51968, 11, 1848, 1669, 4715, 8937, 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...
2
func TestByteSlice2Uint32(t *testing.T) { assert.Equal(t, uint32(1), ByteSlice2Uint32([]byte{1})) assert.Equal(t, uint32(0xffffffff), ByteSlice2Uint32([]byte{0xff, 0xff, 0xff, 0xff})) assert.Equal(t, uint32(0xffffffff), ByteSlice2Uint32([]byte{0xff, 0xff, 0xff, 0xff, 0xff})) assert.Equal(t, uint32(0), ByteSlice2Uin...
explode_data.jsonl/13583
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 156 }
[ 2830, 3393, 7153, 33236, 17, 21570, 18, 17, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 2622, 18, 17, 7, 16, 701, 10906, 33236, 17, 21570, 18, 17, 10556, 3782, 90, 16, 44194, 6948, 12808, 1155, 11, 2622, 18, 17, 7, 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 TestDeleteConntrack(t *testing.T) { mockNetLinkOps := new(mocks.NetLinkOps) // below is defined in net_linux.go netLinkOps = mockNetLinkOps tests := []struct { desc string errExp bool inputIPStr string inputPort int32 inputProtocol ...
explode_data.jsonl/30961
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1396 }
[ 2830, 3393, 6435, 9701, 13131, 1155, 353, 8840, 836, 8, 341, 77333, 6954, 3939, 38904, 1669, 501, 1255, 25183, 16993, 3939, 38904, 340, 197, 322, 3685, 374, 4512, 304, 4179, 77463, 18002, 198, 59486, 3939, 38904, 284, 7860, 6954, 3939, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRespondentRecvExpire(t *testing.T) { s := GetSocket(t, NewSocket) MustSucceed(t, s.SetOption(mangos.OptionRecvDeadline, time.Millisecond)) v, e := s.RecvMsg() MustBeError(t, e, mangos.ErrRecvTimeout) MustBeNil(t, v) MustSucceed(t, s.Close()) }
explode_data.jsonl/57404
{ "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, 65354, 306, 63483, 8033, 554, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 2126, 10286, 1155, 11, 1532, 10286, 340, 9209, 590, 50, 29264, 1155, 11, 274, 4202, 5341, 1255, 524, 436, 52216, 63483, 83593, 11, 882, 71482, 1171, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParseHuman(t *testing.T) { testing2. Expect(time.Hour, nil).Arg("1H"). Expect(time.Minute, nil).Arg("1M"). Expect(time.Second, nil).Arg("1S"). Expect(time.Millisecond, nil).Arg("1m"). Expect(time.Microsecond, nil).Arg("1u"). Expect(time.Nanosecond, nil).Arg("1n"). Expect(time.Duration(0), testin...
explode_data.jsonl/47456
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 164 }
[ 2830, 3393, 14463, 33975, 1155, 353, 8840, 836, 8, 341, 197, 8840, 17, 624, 197, 35911, 9730, 73550, 11, 2092, 568, 2735, 445, 16, 39, 38609, 197, 35911, 9730, 75770, 11, 2092, 568, 2735, 445, 16, 44, 38609, 197, 35911, 9730, 32435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParsePosixConfirm(t *testing.T) { if testing.Short() { t.Skip("calling dash is slow.") } if !hasDash059 { t.Skip("dash 0.5.9 or newer required to run") } i := 0 for _, c := range append(fileTests, fileTestsNoPrint...) { if c.Posix == nil { continue } for j, in := range c.Strs { t.Run(fmt....
explode_data.jsonl/55117
{ "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, 14463, 4859, 941, 16728, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 73726, 23911, 374, 6301, 13053, 197, 532, 743, 753, 4648, 42263, 15, 20, 24, 341, 197, 3244, 57776, 445, 43519, 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...
6
func TestSeparateV4V6WithV4OnlyCIDRPrefix(t *testing.T) { cfg := constructTestConfig() iptConfigurator := NewIptablesConfigurator(cfg, &dep.StdoutStubDependencies{}) v4Range, v6Range, _ := iptConfigurator.separateV4V6("10.0.0.0/8,172.16.0.0/16") if v4Range.IsWildcard { t.Errorf("Expected v4Range to be not have w...
explode_data.jsonl/65391
{ "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, 14492, 349, 53, 19, 53, 21, 2354, 53, 19, 7308, 54146, 49, 14335, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 9245, 2271, 2648, 2822, 8230, 417, 2648, 57383, 1669, 1532, 40, 417, 4788, 2648, 57383, 28272, 11, 609, 14891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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