text
stringlengths
11
6.3k
embedding
listlengths
768
768
func NewUrlWithDefaults() *Url { this := Url{} return &this }
[ 0.16566063463687897, 0.0829668641090393, -0.17146922647953033, 1.060333490371704, -0.0018097714055329561, 0.03897751867771149, -0.6522719264030457, -0.64034503698349, 0.3055557608604431, -1.2355417013168335, -1.1636205911636353, -1.540540099143982, -0.3547748923301697, 0.49032583832740784,...
func (o *Url) GetUrl() []string { if o == nil || o.Url == nil { var ret []string return ret } return *o.Url }
[ 0.15155628323554993, 0.3704342246055603, 0.4799162447452545, 1.1325565576553345, 0.24485711753368378, -0.062208391726017, 0.895123302936554, 0.279829740524292, 1.240390419960022, -0.20876574516296387, -0.8150161504745483, -0.747465193271637, -0.3252388834953308, 0.7301273941993713, 0.806...
func (o *Url) GetUrlOk() (*[]string, bool) { if o == nil || o.Url == nil { return nil, false } return o.Url, true }
[ -0.4150214195251465, 0.9139615297317505, 0.6202319860458374, 0.9696837663650513, -0.291513055562973, -0.06660554558038712, 0.6992150545120239, 0.918717086315155, -0.3361484408378601, -0.23040181398391724, -1.2056500911712646, 0.06184167414903641, -0.04953953996300697, 0.18024656176567078, ...
func (o *Url) HasUrl() bool { if o != nil && o.Url != nil { return true } return false }
[ 0.7590012550354004, 0.4781959354877472, 0.3090352416038513, 1.1899069547653198, 0.19433936476707458, 0.54086834192276, 0.45347389578819275, 1.1930458545684814, 0.47762513160705566, -0.4472150206565857, -0.6163396835327148, -1.069199562072754, -0.09479352831840515, -0.2599717974662781, 0....
func (o *Url) SetUrl(v []string) { o.Url = &v }
[ 0.1954583078622818, 0.09939911216497421, 0.09728915989398956, 0.8953853249549866, -0.5712409019470215, 0.338946133852005, -0.3948192000389099, -0.0853872299194336, 0.6208840608596802, 0.3306523263454437, -0.6573359370231628, 0.6152693033218384, -0.18018902838230133, 0.09923941642045975, ...
func (lim *Limiter) AddLimit() { now, newLimit := lim.queue(time.Now()) lim.last = now lim.limit = newLimit //fmt.Println(lim) }
[ 0.3166711926460266, -0.6733638644218445, 1.0618455410003662, 0.15492527186870575, 0.0981643795967102, 0.6314003467559814, -1.0625959634780884, 0.27727070450782776, 0.1831548660993576, 0.12752121686935425, -0.23805105686187744, 0.6282822489738464, -0.6219554543495178, 0.8781694769859314, ...
func init() { // lumberjack RegisterWriter(lumberjack.Name, lumberjack.GetDefault()) // websocket RegisterWriter(websocket.Name, websocket.GetDefault()) }
[ 0.6473750472068787, 0.28559210896492004, 0.3868391215801239, -0.4300076961517334, 1.3635414838790894, -1.0534405708312988, -0.03645236790180206, -0.14412645995616913, -0.007208155933767557, 0.346227765083313, -0.9371551871299744, 0.9706616997718811, -0.26433026790618896, 0.650602400302887,...
func LinearEasing(timePosition, startValue, deltaValue, duration float64) float64 { return deltaValue*timePosition/duration + startValue }
[ 0.5960987210273743, 0.0856151208281517, 0.41130155324935913, -0.8565787076950073, -0.698684573173523, 0.6659621596336365, -0.1638907641172409, 0.18435460329055786, -0.09123899042606354, 0.47050416469573975, 0.031044015660881996, 0.2904328405857086, -0.21321627497673035, -0.4659285247325897...
func Lerp(x1, y1, y float64) float64 { x := x1 / y1 * y return math.Round(x) }
[ 0.4471113383769989, 0.168836310505867, 0.47951316833496094, -0.864704966545105, -0.17286022007465363, 0.1375618577003479, -1.0883060693740845, -1.0339608192443848, -0.6588079333305359, 0.7518121004104614, 1.0123319625854492, -0.3030926585197449, 0.09393660724163055, -0.25312677025794983, ...
func getLabelsFromREMatches(matches [][]string) (labels []string) { for _, match := range matches { for _, label := range strings.Split(match[0], " ")[1:] { label = strings.ToLower(match[1] + "/" + strings.TrimSpace(label)) labels = append(labels, label) } } return }
[ -0.09446036070585251, -1.0206595659255981, 0.7090265154838562, -0.22298121452331543, 0.11784198135137558, 0.4786880612373352, -0.1587771475315094, -0.14556542038917542, 0.14543196558952332, 0.6656005382537842, 0.5836758613586426, -0.6507579684257507, -0.9010722041130066, 0.0523954927921295...
func NewReader(r io.Reader) (*Reader, error) { rr := &Reader{ r: r, SigThreshold: 800, ReadMode: Default, UDPHalfDRSBuffer: make([]byte, 8270), //8238), } rr.framesMap = make(map[uint32][]*Frame) rr.framesMapKeys = make([]uint32, 0) rr.readFileHeader(&rr.FileHeader) rr.NoPanic =...
[ -0.05011442303657532, -0.5472592115402222, 0.6198543310165405, -0.05237137898802757, -0.7583236694335938, 0.11478693783283234, 0.38125109672546387, -0.4321676194667816, 0.5526078343391418, -0.4745792746543884, -0.4177187383174896, -0.17942918837070465, -0.07043492794036865, 0.4623115658760...
func (r *Reader) SetDebug() { r.Debug = true }
[ 0.6263567805290222, -0.3622780442237854, 0.17804840207099915, -0.47454094886779785, 1.0045785903930664, 0.7277236580848694, -0.32297664880752563, 0.614399790763855, -0.5337820053100586, -0.723185122013092, 0.3470165431499481, -0.028506344184279442, -0.6052791476249695, 1.208340048789978, ...
func (r *Reader) SetSigThreshold(val uint) { r.SigThreshold = val }
[ 0.3953802287578583, 0.5731958746910095, 0.3632441461086273, 0.6076520085334778, -0.41198834776878357, 0.8916075229644775, 0.6991337537765503, -0.6838365197181702, -0.1455577164888382, -0.49649813771247864, -1.7119966745376587, -0.24312594532966614, -0.8882111310958862, 0.5129269957542419, ...
func (r *Reader) Err() error { return r.err }
[ 0.04152975603938103, -0.7181186676025391, -0.17993904650211334, 0.5380814671516418, -0.7113991975784302, 0.9199391603469849, -0.18766890466213226, 0.17360533773899078, 0.14507275819778442, -1.5858814716339111, 1.1121253967285156, 0.4506458044052124, -0.1826029270887375, 0.6132858991622925,...
func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository { mock := &MockUserRepository{ctrl: ctrl} mock.recorder = &MockUserRepositoryMockRecorder{mock} return mock }
[ -0.29354172945022583, -0.18831142783164978, 0.24289259314537048, 0.3274710774421692, -0.43461737036705017, -0.4907439351081848, 0.8992280960083008, -0.3201324939727783, 0.7893707156181335, 0.13385792076587677, -0.7294742465019226, -0.0789371132850647, 0.15398329496383667, 0.756601095199585...
func (m *MockUserRepository) EXPECT() *MockUserRepositoryMockRecorder { return m.recorder }
[ -0.1347368210554123, 0.34840479493141174, 0.14614377915859222, 0.11846071481704712, 0.08730936050415039, 0.1044076606631279, 0.101655974984169, 0.3508397936820984, 0.3291851878166199, -0.26321521401405334, 0.49626463651657104, 0.5327399969100952, -0.5823770761489868, 0.3252268433570862, ...
func (m *MockUserRepository) CreateUser(user *users.User) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateUser", user) ret0, _ := ret[0].(error) return ret0 }
[ -0.1529107391834259, -0.33972132205963135, -0.10864941030740738, 0.159417062997818, 1.4992926120758057, 0.21680046617984772, 1.4163610935211182, -0.19564075767993927, -0.32647615671157837, 0.03352843597531319, -0.6515469551086426, -1.4047925472259521, -1.0944230556488037, 1.108113646507263...
func (mr *MockUserRepositoryMockRecorder) CreateUser(user interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUser", reflect.TypeOf((*MockUserRepository)(nil).CreateUser), user) }
[ -0.06688027083873749, 0.42306169867515564, -0.10366087406873703, 0.13546036183834076, 0.2820243537425995, 0.3558090329170227, 0.16796737909317017, -1.1833629608154297, 0.9982006549835205, 0.5854127407073975, 0.2956881523132324, -0.3753287196159363, -0.9059850573539734, 1.6404004096984863, ...
func (m *MockUserRepository) ExistUser(email string) bool { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ExistUser", email) ret0, _ := ret[0].(bool) return ret0 }
[ -0.7780622839927673, 0.1640932857990265, 0.11675823479890823, -0.019728422164916992, 1.3712871074676514, 1.076494574546814, 1.1815301179885864, 0.40417155623435974, -0.7306381464004517, 0.45122817158699036, -0.5054589509963989, -0.841849148273468, -1.2358566522598267, 0.9154378771781921, ...
func (mr *MockUserRepositoryMockRecorder) ExistUser(email interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ExistUser", reflect.TypeOf((*MockUserRepository)(nil).ExistUser), email) }
[ -0.5211923718452454, 0.7109050750732422, 0.09540434926748276, -0.08047451078891754, 0.5039706826210022, 1.0088777542114258, 0.21480977535247803, -0.2289225310087204, 0.5394115447998047, 1.4453681707382202, 0.48056480288505554, -0.07564323395490646, -1.2111737728118896, 1.1648099422454834, ...
func (m *MockUserRepository) FindUser(email, password string) (*users.User, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "FindUser", email, password) ret0, _ := ret[0].(*users.User) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.5893705487251282, 0.10915995389223099, 0.12683099508285522, 0.7961506247520447, 1.1966009140014648, 0.027973879128694534, 1.3029389381408691, -0.20794911682605743, -0.7097938060760498, -0.17957176268100739, -0.8617653846740723, -0.6368783712387085, -0.9350056052207947, 1.122628450393676...
func (mr *MockUserRepositoryMockRecorder) FindUser(email, password interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindUser", reflect.TypeOf((*MockUserRepository)(nil).FindUser), email, password) }
[ -0.11982017010450363, 0.7641657590866089, 0.022831330075860023, 0.5923123359680176, 0.31473177671432495, 0.07993333041667938, 0.15704773366451263, -0.9473556280136108, 0.7734959721565247, 0.6638197302818298, 0.19206932187080383, 0.07337835431098938, -1.3387792110443115, 1.4388223886489868,...
func NewSender(key string) *Sender { return &Sender{ Client: &http.Client{}, Key: key, } }
[ -0.17400473356246948, -0.778755784034729, 0.005808715708553791, 0.007826014421880245, -1.2122752666473389, 0.0766114741563797, -0.9296950697898865, -0.5313500165939331, -0.24389715492725372, 0.4709556996822357, -0.5966577529907227, 0.27678391337394714, -0.32350581884384155, 1.2838474512100...
func NewMessage(registrationIds ...string) *Message { return &Message{ Data: make(map[string]interface{}), RegistrationIds: registrationIds, } }
[ -0.6860141754150391, 0.5678539872169495, 0.15961672365665436, 0.6851446032524109, 0.4370017945766449, -0.046791400760412216, -0.3426702618598938, 0.3252386748790741, -0.09520003944635391, -0.16405637562274933, -0.2019866406917572, 0.3762112557888031, -0.49731817841529846, 0.608804821968078...
func (m *Message) Add(key string, value interface{}) { if m.Data == nil { m.Data = make(map[string]interface{}) } m.Data[key] = value }
[ -0.6228014230728149, -0.031735487282276154, 0.4470016658306122, -0.8112723231315613, -0.024534815922379494, 0.5215179920196533, -0.8192909359931946, 0.07667222619056702, -0.1517525464296341, 0.03571942448616028, 0.5658547282218933, 0.9986931681632996, -0.570263147354126, 1.4617103338241577...
func (s *Sender) Send(msg *Message, retries int) (*MulticastResult, error) { for i := 0; i < retries; i++ { if r, err := s.SendNoRetry(msg); err == nil { return r, nil } time.Sleep(time.Duration(i*2) * BackoffInitalDelay) } return nil, errors.New("Could not send message after " + strconv.Itoa(retries) + " a...
[ -0.15865696966648102, 0.6412073373794556, 0.3185833990573883, 0.407277911901474, -0.05820208787918091, -1.112014889717102, 0.07900037616491318, -0.6516855955123901, -0.3575427532196045, 0.19278407096862793, 0.050417009741067886, 0.3385075330734253, -1.4926360845565796, 0.7574833035469055, ...
func (s *Sender) SendNoRetry(msg *Message) (*MulticastResult, error) { if len(msg.RegistrationIds) == 0 { return nil, errors.New("RegistrationIds cannot be empty") } b, err := json.Marshal(msg) if err != nil { return nil, err } res, err := s.post(GCMSendEndpoint, "application/json", bytes.NewReader(b)) if er...
[ -0.729303240776062, 0.7706704139709473, 0.6469788551330566, -0.26144546270370483, 0.46377307176589966, -0.6582401394844055, -0.005117837339639664, -1.031714677810669, 0.23766131699085236, 0.8881585597991943, -0.8600510954856873, 0.5793631672859192, -1.6326061487197876, 1.41182279586792, ...
func TestGetBackoffDurationIncrease(t *testing.T) { mockConfig := config.Mock(t) log := fxutil.Test[log.Component](t, log.MockModule) e := newBlockedEndpoints(mockConfig, log) previousBackoffDuration := time.Duration(0) * time.Second backoffIncrease := 0 backoffDecrease := 0 for i := 1; ; i++ { backoffDuratio...
[ 0.20436011254787445, 0.8868326544761658, 0.6965294480323792, 1.1601709127426147, 0.18298391997814178, 0.16611504554748535, 0.6026694178581238, -0.4901838004589081, -0.19356559216976166, 0.045507822185754776, -0.3242792785167694, -0.13321805000305176, -0.689913272857666, -0.1169829592108726...
func NewManager(remoteSource charactersDataSource) *Manager { return &Manager{make(map[uint]data), 0, remoteSource, usersList{make(map[uint32]*User), new(sync.Mutex)}} }
[ -1.2447810173034668, -0.2671828269958496, 0.053420260548591614, -1.6622450351715088, -1.1531400680541992, 0.2745243012905121, -0.9087370038032532, 0.4232468605041504, 0.12677538394927979, -1.0935046672821045, -1.1464556455612183, 0.4203879237174988, -0.31009185314178467, 1.1258187294006348...
func (m *Manager) RegisterDataSource(ctx context.Context, source <-chan packet.Packet) <-chan packet.Packet { sink := make(chan packet.Packet) m.binds[m.count] = data{source, sink} go m.handle(ctx, m.binds[m.count]) return sink }
[ -1.113816738128662, 1.0246977806091309, 0.17516866326332092, -1.3468232154846191, -0.05550980567932129, -0.30205774307250977, -0.6464158296585083, -0.008319106884300709, 0.18506073951721191, -1.4347844123840332, -1.7990074157714844, 1.2928657531738281, -0.008711651898920536, 0.538876533508...
func (m *Manager) GetUsers() map[uint32]*User { m.users.Lock() defer m.users.Unlock() return m.users.list }
[ -1.0513834953308105, 0.027242759242653847, 0.29907917976379395, 0.08471385389566422, -0.010918736457824707, 0.16842317581176758, -0.03575668856501579, -0.505463719367981, 0.5285314321517944, -1.0863349437713623, -0.06232248246669769, 0.7878859639167786, -0.9831805229187012, 0.4572237730026...
func TestGetJobNamePrefix(t *testing.T) { assert.Equal(t, "abcd", getJobNamePrefix("abcd-efg")) assert.Equal(t, "abcd", getJobNamePrefix("abcd.efg")) assert.Equal(t, "abcd", getJobNamePrefix("abcd-e.fg")) assert.Equal(t, "abc", getJobNamePrefix("abc.d-efg")) assert.Equal(t, "abcd", getJobNamePrefix("abcd-.efg")) ...
[ 0.024889539927244186, 0.21378396451473236, 0.7281506657600403, -0.6146450042724609, 0.6295627951622009, 0.23541656136512756, -0.20921769738197327, -0.5162514448165894, 0.4987940490245819, -0.4253205358982086, -1.2201520204544067, 0.18427515029907227, 0.40633586049079895, 0.1722962856292724...
func NewRedisClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *RedisClient { cp := arm.ClientOptions{} if options != nil { cp = *options } if len(cp.Host) == 0 { cp.Host = arm.AzurePublicCloud } return &RedisClient{subscriptionID: subscriptionID, ep: string(cp.Host)...
[ 0.5532610416412354, -0.2736508250236511, 0.16215692460536957, 0.05990510433912277, -0.2881542146205902, 0.09025032073259354, -0.9042539000511169, -0.344361811876297, 0.1508570909500122, -0.15879163146018982, -0.07147528976202011, 1.2105247974395752, -0.13065281510353088, -0.342431187629699...
func (client *RedisClient) checkNameAvailabilityCreateRequest(ctx context.Context, parameters CheckNameAvailabilityParameters, options *RedisCheckNameAvailabilityOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/CheckNameAvailability" if client.subscriptionID ==...
[ -0.8924266695976257, -0.10186248272657394, 0.5104848742485046, -0.5513843894004822, -0.5530768632888794, 0.3729008138179779, -0.2539716064929962, -0.27357521653175354, -0.37570488452911377, 0.8805627822875977, -0.3146648705005646, 0.8508935570716858, -0.23846854269504547, 1.307231068611145...
func (client *RedisClient) createCreateRequest(ctx context.Context, resourceGroupName string, name string, parameters RedisCreateParameters, options *RedisBeginCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}...
[ -0.5112390518188477, -0.15165671706199646, 0.892718493938446, -0.287558376789093, -0.5309379696846008, -0.09076564759016037, -0.562310516834259, -0.45925173163414, -0.07024165242910385, 0.8255517482757568, 0.25822731852531433, 0.9746123552322388, -0.17246946692466736, 0.8991520404815674, ...
func (client *RedisClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, name string, options *RedisBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}" if resourceGroupName == "" { ...
[ 0.016240164637565613, -0.10954855382442474, 0.9943273067474365, -0.1775330752134323, -0.7429491281509399, -0.2028970867395401, -0.20116004347801208, -0.38495591282844543, 0.04645581543445587, 0.02483122982084751, 0.49913737177848816, 1.1744147539138794, -0.22884979844093323, 0.760505437850...
func (client *RedisClient) exportDataCreateRequest(ctx context.Context, resourceGroupName string, name string, parameters ExportRDBParameters, options *RedisBeginExportDataOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/...
[ -0.4980352520942688, 0.12216995656490326, 0.7842527031898499, -0.40721631050109863, -0.8046935200691223, -0.0822160392999649, -0.4045584201812744, -0.16297154128551483, 0.31964483857154846, 0.5000840425491333, 0.02458507940173149, 1.2322850227355957, -0.28740769624710083, 0.767080247402191...
func (client *RedisClient) forceRebootCreateRequest(ctx context.Context, resourceGroupName string, name string, parameters RedisRebootParameters, options *RedisForceRebootOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{...
[ -0.929810106754303, 0.13613393902778625, 0.7013943791389465, 0.04296262934803963, -0.019615840166807175, -0.16407358646392822, -0.4257529377937317, -0.6698256134986877, 0.042485591024160385, 0.4470624625682831, -0.019469715654850006, 1.176423192024231, -0.4009090065956116, 1.39513671398162...
func (client *RedisClient) forceRebootHandleResponse(resp *http.Response) (RedisForceRebootResponseEnvelope, error) { result := RedisForceRebootResponseEnvelope{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.RedisForceRebootResponse); err != nil { return RedisForceRebootResponseEnvelope{}, runti...
[ -0.6836702227592468, -0.4730459749698639, 0.4705638289451599, 0.4086307883262634, -0.30979517102241516, -0.05962420254945755, 0.023746678605675697, -0.659240186214447, 1.1886974573135376, 0.25444740056991577, -0.7791528105735779, -0.4955618381500244, -1.1066972017288208, 0.1030238345265388...
func (client *RedisClient) getCreateRequest(ctx context.Context, resourceGroupName string, name string, options *RedisGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}" if resourceGroupName == "" { return nil,...
[ -0.236222043633461, 0.2101326584815979, 1.217597246170044, -0.3586694598197937, -0.33993905782699585, -0.23221446573734283, -0.6734948754310608, -0.6212335228919983, -0.10595981031656265, 0.41953662037849426, 0.7028378844261169, 1.5581114292144775, -0.20123563706874847, 0.4688408076763153,...
func (client *RedisClient) getHandleResponse(resp *http.Response) (RedisGetResponse, error) { result := RedisGetResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.RedisResource); err != nil { return RedisGetResponse{}, runtime.NewResponseError(err, resp) } return result, nil }
[ -0.28248918056488037, -0.49602365493774414, 0.62528395652771, -0.17840006947517395, -0.1490877866744995, -0.43421193957328796, -0.11333664506673813, -0.4696566164493561, 0.9914065003395081, -0.5866538882255554, -0.32661208510398865, -0.8015321493148804, -0.5056215524673462, -0.422545790672...
func (client *RedisClient) importDataCreateRequest(ctx context.Context, resourceGroupName string, name string, parameters ImportRDBParameters, options *RedisBeginImportDataOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/...
[ -0.5195289254188538, 0.2036818116903305, 0.8647274971008301, -0.4770810902118683, -0.5233795642852783, 0.028405750170350075, -0.1556980311870575, -0.11620907485485077, -0.09724752604961395, 0.5086247324943542, -0.3456987142562866, 1.1951042413711548, -0.19063188135623932, 0.645862936973571...
func (client *RedisClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *RedisListByResourceGroupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis" if resourceGroupName == "" { ...
[ -0.3102092146873474, 0.3089686334133148, 0.3464391529560089, -0.6077147126197815, -0.2569057047367096, -0.4519135355949402, -0.26073557138442993, -0.539507269859314, 0.15192128717899323, 0.37484481930732727, 0.3082258403301239, 0.4664900004863739, -0.09986694902181625, 0.9652090668678284, ...
func (client *RedisClient) listByResourceGroupHandleResponse(resp *http.Response) (RedisListByResourceGroupResponse, error) { result := RedisListByResourceGroupResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.RedisListResult); err != nil { return RedisListByResourceGroupResponse{}, runtim...
[ -0.49737751483917236, -0.4991406202316284, 0.017530003562569618, -0.8947967886924744, -0.36360231041908264, -0.34703773260116577, 0.30659520626068115, -0.5678335428237915, 0.5361037850379944, 0.013294508680701256, -0.49237480759620667, -1.812613606452942, -0.6008602380752563, 0.73309856653...
func (client *RedisClient) listBySubscriptionCreateRequest(ctx context.Context, options *RedisListBySubscriptionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Cache/redis" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID ca...
[ -0.256151020526886, 0.6426700949668884, 0.5255477428436279, -0.07729290425777435, 0.009493626654148102, -0.20108649134635925, -0.4504990577697754, 0.003468370996415615, 0.3222794532775879, 0.39610153436660767, 0.10432881861925125, 0.7189009785652161, 0.5913668274879456, 0.5281054377555847,...
func (client *RedisClient) listBySubscriptionHandleResponse(resp *http.Response) (RedisListBySubscriptionResponse, error) { result := RedisListBySubscriptionResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.RedisListResult); err != nil { return RedisListBySubscriptionResponse{}, runtime.Ne...
[ 0.1380631923675537, -0.3619907796382904, 0.33024337887763977, -0.21466299891471863, -0.41051989793777466, -0.06077871844172478, 0.30737999081611633, 0.1014334112405777, 0.821989119052887, 0.5197624564170837, -0.9644669890403748, -0.8658260107040405, -0.03800268471240997, 0.3031762242317199...
func (client *RedisClient) listKeysCreateRequest(ctx context.Context, resourceGroupName string, name string, options *RedisListKeysOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}/listKeys" if resourceGroupName ==...
[ -0.741631031036377, 0.2673529088497162, 0.976517915725708, -0.5432170033454895, -0.496660441160202, -0.4815029799938202, -1.0678892135620117, -0.37814614176750183, -0.10025309026241302, 0.4876651465892792, -0.020983297377824783, 0.8062469363212585, -0.181771382689476, 0.8338809609413147, ...
func (client *RedisClient) listKeysHandleResponse(resp *http.Response) (RedisListKeysResponse, error) { result := RedisListKeysResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.RedisAccessKeys); err != nil { return RedisListKeysResponse{}, runtime.NewResponseError(err, resp) } return res...
[ -0.36862313747406006, -0.1926092952489853, 0.5192012786865234, -0.7175804972648621, -0.9327408671379089, -0.8387612700462341, -0.24232326447963715, -0.3557191491127014, 1.433221459388733, 0.7695983648300171, -1.0012706518173218, -0.6431882381439209, -0.19606660306453705, 0.5073199272155762...
func (client *RedisClient) listUpgradeNotificationsCreateRequest(ctx context.Context, resourceGroupName string, name string, history float64, options *RedisListUpgradeNotificationsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cach...
[ -0.9230850338935852, 0.4253680109977722, 0.9965569972991943, -0.40845006704330444, 0.22801660001277924, -0.2532237768173218, -0.4646182358264923, -0.15978644788265228, -0.2637092173099518, 0.3612745702266693, -0.29180222749710083, 0.7605621814727783, 0.05332232266664505, 0.8720561265945435...
func (client *RedisClient) listUpgradeNotificationsHandleResponse(resp *http.Response) (RedisListUpgradeNotificationsResponse, error) { result := RedisListUpgradeNotificationsResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.NotificationListResponse); err != nil { return RedisListUpgradeNo...
[ -0.7495457530021667, -0.03892169147729874, 0.5504937171936035, 0.06963714212179184, -0.31397461891174316, -0.06294979155063629, 0.11505666375160217, -0.4799101650714874, 0.92474365234375, 0.24285674095153809, -1.765790581703186, -1.2209347486495972, -0.17753221094608307, 0.9836463928222656...
func (client *RedisClient) regenerateKeyCreateRequest(ctx context.Context, resourceGroupName string, name string, parameters RedisRegenerateKeyParameters, options *RedisRegenerateKeyOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Ca...
[ -1.276616096496582, 0.19239363074302673, 0.7030238509178162, -0.31053078174591064, -0.332777738571167, -0.2500702142715454, -0.1895575076341629, -0.24121424555778503, -0.3780488967895508, 0.18070916831493378, -0.032449591904878616, 1.0016781091690063, -0.5766942501068115, 1.124695539474487...
func (client *RedisClient) regenerateKeyHandleResponse(resp *http.Response) (RedisRegenerateKeyResponse, error) { result := RedisRegenerateKeyResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.RedisAccessKeys); err != nil { return RedisRegenerateKeyResponse{}, runtime.NewResponseError(err, ...
[ -1.2603530883789062, -0.2369246482849121, 0.5367128849029541, -0.36838498711586, -0.5300871133804321, -0.41151005029678345, 0.2769455313682556, -0.07882113754749298, 0.7507516741752625, 0.42368555068969727, -0.7781757712364197, -0.4520995616912842, -1.0355430841445923, -0.08593418449163437...
func (client *RedisClient) updateCreateRequest(ctx context.Context, resourceGroupName string, name string, parameters RedisUpdateParameters, options *RedisUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redis/{name}" if...
[ -0.8080195784568787, -0.5167922377586365, 0.9581536650657654, -0.31836214661598206, -1.007150411605835, -0.13525035977363586, -0.41855108737945557, -0.2942352592945099, -0.10993257164955139, 0.7706059813499451, 0.2200414389371872, 1.0627254247665405, -0.24404820799827576, 0.685746371746063...
func (client *RedisClient) updateHandleResponse(resp *http.Response) (RedisUpdateResponse, error) { result := RedisUpdateResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.RedisResource); err != nil { return RedisUpdateResponse{}, runtime.NewResponseError(err, resp) } return result, nil }
[ -0.8952034115791321, -1.4255907535552979, 0.35001686215400696, -0.4154838025569916, -0.8215782046318054, 0.13007618486881256, -0.09788467735052109, -0.05637098103761673, 0.9415802359580994, 0.1652756631374359, -0.49894723296165466, -1.2930415868759155, -0.9693307876586914, -0.5613650083541...
func AuthRequired(c *gin.Context) { session := sessions.Default(c) user := session.Get(UserKey) if user == nil { // Abort the request with the appropriate error code c.AbortWithStatusJSON(http.StatusUnauthorized, gin.H{"error": "unauthorized"}) return } // Continue down the chain to handler etc c.Next() }
[ -0.390693724155426, -0.4741947054862976, 0.4545651972293854, 1.063260793685913, -0.0039654201827943325, 0.3673057556152344, 0.3002157509326935, -0.5531352758407593, 0.1934611052274704, 0.06421922892332077, 0.24876578152179718, 1.1953485012054443, 0.637530505657196, 0.18791630864143372, 0...
func NewRRDNSService(hostnames []string, ipv4 bool, ipv6 bool) *rrDNSService { return &rrDNSService{ ipv4: ipv4, ipv6: ipv6, hostnames: hostnames, nodes: nil, } }
[ -0.4805299937725067, 0.5081346035003662, 0.03719406574964523, -0.4141303598880768, -0.19973140954971313, 0.22830155491828918, -0.5299059152603149, -0.8036718964576721, -0.26846471428871155, 0.15768693387508392, -1.147413969039917, 1.1244473457336426, -0.7397082448005676, 0.1413646340370178...
func TestFibonacciNumber(t *testing.T) { cases := []struct { input int expect int }{ { input: 1, expect: 1, }, { input: 3, expect: 2, }, { input: 4, expect: 3, }, } for _, c := range cases { if fib(c.input) != c.expect { t.Fail() } } }
[ 0.0759793147444725, 0.20671379566192627, 0.3513985574245453, 0.9863133430480957, 0.6807956695556641, 0.15947577357292175, 0.9629092216491699, -0.46560633182525635, -0.24134694039821625, -1.1861319541931152, -0.6319252848625183, -0.5411586165428162, -0.6597946882247925, 0.7945036888122559, ...
func fib(N int) int { if N <= 1 { return N } a := make([]int, N+1) a[0] = 0 a[1] = 1 for i := 2; i <= N; i++ { a[i] = a[i-1] + a[i-2] } return a[N] }
[ -0.4801340699195862, 0.8040295839309692, 0.37057408690452576, 0.6435375213623047, 0.34356316924095154, 0.069565549492836, 0.8849151134490967, -0.18661336600780487, 0.3889884948730469, -0.3874199390411377, -0.8126957416534424, 0.09756889939308167, -0.28290697932243347, 1.1093802452087402, ...
func NewAuthorize() cli.Command { return &Authorize{} }
[ -0.2588947117328644, -0.10504329204559326, 0.5081815123558044, 1.9119700193405151, 0.1082766205072403, -1.21078622341156, -0.05159579589962959, -0.5271672606468201, -0.3725777268409729, -0.08662822097539902, 0.45516225695610046, 0.6881099939346313, -0.4431283175945282, 0.8033390045166016, ...
func (c *Authorize) Name() cli.CmdName { return CmdNmAuthorize }
[ -0.4013420343399048, -0.032104939222335815, 0.7311511635780334, 1.2739957571029663, -0.7360457181930542, -0.7629013061523438, 0.38261109590530396, -0.41526150703430176, 0.07047437131404877, 0.45681166648864746, -0.21472254395484924, 0.1177712231874466, 0.1425229012966156, 0.269693225622177...
func (c *Authorize) Help( ctx context.Context, ) { out.Normf("\nUsage: ") out.Boldf("warp authorize <username_or_token>\n") out.Normf("\n") out.Normf(" Grants write access to a client of the current warp.\n") out.Normf("\n") out.Errof(" Be extra careful!") out.Normf(" Please make sure that the user you are gr...
[ 0.9144730567932129, -0.2717752456665039, 0.9512134194374084, -0.5768483281135559, -0.26428258419036865, 0.1522476226091385, 0.4176323413848877, -0.2787870168685913, -0.05021170899271965, 0.8888770341873169, 0.38508349657058716, 1.2300485372543335, 0.20712538063526154, -0.16872501373291016,...
func (c *Authorize) Parse( ctx context.Context, args []string, flags map[string]string, ) error { if len(args) == 0 { return errors.Trace( errors.Newf("Username or token required."), ) } else { c.usernameOrToken = args[0] } return nil }
[ 0.12186811119318008, 0.7808594107627869, 0.33581745624542236, 0.27562257647514343, 0.4996950924396515, -0.3077623248100281, -0.11828632652759552, -0.017113173380494118, -0.3474922180175781, -0.2919437885284424, 0.31849604845046997, 0.12944592535495758, -0.6640762686729431, 0.61030006408691...
func (c *Authorize) Execute( ctx context.Context, ) error { err := cli.CheckEnvWarp(ctx) if err != nil { return errors.Trace(err) } result, err := cli.RunLocalCommand(ctx, warp.Command{ Type: warp.CmdTpState, Args: []string{}, }) if err != nil { return errors.Trace(err) } if result.Disconnected { r...
[ -0.04517294839024544, -0.20132964849472046, 0.8367770910263062, -0.06919490545988083, 0.14820972084999084, -0.07009241729974747, 0.2176244556903839, -0.6699344515800476, -0.416471004486084, 0.6497212052345276, 0.10426978021860123, 0.5653408169746399, -0.22147682309150696, -0.53073835372924...
func NewDefaultKafkaConnection() (*Connection, error) { servers := viper.GetStringSlice("kafka.servers") if len(servers) == 0 { return nil, fmt.Errorf("kafka servers must be defined") } c := &Connection{ Brokers: servers, } if viper.GetBool("kafka.tls") { tlsClientCert, err := file_utils.GetAbsolutelyLoca...
[ 0.1748490333557129, -0.2687147557735443, 0.7348625063896179, 0.7585896849632263, -0.5516465306282043, -1.1747848987579346, -0.05004922300577164, 0.07622922211885452, -0.3192160725593567, 0.7522726058959961, -0.15116681158542633, -0.5867601037025452, -0.5588923692703247, 0.8294768333435059,...
func NewUsecase(outputPort Outport) Inport { return &resetActivationUserInteractor{ outport: outputPort, } }
[ -0.19547182321548462, -0.6490151882171631, 0.09203983843326569, 1.0541882514953613, -0.5637397766113281, -0.7156698107719421, 1.2118797302246094, -0.08211209625005722, 0.41211217641830444, 0.5037497282028198, 0.44497182965278625, -0.26207906007766724, -1.0009469985961914, -1.41418957710266...
func (r *resetActivationUserInteractor) Execute(ctx context.Context, req InportRequest) (*InportResponse, error) { res := &InportResponse{} mail := &service.BuildMailServiceResponse{} err := repository.ReadOnly(ctx, r.outport, func(ctx context.Context) error { userObj, err := r.outport.FindUserByID(ctx, req.ID) ...
[ -0.15338803827762604, -0.5357469320297241, 0.7167425155639648, -0.004703816957771778, 0.048602644354104996, -0.038848552852869034, 0.0026042908430099487, -0.48783180117607117, 0.38277697563171387, 0.4732930362224579, -0.3284127414226532, 0.531919538974762, -0.2613087594509125, -0.974133372...
func NewMockClienter(ctrl *gomock.Controller) *MockClienter { mock := &MockClienter{ctrl: ctrl} mock.recorder = &MockClienterMockRecorder{mock} return mock }
[ -0.13796111941337585, -0.3915472626686096, 0.31345996260643005, 0.03755629062652588, -0.3216853737831116, 0.18770119547843933, 0.5745418667793274, -0.7742747664451599, 0.21250708401203156, 0.34922605752944946, -0.3030197322368622, 0.054989125579595566, -0.685260534286499, 1.256838083267212...
func (m *MockClienter) EXPECT() *MockClienterMockRecorder { return m.recorder }
[ 0.4114387333393097, 0.2911257743835449, 0.3697293996810913, -0.35969477891921997, -0.012683430686593056, 0.3659741282463074, 0.17497798800468445, -0.07706759870052338, 0.0859503373503685, -0.1658627837896347, 0.5838457345962524, 0.8776813745498657, -1.2760004997253418, 0.5967915654182434, ...
func (m *MockClienter) WithServer(add string) go_ssh_client.Client { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WithServer", add) ret0, _ := ret[0].(go_ssh_client.Client) return ret0 }
[ -0.7081434726715088, -0.47257816791534424, 0.4431047737598419, 0.08873306214809418, 0.623100757598877, 0.7695271372795105, 0.9273530840873718, -0.6194271445274353, -1.1863658428192139, -0.20974993705749512, -1.0261892080307007, -0.8187452554702759, -1.5834521055221558, 0.9852060675621033, ...
func (mr *MockClienterMockRecorder) WithServer(add interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithServer", reflect.TypeOf((*MockClienter)(nil).WithServer), add) }
[ -0.5577040314674377, 0.02495286986231804, 0.2091822624206543, 0.29139524698257446, -0.5478734970092773, 0.21441498398780823, 0.25928378105163574, -1.0302941799163818, -0.022759852930903435, 0.32183682918548584, -0.35325887799263, 0.614980936050415, -1.348328709602356, 1.3126983642578125, ...
func (m *MockClienter) WithUser(user string) go_ssh_client.Client { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WithUser", user) ret0, _ := ret[0].(go_ssh_client.Client) return ret0 }
[ -0.6610881090164185, -0.05540383607149124, 0.30147629976272583, 0.430036723613739, 0.24353045225143433, 0.22306901216506958, 1.418207049369812, -0.5101627111434937, -1.078984260559082, -0.665127694606781, -0.6212130784988403, -0.7954867482185364, -1.006820559501648, 0.6217009425163269, 0...
func (mr *MockClienterMockRecorder) WithUser(user interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithUser", reflect.TypeOf((*MockClienter)(nil).WithUser), user) }
[ -0.2543594241142273, 0.457348495721817, 0.26338261365890503, 0.3948788046836853, -0.8320412039756775, 0.19047372043132782, 0.6567415595054626, -1.3526662588119507, 0.10872025042772293, -0.08271920680999756, 0.43254634737968445, 0.32528412342071533, -0.7658939361572266, 1.0213366746902466, ...
func (m *MockClienter) WithPassword(password string) go_ssh_client.Client { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WithPassword", password) ret0, _ := ret[0].(go_ssh_client.Client) return ret0 }
[ -0.17840734124183655, -0.41715720295906067, 0.43601834774017334, -0.007494714111089706, 0.16451136767864227, -0.05192435532808304, 0.8113136291503906, -0.45065754652023315, -0.7289602756500244, -0.12087744474411011, -0.529991865158081, -0.7480716109275818, -0.8509636521339417, 0.7394874691...
func (mr *MockClienterMockRecorder) WithPassword(password interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithPassword", reflect.TypeOf((*MockClienter)(nil).WithPassword), password) }
[ 0.1771235316991806, 0.435584157705307, 0.37831854820251465, 0.06991256028413773, -0.9625550508499146, 0.1019941195845604, -0.30872252583503723, -1.501006007194519, 0.8049668669700623, 0.76053386926651, 0.6715435981750488, 0.19862739741802216, -0.7631929516792297, 1.2463469505310059, -0.0...
func (m *MockClienter) WithKey(key string) go_ssh_client.Client { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WithKey", key) ret0, _ := ret[0].(go_ssh_client.Client) return ret0 }
[ -0.875095546245575, 0.18911565840244293, 0.559937059879303, 0.34011438488960266, 0.4561616778373718, 0.169528529047966, 0.7021613717079163, -0.6615572571754456, -0.986025333404541, 0.3561643362045288, -0.3813958466053009, -0.8503394722938538, -1.2824790477752686, 0.754612147808075, 0.567...
func (mr *MockClienterMockRecorder) WithKey(key interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithKey", reflect.TypeOf((*MockClienter)(nil).WithKey), key) }
[ -0.7907008528709412, 0.7849182486534119, 0.3440217077732086, 0.26212364435195923, -0.4931619167327881, 0.17979462444782257, -0.14248521625995636, -1.2777069807052612, 0.23077236115932465, 1.2367637157440186, 0.6468632221221924, 0.43189841508865356, -1.094457745552063, 1.1731302738189697, ...
func (m *MockClienter) WithPort(port string) go_ssh_client.Client { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "WithPort", port) ret0, _ := ret[0].(go_ssh_client.Client) return ret0 }
[ -0.06757247447967529, -0.41003653407096863, 0.4585980474948883, -0.2354276329278946, 0.45697081089019775, 0.38895663619041443, 0.9997397065162659, -0.9280058741569519, -0.9445375800132751, -0.6881887316703796, -0.3620726466178894, -0.7731910347938538, -0.9727784395217896, 0.480829715728759...
func (mr *MockClienterMockRecorder) WithPort(port interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithPort", reflect.TypeOf((*MockClienter)(nil).WithPort), port) }
[ 0.0669984444975853, 0.29183828830718994, 0.25041869282722473, -0.11403267830610275, -0.6161887049674988, 0.4142800271511078, -0.01300843432545662, -1.5396145582199097, 0.20328204333782196, 0.3906674385070801, 0.7387192249298096, 0.3003402054309845, -1.0098251104354858, 0.9621396660804749, ...
func (m *MockClienter) Connectable(timeout time.Duration) (bool, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Connectable", timeout) ret0, _ := ret[0].(bool) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -1.1937175989151, -0.5739421248435974, 0.15460847318172455, 0.8882954716682434, 0.7168586850166321, 0.47240495681762695, 0.3662734031677246, -0.4001404345035553, -1.1724128723144531, 0.41825324296951294, 0.014836524613201618, -0.9743980169296265, -1.0983957052230835, 0.8406642079353333, ...
func (mr *MockClienterMockRecorder) Connectable(timeout interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Connectable", reflect.TypeOf((*MockClienter)(nil).Connectable), timeout) }
[ -0.6287923455238342, 0.3834412693977356, 0.08636912703514099, 0.6915266513824463, -0.0025233638007193804, 0.3450736403465271, -0.5456517338752747, -0.8787479400634766, 0.018881721422076225, 1.050013542175293, 0.7753102779388428, 0.27644628286361694, -1.0274330377578735, 0.7088150382041931,...
func (m *MockClienter) RunCommand(command string, options go_ssh_client.CommandOptions) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RunCommand", command, options) ret0, _ := ret[0].(error) return ret0 }
[ -0.4797075688838959, -0.08544310927391052, 0.3774584233760834, 0.2788841128349304, 1.4830293655395508, 0.9346446394920349, 0.6375158429145813, -0.09953900426626205, -0.420402854681015, -0.9069111943244934, -0.47829127311706543, 0.24118374288082123, -0.9449078440666199, 1.0671018362045288, ...
func (mr *MockClienterMockRecorder) RunCommand(command, options interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunCommand", reflect.TypeOf((*MockClienter)(nil).RunCommand), command, options) }
[ -0.15440969169139862, 0.5761831402778625, 0.23994645476341248, 0.12447743117809296, 0.35145944356918335, 1.0540580749511719, -0.28728803992271423, -0.6185219287872314, 1.0405889749526978, -0.16030186414718628, 0.5851153135299683, 1.2824970483779907, -1.2642697095870972, 1.23324453830719, ...
func (s StorageGetResponse) ToMap() map[string]string { m := make(map[string]string) for _, item := range s { m[item.Key] = item.Value } return m }
[ -0.4838247001171112, -1.2718307971954346, 0.5025730729103088, -0.08948559314012527, 0.017177648842334747, -0.42082691192626953, -0.5779703259468079, 0.014209882356226444, 1.1798261404037476, 0.3856559991836548, -0.25348129868507385, -0.470676064491272, 0.5408389568328857, -1.08261692523956...
func (vk *VK) StorageGet(params Params) (response StorageGetResponse, err error) { err = vk.RequestUnmarshal("storage.get", &response, params) return }
[ -0.6961340308189392, 0.22624416649341583, 0.4771898686885834, 0.8080219030380249, 0.4842659533023834, -0.68332839012146, 0.2510159909725189, -1.1297909021377563, -0.33361393213272095, 0.5442582368850708, 0.3923245370388031, 0.28657692670822144, -0.430166631937027, -0.31184524297714233, -...
func (vk *VK) StorageGetKeys(params Params) (response StorageGetKeysResponse, err error) { err = vk.RequestUnmarshal("storage.getKeys", &response, params) return }
[ -1.0447512865066528, 0.5180560350418091, 0.2007758468389511, 0.8768740296363831, 0.6809471845626831, -1.0401185750961304, 0.5149092078208923, -1.3224918842315674, -0.5482641458511353, 0.5547478795051575, -0.32301536202430725, 0.9004231691360474, -0.8605141043663025, -0.42770451307296753, ...
func (vk *VK) StorageSet(params Params) (response int, err error) { err = vk.RequestUnmarshal("storage.set", &response, params) return }
[ -0.754027783870697, 0.4869318902492523, 0.4163552522659302, 0.23934850096702576, 0.2873941659927368, -0.6244401335716248, 0.8725759387016296, -0.8826910257339478, -0.3670143783092499, 0.6727474331855774, 0.1666337549686432, 0.03313016518950462, -1.0002734661102295, -0.27605387568473816, ...
func run(input string) (interface{}, interface{}) { list := pkg.ParseIntList(puzzle, "\n") part1, part2 := 0, 0 part1: for i, number := range list { if i < 25 { continue } previousNumbers := []int(nil) for j := i - 1; i-j <= 25; j-- { previousNumbers = append(previousNumbers, list[j]) } for k, n1 ...
[ -0.09788711369037628, 0.18061275780200958, 0.782988429069519, 0.20749342441558838, -0.7395868897438049, 0.22204209864139557, 1.2575901746749878, -0.028613422065973282, 0.1562543362379074, 0.10587912797927856, -1.353651523590088, 0.04890250042080879, -0.6711232662200928, 0.4908986985683441,...
func NewActivity(metadata *activity.Metadata) activity.Activity { return &MyActivity{metadata: metadata} }
[ 0.5254675149917603, -1.2250394821166992, 0.07614469528198242, 0.38101768493652344, -0.5346868634223938, -0.05096015706658363, -0.028699614107608795, -0.4048473834991455, -0.09228713810443878, -0.7047272324562073, 0.9237696528434753, 0.4914596676826477, -0.19386348128318787, -0.948610663414...
func NewCloudPcProvisioningPolicyCollectionResponse()(*CloudPcProvisioningPolicyCollectionResponse) { m := &CloudPcProvisioningPolicyCollectionResponse{ BaseCollectionPaginationCountResponse: *NewBaseCollectionPaginationCountResponse(), } return m }
[ -0.350176066160202, -0.2656026780605316, -0.015185384079813957, 0.3626580834388733, -0.017168648540973663, 0.634513258934021, 0.14753542840480804, 0.041310928761959076, -0.20231790840625763, 0.10629251599311829, -0.8027320504188538, -0.6065056324005127, -0.8306913375854492, 0.7986462712287...
func CreateCloudPcProvisioningPolicyCollectionResponseFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) { return NewCloudPcProvisioningPolicyCollectionResponse(), nil }
[ 0.4660834074020386, 0.10212032496929169, 0.19307371973991394, -0.09847032278776169, -0.704399049282074, 0.7102378606796265, 0.1759115308523178, 0.24501606822013855, -0.062400996685028076, -0.20476989448070526, -0.25915664434432983, -0.5232661366462708, -0.10996636003255844, 0.9430242776870...
func (m *CloudPcProvisioningPolicyCollectionResponse) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) { res := m.BaseCollectionPaginationCountResponse.GetFieldDeserializers() res["value"] = func (n i878a80d2330e89d26896388a3f487eef27b0...
[ -0.060461197048425674, 0.313730388879776, 0.381600022315979, -0.27205806970596313, 0.6456453204154968, 0.2644883096218109, 0.3829285204410553, 0.4769130349159241, -0.6548734903335571, -0.5662983655929565, -0.8045474290847778, -0.8160513043403625, -1.244073510169983, 0.03292149305343628, ...
func (m *CloudPcProvisioningPolicyCollectionResponse) GetValue()([]CloudPcProvisioningPolicyable) { val, err := m.GetBackingStore().Get("value") if err != nil { panic(err) } if val != nil { return val.([]CloudPcProvisioningPolicyable) } return nil }
[ 0.4104780852794647, 0.6445309519767761, 0.3441917300224304, 1.0337690114974976, 1.5797768831253052, 1.178565263748169, -0.25138479471206665, -0.19829495251178741, 0.21065565943717957, 0.47769609093666077, 0.11790536344051361, -0.593023955821991, -0.7334984540939331, 0.2043340653181076, 1...
func (m *CloudPcProvisioningPolicyCollectionResponse) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) { err := m.BaseCollectionPaginationCountResponse.Serialize(writer) if err != nil { return err } if m.GetValue() != nil { ca...
[ -0.22651395201683044, -0.2985260486602783, 0.512133777141571, -0.5656773447990417, 0.892615020275116, 0.03368711099028587, 1.1188809871673584, -0.19045037031173706, -0.32249897718429565, -0.10872131586074829, -0.5039844512939453, -0.6082960963249207, -1.0006102323532104, 0.4675039947032928...
func (m *CloudPcProvisioningPolicyCollectionResponse) SetValue(value []CloudPcProvisioningPolicyable)() { err := m.GetBackingStore().Set("value", value) if err != nil { panic(err) } }
[ -0.05383134260773659, 0.5587677359580994, 0.10686232149600983, 1.0525360107421875, 1.0587252378463745, 1.5170235633850098, -0.13165688514709473, -0.160946324467659, -0.13969887793064117, 0.4859852194786072, -0.2667813003063202, -0.9884184002876282, -0.4739239513874054, 0.35122302174568176,...
func NewTrie() *Trie { return &Trie{newNode(), sync.RWMutex{}} }
[ 0.19414544105529785, 0.6447083353996277, -0.1789374053478241, 0.37223637104034424, -0.0986446887254715, -0.2749369740486145, -0.08502962440252304, -0.9210698008537292, -0.4049132466316223, -0.7641708254814148, -0.07889527082443237, 1.5358325242996216, -1.2927099466323853, 0.027219718322157...
func (t *Trie) Add(k string, v int64) { t.lock.Lock() defer t.lock.Unlock() if len(k) == 0 || v < 0 { return } bytes := []byte(k) curr := t.root for _, b := range bytes { if curr.children[b] == nil { curr.children[b] = newNode() } curr.children[b].parent = curr curr = curr.children[b] curr.ke...
[ -0.37369659543037415, -0.02157069928944111, 0.4171358346939087, -0.17767134308815002, -0.35740163922309875, 0.22793181240558624, -0.018902786076068878, 0.7270954847335815, 0.12418520450592041, 0.5601778030395508, 0.007779337465763092, 0.1256881058216095, -1.039962887763977, 0.7373090982437...
func walk(n *Node, remains []byte) *Node { //if n == nil { // return nil //} if len(remains) == 0 { return n } b := remains[0] _, ok := n.children[b] if !ok { return nil } else { return walk(n.children[b], remains[1:]) } }
[ -0.5086736083030701, 0.38542649149894714, 0.622020959854126, 0.22186581790447235, 0.08670861274003983, 0.2521129548549652, 0.37160614132881165, -0.759902834892273, 0.5646240711212158, -1.1733338832855225, -1.1296476125717163, 0.3118020296096802, -0.8389539122581482, 0.499996542930603, -0...
func collect(n *Node, i *int, result *[]int64) { if n == nil { return } // append existing values for v := range n.val { if *i == 0 { return } *i-- *result = append(*result, v) } // sort keys sortedKeys := sortKeys(n.children) for _, k := range sortedKeys { curr := n.children[k] collect(curr,...
[ -0.6261749863624573, 0.49833983182907104, 0.48372405767440796, 0.017167072743177414, -0.49812018871307373, -0.532505989074707, 0.2308354526758194, -1.2774232625961304, -0.9013855457305908, 0.40410372614860535, -0.01718219928443432, -0.22781236469745636, 0.5052423477172852, 1.31594216823577...
func sortKeys(m map[byte]*Node) []byte { keys := make([]byte, 0, len(m)) for k := range m { keys = append(keys, k) } sort.Slice(keys, func(i, j int) bool { return keys[i] < keys[j] }) return keys }
[ -0.9609755873680115, -0.10037215054035187, 0.6316576600074768, -0.4396863579750061, -0.7755710482597351, -0.5092363357543945, -0.5516496300697327, -0.816960334777832, -0.931672215461731, 0.8017710447311401, 0.2011367380619049, 0.6129348874092102, -0.9389262199401855, 0.19404734671115875, ...
func (c *CsvFile) GetRecord(id int) (map[string]interface{}, error) { // Read Locks c.mu.RLock() defer c.mu.RUnlock() // Open our CSV file f, err := os.Open(c.file) if err != nil { return nil, fmt.Errorf("unable to open csv") } defer f.Close() // increment id by 1 because of header id = id + 1 // Employ...
[ -0.6993936896324158, -0.5473310947418213, 0.8721625804901123, -0.49226051568984985, -0.9192450642585754, 0.06275936961174011, -0.9629273414611816, -0.3839840590953827, 0.013063449412584305, -0.09757710993289948, -0.048808615654706955, 0.3792424201965332, -0.1927093118429184, 0.059698022902...