text
stringlengths
11
6.3k
embedding
listlengths
768
768
func NewGetProductsCodeParamsWithTimeout(timeout time.Duration) *GetProductsCodeParams { var ( withAttributeOptionsDefault = bool(false) withQualityScoresDefault = bool(false) ) return &GetProductsCodeParams{ WithAttributeOptions: &withAttributeOptionsDefault, WithQualityScores: &withQualityScoresDefau...
[ 0.34717249870300293, -0.45151105523109436, 0.4039033055305481, 0.05734260752797127, -0.003782625775784254, 0.04398006945848465, -0.8212574124336243, -0.35607239603996277, -0.043954379856586456, 1.173553705215454, -0.5489453673362732, 0.7879080772399902, -0.10644061118364334, 0.880801022052...
func NewGetProductsCodeParamsWithContext(ctx context.Context) *GetProductsCodeParams { var ( withAttributeOptionsDefault = bool(false) withQualityScoresDefault = bool(false) ) return &GetProductsCodeParams{ WithAttributeOptions: &withAttributeOptionsDefault, WithQualityScores: &withQualityScoresDefault...
[ -0.01995059661567211, -0.3406672775745392, 0.662168562412262, -0.09894126653671265, 0.2817871570587158, 0.1616644710302353, -0.5410688519477844, -0.9536390900611877, 0.14108723402023315, 0.9116482734680176, -0.3983286917209625, 0.5447494983673096, -0.27654269337654114, 0.46694067120552063,...
func NewGetProductsCodeParamsWithHTTPClient(client *http.Client) *GetProductsCodeParams { var ( withAttributeOptionsDefault = bool(false) withQualityScoresDefault = bool(false) ) return &GetProductsCodeParams{ WithAttributeOptions: &withAttributeOptionsDefault, WithQualityScores: &withQualityScoresDefa...
[ 0.16206671297550201, -0.44413188099861145, 0.5114201307296753, -0.11581838876008987, 0.4613892138004303, 0.2743592858314514, 0.3720943033695221, -0.21596407890319824, -0.31057217717170715, 0.15341509878635406, -0.9167047142982483, 0.5446037650108337, -0.20693397521972656, 0.432246327400207...
func (o *GetProductsCodeParams) WithTimeout(timeout time.Duration) *GetProductsCodeParams { o.SetTimeout(timeout) return o }
[ 0.19557508826255798, -0.15949054062366486, 0.28032544255256653, 0.06623510271310806, 0.2063748687505722, -0.4697703719139099, -0.2726069986820221, -0.23009417951107025, 0.17870166897773743, 1.1410753726959229, -0.15734900534152985, 0.8847758173942566, 0.6251280903816223, 0.4638142585754394...
func (o *GetProductsCodeParams) SetTimeout(timeout time.Duration) { o.timeout = timeout }
[ -0.0465591624379158, 0.09106406569480896, 0.22335508465766907, 0.09706705808639526, 0.8010088205337524, -0.33146363496780396, -0.04680309072136879, 0.20015275478363037, -0.23038741946220398, 1.1564960479736328, 0.08842933177947998, 1.3858556747436523, 0.11508262157440186, 0.601311683654785...
func (o *GetProductsCodeParams) WithContext(ctx context.Context) *GetProductsCodeParams { o.SetContext(ctx) return o }
[ -0.33765897154808044, -0.11420571804046631, 0.5221962928771973, -0.08551446348428726, 0.15274353325366974, -0.33147257566452026, -0.3615292012691498, -0.9381615519523621, 0.451723575592041, 0.4912426769733429, -0.19829273223876953, 0.8265244364738464, -0.011082717217504978, -0.006702711340...
func (o *GetProductsCodeParams) SetContext(ctx context.Context) { o.Context = ctx }
[ -0.5903996825218201, 0.1847151517868042, 0.41430166363716125, 0.1836579144001007, 0.8930696845054626, -0.2861757278442383, 0.08418820053339005, -0.4047282934188843, 0.5501861572265625, 0.6566559672355652, -0.11808168888092041, 1.3557883501052856, -0.3513171076774597, 0.19304321706295013, ...
func (o *GetProductsCodeParams) WithHTTPClient(client *http.Client) *GetProductsCodeParams { o.SetHTTPClient(client) return o }
[ 0.022644205018877983, -0.6468703150749207, 0.34860095381736755, -0.28263309597969055, 0.4024319350719452, -0.5093464255332947, 0.2839117646217346, -0.7445387840270996, -0.17498286068439484, 0.17491514980793, -0.3610236346721649, 0.5282242298126221, 0.6509343981742859, 0.024408195167779922,...
func (o *GetProductsCodeParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client }
[ 0.23055611550807953, -0.44479987025260925, 0.3114447295665741, -0.6200557351112366, 0.21714212000370026, -0.6356843113899231, 0.4146648645401001, -0.46700242161750793, -0.6099353432655334, 0.3073171079158783, -0.4243309795856476, 1.2685829401016235, 0.08204499632120132, -0.2026489675045013...
func (o *GetProductsCodeParams) WithCode(code string) *GetProductsCodeParams { o.SetCode(code) return o }
[ -0.5808408260345459, 0.07448101043701172, 0.20401296019554138, 0.17719866335391998, 0.6996507048606873, -0.3511083424091339, 0.053664401173591614, -0.7046353220939636, 0.16943864524364471, 0.7778300046920776, 0.3831465244293213, 0.1699341982603073, 0.5126652717590332, 0.29377856850624084, ...
func (o *GetProductsCodeParams) SetCode(code string) { o.Code = code }
[ -0.7668991088867188, -0.001153746503405273, 0.20638374984264374, 0.4557516276836395, 0.8141380548477173, -0.5567108392715454, 0.3000582754611969, -0.02451518550515175, 0.012313558720052242, 0.8580247163772583, 0.39519667625427246, 0.6376202702522278, 0.1890062689781189, 0.5139444470405579,...
func (o *GetProductsCodeParams) WithWithAttributeOptions(withAttributeOptions *bool) *GetProductsCodeParams { o.SetWithAttributeOptions(withAttributeOptions) return o }
[ 0.8592138290405273, -0.941788375377655, 0.39778655767440796, -0.3956626057624817, 0.11076638102531433, -1.0921015739440918, 0.4132228195667267, -1.3304853439331055, 0.17397549748420715, 0.6451108455657959, -0.4470944404602051, -0.14985623955726624, 0.7702284455299377, 0.5583610534667969, ...
func (o *GetProductsCodeParams) SetWithAttributeOptions(withAttributeOptions *bool) { o.WithAttributeOptions = withAttributeOptions }
[ 0.633870542049408, -1.0040531158447266, 0.3898355960845947, -0.7111696600914001, 0.08701370656490326, -1.0711182355880737, 0.7630216479301453, -1.4491000175476074, -0.08131678402423859, 0.963150143623352, -0.5220555067062378, 0.22484585642814636, 0.7187731266021729, 0.7728826403617859, -...
func (o *GetProductsCodeParams) WithWithQualityScores(withQualityScores *bool) *GetProductsCodeParams { o.SetWithQualityScores(withQualityScores) return o }
[ 0.42412063479423523, -0.3771425187587738, 0.4256552457809448, -0.09445820748806, 0.5902946591377258, -1.1726188659667969, -0.5244737267494202, -0.9045591950416565, 0.20451979339122772, 0.4984678626060486, -0.15447433292865753, -0.36137568950653076, 0.3331319987773895, 0.36768171191215515, ...
func (o *GetProductsCodeParams) SetWithQualityScores(withQualityScores *bool) { o.WithQualityScores = withQualityScores }
[ -0.06095556542277336, -0.45103365182876587, 0.4164527654647827, -0.30910196900367737, 0.9759407043457031, -1.0588726997375488, -0.44898566603660583, -1.0272421836853027, -0.15327362716197968, 0.6662251353263855, -0.3498367667198181, 0.1708194613456726, 0.21972808241844177, 0.63136130571365...
func (o *GetProductsCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error // path param code if err := r.SetPathParam("code", o.Code); err != nil { return err } if o.WithAttributeOptions != nil { // ...
[ -0.8830700516700745, -0.4442272484302521, 0.9746106863021851, -0.9535553455352783, 0.7453893423080444, -0.45024600625038147, 0.9055354595184326, -0.7664991617202759, -0.10204842686653137, 0.3206779360771179, 0.07448899745941162, 0.35209524631500244, -0.18116962909698486, 0.4611009061336517...
func NewEstimatorBuilder(name string, limiter EstimationLimiter, orderer EstimationPodOrderer, estimationAnalyserFunc EstimationAnalyserFunc) (EstimatorBuilder, error) { switch name { case BinpackingEstimatorName: return func( predicateChecker predicatechecker.PredicateChecker, clusterSnapshot clustersnapshot...
[ -0.7103362679481506, -0.5625036954879761, 0.43828845024108887, 1.0219781398773193, -0.5528973340988159, -0.3974079489707947, -0.27873367071151733, 0.5834055542945862, 0.7180547714233398, 0.16786658763885498, 0.16523393988609314, 0.21647731959819794, -0.1834280639886856, 0.5760095119476318,...
func ReachableFromPackages(pkgs ...string) (*API, error) { return reachableFromPackages(false, pkgs...) }
[ -1.0986393690109253, 0.0016424513887614012, 0.2703548073768616, 0.9534923434257507, -1.0732085704803467, 0.7160165905952454, -0.3581240475177765, -0.5059534907341003, 0.34908434748649597, 0.21538938581943512, -0.27925005555152893, -1.3327951431274414, -0.5591048002243042, -0.17600172758102...
func (e errChunkIterator) AtHistogram() (int64, *histogram.Histogram) { panic("not implemented") }
[ -0.5004968047142029, -0.02298835478723049, 0.5478516817092896, 0.02317676693201065, 0.010895637795329094, -1.0791724920272827, 0.7510238289833069, -0.14559967815876007, 0.36847060918807983, 0.21544280648231506, -0.34836769104003906, 0.9702642560005188, 0.30429038405418396, 0.21888190507888...
func (_m *MockDefaultPlcConnectionCloseResult) GetConnection() plc4go.PlcConnection { ret := _m.Called() var r0 plc4go.PlcConnection if rf, ok := ret.Get(0).(func() plc4go.PlcConnection); ok { r0 = rf() } else { if ret.Get(0) != nil { r0 = ret.Get(0).(plc4go.PlcConnection) } } return r0 }
[ -0.34810101985931396, -0.03366757929325104, 0.4273654520511627, 0.10904204845428467, 0.8551963567733765, -0.6257234811782837, 1.376580834388733, 0.4306833744049072, 0.1923149973154068, -0.4330023229122162, -0.10068292915821075, -0.616541862487793, -0.5327889323234558, 0.15168879926204681, ...
func (_e *MockDefaultPlcConnectionCloseResult_Expecter) GetConnection() *MockDefaultPlcConnectionCloseResult_GetConnection_Call { return &MockDefaultPlcConnectionCloseResult_GetConnection_Call{Call: _e.mock.On("GetConnection")} }
[ 0.05338664725422859, 0.341854989528656, 0.6698718667030334, 0.07430049777030945, 0.7884186506271362, -0.30130431056022644, 0.5799064040184021, -0.058183468878269196, 0.009644461795687675, 0.3755822777748108, 0.01557090599089861, -0.6782798171043396, -0.7184520363807678, 0.3158818781375885,...
func (_m *MockDefaultPlcConnectionCloseResult) GetErr() error { ret := _m.Called() var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() } else { r0 = ret.Error(0) } return r0 }
[ -0.0742570161819458, 0.2577040195465088, 0.4278731942176819, 0.8606618046760559, 0.7447463870048523, -0.2184375524520874, 0.8551942110061646, 0.7460805773735046, -0.39431920647621155, -0.6899581551551819, 0.18374265730381012, 0.15086598694324493, -0.39484840631484985, 0.5660718083381653, ...
func (_e *MockDefaultPlcConnectionCloseResult_Expecter) GetErr() *MockDefaultPlcConnectionCloseResult_GetErr_Call { return &MockDefaultPlcConnectionCloseResult_GetErr_Call{Call: _e.mock.On("GetErr")} }
[ 0.4150627553462982, 0.26726096868515015, 0.6795318722724915, 0.1786564588546753, 0.579818844795227, -0.005246598739176989, 0.07933831214904785, 0.22748683393001556, -0.04136767238378525, -0.28361961245536804, 0.30990535020828247, -0.20693548023700714, -0.8387956619262695, 0.467057704925537...
func (_m *MockDefaultPlcConnectionCloseResult) GetTraces() []tracer.TraceEntry { ret := _m.Called() var r0 []tracer.TraceEntry if rf, ok := ret.Get(0).(func() []tracer.TraceEntry); ok { r0 = rf() } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]tracer.TraceEntry) } } return r0 }
[ 0.6837353706359863, 0.5329028964042664, 0.6091580986976624, 0.5073648691177368, 1.559327483177185, -0.2582293450832367, 1.3766192197799683, -0.04493168368935585, 0.7966763973236084, -0.4380914866924286, -0.185302272439003, 0.187782421708107, -0.3381669819355011, 0.9345723390579224, -0.35...
func (_e *MockDefaultPlcConnectionCloseResult_Expecter) GetTraces() *MockDefaultPlcConnectionCloseResult_GetTraces_Call { return &MockDefaultPlcConnectionCloseResult_GetTraces_Call{Call: _e.mock.On("GetTraces")} }
[ 1.0153521299362183, 0.9611868858337402, 0.8141679167747498, -0.2864537835121155, 1.0533452033996582, 0.15714095532894135, 0.08854847401380539, -0.5632592439651489, 0.7345765233039856, -0.20122992992401123, -0.13224588334560394, -0.12758976221084595, -0.6791291236877441, 0.6171817779541016,...
func (_m *MockDefaultPlcConnectionCloseResult) String() string { ret := _m.Called() var r0 string if rf, ok := ret.Get(0).(func() string); ok { r0 = rf() } else { r0 = ret.Get(0).(string) } return r0 }
[ -0.5161958932876587, -0.2816880941390991, 0.06491631269454956, -0.04466499760746956, 0.03825629502534866, -0.11778147518634796, 1.2818714380264282, 0.026721294969320297, -0.20249776542186737, -0.1810113936662674, 0.060838378965854645, 0.20966266095638275, -0.5687891244888306, -0.1684622019...
func (_e *MockDefaultPlcConnectionCloseResult_Expecter) String() *MockDefaultPlcConnectionCloseResult_String_Call { return &MockDefaultPlcConnectionCloseResult_String_Call{Call: _e.mock.On("String")} }
[ 0.15933525562286377, -0.105309396982193, 0.2636566758155823, -0.7256046533584595, -0.28568410873413086, 0.5736008286476135, 0.20020952820777893, -0.6171137094497681, -0.2251828908920288, -0.0023343253415077925, -0.055918172001838684, -0.39463427662849426, -1.089469075202942, 0.009557116776...
func NewMockDefaultPlcConnectionCloseResult(t interface { mock.TestingT Cleanup(func()) }) *MockDefaultPlcConnectionCloseResult { mock := &MockDefaultPlcConnectionCloseResult{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }
[ -0.6115541458129883, 0.177761971950531, 0.12621131539344788, -0.31484454870224, 0.5764662027359009, 0.14547763764858246, 0.5771101713180542, -0.01841927506029606, 0.10758349299430847, -0.6646382212638855, -0.28560152649879456, -1.25432288646698, -0.8799250721931458, 0.2896210849285126, -...
func NewMux() EventMux { return &defaultMux{ consumers: map[string][]*Consumer{}, mu: sync.RWMutex{}, } }
[ 0.0497727170586586, -0.21858792006969452, 0.5572811365127563, 0.7720282077789307, -0.2599722146987915, -0.5131708383560181, -0.9012172818183899, 0.6090640425682068, 0.40885356068611145, -0.4049525558948517, -0.13113334774971008, 1.1234229803085327, -0.6463393568992615, 0.2370912879705429, ...
func (p *KeyVaultClientGetDeletedKeysPager) Err() error { return p.err }
[ 0.42778608202934265, -0.23408928513526917, 0.07654431462287903, 1.1117308139801025, -0.6942284107208252, 0.7455635666847229, -0.456686407327652, 0.22372539341449738, 0.23258906602859497, -0.45407623052597046, 0.3600863814353943, 1.2061569690704346, -0.49510809779167175, 1.1392911672592163,...
func (p *KeyVaultClientGetDeletedKeysPager) NextPage(ctx context.Context) bool { var req *policy.Request var err error if !reflect.ValueOf(p.current).IsZero() { if p.current.DeletedKeyListResult.NextLink == nil || len(*p.current.DeletedKeyListResult.NextLink) == 0 { return false } req, err = p.advancer(ctx,...
[ -0.6519866585731506, 0.5316770076751709, 0.8370159268379211, 0.17097988724708557, -0.7539826035499573, 0.5306175947189331, -0.18454594910144806, -0.2630636394023895, 0.017223188653588295, 0.2768227159976959, 0.7235740423202515, -0.049904581159353256, -1.6902551651000977, 1.126929759979248,...
func (p *KeyVaultClientGetDeletedKeysPager) PageResponse() KeyVaultClientGetDeletedKeysResponse { return p.current }
[ 0.32391488552093506, -0.9897792339324951, 0.22790655493736267, -0.2177862524986267, -0.23529885709285736, -0.10511063039302826, -0.4683848023414612, -0.33252406120300293, 0.6819087266921997, 0.8651315569877625, 0.5086064338684082, 0.18897971510887146, -1.6951377391815186, 0.589215934276580...
func (p *KeyVaultClientGetKeyVersionsPager) Err() error { return p.err }
[ 0.24553486704826355, -0.09950583428144455, -0.18670760095119476, 1.5687100887298584, -0.8149555325508118, 1.096612811088562, -0.5852773785591125, -0.055131882429122925, -0.21847552061080933, 0.2739054262638092, -0.05520410090684891, 0.4667779505252838, -0.38067537546157837, 1.1945263147354...
func (p *KeyVaultClientGetKeyVersionsPager) NextPage(ctx context.Context) bool { var req *policy.Request var err error if !reflect.ValueOf(p.current).IsZero() { if p.current.KeyListResult.NextLink == nil || len(*p.current.KeyListResult.NextLink) == 0 { return false } req, err = p.advancer(ctx, p.current) }...
[ -0.6437926292419434, 0.568455696105957, 0.8517813086509705, 0.4070395827293396, -0.7831495404243469, 0.9014161825180054, -0.11750373244285583, -0.4282746911048889, -0.33431190252304077, 0.7415683269500732, 0.47208845615386963, -0.24034443497657776, -1.5237034559249878, 1.061295509338379, ...
func (p *KeyVaultClientGetKeyVersionsPager) PageResponse() KeyVaultClientGetKeyVersionsResponse { return p.current }
[ 0.666290283203125, -0.9998074769973755, 0.07664202898740768, 0.30497226119041443, 0.07757188379764557, 0.17391832172870636, -0.45320844650268555, -0.9384427070617676, 0.33184418082237244, 1.452675461769104, 0.3942314088344574, -0.25237560272216797, -1.173582911491394, 0.41500577330589294, ...
func (p *KeyVaultClientGetKeysPager) Err() error { return p.err }
[ 0.22460202872753143, -0.13306309282779694, -0.04152371361851692, 1.3151434659957886, -0.7474554777145386, 0.7857990264892578, -0.634476900100708, -0.12452062964439392, -0.3394170105457306, -0.4230237901210785, 0.027097254991531372, 0.5463213324546814, -0.5008164644241333, 0.957548558712005...
func (p *KeyVaultClientGetKeysPager) NextPage(ctx context.Context) bool { var req *policy.Request var err error if !reflect.ValueOf(p.current).IsZero() { if p.current.KeyListResult.NextLink == nil || len(*p.current.KeyListResult.NextLink) == 0 { return false } req, err = p.advancer(ctx, p.current) } else {...
[ -0.7962628602981567, 0.5990925431251526, 0.8524319529533386, 0.12621623277664185, -0.5994958877563477, 0.6304810643196106, -0.1597331464290619, -0.5002609491348267, -0.42917707562446594, 0.2673647403717041, 0.5724092721939087, -0.4818113446235657, -1.6006518602371216, 0.9161291122436523, ...
func (p *KeyVaultClientGetKeysPager) PageResponse() KeyVaultClientGetKeysResponse { return p.current }
[ 0.513069748878479, -1.0923484563827515, 0.17688554525375366, -0.2873411178588867, 0.2173924744129181, -0.23826174437999725, -0.35921239852905273, -0.7755367755889893, 0.23922134935855865, 1.0702651739120483, 0.5682446360588074, -0.4128554165363312, -1.639678716659546, 0.08892040699720383, ...
func (p *RoleAssignmentsClientListForScopePager) Err() error { return p.err }
[ -0.6767441034317017, -0.5151939988136292, -0.06290768086910248, -0.15703323483467102, -0.8537379503250122, 0.617953896522522, 0.39196547865867615, 0.42844653129577637, 0.5818299651145935, 0.2633173167705536, 1.5918606519699097, -0.14092589914798737, 0.17903821170330048, 1.4289207458496094,...
func (p *RoleAssignmentsClientListForScopePager) NextPage(ctx context.Context) bool { var req *policy.Request var err error if !reflect.ValueOf(p.current).IsZero() { if p.current.RoleAssignmentListResult.NextLink == nil || len(*p.current.RoleAssignmentListResult.NextLink) == 0 { return false } req, err = p....
[ -1.2349838018417358, 0.1709551066160202, 0.7179813981056213, -0.7103109955787659, -0.46810242533683777, 0.3149016797542572, 0.54783695936203, 0.05423342064023018, 0.10463431477546692, 0.7526781558990479, 1.3640304803848267, -0.44406384229660034, -1.1253398656845093, 1.0102311372756958, 0...
func (p *RoleAssignmentsClientListForScopePager) PageResponse() RoleAssignmentsClientListForScopeResponse { return p.current }
[ -0.6067324280738831, -1.602248191833496, 0.02499614655971527, -1.4424951076507568, 0.10870816558599472, -0.5227839350700378, 0.44119641184806824, -0.42418617010116577, 1.232179045677185, 1.2322206497192383, 1.4102389812469482, -0.20436710119247437, -0.7761526107788086, 0.4045204520225525, ...
func (p *RoleDefinitionsClientListPager) Err() error { return p.err }
[ 0.38967373967170715, -0.16734983026981354, -0.10095299035310745, -0.05619123578071594, -0.34399548172950745, 0.829655110836029, -0.18848676979541779, 0.2228669822216034, 0.32255786657333374, -0.19011494517326355, 0.853503406047821, 0.0474221371114254, 0.19695192575454712, 1.598780512809753...
func (p *RoleDefinitionsClientListPager) NextPage(ctx context.Context) bool { var req *policy.Request var err error if !reflect.ValueOf(p.current).IsZero() { if p.current.RoleDefinitionListResult.NextLink == nil || len(*p.current.RoleDefinitionListResult.NextLink) == 0 { return false } req, err = p.advancer...
[ -0.4883905351161957, 0.37181028723716736, 0.7215060591697693, -0.5310825109481812, -0.02485812082886696, 0.4205789864063263, 0.026634156703948975, 0.054948050528764725, -0.031545206904411316, 0.2823021411895752, 0.9463919997215271, -0.2827796936035156, -1.0485295057296753, 1.08510649204254...
func (p *RoleDefinitionsClientListPager) PageResponse() RoleDefinitionsClientListResponse { return p.current }
[ 0.4140380620956421, -1.194915771484375, 0.07337861508131027, -1.1895304918289185, 0.5175009965896606, -0.3630398213863373, -0.05076666921377182, -0.33410435914993286, 0.9027270674705505, 0.9599296450614929, 0.8010721206665039, 0.01583906263113022, -0.5942303538322449, 0.6336617469787598, ...
func Init(ctx context.Context, wg *sync.WaitGroup, store *configstore.Store) error { cfg, err := utask.Config(store) if err != nil { return err } // get all configuration items itemList, err := store.GetItemList() if err != nil { return err } // Squash to ensure that secrets with lower priority // are dism...
[ -0.6568399667739868, 0.010557890869677067, 0.776934027671814, -0.1353544145822525, -0.17880818247795105, -0.1622486710548401, 0.008754471316933632, 0.4020274579524994, -0.7026137113571167, 0.8733252882957458, -0.16165278851985931, -0.4861454367637634, 1.0862454175949097, 0.2040314525365829...
func filteredConfig(list *configstore.ItemList, dropAlias ...string) (map[string]*string, error) { cfg := make(map[string]*string) for _, i := range list.Items { if !utils.ListContainsString(dropAlias, i.Key()) { // assume only one value per alias if _, ok := cfg[i.Key()]; !ok { v, err := i.Value() if...
[ -0.5140988826751709, -0.1534891426563263, 0.6413334012031555, -0.5756895542144775, -0.905525267124176, 0.03771812468767166, -0.5378063917160034, 0.7432305812835693, -0.3793203830718994, 1.0451947450637817, -1.1020504236221313, -0.45418521761894226, 0.8198392391204834, 0.6286779046058655, ...
func GetEngine() Engine { return eng }
[ 0.9358219504356384, 0.32239168882369995, 0.1650097668170929, 0.6360546946525574, 0.7125321626663208, 0.23585155606269836, 0.19288407266139984, 0.0003152837452944368, -0.621441662311554, -0.7204793691635132, 0.28880488872528076, 0.3689298629760742, -0.38713693618774414, 0.09837820380926132,...
func (e Engine) Resolve(publicID string, sm *semaphore.Weighted) error { _, err := e.launchResolution(publicID, true, sm) return err }
[ 0.38850685954093933, -0.04368141293525696, 0.44696903228759766, 0.680343747138977, 0.4229872226715088, -0.08049049228429794, -1.0492545366287231, 0.45775100588798523, -0.26789647340774536, 0.16992859542369843, -0.11204132437705994, -0.06753772497177124, -0.9059941172599792, 1.1647549867630...
func (e Engine) SyncResolve(publicID string, sm *semaphore.Weighted) (*resolution.Resolution, error) { return e.launchResolution(publicID, false, sm) }
[ 0.5490629076957703, 0.21195901930332184, 0.3411577045917511, 1.012742042541504, -0.16724048554897308, -0.5933458805084229, -0.9938222169876099, -0.08333258330821991, -0.22815446555614471, 0.5079203248023987, -0.6878359913825989, 0.4355875849723816, -0.1987006813287735, 0.5266067385673523, ...
func computeDelayMinutesLinear(d time.Duration, rc int) time.Duration { ret := time.Duration((float64(1.6) * float64(rc)) * float64(d)) if ret >= maxMinutes { ret = maxMinutes } return ret }
[ 0.18990632891654968, 0.37679556012153625, 0.4526780843734741, -1.0686185359954834, -0.9938194155693054, 0.29603826999664307, -0.7919058203697205, -0.5238803625106812, 0.9237985610961914, 0.6471706628799438, 0.06731607764959335, 0.08737307041883469, 0.43794962763786316, -0.3213391900062561,...
func computeDelayHoursLinear(d time.Duration, rc int) time.Duration { rc-- ret := d + (time.Duration(rc) * 10 * time.Minute) if ret >= maxHours { ret = maxHours } return ret }
[ 0.2124815434217453, 0.8690482974052429, 0.7941465377807617, -0.6502180695533752, -1.1093816757202148, 0.18316595256328583, -0.7016735672950745, 0.12223891913890839, -0.34585240483283997, 0.5477252006530762, -0.14902685582637787, -0.3935464024543762, 0.40976229310035706, -0.7176034450531006...
func computeDelaySecondsExponential(d time.Duration, rc int) time.Duration { return expBackoff.ForAttempt(float64(rc)) }
[ 0.4038466215133667, 0.8908759951591492, 0.4461020231246948, -0.30142977833747864, -1.1397625207901, -0.08054458349943161, -0.5545942783355713, 0.006929493043571711, 0.08611539006233215, 0.6531659960746765, 0.19465090334415436, -0.16956879198551178, 0.719756007194519, -0.650458812713623, ...
func NewClient(kubeconfig []byte) (Client, error) { c, err := NewClientset(kubeconfig) if err != nil { return nil, fmt.Errorf("failed creating kubernetes clientset: %w", err) } return &client{c}, nil }
[ 0.7945031523704529, -0.35683882236480713, 0.25948426127433777, -0.23018263280391693, -0.7165683507919312, 0.23793916404247284, -0.20597074925899506, -1.441100835800171, -0.08575098216533661, 0.2681504189968109, 0.09471768885850906, 0.31102874875068665, -0.6744508147239685, -0.5146803259849...
func (c *client) PingWait() error { return wait.PollImmediate(PollInterval, RetryTimeout, c.Ping) }
[ -0.08512618392705917, 0.24035385251045227, 0.2234734296798706, 0.17455430328845978, 0.43123432993888855, 1.1283628940582275, -0.48482319712638855, 0.018683433532714844, -0.27507302165031433, 0.5137441754341125, 0.09987357258796692, -0.05170196667313576, -0.9587841629981995, -0.562237262725...
func (c *client) Ping() (bool, error) { if _, err := c.RbacV1().Roles("").List(metav1.ListOptions{}); err != nil { return false, nil } if _, err := c.AppsV1().Deployments("").List(metav1.ListOptions{}); err != nil { return false, nil } if _, err := c.PolicyV1beta1().PodSecurityPolicies().List(metav1.ListOpti...
[ -0.442345529794693, -0.21351981163024902, 0.6780600547790527, 0.2316555678844452, 0.7801387310028076, 0.9904596209526062, -0.3842106759548187, -0.25127434730529785, -0.14359666407108307, 0.7941768169403076, 0.2957027852535248, -0.4337356388568878, -1.0846738815307617, 0.3814797103404999, ...
func (c *client) CheckNodeExists(name string) func() (bool, error) { return func() (bool, error) { _, err := c.CoreV1().Nodes().Get(name, metav1.GetOptions{}) if err == nil { return true, nil } if errors.IsNotFound(err) { return false, nil } return false, err } }
[ -1.1154041290283203, -0.42214682698249817, 0.7117226123809814, -0.7062584161758423, 0.8557470440864563, 0.07760217040777206, -0.5663360357284546, -0.638921320438385, 0.12828338146209717, 1.2734862565994263, -0.5501194000244141, 0.41815438866615295, -0.4986312687397003, -0.08662856370210648...
func (c *client) WaitForNode(name string) error { return wait.PollImmediate(PollInterval, RetryTimeout, c.CheckNodeExists(name)) }
[ -0.12147724628448486, 0.3622455894947052, 0.12929391860961914, -0.9962677359580994, -0.24011558294296265, 0.14379508793354034, -0.48773834109306335, -0.3143329918384552, -0.6436022520065308, 0.4500061869621277, -0.03992903605103493, 0.0006091949762776494, -0.007396695204079151, -0.29584631...
func (c *client) LabelNode(name string, labels map[string]string) error { if err := c.WaitForNode(name); err != nil { return fmt.Errorf("failed waiting for node: %w", err) } patches := []patchStringValue{} for k, v := range labels { patches = append(patches, patchStringValue{ Op: "replace", Path: fm...
[ -0.9743474721908569, -0.4529857635498047, 0.6387969851493835, -1.6667704582214355, -0.3647054433822632, 0.2534662187099457, -1.2447158098220825, 0.10827336460351944, -0.3987128436565399, 1.4891993999481201, 0.4083429276943207, 0.5836647748947144, -0.7998543977737427, -0.188080832362175, ...
func MustOpenTextFile(filename string) string { inputData, err := ioutil.ReadFile(filename) if err != nil { log.Fatal(err) } return string(inputData) }
[ -0.5732085704803467, -0.5885107517242432, 0.7010518312454224, -0.7314352989196777, -1.2785887718200684, 1.5737016201019287, -0.6064931154251099, 0.7012884020805359, -0.8313514590263367, 0.6954488158226013, 0.3523502051830292, -0.4090471863746643, -0.747826099395752, -0.26946404576301575, ...
func Start(ctx context.Context, name, version string, guid []byte, cs ...ksurveyclient.Collector) error { return start(ctx, name, version, guid, cs...) }
[ 0.5925013422966003, -0.7090156674385071, 0.31357938051223755, 0.5288630723953247, -0.677314817905426, 0.3879896104335785, -0.7791133522987366, -0.0863889530301094, -0.13886021077632904, 0.7011421918869019, -0.5658011436462402, 0.4875214099884033, 0.35427403450012207, 0.08499669283628464, ...
func MustStart(ctx context.Context, name, version string, guid []byte, cs ...ksurveyclient.Collector) { err := Start(ctx, name, version, guid, cs...) if err != nil { panic(err) } }
[ 0.9388134479522705, -0.14544251561164856, 0.30804115533828735, 0.6424736976623535, 0.11519021540880203, 1.3897827863693237, -1.2890187501907349, -0.39290332794189453, 0.43637147545814514, 0.8326385617256165, -0.3773423731327057, 0.4064241945743561, -0.18764850497245789, -0.2938577234745025...
func (r *Row) Add(n float64, f string) { r.Total += n r.Values = append(r.Values, NewFile(f, n)) }
[ 0.019755635410547256, 0.4542503356933594, 0.3270886540412903, -0.4736297130584717, 0.4416414797306061, 0.4634685516357422, -0.26042401790618896, -0.1047317385673523, -0.5730850100517273, -0.49400028586387634, 0.419325053691864, -0.5787515640258789, 0.9054250121116638, 0.6200931668281555, ...
func NewRow(c []string, h string) *Row { return &Row{Columns: c, Hash: h, Total: 0, Values: []*File{}} }
[ 1.2395085096359253, 0.037489816546440125, 0.18050426244735718, 0.3086773753166199, -0.09981080889701843, -0.2878279983997345, -0.8096493482589722, 0.2907828390598297, -0.9596460461616516, -0.995499312877655, 0.5593844652175903, 0.2375180721282959, 0.5372500419616699, 0.25107261538505554, ...
func readfile(fileCount int) { for i := 0; i < fileCount; i++ { f := flag.Arg(i) if !fileexists(f) { fmt.Println(f, "Could not be found... skipping") continue } r, e := os.Open(f) if e != nil { fmt.Println("Could not open file " + f, "...
[ -0.16724757850170135, 0.3681384027004242, 0.8553553819656372, 0.42645707726478577, 0.9120163917541504, 1.5285634994506836, 1.255702018737793, 0.5705707669258118, -2.054680347442627, -0.3412501811981201, 1.0159422159194946, -0.7478899359703064, -0.38491368293762207, 0.6587686538696289, -0...
func readinput(r io.Reader, f string) { s := bufio.NewScanner(r) ln := 0 for s.Scan() { ln++ l := s.Text() c := strings.Split(strings.TrimSpace(l), seperator) if len(c) == 0 { readerr("No columns parsed from line", f, ln, nil) continue } ...
[ -0.20464825630187988, 0.45898234844207764, 0.7148870229721069, 0.0015689778374508023, -0.6219913959503174, -0.1250736564397812, 0.23147237300872803, 0.23502862453460693, -1.002582311630249, 0.0029373059514909983, 0.304583340883255, -0.09841936826705933, 0.379825621843338, -0.33838018774986...
func readerr(m string, f string, l int, e error) { ErrStr := "" if e != nil { ErrStr = e.Error() } fmt.Println(m, l, "in file", f, "with error", ErrStr) }
[ 0.46352601051330566, -0.7242401838302612, 0.6022012829780579, -0.20298217236995697, -0.9542850255966187, 0.40747320652008057, 0.15809427201747894, 0.8253740668296814, -0.690603494644165, 0.26899316906929016, 1.0163989067077637, -0.14944922924041748, 0.18598626554012299, 0.8078601360321045,...
func fileexists(f string) bool { _, e := os.Stat(f) if os.IsNotExist(e) { return false } return true }
[ -0.39942991733551025, -0.1353999823331833, 0.5003675818443298, -0.14105145633220673, 1.319959044456482, 1.053381323814392, -0.8090115785598755, 0.6766236424446106, -1.4484373331069946, -0.41667482256889343, 0.033969927579164505, -0.9153043031692505, 0.7084583640098572, 0.46736547350883484,...
func hash(i interface{}) string { var s []byte switch i.(type) { case []byte: s = reflect.ValueOf(i).Bytes() case string: s = []byte(reflect.ValueOf(i).String()) default: panic("Cannot use interface type given in hash") } h := md5.New() h.Write(s) b := ...
[ 0.15245091915130615, 0.5148850083351135, 0.6838171482086182, 0.4351120591163635, -0.7292993664741516, 1.3216859102249146, 0.7132289409637451, -0.300796240568161, 0.3140486180782318, 0.6068017482757568, -0.3793097734451294, 0.4466172456741333, -0.17395927011966705, 0.31026121973991394, 0....
func NewCache() CacheInterface { flogging.LoggingInit("cache") // cache cacheName := viper.GetString("cache.type") if cacheName == "" { cacheName = default_cache_name } cacheLogger.Infof("using %s as cache", cacheName) switch cacheName { case "kafka": return kafka.NewKafkaCache() case "memory": return ...
[ 0.0024982215836644173, -0.2990131080150604, 0.46989205479621887, 1.3460700511932373, -0.08310780674219131, -0.6920478343963623, -0.11350780725479126, -0.5958728790283203, 0.3373650312423706, 0.5469953417778015, 0.6852066516876221, -0.009937893599271774, -0.9630312323570251, 0.6867614388465...
func GenerateToken(secret []byte, aud, sub string) (string, error) { tok := jwt.NewWithClaims(jwt.SigningMethodHS256, &jwt.RegisteredClaims{ Issuer: TokenIssuer, Audience: []string{aud}, Subject: sub, IssuedAt: jwt.NewNumericDate(time.Now()), NotBefore: jwt.NewNumericDate(time.Now().Add(-15 * time.Mi...
[ 0.25243741273880005, -0.19449691474437714, 0.5972567200660706, -0.391126424074173, -0.6756249666213989, 0.2032107412815094, -0.211256742477417, 0.15150512754917145, 0.4699268043041229, -0.2376997321844101, -0.9325166344642639, 1.1424158811569214, 0.6996358036994934, -0.2736334502696991, ...
func TokenSubject(secret []byte, aud, token string) (string, error) { tok, err := jwt.ParseWithClaims(token, &jwt.RegisteredClaims{}, func(tok *jwt.Token) (interface{}, error) { if tok.Method.Alg() != jwt.SigningMethodHS256.Name { return nil, jwt.ErrInvalidKeyType } return secret, nil }, jwt.WithAudience(aud...
[ 0.41045501828193665, -0.24021287262439728, 0.3489241898059845, -1.0699851512908936, -1.142369270324707, -0.8457422852516174, -0.6364583373069763, -1.4578046798706055, 0.027759002521634102, 0.09381775557994843, -0.581932783126831, 1.1329022645950317, 0.6187333464622498, -0.5262302160263062,...
func ValidPath(p string) bool { if len(p) < 3 { return false } if len(p) > 64 { return false } for _, r := range p { if r == '-' { continue } if r >= '0' && r <= '9' { continue } if r >= 'a' && r <= 'z' { continue } return false } return true }
[ -0.46770843863487244, -0.026629716157913208, 0.8051469326019287, 0.5573923587799072, -0.6733971238136292, 1.6773414611816406, -0.08994216471910477, 0.9041215181350708, 0.6207312345504761, -0.1616159826517105, -0.11856768280267715, -0.869311511516571, -1.0005043745040894, -0.484072893857955...
func (c *Client) AddEventListener(listener chan<- *APIEvents) error { return c.AddEventListenerWithOptions(EventsOptions{}, listener) }
[ -1.170341968536377, 0.11075837910175323, 0.24917013943195343, -0.9346252679824829, 0.3838087022304535, 0.36216533184051514, -0.058110080659389496, -0.08372955769300461, 1.2470756769180298, -0.17371046543121338, -1.2754299640655518, -0.5150032043457031, -0.24540910124778748, 0.6558466553688...
func (c *Client) AddEventListenerWithOptions(options EventsOptions, listener chan<- *APIEvents) error { var err error if !c.eventMonitor.isEnabled() { err = c.eventMonitor.enableEventMonitoring(c, options) if err != nil { return err } } return c.eventMonitor.addListener(listener) }
[ -0.05606253072619438, 0.08892642706632614, 0.4809446632862091, -0.6845443248748779, 0.2747148871421814, 0.02326006256043911, -0.5052328705787659, -0.6359241604804993, 1.2036504745483398, 0.3985755145549774, -0.48962169885635376, -0.7201189994812012, -0.5281509757041931, 0.4865695834159851,...
func (c *Client) RemoveEventListener(listener chan *APIEvents) error { err := c.eventMonitor.removeListener(listener) if err != nil { return err } if c.eventMonitor.listernersCount() == 0 { c.eventMonitor.disableEventMonitoring() } return nil }
[ -0.5047404766082764, -0.11598289012908936, 0.28789323568344116, -0.8418319225311279, -0.306712806224823, 0.13772252202033997, 0.5945971012115479, 0.594229519367218, 0.6740537881851196, 0.5009506940841675, -1.1651777029037476, -0.9727526903152466, -1.0208162069320679, 0.9254714846611023, ...
func transformEvent(event *APIEvents) { // if event version is <= 1.21 there will be no Action and no Type if event.Action == "" && event.Type == "" { event.Action = event.Status event.Actor.ID = event.ID event.Actor.Attributes = map[string]string{} switch event.Status { case "delete", "import", "pull", "pu...
[ -0.4226272702217102, -1.3092120885849, 0.8159140348434448, 0.04802577197551727, 0.29643818736076355, -0.21213708817958832, 0.24218305945396423, 1.3290899991989136, 0.6833539009094238, 0.4601002037525177, -0.25126412510871887, 0.7153289318084717, 0.3510553240776062, 1.2667561769485474, 1....
func (ce *Env) Context() context.Context { return ce.ctx }
[ 0.016934221610426903, -0.6594017744064331, 0.2466229498386383, 0.3243812918663025, 0.2095332145690918, 1.0355498790740967, 0.4870217740535736, -0.42595985531806946, 0.753713071346283, -0.6245529651641846, 0.3186313509941101, 0.2875368893146515, 0.41085517406463623, -0.0030594950076192617, ...
func GetPorcelainAPI(env cmds.Environment) *porcelain.API { ce := env.(*Env) return ce.porcelainAPI }
[ -0.41310521960258484, -1.3235350847244263, 0.3001888692378998, 0.581628680229187, -0.07945917546749115, 0.7737587690353394, 1.04521644115448, 0.04428393766283989, 0.3287005126476288, -0.028842655941843987, -0.32038944959640503, 0.904850423336029, -0.5377141833305359, 0.5104154348373413, ...
func GetBlockAPI(env cmds.Environment) *block.MiningAPI { ce := env.(*Env) return ce.blockMiningAPI }
[ -0.43335434794425964, -0.5883674025535583, 0.436002641916275, 0.9847416877746582, 0.471162885427475, 0.35677963495254517, 0.20522677898406982, -0.7512741684913635, -0.40121230483055115, 0.43889790773391724, 0.2190408557653427, 0.6637787818908691, -0.5097514986991882, 0.750409722328186, 0...
func GetRetrievalAPI(env cmds.Environment) *retrieval.API { ce := env.(*Env) return ce.retrievalAPI }
[ -0.12266004830598831, -0.6148924231529236, 0.22690165042877197, 0.48811203241348267, -0.07977434247732162, 0.6490353345870972, 0.14455023407936096, 0.15180754661560059, -0.5354390144348145, -0.7020886540412903, 0.15962707996368408, 0.07060973346233368, -0.18021178245544434, 0.5014858841896...
func GetStorageAPI(env cmds.Environment) *storage.API { ce := env.(*Env) return ce.storageAPI }
[ -0.46958300471305847, -0.9761077761650085, 0.366187185049057, 1.2912333011627197, 0.4768553376197815, 0.41897550225257874, 0.6625862717628479, -0.5114926099777222, -0.7456229329109192, -0.03554634004831314, -0.11798462271690369, 0.19673816859722137, -0.1539827585220337, 0.7457730174064636,...
func GetInspectorAPI(env cmds.Environment) *Inspector { ce := env.(*Env) return ce.inspectorAPI }
[ -0.7739796042442322, -1.1312772035598755, 0.2627045214176178, 0.058220427483320236, -0.09632676094770432, -0.006226914934813976, 0.30748799443244934, 0.6406399011611938, -0.7560762166976929, -0.1614343225955963, 0.2818499207496643, 0.19815829396247864, -0.5509417653083801, 0.47842675447463...
func IDsFor(fname string) (UID, GID string, err error) { fi, err := os.Lstat(fname) if err != nil { return } s := fi.Sys().(*syscall.Stat_t) u32toa := func(u uint32) string { return strconv.Itoa(int(u)) } return u32toa(s.Uid), u32toa(s.Gid), nil }
[ -0.5116641521453857, -0.3757362961769104, 0.42105355858802795, -1.362139105796814, -0.08005504310131073, 0.30844539403915405, 0.26652464270591736, 0.2663027346134186, -0.6032558679580688, -0.27913448214530945, -0.02619817852973938, -0.0387759730219841, 0.268903523683548, 0.9223679900169373...
func DialGoogle(key string, timeout time.Duration, maxRPS, limit int) (*API, error) { client, err := maps.NewClient(maps.WithAPIKey(key), maps.WithRateLimit(maxRPS)) if err != nil { return nil, fmt.Errorf("Error creating google maps client: %q", err) } log.Println("Connected to GoogleMaps") return &API{client, t...
[ 0.17469994723796844, -0.1406698226928711, 0.5573825240135193, -0.4467083215713501, -0.22511790692806244, 0.4605625867843628, -1.088462233543396, 0.28587034344673157, -0.017041277140378952, 0.7657724618911743, -0.17981158196926117, 0.21530571579933167, -0.9879547953605652, -0.53266739845275...
func (api *API) NearbySearch(txn newrelic.Transaction, lat, lng float64, radius uint) <-chan PlacesResult { resChan := make(chan PlacesResult) go func() { defer newrelic.StartSegment(txn, "GoogleNearbySearch").End() ctx, cancel := context.WithTimeout(context.Background(), api.timeout) defer cancel() resp, e...
[ -0.6673359870910645, 0.07776667177677155, 0.3436952531337738, -0.42089569568634033, -0.31094786524772644, 0.17437519133090973, -0.6148504018783569, -0.9750736951828003, -0.07907766848802567, 0.11038283258676529, 0.005464989226311445, 1.1669085025787354, -1.105820655822754, 0.43225744366645...
func blackListed(r *maps.PlacesSearchResult) bool { blackListed := false for _, t := range r.Types { _, blackListed = typesBlacklist[t] if blackListed { break } } return blackListed }
[ 0.11180400103330612, -0.44258183240890503, 0.6289998292922974, -0.462585985660553, 0.7814054489135742, 0.23959700763225555, 0.5376548767089844, 0.10244568437337875, 0.0033718845807015896, 0.8405857682228088, -0.24428077042102814, 0.07531167566776276, -1.0405571460723877, 0.7098855376243591...
func (api *API) Get(txn newrelic.Transaction, placeID string) <-chan PlacesResult { resChan := make(chan PlacesResult) go func() { defer newrelic.StartSegment(txn, "GooglePlaceDetails").End() ctx, cancel := context.WithTimeout(context.Background(), api.timeout) defer cancel() r, err := api.client.PlaceDetai...
[ -0.41812923550605774, -0.12602533400058746, 0.47145357728004456, -1.423168659210205, 0.7348494529724121, -0.20396287739276886, -0.5651509165763855, -0.756519079208374, 0.33883270621299744, 0.07267247885465622, 0.21150006353855133, 1.3884600400924683, -0.7101390361785889, 0.7953339219093323...
func (d *dependencySleepAfterInitializeSubscribe) Disrupt(s string) bool { if d.f && s == "SleepAfterInitializeSubscribe" { d.f = false return true } return false }
[ 0.6268671154975891, 0.049341969192028046, 0.5198046565055847, 0.2736145555973053, -0.6877047419548035, 0.3946908712387085, -0.30116134881973267, 0.09593746811151505, 0.3689177930355072, -0.6357250809669495, 0.47323963046073914, 0.060399990528821945, -0.1301553100347519, 0.9626581072807312,...
func (d *dependencySleepAfterInitializeSubscribe) enable() { d.f = true }
[ 0.7661465406417847, 0.22097565233707428, 0.24619236588478088, 0.4072565734386444, 0.5413091778755188, 0.4747638404369354, -0.0865924209356308, 0.7971951961517334, -0.34279558062553406, -0.8974140286445618, -0.6684744954109192, 0.6315742135047913, -0.2920131981372833, -0.06177444010972977, ...
func NewExpectEngine(reader io.Reader) *ExpectEngine { return &ExpectEngine{ reader: bufio.NewReader(reader), } }
[ 0.2560087740421295, -0.8862331509590149, 0.16583341360092163, -0.3389941453933716, -0.6355007290840149, 0.04933648928999901, -0.3212665021419525, -0.5634811520576477, -0.5408105254173279, -0.0045062885619699955, 0.12818728387355804, 0.42676135897636414, 0.16344328224658966, 0.9270914196968...
func (expect *ExpectEngine) CollectUntil(expected []byte) ([]byte, error) { var buf bytes.Buffer i := 0 for { if i == len(expected) { collected := buf.Bytes() return collected[:len(collected)-len(expected)], nil } b, err := expect.reader.ReadByte() if err != nil { return nil, err } buf.WriteByte...
[ -0.0063014524057507515, -0.6430062055587769, 0.614151656627655, -0.1756889969110489, 0.15275885164737701, 0.32022348046302795, -0.003311124863103032, -1.0228054523468018, 0.40733543038368225, 0.363657683134079, -0.08951829373836517, 0.9406543374061584, -0.6160359382629395, 0.76426255702972...
func (expect *ExpectEngine) DiscardUntil(expected []byte) error { i := 0 for { if i == len(expected) { return nil } b, err := expect.reader.ReadByte() if err != nil { return err } if i < len(expected) && expected[i] == b { i++ } else if i > 0 { i = 0 expect.reader.UnreadByte() } } }
[ 0.5795823931694031, -0.03059961460530758, 0.534614622592926, -0.8339633941650391, 0.0004668625770136714, 0.3907204270362854, 0.15328389406204224, 0.31804531812667847, 0.027765579521656036, 0.2940186858177185, -0.25106197595596313, 0.9091526865959167, -1.0175962448120117, 0.9268866777420044...
func (c *baseConn) Close() error { return c.c.Close() }
[ 0.05515257269144058, -0.6488184332847595, 0.4265572130680084, 0.8683333992958069, 0.26071980595588684, 0.36071646213531494, -0.3067323565483093, -0.3412202298641205, -1.1358388662338257, -1.004700779914856, 0.23402537405490875, -0.10143710672855377, -1.0745357275009155, 0.5987399816513062,...
func (c *baseConn) recvDiscard(bodyLen int32) error { //获取消息头长度 if bodyLen == 0 { return nil } data := make([]byte, bodyLen) if err := c.recv(c.r, data); err != nil { return err } return nil }
[ 0.16568996012210846, 0.6379241943359375, 0.8023293018341064, -0.6728783249855042, -0.4451519250869751, 0.05498284101486206, -0.9706425666809082, -0.39778932929039, -0.3321511745452881, 0.2635423243045807, -1.0129841566085815, 0.9308904409408569, -0.34620848298072815, 0.04844142869114876, ...
func NewTable(acl ACL) (Table, error) { if !validRights(acl, validTablePrivs) { return Table{}, fmt.Errorf("invalid flags set for table (%+q), only %+q allowed", permString(acl.Privileges, acl.GrantOptions), validTablePrivs) } return Table{ACL: acl}, nil }
[ 0.9539262056350708, 0.5275653600692749, 0.5144153237342834, 0.5611087083816528, -1.201340913772583, 0.3514498770236969, 0.25564125180244446, -0.5546523928642273, -0.013386933133006096, -0.6091724038124084, 0.5895757675170898, 0.3927381932735443, 0.4168597459793091, -0.2006048560142517, 0...
func (r *CSVReader) Read(makeTrain bool) (train Train) { source, _ := os.Open(r.Path) defer source.Close() for row := range rowsProcessing(source) { r.Data = append(r.Data, Row{Data: row, Elements: len(row)}) } if makeTrain { return &r.Data } else { return nil } }
[ -0.5550944209098816, 0.13191643357276917, 0.5264901518821716, -0.6070590615272522, -0.9284889698028564, 0.14612963795661926, -0.465259850025177, 0.3046167194843292, -0.30873873829841614, -0.10777798295021057, 0.4066424071788788, 0.2072937786579132, -0.15773794054985046, -0.6942383646965027...
func (w *WidgetImplement) Parent() Widget { return w.parent }
[ 0.6853623986244202, 0.3402010500431061, 0.15097631514072418, -0.48208436369895935, -0.8338829874992371, 0.24204367399215698, 1.5221595764160156, 0.28611859679222107, -0.21265029907226562, -0.9411696195602417, -0.17970366775989532, -0.5022101402282715, -0.2847703993320465, 0.536272823810577...
func (w *WidgetImplement) SetParent(parent Widget) { w.parent = parent }
[ 0.30663806200027466, 0.6065177917480469, 0.1247115209698677, -0.5280544757843018, -0.5318242311477661, 0.5351155996322632, 0.8661876916885376, 0.274944007396698, -0.01948932185769081, -0.5499343872070312, -0.7796595692634583, -0.3563571572303772, 0.07357903569936752, 0.8127199411392212, ...
func (w *WidgetImplement) Layout() Layout { return w.layout }
[ 0.2668153643608093, -0.17090243101119995, 0.06798234581947327, -0.2299075424671173, -0.5169221758842468, 0.33276769518852234, 1.2863703966140747, 0.47302865982055664, 0.4670424461364746, -0.8699834942817688, 0.03893973305821419, -0.9372129440307617, -0.1167549416422844, 0.47772473096847534...
func (w *WidgetImplement) SetLayout(layout Layout) { w.layout = layout }
[ 0.458891361951828, 0.42813238501548767, -0.003698974149301648, 0.4638243317604065, -0.6440752744674683, 0.36986351013183594, 0.30505144596099854, 0.6662838459014893, 0.9423931837081909, -0.4569747745990753, -0.5676491260528564, -0.7134174704551697, 0.3127671480178833, 1.1104164123535156, ...