text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (this *HostAddress) GetPort() uint16 {
return this.port
} | [
1.674874186515808,
0.6989352107048035,
0.4548499882221222,
0.12778949737548828,
1.0653977394104004,
-0.0844460055232048,
0.9859682321548462,
0.5072288513183594,
0.3831678628921509,
-1.1220486164093018,
-0.30559980869293213,
0.21849992871284485,
-0.8106184005737305,
-0.11956878751516342,
... |
func isChartInstallable(ch *chart.Chart) (bool, error) {
switch ch.Metadata.Type {
case "", "application":
return true, nil
}
return false, liberrors.Errorf("%s charts are not installable", ch.Metadata.Type)
} | [
-0.20187649130821228,
-0.33141058683395386,
0.5489699840545654,
-0.03402438387274742,
0.032638490200042725,
0.019366979598999023,
0.11389706283807755,
-0.6229490041732788,
-0.1326041966676712,
1.5944406986236572,
-0.23292019963264465,
0.3528715670108795,
-0.45101794600486755,
0.60472559928... |
func instrumentGet(inner func()) {
TotalRequests.Add(1)
PendingRequests.Add(1)
defer PendingRequests.Add(-1)
start := time.Now()
inner()
// Capture the histogram over 18 geometric buckets
delta := time.Since(start)
switch {
case delta < time.Millisecond:
Latencies.Add("0ms", 1)
case delta > 32768*time.M... | [
-0.18551509082317352,
0.19745813310146332,
0.8602216839790344,
-1.1525242328643799,
0.36761507391929626,
0.18358390033245087,
0.38604211807250977,
0.10226776450872421,
-0.520523726940155,
-0.30065780878067017,
0.829127848148346,
0.4792385995388031,
0.2021251618862152,
-0.4944116175174713,
... |
func Get(c http.Client, url string) Result {
res, err := c.Get(url)
if err != nil {
return Result{url, "", nil, &ErrResult{err}}
}
body, err := ioutil.ReadAll(res.Body)
if err != nil {
return Result{url, "", res, &ErrResult{err}}
}
if contentTypes, ok := res.Header["Content-Type"]; ok {
return Result{url... | [
-0.3664071261882782,
-0.3097735345363617,
0.6718612909317017,
-0.3777346909046173,
-0.33598414063453674,
-0.4091239273548126,
-0.9161523580551147,
-0.43092525005340576,
-0.8783155679702759,
0.10219349712133408,
-0.12229687720537186,
0.6831650137901306,
-0.5567946434020996,
-0.1115358024835... |
func Format(contentType string, body []byte) string {
// len(data:;base64,) + rest as capacity
uri := make([]byte, 0, 16+len(contentType)+base64.StdEncoding.EncodedLen(len(body)))
// Start with header
uri = append(uri, []byte("data:")...)
// Split out each param, to extract the mime and maybe the charset
parts ... | [
0.59990394115448,
-0.3791516423225403,
0.7871960997581482,
-0.46221446990966797,
-0.8293238282203674,
-0.8786472678184509,
-1.0301637649536133,
-0.08860905468463898,
-0.10942259430885315,
0.4712458848953247,
1.335374116897583,
0.6748727560043335,
-0.6491677165031433,
0.14115691184997559,
... |
func DecodeUrls(query url.Values) (urls []string, err error) {
prefix := query.Get("p")
if prefix == "" {
err = fmt.Errorf("Must contain the (p)refix query parameter")
return
}
suffix := query.Get("s")
inners := query["i"]
if len(inners) == 0 {
urls = append(urls, prefix+suffix)
} else {
for _, inner :... | [
-1.0742907524108887,
0.49028313159942627,
0.2874152958393097,
0.06356582045555115,
0.33015337586402893,
-0.38945472240448,
-0.7879691123962402,
0.4244937300682068,
0.5934886336326599,
-0.16341491043567657,
0.13500122725963593,
-0.24677853286266327,
-0.28184977173805237,
0.4457648694515228,... |
func GetAll(c http.Client, urls []string, after time.Duration) (results map[string]Result) {
Responses.Add(1)
results = make(map[string]Result, len(urls))
requests := make(chan Result, len(urls))
timeout := &ErrResult{fmt.Errorf("timeout %v", after)}
// Initialize pending requests all with timeout
for _, u := r... | [
-0.1796536147594452,
0.5189294815063477,
0.8678962588310242,
0.20578084886074066,
-0.4603762626647949,
0.2100907266139984,
-0.2806592881679535,
0.18736723065376282,
-0.8778775334358215,
-0.2760920822620392,
-0.07870461046695709,
-0.01325351744890213,
-0.7005410194396973,
1.063848853111267,... |
func MaxAge(results map[string]Result) (maxAge int) {
param := "max-age="
maxAge = -1
for _, res := range results {
if res.Error == nil && res.Response != nil {
cc := res.Response.Header.Get("Cache-Control")
if cc == "" {
// This response doesn't have cache control, so none are cacheable
return -1
... | [
-1.0541179180145264,
-0.6347575187683105,
0.9043066501617432,
0.17543044686317444,
-0.2280735969543457,
-0.5984519124031067,
0.19360020756721497,
0.23377633094787598,
-0.556709885597229,
-0.028387414291501045,
0.8865901231765747,
-0.9296175241470337,
-1.1528772115707397,
1.129165530204773,... |
func (p *AwsProvider) setVars(values Values) {
p.stackConfigVars = values
} | [
-0.5309781432151794,
0.8443489670753479,
0.051716092973947525,
0.03416171669960022,
-0.117582768201828,
0.8617449998855591,
-0.34620964527130127,
-0.3478924334049225,
-0.30647510290145874,
0.3868373930454254,
-0.7609505653381348,
0.43161511421203613,
0.2884213626384735,
0.42819732427597046... |
func (p *AwsProvider) getVars() Values {
return p.stackConfigVars
} | [
-0.30082160234451294,
0.8862249851226807,
0.07918771356344223,
0.2562189996242523,
0.019201204180717468,
0.5537523031234741,
-0.18407972157001495,
-0.6372954845428467,
0.10469305515289307,
0.2747136652469635,
-0.3352227509021759,
0.7893834114074707,
-0.16748620569705963,
0.257764607667923,... |
func (p *AwsProvider) getInstallerVars() Values {
return Values{
"REGION": p.region,
}
} | [
-0.7962534427642822,
-0.19134807586669922,
-0.0830678790807724,
-0.4740438759326935,
0.17096644639968872,
0.31128376722335815,
0.2419993132352829,
0.35343700647354126,
-0.28083696961402893,
0.3452185094356537,
-0.3322036862373352,
0.4280781149864197,
-0.7232536673545837,
0.2870749831199646... |
func initArgs(){
//master -config ./master.json
flag.StringVar(&confFile, "config", "./master.json", "specify master.json as config file")
flag.Parse()
} | [
-0.19855669140815735,
-0.27187228202819824,
0.5315300226211548,
-0.19048406183719635,
0.4311223030090332,
0.2935774028301239,
-0.07563620805740356,
1.175185203552246,
-1.5139168500900269,
0.5519357919692993,
-0.7287501692771912,
0.390811026096344,
-0.4048745334148407,
0.5654849410057068,
... |
func (idxer *Indexes) Insert(item *item, to ...string) {
for _, index := range idxer.storage {
if idxer.fit(index.name, to) && match.Match(string(item.key), index.pattern) {
index.insert(item)
}
}
} | [
-1.2496308088302612,
0.43694648146629333,
0.41514548659324646,
0.21016280353069305,
0.24081584811210632,
0.014339625835418701,
0.27134475111961365,
0.4009004533290863,
-0.7598741054534912,
0.2205880880355835,
-0.8976367115974426,
-0.579423189163208,
-0.6471585035324097,
-1.0702934265136719... |
func handleError(err error) {
logger.L.Fatalf("config error %v", err.Error())
} | [
0.05095037817955017,
0.2534591853618622,
0.24283865094184875,
0.9382601976394653,
0.2293015569448471,
0.4126269519329071,
-0.28206172585487366,
0.6340648531913757,
0.32273274660110474,
0.4849452078342438,
0.04753965139389038,
-1.041885495185852,
0.26170751452445984,
0.9596003293991089,
1... |
func registerFlags(c *Configuration) {
for _, k := range configurationMap {
if k.Flag != "" {
flagRegister(k, c)
}
}
} | [
0.013852219097316265,
1.4601460695266724,
0.08247749507427216,
0.43305179476737976,
1.7262336015701294,
0.2354322224855423,
-0.2683817446231842,
0.5499109029769897,
-1.2503721714019775,
-0.4180905222892761,
-1.0776283740997314,
-0.5501638650894165,
-0.4490642845630646,
2.1892967224121094,
... |
func registerEnvs(c *Configuration) {
c.viperEnvAndFile.SetEnvPrefix(envPrefix)
for _, k := range configurationMap {
if k.Env != "" {
if err := c.viperEnvAndFile.BindEnv(k.Env); err != nil {
handleError(err)
}
}
}
} | [
-0.6873587369918823,
-0.30352485179901123,
0.2805083692073822,
-0.07070886343717575,
1.5368210077285767,
-0.18505096435546875,
-0.005433313082903624,
0.3502703905105591,
-0.5253612995147705,
0.11536534875631332,
-0.17387722432613373,
-0.40731725096702576,
0.5173304677009583,
1.043710589408... |
func parseFlags(c *Configuration) {
if err := c.pFlag.Parse(os.Args[1:]); err != nil {
handleError(err)
}
if err := c.viperFlag.BindPFlags(c.pFlag); err != nil {
handleError(err)
}
} | [
0.1261170357465744,
0.565388560295105,
0.3784376382827759,
0.4807117283344269,
0.7076876759529114,
-0.10702113062143326,
0.08022407442331314,
0.19379904866218567,
-0.5447642207145691,
-0.2836257219314575,
-0.33405402302742004,
-0.40100976824760437,
-1.0586559772491455,
1.2308151721954346,
... |
func parseFile(c *Configuration) {
c.viperEnvAndFile.SetConfigType(fileType)
configFromEnv := c.viperEnvAndFile.GetString(configurationMap[configFile].Env)
if configFromEnv != "" {
c.viperEnvAndFile.SetConfigFile(configFromEnv)
err := c.viperEnvAndFile.ReadInConfig()
if err == nil {
logger.L.Debug("config f... | [
-0.08067794889211655,
-0.4292260408401489,
0.6629393696784973,
-0.10613326728343964,
0.6099350452423096,
0.5565915107727051,
0.426312655210495,
0.8816127181053162,
-1.050760269165039,
0.691149890422821,
-0.1514403522014618,
-0.5628874897956848,
-0.24012838304042816,
1.3016947507858276,
0... |
func Load() *Config {
return &Config{}
} | [
-0.021296272054314613,
-0.12344298511743546,
-0.12053406238555908,
-0.41087213158607483,
-1.1603753566741943,
-0.03917849063873291,
-0.47622162103652954,
0.16590513288974762,
-0.46964991092681885,
-0.1252024918794632,
-0.789497971534729,
-0.2555076777935028,
-0.6980388760566711,
-0.2196870... |
func FixCrit(c string) string {
c = strings.Replace(c, "%", "%25", -1)
c = strings.Replace(c, " ", "%20", -1)
return c
} | [
1.4964507818222046,
-0.7316831946372986,
0.313500314950943,
-0.8900594115257263,
-0.12288707494735718,
0.1772947907447815,
0.25371789932250977,
0.7524912357330322,
-1.4917911291122437,
0.005485246889293194,
-0.044047869741916656,
1.0687471628189087,
-0.61305171251297,
0.3153678774833679,
... |
func (a *API) Authenticate(c CredData) error {
p := "https://%s/api/authenticate.sjs?json&email=%s&password=%s"
x := fmt.Sprintf(p, c.Host, c.Email, c.Password)
resp, body, err := a.Get(x)
if err != nil {
return err
}
var as AuthStatus
err = yaml.Unmarshal(body, &as)
if err == nil && as.Status == "error" {
... | [
-0.5712917447090149,
0.2939304709434509,
0.8401927947998047,
0.49690771102905273,
-0.040444910526275635,
-0.28490903973579407,
-0.34112611413002014,
0.5402662754058838,
-0.36512836813926697,
0.7453234791755676,
-0.28499943017959595,
0.9532552361488342,
-0.313571959733963,
0.387745290994644... |
func (t *Table) Count(c string) (string, error) {
p := "https://%s/api/getCount.sjs?json&object=%s&countColumn=%s_KEY"
x := fmt.Sprintf(p, t.Host, t.Name, t.Name)
if len(c) != 0 {
x = x + "&condition=" + FixCrit(c)
}
_, body, err := t.Get(x)
//The API does not return valid JSON for getCount.sjs.
//The body is ... | [
-0.2392614185810089,
0.1872747391462326,
0.6485230326652527,
0.2759115993976593,
-0.7462698817253113,
-0.3158199191093445,
0.025949405506253242,
-0.6796404123306274,
-1.023424506187439,
1.1692155599594116,
-0.5047397613525391,
0.023248618468642235,
0.2191658318042755,
0.28082984685897827,
... |
func Credentials(p string) (CredData, error) {
var c CredData
raw, err := ioutil.ReadFile(p)
if err != nil {
return c, err
}
err = yaml.Unmarshal(raw, &c)
if err != nil {
log.Printf("Credentials: %+v\n", err)
}
return c, err
} | [
0.21380777657032013,
-0.5655443072319031,
0.5894663333892822,
-0.512212872505188,
-0.5303249955177307,
0.8986502885818481,
-0.5536529421806335,
0.6632999181747437,
-0.2430010288953781,
-0.1790115237236023,
-0.10321831703186035,
0.3448740541934967,
-0.20181673765182495,
-0.24563999474048615... |
func (t *Table) Delete(key string, target interface{}) error {
u := "https://%s/delete?json=true&object=%s&key=%s"
x := fmt.Sprintf(u, t.Host, t.Name, key)
resp, body, err := t.Get(x)
if err == nil {
if resp.StatusCode != 200 {
return errors.New(resp.Status)
}
err = json.Unmarshal(body, target)
}
return ... | [
-1.2379448413848877,
0.19224777817726135,
0.9047572612762451,
0.32889294624328613,
-0.21646495163440704,
-0.125334233045578,
-0.8782944679260254,
-0.3158726692199707,
-0.8000907301902771,
1.5435820817947388,
-0.1062745451927185,
0.6438069939613342,
-0.3532092571258545,
-0.12625429034233093... |
func (t *Table) Describe() (f FieldList, err error) {
p := "https://%s/api/describe2.sjs?json&object=%s"
x := fmt.Sprintf(p, t.Host, t.Name)
_, body, err := t.Get(x)
if err != nil {
return f, err
}
err = json.Unmarshal(body, &f)
return f, err
} | [
-1.0937750339508057,
0.795685887336731,
0.6808121800422668,
-0.03885957971215248,
-0.46078169345855713,
-1.0744818449020386,
-1.2293249368667603,
-0.27771639823913574,
-0.48497626185417175,
0.7444387674331665,
-1.5707677602767944,
0.6956202983856201,
-0.36245760321617126,
-0.10747345536947... |
func (a *API) Get(u string) (*http.Response, []byte, error) {
var body []byte
var resp *http.Response
if a.Verbose {
fmt.Printf("Get: %v\n", u)
}
req, err := http.NewRequest("GET", u, nil)
if err == nil {
// Salsa's API needs these cookies to verify authentication.
for _, c := range a.Cookies {
req.AddCo... | [
-0.8196189403533936,
-0.3528476655483246,
0.9131615161895752,
0.050039492547512054,
-0.061348866671323776,
-0.5516464114189148,
-0.6457065343856812,
-0.14066487550735474,
0.3579820394515991,
-0.31833723187446594,
-0.4511276185512543,
0.7973994016647339,
-0.08187909424304962,
-0.02937676571... |
func (t *Table) LeftJoinRaw(offset int32, count int, crit string) ([]byte, error) {
p := "https://%s/api/getLeftJoin.sjs?json&object=%s&limit=%d,%d"
x := fmt.Sprintf(p, t.Host, t.Name, offset, count)
if len(crit) != 0 {
x = x + "&condition=" + FixCrit(crit)
}
_, body, err := t.Get(x)
return body, err
} | [
-0.34092772006988525,
0.18980033695697784,
0.7541886568069458,
-0.3085397481918335,
-1.3757442235946655,
0.7140138745307922,
-1.2751442193984985,
0.17785288393497467,
-0.47628891468048096,
-0.2758244276046753,
-0.01071798987686634,
0.24345608055591583,
-0.90460205078125,
0.2358374595642089... |
func (t *Table) LeftJoin(offset int32, count int, crit string, target interface{}) error {
body, err := t.LeftJoinRaw(offset, count, crit)
if err == nil {
err = json.Unmarshal(body, &target)
}
return err
} | [
-0.2052135318517685,
-0.2434195578098297,
0.36444997787475586,
-0.3583740293979645,
-0.38077184557914734,
0.5813830494880676,
-1.2744308710098267,
0.22420956194400787,
-1.0196298360824585,
0.4114382266998291,
-0.3993825316429138,
0.5314079523086548,
-0.6188409328460693,
0.07989427447319031... |
func (t *Table) Many(offset int32, count int, crit string, target interface{}) error {
body, err := t.ManyRaw(offset, count, crit)
if err == nil {
err = json.Unmarshal(body, &target)
}
return err
} | [
-1.3082252740859985,
0.15726035833358765,
0.8502709865570068,
-0.18684005737304688,
-0.05458419770002365,
-0.15380416810512543,
-1.4636647701263428,
-0.057630185037851334,
-1.1358834505081177,
-0.011622018180787563,
-0.14485827088356018,
-0.06849817931652069,
0.9579449892044067,
0.38160794... |
func (t *Table) ManyTagged(offset int32, count int, crit string, tag string, target interface{}) error {
body, err := t.ManyRawTagged(offset, count, crit, tag)
if err == nil {
err = json.Unmarshal(body, &target)
}
return err
} | [
-0.8459154963493347,
-0.16362090408802032,
0.732296347618103,
0.11865979433059692,
0.2715011239051819,
-0.5371381640434265,
-1.389146327972412,
-0.07435956597328186,
-0.8877270221710205,
0.2793117165565491,
-0.9900972247123718,
0.06591153889894485,
0.571754515171051,
1.1724358797073364,
... |
func (t *Table) ManyRawTagged(offset int32, count int, crit string, tag string) ([]byte, error) {
p := "https://%s/api/getTaggedObjects.sjs?json&object=%s&tag=%s&limit=%d,%d"
x := fmt.Sprintf(p, t.Host, t.Name, tag, offset, count)
if len(crit) != 0 {
x = x + "&condition=" + FixCrit(crit)
}
_, body, err := t.Get(... | [
-0.6587058901786804,
0.058652639389038086,
0.9888870120048523,
-0.5073516368865967,
-0.5509299039840698,
-0.20516559481620789,
-1.250191569328308,
0.12243448942899704,
-0.8072254061698914,
0.12600621581077576,
-1.1022140979766846,
0.5528630614280701,
0.128433495759964,
0.8002120852470398,
... |
func (t *Table) ManyRaw(offset int32, count int, crit string) ([]byte, error) {
p := "https://%s/api/getObjects.sjs?json&object=%s&limit=%d,%d"
x := fmt.Sprintf(p, t.Host, t.Name, offset, count)
if len(crit) != 0 {
x = x + "&condition=" + FixCrit(crit)
}
_, body, err := t.Get(x)
return body, err
} | [
-0.9610456824302673,
0.40708163380622864,
1.0317721366882324,
-0.15432347357273102,
-1.0395557880401611,
0.17118094861507416,
-1.5877057313919067,
0.07864843308925629,
-0.4873127043247223,
-0.40637198090553284,
-0.3004772961139679,
0.5691072940826416,
0.5503796935081482,
0.5316920280456543... |
func (t *Table) One(key string, target interface{}) error {
body, err := t.OneRaw(key)
if err == nil {
err = json.Unmarshal(body, target)
}
return err
} | [
-1.9793485403060913,
0.5448590517044067,
0.7997836470603943,
0.27572235465049744,
-0.0004646660527214408,
-0.14953011274337769,
-0.7224006652832031,
0.5135353207588196,
-1.2781931161880493,
0.9320901036262512,
-0.12202192097902298,
0.24145688116550446,
0.4704175591468811,
-0.12877759337425... |
func (t *Table) OneRaw(key string) ([]byte, error) {
p := "https://%s/api/getObject.sjs?json&object=%s&key=%s"
x := fmt.Sprintf(p, t.Host, t.Name, key)
resp, body, err := t.Get(x)
if err == nil {
if resp.StatusCode != 200 {
return body, errors.New(resp.Status)
}
}
return body, err
} | [
-1.2198930978775024,
0.6956419348716736,
1.278546690940857,
-0.3582119047641754,
-1.7347662448883057,
-0.5573233962059021,
-0.878961443901062,
-0.6856575608253479,
0.08004007488489151,
0.6005077958106995,
-0.19302314519882202,
0.7587766647338867,
0.702037513256073,
0.2735395133495331,
0.... |
func (t *Table) Save(key string, s string) ([]byte, error) {
p := fmt.Sprintf("&object=%s&key=%s&%s", t.Name, key, s)
return t.SaveBulk(p)
} | [
-1.0712778568267822,
0.10949159413576126,
0.40625783801078796,
0.21047532558441162,
-0.6504948735237122,
-0.829433798789978,
-0.8003257513046265,
-0.45622721314430237,
-1.0607401132583618,
1.6095234155654907,
-1.5612074136734009,
-0.04672595113515854,
-0.3211483955383301,
0.299504369497299... |
func (t *Table) SaveBulk(s string) ([]byte, error) {
u := "https://%s/save"
x := fmt.Sprintf(u, t.Host)
w := bytes.NewBufferString("?json")
_, _ = w.WriteString(s)
b := bytes.NewReader(w.Bytes())
//log.Printf("SaveBulk: writing %s\n", w.String())
req, err := http.NewRequest("POST", x, b)
if err != nil {
retu... | [
-1.48097825050354,
0.8880041241645813,
1.024493932723999,
0.5456827282905579,
0.2147153615951538,
-0.8782992959022522,
-0.8928306102752686,
-0.733906626701355,
-0.15946383774280548,
0.10300644487142563,
-1.6385284662246704,
0.27716484665870667,
-0.3334335684776306,
0.44004830718040466,
-... |
func YAMLAuth(f string) (*API, error) {
a := NewAPI()
c, err := Credentials(f)
if err == nil {
err = a.Authenticate(c)
}
return a, err
} | [
-0.17022742331027985,
-0.7734974026679993,
0.4228656589984894,
0.4624330699443817,
-0.9046880602836609,
-0.2818830907344818,
0.15690107643604279,
0.793393611907959,
0.402736634016037,
-0.02075962722301483,
-0.7292596697807312,
0.6024218797683716,
0.24652987718582153,
0.11510525643825531,
... |
func (c *CPU) LDVXB(opcode uint16) {
x := uint8((opcode & 0x0F00) >> 8)
c.V[x] = uint8((opcode & 0x00FF))
} | [
0.5835555195808411,
0.5975560545921326,
0.6785308718681335,
-0.9393495917320251,
0.15754495561122894,
0.3947078287601471,
-0.9670937657356262,
0.19648833572864532,
1.0819251537322998,
0.5393320918083191,
-0.7063037157058716,
1.1046940088272095,
-0.2134532630443573,
0.0031081505585461855,
... |
func NewDashCastController(client primitives.Client, sourceID, destinationID string) *DashCastController {
return &DashCastController{
channel: client.NewChannel(sourceID, destinationID, dashcastControllerNamespace),
}
} | [
0.058454595506191254,
-0.24700510501861572,
0.3288101553916931,
-0.8334982991218567,
-0.6632462739944458,
-0.20780199766159058,
-0.374981164932251,
-0.20335707068443298,
0.07538388669490814,
-0.405943900346756,
-0.5010567307472229,
1.0897167921066284,
0.8344987034797668,
0.6679070591926575... |
func (d *DashCastController) Load(url string, reloadTime time.Duration, forceLaunch bool) error {
reload := !(forceLaunch || reloadTime == 0)
if reload {
reloadTime = 0
}
err := d.channel.Send(&dashcast.LoadCommand{
URL: url, Force: forceLaunch, Reload: reload, ReloadTime: int64(reloadTime)})
if err != nil {
... | [
-1.3780043125152588,
0.29637446999549866,
0.5047744512557983,
0.1586306393146515,
0.33103147149086,
-0.13387930393218994,
0.5214939117431641,
-0.02868192456662655,
0.57265704870224,
0.05907314270734787,
-0.12973955273628235,
1.144594430923462,
-0.9657087326049805,
0.29688358306884766,
0.... |
func PortStatInit(unit int) error {
if err := opennsl.StatInit(unit); err != nil {
log.Errorf("Stat init error. %s", err)
return err
}
log.Infof("Stat init ok.")
return nil
} | [
0.42427632212638855,
-0.6411488652229309,
0.5479620695114136,
-0.9556519985198975,
0.334516704082489,
0.7743695378303528,
0.6383306384086609,
-0.5101277232170105,
0.5272742509841919,
-0.30276691913604736,
-0.7172120213508606,
0.4422275424003601,
-0.10853733867406845,
-0.19323064386844635,
... |
func NewPortStats(names []string) PortStats {
statVals := PortStats{}
for _, name := range names {
statVal, err := opennsl.ParseStatVal(name)
if err != nil {
log.Errorf("ParsePortStats error. %s", err)
} else {
statVals = append(statVals, statVal)
}
}
return statVals
} | [
-0.16271808743476868,
-0.08796782046556473,
0.36717262864112854,
-0.924958348274231,
0.05598635971546173,
-0.10735303163528442,
-0.8148764371871948,
-1.1408966779708862,
-0.020671602338552475,
-0.2807638347148895,
-0.14018495380878448,
-0.18976080417633057,
0.1573380082845688,
0.7257249355... |
func (p PortStats) Get(unit int, port opennsl.Port) (map[string]uint64, error) {
values, err := opennsl.StatValMultiGet(unit, opennsl.Port(port), p...)
if err != nil {
return nil, err
}
stats := map[string]uint64{}
for index, statVal := range p {
stats[statVal.String()] = values[index]
}
return stats, nil
... | [
-0.6180485486984253,
-0.10615747421979904,
0.5619167685508728,
-1.1847511529922485,
0.40564000606536865,
0.03658223897218704,
-0.6496516466140747,
-0.9632692337036133,
-0.2538345754146576,
-0.4232746958732605,
0.09545168280601501,
0.5535098314285278,
0.35183101892471313,
-0.118293292820453... |
func (p PortStats) GetAll(unit int, ports []opennsl.Port) ([]map[string]uint64, error) {
statsList := make([]map[string]uint64, len(ports))
for index, port := range ports {
stats, err := p.Get(unit, port)
if err != nil {
return nil, err
}
statsList[index] = stats
}
return statsList, nil
} | [
0.273776113986969,
-0.04475277662277222,
0.5632506608963013,
0.174270361661911,
0.9080435633659363,
0.6666229963302612,
-0.4712352454662323,
-0.8157024383544922,
0.38691699504852295,
-0.31035712361335754,
0.25978049635887146,
0.782175600528717,
0.10011549293994904,
0.5363074541091919,
-0... |
func (o *V2ReportMonitoredOperatorStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewV2ReportMonitoredOperatorStatusOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return n... | [
-0.27514463663101196,
-0.5212608575820923,
0.7247270345687866,
0.18321920931339264,
-0.2207683026790619,
-0.894515872001648,
0.32031360268592834,
-0.27058184146881104,
0.3508472740650177,
0.33369937539100647,
0.3642250895500183,
-0.3079063594341278,
-1.0554448366165161,
0.44173693656921387... |
func NewV2ReportMonitoredOperatorStatusOK() *V2ReportMonitoredOperatorStatusOK {
return &V2ReportMonitoredOperatorStatusOK{}
} | [
-0.7409793734550476,
0.05180151388049126,
0.2803996503353119,
0.6506743431091309,
-0.4943026900291443,
-0.30795592069625854,
1.1348155736923218,
0.6331219673156738,
-0.5870487689971924,
-0.35224759578704834,
-0.20201843976974487,
0.25133880972862244,
0.11709721386432648,
0.2055416405200958... |
func (o *V2ReportMonitoredOperatorStatusOK) IsSuccess() bool {
return true
} | [
-0.3861708343029022,
0.4421861171722412,
0.4519495368003845,
0.5361464619636536,
-0.2424255609512329,
-0.09396135061979294,
0.18566691875457764,
0.7512141466140747,
-0.0034001353196799755,
0.15069496631622314,
-0.4320853054523468,
-0.059291087090969086,
-0.21786105632781982,
0.217383623123... |
func (o *V2ReportMonitoredOperatorStatusOK) IsRedirect() bool {
return false
} | [
-0.5519133806228638,
0.3970286548137665,
0.4375794231891632,
0.5667825937271118,
-0.2794129550457001,
-0.013565550558269024,
0.6590906977653503,
0.113067127764225,
0.6720826625823975,
-0.282300740480423,
0.09334748238325119,
0.03983636200428009,
-0.8447594046592712,
0.315199613571167,
-1... |
func (o *V2ReportMonitoredOperatorStatusOK) IsCode(code int) bool {
return code == 200
} | [
-0.7905729413032532,
0.07871916890144348,
0.34780341386795044,
0.04027007147669792,
0.02917374297976494,
-0.31235939264297485,
-0.06289872527122498,
0.3707145154476166,
0.5137035846710205,
0.38403621315956116,
-0.022576365619897842,
-0.1280808299779892,
-0.6341798901557922,
0.5711649656295... |
func NewV2ReportMonitoredOperatorStatusBadRequest() *V2ReportMonitoredOperatorStatusBadRequest {
return &V2ReportMonitoredOperatorStatusBadRequest{}
} | [
-1.3622686862945557,
0.1690431833267212,
0.4859894812107086,
0.7723723649978638,
-0.5492744445800781,
-0.4108186662197113,
-0.07537383586168289,
0.4929963946342468,
-0.3503326177597046,
-0.5476410388946533,
-0.10731969773769379,
0.5904003977775574,
0.15243427455425262,
0.842816948890686,
... |
func (o *V2ReportMonitoredOperatorStatusBadRequest) IsSuccess() bool {
return false
} | [
-1.156355857849121,
0.16226479411125183,
0.4510648250579834,
0.9636349081993103,
0.21194137632846832,
0.06180555373430252,
-0.5522854328155518,
0.43410423398017883,
-0.05359375476837158,
-0.3124992251396179,
-0.17541082203388214,
0.20843738317489624,
-0.551242470741272,
0.743974506855011,
... |
func (o *V2ReportMonitoredOperatorStatusBadRequest) IsRedirect() bool {
return false
} | [
-1.1857402324676514,
0.06725089997053146,
0.49115699529647827,
0.8432733416557312,
0.049895428121089935,
0.025788288563489914,
-0.12764567136764526,
-0.05369994789361954,
0.6293807625770569,
-0.7280101776123047,
0.30888062715530396,
0.303933709859848,
-0.8790650963783264,
0.574281513690948... |
func (o *V2ReportMonitoredOperatorStatusBadRequest) IsCode(code int) bool {
return code == 400
} | [
-1.288970947265625,
0.14437095820903778,
0.4740045368671417,
0.39074885845184326,
0.4782058596611023,
-0.26670825481414795,
-0.8663926124572754,
0.3066306710243225,
0.42367666959762573,
-0.15179534256458282,
-0.05182880535721779,
0.4617730975151062,
-0.9685943722724915,
0.8954007029533386,... |
func NewV2ReportMonitoredOperatorStatusUnauthorized() *V2ReportMonitoredOperatorStatusUnauthorized {
return &V2ReportMonitoredOperatorStatusUnauthorized{}
} | [
-0.6223701238632202,
-0.36378347873687744,
0.5945045948028564,
0.40621286630630493,
-1.0962027311325073,
-0.22340242564678192,
0.3359064757823944,
0.9164360761642456,
-0.37958699464797974,
-0.8841426372528076,
-0.12683865427970886,
1.099883794784546,
0.08851712197065353,
0.0055894725956022... |
func (o *V2ReportMonitoredOperatorStatusUnauthorized) IsSuccess() bool {
return false
} | [
-0.49037450551986694,
0.34212836623191833,
0.40613633394241333,
0.8092607855796814,
-0.552125096321106,
0.08745364099740982,
-0.1638219654560089,
1.0376380681991577,
0.25279879570007324,
-0.2996726930141449,
-0.16422618925571442,
0.7675448656082153,
-0.2867143750190735,
-0.1060718223452568... |
func (o *V2ReportMonitoredOperatorStatusUnauthorized) IsRedirect() bool {
return false
} | [
-0.3640243709087372,
0.25517967343330383,
0.42335450649261475,
0.7959848046302795,
-0.5859034657478333,
0.016436444595456123,
0.2467968761920929,
0.7114990949630737,
0.8594516515731812,
-0.8077839016914368,
0.41354113817214966,
0.8352163434028625,
-0.7821629047393799,
-0.12993992865085602,... |
func (o *V2ReportMonitoredOperatorStatusUnauthorized) IsCode(code int) bool {
return code == 401
} | [
-0.9063020348548889,
0.020359834656119347,
0.42914995551109314,
0.19402247667312622,
-0.32521945238113403,
-0.18128617107868195,
-0.22829170525074005,
0.9449686408042908,
0.9226072430610657,
-0.27743634581565857,
0.2308809757232666,
0.5859242677688599,
-0.6085557341575623,
0.18463301658630... |
func NewV2ReportMonitoredOperatorStatusForbidden() *V2ReportMonitoredOperatorStatusForbidden {
return &V2ReportMonitoredOperatorStatusForbidden{}
} | [
0.030321691185235977,
0.5219609141349792,
0.437136173248291,
0.6321449279785156,
-0.8989871740341187,
0.3255489766597748,
0.6494026780128479,
-0.31238481402397156,
-0.5292412638664246,
-0.67116379737854,
0.05966658145189285,
0.7967612147331238,
0.03996361792087555,
-0.16413193941116333,
... |
func (o *V2ReportMonitoredOperatorStatusForbidden) IsSuccess() bool {
return false
} | [
0.054306760430336,
0.8200887441635132,
0.43574216961860657,
0.9124255180358887,
-0.370809406042099,
0.44164374470710754,
0.28859028220176697,
-0.161741241812706,
0.05661073327064514,
-0.1346363127231598,
-0.0024574026465415955,
0.572385311126709,
-0.6328664422035217,
-0.1984812468290329,
... |
func (o *V2ReportMonitoredOperatorStatusForbidden) IsRedirect() bool {
return false
} | [
0.040349286049604416,
0.787630558013916,
0.3652943968772888,
0.9303598403930664,
-0.49462229013442993,
0.49964040517807007,
0.6447923183441162,
-0.3873818516731262,
0.668297529220581,
-0.5741478800773621,
0.48340505361557007,
0.7786509394645691,
-0.9603466391563416,
-0.05607074499130249,
... |
func (o *V2ReportMonitoredOperatorStatusForbidden) IsCode(code int) bool {
return code == 403
} | [
-0.09563633054494858,
0.6932141780853271,
0.3446383476257324,
0.30880671739578247,
-0.015295293182134628,
0.1788739413022995,
0.3993205726146698,
-0.2503582239151001,
0.4595796763896942,
0.05937005579471588,
0.39094528555870056,
0.6682297587394714,
-0.859885036945343,
0.15392549335956573,
... |
func NewV2ReportMonitoredOperatorStatusNotFound() *V2ReportMonitoredOperatorStatusNotFound {
return &V2ReportMonitoredOperatorStatusNotFound{}
} | [
-0.1504203826189041,
-0.5112290382385254,
0.19339875876903534,
0.15876778960227966,
-0.23996640741825104,
0.21292300522327423,
0.8130561113357544,
0.4534243941307068,
0.046360746026039124,
-0.4586198627948761,
-0.11077896505594254,
0.19128738343715668,
0.13778142631053925,
0.48740196228027... |
func (o *V2ReportMonitoredOperatorStatusNotFound) IsSuccess() bool {
return false
} | [
-0.3159995675086975,
-0.12799960374832153,
0.15936952829360962,
0.4772518277168274,
0.159866064786911,
0.257953941822052,
0.3018082082271576,
0.48314496874809265,
0.3851490914821625,
-0.08475518971681595,
-0.37147587537765503,
0.045259252190589905,
-0.3224915564060211,
0.4376818537712097,
... |
func (o *V2ReportMonitoredOperatorStatusNotFound) IsRedirect() bool {
return false
} | [
-0.46353089809417725,
-0.1696721315383911,
0.1797666698694229,
0.3353169858455658,
0.1740873157978058,
0.26752960681915283,
0.6415936946868896,
0.05730016157031059,
1.1536312103271484,
-0.7100471258163452,
0.12749546766281128,
0.2167273759841919,
-0.8557016253471375,
0.5232425928115845,
... |
func (o *V2ReportMonitoredOperatorStatusNotFound) IsCode(code int) bool {
return code == 404
} | [
-0.5652397274971008,
-0.0886351466178894,
0.16538292169570923,
0.05731162428855896,
0.5952686071395874,
0.27226191759109497,
0.45938754081726074,
0.5473878383636475,
0.9879699945449829,
-0.030573586001992226,
-0.08766568452119827,
0.032979566603899,
-0.730861246585846,
0.7121667265892029,
... |
func NewV2ReportMonitoredOperatorStatusMethodNotAllowed() *V2ReportMonitoredOperatorStatusMethodNotAllowed {
return &V2ReportMonitoredOperatorStatusMethodNotAllowed{}
} | [
-0.1207856759428978,
0.7036887407302856,
0.39616820216178894,
0.8524945378303528,
-1.4046590328216553,
-0.15822412073612213,
0.9160358905792236,
0.07057854533195496,
-0.6339209675788879,
0.2413201630115509,
0.9691091179847717,
0.29624104499816895,
-0.24159255623817444,
0.18609990179538727,... |
func (o *V2ReportMonitoredOperatorStatusMethodNotAllowed) IsSuccess() bool {
return false
} | [
-0.26448577642440796,
0.8741528987884521,
0.37080836296081543,
0.9589268565177917,
-0.658667266368866,
0.18837709724903107,
0.23107528686523438,
-0.0831695944070816,
-0.1833157241344452,
0.3707938492298126,
0.5449807643890381,
-0.054939042776823044,
-0.8041163682937622,
0.27166852355003357... |
func (o *V2ReportMonitoredOperatorStatusMethodNotAllowed) IsRedirect() bool {
return false
} | [
-0.3011018633842468,
0.9202112555503845,
0.35993096232414246,
0.8684186339378357,
-0.7289441823959351,
0.22645460069179535,
0.6660202741622925,
-0.41020214557647705,
0.42452019453048706,
-0.11658681929111481,
1.1176092624664307,
0.2167414277791977,
-1.1842455863952637,
0.25771644711494446,... |
func (o *V2ReportMonitoredOperatorStatusMethodNotAllowed) IsCode(code int) bool {
return code == 405
} | [
-0.5424217581748962,
0.8202515840530396,
0.2719196081161499,
0.25107377767562866,
-0.41309016942977905,
-0.14109064638614655,
0.6832860112190247,
-0.4992370009422302,
0.1727122664451599,
0.6844866275787354,
0.8018832802772522,
-0.0705876424908638,
-1.2204701900482178,
0.6003586649894714,
... |
func NewV2ReportMonitoredOperatorStatusConflict() *V2ReportMonitoredOperatorStatusConflict {
return &V2ReportMonitoredOperatorStatusConflict{}
} | [
-0.5126043558120728,
-0.12700848281383514,
0.5004791617393494,
0.7732231616973877,
-0.2942517101764679,
0.03052523173391819,
0.6266949772834778,
-0.05905122682452202,
-0.5754888653755188,
-0.3304743468761444,
0.26550406217575073,
-0.04587642848491669,
-0.6919542551040649,
0.026634708046913... |
func (o *V2ReportMonitoredOperatorStatusConflict) IsSuccess() bool {
return false
} | [
-0.3144170939922333,
0.18728744983673096,
0.4821922481060028,
0.7210586071014404,
-0.06842174381017685,
0.14113634824752808,
0.22614914178848267,
0.34769320487976074,
0.008085104636847973,
0.0952494665980339,
0.034478526562452316,
-0.5222006440162659,
-0.8452510237693787,
-0.34013262391090... |
func (o *V2ReportMonitoredOperatorStatusConflict) IsRedirect() bool {
return false
} | [
-0.44900813698768616,
0.16572962701320648,
0.4880455732345581,
0.7497816681861877,
0.17766797542572021,
0.10520768910646439,
0.6058310270309448,
-0.29912614822387695,
0.7491737604141235,
-0.41557323932647705,
0.44916877150535583,
-0.32045069336891174,
-1.3952834606170654,
-0.21500813961029... |
func (o *V2ReportMonitoredOperatorStatusConflict) IsCode(code int) bool {
return code == 409
} | [
-0.6300514340400696,
0.32441914081573486,
0.4343886971473694,
0.17153429985046387,
0.74665367603302,
-0.16218385100364685,
0.3852536380290985,
-0.1962381899356842,
0.6174050569534302,
0.44658926129341125,
0.4466201066970825,
-0.4224020540714264,
-1.251684546470642,
0.053095605224370956,
... |
func (o *V2ReportMonitoredOperatorStatusInternalServerError) IsSuccess() bool {
return false
} | [
-0.8840869069099426,
-0.0015979839954525232,
0.467814564704895,
-0.040986280888319016,
-0.5456562042236328,
0.17998702824115753,
0.25204023718833923,
0.6581165790557861,
0.05199737101793289,
-0.10095042735338211,
-0.12491939961910248,
0.40213409066200256,
-1.098106861114502,
0.551104784011... |
func (o *V2ReportMonitoredOperatorStatusInternalServerError) IsRedirect() bool {
return false
} | [
-0.9596697688102722,
-0.0951441153883934,
0.4814850389957428,
-0.15019327402114868,
-0.6161139011383057,
0.2841300368309021,
0.5018003582954407,
0.23323938250541687,
0.7489395141601562,
-0.5963093638420105,
0.3614725172519684,
0.5273334980010986,
-1.5062767267227173,
0.4370391368865967,
... |
func (o *V2ReportMonitoredOperatorStatusInternalServerError) IsCode(code int) bool {
return code == 500
} | [
-1.1904553174972534,
-0.1461210697889328,
0.4267292022705078,
-0.39945706725120544,
-0.25665658712387085,
0.041994400322437286,
0.17640277743339539,
0.6643641591072083,
0.8131533861160278,
0.3084387183189392,
0.08337335288524628,
0.5103946924209595,
-1.6927123069763184,
1.0208284854888916,... |
func NewV2ReportMonitoredOperatorStatusServiceUnavailable() *V2ReportMonitoredOperatorStatusServiceUnavailable {
return &V2ReportMonitoredOperatorStatusServiceUnavailable{}
} | [
-1.404892921447754,
-0.16295456886291504,
0.7464126348495483,
0.22381120920181274,
-0.06924352049827576,
-0.09130789339542389,
0.4954110383987427,
0.9072656631469727,
-0.4294988512992859,
-0.3708721101284027,
0.07746819406747818,
0.5901798009872437,
0.26328858733177185,
0.3179384171962738,... |
func (o *V2ReportMonitoredOperatorStatusServiceUnavailable) IsSuccess() bool {
return false
} | [
-0.8922002911567688,
0.23863784968852997,
0.4979226291179657,
0.38124606013298035,
-0.02352319471538067,
0.1842849850654602,
0.02731798030436039,
0.8166638612747192,
0.19787092506885529,
0.18961600959300995,
-0.06617138534784317,
0.03380456194281578,
-0.46220076084136963,
0.148020967841148... |
func (o *V2ReportMonitoredOperatorStatusServiceUnavailable) IsRedirect() bool {
return false
} | [
-0.9821934103965759,
0.19335885345935822,
0.43947070837020874,
0.31769418716430664,
-0.025178052484989166,
0.3896935284137726,
0.3165809214115143,
0.43305420875549316,
0.7976964116096497,
-0.3572171628475189,
0.3865002691745758,
0.10917310416698456,
-0.8663461804389954,
0.2671405076980591,... |
func (o *V2ReportMonitoredOperatorStatusServiceUnavailable) IsCode(code int) bool {
return code == 503
} | [
-1.4102405309677124,
0.2368476837873459,
0.34361207485198975,
-0.39074477553367615,
0.15801182389259338,
-0.0007943302625790238,
-0.0174753125756979,
0.585205614566803,
0.6843485236167908,
0.31532278656959534,
0.123399518430233,
0.058421045541763306,
-1.073370337486267,
0.6794997453689575,... |
func NewFindInSet(e1, e2 sql.Expression) sql.Expression {
return &FindInSet{
expression.BinaryExpression{
Left: e1,
Right: e2,
},
}
} | [
-0.5063266754150391,
-0.8157919645309448,
0.49365144968032837,
0.18647891283035278,
-1.655131459236145,
-0.3413308262825012,
-0.10735641419887543,
-0.6290515065193176,
-0.9309755563735962,
0.2902429699897766,
0.5525047183036804,
0.7556671500205994,
-0.5975403189659119,
-0.00897993613034486... |
func (f *FindInSet) Type() sql.Type { return types.Int64 } | [
-0.9023271203041077,
0.5662041306495667,
0.34124913811683655,
0.2500223219394684,
0.3197520971298218,
-0.05601499602198601,
1.019946575164795,
-1.4057223796844482,
0.13935911655426025,
0.09289231151342392,
0.7683822512626648,
0.10238253325223923,
-0.8790234923362732,
0.8803803324699402,
... |
func (*FindInSet) CollationCoercibility(ctx *sql.Context) (collation sql.CollationID, coercibility byte) {
return ctx.GetCollation(), 5
} | [
-0.21854256093502045,
-0.5214181542396545,
0.5026936531066895,
-0.06909051537513733,
-0.10460293292999268,
-0.3466203212738037,
1.0979174375534058,
-0.4532563388347626,
-0.07879911363124847,
0.8828675150871277,
0.015285469591617584,
-0.2119552344083786,
-0.521045446395874,
0.30437776446342... |
func (f *FindInSet) WithChildren(children ...sql.Expression) (sql.Expression, error) {
if len(children) != 2 {
return nil, sql.ErrInvalidChildrenNumber.New(f, len(children), 2)
}
return NewFindInSet(children[0], children[1]), nil
} | [
-0.3996065855026245,
0.05261940881609917,
0.4692201018333435,
0.04185766354203224,
-0.6077548861503601,
-0.5789489150047302,
0.7234662175178528,
-0.6979461908340454,
-1.0914058685302734,
-0.22369801998138428,
0.21550258994102478,
-0.3805783987045288,
-0.10071363300085068,
-0.47900244593620... |
func (f *FindInSet) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) {
if f.Left == nil || f.Right == nil {
return nil, nil
}
left, err := f.Left.Eval(ctx, row)
if err != nil {
return nil, err
}
right, err := f.Right.Eval(ctx, row)
if err != nil {
return nil, err
}
if left == nil || right == n... | [
-0.4032007157802582,
0.17754341661930084,
0.9446200728416443,
-0.7191155552864075,
0.07278744131326675,
-0.58836430311203,
0.0022213254123926163,
-0.5441567897796631,
-0.1095435693860054,
0.8355357050895691,
-0.01935563050210476,
0.18885137140750885,
0.08563549816608429,
0.37386354804039,
... |
func (su *SkillUpdate) Where(ps ...predicate.Skill) *SkillUpdate {
su.mutation.Where(ps...)
return su
} | [
0.5301176905632019,
-0.7472600340843201,
0.18702495098114014,
0.8019712567329407,
-0.5969346761703491,
0.5773993730545044,
0.24635417759418488,
-0.5413199067115784,
-0.1987527459859848,
-0.7431257963180542,
0.2534875273704529,
0.427325040102005,
0.6608437895774841,
-0.7238593697547913,
-... |
func (su *SkillUpdate) SetUpdatedAt(t time.Time) *SkillUpdate {
su.mutation.SetUpdatedAt(t)
return su
} | [
-0.3962232768535614,
-0.6202705502510071,
0.5757994055747986,
-0.4260624349117279,
-0.27768537402153015,
1.1923049688339233,
-0.21206261217594147,
0.20230083167552948,
0.44034045934677124,
-0.7647659182548523,
-0.6508452892303467,
-0.15841086208820343,
1.2532095909118652,
0.232727497816085... |
func (su *SkillUpdate) SetNillableUpdatedAt(t *time.Time) *SkillUpdate {
if t != nil {
su.SetUpdatedAt(*t)
}
return su
} | [
-0.1601158231496811,
-0.28892961144447327,
0.4229665696620941,
-0.11573012918233871,
-1.0776174068450928,
0.5428684949874878,
-0.7867811322212219,
-0.3232334852218628,
0.156600221991539,
-0.4756571054458618,
-0.40752464532852173,
-0.5648889541625977,
0.2329186201095581,
0.08029895275831223... |
func (su *SkillUpdate) SetName(s string) *SkillUpdate {
su.mutation.SetName(s)
return su
} | [
-0.5852532982826233,
-0.04063151776790619,
0.17243731021881104,
1.3459017276763916,
-0.7412779927253723,
0.011977385729551315,
0.3681638836860657,
0.5724543333053589,
0.5405521392822266,
0.3017471134662628,
-1.3087985515594482,
-0.7965759038925171,
0.6000693440437317,
-0.18538373708724976,... |
func (su *SkillUpdate) SetLogoURL(s string) *SkillUpdate {
su.mutation.SetLogoURL(s)
return su
} | [
-0.4100230634212494,
0.08544579893350601,
0.016011176630854607,
1.4073374271392822,
-0.40021294355392456,
0.3894420266151428,
0.5038642883300781,
1.1128374338150024,
0.06790129095315933,
-0.07915408164262772,
-1.400404453277588,
-0.23810699582099915,
0.4586440622806549,
-0.5872127413749695... |
func (su *SkillUpdate) SetNillableLogoURL(s *string) *SkillUpdate {
if s != nil {
su.SetLogoURL(*s)
}
return su
} | [
-0.13610753417015076,
0.2483268678188324,
-0.032330334186553955,
0.8349375128746033,
-1.0761897563934326,
-0.026722725480794907,
-0.06289685517549515,
0.5829038023948669,
0.014630317687988281,
-0.1377093344926834,
-0.8475207090377808,
-0.3251101076602936,
-0.25917208194732666,
-0.177911594... |
func (su *SkillUpdate) AddExperienceIDs(ids ...int) *SkillUpdate {
su.mutation.AddExperienceIDs(ids...)
return su
} | [
-1.6438647508621216,
-0.06674129515886307,
0.4464934170246124,
0.8765354156494141,
-0.056822001934051514,
0.6630697250366211,
-0.18158769607543945,
0.596295177936554,
0.22173060476779938,
1.3823630809783936,
-0.19533589482307434,
-0.3139864504337311,
-0.3162839412689209,
-0.075031138956546... |
func (su *SkillUpdate) AddExperiences(w ...*WorkExperience) *SkillUpdate {
ids := make([]int, len(w))
for i := range w {
ids[i] = w[i].ID
}
return su.AddExperienceIDs(ids...)
} | [
-1.6672271490097046,
0.3018116354942322,
0.40699607133865356,
0.8341283202171326,
0.6911463737487793,
0.5869402289390564,
-0.07368344813585281,
-0.5226515531539917,
-0.09672189503908157,
0.5905162692070007,
0.6029460430145264,
-0.5603975653648376,
-0.7182954549789429,
0.722847580909729,
... |
func (su *SkillUpdate) AddJobIDs(ids ...int) *SkillUpdate {
su.mutation.AddJobIDs(ids...)
return su
} | [
-1.1224157810211182,
0.3748491108417511,
0.27169376611709595,
0.9059505462646484,
-0.43598446249961853,
0.24226173758506775,
-0.41589516401290894,
-0.10146260261535645,
-0.17487947642803192,
-0.5051618814468384,
-0.27127936482429504,
-0.29033249616622925,
-0.3180031478404999,
0.11880437284... |
func (su *SkillUpdate) AddJobs(j ...*Job) *SkillUpdate {
ids := make([]int, len(j))
for i := range j {
ids[i] = j[i].ID
}
return su.AddJobIDs(ids...)
} | [
-0.9739922285079956,
0.25008437037467957,
0.21550890803337097,
0.9156417846679688,
-0.06437941640615463,
0.13707183301448822,
-0.5096575021743774,
-0.6783421039581299,
0.029395895078778267,
-0.5719090700149536,
0.5367323160171509,
-0.5587904453277588,
-0.9587724208831787,
0.271705389022827... |
func (su *SkillUpdate) Mutation() *SkillMutation {
return su.mutation
} | [
-0.5617993474006653,
-0.8343081474304199,
0.20013827085494995,
0.7364194989204407,
-0.09842890501022339,
0.5017318725585938,
0.8066018223762512,
-0.40753284096717834,
1.1954182386398315,
-0.4342126250267029,
-0.11736740916967392,
-0.15065044164657593,
0.4077686369419098,
-0.436215758323669... |
func (su *SkillUpdate) ClearExperiences() *SkillUpdate {
su.mutation.ClearExperiences()
return su
} | [
-1.118231177330017,
0.736175000667572,
0.2155853509902954,
0.6877694129943848,
-0.6590896248817444,
0.8253164887428284,
-0.28709059953689575,
-0.2014615684747696,
0.159254789352417,
0.7087251543998718,
0.6636542081832886,
0.12962645292282104,
0.17821821570396423,
0.010125596076250076,
-0... |
func (su *SkillUpdate) RemoveExperienceIDs(ids ...int) *SkillUpdate {
su.mutation.RemoveExperienceIDs(ids...)
return su
} | [
-1.7554107904434204,
-0.5302438139915466,
0.4806657135486603,
0.7403097748756409,
-0.7429393529891968,
0.38863709568977356,
0.33553940057754517,
1.0841175317764282,
0.1212623119354248,
1.527070164680481,
-0.34586915373802185,
-0.2881687581539154,
-1.0045567750930786,
-0.21428652107715607,
... |
func (su *SkillUpdate) RemoveExperiences(w ...*WorkExperience) *SkillUpdate {
ids := make([]int, len(w))
for i := range w {
ids[i] = w[i].ID
}
return su.RemoveExperienceIDs(ids...)
} | [
-1.838408350944519,
0.059177882969379425,
0.5535926222801208,
0.7861055135726929,
-0.12107613682746887,
0.2905369997024536,
0.5032135844230652,
-0.026576483622193336,
-0.40385702252388,
0.8349105715751648,
0.1910003125667572,
-0.5610713362693787,
-1.3016365766525269,
0.5687788128852844,
... |
func (su *SkillUpdate) ClearJobs() *SkillUpdate {
su.mutation.ClearJobs()
return su
} | [
-0.1102505475282669,
0.7279996871948242,
0.028358234092593193,
0.6199479103088379,
-0.9640426635742188,
0.27408236265182495,
-0.2818874716758728,
-0.8478387594223022,
0.7450236678123474,
-0.42657387256622314,
0.6141611933708191,
-0.04379130154848099,
-0.06371398270130157,
-0.91165846586227... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.