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 TestUserDicRecordsLoadFromJSON(t *testing.T) { var rec UserDicRecords _ = json.Unmarshal([]byte(`[ { "text":"日本経済新聞", "tokens":["日本","経済","新聞"], "yomi":["ニホン","ケイザイ","シンブン"], "pos":"カスタム名詞" }, { "text":"朝青龍", "tokens"...
explode_data.jsonl/44237
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 546 }
[ 2830, 3393, 1474, 44545, 25876, 5879, 3830, 5370, 1155, 353, 8840, 836, 8, 341, 2405, 1395, 2657, 44545, 25876, 198, 197, 62, 284, 2951, 38097, 10556, 3782, 5809, 9640, 286, 341, 310, 330, 1318, 3252, 101059, 57154, 234, 33986, 230, 111...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteRun_DbFailure(t *testing.T) { store, manager, runDetail := initWithOneTimeRun(t) defer store.Close() store.DB().Close() err := manager.DeleteRun(runDetail.UUID) assert.Equal(t, codes.Internal, err.(*util.UserError).ExternalStatusCode()) assert.Contains(t, err.Error(), "database is closed") }
explode_data.jsonl/28366
{ "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, 6435, 6727, 60968, 17507, 1155, 353, 8840, 836, 8, 341, 57279, 11, 6645, 11, 1598, 10649, 1669, 13864, 3966, 1462, 6727, 1155, 340, 16867, 3553, 10421, 2822, 57279, 22537, 1005, 7925, 741, 9859, 1669, 6645, 18872, 6727, 38772,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContainerNextStateDependsStoppedContainer(t *testing.T) { testCases := []struct { // Known status of the dependent container knownStatus apicontainerstatus.ContainerStatus actionRequired bool err error }{ { knownStatus: apicontainerstatus.ContainerRunning, actionRequired: fal...
explode_data.jsonl/24598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 656 }
[ 2830, 3393, 4502, 5847, 1397, 7839, 1412, 59803, 4502, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 197, 322, 48286, 2639, 315, 279, 17749, 5476, 198, 197, 197, 5278, 2522, 262, 1443, 51160, 1743, 2829, 33672,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProjectionEliminator(t *testing.T) { tests := []struct { sql string best string }{ { sql: "select 1+num from (select 1+a as num from t) t1;", best: "DataScan(t)->Projection", }, { sql: "select count(*) from t where a in (select b from t2 where a is null);", best: "Join{DataScan(t)->Du...
explode_data.jsonl/50217
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 416 }
[ 2830, 3393, 46321, 41013, 17272, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 30633, 220, 914, 198, 197, 92410, 914, 198, 197, 59403, 197, 197, 515, 298, 30633, 25, 220, 330, 1742, 220, 16, 10, 2413, 504, 320, 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...
2
func TestRequestCtxSetBodyStreamWriter(t *testing.T) { var ctx RequestCtx var req Request ctx.Init(&req, nil, defaultLogger) if ctx.IsBodyStream() { t.Fatalf("IsBodyStream must return false") } ctx.SetBodyStreamWriter(func(w *bufio.Writer) { fmt.Fprintf(w, "body writer line 1\n") if err := w.Flush(); err !...
explode_data.jsonl/73291
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 336 }
[ 2830, 3393, 1900, 23684, 1649, 5444, 93031, 1155, 353, 8840, 836, 8, 341, 2405, 5635, 6145, 23684, 198, 2405, 4232, 6145, 198, 20985, 26849, 2099, 2958, 11, 2092, 11, 1638, 7395, 692, 743, 5635, 4506, 5444, 3027, 368, 341, 197, 3244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAbsCollection_Copy(t *testing.T) { intColl := NewIntCollection([]int{1, 2}) intColl2 := intColl.Copy() if intColl2.Count() != 2 { t.Fatal("Copy失败") } if reflect.TypeOf(intColl2) != reflect.TypeOf(intColl) { t.Fatal("Copy类型失败") } }
explode_data.jsonl/66426
{ "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, 27778, 6482, 77637, 1155, 353, 8840, 836, 8, 341, 2084, 15265, 1669, 1532, 1072, 6482, 10556, 396, 90, 16, 11, 220, 17, 3518, 2084, 15265, 17, 1669, 526, 15265, 31770, 741, 743, 526, 15265, 17, 6134, 368, 961, 220, 17, 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 TestApiTest_RequestURLFormat(t *testing.T) { apitest.New(). HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) assert.Equal(t, "/user/1234", r.URL.Path) }). Getf("/user/%s", "1234"). Expect(t). Status(http.StatusOK). End() apitest.New(). HandlerFunc(func(...
explode_data.jsonl/54783
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 694 }
[ 2830, 3393, 6563, 2271, 44024, 3144, 4061, 1155, 353, 8840, 836, 8, 341, 69898, 97105, 7121, 25829, 197, 197, 3050, 9626, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 298, 6692, 69794, 19886, 52989, 340, 298, 6948, 12808,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandshakeWithAlert(t *testing.T) { // Limit runtime in case of deadlocks lim := test.TimeOut(time.Second * 20) defer lim.Stop() // Check for leaking routines report := test.CheckRoutines(t) defer report() ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() cases ...
explode_data.jsonl/40930
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 933 }
[ 2830, 3393, 2314, 29661, 2354, 9676, 1155, 353, 8840, 836, 8, 341, 197, 322, 28008, 15592, 304, 1142, 315, 5593, 34936, 198, 197, 4659, 1669, 1273, 16299, 2662, 9730, 32435, 353, 220, 17, 15, 340, 16867, 4568, 30213, 2822, 197, 322, 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 TestThemeColor(t *testing.T) { t.Log(ThemeColor("000000", -0.1)) t.Log(ThemeColor("000000", 0)) t.Log(ThemeColor("000000", 1)) }
explode_data.jsonl/36992
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 56 }
[ 2830, 3393, 12594, 1636, 1155, 353, 8840, 836, 8, 341, 3244, 5247, 7, 12594, 1636, 445, 15, 15, 15, 15, 15, 15, 497, 481, 15, 13, 16, 1171, 3244, 5247, 7, 12594, 1636, 445, 15, 15, 15, 15, 15, 15, 497, 220, 15, 1171, 3244, 524...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInitProviders(t *testing.T) { t.Parallel() // This test reaches out to releases.hashicorp.com to download the // template provider, so it can only run if network access is allowed. // We intentionally don't try to stub this here, because there's already // a stubbed version of this in the "command" packa...
explode_data.jsonl/34561
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 429 }
[ 2830, 3393, 3803, 37351, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 1096, 1273, 24491, 700, 311, 19232, 15101, 292, 30115, 905, 311, 4139, 279, 198, 197, 322, 3811, 9109, 11, 773, 432, 646, 1172, 1598, 421, 3922,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTemplateHtml(t *testing.T) { g := NewGenerator(false) super := &Template{Generator: g} e, err := NewElement("div#id.class attr=val This is a text.", 1, 0, nil, super, nil) if err != nil { t.Errorf("An error(%s) occurred.", err.Error()) } super.AppendElement(e) tpl := &Template{Super: super} embedMap,...
explode_data.jsonl/74603
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 266 }
[ 2830, 3393, 7275, 13591, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 12561, 3576, 340, 12468, 1669, 609, 7275, 90, 12561, 25, 342, 532, 7727, 11, 1848, 1669, 1532, 1691, 445, 611, 2, 307, 3074, 6376, 87529, 1096, 374, 264, 1467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRuntime_Run(t *testing.T) { cfg := newDefaultStandaloneConfig(t) cfg.StorageBase.GRPC.Port = 3901 standalone := NewStandaloneRuntime("test-version", &cfg) s := standalone.(*runtime) s.delayInit = 100 * time.Millisecond err := standalone.Run() assert.Equal(t, server.Running, standalone.State()) assert....
explode_data.jsonl/3480
{ "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, 15123, 84158, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 501, 3675, 623, 84112, 2648, 1155, 340, 50286, 43771, 3978, 1224, 29528, 43013, 284, 220, 18, 24, 15, 16, 198, 197, 2685, 31576, 1669, 1532, 623, 84112, 15123, 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 TestRouterMatchAnyMultiLevelWithPost(t *testing.T) { e := New() r := e.router handler := func(c Context) error { c.Set("path", c.Path()) return nil } // Routes e.POST("/api/auth/login", handler) e.POST("/api/auth/forgotPassword", handler) e.Any("/api/*", handler) e.Any("/*", handler) // POST /api/a...
explode_data.jsonl/47121
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 624 }
[ 2830, 3393, 9523, 8331, 8610, 20358, 4449, 2354, 4133, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 1532, 741, 7000, 1669, 384, 22125, 198, 53326, 1669, 2915, 1337, 9608, 8, 1465, 341, 197, 1444, 4202, 445, 2343, 497, 272, 17474, 2398, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAgent_Services_ACLFilter(t *testing.T) { t.Parallel() a := NewTestAgent(t.Name(), TestACLConfig()) defer a.Shutdown() srv1 := &structs.NodeService{ ID: "mysql", Service: "mysql", Tags: []string{"master"}, Port: 5000, } a.State.AddService(srv1, "") t.Run("no token", func(t *testing.T...
explode_data.jsonl/33591
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 415 }
[ 2830, 3393, 16810, 1098, 2161, 97627, 5632, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 11323, 1669, 1532, 2271, 16810, 1155, 2967, 1507, 3393, 55393, 2648, 2398, 16867, 264, 10849, 18452, 2822, 1903, 10553, 16, 1669, 609, 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...
3
func TestAddTeamMemberMyself(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() Client := th.Client // Check the appropriate permissions are enforced. defaultRolePermissions := th.SaveDefaultRolePermissions() defer func() { th.RestoreDefaultRolePermissions(defaultRolePermissions) }() th.LoginBas...
explode_data.jsonl/70727
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1091 }
[ 2830, 3393, 2212, 14597, 9366, 5050, 721, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 271, 197, 322, 4248, 279, 8311, 8541, 525, 44321, 624, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCustomRanking_CommaSeparatedString(t *testing.T) { for _, c := range []struct { payload string expected *opt.CustomRankingOption }{ { payload: `""`, expected: opt.CustomRanking([]string{}...), }, { payload: `"value1"`, expected: opt.CustomRanking("value1"), }, { payload: `"va...
explode_data.jsonl/43243
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 253 }
[ 2830, 3393, 10268, 22550, 287, 16946, 1728, 91925, 703, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 272, 1669, 2088, 3056, 1235, 341, 197, 76272, 220, 914, 198, 197, 42400, 353, 2912, 27649, 22550, 287, 5341, 198, 197, 59403, 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...
2
func TestReconciler_RemovedTG(t *testing.T) { job := mock.Job() // Create 10 allocations for a tg that no longer exists var allocs []*structs.Allocation for i := 0; i < 10; i++ { alloc := mock.Alloc() alloc.Job = job alloc.JobID = job.ID alloc.NodeID = uuid.Generate() alloc.Name = structs.AllocName(job.I...
explode_data.jsonl/67246
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 471 }
[ 2830, 3393, 693, 40446, 5769, 54551, 4941, 76787, 1155, 353, 8840, 836, 8, 341, 68577, 1669, 7860, 45293, 2822, 197, 322, 4230, 220, 16, 15, 69642, 369, 264, 53188, 429, 902, 5021, 6724, 198, 2405, 5574, 82, 29838, 1235, 82, 9636, 252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQueue(t *testing.T) { goqueue_tests.Queue(t, func(size int) interface { goqueue.Owner goqueue.Enqueuer goqueue.Dequeuer goqueue.Info } { return finite.New(size) }) }
explode_data.jsonl/54515
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 7554, 1155, 353, 8840, 836, 8, 341, 30680, 4584, 32509, 50251, 1155, 11, 2915, 6856, 526, 8, 3749, 341, 197, 30680, 4584, 49920, 198, 197, 30680, 4584, 22834, 591, 8801, 198, 197, 30680, 4584, 8934, 591, 8801, 198, 197, 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
func Test_write_int32(t *testing.T) { vals := []int32{0, 1, 11, 111, 255, 999999, 0xfff, 0xffff, 0xfffff, 0xffffff, 0xfffffff, 0x7fffffff, -0x80000000} for _, val := range vals { t.Run(fmt.Sprintf("%v", val), func(t *testing.T) { stream := jsoniter.NewStream() stream.WriteInt32(val) if strconv.FormatInt(in...
explode_data.jsonl/34815
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 292 }
[ 2830, 3393, 9165, 4042, 18, 17, 1155, 353, 8840, 836, 8, 341, 19302, 82, 1669, 3056, 396, 18, 17, 90, 15, 11, 220, 16, 11, 220, 16, 16, 11, 220, 16, 16, 16, 11, 220, 17, 20, 20, 11, 220, 24, 24, 24, 24, 24, 24, 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...
2
func TestConnectionRefused(t *testing.T) { // Send SYN. tcp := make(header.TCP, header.TCPMinimumSize) tcp.Encode(&header.TCPFields{ SeqNum: 1234, AckNum: 0, DataOffset: header.TCPMinimumSize, Flags: header.TCPFlagSyn, WindowSize: 30000, }) tcb := tcpconntrack.TCB{} tcb.Init(tcp) // Rece...
explode_data.jsonl/17720
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 314 }
[ 2830, 3393, 4526, 3945, 2591, 1155, 353, 8840, 836, 8, 341, 197, 322, 11000, 61694, 624, 3244, 4672, 1669, 1281, 25534, 836, 7123, 11, 4247, 836, 7123, 28695, 1695, 340, 3244, 4672, 50217, 2099, 2708, 836, 7123, 8941, 515, 197, 197, 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 TestGetMeta(t *testing.T) { t.Parallel() var colOne = Col{Name: "Id", Type: "int"} var colTwo = Col{Name: "Id", Type: "int", Key: "primary_key", AutoInc: true} var colThree = Col{Name: "Name", Type: "string", Key: "", MaxLen: sql.NullInt64{Int64: 45, Valid: true}} assert.Equal(t, "", colOne.GetMeta(), "should...
explode_data.jsonl/71801
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 199 }
[ 2830, 3393, 1949, 12175, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2405, 1375, 3966, 284, 4254, 63121, 25, 330, 764, 497, 3990, 25, 330, 396, 16707, 2405, 1375, 11613, 284, 4254, 63121, 25, 330, 764, 497, 3990, 25, 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 TestPatchCreditCard(t *testing.T) { c, _ := NewClient(testClientID, testSecret, APIBaseSandBox) c.GetAccessToken() r1, e1 := c.PatchCreditCard(testCardID, nil) if e1 == nil || r1 != nil { t.Errorf("Error is expected for empty update info") } }
explode_data.jsonl/18460
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 43622, 33493, 5770, 1155, 353, 8840, 836, 8, 341, 1444, 11, 716, 1669, 1532, 2959, 8623, 2959, 915, 11, 1273, 19773, 11, 5333, 3978, 47044, 1611, 340, 1444, 2234, 37649, 2822, 7000, 16, 11, 384, 16, 1669, 272, 1069, 754, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test_Hoverfly_SetModeWithArguments_CanSetModeToSynthesize(t *testing.T) { RegisterTestingT(t) unit := NewHoverflyWithConfiguration(&Configuration{}) Expect(unit.SetModeWithArguments( v2.ModeView{ Mode: "synthesize", })).To(BeNil()) Expect(unit.Cfg.Mode).To(Equal("synthesize")) }
explode_data.jsonl/45398
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 120 }
[ 2830, 3393, 2039, 1975, 21642, 14812, 3636, 2354, 19139, 920, 276, 1649, 3636, 1249, 37134, 26887, 1155, 353, 8840, 836, 8, 341, 79096, 16451, 51, 1155, 692, 81189, 1669, 1532, 34379, 21642, 2354, 7688, 2099, 7688, 6257, 692, 35911, 24144...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInsertTable(t *testing.T) { doc := document.New() if len(doc.Paragraphs()) != 0 { t.Errorf("expected 0 paragraphs, got %d", len(doc.Paragraphs())) } p1 := doc.AddParagraph() p2 := doc.AddParagraph() beforeP1 := doc.InsertTableBefore(p1) afterP1 := doc.InsertTableAfter(p1) beforeP2 := doc.InsertTableB...
explode_data.jsonl/61210
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 342 }
[ 2830, 3393, 13780, 2556, 1155, 353, 8840, 836, 8, 341, 59536, 1669, 2197, 7121, 741, 743, 2422, 19153, 41288, 9216, 82, 2140, 961, 220, 15, 341, 197, 3244, 13080, 445, 7325, 220, 15, 42643, 11, 2684, 1018, 67, 497, 2422, 19153, 41288,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBindUnparseableURL(t *testing.T) { b := Bind{ Urls: []string{"://example.com"}, } var acc testutil.Accumulator err := acc.GatherError(b.Gather) assert.Contains(t, err.Error(), "unable to parse address") }
explode_data.jsonl/18721
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 3393, 9950, 1806, 6400, 480, 3144, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 29189, 515, 197, 197, 15638, 25, 3056, 917, 90, 788, 322, 8687, 905, 7115, 197, 630, 2405, 1029, 1273, 1314, 77538, 372, 10511, 198, 9859, 1669, 1029, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseFunctionParameterWithoutLabel(t *testing.T) { t.Parallel() result, errs := ParseDeclarations(` fun test(x: Int) { } `) require.Empty(t, errs) utils.AssertEqualWithDiff(t, []ast.Declaration{ &ast.FunctionDeclaration{ Access: ast.AccessNotSpecified, Identifier: ast.Identifier{ ...
explode_data.jsonl/35972
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 943 }
[ 2830, 3393, 14463, 5152, 4971, 26040, 2476, 1155, 353, 8840, 836, 8, 1476, 3244, 41288, 7957, 2822, 9559, 11, 70817, 1669, 14775, 1912, 49121, 61528, 2760, 2464, 1273, 2075, 25, 1333, 8, 314, 456, 197, 24183, 17957, 11180, 1155, 11, 708...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDesEcbEncrypt(t *testing.T) { data := "hello world" key := "abcdefgh" desEcbEncrypt := DesEcbEncrypt([]byte(data), []byte(key)) desEcbDecrypt := DesEcbDecrypt(desEcbEncrypt, []byte(key)) if string(desEcbDecrypt) != data { internal.LogFailedTestInfo(t, "DesEcbEncrypt/DesEcbDecrypt", data, data, string(...
explode_data.jsonl/7305
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 146 }
[ 2830, 3393, 4896, 36, 7221, 61520, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 330, 14990, 1879, 698, 23634, 1669, 330, 56747, 1837, 52912, 36, 7221, 61520, 1669, 3874, 36, 7221, 61520, 10556, 3782, 2592, 701, 3056, 3782, 4857, 1171, 5291...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEntryAddUntimedInvalidMetricError(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() e, _, _ := testEntry(ctrl, testEntryOptions{}) require.Error(t, e.AddUntimed(testInvalidMetric, metadata.DefaultStagedMetadatas)) }
explode_data.jsonl/24213
{ "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, 5874, 2212, 20250, 75485, 7928, 54310, 1454, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 7727, 11, 8358, 716, 1669, 1273, 5874, 62100, 11, 1273, 5874, 379...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfigIsValidFakeAlgorithm(t *testing.T) { c1 := Config{} c1.SetDefaults() *c1.SamlSettings.Enable = true *c1.SamlSettings.Verify = false *c1.SamlSettings.Encrypt = false *c1.SamlSettings.IdpUrl = "http://test.url.com" *c1.SamlSettings.IdpDescriptorUrl = "http://test.url.com" *c1.SamlSettings.IdpCert...
explode_data.jsonl/50674
{ "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, 2648, 55470, 52317, 27847, 1155, 353, 8840, 836, 8, 341, 1444, 16, 1669, 5532, 16094, 1444, 16, 4202, 16273, 2822, 197, 39091, 16, 808, 9467, 6086, 32287, 284, 830, 198, 197, 39091, 16, 808, 9467, 6086, 54853, 284, 895, 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 TestMotorDriverOff(t *testing.T) { d := initTestMotorDriver() d.CurrentMode = "digital" d.Off() gobottest.Assert(t, d.CurrentState, uint8(0)) d.CurrentMode = "analog" d.CurrentSpeed = 100 d.Off() gobottest.Assert(t, d.CurrentSpeed, uint8(0)) }
explode_data.jsonl/23132
{ "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, 33577, 11349, 4596, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 2930, 2271, 33577, 11349, 741, 2698, 11517, 3636, 284, 330, 57269, 698, 2698, 13, 4596, 741, 3174, 674, 1716, 477, 11711, 1155, 11, 294, 11517, 1397, 11, 2622, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewInitiatorTokenSignatureAndMarshalling(t *testing.T) { t.Parallel() token, tErr := NewInitiatorWrapToken([]byte{0x01, 0x01, 0x00, 0x00}, getSessionKey()) assert.Nil(t, tErr, "Unexpected error.") assert.Equal(t, getResponseReference(), token, "Token failed to be marshalled to the expected bytes.") }
explode_data.jsonl/54237
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 113 }
[ 2830, 3393, 3564, 3803, 36122, 3323, 25088, 3036, 79712, 16740, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 43947, 11, 259, 7747, 1669, 1532, 3803, 36122, 26787, 3323, 10556, 3782, 90, 15, 87, 15, 16, 11, 220, 15, 87, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSelfBootstrap(t *testing.T) { defer leaktest.AfterTest(t)() s, err := serverutils.StartServerRaw(base.TestServerArgs{}) if err != nil { t.Fatal(err) } defer s.Stopper().Stop(context.TODO()) if s.RPCContext().ClusterID.Get() == uuid.Nil { t.Error("cluster ID failed to be set on the RPC context") } }
explode_data.jsonl/70825
{ "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, 12092, 45511, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 1903, 11, 1848, 1669, 3538, 6031, 12101, 5475, 20015, 12663, 8787, 5475, 4117, 37790, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetSize(t *testing.T) { queue := NewQueue() t.Run("when queue is provided", func(t *testing.T) { t.Run("it should return number of items in queue", func(t *testing.T) { queue.Enqueue(student{"Student 1", 1}) assert.Equal(t, queue.GetSize(), 1) queue.Dequeue() assert.Equal(t, queue.GetSize()...
explode_data.jsonl/44143
{ "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, 95379, 1155, 353, 8840, 836, 8, 341, 46993, 1669, 1532, 7554, 2822, 3244, 16708, 445, 9309, 7177, 374, 3897, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 16708, 445, 275, 1265, 470, 1372, 315, 3589, 304, 7177, 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 TestParseAndImport(t *testing.T) { db, cache, end := test.SetupPG(t) defer end() u, _ := assets.InsertAdminUser(t, db) localConsumer, err := authentication.LoadConsumerByTypeAndUserID(context.TODO(), db, sdk.ConsumerLocal, u.ID, authentication.LoadConsumerOptions.WithAuthentifiedUser) require.NoError(t, err) ...
explode_data.jsonl/25048
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1116 }
[ 2830, 3393, 14463, 3036, 11511, 1155, 353, 8840, 836, 8, 341, 20939, 11, 6500, 11, 835, 1669, 1273, 39820, 11383, 1155, 340, 16867, 835, 741, 10676, 11, 716, 1669, 11770, 23142, 7210, 1474, 1155, 11, 2927, 340, 8854, 29968, 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...
2
func TestIsCurrentLessThanNewVersion(t *testing.T) { type args struct { old string new string } tests := []struct { name string args args want bool }{ { name: "old is less than new", args: args{ old: "1.12.0", new: "2.8.0", }, want: true, }, { name: "old is greater than new", ...
explode_data.jsonl/44194
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 390 }
[ 2830, 3393, 3872, 5405, 27451, 26067, 3564, 5637, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 61828, 914, 198, 197, 8638, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestWalletGetAddress(t *testing.T) { chainID := ids.ID{1, 2, 3, 4, 5, 6, 7, 8, 9, 10} w, err := NewWallet(logging.NoLog{}, 12345, chainID, 0) if err != nil { t.Fatal(err) } addr0, err := w.GetAddress() if err != nil { t.Fatal(err) } if addr0.IsZero() || addr0.Equals(ids.ShortEmpty) { t.Fatalf("expec...
explode_data.jsonl/41618
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 38259, 1949, 4286, 1155, 353, 8840, 836, 8, 341, 197, 8819, 915, 1669, 14151, 9910, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 23, 11, 220, 24, 11, 220, 16, 15,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestSched_AddStartJobs(t *testing.T) { send0 := make(chan struct{}, 1) send1 := make(chan struct{}, 1) recv0 := make(chan struct{}, 1) recv1 := make(chan struct{}, 1) f0 := func(ctx context.Context) error { <-send0 recv0 <- struct{}{} return nil } f1 := func(ctx context.Context) error { <-send1 ...
explode_data.jsonl/45788
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 582 }
[ 2830, 3393, 50, 2397, 21346, 3479, 40667, 1155, 353, 8840, 836, 8, 1476, 32817, 15, 1669, 1281, 35190, 2036, 22655, 220, 16, 340, 32817, 16, 1669, 1281, 35190, 2036, 22655, 220, 16, 340, 197, 33977, 15, 1669, 1281, 35190, 2036, 22655, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWithFields(t *testing.T) { l := NewLogger(logger.WithOutput(os.Stdout)).Fields(map[string]interface{}{ "k1": "v1", "k2": 123456, }) logger.DefaultLogger = l logger.Log(logger.InfoLevel, "testing: Info") logger.Logf(logger.InfoLevel, "testing: %s", "Infof") }
explode_data.jsonl/6551
{ "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, 2354, 8941, 1155, 353, 8840, 836, 8, 341, 8810, 1669, 1532, 7395, 37833, 26124, 5097, 9638, 83225, 4579, 8941, 9147, 14032, 31344, 67066, 197, 197, 62911, 16, 788, 330, 85, 16, 756, 197, 197, 62911, 17, 788, 220, 16, 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 TestSnapshotWithUpdate(t *testing.T) { if test.UpdateGoldenGlobal { t.Skip() } a := struct { A string B int C bool D *string }{ A: "fo", B: 1, C: true, D: swag.String("bar"), } b := "Hello World!" tMock := new(mocks.TestingT) tMock.On("Helper").Return() tMock.On("Name").Return("TestSna...
explode_data.jsonl/17628
{ "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, 15009, 2354, 4289, 1155, 353, 8840, 836, 8, 341, 743, 1273, 16689, 59790, 11646, 341, 197, 3244, 57776, 741, 197, 532, 11323, 1669, 2036, 341, 197, 22985, 914, 198, 197, 12791, 526, 198, 197, 6258, 1807, 198, 197, 10957, 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 TestDeleteUser(t *testing.T) { ts := httptest.NewTLSServer( http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, deleteUserResponse) }), ) defer ts.Close() duo := buildAdminClient(ts.URL, nil) result, err := duo.DeleteUser("DU3RP9I2WOC59VZX672N") if err != nil { t.Errorf...
explode_data.jsonl/61401
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 191 }
[ 2830, 3393, 6435, 1474, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 13470, 1220, 2836, 1006, 197, 28080, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 298, 11009, 991, 33655, 3622, 11, 81056, 2582...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHistogramDataPoint_Buckets(t *testing.T) { ms := NewHistogramDataPoint() ms.InitEmpty() assert.EqualValues(t, NewHistogramBucketSlice(), ms.Buckets()) fillTestHistogramBucketSlice(ms.Buckets()) testValBuckets := generateTestHistogramBucketSlice() assert.EqualValues(t, testValBuckets, ms.Buckets()) }
explode_data.jsonl/19554
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 117 }
[ 2830, 3393, 77210, 1043, 2609, 1668, 38551, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 77210, 1043, 2609, 741, 47691, 26849, 3522, 741, 6948, 12808, 6227, 1155, 11, 1532, 77210, 36018, 33236, 1507, 9829, 1785, 38551, 2398, 65848, 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 TestInferParametersPrepared(t *testing.T) { catalogStore, err := store.Open("catalog_infer_params_prepared", store.DefaultOptions()) require.NoError(t, err) defer os.RemoveAll("catalog_infer_params_prepared") dataStore, err := store.Open("catalog_infer_params_prepared", store.DefaultOptions()) require.NoErro...
explode_data.jsonl/64086
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 399 }
[ 2830, 3393, 641, 802, 9706, 4703, 7212, 1155, 353, 8840, 836, 8, 341, 1444, 7750, 6093, 11, 1848, 1669, 3553, 12953, 445, 26539, 1243, 802, 6745, 10442, 7212, 497, 3553, 13275, 3798, 2398, 17957, 35699, 1155, 11, 1848, 340, 16867, 2643,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConvertBools(t *testing.T) { lines, err := convertTypes( "Foo", "Bar", `struct Foo { 1: optional bool one 2: required bool two } struct Bar { 1: optional bool one 2: required bool two }`, nil, nil, ) assert.NoError(t, err) assertPrettyEqual(t, trim(` out.One = (*bool)(in.One) ...
explode_data.jsonl/62025
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 12012, 1233, 3069, 1155, 353, 8840, 836, 8, 341, 78390, 11, 1848, 1669, 5508, 4173, 1006, 197, 197, 1, 40923, 497, 330, 3428, 756, 197, 197, 63, 1235, 33428, 341, 298, 197, 16, 25, 10101, 1807, 825, 198, 298, 197, 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 TestAdd2(t *testing.T) { tests := []struct { in1 string //第一个十六进制编码值 in2 string //要添加的第二个十六进制编码值 expected string //预期十六进制编码值 }{ {"0", "1", "1"}, {"1", "0", "1"}, {"1", "1", "2"}, //secp256k1素数-1+1 {"fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2e", "1", "0"}, //secp256k1素数+1 ...
explode_data.jsonl/365
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1070 }
[ 2830, 3393, 2212, 17, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 258, 16, 414, 914, 442, 102344, 102853, 41299, 43316, 112950, 25511, 198, 258, 17, 414, 914, 442, 30534, 42855, 9370, 106657, 102853, 41299, 43316, 112950, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCachedConn_QueryRowIndex_HasCache_IntPrimary(t *testing.T) { const ( primaryInt8 int8 = 100 primaryInt16 int16 = 10000 primaryInt32 int32 = 10000000 primaryInt64 int64 = 10000000 primaryUint8 uint8 = 100 primaryUint16 uint16 = 10000 primaryUint32 uint32 = 10000000 primaryUint64 uin...
explode_data.jsonl/64124
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1095 }
[ 2830, 3393, 70293, 9701, 48042, 68919, 2039, 300, 8233, 32054, 15972, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 197, 6545, 1072, 23, 256, 526, 23, 256, 284, 220, 16, 15, 15, 198, 197, 197, 6545, 1072, 16, 21, 220, 526, 16, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDoNotAdoptOrCreateIfBeingDeleted(t *testing.T) { labelMap := map[string]string{"foo": "bar"} rs := newReplicaSet(2, labelMap) now := metav1.Now() rs.DeletionTimestamp = &now stopCh := make(chan struct{}) defer close(stopCh) manager, fakePodControl, informers := setupManagerWithGCEnabled(stopCh, rs) inf...
explode_data.jsonl/7986
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 259 }
[ 2830, 3393, 5404, 2623, 2589, 2912, 57111, 2679, 33142, 26039, 1155, 353, 8840, 836, 8, 341, 29277, 2227, 1669, 2415, 14032, 30953, 4913, 7975, 788, 330, 2257, 16707, 41231, 1669, 501, 18327, 15317, 1649, 7, 17, 11, 2383, 2227, 340, 809...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLeftJoin(t *testing.T) { executor, sbc1, sbc2, _ := createLegacyExecutorEnv() logChan := QueryLogger.Subscribe("Test") defer QueryLogger.Unsubscribe(logChan) result1 := []*sqltypes.Result{{ Fields: []*querypb.Field{ {Name: "id", Type: sqltypes.Int32}, {Name: "col", Type: sqltypes.Int32}, }, Row...
explode_data.jsonl/67425
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 540 }
[ 2830, 3393, 5415, 12292, 1155, 353, 8840, 836, 8, 341, 67328, 4831, 11, 7898, 66, 16, 11, 7898, 66, 17, 11, 716, 1669, 1855, 77415, 25255, 14359, 741, 6725, 46019, 1669, 11361, 7395, 82628, 445, 2271, 1138, 16867, 11361, 7395, 10616, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestToString(t *testing.T) { testCases := []struct { k string a interface{} exp string }{ {"color", testColor, colorStr}, {"foo", "bar", ""}, {"date", testDate, dateStr}, {"weight", "foo", ""}, {"weight", 1.2, "1.200000"}, {"name", "somename", "somename"}, } for _, tc := range testCases ...
explode_data.jsonl/81600
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 240 }
[ 2830, 3393, 5870, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 16463, 256, 914, 198, 197, 11323, 256, 3749, 16094, 197, 48558, 914, 198, 197, 59403, 197, 197, 4913, 3423, 497, 1273, 1636, 11, 1894, 2580, 158...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInstance_Get(t *testing.T) { g := NewGomegaWithT(t) inst := collection.New(basicmeta.K8SCollection1) inst.Set(data.EntryN1I1V1) inst.Set(data.EntryN3I3V1) e := inst.Get(data.EntryN1I1V1.Metadata.FullName) g.Expect(e).To(Equal(data.EntryN1I1V1)) e = inst.Get(data.EntryN3I3V1.Metadata.FullName) g.Expe...
explode_data.jsonl/70421
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 212 }
[ 2830, 3393, 2523, 13614, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 38, 32696, 2354, 51, 1155, 692, 88656, 1669, 4426, 7121, 1883, 5971, 5490, 11352, 23, 3540, 1908, 16, 340, 88656, 4202, 2592, 22330, 45, 16, 40, 16, 53, 16, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccKeycloakOpenidClient_publicClientCredentialsValidation(t *testing.T) { realmName := "terraform-" + acctest.RandString(10) clientId := "terraform-" + acctest.RandString(10) resource.Test(t, resource.TestCase{ ProviderFactories: testAccProviderFactories, PreCheck: func() { testAccPreCheck(t) ...
explode_data.jsonl/52136
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 244 }
[ 2830, 3393, 14603, 1592, 88751, 5002, 307, 2959, 27074, 2959, 27025, 13799, 1155, 353, 8840, 836, 8, 341, 17200, 7673, 675, 1669, 330, 61385, 27651, 488, 1613, 67880, 2013, 437, 703, 7, 16, 15, 340, 25291, 764, 1669, 330, 61385, 27651, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSessionRecycle(t *testing.T) { t.Parallel() if testing.Short() { t.SkipNow() } // Set MaxIdle to ensure shs[0] is not destroyed from scale down. sp, _, cleanup := setup(t, SessionPoolConfig{MinOpened: 1, MaxIdle: 2}) defer cleanup() // Test session is correctly recycled and reused. for i := 0; i < ...
explode_data.jsonl/78700
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 5283, 3820, 5449, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 7039, 741, 197, 630, 197, 322, 2573, 7487, 41370, 311, 5978, 557, 82, 58, 15, 60, 374, 537, 14425, 504...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestService_Load(t *testing.T) { baseDir, _ := os.Getwd() cfg, err := config.NewConfigFromURL(context.Background(), path.Join(baseDir, "test/config.yaml")) if err != nil { t.Fail() return } var testCases = []struct { description string batchID string initSQL []string caseDataPath string...
explode_data.jsonl/56712
{ "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, 1860, 19553, 1155, 353, 8840, 836, 8, 341, 24195, 6184, 11, 716, 1669, 2643, 2234, 6377, 741, 50286, 11, 1848, 1669, 2193, 7121, 2648, 3830, 3144, 5378, 19047, 1507, 1815, 22363, 12663, 6184, 11, 330, 1944, 14730, 33406, 545...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetDuration(t *testing.T) { configs.IntegrationJobTTL = 120 tc := map[string]struct { timeout string expectedErrOccur bool expectedDuration time.Duration }{ "validTimeout": { timeout: "1h", expectedErrOccur: false, expectedDuration: 1 * time.Hour, }, "invalidTimeout": { timeout: "1...
explode_data.jsonl/46141
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 465 }
[ 2830, 3393, 1949, 12945, 1155, 353, 8840, 836, 8, 341, 25873, 82, 7371, 17376, 12245, 51, 13470, 284, 220, 16, 17, 15, 198, 78255, 1669, 2415, 14032, 60, 1235, 341, 197, 78395, 914, 271, 197, 42400, 7747, 21764, 324, 1807, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestDepsolveLegacyErrorConversion(t *testing.T) { distroStruct := test_distro.New() arch, err := distroStruct.GetArch(test_distro.TestArchName) if err != nil { t.Fatalf("error getting arch from distro: %v", err) } server := newTestServer(t, t.TempDir(), time.Duration(0), "/api/worker/v1") depsolveJobId, e...
explode_data.jsonl/1111
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 401 }
[ 2830, 3393, 35, 7124, 3948, 77415, 1454, 48237, 1155, 353, 8840, 836, 8, 341, 2698, 15561, 9422, 1669, 1273, 814, 15561, 7121, 741, 197, 1113, 11, 1848, 1669, 1582, 299, 9422, 2234, 18727, 8623, 814, 15561, 8787, 18727, 675, 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...
2
func TestFeatureTest(t *testing.T) { var called bool fn := FeatureTest("foo", "1.0", func() bool { called = true return true }) if called { t.Error("Function was called too early") } err := fn() if !called { t.Error("Function wasn't called") } if err != nil { t.Error("Unexpected negative result:"...
explode_data.jsonl/5111
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 266 }
[ 2830, 3393, 13859, 2271, 1155, 353, 8840, 836, 8, 341, 2405, 2598, 1807, 271, 40095, 1669, 19998, 2271, 445, 7975, 497, 330, 16, 13, 15, 497, 2915, 368, 1807, 341, 197, 1444, 4736, 284, 830, 198, 197, 853, 830, 198, 197, 8824, 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
func Test_SQLite_010(t *testing.T) { for i := 0; i < sqlite3.KeywordCount(); i++ { name := sqlite3.KeywordName(i) t.Log("Keyword ", i, "=>", name, "=>", sqlite3.KeywordCheck(name)) } }
explode_data.jsonl/48734
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 85 }
[ 2830, 3393, 46625, 632, 62, 15, 16, 15, 1155, 353, 8840, 836, 8, 341, 2023, 600, 1669, 220, 15, 26, 600, 366, 22003, 18, 61225, 2507, 2129, 600, 1027, 341, 197, 11609, 1669, 22003, 18, 61225, 675, 1956, 340, 197, 3244, 5247, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func Test_getSplitPoint(t *testing.T) { tests := []struct { length int64 want int64 }{ {1, 0}, {2, 1}, {3, 2}, {4, 2}, {5, 4}, {10, 8}, {20, 16}, {100, 64}, {255, 128}, {256, 128}, {257, 256}, } for _, tt := range tests { got := getSplitPoint(tt.length) require.EqualValues(t, tt.want...
explode_data.jsonl/27634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 3062, 20193, 2609, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 49046, 526, 21, 19, 198, 197, 50780, 256, 526, 21, 19, 198, 197, 59403, 197, 197, 90, 16, 11, 220, 15, 1583, 197, 197, 90, 17, 11, 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 TestRepeat(t *testing.T) { t.Run("repeat 5 times", func(t *testing.T) { repeated := Repeat("a", 5) expected := "aaaaa" if repeated != expected { t.Errorf("expected %q but got %q", expected, repeated) } }) }
explode_data.jsonl/53970
{ "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, 38718, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 30624, 220, 20, 3039, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 17200, 41954, 1669, 44801, 445, 64, 497, 220, 20, 340, 197, 42400, 1669, 330, 28458, 64, 1837, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOfferSent_CanTransitionTo(t *testing.T) { st := &offerSent{} require.Equal(t, stateNameOfferSent, st.Name()) // common states require.False(t, st.CanTransitionTo(&start{})) require.True(t, st.CanTransitionTo(&abandoning{})) require.False(t, st.CanTransitionTo(&done{})) require.False(t, st.CanTransitionT...
explode_data.jsonl/53003
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 316 }
[ 2830, 3393, 39462, 31358, 920, 276, 21768, 1249, 1155, 353, 8840, 836, 8, 341, 18388, 1669, 609, 25077, 31358, 16094, 17957, 12808, 1155, 11, 1584, 675, 39462, 31358, 11, 357, 2967, 2398, 197, 322, 4185, 5302, 198, 17957, 50757, 1155, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_Handler_ServeHTTP_Down(t *testing.T) { r, _ := http.NewRequest("GET", "/", nil) w := httptest.NewRecorder() h := Handler{} h.AddChecker("DownChecker", downTestChecker{}) h.ServeHTTP(w, r) jsonbytes, _ := ioutil.ReadAll(w.Body) jsonstring := strings.TrimSpace(string(jsonbytes)) wants := `{"DownChec...
explode_data.jsonl/31610
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 280 }
[ 2830, 3393, 41879, 1098, 5852, 9230, 1557, 779, 1155, 353, 8840, 836, 8, 341, 7000, 11, 716, 1669, 1758, 75274, 445, 3806, 497, 64657, 2092, 340, 6692, 1669, 54320, 70334, 7121, 47023, 2822, 9598, 1669, 19954, 16094, 9598, 1904, 35188, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBundleScope(t *testing.T) { ctx := context.Background() f := newFixture(t) txn := storage.NewTransactionOrDie(ctx, f.server.store, storage.WriteParams) if err := bundle.WriteManifestToStore(ctx, f.server.store, txn, "test-bundle", bundle.Manifest{ Revision: "AAAAA", Roots: &[]string{"a/b/c", "x/...
explode_data.jsonl/78992
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1027 }
[ 2830, 3393, 8409, 10803, 1155, 353, 8840, 836, 8, 1476, 20985, 1669, 2266, 19047, 2822, 1166, 1669, 501, 18930, 1155, 692, 3244, 42967, 1669, 5819, 7121, 8070, 2195, 18175, 7502, 11, 282, 12638, 16114, 11, 5819, 4073, 4870, 692, 743, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestSessionCacheGetCloudwatch(t *testing.T) { testGetAWSClient( t, "Cloudwatch", func(t *testing.T, cache *sessionCache, region *string, role Role) { iface := cache.GetCloudwatch(region, role) if iface == nil { t.Fail() return } }) }
explode_data.jsonl/18775
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 109 }
[ 2830, 3393, 5283, 8233, 1949, 16055, 14321, 1155, 353, 8840, 836, 8, 341, 18185, 1949, 36136, 2959, 1006, 197, 3244, 11, 330, 16055, 14321, 756, 197, 29244, 1155, 353, 8840, 836, 11, 6500, 353, 5920, 8233, 11, 5537, 353, 917, 11, 3476...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetIndices(t *testing.T) { ensureTestIndices() got := testTimeSeriesIndex.getIndices(testES) expect := testIndices[3:] if diff := deep.Equal(got, expect); diff != nil { t.Fatalf("\ndiff: %+v\n", diff) } }
explode_data.jsonl/60465
{ "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, 1949, 31941, 1155, 353, 8840, 836, 8, 341, 197, 27289, 2271, 31941, 741, 3174, 354, 1669, 1273, 1462, 25544, 1552, 670, 31941, 8623, 1570, 340, 24952, 1669, 1273, 31941, 58, 18, 24135, 743, 3638, 1669, 5538, 12808, 3268, 354...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDoStartMinimumSupportedDockerVersionError(t *testing.T) { ctrl, credentialsManager, state, imageManager, client, dockerClient, stateManagerFactory, saveableOptionFactory, execCmdMgr := setup(t) defer ctrl.Finish() gomock.InOrder( dockerClient.EXPECT().SupportedVersions().Return([]dockerclient.DockerVer...
explode_data.jsonl/41574
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 335 }
[ 2830, 3393, 5404, 3479, 28695, 34636, 35, 13659, 5637, 1454, 1155, 353, 8840, 836, 8, 341, 84381, 11, 16387, 2043, 11, 1584, 11, 2168, 2043, 11, 2943, 345, 197, 2698, 13659, 2959, 11, 1584, 2043, 4153, 11, 3581, 480, 5341, 4153, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestImageBuildError(t *testing.T) { client := &Client{ transport: newMockClient(nil, errorMock(http.StatusInternalServerError, "Server error")), } _, err := client.ImageBuild(context.Background(), types.ImageBuildOptions{}) if err == nil || err.Error() != "Error response from daemon: Server error" { t.Fata...
explode_data.jsonl/402
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 120 }
[ 2830, 3393, 1906, 11066, 1454, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 609, 2959, 515, 197, 197, 26445, 25, 501, 11571, 2959, 27907, 11, 1465, 11571, 19886, 66760, 11, 330, 5475, 1465, 30154, 197, 532, 197, 6878, 1848, 1669, 2943, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRouter_GenerateURL_ReturnsErrorWhenRegularExpressionNotMatches(t *testing.T) { mainRouter := Router{} url := "/path1/{name:[a-z]+}" name := "path1" _ = mainRouter.Register(http.MethodGet, url, testHandlerFunc, MatchingOptions{ Name: name, }) bag := URLParameterBag{} bag.add("name", "1234") route, er...
explode_data.jsonl/31741
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 189 }
[ 2830, 3393, 9523, 2646, 13220, 3144, 53316, 82, 1454, 4498, 90402, 2623, 42470, 1155, 353, 8840, 836, 8, 341, 36641, 9523, 1669, 10554, 16094, 19320, 1669, 3521, 2343, 16, 9388, 606, 7259, 64, 9141, 7574, 11195, 11609, 1669, 330, 2343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTaskRunDescribe_no_taskref(t *testing.T) { clock := clockwork.NewFakeClock() trs := []*v1alpha1.TaskRun{ tb.TaskRun("tr-1", tb.TaskRunNamespace("ns"), tb.TaskRunStatus( tb.TaskRunStartTime(clock.Now().Add(2*time.Minute)), cb.TaskRunCompletionTime(clock.Now().Add(5*time.Minute)), tb.Statu...
explode_data.jsonl/77394
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 587 }
[ 2830, 3393, 6262, 6727, 74785, 6536, 12184, 1097, 1155, 353, 8840, 836, 8, 341, 84165, 1669, 8866, 1778, 7121, 52317, 26104, 2822, 25583, 82, 1669, 29838, 85, 16, 7141, 16, 28258, 6727, 515, 197, 62842, 28258, 6727, 445, 376, 12, 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...
4
func TestMySQLServerRepo_Execute(t *testing.T) { asst := assert.New(t) sql := `select 1;` result, err := mysqlServerRepo.Execute(sql) asst.Nil(err, common.CombineMessageWithError("test Execute() failed", err)) r, err := result.GetInt(0, 0) asst.Nil(err, common.CombineMessageWithError("test Execute() failed", err...
explode_data.jsonl/80035
{ "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, 59224, 5475, 25243, 83453, 1155, 353, 8840, 836, 8, 341, 60451, 267, 1669, 2060, 7121, 1155, 692, 30633, 1669, 1565, 1742, 220, 16, 26, 3989, 9559, 11, 1848, 1669, 10564, 5475, 25243, 13827, 13148, 340, 60451, 267, 59678, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParitionLoops(t *testing.T) { t.Log(rx.Slice(rx.PartitionLoops(rx.SliceIter(0, 1, 2, 3, 4, 2, 3, 4, 0, 5, 4, 1)))) }
explode_data.jsonl/13721
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 64 }
[ 2830, 3393, 4272, 680, 4262, 3721, 1155, 353, 8840, 836, 8, 341, 3244, 5247, 75279, 95495, 75279, 52250, 680, 4262, 3721, 75279, 95495, 8537, 7, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 17, 11, 220, 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
func TestNewFileItem_Folder(t *testing.T) { f := &fileDialog{file: &FileDialog{}} _ = f.makeUI() currentDir, _ := filepath.Abs(".") parentDir := filepath.Dir(currentDir) f.setDirectory(parentDir) item := f.newFileItem(currentDir, true) assert.Equal(t, item.name, filepath.Base(currentDir)) test.Tap(item) asse...
explode_data.jsonl/76867
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 170 }
[ 2830, 3393, 3564, 1703, 1234, 1400, 2018, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 609, 1192, 4468, 90, 1192, 25, 609, 26596, 6257, 532, 197, 62, 284, 282, 10117, 2275, 741, 20121, 6184, 11, 716, 1669, 26054, 33255, 5680, 1138, 24804...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMax(t *testing.T) { testCases := []struct { name string arguments []int want int }{ {"One value", []int{1}, 1}, {"Two values", []int{1, 2}, 2}, {"Three values", []int{1, 2, 3}, 3}, {"Three values reordered", []int{3, 1, 2}, 3}, {"Negative values", []int{-1, -2}, -1}, } for _, tc ...
explode_data.jsonl/12594
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 329 }
[ 2830, 3393, 5974, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 197, 16370, 3056, 396, 198, 197, 50780, 414, 526, 198, 197, 59403, 197, 197, 4913, 3966, 897, 497, 3056, 396, 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, 1...
3
func TestBindJsonStats(t *testing.T) { ts := httptest.NewServer(http.FileServer(http.Dir("testdata"))) url := ts.Listener.Addr().String() host, port, _ := net.SplitHostPort(url) defer ts.Close() b := Bind{ Urls: []string{ts.URL + "/json/v1"}, GatherMemoryContexts: true, GatherViews: ...
explode_data.jsonl/18718
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1784 }
[ 2830, 3393, 9950, 5014, 16635, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 8576, 5475, 19886, 83757, 445, 92425, 29836, 19320, 1669, 10591, 64091, 93626, 1005, 703, 741, 63104, 11, 2635, 11, 716, 1669, 4179...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestControllerSyncGameServer(t *testing.T) { t.Parallel() t.Run("Creating a new GameServer", func(t *testing.T) { c, mocks := newFakeController() updateCount := 0 podCreated := false fixture := &v1alpha1.GameServer{ObjectMeta: metav1.ObjectMeta{Name: "test", Namespace: "default"}, Spec: v1alpha1.Game...
explode_data.jsonl/25423
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1406 }
[ 2830, 3393, 2051, 12154, 4868, 5475, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 3244, 16708, 445, 24973, 264, 501, 4050, 5475, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1444, 11, 68909, 1669, 501, 52317, 2051, 741, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInstructionString(t *testing.T) { instructions := []Instructions{ Make(OpAdd), Make(OpConstant, 2), Make(OpConstant, 65535), } expected := `0000 OpAdd 0001 OpConstant 2 0004 OpConstant 65535 ` concatted := Instructions{} for _, ins := range instructions { concatted = append(concatted, ins...) } ...
explode_data.jsonl/9477
{ "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, 16664, 703, 1155, 353, 8840, 836, 8, 341, 17430, 19657, 1669, 3056, 55291, 515, 197, 197, 8078, 54494, 2212, 1326, 197, 197, 8078, 54494, 15472, 11, 220, 17, 1326, 197, 197, 8078, 54494, 15472, 11, 220, 21, 20, 20, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestScanSelectedMask(t *testing.T) { testScanSelectedMode(t, 0, 0) testScanSelectedMode(t, ScanIdents, Ident) // Don't test ScanInts and ScanNumbers since some parts of // the floats in the source look like (illegal) octal ints // and ScanNumbers may return either Int or Float. testScanSelectedMode(t, ScanCh...
explode_data.jsonl/56531
{ "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, 26570, 6316, 12686, 1155, 353, 8840, 836, 8, 341, 18185, 26570, 6316, 3636, 1155, 11, 220, 15, 11, 220, 15, 340, 18185, 26570, 6316, 3636, 1155, 11, 31108, 764, 805, 11, 22507, 340, 197, 322, 4320, 944, 1273, 31108, 1072, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFlattenShootAzure(t *testing.T) { vnetCIDR := "10.250.0.0/16" vnetName := "test" resGroup := "test" azConfig, _ := json.Marshal(azAlpha1.InfrastructureConfig{ TypeMeta: v1.TypeMeta{ APIVersion: "azure.provider.extensions.gardener.cloud/v1alpha1", Kind: "InfrastructureConfig", }, Networks:...
explode_data.jsonl/26239
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 967 }
[ 2830, 3393, 3882, 14456, 85195, 78107, 1155, 353, 8840, 836, 8, 341, 5195, 4711, 54146, 49, 1669, 330, 16, 15, 13, 17, 20, 15, 13, 15, 13, 15, 14, 16, 21, 698, 5195, 4711, 675, 1669, 330, 1944, 698, 10202, 2808, 1669, 330, 1944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestInitIdempotence(t *testing.T) { t.Parallel() path := testRepoPath("", t) for i := 0; i < 10; i++ { assert.Nil(Init(path, &config.Config{Datastore: config.DefaultDatastoreConfig()}), t, "multiple calls to init should succeed") } }
explode_data.jsonl/24173
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 3803, 764, 3262, 97560, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 26781, 1669, 1273, 25243, 1820, 19814, 259, 340, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 16, 15, 26, 600, 1027, 341, 197, 6948, 59678, 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 TestCheckConstraintBuilder_DefaultName(t *testing.T) { ctx := context.Background() semaCtx := tree.MakeSemaContext() database := tree.Name("foo") table := tree.Name("bar") tn := tree.MakeTableName(database, table) desc := testTableDesc( string(table), []testCol{{"a", types.Bool}, {"b", types.Int}}, [...
explode_data.jsonl/31242
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 514 }
[ 2830, 3393, 3973, 17890, 3297, 60336, 675, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 84686, 1728, 23684, 1669, 4916, 50133, 50, 9176, 1972, 2822, 2698, 2211, 1669, 4916, 2967, 445, 7975, 1138, 26481, 1669, 4916, 2967, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunInvalidTransaction(t *testing.T) { txHandlerOpt := func(bapp *baseapp.BaseApp) { legacyRouter := middleware.NewLegacyRouter() r := sdk.NewRoute(routeMsgCounter, func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) { any, err := codectypes.NewAnyWithValue(msg) if err != nil { return nil, er...
explode_data.jsonl/30041
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1551 }
[ 2830, 3393, 6727, 7928, 8070, 1155, 353, 8840, 836, 8, 341, 46237, 3050, 21367, 1669, 2915, 1883, 676, 353, 3152, 676, 13018, 2164, 8, 341, 197, 197, 39884, 9523, 1669, 29679, 7121, 77415, 9523, 741, 197, 7000, 1669, 45402, 7121, 4899, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetMostRecentTrades(t *testing.T) { t.Parallel() _, err := b.GetMostRecentTrades(context.Background(), RecentTradeRequestParams{ Symbol: currency.NewPair(currency.BTC, currency.USDT), Limit: 15, }) if err != nil { t.Error("Binance GetMostRecentTrades() error", err) } }
explode_data.jsonl/76644
{ "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, 1949, 13319, 25140, 1282, 3452, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 6878, 1848, 1669, 293, 2234, 13319, 25140, 1282, 3452, 5378, 19047, 3148, 197, 197, 25140, 39173, 1900, 4870, 515, 298, 7568, 4001, 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 TestInfoDepth(t *testing.T) { setFlags() defer logging.swap(logging.newBuffers()) f := func() { InfoDepth(1, "depth-test1") } // The next three lines must stay together _, _, wantLine, _ := runtime.Caller(0) InfoDepth(0, "depth-test0") f() msgs := strings.Split(strings.TrimSuffix(contents(infoLog), "\n"...
explode_data.jsonl/8425
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 492 }
[ 2830, 3393, 1731, 19776, 1155, 353, 8840, 836, 8, 341, 8196, 9195, 741, 16867, 8392, 54537, 51687, 4618, 36219, 12367, 1166, 1669, 2915, 368, 314, 13074, 19776, 7, 16, 11, 330, 17561, 16839, 16, 899, 555, 197, 322, 576, 1790, 2326, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAdmin_DeleteMeRequest(t *testing.T) { srv, ts := prep(t) assert.NotNil(t, srv) defer cleanup(ts) c1 := store.Comment{Text: "test test #1", Locator: store.Locator{SiteID: "radio-t", URL: "https://radio-t.com/blah"}, User: store.User{Name: "user1 name", ID: "user1"}} c2 := store.Comment{Text: "test test ...
explode_data.jsonl/70326
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 670 }
[ 2830, 3393, 7210, 57418, 7823, 1900, 1155, 353, 8840, 836, 8, 341, 1903, 10553, 11, 10591, 1669, 21327, 1155, 340, 6948, 93882, 1155, 11, 43578, 340, 16867, 21290, 35864, 692, 1444, 16, 1669, 3553, 56730, 90, 1178, 25, 330, 1944, 1273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPeerStatusChangeServer(t *testing.T) { changes := make(chan int, 10) sopts := testutils.NewOpts().NoRelay().SetOnPeerStatusChanged(func(p *Peer) { i, o := p.NumConnections() assert.Equal(t, 0, o, "no outbound connections from server") changes <- i }) testutils.WithTestServer(t, sopts, func(t testing....
explode_data.jsonl/78205
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 376 }
[ 2830, 3393, 30888, 2522, 4072, 5475, 1155, 353, 8840, 836, 8, 341, 197, 19365, 1669, 1281, 35190, 526, 11, 220, 16, 15, 340, 197, 704, 12754, 1669, 1273, 6031, 7121, 43451, 1005, 2753, 6740, 352, 1005, 1649, 1925, 30888, 2522, 5389, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateVersionFromConfig(t *testing.T) { assert := assert.New(t) assert.NoError(db.ClearCollections(model.ProjectRefCollection, version.Collection, distro.Collection, task.Collection, build.Collection, user.Collection)) ref := model.ProjectRef{ Identifier: "mci", } assert.NoError(ref.Insert()) d := dist...
explode_data.jsonl/60391
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 919 }
[ 2830, 3393, 4021, 5637, 3830, 2648, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 6948, 35699, 9791, 13524, 52730, 7635, 30944, 3945, 6482, 11, 2319, 28629, 11, 1582, 299, 28629, 11, 3383, 28629, 11, 1936, 28629, 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 TestCancelRequest(t *testing.T) { reqInFlight := make(chan struct{}) backend := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { close(reqInFlight) // cause the client to cancel its request select { case <-time.After(10 * time.Second): t.Error("Handler never saw CloseN...
explode_data.jsonl/64246
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 498 }
[ 2830, 3393, 9269, 1900, 1155, 353, 8840, 836, 8, 341, 24395, 641, 45305, 1669, 1281, 35190, 2036, 37790, 197, 20942, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 27873, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestJsonWrapperEncode(t *testing.T) { dummy := newDummyMarshallable("test") wrapper := NewJsonWrapper() encoded, err := wrapper.Encode(&dummy) if err != nil { t.Error("got error: ", err) } if encoded != "{\"name\":\"test\"}" { t.Error("Encoded message is not valid, expected: {\"name\":\"test\"}, got: "...
explode_data.jsonl/28841
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 5014, 11542, 32535, 1155, 353, 8840, 836, 8, 341, 2698, 8574, 1669, 501, 43344, 12061, 19012, 480, 445, 1944, 1138, 6692, 5518, 1669, 1532, 5014, 11542, 2822, 197, 19329, 11, 1848, 1669, 13261, 50217, 2099, 31390, 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...
3
func TestFileModifyTime(t *testing.T) { stdOs = std.NewMockOs() impl.options.Timeout = 3 var filetime int64 stdOs.(std.MockOs).MockFile("text.txt", []byte("1234")) if f, err := stdOs.Stat("text.txt"); err == nil { filetime = f.ModTime().Unix() } else { t.Errorf("vfs.file.time test returned error...
explode_data.jsonl/47334
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 319 }
[ 2830, 3393, 1703, 44427, 1462, 1155, 353, 8840, 836, 8, 972, 6736, 28867, 284, 1460, 7121, 11571, 28867, 18005, 197, 6383, 10912, 63977, 284, 220, 18, 871, 2405, 1034, 1678, 526, 21, 19, 871, 6736, 28867, 12832, 1834, 24664, 28867, 568,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAudit(t *testing.T) { t.Parallel() app := Server{} app.Silence = true app.Audit = func(r *http.Request) bool { return r.Header.Get("Upgrade") != "websocket" && r.Method != "GET" && r.Method != "DELETE" } app.Start("localhost:0") defer app.Close(os.Interrupt) index, err := app.Storage.Set("test", "te...
explode_data.jsonl/67696
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 756 }
[ 2830, 3393, 74516, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 28236, 1669, 8422, 16094, 28236, 808, 321, 763, 284, 830, 198, 28236, 875, 33887, 284, 2915, 2601, 353, 1254, 9659, 8, 1807, 341, 197, 853, 435, 15753, 2234, 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 TestBundleScopeMultiBundle(t *testing.T) { ctx := context.Background() f := newFixture(t) txn := storage.NewTransactionOrDie(ctx, f.server.store, storage.WriteParams) if err := bundle.WriteManifestToStore(ctx, f.server.store, txn, "test-bundle1", bundle.Manifest{ Revision: "AAAAA", Roots: &[]string{...
explode_data.jsonl/78993
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 716 }
[ 2830, 3393, 8409, 10803, 20358, 8409, 1155, 353, 8840, 836, 8, 1476, 20985, 1669, 2266, 19047, 2822, 1166, 1669, 501, 18930, 1155, 692, 3244, 42967, 1669, 5819, 7121, 8070, 2195, 18175, 7502, 11, 282, 12638, 16114, 11, 5819, 4073, 4870, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestOnConfigurationChange(t *testing.T) { command := &model.Command{ Trigger: "poll", AutoComplete: true, AutoCompleteDesc: "Create a poll", AutoCompleteHint: `"[Question]" "[Answer 1]" "[Answer 2]"...`, } botPatch := &model.BotPatch{ Description: &botDescription.Other, } for name, te...
explode_data.jsonl/72787
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2285 }
[ 2830, 3393, 1925, 7688, 4072, 1155, 353, 8840, 836, 8, 341, 45566, 1669, 609, 2528, 12714, 515, 197, 197, 17939, 25, 688, 330, 30141, 756, 197, 197, 13253, 12548, 25, 257, 830, 345, 197, 197, 13253, 12548, 11065, 25, 330, 4021, 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...
1
func TestResolveFullyQualifiedNameToOpenAPIName(t *testing.T) { var tests = []struct { input string output string listOfFQMNs []string useFQNForOpenAPIName bool }{ { ".a.b.C", "C", []string{ ".a.b.C", }, false, }, { ".a.b.C", "abC", []str...
explode_data.jsonl/32801
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 510 }
[ 2830, 3393, 56808, 67386, 92251, 1249, 5002, 7082, 675, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 22427, 394, 914, 198, 197, 21170, 2290, 914, 198, 197, 14440, 2124, 37, 88878, 47360, 688, 3056, 917, 198, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestScanBuiltIn(t *testing.T) { ports, err := GoScan("google.com", []int{80}) assert.Nil(t, err) assert.Len(t, ports, 1) assert.Equal(t, ports[0].Port, int32(80)) assert.True(t, ports[0].Open) }
explode_data.jsonl/75143
{ "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, 26570, 54300, 641, 1155, 353, 8840, 836, 8, 341, 197, 3394, 11, 1848, 1669, 5994, 26570, 445, 17485, 905, 497, 3056, 396, 90, 23, 15, 3518, 6948, 59678, 1155, 11, 1848, 340, 6948, 65819, 1155, 11, 20325, 11, 220, 16, 340...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLeak(t *testing.T) { var ( count = 100 fooErr = errors.New("") ) observables := map[string]func(context.Context) Observable{ "Amb": func(ctx context.Context) Observable { obs := FromChannel(make(chan Item), WithContext(ctx)) return Amb([]Observable{obs}, WithContext(ctx)) }, "CombineLatest...
explode_data.jsonl/82661
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1314 }
[ 2830, 3393, 2304, 585, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 18032, 220, 284, 220, 16, 15, 15, 198, 197, 197, 7975, 7747, 284, 5975, 7121, 31764, 197, 692, 197, 22764, 4788, 1669, 2415, 14032, 60, 2830, 5378, 9328, 8, 11231...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOfferReceived_ExecuteInbound(t *testing.T) { t.Run("incorrect data (with ProposeCredential)", func(t *testing.T) { msg := service.NewDIDCommMsgMap(struct{}{}) followup, action, err := (&offerReceived{}).ExecuteInbound(&metaData{ proposeCredential: &ProposeCredential{}, transitionalPayload: transiti...
explode_data.jsonl/53016
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 518 }
[ 2830, 3393, 39462, 23260, 83453, 641, 10891, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 61954, 821, 320, 4197, 3911, 960, 48265, 11583, 2915, 1155, 353, 8840, 836, 8, 341, 197, 21169, 1669, 2473, 7121, 35, 915, 17977, 6611, 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 TestCycleTime(t *testing.T) { const MeasureTolerance int64 = 1000000 var d Duration d.FromSec(0.01) r := CycleTime(d) if !r.actualCycleTime.IsZero() { t.Fail() } if r.expectedCycleTime.ToSec() != 0.01 { t.Fail() } start := time.Now().UnixNano() r.Sleep() end := time.Now().UnixNano() actual := r....
explode_data.jsonl/6813
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 44820, 1462, 1155, 353, 8840, 836, 8, 341, 4777, 34104, 51, 31661, 526, 21, 19, 284, 220, 16, 15, 15, 15, 15, 15, 15, 271, 2405, 294, 21045, 198, 2698, 11439, 8430, 7, 15, 13, 15, 16, 340, 7000, 1669, 41292, 1462, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func Test_DeleteMovie(t *testing.T) { if movieFail || testMovie == nil || testMovie.Id < 1 { t.Skip("Skipping due to previous failure") } err := conn.DeleteMovie(testMovie.Id) if err != nil { t.Fatal(err) } testMovie = nil }
explode_data.jsonl/22024
{ "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, 57418, 19668, 1155, 353, 8840, 836, 8, 341, 743, 5700, 19524, 1369, 1273, 19668, 621, 2092, 1369, 1273, 19668, 6444, 366, 220, 16, 341, 197, 3244, 57776, 445, 85945, 4152, 311, 3681, 7901, 1138, 197, 630, 9859, 1669, 4534, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWorkerPoolStop(t *testing.T) { ns := "will_it_end" pool := newTestPool(":6379") var started, stopped int32 num_iters := 30 wp := NewWorkerPool(emptyCtx{}, 2, ns, pool) wp.Job("sample_job", func(c *emptyCtx, job *Job) error { atomic.AddInt32(&started, 1) time.Sleep(1 * time.Second) atomic.AddInt32...
explode_data.jsonl/35602
{ "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, 21936, 10551, 10674, 1155, 353, 8840, 836, 8, 341, 84041, 1669, 330, 14387, 14631, 6213, 698, 85273, 1669, 501, 2271, 10551, 18893, 21, 18, 22, 24, 1138, 2405, 3855, 11, 10497, 526, 18, 17, 198, 22431, 72866, 1669, 220, 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 TestRatBin(t *testing.T) { for i, test := range ratBinTests { arg := ratBinArg{test.x, test.y, test.sum} testRatBin(t, i, "Add", (*Rat).Add, arg) arg = ratBinArg{test.y, test.x, test.sum} testRatBin(t, i, "Add symmetric", (*Rat).Add, arg) arg = ratBinArg{test.sum, test.x, test.y} testRatBin(t, i, "S...
explode_data.jsonl/35075
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 440 }
[ 2830, 3393, 49, 266, 28794, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 1273, 1669, 2088, 11244, 28794, 18200, 341, 197, 47903, 1669, 11244, 28794, 2735, 90, 1944, 1993, 11, 1273, 2384, 11, 1273, 13183, 532, 197, 18185, 49, 266, 2879...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientMethodWithSpecialChars(t *testing.T) { Convey("TestClientMethodWithSpecialChars", t, func(c C) { targetDir, err := ioutil.TempDir("", "") c.So(err, ShouldBeNil) apiDef := new(raml.APIDefinition) err = raml.ParseFile("../fixtures/special_chars.raml", apiDef) c.So(err, ShouldBeNil) client :=...
explode_data.jsonl/19339
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 399 }
[ 2830, 3393, 2959, 3523, 2354, 20366, 32516, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 2271, 2959, 3523, 2354, 20366, 32516, 497, 259, 11, 2915, 1337, 356, 8, 341, 197, 28861, 6184, 11, 1848, 1669, 43144, 65009, 6184, 19814, 14676,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrintEndpointSlice(t *testing.T) { tcpProtocol := api.ProtocolTCP tests := []struct { endpointSlice discovery.EndpointSlice expected []metav1.TableRow }{ { endpointSlice: discovery.EndpointSlice{ ObjectMeta: metav1.ObjectMeta{ Name: "abcslice.123", CreationTimestamp...
explode_data.jsonl/21636
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1599 }
[ 2830, 3393, 8994, 27380, 33236, 1155, 353, 8840, 836, 8, 341, 3244, 4672, 20689, 1669, 6330, 54096, 49896, 271, 78216, 1669, 3056, 1235, 341, 197, 6246, 2768, 33236, 18335, 90409, 33236, 198, 197, 42400, 414, 3056, 4059, 402, 16, 18257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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