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 TestUpgradeKymaOperationManager_OperationFailed(t *testing.T) { // given memory := storage.NewMemoryStorage() operations := memory.Operations() opManager := NewUpgradeKymaOperationManager(operations) op := fixUpgradeKymaOperation() err := operations.InsertUpgradeKymaOperation(op) require.NoError(t, err) e...
explode_data.jsonl/73201
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 199 }
[ 2830, 3393, 43861, 42, 1600, 64, 8432, 2043, 2232, 91774, 9408, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 2109, 4731, 1669, 5819, 7121, 10642, 5793, 741, 197, 38163, 1669, 4938, 13, 35120, 741, 39703, 2043, 1669, 1532, 43861, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewRequestFromInvitation(t *testing.T) { invitation := &Invitation{ Type: InvitationMsgType, ID: randomString(), Label: "Bob", RecipientKeys: []string{"8HH5gYEeNc3z7PYXmd54d4x6qAfCNrqQqEB3nS7Zfu7K"}, ServiceEndpoint: "https://localhost:8090", RoutingKeys: []...
explode_data.jsonl/2100
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2016 }
[ 2830, 3393, 3564, 1900, 3830, 15174, 7556, 1155, 353, 8840, 836, 8, 341, 197, 97530, 1669, 609, 15174, 7556, 515, 197, 27725, 25, 310, 83242, 6611, 929, 345, 197, 29580, 25, 1060, 4194, 703, 3148, 197, 82126, 25, 1843, 330, 32388, 756...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStateEnterProposeNoPrivValidator(t *testing.T) { config := configSetup(t) ctx, cancel := context.WithCancel(context.Background()) defer cancel() cs, _ := makeState(ctx, t, makeStateArgs{config: config, validators: 1}) cs.SetPrivValidator(ctx, nil) height, round := cs.Height, cs.Round // Listen for pro...
explode_data.jsonl/54257
{ "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, 1397, 6269, 2008, 960, 2753, 32124, 14256, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 2193, 21821, 1155, 340, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 2822, 71899, 11, 716, 1669, 1281, 1397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateContextCustom(t *testing.T) { t.Run("long_value", func(t *testing.T) { validateTransaction(t, func(tx *apm.Transaction) { // Context values are not indexed, so they're not truncated. tx.Context.SetCustom("x", strings.Repeat("x", 1025)) }) }) t.Run("reserved_key_chars", func(t *testing.T) {...
explode_data.jsonl/26976
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 168 }
[ 2830, 3393, 17926, 1972, 10268, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4825, 3142, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 7067, 8070, 1155, 11, 2915, 27301, 353, 391, 76, 29284, 8, 341, 298, 197, 322, 9608, 2750...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRegisterClaimKeyFailure(t *testing.T) { db, mock, _ := sqlmock.New(sqlmock.QueryMatcherOption(sqlmock.QueryMatcherEqual)) defer db.Close() identifier := "127.0.0.1" var maxConsecutiveClaimKeyFailures = config.AppConstants.MaxConsecutiveClaimKeyFailures // Roll back if insert fails mock.ExpectBegin() m...
explode_data.jsonl/64741
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1173 }
[ 2830, 3393, 8690, 45544, 1592, 17507, 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, 15909, 1669, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestDesmosCLIProfileEdit_noFlags(t *testing.T) { t.Parallel() f := InitFixtures(t) // Start Desmosd server proc := f.GDStart() defer proc.Stop(false) // Save key addresses for later use fooAddr := f.KeyAddress(keyFoo) // Later usage variables fooAcc := f.QueryAccount(fooAddr) startTokens := sdk.Tokens...
explode_data.jsonl/29800
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 698 }
[ 2830, 3393, 4896, 8631, 63959, 8526, 4036, 6536, 9195, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1166, 1669, 15690, 25958, 18513, 1155, 692, 197, 322, 5145, 3874, 8631, 67, 3538, 198, 197, 15782, 1669, 282, 1224, 35, 3479, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGossipFirstRange(t *testing.T) { defer leaktest.AfterTest(t)() defer log.Scope(t).Close(t) tc := testcluster.StartTestCluster(t, 3, base.TestClusterArgs{ ReplicationMode: base.ReplicationManual, }) defer tc.Stopper().Stop(context.Background()) errors := make(chan error, 1) descs := make(chan *ro...
explode_data.jsonl/1139
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1117 }
[ 2830, 3393, 38, 41473, 5338, 6046, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 16867, 1487, 77940, 1155, 568, 7925, 1155, 692, 78255, 1669, 1273, 18855, 12101, 2271, 28678, 1155, 11, 220, 18, 345, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestAgentConnectAuthorize_noTarget(t *testing.T) { t.Parallel() assert := assert.New(t) a := NewTestAgent(t.Name(), "") defer a.Shutdown() args := &structs.ConnectAuthorizeRequest{} req, _ := http.NewRequest("POST", "/v1/agent/connect/authorize", jsonReader(args)) resp := httptest.NewRecorder() _, err :=...
explode_data.jsonl/33666
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 16810, 14611, 37483, 6536, 6397, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 6948, 1669, 2060, 7121, 1155, 340, 11323, 1669, 1532, 2271, 16810, 1155, 2967, 1507, 14676, 16867, 264, 10849, 18452, 2822, 31215, 1669, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPingCrossProtocol(t *testing.T) { nonce, err := btcwire.RandomUint64() if err != nil { t.Errorf("RandomUint64: Error generating nonce: %v", err) } msg := btcwire.NewMsgPing(nonce) if msg.Nonce != nonce { t.Errorf("NewMsgPing: wrong nonce - got %v, want %v", msg.Nonce, nonce) } // Encode with lat...
explode_data.jsonl/67579
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 358 }
[ 2830, 3393, 69883, 28501, 20689, 1155, 353, 8840, 836, 8, 341, 197, 39593, 11, 1848, 1669, 86037, 35531, 26709, 21570, 21, 19, 741, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 13999, 21570, 21, 19, 25, 4600, 23163, 39676, 25, 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...
6
func TestAsyncCommitWithSchemaChange(t *testing.T) { if !*withRealTiKV { t.Skip("TODO: implement commit_ts calculation in unistore") } else { t.Skip("This test is unstable as depending on time.Sleep") } defer config.RestoreFunc()() config.UpdateGlobal(func(conf *config.Config) { conf.TiKVClient.AsyncCommit....
explode_data.jsonl/12498
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1133 }
[ 2830, 3393, 6525, 33441, 2354, 8632, 4072, 1155, 353, 8840, 836, 8, 341, 743, 753, 9, 4197, 12768, 45351, 82707, 341, 197, 3244, 57776, 445, 14732, 25, 4211, 5266, 25023, 21937, 304, 650, 380, 460, 1138, 197, 92, 770, 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 TestParseLabelAutoDiscoverySpecs(t *testing.T) { testCases := []struct { name string specs []string expected []labelAutoDiscoveryConfig expectedErr bool }{ { name: "ValidSpec", specs: []string{ "label:cluster-autoscaler-enabled=true,cluster-autoscaler-name=fake-cluster", "...
explode_data.jsonl/12793
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 714 }
[ 2830, 3393, 14463, 2476, 13253, 67400, 8327, 82, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 98100, 82, 981, 3056, 917, 198, 197, 42400, 262, 3056, 1502, 13253, 67400, 2648, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestArray(t *testing.T) { testCases := []ArrayTestCase{ { description: "as object", outputFormat: format.CaseLowerCamel, fields: []*gtly.Field{ { Name: "Prop1", DataType: gtly.FieldTypeString, }, { Name: "Prop2", DataType: gtly.FieldTypeInt, }, { N...
explode_data.jsonl/69507
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1352 }
[ 2830, 3393, 1857, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1857, 16458, 515, 197, 197, 515, 298, 42407, 25, 220, 330, 300, 1633, 756, 298, 21170, 4061, 25, 3561, 727, 519, 9053, 25406, 301, 3554, 298, 55276, 25, 29838, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSolana(t *testing.T) { sender := testutil.GenerateSolanaKeypair(t) dest := testutil.GenerateSolanaKeypair(t) txn := solana.NewTransaction( sender.Public().(ed25519.PublicKey), token.Transfer( sender.Public().(ed25519.PublicKey), dest.Public().(ed25519.PublicKey), sender.Public().(ed25519.Public...
explode_data.jsonl/11686
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 604 }
[ 2830, 3393, 48812, 3362, 1155, 353, 8840, 836, 8, 341, 1903, 1659, 1669, 1273, 1314, 57582, 48812, 3362, 6608, 1082, 1310, 1155, 340, 49616, 1669, 1273, 1314, 57582, 48812, 3362, 6608, 1082, 1310, 1155, 340, 3244, 42967, 1669, 2048, 3362,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNonResourceMatchNoSimilarity(t *testing.T) { test := &nonResourceMatchTest{ url: "first/second", matcher: "foo", expectedResult: false, } test.run(t) }
explode_data.jsonl/45781
{ "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, 8121, 4783, 8331, 2753, 34402, 487, 1155, 353, 8840, 836, 8, 341, 18185, 1669, 609, 6280, 4783, 8331, 2271, 515, 197, 19320, 25, 310, 330, 3896, 14, 5569, 756, 197, 2109, 28058, 25, 286, 330, 7975, 756, 197, 42400, 2077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestWatchDeleteResp(t *testing.T) { ctx := setupTest(t) defer ctx.teardownTest() rev := int64(1) key := "key" prevVal := []byte("prevVal") createResp := NewBytesWatchDelResp(key, prevVal, rev) Expect(createResp).NotTo(BeNil()) Expect(createResp.GetChangeType()).To(BeEquivalentTo(datasync.Delete)) Expect...
explode_data.jsonl/29438
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 206 }
[ 2830, 3393, 14247, 6435, 36555, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 6505, 2271, 1155, 340, 16867, 5635, 31853, 37496, 2271, 2822, 197, 7282, 1669, 526, 21, 19, 7, 16, 340, 23634, 1669, 330, 792, 698, 50728, 2208, 1669, 3056, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartStep_RunIfDeprovisioningInProgress(t *testing.T) { // given st := storage.NewMemoryStorage() step := NewStartStep(st.Operations(), st.Instances()) dOp := fixture.FixDeprovisioningOperation("d-op-id", "instance-id") dOp.State = domain.InProgress dOp.Temporary = true pOp := fixture.FixProvisioningOpe...
explode_data.jsonl/71257
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 271 }
[ 2830, 3393, 3479, 8304, 84158, 2679, 7839, 299, 13013, 287, 88711, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 18388, 1669, 5819, 7121, 10642, 5793, 741, 77093, 1669, 1532, 3479, 8304, 5895, 13, 35120, 1507, 357, 5337, 9436, 2398...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDeleteCredentials(t *testing.T) { c := &internal.MockedConnection{ MockSend: func(query []byte, options types.QueryOptions) *types.KuzzleResponse { parsedQuery := &types.KuzzleRequest{} json.Unmarshal(query, parsedQuery) assert.Equal(t, "security", parsedQuery.Controller) assert.Equal(t, "delet...
explode_data.jsonl/58819
{ "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, 6435, 27025, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 609, 10481, 24664, 291, 4526, 515, 197, 9209, 1176, 11505, 25, 2915, 10741, 3056, 3782, 11, 2606, 4494, 15685, 3798, 8, 353, 9242, 11352, 14945, 2582, 341, 298, 3223, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExemplar_Timestamp(t *testing.T) { ms := NewExemplar() assert.EqualValues(t, Timestamp(0), ms.Timestamp()) testValTimestamp := Timestamp(1234567890) ms.SetTimestamp(testValTimestamp) assert.EqualValues(t, testValTimestamp, ms.Timestamp()) }
explode_data.jsonl/32768
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 840, 25892, 277, 1139, 4702, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 840, 25892, 277, 741, 6948, 12808, 6227, 1155, 11, 32758, 7, 15, 701, 9829, 49024, 2398, 18185, 2208, 20812, 1669, 32758, 7, 16, 17, 18, 19, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetDevo(t *testing.T) { var env def.SessionData env.User.Action = CMD_DEVO env.Msg.Message = "M'Cheyne Bible Reading Plan" env = GetDevo(env) if len(env.Res.Message) == 0 { t.Errorf("Failed TestGetDevo, no message") } if len(env.Res.Affordances.Options) == 0 { t.Errorf("Failed TestGetDevo, no affo...
explode_data.jsonl/58611
{ "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, 1949, 1912, 3334, 1155, 353, 8840, 836, 8, 341, 2405, 6105, 707, 20674, 1043, 198, 57538, 7344, 11360, 284, 26913, 2881, 11169, 198, 57538, 30365, 8472, 284, 330, 44, 6, 26843, 81708, 16947, 17769, 9680, 1837, 57538, 284, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCertificateData(t *testing.T) { caData := []byte("ca-data") certData := []byte("cert-data") keyData := []byte("key-data") config := clientcmdapi.NewConfig() config.Clusters["clean"] = &clientcmdapi.Cluster{ Server: "https://localhost:8443", CertificateAuthorityData: caData, } conf...
explode_data.jsonl/56160
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 375 }
[ 2830, 3393, 33202, 1043, 1155, 353, 8840, 836, 8, 341, 197, 924, 1043, 1669, 3056, 3782, 445, 924, 13945, 1138, 1444, 529, 1043, 1669, 3056, 3782, 445, 12246, 13945, 1138, 23634, 1043, 1669, 3056, 3782, 445, 792, 13945, 5130, 25873, 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...
2
func TestInitProviders_pluginCache(t *testing.T) { t.Parallel() // This test reaches out to releases.hashicorp.com to access plugin // metadata, and download the null plugin, though the template plugin // should come from local cache. skipIfCannotAccessNetwork(t) fixturePath := filepath.Join("test-fixtures", "p...
explode_data.jsonl/34562
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 680 }
[ 2830, 3393, 3803, 37351, 23110, 8233, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 1096, 1273, 24491, 700, 311, 19232, 15101, 292, 30115, 905, 311, 2615, 9006, 198, 197, 322, 11160, 11, 323, 4139, 279, 845, 9006, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDumpToFileDefault(t *testing.T) { tmpDir := tmpPath(t) defer os.RemoveAll(tmpDir) v, _ := common.NewVersion("7.0.0") generator, err := NewGenerator("metricbeat-*", "metric beat ?!", fieldsYml, tmpDir, "7.0.0-alpha1", *v) if err != nil { t.Fatal(err) } _, err = generator.Generate() if err != nil { ...
explode_data.jsonl/3908
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 195 }
[ 2830, 3393, 51056, 41550, 3675, 1155, 353, 8840, 836, 8, 341, 20082, 6184, 1669, 4174, 1820, 1155, 340, 16867, 2643, 84427, 10368, 6184, 692, 5195, 11, 716, 1669, 4185, 7121, 5637, 445, 22, 13, 15, 13, 15, 1138, 3174, 15312, 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 TestBasic(t *testing.T) { conf := &Config{ Host: "127.0.0.1", Port: 8500, GossipInterval: 1000 * time.Millisecond, } n := 3 cs := newN(t, n, conf) defer cleanup(cs) // Seed() is pretty fast <-time.Tick(10 * conf.GossipInterval) for _, c := range cs { if len(c.Alive(true)) < n ...
explode_data.jsonl/22694
{ "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, 15944, 1155, 353, 8840, 836, 8, 341, 67850, 1669, 609, 2648, 515, 197, 197, 9296, 25, 1843, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 756, 197, 98459, 25, 1843, 220, 23, 20, 15, 15, 345, 197, 9600, 41473, 10256, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestPodConstraintsFunc(t *testing.T) { testCases := map[string]struct { pod *api.Pod required []api.ResourceName err string }{ "init container resource invalid": { pod: &api.Pod{ Spec: api.PodSpec{ InitContainers: []api.Container{{ Resources: api.ResourceRequirements{ R...
explode_data.jsonl/10755
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 970 }
[ 2830, 3393, 23527, 12925, 9626, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 3223, 347, 414, 353, 2068, 88823, 198, 197, 58183, 3056, 2068, 20766, 675, 198, 197, 9859, 414, 914, 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...
6
func Test_scsi_IsDeviceExist(t *testing.T) { type args struct { ctx context.Context device string } ctx := context.Background() defaultArgs := args{ctx: ctx, device: mh.ValidDeviceName} ctrl := gomock.NewController(t) defer ctrl.Finish() mocks := mh.MockHelper{ Ctrl: ctrl, OSStatCallPath...
explode_data.jsonl/65978
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 635 }
[ 2830, 3393, 643, 63229, 31879, 6985, 25613, 1155, 353, 8840, 836, 8, 1476, 13158, 2827, 2036, 341, 197, 20985, 262, 2266, 9328, 198, 197, 54719, 914, 198, 197, 630, 20985, 1669, 2266, 19047, 741, 11940, 4117, 1669, 2827, 90, 3773, 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 TestDiscoveryMechanismTypeUnmarshalJSON(t *testing.T) { tests := []struct { name string js string want DiscoveryMechanismType wantErr bool }{ { name: "eds", js: `"EDS"`, want: DiscoveryMechanismTypeEDS, }, { name: "dns", js: `"LOGICAL_DNS"`, want: DiscoveryMechanism...
explode_data.jsonl/52607
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 417 }
[ 2830, 3393, 67400, 57067, 67813, 929, 1806, 27121, 5370, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 95636, 414, 914, 198, 197, 50780, 262, 38093, 57067, 67813, 929, 198, 197, 50780, 7747,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReturns503IfThereAreErrorChecks(t *testing.T) { recorder := httptest.NewRecorder() req, err := http.NewRequest("GET", "https://fakeurl.com/debug/health", nil) if err != nil { t.Errorf("Failed to create request.") } // Create a manual error Register("some_check", CheckFunc(func() error { return erro...
explode_data.jsonl/56024
{ "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, 16446, 20, 15, 18, 2679, 3862, 11526, 1454, 49820, 1155, 353, 8840, 836, 8, 341, 67904, 1358, 1669, 54320, 70334, 7121, 47023, 2822, 24395, 11, 1848, 1669, 1758, 75274, 445, 3806, 497, 330, 2428, 1110, 30570, 1085, 905, 6747...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWatch(t *testing.T) { storage, _, fakeClient := newStorage(t) test := registrytest.New(t, fakeClient, storage.Etcd) test.TestWatch( validDaemonSet, // matching labels []labels.Set{ {"a": "b"}, }, // not matching labels []labels.Set{ {"a": "c"}, {"foo": "bar"}, }, // matching fields ...
explode_data.jsonl/56661
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 206 }
[ 2830, 3393, 14247, 1155, 353, 8840, 836, 8, 341, 197, 16172, 11, 8358, 12418, 2959, 1669, 501, 5793, 1155, 340, 18185, 1669, 19424, 1944, 7121, 1155, 11, 12418, 2959, 11, 5819, 5142, 83, 4385, 340, 18185, 8787, 14247, 1006, 197, 56322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseURL(t *testing.T) { type args struct { URL string } tests := []struct { name string args args want *url.URL wantErr bool }{ { name: "Test ParseURL 1", args: args{URL: "https://github.com/nikoksr/proji"}, want: &url.URL{ Scheme: "https", Host: "github.com", P...
explode_data.jsonl/62910
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 765 }
[ 2830, 3393, 14463, 3144, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 79055, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 31215, 262, 2827, 198, 197, 50780, 262, 353, 1085, 20893, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGrpc_GetParaTxByHeight(t *testing.T) { qapi.On("GetParaTxByHeight", mock.Anything, mock.Anything, mock.Anything).Return(nil, nil) _, err := g.GetParaTxByHeight(getOkCtx(), &pb.ReqParaTxByHeight{}) assert.NoError(t, err) }
explode_data.jsonl/340
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 6464, 3992, 13614, 30205, 31584, 1359, 3640, 1155, 353, 8840, 836, 8, 341, 18534, 2068, 8071, 445, 1949, 30205, 31584, 1359, 3640, 497, 7860, 13311, 1596, 11, 7860, 13311, 1596, 11, 7860, 13311, 1596, 568, 5598, 27907, 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...
1
func TestVersionedTreeProofs(t *testing.T) { require := require.New(t) tree := NewVersionedTree(db.NewMemDB(), 0) tree.Set([]byte("k1"), []byte("v1")) tree.Set([]byte("k2"), []byte("v1")) tree.Set([]byte("k3"), []byte("v1")) tree.SaveVersion() root1 := tree.Hash() tree.Set([]byte("k2"), []byte("v2")) tree.S...
explode_data.jsonl/47380
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 676 }
[ 2830, 3393, 5637, 291, 6533, 31076, 82, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 340, 51968, 1669, 1532, 5637, 291, 6533, 9791, 7121, 18816, 3506, 1507, 220, 15, 692, 51968, 4202, 10556, 3782, 445, 74, 16, 3975, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUserPermDelete(t *testing.T) { th := Setup().InitBasic() Client := th.BasicClient team := &model.Team{DisplayName: "Name", Name: "z-z-" + model.NewId() + "a", Email: "test@nowhere.com", Type: model.TEAM_OPEN} team = Client.Must(Client.CreateTeam(team)).Data.(*model.Team) user1 := &model.User{Email: mode...
explode_data.jsonl/13816
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 600 }
[ 2830, 3393, 1474, 81245, 6435, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 71724, 1669, 270, 48868, 2959, 271, 197, 9196, 1669, 609, 2528, 65842, 90, 26456, 25, 330, 675, 497, 3988, 25, 330, 89, 9141, 276...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGlobalAppNotificationSettings(t *testing.T) { runWithMemberTypes(t, func(mt chat1.ConversationMembersType) { switch mt { case chat1.ConversationMembersType_IMPTEAMNATIVE: default: return } ctc := makeChatTestContext(t, "GlobalAppNotificationSettings", 1) defer ctc.cleanup() user := ctc.users...
explode_data.jsonl/63727
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 623 }
[ 2830, 3393, 11646, 2164, 11196, 6086, 1155, 353, 8840, 836, 8, 341, 56742, 2354, 9366, 4173, 1155, 11, 2915, 81618, 6236, 16, 4801, 22323, 24371, 929, 8, 341, 197, 8961, 11965, 341, 197, 2722, 6236, 16, 4801, 22323, 24371, 929, 97415, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_read_int_from_null(t *testing.T) { type TestObject struct { F1 int8 F2 int16 F3 int32 F4 int64 F5 int F6 uint8 F7 uint16 F8 uint32 F9 uint64 F10 uint F11 float32 F12 float64 F13 uintptr } should := require.New(t) obj := TestObject{} err := Unmarshal([]byte(`{ "f1":nu...
explode_data.jsonl/51188
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 280 }
[ 2830, 3393, 6443, 4042, 5673, 15162, 1155, 353, 8840, 836, 8, 1476, 13158, 3393, 1190, 2036, 341, 197, 12727, 16, 220, 526, 23, 198, 197, 12727, 17, 220, 526, 16, 21, 198, 197, 12727, 18, 220, 526, 18, 17, 198, 197, 12727, 19, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPluginStart(t *testing.T) { fixture := newTestFixture(t, nil) fixture.server.ch = make(chan UpdateRequestV1) defer fixture.server.stop() ctx := context.Background() fixture.plugin.Start(ctx) defer fixture.plugin.Stop(ctx) // Start will trigger a status update when the plugin state switches // from ...
explode_data.jsonl/27521
{ "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, 11546, 3479, 1155, 353, 8840, 836, 8, 1476, 1166, 12735, 1669, 501, 69356, 1155, 11, 2092, 340, 1166, 12735, 12638, 5329, 284, 1281, 35190, 5549, 1900, 53, 16, 340, 16867, 12507, 12638, 13227, 2822, 20985, 1669, 2266, 19047, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntUnmarshal(t *testing.T) { t.Parallel() for _, b := range []string{`"0x10"`, `16`, `"16"`} { var i Int if err := json.Unmarshal([]byte(b), &i); err != nil { t.Error(b+":", err) } else if i.Int64() != 16 { t.Error(b+": expected 16, got", i.Int64()) } } }
explode_data.jsonl/80659
{ "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, 1072, 1806, 27121, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 8358, 293, 1669, 2088, 3056, 917, 90, 63, 1, 15, 87, 16, 15, 1, 7808, 1565, 16, 21, 7808, 53305, 16, 21, 39917, 92, 341, 197, 2405, 600, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPost(t *testing.T) { Convey("Initialize database", t, func() { model.DBName = fmt.Sprintf("ding-testdb-%s", time.Now().Format("20060102T150405")) model.Initialize("localhost", true) Convey("When the post is not found", func() { ctx := mockContext(nil, "GET", "/someslug/") ctx.App.ServeHTTP(ctx.Re...
explode_data.jsonl/30546
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 320 }
[ 2830, 3393, 4133, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 9928, 4625, 497, 259, 11, 2915, 368, 341, 197, 19727, 22537, 675, 284, 8879, 17305, 445, 6968, 16839, 1999, 11069, 82, 497, 882, 13244, 1005, 4061, 445, 17, 15, 15, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIterate(t *testing.T) { t.Parallel() sessionManager := New() mux := http.NewServeMux() mux.HandleFunc("/put", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { sessionManager.Put(r.Context(), "foo", r.URL.Query().Get("foo")) })) for i := 0; i < 3; i++ { ts := newTestServer(t, session...
explode_data.jsonl/457
{ "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, 8537, 349, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 25054, 2043, 1669, 1532, 2822, 2109, 2200, 1669, 1758, 7121, 60421, 44, 2200, 741, 2109, 2200, 63623, 4283, 628, 497, 1758, 89164, 18552, 3622, 1758, 37508, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUPositionMarginChangeHistory(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip("skipping test: api keys not set") } _, err := b.UPositionMarginChangeHistory(context.Background(), currency.NewPair(currency.BTC, currency.USDT), "add", 5, time.Time{}, time.Time{}) if err != nil { t.Error(err)...
explode_data.jsonl/76585
{ "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, 3124, 2113, 21681, 4072, 13424, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 25, 6330, 6894, 537, 738, 1138, 197, 532, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOCIRequestSigner_HTTPRequest(t *testing.T) { s := ociRequestSigner{ KeyProvider: testKeyProvider{}, GenericHeaders: defaultGenericHeaders, ShouldHashBody: defaultBodyHashPredicate, BodyHeaders: defaultBodyHeaders, } r, err := http.NewRequest("GET", "http://localhost:7000/api", nil) assert.No...
explode_data.jsonl/64275
{ "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, 63983, 1900, 7264, 261, 34954, 1900, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 93975, 1900, 7264, 261, 515, 197, 55242, 5179, 25, 262, 1273, 1592, 5179, 38837, 197, 9600, 3469, 10574, 25, 1638, 19964, 10574, 345, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStringArrayScanUnsupported(t *testing.T) { var arr StringArray err := arr.Scan(true) if err == nil { t.Fatal("Expected error when scanning from bool") } if !strings.Contains(err.Error(), "bool to StringArray") { t.Errorf("Expected type to be mentioned when scanning, got %q", err) } }
explode_data.jsonl/5332
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 703, 1857, 26570, 41884, 1155, 353, 8840, 836, 8, 341, 2405, 2890, 923, 1857, 198, 9859, 1669, 2890, 54874, 3715, 692, 743, 1848, 621, 2092, 341, 197, 3244, 26133, 445, 18896, 1465, 979, 35101, 504, 1807, 1138, 197, 532, 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...
3
func TestPauseResume(t *testing.T) { fctesting.RequiresRoot(t) cases := []struct { name string state func(m *Machine, ctx context.Context) }{ { name: "PauseVM", state: func(m *Machine, ctx context.Context) { err := m.PauseVM(ctx) require.NoError(t, err) }, }, { name: "ResumeVM", st...
explode_data.jsonl/70449
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1110 }
[ 2830, 3393, 28391, 28563, 1155, 353, 8840, 836, 8, 341, 1166, 302, 59855, 85012, 8439, 1155, 692, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 24291, 2915, 1255, 353, 21605, 11, 5635, 2266, 9328, 340, 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 TestMetricAccumulationSpotCheck(t *testing.T) { m := createMetricsForTesting() m.RecordLegacyImps(pbsmetrics.Labels{}, 1) m.RecordLegacyImps(pbsmetrics.Labels{}, 2) m.RecordLegacyImps(pbsmetrics.Labels{}, 3) expectedValue := float64(1 + 2 + 3) assertCounterValue(t, "", "impressionsLegacy", m.impressionsLeg...
explode_data.jsonl/13961
{ "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, 54310, 14603, 372, 2914, 47049, 3973, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1855, 27328, 2461, 16451, 2822, 2109, 49959, 77415, 25216, 82, 1295, 1279, 43262, 4679, 82, 22655, 220, 16, 340, 2109, 49959, 77415, 25216, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRestClientMetadataError(t *testing.T) { rest := NewRestClientFromClient(&fakeMetadataErrorClient{}) metadata, err := rest.GetResponse(endpoints.TaskMetadataPath) require.Error(t, err) require.Nil(t, metadata) }
explode_data.jsonl/37455
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 74 }
[ 2830, 3393, 12416, 2959, 14610, 1454, 1155, 353, 8840, 836, 8, 341, 197, 3927, 1669, 1532, 12416, 2959, 3830, 2959, 2099, 30570, 14610, 1454, 2959, 37790, 2109, 7603, 11, 1848, 1669, 2732, 76619, 15076, 7706, 28258, 14610, 1820, 692, 1795...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRecordTranscode(t *testing.T) { conn := testutil.MustConnectPgx(t) defer testutil.MustClose(t, conn) tests := []struct { sql string expected pgtype.Record }{ { sql: `select row()`, expected: pgtype.Record{ Fields: []pgtype.Value{}, Status: pgtype.Present, }, }, { sql: `s...
explode_data.jsonl/26139
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1044 }
[ 2830, 3393, 6471, 3167, 1851, 1155, 353, 8840, 836, 8, 341, 32917, 1669, 1273, 1314, 50463, 14611, 47, 59957, 1155, 340, 16867, 1273, 1314, 50463, 7925, 1155, 11, 4534, 692, 78216, 1669, 3056, 1235, 341, 197, 30633, 414, 914, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestConfig(t *testing.T) { Expect := NewGomegaWithT(t).Expect for _, tc := range []struct { name string flags []string expected *Config expectError bool }{ { name: "defaults", flags: []string{}, expected: &Config{ Auth: &AuthConfig{ Basic: &BasicAuthConfig{}, J...
explode_data.jsonl/67100
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2905 }
[ 2830, 3393, 2648, 1155, 353, 8840, 836, 8, 341, 35911, 1669, 1532, 38, 32696, 2354, 51, 1155, 568, 17536, 271, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 59516, 981, 3056, 917, 198, 197, 42400, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTypeFile(t *testing.T) { t.Run("fullpath", func(t *testing.T) { if runtime.GOOS == "windows" { t.Skip("unittest not consistent on windows, skipping.") } tempdir, err := ioutil.TempDir("", "logutil-file") require.NoError(t, err) filename := filepath.Join(tempdir, "test.log") closer, err := u....
explode_data.jsonl/32894
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 906 }
[ 2830, 3393, 929, 1703, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 8878, 2343, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 743, 15592, 97574, 3126, 621, 330, 27077, 1, 341, 298, 3244, 57776, 445, 91005, 537, 12966, 389, 11030, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateModel_WithAdditional(t *testing.T) { specDoc, err := loads.Spec("../fixtures/codegen/todolist.models.yml") require.NoError(t, err) definitions := specDoc.Spec().Definitions k := "WithAdditional" schema := definitions[k] opts := opts() genModel, err := makeGenDefinition(k, "models", schema, spec...
explode_data.jsonl/2513
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 792 }
[ 2830, 3393, 31115, 1712, 62, 2354, 29019, 1155, 353, 8840, 836, 8, 341, 98100, 9550, 11, 1848, 1669, 20907, 36473, 17409, 45247, 46928, 4370, 5523, 347, 34675, 8235, 33936, 1138, 17957, 35699, 1155, 11, 1848, 692, 7452, 4054, 82, 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_Jssdk(t *testing.T) { as := assert.New(t) t.Run("", func(t *testing.T) { res, _, err := AppAllPermission.Ins().Jssdk.GetJssdkTicket(ctx, &lark.GetJssdkTicketReq{}) as.Nil(err) as.NotNil(res) as.NotEmpty(res.Ticket) }) t.Run("", func(t *testing.T) { res, err := AppAllPermission.Ins().Jssdk.Gene...
explode_data.jsonl/28851
{ "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, 10598, 778, 7584, 1155, 353, 8840, 836, 8, 341, 60451, 1669, 2060, 7121, 1155, 692, 3244, 16708, 19814, 2915, 1155, 353, 8840, 836, 8, 341, 197, 10202, 11, 8358, 1848, 1669, 1845, 2403, 14966, 5337, 82, 1005, 41, 778, 7584...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCrossStructLteFieldValidation(t *testing.T) { type Inner struct { CreatedAt *time.Time String string Int int Uint uint Float float64 Array []string } type Test struct { Inner *Inner CreatedAt *time.Time `validate:"ltecsfield=Inner.CreatedAt"` String string ...
explode_data.jsonl/77225
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1389 }
[ 2830, 3393, 28501, 9422, 43, 665, 1877, 13799, 1155, 353, 8840, 836, 8, 1476, 13158, 36356, 2036, 341, 197, 84062, 1655, 353, 1678, 16299, 198, 197, 4980, 262, 914, 198, 197, 57152, 981, 526, 198, 197, 15980, 396, 414, 2622, 198, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_reconcileBECPULimit(t *testing.T) { type args struct { podMeta *statesinformer.PodMeta podCurCFS int64 containerCurCFS map[string]int64 wantPodCFSQuota int64 wantContainerCFSQuota map[string]int64 } tests := []struct { name string args args }{ { nam...
explode_data.jsonl/38230
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1725 }
[ 2830, 3393, 1288, 40446, 457, 11594, 7123, 1094, 2353, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 3223, 347, 12175, 2290, 353, 32069, 258, 34527, 88823, 12175, 198, 197, 3223, 347, 16704, 34, 8485, 1797, 526, 21, 19, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestOperator(t *testing.T) { testdata := []struct { input string output []token }{ {`< (:comment (:nested :) :) `, []token{{`<`, tokOperator}}}, {`"hello"`, []token{{"hello", tokString}}}, {`'hello'`, []token{{"hello", tokString}}}, {`< `, []token{{`<`, tokOperator}}}, {`<= `, []token{{`<=`, tokOp...
explode_data.jsonl/36796
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 663 }
[ 2830, 3393, 18461, 1155, 353, 8840, 836, 8, 341, 18185, 691, 1669, 3056, 1235, 341, 197, 22427, 220, 914, 198, 197, 21170, 3056, 5839, 198, 197, 59403, 197, 197, 90, 63, 27, 29254, 6182, 29254, 59271, 25956, 25956, 90190, 3056, 5839, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInput(t *testing.T) { wfCtx := mockContext(t) r := require.New(t) paramValue, err := wfCtx.MakeParameter(map[string]interface{}{ "name": "foo", }) r.NoError(err) score, err := paramValue.MakeValue(`score: 99`) r.NoError(err) err = wfCtx.SetVar(score, "foo") r.NoError(err) ready, err := value.NewVal...
explode_data.jsonl/53513
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 341 }
[ 2830, 3393, 2505, 1155, 353, 8840, 836, 8, 341, 6692, 69, 23684, 1669, 7860, 1972, 1155, 340, 7000, 1669, 1373, 7121, 1155, 340, 36037, 1130, 11, 1848, 1669, 41248, 23684, 50133, 4971, 9147, 14032, 31344, 67066, 197, 197, 31486, 788, 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...
1
func TestSValueBoundaries(t *testing.T) { doTestSValueBoundaries(t, 2, 2, 2) doTestSValueBoundaries(t, 2, 2, -2) doTestSValueBoundaries(t, 16, 4, 8) doTestSValueBoundaries(t, 16, 4, -8) }
explode_data.jsonl/52623
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 3393, 50, 1130, 19568, 5431, 1155, 353, 8840, 836, 8, 341, 19935, 2271, 50, 1130, 19568, 5431, 1155, 11, 220, 17, 11, 220, 17, 11, 220, 17, 340, 19935, 2271, 50, 1130, 19568, 5431, 1155, 11, 220, 17, 11, 220, 17, 11, 481, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListChartVersions(t *testing.T) { chartVersions := make(chartserver.ChartVersions, 0) err := handleAndParse(&testingRequest{ url: "/api/chartrepo/library/charts/harbor", method: http.MethodGet, credential: projAdmin, }, &chartVersions) if err != nil { t.Fatal(err) } if len(chartVersi...
explode_data.jsonl/74130
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 158 }
[ 2830, 3393, 852, 14488, 69015, 1155, 353, 8840, 836, 8, 341, 197, 15941, 69015, 1669, 1281, 62480, 4030, 42667, 69015, 11, 220, 15, 340, 9859, 1669, 3705, 3036, 14463, 2099, 8840, 1900, 515, 197, 19320, 25, 286, 3521, 2068, 73941, 23476...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRankingRepository_CurrentRegistration(t *testing.T) { sqlHandler, cleanup := setupTestingSuite(t) defer cleanup() repo := repositories.NewRankingRepository(sqlHandler) contestRepo := repositories.NewContestRepository(sqlHandler) user := createTestUsers(t, sqlHandler, 1)[0] languages := domain.LanguageC...
explode_data.jsonl/18799
{ "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, 22550, 287, 4624, 40735, 23365, 1155, 353, 8840, 836, 8, 341, 30633, 3050, 11, 21290, 1669, 6505, 16451, 28000, 1155, 340, 16867, 21290, 2822, 17200, 5368, 1669, 49657, 7121, 22550, 287, 4624, 13148, 3050, 340, 197, 65717, 252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetDescFailed2(t *testing.T) { commandMock := new(commandDescMock) commandMock.On("GetCurrentBranch").Return("test-branch", nil) commandMock.On("GetConfigValue").Return("test-value", errors.New("test error")) p := &DescriptionImpl{ Command: commandMock, } result, err := p.GetDesc() assert := assert....
explode_data.jsonl/50028
{ "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, 1949, 11065, 9408, 17, 1155, 353, 8840, 836, 8, 341, 45566, 11571, 1669, 501, 15143, 11065, 11571, 340, 45566, 11571, 8071, 445, 62981, 18197, 1827, 5598, 445, 1944, 12, 17940, 497, 2092, 340, 45566, 11571, 8071, 445, 1949, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApplicationListener_OnDelete(t *testing.T) { t.Run("Success", func(t *testing.T) { // given gqlApi := new(gqlschema.API) extractor := automock.NewExtractor() unstructuredApi := new(unstructured.Unstructured) api := new(v1alpha2.Api) extractor.On("Do", unstructuredApi).Return(api, nil).Once() c...
explode_data.jsonl/23751
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 732 }
[ 2830, 3393, 4988, 2743, 35482, 6435, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 7188, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 322, 2661, 198, 197, 3174, 1470, 6563, 1669, 501, 3268, 1470, 17349, 24922, 340, 197, 8122, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteSubscription(t *testing.T) { config.SetUpMockConfig(t) defer func() { err := common.TruncateDB(common.InMemory) if err != nil { t.Fatalf("error: %v", err) } err = common.TruncateDB(common.OnDisk) if err != nil { t.Fatalf("error: %v", err) } }() mockTargetandPlugin(t) storeTestEve...
explode_data.jsonl/18101
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 406 }
[ 2830, 3393, 6435, 33402, 1155, 353, 8840, 836, 8, 341, 25873, 4202, 2324, 11571, 2648, 1155, 340, 16867, 2915, 368, 341, 197, 9859, 1669, 4185, 8240, 26900, 3506, 57802, 5337, 10642, 340, 197, 743, 1848, 961, 2092, 341, 298, 3244, 30762...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccessors(t *testing.T) { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() mockDB := mocks.NewMockDB(mockCtrl) store := dbadapter.Store{mockDB} key := []byte("test") value := []byte("testvalue") require.Panics(t, func() { store.Set(nil, []byte("value")) }, "setting a nil key should panic") ...
explode_data.jsonl/54076
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 917 }
[ 2830, 3393, 6054, 1087, 1155, 353, 8840, 836, 8, 341, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 7860, 15001, 991, 18176, 2822, 77333, 3506, 1669, 68909, 7121, 11571, 3506, 30389, 15001, 340, 57279, 1669, 2927, 1973...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetPluginAssetURL(t *testing.T) { siteURL := "https://mattermost.example.com" api := &plugintest.API{} api.On("GetConfig").Return(&model.Config{ServiceSettings: model.ServiceSettings{SiteURL: &siteURL}}) p := &plugin.HelpersImpl{API: api} t.Run("Valid asset directory was provided", func(t *testing.T) { ...
explode_data.jsonl/68788
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 963 }
[ 2830, 3393, 1949, 11546, 16604, 3144, 1155, 353, 8840, 836, 8, 341, 1903, 632, 3144, 1669, 330, 2428, 1110, 58965, 3562, 7724, 905, 698, 54299, 1669, 609, 47474, 396, 477, 24922, 16094, 54299, 8071, 445, 1949, 2648, 1827, 5598, 2099, 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 TestStatus(t *testing.T) { requestSession("first", 1) rsp, err := http.Post(createUrl("/status"), "", nil) AssertThat(t, err, Is{nil}) AssertThat(t, rsp, Code{http.StatusOK}) }
explode_data.jsonl/65282
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 2522, 1155, 353, 8840, 836, 8, 341, 23555, 5283, 445, 3896, 497, 220, 16, 340, 7000, 2154, 11, 1848, 1669, 1758, 23442, 32602, 2864, 4283, 2829, 3975, 7342, 2092, 340, 18017, 4792, 1155, 11, 1848, 11, 2160, 90, 8385, 3518,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDirectoryRolesClient(t *testing.T) { rs := test.RandomString() // set up groups test client groupsClient := GroupsClientTest{ connection: test.NewConnection(auth.MsGraph, auth.TokenVersion2), randomString: rs, } groupsClient.client = msgraph.NewGroupsClient(groupsClient.connection.AuthConfig.TenantI...
explode_data.jsonl/79671
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 719 }
[ 2830, 3393, 9310, 25116, 2959, 1155, 353, 8840, 836, 8, 341, 41231, 1669, 1273, 26709, 703, 741, 197, 322, 738, 705, 5203, 1273, 2943, 198, 44260, 82, 2959, 1669, 34580, 2959, 2271, 515, 197, 54590, 25, 256, 1273, 7121, 4526, 27435, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSuObjectPack(t *testing.T) { ob := &SuObject{} check := func() { t.Helper() s := Pack(ob) assert.T(t).This(Unpack(s)).Is(ob) } check() ob.Add(SuInt(1)) check() ob.Add(SuInt(2)) check() ob.Set(SuStr("a"), SuInt(3)) check() ob.Set(SuStr("b"), SuInt(4)) check() ob.Add(SuStr(strings.Repeat("hell...
explode_data.jsonl/7121
{ "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, 36459, 1190, 30684, 1155, 353, 8840, 836, 8, 341, 63353, 1669, 609, 36459, 1190, 16094, 25157, 1669, 2915, 368, 341, 197, 3244, 69282, 741, 197, 1903, 1669, 13795, 49595, 340, 197, 6948, 836, 1155, 568, 1986, 49289, 4748, 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 TestFormatReturnParam(t *testing.T) { // given m := &sysl.Module{ Apps: map[string]*sysl.Application{ "test": { Types: map[string]*sysl.Type{ "User": { Attrs: make(map[string]*sysl.Attribute), }, }, }, }, } // when actual := formatReturnParam(m, "test.User") assert.Equal(t...
explode_data.jsonl/58742
{ "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, 4061, 5598, 2001, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 2109, 1669, 609, 7791, 75, 26958, 515, 197, 197, 53602, 25, 2415, 14032, 8465, 7791, 75, 17521, 515, 298, 197, 1, 1944, 788, 341, 571, 197, 4173, 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 TestGetLeaseClaimRequestExpiredOwner(t *testing.T) { kclConfig := cfg.NewKinesisClientLibConfig("appName", "test", "us-west-2", "abc"). WithInitialPositionInStream(cfg.LATEST). WithMaxRecords(10). WithMaxLeasesForWorker(1). WithShardSyncIntervalMillis(5000). WithFailoverTimeMillis(300000). WithLeaseSt...
explode_data.jsonl/9841
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 483 }
[ 2830, 3393, 1949, 2304, 519, 45544, 1900, 54349, 13801, 1155, 353, 8840, 836, 8, 341, 16463, 564, 2648, 1669, 13286, 7121, 42, 82789, 2959, 9194, 2648, 445, 85102, 497, 330, 1944, 497, 330, 355, 37602, 12, 17, 497, 330, 13683, 38609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMaxInt(t *testing.T) { type args struct { a int b int } tests := []struct { name string args args want int }{ {"1", args{ a: 1, b: 2, }, 2, }, {"2", args{ a: 2, b: 1, }, 2, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got :=...
explode_data.jsonl/6163
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 5974, 1072, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 11323, 526, 198, 197, 2233, 526, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 526, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestPlayer_MVPs(t *testing.T) { pl := playerWithResourceProperty("m_iMVPs", st.PropertyValue{IntVal: 4}) assert.Equal(t, 4, pl.MVPs()) }
explode_data.jsonl/12208
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 60 }
[ 2830, 3393, 4476, 1245, 13378, 82, 1155, 353, 8840, 836, 8, 341, 72213, 1669, 2781, 2354, 4783, 3052, 445, 76, 5318, 44, 13378, 82, 497, 357, 15727, 1130, 90, 1072, 2208, 25, 220, 19, 8824, 6948, 12808, 1155, 11, 220, 19, 11, 625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTerragruntWorksWithLocalTerraformVersion(t *testing.T) { t.Parallel() cleanupTerraformFolder(t, TEST_FIXTURE_PATH) s3BucketName := fmt.Sprintf("terragrunt-test-bucket-%s", strings.ToLower(uniqueId())) lockTableName := fmt.Sprintf("terragrunt-test-locks-%s", strings.ToLower(uniqueId())) defer deleteS3Bu...
explode_data.jsonl/10074
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 481 }
[ 2830, 3393, 51402, 68305, 3850, 6776, 16056, 7319, 51, 13886, 627, 5637, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 60639, 51, 13886, 627, 13682, 1155, 11, 13602, 42635, 41486, 7944, 692, 1903, 18, 36018, 675, 1669, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMustUint(t *testing.T) { tests := []struct { name string args interface{} want Uint wantPanic bool }{ { name: "valid", args: 456, want: Uint{ ValidFlag: true, uint: 456, }, wantPanic: false, }, { name: "panic", args: "valid paramenter", want: ...
explode_data.jsonl/13387
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 417 }
[ 2830, 3393, 31776, 21570, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 31215, 414, 3749, 16094, 197, 50780, 414, 27883, 198, 197, 50780, 47, 31270, 1807, 198, 197, 59403, 197, 197, 515, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCache_extractPodContainerMetadata(t *testing.T) { type fields struct { aInclude, lInclude []string } type args struct { pod apiv1.Pod container apiv1.Container } tests := []struct { name string fields fields args args want Value }{ { name: "podnamecontainerIndexer", fiel...
explode_data.jsonl/31847
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 916 }
[ 2830, 3393, 8233, 39123, 23527, 4502, 14610, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 11323, 22283, 11, 326, 22283, 3056, 917, 198, 197, 532, 13158, 2827, 2036, 341, 197, 3223, 347, 981, 1443, 344, 16, 88823, 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...
1
func Test_Kafka_DB(t *testing.T) { require.Panics(t, func() { var Codec = codec.New() schema.RegisterCodec(Codec) sdkTypes.RegisterCodec(Codec) codec.RegisterCrypto(Codec) codec.RegisterEvidences(Codec) vesting.RegisterCodec(Codec) Codec.Seal() ticketID := TicketID(random.GenerateID("name")) kafkaDB,...
explode_data.jsonl/20591
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 246 }
[ 2830, 3393, 10102, 21883, 16310, 1155, 353, 8840, 836, 8, 341, 17957, 1069, 276, 1211, 1155, 11, 2915, 368, 341, 197, 2405, 67077, 284, 34647, 7121, 741, 197, 1903, 3416, 19983, 36913, 7, 36913, 340, 197, 1903, 7584, 4173, 19983, 36913,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJQValidation(t *testing.T) { conf := NewConfig() conf.JQ.Query = ".foo.bar" jSet, err := NewJQ(conf, nil, log.Noop(), metrics.Noop()) require.NoError(t, err) msgIn := message.New([][]byte{[]byte("this is bad json")}) msgs, res := jSet.ProcessMessage(msgIn) require.Nil(t, res) require.Len(t, msgs, 1)...
explode_data.jsonl/53850
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 167 }
[ 2830, 3393, 41, 48, 13799, 1155, 353, 8840, 836, 8, 341, 67850, 1669, 1532, 2648, 741, 67850, 3503, 48, 15685, 284, 5933, 7975, 22001, 1837, 12428, 1649, 11, 1848, 1669, 1532, 41, 48, 29879, 11, 2092, 11, 1487, 16766, 453, 1507, 16734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSignThenVerifyAndPkSkPacking(t *testing.T) { var seed [eddilithium4.SeedSize]byte var sig [eddilithium4.SignatureSize]byte var msg [8]byte var pkb1, pkb2 [eddilithium4.PublicKeySize]byte var skb1, skb2 [eddilithium4.PrivateKeySize]byte var pk2 eddilithium4.PublicKey var sk2 eddilithium4.PrivateKey for ...
explode_data.jsonl/73546
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 431 }
[ 2830, 3393, 7264, 12209, 32627, 3036, 58415, 19290, 47, 8985, 1155, 353, 8840, 836, 8, 341, 2405, 10320, 508, 53537, 321, 410, 2356, 19, 5732, 291, 1695, 90184, 198, 2405, 8366, 508, 53537, 321, 410, 2356, 19, 41152, 1568, 1695, 90184, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUserChangePassword(t *testing.T) { clients.RequireAdmin(t) client, err := clients.NewIdentityV3Client() th.AssertNoErr(t, err) createOpts := users.CreateOpts{ Password: "secretsecret", DomainID: "default", } user, err := CreateUser(t, client, &createOpts) th.AssertNoErr(t, err) defer DeleteUser(...
explode_data.jsonl/38766
{ "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, 1474, 4072, 4876, 1155, 353, 8840, 836, 8, 341, 197, 31869, 81288, 7210, 1155, 692, 25291, 11, 1848, 1669, 8239, 7121, 18558, 53, 18, 2959, 741, 70479, 11711, 2753, 7747, 1155, 11, 1848, 692, 39263, 43451, 1669, 3847, 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...
1
func TestType(t *testing.T) { schemaType := Type{ def: &ast.Definition{ Name: "Query", Description: "test description", Fields: ast.FieldList{ &ast.FieldDefinition{Name: "__schema"}, &ast.FieldDefinition{Name: "test"}, &ast.FieldDefinition{Name: "deprecated", Directives: ast.DirectiveList...
explode_data.jsonl/24707
{ "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, 929, 1155, 353, 8840, 836, 8, 341, 1903, 3416, 929, 1669, 3990, 515, 197, 7452, 25, 609, 559, 49947, 4054, 515, 298, 21297, 25, 286, 330, 2859, 756, 298, 47414, 25, 330, 1944, 4008, 756, 298, 197, 8941, 25, 11763, 17087,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetPodStatus(t *testing.T) { fakeRuntime, _, m, err := createTestRuntimeManager() assert.NoError(t, err) containers := []v1.Container{ { Name: "foo1", Image: "busybox", ImagePullPolicy: v1.PullIfNotPresent, }, { Name: "foo2", Image: "busybox", ...
explode_data.jsonl/14235
{ "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, 1949, 23527, 2522, 1155, 353, 8840, 836, 8, 341, 1166, 726, 15123, 11, 8358, 296, 11, 1848, 1669, 1855, 2271, 15123, 2043, 741, 6948, 35699, 1155, 11, 1848, 692, 197, 39399, 1669, 3056, 85, 16, 33672, 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 TestPodNodeConstraintsNonHandledResources(t *testing.T) { ns := metav1.NamespaceDefault errPrefix := "ResourceQuotaTest" var expectedError error prc := NewPodNodeConstraints(testConfig(), nodeidentifier.NewDefaultNodeIdentifier()) prc.(initializer.WantsAuthorizer).SetAuthorizer(fakeAuthorizer(t)) err := prc....
explode_data.jsonl/37021
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 257 }
[ 2830, 3393, 23527, 1955, 12925, 8121, 90909, 11277, 1155, 353, 8840, 836, 8, 341, 84041, 1669, 77520, 16, 46011, 3675, 198, 9859, 14335, 1669, 330, 4783, 2183, 6089, 2271, 698, 2405, 3601, 1454, 1465, 198, 25653, 66, 1669, 1532, 23527, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadWithSignatures(t *testing.T) { signedTokenHS256 := `eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImZvbyJ9.eyJmaWxlcyI6W3sibmFtZSI6Ii5tYW5pZmVzdCIsImhhc2giOiI1MDdhMmMzOGExNDQxZGI1OGQyY2I4Nzk4MmM0MmFhOTFhNDM0MmVmNDIyYTZiNTQyZWRkZWJlZWY2ZjA0MTJmIiwiYWxnb3JpdGhtIjoiU0hBLTI1NiJ9LHsibmFtZSI6ImEvYi9jL2RhdGEuanNv...
explode_data.jsonl/55370
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2399 }
[ 2830, 3393, 4418, 2354, 7264, 2789, 1155, 353, 8840, 836, 8, 1476, 1903, 1542, 3323, 11961, 17, 20, 21, 1669, 1565, 84609, 49039, 38, 5855, 81096, 45064, 52, 89, 40, 16, 56494, 3872, 641, 49, 20, 66, 11237, 21, 40, 48495, 55, 11287,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGyCreditExhaustionWithoutCRRU(t *testing.T) { fmt.Println("\nRunning TestGyCreditExhaustionWithoutCRRU...") tr, ruleManager, ue := ocsCreditExhaustionTestSetup(t) defer func() { // Clear hss, ocs, and pcrf assert.NoError(t, clearOCSMockDriver()) assert.NoError(t, ruleManager.RemoveInstalledRules()) ...
explode_data.jsonl/18981
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 851 }
[ 2830, 3393, 38, 88, 33493, 840, 15074, 290, 26040, 34, 8106, 52, 1155, 353, 8840, 836, 8, 341, 11009, 12419, 4921, 77, 18990, 3393, 38, 88, 33493, 840, 15074, 290, 26040, 34, 8106, 52, 1112, 5130, 25583, 11, 5912, 2043, 11, 60098, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDefaultPromptForRoot(t *testing.T) { f := setup(assign("edit:prompt", getDefaultPrompt(true))) defer f.Cleanup() f.TestTTY(t, "~# ", Styles, " !!", term.DotHere) }
explode_data.jsonl/46590
{ "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, 3675, 54615, 2461, 8439, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 6505, 66882, 445, 3587, 25, 40581, 497, 69106, 54615, 3715, 5929, 16867, 282, 727, 60639, 2822, 1166, 8787, 55544, 1155, 345, 197, 197, 1, 93, 2, 3670, 373...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Validators(t *testing.T) { var tests = []struct { tree parserNode }{ { tree: parserNodes{ Ident{Value: "foo"}, operator{kind: "="}, }, }, { tree: parserNodes{ operator{kind: "="}, Ident{Value: "foo"}, }, }, } for i, test := range tests { if err := test.tree.Validat...
explode_data.jsonl/34988
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 62, 31748, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 51968, 6729, 1955, 198, 197, 59403, 197, 197, 515, 298, 51968, 25, 6729, 12288, 515, 571, 197, 28301, 90, 1130, 25, 330, 7975, 7115, 571, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddENI(t *testing.T) { ds := NewDataStore() err := ds.AddENI("eni-1", 1, true) assert.NoError(t, err) err = ds.AddENI("eni-1", 1, true) assert.Error(t, err) err = ds.AddENI("eni-2", 2, false) assert.NoError(t, err) assert.Equal(t, len(ds.eniIPPools), 2) eniInfos := ds.GetENIInfos() assert.Equal(...
explode_data.jsonl/75188
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 168 }
[ 2830, 3393, 2212, 953, 40, 1155, 353, 8840, 836, 8, 341, 83336, 1669, 1532, 1043, 6093, 2822, 9859, 1669, 11472, 1904, 953, 40, 445, 33129, 12, 16, 497, 220, 16, 11, 830, 340, 6948, 35699, 1155, 11, 1848, 692, 9859, 284, 11472, 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 TestNewMCP23017DriverHaen(t *testing.T) { b := NewMCP23017Driver(newI2cTestAdaptor(), WithMCP23017Haen(1)) gobottest.Assert(t, b.MCPConf.Haen, uint8(1)) }
explode_data.jsonl/42308
{ "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, 3564, 44, 7123, 17, 18, 15, 16, 22, 11349, 32942, 268, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 1532, 44, 7123, 17, 18, 15, 16, 22, 11349, 1755, 40, 17, 66, 2271, 2589, 32657, 1507, 3085, 44, 7123, 17, 18, 15, 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 TestParsePackage_StdLibs(t *testing.T) { for _, name := range []string{"go/ast", "go/token", "reflect", "database/sql", "image", "image/color", "os", "net", "net/http"} { pkg, err := parser.ParsePackage(name) if err != nil { t.Fatal(err) } b, _ := json.MarshalIndent(pkg, "", "\t") t.Logf("%s", string...
explode_data.jsonl/381
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 158 }
[ 2830, 3393, 14463, 13100, 62, 22748, 9194, 82, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 829, 1669, 2088, 3056, 917, 4913, 3346, 14, 559, 497, 330, 3346, 54386, 497, 330, 34913, 497, 330, 12216, 59682, 497, 330, 1805, 497, 330, 1805, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRegisterService(t *testing.T) { fakeName := "test" tracingBackendFactories[fakeName] = func(serviceName string) (tracingService, io.Closer, error) { tracer := &fakeTracer{name: serviceName} return tracer, tracer, nil } tracingServer = &fakeName serviceName := "vtservice" closer := StartTracing(serv...
explode_data.jsonl/9103
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 202 }
[ 2830, 3393, 8690, 1860, 1155, 353, 8840, 836, 8, 341, 1166, 726, 675, 1669, 330, 1944, 698, 25583, 4527, 29699, 17417, 2433, 24769, 726, 675, 60, 284, 2915, 21656, 675, 914, 8, 320, 376, 4527, 1860, 11, 6399, 727, 69215, 11, 1465, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestXYAdd(t *testing.T) { assert.Equal(t, xy{1, 1}, xy{0, 0}.add(xy{1, 1})) assert.Equal(t, xy{1, 2}, xy{0, 1}.add(xy{1, 1})) assert.Equal(t, xy{2, 1}, xy{1, 0}.add(xy{1, 1})) assert.Equal(t, xy{}, xy{}.add(xy{})) assert.Equal(t, xy{3, 3}, xy{1, 2}.add(xy{2, 1})) }
explode_data.jsonl/45329
{ "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, 16356, 2212, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 30784, 90, 16, 11, 220, 16, 2137, 30784, 90, 15, 11, 220, 15, 7810, 718, 93219, 90, 16, 11, 220, 16, 44194, 6948, 12808, 1155, 11, 30784, 90, 16, 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 TestSplitRepoName(t *testing.T) { tests := []struct { name string full string wantOrg string wantRepo string wantErr bool }{ { name: "github repo", full: "orgA/repoB", wantOrg: "orgA", wantRepo: "repoB", wantErr: false, }, { name: "ref name with http://",...
explode_data.jsonl/41060
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 707 }
[ 2830, 3393, 20193, 25243, 675, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 94042, 257, 914, 198, 197, 50780, 42437, 220, 914, 198, 197, 50780, 25243, 914, 198, 197, 50780, 7747, 220, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWrongTypeDecoder(t *testing.T) { badTypeCheck(new(ET2), true, "no fields in common", t) badTypeCheck(new(ET3), false, "different name of field", t) badTypeCheck(new(ET4), true, "different type of field", t) }
explode_data.jsonl/43380
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 29185, 929, 20732, 1155, 353, 8840, 836, 8, 341, 2233, 329, 929, 3973, 1755, 7, 1348, 17, 701, 830, 11, 330, 2152, 5043, 304, 4185, 497, 259, 340, 2233, 329, 929, 3973, 1755, 7, 1348, 18, 701, 895, 11, 330, 63650, 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 TestContext(t *testing.T) { // sig is a signature permission, not a hash foo := []byte("foo") sig := weave.NewCondition("sigs", "ed25519", foo).Address() // other is a permission for some "other" preimage other := PreimageCondition(foo).Address() random := weave.NewAddress(foo) bg := context.Background() ...
explode_data.jsonl/77130
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 484 }
[ 2830, 3393, 1972, 1155, 353, 8840, 836, 8, 341, 197, 322, 8366, 374, 264, 11957, 7882, 11, 537, 264, 5175, 198, 197, 7975, 1669, 3056, 3782, 445, 7975, 1138, 84841, 1669, 67508, 7121, 10547, 445, 82, 14462, 497, 330, 291, 17, 20, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestObjSet(t *testing.T) { const SCRIPT = ` 'use strict'; var p1 = Object.create(null); var p2 = Object.create(p1); Object.defineProperty(p1, "test", { value: 42 }); Object.defineProperty(p2, "test", { value: 43, writable: true, }); var o = Object.create(p2); o.test = 44; o.test; ` testScript1(...
explode_data.jsonl/10516
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 154 }
[ 2830, 3393, 5261, 1649, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 197, 19176, 7304, 1010, 2405, 281, 16, 284, 3002, 2520, 4967, 317, 2405, 281, 17, 284, 3002, 2520, 1295, 16, 317, 1572, 23816, 24802, 1295, 16, 11, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestValidateSigner(t *testing.T) { t.Run("empty", func(t *testing.T) { signer := "" _, errors := ValidateSigner(signer, "") assert.NotEqual(t, 0, len(errors)) }) t.Run("invalid", func(t *testing.T) { signer := "GBA4EX43M25UPV4WIE6RRMQOFTWXZZRIPFAI5VPY6Z2ZVVXVWZ6NEOOB" _, errors := ValidateSigner(sign...
explode_data.jsonl/22688
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 279 }
[ 2830, 3393, 17926, 7264, 261, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 3194, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 69054, 261, 1669, 8389, 197, 197, 6878, 5975, 1669, 23282, 7264, 261, 40046, 261, 11, 14676, 197, 6948, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPlatform_GoPathNotSet(t *testing.T) { gopath := os.Getenv("GOPATH") defer os.Setenv("GOPATH", gopath) os.Setenv("GOPATH", "") // Go 1.9 sets GOPATH to $HOME/go if GOPATH is not set defaultGopath := filepath.Join(os.Getenv("HOME"), "go") currentGopath, err := getGopath() assert.NoError(t, err, "Expected...
explode_data.jsonl/2260
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 147 }
[ 2830, 3393, 17296, 2646, 78, 1820, 2623, 1649, 1155, 353, 8840, 836, 8, 341, 3174, 35111, 1669, 2643, 64883, 445, 98733, 4827, 1138, 16867, 2643, 4202, 3160, 445, 98733, 4827, 497, 342, 35111, 340, 25078, 4202, 3160, 445, 98733, 4827, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDefaultGRPCOpts(t *testing.T) { endpointConfig, err := ConfigFromBackend(getMatcherConfig()) assert.Nil(t, err, "Failed to get endpoint config from backend") assert.NotNil(t, endpointConfig, "expected valid endpointconfig") peerConfig, ok := endpointConfig.PeerConfig("xyz.org1.example.com") assert.True(...
explode_data.jsonl/34104
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1024 }
[ 2830, 3393, 3675, 8626, 4872, 43451, 1155, 353, 8840, 836, 8, 1476, 6246, 2768, 2648, 11, 1848, 1669, 5532, 3830, 29699, 5433, 37554, 2648, 2398, 6948, 59678, 1155, 11, 1848, 11, 330, 9408, 311, 633, 14887, 2193, 504, 19163, 1138, 6948,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIngressHandler_Receive_FAIL(t *testing.T) { testCases := map[string]struct { httpmethod string URI string expectedStatus int expectedEventCount bool expectedEventDispatchTime bool }{ "method not allowed": { httpmethod: nethttp.MethodGe...
explode_data.jsonl/11031
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 707 }
[ 2830, 3393, 641, 2483, 3050, 62, 14742, 11878, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 28080, 4393, 394, 914, 198, 197, 197, 10301, 5180, 914, 198, 197, 42400, 2522, 310, 526, 198, 197, 42400...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTerragruntInitHookNoSourceWithBackend(t *testing.T) { t.Parallel() s3BucketName := fmt.Sprintf("terragrunt-test-bucket-%s", strings.ToLower(uniqueId())) cleanupTerraformFolder(t, TEST_FIXTURE_HOOKS_INIT_ONCE_NO_SOURCE_WITH_BACKEND) tmpEnvPath := copyEnvironment(t, "fixture-hooks/init-once") rootPath := ...
explode_data.jsonl/10059
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 526 }
[ 2830, 3393, 51402, 68305, 3850, 3803, 31679, 2753, 3608, 2354, 29699, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1903, 18, 36018, 675, 1669, 8879, 17305, 445, 465, 4101, 81, 3850, 16839, 1455, 11152, 11069, 82, 497, 9069, 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...
2
func TestEtsiQcType(t *testing.T) { m := map[string]LintStatus{ "QcStmtEtsiMissingSeqForQcTypesCert18.pem": Error, "QcStmtEtsiMissingOidCert09.pem": Error, "QcStmtEtsiValidCert03.pem": Pass, "QcStmtEtsiValidCert11.pem": Pass, "QcStmtEtsiValidAddLangCert13.pem": ...
explode_data.jsonl/71920
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 364 }
[ 2830, 3393, 36, 2576, 72, 48, 66, 929, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 2415, 14032, 60, 47556, 2522, 515, 197, 197, 1, 48, 66, 31063, 36, 2576, 72, 25080, 20183, 2461, 48, 66, 4173, 36934, 16, 23, 49373, 788, 4600, 345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestValidateAndBuildRanLoadInformationKeySuccess(t *testing.T) { name := "name" prefix := "LOAD" delimiter := ":" key, err := ValidateAndBuildRanLoadInformationKey(name) if err != nil{ t.Errorf("#utils_test.TestValidateAndBuildRanLoadInformationKeySuccess - failed to validate key parameter") } assert.Cont...
explode_data.jsonl/33045
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 143 }
[ 2830, 3393, 17926, 3036, 11066, 49, 276, 5879, 14873, 1592, 7188, 1155, 353, 8840, 836, 8, 341, 11609, 1669, 330, 606, 698, 3223, 5060, 1669, 330, 12988, 698, 69509, 17700, 1669, 13022, 698, 23634, 11, 1848, 1669, 23282, 3036, 11066, 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...
2
func TestIfdBuilder_AddTagsFromExisting__Excludes(t *testing.T) { exifData := getExifSimpleTestIbBytes() im := NewIfdMapping() err := LoadStandardIfds(im) log.PanicIf(err) ti := NewTagIndex() _, index, err := Collect(im, ti, exifData) log.PanicIf(err) ib := NewIfdBuilder(im, ti, exifcommon.IfdStandardIfdId...
explode_data.jsonl/36626
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 334 }
[ 2830, 3393, 2679, 67, 3297, 21346, 15930, 3830, 53067, 563, 840, 7396, 1155, 353, 8840, 836, 8, 341, 8122, 333, 1043, 1669, 633, 840, 333, 16374, 2271, 40, 65, 7078, 2822, 54892, 1669, 1532, 2679, 67, 6807, 2822, 9859, 1669, 8893, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestTideContextPolicy_Validate(t *testing.T) { testCases := []struct { name string t TideContextPolicy failed bool }{ { name: "good policy", t: TideContextPolicy{ OptionalContexts: []string{"o1"}, RequiredContexts: []string{"r1"}, }, }, { name: "optional contexts must diffe...
explode_data.jsonl/53861
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 368 }
[ 2830, 3393, 51, 577, 1972, 13825, 62, 17926, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 3244, 414, 71016, 1972, 13825, 198, 197, 1166, 5687, 1807, 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...
3