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 TestWebhookValid(t *testing.T) { // the sha can be recalculated with the below command // openssl dgst -sha1 -hmac <secret> <file> f, _ := ioutil.ReadFile("testdata/webhooks/push.json") r, _ := http.NewRequest("GET", "/", bytes.NewBuffer(f)) r.Header.Set("X-GitHub-Event", "push") r.Header.Set("X-GitHub-Deli...
explode_data.jsonl/81322
{ "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, 5981, 20873, 4088, 1155, 353, 8840, 836, 8, 341, 197, 322, 279, 15870, 646, 387, 98683, 49804, 448, 279, 3685, 3210, 198, 197, 322, 80733, 40286, 267, 481, 15247, 16, 481, 71, 11948, 366, 20474, 29, 366, 1192, 1339, 1166, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTx_OnCommit(t *testing.T) { db := MustOpenDB() defer db.MustClose() var x int if err := db.Update(func(tx *bolt.Tx) error { tx.OnCommit(func() { x += 1 }) tx.OnCommit(func() { x += 2 }) if _, err := tx.CreateBucket([]byte("widgets")); err != nil { t.Fatal(err) } return nil }); err != nil { ...
explode_data.jsonl/1700
{ "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, 31584, 35482, 33441, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 15465, 5002, 3506, 741, 16867, 2927, 50463, 7925, 2822, 2405, 856, 526, 198, 743, 1848, 1669, 2927, 16689, 18552, 27301, 353, 52433, 81362, 8, 1465, 341, 197, 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 TestClient_Sign(t *testing.T) { client := NewClient("12345", "579a57f933397e0f441ba37f239d3721") query := url.Values{} query.Set("mchid", "12345") query.Set("total_fee", "1") query.Set("out_trade_no", "123123123123") got := client.Sign(query) want := "E3114A647C5A4CDD2CFC35019556DCD3" assert.Equal(t, wan...
explode_data.jsonl/18440
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 2959, 1098, 622, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 1532, 2959, 445, 16, 17, 18, 19, 20, 497, 330, 20, 22, 24, 64, 20, 22, 69, 24, 18, 18, 18, 24, 22, 68, 15, 69, 19, 19, 16, 4645, 18, 22, 69, 17, 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 TestMap(t *testing.T) { m := map[string]string{} var mm = make(map[string]string, 2) m["a"] = "A" mm["a"] = "A" t.Log(m["a"]) t.Log(mm["a"]) }
explode_data.jsonl/64591
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 82 }
[ 2830, 3393, 2227, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 2415, 14032, 30953, 16094, 2405, 9465, 284, 1281, 9147, 14032, 30953, 11, 220, 17, 692, 2109, 1183, 64, 1341, 284, 330, 32, 698, 2109, 76, 1183, 64, 1341, 284, 330, 32, 183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScenario3484(t *testing.T) { spec.ParallelTest(t, &driver.Scenario{ PreCheck: func() { testAccPreCheck(t) }, Id: "3484", Vars: func(scenario *driver.Scenario) map[string]interface{} { return map[string]interface{}{ "Region": "th-bkk", } }, Owners: []string{"li.wei@ucloud.cn"}, Title...
explode_data.jsonl/4421
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 519 }
[ 2830, 3393, 54031, 18, 19, 23, 19, 1155, 353, 8840, 836, 8, 341, 98100, 41288, 7957, 2271, 1155, 11, 609, 12521, 18326, 20413, 515, 197, 197, 4703, 3973, 25, 2915, 368, 341, 298, 18185, 14603, 4703, 3973, 1155, 340, 197, 197, 1583, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreate(t *testing.T) { mf := mapper.NewFactory(resolve.GetBasicResolver()) iCtx := test.NewActivityInitContext(Settings{}, mf) act, err := New(iCtx) assert.Nil(t, err) assert.NotNil(t, act, "activity should not be nil") }
explode_data.jsonl/2669
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 93 }
[ 2830, 3393, 4021, 1155, 353, 8840, 836, 8, 1476, 2109, 69, 1669, 24501, 7121, 4153, 43234, 2234, 15944, 18190, 2398, 8230, 23684, 1669, 1273, 7121, 4052, 3803, 1972, 57395, 22655, 43969, 340, 92699, 11, 1848, 1669, 1532, 1956, 23684, 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
func TestNoMod(t *testing.T) { const noMod = ` -- main.go -- package main import "mod.com/bob" func main() { bob.Hello() } -- bob/bob.go -- package bob func Hello() { var x int } ` t.Run("manual", func(t *testing.T) { runner.Run(t, noMod, func(t *testing.T, env *Env) { env.Await( env.DiagnosticAtRegexp...
explode_data.jsonl/38908
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 591 }
[ 2830, 3393, 2753, 4459, 1155, 353, 8840, 836, 8, 341, 4777, 902, 4459, 284, 22074, 313, 1887, 18002, 39514, 1722, 1887, 271, 474, 330, 2593, 905, 3470, 674, 1837, 2830, 1887, 368, 341, 2233, 674, 3839, 4791, 741, 532, 313, 35192, 3470...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRightBodyAlex(t *testing.T) { rawSkin := skin.GetDefaultSkin(true) output := skin.RenderRightBody(rawSkin, skin.Options{ Scale: 16, Overlay: true, Slim: true, }) f, err := os.OpenFile("rightbody_alex_test.png", os.O_CREATE|os.O_RDWR, 0777) if err != nil { t.Fatal(err) } defer f.Close() ...
explode_data.jsonl/65008
{ "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, 5979, 5444, 27387, 1155, 353, 8840, 836, 8, 341, 76559, 37186, 1669, 6787, 2234, 3675, 37186, 3715, 692, 21170, 1669, 6787, 27386, 5979, 5444, 22460, 37186, 11, 6787, 22179, 515, 197, 197, 6947, 25, 256, 220, 16, 21, 345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCollection_UpdateOne(t *testing.T) { mgoClient := Ins() result, err := mgoClient.C("test").UpdateOne(bson.M{"name": "sheldon"}, bson.M{"$set": bson.M{"age": 18}}) if err != nil { t.Errorf("UpdateOne error: %s", err) t.FailNow() } t.Log("UpdateOne ok: ", result) }
explode_data.jsonl/30107
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 118 }
[ 2830, 3393, 6482, 47393, 3966, 1155, 353, 8840, 836, 8, 341, 2109, 3346, 2959, 1669, 9726, 2822, 9559, 11, 1848, 1669, 296, 3346, 2959, 727, 445, 1944, 1827, 4289, 3966, 1883, 930, 1321, 4913, 606, 788, 330, 927, 55043, 14345, 50980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAbsCollection_ForPage(t *testing.T) { intColl := NewIntCollection([]int{1, 2, 3, 4, 5, 6}) ret := intColl.ForPage(1, 2) if ret.Count() != 2 { t.Fatal("For page错误") } }
explode_data.jsonl/66442
{ "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, 27778, 6482, 84368, 2665, 1155, 353, 8840, 836, 8, 341, 2084, 15265, 1669, 1532, 1072, 6482, 10556, 396, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 3518, 11262, 1669, 526, 15265, 26676, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateBoard(t *testing.T) { formData := url.Values{} formData.Add("name", fmt.Sprintf("Test Board %d", testBoardCounter)) testBoardCounter++ encodedFormData := formData.Encode() // t.Log("Encoded Form Data:", encodedFormData) req := httptest.NewRequest("POST", "/boards/", strings.NewReader(encodedFormD...
explode_data.jsonl/12540
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 232 }
[ 2830, 3393, 4021, 11932, 1155, 353, 8840, 836, 8, 341, 37410, 1043, 1669, 2515, 35145, 16094, 37410, 1043, 1904, 445, 606, 497, 8879, 17305, 445, 2271, 8751, 1018, 67, 497, 1273, 11932, 14099, 1171, 18185, 11932, 14099, 81452, 197, 19329,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEcPointBytesDifferentCurves(t *testing.T) { k256 := btcec.S256() p224 := elliptic.P224() p256 := elliptic.P256() kp, err := NewScalarBaseMult(k256, big.NewInt(1)) require.NoError(t, err) data := kp.Bytes() _, err = PointFromBytesUncompressed(p224, data) require.Error(t, err) _, err = PointFromBytesUn...
explode_data.jsonl/75668
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 50730, 2609, 7078, 69123, 16704, 2342, 1155, 353, 8840, 836, 8, 341, 16463, 17, 20, 21, 1669, 19592, 68955, 808, 17, 20, 21, 741, 3223, 17, 17, 19, 1669, 77783, 292, 1069, 17, 17, 19, 741, 3223, 17, 20, 21, 1669, 77783...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOurObservability(t *testing.T) { cm, example := ConfigMapsFromTestFile(t, ObservabilityConfigName) if _, err := NewObservabilityFromConfigMap(cm); err != nil { t.Errorf("NewObservabilityFromConfigMap(actual) = %v", err) } if _, err := NewObservabilityFromConfigMap(example); err != nil { t.Errorf("New...
explode_data.jsonl/53565
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 131 }
[ 2830, 3393, 7981, 37763, 2897, 1155, 353, 8840, 836, 8, 341, 98316, 11, 3110, 1669, 5532, 36562, 3830, 2271, 1703, 1155, 11, 30843, 2897, 2648, 675, 692, 743, 8358, 1848, 1669, 1532, 37763, 2897, 3830, 2648, 2227, 51126, 1215, 1848, 961...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestInsertParam_Query(t *testing.T) { type args struct { records []element.Record columns [][]element.Column fields []Field t *BaseTable } tests := []struct { name string args args wantQuery string wantErr bool }{ { name: "1", args: args{ records: []element.Record...
explode_data.jsonl/20045
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1048 }
[ 2830, 3393, 13780, 2001, 48042, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 197, 26203, 3056, 6101, 49959, 198, 197, 51661, 82, 52931, 6101, 6153, 198, 197, 55276, 220, 3056, 1877, 198, 197, 3244, 981, 353, 3978, 2556, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetLDFlagsOpts(t *testing.T) { viper.Set("chaincode.golang.dynamicLink", true) if getLDFlagsOpts() != dynamicLDFlagsOpts { t.Error("Error handling chaincode.golang.dynamicLink configuration. ldflags should be for dynamic linkink") } viper.Set("chaincode.golang.dynamicLink", false) if getLDFlagsOpts() !=...
explode_data.jsonl/2267
{ "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, 1949, 12335, 9195, 43451, 1155, 353, 8840, 836, 8, 341, 5195, 12858, 4202, 445, 8819, 1851, 1302, 37287, 59044, 3939, 497, 830, 340, 743, 633, 12335, 9195, 43451, 368, 961, 8741, 12335, 9195, 43451, 341, 197, 3244, 6141, 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...
3
func TestDelayedTask_RunAfterWait_ShouldBlock(t *testing.T) { delayer := newDelayer() defer delayer.Stop(duration, duration) probe := make(chan taskProbe, 1) task := delayer.NewTask(duration, func(ctx context.Context, interrupted bool) error { probe <- newTaskProbe(ctx, interrupted) return nil }) _ = task.Ru...
explode_data.jsonl/66924
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 57361, 6262, 84158, 6025, 14190, 36578, 616, 4713, 1155, 353, 8840, 836, 8, 341, 69509, 1135, 1669, 501, 16532, 1135, 741, 16867, 1594, 1135, 30213, 48148, 11, 8090, 340, 197, 52329, 1669, 1281, 35190, 3383, 81426, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetByIndex(t *testing.T) { ctx := context.Background() env, client := clientEnvForTest(ctx, t, stestonly.PreorderedLogTree) defer env.Close() // Add a few test leaves. leafData := [][]byte{ []byte("A"), []byte("B"), []byte("C"), } if err := addSequencedLeaves(ctx, env, client, leafData); err != ...
explode_data.jsonl/54599
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 286 }
[ 2830, 3393, 1949, 1359, 1552, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 57538, 11, 2943, 1669, 2943, 14359, 2461, 2271, 7502, 11, 259, 11, 357, 477, 3243, 28770, 10544, 2201, 6533, 340, 16867, 6105, 10421, 2822, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestProperties_ValidateLinuxProfile(t *testing.T) { cs := getK8sDefaultContainerService(true) cs.Properties.LinuxProfile.SSH = struct { PublicKeys []PublicKey `json:"publicKeys" validate:"required,min=1"` }{ PublicKeys: []PublicKey{{}}, } expectedMsg := "KeyData in LinuxProfile.SSH.PublicKeys cannot be em...
explode_data.jsonl/17867
{ "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, 7903, 62, 17926, 46324, 8526, 1155, 353, 8840, 836, 8, 341, 71899, 1669, 633, 42, 23, 82, 3675, 4502, 1860, 3715, 340, 71899, 15945, 1214, 19559, 8526, 808, 8590, 284, 2036, 341, 197, 73146, 8850, 3056, 61822, 1565, 2236, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_CurrentPeriodKind(t *testing.T) { type want struct { wantErr bool containsErr string currentPeriodKind string } cases := []struct { name string inputHanler http.Handler want }{ { "handles RPC error", gtGoldenHTTPMock(currentPeriodKindHandlerMock(readResponse(rpc...
explode_data.jsonl/48373
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 571 }
[ 2830, 3393, 40735, 23750, 10629, 1155, 353, 8840, 836, 8, 341, 13158, 1366, 2036, 341, 197, 50780, 7747, 1843, 1807, 198, 197, 197, 13372, 7747, 981, 914, 198, 197, 20121, 23750, 10629, 914, 198, 197, 630, 1444, 2264, 1669, 3056, 1235, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_setBit(t *testing.T) { type args struct { n int b []byte v int } tests := []struct { name string args args want []byte }{ // make sure we can set arbitrary bits in an array of bytes {"a", args{0, []byte{0}, 1}, []byte{0x80}}, {"b", args{7, []byte{0}, 1}, []byte{0x01}}, {"c", args{3, []...
explode_data.jsonl/32827
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 350 }
[ 2830, 3393, 2602, 8344, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 9038, 526, 198, 197, 2233, 3056, 3782, 198, 197, 5195, 526, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 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 TestParseConfig_OldSEEncryptionFieldShouldFail(t *testing.T) { input := []byte(`bucket: "bucket-name" endpoint: "s3-endpoint" access_key: "access_key" insecure: false signature_version2: false encrypt_sse: false secret_key: "secret_key" see_encryption: true put_user_metadata: "X-Amz-Acl": "bucket-owner-full-con...
explode_data.jsonl/6239
{ "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, 14463, 2648, 2232, 507, 925, 79239, 1877, 14996, 19524, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 3056, 3782, 5809, 30410, 25, 330, 30410, 11494, 698, 32540, 25, 330, 82, 18, 13068, 2768, 698, 5211, 3097, 25, 330, 5211, 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 TestAddLearner_whenTypical(t *testing.T) { raftService := newTestRaftService(t, 1, []uint64{1}, []uint64{}) propPeer := func() { raftid, err := raftService.raftProtocolManager.ProposeNewPeer(TEST_URL, true) if err != nil { t.Errorf("propose new peer failed %v\n", err) } if raftid != raftService.raft...
explode_data.jsonl/13616
{ "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, 2212, 43, 682, 1194, 47636, 12834, 938, 1155, 353, 8840, 836, 8, 1476, 197, 2944, 1860, 1669, 501, 2271, 55535, 723, 1860, 1155, 11, 220, 16, 11, 3056, 2496, 21, 19, 90, 16, 2137, 3056, 2496, 21, 19, 6257, 692, 79244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNextFuncComment(t *testing.T) { var src = `package main // Comment foo // Comment bar func foo() error { _ = func() { // ------- } return nil } func bar() error { return nil }` testPos := []struct { start int want int }{ {start: 14, want: 108}, {start: 29, want: 108}, } opts := &ParserO...
explode_data.jsonl/60363
{ "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, 5847, 9626, 10677, 1155, 353, 8840, 836, 8, 341, 2405, 2286, 284, 1565, 1722, 1887, 271, 322, 12255, 15229, 198, 322, 12255, 3619, 198, 2830, 15229, 368, 1465, 341, 197, 62, 284, 2915, 368, 341, 197, 197, 322, 38607, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestModuleFailsToLoad(t *testing.T) { // Arrange logger, err := zap.NewDevelopment() require.NoError(t, err, "failed to get logger") config := getConfigWithAuthListener(t, []string{"auth"}, []int{1}, true) // Create loaders loader := loaderstest.MockLoader{} defer loader.AssertExpectations(t) loader.On("L...
explode_data.jsonl/59970
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 203 }
[ 2830, 3393, 3332, 37, 6209, 1249, 5879, 1155, 353, 8840, 836, 8, 341, 197, 322, 40580, 198, 17060, 11, 1848, 1669, 32978, 7121, 39419, 741, 17957, 35699, 1155, 11, 1848, 11, 330, 16091, 311, 633, 5925, 1138, 25873, 1669, 66763, 2354, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOneBrokenModule(t *testing.T) { const multiModule = ` -- moda/a/go.mod -- module a.com require b.com v1.2.3 -- moda/a/a.go -- package a import ( "b.com/b" ) func main() { var x int _ = b.Hello() } -- modb/go.mod -- modul b.com // typo here -- modb/b/b.go -- package b func Hello() int { var x int } `...
explode_data.jsonl/37366
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 355 }
[ 2830, 3393, 3966, 90526, 3332, 1155, 353, 8840, 836, 8, 341, 4777, 7299, 3332, 284, 22074, 313, 90668, 14186, 25525, 10929, 39514, 4352, 264, 905, 271, 4310, 293, 905, 348, 16, 13, 17, 13, 18, 271, 313, 90668, 14186, 14186, 18002, 395...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCuckooDeleteTime(t *testing.T) { f := NewCuckooFilter(uint(5000000), 0.001) data := make([][]byte, 5000000) for i := 0; i < 5000000; i++ { data[i] = []byte(strconv.Itoa(i)) } for i := 0; i < 5000000; i++ { f.Insert(data[i]) } now := time.Now() for i := 0; i < 5000000; i++ { f.Delete(data[i]) ...
explode_data.jsonl/24419
{ "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, 34, 1942, 2624, 6435, 1462, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 1532, 34, 1942, 2624, 5632, 8488, 7, 20, 15, 15, 15, 15, 15, 15, 701, 220, 15, 13, 15, 15, 16, 692, 8924, 1669, 1281, 10556, 1294, 3782, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestLinkedInProviderGetEmailAddressEmailNotPresentInPayload(t *testing.T) { b := testLinkedInBackend("{\"foo\": \"bar\"}") defer b.Close() bURL, _ := url.Parse(b.URL) p := testLinkedInProvider(bURL.Host) session := &SessionState{AccessToken: "imaginary_access_token"} email, err := p.GetEmailAddress(session...
explode_data.jsonl/39464
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 138 }
[ 2830, 3393, 75203, 5179, 1949, 79986, 4781, 2623, 21195, 641, 29683, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 1273, 75203, 29699, 99141, 7975, 11693, 7245, 2257, 2105, 14451, 16867, 293, 10421, 2822, 2233, 3144, 11, 716, 1669, 2515, 8937...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCarryOnWhenDeadlineExpires(t *testing.T) { impossibleDeadline := time.Nanosecond fastExpiringCtx, cancel := context.WithTimeout(context.Background(), impossibleDeadline) defer cancel() n := New() defer n.Shutdown() block := blocks.NewBlock([]byte("A Missed Connection")) blockChannel := n.Subscribe(fas...
explode_data.jsonl/8960
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 127 }
[ 2830, 3393, 8852, 884, 1925, 4498, 83593, 65331, 1155, 353, 8840, 836, 8, 1476, 54892, 10031, 83593, 1669, 882, 2067, 276, 960, 1297, 198, 1166, 559, 840, 78763, 23684, 11, 9121, 1669, 2266, 26124, 7636, 5378, 19047, 1507, 11997, 83593, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHealthCheckCloseWaitsForGoRoutines(t *testing.T) { ts := memorytopo.NewServer("cell") hc := createTestHc(ts) tablet := topo.NewTablet(0, "cell", "a") tablet.PortMap["vt"] = 1 input := make(chan *querypb.StreamHealthResponse, 1) createFakeConn(tablet, input) resultChan := hc.Subscribe() hc.AddTablet(ta...
explode_data.jsonl/47687
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 898 }
[ 2830, 3393, 14542, 3973, 7925, 54, 56479, 2461, 10850, 49, 28628, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 4938, 3481, 78, 7121, 5475, 445, 5873, 1138, 9598, 66, 1669, 1855, 2271, 39, 66, 35864, 340, 26481, 83, 1669, 72519, 7121, 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...
3
func TestMsgEditNFTGetSignersMethod(t *testing.T) { newMsgEditNFT := types.NewMsgEditNFT(id, denom, nftName, tokenURI, uriHash, tokenData, address.String()) signers := newMsgEditNFT.GetSigners() require.Equal(t, 1, len(signers)) require.Equal(t, address.String(), signers[0].String()) }
explode_data.jsonl/28175
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 110 }
[ 2830, 3393, 6611, 4036, 45, 3994, 1949, 7264, 388, 3523, 1155, 353, 8840, 836, 8, 341, 8638, 6611, 4036, 45, 3994, 1669, 4494, 7121, 6611, 4036, 45, 3994, 3724, 11, 49744, 11, 308, 723, 675, 11, 3950, 10301, 11, 13071, 6370, 11, 395...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDynamoDB_PutItem(t *testing.T) { t.Run("should return an error because table name is empty", func(t *testing.T) { dynamoDB := &DynamoDB{} err := dynamoDB.PutItem("", nil) if bindings.ErrInvalidParameter != errors.Cause(err) { t.Fatalf("expected error %s, got %s", bindings.ErrInvalidParameter, err)...
explode_data.jsonl/7374
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 386 }
[ 2830, 3393, 35, 85608, 3506, 1088, 332, 1234, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 5445, 470, 458, 1465, 1576, 1965, 829, 374, 4287, 497, 2915, 1155, 353, 8840, 836, 8, 1476, 197, 2698, 85608, 3506, 1669, 609, 35, 85608, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSeries_Lower(t *testing.T) { // assert that function returns correctly lowered series s := NewSeries("test", "foo", "BAR", "BaZ") assert.Equal(t, NewSeries("ToLower(test)", "foo", "bar", "baz"), s.Lower()) }
explode_data.jsonl/54082
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 76 }
[ 2830, 3393, 25544, 2351, 1202, 1155, 353, 8840, 836, 8, 341, 197, 322, 2060, 429, 729, 4675, 12440, 38820, 4013, 198, 1903, 1669, 1532, 25544, 445, 1944, 497, 330, 7975, 497, 330, 33065, 497, 330, 58827, 57, 1138, 6948, 12808, 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
func TestBadTar(t *testing.T) { dir, err := ioutil.TempDir(os.TempDir(), "dest") if err != nil { t.Errorf("unexpected error: %v ", err) t.FailNow() } defer os.RemoveAll(dir) // More or less cribbed from https://golang.org/pkg/archive/tar/#example__minimal var buf bytes.Buffer tw := tar.NewWriter(&buf) var ...
explode_data.jsonl/58290
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 532 }
[ 2830, 3393, 17082, 62733, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 9638, 65009, 6184, 1507, 330, 4979, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 53859, 1465, 25, 1018, 85, 3670, 1848, 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...
9
func TestField_read(t *testing.T) { block := mockMetricMergeBlock([]uint32{1}, 5, 5) r, err := NewReader("1.sst", block) assert.NoError(t, err) assert.NotNil(t, r) scanner := newDataScanner(r) seriesPos := scanner.scan(0, 1) fReader := newFieldReader(block, seriesPos, 5, 5) start, end := fReader.slotRange() as...
explode_data.jsonl/14970
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 740 }
[ 2830, 3393, 1877, 6443, 1155, 353, 8840, 836, 8, 341, 47996, 1669, 7860, 54310, 52096, 4713, 10556, 2496, 18, 17, 90, 16, 2137, 220, 20, 11, 220, 20, 340, 7000, 11, 1848, 1669, 1532, 5062, 445, 16, 514, 267, 497, 2504, 340, 6948, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFetchMessagesFirstPollingGetMsgBodyError(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() ch := randomChannelID(t) keys := keyOfChannel(ch) sl := domain.SubscriberLocator{ChannelID: ch, SubscriberID: "sbsc-1"} s, redisCmd, _ := newMockedRedisStorageAndPubSubDispatcher(ctrl) // (1st...
explode_data.jsonl/51710
{ "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, 20714, 15820, 5338, 49207, 287, 1949, 6611, 5444, 1454, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 23049, 1669, 4194, 9629, 915, 1155, 340, 80112, 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 TestFail(t *testing.T) { originalStderr := stderr originalExit := osExit defer func() { stderr = originalStderr osExit = originalExit }() var b bytes.Buffer stderr = &b var exitCode int osExit = func(code int) { exitCode = code } expectedStdout := ` Usage: example [--foo FOO] error: something went ...
explode_data.jsonl/20502
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 19524, 1155, 353, 8840, 836, 8, 341, 197, 9889, 22748, 615, 1669, 26436, 198, 197, 9889, 15339, 1669, 2643, 15339, 198, 16867, 2915, 368, 341, 197, 6736, 615, 284, 4024, 22748, 615, 198, 197, 25078, 15339, 284, 4024, 15339, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDumpConsensusState(t *testing.T) { for i, c := range GetClients() { // FIXME: fix server so it doesn't panic on invalid input nc, ok := c.(client.NetworkClient) require.True(t, ok, "%d", i) cons, err := nc.DumpConsensusState() require.Nil(t, err, "%d: %+v", i, err) assert.NotEmpty(t, cons.RoundSta...
explode_data.jsonl/48943
{ "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, 51056, 15220, 13626, 1397, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 272, 1669, 2088, 2126, 47174, 368, 341, 197, 197, 322, 27475, 25, 5046, 3538, 773, 432, 3171, 944, 21975, 389, 8318, 1946, 198, 197, 197, 1016, 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...
2
func TestInvalidServerConfiguration(t *testing.T) { c1, c2, err := netPipe() if err != nil { t.Fatalf("netPipe: %v", err) } defer c1.Close() defer c2.Close() serveConn := noReadConn{Conn: c1} serverConf := &ServerConfig{} NewServerConn(&serveConn, serverConf) if serveConn.readSeen { t.Fatalf("NewServerCo...
explode_data.jsonl/34806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 217 }
[ 2830, 3393, 7928, 5475, 7688, 1155, 353, 8840, 836, 8, 341, 1444, 16, 11, 272, 17, 11, 1848, 1669, 4179, 34077, 741, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 4711, 34077, 25, 1018, 85, 497, 1848, 340, 197, 532, 16867, 272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvalidAddress(t *testing.T) { for _, test := range invalidAddress { _, _, bcErr := bech32.SegwitAddrDecode("bc", test) t.Logf("bc error:%v\n", bcErr) _, _, tbErr := bech32.SegwitAddrDecode("tb", test) t.Logf("tb error:%v\n", tbErr) if bcErr != nil && tbErr != nil { t.Logf("Invalid address %v : o...
explode_data.jsonl/72631
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 192 }
[ 2830, 3393, 7928, 4286, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 8318, 4286, 341, 197, 197, 6878, 8358, 17916, 7747, 1669, 387, 331, 18, 17, 808, 791, 88519, 13986, 32564, 445, 8904, 497, 1273, 340, 197, 3244, 98954...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAssignConfig_01(t *testing.T) { _BConfig := &Config{} _BConfig.AppName = "beego_test" jcf := &beeJson.JSONConfig{} ac, _ := jcf.ParseData([]byte(`{"AppName":"beego_json"}`)) assignSingleConfig(_BConfig, ac) if _BConfig.AppName != "beego_json" { t.Log(_BConfig) t.FailNow() } }
explode_data.jsonl/60515
{ "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, 28933, 2648, 62, 15, 16, 1155, 353, 8840, 836, 8, 341, 197, 1668, 2648, 1669, 609, 2648, 16094, 197, 1668, 2648, 5105, 675, 284, 330, 1371, 13243, 4452, 698, 12428, 9792, 1669, 609, 32031, 5014, 18009, 2648, 16094, 81200, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetMembers(t *testing.T) { p := NewTimeline("testConfigDir") if _, err := p.GetMembers(); err == nil { t.Errorf("GetMembers(): should throw ==> '%v'", "open testConfigDir: no such file or directory") } createTestFiles(testConfigDir) defer fcc.RemoveFiles(TestMemberNames, testConfigDir, t) p = NewTim...
explode_data.jsonl/7672
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 353 }
[ 2830, 3393, 1949, 24371, 1155, 353, 8840, 836, 8, 1476, 3223, 1669, 1532, 59641, 445, 1944, 2648, 6184, 1138, 743, 8358, 1848, 1669, 281, 2234, 24371, 2129, 1848, 621, 2092, 341, 197, 3244, 13080, 445, 1949, 24371, 4555, 1265, 2510, 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...
9
func TestVolumeSetBlockRestriction(t *testing.T) { db := tests.Tempfile() defer os.Remove(db) // Create the app app := glusterfs.NewTestApp(db) defer app.Close() // Setup the server ts := setupHeketiServer(app) defer ts.Close() // Create cluster c := NewClient(ts.URL, "admin", TEST_ADMIN_KEY) tests.Assert...
explode_data.jsonl/18021
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 734 }
[ 2830, 3393, 18902, 1649, 4713, 50360, 2479, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 7032, 65009, 1192, 741, 16867, 2643, 13270, 9791, 692, 197, 322, 4230, 279, 906, 198, 28236, 1669, 2770, 4993, 3848, 7121, 2271, 2164, 9791, 340, 168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContextRenderHTML(t *testing.T) { w := httptest.NewRecorder() c, router := CreateTestContext(w) templ := template.Must(template.New("t").Parse(`Hello {{.name}}`)) router.SetHTMLTemplate(templ) c.HTML(http.StatusCreated, "t", H{"name": "alexandernyquist"}) assert.Equal(t, http.StatusCreated, w.Code) a...
explode_data.jsonl/26781
{ "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, 1972, 6750, 5835, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 54320, 70334, 7121, 47023, 741, 1444, 11, 9273, 1669, 4230, 2271, 1972, 3622, 692, 197, 74860, 1669, 3811, 50463, 29963, 7121, 445, 83, 1827, 14463, 5809, 9707, 586...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNotEqualWrapper(t *testing.T) { assert := New(new(testing.T)) if !assert.NotEqual("Hello World", "Hello World!") { t.Error("NotEqual should return true") } if !assert.NotEqual(123, 1234) { t.Error("NotEqual should return true") } if !assert.NotEqual(123.5, 123.55) { t.Error("NotEqual should retur...
explode_data.jsonl/54971
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 216 }
[ 2830, 3393, 2623, 2993, 11542, 1155, 353, 8840, 836, 8, 1476, 6948, 1669, 1532, 1755, 8623, 287, 836, 4390, 743, 753, 2207, 15000, 2993, 445, 9707, 4337, 497, 330, 9707, 4337, 88783, 341, 197, 3244, 6141, 445, 2623, 2993, 1265, 470, 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...
6
func TestSafeAdd(t *testing.T) { f := func(a, b int64) bool { c, overflow := safeAdd(a, b) return overflow || (!overflow && c == a+b) } if err := quick.Check(f, nil); err != nil { t.Error(err) } }
explode_data.jsonl/28322
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 90 }
[ 2830, 3393, 25663, 2212, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 2915, 2877, 11, 293, 526, 21, 19, 8, 1807, 341, 197, 1444, 11, 16484, 1669, 6092, 2212, 2877, 11, 293, 340, 197, 853, 16484, 1369, 1505, 20823, 1009, 272, 621, 264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestModTime(t *testing.T) { var testTime = time.Date(2009, time.November, 10, 23, 45, 58, 0, time.UTC) fh := new(FileHeader) fh.SetModTime(testTime) outTime := fh.ModTime() if !outTime.Equal(testTime) { t.Errorf("times don't match: got %s, want %s", outTime, testTime) } }
explode_data.jsonl/18858
{ "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, 4459, 1462, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 1462, 284, 882, 8518, 7, 17, 15, 15, 24, 11, 882, 2067, 859, 1377, 11, 220, 16, 15, 11, 220, 17, 18, 11, 220, 19, 20, 11, 220, 20, 23, 11, 220, 15, 11, 882, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetContainerIndex(t *testing.T) { task := &Task{ Containers: []*apicontainer.Container{ { Name: "c1", }, { Name: "p", Type: apicontainer.ContainerCNIPause, }, { Name: "c2", }, }, } assert.Equal(t, 0, task.GetContainerIndex("c1")) assert.Equal(t, 1, task.GetContainerIn...
explode_data.jsonl/37265
{ "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, 1949, 4502, 1552, 1155, 353, 8840, 836, 8, 341, 49115, 1669, 609, 6262, 515, 197, 197, 74632, 25, 29838, 391, 51160, 1743, 33672, 515, 298, 197, 515, 571, 21297, 25, 330, 66, 16, 756, 298, 197, 1583, 298, 197, 515, 571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadSessionFile(t *testing.T) { defer os.Remove(sessionTmpFile) aoSession, _ := LoadSessionFile(sessionTmpFile) assert.Empty(t, aoSession) aoSession = &AOSession{ RefName: "master", APICluster: "testApiCluster", AuroraConfig: "", Localhost: false, Tokens: map[string]string{}, } ...
explode_data.jsonl/64177
{ "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, 5879, 5283, 1703, 1155, 353, 8840, 836, 8, 341, 16867, 2643, 13270, 16264, 35986, 1703, 340, 197, 3441, 5283, 11, 716, 1669, 8893, 5283, 1703, 16264, 35986, 1703, 340, 6948, 11180, 1155, 11, 14845, 5283, 692, 197, 3441, 5283...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBQTableToMetadata(t *testing.T) { aTime := time.Date(2017, 1, 26, 0, 0, 0, 0, time.Local) aTimeMillis := aTime.UnixNano() / 1e6 for _, test := range []struct { in *bq.Table want *TableMetadata }{ {&bq.Table{}, &TableMetadata{}}, // test minimal case { &bq.Table{ CreationTime: aTimeMill...
explode_data.jsonl/70125
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 921 }
[ 2830, 3393, 33, 48, 2556, 1249, 14610, 1155, 353, 8840, 836, 8, 341, 11323, 1462, 1669, 882, 8518, 7, 17, 15, 16, 22, 11, 220, 16, 11, 220, 17, 21, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 882, 20856, 340, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNormalScoreInput(t *testing.T) { for cas, test := range []struct { mu []float64 sigma *mat.SymDense x []float64 }{ { mu: []float64{2, 3, 4}, sigma: mat.NewSymDense(3, []float64{2, 0.5, 3, 0.5, 1, 0.6, 3, 0.6, 10}), x: []float64{1, 3.1, -2}, }, { mu: []float64{2, 3, 4,...
explode_data.jsonl/12027
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 507 }
[ 2830, 3393, 12206, 10570, 2505, 1155, 353, 8840, 836, 8, 341, 2023, 4760, 11, 1273, 1669, 2088, 3056, 1235, 341, 197, 2109, 84, 262, 3056, 3649, 21, 19, 198, 197, 1903, 11491, 353, 8470, 808, 1600, 35, 1117, 198, 197, 10225, 257, 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...
5
func TestFlushManagerNamespaceFlushTimesErr(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() var ( fakeErr = errors.New("some-err") mockPersistManager = persist.NewMockManager(ctrl) mockFlushPersist = persist.NewMockFlushPreparer(ctrl) mockSnapshotPersist = persist.NewMock...
explode_data.jsonl/82124
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 715 }
[ 2830, 3393, 46874, 2043, 22699, 46874, 18889, 7747, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 2405, 2399, 197, 1166, 726, 7747, 1797, 284, 5975, 7121, 445, 14689, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWithListener_Buf(t *testing.T) { t.Parallel() buf := bufconn.Listen(1024 * 1024) defer buf.Close() // nolint: errcheck runShutdownTest(t, rest.WithListener(buf, false)) }
explode_data.jsonl/23584
{ "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, 2354, 2743, 1668, 1704, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 26398, 1669, 6607, 5148, 68334, 7, 16, 15, 17, 19, 353, 220, 16, 15, 17, 19, 340, 16867, 6607, 10421, 368, 442, 308, 337, 396, 25, 1848, 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
func TestHandler(t *testing.T) { reader, err := replay.NewPacketReader("test/test_traffic.pcapng") if err != nil { t.Errorf("Failed to create packet reader. err=%v", err) } handler := NewHandler() for { hdr, packet, err := reader.NextPacket() if err != nil { panic(err) } else if hdr == nil { break /...
explode_data.jsonl/60418
{ "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, 3050, 1155, 353, 8840, 836, 8, 341, 61477, 11, 1848, 1669, 34485, 7121, 16679, 5062, 445, 1944, 12697, 90012, 556, 11346, 968, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 9408, 311, 1855, 10151, 6604, 13, 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...
5
func TestIssue123WeightedUndirectedGraph(t *testing.T) { defer func() { if r := recover(); r != nil { t.Errorf("unexpected panic: %v", r) } }() g := multi.NewWeightedUndirectedGraph() n0 := g.NewNode() g.AddNode(n0) n1 := g.NewNode() g.AddNode(n1) g.RemoveNode(n0.ID()) n2 := g.NewNode() g.AddNode(n...
explode_data.jsonl/24927
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 151 }
[ 2830, 3393, 42006, 16, 17, 18, 8295, 291, 19957, 74612, 11212, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 743, 435, 1669, 11731, 2129, 435, 961, 2092, 341, 298, 3244, 13080, 445, 53859, 21975, 25, 1018, 85, 497, 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...
2
func TestWriteWithWriterError(t *testing.T) { expectedError := errors.New("expected") expectedReturnedBytes := 10 writer := NewStdWriter(&errWriter{ n: stdWriterPrefixLen + expectedReturnedBytes, err: expectedError}, Stdout) data := []byte("This won't get written, sigh") n, err := writer.Write(data) if err ...
explode_data.jsonl/52156
{ "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, 7985, 2354, 6492, 1454, 1155, 353, 8840, 836, 8, 341, 42400, 1454, 1669, 5975, 7121, 445, 7325, 1138, 42400, 84804, 7078, 1669, 220, 16, 15, 198, 38959, 1669, 1532, 22748, 6492, 2099, 615, 6492, 515, 197, 9038, 25, 256, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStudentsTMarginalSingle(t *testing.T) { for _, test := range []struct { mu []float64 sigma *mat.SymDense nu float64 }{ { mu: []float64{2, 3, 4}, sigma: mat.NewSymDense(3, []float64{2, 0.5, 3, 0.5, 1, 0.6, 3, 0.6, 10}), nu: 5, }, { mu: []float64{2, 3, 4, 5}, sigma: ma...
explode_data.jsonl/3129
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 563 }
[ 2830, 3393, 30952, 22034, 858, 977, 10888, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 2109, 84, 262, 3056, 3649, 21, 19, 198, 197, 1903, 11491, 353, 8470, 808, 1600, 35, 1117, 198, 197, 197, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateAwsKmsName(t *testing.T) { cases := []struct { Value string ErrCount int }{ { Value: "alias/aws/s3", ErrCount: 0, }, { Value: "alias/hashicorp", ErrCount: 0, }, { Value: "hashicorp", ErrCount: 1, }, { Value: "hashicorp/terraform", ErrCount: 1, ...
explode_data.jsonl/78620
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 261 }
[ 2830, 3393, 17926, 47359, 42, 1011, 675, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 47399, 262, 914, 198, 197, 197, 7747, 2507, 526, 198, 197, 59403, 197, 197, 515, 298, 47399, 25, 262, 330, 14956, 41273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemovePGPKey(t *testing.T) { type g struct { originalValue string expected string } tests := []g{ { " kDBcBAABCAAGBQJYRXDpAAoJEP6+b85LBShD46IP+gNG/HO+BMDm76SZVIIkOMnS\n qw/DhStoxYgdjbwKxiMVISQ5fHJqX4+PbRv2pcMtWy74cK79qK1OgxLCWWLf4zft\n FiRfp/Wq92ChglsN95GI0IrbehloqdP1wzSMo99WtNGb8uacsnO1P9pDF...
explode_data.jsonl/10375
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 745 }
[ 2830, 3393, 13021, 11383, 47, 1592, 1155, 353, 8840, 836, 8, 341, 13158, 342, 2036, 341, 197, 197, 9889, 1130, 914, 198, 197, 42400, 414, 914, 198, 197, 630, 78216, 1669, 3056, 70, 515, 197, 197, 515, 298, 197, 1, 595, 3506, 66, 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 TestResourceConfigMode(t *testing.T) { resource.UnitTest(t, resource.TestCase{ Providers: testAccProviders, CheckDestroy: testAccCheckResourceDestroy, Steps: []resource.TestStep{ resource.TestStep{ Config: strings.TrimSpace(` resource "test_resource_config_mode" "foo" { resource_as_attr = [ { ...
explode_data.jsonl/8382
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1098 }
[ 2830, 3393, 4783, 2648, 3636, 1155, 353, 8840, 836, 8, 341, 50346, 25159, 2271, 1155, 11, 5101, 31363, 515, 197, 197, 37351, 25, 262, 1273, 14603, 37351, 345, 197, 69472, 14245, 25, 1273, 14603, 3973, 4783, 14245, 345, 197, 197, 33951, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBreakerCounts(t *testing.T) { cb := NewBreaker() cb.Fail() if failures := cb.Failures(); failures != 1 { t.Fatalf("expected failure count to be 1, got %d", failures) } cb.Fail() if consecFailures := cb.ConsecFailures(); consecFailures != 2 { t.Fatalf("expected 2 consecutive failures, got %d", conse...
explode_data.jsonl/60794
{ "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, 22524, 261, 63731, 1155, 353, 8840, 836, 8, 341, 63810, 1669, 1532, 22524, 261, 2822, 63810, 57243, 741, 743, 27850, 1669, 9858, 57243, 1413, 2129, 27850, 961, 220, 16, 341, 197, 3244, 30762, 445, 7325, 7901, 1760, 311, 387,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRender(t *testing.T) { ctx := context.Background() tests := loadTestCases(t, filepath.Join("test-cases", "render-inline.yaml")) for _, test := range tests { t.Run(test.Name, func(t *testing.T) { mc := gomock.NewController(t) mockUI := ui.NewMockUi(mc) p := mockplanner.NewMockPlanner(mc) con...
explode_data.jsonl/29298
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 709 }
[ 2830, 3393, 6750, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 78216, 1669, 2795, 2271, 37302, 1155, 11, 26054, 22363, 445, 1944, 1786, 2264, 497, 330, 7322, 23633, 33406, 28075, 2023, 8358, 1273, 1669, 2088, 7032, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestExeCmd(t *testing.T) { execCmd("ls -l") execCmd("echo 1.0.1-test") execCmd("echo 1.0.1-test") execCmd(` echo 1.0.1-test`) }
explode_data.jsonl/18048
{ "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, 840, 68, 15613, 1155, 353, 8840, 836, 8, 341, 67328, 15613, 445, 4730, 481, 75, 1138, 67328, 15613, 445, 3047, 220, 16, 13, 15, 13, 16, 16839, 1138, 67328, 15613, 445, 3047, 220, 16, 13, 15, 13, 16, 16839, 1138, 67328, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSaveBlockIndex(t *testing.T) { s := objmock.NewStore() enc := objects.NewStrListEncoder(true) hash := meow.New(0) idx, err := objects.IndexBlock(enc, hash, testutils.BuildRawCSV(5, 10), []uint32{0}) require.NoError(t, err) buf := bytes.NewBuffer(nil) _, err = idx.WriteTo(buf) require.NoError(t, err) ...
explode_data.jsonl/57827
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 309 }
[ 2830, 3393, 8784, 4713, 1552, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 2839, 16712, 7121, 6093, 2822, 197, 954, 1669, 6171, 7121, 2580, 852, 19921, 3715, 340, 50333, 1669, 752, 363, 7121, 7, 15, 340, 62077, 11, 1848, 1669, 6171, 1833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInitializeCloudProviderRateLimitConfigWithNoRateLimitSettingsReturnsDefaults(t *testing.T) { emptyConfig := &CloudProviderRateLimitConfig{} err := InitializeCloudProviderRateLimitConfig(emptyConfig) assert.NoError(t, err) assert.Equal(t, emptyConfig.CloudProviderRateLimitQPS, rateLimitQPSDefault) assert....
explode_data.jsonl/12799
{ "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, 9928, 16055, 5179, 11564, 16527, 2648, 2354, 2753, 11564, 16527, 6086, 16446, 16273, 1155, 353, 8840, 836, 8, 341, 197, 3194, 2648, 1669, 609, 16055, 5179, 11564, 16527, 2648, 16094, 9859, 1669, 9008, 16055, 5179, 11564, 16527, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCancelAllExchangeOrders(t *testing.T) { // Arrange h.SetDefaults() TestSetup(t) if !isRealOrderTestEnabled() { t.Skip() } currencyPair := pair.NewCurrencyPair(symbol.LTC, symbol.BTC) var orderCancellation = exchange.OrderCancellation{ OrderID: "1", WalletAddress: "1F5zVDgNjorJ51oGebSvNCrS...
explode_data.jsonl/9489
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 275 }
[ 2830, 3393, 9269, 2403, 31564, 24898, 1155, 353, 8840, 836, 8, 341, 197, 322, 40580, 198, 9598, 4202, 16273, 741, 73866, 21821, 1155, 692, 743, 753, 285, 12768, 4431, 2271, 5462, 368, 341, 197, 3244, 57776, 741, 197, 630, 1444, 5088, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_azureProvider_Plugins(t *testing.T) { want := []common.Plugin{ {Name: "azure-native", Version: "v1.60.0"}, {Name: "azure", Version: "v4.39.0"}, {Name: "azuread", Version: "v5.17.0"}, } got := (&azureProvider{}).Plugins() if !reflect.DeepEqual(got, want) { t.Errorf("azureProvider.Plugins() = %v, wa...
explode_data.jsonl/59642
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 62, 39495, 5179, 41609, 6840, 1155, 353, 8840, 836, 8, 341, 50780, 1669, 3056, 5464, 64378, 515, 197, 197, 63121, 25, 330, 39495, 15598, 497, 6079, 25, 330, 85, 16, 13, 21, 15, 13, 15, 7115, 197, 197, 63121, 25, 330, 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 TestTxnManager1(t *testing.T) { mgr := txnbase.NewTxnManager(TxnStoreFactory(nil, nil, nil, nil), TxnFactory(nil)) mgr.Start() txn := mgr.StartTxn(nil) txn.MockIncWriteCnt() lock := sync.Mutex{} seqs := make([]int, 0) txn.SetPrepareCommitFn(func(i interface{}) error { time.Sleep(time.Millisecond * 100) ...
explode_data.jsonl/14650
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 480 }
[ 2830, 3393, 31584, 77, 2043, 16, 1155, 353, 8840, 836, 8, 341, 2109, 901, 1669, 49721, 3152, 7121, 31584, 77, 2043, 4140, 42967, 6093, 4153, 27907, 11, 2092, 11, 2092, 11, 2092, 701, 39850, 77, 4153, 27907, 1171, 2109, 901, 12101, 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 TestDefaultEnablePodSecurityPolicy(t *testing.T) { cases := []struct { name string cs ContainerService expected bool }{ { name: "default", cs: ContainerService{ Properties: &Properties{ OrchestratorProfile: &OrchestratorProfile{ OrchestratorType: Kubernetes, Orches...
explode_data.jsonl/33898
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 785 }
[ 2830, 3393, 3675, 11084, 23527, 15352, 13825, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 71899, 981, 9678, 1860, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 515, 298, 11609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConverterMapOverrideReqToOpt(t *testing.T) { fieldMap := make(map[string]codegen.FieldMapperEntry) fieldMap["One"] = codegen.FieldMapperEntry{ QualifiedName: "Two", Override: true, } lines, err := convertTypes( "Foo", "Bar", `struct Foo { 1: required bool one 2: optional bool two } ...
explode_data.jsonl/62067
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 261 }
[ 2830, 3393, 14920, 2227, 2177, 27234, 1249, 21367, 1155, 353, 8840, 836, 8, 341, 39250, 2227, 1669, 1281, 9147, 14032, 60, 95859, 17087, 10989, 5874, 340, 39250, 2227, 1183, 3966, 1341, 284, 2038, 4370, 17087, 10989, 5874, 515, 197, 16995...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLen(t *testing.T) { assert := require.New(t) var input interface{} assert.Zero(Len(nil)) assert.Zero(Len(input)) input = []int{1, 3, 5} assert.Equal(3, Len(input)) assert.Equal(3, Len(`123`)) }
explode_data.jsonl/45555
{ "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, 11271, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 1373, 7121, 1155, 340, 2405, 1946, 3749, 31483, 6948, 35489, 4957, 268, 27907, 1171, 6948, 35489, 4957, 268, 5384, 1171, 22427, 284, 3056, 396, 90, 16, 11, 220, 18, 11, 220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestValidMSPWithNodeOU(t *testing.T) { //测试数据/节点3: //配置使节点和管理和签名标识有效 thisMSP := getLocalMSPWithVersion(t, "testdata/nodeous3", MSPv1_1) assert.True(t, thisMSP.(*bccspmsp).ouEnforcement) id, err := thisMSP.GetDefaultSigningIdentity() assert.NoError(t, err) err = id.Validate() assert.NoError(t, err) //MSPV1...
explode_data.jsonl/2650
{ "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, 4088, 44, 4592, 2354, 1955, 11922, 1155, 353, 8840, 836, 8, 341, 322, 81705, 20074, 14, 92374, 18, 28311, 322, 85767, 32555, 92374, 33108, 108069, 110573, 106918, 88086, 198, 2046, 44, 4592, 1669, 633, 7319, 44, 4592, 2354, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExecutorResolveTransaction(t *testing.T) { protocol := "resolveTest" var save string save, *vtgateconn.VtgateProtocol = *vtgateconn.VtgateProtocol, protocol defer func() { *vtgateconn.VtgateProtocol = save }() vtgateconn.RegisterDialer(protocol, func(context.Context, string) (vtgateconn.Impl, error) { ...
explode_data.jsonl/25177
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 379 }
[ 2830, 3393, 25255, 56808, 8070, 1155, 353, 8840, 836, 8, 341, 197, 17014, 1669, 330, 17325, 2271, 698, 2405, 3581, 914, 198, 49230, 11, 353, 9708, 24601, 5148, 5058, 83, 24601, 20689, 284, 353, 9708, 24601, 5148, 5058, 83, 24601, 20689,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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) { testCases := test.LoadTestCases(t, "compile") for _, tcase := range testCases { tcase := tcase t.Run(tcase.Name, func(t *testing.T) { tc := readTestCase(t, tcase.Input) cu := mkCompilationUnit(t, tc) haveRes, haveErr := compile.Compile(cu) if len(tc.WantErrors) > 0 {...
explode_data.jsonl/36553
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 279 }
[ 2830, 3393, 46126, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 1273, 13969, 2271, 37302, 1155, 11, 330, 20433, 5130, 2023, 8358, 259, 5638, 1669, 2088, 1273, 37302, 341, 197, 3244, 5638, 1669, 259, 5638, 198, 197, 3244, 16708, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestToGroupSelector(t *testing.T) { pSelector := metav1.LabelSelector{} nSelector := metav1.LabelSelector{} tables := []struct { namespace string podSelector *metav1.LabelSelector nsSelector *metav1.LabelSelector expGroupSelector *antreatypes.GroupSelector }{ { "nsName", &pSel...
explode_data.jsonl/82436
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 945 }
[ 2830, 3393, 1249, 2808, 5877, 1155, 353, 8840, 836, 8, 341, 3223, 5877, 1669, 77520, 16, 4679, 5877, 16094, 9038, 5877, 1669, 77520, 16, 4679, 5877, 16094, 26481, 82, 1669, 3056, 1235, 341, 197, 56623, 286, 914, 198, 197, 3223, 347, 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...
6
func TestBitsDeclConforms(t *testing.T) { decl, ok := testSchema(t).lookupDeclByName("ExampleBits", false) if !ok { t.Fatalf("lookupDeclByName failed") } bitsDecl := decl.(*BitsDecl) checkConforms(t, context{}, bitsDecl, []conformTest{ // Underlying type for ExampleBits is uint8. conformOk{uint64(0)}...
explode_data.jsonl/21398
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 353 }
[ 2830, 3393, 19920, 21629, 1109, 9807, 1155, 353, 8840, 836, 8, 341, 197, 10005, 11, 5394, 1669, 1273, 8632, 1155, 568, 21020, 21629, 16898, 445, 13314, 19920, 497, 895, 340, 743, 753, 562, 341, 197, 3244, 30762, 445, 21020, 21629, 16898...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestZoneNameExistsForExistentZoneIntegration(t *testing.T) { c := client() exists, err := c.ZoneNameExists("ok.") if err != nil { t.Error(err) } if exists != true { t.Error(fmt.Sprintf("expected ZoneNameExists to return true; got %t", exists)) } }
explode_data.jsonl/12116
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 101 }
[ 2830, 3393, 15363, 675, 15575, 2461, 840, 18128, 15363, 52464, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2943, 741, 8122, 1671, 11, 1848, 1669, 272, 13476, 603, 675, 15575, 445, 562, 13053, 743, 1848, 961, 2092, 341, 197, 3244, 6141, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestNormalize(t *testing.T) { tests := []struct { email string want string }{ {email: "Not A Email", want: "Not A Email"}, {email: "Not@A@Email", want: "Not@A@Email"}, {email: "A.B.c@Gmail.com", want: "abc@gmail.com"}, {email: "a.B..c@Gmail.com", want: "abc@gmail.com"}, {email: "a.b.c+001@googlema...
explode_data.jsonl/57363
{ "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, 87824, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 57549, 914, 198, 197, 50780, 220, 914, 198, 197, 59403, 197, 197, 90, 2332, 25, 330, 2623, 362, 8299, 497, 1366, 25, 330, 2623, 362, 8299, 7115, 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 TestEntry_MultilineSelect(t *testing.T) { e, window := setupSelection(false) defer teardownImageTest(window) c := window.Canvas() test.AssertImageMatches(t, "entry/selection_initial.png", c.Capture()) // Extend the selection down one row typeKeys(e, fyne.KeyDown) test.AssertImageMatches(t, "entry/selectio...
explode_data.jsonl/57289
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 219 }
[ 2830, 3393, 5874, 1245, 494, 26560, 3379, 1155, 353, 8840, 836, 8, 341, 7727, 11, 3241, 1669, 6505, 11177, 3576, 340, 16867, 49304, 1906, 2271, 15906, 340, 1444, 1669, 3241, 54121, 2822, 18185, 11711, 1906, 42470, 1155, 11, 330, 4085, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStringToNumbers(t *testing.T) { for _, tt := range stringToNumbersTests { nums := StringToNumbers(tt.v) if nums != tt.want { t.Errorf("phonenumber.StringToNumbers() Error: with [%v], want [%v], got [%v]", tt.v, tt.want, nums) } } }
explode_data.jsonl/51286
{ "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, 703, 1249, 27237, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 914, 1249, 27237, 18200, 341, 197, 22431, 82, 1669, 923, 1249, 27237, 47152, 3133, 692, 197, 743, 10307, 961, 17853, 70212, 341, 298, 3244, 13080...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRetryDecommissionNode(t *testing.T) { rc, _, cleanupMockScr := setupTest() defer cleanupMockScr() state := "UP" podIP := "192.168.101.11" mockClient := &mocks.Client{} rc.Client = mockClient rc.Datacenter.SetCondition(api.DatacenterCondition{ Status: v1.ConditionTrue, Type: api.DatacenterScaling...
explode_data.jsonl/20071
{ "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, 51560, 4900, 316, 2728, 1955, 1155, 353, 8840, 836, 8, 341, 30295, 11, 8358, 21290, 11571, 65508, 1669, 6505, 2271, 741, 16867, 21290, 11571, 65508, 741, 24291, 1669, 330, 3124, 698, 3223, 347, 3298, 1669, 330, 16, 24, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListProjects(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleListProjectsSuccessfully(t) count := 0 err := projects.List(client.ServiceClient(), nil).EachPage(func(page pagination.Page) (bool, error) { count++ actual, err := projects.ExtractProjects(page) th.AssertNoErr(t, err) th....
explode_data.jsonl/49967
{ "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, 852, 29958, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 197, 6999, 852, 29958, 35959, 1155, 692, 18032, 1669, 220, 15, 198, 9859, 1669, 7079, 5814, 12805, 13860, 2959, 1507, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFileSaveMessage(t *testing.T) { f := filePlugin{ homePath: "./test", } m := &EventLogMessage{EventID: "qwertyuiopasdfghjkl"} m.Content = []byte("do you under stand") mes := []*EventLogMessage{m} for i := 0; i < 100; i++ { m := &EventLogMessage{EventID: "qwertyuiopasdfghjkl"} m.Content = []byte("do...
explode_data.jsonl/82644
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 184 }
[ 2830, 3393, 1703, 8784, 2052, 1155, 353, 8840, 836, 8, 1476, 1166, 1669, 1034, 11546, 515, 197, 197, 5117, 1820, 25, 5924, 1944, 756, 197, 532, 2109, 1669, 609, 1556, 2201, 2052, 90, 1556, 915, 25, 330, 69291, 1344, 1963, 453, 76615, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDispatchQuota_Success(t *testing.T) { h := &mockHandler{quotaResult: adapter.QuotaResult{ Amount: 64, ValidDuration: 25 * time.Second, }} a := adapter.QuotaArgs{BestEffort: true, DeduplicationID: "dedupe", QuotaAmount: 54} r, err := executeDispatchQuota(t, h, a) if err != nil { t.Fatalf("Un...
explode_data.jsonl/64995
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 315 }
[ 2830, 3393, 11283, 2183, 6089, 87161, 1155, 353, 8840, 836, 8, 341, 9598, 1669, 609, 16712, 3050, 90, 92604, 2077, 25, 12956, 33907, 6089, 2077, 515, 197, 197, 10093, 25, 286, 220, 21, 19, 345, 197, 197, 4088, 12945, 25, 220, 17, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestLoginLockout(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() _, err := th.Client.Logout() require.NoError(t, err) th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.MaximumLoginAttempts = 3 }) th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableMultif...
explode_data.jsonl/47560
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 963 }
[ 2830, 3393, 6231, 11989, 411, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 197, 6878, 1848, 1669, 270, 11716, 5247, 411, 741, 17957, 35699, 1155, 11, 1848, 692, 70479, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoveIssueIDErr(t *testing.T) { cucm, iucm, lucm, pucm, m := prepareMocksAndRUC() c, _ := prepareHTTP(echo.DELETE, "/api/issues/:id", nil) c.SetParamNames("id") c.SetParamValues("test") err := m.RemoveIssue(c) assert.NotNil(t, err) assert.Equal(t, fmt.Errorf("strconv.Atoi: parsing \"%s\": invalid sy...
explode_data.jsonl/60178
{ "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, 13021, 42006, 915, 7747, 1155, 353, 8840, 836, 8, 341, 1444, 1754, 76, 11, 600, 1754, 76, 11, 25927, 76, 11, 281, 1754, 76, 11, 296, 1669, 10549, 72577, 3036, 49, 5459, 2822, 1444, 11, 716, 1669, 10549, 9230, 2026, 958, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOrder(t *testing.T) { q := NewQuery().Order(fields...) if q.SQL.String() != " ORDER BY field1, field2, field3" { t.Fatalf("Order failed to create SQL successfully [%s]\n", q.SQL.String()) } }
explode_data.jsonl/76527
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 77 }
[ 2830, 3393, 4431, 1155, 353, 8840, 836, 8, 341, 18534, 1669, 1532, 2859, 1005, 4431, 37701, 31218, 743, 2804, 25095, 6431, 368, 961, 330, 15520, 7710, 2070, 16, 11, 2070, 17, 11, 2070, 18, 1, 341, 197, 3244, 30762, 445, 4431, 4641, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVersionReference(t *testing.T) { gomega.RegisterTestingT(t) stor := testutil.NewStorage() defer stor.Close() s, err := newSession(stor, nil) if err != nil { t.Fatal(err) } defer func() { s.close() s.release() }() tmp := make([]byte, 4) mik := func(i uint64) []byte { binary.BigEndian.PutUint3...
explode_data.jsonl/82671
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1531 }
[ 2830, 3393, 5637, 8856, 1155, 353, 8840, 836, 8, 341, 3174, 32696, 19983, 16451, 51, 1155, 340, 18388, 269, 1669, 1273, 1314, 7121, 5793, 741, 16867, 33689, 10421, 741, 1903, 11, 1848, 1669, 501, 5283, 5895, 269, 11, 2092, 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...
1
func TestName(t *testing.T) { for _, test := range fileNames { output := Name(test.input) if output != test.expected { t.Fatalf(Format, test.input, test.expected, output) } } }
explode_data.jsonl/7068
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 73 }
[ 2830, 3393, 675, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 1034, 7980, 341, 197, 21170, 1669, 3988, 8623, 10046, 340, 197, 743, 2550, 961, 1273, 56835, 341, 298, 3244, 30762, 7, 4061, 11, 1273, 10046, 11, 1273, 56835...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultiNamespaceGraph(t *testing.T) { q0 := "round(sum(rate(istio_requests_total{reporter=\"destination\",source_workload=\"unknown\",destination_service_namespace=\"bookinfo\",response_code=~\"[2345][0-9][0-9]\"} [600s])) by (source_workload_namespace,source_workload,source_app,source_version,destination_servi...
explode_data.jsonl/23082
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2670 }
[ 2830, 3393, 20358, 22699, 11212, 1155, 353, 8840, 836, 8, 341, 18534, 15, 1669, 330, 1049, 19713, 76723, 7, 380, 815, 37216, 10784, 90, 11736, 261, 4070, 17997, 16215, 2427, 11498, 1078, 4070, 16088, 16215, 17997, 12267, 41571, 4070, 2190...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConsumer(t *testing.T) { consumer := NewConsumer(&Config{Address: "127.0.0.1:4150", Topic: "test", Channel: "logger-channel"}) defer consumer.Stop() consumer.Handler(&ConsumerT{}) consumer.Run() select {} }
explode_data.jsonl/45645
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 29968, 1155, 353, 8840, 836, 8, 341, 37203, 11761, 1669, 1532, 29968, 2099, 2648, 90, 4286, 25, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 19, 16, 20, 15, 497, 32911, 25, 330, 1944, 497, 13434, 25, 330, 9786, 53868...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAttributes_UpsertFromAttribute(t *testing.T) { testCases := []testCase{ // Ensure `new_user_key` is not set for spans with no attributes. { name: "UpsertEmptyAttributes", inputAttributes: map[string]pdata.AttributeValue{}, expectedAttributes: map[string]pdata.AttributeValue{}, ...
explode_data.jsonl/11513
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 851 }
[ 2830, 3393, 10516, 6665, 1690, 529, 3830, 3907, 1155, 353, 8840, 836, 8, 1476, 18185, 37302, 1669, 3056, 66194, 515, 197, 197, 322, 29279, 1565, 931, 3317, 3097, 63, 374, 537, 738, 369, 44295, 448, 902, 8201, 624, 197, 197, 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...
2
func TestIsBashIdentifier(t *testing.T) { tables := []struct { input string expect bool }{ {"pipo", true}, {"i''i", false}, {"'\\''pipo'\\''", false}, {"OK", true}, {"ARGS", true}, // unsecable space at first char {" ARGS", false}, ...
explode_data.jsonl/35246
{ "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, 3872, 33, 988, 8714, 1155, 353, 8840, 836, 8, 341, 262, 12632, 1669, 3056, 1235, 341, 286, 1946, 914, 198, 286, 1720, 1807, 198, 262, 335, 515, 286, 5212, 79, 6943, 497, 830, 1583, 286, 5212, 72, 4605, 72, 497, 895, 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...
3
func TestPeerAddBlock(t *testing.T) { peer := NewBpPeer( p2p.ID(tmrand.Str(12)), 0, 100, func(err error, _ p2p.ID) {}, nil) // request some blocks, receive one for i := 1; i <= 10; i++ { peer.RequestSent(int64(i)) if i == 5 { // receive block 5 _ = peer.AddBlock(makeSmallBlock(i), nil, 10) } } ...
explode_data.jsonl/35425
{ "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, 30888, 2212, 4713, 1155, 353, 8840, 836, 8, 341, 197, 16537, 1669, 1532, 33, 79, 30888, 1006, 197, 3223, 17, 79, 9910, 64190, 11335, 27318, 7, 16, 17, 5731, 220, 15, 11, 220, 16, 15, 15, 345, 197, 29244, 3964, 1465, 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 TestPin(t *testing.T) { cache, cleanup := withCache(t) defer cleanup() wasm, err := ioutil.ReadFile("./testdata/hackatom.wasm") require.NoError(t, err) checksum, err := Create(cache, wasm) require.NoError(t, err) err = Pin(cache, checksum) require.NoError(t, err) // Can be called again with no effect ...
explode_data.jsonl/62550
{ "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, 19861, 1155, 353, 8840, 836, 8, 341, 52680, 11, 21290, 1669, 448, 8233, 1155, 340, 16867, 21290, 2822, 6692, 10530, 11, 1848, 1669, 43144, 78976, 13988, 92425, 7530, 473, 21855, 1418, 10530, 1138, 17957, 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 TestRun(t *testing.T) { buffer := new(bytes.Buffer) router := New() go func() { router.Use(LoggerWithWriter(buffer)) router.GET("/example", func(c *Context) { c.String(http.StatusOK, "it worked") }) router.Run(":5150") }() // have to wait for the goroutine to start and run the server // otherwise the m...
explode_data.jsonl/24692
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 272 }
[ 2830, 3393, 6727, 1155, 353, 8840, 836, 8, 341, 31122, 1669, 501, 23158, 22622, 340, 67009, 1669, 1532, 741, 30680, 2915, 368, 341, 197, 67009, 9046, 91018, 2354, 6492, 12584, 1171, 197, 67009, 17410, 4283, 8687, 497, 2915, 1337, 353, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJobPanicRecovery(t *testing.T) { var job DummyJob var buf syncWriter cron := New(WithParser(secondParser), WithChain(Recover(newBufLogger(&buf)))) cron.Start() defer cron.Stop() cron.AddJob("* * * * * ?", job) select { case <-time.After(OneSecond): if !strings.Contains(buf.String(), "YOLO") { ...
explode_data.jsonl/8293
{ "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, 12245, 47, 31270, 693, 7449, 1155, 353, 8840, 836, 8, 341, 2405, 2618, 50567, 12245, 271, 2405, 6607, 12811, 6492, 198, 1444, 2248, 1669, 1532, 7, 2354, 6570, 45858, 6570, 1326, 197, 197, 2354, 18837, 7, 693, 3688, 1755, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_isFlush(t *testing.T) { type args struct { hand deck.Hand } tests := []struct { name string args args want bool }{ { name: "Should be a flush", args: args{deck.Hand{ deck.Card{IsRoyal: true, RoyalType: deck.Royal("king"), Suit: deck.Heart("hearts")}, deck.Card{IsRoyal: true, RoyalT...
explode_data.jsonl/7186
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 693 }
[ 2830, 3393, 6892, 46874, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 9598, 437, 9530, 35308, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 1807, 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, 1...
2
func TestAbortReadOnlyTransaction(t *testing.T) { defer leaktest.AfterTest(t)() defer log.Scope(t).Close(t) ctx := context.Background() clock := hlc.NewClock(hlc.UnixNano, time.Nanosecond) ambient := log.AmbientContext{Tracer: tracing.NewTracer()} sender := &mockSender{} stopper := stop.NewStopper() defer stopp...
explode_data.jsonl/76903
{ "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, 85891, 20914, 8070, 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, 741, 84165, 1669, 305, 17257, 7121, 26104, 3203, 17257,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAllocID(t *testing.T) { ctx := MockContext() pA := DataSource{}.Init(ctx, 0) pB := DataSource{}.Init(ctx, 0) require.Equal(t, pB.id, pA.id+1) }
explode_data.jsonl/50219
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 73 }
[ 2830, 3393, 25154, 915, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 14563, 1972, 741, 3223, 32, 1669, 43384, 46391, 3803, 7502, 11, 220, 15, 340, 3223, 33, 1669, 43384, 46391, 3803, 7502, 11, 220, 15, 340, 17957, 12808, 1155, 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
func TestRunPipeInvalidFormat(t *testing.T) { var ctx = context.New(config.Project{ ProjectName: "nope", NFPMs: []config.NFPM{ { Bindir: "/usr/bin", Formats: []string{"nope"}, Builds: []string{"foo"}, NFPMOverridables: config.NFPMOverridables{ PackageName: "foo", FileNameTemplat...
explode_data.jsonl/21980
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 434 }
[ 2830, 3393, 6727, 34077, 7928, 4061, 1155, 353, 8840, 836, 8, 341, 2405, 5635, 284, 2266, 7121, 8754, 30944, 515, 197, 197, 7849, 675, 25, 330, 2152, 375, 756, 197, 18317, 37, 8795, 82, 25, 3056, 1676, 2067, 37, 8795, 515, 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...
3