text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (this *DynMap) GetInt64(key string) (int64, bool) { tmp, ok := this.Get(key) if !ok { return -1, ok } val, err := ToInt64(tmp) if err == nil { return val, true } return -1, false }
[ -2.3597984313964844, 0.39293569326400757, 0.7598887085914612, 0.8401323556900024, 0.36028414964675903, -1.0527031421661377, 0.139615997672081, 0.11650409549474716, -0.6824404001235962, 0.2444038987159729, -0.02200927399098873, -0.8309411406517029, -0.90463787317276, 0.38025134801864624, ...
func (this *DynMap) GetString(key string) (string, bool) { tmp, ok := this.Get(key) if !ok { return ToString(tmp), ok } return ToString(tmp), true }
[ -1.7271764278411865, 0.02845369093120098, 0.7250115871429443, -0.24900220334529877, -0.14538969099521637, -0.6873730421066284, -0.6218007206916809, -0.49529895186424255, -0.37380650639533997, 0.40148892998695374, 0.39442136883735657, -0.4393511712551117, -0.08874084055423737, -0.3714456856...
func (this *DynMap) MustString(key string, def string) string { tmp, ok := this.GetString(key) if !ok { return def } return tmp }
[ -0.7612348198890686, -0.3146233558654785, 0.35098889470100403, 0.25000497698783875, 0.15985213220119476, -0.14051654934883118, -0.848626971244812, -0.5627824068069458, -0.23369619250297546, 0.46884697675704956, 0.9802051782608032, 0.12715554237365723, -0.5380643010139465, 0.231892555952072...
func (this *DynMap) GetDynMap(key string) (*DynMap, bool) { tmp, ok := this.Get(key) if !ok { return nil, ok } mp, ok := ToDynMap(tmp) return mp, ok }
[ -1.6545621156692505, 0.019925901666283607, 0.8391172289848328, 0.1006379947066307, -0.12823249399662018, -1.0641745328903198, -0.09814926981925964, -0.35964807868003845, 0.24471226334571838, -0.6862156987190247, -0.7854242920875549, -0.3654572665691376, -0.29275748133659363, 0.481331646442...
func (this *DynMap) GetDynMapSlice(key string) ([]*DynMap, bool) { lst, ok := this.Get(key) if !ok { return nil, false } switch v := lst.(type) { case []*DynMap: return v, true case []interface{}: retlist := make([]*DynMap, 0) for _, tmp := range v { in, ok := ToDynMap(tmp) if !ok { return nil, ...
[ -2.1584222316741943, -0.34811288118362427, 1.1307225227355957, 0.9028205871582031, 0.05375063791871071, -0.5751699209213257, -0.360510915517807, -0.06018385291099548, -0.033270467072725296, 0.10787855833768845, -0.6449634432792664, -0.7882769107818604, -0.7900469303131104, 1.09722268581390...
func (this *DynMap) GetIntSlice(key string) ([]int, bool) { lst, ok := this.Get(key) if !ok { return nil, false } switch v := lst.(type) { case []int: return v, true case []interface{}: retlist := make([]int, 0) for _, tmp := range v { in, err := ToInt(tmp) if err != nil { return nil, false }...
[ -2.04343581199646, 0.2511207163333893, 0.9645146727561951, 0.420725554227829, 0.2116023600101471, -0.9228886961936951, -0.8589292168617249, -0.16843141615390778, -0.4450056254863739, 0.703192949295044, -0.18041843175888062, -0.03941516950726509, -0.9376794099807739, 0.7653576135635376, 0...
func (this *DynMap) GetIntSliceSplit(key, delim string) ([]int, bool) { lst, ok := this.Get(key) if !ok { return nil, false } switch v := lst.(type) { case string: retlist := make([]int, 0) for _, tmp := range strings.Split(v, delim) { in, err := ToInt(tmp) if err != nil { return nil, false } ...
[ -1.6649394035339355, 0.6993795037269592, 0.9965597987174988, -0.08263538777828217, -0.3785059154033661, -0.847152829170227, -0.5096245408058167, 0.2729962170124054, -0.22002872824668884, 0.761400043964386, -0.14014211297035217, 0.07510028779506683, -1.5565752983093262, -0.2827635109424591,...
func (this *DynMap) GetStringSlice(key string) ([]string, bool) { lst, ok := this.Get(key) if !ok { return nil, false } switch v := lst.(type) { case []string: return v, true case []interface{}: retlist := make([]string, 0) for _, tmp := range v { in := ToString(tmp) retlist = append(retlist, in) ...
[ -1.5015051364898682, 0.07933953404426575, 0.8537242412567139, 0.19491779804229736, 0.3715918958187103, -1.2428362369537354, -1.2004294395446777, -0.4677973687648773, -0.3811081051826477, 0.8098015189170837, 0.5639885663986206, -0.012512179091572762, -0.6149200797080994, 0.358258992433548, ...
func (this *DynMap) GetStringSliceSplit(key, delim string) ([]string, bool) { lst, ok := this.Get(key) if !ok { return nil, false } switch v := lst.(type) { case string: return strings.Split(v, delim), true } ret, ok := this.GetStringSlice(key) return ret, ok }
[ -0.7862704396247864, 0.4479692280292511, 0.7504780888557434, -0.06992200762033463, -0.12505172193050385, -0.9320218563079834, -1.2139577865600586, -0.13819558918476105, -0.07123830169439316, 0.5983373522758484, 0.5731450915336609, 0.3657914698123932, -0.8329096436500549, -0.245299473404884...
func (this *DynMap) AddToSlice(key string, mp interface{}) error { this.PutIfAbsent(key, make([]interface{}, 0)) lst, _ := this.Get(key) switch v := lst.(type) { case []interface{}: v = append(v, mp) this.Put(key, v) } return nil }
[ -1.6973440647125244, -0.2713732421398163, 0.6952964067459106, 0.037011630833148956, 0.5334098935127258, -0.4465278387069702, -0.589455783367157, -0.13928556442260742, 0.19137981534004211, 0.8426177501678467, -0.053904689848423004, 0.05863870680332184, -0.6217713356018066, 1.013293981552124...
func (this *DynMap) PutAll(mp interface{}) bool { dynmap, ok := ToDynMap(mp) if !ok { return false } for k, v := range dynmap.Map { this.Put(k, v) } return true }
[ -1.3442718982696533, 0.5149444341659546, 0.9908199906349182, 0.4284098744392395, -0.36876213550567627, 0.39467689394950867, 0.001676797866821289, 0.10399115085601807, 0.04632088169455528, -0.0719543918967247, -0.4911802113056183, -0.9445444941520691, -0.9137594699859619, 1.1652415990829468...
func (this *DynMap) PutIfAbsent(key string, value interface{}) (interface{}, bool) { v, ok := this.Get(key) if ok { return v, false } this.Put(key, value) return value, true }
[ -1.3641046285629272, 0.056060951203107834, 0.7237626314163208, -1.3777345418930054, -0.502314031124115, -0.0973593145608902, -0.3913532495498657, -0.8094664216041565, -0.9091891646385193, 0.8665758371353149, -0.4605106711387634, -0.3128465414047241, -0.7371857762336731, 0.18263079226016998...
func (this *DynMap) PutIfAbsentWithDot(key string, value interface{}) (interface{}, bool) { v, ok := this.Get(key) if ok { return v, false } this.PutWithDot(key, value) return value, true }
[ -1.431570291519165, -0.3285331428050995, 0.6969296336174011, -1.398761510848999, -0.5274643898010254, 0.24328286945819855, 0.010776761919260025, -1.046571135520935, -0.2915842831134796, 0.6885536313056946, -0.5516247153282166, -0.447126567363739, -0.42810240387916565, 0.3922894597053528, ...
func (this *DynMap) Put(key string, value interface{}) { this.Map[key] = value }
[ -1.648003339767456, 0.10169214755296707, 0.5050181150436401, -0.48558127880096436, -0.01901780441403389, 0.4273851811885834, 0.17491629719734192, 0.08776259422302246, -0.38362619280815125, -0.33820122480392456, -0.5109223127365112, 0.05862266570329666, -0.1390576958656311, 0.37807148694992...
func (this *DynMap) Remove(key string) (interface{}, bool) { val, ok := this.Map[key] if ok { delete(this.Map, key) return val, true } //TODO: dot op.. return val, false }
[ -1.972432255744934, -0.14149874448776245, 0.8150373101234436, 0.11087726801633835, -1.162595510482788, -0.6431968212127686, 0.38964253664016724, 0.5411238670349121, 0.11604508012533188, 0.3007446229457855, -0.8919193744659424, -0.9631208777427673, -0.7171656489372253, 0.19885702431201935, ...
func (this *DynMap) Get(key string) (interface{}, bool) { val, ok := this.Map[key] if ok { return val, true } //look for dot operator. splitStr := strings.Split(key, ".") if len(splitStr) == 1 { return val, false } var mp = this.Map for index, k := range splitStr { tmp, o := mp[k] if !o { return va...
[ -1.6135176420211792, -0.1238093450665474, 0.8982493281364441, -0.09820953756570816, -0.6489126086235046, -0.7462183237075806, 0.180214986205101, -0.02811834029853344, -0.2040206789970398, 0.23259170353412628, -0.2665177583694458, -0.07449641078710556, -0.05058126151561737, -0.4364425241947...
func (decTree Tree) Train(trainSet []*dataTypes.Data, setVal, stopCond float64, classesCount int) Tree { var setStack [][]*dataTypes.Data var treeStack []*Tree currTree := &decTree currSet := trainSet treeLen := 1 for treeLen != 0 { var classes []ClassAvg var classSamples [][]*dataTypes.Data for i := 0; ...
[ -0.9281532764434814, 0.8268125653266907, 0.6321007609367371, -0.8282830119132996, -0.33800646662712097, -0.34683990478515625, 0.18186406791210175, -0.005715265870094299, -0.5373327136039734, 0.4048694372177124, 0.17201530933380127, 0.04125545546412468, -0.1690124273300171, 0.65184217691421...
func (decTree Tree) Test(allData []*dataTypes.Data) { misclassified := 0 fmt.Printf("+-----------+----------+\n") fmt.Printf("| Predicted | Actual |\n") fmt.Printf("+-----------+----------+\n") for _, datum := range allData { prediction := decTree.GetClass(*datum) if prediction != datum.Class { misclassif...
[ -0.08407778292894363, -0.11871946603059769, 0.9288514852523804, -0.16807056963443756, 0.2936740517616272, 0.9338216185569763, 0.5877004265785217, 0.23359355330467224, -0.8103069067001343, -0.514541506767273, 0.023512575775384903, 1.2319585084915161, 0.18106035888195038, 1.3059381246566772,...
func (decTree Tree) GetClass(datum dataTypes.Data) int { currNode := decTree.GetTerminalNode(datum) return currNode.Details.Class }
[ -0.6921769976615906, 0.7204298377037048, 0.5460588932037354, -0.7791140079498291, 0.32166218757629395, -0.600000262260437, -0.40224170684814453, 0.026169952005147934, -0.236159086227417, -0.92485511302948, 0.6001068949699402, 0.8594247698783875, 0.43841108679771423, 0.5413729548454285, 1...
func (decTree Tree) GetTerminalNode(datum dataTypes.Data) *Tree { currNode := &decTree for currNode.Details.Leaf == false { index := currNode.Details.IndexSplit testVal := GetFloatReflectVal(datum.FeatureSlice[index]) if testVal < currNode.Details.SplitVal { currNode = currNode.Left } else { currNode =...
[ 0.149130716919899, 0.07050148397684097, 0.5744608044624329, -0.9140204787254333, 0.0101923868060112, -0.29137787222862244, -0.012939649634063244, 0.16424085199832916, -0.38483551144599915, -0.30056843161582947, 0.46699872612953186, 0.6454725861549377, -0.19313699007034302, 0.39591026306152...
func (decTree *Tree) WriteTree(filename string) { file, err := os.Create(filename) if err != nil { fmt.Println("Error opening output file: ", filename) return } currNode := decTree var treeStack []*Tree treeLen := 1 for treeLen != 0 { file.WriteString(nodeToStr(currNode.Details)) if currNode.Details.L...
[ -0.14791199564933777, -0.14726531505584717, 0.6549113988876343, -0.7226492166519165, 0.7595876455307007, -0.07370048761367798, 0.3139804005622864, 1.124995470046997, -0.9654297232627869, -0.18016193807125092, 0.3884493410587311, -0.42584115266799927, -0.849022388458252, 1.4644981622695923,...
func (decTree *Tree) ReadTree(filename string) error { file, err := ioutil.ReadFile(filename) if err != nil { fmt.Println("Error opening input file: ", filename) return err } sDat := fmt.Sprintf("%s", file) datLines := strings.Split(sDat, "\n") currNode := decTree var treeStack []*Tree treeLen := 1 lastN...
[ -0.27795445919036865, 0.14739933609962463, 0.9343699216842651, -0.41775479912757874, 0.2531002163887024, 0.21528339385986328, 0.00303544569760561, 0.48358237743377686, -0.8271706700325012, -0.3501417338848114, 0.5981322526931763, -0.06766779720783234, -0.2800031006336212, 1.061276435852050...
func (decTree *Tree) findSplit(currData []*dataTypes.Data, classes []ClassAvg, setVal, stopCond float64) ([]*dataTypes.Data, []*dataTypes.Data) { if stoppingCond(currData, stopCond) { decTree.Details.Leaf = true decTree.Details.Class = getMajority(currData) return nil, nil } numFields := len(currData[0].Featu...
[ -1.4154367446899414, 0.10831642150878906, 0.6868247985839844, -1.0340924263000488, -0.25484544038772583, -0.2784753739833832, 0.288006067276001, -0.2538764774799347, -1.1995972394943237, 0.32845747470855713, 0.8000249862670898, 0.5124240517616272, 0.2172553688287735, 1.1505093574523926, ...
func (m *UserPreferences) Validate(formats strfmt.Registry) error { var res []error if err := m.validateDateFormat(formats); err != nil { res = append(res, err) } if err := m.validateEmail(formats); err != nil { res = append(res, err) } if err := m.validateEmailAlerts(formats); err != nil { res = append(...
[ 0.09042561799287796, -0.019424332305788994, 0.5918886661529541, 0.4237852394580841, -0.09696914255619049, 0.6611850261688232, 0.32767796516418457, -1.069457769393921, -0.4863664507865906, 0.12625235319137573, 0.1765577793121338, 0.6009000539779663, -0.9720499515533447, 0.5471019744873047, ...
func NewOvrstatService(log *logrus.Logger) OvrstatService { return &ovrstatService{log: log.WithField("service", "ovrstat")} }
[ -0.07826824486255646, 0.02443527989089489, 0.043901704251766205, -0.864403486251831, -0.49716687202453613, 0.22638095915317535, -0.6569340825080872, -1.7139405012130737, 0.37306851148605347, -0.2942652106285095, 0.49397388100624084, 0.7334139347076416, 0.01718609593808651, -0.0456561632454...
func (o *ovrstatService) PCStats(r *http.Request) (interface{}, error) { l := o.log.WithField("handler", "pc").WithField("ip_address", r.RemoteAddr) l.Debug("New PC Stats request received") // Extracts request variables l.Debug("Extracting request variables") v := mux.Vars(r) region, tag := v["region"], v["tag"]...
[ -0.3217337131500244, -0.34550249576568604, 0.9833234548568726, -0.9908655285835266, -0.5282670855522156, -0.038398660719394684, -0.6538330912590027, -1.1178667545318604, 0.03812096267938614, 0.04628347232937813, 1.2546069622039795, -0.515938401222229, -1.0521239042282104, -0.10746973752975...
func (o *ovrstatService) ConsoleStats(r *http.Request) (interface{}, error) { l := o.log.WithField("handler", "console").WithField("ip_address", r.RemoteAddr) l.Debug("New Console Stats request received") // Extracts request variables l.Debug("Extracting request variables") v := mux.Vars(r) platform, tag := v["p...
[ -0.7142773866653442, -0.1505064219236374, 0.9902865886688232, -0.7996497750282288, 0.1506207436323166, -0.3947506844997406, -0.3402908146381378, -1.2173327207565308, -0.16057796776294708, 0.3892417848110199, 0.7912718057632446, 0.23091666400432587, -0.8127198815345764, -0.3325345814228058,...
func NewServer(opts ...server.Option) server.Server { return newServer(opts...) }
[ -0.4618578255176544, -0.5433868169784546, 0.2112434059381485, 0.9571080803871155, -0.413368821144104, 0.18362511694431305, -0.2717263400554657, 0.34892216324806213, 0.8820197582244873, -0.6796996593475342, -0.7507702112197876, 1.0664876699447632, -1.0940330028533936, 0.2935161888599396, ...
func ApplyListOptions(listOpts *k8sapiv1.ListOptions) metav1.ListOptions { opts := metav1.ListOptions{} if len(listOpts.Labels) > 0 { opts.LabelSelector = labels.FormatLabels(listOpts.Labels) } return opts }
[ -0.5091881155967712, -0.6781817078590393, 0.5553501844406128, -0.15381385385990143, 0.2589629292488098, -0.22730159759521484, -1.6849626302719116, 0.9235652685165405, 2.1264171600341797, 0.15702711045742035, 0.053021855652332306, 0.3414846956729889, -0.09652744978666306, 1.3319517374038696...
func Ping(hostname string) (reply bool, err error) { ipAddr, err := net.ResolveIPAddr("ip4", hostname) if err != nil { return false, err } readDeadline := time.Now().Add(time.Duration(time.Second * ICMPReadTimeout)) writeDeadline := time.Now().Add(time.Duration(time.Second * ICMPWriteTimeout)) c, err := icmp....
[ -0.5163909792900085, 0.2525296211242676, 1.246018409729004, -0.595321774482727, 0.0038372534327208996, 0.39871108531951904, -0.08972684293985367, -0.09524308890104294, -0.297517329454422, 0.5725542902946472, -0.23893308639526367, -0.6172782182693481, -1.6362186670303345, -0.325369924306869...
func (bt *BlockTimer) StartBlockTimer() { //wait till the end of minute //the first minute section might be bigger than others. To be improved. /* t := time.Now() time.Sleep(time.Duration((60 - t.Second()) * 1000000000)) */ if directoryBlockInSeconds < 600 { sleeptime := directoryBlockInSeconds / 10 // Se...
[ -0.2378392517566681, 0.022952724248170853, 0.9671223163604736, -0.7952347993850708, 0.006498588714748621, -0.5449445843696594, 0.3828909695148468, -0.4116135239601135, -0.41081634163856506, 0.5394815802574158, 0.06724798679351807, 0.49277830123901367, -0.8922471404075623, 1.053346514701843...
func MarshalIAMPolicy(role awsv1alpha1.AWSFederatedRole) (string, error) { statements := []awsStatement{} for _, statement := range role.Spec.AWSCustomPolicy.Statements { statements = append(statements, awsStatement(statement)) } // Create a aws policydoc formated struct policyDoc := awsPolicy{ Version: "2...
[ 0.8588458895683289, -0.004715592600405216, 0.5247196555137634, -1.4198920726776123, -0.5155863761901855, 0.7980563640594482, -0.08327948302030563, -0.1520383507013321, 1.008391261100769, 0.873920202255249, 0.46917715668678284, 0.388503760099411, 0.6551157236099243, 0.12342572957277298, 0...
func AddFinalizer(object metav1.Object, finalizer string) { finalizers := sets.NewString(object.GetFinalizers()...) finalizers.Insert(finalizer) object.SetFinalizers(finalizers.List()) }
[ -0.6648859977722168, -0.4812006950378418, 0.5418604016304016, 0.2221611887216568, -0.7174288034439087, 0.13469605147838593, -0.5059038996696472, 0.12578363716602325, 0.6180237531661987, -0.6467734575271606, -0.9300563931465149, 0.022865869104862213, 0.2167268693447113, 0.36375659704208374,...
func GenerateShortUID() string { UID := rand.String(6) return fmt.Sprintf("%s", UID) }
[ 0.6936838626861572, -0.6479132771492004, 0.6151393055915833, -0.5421919822692871, -0.5083119869232178, 1.2303498983383179, 0.2398511916399002, 1.1385629177093506, 1.3400297164916992, -1.000739574432373, -0.4996831715106964, 0.7600057721138, -0.2370552122592926, 0.022781914100050926, -0.0...
func GenerateLabel(key, value string) map[string]string { return map[string]string{key: value} }
[ -1.0207037925720215, -0.5796294808387756, 0.5454902052879333, -1.0397183895111084, -0.3759255111217499, 1.414393424987793, -1.4267452955245972, -0.10054048150777817, 0.10327471792697906, 0.7540091276168823, 0.10908432304859161, -0.21559225022792816, 0.6394425630569458, -0.15534035861492157...
func JoinLabelMaps(m1, m2 map[string]string) map[string]string { for key, value := range m2 { m1[key] = value } return m1 }
[ -0.6057377457618713, -1.8446158170700073, 0.7129471302032471, -0.5485321283340454, -0.18437132239341736, 1.693798303604126, -1.6450819969177246, -0.2912798523902893, -0.5202934741973877, 0.5542861223220825, 0.7262522578239441, -0.18904517590999603, -0.5148828029632568, -0.37656885385513306...
func AccountCRHasIAMUserIDLabel(accountCR *awsv1alpha1.Account) bool { // Check if the UID label exists and is set if _, ok := accountCR.Labels[awsv1alpha1.IAMUserIDLabel]; ok { return true } return false }
[ 0.3196784555912018, -0.4358189105987549, 0.35168471932411194, -0.10553283989429474, 0.02282610535621643, 1.2379305362701416, 0.021342219784855843, 0.11398284882307053, 0.9224004149436951, 0.5790765285491943, 0.634482204914093, 0.4408424496650696, -0.6810715198516846, -0.07272372394800186, ...
func ValidateToken(config *oauth2.Config, token *oauth2.Token) (*oauth2.Token, error) { if token.Valid() { return token, nil } tokenSource := config.TokenSource(oauth2.NoContext, token) newToken, err := tokenSource.Token() if err != nil { return token, fmt.Errorf("error refreshing token: %v", err) } return n...
[ -0.319382905960083, -0.00927317887544632, 0.199299156665802, -0.18399761617183685, -0.46655505895614624, -0.2258380651473999, -0.18186742067337036, -0.02114148996770382, 0.5416995286941528, -0.6555137634277344, -0.12642107903957367, 1.7518032789230347, 0.18882033228874207, -0.1998149454593...
func NewToken(config *oauth2.Config, token *oauth2.Token) (*oauth2.Token, error) { if token.RefreshToken == "" { return nil, fmt.Errorf("token provided is not a refresh token") } var opts []oauth2.AuthCodeOption opts = append(opts, oauth2.SetAuthURLParam(`grant_type`, `refresh_token`)) opts = append(opts, oauth2...
[ 0.06345703452825546, -0.12392347306013107, 0.7185743451118469, 0.6375392079353333, -0.7143657803535461, -0.10975673794746399, -0.13070252537727356, -0.45724454522132874, 0.9411324262619019, -0.18608371913433075, 0.17036932706832886, 1.4994008541107178, 0.4734628200531006, 0.571693062782287...
func TokenToFile(path string, token *oauth2.Token) error { f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0600) if err != nil { return fmt.Errorf("Unable to save oauth token: %v", err) } defer f.Close() json.NewEncoder(f).Encode(token) return nil }
[ 0.024872953072190285, -0.851988673210144, 0.5153704285621643, -1.0843360424041748, 0.8008310794830322, 0.06412608921527863, -0.19956782460212708, -0.23764635622501373, -0.7150355577468872, 0.4383273422718048, -1.1335335969924927, 0.8718246221542358, 0.31136906147003174, -0.7697311639785767...
func TokenFromFile(jsonFile string) (*oauth2.Token, error) { f, err := os.Open(jsonFile) if err != nil { return nil, err } defer f.Close() tok := &oauth2.Token{} err = json.NewDecoder(f).Decode(tok) return tok, err }
[ -0.16746869683265686, -1.0555078983306885, 0.36400923132896423, -0.7562073469161987, -0.8797853589057922, 0.09283103048801422, -0.0025801409501582384, 0.4767202138900757, -0.7136455774307251, -0.3945019841194153, -0.7089574337005615, 0.28025972843170166, 0.37903550267219543, -0.37843760848...
func (l *MockLogger) Flush() {}
[ -0.7973169088363647, -0.5676971077919006, 0.4247574210166931, -0.2180738002061844, -0.15702778100967407, 0.8944113850593567, 0.8942053914070129, 0.017432911321520805, 0.4814419150352478, -0.256943017244339, -0.2805936932563782, 1.2694106101989746, -0.4626937806606293, 1.9273797273635864, ...
func NewItemOutlookRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOutlookRequestBuilder) { m := &ItemOutlookRequestBuilder{ BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b74...
[ -1.138654351234436, -0.31906658411026, 0.5617035627365112, -0.6569108366966248, -1.1926944255828857, 0.6920580267906189, 0.40397369861602783, -0.21703144907951355, 0.02031146176159382, 0.004978065378963947, 0.31781840324401855, 1.0716735124588013, -0.5726536512374878, -0.5194593667984009, ...
func NewItemOutlookRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemOutlookRequestBuilder) { urlParams := make(map[string]string) urlParams["request-raw-url"] = rawUrl return NewItemOutlookRequestBuilderInternal(urlParams, re...
[ -1.7339134216308594, -0.1567496508359909, 0.355487197637558, 0.27127936482429504, -1.4081183671951294, 0.3914524018764496, -0.09993966668844223, 0.2428358942270279, 0.6511165499687195, -0.7124125957489014, 0.24823488295078278, 0.6761956214904785, 0.22013969719409943, -0.126814067363739, ...
func (m *ItemOutlookRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemOutlookRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.OutlookUserable, error) { requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration); if err != nil...
[ -0.6073998808860779, 0.1214003935456276, 1.0119390487670898, -0.48376646637916565, -0.4396514594554901, 0.49555331468582153, 0.61551433801651, -0.2382073998451233, -0.24847739934921265, 0.007710609585046768, 0.39659032225608826, 1.1139395236968994, -0.2548265755176544, -0.7040239572525024,...
func (m *ItemOutlookRequestBuilder) MasterCategories()(*ItemOutlookMasterCategoriesRequestBuilder) { return NewItemOutlookMasterCategoriesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) }
[ -0.18474097549915314, 0.0849960446357727, 0.3323104679584503, 0.2394673079252243, -0.7123732566833496, 0.1500764936208725, 0.32109835743904114, 0.4071957767009735, 0.545660138130188, -1.099503993988037, 0.19049334526062012, 0.5148996710777283, -0.35296884179115295, -0.3371717929840088, -...
func (m *ItemOutlookRequestBuilder) SupportedLanguages()(*ItemOutlookSupportedLanguagesRequestBuilder) { return NewItemOutlookSupportedLanguagesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) }
[ -0.3771545886993408, 0.20400336384773254, 0.5195837616920471, 0.22181867063045502, -1.3607174158096313, 0.48185113072395325, 0.18728245794773102, 0.6476914286613464, 0.2401302456855774, -0.2910916209220886, 0.1274861842393875, 0.4541698098182678, -0.5847349166870117, -0.18781378865242004, ...
func (m *ItemOutlookRequestBuilder) SupportedTimeZones()(*ItemOutlookSupportedTimeZonesRequestBuilder) { return NewItemOutlookSupportedTimeZonesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) }
[ -1.0004777908325195, 0.5882394909858704, 0.5971037745475769, 0.7137206196784973, -1.4220826625823975, 0.39120450615882874, 0.7254793047904968, 0.07593205571174622, 0.6164040565490723, 0.3056503236293793, -0.6703153252601624, 0.1878487914800644, -0.3746764361858368, -0.10157258063554764, ...
func (m *ItemOutlookRequestBuilder) SupportedTimeZonesWithTimeZoneStandard(timeZoneStandard *string)(*ItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilder) { return NewItemOutlookSupportedTimeZonesWithTimeZoneStandardRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.Request...
[ -0.899411678314209, 0.27922913432121277, 0.693526566028595, 0.2626170516014099, -1.6068460941314697, 0.4505316913127899, 0.7871309518814087, 0.8305968046188354, 0.9181145429611206, 0.38925766944885254, -1.0106745958328247, 0.20266492664813995, -0.355572909116745, 0.008750196546316147, 0....
func (m *ItemOutlookRequestBuilder) TaskFolders()(*ItemOutlookTaskFoldersRequestBuilder) { return NewItemOutlookTaskFoldersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) }
[ -1.5699028968811035, 0.2586798667907715, 0.6700166463851929, 0.7703422904014587, -0.8093823790550232, 0.05389448255300522, 1.5181727409362793, -0.5716389417648315, -0.14191709458827972, 0.5108522176742554, 0.05917302891612053, 0.08070886880159378, -0.5729374885559082, -0.016474835574626923...
func (m *ItemOutlookRequestBuilder) TaskGroups()(*ItemOutlookTaskGroupsRequestBuilder) { return NewItemOutlookTaskGroupsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) }
[ -1.332460880279541, 0.8906241059303284, 0.46882084012031555, 0.01631106436252594, -1.0292869806289673, -0.1318824738264084, 1.0467536449432373, -0.759989321231842, -0.4367152452468872, 0.47774308919906616, 0.43753233551979065, 1.1796045303344727, -0.8038749694824219, -0.15436698496341705, ...
func (m *ItemOutlookRequestBuilder) Tasks()(*ItemOutlookTasksRequestBuilder) { return NewItemOutlookTasksRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter) }
[ -0.956611156463623, 0.7232762575149536, 0.46893611550331116, 0.2201315015554428, -0.389431357383728, -0.1094309538602829, 0.7437489628791809, 0.02586224116384983, 0.24772518873214722, -0.3109446167945862, 0.02231050468981266, 0.7735254764556885, 0.22994261980056763, -0.1319310963153839, ...
func (m *ItemOutlookRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemOutlookRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) { requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b743...
[ -1.1512418985366821, 0.0012040379224345088, 0.8657239079475403, -0.8976084589958191, -0.16887244582176208, -0.11528591066598892, 0.19124872982501984, -0.5525548458099365, 0.2173262983560562, -0.3853456974029541, 0.3933026194572449, 0.6077753901481628, -0.2874778211116791, -0.29349645972251...
func (*UiDetectionRequest) Descriptor() ([]byte, []int) { return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{0} }
[ -0.9088098406791687, 0.4815811514854431, 0.3709712326526642, 0.8811274766921997, 0.37660396099090576, 0.015185950323939323, 0.7229893803596497, 0.6209439039230347, 0.5483195185661316, -0.874534010887146, 0.018633350729942322, -0.41216713190078735, 0.299245685338974, 0.6753294467926025, 1...
func (x *UiDetectionRequest) GetTestId() string { if x != nil { return x.TestId } return "" }
[ 1.3435887098312378, 0.6497358679771423, 0.30893194675445557, 1.0754663944244385, 0.646849513053894, 1.271911859512329, 0.5430099964141846, -0.4526040852069855, 1.5277341604232788, -0.2792636454105377, 0.6209825873374939, -0.414104700088501, -0.7032939195632935, 0.8211649060249329, 0.0441...
func (*DetectionRequest) Descriptor() ([]byte, []int) { return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{1} }
[ -0.7307962775230408, 0.040625687688589096, 0.5081743597984314, 0.8760555982589722, 0.08248365670442581, 0.3371458351612091, 0.01013903133571148, 0.21285462379455566, -0.0228780135512352, -0.8758569359779358, 0.19345520436763763, 0.0641314685344696, 0.4254980981349945, 0.9776007533073425, ...
func (*TestMetadata) Descriptor() ([]byte, []int) { return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{2} }
[ 0.015400822274386883, 0.27687329053878784, 0.19859886169433594, 0.31756672263145447, 0.4922012388706207, 0.5027375817298889, 0.8414574861526489, -0.39698347449302673, -0.0321366973221302, 0.05954139307141304, -0.4888498783111572, 0.3210517168045044, -0.6169213056564331, 0.45656606554985046...
func (*WordDetectionRequest) Descriptor() ([]byte, []int) { return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{3} }
[ -0.09846265614032745, 0.4285244643688202, 0.32247304916381836, 0.7015838623046875, 0.37958672642707825, -0.29050976037979126, 0.2765125036239624, 0.23884263634681702, 0.25442343950271606, 0.015726488083600998, -0.18780650198459625, -0.25812840461730957, -0.1625080406665802, 1.3429594039916...
func (*TextBlockDetectionRequest) Descriptor() ([]byte, []int) { return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{4} }
[ -0.023592310026288033, 0.052918218076229095, 0.28696733713150024, 0.4268609881401062, 0.6331490278244019, -0.2512286901473999, -0.5679519176483154, 0.7116125226020813, -0.22357673943042755, -0.1164088174700737, -0.0237432848662138, -0.23734362423419952, -0.37978652119636536, 1.293627977371...
func (*CustomIconDetectionRequest) Descriptor() ([]byte, []int) { return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{5} }
[ -0.4463764429092407, 0.20800748467445374, 0.2069002240896225, 0.32517459988594055, 0.19622193276882172, -0.6798868179321289, 0.3818719983100891, 0.2556537389755249, 0.35016992688179016, -0.6163942813873291, -0.5457414984703064, 0.06976128369569778, -0.17849522829055786, 0.3751333951950073,...
func (*UiDetectionResponse) Descriptor() ([]byte, []int) { return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{6} }
[ -0.12248452752828598, 0.408263623714447, -0.055058714002370834, 0.8720229864120483, 0.7553128004074097, -0.5081146359443665, 0.9618024826049805, 0.33654895424842834, 0.7114320993423462, -0.4026069939136505, -0.6995623111724854, -0.9988736510276794, -0.5921186208724976, 0.037700776010751724...
func (*BoundingBox) Descriptor() ([]byte, []int) { return file_google_chromeos_uidetection_v1_ui_detection_proto_rawDescGZIP(), []int{7} }
[ -0.24150963127613068, 0.9800956845283508, 0.41900619864463806, 0.19068701565265656, 0.05278320983052254, 0.2439793348312378, 0.5242597460746765, -0.053193941712379456, -0.21084877848625183, -1.1671935319900513, -0.5407534241676331, 0.5357450842857361, -0.15581254661083221, 0.99070113897323...
func New(config *viper.Viper, store store.Store, notFoundProvider model.Provider) *Router { return &Router{ config: config, store: store, routes: make([]*model.Route, 0), providers: make(map[string]model.Provider), NotFoundProvider: notFoundProvider, } }
[ -0.7422319650650024, -1.1897656917572021, -0.02747756987810135, 0.014648311771452427, 0.2569648027420044, -0.16533534228801727, -0.4960670471191406, 0.5091932415962219, -0.011929088272154331, 0.735327959060669, -0.4700320363044739, 0.7682179808616638, 0.17161191999912262, 0.625063061714172...
func (r *Router) Init() error { for name := range r.config.GetStringMap("providers") { fn, ok := plugin.ProviderFactories[name] if ok { provider, err := fn(r.config.Sub(fmt.Sprintf("providers.%s", name))) if err != nil { return fmt.Errorf("Provider %s not registered", name) } r.AddProvider(provider...
[ -0.9583628177642822, 0.13934855163097382, 0.5952433347702026, -0.590509831905365, 0.7245830297470093, -0.34907448291778564, -0.48419246077537537, 0.5669999718666077, -0.04288414493203163, 1.1924384832382202, -0.20221051573753357, 0.07533866167068481, -0.3812599182128906, 0.6897792816162109...
func (r *Router) Get(name string) *model.Route { r.rMutex.RLock() defer r.rMutex.RUnlock() _, route := r.get(name) return route }
[ -0.6141276955604553, -0.33675917983055115, 0.13877004384994507, -0.2763320207595825, 0.4054276943206787, -0.3934541642665863, -0.8325022459030151, -0.8950284123420715, -0.6042851209640503, 0.0770307183265686, -0.4684339463710785, 0.8487269878387451, -0.7306378483772278, -0.3181925415992737...
func (r *Router) Add(route *model.Route) error { r.rMutex.Lock() defer r.rMutex.Unlock() r.routes = append([]*model.Route{route}, r.routes...) return r.saveToDB() }
[ -1.1562302112579346, 0.5016006827354431, 0.33091244101524353, 0.10493416339159012, 0.8733363747596741, 0.7067697048187256, -0.7510347962379456, 0.1983770728111267, 0.28694722056388855, 0.09796816855669022, -0.8011021018028259, -0.36531516909599304, -1.0783445835113525, 1.037079930305481, ...
func (r *Router) AddWith(name, pattern, providerName, from string, isActive bool) error { route := r.Get(name) if route != nil { return errors.New("route already exists") } provider := r.GetProvider(providerName) if provider == nil { return errors.New("provider not found") } return r.Add(model.NewRoute(name,...
[ -0.29168447852134705, -0.2660703957080841, 0.9410997033119202, 0.40662074089050293, -0.15042512118816376, 0.4981953203678131, -1.2030967473983765, -0.05827055498957634, 0.3332641124725342, 0.8597104549407959, -0.11217697709798813, 0.05085813254117966, -0.026565641164779663, -0.082524761557...
func (r *Router) SaveToDB() error { r.rMutex.RLock() defer r.rMutex.RUnlock() return r.saveToDB() }
[ -1.0714625120162964, 0.46221044659614563, 0.7121685743331909, 0.7368505597114563, 0.8740494847297668, 0.19343146681785583, 0.8638218641281128, -0.29579398036003113, -0.22632889449596405, 1.0458953380584717, -1.0792473554611206, -0.7655613422393799, -1.4505854845046997, 0.6611900925636292, ...
func (r *Router) LoadFromDB() error { r.rMutex.Lock() defer r.rMutex.Unlock() result := <-r.store.Route().GetAll() if result.Err != nil { return result.Err } routes := []*model.Route{} routeRows := result.Data.([]*model.Route) for _, row := range routeRows { if provider := r.GetProvider(row.Provider); prov...
[ -0.08253558725118637, 0.30324602127075195, 0.4776044189929962, 0.1388312727212906, -0.10855850577354431, 0.13365450501441956, -0.7833892703056335, 0.41951942443847656, -0.1937851905822754, 0.5373958945274353, -0.4240807890892029, -0.318522185087204, -0.5330004096031189, 1.1376183032989502,...
func (*AdditionalPropertiesItem) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _AdditionalPropertiesItem_OneofMarshaler, _AdditionalPropertiesItem_OneofUnmarshaler, _Addit...
[ 0.030845701694488525, 0.1666169911623001, 0.3972804546356201, -0.7567274570465088, -0.04765227437019348, -0.2130769044160843, 0.3846658766269684, -1.1155846118927002, 0.466715931892395, -0.5440247058868408, 0.24895749986171722, -0.31251949071884155, -0.1742284744977951, 0.7097830772399902,...
func (*NonBodyParameter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _NonBodyParameter_OneofMarshaler, _NonBodyParameter_OneofUnmarshaler, _NonBodyParameter_OneofSizer, ...
[ -0.6150346398353577, 0.7245994806289673, 0.6434776186943054, -0.5299716591835022, 0.18778985738754272, -0.3234149217605591, 0.5862786769866943, -1.5049926042556763, 0.18250231444835663, -0.23964723944664001, -0.6425653696060181, 0.08771537244319916, -0.8964178562164307, 1.4486836194992065,...
func (*Parameter) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _Parameter_OneofMarshaler, _Parameter_OneofUnmarshaler, _Parameter_OneofSizer, []interface{}{ (*Parameter...
[ -0.6141852140426636, 0.466995507478714, 0.5957926511764526, -0.7543495893478394, 0.4412786662578583, -0.6597596406936646, 0.7753883004188538, -1.150807499885559, 0.5507692098617554, -0.3029738962650299, -0.3931737542152405, 0.41641026735305786, -0.6073312759399414, 1.1263376474380493, 0....
func (*ParametersItem) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _ParametersItem_OneofMarshaler, _ParametersItem_OneofUnmarshaler, _ParametersItem_OneofSizer, []interf...
[ -0.9525738954544067, 0.48796868324279785, 0.449171245098114, -0.6162003874778748, 0.648188591003418, -0.7213795781135559, 0.534369170665741, -1.165368914604187, 0.21875348687171936, -0.16069847345352173, 0.17191767692565918, -0.045949529856443405, -0.6236662268638611, 0.9175026416778564, ...
func (*ResponseValue) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _ResponseValue_OneofMarshaler, _ResponseValue_OneofUnmarshaler, _ResponseValue_OneofSizer, []interface{...
[ -0.36477476358413696, 0.45283716917037964, 0.6070167422294617, -0.4405601918697357, -0.007103057578206062, -1.1062037944793701, 1.02616548538208, -1.3388324975967407, 0.39352816343307495, -1.1135615110397339, -0.28413471579551697, -0.06754447519779205, 0.17455588281154633, 0.70592695474624...
func (*SchemaItem) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _SchemaItem_OneofMarshaler, _SchemaItem_OneofUnmarshaler, _SchemaItem_OneofSizer, []interface{}{ (*Schem...
[ -0.8095636367797852, 0.6359466910362244, 0.34011808037757874, 0.09110648930072784, 0.3333589732646942, -0.690950870513916, 0.7867099642753601, -0.3482736051082611, 0.503667414188385, -0.670909583568573, -0.5203781723976135, -0.1907486468553543, -0.29969874024391174, 0.644260823726654, 0....
func (*SecurityDefinitionsItem) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _SecurityDefinitionsItem_OneofMarshaler, _SecurityDefinitionsItem_OneofUnmarshaler, _Security...
[ -0.03429095447063446, 0.39043989777565, 0.4760283827781677, 0.31054702401161194, 0.4574388861656189, -0.34427133202552795, 0.8496841192245483, -1.0294350385665894, 0.8180842995643616, -0.6727998852729797, -0.7153763175010681, 0.1622065305709839, -0.16995082795619965, 0.15509898960590363, ...
func createPipelineServiceAccount(testBuild *utils.TestBuild) { serviceAccountName := os.Getenv(EnvVarServiceAccountName) if serviceAccountName == "generated" { Logf("Skipping creation of service account, generated one will be used per build run.") } else { serviceAccount := &corev1.ServiceAccount{ ObjectMet...
[ -0.05099691078066826, -0.6095998883247375, 0.5100605487823486, 0.000011308238754281774, 0.3466433584690094, 0.5798797011375427, 1.2262362241744995, -0.149407297372818, -0.2312065213918686, -0.47629350423812866, -0.018085850402712822, 0.8967201709747314, -0.32444238662719727, 0.153405278921...
func createContainerRegistrySecret(testBuild *utils.TestBuild) { secretName := os.Getenv(EnvVarImageRepoSecret) secretPayload := os.Getenv(EnvVarSourceRepoSecretJSON) if secretName == "" || secretPayload == "" { Logf("Container registry secret won't be created.") return } _, err := testBuild.LookupSecret(type...
[ 0.3143427073955536, 0.15161873400211334, 0.6919248700141907, -0.3679443299770355, 0.8955434560775757, -0.02608037367463112, 0.24289502203464508, -0.22139476239681244, 0.006904976908117533, -0.09409205615520477, -1.5304691791534424, -0.08983230590820312, -0.42025092244148254, 0.460580796003...
func validateBuildRunToSucceed(testBuild *utils.TestBuild, testBuildRun *buildv1alpha1.BuildRun) { trueCondition := corev1.ConditionTrue falseCondition := corev1.ConditionFalse // Ensure the BuildRun has been created err := testBuild.CreateBR(testBuildRun) Expect(err).ToNot(HaveOccurred(), "Failed to create Build...
[ 0.12177591025829315, -0.06790604442358017, 0.6817811727523804, -0.2385331690311432, 0.270830899477005, 1.1872037649154663, 0.36441224813461304, 0.7521631717681885, -0.6383320093154907, -0.11174484342336655, -0.40843838453292847, 0.5613954067230225, -0.5330156087875366, 1.0909318923950195, ...
func validateServiceAccountDeletion(buildRun *buildv1alpha1.BuildRun, namespace string) { buildRunCondition := buildRun.Status.GetCondition(buildv1alpha1.Succeeded) if buildRunCondition != nil { if buildRunCondition.Status == "" || buildRunCondition.Status == corev1.ConditionUnknown { Logf("Skipping validation o...
[ 0.7190243601799011, -0.3466690182685852, 0.58721923828125, 0.7159672975540161, 0.26339957118034363, 0.9132586121559143, 1.6369121074676514, 0.24349601566791534, 0.628118097782135, -0.5800842046737671, 0.3027978241443634, 0.8392722606658936, -0.25760987401008606, 0.5831020474433899, 0.824...
func buildStrategyTestData(ns string, buildStrategyCRPath string) (*buildv1alpha1.BuildStrategy, error) { obj, err := readAndDecode(buildStrategyCRPath) if err != nil { return nil, err } buildStrategy := obj.(*buildv1alpha1.BuildStrategy) buildStrategy.SetNamespace(ns) return buildStrategy, err }
[ 0.4372401535511017, -0.8901349902153015, 0.31140321493148804, -0.03386038914322853, 0.14290042221546173, 0.5962766408920288, 0.053824275732040405, -0.5461364984512329, 0.46027490496635437, -0.10599905252456665, 0.13216890394687653, 0.9597429037094116, -0.28319084644317627, -0.1181145459413...
func buildRunTestData(ns string, identifier string, filePath string) (*buildv1alpha1.BuildRun, error) { obj, err := readAndDecode(filePath) if err != nil { return nil, err } buildRun, ok := obj.(*buildv1alpha1.BuildRun) if !ok { return nil, fmt.Errorf("failed to use the content of %s as a BuildRun runtime obj...
[ -0.30615031719207764, -1.080862045288086, 0.5497646927833557, -0.4290226399898529, -0.3684619665145874, 0.8472081422805786, 0.1794484257698059, 0.2450495958328247, 0.12368647754192352, -0.37773069739341736, -0.29491621255874634, 0.9782487750053406, -0.6502042412757874, 0.12774407863616943,...
func Md5(b []byte) string { checksum := md5.Sum(b) return hex.EncodeToString(checksum[:]) }
[ 0.4822712540626526, 0.056294798851013184, 0.2239636480808258, 0.04609904810786247, -0.31282663345336914, 0.8457221984863281, -0.010743245482444763, 0.32470908761024475, 0.7175002098083496, 0.5479146838188171, -0.3435867726802826, -0.39838656783103943, 0.13035106658935547, -0.20300631225109...
func AESEncrypt(cipherkey, src []byte) []byte { block, err := aes.NewCipher(cipherkey) if err != nil { panic(err) } bs := block.BlockSize() src = padData(src, bs) r := make([]byte, len(src)) dst := r for len(src) > 0 { block.Encrypt(dst, src) src = src[bs:] dst = dst[bs:] } dst = make([]byte, hex.Enco...
[ -0.5851390957832336, 1.060932993888855, 0.5106423497200012, -0.7840179800987244, -0.35262733697891235, -0.45031440258026123, -0.44861021637916565, -0.14551736414432526, 0.4701031744480133, 0.887628972530365, -1.2236272096633911, 0.607347309589386, -0.18126066029071808, 0.4291434586048126, ...
func AESDecrypt(cipherkey, ciphertext []byte) ([]byte, error) { block, err := aes.NewCipher(cipherkey) if err != nil { return nil, err } src := make([]byte, hex.DecodedLen(len(ciphertext))) _, err = hex.Decode(src, ciphertext) if err != nil { return nil, err } bs := block.BlockSize() r := make([]byte, len(...
[ 0.07219885289669037, 0.6575024724006653, 0.7004459500312805, -0.975551962852478, -0.9768853187561035, 0.24409528076648712, -0.21353819966316223, 0.24589228630065918, 0.758281946182251, 0.46249493956565857, -0.7776190042495728, -0.31424573063850403, -0.1394023448228836, 0.020348822697997093...
func NewRouter(doc *openapi3.T) (routers.Router, error) { servers, err := makeServers(doc.Servers) if err != nil { return nil, err } muxRouter := mux.NewRouter().UseEncodedPath() r := &Router{} for _, path := range doc.Paths.InMatchingOrder() { pathItem := doc.Paths[path] if len(pathItem.Servers) > 0 { ...
[ -0.6244855523109436, -0.24022814631462097, 0.721490204334259, 0.06847553700208664, -1.0630005598068237, 0.2130461186170578, 0.5085904598236084, -0.2672504186630249, 0.5396498441696167, -0.21651777625083923, 0.10640649497509003, -0.02089991793036461, 0.0107337087392807, 0.15573163330554962,...
func (r *Router) FindRoute(req *http.Request) (*routers.Route, map[string]string, error) { for i, m := range r.muxes { var match mux.RouteMatch if m.muxRoute.Match(req, &match) { if err := match.MatchErr; err != nil { // What then? } vars := match.Vars if f := m.varsUpdater; f != nil { f(vars) ...
[ -0.6163642406463623, -0.3616373538970947, 0.7532117962837219, 0.5477025508880615, -0.1534302681684494, -0.9944952726364136, -0.06112401559948921, -0.27984997630119324, -0.19253239035606384, 0.25726673007011414, 0.8014975190162659, -0.47274935245513916, -0.6995373368263245, 0.77642869949340...
func (_m *Entity) AddEvent(events ...core.Event) { _va := make([]interface{}, len(events)) for _i := range events { _va[_i] = events[_i] } var _ca []interface{} _ca = append(_ca, _va...) _m.Called(_ca...) }
[ -0.461586594581604, 0.7849164605140686, 0.5713092684745789, 0.6167179346084595, 0.5652629733085632, 0.03394397348165512, 0.7215491533279419, 0.3669697940349579, 0.1067955493927002, -0.15788748860359192, -0.1899639368057251, 0.19819195568561554, 0.6028147339820862, 0.6209744811058044, 0.1...
func (_m *Entity) ClearEvents() { _m.Called() }
[ 0.2310798168182373, 0.8190751671791077, 0.35505008697509766, 0.5363190174102783, -0.21849575638771057, 0.11749347299337387, 0.37043774127960205, -0.2678176462650299, 0.807440459728241, 1.0882022380828857, 0.3159232437610626, 0.8389338850975037, 0.25811678171157837, -0.5017966628074646, -...
func (_m *Entity) EntityName() string { ret := _m.Called() var r0 string if rf, ok := ret.Get(0).(func() string); ok { r0 = rf() } else { r0 = ret.Get(0).(string) } return r0 }
[ -1.003746747970581, -0.30849504470825195, 0.348373144865036, 0.40435990691185, -0.0743609368801117, -0.7349316477775574, 1.1061843633651733, 0.9032877087593079, -0.28102779388427734, 0.133348748087883, -0.01853087916970253, 0.34773269295692444, 0.36271926760673523, 0.41022148728370667, -...
func (_m *Entity) Events() []core.Event { ret := _m.Called() var r0 []core.Event if rf, ok := ret.Get(0).(func() []core.Event); ok { r0 = rf() } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]core.Event) } } return r0 }
[ -0.5939618945121765, 0.2897507846355438, 0.6024439334869385, 0.19331145286560059, 0.8600396513938904, -0.7771408557891846, 1.066802978515625, 0.7329175472259521, 0.3573993146419525, -0.16231638193130493, -0.3327586054801941, 0.22575441002845764, -0.20552004873752594, 0.6844291687011719, ...
func (_m *Entity) ID() string { ret := _m.Called() var r0 string if rf, ok := ret.Get(0).(func() string); ok { r0 = rf() } else { r0 = ret.Get(0).(string) } return r0 }
[ -0.1527400016784668, -0.6638457775115967, 0.27915850281715393, 0.44055891036987305, 0.35369208455085754, 0.11689148098230362, 0.3862590789794922, 0.5441370606422424, 0.5508725047111511, 0.1633506566286087, -0.20379886031150818, 0.38696667551994324, -0.21711063385009766, 0.23260653018951416...
func (s *AvChargeSvr) HandleAvCharge(c context.Context, date time.Time, dailyChannel chan []*model.AvCharge) (weeklyChargeMap, monthlyChargeMap map[int64]*model.AvCharge, chargeStatisMap map[int64]*model.AvChargeStatis, err error) { var eg errgroup.Group weeklyChargeMap = make(map[int64]*model.AvCharge) monthlyChar...
[ -0.2392016053199768, 0.0030750182922929525, 1.0546504259109497, 0.011278572492301464, -0.14508192241191864, -0.7234202027320862, -0.14378172159194946, -0.35401222109794617, 0.14281928539276123, 0.2086668759584427, 0.8204694390296936, -0.5278368592262268, 0.3082427978515625, 1.1406075954437...
func (s *AvChargeSvr) AvCharges(c context.Context, date time.Time, ch chan []*model.AvCharge, bubbleRatio map[int64]float64) (err error) { defer func() { close(ch) }() var id int64 for { var charges []*model.AvCharge charges, err = s.dao.AvDailyCharge(c, date, id, _limitSize) if err != nil { return } ...
[ -0.28330954909324646, 0.006413897033780813, 0.7384671568870544, -0.016797764226794243, -0.5933657884597778, -0.5805793404579163, -0.393113374710083, -0.4753023386001587, -0.004364840220659971, 0.5753437876701355, 0.6065691709518433, -0.14213162660598755, -0.5292354822158813, 0.500193655490...
func (s *AvChargeSvr) GetAvCharge(c context.Context, date time.Time, fn dao.IAvCharge) (avCharges []*model.AvCharge, err error) { var id int64 for { avCharge, err1 := fn(c, date, id, _limitSize) if err1 != nil { err = err1 return } avCharges = append(avCharges, avCharge...) if len(avCharge) < _limitSi...
[ -0.2709500789642334, 0.7584094405174255, 0.962640643119812, 0.5674000382423401, -0.017617393285036087, -1.2753357887268066, -1.098292350769043, -0.7508094906806946, 0.14833402633666992, 0.5972191095352173, 0.34278127551078796, 0.4307177662849426, -0.32897353172302246, 0.1829840987920761, ...
func (s *AvChargeSvr) CalAvCharge(date time.Time, weeklyChargeMap, monthlyChargeMap map[int64]*model.AvCharge, chargeStatisMap map[int64]*model.AvChargeStatis, dailyChannel chan []*model.AvCharge) { for avDailyCharge := range dailyChannel { s.calAvCharge(date, avDailyCharge, weeklyChargeMap, monthlyChargeMap, charge...
[ -0.6057577729225159, -0.1764620691537857, 0.6099390387535095, 0.1886514276266098, -0.011340196244418621, -0.7911009788513184, -0.8547108173370361, -0.0817476212978363, 0.028018854558467865, 0.34348049759864807, 0.6912358403205872, -0.3015121519565582, 0.018983470275998116, 1.33944010734558...
func (s *AvChargeSvr) AvChargeDBStore(c context.Context, weeklyChargeMap, monthlyChargeMap map[int64]*model.AvCharge) (err error) { err = s.avChargeDBStoreBatch(c, _avWeeklyCharge, weeklyChargeMap) if err != nil { log.Error("s.avChargeDBStoreBatch av_weekly_charge error(%v)", err) return } err = s.avChargeDBSt...
[ 0.4685996472835541, -0.10472181439399719, 0.5673916935920715, 0.10211070626974106, -0.7895035743713379, -0.5237307548522949, -0.4106423556804657, 0.0006132990820333362, 0.5165656805038452, 0.022958284243941307, 0.6531801819801331, 0.5069425702095032, -0.21018722653388977, 0.401380687952041...
func (b *mysql) Index(table *Table, index *Index) string { log.Printf("create index:%+v", index) var obj = "INDEX" if index.Unique { obj = "UNIQUE INDEX" } return fmt.Sprintf("CREATE %s %s ON %s (%s);", obj, index.Name, table.Name, b.columns(nil, index.Fields, true, false, false)) }
[ -0.507319986820221, -0.2020517736673355, 0.4499214291572571, -0.07112540304660797, -0.09705080091953278, 0.05007796734571457, 0.3065517246723175, 0.5314656496047974, -0.27711617946624756, 0.8935019373893738, -0.16368752717971802, 0.7187921404838562, 0.07420843839645386, -0.6973892450332642...
func (factory) Create(cfg config.NodeHostConfig, cb config.LogDBCallback, dirs []string, wals []string) (raftio.ILogDB, error) { return CreateTan(cfg, cb, dirs, wals) }
[ -0.44697117805480957, 1.1544792652130127, 0.3056052625179291, 0.39522624015808105, -0.08846544474363327, 0.8782195448875427, 0.005156014580279589, -0.34208711981773376, -1.1234310865402222, 0.2280237227678299, -0.0782477930188179, -0.6325916051864624, -0.15693913400173187, 0.44043639302253...
func (multiplexLogFactory) Create(cfg config.NodeHostConfig, cb config.LogDBCallback, dirs []string, wals []string) (raftio.ILogDB, error) { return CreateLogMultiplexedTan(cfg, cb, dirs, wals) }
[ -0.23827169835567474, 0.9516966938972473, 0.48659777641296387, 0.5036696791648865, -0.5885447263717651, 0.7526283860206604, -0.18079954385757446, 0.029474623501300812, -0.7017882466316223, 0.011672177352011204, -0.01258709654211998, -0.6126704216003418, -0.3318723142147064, 0.4741843640804...