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 TestLevelDBReceiptsGetReceiptsUnmarshalFailIgnoreReceipt(t *testing.T) { assert := assert.New(t) conf := &LevelDBReceiptStoreConf{ Path: path.Join(tmpdir, "test8"), } r, err := newLevelDBReceipts(conf) defer r.store.Close() receipt1 := make(map[string]interface{}) receipt1["_id"] = "r1" receipt1["prop1"...
explode_data.jsonl/21459
{ "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, 4449, 3506, 67461, 82, 1949, 67461, 82, 1806, 27121, 19524, 12497, 67461, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 67850, 1669, 609, 4449, 3506, 67461, 6093, 15578, 515, 197, 69640, 25, 1815, 22363, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_skip_string(t *testing.T) { should := require.New(t) iter := ParseString(ConfigDefault, `"abc`) iter.skipString() should.Equal(1, iter.head) iter = ParseString(ConfigDefault, `\""abc`) iter.skipString() should.Equal(3, iter.head) reader := &StagedReader{ r1: `abc`, r2: `"`, } iter = Parse(Config...
explode_data.jsonl/7299
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 357 }
[ 2830, 3393, 44830, 3904, 1155, 353, 8840, 836, 8, 341, 197, 5445, 1669, 1373, 7121, 1155, 340, 79924, 1669, 14775, 703, 33687, 3675, 11, 53305, 13683, 24183, 79924, 36596, 703, 741, 197, 5445, 12808, 7, 16, 11, 5367, 16042, 340, 79924, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPermissionTargetEmptyFields(t *testing.T) { initArtifactoryTest(t) params := services.NewPermissionTargetParams() params.Name = fmt.Sprintf("%s-%s", PermissionTargetNamePrefix, getRunId()) assert.Nil(t, params.Repo) params.Repo = &services.PermissionTargetSection{} params.Repo.Repositories = []string{"A...
explode_data.jsonl/7216
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 284 }
[ 2830, 3393, 14966, 6397, 3522, 8941, 1155, 353, 8840, 836, 8, 341, 28248, 9286, 333, 2919, 2271, 1155, 340, 25856, 1669, 3516, 7121, 14966, 6397, 4870, 741, 25856, 2967, 284, 8879, 17305, 4430, 82, 11069, 82, 497, 18135, 6397, 675, 1433...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScenarioResult_SuccessRate(t *testing.T) { tests := []struct { name string fields fields want float32 }{ {"10%", fields{RequestCount: 10, SuccessCount: 1}, float32(10)}, {"50%", fields{RequestCount: 10, SuccessCount: 5}, float32(50)}, {"100%", fields{RequestCount: 10, SuccessCount: 10}, floa...
explode_data.jsonl/49955
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 232 }
[ 2830, 3393, 54031, 2077, 87161, 11564, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 55276, 5043, 198, 197, 50780, 256, 2224, 18, 17, 198, 197, 59403, 197, 197, 4913, 16, 15, 40192, 5043,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_updateEndpointInDevfile(t *testing.T) { fs := filesystem.NewFakeFs() type args struct { devObj parser.DevfileObj url localConfigProvider.LocalURL } tests := []struct { name string args args wantEndpoint v1.Endpoint wantErr bool }{ { name: "case 1: update the endp...
explode_data.jsonl/72364
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1839 }
[ 2830, 3393, 8882, 27380, 641, 14592, 1192, 1155, 353, 8840, 836, 8, 341, 53584, 1669, 38389, 7121, 52317, 48300, 2822, 13158, 2827, 2036, 341, 197, 27302, 5261, 6729, 77611, 1192, 5261, 198, 197, 19320, 262, 2205, 2648, 5179, 20856, 3144,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestReaderWriter(t *testing.T) { assert := assert.On(t) stream := ray.NewStream(context.Background()) dest := net.TCPDestination(net.DomainAddress("v2ray.com"), 80) writer := NewWriter(1, dest, stream, protocol.TransferTypeStream) dest2 := net.TCPDestination(net.LocalHostIP, 443) writer2 := NewWriter(2, d...
explode_data.jsonl/21698
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1351 }
[ 2830, 3393, 5062, 6492, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 8071, 1155, 692, 44440, 1669, 18299, 7121, 3027, 5378, 19047, 12367, 49616, 1669, 4179, 836, 7123, 33605, 30723, 20442, 4286, 445, 85, 17, 11611, 905, 3975, 220, 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 TestValidateRepositorySchemaPathTemplate(t *testing.T) { tests := []struct { name string template string tenantMode ProjectTenantMode errPart string }{ { "OK", "{{DB_NAME}}_hello.sql", TenantModeDisabled, "", }, { "OK with optional tokens", "{{ENV_NAME}}/{{DB_NAME}}.sql",...
explode_data.jsonl/10283
{ "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, 17926, 4624, 8632, 1820, 7275, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 22832, 256, 914, 198, 197, 197, 43919, 3636, 5787, 71252, 3636, 198, 197, 9859, 5800, 262, 914, 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...
6
func TestSupportedFlags(t *testing.T) { Reset() // Mock command line arguments os.Args = append(os.Args, defaultDuskConfig) // Ensure here to list all supported CLI flags os.Args = append(os.Args, "--logger.level=custom") os.Args = append(os.Args, "--general.network=mainnet") os.Args = append(os.Args, "--networ...
explode_data.jsonl/43169
{ "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, 34636, 9195, 1155, 353, 8840, 836, 8, 341, 197, 14828, 2822, 197, 322, 14563, 3210, 1555, 5977, 198, 25078, 51015, 284, 8737, 9638, 51015, 11, 1638, 35, 32779, 2648, 340, 197, 322, 29279, 1588, 311, 1140, 678, 7248, 39277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetU2FToken(t *testing.T) { ts := httptest.NewTLSServer( http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, getU2FTokensResponse) }), ) defer ts.Close() duo := buildAdminClient(ts.URL, nil) result, err := duo.GetU2FToken("D21RU6X1B1DF5P54B6PV") if err != nil { t.Er...
explode_data.jsonl/61438
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 325 }
[ 2830, 3393, 1949, 52, 17, 37, 3323, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 13470, 1220, 2836, 1006, 197, 28080, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 298, 11009, 991, 33655, 3622, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMv(t *testing.T) { testFs := newTmpFS(t) src := "sample.md" dest := "dest.md" copyFile(t, testFs, filepath.Join("testdata", src), src) err := mv(testFs, src, dest) require.NoError(t, err) require.False(t, fileExists(testFs, src), "Source file still exists") require.True(t, fileExists(testFs, dest),...
explode_data.jsonl/36829
{ "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, 44, 85, 1155, 353, 8840, 836, 8, 341, 18185, 48300, 1669, 501, 35986, 8485, 1155, 692, 41144, 1669, 330, 13611, 21324, 698, 49616, 1669, 330, 4979, 21324, 1837, 49124, 1703, 1155, 11, 1273, 48300, 11, 26054, 22363, 445, 9242...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPinSyncAndAccessPutSetChunkMultipleTimes(t *testing.T) { var closed chan struct{} testHookCollectGarbageChan := make(chan uint64) t.Cleanup(setTestHookCollectGarbage(func(collectedCount uint64) { // don't trigger if we haven't collected anything - this may // result in a race condition when we inspect t...
explode_data.jsonl/11636
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 741 }
[ 2830, 3393, 19861, 12154, 3036, 6054, 19103, 1649, 28304, 32089, 18889, 1155, 353, 8840, 836, 8, 341, 2405, 7877, 26023, 2036, 16094, 18185, 31679, 47504, 43930, 20652, 46019, 1669, 1281, 35190, 2622, 21, 19, 340, 3244, 727, 60639, 14171, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBadEnv(t *testing.T) { _, err := fixture(t, "invalid/bad-env.workflow") pe := extractParserError(t, err) assert.Equal(t, "e", pe.Actions[4].Identifier) assert.Equal(t, 3, len(pe.Actions[4].Env)) assert.Equal(t, "bar", pe.Actions[4].Env["^"]) assert.Equal(t, "g", pe.Actions[6].Identifier) assert.Equal(t...
explode_data.jsonl/55679
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 170 }
[ 2830, 3393, 17082, 14359, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 12507, 1155, 11, 330, 11808, 3470, 329, 67462, 72774, 1138, 197, 375, 1669, 8649, 6570, 1454, 1155, 11, 1848, 340, 6948, 12808, 1155, 11, 330, 68, 497, 105...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDatastoreGetNotAllowedAfterClose(t *testing.T) { t.Parallel() path := testRepoPath("test", t) assert.True(!IsInitialized(path), t, "should NOT be initialized") assert.Nil(Init(path, &config.Config{Datastore: config.DefaultDatastoreConfig()}), t, "should initialize successfully") r, err := Open(path) ass...
explode_data.jsonl/24175
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 230 }
[ 2830, 93200, 4314, 1949, 97634, 6025, 7925, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 26781, 1669, 1273, 25243, 1820, 445, 1944, 497, 259, 692, 6948, 32443, 3471, 3872, 22495, 5581, 701, 259, 11, 330, 5445, 4183, 387, 17271,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_UpdateConfigMap(t *testing.T) { t.Run("Update not existing config-map", func(t *testing.T) { t.Parallel() testEnv := getConfigMapTestEnv() namespace := "some-namespace" name := "some-name" testConfigMap := corev1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{Name: name}, Data: map[string]str...
explode_data.jsonl/55315
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 594 }
[ 2830, 3393, 47393, 2648, 2227, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4289, 537, 6350, 2193, 25858, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 41288, 7957, 741, 197, 18185, 14359, 1669, 66763, 2227, 2271, 14359, 741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestError(t *testing.T) { setFlags() defer logging.swap(logging.newBuffers()) Error("test") if !contains(errorLog, "E", t) { t.Errorf("Error has wrong character: %q", contents(errorLog)) } if !contains(errorLog, "test", t) { t.Error("Error failed") } str := contents(errorLog) if !contains(warningLog, ...
explode_data.jsonl/8429
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 1454, 1155, 353, 8840, 836, 8, 341, 8196, 9195, 741, 16867, 8392, 54537, 51687, 4618, 36219, 2398, 58421, 445, 1944, 1138, 743, 753, 13372, 6390, 2201, 11, 330, 36, 497, 259, 8, 341, 197, 3244, 13080, 445, 1454, 702, 4969,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNode_Indicator(t *testing.T) { node := &StatelessNode{HostIP: "1.1.1.1", GRPCPort: 19000} indicator := node.Indicator() assert.Equal(t, "1.1.1.1:19000", indicator) node2, err := ParseNode(indicator) assert.NoError(t, err) node3 := node2.(*StatelessNode) assert.Equal(t, node, node3) }
explode_data.jsonl/48084
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 129 }
[ 2830, 3393, 1955, 62, 19523, 1155, 353, 8840, 836, 8, 341, 20831, 1669, 609, 1397, 1717, 1955, 90, 9296, 3298, 25, 330, 16, 13, 16, 13, 16, 13, 16, 497, 14773, 4872, 7084, 25, 220, 16, 24, 15, 15, 15, 532, 197, 56151, 1669, 2436...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetPodListFromChannels(t *testing.T) { cases := []struct { k8sPod v1.PodList k8sPodError error pods *v1.PodList expected *pod.PodList expectedError error }{ { v1.PodList{}, nil, &v1.PodList{}, &pod.PodList{ ListMeta: api.ListMeta{}, Pods: ...
explode_data.jsonl/10914
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1447 }
[ 2830, 3393, 1949, 23527, 852, 3830, 35925, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 16463, 23, 82, 23527, 286, 348, 16, 88823, 852, 198, 197, 16463, 23, 82, 23527, 1454, 256, 1465, 198, 197, 3223, 29697, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContextShouldBindWithQuery(t *testing.T) { w := httptest.NewRecorder() c, _ := CreateTestContext(w) c.Request, _ = http.NewRequest("POST", "/?foo=bar&bar=foo&Foo=bar1&Bar=foo1", bytes.NewBufferString("foo=unused")) var obj struct { Foo string `form:"foo"` Bar string `form:"bar"` Foo1 string `form...
explode_data.jsonl/26829
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 252 }
[ 2830, 3393, 1972, 14996, 9950, 2354, 2859, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 54320, 70334, 7121, 47023, 741, 1444, 11, 716, 1669, 4230, 2271, 1972, 3622, 692, 1444, 9659, 11, 716, 284, 1758, 75274, 445, 2946, 497, 3521, 30, 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...
1
func TestCommitError(t *testing.T) { t.Parallel() f := NewEtcdTestFixture(t) defer f.Cleanup() db, err := newEtcdBackend(f.BackendConfig()) require.NoError(t, err) // Preset DB state. f.Put("123", "xyz") // Count the number of applies. cnt := 0 apply := func(stm STM) error { // STM must have the key/va...
explode_data.jsonl/24939
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 315 }
[ 2830, 3393, 33441, 1454, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1166, 1669, 1532, 31860, 4385, 69356, 1155, 340, 16867, 282, 727, 60639, 2822, 20939, 11, 1848, 1669, 501, 31860, 4385, 29699, 955, 8864, 408, 2648, 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...
2
func Test_Page(t *testing.T) { as := assert.New(t) t.Run("", func(t *testing.T) { _, err := feedbinNoAuthIns.CreatePage(ctx, &CreatePageReq{}) as.NotNil(err) as.Equal("HTTP Basic: Access denied.", err.Error()) }) t.Run("", func(t *testing.T) { resp, err := feedbinIns.CreatePage(ctx, &CreatePageReq{}) sp...
explode_data.jsonl/82308
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1031 }
[ 2830, 3393, 51540, 1155, 353, 8840, 836, 8, 341, 60451, 1669, 2060, 7121, 1155, 692, 3244, 16708, 19814, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 6878, 1848, 1669, 5395, 6863, 2753, 5087, 15474, 7251, 2665, 7502, 11, 609, 4021, 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 TestAddItemEnclosureNoLinkOverride(t *testing.T) { t.Parallel() // arrange p := podcast.New("title", "link", "description", nil, nil) i := podcast.Item{Title: "title", Description: "desc"} i.AddEnclosure("http://example.com/1.mp3", podcast.MP3, -1) // act added, err := p.AddItem(i) // assert assert.Equ...
explode_data.jsonl/73078
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 2212, 1234, 7408, 11653, 2753, 3939, 2177, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 30893, 198, 3223, 1669, 17711, 7121, 445, 2102, 497, 330, 2080, 497, 330, 4684, 497, 2092, 11, 2092, 340, 8230, 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 TestLoadBlockIndex(t *testing.T) { defer os.RemoveAll("temp") testDB := dbm.NewDB("testdb", "leveldb", "temp") store := NewStore(testDB) block := config.GenesisBlock() txStatus := bc.NewTransactionStatus() if err := store.SaveBlock(block, txStatus); err != nil { t.Fatal(err) } for block.Height <= 128 ...
explode_data.jsonl/49973
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 313 }
[ 2830, 3393, 5879, 4713, 1552, 1155, 353, 8840, 836, 8, 341, 16867, 2643, 84427, 445, 3888, 1138, 18185, 3506, 1669, 2927, 76, 7121, 3506, 445, 1944, 1999, 497, 330, 3449, 783, 65, 497, 330, 3888, 1138, 57279, 1669, 1532, 6093, 8623, 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...
8
func TestRangeLarger(t *testing.T) { line := "RAnGE:60s:15s # Extra fluff" p := parser{ line: line, fieldSep: ":", ranges: []agerotate.Range{ agerotate.Range{Age: 60 * time.Second}, }, } expected := "Line 0: Age value must be larger than previous age value" err := p.parseLine() if err == nil { ...
explode_data.jsonl/54253
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 191 }
[ 2830, 3393, 6046, 43, 41776, 1155, 353, 8840, 836, 8, 341, 27109, 1669, 330, 49, 2082, 10777, 25, 21, 15, 82, 25, 16, 20, 82, 256, 671, 24992, 1320, 1362, 698, 3223, 1669, 6729, 515, 197, 27109, 25, 257, 1555, 345, 197, 39250, 411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBetweenCondition(t *testing.T) { cases := []struct { name string input ConditionBuilder expectedNode exprNode err condErrorMode }{ { name: "basic method between for name", input: Name("foo").Between(Value(5), Value(7)), expectedNode: exprNode{ children: []exprN...
explode_data.jsonl/27676
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1445 }
[ 2830, 3393, 25477, 10547, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 22427, 286, 15180, 3297, 198, 197, 42400, 1955, 15169, 1955, 198, 197, 9859, 688, 9756, 1454, 3636, 198, 197, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestValidateFunc(t *testing.T) { tests := []struct { name string b *unstructured.Unstructured original *eventingv1.Broker want *apis.FieldError }{{ name: "not my broker class", b: createOtherBroker(), }, { name: "invalid config missing kind/apiversion", b: createRabbitMQBrok...
explode_data.jsonl/35000
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 531 }
[ 2830, 3393, 17926, 9626, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 2233, 286, 353, 359, 51143, 10616, 51143, 198, 197, 197, 9889, 353, 3087, 287, 85, 16, 1785, 45985, 198, 197, 50780, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestPerformRequest(t *testing.T) { client, err := NewClient() if err != nil { t.Fatal(err) } res, err := client.PerformRequest(context.TODO(), "GET", "/", nil, nil) if err != nil { t.Fatal(err) } if res == nil { t.Fatal("expected response to be != nil") } ret := new(PingResult) if err := json.Unma...
explode_data.jsonl/38017
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 208 }
[ 2830, 3393, 46951, 1900, 1155, 353, 8840, 836, 8, 341, 25291, 11, 1848, 1669, 1532, 2959, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 10202, 11, 1848, 1669, 2943, 21746, 1900, 5378, 90988, 1507, 330, 3806, 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...
6
func TestRecordingSender(t *testing.T) { start := time.Now() rs := new(RecordingSender) statter, err := statsd.NewClientWithSender(rs, "test", 0) if err != nil { t.Errorf("failed to construct client") return } statter.Inc("stat", 4444, 1.0) statter.Dec("stat", 5555, 1.0) statter.Set("set-stat", "some strin...
explode_data.jsonl/27909
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 477 }
[ 2830, 3393, 52856, 20381, 1155, 353, 8840, 836, 8, 341, 21375, 1669, 882, 13244, 741, 41231, 1669, 501, 7, 52856, 20381, 340, 18388, 1650, 11, 1848, 1669, 10472, 67, 7121, 2959, 2354, 20381, 17027, 11, 330, 1944, 497, 220, 15, 340, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHealthCheck(t *testing.T) { options := server.DefaultOptions().WithAuth(true) bs := servertest.NewBufconnServer(options) bs.Start() defer bs.Stop() defer os.RemoveAll(options.Dir) defer os.Remove(".state-") tkf := cmdtest.RandString() ts := tokenservice.NewFileTokenService().WithTokenFileName(tkf) ...
explode_data.jsonl/39498
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 260 }
[ 2830, 3393, 14542, 3973, 1155, 353, 8840, 836, 8, 341, 35500, 1669, 3538, 13275, 3798, 1005, 2354, 5087, 3715, 340, 93801, 1669, 1420, 1621, 477, 7121, 15064, 5148, 5475, 12078, 692, 93801, 12101, 741, 16867, 17065, 30213, 2822, 16867, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUserStoreUpdateMfaActive(t *testing.T) { Setup() u1 := model.User{} u1.Email = model.NewId() Must(store.User().Save(&u1)) time.Sleep(100 * time.Millisecond) if err := (<-store.User().UpdateMfaActive(u1.Id, true)).Err; err != nil { t.Fatal(err) } if err := (<-store.User().UpdateMfaActive(u1.Id, fa...
explode_data.jsonl/5107
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 1474, 6093, 4289, 44, 3632, 5728, 1155, 353, 8840, 836, 8, 341, 197, 21821, 2822, 10676, 16, 1669, 1614, 7344, 16094, 10676, 16, 24066, 284, 1614, 7121, 764, 741, 9209, 590, 31200, 7344, 1005, 8784, 2099, 84, 16, 4390, 219...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParsePanels(t *testing.T) { t.Parallel() cases := []struct { name string input string expected string }{ { name: "panel", input: `{panel} This is a panel description. And, a new line. {panel} `, expected: ` --- This is a panel description. And, a new line. --- `, }, { name: "...
explode_data.jsonl/2586
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 523 }
[ 2830, 3393, 14463, 35693, 2010, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 22427, 262, 914, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 515, 298, 1160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPositions(t *testing.T) { client := v1.New(&v1.Config{ Key: os.Getenv("BFKEY"), Secret: os.Getenv("BFSECRET"), }) start := time.Now() res, err := client.Positions(list.NewForPositions( types.FXBTCJPY, )) assert.NoError(t, err) avg, size, sfd, pnl := res.Aggregate() fmt.Printf("%.1f %+v sfd:%...
explode_data.jsonl/41219
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 219 }
[ 2830, 3393, 45793, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 348, 16, 7121, 2099, 85, 16, 10753, 515, 197, 55242, 25, 262, 2643, 64883, 445, 19883, 4784, 4461, 197, 7568, 50856, 25, 2643, 64883, 445, 19883, 65310, 4461, 197, 3518, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLoginHandler(t *testing.T) { // the middleware to test authMiddleware, err := New(&GinJWTMiddleware{ Realm: "test zone", Key: key, PayloadFunc: func(data interface{}) MapClaims { // Set custom claim, to be checked in Authorizator method return MapClaims{"testkey": "testval", "exp": 0} }, A...
explode_data.jsonl/64435
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1019 }
[ 2830, 3393, 6231, 3050, 1155, 353, 8840, 836, 8, 1476, 197, 322, 279, 29679, 311, 1273, 198, 78011, 24684, 11, 1848, 1669, 1532, 2099, 38, 258, 55172, 24684, 515, 197, 197, 64290, 25, 330, 1944, 10143, 756, 197, 55242, 25, 256, 1376, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestObjectNames(t *testing.T) { s := RunBasicJetStreamServer() defer shutdown(s) nc, js := jsClient(t, s) defer nc.Close() obs, err := js.CreateObjectStore(&nats.ObjectStoreConfig{Bucket: "OBJS"}) expectOk(t, err) // Test filename like naming. _, err = obs.PutString("BLOB.txt", "A") expectOk(t, err) /...
explode_data.jsonl/75494
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 296 }
[ 2830, 3393, 1190, 7980, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 6452, 15944, 35641, 3027, 5475, 741, 16867, 23766, 1141, 692, 197, 1016, 11, 6994, 1669, 6994, 2959, 1155, 11, 274, 340, 16867, 25126, 10421, 2822, 197, 5481, 11, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSuccessLatestNonPatchFinalToMinor(t *testing.T) { testRepo := newTestRepo(t) defer testRepo.cleanup(t) nextMinorTag := "v1.18.0" require.Nil(t, command.NewWithWorkDir( testRepo.sut.Dir(), "git", "tag", nextMinorTag, ).RunSuccess()) result, err := testRepo.sut.LatestNonPatchFinalToMinor() require.Nil...
explode_data.jsonl/14008
{ "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, 7188, 31992, 8121, 43622, 19357, 1249, 57024, 1155, 353, 8840, 836, 8, 341, 18185, 25243, 1669, 501, 2271, 25243, 1155, 340, 16867, 1273, 25243, 87689, 1155, 692, 28144, 57024, 5668, 1669, 330, 85, 16, 13, 16, 23, 13, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTxn_Commit(t *testing.T) { defer leaktest.AfterTest(t)() s, db := setup(t) defer s.Stopper().Stop() err := db.Txn(context.TODO(), func(txn *client.Txn) error { b := txn.NewBatch() b.Put("aa", "1") b.Put("ab", "2") return txn.CommitInBatch(b) }) if err != nil { t.Fatal(err) } b := &client.Ba...
explode_data.jsonl/20024
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 263 }
[ 2830, 3393, 31584, 77, 16946, 1763, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 1903, 11, 2927, 1669, 6505, 1155, 340, 16867, 274, 7758, 18487, 1005, 10674, 2822, 9859, 1669, 2927, 836, 42967, 5378, 9098...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStripTags(t *testing.T) { opt := NewOption() tp := newTextProcessor(opt) actual := tp.EliminateTags("A BC\342\224\200<br>\n<br>&lt;&gt; \t\n ", "") expected := "A BC\n<> \n" if actual != expected { t.Errorf("expected %v, but got %v", expected, actual) } }
explode_data.jsonl/25046
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 128 }
[ 2830, 3393, 5901, 15930, 1155, 353, 8840, 836, 8, 341, 64838, 1669, 1532, 5341, 741, 73423, 1669, 94653, 22946, 24539, 692, 88814, 1669, 18101, 5142, 4659, 3277, 15930, 445, 133054, 22441, 139173, 134557, 59, 18, 19, 17, 59, 17, 17, 19,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestTransfomersImageKnativeConfig(t *testing.T) { th := kusttest_test.MakeHarness(t) makeTransfomersImageKnativeBase(th) m := th.Run("/app/base", th.MakeDefaultOptions()) th.AssertActualEqualsExpected(m, ` apiVersion: serving.knative.dev/v1alpha1 kind: Service metadata: name: echo spec: runLatest: conf...
explode_data.jsonl/49823
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 178 }
[ 2830, 3393, 3167, 69, 68538, 1906, 42, 29738, 2648, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 595, 590, 1944, 4452, 50133, 74248, 1155, 340, 77438, 3167, 69, 68538, 1906, 42, 29738, 3978, 24365, 340, 2109, 1669, 270, 16708, 4283, 676, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEnv(t *testing.T) { initJSON() BindEnv("id") BindEnv("f", "FOOD", "OLD_FOOD") testutil.Setenv(t, "ID", "13") testutil.Setenv(t, "FOOD", "apple") testutil.Setenv(t, "OLD_FOOD", "banana") testutil.Setenv(t, "NAME", "crunk") assert.Equal(t, "13", Get("id")) assert.Equal(t, "apple", Get("f")) assert.E...
explode_data.jsonl/9877
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 188 }
[ 2830, 3393, 14359, 1155, 353, 8840, 836, 8, 341, 28248, 5370, 2822, 197, 9950, 14359, 445, 307, 1138, 197, 9950, 14359, 445, 69, 497, 330, 3788, 2069, 497, 330, 7863, 1400, 55250, 5130, 18185, 1314, 4202, 3160, 1155, 11, 330, 915, 497...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDisabledSubpath(t *testing.T) { fhu := hostutil.NewFakeHostUtil(nil) fsp := &subpath.FakeSubpath{} pod := v1.Pod{ Spec: v1.PodSpec{ HostNetwork: true, }, } podVolumes := kubecontainer.VolumeMap{ "disk": kubecontainer.VolumeInfo{Mounter: &stubVolume{path: "/mnt/disk"}}, } cases := map[string]st...
explode_data.jsonl/49879
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 588 }
[ 2830, 3393, 25907, 3136, 2343, 1155, 353, 8840, 836, 8, 341, 1166, 16739, 1669, 3468, 1314, 7121, 52317, 9296, 2742, 27907, 340, 1166, 2154, 1669, 609, 1966, 2343, 991, 726, 3136, 2343, 16094, 3223, 347, 1669, 348, 16, 88823, 515, 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...
6
func TestSubpathsWithMultipaths(t *testing.T) { const jsonStr = ` [ {"a": 1}, {"a": 2, "values": ["a", "b", "c", "d", "e"]}, true, ["a", "b", "c", "d", "e"], 4 ] ` assert(t, Get(jsonStr, `1.values.@ugly`).Raw == `["a","b","c","d","e"]`) assert(t, Get(jsonStr, `1.values.[0,3]`).Raw == `["a","d"]`) assert(t...
explode_data.jsonl/43481
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 321 }
[ 2830, 3393, 3136, 2343, 16056, 57251, 26286, 1155, 353, 8840, 836, 8, 341, 4777, 2951, 2580, 284, 22074, 9640, 220, 5212, 64, 788, 220, 16, 1583, 220, 5212, 64, 788, 220, 17, 11, 330, 3661, 788, 4383, 64, 497, 330, 65, 497, 330, 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 TestInitChain_WithInitialHeight(t *testing.T) { name := t.Name() db := dbm.NewMemDB() logger := defaultLogger() app := baseapp.NewBaseApp(name, logger, db) app.InitChain( abci.RequestInitChain{ InitialHeight: 3, }, ) app.Commit() require.Equal(t, int64(3), app.LastBlockHeight()) }
explode_data.jsonl/30033
{ "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, 3803, 18837, 62, 2354, 6341, 3640, 1155, 353, 8840, 836, 8, 341, 11609, 1669, 259, 2967, 741, 20939, 1669, 2927, 76, 7121, 18816, 3506, 741, 17060, 1669, 1638, 7395, 741, 28236, 1669, 2331, 676, 7121, 3978, 2164, 3153, 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 TestHandleDoubleSign(t *testing.T) { // initial setup ctx, ck, sk, _, keeper := createTestInput(t, keeperTestParams()) // validator added pre-genesis ctx = ctx.WithBlockHeight(-1) power := int64(100) amt := sdk.TokensFromTendermintPower(power) operatorAddr, val := addrs[0], pks[0] got := staking.NewHandle...
explode_data.jsonl/44695
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 860 }
[ 2830, 3393, 6999, 7378, 7264, 1155, 353, 8840, 836, 8, 1476, 197, 322, 2856, 6505, 198, 20985, 11, 38613, 11, 1901, 11, 8358, 53416, 1669, 1855, 2271, 2505, 1155, 11, 53416, 2271, 4870, 2398, 197, 322, 22935, 3694, 855, 36464, 13774, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconcileManyPods(t *testing.T) { client := newClientset() namespace := "test" svc, _ := newServiceAndendpointMeta("foo", namespace) // start with 250 pods pods := []*corev1.Pod{} for i := 0; i < 250; i++ { ready := !(i%3 == 0) pods = append(pods, newPod(i, namespace, ready, 1)) } r := newReconci...
explode_data.jsonl/76054
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 331 }
[ 2830, 3393, 693, 40446, 457, 8441, 23527, 82, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 501, 2959, 746, 741, 56623, 1669, 330, 1944, 698, 1903, 7362, 11, 716, 1669, 501, 1860, 3036, 32540, 12175, 445, 7975, 497, 4473, 692, 197, 322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIncrementsScoreOK(t *testing.T) { step = 1 exec = nil if err := repo.IncrementsScore("known"); err != nil { t.Error("Score incrementation failed") } }
explode_data.jsonl/26731
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 58 }
[ 2830, 3393, 37981, 1368, 10570, 3925, 1155, 353, 8840, 836, 8, 341, 77093, 284, 220, 16, 198, 67328, 284, 2092, 198, 743, 1848, 1669, 15867, 5337, 837, 1368, 10570, 445, 5278, 5038, 1848, 961, 2092, 341, 197, 3244, 6141, 445, 10570, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntermediateCertificate(t *testing.T) { intermediate := parseCertificate(rootPEM) ok := &api.SignResponse{ ServerPEM: api.Certificate{Certificate: parseCertificate(certPEM)}, CaPEM: api.Certificate{Certificate: intermediate}, } tests := []struct { name string sign *api.SignResponse want...
explode_data.jsonl/58878
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 342 }
[ 2830, 3393, 98961, 33202, 1155, 353, 8840, 836, 8, 341, 58915, 14636, 1669, 4715, 33202, 9206, 1740, 44, 340, 59268, 1669, 609, 2068, 41152, 2582, 515, 197, 92075, 1740, 44, 25, 6330, 727, 20962, 90, 33202, 25, 4715, 33202, 87793, 1740,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRepository_DeleteByIDForObject(t *testing.T) { // GIVEN sysAuthID := "foo" t.Run("Success when deleting by application", func(t *testing.T) { db, dbMock := testdb.MockDatabase(t) ctx := persistence.SaveToContext(context.TODO(), db) query := `DELETE FROM public.system_auths WHERE tenant_id = $1 AND i...
explode_data.jsonl/56701
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 901 }
[ 2830, 3393, 4624, 57418, 60572, 94604, 1155, 353, 8840, 836, 8, 341, 197, 322, 89836, 198, 41709, 5087, 915, 1669, 330, 7975, 1837, 3244, 16708, 445, 7188, 979, 33011, 553, 3766, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 20939, 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 TestInvalidBool(t *testing.T) { os.Setenv("BOOL", "should-be-a-bool") defer os.Clearenv() cfg := Config{} assert.EqualError(t, Parse(&cfg), "env: parse error on field \"Bool\" of type \"bool\": strconv.ParseBool: parsing \"should-be-a-bool\": invalid syntax") }
explode_data.jsonl/78760
{ "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, 7928, 11233, 1155, 353, 8840, 836, 8, 341, 25078, 4202, 3160, 445, 10395, 497, 330, 5445, 15150, 7409, 12, 2641, 1138, 16867, 2643, 727, 273, 9151, 85, 2822, 50286, 1669, 5532, 16094, 6948, 12808, 1454, 1155, 11, 14775, 2099...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntegration_NoUnicodeNormalization(t *testing.T) { t.Parallel() ctx := context.Background() client, _ := testConfig(ctx, t) defer client.Close() bkt := client.Bucket("storage-library-test-bucket") for _, tst := range []struct { nameQuoted, content string }{ {`"Caf\u00e9"`, "Normalization Form C"}, ...
explode_data.jsonl/8909
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 306 }
[ 2830, 3393, 52464, 36989, 33920, 63070, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 20985, 1669, 2266, 19047, 741, 25291, 11, 716, 1669, 1273, 2648, 7502, 11, 259, 340, 16867, 2943, 10421, 741, 2233, 5840, 1669, 2943, 1785, 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...
5
func TestSafeRegisteredEventMap(t *testing.T) { sm := safeRegisteredEventMap{} _, f := sm.lookup(8) equals(t, false, f) sm.removeInPlace(8) equals(t, 0, len(sm.getMap())) sm.remove(8) equals(t, 0, len(sm.getMap())) m := newRegisteredEventMap() m[1] = &registeredEvent{id: 1001} m[2] = &registeredEvent{id: 1...
explode_data.jsonl/17388
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 488 }
[ 2830, 3393, 25663, 41430, 1556, 2227, 1155, 353, 8840, 836, 8, 341, 72023, 1669, 6092, 41430, 1556, 2227, 16094, 197, 6878, 282, 1669, 1525, 39937, 7, 23, 340, 197, 7176, 1155, 11, 895, 11, 282, 692, 72023, 4850, 641, 17371, 7, 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...
5
func TestTokenizer(t *testing.T) { tests := []struct { sentence string count int }{ {"寒いです。", 3}, {"これは陽子の財布ですか。", 8}, {"思いのほかよく描けた。自分の部屋に飾ろう", 11}, {"とてもよかったです。。。ありがとうございます。", 9}, } for _, test := range tests { t.Run(test.sentence, func(t *testing.T) { res := Tokenize(test.sentence) assert....
explode_data.jsonl/69724
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 37434, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 1903, 18380, 914, 198, 197, 18032, 262, 526, 198, 197, 59403, 197, 197, 4913, 100718, 16586, 37541, 1773, 497, 220, 18, 1583, 197, 197, 4913, 129562, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLookupJWK(t *testing.T) { wfe, _ := setupWFE(t) embeddedJWS, _, embeddedJWSBody := signRequestEmbed(t, nil, "", "", wfe.nonceService) invalidKeyIDJWS, invalidKeyIDJWSBody := signRequestBadKeyID(t, wfe.nonceService) // ID 100 is mocked to return a non-missing error from sa.GetRegistration errorIDJWS, _, e...
explode_data.jsonl/15355
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1824 }
[ 2830, 3393, 34247, 41, 68316, 1155, 353, 8840, 836, 8, 341, 6692, 1859, 11, 716, 1669, 6505, 54, 11419, 1155, 692, 197, 69864, 41, 7433, 11, 8358, 22864, 41, 7433, 5444, 1669, 1841, 1900, 25486, 1155, 11, 2092, 11, 7342, 7342, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDefaults(t *testing.T) { ms := &MachineSet{ObjectMeta: metav1.ObjectMeta{Name: "foo"}} ms.Default() expected := string(RandomMachineSetDeletePolicy) got := ms.Spec.DeletePolicy if got != expected { t.Errorf("expected default machineset delete policy '%s', got '%s'", expected, got) } }
explode_data.jsonl/69317
{ "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, 16273, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 609, 21605, 1649, 90, 1190, 12175, 25, 77520, 16, 80222, 63121, 25, 330, 7975, 95642, 47691, 13275, 2822, 42400, 1669, 914, 75456, 21605, 1649, 6435, 13825, 340, 3174, 354, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestVppArpTerminationTableEntryIpError(t *testing.T) { ctx, bdHandler, _ := bdTestSetup(t) defer ctx.TeardownTestCtx() ctx.MockVpp.MockReply(&vpp_l2.BdIPMacAddDelReply{}) err := bdHandler.AddArpTerminationTableEntry(4, "FF:FF:FF:FF:FF:FF", "") Expect(err).Should(HaveOccurred()) err = bdHandler.RemoveArpTe...
explode_data.jsonl/12049
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 53, 602, 6953, 79, 21209, 32096, 2556, 5874, 23378, 1454, 1155, 353, 8840, 836, 8, 341, 20985, 11, 21486, 3050, 11, 716, 1669, 21486, 2271, 21821, 1155, 340, 16867, 5635, 94849, 37496, 2271, 23684, 2822, 20985, 24664, 53, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFailGracefullyBadNetworkType(t *testing.T) { err := add("netboot", []string{"not-valid", "test"}) if err.Error() != "method needs to be either dhcpv4 or dhcpv6" { t.Errorf(`err.Error() = %q, want "error message should be: method needs to be either dhcpv4 or dhcpv6"`, err.Error()) } }
explode_data.jsonl/25078
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 111 }
[ 2830, 3393, 19524, 86543, 3641, 17082, 12320, 929, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 912, 445, 4711, 4619, 497, 3056, 917, 4913, 1921, 84810, 497, 330, 1944, 23625, 743, 1848, 6141, 368, 961, 330, 4393, 3880, 311, 387, 2987, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestCreateFileDoesntExist(t *testing.T) { folder, err := ioutil.TempDir("", "archivetest") require.NoError(t, err) var dist = filepath.Join(folder, "dist") require.NoError(t, os.Mkdir(dist, 0755)) require.NoError(t, os.Mkdir(filepath.Join(dist, "mybin"), 0755)) var ctx = context.New(config.Project{ Dist: ...
explode_data.jsonl/21984
{ "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, 4021, 1703, 21468, 406, 25613, 1155, 353, 8840, 836, 8, 341, 1166, 2018, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 1113, 344, 57824, 1138, 17957, 35699, 1155, 11, 1848, 340, 2405, 1582, 284, 26054, 22363, 33929, 11, 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 TestP42(t *testing.T) { cases := []struct { in string out int }{ {"./p042_words.txt", 162}, } for _, c := range cases { v := solve(c.in) if v != c.out { t.Errorf("P42: %v\tExpected: %v", v, c.out) } } }
explode_data.jsonl/66566
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 120 }
[ 2830, 3393, 47, 19, 17, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 17430, 220, 914, 198, 197, 13967, 526, 198, 197, 59403, 197, 197, 4913, 1725, 79, 15, 19, 17, 18981, 3909, 497, 220, 16, 21, 17, 1583, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestRowTableData(t *testing.T) { map_dao := &TableRowDataImpl{&DaoImpl{}} service := service.MakeTableRowService(map_dao) uri_params := map[string]string{"table_id": "1", "page": "1"} values := url.Values{} values.Set("order_column", "name") values.Set("order_type", "asc") request := makeRequest(http.Method...
explode_data.jsonl/15442
{ "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, 3102, 2556, 1043, 1155, 353, 8840, 836, 8, 341, 19567, 814, 3441, 1669, 609, 38558, 1043, 9673, 90, 5, 12197, 9673, 6257, 532, 52934, 1669, 2473, 50133, 38558, 1860, 9147, 814, 3441, 340, 197, 6070, 6745, 1669, 2415, 14032, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSQLInstance(t *testing.T) { defer leaktest.AfterTest(t)() defer log.Scope(t).Close(t) ctx, stopper := context.Background(), stop.NewStopper() defer stopper.Stop(ctx) mClock := hlc.NewManualClock(hlc.UnixNano()) clock := hlc.NewClock(mClock.UnixNano, time.Nanosecond) settings := cluster.MakeClusterSett...
explode_data.jsonl/982
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 673 }
[ 2830, 3393, 6688, 2523, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 16867, 1487, 77940, 1155, 568, 7925, 1155, 692, 20985, 11, 2936, 712, 1669, 2266, 19047, 1507, 2936, 7121, 10674, 712, 741, 16867, 2936...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccPermissionsClusters(t *testing.T) { permissionsTestHelper(t, func(permissionsAPI PermissionsAPI, user, group string, ef func(string) PermissionsEntity) { ctx := context.Background() clustersAPI := compute.NewClustersAPI(ctx, permissionsAPI.client) clusterInfo, err := compute.NewTinyClusterInCommonP...
explode_data.jsonl/50888
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 415 }
[ 2830, 3393, 14603, 23851, 94992, 1155, 353, 8840, 836, 8, 341, 197, 29900, 2271, 5511, 1155, 11, 2915, 7, 29900, 7082, 53357, 7082, 11, 1196, 11, 1874, 914, 345, 197, 197, 823, 2915, 3609, 8, 53357, 3030, 8, 341, 197, 20985, 1669, 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 TestRegisterLifecycleHookClient(t *testing.T) { var table = []struct { clients []*dbclient.PipelineLifecycleHookClient }{ { clients: []*dbclient.PipelineLifecycleHookClient{ { Name: "FDP", ID: 1, Host: "FDP.svc.default", Prefix: "/api/workflow", }, { Name: "d...
explode_data.jsonl/30226
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 615 }
[ 2830, 3393, 8690, 62731, 31679, 2959, 1155, 353, 8840, 836, 8, 341, 2405, 1965, 284, 3056, 1235, 341, 197, 197, 31869, 29838, 1999, 2972, 1069, 8790, 62731, 31679, 2959, 198, 197, 59403, 197, 197, 515, 298, 197, 31869, 25, 29838, 1999, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateKubeProxy(t *testing.T) { g := NewGomegaWithT(t) // Check that the empty case validates c := &operv1.NetworkSpec{} g.Expect(validateKubeProxy(c)).To(BeEmpty()) // Check that the default openshift-sdn config validates g.Expect(validateKubeProxy(&OpenShiftSDNConfig.Spec)).To(BeEmpty()) // Check...
explode_data.jsonl/57155
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 400 }
[ 2830, 3393, 17926, 42, 3760, 16219, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 38, 32696, 2354, 51, 1155, 692, 197, 322, 4248, 429, 279, 4287, 1142, 26257, 198, 1444, 1669, 609, 453, 648, 16, 30149, 8327, 16094, 3174, 81893, 9424...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJobManagerTickExceedQuota(t *testing.T) { t.Parallel() ctx, cancel := context.WithCancel(context.Background()) defer cancel() masterImpl := lib.NewMockMasterImpl("", "create-worker-with-error") mockMaster := &mockBaseMasterCreateWorkerFailed{ MockMasterImpl: masterImpl, } mgr := &JobManagerImplV2{ ...
explode_data.jsonl/29360
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 397 }
[ 2830, 3393, 12245, 2043, 22213, 840, 4635, 2183, 6089, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 2822, 2109, 2300, 9673, 1669, 3051, 7121, 11571, 18041...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStoreGateway_InitialSyncWithWaitRingStability(t *testing.T) { bucketClient, storageDir := cortex_testutil.PrepareFilesystemBucket(t) // This tests uses real TSDB blocks. 24h time range, 2h block range period, // 2 users = total (24 / 12) * 2 = 24 blocks. numUsers := 2 numBlocks := numUsers * 12 now := t...
explode_data.jsonl/57959
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2432 }
[ 2830, 3393, 6093, 40709, 62, 6341, 12154, 2354, 14190, 43466, 623, 2897, 1155, 353, 8840, 836, 8, 341, 2233, 11152, 2959, 11, 5819, 6184, 1669, 48270, 4452, 1314, 28770, 3380, 1703, 8948, 36018, 1155, 692, 197, 322, 1096, 7032, 5711, 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...
5
func TestRecover_StringPanic(t *testing.T) { f := createRecoverFunc("internal error") require.NotPanics(t, func() { f() }) v := f() assert.EqualError(t, v, "internal error") assert.Implements(t, (*stackTracer)(nil), v) }
explode_data.jsonl/57211
{ "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, 693, 3688, 31777, 47, 31270, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 1855, 693, 3688, 9626, 445, 10481, 1465, 5130, 17957, 15000, 35693, 1211, 1155, 11, 2915, 368, 314, 282, 368, 9568, 5195, 1669, 282, 2822, 6948, 12808, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAlterAllFieldsShouldBeSet(t *testing.T) { req, err := http.NewRequest("PUT", "/alter", bytes.NewBufferString( `{"dropall":true}`, // "dropall" is spelt incorrect - should be "drop_all" )) require.NoError(t, err) rr := httptest.NewRecorder() handler := http.HandlerFunc(alterHandler) handler.ServeHTTP(rr...
explode_data.jsonl/33020
{ "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, 74290, 2403, 8941, 14996, 3430, 1649, 1155, 353, 8840, 836, 8, 341, 24395, 11, 1848, 1669, 1758, 75274, 445, 6221, 497, 3521, 37277, 497, 5820, 7121, 4095, 703, 1006, 197, 197, 63, 4913, 6719, 541, 788, 1866, 28350, 442, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestImpCount(t *testing.T) { a := newAuction(2) a.addBid(openrtb_ext.BidderAppnexus, &openrtb.Bid{ ImpID: "imp-1", }) a.addBid(openrtb_ext.BidderRubicon, &openrtb.Bid{ ImpID: "imp-1", }) a.addBid(openrtb_ext.BidderIndex, &openrtb.Bid{ ImpID: "imp-2", }) if len(a.winningBids) != 2 { t.Errorf("Expect...
explode_data.jsonl/81481
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 192 }
[ 2830, 3393, 25216, 2507, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 501, 32, 2654, 7, 17, 340, 11323, 1364, 65452, 30981, 3342, 65, 9927, 1785, 307, 1107, 2164, 77, 23666, 11, 609, 2508, 3342, 65, 1785, 307, 515, 197, 24486, 1307, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestPslq8(t *testing.T) { prec := uint(256) in := make([]big.Float, 16) for i := range in { if i == 0 { pi(prec, &in[i]) } else { bbp(prec, 16, 8, int64(i), &in[i]) } if verbose { t.Logf("in[%d] = %g\n", i, &in[i]) } } pslq := New(prec).SetMaxSteps(10000).SetVerbose(verbose) out, err := p...
explode_data.jsonl/66874
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 254 }
[ 2830, 3393, 47, 3226, 80, 23, 1155, 353, 8840, 836, 8, 341, 197, 10645, 1669, 2622, 7, 17, 20, 21, 692, 17430, 1669, 1281, 10556, 16154, 29794, 11, 220, 16, 21, 340, 2023, 600, 1669, 2088, 304, 341, 197, 743, 600, 621, 220, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestSlaveBot(t *testing.T) { // Points to DCRData on local machine port 7778. // Start server with --exchange-refresh=1m --exchange-expiry=2m testExchanges(true, false, t) }
explode_data.jsonl/1398
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 67 }
[ 2830, 3393, 95960, 23502, 1155, 353, 8840, 836, 8, 341, 197, 322, 20725, 311, 422, 8973, 1043, 389, 2205, 5662, 2635, 220, 22, 22, 22, 23, 624, 197, 322, 5145, 3538, 448, 1177, 39568, 75086, 28, 16, 76, 1177, 39568, 18376, 33770, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsActivating(t *testing.T) { cases := []struct { name string status PodAutoscalerStatus isActivating bool }{{ name: "empty status", status: PodAutoscalerStatus{}, isActivating: true, }, { name: "active=unknown", status: PodAutoscalerStatus{ Status: duckv1.Statu...
explode_data.jsonl/27225
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 538 }
[ 2830, 3393, 3872, 23179, 1095, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 23847, 981, 16821, 19602, 436, 63084, 2522, 198, 197, 19907, 23179, 1095, 1807, 198, 197, 15170, 515, 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 TestDebTriggers(t *testing.T) { t.Run("triggers-deb", func(t *testing.T) { accept(t, acceptParms{ Name: "triggers-deb", Conf: "triggers.yaml", Format: "deb", Dockerfile: "deb.triggers.dockerfile", }) }) }
explode_data.jsonl/15466
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 125 }
[ 2830, 3393, 1912, 65, 1282, 21385, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 376, 21385, 6810, 65, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 10330, 1155, 11, 4193, 85440, 515, 298, 21297, 25, 981, 330, 376, 21385, 681...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProviderInterface(t *testing.T) { resolver := resolve.NewResolver() main := resolver.NewPackage("main", "main") pkg := resolver.NewPackage(reflect.TypeOf(DB{}).PkgPath(), "") config := DefaultConfig() config.Header = "" config.Resolver = resolver cases := []struct { msg string input []interface...
explode_data.jsonl/17654
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1178 }
[ 2830, 3393, 5179, 5051, 1155, 353, 8840, 836, 8, 341, 10202, 7921, 1669, 8830, 7121, 18190, 2822, 36641, 1669, 36220, 7121, 13100, 445, 3817, 497, 330, 3817, 1138, 3223, 7351, 1669, 36220, 7121, 13100, 13321, 767, 73921, 32184, 6257, 568,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestList(t *testing.T) { t.Run("list_1", func(t *testing.T) { // differing types at same level of indentation causes error dat, _ := ioutil.ReadFile(TestCasePath + "/list_1/load_in.nt") value := &Value{} err := value.Parse(dat) assert.Nil(t, err) assert.Equal(t, ValueTypeList, value.Type) assert...
explode_data.jsonl/55421
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1402 }
[ 2830, 3393, 852, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1607, 62, 16, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 322, 60369, 4494, 518, 1852, 2188, 315, 69592, 11137, 1465, 198, 197, 2698, 266, 11, 716, 1669, 43144,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNestedSelector(t *testing.T) { expectPrinted(t, "& {}", "& {\n}\n") expectPrinted(t, "& b {}", "& b {\n}\n") expectPrinted(t, "&:b {}", "&:b {\n}\n") expectPrinted(t, "&* {}", "&* {\n}\n") expectPrinted(t, "&|b {}", "&|b {\n}\n") expectPrinted(t, "&*|b {}", "&*|b {\n}\n") expectPrinted(t, "&a|b {}", "&a...
explode_data.jsonl/32623
{ "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, 71986, 5877, 1155, 353, 8840, 836, 8, 341, 24952, 8994, 291, 1155, 11, 13399, 24689, 13399, 28152, 77, 11035, 77, 1138, 24952, 8994, 291, 1155, 11, 13399, 293, 24689, 13399, 293, 28152, 77, 11035, 77, 1138, 24952, 8994, 291,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCumulative(t *testing.T) { N := 10000 for i := 0; i < N; i++ { tstart := rand.Uint32() tend := tstart + rand.Uint32() tmid := uint32((uint64(tstart) + uint64(tend)) / 2) total := CalcUnbindOng(1, tstart, tend) total2 := CalcUnbindOng(1, tstart, tmid) + CalcUnbindOng(1, tmid, tend) assert.Equal(t...
explode_data.jsonl/65994
{ "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, 85805, 22160, 1155, 353, 8840, 836, 8, 341, 18317, 1669, 220, 16, 15, 15, 15, 15, 198, 2023, 600, 1669, 220, 15, 26, 600, 366, 451, 26, 600, 1027, 341, 197, 3244, 2468, 1669, 10382, 71869, 18, 17, 741, 197, 3244, 408, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChannelNoPaymentForceClose(t *testing.T) { itest(t, func(ctx context.Context, guest, host *Starlightd) { steps := append(channelCreationSteps(guest, host, 1, 1, channelFundingAmount), hostForceCloseStepsNoGuestBalance(guest, host, channelFundingAmount)...) var channelID string for _, step := range steps...
explode_data.jsonl/26085
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 9629, 2753, 20188, 18573, 7925, 1155, 353, 8840, 836, 8, 341, 23374, 477, 1155, 11, 2915, 7502, 2266, 9328, 11, 8640, 11, 3468, 353, 12699, 4145, 67, 8, 341, 197, 18388, 7124, 1669, 8737, 25923, 32701, 33951, 3268, 3045, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnmarshalStanzaError(t *testing.T) { for i, data := range [...]struct { xml string se stanza.Error err bool }{ 0: {"", stanza.Error{}, true}, 1: {`<error><unexpected-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"></unexpected-request></error>`, stanza.Error{Condition: stanza.UnexpectedRequ...
explode_data.jsonl/33543
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1650 }
[ 2830, 3393, 1806, 27121, 623, 26466, 1454, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 821, 1669, 2088, 48179, 1235, 341, 197, 48460, 914, 198, 197, 84686, 220, 95436, 6141, 198, 197, 9859, 1807, 198, 197, 59403, 197, 197, 15, 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...
8
func TestPutGetDelete(t *testing.T) { m := new(MapDB) key := []byte("key") bucket := []byte("bucket") test := new(TestData) test.Str = "testtest" err := m.Put(bucket, key, test) if err != nil { t.Errorf("%v", err) } resp, err := m.Get(bucket, key, new(TestData)) if err != nil { t.Errorf("%v", err) } ...
explode_data.jsonl/36081
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 301 }
[ 2830, 3393, 19103, 1949, 6435, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 501, 21253, 3506, 692, 23634, 1669, 3056, 3782, 445, 792, 1138, 2233, 11152, 1669, 3056, 3782, 445, 30410, 5130, 18185, 1669, 501, 31159, 1043, 340, 18185, 27318, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestRestInvoker_ContextDo(t *testing.T) { initenv() restinvoker := core.NewRestInvoker() req, _ := rest.NewRequest("GET", "cse://Server/sayhello/myidtest") req.SetContentType("application/json") //use the invoker like http client. _, err := restinvoker.ContextDo(context.TODO(), req, core.WithEndpoint("0.0.0....
explode_data.jsonl/50953
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 145 }
[ 2830, 3393, 12416, 47668, 71994, 5404, 1155, 353, 8840, 836, 8, 341, 28248, 3160, 741, 197, 3927, 14057, 10451, 1669, 6200, 7121, 12416, 47668, 741, 24395, 11, 716, 1669, 2732, 75274, 445, 3806, 497, 330, 66, 325, 1110, 5475, 2687, 352,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReaderHasNext(t *testing.T) { client, err := NewClient(ClientOptions{ URL: lookupURL, }) assert.Nil(t, err) defer client.Close() topic := newTopicName() ctx := context.Background() // create producer producer, err := client.CreateProducer(ProducerOptions{ Topic: topic, DisableBatchin...
explode_data.jsonl/6388
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 418 }
[ 2830, 3393, 5062, 10281, 5847, 1155, 353, 8840, 836, 8, 341, 25291, 11, 1848, 1669, 1532, 2959, 46851, 3798, 515, 197, 79055, 25, 18615, 3144, 345, 197, 8824, 6948, 59678, 1155, 11, 1848, 340, 16867, 2943, 10421, 2822, 3244, 24810, 1669...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestNewCluster_Defaults(t *testing.T) { cfg := NewCluster() assertEqual(t, "cluster config cql version", "3.0.0", cfg.CQLVersion) assertEqual(t, "cluster config timeout", 600*time.Millisecond, cfg.Timeout) assertEqual(t, "cluster config port", 9042, cfg.Port) assertEqual(t, "cluster config num-conns", 2, cfg....
explode_data.jsonl/36653
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 423 }
[ 2830, 3393, 3564, 28678, 60336, 82, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 1532, 28678, 741, 6948, 2993, 1155, 11, 330, 18855, 2193, 272, 1470, 2319, 497, 330, 18, 13, 15, 13, 15, 497, 13286, 727, 3588, 5637, 340, 6948, 2993, 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 TestStringDiff(t *testing.T) { diff := StringDiff("aaabb", "aaacc") expect := "aaa\n\nA: bb\n\nB: cc\n\n" if diff != expect { t.Errorf("diff returned %v", diff) } }
explode_data.jsonl/69259
{ "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, 703, 21751, 1155, 353, 8840, 836, 8, 341, 80564, 1669, 923, 21751, 445, 5305, 12523, 497, 330, 5305, 4475, 1138, 24952, 1669, 330, 32646, 1699, 1699, 32, 25, 16520, 1699, 1699, 33, 25, 12527, 1699, 1699, 698, 743, 3638, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAlsoStaysNil(t *testing.T) { var err *FieldError if err != nil { t.Errorf("expected nil, got %v, wanted nil", err) } err = err.Also(nil) if err != nil { t.Errorf("expected nil, got %v, wanted nil", err) } err = err.ViaField("nil").Also(nil) if err != nil { t.Errorf("expected nil, got %v, wanted...
explode_data.jsonl/68805
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 181 }
[ 2830, 3393, 13394, 623, 942, 19064, 1155, 353, 8840, 836, 8, 341, 2405, 1848, 353, 1877, 1454, 198, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 7325, 2092, 11, 2684, 1018, 85, 11, 4829, 2092, 497, 1848, 340, 197, 630, 9859, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWSFailureToStartServer(t *testing.T) { // Create a listener to use a port l, err := net.Listen("tcp", "127.0.0.1:0") if err != nil { t.Fatalf("Error listening: %v", err) } defer l.Close() o := testWSOptions() // Make sure we don't have unnecessary listen ports opened. o.HTTPPort = 0 o.Cluster.Port ...
explode_data.jsonl/42712
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 554 }
[ 2830, 3393, 7433, 17507, 1249, 3479, 5475, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 264, 11446, 311, 990, 264, 2635, 198, 8810, 11, 1848, 1669, 4179, 68334, 445, 27161, 497, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBogusPreboundParameters(t *testing.T) { db := newTestDB(t, "foo") defer closeDB(t, db) exec(t, db, "CREATE|t1|name=string,age=int32,dead=bool") _, err := db.Prepare("INSERT|t1|name=?,age=bogusconversion") if err == nil { t.Fatalf("expected error") } if err.Error() != `fakedb: invalid conversion to int...
explode_data.jsonl/15968
{ "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, 33, 538, 355, 4703, 10891, 9706, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 501, 2271, 3506, 1155, 11, 330, 7975, 1138, 16867, 3265, 3506, 1155, 11, 2927, 340, 67328, 1155, 11, 2927, 11, 330, 22599, 91, 83, 16, 91, 606, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStateLock_DoesNotLockOnOldProposal(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() config := configSetup(t) cs1, vss := makeState(ctx, t, makeStateArgs{config: config}) vs2, vs3, vs4 := vss[1], vss[2], vss[3] height, round := cs1.Height, cs1.Round timeoutWaitCh :...
explode_data.jsonl/54271
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 959 }
[ 2830, 3393, 1397, 11989, 1557, 7072, 2623, 11989, 1925, 18284, 98637, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 741, 25873, 1669, 2193, 21821, 1155, 692, 71899, 16, 11, 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 TestPrintImageStream(t *testing.T) { buf := bytes.NewBuffer([]byte{}) streams := mockStreams() tests := []struct { name string stream *imageapi.ImageStream expectedOut string expectedErr error }{ { name: "less than three tags", stream: streams[0], expectedOut: "lates...
explode_data.jsonl/61177
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 414 }
[ 2830, 3393, 8994, 1906, 3027, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 5820, 7121, 4095, 10556, 3782, 37790, 44440, 82, 1669, 7860, 73576, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 44440, 414, 353, 1805, 2068...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildPrimitive(t *testing.T) { for _, buildPrimitiveTest := range buildPrimitiveTests { t.Logf("run test %s", buildPrimitiveTest.name) buildC, err := Build(buildPrimitiveTest.cond) if buildPrimitiveTest.buildErr { if err == nil { t.Errorf("build primitive should return err") } t.Logf("buil...
explode_data.jsonl/11122
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 292 }
[ 2830, 3393, 11066, 33313, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1936, 33313, 2271, 1669, 2088, 1936, 33313, 18200, 341, 197, 3244, 98954, 445, 6108, 1273, 1018, 82, 497, 1936, 33313, 2271, 2644, 340, 197, 69371, 34, 11, 1848, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestVolumes(t *testing.T) { cfg, ok := configFromEnv() if !ok { t.Skipf("No config found in environment") } vs, err := newControllerNode(cfg) if err != nil { t.Fatalf("Failed to construct/authenticate vSphere: %s", err) } nodeName, err := vs.CurrentNodeName(context.TODO(), "") if err != nil { t.Fat...
explode_data.jsonl/65374
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 462 }
[ 2830, 3393, 96325, 1155, 353, 8840, 836, 8, 341, 50286, 11, 5394, 1669, 2193, 3830, 14359, 741, 743, 753, 562, 341, 197, 3244, 57776, 69, 445, 2753, 2193, 1730, 304, 4573, 1138, 197, 630, 5195, 82, 11, 1848, 1669, 501, 2051, 1955, 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...
7
func TestMarkEndRequiresAllTasksToFinishToUpdateBuildStatusWithCompileTask(t *testing.T) { assert := assert.New(t) require := require.New(t) require.NoError(db.ClearCollections(task.Collection, build.Collection, VersionCollection, event.AllLogCollection)) v := &Version{ Id: "sample_version", Requester: ...
explode_data.jsonl/60442
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1043 }
[ 2830, 3393, 8949, 3727, 46961, 2403, 25449, 1249, 25664, 93919, 11066, 2522, 2354, 46126, 6262, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 17957, 1669, 1373, 7121, 1155, 692, 17957, 35699, 9791, 13524, 52730, 17483, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateIdentity(t *testing.T) { deserializersManager := &mocks.DeserializersManager{ LocalDeserializer: &mocks.IdentityDeserializer{Identity: []byte("Alice"), Msg: []byte("msg1"), Mock: mock.Mock{}}, ChannelDeserializers: map[string]msp.IdentityDeserializer{ "A": &mocks.IdentityDeserializer{Identity: ...
explode_data.jsonl/26110
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 529 }
[ 2830, 3393, 17926, 18558, 1155, 353, 8840, 836, 8, 341, 52912, 2848, 12230, 2043, 1669, 609, 16712, 82, 23548, 2848, 12230, 2043, 515, 197, 82404, 80097, 25, 609, 16712, 82, 24423, 80097, 90, 18558, 25, 3056, 3782, 445, 61686, 3975, 242...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCrudDistributions(t *testing.T) { var res middleware.Responder db := entity.NewTestDB() c := &crud{} defer db.Close() defer gostub.StubFunc(&getDB, db).Reset() c.CreateFlag(flag.CreateFlagParams{ Body: &models.CreateFlagRequest{ Description: util.StringPtr("funny flag"), }, }) c.CreateSegment(...
explode_data.jsonl/19457
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 645 }
[ 2830, 3393, 92061, 35, 17994, 1155, 353, 8840, 836, 8, 341, 2405, 592, 29679, 8377, 20328, 198, 20939, 1669, 5387, 7121, 2271, 3506, 741, 1444, 1669, 609, 53569, 31483, 16867, 2927, 10421, 741, 16867, 67934, 392, 7758, 392, 9626, 2099, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRDSHTTPProxyRootCannotDelegateToAnotherRoot(t *testing.T) { rh, c, done := setup(t) defer done() svc1 := fixture.NewService("marketing/green"). WithPorts(v1.ServicePort{Name: "http", Port: 80}) rh.OnAdd(svc1) child := &projcontour.HTTPProxy{ ObjectMeta: metav1.ObjectMeta{ Name: "blog", Na...
explode_data.jsonl/24123
{ "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, 49, 5936, 9230, 16219, 8439, 17444, 9381, 1249, 14037, 8439, 1155, 353, 8840, 836, 8, 341, 7000, 71, 11, 272, 11, 2814, 1669, 6505, 1155, 340, 16867, 2814, 2822, 1903, 7362, 16, 1669, 12507, 7121, 1860, 445, 91818, 4846, 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 Test_getVMExtensionNilValues(t *testing.T) { ctx := log.NewSyncLogger(log.NewLogfmtLogger(os.Stdout)) _, err := GetVMExtension(ctx, nil) require.Equal(t, extensionerrors.ErrArgCannotBeNull, err) initInfo := &InitializationInfo{Name: ""} _, err = GetVMExtension(ctx, initInfo) require.Equal(t, extensionerrors...
explode_data.jsonl/18575
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 263 }
[ 2830, 3393, 3062, 11187, 12049, 19064, 6227, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1487, 7121, 12154, 7395, 12531, 7121, 2201, 12501, 7395, 9638, 83225, 1171, 197, 6878, 1848, 1669, 2126, 11187, 12049, 7502, 11, 2092, 340, 17957, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExtractPrefixes_1_ipv4(t *testing.T) { newPrefixes, prefixes, err := prefixpool.ExtractPrefixes([]string{"10.10.1.0/24"}, &networkservice.ExtraPrefixRequest{ AddrFamily: &networkservice.IpFamily{Family: networkservice.IpFamily_IPV4}, RequiredNumber: 10, RequestedNumber: 20, PrefixLen: ...
explode_data.jsonl/45812
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 212 }
[ 2830, 3393, 28959, 14335, 288, 62, 16, 49378, 19, 1155, 353, 8840, 836, 8, 341, 8638, 14335, 288, 11, 62576, 11, 1848, 1669, 9252, 10285, 5121, 2144, 14335, 288, 10556, 917, 4913, 16, 15, 13, 16, 15, 13, 16, 13, 15, 14, 17, 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 TestBrokerGetConditionSet(t *testing.T) { customCondition := apis.NewLivingConditionSet( apis.ConditionReady, "ConditionGolangReady", ) brokerClass := "Golang" tt := []struct { name string broker Broker expectedConditionSet apis.ConditionSet }{ { name: ...
explode_data.jsonl/46023
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 540 }
[ 2830, 3393, 65545, 1949, 10547, 1649, 1155, 353, 8840, 836, 8, 1476, 1444, 1450, 10547, 1669, 97723, 7121, 44505, 10547, 1649, 1006, 197, 197, 13725, 75134, 19202, 345, 197, 197, 1, 10547, 38, 37287, 19202, 756, 197, 340, 2233, 45985, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestArrayWithScalars(t *testing.T) { assertParseOneTerm(t, "number", "[1,2,3,4.5]", ArrayTerm(IntNumberTerm(1), IntNumberTerm(2), IntNumberTerm(3), FloatNumberTerm(4.5))) assertParseOneTerm(t, "bool", "[true, false, true]", ArrayTerm(BooleanTerm(true), BooleanTerm(false), BooleanTerm(true))) assertParseOneTerm(...
explode_data.jsonl/50456
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 397 }
[ 2830, 3393, 1857, 2354, 54005, 1155, 353, 8840, 836, 8, 341, 6948, 14463, 3966, 17249, 1155, 11, 330, 4082, 497, 10545, 16, 11, 17, 11, 18, 11, 19, 13, 20, 19076, 2910, 17249, 24123, 2833, 17249, 7, 16, 701, 1333, 2833, 17249, 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 TestSet(t *testing.T) { tests := []struct { name string setStr string wantStr string }{ { name: "set multiple features", setStr: "a=true,b=false", wantStr: "a=true,b=false", }, { name: "set multiple features", setStr: "a=True,b=False", wantStr: "a=true,b=false", }, } ...
explode_data.jsonl/34557
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 275 }
[ 2830, 3393, 1649, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 8196, 2580, 220, 914, 198, 197, 50780, 2580, 914, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 262, 330, 746, 5248, 441...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteVolumeAttachmentDBEntry(t *testing.T) { var req = &model.VolumeAttachmentSpec{ BaseModel: &model.BaseModel{ Id: "f2dda3d2-bf79-11e7-8665-f750b088f63e", }, VolumeId: "bd5b12a8-a101-11e7-941e-d77981b584d8", Status: "available", } t.Run("Everything should work well", func(t *testing.T) { ...
explode_data.jsonl/29976
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 313 }
[ 2830, 3393, 6435, 18902, 33569, 3506, 5874, 1155, 353, 8840, 836, 8, 341, 2405, 4232, 284, 609, 2528, 79106, 33569, 8327, 515, 197, 66732, 1712, 25, 609, 2528, 13018, 1712, 515, 298, 67211, 25, 330, 69, 17, 71487, 18, 67, 17, 1455, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestForceLeaveCommandRun_noAddrs(t *testing.T) { ui := new(cli.MockUi) ui, c := testForceLeaveCommand(t) args := []string{"-http-addr=foo"} code := c.Run(args) if code != 1 { t.Fatalf("bad: %d", code) } if !strings.Contains(ui.ErrorWriter.String(), "node name") { t.Fatalf("bad: %#v", ui.ErrorWriter.St...
explode_data.jsonl/11383
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 141 }
[ 2830, 3393, 18573, 21833, 4062, 6727, 6536, 2212, 5428, 1155, 353, 8840, 836, 8, 341, 37278, 1669, 501, 70249, 24664, 23710, 340, 37278, 11, 272, 1669, 1273, 18573, 21833, 4062, 1155, 340, 31215, 1669, 3056, 917, 4913, 12, 1254, 12, 621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDiscoverAll(t *testing.T) { servers := []string{ "this", "that", "those", } port, cleanup := startFakeNetbootServers(t, servers) defer cleanup() c := newClientWithPorts(port, port+1) got, err := c.DiscoverAll(context.Background(), false) if err != nil { t.Fatalf("discover all: %v", err) } m :...
explode_data.jsonl/78500
{ "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, 50002, 2403, 1155, 353, 8840, 836, 8, 341, 1903, 18729, 1669, 3056, 917, 515, 197, 197, 1, 574, 756, 197, 197, 1, 9033, 756, 197, 197, 1, 53619, 756, 197, 532, 52257, 11, 21290, 1669, 1191, 52317, 6954, 4619, 78139, 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...
6