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 TestSortedArray_FilterEmpty(t *testing.T) { gtest.C(t, func(t *gtest.T) { array := garray.NewSortedArrayFrom(g.Slice{0, 1, 2, 3, 4, "", g.Slice{}}, gutil.ComparatorInt) t.Assert(array.FilterEmpty(), g.Slice{1, 2, 3, 4}) }) gtest.C(t, func(t *gtest.T) { array := garray.NewSortedArrayFrom(g.Slice{1, 2, 3, 4...
explode_data.jsonl/67038
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 51051, 1857, 68935, 3522, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 11923, 1669, 342, 1653, 7121, 51051, 1857, 3830, 3268, 95495, 90, 15, 11, 220, 16, 11, 220, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMvFromDir(t *testing.T) { first := "sample.md" second := "second.md" attachment := "images/sample.png" src := "test" dest := "folder" testFs := newTmpFS(t) copyFile(t, testFs, filepath.Join("testdata", first), filepath.Join(src, first)) copyFile(t, testFs, filepath.Join("testdata", second), filepath.J...
explode_data.jsonl/36831
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 476 }
[ 2830, 3393, 44, 85, 3830, 6184, 1155, 353, 8840, 836, 8, 341, 42190, 1669, 330, 13611, 21324, 698, 197, 5569, 1669, 330, 5569, 21324, 698, 197, 21981, 1669, 330, 3642, 69851, 3508, 698, 41144, 1669, 330, 1944, 698, 49616, 1669, 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...
1
func Test_PostgresProvider(t *testing.T) { Convey("Test postgres session provider", t, func() { opt := session.Options{ Provider: "postgres", ProviderConfig: "user=jiahuachen dbname=macaron port=5432 sslmode=disable", } Convey("Basic operation", func() { m := macaron.New() m.Use(session.Sessio...
explode_data.jsonl/69500
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1358 }
[ 2830, 3393, 66726, 17818, 5179, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 2271, 59826, 3797, 9109, 497, 259, 11, 2915, 368, 341, 197, 64838, 1669, 3797, 22179, 515, 298, 197, 5179, 25, 981, 330, 43070, 756, 298, 197, 5179, 2648,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnsupportedOptions(t *testing.T) { db := newTestDB(t, "people") defer closeDB(t, db) _, err := db.BeginTx(context.Background(), &TxOptions{ Isolation: LevelSerializable, ReadOnly: true, }) if err == nil { t.Fatal("expected error when using unsupported options, got nil") } }
explode_data.jsonl/15955
{ "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, 41884, 3798, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 501, 2271, 3506, 1155, 11, 330, 16069, 1138, 16867, 3265, 3506, 1155, 11, 2927, 340, 197, 6878, 1848, 1669, 2927, 28467, 31584, 5378, 19047, 1507, 609, 31584, 3798, 515...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestCopyURLToWriter(t *testing.T) { ctx := context.Background() contents := "file contents\n" // check when reading from regular HTTP server status := 0 handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if status != 0 { http.Error(w, "an error ocurred", status) return } _...
explode_data.jsonl/51938
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 311 }
[ 2830, 3393, 12106, 3144, 1249, 6492, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 197, 17610, 1669, 330, 1192, 8794, 1699, 1837, 197, 322, 1779, 979, 5290, 504, 5792, 10130, 3538, 198, 23847, 1669, 220, 15, 198, 53326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMakePortMappings(t *testing.T) { tests := []struct { container *api.Container expectedPortMappings []kubecontainer.PortMapping }{ { &api.Container{ Name: "fooContainer", Ports: []api.ContainerPort{ { Protocol: api.ProtocolTCP, ContainerPort: 80, HostPor...
explode_data.jsonl/43347
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 995 }
[ 2830, 3393, 8078, 7084, 83421, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 53290, 310, 353, 2068, 33672, 198, 197, 42400, 7084, 83421, 3056, 97717, 3586, 43013, 6807, 198, 197, 59403, 197, 197, 515, 298, 197, 5, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestRoute_SetPort(t *testing.T) { testCases := []struct { param string errWanted bool }{ {"8080", false}, {"", true}, } for _, tc := range testCases { route := Route{} errGot := route.SetPort(tc.param) if tc.errWanted != (errGot != nil) { t.Errorf("SetPort(%s) = %v; errWanted = %t", rout...
explode_data.jsonl/67790
{ "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, 4899, 14812, 7084, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 36037, 257, 914, 198, 197, 9859, 54, 7566, 1807, 198, 197, 59403, 197, 197, 4913, 23, 15, 23, 15, 497, 895, 1583, 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...
5
func TestCollectionReplica_hasCollection(t *testing.T) { node := newQueryNodeMock() collectionID := UniqueID(0) initTestMeta(t, node, collectionID, 0) hasCollection := node.historical.replica.hasCollection(collectionID) assert.Equal(t, hasCollection, true) hasCollection = node.historical.replica.hasCollection(Un...
explode_data.jsonl/11481
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 6482, 18327, 15317, 21778, 6482, 1155, 353, 8840, 836, 8, 341, 20831, 1669, 501, 2859, 1955, 11571, 741, 1444, 1908, 915, 1669, 28650, 915, 7, 15, 340, 28248, 2271, 12175, 1155, 11, 2436, 11, 4426, 915, 11, 220, 15, 692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBindPFlagStringToString(t *testing.T) { tests := []struct { Expected map[string]string Value string }{ {map[string]string{}, ""}, {map[string]string{"yo": "hi"}, "yo=hi"}, {map[string]string{"yo": "hi", "oh": "hi=there"}, "yo=hi,oh=hi=there"}, {map[string]string{"yo": ""}, "yo="}, {map[strin...
explode_data.jsonl/9897
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 541 }
[ 2830, 3393, 9950, 47, 12135, 703, 5870, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 197, 18896, 2415, 14032, 30953, 198, 197, 47399, 262, 914, 198, 197, 59403, 197, 197, 90, 2186, 14032, 30953, 22655, 77496, 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 TestCollectNetworkStats(t *testing.T) { dummyProcDir, err := newTempFolder("test-find-docker-networks") assert.Nil(t, err) defer dummyProcDir.removeAll() // clean up config.Datadog.SetDefault("container_proc_root", dummyProcDir.RootPath) for _, tc := range []struct { pid int name string de...
explode_data.jsonl/19611
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3181 }
[ 2830, 3393, 47504, 12320, 16635, 1155, 353, 8840, 836, 8, 341, 2698, 8574, 24508, 6184, 11, 1848, 1669, 501, 12151, 13682, 445, 1944, 75784, 1737, 13659, 56732, 82, 1138, 6948, 59678, 1155, 11, 1848, 340, 16867, 17292, 24508, 6184, 41159,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestClient_grpc(t *testing.T) { process := helperProcess("test-grpc") c := NewClient(&ClientConfig{ Cmd: process, HandshakeConfig: testHandshake, Plugins: testGRPCPluginMap, AllowedProtocols: []Protocol{ProtocolGRPC}, }) defer c.Kill() if _, err := c.Start(); err != nil { t.F...
explode_data.jsonl/57837
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 428 }
[ 2830, 3393, 2959, 15682, 3992, 1155, 353, 8840, 836, 8, 341, 53314, 1669, 13137, 7423, 445, 1944, 24321, 3992, 1138, 1444, 1669, 1532, 2959, 2099, 2959, 2648, 515, 197, 6258, 2277, 25, 1060, 1882, 345, 197, 197, 2314, 29661, 2648, 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...
9
func TestKeeperDB_BatchDeleteUpkeepsForJob(t *testing.T) { t.Parallel() store, orm, cleanup := setupKeeperDB(t) defer cleanup() db := store.DB ethKeyStore := cltest.NewKeyStore(t, store.DB).Eth() registry, job := cltest.MustInsertKeeperRegistry(t, store, ethKeyStore) for i := int64(0); i < 3; i++ { cltest.Mu...
explode_data.jsonl/27008
{ "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, 77233, 3506, 1668, 754, 6435, 2324, 440, 7124, 2461, 12245, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 57279, 11, 67602, 11, 21290, 1669, 6505, 77233, 3506, 1155, 340, 16867, 21290, 741, 20939, 1669, 3553, 22537, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNoMatchingJailedValidators(t *testing.T) { codec := newStakingTestCodec() opAddr1, err := sdk.AccAddressFromBech32("cosmosaccaddr1chchjxgackcqkn9fqgpsc4n9xamx4flgndapzg") require.NoError(t, err) opAddr2, err := sdk.AccAddressFromBech32("cosmosaccaddr1y2z20pwqu5qpclque3pqkguruvheum2djtzjw3") require.NoEr...
explode_data.jsonl/78972
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 441 }
[ 2830, 3393, 2753, 64430, 41, 5687, 31748, 1155, 353, 8840, 836, 8, 341, 43343, 66, 1669, 501, 623, 1765, 2271, 36913, 2822, 39703, 13986, 16, 11, 1848, 1669, 45402, 77538, 4286, 3830, 3430, 331, 18, 17, 445, 9407, 8631, 4475, 6214, 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 TestPlainGenomeWriter_WriteNetworkNode(t *testing.T) { nodeId, traitId, nodeType, neuronType := 1, 10, network.SensorNode, network.InputNeuron nodeStr := fmt.Sprintf("%d %d %d %d SigmoidSteepenedActivation", nodeId, traitId, nodeType, neuronType) trait := neat.NewTrait() trait.Id = 10 node := network.NewNNod...
explode_data.jsonl/18932
{ "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, 26982, 9967, 635, 6492, 31825, 12320, 1955, 1155, 353, 8840, 836, 8, 341, 20831, 764, 11, 17567, 764, 11, 2436, 929, 11, 48284, 929, 1669, 220, 16, 11, 220, 16, 15, 11, 3922, 808, 3805, 1955, 11, 3922, 16130, 8813, 36090...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAllowAll(t *testing.T) { t.Parallel() cases := []string{ "", "# comment", "User-Agent: * \nAllow: /", "User-Agent: * \nDisallow: ", } for i, input := range cases { t.Run(strconv.Itoa(i), func(t *testing.T) { r, err := FromString(input) require.NoError(t, err) expectAll(t, r, true) }) ...
explode_data.jsonl/51678
{ "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, 18605, 2403, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1444, 2264, 1669, 3056, 917, 515, 197, 197, 39680, 197, 197, 57676, 3980, 756, 197, 197, 1, 1474, 45118, 25, 353, 1124, 77, 18605, 25, 608, 756, 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 TestFailureBadParentSpanID(t *testing.T) { badParentSpanIDESSpan, err := loadESSpanFixture(1) require.NoError(t, err) badParentSpanIDESSpan.ParentSpanID = "zz" failingSpanTransformAnyMsg(t, &badParentSpanIDESSpan) }
explode_data.jsonl/5154
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 89 }
[ 2830, 3393, 17507, 17082, 8387, 12485, 915, 1155, 353, 8840, 836, 8, 341, 2233, 329, 8387, 12485, 915, 9996, 848, 11, 1848, 1669, 2795, 9996, 848, 18930, 7, 16, 340, 17957, 35699, 1155, 11, 1848, 340, 2233, 329, 8387, 12485, 915, 9996...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExportValue(t *testing.T) { t.Parallel() test := func(tt exportTest) { t.Run(tt.label, func(t *testing.T) { t.Parallel() actual := exportValueWithInterpreter(tt.value, nil) assert.Equal(t, tt.expected, actual) if !tt.skipReverse { original := importValue(actual) assert.Equal(t, tt...
explode_data.jsonl/4620
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 177 }
[ 2830, 3393, 16894, 1130, 1155, 353, 8840, 836, 8, 1476, 3244, 41288, 7957, 2822, 18185, 1669, 2915, 47152, 7485, 2271, 8, 1476, 197, 3244, 16708, 47152, 2909, 11, 2915, 1155, 353, 8840, 836, 8, 1476, 298, 3244, 41288, 7957, 2822, 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 TestReceiveOnUnixDomainSocket(t *testing.T) { if runtime.GOOS == "windows" { t.Skip("skipping test on windows") } tt, err := obsreporttest.SetupTelemetry() require.NoError(t, err) t.Cleanup(func() { require.NoError(t, tt.Shutdown(context.Background())) }) socketName := tempSocketName(t) gss := &GRPCServe...
explode_data.jsonl/80334
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 545 }
[ 2830, 3393, 14742, 1925, 55832, 13636, 10286, 1155, 353, 8840, 836, 8, 341, 743, 15592, 97574, 3126, 621, 330, 27077, 1, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 389, 11030, 1138, 197, 532, 3244, 83, 11, 1848, 1669, 7448, 11736, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_destroyJobs(t *testing.T) { ctx := context.Background() job := &batchv1.Job{ ObjectMeta: metav1.ObjectMeta{ Name: "test", Namespace: "ns", Labels: map[string]string{model.StackNameLabel: "stack-test"}, }, } client := fake.NewSimpleClientset(job) var tests = []struct { name ...
explode_data.jsonl/22838
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 854 }
[ 2830, 3393, 18066, 40667, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 68577, 1669, 609, 14049, 85, 16, 45293, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 21297, 25, 414, 330, 1944, 756, 298, 90823, 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...
4
func TestReadPidFileWithErrors(t *testing.T) { ctx := newTestContext("TestReadPidFileWithErrors", t) var err error if _, err = util.ReadPidFile(ctx); err == nil { t.Fatal("error expected in reading pid file") } gotil.WriteStringToFile("hello", util.PidFilePath(ctx)) if _, err = util.ReadPidFile(ctx); err == ...
explode_data.jsonl/15040
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 4418, 32339, 1703, 2354, 13877, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 501, 2271, 1972, 445, 2271, 4418, 32339, 1703, 2354, 13877, 497, 259, 692, 2405, 1848, 1465, 198, 743, 8358, 1848, 284, 4094, 6503, 32339, 1703, 7502...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRegistry_Ping(t *testing.T) { v2Implemented := true ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.Method != http.MethodGet || r.URL.Path != "/v2/" { t.Errorf("unexpected access: %s %s", r.Method, r.URL) w.WriteHeader(http.StatusNotFound) return } ...
explode_data.jsonl/82487
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 395 }
[ 2830, 3393, 15603, 1088, 287, 1155, 353, 8840, 836, 8, 341, 5195, 17, 18300, 1669, 830, 198, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 743, 435, 20798, 961, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestUnique(t *testing.T) { store, clean := realtikvtest.CreateMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk1 := testkit.NewTestKit(t, store) tk1.MustExec("use test") tk2 := testkit.NewTestKit(t, store) tk2.MustExec("use test") tk.MustExec("set @@tidb_di...
explode_data.jsonl/5791
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1147 }
[ 2830, 3393, 22811, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1931, 83, 1579, 85, 1944, 7251, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 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 TestEntry_PageUpDown(t *testing.T) { t.Run("single line", func(*testing.T) { e, window := setupImageTest(t, false) defer teardownImageTest(window) c := window.Canvas() c.Focus(e) e.SetText("Testing") test.AssertRendersToMarkup(t, "entry/select_initial.xml", c) // move right, press & hold shift and...
explode_data.jsonl/12348
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 961 }
[ 2830, 3393, 5874, 51540, 33801, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 15338, 1555, 497, 2915, 4071, 8840, 836, 8, 341, 197, 7727, 11, 3241, 1669, 6505, 1906, 2271, 1155, 11, 895, 340, 197, 16867, 49304, 1906, 2271, 15906, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_isStraight(t *testing.T) { type args struct { hand deck.Hand } tests := []struct { name string args args want bool }{ { name: "Should be a straight flush", args: args{deck.Hand{ deck.Card{IsRoyal: true, RoyalType: deck.Royal("king")}, deck.Card{IsRoyal: true, RoyalType: deck.Royal(...
explode_data.jsonl/7187
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 664 }
[ 2830, 3393, 6892, 88854, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 9598, 437, 9530, 35308, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 1807, 198, 197, 59403, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDismissDeviceChangeNotifications(t *testing.T) { tc := setupTest(t, "ddcn") mctx := libkb.NewMetaContextForTest(*tc) dismisser := &libkb.FakeGregorState{} exceptedDeviceID := "active-device-id" state := &FakeGregorState{ items: []gregor.Item{ buildGregorItem("anything.else", "a-device-id", "not-dism...
explode_data.jsonl/42657
{ "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, 51702, 6985, 4072, 34736, 1155, 353, 8840, 836, 8, 341, 78255, 1669, 6505, 2271, 1155, 11, 330, 631, 14271, 1138, 2109, 3773, 1669, 3051, 21310, 7121, 12175, 1972, 2461, 2271, 4071, 10413, 692, 2698, 2142, 73233, 1669, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRoleStoreCache(t *testing.T) { fakeRole := model.Role{Id: "123", Name: "role-name"} t.Run("first call not cached, second cached and returning same data", func(t *testing.T) { mockStore := getMockStore() mockCacheProvider := getMockCacheProvider() cachedStore := NewLocalCacheLayer(mockStore, nil, nil, ...
explode_data.jsonl/36703
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 853 }
[ 2830, 3393, 9030, 6093, 8233, 1155, 353, 8840, 836, 8, 341, 1166, 726, 9030, 1669, 1614, 35955, 90, 764, 25, 330, 16, 17, 18, 497, 3988, 25, 330, 5778, 11494, 63159, 3244, 16708, 445, 3896, 1618, 537, 20579, 11, 2086, 20579, 323, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMuxerError(t *testing.T) { _, err := MuxerConstructor(func() (mux.Transport, error) { return nil, nil }) if err != nil { t.Fatal(err) } }
explode_data.jsonl/23665
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 65 }
[ 2830, 3393, 44, 2200, 261, 1454, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 386, 2200, 261, 13288, 18552, 368, 320, 75066, 87669, 11, 1465, 8, 314, 470, 2092, 11, 2092, 2751, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestGDPRConsentRequired(t *testing.T) { rr := doPost(`{"gdpr":1,"bidders":["appnexus", "pubmatic"]}`, nil, false, nil) assert.Equal(t, rr.Header().Get("Content-Type"), "text/plain; charset=utf-8") assert.Equal(t, http.StatusBadRequest, rr.Code) assert.Equal(t, "gdpr_consent is required if gdpr=1\n", rr.Body.St...
explode_data.jsonl/21686
{ "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, 40849, 6480, 15220, 306, 8164, 1155, 353, 8840, 836, 8, 341, 197, 634, 1669, 65156, 5809, 4913, 28584, 649, 788, 16, 1335, 65, 99129, 36799, 676, 77, 23666, 497, 330, 9585, 37244, 1341, 28350, 2092, 11, 895, 11, 2092, 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 TestCaptureAuthorization(t *testing.T) { c, _ := NewClient(testClientID, testSecret, APIBaseSandBox) c.GetAccessToken() _, err := c.CaptureAuthorization(testAuthID, &Amount{Total: "200", Currency: "USD"}, true) if err == nil { t.Errorf("Auth is expired, 400 error must be returned") } }
explode_data.jsonl/18443
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 103 }
[ 2830, 3393, 27429, 18124, 1155, 353, 8840, 836, 8, 341, 1444, 11, 716, 1669, 1532, 2959, 8623, 2959, 915, 11, 1273, 19773, 11, 5333, 3978, 47044, 1611, 340, 1444, 2234, 37649, 2822, 197, 6878, 1848, 1669, 272, 727, 11850, 18124, 8623, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateDisableValidation(t *testing.T) { Given(t). Path("baddir"). When(). Create("--validate=false"). Then(). And(func(app *Application) { _, err := RunCli("app", "create", app.Name, "--upsert", "--validate=false", "--repo", RepoURL(RepoURLTypeFile), "--path", "baddir2", "--project", app.Spec...
explode_data.jsonl/66707
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 4021, 25479, 13799, 1155, 353, 8840, 836, 8, 341, 9600, 2071, 1155, 4292, 197, 69640, 445, 65, 44525, 38609, 197, 197, 4498, 25829, 197, 75569, 21549, 7067, 12219, 38609, 197, 197, 12209, 25829, 197, 197, 3036, 18552, 11462, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFragmentation(t *testing.T) { testutils.WithTestServer(t, nil, func(t testing.TB, ts *testutils.TestServer) { ts.Register(raw.Wrap(newTestHandler(t)), "echo") arg2 := make([]byte, MaxFramePayloadSize*2) for i := 0; i < len(arg2); i++ { arg2[i] = byte('a' + (i % 10)) } arg3 := make([]byte, MaxFr...
explode_data.jsonl/78189
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 356 }
[ 2830, 3393, 9488, 367, 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, 57441, 19983, 22460, 38968, 1755, 2271, 3050, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCmdWithFeeHappyPath(t *testing.T) { sendMsg := &cash.SendMsg{ Metadata: &weave.Metadata{Schema: 1}, Source: fromHex(t, "b1ca7e78f74423ae01da3b51e676934d9105f282"), Destination: fromHex(t, "E28AE9A6EB94FC88B73EB7CBD6B87BF93EB9BEF0"), Amount: coin.NewCoinp(5, 0, "DOGE"), Memo: "a m...
explode_data.jsonl/19676
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 571 }
[ 2830, 3393, 15613, 2354, 41941, 32847, 1820, 1155, 353, 8840, 836, 8, 341, 32817, 6611, 1669, 609, 41271, 20176, 6611, 515, 197, 9209, 7603, 25, 262, 609, 896, 523, 46475, 90, 8632, 25, 220, 16, 1583, 197, 197, 3608, 25, 414, 504, 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...
5
func TestEnvironmentVariableNotPresent(t *testing.T) { var args struct { NotPresent string `arg:"env"` } os.Args = []string{"example"} MustParse(&args) assert.Equal(t, "", args.NotPresent) }
explode_data.jsonl/13035
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 12723, 7827, 2623, 21195, 1155, 353, 8840, 836, 8, 341, 2405, 2827, 2036, 341, 197, 197, 2623, 21195, 914, 1565, 858, 2974, 3160, 8805, 197, 532, 25078, 51015, 284, 3056, 917, 4913, 8687, 16707, 9209, 590, 14463, 2099, 2116,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDBAddSSTable(t *testing.T) { defer leaktest.AfterTest(t)() t.Run("store=in-memory", func(t *testing.T) { s, _, db := serverutils.StartServer(t, base.TestServerArgs{Insecure: true}) ctx := context.Background() defer s.Stopper().Stop(ctx) runTestDBAddSSTable(ctx, t, db, nil) }) t.Run("store=on-disk",...
explode_data.jsonl/65681
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 363 }
[ 2830, 3393, 3506, 2212, 50, 784, 480, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 3244, 16708, 445, 4314, 67384, 64096, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1903, 11, 8358, 2927, 1669, 3538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScrubDNS(t *testing.T) { tcs := []struct { nameserversIn []string searchesIn []string nameserversOut []string searchesOut []string }{ { nameserversIn: []string{"1.2.3.4", "5.6.7.8"}, nameserversOut: []string{"1.2.3.4", "5.6.7.8"}, }, { searchesIn: []string{"c.prj.internal.", ...
explode_data.jsonl/28873
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 571 }
[ 2830, 3393, 3326, 59430, 61088, 1155, 353, 8840, 836, 8, 341, 3244, 4837, 1669, 3056, 1235, 341, 197, 93940, 18729, 641, 220, 3056, 917, 198, 197, 45573, 288, 641, 257, 3056, 917, 198, 197, 93940, 18729, 2662, 3056, 917, 198, 197, 455...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCleanupTaskENIs(t *testing.T) { cfg := getTestConfig() ctrl := gomock.NewController(t) mockTime := mock_ttime.NewMockTime(ctrl) mockState := mock_dockerstate.NewMockTaskEngineState(ctrl) mockClient := mock_dockerapi.NewMockDockerClient(ctrl) mockImageManager := mock_engine.NewMockImageManager(ctrl) defe...
explode_data.jsonl/24583
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1035 }
[ 2830, 3393, 67335, 6262, 953, 3872, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 633, 2271, 2648, 741, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 77333, 1462, 1669, 7860, 528, 1678, 7121, 11571, 1462, 62100, 340, 77333, 1397, 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...
1
func Test_fileName(t *testing.T) { type args struct { p string r int c int } tests := []struct { name string args args want string }{ { name: "test10x20", args: args{ p: "test", r: 10, c: 20, }, want: "test10x20.csv", }, } for _, tt := range tests { t.Run(tt.name, func(t ...
explode_data.jsonl/20935
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 2458, 675, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 3223, 914, 198, 197, 7000, 526, 198, 197, 1444, 526, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 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...
2
func TestSaveTableIndex(t *testing.T) { s := objmock.NewStore() enc := objects.NewStrListEncoder(true) idx := testutils.BuildRawCSV(2, 10)[1:] buf := bytes.NewBuffer(nil) _, err := objects.WriteBlockTo(enc, buf, idx) require.NoError(t, err) sum := testutils.SecureRandomBytes(16) require.NoError(t, objects.Save...
explode_data.jsonl/57829
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 285 }
[ 2830, 3393, 8784, 2556, 1552, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 2839, 16712, 7121, 6093, 741, 197, 954, 1669, 6171, 7121, 2580, 852, 19921, 3715, 692, 62077, 1669, 1273, 6031, 25212, 20015, 44209, 7, 17, 11, 220, 16, 15, 6620,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDecodeJsonWithNoTime(t *testing.T) { dec := json.NewDecoder(strings.NewReader("{\"event\":\"hello\"}")) dec.More() var msg Event err := dec.Decode(&msg) assert.NoError(t, err) assert.Nil(t, msg.Time) }
explode_data.jsonl/5173
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 32564, 5014, 2354, 2753, 1462, 1155, 353, 8840, 836, 8, 341, 197, 8169, 1669, 2951, 7121, 20732, 51442, 68587, 99141, 3087, 23488, 14990, 2105, 92, 28075, 197, 8169, 92768, 741, 2405, 3750, 3665, 198, 9859, 1669, 1622, 56372, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResourceSQLGlobalConfigCreateDefault(t *testing.T) { d, err := qa.ResourceFixture{ Fixtures: []qa.HTTPFixture{ { Method: "PUT", Resource: "/api/2.0/sql/config/endpoints", ExpectedRequest: map[string]interface{}{ "data_access_config": []interface{}{}, "enable_serverless_comp...
explode_data.jsonl/48782
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 385 }
[ 2830, 3393, 4783, 6688, 11646, 2648, 4021, 3675, 1155, 353, 8840, 836, 8, 341, 2698, 11, 1848, 1669, 88496, 20766, 18930, 515, 197, 12727, 941, 18513, 25, 3056, 15445, 27358, 18930, 515, 298, 197, 515, 571, 84589, 25, 256, 330, 6221, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConvertWithMisMatchListTypes(t *testing.T) { lines, err := convertTypes( "Foo", "Bar", ` struct Inner { 1: optional string field } struct Foo { 1: optional list<Inner> one 2: required string two } struct Bar { 1: optional list<Inner> one 2: required list<Inner> two }`, nil...
explode_data.jsonl/62049
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 12012, 2354, 83159, 8331, 852, 4173, 1155, 353, 8840, 836, 8, 341, 78390, 11, 1848, 1669, 5508, 4173, 1006, 197, 197, 1, 40923, 497, 330, 3428, 756, 197, 197, 3989, 197, 6472, 36356, 341, 298, 197, 16, 25, 10101, 914, 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 TestRecordingMetrics(t *testing.T) { state := &framework.CycleState{} state.SetRecordPluginMetrics(true) tests := []struct { name string action func(f framework.Framework) inject injectedResult wantExtensionPoint string wantStatus framework.Code }{ { ...
explode_data.jsonl/35748
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2867 }
[ 2830, 3393, 52856, 27328, 1155, 353, 8840, 836, 8, 341, 24291, 1669, 609, 3794, 727, 5449, 1397, 16094, 24291, 4202, 6471, 11546, 27328, 3715, 692, 78216, 1669, 3056, 1235, 341, 197, 11609, 2290, 914, 198, 197, 38933, 1797, 2915, 955, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMem(t *testing.T) { bms := NewMemoryBitmapSet() b, _ := NewBloomFilter(1000, 4, bms) if ok, _ := b.TestString("abc"); ok { t.Errorf("error") } b.AddString("abc") b.AddString("def") b.AddString("test") if ok, _ := b.TestString("abc"); !ok { t.Errorf("error") } if ok, _ := b.TestString("def"); !o...
explode_data.jsonl/53515
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 187 }
[ 2830, 3393, 18816, 1155, 353, 8840, 836, 8, 341, 2233, 1011, 1669, 1532, 10642, 16773, 1649, 741, 2233, 11, 716, 1669, 1532, 33, 18474, 5632, 7, 16, 15, 15, 15, 11, 220, 19, 11, 293, 1011, 692, 743, 5394, 11, 716, 1669, 293, 8787,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetBucketRegion(t *testing.T) { expectRegion := aws.StringValue(integSess.Config.Region) ctx := aws.BackgroundContext() region, err := s3manager.GetBucketRegion(ctx, integSess, aws.StringValue(bucketName), expectRegion) if err != nil { t.Fatalf("expect no error, got %v", err) } if e, a := expectRe...
explode_data.jsonl/9082
{ "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, 1949, 36018, 14091, 1155, 353, 8840, 836, 8, 341, 24952, 14091, 1669, 31521, 6431, 1130, 1548, 791, 50, 433, 10753, 65642, 692, 20985, 1669, 31521, 19047, 1972, 741, 197, 3943, 11, 1848, 1669, 274, 18, 13297, 2234, 36018, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCallerSubscriberClient_GetEthBalance(t *testing.T) { t.Parallel() tests := []struct { name string input string expected string }{ {"basic", "0x0100", "0.000000000000000256"}, {"larger than signed 64 bit integer", "0x4b3b4ca85a86c47a098a224000000000", "100000000000000000000.0000000000000000...
explode_data.jsonl/63846
{ "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, 58735, 40236, 2959, 13614, 65390, 21190, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 22427, 262, 914, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParse(t *testing.T) { b, err := ioutil.ReadFile(name) if err != nil { t.Fatal(err) } _, err = Parse(name, string(b)) if err != nil { t.Fatal(err) } }
explode_data.jsonl/49580
{ "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, 14463, 1155, 353, 8840, 836, 8, 341, 2233, 11, 1848, 1669, 43144, 78976, 3153, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 197, 6878, 1848, 284, 14775, 3153, 11, 914, 1883, 1171, 743, 1848, 961, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
3
func Test_parseCommandWrongArgsCount(t *testing.T) { if os.Getenv("DIE_PROCESS_DIE") == "1" { ctx := log.NewSyncLogger(log.NewLogfmtLogger(os.Stdout)) mm := createMockVMExtensionEnvironmentManager() ii, _ := GetInitializationInfo("yaba", "5.0", true, testEnableCallback) ext, _ := getVMExtensionInternal(ctx, ii...
explode_data.jsonl/18583
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 290 }
[ 2830, 3393, 21039, 4062, 29185, 4117, 2507, 1155, 353, 8840, 836, 8, 341, 743, 2643, 64883, 445, 35, 5371, 36199, 1557, 5371, 899, 621, 330, 16, 1, 341, 197, 20985, 1669, 1487, 7121, 12154, 7395, 12531, 7121, 2201, 12501, 7395, 9638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUserEntityVerifySUCCESS(t *testing.T) { auth = sendPost("http://localhost:8080/Login", APPJASON_UTF_8, UserEntityVerifySUCCESS) response := responseToString(auth) compareResults(t, response, HyperText.CustomResponses["success-login"]) }
explode_data.jsonl/59336
{ "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, 1474, 3030, 32627, 39308, 1155, 353, 8840, 836, 8, 341, 78011, 284, 3624, 4133, 445, 1254, 1110, 8301, 25, 23, 15, 23, 15, 54803, 497, 17912, 41, 35304, 55061, 62, 23, 11, 2657, 3030, 32627, 39308, 340, 21735, 1669, 2033, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMemChunk_IteratorBounds(t *testing.T) { var createChunk = func() *MemChunk { t.Helper() c := NewMemChunk(EncNone, 1e6, 1e6) if err := c.Append(&logproto.Entry{ Timestamp: time.Unix(0, 1), Line: "1", }); err != nil { t.Fatal(err) } if err := c.Append(&logproto.Entry{ Timestamp: t...
explode_data.jsonl/15707
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1128 }
[ 2830, 3393, 18816, 28304, 7959, 465, 850, 11394, 1155, 353, 8840, 836, 8, 1476, 2405, 1855, 28304, 284, 2915, 368, 353, 18816, 28304, 341, 197, 3244, 69282, 741, 197, 1444, 1669, 1532, 18816, 28304, 7, 7408, 4064, 11, 220, 16, 68, 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 TestWorkshop_AddJob(t *testing.T) { rand.Seed(time.Now().Unix()) seqMaker := sequence.New(1000000) shop := New(3) for i := 0; i < 40; i++ { time.Sleep(time.Duration(rand.Intn(5)) * time.Millisecond) n := rand.Intn(5) job := mockjob.New("job"+strconv.Itoa(n), seqMaker.Next()) shop.AddJob(job) } time...
explode_data.jsonl/29108
{ "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, 6776, 8675, 21346, 12245, 1155, 353, 8840, 836, 8, 341, 7000, 437, 5732, 291, 9730, 13244, 1005, 55832, 12367, 78561, 33259, 1669, 8500, 7121, 7, 16, 15, 15, 15, 15, 15, 15, 340, 197, 8675, 1669, 1532, 7, 18, 340, 2023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNegativeReplicas(t *testing.T) { size := int32(-1) jaeger := v1.NewJaeger(types.NamespacedName{Name: "TestNegativeReplicas"}) jaeger.Spec.Collector.Replicas = &size collector := NewCollector(jaeger) dep := collector.Get() assert.Equal(t, int32(1), *dep.Spec.Replicas) }
explode_data.jsonl/69111
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 38489, 18327, 52210, 1155, 353, 8840, 836, 8, 341, 13832, 1669, 526, 18, 17, 4080, 16, 340, 197, 5580, 1878, 1669, 348, 16, 7121, 52445, 1878, 52613, 98932, 68552, 675, 63121, 25, 330, 2271, 38489, 18327, 52210, 23625, 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 TestManifestGenErrorCacheFileContentsChange(t *testing.T) { tmpDir := t.TempDir() service := newService(tmpDir) service.initConstants = RepoServerInitConstants{ ParallelismLimit: 1, PauseGenerationAfterFailedGenerationAttempts: 2, PauseGenerationOnFailureForMinutes: 0, PauseGenerationOnFail...
explode_data.jsonl/5671
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 729 }
[ 2830, 3393, 38495, 9967, 1454, 8233, 1703, 14803, 4072, 1155, 353, 8840, 836, 8, 1476, 20082, 6184, 1669, 259, 65009, 6184, 2822, 52934, 1669, 501, 1860, 10368, 6184, 692, 52934, 8271, 9386, 284, 71509, 5475, 3803, 9386, 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...
5
func TestGoodCrossSignature(t *testing.T) { // This public key has a signing subkey, and the subkey has an // embedded cross-signature which correctly validates over the // primary and subkey. keys, err := ReadArmoredKeyRing(bytes.NewBufferString(goodCrossSignatureKey)) if err != nil { t.Fatal(err) } if len(ke...
explode_data.jsonl/14736
{ "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, 15216, 28501, 25088, 1155, 353, 8840, 836, 8, 341, 197, 322, 1096, 584, 1376, 702, 264, 15971, 1186, 792, 11, 323, 279, 1186, 792, 702, 458, 198, 197, 322, 22864, 5312, 27953, 1568, 892, 12440, 26257, 916, 279, 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...
4
func TestEntry_SetReadOnly_OnFocus(t *testing.T) { entry, window := setupImageTest(false) defer teardownImageTest(window) c := window.Canvas() entry.SetReadOnly(true) entry.FocusGained() test.AssertImageMatches(t, "entry/set_readonly_on_focus_readonly.png", c.Capture()) entry.SetReadOnly(false) entry.FocusGai...
explode_data.jsonl/57326
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 155 }
[ 2830, 3393, 5874, 14812, 20914, 35482, 13819, 1155, 353, 8840, 836, 8, 341, 48344, 11, 3241, 1669, 6505, 1906, 2271, 3576, 340, 16867, 49304, 1906, 2271, 15906, 340, 1444, 1669, 3241, 54121, 2822, 48344, 4202, 20914, 3715, 340, 48344, 401...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResponse(t *testing.T) { t.Run("MarshalJSON", func(t *testing.T) { for _, test := range responseTests { if test.Res == nil { continue } t.Run(test.Name, func(t *testing.T) { assert := assert.New(t) data, err := test.Res.MarshalJSON() assert.NoError(err) assert.Equal(test.Data, s...
explode_data.jsonl/25941
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 2582, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 55438, 5370, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 2023, 8358, 1273, 1669, 2088, 2033, 18200, 341, 298, 743, 1273, 8377, 621, 2092, 341, 571, 11664, 198, 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...
1
func TestHasDedicatedImageFs(t *testing.T) { for desc, test := range map[string]struct { rootfsDevice string imagefsDevice string dedicated bool }{ "dedicated device for image filesystem": { rootfsDevice: "root/device", imagefsDevice: "image/device", dedicated: true, }, "shared device f...
explode_data.jsonl/3073
{ "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, 10281, 35, 291, 10089, 1906, 48300, 1155, 353, 8840, 836, 8, 341, 2023, 6560, 11, 1273, 1669, 2088, 2415, 14032, 60, 1235, 341, 197, 33698, 3848, 6985, 220, 914, 198, 197, 31426, 3848, 6985, 914, 198, 197, 2698, 291, 10089...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_reportStatusSaved(t *testing.T) { ctx := log.NewSyncLogger(log.NewLogfmtLogger(os.Stdout)) ext := createTestVMExtension() c := cmd{nil, "Install", true, 99} ext.HandlerEnv.StatusFolder = statusTestDirectory ext.RequestedSequenceNumber = 45 createDirsForVMExtension(ext) defer cleanupDirsForVMExtension...
explode_data.jsonl/18574
{ "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, 14813, 2522, 41133, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1487, 7121, 12154, 7395, 12531, 7121, 2201, 12501, 7395, 9638, 83225, 1171, 95450, 1669, 1855, 2271, 11187, 12049, 2822, 1444, 1669, 5439, 90, 8385, 11, 330, 24690...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReverse(t *testing.T) { toReverse := "to_reverse" reversed := "esrever_ot" if reverse(toReverse) != reversed { t.Errorf("Reversal was incorrect, got: %s", reverse(toReverse)) } }
explode_data.jsonl/49055
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 82 }
[ 2830, 3393, 45695, 1155, 353, 8840, 836, 8, 341, 31709, 45695, 1669, 330, 983, 43277, 698, 17200, 43776, 1669, 330, 288, 265, 423, 65614, 1837, 743, 9931, 12186, 45695, 8, 961, 27437, 341, 197, 3244, 13080, 445, 693, 3004, 278, 572, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInitializeMultichannelRegistrar(t *testing.T) { cleanup := configtest.SetDevFabricConfigPath(t) defer cleanup() genesisFile := produceGenesisFile(t, genesisconfig.SampleDevModeSoloProfile, "testchannelid") defer os.Remove(genesisFile) conf := genesisConfig(t, genesisFile) cryptoProvider, err := sw.NewDe...
explode_data.jsonl/32655
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 727 }
[ 2830, 3393, 9928, 40404, 713, 2594, 70252, 1155, 353, 8840, 836, 8, 341, 1444, 60639, 1669, 2193, 1944, 4202, 14592, 81731, 2648, 1820, 1155, 340, 16867, 21290, 741, 82281, 13774, 1703, 1669, 8193, 84652, 1703, 1155, 11, 59366, 1676, 7626...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_s3mngr_NewUploaderWithClient(t *testing.T) { t.Parallel() type args struct { svc s3iface.S3API options []func(*Uploader) } type want struct { want UploadClient } type test struct { name string args args s *s3mngr want want checkFunc func(want, UploadClient...
explode_data.jsonl/20550
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 845 }
[ 2830, 3393, 643, 18, 21775, 901, 39582, 67574, 2354, 2959, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 13158, 2827, 2036, 341, 197, 1903, 7362, 257, 274, 18, 52674, 808, 18, 7082, 198, 197, 35500, 3056, 2830, 4071, 67574, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestInMeetsPrepareAndExecute(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("prepare pr1 from 'select ? in (1,?,?)'") tk.MustExec("set @a=1, @b=2, @c=3") tk.MustQuery("execute pr1 using @a,@b,@c").Check(testkit...
explode_data.jsonl/65505
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 354 }
[ 2830, 3393, 641, 7823, 1415, 50590, 3036, 17174, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShareLowOrderPubkey(t *testing.T) { var fooConn, barConn = makeKVStoreConnPair() defer fooConn.Close() defer barConn.Close() locEphPub, _ := genEphKeys() // all blacklisted low order points: for _, remLowOrderPubKey := range blacklist { _, _ = cmn.Parallel( func(_ int) (val interface{}, err error, ...
explode_data.jsonl/39908
{ "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, 12115, 24187, 4431, 29162, 792, 1155, 353, 8840, 836, 8, 341, 2405, 15229, 9701, 11, 3619, 9701, 284, 1281, 82707, 6093, 9701, 12443, 741, 16867, 15229, 9701, 10421, 741, 16867, 3619, 9701, 10421, 741, 71128, 36, 759, 29162, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInstanceCertificates(t *testing.T) { certs := new(corev1.Secret) certs.Name = "some-name" projections := instanceCertificates(certs) assert.Assert(t, marshalEquals(projections, strings.TrimSpace(` - secret: items: - key: patroni.ca-roots path: ~postgres-operator/patroni.ca-roots - key: ...
explode_data.jsonl/63108
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 2523, 97140, 1155, 353, 8840, 836, 8, 341, 1444, 15546, 1669, 501, 47867, 85, 16, 74779, 340, 1444, 15546, 2967, 284, 330, 14689, 11494, 1837, 197, 776, 24575, 1669, 2867, 97140, 1337, 15546, 692, 6948, 11711, 1155, 11, 6077...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListDevicesChildListDevicesChild(t *testing.T) { executor := &exectest.MockExecutor{ MockExecuteCommandWithOutput: func(command string, arg ...string) (string, error) { logger.Infof("command %s", command) return lsblkChildOutput, nil }, } device := "/dev/vdb" child, err := ListDevicesChild(execu...
explode_data.jsonl/65043
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 148 }
[ 2830, 3393, 852, 40835, 3652, 852, 40835, 3652, 1155, 353, 8840, 836, 8, 341, 67328, 4831, 1669, 609, 327, 439, 477, 24664, 25255, 515, 197, 9209, 1176, 17174, 4062, 2354, 5097, 25, 2915, 15143, 914, 11, 1392, 2503, 917, 8, 320, 917, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRouterMultiLevelParamUnmatch(t *testing.T) { // Create empty handler h := new(Handler) // Create empty context c := new(Context) c.Params = Params{} // Create route r := Route("/a/b/:param", h) // Non-matching routes rs := []string{"/", "", "/a/b", "a/b", "/a/b/c/d", "/a/b/"} // Check for _, s :...
explode_data.jsonl/35805
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 185 }
[ 2830, 3393, 9523, 20358, 4449, 2001, 1806, 6347, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 4287, 7013, 198, 9598, 1669, 501, 7, 3050, 692, 197, 322, 4230, 4287, 2266, 198, 1444, 1669, 501, 14001, 340, 1444, 58268, 284, 34352, 3148...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProvisioning_ClusterParameters(t *testing.T) { for tn, tc := range map[string]struct { planID string platformRegion string platformProvider internal.CloudProvider zonesCount *int region string expectedProfile gqlschema.KymaProfile expectedProvider ...
explode_data.jsonl/25517
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2716 }
[ 2830, 3393, 1336, 13013, 287, 85110, 4993, 9706, 1155, 353, 8840, 836, 8, 341, 2023, 43308, 11, 17130, 1669, 2088, 2415, 14032, 60, 1235, 341, 197, 197, 10393, 915, 1843, 914, 198, 197, 197, 15734, 14091, 256, 914, 198, 197, 197, 1573...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsValidRekeyRequestBasicV2(t *testing.T) { tlfID := tlf.FakeID(1, tlf.Private) uid := keybase1.MakeTestUID(1) bh, err := tlf.MakeHandle( []keybase1.UserOrTeamID{uid.AsUserOrTeam()}, nil, nil, nil, nil) require.NoError(t, err) brmd, err := MakeInitialRootMetadataV2(tlfID, bh) require.NoError(t, err) ...
explode_data.jsonl/8463
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 627 }
[ 2830, 3393, 55470, 693, 792, 1900, 15944, 53, 17, 1155, 353, 8840, 836, 8, 341, 3244, 11008, 915, 1669, 259, 11008, 991, 726, 915, 7, 16, 11, 259, 11008, 87738, 692, 197, 2423, 1669, 1376, 3152, 16, 50133, 2271, 6463, 7, 16, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMessageExportSettingsIsValidGlobalRelaySettingsMissing(t *testing.T) { fs := &FileSettings{ DriverName: NewString("foo"), // bypass file location check } mes := &MessageExportSettings{ EnableExport: NewBool(true), ExportFormat: NewString(COMPLIANCE_EXPORT_TYPE_GLOBALRELAY), ExportFromT...
explode_data.jsonl/50687
{ "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, 2052, 16894, 6086, 55470, 11646, 6740, 352, 6086, 25080, 1155, 353, 8840, 836, 8, 341, 53584, 1669, 609, 1703, 6086, 515, 197, 10957, 5469, 675, 25, 1532, 703, 445, 7975, 3975, 442, 30718, 1034, 3728, 1779, 198, 197, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRoundSkipOnNilPolkaFromHigherRound(t *testing.T) { cs1, vss := randState(4) vs2, vs3, vs4 := vss[1], vss[2], vss[3] height, round := cs1.Height, cs1.Round timeoutWaitCh := subscribe(cs1.eventBus, types.EventQueryTimeoutWait) newRoundCh := subscribe(cs1.eventBus, types.EventQueryNewRound) pv1, err := cs1...
explode_data.jsonl/81658
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 387 }
[ 2830, 3393, 27497, 35134, 1925, 19064, 14658, 4554, 3830, 87445, 27497, 1155, 353, 8840, 836, 8, 341, 71899, 16, 11, 348, 778, 1669, 10382, 1397, 7, 19, 340, 5195, 82, 17, 11, 6165, 18, 11, 6165, 19, 1669, 348, 778, 58, 16, 1125, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestXRef_AddCrossReferences(t *testing.T) { assert.NoError(t, PrepareTestDatabase()) // Issue #1 to test against itarget := testCreateIssue(t, 1, 2, "title1", "content1", false) // PR to close issue #1 content := fmt.Sprintf("content2, closes #%d", itarget.Index) pr := testCreateIssue(t, 1, 2, "title2", co...
explode_data.jsonl/23001
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 900 }
[ 2830, 3393, 55, 3945, 21346, 28501, 31712, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 31166, 2271, 5988, 12367, 197, 322, 25226, 671, 16, 311, 1273, 2348, 198, 23374, 1284, 1669, 1273, 4021, 42006, 1155, 11, 220, 16, 11, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDeleteLoop(t *testing.T) { // go c.deleteLoop(time.Second * 1) c, _ := newTestClient(t) pod := &api_v1.Pod{} pod.Status.PodIP = "1.1.1.1" c.handlePodAdd(pod) assert.Equal(t, len(c.Pods), 1) assert.Equal(t, len(c.deleteQueue), 0) c.handlePodDelete(pod) assert.Equal(t, len(c.Pods), 1) assert.Equal(t,...
explode_data.jsonl/56850
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 416 }
[ 2830, 3393, 6435, 14620, 1155, 353, 8840, 836, 8, 341, 197, 322, 728, 272, 7440, 14620, 9730, 32435, 353, 220, 16, 340, 1444, 11, 716, 1669, 501, 2271, 2959, 1155, 692, 3223, 347, 1669, 609, 2068, 2273, 16, 88823, 16094, 3223, 347, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInMemoryChannelStatus_SetAddressable(t *testing.T) { testCases := map[string]struct { url *apis.URL want *InMemoryChannelStatus }{ "empty string": { want: &InMemoryChannelStatus{ Status: duckv1beta1.Status{ Conditions: []apis.Condition{ { Type: InMemoryChannelConditionAddres...
explode_data.jsonl/22198
{ "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, 641, 10642, 9629, 2522, 14812, 4286, 480, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 19320, 220, 353, 13725, 20893, 198, 197, 50780, 353, 641, 10642, 9629, 2522, 198, 197, 59403, 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 TestLoadLocalGitHubContents(t *testing.T) { tests := []struct { name string githubContent []string fs map[string]string expectContents []GithubContent }{ { name: "none to set", githubContent: nil, expectContents: nil, }, { name: "set one file", fs: m...
explode_data.jsonl/73835
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1628 }
[ 2830, 3393, 5879, 7319, 75615, 14803, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 1843, 914, 198, 197, 3174, 3827, 2762, 220, 3056, 917, 198, 197, 53584, 1797, 2415, 14032, 30953, 198, 197, 24952, 14803, 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...
2
func TestOverflowNumericCell(t *testing.T) { f, err := OpenFile(filepath.Join("test", "OverflowNumericCell.xlsx")) if !assert.NoError(t, err) { t.FailNow() } val, err := f.GetCellValue("Sheet1", "A1") assert.NoError(t, err) // GOARCH=amd64 - all ok; GOARCH=386 - actual: "-2147483648" assert.Equal(t, "859560251...
explode_data.jsonl/953
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 157 }
[ 2830, 3393, 42124, 36296, 3599, 1155, 353, 8840, 836, 8, 341, 1166, 11, 1848, 1669, 5264, 1703, 34793, 22363, 445, 1944, 497, 330, 42124, 36296, 3599, 46838, 5455, 743, 753, 2207, 35699, 1155, 11, 1848, 8, 341, 197, 3244, 57243, 7039, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDiscoverTelemetryEndpoint(t *testing.T) { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() client, mc, _ := NewMockClient(mockCtrl, ec2.NewBlackholeEC2MetadataClient(), nil) expectedEndpoint := "http://127.0.0.1" mc.EXPECT().DiscoverPollEndpoint(gomock.Any()).Return(&ecs.DiscoverPollEndpointOut...
explode_data.jsonl/61449
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 215 }
[ 2830, 3393, 50002, 6639, 35958, 27380, 1155, 353, 8840, 836, 8, 341, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 7860, 15001, 991, 18176, 741, 25291, 11, 19223, 11, 716, 1669, 1532, 11571, 2959, 30389, 15001, 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...
3
func TestQueryValsetConfirm(t *testing.T) { var ( nonce = uint64(1) myValidatorCosmosAddr, _ = sdk.AccAddressFromBech32("cosmos1ees2tqhhhm9ahlhceh2zdguww9lqn2ckukn86l") myValidatorEthereumAddr gethcommon.Address = gethcommon.BytesToAddress(bytes.Repeat([]...
explode_data.jsonl/8793
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 866 }
[ 2830, 3393, 2859, 2208, 746, 16728, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 197, 39593, 11070, 284, 2622, 21, 19, 7, 16, 340, 197, 13624, 14256, 54224, 8631, 13986, 11, 716, 503, 284, 45402, 77538, 4286, 3830, 3430, 331, 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...
3
func TestMuxWith(t *testing.T) { var cmwInit1, cmwHandler1 uint64 var cmwInit2, cmwHandler2 uint64 mw1 := func(next Handler) Handler { cmwInit1++ return HandlerFunc(func(ctx context.Context, rc *fasthttp.RequestCtx) { cmwHandler1++ ctx = context.WithValue(ctx, ctxKey{"inline1"}, "yes") next.ServeHTTP(ct...
explode_data.jsonl/47947
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 681 }
[ 2830, 3393, 44, 2200, 2354, 1155, 353, 8840, 836, 8, 341, 2405, 9961, 86, 3803, 16, 11, 9961, 86, 3050, 16, 2622, 21, 19, 198, 2405, 9961, 86, 3803, 17, 11, 9961, 86, 3050, 17, 2622, 21, 19, 198, 2109, 86, 16, 1669, 2915, 16913,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestColorMConcatSelf(t *testing.T) { expected := [4][5]float64{ {30, 40, 30, 25, 30}, {40, 54, 43, 37, 37}, {30, 43, 51, 39, 34}, {25, 37, 39, 46, 36}, } m := ebiten.ColorM{} for i := 0; i < 4; i++ { for j := 0; j < 5; j++ { m.SetElement(i, j, float64((i+j)%5+1)) } } m.Concat(m) for i := 0; i...
explode_data.jsonl/48453
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 282 }
[ 2830, 3393, 1636, 44, 78440, 12092, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 508, 19, 1457, 20, 60, 3649, 21, 19, 515, 197, 197, 90, 18, 15, 11, 220, 19, 15, 11, 220, 18, 15, 11, 220, 17, 20, 11, 220, 18, 15, 1583, 197, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestRoleList_filterForbidden(t *testing.T) { h := newHelper(t) // @todo this can be a problematic test because it leaves // behind roles that are not denied this context // db purge might be needed h.repoMakeRole("role") f := h.repoMakeRole() helpers.AllowMe(h, types.ComponentRbacResource(), ...
explode_data.jsonl/8335
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 245 }
[ 2830, 3393, 9030, 852, 8727, 69115, 1155, 353, 8840, 836, 8, 341, 9598, 1669, 501, 5511, 1155, 692, 197, 322, 569, 17370, 419, 646, 387, 264, 34933, 1273, 1576, 432, 10901, 198, 197, 322, 981, 4815, 12783, 429, 525, 537, 14820, 419, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChangeFeedInfoClone(t *testing.T) { t.Parallel() info := &ChangeFeedInfo{ SinkURI: "blackhole://", Opts: map[string]string{}, StartTs: 417257993615179777, Config: &config.ReplicaConfig{ CaseSensitive: true, EnableOldValue: true, CheckGCSafePoint: true, }, } cloned, err := info....
explode_data.jsonl/10735
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 4072, 28916, 1731, 37677, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 27043, 1669, 609, 4072, 28916, 1731, 515, 197, 7568, 766, 10301, 25, 330, 11453, 30420, 1110, 756, 197, 197, 43451, 25, 262, 2415, 14032, 30953...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlockAccept_PostForkOption_SetsLastAcceptedBlock(t *testing.T) { // setup coreVM, _, _, _, proVM, coreGenBlk, _ := initTestProposerVM(t, time.Time{}, 0) proVM.Set(coreGenBlk.Timestamp()) // create post fork oracle block ... oracleCoreBlk := &TestOptionsBlock{ TestBlock: snowman.TestBlock{ TestDecida...
explode_data.jsonl/19403
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1388 }
[ 2830, 3393, 4713, 16646, 66726, 37, 669, 5341, 1098, 1415, 5842, 65906, 4713, 1155, 353, 8840, 836, 8, 341, 197, 322, 6505, 198, 71882, 11187, 11, 8358, 8358, 8358, 462, 11187, 11, 6200, 9967, 4923, 74, 11, 716, 1669, 2930, 2271, 2008...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_WriteJSON(t *testing.T) { out := bytes.NewBuffer([]byte{}) val := struct{ Key, Value string }{Key: "n", Value: "v"} err := ctl.WriteJSON(out, val) require.NoError(t, err) assert.Equal(t, `{ "Key": "n", "Value": "v" }`, string(out.Bytes())) }
explode_data.jsonl/6331
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 112 }
[ 2830, 3393, 31825, 5370, 1155, 353, 8840, 836, 8, 341, 13967, 1669, 5820, 7121, 4095, 10556, 3782, 37790, 19302, 1669, 2036, 90, 5309, 11, 5162, 914, 335, 90, 1592, 25, 330, 77, 497, 5162, 25, 330, 85, 63159, 9859, 1669, 64935, 4073, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestModMap(t *testing.T) { m := map[string]string{ "bill": "bill smith", "mary": "mary smith", } _, err := starlight.Eval([]byte(`contacts["bill"] = "john smith"`), map[string]interface{}{"contacts": m}, nil) if err != nil { t.Fatal(err) } expected := "john smith" if m["bill"] != expected { t.Fatal...
explode_data.jsonl/47076
{ "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, 4459, 2227, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 2415, 14032, 30953, 515, 197, 197, 1, 29642, 788, 330, 29642, 76721, 756, 197, 197, 1, 1534, 788, 330, 1534, 76721, 756, 197, 630, 197, 6878, 1848, 1669, 6774, 4145, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapProxy_PutAll(t *testing.T) { testMap := make(map[interface{}]interface{}) for i := 0; i < 10; i++ { testMap["testingKey"+strconv.Itoa(i)] = "testingValue" + strconv.Itoa(i) } err := mp.PutAll(testMap) if err != nil { t.Fatal(err) } else { entryList, err := mp.EntrySet() if err != nil { t.Fa...
explode_data.jsonl/57013
{ "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, 2227, 16219, 1088, 332, 2403, 1155, 353, 8840, 836, 8, 341, 18185, 2227, 1669, 1281, 9147, 58, 4970, 78134, 4970, 37790, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 16, 15, 26, 600, 1027, 341, 197, 18185, 2227, 1183, 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...
7
func TestRunner_Processor_Run_Error(t *testing.T) { t.Parallel() repo := &RepositoryMock{} publisher := &PublisherMock{} r := New(repo, WithRetryDuration(20*time.Millisecond), WithPublisher(100, publisher), ) ctx := context.Background() ctx, cancel := context.WithCancel(ctx) repo.GetLastEventsFunc = func(...
explode_data.jsonl/21368
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 395 }
[ 2830, 3393, 19486, 70241, 269, 84158, 28651, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 17200, 5368, 1669, 609, 4624, 11571, 16094, 3223, 15182, 1669, 609, 34550, 11571, 31483, 7000, 1669, 1532, 50608, 11, 3085, 51560, 12945, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJetStreamSubscribe_AckDupInProgress(t *testing.T) { s := RunBasicJetStreamServer() defer s.Shutdown() if config := s.JetStreamConfig(); config != nil { defer os.RemoveAll(config.StoreDir) } nc, err := nats.Connect(s.ClientURL()) if err != nil { t.Fatalf("Unexpected error: %v", err) } defer nc.Clo...
explode_data.jsonl/29174
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 655 }
[ 2830, 3393, 35641, 3027, 28573, 1566, 377, 85713, 88711, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 6452, 15944, 35641, 3027, 5475, 741, 16867, 274, 10849, 18452, 2822, 743, 2193, 1669, 274, 3503, 295, 3027, 2648, 2129, 2193, 961, 2092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEnsureTLSAndReturnAddr(t *testing.T) { for _, testCase := range []struct { endpoint string expectedOut string errExpected bool }{ { endpoint: "scanner.stackrox", errExpected: true, }, { endpoint: "http://scanner.stackrox", errExpected: true, }, { endpoint: "https://scanner.stackro...
explode_data.jsonl/64356
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 475 }
[ 2830, 3393, 64439, 45439, 3036, 5598, 13986, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 54452, 1669, 2088, 3056, 1235, 341, 197, 6246, 2768, 262, 914, 198, 197, 42400, 2662, 914, 198, 197, 9859, 18896, 1807, 198, 197, 59403, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestParseTracestateHeader(t *testing.T) { assertParseError := func(h, expect string) { _, err := apmhttp.ParseTracestateHeader(h) if assert.Error(t, err) { assert.Regexp(t, expect, err.Error()) } } assertParseError("a", `missing '=' in tracestate entry`) assertParseError("a=b, c ", `missing '=' in tr...
explode_data.jsonl/34189
{ "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, 14463, 6550, 2454, 4047, 1155, 353, 8840, 836, 8, 341, 6948, 14463, 1454, 1669, 2915, 3203, 11, 1720, 914, 8, 341, 197, 197, 6878, 1848, 1669, 1443, 76, 1254, 8937, 6550, 2454, 4047, 3203, 340, 197, 743, 2060, 6141, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestListProfileTypesOps(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleListOpsSuccessfully(t) allPages, err := profiletypes.ListOps(fake.ServiceClient(), ProfileTypeName).AllPages() th.AssertNoErr(t, err) allPolicyTypes, err := profiletypes.ExtractOps(allPages) th.AssertNoErr(t, err) for ...
explode_data.jsonl/49317
{ "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, 852, 8526, 4173, 38904, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 2822, 197, 6999, 852, 38904, 35959, 1155, 692, 50960, 17713, 11, 1848, 1669, 5526, 9242, 5814, 38904, 74138, 13860,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSerializerCreatesSerializedVersionOfAssertionResult(t *testing.T) { thing1 := Thing1{"Hi"} thing2 := Thing2{"Bye"} message := "Super-hip failure message." serializer := newSerializer() actualResult := serializer.serialize(thing1, thing2, message) expectedResult, _ := json.Marshal(reporting.FailureView{...
explode_data.jsonl/55043
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 332 }
[ 2830, 3393, 13909, 54868, 77521, 5637, 2124, 68639, 2077, 1155, 353, 8840, 836, 8, 341, 197, 1596, 16, 1669, 37200, 16, 4913, 13048, 16707, 197, 1596, 17, 1669, 37200, 17, 4913, 1359, 68, 16707, 24753, 1669, 330, 19284, 12, 2151, 7901, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestForPhraseUDT(t *testing.T) { gopClTest(t, ` type foo struct { } func (p *foo) Gop_Enum(c func(val string)) { } for v <- new(foo) { println(v) } `, `package main import fmt "fmt" type foo struct { } func (p *foo) Gop_Enum(c func(val string)) { } func main() { new(foo).Gop_Enum(func(v string) { fmt.Pri...
explode_data.jsonl/73641
{ "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, 2461, 46806, 4656, 51, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 1313, 15229, 2036, 341, 630, 2830, 320, 79, 353, 7975, 8, 479, 453, 62, 10766, 1337, 2915, 9098, 914, 593, 341, 630, 1958, 348,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLogger_leveledWriter(t *testing.T) { t.Run("writes errors to stderr", func(t *testing.T) { var stderr bytes.Buffer var stdout bytes.Buffer logger := New(&LoggerOptions{ Name: "test", Output: NewLeveledWriter(&stdout, map[Level]io.Writer{Error: &stderr}), }) logger.Error("this is an error",...
explode_data.jsonl/22706
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 746 }
[ 2830, 3393, 7395, 11751, 93964, 6492, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 59079, 5975, 311, 26436, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 2405, 26436, 5820, 22622, 198, 197, 2405, 20075, 5820, 22622, 271, 197, 17060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRequiresASMSecret(t *testing.T) { secret := apicontainer.Secret{ Provider: "asm", Name: "secret", Region: "us-west-2", ValueFrom: "/test/secretName", } container := &apicontainer.Container{ Name: "myName", Image: "image:tag", Secrets: ...
explode_data.jsonl/37244
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 460 }
[ 2830, 3393, 46961, 1911, 4826, 50856, 1155, 353, 8840, 836, 8, 341, 197, 20474, 1669, 1443, 51160, 1743, 74779, 515, 197, 197, 5179, 25, 220, 330, 10530, 756, 197, 21297, 25, 414, 330, 20474, 756, 197, 197, 14091, 25, 262, 330, 355, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsIncomplete(t *testing.T) { t.Parallel() tests := []struct { in string want bool }{ {"foo\n", false}, {"foo;", false}, {"\n", false}, {"'incomp", true}, {"foo; 'incomp", true}, {" (incomp", true}, {"badsyntax)", false}, } p := NewParser() for i, tc := range tests { t.Run(fmt.Sprin...
explode_data.jsonl/55139
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 394 }
[ 2830, 3393, 3872, 96698, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 17430, 256, 914, 198, 197, 50780, 1807, 198, 197, 59403, 197, 197, 4913, 7975, 1699, 497, 895, 1583, 197, 197, 4913, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMatchAtEnd(t *testing.T) { m := NewStringMatcher([]string{"teel", "eel", "el"}) hits := m.Match([]byte("The Man Of Steel")) assert(t, len(hits) == 3) assert(t, hits[0].Index == 0) assert(t, hits[1].Index == 1) assert(t, hits[2].Index == 2) hits = m.MatchThreadSafe([]byte("The Man Of Steel")) assert(t,...
explode_data.jsonl/22647
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 186 }
[ 2830, 3393, 8331, 1655, 3727, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1532, 703, 37554, 10556, 917, 4913, 665, 301, 497, 330, 95451, 497, 330, 301, 23625, 9598, 1199, 1669, 296, 36062, 10556, 3782, 445, 785, 2363, 4940, 12500, 5455, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Finalizer_PassThru(t *testing.T) { // Arrange handler, _ := newErrorsFakeHandler(mockErrorsArangoClientBackup{}) obj, _ := newObjectSet(backupApi.ArangoBackupStateCreate) time := meta.Time{ Time: time.Now(), } obj.DeletionTimestamp = &time // Act //createArangoDeployment(t, handler, deployment) c...
explode_data.jsonl/5626
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 217 }
[ 2830, 3393, 77072, 3135, 1088, 395, 1001, 2672, 1155, 353, 8840, 836, 8, 341, 197, 322, 40580, 198, 53326, 11, 716, 1669, 501, 13877, 52317, 3050, 30389, 13877, 6953, 5170, 2959, 56245, 6257, 692, 22671, 11, 716, 1669, 501, 1190, 1649, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRabbitMQParseMetadata(t *testing.T) { for _, testData := range testRabbitMQMetadata { _, err := parseRabbitMQMetadata(&ScalerConfig{ResolvedEnv: sampleRabbitMqResolvedEnv, TriggerMetadata: testData.metadata, AuthParams: testData.authParams}) if err != nil && !testData.isError { t.Error("Expected succes...
explode_data.jsonl/61596
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 49, 19949, 35169, 14463, 14610, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 67348, 1669, 2088, 1273, 49, 19949, 35169, 14610, 341, 197, 197, 6878, 1848, 1669, 4715, 49, 19949, 35169, 14610, 2099, 59553, 2648, 90, 65394, 14359, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTriggerPluginDispatcher(t *testing.T) { t.Parallel() type record struct { keyPath string } tests := []struct { name string trigger *FakeTrigger on string records []record wantCalledWith string wantCalledWithLen int }{ { name: "only ...
explode_data.jsonl/77156
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 774 }
[ 2830, 3393, 17939, 11546, 21839, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 13158, 3255, 2036, 341, 197, 23634, 1820, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 1060, 914, 198, 197, 83228, 1843, 353, 52317...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsConnTimeoutForWrappedConnTimeouts(t *testing.T) { dialer := DialTCPFn(testFreeTCPAddr(t), time.Millisecond, ed25519.GenPrivKey()) _, err := dialer() assert.Error(t, err) err = cmn.ErrorWrap(ErrConnTimeout, err.Error()) assert.True(t, IsConnTimeout(err)) }
explode_data.jsonl/11246
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 107 }
[ 2830, 3393, 3872, 9701, 7636, 2461, 67795, 9701, 7636, 82, 1155, 353, 8840, 836, 8, 341, 2698, 530, 261, 1669, 66155, 49896, 24911, 8623, 10940, 49896, 13986, 1155, 701, 882, 71482, 11, 1578, 17, 20, 20, 16, 24, 65384, 32124, 1592, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetFills(t *testing.T) { b.SetDefaults() TestSetup(t) _, err := b.GetFills("", "BTC-USD", "", "", "") if areTestAPIKeysSet() && err != nil { t.Errorf("Could not get fills: %s", err) } else if !areTestAPIKeysSet() && err == nil { t.Error("Expecting an error when no keys are set") } }
explode_data.jsonl/14538
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 124 }
[ 2830, 3393, 1949, 37, 3305, 1155, 353, 8840, 836, 8, 341, 2233, 4202, 16273, 741, 73866, 21821, 1155, 692, 197, 6878, 1848, 1669, 293, 2234, 37, 3305, 19814, 330, 59118, 12, 26749, 497, 7342, 7342, 14676, 743, 525, 2271, 7082, 8850, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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