text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (d DelRequest) size() int { return LDAPDN(d).sizeTagged(TagDelRequest) }
[ -0.5137744545936584, 0.9253253936767578, 0.4930398464202881, -1.2434358596801758, -0.2691740393638611, -0.3082294762134552, -0.7458652853965759, 0.10340678691864014, 0.8404586315155029, -0.7617499828338623, 0.035645946860313416, 0.35153430700302124, 0.14404480159282684, 0.02369469217956066...
func (d DelResponse) size() int { return LDAPResult(d).sizeTagged(TagDelResponse) }
[ 0.25219598412513733, 0.2446560561656952, 0.4058420658111572, -1.6974231004714966, -0.050004854798316956, -0.6713645458221436, 0.06726011633872986, -0.0830732211470604, 1.5064880847930908, -0.8006308078765869, -0.5018115043640137, -0.23171164095401764, -0.2856328785419464, -0.59776651859283...
func (m ModifyDNResponse) size() int { return LDAPResult(m).sizeTagged(TagModifyDNResponse) }
[ -0.7680410742759705, 0.26358190178871155, 0.272376149892807, -1.7256420850753784, 0.07082303613424301, -1.2505457401275635, -0.14302359521389008, -0.28621235489845276, 1.284798264503479, -1.1334365606307983, -0.7958806157112122, -0.38915735483169556, -0.39597466588020325, -0.16078941524028...
func (c CompareResponse) size() int { return LDAPResult(c).sizeTagged(TagCompareResponse) }
[ 0.10790856182575226, 0.035486482083797455, 0.384322851896286, -1.6648703813552856, 0.2974381744861603, -0.4051344692707062, 0.4507664442062378, -0.6063135862350464, 0.8587656617164612, -0.6372307538986206, -0.8898628354072571, -0.832902193069458, -0.5220267176628113, -0.19824880361557007, ...
func (a AbandonRequest) size() int { return MessageID(a).sizeTagged(TagAbandonRequest) }
[ 0.4797942340373993, 0.6521835923194885, 0.5242576599121094, -0.6649410724639893, -0.6645805835723877, 0.22327542304992676, -0.1777319759130478, -0.32001838088035583, -0.165389284491539, 0.17073309421539307, 0.10495000332593918, -0.16714824736118317, -0.7436245083808899, 0.975329577922821, ...
func newClass(name, description string, properties map[string]interface{}) class { pc := class{ Name: name, Description: commons.ParseDescription(description), Fields: map[string]field{}, } // generate fields for k, v := range properties { p := raml.ToProperty(k, v) field := field{ Name: ...
[ 0.562110185623169, -0.6943341493606567, 0.8089514970779419, -0.30697017908096313, -0.7547867298126221, 0.7259367108345032, -0.9351639151573181, 0.8256292343139648, -0.2469581812620163, 0.12818656861782074, 0.4509923458099365, -0.6049570441246033, -0.360981822013855, -0.571506142616272, 0...
func (pc *class) generate(dir string) error { fileName := filepath.Join(dir, pc.Name+".py") return commons.GenerateFile(pc, "./templates/class_python.tmpl", "class_python", fileName, false) }
[ -1.2210336923599243, 0.1300928145647049, 0.47257375717163086, -0.040621448308229446, 0.3703041076660156, 0.9877321124076843, 0.3530627489089966, 0.10693712532520294, -0.4698120951652527, 0.32460612058639526, -0.5737960934638977, -0.41054874658584595, 0.3522857129573822, 0.6878005266189575,...
func generateClassesFromBodies(rs []pythonResource, dir string) error { for _, r := range rs { for _, mi := range r.Methods { m := mi.(serverMethod) if err := generateClassesFromMethod(m, dir); err != nil { return err } } } return nil }
[ -1.102263331413269, -0.012590954080224037, 0.486662894487381, 0.27737322449684143, 0.6915441751480103, 0.7306632995605469, 0.5004655718803406, -0.6116194128990173, 0.4299769699573517, -0.5935600996017456, -0.319926917552948, -0.6416335701942444, -0.3926531672477722, 1.886613368988037, -0...
func generateClassesFromMethod(m serverMethod, dir string) error { // request body if commons.HasJSONBody(&m.Bodies) { name := inflect.UpperCamelCase(m.MethodName + "ReqBody") class := newClass(name, "", m.Bodies.ApplicationJSON.Properties) if err := class.generate(dir); err != nil { return err } } // r...
[ -0.9737365245819092, -0.061219990253448486, 0.7814311981201172, 0.1596519500017166, 0.1776520013809204, 0.5023359656333923, -0.11253639310598373, -1.0174219608306885, 0.1130988746881485, -0.5139332413673401, 0.4132726490497589, 0.186095729470253, 0.08688967674970627, 1.4275604486465454, ...
func (pc class) Imports() []string { var imports []string for _, v := range pc.Fields { if v.isFormField { if strings.Index(v.ramlType, ".") > 1 { // it is a library importPath, name := libImportPath(v.ramlType, "") imports = append(imports, "from "+importPath+" import "+name) } else { imports = ...
[ -0.6316522359848022, -0.8310205936431885, 0.5565047860145569, -0.3571593165397644, 0.5099020600318909, 0.40120968222618103, -0.04183174669742584, -0.7931552529335022, -0.3035760223865509, 0.5166893005371094, -0.5077892541885376, -0.1303730309009552, -0.49899348616600037, 0.0735070779919624...
func (pf *field) setType(t string) { pf.ramlType = t switch t { case "string": pf.Type = "TextField" case "file": pf.Type = "FileField" case "number": pf.Type = "FloatField" case "integer": pf.Type = "IntegerField" case "boolean": pf.Type = "BooleanField" case "date": pf.Type = "DateField" } if p...
[ -0.38617175817489624, -0.3715784251689911, 0.7136234045028687, 0.12114323675632477, 0.35196685791015625, 0.3360312581062317, 0.33640310168266296, 0.0995691567659378, -0.2788310945034027, -0.00002637579382280819, -0.3835284113883972, 0.38436806201934814, -0.5087552070617676, 0.6552270650863...
func (pf field) WTFType() string { switch { case pf.isList && pf.isFormField: return fmt.Sprintf("FieldList(FormField(%v))", pf.Type) case pf.isList: return fmt.Sprintf("FieldList(%v('%v', [required()]), %v)", pf.Type, pf.Name, pf.Validators) case pf.isFormField: return fmt.Sprintf("FormField(%v)", pf.Type) ...
[ 0.19036568701267242, -0.054921895265579224, 0.3013760447502136, -0.5999196171760559, 0.9668950438499451, -0.20054583251476288, -0.4104902744293213, -0.3164869546890259, -0.137728750705719, -0.005134003236889839, -0.22075732052326202, 0.09493663161993027, -0.5660877227783203, 1.540544390678...
func generateClasses(types map[string]raml.Type, dir string) error { for k, t := range types { pc := newClassFromType(t, k) if err := pc.generate(dir); err != nil { return err } } return nil }
[ -1.2155970335006714, 0.377730131149292, 0.5246366858482361, 0.653852641582489, 0.9530654549598694, 0.9842737317085266, -0.07079426199197769, -0.35894688963890076, -0.29400309920310974, 0.18544279038906097, -0.011840544641017914, -0.2057563066482544, -0.6807625889778137, 0.7440399527549744,...
func getSystemHandler(syslog string, debug bool) log.Handler { // SyslogHandler if syslog != "" { if !debug { return log.LvlFilterHandler( log.LvlInfo, log.Must.SyslogHandler(syslog, log.LogfmtFormat()), ) } else { return log.Must.SyslogHandler(syslog, log.LogfmtFormat()) } } return nil }
[ 0.7599404454231262, -0.4169206917285919, 0.38350170850753784, 0.6548486351966858, -0.7911726236343384, -0.4196050763130188, -0.49372225999832153, 0.014834356494247913, 0.6763062477111816, -0.7792119979858398, -0.2079632431268692, 0.08013386279344559, -0.5145925283432007, 0.8828122019767761...
func (elem *Ftp) ConnectLoop() { for !elem.Obsolete { conn, err := ftp.Connect(elem.Url) if err == nil { elem.Conn = conn break } elem.crawler.Log.Print(err) time.Sleep(2 * time.Second) } }
[ -0.8401711583137512, -0.6485952734947205, 0.5770639181137085, 0.14718672633171082, 0.558233380317688, 0.44037625193595886, 0.09194475412368774, -0.25879982113838196, -0.7652574777603149, 0.3532116413116455, 0.7017751336097717, 0.11882388591766357, -0.03368218615651131, 0.7547561526298523, ...
func (elem *Ftp) LoginLoop() { for !elem.Obsolete { err := elem.Conn.Login("anonymous", "anonymous") if err == nil { break } elem.crawler.Log.Print(err) time.Sleep(2 * time.Second) } }
[ -1.1310454607009888, -0.3118456304073334, 0.6619017720222473, 0.20320385694503784, -0.30350884795188904, 0.6806095838546753, -0.36709344387054443, -0.29325851798057556, -0.6180808544158936, 0.24857781827449799, -0.20902682840824127, 0.6993502974510193, -0.21434994041919708, 0.4230310022830...
func (elem *Ftp) NoOpLoop() { for !elem.Obsolete { time.Sleep(15 * time.Second) func(elem *Ftp) { elem.mt.Lock() defer elem.mt.Unlock() elem.Conn.NoOp() }(elem) } }
[ -0.6042672395706177, 0.6395264863967896, 0.5273211002349854, -0.5220012664794922, -0.18425782024860382, 0.8168551325798035, 0.4778791666030884, -0.6262505650520325, -0.3641625940799713, 0.03941941633820534, 0.20041683316230774, 0.16255365312099457, -0.5621076822280884, 0.3825283944606781, ...
func (elem *Ftp) StartCrawling() (err error) { pwd, err := elem.Conn.CurrentDir() if err != nil { return } for !elem.Obsolete { elem.crawlDirectoryRecursive(pwd) } return }
[ -0.5518523454666138, 0.8320021033287048, 0.5369864702224731, 0.33692994713783264, 0.16981925070285797, 0.516034722328186, 1.4719302654266357, 1.012400507926941, -0.6025933027267456, -0.5541665554046631, 0.6522113084793091, 0.40491193532943726, -0.12278809398412704, 0.4072066843509674, -0...
func Run(ctx context.Context, args []string) { var binary string if len(args) == 0 { binary = Build(ctx, []string{"."}, "") } else { binary, args = args[0], args[1:] } cmd := exec.CommandContext(ctx, binary, args...) cmd.Stderr = os.Stderr cmd.Stdout = os.Stdout cmd.Stdin = os.Stdin must.Nil(cmd.Run()) mu...
[ 0.15595398843288422, -0.43930038809776306, 0.8823357224464417, 0.25390493869781494, 0.5506530404090881, 0.40119707584381104, 0.38469696044921875, -0.07769060134887695, -0.28803613781929016, -0.5168436765670776, -0.3949529230594635, 0.6229747533798218, -0.4964298903942108, 0.254202932119369...
func Json(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json") next.ServeHTTP(w, r) }) }
[ 0.07680363208055496, -0.7163552045822144, 0.7637994885444641, -0.27369022369384766, -1.391506552696228, 0.15517379343509674, 0.32363107800483704, -0.2616245448589325, -0.4889400005340576, -0.04415981471538544, -0.22783797979354858, 1.032415509223938, 0.7151607871055603, 0.2387666255235672,...
func (r *RepositoryReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { logger := ctrllog.FromContext(ctx).WithValues("repository", req.NamespacedName) client, awserr := CreateEcrClient() if awserr != nil { logger.Error(awserr, "Unable to create ECR client.") return ctrl.Result{},...
[ -0.3637588620185852, -0.3147238492965698, 0.9299825429916382, -0.5336098074913025, 1.0226601362228394, -0.47756367921829224, -0.43778181076049805, 0.07553283125162125, 0.3511922061443329, 0.2386554479598999, 0.5829525589942932, -0.24279700219631195, -0.26886072754859924, 0.7625604867935181...
func (r *RepositoryReconciler) SetupWithManager(mgr ctrl.Manager) error { return ctrl.NewControllerManagedBy(mgr). For(&ecrv1beta1.Repository{}). WithOptions(controller.Options{MaxConcurrentReconciles: 1}). Complete(r) }
[ 0.10932965576648712, 0.5430249571800232, 0.49422356486320496, -1.216101050376892, 0.31666576862335205, -0.8891743421554565, 0.5768438577651978, 0.029185885563492775, 0.3488454520702362, 0.1392473578453064, 0.024098163470625877, -1.124189019203186, -0.13146935403347015, 0.9949384331703186, ...
func New(m Method, out io.Writer) Generator { switch m { case Decode: return &decodeGen{printer{w: out}, false} case Encode: return &encodeGen{printer{w: out}} case Marshal: return &marshalGen{printer{w: out}} case Unmarshal: return &unmarshalGen{printer{w: out}, false} case Size: return &sizeGen{printe...
[ -0.08862915635108948, -0.32506152987480164, 0.479867160320282, -0.28151756525039673, -1.6865476369857788, -0.8758565783500671, -0.1468433439731598, -0.1717347502708435, -0.7555024027824402, -0.36039748787879944, 0.9429081678390503, 0.17412082850933075, 0.602969765663147, 0.66139817237854, ...
func next(t traversal, e Elem) { switch e := e.(type) { case *Map: t.gMap(e) case *Struct: t.gStruct(e) case *Slice: t.gSlice(e) case *Array: t.gArray(e) case *Ptr: t.gPtr(e) case *BaseElem: t.gBase(e) default: panic("bad element type") } }
[ -0.5574770569801331, 0.17016305029392242, 0.5869118571281433, 1.2639796733856201, -0.6738835573196411, 0.5694554448127747, -0.17657509446144104, -0.2991395890712738, 0.4638694226741791, 0.23087026178836823, -0.16453443467617035, 0.5314195156097412, 0.3691829741001129, 0.48038730025291443, ...
func methodReceiver(p Elem) string { switch p.(type) { // structs and arrays are // dereferenced automatically, // so no need to alter varname case *Struct, *Array: return "*" + p.TypeName() // set variable name to // *varname default: p.SetVarname("(*" + p.Varname() + ")") return "*" + p.TypeName() } }
[ -0.43513786792755127, -0.09983182698488235, 0.5173493027687073, -0.7361929416656494, -0.5788621306419373, -0.33986416459083557, -0.35440441966056824, -0.046637702733278275, 0.5312120914459229, 0.5677498579025269, 0.37732237577438354, 0.035441119223833084, 0.02649601548910141, 0.52071905136...
func (p *printer) mapAssign(m *Map) { if !p.ok() { return } p.printf("\n%s[%s] = %s", m.Varname(), m.Keyidx, m.Validx) }
[ -0.9587936401367188, -1.7067232131958008, 0.4219091832637787, -0.5939497947692871, -1.2166860103607178, 0.403512179851532, -0.6204715371131897, 0.0032450146973133087, -0.07283367961645126, 0.2428056001663208, -0.024795792996883392, 0.9452527761459351, -0.3860745131969452, 0.852890431880950...
func (id DeviceID) Room() string { split := strings.SplitN(string(id), "-", 3) if len(split) != 3 { return string(id) } return split[0] + "-" + split[1] }
[ -1.1276166439056396, -0.10497098416090012, 0.4298029839992523, 0.7585049271583557, -0.23506231606006622, 1.0080069303512573, -0.34541335701942444, -0.03467249497771263, 0.9285373687744141, 0.32863110303878784, 0.7447919845581055, 0.25854256749153137, -0.37395939230918884, -0.00180338439531...
func NewAppCommand() *cobra.Command { cmd := &cobra.Command{ Use: "edgecloud", Long: `edgecloud is edgeOn server on cloud. `, Run: func(cmd *cobra.Command, args []string) { //TODO: To help debugging, immediately log version klog.Infof("########### Start the edgeOn Server...! ###########") registerMod...
[ 0.32031184434890747, -0.6230839490890503, 0.4764052927494049, 0.28560951352119446, -0.024203451350331306, 0.3791101276874542, -0.47143295407295227, 0.3670753538608551, 0.1547030508518219, 0.6115667819976807, -0.14709432423114777, 0.7338683009147644, -0.31541845202445984, 1.6029267311096191...
func registerModules(){ web.Register() //http server. devicetwin.Register() eventhub.Register() }
[ -0.8526908755302429, 0.6295099854469299, 0.28819790482521057, 1.2155094146728516, 1.9229731559753418, 0.7886806726455688, 0.30641821026802063, -0.5161463618278503, 0.47822335362434387, -0.14253152906894684, -0.8373525738716125, 0.06604094058275223, -0.4276948869228363, 1.077980637550354, ...
func main(){ sc := selection.LoadConfig() errList := selection.Start(sc.Num_instances, sc.Ports, sc.Elevator_config) for i, err := range errList { log.Println("ERR: ", i, "th selector terminated with error: ", err) } }
[ 0.1524548977613449, -0.5527015328407288, 0.4884851574897766, 0.9792624115943909, 1.245534896850586, 0.47995227575302124, 1.1614458560943604, 0.5827369689941406, -0.4965249001979828, 0.33147066831588745, -0.2979222238063812, 0.4206256866455078, -0.35365551710128784, -0.13633199036121368, ...
func (ts *azureTokenSource) Token() (*azureToken, error) { ts.lock.Lock() defer ts.lock.Unlock() var err error token := ts.cache.getToken(azureTokenKey) if token != nil && !token.token.IsExpired() { return token, nil } // retrieve from config if no cache if token == nil { tokenFromCfg, err := ts.retrieve...
[ -0.2980174422264099, -0.04980676621198654, 0.5279622673988342, -0.15055890381336212, -0.054801568388938904, -0.6750943660736084, 0.001517828437499702, 0.1840752810239792, 0.715433657169342, -0.6075794100761414, -0.3552056550979614, 0.5435532927513123, 0.6254070997238159, 0.3056941926479339...
func (ts *azureTokenSourceDeviceCode) Refresh(token *azureToken) (*azureToken, error) { env, err := azure.EnvironmentFromName(token.environment) if err != nil { return nil, err } var oauthConfig *adal.OAuthConfig if ts.configMode == configModeOmitSPNPrefix { oauthConfig, err = adal.NewOAuthConfigWithAPIVersio...
[ 0.09232400357723236, -0.43125811219215393, 0.5726365447044373, 0.03915398195385933, -0.7983109951019287, 0.04700840264558792, -0.9607195258140564, -0.39023587107658386, 0.36041465401649475, -0.0638648197054863, 0.2843504846096039, 1.2687275409698486, 0.07093266397714615, -0.075613692402839...
func (*MFADevice) XXX_OneofWrappers() []interface{} { return []interface{}{ (*MFADevice_Totp)(nil), (*MFADevice_U2F)(nil), } }
[ -1.5086278915405273, 0.5822205543518066, 0.35455846786499023, 0.40642932057380676, 0.49789801239967346, -0.10396189242601395, 0.18668098747730255, -0.44990822672843933, 1.615541696548462, -0.21109291911125183, -0.02156892791390419, 0.02462952584028244, 0.16828957200050354, 0.83351606130599...
func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) ByAssignmentFilterEvaluationStatusDetailsId(assignmentFilterEvaluationStatusDetailsId string)(*ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsAssignmentFilterEvaluationStatusDetailsItemRequestBuilder) { urlTplParams ...
[ 0.04030770808458328, 0.190553680062294, 0.1776650995016098, -0.32014700770378113, -0.10497081279754639, 0.8599729537963867, 0.1490984410047531, 0.08500432223081589, 0.06082749739289284, 0.2886422872543335, 0.8088483214378357, 0.8260778188705444, 1.0685197114944458, 1.1249117851257324, 0....
func NewItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) { m := &ItemMan...
[ -0.3766523599624634, 0.3669285476207733, 0.46879011392593384, -0.6392517685890198, -0.704632043838501, 1.2085386514663696, 0.322102814912796, -0.0698431059718132, -0.3361086845397949, -0.3449743390083313, 0.6213091015815735, 0.9501495957374573, -0.4391563832759857, 0.647799551486969, 0.4...
func NewItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) { urlParams := make(map[string]string) ...
[ -0.5461653470993042, 0.4738883078098297, 0.14406105875968933, -0.2701278626918793, -0.44714823365211487, 1.0748963356018066, -0.22486308217048645, 0.2244303673505783, 0.060438260436058044, -0.46133142709732056, 0.637823760509491, 0.4419766664505005, 0.21748380362987518, 1.0274839401245117,...
func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) Count()(*ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountRequestBuilder) { return NewItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m...
[ 0.2532849907875061, 0.590904712677002, 0.31060081720352173, -0.26800209283828735, 0.22184403240680695, 0.895378828048706, 0.2668982446193695, 0.612612783908844, -0.251190721988678, 0.07786386460065842, 0.5712087154388428, 0.35359248518943787, 0.33703285455703735, 1.199470043182373, 0.335...
func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvalu...
[ -0.24793031811714172, 0.45508670806884766, 0.511949360370636, -0.8990792632102966, 0.029969144612550735, 0.9507429003715515, 0.020604759454727173, -0.22862160205841064, -0.7555164098739624, 0.04558935388922691, 0.6629235148429871, 0.868536651134491, -0.0830635130405426, 0.627947211265564, ...
func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsable, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBu...
[ -0.0765397772192955, 0.4437890350818634, 0.5218567252159119, -0.39892056584358215, -0.6883631348609924, 0.875258207321167, 0.23867999017238617, -0.2624932527542114, -0.5311976075172424, -0.21053583920001984, 0.4806115925312042, 0.4371342360973358, 0.2736123502254486, 0.7457353472709656, ...
func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f....
[ -0.6587754487991333, 0.11258796602487564, 0.8071568608283997, -1.1980786323547363, -0.1908133327960968, 0.39075639843940735, -0.17067763209342957, -0.15606841444969177, -0.07095521688461304, -0.13992348313331604, 0.5930596590042114, 0.7521330714225769, -0.08909788727760315, 0.7077091932296...
func (m *ItemManagedDevicesItemAssignmentFilterEvaluationStatusDetailsRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AssignmentFilterEvaluationStatusDetailsable, requestConfiguration *ItemManagedDevicesItemAssignmentFilterEvaluationSt...
[ -0.5642327666282654, -0.0030002736020833254, 0.8763919472694397, -0.9628804922103882, -0.8126252889633179, 0.7408733367919922, -0.24687543511390686, -0.31519201397895813, -0.6051595211029053, 0.12538771331310272, 0.48542821407318115, 0.014823973178863525, -0.11620967835187912, 0.7469114065...
func (m DbResourceIdFilter) ValidateEnumValue() (bool, error) { errMessage := []string{} if _, ok := GetMappingDbResourceIdFilterEntityTypeEnum(string(m.EntityType)); !ok && m.EntityType != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EntityType: %s. Supported values are: %s.", m.Ent...
[ -1.0550997257232666, -0.12416251748800278, 0.7006146311759949, -0.4548303782939911, -0.06047656759619713, -0.048553284257650375, 0.643940269947052, -0.3726117014884949, -0.460977703332901, -0.20702257752418518, -0.00984393060207367, -0.5661116242408752, -0.23487317562103271, 1.538770198822...
func (m DbResourceIdFilter) MarshalJSON() (buff []byte, e error) { type MarshalTypeDbResourceIdFilter DbResourceIdFilter s := struct { DiscriminatorParam string `json:"type"` MarshalTypeDbResourceIdFilter }{ "RESOURCE_ID", (MarshalTypeDbResourceIdFilter)(m), } return json.Marshal(&s) }
[ -0.21409331262111664, -0.11766952276229858, -0.18730126321315765, -0.46481409668922424, -0.19579273462295532, -0.45500290393829346, -0.07533415406942368, -0.5410895943641663, 0.4315992593765259, -0.4434716999530792, -0.458257257938385, 0.555982768535614, -0.4839273989200592, 0.977456390857...
func GetDbResourceIdFilterEntityTypeEnumValues() []DbResourceIdFilterEntityTypeEnum { values := make([]DbResourceIdFilterEntityTypeEnum, 0) for _, v := range mappingDbResourceIdFilterEntityTypeEnum { values = append(values, v) } return values }
[ -1.0052928924560547, -0.2923307418823242, 0.4134258031845093, -0.0679570883512497, 0.8587700724601746, 0.14736948907375336, -0.03472033143043518, -0.8574155569076538, 0.030101167038083076, -0.20802924036979675, -0.5292033553123474, -0.14962610602378845, -0.15917524695396423, 0.594611644744...
func GetDbResourceIdFilterEntityTypeEnumStringValues() []string { return []string{ "DATABASESOFTWAREIMAGE", "DBHOME", "EXADATAINFRASTRUCTURE", "CLOUDEXADATAINFRASTRUCTURE", "VMCLUSTER", "CLOUDVMCLUSTER", "FSUCOLLECTION", } }
[ -0.8949387073516846, -0.24241706728935242, 0.25094953179359436, -0.40296491980552673, 0.2928959131240845, 0.31667229533195496, -0.5472893118858337, -1.0089834928512573, -0.04904169589281082, -0.14766202867031097, 0.15473629534244537, 0.01944381184875965, -0.08720770478248596, 0.57212954759...
func GetMappingDbResourceIdFilterEntityTypeEnum(val string) (DbResourceIdFilterEntityTypeEnum, bool) { enum, ok := mappingDbResourceIdFilterEntityTypeEnumLowerCase[strings.ToLower(val)] return enum, ok }
[ -1.1552473306655884, -0.4981835186481476, 0.24360106885433197, -0.34044498205184937, 0.018934791907668114, 0.5071050524711609, 0.005294051952660084, -0.73805832862854, 0.1264198124408722, 0.20315343141555786, 0.26786813139915466, -0.6856797337532043, -0.40052422881126404, 0.528550386428833...
func NewMockTx(ctrl *gomock.Controller) *MockTx { mock := &MockTx{ctrl: ctrl} mock.recorder = &MockTxMockRecorder{mock} return mock }
[ 0.018232718110084534, 0.680889368057251, 0.393713116645813, 0.3646955192089081, -0.15059414505958557, 0.3162456750869751, 0.14454440772533417, -0.4655882716178894, 0.39377984404563904, 0.5303207635879517, -0.83851158618927, -0.21206490695476532, -0.2434266209602356, 0.8993427157402039, 0...
func (m *MockTx) EXPECT() *MockTxMockRecorder { return m.recorder }
[ 0.010462743230164051, 0.3926997184753418, 0.28342384099960327, -0.09564191102981567, -0.1646651029586792, 0.37360623478889465, -0.1663750857114792, 0.2467358112335205, -0.10760046541690826, -0.021070141345262527, 0.6724601984024048, 0.3270273208618164, -0.6417438387870789, 0.20164003968238...
func (m *MockTx) Config() (map[string]string, error) { ret := m.ctrl.Call(m, "Config") ret0, _ := ret[0].(map[string]string) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.788501501083374, 0.147243931889534, 0.204227477312088, 0.6715461015701294, 0.802238941192627, 0.5116577744483948, 1.224908709526062, 0.21238668262958527, -0.9371057152748108, 0.029268043115735054, -0.4312416613101959, -0.9851760864257812, -0.324587345123291, 1.1878951787948608, 1.1128...
func (mr *MockTxMockRecorder) Config() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Config", reflect.TypeOf((*MockTx)(nil).Config)) }
[ 0.30973395705223083, 1.0808281898498535, 0.10357870906591415, 0.3183825612068176, 0.11888088285923004, 0.8065096735954285, -0.11165440827608109, -0.09044507145881653, 0.5432150363922119, 0.4824468195438385, 0.42232611775398254, 0.40266770124435425, -0.29384467005729675, 1.6074620485305786,...
func (m *MockTx) RaftNodes() ([]db.RaftNode, error) { ret := m.ctrl.Call(m, "RaftNodes") ret0, _ := ret[0].([]db.RaftNode) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.8838064670562744, 1.1844388246536255, 0.13968248665332794, 0.07499121129512787, 0.8202003836631775, -0.2422265261411667, 1.4052170515060425, -0.6541813015937805, -1.0182826519012451, 0.748388409614563, -0.6878100633621216, 0.1587492972612381, -1.6257578134536743, 0.6173904538154602, -...
func (mr *MockTxMockRecorder) RaftNodes() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RaftNodes", reflect.TypeOf((*MockTx)(nil).RaftNodes)) }
[ -0.2381034940481186, 2.06715726852417, 0.365549772977829, -0.1946645975112915, 0.17466232180595398, -0.2047419548034668, 0.33750343322753906, -0.9068751335144043, 0.21296362578868866, 1.2232367992401123, 0.12247558683156967, 1.3417617082595825, -1.3042466640472412, 0.8112332820892334, -0...
func (m *MockTx) UpdateConfig(arg0 map[string]string) error { ret := m.ctrl.Call(m, "UpdateConfig", arg0) ret0, _ := ret[0].(error) return ret0 }
[ -0.5334190726280212, -0.31737321615219116, 0.1476706713438034, 0.4834412634372711, 0.772062361240387, 0.4394741952419281, 0.998729944229126, 0.44232645630836487, -0.8821413516998291, 0.5154531002044678, -0.7289285063743591, -0.5717029571533203, -0.39456209540367126, 1.5007896423339844, 0...
func (mr *MockTxMockRecorder) UpdateConfig(arg0 interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateConfig", reflect.TypeOf((*MockTx)(nil).UpdateConfig), arg0) }
[ -0.17675141990184784, 0.3450395166873932, 0.2972172796726227, 0.23972758650779724, -0.2905450761318207, 0.8269368410110474, 0.06846640259027481, 0.1562371551990509, 0.47758927941322327, 1.3015317916870117, -0.00989418663084507, 0.4682774245738983, -0.1714867353439331, 1.6350549459457397, ...
func api_gretel_show_tree(q *Context) { q.w.Header().Set("Access-Control-Allow-Origin", "*") // [${corpus}, ${dactfile}, ${sentenceid}] pathSegments := strings.Split(q.r.URL.EscapedPath(), "/") sentID := pathSegments[len(pathSegments)-1] dactFileID := pathSegments[len(pathSegments)-2] corpus := pathSegments[len(...
[ 0.2225179523229599, 0.043041013181209564, 0.7762300372123718, -1.0273470878601074, 0.08340521901845932, -0.3301050662994385, 0.7201347947120667, 0.22821813821792603, -0.10352306067943573, 0.25669065117836, 0.8435830473899841, 0.3327518105506897, -0.23702505230903625, 0.30575886368751526, ...
func CheckMod(modStartingIndex int, text []rune) Modificator { // Starts checking then '(' found. Checks if mod exists var firstCheckResult Modificator var modFound bool for k := 0; k < len(MODSLIST); k++ { currentMod := []rune(MODSLIST[k]) modFound = true for j := 0; j < len(currentMod); j++ { ...
[ -0.9568187594413757, -0.28455492854118347, 0.6036333441734314, -0.29564541578292847, -0.2349153310060501, -0.47837552428245544, 0.2413741946220398, 0.010953810065984726, 0.33904051780700684, 0.6673822402954102, 0.5450737476348877, 0.6185067296028137, -0.8274658918380737, 1.4108682870864868...
func CheckModSpecNumber(modStartingIndex int, text []rune, checkResult Modificator) Modificator { var specialNumber []rune index := modStartingIndex + checkResult.lenght + 1 if text[index] == 44 && text[index+1] == 32 { for m := index + 2; m < len(text); m++ { if 47 < text[m] && text[m] < 58 { speci...
[ -0.71587073802948, 0.15192919969558716, 0.7123355269432068, -0.08250729739665985, -0.6330834627151489, -0.40162193775177, -0.06551137566566467, 0.38158756494522095, 0.26160216331481934, 0.3193912208080292, -0.04658777639269829, 0.9049604535102844, -0.45833152532577515, 0.7891055941581726, ...
func FindMod(i int, text *[]rune, modValues *Modificator, modFound *bool) { for furtherIndex := i + 1; furtherIndex < len(*text); furtherIndex++ { if (*text)[furtherIndex] == 40 { *modValues = CheckMod(i+1, *text) if modValues.lenght != 0 { delIndex := i for charsToDel := modValues.lenght; char...
[ -0.14844480156898499, 0.23844268918037415, 0.6620713472366333, -0.7209767699241638, -0.4996406137943268, 0.1333804875612259, 0.43048331141471863, -0.23915356397628784, -0.37222644686698914, 0.5648326873779297, 0.18505273759365082, 0.4792785346508026, -1.3990883827209473, 1.513609528541565,...
func ChooseMod(word []rune, modValues Modificator) []rune { if modValues.class == "hex" || modValues.class == "bin" { dataToChange := converters.AtoiBase(word, modValues.class) return converters.ConvertIntToRune(dataToChange) } else if modValues.class == "up" { return words.ToUpper(word) } else if modVal...
[ -0.7445261478424072, -0.5907880067825317, 0.4142669141292572, -0.36145204305648804, -0.20352120697498322, 0.14286796748638153, -0.6642881035804749, -0.08325888216495514, -0.1379001885652542, 0.4169798791408539, 0.7858036160469055, 1.081230878829956, -0.2249910682439804, 1.1246904134750366,...
func UseMod(modValues Modificator, wordList *[][]rune) { wordPos := len(*wordList) - 1 if modValues.specialNum == 0 { modValues.specialNum = modValues.specialNum + 1 } for b := modValues.specialNum; b > 0; b-- { (*wordList)[wordPos] = ChooseMod((*wordList)[wordPos], modValues) wordPos = wordPos - 2...
[ -0.4988841116428375, 0.2001403421163559, 0.5069683194160461, -0.3491898775100708, -0.2756754159927368, -0.3162284195423126, 0.6586599349975586, 0.4904312491416931, -0.39124229550361633, 0.21225520968437195, 0.2823745608329773, 0.9132958650588989, -0.4690802991390228, 1.6732407808303833, ...
func FormatPunctList(wordList *[][]rune) { for i := 0; i < len(*wordList); i++ { var sortedPunctList []rune = nil notPunctElement := false for k := 0; k < len((*wordList)[i]); k++ { if (*wordList)[i][k] == 32 || (*wordList)[i][k] == 33 || (*wordList)[i][k] == 44 || (*wordList)[i][k] == 46 || (*wordList...
[ -0.052096810191869736, 0.3268175721168518, 0.7625779509544373, -1.107938289642334, -0.8462440967559814, 0.08792643249034882, 0.2834016978740692, -0.2578319311141968, 0.22454476356506348, 1.4591963291168213, 0.3449380099773407, 0.4046783447265625, -0.8066605925559998, 1.4549660682678223, ...
func FormatArticle(wordList *[][]rune) { for i := 0; i < len(*wordList); i++ { for k := 0; k < len((*wordList)[i]); k++ { if ((*wordList)[i][k] == 97 || (*wordList)[i][k] == 65) && len((*wordList)[i]) == 1 { (*wordList)[i] = append((*wordList)[i], 110) } } } }
[ -0.3381921052932739, 0.12766321003437042, 0.5001300573348999, -1.012358546257019, 0.08286449313163757, -0.6602468490600586, 0.3399229645729065, 0.29870694875717163, 0.1342533677816391, 1.904552698135376, 1.2307838201522827, -0.07537169009447098, -0.2455100119113922, 1.4347511529922485, 0...
func FormatQuotes(wordList *[][]rune) { firstQuoteFound := false secondQuoteFound := false firstQuotePos := -1 secondQuotePos := -1 for i := 0; i < len(*wordList); i++ { for k := 0; k < len((*wordList)[i]); k++ { if (*wordList)[i][k] == 39 { if !firstQuoteFound && firstQuotePos == -1 && len((*wo...
[ 0.4316210150718689, -0.7953816056251526, 0.669348955154419, -1.0465070009231567, 0.6627692580223083, -0.6425502896308899, 0.4598614573478699, -0.3936077058315277, -0.40982586145401, 1.4637451171875, 0.09595801681280136, 0.43535318970680237, -0.8575889468193054, 1.747841477394104, 0.10779...
func SaveFormatedText(wordList *[][]rune, fileResult string) { var wordListInBytes []rune for a := 0; a < len(*wordList); a++ { for b := 0; b < len((*wordList)[a]); b++ { wordListInBytes = append(wordListInBytes, (*wordList)[a][b]) } } finalTextInBytes := converters.TranslateToByteSlice(wordListIn...
[ -0.42198750376701355, -0.09576311707496643, 0.570598304271698, -0.28877413272857666, -0.37390780448913574, -0.25835978984832764, 0.12259051203727722, 0.32676199078559875, -0.22930802404880524, 0.9351879358291626, -1.0636630058288574, 0.08392452448606491, -1.1582368612289429, 1.165114879608...
func Decode(na ipld.NodeAssembler, in io.Reader) error { var src []byte if buf, ok := in.(interface{ Bytes() []byte }); ok { src = buf.Bytes() } else { var err error src, err = ioutil.ReadAll(in) if err != nil { return err } } return DecodeBytes(na, src) }
[ -0.6662658452987671, -0.06344418972730637, 0.35164564847946167, -0.41848304867744446, -0.9239497780799866, -0.1038469448685646, 0.05957375466823578, 0.3829973340034485, 0.1803886890411377, -0.2900006175041199, 0.565892219543457, 0.356813907623291, -0.4523059129714966, 0.6035805940628052, ...
func DecodeBytes(na ipld.NodeAssembler, src []byte) error { var header types.Header if err := rlp.DecodeBytes(src, &header); err != nil { return err } return DecodeHeader(na, header) }
[ -0.6002228260040283, 0.18888920545578003, 0.13766412436962128, -0.8060177564620972, -0.6972141265869141, -0.2575887143611908, -0.3845802843570709, 0.07700593769550323, 0.3110194504261017, -0.018506120890378952, -0.0058568427339196205, -0.21941232681274414, -0.675323486328125, 0.84845304489...
func DecodeHeader(na ipld.NodeAssembler, header types.Header) error { ma, err := na.BeginMap(15) if err != nil { return err } for _, upFunc := range requiredUnpackFuncs { if err := upFunc(ma, header); err != nil { return fmt.Errorf("invalid DAG-ETH Header binary (%v)", err) } } return ma.Finish() }
[ -0.8506069779396057, 0.057280685752630234, 0.6351912617683411, 0.17173628509044647, -0.26197946071624756, -0.25424090027809143, 0.5550088882446289, 0.11107093095779419, -0.6191672086715698, 0.037373270839452744, -0.5527730584144592, -0.4295860528945923, -0.24141111969947815, 0.620010018348...
func Add(x int, y int) int { return x + y }
[ -0.7018820643424988, -0.5650375485420227, 0.6786351799964905, -0.7037025094032288, -0.5906394124031067, 1.0018610954284668, -1.0877207517623901, -1.1756888628005981, -0.0084104398265481, -0.029470345005393028, 0.06958726048469543, 0.9052666425704956, -0.3276219367980957, -0.091183066368103...
func gracefulShutdown(exitSig <-chan os.Signal, done chan error, timeout time.Duration) { // start_shutdown1 OMIT sig := <-exitSig // same as before // HL fmt.Printf("received signal: %q, starting graceful shutdown...\n", sig.String()) // start timeout countdown // HL ctx, cancel := context.WithTimeout(context....
[ 0.010882863774895668, 0.3338640630245209, 0.9045043587684631, 0.6014724969863892, -0.524627149105072, 0.44536063075065613, 0.7497518062591553, 0.01826578564941883, -0.40226608514785767, 0.5898932814598083, -0.25838732719421387, -0.31732118129730225, 0.1453331559896469, 0.8059065937995911, ...
func closeDependency(ctx context.Context, n int, wg *sync.WaitGroup) { time.Sleep((time.Duration(rand.Intn(10) * 25)) * time.Millisecond) fmt.Printf("[%d] closed\n", n) wg.Done() // decrements the WaitGroup counter by one, same as wg.Add(-1) // HL }
[ -0.9359844326972961, 0.1979999542236328, 0.5181891322135925, -0.6882005929946899, -0.6752946972846985, 1.105102300643921, 0.6889991760253906, 0.3396057188510895, -0.2749605178833008, -0.07575935870409012, -0.10513398796319962, 0.5872092843055725, -0.9670703411102295, 1.039237141609192, 0...
func main() { days := [...]string{"Monday", "Tuesday", "Wednesday", "Tuesday", "Friday", "Saturday", "Sunday"} weekdays := days[0:5] // SLice fmt.Println(days) fmt.Println(weekdays) // Maps mymap := map[string]int{ "France": 68, "USA": 300, "Spain": 35, } fmt.Println(mymap["France"]) for key, value...
[ -0.6048805117607117, -0.5467206835746765, 1.127547264099121, -0.7833455204963684, -0.8641557693481445, 0.5071642994880676, 0.4056116044521332, -0.4716206192970276, -0.3247387111186981, -0.6057243347167969, -0.44090598821640015, -0.25678303837776184, 0.4373347759246826, -0.5393785238265991,...
func Score(word string) (score int) { for _, l := range word { l = unicode.ToUpper(l) if s, ok := letterScores[l]; ok { score += s } } return }
[ -0.5535219311714172, 0.058546215295791626, 0.5927138328552246, -0.2755008339881897, -0.41502225399017334, -0.18522770702838898, -0.016290007159113884, -0.27171385288238525, 0.3442911207675934, 1.521806001663208, -0.3655673861503601, 0.03177870064973831, -1.402565836906433, 0.19396968185901...
func ParseDevfile(devfileLocation string) (devfileoj parser.DevfileObj, err error) { var devfile devfileParser.DevfileObj devfile, err = devfileParser.ParseAndValidate(devfileLocation) return devfile, err }
[ 0.44632187485694885, -0.42705240845680237, 0.6409299969673157, 0.46013328433036804, -0.7448967099189758, 0.7596668601036072, 1.0387547016143799, -0.1800743043422699, -0.16630102694034576, -1.1142035722732544, -0.3230069875717163, -0.9620989561080933, 0.43342626094818115, -0.151368424296379...
func NewApplicationContext() *ApplicationContext { workDir, _ := filepath.Abs(filepath.Dir(os.Args[0])) configFile := path.Join(workDir, DefaultConfigFile) configuration := NewConfiguration().FromFile(configFile) context := &ApplicationContext{ Configuration: configuration, } return context }
[ -0.2681744396686554, -0.8472999930381775, 0.4710193872451782, 0.2929348945617676, -0.8431390523910522, 0.3550102710723877, 0.5946469902992249, -0.2612360715866089, -0.00011434259795350954, 0.5042582750320435, -0.5540700554847717, -0.2745184302330017, -0.08031724393367767, 0.878136932849884...
func getColsByte(str string) []colByte { var cols []colByte if len(str) > colByteMax { bugPanicUnreachable(errUnreachable, str) } lenstr := colByte(len(str)) // " 0153 f2c1-9987 0 cc" // FTFTFFTFTFFTFTFFFTFTF waitHex := false for i := colByte(0); i < lenstr; i++ { if isHex(str[i]) { if waitHex {...
[ -0.09976495057344437, -0.02710588462650776, 0.8431471586227417, 0.381971150636673, 0.20721782743930817, -0.2997576594352722, 0.16919508576393127, -0.38646212220191956, -0.4747713506221771, 0.36291494965553284, -0.9257872700691223, -0.19966018199920654, -0.5306088924407959, -0.1986523419618...
func lineToColsByteSeil(line string) ([]colByte, error) { if len(line) >= 56 { // has ascii dump, remove it line = line[:56] line = strings.TrimRight(line, " ") } cols := []colByte{ 17, 19, 22, 24, 27, 29, 32, 34, 37, 39, 42, 44, 47, 49, 52, 54} if len(line) > colByteMax { return []colByte{}, errUnreach...
[ -0.21691660583019257, -0.4465305209159851, 0.7881481647491455, 0.25790998339653015, 0.5004380941390991, -0.6221584677696228, 0.23957808315753937, -1.1294900178909302, -0.19971726834774017, 0.48777076601982117, -1.5258712768554688, -0.20287196338176727, 0.5373714566230774, -0.33414772152900...
func DeploymentConfigManipulator(engine template.Engine) model.Manipulator { return deploymentConfigManipulator{engine: engine} }
[ -2.0952398777008057, 0.1493694931268692, 0.38298413157463074, -0.5977960824966431, -1.5011612176895142, 0.14920076727867126, -0.4155462384223938, 1.369720697402954, 0.15616557002067566, 0.6480323672294617, -0.2876836061477661, -1.420117974281311, 1.1577807664871216, 0.1506403684616089, 1...
func DeploymentConfigLocator(ctx model.SessionContext, ref *model.Ref) bool { if !ref.KindName.SupportsKind(DeploymentConfigKind) && !ref.KindName.SupportsKind(deploymentConfigAbbrevKind) { return false } deployment, err := getDeploymentConfig(ctx, ctx.Namespace, ref.KindName.Name) if err != nil { if errorsK8s....
[ -0.7172704339027405, -0.30206671357154846, 0.6825592517852783, -1.2696073055267334, -0.8203714489936829, 0.5129293203353882, 0.04171444848179817, 0.007530903909355402, 0.3207876682281494, 1.2746888399124146, 0.2626427710056305, -0.19222895801067352, 0.4004576802253723, 0.2800867557525635, ...
func DeploymentConfigMutator(engine template.Engine) model.Mutator { return func(ctx model.SessionContext, ref *model.Ref) error { targets := ref.GetTargets(model.Kind(DeploymentConfigKind)) if len(targets) == 0 { return nil } target := targets[0] deployment, err := getDeploymentConfig(ctx, ctx.Namespace...
[ -0.8532940149307251, -0.7867295145988464, 1.0220509767532349, -0.2843342125415802, -0.42951977252960205, 0.3346613347530365, 0.13418048620224, -0.19878992438316345, 1.073816180229187, 1.720564365386963, -0.4440111815929413, -0.16168643534183502, 0.5479140281677246, 0.07798371464014053, 0...
func DeploymentConfigRevertor(ctx model.SessionContext, ref *model.Ref) error { statuses := ref.GetResources(model.Kind(DeploymentConfigKind)) for _, status := range statuses { deployment := &appsv1.DeploymentConfig{ ObjectMeta: metav1.ObjectMeta{Name: status.Name, Namespace: ctx.Namespace}, } ctx.Log.Info("...
[ -0.6914140582084656, -0.4172897934913635, 0.8579785227775574, -0.31125035881996155, -0.67134690284729, 0.033990733325481415, -0.32528385519981384, 0.8186050057411194, -0.13320831954479218, 1.918018102645874, -0.5657482147216797, -0.48337188363075256, 0.08463402837514877, 0.8597651720046997...
func Parse(av, detection string) Detection { switch av { case "windefender": return ParseWindefender(detection) case "eset": return ParseEset(detection) case "avira": return ParseAvira(detection) } return Detection{} }
[ 0.9711104035377502, -1.2189903259277344, 0.26677826046943665, 1.0627977848052979, -0.4048369228839874, -0.38382789492607117, -0.6610922813415527, -0.5231113433837891, 0.38886821269989014, -0.2660806477069855, 0.5529152750968933, 0.7373002171516418, 0.07601350545883179, 0.7143633961677551, ...
func Build(function string) (interface{}, []declarative.Widget) { switch function { case "GetBattery": return new(UserBatDatabinder), UserBatteryTemplate case "GetBatteryState": return new(BatParameterDatabinder), ParametersTemplate case "GetBatteryPercentage": return new(BatParameterDatabinder), ParametersTe...
[ -0.6137482523918152, -0.5953353047370911, 0.5437043309211731, 0.2914291322231293, 0.3201814889907837, -0.004980531986802816, -0.17787489295005798, 0.38165566325187683, -0.7552785277366638, -0.27214688062667847, -0.11682046949863434, 0.48014670610427856, -0.23088783025741577, 0.932491183280...
func Range(min, max int) []Triplet { var t []Triplet var a, b, c int for a = min; a <= max; a++ { for b = a + 1; b <= max; b++ { for c = b + 1; c <= max; c++ { if isPythagoreanTriangle(Triplet{a, b, c}) { t = append(t, Triplet{a, b, c}) } } } } return t }
[ 0.08218042552471161, 0.2739083766937256, 0.7560097575187683, 0.005225074477493763, 0.22716589272022247, 0.4138944745063782, -0.4878496825695038, -0.8269109129905701, 0.23295654356479645, 0.5863487124443054, -0.4211043417453766, 0.11882002651691437, 0.41012832522392273, -1.2165710926055908,...
func Sum(p int) []Triplet { var t []Triplet var a, b, c int sum := a + b + c for c = 3; sum <= p; c++ { for b = c - 1; b > 0; b-- { for a = b - 1; a > 0; a-- { if isPythagoreanTriangle(Triplet{a, b, c}) && a+b+c == p { var d []Triplet d = append(d, Triplet{a, b, c}) // prepend triplet to t...
[ -0.017015203833580017, 0.5270038843154907, 0.8698853850364685, -0.8091176152229309, -0.02639937773346901, 0.98267662525177, 0.46881625056266785, -0.8036177158355713, 0.8730536699295044, 0.8890281915664673, -0.815660834312439, -0.25836455821990967, 0.1504000723361969, -1.1332069635391235, ...
func main() { x := 5 w := 3 y := 4 a := `amen ` b := `sister` c := `we are love` var q int fmt.Print(`how old are u ?`) fmt.Scanln(&q) fmt.Println(`i am `, q, ` years old`) fmt.Println(onefunc(c)) fmt.Println(stringop(a, b)) //start(w, y) zero(x) fmt.Println(x) // x is still 5 fmt.Println(start(w, y)) ...
[ 0.0019500023918226361, -0.10990150272846222, 0.7926318049430847, -0.3119513988494873, -1.140353798866272, 0.1283358484506607, 0.6883566379547119, -0.47172966599464417, 0.6236911416053772, 0.11785860359668732, -0.3802260458469391, 0.7680473327636719, -0.45377668738365173, -0.297944843769073...
func ToClient(client *scm.Client, botName string) *Client { return &Client{client: client, botName: botName} }
[ 0.9441924095153809, -0.23021675646305084, 0.23081667721271515, -0.14807496964931488, -0.6045531034469604, 0.539080798625946, -0.15240666270256042, -0.04490242525935173, -0.24621233344078064, 0.3677685558795929, -0.25914809107780457, 1.1880860328674316, -0.6974388957023621, -1.2058434486389...
func (c *Client) ToScmClient() *scm.Client { return c.client }
[ 0.49043044447898865, -0.550931453704834, 0.23640745878219604, -0.5972318649291992, 0.17070847749710083, 0.02521282620728016, 0.5010536909103394, -0.08738183975219727, 0.3515743315219879, -0.05760890990495682, -0.03016396425664425, 1.2528045177459717, -0.48462310433387756, -0.64289104938507...
func (c *Client) BotName() (string, error) { botName := c.botName if botName == "" { botName = os.Getenv("GIT_USER") if botName == "" { botName = "jenkins-x-bot" } c.botName = botName } return botName, nil }
[ 0.44831088185310364, 0.5685994625091553, 0.46932968497276306, 0.7447983622550964, 0.013839595019817352, 0.5296552777290344, 0.07283389568328857, 0.0700559914112091, -1.2217715978622437, 0.5166286826133728, 0.0439639575779438, 0.5722312927246094, -0.8073855042457581, 0.4427902400493622, 0...
func (c *Client) SetBotName(botName string) { c.botName = botName }
[ 0.20402085781097412, 0.03487566113471985, -0.06727291643619537, 0.9126704931259155, -0.4799029231071472, 0.7871128916740417, -0.31620651483535767, 0.26216474175453186, -0.7340929508209229, 0.013952208682894707, -1.141631007194519, 0.38105398416519165, -0.7806121110916138, 0.301083534955978...
func (c *Client) SupportsPRLabels() bool { return !NoLabelProviders().Has(c.ProviderType()) }
[ -0.8985942602157593, 0.582105278968811, 0.4546038806438446, -0.8744133710861206, -0.2664850354194641, 1.0631409883499146, -1.1255308389663696, 0.33724135160446167, 0.3768658936023712, 0.7437822222709656, -0.6584369540214539, 0.13428489863872528, -1.693637728691101, 0.44035473465919495, -...
func (c *Client) ServerURL() *url.URL { return c.client.BaseURL }
[ 0.010420868173241615, -0.48416346311569214, 0.2217426300048828, 0.840863823890686, 0.602344274520874, 0.8762121796607971, 0.5828133821487427, 0.6501273512840271, -0.601313054561615, 0.8003125786781311, -0.4802994728088379, 0.6458660960197449, -1.1822998523712158, 0.40195801854133606, -0....
func (c *Client) SupportsGraphQL() bool { return c.client.Driver == scm.DriverGithub }
[ 0.27537572383880615, 0.6743234992027283, 0.3170182406902313, 0.23838037252426147, -0.06943913549184799, 0.23997735977172852, -0.5192657709121704, -0.5724740028381348, -0.1663908064365387, 0.45566654205322266, -0.4932080805301666, 0.26763975620269775, -1.3833093643188477, -0.476118832826614...
func (c *Client) ProviderType() string { return c.client.Driver.String() }
[ 0.14192166924476624, 0.09917722642421722, 0.20846997201442719, 0.010788477957248688, 0.7153217196464539, 0.27123501896858215, 0.40791094303131104, -0.6669191122055054, 1.072984218597412, 1.1250988245010376, 0.3766426742076874, 0.11902620643377304, -1.6589765548706055, 0.7106809616088867, ...
func (c *Client) PRRefFmt() string { switch c.client.Driver { case scm.DriverStash: return "refs/pull-requests/%d/from" case scm.DriverGitlab: return "refs/merge-requests/%d/head" default: return "refs/pull/%d/head" } }
[ -0.12521670758724213, 0.27476048469543457, 0.4857288599014282, -0.15060186386108398, 0.3375779390335083, 0.6929802894592285, -0.7480495572090149, -0.04451673477888107, 0.1907663643360138, -0.017699260264635086, 1.3691353797912598, 0.10183659940958023, -0.6251779198646545, 0.159128129482269...
func NoLabelProviders() sets.String { // "coding" is a placeholder provider name from go-scm that we'll use for testing the comment support for label logic. return sets.NewString("coding") }
[ -0.856474757194519, 0.5559629797935486, 0.1303909569978714, -0.8726865649223328, -0.34087073802948, 0.9256975650787354, -0.4006395637989044, -0.3890860378742218, 0.5156307816505432, 0.6489397287368774, -0.08868034183979034, 0.3616718053817749, -1.1437904834747314, -0.012486899271607399, ...
func NewMNSTopic(name string, client MNSClient, /*qps ...int32*/) AliMNSTopic { if name == "" { panic("ali_mns: topic name could not be empty") } topic := new(MNSTopic) topic.client = client topic.name = name topic.stopChan = make(chan bool) //topic.qpsLimit = DefaultTopicQPSLimit topic.decoder = NewAliMNSDe...
[ 0.3393971621990204, -0.1056731715798378, 0.4586607813835144, -0.5133563876152039, -1.6934269666671753, 0.31416353583335876, -0.8063651919364929, -0.8072949051856995, 0.2762898802757263, 0.11732175201177597, -0.3019466698169708, 0.020174145698547363, -0.2754719853401184, -0.2305005341768264...
func ParseNotification(req *http.Request, msg *TopicNotification) (statusCode int, err error) { // 校验签名 err = VerifyNotificationSignature(req) if err != nil { statusCode = 403 return } statusCode = 204 // 解析消息 decoder := NewAliMNSDecoder() if e := decoder.Decode(req.Body, msg); e != nil { err = ERR_UNM...
[ -0.09846071898937225, 0.13574574887752533, 0.7337285876274109, 0.6536648273468018, -0.28930026292800903, -0.29332050681114197, -0.11726672947406769, 0.9354638457298279, 0.4483124911785126, 0.7440107464790344, -0.7851002216339111, -0.4801343083381653, -0.1752065271139145, -0.325694710016250...
func runFileE2ETest(helper *clients.TestClient, k8sh *utils.K8sHelper, s *suite.Suite, settings *installer.TestCephSettings, filesystemName string, preserveFilesystemOnDelete bool) { defer fileTestDataCleanUp(helper, k8sh, s, filePodName, settings.Namespace, filesystemName) logger.Infof("Running on Rook Cluster %s", ...
[ -0.17581576108932495, -0.4864882230758667, 0.8849572539329529, 0.43736037611961365, 1.7133090496063232, -0.06850329041481018, 0.765357494354248, -0.63335120677948, 0.09269795566797256, -0.47555676102638245, 0.32120248675346375, -0.6671733260154724, -0.02913210354745388, -0.1789378225803375...
func cleanupFilesystem(helper *clients.TestClient, k8sh *utils.K8sHelper, s *suite.Suite, namespace string, filesystemName string) { logger.Infof("Deleting file system") err := helper.FSClient.Delete(filesystemName, namespace) assert.Nil(s.T(), err) logger.Infof("File system %s deleted", filesystemName) }
[ 0.4607478082180023, -0.012714740820229053, 0.2878381013870239, -0.29376325011253357, 0.9093613624572754, -0.32605212926864624, 0.3162012994289398, -0.4803902506828308, 1.3077986240386963, -1.2066751718521118, 0.3031231164932251, 0.1644599288702011, 0.16751883924007416, 0.7470991611480713, ...
func runFileE2ETestLite(helper *clients.TestClient, k8sh *utils.K8sHelper, s *suite.Suite, settings *installer.TestCephSettings, filesystemName string) { logger.Infof("File Storage End to End Integration Test - create Filesystem and make sure mds pod is running") logger.Infof("Running on Rook Cluster %s", settings.Na...
[ -0.4161263108253479, -0.4452829360961914, 0.7497057318687439, 0.16703791916370392, 1.0192058086395264, 0.2331411987543106, 0.5322695374488831, -0.5983805060386658, 0.13855984807014465, -0.4221310317516327, 0.2913002669811249, -0.7502691745758057, 0.12628600001335144, -0.04759220406413078, ...