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 TestFlattenRemoveNonExist(t *testing.T) { raw := Get("[[1],[2,[[],[3]],[4,[5],[],[[[6]]]]]]", `@flatten:{"deep":true}`).Raw assert(t, raw == "[1,2,3,4,5,6]") }
explode_data.jsonl/43482
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 81 }
[ 2830, 3393, 3882, 14456, 13021, 8121, 25613, 1155, 353, 8840, 836, 8, 341, 76559, 1669, 2126, 10937, 58, 16, 14955, 17, 17259, 12995, 58, 18, 60, 14955, 19, 17259, 20, 1125, 12995, 15505, 58, 21, 5053, 5053, 5053, 497, 1565, 31, 47066...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddServiceEndpointType(t *testing.T) { r := newTestResolver(t) defer r.Close() ctx := viewertest.NewContext(context.Background(), r.client) mr := r.Mutation() locType, err := mr.AddLocationType(ctx, models.AddLocationTypeInput{ Name: "loc_type_name", }) require.NoError(t, err) location, err := mr.A...
explode_data.jsonl/7214
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1380 }
[ 2830, 3393, 2212, 1860, 27380, 929, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 501, 2271, 18190, 1155, 340, 16867, 435, 10421, 741, 20985, 1669, 1651, 83386, 7121, 1972, 5378, 19047, 1507, 435, 6581, 340, 2109, 81, 1669, 435, 1321, 22705...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmptyContentType(t *testing.T) { var h Header mediaType := "text/plain" if gotMediaType, _, err := h.ContentType(); err != nil { t.Error("Expected no error when parsing empty content type, but got:", err) } else if gotMediaType != mediaType { t.Errorf("Expected media type %q but got %q", mediaType, go...
explode_data.jsonl/55153
{ "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, 3522, 29504, 1155, 353, 8840, 836, 8, 341, 2405, 305, 12104, 271, 197, 7399, 929, 1669, 330, 1318, 36971, 698, 743, 2684, 65000, 11, 8358, 1848, 1669, 305, 62710, 2129, 1848, 961, 2092, 341, 197, 3244, 6141, 445, 18896, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestZeroScaledWindowReceive(t *testing.T) { // This test ensures that the endpoint sends a non-zero window size // advertisement when the scaled window transitions from 0 to non-zero, // but the actual window (not scaled) hasn't gotten to zero. c := context.New(t, defaultMTU) defer c.Cleanup() // Set the wi...
explode_data.jsonl/22295
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1040 }
[ 2830, 3393, 17999, 94201, 4267, 14742, 1155, 353, 8840, 836, 8, 341, 197, 322, 1096, 1273, 25351, 429, 279, 14887, 21308, 264, 2477, 36929, 3241, 1379, 198, 197, 322, 32689, 979, 279, 30690, 3241, 33592, 504, 220, 15, 311, 2477, 36929, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreatesConfigMapFromServiceCentralData(t *testing.T) { t.Parallel() ns := &core_v1.Namespace{ TypeMeta: meta_v1.TypeMeta{ Kind: k8s.NamespaceKind, APIVersion: core_v1.SchemeGroupVersion.String(), }, ObjectMeta: meta_v1.ObjectMeta{ Name: namespaceName, Labels: map[string]string{ v...
explode_data.jsonl/4266
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1059 }
[ 2830, 3393, 54868, 2648, 2227, 3830, 1860, 43403, 1043, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 84041, 1669, 609, 2153, 2273, 16, 46011, 515, 197, 27725, 12175, 25, 8823, 2273, 16, 10184, 12175, 515, 298, 197, 10629, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestShouldReturnCorrectAmountOfResultsIfMoreVariablesThanLimit(t *testing.T) { db, mock, err := sqlmock.New() assertNoError(t, err, "Failed to make DB") limit := uint(4) r1 := mock.NewRows([]string{"id"}). AddRow(1). AddRow(2). AddRow(3). AddRow(4) r2 := mock.NewRows([]string{"id"}). AddRow(5) m...
explode_data.jsonl/47314
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 502 }
[ 2830, 3393, 14996, 5598, 33092, 10093, 2124, 9801, 2679, 7661, 22678, 26067, 16527, 1155, 353, 8840, 836, 8, 341, 20939, 11, 7860, 11, 1848, 1669, 5704, 16712, 7121, 741, 6948, 2753, 1454, 1155, 11, 1848, 11, 330, 9408, 311, 1281, 5952,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFailedPatchApplyPatch(t *testing.T) { serverSocketPath, stop := runOperationServiceServer(t) defer stop() client, conn := newOperationClient(t, serverSocketPath) defer conn.Close() testRepo, _, cleanupFn := testhelper.NewTestRepo(t) defer cleanupFn() ctx, cancel := testhelper.Context() defer cancel(...
explode_data.jsonl/4973
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 291 }
[ 2830, 3393, 9408, 43622, 28497, 43622, 1155, 353, 8840, 836, 8, 341, 41057, 10286, 1820, 11, 2936, 1669, 1598, 8432, 1860, 5475, 1155, 340, 16867, 2936, 2822, 25291, 11, 4534, 1669, 501, 8432, 2959, 1155, 11, 3538, 10286, 1820, 340, 168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDelayedTask_InterruptedDrain_WhenDelayIsTooLong(t *testing.T) { givenDelay := longDuration givenDrain := duration givenCleanup := halfDuration givenStop := givenDrain + givenCleanup tests := []struct { name string runner func(task core.DelayedTask) }{ {"RunWait", func(task core.DelayedTask) { _ ...
explode_data.jsonl/66929
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 724 }
[ 2830, 3393, 57361, 6262, 62, 22528, 291, 8847, 466, 62, 4498, 20039, 3872, 31246, 6583, 1155, 353, 8840, 836, 8, 341, 3174, 2071, 20039, 1669, 1293, 12945, 198, 3174, 2071, 8847, 466, 1669, 8090, 198, 3174, 2071, 67335, 1669, 4279, 1294...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDemoteUserToGuest(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() enableGuestAccounts := *th.App.Config().GuestAccountsSettings.Enable defer func() { th.App.UpdateConfig(func(cfg *model.Config) { *cfg.GuestAccountsSettings.Enable = enableGuestAccounts }) th.App.Srv().RemoveLicense() }(...
explode_data.jsonl/47561
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 825 }
[ 2830, 3393, 32003, 1272, 1474, 1249, 37804, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 197, 12552, 37804, 41369, 1669, 353, 339, 5105, 10753, 1005, 37804, 41369, 6086, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDefaultUnaryInterceptorMissingMetadata(t *testing.T) { // prepare authFunc := func(context.Context, map[string][]string) (context.Context, error) { assert.FailNow(t, "the auth func should not have been called!") return context.Background(), nil } handler := func(ctx context.Context, req interface{}) (i...
explode_data.jsonl/80340
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 207 }
[ 2830, 3393, 3675, 94545, 32786, 25080, 14610, 1155, 353, 8840, 836, 8, 341, 197, 322, 10549, 198, 78011, 9626, 1669, 2915, 5378, 9328, 11, 2415, 14032, 45725, 917, 8, 320, 2147, 9328, 11, 1465, 8, 341, 197, 6948, 57243, 7039, 1155, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestArrayUpdate(t *testing.T) { // Test with an odd an even number of measurements for count := 999; count <= 1000; count++ { t.Run(fmt.Sprint("Odd=", count%2 == 1), func(t *testing.T) { ut := updateTest{ count: count, } // Test integer and floating point test.RunProfiles(t, ut.run) }) } }
explode_data.jsonl/28114
{ "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, 1857, 4289, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 448, 458, 10322, 458, 1496, 1372, 315, 21595, 198, 2023, 1760, 1669, 220, 24, 24, 24, 26, 1760, 2651, 220, 16, 15, 15, 15, 26, 1760, 1027, 341, 197, 3244, 16708...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPopUp_TappedSecondary(t *testing.T) { label := NewLabel("Hi") pop := NewPopUp(label, test.Canvas()) assert.True(t, pop.Visible()) test.TapSecondary(pop) assert.False(t, pop.Visible()) assert.Nil(t, test.Canvas().Overlay()) }
explode_data.jsonl/65220
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 11598, 2324, 1139, 5677, 48963, 1155, 353, 8840, 836, 8, 341, 29277, 1669, 1532, 2476, 445, 13048, 1138, 74813, 1669, 1532, 11598, 2324, 13345, 11, 1273, 54121, 12367, 6948, 32443, 1155, 11, 2420, 11800, 2398, 18185, 836, 391,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJobSpecsController_Create_Initiator_Only(t *testing.T) { t.Parallel() app, cleanup := cltest.NewApplication() defer cleanup() client := app.NewHTTPClient() jsonStr := cltest.LoadJSON("../internal/fixtures/web/initiator_only_job.json") resp, cleanup := client.Post("/v2/specs", bytes.NewBuffer(jsonStr)) ...
explode_data.jsonl/53691
{ "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, 12245, 8327, 82, 2051, 34325, 15644, 36122, 62, 7308, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 28236, 11, 21290, 1669, 1185, 1944, 7121, 4988, 741, 16867, 21290, 741, 25291, 1669, 906, 7121, 9230, 2959, 2822, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPopulateASMAuthDataNoASMResource(t *testing.T) { credentialsParameter := "secret-id" region := "us-west-2" container := &apicontainer.Container{ Name: "myName", Image: "image:tag", RegistryAuthentication: &apicontainer.RegistryAuthenticationData{ Type: "asm", ASMAuthData: &apicontainer.ASMAut...
explode_data.jsonl/37235
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 294 }
[ 2830, 3393, 11598, 6334, 1911, 4835, 940, 1043, 2753, 52584, 4783, 1155, 353, 8840, 836, 8, 1476, 197, 32353, 4971, 1669, 330, 20474, 12897, 698, 197, 3943, 1669, 330, 355, 37602, 12, 17, 1837, 53290, 1669, 609, 391, 51160, 1743, 33672,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_20220315(t *testing.T) { type args struct { arr []int } tests := []struct { name string args args want int }{ { name: "Test 1", args: args{ arr: []int{3, 4, 2, 1}, }, want: 5, }, { name: "Test 2", args: args{ arr: []int{3, 4, -1, 1}, }, want: 2, }, { na...
explode_data.jsonl/14935
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 457 }
[ 2830, 3393, 62, 17, 15, 17, 17, 15, 18, 16, 20, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 36511, 3056, 396, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 526...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestASCIIValidation(t *testing.T) { tests := []struct { param string expected bool }{ {"", true}, {"foobar", false}, {"xyz098", false}, {"123456", false}, {"カタカナ", false}, {"foobar", true}, {"0987654321", true}, {"test@example.com", true}, {"1234abcDEF", true}, {"", true}, } validat...
explode_data.jsonl/77266
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 403 }
[ 2830, 3393, 56450, 13799, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 36037, 262, 914, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 4913, 497, 830, 1583, 197, 197, 4913, 144862, 144116, 144116, 2257, 497, 895, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMissingFieldOnNil(t *testing.T) { tmpl := Must(New("tmpl").Parse("{{.MissingField}}")) var d *T err := tmpl.Execute(ioutil.Discard, d) got := "<nil>" if err != nil { got = err.Error() } want := "can't evaluate field MissingField in type *template.T" if !strings.HasSuffix(got, want) { t.Errorf("got ...
explode_data.jsonl/62395
{ "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, 25080, 1877, 1925, 19064, 1155, 353, 8840, 836, 8, 341, 3244, 54010, 1669, 15465, 35063, 445, 71359, 1827, 14463, 445, 2979, 13, 25080, 1877, 3417, 5455, 2405, 294, 353, 51, 198, 9859, 1669, 79839, 13827, 1956, 30158, 909, 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...
3
func TestWithdrawInternationalBank(t *testing.T) { b.SetDefaults() TestSetup(t) if areTestAPIKeysSet() && !canManipulateRealOrders { t.Skip("API keys set, canManipulateRealOrders false, skipping test") } var withdrawFiatRequest = exchange.WithdrawRequest{} _, err := b.WithdrawFiatFundsToInternationalBank(&wi...
explode_data.jsonl/49012
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 92261, 33646, 25828, 1155, 353, 8840, 836, 8, 341, 2233, 4202, 16273, 741, 73866, 21821, 1155, 692, 743, 525, 2271, 7082, 8850, 1649, 368, 1009, 753, 4814, 92876, 6334, 12768, 24898, 341, 197, 3244, 57776, 445, 7082, 6894, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestGetExecutor(t *testing.T) { f, err := os.Open("../fixtures/slave_state.json") assert.Nil(t, err, "Unexpected error") defer f.Close() s, err := NewSlaveState(f) assert.Nil(t, err, "Unexpected error") assert.NotNil(t, s, "Expected state") fid := "20150730-183810-177048842-5050-1233-0001" tid := "1" ass...
explode_data.jsonl/82164
{ "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, 1949, 25255, 1155, 353, 8840, 836, 8, 341, 1166, 11, 1848, 1669, 2643, 12953, 17409, 45247, 82577, 523, 4387, 4323, 1138, 6948, 59678, 1155, 11, 1848, 11, 330, 29430, 1465, 1138, 16867, 282, 10421, 741, 1903, 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...
1
func TestSpotInstanceActionCheck_Sunny(t *testing.T) { tests := []struct { jsonresp string }{ {jsonresp: `{"action": "terminate", "time": "2017-09-18T08:22:00Z"}`}, {jsonresp: `{"action": "hibernate", "time": "2017-09-18T08:22:00Z"}`}, {jsonresp: `{"action": "stop", "time": "2017-09-18T08:22:00Z"}`}, } ctrl...
explode_data.jsonl/41610
{ "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, 47049, 2523, 2512, 3973, 1098, 27297, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 30847, 18243, 914, 198, 197, 59403, 197, 197, 90, 2236, 18243, 25, 1565, 4913, 1311, 788, 330, 48061, 497, 330, 1678, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGenerateMetricTasksHonorInitialDelay(t *testing.T) { now := metav1.Now() nowMinus10 := metav1.NewTime(now.Add(-10 * time.Second)) nowMinus20 := metav1.NewTime(now.Add(-20 * time.Second)) run := &v1alpha1.AnalysisRun{ Spec: v1alpha1.AnalysisRunSpec{ Metrics: []v1alpha1.Metric{ { Name: ...
explode_data.jsonl/75811
{ "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, 31115, 54310, 25449, 39, 54037, 6341, 20039, 1155, 353, 8840, 836, 8, 341, 80922, 1669, 77520, 16, 13244, 741, 80922, 74458, 16, 15, 1669, 77520, 16, 7121, 1462, 32263, 1904, 4080, 16, 15, 353, 882, 32435, 1171, 80922, 74458...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSourceRTSPRTPInfo(t *testing.T) { l, err := net.Listen("tcp", "localhost:8555") require.NoError(t, err) defer l.Close() serverDone := make(chan struct{}) defer func() { <-serverDone }() go func() { defer close(serverDone) conn, err := l.Accept() require.NoError(t, err) bconn := bufio.NewReadWri...
explode_data.jsonl/82137
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2346 }
[ 2830, 3393, 3608, 5350, 4592, 49, 4239, 1731, 1155, 353, 8840, 836, 8, 341, 8810, 11, 1848, 1669, 4179, 68334, 445, 27161, 497, 330, 8301, 25, 23, 20, 20, 20, 1138, 17957, 35699, 1155, 11, 1848, 340, 16867, 326, 10421, 2822, 41057, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTransactionFetcherWaitTimerResets(t *testing.T) { testTransactionFetcherParallel(t, txFetcherTest{ init: func() *TxFetcher { return NewTxFetcher( func(common.Hash) bool { return false }, nil, func(string, []common.Hash) error { return nil }, ) }, steps: []interface{}{ doTxNotify{pee...
explode_data.jsonl/52218
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 634 }
[ 2830, 3393, 8070, 97492, 14190, 10105, 1061, 1415, 1155, 353, 8840, 836, 8, 341, 18185, 8070, 97492, 16547, 1155, 11, 259, 9770, 2995, 261, 2271, 515, 197, 28248, 25, 2915, 368, 353, 51, 9770, 2995, 261, 341, 298, 853, 1532, 51, 9770,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEtcdDiskSize(t *testing.T) { mockCS := getMockBaseContainerService("1.8.10") properties := mockCS.Properties properties.OrchestratorProfile.OrchestratorType = Kubernetes properties.MasterProfile.Count = 1 mockCS.setOrchestratorDefaults(true, true) if properties.OrchestratorProfile.KubernetesConfig.EtcdDi...
explode_data.jsonl/33870
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 979 }
[ 2830, 3393, 31860, 4385, 47583, 1695, 1155, 353, 8840, 836, 8, 341, 77333, 6412, 1669, 633, 11571, 3978, 4502, 1860, 445, 16, 13, 23, 13, 16, 15, 1138, 86928, 1669, 7860, 6412, 15945, 198, 86928, 90449, 331, 15111, 850, 8526, 90449, 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...
6
func TestGetSetClearRepeatedFields(t *testing.T) { fd, err := desc.LoadFileDescriptor("desc_test_field_types.proto") testutil.Ok(t, err) md := fd.FindSymbol("testprotos.RepeatedFields").(*desc.MessageDescriptor) dm := NewMessage(md) inputs := map[reflect.Kind]interface{}{ reflect.Bool: true, reflect.Int32:...
explode_data.jsonl/40952
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2319 }
[ 2830, 3393, 1949, 1649, 14008, 90989, 8941, 1155, 353, 8840, 836, 8, 341, 61721, 11, 1848, 1669, 6560, 13969, 1703, 11709, 445, 8614, 4452, 5013, 9763, 57322, 1138, 18185, 1314, 54282, 1155, 11, 1848, 340, 84374, 1669, 12414, 9998, 15090,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRetryableAuth(t *testing.T) { n := 0 passwords := []string{"WRONG1", "WRONG2"} config := &ClientConfig{ User: "testuser", Auth: []AuthMethod{ RetryableAuthMethod(PasswordCallback(func() (string, error) { p := passwords[n] n++ return p, nil }), 2), PublicKeys(testSigners["rsa"]), ...
explode_data.jsonl/6946
{ "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, 51560, 480, 5087, 1155, 353, 8840, 836, 8, 341, 9038, 1669, 220, 15, 198, 58199, 82, 1669, 3056, 917, 4913, 17925, 7539, 16, 497, 330, 17925, 7539, 17, 63159, 25873, 1669, 609, 2959, 2648, 515, 197, 31672, 25, 330, 1944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdate(t *testing.T) { mockUserRepo := new(mocks.UserRepository) hash, _ := bcrypt.GenerateFromPassword([]byte("super_password"), bcrypt.MinCost) mockUser := model.User{ ID: 1, FullName: "Mr. Test", Email: "mrtest@example.com", Hash: string(hash), IsActive: 1, IsTrashed: 0, }...
explode_data.jsonl/76997
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 684 }
[ 2830, 3393, 4289, 1155, 353, 8840, 836, 8, 341, 77333, 1474, 25243, 1669, 501, 1255, 25183, 7344, 4624, 692, 50333, 11, 716, 1669, 33520, 57582, 3830, 4876, 10556, 3782, 445, 9522, 10122, 3975, 33520, 17070, 14940, 340, 77333, 1474, 1669,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGuestReboot(t *testing.T) { _, err := os.Stat(markerFile) if os.IsNotExist(err) { // first boot if _, err := os.Create(markerFile); err != nil { t.Fatalf("failed creating marker file: %v", err) } t.Fatal("marker file does not exist") } // second boot t.Log("marker file exist signal the guest re...
explode_data.jsonl/81392
{ "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, 37804, 693, 4619, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 2643, 53419, 55008, 1703, 340, 743, 2643, 4506, 45535, 3964, 8, 341, 197, 197, 322, 1156, 10459, 198, 197, 743, 8358, 1848, 1669, 2643, 7251, 55008, 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...
3
func TestInvokeOK(t *testing.T) { t.Run("1.2Capability", func(t *testing.T) { l, v, cleanup := setupLedgerAndValidatorWithV12Capabilities(t) defer cleanup() testInvokeOK(t, l, v) }) t.Run("1.3Capability", func(t *testing.T) { l, v, cleanup := setupLedgerAndValidatorWithV13Capabilities(t) defer cleanup() ...
explode_data.jsonl/47797
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 151 }
[ 2830, 3393, 17604, 3925, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 16, 13, 17, 63746, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 8810, 11, 348, 11, 21290, 1669, 6505, 60850, 1389, 3036, 14256, 2354, 53, 16, 17, 55315, 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...
1
func TestPipelineSpec_Validate_Failure(t *testing.T) { tests := []struct { name string ps *PipelineSpec }{{ name: "invalid pipeline with one pipeline task having taskRef and taskSpec both", ps: &PipelineSpec{ Description: "this is an invalid pipeline with invalid pipeline task", Tasks: []PipelineTask{...
explode_data.jsonl/26524
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1240 }
[ 2830, 3393, 34656, 8327, 62, 17926, 1400, 9373, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 35009, 256, 353, 34656, 8327, 198, 197, 15170, 515, 197, 11609, 25, 330, 11808, 15301, 448, 825, 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...
2
func TestNewProbe(t *testing.T) { tests := []struct { name string opts []Option }{ { name: "NoOption", opts: []Option{}, }, { name: "PrometheusAndJaeger", opts: []Option{ WithMetadata("my-service", "0.1.0", map[string]string{ "environment": "testing", }), WithLogger("warn"), ...
explode_data.jsonl/15681
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 432 }
[ 2830, 3393, 3564, 81426, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 64734, 3056, 5341, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 2753, 5341, 756, 298, 64734, 25, 3056, 5341, 38837...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInLocation(t *testing.T) { denverLoc, err := time.LoadLocation("America/Denver") assert.Equal(t, nil, err) // Start out with time.UTC time.Local = time.UTC // Just normal parse to test out zone/offset ts := MustStrToTime("2013-02-01 00:00:00") zone, offset := ts.Zone() assert.Equal(t, 0, offset, "Sh...
explode_data.jsonl/32331
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1778 }
[ 2830, 3393, 641, 4707, 1155, 353, 8840, 836, 8, 1476, 2698, 268, 423, 9152, 11, 1848, 1669, 882, 13969, 4707, 445, 31032, 14953, 268, 423, 1138, 6948, 12808, 1155, 11, 2092, 11, 1848, 692, 197, 322, 5145, 700, 448, 882, 87069, 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...
1
func TestUtil_Format(t *testing.T) { vm := goja.New() util := New(vm) var b bytes.Buffer util.Format(&b, "Test: %% %д %s %d, %j", vm.ToValue("string"), vm.ToValue(42), vm.NewObject()) if res := b.String(); res != "Test: % %д string 42, {}" { t.Fatalf("Unexpected result: '%s'", res) } }
explode_data.jsonl/60329
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 2742, 72999, 1155, 353, 8840, 836, 8, 341, 54879, 1669, 728, 5580, 7121, 741, 79138, 1669, 1532, 31723, 692, 2405, 293, 5820, 22622, 198, 79138, 9978, 2099, 65, 11, 330, 2271, 25, 23277, 1018, 6949, 1018, 82, 1018, 67, 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...
2
func TestReconcileWithTimeout(t *testing.T) { ps := []*v1alpha1.Pipeline{tb.Pipeline("test-pipeline", "foo", tb.PipelineSpec( tb.PipelineTask("hello-world-1", "hello-world"), ))} prs := []*v1alpha1.PipelineRun{tb.PipelineRun("test-pipeline-run-with-timeout", "foo", tb.PipelineRunSpec("test-pipeline", tb.Pipel...
explode_data.jsonl/81291
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 815 }
[ 2830, 3393, 693, 40446, 457, 2354, 7636, 1155, 353, 8840, 836, 8, 341, 35009, 1669, 29838, 85, 16, 7141, 16, 1069, 8790, 90, 18387, 1069, 8790, 445, 1944, 2268, 8790, 497, 330, 7975, 497, 16363, 1069, 8790, 8327, 1006, 197, 62842, 106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvocationExpressionEvaluate(t *testing.T) { ctx := test.NewTestContext(t) c := ctx.NewCollection() c.MustAdd(hipathsys.NewInteger(123)) f, err := LookupFunctionInvocation("empty", []hipathsys.Evaluator{}) if err != nil { t.Fatal(err) } evaluator := NewInvocationExpression(newTestExpression(c), f) ...
explode_data.jsonl/36658
{ "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, 37443, 9595, 82345, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1273, 7121, 2271, 1972, 1155, 340, 1444, 1669, 5635, 7121, 6482, 741, 1444, 50463, 2212, 7, 2151, 587, 7791, 7121, 3486, 7, 16, 17, 18, 4390, 1166, 11, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestRemittanceOriginatorIdentificationNumberIssuerInvalid_OICSWIFTBICORBEI(t *testing.T) { ro := mockRemittanceOriginator() ro.IdentificationCode = OICSWIFTBICORBEI ro.IdentificationNumberIssuer = "zz" err := ro.Validate() require.EqualError(t, err, fieldError("IdentificationNumberIssuer", ErrInvalidPropert...
explode_data.jsonl/32950
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 6590, 87191, 13298, 850, 95212, 2833, 98902, 7928, 2232, 1317, 16844, 14292, 33, 1317, 868, 11594, 40, 1155, 353, 8840, 836, 8, 341, 197, 299, 1669, 7860, 6590, 87191, 13298, 850, 741, 197, 299, 6444, 306, 2404, 2078, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestWriteString(t *testing.T) { str := "Hello World!" m := martini.Classic() m.Use(Self([]byte("secret"))) m.Get("/", func(ctx *Context) { ctx.WriteString(str) }) res := httptest.NewRecorder() req, _ := http.NewRequest("GET", "/", nil) m.ServeHTTP(res, req) if res.Body.String() != str { t.Errorf("Writ...
explode_data.jsonl/37140
{ "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, 7985, 703, 1155, 353, 8840, 836, 8, 341, 11355, 1669, 330, 9707, 4337, 24734, 2109, 1669, 48195, 6591, 19331, 292, 741, 2109, 9046, 72016, 10556, 3782, 445, 20474, 29836, 2109, 2234, 35460, 2915, 7502, 353, 1972, 8, 341, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDocUnmarshal(t *testing.T) { result := testDoc{} err := Unmarshal(marshalTestToml, &result) expected := docData if err != nil { t.Fatal(err) } if !reflect.DeepEqual(result, expected) { resStr, _ := json.MarshalIndent(result, "", " ") expStr, _ := json.MarshalIndent(expected, "", " ") t.Errorf("...
explode_data.jsonl/46311
{ "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, 9550, 1806, 27121, 1155, 353, 8840, 836, 8, 341, 9559, 1669, 1273, 9550, 16094, 9859, 1669, 1230, 27121, 1255, 28423, 2271, 24732, 75, 11, 609, 1382, 340, 42400, 1669, 4629, 1043, 198, 743, 1848, 961, 2092, 341, 197, 3244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestBranchFailure(t *testing.T) { testRepo := newTestRepo(t) defer testRepo.cleanup(t) res, err := testRepo.sut.Branch("--invalid") require.NotNil(t, err) require.Empty(t, res) }
explode_data.jsonl/14037
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 18197, 17507, 1155, 353, 8840, 836, 8, 341, 18185, 25243, 1669, 501, 2271, 25243, 1155, 340, 16867, 1273, 25243, 87689, 1155, 692, 10202, 11, 1848, 1669, 1273, 25243, 514, 332, 97249, 21549, 11808, 1138, 17957, 93882, 1155, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestJobRunsController_Update_NotFound(t *testing.T) { t.Parallel() ethClient, _, assertMocksCalled := cltest.NewEthMocksWithStartupAssertions(t) defer assertMocksCalled() app, cleanup := cltest.NewApplication(t, ethClient, ) defer cleanup() app.Start() client := app.NewHTTPClient() _, bt := cltest.NewB...
explode_data.jsonl/49856
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 406 }
[ 2830, 3393, 12245, 73920, 2051, 47393, 60816, 6650, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 769, 2959, 11, 8358, 2060, 72577, 20960, 1669, 1185, 1944, 7121, 65390, 11571, 16056, 39076, 90206, 1155, 340, 16867, 2060, 725...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerator(t *testing.T) { tests := []string{ "omitempty", "slice2", "nothing_to_validate", "base_fields_with_rules", "nested_fields_with_rules", "base_fields_with_rules_and_nilguard", "base_fields_with_rules_and_notnil", "base_fields_with_rules_and_required", "nested_fields_with_rules_and_n...
explode_data.jsonl/75615
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1221 }
[ 2830, 3393, 12561, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 917, 515, 197, 197, 1, 19967, 756, 197, 197, 1, 24963, 17, 25897, 197, 197, 1, 41212, 2346, 42681, 756, 197, 197, 1, 3152, 12132, 6615, 21407, 756, 197, 197, 1, 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...
7
func TestGetAndSetDiscoveryKey(t *testing.T) { connection := connect.NewEmptyConnectionParams() assert.Equal(t, "", connection.DiscoveryKey()) connection.SetDiscoveryKey("Discovery key") assert.Equal(t, "Discovery key", connection.DiscoveryKey()) assert.True(t, connection.UseDiscovery()) }
explode_data.jsonl/1890
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 1949, 3036, 1649, 67400, 1592, 1155, 353, 8840, 836, 8, 341, 54590, 1669, 4564, 7121, 3522, 4526, 4870, 741, 6948, 12808, 1155, 11, 7342, 3633, 10166, 7449, 1592, 12367, 54590, 4202, 67400, 1592, 445, 67400, 1376, 1138, 6948, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestValidate_ScalarLeafs_ScalarSelectionNotAllowedWithDirectivesAndArgs(t *testing.T) { testutil.ExpectFailsRule(t, graphql.ScalarLeafsRule, ` fragment scalarSelectionsNotAllowedWithDirectivesAndArgs on Dog { doesKnowCommand(dogCommand: SIT) @include(if: true) { sinceWhen } } `, []gqlerror...
explode_data.jsonl/37576
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 171 }
[ 2830, 3393, 17926, 1098, 59153, 31461, 82, 1098, 59153, 11177, 97634, 2354, 16027, 1886, 3036, 4117, 1155, 353, 8840, 836, 8, 341, 18185, 1314, 81893, 37, 6209, 11337, 1155, 11, 48865, 808, 59153, 31461, 82, 11337, 11, 22074, 414, 12289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSessionOnPeersExhausted(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 10*time.Millisecond) defer cancel() fpm := newFakePeerManager() fspm := newFakeSessionPeerManager() fpf := newFakeProviderFinder() sim := bssim.New() bpm := bsbpm.New() notif := notifications.New() defer ...
explode_data.jsonl/37011
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 479 }
[ 2830, 3393, 5283, 1925, 10197, 388, 840, 15074, 291, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 7636, 5378, 19047, 1507, 220, 16, 15, 77053, 71482, 340, 16867, 9121, 741, 1166, 5187, 1669, 501, 52317, 30888, 2043,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreatePreparerRunsDecoratorsInOrder(t *testing.T) { p := CreatePreparer(WithBaseURL("https://microsoft.com/"), WithPath("1"), WithPath("2"), WithPath("3")) r, err := p.Prepare(&http.Request{}) if err != nil { t.Fatalf("autorest: CreatePreparer failed (%v)", err) } if r.URL.String() != "https:/1/2/...
explode_data.jsonl/20945
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 168 }
[ 2830, 3393, 4021, 4703, 61119, 73920, 35227, 2973, 641, 4431, 1155, 353, 8840, 836, 8, 972, 3223, 1669, 4230, 4703, 61119, 7, 2354, 3978, 3144, 445, 2428, 1110, 76, 3929, 905, 14, 3975, 3085, 1820, 445, 16, 3975, 3085, 1820, 445, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestLinkedList_Size(t *testing.T) { type fields struct { head *Node } tests := []struct { name string fields fields want int }{ { name: "Size of an empty list is zero", fields: fields{head: nil}, want: 0, }, { name: "Size of a non-empty list", fields: fields{ head: &Nod...
explode_data.jsonl/40420
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 359 }
[ 2830, 3393, 33915, 45553, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 46081, 353, 1955, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 55276, 5043, 198, 197, 50780, 256, 526, 198, 197, 5940...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLRU_GetHit(t *testing.T) { t.Parallel() c := NewLRUCache(2000) type fields struct { Cache *lru.Cache Hit int64 Miss int64 } tests := []struct { name string fields fields want int64 }{ { name: "Test_LRU_GetHit_OK", fields: fields{ Cache: c.Cache, Hit: c.hit, Miss...
explode_data.jsonl/46948
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 349 }
[ 2830, 3393, 20117, 52, 13614, 19498, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 1669, 1532, 20117, 5459, 1777, 7, 17, 15, 15, 15, 692, 13158, 5043, 2036, 341, 197, 6258, 1777, 353, 75, 2672, 46130, 198, 197, 13292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWorkflowHappenedBetween(t *testing.T) { t0 := time.Time{} t1 := t0.Add(time.Second) t2 := t1.Add(time.Second) t3 := t2.Add(time.Second) assert.False(t, WorkflowRanBetween(t0, t3)(Workflow{})) assert.False(t, WorkflowRanBetween(t0, t1)(Workflow{ ObjectMeta: metav1.ObjectMeta{CreationTimestamp: metav1.Ti...
explode_data.jsonl/26015
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 611 }
[ 2830, 3393, 62768, 39, 676, 6758, 25477, 1155, 353, 8840, 836, 8, 341, 3244, 15, 1669, 882, 16299, 16094, 3244, 16, 1669, 259, 15, 1904, 9730, 32435, 340, 3244, 17, 1669, 259, 16, 1904, 9730, 32435, 340, 3244, 18, 1669, 259, 17, 190...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClaimableBalancesQueryURLTemplate(t *testing.T) { tt := assert.New(t) expected := "/claimable_balances{?asset,sponsor,claimant,cursor,limit,order}" q := ClaimableBalancesQuery{} tt.Equal(expected, q.URITemplate()) }
explode_data.jsonl/57522
{ "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, 45544, 480, 37889, 3020, 2859, 3144, 7275, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 2060, 7121, 1155, 340, 42400, 1669, 3521, 7859, 480, 56441, 3020, 90, 30, 9852, 10671, 30241, 11, 7859, 517, 10109, 3823, 11, 9506, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMuxSubrouterWildcardParam(t *testing.T) { h := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "param:%v *:%v", URLParam(r, "param"), URLParam(r, "*")) }) r := NewRouter() r.Get("/bare/{param}", h) r.Get("/bare/{param}/*", h) r.Route("/case0", func(r Router) { r.Get(...
explode_data.jsonl/42891
{ "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, 44, 2200, 3136, 9937, 92988, 2001, 1155, 353, 8840, 836, 8, 341, 9598, 1669, 1758, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 11009, 59559, 3622, 11, 330, 903, 7533, 85, 353, 7533, 85, 497, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDecodeFail(t *testing.T) { brokenImages := []struct { b []byte n string }{ { b: []byte{'8', 'B', 'P', 'S', 0, 1}, n: "psd", }, { b: []byte{'8', 'B', 'P', 'S', 0, 2}, n: "psb", }, } for _, bi := range brokenImages { img, name, err := image.Decode(bytes.NewReader(bi.b)) if err != ...
explode_data.jsonl/50815
{ "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, 32564, 19524, 1155, 353, 8840, 836, 8, 341, 2233, 81709, 14228, 1669, 3056, 1235, 341, 197, 2233, 3056, 3782, 198, 197, 9038, 914, 198, 197, 59403, 197, 197, 515, 298, 2233, 25, 3056, 3782, 13608, 23, 516, 364, 33, 516, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGettingDigest(t *testing.T) { if !h.ConfigExists(cnfgPath) { t.Skip("No auth config provided") } err := h.CheckDigest(&AuthCnfg{}, cnfgPath) if err != nil { t.Error(err) } }
explode_data.jsonl/80906
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 85 }
[ 2830, 3393, 28655, 45217, 1155, 353, 8840, 836, 8, 341, 743, 753, 71, 10753, 15575, 92456, 4817, 1820, 8, 341, 197, 3244, 57776, 445, 2753, 4166, 2193, 3897, 1138, 197, 532, 9859, 1669, 305, 10600, 45217, 2099, 5087, 34, 77, 4817, 226...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnmarshalAttr(t *testing.T) { type ParamVal struct { Int int `xml:"int,attr"` } type ParamPtr struct { Int *int `xml:"int,attr"` } type ParamStringPtr struct { Int *string `xml:"int,attr"` } x := []byte(`<Param int="1" />`) p1 := &ParamPtr{} if err := Unmarshal(x, p1); err != nil { t.Fatal...
explode_data.jsonl/25293
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 480 }
[ 2830, 3393, 1806, 27121, 13371, 1155, 353, 8840, 836, 8, 341, 13158, 6991, 2208, 2036, 341, 197, 57152, 526, 1565, 6455, 2974, 396, 11, 2991, 8805, 197, 630, 13158, 6991, 5348, 2036, 341, 197, 57152, 353, 396, 1565, 6455, 2974, 396, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestProtocol_HandleDepositToStake(t *testing.T) { require := require.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() tests := []struct { // creat stake fields caller address.Address amount string afterDeposit string initBalance int64 selfstaking bool // action fields in...
explode_data.jsonl/64538
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2283 }
[ 2830, 3393, 20689, 42714, 78982, 1249, 623, 726, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 340, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 741, 78216, 1669, 3056, 1235, 341, 197, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestPathIssues(t *testing.T) { t.Parallel() for _, disablePathToLower := range []bool{false, true} { for _, uglyURLs := range []bool{false, true} { t.Run(fmt.Sprintf("disablePathToLower=%t,uglyURLs=%t", disablePathToLower, uglyURLs), func(t *testing.T) { cfg, fs := newTestCfg() th := testHelper{cfg...
explode_data.jsonl/60637
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1238 }
[ 2830, 3393, 1820, 85828, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 8358, 11156, 1820, 55620, 1669, 2088, 3056, 2641, 90, 3849, 11, 830, 92, 341, 197, 2023, 8358, 27261, 3144, 82, 1669, 2088, 3056, 2641, 90, 3849, 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...
2
func TestRetryFailure(t *testing.T) { myErr := fmt.Errorf("this is an actual error") var count int fstore := failstore.NewFailstore(ds.NewMapDatastore(), func(op string) error { count++ return myErr }) rds := &Datastore{ Batching: fstore, Retries: 5, TempErrFunc: func(err error) bool { return err ==...
explode_data.jsonl/28915
{ "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, 51560, 17507, 1155, 353, 8840, 836, 8, 341, 13624, 7747, 1669, 8879, 13080, 445, 574, 374, 458, 5042, 1465, 1138, 2405, 1760, 526, 198, 1166, 4314, 1669, 3690, 4314, 7121, 19524, 4314, 33783, 7121, 2227, 1043, 4314, 1507, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMultiStore_Pruning(t *testing.T) { testCases := []struct { name string numVersions int64 po types.PruningOptions deleted []int64 saved []int64 }{ {"prune nothing", 10, types.PruneNothing, nil, []int64{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}}, {"prune everything", 10, types.Prun...
explode_data.jsonl/44872
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 612 }
[ 2830, 3393, 20358, 6093, 1088, 6108, 287, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 22431, 69015, 526, 21, 19, 198, 197, 3223, 78, 688, 4494, 1069, 6108, 287, 3798, 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 TestValueGC3(t *testing.T) { dir, err := ioutil.TempDir("", "badger-test") require.NoError(t, err) defer removeDir(dir) opt := getTestOptions(dir) opt.ValueLogFileSize = 1 << 20 kv, err := Open(opt) require.NoError(t, err) defer kv.Close() // We want to test whether an iterator can continue through a va...
explode_data.jsonl/39092
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 784 }
[ 2830, 3393, 1130, 22863, 18, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 13855, 1389, 16839, 1138, 17957, 35699, 1155, 11, 1848, 340, 16867, 4057, 6184, 14161, 340, 64838, 1669, 633, 2271, 3798, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReplicaSet_IsScaledUpToDesiredMembers_WhenFirstCreated(t *testing.T) { mdb := newTestReplicaSet() mgr := client.NewManager(&mdb) r := NewReconciler(mgr) res, err := r.Reconcile(context.TODO(), reconcile.Request{NamespacedName: types.NamespacedName{Namespace: mdb.Namespace, Name: mdb.Name}}) assertReconci...
explode_data.jsonl/80689
{ "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, 18327, 15317, 1649, 31879, 94201, 2324, 1249, 4896, 2690, 24371, 62, 4498, 5338, 11694, 1155, 353, 8840, 836, 8, 341, 2109, 1999, 1669, 501, 2271, 18327, 15317, 1649, 2822, 2109, 901, 1669, 2943, 7121, 2043, 2099, 78127, 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 TestDoNotPatchPodWithOtherControlRef(t *testing.T) { labelMap := map[string]string{"foo": "bar"} rs := newReplicaSet(2, labelMap) stopCh := make(chan struct{}) defer close(stopCh) manager, fakePodControl, informers := setupManagerWithGCEnabled(stopCh, rs) informers.Apps().V1().ReplicaSets().Informer().GetInd...
explode_data.jsonl/7984
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 340 }
[ 2830, 3393, 5404, 2623, 43622, 23527, 2354, 11409, 3273, 3945, 1155, 353, 8840, 836, 8, 341, 29277, 2227, 1669, 2415, 14032, 30953, 4913, 7975, 788, 330, 2257, 16707, 41231, 1669, 501, 18327, 15317, 1649, 7, 17, 11, 2383, 2227, 340, 626...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRedelegation(t *testing.T) { _, app, ctx := createTestInput() addrDels := simapp.AddTestAddrsIncremental(app, ctx, 2, sdk.NewInt(0)) addrVals := simapp.ConvertAddrsToValAddrs(addrDels) rd := types.NewRedelegation(addrDels[0], addrVals[0], addrVals[1], 0, time.Unix(0, 0).UTC(), sdk.NewInt(5), sdk.NewD...
explode_data.jsonl/82052
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 963 }
[ 2830, 3393, 6033, 68, 87566, 1155, 353, 8840, 836, 8, 341, 197, 6878, 906, 11, 5635, 1669, 1855, 2271, 2505, 2822, 53183, 35, 2010, 1669, 1643, 676, 1904, 2271, 2212, 5428, 38311, 278, 11462, 11, 5635, 11, 220, 17, 11, 45402, 7121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEnsureNoOmissionsInMessageProcessingOrder(t *testing.T) { messages := make(map[string]int32, len(pb.Message_MessageType_value)) for k, v := range pb.Message_MessageType_value { messages[k] = v } // Add deliberate omissions to this list blackList := map[pb.Message_MessageType]struct{}{ pb.Message_PING...
explode_data.jsonl/48260
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 396 }
[ 2830, 3393, 64439, 2753, 46, 5176, 641, 2052, 28892, 4431, 1155, 353, 8840, 836, 8, 341, 2109, 3737, 1669, 1281, 9147, 14032, 63025, 18, 17, 11, 2422, 76878, 8472, 50974, 929, 3142, 1171, 2023, 595, 11, 348, 1669, 2088, 17310, 8472, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestUtil_testMergeEnvsWithEmptyArguments(t *testing.T) { //given var a []v1.EnvVar var b []v1.EnvVar //when c := MergeEnvs(a, b) //then var expected []v1.EnvVar assert.Equal(t, expected, c) }
explode_data.jsonl/28518
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 2742, 4452, 52096, 1702, 11562, 2354, 3522, 19139, 1155, 353, 8840, 836, 8, 341, 197, 322, 41968, 198, 2405, 264, 3056, 85, 16, 81214, 3962, 198, 2405, 293, 3056, 85, 16, 81214, 3962, 271, 197, 322, 9309, 198, 1444, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTransportHandlerBodyClose(t *testing.T) { const bodySize = 10 << 20 st := newServerTester(t, func(w http.ResponseWriter, r *http.Request) { r.Body.Close() io.Copy(w, io.LimitReader(neverEnding('A'), bodySize)) }, optOnlyServer) defer st.Close() tr := &Transport{TLSClientConfig: tlsConfigInsecure} de...
explode_data.jsonl/16122
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 442 }
[ 2830, 3393, 27560, 3050, 5444, 7925, 1155, 353, 8840, 836, 8, 341, 4777, 2487, 1695, 284, 220, 16, 15, 1115, 220, 17, 15, 198, 18388, 1669, 501, 5475, 58699, 1155, 11, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParser_ParseEmbededStruct(t *testing.T) { src := ` package api type Response struct { rest.ResponseWrapper } // @Success 200 {object} Response // @Router /api/{id} [get] func Test(){ } ` restsrc := ` package rest type ResponseWrapper struct { Status string Code int Messages []string Result in...
explode_data.jsonl/63567
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 644 }
[ 2830, 3393, 6570, 77337, 25486, 291, 9422, 1155, 353, 8840, 836, 8, 341, 41144, 1669, 22074, 1722, 6330, 271, 1313, 5949, 2036, 341, 197, 3927, 12574, 11542, 198, 630, 322, 569, 7188, 220, 17, 15, 15, 314, 1700, 92, 5949, 198, 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...
1
func TestGetLineSetF(t *testing.T) { // Define a script. scr := NewScript() scr.AppendStmt(nil, func(s *Script) { // Validate the current line. for i := 1; i <= 3; i++ { if s.F(i).Int() != (s.NR-1)*3+i { t.Fatalf("Expected %d but received %d", (s.NR-1)*3+i, s.F(i).Int()) } } // Read and validate t...
explode_data.jsonl/3028
{ "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, 1949, 2460, 1649, 37, 1155, 353, 8840, 836, 8, 341, 197, 322, 18614, 264, 5316, 624, 1903, 5082, 1669, 1532, 5910, 741, 1903, 5082, 8982, 31063, 27907, 11, 2915, 1141, 353, 5910, 8, 341, 197, 197, 322, 23282, 279, 1482, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMessageExportSetDefaultsExportDisabledExportFromTimestampNil(t *testing.T) { mes := &MessageExportSettings{ EnableExport: NewBool(false), } mes.SetDefaults() require.False(t, *mes.EnableExport) require.Equal(t, "01:00", *mes.DailyRunTime) require.Equal(t, int64(0), *mes.ExportFromTimestamp) require.E...
explode_data.jsonl/50694
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 133 }
[ 2830, 3393, 2052, 16894, 1649, 16273, 16894, 25907, 16894, 3830, 20812, 19064, 1155, 353, 8840, 836, 8, 341, 2109, 288, 1669, 609, 2052, 16894, 6086, 515, 197, 197, 11084, 16894, 25, 1532, 11233, 3576, 1326, 197, 532, 2109, 288, 4202, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDefaultContainerResourceRequirements(t *testing.T) { limitRange := validLimitRange() expected := api.ResourceRequirements{ Requests: getResourceList("50m", "5Mi"), Limits: getResourceList("75m", "10Mi"), } actual := defaultContainerResourceRequirements(&limitRange) if !api.Semantic.DeepEqual(expect...
explode_data.jsonl/16881
{ "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, 3675, 4502, 4783, 59202, 1155, 353, 8840, 836, 8, 341, 8810, 2353, 6046, 1669, 2697, 16527, 6046, 741, 42400, 1669, 6330, 20766, 59202, 515, 197, 197, 35295, 25, 87794, 852, 445, 20, 15, 76, 497, 330, 20, 41887, 4461, 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 TestMapCreation(t *testing.T) { m := NewSimpleLongConcurrentHashMap() if m == nil { t.Error("map is null") } if m.Size() != 0 { t.Error("map is not empty") } }
explode_data.jsonl/19655
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 73 }
[ 2830, 3393, 2227, 32701, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1532, 16374, 6583, 1109, 3231, 18497, 2822, 743, 296, 621, 2092, 341, 197, 3244, 6141, 445, 2186, 374, 845, 1138, 197, 630, 743, 296, 2465, 368, 961, 220, 15, 341, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
3
func TestClientDoTimeoutDisablePathNormalizing(t *testing.T) { t.Parallel() ln := fasthttputil.NewInmemoryListener() s := &Server{ Handler: func(ctx *RequestCtx) { uri := ctx.URI() uri.DisablePathNormalizing = true ctx.Response.Header.Set("received-uri", string(uri.FullURI())) }, } serverStopCh := ...
explode_data.jsonl/79355
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 497 }
[ 2830, 3393, 2959, 5404, 7636, 25479, 1820, 12206, 4849, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 2261, 1669, 4937, 96336, 628, 321, 7121, 641, 17269, 2743, 2822, 1903, 1669, 609, 5475, 515, 197, 197, 3050, 25, 2915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEncodeList(t *testing.T) { input := make([]interface{}, 3) input[0] = 1 input[1] = 2 input[2] = 3 encoded, err := Encode(input) expected := "li1ei2ei3ee" if err != nil { t.Errorf("Got error when encoding: %v", err) } if encoded != expected { t.Errorf("Expected encoded value to be %v but got %v"...
explode_data.jsonl/10968
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 139 }
[ 2830, 3393, 32535, 852, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 1281, 10556, 4970, 22655, 220, 18, 340, 22427, 58, 15, 60, 284, 220, 16, 198, 22427, 58, 16, 60, 284, 220, 17, 198, 22427, 58, 17, 60, 284, 220, 18, 271, 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...
3
func TestRetrieveEntities(t *testing.T) { ts := httptest.NewServer( http.HandlerFunc( func(w http.ResponseWriter, r *http.Request) { if strings.HasSuffix(r.URL.Path, "/v2") { apiResourcesHandler(w, r) } else { if r.Header.Get("Accept") != "application/json" { t.Fatal("Missing application/j...
explode_data.jsonl/64660
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 835 }
[ 2830, 3393, 87665, 15828, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 1006, 197, 28080, 89164, 1006, 298, 29244, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 571, 743, 9069, 16152, 40177, 2601, 20893, 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...
6
func TestGenModel_Issue1341(t *testing.T) { specDoc, err := loads.Spec("../fixtures/bugs/1341/swagger.yaml") require.NoError(t, err) definitions := specDoc.Spec().Definitions k := "ExecutableValueString" schema := definitions[k] opts := opts() genModel, err := makeGenDefinition(k, "models", schema, specDoc, opt...
explode_data.jsonl/2559
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 310 }
[ 2830, 3393, 9967, 1712, 7959, 83890, 16, 18, 19, 16, 1155, 353, 8840, 836, 8, 341, 98100, 9550, 11, 1848, 1669, 20907, 36473, 17409, 45247, 14, 56176, 14, 16, 18, 19, 16, 80930, 33406, 1138, 17957, 35699, 1155, 11, 1848, 692, 7452, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoteIP(t *testing.T) { for _, v := range []struct { remoteAddr string expected string }{ {"101.1.0.4:100", "101.1.0.4"}, {"101.1.0.4:", "101.1.0.4"}, {"101.1.0.4", ""}, {":100", ""}, } { if actual := RemoteIP(&http.Request{RemoteAddr: v.remoteAddr}); actual != v.expected { t.Errorf("Rem...
explode_data.jsonl/68035
{ "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, 24703, 3298, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 348, 1669, 2088, 3056, 1235, 341, 197, 197, 18147, 13986, 914, 198, 197, 42400, 256, 914, 198, 197, 59403, 197, 197, 4913, 16, 15, 16, 13, 16, 13, 15, 13, 19, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestDispatchShouldReturnErrorWhenWorkerIsShutDown(t *testing.T) { worker := work.NewWorker(1, func(p work.Payload) interface{} { return fmt.Sprintf("%s.", p.Data) }, true) worker.Quit() err := worker.Dispatch(work.Payload{}) assert.Error(t, err, "Dispatch returned no error") }
explode_data.jsonl/11915
{ "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, 11283, 14996, 5598, 1454, 4498, 21936, 3872, 2016, 332, 4454, 1155, 353, 8840, 836, 8, 341, 197, 21462, 1669, 975, 7121, 21936, 7, 16, 11, 2915, 1295, 975, 86432, 8, 3749, 6257, 341, 197, 853, 8879, 17305, 4430, 82, 10465,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAPI_RequestToHTTP(t *testing.T) { t.Parallel() c, s := makeClient(t) defer s.Stop() r := c.newRequest("DELETE", "/v1/kv/foo") q := &QueryOptions{ Datacenter: "foo", } r.setQueryOptions(q) req, err := r.toHTTP() if err != nil { t.Fatalf("err: %v", err) } if req.Method != "DELETE" { t.Fatalf("...
explode_data.jsonl/44942
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 206 }
[ 2830, 3393, 7082, 44024, 1249, 9230, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1444, 11, 274, 1669, 1281, 2959, 1155, 340, 16867, 274, 30213, 2822, 7000, 1669, 272, 4618, 1900, 445, 14424, 497, 3521, 85, 16, 14109, 85, 605...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewOptions(t *testing.T) { defaultOpt := DefaultTokenOptions() if defaultOpt == nil { assert.NotNil(t, defaultOpt) return } assert.Equal(t, defaultOpt.SignMethod, jwt.GetSigningMethod("RS256")) assert.Equal(t, defaultOpt.Issuer, "harbor-token-defaultIssuer") }
explode_data.jsonl/28129
{ "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, 3564, 3798, 1155, 353, 8840, 836, 8, 341, 11940, 21367, 1669, 7899, 3323, 3798, 741, 743, 1638, 21367, 621, 2092, 341, 197, 6948, 93882, 1155, 11, 1638, 21367, 340, 197, 853, 198, 197, 532, 6948, 12808, 1155, 11, 1638, 213...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEntry_Binding(t *testing.T) { entry := widget.NewEntry() entry.SetText("Init") assert.Equal(t, "Init", entry.Text) str := binding.NewString() entry.Bind(str) waitForBinding() assert.Equal(t, "", entry.Text) err := str.Set("Updated") assert.Nil(t, err) waitForBinding() assert.Equal(t, "Updated", en...
explode_data.jsonl/12312
{ "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, 5874, 1668, 3961, 1155, 353, 8840, 836, 8, 341, 48344, 1669, 9086, 7121, 5874, 741, 48344, 92259, 445, 3803, 1138, 6948, 12808, 1155, 11, 330, 3803, 497, 4343, 1979, 692, 11355, 1669, 10970, 7121, 703, 741, 48344, 32451, 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 TestParse(t *testing.T) { cases := []struct { name string rawpath string path Path err error }{ { name: "standard", rawpath: "github.com/a/b", path: Path{RawPath: "github.com/a/b", Root: "b", Package: "b"}, }, { name: "with dash", rawpath: "github.com/a/b-c", pa...
explode_data.jsonl/42637
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 832 }
[ 2830, 3393, 14463, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 76559, 2343, 914, 198, 197, 26781, 262, 7933, 198, 197, 9859, 257, 1465, 198, 197, 59403, 197, 197, 515, 298, 11609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEngineMustExist(t *testing.T) { defer leaktest.AfterTest(t)() test := func(engineType enginepb.EngineType, errStr string) { tempDir, dirCleanupFn := testutils.TempDir(t) defer dirCleanupFn() _, err := NewEngine( engineType, 0, RocksDBConfig{ Dir: tempDir, MustExist: true, }) ...
explode_data.jsonl/38119
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 255 }
[ 2830, 3393, 4571, 31776, 25613, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 18185, 1669, 2915, 48974, 929, 4712, 16650, 54424, 929, 11, 1848, 2580, 914, 8, 341, 197, 16280, 6184, 11, 5419, 67335, 24911,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMetricsMetadata_ToMetricValues_AllPossibleMetadata(t *testing.T) { metricDataType := metricValueDataType{dataType: metricDataType} int64MetricValueMetadata := Int64MetricValueMetadata{ queryMetricValueMetadata: newQueryMetricValueMetadata("int64MetricName", "int64MetricColumnName", metricDataType, metri...
explode_data.jsonl/64255
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 391 }
[ 2830, 3393, 27328, 14610, 38346, 54310, 6227, 53629, 65222, 14610, 1155, 353, 8840, 836, 8, 341, 2109, 16340, 22653, 1669, 18266, 1130, 22653, 90, 57694, 25, 18266, 22653, 532, 2084, 21, 19, 54310, 1130, 14610, 1669, 1333, 21, 19, 54310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInit(t *testing.T) { if _, err := newConfig(); err != nil { t.Fatal(err) } if _, err := loadTests(); err != nil { t.Fatal(err) } }
explode_data.jsonl/41686
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 68 }
[ 2830, 3393, 3803, 1155, 353, 8840, 836, 8, 341, 743, 8358, 1848, 1669, 501, 2648, 2129, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 743, 8358, 1848, 1669, 2795, 18200, 2129, 1848, 961, 2092, 341, 197, 3244, 26133, 396...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
3
func Test_SampleExpr_String(t *testing.T) { t.Parallel() for _, tc := range []string{ `rate( ( {job="mysql"} |="error" !="timeout" ) [10s] )`, `sum without(a) ( rate ( ( {job="mysql"} |="error" !="timeout" ) [10s] ) )`, `sum by(a) (rate( ( {job="mysql"} |="error" !="timeout" ) [10s] ) )`, `sum(count_over_time...
explode_data.jsonl/62860
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 606 }
[ 2830, 3393, 1098, 1516, 16041, 31777, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 8358, 17130, 1669, 2088, 3056, 917, 515, 197, 197, 63, 7698, 7, 320, 314, 8799, 428, 12272, 9207, 760, 428, 841, 1, 753, 428, 14150, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAssociateBillingManagerByUsername(t *testing.T) { Convey("Associate billing manager by username", t, func() { expectedBody := `{"username":"user-name"}` setup(MockRoute{"PUT", "/v2/organizations/bc7b4caf-f4b8-4d85-b126-0729b9351e56/billing_managers", []string{associateOrgUserPayload}, "", 201, "", &expect...
explode_data.jsonl/4447
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 336 }
[ 2830, 3393, 95540, 82007, 2043, 91519, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 95540, 33531, 6645, 553, 5934, 497, 259, 11, 2915, 368, 341, 197, 42400, 5444, 1669, 1565, 4913, 5113, 3252, 872, 11494, 9207, 3989, 197, 84571, 6643...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKafkaClient_readString_Underflow(t *testing.T) { buf := bytes.NewBuffer([]byte("\x00\x05test")) result, err := readString(buf) assert.Equalf(t, "", result, "Expected readString to return empty string, not %v", result) assert.NotNil(t, err, "Expected readString to return an error") }
explode_data.jsonl/34258
{ "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, 42, 21883, 2959, 6443, 703, 6665, 900, 4965, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 5820, 7121, 4095, 10556, 3782, 4921, 87, 15, 15, 3462, 15, 20, 1944, 5455, 9559, 11, 1848, 1669, 1349, 703, 10731, 692, 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 TestConfigLoadConfigurationFailMissingHypervisor(t *testing.T) { tmpdir, err := ioutil.TempDir(testDir, "runtime-config-") assert.NoError(t, err) defer os.RemoveAll(tmpdir) testLoadConfiguration(t, tmpdir, func(config testRuntimeConfig, configFile string, ignoreLogging bool) (bool, error) { expectFail :=...
explode_data.jsonl/5116
{ "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, 2648, 5879, 7688, 19524, 25080, 39, 1082, 31396, 1155, 353, 8840, 836, 8, 341, 20082, 3741, 11, 1848, 1669, 43144, 65009, 6184, 8623, 6184, 11, 330, 22255, 25130, 12, 1138, 6948, 35699, 1155, 11, 1848, 340, 16867, 2643, 8442...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetURL(t *testing.T) { testCases := []struct { handler http.HandlerFunc wantErr error wantOut []byte }{ { handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "Hello, client") }), wantErr: nil, wantOut: []byte(`HTTP/1.1: 200 OK Content-Length: 14 Co...
explode_data.jsonl/29967
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 344 }
[ 2830, 3393, 1949, 3144, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 53326, 1758, 89164, 198, 197, 50780, 7747, 1465, 198, 197, 50780, 2662, 3056, 3782, 198, 197, 59403, 197, 197, 515, 298, 53326, 25, 1758, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHeap(t *testing.T) { h := goalg.NewHeap([]interface{}{5, 4, 3, 2, 1}, func(i, j interface{}) bool { return i.(int) < j.(int) }) assert.Equal(t, 5, h.Len()) assert.Equal(t, 1, h.Top()) assert.Equal(t, 1, h.Pop()) assert.Equal(t, 4, h.Len()) assert.Equal(t, 2, h.Top()) assert.Equal(t, 2, h.Pop()) h.Pu...
explode_data.jsonl/19440
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 471 }
[ 2830, 3393, 27909, 1155, 353, 8840, 836, 8, 341, 9598, 1669, 5795, 70, 7121, 27909, 10556, 4970, 6257, 90, 20, 11, 220, 19, 11, 220, 18, 11, 220, 17, 11, 220, 16, 2137, 2915, 1956, 11, 502, 3749, 28875, 1807, 341, 197, 853, 600, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSkipLeadingComments(t *testing.T) { testSkipLeadingComments(t, "", "") testSkipLeadingComments(t, "a", "a") testSkipLeadingComments(t, "SELECT 1", "SELECT 1") testSkipLeadingComments(t, "\t\n\v\f\r aaa ", "aaa ") testSkipLeadingComments(t, "\t /** foo /* */ bar ", "bar ") testSkipLeadingComments(t, "/...
explode_data.jsonl/31696
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 276 }
[ 2830, 3393, 35134, 69750, 17373, 1155, 353, 8840, 836, 8, 341, 18185, 35134, 69750, 17373, 1155, 11, 7342, 14676, 18185, 35134, 69750, 17373, 1155, 11, 330, 64, 497, 330, 64, 1138, 18185, 35134, 69750, 17373, 1155, 11, 330, 4858, 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...
1
func TestSourceMap(t *testing.T) { smap, err := sourcemap.Parse("", []byte(sourceMapJSON)) if err != nil { t.Fatal(err) } tests := []*sourceMapTest{ {1, 1, "/the/root/one.js", "", 1, 1}, {1, 5, "/the/root/one.js", "", 1, 5}, {1, 9, "/the/root/one.js", "", 1, 11}, {1, 18, "/the/root/one.js", "bar", 1, 21}...
explode_data.jsonl/42997
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 521 }
[ 2830, 3393, 3608, 2227, 1155, 353, 8840, 836, 8, 341, 1903, 2186, 11, 1848, 1669, 20282, 66, 42040, 8937, 19814, 3056, 3782, 12437, 2227, 5370, 1171, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 78216, 1669, 29838, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestReadMetrics(t *testing.T) { scw := stubCloudWatch{} period := 5 * time.Minute start := time.Now().Add(-2 * period).Truncate(period) metricstats := newMetricstats() err := ReadMetrics(scw, start, period, metricstats) assert.NoError(t, err) for _, ms := range metricstats { stat := ms.statistic gauge...
explode_data.jsonl/3107
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 451 }
[ 2830, 3393, 4418, 27328, 1155, 353, 8840, 836, 8, 341, 29928, 86, 1669, 13633, 16055, 14247, 16094, 197, 19304, 1669, 220, 20, 353, 882, 75770, 198, 21375, 1669, 882, 13244, 1005, 2212, 4080, 17, 353, 4168, 568, 1282, 26900, 74782, 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...
7
func TestGenerateParentSpan(t *testing.T) { random := rand.Reader traceID := generateTraceID(random) spanInputs := &PICTSpanInputs{ Parent: SpanParentRoot, Tracestate: TraceStateEmpty, Kind: SpanKindServer, Attributes: SpanAttrHTTPServer, Events: SpanChildCountTwo, Links: SpanChildCoun...
explode_data.jsonl/34131
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 266 }
[ 2830, 3393, 31115, 8387, 12485, 1155, 353, 8840, 836, 8, 341, 83628, 1669, 10382, 47431, 198, 65058, 915, 1669, 6923, 6550, 915, 25110, 340, 197, 1480, 31946, 1669, 609, 1893, 1162, 12485, 31946, 515, 197, 197, 8387, 25, 257, 11903, 838...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMapDynamicMsg(t *testing.T) { fromPrefix := "from" toPrefix := "to" tppff := &testProtoPlainFieldFactory{ fromPrefix: fromPrefix, toPrefix: toPrefix, } fieldFactories = []protoFieldFactory{tppff, variablyOpaqueFieldFactory{}} pfValue := "foo" mapKey := "bar" startMsg := &testprotos.DynamicMsg{ ...
explode_data.jsonl/78816
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 507 }
[ 2830, 3393, 2227, 21752, 6611, 1155, 353, 8840, 836, 8, 341, 42727, 14335, 1669, 330, 1499, 698, 31709, 14335, 1669, 330, 983, 698, 3244, 602, 542, 1669, 609, 1944, 31549, 26982, 1877, 4153, 515, 197, 42727, 14335, 25, 504, 14335, 345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCreateTable(t *testing.T) { conf, err := config.LoadConfig("../config/config.json") if err != nil { log.Fatal("Failed to load config") } fmt.Println("Initalizing with", conf.GetDB().User, ":", conf.GetDB().Password) s.Initialize(conf.GetDB().User, conf.GetDB().Password, "rest_api_example") gm.DropTable...
explode_data.jsonl/70278
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 138 }
[ 2830, 3393, 4021, 2556, 1155, 353, 8840, 836, 8, 341, 67850, 11, 1848, 1669, 2193, 13969, 2648, 17409, 1676, 14730, 4323, 1138, 743, 1848, 961, 2092, 341, 197, 6725, 26133, 445, 9408, 311, 2795, 2193, 1138, 197, 532, 11009, 12419, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestLogin_FinishLoginFailure(t *testing.T) { user := &defaultUser{ id: []byte("123"), } session := SessionData{ UserID: []byte("ABC"), } webauthn := &WebAuthn{} credential, err := webauthn.FinishLogin(user, session, nil) if err == nil { t.Errorf("FinishLogin() error = nil, want %v", protocol.ErrBadRe...
explode_data.jsonl/35546
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 6231, 1400, 18176, 6231, 17507, 1155, 353, 8840, 836, 8, 341, 19060, 1669, 609, 2258, 1474, 515, 197, 15710, 25, 3056, 3782, 445, 16, 17, 18, 4461, 197, 532, 25054, 1669, 9164, 1043, 515, 197, 31672, 915, 25, 3056, 3782, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStreamPartialArg(t *testing.T) { testStreamArg(t, func(argWriter ArgWriter, argReader ArgReader) { require.NoError(t, argWriter.Close(), "arg3 close failed") // Once closed, we expect the reader to return EOF n, err := io.Copy(ioutil.Discard, argReader) assert.Equal(t, int64(0), n, "arg2 reader expec...
explode_data.jsonl/55426
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 168 }
[ 2830, 3393, 3027, 37314, 2735, 1155, 353, 8840, 836, 8, 341, 18185, 3027, 2735, 1155, 11, 2915, 9404, 6492, 7638, 6492, 11, 1392, 5062, 7638, 5062, 8, 341, 197, 17957, 35699, 1155, 11, 1392, 6492, 10421, 1507, 330, 858, 18, 3265, 4641...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAttributes_Extract(t *testing.T) { testCases := []testCase{ // Ensure `new_user_key` is not set for spans with no attributes. { name: "UpsertEmptyAttributes", inputAttributes: map[string]pdata.AttributeValue{}, expectedAttributes: map[string]pdata.AttributeValue{}, }, // Ensu...
explode_data.jsonl/11512
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1941 }
[ 2830, 3393, 10516, 62, 28959, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 66194, 515, 197, 197, 322, 29279, 1565, 931, 3317, 3097, 63, 374, 537, 738, 369, 44295, 448, 902, 8201, 624, 197, 197, 515, 298, 11609, 25, 2290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewConfigMissingParameter(t *testing.T) { testCases := []struct { environment map[string]interface{} expectedType string }{ { map[string]interface{}{ "AVP_TYPE": "vault", "AVP_AUTH_TYPE": "github", "AVP_GH_TOKEN": "token", }, "*backends.Vault", }, { map[string]interfa...
explode_data.jsonl/54095
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 825 }
[ 2830, 3393, 3564, 2648, 25080, 4971, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 197, 23294, 220, 2415, 14032, 31344, 16094, 197, 42400, 929, 914, 198, 197, 59403, 197, 197, 515, 298, 19567, 14032, 31344, 670...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetFromSecrets(t *testing.T) { reader := setup(t) cfg, _ := ReadCRSpecFromFile(reader) cfg.Spec.AddToSecrets("qliksense2", "mongo", "tadadaa", "") v := cfg.Spec.GetFromSecrets("qliksense2", "mongo") if v != "tadadaa" { t.Fail() } // skipping by default because it requries kubectl connection t.Skip...
explode_data.jsonl/60733
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 379 }
[ 2830, 3393, 1949, 3830, 19773, 82, 1155, 353, 8840, 836, 8, 1476, 61477, 1669, 6505, 1155, 340, 50286, 11, 716, 1669, 4457, 8973, 8327, 43633, 21987, 692, 50286, 36473, 1904, 1249, 19773, 82, 445, 6905, 2787, 1117, 17, 497, 330, 53070, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateContextUserBasicAuth(t *testing.T) { validateTransaction(t, func(tx *apm.Transaction) { req, err := http.NewRequest("GET", "/", nil) require.NoError(t, err) req.SetBasicAuth(strings.Repeat("x", 1025), "") tx.Context.SetHTTPRequest(req) }) }
explode_data.jsonl/790
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 102 }
[ 2830, 3393, 17926, 1972, 1474, 15944, 5087, 1155, 353, 8840, 836, 8, 341, 197, 7067, 8070, 1155, 11, 2915, 27301, 353, 391, 76, 29284, 8, 341, 197, 24395, 11, 1848, 1669, 1758, 75274, 445, 3806, 497, 64657, 2092, 340, 197, 17957, 3569...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1