text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (o *AddChargeAtTermEndSubscriptionParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
} | [
0.9597551226615906,
-0.22110682725906372,
0.20810028910636902,
-0.43619832396507263,
-0.6618342995643616,
-0.4773622751235962,
-0.6181274056434631,
-0.17471326887607574,
-0.6105901002883911,
0.24507823586463928,
-0.05853579565882683,
0.8455003499984741,
-0.2494073212146759,
0.5985642671585... |
func (o *AddChargeAtTermEndSubscriptionParams) WithSubscriptionAddChargeAtTermEndRequest(subscriptionAddChargeAtTermEndRequest *models.SubscriptionAddChargeAtTermEndRequest) *AddChargeAtTermEndSubscriptionParams {
o.SetSubscriptionAddChargeAtTermEndRequest(subscriptionAddChargeAtTermEndRequest)
return o
} | [
-0.06056829169392586,
0.15550854802131653,
0.4917513132095337,
0.12470479309558868,
-0.741949737071991,
-0.7296756505966187,
-1.6422260999679565,
-0.40263259410858154,
0.23457396030426025,
-0.6814320087432861,
0.151044562458992,
0.671043872833252,
0.5726130604743958,
1.0288647413253784,
... |
func (o *AddChargeAtTermEndSubscriptionParams) SetSubscriptionAddChargeAtTermEndRequest(subscriptionAddChargeAtTermEndRequest *models.SubscriptionAddChargeAtTermEndRequest) {
o.SubscriptionAddChargeAtTermEndRequest = subscriptionAddChargeAtTermEndRequest
} | [
-0.15710248053073883,
-0.2828018367290497,
0.4306603670120239,
0.06287752836942673,
-0.4125766456127167,
-0.43935278058052063,
-1.5863572359085083,
-0.41080841422080994,
0.03550451993942261,
-0.36341592669487,
-0.20171582698822021,
0.7077474594116211,
0.25828635692596436,
0.962642848491668... |
func (o *AddChargeAtTermEndSubscriptionParams) WithID(id string) *AddChargeAtTermEndSubscriptionParams {
o.SetID(id)
return o
} | [
0.5472255349159241,
-0.322647362947464,
0.2478794902563095,
0.5192221999168396,
-0.8723021149635315,
-0.33489805459976196,
-1.1123698949813843,
0.09905210137367249,
0.6696531772613525,
0.39504292607307434,
-0.04685259982943535,
0.3519405424594879,
-0.18972039222717285,
1.3818739652633667,
... |
func (o *AddChargeAtTermEndSubscriptionParams) SetID(id string) {
o.ID = id
} | [
0.24005728960037231,
-0.4151889979839325,
0.03278975188732147,
0.5244750380516052,
-0.2752586007118225,
0.05706625431776047,
-1.1577143669128418,
0.1462206095457077,
0.3751641809940338,
0.29228881001472473,
-0.1699455976486206,
0.5920461416244507,
-0.4956161677837372,
1.7263734340667725,
... |
func (o *AddChargeAtTermEndSubscriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.SubscriptionAddChargeAtTermEndRequest != nil {
if err := r.SetBodyParam(o.SubscriptionAddChargeAtTermEndRequest)... | [
-0.5191551446914673,
-0.0035456374753266573,
0.8747200965881348,
-0.46493667364120483,
0.7000256180763245,
-0.47330066561698914,
0.07441432029008865,
-0.04663711041212082,
-0.4611540138721466,
0.39684227108955383,
0.13470633327960968,
0.6066205501556396,
-0.5232889652252197,
0.846519529819... |
func MaxSize32(length int) int {
numControlBytes := (length + 3) / 4
maxNumDataBytes := 4 * length
return numControlBytes + maxNumDataBytes
} | [
0.7193472385406494,
0.40204212069511414,
0.3989604711532593,
-0.3752956688404083,
-0.47170719504356384,
0.6932879090309143,
-0.43384069204330444,
-0.4996098279953003,
0.8427837491035461,
-0.5406147837638855,
-0.903137743473053,
-0.6605194211006165,
-0.834999680519104,
0.3973708748817444,
... |
func EncodeUint32(encoded []byte, data []uint32) int {
return encodeUint32scalar(encoded, data)
} | [
0.7036015391349792,
0.3394743800163269,
0.33726754784584045,
-0.7893303632736206,
-0.7457445859909058,
0.8280012011528015,
-1.8105108737945557,
-0.0013593932380899787,
0.46374475955963135,
-0.008222697302699089,
-0.42498496174812317,
0.23811690509319305,
0.13568003475666046,
0.678935527801... |
func DecodeUint32(data []uint32, encoded []byte) {
decodeUint32(data, encoded)
} | [
0.6353181004524231,
-0.18279242515563965,
0.24794821441173553,
-0.6004375219345093,
-0.3030526340007782,
0.3541911244392395,
-0.9308151006698608,
0.4570169448852539,
0.7574654817581177,
-1.2198493480682373,
-0.7322260141372681,
0.23305857181549072,
0.5267287492752075,
0.2558913826942444,
... |
func EncodeDeltaUint32(encoded []byte, data []uint32, previous uint32) int {
return encodeDeltaUint32scalar(encoded, data, previous)
} | [
0.6163583993911743,
0.3310542106628418,
0.4318413734436035,
-0.6344863176345825,
-0.7288709282875061,
1.0183197259902954,
-0.26565414667129517,
-0.6216215491294861,
0.25029993057250977,
-0.659236490726471,
-0.4645668864250183,
0.6393334269523621,
0.14510686695575714,
0.2299400418996811,
... |
func DecodeDeltaUint32(data []uint32, encoded []byte, previous uint32) {
decodeDeltaUint32(data, encoded, previous)
} | [
0.18821778893470764,
0.3878326117992401,
0.3703751266002655,
-0.8525583744049072,
-0.7307634949684143,
0.874859094619751,
-0.13528543710708618,
-0.4869585931301117,
0.1831073760986328,
-0.9407938122749329,
-0.556029736995697,
0.5130887031555176,
0.16040140390396118,
-0.03573397547006607,
... |
func EncodeInt32(encoded []byte, data []int32) int {
return encodeInt32scalar(encoded, data)
} | [
1.0589137077331543,
-0.02006586641073227,
0.18711631000041962,
-0.6955446004867554,
-0.9281740784645081,
1.4096465110778809,
-1.6521800756454468,
-1.1857446432113647,
-0.014806874096393585,
0.21464227139949799,
-0.7138354778289795,
0.5986260175704956,
-0.8897537589073181,
0.52504962682724,... |
func DecodeInt32(data []int32, encoded []byte) {
decodeInt32(data, encoded)
} | [
0.6860010027885437,
-0.3943122625350952,
0.12618157267570496,
-0.5370816588401794,
-0.6253116726875305,
0.6688158512115479,
-0.6784569025039673,
-0.6542873978614807,
0.3034265637397766,
-0.6812878251075745,
-1.1553059816360474,
0.40472880005836487,
-0.2972632646560669,
0.24295024573802948,... |
func EncodeDeltaInt32(encoded []byte, data []int32, previous int32) int {
return encodeDeltaInt32scalar(encoded, data, previous)
} | [
0.9853110909461975,
0.7182337641716003,
0.39154812693595886,
-1.3463342189788818,
-1.1371043920516968,
1.0403820276260376,
-0.3108736574649811,
-0.7176874279975891,
0.15142323076725006,
-0.7974506616592407,
-0.4389387369155884,
0.7278828024864197,
0.2610669732093811,
0.4069446325302124,
... |
func DecodeDeltaInt32(data []int32, encoded []byte, previous int32) {
decodeDeltaInt32(data, encoded, previous)
} | [
0.8115659356117249,
0.5019721984863281,
0.3477380573749542,
-1.5314152240753174,
-1.0267164707183838,
0.9181594252586365,
-0.185073122382164,
-0.484169065952301,
0.039784517139196396,
-1.2438534498214722,
-0.5906829833984375,
0.5136550068855286,
0.20110084116458893,
0.29114410281181335,
... |
func Register(name string, metric Metric, options ...Option) error {
options = append(options, WithMetric(metric))
switch metric.(type) {
case metrics.Counter:
newCounter(name, options...)
case metrics.Gauge:
newGauge(name, options...)
case metrics.GaugeFloat64:
newGaugeFloat64(name, options...)
case metri... | [
0.3514068126678467,
0.7892030477523804,
0.7150779366493225,
0.7244399189949036,
0.1809399425983429,
0.09778061509132385,
-0.09883381426334381,
-1.4517524242401123,
-0.7777746319770813,
-0.1959766000509262,
0.021423958241939545,
0.37985295057296753,
-0.0705273374915123,
0.16794729232788086,... |
func NewCounter(name string, options ...Option) Counter {
return newCounter(name, options...)
} | [
1.1160081624984741,
-0.8730528950691223,
0.5125840902328491,
0.4411134123802185,
-1.0040550231933594,
0.19953876733779907,
-0.4014242887496948,
-0.5817916989326477,
0.36875399947166443,
-0.18750682473182678,
-0.6120864152908325,
-0.4668846130371094,
-0.22606152296066284,
0.5376654267311096... |
func NewGauge(name string, options ...Option) Gauge {
return newGauge(name, options...)
} | [
0.22277292609214783,
-0.08279024064540863,
0.44611266255378723,
0.8730416893959045,
-1.057762861251831,
-0.32438144087791443,
-1.2084500789642334,
-0.4746420085430145,
-0.2151871770620346,
0.6440010666847229,
-0.4366903305053711,
-0.20786063373088837,
-0.8697566390037537,
0.202508747577667... |
func NewGaugeFloat64(name string, options ...Option) GaugeFloat64 {
return newGaugeFloat64(name, options...)
} | [
-0.6053380966186523,
0.05994396284222603,
0.5034907460212708,
1.7079284191131592,
-0.5072306990623474,
-0.8372308015823364,
-0.3323119878768921,
-0.39592111110687256,
-0.59136962890625,
0.062008533626794815,
-0.9402483701705933,
-0.6355741620063782,
-0.521173357963562,
0.7466053366661072,
... |
func NewTimer(name string, options ...Option) Timer {
return newTimer(name, options...)
} | [
0.38639816641807556,
-0.2523367404937744,
0.4430449306964874,
0.3319929838180542,
-1.2948304414749146,
-0.13758647441864014,
-1.0235753059387207,
-0.5459176898002625,
0.41208770871162415,
-0.02178480289876461,
-0.7438784241676331,
-0.08230240643024445,
-0.5567408800125122,
0.80143702030181... |
func NewMeter(name string, options ...Option) Meter {
return newMeter(name, options...)
} | [
-0.05980537831783295,
-0.13352248072624207,
0.2815113961696625,
0.7517240047454834,
-1.5775269269943237,
-0.24494802951812744,
-0.46828988194465637,
-0.7812880277633667,
0.46809524297714233,
0.26752790808677673,
-0.5944153070449829,
0.3383595049381256,
-0.4977031648159027,
0.02421775087714... |
func NewHistogram(name string, options ...Option) Histogram {
return newHistogram(name, options...)
} | [
0.7961163520812988,
0.17352157831192017,
0.38072705268859863,
0.7538368105888367,
-0.6623967289924622,
-0.7157840728759766,
-0.3026774227619171,
0.1552397757768631,
0.6562851667404175,
-0.16294419765472412,
-0.9215779304504395,
-0.09935934096574783,
0.0044707427732646465,
-0.09103765338659... |
func CaptureGCStats(d time.Duration) {
captureGCStats(metrics.DefaultRegistry, d)
} | [
1.1123567819595337,
1.4414578676223755,
0.07340298593044281,
0.8496972918510437,
0.9014416933059692,
1.2529157400131226,
0.3648056089878082,
-1.527847170829773,
0.06102113425731659,
-0.41942840814590454,
-0.25164806842803955,
0.8345794677734375,
0.6334982514381409,
0.9274292588233948,
0.... |
func CaptureMemStats(d time.Duration) {
captureMemStats(metrics.DefaultRegistry, d)
} | [
1.0501315593719482,
1.0133241415023804,
0.14246001839637756,
0.8377894163131714,
0.12878219783306122,
0.5481936931610107,
0.16541631519794464,
-1.192103385925293,
1.0096206665039062,
-0.3899694085121155,
-0.7211477160453796,
0.7861751317977905,
0.2355967015028,
0.8397200703620911,
-0.477... |
func Config(version string) {
app := fiber.New()
app.Settings.Prefork = false
app.Settings.CaseSensitive = true
app.Settings.StrictRouting = true
app.Settings.ServerHeader = "githunter"
app.Use(cors.New())
app.Use(logger.New())
app.Get("/", func(c *fiber.Ctx) {
c.Send()
})
app.Get("/error", func(c *fiber... | [
0.54439777135849,
0.649185299873352,
0.8338874578475952,
0.5606361627578735,
0.9037071466445923,
0.4436962604522705,
0.23224329948425293,
0.8082116842269897,
0.14926861226558685,
0.5356468558311462,
-0.8483914732933044,
0.560926079750061,
0.35787513852119446,
1.0877012014389038,
0.497127... |
func Suspend(out *opsmngr.AutomationConfig, clusterName string) {
setManualModeByClusterName(out, clusterName, true)
} | [
-0.5729193091392517,
-0.40548524260520935,
0.18860481679439545,
-0.2594858407974243,
-0.6544907689094543,
0.6115046143531799,
0.7252642512321472,
-0.5082104802131653,
-0.6736734509468079,
0.09278940409421921,
-0.5374299883842468,
0.7236500978469849,
-0.6104360818862915,
0.15286460518836975... |
func TryImageFromCache(asset AssetMap, options Options, c *cache.Cache) (gocv.Mat, error) {
if img, found := c.Get(asset.Key); found {
return img.(gocv.Mat), nil
}
img, err := GetImageFromAsset(asset, options)
if err != nil {
return img, err
}
c.Add(asset.Key, img, cache.DefaultExpiration)
return img, nil
} | [
0.014753364957869053,
0.16622275114059448,
0.33890029788017273,
-0.2764700949192047,
-0.2710399925708771,
0.1303776502609253,
-0.3522769808769226,
-1.087026834487915,
-0.15279744565486908,
0.6918884515762329,
0.8067274689674377,
-0.3409453332424164,
0.06717744469642639,
0.25161638855934143... |
func IsStartScreen(img gocv.Mat, options Options) (bool, error) {
imgMat, err := GetImage("start_screen", gocv.IMReadGrayScale, options)
if err != nil {
return false, err
}
if !base.CVEqualDim(*imgMat, img) {
return false, errors.New("Cannot compare two images that are not the same dimensions")
}
grayedMat :=... | [
-0.5575996041297913,
-0.10178304463624954,
0.9417739510536194,
0.721622884273529,
0.2665930390357971,
0.551750898361206,
0.6856006979942322,
-0.6662412285804749,
0.828532874584198,
0.8727803826332092,
0.1988687515258789,
0.6703991889953613,
-0.2517644464969635,
0.948833167552948,
-0.6802... |
func CheckIfBattle(img gocv.Mat, percentage float64, options Options) (bool, error) {
var asset AreaLocation
asset = options.Provider.GetAreaLocation("battle_mode_area")
topCorner := asset.Bounds.Lower
bottomCorner := asset.Bounds.Upper
if bottomCorner == (image.Point{}) {
return false, errors.New("invalid bot... | [
-0.19495567679405212,
-0.04219071567058563,
1.0388931035995483,
0.2796952426433563,
0.6720452308654785,
0.28538382053375244,
-0.29767221212387085,
-0.9614839553833008,
0.2443850338459015,
0.3012121915817261,
0.5305434465408325,
0.10148320347070694,
-0.2972601056098938,
0.8883754014968872,
... |
func ImgToString(img gocv.Mat, charSet string) (string, error) {
if img.Empty() {
return "", errors.New("Image is empty")
}
client.SetWhitelist(charSet)
buffer, err := gocv.IMEncode(".tiff", img)
if err != nil {
return "", err
}
if img.Empty() {
return "", errors.New("Image is empty")
}
client.SetImageFr... | [
-0.4605720043182373,
0.21707716584205627,
0.44304442405700684,
-0.8775454759597778,
-0.5434483289718628,
-0.14832402765750885,
-0.4946974217891693,
-0.9150955677032471,
-0.2367437183856964,
1.530899167060852,
-0.08506661653518677,
0.4907349944114685,
-0.2709695100784302,
0.2537745535373688... |
func ClientImgToString(client gosseract.Client, img gocv.Mat) (string, error) {
buffer, err := gocv.IMEncode(".tiff", img)
if err != nil {
return "", err
}
client.SetImageFromBytes(buffer)
text, err := client.Text()
return text, err
} | [
0.6441137194633484,
-0.11206674575805664,
0.09857754409313202,
-0.8480157852172852,
-1.005845546722412,
0.2601081430912018,
-0.04381336271762848,
-0.9693273305892944,
-0.16617052257061005,
1.4465478658676147,
0.11759578436613083,
0.294575572013855,
-0.3574337959289551,
-0.00857124291360378... |
func ProtoToIamServiceAccountActasResources(p *iampb.IamServiceAccountActasResources) *iam.ServiceAccountActasResources {
if p == nil {
return nil
}
obj := &iam.ServiceAccountActasResources{}
for _, r := range p.GetResources() {
obj.Resources = append(obj.Resources, *ProtoToIamServiceAccountActasResourcesResour... | [
0.5432547926902771,
-1.434739589691162,
0.0828605517745018,
-0.039440032094717026,
-0.4262571632862091,
-0.5840296149253845,
1.1554118394851685,
-0.2669052481651306,
1.2978620529174805,
-0.2969595491886139,
0.8590437173843384,
0.3221207857131958,
0.07098900526762009,
-0.23838619887828827,
... |
func ProtoToIamServiceAccountActasResourcesResources(p *iampb.IamServiceAccountActasResourcesResources) *iam.ServiceAccountActasResourcesResources {
if p == nil {
return nil
}
obj := &iam.ServiceAccountActasResourcesResources{
FullResourceName: dcl.StringOrNil(p.GetFullResourceName()),
}
return obj
} | [
0.9618832468986511,
-1.5622369050979614,
-0.01944759301841259,
-0.3932599127292633,
-0.40841400623321533,
-0.6194106340408325,
1.1953401565551758,
-0.38861632347106934,
1.2239338159561157,
-0.20355090498924255,
0.8219283819198608,
-0.04622522369027138,
0.2375638633966446,
-0.50244003534317... |
func ProtoToServiceAccount(p *iampb.IamServiceAccount) *iam.ServiceAccount {
obj := &iam.ServiceAccount{
Name: dcl.StringOrNil(p.GetName()),
Project: dcl.StringOrNil(p.GetProject()),
UniqueId: dcl.StringOrNil(p.GetUniqueId()),
Email: dcl.StringOrNil(p.GetEmail()),
DisplayName:... | [
0.1648983508348465,
-0.957070529460907,
0.3633926212787628,
-0.5105878710746765,
-0.8256428837776184,
0.26222389936447144,
0.7271410822868347,
-0.3849073350429535,
0.7902290225028992,
-0.4023604691028595,
0.258067786693573,
1.4243836402893066,
-0.15210263431072235,
-0.34893888235092163,
... |
func IamServiceAccountActasResourcesToProto(o *iam.ServiceAccountActasResources) *iampb.IamServiceAccountActasResources {
if o == nil {
return nil
}
p := &iampb.IamServiceAccountActasResources{}
sResources := make([]*iampb.IamServiceAccountActasResourcesResources, len(o.Resources))
for i, r := range o.Resources ... | [
1.0470919609069824,
-0.8109470009803772,
0.1447293907403946,
-0.4540269672870636,
-0.5623856782913208,
-0.8477588891983032,
1.07843017578125,
-0.9437242746353149,
1.4247466325759888,
-0.22859950363636017,
0.8833335041999817,
0.20312447845935822,
0.6912711262702942,
-0.24761934578418732,
... |
func IamServiceAccountActasResourcesResourcesToProto(o *iam.ServiceAccountActasResourcesResources) *iampb.IamServiceAccountActasResourcesResources {
if o == nil {
return nil
}
p := &iampb.IamServiceAccountActasResourcesResources{}
p.SetFullResourceName(dcl.ValueOrEmptyString(o.FullResourceName))
return p
} | [
1.188126802444458,
-0.6395623087882996,
0.026170238852500916,
-0.6169264316558838,
-0.41373100876808167,
-0.6844369173049927,
0.9466975331306458,
-0.985878586769104,
1.3812332153320312,
-0.16808529198169708,
0.895577609539032,
-0.17854000627994537,
0.5837130546569824,
-0.5325441360473633,
... |
func ServiceAccountToProto(resource *iam.ServiceAccount) *iampb.IamServiceAccount {
p := &iampb.IamServiceAccount{}
p.SetName(dcl.ValueOrEmptyString(resource.Name))
p.SetProject(dcl.ValueOrEmptyString(resource.Project))
p.SetUniqueId(dcl.ValueOrEmptyString(resource.UniqueId))
p.SetEmail(dcl.ValueOrEmptyString(reso... | [
0.6694458723068237,
-0.4093885123729706,
0.5733398199081421,
-0.6445748209953308,
-0.7476301789283752,
-0.2720409333705902,
0.6645869612693787,
-0.8035503029823303,
0.86452317237854,
-0.2553457021713257,
0.17693476378917694,
0.6332372426986694,
-0.13780605792999268,
-0.5706712603569031,
... |
func (s *ServiceAccountServer) applyServiceAccount(ctx context.Context, c *iam.Client, request *iampb.ApplyIamServiceAccountRequest) (*iampb.IamServiceAccount, error) {
p := ProtoToServiceAccount(request.GetResource())
res, err := c.ApplyServiceAccount(ctx, p)
if err != nil {
return nil, err
}
r := ServiceAccoun... | [
-0.13770692050457,
-0.22512853145599365,
0.510963499546051,
0.4169531464576721,
-0.6052283644676208,
-0.10794014483690262,
1.3675435781478882,
0.03226863592863083,
1.0452346801757812,
-0.5564350485801697,
0.060632459819316864,
0.9676522612571716,
-0.12597793340682983,
0.37933290004730225,
... |
func (s *ServiceAccountServer) ApplyIamServiceAccount(ctx context.Context, request *iampb.ApplyIamServiceAccountRequest) (*iampb.IamServiceAccount, error) {
cl, err := createConfigServiceAccount(ctx, request.GetServiceAccountFile())
if err != nil {
return nil, err
}
return s.applyServiceAccount(ctx, cl, request)
... | [
0.036792777478694916,
-0.42989519238471985,
0.5055625438690186,
0.34862014651298523,
-0.49327290058135986,
0.022814765572547913,
1.1478625535964966,
0.15189498662948608,
0.7942835688591003,
-0.10467720031738281,
0.2853616774082184,
0.5066797733306885,
-0.45802250504493713,
0.40406748652458... |
func (s *ServiceAccountServer) DeleteIamServiceAccount(ctx context.Context, request *iampb.DeleteIamServiceAccountRequest) (*emptypb.Empty, error) {
cl, err := createConfigServiceAccount(ctx, request.GetServiceAccountFile())
if err != nil {
return nil, err
}
return &emptypb.Empty{}, cl.DeleteServiceAccount(ctx, ... | [
0.2564505934715271,
-0.4191453754901886,
0.4485945701599121,
0.5242162346839905,
-0.5198869705200195,
0.2669854164123535,
1.4004963636398315,
-0.2768051326274872,
0.6919892430305481,
-0.28305625915527344,
0.17793968319892883,
0.5945583581924438,
-0.407213419675827,
0.6294446587562561,
0.... |
func (s *ServiceAccountServer) ListIamServiceAccount(ctx context.Context, request *iampb.ListIamServiceAccountRequest) (*iampb.ListIamServiceAccountResponse, error) {
cl, err := createConfigServiceAccount(ctx, request.GetServiceAccountFile())
if err != nil {
return nil, err
}
resources, err := cl.ListServiceAcco... | [
-0.40538084506988525,
-0.5034776926040649,
0.5310143232345581,
0.24651804566383362,
-0.3546985387802124,
-0.37073615193367004,
0.7578003406524658,
-0.403992623090744,
0.7210584282875061,
0.4909541606903076,
-0.12305758148431778,
0.534440815448761,
-0.3548695147037506,
0.5681517720222473,
... |
func (*People) Descriptor() ([]byte, []int) {
return file_people_proto_rawDescGZIP(), []int{0}
} | [
-1.2228198051452637,
0.34307074546813965,
0.3720461428165436,
-0.5024276375770569,
-0.5267300605773926,
-0.08484945446252823,
0.0183394942432642,
0.50406414270401,
-0.6928389072418213,
-0.5046064853668213,
-0.43887877464294434,
-0.30251508951187134,
-0.14875753223896027,
1.2413691282272339... |
func (*Contact) Descriptor() ([]byte, []int) {
return file_people_proto_rawDescGZIP(), []int{1}
} | [
-0.35118937492370605,
-0.10461103171110153,
0.5123575329780579,
0.492477685213089,
-0.9024671316146851,
-0.1897294968366623,
0.2980915606021881,
0.1235305666923523,
-0.4425185024738312,
-0.3600788116455078,
-0.3926480710506439,
-0.5163682699203491,
-0.30679038166999817,
0.9492579698562622,... |
func (*FindPeopleRequest) Descriptor() ([]byte, []int) {
return file_people_proto_rawDescGZIP(), []int{2}
} | [
-1.2160775661468506,
0.3112039566040039,
0.40946540236473083,
0.054648809134960175,
0.057315170764923096,
-0.7486016154289246,
0.6641640663146973,
-0.1174941286444664,
-0.6294122934341431,
-0.2892557978630066,
-0.17751523852348328,
-0.36377835273742676,
-0.5048938393592834,
2.0183403491973... |
func (*ListPeopleRequest) Descriptor() ([]byte, []int) {
return file_people_proto_rawDescGZIP(), []int{3}
} | [
-1.6017531156539917,
0.007836427539587021,
0.3380996584892273,
-0.06468857079744339,
-0.38159412145614624,
-0.9036339521408081,
-0.14032837748527527,
0.08657975494861603,
0.004681989550590515,
-0.6817368865013123,
-0.4486236572265625,
0.3119118809700012,
0.1183335930109024,
1.3509938716888... |
func (*ListPeopleResponse) Descriptor() ([]byte, []int) {
return file_people_proto_rawDescGZIP(), []int{4}
} | [
-0.6355332136154175,
-0.5409883260726929,
-0.10473933070898056,
-0.4642607569694519,
0.08090780675411224,
-1.3468929529190063,
0.5481882095336914,
-0.034765176475048065,
0.27101296186447144,
-0.5262985825538635,
-1.192038655281067,
-0.6111941933631897,
-0.26294565200805664,
0.2745580077171... |
func (*DeletePeopleRequest) Descriptor() ([]byte, []int) {
return file_people_proto_rawDescGZIP(), []int{5}
} | [
-1.2571088075637817,
0.2588234543800354,
0.20475038886070251,
0.019891930744051933,
-0.35979679226875305,
-0.8882513046264648,
0.3724629878997803,
0.20116443932056427,
-0.00399142736569047,
-1.048374891281128,
0.15782979130744934,
0.46692943572998047,
-0.1417551040649414,
1.860522150993347... |
func (*ChangeAccountBalanceRequest) Descriptor() ([]byte, []int) {
return file_people_proto_rawDescGZIP(), []int{6}
} | [
-1.0781139135360718,
-0.12041539698839188,
0.475106418132782,
-0.21591533720493317,
0.5513916611671448,
-0.6221679449081421,
0.4385944902896881,
0.23976314067840576,
-0.22624367475509644,
-0.07186611741781235,
-0.29759371280670166,
0.6503598690032959,
-0.46366485953330994,
2.14889621734619... |
func (*ChangeAccountBalanceResponse) Descriptor() ([]byte, []int) {
return file_people_proto_rawDescGZIP(), []int{7}
} | [
-0.23044945299625397,
-0.06316368281841278,
-0.1363947093486786,
-0.6273885369300842,
0.6836837530136108,
-0.9781346321105957,
0.773867666721344,
-0.1917976588010788,
0.1117621660232544,
0.1069256141781807,
-0.8691933751106262,
-0.20658981800079346,
-1.116992712020874,
1.1138417720794678,
... |
func (r *Opts) ToContainerConfig(image string) (containers.ContainerConfig, error) {
if r.Name == "" {
r.Name = getRandomName()
}
publish, err := r.toPorts()
if err != nil {
return containers.ContainerConfig{}, err
}
labels, err := toLabels(r.Labels)
if err != nil {
return containers.ContainerConfig{}, e... | [
-0.1594616323709488,
-0.30262845754623413,
0.8136416673660278,
-0.5929410457611084,
-0.5894268155097961,
-0.3938446044921875,
0.04207426309585571,
0.07384216040372849,
-0.03555480018258095,
1.1031434535980225,
-0.19625063240528107,
0.24566347897052765,
0.03053879924118519,
0.79382950067520... |
func NewRequestToken(index uint32) RequestToken {
return RequestToken{
index: index,
createAt: time.Now().UTC(),
}
} | [
-1.6963555812835693,
0.05508653074502945,
0.3571549355983734,
0.5432460904121399,
-0.4114503562450409,
0.30370032787323,
-0.8335767984390259,
-0.0903489962220192,
0.16143351793289185,
-1.2326345443725586,
-1.0346430540084839,
0.842461347579956,
0.1581559032201767,
-0.5689951181411743,
0.... |
func (t RequestToken) Index() uint32 {
return t.index
} | [
-0.9551125764846802,
-0.09315764904022217,
0.1257203370332718,
-0.44620075821876526,
0.2236999124288559,
0.6152135133743286,
0.10654252022504807,
0.44442686438560486,
-0.15634234249591827,
-0.912872314453125,
-0.4893833100795746,
0.9087258577346802,
-0.033186692744493484,
-0.99843788146972... |
func (a APIInformation) UAA() string {
return a.Links.UAA.HREF
} | [
-1.3737001419067383,
-1.7669051885604858,
0.6702027320861816,
-0.7154224514961243,
0.42306771874427795,
0.26290351152420044,
0.630409836769104,
0.8735064268112183,
1.110280990600586,
-0.6541159152984619,
1.1725335121154785,
-0.00902713555842638,
0.19188199937343597,
-0.12160900235176086,
... |
func (client *Client) Info() (APIInformation, Warnings, error) {
rootResponse, warnings, err := client.rootResponse()
if err != nil {
return APIInformation{}, warnings, err
}
request, err := client.newHTTPRequest(requestOptions{
Method: http.MethodGet,
URL: rootResponse.ccV3Href(),
})
if err != nil {
... | [
0.44437506794929504,
-0.7118720412254333,
0.8357859253883362,
-0.4271141588687897,
0.1442471742630005,
-0.1404215693473816,
-0.3902798891067505,
-0.9627152681350708,
-0.6415589451789856,
-0.1389843225479126,
-0.4025392234325409,
0.4481379985809326,
-0.044801436364650726,
0.2152317017316818... |
func (client *Client) rootResponse() (RootResponse, Warnings, error) {
request, err := client.newHTTPRequest(requestOptions{
Method: http.MethodGet,
URL: client.cloudControllerURL,
})
if err != nil {
return RootResponse{}, nil, err
}
var rootResponse RootResponse
response := cloudcontroller.Response{
... | [
1.009637713432312,
-0.5757204294204712,
0.7492584586143494,
-0.031923990696668625,
0.5311185717582703,
-0.8548218607902527,
-0.10824890434741974,
-0.9268338680267334,
0.17387545108795166,
-0.33196669816970825,
0.02728976495563984,
0.7528596520423889,
-0.7885123491287231,
0.159841388463974,... |
func (d *ChannelsDeleteChannelRequest) FillFrom(from interface {
GetChannel() (value InputChannelClass)
}) {
d.Channel = from.GetChannel()
} | [
-0.03805878385901451,
0.011437690816819668,
0.5500055551528931,
-0.2548162341117859,
0.7816228866577148,
0.3312249183654785,
-0.4208100438117981,
-0.6206230521202087,
0.7526212930679321,
-0.7804297208786011,
1.155895709991455,
0.8629475235939026,
0.6271872520446777,
1.0056920051574707,
0... |
func (*ChannelsDeleteChannelRequest) TypeID() uint32 {
return ChannelsDeleteChannelRequestTypeID
} | [
0.17889085412025452,
-0.8770307898521423,
0.5694485902786255,
-0.5007418394088745,
0.7323836088180542,
0.568386971950531,
-0.5376318097114563,
-0.46491575241088867,
0.7172606587409973,
-0.226439967751503,
0.42658767104148865,
0.8257468342781067,
-1.428999662399292,
0.9338772296905518,
0.... |
func (*ChannelsDeleteChannelRequest) TypeName() string {
return "channels.deleteChannel"
} | [
-0.07317294925451279,
-0.5057617425918579,
0.545134425163269,
-0.597892165184021,
0.7006840705871582,
-0.2780171036720276,
-0.4634915292263031,
-0.09745530039072037,
0.5607415437698364,
-0.232920840382576,
1.0494825839996338,
0.416659951210022,
-0.6474671363830566,
0.235477015376091,
0.3... |
func (d *ChannelsDeleteChannelRequest) TypeInfo() tdp.Type {
typ := tdp.Type{
Name: "channels.deleteChannel",
ID: ChannelsDeleteChannelRequestTypeID,
}
if d == nil {
typ.Null = true
return typ
}
typ.Fields = []tdp.Field{
{
Name: "Channel",
SchemaName: "channel",
},
}
return typ
} | [
0.4426952004432678,
-0.3033005893230438,
0.42804351449012756,
-1.226973056793213,
0.8724668622016907,
0.1130479946732521,
-0.31386181712150574,
-0.5209328532218933,
0.02913106605410576,
-0.2053440660238266,
0.4037089943885803,
-0.1694350689649582,
-0.46392208337783813,
0.17638002336025238,... |
func (d *ChannelsDeleteChannelRequest) GetChannel() (value InputChannelClass) {
if d == nil {
return
}
return d.Channel
} | [
-0.6355644464492798,
0.7093064188957214,
0.111137755215168,
0.5108506679534912,
0.853206992149353,
0.6688036918640137,
0.7888485789299011,
-0.26471662521362305,
1.145416259765625,
-1.2522647380828857,
1.1972143650054932,
0.6108519434928894,
-0.12345243245363235,
0.4482113718986511,
1.028... |
func (d *ChannelsDeleteChannelRequest) GetChannelAsNotEmpty() (NotEmptyInputChannel, bool) {
return d.Channel.AsNotEmpty()
} | [
-0.8873016238212585,
-0.2448296844959259,
0.6442916393280029,
-0.5729920864105225,
1.126089096069336,
-0.271088570356369,
-1.0663342475891113,
-0.9847797751426697,
-0.46951568126678467,
0.248507559299469,
-0.4620981812477112,
0.15668214857578278,
-0.4093911945819855,
0.12180554866790771,
... |
func OpenLoggerFile() error {
err := os.MkdirAll(logPath, 0777)
if err != nil {
return err
}
fileHandle, err = os.OpenFile(logPath+logFile, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
return err
}
log.Init(fileHandle, fileHandle, fileHandle, fileHandle)
return nil
} | [
-0.0880499929189682,
-0.32394081354141235,
0.5788952708244324,
-0.4553283154964447,
0.13417358696460724,
0.9058972597122192,
0.9669849872589111,
0.5160401463508606,
-1.1099495887756348,
-0.7956897616386414,
-0.5541020631790161,
0.0006997760501690209,
-0.5246820449829102,
1.1776612997055054... |
func GetFilehandle() *os.File {
return fileHandle
} | [
0.9548801779747009,
-0.0771624892950058,
0.3842208683490753,
0.39326387643814087,
0.915849506855011,
1.345164179801941,
0.3253348469734192,
-0.050183434039354324,
-0.9724681377410889,
-1.5253394842147827,
0.7198784351348877,
0.008352555334568024,
-0.6545109152793884,
-0.258046954870224,
... |
func NewRepoController() *Repo {
return &Repo{newBaseController()}
} | [
0.05908048525452614,
0.13475918769836426,
0.14636223018169403,
0.04018291085958481,
-1.3240151405334473,
-0.7973474860191345,
0.05267378315329552,
-0.10109695047140121,
0.30148765444755554,
-0.14024010300636292,
-0.9656221270561218,
-0.940637469291687,
1.0550330877304077,
0.691602349281311... |
func (c *Repo) CreateRepo(w http.ResponseWriter, req *http.Request) (int, interface{}) {
sctx := req.Context().Value(middlewares.SessionKey)
session, ok := sctx.(*types.Session)
if !ok {
fmt.Println("cant convert to session", sctx)
return httputils.InternalError()
}
repo := types.Repo{}
err := json.NewDecod... | [
-0.42676258087158203,
0.34078869223594666,
1.0016144514083862,
0.6274994015693665,
0.41029927134513855,
-0.022832101210951805,
0.2862994074821472,
-0.13174070417881012,
0.48393726348876953,
0.40531399846076965,
-0.7194017171859741,
-0.7914079427719116,
0.2222852259874344,
0.041299097239971... |
func (c *Repo) DeleteRepo(w http.ResponseWriter, req *http.Request) (int, interface{}) {
sctx := req.Context().Value(middlewares.SessionKey)
session, ok := sctx.(*types.Session)
if !ok {
return httputils.InternalError()
}
query := req.URL.Query()
repo := types.Repo{
Name: query["name"][0],
}
repo.Uname =... | [
-0.6491002440452576,
0.26857706904411316,
0.9042047262191772,
0.2203098088502884,
-0.2539677023887634,
-0.39318493008613586,
0.42556849122047424,
0.4289266765117645,
0.573249340057373,
0.5510192513465881,
-0.554753303527832,
-0.4815589487552643,
0.039857082068920135,
-0.07364412397146225,
... |
func (pg *AppOverviewPage) OnNavigatedTo() {
pg.ctx, pg.ctxCancel = context.WithCancel(context.TODO())
pg.getMixerWallets()
pg.loadTransactions()
pg.listenForNotifications()
pg.loadRecentProposals()
} | [
0.11827723681926727,
-0.06198980659246445,
0.3801908493041992,
-0.6064376831054688,
0.1877996325492859,
-0.607451856136322,
-0.22985468804836273,
-1.1425238847732544,
0.10978905111551285,
0.6689441204071045,
0.3026922047138214,
-0.4521011412143707,
0.4691907465457916,
0.37501171231269836,
... |
func (pg *AppOverviewPage) Layout(gtx layout.Context) layout.Dimensions {
pageContent := []func(gtx C) D{
func(gtx C) D {
if len(pg.mixerWallets) == 0 {
return D{}
}
return components.MixerInfoLayout(gtx, pg.Load, true, pg.toMixer.Layout, func(gtx C) D {
return pg.listMixer.Layout(gtx, len(pg.mixer... | [
0.25455713272094727,
0.08623090386390686,
0.8770427703857422,
-1.1904911994934082,
-0.722075879573822,
0.1884465515613556,
0.2925557792186737,
-0.5430142879486084,
0.6088225841522217,
-0.1622425615787506,
1.030548334121704,
-0.9954397678375244,
0.206402987241745,
0.17541159689426422,
0.1... |
func (pg *AppOverviewPage) HandleUserInteractions() {
backupLater := pg.WL.MultiWallet.ReadBoolConfigValueForKey(load.SeedBackupNotificationConfigKey, false)
needBackup := pg.WL.MultiWallet.NumWalletsNeedingSeedBackup() > 0
if needBackup && !backupLater && !pg.isBackupModalOpened {
pg.showBackupInfo()
pg.isBacku... | [
0.06191481277346611,
0.0043739876709878445,
0.7889079451560974,
0.27398988604545593,
-0.07828086614608765,
-0.5620028376579285,
0.8898245096206665,
-0.08659457415342331,
0.31860965490341187,
0.27607136964797974,
-0.11889997869729996,
-1.6443976163864136,
-0.033574316650629044,
0.4296548664... |
func (pg *AppOverviewPage) listenForNotifications() {
// Return if any of the listener is not nill.
switch {
case pg.SyncProgressListener != nil:
return
case pg.TxAndBlockNotificationListener != nil:
return
case pg.ProposalNotificationListener != nil:
return
case pg.BlocksRescanProgressListener != nil:
re... | [
0.512980043888092,
0.20999518036842346,
0.6138414144515991,
-0.45291367173194885,
-0.16255754232406616,
-0.110399030148983,
0.03734610602259636,
-0.7131667137145996,
-0.19559061527252197,
-0.23083657026290894,
0.19587929546833038,
-0.9946308732032776,
-0.5412416458129883,
1.246770501136779... |
func (pg *AppOverviewPage) OnNavigatedFrom() {
pg.ctxCancel()
} | [
0.675387978553772,
-0.704457700252533,
0.28140830993652344,
0.14122310280799866,
-0.5014986395835876,
0.6111077070236206,
-0.0665946826338768,
-0.405323326587677,
0.4116266071796417,
0.47028231620788574,
0.8786799311637878,
-0.9406473636627197,
0.6672977805137634,
0.11925346404314041,
-0... |
func (r *Reconciler) service(log logr.Logger, extListener v1beta1.ExternalListenerConfig,
ingressConfig v1beta1.IngressConfig, ingressConfigName, defaultIngressConfigName string) runtime.Object {
eListenerLabelName := util.ConstructEListenerLabelName(ingressConfigName, extListener.Name)
// Determine Service Name fr... | [
0.06965525448322296,
-1.0629136562347412,
0.5741882920265198,
-0.5032967329025269,
-0.16014215350151062,
-0.04102233424782753,
-0.49530738592147827,
0.26301413774490356,
-0.1180705726146698,
0.44826066493988037,
0.4175960123538971,
0.43566256761550903,
-1.1061691045761108,
-0.0222049281001... |
func makeSender(config alertsender.Config) (alertsender.Sender, error) {
c, ok := config.Sender.(Config)
if !ok {
return nil, alertsender.ErrInvalidConfig(alertsender.Slack)
}
client := &http.Client{
Transport: &http.Transport{
DialContext: (&net.Dialer{
Timeout: 10 * time.Second,
KeepAlive: 30 * t... | [
0.8051899075508118,
-0.23066997528076172,
0.6925897598266602,
-0.05281061306595802,
-0.5069994330406189,
0.5399994254112244,
-0.4015529751777649,
-0.19309431314468384,
-0.18935951590538025,
0.2906866669654846,
-0.42874521017074585,
0.5862928628921509,
-0.39705511927604675,
-0.2161685228347... |
func NewDNSTable(config *core.Config, bus *core.EventBus) *DNSTable {
d := &DNSTable{SourceType: core.SCRAPE}
d.BaseService = *core.NewBaseService(d, "DNSTable", config, bus)
return d
} | [
-0.5442431569099426,
1.0333365201950073,
0.3199026584625244,
0.5462218523025513,
-1.0556291341781616,
-0.46699193120002747,
0.055724721401929855,
-0.02666967548429966,
-0.17400550842285156,
-0.1681382954120636,
-1.003574013710022,
0.27385449409484863,
-0.26826414465904236,
0.81313574314117... |
func (d *DNSTable) OnStart() error {
d.BaseService.OnStart()
go d.processRequests()
return nil
} | [
-0.19329224526882172,
0.586275041103363,
0.18087132275104523,
-0.1498851180076599,
-0.18120849132537842,
-0.6167657375335693,
-0.9703139662742615,
-0.6105977296829224,
-0.2920052111148834,
-0.6903913021087646,
0.5133332014083862,
0.12236929684877396,
0.4240279495716095,
0.46811074018478394... |
func FetchJson(url string, v interface{}) error {
resp, err := http.Get(url)
if err != nil {
return err
}
data, err := ioutil.ReadAll(resp.Body)
if err != nil {
return err
}
if err = json.Unmarshal(data, v); err != nil {
return err
}
return nil
} | [
-0.44487786293029785,
-0.39554494619369507,
0.804052472114563,
-0.44043245911598206,
-1.112872838973999,
-0.2553073763847351,
-0.4469974935054779,
0.11842115968465805,
-0.1520756483078003,
1.090427279472351,
-0.6100382804870605,
1.4661478996276855,
0.058328356593847275,
0.20736069977283478... |
func GetRedisKey4(platform string, uid string, category string, provider string) string {
return platform + "." + uid + "." + category + "." + provider
} | [
-0.44548502564430237,
0.11880458146333694,
0.4096141457557678,
0.2778768539428711,
0.13649019598960876,
0.22943724691867828,
-0.7108822464942932,
-0.5990190505981445,
-0.9374196529388428,
0.3639572560787201,
0.05289298668503761,
0.3823283016681671,
-0.8558555245399475,
0.7904030084609985,
... |
func GetRedisKey3(platform string, uid string, category string) string {
return platform + "." + uid + "." + category
} | [
-0.3889814019203186,
0.556599497795105,
0.34342318773269653,
0.18869362771511078,
-0.18733027577400208,
0.8734091520309448,
-1.1133403778076172,
-0.3381286859512329,
-0.5926335453987122,
0.5144500732421875,
0.18151810765266418,
0.6202610731124878,
-0.5224623084068298,
0.5672656297683716,
... |
func RedisCooldown(rdb *redis.Client, key string) error {
exists, err := rdb.Exists(RedisCtx, key).Result()
if err != nil {
return err
}
if exists == 1 {
return errCooldown
}
_, err = rdb.Set(RedisCtx, key, "", ttl).Result()
if err != nil {
return err
}
return nil
} | [
-0.44645407795906067,
0.546893835067749,
1.0064164400100708,
-0.3298715651035309,
-0.25033825635910034,
0.13676396012306213,
-0.2102154791355133,
-0.6854971051216125,
-0.060275573283433914,
1.5106065273284912,
-0.010226207785308361,
0.09903484582901001,
-0.6566046476364136,
0.3483329415321... |
func NewUnsupportedAsyncEnqueueAccess() EnqueueDataAccess {
return &noAsyncEnqueueAccess{}
} | [
-0.49432530999183655,
-0.8120452761650085,
0.4627738893032074,
-0.9538958668708801,
-0.8168479800224304,
-0.6347823739051819,
0.20303182303905487,
0.16840951144695282,
-0.3765062987804413,
-0.4992994964122772,
0.4283272922039032,
0.02306123450398445,
0.27211129665374756,
0.6315383911132812... |
func NewCmdCatalog(name, fullName string) *cobra.Command {
catalogDescribeCmd := describe.NewCmdCatalogDescribe(describe.RecommendedCommandName, odoutil.GetFullName(fullName, describe.RecommendedCommandName))
catalogSearchCmd := search.NewCmdCatalogSearch(search.RecommendedCommandName, odoutil.GetFullName(fullName, s... | [
0.6953303813934326,
0.023915650323033333,
0.6980912089347839,
-0.7113745808601379,
-0.9042059779167175,
-0.11400922387838364,
-0.16260716319084167,
0.3999142050743103,
-0.32788774371147156,
-0.6088203191757202,
0.07403016090393066,
0.5563905239105225,
0.8648727536201477,
0.3440374732017517... |
func MinusClusters(c map[string]*Cluster, c1 map[string]*Cluster, filter func(*Cluster) bool) map[string]*Cluster {
value := make(map[string]*Cluster)
for _, e1 := range c1 {
if !filter(e1) {
continue
}
if _, ok := c[e1.Name]; !ok {
value[e1.Name] = e1
}
}
return value
} | [
-1.0107976198196411,
-0.3523194491863251,
0.6586515307426453,
-0.9812884330749512,
-0.7555114030838013,
0.7311568856239319,
0.0636281743645668,
-0.6619856953620911,
-0.7604172229766846,
0.5670442581176758,
-0.33246085047721863,
0.3988373875617981,
-0.8635535836219788,
-0.5935136675834656,
... |
func MinusServers(c map[string]*Server, c1 map[string]*Server, filter func(*Server) bool) map[string]*Server {
value := make(map[string]*Server)
for _, e1 := range c1 {
if !filter(e1) {
continue
}
if _, ok := c[e1.Addr]; !ok {
value[e1.Addr] = e1
}
}
return value
} | [
-0.9309706091880798,
-0.15349388122558594,
0.7753368616104126,
-1.3399715423583984,
-0.7565320134162903,
0.7081987857818604,
0.02082800306379795,
-0.19700278341770172,
-0.1517670601606369,
0.3896855115890503,
-0.5660090446472168,
0.821861743927002,
-0.6084964871406555,
-0.0975809171795845,... |
func (s *ApiIntegrationTestSuite) SetUpSuite(c *C) {
c.Log("Setting up api integrtion test suite")
configPath := "config.toml"
config, err := host.OpenConfig(configPath)
if err != nil {
c.Fatalf("Cannot open config at %v: %v", configPath, err)
}
// Host api service in this process
apiServer := host.NewServer... | [
-0.4786631762981415,
-0.6346228718757629,
0.44435855746269226,
-0.5625401139259338,
0.9110499024391174,
0.14920395612716675,
1.0779680013656616,
1.0435391664505005,
-0.10151703655719757,
-0.26481443643569946,
0.11932773888111115,
0.07930521667003632,
-0.7201681733131409,
0.4381022751331329... |
func (s *ApiIntegrationTestSuite) TearDownSuite(c *C) {
c.Log("Tearing down api integration test suite")
s.testServer.Close()
c.Log("Test server closed")
} | [
-0.4946625828742981,
-0.6412614583969116,
0.1572943776845932,
-1.1691169738769531,
0.8446662425994873,
0.6623615622520447,
1.849758505821228,
0.22849096357822418,
-0.05993832275271416,
-0.5401924252510071,
0.2633035182952881,
0.6250066757202148,
-1.5787577629089355,
0.1504967212677002,
0... |
func (s *ApiIntegrationTestSuite) TestPostNewCallbackUnauthorized(c *C) {
callback := Document{
"when": "2006-01-02T15:04:05Z",
"url": "http://google.com/",
}
data := callback.ToJson()
buf := bytes.NewBuffer(data)
response, err := http.Post(s.ApiBaseUrl+"/user/callbacks", "application/json", buf)
c.Assert(e... | [
-0.5589502453804016,
0.4834694266319275,
0.6427744030952454,
0.5394119024276733,
-0.11050913482904434,
0.777860701084137,
-0.04610620439052582,
-0.47569939494132996,
0.1676759570837021,
-0.601539134979248,
-1.3581559658050537,
0.2938827574253082,
-0.6979742050170898,
0.7681183218955994,
... |
func DeployRegistry(auth *bind.TransactOpts, backend bind.ContractBackend, _uri string) (common.Address, *types.Transaction, *Registry, error) {
parsed, err := abi.JSON(strings.NewReader(RegistryABI))
if err != nil {
return common.Address{}, nil, nil, err
}
address, tx, contract, err := bind.DeployContract(auth,... | [
-0.7919355034828186,
0.31772562861442566,
0.606822669506073,
-0.4746171236038208,
0.053899168968200684,
-0.9620653986930847,
0.4683772027492523,
0.14668609201908112,
0.04212029650807381,
0.9008586406707764,
-0.014832981862127781,
0.6128013730049133,
-0.5465561151504517,
0.14546780288219452... |
func NewRegistry(address common.Address, backend bind.ContractBackend) (*Registry, error) {
contract, err := bindRegistry(address, backend, backend, backend)
if err != nil {
return nil, err
}
return &Registry{RegistryCaller: RegistryCaller{contract: contract}, RegistryTransactor: RegistryTransactor{contract: cont... | [
0.2057959884405136,
0.5340151190757751,
0.3885217308998108,
0.46801990270614624,
-0.15154577791690826,
-0.7482945919036865,
-0.05259126052260399,
0.4118214249610901,
0.7188546061515808,
0.6939830183982849,
-0.18859952688217163,
0.8164976835250854,
-0.28054988384246826,
0.4021645188331604,
... |
func NewRegistryCaller(address common.Address, caller bind.ContractCaller) (*RegistryCaller, error) {
contract, err := bindRegistry(address, caller, nil, nil)
if err != nil {
return nil, err
}
return &RegistryCaller{contract: contract}, nil
} | [
-0.22340808808803558,
0.7489799857139587,
0.3848201632499695,
0.6620070338249207,
-0.3195209205150604,
-0.2147418111562729,
0.18133075535297394,
0.3704746961593628,
0.8058803677558899,
0.8820705413818359,
-0.6250974535942078,
0.4736402630805969,
-0.14196312427520752,
0.8089934587478638,
... |
func NewRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*RegistryTransactor, error) {
contract, err := bindRegistry(address, nil, transactor, nil)
if err != nil {
return nil, err
}
return &RegistryTransactor{contract: contract}, nil
} | [
-0.037554748356342316,
0.5236468315124512,
0.4036744236946106,
0.058775488287210464,
-0.403277724981308,
-0.5732236504554749,
0.6202066540718079,
0.5585593581199646,
0.43105724453926086,
1.1730672121047974,
-1.823859691619873,
0.6880350708961487,
0.052718568593263626,
-0.0630868524312973,
... |
func NewRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*RegistryFilterer, error) {
contract, err := bindRegistry(address, nil, nil, filterer)
if err != nil {
return nil, err
}
return &RegistryFilterer{contract: contract}, nil
} | [
-0.21345801651477814,
0.5688661932945251,
0.3769259750843048,
0.8382181525230408,
-0.28606316447257996,
-0.585163414478302,
0.09386128932237625,
0.6914074420928955,
0.5748579502105713,
0.6308766007423401,
-0.7959815859794617,
0.9278078079223633,
-0.2096628099679947,
0.8483427166938782,
0... |
func bindRegistry(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(RegistryABI))
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, parsed, caller, t... | [
-0.33399108052253723,
-0.12819331884384155,
0.4785180687904358,
0.07083155959844589,
0.09792149811983109,
-0.7387274503707886,
-0.19861724972724915,
0.22282825410366058,
0.35077720880508423,
0.22062531113624573,
0.14898592233657837,
1.2329198122024536,
-0.15090343356132507,
0.4698909223079... |
func (_Registry *RegistryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _Registry.Contract.RegistryCaller.contract.Call(opts, result, method, params...)
} | [
-1.1003661155700684,
0.7390255928039551,
0.4466208219528198,
0.6911513805389404,
-0.45220285654067993,
0.2671535015106201,
-0.03390613570809364,
-0.1627778559923172,
0.6911514401435852,
0.49611517786979675,
0.09089819341897964,
0.2522161602973938,
-0.642754316329956,
0.23460906744003296,
... |
func (_Registry *RegistryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Registry.Contract.RegistryTransactor.contract.Transfer(opts)
} | [
-0.60362708568573,
0.11018405854701996,
0.288530558347702,
0.3993077278137207,
-0.08413717150688171,
0.17324739694595337,
0.7542986869812012,
-0.0681246817111969,
0.9366620182991028,
0.1399090737104416,
-0.17142459750175476,
0.5964444279670715,
-0.42698800563812256,
-0.6255001425743103,
... |
func (_Registry *RegistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Registry.Contract.RegistryTransactor.contract.Transact(opts, method, params...)
} | [
-0.5351771712303162,
0.44331568479537964,
0.39922070503234863,
-0.4793862998485565,
0.48625051975250244,
-0.2011742740869522,
1.2035157680511475,
0.03046988695859909,
0.4816017746925354,
0.37510931491851807,
-0.20499348640441895,
0.7686428427696228,
-0.1340971440076828,
-0.1339718252420425... |
func (_Registry *RegistryCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _Registry.Contract.contract.Call(opts, result, method, params...)
} | [
-0.9318925142288208,
0.6679097414016724,
0.45292195677757263,
0.6908293962478638,
-0.5122038125991821,
0.28177979588508606,
-0.09563364088535309,
-0.24377745389938354,
0.5994145274162292,
0.4691251814365387,
0.04653181880712509,
0.1724785566329956,
-0.6324266791343689,
0.2681676745414734,
... |
func (_Registry *RegistryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Registry.Contract.contract.Transfer(opts)
} | [
-0.4546276032924652,
0.13454711437225342,
0.2452903687953949,
0.5819658637046814,
0.18252544105052948,
0.1932494342327118,
0.7214429378509521,
-0.31090742349624634,
0.9336227178573608,
0.006634349934756756,
0.06405822932720184,
0.40153878927230835,
-0.35277804732322693,
-0.6625462770462036... |
func (_Registry *RegistryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Registry.Contract.contract.Transact(opts, method, params...)
} | [
-0.44182994961738586,
0.4192519187927246,
0.3477334678173065,
-0.39576268196105957,
0.4626784324645996,
-0.18635457754135132,
1.122564435005188,
-0.27637794613838196,
0.3986872732639313,
0.3056364059448242,
-0.054936621338129044,
0.640062689781189,
-0.06363186985254288,
-0.2706111073493957... |
func (_Registry *RegistryCaller) BalanceOf(opts *bind.CallOpts, account common.Address, id *big.Int) (*big.Int, error) {
var out []interface{}
err := _Registry.contract.Call(opts, &out, "balanceOf", account, id)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big... | [
-0.21261842548847198,
0.4242112934589386,
0.7247534990310669,
-0.08101049065589905,
0.1324554681777954,
-0.7738260626792908,
-0.009448390454053879,
-0.7584421038627625,
0.9637769460678101,
0.2254585176706314,
-0.13496123254299164,
0.9864023923873901,
-0.574680507183075,
0.28476670384407043... |
func (_Registry *RegistrySession) BalanceOf(account common.Address, id *big.Int) (*big.Int, error) {
return _Registry.Contract.BalanceOf(&_Registry.CallOpts, account, id)
} | [
0.2591243088245392,
0.7257280945777893,
0.40843531489372253,
-0.21323655545711517,
0.19713623821735382,
-0.5635437965393066,
0.0015358751406893134,
-0.7978783249855042,
1.4030262231826782,
0.3699174225330353,
0.031161144375801086,
0.8972819447517395,
-0.6127114295959473,
0.0859780088067054... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.