text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (o *NetworkDns) HasRegisteredDevice() bool {
if o != nil && o.RegisteredDevice != nil {
return true
}
return false
} | [
-0.09736501425504684,
1.9559245109558105,
0.28023985028266907,
0.24184593558311462,
1.0437294244766235,
-0.6054303646087646,
0.7695832848548889,
0.854431688785553,
0.23660829663276672,
-1.0533199310302734,
-0.5441266894340515,
-0.5626053810119629,
0.2776879072189331,
1.2369658946990967,
... |
func (o *NetworkDns) SetRegisteredDevice(v AssetDeviceRegistrationRelationship) {
o.RegisteredDevice = &v
} | [
-0.08621316403150558,
1.6994644403457642,
-0.006203281227499247,
-0.19896909594535828,
0.3922136127948761,
-0.41812995076179504,
0.4925457239151001,
-0.8654916286468506,
0.4685184359550476,
-0.6902114152908325,
0.22333240509033203,
0.5200297236442566,
0.11151677370071411,
0.051809068769216... |
func (t *SubscribedTrack) IsMuted() bool {
return t.subMuted.Get()
} | [
0.39190220832824707,
0.03485223650932312,
0.5700045824050903,
0.3852032423019409,
1.3457337617874146,
0.7521811723709106,
-0.8632206916809082,
-0.12885387241840363,
0.5590900778770447,
-0.7773557305335999,
-1.0138787031173706,
1.2749587297439575,
-0.7038207054138184,
0.372066468000412,
-... |
func Atbash(in string) (out string) {
// fmt.Println(in)
re := regexp.MustCompile(`[^\w\d]`)
s := strings.ToLower(re.ReplaceAllString(in, ""))
o := make([]rune, len(s))
code := make(map[rune]rune, 0)
for i, j := int('a'), int('z'); i <= int('z'); i++ {
code[rune(i)] = rune(j)
j--
}
i := 0
for _, c := rang... | [
0.8803387880325317,
-0.46827736496925354,
0.8370740413665771,
-0.6394999623298645,
-0.6468345522880554,
-0.27636784315109253,
1.4774677753448486,
-0.29400572180747986,
0.2447630912065506,
0.21464839577674866,
-1.1306142807006836,
0.4150511920452118,
0.013081441633403301,
-0.044059459120035... |
func (s GetIntrospectionSchemaInput) String() string {
return awsutil.Prettify(s)
} | [
0.26781684160232544,
-0.2867763936519623,
0.266297847032547,
-0.9768949747085571,
0.04000294581055641,
0.4644416868686676,
0.3536529541015625,
-0.8035891056060791,
0.15851309895515442,
0.1646646410226822,
0.555972695350647,
0.9350644946098328,
-0.5727418065071106,
-0.7532724738121033,
1.... |
func (s *GetIntrospectionSchemaInput) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "GetIntrospectionSchemaInput"}
if s.ApiId == nil {
invalidParams.Add(aws.NewErrParamRequired("ApiId"))
}
if len(s.Format) == 0 {
invalidParams.Add(aws.NewErrParamRequired("Format"))
}
if invalidParams.Len... | [
-0.5555813908576965,
0.06601504981517792,
0.46984022855758667,
-0.668556809425354,
0.33914914727211,
-0.07010864466428757,
-0.4839937686920166,
-0.158058300614357,
-0.02269449271261692,
-0.2431308478116989,
1.063359260559082,
0.42181137204170227,
-1.3100008964538574,
0.15009446442127228,
... |
func (s GetIntrospectionSchemaInput) MarshalFields(e protocol.FieldEncoder) error {
e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.ApiId != nil {
v := *s.ApiId
metadata := protocol.Metadata{}
e.SetValue(protocol.PathTarget, "apiId", protoc... | [
-0.11882831901311874,
0.1909637302160263,
0.44638440012931824,
-1.4530858993530273,
0.4115947186946869,
0.2967643439769745,
-0.07751256227493286,
0.18074746429920197,
0.016099942848086357,
-0.09170907735824585,
0.11821673810482025,
0.5099714994430542,
-0.990402102470398,
-0.309744536876678... |
func (s GetIntrospectionSchemaOutput) String() string {
return awsutil.Prettify(s)
} | [
0.8480918407440186,
-0.6748912334442139,
0.3198268413543701,
-0.6927601099014282,
-0.0075579117983579636,
-0.2515457272529602,
0.46865224838256836,
-0.22220361232757568,
-0.42652028799057007,
0.2537935972213745,
0.5779942274093628,
0.6419492363929749,
-0.25654104351997375,
-0.8872795104980... |
func (s GetIntrospectionSchemaOutput) MarshalFields(e protocol.FieldEncoder) error {
if s.Schema != nil {
v := s.Schema
metadata := protocol.Metadata{}
e.SetStream(protocol.PayloadTarget, "schema", protocol.BytesStream(v), metadata)
}
return nil
} | [
0.43147847056388855,
0.8101295232772827,
0.1906101256608963,
-0.7413846850395203,
0.6175914406776428,
0.03161310404539108,
-0.11622054874897003,
0.7236418724060059,
0.08574710786342621,
-0.10423637181520462,
0.20754395425319672,
0.396136999130249,
-1.2243669033050537,
-0.27194106578826904,... |
func (r GetIntrospectionSchemaRequest) Send(ctx context.Context) (*GetIntrospectionSchemaResponse, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
resp := &GetIntrospectionSchemaResponse{
GetIntrospectionSchemaOutput: r.Request.Data.(*GetIntrospectionSchemaOutput),... | [
-0.6760369539260864,
0.21172544360160828,
0.39734137058258057,
-0.27126210927963257,
0.4331572949886322,
-0.40111762285232544,
-0.5200579762458801,
-0.695236086845398,
-0.3801775276660919,
-0.10385096818208694,
0.37578076124191284,
0.8880418539047241,
-0.9209176301956177,
-0.56279408931732... |
func (r *GetIntrospectionSchemaResponse) SDKResponseMetdata() *aws.Response {
return r.response
} | [
-0.017498299479484558,
-0.3394707441329956,
0.4095011055469513,
-0.820397138595581,
0.18399298191070557,
0.04418686404824257,
-1.0790021419525146,
-0.2689987123012543,
0.5054347515106201,
-0.2616971433162689,
0.27862557768821716,
-0.019718652591109276,
-0.5653442144393921,
-1.2281476259231... |
func NewSupernodeRegister(cfg *config.Config, api api.SupernodeAPI) SupernodeRegister {
return &supernodeRegister{
api: api,
cfg: cfg,
}
} | [
-0.2988223731517792,
-0.40656939148902893,
0.2331513911485672,
-0.1727595329284668,
-0.6358975172042847,
-0.8737660050392151,
-1.4307993650436401,
0.9920824766159058,
-0.1968570500612259,
-0.7838523387908936,
-1.7437502145767212,
0.7901372909545898,
-0.8259584903717041,
0.7389825582504272,... |
func (s *supernodeRegister) Register(peerPort int) (*RegisterResult, *errortypes.DfError) {
var (
resp *types.RegisterResponse
e error
i int
retryTimes = 0
start = time.Now()
)
logrus.Infof("do register to one of %v", s.cfg.Nodes)
nodes, nLen := s.cfg.Nodes, len(s.cfg.Nodes)
... | [
-1.303788185119629,
1.1993719339370728,
0.9069010615348816,
-0.17349180579185486,
0.9637882113456726,
-0.7315921783447266,
0.18679727613925934,
-0.4085884690284729,
-0.3640322983264923,
-0.05583665147423744,
-0.9281687140464783,
0.3644196391105652,
-0.9186409711837769,
0.05558152124285698,... |
func NewRegisterResult(node string, remainder []string, url string,
taskID string, fileLen int64, pieceSize int32) *RegisterResult {
return &RegisterResult{
Node: node,
RemainderNodes: remainder,
URL: url,
TaskID: taskID,
FileLength: fileLen,
PieceSize: pieceSize,
}
... | [
0.17395682632923126,
0.8500446081161499,
0.20693561434745789,
-0.8050607442855835,
-0.0701315775513649,
-0.8723005056381226,
0.11022012680768967,
-0.15706412494182587,
-0.4268726110458374,
-0.6657871007919312,
-0.45175543427467346,
0.5895191431045532,
-1.1612436771392822,
0.010948440060019... |
func NewGetProductsByIDVariationAttributesByIDValuesParams() *GetProductsByIDVariationAttributesByIDValuesParams {
var ()
return &GetProductsByIDVariationAttributesByIDValuesParams{
timeout: cr.DefaultTimeout,
}
} | [
0.2795362174510956,
-0.057840630412101746,
0.5505275726318359,
1.200938105583191,
0.47223228216171265,
0.4811643958091736,
0.7849027514457703,
-1.314225673675537,
-0.3401446044445038,
-0.5661717057228088,
-0.7763694524765015,
-0.1197376474738121,
-0.03992827609181404,
0.2737661898136139,
... |
func NewGetProductsByIDVariationAttributesByIDValuesParamsWithTimeout(timeout time.Duration) *GetProductsByIDVariationAttributesByIDValuesParams {
var ()
return &GetProductsByIDVariationAttributesByIDValuesParams{
timeout: timeout,
}
} | [
0.8566365838050842,
0.10581526160240173,
0.5222302079200745,
0.9681927561759949,
0.25612619519233704,
0.9014919996261597,
0.015073132701218128,
-0.91080242395401,
-0.24018564820289612,
0.3555067181587219,
-0.6029828190803528,
0.09075018763542175,
0.3534538745880127,
0.38057073950767517,
... |
func NewGetProductsByIDVariationAttributesByIDValuesParamsWithContext(ctx context.Context) *GetProductsByIDVariationAttributesByIDValuesParams {
var ()
return &GetProductsByIDVariationAttributesByIDValuesParams{
Context: ctx,
}
} | [
0.27028846740722656,
0.24359990656375885,
0.8009619116783142,
0.9201456904411316,
0.4967382848262787,
0.7218650579452515,
0.36745938658714294,
-1.4698058366775513,
0.02506859041750431,
-0.2163304090499878,
-1.006824254989624,
-0.3699837625026703,
0.2332661747932434,
-0.18694813549518585,
... |
func NewGetProductsByIDVariationAttributesByIDValuesParamsWithHTTPClient(client *http.Client) *GetProductsByIDVariationAttributesByIDValuesParams {
var ()
return &GetProductsByIDVariationAttributesByIDValuesParams{
HTTPClient: client,
}
} | [
0.3089365065097809,
-0.05860142409801483,
0.558241069316864,
1.0117626190185547,
0.7761543989181519,
0.6703757047653198,
0.8445393443107605,
-1.0290297269821167,
-0.42180097103118896,
-0.5445375442504883,
-1.048258900642395,
-0.0819910392165184,
0.4728587865829468,
-0.21731868386268616,
... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) WithTimeout(timeout time.Duration) *GetProductsByIDVariationAttributesByIDValuesParams {
o.SetTimeout(timeout)
return o
} | [
0.25284242630004883,
0.13776086270809174,
0.28454357385635376,
0.8066510558128357,
-0.215202197432518,
0.17031288146972656,
0.6165692210197449,
-0.9820621609687805,
0.1361551582813263,
0.4303100109100342,
-0.4212373197078705,
0.0020659295842051506,
0.7952267527580261,
0.30119115114212036,
... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
} | [
0.22015243768692017,
0.47370293736457825,
0.1933683305978775,
1.0120906829833984,
0.34785839915275574,
0.7781274318695068,
0.647089958190918,
-0.4030405879020691,
-0.2543433904647827,
0.6831749677658081,
-0.3291979134082794,
0.38989078998565674,
0.4369666874408722,
0.1678527593612671,
0.... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) WithContext(ctx context.Context) *GetProductsByIDVariationAttributesByIDValuesParams {
o.SetContext(ctx)
return o
} | [
-0.3245168924331665,
0.09921708703041077,
0.4755142331123352,
0.5143011212348938,
-0.175436332821846,
0.26986825466156006,
0.537717342376709,
-1.3647372722625732,
0.2841823101043701,
-0.2980186939239502,
-0.5635082721710205,
-0.3934977650642395,
0.3206959366798401,
-0.2534670829772949,
-... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) SetContext(ctx context.Context) {
o.Context = ctx
} | [
-0.1935097873210907,
0.34982720017433167,
0.34490954875946045,
0.9748682379722595,
0.48031672835350037,
0.7917845845222473,
0.868248701095581,
-0.9063798785209656,
0.22834686934947968,
0.03286593779921532,
-0.6074141263961792,
0.11657103151082993,
0.15621966123580933,
-0.27510252594947815,... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) WithHTTPClient(client *http.Client) *GetProductsByIDVariationAttributesByIDValuesParams {
o.SetHTTPClient(client)
return o
} | [
-0.045589957386255264,
-0.7579472064971924,
0.3330382704734802,
0.3569340407848358,
0.22462154924869537,
0.2874228358268738,
1.0329537391662598,
-1.2133022546768188,
-0.36020058393478394,
-0.6449422240257263,
-0.7773638963699341,
-0.026854345574975014,
0.6606863141059875,
-0.43931618332862... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
} | [
0.2973237931728363,
-0.29026323556900024,
0.14583230018615723,
-0.05443328246474266,
0.14204898476600647,
0.3033774495124817,
1.0458984375,
-0.9165889620780945,
-0.899977445602417,
-0.16236650943756104,
-0.6896114349365234,
0.39628490805625916,
0.3390354514122009,
-0.6763656139373779,
0.... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) WithAttributeID(attributeID string) *GetProductsByIDVariationAttributesByIDValuesParams {
o.SetAttributeID(attributeID)
return o
} | [
0.4733453094959259,
-0.6550654768943787,
0.25778427720069885,
0.33970800042152405,
0.22315575182437897,
0.3649972677230835,
0.7375218272209167,
-0.7150961756706238,
1.071993350982666,
0.28817495703697205,
-0.13282591104507446,
0.13501910865306854,
0.8319828510284424,
0.7787754535675049,
... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) SetAttributeID(attributeID string) {
o.AttributeID = attributeID
} | [
0.09124928712844849,
-0.36647382378578186,
0.19054383039474487,
0.6798499226570129,
0.5610370635986328,
1.0220975875854492,
1.0031194686889648,
-0.3802002966403961,
0.6992533802986145,
0.6006871461868286,
0.026600133627653122,
0.8523527979850769,
0.27059412002563477,
0.6889140009880066,
... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) WithCount(count *int32) *GetProductsByIDVariationAttributesByIDValuesParams {
o.SetCount(count)
return o
} | [
-0.18065693974494934,
0.4317169189453125,
0.3226531744003296,
0.940085768699646,
0.12553618848323822,
-0.21592536568641663,
1.0470125675201416,
-1.1269257068634033,
-0.5475524663925171,
0.30938440561294556,
-0.7352067232131958,
-0.9114667177200317,
0.6538432240486145,
0.17957523465156555,
... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) SetCount(count *int32) {
o.Count = count
} | [
-0.2315438836812973,
0.5798446536064148,
0.20201778411865234,
1.1926689147949219,
0.4881279468536377,
0.45231977105140686,
0.8921575546264648,
-0.6659676432609558,
-0.8121975064277649,
0.30948659777641296,
-0.8005143404006958,
-0.4047926962375641,
0.23494577407836914,
0.548008918762207,
... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) WithExpand(expand []string) *GetProductsByIDVariationAttributesByIDValuesParams {
o.SetExpand(expand)
return o
} | [
0.18516549468040466,
-0.14682534337043762,
0.3776574730873108,
0.8665023446083069,
-0.2784455716609955,
0.3493366241455078,
0.4802238345146179,
-0.8582435250282288,
0.11974108964204788,
-0.29230961203575134,
0.05808381736278534,
-0.4571399390697479,
0.6506679654121399,
0.6282436847686768,
... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) SetExpand(expand []string) {
o.Expand = expand
} | [
-0.07162446528673172,
-0.16653390228748322,
0.35803738236427307,
1.1309547424316406,
0.14419174194335938,
0.7414509654045105,
0.5453762412071228,
-0.6754397749900818,
-0.014809607528150082,
-0.08163972944021225,
-0.18757818639278412,
-0.037328578531742096,
0.39564791321754456,
0.6210370659... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) WithProductID(productID string) *GetProductsByIDVariationAttributesByIDValuesParams {
o.SetProductID(productID)
return o
} | [
0.06333281099796295,
-0.40064653754234314,
0.2918913662433624,
0.7392349243164062,
0.2713439166545868,
0.8921055197715759,
0.5532674789428711,
-1.1476365327835083,
0.6388497948646545,
0.23459956049919128,
-0.37158697843551636,
-0.2763610780239105,
0.7877565026283264,
0.5893648266792297,
... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) SetProductID(productID string) {
o.ProductID = productID
} | [
-0.17810948193073273,
0.020159166306257248,
0.30457180738449097,
1.3124825954437256,
0.5599122047424316,
1.4449454545974731,
1.029547095298767,
-0.703726053237915,
0.19231776893138885,
0.3785753548145294,
-0.41227883100509644,
0.2292509227991104,
0.33392179012298584,
0.7849332094192505,
... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) WithSelect(selectVar *string) *GetProductsByIDVariationAttributesByIDValuesParams {
o.SetSelect(selectVar)
return o
} | [
-0.2789038419723511,
-0.2498278170824051,
0.3440854549407959,
0.4930857717990875,
-0.08023539930582047,
-0.3541261851787567,
0.6357109546661377,
-1.739917278289795,
0.18474268913269043,
0.3303406238555908,
-0.4857783615589142,
-0.1653853952884674,
0.5358963012695312,
-0.17889392375946045,
... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) SetSelect(selectVar *string) {
o.Select = selectVar
} | [
-0.23130415380001068,
0.003829031251370907,
0.22521069645881653,
0.9176797270774841,
0.07561240345239639,
0.10097838193178177,
0.42189982533454895,
-1.0262889862060547,
-0.13174079358577728,
0.429915189743042,
-0.42121025919914246,
0.18205316364765167,
0.11583613604307175,
-0.1167489439249... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) WithSiteID(siteID *string) *GetProductsByIDVariationAttributesByIDValuesParams {
o.SetSiteID(siteID)
return o
} | [
-0.00415699603036046,
-0.3923497200012207,
0.26270243525505066,
0.7726904153823853,
0.3393011689186096,
0.262677937746048,
1.0788729190826416,
-1.0618388652801514,
0.6233540177345276,
0.1087699830532074,
-0.25999966263771057,
-0.5064274072647095,
0.29459577798843384,
0.6585327982902527,
... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) SetSiteID(siteID *string) {
o.SiteID = siteID
} | [
-0.3232728838920593,
-0.21361303329467773,
0.18484409153461456,
1.1556600332260132,
0.3427613079547882,
0.7523767352104187,
0.9438720345497131,
-0.952849805355072,
0.5695011615753174,
0.4928676187992096,
-0.4048422574996948,
0.27758467197418213,
-0.204792782664299,
0.5941373705863953,
-0... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) WithStart(start *int32) *GetProductsByIDVariationAttributesByIDValuesParams {
o.SetStart(start)
return o
} | [
-0.19819070398807526,
0.002952354960143566,
0.2467115819454193,
0.3074495196342468,
0.14571353793144226,
-0.14943452179431915,
0.902223527431488,
-1.0593339204788208,
-0.033722542226314545,
-0.06688962876796722,
-0.6481872200965881,
0.0521174818277359,
0.57478928565979,
-0.201095312833786,... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) SetStart(start *int32) {
o.Start = start
} | [
-0.4066472053527832,
0.12529127299785614,
0.12441565841436386,
0.7506292462348938,
0.4117603898048401,
0.3871126174926758,
1.0790624618530273,
-0.6329163908958435,
-0.46240416169166565,
0.3230407238006592,
-0.9429373741149902,
0.3726997971534729,
0.03952642157673836,
-0.08747408539056778,
... |
func (o *GetProductsByIDVariationAttributesByIDValuesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
// path param attribute_id
if err := r.SetPathParam("attribute_id", o.AttributeID); err != nil {
retur... | [
-0.7110278010368347,
-0.1823829859495163,
0.8286378383636475,
-0.5752947330474854,
0.538231611251831,
0.10198983550071716,
1.192490577697754,
-1.1842864751815796,
0.21718408167362213,
0.08139462769031525,
-0.29211169481277466,
0.34083977341651917,
0.040863703936338425,
0.5583667159080505,
... |
func NopCloser(bio Biome) BiomeCloser {
return nopCloser{bio}
} | [
0.20252175629138947,
-0.09164456278085709,
0.11488959193229675,
-0.0009246342815458775,
-1.999840497970581,
1.3023245334625244,
0.4219294488430023,
-1.2289940118789673,
-1.0102787017822266,
-0.7303847074508667,
1.1409378051757812,
-0.6123318672180176,
-1.2856782674789429,
1.374241232872009... |
func WithClose(bio BiomeCloser, closeFunc func() error) BiomeCloser {
if bio == nil {
panic("biome.WithClose called with nil biome")
}
if closeFunc == nil {
panic("biome.WithClose called with nil function")
}
return closer{bio, closeFunc}
} | [
0.3054211735725403,
-0.1790529191493988,
0.7073525786399841,
1.0765788555145264,
-1.0226514339447021,
0.12455350905656815,
0.09987723082304001,
-0.9390102624893188,
-0.5449337363243103,
0.16014090180397034,
0.9670723080635071,
0.04367115721106529,
-0.21021048724651337,
0.740253746509552,
... |
func (r *MachinePoolsAddServerRequest) Body() *MachinePool {
if r == nil {
return nil
}
return r.body
} | [
-0.7534570693969727,
0.6384815573692322,
0.22599905729293823,
0.35308921337127686,
0.7007142305374146,
1.1018623113632202,
-0.16832055151462555,
-1.272756814956665,
0.8763821721076965,
-0.015612457878887653,
-0.08189715445041656,
0.5314772725105286,
-0.6903087496757507,
1.1228562593460083,... |
func (r *MachinePoolsAddServerRequest) GetBody() (value *MachinePool, ok bool) {
ok = r != nil && r.body != nil
if ok {
value = r.body
}
return
} | [
-0.766835629940033,
0.9225642085075378,
0.6335636377334595,
0.24681274592876434,
0.8462386727333069,
0.6903970241546631,
-0.2246948778629303,
-1.300870418548584,
0.6536944508552551,
0.328650563955307,
0.2248271256685257,
0.32315367460250854,
-0.8961873054504395,
1.0865106582641602,
0.113... |
func (r *MachinePoolsAddServerResponse) Body(value *MachinePool) *MachinePoolsAddServerResponse {
r.body = value
return r
} | [
-0.6382238268852234,
0.2513854205608368,
0.16518959403038025,
-0.08914035558700562,
0.35615548491477966,
1.4410252571105957,
0.23734673857688904,
-1.1531832218170166,
0.9376030564308167,
0.08888975530862808,
-1.0786874294281006,
-0.06372278183698654,
-0.4885441064834595,
1.1208767890930176... |
func (r *MachinePoolsAddServerResponse) Status(value int) *MachinePoolsAddServerResponse {
r.status = value
return r
} | [
-0.39595070481300354,
-0.2278728038072586,
0.0677703395485878,
-0.13390913605690002,
-0.16232538223266602,
1.7506682872772217,
0.6238380670547485,
0.005877485498785973,
0.7530936598777771,
-0.021350592374801636,
-1.369767427444458,
0.05672261118888855,
-0.19909799098968506,
1.3750475645065... |
func (r *MachinePoolsListServerRequest) Page() int {
if r != nil && r.page != nil {
return *r.page
}
return 0
} | [
-0.7471057772636414,
0.7308160066604614,
0.37308260798454285,
-0.06281790882349014,
0.41770684719085693,
0.3769548833370209,
0.3877393305301666,
-0.13376620411872864,
0.33729004859924316,
-0.1086890697479248,
0.8989570140838623,
-0.5424810647964478,
-1.8466851711273193,
1.6509002447128296,... |
func (r *MachinePoolsListServerRequest) GetPage() (value int, ok bool) {
ok = r != nil && r.page != nil
if ok {
value = *r.page
}
return
} | [
-0.6852928400039673,
1.0088586807250977,
0.5971736311912537,
0.029153116047382355,
0.5348294973373413,
0.05968353897333145,
0.34796619415283203,
-0.1645069122314453,
-0.09249451756477356,
0.0026187333278357983,
0.6430286765098572,
-0.4563068449497223,
-1.5502365827560425,
1.100888252258300... |
func (r *MachinePoolsListServerRequest) Size() int {
if r != nil && r.size != nil {
return *r.size
}
return 0
} | [
-0.8340237736701965,
0.7047810554504395,
0.31895163655281067,
-0.10617274045944214,
0.0018902367446571589,
0.3324878215789795,
0.2804133892059326,
-0.6465156078338623,
0.4452321529388428,
-0.43610191345214844,
0.02236327715218067,
0.2355809211730957,
-1.379881739616394,
1.3399171829223633,... |
func (r *MachinePoolsListServerRequest) GetSize() (value int, ok bool) {
ok = r != nil && r.size != nil
if ok {
value = *r.size
}
return
} | [
-1.1470838785171509,
1.0031614303588867,
0.5229384899139404,
0.15161216259002686,
0.21199867129325867,
-0.3174658715724945,
0.3677596151828766,
-0.43688222765922546,
0.2777213454246521,
-0.38061609864234924,
-0.1951816827058792,
-0.175344780087471,
-1.0822677612304688,
0.7938781380653381,
... |
func (r *MachinePoolsListServerResponse) Items(value *MachinePoolList) *MachinePoolsListServerResponse {
r.items = value
return r
} | [
-1.0085493326187134,
0.046552207320928574,
0.029088355600833893,
-0.2665463984012604,
-0.06930360943078995,
0.9625006318092346,
0.38116455078125,
-0.4081091582775116,
0.10420989990234375,
-0.04481808841228485,
-0.9690821766853333,
-0.461398720741272,
-0.6977264285087585,
0.744570255279541,... |
func (r *MachinePoolsListServerResponse) Page(value int) *MachinePoolsListServerResponse {
r.page = &value
return r
} | [
-0.35169896483421326,
0.5657854080200195,
0.045157819986343384,
-0.3717576861381531,
-0.3757258355617523,
1.1976743936538696,
0.7890405058860779,
-0.32544198632240295,
0.4507528841495514,
-0.10795874893665314,
-0.3941187560558319,
-0.9593473672866821,
-0.9383617639541626,
1.130413055419921... |
func (r *MachinePoolsListServerResponse) Size(value int) *MachinePoolsListServerResponse {
r.size = &value
return r
} | [
-0.5437950491905212,
0.590185821056366,
-0.06064867973327637,
-0.4499197006225586,
-0.6374055743217468,
1.1214350461959839,
0.9892179369926453,
-0.565724790096283,
0.6618229746818542,
-0.33557364344596863,
-1.2427469491958618,
-0.5019254684448242,
-0.4615092873573303,
0.6822834014892578,
... |
func (r *MachinePoolsListServerResponse) Total(value int) *MachinePoolsListServerResponse {
r.total = &value
return r
} | [
-0.4394833743572235,
0.06007558852434158,
0.0461183600127697,
-0.7218510508537292,
-0.11764862388372421,
0.3814988136291504,
1.1742699146270752,
-0.503482460975647,
0.7605158090591431,
0.4106745719909668,
-1.3577324151992798,
-0.12975920736789703,
-0.30274760723114014,
-0.04666336998343468... |
func (r *MachinePoolsListServerResponse) Status(value int) *MachinePoolsListServerResponse {
r.status = value
return r
} | [
-0.526695728302002,
-0.5820796489715576,
-0.04535284265875816,
-0.05962318554520607,
-0.6736449599266052,
1.3496367931365967,
0.7645092606544495,
0.167209655046463,
0.661120593547821,
-0.0003055731358472258,
-1.7559558153152466,
-0.04928615689277649,
-0.14668628573417664,
1.345993280410766... |
func dispatchMachinePools(w http.ResponseWriter, r *http.Request, server MachinePoolsServer, segments []string) {
if len(segments) == 0 {
switch r.Method {
case "POST":
adaptMachinePoolsAddRequest(w, r, server)
return
case "GET":
adaptMachinePoolsListRequest(w, r, server)
return
default:
errors.... | [
-0.9752813577651978,
-0.18591955304145813,
0.6661699414253235,
0.39256370067596436,
0.16075336933135986,
0.7648196816444397,
-0.011158282868564129,
-0.6838951706886292,
-0.2319454401731491,
0.4944859445095062,
0.05355115607380867,
0.5145614743232727,
-0.22501397132873535,
0.832013010978698... |
func adaptMachinePoolsAddRequest(w http.ResponseWriter, r *http.Request, server MachinePoolsServer) {
request := &MachinePoolsAddServerRequest{}
err := readMachinePoolsAddRequest(request, r)
if err != nil {
glog.Errorf(
"Can't read request for method '%s' and path '%s': %v",
r.Method, r.URL.Path, err,
)
... | [
-1.6305022239685059,
-0.763117790222168,
0.8732843995094299,
-0.16190184652805328,
-0.7166748642921448,
0.07644765079021454,
0.3419130742549896,
-0.4913472831249237,
0.1413881927728653,
0.17443865537643433,
0.5839031338691711,
0.8090813159942627,
-0.13790281116962433,
0.998494029045105,
... |
func adaptMachinePoolsListRequest(w http.ResponseWriter, r *http.Request, server MachinePoolsServer) {
request := &MachinePoolsListServerRequest{}
err := readMachinePoolsListRequest(request, r)
if err != nil {
glog.Errorf(
"Can't read request for method '%s' and path '%s': %v",
r.Method, r.URL.Path, err,
)... | [
-1.7701855897903442,
-1.2214792966842651,
0.699844479560852,
-0.5552560687065125,
-0.8626656532287598,
-0.3635925054550171,
0.2284114956855774,
-0.16167493164539337,
0.16634459793567657,
0.5173037052154541,
0.26475241780281067,
1.031123161315918,
-0.11101692914962769,
0.8162750601768494,
... |
func NewItemSettingsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsRequestBuilder) {
m := &ItemSettingsRequestBuilder{
BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013... | [
-1.1374657154083252,
0.15361863374710083,
0.6131618022918701,
0.025453519076108932,
-0.7640984058380127,
0.08734419196844101,
0.15227501094341278,
-0.5066030621528625,
-0.34317708015441895,
-0.34467196464538574,
-0.0010258271358907223,
0.28725600242614746,
-0.9496386647224426,
-0.362150192... |
func NewItemSettingsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemSettingsRequestBuilder) {
urlParams := make(map[string]string)
urlParams["request-raw-url"] = rawUrl
return NewItemSettingsRequestBuilderInternal(urlParams,... | [
-1.8178778886795044,
0.2722824513912201,
0.2641982138156891,
0.7940436601638794,
-1.0269593000411987,
-0.2462160885334015,
-0.3932487666606903,
-0.0895301029086113,
0.643754243850708,
-0.8631526827812195,
-0.24929942190647125,
-0.10871193557977676,
-0.4331187307834625,
-0.30598369240760803... |
func (m *ItemSettingsRequestBuilder) ContactMergeSuggestions()(*ItemSettingsContactMergeSuggestionsRequestBuilder) {
return NewItemSettingsContactMergeSuggestionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
} | [
-1.909892201423645,
-0.023320376873016357,
0.6227458119392395,
0.16092440485954285,
0.7259751558303833,
0.1788509041070938,
0.7200015783309937,
-0.45666348934173584,
-0.02240213192999363,
-0.30906665325164795,
-0.1481441706418991,
-0.19951649010181427,
-1.2520692348480225,
-0.2160897701978... |
func (m *ItemSettingsRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemSettingsRequestBuilderDeleteRequestConfiguration)(error) {
requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration);
if err != nil {
return err
}
errorMapping := i2ae4187f7daee263371cb1c... | [
-0.5276969075202942,
0.21272492408752441,
0.7679784297943115,
0.10853011906147003,
0.2410854995250702,
0.133890300989151,
0.061976123601198196,
-0.4040669798851013,
0.21048876643180847,
0.09331047534942627,
0.26440149545669556,
0.3246723413467407,
-0.512687087059021,
-0.32389208674430847,
... |
func (m *ItemSettingsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemSettingsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSettingsable, error) {
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
if err != ... | [
-0.6505625247955322,
0.41540607810020447,
0.8920120000839233,
0.011562895029783249,
-0.19379080832004547,
0.349545419216156,
0.20200945436954498,
-0.28954896330833435,
-0.1635041981935501,
0.23159825801849365,
0.018585147336125374,
0.7612285614013672,
-0.3348873555660248,
-0.57255631685256... |
func (m *ItemSettingsRequestBuilder) ItemInsights()(*ItemSettingsItemInsightsRequestBuilder) {
return NewItemSettingsItemInsightsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
} | [
-1.1130592823028564,
0.24272583425045013,
0.2008126676082611,
0.41944482922554016,
-0.15007361769676208,
-0.41395488381385803,
-0.09233157336711884,
-0.5572237372398376,
0.7820519804954529,
-0.35876455903053284,
-0.0904107391834259,
0.8732330203056335,
-0.5578924417495728,
-0.6387437582015... |
func (m *ItemSettingsRequestBuilder) Patch(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSettingsable, requestConfiguration *ItemSettingsRequestBuilderPatchRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSettingsable, error) {... | [
-0.5378232598304749,
-0.240543395280838,
0.8009099960327148,
-0.15486910939216614,
-0.9900406002998352,
0.7696558833122253,
0.370023250579834,
-0.24850106239318848,
0.4853692948818207,
0.331298828125,
0.10743476450443268,
0.6628857254981995,
0.01889530010521412,
-0.37178701162338257,
1.5... |
func (m *ItemSettingsRequestBuilder) RegionalAndLanguageSettings()(*ItemSettingsRegionalAndLanguageSettingsRequestBuilder) {
return NewItemSettingsRegionalAndLanguageSettingsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
} | [
-0.7031054496765137,
-0.2630784511566162,
0.2962564527988434,
-0.39648765325546265,
-0.2576553225517273,
0.046597156673669815,
-0.2643474340438843,
-0.5106138586997986,
-0.3525443971157074,
0.44141295552253723,
-0.4394777715206146,
0.5364567637443542,
-0.7878908514976501,
0.424366593360900... |
func (m *ItemSettingsRequestBuilder) ShiftPreferences()(*ItemSettingsShiftPreferencesRequestBuilder) {
return NewItemSettingsShiftPreferencesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
} | [
-1.4267786741256714,
0.3723612427711487,
0.6831199526786804,
0.5904656648635864,
0.02229774370789528,
0.3057733476161957,
-0.19743908941745758,
-0.7914584279060364,
0.46593236923217773,
0.12359929084777832,
0.23786167800426483,
1.0930219888687134,
-0.7816501259803772,
-0.041074443608522415... |
func (m *ItemSettingsRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa52... | [
-0.7856393456459045,
-0.15615086257457733,
0.851970911026001,
-0.956891655921936,
-0.1491675227880478,
-0.003306060330942273,
-0.28154289722442627,
-0.3356907069683075,
0.08754470199346542,
-0.14058974385261536,
0.18312637507915497,
0.2534041106700897,
-0.3521295487880707,
-0.2654951512813... |
func (m *ItemSettingsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemSettingsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7... | [
-1.4036916494369507,
-0.042606156319379807,
0.8247126936912537,
-0.702655553817749,
0.16581080853939056,
-0.24663949012756348,
-0.3242778480052948,
-0.6764877438545227,
-0.025402510538697243,
-0.2323148101568222,
0.06385751813650131,
0.22597050666809082,
-0.48778092861175537,
-0.3247967362... |
func (m *ItemSettingsRequestBuilder) ToPatchRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.UserSettingsable, requestConfiguration *ItemSettingsRequestBuilderPatchRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.Reque... | [
-1.0179961919784546,
-0.31696686148643494,
1.000381350517273,
-0.62159264087677,
-0.6977395415306091,
0.30093860626220703,
0.1355220079421997,
-0.8558300733566284,
-0.1758408099412918,
0.4662988781929016,
0.3588988184928894,
0.045808013528585434,
-0.42628172039985657,
-0.6271587610244751,
... |
func (c *Reconciler) Reconcile(ctx context.Context, key string) error {
// Convert the namespace/name string into a distinct namespace and name
namespace, name, err := cache.SplitMetaNamespaceKey(key)
if err != nil {
logging.FromContext(ctx).Desugar().Error("Invalid resource key")
return nil
}
// Get the Clou... | [
-0.6031402349472046,
-0.07878154516220093,
0.4662873446941376,
-0.5318574905395508,
-0.42153608798980713,
-0.36031436920166016,
0.10830311477184296,
0.15266349911689758,
0.3657713830471039,
0.7927219271659851,
-0.3254317045211792,
0.15383756160736084,
-0.5884127020835876,
0.649467587471008... |
func (c *Reconciler) ensureSinkIsPublisher(ctx context.Context, s *v1alpha1.CloudAuditLogsSource, sink *logadmin.Sink) error {
pubsubClient, err := c.pubsubClientProvider(ctx, s.Status.ProjectID)
if err != nil {
logging.FromContext(ctx).Desugar().Error("Failed to create PubSub client", zap.Error(err))
return err
... | [
0.5247504115104675,
-0.027759743854403496,
0.3517790734767914,
0.8054574728012085,
0.4431855082511902,
0.20044519007205963,
0.1559028923511505,
-0.05095351114869118,
0.3238503634929657,
0.2658776342868805,
0.7135152220726013,
0.16468298435211182,
-1.0899158716201782,
1.266292929649353,
0... |
func (c *Reconciler) deleteSink(ctx context.Context, s *v1alpha1.CloudAuditLogsSource) error {
if s.Status.StackdriverSink == "" {
return nil
}
logadminClient, err := c.logadminClientProvider(ctx, s.Status.ProjectID)
if err != nil {
logging.FromContext(ctx).Desugar().Error("Failed to create LogAdmin client", za... | [
0.3487977087497711,
0.5573407411575317,
0.5562360882759094,
0.11064429581165314,
0.4439118206501007,
-0.38907772302627563,
0.7822954058647156,
-0.18553662300109863,
0.5912750363349915,
-0.7718164324760437,
0.4653064012527466,
1.2305376529693604,
-0.18702925741672516,
1.2137082815170288,
... |
func (r *Reconciler) updateFinalizers(ctx context.Context, desired *v1alpha1.CloudAuditLogsSource) (*v1alpha1.CloudAuditLogsSource, bool, error) {
s, err := r.auditLogsSourceLister.CloudAuditLogsSources(desired.Namespace).Get(desired.Name)
if err != nil {
return nil, false, err
}
// Don't modify the informers co... | [
-1.3061310052871704,
-0.4633939266204834,
0.6995500326156616,
-0.4629439413547516,
-0.11094722151756287,
-0.005861935671418905,
-0.1438024640083313,
0.07922137528657913,
0.5617988109588623,
0.40525636076927185,
-0.26849624514579773,
0.18532781302928925,
-1.0087823867797852,
0.0463662073016... |
func NewControllerRunOptions() *ControllerRunOptions {
return &ControllerRunOptions{
KubeConfig: "",
CAFile: "/var/run/agent/ca.crt",
LogCertSecret: "ocm-klusterlet-self-signed-secrets",
EnableInventory: true,
EnableLeaderElection: true,
EnableRBAC: false,
QP... | [
0.5945460200309753,
-1.2697776556015015,
0.40789932012557983,
0.5974377989768982,
0.3222290575504303,
0.2355022132396698,
0.03352021798491478,
-0.09430887550115585,
0.28712186217308044,
0.005562387406826019,
-0.7722551822662354,
0.8343856334686279,
-0.8811971545219421,
0.7116888165473938,
... |
func (o *ControllerRunOptions) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&o.KubeConfig, "kubeconfig", "",
"The kubeconfig to connect to cluster to watch/apply resources.")
fs.StringVar(&o.CAFile, "agent-cafile", o.CAFile, ""+
"Agent CA file.")
fs.StringVar(&o.LogCertSecret, "log-cert-secret", o.LogCertSecret,
... | [
0.29274284839630127,
-0.32351818680763245,
0.6512564420700073,
-0.1389756202697754,
0.9242051243782043,
0.31751781702041626,
-0.15218374133110046,
-0.07948500663042068,
-0.4875299036502838,
-0.8532297015190125,
-0.38087213039398193,
0.04477974399924278,
-0.7730271220207214,
0.8488007783889... |
func Authenticate(res http.ResponseWriter, req *http.Request) {
var (
query strings.Builder
msg string
)
user := new(model.User)
data := req.Context().Value("data").(*validation.Authenticate)
otpHash, _ := bcrypt.GenerateFromPassword([]byte(helpers.GenerateOTP(constants.OTPLength)), bcrypt.MinCost)
isEmail ... | [
-0.6290470361709595,
-0.4738718867301941,
0.9447440505027771,
0.5503115057945251,
-0.23688846826553345,
0.3335298001766205,
-0.06179133802652359,
-0.2922880947589874,
0.7141966223716736,
0.7006612420082092,
-0.028217211365699768,
-0.7959208488464355,
-1.276003360748291,
-0.2610242962837219... |
func Login(res http.ResponseWriter, req *http.Request) {
user := new(model.User)
ID := req.Context().Value("ID").(string)
data := req.Context().Value("data").(*validation.Login)
now := time.Now().Unix()
response := make(map[string]interface{})
docKey, err := connectors.ReadDocument("users", ID, user)
if err != n... | [
-0.7284805774688721,
-0.3185107707977295,
0.9584682583808899,
0.09761445224285126,
-0.8493022918701172,
0.35643377900123596,
0.05925705283880234,
0.23570594191551208,
0.5572338700294495,
0.18046118319034576,
0.07763344794511795,
-0.2902184724807739,
0.46354469656944275,
-0.4877698421478271... |
func GetUser(res http.ResponseWriter, req *http.Request) {
var response responses.User
user := new(model.User)
ID := req.Context().Value("ID").(string)
docKey, err := connectors.ReadDocument("users", ID, user)
if err != nil {
render.Render(res, req, responses.NewHTTPError(http.StatusServiceUnavailable, constants... | [
-0.946280300617218,
-0.04372403398156166,
0.7180611491203308,
0.8566462397575378,
-0.2379663586616516,
0.13091126084327698,
0.651627779006958,
-0.24342672526836395,
0.5077555179595947,
-0.09510181099176407,
0.28532207012176514,
-0.20750120282173157,
0.0771886482834816,
0.07420612126588821,... |
func UpdateUser(res http.ResponseWriter, req *http.Request) {
var response responses.User
user := new(model.User)
ID := req.Context().Value("ID").(string)
data := req.Context().Value("data").(*validation.UpdateUser)
now := time.Now()
docKey, err := connectors.ReadDocument("users", ID, user)
if err != nil {
ren... | [
-1.483110785484314,
-0.674569845199585,
0.7980411052703857,
0.46957921981811523,
-0.6974143981933594,
0.29129257798194885,
0.5991159677505493,
-0.3672584593296051,
0.13444407284259796,
-0.023687681183218956,
-0.14335046708583832,
-0.14251193404197693,
0.026075799018144608,
0.15296962857246... |
func Logout(res http.ResponseWriter, req *http.Request) {
tokenID := req.Context().Value("tokenID").(string)
response := make(map[string]interface{})
msg := constants.Logout
_, err := connectors.RemoveDocument("tokens", tokenID)
if err != nil {
render.Render(res, req, responses.NewHTTPError(http.StatusServiceUna... | [
-0.3972674012184143,
-0.7311878800392151,
0.6333717107772827,
-1.396167516708374,
-0.613491415977478,
-0.013142811134457588,
-0.4597548246383667,
0.17750582098960876,
0.534227192401886,
0.6276332139968872,
0.07009913772344589,
0.13633699715137482,
-0.5203642845153809,
-0.34798750281333923,... |
func RefreshToken(res http.ResponseWriter, req *http.Request) {
ID := req.Context().Value("ID").(string)
tokenID := req.Context().Value("tokenID").(string)
response := make(map[string]interface{})
docKey, err := connectors.ReadDocument("users", ID, nil)
if err != nil {
render.Render(res, req, responses.NewHTTPEr... | [
-0.3433244526386261,
-0.33289968967437744,
0.9781216382980347,
-0.12459903210401535,
-0.5143689513206482,
0.11768259108066559,
0.06586944311857224,
0.199563130736351,
0.27687641978263855,
0.5299111008644104,
-0.13018348813056946,
0.7066712379455566,
0.7519293427467346,
0.321938157081604,
... |
func BmGetStringOrDefault(c *bm.Context, key string, defaul string) (value string, exist bool) {
i, exist := c.Get(key)
if !exist {
value = defaul
return
}
value, exist = i.(string)
if !exist {
value = defaul
}
return
} | [
0.1618908792734146,
-0.01579650305211544,
0.7467272877693176,
0.3181835114955902,
0.4454495906829834,
-0.9267534613609314,
-0.8332081437110901,
-0.22163327038288116,
-0.5828208327293396,
0.7312285900115967,
0.05230657011270523,
0.5090052485466003,
-1.0787287950515747,
-0.048794619739055634... |
func BmGetInt64OrDefault(c *bm.Context, key string, defaul int64) (value int64, exist bool) {
i, exist := c.Get(key)
if !exist {
value = defaul
return
}
value, exist = i.(int64)
if !exist {
value = defaul
}
return
} | [
-0.2074050009250641,
-0.06622710078954697,
0.4739413261413574,
0.910365104675293,
0.35456380248069763,
-0.7485180497169495,
-0.42978915572166443,
-0.09013926982879639,
-0.05947045236825943,
0.9547366499900818,
-0.6285748481750488,
0.16135656833648682,
-1.0823291540145874,
0.331653952598571... |
func Merge(files []string, output string) error {
blocks := make(map[string][]cover.ProfileBlock)
var mode string
for _, f := range files {
profiles, err := cover.ParseProfiles(f)
if err != nil {
return err
}
for _, p := range profiles {
if mode == "" {
mode = p.Mode
}
if mode != p.Mode {
... | [
0.27359840273857117,
-0.4191162884235382,
1.2777125835418701,
0.7176840901374817,
-0.3104695677757263,
0.2353864461183548,
1.4705555438995361,
-0.42984628677368164,
-0.789490282535553,
0.15783865749835968,
-0.5696234107017517,
-0.4776342809200287,
-0.4911476671695709,
0.46692419052124023,
... |
func list(packages []string) ([]string, error) {
args := append([]string{"list"}, packages...)
cmd := exec.Command("go", args...)
cmd.Stderr = os.Stderr
b, err := cmd.Output()
if err != nil {
return nil, err
}
var res []string
lines := strings.Split(string(b), "\n")
for _, l := range lines {
l = strings.T... | [
-0.04038679227232933,
-0.33703678846359253,
0.651264488697052,
-0.037588004022836685,
0.48203983902931213,
-0.4162157475948334,
-0.8683775067329407,
0.5863612294197083,
0.45611563324928284,
0.646175742149353,
-0.22532248497009277,
0.22086632251739502,
-0.7303844094276428,
1.012544751167297... |
func (ft *FacadeUnitTest) Test_GetEvaluatedServiceSimple(c *C) {
serviceID := "0"
serviceName := "service0"
svc := service.Service{
ID: serviceID,
Name: serviceName,
Actions: map[string]string{"name": "{{.Name}}", "instanceID": "{{.InstanceID}}"},
}
ft.serviceStore.On("GetServiceDetails", ft.ctx, ser... | [
0.06462772190570831,
-0.019789179787039757,
0.46446630358695984,
-0.6380992531776428,
0.4820172190666199,
0.2733885943889618,
0.025918666273355484,
-0.289702445268631,
0.1914602518081665,
-1.1759113073349,
0.11912628263235092,
0.43434348702430725,
-0.36667731404304504,
0.1060493066906929,
... |
func (ft *FacadeUnitTest) Test_GetEvaluatedServiceUsesParent(c *C) {
parentID := "parentServiceID"
parentName := "parentServiceName"
parentSvc := service.Service{
ID: parentID,
Name: parentName,
}
childID := "childServiceID"
childName := "childServiceName"
childSvc := service.Service{
ID: ch... | [
0.4490848779678345,
-0.16427193582057953,
0.6391453742980957,
-0.5383162498474121,
0.517340362071991,
0.05622922256588936,
0.3817828595638275,
-0.469521164894104,
-0.4745628237724304,
-0.7096649408340454,
0.17489978671073914,
0.33311232924461365,
-0.23652894794940948,
0.4203508794307709,
... |
func (ft *FacadeUnitTest) Test_GetEvaluatedServiceUsesChild(c *C) {
parentID := "parentServiceID"
parentName := "parentServiceName"
deploymentID := "testDeployment"
parentSvc := service.Service{
ID: parentID,
Name: parentName,
DeploymentID: deploymentID,
Actions: map[string]string{"ch... | [
0.5811001062393188,
-0.287585586309433,
0.7924835085868835,
-0.4469001889228821,
0.1839018315076828,
0.29203352332115173,
-0.05867433920502663,
-0.5501508712768555,
-0.2379446178674698,
-0.7553449273109436,
-0.23659630119800568,
0.11977257579565048,
-0.2390965223312378,
0.03328819945454597... |
func (ft *FacadeUnitTest) Test_GetEvaluatedServiceGetParentFails(c *C) {
parentID := "parentServiceID"
childID := "childServiceID"
childName := "childServiceName"
childSvc := service.Service{
ID: childID,
Name: childName,
ParentServiceID: parentID,
Actions: map[string]string{... | [
0.3140616714954376,
0.09428292512893677,
0.7521934509277344,
-0.5591616034507751,
0.6654740571975708,
0.22819779813289642,
-0.16355358064174652,
-0.7722904086112976,
-0.49344539642333984,
-1.1484678983688354,
-0.011129961349070072,
0.3384729325771332,
-0.4418901801109314,
0.537664175033569... |
func (ft *FacadeUnitTest) Test_GetEvaluatedServiceGetChildFails(c *C) {
parentID := "parentServiceID"
parentName := "parentServiceName"
deploymentID := "testDeployment"
parentSvc := service.Service{
ID: parentID,
Name: parentName,
DeploymentID: deploymentID,
Actions: map[string]string... | [
0.4056321382522583,
0.10323809832334518,
0.7568531036376953,
-0.42890557646751404,
0.4579538404941559,
0.12428980320692062,
0.07795432955026627,
-0.7653550505638123,
-0.5941376686096191,
-0.6823362112045288,
-0.018314609304070473,
0.10533425211906433,
-0.33132991194725037,
0.60952770709991... |
func getRandomServiceID(c *C) string {
serviceID, err := utils.NewUUID()
if err != nil {
c.Fatalf("Failed to generate random service ID: %s", err)
}
return serviceID
} | [
0.09131426364183426,
-0.2036554515361786,
0.38087108731269836,
-0.16743257641792297,
-0.5628031492233276,
0.9786537885665894,
-0.02876228839159012,
-0.16316524147987366,
0.5641384124755859,
-0.19303160905838013,
0.5135630965232849,
0.9692720174789429,
-0.5786393880844116,
0.990872740745544... |
func (*ExecuteFunctionOnRegionRequest) Descriptor() ([]byte, []int) {
return file_v1_function_API_proto_rawDescGZIP(), []int{0}
} | [
-1.2760988473892212,
-0.5322772264480591,
0.5959257483482361,
0.06729055196046829,
0.01962359994649887,
0.26625221967697144,
0.08016437292098999,
0.06378244608640671,
-0.5113019347190857,
0.35580113530158997,
0.8529197573661804,
1.2174335718154907,
0.16010329127311707,
0.5167530179023743,
... |
func (*ExecuteFunctionOnRegionResponse) Descriptor() ([]byte, []int) {
return file_v1_function_API_proto_rawDescGZIP(), []int{1}
} | [
-0.48386090993881226,
-0.7420737147331238,
0.039418142288923264,
-0.37323620915412903,
0.3932775557041168,
-0.3020390272140503,
0.4812830090522766,
-0.05965914577245712,
-0.14423179626464844,
0.6506461501121521,
-0.21783258020877838,
-0.13311269879341125,
-0.7598245739936829,
-0.2024994194... |
func (*ExecuteFunctionOnMemberRequest) Descriptor() ([]byte, []int) {
return file_v1_function_API_proto_rawDescGZIP(), []int{2}
} | [
-1.0907591581344604,
-0.07255053520202637,
0.541749894618988,
0.15634207427501678,
-0.09112410992383957,
0.29312729835510254,
-0.06018958240747452,
0.07727166265249252,
-0.21732164919376373,
0.22604703903198242,
0.12668770551681519,
0.7166550159454346,
-0.5056138038635254,
0.66449522972106... |
func (*ExecuteFunctionOnMemberResponse) Descriptor() ([]byte, []int) {
return file_v1_function_API_proto_rawDescGZIP(), []int{3}
} | [
-0.3079015612602234,
-0.36373746395111084,
0.05133873596787453,
-0.24441878497600555,
0.2814610004425049,
-0.6155475378036499,
0.28267917037010193,
-0.28967124223709106,
-0.15836799144744873,
0.37327155470848083,
-0.6539416313171387,
-0.08382635563611984,
-1.197609543800354,
-0.26715955138... |
func (*ExecuteFunctionOnGroupRequest) Descriptor() ([]byte, []int) {
return file_v1_function_API_proto_rawDescGZIP(), []int{4}
} | [
-1.6330543756484985,
0.3426109254360199,
0.8058137893676758,
-0.03798045217990875,
0.4449663758277893,
-0.2640717923641205,
0.45652318000793457,
-0.17213614284992218,
-1.285348892211914,
0.4291176497936249,
0.45704010128974915,
0.9954532384872437,
-0.5851477980613708,
0.6177230477333069,
... |
func (*ExecuteFunctionOnGroupResponse) Descriptor() ([]byte, []int) {
return file_v1_function_API_proto_rawDescGZIP(), []int{5}
} | [
-0.8534635305404663,
0.1867818534374237,
0.12833690643310547,
-0.3209000825881958,
0.5902416110038757,
-0.835232138633728,
0.5601048469543457,
-0.23470480740070343,
-0.9576773643493652,
0.7247619032859802,
-0.22220945358276367,
-0.03945574909448624,
-1.197698950767517,
-0.3016008734703064,... |
func ExampleUserAgent() {
// whatismybrowser.com maintains a database of UserAgents
// https://www.whatismybrowser.com/guides/the-latest-user-agent/chrome
opt := SearchOptions{
CountryCode: "au",
UserAgent: "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/5... | [
0.1797104924917221,
-0.49311351776123047,
0.5667255520820618,
-0.40510645508766174,
0.0007663722499273717,
-0.1337842345237732,
0.36376866698265076,
-0.4898013174533844,
1.615336537361145,
-0.037015337496995926,
-0.12077230960130692,
0.6132792234420776,
-0.026403967291116714,
-0.0361496061... |
func New(m string) error {
return errors{
msg: m,
fileInfo: getFileInfo(),
}
} | [
0.49417319893836975,
-1.899542212486267,
0.14612211287021637,
-0.4841795861721039,
-0.8391897082328796,
-0.14690005779266357,
-0.24529583752155304,
-0.081734299659729,
-1.0504727363586426,
-0.43256211280822754,
0.2913839817047119,
0.21756619215011597,
0.7376961708068848,
0.8491448163986206... |
func Wrap(e error) error {
return &errors{
msg: e.Error(),
fileInfo: getFileInfo(),
}
} | [
-0.49489566683769226,
-1.0296136140823364,
0.10573387145996094,
0.16887705028057098,
-0.3262714445590973,
0.6855394244194031,
-0.6988576650619507,
-0.23753847181797028,
0.5095353722572327,
0.19266152381896973,
0.7713719606399536,
0.18502739071846008,
1.1863255500793457,
0.3389628231525421,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.