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 TestTransformFromCloudEventEmptyReadins(t *testing.T) { singleCloudEvent := []byte(`{}`) var cloudEvents [][]byte cloudEvents = append(cloudEvents, singleCloudEvent) conv := NewConversion() continuePipeline, result := conv.TransformFromCloudEvent(context, cloudEvents) _, ok := result.(error) assert.NotNil(t...
explode_data.jsonl/58247
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 8963, 3830, 16055, 1556, 3522, 4418, 1330, 1155, 353, 8840, 836, 8, 341, 1903, 2173, 16055, 1556, 1669, 3056, 3782, 5809, 90, 27085, 2405, 9437, 7900, 52931, 3782, 198, 197, 12361, 7900, 284, 8737, 9849, 2950, 7900, 11, 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 TestTransportHeadChunkedResponse(t *testing.T) { defer afterTest(t) ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) { if r.Method != "HEAD" { panic("expected HEAD; got " + r.Method) } w.Header().Set("Transfer-Encoding", "chunked") // client should ignore w.Header().Set("x-clien...
explode_data.jsonl/4883
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 414 }
[ 2830, 3393, 27560, 12346, 28304, 291, 2582, 1155, 353, 8840, 836, 8, 341, 16867, 1283, 2271, 1155, 340, 57441, 1669, 54320, 70334, 7121, 5475, 7, 3050, 9626, 18552, 3622, 5949, 6492, 11, 435, 353, 1900, 8, 341, 197, 743, 435, 20798, 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...
2
func TestQuickSort(t *testing.T) { arr := []int{33, 42, 1, 2, 4, 5, 21, 55, 2, 19} expectedArr := []int{1, 2, 2, 4, 5 ,19, 21, 33, 42, 55} sortedArr := QuickSort(arr) if !reflect.DeepEqual(sortedArr, expectedArr) { t.Error("Result doesn't equal expected result") } }
explode_data.jsonl/24315
{ "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, 24318, 10231, 1155, 353, 8840, 836, 8, 341, 36511, 1669, 3056, 396, 90, 18, 18, 11, 220, 19, 17, 11, 220, 16, 11, 220, 17, 11, 220, 19, 11, 220, 20, 11, 220, 17, 16, 11, 220, 20, 20, 11, 220, 17, 11, 220, 16, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestCancelContextStopsServer(t *testing.T) { closeListener := make(chan struct{}) listener := &testutils.MockListener{ AcceptFunc: func(i int) (net.Conn, error) { <-closeListener return nil, io.EOF }, CloseChan: closeListener, } server := &RetryServer{ Listener: listener, } timeout := 10 * tim...
explode_data.jsonl/71925
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 269 }
[ 2830, 3393, 9269, 1972, 623, 3721, 5475, 1155, 353, 8840, 836, 8, 341, 27873, 2743, 1669, 1281, 35190, 2036, 37790, 14440, 798, 1669, 609, 1944, 6031, 24664, 2743, 515, 197, 197, 16646, 9626, 25, 2915, 1956, 526, 8, 320, 4711, 50422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateExecute(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() th.Mux.HandleFunc("/servers", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusAccepted) w.Header().Add("Content-Type", "application/json") fmt.Fprintf(w, `{"server":{}}`) }) cmd := &commandCreate{ Ctx: &ha...
explode_data.jsonl/75792
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 251 }
[ 2830, 3393, 4021, 17174, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 70479, 1321, 2200, 63623, 4283, 67696, 497, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6692, 69794...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfig_LoadDirectory(t *testing.T) { c := NewConfig() require.NoError(t, c.LoadConfig("./testdata/single_plugin.toml")) require.NoError(t, c.LoadDirectory("./testdata/subconfig")) // Create the expected data expectedPlugins := make([]*MockupInputPlugin, 4) expectedConfigs := make([]*models.InputConfig, ...
explode_data.jsonl/72168
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1286 }
[ 2830, 3393, 2648, 19553, 9310, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1532, 2648, 741, 17957, 35699, 1155, 11, 272, 13969, 2648, 13988, 92425, 96562, 23110, 73494, 75, 5455, 17957, 35699, 1155, 11, 272, 13969, 9310, 13988, 92425, 37885...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDefaultAndValidateReportTemplate(t *testing.T) { testCases := []struct { id string controller *Controller expected *Controller expectedErr bool }{ { id: "no report_template or report_templates specified, no changes expected", controller: &Controller{}, expected: &Co...
explode_data.jsonl/8101
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 741 }
[ 2830, 3393, 3675, 3036, 17926, 10361, 7275, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 15710, 688, 914, 198, 197, 61615, 220, 353, 2051, 198, 197, 42400, 262, 353, 2051, 198, 197, 42400, 7747, 1807, 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 TestFetch(t *testing.T) { compose.EnsureUp(t, "elasticsearch") host := net.JoinHostPort(getEnvHost(), getEnvPort()) err := createIndex(host) assert.NoError(t, err) version, err := getElasticsearchVersion(host) if err != nil { t.Fatal("getting elasticsearch version", err) } err = enableTrialLicense(hos...
explode_data.jsonl/870
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 381 }
[ 2830, 3393, 20714, 1155, 353, 8840, 836, 8, 341, 32810, 2900, 22834, 19098, 2324, 1155, 11, 330, 301, 27791, 5130, 63104, 1669, 4179, 22363, 9296, 7084, 5433, 14359, 9296, 1507, 633, 14359, 7084, 2398, 9859, 1669, 1855, 1552, 19973, 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...
2
func TestIsCommitment(t *testing.T) { p := testTxout.scriptPubKey.IsCommitment([]byte{0xe1, 0x2a, 0x40, 0xd4}) assert.False(t, p, "not qualified committing data") p = testTxout.scriptPubKey.IsCommitment([]byte{0xe1, 0x2a, 0x40, 0xd4, 0xa2, 0x21, 0x8d, 0x33, 0xf2, 0x08, 0xb9, 0xa0, 0x44, 0x78, 0x94, 0xdc, 0x9b, 0x...
explode_data.jsonl/38870
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 491 }
[ 2830, 3393, 3872, 33441, 478, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 1273, 31584, 411, 46713, 29162, 1592, 4506, 33441, 478, 10556, 3782, 90, 15, 8371, 16, 11, 220, 15, 87, 17, 64, 11, 220, 15, 87, 19, 15, 11, 220, 15, 9703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_printTagsUpToWidth(t *testing.T) { type args struct { statusTags map[string]imageapi.TagEventList preferredWidth int } tests := []struct { name string args args want string }{ {name: "empty"}, {name: "1", want: "very-long-name", args: args{statusTags: map[string]imageapi.TagEventList{"ve...
explode_data.jsonl/61179
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 688 }
[ 2830, 3393, 10064, 15930, 2324, 1249, 3327, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 23847, 15930, 257, 2415, 14032, 60, 1805, 2068, 23676, 1556, 852, 198, 197, 40346, 5554, 3327, 526, 198, 197, 532, 78216, 1669, 3056,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDockerBuildTargetStage(t *testing.T) { f := newIBDFixture(t, k8s.EnvGKE) defer f.TearDown() iTarget := NewSanchoDockerBuildImageTarget(f) db := iTarget.BuildDetails.(model.DockerBuild) db.TargetStage = "stage" iTarget.BuildDetails = db manifest := manifestbuilder.New(f, "sancho"). WithK8sYAML(testya...
explode_data.jsonl/38278
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 35, 13659, 11066, 6397, 19398, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 3256, 5262, 12735, 1155, 11, 595, 23, 82, 81214, 38, 3390, 340, 16867, 282, 836, 682, 4454, 2822, 8230, 6397, 1669, 1532, 23729, 958, 35, 13659,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTerragruntInfo(t *testing.T) { t.Parallel() cleanupTerraformFolder(t, TEST_FIXTURE_HOOKS_INIT_ONCE_WITH_SOURCE_NO_BACKEND) tmpEnvPath := copyEnvironment(t, "fixture-hooks/init-once") rootPath := util.JoinPath(tmpEnvPath, TEST_FIXTURE_HOOKS_INIT_ONCE_WITH_SOURCE_NO_BACKEND) showStdout := bytes.Buffer{} ...
explode_data.jsonl/10123
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 384 }
[ 2830, 3393, 51402, 68305, 3850, 1731, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 60639, 51, 13886, 627, 13682, 1155, 11, 13602, 42635, 41486, 82251, 50, 14446, 98814, 23929, 25430, 9100, 77795, 340, 20082, 14359, 1820, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDuplicateField(t *testing.T) { commonFields := common.Fields{ common.Field{Name: "context", Path: "something"}, common.Field{Name: "context", Path: "something", Type: "keyword"}, } trans, err := newFieldsTransformer(version, commonFields) assert.NoError(t, err) _, err = trans.transform() assert.Error...
explode_data.jsonl/37632
{ "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, 53979, 1877, 1155, 353, 8840, 836, 8, 341, 83825, 8941, 1669, 4185, 42809, 515, 197, 83825, 17087, 63121, 25, 330, 2147, 497, 7933, 25, 330, 33331, 7115, 197, 83825, 17087, 63121, 25, 330, 2147, 497, 7933, 25, 330, 33331, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddDeleteOrder(t *testing.T) { cs := fillChangeset("Delete") if cs.Delete[0].Kind != "DeploymentConfig" { t.Errorf("DC needs to be deleted before PVC") } if cs.Delete[1].Kind != "PersistentVolumeClaim" { t.Errorf("PVC needs to be deleted before SA") } }
explode_data.jsonl/33776
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 99 }
[ 2830, 3393, 2212, 6435, 4431, 1155, 353, 8840, 836, 8, 341, 71899, 1669, 5155, 11317, 295, 445, 6435, 1138, 743, 10532, 18872, 58, 15, 936, 10629, 961, 330, 75286, 2648, 1, 341, 197, 3244, 13080, 445, 5626, 3880, 311, 387, 11062, 1573...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerate(t *testing.T) { tmpDir := tmpPath(t) defer os.RemoveAll(tmpDir) v6, _ := common.NewVersion("6.0.0") versions := []*common.Version{v6} for _, version := range versions { generator, err := NewGenerator("beat-*", "b eat ?!", fieldsYml, tmpDir, "7.0.0-alpha1", *version) if err != nil { t.Fata...
explode_data.jsonl/3909
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 257 }
[ 2830, 3393, 31115, 1155, 353, 8840, 836, 8, 341, 20082, 6184, 1669, 4174, 1820, 1155, 340, 16867, 2643, 84427, 10368, 6184, 692, 5195, 21, 11, 716, 1669, 4185, 7121, 5637, 445, 21, 13, 15, 13, 15, 1138, 197, 28290, 1669, 29838, 5464, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMount(t *testing.T) { graph, driver := tempGraph(t) defer os.RemoveAll(graph.root) defer driver.Cleanup() archive, err := fakeTar() if err != nil { t.Fatal(err) } image, err := graph.Create(archive, "", "", "Testing", "", nil, nil) if err != nil { t.Fatal(err) } tmp, err := ioutil.TempDir("", "d...
explode_data.jsonl/64319
{ "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, 16284, 1155, 353, 8840, 836, 8, 341, 66616, 11, 5579, 1669, 2730, 11212, 1155, 340, 16867, 2643, 84427, 24312, 12576, 340, 16867, 5579, 727, 60639, 2822, 197, 16019, 11, 1848, 1669, 12418, 62733, 741, 743, 1848, 961, 2092, 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...
7
func TestUnstakeRequest(t *testing.T) { if !areTestAPIKeysSet() || !canManipulateRealOrders { t.Skip("skipping test, either api keys or canManipulateRealOrders isn't set") } r, err := f.UnstakeRequest(context.Background(), currency.FTT, 0.1) if err != nil { t.Fatal(err) } success, err := f.CancelUnstakeReque...
explode_data.jsonl/15254
{ "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, 1806, 267, 726, 1900, 1155, 353, 8840, 836, 8, 341, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 1369, 753, 4814, 92876, 6334, 12768, 24898, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 11, 2987, 6330, 6894, 476, 646, 9287...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNoErrorOnNonCyclicTypeRefsInputType(t *testing.T) { assert := assert.New(t) vs := newTestValueStore() defer vs.Close() type User struct { ID string `noms:"id"` } type Account struct { PendingUsers map[string]User Users map[string]User } var a Account typ := marshal.MustMarshalType(vs, ...
explode_data.jsonl/17732
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 167 }
[ 2830, 3393, 2753, 1454, 1925, 8121, 34, 65304, 929, 82807, 2505, 929, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 5195, 82, 1669, 501, 2271, 1130, 6093, 741, 16867, 6165, 10421, 2822, 13158, 2657, 2036, 341, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestV1EnvsnapResult_String_Markdown(t *testing.T) { sys := NewSystemResult() sys.OS = "testOS" v1 := NewV1EnvsnapResult() v1.System = sys data, err := v1.String("markdown") assert.NoError(t, err) assert.Equal(t, "#### Environment\n\n**System**\n- _os_: testOS\n", data) }
explode_data.jsonl/62955
{ "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, 53, 16, 1702, 11562, 6861, 2077, 31777, 1245, 838, 2923, 1155, 353, 8840, 836, 8, 341, 41709, 1669, 1532, 2320, 2077, 741, 41709, 57054, 284, 330, 1944, 3126, 1837, 5195, 16, 1669, 1532, 53, 16, 1702, 11562, 6861, 2077, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestContainerNoImage(t *testing.T) { t.Parallel() ctx, cancel := testContext() defer cancel() id := t.Name() client, err := newClient(t, address) if err != nil { t.Fatal(err) } defer client.Close() container, err := client.NewContainer(ctx, id, WithNewSpec()) if err != nil { t.Fatal(err) } defer...
explode_data.jsonl/39648
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 230 }
[ 2830, 3393, 4502, 2753, 1906, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20985, 11, 9121, 1669, 1273, 1972, 741, 16867, 9121, 741, 15710, 1669, 259, 2967, 2822, 25291, 11, 1848, 1669, 501, 2959, 1155, 11, 2621, 340, 743, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestIPAddress(t *testing.T) { c, err := NewContainer(ContainerName) if err != nil { t.Errorf(err.Error()) } if unprivileged() { time.Sleep(3 * time.Second) } if _, err := c.IPAddress("lo"); err != nil { t.Errorf(err.Error()) } }
explode_data.jsonl/2801
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 87976, 1155, 353, 8840, 836, 8, 341, 1444, 11, 1848, 1669, 1532, 4502, 75145, 675, 340, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 3964, 6141, 2398, 197, 630, 743, 650, 97288, 368, 341, 197, 21957, 31586, 7, 18, 353, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestInterruptedBlobUpload(t *testing.T) { Convey("Successfully cleaning interrupted blob uploads", t, func() { port := test.GetFreePort() baseURL := test.GetBaseURL(port) conf := config.New() conf.HTTP.Port = port ctlr := api.NewController(conf) ctlr.Config.Storage.RootDirectory = t.TempDir() go s...
explode_data.jsonl/77685
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2717 }
[ 2830, 3393, 22528, 291, 37985, 13844, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 35959, 15826, 36783, 23404, 66563, 497, 259, 11, 2915, 368, 341, 197, 52257, 1669, 1273, 2234, 10940, 7084, 741, 197, 24195, 3144, 1669, 1273, 2234, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAuthzCheck(t *testing.T) { t.Parallel() checker := NewMiddleware() check := func(ctx context.Context, req interface{}) (interface{}, error) { authCtx, ok := authz.FromContext(ctx) require.True(t, ok) authCtx.Checked = true return struct{}{}, nil } check = checker.AuthzCheck()(check) _, err := ...
explode_data.jsonl/24357
{ "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, 5087, 89, 3973, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 25157, 261, 1669, 1532, 24684, 2822, 25157, 1669, 2915, 7502, 2266, 9328, 11, 4232, 3749, 28875, 320, 4970, 22655, 1465, 8, 341, 197, 78011, 23684, 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 TestBot_GetChat(t *testing.T) { type fields struct { apiClient apiClient } tests := []struct { name string fields fields wantResult axon.O wantErr bool }{ { name: "test1", fields: fields{ apiClient: &mockAPIClient{ method: "getChat", interfaceMethod: func() interfac...
explode_data.jsonl/46098
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 462 }
[ 2830, 3393, 23502, 13614, 15672, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 54299, 2959, 6330, 2959, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 55276, 257, 5043, 198, 197, 50780, 2077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCommandHandler_WithValidationError(t *testing.T) { inner := &mocks.CommandHandler{} m := NewMiddleware() h := eh.UseCommandHandlerMiddleware(inner, m) cmd := &mocks.Command{ ID: uuid.New(), Content: "content", } e := errors.New("a validation error") c := CommandWithValidation(cmd, func() error ...
explode_data.jsonl/24291
{ "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, 4062, 3050, 62, 2354, 80553, 1155, 353, 8840, 836, 8, 341, 197, 4382, 1669, 609, 16712, 82, 12714, 3050, 16094, 2109, 1669, 1532, 24684, 741, 9598, 1669, 35246, 9046, 4062, 3050, 24684, 68603, 11, 296, 340, 25920, 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 TestExtractExt(t *testing.T) { key := "unprocessed/1234567890.pdf" ext := extractExt(key) if ext != ".pdf" { t.Error("not a pdf ext") } }
explode_data.jsonl/67074
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 28959, 6756, 1155, 353, 8840, 836, 8, 972, 23634, 1669, 330, 359, 34022, 14, 16, 17, 18, 19, 20, 21, 22, 23, 24, 15, 15995, 5031, 95450, 1669, 8649, 6756, 4857, 1218, 743, 1303, 961, 5933, 11828, 1, 972, 197, 3244, 614...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapLoadPinned(t *testing.T) { tmp := testutils.TempBPFFS(t) c := qt.New(t) spec := spec1.Copy() m1, err := NewMapWithOptions(spec, MapOptions{PinPath: tmp}) c.Assert(err, qt.IsNil) defer m1.Close() pinned := m1.IsPinned() c.Assert(pinned, qt.Equals, true) path := filepath.Join(tmp, spec.Name) m2, ...
explode_data.jsonl/21656
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 213 }
[ 2830, 3393, 2227, 5879, 47, 20561, 1155, 353, 8840, 836, 8, 341, 20082, 1669, 1273, 6031, 65009, 26095, 1748, 50, 1155, 340, 1444, 1669, 38949, 7121, 1155, 692, 98100, 1669, 1398, 16, 31770, 2822, 2109, 16, 11, 1848, 1669, 1532, 2227, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHealthcheckNone(t *testing.T) { b := newBuilderWithMockBackend() sb := newDispatchRequest(b, '`', nil, newBuildArgs(make(map[string]*string)), newStagesBuildResults()) cmd := &instructions.HealthCheckCommand{ Health: &container.HealthConfig{ Test: []string{"NONE"}, }, } err := dispatch(sb, cmd) re...
explode_data.jsonl/34870
{ "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, 14542, 2028, 4064, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 501, 3297, 2354, 11571, 29699, 741, 24842, 1669, 501, 11283, 1900, 1883, 11, 55995, 516, 2092, 11, 501, 11066, 4117, 36944, 9147, 14032, 8465, 917, 5731, 501, 623,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRedisPresenceManager(t *testing.T) { for _, tt := range redisPresenceTests { t.Run(tt.Name, func(t *testing.T) { node := testNode(t) e := newTestRedisPresenceManager(t, node, tt.UseCluster) defer func() { _ = node.Shutdown(context.Background()) }() // test adding presence require.NoError(t, ...
explode_data.jsonl/70024
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 340 }
[ 2830, 3393, 48137, 89169, 2043, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 20870, 89169, 18200, 341, 197, 3244, 16708, 47152, 2967, 11, 2915, 1155, 353, 8840, 836, 8, 341, 298, 20831, 1669, 1273, 1955, 1155, 340, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCompile(t *testing.T) { input := ` +++++ ----- +++++ >>>>> <<<<< ` expected := []*Instruction{ &Instruction{Plus, 5}, &Instruction{Minus, 5}, &Instruction{Plus, 5}, &Instruction{Right, 5}, &Instruction{Left, 5}, } compiler := NewCompiler(input) bytecode := compiler.Compile() if len(byte...
explode_data.jsonl/73947
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 248 }
[ 2830, 3393, 46126, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 22074, 197, 14565, 16930, 197, 34764, 197, 14565, 16930, 197, 18153, 397, 197, 2442, 12603, 198, 197, 3989, 42400, 1669, 29838, 16664, 515, 197, 197, 5, 16664, 90, 21807, 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 TestIsValidIP(t *testing.T) { testCases := []struct { // Input. ip string // Expected result. result bool }{ {"192.168.1.1", true}, {"192.168.1", false}, {"192.168.1.1.1", false}, {"-192.168.1.1", false}, {"260.192.1.1", false}, } for i, testCase := range testCases { result := IsValidIP(te...
explode_data.jsonl/20467
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 55470, 3298, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 197, 322, 5571, 624, 197, 46531, 914, 198, 197, 197, 322, 31021, 1102, 624, 197, 9559, 1807, 198, 197, 59403, 197, 197, 4913, 16, 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...
3
func TestUserStoreUpdateAuthData(t *testing.T) { Setup() teamId := model.NewId() u1 := &model.User{} u1.Email = model.NewId() Must(store.User().Save(u1)) Must(store.Team().SaveMember(&model.TeamMember{TeamId: teamId, UserId: u1.Id})) service := "someservice" authData := model.NewId() if err := (<-store.Use...
explode_data.jsonl/5104
{ "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, 1474, 6093, 4289, 5087, 1043, 1155, 353, 8840, 836, 8, 341, 197, 21821, 2822, 197, 9196, 764, 1669, 1614, 7121, 764, 2822, 10676, 16, 1669, 609, 2528, 7344, 16094, 10676, 16, 24066, 284, 1614, 7121, 764, 741, 9209, 590, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestSetAutoResponderStatus(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() user := th.CreateUser() defer th.App.PermanentDeleteUser(user) th.App.SetStatusOnline(user.Id, true) patch := &model.UserPatch{} patch.NotifyProps = make(map[string]string) patch.NotifyProps["auto_responder_active"]...
explode_data.jsonl/19806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 456 }
[ 2830, 3393, 1649, 13253, 30884, 2522, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 19060, 1669, 270, 7251, 1474, 741, 16867, 270, 5105, 1069, 4753, 306, 6435, 1474, 4277, 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 TestComplex64(t *testing.T) { val := complex64(1) m := map[string]interface{}{"value": val, "nothing": nil} assert.Equal(t, val, New(m).Get("value").Complex64()) assert.Equal(t, val, New(m).Get("value").MustComplex64()) assert.Equal(t, complex64(0), New(m).Get("nothing").Complex64()) assert.Equal(t, val, Ne...
explode_data.jsonl/23520
{ "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, 31137, 21, 19, 1155, 353, 8840, 836, 8, 1476, 19302, 1669, 6351, 21, 19, 7, 16, 340, 2109, 1669, 2415, 14032, 31344, 6257, 4913, 957, 788, 1044, 11, 330, 41212, 788, 2092, 532, 6948, 12808, 1155, 11, 1044, 11, 1532, 1255...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInit(t *testing.T) { expectedArgs := []string{"init", "--client-only", "--service-account", serviceAccount, "--tiller-namespace", namespace, "--upgrade", "--wait", "--force-upgrade"} helm, runner := createHelm(t, nil, "") err := helm.Init(true, serviceAccount, namespace, true) assert.NoError(t, err, "s...
explode_data.jsonl/4640
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 3803, 1155, 353, 8840, 836, 8, 341, 42400, 4117, 1669, 3056, 917, 4913, 2327, 497, 14482, 2972, 15382, 497, 14482, 7936, 49982, 497, 2473, 7365, 345, 197, 197, 74757, 83, 15252, 12, 2231, 497, 4473, 11, 14482, 44230, 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 TestCollection_InsertMany(t *testing.T) { mgoClient := Ins() insertResult, err := mgoClient.C("test").InsertMany(bson.A{ bson.M{"name": "henry"}, bson.M{"name": "lily"}, bson.M{"name": "peter"}, bson.M{"name": "sheldon"}, bson.M{"name": "john"}, bson.M{"name": "stark"}, }) if err != nil { t.Error...
explode_data.jsonl/30093
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 181 }
[ 2830, 3393, 6482, 76417, 8441, 1155, 353, 8840, 836, 8, 341, 2109, 3346, 2959, 1669, 9726, 741, 59847, 2077, 11, 1848, 1669, 296, 3346, 2959, 727, 445, 1944, 1827, 13780, 8441, 1883, 930, 875, 515, 197, 2233, 930, 1321, 4913, 606, 788...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGerritProject(t *testing.T) { var c Corpus c.EnableLeaderMode(new(dummyMutationLogger), "/fake/dir") c.TrackGerrit("go.googlesource.com/build") gp := c.Gerrit().Project("go-review.googlesource.com", "build") if gp == nil { t.Errorf("expected go-review.googlesource.com to return a project, got nil") } ...
explode_data.jsonl/66157
{ "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, 38, 615, 275, 7849, 1155, 353, 8840, 836, 8, 341, 2405, 272, 75734, 198, 1444, 32287, 52621, 3636, 1755, 83671, 53998, 7395, 701, 3521, 30570, 88226, 1138, 1444, 89090, 38, 615, 275, 445, 3346, 18002, 538, 642, 919, 905, 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...
3
func Test_PrivateEndpointConnection_Status_SubResourceEmbedded_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { t.Parallel() parameters := gopter.DefaultTestParameters() parameters.MaxSize = 10 properties := gopter.NewProperties(parameters) properties.Property( "Round trip from PrivateEndpointConnec...
explode_data.jsonl/44558
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 213 }
[ 2830, 3393, 43830, 27380, 4526, 36449, 36359, 4783, 83466, 62, 4498, 7903, 61941, 2568, 795, 21884, 1690, 26040, 39838, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 67543, 1669, 728, 73137, 13275, 2271, 9706, 741, 67543, 14535, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_IsZero(t *testing.T) { tests := []struct { name string e Bytes want bool }{ {name: "True", e: Bytes{[]byte("")}, want: true}, {name: "False", e: Bytes{[]byte("abc")}, want: false}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := tt.e.IsZero(); got != tt.wa...
explode_data.jsonl/34756
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 190 }
[ 2830, 3393, 7078, 31879, 17999, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 7727, 262, 30024, 198, 197, 50780, 1807, 198, 197, 59403, 197, 197, 47006, 25, 330, 2514, 497, 384, 25, 30024, 90, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestUAccountInformationV2(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip("skipping test: api keys not set") } _, err := b.UAccountInformationV2(context.Background()) if err != nil { t.Error(err) } }
explode_data.jsonl/76581
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 91 }
[ 2830, 3393, 52, 7365, 14873, 53, 17, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 25, 6330, 6894, 537, 738, 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 TestAccSnapshot_fromManagedDisk(t *testing.T) { data := acceptance.BuildTestData(t, "azurerm_snapshot", "test") r := SnapshotResource{} data.ResourceTest(t, r, []acceptance.TestStep{ { Config: r.fromManagedDisk(data), Check: acceptance.ComposeTestCheckFunc( check.That(data.ResourceName).ExistsInAzu...
explode_data.jsonl/78015
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 150 }
[ 2830, 3393, 14603, 15009, 5673, 27192, 47583, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 25505, 25212, 83920, 1155, 11, 330, 1370, 324, 4195, 53265, 497, 330, 1944, 1138, 7000, 1669, 68697, 4783, 31483, 8924, 20766, 2271, 1155, 11, 435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChangeTag(t *testing.T) { validate := New() validate.SetTagName("val") type Test struct { Name string `val:"len=4"` } s := &Test{ Name: "TEST", } errs := validate.Struct(s) Equal(t, errs, nil) s.Name = "" errs = validate.Struct(s) NotEqual(t, errs, nil) AssertError(t, errs, "Test.Name", "T...
explode_data.jsonl/77306
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 157 }
[ 2830, 3393, 4072, 5668, 1155, 353, 8840, 836, 8, 1476, 197, 7067, 1669, 1532, 741, 197, 7067, 4202, 22616, 445, 831, 5130, 13158, 3393, 2036, 341, 197, 21297, 914, 1565, 831, 2974, 2892, 28, 19, 8805, 197, 532, 1903, 1669, 609, 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 TestNew32(t *testing.T) { test(t, func(x []byte) []int { sa := make([]int32, len(x)) text_32(x, sa) out := make([]int, len(sa)) for i, v := range sa { out[i] = int(v) } return out }) }
explode_data.jsonl/32216
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 3564, 18, 17, 1155, 353, 8840, 836, 8, 341, 18185, 1155, 11, 2915, 2075, 3056, 3782, 8, 3056, 396, 341, 197, 1903, 64, 1669, 1281, 10556, 396, 18, 17, 11, 2422, 2075, 1171, 197, 15425, 62, 18, 17, 2075, 11, 822, 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...
2
func TestMySQLClusterService_Create(t *testing.T) { asst := assert.New(t) s := initNewMySQLService() err := s.Create(map[string]interface{}{ clusterNameStruct: testInsertClusterName, middlewareClusterIDStruct: defaultMySQLClusterInfoMiddlewareClusterID, monitorSystemIDStruct: defaultMySQLClusterI...
explode_data.jsonl/6156
{ "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, 59224, 28678, 1860, 34325, 1155, 353, 8840, 836, 8, 341, 60451, 267, 1669, 2060, 7121, 1155, 692, 1903, 1669, 2930, 3564, 59224, 1860, 2822, 9859, 1669, 274, 7251, 9147, 14032, 31344, 67066, 197, 197, 18855, 675, 9422, 25, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRuntime_XMLCanary(t *testing.T) { // test that it can make a simple XML request // and get the response for it. result := tasks{ Tasks: []task{ {false, "task 1 content", 1}, {false, "task 2 content", 2}, }, } server := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Re...
explode_data.jsonl/53818
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 520 }
[ 2830, 3393, 15123, 45617, 6713, 658, 1155, 353, 8840, 836, 8, 341, 197, 322, 1273, 429, 432, 646, 1281, 264, 4285, 11874, 1681, 198, 197, 322, 323, 633, 279, 2033, 369, 432, 624, 9559, 1669, 9079, 515, 197, 10261, 4604, 25, 3056, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRequireEndpointIfNoRegionProvided(t *testing.T) { svc := iotdataplane.New(unit.Session, &aws.Config{ DisableParamValidation: aws.Bool(true), }) fmt.Println(svc.ClientInfo.SigningRegion) req, _ := svc.GetThingShadowRequest(nil) err := req.Build() if e, a := "", svc.Endpoint; e != a { t.Errorf("expec...
explode_data.jsonl/64512
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 218 }
[ 2830, 3393, 17959, 27380, 2679, 2753, 14091, 35819, 291, 1155, 353, 8840, 836, 8, 341, 1903, 7362, 1669, 600, 354, 93253, 37847, 7121, 24144, 20674, 11, 609, 8635, 10753, 515, 197, 197, 25479, 2001, 13799, 25, 31521, 52497, 3715, 1326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExprError(t *testing.T) { for mdType := pdata.MetricDataTypeIntGauge; mdType <= pdata.MetricDataTypeHistogram; mdType++ { testMatchError(t, mdType) } }
explode_data.jsonl/12245
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 65 }
[ 2830, 3393, 16041, 1454, 1155, 353, 8840, 836, 8, 341, 2023, 10688, 929, 1669, 70311, 1321, 16340, 22653, 1072, 38, 19392, 26, 10688, 929, 2651, 70311, 1321, 16340, 22653, 77210, 26, 10688, 929, 1027, 341, 197, 18185, 8331, 1454, 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 ]
2
func TestReadConfig2(t *testing.T) { var c TestConfig2 err := GetConfig(&c, "config_test2.yml") assert.Equal(t, nil, err) assert.Equal(t, "configItem1", c.First) assert.Equal(t, "configItem2", c.Second) assert.Equal(t, 3, c.Third) assert.Equal(t, true, c.Fourth) assert.Equal(t, 5.5, c.Fifth) }
explode_data.jsonl/3116
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 4418, 2648, 17, 1155, 353, 8840, 836, 8, 341, 2405, 272, 3393, 2648, 17, 271, 9859, 1669, 2126, 2648, 2099, 66, 11, 330, 1676, 4452, 17, 33936, 5130, 6948, 12808, 1155, 11, 2092, 11, 1848, 340, 6948, 12808, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetParquetFileSize(t *testing.T) { tests := map[string]struct { pr *reader.ParquetReader pretty bool uncompressed bool size string }{ "compresed_size": { pr: &reader.ParquetReader{ Footer: &parquet.FileMetaData{ RowGroups: []*parquet.RowGroup{ &parquet.RowG...
explode_data.jsonl/81189
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1060 }
[ 2830, 3393, 1949, 4272, 23300, 67649, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 25653, 1843, 353, 11149, 41288, 23300, 5062, 198, 197, 197, 32955, 981, 1807, 198, 197, 20479, 45703, 1807, 198, 197, 1383...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPostStoreGetFlaggedPosts(t *testing.T) { Setup() o1 := &model.Post{} o1.ChannelId = model.NewId() o1.UserId = model.NewId() o1.Message = "zz" + model.NewId() + "b" o1 = (<-store.Post().Save(o1)).Data.(*model.Post) time.Sleep(2 * time.Millisecond) o2 := &model.Post{} o2.ChannelId = o1.ChannelId o2.U...
explode_data.jsonl/55955
{ "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, 4133, 6093, 1949, 12135, 3556, 19631, 1155, 353, 8840, 836, 8, 341, 197, 21821, 2822, 22229, 16, 1669, 609, 2528, 23442, 16094, 22229, 16, 38716, 764, 284, 1614, 7121, 764, 741, 22229, 16, 37478, 284, 1614, 7121, 764, 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...
8
func TestGetUnRevokedHandles(t *testing.T) { ra := &revocationAuthority{issuer: &issuer{name: "ca1", homeDir: ".", cfg: &Config{}}} info := &RevocationAuthorityInfo{ Epoch: 1, LastHandleInPool: 100, NextRevocationHandle: 2, } revokedCred := CredRecord{ RevocationHandle: "10", } revoked...
explode_data.jsonl/17923
{ "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, 1949, 1806, 36184, 10823, 65928, 1155, 353, 8840, 836, 8, 341, 197, 956, 1669, 609, 7282, 2276, 45532, 90, 66817, 25, 609, 66817, 47006, 25, 330, 924, 16, 497, 2114, 6184, 25, 68514, 13286, 25, 609, 2648, 90, 3417, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLogsPathMatcher_InvalidSource1(t *testing.T) { cfgLogsPath := "" // use the default matcher configuration source := "/var/log/messages" expectedResult := "" executeTest(t, cfgLogsPath, source, expectedResult) }
explode_data.jsonl/34414
{ "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, 51053, 1820, 37554, 62, 7928, 3608, 16, 1155, 353, 8840, 836, 8, 341, 50286, 51053, 1820, 1669, 1591, 442, 990, 279, 1638, 36052, 6546, 198, 47418, 1669, 3521, 947, 19413, 71753, 698, 42400, 2077, 1669, 8389, 8122, 3068, 227...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNode_IsLeaf(t *testing.T) { leaf := &Node{val: []byte("leaf")} inner := &Node{val: []byte("inner"), left: leaf, right: leaf} innerNoLeft := &Node{val: []byte("inner"), right: leaf} innerNoRight := &Node{val: []byte("inner"), left: leaf} t.Run("Should Return True", func(t *testing.T) { if !leaf.IsLeaf(...
explode_data.jsonl/57982
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 215 }
[ 2830, 3393, 1955, 31879, 31461, 1155, 353, 8840, 836, 8, 1476, 197, 24153, 1669, 609, 1955, 90, 831, 25, 3056, 3782, 445, 24153, 42132, 197, 4382, 1669, 609, 1955, 90, 831, 25, 3056, 3782, 445, 4382, 3975, 2115, 25, 15933, 11, 1290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListDeploySetsPage(t *testing.T) { queryArgs := &ListDeploySetsArgs{ Strategy: "TOR_HA", // RACK_HA or TOR_HA MaxKeys: 100, Marker: "your-marker", } rep, err := BBC_CLIENT.ListDeploySetsPage(queryArgs) fmt.Println(rep) ExpectEqual(t.Errorf, err, nil) }
explode_data.jsonl/4063
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 121 }
[ 2830, 3393, 852, 69464, 30175, 2665, 1155, 353, 8840, 836, 8, 341, 27274, 4117, 1669, 609, 852, 69464, 30175, 4117, 515, 197, 197, 19816, 25, 330, 49658, 2039, 32, 497, 442, 431, 4032, 2039, 32, 476, 69961, 2039, 32, 198, 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 TestBuildTreeFromFiles(t *testing.T) { scenarios := []struct { name string files []*models.File expected *FileNode }{ { name: "no files", files: []*models.File{}, expected: &FileNode{ Path: "", Children: []*FileNode{}, }, }, { name: "files in same directory", fil...
explode_data.jsonl/3234
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1399 }
[ 2830, 3393, 11066, 6533, 3830, 10809, 1155, 353, 8840, 836, 8, 341, 29928, 60494, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 74075, 262, 29838, 6507, 8576, 198, 197, 42400, 353, 1703, 1955, 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 TestEventProtocolStateData(t *testing.T) { t.Run("event protocol state data - success", func(t *testing.T) { svc, err := New(&protocol.MockProvider{ ServiceMap: map[string]interface{}{ mediator.Coordination: &mockroute.MockMediatorSvc{}, }, }) require.NoError(t, err) connID := generateRandomID(...
explode_data.jsonl/30538
{ "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, 1556, 20689, 1397, 1043, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 3087, 11507, 1584, 821, 481, 2393, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1903, 7362, 11, 1848, 1669, 1532, 2099, 17014, 24664, 5179, 515, 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
func TestTimestampMismatch(t *testing.T) { defer leaktest.AfterTest(t)() const numAccounts = 1 _, _, sqlDB, _, cleanupFn := BackupRestoreTestSetup(t, singleNode, numAccounts, InitNone) defer cleanupFn() sqlDB.Exec(t, `CREATE TABLE data.t2 (a INT PRIMARY KEY)`) sqlDB.Exec(t, `INSERT INTO data.t2 VALUES (1)`) f...
explode_data.jsonl/57599
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1031 }
[ 2830, 3393, 20812, 82572, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 4777, 1629, 41369, 284, 220, 16, 271, 197, 6878, 8358, 5704, 3506, 11, 8358, 21290, 24911, 1669, 43438, 56284, 2271, 21821, 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 TestExportedProguardFlagFiles(t *testing.T) { ctx, _ := testJava(t, ` android_app { name: "foo", sdk_version: "current", static_libs: ["lib1"], } android_library { name: "lib1", sdk_version: "current", optimize: { proguard_flags_files: ["lib1proguard.cfg"], } } `) m := ctx.Mod...
explode_data.jsonl/58507
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 267 }
[ 2830, 3393, 16894, 291, 1336, 26098, 12135, 10809, 1155, 353, 8840, 836, 8, 341, 20985, 11, 716, 1669, 1273, 15041, 1155, 11, 22074, 197, 197, 5954, 8191, 341, 298, 11609, 25, 330, 7975, 756, 298, 1903, 7584, 9438, 25, 330, 3231, 756,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestMongo_GetForUserPagination(t *testing.T) { m, skip := prepMongo(t, false) if skip { return } c := store.Comment{ Locator: store.Locator{URL: "https://radio-t.com", SiteID: "radio-t"}, User: store.User{ID: "user1", Name: "user name"}, } // write 200 comments for i := 0; i < 200; i++ { c.ID = ...
explode_data.jsonl/54204
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 652 }
[ 2830, 3393, 54998, 13614, 2461, 1474, 44265, 1155, 353, 8840, 836, 8, 341, 2109, 11, 10706, 1669, 21327, 54998, 1155, 11, 895, 340, 743, 10706, 341, 197, 853, 198, 197, 532, 1444, 1669, 3553, 56730, 515, 197, 197, 33831, 25, 3553, 121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRollBackRevokeVote(t *testing.T) { desc := &contract.TxDesc{ Module: "tdpos", Method: "revoke_vote", Args: map[string]interface{}{ "candidates": []interface{}{"f3prTg9itaZY6m48wXXikXdcxiByW7zgk"}, }, } strDesc, _ := json.Marshal(desc) U, L, tdpos := commonWork(t) txCons, block := makeTxWithDes...
explode_data.jsonl/77201
{ "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, 32355, 3707, 693, 7621, 41412, 1155, 353, 8840, 836, 8, 341, 41653, 1669, 609, 20257, 81362, 11065, 515, 197, 197, 3332, 25, 330, 1296, 966, 756, 197, 84589, 25, 330, 265, 7621, 54360, 756, 197, 197, 4117, 25, 2415, 14032,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInt(t *testing.T) { var args struct { Foo int Ptr *int } err := parse("--foo 7 --ptr 8", &args) require.NoError(t, err) assert.EqualValues(t, 7, args.Foo) assert.EqualValues(t, 8, *args.Ptr) }
explode_data.jsonl/12983
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 1072, 1155, 353, 8840, 836, 8, 341, 2405, 2827, 2036, 341, 197, 12727, 2624, 526, 198, 197, 197, 5348, 353, 396, 198, 197, 532, 9859, 1669, 4715, 21549, 7975, 220, 22, 1177, 3505, 220, 23, 497, 609, 2116, 340, 17957, 356...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenesisAccountValidate(t *testing.T) { pubkey := secp256k1.GenPrivKey().PubKey() addr := sdk.AccAddress(pubkey.Address()) baseAcc := authtypes.NewBaseAccount(addr, pubkey, 0) initialVesting := sdk.NewCoins(sdk.NewInt64Coin(sdk.DefaultBondDenom, 50)) baseVestingWithCoins := types.NewBaseVestingAccount(base...
explode_data.jsonl/31296
{ "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, 84652, 7365, 17926, 1155, 353, 8840, 836, 8, 341, 62529, 792, 1669, 511, 4672, 17, 20, 21, 74, 16, 65384, 32124, 1592, 1005, 29162, 1592, 741, 53183, 1669, 45402, 77538, 4286, 74186, 792, 26979, 2398, 24195, 14603, 1669, 307...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMetricUpdate(t *testing.T) { promRegistry := prometheus.NewRegistry() metricsRegistry := metrics.NewRegistry() counter := metrics.NewCounter() err := metricsRegistry.Register("counter-for-broker-5", counter) require.NoError(t, err) ctx, cancel := context.WithCancel(context.Background()) defer cancel()...
explode_data.jsonl/31714
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 691 }
[ 2830, 3393, 54310, 4289, 1155, 353, 8840, 836, 8, 341, 3223, 441, 15603, 1669, 2706, 39705, 7121, 15603, 741, 2109, 13468, 15603, 1669, 16734, 7121, 15603, 741, 58261, 1669, 16734, 7121, 14099, 2822, 9859, 1669, 16734, 15603, 19983, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRerun(t *testing.T) { testCases := []struct { name string login string authorized []string allowAnyone bool rerunCreatesJob bool shouldCreateProwJob bool httpCode int httpMethod string }{ { name: "Handle...
explode_data.jsonl/45430
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3007 }
[ 2830, 3393, 49, 261, 359, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 394, 914, 198, 197, 75755, 2290, 914, 198, 197, 197, 19084, 688, 3056, 917, 198, 197, 197, 7183, 40695, 260, 1807, 198, 197, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVersionDeleteContent(t *testing.T) { ctx := context.Background() c, rollback := makeConnectionWithVersionsObject(t) defer rollback() if skipVersionTests { t.Log("Server doesn't support Versions - skipping test") return } // Delete Version 3 if err := c.ObjectDelete(ctx, CURRENT_CONTAINER, OBJECT); e...
explode_data.jsonl/12713
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 267 }
[ 2830, 3393, 5637, 6435, 2762, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1444, 11, 60414, 1669, 1281, 4526, 2354, 69015, 1190, 1155, 340, 16867, 60414, 741, 743, 10706, 5637, 18200, 341, 197, 3244, 5247, 445, 5475, 317...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVoteString(t *testing.T) { str := examplePrecommit().String() expected := `Vote{56789:6AF1F4111082 12345/02/2(Precommit) 8B01023386C3 000000000000 @ 2017-12-25T03:00:01.234Z}` if str != expected { t.Errorf("Got unexpected string for Vote. Expected:\n%v\nGot:\n%v", expected, str) } str2 := examplePrevot...
explode_data.jsonl/54538
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 229 }
[ 2830, 3393, 41412, 703, 1155, 353, 8840, 836, 8, 341, 11355, 1669, 3110, 4703, 17413, 1005, 703, 741, 42400, 1669, 1565, 41412, 90, 20, 21, 22, 23, 24, 25, 21, 8276, 16, 37, 19, 16, 16, 16, 15, 23, 17, 220, 16, 17, 18, 19, 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...
3
func TestPackageStatement(t *testing.T) { p := createParser(`package exchange at 0.0.1`) bvmUtils.Assert(t, isPackageStatement(p), "should detect package statement") parsePackageStatement(p) n := p.scope.Next() bvmUtils.AssertNow(t, n.Type() == ast.PackageStatement, "wrong package type") a := n.(*ast.PackageStat...
explode_data.jsonl/49763
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 142 }
[ 2830, 3393, 13100, 8636, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 1855, 6570, 5809, 1722, 9289, 518, 220, 15, 13, 15, 13, 16, 24183, 2233, 7338, 4209, 11711, 1155, 11, 374, 13100, 8636, 1295, 701, 330, 5445, 11140, 6328, 5114, 1138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestKeyLogTLS13(t *testing.T) { var serverBuf, clientBuf bytes.Buffer clientConfig := testConfig.Clone() clientConfig.KeyLogWriter = &clientBuf serverConfig := testConfig.Clone() serverConfig.KeyLogWriter = &serverBuf c, s := localPipe(t) done := make(chan bool) go func() { defer close(done) if er...
explode_data.jsonl/27718
{ "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, 1592, 2201, 45439, 16, 18, 1155, 353, 8840, 836, 8, 341, 2405, 3538, 15064, 11, 2943, 15064, 5820, 22622, 271, 25291, 2648, 1669, 1273, 2648, 64463, 741, 25291, 2648, 9610, 2201, 6492, 284, 609, 2972, 15064, 271, 41057, 2648...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenRSTDoc(t *testing.T) { // We generate on a subcommand so we have both subcommands and parents buf := new(bytes.Buffer) if err := GenReST(echoCmd, buf); err != nil { t.Fatal(err) } output := buf.String() checkStringContains(t, output, echoCmd.Long) checkStringContains(t, output, echoCmd.Example) c...
explode_data.jsonl/17804
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 194 }
[ 2830, 3393, 9967, 49, 784, 9550, 1155, 353, 8840, 836, 8, 341, 197, 322, 1205, 6923, 389, 264, 1186, 5631, 773, 582, 614, 2176, 1186, 24270, 323, 6562, 198, 26398, 1669, 501, 23158, 22622, 340, 743, 1848, 1669, 9316, 693, 784, 2026, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDetachMemoRace(t *testing.T) { defer leaktest.AfterTest(t)() catalog := testcat.New() _, err := catalog.ExecuteDDL("CREATE TABLE abc (a INT, b INT, c INT, d INT)") if err != nil { t.Fatal(err) } var o xform.Optimizer evalCtx := tree.MakeTestingEvalContext(cluster.MakeTestingClusterSettings()) testu...
explode_data.jsonl/55157
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 616 }
[ 2830, 3393, 89306, 46402, 55991, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 1444, 7750, 1669, 1273, 4616, 7121, 2822, 197, 6878, 1848, 1669, 16403, 13827, 58781, 445, 22599, 14363, 39022, 320, 64, 9221, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestData(t *testing.T) { config := mtest.GetConfig(t, "counter") ms := mbtest.NewPushMetricSetV2(t, config) events := mbtest.RunPushMetricSetV2(10*time.Second, 1, ms) require.NotEmpty(t, events) beatEvent := mbtest.StandardizeEvent(ms, events[0]) mtest.CleanFields(beatEvent) mbtest.WriteEventToDataJSON(t...
explode_data.jsonl/27779
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 93200, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 296, 1944, 2234, 2648, 1155, 11, 330, 8292, 5130, 47691, 1669, 10016, 1944, 7121, 16644, 54310, 1649, 53, 17, 1155, 11, 2193, 340, 90873, 1669, 10016, 1944, 16708, 16644, 54310, 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 TestMarkUndispatched(t *testing.T) { Convey("With a task, build and version", t, func() { require.NoError(t, db.ClearCollections(task.Collection, build.Collection, VersionCollection), "Error clearing task and build collections") displayName := "testName" b := &build.Build{ Id: "buildtest", Sta...
explode_data.jsonl/60436
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 620 }
[ 2830, 3393, 8949, 19957, 285, 3400, 291, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 2354, 264, 3383, 11, 1936, 323, 2319, 497, 259, 11, 2915, 368, 341, 197, 17957, 35699, 1155, 11, 2927, 13524, 52730, 17483, 28629, 11, 1936, 2862...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPointBls12377G2Mul(t *testing.T) { bls12377G2 := BLS12377G2() g := bls12377G2.Point.Generator() pt := bls12377G2.Point.Generator().Mul(bls12377G2.Scalar.New(4)) require.True(t, g.Double().Double().Equal(pt)) }
explode_data.jsonl/15771
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 106 }
[ 2830, 3393, 2609, 33, 4730, 16, 17, 18, 22, 22, 38, 17, 59155, 1155, 353, 8840, 836, 8, 341, 96421, 82, 16, 17, 18, 22, 22, 38, 17, 1669, 425, 7268, 16, 17, 18, 22, 22, 38, 17, 741, 3174, 1669, 1501, 82, 16, 17, 18, 22, 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...
1
func TestDaoGetReplySetRds(t *testing.T) { convey.Convey("ReplySetRds", t, func(ctx convey.C) { var ( oid = int64(-1) tp = int(-1) idMap = make(map[int64]struct{}) ) ctx.Convey("When everything goes positive", func(ctx convey.C) { for i := 0; i < 10; i++ { if err := d.AddReplySetRds(context....
explode_data.jsonl/21792
{ "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, 12197, 1949, 20841, 1649, 49, 5356, 1155, 353, 8840, 836, 8, 341, 37203, 5617, 4801, 5617, 445, 20841, 1649, 49, 5356, 497, 259, 11, 2915, 7502, 20001, 727, 8, 341, 197, 2405, 2399, 298, 197, 588, 256, 284, 526, 21, 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...
3
func TestInitLevelDBSuccess(t *testing.T) { assert := assert.New(t) dir := tempdir(t) defer cleanup(t, dir) router := &httprouter.Router{} svr := httptest.NewServer(router) defer svr.Close() sm := newTestSubscriptionManager() sm.config.LevelDB.Path = path.Join(dir, "db") err := sm.Init() assert.Equal(nil, e...
explode_data.jsonl/82227
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 3803, 4449, 3506, 7188, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 48532, 1669, 2730, 3741, 1155, 340, 16867, 21290, 1155, 11, 5419, 692, 67009, 1669, 609, 96336, 649, 2676, 31413, 16094, 1903, 18920, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEvent(t *testing.T) { param := []interface{}{uint32(1), float32(3.2), []byte{'1', '2'}} params, err := tlv.MakeTLVs(param) if err != nil { t.Fatal(err) } payloadHead := CommandEventHead{ Flag: 0, Timestamp: uint64(time.Now().Unix()) * 1000, SubDeviceid: uint16(2), No: uint16(1...
explode_data.jsonl/8937
{ "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, 1556, 1155, 353, 8840, 836, 8, 341, 36037, 1669, 3056, 4970, 6257, 90, 2496, 18, 17, 7, 16, 701, 2224, 18, 17, 7, 18, 13, 17, 701, 3056, 3782, 13608, 16, 516, 364, 17, 74491, 25856, 11, 1848, 1669, 259, 21827, 50133, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPageWithUnderScoreIndexInFilename(t *testing.T) { t.Parallel() cfg, fs := newTestCfg() writeSource(t, fs, filepath.Join("content", "sect/my_index_file.md"), "---\ntitle: doc1\nweight: 1\ndate: 2014-05-29\n---\n# doc1\n*some content*") s := buildSingleSite(t, deps.DepsCfg{Fs: fs, Cfg: cfg}, BuildCfg{Skip...
explode_data.jsonl/16654
{ "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, 2665, 2354, 16250, 10570, 1552, 641, 20759, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 50286, 11, 8619, 1669, 501, 2271, 42467, 2822, 24945, 3608, 1155, 11, 8619, 11, 26054, 22363, 445, 1796, 497, 330, 9687, 3419...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetWsChannelWithoutOrderType(t *testing.T) { str := "spot/depth5:BTC-USDT" expected := "depth5" resp := o.GetWsChannelWithoutOrderType(str) if resp != expected { t.Errorf("Logic change error %v should be %v", resp, expected) } str = "spot/depth" resp = o.GetWsChannelWithoutOrderType(str) expected = "...
explode_data.jsonl/30193
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 211 }
[ 2830, 3393, 1949, 74733, 9629, 26040, 4431, 929, 1155, 353, 8840, 836, 8, 341, 11355, 1669, 330, 18648, 14, 17561, 20, 25, 59118, 32340, 10599, 698, 42400, 1669, 330, 17561, 20, 698, 34653, 1669, 297, 2234, 74733, 9629, 26040, 4431, 929...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMempool_CheckTxChecksTxSize(t *testing.T) { app := kvstore.NewApplication() cc := proxy.NewLocalClientCreator(app) mempl, cleanup := newMempoolWithApp(cc) defer cleanup() maxTxSize := mempl.config.MaxTxBytes testCases := []struct { len int err bool }{ // check small txs. no error 0: {10, false...
explode_data.jsonl/14615
{ "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, 44, 3262, 1749, 28188, 31584, 49820, 31584, 1695, 1155, 353, 8840, 836, 8, 341, 28236, 1669, 16178, 4314, 7121, 4988, 741, 63517, 1669, 13291, 7121, 7319, 2959, 31865, 11462, 340, 14145, 500, 11, 21290, 1669, 501, 44, 3262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandshakeServerECDHEECDSAAES(t *testing.T) { config := testConfig.Clone() config.Certificates = make([]Certificate, 1) config.Certificates[0].Certificate = [][]byte{testECDSACertificate} config.Certificates[0].PrivateKey = testECDSAPrivateKey config.BuildNameToCertificate() test := &serverTest{ name: ...
explode_data.jsonl/36332
{ "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, 2314, 29661, 5475, 36, 6484, 1799, 7498, 5936, 6029, 1570, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 1273, 2648, 64463, 741, 25873, 727, 529, 24405, 284, 1281, 10556, 33202, 11, 220, 16, 340, 25873, 727, 529, 24405, 58, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestForwarderSendMSSLessThanMTU(t *testing.T) { const maxPayload = 100 const mtu = 1200 c := context.New(t, mtu) defer c.Cleanup() s := c.Stack() ch := make(chan *tcpip.Error, 1) f := tcp.NewForwarder(s, 65536, 10, func(r *tcp.ForwarderRequest) { var err *tcpip.Error c.EP, err = r.CreateEndpoint(&c.WQ)...
explode_data.jsonl/22304
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 340 }
[ 2830, 3393, 25925, 261, 11505, 44, 22594, 433, 26067, 8505, 52, 1155, 353, 8840, 836, 8, 341, 4777, 1932, 29683, 284, 220, 16, 15, 15, 198, 4777, 11965, 84, 284, 220, 16, 17, 15, 15, 198, 1444, 1669, 2266, 7121, 1155, 11, 11965, 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 TestPartialWithReturn(t *testing.T) { c := qt.New(t) newBuilder := func(t testing.TB) *sitesBuilder { b := newTestSitesBuilder(t).WithSimpleConfigFile() b.WithTemplatesAdded( "partials/add42.tpl", ` {{ $v := add . 42 }} {{ return $v }} `, "partials/dollarContext.tpl", ` {{ $v := add $ 42 }} {{ r...
explode_data.jsonl/60657
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 592 }
[ 2830, 3393, 37314, 2354, 5598, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 38949, 7121, 1155, 692, 8638, 3297, 1669, 2915, 1155, 7497, 836, 33, 8, 353, 54764, 3297, 341, 197, 2233, 1669, 501, 2271, 93690, 3297, 1155, 568, 2354, 16374, 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 TestDebug(t *testing.T) { resp := Get(server.URL + "/user") if resp.StatusCode != http.StatusOK { t.Fatal("Status != OK (200)") } if !strings.Contains(resp.Debug(), resp.String()) { t.Fatal("Debug() failed!") } }
explode_data.jsonl/49701
{ "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, 7939, 1155, 353, 8840, 836, 8, 1476, 34653, 1669, 2126, 21421, 20893, 488, 3521, 872, 5130, 743, 9039, 37828, 961, 1758, 52989, 341, 197, 3244, 26133, 445, 2522, 961, 10402, 320, 17, 15, 15, 19107, 197, 630, 743, 753, 1859...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStore(t *testing.T) { server, storage, backing, si := newStorage(t) defer server.Terminate(t) if err := si.Set(context.TODO(), key(), validNewRangeAllocation(), nil, 0); err != nil { t.Fatalf("unexpected error: %v", err) } if err := storage.Allocate(net.ParseIP("192.168.1.2")); err != nil { t.Fatal(e...
explode_data.jsonl/1709
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 236 }
[ 2830, 3393, 6093, 1155, 353, 8840, 836, 8, 341, 41057, 11, 5819, 11, 24668, 11, 4403, 1669, 501, 5793, 1155, 340, 16867, 3538, 836, 261, 34016, 1155, 340, 743, 1848, 1669, 4403, 4202, 5378, 90988, 1507, 1376, 1507, 2697, 3564, 6046, 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...
6
func TestCreateTarIncludeDotGit(t *testing.T) { th := New(fs.NewFileSystem()) th.SetExclusionPattern(regexp.MustCompile("test3.txt")) tempDir, err := ioutil.TempDir("", "testtar") defer os.RemoveAll(tempDir) if err != nil { t.Fatalf("Cannot create temp directory for test: %v", err) } modificationDate := time.D...
explode_data.jsonl/40325
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 584 }
[ 2830, 3393, 4021, 62733, 22283, 34207, 46562, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 1532, 31856, 7121, 50720, 2398, 70479, 4202, 840, 8957, 15760, 18390, 4580, 98626, 445, 1944, 18, 3909, 5455, 16280, 6184, 11, 1848, 1669, 43144, 650...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultiToSingleReferenceAssignmentStatement(t *testing.T) { p, _ := ParseString("x, y = a") n := p.Next() bvmUtils.AssertNow(t, n.Type() == ast.AssignmentStatement, "wrong assignment type") a := n.(*ast.AssignmentStatementNode) bvmUtils.AssertNow(t, len(a.Left) == 2, "should be two left values") }
explode_data.jsonl/49745
{ "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, 20358, 1249, 10888, 8856, 41613, 8636, 1155, 353, 8840, 836, 8, 341, 3223, 11, 716, 1669, 14775, 703, 445, 87, 11, 379, 284, 264, 5130, 9038, 1669, 281, 18501, 741, 2233, 7338, 4209, 11711, 7039, 1155, 11, 308, 10184, 368,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDataV0(t *testing.T) { testMod1 := `package test p = "hello" q = { "foo": [1,2,3,4] } { input.flag = true } ` f := newFixture(t) if err := f.v1(http.MethodPut, "/policies/test", testMod1, 200, ""); err != nil { t.Fatalf("Unexpected error while creating policy: %v", err) } if err := f.v0(ht...
explode_data.jsonl/78981
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 464 }
[ 2830, 93200, 53, 15, 1155, 353, 8840, 836, 8, 341, 18185, 4459, 16, 1669, 1565, 1722, 1273, 271, 3223, 284, 330, 14990, 1837, 18534, 284, 341, 197, 197, 1, 7975, 788, 508, 16, 11, 17, 11, 18, 11, 19, 921, 197, 92, 341, 197, 2242...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFromContext(t *testing.T) { ctx := context.Background() if FromContext(ctx) != 0 { t.Fail() } ctx = WithFlag(ctx, LIVE) ctx = WithFlag(ctx, REPLAY) if FromContext(ctx)&(LIVE|REPLAY) == 0 { t.Fail() } }
explode_data.jsonl/46855
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 3830, 1972, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 743, 5542, 1972, 7502, 8, 961, 220, 15, 341, 197, 3244, 57243, 741, 197, 630, 20985, 284, 3085, 12135, 7502, 11, 44169, 340, 20985, 284, 3085, 12135,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateLocalVolumesDisabled(t *testing.T) { scenarios := map[string]struct { isExpectedFailure bool volume *core.PersistentVolume }{ "feature disabled valid local volume": { isExpectedFailure: true, volume: testVolume("valid-local-volume", "", testLocalVolume("/foo", simpleVolumeN...
explode_data.jsonl/994
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 527 }
[ 2830, 3393, 17926, 7319, 96325, 25907, 1155, 353, 8840, 836, 8, 341, 29928, 60494, 1669, 2415, 14032, 60, 1235, 341, 197, 19907, 18896, 17507, 1807, 198, 197, 5195, 4661, 310, 353, 2153, 61655, 18902, 198, 197, 59403, 197, 197, 1, 12753...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEnclaveRegistry_Init(t *testing.T) { ercc := NewTestErcc() stub := shim.NewMockStub("ercc", ercc) // Init th.CheckInit(t, stub, [][]byte{}) }
explode_data.jsonl/74155
{ "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, 1702, 40533, 15603, 15644, 1155, 353, 8840, 836, 8, 341, 197, 261, 638, 1669, 1532, 2271, 19462, 638, 741, 18388, 392, 1669, 62132, 7121, 11571, 33838, 445, 261, 638, 497, 2714, 638, 692, 197, 322, 15690, 198, 70479, 10600, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVariadicNoMatch(t *testing.T) { rep, ctrl := createFixtures(t) defer rep.recoverUnexpectedFatal() s := new(Subject) ctrl.RecordCall(s, "VariadicMethod", 0) rep.assertFatal(func() { ctrl.Call(s, "VariadicMethod", 1) }, "expected call at", "doesn't match the argument at index 0", "Difference:\n1 != 0"...
explode_data.jsonl/17296
{ "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, 56135, 36214, 2753, 8331, 1155, 353, 8840, 836, 8, 341, 73731, 11, 23743, 1669, 1855, 25958, 18513, 1155, 340, 16867, 2064, 1327, 3688, 29430, 62396, 2822, 1903, 1669, 501, 7, 13019, 340, 84381, 49959, 7220, 1141, 11, 330, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReplicateRepository_FailedFetchInternalRemote(t *testing.T) { t.Parallel() cfgBuilder := testcfg.NewGitalyCfgBuilder(testcfg.WithStorages("default", "replica")) cfg := cfgBuilder.Build(t) cfg.SocketPath = runServerWithBadFetchInternalRemote(t, cfg) locator := config.NewLocator(cfg) testRepo, _ := gitt...
explode_data.jsonl/64814
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 419 }
[ 2830, 3393, 18327, 48795, 4624, 1400, 5687, 20714, 11569, 24703, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50286, 3297, 1669, 1273, 14072, 7121, 38, 2174, 88, 42467, 3297, 8623, 14072, 26124, 623, 269, 1134, 445, 2258, 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 Test_GetObjectJson(t *testing.T) { u := User{3, "name3", 33} json := GetObjectJson("", u) t.Log(json) json = GetObjectJson("u", u) t.Log(json) }
explode_data.jsonl/67096
{ "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, 13614, 1190, 5014, 1155, 353, 8840, 836, 8, 341, 10676, 1669, 2657, 90, 18, 11, 330, 606, 18, 497, 220, 18, 18, 532, 30847, 1669, 2126, 1190, 5014, 19814, 575, 340, 3244, 5247, 9304, 340, 30847, 284, 2126, 1190, 5014, 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
func TestEnumerationNotCoveringResourceStar(t *testing.T) { escalationTest{ ownerRules: []authorizationapi.PolicyRule{ {Verbs: sets.NewString("get"), Resources: sets.NewString("roles", "resourcegroup:deployments")}, }, servantRules: []authorizationapi.PolicyRule{ {Verbs: sets.NewString("get"), Resources: s...
explode_data.jsonl/9057
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 183 }
[ 2830, 3393, 67117, 2623, 30896, 287, 4783, 12699, 1155, 353, 8840, 836, 8, 341, 80629, 278, 367, 2271, 515, 197, 197, 8118, 26008, 25, 3056, 39554, 2068, 1069, 8018, 11337, 515, 298, 197, 90, 10141, 1279, 25, 7289, 7121, 703, 445, 455...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRepositoryScanner(t *testing.T) { ctx := zlog.Test(context.Background(), t) // Set up a response map and test server to mock the Container API. apiData := map[string]*containerapi.ContainerImages{ "rh-pkg-1-1": &containerapi.ContainerImages{Images: []containerapi.ContainerImage{ { CPEs: []string{ ...
explode_data.jsonl/49865
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1857 }
[ 2830, 3393, 4624, 31002, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1147, 839, 8787, 5378, 19047, 1507, 259, 692, 197, 322, 2573, 705, 264, 2033, 2415, 323, 1273, 3538, 311, 7860, 279, 9678, 5333, 624, 54299, 1043, 1669, 2415, 14032, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetHistoricTrades(t *testing.T) { t.Parallel() currencyPair, err := currency.NewPairFromString("BTC-USDT") if err != nil { t.Fatal(err) } _, err = o.GetHistoricTrades(currencyPair, asset.Spot, time.Now().Add(-time.Minute*15), time.Now()) if err != nil && err != common.ErrFunctionNotSupported { t.Erro...
explode_data.jsonl/30212
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 133 }
[ 2830, 3393, 1949, 48983, 292, 1282, 3452, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1444, 5088, 12443, 11, 1848, 1669, 11413, 7121, 12443, 44491, 445, 59118, 32340, 10599, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 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...
4
func TestWriteHumanReadableCollections(t *testing.T) { vrw := newTestValueStore() l := NewList(vrw, Number(0), Number(1), Number(2), Number(3)) assertWriteHRSEqual(t, "[ // 4 items\n 0,\n 1,\n 2,\n 3,\n]", l) s := NewSet(vrw, Number(0), Number(1), Number(2), Number(3)) assertWriteHRSEqual(t, "set { // 4 it...
explode_data.jsonl/60898
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 378 }
[ 2830, 3393, 7985, 33975, 57938, 52730, 1155, 353, 8840, 836, 8, 341, 5195, 31768, 1669, 501, 2271, 1130, 6093, 2822, 8810, 1669, 1532, 852, 3747, 31768, 11, 5624, 7, 15, 701, 5624, 7, 16, 701, 5624, 7, 17, 701, 5624, 7, 18, 1171, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateActionProxyResponseHeadersFails(t *testing.T) { tests := []struct { responseHeaders *v1.ProxyResponseHeaders msg string }{ { responseHeaders: &v1.ProxyResponseHeaders{ Hide: []string{""}, Pass: []string{""}, Ignore: []string{""}, Add: []v1.AddHeader{ { ...
explode_data.jsonl/65903
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 780 }
[ 2830, 3393, 17926, 2512, 16219, 2582, 10574, 37, 6209, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 21735, 10574, 353, 85, 16, 75200, 2582, 10574, 198, 197, 21169, 1797, 914, 198, 197, 59403, 197, 197, 515, 298, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestUnknownRelease(t *testing.T) { var linuxDB = NewLinuxDB() result := linuxDB.GetDistro("ubuntu") if result == nil { t.Error("Cannot get distro 'ubuntu'") } release := result.GetRelease("16.04") if release == nil { t.Error("Failed to get release 'default' for unknown release version '16.04'") } if ...
explode_data.jsonl/49611
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 158 }
[ 2830, 3393, 13790, 16077, 1155, 353, 8840, 836, 8, 341, 2405, 36245, 3506, 284, 1532, 46324, 3506, 741, 9559, 1669, 36245, 3506, 2234, 35, 15561, 445, 37979, 1138, 743, 1102, 621, 2092, 341, 197, 3244, 6141, 445, 17444, 633, 1582, 299, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestConstToString(t *testing.T) { t.Parallel() kinds := map[fmt.Stringer]string{ Audit: "Audit", Authentication: "Authentication", Schema: "Schema", Daemon: "Daemon", Uninitialized: "Uninitialized", Ready: ...
explode_data.jsonl/12923
{ "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, 19167, 5870, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 16463, 8673, 1669, 2415, 58, 12501, 6431, 261, 30953, 515, 197, 22985, 33887, 25, 3824, 330, 74516, 756, 197, 197, 19297, 25, 310, 330, 19297, 756, 197, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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