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 TestPopulateCluster_NonMasqueradeCIDR_Required(t *testing.T) { c := buildMinimalCluster() c.Spec.NonMasqueradeCIDR = "" expectErrorFromPopulateCluster(t, c, "nonMasqueradeCIDR") }
explode_data.jsonl/75041
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 11598, 6334, 28678, 1604, 263, 43649, 15959, 1021, 54146, 49, 62, 8164, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1936, 88328, 28678, 741, 1444, 36473, 30706, 43649, 15959, 1021, 54146, 49, 284, 35829, 24952, 1454, 3830, 11598...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHostRunProcess(t *testing.T) { h, err := NewHost() if err != nil { t.Fatal(err) } defer h.Release() p, err := h.RunProcess(os.Getenv("GOPATH")+"/bin/mn-vmmock", "-name", h.NodeName()) if err != nil { t.Fatal(err) } out, err := RunCommand("ps", "-ax") if err != nil { t.Fatal(err) } if !stri...
explode_data.jsonl/34907
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 254 }
[ 2830, 3393, 9296, 6727, 7423, 1155, 353, 8840, 836, 8, 341, 9598, 11, 1848, 1669, 1532, 9296, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 16867, 305, 58693, 2822, 3223, 11, 1848, 1669, 305, 16708, 7423, 9638...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAutoGzip(t *testing.T) { ts := createGenServer(t) defer ts.Close() c := New() testcases := []struct{ url, want string }{ {ts.URL + "/gzip-test", "This is Gzip response testing"}, {ts.URL + "/gzip-test-gziped-empty-body", ""}, {ts.URL + "/gzip-test-no-gziped-body", ""}, } for _, tc := range testcas...
explode_data.jsonl/39357
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 13253, 38, 9964, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 1855, 9967, 5475, 1155, 340, 16867, 10591, 10421, 2822, 1444, 1669, 1532, 741, 18185, 23910, 1669, 3056, 1235, 90, 2515, 11, 1366, 914, 335, 515, 197, 197, 90, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestLargeUnsplittableRangeReplicate(t *testing.T) { defer leaktest.AfterTest(t)() defer log.Scope(t).Close(t) skip.UnderStress(t, 38565) skip.UnderRaceWithIssue(t, 38565) skip.UnderShort(t, 38565) ctx := context.Background() // Create a cluster with really small ranges. const rangeMaxSize = base.MinRange...
explode_data.jsonl/54894
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1296 }
[ 2830, 3393, 34253, 1806, 69095, 1442, 480, 6046, 18327, 48795, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 16867, 1487, 77940, 1155, 568, 7925, 1155, 692, 1903, 13389, 5255, 900, 623, 673, 1155, 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...
1
func Test_IntStrMap_Basic(t *testing.T) { gtest.Case(t, func() { m := gmap.NewIntStrMap() m.Set(1, "a") gtest.Assert(m.Get(1), "a") gtest.Assert(m.Size(), 1) gtest.Assert(m.IsEmpty(), false) gtest.Assert(m.GetOrSet(2, "b"), "b") gtest.Assert(m.SetIfNotExist(2, "b"), false) gtest.Assert(m.SetIfNotExi...
explode_data.jsonl/7639
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 515 }
[ 2830, 3393, 32054, 2580, 2227, 1668, 5971, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 519, 1155, 11, 2915, 368, 341, 197, 2109, 1669, 342, 2186, 7121, 1072, 2580, 2227, 741, 197, 2109, 4202, 7, 16, 11, 330, 64, 5130, 197, 3174, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTableNormal(t *testing.T) { assert.Nil(t, NewTable().Header([]string{"Header1", "Header2"}). Data([][]string{{"D1-1", "D1-2"}, {"D2-1", "D2-2"}}). Flush()) }
explode_data.jsonl/69432
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 2556, 12206, 1155, 353, 8840, 836, 8, 341, 6948, 59678, 1155, 11, 1532, 2556, 1005, 4047, 10556, 917, 4913, 4047, 16, 497, 330, 4047, 17, 9207, 4292, 197, 40927, 10556, 1294, 917, 2979, 1, 35, 16, 12, 16, 497, 330, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHPADCEdges(t *testing.T) { hpa := &autoscaling.HorizontalPodAutoscaler{} hpa.Namespace = "test-ns" hpa.Name = "test-hpa" hpa.Spec = autoscaling.HorizontalPodAutoscalerSpec{ ScaleTargetRef: autoscaling.CrossVersionObjectReference{ Name: "test-dc", Kind: "DeploymentConfig", APIVersion:...
explode_data.jsonl/53630
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 380 }
[ 2830, 3393, 6610, 1808, 2104, 67, 4188, 1155, 353, 8840, 836, 8, 341, 9598, 6595, 1669, 609, 79301, 81552, 39543, 23527, 19602, 436, 63084, 16094, 9598, 6595, 46011, 284, 330, 1944, 12, 4412, 698, 9598, 6595, 2967, 284, 330, 1944, 2832,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShouldDisableComponents(t *testing.T) { t.Run("When creating ProvisionRuntimeInput", func(t *testing.T) { // given pp := fixProvisioningParameters(broker.AzurePlanID, "") optionalComponentsDisablers := runtime.ComponentsDisablers{} componentsProvider := &automock.ComponentListProvider{} componentsP...
explode_data.jsonl/69383
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 881 }
[ 2830, 3393, 14996, 25479, 10443, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4498, 6825, 71573, 15123, 2505, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 322, 2661, 198, 197, 65729, 1669, 5046, 1336, 13013, 287, 9706, 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...
1
func TestOpenIdCodeFlowShouldRejectMissingAuthorizationCode(t *testing.T) { clockTime := time.Date(2021, 12, 1, 0, 0, 0, 0, time.UTC) util.Clock = util.ClockMock{Time: clockTime} cfg := config.NewConfig() cfg.Server.WebRoot = "/kiali-test" cfg.LoginToken.SigningKey = "kiali67890123456" cfg.LoginToken.ExpirationS...
explode_data.jsonl/72710
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 508 }
[ 2830, 3393, 5002, 764, 2078, 18878, 14996, 78413, 25080, 18124, 2078, 1155, 353, 8840, 836, 8, 341, 84165, 1462, 1669, 882, 8518, 7, 17, 15, 17, 16, 11, 220, 16, 17, 11, 220, 16, 11, 220, 15, 11, 220, 15, 11, 220, 15, 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...
1
func TestValidateIfBlock(t *testing.T) { tcs := []struct { name string code []byte err error }{ { name: "if nominal", // (i32.const 0) (if (nop) code: []byte{ operators.I32Const, 0, operators.If, byte(wasm.BlockTypeEmpty), operators.Nop, operators.End, }, err: nil, }, { ...
explode_data.jsonl/16567
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2240 }
[ 2830, 3393, 17926, 2679, 4713, 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, 333, 46755, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRouteMatchDoesNotWork(t *testing.T) { defaultRoutes, err := ParseRoutes(DefaultRoutes) assert.NoError(t, err) assert.Len(t, defaultRoutes, 3) allWarningRoute := defaultRoutes[0] resolvedCheck := checks.AppCheck{ CheckName: "check-name", Result: checks.Resolved, } resolvedCheckMatch := allWarning...
explode_data.jsonl/42339
{ "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, 4899, 8331, 21468, 2623, 6776, 1155, 353, 8840, 836, 8, 341, 11940, 26653, 11, 1848, 1669, 14775, 26653, 87874, 26653, 340, 6948, 35699, 1155, 11, 1848, 340, 6948, 65819, 1155, 11, 1638, 26653, 11, 220, 18, 692, 50960, 12087...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVolumeClaimAPINotImplemented(t *testing.T) { yaml := ` kind: PersistentVolumeClaim apiVersion: v2222 metadata: name: my-volumeclaim spec: accessModes: - ReadWriteOnce resources: requests: storage: 360Gi` _, err := decodeVolumeClaim([]byte(yaml), CostimatorConfig{}) if ...
explode_data.jsonl/54607
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 184 }
[ 2830, 3393, 18902, 45544, 2537, 687, 354, 18300, 1155, 353, 8840, 836, 8, 341, 14522, 9467, 1669, 22074, 220, 3093, 25, 66544, 18902, 45544, 198, 220, 6330, 5637, 25, 348, 17, 17, 17, 17, 198, 220, 11160, 510, 262, 829, 25, 847, 667...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServer_Rejects_Priority0(t *testing.T) { testServerRejectsConn(t, func(st *serverTester) { st.fr.AllowIllegalWrites = true st.writePriority(0, PriorityParam{StreamDep: 1}) }) }
explode_data.jsonl/71657
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 77 }
[ 2830, 3393, 5475, 50693, 583, 82, 1088, 8773, 15, 1155, 353, 8840, 836, 8, 341, 18185, 5475, 78413, 82, 9701, 1155, 11, 2915, 5895, 353, 4030, 58699, 8, 341, 197, 18388, 18798, 29081, 33713, 93638, 284, 830, 198, 197, 18388, 3836, 205...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEncodedValueMaxLines(t *testing.T) { assert := assert.New(t) vrw := newTestValueStore() l1 := NewList(vrw, generateNumbersAsValues(11)...) expected := strings.Join(strings.SplitAfterN(EncodedValue(l1), "\n", 6)[:5], "") assert.Equal(expected, EncodedValueMaxLines(l1, 5)) buf := bytes.Buffer{} WriteEnc...
explode_data.jsonl/60909
{ "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, 46795, 1130, 5974, 16794, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 5195, 31768, 1669, 501, 2271, 1130, 6093, 2822, 8810, 16, 1669, 1532, 852, 3747, 31768, 11, 6923, 27237, 2121, 6227, 7, 16, 16, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTraceExporter_NilPushTraceData(t *testing.T) { te, err := NewTraceExporter(fakeTraceExporterConfig, zap.NewNop(), nil) require.Nil(t, te) require.Equal(t, errNilPushTraceData, err) }
explode_data.jsonl/70307
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 81 }
[ 2830, 3393, 6550, 88025, 1604, 321, 16644, 6550, 1043, 1155, 353, 8840, 836, 8, 341, 197, 665, 11, 1848, 1669, 1532, 6550, 88025, 74138, 6550, 88025, 2648, 11, 32978, 7121, 45, 453, 1507, 2092, 340, 17957, 59678, 1155, 11, 1013, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func Test_renderApiErrors(t *testing.T) { ctx := newContext("HEAD") assert.Error(t, renderApiErrors(ctx, nil)) assert.NoError(t, renderApiErrors(ctx, &jsonapi.ErrorObject{ID: "ok", Status: "404", Code: "hey"})) }
explode_data.jsonl/47347
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 85 }
[ 2830, 3393, 22781, 6563, 13877, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 501, 1972, 445, 35433, 1138, 6948, 6141, 1155, 11, 3141, 6563, 13877, 7502, 11, 2092, 4390, 6948, 35699, 1155, 11, 3141, 6563, 13877, 7502, 11, 609, 2236, 2068, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConsumeLimitedBy2st(t *testing.T) { // Given rates := NewRateSet() require.NoError(t, rates.Add(10*time.Second, 10, 10)) require.NoError(t, rates.Add(100*time.Second, 20, 20)) clock := testutils.GetClock() tbs := NewTokenBucketSet(rates, clock) _, err := tbs.Consume(10) require.NoError(t, err) clo...
explode_data.jsonl/25392
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 313 }
[ 2830, 3393, 1109, 31323, 74477, 1359, 17, 267, 1155, 353, 8840, 836, 8, 341, 197, 322, 16246, 198, 7000, 973, 1669, 1532, 11564, 1649, 741, 17957, 35699, 1155, 11, 7813, 1904, 7, 16, 15, 77053, 32435, 11, 220, 16, 15, 11, 220, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEtcdGetPodNotFound(t *testing.T) { ctx := api.NewDefaultContext() fakeClient := tools.NewFakeEtcdClient(t) key, _ := makePodKey(ctx, "foo") fakeClient.Data[key] = tools.EtcdResponseWithError{ R: &etcd.Response{ Node: nil, }, E: tools.EtcdErrorNotFound, } registry := NewTestEtcdRegistry(fakeClien...
explode_data.jsonl/8139
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 186 }
[ 2830, 3393, 31860, 4385, 1949, 23527, 10372, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 6330, 7121, 3675, 1972, 741, 1166, 726, 2959, 1669, 7375, 7121, 52317, 31860, 4385, 2959, 1155, 340, 23634, 11, 716, 1669, 1281, 23527, 1592, 7502, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInterceptorTemporaryTableInfoByID(t *testing.T) { is := newMockedInfoSchema(t). AddTable(model.TempTableNone, 1, 5). AddTable(model.TempTableGlobal, 2, 6). AddTable(model.TempTableLocal, 3, 7) interceptor := NewTemporaryTableSnapshotInterceptor(is, newMockedRetriever(t)) // normal table should retur...
explode_data.jsonl/13201
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 604 }
[ 2830, 3393, 32786, 59362, 2556, 1731, 60572, 1155, 353, 8840, 836, 8, 341, 19907, 1669, 501, 11571, 291, 1731, 8632, 1155, 4292, 197, 37972, 2556, 7635, 65009, 2556, 4064, 11, 220, 16, 11, 220, 20, 4292, 197, 37972, 2556, 7635, 65009, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRoundTripFromString(t *testing.T) { type args struct { header string } tests := []struct { name string args args want string }{ struct { name string args args want string }{ "simple", args{header: "img-src 'none';"}, "img-src 'none';", }, { "medium", args{header: "im...
explode_data.jsonl/10344
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 354 }
[ 2830, 3393, 27497, 56352, 44491, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 20883, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 914, 198, 197, 59403, 197, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMacServiceImpl_UpdateAllSoldTemporary(t *testing.T) { a := assert.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() mockMr := database.NewMockMacRepository(ctrl) { // success ipi := NewMacServiceImpl(mockMr) if ipi == nil { t.FailNow() } mockMr.EXPECT().UpdateAllSoldTemporary().Retur...
explode_data.jsonl/55041
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 259 }
[ 2830, 3393, 19552, 50603, 47393, 2403, 54012, 59362, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 2060, 7121, 1155, 340, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 741, 77333, 12275, 1669, 4625, 7121, 1157...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCollection_EstimatedDocumentCount(t *testing.T) { mgoClient := Ins() result, err := mgoClient.C("test").EstimatedDocumentCount() if err != nil { t.Errorf("EstimatedDocumentCount error: %s", err) t.FailNow() } t.Log("EstimatedDocumentCount ok: ", result) }
explode_data.jsonl/30102
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 6482, 2089, 267, 7145, 7524, 2507, 1155, 353, 8840, 836, 8, 341, 2109, 3346, 2959, 1669, 9726, 2822, 9559, 11, 1848, 1669, 296, 3346, 2959, 727, 445, 1944, 1827, 72565, 7524, 2507, 741, 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...
2
func TestCreateUserWithTeam(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() id := model.NewId() email := "success+" + id + "@simulator.amazonses.com" username := "name" + id th.CheckCommand(t, "user", "create", "--email", email, "--password", "mypassword1", "--username", username) th.CheckComma...
explode_data.jsonl/57417
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 237 }
[ 2830, 3393, 4021, 1474, 2354, 14597, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 15710, 1669, 1614, 7121, 764, 741, 57549, 1669, 330, 5630, 5172, 488, 877, 488, 8428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFieldErrors_ToAggregate(t *testing.T) { expected := field.ErrorList{ &field.Error{Field: "[]"}, }.ToAggregate() actual := cli.FieldErrors{ &field.Error{Field: "[]"}, }.ToAggregate() if diff := cmp.Diff(expected, actual); diff != "" { t.Errorf("(-expected, +actual): %s", diff) } }
explode_data.jsonl/13215
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 1877, 13877, 38346, 64580, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 2070, 6141, 852, 515, 197, 197, 5, 2566, 6141, 90, 1877, 25, 330, 1294, 7115, 197, 7810, 1249, 64580, 741, 88814, 1669, 21348, 17087, 13877, 515, 197, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestIAVLReverseSubspaceIterator(t *testing.T) { db := dbm.NewMemDB() tree, _ := newTree(t, db) iavlStore := newIAVLStore(tree, numRecent, storeEvery) iavlStore.Set([]byte("test1"), []byte("test1")) iavlStore.Set([]byte("test2"), []byte("test2")) iavlStore.Set([]byte("test3"), []byte("test3")) iavlStore.Set...
explode_data.jsonl/44274
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 870 }
[ 2830, 3393, 5863, 30698, 45695, 3136, 8746, 11951, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 2927, 76, 7121, 18816, 3506, 741, 51968, 11, 716, 1669, 501, 6533, 1155, 11, 2927, 340, 8230, 67311, 6093, 1669, 501, 5863, 30698, 6093, 21298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQueryPlans(t *testing.T) { // Dolt supports partial keys, so the index matched is different for some plans // TODO: Fix these differences by implementing partial key matching in the memory tables, or the engine itself skipped := []string{ "SELECT pk,pk1,pk2 FROM one_pk LEFT JOIN two_pk ON pk=pk1", "SELE...
explode_data.jsonl/38642
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 528 }
[ 2830, 3393, 2859, 97728, 1155, 353, 8840, 836, 8, 341, 197, 322, 422, 6181, 11554, 7130, 6894, 11, 773, 279, 1922, 18054, 374, 2155, 369, 1045, 6649, 198, 197, 322, 5343, 25, 19716, 1493, 11799, 553, 24931, 7130, 1376, 12579, 304, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRevertPorts(t *testing.T) { testCases := []struct { replacementPorts []localPort existingPorts []localPort expectToBeClose []bool }{ { replacementPorts: []localPort{ {port: 5001}, {port: 5002}, {port: 5003}, }, existingPorts: []localPort{}, expectToBeClose: []bool{true, ...
explode_data.jsonl/9290
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 954 }
[ 2830, 3393, 693, 1621, 68273, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 17200, 16101, 68273, 3056, 2438, 7084, 198, 197, 8122, 11083, 68273, 262, 3056, 2438, 7084, 198, 197, 24952, 1249, 3430, 7925, 220, 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...
8
func TestNewTaskEngineRestoreFromCheckpointNewStateManagerError(t *testing.T) { ctrl, credentialsManager, _, imageManager, _, dockerClient, stateManagerFactory, saveableOptionFactory, execCmdMgr := setup(t) defer ctrl.Finish() cfg := getTestConfig() cfg.Checkpoint = config.BooleanDefaultFalse{Value: config.Expli...
explode_data.jsonl/41585
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 707 }
[ 2830, 3393, 3564, 6262, 4571, 56284, 3830, 92688, 3564, 83132, 1454, 1155, 353, 8840, 836, 8, 341, 84381, 11, 16387, 2043, 11, 8358, 2168, 2043, 11, 716, 345, 197, 2698, 13659, 2959, 11, 1584, 2043, 4153, 11, 3581, 480, 5341, 4153, 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 TestMakeRequestsPublisherId(t *testing.T) { var w, h int = 300, 250 var width, height int64 = int64(w), int64(h) bidder, buildErr := Builder(openrtb_ext.BidderAMX, config.Adapter{ Endpoint: amxTestEndpoint}) if buildErr != nil { t.Fatalf("Builder returned unexpected error %v", buildErr) } type testCas...
explode_data.jsonl/7173
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 867 }
[ 2830, 3393, 8078, 35295, 34550, 764, 1155, 353, 8840, 836, 8, 341, 2405, 289, 11, 305, 526, 284, 220, 18, 15, 15, 11, 220, 17, 20, 15, 198, 2405, 2374, 11, 2608, 526, 21, 19, 284, 526, 21, 19, 3622, 701, 526, 21, 19, 3203, 692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestRemoveIssueNotFoundNoErr(t *testing.T) { cucm, iucm, lucm, pucm, m := prepareMocksAndRUC() iucm.On("Remove", uint(1)).Return(false, errors.New("record not found")) c, _ := prepareHTTP(echo.DELETE, "/api/issues/:id", nil) c.SetParamNames("id") c.SetParamValues("1") err := m.RemoveIssue(c) assert.Nil(...
explode_data.jsonl/60176
{ "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, 13021, 42006, 10372, 2753, 7747, 1155, 353, 8840, 836, 8, 341, 1444, 1754, 76, 11, 600, 1754, 76, 11, 25927, 76, 11, 281, 1754, 76, 11, 296, 1669, 10549, 72577, 3036, 49, 5459, 2822, 8230, 1754, 76, 8071, 445, 13021, 497...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestKazaamNoModify(t *testing.T) { spec := `[{"operation": "shift","spec": {"Rating": "rating.primary.value","example.old": "rating.example"}}]` msgOut := `{"Rating":3,"example":{"old":{"value":3}}}` tf, _ := kazaam.NewKazaam(spec) data := []byte(testJSONInput) jsonOut, _ := tf.Transform(data) areEqual1, _ ...
explode_data.jsonl/11862
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 270 }
[ 2830, 3393, 42, 12707, 309, 2753, 44427, 1155, 353, 8840, 836, 8, 341, 98100, 1669, 77644, 4913, 9262, 788, 330, 13418, 2198, 9535, 788, 5212, 22152, 788, 330, 21931, 35497, 2824, 2198, 8687, 46061, 788, 330, 21931, 7724, 30975, 60, 398...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateTempDockerfile(t *testing.T) { //Create tempDir and go into it dir := t.TempDir() wdBackup, err := os.Getwd() if err != nil { t.Fatalf("Error getting current working directory: %v", err) } err = os.Chdir(dir) if err != nil { t.Fatalf("Error changing working directory: %v", err) } // Delete...
explode_data.jsonl/25156
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 345 }
[ 2830, 3393, 4021, 12151, 35, 13659, 1192, 1155, 353, 8840, 836, 8, 341, 197, 322, 4021, 2730, 6184, 323, 728, 1119, 432, 198, 48532, 1669, 259, 65009, 6184, 2822, 197, 6377, 56245, 11, 1848, 1669, 2643, 2234, 6377, 741, 743, 1848, 961...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSyncer(t *testing.T) { RegisterFailHandler(Fail) junitReporter := reporters.NewJUnitReporter("junit.xml") RunSpecsWithDefaultAndCustomReporters(t, "Syncer Utils Suite", []Reporter{junitReporter}) }
explode_data.jsonl/13604
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 12154, 261, 1155, 353, 8840, 836, 8, 341, 79096, 19524, 3050, 7832, 604, 340, 12428, 3843, 52766, 1669, 19040, 7121, 56248, 52766, 445, 73, 3843, 9028, 1138, 85952, 8327, 16056, 3675, 3036, 10268, 10361, 388, 1155, 11, 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
func Test_NewSet(t *testing.T) { a := NewSet() if a.Cardinality() != 0 { t.Error("NewSet should start out as an empty set") } assertEqual(NewSetFromSlice([]interface{}{}), NewSet(), t) assertEqual(NewSetFromSlice([]interface{}{1}), NewSet(1), t) assertEqual(NewSetFromSlice([]interface{}{1, 2}), NewSet(1, 2), t...
explode_data.jsonl/166
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 39582, 1649, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 1532, 1649, 741, 743, 264, 48613, 80777, 368, 961, 220, 15, 341, 197, 3244, 6141, 445, 3564, 1649, 1265, 1191, 700, 438, 458, 4287, 738, 1138, 197, 630, 6948, 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...
2
func TestUpdateMetrics(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() tests := []struct { name string metrics *attacker.Metrics latenciesText Text bytesText Text othersText Text statusCodesText Text errorsText Text }{ { name: "with errors...
explode_data.jsonl/19375
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1321 }
[ 2830, 3393, 4289, 27328, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 2109, 13468, 260, 353, 1587, 9683, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRedis_SetExNx(t *testing.T) { runOnRedis(t, func(client *Redis) { err := NewRedis(client.Addr, "").Setex("hello", "world", 5) assert.NotNil(t, err) err = client.Setex("hello", "world", 5) assert.Nil(t, err) _, err = NewRedis(client.Addr, "").Setnx("hello", "newworld") assert.NotNil(t, err) ok, e...
explode_data.jsonl/39185
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 575 }
[ 2830, 3393, 48137, 14812, 840, 91431, 1155, 353, 8840, 836, 8, 341, 56742, 1925, 48137, 1155, 11, 2915, 12805, 353, 48137, 8, 341, 197, 9859, 1669, 1532, 48137, 12805, 93626, 11, 35229, 1649, 327, 445, 14990, 497, 330, 14615, 497, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDurationWithThreshold(t *testing.T) { var testcases = []struct { name string x, y, threshold time.Duration expected bool }{ { name: "delta is threshold", threshold: time.Second, x: 3 * time.Second, y: 2 * time.Second, expected: true, }, { ...
explode_data.jsonl/34716
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 775 }
[ 2830, 3393, 12945, 2354, 37841, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 23910, 284, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 10225, 11, 379, 11, 12171, 882, 33795, 198, 197, 42400, 286, 1807, 198, 197, 59403, 197, 197, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBuildBaronPluginConfigure(t *testing.T) { assert := assert.New(t) bbPlugin := BuildBaronPlugin{} assert.Nil(bbPlugin.Configure(map[string]interface{}{ "Projects": map[string]evergreen.BuildBaronProject{ "proj": evergreen.BuildBaronProject{ TicketCreateProject: "BFG", TicketSearchProjects: []s...
explode_data.jsonl/11604
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 504 }
[ 2830, 3393, 11066, 3428, 263, 11546, 28560, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 2233, 65, 11546, 1669, 7854, 3428, 263, 11546, 16094, 6948, 59678, 68502, 11546, 78281, 9147, 14032, 31344, 67066, 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...
1
func TestCallGC(t *testing.T) { f := func(a, b, c, d, e string) { } g := func(in []Value) []Value { runtime.GC() return nil } typ := ValueOf(f).Type() f2 := MakeFunc(typ, g).Interface().(func(string, string, string, string, string)) f2("four", "five5", "six666", "seven77", "eight888") }
explode_data.jsonl/29629
{ "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, 7220, 22863, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 2915, 2877, 11, 293, 11, 272, 11, 294, 11, 384, 914, 8, 341, 197, 532, 3174, 1669, 2915, 5900, 3056, 1130, 8, 3056, 1130, 341, 197, 7000, 4466, 1224, 34, 741, 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 TestValidate_OK(t *testing.T) { input := []byte(`bucket: "bucket-name" endpoint: "s3-endpoint" access_key: "access_key" insecure: false signature_version2: false secret_key: "secret_key" http_config: insecure_skip_verify: false idle_conn_timeout: 50s`) cfg, err := parseConfig(input) testutil.Ok(t, err) tes...
explode_data.jsonl/6237
{ "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, 17926, 8375, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 3056, 3782, 5809, 30410, 25, 330, 30410, 11494, 698, 32540, 25, 330, 82, 18, 13068, 2768, 698, 5211, 3097, 25, 330, 5211, 3097, 698, 258, 25132, 25, 895, 198, 34140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetPools(t *testing.T) { mockServer := NewMockHttpServer(200, SuccessGetPoolsContent) defer mockServer.Close() mockHttpClient := NewMockHttpClient(mockServer.URL) client := NewRookNetworkRestClient(mockServer.URL, mockHttpClient) // invoke the GetPools method that will use our mock http client/server to ...
explode_data.jsonl/27840
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 376 }
[ 2830, 3393, 1949, 47, 6178, 1155, 353, 8840, 836, 8, 341, 77333, 5475, 1669, 1532, 11571, 2905, 5475, 7, 17, 15, 15, 11, 13047, 1949, 47, 6178, 2762, 340, 16867, 7860, 5475, 10421, 741, 77333, 26316, 1669, 1532, 11571, 26316, 30389, 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...
3
func TestUserFindEmail(t *testing.T) { client, _ := New("https://api.bitbucket.org") _, _, err := client.Users.FindEmail(context.Background()) if err != scm.ErrNotSupported { t.Errorf("Expect Not Supported error") } }
explode_data.jsonl/31631
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 82 }
[ 2830, 3393, 1474, 9885, 4781, 1155, 353, 8840, 836, 8, 341, 25291, 11, 716, 1669, 1532, 445, 2428, 1110, 2068, 30099, 30410, 2659, 1138, 197, 6878, 8358, 1848, 1669, 2943, 36782, 9998, 4781, 5378, 19047, 2398, 743, 1848, 961, 85520, 278...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWsOCO(t *testing.T) { t.Parallel() pressXToJSON := []byte(`{"stream":"jTfvpakT2yT0hVIo5gYWVihZhdM2PrBgJUZ5PyfZ4EVpCkx4Uoxk5timcrQc","data":{ "e": "listStatus", "E": 1564035303637, "s": "ETHBTC", "g": 2, "c": "OCO", ...
explode_data.jsonl/76688
{ "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, 74733, 7612, 46, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 1873, 55, 1249, 5370, 1669, 3056, 3782, 5809, 4913, 4027, 3252, 73, 51, 69, 15260, 585, 51, 17, 88, 51, 15, 71, 25308, 78, 20, 70, 98117, 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...
2
func TestTransactionFetcherUnderpricedDoSProtection(t *testing.T) { // Temporarily disable fetch timeouts as they massively mess up the simulated clock defer func(timeout time.Duration) { txFetchTimeout = timeout }(txFetchTimeout) txFetchTimeout = 24 * time.Hour // Create a slew of transactions to max out the unde...
explode_data.jsonl/52224
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 962 }
[ 2830, 3393, 8070, 97492, 16250, 649, 7572, 5404, 50, 78998, 1155, 353, 8840, 836, 8, 341, 197, 322, 19944, 96154, 11156, 7807, 91444, 438, 807, 63707, 9435, 705, 279, 45736, 8866, 198, 16867, 2915, 38966, 882, 33795, 8, 314, 259, 9770, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetSourceGCSAPIPath(t *testing.T) { w := testWorkflow() w.sourcesPath = "my/sources" got := w.getSourceGCSAPIPath("foo") want := "https://storage.cloud.google.com/my/sources/foo" if got != want { t.Errorf("unexpected result: got: %q, want %q", got, want) } }
explode_data.jsonl/3865
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 1949, 3608, 38, 6412, 7082, 1820, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 1273, 62768, 741, 6692, 81837, 1820, 284, 330, 2408, 96690, 698, 3174, 354, 1669, 289, 42072, 38, 6412, 7082, 1820, 445, 7975, 1138, 50780, 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 TestCtlSock(t *testing.T) { cDir := test_helpers.InitFS(t) pDir := cDir + ".mnt" sock := cDir + ".sock" test_helpers.MountOrFatal(t, cDir, pDir, "-ctlsock="+sock, "-extpass", "echo test") defer test_helpers.UnmountPanic(pDir) req := ctlsock.RequestStruct{ EncryptPath: "foobar", } response := test_helpers...
explode_data.jsonl/51013
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 450 }
[ 2830, 3393, 94252, 79812, 1155, 353, 8840, 836, 8, 341, 1444, 6184, 1669, 1273, 54473, 26849, 8485, 1155, 340, 3223, 6184, 1669, 272, 6184, 488, 5933, 40882, 698, 85809, 1669, 272, 6184, 488, 5933, 13199, 698, 18185, 54473, 1321, 629, 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...
7
func TestEarlyTermNoTraversalDropsDuplicatedVotes(t *testing.T) { alpha := 2 vtxID := ids.ID{1} vdr1 := ids.ShortID{1} vdr2 := ids.ShortID{2} // k = 2 vdrs := ids.ShortBag{} vdrs.Add( vdr1, vdr2, ) factory := NewEarlyTermNoTraversalFactory(alpha) poll := factory.New(vdrs) poll.Vote(vdr1, vtxID) if p...
explode_data.jsonl/41157
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 268 }
[ 2830, 3393, 41198, 17249, 2753, 76276, 35, 3702, 35, 98984, 75535, 1155, 353, 8840, 836, 8, 341, 73063, 1669, 220, 17, 271, 5195, 3998, 915, 1669, 14151, 9910, 90, 16, 630, 5195, 3612, 16, 1669, 14151, 55958, 915, 90, 16, 532, 5195, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsLinklist(t *testing.T) { opt := NewOption() tp := newTextProcessor(opt) actuals := []bool{ tp.isLinkList("<ul><li>1.hoge</li><li>2.fuga</li></ul>"), tp.isLinkList("start 123<ul><li>1.hoge</li><li>2.fuga</li></ul>456 end"), } expecteds := []bool{ true, false, } for i := range actuals { if a...
explode_data.jsonl/25045
{ "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, 3872, 3939, 1607, 1155, 353, 8840, 836, 8, 341, 64838, 1669, 1532, 5341, 741, 73423, 1669, 94653, 22946, 24539, 692, 88814, 82, 1669, 3056, 2641, 515, 197, 73423, 2079, 3939, 852, 9639, 360, 1784, 742, 29, 16, 860, 40532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetOrderStatus(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip("API keys required but not set, skipping test") } _, err := f.GetOrderStatus(context.Background(), "1031") if err != nil { t.Error(err) } }
explode_data.jsonl/15226
{ "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, 1949, 4431, 2522, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 341, 197, 3244, 57776, 445, 7082, 6894, 2567, 714, 537, 738, 11, 42659, 1273, 1138, 197, 532, 197, 6878, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShouldReturnBadRequestWhenIntegrationValueIsInvalid(t *testing.T) { // mock AccountsFetcher mockAccountsFetcher := &mockAccountsFetcher{} // mock PBS Analytics Module mockAnalyticsModule := &eventsMockAnalyticsModule{ Fail: false, } // mock config cfg := &config.Configuration{ AccountDefaults: con...
explode_data.jsonl/140
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 350 }
[ 2830, 3393, 14996, 5598, 46015, 4498, 52464, 1130, 3872, 7928, 1155, 353, 8840, 836, 8, 341, 197, 322, 7860, 40655, 97492, 198, 77333, 41369, 97492, 1669, 609, 16712, 41369, 97492, 31483, 197, 322, 7860, 59045, 32427, 13711, 198, 77333, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestConfig_Encrypt_GoodData_ExpectedEncryptedDataExists(t *testing.T) { setup() defer teardown() id, _ := cfg.Encrypt(content) if _, err := os.Stat(path.Join(encrypteddir, fmt.Sprintf("%v.json", id))); err != nil { t.Error(err) } }
explode_data.jsonl/6917
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 102 }
[ 2830, 3393, 2648, 93529, 3571, 2646, 1386, 1043, 62, 18896, 7408, 14026, 1043, 15575, 1155, 353, 8840, 836, 8, 341, 220, 6505, 741, 220, 17956, 49304, 741, 220, 877, 11, 716, 1669, 13286, 26598, 3571, 15063, 340, 220, 421, 8358, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestKeyProblems(t *testing.T) { env, cleanup := withTestEnvironment(t) defer cleanup() testRunInit(t, env.gopts) env.gopts.backendTestHook = func(r restic.Backend) (restic.Backend, error) { return &emptySaveBackend{r}, nil } testKeyNewPassword = "geheim2" defer func() { testKeyNewPassword = "" }() ...
explode_data.jsonl/43556
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 289 }
[ 2830, 3393, 1592, 1336, 21699, 1155, 353, 8840, 836, 8, 341, 57538, 11, 21290, 1669, 448, 2271, 12723, 1155, 340, 16867, 21290, 2822, 18185, 6727, 3803, 1155, 11, 6105, 1302, 10518, 340, 57538, 1302, 10518, 37187, 2271, 31679, 284, 2915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMarshalRow(t *testing.T) { row := &Row{ ColumnNames: []string{"col1", "col2", "col3"}, Values: []string{"1", "2.0", "three"}, } jsonBytes, err := row.MarshalJSON() if err != nil { t.Error() } ref := `{"col1":1,"col2":2.0,"col3":"three"}` if string(jsonBytes) != ref { t.Fail() } }
explode_data.jsonl/25318
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 144 }
[ 2830, 3393, 55438, 3102, 1155, 353, 8840, 836, 8, 1476, 33967, 1669, 609, 3102, 515, 197, 197, 2933, 7980, 25, 3056, 917, 4913, 2074, 16, 497, 330, 2074, 17, 497, 330, 2074, 18, 7115, 197, 197, 6227, 25, 414, 3056, 917, 4913, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test_LoadDatastore_NOT_SUPPORTED(t *testing.T) { testConfig.Datastore.Type = "hoopla" if _, err := LoadDatastore(&testConfig.Datastore, simplelog.NewStdLogger()); err == nil { t.Fatalf("%s", err) } }
explode_data.jsonl/44270
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 87 }
[ 2830, 3393, 19553, 1043, 4314, 9169, 52583, 1155, 353, 8840, 836, 8, 341, 18185, 2648, 3336, 4314, 10184, 284, 330, 6161, 453, 4260, 698, 743, 8358, 1848, 1669, 8893, 1043, 4314, 2099, 1944, 2648, 3336, 4314, 11, 4285, 839, 7121, 22748,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMatDFT(t *testing.T) { src := NewMatWithSize(101, 102, MatTypeCV32F) dst := NewMat() m := GetOptimalDFTSize(101) n := GetOptimalDFTSize(102) if m != 108 { t.Errorf("TestMatOptimalDFT dst error: %d", m) } if n != 108 { t.Errorf("TestMatOptimalDFT dst error: %d", n) } DFT(src, &dst, DftForward) ...
explode_data.jsonl/81711
{ "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, 35, 3994, 1155, 353, 8840, 836, 8, 341, 41144, 1669, 1532, 11575, 2354, 1695, 7, 16, 15, 16, 11, 220, 16, 15, 17, 11, 6867, 929, 19589, 18, 17, 37, 340, 52051, 1669, 1532, 11575, 2822, 2109, 1669, 2126, 21367, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestNode_Sibling(t *testing.T) { left := &Node{val: []byte("left")} right := &Node{val: []byte("right")} root := &Node{ val: []byte("root"), right: right, left: left, } left.parent = root right.parent = root t.Run("Should Return Right", func(t *testing.T) { if left.Sibling() != right { t.Erro...
explode_data.jsonl/57981
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 253 }
[ 2830, 3393, 1955, 1098, 19876, 1155, 353, 8840, 836, 8, 341, 35257, 1669, 609, 1955, 90, 831, 25, 3056, 3782, 445, 2359, 42132, 47921, 1669, 609, 1955, 90, 831, 25, 3056, 3782, 445, 1291, 42132, 33698, 1669, 609, 1955, 515, 197, 19302...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNormalizedString(t *testing.T) { tests := map[RR]string{ newRR(t, "mIEk.Nl. 3600 IN A 127.0.0.1"): "miek.nl.\tIN\tA\t127.0.0.1", newRR(t, "m\\ iek.nL. 3600 IN A 127.0.0.1"): "m\\ iek.nl.\tIN\tA\t127.0.0.1", newRR(t, "m\\\tIeK.nl. 3600 in A 127.0.0.1"): "m\\tiek.nl.\tIN\tA\t127.0.0.1", } for tc, e...
explode_data.jsonl/44693
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 258 }
[ 2830, 3393, 79082, 703, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 58, 8106, 30953, 515, 197, 8638, 8106, 1155, 11, 330, 76, 5371, 74, 2067, 75, 13, 220, 18, 21, 15, 15, 1964, 362, 220, 16, 17, 22, 13, 15, 13, 15, 13, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestSelectComprehensionTwoValue(t *testing.T) { gopClTest(t, ` y, ok := {i for i, x <- ["1", "3", "5", "7", "11"], x == "5"} `, `package main func main() { y, ok := func() (_gop_ret int, _gop_ok bool) { for i, x := range []string{"1", "3", "5", "7", "11"} { if x == "5" { return i, true } } retur...
explode_data.jsonl/73651
{ "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, 3379, 1092, 30782, 2645, 11613, 1130, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 88, 11, 5394, 1669, 314, 72, 369, 600, 11, 856, 9119, 4383, 16, 497, 330, 18, 497, 330, 20, 497, 330, 22, 497,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReconcileWithConditionChecks(t *testing.T) { // TestReconcileWithConditionChecks runs "Reconcile" on a PipelineRun that has a task with // multiple conditions. It verifies that reconcile is successful, taskruns are created and // the status is updated. It checks that the correct events are sent. names.Test...
explode_data.jsonl/27310
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 966 }
[ 2830, 3393, 693, 40446, 457, 2354, 10547, 49820, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 693, 40446, 457, 2354, 10547, 49820, 8473, 330, 693, 40446, 457, 1, 389, 264, 40907, 6727, 429, 702, 264, 3383, 448, 198, 197, 322, 5248, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetDomainUUID(t *testing.T) { dom, conn := buildTestDomain() defer func() { dom.Free() if res, _ := conn.Close(); res != 0 { t.Errorf("Close() == %d, expected 0", res) } }() _, err := dom.GetUUID() // how to test uuid validity? if err != nil { t.Error(err) return } }
explode_data.jsonl/64820
{ "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, 13636, 24754, 1155, 353, 8840, 836, 8, 341, 2698, 316, 11, 4534, 1669, 1936, 2271, 13636, 741, 16867, 2915, 368, 341, 197, 2698, 316, 52229, 741, 197, 743, 592, 11, 716, 1669, 4534, 10421, 2129, 592, 961, 220, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestStepsTemplateParallelismLimit(t *testing.T) { cancel, controller := newController() defer cancel() wfcset := controller.wfclientset.ArgoprojV1alpha1().Workflows("") wf := unmarshalWF(stepsTemplateParallelismLimit) ctx := context.Background() wf, err := wfcset.Create(ctx, wf, metav1.CreateOptions{}) asse...
explode_data.jsonl/70962
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 422 }
[ 2830, 3393, 33951, 7275, 16547, 2142, 16527, 1155, 353, 8840, 836, 8, 341, 84441, 11, 6461, 1669, 501, 2051, 741, 16867, 9121, 741, 6692, 8316, 746, 1669, 6461, 1418, 69, 2972, 746, 18979, 45926, 73, 53, 16, 7141, 16, 1005, 6776, 3814...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChannelClient_GetNodeInfo(t *testing.T) { cfg := types.NewChain33Config(strings.Replace(types.GetDefaultCfgstring(), "Title=\"local\"", "Title=\"chain33\"", 1)) api := new(mocks.QueueProtocolAPI) api.On("GetConfig", mock.Anything).Return(cfg, nil) client := newGrpc(api) client.Init("valnode", nil, nil, ni...
explode_data.jsonl/80572
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 307 }
[ 2830, 3393, 9629, 2959, 13614, 1955, 1731, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 4494, 7121, 18837, 18, 18, 2648, 51442, 20858, 52613, 2234, 3675, 42467, 917, 1507, 330, 3851, 4070, 2438, 55853, 330, 3851, 4070, 8819, 18, 18, 55853...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMasterProfile_ValidateAuditDEnabled(t *testing.T) { t.Run("Should have proper validation for auditd + distro combinations", func(t *testing.T) { t.Parallel() for _, distro := range DistroValues { cs := getK8sDefaultContainerService(false) masterProfile := cs.Properties.MasterProfile masterProfile...
explode_data.jsonl/17892
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 357 }
[ 2830, 3393, 18041, 8526, 62, 17926, 74516, 1150, 77, 2312, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 14996, 614, 6169, 10519, 369, 24275, 67, 488, 1582, 299, 27459, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 41288, 7957...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandlerWrapper_Error(t *testing.T) { Convey("A handler wrapper allows errors to be added to a report", t, func() { a := NewAgent(Config{}) hw := &HandlerWrapper{agent: a} Convey("Doesnot panic if there is no report", func() { So(hw.report, ShouldBeNil) So(func() { hw.Error(fmt.Errorf("whoops"...
explode_data.jsonl/35579
{ "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, 3050, 11542, 28651, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 32, 7013, 13261, 6147, 5975, 311, 387, 3694, 311, 264, 1895, 497, 259, 11, 2915, 368, 341, 197, 11323, 1669, 1532, 16810, 33687, 37790, 197, 9598, 86, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPerforceCloneURL(t *testing.T) { cfg := schema.PerforceConnection{ P4Port: "ssl:111.222.333.444:1666", P4User: "admin", P4Passwd: "pa$$word", } repo := &perforce.Depot{ Depot: "//Sourcegraph/", } got := perforceCloneURL(repo, &cfg) want := "perforce://admin:pa$$word@ssl:111.222.333.444:1666...
explode_data.jsonl/39379
{ "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, 3889, 8833, 37677, 3144, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 10802, 14834, 8833, 4526, 515, 197, 10025, 19, 7084, 25, 256, 330, 24635, 25, 16, 16, 16, 13, 17, 17, 17, 13, 18, 18, 18, 13, 19, 19, 19, 25, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAssessRunStatusUpdateResult(t *testing.T) { f := newFixture(t) defer f.Close() c, _, _ := f.newController(noResyncPeriodFunc) run := &v1alpha1.AnalysisRun{ Spec: v1alpha1.AnalysisRunSpec{ Metrics: []v1alpha1.Metric{ { Name: "sleep-infinity", Provider: v1alpha1.MetricProvider{ Job: ...
explode_data.jsonl/75815
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 722 }
[ 2830, 3393, 5615, 433, 6727, 2522, 4289, 2077, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 18930, 1155, 340, 16867, 282, 10421, 741, 1444, 11, 8358, 716, 1669, 282, 4618, 2051, 39205, 1061, 1721, 23750, 9626, 340, 56742, 1669, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestByteSliceInsert(t *testing.T) { t.Run("Normal slice", func(t *testing.T) { s := []byte{'1', '3', '4'} ByteSliceInsert(&s, '2', 1) for i, element := range s { // We want a slice of ['1' '2' '3' '4'] if element != byte(48+i+1) { // U+0030 (48 decimal) is '0', add 1 to make it equal the current elem...
explode_data.jsonl/12596
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 274 }
[ 2830, 3393, 7153, 33236, 13780, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 12206, 15983, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1903, 1669, 3056, 3782, 13608, 16, 516, 364, 18, 516, 364, 19, 16418, 197, 197, 7153, 33236, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUses(t *testing.T) { workflow, _ := fixture(t, "valid/uses-types.workflow") cases := []struct { Name string Uses model.Uses }{ {Name: "a", Uses: &model.UsesRepository{Repository: "foo/bar", Ref: "dev"}}, {Name: "b", Uses: &model.UsesRepository{Repository: "foo/bar", Path: "path", Ref: "1.0.0"}}, {...
explode_data.jsonl/55674
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 279 }
[ 2830, 3393, 68965, 1155, 353, 8840, 836, 8, 341, 197, 56249, 11, 716, 1669, 12507, 1155, 11, 330, 1891, 14, 4776, 20817, 72774, 1138, 1444, 2264, 1669, 3056, 1235, 341, 197, 21297, 914, 198, 197, 197, 68965, 1614, 13, 68965, 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...
3
func TestUserFriendDeleteWRONGBODY(t *testing.T) { resp, _ := sendDelete("http://localhost:8080/EXAMPLE2&q=undofriendship", UserFriendRequestWRONGBODY, auth.Header.Get("Authorization")) response := responseToString(resp) compareResults(t, response, HyperText.CustomResponses["wrong-body"]) }
explode_data.jsonl/59360
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 1474, 41637, 6435, 17925, 711, 5381, 21050, 1155, 353, 8840, 836, 8, 341, 34653, 11, 716, 1669, 3624, 6435, 445, 1254, 1110, 8301, 25, 23, 15, 23, 15, 14, 95875, 17, 62735, 28, 1241, 1055, 5039, 5270, 497, 2657, 41637, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCalcDewPoint(t *testing.T) { const temp = 10.02 const rhTrue = 90.0 dp := calcDewPoint(rhTrue, temp) fmt.Println("Dew-Point is", dp) // Don't compare floats; Use rounded int instead dpRounded := int(math.Floor(dp*10 + 0.5)) const want = 85 if dpRounded != want { t.Errorf("calcDewPoint(%v, %v), got ...
explode_data.jsonl/47675
{ "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, 47168, 35, 365, 2609, 1155, 353, 8840, 836, 8, 341, 4777, 2730, 284, 220, 16, 15, 13, 15, 17, 198, 4777, 21669, 2514, 284, 220, 24, 15, 13, 15, 198, 55256, 1669, 10035, 35, 365, 2609, 2601, 71, 2514, 11, 2730, 340, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetClusterInfo(t *testing.T) { gkeManagerMock := &gkeManagerMock{} gke := &GkeCloudProvider{ gkeManager: gkeManagerMock, } gkeManagerMock.On("GetProjectId").Return("project1").Once() gkeManagerMock.On("GetLocation").Return("location1").Once() gkeManagerMock.On("GetClusterName").Return("cluster1").Once(...
explode_data.jsonl/30483
{ "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, 1949, 28678, 1731, 1155, 353, 8840, 836, 8, 341, 3174, 440, 2043, 11571, 1669, 609, 70, 440, 2043, 11571, 16094, 3174, 440, 1669, 609, 38, 440, 16055, 5179, 515, 197, 3174, 440, 2043, 25, 342, 440, 2043, 11571, 345, 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 TestVerifyCRDPresence(t *testing.T) { prevInterval, prevTimeout := pollInterval, pollTimeout pollInterval = time.Nanosecond pollTimeout = time.Millisecond defer func() { pollInterval, pollTimeout = prevInterval, prevTimeout }() specs := kube_meta.Types.All() cases := []struct { name string missin...
explode_data.jsonl/35999
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 816 }
[ 2830, 3393, 32627, 8973, 10298, 416, 763, 1155, 353, 8840, 836, 8, 341, 50728, 10256, 11, 7872, 7636, 1669, 7085, 10256, 11, 7085, 7636, 198, 3223, 965, 10256, 284, 882, 2067, 276, 960, 1297, 198, 3223, 965, 7636, 284, 882, 71482, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSerialization(t *testing.T) { for _, enc := range testEncoding { t.Run(enc.String(), func(t *testing.T) { chk := NewMemChunk(enc, testBlockSize, testTargetSize) numSamples := 50000 for i := 0; i < numSamples; i++ { require.NoError(t, chk.Append(logprotoEntry(int64(i), strconv.Itoa(i)))) } ...
explode_data.jsonl/15699
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 593 }
[ 2830, 3393, 35865, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 3209, 1669, 2088, 1273, 14690, 341, 197, 3244, 16708, 66941, 6431, 1507, 2915, 1155, 353, 8840, 836, 8, 341, 298, 23049, 74, 1669, 1532, 18816, 28304, 66941, 11, 1273, 89932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInsert(t *testing.T) { a := Article{Title: "Title1", Content: "Content1", CreatedAt: time.Now().Format("2006-01-02 15:04:05")} _, err := Insert(&a) if err != nil { t.Fail() } t.Log(err) }
explode_data.jsonl/66277
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 87 }
[ 2830, 3393, 13780, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 13355, 90, 3851, 25, 330, 3851, 16, 497, 8883, 25, 330, 2762, 16, 497, 4290, 1655, 25, 882, 13244, 1005, 4061, 445, 17, 15, 15, 21, 12, 15, 16, 12, 15, 17, 220, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMethodInfoScope(t *testing.T) { for _, tt := range []struct { method string scope protoregistry.Scope }{ { method: "/gitaly.RepositoryService/RepositoryExists", scope: protoregistry.ScopeRepository, }, } { t.Run(tt.method, func(t *testing.T) { mInfo, err := protoregistry.GitalyProtoPrer...
explode_data.jsonl/49680
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 184 }
[ 2830, 3393, 64248, 10803, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 3056, 1235, 341, 197, 42257, 914, 198, 197, 66836, 220, 1724, 460, 70, 4944, 77940, 198, 197, 59403, 197, 197, 515, 298, 42257, 25, 3521, 70, 2174,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStat(t *testing.T) { client := getClient(t) resp, err := client.Stat("/_test/foo.txt") require.NoError(t, err) assert.EqualValues(t, "foo.txt", resp.Name()) assert.False(t, resp.IsDir()) assert.EqualValues(t, 4, resp.Size()) assert.EqualValues(t, time.Now().Year(), resp.ModTime().Year()) assert.Equal...
explode_data.jsonl/44782
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 144 }
[ 2830, 3393, 15878, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 86287, 1155, 692, 34653, 11, 1848, 1669, 2943, 53419, 4283, 62, 1944, 60555, 3909, 1138, 17957, 35699, 1155, 11, 1848, 692, 6948, 12808, 6227, 1155, 11, 330, 7975, 3909, 497,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResultHistoryCopy(t *testing.T) { num := 5 for i := 0; i < num; i++ { a := randResultHistory() b := a.Copy() if !reflect.DeepEqual(a, b) { t.Errorf("expected a and b DeepEqual, actual copied map not equal", a, b) } // verify a and b don't point to the same map a[tc.CacheName(randStr())] = ra...
explode_data.jsonl/72337
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 182 }
[ 2830, 3393, 2077, 13424, 12106, 1155, 353, 8840, 836, 8, 341, 22431, 1669, 220, 20, 198, 2023, 600, 1669, 220, 15, 26, 600, 366, 1629, 26, 600, 1027, 341, 197, 11323, 1669, 10382, 2077, 13424, 741, 197, 2233, 1669, 264, 31770, 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...
4
func TestServerWithFlakyBroker(t *testing.T) { // Make sure that server does not panic and exit if redis is down. defer func() { if r := recover(); r != nil { t.Errorf("panic occurred: %v", r) } }() r := rdb.NewRDB(setup(t)) testBroker := testbroker.NewTestBroker(r) redisConnOpt := getRedisConnOpt(t) srv ...
explode_data.jsonl/81848
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 585 }
[ 2830, 3393, 5475, 2354, 3882, 28100, 65545, 1155, 353, 8840, 836, 8, 341, 197, 322, 7405, 2704, 429, 3538, 1558, 537, 21975, 323, 4869, 421, 20870, 374, 1495, 624, 16867, 2915, 368, 341, 197, 743, 435, 1669, 11731, 2129, 435, 961, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLinkYaml_WithOutput(t *testing.T) { as := assert.New(t) linkTemplate := projectriff_v1.Link{} opts := options.InitOptions{ FunctionName: "myfunc", Input: "in", Output: "out", UserAccount: "me", Version: "0.0.1", Protocol: "http", } yaml, err := createLinkYaml(linkTempla...
explode_data.jsonl/50588
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 244 }
[ 2830, 3393, 3939, 56, 9467, 62, 2354, 5097, 1155, 353, 8840, 836, 8, 341, 60451, 1669, 2060, 7121, 1155, 692, 54238, 7275, 1669, 2390, 81, 3092, 2273, 16, 22534, 16094, 64734, 1669, 2606, 26849, 3798, 515, 197, 87522, 675, 25, 330, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetActiveJobIds(t *testing.T) { withRepository(func(r *RedisJobRepository) { addTestJob(t, r, "queue1") addLeasedJob(t, r, "queue1", "cluster1") addTestJob(t, r, "queue2") ids, e := r.GetActiveJobIds("queue1", "set1") assert.Nil(t, e) assert.Equal(t, 2, len(ids)) }) }
explode_data.jsonl/32052
{ "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, 1949, 5728, 12245, 12701, 1155, 353, 8840, 836, 8, 341, 46948, 4624, 18552, 2601, 353, 48137, 12245, 4624, 8, 341, 197, 12718, 2271, 12245, 1155, 11, 435, 11, 330, 4584, 16, 1138, 197, 12718, 2304, 1475, 12245, 1155, 11, 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 TestMonitor_QuickClose(t *testing.T) { var mc MetaClient mc.CreateDatabaseWithRetentionPolicyFn = func(name string, spec *meta.RetentionPolicySpec) (*meta.DatabaseInfo, error) { return &meta.DatabaseInfo{Name: name}, nil } var pw PointsWriter config := monitor.NewConfig() config.StoreInterval = toml.Durat...
explode_data.jsonl/7527
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 208 }
[ 2830, 3393, 30098, 62, 24318, 7925, 1155, 353, 8840, 836, 8, 341, 2405, 19223, 15819, 2959, 198, 97662, 7251, 5988, 2354, 12020, 78165, 24911, 284, 2915, 3153, 914, 11, 1398, 353, 5490, 52846, 78165, 8327, 8, 4609, 5490, 25008, 1731, 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 TestRestoreAsOfSystemTimeGCBounds(t *testing.T) { defer leaktest.AfterTest(t)() const numAccounts = 10 ctx, tc, sqlDB, _, cleanupFn := BackupRestoreTestSetup(t, singleNode, numAccounts, InitNone) defer cleanupFn() const dir = "nodelocal://0/" preGC := tree.TimestampToDecimal(tc.Server(0).Clock().Now()).Stri...
explode_data.jsonl/57596
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 493 }
[ 2830, 3393, 56284, 2121, 2124, 2320, 1462, 22863, 11394, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 4777, 1629, 41369, 284, 220, 16, 15, 198, 20985, 11, 17130, 11, 5704, 3506, 11, 8358, 21290, 24911, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDescribePodDisruptionBudget(t *testing.T) { minAvailable := intstr.FromInt(22) f := fake.NewSimpleClientset(&policy.PodDisruptionBudget{ ObjectMeta: metav1.ObjectMeta{ Namespace: "ns1", Name: "pdb1", CreationTimestamp: metav1.Time{Time: time.Now().Add(1.9e9)}, }, Spec: pol...
explode_data.jsonl/34942
{ "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, 74785, 23527, 4839, 14123, 62901, 1155, 353, 8840, 836, 8, 341, 25320, 16485, 1669, 526, 495, 11439, 1072, 7, 17, 17, 340, 1166, 1669, 12418, 7121, 16374, 2959, 746, 2099, 34790, 88823, 4839, 14123, 62901, 515, 197, 23816, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func Test_service_CreateDetectorLink(t *testing.T) { tests := []struct { name string dLink *DetectorLink calls int wantErr bool }{ { name: "simple", dLink: &DetectorLink{ DestDetectorId: "my-dest-detector-id", SrcDetectors: []*DetectorLink_SourceDetector{ { DetectorId: "src-d...
explode_data.jsonl/23268
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 769 }
[ 2830, 3393, 12267, 34325, 31606, 3939, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 2698, 3939, 256, 353, 31606, 3939, 198, 197, 1444, 5583, 256, 526, 198, 197, 50780, 7747, 1807, 198, 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 TestTxnWithExpiredPessimisticLocks(t *testing.T) { store, clean := createMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("drop table if exists t1") tk.MustExec("create table t1 (c1 int primary key, c2 int, c3 int, unique key uk(c2))") defer tk.MustE...
explode_data.jsonl/12485
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 502 }
[ 2830, 3393, 31584, 77, 2354, 54349, 47, 66733, 4532, 11989, 82, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1855, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDownloadTimeout(t *testing.T) { var ( bck = cmn.Bck{ Name: testBucketName, Provider: cmn.ProviderAIS, } objName = "object" link = "https://storage.googleapis.com/nvdata-openimages/openimages-train-000001.tar" proxyURL = tutils.RandomProxyURL(t) baseParams = tutils.BaseAPIParam...
explode_data.jsonl/70381
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 561 }
[ 2830, 3393, 11377, 7636, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 2233, 377, 284, 9961, 77, 1785, 377, 515, 298, 21297, 25, 257, 1273, 36018, 675, 345, 298, 197, 5179, 25, 9961, 77, 36208, 32, 1637, 345, 197, 197, 532, 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 TestValidateAppautoscalingScalableDimension(t *testing.T) { cases := []struct { Value string ErrCount int }{ { Value: "ecs:service:DesiredCount", ErrCount: 0, }, { Value: "ec2:spot-fleet-request:TargetCapacity", ErrCount: 0, }, { Value: "ec2:service:DesiredCount", ErrC...
explode_data.jsonl/78601
{ "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, 17926, 2164, 79301, 81552, 3326, 278, 480, 26121, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 47399, 262, 914, 198, 197, 197, 7747, 2507, 526, 198, 197, 59403, 197, 197, 515, 298, 47399, 25, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestErrorsCodeNamePropagated(t *testing.T) { // Ensure the codeName field is propagated for both command and write concern errors. mtOpts := mtest.NewOptions(). Topologies(mtest.ReplicaSet). CreateClient(false) mt := mtest.New(t, mtOpts) defer mt.Close() mt.RunOpts("command error", mtest.NewOptions().Mi...
explode_data.jsonl/8332
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 679 }
[ 2830, 3393, 13877, 2078, 675, 2008, 351, 657, 1155, 353, 8840, 836, 8, 341, 197, 322, 29279, 279, 2038, 675, 2070, 374, 85050, 369, 2176, 3210, 323, 3270, 4643, 5975, 382, 2109, 83, 43451, 1669, 296, 1944, 7121, 3798, 25829, 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 TestRCS(t *testing.T) { u := gptest.NewUnitTester(t) defer u.Remove() ctx := context.Background() ctx = ctxutil.WithAlwaysYes(ctx, true) ctx = ctxutil.WithHidden(ctx, true) color.NoColor = true rs, err := createRootStore(ctx, u) require.NoError(t, err) assert.NoError(t, rs.RCSStatus(ctx, "")) revs, e...
explode_data.jsonl/55710
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 49, 6412, 1155, 353, 8840, 836, 8, 341, 10676, 1669, 342, 70334, 7121, 4562, 58699, 1155, 340, 16867, 575, 13270, 2822, 20985, 1669, 2266, 19047, 741, 20985, 284, 5635, 1314, 26124, 37095, 9454, 7502, 11, 830, 340, 20985, 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...
1
func TestHexCIDR(t *testing.T) { tests := []struct { input string output string expectErr bool }{ { input: "1.2.0.0/16", output: "01020000/ffff0000", }, { input: "172.17.0.2/32", output: "ac110002/ffffffff", }, { input: "foo", expectErr: true, }, } for _, test := ran...
explode_data.jsonl/5406
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 413 }
[ 2830, 3393, 20335, 54146, 49, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 22427, 257, 914, 198, 197, 21170, 262, 914, 198, 197, 24952, 7747, 1807, 198, 197, 59403, 197, 197, 515, 298, 22427, 25, 220, 330, 16, 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...
8
func TestDynamicDetails(t *testing.T) { Convey("get DynamicDetails", t, func() { _, err := dao.DynamicDetails(ctx(), []int64{27515258}, "search") err = nil So(err, ShouldBeNil) }) }
explode_data.jsonl/51620
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 21752, 7799, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 455, 21886, 7799, 497, 259, 11, 2915, 368, 341, 197, 197, 6878, 1848, 1669, 24775, 42101, 7799, 7502, 1507, 3056, 396, 21, 19, 90, 17, 22, 20, 16, 20, 17, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRewriteWithInexistingCustomRule(t *testing.T) { output := Rewriter("https://www.youtube.com/watch?v=1234", `Video Description`, `some rule`) expected := `Video Description` if expected != output { t.Errorf(`Not expected output: got "%s" instead of "%s"`, output, expected) } }
explode_data.jsonl/21471
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 58465, 1247, 2354, 641, 36895, 10268, 11337, 1155, 353, 8840, 836, 8, 341, 21170, 1669, 31691, 2542, 445, 2428, 1110, 2136, 20145, 905, 26213, 22995, 28, 16, 17, 18, 19, 497, 1565, 10724, 7662, 7808, 1565, 14689, 5912, 24183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestModifyGeneratedColumn(t *testing.T) { store, clean := testkit.CreateMockStoreWithSchemaLease(t, columnModifyLease) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") modIdxColErrMsg := "[ddl:3106]'modifying an indexed column' is not supported for generated columns." modStoredColErrM...
explode_data.jsonl/51317
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1058 }
[ 2830, 3393, 44427, 15741, 2933, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 2354, 8632, 2304, 519, 1155, 11, 3250, 44427, 2304, 519, 340, 16867, 4240, 741, 3244, 74, 1669, 1273, 8226, 7121, 2271, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidate_NoCircularFragmentSpreads_DoesNotFalsePositiveOnUnknownFragment(t *testing.T) { testutil.ExpectPassesRule(t, graphql.NoFragmentCyclesRule, ` fragment nameFragment on Pet { ...UnknownFragment } `) }
explode_data.jsonl/30368
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 17926, 36989, 82440, 9488, 6406, 30358, 1557, 7072, 2623, 4049, 35490, 1925, 13790, 9488, 1155, 353, 8840, 836, 8, 341, 18185, 1314, 81893, 12187, 288, 11337, 1155, 11, 48865, 16766, 9488, 34, 15805, 11337, 11, 22074, 414, 122...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidChecksum(t *testing.T) { for _, test := range validChecksum { hrp, data, err := bech32.Decode(test) if err != nil { t.Errorf("Valid checksum for %s : FAIL / error %+v\n", test, err) } else { t.Logf("Valid checksum for %s : ok / hrp : %+v , data : %+v\n", test, hrp, data) } } }
explode_data.jsonl/72628
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 139 }
[ 2830, 3393, 4088, 73190, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 2697, 73190, 341, 197, 78847, 79, 11, 821, 11, 1848, 1669, 387, 331, 18, 17, 56372, 8623, 340, 197, 743, 1848, 961, 2092, 341, 298, 3244, 13080, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMainSetCLIGlobals(t *testing.T) { assert := assert.New(t) defer resetCLIGlobals() cli.AppHelpTemplate = "" cli.VersionPrinter = nil cli.ErrWriter = nil setCLIGlobals() assert.NotEqual(cli.AppHelpTemplate, "") assert.NotNil(cli.VersionPrinter) assert.NotNil(cli.ErrWriter) }
explode_data.jsonl/52207
{ "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, 6202, 1649, 3140, 1914, 16616, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 16867, 7585, 3140, 1914, 16616, 2822, 86448, 5105, 12689, 7275, 284, 8389, 86448, 35842, 45660, 284, 2092, 198, 86448, 27862, 6492...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStore_DeleteSeriesIDs(t *testing.T) { ctx := context.Background() metric1 := labels.Labels{ {Name: labels.MetricName, Value: "foo"}, {Name: "bar", Value: "baz"}, } metric2 := labels.Labels{ {Name: labels.MetricName, Value: "foo"}, {Name: "bar", Value: "baz2"}, } matchers, err := parser.ParseMet...
explode_data.jsonl/43827
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1441 }
[ 2830, 3393, 6093, 57418, 25544, 30466, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 2109, 16340, 16, 1669, 9201, 4679, 82, 515, 197, 197, 63121, 25, 9201, 1321, 16340, 675, 11, 5162, 25, 330, 7975, 7115, 197, 197, 6312...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCodeString(t *testing.T) { var buf = make([]byte, 64) var v string = "HelloWorld" var n uint64 n = EncodeString(buf, v) var d string n = DecodeString(buf[:n], &d) if v != d { t.Errorf("error %s != %s", v, d) } if n != SizeofString(v) { t.Errorf("error %d != %d", n, len(buf[:n])) } }
explode_data.jsonl/58554
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 144 }
[ 2830, 3393, 2078, 703, 1155, 353, 8840, 836, 8, 341, 2405, 6607, 284, 1281, 10556, 3782, 11, 220, 21, 19, 340, 2405, 348, 914, 284, 330, 9707, 10134, 698, 2405, 308, 2622, 21, 19, 198, 9038, 284, 56562, 703, 10731, 11, 348, 340, 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 TestGetAccount(t *testing.T) { qapi.On("ExecWalletFunc", "wallet", "WalletGetAccount", mock.Anything).Return(&types.WalletAccount{}, nil) _, err := g.GetAccount(getOkCtx(), nil) assert.Nil(t, err, "the error should be nil") }
explode_data.jsonl/291
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 84 }
[ 2830, 3393, 1949, 7365, 1155, 353, 8840, 836, 8, 341, 18534, 2068, 8071, 445, 10216, 38259, 9626, 497, 330, 35735, 497, 330, 38259, 1949, 7365, 497, 7860, 13311, 1596, 568, 5598, 2099, 9242, 1175, 7464, 7365, 22655, 2092, 340, 197, 6878...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateJsonSchema(t *testing.T) { // Configure the list of sample protos to test, and their expected JSON-Schemas: sampleProtos := configureSampleProtos() // Convert the protos, compare the results against the expected JSON-Schemas: for name, sampleProto := range sampleProtos { t.Run(name, func(t *tes...
explode_data.jsonl/69801
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 31115, 5014, 8632, 1155, 353, 8840, 836, 8, 1476, 197, 322, 22169, 279, 1140, 315, 6077, 1724, 436, 311, 1273, 11, 323, 862, 3601, 4718, 6222, 31126, 510, 1903, 1516, 12423, 436, 1669, 14411, 17571, 12423, 436, 2822, 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