text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (o *RuleMatch) GetUrl() string {
if o == nil || o.Url == nil {
var ret string
return ret
}
return *o.Url
} | [
0.628460705280304,
0.39806801080703735,
0.11265110224485397,
1.071007251739502,
0.20635466277599335,
0.1966789960861206,
1.0961283445358276,
0.4854826331138611,
1.0757737159729004,
-0.07587550580501556,
0.029976725578308105,
-1.3178777694702148,
-0.5901907682418823,
0.13070255517959595,
... |
func (o *RuleMatch) GetUrlOk() (*string, bool) {
if o == nil || o.Url == nil {
return nil, false
}
return o.Url, true
} | [
-0.3030003607273102,
0.7755969166755676,
0.6026359796524048,
0.9572754502296448,
-0.20499427616596222,
0.044725675135850906,
0.7320069670677185,
1.057741403579712,
-0.3144141137599945,
-0.20616880059242249,
-0.9353889226913452,
-0.125954732298851,
-0.056601785123348236,
-0.1199406534433364... |
func (o *RuleMatch) HasUrl() bool {
if o != nil && o.Url != nil {
return true
}
return false
} | [
0.9501539468765259,
0.3490227162837982,
0.28500810265541077,
1.1349228620529175,
0.706379771232605,
0.5417669415473938,
0.3677440285682678,
1.4055637121200562,
0.2993552088737488,
-0.042511459439992905,
-0.39077773690223694,
-0.9237188696861267,
-0.17713522911071777,
-0.3307803273200989,
... |
func (o *RuleMatch) SetUrl(v string) {
o.Url = &v
} | [
0.7269003391265869,
-0.027487320825457573,
-0.19243484735488892,
0.7068747282028198,
-0.6150556206703186,
0.4608248174190521,
0.19891570508480072,
0.045859239995479584,
0.17569033801555634,
0.6741867065429688,
-0.04763498529791832,
1.0829294919967651,
-0.5183727145195007,
-0.64787733554840... |
func NewFooServiceClient(cc grpc.ClientConnInterface) FooServiceClient {
return src.NewFooServiceClient(cc)
} | [
-0.16995219886302948,
-0.06613429635763168,
0.19236516952514648,
0.2514801323413849,
-0.8018745183944702,
-0.9366483092308044,
0.3195318281650543,
-0.7024461627006531,
-0.9158056974411011,
-1.0183937549591064,
-0.5356072783470154,
0.2960854172706604,
0.3061968684196472,
0.8098698854446411,... |
func RegisterFooServiceServer(s *grpc.Server, srv FooServiceServer) {
src.RegisterFooServiceServer(s, srv)
} | [
-1.7266716957092285,
0.262788325548172,
0.4312624931335449,
-0.12563510239124298,
0.5968285799026489,
-0.7539348602294922,
-0.37562432885169983,
-0.16328780353069305,
-0.31041035056114197,
-0.8790284991264343,
-1.2782939672470093,
0.5622044801712036,
-0.1232871413230896,
1.188887357711792,... |
func New(p client.ConfigProvider, cfgs ...*aws.Config) *DB {
return &DB{dynamodb.New(p, cfgs...)}
} | [
-0.3706848621368408,
0.5916830897331238,
0.0310039222240448,
0.9622125029563904,
-0.71177738904953,
0.5992798805236816,
-0.3385290503501892,
0.913460373878479,
-0.03862052410840988,
-0.06588440388441086,
-0.567386269569397,
-0.07651259750127792,
0.5475400686264038,
0.07478072494268417,
0... |
func (db *DB) Tables(name string) Tables {
names := strings.Split(name, ",")
var tables Tables
for _, n := range names {
tables = append(tables, db.Table(strings.TrimSpace(n)))
}
return tables
} | [
-0.4051748216152191,
0.9163749814033508,
0.3799813985824585,
-0.15003632009029388,
-0.5290550589561462,
0.037024497985839844,
-0.6723203659057617,
-0.40985357761383057,
0.10142984241247177,
-0.04198557138442993,
-0.6824581027030945,
-0.7092135548591614,
-0.1356407105922699,
0.2880656123161... |
func (db *DB) Table(name string) Table {
return Table{
name: name,
db: db,
}
} | [
0.8817408680915833,
-0.04620049521327019,
0.21643592417240143,
0.07279859483242035,
-0.5145139098167419,
0.1635633111000061,
-0.633783221244812,
-0.4512932300567627,
-0.06054587662220001,
-0.6229510307312012,
-0.9727988839149475,
-0.2944576144218445,
0.08427699655294418,
-0.108249068260192... |
func (ts Tables) TruncateAll(ctx context.Context) error {
var eg errgroup.Group
for _, t := range ts {
// capture loop variable
table := t
eg.Go(func() error {
if err := table.Truncate(ctx); err != nil {
return fmt.Errorf("[%s] truncate: %w", table.name, err)
}
return nil
})
}
if err := eg.Wai... | [
0.5425658226013184,
0.6612817049026489,
0.651756763458252,
0.5774070620536804,
-0.0004585798014886677,
0.5229485630989075,
-0.22785396873950958,
-0.57169508934021,
-0.25269633531570435,
0.6449862718582153,
-0.10134781897068024,
0.3901711106300354,
0.20879408717155457,
1.694976806640625,
... |
func (t Table) Truncate(ctx context.Context) error {
keys, err := t.getKeys(ctx)
if err != nil {
return fmt.Errorf("get table keys: %w", err)
}
items, err := t.scan(ctx, keys)
if err != nil {
return fmt.Errorf("scan: %w", err)
}
log.Printf("[%s] contains %d items\n", t.name, len(items))
if err := t.batch... | [
-0.2754010260105133,
0.8275706768035889,
0.6838620901107788,
0.5639832615852356,
0.5942793488502502,
-0.7119241952896118,
0.09369059652090073,
-0.4457741975784302,
-0.26714906096458435,
0.6178218126296997,
-0.39091747999191284,
0.23263785243034363,
-0.21206653118133545,
0.2712410092353821,... |
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService {
return &Client{transport: transport, formats: formats}
} | [
0.25708064436912537,
-1.2911276817321777,
-0.15975941717624664,
-1.1987494230270386,
-0.7055332064628601,
0.14473751187324524,
0.16492673754692078,
-0.7642391324043274,
-0.964878261089325,
-0.4666050374507904,
-0.13648737967014313,
0.7510700225830078,
0.052431024610996246,
0.66191029548645... |
func (a *Client) AggregatesDetectionsGlobalCounts(params *AggregatesDetectionsGlobalCountsParams, opts ...ClientOption) (*AggregatesDetectionsGlobalCountsOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAggregatesDetectionsGlobalCountsParams()
}
op := &runtime.ClientOperatio... | [
-0.5768430829048157,
1.164941668510437,
0.8579007983207703,
0.511934220790863,
0.5238275527954102,
0.32673537731170654,
1.0783566236495972,
-0.5314105153083801,
-0.2208619862794876,
0.29330459237098694,
-0.08125041425228119,
1.1128801107406616,
-0.8801663517951965,
0.53339684009552,
0.28... |
func (a *Client) AggregatesEvents(params *AggregatesEventsParams, opts ...ClientOption) (*AggregatesEventsOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAggregatesEventsParams()
}
op := &runtime.ClientOperation{
ID: "AggregatesEvents",
Method: ... | [
-1.3022832870483398,
1.119579553604126,
0.8659219741821289,
0.5060703158378601,
0.5454956889152527,
-0.5938488245010376,
0.5624250769615173,
-0.7561565041542053,
0.1757943481206894,
0.5330847501754761,
-0.47049862146377563,
0.6927492618560791,
-0.8862496614456177,
0.006239543668925762,
-... |
func (a *Client) AggregatesEventsCollections(params *AggregatesEventsCollectionsParams, opts ...ClientOption) (*AggregatesEventsCollectionsOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAggregatesEventsCollectionsParams()
}
op := &runtime.ClientOperation{
ID: ... | [
-1.2986706495285034,
0.6060125231742859,
0.8184147477149963,
0.3856947422027588,
0.13921262323856354,
-0.4710308015346527,
1.3303124904632568,
-0.9656828045845032,
0.16893471777439117,
0.24695393443107605,
-0.3603828251361847,
-0.037135038524866104,
-0.5750345587730408,
-0.0740149542689323... |
func (a *Client) AggregatesIncidentsGlobalCounts(params *AggregatesIncidentsGlobalCountsParams, opts ...ClientOption) (*AggregatesIncidentsGlobalCountsOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAggregatesIncidentsGlobalCountsParams()
}
op := &runtime.ClientOperation{
... | [
-0.3036438822746277,
1.0652649402618408,
0.8113846778869629,
0.20513808727264404,
0.3529578745365143,
0.16815626621246338,
0.8204626441001892,
-0.4558122456073761,
-0.6720781326293945,
0.5638977885246277,
-0.17902585864067078,
0.9958852529525757,
-1.8122385740280151,
-0.3060620129108429,
... |
func (a *Client) AggregatesOWEventsGlobalCounts(params *AggregatesOWEventsGlobalCountsParams, opts ...ClientOption) (*AggregatesOWEventsGlobalCountsOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAggregatesOWEventsGlobalCountsParams()
}
op := &runtime.ClientOperation{
ID:... | [
-0.5575704574584961,
1.1200909614562988,
0.7635366916656494,
0.1276296079158783,
-0.08634554594755173,
0.006427428685128689,
0.7619957327842712,
-0.3631417155265808,
-0.21697142720222473,
0.6130629777908325,
-0.3003498911857605,
1.3276041746139526,
-0.8764004111289978,
0.9947757124900818,
... |
func (a *Client) SetTransport(transport runtime.ClientTransport) {
a.transport = transport
} | [
0.43289124965667725,
-0.16396044194698334,
0.06502870470285416,
0.17467869818210602,
-0.022012455388903618,
0.3327627182006836,
1.1535402536392212,
-0.7375835180282593,
0.32833772897720337,
-1.0833802223205566,
-1.4707483053207397,
0.4919946491718292,
-0.44076064229011536,
0.62663459777832... |
func winingAlignement(board *Board, axe1, axe2, x, y, incx, incy, player int) (int, int){
// AlignementGagnant
if axe1 == 15 || axe2 == 15 || (axe1 >= 14 && axe2 >= 8) || (axe2 >= 14 && axe1 >= 8) || (axe1 >= 12 && axe2 >= 12) {
return math.MaxInt32, 0
}
var t1, t2 [5]int
spaceAndChaine := func (axe1, axe2, in... | [
-0.3732360005378723,
-0.27324047684669495,
1.0901989936828613,
-0.21310800313949585,
-0.8623050451278687,
-0.009815274737775326,
0.9394000768661499,
-0.0709957480430603,
-0.9761646389961243,
0.6493430137634277,
0.04155394807457924,
0.23023192584514618,
-0.7434387803077698,
-0.0823834910988... |
func NewClient() *Client {
baseURL, _ := url.Parse(defaultBaseURL)
c := &Client{client: http.DefaultClient, BaseURL: baseURL, UserAgent: userAgent}
c.Schedule = &ScheduleServiceOp{client: c}
c.Time = &TimeServiceOp{client: c}
return c
} | [
-0.0359865166246891,
-0.1576908528804779,
0.2145620584487915,
0.5621908903121948,
-0.3322274386882782,
0.0025243654381483793,
-0.0015993746928870678,
-0.7985312938690186,
0.20330391824245453,
-0.34090033173561096,
0.13577409088611603,
-0.12050294876098633,
-0.01039679255336523,
-0.39863869... |
func New(opts ...ClientOpt) (*Client, error) {
c := NewClient()
for _, opt := range opts {
if err := opt(c); err != nil {
return nil, err
}
}
return c, nil
} | [
-0.17166690528392792,
-0.38305729627609253,
0.1242704689502716,
0.08446848392486572,
0.056699566543102264,
0.1441149264574051,
-0.033429160714149475,
-0.942406952381134,
-0.69040447473526,
-0.001444125548005104,
0.21555016934871674,
0.3292270600795746,
-0.27993473410606384,
-0.410245925188... |
func SetBaseURL(bu string) ClientOpt {
return func(c *Client) error {
u, err := url.Parse(bu)
if err != nil {
return err
}
c.BaseURL = u
return nil
}
} | [
0.45809128880500793,
-0.31191059947013855,
0.6472992300987244,
0.389181911945343,
0.11623737215995789,
0.876030445098877,
0.5496455430984497,
-0.09291171282529831,
-0.14712747931480408,
0.29193395376205444,
-0.44691359996795654,
0.6825462579727173,
-0.9083081483840942,
0.14396072924137115,... |
func (c *Client) NewRequest(ctx context.Context, method, urlStr string, body interface{}) (*http.Request, error) {
rel, err := url.Parse(urlStr)
if err != nil {
return nil, err
}
u := c.BaseURL.ResolveReference(rel)
buf := new(bytes.Buffer)
if body != nil {
err = json.NewEncoder(buf).Encode(body)
if err !... | [
-0.30493706464767456,
-0.02945568412542343,
0.737312376499176,
-0.18050692975521088,
-0.18410243093967438,
-0.5362015962600708,
-0.7860087752342224,
-0.2607381343841553,
0.24448297917842865,
0.15646183490753174,
0.5546435713768005,
0.9930424094200134,
0.0437028631567955,
-0.057682871818542... |
func newResponse(r *http.Response) *Response {
return &Response{Response: r}
} | [
0.48590323328971863,
-0.933183491230011,
-0.2557136118412018,
0.7478182911872864,
-0.9261192083358765,
-0.44624000787734985,
-0.5079943537712097,
-1.2951362133026123,
1.5505434274673462,
-0.4576708972454071,
-0.5317767858505249,
-0.4913669526576996,
-0.5913336873054504,
-0.6262907981872559... |
func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*Response, error) {
resp, err := DoRequestWithClient(ctx, c.client, req)
if err != nil {
return nil, err
}
defer func() {
if rerr := resp.Body.Close(); err == nil {
err = rerr
}
}()
response := newResponse(resp)
err = CheckRe... | [
-0.35048121213912964,
-0.4758286476135254,
0.9526939392089844,
-0.2423514574766159,
0.1916627585887909,
-0.3981654942035675,
-0.013154570013284683,
-0.8408844470977783,
0.6238425374031067,
0.8355861306190491,
-0.1350884884595871,
0.48622751235961914,
-0.2758708596229553,
-0.440459758043289... |
func DoRequest(ctx context.Context, req *http.Request) (*http.Response, error) {
return DoRequestWithClient(ctx, http.DefaultClient, req)
} | [
-0.4692363142967224,
0.13666915893554688,
0.4771398603916168,
0.4748198688030243,
1.1134710311889648,
0.26788145303726196,
-0.70402991771698,
-0.566887378692627,
0.36383819580078125,
0.3252299726009369,
0.6055110692977905,
0.04579176753759384,
0.1640152633190155,
-0.23805488646030426,
-0... |
func DoRequestWithClient(
ctx context.Context,
client *http.Client,
req *http.Request) (*http.Response, error) {
req = req.WithContext(ctx)
return client.Do(req)
} | [
-0.3963363766670227,
-0.5811413526535034,
0.4849350154399872,
0.4032176434993744,
0.33136987686157227,
0.5237616300582886,
-1.0050225257873535,
-0.8573939204216003,
0.23709826171398163,
0.24811922013759613,
0.08899567276239395,
0.48942092061042786,
0.028769448399543762,
-0.4470091462135315... |
func NewObjectValidationRule(field, defaultErrorCode string) *ObjectValidationRule {
ov := new(ObjectValidationRule)
ov.defaultErrorCode = defaultErrorCode
ov.field = field
ov.codesInUse = types.NewOrderedStringSet([]string{})
ov.dependsFields = determinePathFields(field)
ov.operations = make([]*objectOperation, ... | [
-0.6805999279022217,
-0.06596318632364273,
0.36314743757247925,
0.3822803795337677,
0.14366930723190308,
0.7937934398651123,
0.14544352889060974,
0.6945749521255493,
-0.7681174278259277,
0.40925320982933044,
-1.0079973936080933,
-0.38963082432746887,
-0.18357576429843903,
0.105869896709918... |
func (ov *ObjectValidationRule) IsSet(field string, subject interface{}) (bool, error) {
fv, err := rt.FindNestedField(rt.ExtractDotPath(field), subject)
if err != nil {
return false, err
}
if rt.NilPointer(fv) || rt.NilMap(fv) {
return false, nil
}
k := fv.Kind()
if k == reflect.Invalid {
m := fmt.Spr... | [
-0.9224857687950134,
-0.30526235699653625,
0.7498425841331482,
-0.48322299122810364,
0.500232458114624,
0.7312671542167664,
0.40005093812942505,
-0.16766571998596191,
-0.6156702041625977,
0.3180505931377411,
0.6790390014648438,
0.5708621740341187,
-0.4306647479534149,
0.3126647174358368,
... |
func (ov *ObjectValidationRule) StopAll() *ObjectValidationRule {
ov.stopAll = true
return ov
} | [
-0.0957021713256836,
-0.9659904837608337,
0.47528403997421265,
0.3649119436740875,
0.4890432357788086,
1.9314011335372925,
0.4141891896724701,
0.9661552906036377,
-0.31977203488349915,
0.012784034013748169,
0.11114750802516937,
-0.19519220292568207,
0.0994807556271553,
0.2788911461830139,
... |
func (ov *ObjectValidationRule) Required(code ...string) *ObjectValidationRule {
ov.required = true
if code != nil {
ov.missingRequiredCode = code[0]
} else {
ov.missingRequiredCode = ov.defaultErrorCode
}
ov.codesInUse.Add(ov.missingRequiredCode)
return ov
} | [
-0.969545304775238,
0.31887683272361755,
0.540615439414978,
-0.22795426845550537,
1.1105501651763916,
1.3549656867980957,
0.04839911684393883,
1.098022222518921,
0.44436317682266235,
0.15412014722824097,
-0.7132107019424438,
0.3226521611213684,
0.009710033424198627,
0.5392526388168335,
0... |
func (ov *ObjectValidationRule) MEx(fields types.StringSet, code ...string) *ObjectValidationRule {
op := new(objectOperation)
op.ErrCode = ov.chooseErrorCode(code)
op.OpType = objOpMEx
op.MExFields = fields
ov.addOperation(op)
return ov
} | [
-0.7598850131034851,
0.3459146320819855,
0.6270694136619568,
-0.13745392858982086,
-0.1514361947774887,
0.8070276379585266,
-0.3402899205684662,
0.7990425229072571,
0.153849259018898,
0.07591231912374496,
-0.2828215956687927,
0.1634463518857956,
-0.25457262992858887,
-0.7127729654312134,
... |
func Routes(r *gin.RouterGroup, ctx *core.Context) {
s := &Service{
ctx: ctx,
}
//Setup routes with need for authentication
r.Use(core.AuthMiddleware(ctx))
{
r.GET("/", s.list)
}
} | [
-0.8994410037994385,
0.6509711146354675,
0.2758331298828125,
-0.2116323858499527,
0.1912045031785965,
-0.15393532812595367,
-0.31730037927627563,
-0.24068965017795563,
0.6546261310577393,
-0.2109089195728302,
0.12149030715227127,
0.7456870079040527,
-0.43566736578941345,
0.2878348529338836... |
func CreateUserPath(tenantID string) string {
return fmt.Sprintf("/api/tenants/%v/users", tenantID)
} | [
0.12039413303136826,
-0.6259117722511292,
0.07468264549970627,
0.366301953792572,
0.008686413057148457,
0.7761836647987366,
-0.30394500494003296,
-0.37363287806510925,
-0.048367440700531006,
0.4987279772758484,
0.1807418316602707,
-0.2011559158563614,
-0.3404206335544586,
0.174897089600563... |
func DeleteUserPath(tenantID string, userID int) string {
return fmt.Sprintf("/api/tenants/%v/users/%v", tenantID, userID)
} | [
0.2092708945274353,
-0.8513110876083374,
0.17945463955402374,
1.0736720561981201,
-0.8583627939224243,
0.6099485158920288,
0.3558201193809509,
0.12450242042541504,
0.41224613785743713,
0.2363748997449875,
0.3232322335243225,
0.5326834917068481,
-0.1745581179857254,
0.19179588556289673,
-... |
func (c *Client) DeleteUser(ctx context.Context, path string) (*http.Response, error) {
var body io.Reader
scheme := c.Scheme
if scheme == "" {
scheme = "https"
}
u := url.URL{Host: c.Host, Scheme: scheme, Path: path}
req, err := http.NewRequest("DELETE", u.String(), body)
if err != nil {
return nil, err
}
... | [
-0.8854068517684937,
-0.5860212445259094,
0.7835253477096558,
0.6417812705039978,
-0.5676836967468262,
-0.4307740330696106,
0.4895976781845093,
-0.6139051914215088,
0.15655164420604706,
-0.355496346950531,
-0.5951374173164368,
0.11703552305698395,
-0.7098835706710815,
0.1683908849954605,
... |
func ListUserPath(tenantID string) string {
return fmt.Sprintf("/api/tenants/%v/users", tenantID)
} | [
-0.06294401735067368,
-0.7642049789428711,
0.3494041860103607,
0.334457665681839,
-0.6440587639808655,
0.21307741105556488,
-0.3214615285396576,
-0.38473278284072876,
0.6485801935195923,
0.5372046232223511,
0.15900690853595734,
0.42113640904426575,
-0.09533736109733582,
0.20745255053043365... |
func (c *Client) ListUser(ctx context.Context, path string) (*http.Response, error) {
var body io.Reader
scheme := c.Scheme
if scheme == "" {
scheme = "https"
}
u := url.URL{Host: c.Host, Scheme: scheme, Path: path}
req, err := http.NewRequest("GET", u.String(), body)
if err != nil {
return nil, err
}
head... | [
-1.1400930881500244,
-0.7910800576210022,
0.9317407608032227,
0.3762209713459015,
-0.5739648938179016,
-0.49233463406562805,
-0.20153820514678955,
-0.5619832873344421,
0.34068381786346436,
0.12488195300102234,
-0.6283572912216187,
0.34776824712753296,
-0.6065706610679626,
0.131245091557502... |
func ShowUserPath(tenantID string, userID int) string {
return fmt.Sprintf("/api/tenants/%v/users/%v", tenantID, userID)
} | [
0.5940423011779785,
-0.31947773694992065,
0.1994120478630066,
0.5123553276062012,
-1.2214571237564087,
0.4132697284221649,
0.2577657997608185,
0.13821817934513092,
0.12316253781318665,
0.3984924852848053,
0.8263310194015503,
0.9472980499267578,
0.09397710114717484,
0.30848440527915955,
0... |
func (c *Client) ShowUser(ctx context.Context, path string) (*http.Response, error) {
var body io.Reader
scheme := c.Scheme
if scheme == "" {
scheme = "https"
}
u := url.URL{Host: c.Host, Scheme: scheme, Path: path}
req, err := http.NewRequest("GET", u.String(), body)
if err != nil {
return nil, err
}
head... | [
-0.5161857008934021,
-0.2179490029811859,
0.9751130938529968,
0.20407481491565704,
-1.2221870422363281,
-0.5721257925033569,
0.5203380584716797,
-0.23762640357017517,
-0.03395891562104225,
0.09577338397502899,
-0.3535707890987396,
0.4548828601837158,
-0.22722651064395905,
0.117021463811397... |
func UpdateUserPath(tenantID string, userID int) string {
return fmt.Sprintf("/api/tenants/%v/users/%v", tenantID, userID)
} | [
-0.4860242009162903,
-1.2466850280761719,
0.3481379747390747,
0.7071131467819214,
-1.0644586086273193,
0.5800685286521912,
0.22134840488433838,
-0.10893489420413971,
0.10480480641126633,
0.8114623427391052,
0.02363223023712635,
0.6646246314048767,
-0.470816433429718,
-0.048685505986213684,... |
func (c *Client) UpdateUser(ctx context.Context, path string, payload *UpdateUserPayload) (*http.Response, error) {
var body io.Reader
b, err := json.Marshal(payload)
if err != nil {
return nil, fmt.Errorf("failed to serialize body: %s", err)
}
body = bytes.NewBuffer(b)
scheme := c.Scheme
if scheme == "" {
s... | [
-1.0641142129898071,
-0.7122365832328796,
0.8972018361091614,
0.11268734931945801,
-1.2016009092330933,
0.07998894155025482,
0.380773663520813,
-0.45029786229133606,
0.2599499821662903,
0.31731510162353516,
-0.6457490921020508,
0.07149449735879898,
-0.8068415522575378,
-0.307950884103775,
... |
func NewOutCommandQueue(serverNode *cluster.ClusterTopologyNode, topology *cluster.ClusterTopology, incomingQueue *InCommandQueue) *OutCommandQueue {
cq := new(OutCommandQueue)
cq.commands = make(chan *command.Command, commands_buffer_size)
cq.errors = make(chan *commandError, commands_buffer_size)
cq.serverNode = ... | [
-0.13200144469738007,
-0.8056939244270325,
0.3505491614341736,
-0.6516671776771545,
-0.31854310631752014,
-0.43019935488700867,
-0.24243317544460297,
0.1543697863817215,
-0.664228081703186,
0.2405652552843094,
0.729701817035675,
1.218029499053955,
-0.26771220564842224,
0.6406850218772888,
... |
func NewWin32LobAppFileSystemDetection()(*Win32LobAppFileSystemDetection) {
m := &Win32LobAppFileSystemDetection{
Win32LobAppDetection: *NewWin32LobAppDetection(),
}
odataTypeValue := "#microsoft.graph.win32LobAppFileSystemDetection"
m.SetOdataType(&odataTypeValue)
return m
} | [
1.2446038722991943,
-1.2543712854385376,
0.16783083975315094,
0.4461780786514282,
-0.15130479633808136,
0.1659601777791977,
0.034125518053770065,
0.15426583588123322,
-0.08925879001617432,
-0.4655432105064392,
-0.3289079964160919,
-0.6919848918914795,
-0.06412606686353683,
0.40143933892250... |
func CreateWin32LobAppFileSystemDetectionFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewWin32LobAppFileSystemDetection(), nil
} | [
1.2193200588226318,
-0.4777434170246124,
0.4142237901687622,
-0.011026065796613693,
-0.5762864351272583,
0.5831186771392822,
0.05329139903187752,
0.29685699939727783,
0.2120148241519928,
-0.9934190511703491,
0.2564641237258911,
-0.37364038825035095,
0.5724918842315674,
1.1265326738357544,
... |
func (m *Win32LobAppFileSystemDetection) GetCheck32BitOn64System()(*bool) {
val, err := m.GetBackingStore().Get("check32BitOn64System")
if err != nil {
panic(err)
}
if val != nil {
return val.(*bool)
}
return nil
} | [
-0.30157217383384705,
0.5724109411239624,
0.2963833510875702,
1.223892331123352,
0.34644442796707153,
1.117303490638733,
0.18506240844726562,
-0.6398778557777405,
-0.4378344714641571,
-0.3933306336402893,
-0.33566442131996155,
-0.09844984114170074,
-0.6602208614349365,
0.7161177396774292,
... |
func (m *Win32LobAppFileSystemDetection) GetDetectionType()(*Win32LobAppFileSystemDetectionType) {
val, err := m.GetBackingStore().Get("detectionType")
if err != nil {
panic(err)
}
if val != nil {
return val.(*Win32LobAppFileSystemDetectionType)
}
return nil
} | [
1.532669186592102,
-0.18970495462417603,
0.026656145229935646,
1.2263104915618896,
1.2005609273910522,
0.4294174313545227,
0.3428453207015991,
-0.1253470480442047,
0.4992132782936096,
-1.1361697912216187,
0.39449623227119446,
-0.8847987055778503,
-0.05437960848212242,
0.9614583849906921,
... |
func (m *Win32LobAppFileSystemDetection) GetDetectionValue()(*string) {
val, err := m.GetBackingStore().Get("detectionValue")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
} | [
1.1214866638183594,
-0.19333364069461823,
0.24987109005451202,
1.1459636688232422,
0.18524815142154694,
0.3745400011539459,
0.028813602402806282,
-0.02676560916006565,
-0.08217902481555939,
-0.7712154388427734,
0.2613498866558075,
-0.4639946520328522,
0.4650730788707733,
0.5211095809936523... |
func (m *Win32LobAppFileSystemDetection) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := m.Win32LobAppDetection.GetFieldDeserializers()
res["check32BitOn64System"] = func (n i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf8... | [
0.3698658347129822,
-0.1434575617313385,
0.7107319235801697,
-0.6401314735412598,
0.3045875132083893,
-0.2566079795360565,
0.32335153222084045,
0.12701141834259033,
-0.7085968255996704,
-1.0110230445861816,
-0.6120995879173279,
-0.07533085346221924,
-0.8403629660606384,
0.8893231153488159,... |
func (m *Win32LobAppFileSystemDetection) GetFileOrFolderName()(*string) {
val, err := m.GetBackingStore().Get("fileOrFolderName")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
} | [
0.14973166584968567,
-0.3039437234401703,
0.3645636737346649,
1.0650718212127686,
0.03001517243683338,
-0.24183136224746704,
0.2963308095932007,
0.04636472091078758,
-0.11150778084993362,
-0.6548405885696411,
0.6646093726158142,
-1.3073433637619019,
0.054913479834795,
0.7903998494148254,
... |
func (m *Win32LobAppFileSystemDetection) GetOperator()(*Win32LobAppDetectionOperator) {
val, err := m.GetBackingStore().Get("operator")
if err != nil {
panic(err)
}
if val != nil {
return val.(*Win32LobAppDetectionOperator)
}
return nil
} | [
0.6336545348167419,
-0.05009211599826813,
0.19882714748382568,
0.7181355357170105,
0.16200658679008484,
0.5260688066482544,
0.41091567277908325,
-0.018976615741848946,
0.774777352809906,
-0.8723199963569641,
0.4048825800418854,
-0.7919116020202637,
-0.3612271845340729,
0.31826072931289673,... |
func (m *Win32LobAppFileSystemDetection) GetPath()(*string) {
val, err := m.GetBackingStore().Get("path")
if err != nil {
panic(err)
}
if val != nil {
return val.(*string)
}
return nil
} | [
1.5483675003051758,
0.19559872150421143,
0.10459695011377335,
1.3547461032867432,
0.6393997073173523,
0.8065608739852905,
0.44698625802993774,
-1.2074781656265259,
0.42556291818618774,
-0.5233317613601685,
0.6034483909606934,
-0.8577941060066223,
-0.9398290514945984,
-0.06935134530067444,
... |
func (m *Win32LobAppFileSystemDetection) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
err := m.Win32LobAppDetection.Serialize(writer)
if err != nil {
return err
}
{
err = writer.WriteBoolValue("check32BitOn64System", m.G... | [
0.0628701001405716,
-0.3710988759994507,
0.5929402112960815,
0.3444380760192871,
0.3965913653373718,
-0.21263672411441803,
0.8775583505630493,
-0.013539345003664494,
-0.34915056824684143,
-0.2063843309879303,
-0.11132970452308655,
-0.45567911863327026,
-0.2596980035305023,
1.41762423515319... |
func (m *Win32LobAppFileSystemDetection) SetCheck32BitOn64System(value *bool)() {
err := m.GetBackingStore().Set("check32BitOn64System", value)
if err != nil {
panic(err)
}
} | [
-0.5796133875846863,
0.2622176706790924,
0.1920398473739624,
1.1396230459213257,
-0.042619865387678146,
1.3157023191452026,
0.3069863021373749,
-0.5664140582084656,
-0.8495878577232361,
-0.17987890541553497,
-0.5056189298629761,
-0.5836181640625,
-0.1882636994123459,
1.0342973470687866,
... |
func (m *Win32LobAppFileSystemDetection) SetDetectionType(value *Win32LobAppFileSystemDetectionType)() {
err := m.GetBackingStore().Set("detectionType", value)
if err != nil {
panic(err)
}
} | [
0.9269961714744568,
-0.15963222086429596,
-0.055114634335041046,
1.255729079246521,
0.5062078237533569,
0.7694659233093262,
0.5666048526763916,
-0.116385817527771,
0.13302180171012878,
-0.7016925811767578,
-0.04916510730981827,
-1.7680784463882446,
0.43421241641044617,
1.2874072790145874,
... |
func (m *Win32LobAppFileSystemDetection) SetDetectionValue(value *string)() {
err := m.GetBackingStore().Set("detectionValue", value)
if err != nil {
panic(err)
}
} | [
0.6436032652854919,
-0.2234039455652237,
0.12543192505836487,
1.1234948635101318,
-0.14095430076122284,
0.6730416417121887,
0.3156437575817108,
0.15790298581123352,
-0.15331457555294037,
-0.5248354077339172,
-0.2875634431838989,
-1.0026286840438843,
0.65354984998703,
0.9356065988540649,
... |
func (m *Win32LobAppFileSystemDetection) SetFileOrFolderName(value *string)() {
err := m.GetBackingStore().Set("fileOrFolderName", value)
if err != nil {
panic(err)
}
} | [
-0.2158830165863037,
-0.30759304761886597,
0.17068520188331604,
0.8537808656692505,
0.02237245813012123,
0.04790731891989708,
0.5736881494522095,
-0.19378124177455902,
-0.09797058254480362,
-0.3848816454410553,
0.07908239960670471,
-1.7361280918121338,
0.04328000172972679,
1.00764811038970... |
func (m *Win32LobAppFileSystemDetection) SetOperator(value *Win32LobAppDetectionOperator)() {
err := m.GetBackingStore().Set("operator", value)
if err != nil {
panic(err)
}
} | [
0.24837835133075714,
0.37544718384742737,
0.10594715923070908,
0.5423651337623596,
-0.43353766202926636,
1.0180121660232544,
0.7454476356506348,
0.20494844019412994,
0.23732392489910126,
-0.733775794506073,
0.05956651270389557,
-1.270214557647705,
0.15244971215724945,
1.047292947769165,
... |
func (m *Win32LobAppFileSystemDetection) SetPath(value *string)() {
err := m.GetBackingStore().Set("path", value)
if err != nil {
panic(err)
}
} | [
1.1202772855758667,
0.45277440547943115,
0.049232177436351776,
1.1756727695465088,
0.26551252603530884,
1.5731759071350098,
0.6078780889511108,
-0.9201647043228149,
-0.037665367126464844,
-0.6598343253135681,
-0.4568798542022705,
-1.2727055549621582,
-0.6489112377166748,
0.7777935862541199... |
func NewGrpcClient(dialOpt grpc.DialOption, messenger *Messenger) *GrpcClient {
if dialOpt == nil {
dialOpt = grpc.WithInsecure()
}
return &GrpcClient{
dialOption: []grpc.DialOption{
dialOpt,
grpc.WithBlock(),
},
messenger: messenger,
}
} | [
-0.13385124504566193,
0.2771809995174408,
0.482353150844574,
0.7018893361091614,
-0.7729829549789429,
0.3944164514541626,
-0.09972315281629562,
-0.9989057779312134,
0.37636294960975647,
0.8330958485603333,
-0.2363954782485962,
0.2356845736503601,
-1.108623743057251,
-0.563590943813324,
0... |
func (client *GrpcClient) Connect(addr string) (*grpc.ClientConn, error) {
conn, err := grpc.Dial(addr, client.dialOption...)
if err != nil {
return nil, err
}
return conn, nil
} | [
-0.11182954162359238,
0.17910970747470856,
0.44453710317611694,
0.2205226868391037,
-0.7590554356575012,
0.32499179244041443,
0.47501739859580994,
-0.6496114134788513,
-0.027709687128663063,
0.48765894770622253,
0.38880112767219543,
0.46707475185394287,
-0.08618277311325073,
0.028983587399... |
func (client *GrpcClient) CreateTimer(count int32, namespace, interval, startTime string) (string, error) {
timerID, err := uuid.NewUUID()
if err != nil {
return "", err
}
timerIDString := timerID.String()
addr, shardResult := client.messenger.GetAddress(timerIDString)
if !client.messenger.config.LocalConnect {... | [
0.3548213839530945,
-0.43078964948654175,
0.8401753902435303,
-0.11307122558355331,
-0.20288105309009552,
0.568587601184845,
-0.14872826635837555,
-0.41738006472587585,
-0.8055752515792847,
0.41044652462005615,
0.11257362365722656,
0.07087358832359314,
-1.6125223636627197,
1.05751848220825... |
func (client *GrpcClient) DeleteTimer(uuidstr, namespace string) (int, error) {
uu, err := uuid.Parse(uuidstr)
if err != nil {
return -1, err
}
//Make sure it is actually in the database
_, err = client.messenger.transporter.Get(uu, namespace)
if err != nil {
return -1, err
}
addr, shardResult := client.mes... | [
-0.42516782879829407,
0.06244935095310211,
0.7673078775405884,
-0.0197590421885252,
-0.6259257793426514,
-0.35607168078422546,
0.021128008142113686,
0.3236274719238281,
-0.5110690593719482,
0.43063175678253174,
0.11344043165445328,
0.14473943412303925,
-1.5747120380401611,
1.20850670337677... |
func Patch(t testing.TB, dest, value interface{}) {
New(t).Patch(dest, value)
} | [
-0.15948861837387085,
0.20696048438549042,
0.2254379242658615,
-0.4801199436187744,
-0.9523724317550659,
1.2110780477523804,
-0.502020537853241,
0.33711060881614685,
0.21025583148002625,
0.0833689346909523,
0.01717185229063034,
0.4224381744861603,
0.788794219493866,
-0.08120526373386383,
... |
func Setenv(t testing.TB, name, val string) {
New(t).Setenv(name, val)
} | [
0.23896335065364838,
0.29527440667152405,
0.2397550642490387,
0.6666681170463562,
-0.35656189918518066,
1.050125002861023,
-0.10407384485006332,
-0.2157544046640396,
-1.084130048751831,
0.6060330867767334,
-0.8217581510543823,
0.35643836855888367,
0.1652018278837204,
0.002486240351572633,
... |
func Unsetenv(t testing.TB, name string) {
New(t).Unsetenv(name)
} | [
-0.47260257601737976,
0.11572884023189545,
0.1334911435842514,
-0.11580992490053177,
-0.32393285632133484,
0.07747607678174973,
0.6062042117118835,
0.26394474506378174,
-1.1944445371627808,
0.685916006565094,
-0.4259282350540161,
0.3599764406681061,
0.14480315148830414,
0.04839209094643593... |
func (c *UpdateSpaceQuotasCommand) Execute([]string) error {
var cfMgmt *CFMgmt
var err error
if cfMgmt, err = InitializeManagers(c.BaseCFConfigCommand); err == nil {
err = cfMgmt.SpaceManager.CreateQuotas(c.ConfigDirectory)
}
return err
} | [
-0.16066759824752808,
0.0048664044588804245,
0.7366412281990051,
0.19151996076107025,
0.6760672330856323,
0.3012293577194214,
-0.47028806805610657,
0.070878766477108,
-0.575907826423645,
0.9965556263923645,
-0.1172436848282814,
-0.5900607705116272,
-0.13273361325263977,
0.4373457133769989,... |
func NewUnsafeCreator(resourceType resource.Type, tableName string, insertColumns []string, conflictingColumns []string) UnsafeCreator {
return &unsafeCreator{
resourceType: resourceType,
tableName: tableName,
insertColumns: insertColumns,
conflictingColumns: conflictingColumns,
}
} | [
-0.0288007240742445,
0.5610610246658325,
0.1758226454257965,
-0.011993820779025555,
-0.4500119388103485,
-0.5044769048690796,
-0.17123055458068848,
-0.10861954838037491,
-0.257980078458786,
-0.028382742777466774,
-0.4411962032318115,
-0.2737419903278351,
0.010172886773943901,
0.45822560787... |
func (u *unsafeCreator) UnsafeCreate(ctx context.Context, dbEntity interface{}) error {
if dbEntity == nil {
return apperrors.NewInternalError("item cannot be nil")
}
persist, err := persistence.FromCtx(ctx)
if err != nil {
return err
}
values := make([]string, 0, len(u.insertColumns))
for _, c := range u.... | [
-0.15641476213932037,
0.9590758085250854,
0.7351752519607544,
0.30848339200019836,
0.6084914803504944,
-0.25213712453842163,
-0.07767868787050247,
-0.8312065601348877,
-0.4631117582321167,
0.5825064182281494,
-0.31148210167884827,
-0.8295382857322693,
-0.08354239910840988,
0.10200470685958... |
func (*SendPaymentFormRequest) TypeID() uint32 {
return SendPaymentFormRequestTypeID
} | [
0.024928657338023186,
-0.20380878448486328,
0.5722797513008118,
-0.04799874871969223,
-0.06499110162258148,
0.9013670086860657,
-0.4035099744796753,
-0.6204360127449036,
0.6190163493156433,
0.06789010018110275,
-0.14218832552433014,
0.3046625256538391,
-1.1722525358200073,
0.89119422435760... |
func (*SendPaymentFormRequest) TypeName() string {
return "sendPaymentForm"
} | [
-0.3357742726802826,
0.12689629197120667,
0.722946286201477,
-0.07379628717899323,
-0.5004004836082458,
0.3702939450740814,
-0.2992625832557678,
-0.28664669394493103,
0.192647323012352,
0.33848801255226135,
-0.060466933995485306,
-0.44843292236328125,
-0.3151997923851013,
0.180480003356933... |
func (s *SendPaymentFormRequest) TypeInfo() tdp.Type {
typ := tdp.Type{
Name: "sendPaymentForm",
ID: SendPaymentFormRequestTypeID,
}
if s == nil {
typ.Null = true
return typ
}
typ.Fields = []tdp.Field{
{
Name: "InputInvoice",
SchemaName: "input_invoice",
},
{
Name: "PaymentForm... | [
0.070262610912323,
0.18878720700740814,
0.6247796416282654,
-0.9109838604927063,
-0.05154643580317497,
0.14866164326667786,
-0.10980408638715744,
-0.9902870655059814,
-0.043457742780447006,
0.22479461133480072,
-0.5332524180412292,
-0.5379464030265808,
-0.007364608813077211,
-0.11732285469... |
func (s *SendPaymentFormRequest) GetInputInvoice() (value InputInvoiceClass) {
if s == nil {
return
}
return s.InputInvoice
} | [
-0.5741541385650635,
-0.0955858826637268,
0.07452736794948578,
0.336085706949234,
-0.24602551758289337,
0.6656941771507263,
0.2326255440711975,
0.15848927199840546,
0.2696387767791748,
-1.1382453441619873,
0.05199814215302467,
0.4184019863605499,
-1.1327464580535889,
-0.039891116321086884,... |
func (s *SendPaymentFormRequest) GetPaymentFormID() (value int64) {
if s == nil {
return
}
return s.PaymentFormID
} | [
0.20590832829475403,
0.32652148604393005,
-0.13497395813465118,
0.1473321169614792,
-0.3207414150238037,
0.2368108183145523,
-0.4935608208179474,
0.4456575810909271,
1.0509003400802612,
-0.4507293999195099,
-0.426207959651947,
-0.3306800425052643,
-0.04571114107966423,
0.8987316489219666,
... |
func (s *SendPaymentFormRequest) GetOrderInfoID() (value string) {
if s == nil {
return
}
return s.OrderInfoID
} | [
0.5302636623382568,
-0.16142132878303528,
-0.27987197041511536,
0.6693637371063232,
0.2630320191383362,
0.857207179069519,
-0.03221879526972771,
-0.22939424216747284,
0.001216644304804504,
0.036014676094055176,
-0.003542894497513771,
-0.2725188136100769,
-0.7839837074279785,
0.042208548635... |
func (s *SendPaymentFormRequest) GetShippingOptionID() (value string) {
if s == nil {
return
}
return s.ShippingOptionID
} | [
0.6421458721160889,
0.3187487721443176,
-0.08959838002920151,
0.27523747086524963,
-0.5510282516479492,
1.040202021598816,
0.1312037855386734,
-0.004228929989039898,
0.7435534000396729,
0.7642410397529602,
-0.3547038435935974,
-0.266824334859848,
0.23785878717899323,
-0.05031591281294823,
... |
func (s *SendPaymentFormRequest) GetCredentials() (value InputCredentialsClass) {
if s == nil {
return
}
return s.Credentials
} | [
-0.12605899572372437,
0.9377570748329163,
0.054661642760038376,
0.9716978073120117,
0.7953934669494629,
0.07444829493761063,
0.448358416557312,
-0.6587321162223816,
0.6696376204490662,
-0.7256633639335632,
-0.08636672049760818,
-0.6959771513938904,
0.004740505013614893,
0.9071316719055176,... |
func (s *SendPaymentFormRequest) GetTipAmount() (value int64) {
if s == nil {
return
}
return s.TipAmount
} | [
-0.720867395401001,
-0.07558687776327133,
-0.0052376314997673035,
0.8163807988166809,
-0.3183270990848541,
0.13610273599624634,
0.8472551107406616,
0.2639707028865814,
0.2958029806613922,
-0.16497178375720978,
-0.21590694785118103,
-0.9019862413406372,
0.4405134916305542,
-0.17766936123371... |
func (c *Client) SendPaymentForm(ctx context.Context, request *SendPaymentFormRequest) (*PaymentResult, error) {
var result PaymentResult
if err := c.rpc.Invoke(ctx, request, &result); err != nil {
return nil, err
}
return &result, nil
} | [
-0.8388954401016235,
1.0302718877792358,
0.33105146884918213,
-0.040591709315776825,
-0.4022735059261322,
-0.5542904138565063,
-0.07533132284879684,
-1.4594340324401855,
0.3579525053501129,
0.12453888356685638,
-0.18373282253742218,
-0.052008748054504395,
-0.758450448513031,
0.573416054248... |
func HelloServer(w http.ResponseWriter, req *http.Request) {
io.WriteString(w, "hello "+req.Header.Get(pam.REQ_X_API)+"!\n")
} | [
-0.8702148199081421,
-0.7847962975502014,
0.6284503936767578,
0.8175855875015259,
0.37097257375717163,
0.4531897008419037,
-0.23077526688575745,
0.9775179028511047,
0.0814838781952858,
-0.7223863005638123,
-0.5846403241157532,
-0.02206398732960224,
-0.6602833867073059,
0.4305810332298279,
... |
func TestMain(t *testing.M) {
apiKey := flag.String("api-key", "", "The API key you want to serve")
flag.Parse()
if *apiKey == "" {
fmt.Println("No API key. Aborting...")
os.Exit(1)
}
os.Setenv("APIKEY", *apiKey)
os.Exit(t.Run())
} | [
-0.1443769484758377,
0.4573960304260254,
0.4867250621318817,
0.2724479138851166,
0.4539351761341095,
0.28438201546669006,
0.5458363890647888,
0.8759873509407043,
-0.6043809652328491,
0.5528808236122131,
0.14054438471794128,
0.3993797302246094,
-1.1409664154052734,
0.3026074171066284,
-0.... |
func Test(t *testing.T) { gc.TestingT(t) } | [
1.1518417596817017,
0.6105729341506958,
0.3920730650424957,
-0.39693009853363037,
1.074134111404419,
0.7983545660972595,
1.5629171133041382,
-1.1764068603515625,
-0.6369705200195312,
0.042216911911964417,
-0.3960302770137787,
-0.050831474363803864,
-0.059924639761447906,
0.3504746854305267... |
func Open(path string) *Model {
// fmt.Println("something")
// create a C string from the Go string
cpath := C.CString(path)
// you have to delete the converted string
// See https://github.com/golang/go/wiki/cgo
defer C.free(unsafe.Pointer(cpath))
return &Model{
path: path,
handle: C.NewHandle(cpath),
}... | [
-0.16852936148643494,
-0.5361251831054688,
0.30884379148483276,
-0.8505873084068298,
-0.9085659384727478,
1.2542920112609863,
0.6033030152320862,
0.882332980632782,
-0.6066927313804626,
-0.39769062399864197,
-0.4500511884689331,
-0.04692784696817398,
-0.20191359519958496,
-1.08198761940002... |
func (handle *Model) Close() error {
if handle == nil {
return nil
}
C.DeleteHandle(handle.handle)
return nil
} | [
0.5395161509513855,
-0.10213298350572586,
0.36238935589790344,
0.023479219526052475,
0.2683264911174774,
1.2587430477142334,
1.0310742855072021,
-0.4110208749771118,
-0.6043925881385803,
-1.3251712322235107,
0.2136482149362564,
-0.38509079813957214,
-1.3535182476043701,
0.6605343222618103,... |
func (FilterFunc) Eval(ctx *Context, node *Node) ([]*types.PerfTrace, error) {
if len(node.Args) != 1 {
return nil, fmt.Errorf("filter() takes a single argument.")
}
if node.Args[0].Typ != NodeString {
return nil, fmt.Errorf("filter() takes a string argument.")
}
query, err := url.ParseQuery(node.Args[0].Val)
... | [
0.6773287057876587,
0.7206153869628906,
0.7333845496177673,
-0.4998001158237457,
0.20119716227054596,
0.3103943467140198,
0.510691225528717,
0.3484160602092743,
0.0927179679274559,
1.0126454830169678,
0.5438148379325867,
0.6799319982528687,
-0.1676115095615387,
0.28611093759536743,
-0.37... |
func (NormFunc) Eval(ctx *Context, node *Node) ([]*types.PerfTrace, error) {
if len(node.Args) > 2 || len(node.Args) == 0 {
return nil, fmt.Errorf("norm() takes one or two arguments.")
}
if node.Args[0].Typ != NodeFunc {
return nil, fmt.Errorf("norm() takes a function as its first argument.")
}
minStdDev := co... | [
0.9550676941871643,
0.29256299138069153,
0.7756634950637817,
-0.00921716634184122,
-0.1529843658208847,
0.4143237769603729,
0.6590313911437988,
0.159126415848732,
0.011292586103081703,
0.41692090034484863,
0.5047528743743896,
1.0644794702529907,
-0.41956019401550293,
0.6752040386199951,
... |
func (FillFunc) Eval(ctx *Context, node *Node) ([]*types.PerfTrace, error) {
if len(node.Args) != 1 {
return nil, fmt.Errorf("fill() takes a single argument.")
}
if node.Args[0].Typ != NodeFunc {
return nil, fmt.Errorf("fill() takes a function argument.")
}
traces, err := node.Args[0].Eval(ctx)
if err != nil ... | [
0.7710767388343811,
1.1415116786956787,
0.7489144802093506,
-0.8105455636978149,
0.9304956793785095,
0.7258468270301819,
0.5309638977050781,
0.022787587717175484,
0.12211364507675171,
0.5690251588821411,
0.08062420785427094,
0.5142529606819153,
0.016902819275856018,
0.8059507012367249,
-... |
func (AveFunc) Eval(ctx *Context, node *Node) ([]*types.PerfTrace, error) {
if len(node.Args) != 1 {
return nil, fmt.Errorf("ave() takes a single argument.")
}
if node.Args[0].Typ != NodeFunc {
return nil, fmt.Errorf("ave() takes a function argument.")
}
traces, err := node.Args[0].Eval(ctx)
if err != nil {
... | [
0.8793217539787292,
0.9676696062088013,
0.9904030561447144,
-0.47122663259506226,
0.7528294324874878,
0.5730602145195007,
0.31173765659332275,
0.2861148416996002,
-0.5536311268806458,
1.0188084840774536,
0.14722232520580292,
0.7574723362922668,
0.22282624244689941,
0.9660382270812988,
0.... |
func (SumFunc) Eval(ctx *Context, node *Node) ([]*types.PerfTrace, error) {
if len(node.Args) != 1 {
return nil, fmt.Errorf("Sum() takes a single argument.")
}
if node.Args[0].Typ != NodeFunc {
return nil, fmt.Errorf("Sum() takes a function argument.")
}
traces, err := node.Args[0].Eval(ctx)
if err != nil {
... | [
0.7765434980392456,
0.6803997159004211,
0.923331081867218,
-0.4127098619937897,
0.8194657564163208,
0.6249389052391052,
0.4128541946411133,
0.5199467539787292,
0.050142258405685425,
0.8586002588272095,
-0.18035544455051422,
0.6055948138237,
0.28631535172462463,
0.6553816199302673,
0.1453... |
func InitGLTI() {
panic("not implemented")
} | [
0.9554112553596497,
-0.04815395921468735,
0.4159691333770752,
0.632580578327179,
-0.15651366114616394,
1.4052976369857788,
-0.25060024857521057,
-0.8590466380119324,
-0.6602802276611328,
0.3386688232421875,
-1.5153833627700806,
0.9179798364639282,
-0.37725695967674255,
-0.6800155639648438,... |
func SyncGet(w http.ResponseWriter, req *http.Request) {
queryString := req.URL.Query()
uid := queryString.Get("uid")
conn := AddConnection(uid)
defer DelConnection(conn)
timer := time.NewTimer(KEEPALIVE_TIMEOUT)
select {
case messageData := <-conn.Receiver:
w.WriteHeader(http.StatusOK)
w.Write(messageData)... | [
-0.6993590593338013,
-0.2996099293231964,
0.6818770170211792,
-0.43242189288139343,
0.5032218098640442,
0.06927502155303955,
-0.790974497795105,
-0.34757301211357117,
-0.13137030601501465,
0.06396786868572235,
0.9608104825019836,
0.2691252827644348,
-0.22534695267677307,
-0.023132484406232... |
func SyncPush(w http.ResponseWriter, req *http.Request) {
queryString := req.URL.Query()
uid := queryString.Get("uid")
data, err := ioutil.ReadAll(req.Body)
if err != nil {
http.Error(w, "bad request", http.StatusBadRequest)
return
}
go PushMessage(uid, data)
if DEBUG {
// echo
w.Write(data)
}
} | [
-0.02973589487373829,
0.3526621162891388,
0.5162788033485413,
0.4233464002609253,
0.217860609292984,
1.0359429121017456,
-0.1037457138299942,
-0.5216290950775146,
0.08618763834238052,
0.4027666449546814,
0.2040628045797348,
1.51730477809906,
-0.11113045364618301,
0.8532276749610901,
-0.2... |
func New(r image.Rectangle, d Descriptor) Face {
return Face{r, d}
} | [
-0.2660147249698639,
-0.5811740159988403,
0.21332427859306335,
-0.3377473056316376,
-0.4312175214290619,
-0.4208448827266693,
-0.3411993384361267,
-0.8276268839836121,
-0.26908838748931885,
-0.49766042828559875,
0.18104153871536255,
0.572077751159668,
1.8942583799362183,
0.5988403558731079... |
func NewRecognizer(modelDir string) (rec *Recognizer, err error) {
cModelDir := C.CString(modelDir)
defer C.free(unsafe.Pointer(cModelDir))
ptr := C.facerec_init(cModelDir)
if ptr.err_str != nil {
defer C.facerec_free(ptr)
defer C.free(unsafe.Pointer(ptr.err_str))
err = makeError(C.GoString(ptr.err_str), int... | [
-0.25401273369789124,
-0.9790879487991333,
0.24997130036354065,
-0.3535286784172058,
-0.9414424300193787,
-0.3991566598415375,
0.46672117710113525,
-0.12281373888254166,
-0.41158604621887207,
-0.5503554940223694,
-1.0938540697097778,
0.24305416643619537,
-0.26266953349113464,
0.95151811838... |
func (rec *Recognizer) Recognize(imgData []byte) (faces []Face, err error) {
return rec.recognize(imgData, 0)
} | [
-1.1647660732269287,
-0.5934442281723022,
0.3319411873817444,
0.8824363350868225,
-0.14545726776123047,
-0.6651238203048706,
0.0329011045396328,
-0.07680731266736984,
0.07786739617586136,
-0.28343990445137024,
-1.0742013454437256,
0.21996507048606873,
-0.034246813505887985,
1.0277203321456... |
func New() *Server {
return &Server{}
} | [
-0.978919506072998,
-1.6293308734893799,
-0.2911297082901001,
-0.2805193364620209,
-0.3418702781200409,
0.09975013136863708,
-0.3311116397380829,
-0.27417105436325073,
-0.06677179783582687,
-0.7719889283180237,
-0.6131760478019714,
1.0974661111831665,
-0.1299501359462738,
0.608668208122253... |
func (srv *Server) Version(ctx context.Context, empty *pb.Empty) (*ver_api.VersionInfo, error) {
version := ver_api.VersionInfo{
Api: config.SERVICE_NAME, // Legacy key
Name: config.SERVICE_NAME,
Version: version.Version,
Sha: version.GitSHA,
Built: version.BuildTime,
}
return &version, nil
} | [
-0.2245103120803833,
-0.7990514039993286,
0.32352298498153687,
0.0016492442227900028,
0.21824583411216736,
0.8016088604927063,
0.00893001351505518,
-0.11988593637943268,
-0.1558161824941635,
0.06799307465553284,
-0.9095886945724487,
0.17292004823684692,
-0.8205059766769409,
0.6750921010971... |
func (c *BgpConfig) GetAddr() string {
return fmt.Sprintf("%s:%d", c.Addr, c.Port)
} | [
0.18902330100536346,
-0.5736660957336426,
0.5908399224281311,
-0.7173482775688171,
0.09000585973262787,
0.8198075294494629,
-0.03062661923468113,
-0.11738396435976028,
-0.21355906128883362,
0.04367075860500336,
0.8533501029014587,
0.9020854234695435,
-0.005176822654902935,
0.40927770733833... |
func (c *RibsConfig) GetSyncTime() time.Duration {
return time.Duration(c.SyncTime) * time.Millisecond
} | [
0.937984049320221,
0.5624960660934448,
0.4869992733001709,
0.13213598728179932,
0.15011166036128998,
-0.15622800588607788,
-0.7710275053977966,
0.24701015651226044,
-0.32049039006233215,
1.0488476753234863,
-0.2041156142950058,
0.3043990433216095,
-0.5683744549751282,
1.0263246297836304,
... |
func (c *Config) GetBgpdAddr() string {
return c.Ribs.Bgp.GetAddr()
} | [
0.426169216632843,
-0.356747567653656,
0.5431629419326782,
0.3701384961605072,
0.12191738188266754,
0.23838424682617188,
-0.39888113737106323,
0.5510616302490234,
-0.30038291215896606,
0.13535216450691223,
0.9250994324684143,
1.6528561115264893,
-1.0342919826507568,
0.8529096841812134,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.