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 TestSpanKind(t *testing.T) { type Test struct { in pdata.SpanKind out string } tests := []Test{ {pdata.SpanKindClient, "client"}, {pdata.SpanKindServer, "server"}, {pdata.SpanKindProducer, "producer"}, {pdata.SpanKindConsumer, "consumer"}, {pdata.SpanKindInternal, "internal"}, } for _, test :...
explode_data.jsonl/80394
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 168 }
[ 2830, 3393, 12485, 10629, 1155, 353, 8840, 836, 8, 341, 13158, 3393, 2036, 341, 197, 17430, 220, 70311, 85309, 10629, 198, 197, 13967, 914, 198, 197, 630, 78216, 1669, 3056, 2271, 515, 197, 197, 90, 57796, 85309, 10629, 2959, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestNewPRMExactReference(t *testing.T) { const testDR = "library/busybox:latest" // Success _prm, err := NewPRMExactReference(testDR) require.NoError(t, err) prm, ok := _prm.(*prmExactReference) require.True(t, ok) assert.Equal(t, &prmExactReference{ prmCommon: prmCommon{prmTypeExactReference}, D...
explode_data.jsonl/36517
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 260 }
[ 2830, 3393, 3564, 6480, 44, 57954, 8856, 1155, 353, 8840, 836, 8, 341, 4777, 1273, 7687, 284, 330, 18065, 96916, 88, 2011, 25, 19350, 1837, 197, 322, 13047, 198, 197, 5294, 76, 11, 1848, 1669, 1532, 6480, 44, 57954, 8856, 8623, 7687, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImpatientStreamFailure(t *testing.T) { osn := newClusterNode(t) dialer := newCountingDialer() defer dialer.assertAllConnectionsClosed(t) //等待OSN启动 //通过尝试连接到它 var conn *grpc.ClientConn var err error gt := gomega.NewGomegaWithT(t) gt.Eventually(func() (bool, error) { conn, err = dialer.Dial(osn.srv.Add...
explode_data.jsonl/47279
{ "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, 25216, 16389, 3027, 17507, 1155, 353, 8840, 836, 8, 341, 25078, 77, 1669, 501, 28678, 1955, 1155, 340, 2698, 530, 261, 1669, 501, 2507, 287, 35, 530, 261, 741, 16867, 27860, 261, 3713, 2403, 54751, 26884, 1155, 340, 322, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoveAuditorByUsername(t *testing.T) { Convey("Remove auditor by username", t, func() { expectedBody := `{"username":"user-name"}` setup(MockRoute{"DELETE", "/v2/organizations/bc7b4caf-f4b8-4d85-b126-0729b9351e56/auditors", []string{""}, "", 204, "", &expectedBody}, t) defer teardown() c := &Config{ ...
explode_data.jsonl/4457
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 277 }
[ 2830, 3393, 13021, 52949, 1919, 91519, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 13021, 53306, 553, 5934, 497, 259, 11, 2915, 368, 341, 197, 42400, 5444, 1669, 1565, 4913, 5113, 3252, 872, 11494, 9207, 3989, 197, 84571, 66436, 489...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccAwsDmsEndpoint_MongoDb_Update(t *testing.T) { resourceName := "aws_dms_endpoint.dms_endpoint" randId := acctest.RandString(8) + "-mongodb" resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: dmsEndpointDestroy, St...
explode_data.jsonl/37175
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 782 }
[ 2830, 3393, 14603, 47359, 35, 1011, 27380, 1245, 6363, 7994, 47393, 1155, 353, 8840, 836, 8, 341, 50346, 675, 1669, 330, 8635, 814, 1011, 36699, 950, 1011, 36699, 698, 7000, 437, 764, 1669, 1613, 67880, 2013, 437, 703, 7, 23, 8, 488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInstallRunRestartStopRemove(t *testing.T) { p := &program{} reportDir := mustTempDir(t) defer os.RemoveAll(reportDir) s := mustNewRunAsService(t, p, reportDir) _ = s.Uninstall() if err := s.Install(); err != nil { t.Fatal("Install", err) } defer s.Uninstall() if err := s.Start(); err != nil { t...
explode_data.jsonl/75187
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 300 }
[ 2830, 3393, 24690, 6727, 59354, 10674, 13021, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 609, 14906, 16094, 69931, 6184, 1669, 1969, 12151, 6184, 1155, 340, 16867, 2643, 84427, 45175, 6184, 692, 1903, 1669, 1969, 3564, 6727, 2121, 1860, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestNilExtension(t *testing.T) { msg := &pb.MyMessage{ Count: proto.Int32(1), } if err := proto.SetExtension(msg, pb.E_Ext_Text, proto.String("hello")); err != nil { t.Fatal(err) } if err := proto.SetExtension(msg, pb.E_Ext_More, (*pb.Ext)(nil)); err == nil { t.Error("expected SetExtension to fail due t...
explode_data.jsonl/55066
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 19064, 12049, 1155, 353, 8840, 836, 8, 341, 21169, 1669, 609, 16650, 27054, 2052, 515, 197, 197, 2507, 25, 18433, 7371, 18, 17, 7, 16, 1326, 197, 532, 743, 1848, 1669, 18433, 4202, 12049, 8119, 11, 17310, 5142, 62, 6756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRenewToken(t *testing.T) { t.Parallel() sessionManager := New() mux := http.NewServeMux() mux.HandleFunc("/put", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { sessionManager.Put(r.Context(), "foo", "bar") })) mux.HandleFunc("/renew", http.HandlerFunc(func(w http.ResponseWriter, r *h...
explode_data.jsonl/455
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 473 }
[ 2830, 3393, 34625, 365, 3323, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 25054, 2043, 1669, 1532, 2822, 2109, 2200, 1669, 1758, 7121, 60421, 44, 2200, 741, 2109, 2200, 63623, 4283, 628, 497, 1758, 89164, 18552, 3622, 1758, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRenderWithInvalidTemplate(t *testing.T) { t.Parallel() cfg, fs := newTestCfg() writeSource(t, fs, filepath.Join("content", "foo.md"), "foo") withTemplate := createWithTemplateFromNameValues("missing", templateMissingFunc) buildSingleSiteExpected(t, true, deps.DepsCfg{Fs: fs, Cfg: cfg, WithTemplate: wit...
explode_data.jsonl/16650
{ "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, 6750, 2354, 7928, 7275, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50286, 11, 8619, 1669, 501, 2271, 42467, 2822, 24945, 3608, 1155, 11, 8619, 11, 26054, 22363, 445, 1796, 497, 330, 7975, 21324, 3975, 330, 7975, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartDaemonset(t *testing.T) { c := New("ns", "myversion", "", false) clientset := fake.NewSimpleClientset() // Cannot start the cluster with zero mons info := testop.CreateClusterInfo(0) err := c.Start(clientset, info) assert.NotNil(t, err) // Can start with one mon info = testop.CreateClusterInfo(...
explode_data.jsonl/14556
{ "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, 3479, 89177, 746, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1532, 445, 4412, 497, 330, 2408, 4366, 497, 7342, 895, 692, 25291, 746, 1669, 12418, 7121, 16374, 2959, 746, 2822, 197, 322, 34655, 1191, 279, 10652, 448, 7168, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProcesses_addTwice(t *testing.T) { p := &processes{maxLen: 10} cfg, repo, _ := testcfg.BuildWithRepo(t) key0 := mustCreateKey(t, "0", repo) value0, cancel := mustCreateCacheable(t, cfg, repo) p.Add(key0, value0, time.Now().Add(time.Hour), cancel) requireProcessesValid(t, p) key1 := mustCreateKey(t, "...
explode_data.jsonl/81950
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 335 }
[ 2830, 3393, 92727, 2891, 22816, 558, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 609, 4630, 288, 90, 2810, 11271, 25, 220, 16, 15, 630, 50286, 11, 15867, 11, 716, 1669, 1273, 14072, 25212, 2354, 25243, 1155, 692, 23634, 15, 1669, 1969, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChangeMilestoneAssign(t *testing.T) { assert.NoError(t, PrepareTestDatabase()) issue := AssertExistsAndLoadBean(t, &Issue{RepoID: 1}).(*Issue) doer := AssertExistsAndLoadBean(t, &User{ID: 2}).(*User) oldMilestoneID := issue.MilestoneID issue.MilestoneID = 2 assert.NoError(t, ChangeMilestoneAssign(issue,...
explode_data.jsonl/21830
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 235 }
[ 2830, 3393, 4072, 44, 93028, 28933, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 31166, 2271, 5988, 2398, 197, 11159, 1669, 5319, 15575, 3036, 5879, 10437, 1155, 11, 609, 42006, 90, 25243, 915, 25, 220, 16, 16630, 4071, 42006, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVerifyResources(t *testing.T) { gomega.RegisterFailHandler(ginkgo.Fail) junitReporter := reporters.NewJUnitReporter(fmt.Sprintf("register-%d-test-result.xml", config.GinkgoConfig.ParallelNode)) ginkgo.RunSpecsWithDefaultAndCustomReporters(t, "Register multi-cluster resource verification suite", []ginkgo.Rep...
explode_data.jsonl/6346
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 115 }
[ 2830, 3393, 32627, 11277, 1155, 353, 8840, 836, 8, 341, 3174, 32696, 19983, 19524, 3050, 3268, 766, 3346, 57243, 340, 12428, 3843, 52766, 1669, 19040, 7121, 56248, 52766, 28197, 17305, 445, 6343, 11069, 67, 16839, 53838, 9028, 497, 2193, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconstructPreorder(t *testing.T) { testFileName := filepath.Join(cfg.TestDataFolder, "tree_from_preorder_with_null.tsv") file, err := os.Open(testFileName) if err != nil { t.Fatalf("could not open file %s: %v", testFileName, err) } defer file.Close() type TestCase struct { Preorder perorderDe...
explode_data.jsonl/47201
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 540 }
[ 2830, 3393, 693, 7596, 4703, 1358, 1155, 353, 8840, 836, 8, 341, 18185, 10903, 1669, 26054, 22363, 28272, 8787, 1043, 13682, 11, 330, 9344, 5673, 10442, 1358, 6615, 15162, 70675, 1138, 17661, 11, 1848, 1669, 2643, 12953, 8623, 10903, 340,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestPreFilterDisabled(t *testing.T) { pod := &v1.Pod{} nodeInfo := framework.NewNodeInfo() node := v1.Node{} nodeInfo.SetNode(&node) p := &InterPodAffinity{} cycleState := framework.NewCycleState() gotStatus := p.Filter(context.Background(), cycleState, pod, nodeInfo) wantStatus := framework.NewStatus(fram...
explode_data.jsonl/62834
{ "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, 4703, 5632, 25907, 1155, 353, 8840, 836, 8, 341, 3223, 347, 1669, 609, 85, 16, 88823, 16094, 20831, 1731, 1669, 12626, 7121, 1955, 1731, 741, 20831, 1669, 348, 16, 21714, 16094, 20831, 1731, 4202, 1955, 2099, 3509, 340, 3223...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFinalizePulse_BackupError(t *testing.T) { ctx := inslogger.TestContext(t) testPulse := insolar.PulseNumber(pulse.MinTimePulse) targetPulse := testPulse + 1 jk := executor.NewJetKeeperMock(t) jk.HasAllJetConfirmsMock.Return(true) jk.TopSyncPulseMock.Return(targetPulse) js := jet.NewStorageMock(t) js....
explode_data.jsonl/68987
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 19357, 551, 47, 17217, 64703, 454, 1454, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1640, 9786, 8787, 1972, 1155, 692, 18185, 47, 17217, 1669, 1640, 7417, 1069, 17217, 2833, 1295, 17217, 17070, 1462, 47, 17217, 340, 28861, 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 TestParseOptions(t *testing.T) { token := "mytoken" tests := []struct { name string opts []string want lightstep.Options wantErr bool }{ { name: "test without token should fail", opts: []string{}, want: lightstep.Options{}, wantErr: true, }, { name: "test with tok...
explode_data.jsonl/31219
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2799 }
[ 2830, 3393, 14463, 3798, 1155, 353, 8840, 836, 8, 341, 43947, 1669, 330, 2408, 5839, 1837, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 64734, 262, 3056, 917, 198, 197, 50780, 262, 3100, 9520, 22179, 198, 197, 50780, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDefaultMachineAccelerators(t *testing.T) { assert := assert.New(t) machineAccelerators := "abc,123,rgb" h := hypervisor{MachineAccelerators: machineAccelerators} assert.Equal(machineAccelerators, h.machineAccelerators()) machineAccelerators = "" h.MachineAccelerators = machineAccelerators assert.Equal(...
explode_data.jsonl/5136
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 521 }
[ 2830, 3393, 3675, 21605, 58182, 2973, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 2109, 3814, 58182, 2973, 1669, 330, 13683, 11, 16, 17, 18, 11, 16509, 698, 9598, 1669, 9751, 31396, 90, 21605, 58182, 2973, 25, 566...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthorizator(t *testing.T) { // the middleware to test authMiddleware, _ := New(&GinJWTMiddleware{ Realm: "test zone", Key: key, Timeout: time.Hour, MaxRefresh: time.Hour * 24, Authenticator: defaultAuthenticator, Authorizator: func(data interface{}, c *gin.Context) boo...
explode_data.jsonl/64442
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 385 }
[ 2830, 3393, 7133, 449, 850, 1155, 353, 8840, 836, 8, 341, 197, 322, 279, 29679, 311, 1273, 198, 78011, 24684, 11, 716, 1669, 1532, 2099, 38, 258, 55172, 24684, 515, 197, 197, 64290, 25, 260, 330, 1944, 10143, 756, 197, 55242, 25, 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 TestDockerConfigRawConfigNilLabel(t *testing.T) { rawConfig, err := json.Marshal(&struct{ Labels map[string]string }{nil}) if err != nil { t.Fatal(err) } testTask := &Task{ Arn: "arn:aws:ecs:us-east-1:012345678910:task/c09f0188-7f87-4b0f-bfc3-16296622b6fe", Family: "myFamily", Version: "1", Con...
explode_data.jsonl/37189
{ "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, 35, 13659, 2648, 20015, 2648, 19064, 2476, 1155, 353, 8840, 836, 8, 341, 76559, 2648, 11, 1848, 1669, 2951, 37271, 2099, 1235, 90, 60996, 2415, 14032, 30953, 335, 90, 8385, 3518, 743, 1848, 961, 2092, 341, 197, 3244, 26133, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlobberGRPCService_GetFileStats_FileNotExist(t *testing.T) { req := &blobbergrpc.GetFileStatsRequest{ Context: &blobbergrpc.RequestContext{ Client: "owner", ClientKey: "", Allocation: "", }, Path: "path", PathHash: "path_hash", Allocation: "", } mockStorageHandler := &storag...
explode_data.jsonl/66829
{ "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, 37985, 652, 8626, 4872, 1860, 13614, 1703, 16635, 34061, 45535, 1155, 353, 8840, 836, 8, 341, 24395, 1669, 609, 35112, 652, 56585, 2234, 1703, 16635, 1900, 515, 197, 70871, 25, 609, 35112, 652, 56585, 9659, 1972, 515, 298, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestCanConstructBoxFromFilename(t *testing.T) { assert := assert.New(t) bh := BoxHandler{} filenames := []string{"/tmp/benphegan-VAGRANTSLASH-development__1.0__virtualbox.box"} boxes := bh.getBoxData(filenames) assert.Equal(1, len(boxes), "We should get one box") assert.Equal("development", boxes[0].Boxname)...
explode_data.jsonl/51581
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 6713, 28468, 1611, 3830, 20759, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 2233, 71, 1669, 8261, 3050, 16094, 1166, 52768, 1669, 3056, 917, 90, 3115, 5173, 3470, 268, 80806, 29428, 19625, 81156, 2821, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParsePointToString(t *testing.T) { line := `cpu,host=serverA,region=us-east bool=false,float=11,float2=12.123,int=10i,str="string val" 1000000000` pts, err := models.ParsePoints([]byte(line)) if err != nil { t.Fatalf(`ParsePoints() failed. got %s`, err) } if exp := 1; len(pts) != exp { t.Errorf("Parse...
explode_data.jsonl/16957
{ "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, 14463, 2609, 5870, 1155, 353, 8840, 836, 8, 341, 27109, 1669, 1565, 16475, 11, 3790, 28, 4030, 32, 11, 3943, 28, 355, 39507, 1807, 12219, 45509, 28, 16, 16, 45509, 17, 28, 16, 17, 13, 16, 17, 18, 9871, 28, 16, 15, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServerServeTLSEmbed(t *testing.T) { ln := fasthttputil.NewInmemoryListener() certFile := "./ssl-cert-snakeoil.pem" keyFile := "./ssl-cert-snakeoil.key" certData, err := ioutil.ReadFile(certFile) if err != nil { t.Fatalf("unexpected error when reading %q: %s", certFile, err) } keyData, err := ioutil....
explode_data.jsonl/73276
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 797 }
[ 2830, 3393, 5475, 60421, 13470, 925, 76, 2721, 1155, 353, 8840, 836, 8, 341, 197, 2261, 1669, 4937, 96336, 628, 321, 7121, 641, 17269, 2743, 2822, 1444, 529, 1703, 1669, 5924, 24635, 61034, 75450, 726, 73813, 49373, 698, 23634, 1703, 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 TestValidateServerFiles_ValidInput(t *testing.T) { var tests = []struct { name string filesInput []models.File }{ {"Valid File info", []models.File{ models.File{ "sourceString", "destinationString", }, }, }, } for _, test := range tests { output := validateServerFiles(t...
explode_data.jsonl/71212
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 17926, 5475, 10809, 97279, 2505, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 74075, 2505, 3056, 6507, 8576, 198, 197, 59403, 197, 197, 4913, 4088, 2887, 3546, 756, 298, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test(t *testing.T) { testEtcdCluster = integration.NewClusterV3(t, &integration.ClusterConfig{Size: 1}) defer testEtcdCluster.Terminate(t) TestingT(t) }
explode_data.jsonl/75593
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 1155, 353, 8840, 836, 8, 341, 18185, 31860, 4385, 28678, 284, 17590, 7121, 28678, 53, 18, 1155, 11, 609, 60168, 72883, 2648, 90, 1695, 25, 220, 16, 3518, 16867, 1273, 31860, 4385, 28678, 836, 261, 34016, 1155, 340, 197, 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
func TestBroadcastMessageWithBlobsOk(t *testing.T) { bm, cancel := newTestBroadcast(t) defer cancel() mdi := bm.database.(*databasemocks.Plugin) mdm := bm.data.(*datamocks.Manager) mbi := bm.blockchain.(*blockchainmocks.Plugin) mdx := bm.exchange.(*dataexchangemocks.Plugin) mps := bm.publicstorage.(*publicstorag...
explode_data.jsonl/12105
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 891 }
[ 2830, 3393, 43362, 2052, 2354, 33, 68164, 11578, 1155, 353, 8840, 836, 8, 341, 2233, 76, 11, 9121, 1669, 501, 2271, 43362, 1155, 340, 16867, 9121, 741, 2109, 8579, 1669, 34868, 15062, 41399, 67, 2096, 300, 336, 25183, 64378, 340, 2109, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestOutputCloseTimesOut(t *testing.T) { assert := assert.New(t) transmitter := new(mocks.Transmitter) transmitter.On("Close").Return(unfinished) ai := ApplicationInsights{ transmitter: transmitter, Timeout: internal.Duration{Duration: time.Millisecond * 50}, } err := ai.Close() assert...
explode_data.jsonl/50939
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 145 }
[ 2830, 3393, 5097, 7925, 18889, 2662, 1155, 353, 8840, 836, 8, 972, 6948, 1669, 2060, 7121, 1155, 7229, 72453, 16126, 1669, 501, 1255, 25183, 11815, 16126, 1218, 72453, 16126, 8071, 445, 7925, 1827, 5598, 7, 15092, 7229, 197, 2143, 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...
1
func TestProbe_ServeHTTP(t *testing.T) { tests := []struct { name string probe *probe req *http.Request expectedStatusCode int }{ { name: "OK", probe: &probe{ promHandler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(h...
explode_data.jsonl/15679
{ "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, 81426, 1098, 5852, 9230, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 2290, 914, 198, 197, 197, 52329, 1060, 353, 52329, 198, 197, 24395, 394, 353, 1254, 9659, 198, 197, 42400, 15872, 526, 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...
1
func TestMemory_SignCsrErrorParsingSpiffeId(t *testing.T) { m := populateCert(t) wcsr := createWorkloadCSR(t, "spif://localhost") wcert, err := m.SignCsr(&ca.SignCsrRequest{Csr: wcsr}) assert.Equal(t, "SPIFFE ID 'spif://localhost' is not prefixed with the spiffe:// scheme.", err.Error()) assert.Empty(t, wcert) ...
explode_data.jsonl/73862
{ "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, 10642, 1098, 622, 34, 15094, 1454, 68839, 6406, 43414, 764, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 30446, 36934, 1155, 692, 6692, 77851, 1669, 1855, 6776, 1078, 70022, 1155, 11, 330, 2154, 333, 1110, 8301, 5130, 6692, 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, 1, 1, 1, 1, 1, 1, 1...
1
func TestLoad_WithPartialEnvironment(t *testing.T) { // arrange var actualConfig complex altConfigString := ` { "stringValue": "Hello world 2", "sliceValueInts": [ 1, 2, 3, 4, 5, 6 ], "objectValue": { "stringValue": "Hello world 2", "objectValue": { "in...
explode_data.jsonl/44451
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 789 }
[ 2830, 3393, 5879, 62, 2354, 37314, 12723, 1155, 353, 8840, 836, 8, 341, 197, 322, 30893, 198, 2405, 5042, 2648, 6351, 271, 197, 3145, 2648, 703, 1669, 22074, 262, 341, 286, 330, 78883, 788, 330, 9707, 1879, 220, 17, 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...
2
func TestConfigsMapping(t *testing.T) { logp.TestingSetup() config, _ := common.NewConfigFrom(map[string]interface{}{ "correct": "config", }) configPorts, _ := common.NewConfigFrom(map[string]interface{}{ "correct": "config", "hosts": [1]string{"1.2.3.4:8080"}, }) const envValue = "valuefromenv" confi...
explode_data.jsonl/50994
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1144 }
[ 2830, 3393, 84905, 6807, 1155, 353, 8840, 836, 8, 341, 6725, 79, 8787, 287, 21821, 2822, 25873, 11, 716, 1669, 4185, 7121, 2648, 3830, 9147, 14032, 31344, 67066, 197, 197, 1, 19928, 788, 330, 1676, 756, 197, 8824, 25873, 68273, 11, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestClientRegisterWithInitNodeID(t *testing.T) { defer leaktest.AfterTest(t)() stopper := stop.NewStopper() defer stopper.Stop(context.TODO()) // Create three gossip nodes, and connect to the first with NodeID 0. var g []*Gossip var gossipAddr string for i := 0; i < 3; i++ { RPCContext := newInsecureRPCC...
explode_data.jsonl/18550
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 535 }
[ 2830, 3393, 2959, 8690, 2354, 3803, 1955, 915, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 62644, 712, 1669, 2936, 7121, 10674, 712, 741, 16867, 2936, 712, 30213, 5378, 90988, 12367, 197, 322, 4230, 2326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWatcherRequestProgress(t *testing.T) { b, tmpPath := backend.NewDefaultTmpBackend() // manually create watchableStore instead of newWatchableStore // because newWatchableStore automatically calls syncWatchers // method to sync watchers in unsynced map. We want to keep watchers // in unsynced to test if s...
explode_data.jsonl/39813
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 503 }
[ 2830, 3393, 47248, 1900, 9496, 1155, 353, 8840, 836, 8, 341, 2233, 11, 4174, 1820, 1669, 19163, 7121, 3675, 35986, 29699, 2822, 197, 322, 20083, 1855, 3736, 480, 6093, 4518, 315, 501, 14247, 480, 6093, 198, 197, 322, 1576, 501, 14247, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransportConcurrency(t *testing.T) { defer afterTest(t) maxProcs, numReqs := 16, 500 if testing.Short() { maxProcs, numReqs = 4, 50 } defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(maxProcs)) ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) { fmt.Fprintf(w, "%v", r.FormValue("echo...
explode_data.jsonl/4896
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 675 }
[ 2830, 3393, 27560, 79611, 1155, 353, 8840, 836, 8, 341, 16867, 1283, 2271, 1155, 340, 22543, 1336, 4837, 11, 1629, 693, 26358, 1669, 220, 16, 21, 11, 220, 20, 15, 15, 198, 743, 7497, 55958, 368, 341, 197, 22543, 1336, 4837, 11, 1629...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDevfile200_GetSchemaVersion(t *testing.T) { type args struct { name string } tests := []struct { name string expectedSchemaVersion string devfilev2 *DevfileV2 }{ { name: "case 1: Get the schema version", devfilev2: &DevfileV2{ v1.Devfile{ DevfileHeader...
explode_data.jsonl/32514
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 343 }
[ 2830, 3393, 14592, 1192, 17, 15, 15, 13614, 8632, 5637, 1155, 353, 8840, 836, 8, 1476, 13158, 2827, 2036, 341, 197, 11609, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 1698, 914, 198, 197, 42400, 8632, 5637, 914, 198,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGoroutineSwitch(t *testing.T) { // How much to try. These defaults take about 1 seconds // on a 2012 MacBook Pro. The ones in short mode take // about 0.1 seconds. tries := 10 count := 1000000 if testing.Short() { tries = 1 } for try := 0; try < tries; try++ { var prof bytes.Buffer if err := Star...
explode_data.jsonl/13651
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 484 }
[ 2830, 3393, 38, 269, 14159, 16837, 1155, 353, 8840, 836, 8, 341, 197, 322, 2585, 1753, 311, 1430, 13, 4220, 16674, 1896, 911, 220, 16, 6486, 198, 197, 322, 389, 264, 220, 17, 15, 16, 17, 57579, 1298, 13, 576, 6174, 304, 2805, 3856...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLiveGet(t *testing.T) { // tlog("!2") live, err := ys.LiveGet(fmt.Sprintf("%s:%d", DeviceSerial, ChannelNo)) if err != nil { tlog(err) } else { tlog(live) } }
explode_data.jsonl/81447
{ "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, 20324, 1949, 1155, 353, 8840, 836, 8, 341, 197, 322, 259, 839, 85166, 17, 1138, 8810, 533, 11, 1848, 1669, 31810, 85115, 1949, 28197, 17305, 4430, 82, 7533, 67, 497, 13903, 5915, 11, 13434, 2753, 1171, 743, 1848, 961, 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 ]
2
func TestRangeCacheClearOlderOverlapping(t *testing.T) { defer leaktest.AfterTest(t)() defer log.Scope(t).Close(t) ctx := context.Background() descAB1 := roachpb.RangeDescriptor{ StartKey: roachpb.RKey("a"), EndKey: roachpb.RKey("b"), Generation: 1, } descAB2 := roachpb.RangeDescriptor{ StartKey: ...
explode_data.jsonl/28192
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1806 }
[ 2830, 3393, 6046, 8233, 14008, 18284, 261, 1918, 90619, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 16867, 1487, 77940, 1155, 568, 7925, 1155, 340, 20985, 1669, 2266, 19047, 2822, 41653, 1867, 16, 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...
5
func TestInvalidValidatorFunction(t *testing.T) { validate := New() s := &SubTest{ Test: "1", } PanicMatches(t, func() { _ = validate.Var(s.Test, "zzxxBadFunction") }, "Undefined validation function 'zzxxBadFunction' on field ''") }
explode_data.jsonl/77335
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 3393, 7928, 14256, 5152, 1155, 353, 8840, 836, 8, 1476, 197, 7067, 1669, 1532, 2822, 1903, 1669, 609, 3136, 2271, 515, 197, 73866, 25, 330, 16, 756, 197, 630, 10025, 31270, 42470, 1155, 11, 2915, 368, 314, 716, 284, 9593, 87968,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEquals(t *testing.T) { for _, tc := range []struct { a *MIME b *MIME eq bool }{ { a: nil, b: nil, eq: true, }, { a: &MIME{}, b: nil, eq: false, }, } { assert.Equal(t, tc.eq, tc.a.Equals(tc.b)) } }
explode_data.jsonl/27745
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 152 }
[ 2830, 3393, 4315, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 11323, 220, 353, 44, 5660, 198, 197, 2233, 220, 353, 44, 5660, 198, 197, 7727, 80, 1807, 198, 197, 59403, 197, 197, 515, 298, 11323...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClusterSetup(t *testing.T) { type tst struct { client driver.Client action interface{} status int err string } tests := testy.NewTable() tests.Add("driver doesn't implement Cluster interface", tst{ client: &mock.Client{}, status: StatusNotImplemented, err: "kivik: driver does not suppor...
explode_data.jsonl/54497
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 368 }
[ 2830, 3393, 28678, 21821, 1155, 353, 8840, 836, 8, 341, 13158, 71707, 2036, 341, 197, 25291, 5579, 11716, 198, 197, 38933, 3749, 16094, 197, 23847, 526, 198, 197, 9859, 262, 914, 198, 197, 532, 78216, 1669, 1273, 88, 7121, 2556, 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...
1
func TestClient_DeleteStorageBackup(t *testing.T) { server, client, mux := setupTestClient(true) defer server.Close() var isFailed bool uri := path.Join(apiStorageBase, dummyUUID, "backups", dummyUUID) mux.HandleFunc(uri, func(w http.ResponseWriter, r *http.Request) { w.Header().Set(requestUUIDHeader, dummyReque...
explode_data.jsonl/40949
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 410 }
[ 2830, 3393, 2959, 57418, 5793, 56245, 1155, 353, 8840, 836, 8, 341, 41057, 11, 2943, 11, 59807, 1669, 6505, 2271, 2959, 3715, 340, 16867, 3538, 10421, 741, 2405, 374, 9408, 1807, 198, 197, 6070, 1669, 1815, 22363, 24827, 5793, 3978, 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...
4
func TestTeamTxMultipleMembers(t *testing.T) { tt := newTeamTester(t) defer tt.cleanup() ann := tt.addUser("ann") t.Logf("Signed up user ann (%s)", ann.username) // user 0 - ann, team owner // user 1,2,3 - zzz, normal user // user 4,5,6 - yyy, pukless user for i := 0; i < 3; i++ { user := tt.addUser("zzz")...
explode_data.jsonl/27645
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 804 }
[ 2830, 3393, 14597, 31584, 32089, 24371, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 501, 14597, 58699, 1155, 340, 16867, 17853, 87689, 2822, 197, 1020, 1669, 17853, 1364, 1474, 445, 1020, 1138, 3244, 98954, 445, 49312, 705, 1196, 2935, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProcessNodesWithRetriesOnErrors(t *testing.T) { controller := newController() assert.NotNil(t, controller) wf := unmarshalWF(helloWorldWf) assert.NotNil(t, wf) woc := newWorkflowOperationCtx(wf, controller) assert.NotNil(t, woc) // Verify that there are no nodes in the wf status. assert.Zero(t, len(wo...
explode_data.jsonl/54356
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 993 }
[ 2830, 3393, 7423, 12288, 2354, 12020, 4019, 1925, 13877, 1155, 353, 8840, 836, 8, 341, 61615, 1669, 501, 2051, 741, 6948, 93882, 1155, 11, 6461, 340, 6692, 69, 1669, 650, 27121, 32131, 3203, 4791, 10134, 54, 69, 340, 6948, 93882, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDisclosurePolicyWithPull(t *testing.T) { // Scenario: run 2 groups of peers that simulate 2 organizations: // {p0, p1, p2, p3, p4} // {p5, p6, p7, p8, p9} // Only peers that have an even id have external addresses // and only these peers should be published to peers of the other group, // while the only ...
explode_data.jsonl/62269
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1354 }
[ 2830, 3393, 91065, 13825, 2354, 36068, 1155, 353, 8840, 836, 8, 341, 197, 322, 58663, 25, 1598, 220, 17, 5203, 315, 25029, 429, 37453, 220, 17, 11104, 510, 197, 322, 314, 79, 15, 11, 281, 16, 11, 281, 17, 11, 281, 18, 11, 281, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccounts_CreateMultisig(t *testing.T) { mutableTree, _ := tree.NewMutableTree(0, db.NewMemDB(), 1024) b := bus.NewBus() b.SetChecker(checker.NewChecker(b)) accounts, err := NewAccounts(b, mutableTree) if err != nil { t.Fatal(err) } multisigAddr := accounts.CreateMultisig([]uint32{1, 1, 2}, []types.Add...
explode_data.jsonl/23594
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 430 }
[ 2830, 3393, 41369, 34325, 40404, 285, 343, 1155, 353, 8840, 836, 8, 341, 2109, 5922, 6533, 11, 716, 1669, 4916, 7121, 11217, 6533, 7, 15, 11, 2927, 7121, 18816, 3506, 1507, 220, 16, 15, 17, 19, 340, 2233, 1669, 5828, 7121, 15073, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestCreateObjectStore(t *testing.T) { mockServer := NewMockHttpServer(202, "") defer mockServer.Close() mockHttpClient := NewMockHttpClient(mockServer.URL) client := NewRookNetworkRestClient(mockServer.URL, mockHttpClient) store := model.ObjectStore{Name: "default", Gateway: model.Gateway{Port: 123}} resp, ...
explode_data.jsonl/27849
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 159 }
[ 2830, 3393, 4021, 1190, 6093, 1155, 353, 8840, 836, 8, 341, 77333, 5475, 1669, 1532, 11571, 2905, 5475, 7, 17, 15, 17, 11, 14676, 16867, 7860, 5475, 10421, 741, 77333, 26316, 1669, 1532, 11571, 26316, 30389, 5475, 20893, 340, 25291, 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 TestNewWindow(t *testing.T) { t.Run("normal offset", func(t *testing.T) { want := execute.Window{ Every: values.ConvertDuration(time.Minute), Period: values.ConvertDuration(time.Minute), Offset: values.ConvertDuration(time.Second), } got := MustWindow(values.ConvertDuration(time.Minute), values.Co...
explode_data.jsonl/17075
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 955 }
[ 2830, 3393, 3564, 4267, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 8252, 4347, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 50780, 1669, 9026, 23622, 515, 298, 197, 11510, 25, 220, 2750, 36179, 12945, 9730, 75770, 1326, 298, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestStructOnlyValidation(t *testing.T) { type Inner struct { Test string `validate:"len=5"` } type Outer struct { InnerStruct *Inner `validate:"required,structonly"` } outer := &Outer{ InnerStruct: nil, } validate := New() errs := validate.Struct(outer) NotEqual(t, errs, nil) AssertError(t, er...
explode_data.jsonl/77296
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 735 }
[ 2830, 3393, 9422, 7308, 13799, 1155, 353, 8840, 836, 8, 1476, 13158, 36356, 2036, 341, 197, 73866, 914, 1565, 7067, 2974, 2892, 28, 20, 8805, 197, 630, 13158, 55197, 2036, 341, 197, 197, 31597, 9422, 353, 31597, 1565, 7067, 2974, 6279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAlipayTradeRefund(t *testing.T) { client, _ := NewClient() data := request.AlipayTradeRefundRequest{ OutTradeNo: "20180901000000ATWP00001", RefundAmount: "9.99", RefundReason: "退款测试", } _, _ = client.SendRequest(request.AlipayTradeRefundMethod, data) }
explode_data.jsonl/80626
{ "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, 2101, 43912, 39173, 3945, 1241, 1155, 353, 8840, 836, 8, 341, 25291, 11, 716, 1669, 1532, 2959, 741, 8924, 1669, 1681, 9636, 43912, 39173, 3945, 1241, 1900, 515, 197, 197, 2662, 39173, 2753, 25, 256, 330, 17, 15, 16, 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 Test_HTTPS_Basic(t *testing.T) { s := g.Server(guid.S()) s.Group("/", func(group *ghttp.RouterGroup) { group.GET("/test", func(r *ghttp.Request) { r.Response.Write("test") }) }) s.EnableHTTPS( gtest.DataPath("https", "files", "server.crt"), gtest.DataPath("https", "files", "server.key"), ) s.SetDu...
explode_data.jsonl/23637
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 452 }
[ 2830, 3393, 34954, 50, 1668, 5971, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 342, 22997, 88433, 808, 2398, 1903, 5407, 35460, 2915, 17690, 353, 70, 1254, 31413, 2808, 8, 341, 197, 44260, 17410, 4283, 1944, 497, 2915, 2601, 353, 70, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_fileMd5(t *testing.T) { tempdir, err := ioutil.TempDir("", "") if nil != err { t.Fatal(err) } defer os.RemoveAll(tempdir) file := filepath.Join(tempdir, "def.txt") err = ioutil.WriteFile(file, []byte("def\n"), 0755) if nil != err { t.Fatal(err) } var hash string hash, err = fileMD5(file) if...
explode_data.jsonl/56635
{ "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, 2458, 72529, 20, 1155, 353, 8840, 836, 8, 1476, 16280, 3741, 11, 1848, 1669, 43144, 65009, 6184, 19814, 14676, 743, 2092, 961, 1848, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 2643, 84427, 9758, 3741, 692, 17661, 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...
4
func TestReservedWords(t *testing.T) { if pass := reservedWords("catch"); !pass { t.Error("Given \"catch\", numbers() returned false, expected true") } if pass := reservedWords("all_except"); !pass { t.Error("Given \"all_except\", reservedWords() returned false, expected true") } if pass := reservedWords("ex...
explode_data.jsonl/45806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 198 }
[ 2830, 3393, 53003, 23489, 1155, 353, 8840, 836, 8, 341, 743, 1494, 1669, 4591, 23489, 445, 7173, 5038, 753, 6385, 341, 197, 3244, 6141, 445, 22043, 7245, 7173, 16215, 5109, 368, 5927, 895, 11, 3601, 830, 1138, 197, 630, 743, 1494, 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...
6
func TestProcesses_add(t *testing.T) { const maxLen = 3 p := &processes{maxLen: maxLen} cfg, repo, _ := testcfg.BuildWithRepo(t) key0 := mustCreateKey(t, "0", repo) value0, cancel := mustCreateCacheable(t, cfg, repo) p.Add(key0, value0, time.Now().Add(time.Hour), cancel) requireProcessesValid(t, p) key1 := m...
explode_data.jsonl/81949
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 438 }
[ 2830, 3393, 92727, 2891, 1155, 353, 8840, 836, 8, 341, 4777, 1932, 11271, 284, 220, 18, 198, 3223, 1669, 609, 4630, 288, 90, 2810, 11271, 25, 1932, 11271, 630, 50286, 11, 15867, 11, 716, 1669, 1273, 14072, 25212, 2354, 25243, 1155, 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 TestLoadPolicyInOrder(t *testing.T) { r := require.New(t) p := &provider{af: &appfile.Appfile{ Policies: []v1beta1.AppPolicy{{Name: "policy-1"}, {Name: "policy-2"}, {Name: "policy-3"}}, }, app: &v1beta1.Application{ Spec: v1beta1.ApplicationSpec{Policies: []v1beta1.AppPolicy{{Name: "policy-1"}, {Name: "poli...
explode_data.jsonl/8859
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 668 }
[ 2830, 3393, 5879, 13825, 641, 4431, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1373, 7121, 1155, 340, 3223, 1669, 609, 19979, 90, 2577, 25, 609, 676, 1192, 5105, 1192, 515, 197, 10025, 42038, 25, 3056, 85, 16, 19127, 16, 5105, 13825, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIDDriverScan(t *testing.T) { id := ID{} err := id.Scan("9m4e2mr0ui3e8a215n4g") assert.NoError(t, err) assert.Equal(t, ID{0x4d, 0x88, 0xe1, 0x5b, 0x60, 0xf4, 0x86, 0xe4, 0x28, 0x41, 0x2d, 0xc9}, id) }
explode_data.jsonl/58927
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 915, 11349, 26570, 1155, 353, 8840, 836, 8, 341, 15710, 1669, 3034, 16094, 9859, 1669, 877, 54874, 445, 24, 76, 19, 68, 17, 20946, 15, 1963, 18, 68, 23, 64, 17, 16, 20, 77, 19, 70, 1138, 6948, 35699, 1155, 11, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestColoredLogs(t *testing.T) { const infoColor = "\033[36m" const warnColor = "\033[33m" const errorColor = "\033[31m" var log = Init(INFO_LEVEL, false, false) log.Info("test_log_without_color") var logMsgWithoutColor = log.GetLastLog() if strings.Contains(logMsgWithoutColor, infoColor) { t.Errorf("Got...
explode_data.jsonl/3654
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 425 }
[ 2830, 3393, 6127, 3018, 51053, 1155, 353, 8840, 836, 8, 341, 4777, 3546, 1636, 284, 2917, 15, 18, 18, 58, 18, 21, 76, 698, 4777, 8809, 1636, 284, 2917, 15, 18, 18, 58, 18, 18, 76, 698, 4777, 1465, 1636, 284, 2917, 15, 18, 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...
5
func TestHandshakeClientECDHEECDSAAESGCM(t *testing.T) { test := &clientTest{ name: "ECDHE-ECDSA-AES-GCM", args: []string{"-cipher", "ECDHE-ECDSA-AES128-GCM-SHA256"}, cert: testECDSACertificate, key: testECDSAPrivateKey, } runClientTestTLS12(t, test) }
explode_data.jsonl/27695
{ "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, 2314, 29661, 2959, 36, 6484, 1799, 7498, 5936, 6029, 1570, 38, 9985, 1155, 353, 8840, 836, 8, 341, 18185, 1669, 609, 2972, 2271, 515, 197, 11609, 25, 330, 36, 6484, 1799, 12, 7498, 72638, 6691, 1570, 12010, 9985, 756, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetAlertMapper(t *testing.T) { mapper.RegisterAlertMapper(v017.AlertMapper{}) for _, testCase := range testCases { t.Run(testCase.requestedVersion, func(t *testing.T) { hadPanic := false defer func() { if r := recover(); r != nil { hadPanic = true if hadPanic != testCase.hadPanic { ...
explode_data.jsonl/71536
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 403 }
[ 2830, 3393, 1949, 9676, 10989, 1155, 353, 8840, 836, 8, 341, 2109, 3106, 19983, 9676, 10989, 3747, 15, 16, 22, 40143, 10989, 6257, 692, 2023, 8358, 54452, 1669, 2088, 1273, 37302, 341, 197, 3244, 16708, 8623, 4207, 8223, 291, 5637, 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...
3
func TestTxWitnessSize(t *testing.T) { tests := []struct { in *MsgTx // Tx to encode size int // Expected serialized size w/ witnesses }{ // Transaction with an input which includes witness data, and // one output. {multiWitnessTx, 190}, } t.Logf("Running %d tests", len(tests)) for i, test := range...
explode_data.jsonl/24626
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 199 }
[ 2830, 3393, 31584, 98413, 1695, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 17430, 256, 353, 6611, 31584, 442, 39850, 311, 16164, 198, 197, 13832, 526, 262, 442, 31021, 32916, 1379, 289, 14, 27723, 198, 197, 59403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProperties_ValidateInvalidExtensions(t *testing.T) { tests := []struct { name string agentPoolProfiles []*AgentPoolProfile expectedErr error }{ { name: "Extensions for VirtualMachineScaleSets", agentPoolProfiles: []*AgentPoolProfile{ { Name: "agentpool...
explode_data.jsonl/17868
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 792 }
[ 2830, 3393, 7903, 62, 17926, 7928, 31282, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 1060, 914, 198, 197, 197, 8092, 10551, 62719, 29838, 16810, 10551, 8526, 198, 197, 42400, 7747, 981, 1465, 198, 197, 59403...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSeparateV4V6WithV6OnlyCIDRPrefix(t *testing.T) { cfg := constructTestConfig() iptConfigurator := NewIptablesConfigurator(cfg, &dep.StdoutStubDependencies{}) v4Range, v6Range, _ := iptConfigurator.separateV4V6("fd04:3e42:4a4e:3381::/64,ffff:ffff:ac10:ac10::/64") if v6Range.IsWildcard { t.Errorf("Expected...
explode_data.jsonl/65392
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 407 }
[ 2830, 3393, 14492, 349, 53, 19, 53, 21, 2354, 53, 21, 7308, 54146, 49, 14335, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 9245, 2271, 2648, 2822, 8230, 417, 2648, 57383, 1669, 1532, 40, 417, 4788, 2648, 57383, 28272, 11, 609, 14891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestAppend(t *testing.T) { var cfg config nl, err := Parse(&cfg, []byte(test1), &Options{Debug: true}) if err != nil { fmt.Printf("Error(%d): %v\n", nl, err) return } println(nl) res, err := Append(nil, cfg) if err != nil { fmt.Printf("Error: %v\n", err) return } fmt.Printf("CONFIG:\n%s\n", stri...
explode_data.jsonl/43283
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 155 }
[ 2830, 3393, 23877, 1155, 353, 8840, 836, 8, 341, 2405, 13286, 2193, 198, 9038, 75, 11, 1848, 1669, 14775, 2099, 14072, 11, 3056, 3782, 8623, 16, 701, 609, 3798, 90, 7939, 25, 830, 3518, 743, 1848, 961, 2092, 341, 197, 11009, 19367, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFib(t *testing.T) { tt := []struct { name string input int expected int }{ { name: "when N= 0 it should return 0", input: 0, expected: 0, }, { name: "when N = 1 it should return 1", input: 1, expected: 1, }, { name: "when n = 2 it should return 2"...
explode_data.jsonl/68644
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 331 }
[ 2830, 3393, 37, 579, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 22427, 262, 526, 198, 197, 42400, 526, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 257, 330, 9309, 451, 28, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconcileCancelledFailsTaskRunCancellation(t *testing.T) { // TestReconcileCancelledFailsTaskRunCancellation runs "Reconcile" on a PipelineRun with a single TaskRun. // The TaskRun cannot be cancelled. Check that the pipelinerun cancel fails, that reconcile fails and // an event is generated names.TestingS...
explode_data.jsonl/27297
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1189 }
[ 2830, 3393, 693, 40446, 457, 39473, 37, 6209, 6262, 6727, 82298, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 693, 40446, 457, 39473, 37, 6209, 6262, 6727, 82298, 8473, 330, 693, 40446, 457, 1, 389, 264, 40907, 6727, 448, 264, 3175, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEngineDeleteRangeBatch(t *testing.T) { defer leaktest.AfterTest(t)() testEngineDeleteRange(t, func(engine Engine, start, end MVCCKey) error { batch := engine.NewWriteOnlyBatch() defer batch.Close() if err := batch.ClearRange(start, end); err != nil { return err } batch2 := engine.NewWriteOnlyBat...
explode_data.jsonl/38114
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 4571, 6435, 6046, 21074, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 18185, 4571, 6435, 6046, 1155, 11, 2915, 48974, 8200, 11, 1191, 11, 835, 42271, 3706, 1592, 8, 1465, 341, 197, 2233, 754...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExprFromValue(t *testing.T) { tcases := []struct { in sqltypes.Value out SQLNode err string }{{ in: sqltypes.NULL, out: &NullVal{}, }, { in: sqltypes.NewInt64(1), out: NewIntVal([]byte("1")), }, { in: sqltypes.NewFloat64(1.1), out: NewFloatVal([]byte("1.1")), }, { in: sqltypes.Mak...
explode_data.jsonl/3380
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 476 }
[ 2830, 3393, 16041, 3830, 1130, 1155, 353, 8840, 836, 8, 341, 3244, 23910, 1669, 3056, 1235, 341, 197, 17430, 220, 5704, 9242, 6167, 198, 197, 13967, 7870, 1955, 198, 197, 9859, 914, 198, 197, 15170, 515, 197, 17430, 25, 220, 5704, 924...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEvalSliceExpression(t *testing.T) { RunJetTest(t, nil, []string{"111", "222", "333", "444"}, "SliceExpressionSlice_1", `{{range .[1:]}}{{.}}{{end}}`, `222333444`) RunJetTest(t, nil, []string{"111", "222", "333", "444"}, "SliceExpressionSlice_2", `{{range .[:2]}}{{.}}{{end}}`, `111222`) RunJetTest(t, nil, []...
explode_data.jsonl/22900
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 451 }
[ 2830, 3393, 54469, 33236, 9595, 1155, 353, 8840, 836, 8, 341, 85952, 35641, 2271, 1155, 11, 2092, 11, 3056, 917, 4913, 16, 16, 16, 497, 330, 17, 17, 17, 497, 330, 18, 18, 18, 497, 330, 19, 19, 19, 14345, 330, 33236, 9595, 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...
1
func TestBytes_Eq(t *testing.T) { assertEq(t, []eqAssert{ {NewBytes([]byte{1, 0, 0}), NewBytes([]byte{1, 0}), false}, {NewBytes([]byte{0, 0, 1}), NewBytes([]byte{0, 1}), false}, {NewBytes([]byte{0, 0, 0}), NewBytes([]byte{0, 0}), false}, {NewBytes([]byte{12, 48, 255}), NewBytes([]byte{12, 48, 255}), true}, {...
explode_data.jsonl/70598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 7078, 2089, 80, 1155, 353, 8840, 836, 8, 341, 6948, 27312, 1155, 11, 3056, 11006, 8534, 515, 197, 197, 90, 3564, 7078, 10556, 3782, 90, 16, 11, 220, 15, 11, 220, 15, 38842, 1532, 7078, 10556, 3782, 90, 16, 11, 220, 15,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRunningAddressesWithPods(t *testing.T) { fk := buildStatusSync() fk.PublishService = "" r, _ := fk.runningAddresses() if r == nil { t.Fatalf("returned nil but expected valid []string") } rl := len(r) if len(r) != 1 { t.Fatalf("returned %v but expected %v", rl, 1) } rv := r[0] if rv != "11.0.0.2"...
explode_data.jsonl/63335
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 177 }
[ 2830, 3393, 18990, 52290, 2354, 23527, 82, 1155, 353, 8840, 836, 8, 341, 1166, 74, 1669, 1936, 2522, 12154, 741, 1166, 74, 83935, 1860, 284, 35829, 7000, 11, 716, 1669, 62683, 57617, 52290, 741, 743, 435, 621, 2092, 341, 197, 3244, 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...
4
func TestValidCmd(t *testing.T) { tests := []struct { name string cmd string expected bool }{ { name: "valid string", cmd: "dev", expected: true, }, { name: "invalid", cmd: "build", expected: false, }, } for _, test := range tests { testutil.Run(t, test.n...
explode_data.jsonl/75804
{ "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, 4088, 15613, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 25920, 414, 914, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 257, 330, 1891, 914, 756, 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 TestAddLabelsToArgs(t *testing.T) { tests := []struct { name string argsIn []string labels map[string]string argsOut1 []string argsOut2 []string }{ { name: "one label in empty args", argsIn: []string{}, labels: map[string]string{ "label1": "value1", }, argsOut1: []string{...
explode_data.jsonl/65146
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 653 }
[ 2830, 3393, 2212, 23674, 1249, 4117, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 31215, 641, 256, 3056, 917, 198, 197, 95143, 256, 2415, 14032, 30953, 198, 197, 31215, 2662, 16, 3056, 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...
3
func TestBulkInsert(t *testing.T) { tests := []struct { vectors [][]float64 wants []int }{ { [][]float64{ {1, 0, 0, 0, 0, 0}, {0, 1, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0}, {0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 1, 0}, {0, 0, 0, 0, 0, 1}, {1, 1, 0, 0, 0, 0}, }, []int{1, 2, 3, 4, 5, 6, ...
explode_data.jsonl/31017
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 453 }
[ 2830, 3393, 88194, 13780, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 5195, 10605, 52931, 3649, 21, 19, 198, 197, 6692, 1783, 256, 3056, 396, 198, 197, 59403, 197, 197, 515, 298, 197, 16613, 3649, 21, 19, 515, 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...
5
func TestValidateInitContainers(t *testing.T) { volumeDevices := make(map[string]core.VolumeSource) capabilities.SetForTests(capabilities.Capabilities{ AllowPrivileged: true, }) successCase := []core.Container{ { Name: "container-1-same-host-port-different-protocol", Image: "image", Ports: []core.Con...
explode_data.jsonl/1023
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 698 }
[ 2830, 3393, 17926, 3803, 74632, 1155, 353, 8840, 836, 8, 341, 5195, 4661, 40835, 1669, 1281, 9147, 14032, 60, 2153, 79106, 3608, 340, 1444, 391, 8456, 4202, 2461, 18200, 51386, 8456, 78963, 8456, 515, 197, 197, 18605, 32124, 68431, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestAccAWSDxConnectionAssociation_multiConns(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheckAwsDxConnectionAssociationDestroy, Steps: []resource.TestStep{ { Config: testAccDxConnectionAssocia...
explode_data.jsonl/46833
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 231 }
[ 2830, 3393, 14603, 14419, 5491, 87, 4526, 63461, 25133, 1109, 4412, 1155, 353, 8840, 836, 8, 341, 50346, 8787, 1155, 11, 5101, 31363, 515, 197, 197, 4703, 3973, 25, 257, 2915, 368, 314, 1273, 14603, 4703, 3973, 1155, 8, 1153, 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 TestCollection_Remove(t *testing.T) { ast := require.New(t) cli := initClient("test") defer cli.Close(context.Background()) defer cli.DropCollection(context.Background()) cli.EnsureIndexes(context.Background(), nil, []string{"name"}) id1 := primitive.NewObjectID().Hex() id2 := primitive.NewObjectID().Hex()...
explode_data.jsonl/18379
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 901 }
[ 2830, 3393, 6482, 66843, 1155, 353, 8840, 836, 8, 341, 88836, 1669, 1373, 7121, 1155, 340, 86448, 1669, 2930, 2959, 445, 1944, 1138, 16867, 21348, 10421, 5378, 19047, 2398, 16867, 21348, 21688, 6482, 5378, 19047, 2398, 86448, 22834, 19098, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMvLogFile(t *testing.T) { MvLogFile("/Users/devs/7b3d5546bd54152d/stdout.log.gz", "/Users/devs/7b3d5546bd54152d/stdout.log") }
explode_data.jsonl/82645
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 44, 85, 98857, 1155, 353, 8840, 836, 8, 341, 9209, 85, 98857, 4283, 7137, 35061, 82, 14, 22, 65, 18, 67, 20, 20, 19, 21, 8940, 20, 19, 16, 20, 17, 67, 21546, 411, 1665, 20963, 497, 3521, 7137, 35061, 82, 14, 22, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStatusToOCIStateSuccessfulWithRunningState(t *testing.T) { testContID := "testContID" testPID := 12345 testRootFs := "testRootFs" state := types.ContainerState{ State: types.StateRunning, } containerAnnotations := map[string]string{ vcAnnotations.BundlePathKey: tempBundlePath, } cStatus := vc.C...
explode_data.jsonl/44031
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 312 }
[ 2830, 3393, 2522, 1249, 63983, 1397, 36374, 2354, 18990, 1397, 1155, 353, 8840, 836, 8, 1476, 18185, 818, 915, 1669, 330, 1944, 818, 915, 698, 18185, 33751, 1669, 220, 16, 17, 18, 19, 20, 198, 18185, 8439, 48300, 1669, 330, 1944, 8439...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientHealthcheckStartupTimeout(t *testing.T) { start := time.Now() _, err := NewClient(SetURL("http://localhost:9299"), SetHealthcheckTimeoutStartup(5*time.Second)) duration := time.Since(start) if !IsConnErr(err) { t.Fatal(err) } if !strings.Contains(err.Error(), "connection refused") { t.Fatalf("e...
explode_data.jsonl/38001
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 2959, 14542, 2028, 39076, 7636, 1155, 353, 8840, 836, 8, 341, 21375, 1669, 882, 13244, 741, 197, 6878, 1848, 1669, 1532, 2959, 52474, 3144, 445, 1254, 1110, 8301, 25, 24, 17, 24, 24, 3975, 2573, 14542, 2028, 7636, 39076, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestValidateCoreDNSImageTag(t *testing.T) { tests := []struct { name string fromVer string toVer string expectErrSubStr string }{ { name: "fromVer is higher than toVer", fromVer: "1.6.2", toVer: "1.1.3", expectErrSubStr: "must be gre...
explode_data.jsonl/22073
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1014 }
[ 2830, 3393, 17926, 5386, 61088, 1906, 5668, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 42727, 10141, 260, 914, 198, 197, 31709, 10141, 1843, 914, 198, 197, 24952, 7747, 3136, 2580, 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...
2
func TestSubmitContainerStateChange(t *testing.T) { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() client, _, mockSubmitStateClient := NewMockClient(mockCtrl, ec2.NewBlackholeEC2MetadataClient(), nil) mockSubmitStateClient.EXPECT().SubmitContainerStateChange(&containerSubmitInputMatcher{ ecs.SubmitCo...
explode_data.jsonl/61440
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 671 }
[ 2830, 3393, 8890, 4502, 1397, 4072, 1155, 353, 8840, 836, 8, 341, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 7860, 15001, 991, 18176, 741, 25291, 11, 8358, 7860, 8890, 1397, 2959, 1669, 1532, 11571, 2959, 30389, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOverviewSuccess(t *testing.T) { c := setupClient("testns", "ov2", false, false) d, err := c.Overview(OverviewOptions{ Namespace: "testns", LinkedName: "ov2", Logger: &logfakes.Logger{}, Context: context.Background(), }) assert.Nil(t, err) assert.NotNil(t, d) }
explode_data.jsonl/17751
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 124 }
[ 2830, 3393, 41044, 7188, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 6505, 2959, 445, 1944, 4412, 497, 330, 859, 17, 497, 895, 11, 895, 692, 2698, 11, 1848, 1669, 272, 13, 41044, 7, 41044, 3798, 515, 197, 90823, 25, 220, 330, 1944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSigner(t *testing.T) { ecdsaKey, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) if err != nil { t.Fatalf("Error generating test ECDSA key: %v", err) } rsaKey, err := rsa.GenerateKey(rand.Reader, 1024) if err != nil { t.Fatalf("Error generating test RSA key: %v", err) } ctrl := gomock.NewCo...
explode_data.jsonl/47884
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1209 }
[ 2830, 3393, 7264, 261, 1155, 353, 8840, 836, 8, 341, 197, 757, 96780, 1592, 11, 1848, 1669, 384, 4385, 9081, 57582, 1592, 7, 613, 11442, 292, 1069, 17, 20, 21, 1507, 10382, 47431, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 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...
2
func TestReturnLeaseShouldReturnJobToQueue(t *testing.T) { withRepository(func(r *RedisJobRepository) { job := addLeasedJob(t, r, "queue1", "cluster1") returned, e := r.ReturnLease("cluster1", job.Id) assert.Nil(t, e) assert.NotNil(t, returned) queue, e := r.PeekQueue("queue1", 100) assert.Nil(t, e) as...
explode_data.jsonl/32043
{ "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, 5598, 2304, 519, 14996, 5598, 12245, 1249, 7554, 1155, 353, 8840, 836, 8, 341, 46948, 4624, 18552, 2601, 353, 48137, 12245, 4624, 8, 341, 197, 68577, 1669, 912, 2304, 1475, 12245, 1155, 11, 435, 11, 330, 4584, 16, 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...
1
func TestSwapMsg(t *testing.T) { input, h := setup(t) params := input.MarketKeeper.GetParams(input.Ctx) params.MinStabilitySpread = sdk.ZeroDec() input.MarketKeeper.SetParams(input.Ctx, params) beforeIqPoolDelta := input.MarketKeeper.GetIqPoolDelta(input.Ctx) amt := sdk.NewInt(10) offerCoin := sdk.NewCoin(cor...
explode_data.jsonl/23282
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 628 }
[ 2830, 3393, 46179, 6611, 1155, 353, 8840, 836, 8, 341, 22427, 11, 305, 1669, 6505, 1155, 692, 25856, 1669, 1946, 1321, 54560, 77233, 2234, 4870, 5384, 727, 3998, 340, 25856, 17070, 623, 2897, 46486, 284, 45402, 35489, 4900, 741, 22427, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_CustomStyle(t *testing.T) { gtest.C(t, func(t *gtest.T) { page := gpage.New(5, 1, 2, `/user/list/{.page}`) page.LinkStyle = "MyPageLink" page.SpanStyle = "MyPageSpan" page.SelectStyle = "MyPageSelect" t.Assert(page.NextPage(), `<a class="MyPageLink" href="/user/list/3" title="">></a>`) t.Assert(p...
explode_data.jsonl/55797
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 488 }
[ 2830, 3393, 57402, 2323, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 35272, 1669, 342, 2893, 7121, 7, 20, 11, 220, 16, 11, 220, 17, 11, 37301, 872, 20936, 9388, 13, 2893, 2708...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadOrGenValidator(t *testing.T) { assert := assert.New(t) tempKeyFile, err := ioutil.TempFile("", "priv_validator_key_") require.Nil(t, err) tempStateFile, err := ioutil.TempFile("", "priv_validator_state_") require.Nil(t, err) tempKeyFilePath := tempKeyFile.Name() if err := os.Remove(tempKeyFilePath...
explode_data.jsonl/30344
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 304 }
[ 2830, 3393, 5879, 2195, 9967, 14256, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 16280, 1592, 1703, 11, 1848, 1669, 43144, 65009, 1703, 19814, 330, 11887, 64959, 3097, 62, 1138, 17957, 59678, 1155, 11, 1848, 340, 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 TestSuccessfulLastCommitForPathRequest(t *testing.T) { server, serverSocketPath := startTestServices(t) defer server.Stop() client, conn := newCommitServiceClient(t, serverSocketPath) defer conn.Close() testRepo, _, cleanupFn := testhelper.NewTestRepo(t) defer cleanupFn() commit := &pb.GitCommit{ Id: ...
explode_data.jsonl/53834
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1012 }
[ 2830, 3393, 36374, 5842, 33441, 2461, 1820, 1900, 1155, 353, 8840, 836, 8, 341, 41057, 11, 3538, 10286, 1820, 1669, 1191, 2271, 11025, 1155, 340, 16867, 3538, 30213, 2822, 25291, 11, 4534, 1669, 501, 33441, 1860, 2959, 1155, 11, 3538, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestNewGitlabSASTReport(t *testing.T) { start := time.Date(2021, time.May, 25, 8, 0, 0, 0, time.UTC) end := time.Date(2021, time.May, 25, 8, 1, 0, 0, time.UTC) glSAST := NewGitlabSASTReport(start, end).(*gitlabSASTReport) require.Equal( t, "https://gitlab.com/gitlab-org/security-products/security-report-sc...
explode_data.jsonl/51819
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 302 }
[ 2830, 3393, 3564, 46562, 14380, 50, 6349, 10361, 1155, 353, 8840, 836, 8, 341, 21375, 1669, 882, 8518, 7, 17, 15, 17, 16, 11, 882, 1321, 352, 11, 220, 17, 20, 11, 220, 23, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 882, 87069,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParsePodResource(t *testing.T) { containers := make([]v1.Container, 0) // container 01 c1Resources := make(map[v1.ResourceName]resource.Quantity) c1Resources[v1.ResourceMemory] = resource.MustParse("500M") c1Resources[v1.ResourceCPU] = resource.MustParse("1") c1Resources[v1.ResourceName("nvidia.com/gpu"...
explode_data.jsonl/63794
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1645 }
[ 2830, 3393, 14463, 23527, 4783, 1155, 353, 8840, 836, 8, 341, 197, 39399, 1669, 1281, 10556, 85, 16, 33672, 11, 220, 15, 692, 197, 322, 5476, 220, 15, 16, 198, 1444, 16, 11277, 1669, 1281, 9147, 16529, 16, 20766, 675, 60, 9233, 6626...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnreadRune(t *testing.T) { got := "" segments := []string{"Hello, world:", "日本語"} data := strings.Join(segments, "") r := NewReader(&StringReader{data: segments}) // Normal execution. for { r1, _, err := r.ReadRune() if err != nil { if err != io.EOF { t.Error("unexpected EOF") } break ...
explode_data.jsonl/69582
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 329 }
[ 2830, 3393, 1806, 878, 49, 2886, 1155, 353, 8840, 836, 8, 341, 3174, 354, 1669, 8389, 197, 56829, 1669, 3056, 917, 4913, 9707, 11, 1879, 12147, 330, 101059, 102819, 16707, 8924, 1669, 9069, 22363, 10478, 26139, 11, 14676, 7000, 1669, 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...
8
func TestRuleExist(t *testing.T) { defer func() { if r := recover(); r != nil { t.Fatalf("TestRuleExist panic") } }() RuleExist(util.WithCacheOnly(context.Background()), "", "", "", "") RuleExist(context.Background(), "", "", "", "") }
explode_data.jsonl/74434
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 100 }
[ 2830, 3393, 11337, 25613, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 743, 435, 1669, 11731, 2129, 435, 961, 2092, 341, 298, 3244, 30762, 445, 2271, 11337, 25613, 21975, 1138, 197, 197, 532, 197, 69826, 11143, 1111, 25613,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServiceCreateWithClusterLocal(t *testing.T) { action, created, _, err := fakeServiceCreate([]string{ "service", "create", "foo", "--image", "gcr.io/foo/bar:baz", "--cluster-local"}, false) if err != nil { t.Fatal(err) } else if !action.Matches("create", "services") { t.Fatalf("Bad action %v", actio...
explode_data.jsonl/42459
{ "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, 1860, 4021, 2354, 28678, 7319, 1155, 353, 8840, 836, 8, 341, 38933, 11, 3465, 11, 8358, 1848, 1669, 12418, 1860, 4021, 10556, 917, 515, 197, 197, 1, 7936, 497, 330, 3182, 497, 330, 7975, 497, 14482, 1805, 497, 330, 70, 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...
4
func TestSearchChartVersions(t *testing.T) { expectedOutput := searchVersionOutput expectedArgs := []string{"search", chart, "--versions"} helm, runner := createHelm(t, nil, expectedOutput) versions, err := helm.SearchChartVersions(chart) assert.NoError(t, err, "should search chart versions without any error") ...
explode_data.jsonl/4655
{ "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, 5890, 14488, 69015, 1155, 353, 8840, 836, 8, 341, 42400, 5097, 1669, 2711, 5637, 5097, 198, 42400, 4117, 1669, 3056, 917, 4913, 1836, 497, 9487, 11, 14482, 28290, 16707, 9598, 23162, 11, 22259, 1669, 1855, 39, 23162, 1155, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestEnum(t *testing.T) { if item, err := Default.Enum(0, 274, 1); err != nil { t.Fatal(err) } else if item.Name != "AUTHENTICATE_ONLY" { t.Errorf( "Unexpected value %s, expected AUTHENTICATE_ONLY", item.Name, ) } }
explode_data.jsonl/9075
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 109 }
[ 2830, 3393, 10766, 1155, 353, 8840, 836, 8, 341, 743, 1509, 11, 1848, 1669, 7899, 43225, 7, 15, 11, 220, 17, 22, 19, 11, 220, 16, 1215, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 92, 770, 421, 1509, 2967, 961, 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 TestExec(t *testing.T) { t.Parallel() testWithAndWithoutPreferSimpleProtocol(t, func(t *testing.T, conn *pgx.Conn) { if results := mustExec(t, conn, "create temporary table foo(id integer primary key);"); string(results) != "CREATE TABLE" { t.Error("Unexpected results from Exec") } // Accept parameter...
explode_data.jsonl/40004
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 429 }
[ 2830, 3393, 10216, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18185, 2354, 3036, 26040, 4703, 802, 16374, 20689, 1155, 11, 2915, 1155, 353, 8840, 836, 11, 4534, 353, 3517, 87, 50422, 8, 341, 197, 743, 3059, 1669, 1969, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransientResourceInspectDelete(t *testing.T) { env := BuildEnv(t) logger := Logger{} kapp := Kapp{t, env.Namespace, env.KappBinaryPath, logger} yaml1 := ` --- apiVersion: v1 kind: Service metadata: name: redis-svc spec: selector: app: redis-svc ports: - name: http port: 80 ` name := "tes...
explode_data.jsonl/75604
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1784 }
[ 2830, 3393, 48183, 4783, 58533, 6435, 1155, 353, 8840, 836, 8, 341, 57538, 1669, 7854, 14359, 1155, 340, 17060, 1669, 9514, 16094, 16463, 676, 1669, 730, 676, 90, 83, 11, 6105, 46011, 11, 6105, 11352, 676, 21338, 1820, 11, 5925, 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...
1
func TestSelectingRowToggles(t *testing.T) { cols := []Column{ NewColumn("id", "ID", 3), } model := New(cols).WithRows([]Row{ NewRow(RowData{ "id": "first", }), NewRow(RowData{ "id": "second", }), NewRow(RowData{ "id": "third", }), }).Focused(true).SelectableRows(true) keyEnter := tea.KeyM...
explode_data.jsonl/45272
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 407 }
[ 2830, 3393, 3379, 287, 3102, 51, 50852, 1155, 353, 8840, 836, 8, 341, 1444, 3069, 1669, 3056, 2933, 515, 197, 197, 3564, 2933, 445, 307, 497, 330, 915, 497, 220, 18, 1326, 197, 630, 19727, 1669, 1532, 70177, 568, 2354, 9024, 10556, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetIncidents(t *testing.T) { pdclient := &mockAPIClient{} incidents := make(map[string]map[string][]Incident) var db *gorm.DB manager := Manage{pdclient, incidents, db} err := manager.GetServices() if err != nil { t.Fatalf("an error '%s' was not expected when get services", err) } err = manager.GetI...
explode_data.jsonl/8539
{ "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, 1949, 39245, 6880, 1155, 353, 8840, 836, 8, 341, 3223, 67, 2972, 1669, 609, 16712, 2537, 98900, 16094, 197, 2840, 6880, 1669, 1281, 9147, 14032, 60, 2186, 14032, 45725, 39245, 1713, 340, 2405, 2927, 353, 73281, 22537, 271, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3