text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (c *ClaimsSearchCall) Offset(offset int64) *ClaimsSearchCall {
c.urlParams_.Set("offset", fmt.Sprint(offset))
return c
} | [
-0.2648584246635437,
0.23144137859344482,
0.3222655653953552,
-0.5156759023666382,
0.3058689534664154,
1.457098126411438,
0.09258506447076797,
0.5167766213417053,
0.37612617015838623,
-0.18336473405361176,
0.0522618442773819,
0.8797450065612793,
0.27036309242248535,
0.3129939138889313,
-... |
func (c *ClaimsSearchCall) PageSize(pageSize int64) *ClaimsSearchCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
} | [
-0.22863611578941345,
0.8097167015075684,
0.4853222668170929,
-0.5301339626312256,
0.9513985514640808,
0.35238733887672424,
-0.4477931261062622,
-0.0235021710395813,
0.6270603537559509,
-0.17533475160598755,
0.5856708288192749,
0.7663429379463196,
-0.07692025601863861,
0.23808133602142334,... |
func (c *ClaimsSearchCall) PageToken(pageToken string) *ClaimsSearchCall {
c.urlParams_.Set("pageToken", pageToken)
return c
} | [
0.1551290601491928,
-0.018908457830548286,
0.4631533622741699,
-0.5133652091026306,
0.9617078304290771,
0.5535769462585449,
-0.49560022354125977,
0.8229250907897949,
0.5315093994140625,
-0.5625318884849548,
-0.546570360660553,
1.1794887781143188,
0.33472612500190735,
0.3099142014980316,
... |
func (c *ClaimsSearchCall) Query(query string) *ClaimsSearchCall {
c.urlParams_.Set("query", query)
return c
} | [
0.3245830237865448,
0.2052132785320282,
0.14459489285945892,
-0.22286972403526306,
0.5614561438560486,
0.5412806868553162,
-0.9682632088661194,
0.40173980593681335,
0.8876795172691345,
-0.6570577025413513,
0.13614268600940704,
0.7261868715286255,
0.3276076912879944,
0.2685357928276062,
-... |
func (c *ClaimsSearchCall) ReviewPublisherSiteFilter(reviewPublisherSiteFilter string) *ClaimsSearchCall {
c.urlParams_.Set("reviewPublisherSiteFilter", reviewPublisherSiteFilter)
return c
} | [
-0.11752872169017792,
-0.10378076136112213,
-0.03183351084589958,
-0.40347719192504883,
-1.0829967260360718,
0.6617299914360046,
-0.11597544699907303,
0.39554041624069214,
0.3523540496826172,
-0.26331114768981934,
0.25940078496932983,
0.8059946298599243,
-0.5864284038543701,
-0.41483724117... |
func (c *ClaimsSearchCall) Fields(s ...googleapi.Field) *ClaimsSearchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
} | [
-0.5990651249885559,
1.0448260307312012,
0.30299776792526245,
-0.7303797602653503,
1.5263701677322388,
1.0356285572052002,
-0.4805842339992523,
-0.154983788728714,
0.11863446980714798,
-0.7350483536720276,
-0.2060324251651764,
0.19760946929454803,
-0.18388774991035461,
0.08151750266551971,... |
func (c *ClaimsSearchCall) IfNoneMatch(entityTag string) *ClaimsSearchCall {
c.ifNoneMatch_ = entityTag
return c
} | [
0.280800461769104,
0.5308967232704163,
0.350135862827301,
-0.7793399691581726,
0.6178418397903442,
-0.09199191629886627,
0.10792481154203415,
-0.09113793820142746,
-0.0045644016936421394,
-0.31781530380249023,
-0.10063236951828003,
0.003747376846149564,
0.25748810172080994,
1.1094260215759... |
func (c *ClaimsSearchCall) Context(ctx context.Context) *ClaimsSearchCall {
c.ctx_ = ctx
return c
} | [
0.11560021340847015,
0.5017703175544739,
0.3014194369316101,
-0.7277480363845825,
0.4362926185131073,
1.4080060720443726,
-0.47115471959114075,
-0.5458329916000366,
1.168811559677124,
-0.8831542730331421,
-0.7507748007774353,
1.090834617614746,
0.9803592562675476,
-0.16049769520759583,
-... |
func (c *ClaimsSearchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
} | [
0.11593140661716461,
0.6784930229187012,
0.4702635407447815,
0.25491440296173096,
0.03322291001677513,
0.6909879446029663,
-0.07359063625335693,
-0.2553829848766327,
0.7191405296325684,
-1.0435993671417236,
0.41015127301216125,
0.7144367694854736,
-0.3414524495601654,
-0.5561410188674927,
... |
func (c *ClaimsSearchCall) Pages(ctx context.Context, f func(*GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err :=... | [
-0.42167630791664124,
0.48385336995124817,
0.26386186480522156,
-0.4947081506252289,
0.6027948260307312,
0.20517759025096893,
-0.31738612055778503,
-0.2657679319381714,
0.41964060068130493,
-0.25962018966674805,
0.9186335802078247,
-0.10841036587953568,
0.2933339476585388,
0.06171322986483... |
func (r *PagesService) Create(googlefactcheckingfactchecktoolsv1alpha1claimreviewmarkuppage *GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage) *PagesCreateCall {
c := &PagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.googlefactcheckingfactchecktoolsv1alpha1claimreviewmarkuppage = googlef... | [
0.2568363845348358,
0.31509605050086975,
0.46973633766174316,
-0.42394140362739563,
0.5166000723838806,
0.7109881639480591,
-0.4561954736709595,
-0.29570746421813965,
-0.14093336462974548,
0.04757534712553024,
1.070233941078186,
-0.40196600556373596,
0.029738986864686012,
0.390213221311569... |
func (c *PagesCreateCall) Fields(s ...googleapi.Field) *PagesCreateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
} | [
-0.754695475101471,
0.8511772751808167,
0.2621944844722748,
-0.6461763381958008,
1.6335222721099854,
1.3532161712646484,
-0.3196098506450653,
-0.39878612756729126,
0.12221264839172363,
-0.43558254837989807,
-0.4444310963153839,
-0.4357281029224396,
-0.0475262850522995,
0.7138900756835938,
... |
func (c *PagesCreateCall) Context(ctx context.Context) *PagesCreateCall {
c.ctx_ = ctx
return c
} | [
0.020061586052179337,
0.29477423429489136,
0.21413621306419373,
-0.5532270073890686,
0.9230060577392578,
1.5165950059890747,
-0.1201285570859909,
-0.5586530566215515,
1.1263569593429565,
-0.6641272902488708,
-0.6486400365829468,
0.10597918927669525,
0.7741574048995972,
0.26380905508995056,... |
func (c *PagesCreateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
} | [
0.271492600440979,
0.41049161553382874,
0.47438234090805054,
0.4907589852809906,
0.06450279802083969,
0.7666924595832825,
0.13811901211738586,
-0.3521713614463806,
0.7410429120063782,
-1.0712025165557861,
0.07373824715614319,
0.04514634609222412,
-0.18604716658592224,
0.14068056643009186,
... |
func (c *PagesDeleteCall) Fields(s ...googleapi.Field) *PagesDeleteCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
} | [
-0.4161751866340637,
0.6072385311126709,
0.26680970191955566,
-0.8608474135398865,
1.5773730278015137,
0.9963418841362,
-0.3460361361503601,
-0.005245089530944824,
0.4272782504558563,
-0.34276634454727173,
-0.0920790433883667,
-0.19218839704990387,
-0.020087001845240593,
0.3607068955898285... |
func (c *PagesDeleteCall) Context(ctx context.Context) *PagesDeleteCall {
c.ctx_ = ctx
return c
} | [
0.22969025373458862,
-0.15461674332618713,
0.2615792751312256,
-0.809815526008606,
0.6690996885299683,
1.122410535812378,
-0.3753812611103058,
-0.24472010135650635,
1.4681638479232788,
-0.28153249621391296,
-0.3628067970275879,
0.674270749092102,
0.8453621864318848,
-0.20395782589912415,
... |
func (c *PagesDeleteCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
} | [
0.38098421692848206,
0.12095493078231812,
0.45656633377075195,
0.27957066893577576,
-0.07332669943571091,
0.48888468742370605,
-0.013686892576515675,
0.01901422068476677,
0.9802271127700806,
-0.7629326581954956,
0.31418555974960327,
0.3999650478363037,
-0.26454809308052063,
-0.255147218704... |
func (c *PagesGetCall) Fields(s ...googleapi.Field) *PagesGetCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
} | [
-0.7318413257598877,
0.8145739436149597,
0.2938157916069031,
-0.784835696220398,
1.577856421470642,
0.9628965854644775,
-0.5443702936172485,
-0.35618090629577637,
0.2981044352054596,
-0.59824538230896,
-0.04319683462381363,
0.03845364972949028,
-0.14923349022865295,
0.3553597629070282,
-... |
func (c *PagesGetCall) IfNoneMatch(entityTag string) *PagesGetCall {
c.ifNoneMatch_ = entityTag
return c
} | [
0.4280623495578766,
0.4895138144493103,
0.3974710702896118,
-0.7189074158668518,
0.7851008176803589,
-0.4706382155418396,
-0.05944211781024933,
-0.06645330786705017,
0.31905049085617065,
-0.10102365165948868,
-0.0812542662024498,
-0.1367773860692978,
-0.11651528626680374,
1.324358224868774... |
func (c *PagesGetCall) Context(ctx context.Context) *PagesGetCall {
c.ctx_ = ctx
return c
} | [
0.0640125647187233,
0.11122097074985504,
0.4215981066226959,
-0.6285675764083862,
0.7452004551887512,
1.0625089406967163,
-0.5556489825248718,
-0.47509580850601196,
1.419649600982666,
-0.6592692732810974,
-0.3008083999156952,
0.9094641804695129,
0.6410147547721863,
0.0050092595629394054,
... |
func (c *PagesGetCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
} | [
0.21039102971553802,
0.2449621707201004,
0.5249559879302979,
0.2784854471683502,
-0.06656963378190994,
0.5343478918075562,
-0.188069686293602,
-0.21607904136180878,
0.8855053782463074,
-1.0303821563720703,
0.25640425086021423,
0.43533504009246826,
-0.31553909182548523,
-0.1524348109960556,... |
func (r *PagesService) List() *PagesListCall {
c := &PagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
return c
} | [
-0.17050223052501678,
-0.09591617435216904,
0.5229378342628479,
-0.1046995297074318,
0.7178787589073181,
-0.06671412289142609,
-0.58058100938797,
-0.2790728807449341,
0.7743008732795715,
0.18636222183704376,
-0.6246039867401123,
0.38514062762260437,
0.1421377807855606,
0.5379733443260193,
... |
func (c *PagesListCall) Offset(offset int64) *PagesListCall {
c.urlParams_.Set("offset", fmt.Sprint(offset))
return c
} | [
-0.4973098933696747,
-0.15275853872299194,
0.38311344385147095,
-0.4053139388561249,
0.06012453883886337,
1.3970212936401367,
-0.09059935808181763,
0.6671811938285828,
0.732721745967865,
0.2635842561721802,
-0.5960896611213684,
0.27084586024284363,
0.36113765835762024,
1.15297532081604,
... |
func (c *PagesListCall) Organization(organization string) *PagesListCall {
c.urlParams_.Set("organization", organization)
return c
} | [
-0.391966313123703,
0.33431920409202576,
0.19529402256011963,
0.4226702153682709,
0.6091260313987732,
0.37279391288757324,
0.09499514847993851,
0.10618865489959717,
0.7679170966148376,
0.7728371620178223,
-0.42418918013572693,
0.5289642214775085,
0.9675003886222839,
1.2734581232070923,
-... |
func (c *PagesListCall) PageSize(pageSize int64) *PagesListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
} | [
-0.7165917158126831,
0.7478150129318237,
0.4374353289604187,
-0.2771907150745392,
0.6966918706893921,
0.2194378525018692,
-0.36648741364479065,
0.06140512973070145,
0.8045949935913086,
0.24942249059677124,
-0.26767095923423767,
0.09202557057142258,
-0.03518518805503845,
0.8991864919662476,... |
func (c *PagesListCall) PageToken(pageToken string) *PagesListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
} | [
-0.14155572652816772,
-0.16913673281669617,
0.3504088521003723,
-0.2708650231361389,
0.813100278377533,
0.4388725161552429,
-0.4036876857280731,
1.0973403453826904,
0.7885615825653076,
-0.18228492140769958,
-1.4647586345672607,
0.759826123714447,
0.3113681674003601,
0.6959921717643738,
-... |
func (c *PagesListCall) Url(url string) *PagesListCall {
c.urlParams_.Set("url", url)
return c
} | [
0.017619440332055092,
0.21225102245807648,
0.3496551513671875,
0.13502463698387146,
0.4626120328903198,
0.9401644468307495,
-0.23390696942806244,
0.9596736431121826,
0.9405857920646667,
0.10798083990812302,
-1.1300592422485352,
0.17504799365997314,
-0.26693466305732727,
0.7274721264839172,... |
func (c *PagesListCall) Fields(s ...googleapi.Field) *PagesListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
} | [
-0.7220543622970581,
0.45759373903274536,
0.29202771186828613,
-0.6891831755638123,
1.226904034614563,
1.0038766860961914,
-0.5726622343063354,
-0.08373081684112549,
0.4694523811340332,
-0.4508722126483917,
-0.4719201922416687,
-0.18518012762069702,
-0.05396178737282753,
0.710818886756897,... |
func (c *PagesListCall) IfNoneMatch(entityTag string) *PagesListCall {
c.ifNoneMatch_ = entityTag
return c
} | [
0.23711256682872772,
0.3354429006576538,
0.3890833854675293,
-0.5751408934593201,
0.5666394829750061,
-0.35576769709587097,
-0.03677060827612877,
0.09903966635465622,
0.3813360631465912,
-0.04428310692310333,
-0.4317893385887146,
-0.3709777891635895,
-0.15929903090000153,
1.754558324813842... |
func (c *PagesListCall) Context(ctx context.Context) *PagesListCall {
c.ctx_ = ctx
return c
} | [
-0.1723776012659073,
-0.21664564311504364,
0.27352845668792725,
-0.3913920819759369,
0.24005261063575745,
1.0797721147537231,
-0.4663766026496887,
-0.2579161524772644,
1.6408822536468506,
-0.5072439908981323,
-0.9162255525588989,
0.5924773812294006,
0.8646180629730225,
0.23771631717681885,... |
func (c *PagesListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
} | [
0.1469346284866333,
0.05255555734038353,
0.4988698959350586,
0.42663127183914185,
-0.2269468605518341,
0.5387759804725647,
-0.32077062129974365,
-0.0694594457745552,
1.0261940956115723,
-0.8238229155540466,
-0.2654857337474823,
0.12243764102458954,
-0.295135498046875,
0.1756054013967514,
... |
func (c *PagesListCall) Pages(ctx context.Context, f func(*GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err :... | [
-0.4484182298183441,
0.20015382766723633,
0.2947620451450348,
-0.6173544526100159,
0.26515325903892517,
0.05848987028002739,
-0.6777988076210022,
0.10692115873098373,
0.7688358426094055,
-0.20420999825000763,
1.0092085599899292,
0.1615552306175232,
0.04495988413691521,
0.3622911274433136,
... |
func (c *PagesUpdateCall) Fields(s ...googleapi.Field) *PagesUpdateCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
} | [
-0.9287257790565491,
0.389518678188324,
0.2820635437965393,
-0.6421536803245544,
1.0348410606384277,
1.0101826190948486,
-0.4136331081390381,
0.012884058989584446,
0.41395238041877747,
-0.11817149817943573,
-0.39513784646987915,
-0.3461153209209442,
-0.29469022154808044,
0.3237143456935882... |
func (c *PagesUpdateCall) Context(ctx context.Context) *PagesUpdateCall {
c.ctx_ = ctx
return c
} | [
-0.21745187044143677,
-0.36219972372055054,
0.31567636132240295,
-0.4751800298690796,
0.06259063631296158,
1.1208703517913818,
-0.3572317659854889,
-0.12839606404304504,
1.6423330307006836,
-0.2085062712430954,
-0.8228399753570557,
0.2144099622964859,
0.5497302412986755,
-0.246809273958206... |
func (c *PagesUpdateCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
} | [
0.029088245704770088,
-0.14249704778194427,
0.5018917918205261,
0.3697045147418976,
-0.5204587578773499,
0.570857048034668,
-0.05142222344875336,
-0.12463349103927612,
0.994681179523468,
-0.5780876874923706,
0.1595117300748825,
-0.005932456813752651,
-0.4285953938961029,
-0.296967953443527... |
func ExamplePolicyFunc() {
r := referrer.New()
const CUSTOM_POLICY referrer.Policy = 8
var customPolicyFunc = func(fromURL, toURL string) (referer string) {
from, err := referrer.Parse(fromURL)
if err != nil {
return
}
to, err := referrer.Parse(toURL)
if err != nil {
return
}
if from.TLS && t... | [
1.080703616142273,
0.08844486624002457,
0.4039478600025177,
-0.9648245573043823,
-0.4575117826461792,
0.4223797619342804,
-0.29202932119369507,
0.6360254287719727,
0.8438217639923096,
0.38290202617645264,
-0.4093345105648041,
0.9472878575325012,
1.0103282928466797,
-0.08782299607992172,
... |
func (Token) LogValue() slog.Value {
return slog.StringValue("REDACTED_TOKEN")
} | [
0.7266042232513428,
0.2292081117630005,
0.37200862169265747,
-0.5108901858329773,
0.015327293425798416,
-0.04133469611406326,
-1.4664160013198853,
0.36046427488327026,
0.3870973587036133,
-0.05164197087287903,
-0.8505157232284546,
1.6706244945526123,
0.9474911093711853,
0.329856812953949,
... |
func ExampleLogValuer_secret() {
t := Token("shhhh!")
logger := slog.New(slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{ReplaceAttr: testutil.RemoveTime}))
logger.Info("permission granted", "user", "Perry", "token", t)
// Output:
// level=INFO msg="permission granted" user=Perry token=REDACTED_TOKEN
} | [
0.7195234894752502,
0.09287890791893005,
0.5949823260307312,
0.23084518313407898,
-0.5185127258300781,
0.24435146152973175,
-1.059842586517334,
0.5243428945541382,
-0.5017693638801575,
-0.11308947950601578,
-1.2640061378479004,
0.5031769871711731,
0.6253315806388855,
0.5519911646842957,
... |
func (c *Client) DescribeHostKey(ctx context.Context, params *DescribeHostKeyInput, optFns ...func(*Options)) (*DescribeHostKeyOutput, error) {
if params == nil {
params = &DescribeHostKeyInput{}
}
result, metadata, err := c.invokeOperation(ctx, "DescribeHostKey", params, optFns, c.addOperationDescribeHostKeyMidd... | [
-1.0165839195251465,
1.2352544069290161,
0.8142091631889343,
0.5984465479850769,
0.35236623883247375,
-0.8075529932975769,
0.2594478130340576,
-0.7995243668556213,
-0.5563154220581055,
0.5856315493583679,
-0.4261915683746338,
1.7053009271621704,
-0.45724228024482727,
0.2740365266799927,
... |
func IndexHandler(entrypoint string) func(w http.ResponseWriter, r *http.Request) {
fn := func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, entrypoint)
}
return http.HandlerFunc(fn)
} | [
0.24646414816379547,
-0.8687391877174377,
0.3375951647758484,
0.037397101521492004,
-0.5150454640388489,
0.435775488615036,
1.0106966495513916,
0.8266238570213318,
-0.11515477299690247,
-0.294420450925827,
0.47152742743492126,
-0.4871319532394409,
-0.17440731823444366,
-0.7143718004226685,... |
func APIHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello World")
} | [
-0.17601649463176727,
-1.0818918943405151,
0.5522591471672058,
-0.29313385486602783,
-0.6187471747398376,
0.9395816326141357,
0.5766798257827759,
0.6493214964866638,
-0.12320985645055771,
-0.1310865730047226,
0.043419335037469864,
-0.9022236466407776,
-0.662134051322937,
-0.265681236982345... |
func MailHandler(w http.ResponseWriter, r *http.Request) {
var email Email
body, err := ioutil.ReadAll(r.Body)
if err := r.Body.Close(); err != nil {
log.Println("Error: " + err.Error())
w.WriteHeader(400)
}
if err := json.Unmarshal(body, &email); err != nil {
w.Header().Set("Content-Type", "application/j... | [
-0.14517855644226074,
-0.01304413191974163,
0.9599083065986633,
-0.3827672302722931,
-0.18281705677509308,
0.597900390625,
0.03867321088910103,
-0.1566074937582016,
-0.13713392615318298,
0.8674759864807129,
-0.26693153381347656,
1.0943701267242432,
0.17495344579219818,
-0.03084382601082325... |
func (zc *Zcounter) Label(l string) {
zc.label = l
} | [
0.5436162352561951,
-0.4107216000556946,
0.19899682700634003,
-0.21871940791606903,
0.4992224872112274,
1.132503867149353,
1.1624258756637573,
0.21840053796768188,
0.9675763845443726,
0.06895473599433899,
-1.0801551342010498,
-0.25383636355400085,
-0.69218510389328,
0.5490777492523193,
-... |
func ExampleServiceDiscovery_CreatePrivateDnsNamespace_shared00() {
svc := servicediscovery.New(session.New())
input := &servicediscovery.CreatePrivateDnsNamespaceInput{
CreatorRequestId: aws.String("eedd6892-50f3-41b2-8af9-611d6e1d1a8c"),
Name: aws.String("example.com"),
Vpc: aws.Strin... | [
0.3970514237880707,
-0.010993238538503647,
0.7456745505332947,
0.2844333350658417,
0.24343132972717285,
0.46137648820877075,
0.45613276958465576,
-1.0665816068649292,
1.2648308277130127,
-0.9683334827423096,
-0.587158739566803,
1.1684200763702393,
-0.010866864584386349,
0.9169559478759766,... |
func ExampleServiceDiscovery_CreateService_shared00() {
svc := servicediscovery.New(session.New())
input := &servicediscovery.CreateServiceInput{
CreatorRequestId: aws.String("567c1193-6b00-4308-bd57-ad38a8822d25"),
DnsConfig: &servicediscovery.DnsConfig{
DnsRecords: []*servicediscovery.DnsRecord{
{
T... | [
0.35259029269218445,
-0.12638334929943085,
0.7580640316009521,
0.1583593785762787,
0.1761050671339035,
0.5588135123252869,
0.4288872182369232,
-0.5297662615776062,
0.748598039150238,
-0.8714946508407593,
-0.49739065766334534,
0.44328269362449646,
0.02852814644575119,
0.6776561737060547,
... |
func ExampleServiceDiscovery_DeleteNamespace_shared00() {
svc := servicediscovery.New(session.New())
input := &servicediscovery.DeleteNamespaceInput{
Id: aws.String("ns-ylexjili4cdxy3xm"),
}
result, err := svc.DeleteNamespace(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code()... | [
0.22569221258163452,
-0.31374940276145935,
0.865597128868103,
0.28008565306663513,
-0.3013496696949005,
0.2869715094566345,
0.6896279454231262,
-0.7814326286315918,
1.785555362701416,
-1.053039789199829,
-0.4532529413700104,
1.0090049505233765,
0.05946975573897362,
1.2173526287078857,
1.... |
func ExampleServiceDiscovery_DeleteService_shared00() {
svc := servicediscovery.New(session.New())
input := &servicediscovery.DeleteServiceInput{
Id: aws.String("srv-p5zdwlg5uvvzjita"),
}
result, err := svc.DeleteService(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
... | [
0.02087240479886532,
-0.41017773747444153,
0.7762991189956665,
0.3054572641849518,
0.0706002488732338,
0.5192607641220093,
0.9109817147254944,
-0.3163950443267822,
0.834767758846283,
-1.056753158569336,
-0.20959919691085815,
0.8318583965301514,
-0.1658438891172409,
0.9290088415145874,
0.... |
func ExampleServiceDiscovery_DeregisterInstance_shared00() {
svc := servicediscovery.New(session.New())
input := &servicediscovery.DeregisterInstanceInput{
InstanceId: aws.String("myservice-53"),
ServiceId: aws.String("srv-p5zdwlg5uvvzjita"),
}
result, err := svc.DeregisterInstance(input)
if err != nil {
i... | [
-0.1678345799446106,
-0.14478734135627747,
0.7714961767196655,
-0.20095843076705933,
0.10585641115903854,
-0.028417419642210007,
0.7238455414772034,
0.19684557616710663,
0.4412814974784851,
-0.6223992705345154,
-0.6946572661399841,
1.0274614095687866,
-0.6174154877662659,
0.532301783561706... |
func ExampleServiceDiscovery_DiscoverInstances_shared00() {
svc := servicediscovery.New(session.New())
input := &servicediscovery.DiscoverInstancesInput{
HealthStatus: aws.String("ALL"),
MaxResults: aws.Int64(10),
NamespaceName: aws.String("example.com"),
ServiceName: aws.String("myservice"),
}
resul... | [
0.04406389594078064,
0.08701729774475098,
0.7863734364509583,
-0.011126702651381493,
-0.03292021527886391,
0.34997162222862244,
0.409593790769577,
-0.46994560956954956,
0.4328777492046356,
-0.6699901223182678,
-0.32320311665534973,
0.8467347025871277,
-0.2102835774421692,
0.995938420295715... |
func ExampleServiceDiscovery_GetOperation_shared00() {
svc := servicediscovery.New(session.New())
input := &servicediscovery.GetOperationInput{
OperationId: aws.String("gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd"),
}
result, err := svc.GetOperation(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {... | [
0.2548142671585083,
0.17581212520599365,
0.7327224016189575,
0.37040483951568604,
0.051993899047374725,
0.01649988442659378,
1.0338376760482788,
-0.08638223260641098,
0.9125906825065613,
-0.30202600359916687,
-0.27000686526298523,
0.5136832594871521,
0.21950849890708923,
-0.262151539325714... |
func ExampleServiceDiscovery_ListInstances_shared00() {
svc := servicediscovery.New(session.New())
input := &servicediscovery.ListInstancesInput{
ServiceId: aws.String("srv-qzpwvt2tfqcegapy"),
}
result, err := svc.ListInstances(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code... | [
-0.32542142271995544,
-0.21520225703716278,
0.720521867275238,
-0.15113691985607147,
-0.17077913880348206,
0.21190612018108368,
0.36681103706359863,
-0.15124060213565826,
0.9588505625724792,
-0.4850504994392395,
-0.44692128896713257,
1.0157743692398071,
-0.10244501382112503,
0.829098463058... |
func ExampleServiceDiscovery_ListNamespaces_shared00() {
svc := servicediscovery.New(session.New())
input := &servicediscovery.ListNamespacesInput{}
result, err := svc.ListNamespaces(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case servicediscovery.ErrCodeInvalidInpu... | [
0.6034091114997864,
-0.20555126667022705,
0.8855124115943909,
0.48048585653305054,
-0.8193762898445129,
0.7134667038917542,
0.7673103213310242,
-0.5546774864196777,
1.5093374252319336,
-0.848900556564331,
-0.47261515259742737,
1.0461734533309937,
-0.24134580790996552,
1.2553576231002808,
... |
func ExampleServiceDiscovery_ListServices_shared00() {
svc := servicediscovery.New(session.New())
input := &servicediscovery.ListServicesInput{}
result, err := svc.ListServices(input)
if err != nil {
if aerr, ok := err.(awserr.Error); ok {
switch aerr.Code() {
case servicediscovery.ErrCodeInvalidInput:
... | [
0.07655366510152817,
-0.19826103746891022,
0.8293524980545044,
0.49932777881622314,
-0.49626973271369934,
0.33453431725502014,
0.7160198092460632,
-0.10649537295103073,
1.2892807722091675,
-1.0893968343734741,
-0.16398097574710846,
0.5130553245544434,
-0.14116820693016052,
0.52350020408630... |
func ExampleServiceDiscovery_RegisterInstance_shared00() {
svc := servicediscovery.New(session.New())
input := &servicediscovery.RegisterInstanceInput{
Attributes: map[string]*string{
"AWS_INSTANCE_IPV4": aws.String("172.2.1.3"),
"AWS_INSTANCE_PORT": aws.String("808"),
},
CreatorRequestId: aws.String("7a4... | [
-0.30739784240722656,
0.13230884075164795,
0.8364490866661072,
-0.06354405730962753,
0.06125226989388466,
0.32012808322906494,
0.358625590801239,
-0.12992338836193085,
0.16582970321178436,
-0.5812731981277466,
-0.5364198684692383,
0.6322479248046875,
-0.1270599514245987,
0.3637450933456421... |
func Test(t *testing.T) { TestingT(t) } | [
0.5603705644607544,
0.47240784764289856,
0.14808350801467896,
0.21293595433235168,
0.38073426485061646,
0.712630569934845,
1.494964361190796,
-0.18387949466705322,
-0.4030367434024811,
0.012481830082833767,
-0.6709293127059937,
-0.1728723794221878,
-0.05282559245824814,
0.4567270874977112,... |
func (s SelectLogParams) LogSelector() (LogSelectorExpr, error) {
return ParseLogSelector(s.Selector, true)
} | [
-0.30011022090911865,
-0.34568536281585693,
0.27300262451171875,
-0.07481430470943451,
-0.28141334652900696,
-0.897488534450531,
-0.37485963106155396,
-0.18974673748016357,
0.5167813301086426,
-0.3636126220226288,
-0.29920724034309387,
0.9137629866600037,
-0.2618400752544403,
-0.2034960836... |
func (s SelectSampleParams) Expr() (SampleExpr, error) {
return ParseSampleExpr(s.Selector)
} | [
0.44711172580718994,
-0.5730412006378174,
0.08354971557855606,
0.3448079824447632,
-1.175993800163269,
-0.6858957409858704,
-0.4198821187019348,
-0.047147978097200394,
0.26098868250846863,
0.07278568297624588,
0.03605109825730324,
0.7352845072746277,
0.01350654847919941,
0.5845034718513489... |
func (s SelectSampleParams) LogSelector() (LogSelectorExpr, error) {
expr, err := ParseSampleExpr(s.Selector)
if err != nil {
return nil, err
}
return expr.Selector(), nil
} | [
-0.0969340056180954,
-0.5760957598686218,
0.34502479434013367,
-0.217561274766922,
-0.6848490834236145,
-0.9165014624595642,
-0.0070416685193777084,
-0.14813050627708435,
0.7290174961090088,
-0.17058320343494415,
-0.0557008758187294,
1.0361007452011108,
-0.6143363118171692,
-0.338623106479... |
func (e *PipelineExpr) HasFilter() bool {
for _, p := range e.MultiStages {
switch p.(type) {
case *LineFilterExpr, *LabelFilterExpr:
return true
default:
continue
}
}
return false
} | [
-0.10166405886411667,
-0.14904609322547913,
0.6878467202186584,
0.624988317489624,
-0.6628125905990601,
-0.24738219380378723,
0.30483436584472656,
0.8473610281944275,
-0.6096876263618469,
-0.26695096492767334,
0.012530220672488213,
0.40337222814559937,
-0.028163500130176544,
1.708969235420... |
func AddFilterExpr(expr LogSelectorExpr, ty labels.MatchType, op, match string) (LogSelectorExpr, error) {
filter := newLineFilterExpr(ty, op, match)
switch e := expr.(type) {
case *MatchersExpr:
return newPipelineExpr(e, MultiStageExpr{filter}), nil
case *PipelineExpr:
e.MultiStages = append(e.MultiStages, fil... | [
0.01788993738591671,
-0.26903024315834045,
0.5923638343811035,
0.016976820304989815,
-1.212433934211731,
-0.5616500377655029,
-0.42023783922195435,
-0.03828982636332512,
0.12336014956235886,
0.06456254422664642,
0.4817422926425934,
1.0151607990264893,
0.01956605724990368,
0.102557338774204... |
func IsLogicalBinOp(op string) bool {
switch op {
case OpTypeOr, OpTypeAnd, OpTypeUnless:
return true
default:
return false
}
} | [
-0.42911896109580994,
-0.5693179965019226,
0.678756594657898,
0.9957045316696167,
-0.6814704537391663,
0.5991809964179993,
-0.5101325511932373,
0.3451702296733856,
1.4996581077575684,
0.49107083678245544,
-0.2888313829898834,
0.07666127383708954,
-0.5713954567909241,
-0.044708386063575745,... |
func canInjectVectorGrouping(vecOp, rangeOp string) bool {
if vecOp != OpTypeSum {
return false
}
switch rangeOp {
case OpRangeTypeBytes, OpRangeTypeBytesRate, OpRangeTypeSum, OpRangeTypeRate, OpRangeTypeCount:
return true
default:
return false
}
} | [
-0.7720558047294617,
0.7925759553909302,
0.6035588383674622,
0.6870143413543701,
-0.16454863548278809,
0.6199089288711548,
1.0861942768096924,
-0.5165591835975647,
0.010260947048664093,
0.47203969955444336,
0.1506962776184082,
-0.02210027538239956,
-1.6558499336242676,
-0.09294387698173523... |
func reduceBinOp(op string, left, right *LiteralExpr) *LiteralExpr {
merged := mergeBinOp(
op,
&promql.Sample{Point: promql.Point{V: left.value}},
&promql.Sample{Point: promql.Point{V: right.value}},
false,
false,
)
return &LiteralExpr{value: merged.V}
} | [
0.3747553527355194,
-0.20674672722816467,
0.7092888355255127,
0.017358317971229553,
0.005523912608623505,
0.4281940162181854,
-0.411837637424469,
0.6863792538642883,
-0.06401176005601883,
0.47829094529151917,
-0.2809898257255554,
0.16159433126449585,
-0.7562294006347656,
-0.194431051611900... |
func (e *LiteralExpr) Selector() LogSelectorExpr { return e } | [
0.42518866062164307,
-1.0734808444976807,
0.3647821247577667,
-0.3846324682235718,
-0.46182775497436523,
0.046359844505786896,
0.1715012490749359,
0.3531992733478546,
0.699461817741394,
-1.2019057273864746,
0.34529778361320496,
0.86307293176651,
-0.03493117541074753,
-0.14581312239170074,
... |
func formatOperation(op string, grouping *Grouping, params ...string) string {
nonEmptyParams := make([]string, 0, len(params))
for _, p := range params {
if p != "" {
nonEmptyParams = append(nonEmptyParams, p)
}
}
var sb strings.Builder
sb.WriteString(op)
if grouping != nil {
sb.WriteString(grouping.St... | [
-0.45110732316970825,
0.12805084884166718,
0.7782665491104126,
-0.07077717036008835,
-0.115544393658638,
-0.5954660177230835,
1.0922197103500366,
0.19645655155181885,
-0.17723165452480316,
0.8994407653808594,
0.8631739616394043,
-0.20607708394527435,
-0.2257312387228012,
-0.068583987653255... |
func NewBackupAndExportClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupAndExportClient, error) {
cl, err := arm.NewClient(moduleName+".BackupAndExportClient", moduleVersion, credential, options)
if err != nil {
return nil, err
}
client := &BackupAndExportClient... | [
0.7202060222625732,
-0.8889421820640564,
0.2773285508155823,
0.8152559995651245,
-1.0609681606292725,
-0.01267064269632101,
0.05948816239833832,
-0.021839115768671036,
0.6491755247116089,
0.3182811439037323,
-0.5433735847473145,
0.8191027045249939,
-0.6303927898406982,
-0.5527451634407043,... |
func (client *BackupAndExportClient) createCreateRequest(ctx context.Context, resourceGroupName string, serverName string, parameters BackupAndExportRequest, options *BackupAndExportClientBeginCreateOptions) (*policy.Request, error) {
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/provi... | [
-0.30270153284072876,
-0.24932238459587097,
1.073213815689087,
-0.01585330255329609,
-0.7695063948631287,
-0.1927558034658432,
-0.022725984454154968,
-0.07337269932031631,
-0.050976283848285675,
0.13793452084064484,
0.09059975296258926,
1.0560458898544312,
-0.11465523391962051,
0.867365062... |
func (client *BackupAndExportClient) validateBackupCreateRequest(ctx context.Context, resourceGroupName string, serverName string, options *BackupAndExportClientValidateBackupOptions) (*policy.Request, error) {
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQ... | [
-0.5356756448745728,
0.017830243334174156,
0.9955830574035645,
0.10349173843860626,
-0.8731695413589478,
0.04797758534550667,
0.32229211926460266,
-0.07646434754133224,
-0.24652178585529327,
-0.4755440652370453,
0.28159764409065247,
0.5970278978347778,
-0.15851174294948578,
0.8742498159408... |
func (client *BackupAndExportClient) validateBackupHandleResponse(resp *http.Response) (BackupAndExportClientValidateBackupResponse, error) {
result := BackupAndExportClientValidateBackupResponse{}
if err := runtime.UnmarshalAsJSON(resp, &result.ValidateBackupResponse); err != nil {
return BackupAndExportClientVali... | [
-0.3917781114578247,
-0.952633798122406,
0.34157079458236694,
0.3143288791179657,
-0.5299456715583801,
0.0870731994509697,
1.129503607749939,
-0.2712284028530121,
0.7470222115516663,
-0.37552762031555176,
-0.5843678116798401,
-1.0361518859863281,
-0.8930320739746094,
-0.6568705439567566,
... |
func LoadStartupConfig() (Startup, error) {
var startupConf Startup
err := viper.Unmarshal(&startupConf)
return startupConf, err
} | [
-0.06452105194330215,
-0.4573332965373993,
0.32000401616096497,
0.4355546832084656,
-1.927264928817749,
-0.7704662084579468,
-0.14759904146194458,
1.2024595737457275,
0.030040737241506577,
0.7133486270904541,
-1.2834818363189697,
-0.21228821575641632,
-0.5644158124923706,
-0.25966557860374... |
func NewRuntimeConfig(
logger hclog.Logger,
configPath string) *Runtime {
r := &Runtime{
Viper: viper.New(),
logger: logger.Named("runtimeConf"),
}
setRuntimeDefaults(r)
// If a config file is found, initialize it
if configPath != "" {
err := r.InitializeConfigFile(configPath)
if err != nil {
logge... | [
0.3987458646297455,
-0.7457982897758484,
0.32109352946281433,
0.41366541385650635,
-0.2630140483379364,
-0.8298321962356567,
-0.35247981548309326,
0.6793146133422852,
-0.2712141275405884,
0.16574156284332275,
-0.9251532554626465,
-0.09277062118053436,
-1.4296027421951294,
1.332979321479797... |
func NewManager(
logger hclog.Logger,
runtime *Runtime) Manager {
return Manager{
logger: logger,
runtime: runtime,
}
} | [
-0.7944638133049011,
-0.9135454893112183,
0.18792442977428436,
-0.11779820173978806,
-0.7630496621131897,
-0.3769877552986145,
-1.1028826236724854,
0.3470749258995056,
0.18692965805530548,
-0.9551316499710083,
0.13030441105365753,
0.3407018184661865,
-0.6526796817779541,
1.7318308353424072... |
func NewVillageCommand(repo repository.Repository) cli.Command {
return cli.Command{
Name: "village",
Usage: "Save the villages of a country",
Action: func(c *cli.Context) error {
cID := c.Args().First()
if cID == "" {
return errors.New("Please provide the country code id")
}
id := strings.ToUp... | [
-0.39634770154953003,
-0.03384879231452942,
0.4872077703475952,
-0.5656932592391968,
0.8553749918937683,
-0.04680585116147995,
-0.05583338066935539,
0.07929470390081406,
0.03338087350130081,
0.6499975323677063,
-0.3857930302619934,
0.4135129451751709,
-0.5379639267921448,
0.778041660785675... |
func NewConnection(args *args.ArgumentList) (*SQLConnection, error) {
db, err := sqlx.Connect("mssql", CreateConnectionURL(args))
if err != nil {
return nil, err
}
return &SQLConnection{
Connection: db,
Host: args.Hostname,
}, nil
} | [
0.2350175678730011,
0.059741098433732986,
0.42463797330856323,
0.4744865298271179,
-0.8287881016731262,
0.05534680187702179,
-0.3477564752101898,
0.3903253376483917,
-0.6617345809936523,
0.3504329323768616,
-0.4085633158683777,
-0.06238047778606415,
-0.009899714030325413,
0.508978366851806... |
func (sc SQLConnection) Close() {
if err := sc.Connection.Close(); err != nil {
log.Warn("Unable to close SQL Connection: %s", err.Error())
}
} | [
1.2046312093734741,
0.4886096119880676,
0.5312933921813965,
0.16014893352985382,
-0.05770762264728546,
-0.028484264388680458,
-0.9257341027259827,
-0.5378925800323486,
-0.9493839144706726,
-0.37619882822036743,
0.544562816619873,
0.6090381741523743,
0.041498780250549316,
0.6927385330200195... |
func (sc SQLConnection) Query(v interface{}, query string) error {
return sc.Connection.Select(v, query)
} | [
0.13414552807807922,
-0.08536074310541153,
0.012377625331282616,
0.35570767521858215,
-0.457588255405426,
-0.24923591315746307,
-1.7852394580841064,
-0.3423997759819031,
0.5308225750923157,
0.39600425958633423,
0.6092102527618408,
0.5469214916229248,
-0.2831014096736908,
-0.149448767304420... |
func (sc SQLConnection) Queryx(query string) (*sqlx.Rows, error) {
return sc.Connection.Queryx(query)
} | [
-0.38218259811401367,
1.0410408973693848,
0.14098961651325226,
0.6598153710365295,
-1.1149307489395142,
-0.16533339023590088,
-1.9908519983291626,
0.1405569165945053,
0.9507058262825012,
-0.7014904022216797,
0.05415135622024536,
0.1757088303565979,
0.18786419928073883,
0.15468835830688477,... |
func CreateConnectionURL(args *args.ArgumentList) string {
connectionString := ""
connectionURL := &url.URL{
Scheme: "sqlserver",
User: url.UserPassword(args.Username, args.Password),
Host: args.Hostname,
}
// If port is present use port if not user instance
if args.Port != "" {
connectionURL.Host =... | [
-0.4947068691253662,
-0.2808036506175995,
0.6012718081474304,
-0.1180415004491806,
-0.3564170300960541,
0.5331056118011475,
-0.4262753129005432,
-0.08612315356731415,
-0.7772104144096375,
1.3171873092651367,
0.5870471000671387,
-0.22069329023361206,
-0.2867777347564697,
0.31007394194602966... |
func LookUpISBN(isbn string) (book.Info, error) {
metadata := make(map[string]book.Metadata)
l, err := librarything.LookUpISBN(isbn)
if err != nil {
return book.Info{}, err
}
metadata["librarything"] = l
o, err := openlibrary.LookUpISBN(isbn)
if err == nil {
metadata["openlibrary"] = o
}
g, err := goodre... | [
-0.5217775702476501,
-0.32195910811424255,
0.7972401976585388,
0.6548189520835876,
0.311927855014801,
0.7098926305770874,
-0.5674127340316772,
0.08484980463981628,
-0.3471473455429077,
-0.18705041706562042,
-0.029189713299274445,
0.42829808592796326,
-0.5105897784233093,
0.2988597154617309... |
func (s *AssignStmt) Pos() source.Pos {
return s.LHS[0].Pos()
} | [
-0.5219570994377136,
-0.8038175702095032,
0.25661569833755493,
-0.5124978423118591,
-0.5466568470001221,
0.3600764274597168,
0.8003142476081848,
1.084847092628479,
-0.30710893869400024,
0.18398144841194153,
0.1809171438217163,
0.021963423117995262,
-0.011074380949139595,
0.6090292930603027... |
func (s *AssignStmt) End() source.Pos {
return s.RHS[len(s.RHS)-1].End()
} | [
-0.5938858985900879,
-0.6603756546974182,
0.33837568759918213,
-0.6870023608207703,
-0.24196231365203857,
0.32376065850257874,
0.7806928753852844,
0.7187799215316772,
-0.6681216359138489,
0.8695355653762817,
-0.12137510627508163,
0.42421194911003113,
-0.681979238986969,
0.9690688252449036,... |
func DeploymentForPolicyController(instance *operatorv1.PolicyController) *appsv1.Deployment {
image := instance.Spec.ImageRegistry + utils.GetImageRef("POLICY_CONTROLLER_TAG_OR_SHA")
replicas := instance.Spec.Replicas
resources := instance.Spec.Resources
if resources == nil {
resources = &corev1.ResourceRequire... | [
0.37568408250808716,
-0.4054185748100281,
0.6040644645690918,
-1.095210075378418,
-0.11675480753183365,
0.47460708022117615,
0.13261881470680237,
0.11507817357778549,
0.27618247270584106,
0.6848254799842834,
0.1944819539785385,
-0.010694341734051704,
0.253558486700058,
0.19430498778820038,... |
func EqualDeployments(expected *appsv1.Deployment, found *appsv1.Deployment) bool {
logger := log.WithValues("func", "EqualDeployments")
if !utils.EqualLabels(found.ObjectMeta.Labels, expected.ObjectMeta.Labels) {
return false
}
if !reflect.DeepEqual(expected.Spec.Replicas, found.Spec.Replicas) {
logger.Info("R... | [
-0.5477949976921082,
-0.29939010739326477,
0.5340520143508911,
-0.5187322497367859,
0.44458889961242676,
0.6197268962860107,
0.9212698936462402,
-0.279476135969162,
-0.0032860280480235815,
1.082541823387146,
-0.497127503156662,
0.11417852342128754,
0.06786640733480453,
0.38760682940483093,... |
func EqualPods(expected corev1.PodTemplateSpec, found corev1.PodTemplateSpec) bool {
logger := log.WithValues("func", "EqualPods")
if !utils.EqualLabels(found.ObjectMeta.Labels, expected.ObjectMeta.Labels) {
return false
}
if !utils.EqualAnnotations(found.ObjectMeta.Annotations, expected.ObjectMeta.Annotations) {... | [
-0.30790698528289795,
-0.6562251448631287,
0.7843607068061829,
-0.805486798286438,
0.4921375513076782,
0.2399926781654358,
0.5228090286254883,
-0.7343876361846924,
-0.3077169358730316,
0.19639967381954193,
-0.30612385272979736,
0.5899820923805237,
0.004202647600322962,
-0.08705804497003555... |
func EqualContainers(expected corev1.Container, found corev1.Container) bool {
logger := log.WithValues("func", "EqualContainers")
if !reflect.DeepEqual(found.Name, expected.Name) {
logger.Info("Container name not equal", "Found", found.Name, "Expected", expected.Name)
return false
}
if !reflect.DeepEqual(found... | [
-0.5575239062309265,
-0.8158603310585022,
0.623812735080719,
-0.48408758640289307,
0.458904504776001,
0.27488619089126587,
0.4634726345539093,
-0.7608782649040222,
-0.09001415222883224,
-0.10315810889005661,
-0.5511205792427063,
0.40407630801200867,
-0.5400258302688599,
0.716208279132843,
... |
func (p Path) Push(part string) {
p.parts = append(p.parts, part)
} | [
0.20336566865444183,
0.10810080915689468,
0.24880912899971008,
-0.5718328356742859,
-0.09472823143005371,
1.362975835800171,
-0.8784309029579163,
-0.41978946328163147,
-0.12178283929824829,
0.33607545495033264,
-0.30262741446495056,
0.6279245615005493,
-1.0781078338623047,
-0.1433619260787... |
func (p Path) Pop() {
if len(p.parts) > 0 {
p.parts = p.parts[:len(p.parts)-1]
}
} | [
0.030474429950118065,
0.35714882612228394,
0.5180120468139648,
-0.6347365379333496,
0.5018934607505798,
0.8068326115608215,
-0.06463898718357086,
0.17763707041740417,
-0.2832808792591095,
1.0757979154586792,
0.4087475836277008,
-0.3573075830936432,
-0.9140592813491821,
-0.6011209487915039,... |
func (p Path) Contains(subject string) bool {
for _, p := range p.parts {
if p == subject {
return true
}
}
return false
} | [
0.07291632145643234,
-0.5915815234184265,
0.27860692143440247,
-0.5816460847854614,
-0.49341562390327454,
0.7470949292182922,
-0.7242025136947632,
-0.4417728781700134,
-0.4957413375377655,
-0.5757482647895813,
0.3135504424571991,
0.4280608296394348,
-0.6699647903442383,
0.10704801231622696... |
func NewPath(dotted string) Path {
return Path{strings.Split(dotted, ".")}
} | [
0.40356430411338806,
-0.4739611744880676,
0.10191598534584045,
-0.14838510751724243,
-0.8393222093582153,
0.5498696565628052,
0.8150657415390015,
-0.3324947655200958,
0.6543035507202148,
0.12157198786735535,
-0.5370393395423889,
-0.16382628679275513,
0.11281824111938477,
-1.499733209609985... |
func (b *BTC) Get(cmd string, params ...string) (ret interface{}, err error) {
switch cmd {
case "block":
hash, _ := hex.DecodeString(params[0])
shaHash, err := btcwire.NewShaHash(hash)
if err != nil {
return nil, err
}
//return (*btcutil.Block, error)
ret, err = b.client.GetBlock(shaHash)
case "block... | [
-0.06359730660915375,
-0.34413057565689087,
1.0074208974838257,
0.13801971077919006,
0.5189447999000549,
-0.5470943450927734,
0.11291229724884033,
-0.419725239276886,
-1.0598535537719727,
0.2659345269203186,
-0.033533696085214615,
0.8158718347549438,
-1.0760847330093384,
0.1512939482927322... |
func (b *BTC) State() types.State {
// not currently supported for btcd
return types.State{}
} | [
0.24651981890201569,
0.1571381390094757,
0.2440507411956787,
-0.10776278376579285,
0.17565327882766724,
0.19392141699790955,
0.2737288475036621,
-0.5207688212394714,
0.1967799961566925,
0.17434877157211304,
-0.060503534972667694,
0.6322683691978455,
-1.1494845151901245,
0.9629839062690735,... |
func (o *ConnectCoreV1GetNamespacedServiceProxyWithPathReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewConnectCoreV1GetNamespacedServiceProxyWithPathOK()
if err := result.readResponse(response, consumer, o.form... | [
-0.3070003390312195,
-0.6187500357627869,
0.7648333311080933,
0.3044964373111725,
-0.38721993565559387,
-0.2903320789337158,
-0.09220711141824722,
-0.5249822735786438,
0.3580784797668457,
0.1184900552034378,
0.9824349880218506,
-0.8384960889816284,
-1.500717043876648,
-0.38322263956069946,... |
func NewConnectCoreV1GetNamespacedServiceProxyWithPathOK() *ConnectCoreV1GetNamespacedServiceProxyWithPathOK {
return &ConnectCoreV1GetNamespacedServiceProxyWithPathOK{}
} | [
0.2115262746810913,
-0.03620205074548721,
0.6113411784172058,
0.28163766860961914,
-1.0389597415924072,
0.8845250010490417,
0.2136138379573822,
-0.9065402746200562,
0.06535212695598602,
0.6684625744819641,
-0.19815696775913239,
-0.83030766248703,
-0.6151377558708191,
0.22903169691562653,
... |
func NewConnectCoreV1GetNamespacedServiceProxyWithPathUnauthorized() *ConnectCoreV1GetNamespacedServiceProxyWithPathUnauthorized {
return &ConnectCoreV1GetNamespacedServiceProxyWithPathUnauthorized{}
} | [
-0.4759533107280731,
0.27821215987205505,
0.7327056527137756,
0.5675294995307922,
-1.3246623277664185,
0.2792530357837677,
-0.70538330078125,
-0.22744497656822205,
0.05503108352422714,
-0.47432222962379456,
0.53144371509552,
0.07280079275369644,
-0.7971859574317932,
-0.02237481065094471,
... |
func Constructor() Twitter {
return Twitter{Users: make(map[int]*User)}
} | [
-0.07862859964370728,
-0.7184399366378784,
-0.002564373193308711,
0.38605377078056335,
-0.2088553011417389,
0.11084397882223129,
0.3773159980773926,
0.5664178133010864,
0.04337788745760918,
-0.6039892435073853,
-1.1016442775726318,
0.4173533618450165,
0.04819294810295105,
0.368652194738388... |
func (this *Twitter) PostTweet(userId int, tweetId int) {
if _, ok := this.Users[userId]; !ok {
this.Users[userId] = NewUser(userId)
}
this.Users[userId].post(tweetId)
} | [
-0.03397153690457344,
-0.4697566330432892,
-0.03248239681124687,
-0.10676206648349762,
0.36647355556488037,
0.6583484411239624,
-0.21942833065986633,
-0.34981870651245117,
-0.15388594567775726,
0.1738947480916977,
-1.0073609352111816,
0.13872575759887695,
-0.5222567319869995,
1.42662787437... |
func (this *Twitter) GetNewsFeed(userId int) []int {
if _, ok := this.Users[userId]; !ok {
return nil
}
user := this.Users[userId]
pq := make(PriorityQueue, 0)
for k, _ := range user.Followed {
twt := this.Users[k].Head
if twt != nil {
pq = append(pq, twt)
}
}
heap.Init(&pq)
var ans []int
for pq.Len... | [
0.5600406527519226,
0.12888187170028687,
0.906129002571106,
-0.008398114703595638,
-0.4413931667804718,
-0.6903032064437866,
-0.05893819406628609,
-0.48243165016174316,
0.45303720235824585,
0.32541754841804504,
-1.1947059631347656,
0.751501739025116,
-0.7607585191726685,
2.0157504081726074... |
func (this *Twitter) Follow(followerId int, followeeId int) {
if _, ok := this.Users[followerId]; !ok {
this.Users[followerId] = NewUser(followerId)
}
if _, ok := this.Users[followeeId]; !ok {
this.Users[followeeId] = NewUser(followeeId)
}
this.Users[followerId].follow(followeeId)
} | [
-0.3653133809566498,
-0.5841801762580872,
0.317920446395874,
-0.3710525631904602,
0.033018480986356735,
0.6349859833717346,
0.14432218670845032,
0.1118975505232811,
0.5420075058937073,
0.0564439557492733,
-0.8564668893814087,
0.5474757552146912,
0.0224370788782835,
1.7817302942276,
0.245... |
func (this *Twitter) Unfollow(followerId int, followeeId int) {
if user, ok := this.Users[followerId]; ok {
user.unFollow(followeeId)
}
} | [
-0.11949896812438965,
-0.007823476567864418,
0.2623007893562317,
-0.3439316153526306,
-0.27519673109054565,
0.04819377511739731,
0.7570605874061584,
0.7666847109794617,
-0.05216318368911743,
0.6598748564720154,
-0.218974307179451,
0.3325284421443939,
0.12208028137683868,
1.4478992223739624... |
func (list MeshPolicyList) Find(namespace, name string) (*MeshPolicy, error) {
for _, meshPolicy := range list {
if meshPolicy.GetMetadata().Name == name {
if namespace == "" || meshPolicy.GetMetadata().Namespace == namespace {
return meshPolicy, nil
}
}
}
return nil, errors.Errorf("list did not find m... | [
0.9461284875869751,
-0.07486847788095474,
0.4323214590549469,
-0.2669866383075714,
0.24448101222515106,
0.8026573657989502,
-1.6454581022262573,
-0.8614999055862427,
0.4437018632888794,
0.9931390285491943,
-0.0010984137188643217,
0.7299836874008179,
-1.287933349609375,
1.4192715883255005,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.