text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func CreateLocalCluster(config Config) (nodes []*Node, err error) {
if err = CheckConfig(config); err != nil {
return
}
nodes = make([]*Node, config.ClusterSize)
var stableStore StableStore
if config.InMemory {
stableStore = NewMemoryStore()
} else {
stableStore = NewBoltStore(filepath.Join(config.LogPath,... | [
0.13129836320877075,
0.2677249610424042,
0.7105058431625366,
0.17892137169837952,
0.6050235033035278,
0.3031834363937378,
0.5685057044029236,
-0.15683691203594208,
-0.025630762800574303,
0.4591696262359619,
0.06492233276367188,
0.7061401009559631,
-0.8936754465103149,
0.1899627298116684,
... |
func CreateDefinedLocalCluster(config Config, ports []int) (nodes []*Node, err error) {
if err = CheckConfig(config); err != nil {
return
}
nodes = make([]*Node, config.ClusterSize)
var stableStore StableStore
if config.InMemory {
stableStore = NewMemoryStore()
} else {
stableStore = NewBoltStore(filepath.... | [
0.18784891068935394,
0.34430059790611267,
0.9508249163627625,
0.2698703408241272,
1.2667423486709595,
-0.0002967073814943433,
0.744479238986969,
-0.45950329303741455,
-0.4560807943344116,
0.19462868571281433,
0.01771121472120285,
0.9271830916404724,
-0.42718037962913513,
0.311288058757782,... |
func (*KVM) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_machine_db_api_crimson_v1_kvms_proto_rawDescGZIP(), []int{0}
} | [
-0.3620728850364685,
0.7615225315093994,
-0.001350460690446198,
0.0502953827381134,
-0.14794816076755524,
0.287407785654068,
-0.6445837020874023,
0.23527386784553528,
-0.2717900574207306,
-0.3102748990058899,
0.12161839753389359,
-0.137116938829422,
-0.18023823201656342,
0.2980092763900757... |
func (*ListKVMsRequest) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_machine_db_api_crimson_v1_kvms_proto_rawDescGZIP(), []int{1}
} | [
-0.7504771947860718,
-0.0920923575758934,
0.19287560880184174,
-0.028560228645801544,
0.24161683022975922,
-1.1085796356201172,
-1.1740080118179321,
-0.35558563470840454,
-0.31714555621147156,
0.1996777057647705,
-0.0881923958659172,
-0.3783349096775055,
0.4974421560764313,
0.8273086547851... |
func (*ListKVMsResponse) Descriptor() ([]byte, []int) {
return file_go_chromium_org_luci_machine_db_api_crimson_v1_kvms_proto_rawDescGZIP(), []int{2}
} | [
0.3050086498260498,
-0.3049388527870178,
-0.18734003603458405,
0.21320365369319916,
0.7042534947395325,
-1.4071813821792603,
-0.4045915901660919,
-0.4048030376434326,
0.024570217356085777,
0.5680018067359924,
-0.9817914366722107,
-1.1435266733169556,
-0.10638061910867691,
0.371750563383102... |
func (s DeletePolicyVersionInput) String() string {
return awsutil.Prettify(s)
} | [
0.5568976402282715,
-0.9081567525863647,
0.061994828283786774,
-0.3320023715496063,
-0.7332085371017456,
1.692765235900879,
0.023043116554617882,
-0.674143373966217,
0.614862322807312,
0.4527813494205475,
0.023018188774585724,
0.7753229141235352,
-0.21132934093475342,
-0.5640525817871094,
... |
func (s *DeletePolicyVersionInput) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "DeletePolicyVersionInput"}
if s.PolicyName == nil {
invalidParams.Add(aws.NewErrParamRequired("PolicyName"))
}
if s.PolicyName != nil && len(*s.PolicyName) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("Policy... | [
-0.4702243506908417,
-0.3888203799724579,
0.4050012528896332,
0.2792348265647888,
-0.3416140377521515,
1.1335052251815796,
-0.5356380939483643,
-0.016492541879415512,
0.3278736472129822,
0.3398054838180542,
0.4447113871574402,
-0.014369090087711811,
-1.12848961353302,
0.5419399738311768,
... |
func (s DeletePolicyVersionInput) MarshalFields(e protocol.FieldEncoder) error {
e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.PolicyName != nil {
v := *s.PolicyName
metadata := protocol.Metadata{}
e.SetValue(protocol.PathTarget, "policyN... | [
0.32284799218177795,
-0.18283776938915253,
0.2275039255619049,
-0.8990161418914795,
-0.06874913722276688,
0.9693474769592285,
-0.4146159589290619,
0.5074964165687561,
0.701397716999054,
0.2876904308795929,
-0.2423803061246872,
0.22270157933235168,
-0.949357271194458,
-0.1270497888326645,
... |
func (s DeletePolicyVersionOutput) String() string {
return awsutil.Prettify(s)
} | [
1.237221360206604,
-1.354183554649353,
0.1036023497581482,
-0.3191561996936798,
-1.0262351036071777,
0.8475033640861511,
0.048029668629169464,
-0.6028432250022888,
0.09421031922101974,
0.3925681412220001,
0.29624471068382263,
0.6107350587844849,
0.023745743557810783,
-0.5499235391616821,
... |
func (s DeletePolicyVersionOutput) MarshalFields(e protocol.FieldEncoder) error {
return nil
} | [
1.0018688440322876,
-0.021935313940048218,
0.03833543136715889,
-0.19328001141548157,
-0.10397635400295258,
0.9649224281311035,
0.10562729835510254,
1.013411521911621,
0.7409879565238953,
-0.017214477062225342,
-0.11492017656564713,
-0.4743620753288269,
-1.2481426000595093,
-0.091498635709... |
func (r DeletePolicyVersionRequest) Send(ctx context.Context) (*DeletePolicyVersionResponse, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
resp := &DeletePolicyVersionResponse{
DeletePolicyVersionOutput: r.Request.Data.(*DeletePolicyVersionOutput),
response: ... | [
-0.6349512934684753,
-0.628427267074585,
-0.014853579923510551,
0.3532782196998596,
-0.2998368442058563,
0.5520881414413452,
-0.6281355619430542,
-0.42617112398147583,
0.5529196858406067,
0.43462154269218445,
-0.6133580207824707,
0.7511072754859924,
-0.7318065762519836,
-0.0541793927550315... |
func (r *DeletePolicyVersionResponse) SDKResponseMetdata() *aws.Response {
return r.response
} | [
0.39971014857292175,
-1.0805410146713257,
0.2963787317276001,
-0.2969895899295807,
-0.2693558931350708,
0.7651984095573425,
-0.8765829205513,
-0.20850332081317902,
1.1126551628112793,
0.04271652549505234,
-0.3693558871746063,
-0.0351858027279377,
-0.2897731065750122,
-0.6296870112419128,
... |
func (i *Invoker) Connect(address string) (e error) {
if i.Conn, e = grpc.Dial(address, grpc.WithInsecure()); e != nil {
return
}
i.Client = invokerV1API.NewInvokerClient(i.Conn)
return
} | [
-0.4646819829940796,
0.12269069254398346,
0.571908712387085,
0.31232815980911255,
-0.25922271609306335,
0.24605746567249298,
-0.4567406177520752,
0.2550928592681885,
-0.5349923372268677,
0.3893803358078003,
0.18651358783245087,
0.7890351414680481,
-0.8338265419006348,
0.34069642424583435,
... |
func (i *Invoker) Add(
ctx context.Context,
username string,
actName string,
actDirPath string,
) (e error) {
_, e = i.Client.Add(ctx, &invokerV1API.AddRequest{
Username: username,
ActName: actName,
Path: actDirPath,
Method: invokerV1API.AddMethod_LOCAL,
})
return
} | [
-0.6066820621490479,
-0.6966949701309204,
0.47595179080963135,
0.36747878789901733,
0.15860264003276825,
0.29130327701568604,
0.5753061175346375,
0.3161742687225342,
0.3085850775241852,
-0.31907472014427185,
0.6282616853713989,
1.69804847240448,
-1.1430703401565552,
0.27325916290283203,
... |
func (i *Invoker) Invoke(
ctx context.Context,
username string,
actName string,
arg string,
) (rst string, e error) {
var (
res *invokerV1API.InvokeResponse
)
wg := sync.WaitGroup{}
wg.Add(1)
go func() {
defer wg.Done()
if res, e = i.Client.Invoke(ctx, &invokerV1API.InvokeRequest{
Username: usernam... | [
-0.6452255845069885,
0.32577162981033325,
0.6871173977851868,
0.30888476967811584,
-0.5630971193313599,
-0.29640427231788635,
0.31484124064445496,
-0.32505664229393005,
-0.38829997181892395,
0.15788230299949646,
-0.05019660294055939,
1.147983431816101,
-1.1969735622406006,
-0.1352552324533... |
func NewGetDistroXStatusInternalV1ByCrnsParams() *GetDistroXStatusInternalV1ByCrnsParams {
var ()
return &GetDistroXStatusInternalV1ByCrnsParams{
timeout: cr.DefaultTimeout,
}
} | [
0.798967182636261,
0.07598276436328888,
0.34502044320106506,
0.16464270651340485,
0.3202441930770874,
-0.05750386789441109,
-0.19668295979499817,
-0.013921273872256279,
-0.5874146223068237,
-0.4173692464828491,
-0.4266069233417511,
-0.01614455319941044,
-0.1701943725347519,
-0.594291269779... |
func NewGetDistroXStatusInternalV1ByCrnsParamsWithTimeout(timeout time.Duration) *GetDistroXStatusInternalV1ByCrnsParams {
var ()
return &GetDistroXStatusInternalV1ByCrnsParams{
timeout: timeout,
}
} | [
1.3163741827011108,
-0.02994951605796814,
0.5048450827598572,
-0.04088111221790314,
0.1642688363790512,
0.3731788396835327,
-0.48992037773132324,
0.21492984890937805,
-0.2906321883201599,
0.21851472556591034,
-0.27973538637161255,
0.29789555072784424,
-0.03610486537218094,
-0.2002872824668... |
func NewGetDistroXStatusInternalV1ByCrnsParamsWithContext(ctx context.Context) *GetDistroXStatusInternalV1ByCrnsParams {
var ()
return &GetDistroXStatusInternalV1ByCrnsParams{
Context: ctx,
}
} | [
0.6501636505126953,
0.26922789216041565,
0.7829563021659851,
-0.39559248089790344,
0.35664549469947815,
0.2674165964126587,
-0.5242127776145935,
-0.5481024384498596,
0.0019280847627669573,
-0.4523705840110779,
-0.363452672958374,
-0.18045474588871002,
-0.23723740875720978,
-0.6528447866439... |
func NewGetDistroXStatusInternalV1ByCrnsParamsWithHTTPClient(client *http.Client) *GetDistroXStatusInternalV1ByCrnsParams {
var ()
return &GetDistroXStatusInternalV1ByCrnsParams{
HTTPClient: client,
}
} | [
0.9836466312408447,
0.11367271840572357,
0.6285447478294373,
0.13646569848060608,
0.7034505605697632,
0.32617077231407166,
0.14441360533237457,
0.014508096501231194,
-0.6040509343147278,
-0.5918594002723694,
-0.5508149862289429,
0.0757015123963356,
0.178341343998909,
-0.437165766954422,
... |
func (o *GetDistroXStatusInternalV1ByCrnsParams) WithTimeout(timeout time.Duration) *GetDistroXStatusInternalV1ByCrnsParams {
o.SetTimeout(timeout)
return o
} | [
1.1471121311187744,
0.32044461369514465,
0.3332992196083069,
-0.14956708252429962,
0.1312948614358902,
-0.27404555678367615,
-0.1749567836523056,
0.0938616544008255,
0.6099991798400879,
0.007676044479012489,
-0.06990428268909454,
0.22179195284843445,
0.678138792514801,
-0.2537086606025696,... |
func (o *GetDistroXStatusInternalV1ByCrnsParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
} | [
0.8959839940071106,
0.5030316710472107,
0.30399376153945923,
-0.12994740903377533,
0.6454808712005615,
0.16042324900627136,
0.0904579684138298,
0.48905542492866516,
0.04405193775892258,
0.02774684503674507,
-0.22780263423919678,
0.6467304229736328,
0.10898485034704208,
-0.23424124717712402... |
func (o *GetDistroXStatusInternalV1ByCrnsParams) WithContext(ctx context.Context) *GetDistroXStatusInternalV1ByCrnsParams {
o.SetContext(ctx)
return o
} | [
0.4285069704055786,
0.2688264548778534,
0.563243567943573,
-0.22990456223487854,
0.1692792773246765,
-0.2308707982301712,
-0.4365769326686859,
-0.5596362948417664,
0.9610403180122375,
-0.6093466877937317,
-0.10802675038576126,
-0.031463269144296646,
0.0743759498000145,
-0.8047677278518677,... |
func (o *GetDistroXStatusInternalV1ByCrnsParams) SetContext(ctx context.Context) {
o.Context = ctx
} | [
0.3548256456851959,
0.4716819226741791,
0.39509260654449463,
0.10174959152936935,
0.7633002400398254,
0.035308025777339935,
-0.11173496395349503,
-0.21397700905799866,
0.7459225058555603,
-0.45552513003349304,
-0.31921079754829407,
0.5216676592826843,
-0.2924109995365143,
-0.61184352636337... |
func (o *GetDistroXStatusInternalV1ByCrnsParams) WithHTTPClient(client *http.Client) *GetDistroXStatusInternalV1ByCrnsParams {
o.SetHTTPClient(client)
return o
} | [
0.8019290566444397,
-0.23376323282718658,
0.46086087822914124,
-0.24569877982139587,
0.4724001884460449,
-0.2223798632621765,
0.24187660217285156,
-0.2741931676864624,
0.05661093816161156,
-0.9896606206893921,
-0.23198026418685913,
0.21932336688041687,
0.7318934798240662,
-0.76972573995590... |
func (o *GetDistroXStatusInternalV1ByCrnsParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
} | [
1.0916221141815186,
0.07997362315654755,
0.32153311371803284,
-0.5958866477012634,
0.3878112733364105,
-0.4246530830860138,
0.34134989976882935,
-0.04018375277519226,
-0.419657826423645,
-0.6939084529876709,
-0.2949603796005249,
0.7899751663208008,
0.17833662033081055,
-0.9539642930030823,... |
func (o *GetDistroXStatusInternalV1ByCrnsParams) WithBody(body *model.StatusCrnsV4Request) *GetDistroXStatusInternalV1ByCrnsParams {
o.SetBody(body)
return o
} | [
0.019872741773724556,
0.08808378875255585,
0.3391094207763672,
-0.10031179338693619,
0.7334450483322144,
-0.4859917461872101,
-0.5279054045677185,
-0.7969691157341003,
0.7022038698196411,
-0.49028506875038147,
-0.3577980101108551,
-0.5575197339057922,
-0.1037348210811615,
-0.30066734552383... |
func (o *GetDistroXStatusInternalV1ByCrnsParams) SetBody(body *model.StatusCrnsV4Request) {
o.Body = body
} | [
-0.2725659906864166,
0.011319502256810665,
0.2789298892021179,
0.1642352044582367,
1.0524115562438965,
-0.10899315774440765,
-0.5206849575042725,
-0.23144058883190155,
0.3799920082092285,
-0.30049124360084534,
-0.69212406873703,
0.17675277590751648,
-0.4900738596916199,
0.35575971007347107... |
func (o *GetDistroXStatusInternalV1ByCrnsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Body != nil {
if err := r.SetBodyParam(o.Body); err != nil {
return err
}
}
if len(res) > 0 {
return... | [
-0.5999470949172974,
0.30044230818748474,
0.7741746306419373,
-0.41868484020233154,
1.4588052034378052,
-0.270790696144104,
0.5583998560905457,
0.03950617089867592,
-0.18123164772987366,
-0.016020318493247032,
0.14198514819145203,
0.47240209579467773,
-0.2315414845943451,
-0.13600121438503... |
func NewSQLMockProvider() (*SQLMockProvider, sqlmock.Sqlmock) {
provider := SQLMockProvider{
SQLProvider{
name: "sqlmock",
sqlUpgradesCreateTableStatements: sqlUpgradeCreateTableStatements,
sqlUpgradesCreateTableIndexesStatements: sqlUpgradesCreateTableIndexesStatements,
sqlGetPreferencesByUsern... | [
-0.5344264507293701,
0.147690549492836,
0.49038803577423096,
0.5651169419288635,
-0.06837249547243118,
-0.43797311186790466,
0.017655709758400917,
-0.7362737059593201,
0.6770100593566895,
-0.1741064488887787,
-0.4842291474342346,
-0.21545928716659546,
-0.022620849311351776,
0.3525051176548... |
func (err *Error) StackTrace() []byte {
if err.frames == nil {
err.frames = err.StackFrames()
}
return stack(err.frames)
} | [
0.9568670392036438,
0.3191780149936676,
0.5034400224685669,
0.862057089805603,
0.04912211745977402,
-0.8183520436286926,
-0.25899434089660645,
-0.813914954662323,
1.468007206916809,
-0.09771648049354553,
0.2446112036705017,
0.29195424914360046,
-0.906828761100769,
0.8597778081893921,
0.1... |
func (err *Error) StackFrames() []StackFrame {
if err.frames == nil {
err.frames = stackFrames(err.stack)
}
return err.frames
} | [
-0.3695918023586273,
0.3860187530517578,
0.513367235660553,
0.8176288604736328,
-0.5935552716255188,
-1.2688817977905273,
-0.09754496812820435,
-0.9402214884757996,
1.3050425052642822,
0.48740169405937195,
-0.27877044677734375,
0.6652676463127136,
-0.9941583275794983,
0.8089969754219055,
... |
func (*Members) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*Members_Leader)(nil),
(*Members_Master)(nil),
(*Members_Worker)(nil),
}
} | [
-1.0326037406921387,
-0.04636118561029434,
0.3027438521385193,
-0.030009564012289047,
1.3563287258148193,
-0.10165225714445114,
-0.578520655632019,
-0.5707274675369263,
1.0718638896942139,
-0.07293002307415009,
-0.11763446778059006,
0.2867991626262665,
-0.8599520921707153,
0.64998316764831... |
func (stage *StageStruct) Backup(dirPath string) {
if stage.BackRepo != nil {
stage.BackRepo.Backup(stage, dirPath)
}
} | [
-0.5647659301757812,
-0.09282774478197098,
0.43361005187034607,
0.12841765582561493,
-0.17213131487369537,
0.29215407371520996,
1.7107484340667725,
0.4081512987613678,
0.6708407998085022,
0.23089119791984558,
-0.09296286851167679,
-0.06474068760871887,
-0.3040529489517212,
0.02105840109288... |
func (stage *StageStruct) Restore(dirPath string) {
if stage.BackRepo != nil {
stage.BackRepo.Restore(stage, dirPath)
}
} | [
-0.10226938128471375,
-0.19235408306121826,
0.3842264711856842,
-0.25676867365837097,
0.1431548297405243,
-0.3192916810512543,
0.8884620070457458,
0.5050652027130127,
0.612849771976471,
-0.2349638044834137,
0.032506778836250305,
0.21235372126102448,
-1.251007080078125,
-0.28532999753952026... |
func (stage *StageStruct) BackupXL(dirPath string) {
if stage.BackRepo != nil {
stage.BackRepo.BackupXL(stage, dirPath)
}
} | [
0.050266701728105545,
0.0045979805290699005,
0.40315255522727966,
-0.1279534250497818,
-0.41303372383117676,
0.5023722648620605,
1.152289628982544,
0.5823849439620972,
0.8285753130912781,
0.6919869780540466,
-0.2821281850337982,
-0.3666696548461914,
0.07387293875217438,
-0.6220967769622803... |
func (stage *StageStruct) RestoreXL(dirPath string) {
if stage.BackRepo != nil {
stage.BackRepo.RestoreXL(stage, dirPath)
}
} | [
0.41694867610931396,
0.08766350895166397,
0.4159810543060303,
-0.26910024881362915,
-0.10408361256122589,
-0.14088787138462067,
0.7702292799949646,
0.5926320552825928,
1.1506563425064087,
0.1941314935684204,
-0.020632393658161163,
-0.005507123656570911,
-0.6652578115463257,
-0.748199999332... |
func (stage *StageStruct) getFooOrderedStructWithNameField() []*Foo {
// have alphabetical order generation
fooOrdered := []*Foo{}
for foo := range stage.Foos {
fooOrdered = append(fooOrdered, foo)
}
sort.Slice(fooOrdered[:], func(i, j int) bool {
return fooOrdered[i].Name < fooOrdered[j].Name
})
return fooO... | [
-0.8085285425186157,
-0.9206746816635132,
0.7862933278083801,
-0.6960995197296143,
-0.8022950887680054,
-0.12242233753204346,
-0.27354609966278076,
-1.0095075368881226,
-0.013234851881861687,
-0.7931551337242126,
-1.1482369899749756,
-0.10114897042512894,
0.03547041118144989,
0.73337501287... |
func (foo *Foo) Stage() *Foo {
Stage.Foos[foo] = __member
Stage.Foos_mapString[foo.Name] = foo
return foo
} | [
-0.263213574886322,
-0.9150575399398804,
0.4296231269836426,
-0.272160142660141,
-0.288913756608963,
0.02067526988685131,
-0.33950063586235046,
0.6612200140953064,
-0.31600290536880493,
-0.7787109613418579,
-0.4685215353965759,
0.4796978235244751,
0.14539135992527008,
0.4437867999076843,
... |
func (foo *Foo) Unstage() *Foo {
delete(Stage.Foos, foo)
delete(Stage.Foos_mapString, foo.Name)
return foo
} | [
-0.3915919363498688,
-0.5979987978935242,
0.5950785875320435,
-0.5149703621864319,
-0.5785590410232544,
-0.8525420427322388,
-0.13060082495212555,
1.175866961479187,
-0.94196617603302,
-0.30693474411964417,
-0.18050527572631836,
-0.03524887561798096,
-0.49124857783317566,
0.268393427133560... |
func (foo *Foo) Commit() *Foo {
if _, ok := Stage.Foos[foo]; ok {
if Stage.BackRepo != nil {
Stage.BackRepo.CommitFoo(foo)
}
}
return foo
} | [
-0.05505194887518883,
-0.5694005489349365,
0.7181648015975952,
0.4103021025657654,
0.3049149811267853,
-0.09697338938713074,
0.20353266596794128,
0.31595370173454285,
-0.7384224534034729,
0.9365676045417786,
0.5468917489051819,
0.7115942239761353,
-0.3511333167552948,
0.36930084228515625,
... |
func (foo *Foo) Checkout() *Foo {
if _, ok := Stage.Foos[foo]; ok {
if Stage.BackRepo != nil {
Stage.BackRepo.CheckoutFoo(foo)
}
}
return foo
} | [
0.7883132696151733,
0.11038649082183838,
0.5336928963661194,
0.34418487548828125,
0.19493678212165833,
-0.3435671627521515,
0.11529190093278885,
1.0431904792785645,
-0.1014452800154686,
0.3121907413005829,
0.6827707886695862,
1.1981732845306396,
-0.3251570463180542,
0.29151681065559387,
... |
func (foo *Foo) StageCopy() *Foo {
_foo := new(Foo)
*_foo = *foo
_foo.Stage()
return _foo
} | [
-1.0687702894210815,
-0.8776415586471558,
0.6406779289245605,
0.9034850597381592,
-1.3865545988082886,
0.386150598526001,
0.9257388114929199,
-0.11929075419902802,
-0.53433758020401,
0.34280210733413696,
0.02548389695584774,
0.13538725674152374,
0.3098280429840088,
-0.19804421067237854,
... |
func (foo *Foo) StageAndCommit() *Foo {
foo.Stage()
if Stage.AllModelsStructCreateCallback != nil {
Stage.AllModelsStructCreateCallback.CreateORMFoo(foo)
}
return foo
} | [
0.29380810260772705,
-0.8008846044540405,
0.43016913533210754,
0.8180150985717773,
-0.48740729689598083,
0.3325205445289612,
0.44858723878860474,
0.40627193450927734,
-0.056828632950782776,
-0.16068696975708008,
-0.2662704288959503,
-0.47525927424430847,
0.2677372395992279,
1.0813368558883... |
func (foo *Foo) DeleteStageAndCommit() *Foo {
foo.Unstage()
DeleteORMFoo(foo)
return foo
} | [
0.26812753081321716,
-0.4036334455013275,
0.5666934847831726,
0.6111288666725159,
-0.41712436079978943,
-0.30069398880004883,
0.39948922395706177,
1.1428005695343018,
-0.1832786202430725,
0.02129102684557438,
-0.2541319727897644,
0.4285646677017212,
-0.6375339031219482,
1.0430467128753662,... |
func (foo *Foo) StageCopyAndCommit() *Foo {
_foo := new(Foo)
*_foo = *foo
_foo.Stage()
if Stage.AllModelsStructCreateCallback != nil {
Stage.AllModelsStructCreateCallback.CreateORMFoo(foo)
}
return _foo
} | [
-0.037014998495578766,
-0.633709192276001,
0.5654388666152954,
0.7712575197219849,
-1.2709301710128784,
0.32513344287872314,
0.695038914680481,
0.18500742316246033,
-0.06811188906431198,
0.4373670220375061,
-0.13953909277915955,
-0.26519331336021423,
0.2934316098690033,
0.43751460313796997... |
func CreateORMFoo(foo *Foo) {
foo.Stage()
if Stage.AllModelsStructCreateCallback != nil {
Stage.AllModelsStructCreateCallback.CreateORMFoo(foo)
}
} | [
0.827794075012207,
-0.2438826858997345,
0.36899569630622864,
0.4205794632434845,
0.2629150152206421,
0.22327858209609985,
0.5444722771644592,
0.07327303290367126,
-0.33298900723457336,
-0.989887535572052,
-1.3247616291046143,
-0.28377366065979004,
0.847412109375,
1.520796537399292,
0.144... |
func DeleteORMFoo(foo *Foo) {
foo.Unstage()
if Stage.AllModelsStructDeleteCallback != nil {
Stage.AllModelsStructDeleteCallback.DeleteORMFoo(foo)
}
} | [
1.000898838043213,
-0.28413859009742737,
0.43552252650260925,
0.48767033219337463,
-0.23869603872299194,
-0.0021086998749524355,
0.9208919405937195,
0.6987200379371643,
0.13227441906929016,
-0.7811527848243713,
-0.9548783302307129,
-0.043452080339193344,
0.42979884147644043,
1.641370654106... |
func resourceVolterraModifySite() *schema.Resource {
return &schema.Resource{
Create: resourceVolterraModifySiteCreate,
Read: resourceVolterraModifySiteRead,
Update: resourceVolterraModifySiteUpdate,
Delete: resourceVolterraModifySiteDelete,
Schema: map[string]*schema.Schema{
"annotations": {
Type... | [
-0.2873856723308563,
-0.4244453012943268,
0.510521650314331,
-0.7460798621177673,
-0.638809084892273,
-1.0334627628326416,
0.20249003171920776,
-0.039986733347177505,
0.6803091168403625,
0.8256379961967468,
-0.25260329246520996,
0.9142870903015137,
-0.7840033173561096,
0.06730403751134872,... |
func resourceVolterraModifySiteCreate(d *schema.ResourceData, meta interface{}) error {
return resourceVolterraModifySiteUpdate(d, meta)
} | [
-0.26603639125823975,
-0.06765973567962646,
0.016904622316360474,
0.02292807772755623,
0.0011318313190713525,
-0.29108619689941406,
-0.14919354021549225,
-0.2490348070859909,
0.20952831208705902,
0.5353704690933228,
0.15461578965187073,
0.4040507972240448,
0.1797432005405426,
0.41220450401... |
func resourceVolterraModifySiteUpdate(d *schema.ResourceData, meta interface{}) error {
client := meta.(*APIClient)
name := d.Get("name").(string)
namespace := d.Get("namespace").(string)
var retry, waitTime int32
if v, ok := d.GetOk("retry"); ok {
retry = int32(v.(int))
}
if v, ok := d.GetOk("wait_time"); ok ... | [
-0.6831326484680176,
-0.5718104839324951,
0.6342206001281738,
-0.1843147575855255,
-0.5376638770103455,
-0.2807888984680176,
0.15193726122379303,
0.017977487295866013,
0.4605617821216583,
0.6898083090782166,
-0.002275333506986499,
0.4875975549221039,
-0.8182251453399658,
-0.444165349006652... |
func SaluteHandler(w http.ResponseWriter, r *http.Request) {
// only allow POST method
if r.Method != http.MethodPost {
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
return
}
// read the JSON request
jsonRequest := saluteRequest{}
if err := json.NewDecoder(r.Body).Decode(&jsonRequest); err... | [
-0.7369650602340698,
-0.2698734700679779,
0.9646249413490295,
0.22472690045833588,
-0.08192574232816696,
-0.2049071341753006,
-0.0047953492030501366,
-0.07421182841062546,
0.4480510950088501,
0.536141037940979,
-0.28726714849472046,
-0.21076780557632446,
-0.7015523910522461,
0.889926135540... |
func Package(pkgURL, dst, chksum string, proxyServer string) error {
httpClient := &http.Client{}
if proxyServer != "" {
proxyURL, err := url.Parse(proxyServer)
if err != nil {
logger.Fatal(err)
}
httpClient.Transport = &http.Transport{Proxy: http.ProxyURL(proxyURL)}
}
resp, err := httpClient.Get(pkgURL)... | [
-0.7674013376235962,
0.5371990203857422,
0.7569530606269836,
0.32746174931526184,
-0.5220908522605896,
-0.3430151045322418,
0.30905264616012573,
0.9143026471138,
0.21253153681755066,
0.24308232963085175,
-0.3151056468486786,
-0.07185244560241699,
0.7701579928398132,
0.5362438559532166,
0... |
func FromRepo(rs goolib.RepoSpec, repo, dir string, proxyServer string) (string, error) {
pkgURL := strings.TrimSuffix(repo, filepath.Base(repo)) + rs.Source
pn := goolib.PackageInfo{Name: rs.PackageSpec.Name, Arch: rs.PackageSpec.Arch, Ver: rs.PackageSpec.Version}.PkgName()
dst := filepath.Join(dir, filepath.Base(p... | [
0.29089656472206116,
0.04643862694501877,
0.3517797887325287,
-0.690711498260498,
-0.4345337152481079,
-0.4191858470439911,
-0.19863367080688477,
0.5506023168563843,
-0.019143903627991676,
0.22416365146636963,
-0.6401465535163879,
0.2903063893318176,
0.9508629441261292,
-0.2551691234111786... |
func Latest(name, dir string, rm client.RepoMap, archs []string, proxyServer string) (string, error) {
ver, repo, arch, err := client.FindRepoLatest(goolib.PackageInfo{Name: name, Arch: "", Ver: ""}, rm, archs)
if err != nil {
return "", err
}
rs, err := client.FindRepoSpec(goolib.PackageInfo{Name: name, Arch: ar... | [
-0.5259963870048523,
0.1747550368309021,
0.5511441230773926,
-1.0134340524673462,
-0.1573968082666397,
-0.2865697145462036,
-0.6359614133834839,
0.07311797142028809,
-0.20217624306678772,
0.47522997856140137,
-0.04509415850043297,
0.3890644311904907,
0.4005836546421051,
-0.6347076296806335... |
func ExtractPkg(src string) (dst string, err error) {
dst = strings.TrimSuffix(src, filepath.Ext(src))
if err := oswrap.Mkdir(dst, 0755); err != nil && !os.IsExist(err) {
return "", err
}
logger.Infof("Extracting %q to %q", src, dst)
f, err := oswrap.Open(src)
if err != nil {
return "", fmt.Errorf("error rea... | [
-0.2886413633823395,
0.6598910689353943,
1.023865818977356,
-0.1743556410074234,
-1.1521049737930298,
-0.060317929834127426,
0.9800953269004822,
-0.230627179145813,
0.8194250464439392,
0.5045112371444702,
0.09436909109354019,
-0.8464325070381165,
0.7588359117507935,
0.5154639482498169,
0... |
func NewReleaseAccessBearersResponse(teid, seq uint32, ies ...*ie.IE) *ReleaseAccessBearersResponse {
r := &ReleaseAccessBearersResponse{
Header: NewHeader(
NewHeaderFlags(2, 0, 1),
MsgTypeReleaseAccessBearersResponse, teid, seq, nil,
),
}
for _, i := range ies {
if i == nil {
continue
}
switch i... | [
-0.46407800912857056,
-1.3999309539794922,
0.23767048120498657,
-0.8794621825218201,
-0.7135407328605652,
-0.957167387008667,
0.5822960138320923,
-0.6930122375488281,
0.9920592904090881,
1.1205183267593384,
-0.003354067914187908,
0.036226846277713776,
-0.8373417258262634,
0.268036842346191... |
func (r *ReleaseAccessBearersResponse) Marshal() ([]byte, error) {
b := make([]byte, r.MarshalLen())
if err := r.MarshalTo(b); err != nil {
return nil, err
}
return b, nil
} | [
0.8455685377120972,
-0.1486818790435791,
0.3494926989078522,
-0.2967820167541504,
-0.2582341134548187,
-0.18694354593753815,
-0.4844927191734314,
-0.42838460206985474,
0.534324586391449,
-0.06264844536781311,
0.09646794945001602,
1.1213173866271973,
-0.7351312637329102,
0.29702165722846985... |
func (r *ReleaseAccessBearersResponse) MarshalTo(b []byte) error {
if r.Header.Payload != nil {
r.Header.Payload = nil
}
r.Header.Payload = make([]byte, r.MarshalLen()-r.Header.MarshalLen())
offset := 0
if ie := r.Cause; ie != nil {
if err := ie.MarshalTo(r.Payload[offset:]); err != nil {
return err
}
... | [
0.2713675796985626,
-0.6771494746208191,
0.790434718132019,
-1.409636378288269,
-0.4534362554550171,
-0.2973953187465668,
-0.11979463696479797,
-0.3701668083667755,
0.3957546055316925,
0.10957944393157959,
-0.23197835683822632,
0.3960358798503876,
-0.15473394095897675,
-0.0393851138651371,... |
func ParseReleaseAccessBearersResponse(b []byte) (*ReleaseAccessBearersResponse, error) {
r := &ReleaseAccessBearersResponse{}
if err := r.UnmarshalBinary(b); err != nil {
return nil, err
}
return r, nil
} | [
0.09291490167379379,
-1.1675270795822144,
0.08058405667543411,
-0.4973672330379486,
-0.7460268139839172,
-1.005811095237732,
0.5792686939239502,
-0.9203587770462036,
0.6987766027450562,
0.6527242660522461,
-0.18879206478595734,
-0.12518525123596191,
-0.9899595379829407,
0.2036132961511612,... |
func (r *ReleaseAccessBearersResponse) UnmarshalBinary(b []byte) error {
var err error
r.Header, err = ParseHeader(b)
if err != nil {
return err
}
if len(r.Header.Payload) < 2 {
return nil
}
decodedIEs, err := ie.ParseMultiIEs(r.Header.Payload)
if err != nil {
return err
}
for _, i := range decodedIEs ... | [
0.07921005040407181,
-1.0013387203216553,
0.801591157913208,
-1.4328815937042236,
-0.2500459551811218,
-1.283347487449646,
-0.18666556477546692,
-0.44224604964256287,
0.4685787558555603,
0.6017194986343384,
-0.08511313050985336,
0.23411156237125397,
-0.468289315700531,
0.003939269576221704... |
func (r *ReleaseAccessBearersResponse) MarshalLen() int {
l := r.Header.MarshalLen() - len(r.Header.Payload)
if ie := r.Cause; ie != nil {
l += ie.MarshalLen()
}
if ie := r.Recovery; ie != nil {
l += ie.MarshalLen()
}
if ie := r.IndicationFlags; ie != nil {
l += ie.MarshalLen()
}
if ie := r.SGWNodeLoadCo... | [
0.16898313164710999,
-0.744470477104187,
0.4837314784526825,
-0.7863919138908386,
-0.3754734694957733,
-0.45166611671447754,
-0.2540605664253235,
0.4573327600955963,
0.770808756351471,
-0.2610306441783905,
-0.25201836228370667,
0.6248396039009094,
-0.022164301946759224,
0.45339369773864746... |
func (r *ReleaseAccessBearersResponse) SetLength() {
r.Header.Length = uint16(r.MarshalLen() - 4)
} | [
1.0138726234436035,
-0.4154035449028015,
0.10965494811534882,
-0.4190318286418915,
0.7394225001335144,
0.5539559721946716,
0.3452904224395752,
0.07042452692985535,
0.8509151935577393,
-0.417232483625412,
-0.4616917669773102,
0.28267285227775574,
-0.3404058814048767,
0.09758185595273972,
... |
func (r *ReleaseAccessBearersResponse) MessageTypeName() string {
return "Release Access Bearers Response"
} | [
0.18058034777641296,
-0.8461635708808899,
0.5566886067390442,
-0.2900063693523407,
-0.3002278506755829,
-0.17249414324760437,
0.42609328031539917,
-0.9790908694267273,
0.7775430679321289,
0.2510785758495331,
0.11807958036661148,
-0.49393126368522644,
-0.6289811730384827,
0.0636869892477989... |
func (r *ReleaseAccessBearersResponse) TEID() uint32 {
return r.Header.teid()
} | [
0.15013174712657928,
-1.2252594232559204,
0.33669137954711914,
-0.6895403265953064,
-0.18283569812774658,
0.14395689964294434,
0.20817436277866364,
-0.21576997637748718,
1.238404631614685,
0.5265241861343384,
0.4692850708961487,
-0.23166973888874054,
-0.538124680519104,
0.4443626403808594,... |
func NewProductDlv() *ProductDlv {
return &ProductDlv{}
} | [
-0.6116170883178711,
-0.6830446720123291,
0.300059974193573,
0.4659108817577362,
-0.5614946484565735,
0.061262182891368866,
0.27532076835632324,
-0.5131717324256897,
0.2681116759777069,
-1.0032901763916016,
-0.4865497052669525,
1.7898941040039062,
1.1371551752090454,
0.026213517412543297,
... |
func (p *ProductDlv) GetProducts(c context.Context) ([]entity.Product, error) {
var res []entity.Product
qs := map[string]string{}
active := qs["active"]
fmt.Println(active)
createdAt := qs["created_at"]
fmt.Println(createdAt)
discount := qs["discount"]
fmt.Println(discount)
id := qs["id"]
fmt.Println(id)... | [
-0.9039856791496277,
0.009548703208565712,
0.6658768057823181,
-0.6829540729522705,
0.9167057275772095,
0.40412792563438416,
-0.8787809610366821,
-0.724915623664856,
0.17787165939807892,
-0.23156949877738953,
-0.3190169036388397,
0.6530442237854004,
0.24234050512313843,
0.4424690306186676,... |
func (p *ProductDlv) GetProduct(c context.Context) (entity.Product, error) {
res := entity.Product{}
return res, nil
} | [
-0.26081642508506775,
0.8965697288513184,
0.4372624456882477,
0.5938938856124878,
1.0021657943725586,
0.38288459181785583,
0.30100664496421814,
-0.9446915984153748,
1.0781253576278687,
-1.3038545846939087,
0.6734434962272644,
0.7159277200698853,
0.1174439787864685,
-0.16376893222332,
-0.... |
func (p *ProductDlv) AddProduct(c context.Context, req entity.Product) error {
return nil
} | [
-1.0244948863983154,
0.7510875463485718,
0.5726480484008789,
0.5677258968353271,
1.1798782348632812,
1.276383399963379,
0.039867229759693146,
-0.2145547717809677,
1.1833325624465942,
-1.78963041305542,
1.0589607954025269,
-0.03553161025047302,
-0.2210463434457779,
0.6564162373542786,
-0.... |
func (p *ProductDlv) UpdateProduct(c context.Context, req entity.Product) error {
return nil
} | [
-1.569751501083374,
-0.14915406703948975,
0.48654603958129883,
0.38803935050964355,
0.8108245134353638,
1.1762616634368896,
0.14990577101707458,
-0.07319501042366028,
0.9177773594856262,
-0.8440850377082825,
0.6284451484680176,
0.45486345887184143,
0.0347989983856678,
0.22328825294971466,
... |
func (p *ProductDlv) DeleteProduct(c context.Context, req entity.Product) error {
return nil
} | [
-0.41401129961013794,
0.5580306053161621,
0.4636382460594177,
0.2482244223356247,
1.3079644441604614,
1.1618289947509766,
0.24332216382026672,
-0.12886527180671692,
1.4199039936065674,
-1.8193981647491455,
1.0302505493164062,
0.32578444480895996,
0.0758049488067627,
0.6846790909767151,
-... |
func (userFile *UserFile) Save(txn *sql.Tx) bool {
return conn.Exec(txn, "insert ignore into `"+userFileTable+"` (`user_name`,`file_sha1`,`file_name`,`file_size`,`upload_at`) values (?,?,?,?,?)", userFile.UserName, userFile.FileSha1, userFile.FileName, userFile.FileSize, userFile.UploadAt)
} | [
-0.09036155045032501,
0.4825294017791748,
0.884824812412262,
0.36384716629981995,
0.20750224590301514,
0.6492188572883606,
0.14893977344036102,
-0.14204654097557068,
-1.7143206596374512,
0.2454959750175476,
-1.9171298742294312,
-2.073031425476074,
-1.0442839860916138,
-0.6127726435661316,
... |
func NewStorage(cfg *configuration.Storage, timeout time.Duration) (*Storage, error) {
ctx, cancel := context.WithTimeout(context.Background(), timeout)
defer cancel()
client, err := mongo.Connect(ctx, options.Client().ApplyURI(cfg.URI))
if err != nil {
return nil, fmt.Errorf("connect to mongo %s: %s", cfg.URI, ... | [
0.08473769575357437,
0.4413178265094757,
0.3620537221431732,
0.6792626976966858,
-0.4090898334980011,
0.07512416690587997,
-0.23231662809848785,
-0.8069306015968323,
-0.34009650349617004,
0.9685102701187134,
0.4071159064769745,
-0.37495434284210205,
-1.048188328742981,
0.6420299410820007,
... |
func (s *Storage) GetBooks(ctx context.Context) ([]*models.Book, error) {
cur, err := s.collection.Find(ctx, bson.M{})
if err != nil {
return nil, fmt.Errorf("get books: %s", err)
}
defer func() {
err = cur.Close(ctx)
if err != nil {
fmt.Fprintln(os.Stderr, err)
}
}()
result := []*models.Book{}
for ... | [
-0.5158582329750061,
0.20829078555107117,
0.3215482234954834,
0.9236258864402771,
0.6109490394592285,
0.8921198844909668,
-0.4977570176124573,
-0.36914122104644775,
-0.3902045786380768,
0.10159504413604736,
0.20593594014644623,
0.08073705434799194,
-0.7261848449707031,
0.7611413598060608,
... |
func (s *Storage) SaveBook(ctx context.Context, book *models.Book) error {
filter := bson.D{primitive.E{Key: "_id", Value: book.ID}}
update := bson.D{primitive.E{Key: "$set", Value: book}}
opt := &options.UpdateOptions{}
opt.SetUpsert(true)
_, err := s.collection.UpdateOne(ctx, filter, update, opt)
if err != nil... | [
-1.5480118989944458,
0.06231933832168579,
0.519189715385437,
0.6483812928199768,
0.6677854061126709,
1.2994377613067627,
-0.4753265380859375,
-0.05823805555701256,
-0.8438185453414917,
0.9185316562652588,
-0.5914239883422852,
-0.7155711650848389,
-1.0195972919464111,
0.7580309510231018,
... |
func (s *Storage) RemoveBook(ctx context.Context, bookID string) error {
filter := bson.D{primitive.E{Key: "_id", Value: bookID}}
_, err := s.collection.DeleteOne(ctx, filter)
if err != nil {
return fmt.Errorf("remove book: %s", err)
}
return nil
} | [
-1.0955532789230347,
0.6725771427154541,
0.236532524228096,
0.45959579944610596,
0.2918371260166168,
0.5699576735496521,
-0.46114683151245117,
-0.00872933678328991,
-0.24707219004631042,
0.44591230154037476,
-0.35306909680366516,
-0.4565386176109314,
-0.7668020129203796,
0.8282971382141113... |
func (s *Storage) RemoveBooks(ctx context.Context, bookIDs []string) error {
filter := bson.M{"_id": bson.M{"$in": bookIDs}}
_, err := s.collection.DeleteMany(ctx, filter)
if err != nil {
return fmt.Errorf("remove books: %s", err)
}
return nil
} | [
-1.022265076637268,
0.32670459151268005,
0.23061582446098328,
0.7968038320541382,
0.33709612488746643,
0.34068790078163147,
-0.10058276355266571,
-0.03379498049616814,
-0.38273268938064575,
0.8709290623664856,
0.12725330889225006,
-0.9150699377059937,
-1.405512809753418,
0.7849664688110352... |
func NewUnixUptimeFn() tact.GetDataFn {
return func(session *tact.Session) <-chan []byte {
return collector.SSHRex(session, upTimeCmd, upTimeParser)
}
} | [
0.21006932854652405,
-0.8001968264579773,
0.4265243709087372,
-0.2478397786617279,
0.04876545071601868,
-0.9260838031768799,
-0.36639490723609924,
0.8221174478530884,
0.37039849162101746,
-0.723577082157135,
-0.8028274774551392,
0.4696442484855652,
0.819216251373291,
-0.8764081001281738,
... |
func (c EncodingsClient) JobsListComplete(ctx context.Context, id TransformId, options JobsListOperationOptions) (JobsListCompleteResult, error) {
return c.JobsListCompleteMatchingPredicate(ctx, id, options, JobOperationPredicate{})
} | [
-0.7539531588554382,
0.1702413558959961,
0.36663222312927246,
-0.04232665151357651,
-0.3437166213989258,
-0.7915465235710144,
-0.047225579619407654,
-0.22118672728538513,
0.16976545751094818,
0.5798449516296387,
-1.2414053678512573,
-0.333867609500885,
0.35642048716545105,
-0.0693133547902... |
func (c EncodingsClient) JobsListCompleteMatchingPredicate(ctx context.Context, id TransformId, options JobsListOperationOptions, predicate JobOperationPredicate) (result JobsListCompleteResult, err error) {
items := make([]Job, 0)
resp, err := c.JobsList(ctx, id, options)
if err != nil {
err = fmt.Errorf("loadin... | [
-0.4520407021045685,
0.28017115592956543,
0.5026269555091858,
-0.3818008601665497,
-1.0319324731826782,
-0.14487136900424957,
0.10440589487552643,
0.8012366890907288,
-0.3216986656188965,
0.9915888905525208,
-0.9445898532867432,
-1.0791358947753906,
0.390499472618103,
0.11273868381977081,
... |
func (*CharacterRace) Descriptor() ([]byte, []int) {
return file_cauldron_v1alpha_character_race_proto_rawDescGZIP(), []int{0}
} | [
-0.39270007610321045,
0.3301636874675751,
0.21765422821044922,
-0.5969337821006775,
-0.039836764335632324,
-0.33403250575065613,
0.024395683780312538,
0.6321053504943848,
-0.3375973105430603,
-0.46902433037757874,
-0.38104990124702454,
0.42592760920524597,
-0.18861085176467896,
0.892871975... |
func (*CreateCharacterRaceRequest) Descriptor() ([]byte, []int) {
return file_cauldron_v1alpha_character_race_proto_rawDescGZIP(), []int{1}
} | [
-0.5609848499298096,
0.18680356442928314,
0.14033722877502441,
-0.13074292242527008,
0.37441253662109375,
0.18809185922145844,
0.35246315598487854,
0.13874481618404388,
-0.805194616317749,
-0.18570315837860107,
-0.16931843757629395,
0.5123145580291748,
-0.5998277068138123,
1.26598131656646... |
func (*CreateCharacterRaceResponse) Descriptor() ([]byte, []int) {
return file_cauldron_v1alpha_character_race_proto_rawDescGZIP(), []int{2}
} | [
-0.08512569963932037,
0.046634040772914886,
-0.401201456785202,
-0.49588775634765625,
0.453976035118103,
-0.2671014666557312,
0.596490740776062,
-0.22739970684051514,
-0.6350324749946594,
0.08481577038764954,
-0.7265581488609314,
-0.02705199457705021,
-1.2194255590438843,
0.490670233964920... |
func (*GetCharacterRaceByIDRequest) Descriptor() ([]byte, []int) {
return file_cauldron_v1alpha_character_race_proto_rawDescGZIP(), []int{3}
} | [
-0.37526705861091614,
0.5567817687988281,
0.153268501162529,
-0.329988032579422,
0.20841142535209656,
-0.011210552416741848,
0.11301437765359879,
-0.33752721548080444,
-0.15649902820587158,
-0.42930516600608826,
-0.37586885690689087,
0.4147706925868988,
-0.551071286201477,
0.56684756278991... |
func (*GetCharacterRaceByIDResponse) Descriptor() ([]byte, []int) {
return file_cauldron_v1alpha_character_race_proto_rawDescGZIP(), []int{4}
} | [
0.5151233673095703,
-0.16790518164634705,
0.04217973351478577,
-0.3808731436729431,
0.39003539085388184,
-0.6608957052230835,
0.18182434141635895,
-0.28847527503967285,
0.22595784068107605,
-0.41957470774650574,
-1.1946642398834229,
-0.23817875981330872,
-1.0228362083435059,
-0.01195597276... |
func OpenTopic(client mqtt.Client, topicName string, qos byte) (*pubsub.Topic, error) {
dt, err := openDriverTopic(client, topicName, qos)
if err != nil {
return nil, err
}
return pubsub.NewTopic(dt, nil), nil
} | [
0.2850745618343353,
0.08499908447265625,
0.3924468457698822,
-0.3781971335411072,
-0.3372736871242523,
0.3734615445137024,
-0.7517575025558472,
0.11871421337127686,
0.04561694711446762,
-0.3514373004436493,
0.6101535558700562,
0.08398114889860153,
-0.08637735992670059,
-0.9767501354217529,... |
func OpenSubscription(ctx context.Context, client mqtt.Client, topicName string, qos byte) (*pubsub.Subscription, error) {
ds, err := openDriverSubscription(ctx, client, topicName, qos)
if err != nil {
return nil, err
}
return pubsub.NewSubscription(ds, nil, nil), nil
} | [
0.06085797771811485,
-0.43565472960472107,
0.36432307958602905,
-0.35048940777778625,
-0.8054965138435364,
-0.25095701217651367,
-0.1812916100025177,
0.12998099625110626,
0.5693734884262085,
-0.06061779707670212,
0.03837626054883003,
-0.16714976727962494,
-0.4401076138019562,
-0.4626338481... |
func (s *subscription) ReceiveBatch(ctx context.Context, maxMessages int) ([]*driver.Message, error) {
if s == nil || s.client == nil {
return nil, errNilClient.New()
}
if maxMessages <= 0 {
return nil, nil
}
select {
case <-ctx.Done():
return nil, ctx.Err()
case msg, ok := <-s.subCh:
if !ok {
return ... | [
0.23650917410850525,
0.30852779746055603,
0.6886442303657532,
-0.14473910629749298,
0.2533106803894043,
-0.3333601951599121,
-0.6100903153419495,
-0.051598574966192245,
0.6050688624382019,
-0.4409548342227936,
-0.05750632658600807,
0.2532506585121155,
-0.6324937343597412,
0.332969039678573... |
func (h *AnalyzeTableID) GetStatisticsID() int64 {
statisticsID := h.TableID
if h.PartitionID != NonPartitionTableID {
statisticsID = h.PartitionID
}
return statisticsID
} | [
0.8646312355995178,
0.4489968419075012,
0.39606165885925293,
0.9902055859565735,
-0.15591739118099213,
0.13942480087280273,
0.41806960105895996,
-0.9374656677246094,
0.8344035744667053,
-0.3725079298019409,
0.707821249961853,
0.4327697157859802,
0.1193561777472496,
0.3529196083545685,
-0... |
func (h *AnalyzeTableID) IsPartitionTable() bool {
return h.PartitionID != NonPartitionTableID
} | [
1.0255340337753296,
0.07808370888233185,
0.31086626648902893,
0.9592128992080688,
-0.3902146816253662,
-0.19458875060081482,
0.24124789237976074,
-0.48200249671936035,
-0.05517704784870148,
0.7172117829322815,
0.3584860563278198,
0.0013952545123174787,
-0.5899548530578613,
0.81083267927169... |
func (h *AnalyzeTableID) Equals(t *AnalyzeTableID) bool {
if h == t {
return true
}
if h == nil || t == nil {
return false
}
return h.TableID == t.TableID && h.PartitionID == t.PartitionID
} | [
-0.1019492819905281,
-0.7306628227233887,
0.37771567702293396,
0.15226003527641296,
0.007210357114672661,
0.06072157621383667,
-0.9694176912307739,
-0.5031791925430298,
-0.2664850652217865,
0.18793894350528717,
-0.5011399984359741,
0.49746420979499817,
0.45851635932922363,
0.36411970853805... |
func (*IpamItem) Descriptor() ([]byte, []int) {
return file_src_ipam_ipam_proto_rawDescGZIP(), []int{0}
} | [
-1.2281653881072998,
-0.015650281682610512,
0.14634545147418976,
-0.048823218792676926,
-0.20749039947986603,
-0.21015772223472595,
0.34065037965774536,
0.9044414162635803,
-0.7613673806190491,
0.02972547337412834,
-0.4379994571208954,
-0.4866471588611603,
0.12111489474773407,
-0.539456844... |
func ColorPrint(s string, i int) {
kernel32 := syscall.NewLazyDLL("kernel32.dll")
proc := kernel32.NewProc("SetConsoleTextAttribute")
handle, _, _ := proc.Call(uintptr(syscall.Stdout), uintptr(i))
fmt.Print(s)
handle, _, _ = proc.Call(uintptr(syscall.Stdout), uintptr(7))
CloseHandle := kernel32.NewProc("CloseHand... | [
1.0980250835418701,
-1.2170580625534058,
0.9646494388580322,
-0.4887990951538086,
-0.2615465819835663,
-0.18402792513370514,
0.3322206437587738,
-0.5382971167564392,
-0.08677522093057632,
-0.19604666531085968,
0.6123730540275574,
0.9411945939064026,
-0.7743288278579712,
-0.0175714027136564... |
func New(links links.LinkMap) horst.ProcessorManager {
return &manager{
processors: make(map[string]horst.Processor),
links: links,
}
} | [
-0.36779287457466125,
-0.5609810948371887,
0.1264117956161499,
-0.68958580493927,
-0.3331204354763031,
-0.32984134554862976,
-0.2990574538707733,
0.7005831003189087,
-0.3029175400733948,
-1.1095792055130005,
0.2617311477661133,
1.219035029411316,
-0.47086435556411743,
1.3946369886398315,
... |
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
} | [
0.8741573691368103,
-0.631639301776886,
0.8534529209136963,
1.2026909589767456,
0.42606645822525024,
0.8930866122245789,
-0.11484132707118988,
0.11600703001022339,
-0.7203781008720398,
-0.364662230014801,
0.655228316783905,
0.16867820918560028,
-0.3834823668003082,
0.8589842915534973,
0.... |
func NewTag(name string, color string) *Tag {
return &Tag{
Color: color,
Name: name,
}
} | [
0.8767249584197998,
-0.3254052996635437,
0.42904308438301086,
-0.7500678896903992,
-0.11543003469705582,
0.4207170605659485,
-1.2239878177642822,
-0.2586965560913086,
-1.113074779510498,
-0.2453441023826599,
-0.5841608047485352,
1.0723563432693481,
0.19779126346111298,
0.08714321255683899,... |
func NewGetBackendsBackendIDTestOK() *GetBackendsBackendIDTestOK {
return &GetBackendsBackendIDTestOK{}
} | [
0.7662762403488159,
-0.08059888333082199,
0.23920752108097076,
0.2925666570663452,
0.8327604532241821,
-0.09558799117803574,
-0.3425731062889099,
-0.08758211135864258,
-0.2530297636985779,
0.7579571604728699,
-1.059647560119629,
-0.054678283631801605,
-0.8304693698883057,
-0.82094895839691... |
func (o *GetBackendsBackendIDTestOK) WithPayload(payload *GetBackendsBackendIDTestOKBody) *GetBackendsBackendIDTestOK {
o.Payload = payload
return o
} | [
1.0899813175201416,
0.34070995450019836,
0.09239009767770767,
0.22584649920463562,
0.6132500767707825,
-0.598841667175293,
-0.36615607142448425,
-0.5987172722816467,
0.28618574142456055,
0.35712483525276184,
-0.6407217383384705,
-0.22712373733520508,
-0.6385691165924072,
-0.821698963642120... |
func (o *GetBackendsBackendIDTestOK) SetPayload(payload *GetBackendsBackendIDTestOKBody) {
o.Payload = payload
} | [
1.07586669921875,
0.6233577132225037,
-0.014886758290231228,
0.2916789650917053,
0.9991130232810974,
-0.2067839801311493,
-0.3169397711753845,
-0.5840462446212769,
-0.06469640880823135,
0.5755706429481506,
-0.5254718065261841,
-0.02059272490441799,
-0.9024791717529297,
-0.4152206778526306,... |
func (o *GetBackendsBackendIDTestOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(200)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
} | [
0.39417487382888794,
-0.10685756057500839,
0.2862670123577118,
0.3626502752304077,
1.3441767692565918,
-0.8891782164573669,
0.05559248849749565,
-0.47076886892318726,
0.07631948590278625,
0.8768410086631775,
-0.22095166146755219,
-0.3950747847557068,
-1.13283109664917,
-0.541817307472229,
... |
func NewGetBackendsBackendIDTestBadRequest() *GetBackendsBackendIDTestBadRequest {
return &GetBackendsBackendIDTestBadRequest{}
} | [
0.3303210139274597,
-0.24117065966129303,
0.26499292254447937,
0.7396762371063232,
0.6975365281105042,
-1.1832797527313232,
-0.9361814856529236,
-0.05428449809551239,
-0.25210216641426086,
-0.39829882979393005,
-0.2913943827152252,
0.5234606266021729,
-1.2557834386825562,
-0.15691539645195... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.