text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (b *B) SetBytes(n int64) {} | [
-0.7005950808525085,
1.2743651866912842,
0.20370976626873016,
0.583556056022644,
0.36019381880760193,
-0.29088515043258667,
0.4999223053455353,
-0.02701442874968052,
0.03441183641552925,
-0.5947156548500061,
-0.7690579891204834,
-0.06317189335823059,
-0.8933286070823669,
1.1590971946716309... |
func (b *B) ReportAllocs() {} | [
0.1537058800458908,
-0.23444244265556335,
0.4930576682090759,
0.362967848777771,
0.1266040802001953,
0.11784323304891586,
1.5149086713790894,
0.014568019658327103,
1.6443456411361694,
-0.4097368121147156,
1.0646342039108276,
-0.0992676168680191,
-0.22741252183914185,
0.6326786279678345,
... |
func (b *B) ReportMetric(n float64, unit string) {} | [
-0.1487012356519699,
0.9166987538337708,
0.24783636629581451,
0.6148481965065002,
0.4324846863746643,
0.35794082283973694,
1.3527570962905884,
-0.6015581488609314,
-0.8798378705978394,
-0.1323353350162506,
0.2913656234741211,
-0.23485198616981506,
-1.3613337278366089,
0.1524488627910614,
... |
func (r BenchmarkResult) NsPerOp() int64 {} | [
-0.3983253836631775,
1.2936502695083618,
0.4780310094356537,
0.7791780233383179,
-1.1225545406341553,
-0.7117511034011841,
1.2111833095550537,
-0.7757561802864075,
-0.1327546387910843,
0.4187473654747009,
-0.3395402133464813,
-1.1574379205703735,
-0.9105945229530334,
0.1997842788696289,
... |
func (r BenchmarkResult) AllocsPerOp() int64 {} | [
-0.27741140127182007,
1.2793924808502197,
0.5697982311248779,
0.31031858921051025,
-0.33040228486061096,
-0.5316593050956726,
1.1550463438034058,
-0.40371429920196533,
0.36000528931617737,
0.1731918305158615,
0.5824658274650574,
-1.4738807678222656,
-0.1552727073431015,
-0.0067931851372122... |
func (r BenchmarkResult) AllocedBytesPerOp() int64 {} | [
0.18817247450351715,
1.0161148309707642,
0.47300469875335693,
0.028519663959741592,
-0.47858700156211853,
-0.10283192992210388,
1.108786702156067,
-0.44589412212371826,
0.5505473613739014,
0.41425418853759766,
0.45812860131263733,
-1.2848799228668213,
-0.6689326763153076,
-0.09553460776805... |
func (r BenchmarkResult) String() string {} | [
0.3264715373516083,
-0.10450978577136993,
0.14272303879261017,
0.04772944748401642,
-0.558529794216156,
0.6344462037086487,
1.1465555429458618,
-1.6541249752044678,
-0.5760608911514282,
-0.13004471361637115,
-0.4586038887500763,
-0.15109878778457642,
-0.8687264323234558,
0.0185456611216068... |
func (r BenchmarkResult) MemString() string {} | [
-0.22423654794692993,
0.27241820096969604,
0.27027276158332825,
-0.06467510759830475,
-0.42195478081703186,
0.611057460308075,
0.5601167678833008,
-0.9429087042808533,
0.21908515691757202,
0.04731296747922897,
0.4707065224647522,
-0.48440027236938477,
-0.5640507936477661,
-0.12015061825513... |
func RunBenchmarks(matchString func(pat, str string) (bool, error), benchmarks []InternalBenchmark) {} | [
-0.8390548229217529,
0.2254558801651001,
0.36435139179229736,
0.6732351183891296,
-0.048048995435237885,
0.011197535321116447,
1.0958212614059448,
0.7008152008056641,
-0.4256291687488556,
-0.44836118817329407,
-0.7909822463989258,
0.11595826596021652,
-0.8446831703186035,
-0.31711339950561... |
func (b *B) Run(name string, f func(b *B)) bool {} | [
-0.6127300262451172,
-0.05323522910475731,
0.4886465072631836,
0.985094428062439,
-0.4015823006629944,
0.4660637676715851,
0.24458159506320953,
0.3948197364807129,
-0.6008114218711853,
0.11753568053245544,
-1.3563085794448853,
-0.08826573193073273,
-0.7481825351715088,
-0.5879706144332886,... |
func (pb *PB) Next() bool {} | [
-0.40438640117645264,
0.06767436861991882,
0.47439366579055786,
1.439594030380249,
-0.6837064623832703,
2.0366313457489014,
0.04990781098604202,
0.11570161581039429,
0.14532607793807983,
-0.38551151752471924,
-0.6156399250030518,
-0.12493912875652313,
-1.6316170692443848,
0.551499605178833... |
func (b *B) RunParallel(body func(*PB)) {} | [
-0.43918830156326294,
0.09396128356456757,
0.6217754483222961,
0.8527082800865173,
-0.30288243293762207,
1.246502161026001,
0.29435715079307556,
0.9529778957366943,
0.5778747200965881,
-0.41422414779663086,
-0.6256676912307739,
0.9990626573562622,
-0.90455162525177,
0.01673833839595318,
... |
func Benchmark(f func(b *B)) BenchmarkResult {} | [
0.4630630612373352,
1.5470616817474365,
0.2627425789833069,
0.949861466884613,
0.9821687936782837,
-1.1915122270584106,
1.432694673538208,
0.25642549991607666,
-0.3767746388912201,
0.07140114158391953,
-0.32427462935447693,
0.022785959765315056,
0.23244202136993408,
-0.14627434313297272,
... |
func Coverage() float64 {} | [
0.29356124997138977,
-0.6178485751152039,
0.24616087973117828,
1.4721342325210571,
-0.8863389492034912,
-0.03596998751163483,
1.0840193033218384,
0.5259390473365784,
0.7527413368225098,
-0.30924129486083984,
-0.024773551151156425,
-0.7837651371955872,
0.08346633613109589,
0.459267199039459... |
func RegisterCover(c Cover) {} | [
0.29458025097846985,
-0.06930020451545715,
0.3596198558807373,
1.3818076848983765,
-0.2215871512889862,
-0.04546987637877464,
0.3599660396575928,
-0.04485169053077698,
0.39327189326286316,
-0.5878831148147583,
-1.6213016510009766,
-0.3015919327735901,
-0.19544120132923126,
1.31354951858520... |
func RunExamples(matchString func(pat, str string) (bool, error), examples []InternalExample) (ok bool) {} | [
-1.4702644348144531,
0.2633085250854492,
0.29030030965805054,
-0.11132176220417023,
-0.972008466720581,
0.23772858083248138,
0.3564135730266571,
0.32159045338630676,
-0.5542201399803162,
0.5426324009895325,
-0.49032220244407654,
0.28892016410827637,
0.1105247288942337,
-0.8022589087486267,... |
func (opts *ProxyOptions) Validate() error {
if !strings.HasPrefix(opts.RemotePrefix, "/") {
opts.RemotePrefix = "/" + opts.RemotePrefix
}
catcher := grip.NewBasicCatcher()
catcher.NewWhen(len(opts.TargetPool) == 0 && opts.FindTarget == nil, "must specify a way to resolve target host")
catcher.NewWhen(len(opts.... | [
-0.22632387280464172,
0.4456779658794403,
0.5385226607322693,
-0.13502275943756104,
1.1286351680755615,
0.10025697946548462,
0.1307397186756134,
-0.01665416732430458,
-0.6811536550521851,
-0.8772423267364502,
0.706384539604187,
-0.21745270490646362,
-0.7135751843452454,
0.6235217452049255,... |
func parseTag(raw string) (*Tag, error) {
var tag = new(Tag)
raw = strings.Replace(raw, "`", "", -1)
raw = reflect.StructTag(raw).Get("sql")
// if the tag indicates the field should
// be skipped we can exit right away.
if strings.TrimSpace(raw) == "-" {
tag.Skip = true
return tag, nil
}
// otherwise wra... | [
0.3992829918861389,
0.15224342048168182,
0.5546686053276062,
-0.5164949893951416,
-0.5472663640975952,
-0.4624529778957367,
0.1366814821958542,
0.5919297933578491,
-0.6974048614501953,
-0.6780462861061096,
-0.12119707465171814,
0.6529242396354675,
0.3741563856601715,
0.05129898712038994,
... |
func getIP(r *http.Request) string {
if ip := r.Header.Get("CF-Connecting-IP"); ip != "" {
return ip
}
if ip := r.Header.Get("X-Forwarded-For"); ip != "" {
// Trim off any others: A.B.C.D[,X.X.X.X,Y.Y.Y.Y,]
return strings.SplitN(ip, ",", 1)[0]
}
if ip, _, err := net.SplitHostPort(r.RemoteAddr); err == nil {
... | [
-0.3164724111557007,
0.3650300204753876,
0.5776760578155518,
0.23469838500022888,
-0.40966373682022095,
-0.2066362202167511,
0.1284020096063614,
-0.12152829021215439,
-0.3985247313976288,
0.003492456628009677,
0.9700430631637573,
-1.0224530696868896,
0.19052311778068542,
-0.944746613502502... |
func jsonRPCResponse(httpCode int, v interface{}) (*http.Response, error) {
body, err := json.Marshal(v)
if err != nil {
return &http.Response{
Body: ioutil.NopCloser(strings.NewReader(http.StatusText(httpCode))),
StatusCode: httpCode,
}, fmt.Errorf("failed to serialize JSON: %v", err)
}
return &htt... | [
0.0626273974776268,
-0.7306278347969055,
0.556432843208313,
-1.582147240638733,
-0.9167149066925049,
-0.455679327249527,
-0.7986003756523132,
-0.5455483198165894,
0.730491578578949,
0.9970976710319519,
-0.3750554621219635,
-0.5162909030914307,
-0.9363968372344971,
-0.06628767400979996,
0... |
func (t *myTransport) block(ctx context.Context, parsedRequests []ModifiedRequest) (int, interface{}) {
var union *blockRange
for _, parsedRequest := range parsedRequests {
ctx = gotils.With(ctx, "ip", parsedRequest.RemoteAddr)
if allowed, _ := t.AllowVisitor(parsedRequest); !allowed {
gotils.L(ctx).Info().Pri... | [
-1.3336005210876465,
0.3270305097103119,
1.2495393753051758,
0.11239367723464966,
-0.28612062335014343,
0.08387143164873123,
0.22299827635288239,
-0.9810312986373901,
-0.11045733094215393,
0.16606584191322327,
0.7608175277709961,
0.3236123025417328,
-0.595392644405365,
0.40200167894363403,... |
func (t *myTransport) parseRange(ctx context.Context, request ModifiedRequest) (r *blockRange, invalid, internal error) {
if len(request.Params) == 0 {
return nil, nil, nil
}
type filterQuery struct {
BlockHash *string `json:"blockHash"`
FromBlock *rpc.BlockNumber `json:"fromBlock"`
ToBlock *rpc.B... | [
-0.6432186961174011,
-0.8612146377563477,
1.0411052703857422,
0.081754669547081,
-0.23148731887340546,
-0.5799659490585327,
-0.025059916079044342,
-0.4627626836299896,
-0.7711812853813171,
0.10494653135538101,
0.31585022807121277,
0.114349864423275,
-0.656641960144043,
0.9313740134239197,
... |
func (l *latestBlock) update() (chan struct{}, uint64, error) {
l.mu.Lock()
if next := l.next; next != nil {
// Someone beat us to it, return their next chan.
l.mu.Unlock()
return next, 0, nil
}
next := make(chan struct{})
l.next = next
l.mu.Unlock()
var latest uint64
var err error
if l.client == nil {
... | [
-0.865591287612915,
-0.32734400033950806,
0.7337484359741211,
-0.17558544874191284,
-0.24377740919589996,
-0.7067646384239197,
-0.29361894726753235,
-0.6133603453636169,
-0.11500126868486404,
0.22934526205062866,
-0.40885892510414124,
0.13713765144348145,
-0.8394660949707031,
0.49373719096... |
func StartPing(interval time.Duration){
log.Println("Ping Time")
pinging := true
for pinging {
pinging = false
log.Print("Pinging set to " + strconv.FormatBool(pinging))
if shouldIPing() {
pinging = true
log.Print("Pinging set to " + strconv.FormatBool(pinging))
bullyImpl.SetIsCoordinatorAlive(false... | [
-0.6453223824501038,
-0.36937394738197327,
0.5635342001914978,
0.1584368199110031,
0.6077713370323181,
0.870361864566803,
-0.45019322633743286,
0.5228192210197449,
-0.32709741592407227,
0.9023191332817078,
0.5402424335479736,
0.46263399720191956,
-0.43888676166534424,
0.28456613421440125,
... |
func shouldIPing() bool {
return !initialElection &&
!bullyImpl.EnCours() &&
!bullyImpl.IsCoordinator()
} | [
-1.3320943117141724,
0.8106060028076172,
0.39700669050216675,
0.54157954454422,
0.4810696840286255,
0.7848349213600159,
0.03403904661536217,
0.37160682678222656,
-0.20182083547115326,
0.29647016525268555,
-0.12880802154541016,
-1.0200788974761963,
-0.21161390841007233,
0.34413865208625793,... |
func saveConfigAndValidateNewFormat(t *testing.T, config *ConfigFile, homeFolder string) string {
err := config.Save()
if err != nil {
t.Fatalf("Failed to save: %q", err)
}
buf, err := ioutil.ReadFile(filepath.Join(homeFolder, RootConfigFileName))
if !strings.Contains(string(buf), `"authConfig":`) {
t.Fatalf(... | [
-0.21051399409770966,
-1.1597837209701538,
0.3533357083797455,
0.29426929354667664,
-0.22789941728115082,
0.43468379974365234,
-0.3254048526287079,
0.12904267013072968,
-0.21894244849681854,
0.1681993305683136,
-0.26094362139701843,
-0.19243073463439941,
0.07329829782247543,
1.119722008705... |
func Version() string {
return "0.3.0"
} | [
-0.06573095917701721,
-0.7454375624656677,
0.25550276041030884,
0.5803300142288208,
0.27329832315444946,
1.42123281955719,
0.13194914162158966,
0.2870566248893738,
-0.3258715867996216,
0.5299949049949646,
-0.8622867465019226,
-0.7068400382995605,
-0.4014812707901001,
-0.016615141183137894,... |
func Author() string {
return "[Li Kexian](https://www.likexian.com/)"
} | [
-0.6354721784591675,
-0.8727172613143921,
0.2563841640949249,
0.7936044931411743,
-0.7550555467605591,
0.7476571798324585,
-0.31167128682136536,
1.2893545627593994,
0.4492988586425781,
0.1767304390668869,
-0.7815074324607849,
0.8022360801696777,
0.9034109711647034,
0.4036079943180084,
0.... |
func License() string {
return "Licensed under the Apache License 2.0"
} | [
0.8251821398735046,
-1.6445165872573853,
0.401482492685318,
1.1668137311935425,
-1.1473569869995117,
0.8766344785690308,
-0.4227624833583832,
0.5342903137207031,
0.5302037596702576,
-0.14716258645057678,
0.01881626434624195,
0.13994410634040833,
0.375898152589798,
0.09935717284679413,
0.... |
func IsStruct(v interface{}) bool {
vv := reflect.ValueOf(v)
if vv.Kind() == reflect.Ptr {
vv = vv.Elem()
}
return vv.Kind() == reflect.Struct
} | [
-1.1833704710006714,
-0.27310046553611755,
0.36706411838531494,
0.1673911213874817,
-0.962274968624115,
-0.20784853398799896,
0.7129377722740173,
-0.7352520227432251,
1.9477237462997437,
-0.21517065167427063,
-0.17158980667591095,
0.5565169453620911,
-0.45463457703590393,
0.511825501918792... |
func Name(v interface{}) string {
return New(v).Name()
} | [
-0.8201940655708313,
-0.46475839614868164,
0.3428642749786377,
-0.1055455207824707,
-1.4625905752182007,
0.037060532718896866,
0.22174453735351562,
-1.1213562488555908,
0.29503610730171204,
1.3076728582382202,
-0.8257541656494141,
-0.34110501408576965,
0.7390609979629517,
0.345538020133972... |
func Struct(v interface{}, name string) *Structx {
return New(v).Struct(name)
} | [
0.4953047037124634,
0.17929132282733917,
0.18964903056621552,
-0.3385787010192871,
-1.272957444190979,
-0.23349511623382568,
-0.10892382264137268,
-1.0345468521118164,
0.7445142269134521,
-0.47910627722740173,
-0.47649651765823364,
0.3125717341899872,
0.3767210841178894,
-1.094335079193115... |
func Map(v interface{}) map[string]interface{} {
return New(v).Map()
} | [
-0.7089775800704956,
-0.22580082714557648,
0.4072880148887634,
-0.07108200341463089,
-1.3715460300445557,
0.7910342216491699,
-0.33765679597854614,
-0.5799052119255066,
1.5098066329956055,
0.3498218357563019,
-0.415400892496109,
0.008302467875182629,
1.3148846626281738,
-0.1986648142337799... |
func Names(v interface{}) []string {
return New(v).Names()
} | [
-1.2278074026107788,
0.007225316483527422,
0.2912554442882538,
-0.4467122554779053,
-0.04137219116091728,
-0.15432173013687134,
-1.0418035984039307,
-1.6494873762130737,
0.5046283006668091,
0.7615455389022827,
-1.3178716897964478,
0.3998323678970337,
0.712317943572998,
0.9005027413368225,
... |
func Tags(v interface{}, key string) (map[string]string, error) {
return New(v).Tags(key)
} | [
-0.6737122535705566,
0.03721208870410919,
0.328297883272171,
-0.5024637579917908,
-0.4087592363357544,
-0.4781574010848999,
-1.567525863647461,
0.0038099614903330803,
-0.4597872197628021,
0.9277797341346741,
-0.6974042654037476,
0.02115107700228691,
0.5911970734596252,
0.7100705504417419,
... |
func Values(v interface{}) []interface{} {
return New(v).Values()
} | [
-0.7373113632202148,
0.1641603410243988,
0.3909868597984314,
0.017146509140729904,
1.070430874824524,
-0.1878667026758194,
-0.8493612408638,
-0.5028900504112244,
0.49113142490386963,
-0.6511837840080261,
-1.0916823148727417,
0.5716174840927124,
0.3402537405490875,
1.09149169921875,
-0.85... |
func Fields(v interface{}) []*Fieldx {
return New(v).Fields()
} | [
-0.5976767539978027,
1.1032518148422241,
0.13129186630249023,
-0.4515790343284607,
0.20278243720531464,
0.3170486092567444,
-0.7091177701950073,
-0.8542150855064392,
1.2693570852279663,
-0.6135743856430054,
-1.5664739608764648,
-0.015276352874934673,
0.08075051009654999,
-0.794734001159668... |
func MustField(v interface{}, name string) *Fieldx {
return New(v).MustField(name)
} | [
0.2429560124874115,
0.899509847164154,
0.33800286054611206,
-0.19718453288078308,
-0.8197417855262756,
0.9241559505462646,
-1.174293041229248,
-0.43919336795806885,
0.7268752455711365,
0.4543815851211548,
-0.8480702042579651,
-0.13357862830162048,
-0.059332091361284256,
-0.6456968188285828... |
func Field(v interface{}, name string) (*Fieldx, bool) {
return New(v).Field(name)
} | [
-0.013743525370955467,
1.0721168518066406,
0.30338728427886963,
-0.5542072057723999,
-0.7676635980606079,
0.5701247453689575,
-1.0908092260360718,
-0.2457094043493271,
0.5750161409378052,
-0.019894510507583618,
-1.455582618713379,
-0.46686965227127075,
0.1662917286157608,
-0.78138196468353... |
func Set(v interface{}, name string, value interface{}) error {
return New(v).Set(name, value)
} | [
-0.1729387491941452,
-0.17772075533866882,
0.25524210929870605,
-0.3171318471431732,
-0.9364715218544006,
0.052954044193029404,
-0.36273324489593506,
-0.7686752080917358,
-0.15765663981437683,
0.9295158982276917,
-0.8444328308105469,
0.437174528837204,
0.34806373715400696,
0.09121480584144... |
func Zero(v interface{}, name string) error {
return New(v).Zero(name)
} | [
-0.14177750051021576,
-0.8842928409576416,
0.26186150312423706,
0.70400470495224,
-0.3891686201095581,
-0.10458336770534515,
0.11227048933506012,
0.12491191923618317,
0.03708576411008835,
0.13401855528354645,
-1.2255433797836304,
0.784055769443512,
0.4127376973628998,
0.6553851366043091,
... |
func New(v interface{}) *Structx {
if !IsStruct(v) {
panic(ErrNotStruct)
}
vv := reflect.ValueOf(v)
if vv.Kind() == reflect.Ptr {
vv = vv.Elem()
}
s := &Structx{
data: v,
value: vv,
}
return s
} | [
-0.12279101461172104,
-0.3403923213481903,
0.35130682587623596,
-0.2832462787628174,
-1.9140433073043823,
0.18574146926403046,
-0.13297037780284882,
-0.5545370578765869,
1.0367066860198975,
-0.4104234576225281,
-0.6190537810325623,
0.3073694109916687,
0.5840507745742798,
-0.007687236648052... |
func (s *Structx) Name() string {
return s.value.Type().Name()
} | [
-0.35137802362442017,
0.0696980357170105,
0.35118773579597473,
0.14675192534923553,
-1.1304271221160889,
0.29593625664711,
0.357103168964386,
-0.8264208436012268,
0.07049309462308884,
0.5706405639648438,
-1.1027088165283203,
-0.05392378568649292,
0.3728223145008087,
0.016886010766029358,
... |
func (s *Structx) Struct(name string) *Structx {
f, ok := s.Field(name)
if !ok {
panic(ErrNotField)
}
return New(f.Value())
} | [
0.29089030623435974,
0.33167704939842224,
0.15141341090202332,
-0.15735763311386108,
-1.2527035474777222,
-0.00210610032081604,
-0.3220638632774353,
-1.4055113792419434,
0.5557445883750916,
-0.6525211334228516,
-0.5840170979499817,
0.048730213195085526,
-0.02434844709932804,
-1.20948469638... |
func (s *Structx) Map() map[string]interface{} {
result := map[string]interface{}{}
fs := s.Fields()
for _, v := range fs {
if !v.IsExport() {
continue
}
result[v.Name()] = v.Value()
}
return result
} | [
-0.6038070321083069,
-0.17608341574668884,
0.4761587679386139,
-0.06903015077114105,
-1.3963563442230225,
0.3975731432437897,
-0.38320815563201904,
-0.38524097204208374,
0.5644060969352722,
0.49492448568344116,
-0.9242478013038635,
-0.3153367042541504,
0.6350629329681396,
-0.42450416088104... |
func (s *Structx) Names() []string {
var result []string
fs := s.Fields()
for _, v := range fs {
result = append(result, v.Name())
}
return result
} | [
-0.9102521538734436,
0.04789965972304344,
0.2958013117313385,
-0.6098302006721497,
-0.0673273578286171,
0.07936666905879974,
-0.8467373251914978,
-0.8976233601570129,
-0.22117549180984497,
-0.08605480194091797,
-1.3351606130599976,
-0.05609388276934624,
0.16081491112709045,
-0.116865746676... |
func (s *Structx) Tags(key string) (map[string]string, error) {
result := map[string]string{}
fs := s.Fields()
for _, v := range fs {
if !v.IsExport() {
continue
}
result[v.Name()] = v.Tag(key)
}
return result, nil
} | [
-0.787663459777832,
0.4072515368461609,
0.4820614755153656,
-0.7153743505477905,
-0.8768740892410278,
-0.2649267017841339,
-1.0913947820663452,
-0.19496873021125793,
-0.69342041015625,
0.5516762733459473,
-1.4142107963562012,
-0.5613908171653748,
-0.02658388391137123,
0.7354163527488708,
... |
func (s *Structx) Values() []interface{} {
var result []interface{}
fs := s.Fields()
for _, v := range fs {
if !v.IsExport() {
continue
}
result = append(result, v.Value())
}
return result
} | [
-0.37711623311042786,
0.134079247713089,
0.352594792842865,
-0.11154317110776901,
0.28335654735565186,
0.0593738816678524,
-0.8174968361854553,
-0.12371014803647995,
0.16890639066696167,
-0.2834622263908386,
-0.7545281648635864,
0.0813525840640068,
-0.3711664378643036,
0.2752733826637268,
... |
func (s *Structx) Fields() []*Fieldx {
tt := s.value.Type()
fields := []*Fieldx{}
for i := 0; i < tt.NumField(); i++ {
field := tt.Field(i)
f := &Fieldx{
data: field,
value: s.value.FieldByName(field.Name),
}
fields = append(fields, f)
}
return fields
} | [
-0.684395968914032,
0.5599388480186462,
0.21578672528266907,
-0.6286355257034302,
-0.23092547059059143,
0.4341135323047638,
-0.6465659141540527,
-0.6074501276016235,
0.885560929775238,
-0.46410566568374634,
-1.2580755949020386,
-0.09851274639368057,
0.010946349240839481,
-0.560605108737945... |
func (s *Structx) HasField(name string) bool {
_, ok := s.value.Type().FieldByName(name)
return ok
} | [
-0.20468203723430634,
0.9810340404510498,
0.5517696142196655,
-0.24983949959278107,
-0.07539492100477219,
0.4830351769924164,
-0.4262937903404236,
-0.21894598007202148,
-0.1662645787000656,
-0.09838292002677917,
-1.1267727613449097,
-1.152029037475586,
0.04003949835896492,
-0.0060383719392... |
func (s *Structx) MustField(name string) *Fieldx {
f, ok := s.Field(name)
if !ok {
panic(ErrNotField)
}
return f
} | [
0.1497260481119156,
0.8860669732093811,
0.31364673376083374,
0.06022825092077255,
-0.6402146220207214,
1.084668755531311,
-1.0450611114501953,
-0.9635859727859497,
1.0308175086975098,
0.06655056774616241,
-0.7801415324211121,
-0.20721589028835297,
-0.29793089628219604,
-0.7343609929084778,... |
func (s *Structx) Field(name string) (*Fieldx, bool) {
f, ok := s.value.Type().FieldByName(name)
if !ok {
return nil, false
}
ff := &Fieldx{
data: f,
value: s.value.FieldByName(name),
}
return ff, true
} | [
-0.4804707169532776,
0.7100621461868286,
0.6123769879341125,
-0.6779136657714844,
-0.8941810131072998,
0.30371108651161194,
-0.8743193745613098,
-0.6721855998039246,
0.5368075966835022,
-0.26912468671798706,
-1.3679935932159424,
-0.5249048471450806,
-0.12796573340892792,
-0.587399363517761... |
func (s *Structx) IsStruct(name string) bool {
f, ok := s.Field(name)
if !ok {
return false
}
return IsStruct(f.Value())
} | [
-1.072945237159729,
0.14108437299728394,
0.22289752960205078,
0.16212496161460876,
-1.397401213645935,
-0.30637162923812866,
-0.5274609923362732,
-0.6359506845474243,
0.7585921287536621,
-0.6512134671211243,
-0.6962715983390808,
-0.28723853826522827,
-0.08239264786243439,
0.045707102864980... |
func (s *Structx) Set(name string, value interface{}) error {
f, ok := s.Field(name)
if !ok {
return ErrNotField
}
return f.Set(value)
} | [
-0.31736838817596436,
0.3083687722682953,
0.3109622895717621,
-0.4028362035751343,
-0.7034389972686768,
0.18150249123573303,
-0.6088572144508362,
-0.8449254035949707,
0.03165629878640175,
0.2349250763654709,
-1.365057349205017,
-0.2902439534664154,
-0.026941781863570213,
-0.009919281117618... |
func (s *Structx) Zero(name string) error {
f, ok := s.Field(name)
if !ok {
return ErrNotField
}
return f.Zero()
} | [
-0.4020885229110718,
-0.30085670948028564,
0.376783162355423,
0.20888011157512665,
-0.4064359664916992,
-0.2111756056547165,
0.09115727990865707,
-0.022254489362239838,
-0.0628381222486496,
-0.3873967230319977,
-1.3604711294174194,
-0.05362221598625183,
-0.04897794872522354,
0.251445829868... |
func (f *Fieldx) Name() string {
return f.data.Name
} | [
-0.8785538077354431,
0.22973373532295227,
0.4041285514831543,
-0.5008346438407898,
-0.9751077890396118,
0.4871465861797333,
-0.5629764795303345,
-0.4364200532436371,
-0.748016357421875,
0.10309647768735886,
-1.3656609058380127,
-0.293455570936203,
0.38554617762565613,
-0.6340012550354004,
... |
func (f *Fieldx) Kind() reflect.Kind {
return f.value.Kind()
} | [
-0.051943011581897736,
0.4291094243526459,
0.12342220544815063,
-0.5002870559692383,
-0.023094773292541504,
0.9815470576286316,
0.48414021730422974,
-0.6277316808700562,
-0.860472559928894,
-0.15678805112838745,
-0.19084686040878296,
1.123406171798706,
0.05278488248586655,
-0.1587434262037... |
func (f *Fieldx) Tag(key string) string {
return f.data.Tag.Get(key)
} | [
-0.6041907072067261,
0.8128318190574646,
0.18885953724384308,
-0.7779269814491272,
0.25041940808296204,
0.4733377993106842,
-0.5263163447380066,
-0.21039743721485138,
-1.2335225343704224,
0.2773989737033844,
-0.9834704399108887,
-0.8795632123947144,
0.20091544091701508,
-0.1502751260995865... |
func (f *Fieldx) Value() interface{} {
return f.value.Interface()
} | [
-0.7836524248123169,
0.606838583946228,
0.36785396933555603,
0.3891296982765198,
0.46647489070892334,
0.8764652609825134,
0.08183636516332626,
-0.776877760887146,
-0.014089818112552166,
-0.3762190043926239,
-0.848347544670105,
0.04506881535053253,
-0.07517580687999725,
-0.0973372757434845,... |
func (f *Fieldx) IsAnonymous() bool {
return f.data.Anonymous
} | [
-1.4147394895553589,
0.11167348921298981,
0.5784411430358887,
0.03638347238302231,
-0.043436162173748016,
-0.21938788890838623,
-1.2358481884002686,
-0.3185398280620575,
-0.6521345376968384,
0.25346970558166504,
-1.314530372619629,
0.8343231081962585,
0.2521449029445648,
-0.322022140026092... |
func (f *Fieldx) IsExport() bool {
return f.data.PkgPath == ""
} | [
-0.31628185510635376,
0.678293764591217,
0.37437009811401367,
1.467232346534729,
-0.1286168098449707,
0.18403983116149902,
-0.45564892888069153,
0.21778452396392822,
1.1338458061218262,
0.301289439201355,
-0.7041240930557251,
-0.3139037489891052,
-0.4069420397281647,
0.4535553753376007,
... |
func (f *Fieldx) IsZero() bool {
zero := reflect.Zero(f.value.Type()).Interface()
return reflect.DeepEqual(f.Value(), zero)
} | [
-1.0200481414794922,
-0.004495716653764248,
0.2550685703754425,
1.2109795808792114,
0.3801659643650055,
0.13846059143543243,
0.04349368438124657,
0.15613211691379547,
-0.1707659512758255,
-0.17343516647815704,
-0.7010857462882996,
0.2976536452770233,
-0.6526491045951843,
0.1866310834884643... |
func (f *Fieldx) Set(v interface{}) error {
if !f.IsExport() {
return ErrNotExported
}
if !f.value.CanSet() {
return errNotSettable
}
vv := reflect.ValueOf(v)
if f.Kind() != vv.Kind() {
return fmt.Errorf("xstruct: value kind not match, want: %s but got %s", f.Kind(), vv.Kind())
}
f.value.Set(vv)
retu... | [
-0.6911908984184265,
0.6394190788269043,
0.3811608552932739,
-0.08323482424020767,
-0.2438230812549591,
0.33218008279800415,
0.0007214955403469503,
-0.6578916311264038,
-0.08929595351219177,
0.06351570785045624,
-0.916955828666687,
0.6371344923973083,
0.205552339553833,
-0.0576892718672752... |
func (f *Fieldx) Zero() error {
zero := reflect.Zero(f.value.Type()).Interface()
return f.Set(zero)
} | [
-0.795025110244751,
0.2883361279964447,
0.297987163066864,
0.48856088519096375,
0.7933162450790405,
0.12319183349609375,
0.47129693627357483,
0.30118224024772644,
-0.48082461953163147,
-0.38760051131248474,
-0.8816201090812683,
0.588240385055542,
-0.01322223898023367,
0.6208820343017578,
... |
func (tpe *TPE) Setup(n int, theta float64) {
tpe.setup.N = n
tpe.setup.Theta = theta
} | [
-0.9036844968795776,
-0.0372224785387516,
0.31436648964881897,
-1.1255601644515991,
0.4373863935470581,
0.13024939596652985,
0.8048828840255737,
-0.20201124250888824,
-0.5488508939743042,
0.9310497641563416,
-0.6502999663352966,
-0.7091282606124878,
0.13700859248638153,
0.5469844937324524,... |
func (tpe *TPE) GetConfig() (n int, theta float64) {
return tpe.setup.N, tpe.setup.Theta
} | [
-1.097572922706604,
0.024494299665093422,
0.45884954929351807,
-0.2914946973323822,
0.6204856634140015,
-0.16695983707904816,
0.8470979332923889,
-0.15733034908771515,
-0.7429632544517517,
1.3137435913085938,
-0.2216797173023224,
-0.7540916204452515,
0.19099187850952148,
1.0805487632751465... |
func (tpe *TPE) ExportSetup() string {
// Marshal Struct to JSON string
configJSON, _ := json.Marshal(tpe.setup)
return string(configJSON)
} | [
-0.9915075302124023,
-0.8986398577690125,
0.5135768055915833,
-0.7103466391563416,
-0.684622049331665,
-0.19067244231700897,
0.4320334494113922,
-0.1277174949645996,
0.8363021016120911,
2.3370444774627686,
0.12621884047985077,
-0.309729665517807,
-0.21551752090454102,
-0.5131060481071472,
... |
func (tpe *TPE) ImportSetup(JSON string) {
// Unmarshal and load Config
json.Unmarshal([]byte(JSON), &tpe.setup)
} | [
-1.2582827806472778,
-0.5441033244132996,
0.594622015953064,
-0.9597871899604797,
-0.6902602314949036,
-0.04825234413146973,
0.6889067888259888,
0.1690240204334259,
0.4007852375507355,
2.395071268081665,
-0.7881191372871399,
-0.6340337991714478,
-0.3125669062137604,
-0.841886043548584,
0... |
func newDeviceContext(config *slowfs.DeviceConfig) *deviceContext {
var writeBackCache *writeBackCache
if config.FsyncStrategy == slowfs.WriteBackCachedFsync {
writeBackCache = newWriteBackCache(config)
}
return &deviceContext{
deviceConfig: config,
logger: log.New(os.Stderr, "DeviceContext: ", log.... | [
-0.38911399245262146,
-0.4269169867038727,
0.3356969654560089,
-0.2738936245441437,
-0.8190997242927551,
-0.9544540047645569,
0.7329581379890442,
-0.8080034255981445,
1.119685411453247,
-0.012922406196594238,
-0.12349089235067368,
0.45057520270347595,
0.08974341303110123,
0.486810445785522... |
func (dc *deviceContext) computeTime(req *Request) time.Duration {
requestDuration := time.Duration(0)
switch req.Type {
// Handle metadata requests, plus metadata requests that have been factored out because we
// need separate handling for them.
case MetadataRequest, CloseRequest:
requestDuration = dc.deviceC... | [
-0.9923810958862305,
0.4129752516746521,
0.6790761351585388,
-0.4948148727416992,
0.4323008358478546,
-0.20695118606090546,
0.38286250829696655,
-0.1902644783258438,
0.4756409823894501,
0.451423704624176,
0.5417327880859375,
-0.05888145789504051,
-0.16316619515419006,
0.48301902413368225,
... |
func (dc *deviceContext) execute(req *Request) {
spareTime := req.Timestamp.Sub(dc.busyUntil)
// Devote spare time to writing back cache.
if spareTime > 0 && dc.writeBackCache != nil {
dc.writeBackCache.writeBack(spareTime)
}
dc.busyUntil = req.Timestamp.Add(dc.computeTime(req))
switch req.Type {
case Metad... | [
-1.4411448240280151,
0.04285305738449097,
0.7275704741477966,
-0.25565409660339355,
0.9288894534111023,
-0.45632579922676086,
0.6553453803062439,
-0.512414276599884,
0.037481728941202164,
-0.043693237006664276,
0.6934456825256348,
-0.20983219146728516,
0.13320179283618927,
0.07332648336887... |
func init() {
RootCmd.AddCommand(DeployCmd)
DeployCmd.Flags().StringP("file", "f", "", "file used to specify the job to deploy (required)")
DeployCmd.Flags().StringP("port", "p", "", "connect to a specific port (default: 3939)")
DeployCmd.MarkFlagRequired("file")
} | [
0.6593116521835327,
-0.7999205589294434,
0.8865258097648621,
-0.3046281039714813,
0.7777942419052124,
0.8299939036369324,
0.43751654028892517,
0.8057823777198792,
-0.8676091432571411,
-0.5977213978767395,
0.036838095635175705,
0.5812506079673767,
0.2245112955570221,
1.4197677373886108,
-... |
func deployJob(cmd *cobra.Command, args []string) {
port, _:= cmd.Flags().GetString("port")
if port == "" {
port = DefaultPort
}
name, _:= cmd.Flags().GetString("file")
yaml := unmarsharlYaml(readJobFile(name))
currentDir, _ := os.Getwd()
var job NewJob
job.ID = yaml.Job.ID
j... | [
0.32905474305152893,
-0.7165332436561584,
1.0161439180374146,
0.23956432938575745,
0.11704547703266144,
0.0898611843585968,
-0.08730663359165192,
0.6608846187591553,
-0.8403783440589905,
0.2602941691875458,
-0.5331860184669495,
0.5052521228790283,
-0.7098568677902222,
0.8024271130561829,
... |
func readJobFile(name string) []byte {
file, err := os.Open(name)
if err != nil {
log.Fatal(err)
}
bytes, err := ioutil.ReadAll(file)
defer file.Close()
return bytes
} | [
0.4332272410392761,
-0.17136740684509277,
1.0280951261520386,
-0.05999680235981941,
-1.3765636682510376,
0.9355513453483582,
-0.7147244811058044,
0.034846458584070206,
-1.4147707223892212,
0.23246635496616364,
-0.49982377886772156,
-0.047066573053598404,
-1.0494649410247803,
0.069016240537... |
func unmarsharlYaml(byteArray []byte) Config {
var cfg Config
err := yaml.Unmarshal([]byte(byteArray), &cfg)
if err != nil {
log.Fatalf("error: %v", err)
}
return cfg
} | [
0.8139780759811401,
-0.033486075699329376,
0.6692522168159485,
-0.16729971766471863,
-0.6748143434524536,
-0.9990144968032837,
0.45793455839157104,
0.39648744463920593,
0.23044702410697937,
0.2356216460466385,
-0.8316741585731506,
-0.16582565009593964,
-0.4657519459724426,
0.41547128558158... |
func ensureDirectory(dir string) bool {
if _, err := os.Stat(dir); os.IsNotExist(err) {
return false
}
return true
} | [
-0.6528912782669067,
0.30854740738868713,
0.6850734353065491,
0.1936161369085312,
0.7354407906532288,
0.6928531527519226,
-0.3130868971347809,
-0.3855954110622406,
0.10272902250289917,
-0.9159379601478577,
-0.23303231596946716,
-0.21054819226264954,
0.11298774182796478,
0.9039521813392639,... |
func getScheduleString(name string, port string) string {
dir, _ := os.Getwd()
absPath := []byte(dir + "/" + name)
ss := makePostRequest(fmt.Sprintf("http://localhost%s/schedule", port), bytes.NewBuffer(absPath))
return ss
} | [
-0.6357216835021973,
-0.28996115922927856,
0.6725373268127441,
0.07003889232873917,
-0.9019866585731506,
-0.15605555474758148,
-0.6922839879989624,
-0.8736721277236938,
-0.6957833766937256,
0.34480196237564087,
0.3837288022041321,
0.6502348184585571,
-0.5638423562049866,
-0.499200761318206... |
func (c *Conn) Read(b []byte) (int, error) {
if !c.ok() {
return 0, syscall.EINVAL
}
if len(c.recvRest) > 0 {
l := copy(b, c.recvRest)
c.recvRest = c.recvRest[l:]
return l, nil
}
p, err := c.recvBuf.Pop()
if err != nil {
return 0, err
}
l := copy(b, p)
c.recvRest = p[l:]
return l, nil
} | [
-0.8130289316177368,
-0.050247907638549805,
0.7948930263519287,
0.1598004549741745,
-0.09741488844156265,
-0.04638271406292915,
0.7697318196296692,
0.3349643051624298,
0.5612147450447083,
-0.27241069078445435,
-0.18464894592761993,
0.046793535351753235,
-1.4688396453857422,
0.1428899019956... |
func (c *Conn) Write(b []byte) (int, error) {
if !c.ok() {
return 0, syscall.EINVAL
}
payload := b
if len(payload) > mss {
payload = payload[:mss]
}
_, err := c.sendBuf.Push(payload)
if err != nil {
return 0, err
}
l, err := c.sendDATA(payload)
if err != nil {
return 0, err
}
return l, nil
} | [
-0.918244481086731,
0.8476991653442383,
0.7791053056716919,
0.43081995844841003,
-0.1864149272441864,
-0.1267174929380417,
0.7737675905227661,
0.47522494196891785,
0.19898082315921783,
0.2374289184808731,
-0.9644567966461182,
-0.32801711559295654,
-1.2410147190093994,
0.687811017036438,
... |
func (c *Conn) Close() error {
if !c.ok() {
return syscall.EINVAL
}
select {
case <-c.closeChan:
default:
c.closeSendBuf()
c.sendFIN()
}
return nil
} | [
-0.16249212622642517,
0.4832839071750641,
0.5703510046005249,
1.035309076309204,
0.04071347787976265,
-0.2554221749305725,
0.6998206973075867,
-0.8265292644500732,
-1.1170458793640137,
-0.9514578580856323,
-0.07637124508619308,
-0.5418830513954163,
-1.359162449836731,
0.6263773441314697,
... |
func (c *Conn) LocalAddr() net.Addr {
if !c.ok() {
return nil
}
return c.conn.LocalAddr()
} | [
1.162601113319397,
-0.6617292761802673,
0.32483696937561035,
-0.007596487179398537,
-0.8065917491912842,
-0.33971357345581055,
-0.46478450298309326,
0.08595874160528183,
0.32329100370407104,
-0.5270096659660339,
1.0317349433898926,
-0.2434278279542923,
-0.5544189810752869,
-0.1938604712486... |
func (c *Conn) RemoteAddr() net.Addr {
if !c.ok() {
return nil
}
return c.raddr
} | [
0.7470359206199646,
-0.84323650598526,
0.6524138450622559,
-0.20998598635196686,
-1.0015615224838257,
0.6505404114723206,
-0.49874889850616455,
-0.20270822942256927,
0.804548442363739,
-0.42862385511398315,
0.42155885696411133,
0.33267226815223694,
-1.0719835758209229,
-0.0853198915719986,... |
func (c *Conn) SetDeadline(t time.Time) error {
if !c.ok() {
return syscall.EINVAL
}
err := c.SetReadDeadline(t)
if err != nil {
return err
}
return c.SetWriteDeadline(t)
} | [
-0.69941246509552,
-0.2965834438800812,
0.6326361894607544,
0.6243356466293335,
0.8752270340919495,
-0.03189055994153023,
-0.10329456627368927,
-0.07757791876792908,
-0.650221049785614,
-0.07888052612543106,
-0.326974481344223,
-0.43617331981658936,
-0.10164576768875122,
0.70538330078125,
... |
func (c *Conn) SetReadDeadline(t time.Time) error {
if !c.ok() {
return syscall.EINVAL
}
c.deadlineMutex.Lock()
defer c.deadlineMutex.Unlock()
c.rdeadline = t
return nil
} | [
-0.8915147185325623,
-0.36450493335723877,
0.5120691657066345,
-0.0034651889000087976,
-0.16764940321445465,
0.9176796078681946,
-0.12528766691684723,
-0.946106493473053,
-0.394503116607666,
-0.10629518330097198,
-0.7609091997146606,
-0.21493349969387054,
-0.43596261739730835,
0.3096225559... |
func (c *Conn) SetWriteDeadline(t time.Time) error {
if !c.ok() {
return syscall.EINVAL
}
c.deadlineMutex.Lock()
defer c.deadlineMutex.Unlock()
c.wdeadline = t
return nil
} | [
-1.1813524961471558,
-0.5390199422836304,
0.445162296295166,
0.18375995755195618,
1.0993397235870361,
0.3096729516983032,
0.2831398844718933,
-0.19358402490615845,
-0.4352039396762848,
-0.17257986962795258,
-0.5221859812736511,
-0.5549446940422058,
-0.8676003813743591,
0.3796992897987366,
... |
func namespace() string {
if ns := os.Getenv("TILLER_NAMESPACE"); ns != "" {
return ns
}
// Fall back to the namespace associated with the service account token, if available
if data, err := ioutil.ReadFile("/var/run/secrets/kubernetes.io/serviceaccount/namespace"); err == nil {
if ns := strings.TrimSpace(stri... | [
1.2357975244522095,
-0.2293049544095993,
0.2610239088535309,
0.6058049201965332,
0.03364460915327072,
0.12949462234973907,
-0.3246786296367645,
-0.8639006018638611,
0.4933801591396332,
-0.3302597999572754,
1.3274362087249756,
0.8757022619247437,
-0.37690234184265137,
0.49601519107818604,
... |
func TestLocalWriteWithExpiredContext(t *testing.T) {
ctrl := xtest.NewController(t)
defer ctrl.Finish()
store := setupLocalWrite(t, ctrl)
writeQuery := newWriteQuery(t)
past := time.Now().Add(-time.Minute)
ctx, cancel := context.WithDeadline(context.Background(), past)
defer cancel()
// Ensure expired.
var... | [
0.27531468868255615,
-0.5007308721542358,
0.30500584840774536,
-0.2706895172595978,
0.3187786340713501,
0.5936425924301147,
-0.7040669918060303,
0.024019744247198105,
0.6703605651855469,
-0.13333085179328918,
-0.18449676036834717,
-0.9226073622703552,
-0.08926421403884888,
0.12337714433670... |
func TestLocalWritesWithExpiredContext(t *testing.T) {
ctrl := xtest.NewController(t)
defer ctrl.Finish()
store := setupLocalWrite(t, ctrl)
writeQueryOpts := newWriteQuery(t).Options()
writeQueryOpts.Datapoints = ts.Datapoints{
ts.Datapoint{
Timestamp: xtime.Now(),
Value: 42,
},
ts.Datapoint{
Ti... | [
0.2862987220287323,
-0.4334758520126343,
0.3220095634460449,
-0.508193850517273,
0.46840575337409973,
0.4440716505050659,
-0.6654956936836243,
-0.14396025240421295,
0.569270670413971,
-0.010726609267294407,
-0.30183038115501404,
-0.41733381152153015,
-0.04611095413565636,
0.041267383843660... |
func NewListIssueGroupOfProjectVersionParams() *ListIssueGroupOfProjectVersionParams {
var (
limitDefault = int32(200)
showhiddenDefault = bool(false)
showremovedDefault = bool(false)
showshortfilenamesDefault = bool(false)
showsuppressedDefault = bool(false)
startDefault ... | [
-0.12172690778970718,
-0.19354654848575592,
0.2163161039352417,
-0.21211618185043335,
-1.1076550483703613,
-0.4271129071712494,
0.16341093182563782,
-0.12906549870967865,
-0.26329901814460754,
0.6010384559631348,
-0.9603899121284485,
-0.06343955546617508,
-0.10692679136991501,
0.7697878479... |
func NewListIssueGroupOfProjectVersionParamsWithTimeout(timeout time.Duration) *ListIssueGroupOfProjectVersionParams {
var (
limitDefault = int32(200)
showhiddenDefault = bool(false)
showremovedDefault = bool(false)
showshortfilenamesDefault = bool(false)
showsuppressedDefault ... | [
0.5067516565322876,
-0.0526241660118103,
0.21797852218151093,
-0.35533273220062256,
-1.0437464714050293,
-0.2327813357114792,
-0.5796381831169128,
-0.2724531888961792,
0.014967341907322407,
1.0113940238952637,
-0.5723952651023865,
0.4031045436859131,
-0.001889445586130023,
0.97000735998153... |
func NewListIssueGroupOfProjectVersionParamsWithContext(ctx context.Context) *ListIssueGroupOfProjectVersionParams {
var (
limitDefault = int32(200)
showhiddenDefault = bool(false)
showremovedDefault = bool(false)
showshortfilenamesDefault = bool(false)
showsuppressedDefault =... | [
-0.0962156280875206,
-0.0262898039072752,
0.49532467126846313,
-0.4701441824436188,
-0.782380223274231,
0.08516167104244232,
-0.29129698872566223,
-0.5056372880935669,
0.4388698637485504,
0.5818886160850525,
-0.48247620463371277,
-0.032822590321302414,
0.09339385479688644,
0.16422727704048... |
func NewListIssueGroupOfProjectVersionParamsWithHTTPClient(client *http.Client) *ListIssueGroupOfProjectVersionParams {
var (
limitDefault = int32(200)
showhiddenDefault = bool(false)
showremovedDefault = bool(false)
showshortfilenamesDefault = bool(false)
showsuppressedDefault ... | [
-0.017083240672945976,
-0.2892383635044098,
0.2701077461242676,
-0.2785035967826843,
-0.8501906991004944,
0.0013980841031298041,
0.42261046171188354,
-0.39327675104141235,
-0.5999685525894165,
0.2425992488861084,
-0.8074105381965637,
0.10620393604040146,
-0.1419524848461151,
0.318779438734... |
func (o *ListIssueGroupOfProjectVersionParams) WithTimeout(timeout time.Duration) *ListIssueGroupOfProjectVersionParams {
o.SetTimeout(timeout)
return o
} | [
0.4295278787612915,
0.16686102747917175,
0.07709962874650955,
-0.2923431992530823,
-0.8568987250328064,
0.056705083698034286,
-0.24770568311214447,
-0.33193209767341614,
0.2669854462146759,
0.9234345555305481,
0.21410006284713745,
-0.025228099897503853,
0.3472810685634613,
0.34192556142807... |
func (o *ListIssueGroupOfProjectVersionParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
} | [
0.1604589968919754,
0.3287558853626251,
-0.07952726632356644,
-0.34420761466026306,
-0.5980400443077087,
0.44975578784942627,
-0.263455867767334,
0.041081544011831284,
-0.1965804398059845,
0.7379230856895447,
0.34568437933921814,
0.04040222987532616,
-0.2370314747095108,
0.4413748681545257... |
func (o *ListIssueGroupOfProjectVersionParams) WithContext(ctx context.Context) *ListIssueGroupOfProjectVersionParams {
o.SetContext(ctx)
return o
} | [
-0.3502509891986847,
-0.005600471515208483,
0.21651676297187805,
-0.4024036228656769,
-0.8870803713798523,
0.11989564448595047,
-0.3140304982662201,
-0.886448323726654,
0.6633355617523193,
0.42884787917137146,
0.06076286733150482,
-0.3928089141845703,
-0.2443440556526184,
-0.18299470841884... |
func (o *ListIssueGroupOfProjectVersionParams) SetContext(ctx context.Context) {
o.Context = ctx
} | [
-0.2926352918148041,
0.40780970454216003,
0.030684463679790497,
-0.2451419234275818,
-0.5031337141990662,
0.3954612612724304,
-0.17134635150432587,
-0.6341481804847717,
0.6410638093948364,
0.2695123851299286,
0.02986704558134079,
-0.1891789436340332,
-0.5430882573127747,
0.0847165957093238... |
func (o *ListIssueGroupOfProjectVersionParams) WithHTTPClient(client *http.Client) *ListIssueGroupOfProjectVersionParams {
o.SetHTTPClient(client)
return o
} | [
-0.13244399428367615,
-0.5684904456138611,
0.07216746360063553,
-0.5635953545570374,
-0.9003360867500305,
-0.0326688289642334,
0.3231128454208374,
-0.8209647536277771,
-0.4205615222454071,
0.0993054062128067,
-0.0667351484298706,
-0.07195480912923813,
0.18795405328273773,
-0.47411102056503... |
func (o *ListIssueGroupOfProjectVersionParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
} | [
0.16937759518623352,
-0.26854854822158813,
-0.0061424304731190205,
-1.0848506689071655,
-0.9393904805183411,
-0.11747386306524277,
0.31497424840927124,
-0.6976784467697144,
-0.7640743255615234,
0.07843069732189178,
-0.13381682336330414,
0.09654520452022552,
-0.2222043126821518,
-0.39262014... |
func (o *ListIssueGroupOfProjectVersionParams) WithFields(fields *string) *ListIssueGroupOfProjectVersionParams {
o.SetFields(fields)
return o
} | [
-0.20728033781051636,
0.4042304754257202,
-0.2116471379995346,
-0.502274751663208,
-0.6466330885887146,
0.23074351251125336,
0.08555296808481216,
-0.7304189205169678,
-0.2701359987258911,
0.05788479000329971,
-0.029247518628835678,
-0.9763283729553223,
-0.4112849831581116,
-0.2836707830429... |
func (o *ListIssueGroupOfProjectVersionParams) SetFields(fields *string) {
o.Fields = fields
} | [
-0.4684555232524872,
0.5227395296096802,
-0.2806934118270874,
-0.6294121146202087,
-0.46096205711364746,
0.3434937000274658,
0.045177120715379715,
-0.31854498386383057,
-0.3366096019744873,
-0.06925101578235626,
-0.4230934977531433,
-0.6989588737487793,
-0.7761096954345703,
0.2084721326828... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.