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 TestExtractSelectors(t *testing.T) { for _, tc := range [...]struct { input string expected []string }{ { "foo", []string{`{__name__="foo"}`}, }, { `foo{bar="baz"}`, []string{`{bar="baz", __name__="foo"}`}, }, { `foo{bar="baz"} / flip{flop="flap"}`, []string{`{bar="baz", __name__="...
explode_data.jsonl/3397
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 366 }
[ 2830, 3393, 28959, 96995, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 48179, 1235, 341, 197, 22427, 262, 914, 198, 197, 42400, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 197, 1, 7975, 756, 298, 197, 1294, 917, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateBaseKubernetesApiUrl(t *testing.T) { t.Run("Generates correct URL when all elements are present", func(t *testing.T) { schemeHostAndPort := "gopher://some-server.example.com:661" url, err := generateBaseKubernetesApiUrl(schemeHostAndPort) if err != nil { t.Fatalf("Unexpected error starting p...
explode_data.jsonl/18880
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 326 }
[ 2830, 3393, 31115, 3978, 42, 29827, 6563, 2864, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5531, 973, 4396, 5548, 979, 678, 5424, 525, 3042, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1903, 8058, 9296, 3036, 7084, 1669, 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, 1, 1, 1, 1, 1, 1...
3
func TestPostUnmarshalWindowsCanonicalPaths(t *testing.T) { // Testing type conversions, bleh. At least the type conversion itself // doesn't look this messy. taskFromAcs := ecsacs.Task{ Arn: strptr("myArn"), DesiredStatus: strptr("RUNNING"), Family: strptr("myFamily"), Version: strptr...
explode_data.jsonl/80468
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 739 }
[ 2830, 3393, 4133, 1806, 27121, 13164, 70914, 26901, 1155, 353, 8840, 836, 8, 341, 197, 322, 26768, 943, 48722, 11, 12422, 71, 13, 2411, 3245, 279, 943, 14409, 5086, 198, 197, 322, 3171, 944, 1401, 419, 45846, 624, 49115, 3830, 32, 483...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_VoidPaymentNotification(t *testing.T) { result := MustParseFile("testdata/void_payment_notification.xml") if n, ok := result.(*webhooks.PaymentNotification); !ok { t.Fatalf("unexpected type: %T, result", n) } else if diff := cmp.Diff(n, &webhooks.PaymentNotification{ Type: webhooks.VoidPayment, ...
explode_data.jsonl/76116
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 591 }
[ 2830, 3393, 14463, 2334, 588, 20188, 11196, 1155, 353, 8840, 836, 8, 341, 9559, 1669, 15465, 14463, 1703, 445, 92425, 14, 1004, 26696, 34296, 9028, 1138, 743, 308, 11, 5394, 1669, 1102, 41399, 2911, 38560, 70123, 11196, 1215, 753, 562, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCase5(t *testing.T) { golden := `v=0 o=- 1001 1 IN IP4 192.168.0.221 s=VCP IPC Realtime stream m=video 0 RTP/AVP 105 c=IN IP4 192.168.0.221 a=control:rtsp://192.168.0.221/media/video1/video a=rtpmap:105 H264/90000 a=fmtp:105 profile-level-id=64002a; packetization-mode=1; sprop-parameter-sets=Z2QAKq2EAQwgCGEAQ...
explode_data.jsonl/55601
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 557 }
[ 2830, 30573, 20, 1155, 353, 8840, 836, 8, 341, 3174, 813, 268, 1669, 1565, 85, 28, 15, 198, 78, 10829, 220, 16, 15, 15, 16, 220, 16, 1964, 6790, 19, 220, 16, 24, 17, 13, 16, 21, 23, 13, 15, 13, 17, 17, 16, 198, 82, 28, 53,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSketchSeriesMarshalSplitCompressItemTooBigIsDropped(t *testing.T) { oldSetting := config.Datadog.Get("serializer_max_uncompressed_payload_size") defer config.Datadog.Set("serializer_max_uncompressed_payload_size", oldSetting) config.Datadog.Set("serializer_max_uncompressed_payload_size", 100) sl := make(...
explode_data.jsonl/34962
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 378 }
[ 2830, 3393, 75288, 25544, 55438, 20193, 1092, 1873, 1234, 31246, 15636, 3872, 35, 41716, 1155, 353, 8840, 836, 8, 1476, 61828, 15400, 1669, 2193, 909, 266, 329, 538, 2234, 445, 52718, 6345, 4907, 45703, 32813, 2368, 1138, 16867, 2193, 909...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTeamsService_IsTeamRepoByID_true(t *testing.T) { client, mux, _, teardown := setup() defer teardown() mux.HandleFunc("/organizations/1/team/1/repos/owner/repo", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "GET") wantAcceptHeaders := []string{mediaTypeOrgPermissionRepo} testHeader(...
explode_data.jsonl/4526
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 494 }
[ 2830, 3393, 60669, 1860, 31879, 14597, 25243, 60572, 16082, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 11, 8358, 49304, 1669, 6505, 741, 16867, 49304, 2822, 2109, 2200, 63623, 4283, 69253, 14, 16, 78015, 14, 16, 49505, 14, 8118, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestScaleBounds(t *testing.T) { cases := []struct { name string min string max string reachability ReachabilityType wantMin int32 wantMax int32 }{{ name: "present", min: "1", max: "100", wantMin: 1, wantMax: 100, }, { name: "absent", wa...
explode_data.jsonl/27228
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 766 }
[ 2830, 3393, 6947, 11394, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 25320, 688, 914, 198, 197, 22543, 688, 914, 198, 197, 17200, 610, 2897, 49842, 2897, 929, 198, 197, 50780, 6217,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApkMetadata_pURL(t *testing.T) { tests := []struct { metadata ApkMetadata expected string }{ { metadata: ApkMetadata{ Package: "p", Version: "v", Architecture: "a", }, expected: "pkg:alpine/p@v?arch=a", }, // verify #351 { metadata: ApkMetadata{ Package: ...
explode_data.jsonl/41179
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 809 }
[ 2830, 3393, 10611, 74, 14610, 620, 3144, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 2109, 7603, 5232, 74, 14610, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 515, 298, 2109, 7603, 25, 5232, 74, 14610, 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...
6
func TestDoHashQueuesHash(t *testing.T) { state := makeState() index := state.doHash("foo", 0) testutil.AssertStringEqual(t, "", state.getHash(index), "Hash") testutil.AssertIntsEqual(t, 1, state.getPendingHashCt(), "Pending Count") }
explode_data.jsonl/67658
{ "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, 5404, 6370, 25776, 1137, 6370, 1155, 353, 8840, 836, 8, 341, 24291, 1669, 1281, 1397, 741, 26327, 1669, 1584, 16521, 6370, 445, 7975, 497, 220, 15, 340, 18185, 1314, 11711, 703, 2993, 1155, 11, 7342, 1584, 670, 6370, 7195, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPiecewiseCubic(t *testing.T) { t.Parallel() const ( h = 1e-8 valueTol = 1e-13 derivTol = 1e-6 nPts = 100 ) for i, test := range []struct { xs []float64 f func(float64) float64 df func(float64) float64 }{ { xs: []float64{-1.001, 0.2, 2}, f: func(x float64) float64 { retur...
explode_data.jsonl/44079
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1867 }
[ 2830, 3393, 31209, 4482, 34, 41181, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 4777, 2399, 197, 9598, 286, 284, 220, 16, 68, 12, 23, 198, 197, 16309, 51, 337, 284, 220, 16, 68, 12, 16, 18, 198, 197, 197, 82495, 51, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAddFeedShouldShowErrorMessageWhenFeedIsMissingName(t *testing.T) { expected := command.MissingFeedInformation conf := config.Config{"redis", test.ValidRedisConnection} test.InitializeRedis(conf) actual := Add(conf, common.Feed{"", "https://www.google.com"}) test.AssertFailure(t, expected, actual) }
explode_data.jsonl/75097
{ "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, 2212, 28916, 14996, 7812, 21349, 4498, 28916, 3872, 25080, 675, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 3210, 1321, 13577, 28916, 14873, 198, 67850, 1669, 2193, 10753, 4913, 21748, 497, 1273, 47156, 48137, 4526, 532, 18185, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSendAlertFailureToSendSqsMessage(t *testing.T) { sqsMock := &mockSqs{} sqsClient = sqsMock mockRoundTripper := &mockRoundTripper{} httpClient = &http.Client{Transport: mockRoundTripper} mockRoundTripper.On("RoundTrip", mock.Anything).Return(generateResponse(testRuleResponse, http.StatusOK), nil).Once() ...
explode_data.jsonl/39039
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 196 }
[ 2830, 3393, 11505, 9676, 17507, 80576, 50, 26358, 2052, 1155, 353, 8840, 836, 8, 341, 1903, 26358, 11571, 1669, 609, 16712, 50, 26358, 16094, 1903, 26358, 2959, 284, 18031, 82, 11571, 271, 77333, 27497, 21884, 6922, 1669, 609, 16712, 2749...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsHexAddress(t *testing.T) { tests := []struct { str string exp bool }{ {"0x5aaeb6053f3e94c9b9a09f33669435e7ef1beaed", true}, {"5aaeb6053f3e94c9b9a09f33669435e7ef1beaed", true}, {"0X5aaeb6053f3e94c9b9a09f33669435e7ef1beaed", true}, {"0XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", true}, {"0xAAAAA...
explode_data.jsonl/35494
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 387 }
[ 2830, 3393, 3872, 20335, 4286, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11355, 914, 198, 197, 48558, 1807, 198, 197, 59403, 197, 197, 4913, 15, 87, 20, 5305, 3065, 21, 15, 20, 18, 69, 18, 68, 24, 19, 66, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCollectorWithIngesterNoOptionsStorageType(t *testing.T) { jaeger := &v1.Jaeger{ ObjectMeta: metav1.ObjectMeta{ Name: "my-instance", }, Spec: v1.JaegerSpec{ Strategy: v1.DeploymentStrategyStreaming, Storage: v1.JaegerStorageSpec{ Type: "elasticsearch", Options: v1.NewOptions(map[string]i...
explode_data.jsonl/59532
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 411 }
[ 2830, 3393, 53694, 2354, 25416, 5191, 2753, 3798, 5793, 929, 1155, 353, 8840, 836, 8, 341, 197, 5580, 1878, 1669, 609, 85, 16, 3503, 64, 1878, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 21297, 25, 330, 2408, 73655, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPasswordStoreWithEnvvar(t *testing.T) { myurl, err := url.Parse("https://docker.io") require.NoError(t, err) ps := passwordStore{} creds := base64.StdEncoding.EncodeToString([]byte("me:mypassword")) os.Setenv("NOTARY_AUTH", creds) username, passwd := ps.Basic(myurl) require.Equal(t, "me", username) ...
explode_data.jsonl/77499
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 288 }
[ 2830, 3393, 4876, 6093, 2354, 14359, 947, 1155, 353, 8840, 836, 8, 341, 13624, 1085, 11, 1848, 1669, 2515, 8937, 445, 2428, 1110, 28648, 4245, 1138, 17957, 35699, 1155, 11, 1848, 692, 35009, 1669, 3552, 6093, 31483, 197, 85734, 1669, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEngineProcessor_Submit(t *testing.T) { sendCommandPoolMock := new(task.MockedPool) ctx := context.NewMockDefault() executerMock := executermocks.NewMockExecuter() creator := func(ctx context.T) executer.Executer { return executerMock } sendCommandPoolMock.On("Submit", ctx.Log(), "messageID", mock.Anyth...
explode_data.jsonl/524
{ "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, 4571, 22946, 36359, 1763, 1155, 353, 8840, 836, 8, 341, 32817, 4062, 10551, 11571, 1669, 501, 17483, 24664, 291, 10551, 340, 20985, 1669, 2266, 7121, 11571, 3675, 741, 67328, 27951, 11571, 1669, 23494, 4195, 25183, 7121, 11571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_noCancelCtx_Done(t *testing.T) { type fields struct { parent context.Context } tests := []struct { name string fields fields want <-chan struct{} }{ { name: "pass", fields: fields{ parent: context.Background(), }, want: nil, }, { name: "pass with context canceled", ...
explode_data.jsonl/19436
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 252 }
[ 2830, 3393, 6536, 9269, 23684, 1557, 603, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 24804, 2266, 9328, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 55276, 5043, 198, 197, 50780, 256, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSuccess(t *testing.T) { data := []string{"test one", "test two", "test three", "test four"} response := Success(data) if response.Code != 200 { t.Error("Expected status code to be 200") } if response.Status != StatusSuccess { t.Error("Expected the status to be success") } if response.Message !=...
explode_data.jsonl/71746
{ "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, 7188, 1155, 353, 8840, 836, 8, 1476, 8924, 1669, 3056, 917, 4913, 1944, 825, 497, 330, 1944, 1378, 497, 330, 1944, 2326, 497, 330, 1944, 3040, 63159, 21735, 1669, 13047, 2592, 692, 743, 2033, 20274, 961, 220, 17, 15, 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...
5
func TestGetDaemonEndpointsFromStringInvalid6(t *testing.T) { udpAddr := "127.0.0.2:2001" dAddr := "udp:" + udpAddr // no tcp address present dEndpt, err := GetDaemonEndpointsFromString(dAddr) assert.NotNil(t, err) assert.True(t, strings.Contains(fmt.Sprint(err), addrErr)) assert.Nil(t, dEndpt) }
explode_data.jsonl/49941
{ "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, 1949, 89177, 80786, 44491, 7928, 21, 1155, 353, 8840, 836, 8, 341, 197, 31101, 13986, 1669, 330, 16, 17, 22, 13, 15, 13, 15, 13, 17, 25, 17, 15, 15, 16, 698, 2698, 13986, 1669, 330, 31101, 2974, 488, 49219, 13986, 442,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMsgCommands(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() Client := th.Client team := th.BasicTeam user1 := th.BasicUser user2 := th.BasicUser2 user3 := th.CreateUser() th.LinkUserToTeam(user3, team) Client.Must(Client.CreateDirectChannel(th.BasicUser.Id, user2.Id)) Client.Must(Cli...
explode_data.jsonl/26345
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 720 }
[ 2830, 3393, 6611, 30479, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 71724, 1669, 270, 11716, 198, 197, 9196, 1669, 270, 48868, 14597, 198, 19060, 16, 1669, 270, 48868...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCTEWithDML(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 t1;") tk.MustExec("create table t1(a int);") tk.MustExec("insert into t1 values(2),(3);") tk.MustQuery("with t1 as (select 3...
explode_data.jsonl/65526
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 705 }
[ 2830, 3393, 1162, 36, 2354, 35, 2668, 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, 50463...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMetric(t *testing.T) { var testcases = []struct { name string resources []common.Resource metricType string expectErr error expectMetric common.Metric }{ { name: "ranch has no resource", resources: []common.Resource{}, metricType: "t", expectErr: &ResourceNotFo...
explode_data.jsonl/12950
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1134 }
[ 2830, 3393, 54310, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 23910, 284, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 10202, 2360, 262, 3056, 5464, 20766, 198, 197, 2109, 16340, 929, 256, 914, 198, 197, 24952, 7747, 262, 1465, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestParse_NewAccountNotification(t *testing.T) { result := MustParseFile("testdata/new_account_notification.xml") if n, ok := result.(*webhooks.AccountNotification); !ok { t.Fatalf("unexpected type: %T, result", n) } else if diff := cmp.Diff(n, &webhooks.AccountNotification{ Type: webhooks.NewAccount, Acc...
explode_data.jsonl/76096
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 14463, 39582, 7365, 11196, 1155, 353, 8840, 836, 8, 341, 9559, 1669, 15465, 14463, 1703, 445, 92425, 25376, 13500, 34296, 9028, 1138, 743, 308, 11, 5394, 1669, 1102, 41399, 2911, 38560, 30877, 11196, 1215, 753, 562, 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...
3
func TestNewIncludedWorkflowFromFile_UsesResourcesFromParent(t *testing.T) { parent := New() parent.workflowDir = "./test_data" included, err := parent.NewIncludedWorkflowFromFile("TestNewIncludedWorkflowFromFile_UsesResourcesFromParent.wf.json") if err != nil { t.Fatal(err) } assertEqual(t, parent.Cancel, incl...
explode_data.jsonl/3870
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 364 }
[ 2830, 3393, 3564, 84610, 62768, 43633, 62, 68965, 11277, 3830, 8387, 1155, 353, 8840, 836, 8, 341, 24804, 1669, 1532, 741, 24804, 72774, 6184, 284, 5924, 1944, 1769, 698, 17430, 10181, 11, 1848, 1669, 2681, 7121, 84610, 62768, 43633, 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 TestFloat32(t *testing.T) { testCases := []struct { name string broker CeleryBroker backend CeleryBackend taskName string taskFunc interface{} inA float32 inB float32 expected float32 }{ { name: "float32 addition with redis broker/backend", broker: redisBroker, b...
explode_data.jsonl/77852
{ "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, 5442, 18, 17, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 2233, 45985, 256, 46543, 722, 65545, 198, 197, 197, 20942, 220, 46543, 722, 29699, 198, 197, 49115, 675, 914,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHistogramBucketSlice_Resize(t *testing.T) { es := generateTestHistogramBucketSlice() emptyVal := NewHistogramBucket() emptyVal.InitEmpty() // Test Resize less elements. const resizeSmallLen = 4 expectedEs := make(map[*otlpmetrics.HistogramDataPoint_Bucket]bool, resizeSmallLen) for i := 0; i < resizeSmal...
explode_data.jsonl/19559
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 563 }
[ 2830, 3393, 77210, 36018, 33236, 62, 30561, 1155, 353, 8840, 836, 8, 341, 78966, 1669, 6923, 2271, 77210, 36018, 33236, 741, 197, 3194, 2208, 1669, 1532, 77210, 36018, 741, 197, 3194, 2208, 26849, 3522, 741, 197, 322, 3393, 63343, 2686, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNotificationSuccess(t *testing.T) { toolchainConfig := commonconfig.NewToolchainConfigObjWithReset(t, testconfig.Notifications().DurationBeforeNotificationDeletion("10s")) // given t.Run("will not do anything and return requeue with shorter duration that 10s", func(t *testing.T) { // given ds, _ := moc...
explode_data.jsonl/33133
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 615 }
[ 2830, 3393, 11196, 7188, 1155, 353, 8840, 836, 8, 341, 197, 14172, 8819, 2648, 1669, 4185, 1676, 7121, 7740, 8819, 2648, 5261, 2354, 14828, 1155, 11, 1273, 1676, 15000, 7029, 1005, 12945, 10227, 11196, 1912, 52625, 445, 16, 15, 82, 2807...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntDataPointSlice_CopyTo(t *testing.T) { dest := NewIntDataPointSlice() // Test CopyTo to empty NewIntDataPointSlice().CopyTo(dest) assert.EqualValues(t, NewIntDataPointSlice(), dest) // Test CopyTo larger slice generateTestIntDataPointSlice().CopyTo(dest) assert.EqualValues(t, generateTestIntDataPoint...
explode_data.jsonl/32707
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 161 }
[ 2830, 3393, 1072, 1043, 2609, 33236, 77637, 1249, 1155, 353, 8840, 836, 8, 341, 49616, 1669, 1532, 1072, 1043, 2609, 33236, 741, 197, 322, 3393, 14540, 1249, 311, 4287, 198, 197, 3564, 1072, 1043, 2609, 33236, 1005, 12106, 1249, 27010, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNoAttemptsAllowedError(t *testing.T) { t.Parallel() err := NoAttemptsAllowedError{ MaxAttempts: 0, } assert.Equal(t, "no attempts are allowed with max attempts set to 0", err.Error()) }
explode_data.jsonl/82070
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 2753, 81517, 35382, 1454, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 9859, 1669, 2308, 81517, 35382, 1454, 515, 197, 197, 5974, 81517, 25, 220, 15, 345, 197, 532, 6948, 12808, 1155, 11, 330, 2152, 13553, 525, 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
func TestParserDefaultPlaceholderValues(t *testing.T) { assertMarkerValue(t, "errorContext: `${1:err}`, error: $1", &text{}, &placeholder{}, &text{}, &placeholder{}) parsed := newSnippetParser().parse("errorContext: `${1:err}`, error:$1", false, false) assertMarkerTypes(t, (*parsed)[1], &placeholder{}) assertMarke...
explode_data.jsonl/60281
{ "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, 6570, 3675, 48305, 6227, 1155, 353, 8840, 836, 8, 341, 6948, 20613, 1130, 1155, 11, 330, 841, 1972, 25, 11518, 16, 25, 615, 28350, 1465, 25, 400, 16, 497, 609, 1318, 22655, 609, 12384, 22655, 609, 1318, 22655, 609, 12384, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateMemory(t *testing.T) { tcs := []struct { name string code []byte err error }{ { name: "memory.grow", code: []byte{ operators.I32Const, 3, operators.GrowMemory, 0, operators.Drop, }, err: nil, }, { name: "memory.grow invalid index", code: []byte{ operator...
explode_data.jsonl/16563
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 547 }
[ 2830, 3393, 17926, 10642, 1155, 353, 8840, 836, 8, 341, 3244, 4837, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 43343, 3056, 3782, 198, 197, 9859, 220, 1465, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 17269, 1302, 651,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChannelPullAccessControl(t *testing.T) { t.Parallel() // Scenario: We have 2 organizations in the channel: ORG1, ORG2 // The "acting peer" is from ORG1 and peers "1", "2", "3" are from // the following organizations: // ORG1: "1" // ORG2: "2", "3" // We test 2 cases: // 1) We don't respond for Hello me...
explode_data.jsonl/66317
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1370 }
[ 2830, 3393, 9629, 36068, 6054, 3273, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 322, 58663, 25, 1205, 614, 220, 17, 11104, 304, 279, 5496, 25, 2726, 38, 16, 11, 2726, 38, 17, 198, 197, 322, 576, 330, 34922, 14397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPluginEndorserErrors(t *testing.T) { pluginMapper := &mocks.PluginMapper{} pluginFactory := &mocks.PluginFactory{} plugin := &mocks.Plugin{} plugin.On("Endorse", mock.Anything, mock.Anything) pluginMapper.On("PluginFactoryByName", endorser.PluginName("plugin")).Return(pluginFactory) pluginFactory.On("New...
explode_data.jsonl/1349
{ "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, 11546, 3727, 269, 799, 13877, 1155, 353, 8840, 836, 8, 341, 197, 9138, 10989, 1669, 609, 16712, 82, 64378, 10989, 16094, 197, 9138, 4153, 1669, 609, 16712, 82, 64378, 4153, 16094, 197, 9138, 1669, 609, 16712, 82, 64378, 1609...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInMemory_Debug(t *testing.T) { m := containable.NewInMemory() for i := 0; i < 5; i++ { id := []byte(`eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9`) hashed := sha256.Sum256(strconv.AppendInt(id, int64(i), 10)) assert.NoError(t, m.Set(hashed[:], time.Second*time.Duration(i))) } buf := new(bytes.Buffer) m.Debu...
explode_data.jsonl/42547
{ "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, 641, 10642, 77938, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 6644, 480, 7121, 641, 10642, 741, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 20, 26, 600, 1027, 341, 197, 15710, 1669, 3056, 3782, 5809, 84609, 49039, 38, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDockerCopyToVolume(t *testing.T) { assert := asrt.New(t) err := RemoveVolume(t.Name()) assert.NoError(err) pwd, _ := os.Getwd() err = CopyToVolume(filepath.Join(pwd, "testdata", t.Name()), t.Name(), "", "0") assert.NoError(err) mainContainerID, out, err := RunSimpleContainer("busybox:latest", "", []st...
explode_data.jsonl/41385
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 496 }
[ 2830, 3393, 35, 13659, 12106, 1249, 18902, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 438, 3342, 7121, 1155, 340, 9859, 1669, 10783, 18902, 1155, 2967, 2398, 6948, 35699, 3964, 692, 3223, 6377, 11, 716, 1669, 2643, 2234, 6377, 741, 9859,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBYORevisionPostUpgrade(t *testing.T) { t.Parallel() clients := e2e.Setup(t) names := test.ResourceNames{ Service: byoServiceName, } if _, err := v1test.UpdateServiceRouteSpec(t, clients, names, v1.RouteSpec{ Traffic: []v1.TrafficTarget{{ Tag: "example-tag", RevisionName: byoRevName, ...
explode_data.jsonl/69489
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 187 }
[ 2830, 3393, 19912, 46, 33602, 4133, 43861, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 31869, 1669, 384, 17, 68, 39820, 1155, 340, 93940, 1669, 1273, 20766, 7980, 515, 197, 91619, 25, 553, 78, 1860, 675, 345, 197, 630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDefaultByteBuf_WriteInt16(t *testing.T) { buf := EmptyByteBuf() buf.WriteInt16(math.MaxInt16) assert.EqualValues(t, math.MaxInt16, buf.ReadInt16()) }
explode_data.jsonl/1982
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 65 }
[ 2830, 3393, 3675, 7153, 15064, 31825, 1072, 16, 21, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 22228, 7153, 15064, 741, 26398, 4073, 1072, 16, 21, 37270, 14535, 1072, 16, 21, 340, 6948, 12808, 6227, 1155, 11, 6888, 14535, 1072, 16, 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
func TestBad(t *testing.T) { r := Newc.Reader(bytes.NewReader(badCPIO)) if _, err := r.ReadRecord(); err != io.EOF { t.Errorf("ReadRecord(badCPIO) got %v, want %v", err, io.EOF) } r = Newc.Reader(bytes.NewReader(badMagicCPIO)) if _, err := r.ReadRecord(); err == nil { t.Errorf("Wanted bad magic err, got nil")...
explode_data.jsonl/25089
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 138 }
[ 2830, 3393, 17082, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 66, 47431, 23158, 68587, 1883, 329, 34, 6338, 1171, 743, 8358, 1848, 1669, 435, 6503, 6471, 2129, 1848, 961, 6399, 86492, 341, 197, 3244, 13080, 445, 4418, 6471, 1883, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildsImportError(t *testing.T) { testClient(t, func(e *cli.Engine, i *mocksdk.Interface) { i.On("SystemGet").Return(fxSystem(), nil) i.On("BuildImport", "app1", mock.Anything).Return(nil, fmt.Errorf("err1")) res, err := testExecute(e, "builds import -a app1 -f testdata/build.tgz", nil) require.NoErr...
explode_data.jsonl/65795
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 195 }
[ 2830, 3393, 11066, 82, 11511, 1454, 1155, 353, 8840, 836, 8, 341, 18185, 2959, 1155, 11, 2915, 2026, 353, 19521, 54424, 11, 600, 353, 16712, 51295, 41065, 8, 341, 197, 8230, 8071, 445, 2320, 1949, 1827, 5598, 955, 87, 2320, 1507, 2092...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoveQuitPlayers(t *testing.T) { t.Parallel() g := blackjack.Game{ Players: []*blackjack.Player{ {Action: blackjack.ActionStand}, {Action: blackjack.ActionQuit}, {Action: blackjack.ActionQuit}, }, } g.Players = g.RemoveQuitPlayers() want := 1 got := len(g.Players) if want != got { t...
explode_data.jsonl/5924
{ "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, 13021, 42856, 24257, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 3174, 1669, 57262, 20940, 515, 197, 197, 24257, 25, 29838, 11453, 27134, 23756, 515, 298, 197, 90, 2512, 25, 57262, 11360, 48733, 1583, 298, 197, 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...
2
func TestTaint(t *testing.T) { tests := []struct { description string oldTaints []api.Taint newTaints []api.Taint args []string expectFatal bool expectTaint bool }{ // success cases { description: "taints a node with effect NoSchedule", newTaints: []api.Taint{{ Key: "foo", ...
explode_data.jsonl/23743
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3000 }
[ 2830, 3393, 51, 1641, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 914, 198, 197, 61828, 51, 1641, 82, 256, 3056, 2068, 836, 1641, 198, 197, 8638, 51, 1641, 82, 256, 3056, 2068, 836, 1641, 198, 197, 31215,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUrlParse(t *testing.T) { assert := assert.New(t) // make metric name as receiver metric := escape.Path("instance:cpu_utilization:ratio_avg") + "?" + escape.Query("dc") + "=" + escape.Query("qwe") + "&" + escape.Query("fqdn") + "=" + escape.Query("asd") + "&" + escape.Query("instance") + "=" + escape....
explode_data.jsonl/3478
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 332 }
[ 2830, 3393, 2864, 14463, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 197, 322, 1281, 18266, 829, 438, 13964, 198, 2109, 16340, 1669, 12449, 17474, 445, 4851, 25, 16475, 18974, 2022, 25, 45358, 26631, 899, 3610, 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 TestCustomBuildSkipsLocalDocker(t *testing.T) { f := newIBDFixture(t, k8s.EnvKIND6) defer f.TearDown() sha := digest.Digest("sha256:11cd0eb38bc3ceb958ffb2f9bd70be3fb317ce7d255c8a4c3f4af30e298aa1aab") f.docker.Images["gcr.io/some-project-162817/sancho:tilt-build"] = types.ImageInspect{ID: string(sha)} cb := m...
explode_data.jsonl/38267
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 449 }
[ 2830, 3393, 10268, 11066, 19290, 3077, 7319, 35, 13659, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 3256, 5262, 12735, 1155, 11, 595, 23, 82, 81214, 42, 5245, 21, 340, 16867, 282, 836, 682, 4454, 741, 197, 15247, 1669, 20882, 909, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTests(t *testing.T) { tmpDir, err := ioutil.TempDir("", t.Name()) if err != nil { t.Fatalf("Failed to create directory: %v", err) } if os.Getenv("PRESERVE") == "" { defer os.RemoveAll(tmpDir) } log := base.StderrLog() ts := httptest.NewServer(GitHandler( tmpDir, NewGitProtocol(authorize, nil, t...
explode_data.jsonl/63171
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2586 }
[ 2830, 3393, 18200, 1155, 353, 8840, 836, 8, 341, 20082, 6184, 11, 1848, 1669, 43144, 65009, 6184, 19814, 259, 2967, 2398, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 9408, 311, 1855, 6220, 25, 1018, 85, 497, 1848, 340, 197, 532,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConditions(t *testing.T) { txTime, err := time.Parse(time.RFC3339, "2013-05-03T14:45:00Z") require.NoError(t, err) testCases := []struct { s string conditions []query.Condition }{ {s: "tm.events.type='NewBlock'", conditions: []query.Condition{{Tag: "tm.events.type", Op: query.OpEqual, Opera...
explode_data.jsonl/80926
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 338 }
[ 2830, 3393, 35435, 1155, 353, 8840, 836, 8, 341, 46237, 1462, 11, 1848, 1669, 882, 8937, 9730, 2013, 6754, 18, 18, 18, 24, 11, 330, 17, 15, 16, 18, 12, 15, 20, 12, 15, 18, 51, 16, 19, 25, 19, 20, 25, 15, 15, 57, 1138, 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...
2
func TestGetKubeJWTAuthenticator(t *testing.T) { type want struct { k8sAPIServerURL string caCertPath string jwtPath string } tests := []struct { name string failFirst bool config *rest.Config configErr error want want wantErr bool jwtCalled ...
explode_data.jsonl/53140
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1572 }
[ 2830, 3393, 1949, 42, 3760, 55172, 5087, 61393, 1155, 353, 8840, 836, 8, 341, 13158, 1366, 2036, 341, 197, 16463, 23, 82, 2537, 1637, 2836, 3144, 914, 198, 197, 197, 924, 36934, 1820, 414, 914, 198, 197, 12428, 9306, 1820, 260, 914, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateProject(t *testing.T) { testCases := []struct { label string inp Project expectedError string mockdb *db.MockDB expected Project }{ { label: "Create Project", inp: Project{ MetaData: ProjectMetaData{ Name: "testProject", Description: ...
explode_data.jsonl/20166
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1054 }
[ 2830, 3393, 4021, 7849, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 29277, 260, 914, 198, 197, 17430, 79, 1843, 5787, 198, 197, 42400, 1454, 914, 198, 197, 77333, 1999, 286, 353, 1999, 24664, 3506, 198, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestJsonSamples(t *testing.T) { bidder, buildErr := Builder(openrtb_ext.BidderEpom, config.Adapter{ Endpoint: "https://an.epom.com/ortb"}) if buildErr != nil { t.Fatalf("Builder returned unexpected error %v", buildErr) } adapterstest.RunJSONBidderTest(t, "epomtest", bidder) }
explode_data.jsonl/57716
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 117 }
[ 2830, 3393, 5014, 39571, 1155, 353, 8840, 836, 8, 341, 2233, 307, 1107, 11, 1936, 7747, 1669, 20626, 30981, 3342, 65, 9927, 1785, 307, 1107, 22373, 316, 11, 2193, 34190, 515, 197, 197, 27380, 25, 330, 2428, 1110, 276, 33376, 316, 905,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSuccessfulMount(t *testing.T) { ctx := context.Background() // Set up a temporary directory. dir, err := ioutil.TempDir("", "mount_test") if err != nil { t.Fatal("ioutil.TempDir: %v", err) } defer os.RemoveAll(dir) // Mount. fs := &minimalFS{} mfs, err := fuse.Mount( dir, fuseutil.NewFileSyst...
explode_data.jsonl/28606
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 239 }
[ 2830, 3393, 36374, 16284, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 197, 322, 2573, 705, 264, 13340, 6220, 624, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 16557, 4452, 1138, 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...
2
func TestSubkeyRevocation(t *testing.T) { kring, _ := ReadKeyRing(readerFromHex(revokedSubkeyHex)) // revokedSubkeyHex contains these keys: // pub 1024R/4EF7E4BECCDE97F0 2014-03-25 // sub 1024R/D63636E2B96AE423 2014-03-25 // sub 1024D/DBCE4EE19529437F 2014-03-25 // sub 1024R/677815E371C2FD23 2014-03-25 [...
explode_data.jsonl/14739
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 485 }
[ 2830, 3393, 3136, 792, 36184, 2276, 1155, 353, 8840, 836, 8, 341, 197, 9855, 287, 11, 716, 1669, 4457, 1592, 43466, 21987, 3830, 20335, 5801, 85, 10823, 3136, 792, 20335, 4390, 197, 322, 64346, 3136, 792, 20335, 5610, 1493, 6894, 510, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilterAPIOutput(t *testing.T) { state0 := SetupSim("LLLLLAAF", map[string]string{}, 25, 1, 1, t) RunCmd("1") RunCmd("w") RunCmd("s") apiRegex := "EOM.*5.*minute +1" // It has two spaces. SetOutputFilter(apiRegex) WaitBlocks(state0, 5) // The message-filter call we did above should have caused an e...
explode_data.jsonl/390
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 433 }
[ 2830, 3393, 5632, 7082, 5097, 1155, 353, 8840, 836, 8, 1476, 24291, 15, 1669, 18626, 14027, 445, 49356, 43, 71038, 497, 2415, 14032, 30953, 22655, 220, 17, 20, 11, 220, 16, 11, 220, 16, 11, 259, 692, 85952, 15613, 445, 16, 1138, 859...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRawPrepare(t *testing.T) { var ( result sql.Result err error pre RawPreparer ) switch { case IsMysql || IsSqlite: pre, err = dORM.Raw("INSERT INTO tag (name) VALUES (?)").Prepare() assert.Nil(t, err) if pre != nil { result, err = pre.Exec("name1") assert.Nil(t, err) tid, err :=...
explode_data.jsonl/18151
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 762 }
[ 2830, 3393, 20015, 50590, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 9559, 5704, 18456, 198, 197, 9859, 262, 1465, 198, 197, 40346, 262, 23022, 4703, 61119, 198, 197, 340, 8961, 341, 2722, 2160, 44, 14869, 1369, 2160, 8269, 632, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResource_Retrieve(t *testing.T) { type fields struct { session session.ServiceFormatter } type args struct { haltOnError bool requesters []Subrequester } tests := []struct { name string fields fields args args want Value wantErr bool }{ { name: "success", fields: fields...
explode_data.jsonl/19628
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1984 }
[ 2830, 3393, 4783, 2568, 295, 45004, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 25054, 3797, 13860, 14183, 198, 197, 532, 13158, 2827, 2036, 341, 197, 9598, 3145, 74945, 1807, 198, 197, 23555, 388, 220, 3056, 3136, 2035, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCertificateResolver_Configuration(t *testing.T) { t.Run("should return configuration", func(t *testing.T) { // given authenticator := &authenticationMocks.Authenticator{} authenticator.On("Authenticate", context.Background()).Return(clientId, nil) tokenService := &tokensMocks.Service{} tokenService...
explode_data.jsonl/39523
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 909 }
[ 2830, 3393, 33202, 18190, 35412, 2017, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 5445, 470, 6546, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 322, 2661, 198, 197, 78011, 61393, 1669, 609, 45890, 72577, 25233, 61393, 16094,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCatalog_RegisterService_SkipNodeUpdate(t *testing.T) { t.Parallel() dir1, s1 := testServer(t) defer os.RemoveAll(dir1) defer s1.Shutdown() codec := rpcClient(t, s1) defer codec.Close() // Register a node arg := structs.RegisterRequest{ Datacenter: "dc1", Node: "foo", Address: "127.0.0.1...
explode_data.jsonl/49207
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 399 }
[ 2830, 3393, 41606, 73124, 1860, 1098, 13389, 1955, 4289, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 48532, 16, 11, 274, 16, 1669, 1273, 5475, 1155, 340, 16867, 2643, 84427, 14161, 16, 340, 16867, 274, 16, 10849, 18452, 741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestNewService(t *testing.T) { g := NewGomegaWithT(t) scheme := runtime.NewScheme() _ = clusterv1.AddToScheme(scheme) _ = infrav1.AddToScheme(scheme) _ = infrav1exp.AddToScheme(scheme) cluster := &clusterv1.Cluster{ ObjectMeta: metav1.ObjectMeta{Name: "test-cluster"}, } client := fake.NewClientBuilder()...
explode_data.jsonl/78240
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 552 }
[ 2830, 3393, 3564, 1860, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 38, 32696, 2354, 51, 1155, 340, 1903, 8058, 1669, 15592, 7121, 28906, 741, 197, 62, 284, 1185, 590, 648, 16, 1904, 1249, 28906, 1141, 8058, 340, 197, 62, 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...
1
func TestParseWithFormattingDisabled(t *testing.T) { DisableFormatting() defer EnableFormatting() output, err := Parse("plain <red>red <bold>bold red</bold></red> plain <green>green</green> plain") require.Nil(t, err) assert.Equal(t, "plain red bold red plain green plain", output) }
explode_data.jsonl/27688
{ "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, 14463, 2354, 82135, 25907, 1155, 353, 8840, 836, 8, 341, 197, 25479, 82135, 741, 16867, 18567, 82135, 741, 21170, 11, 1848, 1669, 14775, 445, 20772, 366, 1151, 29, 1151, 366, 14824, 29, 14824, 2518, 522, 14824, 1472, 1151, 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 TestClient(t *testing.T) { server := &conn.PlainServer{ Host: "127.0.0.1", Port: 8899, } conn.InitServerSettings(server, 1000, time.Second*5) cache := list.New() // TODO bug fix error: connection pool is full for i := 0; i < 10000000; i++ { if i > 0 && i%500 == 0 { gox.WalkList(cache, func(item in...
explode_data.jsonl/60006
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 577 }
[ 2830, 3393, 2959, 1155, 353, 8840, 836, 8, 341, 41057, 1669, 609, 5148, 21368, 466, 5475, 515, 197, 197, 9296, 25, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 756, 197, 98459, 25, 220, 23, 23, 24, 24, 345, 197, 532, 32917, 26849, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContextFormFile(t *testing.T) { e := New() buf := new(bytes.Buffer) mr := multipart.NewWriter(buf) w, err := mr.CreateFormFile("file", "test") if assert.NoError(t, err) { w.Write([]byte("test")) } mr.Close() req := test.NewRequest(POST, "/", buf) req.Header().Set(HeaderContentType, mr.FormDataConten...
explode_data.jsonl/35875
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 200 }
[ 2830, 3393, 1972, 1838, 1703, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 1532, 741, 26398, 1669, 501, 23158, 22622, 340, 2109, 81, 1669, 68058, 7121, 6492, 10731, 340, 6692, 11, 1848, 1669, 17317, 7251, 1838, 1703, 445, 1192, 497, 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, 1, 1, 1, 1, 1, 1...
3
func TestExample(t *testing.T) { bd := ` { "servers": [ {"id": "s1", "name": "app", "protocols": ["https", "ssh"], "ports": ["p1", "p2", "p3"]}, {"id": "s2", "name": "db", "protocols": ["mysql"], "ports": ["p3"]}, {"id": "s3", "name": "cache", "proto...
explode_data.jsonl/25227
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1134 }
[ 2830, 3393, 13314, 1155, 353, 8840, 836, 8, 1476, 2233, 67, 1669, 22074, 286, 341, 310, 330, 67696, 788, 2278, 394, 5212, 307, 788, 330, 82, 16, 497, 330, 606, 788, 330, 676, 497, 330, 85412, 788, 4383, 2428, 497, 330, 25537, 7914, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultiDefineBool(t *testing.T) { for _, ctName := range []string{ "charB1", "charB1Null", "charC1", "charC1Null", } { gen := _T_boolGen[ctName+"_true"] if gen == nil { continue } t.Run(ctName, func(t *testing.T) { t.Parallel() testMultiDefine( gen(), _T_colType[ctName], t, ...
explode_data.jsonl/48072
{ "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, 20358, 35338, 11233, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 20251, 675, 1669, 2088, 3056, 917, 515, 197, 197, 1, 1762, 33, 16, 497, 330, 1762, 33, 16, 3280, 756, 197, 197, 1, 1762, 34, 16, 497, 330, 1762, 34, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMemRespDisclosurePol(t *testing.T) { pol := func(remotePeer *NetworkMember) (Sieve, EnvelopeFilter) { return func(_ *protoext.SignedGossipMessage) bool { return remotePeer.Endpoint != "localhost:7879" }, func(m *protoext.SignedGossipMessage) *proto.Envelope { return m.Envelope } } wasMember...
explode_data.jsonl/62275
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 399 }
[ 2830, 3393, 18816, 36555, 91065, 14658, 1155, 353, 8840, 836, 8, 341, 3223, 337, 1669, 2915, 61381, 30888, 353, 12320, 9366, 8, 320, 50, 19155, 11, 2925, 18853, 5632, 8, 341, 197, 853, 2915, 2490, 353, 15110, 427, 808, 1542, 38, 41473...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateConfigForDCAAPICandles(t *testing.T) { cfg := Config{ Nickname: "ExampleStrategyDCAAPICandles", Goal: "To demonstrate DCA strategy using API candles", StrategySettings: StrategySettings{ Name: dca, }, CurrencySettings: []CurrencySettings{ { ExchangeName: testExchange, ...
explode_data.jsonl/58405
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 688 }
[ 2830, 3393, 31115, 2648, 2461, 35, 5049, 2537, 1317, 20125, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 5532, 515, 197, 18317, 41052, 25, 330, 13314, 19816, 35, 5049, 2537, 1317, 20125, 756, 197, 9600, 78, 278, 25, 257, 330, 1249, 1986...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChargesBad(t *testing.T) { _, err := client.Charge(&Charge{ Amount: "123000000", Description: "a test invoice", InternalID: "testb", }) if err == nil { t.Errorf(".Charge() should have returned an error") } if err.Error() != "The maximum Charge amount supported is 45,000 satoshis." { t.Erro...
explode_data.jsonl/42387
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 1143, 58240, 17082, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 2943, 6353, 2744, 2099, 55363, 515, 197, 197, 10093, 25, 414, 330, 16, 17, 18, 15, 15, 15, 15, 15, 15, 756, 197, 47414, 25, 330, 64, 1273, 24615,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTooManyChannelsOnCreateSub(t *testing.T) { sOpts := GetDefaultOptions() sOpts.ID = clusterName sOpts.MaxChannels = 1 s := runServerWithOpts(t, sOpts, nil) defer s.Shutdown() sc := NewDefaultConnection(t) defer sc.Close() // That should create channel foo if _, err := sc.Subscribe("foo", func(_ *stan...
explode_data.jsonl/23089
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 211 }
[ 2830, 3393, 31246, 8441, 35925, 1925, 4021, 3136, 1155, 353, 8840, 836, 8, 341, 1903, 43451, 1669, 2126, 3675, 3798, 741, 1903, 43451, 9910, 284, 10652, 675, 198, 1903, 43451, 14535, 35925, 284, 220, 16, 198, 1903, 1669, 1598, 5475, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestServiceManagerOverridesStepSuccess(t *testing.T) { ts := SMOverrideTestSuite{} tests := map[string]struct { requestParams internal.ProvisioningParameters overrideParams servicemanager.Config expCredentialsValues []*gqlschema.ConfigEntryInput }{ "always apply override for Service Manage...
explode_data.jsonl/12552
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1251 }
[ 2830, 3393, 1860, 2043, 80010, 8304, 7188, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 13716, 2177, 2271, 28000, 31483, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 23555, 4870, 286, 5306, 7763, 13013, 287, 9706, 198, 197, 50284, 4870, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapProxy_AddEntryListenerToKeyWithPredicate(t *testing.T) { var wg *sync.WaitGroup = new(sync.WaitGroup) entryAdded := &AddEntry{wg: wg} registrationId, err := mp.AddEntryListenerToKeyWithPredicate(entryAdded, Equal("this", "value1"), "key1", true) AssertEqual(t, err, nil, nil) wg.Add(1) mp.Put("key1", "...
explode_data.jsonl/57035
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 2227, 16219, 21346, 5874, 2743, 1249, 1592, 2354, 36329, 1155, 353, 8840, 836, 8, 341, 2405, 63581, 353, 12996, 28384, 2808, 284, 501, 97233, 28384, 2808, 340, 48344, 19337, 1669, 609, 2212, 5874, 90, 45540, 25, 63581, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAdmitSuccess(t *testing.T) { // create the annotated namespace and add it to the fake client namespace := admissiontesting.CreateNamespaceForTest() serviceAccount := admissiontesting.CreateSAForTest() serviceAccount.Namespace = namespace.Name tc := clientsetfake.NewSimpleClientset(namespace, serviceAcco...
explode_data.jsonl/25926
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1540 }
[ 2830, 3393, 2589, 1763, 7188, 1155, 353, 8840, 836, 8, 341, 197, 322, 1855, 279, 62851, 4473, 323, 912, 432, 311, 279, 12418, 2943, 198, 56623, 1669, 25293, 8840, 7251, 22699, 2461, 2271, 2822, 52934, 7365, 1669, 25293, 8840, 7251, 7778...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUsesInfo(t *testing.T) { var tests = []struct { src string obj string want string }{ {`package p0; func _() { _ = x }; const x = 42`, `x`, `const p0.x untyped int`}, {`package p1; func _() { _ = x }; const x int = 42`, `x`, `const p1.x int`}, {`package p2; func _() { _ = x }; var x int`, `x`, `...
explode_data.jsonl/55539
{ "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, 68965, 1731, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 41144, 220, 914, 198, 197, 22671, 220, 914, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 90, 63, 1722, 281, 15, 26, 2915, 716, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlockNumber(t *testing.T) { c := GetClient(t) // cannot use big.NewInt to construct json request // TODO: analysis the ethereum's big.NewInt bn, err := c.GetBlockNumber(context.Background()) if err != nil { t.Fatalf("block number not found: %v", err) } t.Logf("latest block number: \n%s", bn) }
explode_data.jsonl/46904
{ "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, 4713, 2833, 1155, 353, 8840, 836, 8, 341, 262, 272, 1669, 2126, 2959, 1155, 340, 197, 322, 4157, 990, 2409, 7121, 1072, 311, 9245, 2951, 1681, 198, 197, 322, 5343, 25, 6358, 279, 84522, 594, 2409, 7121, 1072, 198, 2233, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParsePointIntsFloats(t *testing.T) { pts, err := models.ParsePoints([]byte(`cpu,host=serverA,region=us-east int=10i,float=11.0,float2=12.1 1000000000`)) if err != nil { t.Fatalf(`ParsePoints() failed. got %s`, err) } if exp := 1; len(pts) != exp { t.Errorf("ParsePoint() len mismatch: got %v, exp %v", ...
explode_data.jsonl/16955
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 359 }
[ 2830, 3393, 14463, 2609, 1072, 82, 5442, 82, 1155, 353, 8840, 836, 8, 341, 197, 12754, 11, 1848, 1669, 4119, 8937, 11411, 10556, 3782, 5809, 16475, 11, 3790, 28, 4030, 32, 11, 3943, 28, 355, 39507, 526, 28, 16, 15, 72, 45509, 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...
7
func TestAll(t *testing.T) { if !checkDevHost() { return } cases := []struct { name string in map[string]interface{} expectLoadConfigError error expectWriteError error }{ { name: "required", in: map[string]interface{}{ "id": "influxdb_1", "a...
explode_data.jsonl/42671
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 420 }
[ 2830, 3393, 2403, 1155, 353, 8840, 836, 8, 341, 743, 753, 2028, 14592, 9296, 368, 341, 197, 853, 198, 197, 630, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 1698, 914, 198, 197, 17430, 503, 2415, 14032, 31344, 16094, 197, 24952, 587...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetEC2InstanceIDIIDError(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() ec2MetadataClient := mock_ec2.NewMockEC2MetadataClient(ctrl) agent := &ecsAgent{ec2MetadataClient: ec2MetadataClient} ec2MetadataClient.EXPECT().InstanceID().Return("", errors.New("error")) ec2MetadataClient.EX...
explode_data.jsonl/41592
{ "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, 1949, 7498, 17, 2523, 32272, 915, 1454, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 197, 757, 17, 14610, 2959, 1669, 7860, 36844, 17, 7121, 11571, 7498, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRender(t *testing.T) { mod, err := utilities.ReadModule(".") assert.NoError(t, err) mod.PackagePathFilters = append(mod.PackagePathFilters, "_test") b, err := Render(mod) assert.NoError(t, err) assert.Equal(t, "\n## Install\n\n```bash\ngo get -u github.com/heindl/goethe\n```\n", string(b)) }
explode_data.jsonl/17767
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 125 }
[ 2830, 3393, 6750, 1155, 353, 8840, 836, 8, 1476, 42228, 11, 1848, 1669, 29419, 6503, 3332, 5680, 1138, 6948, 35699, 1155, 11, 1848, 692, 42228, 49834, 1820, 28351, 284, 8737, 23351, 49834, 1820, 28351, 11, 9000, 1944, 5130, 2233, 11, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCheck(t *testing.T) { counter := &metricsfakes.Counter{} counter.WithReturns(counter) m := metrics.Observer{CheckedCounter: counter} entry := zapcore.Entry{Level: zapcore.DebugLevel} checkedEntry := &zapcore.CheckedEntry{} m.Check(entry, checkedEntry) assert.Equal(t, 1, counter.WithCallCount()) asser...
explode_data.jsonl/1359
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 178 }
[ 2830, 3393, 3973, 1155, 353, 8840, 836, 8, 341, 58261, 1669, 609, 43262, 69, 2050, 86291, 16094, 58261, 26124, 16446, 41320, 692, 2109, 1669, 16734, 85721, 90, 12666, 14099, 25, 5546, 532, 48344, 1669, 32978, 2153, 22330, 90, 4449, 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 TestMultipleRDN(t *testing.T) { block, _ := pem.Decode([]byte(certMultipleRDN)) cert, err := ParseCertificate(block.Bytes) if err != nil { t.Fatalf("certificate with two elements in an RDN failed to parse: %v", err) } if want := "eportal.mss.edus.si"; cert.Subject.CommonName != want { t.Errorf("got commo...
explode_data.jsonl/68013
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 197 }
[ 2830, 3393, 32089, 49, 31264, 1155, 353, 8840, 836, 8, 341, 47996, 11, 716, 1669, 54184, 56372, 10556, 3782, 87793, 32089, 49, 31264, 1171, 1444, 529, 11, 1848, 1669, 14775, 33202, 18682, 36868, 340, 743, 1848, 961, 2092, 341, 197, 3244...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestAnonymityPrincipal(t *testing.T) { msp1, err := setup("testdata/idemix/MSP1OU1", "MSP1OU1") assert.NoError(t, err) id1, err := getDefaultSigner(msp1) assert.NoError(t, err) principalBytes, err := proto.Marshal(&msp.MSPIdentityAnonymity{AnonymityType: msp.MSPIdentityAnonymity_ANONYMOUS}) assert.NoError(...
explode_data.jsonl/46038
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 2082, 7831, 487, 31771, 1155, 353, 8840, 836, 8, 341, 47691, 79, 16, 11, 1848, 1669, 6505, 445, 92425, 38146, 336, 941, 10270, 4592, 16, 11922, 16, 497, 330, 44, 4592, 16, 11922, 16, 1138, 6948, 35699, 1155, 11, 1848, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestQueryCancellation(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) json.NewEncoder(w).Encode(&stmtResponse{ Error: stmtError{ ErrorName: "USER_CANCELLED", }, }) })) defer ts.Close() db, err := sql.Open("pre...
explode_data.jsonl/62440
{ "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, 2859, 82298, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6692, 69794, 19886, 52989, 340, 197, 30847, 7121, 19921, 3622, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGenerateDSNSupportsOldPasswords(t *testing.T) { os.Args = []string{ "cmd", "-hostname=dbhost", "-username=dbuser", "-password=dbpwd", "-port=1234", "-old_passwords", } _, err := integration.New(integrationName, integrationVersion, integration.Args(&args)) fatalIfErr(err) assert.Equal(t, "dbus...
explode_data.jsonl/13421
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 31115, 5936, 2448, 2800, 82, 18284, 84546, 1155, 353, 8840, 836, 8, 341, 25078, 51015, 284, 3056, 917, 515, 197, 197, 1, 8710, 756, 197, 197, 34294, 27806, 57752, 3790, 756, 197, 197, 34294, 5113, 57752, 872, 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 TestUnmarshaller(t *testing.T) { u := unmarshaller{&testdataClient{}} list, err := u.jobsList(25, 0) require.NoError(t, err) assert.Equal(t, 2, len(list.Jobs)) activeRuns, err := u.activeJobRuns(25, 0) require.NoError(t, err) assert.Equal(t, 2, len(activeRuns.Runs)) completedRuns, err := u.completedJobRuns...
explode_data.jsonl/22270
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 188 }
[ 2830, 3393, 87690, 1155, 353, 8840, 836, 8, 341, 10676, 1669, 650, 52541, 90, 5, 92425, 2959, 6257, 532, 14440, 11, 1848, 1669, 575, 73436, 852, 7, 17, 20, 11, 220, 15, 340, 17957, 35699, 1155, 11, 1848, 340, 6948, 12808, 1155, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCallingQuitMultipleTimesShouldNotBlock(t *testing.T) { worker := work.NewWorker(1, func(p work.Payload) interface{} { return fmt.Sprintf("%s.", p.Data) }, true) worker.Quit() worker.Quit() }
explode_data.jsonl/11916
{ "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, 48853, 42856, 32089, 18889, 14996, 2623, 4713, 1155, 353, 8840, 836, 8, 341, 197, 21462, 1669, 975, 7121, 21936, 7, 16, 11, 2915, 1295, 975, 86432, 8, 3749, 6257, 341, 197, 853, 8879, 17305, 4430, 82, 10465, 281, 3336, 340...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestParseAlterStatementRenameTable(t *testing.T) { { parser := NewAlterTableParser() statement := "drop column b" err := parser.ParseAlterStatement(statement) test.S(t).ExpectNil(err) test.S(t).ExpectFalse(parser.isRenameTable) } { parser := NewAlterTableParser() statement := "rename as something...
explode_data.jsonl/71266
{ "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, 14463, 74290, 8636, 88757, 2556, 1155, 353, 8840, 836, 8, 1476, 197, 515, 197, 55804, 1669, 1532, 74290, 2556, 6570, 741, 197, 89566, 1669, 330, 6719, 3250, 293, 698, 197, 9859, 1669, 6729, 8937, 74290, 8636, 60971, 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 TestInsertOffers(t *testing.T) { tt := test.Start(t) defer tt.Finish() test.ResetHorizonDB(t, tt.HorizonDB) q := &Q{tt.HorizonSession()} err := insertOffer(q, eurOffer) tt.Assert.NoError(err) err = insertOffer(q, twoEurOffer) tt.Assert.NoError(err) offers, err := q.GetAllOffers() tt.Assert.NoError(err)...
explode_data.jsonl/69696
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 492 }
[ 2830, 3393, 13780, 95509, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 1273, 12101, 1155, 340, 16867, 17853, 991, 18176, 741, 18185, 36660, 39601, 16973, 3506, 1155, 11, 17853, 3839, 269, 16973, 3506, 340, 18534, 1669, 609, 48, 90, 556...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExpandUserCurrentUser(t *testing.T) { path, err := ExpandUser("~/rest/of/path") expected := os.Getenv("HOME") + "/rest/of/path" assert.NilError(t, err) assert.Equal(t, expected, path) }
explode_data.jsonl/34412
{ "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, 38946, 1474, 78257, 1155, 353, 8840, 836, 8, 341, 26781, 11, 1848, 1669, 50141, 1474, 50919, 3927, 96745, 50976, 1138, 42400, 1669, 2643, 64883, 445, 27546, 899, 488, 3521, 3927, 96745, 50976, 1837, 6948, 59678, 1454, 1155, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestNewClient(t *testing.T) { const ( testAccessKey = "access granted" testSecretKey = "this is very secret" testHost = "certainly.a.unique.host" testUserAgent = "certainly.a.unique.userAgent" ) client := NewClient(ClientConfiguration{ AccessKey: testAccessKey, SecretKey: testSecretKey, Host...
explode_data.jsonl/74264
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 229 }
[ 2830, 3393, 3564, 2959, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 18185, 6054, 1592, 284, 330, 5211, 11676, 698, 197, 18185, 19773, 1592, 284, 330, 574, 374, 1602, 6234, 698, 197, 18185, 9296, 414, 284, 330, 66, 7615, 398, 5849, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReplaceRegexp_ReplacesMatchesWithSpecifiedText(t *testing.T) { t.Parallel() input := "hello world" tcs := []struct { regex, replace, want string }{ { regex: "hel+o", replace: "bye", want: "bye world\n", }, { regex: "Does not .* in input", replace: "Will not appear in output", ...
explode_data.jsonl/51497
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 383 }
[ 2830, 3393, 23107, 3477, 4580, 50693, 26078, 42470, 2354, 8327, 1870, 1178, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 22427, 1669, 330, 14990, 1879, 698, 3244, 4837, 1669, 3056, 1235, 341, 197, 197, 26387, 11, 8290, 11, 1366...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFacetRegex(t *testing.T) { // This is a possible solution for auto-complete out, _ := Search("github").Size("0").Facet( Facet().Regex("repository.name", "no.*").Size("8"), ).Result() if out == nil || &out.Hits == nil { t.Fail() return } //Debug(string(out.Facets)) fh := gou.NewJsonHelper([]byte(o...
explode_data.jsonl/73256
{ "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, 28702, 295, 32464, 1155, 353, 8840, 836, 8, 1476, 197, 322, 1096, 374, 264, 3204, 6291, 369, 3233, 74414, 198, 13967, 11, 716, 1669, 7542, 445, 5204, 1827, 1695, 445, 15, 1827, 28702, 295, 1006, 197, 12727, 67223, 1005, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestInterpretStringAccess(t *testing.T) { t.Parallel() inter := parseCheckAndInterpret(t, ` fun test(): Type { let c: Character = "x"[0] return c.getType() } `) result, err := inter.Invoke("test") require.NoError(t, err) require.Equal(t, interpreter.TypeValue{Type: interpret...
explode_data.jsonl/73420
{ "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, 3306, 8043, 703, 6054, 1155, 353, 8840, 836, 8, 1476, 3244, 41288, 7957, 2822, 58915, 1669, 4715, 3973, 3036, 3306, 8043, 1155, 11, 22074, 262, 2464, 1273, 4555, 3990, 341, 286, 1077, 272, 25, 15633, 284, 330, 87, 36864, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDate(t *testing.T) { t.Parallel() ctx := NewIsolate().NewContext() res, err := ctx.Eval(`new Date("2018-05-08T08:16:46.918Z")`, "date.js") if err != nil { t.Fatal(err) } tm, err := res.Date() if err != nil { t.Error(err) } else if tm.UnixNano() != 1525767406918*1e6 { t.Errorf("Wrong date: %q", ...
explode_data.jsonl/81592
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 1916, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 20985, 1669, 1532, 3872, 33066, 1005, 3564, 1972, 2822, 10202, 11, 1848, 1669, 5635, 5142, 831, 5809, 931, 2631, 445, 17, 15, 16, 23, 12, 15, 20, 12, 15, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestBadRequestBody_2(t *testing.T) { ts := httptest.NewServer(NewHandler()) r := &csr.CertificateRequest{} csrBytes, err := json.Marshal(r) if err != nil { t.Fatal(err) } data := bytes.NewReader(csrBytes) req, _ := http.NewRequest("POST", ts.URL, data) resp, _ := http.DefaultClient.Do(req) if resp.Statu...
explode_data.jsonl/4730
{ "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, 17082, 33334, 62, 17, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 35063, 3050, 2398, 7000, 1669, 609, 77851, 727, 20962, 1900, 16094, 1444, 15094, 7078, 11, 1848, 1669, 2951, 37271, 2601, 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, 1...
3
func TestSaveChainStatus(t *testing.T) { defer os.RemoveAll("temp") testDB := dbm.NewDB("testdb", "leveldb", "temp") store := NewStore(testDB) node := &state.BlockNode{Height: 100, Hash: bc.Hash{V0: 0, V1: 1, V2: 2, V3: 3}} view := &state.UtxoViewpoint{ Entries: map[bc.Hash]*storage.UtxoEntry{ bc.Hash{V0: 1,...
explode_data.jsonl/49976
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 560 }
[ 2830, 3393, 8784, 18837, 2522, 1155, 353, 8840, 836, 8, 341, 16867, 2643, 84427, 445, 3888, 1138, 18185, 3506, 1669, 2927, 76, 7121, 3506, 445, 1944, 1999, 497, 330, 3449, 783, 65, 497, 330, 3888, 1138, 57279, 1669, 1532, 6093, 8623, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMatchError(t *testing.T) { named, err := ParseAnyReference("foo") if err != nil { t.Fatal(err) } _, err = FamiliarMatch("[-x]", named) if err == nil { t.Fatalf("expected an error, got nothing") } }
explode_data.jsonl/8780
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 89 }
[ 2830, 3393, 8331, 1454, 1155, 353, 8840, 836, 8, 341, 9038, 3606, 11, 1848, 1669, 14775, 8610, 8856, 445, 7975, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 197, 6878, 1848, 284, 33601, 9538, 8331, 445, 7609...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKeyValuesAndSizes(t *testing.T) { e, _ := NewRedisExporter( os.Getenv("TEST_REDIS_URI"), Options{Namespace: "test", CheckSingleKeys: dbNumStrFull + "=" + url.QueryEscape(keys[0])}, ) setupDBKeys(t, os.Getenv("TEST_REDIS_URI")) defer deleteKeysFromDB(t, os.Getenv("TEST_REDIS_URI")) chM := make(chan p...
explode_data.jsonl/46986
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 297 }
[ 2830, 3393, 1592, 6227, 3036, 34930, 1155, 353, 8840, 836, 8, 341, 7727, 11, 716, 1669, 1532, 48137, 88025, 1006, 197, 25078, 64883, 445, 10033, 2192, 21202, 23116, 4461, 197, 197, 3798, 90, 22699, 25, 330, 1944, 497, 4248, 10888, 8850,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetLatestSpotPrice(t *testing.T) { t.Parallel() _, err := b.GetLatestSpotPrice(context.Background(), currency.NewPair(currency.BTC, currency.USDT)) if err != nil { t.Error("Binance GetLatestSpotPrice() error", err) } }
explode_data.jsonl/76651
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 1949, 31992, 47049, 6972, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 6878, 1848, 1669, 293, 2234, 31992, 47049, 6972, 5378, 19047, 1507, 11413, 7121, 12443, 90475, 1785, 7749, 11, 11413, 67672, 10599, 1171, 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 ]
2
func Test_write_float32(t *testing.T) { vals := []float32{0, 1, -1, 99, 0xff, 0xfff, 0xffff, 0xfffff, 0xffffff, 0x4ffffff, 0xfffffff, -0x4ffffff, -0xfffffff, 1.2345, 1.23456, 1.234567, 1.001} for _, val := range vals { t.Run(fmt.Sprintf("%v", val), func(t *testing.T) { stream := jsoniter.NewStream() stream....
explode_data.jsonl/34818
{ "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, 9165, 17586, 18, 17, 1155, 353, 8840, 836, 8, 341, 19302, 82, 1669, 3056, 3649, 18, 17, 90, 15, 11, 220, 16, 11, 481, 16, 11, 220, 24, 24, 11, 220, 15, 9020, 11, 220, 15, 87812, 11, 220, 15, 20518, 11, 220, 15, 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 TestFetchAutoMigsZonal(t *testing.T) { server := NewHttpServerMock() defer server.Close() server.On("handle", "/project1/zones/"+zoneB+"/instanceGroups").Return(listInstanceGroups(zoneB)).Once() server.On("handle", "/project1/zones/"+zoneB+"/instanceGroupManagers/"+gceMigA).Return(getInstanceGroupManagerNamed...
explode_data.jsonl/69004
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 685 }
[ 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 TestNoDigestIfAlarmIsClearedOutOfOrder(t *testing.T) { require.Len(t, runLocalShardTest(t, change(user1, alarm1, wire.StatusCleared, time2), change(user1, alarm1, wire.StatusCritical, time1), send(user1), ), 0) }
explode_data.jsonl/3257
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 92 }
[ 2830, 3393, 2753, 45217, 2679, 43444, 3872, 34, 92333, 31731, 4431, 1155, 353, 8840, 836, 8, 341, 17957, 65819, 1155, 11, 1598, 7319, 2016, 567, 2271, 1155, 345, 197, 68380, 4277, 16, 11, 16624, 16, 11, 9067, 10538, 34, 92333, 11, 882...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNil(t *testing.T) { var err error Handlef("foo: %w", &err) if err != nil { t.Errorf("err == %v, want nil", err) } }
explode_data.jsonl/15635
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 60 }
[ 2830, 3393, 19064, 1155, 353, 8840, 836, 8, 341, 2405, 1848, 1465, 198, 197, 6999, 69, 445, 7975, 25, 1018, 86, 497, 609, 615, 340, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 615, 621, 1018, 85, 11, 1366, 2092, 497, 1848, 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 ]
2
func Test_write_array(t *testing.T) { should := require.New(t) buf := &bytes.Buffer{} stream := jsoner.NewStream(jsoner.Config{IndentionStep: 2}.Froze(), buf, 4096) stream.WriteArrayStart() stream.WriteInt(1) stream.WriteMore() stream.WriteInt(2) stream.WriteArrayEnd() stream.Flush() should.Nil(stream.Error) ...
explode_data.jsonl/57878
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 9165, 3858, 1155, 353, 8840, 836, 8, 341, 197, 5445, 1669, 1373, 7121, 1155, 340, 26398, 1669, 609, 9651, 22622, 16094, 44440, 1669, 2951, 261, 7121, 3027, 9304, 261, 10753, 90, 1425, 2939, 8304, 25, 220, 17, 7810, 37, 299...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1