text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (e *ConsumerConfig) GetDeadletterName() string{ if e.DeadletterName == nil{ return fmt.Sprintf("%s.deadletter",e.GetName()) } return *e.DeadletterName }
[ -1.4323532581329346, -0.33714941143989563, 0.7635945081710815, -0.19113686680793762, -0.5068376660346985, 0.3312888443470001, -0.38134831190109253, 0.2338602989912033, 0.3533240556716919, 0.9894871711730957, 0.17428691685199738, -0.3255181610584259, -0.4190392792224884, 1.0228710174560547,...
func (l List) Reverse() List { s := make(List, len(l)) for i, j := 0, len(l)-1; i < j; i, j = i+1, j-1 { s[i], s[j] = l[j], l[i] } return s }
[ -1.036214828491211, 0.36499494314193726, 0.6242348551750183, 0.04979320615530014, -0.03186731040477753, -0.0773218646645546, -0.5086315274238586, 1.5018140077590942, 0.28472644090652466, -0.054234325885772705, -1.4740387201309204, -0.1422332227230072, -0.5983827114105225, -0.60877150297164...
func (bir *BuildInfoRecord) setkv(key, value string) { switch key { case "vcs.revision": bir.VcsRevision = value case "vcs.time": bir.VcsTime = value case "vcs.modified": bir.VcsModified = value case "vcs": bir.VcsTool = value } }
[ -0.13692784309387207, -0.6111116409301758, 0.33425408601760864, 0.4538077712059021, 0.0329667367041111, -0.033207233995199203, -0.11169417202472687, 0.1495523601770401, -0.2571065127849579, 0.4091767966747284, -0.4792662560939789, 0.9060120582580566, -0.19575494527816772, 0.231795519590377...
func (bir *BuildInfoRecord) setall(settings []debug.BuildSetting) { for _, entry := range settings { bir.setkv(entry.Key, entry.Value) } }
[ -0.09665683656930923, -0.650713324546814, 0.2963314950466156, 0.9328226447105408, 0.47555437684059143, 0.6803022027015686, -0.5283730626106262, 0.011773590929806232, -0.46353423595428467, 0.33259308338165283, -0.3344295620918274, 0.4502212405204773, -0.3185822069644928, 1.106144666671753, ...
func Assert(assertion bool, message string) { if !assertion { panic(errors.New(message)) } }
[ 0.7882435321807861, 0.30231666564941406, 0.2736494839191437, 0.6029133200645447, 0.15631096065044403, 0.9767944812774658, 0.06388085335493088, 0.3915126919746399, 0.16144303977489471, -0.12339076399803162, 0.42857927083969116, 1.4812051057815552, -1.1550743579864502, 1.287692904472351, -...
func PanicIfTrue(assertion bool, message string) { Assert(!assertion, message) }
[ 1.2239428758621216, 0.5219537019729614, 0.3329611122608185, 0.6239203810691833, 0.2776986062526703, 1.0930323600769043, 0.2639879882335663, 0.4116426706314087, -0.4591483473777771, 0.9920446872711182, -0.4008854329586029, -0.12161927670240402, -0.8016253113746643, 0.6181653738021851, -0....
func PanicIfNil(v any, message string) { PanicIfTrue(v == nil, message) }
[ 1.4084481000900269, -0.16452854871749878, 0.015128579922020435, 0.6185151934623718, -0.5911045074462891, -0.937264084815979, -0.6017573475837708, -0.5387129783630371, 0.5351191759109497, 1.177143931388855, -0.2538207173347473, 0.016238117590546608, -0.35027971863746643, 0.6806191205978394,...
func Try1[T1 any](v1 T1, err error) T1 { PanicOnError(err, "Try1") return v1 }
[ -0.42538756132125854, 0.010373229160904884, 0.2720130980014801, 1.6073445081710815, -0.9622752070426941, 0.3651759922504425, -0.6294957995414734, -0.05359736457467079, -0.1477333903312683, 1.0268902778625488, -0.054011162370443344, 0.6880804300308228, 0.24600279331207275, -0.65570324659347...
func Try2[T1, T2 any](v1 T1, v2 T2, err error) (T1, T2) { PanicOnError(err, "Try2") return v1, v2 }
[ -0.8531324863433838, -0.5432382822036743, 0.35825562477111816, 0.971625566482544, -1.307813048362732, 0.06879068166017532, -1.3237804174423218, -1.3376667499542236, -0.9293369054794312, 0.36265435814857483, -0.5595372319221497, 0.8092056512832642, 0.21079450845718384, -0.04361553117632866,...
func Try3[T1, T2, T3 any](v1 T1, v2 T2, v3 T3, err error) (T1, T2, T3) { PanicOnError(err, "Try3") return v1, v2, v3 }
[ -0.9118413329124451, 0.5690100789070129, 0.6241553425788879, 1.1694984436035156, -0.5297214984893799, 0.6967742443084717, -1.1645560264587402, -0.9480810165405273, -0.32457226514816284, 0.7467666268348694, -1.003214716911316, -0.22328433394432068, -0.8072326183319092, -0.5861017107963562, ...
func (s SignalWorkflowExecutionInput) String() string { return awsutil.Prettify(s) }
[ 0.7612642645835876, -0.02847355417907238, 0.15323638916015625, -0.06652219593524933, -0.19143056869506836, 0.8133925199508667, 0.9556351900100708, -0.906805694103241, 0.15825138986110687, 0.3466350734233856, 0.3788229823112488, 0.4442715644836426, 0.04749031364917755, 0.3016391694545746, ...
func (s *SignalWorkflowExecutionInput) Validate() error { invalidParams := aws.ErrInvalidParams{Context: "SignalWorkflowExecutionInput"} if s.Domain == nil { invalidParams.Add(aws.NewErrParamRequired("Domain")) } if s.Domain != nil && len(*s.Domain) < 1 { invalidParams.Add(aws.NewErrParamMinLen("Domain", 1)) ...
[ 0.13095161318778992, 0.027374282479286194, 0.3082733452320099, 0.31685128808021545, -0.017523908987641335, 0.10917069762945175, 0.10318378359079361, -0.3491838872432709, -0.46206390857696533, 0.16363094747066498, 0.4431980550289154, 0.3156989812850952, -0.7315244674682617, 1.53595483303070...
func (s SignalWorkflowExecutionOutput) String() string { return awsutil.Prettify(s) }
[ 1.3636655807495117, -0.40122190117836, 0.1606277972459793, -0.040190134197473526, -0.3176126778125763, -0.07155060768127441, 0.8866901993751526, -0.8971034288406372, -0.36757177114486694, 0.14513379335403442, 0.48978284001350403, 0.1293449103832245, 0.22803696990013123, 0.19681580364704132...
func (r SignalWorkflowExecutionRequest) Send(ctx context.Context) (*SignalWorkflowExecutionResponse, error) { r.Request.SetContext(ctx) err := r.Request.Send() if err != nil { return nil, err } resp := &SignalWorkflowExecutionResponse{ SignalWorkflowExecutionOutput: r.Request.Data.(*SignalWorkflowExecutionOut...
[ -0.19414904713630676, -0.11412707716226578, 0.11730502545833588, 0.7711830735206604, 0.3263287842273712, -0.5152420401573181, 0.3230379819869995, -1.0929388999938965, 0.06600035727024078, -0.09910428524017334, -0.0886775329709053, 0.10802435874938965, -0.16807255148887634, 0.71147078275680...
func (r *SignalWorkflowExecutionResponse) SDKResponseMetdata() *aws.Response { return r.response }
[ 0.5215156078338623, -0.2619118392467499, 0.18566375970840454, 0.2383638173341751, 0.2457599639892578, 0.010927998460829258, -0.24253718554973602, -0.42930322885513306, 0.565828263759613, 0.4065774083137512, -0.08977349102497101, -0.14367789030075073, 0.02992282621562481, -0.258396387100219...
func NewEmailSender(ctx *pulumi.Context, name string, args *EmailSenderArgs, opts ...pulumi.ResourceOption) (*EmailSender, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.FromAddress == nil { return nil, errors.New("invalid value for required argument 'FromA...
[ -0.7631914019584656, 0.9059717655181885, 0.40590450167655945, -0.7818553447723389, -0.21547691524028778, 0.13149897754192352, -0.683599054813385, 0.003688252065330744, -0.40371593832969666, 0.5422679781913757, -1.0157464742660522, 0.13487601280212402, -0.263245165348053, 0.0091194771230220...
func GetEmailSender(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EmailSenderState, opts ...pulumi.ResourceOption) (*EmailSender, error) { var resource EmailSender err := ctx.ReadResource("okta:index/emailSender:EmailSender", name, id, state, &resource, opts...) if err != nil { return nil, err } r...
[ -0.47063836455345154, 0.36265093088150024, 0.10963810980319977, -0.8204215168952942, 0.06487104296684265, -0.8013497591018677, -1.1545543670654297, -0.5641038417816162, 0.5878463387489319, -0.035531919449567795, -0.44694679975509644, 0.9052389860153198, -0.13687309622764587, -0.99398249387...
func (o EmailSenderOutput) DnsRecords() EmailSenderDnsRecordArrayOutput { return o.ApplyT(func(v *EmailSender) EmailSenderDnsRecordArrayOutput { return v.DnsRecords }).(EmailSenderDnsRecordArrayOutput) }
[ -0.1251436173915863, 0.739149808883667, 0.5101363062858582, -0.253821462392807, 0.16594603657722473, -0.500695526599884, -0.5589489340782166, -0.6433002352714539, 0.895472526550293, 0.3834986090660095, -1.1607614755630493, 0.6334244608879089, 0.5122107267379761, -0.44922444224357605, -1....
func (o EmailSenderOutput) FromAddress() pulumi.StringOutput { return o.ApplyT(func(v *EmailSender) pulumi.StringOutput { return v.FromAddress }).(pulumi.StringOutput) }
[ 0.8506267070770264, -0.1834052950143814, 0.4805019795894623, -0.5839426517486572, -0.4626625180244446, 0.36189213395118713, 0.08494476974010468, 0.6421121954917908, 1.1810990571975708, 0.08081661909818649, -0.3213699460029602, 1.4678800106048584, 0.9191616773605347, -0.8585503101348877, ...
func (o EmailSenderOutput) Status() pulumi.StringOutput { return o.ApplyT(func(v *EmailSender) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput) }
[ 0.12028146535158157, -0.8195772767066956, 0.1821429282426834, -0.47764959931373596, -0.21722836792469025, 0.45219913125038147, -0.3410191237926483, 0.8146069049835205, 0.10531154274940491, 0.38230156898498535, -0.8324778079986572, 0.7970765233039856, 0.48418280482292175, -0.682605504989624...
func (o EmailSenderOutput) Subdomain() pulumi.StringOutput { return o.ApplyT(func(v *EmailSender) pulumi.StringOutput { return v.Subdomain }).(pulumi.StringOutput) }
[ 0.3306412994861603, 0.16734346747398376, 0.5578646063804626, -0.10948590934276581, -0.5100996494293213, 0.7864245176315308, -0.25241386890411377, 0.6065190434455872, 0.46171674132347107, -0.9829943180084229, -0.5568829774856567, 1.9924943447113037, 0.09345177561044693, -1.2924953699111938,...
func (p *Prometheus) PluginName() string { return "prometheus" }
[ 0.3447483777999878, -0.6929861903190613, 0.5714946389198303, 0.5792791843414307, -0.8018976449966431, 0.31975239515304565, -0.10309266299009323, 0.3030731976032257, 0.21177507936954498, -0.011039133183658123, -0.3812549412250519, 0.612118124961853, -0.5977851748466492, -0.18315309286117554...
func (p *Prometheus) TOML() string { s := make([]string, len(p.URLs)) for k, v := range p.URLs { s[k] = strconv.Quote(v) } return fmt.Sprintf(`[[inputs.%s]] ## An array of urls to scrape metrics from. urls = [%s] `, p.PluginName(), strings.Join(s, ", ")) }
[ 0.4267010986804962, -0.25638100504875183, 0.35202744603157043, -0.7422388195991516, 0.3777327537536621, 0.3315238058567047, -0.4313996434211731, 0.41149961948394775, 0.47701331973075867, 0.18156160414218903, 0.1836017370223999, 0.12645390629768372, -0.13456791639328003, -0.4943148791790008...
func setupMetrics(mf monitoring.MetricFactory) { if mf == nil { mf = monitoring.InertMetricFactory{} } knownSourceLogs = mf.NewGauge("known_logs", "Set to 1 for known source logs", "logname") readsCounter = mf.NewCounter("log_reads", "Number of source log read requests", "logname") readErrorsCounter = mf.NewCoun...
[ -0.15081295371055603, 0.007265329826623201, 0.798282265663147, -0.9090667963027954, 0.3145851790904999, -0.08026350289583206, 0.645014226436615, -0.030755115672945976, -0.45865851640701294, 0.04682211950421333, 0.2699560523033142, 0.18251991271972656, 0.030761871486902237, 0.68782913684844...
func (c *ctLogSubmitter) CanSubmit(ctx context.Context, g *Gossiper) error { glog.V(1).Infof("Get accepted roots for destination CT log at %s", c.Log.BaseURI()) roots, err := c.Log.GetAcceptedRoots(ctx) if err != nil { return fmt.Errorf("failed to get accepted roots: %v", err) } for _, root := range roots { if...
[ 0.57481449842453, 0.36823663115501404, 0.7657539248466492, 0.20660479366779327, -0.9839244484901428, 0.03386479243636131, -0.0547923743724823, -0.4091856777667999, -0.8964759111404419, 0.5409469604492188, 0.22107048332691193, 0.9485284686088562, -0.3912583589553833, 0.36749178171157837, ...
func (c *ctLogSubmitter) SubmitSTH(ctx context.Context, name, url string, sth *ct.SignedTreeHead, g *Gossiper) error { var err error cert, err := g.CertForSTH(name, url, sth) if err != nil { return fmt.Errorf("synthetic cert generation failed: %v", err) } chain := []ct.ASN1Cert{*cert, {Data: g.root.Raw}} sct, e...
[ 0.2128402143716812, -0.11059729009866714, 0.46124547719955444, -0.11853674054145813, -0.3354962468147278, 0.4380575716495514, -0.07693159580230713, -0.1891392171382904, -0.620988667011261, 0.7536219358444214, -1.1619316339492798, 1.0199189186096191, -0.1765962541103363, 0.3990781009197235,...
func (p *pureHubSubmitter) CanSubmit(ctx context.Context, g *Gossiper) error { glog.V(1).Infof("Get accepted public keys for destination Gossip Hub at %s", p.Hub.BaseURI()) keys, err := p.Hub.GetSourceKeys(ctx) if err != nil { return fmt.Errorf("failed to get source keys: %v", err) } for _, src := range g.srcs ...
[ -0.15176831185817719, 0.366202175617218, 0.5270272493362427, 0.24171318113803864, -0.5010682940483093, 0.3574633002281189, -0.3161309063434601, 0.17245544493198395, -0.753345251083374, 0.6522983908653259, -0.24142079055309296, 0.8127085566520691, -0.4139261543750763, 1.1769531965255737, ...
func (p *pureHubSubmitter) SubmitSTH(ctx context.Context, name, url string, sth *ct.SignedTreeHead, g *Gossiper) error { sgt, err := p.Hub.AddCTSTH(ctx, url, sth) if err != nil { return fmt.Errorf("failed to AddCTSTH(%s): %v", p.Hub.BaseURI(), err) } glog.V(1).Infof("SGT from %s for STH(size=%d) from %s: {ts=%d, ...
[ -0.21340790390968323, -0.2657666504383087, 0.2865179777145386, 0.23506875336170197, -0.22147227823734283, 0.6783157587051392, -0.08762969076633453, -0.22889338433742523, -0.31063559651374817, 0.49850863218307495, -1.3097474575042725, 0.4358614683151245, -0.5283074975013733, 0.7628137469291...
func (g *Gossiper) CheckCanSubmit(ctx context.Context) error { for _, d := range g.dests { if err := d.Submitter.CanSubmit(ctx, g); err != nil { return err } } return nil }
[ -0.346508264541626, 0.3511958420276642, 0.6034740805625916, 1.0222793817520142, -0.2901764214038849, 0.3793136477470398, -0.008173572830855846, -0.3981590270996094, -1.1738821268081665, 0.368791788816452, 0.5311641097068787, 0.6333790421485901, -0.07460840046405792, 1.7301769256591797, -...
func (g *Gossiper) Run(ctx context.Context) { sths := make(chan sthInfo, g.bufferSize) var wg sync.WaitGroup wg.Add(len(g.srcs)) for _, src := range g.srcs { go func(src *sourceLog) { defer wg.Done() glog.Infof("starting Retriever(%s)", src.Name) src.Retriever(ctx, g, sths) glog.Infof("finished Retri...
[ -0.1772245317697525, -0.3383136987686157, 0.7678908705711365, -0.4902724027633667, 0.46015116572380066, 0.2794651985168457, 0.18774345517158508, -0.3761219382286072, -0.25779858231544495, -0.44054412841796875, -0.6127173900604248, 0.6393948793411255, -0.500769317150116, 1.4889638423919678,...
func (g *Gossiper) Submitter(ctx context.Context, s <-chan sthInfo) { for { select { case <-ctx.Done(): glog.Info("Submitter: termination requested") return case info := <-s: fromLog := info.name glog.V(1).Infof("Submitter: Add-chain(%s)", fromLog) src, ok := g.srcs[fromLog] if !ok { glog.E...
[ -0.5578749179840088, -0.8023046255111694, 0.7201093435287476, -0.20685027539730072, -0.08484477549791336, -0.07181893289089203, -0.0756717398762703, -0.5101279020309448, 0.12615728378295898, -0.456534743309021, -0.08525940030813217, -0.08207403868436813, -0.04211020842194557, 0.65046453475...
func (src *sourceLog) Retriever(ctx context.Context, g *Gossiper, s chan<- sthInfo) { // Wait for a random interval so all Retrievers aren't in sync. jitterWait := time.Duration(rand.Int63n(int64(src.MinInterval))) glog.V(1).Infof("Retriever(%s): wait for %v before starting...", src.Name, jitterWait) waitChan := ti...
[ 0.5036662220954895, -0.287335604429245, 0.6682127714157104, -0.18770912289619446, -0.48015689849853516, -0.22999663650989532, 0.29751619696617126, -0.48675402998924255, 0.13980437815189362, -0.3783721923828125, -0.32688266038894653, 0.07820022106170654, 0.4697880446910858, 0.85247844457626...
func (src *sourceLog) GetNewerSTH(ctx context.Context, g *Gossiper) (*ct.SignedTreeHead, error) { glog.V(1).Infof("Get STH for source log %s", src.Name) sth, err := src.Log.GetSTH(ctx) if err != nil { return nil, fmt.Errorf("failed to get new STH: %v", err) } lastSeenSTHTimestamp.Set(float64(sth.Timestamp), src....
[ 0.5687080025672913, -0.2157541960477829, 0.5264618992805481, -0.41119998693466187, -0.36576834321022034, -0.32740968465805054, 0.03773343190550804, -1.3279459476470947, 0.13284194469451904, 0.09942936152219772, -0.849527895450592, 0.39073440432548523, -0.13097913563251495, 0.52489769458770...
func InsertBeforeSysPath(p string) string { sysModule := python.PyImport_ImportModule("sys") path := sysModule.GetAttrString("path") python.PyList_Insert(path, 0, PyStr(p)) return GoStr(path.Repr()) }
[ -0.2696559727191925, 0.6479335427284241, 0.4970647096633911, -0.11057601124048233, 0.2205183357000351, -0.01634393073618412, 0.2732081711292267, 0.26565587520599365, 0.3921685218811035, 0.41777366399765015, -1.3078243732452393, -0.5913097262382507, -0.7927860617637634, 0.33682548999786377,...
func ImportModule(dir, name string) *python.PyObject { sysModule := python.PyImport_ImportModule("sys") // import sys path := sysModule.GetAttrString("path") // path = sys.path python.PyList_Insert(path, 0, PyStr(dir)) // path.insert(0, dir) return python.PyImport_...
[ -0.404742568731308, -0.22274820506572723, 0.5214060544967651, 0.1060560941696167, -0.0032773239072412252, 0.043098438531160355, 0.6637275218963623, -0.32274287939071655, 0.7785454392433167, 0.32878005504608154, -0.8099988102912903, 0.5196197032928467, 0.18180640041828156, -0.44109565019607...
func NewPool(log api.Logger, inspector api.RequestInspector, th RequestTimeoutHandler, options PoolOptions, submittedChan chan struct{}) *Pool { if options.ForwardTimeout == 0 { options.ForwardTimeout = defaultRequestTimeout } if options.ComplainTimeout == 0 { options.ComplainTimeout = defaultRequestTimeout } ...
[ -0.21440908312797546, -0.1382979154586792, 0.7366344928741455, 0.1956491768360138, -0.17004698514938354, 0.41979265213012695, -0.03508239611983299, -0.09741243720054626, 0.4841623306274414, 0.28864651918411255, 0.3859042525291443, 0.5959400534629822, -0.549959659576416, 0.5974738001823425,...
func (rp *Pool) ChangeTimeouts(th RequestTimeoutHandler, options PoolOptions) { rp.lock.Lock() defer rp.lock.Unlock() if !rp.stopped { rp.logger.Errorf("Trying to change timeouts but the pool is not stopped") return } if options.ForwardTimeout == 0 { options.ForwardTimeout = defaultRequestTimeout } if op...
[ -0.2216419130563736, -0.011462429538369179, 0.36907026171684265, -0.44367483258247375, 0.9301428198814392, 0.16580034792423248, 0.3093109726905823, 0.2185889035463333, -0.21437416970729828, 0.41896310448646545, 0.28679943084716797, 0.022130081430077553, -0.4274652898311615, 0.8967447876930...
func (rp *Pool) Submit(request []byte) error { reqInfo := rp.inspector.RequestID(request) if rp.isClosed() { return errors.Errorf("pool closed, request rejected: %s", reqInfo) } if uint64(len(request)) > rp.options.RequestMaxBytes { rp.metrics.CountOfFailAddRequestToPool.With( rp.metrics.LabelsForWith(api.N...
[ -1.185625672340393, -0.5072456002235413, 0.7009174823760986, -0.06937060505151749, -0.023812875151634216, 0.6943724155426025, -0.14436642825603485, -0.7813036441802979, 0.5904277563095093, 0.1375148594379425, 0.581686794757843, 1.005069613456726, -0.3261767029762268, 0.08821601420640945, ...
func (rp *Pool) Size() int { rp.lock.Lock() defer rp.lock.Unlock() return len(rp.existMap) }
[ -0.966711163520813, -0.003986472263932228, 0.494555801153183, -0.9505929946899414, 0.4719057083129883, 1.0850759744644165, 0.7731853723526001, -0.2587733864784241, -0.16889074444770813, 0.14259932935237885, -0.5198981761932373, 0.033096712082624435, -1.3608217239379883, 0.03800195828080177...
func (rp *Pool) NextRequests(maxCount int, maxSizeBytes uint64, check bool) (batch [][]byte, full bool) { rp.lock.Lock() defer rp.lock.Unlock() if check { if (len(rp.existMap) < maxCount) && (rp.sizeBytes < maxSizeBytes) { return nil, false } } count := minInt(rp.fifo.Len(), maxCount) var totalSize uint6...
[ -0.20862822234630585, 0.003985896240919828, 0.6769628524780273, 0.4873659908771515, -0.8174098134040833, -0.4367879331111908, -0.33445313572883606, 0.02123667672276497, 0.10313649475574493, -0.06764840334653854, 0.1117703840136528, -0.4753571152687073, -0.956393301486969, 0.692510664463043...
func (rp *Pool) Prune(predicate func([]byte) error) { reqVec, infoVec := rp.copyRequests() var numPruned int for i, req := range reqVec { err := predicate(req) if err == nil { continue } if remErr := rp.RemoveRequest(infoVec[i]); remErr != nil { rp.logger.Debugf("Failed to prune request: %s; predicat...
[ -0.25752997398376465, 0.1318816989660263, 0.6968540549278259, 0.15876179933547974, -0.08882413804531097, 0.6266738176345825, 0.42881476879119873, -0.21015222370624542, 0.07474999874830246, -0.015144497156143188, 0.8598719239234924, 0.30181756615638733, -0.855137288570404, 0.310734987258911...
func (rp *Pool) RemoveRequest(requestInfo types.RequestInfo) error { rp.lock.Lock() defer rp.lock.Unlock() element, exist := rp.existMap[requestInfo] if !exist { rp.moveToDelSlice(requestInfo) errStr := fmt.Sprintf("request %s is not in the pool at remove time", requestInfo) rp.logger.Debugf(errStr) return...
[ -1.2244006395339966, -0.5608323812484741, 0.4133051335811615, -0.10635289549827576, 0.10674318671226501, 0.38311871886253357, -0.06076937913894653, -0.1622489094734192, 0.20315970480442047, 0.008446985855698586, 0.4066142141819, -0.22771304845809937, -0.7730637788772583, 0.4071062207221985...
func (rp *Pool) Close() { rp.lock.Lock() defer rp.lock.Unlock() rp.closed = true for requestInfo, element := range rp.existMap { rp.deleteRequest(element, requestInfo) } rp.cancel() }
[ -0.4240405857563019, -0.8295875787734985, 0.4210081696510315, -0.04311351478099823, 0.13539165258407593, 1.6805344820022583, 0.28168198466300964, -0.5784044861793518, -0.5112280249595642, -0.43054234981536865, 0.5847340226173401, -0.22869433462619781, -1.3354249000549316, 0.889260709285736...
func (rp *Pool) StopTimers() { rp.lock.Lock() defer rp.lock.Unlock() rp.stopped = true for _, element := range rp.existMap { item := element.Value.(*requestItem) item.timeout.Stop() } rp.logger.Debugf("Stopped all timers: size=%d", len(rp.existMap)) }
[ -1.2936919927597046, -0.8083939552307129, 0.18212872743606567, -0.2296377271413803, 0.6067078113555908, 0.8292529582977295, -0.03714825212955475, 0.1957760751247406, -0.9198732972145081, 0.22661660611629486, -0.3525319993495941, -0.04848633334040642, -0.8690032958984375, 0.5140053629875183...
func (rp *Pool) RestartTimers() { rp.lock.Lock() defer rp.lock.Unlock() rp.stopped = false for reqInfo, element := range rp.existMap { item := element.Value.(*requestItem) item.timeout.Stop() ri := reqInfo to := time.AfterFunc( rp.options.ForwardTimeout, func() { rp.onRequestTO(item.request, ri) }, ...
[ -0.5383845567703247, -0.46467721462249756, 0.1952803134918213, -0.16014577448368073, 0.3178556263446808, 0.5702282190322876, -0.07737117260694504, 0.4319888651371002, -0.7346050143241882, 0.18610098958015442, -0.10159265249967575, 0.35594531893730164, -0.9241591095924377, 0.417457491159439...
func (rp *Pool) onRequestTO(request []byte, reqInfo types.RequestInfo) { rp.lock.Lock() element, contains := rp.existMap[reqInfo] if !contains { rp.lock.Unlock() rp.logger.Debugf("Request %s no longer in pool", reqInfo) return } if rp.closed || rp.stopped { rp.lock.Unlock() rp.logger.Debugf("Pool stopp...
[ -0.3227212429046631, -0.5613074898719788, 0.6248633861541748, -1.0723437070846558, 0.4089319705963135, 0.22810129821300507, -0.22402143478393555, -0.5212121605873108, -0.1708381474018097, -0.029819084331393242, 0.12168743461370468, 0.579405665397644, -0.2398417443037033, 0.2044195979833603...
func (rp *Pool) onLeaderFwdRequestTO(request []byte, reqInfo types.RequestInfo) { rp.lock.Lock() element, contains := rp.existMap[reqInfo] if !contains { rp.lock.Unlock() rp.logger.Debugf("Request %s no longer in pool", reqInfo) return } if rp.closed || rp.stopped { rp.lock.Unlock() rp.logger.Debugf("P...
[ -0.15421228110790253, -0.5865208506584167, 0.6052514910697937, -1.0642601251602173, 0.13924342393875122, -0.04098344221711159, 0.041625555604696274, -0.05872603878378868, -0.09475546330213547, -0.044514767825603485, -0.093651682138443, 0.2877868711948395, -0.2131337672472, 0.10991786420345...
func (rp *Pool) onAutoRemoveTO(reqInfo types.RequestInfo) { rp.logger.Debugf("Request %s auto-remove timeout expired, going to remove from pool", reqInfo) if err := rp.RemoveRequest(reqInfo); err != nil { rp.logger.Errorf("Removal of request %s failed; error: %s", reqInfo, err) return } rp.metrics.CountOfDelete...
[ 0.39637094736099243, -0.9800224900245667, 0.5150708556175232, -0.24141761660575867, 0.07384371757507324, -0.03310881555080414, -0.5033603310585022, 0.32585620880126953, -0.12694960832595825, 0.17033280432224274, -0.7884899377822876, 0.5718504190444946, 0.23549427092075348, -0.0033317555207...
func (e *UnionScanExec) Schema() expression.Schema { return e.schema }
[ -0.04420989006757736, 0.29217836260795593, 0.3261958956718445, 1.3293527364730835, 0.565020740032196, -0.20560157299041748, 0.526130199432373, 1.253549575805664, 0.6172734498977661, -0.5036442279815674, 1.1220121383666992, 0.6512208580970764, -0.09678162634372711, -0.5516567230224609, 0....
func (e *UnionScanExec) Exec() *flow.Dataset { d := e.Src.Exec() ret := d return ret }
[ -0.10380042344331741, 0.9442256689071655, 0.19715836644172668, 0.5310677289962769, -0.3643723428249359, 0.5030954480171204, -0.06219644472002983, 0.08256795257329941, 0.15038807690143585, -0.7904390096664429, 0.4959108233451843, 0.550011396408081, 0.016423678025603294, -0.5030307173728943,...
func check(e error, m string) { color.Set(color.FgHiRed) if e != nil { fmt.Println(m) // print a message panic(e) // panic } color.Unset() }
[ 0.7738248705863953, 0.44342902302742004, 0.29909300804138184, 0.35601693391799927, 0.506316065788269, 0.28810492157936096, -0.20597513020038605, 0.2816941738128662, -0.41778066754341125, 0.37500518560409546, 0.891711950302124, 1.6240592002868652, 0.20618000626564026, 1.4246641397476196, ...
func scrape(u string, p string, selector string, ch chan string, chFinished chan bool) { fmt.Printf("Scraping url with POST args %s \n", p) // I think there's probably a better way to get the query in proper format -- I am using this for POST requests uv, err := url.ParseQuery(p) check(err, "ERROR: Could not do u...
[ -0.3075103461742401, 0.30748623609542847, 0.6306745409965515, -0.2060282826423645, 0.5546357035636902, 0.20797589421272278, -0.639915943145752, 0.4493850767612457, -0.5317872166633606, 0.13430991768836975, 0.21476596593856812, 0.7503464221954346, -0.6693970561027527, -0.055393390357494354,...
func addPostData(p []string) []string { // bufio manages getting std input getInput := bufio.NewReader(os.Stdin) // read the line o, _ := getInput.ReadString('\n') // take off the newline o = strings.Replace(o, "\n", "", -1) // if you're done, quit if o == "done" { return p } // add in the query to the ...
[ -0.7720707654953003, -0.3182601034641266, 0.8699790835380554, 0.6385855078697205, -0.44512543082237244, 1.6398907899856567, -0.49349653720855713, -0.16972661018371582, -0.3874388635158539, -0.3770141899585724, 0.4231492578983307, 0.1972913146018982, -0.7573254704475403, 0.8540528416633606,...
func HandleRequest(ctx context.Context, event StatusUpdatedEvent) error { // Print the event log.Printf("%v\n", event) // Validate the event if err := shared.Validate.Struct(event); err != nil { return err } // Get the device device, err := iot.GetThing(event.DeviceId) if err != nil { shared.LogErrorAndExit...
[ 0.25766193866729736, -0.2142447680234909, 0.7877062559127808, -0.020275449380278587, 0.1813415139913559, 0.0873255506157875, -0.34697479009628296, 1.1953009366989136, -0.3093051016330719, 0.15270397067070007, 0.9178009033203125, 0.5289136171340942, 0.01943465694785118, 0.061211638152599335...
func NewMigration(id string, queries, dependencies []string, postmigrations ...func(context *context.Context) error) Migrationer { return &simpleMigration{id: id, queries: queries, dependencies: dependencies, postmigrations: postmigrations} }
[ -0.9385541081428528, -0.020064691081643105, 0.14624468982219696, 1.11301589012146, -0.8803725838661194, 0.1080428883433342, -0.32231631875038147, -0.8474567532539368, 0.4910419285297394, -0.31370145082473755, -1.2059017419815063, -1.2713638544082642, 0.06392649561166763, 0.7591729760169983...
func NewSchemaEditor(context *context.Context, pr *PluginRegistry) *SchemaEditor { return &SchemaEditor{pr: pr, context: context} }
[ -0.6137833595275879, -0.3301585614681244, -0.1478404700756073, 0.268568754196167, -0.5960136651992798, -1.191988229751587, -0.9874779582023621, 0.9913207292556763, 0.9209855198860168, -0.13946661353111267, -0.5941120386123657, 1.035514235496521, -0.685508131980896, 0.48803260922431946, 0...
func (s *SchemaEditor) Migrate() (err error) { glog.V(2).Infof("patrol: running migrate.") var count int if count, err = s.PendingMigrations(); err != nil { return } if count == 0 { return fmt.Errorf("no pending migrations") } if err = s.prepareSchemaMigrations(); err != nil { return } resolver := New...
[ -0.6861425042152405, -0.6410329937934875, 0.8584645390510559, 0.2785821557044983, 0.8393232226371765, -0.8076513409614563, 0.1591988205909729, 0.2936350703239441, -0.24211980402469635, 0.31709909439086914, -0.7274048924446106, -0.111970454454422, -0.08623278886079788, 0.8737401366233826, ...
func (s *SchemaEditor) ProcessMigration(migration Migrationer, plugin Pluginer) (err error) { var tx *sqlx.Tx if tx, err = s.context.DB.Beginx(); err != nil { return } var queries []string if queries, err = migration.Queries(); err != nil { defer tx.Rollback() return } // process queries for _, query :...
[ -0.5672571063041687, -0.16100731492042542, 0.7700501680374146, -0.166230708360672, 0.12455298006534576, -0.6657990217208862, 0.42263472080230713, -0.24041748046875, -0.009279307909309864, 1.0351842641830444, -0.06744571775197983, -1.1811656951904297, -0.6219396591186523, 0.4422238171100616...
func (s *SchemaEditor) prepareSchemaMigrations() (err error) { qb := utils.QueryBuilder(). Select("COUNT(*)"). From("information_schema.tables"). Where("table_name = ?", MIGRATIONS_DB_TABLE) var ( args []interface{} count int query string ) if query, args, err = qb.ToSql(); err != nil { return } ...
[ -0.6714237928390503, 0.5142285823822021, 0.5920527577400208, 0.27647799253463745, 0.31370067596435547, -0.9626290202140808, 0.16622726619243622, -0.08225183933973312, -0.1808028668165207, 0.5111679434776306, -0.43899527192115784, -0.2799946367740631, 0.314767986536026, 0.5995391607284546, ...
func (s *SchemaEditor) IsAppliedMigration(migration Migrationer, plugin Pluginer) (result bool, err error) { qb := utils.QueryBuilder(). Select("COUNT(*)"). From(MIGRATIONS_DB_TABLE). Where("id=? AND plugin_id=?", migration.ID(), plugin.ID()) // prepare variables var args []interface{} var count int var que...
[ 0.13363970816135406, -0.09679663926362991, 0.7657022476196289, -0.12971505522727966, -0.36485081911087036, -1.0366947650909424, -0.6084371209144592, 0.3295469582080841, 0.6222845315933228, 0.7641112804412842, 0.11548615247011185, -0.17639988660812378, -0.2736005485057831, 0.974731326103210...
func (s *SchemaEditor) PendingMigrations() (count int, err error) { if err = s.prepareSchemaMigrations(); err != nil { return } err = s.pr.Do(func(plugin Pluginer) error { for _, migration := range plugin.Migrations() { if isApplied, isError := s.IsAppliedMigration(migration, plugin); isError != nil { ret...
[ -1.0128846168518066, 0.2876167297363281, 0.6430327892303467, -0.04189152643084526, -0.2913854420185089, -1.187432885169983, 0.1188494935631752, 0.7370296716690063, -0.21280118823051453, 0.07549476623535156, -0.4153522849082947, -0.4211694598197937, -0.27173519134521484, 1.576021432876587, ...
func NewSchemaDependenciesResolver(pr *PluginRegistry) *SchemaDependenciesResolver { return &SchemaDependenciesResolver{ pr: pr, } }
[ -0.3750680387020111, -0.7872596979141235, -0.022228585556149483, -0.8163064122200012, -0.18902559578418732, -0.29386651515960693, -0.3057135343551636, 0.9092451930046082, 0.7626038789749146, -0.7006650567054749, -1.5489909648895264, -0.28701362013816833, -0.3181227445602417, 0.413607031106...
func (cli *Client) NodeUpdate(ctx context.Context, nodeID string, version swarm.Version, node swarm.NodeSpec) error { query := url.Values{} query.Set("version", version.String()) resp, err := cli.post(ctx, "/nodes/"+nodeID+"/update", query, node, nil) ensureReaderClosed(resp) return err }
[ -0.7952190637588501, -0.17484742403030396, 0.08449316024780273, -0.699639081954956, 0.8090537190437317, 0.17663507163524628, -0.7315056920051575, 0.02232738956809044, -0.038886457681655884, 1.1113439798355103, -0.3494718372821808, 0.7948836088180542, -0.7939411997795105, -0.327896624803543...
func NewInstallTemplateJobJob(id int32, type_ string, progressPercentage int32, state string, workspace Workspace, template Template, installedApplications map[string]interface{}, group Workspace) *InstallTemplateJobJob { this := InstallTemplateJobJob{} this.Id = id this.Type = type_ this.ProgressPercentage = progr...
[ 0.5850923657417297, -0.564203679561615, 0.36741504073143005, -0.027008960023522377, -0.44261619448661804, -0.15327876806259155, 0.13505055010318756, 0.8695403933525085, -0.7169172763824463, 0.2386316955089569, -0.24675089120864868, -0.8150176405906677, -0.94387286901474, 0.7478617429733276...
func NewInstallTemplateJobJobWithDefaults() *InstallTemplateJobJob { this := InstallTemplateJobJob{} return &this }
[ 1.0145213603973389, 0.1770491898059845, 0.0691022053360939, 0.6591753959655762, 0.4602374732494354, -0.656773567199707, -0.7573550343513489, 1.0387816429138184, -0.907702624797821, -0.2699356973171234, -0.8031814694404602, -1.9389472007751465, -0.9010564684867859, 0.7947644591331482, -0....
func (o *InstallTemplateJobJob) GetId() int32 { if o == nil { var ret int32 return ret } return o.Id }
[ 0.8061217665672302, -0.2006501853466034, 0.051468074321746826, 0.7233582139015198, 0.5394104719161987, 1.5294206142425537, 0.7774356007575989, -0.10579095035791397, 0.9338269829750061, -0.5851581692695618, -0.37540802359580994, -1.1594557762145996, -1.04972505569458, 0.1450660526752472, ...
func (o *InstallTemplateJobJob) GetIdOk() (*int32, bool) { if o == nil { return nil, false } return &o.Id, true }
[ -0.9609567523002625, 0.9161127805709839, 0.4026947617530823, 0.9738337993621826, 0.4141421318054199, 0.3195625841617584, 0.8069354891777039, 0.5332832336425781, 0.5348103046417236, -0.5817607641220093, -1.3962291479110718, -0.9135713577270508, -0.3398533761501312, 0.07541412115097046, 0....
func (o *InstallTemplateJobJob) SetId(v int32) { o.Id = v }
[ 0.020670007914304733, 0.08912841230630875, -0.047226447612047195, 0.14406245946884155, -0.3266328275203705, 1.5943562984466553, 0.10045627504587173, -0.0742434561252594, 0.1681917905807495, 0.2297476828098297, -0.7365869879722595, -0.6874419450759888, -0.7509005069732666, 0.308557450771331...
func (o *InstallTemplateJobJob) GetType() string { if o == nil { var ret string return ret } return o.Type }
[ 0.2831147611141205, 0.42682507634162903, -0.4004940092563629, 0.8409921526908875, 0.8372994661331177, 0.14261679351329803, 0.6524714827537537, -0.18334345519542694, 0.789811372756958, -0.22257809340953827, -0.1805139183998108, -1.1623859405517578, -1.0827981233596802, -0.025893138721585274...
func (o *InstallTemplateJobJob) GetTypeOk() (*string, bool) { if o == nil { return nil, false } return &o.Type, true }
[ -0.1849508434534073, 0.23403678834438324, 0.6039602160453796, 0.48810648918151855, 0.47065144777297974, 0.6424899697303772, 0.764394998550415, -0.07732708752155304, 0.1089971587061882, 0.946483314037323, -1.3279533386230469, -0.5285196304321289, -0.4014713168144226, 0.29783546924591064, ...
func (o *InstallTemplateJobJob) SetType(v string) { o.Type = v }
[ -0.273904949426651, 0.5137624144554138, -0.32665547728538513, 0.5593087077140808, -0.17001193761825562, -0.0862879604101181, 0.12280435115098953, 0.09542126953601837, 0.1504054218530655, 0.38213834166526794, -0.3855949938297272, -0.27826687693595886, -1.0048937797546387, -0.131410613656044...
func (o *InstallTemplateJobJob) GetProgressPercentage() int32 { if o == nil { var ret int32 return ret } return o.ProgressPercentage }
[ -0.4196781814098358, 0.0024449629709124565, -0.17341220378875732, 0.9299619793891907, 0.013743855059146881, 0.20188479125499725, 0.36799371242523193, -0.5483513474464417, 0.04980308189988136, -0.10400642454624176, -0.12741591036319733, -2.3578383922576904, -1.3500038385391235, -0.270541995...
func (o *InstallTemplateJobJob) GetProgressPercentageOk() (*int32, bool) { if o == nil { return nil, false } return &o.ProgressPercentage, true }
[ -0.3918290436267853, -0.04606444016098976, 0.0819743424654007, 0.8307012915611267, -0.5246071219444275, 0.6573090553283691, 0.9147002100944519, 0.6827842593193054, -0.7168768048286438, 0.785384476184845, -0.3872149586677551, -2.7810800075531006, -0.48582929372787476, 0.475519597530365, -...
func (o *InstallTemplateJobJob) SetProgressPercentage(v int32) { o.ProgressPercentage = v }
[ -0.4214230477809906, -0.25206032395362854, -0.20557238161563873, 0.22083483636379242, -0.7975850701332092, 0.179286390542984, 0.4272173345088959, -0.7808383703231812, -0.7209332585334778, 0.8113746047019958, -0.07044977694749832, -2.4226653575897217, -1.1568788290023804, -0.093461640179157...
func (o *InstallTemplateJobJob) GetState() string { if o == nil { var ret string return ret } return o.State }
[ 0.14414677023887634, 0.12373681366443634, -0.15511994063854218, 0.641262948513031, 0.029240205883979797, 0.03457343950867653, 0.513384997844696, -0.16366499662399292, 0.3475552201271057, -0.6823384165763855, -0.05210842192173004, -0.970129668712616, -0.9074210524559021, -0.0753452256321907...
func (o *InstallTemplateJobJob) GetStateOk() (*string, bool) { if o == nil { return nil, false } return &o.State, true }
[ -0.4552193284034729, 0.12233423441648483, 0.5046800374984741, 0.7674552202224731, -0.6693650484085083, -0.002010809490457177, 0.9330726265907288, 0.020668931305408478, 0.13846400380134583, 0.6850292086601257, -1.508394718170166, -1.0867348909378052, 0.007224574685096741, 0.2729594707489013...
func (o *InstallTemplateJobJob) SetState(v string) { o.State = v }
[ -0.21145088970661163, 0.37813547253608704, 0.017754798755049706, 0.11210920661687851, -0.8132989406585693, -0.013277508318424225, 0.11204115301370621, 0.453991174697876, -0.2532519996166229, -0.03901870921254158, -0.38520562648773193, -0.15716969966888428, -0.9433165788650513, 0.1046050637...
func (o *InstallTemplateJobJob) GetWorkspace() Workspace { if o == nil { var ret Workspace return ret } return o.Workspace }
[ -0.19780462980270386, 0.013095228932797909, -0.08549246937036514, 0.3275550305843353, 0.0552872009575367, -0.24270670115947723, 0.8558434844017029, -0.7432055473327637, 1.2949413061141968, -1.15826416015625, -0.07681059092283249, -0.4735974669456482, -1.0969452857971191, 0.0301026180386543...
func (o *InstallTemplateJobJob) GetWorkspaceOk() (*Workspace, bool) { if o == nil { return nil, false } return &o.Workspace, true }
[ -0.41203147172927856, 0.2883453369140625, 0.410855233669281, 0.5867092609405518, -0.26650160551071167, -0.17869514226913452, 0.9037675857543945, 0.4969918727874756, 0.40283310413360596, 0.2903662919998169, -1.2496496438980103, -0.4576760232448578, -0.4597087502479553, 0.4869764745235443, ...
func (o *InstallTemplateJobJob) SetWorkspace(v Workspace) { o.Workspace = v }
[ -0.8084835410118103, 0.21282552182674408, -0.305949330329895, 0.13539080321788788, -0.4929182827472687, -0.8249510526657104, 0.3213353455066681, -0.740821897983551, 0.6148147583007812, -0.18557536602020264, -0.703580379486084, -0.045568522065877914, -0.7977542281150818, 0.42064929008483887...
func (o *InstallTemplateJobJob) GetTemplate() Template { if o == nil { var ret Template return ret } return o.Template }
[ 0.010971068404614925, 0.49216100573539734, -0.008340618573129177, 0.5246766209602356, 0.20053677260875702, -0.26587873697280884, 0.4468943178653717, 0.1039084941148758, 0.67436283826828, -1.0278503894805908, -0.13459542393684387, -1.7388031482696533, -1.2667218446731567, 0.0028125091921538...
func (o *InstallTemplateJobJob) GetTemplateOk() (*Template, bool) { if o == nil { return nil, false } return &o.Template, true }
[ -0.48593422770500183, 0.49767184257507324, 0.5414673686027527, 0.39320406317710876, -0.28184399008750916, -0.20335093140602112, 0.4597669243812561, 0.6445104479789734, 0.08663496375083923, 0.4564720094203949, -0.9979426264762878, -1.5481042861938477, -0.15712153911590576, 0.351506561040878...
func (o *InstallTemplateJobJob) SetTemplate(v Template) { o.Template = v }
[ -0.7281349897384644, 0.7430621981620789, -0.12202243506908417, 0.5707133412361145, -0.5453866124153137, -0.6036455631256104, -0.2328924983739853, 0.46628931164741516, -0.426226943731308, 0.0028775781393051147, -0.49598419666290283, -1.380113124847412, -1.262814998626709, 0.0354277752339839...
func (o *InstallTemplateJobJob) GetInstalledApplications() map[string]interface{} { if o == nil { var ret map[string]interface{} return ret } return o.InstalledApplications }
[ -0.03446263447403908, -0.7767649292945862, 0.12419214099645615, 0.4981769621372223, 0.11484445631504059, -0.15749377012252808, 0.8125580549240112, 0.31477317214012146, 0.05553964897990227, 0.03579789400100708, -0.8113306760787964, -0.9003709554672241, -1.1680634021759033, 0.886321485042572...
func (o *InstallTemplateJobJob) GetInstalledApplicationsOk() (map[string]interface{}, bool) { if o == nil { return map[string]interface{}{}, false } return o.InstalledApplications, true }
[ 0.024740779772400856, -0.7969717979431152, 0.3640563488006592, -0.23368620872497559, -0.38502976298332214, -0.17221738398075104, 1.3975921869277954, -0.09381154924631119, -0.278277188539505, 1.5270270109176636, -0.8909813165664673, -1.182281255722046, -0.5843124985694885, 0.737886309623718...
func (o *InstallTemplateJobJob) SetInstalledApplications(v map[string]interface{}) { o.InstalledApplications = v }
[ -0.3840382695198059, -1.1907730102539062, -0.042071860283613205, 0.018443012610077858, -0.4009976387023926, 0.10689189285039902, 0.6327501535415649, 0.30723094940185547, -0.21731524169445038, 0.5346216559410095, -0.705411434173584, -1.0105160474777222, -0.7376813292503357, 0.91376942396163...
func (o *InstallTemplateJobJob) GetGroup() Workspace { if o == nil { var ret Workspace return ret } return o.Group }
[ -0.12237527221441269, 0.7824322581291199, -0.3897615373134613, 0.36753976345062256, 0.19400203227996826, 0.25418341159820557, 0.9020662903785706, -0.8502284288406372, 0.5300318598747253, -0.890526533126831, 0.10791010409593582, -0.32937946915626526, -0.7980138063430786, 0.5129168033599854,...
func (o *InstallTemplateJobJob) GetGroupOk() (*Workspace, bool) { if o == nil { return nil, false } return &o.Group, true }
[ -0.3478877544403076, 0.4576154947280884, 0.41443687677383423, 0.5852066278457642, 0.07498101890087128, 0.43717294931411743, 0.8824315071105957, -0.046711891889572144, -0.5811388492584229, 0.5140331983566284, -0.9162073135375977, -0.6015802025794983, -0.22999398410320282, 0.6076722145080566...
func (o *InstallTemplateJobJob) SetGroup(v Workspace) { o.Group = v }
[ -0.6458977460861206, 1.024669885635376, -0.5959092378616333, 0.2295714169740677, -0.46715593338012695, -0.09652738273143768, 0.21683362126350403, -0.3475547432899475, -0.212652787566185, -0.037072040140628815, -0.28126025199890137, -0.04897132143378258, -0.36215269565582275, 0.804779529571...
func NewClient(debug int, tip func(category string, level int, msg ...string)) *Client { var cookiejarOptions = cookiejar.Options{ PublicSuffixList: publicsuffix.List, } var jar, _ = cookiejar.New(&cookiejarOptions) return &Client{ tip: tip, debug: debug, client: http.Client{ Jar: jar, ...
[ -0.290459543466568, -0.5173149704933167, 0.35193508863449097, 0.3781627118587494, -0.7204073071479797, 0.049757219851017, 0.7620285153388977, -0.5182327628135681, -0.5465287566184998, 0.3464824855327606, -0.15425845980644226, 0.6874987483024597, -0.07642688602209091, 0.04763570800423622, ...
func NewTimerStack(popEventHandler Handler) *TimerStack { return &TimerStack{stack: []*event{}, popEventHandler: popEventHandler} }
[ 0.09811065346002579, 0.4349040389060974, 0.10041458159685135, 0.31836605072021484, -0.7921064496040344, -0.0991961732506752, -0.18693196773529053, -0.7584390044212341, -0.22559331357479095, 0.05051484704017639, -1.2875113487243652, 0.05402552708983421, -0.7512421607971191, 0.50247699022293...
func (p printHandler) PopEvent(eventID string, elapsed time.Duration) { fmt.Printf("[%s] %v\n", eventID, elapsed) }
[ 0.5839401483535767, -1.0742018222808838, 0.5764598250389099, -0.7034139633178711, -0.28173771500587463, 1.2600897550582886, -0.8027440309524536, 0.5872291922569275, -0.5087661147117615, 0.7369168996810913, -0.42666786909103394, 1.3256913423538208, 0.012080779299139977, 0.4911782145500183, ...
func NewPrintTimerStack() *TimerStack { return NewTimerStack(printHandler{}) }
[ -0.2568429410457611, -0.20430734753608704, 0.25124433636665344, 0.3090066611766815, -0.9710966348648071, -0.23261034488677979, -0.23956184089183807, -0.8644459843635559, 0.04969806224107742, -0.1831490844488144, -0.388550728559494, 0.16639621555805206, -0.6285466551780701, 0.08662016689777...
func (p *TimerStack) Push(eventName string) { p.stack = append(p.stack, &event{eventName, time.Now()}) }
[ -0.17531102895736694, 0.9977278113365173, 0.39805251359939575, 0.03043973073363304, -0.09877897799015045, 0.6139482259750366, -0.10482779890298843, -0.34767118096351624, -0.3979513347148895, 0.9304932951927185, -0.9472630023956299, 0.5652443170547485, -0.4941675066947937, 0.957809031009674...
func (p *TimerStack) Pop() { lastIndex := len(p.stack) - 1 popped := p.stack[lastIndex] p.stack = p.stack[:lastIndex] elapsed := time.Since(popped.start) p.popEventHandler.PopEvent(popped.eventName, elapsed) }
[ -0.4199790358543396, 0.9652615785598755, 0.5111513733863831, -0.07876554876565933, 0.15976649522781372, 0.29579734802246094, 0.24159713089466095, -0.0017458867514505982, -0.6713539958000183, 1.568738579750061, -0.4433188736438751, -0.21740685403347015, -0.6567730903625488, 0.36628073453903...
func (v view) RenderStructureTo(s model.Structure, w io.Writer) error { out := v.render(s) _, err := w.Write([]byte(out)) return err }
[ -0.594565212726593, 0.034743305295705795, 0.24367916584014893, -0.7862952947616577, -0.23340503871440887, -0.08387689292430878, 0.8370795249938965, -0.03210121765732765, -0.036124713718891144, -0.4151017367839813, -0.9795858860015869, 0.12081798166036606, 0.23777234554290771, -0.3632962405...
func (key *GPGKey) BeforeInsert() { key.AddedUnix = timeutil.TimeStampNow() }
[ -0.04677721485495567, 0.6928121447563171, 0.2976003587245941, -0.8179880380630493, 0.3769029974937439, -0.2527705729007721, -0.6001880168914795, -0.046412281692028046, -0.8178918361663818, -0.21191905438899994, -0.708958625793457, -0.33136844635009766, -0.8691693544387817, 0.63663333654403...
func (key *GPGKey) AfterLoad(session *xorm.Session) { err := session.Where("primary_key_id=?", key.KeyID).Find(&key.SubsKey) if err != nil { log.Error("Find Sub GPGkeys[%s]: %v", key.KeyID, err) } }
[ 0.16230444610118866, 0.0657477006316185, 0.5569829344749451, -0.653177797794342, -0.7543227076530457, 0.29530078172683716, -0.03909909725189209, -0.7711162567138672, -0.47634389996528625, 0.5311247706413269, -0.2514629662036896, 0.2849334180355072, -0.2644359767436981, -0.4130195081233978,...
func (key *GPGKey) PaddedKeyID() string { return PaddedKeyID(key.KeyID) }
[ 0.4711304008960724, -0.371451199054718, 0.23513354361057281, -0.3249378800392151, -1.0097463130950928, 1.2340385913848877, -0.7039074301719666, -0.35569414496421814, 0.2276243418455124, 0.5956318378448486, -0.34442657232284546, 0.7874770760536194, -1.0065256357192993, 1.3958953619003296, ...
func PaddedKeyID(keyID string) string { if len(keyID) > 15 { return keyID } zeros := "0000000000000000" return zeros[0:16-len(keyID)] + keyID }
[ 0.5193262696266174, 0.2876715362071991, 0.44020214676856995, -0.9059246182441711, -0.09906991571187973, 0.9229897260665894, -0.5249285697937012, -0.772292971611023, 0.6960470676422119, 0.5573906302452087, -0.24753646552562714, 0.6016260981559753, -0.9367204308509827, 0.9242280721664429, ...