text
stringlengths
11
6.3k
embedding
listlengths
768
768
func verifyVolumeMetadataOnStatefulsets(client clientset.Interface, ctx context.Context, namespace string, statefulset *appsv1.StatefulSet, replicas int32, allowedTopologyHAMap map[string][]string, categories []string, storagePolicyName string, nodeList *v1.NodeList, f *framework.Framework) { // Waiting for pods sta...
[ 0.03640466183423996, -0.17446428537368774, 0.7225937843322754, -0.06223345547914505, 0.12931808829307556, 0.6060782670974731, -0.220578134059906, -0.4762413799762726, -0.00012861327559221536, 0.3253633975982666, 0.2828123867511749, 0.6306038498878479, 0.18603141605854034, 0.668866872787475...
func verifyVolumeMetadataOnDeployments(ctx context.Context, client clientset.Interface, deployment *appsv1.Deployment, namespace string, allowedTopologyHAMap map[string][]string, categories []string, nodeList *v1.NodeList, storagePolicyName string) { pods, err := GetPodsForMultipleDeployment(client, deployment) g...
[ 0.3152284622192383, -0.36796069145202637, 0.780572772026062, 1.0380371809005737, 0.5951636433601379, 0.8174587488174438, -0.09604577720165253, -0.3428611755371094, 0.21200479567050934, 0.376732736825943, 0.43220168352127075, 0.16254281997680664, 0.13122116029262543, 0.6116916537284851, 0...
func execStopContainerOnGc(sshClientConfig *ssh.ClientConfig, svcMasterIP string, containerName string, gcMasterIP string, svcNamespace string) error { sshSecretName := GetAndExpectStringEnvVar(sshSecretName) cmdToGetPrivateKey := fmt.Sprintf("kubectl get secret %s -n %s -o"+ "jsonpath={'.data.ssh-privatekey'} | b...
[ 0.5489047765731812, 0.0459611602127552, 1.1841059923171997, 0.05251941457390785, 0.460885226726532, -0.012825828045606613, 0.16356459259986877, -0.1952032744884491, -1.129015564918518, -0.36350908875465393, 0.10442127287387848, 0.4176081120967865, 0.46039682626724243, 0.36997413635253906, ...
func getPodsFromNodeNames(pods []*v1.Pod, nodeNames []string) []string { var podScheduledOnNodes []string for _, pod := range pods { if isValuePresentInTheList(nodeNames, pod.Spec.NodeName) { podScheduledOnNodes = append(podScheduledOnNodes, pod.Name) } } return podScheduledOnNodes }
[ -0.9790481925010681, -0.895610511302948, 0.5401090979576111, 0.027258623391389847, 0.05816984176635742, -0.05515144765377045, -1.0970261096954346, -0.33796656131744385, -0.24695385992527008, 1.2583897113800049, 0.3178146481513977, 0.3393244743347168, -0.15163934230804443, 0.045748721808195...
func getNodesOfZone(nodeList *v1.NodeList, availabilityZone string) []string { var nodeNames []string for _, node := range nodeList.Items { nodeLabels := node.Labels if nodeLabels[zoneKey] == availabilityZone { nodeNames = append(nodeNames, node.Name) } } return nodeNames }
[ -0.9847468137741089, -0.7486987113952637, 0.35046789050102234, -0.09141238033771515, -0.34083354473114014, -0.23005366325378418, -0.26425281167030334, 0.3025524616241455, 0.6067770719528198, 1.6893913745880127, -0.37038350105285645, 0.5438538193702698, 0.029614953324198723, 0.2252816855907...
func getClusterNameFromZone(ctx context.Context, availabilityZone string) string { clusterName := "" clusterComputeResourceList, _, err := getClusterName(ctx, &e2eVSphere) gomega.Expect(err).NotTo(gomega.HaveOccurred()) nimbusGeneratedVcPwd := GetAndExpectStringEnvVar(vcUIPwd) cmd := fmt.Sprintf("dcli +username %s...
[ 0.20752032101154327, -0.7666671276092529, 0.7756545543670654, 0.3556584417819977, -0.48080191016197205, -0.1814977377653122, 0.8098145127296448, -0.036531757563352585, 0.49614253640174866, 0.7829360365867615, 0.087387315928936, 0.7997018098831177, -0.4883412718772888, 0.539158046245575, ...
func waitForPodsToBeInTerminatingPhase(sshClientConfig *ssh.ClientConfig, svcMasterIP string, podName string, namespace string, timeout time.Duration) error { kubeConfigPath := GetAndExpectStringEnvVar(gcKubeConfigPath) waitErr := wait.PollImmediate(poll, timeout, func() (bool, error) { cmd := fmt.Sprintf("kubectl...
[ -0.32259631156921387, 0.1903086155653, 0.77386873960495, -0.21212957799434662, 0.013845481909811497, 0.15376229584217072, -0.9701617360115051, -0.2380579710006714, -0.5640242695808411, 0.22661170363426208, 0.20554576814174652, -0.5727170705795288, -0.9434070587158203, 0.010651540011167526,...
func getApiServerIpOfZone(ctx context.Context, zone string) string { var hostNames []string apiServerIpInZone := "" // Get Cluster details clusterComputeResource, _, err := getClusterName(ctx, &e2eVSphere) gomega.Expect(err).NotTo(gomega.HaveOccurred()) apiServerIPs := GetAndExpectStringEnvVar(apiServerIPs) apiS...
[ -1.2294083833694458, -1.0780261754989624, 0.5796912908554077, -0.7915054559707642, -0.9311541318893433, -0.5423649549484253, 0.7899641990661621, 0.5352786779403687, 0.5303971767425537, 0.36178264021873474, -0.0506473183631897, -0.20806735754013062, -0.9241800308227539, 0.1386796534061432, ...
func waitForApiServerToBeUp(svcMasterIp string, sshClientConfig *ssh.ClientConfig, timeout time.Duration) error { kubeConfigPath := GetAndExpectStringEnvVar(gcKubeConfigPath) waitErr := wait.PollImmediate(poll, timeout, func() (bool, error) { cmd := fmt.Sprintf("kubectl get ns,sc --kubeconfig %s", kubeConfigPat...
[ -0.9502849578857422, 0.31797751784324646, 0.8098534941673279, -0.5867985486984253, -0.19071990251541138, 0.3385690152645111, -0.4312743544578552, -0.009073379449546337, -0.5584390163421631, 0.46482259035110474, -0.40812915563583374, -0.2582505941390991, -0.7552754878997803, 0.0770029127597...
func enterHostIntoMM(ctx context.Context, host *object.HostSystem, mmModeType string, timeout int32, evacuateVms bool) { mmSpec := vim25types.VsanHostDecommissionMode{ ObjectAction: mmModeType, } hostMMSpec := vim25types.HostMaintenanceSpec{ VsanMode: &mmSpec, Purpose: "", } task, err := host.EnterMaintena...
[ 0.008747593499720097, -0.03413103148341179, 0.721489429473877, -0.38166332244873047, 0.5881472229957581, 0.41840213537216187, 0.20063817501068115, -0.17241668701171875, -0.2313651591539383, 0.22581076622009277, -0.22802859544754028, 0.3358984589576721, -1.2126245498657227, 0.06469696015119...
func exitHostMM(ctx context.Context, host *object.HostSystem, timeout int32) { task, err := host.ExitMaintenanceMode(ctx, timeout) gomega.Expect(err).NotTo(gomega.HaveOccurred()) _, err = task.WaitForResult(ctx, nil) gomega.Expect(err).NotTo(gomega.HaveOccurred()) framework.Logf("Host: %v exited from maintenance...
[ -0.3825054466724396, 0.31826522946357727, 0.5296944379806519, -0.3499530553817749, 0.1986146718263626, 0.9086006283760071, -0.007703594863414764, -0.0014473729534074664, -0.9350578188896179, 0.4859195947647095, -0.7427085041999817, -0.5292777419090271, -0.2707257568836212, 0.68128174543380...
func getPodAffinityTerm(allowedTopologyHAMap map[string][]string) []v1.PodAffinityTerm { var podAffinityTerm v1.PodAffinityTerm var podAffinityTerms []v1.PodAffinityTerm var labelSelector *metav1.LabelSelector var labelSelectorRequirements []metav1.LabelSelectorRequirement var labelSelectorRequirement metav1.Label...
[ -0.5690105557441711, -0.5004282593727112, 0.6652999520301819, 0.0024605300277471542, -0.20395511388778687, 0.5755159854888916, -0.16838125884532928, -0.06342338770627975, 0.33634400367736816, 0.5212098956108093, 0.2147875279188156, 0.2831382751464844, -0.6435486078262329, 0.052983563393354...
func verifyStsVolumeMetadata(client clientset.Interface, ctx context.Context, namespace string, statefulset *appsv1.StatefulSet, replicas int32, allowedTopologyHAMap map[string][]string, categories []string, storagePolicyName string, nodeList *v1.NodeList, f *framework.Framework) { // Waiting for pods status to be R...
[ -0.08665966987609863, -0.13750985264778137, 0.7758007645606995, -0.005866178311407566, 0.25077080726623535, 0.8321669101715088, -0.23797065019607544, -0.2712200880050659, -0.2679644525051117, 0.49608927965164185, 0.2614230215549469, 0.8111443519592285, 0.19724351167678833, 0.67172795534133...
func searchCommitsInRepo(ctx context.Context, db dbutil.DB, op search.CommitParameters) (results []*result.CommitMatch, limitHit, timedOut bool, err error) { var matches []result.Match err = searchCommitsInRepoStream(ctx, db, op, streaming.StreamFunc(func(event streaming.SearchEvent) { matches = append(matches, eve...
[ -0.12917779386043549, 0.4910009205341339, 0.722529411315918, -0.11990584433078766, -0.1007138341665268, -0.5955078601837158, -0.19149249792099, -0.48195189237594604, -1.14882230758667, 0.38602447509765625, -0.04083167389035225, 0.12551040947437286, -0.9711137413978577, -0.24119257926940918...
func printVersion() { fmt.Printf("%s v%s\n", path.Base(os.Args[0]), version()) os.Exit(0) }
[ 0.2014949470758438, -1.3073582649230957, 0.6389147639274597, 0.6170946955680847, 0.8819329142570496, 1.1490778923034668, 0.6322148442268372, 0.1944447159767151, -1.3762010335922241, 0.7843549847602844, -0.2686372399330139, 0.6414369940757751, -0.4299260973930359, 0.709263801574707, 0.112...
func isXML(docNodeName string) DetectFunc { return func(p []byte) bool { d := xml.NewDecoder(bytes.NewReader(p)) doc, err := nextStartElement(d) return err == nil && doc.Name.Local == docNodeName } }
[ 0.6011180281639099, -0.24289874732494354, 0.5007228255271912, 0.8481079339981079, -0.8715366721153259, -0.2533167004585266, -0.27805736660957336, 0.31140339374542236, 1.4617279767990112, -0.45451152324676514, -0.2183198183774948, 0.5182249546051025, 0.021919654682278633, -0.127569839358329...
func NewTimeRow() TimeRow { var t TimeRow t.Begin = "-" t.CheckIn = "-" t.CheckOut = "-" t.Laatste = "-" return t }
[ -0.08004716038703918, 0.05702502280473709, 0.3201640248298645, -0.4072912335395813, -0.579256534576416, 0.007253442425280809, -0.9361170530319214, -0.6379523277282715, 0.009817385114729404, 1.4015545845031738, -0.32416197657585144, 0.342263400554657, -0.23050034046173096, 0.918935179710388...
func (t *Times) UpdateObject(date string, fields []Field) error { loc, _ := time.LoadLocation("Europe/Amsterdam") // should not be hardcoded but idgaf for _, field := range fields { if field.Time == "" { continue } fieldLocalTime, err := time.ParseInLocation("1-2-2006 15:04", fmt.Sprintf("%s %s", date, field...
[ -0.9828125238418579, -0.7508941888809204, 0.7111223936080933, -0.7892628908157349, -0.6227737665176392, 0.3607136309146881, -0.1554369479417801, -0.2086741179227829, -0.359780490398407, 1.1923539638519287, -1.074240803718567, -0.6034854054450989, 0.3069373071193695, -0.25259602069854736, ...
func SaveTimes(dbmap *gorp.DbMap, date time.Time, fields []Field) (err error) { dateStr := fmt.Sprintf("%d-%d-%d", date.Month(), date.Day(), date.Year()) times := new(Times) err = dbmap.SelectOne(times, "select * from times where date=$1", dateStr) //if err != nil && err.Error() == "sql: no rows in result set" { i...
[ -1.030423879623413, 0.8013519048690796, 1.006555199623108, -0.6685141324996948, 0.034117016941308975, 0.054355427622795105, 0.26561984419822693, -0.5164688229560852, -0.09943973273038864, 0.7214975953102112, -0.7262621521949768, -1.2369248867034912, -0.6655330061912537, 0.5098435282707214,...
func GetAllTimes(dbmap *gorp.DbMap, year, month int64) (rows []TimeRow, err error) { var all []Times rows = make([]TimeRow, 0) _, err = dbmap.Select(&all, "select * from times where extract (year from date)=$1 and extract (month from date)=$2 order by date desc ", year, month) if err != nil { return rows, err } ...
[ 0.11046488583087921, 0.3849376440048218, 0.9272937774658203, 0.31482359766960144, -0.5904409885406494, 0.03137056529521942, -0.5813048481941223, -0.10872479528188705, 0.21284078061580658, 1.020080327987671, -0.014044937677681446, -0.28377795219421387, -0.13333167135715485, 1.19217467308044...
func WithPrinter(p io.Writer) Option { return func(s *initSpec) { s.Printer = p } }
[ 0.553080677986145, -0.7960847616195679, 0.46788471937179565, -0.19227176904678345, -0.5483249425888062, 0.5541883707046509, 0.5492477416992188, -0.14515042304992676, 0.2243393063545227, -1.0367182493209839, 0.2418316900730133, -0.3926696181297302, 0.15451595187187195, 0.5238615274429321, ...
func WithKeySize(size int) Option { return func(s *initSpec) { s.KeySize = size } }
[ 0.3575962781906128, -0.15443870425224304, 0.45509272813796997, -0.3201720714569092, -0.9597288966178894, -0.2467123121023178, 0.28656935691833496, -0.3857329189777374, 0.28722599148750305, 0.06704822182655334, -0.9570052623748779, -0.06758911907672882, -0.2097092568874359, 0.05664816498756...
func WithConfig(cfg *config.Config) Option { return func(s *initSpec) { s.Config = cfg } }
[ 1.2821301221847534, -0.2542610168457031, 0.46810805797576904, -0.3062150776386261, -0.10374636948108673, -0.00819348730146885, 0.6487964391708374, 0.7498168349266052, 0.5282977819442749, -0.11473236978054047, -0.6737052202224731, -0.3811938166618347, 0.718356728553772, 0.26468828320503235,...
func NewEventsService(sling *sling.Sling) *EventService { return &EventService{ sling: sling, endpoint: "events", } }
[ 0.7423237562179565, -0.3687818944454193, -0.29809117317199707, -0.6373609900474548, 0.007262040860950947, -1.1373571157455444, -0.9249575138092041, -0.9110905528068542, 0.5092229843139648, -0.2980896830558777, -0.3536244332790375, 0.34352099895477295, -0.4273037612438202, 0.789741754531860...
func (c *EventService) List(params *EventParams) ([]Event, *http.Response, error) { output := &struct { Data []Event `json:"data"` }{} resp, err := doList(c.sling, c.endpoint, params, output) return output.Data, resp, err }
[ -0.41630348563194275, -0.8409650921821594, 0.7542270421981812, 0.028939008712768555, 0.9000495076179504, -0.7133511304855347, -0.9649766683578491, 0.03798283264040947, 0.02304781787097454, 0.45467936992645264, -0.7966243624687195, 0.7115262746810913, 0.10153016448020935, 0.5662447810173035...
func (c *EventService) Get(id string) (Event, *http.Response, error) { output := &struct { Data Event `json:"data"` }{} path := fmt.Sprintf("%s/%s", c.endpoint, id) resp, err := doGet(c.sling, path, output) return output.Data, resp, err }
[ -0.4970274269580841, -0.6243141889572144, 0.8677538633346558, -0.6975182890892029, 0.24731013178825378, -0.7105066776275635, -1.1519606113433838, -0.637147068977356, -0.08992499858140945, -0.3401402235031128, -0.7143247723579407, 1.139331579208374, -0.09484321624040604, -0.0766806751489639...
func (c *EventService) Create(input *EventCreateInput) (CreateResult, *http.Response, error) { return doCreate(c.sling, c.endpoint, input) }
[ -0.7579271793365479, 0.2367803156375885, 0.353510320186615, 1.2097079753875732, 0.2904142737388611, 0.4088788628578186, -0.1659425050020218, -0.42417222261428833, -0.0739271342754364, -0.3982267379760742, -0.12783683836460114, -0.32960477471351624, -0.4280663728713989, 0.7709973454475403, ...
func Load() { developer := beego.NewNamespace("/developer", beego.NSRouter("", &developer.Home{}, "GET:Display"), data.Get(), api.Get(), tools.Get(), ) beego.AddNamespace(developer) }
[ 0.4015544354915619, 1.1212739944458008, 0.2538098692893982, -0.49495604634284973, 0.06693432480096817, 0.3151950538158417, -0.27153444290161133, -0.18485605716705322, 0.48788025975227356, -0.8135112524032593, -0.8401145935058594, 0.6862874627113342, 0.3000849783420563, 1.073304533958435, ...
func (o *GetGroupListPublicV1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGetGroupListPublicV1OK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return r...
[ -0.6425485610961914, -0.1901223510503769, 0.7262508273124695, 0.35452744364738464, -0.1866442710161209, -0.7726932168006897, -0.06277496367692947, -1.2914446592330933, 0.3470189571380615, 0.3524508476257324, 0.1884315460920334, 0.004086039029061794, -1.0046133995056152, 0.21486808359622955...
func NewGetGroupListPublicV1OK() *GetGroupListPublicV1OK { return &GetGroupListPublicV1OK{} }
[ -0.1370779275894165, -0.03677823767066002, 0.29306578636169434, 1.4796953201293945, -0.045892588794231415, 0.3133193850517273, -0.13366921246051788, 0.4300977885723114, -0.824080228805542, 0.69817715883255, -0.4529466927051544, -0.5124743580818176, -0.1356121301651001, -0.04689561948180199...
func NewGetGroupListPublicV1BadRequest() *GetGroupListPublicV1BadRequest { return &GetGroupListPublicV1BadRequest{} }
[ -0.6466644406318665, -0.05305702984333038, 0.46764272451400757, 1.3838653564453125, -0.15717007219791412, -0.30625686049461365, -1.4076112508773804, 0.599218487739563, -1.0492630004882812, -0.4171181619167328, -0.041065674275159836, 0.3557754158973694, -0.9521166682243347, 0.43466618657112...
func NewGetGroupListPublicV1Unauthorized() *GetGroupListPublicV1Unauthorized { return &GetGroupListPublicV1Unauthorized{} }
[ -0.6392481923103333, -0.1944008767604828, 0.5379045009613037, 1.24068284034729, -0.29394352436065674, -0.05680897831916809, -0.43662580847740173, 0.8630470633506775, -0.4319220781326294, -0.564628541469574, -0.2786702513694763, 0.6794800162315369, -0.3915341794490814, -0.3682107925415039, ...
func NewGetGroupListPublicV1Forbidden() *GetGroupListPublicV1Forbidden { return &GetGroupListPublicV1Forbidden{} }
[ 0.114338219165802, 0.2071458250284195, 0.3400309085845947, 1.5292651653289795, -0.38528549671173096, 0.5378068089485168, -0.06617467850446701, -0.14144247770309448, -0.7503719925880432, 0.010981157422065735, 0.043613553047180176, 0.48764365911483765, -0.6020916104316711, -0.592838585376739...
func (p *CollectPayload) AddData(data []float64) error { if len(p.Sensors) != len(data) { return fmt.Errorf("invalid data, got %d values, expect value for each of %d sensors", len(data), len(p.Sensors)) } p.Values = append(p.Values, data) return nil }
[ -0.2579440474510193, 0.4901757538318634, 0.48767027258872986, -0.048955097794532776, 1.0102368593215942, 1.5165579319000244, -0.9366359710693359, -0.7321681976318359, 0.19772616028785706, -1.0664632320404053, 0.569756031036377, -0.27250945568084717, -0.4565361738204956, 0.9124420881271362,...
func NewCollector(apiKey, hmacKey string) (*Collector, error) { hmacKeyBuf, err := hex.DecodeString(hmacKey) if err != nil { return nil, fmt.Errorf("parsing hmac key: %v", err) } baseURL := IngestionBaseURL host := os.Getenv("EI_HOST") if host == "localhost" { baseURL = "http://localhost:4810" } else if stri...
[ 0.03674092888832092, -0.4861554205417633, 0.44670960307121277, -0.24748387932777405, 0.08675795793533325, -0.812574028968811, -0.6672355532646179, 0.26068565249443054, 0.05305095762014389, 0.7720210552215576, 0.6808440685272217, -0.35222944617271423, -1.0542888641357422, 0.873454749584198,...
func removeDuplicates(nums []int) int { length, newLength := len(nums), 1 for i := 1; i < length; i++ { if nums[i-1] != nums[i] { nums[newLength] = nums[i] newLength++ } } return newLength }
[ -0.10393652319908142, 0.3171605169773102, 0.9045853614807129, -0.8360308408737183, -0.480324923992157, -0.0966094508767128, 1.3617891073226929, 0.6137674450874329, 1.3707455396652222, 0.6023772358894348, -0.8406058549880981, 0.798172652721405, -1.2911006212234497, 0.29320651292800903, 0....
func NewWithArgs(blockSize uint64, customHasher hasher.Hasher) Map { if blockSize <= 0 { blockSize = defaultBlockSize } if customHasher == nil { customHasher = hasher.New() } blockSize = fixBlockSize(blockSize) result := &openAddressGrowingMap{initialSize: blockSize, hasher: customHasher, threadSafety: thread...
[ -0.07687372714281082, -0.08109920471906662, 0.543178379535675, -0.017116272822022438, -1.1110994815826416, -0.31128138303756714, 0.17830680310726166, -0.12826019525527954, -0.2755299210548401, -0.45614397525787354, 0.2719012498855591, -0.4419858753681183, -0.28330478072166443, 0.9210718274...
func (m *openAddressGrowingMap) setEmptySlot(idxValue uint64, slot *mapSlot) { m.lock() // searching for a replacement to the slot (if somebody slid forward) slid := uint64(0) realRemoveIdxValue := idxValue freeIdxValue := idxValue freeSlot := slot for { slid++ realRemoveIdxValue++ if realRemoveIdxValue >...
[ -0.22372667491436005, -0.0012818948598578572, 0.723960816860199, -1.1708974838256836, -0.9353001713752747, -0.11301811039447784, 0.9147593975067139, -0.21229910850524902, -0.2454850822687149, -0.426334947347641, -0.14565826952457428, 0.17803829908370972, 0.05642372742295265, 0.328050285577...
func (m *openAddressGrowingMap) Keys() []interface{} { r := make([]interface{}, 0, m.BusySlots()) for idxValue := uint64(0); idxValue < m.size(); idxValue++ { slot := &m.storage[idxValue].mapSlot if m.threadSafety { if !slot.increaseReaders() { continue } } else { if atomic.LoadUint32(&slot.isSet)...
[ -1.3336118459701538, 0.0011578198755159974, 0.4379238188266754, -0.31109318137168884, -0.3670191168785095, 0.08238097280263901, 0.16678519546985626, -0.6117401719093323, 0.11422459036111832, -0.051909979432821274, 0.8976461291313171, -0.09945634007453918, -0.6021102070808411, 0.44291824102...
func NewFhirStoreIamBinding(ctx *pulumi.Context, name string, args *FhirStoreIamBindingArgs, opts ...pulumi.ResourceOption) (*FhirStoreIamBinding, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.FhirStoreId == nil { return nil, errors.New("invalid value for ...
[ -0.02151240035891533, 0.21455755829811096, 0.4549478590488434, 0.3262517750263214, 0.40737947821617126, 0.026645159348845482, 0.5853595733642578, 0.4944143295288086, 0.5109392404556274, -0.0025334458332508802, -0.41494718194007874, -0.1725170910358429, 0.06933806836605072, 0.19479422271251...
func GetFhirStoreIamBinding(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FhirStoreIamBindingState, opts ...pulumi.ResourceOption) (*FhirStoreIamBinding, error) { var resource FhirStoreIamBinding err := ctx.ReadResource("gcp:healthcare/fhirStoreIamBinding:FhirStoreIamBinding", name, id, state, &resourc...
[ -0.02500484511256218, -0.13499799370765686, 0.400212824344635, 0.3667338490486145, 0.3676813840866089, -0.3645019233226776, 0.4097706079483032, -0.02155867964029312, 1.4412363767623901, -0.16726402938365936, -0.05193081498146057, 0.6575000286102295, 0.3922154903411865, -0.7223756313323975,...
func (o FhirStoreIamBindingOutput) Etag() pulumi.StringOutput { return o.ApplyT(func(v *FhirStoreIamBinding) pulumi.StringOutput { return v.Etag }).(pulumi.StringOutput) }
[ 0.3117237389087677, 0.1126779317855835, 0.40237659215927124, -0.09675675630569458, 1.0265965461730957, 0.7457374930381775, 0.8286139965057373, 1.0731192827224731, 0.45311906933784485, 0.47443753480911255, -0.08752039074897766, -0.017939211800694466, 1.0623778104782104, -0.30535560846328735...
func (pi ProcessInfo) GetFullName() string { if len(pi.Group) > 0 { return fmt.Sprintf("%s:%s", pi.Group, pi.Name) } return pi.Name }
[ 0.852381706237793, -0.8813374042510986, 0.6849261522293091, -0.2961122393608093, -0.6679800748825073, 0.4966925084590912, -1.1523205041885376, 0.11413130164146423, -0.3147244453430176, 0.24519933760166168, 0.46205735206604004, 0.04255608841776848, -0.11770489066839218, 0.05498233437538147,...
func processIssueByLabel(categories map[string]map[string]int) func(i jira.Issue) error { return func(i jira.Issue) error { // If there aren't any labels, don't do anything at the // moment. if len(i.Fields.Labels) == 0 { return nil } // Process the issues labels. for _, label := range i.Fields.Labels ...
[ -0.6725360751152039, -0.08080779761075974, 0.5191309452056885, -0.6414434313774109, 0.5045246481895447, -0.46258947253227234, -0.04962220788002014, -0.2613540291786194, -0.7004226446151733, 0.05228082090616226, 0.41871118545532227, -1.234728217124939, 0.5693439245223999, 0.0498021617531776...
func processIssueByComponent(categories map[string]map[string]int) func(i jira.Issue) error { return func(i jira.Issue) error { // If there aren't any components, don't do anything at the // moment. if len(i.Fields.Components) == 0 { return nil } // Process the issue's components. for _, component := r...
[ -0.5364545583724976, -0.4257992208003998, 0.5899266004562378, -1.135772705078125, 0.594204843044281, -0.9983183741569519, 0.5778992772102356, -0.10105425119400024, -0.33302420377731323, -0.44780391454696655, -0.05960969626903534, -1.4312858581542969, 0.6139072179794312, 0.06343453377485275...
func searchIssues(query, groupBy string) (*Results, error) { var ( categories = map[string]map[string]int{} ) var issueHandler func(jira.Issue) error = processIssueByLabel(categories) if groupBy == "component" { issueHandler = processIssueByComponent(categories) } // Let's search for those issues! Note that...
[ -0.7181609869003296, 0.2293463796377182, 0.3841560482978821, -0.20773369073867798, 0.012324086390435696, -0.919365406036377, -0.6573336124420166, -0.7994659543037415, -0.28686636686325073, -0.5627527832984924, 0.7817027568817139, -0.8125283122062683, -0.3728048503398895, -0.054791089147329...
func queryForParams(params SearchParams) string { if len(params.RawQuery) > 0 { return params.RawQuery } builder := jiraquery.AndBuilder() if len(params.Project) > 0 { builder.Project(params.Project) } if len(params.IssueType) > 0 { builder.IssueType(params.IssueType) } if len(params.Status) > 0 { b...
[ 0.23976720869541168, -0.5968688726425171, 0.5659529566764832, -0.5656059384346008, -0.5507920980453491, -0.05833674594759941, -0.3487720787525177, 0.48859143257141113, 0.10083777457475662, 0.04579651728272438, 1.055440068244934, 0.03961179777979851, -0.12192895263433456, 0.4211876690387726...
func sanitizeData(data map[string]map[string]int) *Results { var ( // We need to generate our series dataSeries []ChartSeries // Needed for filling in missing data points. rawData []labelTimeSeriesCollector // Needed for identifying the time range our time series needs // to span. maxTime time.Time m...
[ -0.3720008134841919, -0.22406038641929626, 0.7789744734764099, -0.3910539150238037, -0.311119019985199, -0.12118735909461975, -0.15561996400356293, -0.4840337634086609, 0.14120355248451233, 0.11481103301048279, -0.08042765408754349, -0.10127051174640656, 0.7812869548797607, 0.4094669520854...
func (u DomainHistoryFeatures) MarshalJSON() ([]byte, error) { type Alias DomainHistoryFeatures var DivRIPs interface{} = u.DivRIPs if math.IsNaN(u.DivRIPs) { DivRIPs = "NaN" } b, err := json.Marshal(&struct { DivRIPs interface{} `json:"div_rips"` Alias }{ DivRIPs: DivRIPs, Alias: (Alias)(u), }) ret...
[ -0.752099335193634, 0.3168319761753082, 0.3076878488063812, -0.18564417958259583, 0.10626954585313797, -0.4103137254714966, 0.7855424880981445, 1.071995496749878, 0.9082591533660889, -0.6382892727851868, -0.589348554611206, 0.805821418762207, 0.9568989872932434, 0.579119086265564, -0.297...
func (u *DomainHistoryFeatures) UnmarshalJSON(data []byte) error { type Alias DomainHistoryFeatures aux := struct { DivRIPs interface{} `json:"div_rips"` *Alias }{ Alias: (*Alias)(u), } if err := json.Unmarshal(data, &aux); err != nil { return err } if v, ok := aux.DivRIPs.(float64); ok { u.DivRIPs = v...
[ -0.9402424097061157, 0.6290328502655029, 0.4086843430995941, -0.9487703442573547, -0.3872613310813904, -0.35635796189308167, 0.45994120836257935, 0.8991260528564453, 0.37856027483940125, -0.45665597915649414, -0.2603461742401123, 0.3575882911682129, 1.0642211437225342, 0.2314458191394806, ...
func (c Investigate) GetDomainHistory(typ, domain string) (DomainHistory, error) { u := &url.URL{ Path: fmt.Sprintf("dnsdb/name/%s/%s.json", typ, domain), } var out DomainHistory err := c.Get(c.BaseURL.ResolveReference(u).String(), &out) return out, err }
[ -0.536065399646759, 1.7319704294204712, 0.5494799017906189, -0.05951182171702385, -0.3315771818161011, -0.10326781123876572, -0.5134684443473816, -0.6752650141716003, -0.20497305691242218, -0.21750152111053467, -0.7739091515541077, 1.2600442171096802, -0.4141335189342499, 0.471806794404983...
func (c Investigate) GetIPHistory(typ, ip string) (IPHistory, error) { u := &url.URL{ Path: fmt.Sprintf("dnsdb/ip/%s/%s.json", typ, ip), } var out IPHistory err := c.Get(c.BaseURL.ResolveReference(u).String(), &out) return out, err }
[ -0.9133397340774536, 1.3428767919540405, 0.5747899413108826, 0.06637372076511383, -0.4926081597805023, -0.3884134888648987, -0.6566909551620483, -0.03967616334557533, -0.4276842474937439, 0.28309571743011475, -0.30973032116889954, 0.1088445782661438, -0.48036855459213257, -1.00870931148529...
func TestRedistribute(t *testing.T) { nullIP := bnet.IPv4FromOctets(0, 0, 0, 0) // Set up session attrs for a BGP peer A where we learn prefixes from (-> AdjRIBIn) peerAIP := bnet.IPv4FromOctets(10, 0, 0, 0) localAIP := bnet.IPv4FromOctets(10, 0, 0, 1) sessionAttrsA := routingtable.SessionAttrs{ PeerIP: &peer...
[ 0.20827795565128326, -0.10023941844701767, 0.9246924519538879, -0.7252787947654724, 0.39194297790527344, -0.06801379472017288, 0.47756248712539673, -0.4482470154762268, 0.868023157119751, 0.8097059726715088, -0.20422863960266113, 0.435068815946579, -0.0540328323841095, 0.13072025775909424,...
func (r *AWSApiGatewayUsagePlan_ApiStage) AWSCloudFormationType() string { return "AWS::ApiGateway::UsagePlan.ApiStage" }
[ -0.21792834997177124, 0.40443506836891174, 0.45909613370895386, -0.3578167259693146, -0.051521047949790955, 0.05767856538295746, 0.29202327132225037, -0.29761430621147156, 0.7034792900085449, 0.23720723390579224, 0.11494197696447372, 0.1362580955028534, -0.20167312026023865, 0.910620868206...
func (r *AWSApiGatewayUsagePlan_ApiStage) DependsOn() []string { return r._dependsOn }
[ -0.3976837992668152, -1.1910896301269531, 0.39613139629364014, 0.0005023409612476826, -0.44806188344955444, 0.6759949922561646, 0.3454262316226959, 0.6252884864807129, 0.8368285894393921, 0.6486431360244751, -1.267931342124939, 0.5510460734367371, -0.2595839202404022, 0.2658670246601105, ...
func (r *AWSApiGatewayUsagePlan_ApiStage) SetDependsOn(dependencies []string) { r._dependsOn = dependencies }
[ -1.264600157737732, -1.429325819015503, 0.1697685718536377, -0.3343479633331299, -0.6119279265403748, 0.5710264444351196, 0.6551335453987122, 0.49301788210868835, 0.7995576858520508, 0.32772499322891235, -1.386317491531372, 0.2188553810119629, -0.42134079337120056, 0.8945604562759399, 1....
func (r *AWSApiGatewayUsagePlan_ApiStage) Metadata() map[string]interface{} { return r._metadata }
[ -1.0003893375396729, -0.45409002900123596, 0.3812308609485626, -0.5951445698738098, 0.02865387685596943, 0.2547931671142578, -0.009225351735949516, -0.20628876984119415, 0.6624541878700256, 0.8994545340538025, -0.10404300689697266, 0.487295001745224, 0.19368764758110046, -0.048695214092731...
func (r *AWSApiGatewayUsagePlan_ApiStage) SetMetadata(metadata map[string]interface{}) { r._metadata = metadata }
[ -1.1528129577636719, -0.3137139081954956, 0.1587165743112564, -0.21506206691265106, 0.1712062656879425, 0.5649895668029785, 0.18072295188903809, 0.3451527953147888, 0.620210587978363, 0.8818739652633667, -0.47717738151550293, 0.5305753350257874, -0.020081229507923126, 0.375811368227005, ...
func (r *AWSApiGatewayUsagePlan_ApiStage) DeletionPolicy() policies.DeletionPolicy { return r._deletionPolicy }
[ 0.44668471813201904, 0.031171392649412155, 0.2442283183336258, -0.13585183024406433, 0.054311394691467285, 0.8835088610649109, 0.7368366718292236, 0.2964317202568054, 1.49931800365448, 0.04128403216600418, 0.6976099014282227, 0.5089422464370728, 0.41267165541648865, 0.12099389731884003, ...
func (r *AWSApiGatewayUsagePlan_ApiStage) SetDeletionPolicy(policy policies.DeletionPolicy) { r._deletionPolicy = policy }
[ -0.07074660807847977, 0.01566082239151001, 0.18050125241279602, -0.28152963519096375, -0.0027597974985837936, 0.9679922461509705, 0.7911286950111389, 0.29919105768203735, 1.1239069700241089, 0.25342750549316406, 0.10056363791227341, 0.22410674393177032, 0.2734530568122864, 0.72126662731170...
func SquareOfSum(n int) int { sum := n * (n + 1) / 2 return sum * sum }
[ -0.5177857875823975, -0.1294766068458557, 0.3937143087387085, 0.5314675569534302, 0.13844135403633118, -1.0307552814483643, 0.8729609251022339, -1.3138890266418457, 0.6442753076553345, -0.4450773000717163, -0.9506354928016663, -0.13976390659809113, 0.2974886894226074, 0.09504494816064835, ...
func SumOfSquares(n int) int { return n * (n + 1) * ((2 * n) + 1) / 6 }
[ -0.30531489849090576, 0.3612372875213623, 0.2041037678718567, -0.239193394780159, -0.7575817704200745, -0.5880753397941589, 1.1839035749435425, -1.6897377967834473, 0.8042029738426208, -0.0029411623254418373, -1.2114896774291992, -0.38335251808166504, 0.31120920181274414, 0.456094413995742...
func Difference(n int) int { return SquareOfSum(n) - SumOfSquares(n) }
[ -0.49075639247894287, 0.23128722608089447, 0.3296040892601013, 0.38592493534088135, -0.5118714570999146, 0.45007240772247314, 1.2570502758026123, -0.7437325716018677, 1.421671986579895, -0.8075147867202759, -1.1238552331924438, -0.6915163993835449, 0.34615084528923035, 0.9970586895942688, ...
func main() { if rpcR := checkRunning(); rpcR != nil { // R is running, send stdin to it sendToR(rpcR) } else { // R is not running, start fmt.Println("Starting R") if r := startR(os.Args[1:]...); r != nil { <-r.wait } } }
[ -0.05670967325568199, -0.3866821825504303, 0.8228893280029297, 1.077675461769104, 0.3151482939720154, 0.5478640794754028, 0.2693009078502655, 0.34908202290534973, -0.610648512840271, 0.6626309752464294, 0.42598196864128113, 0.11708293855190277, -0.8453862071037292, 0.2669404149055481, 0....
func checkRunning() (rpcR *rpc.Client) { env := GetEnv() rpcR, err := rpc.DialHTTP("tcp", env.String()) if err != nil { return nil } return rpcR }
[ 0.20232224464416504, -0.510844349861145, 0.6547874212265015, -0.1607033908367157, 0.414089560508728, 0.5497651100158691, -1.0453745126724243, -0.29249483346939087, -0.7151327729225159, 1.2164037227630615, 0.5587906241416931, 0.5408099293708801, -1.6854792833328247, -0.24561665952205658, ...
func startR(args ...string) *R { // connect R's stdin rStdin, rWrite, err := os.Pipe() if err != nil { panic(err) } attrs := &os.ProcAttr{ Dir: "./", Files: []*os.File{ rStdin, os.Stdout, os.Stderr, }, } rBin := findR() if rBin == "" { fmt.Println("Couldnt find R, check your $PATH") retu...
[ 0.5467149615287781, -1.343717336654663, 0.9756156206130981, 0.14453472197055817, -0.3137023150920868, 0.6013246178627014, 0.35988327860832214, -0.18095839023590088, -0.48977962136268616, 0.1549585908651352, 0.7842045426368713, 0.5378297567367554, -0.7068796753883362, 0.18481764197349548, ...
func sendToR(client *rpc.Client) { reader := bufio.NewReader(os.Stdin) inBuf, err := ioutil.ReadAll(reader) if err != nil { fmt.Println(err) } var resp string err = client.Call("R.Pipe", inBuf, &resp) if err != nil { fmt.Println("ERROR: ", err) } }
[ -0.6669809818267822, -0.3234238624572754, 0.7231572270393372, -1.0634413957595825, -0.2280522584915161, 0.21548624336719513, 0.325108140707016, -0.32590728998184204, -1.2607837915420532, 0.37133148312568665, -0.19075626134872437, 0.36978718638420105, -0.9161946177482605, 0.2221592962741851...
func (kr knightRadiant) speak() { fmt.Printf("Hi, my name is %v %v, I'm a member of the Knight Radiants, from the order of the %v.\nNice to meet you.\n", kr.first, kr.last, kr.order) }
[ 0.8652740120887756, -0.5784761905670166, 0.4472964406013489, -0.25859782099723816, -0.11464830487966537, 0.08995895832777023, -0.9618054032325745, -0.061237093061208725, -0.38826993107795715, -0.004864396061748266, -0.038425542414188385, 0.6107937097549438, -0.6037656664848328, 0.299113631...
func greetHuman(h human) { h.speak() fmt.Printf("Hi %v (%T), nice to meet you\n", h, h) // We are going to use assertion to greet different types of person: switch h.(type) { case character: fmt.Printf("it's so awesome to get to meet youm %v, I've heard great things about you.\n", h.(character).first) case knig...
[ -0.020653560757637024, -0.3122921288013458, 0.7041633129119873, 0.140607088804245, -0.19316209852695465, 0.7892618775367737, -0.18748649954795837, 0.006950368173420429, -0.8096548318862915, -0.1645013988018036, -0.4525024890899658, 1.2326123714447021, -0.6436000466346741, 0.918662726879119...
func (m *UserExperienceAnalyticsAnomalyRequestBuilder) ByUserExperienceAnalyticsAnomalyId(userExperienceAnalyticsAnomalyId string)(*UserExperienceAnalyticsAnomalyUserExperienceAnalyticsAnomalyItemRequestBuilder) { urlTplParams := make(map[string]string) for idx, item := range m.BaseRequestBuilder.PathParameters...
[ 0.1143452599644661, -0.2949521839618683, 0.6330423355102539, 0.22848494350910187, -0.6658948063850403, 0.16584482789039612, 0.22613807022571564, 0.39046451449394226, 1.1038399934768677, 0.3093416690826416, 0.8129482269287109, 1.32675302028656, 0.9004827737808228, 0.2791481614112854, 0.48...
func NewUserExperienceAnalyticsAnomalyRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*UserExperienceAnalyticsAnomalyRequestBuilder) { m := &UserExperienceAnalyticsAnomalyRequestBuilder{ BaseRequestBuil...
[ -0.5039414763450623, -0.24410486221313477, 0.7137426733970642, 0.2870756983757019, -1.317800521850586, 0.6125353574752808, 0.6001984477043152, 0.008749031461775303, 0.31473028659820557, -0.4205896854400635, 0.4966559112071991, 0.7115435600280762, 0.12177664786577225, 0.12757278978824615, ...
func NewUserExperienceAnalyticsAnomalyRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*UserExperienceAnalyticsAnomalyRequestBuilder) { urlParams := make(map[string]string) urlParams["request-raw-url"] = rawUrl return NewUserExper...
[ -0.8470962047576904, -0.5336558222770691, 0.4043565094470978, 1.0442044734954834, -1.2289071083068848, 0.4002385139465332, -0.11858028173446655, 0.5285000801086426, 0.8310623168945312, -0.5394179821014404, 0.3615637719631195, 0.42754697799682617, 0.7599173188209534, 0.328197181224823, 0....
func (m *UserExperienceAnalyticsAnomalyRequestBuilder) Count()(*UserExperienceAnalyticsAnomalyCountRequestBuilder) { return NewUserExperienceAnalyticsAnomalyCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) }
[ 0.15103662014007568, 0.052616458386182785, 0.6309515833854675, 0.5846894979476929, -0.5098852515220642, 0.602075457572937, 0.20613360404968262, 0.580881655216217, 0.5422517657279968, 0.13208170235157013, 0.6198427081108093, 0.6668114066123962, 1.2499158382415771, 0.767544150352478, 0.575...
func (m *UserExperienceAnalyticsAnomalyRequestBuilder) Get(ctx context.Context, requestConfiguration *UserExperienceAnalyticsAnomalyRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserExperienceAnalyticsAnomalyCollectionResponseable, error) { requestInfo, err...
[ -0.07333621382713318, -0.06383553892374039, 0.9308289289474487, -0.25992685556411743, -0.2681375741958618, 0.7691432237625122, 0.1457950472831726, -0.7552441358566284, 0.44735756516456604, 0.3512091040611267, 0.2973652482032776, 1.039752721786499, 0.49192145466804504, 0.012470937334001064,...
func (m *UserExperienceAnalyticsAnomalyRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserExperienceAnalyticsAnomalyable, requestConfiguration *UserExperienceAnalyticsAnomalyRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde1169...
[ 0.35794487595558167, 0.05242404714226723, 0.9009031057357788, 0.4664466381072998, -1.0285767316818237, 0.7224188446998596, 0.21884691715240479, -0.4811041057109833, 0.5626327395439148, 0.03220358490943909, 0.2846604585647583, 0.7267611026763916, 0.9164539575576782, 0.3965712785720825, 1....
func (m *UserExperienceAnalyticsAnomalyRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *UserExperienceAnalyticsAnomalyRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee...
[ -0.8613193035125732, -0.2266119122505188, 0.9214771389961243, -0.32957780361175537, -0.16089023649692535, 0.07275181263685226, -0.19432027637958527, -0.492199569940567, 0.5954195857048035, -0.11548770219087601, 0.5467705726623535, 0.7296801805496216, 0.22220025956630707, 0.1981233358383178...
func (m *UserExperienceAnalyticsAnomalyRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserExperienceAnalyticsAnomalyable, requestConfiguration *UserExperienceAnalyticsAnomalyRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee26337...
[ -0.5343972444534302, -0.5141964554786682, 1.0394232273101807, -0.4523615837097168, -0.9389241933822632, 0.49449867010116577, -0.18938572704792023, -0.5917297601699829, 0.12572945654392242, 0.23116494715213776, 0.27999019622802734, 0.14394676685333252, 0.2860904932022095, 0.2936199009418487...
func NewBlobCache() *BlobCache { return &BlobCache{LRU: lru.New[string, []byte](0)} }
[ 0.9897691607475281, -1.0148910284042358, 0.4838022291660309, 0.29795169830322266, -1.0055251121520996, -0.12461470812559128, -1.1425532102584839, 0.15900792181491852, -0.17309308052062988, 0.18248745799064636, -0.4799695312976837, -0.04627775028347969, -0.8713653087615967, -0.1731267273426...
func (b *BlobCache) Get(c context.Context, key string) ([]byte, error) { if b.Err != nil { return nil, b.Err } item, ok := b.LRU.Get(c, key) if !ok { return nil, caching.ErrCacheMiss } return item, nil }
[ 0.5646359324455261, -0.1531389206647873, 0.629115104675293, 0.000021152718545636162, 0.22525252401828766, -0.32709041237831116, -1.5669584274291992, -0.31379207968711853, -0.4225221276283264, 0.7613102197647095, -0.054327309131622314, 0.9484134912490845, -0.8465017080307007, -0.38025563955...
func (b *BlobCache) Set(c context.Context, key string, value []byte, exp time.Duration) error { if b.Err != nil { return b.Err } b.LRU.Put(c, key, value, exp) return nil }
[ 0.4652048349380493, 0.030414730310440063, 0.2721412181854248, -0.1260012984275818, -0.14710105955600739, 0.33143681287765503, -0.7864660024642944, 0.011342793703079224, -0.26023852825164795, 1.2618281841278076, -0.33570727705955505, 0.49950823187828064, -0.5146953463554382, 0.1099342703819...
func WithGlobalCache(c context.Context, caches map[string]caching.BlobCache) context.Context { return caching.WithGlobalCache(c, func(ns string) caching.BlobCache { b, ok := caches[ns] if !ok { panic(fmt.Errorf("using unexpected global namespace %q", ns)) } return b }) }
[ 0.9428619742393494, 0.35418739914894104, 0.6139265894889832, 0.9026745557785034, -1.1208683252334595, 0.16645485162734985, -0.9822949171066284, -0.5917997360229492, 0.8148972988128662, 1.1447674036026, -0.11270449310541153, -0.5482497215270996, -0.1060958281159401, 0.720458984375, 0.1786...
func p256GetScalar(out *[32]byte, in []byte) { n := new(big.Int).SetBytes(in) var scalarBytes []byte if n.Cmp(p256Params.N) >= 0 { n.Mod(n, p256Params.N) scalarBytes = n.Bytes() } else { scalarBytes = in } for i, v := range scalarBytes { out[len(scalarBytes)-(1+i)] = v } }
[ -0.4494611322879791, 0.3146560788154602, 0.5763337016105652, -0.25282445549964905, -0.8335544466972351, -0.55903559923172, -0.23598544299602509, -0.3369447588920593, -0.30470389127731323, 0.24627861380577087, -0.4303666651248932, 1.0763050317764282, -0.8181114196777344, 0.7724779844284058,...
func nonZeroToAllOnes(x uint32) uint32 { return ((x - 1) >> 31) - 1 }
[ -0.44058066606521606, 0.26642054319381714, 0.22365395724773407, -0.1268204003572464, -0.6053487062454224, 0.04097297787666321, -0.6031526327133179, -0.6758053302764893, 0.7699572443962097, 0.3040417730808258, -0.13667087256908417, -0.059629011899232864, -0.12233422696590424, 0.223961979150...
func p256ReduceCarry(inout *[p256Limbs]uint32, carry uint32) { carry_mask := nonZeroToAllOnes(carry) inout[0] += carry << 1 inout[3] += 0x10000000 & carry_mask // carry < 2**3 thus (carry << 11) < 2**14 and we added 2**28 in the // previous line therefore this doesn't underflow. inout[3] -= carry << 11 inout[4]...
[ 0.1952289491891861, -0.8137094378471375, 0.8753617405891418, -0.015343600884079933, 0.03952504321932793, -0.12677735090255737, 0.4896441400051117, -0.28320547938346863, 0.38718244433403015, -0.4063200056552887, -0.5667323470115662, 0.5572438836097717, -0.7168496251106262, 0.331542909145355...
func p256Sum(out, in, in2 *[p256Limbs]uint32) { carry := uint32(0) for i := 0; ; i++ { out[i] = in[i] + in2[i] out[i] += carry carry = out[i] >> 29 out[i] &= bottom29Bits i++ if i == p256Limbs { break } out[i] = in[i] + in2[i] out[i] += carry carry = out[i] >> 28 out[i] &= bottom28Bits } ...
[ -0.5171997547149658, -0.43375295400619507, 0.7046087980270386, 0.10911394655704498, -0.43897467851638794, -0.22864209115505219, 0.26208215951919556, -0.2605953514575958, 0.3688803017139435, 0.23354439437389374, -0.8591060042381287, 0.6586583256721497, -1.0919145345687866, -0.52679616212844...
func p256Diff(out, in, in2 *[p256Limbs]uint32) { var carry uint32 for i := 0; ; i++ { out[i] = in[i] - in2[i] out[i] += p256Zero31[i] out[i] += carry carry = out[i] >> 29 out[i] &= bottom29Bits i++ if i == p256Limbs { break } out[i] = in[i] - in2[i] out[i] += p256Zero31[i] out[i] += carry ...
[ -0.4495915174484253, -0.8448161482810974, 0.6850228309631348, 0.1724499762058258, -0.32163190841674805, 0.49028709530830383, 0.4143846035003662, 0.017383363097906113, 0.13477662205696106, -0.1881473958492279, -0.3708713948726654, 0.5361687541007996, -0.7778247594833374, 0.24663090705871582...
func p256ReduceDegree(out *[p256Limbs]uint32, tmp [17]uint64) { // The following table may be helpful when reading this code: // // Limb number: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10... // Width (bits): 29| 28| 29| 28| 29| 28| 29| 28| 29| 28| 29 // Start bit: 0 | 29| 57| 86|114|143|171|200|228|257|285 ...
[ -0.48831868171691895, 0.33641573786735535, 0.9414200782775879, -0.5887991786003113, -0.2815030813217163, 0.12554652988910675, 0.8825462460517883, 0.11751221120357513, 0.10947589576244354, 0.4808497130870819, -0.2949380576610565, 0.144845113158226, -0.562603771686554, 0.6175810098648071, ...
func p256Square(out, in *[p256Limbs]uint32) { var tmp [17]uint64 tmp[0] = uint64(in[0]) * uint64(in[0]) tmp[1] = uint64(in[0]) * (uint64(in[1]) << 1) tmp[2] = uint64(in[0])*(uint64(in[2])<<1) + uint64(in[1])*(uint64(in[1])<<1) tmp[3] = uint64(in[0])*(uint64(in[3])<<1) + uint64(in[1])*(uint64(in[2])<<1) tmp[4...
[ -0.5044892430305481, -0.7866419553756714, 0.877321183681488, -0.23117299377918243, -0.3606652617454529, -1.028213381767273, 0.42345014214515686, -0.2664337456226349, 0.8507300615310669, 0.6104643940925598, -0.9454793334007263, -0.11490406095981598, -0.30453529953956604, 0.171122208237648, ...
func p256Mul(out, in, in2 *[p256Limbs]uint32) { var tmp [17]uint64 tmp[0] = uint64(in[0]) * uint64(in2[0]) tmp[1] = uint64(in[0])*(uint64(in2[1])<<0) + uint64(in[1])*(uint64(in2[0])<<0) tmp[2] = uint64(in[0])*(uint64(in2[2])<<0) + uint64(in[1])*(uint64(in2[1])<<1) + uint64(in[2])*(uint64(in2[0])<<0) tmp[3] ...
[ -0.29032814502716064, -0.4134775996208191, 1.0166229009628296, 0.12547926604747772, -0.7508686184883118, -0.1579505205154419, 0.005925068631768227, -0.14536869525909424, 0.4143389165401459, 0.343525230884552, -0.9454166889190674, -0.19082452356815338, -0.7281386852264404, -0.12133714556694...
func p256Scalar3(out *[p256Limbs]uint32) { var carry uint32 for i := 0; ; i++ { out[i] *= 3 out[i] += carry carry = out[i] >> 29 out[i] &= bottom29Bits i++ if i == p256Limbs { break } out[i] *= 3 out[i] += carry carry = out[i] >> 28 out[i] &= bottom28Bits } p256ReduceCarry(out, carry) }
[ -0.3207106590270996, -0.33223584294319153, 0.6234419941902161, -0.2473367303609848, -0.6591082811355591, 0.4187280833721161, -0.8163696527481079, -0.16491295397281647, 0.6021339893341064, 0.40520814061164856, -0.31590592861175537, 0.3864264190196991, -0.6794125437736511, 0.2030330449342727...
func p256Scalar4(out *[p256Limbs]uint32) { var carry, nextCarry uint32 for i := 0; ; i++ { nextCarry = out[i] >> 27 out[i] <<= 2 out[i] &= bottom29Bits out[i] += carry carry = nextCarry + (out[i] >> 29) out[i] &= bottom29Bits i++ if i == p256Limbs { break } nextCarry = out[i] >> 26 out[i] <...
[ -0.08918305486440659, -0.8974632620811462, 0.7467440962791443, -0.36744168400764465, -0.5080512762069702, -0.0681544691324234, -0.19692398607730865, -0.8778426647186279, -0.016663704067468643, 0.0678788274526596, -0.06863640993833542, 0.27955105900764465, -1.0750566720962524, 0.66512966156...
func p256Scalar8(out *[p256Limbs]uint32) { var carry, nextCarry uint32 for i := 0; ; i++ { nextCarry = out[i] >> 26 out[i] <<= 3 out[i] &= bottom29Bits out[i] += carry carry = nextCarry + (out[i] >> 29) out[i] &= bottom29Bits i++ if i == p256Limbs { break } nextCarry = out[i] >> 25 out[i] <...
[ -0.5243735313415527, -0.5993867516517639, 0.4792249798774719, 0.03054199367761612, -0.6020557284355164, 0.1681072860956192, -0.2513355016708374, -0.2820415496826172, 0.7419309020042419, 0.5961263179779053, -0.029206447303295135, 0.49070054292678833, -0.7372233271598816, 0.44914913177490234...
func p256CopyConditional(out, in *[p256Limbs]uint32, mask uint32) { for i := 0; i < p256Limbs; i++ { tmp := mask & (in[i] ^ out[i]) out[i] ^= tmp } }
[ 0.1616743803024292, -0.8405612111091614, 0.32708120346069336, 0.5729081630706787, -1.6392312049865723, 0.4399626851081848, 0.4995824992656708, 0.060841888189315796, 0.27624255418777466, 0.7563744187355042, -0.21003280580043793, 0.7420967817306519, -0.4377508759498596, -0.19181281328201294,...
func p256GetBit(scalar *[32]uint8, bit uint) uint32 { return uint32(((scalar[bit>>3]) >> (bit & 7)) & 1) }
[ 0.3341163396835327, -0.018548285588622093, 0.3107318580150604, 0.24947339296340942, 0.23710718750953674, -0.27601468563079834, 0.017338450998067856, -1.425689935684204, 0.09161781519651413, -0.03756004944443703, -0.5588091611862183, 1.0210506916046143, -0.02513314224779606, -0.541174352169...
func p256PointToAffine(xOut, yOut, x, y, z *[p256Limbs]uint32) { var zInv, zInvSq [p256Limbs]uint32 p256Invert(&zInv, z) p256Square(&zInvSq, &zInv) p256Mul(xOut, x, &zInvSq) p256Mul(&zInv, &zInv, &zInvSq) p256Mul(yOut, y, &zInv) }
[ 0.6459091305732727, -0.6689867377281189, 0.31218260526657104, 0.009510618634521961, -0.3308117985725403, -0.9034906625747681, 0.1029074564576149, -0.2519097924232483, -0.08397000283002853, -0.04686852544546127, -0.5938194394111633, 0.7657636404037476, -0.37847185134887695, 0.19292205572128...
func p256FromBig(out *[p256Limbs]uint32, in *big.Int) { tmp := new(big.Int).Lsh(in, 257) tmp.Mod(tmp, p256Params.P) for i := 0; i < p256Limbs; i++ { if bits := tmp.Bits(); len(bits) > 0 { out[i] = uint32(bits[0]) & bottom29Bits } else { out[i] = 0 } tmp.Rsh(tmp, 29) i++ if i == p256Limbs { bre...
[ -0.326529860496521, -0.2290664166212082, 0.5138657689094543, -0.37816959619522095, -0.2971707284450531, 0.06601058691740036, 0.41932955384254456, 0.527488648891449, 0.13784751296043396, 0.10341699421405792, -0.7460086941719055, 0.6028223037719727, -0.5465812683105469, 0.8575878143310547, ...
func p256ToBig(in *[p256Limbs]uint32) *big.Int { result, tmp := new(big.Int), new(big.Int) result.SetInt64(int64(in[p256Limbs-1])) for i := p256Limbs - 2; i >= 0; i-- { if (i & 1) == 0 { result.Lsh(result, 29) } else { result.Lsh(result, 28) } tmp.SetInt64(int64(in[i])) result.Add(result, tmp) } ...
[ -1.0353504419326782, -0.3514709770679474, 0.5740835070610046, -0.6937963366508484, -0.114779032766819, 0.3014589846134186, 0.5980414152145386, 0.42059093713760376, 0.08178586512804031, 0.12980659306049347, -0.7413884997367859, 0.4849167764186859, -0.711700439453125, 0.19013750553131104, ...
func deleteTasks() { counter := 0 // Create AWS session s, err := session.NewSession() if err != nil { log.Fatal("Couldn't create AWS Session.") } // Create the AWS Service svc := databasemigrationservice.New(s, &aws.Config{Region: &region}) // Read the defaults file readTasks, err := ioutil.ReadFile(task...
[ 0.46344882249832153, 0.0948217585682869, 0.6598718166351318, -0.08678178489208221, 0.5331649780273438, 0.4214569330215454, 0.9585410356521606, 0.49781256914138794, -0.11816930770874023, 0.543668270111084, -0.6789044737815857, 0.9021508693695068, 0.2660033702850342, 0.5505610704421997, 0....
func NewSdcClient(machines []string, cert, key, caCert string, basicAuth bool, username string, password string) (StoreClient, error) { str, err := exec.Command("sdcctl", "--version").Output() if err != nil { return nil, err } reg := regexp.MustCompile(`\d+.\d+-\d+`) sdcVersion := reg.FindString(string(str)) ...
[ 0.14947474002838135, -0.17636102437973022, 0.7387740015983582, -0.1307099461555481, -0.8527343273162842, -0.43475010991096497, -0.3313426077365875, -0.42948246002197266, -0.5020552277565002, -0.16014522314071655, 0.13248257339000702, 0.36478209495544434, -0.223929762840271, -0.610484778881...
func NewMock() MockClient { return NewMockWithLogger(&noopLogger{}) }
[ -0.09737703204154968, 0.17384880781173706, 0.2653706669807434, 0.46980273723602295, -0.5757840275764465, -0.29647597670555115, 0.7311927080154419, -0.4466785490512848, 0.5942339301109314, 0.1510593295097351, 0.1254027932882309, 0.5780695676803589, -0.5536394119262695, -0.09159107506275177,...