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 TestMarketIncrease(t *testing.T) { market := getMarket() user := models.User{ Credits: 100, } err := market.Buy(&user, "increase_pack") if err != nil { t.Errorf("market.Buy error: %s", err) } if user.Credits != 150 { t.Errorf("Buy(user, \"increase_pack\"): expected %d, actual %d", 150, user.Credits) ...
explode_data.jsonl/10770
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 128 }
[ 2830, 3393, 38822, 69556, 1155, 353, 8840, 836, 8, 341, 2109, 54560, 1669, 633, 38822, 741, 19060, 1669, 4119, 7344, 515, 197, 6258, 29502, 25, 220, 16, 15, 15, 345, 197, 630, 9859, 1669, 3081, 1785, 4076, 2099, 872, 11, 330, 78501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTSTypeOnlyExport(t *testing.T) { expectPrintedTS(t, "export type {foo, bar as baz} from 'bar'", "") expectPrintedTS(t, "export type {foo, bar as baz}", "") expectPrintedTS(t, "export type {foo} from 'bar'; x", "x;\n") expectPrintedTS(t, "export type {foo} from 'bar'\nx", "x;\n") expectPrintedTS(t, "export...
explode_data.jsonl/82335
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 593 }
[ 2830, 3393, 51, 784, 499, 7308, 16894, 1155, 353, 8840, 836, 8, 341, 24952, 8994, 291, 9951, 1155, 11, 330, 1533, 943, 314, 7975, 11, 3619, 438, 50247, 92, 504, 364, 2257, 22772, 14676, 24952, 8994, 291, 9951, 1155, 11, 330, 1533, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSeq(t *testing.T) { input := "(0 1 2 3 4 5)" lex := lexer.NewLexer(input) tokens, _ := lex.GetTokens() parser := NewParser(tokens) expressions, _ := parser.GetExpressions() seq := expressions[0].(expr.Seq) for i := 0; i < 6; i++ { val := seq.Exprs[i].(expr.Atom).Value.(float64) assertNumber(t, float...
explode_data.jsonl/43720
{ "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, 20183, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 11993, 15, 220, 16, 220, 17, 220, 18, 220, 19, 220, 20, 12954, 197, 2571, 1669, 53259, 7121, 92847, 5384, 340, 3244, 9713, 11, 716, 1669, 22429, 2234, 29300, 741, 55804, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBytesToGiB(t *testing.T) { var sizeInBytes int64 = 5 * GiB actual := BytesToGiB(sizeInBytes) if actual != 5 { t.Fatalf("Wrong result for BytesToGiB. Got: %d", actual) } }
explode_data.jsonl/78370
{ "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, 7078, 1249, 46841, 33, 1155, 353, 8840, 836, 8, 341, 2405, 1379, 641, 7078, 526, 21, 19, 284, 220, 20, 353, 15392, 33, 271, 88814, 1669, 30024, 1249, 46841, 33, 6856, 641, 7078, 340, 743, 5042, 961, 220, 20, 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...
2
func TestViperProvider_ParseURIOrFail(t *testing.T) { var exitCode int l := logrusx.New("", "", logrusx.WithExitFunc(func(i int) { exitCode = i })) p := config.MustNew(t, l, configx.SkipValidation()) require.Zero(t, exitCode) const testKey = "testKeyNotUsedInTheRealSchema" for _, tc := range []struct { u ...
explode_data.jsonl/52914
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 591 }
[ 2830, 3393, 53, 12858, 5179, 77337, 10301, 46059, 1155, 353, 8840, 836, 8, 341, 2405, 4869, 2078, 526, 271, 8810, 1669, 1487, 20341, 87, 7121, 19814, 7342, 1487, 20341, 87, 26124, 15339, 9626, 18552, 1956, 526, 8, 341, 197, 14519, 2078,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShouldRespondWithPixelAndContentTypeWhenRequestFormatIsImage(t *testing.T) { // mock AccountsFetcher mockAccountsFetcher := &mockAccountsFetcher{ Fail: false, } // mock PBS Analytics Module mockAnalyticsModule := &eventsMockAnalyticsModule{ Fail: false, } // mock config cfg := &config.Configurat...
explode_data.jsonl/144
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 456 }
[ 2830, 3393, 14996, 65354, 2354, 18025, 3036, 29504, 4498, 1900, 4061, 3872, 1906, 1155, 353, 8840, 836, 8, 1476, 197, 322, 7860, 40655, 97492, 198, 77333, 41369, 97492, 1669, 609, 16712, 41369, 97492, 515, 197, 12727, 604, 25, 895, 345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDirFileExistsInUserHomeDir(t *testing.T) { hds := NewHomedirService() content := []byte(`t`) pathToFile := "./testfile" exists, err := hds.FileExistsInUserHomeDir(pathToFile) assert.False(t, exists) assert.Nil(t, err) err = hds.WriteFileToUserHomeDir(content, pathToFile) assert.Nil(t, err) exists, err...
explode_data.jsonl/35866
{ "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, 6184, 1703, 15575, 641, 1474, 7623, 6184, 1155, 353, 8840, 836, 8, 341, 9598, 5356, 1669, 1532, 39, 24139, 404, 1860, 741, 27751, 1669, 3056, 3782, 5809, 83, 24183, 26781, 41550, 1669, 5924, 1944, 1192, 698, 8122, 1671, 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 TestBodyRequestReadCloser(t *testing.T) { setupServer() defer teardownServer() var file, ferr = os.Open("LICENSE.md") if ferr != nil { panic(ferr) } mux.HandleFunc("/url", func(w http.ResponseWriter, r *http.Request) { var a, er = ioutil.ReadAll(r.Body) if er != nil { t.Error(er) } var b, ef...
explode_data.jsonl/24741
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 269 }
[ 2830, 3393, 5444, 1900, 4418, 51236, 799, 1155, 353, 8840, 836, 8, 341, 84571, 5475, 741, 16867, 49304, 5475, 2822, 2405, 1034, 11, 57039, 284, 2643, 12953, 445, 64368, 21324, 5130, 743, 57039, 961, 2092, 341, 197, 30764, 955, 615, 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...
4
func TestServicePackagesCollection_Get(t *testing.T) { type args struct { nameOrID string } svc1 := ServicePackage{ ServicePackage: konnect.ServicePackage{ ID: kong.String("foo-id"), Name: kong.String("foo-name"), }, } svc2 := ServicePackage{ ServicePackage: konnect.ServicePackage{ ID: kong.St...
explode_data.jsonl/51004
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 710 }
[ 2830, 3393, 1860, 69513, 6482, 13614, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 11609, 2195, 915, 914, 198, 197, 532, 1903, 7362, 16, 1669, 5362, 13100, 515, 197, 91619, 13100, 25, 16540, 2321, 13860, 13100, 515, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCastleSubdirs(t *testing.T) { tt := []struct { home, castle string want []string fail bool }{ {"home1", "dotfiles", []string{".dir2", ".nonexistent", ".dir3/.subdir1"}, false}, {"home1", "private", []string{}, false}, } for _, tc := range tt { t.Run(fmt.Sprintf("%s:%s", tc.home...
explode_data.jsonl/56645
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 350 }
[ 2830, 3393, 86603, 3136, 57623, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 3056, 1235, 341, 197, 197, 5117, 11, 32584, 914, 198, 197, 50780, 260, 3056, 917, 198, 197, 63052, 260, 1807, 198, 197, 59403, 197, 197, 4913, 5117, 16, 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 TestDeleteLogConf(t *testing.T) { appProtectConfiguration := NewAppProtectConfiguration() appProtectConfiguration.LogConfs["testing/test"] = &AppProtectLogConfEx{} tests := []struct { key string expectedChanges []AppProtectChange expectedProblems []AppProtectProblem msg string...
explode_data.jsonl/19388
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 468 }
[ 2830, 3393, 6435, 2201, 15578, 1155, 353, 8840, 836, 8, 341, 28236, 61547, 7688, 1669, 1532, 2164, 61547, 7688, 741, 28236, 61547, 7688, 5247, 1109, 3848, 1183, 8840, 12697, 1341, 284, 609, 2164, 61547, 2201, 15578, 840, 16094, 78216, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestGetDockerOptOperator(t *testing.T) { dm110, _ := newTestDockerManagerWithVersion("1.10.1", "1.22") dm111, _ := newTestDockerManagerWithVersion("1.11.0", "1.23") sep, err := dm110.getDockerOptSeparator() require.NoError(t, err, "error getting docker opt separator for 1.10.1") assert.Equal(t, SecurityOptSe...
explode_data.jsonl/31184
{ "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, 1949, 35, 13659, 21367, 18461, 1155, 353, 8840, 836, 8, 341, 2698, 76, 16, 16, 15, 11, 716, 1669, 501, 2271, 35, 13659, 2043, 2354, 5637, 445, 16, 13, 16, 15, 13, 16, 497, 330, 16, 13, 17, 17, 1138, 2698, 76, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCodecChainID(t *testing.T) { a := assert.New(t) id1 := NewChainID() id1.AsDefault() a.True(id1.Equals(&defaultChainID)) b, err := id1.Bytes() a.Nil(err) id2 := NewChainID() err = id2.Read(b) a.Nil(err) a.True(id1.Equals(id2)) }
explode_data.jsonl/47847
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 36913, 18837, 915, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 2060, 7121, 1155, 340, 15710, 16, 1669, 1532, 18837, 915, 2822, 15710, 16, 20242, 3675, 741, 11323, 32443, 3724, 16, 16207, 2099, 2258, 18837, 915, 4390, 2233, 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 TestGossipChannelEligibility(t *testing.T) { t.Parallel() // Scenario: We have a peer in an org that joins a channel with org1 and org2. // and it receives StateInfo messages of other peers and the eligibility // of these peers of being in the channel is checked. // During the test, the channel is reconfigur...
explode_data.jsonl/66330
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2509 }
[ 2830, 3393, 38, 41473, 9629, 6582, 343, 3147, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 58663, 25, 1205, 614, 264, 14397, 304, 458, 1240, 429, 28682, 264, 5496, 448, 1240, 16, 323, 1240, 17, 624, 197, 322, 323...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetParticipantIDsByIssue(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) checkParticipants := func(issueID int64, userIDs []int) { issue, err := GetIssueByID(issueID) assert.NoError(t, err) participants, err := issue.getParticipantIDsByIssue(db.GetEngine(db.DefaultContext)) if asse...
explode_data.jsonl/46839
{ "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, 1949, 67504, 30466, 1359, 42006, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 19905, 28770, 3380, 2271, 5988, 12367, 25157, 77546, 1669, 2915, 94439, 915, 526, 21, 19, 11, 1196, 30466, 3056, 396, 8, 341, 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...
3
func TestDSSSignature(t *testing.T) { dsss := make([]*DSS, nbParticipants) pss := make([]*PartialSig, nbParticipants) for i := 0; i < nbParticipants; i++ { dsss[i] = getDSS(i) ps, err := dsss[i].PartialSig() require.Nil(t, err) require.NotNil(t, ps) pss[i] = ps } for i, dss := range dsss { for j, ps :=...
explode_data.jsonl/60383
{ "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, 35, 1220, 25088, 1155, 353, 8840, 836, 8, 341, 2698, 84160, 1669, 1281, 85288, 35, 1220, 11, 16649, 77546, 340, 3223, 778, 1669, 1281, 85288, 37314, 47246, 11, 16649, 77546, 340, 2023, 600, 1669, 220, 15, 26, 600, 366, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestCCEPValidationReads(t *testing.T) { t.Parallel() // Scenario: we validate a transaction that doesn't // touch any key with a state-based endorsement policy; // we expect to check the normal cc-endorsement policy. mr := &mockState{GetStateMetadataRv: map[string][]byte{}, GetPrivateDataMetadataByHashRv: m...
explode_data.jsonl/80492
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 529 }
[ 2830, 3393, 34, 2104, 47, 13799, 4418, 82, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 58663, 25, 582, 9593, 264, 7745, 429, 3171, 944, 198, 197, 322, 5796, 894, 1376, 448, 264, 1584, 5980, 41043, 4842, 280, 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 TestLinkerdIdentityCheckCertValidity(t *testing.T) { var testCases = []struct { checkDescription string checkerToTest string lifespan *lifeSpan expectedOutput []string }{ { checkerToTest: "trust anchors are within their validity period", checkDescription: "fails when the only anch...
explode_data.jsonl/19151
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 978 }
[ 2830, 3393, 3939, 14348, 18558, 3973, 36934, 69538, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 37302, 284, 3056, 1235, 341, 197, 25157, 5009, 914, 198, 197, 25157, 261, 1249, 2271, 262, 914, 198, 197, 8810, 82295, 848, 260, 353, 14450, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInterpreterPaths(t *testing.T) { s, err := parseFile("src/parse/asp/test_data/interpreter/paths.build") require.NoError(t, err) assert.EqualValues(t, "a/b/c", s.Lookup("a")) assert.EqualValues(t, "a/c", s.Lookup("b")) assert.EqualValues(t, pyList{pyString("a/b"), pyString("c")}, s.Lookup("c")) assert.Equ...
explode_data.jsonl/81074
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 312 }
[ 2830, 3393, 58426, 26901, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 4715, 1703, 445, 3548, 14, 6400, 14, 13367, 12697, 1769, 14, 90554, 14, 21623, 13239, 1138, 17957, 35699, 1155, 11, 1848, 340, 6948, 12808, 6227, 1155, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInstanceSetComplexTag2(t *testing.T) { instance, err := nonEmptyGroup.New("ittComplex2") if err != nil { t.Errorf("err: %v", err) } err = instance.Set(Keys("h2"), "world") if err == nil { t.Errorf("Expected error") } err = instance.Set(Keys("x", "itt2", "h2"), "z") if err != nil { t.Errorf("Er...
explode_data.jsonl/17039
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 201 }
[ 2830, 3393, 2523, 1649, 31137, 5668, 17, 1155, 353, 8840, 836, 8, 1476, 56256, 11, 1848, 1669, 2477, 3522, 2808, 7121, 445, 1442, 31137, 17, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 615, 25, 1018, 85, 497, 1848, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestContext(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { var ctxKey interface{} = "ctx" ctx := context.WithValue(context.Background(), ctxKey, "bar") store, err := Start(ctx, w, r) if err != nil { t.Error(err) return } ctxValue := stor...
explode_data.jsonl/14852
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 419 }
[ 2830, 3393, 1972, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 2405, 5635, 1592, 3749, 6257, 284, 330, 3773, 698, 197, 20985, 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...
6
func TestMetablockVerifySignature(t *testing.T) { // Test metablock signature verification errors: // - no signature found // - wrong signature for key // - invalid metadata (can't canonicalize) var key Key if err := key.LoadKey("alice.pub", "rsassa-pss-sha256", []string{"sha256", "sha512"}); err != nil { t.Err...
explode_data.jsonl/51760
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 500 }
[ 2830, 3393, 34673, 370, 1023, 32627, 25088, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 19635, 1023, 11957, 22901, 5975, 510, 197, 322, 481, 902, 11957, 1730, 198, 197, 322, 481, 4969, 11957, 369, 1376, 198, 197, 322, 481, 8318, 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...
7
func Test_Data_Name(t *testing.T) { subject := &Data{} // when unspecified assert.Equal(t, subject.GetName().Size(), 0) n := name.New(name.Component{"a"}, name.Component{"b"}) subject.SetName(n) assert.Equal(t, subject.GetName(), n) // check it is copied n.Clear() assert.Equal(t, subject.GetName(), name.New...
explode_data.jsonl/7616
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 17817, 19015, 1155, 353, 8840, 836, 8, 341, 28624, 583, 1669, 609, 1043, 31483, 197, 322, 979, 54311, 198, 6948, 12808, 1155, 11, 3832, 60304, 1005, 1695, 1507, 220, 15, 692, 9038, 1669, 829, 7121, 3153, 5119, 4913, 64, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetEnvAsStringOrFallback(t *testing.T) { const expected = "foo" assert := assert.New(t) key := "FLOCKER_SET_VAR" os.Setenv(key, expected) assert.Equal(expected, GetEnvAsStringOrFallback(key, "~"+expected)) key = "FLOCKER_UNSET_VAR" assert.Equal(expected, GetEnvAsStringOrFallback(key, expected)) }
explode_data.jsonl/36780
{ "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, 1949, 14359, 26582, 2195, 87206, 1155, 353, 8840, 836, 8, 341, 4777, 3601, 284, 330, 7975, 1837, 6948, 1669, 2060, 7121, 1155, 692, 23634, 1669, 330, 37, 8044, 640, 8481, 25750, 698, 25078, 4202, 3160, 4857, 11, 3601, 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 TestCreateHost(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { if req.URL.Path != "/api/v0/hosts" { t.Error("request URL should be /api/v0/hosts but: ", req.URL.Path) } if req.Method != "POST" { t.Error("request method should be POST but: "...
explode_data.jsonl/63820
{ "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, 4021, 9296, 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, 14, 44692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListSpaceAuditors(t *testing.T) { Convey("ListSpaceAuditors()", t, func() { setup(MockRoute{"GET", "/v2/spaces/foo/auditors", listSpacePeoplePayload, "", 200, "", nil}, t) defer teardown() c := &Config{ ApiAddress: server.URL, Token: "foobar", } client, err := NewClient(c) So(err, Shoul...
explode_data.jsonl/59980
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 229 }
[ 2830, 3393, 852, 9914, 52949, 11905, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 852, 9914, 52949, 11905, 50514, 259, 11, 2915, 368, 341, 197, 84571, 66436, 4899, 4913, 3806, 497, 3521, 85, 17, 26734, 2434, 60555, 14, 7880, 11905, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetControllerStatus(t *testing.T) { tests := map[string]struct { expectedOutput string Volume VolumeInfo }{ "Fetching Controller status from openebs.io/controller-status": { Volume: VolumeInfo{ Volume: v1alpha1.CASVolume{ ObjectMeta: metav1.ObjectMeta{ Annotations: map[string]...
explode_data.jsonl/78047
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 713 }
[ 2830, 3393, 1949, 2051, 2522, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 42400, 5097, 914, 198, 197, 17446, 4661, 260, 20265, 1731, 198, 197, 59403, 197, 197, 1, 52416, 9771, 2639, 504, 1787, 68, 1279,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJobSpecsController_Show_Unauthenticated(t *testing.T) { t.Parallel() app, cleanup := cltest.NewApplication() defer cleanup() resp, err := http.Get(app.Server.URL + "/v2/specs/" + "garbage") assert.NoError(t, err) assert.Equal(t, 401, resp.StatusCode, "Response should be forbidden") }
explode_data.jsonl/53695
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 108 }
[ 2830, 3393, 12245, 8327, 82, 2051, 79665, 40687, 57707, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 28236, 11, 21290, 1669, 1185, 1944, 7121, 4988, 741, 16867, 21290, 2822, 34653, 11, 1848, 1669, 1758, 2234, 11462, 22997, 20893,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMetricGroupData_toDistributionUnitTest(t *testing.T) { type scrape struct { at int64 value float64 metric string } tests := []struct { name string labels labels.Labels scrapes []*scrape want func() pdata.HistogramDataPoint }{ { name: "histogram", labels: labels.Labels{{N...
explode_data.jsonl/19393
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 805 }
[ 2830, 3393, 54310, 2808, 1043, 2346, 62377, 97330, 1155, 353, 8840, 836, 8, 341, 13158, 57128, 2036, 341, 197, 35447, 257, 526, 21, 19, 198, 197, 16309, 220, 2224, 21, 19, 198, 197, 2109, 16340, 914, 198, 197, 532, 78216, 1669, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestErrorRequiredNotSet(t *testing.T) { type config struct { IsRequired string `env:"IS_REQUIRED,required"` } cfg := &config{} assert.EqualError(t, Parse(cfg), "env: required environment variable \"IS_REQUIRED\" is not set") }
explode_data.jsonl/78780
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 1454, 8164, 2623, 1649, 1155, 353, 8840, 836, 8, 341, 13158, 2193, 2036, 341, 197, 197, 58541, 914, 1565, 3160, 2974, 1637, 53912, 11, 6279, 8805, 197, 630, 50286, 1669, 609, 1676, 16094, 6948, 12808, 1454, 1155, 11, 14775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Echo_Bad_Security(t *testing.T) { e := newEcho() req := httptest.NewRequest(http.MethodGet, "http://example.com/security", nil) res := httptest.NewRecorder() e.ServeHTTP(res, req) require.Equal(t, http.StatusForbidden, res.Code) }
explode_data.jsonl/54634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 2089, 958, 1668, 329, 1098, 18429, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 501, 74994, 2822, 24395, 1669, 54320, 70334, 75274, 19886, 20798, 1949, 11, 330, 1254, 1110, 8687, 905, 71422, 497, 2092, 340, 10202, 1669, 54320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTensorflow(t *testing.T) { checkNet := func(t *testing.T, net Net) { img := IMRead("images/space_shuttle.jpg", IMReadColor) if img.Empty() { t.Error("Invalid Mat in Tensorflow test") } defer img.Close() blob := BlobFromImage(img, 1.0, image.Pt(224, 224), NewScalar(0, 0, 0, 0), true, false) if ...
explode_data.jsonl/31266
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 788 }
[ 2830, 3393, 25336, 4965, 1155, 353, 8840, 836, 8, 341, 25157, 6954, 1669, 2915, 1155, 353, 8840, 836, 11, 4179, 9374, 8, 341, 197, 39162, 1669, 6517, 4418, 445, 3642, 2687, 1306, 3712, 98243, 4819, 497, 6517, 4418, 1636, 340, 197, 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...
9
func Test_DomainCreate(t *testing.T) { client := NewClient("", "", false) config := new(DomainCreateConfig) config.DomainId = TestDomainID config.VerboseName = TestDomainName config.MemoryCount = 50 domain, _, err := client.Domain.Create(*config) require.Nil(t, err) assert.NotEqual(t, domain.Id, "", "Domain Id ...
explode_data.jsonl/12037
{ "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, 1557, 3121, 4021, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 1532, 2959, 19814, 7342, 895, 340, 25873, 1669, 501, 5432, 3121, 4021, 2648, 340, 25873, 20442, 764, 284, 3393, 13636, 915, 198, 25873, 42505, 8297, 675, 284, 3393...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRouter_Load_FailsWhenMethodIsInvalid(t *testing.T) { AddHandler(testHandlerFunc, "users.Handler") router := NewRouter() loader := sliceLoader{ RouteDef{ Method: "ME", Path: "/users", Handler: "users.Handler.no.exists", Options: RouteDefOptions{ Name: "get.users", }, }, } err :=...
explode_data.jsonl/31763
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 9523, 19553, 1400, 6209, 4498, 3523, 3872, 7928, 1155, 353, 8840, 836, 8, 341, 37972, 3050, 8623, 3050, 9626, 11, 330, 4218, 31010, 5130, 67009, 1669, 1532, 9523, 741, 197, 8355, 1669, 15983, 9181, 515, 197, 47501, 2620, 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 TestMap_openRoot(t *testing.T) { fs := Map(map[string][]byte{ "foo/bar/three.txt": []byte("a"), "foo/bar.txt": []byte("b"), "top.txt": []byte("c"), "other-top.txt": []byte("d"), }) tests := []struct { path string want string }{ {"/foo/bar/three.txt", "a"}, {"foo/bar/three.tx...
explode_data.jsonl/42380
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 467 }
[ 2830, 3393, 2227, 11311, 8439, 1155, 353, 8840, 836, 8, 341, 53584, 1669, 5027, 9147, 14032, 45725, 3782, 515, 197, 197, 1, 7975, 49513, 20439, 765, 3909, 788, 3056, 3782, 445, 64, 4461, 197, 197, 1, 7975, 49513, 3909, 788, 981, 3056,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestJsonMarshalURL(t *testing.T) { testCases := map[string]struct { t string want []byte }{ "empty": {}, "empty string": { t: "", }, "invalid url": { t: "not a url", want: []byte(`"not%20a%20url"`), }, "relative format": { t: "/path/to/something", want: []byte(`"/path/to/s...
explode_data.jsonl/71954
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 370 }
[ 2830, 3393, 5014, 55438, 3144, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 3244, 262, 914, 198, 197, 50780, 3056, 3782, 198, 197, 59403, 197, 197, 1, 3194, 788, 14573, 197, 197, 1, 3194, 914, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestCancelWithReason_IsCallableMultipleTimes_AndKeepsFirstCancelReason(t *testing.T) { w := testWorkflow() reason1 := "reason1" reason2 := "reason2" w.CancelWithReason(reason1) w.CancelWithReason(reason2) if !w.isCanceled { t.Error("Expect workflow to be canceled.") } if w.getCancelReason() != reason1 { ...
explode_data.jsonl/3867
{ "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, 9269, 2354, 25139, 31879, 40410, 32089, 18889, 93846, 6608, 7124, 5338, 9269, 25139, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 1273, 62768, 741, 17200, 1497, 16, 1669, 330, 19895, 16, 698, 17200, 1497, 17, 1669, 330, 19895, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilterByProjects(t *testing.T) { apps := []argoappv1.Application{ { Spec: argoappv1.ApplicationSpec{ Project: "fooproj", }, }, { Spec: argoappv1.ApplicationSpec{ Project: "barproj", }, }, } t.Run("No apps in single project", func(t *testing.T) { res := FilterByProjects(apps, [...
explode_data.jsonl/49994
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 353 }
[ 2830, 3393, 5632, 1359, 29958, 1155, 353, 8840, 836, 8, 341, 197, 27635, 1669, 3056, 12088, 676, 85, 16, 17521, 515, 197, 197, 515, 298, 7568, 992, 25, 1392, 78, 676, 85, 16, 17521, 8327, 515, 571, 197, 7849, 25, 330, 824, 45926, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapValue_Get(t *testing.T) { mapValue := NewDynamicMap(map[string]map[int32]float32{ "nested": {1: -1.0, 2: 2.0}, "empty": {}}).(traits.Mapper) if nestedVal := mapValue.Get(String("nested")); IsError(nestedVal) { t.Error(nestedVal) } else if floatVal := nestedVal.(traits.Indexer).Get(Int(1)); IsError...
explode_data.jsonl/13231
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 192 }
[ 2830, 3393, 2227, 1130, 13614, 1155, 353, 8840, 836, 8, 341, 19567, 1130, 1669, 1532, 21752, 2227, 9147, 14032, 60, 2186, 18640, 18, 17, 60, 3649, 18, 17, 515, 197, 197, 1, 59271, 788, 314, 16, 25, 481, 16, 13, 15, 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...
4
func TestSubmitApplicationEventGetArgs(t *testing.T) { tests := []struct { name string appID string wantLen int }{ {TestArgsName, "testAppId001", 0}, } for _, tt := range tests { instance := NewSubmitApplicationEvent(tt.appID) args := instance.GetArgs() t.Run(tt.name, func(t *testing.T) { if ...
explode_data.jsonl/9784
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 8890, 4988, 1556, 1949, 4117, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 28236, 915, 256, 914, 198, 197, 50780, 11271, 526, 198, 197, 59403, 197, 197, 90, 2271, 4117, 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...
2
func Test_DeployHandler_Execution_Errors_WrongSFNPath(t *testing.T) { release := MockRelease() awsc := MockAwsClients(release) awsc.SFN.DescribeStateMachineResp = &sfn.DescribeStateMachineOutput{ RoleArn: to.Strp("arn:aws:iam::000000000000:role/step/wrongproject/config/role-name"), } state_machine := createTest...
explode_data.jsonl/62299
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 263 }
[ 2830, 3393, 90680, 1989, 3050, 62, 20294, 93623, 1087, 2763, 14347, 28667, 45, 1820, 1155, 353, 8840, 836, 8, 341, 17200, 1623, 1669, 14563, 16077, 741, 197, 672, 2388, 1669, 14563, 47359, 47174, 5801, 1623, 340, 197, 672, 2388, 808, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBindingUsageConversionInput(t *testing.T) { tests := map[string]struct { givenSBUInput *gqlschema.CreateServiceBindingUsageInput expK8sSBU *api.ServiceBindingUsage }{ "only kind is provided": { givenSBUInput: &gqlschema.CreateServiceBindingUsageInput{ UsedBy: gqlschema.LocalObjectReferenceIn...
explode_data.jsonl/4003
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1385 }
[ 2830, 3393, 15059, 14783, 48237, 2505, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 3174, 2071, 50, 14928, 2505, 353, 70, 1470, 17349, 7251, 1860, 15059, 14783, 2505, 198, 197, 48558, 42, 23, 82, 50, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRouteGeneration(t *testing.T) { route := Route{} testutil.AssertEqual(t, "empty route generation", int64(0), route.GetGeneration()) answer := int64(42) route.SetGeneration(answer) testutil.AssertEqual(t, "GetGeneration", answer, route.GetGeneration()) }
explode_data.jsonl/41100
{ "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, 4899, 37138, 1155, 353, 8840, 836, 8, 341, 7000, 2133, 1669, 9572, 16094, 18185, 1314, 11711, 2993, 1155, 11, 330, 3194, 6021, 9471, 497, 526, 21, 19, 7, 15, 701, 6021, 2234, 37138, 12367, 72570, 1669, 526, 21, 19, 7, 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...
1
func TestExpandEnv(t *testing.T) { require.NoError(t, os.Setenv("TEST_DATA_TRUST_DOMAIN", "example.org")) cases := []struct { expandEnv bool expectedValue string }{ { expandEnv: true, expectedValue: "example.org", }, { expandEnv: false, expectedValue: "$TEST_DATA_TRUST_DOMAIN", }...
explode_data.jsonl/51908
{ "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, 38946, 14359, 1155, 353, 8840, 836, 8, 341, 17957, 35699, 1155, 11, 2643, 4202, 3160, 445, 10033, 7896, 6410, 8553, 33729, 497, 330, 8687, 2659, 28075, 1444, 2264, 1669, 3056, 1235, 341, 197, 197, 32317, 14359, 257, 1807, 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 TestHandlePostAuthenticate(t *testing.T) { t.Parallel() ctx := project.TestContext(t) harness := envstest.NewServerConfig(t, testDatabaseInstance) c := login.New(harness.AuthProvider, harness.Cacher, harness.Config, harness.Database, harness.Renderer) handler := harness.WithCommonMiddlewares(c.HandlePostAut...
explode_data.jsonl/42149
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1018 }
[ 2830, 3393, 6999, 4133, 99087, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20985, 1669, 2390, 8787, 1972, 1155, 340, 9598, 23518, 1669, 6105, 267, 477, 7121, 5475, 2648, 1155, 11, 1273, 5988, 2523, 692, 1444, 1669, 5858, 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 TestBuildMultiStageOnBuild(t *testing.T) { skip.If(t, versions.LessThan(testEnv.DaemonAPIVersion(), "1.33"), "broken in earlier versions") skip.If(t, testEnv.DaemonInfo.OSType == "windows", "FIXME") defer setupTest(t)() // test both metadata and layer based commands as they may be implemented differently dock...
explode_data.jsonl/82584
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 490 }
[ 2830, 3393, 11066, 20358, 19398, 1925, 11066, 1155, 353, 8840, 836, 8, 341, 1903, 13389, 32901, 1155, 11, 10795, 1214, 433, 26067, 8623, 14359, 909, 64, 7291, 7082, 5637, 1507, 330, 16, 13, 18, 18, 3975, 330, 48909, 304, 6788, 10795, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServerSawOutgoingMessage(t *testing.T) { s := NewTestServer() go s.Start() assert.False(t, s.SawOutgoingMessage("foo"), "should not have seen any message") }
explode_data.jsonl/7553
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 59 }
[ 2830, 3393, 5475, 50, 672, 2662, 9546, 2052, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 2271, 5475, 741, 30680, 274, 12101, 741, 6948, 50757, 1155, 11, 274, 808, 672, 2662, 9546, 2052, 445, 7975, 3975, 330, 5445, 537, 614, 3884, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProcessing(t *testing.T) { m := NewMercury(t) ctx := context.Background() processing := &types.Processing{ Appname: "app", Entryname: "entry", Nodename: "node", Ident: "abc", } // create assert.NoError(t, m.CreateProcessing(ctx, processing, 10)) // create again assert.Error(t, m.CreateP...
explode_data.jsonl/29036
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 268 }
[ 2830, 3393, 28892, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1532, 26716, 25455, 1155, 340, 20985, 1669, 2266, 19047, 741, 197, 20660, 1669, 609, 9242, 29012, 287, 515, 197, 59557, 606, 25, 256, 330, 676, 756, 197, 197, 5874, 606, 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 TestSubmitOrder(t *testing.T) { b.SetDefaults() TestSetup(t) if areTestAPIKeysSet() && !canManipulateRealOrders { t.Skip("API keys set, canManipulateRealOrders false, skipping test") } var p = currency.Pair{ Delimiter: "-", Base: currency.BTC, Quote: currency.LTC, } response, err := b.Sub...
explode_data.jsonl/49006
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 237 }
[ 2830, 3393, 8890, 4431, 1155, 353, 8840, 836, 8, 341, 2233, 4202, 16273, 741, 73866, 21821, 1155, 692, 743, 525, 2271, 7082, 8850, 1649, 368, 1009, 753, 4814, 92876, 6334, 12768, 24898, 341, 197, 3244, 57776, 445, 7082, 6894, 738, 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...
8
func TestMapProxy_SetWithNonSerializableValue(t *testing.T) { err := mp.Set("test", student{}) AssertErrorNotNil(t, err, "set did not return an error for nonserializable value") mp.Clear() }
explode_data.jsonl/57067
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 2227, 16219, 14812, 2354, 8121, 29268, 1130, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 10490, 4202, 445, 1944, 497, 5458, 37790, 18017, 1454, 96144, 1155, 11, 1848, 11, 330, 746, 1521, 537, 470, 458, 1465, 369, 2477, 10182, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestService_Config_ViewStep(t *testing.T) { // setup test server s := httptest.NewServer(server.FakeHandler()) // create a vela client client, err := vela.NewClient(s.URL, "vela", nil) if err != nil { t.Errorf("unable to create client: %v", err) } // setup tests tests := []struct { failure bool con...
explode_data.jsonl/4178
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 831 }
[ 2830, 3393, 1860, 35412, 50711, 8304, 1155, 353, 8840, 836, 8, 341, 197, 322, 6505, 1273, 3538, 198, 1903, 1669, 54320, 70334, 7121, 5475, 21421, 991, 726, 3050, 12367, 197, 322, 1855, 264, 348, 8294, 2943, 198, 25291, 11, 1848, 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...
6
func TestServeIndexHTML(t *testing.T) { defer leaktest.AfterTest(t)() const htmlTemplate = `<!DOCTYPE html> <html> <head> <title>Cockroach Console</title> <meta charset="UTF-8"> <link href="favicon.ico" rel="shortcut icon"> </head> <body> <div id="react-layout"></div> <script> window.dataFromServer ...
explode_data.jsonl/70838
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1820 }
[ 2830, 3393, 60421, 1552, 5835, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 4777, 5272, 7275, 284, 1565, 13543, 15458, 5272, 397, 13745, 397, 197, 16343, 397, 197, 197, 27336, 25630, 1176, 64500, 5277, 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 TestCoordinator_StartStop(t *testing.T) { coordinator := fixtureCoordinator() coordinator.Configure() // Swap out the coordinator modules with a mock for testing mockModule := &helpers.MockModule{} mockModule.On("Start").Return(nil) mockModule.On("Stop").Return(nil) coordinator.modules["test"] = mockModule...
explode_data.jsonl/20419
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 150 }
[ 2830, 3393, 64304, 38056, 10674, 1155, 353, 8840, 836, 8, 341, 197, 1015, 17442, 1669, 12507, 64304, 741, 197, 1015, 17442, 78281, 2822, 197, 322, 43849, 700, 279, 30284, 13454, 448, 264, 7860, 369, 7497, 198, 77333, 3332, 1669, 609, 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 TestReconcile(t *testing.T) { g := gomega.NewGomegaWithT(t) instance := &configv1alpha1.Config{ ObjectMeta: metav1.ObjectMeta{ Name: "config", Namespace: "gatekeeper-system", Finalizers: []string{finalizerName}, }, Spec: configv1alpha1.ConfigSpec{ Sync: configv1alpha1.Sync{ SyncOnly:...
explode_data.jsonl/66488
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1866 }
[ 2830, 3393, 693, 40446, 457, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 32696, 7121, 38, 32696, 2354, 51, 1155, 340, 56256, 1669, 609, 1676, 85, 16, 7141, 16, 10753, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 21297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExactArgs(t *testing.T) { tests := []struct { name string args []string wantErr bool }{ { name: "no args", args: []string{}, wantErr: true, }, { name: "with valid args", args: []string{"a", "b", "c"}, wantErr: false, }, { name: "with less args", ar...
explode_data.jsonl/59318
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 407 }
[ 2830, 3393, 57954, 4117, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 31215, 262, 3056, 917, 198, 197, 50780, 7747, 1807, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 262, 330, 2152, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAfterRetryRefreshCreds(t *testing.T) { restoreEnvFn := sdktesting.StashEnv() defer restoreEnvFn() credProvider := &mockCredsProvider{} sess := unit.Session.Copy(&aws.Config{ Credentials: credentials.NewCredentials(credProvider), MaxRetries: aws.Int(2), }) clientInfo := metadata.ClientInfo{ Endpo...
explode_data.jsonl/44094
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 962 }
[ 2830, 3393, 6025, 51560, 14567, 34, 53369, 1155, 353, 8840, 836, 8, 341, 96027, 14359, 24911, 1669, 45402, 8840, 7758, 988, 14359, 741, 16867, 14952, 14359, 24911, 2822, 197, 10844, 5179, 1669, 609, 16712, 34, 53369, 5179, 31483, 1903, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetRtspFirstAuth(t *testing.T) { var rtspAuth rtsp.Auth auths := make([]string, 2) auths[0] = `Digest realm="54c41545bbe6", nonce="13991620f27aff5cc046228b7d4434b7", stale="FALSE"` auths[1] = `Basic realm="54c41545bbe6"` username := "admin" password := "admin123" rtspAuth.FeedWwwAuthenticate(auths, user...
explode_data.jsonl/67467
{ "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, 1949, 49, 83, 2154, 5338, 5087, 1155, 353, 8840, 836, 8, 341, 2405, 16677, 2154, 5087, 16677, 2154, 25233, 198, 78011, 82, 1669, 1281, 10556, 917, 11, 220, 17, 340, 78011, 82, 58, 15, 60, 284, 1565, 45217, 21889, 428, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHostKeyAlgorithms(t *testing.T) { serverConf := &ServerConfig{ NoClientAuth: true, } serverConf.AddHostKey(testSigners["rsa"]) serverConf.AddHostKey(testSigners["ecdsa"]) connect := func(clientConf *ClientConfig, want string) { var alg string clientConf.HostKeyCallback = func(h string, a net.Addr, ...
explode_data.jsonl/34807
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 547 }
[ 2830, 3393, 9296, 1592, 2101, 18980, 1155, 353, 8840, 836, 8, 341, 41057, 15578, 1669, 609, 5475, 2648, 515, 197, 197, 2753, 2959, 5087, 25, 830, 345, 197, 532, 41057, 15578, 1904, 9296, 1592, 8623, 7264, 388, 1183, 60869, 14108, 41057,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFetchTaggedQuorumAddNodeAllUp(t *testing.T) { if testing.Short() { t.SkipNow() } numShards := defaultNumShards minShard := uint32(0) maxShard := uint32(numShards - 1) // nodes = m3db nodes nodes, closeFn, testFetch := makeTestFetchTagged(t, numShards, []services.ServiceInstance{ node(t, 0, newClus...
explode_data.jsonl/37901
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 430 }
[ 2830, 3393, 20714, 5668, 3556, 2183, 33006, 2212, 1955, 2403, 2324, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 7039, 741, 197, 630, 22431, 2016, 2347, 1669, 1638, 4651, 2016, 2347, 198, 25320, 2016, 567,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsZero(t *testing.T) { t.Parallel() testCases := []struct { value string isZero bool errExpected bool }{ {"0", true, false}, {"0.0", true, false}, {"1", false, false}, {"1.0", false, false}, {"", false, true}, } for _, tc := range testCases { tc := tc t.Run(fmt.Sprintf("is...
explode_data.jsonl/4600
{ "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, 3872, 17999, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18185, 37302, 1669, 3056, 1235, 341, 197, 16309, 981, 914, 198, 197, 19907, 17999, 414, 1807, 198, 197, 9859, 18896, 1807, 198, 197, 59403, 197, 197, 4913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMatMin(t *testing.T) { src1 := NewMatWithSize(4, 4, MatTypeCV32F) defer src1.Close() src2 := NewMatWithSize(4, 4, MatTypeCV32F) defer src2.Close() dst := NewMat() defer dst.Close() Min(src1, src2, &dst) if dst.Empty() { t.Error("Min dst should not be empty.") } }
explode_data.jsonl/81754
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 127 }
[ 2830, 3393, 11575, 6217, 1155, 353, 8840, 836, 8, 341, 41144, 16, 1669, 1532, 11575, 2354, 1695, 7, 19, 11, 220, 19, 11, 6867, 929, 19589, 18, 17, 37, 340, 16867, 2286, 16, 10421, 741, 41144, 17, 1669, 1532, 11575, 2354, 1695, 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 TestParseOsdDump(t *testing.T) { dump, err := parseDump(osdPerfDump) assert.NoError(t, err) assert.InEpsilon(t, 552132.109360000, (*dump)["filestore"]["commitcycle_interval.sum"], epsilon) assert.Equal(t, float64(0), (*dump)["mutex-FileJournal::finisher_lock"]["wait.avgcount"]) }
explode_data.jsonl/25189
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 125 }
[ 2830, 3393, 14463, 46, 13446, 51056, 1155, 353, 8840, 836, 8, 341, 2698, 1510, 11, 1848, 1669, 4715, 51056, 9638, 67, 3889, 69, 51056, 340, 6948, 35699, 1155, 11, 1848, 340, 6948, 5337, 36, 59892, 1155, 11, 220, 20, 20, 17, 16, 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 Test_getServicePorts(t *testing.T) { tests := []struct { name string forwards map[int]model.Forward expected []string }{ { name: "services-with-port", forwards: map[int]model.Forward{ 80: {Local: 80, Remote: 8090}, 8080: {Local: 8080, Remote: 8090, ServiceName: "svc", Service: true}, ...
explode_data.jsonl/59029
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 468 }
[ 2830, 3393, 3062, 1860, 68273, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 2023, 4014, 2415, 18640, 60, 2528, 26676, 1606, 198, 197, 42400, 3056, 917, 198, 197, 59403, 197, 197, 515, 298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestBigStackCallbackSyscall(t *testing.T) { if _, err := exec.LookPath("gcc"); err != nil { t.Skip("skipping test: gcc is missing") } srcname, err := filepath.Abs("testdata/testprogcgo/bigstack_windows.c") if err != nil { t.Fatal("Abs failed: ", err) } tmpdir := t.TempDir() outname := "mydll.dll" cm...
explode_data.jsonl/82620
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 351 }
[ 2830, 3393, 15636, 4336, 7494, 32792, 6659, 1155, 353, 8840, 836, 8, 341, 743, 8358, 1848, 1669, 3883, 36851, 1820, 445, 70983, 5038, 1848, 961, 2092, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 25, 50917, 374, 7402, 1138, 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...
1
func TestIssue17098(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("drop table if exists t1, t2") tk.MustExec("create table t1(a char) collate utf8mb4_bin;") tk.MustExec("create table t2(a char) collate utf8mb4_bin;...
explode_data.jsonl/65535
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 213 }
[ 2830, 3393, 42006, 16, 22, 15, 24, 23, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewClient(t *testing.T) { var haltIf = func(err error) { if err != nil { t.Fatal(err) } } var cfg = &Config{ ConnectorType: endpoint.ConnectorTypeFake, } c, err := NewClient(cfg) haltIf(err) req := &certificate.Request{ Subject: pkix.Name{ CommonName: "client.venafi.example.com", O...
explode_data.jsonl/47755
{ "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, 3564, 2959, 1155, 353, 8840, 836, 8, 341, 2405, 26269, 2679, 284, 2915, 3964, 1465, 8, 341, 197, 743, 1848, 961, 2092, 341, 298, 3244, 26133, 3964, 340, 197, 197, 532, 197, 630, 2405, 13286, 284, 609, 2648, 515, 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 TestParseDuration(t *testing.T) { duration := parseDuration("24h", t) reference := 24 * time.Hour if duration.Duration != reference { t.Errorf("Expected %v, got %v\n", reference, duration.Duration) } }
explode_data.jsonl/44564
{ "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, 14463, 12945, 1155, 353, 8840, 836, 8, 341, 89300, 1669, 4715, 12945, 445, 17, 19, 71, 497, 259, 340, 197, 16291, 1669, 220, 17, 19, 353, 882, 73550, 271, 743, 8090, 33795, 961, 5785, 341, 197, 3244, 13080, 445, 18896, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateDoesNotChangeRouting(t *testing.T) { dc := testdataclient.New([]*eskip.Route{{Id: "route1", Path: "/some-path", Backend: "https://www.example.org"}}) tr, err := newTestRouting(dc) if err != nil { t.Error(err) return } defer tr.close() tr.log.Reset() dc.Update(nil, nil) if err := tr.waitFor...
explode_data.jsonl/58574
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 219 }
[ 2830, 3393, 4289, 21468, 2623, 4072, 24701, 1155, 353, 8840, 836, 8, 341, 87249, 1669, 1273, 691, 2972, 7121, 85288, 288, 13389, 58004, 2979, 764, 25, 330, 8966, 16, 497, 7933, 25, 3521, 14689, 33095, 497, 55260, 25, 330, 2428, 1110, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEndorserConnectionError(t *testing.T) { _, err := testProcessProposal(t, "grpc://"+testAddress) assert.NotNil(t, err, "Expected connection error without server running") statusError, ok := status.FromError(err) assert.True(t, ok, "Expected status error on failed connection") assert.Equal(t, status.Endors...
explode_data.jsonl/45093
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 138 }
[ 2830, 3393, 3727, 269, 799, 4526, 1454, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 1273, 7423, 98637, 1155, 11, 330, 56585, 1110, 5572, 1944, 4286, 340, 6948, 93882, 1155, 11, 1848, 11, 330, 18896, 3633, 1465, 2041, 3538, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestXlogGameVersion(t *testing.T) { tests := [][]string{ {"logfile", "any"}, {"logfile-git", "git"}, {"allgames-trunk", "git"}, {"cow-svn", "git"}, {"zap-master", "git"}, {"yak-0.13", "0.13"}, {"foo/0.9/bar", "0.9"}, {"logfile11", "0.11"}, {"yak02-pow", "0.2"}, } for _, test := range tests { ...
explode_data.jsonl/50446
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 55, 839, 4868, 5637, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 52931, 917, 515, 197, 197, 4913, 75566, 497, 330, 3767, 7115, 197, 197, 4913, 75566, 81749, 497, 330, 12882, 7115, 197, 197, 4913, 541, 34568, 10188, 3122, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFriendbot_Pay(t *testing.T) { mockSubmitTransaction := func(bot *Bot, channel chan TxResult, signed string) { txSuccess := horizon.TransactionSuccess{Env: signed} // we don't want to actually submit the tx here but emulate a success instead channel <- TxResult{ maybeTransactionSuccess: &txSuccess, ...
explode_data.jsonl/21504
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 759 }
[ 2830, 3393, 41637, 6331, 1088, 352, 1155, 353, 8840, 836, 8, 341, 77333, 8890, 8070, 1669, 2915, 50121, 353, 23502, 11, 5496, 26023, 39850, 2077, 11, 8499, 914, 8, 341, 197, 46237, 7188, 1669, 34074, 29284, 7188, 90, 14359, 25, 8499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetBytesResponsePacket(t *testing.T) { res := OracleResponsePacketData{ ClientID: "test", RequestID: 1, AnsCount: 1, RequestTime: 1589535020, ResolveTime: 1589535022, ResolveStatus: ResolveStatus(1), Result: mustDecodeString("4bb10e0000000000"), } require.Equal(t, []by...
explode_data.jsonl/33090
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 221 }
[ 2830, 3393, 1949, 7078, 2582, 16679, 1155, 353, 8840, 836, 8, 341, 10202, 1669, 21422, 2582, 16679, 1043, 515, 197, 71724, 915, 25, 414, 330, 1944, 756, 197, 73806, 915, 25, 257, 220, 16, 345, 197, 197, 69599, 2507, 25, 414, 220, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetManagedLiveObjs(t *testing.T) { cluster := newCluster(testPod, testRS, testDeploy) err := cluster.ensureSynced() assert.Nil(t, err) targetDeploy := strToUnstructured(` apiVersion: extensions/v1beta1 kind: Deployment metadata: name: helm-guestbook labels: app: helm-guestbook`) managedObjs, err...
explode_data.jsonl/75181
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 296 }
[ 2830, 3393, 1949, 27192, 20324, 4121, 2519, 1155, 353, 8840, 836, 8, 341, 197, 18855, 1669, 501, 28678, 8623, 23527, 11, 1273, 11451, 11, 1273, 69464, 340, 9859, 1669, 10652, 63065, 12154, 291, 741, 6948, 59678, 1155, 11, 1848, 692, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDepunct(t *testing.T) { tests := []struct { needCap bool in, want string }{ { needCap: true, in: "part__description", want: "Part__description", }, { needCap: true, in: "Part_description", want: "PartDescription", }, { needCap: false, in: "part_desc...
explode_data.jsonl/77378
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 646 }
[ 2830, 3393, 7839, 19931, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 197, 17046, 12903, 220, 1807, 198, 197, 17430, 11, 1366, 914, 198, 197, 59403, 197, 197, 515, 298, 197, 17046, 12903, 25, 830, 345, 298, 17430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateRepository(t *testing.T) { for idx, tt := range createRepoTests { tt := tt t.Run(fmt.Sprintf("%d", idx), func(t *testing.T) { t.Parallel() r := &mockRepositories{} s := &svc{rest: v3client{ Repositories: r, Users: tt.users, }} resp, err := s.CreateRepository(context.B...
explode_data.jsonl/10365
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 424 }
[ 2830, 3393, 4021, 4624, 1155, 353, 8840, 836, 8, 341, 2023, 7187, 11, 17853, 1669, 2088, 1855, 25243, 18200, 341, 197, 3244, 83, 1669, 17853, 198, 197, 3244, 16708, 28197, 17305, 4430, 67, 497, 7187, 701, 2915, 1155, 353, 8840, 836, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestPersistOutbreakEvent(t *testing.T) { db, mock, _ := sqlmock.New(sqlmock.QueryMatcherOption(sqlmock.QueryMatcherEqual)) defer db.Close() originator := "randomOrigin" locationID := "ABCDEFGH" startTime, _ := timestamp.TimestampProto(time.Now()) endTime, _ := timestamp.TimestampProto(time.Now()) severity...
explode_data.jsonl/64734
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 374 }
[ 2830, 3393, 61267, 2662, 8960, 1556, 1155, 353, 8840, 836, 8, 341, 20939, 11, 7860, 11, 716, 1669, 5704, 16712, 7121, 13148, 16712, 15685, 37554, 5341, 13148, 16712, 15685, 37554, 2993, 1171, 16867, 2927, 10421, 2822, 197, 8611, 850, 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 Test_Properties_ValidateNetworkPluginPlusPolicy(t *testing.T) { p := &Properties{} p.OrchestratorProfile = &OrchestratorProfile{} p.OrchestratorProfile.OrchestratorType = Kubernetes for _, config := range networkPluginPlusPolicyAllowed { p.OrchestratorProfile.KubernetesConfig = &KubernetesConfig{} p.Orche...
explode_data.jsonl/17866
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 583 }
[ 2830, 3393, 1088, 9249, 62, 17926, 12320, 11546, 21807, 13825, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 609, 7903, 16094, 3223, 90449, 331, 15111, 850, 8526, 284, 609, 2195, 331, 15111, 850, 8526, 16094, 3223, 90449, 331, 15111, 850, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func Test_K8sContextToOktetoUrl(t *testing.T) { var tests = []struct { name string in string want string }{ {name: "is-url", in: CloudURL, want: CloudURL}, {name: "is-okteto-context", in: "cloud_okteto_com", want: CloudURL}, {name: "is-empty", in: "", want: ""}, {name: "is-k8scontext", in: "minikube",...
explode_data.jsonl/53939
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 333 }
[ 2830, 3393, 10102, 23, 82, 1972, 1249, 46, 5840, 11023, 2864, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 11609, 914, 198, 197, 17430, 256, 914, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 47006, 25, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCtxTimeout(t *testing.T) { ctx, _ := NewCtx(nil).WithTimeout(50 * time.Millisecond) time.Sleep(100 * time.Millisecond) select { case <-ctx.Done(): default: t.Fatal("didn't time out") } }
explode_data.jsonl/42290
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 84 }
[ 2830, 3393, 23684, 7636, 1155, 353, 8840, 836, 8, 341, 20985, 11, 716, 1669, 1532, 23684, 27907, 568, 2354, 7636, 7, 20, 15, 353, 882, 71482, 340, 21957, 31586, 7, 16, 15, 15, 353, 882, 71482, 340, 38010, 341, 2722, 9119, 3773, 6042...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMysql56MakeBinlogEvent(t *testing.T) { input := []byte{1, 2, 3} want := replication.NewMysql56BinlogEvent([]byte{1, 2, 3}) if got := (&mysql56{}).MakeBinlogEvent(input); !reflect.DeepEqual(got, want) { t.Errorf("(&mysql56{}).MakeBinlogEvent(%#v) = %#v, want %#v", input, got, want) } }
explode_data.jsonl/11244
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 44, 14869, 20, 21, 8078, 28794, 839, 1556, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 3056, 3782, 90, 16, 11, 220, 17, 11, 220, 18, 532, 50780, 1669, 47791, 7121, 44, 14869, 20, 21, 28794, 839, 1556, 10556, 3782, 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...
2
func TestCoalesce(t *testing.T) { for k, tc := range []struct { in []string expect string }{ { in: []string{"", "", "foo"}, expect: "foo", }, { in: []string{"bar", "", "foo"}, expect: "bar", }, } { t.Run(fmt.Sprintf("case=%d", k), func(t *testing.T) { assert.EqualValues(t, tc...
explode_data.jsonl/27436
{ "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, 7339, 73250, 1155, 353, 8840, 836, 8, 341, 2023, 595, 11, 17130, 1669, 2088, 3056, 1235, 341, 197, 17430, 257, 3056, 917, 198, 197, 24952, 914, 198, 197, 59403, 197, 197, 515, 298, 17430, 25, 257, 3056, 917, 4913, 497, 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 TestHashFromByteSlices(t *testing.T) { testcases := map[string]struct { slices [][]byte expectHash string // in hex format }{ "nil": {nil, "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}, "empty": {[][]byte{}, "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca49599...
explode_data.jsonl/27631
{ "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, 6370, 3830, 7153, 50, 37414, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 2415, 14032, 60, 1235, 341, 197, 1903, 37414, 257, 52931, 3782, 198, 197, 24952, 6370, 914, 442, 304, 12371, 3561, 198, 197, 59403, 197, 197, 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 TestVolumeSnapshotDeleteAction(t *testing.T) { var args []string args = append(args, "3769855c-a102-11e7-b772-17b880d2f537") volumeSnapshotDeleteAction(volumeSnapshotDeleteCommand, args) }
explode_data.jsonl/13556
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 71 }
[ 2830, 3393, 18902, 15009, 6435, 2512, 1155, 353, 8840, 836, 8, 341, 2405, 2827, 3056, 917, 198, 31215, 284, 8737, 7356, 11, 330, 18, 22, 21, 24, 23, 20, 20, 66, 7409, 16, 15, 17, 12, 16, 16, 68, 22, 1455, 22, 22, 17, 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...
1
func TestLoadConfig(t *testing.T) { cfg := &DCRConfig{} parsedCfg := &DCRConfig{} tempDir, err := ioutil.TempDir("", "btctest") if err != nil { t.Fatalf("error creating temporary directory: %v", err) } defer os.RemoveAll(tempDir) filePath := filepath.Join(tempDir, "test.conf") rootParser := flags.NewParser(c...
explode_data.jsonl/71972
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 786 }
[ 2830, 3393, 5879, 2648, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 609, 5626, 49, 2648, 16094, 3223, 18112, 42467, 1669, 609, 5626, 49, 2648, 31483, 16280, 6184, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 12755, 67880, 1138, 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...
2
func TestGrossAmountRemittanceAmountRequired(t *testing.T) { gard := mockGrossAmountRemittanceDocument() gard.RemittanceAmount.Amount = "" require.EqualError(t, gard.Validate(), fieldError("Amount", ErrFieldRequired).Error()) }
explode_data.jsonl/41405
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 68 }
[ 2830, 3393, 38, 2128, 10093, 6590, 87191, 10093, 8164, 1155, 353, 8840, 836, 8, 341, 3174, 567, 1669, 7860, 38, 2128, 10093, 6590, 87191, 7524, 741, 3174, 567, 11398, 87191, 10093, 62192, 284, 35829, 17957, 12808, 1454, 1155, 11, 21881, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvalidAlgorithmsEC(t *testing.T) { _, err := newECDHRecipient("XYZ", nil) if err != ErrUnsupportedAlgorithm { t.Error("should return error on invalid algorithm") } _, err = newECDSASigner("XYZ", nil) if err != ErrUnsupportedAlgorithm { t.Error("should return error on invalid algorithm") } enc := ...
explode_data.jsonl/63201
{ "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, 7928, 2101, 18980, 7498, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 501, 36, 6484, 39, 74432, 445, 32196, 497, 2092, 340, 743, 1848, 961, 15495, 41884, 27847, 341, 197, 3244, 6141, 445, 5445, 470, 1465, 389, 8318...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue596AllowDirectoriesThatAreSubstringsOfEachOther(t *testing.T) { th := kusttest_test.NewKustTestHarness(t, "/app/overlays/aws-sandbox2.us-east-1") th.WriteK("/app/base", "") th.WriteK("/app/overlays/aws", ` bases: - ../../base `) th.WriteK("/app/overlays/aws-nonprod", ` bases: - ../aws `) th.WriteK("/...
explode_data.jsonl/78144
{ "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, 42006, 20, 24, 21, 18605, 56397, 4792, 11526, 3136, 18594, 2124, 4854, 11409, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 595, 590, 1944, 4452, 7121, 42, 590, 2271, 74248, 1155, 11, 3521, 676, 14, 1975, 63359, 41273, 1331, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDecomposersRandom(t *testing.T) { ds := []Decomposer{ FixedWindow{K: 2}, FixedWindow{K: 11}, FixedWindow{K: 16}, SlidingWindow{K: 2}, SlidingWindow{K: 7}, SlidingWindow{K: 12}, SlidingWindow{K: 7, Z: 3}, SlidingWindow{K: 7, S: true}, SlidingWindow{K: 7, Z: 3, S: true}, RunLength{T: 0}, ...
explode_data.jsonl/75057
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 436 }
[ 2830, 3393, 4900, 316, 966, 388, 13999, 1155, 353, 8840, 836, 8, 341, 83336, 1669, 3056, 4900, 316, 20071, 515, 197, 12727, 3286, 4267, 90, 42, 25, 220, 17, 1583, 197, 12727, 3286, 4267, 90, 42, 25, 220, 16, 16, 1583, 197, 12727, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDefaultFormat(t *testing.T) { testutils.WithTestServer(t, nil, func(t testing.TB, ts *testutils.TestServer) { handler := newTestHandler(t) ts.Register(raw.Wrap(handler), "echo") ctx, cancel := NewContext(time.Second) defer cancel() arg2, arg3, resp, err := raw.Call(ctx, ts.Server(), ts.HostPort(),...
explode_data.jsonl/78176
{ "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, 3675, 4061, 1155, 353, 8840, 836, 8, 341, 18185, 6031, 26124, 2271, 5475, 1155, 11, 2092, 11, 2915, 1155, 7497, 836, 33, 11, 10591, 353, 1944, 6031, 8787, 5475, 8, 341, 197, 53326, 1669, 501, 2271, 3050, 1155, 340, 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 TestGetPostsBefore(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() Client := th.Client post1 := th.CreatePost() post2 := th.CreatePost() post3 := th.CreatePost() post4 := th.CreatePost() post5 := th.CreatePost() posts, resp := Client.GetPostsBefore(th.BasicChannel.Id, post3.Id, 0, 100, ""...
explode_data.jsonl/5251
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2427 }
[ 2830, 3393, 1949, 19631, 10227, 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, 51172, 16, 1669, 270, 7251, 4133, 741, 51172, 17, 1669, 270, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTrimPrefixList(t *testing.T) { t.Parallel() tests := []struct { giveList []string givePrefix string want []string }{ { giveList: []string{"a"}, givePrefix: "b", want: []string{"a"}, }, { giveList: []string{"/c/d/e/"}, givePrefix: "/c/", want: []string{"...
explode_data.jsonl/81332
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 381 }
[ 2830, 3393, 25656, 14335, 852, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 3174, 533, 852, 256, 3056, 917, 198, 197, 3174, 533, 14335, 914, 198, 197, 50780, 981, 3056, 917, 198, 197, 59403...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTopDownInputValues(t *testing.T) { compiler := compileModules([]string{ `package z import data.a import input.req1 import input.req2 as req2as import input.req3.a.b import input.req4.a.b as req4as p = true { a[i] = x; req1.foo = x; req2as.bar = x; q[x] } q[x] { req1.foo = x; req2as.bar = x; r[x] } r[x] { ...
explode_data.jsonl/25220
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 666 }
[ 2830, 3393, 5366, 4454, 2505, 6227, 1155, 353, 8840, 836, 8, 341, 197, 33620, 1669, 19192, 28201, 10556, 917, 515, 197, 197, 63, 1722, 1147, 271, 474, 821, 5849, 198, 474, 1946, 48369, 16, 198, 474, 1946, 48369, 17, 438, 4232, 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...
1
func TestPassiveFailedConnectionAttemptIncrement(t *testing.T) { c := context.New(t, defaultMTU) defer c.Cleanup() stats := c.Stack().Stats() ep, err := c.Stack().NewEndpoint(tcp.ProtocolNumber, ipv4.ProtocolNumber, &c.WQ) if err != nil { t.Fatalf("NewEndpoint failed: %s", err) } c.EP = ep if err := c.EP.Bin...
explode_data.jsonl/76014
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 876 }
[ 2830, 3393, 12187, 533, 9408, 4526, 47052, 38311, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2266, 7121, 1155, 11, 1638, 8505, 52, 340, 16867, 272, 727, 60639, 2822, 79659, 1669, 272, 58646, 1005, 16635, 741, 96626, 11, 1848, 1669, 272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestKeyValueSetReturnsMap(t *testing.T) { input := "KEY1=AB,KEY2=CD" expected := map[string]string{"KEY1": "AB", "KEY2": "CD"} var s KeyValueString = nil err := s.Set(input) assert.Nil(t, err) assert.Equal(t, expected, map[string]string(s)) }
explode_data.jsonl/64725
{ "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, 72082, 1649, 16446, 2227, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 330, 4784, 16, 28, 1867, 11, 4784, 17, 28, 6484, 698, 42400, 1669, 2415, 14032, 30953, 4913, 4784, 16, 788, 330, 1867, 497, 330, 4784, 17, 788, 330, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTableSetDestinations(t *testing.T) { peerT := TableCreatePeer() pathT := TableCreatePath(peerT) ipv4t := NewTable(bgp.RF_IPv4_UC) destinations := make(map[string]*Destination) for _, path := range pathT { tableKey := ipv4t.tableKey(path.GetNlri()) dest := NewDestination(path.GetNlri(), 0) destinatio...
explode_data.jsonl/6676
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 2556, 1649, 34830, 12634, 1155, 353, 8840, 836, 8, 341, 197, 16537, 51, 1669, 6633, 4021, 30888, 741, 26781, 51, 1669, 6633, 4021, 1820, 63372, 51, 340, 197, 42676, 19, 83, 1669, 1532, 2556, 1883, 21888, 2013, 37, 16607, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestNodePublishVolumeBadArguments(t *testing.T) { // Create server and client connection s := newTestServer(t) defer s.Stop() // Make a call c := csi.NewNodeClient(s.Conn()) testargs := []struct { expectedErrorContains string req *csi.NodePublishVolumeRequest }{ { expectedErrorC...
explode_data.jsonl/51442
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 515 }
[ 2830, 3393, 1955, 50145, 18902, 17082, 19139, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 3538, 323, 2943, 3633, 198, 1903, 1669, 501, 2271, 5475, 1155, 340, 16867, 274, 30213, 2822, 197, 322, 7405, 264, 1618, 198, 1444, 1669, 272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestServiceValidate(t *testing.T) { ports := PortList{ {Name: "http", Port: 80, Protocol: ProtocolHTTP}, {Name: "http-alt", Port: 8080, Protocol: ProtocolHTTP}, } badPorts := PortList{ {Port: 80, Protocol: ProtocolHTTP}, {Name: "http-alt^", Port: 8080, Protocol: ProtocolHTTP}, {Name: "http", Port: -80...
explode_data.jsonl/56889
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 442 }
[ 2830, 3393, 1860, 17926, 1155, 353, 8840, 836, 8, 341, 197, 3394, 1669, 5776, 852, 515, 197, 197, 63121, 25, 330, 1254, 497, 5776, 25, 220, 23, 15, 11, 24572, 25, 24572, 9230, 1583, 197, 197, 63121, 25, 330, 1254, 33350, 497, 5776, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFileHelper_GetPathFromPathFileName_13(t *testing.T) { fh := FileHelper{} result, isEmpty, err := fh.GetPathFromPathFileName(" ") if err == nil { t.Error("Expected an error return from fh.GetPathFromPathFileName(\" \") " + "because the input parameter consists entirely of spaces. " + ...
explode_data.jsonl/14471
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 1703, 5511, 13614, 1820, 3830, 1820, 10903, 62, 16, 18, 1155, 353, 8840, 836, 8, 341, 220, 36075, 1669, 2887, 5511, 31483, 220, 1102, 11, 38948, 11, 1848, 1669, 36075, 2234, 1820, 3830, 1820, 10903, 445, 257, 59928, 220, 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...
4
func TestErrorOptionNotRecognized(t *testing.T) { type config struct { Var string `env:"VAR,not_supported!"` } cfg := &config{} assert.Error(t, env.Parse(cfg)) }
explode_data.jsonl/7503
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 67 }
[ 2830, 3393, 1454, 5341, 2623, 17915, 1506, 1155, 353, 8840, 836, 8, 341, 13158, 2193, 2036, 341, 197, 197, 3962, 914, 1565, 3160, 2974, 33040, 11, 1921, 57885, 0, 8805, 197, 630, 50286, 1669, 609, 1676, 16094, 6948, 6141, 1155, 11, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRoutes_mobileappsRoutes(t *testing.T) { t.Parallel() m := mux.NewRouter() mobileappsRoutes(m, nil) cases := []struct { req *http.Request vars map[string]string }{ { req: httptest.NewRequest("GET", "/new", nil), }, { req: httptest.NewRequest("GET", "/12345/edit", nil), }, { req: h...
explode_data.jsonl/41246
{ "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, 26653, 34491, 27635, 26653, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2109, 1669, 59807, 7121, 9523, 741, 2109, 3372, 27635, 26653, 1255, 11, 2092, 692, 1444, 2264, 1669, 3056, 1235, 341, 197, 24395, 220, 353, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2