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 TestCreateTeam(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() Client := th.BasicClient team := model.Team{DisplayName: "Name", Name: "z-z-" + model.NewId() + "a", Email: "test@nowhere.com", Type: model.TEAM_OPEN} rteam, err := Client.CreateTeam(&team) if err != nil { t.Fatal(err) } user...
explode_data.jsonl/48499
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 536 }
[ 2830, 3393, 4021, 14597, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 71724, 1669, 270, 48868, 2959, 271, 197, 9196, 1669, 1614, 65842, 90, 26456, 25, 330, 675, 497, 3988, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFloat64SetRange_Negative(t *testing.T) { const N = 1000 z := NewFloat64() for i := 0; i < N; i++ { z.Add(fastrand.Float64(), fmt.Sprint(i)) } ns := z.Range(-1, -1) assert.Equal(t, 1, len(ns)) assert.Equal(t, z.Len()-1, z.Rank(ns[0].Value)) }
explode_data.jsonl/24997
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 124 }
[ 2830, 3393, 5442, 21, 19, 1649, 6046, 1604, 15060, 1155, 353, 8840, 836, 8, 341, 4777, 451, 284, 220, 16, 15, 15, 15, 198, 20832, 1669, 1532, 5442, 21, 19, 741, 2023, 600, 1669, 220, 15, 26, 600, 366, 451, 26, 600, 1027, 341, 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 TestMilestone_APIFormat(t *testing.T) { milestone := &Milestone{ ID: 3, RepoID: 4, Name: "milestoneName", Content: "milestoneContent", IsClosed: false, NumOpenIssues: 5, NumClosedIssues: 6, Deadline: time.Date(2000, time.January, 1, 0, 0, 0,...
explode_data.jsonl/42641
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 321 }
[ 2830, 3393, 44, 93028, 11415, 4061, 1155, 353, 8840, 836, 8, 341, 2109, 93028, 1669, 609, 44, 93028, 515, 197, 29580, 25, 1060, 220, 18, 345, 197, 197, 25243, 915, 25, 688, 220, 19, 345, 197, 21297, 25, 310, 330, 66597, 10812, 675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMigrateIndexesWithDynamicTableName(t *testing.T) { // Create primary table if err := DB.AutoMigrate(&DynamicUser{}); err != nil { t.Fatalf("AutoMigrate create table error: %#v", err) } // Create sub tables for _, v := range []string{"01", "02", "03"} { tableName := "dynamic_users_" + v m := DB.Scop...
explode_data.jsonl/6502
{ "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, 44, 34479, 62229, 2354, 21752, 33227, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 6028, 1965, 198, 743, 1848, 1669, 5952, 6477, 44, 34479, 2099, 21752, 1474, 6257, 1215, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 13253, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGather(t *testing.T) { h := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNotFound) w.Write([]byte("data")) }) c, destroy := fakeHTTPClient(h) defer destroy() n := &NeptuneApex{ httpClient: c, } tests := []struct { name string servers []string }{ ...
explode_data.jsonl/39057
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 395 }
[ 2830, 3393, 38, 1856, 1155, 353, 8840, 836, 8, 341, 9598, 1669, 1758, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6692, 69794, 19886, 10538, 10372, 340, 197, 6692, 4073, 10556, 3782, 445, 691, 5455, 197, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTLDReplaceMissingTLD(t *testing.T) { out, err := strategy.TLDReplace.Generate("example", "") if err != nil { t.Fail() t.Fatal("Error should not occur !", err) } if len(out) != 0 { t.FailNow() } }
explode_data.jsonl/47666
{ "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, 51, 12335, 23107, 25080, 51, 12335, 1155, 353, 8840, 836, 8, 341, 13967, 11, 1848, 1669, 8282, 836, 12335, 23107, 57582, 445, 8687, 497, 14676, 743, 1848, 961, 2092, 341, 197, 3244, 57243, 741, 197, 3244, 26133, 445, 1454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShouldReturnErrorIfRowsScanReturnsError(t *testing.T) { db, mock, err := sqlmock.New() assertNoError(t, err, "Failed to make DB") limit := uint(4) // adding a string ID should result in rows.Scan returning an error r := mock.NewRows([]string{"id"}). AddRow("hej"). AddRow(2). AddRow(3) mock.Expect...
explode_data.jsonl/47315
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 382 }
[ 2830, 3393, 14996, 5598, 1454, 2679, 9024, 26570, 16446, 1454, 1155, 353, 8840, 836, 8, 341, 20939, 11, 7860, 11, 1848, 1669, 5704, 16712, 7121, 741, 6948, 2753, 1454, 1155, 11, 1848, 11, 330, 9408, 311, 1281, 5952, 1138, 8810, 2353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPreparedStatementWithPool(t *testing.T) { db, cleanup := testCreateDB(t, 3) defer cleanup() driver := db.Driver().(*stdlib.Driver) var tm time.Time if err := driver.Pool.QueryRow("select_row").Scan(&tm); err != nil { t.Fatal(err) } t.Log(tm) }
explode_data.jsonl/74282
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 45405, 2354, 10551, 1155, 353, 8840, 836, 8, 341, 20939, 11, 21290, 1669, 1273, 4021, 3506, 1155, 11, 220, 18, 340, 16867, 21290, 2822, 33652, 1669, 2927, 41768, 1005, 4071, 13149, 41768, 340, 2405, 17333, 882, 16299, 198, 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 TestDefaultDbgLogger(t *testing.T) { cases := []struct { name string in string out string debug bool }{ { name: "debug(true)", in: "helloworld", out: "helloworld\n", debug: true, }, { name: "debug(false)", in: "helloworld", out: "", debug: false, }, } ...
explode_data.jsonl/37587
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 354 }
[ 2830, 3393, 3675, 7994, 70, 7395, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 17430, 262, 914, 198, 197, 13967, 256, 914, 198, 197, 39730, 1807, 198, 197, 59403, 197, 197, 515, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSearcher_WIREFind(t *testing.T) { s := searcher{} if err := s.helperLoadFEDWIREFile(t); err != nil { t.Fatal(err) } req := fedSearchRequest{ Name: "MIDWest", RoutingNumber: "091905114", City: "IOWA CITY", State: "IA", } wireP, err := s.WIREFind(hardResultsLimit, req)...
explode_data.jsonl/71105
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 411 }
[ 2830, 3393, 5890, 261, 2763, 40, 5996, 484, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 94674, 16094, 743, 1848, 1669, 274, 38922, 5879, 37, 1479, 54, 7466, 1703, 1155, 1215, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestPolicyDto_RefuseResponseQuote(t *testing.T) { var dto = serverguard.PolicyDto{RefuseResponse: `{"success": true, "msg": "访问频繁"}`} t.Logf("quote: %s", dto.RefuseResponseQuote()) quoted := `"{\"success\": true, \"msg\": \"访问频繁\"}"` if dto.RefuseResponseQuote() != quoted { t.Fatalf("quote error,\n quote: %s...
explode_data.jsonl/1815
{ "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, 13825, 14797, 81086, 810, 2582, 19466, 1155, 353, 8840, 836, 8, 341, 2405, 28335, 284, 3538, 26098, 1069, 8018, 14797, 90, 3945, 810, 2582, 25, 1565, 4913, 5630, 788, 830, 11, 330, 3236, 788, 330, 104925, 106689, 1, 44099, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_decode_slash(t *testing.T) { should := require.New(t) var obj interface{} should.NotNil(json.Unmarshal([]byte("\\"), &obj)) should.NotNil(jsoniter.UnmarshalFromString("\\", &obj)) }
explode_data.jsonl/73523
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 81 }
[ 2830, 3393, 15227, 11886, 988, 1155, 353, 8840, 836, 8, 341, 197, 5445, 1669, 1373, 7121, 1155, 340, 2405, 2839, 3749, 16094, 197, 5445, 93882, 9304, 38097, 10556, 3782, 4921, 2105, 701, 609, 2295, 1171, 197, 5445, 93882, 9304, 2015, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGaussian(t *testing.T) { _, err := window.NewGaussian(0.0) assert.NoError(t, err) w, err := window.NewGaussian(0.5) assert.NoError(t, err) testWindowMaker(t, w) }
explode_data.jsonl/52498
{ "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, 38, 46972, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 3241, 7121, 38, 46972, 7, 15, 13, 15, 340, 6948, 35699, 1155, 11, 1848, 692, 6692, 11, 1848, 1669, 3241, 7121, 38, 46972, 7, 15, 13, 20, 340, 6948, 35699,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDialectValueWriting(t *testing.T) { // Test value writing for _, tc := range []struct { in value.Value out string }{ {value.NewValue(true), "true"}, {value.NewValue(22.2), "22.2"}, {value.NewValue(dateparse.MustParse("2017/08/08")), "\"2017-08-08 00:00:00 +0000 UTC\""}, {value.NewValue(22), "22...
explode_data.jsonl/77116
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 235 }
[ 2830, 3393, 35, 55056, 1130, 39313, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 897, 4378, 198, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 17430, 220, 897, 6167, 198, 197, 13967, 914, 198, 197, 59403, 197, 197, 90, 957, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDatabaseRecycle(t *testing.T) { th := Setup().InitBasic().InitSystemAdmin() defer th.TearDown() Client := th.Client _, resp := Client.DatabaseRecycle() CheckForbiddenStatus(t, resp) _, resp = th.SystemAdminClient.DatabaseRecycle() CheckNoError(t, resp) }
explode_data.jsonl/10685
{ "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, 5988, 3820, 5449, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 1005, 3803, 2320, 7210, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 271, 197, 6878, 9039, 1669, 8423, 25008, 3820, 544...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOutputService6ProtocolTestIgnoresExtraDataCase1(t *testing.T) { svc := NewOutputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")}) buf := bytes.NewReader([]byte("{\"foo\": \"bar\"}")) req, out := svc.OutputService6TestCaseOperation1Request(nil) req.HTTPResponse = &http.R...
explode_data.jsonl/44973
{ "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, 5097, 1860, 21, 20689, 2271, 40, 70, 2152, 416, 11612, 1043, 4207, 16, 1155, 353, 8840, 836, 8, 341, 1903, 7362, 1669, 1532, 5097, 1860, 21, 20689, 2271, 24144, 20674, 11, 609, 8635, 10753, 90, 27380, 25, 31521, 6431, 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 TestIssue871(t *testing.T) { protest.AllowRecording(t) withTestProcess("issue871", t, func(p *proc.Target, fixture protest.Fixture) { assertNoError(p.Continue(), t, "Continue") var scope *proc.EvalScope var err error if testBackend == "rr" { var frame proc.Stackframe frame, err = findFirstNonRunti...
explode_data.jsonl/56291
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 428 }
[ 2830, 3393, 42006, 23, 22, 16, 1155, 353, 8840, 836, 8, 341, 197, 776, 1944, 29081, 52856, 1155, 340, 46948, 2271, 7423, 445, 11159, 23, 22, 16, 497, 259, 11, 2915, 1295, 353, 15782, 35016, 11, 12507, 8665, 991, 12735, 8, 341, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestPopulateLocationConstraint(t *testing.T) { s := s3.New(unit.Session) in := &s3.CreateBucketInput{ Bucket: aws.String("bucket"), } req, _ := s.CreateBucketRequest(in) err := req.Build() assert.NoError(t, err) v, _ := awsutil.ValuesAtPath(req.Params, "CreateBucketConfiguration.LocationConstraint") asse...
explode_data.jsonl/770
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 171 }
[ 2830, 3393, 11598, 6334, 4707, 17890, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 274, 18, 7121, 24144, 20674, 340, 17430, 1669, 609, 82, 18, 7251, 36018, 2505, 515, 197, 12791, 11152, 25, 31521, 6431, 445, 30410, 4461, 197, 532, 24395, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccKeycloakAttributeToRoleIdentityProviderMapper_createAfterManualDestroy(t *testing.T) { t.Parallel() var mapper = &keycloak.IdentityProviderMapper{} mapperName := acctest.RandomWithPrefix("tf-acc") alias := acctest.RandomWithPrefix("tf-acc") role := acctest.RandomWithPrefix("tf-acc") claimName := acct...
explode_data.jsonl/33577
{ "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, 14603, 1592, 88751, 3907, 1249, 9030, 18558, 5179, 10989, 8657, 6025, 52092, 14245, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2405, 24501, 284, 609, 792, 88751, 24423, 5179, 10989, 31483, 2109, 3106, 675, 1669, 161...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLocateBirthdayBlock(t *testing.T) { t.Parallel() // We'll use test chains of 30 blocks with a duration between two // consecutive blocks being slightly greater than the largest margin // allowed by locateBirthdayBlock. Doing so lets us test the method more // effectively as there is only one block within...
explode_data.jsonl/2033
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 856 }
[ 2830, 3393, 9152, 349, 76561, 4713, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 1205, 3278, 990, 1273, 26179, 315, 220, 18, 15, 10010, 448, 264, 8090, 1948, 1378, 198, 197, 322, 23921, 10010, 1660, 10078, 7046, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJvInvalidWithMessage_object(t *testing.T) { jv := jq.JvInvalidWithMessage(jq.JvObject()) if jv.IsValid() == true { t.Errorf("IsValid() returned true for JvInvalidWithMessage()") } msg := jv.Copy().GetInvalidMessage() if msg.Kind() != jq.JvKindObject { t.Errorf("JvInvalidWithMessage().GetInvalidMessag...
explode_data.jsonl/38762
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 235 }
[ 2830, 3393, 41, 85, 7928, 2354, 2052, 5314, 1155, 353, 8840, 836, 8, 341, 12428, 85, 1669, 44648, 3503, 85, 7928, 2354, 2052, 96887, 3503, 85, 1190, 2398, 743, 502, 85, 28992, 368, 621, 830, 341, 197, 3244, 13080, 445, 55470, 368, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestUTF16ToUTF8(t *testing.T) { input := "abc白鵬翔\u145A6" utf16Bytes := toUTF16Bytes(input) outputBuf := &bytes.Buffer{} err := UTF16ToUTF8Bytes(utf16Bytes, outputBuf) if err != nil { t.Fatal(err) } assert.Equal(t, []byte(input), outputBuf.Bytes()) }
explode_data.jsonl/32605
{ "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, 8561, 16, 21, 1249, 8561, 23, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 330, 13683, 99243, 165, 44706, 102482, 3770, 16, 19, 20, 32, 21, 698, 197, 4762, 16, 21, 7078, 1669, 311, 8561, 16, 21, 7078, 5384, 692, 21170, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOpen_Check(t *testing.T) { path := tempfile() defer os.RemoveAll(path) db, err := bolt.Open(path, 0666, nil) if err != nil { t.Fatal(err) } if err = db.View(func(tx *bolt.Tx) error { return <-tx.Check() }); err != nil { t.Fatal(err) } if err = db.Close(); err != nil { t.Fatal(err) } db, err =...
explode_data.jsonl/27465
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 245 }
[ 2830, 3393, 5002, 28188, 1155, 353, 8840, 836, 8, 341, 26781, 1669, 54819, 741, 16867, 2643, 84427, 5581, 692, 20939, 11, 1848, 1669, 31842, 12953, 5581, 11, 220, 15, 21, 21, 21, 11, 2092, 340, 743, 1848, 961, 2092, 341, 197, 3244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFileServerZeroByte(t *testing.T) { defer afterTest(t) ts := httptest.NewServer(FileServer(Dir("."))) defer ts.Close() res, err := Get(ts.URL + "/..\x00") if err != nil { t.Fatal(err) } b, err := ioutil.ReadAll(res.Body) if err != nil { t.Fatal("reading Body:", err) } if res.StatusCode == 200 { ...
explode_data.jsonl/48236
{ "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, 1703, 5475, 17999, 7153, 1155, 353, 8840, 836, 8, 341, 16867, 1283, 2271, 1155, 340, 57441, 1669, 54320, 70334, 7121, 5475, 19821, 5475, 5432, 404, 73133, 5929, 16867, 10591, 10421, 2822, 10202, 11, 1848, 1669, 2126, 35864, 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...
4
func TestEmptyAll(t *testing.T) { t.Parallel() slice := ring.New(15) all := slice.All() length := len(all) if length != 0 { t.Error("Non-empty array returned for empty ring") } }
explode_data.jsonl/14676
{ "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, 3522, 2403, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1903, 4754, 1669, 10058, 7121, 7, 16, 20, 340, 50960, 1669, 15983, 16764, 741, 49046, 1669, 2422, 20388, 340, 743, 3084, 961, 220, 15, 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 ]
2
func TestNewAES256Key(t *testing.T) { { data := []byte("this is test this is test key") key, err := NewAES256Key(data) assert.Nil(t, err) assert.Equal(t, key.Key, data) err = key.Init() assert.Nil(t, err) err = key.Validate() assert.Nil(t, err) } { //invalid lenth _, err := NewAES256Key([]byt...
explode_data.jsonl/51288
{ "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, 3564, 69168, 17, 20, 21, 1592, 1155, 353, 8840, 836, 8, 1476, 197, 515, 197, 8924, 1669, 3056, 3782, 445, 574, 374, 1273, 262, 419, 374, 1273, 1376, 1138, 197, 23634, 11, 1848, 1669, 1532, 69168, 17, 20, 21, 1592, 2592, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSingleArrayValue(t *testing.T) { var jsonStr = `{"key": "value","key2":[1,2,3,4,"A"]}` var result = Get(jsonStr, "key") var array = result.Array() if len(array) != 1 { t.Fatal("array is empty") } if array[0].String() != "value" { t.Fatalf("got %s, should be %s", array[0].String(), "value") } array...
explode_data.jsonl/43438
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 10888, 1857, 1130, 1155, 353, 8840, 836, 8, 341, 2405, 2951, 2580, 284, 1565, 4913, 792, 788, 330, 957, 2198, 792, 17, 8899, 16, 11, 17, 11, 18, 11, 19, 1335, 32, 1341, 31257, 2405, 1102, 284, 2126, 9304, 2580, 11, 330...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestInt32_SymmetricDifference(t *testing.T) { testcases := []struct { name string s Int32 t Int32 expect []int32 }{ { name: "test Int32 SymmetricDifference, s is empty", s: Int32{}, t: map[int32]struct{}{2: {}, 9: {}, 4: {}}, expect: []int32{2, 9, 4}, }, { nam...
explode_data.jsonl/62334
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 846 }
[ 2830, 3393, 1072, 18, 17, 1098, 29459, 62707, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 1903, 414, 1333, 18, 17, 198, 197, 3244, 414, 1333, 18, 17, 198, 197, 24952, 3056, 396,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransactionActions_Post(t *testing.T) { ht := StartHTTPTest(t, "base") defer ht.Finish() form := url.Values{"tx": []string{"AAAAAGL8HQvQkbK2HA3WVjRrKmjX00fG8sLI7m0ERwJW/AX3AAAAZAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAArqN6LeOagjxMaUP96Bzfs9e0corNZXzBWJkFoK7kvkwAAAAAO5rKAAAAAAAAAAABVvwF9wAAAECDzqvkQBQoNAJ...
explode_data.jsonl/18314
{ "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, 8070, 12948, 66726, 1155, 353, 8840, 836, 8, 341, 197, 426, 1669, 5145, 9230, 2271, 1155, 11, 330, 3152, 1138, 16867, 34323, 991, 18176, 2822, 37410, 1669, 2515, 35145, 4913, 3998, 788, 3056, 917, 4913, 25699, 1890, 43, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewPrivateKey(t *testing.T) { tests := []struct { name string }{ {"Test Private Key Generation Succesful"}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { _, err := crypto.NewPrivateKey() if err != nil { t.Errorf("NewPrivateKey() error = %v", err) return } }) } }
explode_data.jsonl/6958
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 139 }
[ 2830, 3393, 3564, 75981, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 59403, 197, 197, 4913, 2271, 9679, 5309, 23470, 88179, 288, 1262, 7115, 197, 532, 2023, 8358, 17853, 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...
2
func TestMatDCT(t *testing.T) { src := NewMatWithSize(64, 64, MatTypeCV32F) dst := NewMat() DCT(src, &dst, DftForward) if dst.Empty() { t.Error("TestMatDCT dst should not be empty.") } }
explode_data.jsonl/81710
{ "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, 11575, 35, 1162, 1155, 353, 8840, 836, 8, 341, 41144, 1669, 1532, 11575, 2354, 1695, 7, 21, 19, 11, 220, 21, 19, 11, 6867, 929, 19589, 18, 17, 37, 340, 52051, 1669, 1532, 11575, 2822, 10957, 1162, 14705, 11, 609, 15658, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHeartbeatNoCert(t *testing.T) { gd, err := startDispatcher(DefaultConfig()) assert.NoError(t, err) defer gd.Close() // heartbeat without correct SessionID should fail resp, err := gd.Clients[2].Heartbeat(context.Background(), &api.HeartbeatRequest{}) assert.Nil(t, resp) assert.EqualError(t, err, "rpc e...
explode_data.jsonl/13845
{ "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, 45384, 22227, 2753, 36934, 1155, 353, 8840, 836, 8, 341, 3174, 67, 11, 1848, 1669, 1191, 21839, 87874, 2648, 2398, 6948, 35699, 1155, 11, 1848, 340, 16867, 32630, 10421, 2822, 197, 322, 52105, 2041, 4396, 9164, 915, 1265, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetSetOneOfFields(t *testing.T) { fd, err := desc.LoadFileDescriptor("desc_test2.proto") testutil.Ok(t, err) md := fd.FindSymbol("testprotos.Frobnitz").(*desc.MessageDescriptor) dm := NewMessage(md) fdc1 := md.FindFieldByName("c1") fdc2 := md.FindFieldByName("c2") fdg1 := md.FindFieldByName("g1") fdg2...
explode_data.jsonl/40961
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1017 }
[ 2830, 3393, 1949, 1649, 3966, 2124, 8941, 1155, 353, 8840, 836, 8, 341, 61721, 11, 1848, 1669, 6560, 13969, 1703, 11709, 445, 8614, 4452, 17, 57322, 1138, 18185, 1314, 54282, 1155, 11, 1848, 340, 84374, 1669, 12414, 9998, 15090, 445, 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...
6
func TestGinIpRateLimiter(t *testing.T) { key := fmt.Sprintf("%s:%s", testPrefix, testIP2) defer cleanRedisKey(key) limiter := NewIPRateLimiter(&Rate{ Window: 2 * time.Second, Limit: 1, }, testPrefix) ginHandleFunc := GinRateLimit(limiter, []string{"GET"}) c, _ := gin.CreateTestContext(httptest.NewRecorder()...
explode_data.jsonl/8108
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 38, 258, 23378, 11564, 43, 17700, 1155, 353, 8840, 836, 8, 341, 23634, 1669, 8879, 17305, 4430, 82, 7533, 82, 497, 1273, 14335, 11, 1273, 3298, 17, 340, 16867, 4240, 48137, 1592, 4857, 340, 197, 4659, 2015, 1669, 1532, 329...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBigRatAdd(t *testing.T) { gox.SetDebug(gox.DbgFlagAll) gopClTest(t, ` var x = 3 + 1/2r var y = x + 100 var z = 100 + y `, `package main import ( builtin "github.com/goplus/gop/builtin" big "math/big" ) var x = builtin.Gop_bigrat_Init__2(big.NewRat(7, 2)) var y = x.Gop_Add(builtin.Gop_bigrat_Init__0(100))...
explode_data.jsonl/73619
{ "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, 15636, 49, 266, 2212, 1155, 353, 8840, 836, 8, 341, 3174, 5131, 4202, 7939, 3268, 5131, 909, 12220, 12135, 2403, 340, 3174, 453, 5066, 2271, 1155, 11, 22074, 947, 856, 284, 220, 18, 488, 220, 16, 14, 17, 81, 198, 947, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRCIndexMerge(t *testing.T) { store, clean := createMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk2 := testkit.NewTestKit(t, store) tk.MustExec("use test") tk2.MustExec("use test") tk.MustExec("drop table if exists t") tk.MustExec(`create table t (id int primary key, v int, a...
explode_data.jsonl/12483
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 512 }
[ 2830, 3393, 7380, 1552, 52096, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1855, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 17, 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...
1
func TestReplaceProwConfig(t *testing.T) { t.Parallel() o := TestOptions{} o.Setup() err := o.AddProwConfig() assert.NoError(t, err) // now modify the cm cm, err := o.KubeClient.CoreV1().ConfigMaps(o.NS).Get("config", metav1.GetOptions{}) assert.NoError(t, err) prowConfig := &config.Config{} yaml.Unmarsha...
explode_data.jsonl/70869
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 601 }
[ 2830, 3393, 23107, 47, 651, 2648, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 22229, 1669, 3393, 3798, 16094, 22229, 39820, 2822, 9859, 1669, 297, 1904, 47, 651, 2648, 741, 6948, 35699, 1155, 11, 1848, 692, 197, 322, 1431, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestClient_DestroyExternalInitiator_NotFound(t *testing.T) { t.Parallel() app := startNewApplication(t) client, r := app.NewClientAndRenderer() set := flag.NewFlagSet("test", 0) set.Parse([]string{"bogus-ID"}) c := cli.NewContext(nil, set, nil) assert.Error(t, client.DeleteExternalInitiator(c)) assert.Em...
explode_data.jsonl/5268
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 2959, 79266, 25913, 3803, 36122, 60816, 6650, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 28236, 1669, 1191, 3564, 4988, 1155, 340, 25291, 11, 435, 1669, 906, 7121, 2959, 3036, 11541, 2822, 8196, 1669, 5181, 7121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewRsaPublicMarshalPemSucceeds(t *testing.T) { // Setup rsaKey, err := rsa.GenerateKey(rand.Reader, 2048) require.NoError(t, err) jwk, err := JwkFromPublicKey(rsaKey.Public(), []jose.KeyOps{jose.KeyOpsVerify}, nil) require.NoError(t, err) k, err := NewVerificationKey(jwk) require.NoError(t, err) // Ac...
explode_data.jsonl/20930
{ "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, 3564, 49, 9081, 12676, 55438, 47, 336, 50, 29264, 82, 1155, 353, 8840, 836, 8, 341, 197, 322, 18626, 198, 41231, 64, 1592, 11, 1848, 1669, 68570, 57582, 1592, 37595, 47431, 11, 220, 17, 15, 19, 23, 340, 17957, 35699, 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...
1
func TestEmptyFieldsAndRegex(t *testing.T) { boolFoo := true var regexpFoo = Regexp{ Regexp: regexp.MustCompile("^(?:^(foo1|foo2|baz)$)$"), original: "^(foo1|foo2|baz)$", } var expectedConf = Config{ Global: &GlobalConfig{ HTTPConfig: &commoncfg.HTTPClientConfig{}, ResolveTimeout: model.Dura...
explode_data.jsonl/72918
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1183 }
[ 2830, 3393, 3522, 8941, 3036, 32464, 1155, 353, 8840, 836, 8, 341, 7562, 40923, 1669, 830, 198, 2405, 41877, 40923, 284, 3184, 4580, 515, 197, 197, 3477, 4580, 25, 256, 41877, 98626, 445, 13268, 4820, 13268, 7975, 16, 91, 7975, 17, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestFindMoreStrictAllPasswords(t *testing.T) { t.Run("check FindMoreStrictAllPasswords", func(t *testing.T) { got := notLargerGroupMatching(112233) want := true if got != want { log.Fatalf("want1: %t, got: %t", want, got) } got = notLargerGroupMatching(123444) want = false if got != want { lo...
explode_data.jsonl/28615
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 388 }
[ 2830, 3393, 9885, 7661, 41857, 2403, 84546, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 2028, 7379, 7661, 41857, 2403, 84546, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3174, 354, 1669, 537, 43, 41776, 2808, 64430, 7, 16, 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...
6
func TestECDSAPublicKeyFromPrivateKey(t *testing.T) { t.Parallel() provider, _, cleanup := currentTestConfig.Provider(t) defer cleanup() k, err := provider.KeyGen(&bccsp.ECDSAKeyGenOpts{Temporary: false}) if err != nil { t.Fatalf("Failed generating ECDSA key [%s]", err) } pk, err := k.PublicKey() if err != ...
explode_data.jsonl/29258
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 7498, 5936, 2537, 475, 1592, 3830, 75981, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 19979, 11, 8358, 21290, 1669, 1482, 2271, 2648, 36208, 1155, 340, 16867, 21290, 2822, 16463, 11, 1848, 1669, 9109, 9610, 99...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMarshalCustomCommented(t *testing.T) { type TypeB struct { AttrA string `toml:"user" disable:"true"` AttrB string `toml:"password" disable:"true"` } type TypeA struct { TypeB TypeB `toml:"postgres"` } config := TypeA{TypeB{AttrA: "avalue", AttrB: "bvalue"}} var buf bytes.Buffer err := NewEncoder(...
explode_data.jsonl/46334
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 243 }
[ 2830, 3393, 55438, 10268, 10677, 291, 1155, 353, 8840, 836, 8, 341, 13158, 3990, 33, 2036, 341, 197, 197, 13371, 32, 914, 1565, 37401, 75, 2974, 872, 1, 11156, 2974, 1866, 8805, 197, 197, 13371, 33, 914, 1565, 37401, 75, 2974, 3833, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMarshalerEscaping(t *testing.T) { testtype.SkipUnlessTestType(t, testtype.UnitTestType) var c C1 want := `"\u003c\u0026\u003e"` b, err := Marshal(c) if err != nil { t.Fatalf("Marshal(c1): %v", err) } if got := string(b); got != want { t.Errorf("Marshal(c1) = %#q, want %#q", got, want) } var ct C...
explode_data.jsonl/4567
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 254 }
[ 2830, 3393, 55438, 261, 36121, 14216, 1155, 353, 8840, 836, 8, 341, 18185, 1313, 57776, 35587, 2271, 929, 1155, 11, 1273, 1313, 25159, 2271, 929, 692, 2405, 272, 356, 16, 198, 50780, 1669, 1565, 11934, 84, 15, 15, 18, 66, 3770, 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 TestRequestWithUserAgent(t *testing.T) { const gitalyUserAgent = "gitaly/13.5.0" requests := []testserver.TestRequestHandler{ { Path: "/api/v4/internal/default_user_agent", Handler: func(w http.ResponseWriter, r *http.Request) { require.Equal(t, defaultUserAgent, r.UserAgent()) }, }, { Path...
explode_data.jsonl/23659
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 299 }
[ 2830, 3393, 1900, 2354, 1474, 16810, 1155, 353, 8840, 836, 8, 341, 4777, 342, 2174, 88, 1474, 16810, 284, 330, 70, 2174, 88, 14, 16, 18, 13, 20, 13, 15, 698, 23555, 82, 1669, 3056, 1944, 4030, 8787, 1900, 3050, 515, 197, 197, 515,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFormatTemplate(t *testing.T) { tests := []struct { name string template string tokens map[string]string want string errPart string }{ { "valid", "{{DB_NAME}}_hello_{{LOCATION}}", map[string]string{ "{{DB_NAME}}": "db1", "{{LOCATION}}": "us-central1", }, "db1_hel...
explode_data.jsonl/10285
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 517 }
[ 2830, 3393, 4061, 7275, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 22832, 914, 198, 197, 3244, 9713, 256, 2415, 14032, 30953, 198, 197, 50780, 257, 914, 198, 197, 9859, 5800, 220, 914, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestFileRemoveAll(t *testing.T) { r := fstest.NewRun(t) defer r.Finalise() vfs, file, _ := fileCreate(t, r, vfscommon.CacheModeOff) err := file.RemoveAll() require.NoError(t, err) fstest.CheckItems(t, r.Fremote) vfs.Opt.ReadOnly = true err = file.RemoveAll() assert.Equal(t, EROFS, err) }
explode_data.jsonl/9737
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 1703, 13021, 2403, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 48434, 477, 7121, 6727, 1155, 340, 16867, 435, 991, 977, 1064, 741, 5195, 3848, 11, 1034, 11, 716, 1669, 1034, 4021, 1155, 11, 435, 11, 92941, 5464, 46130, 3636,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImageConditions(t *testing.T) { rev := &Image{} foo := &ImageCondition{ Type: "Foo", Status: "True", } bar := &ImageCondition{ Type: "Bar", Status: "True", } // Add a new condition. rev.Status.SetCondition(foo) if got, want := len(rev.Status.Conditions), 1; got != want { t.Fatalf("Unexp...
explode_data.jsonl/20811
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 508 }
[ 2830, 3393, 1906, 35435, 1155, 353, 8840, 836, 8, 341, 197, 7282, 1669, 609, 1906, 16094, 197, 7975, 1669, 609, 1906, 10547, 515, 197, 27725, 25, 256, 330, 40923, 756, 197, 58321, 25, 330, 2514, 756, 197, 532, 90709, 1669, 609, 1906, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func Test_removeUnspecifiedValueDoesntContainAny(t *testing.T) { var values = make([]*gendoc.EnumValue, 0) for i := 0; i < 5; i++ { values = append(values, &gendoc.EnumValue{ Name: fmt.Sprintf("TEST_%d", i), }) } var fixture = gendoc.Enum{ Values: values, } removeUnspecifiedValue(&fixture) require.Le...
explode_data.jsonl/2456
{ "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, 18193, 1806, 53434, 1130, 21468, 406, 46522, 8610, 1155, 353, 8840, 836, 8, 341, 2405, 2750, 284, 1281, 85288, 57064, 509, 43225, 1130, 11, 220, 15, 692, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 20, 26, 600, 1027, 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...
2
func TestEqualLengths(t *testing.T) { t.Parallel() s1 := []float64{1, 2, 3, 4} s2 := []float64{1, 2, 3, 4} s3 := []float64{1, 2, 3} if !EqualLengths(s1, s2) { t.Errorf("Equal lengths returned as unequal") } if EqualLengths(s1, s3) { t.Errorf("Unequal lengths returned as equal") } if !EqualLengths(s1) { t...
explode_data.jsonl/1223
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 196 }
[ 2830, 3393, 2993, 4373, 82, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1903, 16, 1669, 3056, 3649, 21, 19, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 532, 1903, 17, 1669, 3056, 3649, 21, 19, 90, 16, 11, 220, 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...
5
func TestConnectionDetails(t *testing.T) { name := "gke-cluster" endpoint := "endpoint" username := "username" password := "password" clusterCA, _ := base64.StdEncoding.DecodeString("clusterCA") clientCert, _ := base64.StdEncoding.DecodeString("clientCert") clientKey, _ := base64.StdEncoding.DecodeString("client...
explode_data.jsonl/69617
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 873 }
[ 2830, 3393, 4526, 7799, 1155, 353, 8840, 836, 8, 341, 11609, 1669, 330, 70, 440, 93208, 698, 6246, 2768, 1669, 330, 32540, 698, 72358, 1669, 330, 5113, 698, 58199, 1669, 330, 3833, 698, 197, 18855, 5049, 11, 716, 1669, 2331, 21, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestTrailingRawToken(t *testing.T) { input := `<FOO></FOO> ` d := NewDecoder(strings.NewReader(input)) var err error for _, err = d.RawToken(); err == nil; _, err = d.RawToken() { } if err != io.EOF { t.Fatalf("d.RawToken() = _, %v, want _, io.EOF", err) } }
explode_data.jsonl/48621
{ "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, 1282, 14277, 20015, 3323, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 30586, 3788, 46, 1472, 3788, 46, 29, 220, 22074, 2698, 1669, 1532, 20732, 51442, 68587, 5384, 1171, 2405, 1848, 1465, 198, 2023, 8358, 1848, 284, 294, 5057...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWriteConfigHCL(t *testing.T) { v := New() fs := afero.NewMemMapFs() v.SetFs(fs) v.SetConfigName("c") v.SetConfigType("hcl") err := v.ReadConfig(bytes.NewBuffer(hclExample)) if err != nil { t.Fatal(err) } if err := v.WriteConfigAs("c.hcl"); err != nil { t.Fatal(err) } read, err := afero.ReadFile(...
explode_data.jsonl/5582
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 194 }
[ 2830, 3393, 7985, 2648, 39, 3140, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 1532, 741, 53584, 1669, 264, 802, 78, 7121, 18816, 2227, 48300, 741, 5195, 4202, 48300, 31856, 340, 5195, 4202, 2648, 675, 445, 66, 1138, 5195, 4202, 2648, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSplitPath(t *testing.T) { input := []string{"1", "2", "3", "4", "5"} prefix := filepath.Join(input[0:3]...) full := filepath.Join(input...) result := SplitPath(full, prefix) expected := filepath.Join(input[3:]...) if !(result == expected) { t.Errorf("expected %v, result %v", expected, result) } }
explode_data.jsonl/7249
{ "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, 20193, 1820, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 3056, 917, 4913, 16, 497, 330, 17, 497, 330, 18, 497, 330, 19, 497, 330, 20, 16707, 3223, 5060, 1669, 26054, 22363, 5384, 58, 15, 25, 18, 60, 31218, 94042, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestConflicts(t *testing.T) { t.Parallel() testCases := []struct { name string // setup sets up the required dependencies for each test. It // returns the transaction we'll check for conflicts and its // expected unique conflicts. setup func(ctx *testContext) (*asiutil.Tx, []*asiutil.Tx) }{ { /...
explode_data.jsonl/53803
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1755 }
[ 2830, 3393, 15578, 56445, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 914, 271, 197, 197, 322, 6505, 7289, 705, 279, 2567, 19543, 369, 1817, 1273, 13, 1084, 198, 197, 197, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetSubaccounts(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip("skipping test, api keys not set") } _, err := f.GetSubaccounts(context.Background()) if err != nil { t.Error(err) } }
explode_data.jsonl/15245
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 89 }
[ 2830, 3393, 1949, 3136, 26206, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 11, 6330, 6894, 537, 738, 1138, 197, 532, 197, 6878, 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 ]
3
func TestBuffer_MultipleBatch(t *testing.T) { b := setup(NewBuffer("test", 10)) b.Add(MetricTime(1)) b.Add(MetricTime(2)) b.Add(MetricTime(3)) b.Add(MetricTime(4)) b.Add(MetricTime(5)) b.Add(MetricTime(6)) batch := b.Batch(5) testutil.RequireMetricsEqual(t, []telegraf.Metric{ MetricTime(6), MetricTime(...
explode_data.jsonl/17672
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 262 }
[ 2830, 3393, 4095, 1245, 12229, 21074, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 6505, 35063, 4095, 445, 1944, 497, 220, 16, 15, 1171, 2233, 1904, 3189, 16340, 1462, 7, 16, 1171, 2233, 1904, 3189, 16340, 1462, 7, 17, 1171, 2233, 1904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNotFoundWire(t *testing.T) { // Block 203707 hash. hashStr := "3264bc2ac36a60840790ba1d475d01367e7c723da941069e9dc" blockHash, err := chainhash.NewHashFromStr(hashStr) if err != nil { t.Errorf("NewHashFromStr: %v", err) } // Transation 1 of Block 203707 hash. hashStr = "d28a3dc7392bf00a9855ee93dd9a81...
explode_data.jsonl/62569
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1283 }
[ 2830, 3393, 10372, 37845, 1155, 353, 8840, 836, 8, 341, 197, 322, 8362, 220, 17, 15, 18, 22, 15, 22, 5175, 624, 50333, 2580, 1669, 330, 18, 17, 21, 19, 8904, 17, 580, 18, 21, 64, 21, 15, 23, 19, 15, 22, 24, 15, 4645, 16, 67,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExtractConsent(t *testing.T) { tests := []struct { description string giveUser *openrtb.User wantConsent string }{ { description: "User Ext Consent is not empty", giveUser: &openrtb.User{Ext: json.RawMessage(`{"consent": "BOS2bx5OS2bx5ABABBAAABoAAAAAFA"}`)}, wantConsent: "BOS2bx5OS2bx5...
explode_data.jsonl/20462
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 460 }
[ 2830, 3393, 28959, 15220, 306, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 914, 198, 197, 3174, 533, 1474, 262, 353, 2508, 3342, 65, 7344, 198, 197, 50780, 15220, 306, 914, 198, 197, 59403, 197, 197, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGraphQLHTTPRequestHandler_ExtraVariables(t *testing.T) { handler := NewGraphqlHTTPHandlerFunc(nil, nil, nil).(*GraphQLHTTPRequestHandler) t.Run("should create extra variables successfully", func(t *testing.T) { req, err := http.NewRequest(http.MethodGet, "http://localhost:8080/path", nil) require.NoErro...
explode_data.jsonl/75428
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 278 }
[ 2830, 3393, 88637, 63765, 3050, 62, 11612, 22678, 1155, 353, 8840, 836, 8, 341, 53326, 1669, 1532, 11212, 1470, 9230, 3050, 9626, 27907, 11, 2092, 11, 2092, 568, 4071, 88637, 63765, 3050, 692, 3244, 16708, 445, 5445, 1855, 4960, 7332, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHttpStatusForError(t *testing.T) { testCases := []struct { name string input error expectedStatus int }{ { name: "normal_error", input: errors.New("some error message"), expectedStatus: http.StatusInternalServerError, }, { name: "httpError", in...
explode_data.jsonl/66275
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 325 }
[ 2830, 3393, 86106, 2461, 1454, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 1843, 914, 198, 197, 22427, 688, 1465, 198, 197, 42400, 2522, 526, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 1843, 330...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestLongestValidParentheses(t *testing.T) { tests := []struct { s string output int }{ {"(()", 2}, {")()())", 4}, } for _, test := range tests { ret := longestValidParentheses.LongestValidParentheses(test.s) if ret != test.output { t.Errorf("Got %d for input %s; expected %d", ret, test.s, ...
explode_data.jsonl/39873
{ "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, 6583, 477, 4088, 83997, 38322, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 1903, 414, 914, 198, 197, 21170, 526, 198, 197, 59403, 197, 197, 4913, 5065, 497, 220, 17, 1583, 197, 197, 90, 899, 368, 214...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSync(t *testing.T) { flushDB() setupRouter() // Fill database with messages msg_count := 10 connection_count := 1000 for i := 1; i <= connection_count; i++ { floodRouter(i, "sync_test", "placeholder", msg_count) } // Make client connections finished := make(chan *websocket.Conn) for i := 1; i <= co...
explode_data.jsonl/16043
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 306 }
[ 2830, 3393, 12154, 1155, 353, 8840, 836, 8, 341, 1166, 34604, 3506, 741, 84571, 9523, 741, 197, 322, 21979, 4625, 448, 6605, 198, 21169, 3180, 1669, 220, 16, 15, 198, 54590, 3180, 1669, 220, 16, 15, 15, 15, 198, 2023, 600, 1669, 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 TestPRSignedByUnmarshalJSON(t *testing.T) { keyDataTests := policyJSONUmarshallerTests{ newDest: func() json.Unmarshaler { return &prSignedBy{} }, newValidObject: func() (interface{}, error) { return NewPRSignedByKeyData(SBKeyTypeGPGKeys, []byte("abc"), NewPRMMatchRepoDigestOrExact()) }, otherJSONParse...
explode_data.jsonl/36505
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1168 }
[ 2830, 3393, 6480, 49312, 1359, 1806, 27121, 5370, 1155, 353, 8840, 836, 8, 341, 23634, 1043, 18200, 1669, 4842, 5370, 52, 52541, 18200, 515, 197, 8638, 34830, 25, 2915, 368, 2951, 38097, 261, 314, 470, 609, 649, 49312, 1359, 6257, 1153,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListLTBalances(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip() } _, err := f.ListLTBalances(context.Background()) if err != nil { t.Error(err) } }
explode_data.jsonl/15200
{ "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, 852, 27404, 37889, 3020, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 341, 197, 3244, 57776, 741, 197, 532, 197, 6878, 1848, 1669, 282, 5814, 27404, 37889, 3020, 5378, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_MinimumTotal(t *testing.T) { testCases := []struct { Triangle [][]int Expected int }{ { [][]int{ {2}, {3, 4}, {6, 5, 7}, {4, 1, 8, 3}, }, 11, }, { [][]int{ {2}, {1, 4}, {6, -5, 7}, {4, 1, 8, 3}, }, -1, }, { [][]int{ {-10}, }, -10, ...
explode_data.jsonl/24906
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 321 }
[ 2830, 3393, 62122, 3295, 7595, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 10261, 84191, 52931, 396, 198, 197, 197, 18896, 526, 198, 197, 59403, 197, 197, 515, 298, 197, 16613, 396, 515, 571, 197, 90, 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 TestResourceMetricsSlice_CopyTo(t *testing.T) { dest := NewResourceMetricsSlice() // Test CopyTo to empty NewResourceMetricsSlice().CopyTo(dest) assert.EqualValues(t, NewResourceMetricsSlice(), dest) // Test CopyTo larger slice generateTestResourceMetricsSlice().CopyTo(dest) assert.EqualValues(t, generateT...
explode_data.jsonl/19491
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 161 }
[ 2830, 3393, 4783, 27328, 33236, 77637, 1249, 1155, 353, 8840, 836, 8, 341, 49616, 1669, 1532, 4783, 27328, 33236, 741, 197, 322, 3393, 14540, 1249, 311, 4287, 198, 197, 3564, 4783, 27328, 33236, 1005, 12106, 1249, 27010, 340, 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 TestGetLeavesByHash(t *testing.T) { ctx := context.Background() // Create fake leaf as if it had been sequenced cleanTestDB(t, db) tree := createTreeOrPanic(db, testonly.LogTree) s := NewLogStorage(db, nil) data := []byte("some data") createFakeLeaf(ctx, t, db, tree.TreeId, dummyRawHash, dummyHash, data, ...
explode_data.jsonl/30692
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 297 }
[ 2830, 3393, 1949, 2304, 4693, 1359, 6370, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 197, 322, 4230, 12418, 15933, 438, 421, 432, 1030, 1012, 11256, 5767, 198, 1444, 2675, 2271, 3506, 1155, 11, 2927, 340, 51968, 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...
3
func Test_main_noArgsCompileErr(t *testing.T) { stdinBak := stdin defer func() { stdin = stdinBak }() var err error stdin, err = os.Open("test/0002.gcss") if err != nil { t.Errorf("error occurred [error: %q]", err.Error()) } resetForTesting(nil) os.Args = []string{os.Args[0]} main() }
explode_data.jsonl/70916
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 11027, 6536, 4117, 46126, 7747, 1155, 353, 8840, 836, 8, 341, 6736, 258, 33, 585, 1669, 31369, 271, 16867, 2915, 368, 341, 197, 6736, 258, 284, 31369, 33, 585, 198, 197, 66816, 2405, 1848, 1465, 271, 6736, 258, 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 TestVCDClient_Authenticate(t *testing.T) { config, err := GetConfigStruct() if err != nil { t.Fatalf("err: %v", err) } client, err := GetTestVCDFromYaml(config) if err != nil { t.Fatalf("err: %v", err) } err = client.Authenticate(config.Provider.User, config.Provider.Password, config.Provider.SysOrg) i...
explode_data.jsonl/3520
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 53, 6484, 2959, 1566, 940, 22661, 1155, 353, 8840, 836, 8, 341, 25873, 11, 1848, 1669, 2126, 2648, 9422, 741, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 615, 25, 1018, 85, 497, 1848, 340, 197, 532, 25291, 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...
4
func TestClientSetRootCertificateFromStringErrorTls(t *testing.T) { client := NewWithClient(&http.Client{}) client.outputLogTo(ioutil.Discard) rootPemData, err := ioutil.ReadFile(filepath.Join(getTestDataPath(), "sample-root.pem")) assertNil(t, err) rt := &CustomRoundTripper{} client.SetTransport(rt) transport,...
explode_data.jsonl/39345
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 178 }
[ 2830, 3393, 2959, 1649, 8439, 33202, 44491, 1454, 51, 4730, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 1532, 2354, 2959, 2099, 1254, 11716, 37790, 25291, 13413, 2201, 1249, 1956, 30158, 909, 47560, 692, 33698, 47, 336, 1043, 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...
1
func TestNumDataCodewords(t *testing.T) { cases := [][3]int{ {3, 1, 44}, {3, 2, 34}, {3, 3, 26}, {6, 0, 136}, {7, 0, 156}, {9, 0, 232}, {9, 1, 182}, {12, 3, 158}, {15, 0, 523}, {16, 2, 325}, {19, 3, 341}, {21, 0, 932}, {22, 0, 1006}, {22, 1, 782}, {22, 3, 442}, {24, 0, 1174}, {24, 3, ...
explode_data.jsonl/54180
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 420 }
[ 2830, 3393, 4651, 1043, 63691, 365, 2260, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 508, 1457, 18, 63025, 515, 197, 197, 90, 18, 11, 220, 16, 11, 220, 19, 19, 1583, 197, 197, 90, 18, 11, 220, 17, 11, 220, 18, 19, 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...
1
func TestOnlyLocalNodePortsNoClusterCIDR(t *testing.T) { ipt := iptablestest.NewFake() fp := NewFakeProxier(ipt) // set cluster CIDR to empty before test fp.clusterCIDR = "" onlyLocalNodePorts(t, fp, ipt) }
explode_data.jsonl/9297
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 87 }
[ 2830, 3393, 7308, 7319, 1955, 68273, 2753, 28678, 54146, 49, 1155, 353, 8840, 836, 8, 341, 8230, 417, 1669, 66068, 480, 267, 477, 7121, 52317, 741, 65219, 1669, 1532, 52317, 1336, 87, 1268, 1956, 417, 340, 197, 322, 738, 10652, 68212, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidVersion(t *testing.T) { ctx, keeper := createTestInput(t) require.True(t, keeper.IsValidVersion(ctx, 1)) require.NotPanics(t, func() { keeper.SetLastFailedVersion(ctx, 1) }) require.True(t, keeper.IsValidVersion(ctx, 2)) }
explode_data.jsonl/74389
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 4088, 5637, 1155, 353, 8840, 836, 8, 341, 20985, 11, 53416, 1669, 1855, 2271, 2505, 1155, 692, 17957, 32443, 1155, 11, 53416, 28992, 5637, 7502, 11, 220, 16, 4390, 17957, 15000, 35693, 1211, 1155, 11, 2915, 368, 314, 53416, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvertOrdering(t *testing.T) { cases := []struct { name string comparison comparison result comparison focus bool // if true, run only tests with focus set to true }{ { name: "compareLessThan", comparison: compareLessThan, result: compareGreaterThan, }, { na...
explode_data.jsonl/68891
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 454 }
[ 2830, 3393, 641, 1621, 4431, 287, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 32810, 35542, 12313, 198, 197, 9559, 257, 12313, 198, 197, 1166, 3384, 414, 1807, 442, 421, 830, 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 TestForbidden(t *testing.T) { req, rec := setup() req.SetBasicAuth(user+"0", pass) wraph(makeFoundAPI(t)).ServeHTTP(rec, req) if rec.Code != http.StatusForbidden { t.Error("wrong status code:", rec.Code) } }
explode_data.jsonl/21810
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 69115, 1155, 353, 8840, 836, 8, 341, 24395, 11, 1395, 1669, 6505, 741, 24395, 4202, 15944, 5087, 4277, 5172, 15, 497, 1494, 692, 6692, 1935, 36944, 6650, 7082, 1155, 4579, 60421, 9230, 20635, 11, 4232, 340, 743, 1395, 20274,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewLogListRefresherNoFile(t *testing.T) { const wantErrSubstr = "failed to read" llr := NewLogListRefresher("nofile.json") if _, err := llr.Refresh(); !strings.Contains(err.Error(), wantErrSubstr) { t.Errorf("llr.Refresh() = (_, %v), want err containing %q", err, wantErrSubstr) } }
explode_data.jsonl/48049
{ "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, 3564, 2201, 852, 3945, 85424, 2753, 1703, 1155, 353, 8840, 836, 8, 341, 4777, 1366, 7747, 3136, 495, 284, 330, 16091, 311, 1349, 698, 51500, 81, 1669, 1532, 2201, 852, 3945, 85424, 445, 26654, 457, 4323, 1138, 743, 8358, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStore_Open_InvalidDatabaseFile(t *testing.T) { s := NewStore() defer s.Close() // Create a file instead of a directory for a database. if _, err := os.Create(filepath.Join(s.Path(), "db0")); err != nil { t.Fatal(err) } // Store should ignore database since it's a file. if err := s.Open(); err != nil...
explode_data.jsonl/44151
{ "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, 6093, 51747, 62, 7928, 5988, 1703, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 6093, 741, 16867, 274, 10421, 2822, 197, 322, 4230, 264, 1034, 4518, 315, 264, 6220, 369, 264, 4625, 624, 743, 8358, 1848, 1669, 2643, 7251...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilters_exclude_tags(t *testing.T) { filterTest( t, ` tables: exclude_tags: _comment: Allways Empty ! fields: - name: id type: id - key: waterway name: waterway type: string - key: name name: name type: string filters: require: waterwa...
explode_data.jsonl/25616
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1197 }
[ 2830, 3393, 28351, 88668, 16333, 1155, 353, 8840, 836, 8, 341, 50108, 2271, 1006, 197, 3244, 345, 197, 197, 3989, 32110, 510, 220, 21687, 16333, 510, 262, 716, 6182, 25, 220, 2009, 2284, 22228, 58062, 262, 5043, 510, 262, 481, 829, 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...
1
func TestGenerateDSNPriorizesCliOverEnvArgs(t *testing.T) { os.Setenv("USERNAME", "dbuser") os.Setenv("HOSTNAME", "foo") os.Args = []string{ "cmd", "-hostname=bar", "-port=1234", "-password=dbpwd", } _, err := integration.New(integrationName, integrationVersion, integration.Args(&args)) fatalIfErr(err) ...
explode_data.jsonl/13420
{ "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, 31115, 5936, 26227, 3254, 4756, 87014, 1918, 14359, 4117, 1155, 353, 8840, 836, 8, 341, 25078, 4202, 3160, 445, 63516, 497, 330, 1999, 872, 1138, 25078, 4202, 3160, 445, 28687, 7535, 497, 330, 7975, 5130, 25078, 51015, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_WillReturnThatUserIsUnauthenticatedWhenUserDoesNotExist(t *testing.T) { scc := new(Chaincode) resultAsBytes, err := scc.Query(shim.NewMockStub("ex02", scc), "authenticateAsUser", []string{"john", "passw0rd"}) if err != nil { t.Error(err.Error()) } var result entities.UserAuthenticationResult err = j...
explode_data.jsonl/74167
{ "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, 2763, 483, 5598, 4792, 1474, 3872, 1806, 57707, 4498, 1474, 21468, 45535, 1155, 353, 8840, 836, 8, 341, 1903, 638, 1669, 501, 7, 18837, 1851, 340, 9559, 2121, 7078, 11, 1848, 1669, 274, 638, 15685, 23254, 318, 7121, 11571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSlotQueueBasic3(t *testing.T) { slotName := "test3" obj := NewSlotQueue(slotName) _, cancel1 := obj.startDequeuer(context.Background()) slot1 := NewTestSlot(1) slot2 := NewTestSlot(2) token1 := obj.queueSlot(slot1) obj.queueSlot(slot2) // now our slot must be ready in outChan, but let's cancel it ...
explode_data.jsonl/45506
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 812 }
[ 2830, 3393, 19877, 7554, 15944, 18, 1155, 353, 8840, 836, 8, 1476, 61675, 675, 1669, 330, 1944, 18, 1837, 22671, 1669, 1532, 19877, 7554, 43724, 675, 340, 197, 6878, 9121, 16, 1669, 2839, 4962, 73891, 8801, 5378, 19047, 12367, 61675, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGetCustomResourceDefinition(t *testing.T) { cases := []struct { expectedActions []string crdList *apiextensionsv1beta1.CustomResourceDefinitionList expected *types.CustomResourceDefinitionList }{ { []string{"list"}, &apiextensionsv1beta1.CustomResourceDefinitionList{ Items: [...
explode_data.jsonl/66197
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 822 }
[ 2830, 3393, 1949, 10268, 4783, 10398, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 42400, 12948, 3056, 917, 198, 197, 1444, 6498, 852, 260, 353, 2068, 27609, 85, 16, 19127, 16, 27649, 4783, 10398, 852, 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...
6
func TestClientCertificateCredential_WrongCertificatePath(t *testing.T) { srv, close := mock.NewTLSServer() defer close() srv.SetResponse(mock.WithStatusCode(http.StatusUnauthorized)) options := ClientCertificateCredentialOptions{} options.AuthorityHost = srv.URL() options.HTTPClient = srv _, err := NewClientCer...
explode_data.jsonl/26259
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 159 }
[ 2830, 3393, 2959, 33202, 48265, 2763, 14347, 33202, 1820, 1155, 353, 8840, 836, 8, 341, 1903, 10553, 11, 3265, 1669, 7860, 7121, 13470, 1220, 2836, 741, 16867, 3265, 741, 1903, 10553, 4202, 2582, 30389, 26124, 15872, 19886, 10538, 51181, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bot_Run(t *testing.T) { noop := func() {} cfg := fakeCfg{} prc := &fakeProcessor{} t.Run("it should not fail", func(t *testing.T) { discord := &FakeDiscordClientSpy{} b := &bot{ cfg: cfg, discord: discord, prc: prc, } b.wait = noop err := b.Run() if err != nil { t.Error...
explode_data.jsonl/2139
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 705 }
[ 2830, 3393, 38883, 84158, 1155, 353, 8840, 836, 8, 341, 197, 40162, 1669, 2915, 368, 5613, 50286, 1669, 12418, 42467, 16094, 25653, 66, 1669, 609, 30570, 22946, 31483, 3244, 16708, 445, 275, 1265, 537, 3690, 497, 2915, 1155, 353, 8840, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAutoQuery_BuildQuery(t *testing.T) { eslog.Init() test := new(autoQuery) test.queryInfo = &config.QueryInfo{ Type: "boolfilter", Clauses: map[string]interface{}{ "must": []interface{}{ map[interface{}]interface{}{"term": []interface{}{"Value", 146.5}}, map[interface{}]interface{}{"term": []in...
explode_data.jsonl/39396
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 504 }
[ 2830, 3393, 13253, 2859, 96686, 2859, 1155, 353, 8840, 836, 8, 341, 78966, 839, 26849, 741, 18185, 1669, 501, 21680, 2859, 340, 18185, 4786, 1731, 284, 609, 1676, 15685, 1731, 515, 197, 27725, 25, 330, 2641, 5315, 756, 197, 6258, 4260, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPlugin_GetPlaybook_beegfs(t *testing.T) { fsUuid := "abcdefgh" result := getPlaybook(BeegFS, fsUuid) assert.Equal(t, `--- - name: Setup FS hosts: abcdefgh any_errors_fatal: true become: yes roles: - role: beegfs vars: fs_name: abcdefgh`, result) }
explode_data.jsonl/15871
{ "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, 11546, 13614, 9137, 2190, 21263, 791, 3848, 1155, 353, 8840, 836, 8, 341, 53584, 38431, 1669, 330, 56747, 698, 9559, 1669, 633, 9137, 2190, 76860, 791, 8485, 11, 8619, 38431, 340, 6948, 12808, 1155, 11, 1565, 10952, 12, 829,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListValues(t *testing.T) { ctx := setupTest(t) defer ctx.teardownTest() // regular case ctx.mockKV.mem["key"] = "data" iter, err := ctx.dataBroker.ListValues("key") Expect(err).ShouldNot(HaveOccurred()) Expect(iter).ToNot(BeNil()) var val []byte for { kv, stop := iter.GetNext() if stop { break...
explode_data.jsonl/29431
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 243 }
[ 2830, 3393, 852, 6227, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 6505, 2271, 1155, 340, 16867, 5635, 31853, 37496, 2271, 2822, 197, 322, 5792, 1142, 198, 20985, 15068, 82707, 41493, 1183, 792, 1341, 284, 330, 691, 698, 79924, 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...
3
func TestServiceCreateWithRequests(t *testing.T) { action, created, _, err := fakeServiceCreate([]string{ "service", "create", "foo", "--image", "gcr.io/foo/bar:baz", "--request", "cpu=250m,memory=64Mi", "--no-wait"}, false) if err != nil { t.Fatal(err) } else if !action.Matches("create", "services") { t....
explode_data.jsonl/42445
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 301 }
[ 2830, 3393, 1860, 4021, 2354, 35295, 1155, 353, 8840, 836, 8, 341, 38933, 11, 3465, 11, 8358, 1848, 1669, 12418, 1860, 4021, 10556, 917, 515, 197, 197, 1, 7936, 497, 330, 3182, 497, 330, 7975, 497, 14482, 1805, 497, 330, 70, 5082, 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...
5
func TestSimilarPercentageNonString(t *testing.T) { c := qt.New(t) c.Assert(howSimilar(page.NopPage, page.NopPage), qt.Equals, 100) c.Assert(howSimilar(page.Pages{}, page.Pages{}), qt.Equals, 90) c.Assert(howSimilar(testStruct{Name: "A"}, testStruct{Name: "B"}), qt.Equals, 0) c.Assert(howSimilar(testStruct{Name: "...
explode_data.jsonl/77381
{ "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, 34402, 36167, 8121, 703, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 38949, 7121, 1155, 340, 1444, 11711, 3203, 363, 34402, 12024, 2067, 453, 2665, 11, 2150, 2067, 453, 2665, 701, 38949, 16207, 11, 220, 16, 15, 15, 340, 1444...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDyn_endpointToRecord(t *testing.T) { tests := []struct { ep *endpoint.Endpoint extractor func(*dynect.DataBlock) string }{ {endpoint.NewEndpoint("address", "A", "the-target"), func(b *dynect.DataBlock) string { return b.Address }}, {endpoint.NewEndpoint("cname", "CNAME", "the-target"), func(b ...
explode_data.jsonl/9812
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 95709, 36699, 1249, 6471, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 96626, 286, 353, 32540, 90409, 198, 197, 8122, 54766, 2915, 4071, 43085, 439, 3336, 4713, 8, 914, 198, 197, 59403, 197, 197, 90, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSliceInsert(t *testing.T) { newDocs := []UserInfo{{Name: "Alice", Age: 10}, {Name: "Lucas", Age: 11}} di := interface{}(newDocs) dis := interfaceToSliceInterface(di) ast := require.New(t) ast.Len(dis, 2) newDocs_1 := []interface{}{UserInfo{Name: "Alice", Age: 10}, UserInfo{Name: "Lucas", Age: 11}} di =...
explode_data.jsonl/18381
{ "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, 33236, 13780, 1155, 353, 8840, 836, 8, 341, 8638, 63107, 1669, 3056, 36158, 2979, 675, 25, 330, 61686, 497, 13081, 25, 220, 16, 15, 2137, 314, 675, 25, 330, 40645, 300, 497, 13081, 25, 220, 16, 16, 11248, 2698, 72, 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 TestDevNonce(t *testing.T) { d := Device{ DevNonceHistory: []uint16{1, 2, 3, 4, 5, 6, 7, 8, 9}, } if !d.HasDevNonce(1) || !d.HasDevNonce(5) || !d.HasDevNonce(9) { t.Fatal("Expected 1, 5 and 9 to be in nonce history") } if d.HasDevNonce(0) || d.HasDevNonce(10) { t.Fatal("Didn't expect 0 or 10 to be in no...
explode_data.jsonl/45706
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 163 }
[ 2830, 3393, 14592, 90528, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 13903, 515, 197, 197, 14592, 90528, 13424, 25, 3056, 2496, 16, 21, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 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...
6
func TestWalk(t *testing.T) { type tcase struct { err error expected []error exitEarly bool } fn := func(tc tcase) func(*testing.T) { return func(t *testing.T) { count := -1 shouldError := true Walk(tc.err, func(err error) bool { count++ if count >= len(tc.expected) { shouldError...
explode_data.jsonl/33856
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 479 }
[ 2830, 3393, 48849, 1155, 353, 8840, 836, 8, 341, 13158, 259, 5638, 2036, 341, 197, 9859, 981, 1465, 198, 197, 42400, 220, 3056, 841, 198, 197, 14519, 41198, 1807, 198, 197, 532, 40095, 1669, 2915, 44415, 259, 5638, 8, 2915, 4071, 8840...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListHostMetricNames(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { if req.URL.Path != "/api/v0/hosts/9rxGOHfVF8F/metric-names" { t.Error("request URL should be /api/v0/hosts/9rxGOHfVF8F/metric-names but: ", req.URL.Path) } if req.Method !...
explode_data.jsonl/63826
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 383 }
[ 2830, 3393, 852, 9296, 54310, 7980, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 4590, 1758, 37508, 11, 4232, 353, 1254, 9659, 8, 341, 197, 743, 4232, 20893, 17474, 961, 3521, 2068, 5457, 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 TestInsertShardedIgnoreUnownedVerify(t *testing.T) { invschema := &vschemapb.SrvVSchema{ Keyspaces: map[string]*vschemapb.Keyspace{ "sharded": { Sharded: true, Vindexes: map[string]*vschemapb.Vindex{ "hash": { Type: "hash", }, "onecol": { Type: "lookup", Params: map[s...
explode_data.jsonl/55995
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1547 }
[ 2830, 3393, 13780, 2016, 20958, 12497, 1806, 18332, 32627, 1155, 353, 8840, 836, 8, 341, 17430, 11562, 3416, 1669, 609, 11562, 2407, 391, 65, 808, 10553, 53, 8632, 515, 197, 197, 8850, 27338, 25, 2415, 14032, 8465, 11562, 2407, 391, 65,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestClient(t *testing.T) { us := NewUnixSocket("/tmp/us.socket") r := us.Connect() time.Sleep(time.Second * 10) res := us.Send(r, "zhangqi test") fmt.Println("===============" + res) }
explode_data.jsonl/162
{ "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, 2959, 1155, 353, 8840, 836, 8, 341, 70175, 1669, 1532, 55832, 10286, 4283, 5173, 62431, 25926, 1138, 7000, 1669, 601, 43851, 741, 21957, 31586, 9730, 32435, 353, 220, 16, 15, 340, 10202, 1669, 601, 20176, 2601, 11, 330, 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
func TestGeneratePublicKey(t *testing.T) { pk, _ := ssh.ParseRawPrivateKey([]byte(privateKeyBytes)) privateKey, _ := pk.(*rsa.PrivateKey) publicKey, err := generatePublicKey(&privateKey.PublicKey) if err != nil { t.Errorf("generate public key %v", err) } if !strings.EqualFold(string(publicKey[:len(publicKey)...
explode_data.jsonl/66060
{ "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, 31115, 61822, 1155, 353, 8840, 836, 8, 341, 3223, 74, 11, 716, 1669, 29230, 8937, 20015, 75981, 10556, 3782, 17550, 1592, 7078, 4390, 2455, 1592, 11, 716, 1669, 22458, 41399, 60869, 87738, 1592, 340, 1219, 1592, 11, 1848, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestWindowMultiRepo(t *testing.T) { unittest.LargeTest(t) url1, repo1, commits1, cleanup1 := setupRepo(t, 20) defer cleanup1() url2, repo2, commits2, cleanup2 := setupRepo(t, 10) defer cleanup2() rm := repograph.Map{ url1: repo1, url2: repo2, } w, err := New(context.Background(), 0, 6, rm) require.No...
explode_data.jsonl/74002
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 387 }
[ 2830, 3393, 4267, 20358, 25243, 1155, 353, 8840, 836, 8, 341, 20479, 14267, 92762, 2271, 1155, 340, 19320, 16, 11, 15867, 16, 11, 41535, 16, 11, 21290, 16, 1669, 6505, 25243, 1155, 11, 220, 17, 15, 340, 16867, 21290, 16, 741, 19320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGrpc_SendTransactionSync(t *testing.T) { var tx types.Transaction reply := &types.Reply{IsOk: true, Msg: tx.Hash()} mockAPI := new(mocks.QueueProtocolAPI) mockAPI.On("SendTx", mock.Anything).Return(reply, nil) mockAPI.On("QueryTx", mock.Anything).Return(&types.TransactionDetail{}, nil) g := Grpc{} g.cl...
explode_data.jsonl/282
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 208 }
[ 2830, 3393, 6464, 3992, 46267, 8070, 12154, 1155, 353, 8840, 836, 8, 341, 2405, 9854, 4494, 29284, 198, 86149, 1669, 609, 9242, 2817, 2541, 90, 3872, 11578, 25, 830, 11, 24205, 25, 9854, 15103, 23509, 77333, 7082, 1669, 501, 1255, 25183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1