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 TestChatSrvSetAppNotificationSettings(t *testing.T) { runWithMemberTypes(t, func(mt chat1.ConversationMembersType) { ctc := makeChatTestContext(t, "TestChatSrvSetAppNotificationSettings", 2) defer ctc.cleanup() users := ctc.users() // Only run this test for teams switch mt { case chat1.ConversationMe...
explode_data.jsonl/63705
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2439 }
[ 2830, 3393, 15672, 50, 10553, 1649, 2164, 11196, 6086, 1155, 353, 8840, 836, 8, 341, 56742, 2354, 9366, 4173, 1155, 11, 2915, 81618, 6236, 16, 4801, 22323, 24371, 929, 8, 341, 197, 89216, 66, 1669, 1281, 15672, 2271, 1972, 1155, 11, 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...
3
func TestSokuonW(t *testing.T) { const want = "wwawwo" for _, v := range []string{"っわっを", "ッワッヲ"} { got, err := KanaToRomaji(v) assert.Equal(t, want, got) assert.Nil(t, err) } }
explode_data.jsonl/11356
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 50, 16493, 263, 54, 1155, 353, 8840, 836, 8, 341, 4777, 1366, 284, 330, 1250, 672, 1126, 1837, 2023, 8358, 348, 1669, 2088, 3056, 917, 4913, 41791, 77083, 41791, 29412, 497, 330, 25204, 124556, 25204, 144529, 9207, 341, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestVersion(t *testing.T) { framework. NewTest(t).Features("usability.observability.version"). RequiresSingleCluster(). Run(func(t framework.TestContext) { cfg := i.Settings() istioCtl := istioctl.NewOrFail(t, t, istioctl.Config{Cluster: t.Environment().Clusters()[0]}) args := []string{"version", ...
explode_data.jsonl/57530
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 283 }
[ 2830, 3393, 5637, 1155, 353, 8840, 836, 8, 341, 1166, 5794, 624, 197, 197, 3564, 2271, 1155, 568, 21336, 445, 355, 2897, 13, 22764, 2897, 19484, 38609, 197, 197, 46961, 10888, 28678, 25829, 197, 85952, 18552, 1155, 12626, 8787, 1972, 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 TestPostSyncUserWithLDAPAPIEndpoint_WhenUserNotInLDAP(t *testing.T) { sqlstoremock := mockstore.SQLStoreMock{ExpectedUser: &models.User{Login: "ldap-daniel", Id: 34}} sc := postSyncUserWithLDAPContext(t, "/api/admin/ldap/sync/34", func(t *testing.T, sc *scenarioContext) { sc.authInfoService.ExpectedExternalUse...
explode_data.jsonl/34375
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 333 }
[ 2830, 3393, 4133, 12154, 1474, 2354, 93497, 7082, 27380, 62, 4498, 1474, 2623, 641, 93497, 1155, 353, 8840, 836, 8, 341, 30633, 4314, 16712, 1669, 7860, 4314, 25095, 6093, 11571, 90, 18896, 1474, 25, 609, 6507, 7344, 90, 6231, 25, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestChannelsService_Delete(t *testing.T) { setup() defer teardown() mux.HandleFunc("/channels/1", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "DELETE") }) _, err := client.Channels.Delete("1") if err != nil { t.Errorf("Channels.Delete returned unexpected error: %v", err) } }
explode_data.jsonl/49785
{ "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, 35925, 1860, 57418, 1155, 353, 8840, 836, 8, 341, 84571, 741, 16867, 49304, 2822, 2109, 2200, 63623, 4283, 32425, 14, 16, 497, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 18185, 3523, 1155, 11, 435, 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 TestGetStringSliceValue(t *testing.T) { client := createMockApolloConfig(120) defaultValue := []string{"100"} //test default v := client.GetStringSliceValue("joe", defaultValue) Assert(t, defaultValue, Equal(v)) //normal value v = client.GetStringSliceValue("stringSlice", defaultValue) Assert(t, []stri...
explode_data.jsonl/17964
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 156 }
[ 2830, 3393, 48905, 33236, 1130, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 1855, 11571, 95909, 2648, 7, 16, 17, 15, 340, 11940, 1130, 1669, 3056, 917, 4913, 16, 15, 15, 63159, 197, 322, 1944, 1638, 198, 5195, 1669, 2943, 21166, 33236,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSnapshotScheduleServiceOp_Update(t *testing.T) { client, mux, teardown := setup() defer teardown() mux.HandleFunc(fmt.Sprintf("/groups/%s/backupConfigs/%s/snapshotSchedule", groupID, clusterID), func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, http.MethodPatch) _, _ = fmt.Fprint(w, `{ ...
explode_data.jsonl/76878
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 770 }
[ 2830, 3393, 15009, 32210, 1860, 7125, 47393, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 11, 49304, 1669, 6505, 741, 16867, 49304, 2822, 2109, 2200, 63623, 28197, 17305, 4283, 16753, 12627, 82, 14, 31371, 84905, 12627, 82, 2687, 9601,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFindStructuralBitsWhitespacePadding(t *testing.T) { if !SupportedCPU() { t.SkipNow() } t.Run("avx2", func(t *testing.T) { testFindStructuralBitsWhitespacePadding(t, find_structural_bits_in_slice) }) if cpuid.CPU.Has(cpuid.AVX512F) { t.Run("avx512", func(t *testing.T) { testFindStructuralBitsWhite...
explode_data.jsonl/18736
{ "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, 9885, 9422, 4176, 19920, 73804, 21616, 1155, 353, 8840, 836, 8, 341, 743, 753, 34636, 31615, 368, 341, 197, 3244, 57776, 7039, 741, 197, 532, 3244, 16708, 445, 402, 87, 17, 497, 2915, 1155, 353, 8840, 836, 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...
1
func TestGetServerQueryBad(t *testing.T) { _, err := GetServerQuery("", -1) if err == nil { t.Log("Bad request was made and no error was created") t.Fail() } }
explode_data.jsonl/24172
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 64 }
[ 2830, 3393, 1949, 5475, 2859, 17082, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 2126, 5475, 2859, 19814, 481, 16, 340, 743, 1848, 621, 2092, 341, 197, 3244, 5247, 445, 17082, 1681, 572, 1865, 323, 902, 1465, 572, 3465, 1138,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChannel(t *testing.T) { queue := make(chan string, 2) queue <- "one" queue <- "two" close(queue) // range函数遍历每个从通道接收到的数据,因为queue再发送完两个 // 数据之后就关闭了通道,所以这里我们range函数在接收到两个数据 // 之后就结束了。如果上面的queue通道不关闭,那么range函数就不 // 会结束,从而在接收第三个数据的时候就阻塞了。 for item := range queue { fmt.Println(item) } }
explode_data.jsonl/70367
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 293 }
[ 2830, 3393, 9629, 1155, 353, 8840, 836, 8, 341, 46993, 1669, 1281, 35190, 914, 11, 220, 17, 692, 46993, 9119, 330, 603, 698, 46993, 9119, 330, 19789, 1837, 27873, 34010, 692, 197, 322, 2088, 32804, 100094, 81202, 103991, 45181, 102257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRestoreInto(t *testing.T) { defer leaktest.AfterTest(t)() const numAccounts = 1 _, _, sqlDB, _, cleanupFn := BackupRestoreTestSetup(t, singleNode, numAccounts, InitNone) defer cleanupFn() sqlDB.Exec(t, `BACKUP DATABASE data TO $1`, LocalFoo) restoreStmt := fmt.Sprintf(`RESTORE data.bank FROM '%s' WITH...
explode_data.jsonl/57603
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 248 }
[ 2830, 3393, 56284, 26591, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 4777, 1629, 41369, 284, 220, 16, 198, 197, 6878, 8358, 5704, 3506, 11, 8358, 21290, 24911, 1669, 43438, 56284, 2271, 21821, 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 TestDelayMustBeGreaterOrEqualThanTimeout(t *testing.T) { _, err := Create(fake.ServiceClient(), CreateOpts{ Type: "HTTP", Delay: 1, Timeout: 10, MaxRetries: 5, URLPath: "/check", ExpectedCodes: "200-299", }).Extract() if err == nil { t.Fatalf("Expected error, got n...
explode_data.jsonl/60744
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 248 }
[ 2830, 3393, 20039, 31776, 3430, 41366, 2195, 2993, 26067, 7636, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 4230, 74138, 13860, 2959, 1507, 4230, 43451, 515, 197, 27725, 25, 688, 330, 9230, 756, 197, 10957, 6895, 25, 260, 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...
3
func TestMessageStream(t *testing.T) { _, tsv, db := newTestTxExecutor(t) defer db.Close() defer tsv.StopService() target := querypb.Target{TabletType: topodatapb.TabletType_PRIMARY} err := tsv.MessageStream(ctx, &target, "nomsg", func(qr *sqltypes.Result) error { return nil }) wantErr := "table nomsg not fou...
explode_data.jsonl/80008
{ "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, 2052, 3027, 1155, 353, 8840, 836, 8, 341, 197, 6878, 259, 3492, 11, 2927, 1669, 501, 2271, 31584, 25255, 1155, 340, 16867, 2927, 10421, 741, 16867, 259, 3492, 30213, 1860, 741, 28861, 1669, 3239, 16650, 35016, 90, 2556, 83, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUndecidedEndiannessError_Error(t *testing.T) { tests := []struct { name string u UndecidedEndiannessError want string }{ {"Test Error", UndecidedEndiannessError{}, "undecided endianness"}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := tt.u.Error(); got != tt.wan...
explode_data.jsonl/32120
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 19957, 78641, 3727, 72, 82033, 1454, 28651, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 10676, 262, 16887, 78641, 3727, 72, 82033, 1454, 198, 197, 50780, 914, 198, 197, 59403, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestEdgeutilRectBounderMaxLatitudeSimple(t *testing.T) { cubeLat := math.Asin(1 / math.Sqrt(3)) // 35.26 degrees cubeLatRect := Rect{r1.IntervalFromPoint(-cubeLat).AddPoint(cubeLat), s1.IntervalFromEndpoints(-math.Pi/4, math.Pi/4)} tests := []struct { a, b Point want Rect }{ // Check cases where the m...
explode_data.jsonl/74792
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 377 }
[ 2830, 3393, 11656, 1314, 4415, 19568, 261, 5974, 38011, 16374, 1155, 353, 8840, 836, 8, 341, 1444, 3760, 23140, 1669, 6888, 875, 15940, 7, 16, 608, 6888, 70815, 7, 18, 593, 442, 220, 18, 20, 13, 17, 21, 12348, 198, 1444, 3760, 23140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExtensions(t *testing.T) { callErr, funcErr, assert, callBuffer, funcBuffer := testOpenAPITypeWriter(t, ` package foo // Blah is a test. // +k8s:openapi-gen=true // +k8s:openapi-gen=x-kubernetes-type-tag:type_test type Blah struct { // a member with a list type with two map keys // +listType=map // +listM...
explode_data.jsonl/3362
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 795 }
[ 2830, 3393, 31282, 1155, 353, 8840, 836, 8, 341, 67288, 7747, 11, 2915, 7747, 11, 2060, 11, 1618, 4095, 11, 2915, 4095, 1669, 1273, 5002, 7082, 929, 6492, 1155, 11, 22074, 1722, 15229, 271, 322, 2502, 1466, 374, 264, 1273, 624, 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...
3
func TestRecreate_deploymentPreHookSuccess(t *testing.T) { config := deploytest.OkDeploymentConfig(1) config.Spec.Strategy = recreateParams(30, deployapi.LifecycleHookFailurePolicyAbort, "", "") deployment, _ := deployutil.MakeDeployment(config, kapi.Codecs.LegacyCodec(registered.GroupOrDie(kapi.GroupName).GroupVers...
explode_data.jsonl/19090
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 482 }
[ 2830, 3393, 693, 3182, 2259, 52799, 4703, 31679, 7188, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 10517, 1944, 54282, 75286, 2648, 7, 16, 340, 25873, 36473, 27318, 10228, 284, 52775, 4870, 7, 18, 15, 11, 10517, 2068, 1214, 19517, 31679,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_GetNetworkConfig_Deep(t *testing.T) { t.Skip() // Were causing intermittent errors on travis TODO Find root cause test := test.NewTest( rsm.NewProtocol(), test.WithReplicas(1), test.WithPartitions(1), test.WithDebugLogs()) testify.NoError(t, test.Start()) defer test.Stop() atomixClient, err := ...
explode_data.jsonl/41400
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 13614, 12320, 2648, 24597, 747, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 368, 442, 38970, 14381, 74468, 5975, 389, 10137, 285, 5343, 7379, 3704, 5240, 271, 18185, 1669, 1273, 7121, 2271, 1006, 197, 7000, 3563, 7121, 20689, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetInt(t *testing.T) { config := &Config{Object{"a": String("aa"), "b": String("3"), "c": Int(2), "d": Array{Int(5)}}} t.Run("get int", func(t *testing.T) { assertEquals(t, config.GetInt("c"), 2) }) t.Run("return zero for a non-existing int", func(t *testing.T) { assertEquals(t, config.GetInt("e"), 0...
explode_data.jsonl/4122
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 295 }
[ 2830, 3393, 85097, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 609, 2648, 90, 1190, 4913, 64, 788, 923, 445, 5305, 3975, 330, 65, 788, 923, 445, 18, 3975, 330, 66, 788, 1333, 7, 17, 701, 330, 67, 788, 2910, 90, 1072, 7, 20, 52731...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestServiceGeneration(t *testing.T) { service := Service{} if got, want := service.GetGeneration(), int64(0); got != want { t.Errorf("Empty Service generation should be %d, was %d", want, got) } answer := int64(42) service.SetGeneration(answer) if got := service.GetGeneration(); got != answer { t.Errorf...
explode_data.jsonl/17362
{ "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, 1860, 37138, 1155, 353, 8840, 836, 8, 341, 52934, 1669, 5362, 16094, 743, 2684, 11, 1366, 1669, 2473, 2234, 37138, 1507, 526, 21, 19, 7, 15, 1215, 2684, 961, 1366, 341, 197, 3244, 13080, 445, 3522, 5362, 9471, 1265, 387, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSHA1Writer(t *testing.T) { ohash, err := NewSHA1Hash() if err != nil { t.Fatal(err) } hash := sha1.New() for i := 0; i < 100; i++ { if err := ohash.Reset(); err != nil { t.Fatal(err) } hash.Reset() buf := make([]byte, 10*1024-i) if _, err := io.ReadFull(rand.Reader, buf); err ...
explode_data.jsonl/23557
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 367 }
[ 2830, 3393, 33145, 16, 6492, 1155, 353, 8840, 836, 8, 972, 197, 2267, 988, 11, 1848, 1669, 1532, 33145, 16, 6370, 3568, 743, 1848, 961, 2092, 972, 197, 3244, 26133, 3964, 1218, 197, 1771, 50333, 1669, 15870, 16, 7121, 18005, 2023, 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...
9
func TestMongoDB_SetDefaults(t *testing.T) { mongodb := &MongoDB{ ObjectMeta: metav1.ObjectMeta{ Name: "demo-sample", Namespace: "demo", }, Spec: MongoDBSpec{ Version: "3.6-v2", Storage: &core.PersistentVolumeClaimSpec{ Resources: core.ResourceRequirements{ Requests: core.ResourceList{ ...
explode_data.jsonl/37755
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 54998, 3506, 14812, 16273, 1155, 353, 8840, 836, 8, 341, 2109, 21225, 1669, 609, 54998, 3506, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 21297, 25, 414, 330, 25762, 83879, 756, 298, 90823, 25, 330, 25762, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTransformDeploymentStatus(t *testing.T) { tests := []struct { name string ds *appsv1.DeploymentStatus want *duckv1.Status }{{ name: "initial conditions", ds: &appsv1.DeploymentStatus{}, want: &duckv1.Status{ Conditions: []apis.Condition{{ Type: DeploymentConditionProgressing, Sta...
explode_data.jsonl/33786
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1765 }
[ 2830, 3393, 8963, 75286, 2522, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 83336, 256, 353, 676, 3492, 16, 34848, 39130, 2522, 198, 197, 50780, 353, 72970, 85, 16, 10538, 198, 197, 15170, 515...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGenerateHelmWithValuesDirectoryTraversal(t *testing.T) { service := newService("../..") _, err := service.GenerateManifest(context.Background(), &apiclient.ManifestRequest{ Repo: &argoappv1.Repository{}, AppName: "test", ApplicationSource: &argoappv1.ApplicationSource{ Path: "./util/helm/testdata...
explode_data.jsonl/5676
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 31115, 39, 23162, 2354, 6227, 9310, 76276, 1155, 353, 8840, 836, 8, 341, 52934, 1669, 501, 1860, 17409, 496, 1138, 197, 6878, 1848, 1669, 2473, 57582, 38495, 5378, 19047, 1507, 609, 391, 292, 1451, 72272, 1900, 515, 197, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSlowHandler(t *testing.T) { req, err := http.NewRequest("GET", "/slow", nil) panicif(err) rr, server := httptest.NewRecorder(), http.HandlerFunc(slowHandler) server.ServeHTTP(rr, req) if status := rr.Code; status != http.StatusOK { t.Errorf("status code is expected to be 200") } if r := rr.Body.Stri...
explode_data.jsonl/64913
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 58289, 3050, 1155, 353, 8840, 836, 8, 341, 24395, 11, 1848, 1669, 1758, 75274, 445, 3806, 497, 3521, 35211, 497, 2092, 340, 30764, 333, 3964, 340, 197, 634, 11, 3538, 1669, 54320, 70334, 7121, 47023, 1507, 1758, 89164, 1141,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStoreGet(t *testing.T) { podA := &api.Pod{ ObjectMeta: api.ObjectMeta{Namespace: "test", Name: "foo"}, Spec: api.PodSpec{NodeName: "machine"}, } testContext := api.WithNamespace(api.NewContext(), "test") server, registry := NewTestGenericStoreRegistry(t) defer server.Terminate(t) _, err := re...
explode_data.jsonl/233
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 6093, 1949, 1155, 353, 8840, 836, 8, 341, 3223, 347, 32, 1669, 609, 2068, 88823, 515, 197, 23816, 12175, 25, 6330, 80222, 90, 22699, 25, 330, 1944, 497, 3988, 25, 330, 7975, 7115, 197, 7568, 992, 25, 981, 6330, 88823, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestServingRoot(t *testing.T) { tests := []testRun{{ Name: "rootlist", URL: "*", Status: http.StatusOK, Contains: matchRemoteDirListing, }} opt := newTestOpt() opt.Serve = true opt.Files = testFs testServer(t, tests, &opt) }
explode_data.jsonl/12965
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 112 }
[ 2830, 3393, 50, 19505, 8439, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1944, 6727, 90, 515, 197, 21297, 25, 257, 330, 2888, 1607, 756, 197, 79055, 25, 414, 15630, 756, 197, 58321, 25, 256, 1758, 52989, 345, 197, 197, 23805, 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 TestGetArgoApplicationControllerCommand(t *testing.T) { cmdTests := []struct { name string opts []argoCDOpt want []string }{ { "defaults", []argoCDOpt{}, []string{ "argocd-application-controller", "--operation-processors", "10", "--redis", "argocd-redis.argocd.svc.cluster.loc...
explode_data.jsonl/11936
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 884 }
[ 2830, 3393, 1949, 2735, 78, 4988, 2051, 4062, 1155, 353, 8840, 836, 8, 341, 25920, 18200, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 64734, 3056, 12088, 34, 5865, 417, 198, 197, 50780, 3056, 917, 198, 197, 59403, 197, 197, 515,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestReconciler_JobChange_ScaleUp_SecondEval(t *testing.T) { // Scale the job up to 15 job := mock.Job() job.TaskGroups[0].Update = noCanaryUpdate job.TaskGroups[0].Count = 30 // Create a deployment that is paused and has placed some canaries d := structs.NewDeployment(job) d.TaskGroups[job.TaskGroups[0].Na...
explode_data.jsonl/67276
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 679 }
[ 2830, 3393, 693, 40446, 5769, 10598, 674, 4072, 1098, 2246, 2324, 26920, 1297, 54469, 1155, 353, 8840, 836, 8, 341, 197, 322, 24613, 279, 2618, 705, 311, 220, 16, 20, 198, 68577, 1669, 7860, 45293, 741, 68577, 28258, 22173, 58, 15, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInputService1ProtocolTestBasicXMLSerializationCase1(t *testing.T) { sess := session.New() svc := NewInputService1ProtocolTest(sess, &aws.Config{Endpoint: aws.String("https://test")}) input := &InputService1TestShapeInputShape{ Description: aws.String("bar"), Name: aws.String("foo"), } req, _ :=...
explode_data.jsonl/46468
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 320 }
[ 2830, 3393, 2505, 1860, 16, 20689, 2271, 15944, 10609, 35865, 4207, 16, 1155, 353, 8840, 836, 8, 341, 1903, 433, 1669, 3797, 7121, 741, 1903, 7362, 1669, 1532, 2505, 1860, 16, 20689, 2271, 57223, 11, 609, 8635, 10753, 90, 27380, 25, 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 TestRpcStream_peekSkip(t *testing.T) { t.Run("test", func(t *testing.T) { assert := base.NewAssert(t) testCollection := Array{ Array{[]byte{0}, 0, byte(0)}, Array{[]byte{1}, 1, byte(1)}, Array{[]byte{2}, 1, byte(2)}, Array{[]byte{3}, 1, byte(3)}, Array{[]byte{4}, 1, byte(4)}, Array{[]byte{5...
explode_data.jsonl/21197
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 944 }
[ 2830, 3393, 60248, 3027, 62, 29107, 35134, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1944, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 6948, 1669, 2331, 7121, 8534, 1155, 692, 197, 18185, 6482, 1669, 2910, 515, 298, 58743, 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 TestCPUStatReader_Read(t *testing.T) { timeFactor := 10000000 examples := []struct { Name string ClockTck int Fixture string Expect CPUStats }{ { Name: "with simple cpustat file", ClockTck: 100, Fixture: "cpustats_1.txt", Expect: CPUStats{ CPUs: map[string]SingleCPUStat{ ...
explode_data.jsonl/27156
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1109 }
[ 2830, 3393, 31615, 15878, 5062, 38381, 1155, 353, 8840, 836, 8, 341, 21957, 20661, 1669, 220, 16, 15, 15, 15, 15, 15, 15, 15, 198, 8122, 4023, 1669, 3056, 1235, 341, 197, 21297, 257, 914, 198, 197, 6258, 1023, 51, 377, 526, 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...
1
func TestValidateDiskNumber(t *testing.T) { diskNum := "0" if err := ValidateDiskNumber(diskNum); err != nil { t.Errorf("TestValidateDiskNumber test failed, disk number : %s", diskNum) } diskNum = "99" if err := ValidateDiskNumber(diskNum); err != nil { t.Errorf("TestValidateDiskNumber test failed, disk numbe...
explode_data.jsonl/48682
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 17926, 47583, 2833, 1155, 353, 8840, 836, 8, 341, 2698, 3187, 4651, 1669, 330, 15, 698, 743, 1848, 1669, 23282, 47583, 2833, 1500, 3187, 4651, 1215, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 2271, 17926, 47583, 2833, 1273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTargetOutbound(t *testing.T) { targetOutbound := uint32(10) connected := make(chan *ConnReq) cmgr, err := New(&Config{ TargetOutbound: targetOutbound, Dial: mockDialer, GetNewAddress: func() (net.Addr, error) { return &net.TCPAddr{ IP: net.ParseIP("127.0.0.1"), Port: 18555, }...
explode_data.jsonl/53949
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 312 }
[ 2830, 3393, 6397, 2662, 10891, 1155, 353, 8840, 836, 8, 341, 28861, 2662, 10891, 1669, 2622, 18, 17, 7, 16, 15, 340, 197, 15288, 1669, 1281, 35190, 353, 9701, 27234, 340, 1444, 48292, 11, 1848, 1669, 1532, 2099, 2648, 515, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInvalidJobSpec(t *testing.T) { cron := New() _, err := cron.AddJob("this will not parse", nil) if err == nil { t.Errorf("expected an error with invalid spec, got nil") } }
explode_data.jsonl/8308
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 7928, 12245, 8327, 1155, 353, 8840, 836, 8, 341, 1444, 2248, 1669, 1532, 741, 197, 6878, 1848, 1669, 46582, 1904, 12245, 445, 574, 686, 537, 4715, 497, 2092, 340, 743, 1848, 621, 2092, 341, 197, 3244, 13080, 445, 7325, 458...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenRestMethod(t *testing.T) { pkg := "google.cloud.foo.v1" sizeOpts := &descriptor.FieldOptions{} proto.SetExtension(sizeOpts, annotations.E_FieldBehavior, []annotations.FieldBehavior{annotations.FieldBehavior_REQUIRED}) sizeField := &descriptor.FieldDescriptorProto{ Name: proto.String("size"), Typ...
explode_data.jsonl/32020
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1417 }
[ 2830, 3393, 9967, 12416, 3523, 1155, 353, 8840, 836, 8, 341, 3223, 7351, 1669, 330, 17485, 16935, 58432, 3133, 16, 1837, 13832, 43451, 1669, 609, 53132, 17087, 3798, 16094, 197, 15110, 4202, 12049, 6856, 43451, 11, 32207, 5142, 46272, 227...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDontDoAnythingIfBeingDeletedRace(t *testing.T) { for _, strategy := range updateStrategies() { // Bare client says it IS deleted. ds := newDaemonSet("foo") ds.Spec.UpdateStrategy = *strategy now := metav1.Now() ds.DeletionTimestamp = &now manager, podControl, _, err := newTestController(ds) if e...
explode_data.jsonl/50317
{ "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, 35, 544, 5404, 77303, 2679, 33142, 26039, 55991, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 8282, 1669, 2088, 2647, 2580, 69388, 368, 341, 197, 197, 322, 60792, 2943, 2727, 432, 3424, 11062, 624, 197, 83336, 1669, 501, 89177,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestForEach(t *testing.T) { ours, theirs := setup() if err := iterator.ForEach( ours.IntoIterator(), func(item *maps.Pair[string, int]) { if item.Val != theirs[item.Key] { t.Errorf(EXPECTED, "val", theirs[item.Key], item.Val) } }, ); err != nil { t.Errorf(ERROR, err.Error()) } }
explode_data.jsonl/50298
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 91392, 1155, 353, 8840, 836, 8, 341, 197, 2471, 11, 47201, 1669, 6505, 2822, 743, 1848, 1669, 15091, 67743, 1006, 197, 197, 2471, 7371, 78, 11951, 3148, 197, 29244, 5393, 353, 17640, 1069, 1310, 14032, 11, 526, 2467, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func Test_serializeHistogram(t *testing.T) { hist := pmetric.NewHistogramDataPoint() hist.SetMExplicitBounds([]float64{0, 2, 4, 8}) hist.SetMBucketCounts([]uint64{0, 1, 0, 1, 0}) hist.SetCount(2) hist.SetSum(9.5) hist.SetTimestamp(pcommon.Timestamp(time.Date(2021, 07, 16, 12, 30, 0, 0, time.UTC).UnixNano())) hi...
explode_data.jsonl/44889
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 706 }
[ 2830, 3393, 88686, 77210, 1155, 353, 8840, 836, 8, 341, 9598, 380, 1669, 281, 15903, 7121, 77210, 1043, 2609, 741, 9598, 380, 4202, 44, 98923, 11394, 10556, 3649, 21, 19, 90, 15, 11, 220, 17, 11, 220, 19, 11, 220, 23, 3518, 9598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestValidateIamRoleDescription(t *testing.T) { validNames := []string{ "This 1s a D3scr!pti0n with weird content: @ #^ù£ê®æ ø]ŒîÏî~ÈÙ£÷=,ë", strings.Repeat("W", 1000), } for _, v := range validNames { _, errors := validateIamRoleDescription(v, "description") if len(errors) != 0 { t.Fatalf("%q should ...
explode_data.jsonl/78627
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 261 }
[ 2830, 3393, 17926, 40, 309, 9030, 5009, 1155, 353, 8840, 836, 8, 341, 56322, 7980, 1669, 3056, 917, 515, 197, 197, 21520, 220, 16, 82, 264, 422, 18, 25065, 0, 417, 72, 15, 77, 448, 16283, 2213, 25, 569, 671, 61, 14926, 21651, 5498...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewClientWithFileConfig(t *testing.T) { var haltIf = func(err error) { if err != nil { t.Fatal(err) } } tmpfile, err := ioutil.TempFile("", "") if err != nil { t.Fatal(err) } defer os.Remove(tmpfile.Name()) err = ioutil.WriteFile(tmpfile.Name(), []byte("test_mode = true"), 0644) if err != ni...
explode_data.jsonl/47756
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 438 }
[ 2830, 3393, 3564, 2959, 2354, 1703, 2648, 1155, 353, 8840, 836, 8, 341, 2405, 26269, 2679, 284, 2915, 3964, 1465, 8, 341, 197, 743, 1848, 961, 2092, 341, 298, 3244, 26133, 3964, 340, 197, 197, 532, 197, 630, 20082, 1192, 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...
2
func TestNetTop(t *testing.T) { logrus.SetLevel(logrus.DebugLevel) ctx, cancel := context.WithCancel(context.Background()) defer cancel() ps := NewNetStats(ctx, 120*time.Second, 2*time.Second, 1) time.Sleep(5 * time.Second) td := ps.TopByteRate(true) assert.Greater(t, len(td), 0) v, ok := td[0].BytesRecv.Rate(...
explode_data.jsonl/1477
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 392 }
[ 2830, 3393, 6954, 5366, 1155, 353, 8840, 836, 8, 341, 90822, 4202, 4449, 12531, 20341, 20345, 4449, 340, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 741, 35009, 1669, 1532, 6954, 16635, 7502, 11, 220, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLoaderNewSubDir(t *testing.T) { l1, err := makeLoader().New("foo/project") if err != nil { t.Fatalf("unexpected err: %v\n", err) } l2, err := l1.New("subdir1") if err != nil { t.Fatalf("unexpected err: %v\n", err) } if "/foo/project/subdir1" != l2.Root() { t.Fatalf("incorrect root: %s\n", l2.Root...
explode_data.jsonl/65701
{ "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, 9181, 3564, 3136, 6184, 1155, 353, 8840, 836, 8, 341, 8810, 16, 11, 1848, 1669, 1281, 9181, 1005, 3564, 445, 7975, 40118, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 53859, 1848, 25, 1018, 85, 1699, 497, 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...
6
func TestAddPrefixList(t *testing.T) { t.Parallel() tests := []struct { giveList []string givePrefix string want []string }{ { giveList: []string{"a"}, givePrefix: "b", want: []string{"b/a"}, }, { giveList: []string{"/c/d/e/"}, givePrefix: "/f/", want: []string{...
explode_data.jsonl/81330
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 390 }
[ 2830, 3393, 2212, 14335, 852, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 3174, 533, 852, 256, 3056, 917, 198, 197, 3174, 533, 14335, 914, 198, 197, 50780, 981, 3056, 917, 198, 197, 59403,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTx_SignAuto(t *testing.T) { t.Parallel() t.Run("valid tx (basic)", func(t *testing.T) { tx := bt.NewTx() assert.NotNil(t, tx) err := tx.From( "07912972e42095fe58daaf09161c5a5da57be47c2054dc2aaa52b30fefa1940b", 0, "76a914af2590a45ae401651fdbdf59a76ad43d1862534088ac", 4000000) assert.NoEr...
explode_data.jsonl/28749
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 919 }
[ 2830, 3393, 31584, 1098, 622, 13253, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 3244, 16708, 445, 1891, 9854, 320, 22342, 11583, 2915, 1155, 353, 8840, 836, 8, 341, 197, 46237, 1669, 19592, 7121, 31584, 741, 197, 6948, 93882...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNoCompressionOverlap(t *testing.T) { clientHello := &clientHelloMsg{ vers: VersionTLS12, random: make([]byte, 32), cipherSuites: []uint16{TLS_RSA_WITH_RC4_128_SHA}, compressionMethods: []uint8{0xff}, } testClientHelloFailure(t, testConfig, clientHello, "client does no...
explode_data.jsonl/36310
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 150 }
[ 2830, 3393, 2753, 81411, 82171, 1155, 353, 8840, 836, 8, 341, 25291, 9707, 1669, 609, 2972, 9707, 6611, 515, 197, 197, 3004, 25, 2290, 6079, 45439, 16, 17, 345, 197, 83628, 25, 1797, 1281, 10556, 3782, 11, 220, 18, 17, 1326, 197, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestClient_GetTenants(t *testing.T) { client, _ := newTestClient() tenants, err := client.GetTenants() assert.NoError(t, err) assert.Equal(t, []string{"other", "sample"}, tenants) }
explode_data.jsonl/63857
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 2959, 13614, 32687, 1783, 1155, 353, 8840, 836, 8, 341, 25291, 11, 716, 1669, 501, 2271, 2959, 2822, 197, 1960, 1783, 11, 1848, 1669, 2943, 2234, 32687, 1783, 741, 6948, 35699, 1155, 11, 1848, 340, 6948, 12808, 1155, 11, 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
func TestRemoveVolume(t *testing.T) { assert := asrt.New(t) client := GetDockerClient() testVolume := "junker999" spareVolume := "someVolumeThatCanNeverExit" _ = RemoveVolume(testVolume) pwd, err := os.Getwd() assert.NoError(err) source := pwd if runtime.GOOS == "darwin" && fileutil.IsDirectory(filepath.Joi...
explode_data.jsonl/41384
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 473 }
[ 2830, 3393, 13021, 18902, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 438, 3342, 7121, 1155, 340, 25291, 1669, 2126, 35, 13659, 2959, 2822, 18185, 18902, 1669, 330, 73, 79929, 24, 24, 24, 698, 1903, 3380, 18902, 1669, 330, 14689, 18902, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHashHex(t *testing.T) { kp0 := newKeypair0() sourceAccount := NewSimpleAccount(kp0.Address(), int64(9605939170639897)) createAccount := CreateAccount{ Destination: "GCCOBXW2XQNUSL467IEILE6MMCNRR66SSVL4YQADUNYYNUVREF3FIV2Z", Amount: "10", } tx, err := NewTransaction( TransactionParams{ Sour...
explode_data.jsonl/20691
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 798 }
[ 2830, 3393, 6370, 20335, 1155, 353, 8840, 836, 8, 341, 16463, 79, 15, 1669, 501, 6608, 1082, 1310, 15, 741, 47418, 7365, 1669, 1532, 16374, 7365, 5969, 79, 15, 26979, 1507, 526, 21, 19, 7, 24, 21, 15, 20, 24, 18, 24, 16, 22, 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 TestBackupRestorePermissions(t *testing.T) { defer leaktest.AfterTest(t)() const numAccounts = 1 _, tc, sqlDB, _, cleanupFn := BackupRestoreTestSetup(t, singleNode, numAccounts, InitNone) defer cleanupFn() sqlDB.Exec(t, `CREATE USER testuser`) pgURL, cleanupFunc := sqlutils.PGUrl( t, tc.Server(0).Serving...
explode_data.jsonl/57604
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1013 }
[ 2830, 3393, 56245, 56284, 23851, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 4777, 1629, 41369, 284, 220, 16, 198, 197, 6878, 17130, 11, 5704, 3506, 11, 8358, 21290, 24911, 1669, 43438, 56284, 2271, 218...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDecodeLog(t *testing.T) { data, _ := common.FromHex("0x0a2b10c0c599b78c1d2222314c6d7952616a4e44686f735042746259586d694c466b5174623833673948795565122b1080ab8db78c1d2222314c6d7952616a4e44686f735042746259586d694c466b5174623833673948795565") l, err := DecodeLog([]byte("xxx"), 2, data) assert.Nil(t, err) j, err...
explode_data.jsonl/58326
{ "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, 32564, 2201, 1155, 353, 8840, 836, 8, 341, 8924, 11, 716, 1669, 4185, 11439, 20335, 445, 15, 87, 15, 64, 17, 65, 16, 15, 66, 15, 66, 20, 24, 24, 65, 22, 23, 66, 16, 67, 17, 17, 17, 17, 18, 16, 19, 66, 21, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLiveDatabase(t *testing.T) { // Create a new database to store the accepted stake node data into. dbName := "ffldb_ticketdb_test" dbPath := filepath.Join(testDbRoot, dbName) _ = os.RemoveAll(dbPath) testDb, err := database.Create(testDbType, dbPath, chaincfg.SimNetParams.Net) if err != nil { t.Fatalf("...
explode_data.jsonl/18325
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 932 }
[ 2830, 3393, 20324, 5988, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 264, 501, 4625, 311, 3553, 279, 11666, 18279, 2436, 821, 1119, 624, 20939, 675, 1669, 330, 542, 56925, 45718, 1999, 4452, 698, 20939, 1820, 1669, 26054, 22363, 8623,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSimple(t *testing.T) { testConvert(t, ` file_to_generate: "foo.proto" proto_file < name: "foo.proto" package: "example_package.nested" message_type < name: "FooProto" field < name: "i1" number: 1 type: TYPE_INT32 label: LABEL_OPTIONAL > options < [gen_bq_schema.bigquery_opts] ...
explode_data.jsonl/41111
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 16374, 1155, 353, 8840, 836, 8, 341, 18185, 12012, 1155, 11, 22074, 298, 17661, 2346, 48851, 25, 330, 7975, 57322, 698, 298, 197, 15110, 2458, 77565, 571, 11609, 25, 330, 7975, 57322, 698, 571, 197, 1722, 25, 330, 8687, 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...
1
func TestValidateServiceUpdate(t *testing.T) { testCases := []struct { name string tweakSvc func(oldSvc, newSvc *api.Service) // given basic valid services, each test case can customize them numErrs int }{ { name: "no change", tweakSvc: func(oldSvc, newSvc *api.Service) { // do nothing }, ...
explode_data.jsonl/62806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1156 }
[ 2830, 3393, 17926, 1860, 4289, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 3244, 13150, 92766, 2915, 21972, 92766, 11, 501, 92766, 353, 2068, 13860, 8, 442, 2661, 6770, 2697, 3516, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStructTemplate(t *testing.T) { tmpl, err := template.New("struct_template").Funcs(EsimFuncMap()). Parse(StructTemplate) assert.Nil(t, err) var buf bytes.Buffer structInfo := StructInfo{} structInfo.StructName = "Test" filed1 := pkg.Field{} filed1.Name = "a" filed1.Type = "int" filed1.Field = "a in...
explode_data.jsonl/52949
{ "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, 9422, 7275, 1155, 353, 8840, 836, 8, 341, 3244, 54010, 11, 1848, 1669, 3811, 7121, 445, 1235, 8693, 1827, 9626, 82, 10722, 14781, 9626, 2227, 368, 4292, 197, 10025, 2583, 7, 9422, 7275, 340, 6948, 59678, 1155, 11, 1848, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestConnectionPoolWithPgx(t *testing.T) { db, cleanup := testCreateDB(t, 10) defer cleanup() driver := db.Driver().(*stdlib.Driver) var n int for i := 0; i <= 5; i++ { if err := driver.Pool.QueryRow(checkPidSQL).Scan(&n); err != nil { t.Fatal(err) } t.Logf("pid: %d", n) } }
explode_data.jsonl/74279
{ "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, 4526, 10551, 2354, 47, 59957, 1155, 353, 8840, 836, 8, 341, 20939, 11, 21290, 1669, 1273, 4021, 3506, 1155, 11, 220, 16, 15, 340, 16867, 21290, 2822, 33652, 1669, 2927, 41768, 1005, 4071, 13149, 41768, 340, 2405, 308, 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...
3
func TestAggregateContext_AggregateId(t *testing.T) { id := NewIntAggregateId(12) ctx := NewAggregateContext(id, 0) if ctx.AggregateId().String() != "12" { t.Errorf("expected aggregateId %s but got %s", id.String(), ctx.AggregateId().String()) } }
explode_data.jsonl/1201
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 64580, 1972, 1566, 70, 14240, 764, 1155, 353, 8840, 836, 8, 341, 15710, 1669, 1532, 1072, 64580, 764, 7, 16, 17, 340, 20985, 1669, 1532, 64580, 1972, 3724, 11, 220, 15, 692, 743, 5635, 49850, 14240, 764, 1005, 703, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTimeoutPendingRead(t *testing.T) { l, err := ListenPipe(testPipeName, nil) if err != nil { t.Fatal(err) } defer l.Close() serverDone := make(chan struct{}) isReading := make(chan struct{}) go func() { s, err := l.Accept() if err != nil { t.Fatal(err) } s.Close() isReading <- struct{}{} ...
explode_data.jsonl/11431
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 370 }
[ 2830, 3393, 7636, 32027, 4418, 1155, 353, 8840, 836, 8, 341, 8810, 11, 1848, 1669, 32149, 34077, 8623, 34077, 675, 11, 2092, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 326, 10421, 2822, 41057, 17453, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDroneQueenImpl_ReportDrone(t *testing.T) { t.Run("unknown UUID", func(t *testing.T) { t.Parallel() ctx := gaetesting.TestingContextWithAppID("go-test") datastore.GetTestable(ctx).Consistent(true) d := DroneQueenImpl{} res, err := d.ReportDrone(ctx, &api.ReportDroneRequest{ DroneUuid: "unicorn", ...
explode_data.jsonl/36002
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 534 }
[ 2830, 3393, 8847, 603, 52006, 9673, 76428, 8847, 603, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 16088, 23698, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 41288, 7957, 741, 197, 20985, 1669, 13510, 57824, 287, 8787, 287, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSlashingGetParams(t *testing.T) { cleanup, _, _, port := InitializeTestLCD(t, 1, []sdk.AccAddress{}, true) defer cleanup() res, body := Request(t, port, "GET", "/slashing/parameters", nil) require.Equal(t, http.StatusOK, res.StatusCode, body) var params slashing.Params err := cdc.UnmarshalJSON([]byte(b...
explode_data.jsonl/25416
{ "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, 7442, 19049, 1949, 4870, 1155, 353, 8840, 836, 8, 341, 1444, 60639, 11, 8358, 8358, 2635, 1669, 9008, 2271, 64003, 1155, 11, 220, 16, 11, 3056, 51295, 77538, 4286, 22655, 830, 340, 16867, 21290, 2822, 10202, 11, 2487, 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 TestNewRateLimiterMemoryStore(t *testing.T) { testCases := []struct { rate rate.Limit burst int expiresIn time.Duration expectedExpiresIn time.Duration }{ {1, 3, 5 * time.Second, 5 * time.Second}, {2, 4, 0, 3 * time.Minute}, {1, 5, 10 * time.Minute, 10 * time.Minute...
explode_data.jsonl/33971
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 290 }
[ 2830, 3393, 3564, 11564, 43, 17700, 10642, 6093, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 7000, 349, 1060, 4379, 1214, 2353, 198, 197, 2233, 32612, 1797, 526, 198, 197, 8122, 18968, 641, 260, 882, 33795, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdate(t *testing.T) { paramsSource, err := ioutil.ReadFile("testdata/params.libsonnet") require.NoError(t, err) componentName := "guestbook-ui" params := map[string]interface{}{ "containerPort": 80, "image": "gcr.io/heptio-images/ks-guestbook-demo:0.2", "name": "guestbook-ui", "...
explode_data.jsonl/82634
{ "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, 4289, 1155, 353, 8840, 836, 8, 341, 25856, 3608, 11, 1848, 1669, 43144, 78976, 445, 92425, 14, 3519, 14947, 930, 4711, 1138, 17957, 35699, 1155, 11, 1848, 692, 52228, 675, 1669, 330, 30177, 2190, 8723, 1837, 25856, 1669, 241...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_write_object(t *testing.T) { should := require.New(t) buf := &bytes.Buffer{} stream := jsoniter.NewStream(jsoniter.Config{IndentionStep: 2}.Froze(), buf, 4096) stream.WriteObjectStart() stream.WriteObjectField("hello") stream.WriteInt(1) stream.WriteMore() stream.WriteObjectField("world") stream.Writ...
explode_data.jsonl/60990
{ "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, 9165, 5314, 1155, 353, 8840, 836, 8, 341, 197, 5445, 1669, 1373, 7121, 1155, 340, 26398, 1669, 609, 9651, 22622, 16094, 44440, 1669, 2951, 2015, 7121, 3027, 9304, 2015, 10753, 90, 1425, 2939, 8304, 25, 220, 17, 7810, 37, 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 TestJQuerySourceMap(t *testing.T) { smap, err := sourcemap.Parse(jqSourceMapURL, jqSourceMapBytes) if err != nil { t.Fatal(err) } tests := []*sourceMapTest{ {1, 1, "", "", 0, 0}, {4, 0, "", "", 0, 0}, {4, 1, "http://code.jquery.com/jquery-2.0.3.js", "", 14, 0}, {4, 10, "http://code.jquery.com/jquery...
explode_data.jsonl/43001
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 332 }
[ 2830, 3393, 41, 2859, 3608, 2227, 1155, 353, 8840, 836, 8, 341, 1903, 2186, 11, 1848, 1669, 20282, 66, 42040, 8937, 96887, 3608, 2227, 3144, 11, 44648, 3608, 2227, 7078, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestAdapterRequestErrorMetrics(t *testing.T) { adapterName := "anyName" performTest := func(m *Metrics, adapterErrors map[pbsmetrics.AdapterError]struct{}) { labels := pbsmetrics.AdapterLabels{ Adapter: openrtb_ext.BidderName(adapterName), AdapterErrors: adapterErrors, CookieFlag: pbsmetrics....
explode_data.jsonl/13951
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 927 }
[ 2830, 3393, 5940, 1900, 1454, 27328, 1155, 353, 8840, 836, 8, 341, 197, 19731, 675, 1669, 330, 3767, 675, 698, 197, 28488, 2271, 1669, 2915, 1255, 353, 27328, 11, 12956, 13877, 2415, 11407, 1279, 43262, 34190, 1454, 60, 1235, 28875, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDeleteUnusedImagesExemptSandboxImage(t *testing.T) { manager, fakeRuntime, _ := newRealImageGCManager(ImageGCPolicy{}) fakeRuntime.ImageList = []container.Image{ { ID: sandboxImage, Size: 1024, }, } spaceFreed, err := manager.DeleteUnusedImages() assert := assert.New(t) require.NoError(t, er...
explode_data.jsonl/48105
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 6435, 94033, 14228, 840, 20968, 50, 31536, 1906, 1155, 353, 8840, 836, 8, 341, 92272, 11, 12418, 15123, 11, 716, 1669, 501, 12768, 1906, 22863, 2043, 30122, 38, 7123, 8018, 37790, 1166, 726, 15123, 7528, 852, 284, 3056, 3586...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_validateMobile(t *testing.T) { type args struct { mobile string } tests := []struct { name string args args wantErr bool }{ // TODO: Add test cases. { name: "valid mobile", args: args{ mobile: "+919876543210", }, wantErr: false, }, { name: "invalid mobile (special ...
explode_data.jsonl/58088
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 482 }
[ 2830, 3393, 42681, 18370, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 2109, 3372, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 31215, 262, 2827, 198, 197, 50780, 7747, 1807, 198, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func Test_SetHttpClientTLSCodecError(t *testing.T) { //gtest.DebugRunProcess(t) if gtest.RunProcess(t, func() { l, p, _ := RandomListen() l0 := NewListener(l) l0.AddCodecFactory(func(ctx Context) Codec { c := NewTLSClientCodec() c.AddCertificate(testCert, testKEY) return c }) server := http.Server{...
explode_data.jsonl/34701
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 378 }
[ 2830, 3393, 14812, 26316, 45439, 36913, 1454, 1155, 353, 8840, 836, 8, 341, 197, 322, 82038, 20345, 6727, 7423, 1155, 340, 743, 342, 1944, 16708, 7423, 1155, 11, 2915, 368, 341, 197, 8810, 11, 281, 11, 716, 1669, 10612, 38714, 741, 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 TestMongoDB_ShardDSN(t *testing.T) { mongodb := &MongoDB{ ObjectMeta: metav1.ObjectMeta{ Name: "demo-name", Namespace: "demo", Labels: map[string]string{ "app": "kubedb", }, }, Spec: MongoDBSpec{ Version: "3.6-v2", ShardTopology: &MongoDBShardingTopology{ Shard: MongoDBShardNo...
explode_data.jsonl/37753
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 617 }
[ 2830, 3393, 54998, 3506, 1098, 18703, 5936, 45, 1155, 353, 8840, 836, 8, 341, 2109, 21225, 1669, 609, 54998, 3506, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 21297, 25, 414, 330, 25762, 11494, 756, 298, 90823, 25, 330, 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 TestAppendBitsToBuffer(t *testing.T) { bb := make(bitBuffer, 0) bb.appendBits(0, 0) assert.Equal(t, 0, len(bb)) bb.appendBits(1, 1) assert.Equal(t, 1, len(bb)) assert.Equal(t, []byte{1}, []byte(bb)) bb.appendBits(0, 1) assert.Equal(t, 2, len(bb)) assert.Equal(t, []byte{1, 0}, []byte(bb)) bb.appendBit...
explode_data.jsonl/54179
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 23877, 19920, 1249, 4095, 1155, 353, 8840, 836, 8, 341, 2233, 65, 1669, 1281, 54672, 4095, 11, 220, 15, 692, 2233, 65, 2057, 19920, 7, 15, 11, 220, 15, 340, 6948, 12808, 1155, 11, 220, 15, 11, 2422, 68502, 4390, 2233, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRegister(t *testing.T) { graph, _ := tempGraph(t) defer nukeGraph(graph) archive, err := fakeTar() if err != nil { t.Fatal(err) } image := &image.Image{ ID: stringid.GenerateNonCryptoID(), Comment: "testing", Created: time.Now(), } err = graph.Register(v1Descriptor{image}, archive) if err...
explode_data.jsonl/64323
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 348 }
[ 2830, 3393, 8690, 1155, 353, 8840, 836, 8, 341, 66616, 11, 716, 1669, 2730, 11212, 1155, 340, 16867, 308, 10430, 11212, 24312, 340, 197, 16019, 11, 1848, 1669, 12418, 62733, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 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 Test002(t *testing.T) { b := &TB{} fmt.Println(reflect.TypeOf(t05).IsVariadic()) fmt.Println(reflect.TypeOf(b).ConvertibleTo(reflect.TypeOf(t05).In(1).Elem())) fmt.Println(reflect.TypeOf(t05)) t.Fail() }
explode_data.jsonl/26892
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 99 }
[ 2830, 3393, 15, 15, 17, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 609, 31160, 16094, 11009, 12419, 13321, 767, 73921, 1155, 15, 20, 568, 3872, 56135, 36214, 2398, 11009, 12419, 13321, 767, 73921, 1883, 568, 88816, 1249, 13321, 767, 7392...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSyncer(t *testing.T) { err := errors.New("sentinel") s := &Syncer{} s.SetError(err) assert.Equal(t, err, s.Sync(), "Expected Sync to fail with provided error.") assert.True(t, s.Called(), "Expected to record that Sync was called.") }
explode_data.jsonl/5035
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 91 }
[ 2830, 3393, 12154, 261, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 5975, 7121, 445, 24512, 29708, 1138, 1903, 1669, 609, 12154, 261, 16094, 1903, 4202, 1454, 3964, 340, 6948, 12808, 1155, 11, 1848, 11, 274, 92183, 1507, 330, 18896, 28937...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestClientController(t *testing.T) { seedBroker := NewMockBroker(t, 1) defer seedBroker.Close() controllerBroker := NewMockBroker(t, 2) defer controllerBroker.Close() seedBroker.SetHandlerByMap(map[string]MockResponse{ "MetadataRequest": NewMockMetadataResponse(t). SetController(controllerBroker.BrokerI...
explode_data.jsonl/54410
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 486 }
[ 2830, 3393, 2959, 2051, 1155, 353, 8840, 836, 8, 341, 197, 22602, 65545, 1669, 1532, 11571, 65545, 1155, 11, 220, 16, 340, 16867, 10320, 65545, 10421, 741, 61615, 65545, 1669, 1532, 11571, 65545, 1155, 11, 220, 17, 340, 16867, 6461, 655...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChaincodeEvent(t *testing.T) { t.Run("PreV1.2", func(t *testing.T) { t.Run("MisMatchedName", func(t *testing.T) { l, v, cleanup := setupLedgerAndValidatorWithPreV12Capabilities(t) defer cleanup() ccID := "mycc" putCCInfo(l, ccID, signedByAnyMember([]string{"SampleOrg"}), t) tx := getEnv(cc...
explode_data.jsonl/47801
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1185 }
[ 2830, 3393, 18837, 1851, 1556, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4703, 53, 16, 13, 17, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 16708, 445, 83159, 8331, 291, 675, 497, 2915, 1155, 353, 8840, 836, 8, 341, 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 TestJsonSamples(t *testing.T) { adapterstest.RunJSONBidderTest(t, "silvermobtest", NewSilverMobBidder("http://{{.Host}}.example.com/api/dsp/bid/{{.ZoneID}}")) }
explode_data.jsonl/12755
{ "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, 5014, 39571, 1155, 353, 8840, 836, 8, 341, 197, 19731, 267, 477, 16708, 5370, 65452, 1107, 2271, 1155, 11, 330, 81914, 33935, 1944, 497, 1532, 52343, 60061, 65452, 1107, 445, 1254, 1110, 2979, 13, 9296, 3417, 13, 8687, 905, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_packetConnReadFromRecvfromOK(t *testing.T) { const wantN = 4 data := []byte{0, 1, 2, 3} deadbeefHW := net.HardwareAddr{0xde, 0xad, 0xbe, 0xef, 0xde, 0xad} s := &recvfromSocket{ p: data, addr: &unix.SockaddrLinklayer{ Halen: 6, Addr: [8]byte{0xde, 0xad, 0xbe, 0xef, 0xde, 0xad, 0x00, 0x00}, },...
explode_data.jsonl/35209
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 548 }
[ 2830, 3393, 21078, 9701, 4418, 3830, 63483, 1499, 3925, 1155, 353, 8840, 836, 8, 341, 4777, 1366, 45, 284, 220, 19, 198, 8924, 1669, 3056, 3782, 90, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 532, 197, 33754, 1371, 823, 38252, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestPurgeByHeight(t *testing.T) { peerSelfSignedData := protoutil.SignedData{} cs := createcollectionStore(peerSelfSignedData).thatAcceptsAll() var purgeHappened bool assertPurgeHappened := func() { assert.True(t, purgeHappened) purgeHappened = false } committer := &mocks.Committer{} committer.On("...
explode_data.jsonl/68556
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 658 }
[ 2830, 3393, 47, 39823, 1359, 3640, 1155, 353, 8840, 836, 8, 341, 11120, 197, 16537, 12092, 49312, 1043, 1669, 1724, 30158, 808, 1542, 1043, 16094, 71899, 1669, 1855, 13421, 6093, 63372, 12092, 49312, 1043, 568, 9033, 16646, 82, 2403, 2822...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLDSIngressRouteInsideRootNamespaces(t *testing.T) { rh, cc, done := setup(t, func(reh *contour.ResourceEventHandler) { reh.IngressRouteRootNamespaces = []string{"roots"} }) defer done() // assert that there is only a static listener assertEqual(t, &v2.DiscoveryResponse{ VersionInfo: "0", Resources:...
explode_data.jsonl/22827
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 729 }
[ 2830, 3393, 43, 5936, 641, 2483, 4899, 24480, 8439, 7980, 27338, 1155, 353, 8840, 836, 8, 341, 7000, 71, 11, 12527, 11, 2814, 1669, 6505, 1155, 11, 2915, 5801, 71, 353, 772, 413, 20766, 17945, 8, 341, 197, 197, 11063, 5337, 2483, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPyModuleGetState(t *testing.T) { fmt.Println(assert.CallerInfo()[0]) assert.True(t, pymodule.GetState(nil) == nil) sys := pyimport.ImportModule("sys") defer py.DecRef(sys) sysRefCnt := py.RefCnt(sys) defer func() { assert.Equal(t, sysRefCnt, py.RefCnt(sys)) }() assert.NotNil(t, sys) assert.True(t, p...
explode_data.jsonl/33470
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 150 }
[ 2830, 3393, 13828, 3332, 1949, 1397, 1155, 353, 8840, 836, 8, 341, 11009, 12419, 75846, 727, 13956, 1731, 10116, 15, 9604, 6948, 32443, 1155, 11, 45760, 1756, 2234, 1397, 27907, 8, 621, 2092, 692, 41709, 1669, 4510, 474, 67275, 3332, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIncludeIfNotExists(t *testing.T) { set := NewHTMLSet("./testData/includeIfNotExists") RunJetTestWithSet(t, set, nil, nil, "existent", "", "Hi, i exist!!") RunJetTestWithSet(t, set, nil, nil, "notExistent", "", "") RunJetTestWithSet(t, set, nil, nil, "ifIncludeIfExits", "", "Hi, i exist!!\n Was included!...
explode_data.jsonl/22907
{ "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, 22283, 2679, 2623, 15575, 1155, 353, 8840, 836, 8, 341, 8196, 1669, 1532, 5835, 1649, 13988, 1944, 1043, 26393, 2679, 2623, 15575, 1138, 85952, 35641, 2271, 2354, 1649, 1155, 11, 738, 11, 2092, 11, 2092, 11, 330, 64085, 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...
3
func TestChunkedDecode(t *testing.T) { input := make([]uint32, 275, 275+32) for idx := range input { input[idx] = rand.Uint32() } encoded := turbopfor.P4nenc256v32(input) got := make([]uint32, len(input)) n := 0 for ; n+256 < len(input); n += 256 { encoded = encoded[turbopfor.P4dec256v32(encoded, got[n:n+25...
explode_data.jsonl/42862
{ "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, 28304, 291, 32564, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 1281, 10556, 2496, 18, 17, 11, 220, 17, 22, 20, 11, 220, 17, 22, 20, 10, 18, 17, 340, 2023, 7187, 1669, 2088, 1946, 341, 197, 22427, 11597, 60, 284, 10382, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCurrentContextManagementConfig(t *testing.T) { conf, cleanup := testutil.InitConfig(t) defer cleanup(t) managementConfig, err := conf.CurrentContextManagementConfig() require.Error(t, err) assert.Nil(t, managementConfig) conf.CurrentContext = currentContextName conf.Contexts[currentContextName].Manage...
explode_data.jsonl/57897
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 161 }
[ 2830, 3393, 5405, 1972, 22237, 2648, 1155, 353, 8840, 836, 8, 341, 67850, 11, 21290, 1669, 1273, 1314, 26849, 2648, 1155, 340, 16867, 21290, 1155, 692, 197, 42473, 2648, 11, 1848, 1669, 2335, 11517, 1972, 22237, 2648, 741, 17957, 6141, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestJobManagerRecover(t *testing.T) { t.Parallel() ctx, cancel := context.WithCancel(context.Background()) defer cancel() mockMaster := lib.NewMockMasterImpl("", "job-manager-recover-test") // prepare mockvk with two job masters meta := []*libModel.MasterMetaKVData{ { ID: "master-1", Tp: lib.FakeJo...
explode_data.jsonl/29359
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 478 }
[ 2830, 3393, 12245, 2043, 693, 3688, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 2822, 77333, 18041, 1669, 3051, 7121, 11571, 18041, 9673, 19814, 330, 879...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTSMWriter_Write_Empty(t *testing.T) { var b bytes.Buffer w, err := tsm1.NewTSMWriter(&b) if err != nil { t.Fatalf("unexpected error created writer: %v", err) } if err := w.Close(); err != nil { t.Fatalf("unexpeted error closing: %v", err) } if got, exp := len(b.Bytes()), 5; got < exp { t.Fatalf(...
explode_data.jsonl/82453
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 51, 9501, 6492, 31825, 76060, 1595, 1155, 353, 8840, 836, 8, 341, 2405, 293, 5820, 22622, 198, 6692, 11, 1848, 1669, 259, 3563, 16, 7121, 51, 9501, 6492, 2099, 65, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 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 TestListAuthChecker_Allowed(t *testing.T) { cases := []struct { id string testid string expect bool mode AuthListMode }{ {mode: AuthDenylist, testid: "foo", expect: true}, {mode: AuthDenylist, id: "foo", testid: "foo", expect: false}, {mode: AuthDenylist, id: "foo", testid: "bar", expect: tru...
explode_data.jsonl/38960
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 384 }
[ 2830, 3393, 852, 5087, 35188, 53629, 12817, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 15710, 257, 914, 198, 197, 18185, 307, 914, 198, 197, 24952, 1807, 198, 197, 60247, 256, 7366, 852, 3636, 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...
3
func TestPrivateSharedSubnet(t *testing.T) { runTestAWS(t, "private-shared-subnet.example.com", "private-shared-subnet", "v1alpha2", true, 1, true, false, nil) }
explode_data.jsonl/17500
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 62 }
[ 2830, 3393, 16787, 16997, 3136, 4711, 1155, 353, 8840, 836, 8, 341, 56742, 2271, 36136, 1155, 11, 330, 1996, 94908, 17967, 4711, 7724, 905, 497, 330, 1996, 94908, 17967, 4711, 497, 330, 85, 16, 7141, 17, 497, 830, 11, 220, 16, 11, 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
func TestSoapProperties(t *testing.T) { source := corev1.EnvVarSource{ ConfigMapKeyRef: &corev1.ConfigMapKeySelector{ Key: "foo", LocalObjectReference: corev1.LocalObjectReference{ Name: "map-name", }, }, } datasources := []v1alpha1.DataSourceObject{ { Name: "soapCountry", Type: "soap", ...
explode_data.jsonl/46392
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 939 }
[ 2830, 3393, 95531, 7903, 1155, 353, 8840, 836, 8, 341, 47418, 1669, 6200, 85, 16, 81214, 3962, 3608, 515, 197, 66156, 2227, 1592, 3945, 25, 609, 98645, 16, 10753, 2227, 1592, 5877, 515, 298, 55242, 25, 330, 7975, 756, 298, 82404, 1190...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDecodeVLANPacket(t *testing.T) { p := gopacket.NewPacket( []byte{ 0x00, 0x10, 0xdb, 0xff, 0x10, 0x00, 0x00, 0x15, 0x2c, 0x9d, 0xcc, 0x00, 0x81, 0x00, 0x01, 0xf7, 0x08, 0x00, 0x45, 0x00, 0x00, 0x28, 0x29, 0x8d, 0x40, 0x00, 0x7d, 0x06, 0x83, 0xa0, 0xac, 0x1b, 0xca, 0x8e, 0x45, 0x16, 0x94, 0xe2, 0x...
explode_data.jsonl/42252
{ "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, 32564, 53, 23408, 16679, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 342, 453, 5709, 7121, 16679, 1006, 197, 197, 1294, 3782, 515, 298, 197, 15, 87, 15, 15, 11, 220, 15, 87, 16, 15, 11, 220, 15, 54555, 11, 220, 15, 902...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClusterDoubleMsgs(t *testing.T) { srvA, srvB, optsA, optsB := runServers(t) defer srvA.Shutdown() defer srvB.Shutdown() clientA1 := createClientConn(t, optsA.Host, optsA.Port) defer clientA1.Close() clientA2 := createClientConn(t, optsA.Host, optsA.Port) defer clientA2.Close() clientB := createClien...
explode_data.jsonl/5073
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 916 }
[ 2830, 3393, 28678, 7378, 6611, 82, 1155, 353, 8840, 836, 8, 341, 1903, 10553, 32, 11, 43578, 33, 11, 12185, 32, 11, 12185, 33, 1669, 1598, 78139, 1155, 340, 16867, 43578, 32, 10849, 18452, 741, 16867, 43578, 33, 10849, 18452, 2822, 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...
4
func TestCreateDaisyInflater_Image_UEFI(t *testing.T) { inflater := createDaisyInflaterForImageSafe(t, ImageImportRequest{ Source: imageSource{uri: "image/uri"}, OS: "ubuntu-1804", UefiCompatible: true, }) daisyutils.CheckWorkflow(inflater.worker, func(wf *daisy.Workflow, err error) { ass...
explode_data.jsonl/75628
{ "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, 4021, 35, 49056, 12342, 45949, 62, 2230, 19426, 1155, 353, 8840, 836, 8, 341, 17430, 11729, 1669, 1855, 35, 49056, 12342, 2461, 1906, 25663, 1155, 11, 4654, 11511, 1900, 515, 197, 197, 3608, 25, 260, 2168, 3608, 90, 6070, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCodecEncrypt(t *testing.T) { plaintext := []byte("foo") ciphertext, err := testCodec.Encrypt(plaintext) assert.Nil(t, err) assert.Equal(t, plaintext, ciphertext) }
explode_data.jsonl/53671
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 36913, 61520, 1155, 353, 8840, 836, 8, 341, 197, 71223, 1669, 3056, 3782, 445, 7975, 1138, 1444, 45043, 11, 1848, 1669, 1273, 36913, 26598, 3571, 7, 71223, 340, 6948, 59678, 1155, 11, 1848, 340, 6948, 12808, 1155, 11, 60847,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestP2B(t *testing.T) { fmt.Println("tests run") p2b, err := MakeP2PB2BExchange( []api.ExchangeAPIKey{ {Key: apiKey0, Secret: apiSecret0}, {Key: apiKey1, Secret: apiSecret1}, {Key: apiKey2, Secret: apiSecret2}, {Key: apiKey3, Secret: apiSecret3}, {Key: apiKey4, Secret: apiSecret4}, }, false)...
explode_data.jsonl/47858
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 373 }
[ 2830, 3393, 47, 17, 33, 1155, 353, 8840, 836, 8, 341, 11009, 12419, 445, 23841, 1598, 1138, 3223, 17, 65, 11, 1848, 1669, 7405, 47, 17, 40637, 17, 33, 31564, 1006, 197, 197, 1294, 2068, 86997, 7082, 1592, 515, 298, 197, 90, 1592, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFileCopySourceNotExistFailure(t *testing.T) { srcFile, err := ioutil.TempFile("", "test_src_copy") if err != nil { t.Fatal(err) } srcPath := srcFile.Name() if err := srcFile.Close(); err != nil { t.Fatal(err) } if err := os.Remove(srcPath); err != nil { t.Fatal(err) } if err := FileCopy(srcP...
explode_data.jsonl/8206
{ "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, 1703, 12106, 3608, 45535, 17507, 1155, 353, 8840, 836, 8, 341, 41144, 1703, 11, 1848, 1669, 43144, 65009, 1703, 19814, 330, 1944, 16274, 16096, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 41144, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransactionContextCanceled(t *testing.T) { t.Parallel() migration := sqltest.New(t, sqltest.Options{ Force: *force, Path: "../../migrations", }) pool := migration.Setup(context.Background(), "") db := &DB{ Postgres: pool, } canceledCtx, immediateCancel := context.WithCancel(context.Background()...
explode_data.jsonl/25444
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 175 }
[ 2830, 3393, 8070, 1972, 63263, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2109, 5033, 1669, 5704, 1944, 7121, 1155, 11, 5704, 1944, 22179, 515, 197, 197, 18573, 25, 353, 8833, 345, 197, 69640, 25, 220, 10208, 76, 17824, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Params_Header(t *testing.T) { p, _ := ports.PopRand() s := g.Server(p) s.BindHandler("/header", func(r *ghttp.Request) { r.Response.Write(r.GetHeader("test")) }) s.SetPort(p) s.SetDumpRouterMap(false) s.Start() defer s.Shutdown() time.Sleep(100 * time.Millisecond) gtest.C(t, func(t *gtest.T) { ...
explode_data.jsonl/25339
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 230 }
[ 2830, 3393, 44656, 71353, 1155, 353, 8840, 836, 8, 341, 3223, 11, 716, 1669, 20325, 47424, 56124, 741, 1903, 1669, 342, 22997, 1295, 340, 1903, 32451, 3050, 4283, 2708, 497, 2915, 2601, 353, 70, 1254, 9659, 8, 341, 197, 7000, 12574, 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 TestKafkaClient_decodeOffsetKeyV0(t *testing.T) { buf := bytes.NewBuffer([]byte("\x00\x09testgroup\x00\x09testtopic\x00\x00\x00\x0b")) result, errorAt := decodeOffsetKeyV0(buf) assert.Equalf(t, "", errorAt, "Expected decodeOffsetKeyV0 to return empty errorAt, not %v", errorAt) assert.Equalf(t, "testgroup", re...
explode_data.jsonl/34265
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 42, 21883, 2959, 15227, 6446, 1592, 53, 15, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 5820, 7121, 4095, 10556, 3782, 4921, 87, 15, 15, 3462, 15, 24, 1944, 4074, 3462, 15, 15, 3462, 15, 24, 1944, 16411, 3462, 15, 15, 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 TestRemoveAddress(t *testing.T) { newbase := Base{} newbase.AddAddress("someaddr", "LTC", "LTCWALLETTEST", 420) if !newbase.AddressExists("someaddr") { t.Error("Test failed - portfolio_test.go - TestRemoveAddress") } newbase.RemoveAddress("someaddr", "LTC", "LTCWALLETTEST") if newbase.AddressExists("some...
explode_data.jsonl/33738
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 147 }
[ 2830, 3393, 13021, 4286, 1155, 353, 8840, 836, 8, 341, 8638, 3152, 1669, 5351, 16094, 8638, 3152, 1904, 4286, 445, 14689, 6214, 497, 330, 43, 7749, 497, 330, 43, 7749, 54, 969, 20756, 10033, 497, 220, 19, 17, 15, 692, 743, 753, 931,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCustomerUpdateError(t *testing.T) { key := "wrong api key" mockErrorResponse := new(APIError) mockErrorResponse.Type = "invalid_request" mockErrorResponse.Message = "We could not authenticate the supplied API Key." server, err := invdmockserver.New(401, mockErrorResponse, "json", true) if err != nil { ...
explode_data.jsonl/15003
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 12792, 4289, 1454, 1155, 353, 8840, 836, 8, 341, 23634, 1669, 330, 34870, 6330, 1376, 1837, 77333, 55901, 1669, 501, 48953, 1454, 340, 77333, 55901, 10184, 284, 330, 11808, 7893, 698, 77333, 55901, 8472, 284, 330, 1654, 1410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunNewVsOld(t *testing.T) { rng := rand.New(rand.NewSource(1)) ctx := context.Background() const N = 100000 someVersionsMidSizeRowsLotsOfIntents := someVersionsMidSizeRows someVersionsMidSizeRowsLotsOfIntents.intentFrac = 1 for _, tc := range []randomRunGCTestSpec{ { ds: someVersionsMidSizeRowsLots...
explode_data.jsonl/48983
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 691 }
[ 2830, 3393, 6727, 3564, 51737, 18284, 1155, 353, 8840, 836, 8, 341, 7000, 968, 1669, 10382, 7121, 37595, 7121, 3608, 7, 16, 1171, 20985, 1669, 2266, 19047, 741, 4777, 451, 284, 220, 16, 15, 15, 15, 15, 15, 271, 1903, 635, 69015, 336...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1