text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (a *MaintenanceWindowApiService) GetAllMaintenanceWindowConfigsExecute(r ApiGetAllMaintenanceWindowConfigsRequest) ([]MaintenanceWindow, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string l...
[ -0.6806110739707947, -0.631006121635437, 1.1415845155715942, 0.41599154472351074, -0.3888656497001648, 0.10408803075551987, -0.12234201282262802, -0.38907885551452637, -0.6370454430580139, 0.3189023733139038, 0.2684241831302643, 0.6982917785644531, -1.6032160520553589, 1.2479244470596313, ...
func (a *MaintenanceWindowApiService) GetMaintenanceWindowConfig(ctx _context.Context, uid string) ApiGetMaintenanceWindowConfigRequest { return ApiGetMaintenanceWindowConfigRequest{ ApiService: a, ctx: ctx, uid: uid, } }
[ -0.06955671310424805, -0.10636762529611588, 0.4353540539741516, 0.0893201157450676, -1.048360824584961, 0.10899151861667633, -0.2579995095729828, 0.08710144460201263, 0.12116110324859619, -0.4719884395599365, 0.03258967399597168, 1.2075817584991455, -1.0419031381607056, 1.5787076950073242,...
func (a *MaintenanceWindowApiService) GetMaintenanceWindowConfigExecute(r ApiGetMaintenanceWindowConfigRequest) (MaintenanceWindow, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFil...
[ -0.5569406747817993, -0.42589452862739563, 1.0322039127349854, -0.1106966957449913, -0.6584512591362, -0.08200614154338837, 0.06780344992876053, -0.20772945880889893, -0.6680226922035217, 0.23627692461013794, 0.36308056116104126, 0.9555241465568542, -1.3200045824050903, 1.0498095750808716,...
func (a *MaintenanceWindowApiService) RemoveMaintenanceWindowConfig(ctx _context.Context, uid string) ApiRemoveMaintenanceWindowConfigRequest { return ApiRemoveMaintenanceWindowConfigRequest{ ApiService: a, ctx: ctx, uid: uid, } }
[ -0.22255752980709076, -0.435197114944458, 0.1801072210073471, -0.07336831092834473, -1.5996326208114624, 0.6067199110984802, 0.08142933994531631, 0.7406001687049866, 0.05966109409928322, 0.08986549824476242, -0.23044803738594055, 0.4845375120639801, -1.4899399280548096, 1.4115099906921387,...
func (a *MaintenanceWindowApiService) RemoveMaintenanceWindowConfigExecute(r ApiRemoveMaintenanceWindowConfigRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes ...
[ -1.0360171794891357, -0.4300641417503357, 0.8513633012771606, -0.12526312470436096, -1.1890956163406372, 0.10127553343772888, 0.2919282913208008, 0.09742168337106705, -0.4985452890396118, 0.749351978302002, 0.18003399670124054, 0.5731770992279053, -1.7526918649673462, 0.9559462070465088, ...
func (a *MaintenanceWindowApiService) StoreMaintenanceWindowConfig(ctx _context.Context) ApiStoreMaintenanceWindowConfigRequest { return ApiStoreMaintenanceWindowConfigRequest{ ApiService: a, ctx: ctx, } }
[ -0.40767791867256165, -0.17691479623317719, 0.29644346237182617, -0.4015929400920868, -0.7778997421264648, 0.39001908898353577, -0.32436898350715637, 0.3404870629310608, 0.17266957461833954, -0.18421442806720734, -0.7238919734954834, 0.5547307133674622, -1.343560814857483, 1.16641974449157...
func (a *MaintenanceWindowApiService) StoreMaintenanceWindowConfigExecute(r ApiStoreMaintenanceWindowConfigRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []by...
[ -0.9318968057632446, -0.36679044365882874, 0.9735235571861267, -0.37012362480163574, -0.7374616265296936, 0.035482656210660934, -0.01930065266788006, -0.19296574592590332, -0.3465229868888855, 0.7167136073112488, 0.038716137409210205, 0.5197914838790894, -1.5237303972244263, 0.974889099597...
func (n *Client) RequestBacklog(addr ledgerstate.Address) { n.sendMessage(&txstream.MsgGetBacklog{Address: addr}) }
[ 0.4986252188682556, 1.0610874891281128, 0.5000750422477722, 0.05667111650109291, -0.03708618879318237, -0.9800900816917419, -0.040975864976644516, -0.4906422197818756, 0.16423583030700684, 0.05295097455382347, -0.12924373149871826, 1.782101035118103, -0.7638163566589355, -0.064627237617969...
func (n *Client) RequestConfirmedTransaction(addr ledgerstate.Address, txid ledgerstate.TransactionID) { n.sendMessage(&txstream.MsgGetConfirmedTransaction{ Address: addr, TxID: txid, }) }
[ 0.3358668088912964, 0.43357816338539124, 0.4243573248386383, 0.4207502603530884, 0.20053398609161377, -0.3489033877849579, -0.9441842436790466, -0.8490511178970337, 0.2959824204444885, -0.21733511984348297, -0.6172680258750916, 1.7506098747253418, 0.020016316324472427, 0.6695824265480042, ...
func (n *Client) RequestTxInclusionState(addr ledgerstate.Address, txid ledgerstate.TransactionID) { n.sendMessage(&txstream.MsgGetTxInclusionState{ Address: addr, TxID: txid, }) }
[ 0.5269821286201477, 0.650879442691803, 0.46340182423591614, -0.29254233837127686, -0.5043911933898926, 0.0306721068918705, -0.678138017654419, -0.12072514742612839, 0.7474714517593384, -0.023166630417108536, 0.3713866174221039, 1.1529158353805542, -0.659509539604187, -0.3614646792411804, ...
func (n *Client) RequestConfirmedOutput(addr ledgerstate.Address, outputID ledgerstate.OutputID) { n.sendMessage(&txstream.MsgGetConfirmedOutput{ Address: addr, OutputID: outputID, }) }
[ 0.43739575147628784, 0.006801723502576351, 0.37321361899375916, 0.7651448249816895, -0.26602017879486084, -1.1219011545181274, 0.009549660608172417, -0.7512212991714478, -0.045111577957868576, -0.7734236717224121, 0.03331539034843445, 1.4902715682983398, -0.23796787858009338, 0.90480804443...
func (n *Client) RequestUnspentAliasOutput(addr *ledgerstate.AliasAddress) { n.sendMessage(&txstream.MsgGetUnspentAliasOutput{ AliasAddress: addr, }) }
[ 0.38744184374809265, 0.0031822037417441607, 0.4402483105659485, -0.6618881225585938, -0.8610730171203613, -0.19681094586849213, 0.6013864874839783, 0.030329817906022072, 0.1851702779531479, -0.5809949040412903, 0.6058942675590515, 1.1690537929534912, -0.027540069073438644, 0.73017531633377...
func (n *Client) PostTransaction(tx *ledgerstate.Transaction) { n.sendMessage(&txstream.MsgPostTransaction{Tx: tx}) }
[ 0.36954155564308167, 0.7661463618278503, 0.15357792377471924, -0.6411965489387512, 0.39284443855285645, 0.14796479046344757, 0.5690677165985107, -0.643165111541748, -0.11897627264261246, 0.22516094148159027, -1.3378781080245972, -0.1252744346857071, -0.8090621829032898, 0.10577253997325897...
func Add(mgr manager.Manager) error { return add(mgr, newReconciler(mgr)) }
[ -0.24057555198669434, 0.12229465693235397, 0.46777674555778503, -0.6655282378196716, 0.4479011595249176, -0.17455056309700012, -0.48020607233047485, 0.6828829646110535, 0.19666412472724915, -0.7739230394363403, 0.224630668759346, 0.617239773273468, -1.010264277458191, 1.3228338956832886, ...
func newReconciler(mgr manager.Manager) reconcile.Reconciler { return &ReconcileBareMetalAsset{client: mgr.GetClient(), scheme: mgr.GetScheme()} }
[ 0.9403221607208252, -0.6415330767631531, 0.4814201891422272, -0.7802947163581848, -0.3975720703601837, 0.13071687519550323, 0.19811245799064636, 0.5612370371818542, -0.4757130444049835, -0.07302388548851013, 0.46339738368988037, 0.08885766565799713, -0.3618386387825012, 0.7278373837471008,...
func add(mgr manager.Manager, r reconcile.Reconciler) error { // Create a new controller c, err := controller.New("baremetalasset-controller", mgr, controller.Options{Reconciler: r}) if err != nil { return err } // Watch for changes to primary resource BareMetalAsset err = c.Watch(&source.Kind{Type: &midasv1al...
[ 0.4890333414077759, -0.4053666889667511, 0.8246710300445557, -0.25199437141418457, 0.20659470558166504, -0.311450332403183, 0.14187686145305634, -0.19723287224769592, 0.01914489082992077, -0.09430452436208725, 0.4013897776603699, 0.6032345294952393, 0.3816688060760498, 0.9751796722412109, ...
func (r *ReconcileBareMetalAsset) Reconcile(request reconcile.Request) (reconcile.Result, error) { reqLogger := log.WithValues("Request.Namespace", request.Namespace, "Request.Name", request.Name) reqLogger.Info("Reconciling BareMetalAsset") // Fetch the BareMetalAsset instance instance := &midasv1alpha1.BareMetal...
[ -0.04484765604138374, -0.5665738582611084, 0.9530797600746155, -0.20849153399467468, 0.12938041985034943, -0.2386283278465271, -0.8837870955467224, -0.17527979612350464, -0.576495885848999, 0.2019898146390915, 0.09410042315721512, 0.3838281035423279, -0.8246891498565674, 0.7265304327011108...
func setLabel(object metav1.Object, key string, value string) { labels := object.GetLabels() if labels == nil { labels = map[string]string{} } if value != "" { labels[key] = value } else { delete(labels, key) } object.SetLabels(labels) }
[ -0.37577128410339355, -0.3360215127468109, 0.6336714029312134, -0.03785797208547592, -0.3277212977409363, 0.5139749050140381, -1.1012085676193237, 0.43270406126976013, 0.6008716821670532, 1.3966854810714722, 0.37359198927879333, 0.7840068936347961, 0.3026031255722046, 0.1740766167640686, ...
func (mg *CapacityProvider) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse var err error for i3 := 0; i3 < len(mg.Spec.ForProvider.AutoScalingGroupProvider); i3++ { rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ ...
[ -1.1057463884353638, 0.014867043122649193, 0.37444597482681274, -0.8372864127159119, 0.19629216194152832, -0.6645483374595642, 0.09607153385877609, -0.3514719009399414, -0.6739097237586975, 0.18188245594501495, 0.4219474494457245, 0.5058550238609314, -0.47404637932777405, 0.277739256620407...
func (mg *Cluster) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var mrsp reference.MultiResolutionResponse var err error mrsp, err = r.ResolveMultiple(ctx, reference.MultiResolutionRequest{ CurrentValues: reference.FromPtrValues(mg.Spec.ForProvider.Capacit...
[ -0.7752320766448975, -0.08575958013534546, 0.2650868594646454, -1.0374059677124023, 0.8074691891670227, -0.5864887237548828, -0.3527349829673767, 0.021535459905862808, -0.4152556359767914, 0.2468484491109848, 0.46665188670158386, 0.48737913370132446, -0.5551101565361023, 0.0920567885041236...
func (mg *Service) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse var mrsp reference.MultiResolutionResponse var err error rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Sp...
[ -0.6581272482872009, 0.38823315501213074, 0.6266406774520874, -1.0458928346633911, 0.7170179486274719, -0.37080806493759155, -0.06252365559339523, -0.8178711533546448, -0.2944856584072113, 0.0631486102938652, 0.49385619163513184, 0.12553492188453674, -0.4231913983821869, 0.3072685897350311...
func (mg *TaskDefinition) ResolveReferences(ctx context.Context, c client.Reader) error { r := reference.NewAPIResolver(c, mg) var rsp reference.ResolutionResponse var err error rsp, err = r.Resolve(ctx, reference.ResolutionRequest{ CurrentValue: reference.FromPtrValue(mg.Spec.ForProvider.ExecutionRoleArn), E...
[ -1.0302727222442627, 0.22007928788661957, 0.4287037253379822, -0.7987396121025085, 0.37459179759025574, -0.41256749629974365, 0.08406472951173782, 0.09262838959693909, -0.5230414271354675, 0.4299604594707489, 0.30436059832572937, 0.7218151688575745, 0.040383778512477875, 0.4675090610980987...
func run(contextName string) error { cfg, err := config.Read("qaq15.yml") if err != nil { return err } // select context var selectedContext config.Context for _, ctx := range cfg.Contexts { if ctx.Name == contextName { selectedContext = ctx break } } if selectedContext.Name == "" { return errors....
[ -0.027591343969106674, -0.17160546779632568, 1.1956052780151367, -0.23878997564315796, 0.23253336548805237, -0.3254903554916382, 0.4901513457298279, -1.0364184379577637, 0.38795435428619385, -0.05796417221426964, -0.07119090110063553, 0.032503608614206314, 0.2584533393383026, 0.42435988783...
func (ShoppingCart) TableName() string { return "shoppingcart" }
[ -0.01830815151333809, -0.4215666949748993, 0.5474591255187988, 1.1803282499313354, -0.26310232281684875, 0.1980011910200119, -0.2426881343126297, 0.2364119589328766, 0.17886444926261902, 0.29030999541282654, -0.4656558036804199, -0.3792071044445038, 0.9233099222183228, 0.3307323157787323, ...
func (cart *ShoppingCart) Validate() error { if cart.UserID == 0 { return ErrUserNotSet } return nil }
[ 0.07934685796499252, 0.24202406406402588, 0.24438482522964478, 0.799639105796814, 0.37383952736854553, 0.3374056816101074, -0.04285932332277298, -0.8978278636932373, -0.21306714415550232, -0.4921085238456726, 0.7661490440368652, 0.2559041380882263, 0.07412990927696228, 1.008628010749817, ...
func (cart *ShoppingCart) HasProduct(productID int64) bool { for _, item := range cart.Items { if item.ProductID == productID { return true } } return false }
[ -0.5501712560653687, -0.31079408526420593, 0.3158925175666809, 0.3950501084327698, 0.33318111300468445, 0.2381512075662613, -0.6976921558380127, -0.32905009388923645, 0.5590874552726746, -0.4706890881061554, -0.7265006899833679, -0.5036140084266663, 0.20443086326122284, 0.29796239733695984...
func (cart *ShoppingCart) GetProduct(productID int64) (ShoppingCartItem, error) { for _, item := range cart.Items { if item.ProductID == productID { return item, nil } } return ShoppingCartItem{}, ErrCartItemNotFound }
[ 0.010099824517965317, -0.12124917656183243, 0.19281598925590515, 1.0572866201400757, 0.08831451833248138, 0.20119671523571014, -0.44528400897979736, -1.2777272462844849, 0.516961932182312, -0.3302096426486969, 0.22921843826770782, 0.13242864608764648, -0.04260428622364998, -0.1719905287027...
func (ShoppingCartItem) TableName() string { return "shoppingcart_item" }
[ -0.0458485372364521, -0.6528745889663696, 0.46581581234931946, 1.263594388961792, -0.03805368021130562, 0.35841184854507446, -0.23605181276798248, 0.39217841625213623, -0.023724818602204323, 0.3392452299594879, -0.5258704423904419, -0.5046854615211487, 0.7248299717903137, -0.36924919486045...
func (f *setXFilesFactor) Description() map[string]types.FunctionDescription { return map[string]types.FunctionDescription{ "setXFilesFactor": { Description: "Takes one metric or a wildcard seriesList and an xFilesFactor value between 0 and 1. When a series needs to be consolidated, this sets the fraction of valu...
[ -0.14874446392059326, 0.44292449951171875, 0.48290586471557617, -0.33091509342193604, -0.33287277817726135, -0.8883318305015564, 0.30032026767730713, -0.5710316896438599, -0.5905236601829529, 0.5480899810791016, -0.3669702410697937, 0.6643308401107788, 0.21243774890899658, 0.32145190238952...
func NewUserFileUploadViaURLRequest(url string) *UserFileUploadViaURLRequest { this := UserFileUploadViaURLRequest{} this.Url = url return &this }
[ -0.26074567437171936, -0.8556068539619446, 0.30548423528671265, 0.4933452606201172, -0.5944202542304993, 0.024799980223178864, 0.2312779575586319, 0.4884689450263977, -0.40786537528038025, -0.4731675088405609, -0.6980329155921936, -0.5372776985168457, -0.09705314040184021, 0.10365028679370...
func NewUserFileUploadViaURLRequestWithDefaults() *UserFileUploadViaURLRequest { this := UserFileUploadViaURLRequest{} return &this }
[ -0.05300404131412506, -0.3968380093574524, 0.14447209239006042, 0.6713204979896545, 0.43672609329223633, -0.13008685410022736, -0.5069953799247742, 0.03941819816827774, -0.46108147501945496, -0.775263786315918, -0.8097250461578369, -1.4972127676010132, -0.17131200432777405, 0.1152877211570...
func (o *UserFileUploadViaURLRequest) GetUrl() string { if o == nil { var ret string return ret } return o.Url }
[ 0.0739423930644989, -0.042130909860134125, -0.39456892013549805, 0.6822824478149414, 0.1600157767534256, 0.8927911520004272, 0.6839874386787415, 0.09065385907888412, 0.789117157459259, -0.5436370968818665, -0.02692997083067894, -1.0034048557281494, -0.43922966718673706, -0.4429484903812408...
func (o *UserFileUploadViaURLRequest) GetUrlOk() (*string, bool) { if o == nil { return nil, false } return &o.Url, true }
[ -0.45074203610420227, 0.888331413269043, 0.6149892210960388, 0.7150799036026001, -0.4417862892150879, 0.031621985137462616, 0.45954611897468567, 0.9115257859230042, -0.6226546168327332, -0.32311582565307617, -1.0948216915130615, -0.42290961742401123, -0.15114209055900574, -0.21814545989036...
func (o *UserFileUploadViaURLRequest) SetUrl(v string) { o.Url = v }
[ -0.49982839822769165, -0.1319924294948578, -0.3673434853553772, 0.5586344003677368, -0.6062914729118347, 0.7808316946029663, 0.4293844699859619, 0.17974241077899933, 0.12715736031532288, 0.3046663999557495, -0.5765877962112427, -0.04449107497930527, -0.5215597748756409, -0.6438066959381104...
func GetTestClient(strategy string) (*gosip.SPClient, error) { var client *gosip.SPClient var err error switch strategy { case "azurecert": client, err = getAzurecertAuthTest() case "azurecreds": client, err = getAzurecredsAuthTest() case "azureenv": client, err = getAzureenvAuthTest() case "device": cli...
[ 0.458737313747406, -0.47886887192726135, 0.6367082595825195, 0.5316532254219055, 0.4459601938724518, -0.21117344498634338, 0.3141770362854004, -0.5199702382087708, 0.6511686444282532, 0.007831940427422523, 0.36931177973747253, 0.5424209237098694, -0.6495537161827087, -0.7505747675895691, ...
func getAzurecertAuthTest() (*gosip.SPClient, error) { return r(&azurecert.AuthCnfg{}, "./config/private.spo-azurecert.json") }
[ 0.48528775572776794, -0.40357938408851624, 0.36410853266716003, 0.5914172530174255, -0.53043532371521, 0.19993434846401215, 0.8234553933143616, 0.3083905577659607, 0.19820992648601532, 0.18895533680915833, 0.14247842133045197, 0.3492192327976227, 0.3688068985939026, -1.034264087677002, 0...
func getAzurecredsAuthTest() (*gosip.SPClient, error) { return r(&azurecreds.AuthCnfg{}, "./config/private.spo-azurecreds.json") }
[ 0.4252345860004425, -0.12254928797483444, 0.2197028547525406, 0.6269398927688599, -0.505055844783783, -0.11721138656139374, 0.40930700302124023, 0.5463857054710388, 0.26585739850997925, -0.2125777304172516, 0.5161589980125427, 0.704003632068634, -0.1837560087442398, -0.6449469327926636, ...
func getAzureenvAuthTest() (*gosip.SPClient, error) { return r(&azureenv.AuthCnfg{}, "./config/private.spo-azureenv.json") }
[ -0.23727259039878845, -0.3201981484889984, 0.46348583698272705, 0.9124733209609985, -0.3081589639186859, 0.4252866804599762, 0.5619550943374634, 0.9159252047538757, 0.4558884799480438, 0.37402909994125366, 0.07793509215116501, 0.45103439688682556, -0.14902158081531525, -0.42301589250564575...
func getDeviceAuthTest() (*gosip.SPClient, error) { return r(&device.AuthCnfg{}, "./config/private.spo-device.json") }
[ -0.3864454925060272, 0.3242153823375702, 0.2063446044921875, 0.9663376212120056, -0.7928979396820068, -0.2192133516073227, 1.0942257642745972, 0.29014238715171814, 0.8020035028457642, -0.5003221035003662, -0.2611199915409088, 0.8213847875595093, 0.08499455451965332, -0.937351644039154, 0...
func getAddinAuthTest() (*gosip.SPClient, error) { return r(&addin.AuthCnfg{}, "./config/private.spo-addin.json") }
[ 0.020044898614287376, -0.07973866909742355, 0.3953286409378052, 0.4969877004623413, -0.8405309915542603, 0.636971116065979, 0.16108401119709015, 0.35619056224823, 0.9004430770874023, -0.32233506441116333, -0.21093131601810455, 0.8475576043128967, -0.484112024307251, -0.5157082676887512, ...
func getAdfsAuthTest() (*gosip.SPClient, error) { // return r(&adfs.AuthCnfg{}, "./config/private.onprem-wap.json") return r(&adfs.AuthCnfg{}, "./config/private.onprem-wap-adfs.json") // return r(&adfs.AuthCnfg{}, "./config/private.onprem-adfs.json") }
[ 0.1921333223581314, -0.5298047065734863, 0.3367873430252075, 0.18753838539123535, -0.9858206510543823, -0.46659061312675476, 0.41099098324775696, -0.006279629189521074, 1.5357630252838135, 0.07154308259487152, 0.3739354610443115, 0.9445697665214539, -0.21128250658512115, -0.581526398658752...
func getNtlmAuthTest() (*gosip.SPClient, error) { return r(&ntlm.AuthCnfg{}, "./config/private.onprem-ntlm.json") }
[ 0.5628092288970947, -0.47480636835098267, 0.24695180356502533, -0.2608172595500946, -1.0365372896194458, -0.02027454972267151, -0.1102052628993988, 0.07082874327898026, 0.4966128468513489, 0.37928375601768494, -0.04907689988613129, 0.4033769369125366, -0.6736413836479187, -0.40416327118873...
func getFbaAuthTest() (*gosip.SPClient, error) { return r(&fba.AuthCnfg{}, "./config/private.onprem-fba.json") }
[ 0.649917721748352, -0.2989994287490845, 0.3854541480541229, 0.7385193109512329, -0.46238020062446594, -0.642120897769928, 0.9594566226005554, 0.11088496446609497, 0.9136742353439331, -0.519392192363739, -0.17321747541427612, 0.9507447481155396, -0.6352548003196716, -0.04099537804722786, ...
func getSamlAuthTest() (*gosip.SPClient, error) { return r(&saml.AuthCnfg{}, "./config/private.spo-user.json") }
[ 1.1982907056808472, -0.3924468755722046, 0.30153828859329224, 0.6852797269821167, -1.1463873386383057, 0.12589913606643677, 0.5704806447029114, 0.8661436438560486, 0.8456355333328247, -0.14185748994350433, -0.8176017999649048, 0.5507368445396423, -0.332225501537323, -0.4911394715309143, ...
func getTmgAuthTest() (*gosip.SPClient, error) { return r(&tmg.AuthCnfg{}, "./config/private.onprem-tmg.json") }
[ 0.3011254668235779, -0.018279653042554855, 0.2597825229167938, -0.430992066860199, -0.6999999284744263, -0.3082579970359802, 0.09469368308782578, 0.10817785561084747, 0.2842628061771393, 0.4612092077732086, -0.39266645908355713, 0.05807221308350563, -0.457436203956604, -0.450761616230011, ...
func testSomeLogMethod(t *testing.T, fn LogMethod, level string, expectOutput bool) { r, w := io.Pipe() defer r.Close() log.InitWithWriter(w) // Generate log message rs := randomString() go func(fn LogMethod, rs string, w io.WriteCloser) { fn(rs) w.Close() }(fn, rs, w) // Check we got the message var out...
[ 0.210636168718338, -0.03543447330594063, 0.8354681134223938, -0.21916325390338898, 0.1222454234957695, -0.6083000898361206, 0.24521151185035706, -0.1058211624622345, -0.4061606824398041, -0.4675024747848511, 0.38517892360687256, -0.18810562789440155, -0.36629462242126465, -0.16218110918998...
func randomString() string { r := make([]rune, 20) for i := range r { r[i] = letters[rand.Intn(len(letters))] } return string(r) }
[ -0.3113965392112732, 0.45294615626335144, 0.03247200697660446, -1.7740914821624756, -0.06706787645816803, 0.8575080037117004, 0.05051542446017265, -0.7346477508544922, 0.6226693391799927, 0.03606540709733963, -0.08094257861375809, 0.4297010898590088, -0.9507498145103455, -0.586300790309906...
func NewWriter(ctx context.Context, w io.Writer) *Writer { return &Writer{ ctx: ctx, w: w, } }
[ 0.09495112299919128, -0.2636573910713196, 0.06491610407829285, 0.17564597725868225, -0.2785589396953583, -0.46573278307914734, 0.06039957329630852, -0.7975963950157166, 0.5870374441146851, -0.059275198727846146, 0.45346543192863464, 0.08948469161987305, 0.10687415301799774, -0.837485909461...
func (th *Writer) ApplyLimit(l *Limiter) { th.limiter = l.Limiter }
[ 0.8928828239440918, -0.25310370326042175, 0.3816252052783966, -0.20751723647117615, 0.4223327934741974, 0.22984319925308228, -0.18392178416252136, 1.3708465099334717, 0.2570064663887024, -0.4802929162979126, 0.033707596361637115, -0.4107881486415863, -0.5202110409736633, 1.2179678678512573...
func (th *Writer) Write(p []byte) (int, error) { if th.limiter == nil { return th.w.Write(p) } n, err := th.w.Write(p) if err != nil { return n, err } if err := th.limiter.WaitN(th.ctx, n); err != nil { return n, err } return n, err }
[ -0.4843681752681732, 0.9281757473945618, 0.5232463479042053, 0.600145697593689, 0.7442606091499329, 0.0992835983633995, 0.8040010929107666, 0.6539580225944519, -0.04257646203041077, 0.45015108585357666, -0.2747504413127899, -0.4336056709289551, -1.2986074686050415, 0.5062786936759949, 0....
func LookupIdent(ident string) TokenType { if tok, ok := keywords[ident]; ok { return tok } return IDENT }
[ -0.22334718704223633, -0.644348680973053, 0.42562559247016907, -0.8930248618125916, -0.8221274614334106, -0.0794038400053978, -0.5894449949264526, -0.37678903341293335, 1.084146499633789, 0.46508803963661194, -0.3940552771091461, 0.051363762468099594, -0.43711942434310913, -0.4439364969730...
func (c *CommonOpts) SetCommon(opts CommonOpts) { c.Version = opts.Version }
[ 0.11545693874359131, -0.6542270183563232, 0.4113161563873291, 0.9437116384506226, 0.3743182122707367, 0.7927248477935791, 0.12749606370925903, 0.5277478098869324, -0.16338194906711578, 0.5278720259666443, -0.5096132159233093, 0.6637554168701172, -0.5376534461975098, 0.4347901940345764, -...
func (TransType) EnumDescriptor() ([]byte, []int) { return file_core_proto_rawDescGZIP(), []int{0} }
[ -0.3099655210971832, 1.0859895944595337, 0.5659672617912292, -0.8232443332672119, 0.23228563368320465, -0.9620922803878784, 0.6270000338554382, -0.1738574504852295, 0.27950775623321533, 0.8717695474624634, -0.6996508240699768, -0.040964700281620026, -0.5692801475524902, 1.4051597118377686,...
func Verse(n int) string { var composer strings.Builder composer.WriteString(fmt.Sprintf("I know an old lady who swallowed a %s.\n", elements[n-1][0])) composer.WriteString(elements[n-1][1]) if n == len(elements) || n == 1 { return composer.String() } composer.WriteRune('\n') for i := n; i > 1; i-- { line...
[ -1.5422723293304443, 0.08594440668821335, 0.9096322655677795, -0.26359349489212036, 0.21961328387260437, -0.20043455064296722, 0.30357542634010315, -0.4227750599384308, 0.08431032299995422, 0.6770257353782654, 0.02000630460679531, 0.05410240590572357, -0.21682512760162354, 0.98334449529647...
func Verses(start, end int) string { var composer strings.Builder for i := start; i <= end; i++ { composer.WriteString(Verse(i)) if i != end { composer.WriteString("\n\n") } } return composer.String() }
[ -0.6728030443191528, -0.27509555220603943, 0.6452695727348328, -0.7191409468650818, -0.44053784012794495, 0.18250806629657745, -0.3348314166069031, -1.2240413427352905, -0.6266095042228699, 0.2770533561706543, 0.5189828872680664, 0.16911983489990234, -0.3629329204559326, 0.2119674384593963...
func Song() string { return Verses(1, len(elements)) }
[ -0.391020804643631, -0.1782783567905426, 0.2936568856239319, 0.466153621673584, -0.4765636622905731, 0.7576916813850403, 0.11512165516614914, -0.36171239614486694, 0.6799221634864807, -0.07948948442935944, -0.2863587737083435, 0.42508283257484436, -0.5380492806434631, 0.30915775895118713, ...
func ensureObjectMeta(existing, required metav1.Object) (bool, error) { modified := resourcemerge.BoolPtr(false) namespace := existing.GetNamespace() name := existing.GetName() labels := existing.GetLabels() annotations := existing.GetAnnotations() resourcemerge.SetStringIfSet(modified, &namespace, required.Get...
[ -0.6908355951309204, -0.8014756441116333, 0.9063813090324402, -0.2814839482307434, 0.025270013138651848, 0.7702122926712036, -0.4522995352745056, -0.3494352400302887, 0.05134223401546478, 0.6656869053840637, -0.6959797143936157, 0.16869300603866577, 0.1702880561351776, -0.05468570813536644...
func setSpecHashAnnotation(objMeta metav1.Object, spec interface{}) error { jsonBytes, err := json.Marshal(spec) if err != nil { return err } specHash := fmt.Sprintf("%x", sha256.Sum256(jsonBytes)) annotations := objMeta.GetAnnotations() if annotations == nil { annotations = map[string]string{} } annotation...
[ -0.0386473685503006, -0.577926754951477, 0.5424047708511353, -0.012197361327707767, -0.17312107980251312, -0.09658622741699219, 0.09160099923610687, 0.3650643825531006, 0.19555112719535828, 0.9567022919654846, -1.3137571811676025, 0.4699409008026123, 0.7665989995002747, 0.16341637074947357...
func expectedMutatingWebhooksConfiguration(name string, previousGenerations []operatorsv1.GenerationStatus) int64 { generation := resourcemerge.GenerationFor(previousGenerations, schema.GroupResource{Group: admissionregistrationv1.SchemeGroupVersion.Group, Resource: "mutatingwebhookconfigurations"}, "", name) if gene...
[ -1.2672512531280518, 0.20550794899463654, 0.3861318528652191, -0.2017275094985962, -0.5025750994682312, -0.8046967387199402, 1.0138883590698242, 0.24864622950553894, 0.14359472692012787, 0.9657723307609558, -0.3044309914112091, -0.22374707460403442, -0.43315809965133667, 1.3074125051498413...
func setMutatingWebhooksConfigurationGeneration(generations *[]operatorsv1.GenerationStatus, actual *admissionregistrationv1.MutatingWebhookConfiguration) { if actual == nil { return } resourcemerge.SetGeneration(generations, operatorsv1.GenerationStatus{ Group: admissionregistrationv1.SchemeGroupVersio...
[ -1.606881856918335, -0.1122085377573967, 0.48428213596343994, 0.4236137568950653, -0.10996323078870773, 0.3055822253227234, 0.7284706830978394, 0.273934930562973, -0.6692513227462769, 1.0260974168777466, -0.642971932888031, -0.4236433804035187, 0.41541391611099243, 1.5334609746932983, -0...
func expectedValidatingWebhooksConfiguration(name string, previousGenerations []operatorsv1.GenerationStatus) int64 { generation := resourcemerge.GenerationFor(previousGenerations, schema.GroupResource{Group: admissionregistrationv1.SchemeGroupVersion.Group, Resource: "validatingwebhookconfigurations"}, "", name) if ...
[ -1.0266505479812622, 0.30791234970092773, 0.29250890016555786, -0.18865743279457092, -0.7037594318389893, -0.5297684669494629, 0.9160247445106506, 0.24777710437774658, -0.24594683945178986, 0.761130690574646, -0.3549651503562927, -0.5951399207115173, -0.4726850390434265, 1.3977919816970825...
func setValidatingWebhooksConfigurationGeneration(generations *[]operatorsv1.GenerationStatus, actual *admissionregistrationv1.ValidatingWebhookConfiguration) { if actual == nil { return } resourcemerge.SetGeneration(generations, operatorsv1.GenerationStatus{ Group: admissionregistrationv1.SchemeGroupVe...
[ -1.2051937580108643, -0.14212055504322052, 0.34027299284935, 0.44076359272003174, -0.31519266963005066, 0.5901642441749573, 0.795515239238739, 0.4394373893737793, -0.8394628167152405, 0.6603707671165466, -0.7628199458122253, -0.5343534350395203, 0.1859101504087448, 1.430571436882019, -0....
func bagOfTokensScore(tokens []int, p int) int { // 先找到最小的能量值,用于换取分数 // 用换到的分数,换取最大的能量 // 循环以往 sort.Ints(tokens) if p < tokens[0] { return 0 } points := 0 // cnt := 0 for h, t := 0, len(tokens)-1; h <= t; { fmt.Println("h, t, points, p:", h, t, points, p) if p > tokens[h] { p -= tokens[h] points++ ...
[ -0.04530614987015724, -0.6240933537483215, 0.7652605175971985, -0.19776049256324768, 0.37339624762535095, 0.13182242214679718, -0.20834220945835114, -0.31846535205841064, -0.5028249621391296, 0.2716573178768158, -0.5437299609184265, 0.17500075697898865, -0.43310707807540894, 0.204139694571...
func (c *AccountClient) Get() (*Account, error) { account := &Account{} err := c.api.Call("GET", "/account", c.token, nil, account) return account, err }
[ -0.3507956862449646, -0.003041692776605487, 0.14770352840423584, 0.41891875863075256, 1.0500918626785278, -0.5485500693321228, 0.09051339328289032, -0.3763134181499481, 0.14467068016529083, -0.8207870125770569, 0.3286527097225189, 1.7161449193954468, -0.30858510732650757, -0.42643916606903...
func nowPST() time.Time { tzone, err := time.LoadLocation("America/Los_Angeles") if err != nil { fmt.Println(err) fmt.Println("Returning time.Now()") return time.Now() } return time.Now().In(tzone) }
[ -0.27757948637008667, -0.4383070468902588, 0.24109409749507904, -0.3285166621208191, -0.9258852005004883, 0.41818445920944214, -0.3340136706829071, 0.12007073312997818, -0.05072472244501114, 0.6962053775787354, -0.4228777289390564, -0.675186276435852, -0.5723391771316528, 1.096769452095031...
func WithUnmarshalResponse(target interface{}, conFn UnmarshalConditionFn) UnmarshalOption { uRes := unmarshalResponse{ target: target, conFn: conFn, } return unmarshalOptionFn(func(opt *unmarshalOption) { opt.unmarshalResponses = append(opt.unmarshalResponses, uRes) }) }
[ 0.4945392310619354, -0.8210045695304871, 0.6170303225517273, -0.9591902494430542, -0.1830345243215561, -0.9778180122375488, 0.4293859601020813, 0.690252423286438, 1.1134006977081299, -0.5173161029815674, 0.1934364140033722, -1.0713939666748047, 0.5937207341194153, -1.1096277236938477, -0...
func NewValidation() *Validation { translator := en.New() uni := ut.New(translator, translator) // this is usually known or extracted from http 'Accept-Language' header // also see uni.FindTranslator(...) trans, found := uni.GetTranslator("en") if !found { log.Fatal("translator not found") } validate := val...
[ -0.291790246963501, 0.35805732011795044, 0.6546439528465271, 0.2619880735874176, -0.8630750775337219, -0.6070035696029663, -0.36673974990844727, -0.01810414157807827, -0.0011439889203757048, 0.10136491805315018, -1.0551517009735107, -0.6484149098396301, 0.5111128687858582, 0.39993780851364...
func (ev *FSAEnv) InitTMat(nst int) { ev.TMat.SetShape([]int{nst, nst}, nil, []string{"cur", "next"}) ev.Labels.SetShape([]int{nst, nst}, nil, []string{"cur", "next"}) ev.TMat.SetZeros() ev.Labels.SetZeros() ev.NNext.SetShape([]int{1}, nil, nil) ev.NextStates.SetShape([]int{nst}, nil, nil) ev.NextLabels.SetShape...
[ -0.16952523589134216, -0.10111169517040253, 0.4627890884876251, -1.7028614282608032, -0.138240784406662, 0.03762434795498848, 0.6771431565284729, -0.274833619594574, -0.1367805302143097, -0.3129890561103821, 0.2999575138092041, 0.24664056301116943, 1.2416373491287231, 1.102065086364746, ...
func (ev *FSAEnv) SetTMat(fm, to int, p float64, lbl string) { ev.TMat.Set([]int{fm, to}, p) ev.Labels.Set([]int{fm, to}, lbl) }
[ -0.6985079050064087, -0.3691733777523041, 0.5079379677772522, -1.7480857372283936, 0.6222490668296814, 0.3899334967136383, -0.6423974633216858, -0.28171902894973755, -1.0208364725112915, 0.07615826278924942, -0.02552962116897106, -0.188096284866333, 0.9451833963394165, 0.3890916109085083, ...
func (ev *FSAEnv) TMatReber() { ev.InitTMat(8) ev.SetTMat(0, 1, 1, "B") // 0 = start ev.SetTMat(1, 2, 0.5, "T") // 1 = state 0 in usu diagram (+1 for all states) ev.SetTMat(1, 3, 0.5, "P") ev.SetTMat(2, 2, 0.5, "S") ev.SetTMat(2, 4, 0.5, "X") ev.SetTMat(3, 3, 0.5, "T") ev.SetTMat(3, 5, 0.5, "V") ev.SetTMat(4...
[ -0.2812373638153076, 0.12471020966768265, 0.8653627634048462, -1.113396406173706, 0.3326600193977356, -0.14639350771903992, 0.8954076170921326, 0.8742184042930603, -0.18180634081363678, 0.5520654320716858, 0.146345853805542, -0.905750572681427, 0.1942460834980011, -0.19081971049308777, 0...
func (ev *FSAEnv) String() string { nn := ev.NNext.Values[0] lbls := ev.NextLabels.Values[0:nn] return fmt.Sprintf("S_%d_%v", ev.AState.Cur, lbls) }
[ -0.7257454991340637, -0.9889307618141174, 0.25064489245414734, -0.7672083377838135, -0.735323429107666, 0.16362249851226807, 0.4452551305294037, -0.8184681534767151, -0.3807053565979004, 0.33510467410087585, 0.5111050605773926, 0.5960348844528198, 0.9938077926635742, 0.38677483797073364, ...
func (ev *FSAEnv) NextState() { nst := ev.TMat.Dim(0) if ev.AState.Cur < 0 || ev.AState.Cur >= nst-1 { ev.AState.Cur = 0 } ri := ev.AState.Cur * nst ps := ev.TMat.Values[ri : ri+nst] ls := ev.Labels.Values[ri : ri+nst] nxt := erand.PChoose64(ps, -1) // next state chosen at random ev.NextStates.Set1D(0, nxt) ...
[ -1.1868494749069214, -0.19278492033481598, 0.37335097789764404, -0.5735743641853333, -0.5226656198501587, 0.15482179820537567, 0.4438949227333069, 0.42201337218284607, 0.85158771276474, 0.2294650375843048, 0.7711355686187744, -0.0418071448802948, 0.5295841097831726, 0.25857287645339966, ...
func generateFilePath(currentAccount *int, fileName string) (string, error) { utcNow := time.Now().UTC() datetimeValue := utcNow.Format("2006_01_02__15_04_05 ") buff := make([]byte, 32) _, err := rand.Read(buff) if err != nil { return "", err } hexString := fmt.Sprintf("%x", buff) fileExtension := fileName[s...
[ -0.40447181463241577, -0.17487244307994843, 0.9148874282836914, -0.24507884681224823, -0.3145298957824707, 0.9609076976776123, 0.4511568248271942, 0.5721020698547363, -0.07107533514499664, 0.4280233085155487, 0.1696443408727646, -0.38845017552375793, -0.4222850799560547, 0.4306316077709198...
func (s *Service) doDelete(ctx *context.Context, url string) *types.Error { bucket := "l8ldiytwq83d8ckg" sess, err := session.NewSession(&aws.Config{}) if err != nil { return nil } svc := s3.New(sess) _, errObject := svc.DeleteObject(&s3.DeleteObjectInput{Bucket: aws.String(bucket), Key: aws.String(url)}) if...
[ -0.7981975078582764, -0.2549799978733063, 1.147629976272583, -0.16832709312438965, 0.33746808767318726, 0.5891452431678772, 0.07120200991630554, -0.6700663566589355, 0.965491771697998, 0.04668625816702843, -0.45657506585121155, 0.6342673897743225, -0.7893827557563782, 0.11425608396530151, ...
func (s *Service) doUpload(ctx *context.Context, fileBytes []byte, url string) *types.Error { before := func(asFunc func(interface{}) bool) error { req := &s3manager.UploadInput{} ok := asFunc(&req) if !ok { return errors.New("invalid s3 type") } req.ACL = aws.String("public-read") return nil } bw, er...
[ -1.064858317375183, 0.018249444663524628, 1.0539076328277588, 0.03335059806704521, 0.626090943813324, 0.4753801226615906, 0.5290224552154541, 0.03311622142791748, -0.35423240065574646, 0.4050908386707306, -0.2211349606513977, 0.08016614615917206, -0.585505485534668, -0.16496632993221283, ...
func NewService(bucket *blob.Bucket, bucketName string, url string) *Service { return &Service{ bucket: bucket, bucketName: bucketName, url: url, } }
[ 0.6579956412315369, -1.0625920295715332, 0.19285514950752258, 0.10302722454071045, -0.5171023607254028, 0.0524110309779644, -0.619040846824646, -0.6966952085494995, -0.6931247115135193, -0.08908337354660034, -0.6789164543151855, 0.7323694229125977, -0.6069011688232422, -0.00550396507605910...
func SetupBucket(ctx *context.Context, config *ConfigParams) (*blob.Bucket, error) { switch config.Cloud { case "aws": return setupAWS(ctx, config) case "gcp": return setupGCP(ctx, config.Bucket) default: return nil, fmt.Errorf("invalid cloud provider: %s", config.Cloud) } }
[ 0.2034122198820114, 0.561272382736206, 0.5220611095428467, 0.4176698923110962, 0.8026809692382812, 0.5310425758361816, 0.6979569792747498, -0.15330494940280914, -0.12801869213581085, 0.30454713106155396, 0.7953341603279114, 0.49295178055763245, 0.3368394672870636, 0.19260674715042114, 1....
func setupGCP(ctx *context.Context, bucket string) (*blob.Bucket, error) { // DefaultCredentials assumes a user has logged in with gcloud. // See here for more information: // https://cloud.google.com/docs/authentication/getting-started creds, err := gcp.DefaultCredentials(*ctx) if err != nil { return nil, err ...
[ 0.32303041219711304, 0.14300890266895294, 0.8448569774627686, -0.3377951383590698, 0.3660011887550354, 0.35353752970695496, -0.20754702389240265, -0.5501872301101685, 0.197586327791214, 0.5489429235458374, -0.25161078572273254, 0.04504896327853203, -0.870518147945404, -0.21391384303569794,...
func setupAWS(ctx *context.Context, config *ConfigParams) (*blob.Bucket, error) { c := &aws.Config{ // Either hard-code the region or use AWS_REGION. Region: aws.String(config.Region), // credentials.NewEnvCredentials assumes two environment variables are // present: // 1. AWS_ACCESS_KEY_ID, and // 2. AWS_...
[ 0.18486128747463226, -0.37565916776657104, 0.7646903991699219, -0.7502146363258362, -0.709936261177063, 0.31103649735450745, -0.002946678549051285, -0.16783729195594788, 0.42936304211616516, 0.2129160314798355, 0.10807257145643234, 0.39460206031799316, 0.7251686453819275, -0.18241579830646...
func TestMacExcel(t *testing.T) { xlsxFile, error := OpenFile("macExcelTest.xlsx") if error != nil { t.Error(error.Error()) return } if xlsxFile == nil { t.Error("OpenFile returned nil FileInterface without generating an os.Error") return } s := xlsxFile.Sheets[0].Cell(0, 0).String() if s != "编号" { t.E...
[ 1.4451311826705933, -0.3124445974826813, 0.617673397064209, 0.07209034264087677, -0.5861116647720337, 0.9706908464431763, 0.4465300738811493, 0.3723513185977936, -0.06069531291723251, -0.08335841447114944, 0.16378556191921234, -0.09593048691749573, -0.27610349655151367, 0.20337636768817902...
func (o *RobokassaSignatureReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewRobokassaSignatureOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return resul...
[ -0.3120395839214325, -1.0896413326263428, 0.48281329870224, 0.8337758183479309, -0.3137534260749817, -1.2716569900512695, 0.028086824342608452, -0.019007930532097816, 0.39056870341300964, 0.5479833483695984, -0.010753801092505455, -0.7139179706573486, -0.8652274012565613, 0.063713975250720...
func NewRobokassaSignatureOK() *RobokassaSignatureOK { return &RobokassaSignatureOK{} }
[ -0.15608173608779907, -1.039063572883606, 0.023193756118416786, 1.3928312063217163, -0.5195811986923218, -0.49157121777534485, 0.8163359761238098, 1.237290382385254, -0.18743206560611725, 0.9702510833740234, -1.2640067338943481, -1.7935487031936646, 0.8433557152748108, 0.5663555264472961, ...
func NewRobokassaSignatureUnauthorized() *RobokassaSignatureUnauthorized { return &RobokassaSignatureUnauthorized{} }
[ -0.43319377303123474, -0.9133808016777039, 0.044669363647699356, 0.655255138874054, -1.1049284934997559, -1.17206871509552, -0.07154546678066254, 0.9544292688369751, -0.14711521565914154, -0.43353280425071716, -1.2078319787979126, -0.03759869933128357, 0.015173503197729588, 0.0222298558801...
func NewRobokassaSignatureForbidden() *RobokassaSignatureForbidden { return &RobokassaSignatureForbidden{} }
[ 0.4836006164550781, -0.37153634428977966, -0.04951365664601326, 1.088273048400879, -0.5969011187553406, -0.24011199176311493, 0.17033927142620087, 0.027998095378279686, 0.05102306231856346, 0.1259315013885498, -0.8510140776634216, -0.44676294922828674, 0.032724618911743164, -0.220555305480...
func NewObserver() Observer { o := observerI{ control: NewControl(), state: NewState(), } return &o }
[ 0.6306958794593811, -1.1072065830230713, 0.25482243299484253, 0.4497537612915039, -0.7338128685951233, -0.02738630212843418, -0.10221747308969498, 0.35529375076293945, 0.1011476144194603, -0.9778732061386108, -1.0318387746810913, -1.2924872636795044, -0.30989643931388855, -0.29281002283096...
func (o *observerI) Notify(value interface{}) { o.Lock() defer o.Unlock() o.state.Value = value next := NewState() o.state.Next = next close(o.state.C) o.state = o.state.Next }
[ -0.39740657806396484, 1.042985200881958, 0.2825911045074463, -0.009631277993321419, -0.5904026627540588, -0.010076331906020641, 0.44181251525878906, 0.027648795396089554, 0.27782145142555237, 0.29557040333747864, -0.9088444709777832, -0.16729307174682617, -0.1577313393354416, 0.29449588060...
func (o *observerI) Subscribe() Subscriber { o.RLock() defer o.RUnlock() return &subscriber{state: o.state} }
[ 0.7526916861534119, 0.17573316395282745, 0.2788316309452057, 0.2173154503107071, -0.4698731303215027, -0.1821686327457428, -0.5371366739273071, -0.20331649482250214, -0.44455865025520325, -0.9217796921730042, 0.2530837655067444, 0.05310682952404022, -0.3597567081451416, -0.349547415971756,...
func EncodeGRPCLoremRequest(_ context.Context, r interface{}) (interface{}, error) { req := r.(LoremRequest) return &pb.LoremRequest{ RequestType: req.RequestType, Max: req.Max, Min: req.Min, }, nil }
[ -1.13120698928833, -0.4525212347507477, 0.5684170722961426, 0.3079075515270233, -0.29374048113822937, 0.17730087041854858, -0.7360451817512512, -1.0700430870056152, 0.11733616888523102, -0.010307601653039455, -0.09811067581176758, 1.0135705471038818, -0.9496303796768188, 0.4081188142299652...
func DecodeGRPCLoremRequest(_ context.Context, r interface{}) (interface{}, error) { req := r.(*pb.LoremRequest) return LoremRequest{ RequestType: req.RequestType, Max: req.Max, Min: req.Min, }, nil }
[ -1.2675089836120605, -0.6270326972007751, 0.5086470246315002, 0.050359103828668594, -0.29708734154701233, -0.272104948759079, -0.5681972503662109, -0.6859498023986816, -0.2533387243747711, -0.4639175534248352, -0.10968668758869171, 0.7170011401176453, -1.0382721424102783, 0.109508827328681...
func EncodeGRPCLoremResponse(_ context.Context, r interface{}) (interface{}, error) { resp := r.(LoremResponse) return &pb.LoremResponse{ Message: resp.Message, Err: resp.Err, }, nil }
[ -0.24520735442638397, -1.1771087646484375, 0.36982396245002747, -0.1038292720913887, 0.0664205253124237, -0.15626513957977295, 0.33092519640922546, -1.0464451313018799, 0.7902300953865051, 0.3496026396751404, -0.42401590943336487, 0.38957104086875916, -1.694102168083191, -0.097266696393489...
func DecodeGRPCLoremResponse(_ context.Context, r interface{}) (interface{}, error) { resp := r.(*pb.LoremResponse) return LoremResponse{ Message: resp.Message, Err: resp.Err, }, nil }
[ -0.44692400097846985, -1.2855732440948486, 0.35601022839546204, -0.4205763339996338, 0.2661377489566803, -0.4760979413986206, 0.32995519042015076, -0.7308040857315063, 0.24978940188884735, -0.1414443552494049, -0.4378511607646942, 0.04860581085085869, -1.6647255420684814, -0.34698548913002...
func MakeKeyRewriterForNewTableIDs( tables []*sqlbase.TableDescriptor, newTableIDs map[sqlbase.ID]sqlbase.ID, ) (storageccl.KeyRewriter, error) { var kr storageccl.KeyRewriter for _, table := range tables { newTableID, ok := newTableIDs[table.ID] if !ok { return nil, errors.Errorf("missing new table ID for [%...
[ -0.4993630349636078, -0.2628832161426544, 0.4403753876686096, 0.21188342571258545, -0.36222410202026367, -0.20843738317489624, -0.5039248466491699, -0.4831893742084503, -0.7834112048149109, 0.7974880933761597, -0.14732685685157776, 0.07156579941511154, -0.40061330795288086, 1.0150676965713...
func MakeKeyRewriterForNewTableID( desc *sqlbase.TableDescriptor, newTableID sqlbase.ID, ) storageccl.KeyRewriter { newDesc := *desc newDesc.ID = newTableID // The PrefixEnd() of index 1 is the same as the prefix of index 2, so use a // map to avoid duplicating entries. prefixes := make(map[string]struct{}) va...
[ -0.24810145795345306, -0.5353009700775146, 0.8218858242034912, -0.1953606754541397, -0.39686471223831177, -0.686729371547699, -0.12600019574165344, -0.3682117462158203, -0.24908342957496643, 0.2311922162771225, -0.022691326215863228, 0.3927136957645416, 0.10172487050294876, 0.2474745810031...
func (_m *AWSer) ConfigureAWSCLICredentials(accessKeyID string, secretAccessKey string, sessionToken string, profile string) { _m.Called(accessKeyID, secretAccessKey, sessionToken, profile) }
[ 0.44579973816871643, -0.15313199162483215, 0.4455607235431671, -0.47606801986694336, -0.26119264960289, -0.1821446418762207, -0.6523346304893494, -0.4560694992542267, 0.045065853744745255, 0.2939389944076538, -0.216135635972023, 0.49951696395874023, 1.0394021272659302, -0.03712483122944832...
func (_m *AWSer) UpdateLambdasFromS3Assets(lambdaNames []string, bucket string, namespace string) { _m.Called(lambdaNames, bucket, namespace) }
[ -0.20368200540542603, -0.3538658022880554, 0.4703281819820404, -1.278169870376587, -0.7575088739395142, 0.677218496799469, -0.5138964056968689, -0.10556917637586594, 0.38043293356895447, 0.25571388006210327, -0.7674698829650879, 0.7192108631134033, 0.787501335144043, -0.333856463432312, ...
func (_m *AWSer) UploadDirectoryToS3(localPath string, bucket string, prefix string) ([]string, []string) { ret := _m.Called(localPath, bucket, prefix) var r0 []string if rf, ok := ret.Get(0).(func(string, string, string) []string); ok { r0 = rf(localPath, bucket, prefix) } else { if ret.Get(0) != nil { r0 ...
[ -0.8899566531181335, 0.2751924395561218, 0.654981791973114, -0.38577407598495483, 0.131332129240036, -0.5065275430679321, 0.15458205342292786, -0.09967393428087234, -0.08151926845312119, 0.36812251806259155, -0.5657804012298584, 0.4928479790687561, 0.7736136317253113, 0.25188934803009033, ...
func shortNameAliasesConfPath(ctx *types.SystemContext) (string, error) { if ctx != nil && len(ctx.UserShortNameAliasConfPath) > 0 { return ctx.UserShortNameAliasConfPath, nil } if rootless.GetRootlessEUID() == 0 { // Root user or in a non-conforming user NS return filepath.Join("/var/cache", userShortNamesFi...
[ 0.6033549904823303, -0.8415873646736145, 0.4395667016506195, -0.037810828536748886, -0.556484043598175, 0.4577242136001587, 0.5017606019973755, 0.0755174309015274, 0.11780736595392227, 0.18555034697055817, 0.13140380382537842, 0.02731168083846569, 0.15196940302848816, 0.9106311798095703, ...
func (c *shortNameAliasConf) nonempty() bool { copy := *c // A shallow copy if copy.Aliases != nil && len(copy.Aliases) == 0 { copy.Aliases = nil } return !reflect.DeepEqual(copy, shortNameAliasConf{}) }
[ -0.1620776653289795, -0.19803430140018463, 0.5384332537651062, -0.4685928523540497, 0.11953059583902359, -0.041740018874406815, 0.09109225869178772, 0.15757954120635986, -0.9320799112319946, 1.2247416973114014, -1.4339731931686401, -0.056434839963912964, 0.4120129644870758, 0.3573937118053...
func editShortNameAlias(ctx *types.SystemContext, name string, value *string) error { if err := validateShortName(name); err != nil { return err } if value != nil { if _, err := parseShortNameValue(*value); err != nil { return err } } confPath, lock, err := shortNameAliasesConfPathAndLock(ctx) if err !=...
[ 0.2143392115831375, -0.812512218952179, 0.5805299878120422, -0.8252994418144226, -0.5097503066062927, 0.07263610512018204, 0.6339455246925354, 0.3263464570045471, 0.12768156826496124, 0.7597102522850037, -0.9502789378166199, 0.7174174189567566, 0.2606293857097626, 0.1964728832244873, 0.9...
func parseShortNameValue(alias string) (reference.Named, error) { ref, err := reference.Parse(alias) if err != nil { return nil, fmt.Errorf("parsing alias %q: %w", alias, err) } if _, ok := ref.(reference.Digested); ok { return nil, fmt.Errorf("invalid alias %q: must not contain digest", alias) } if _, ok :...
[ 0.6786168813705444, -0.968095600605011, 0.6629133820533752, -0.5972076654434204, -1.07377290725708, -0.2189696729183197, 0.6613271236419678, -0.4746744930744171, 0.17978344857692719, 0.09038715809583664, 0.10110801458358765, 0.6775543689727783, 0.2639768123626709, 1.1580641269683838, 0.8...