text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func Title(operand string) string { return strings.Title(operand) } | [
-0.33206814527511597,
-0.10064302384853363,
0.382135272026062,
-0.4712269604206085,
-1.4864970445632935,
0.6066083312034607,
-0.4110347330570221,
-0.5691934823989868,
0.5086691379547119,
0.6703749299049377,
0.6371738910675049,
0.44845521450042725,
-0.5033310651779175,
-1.2425822019577026,
... |
func ToLower(operand string) string { return strings.ToLower(operand) } | [
0.7267307043075562,
-0.3192593455314636,
0.46212512254714966,
-0.3236349821090698,
-0.8873793482780457,
0.7074527144432068,
-0.03400758281350136,
-1.1149134635925293,
0.5083848834037781,
0.39327841997146606,
0.47470325231552124,
0.4248947501182556,
-0.3622426986694336,
-0.8340839743614197,... |
func ToUpper(operand string) string { return strings.ToUpper(operand) } | [
-0.6648675799369812,
-0.25002700090408325,
0.4436963200569153,
0.26424866914749146,
-1.2795400619506836,
0.7466097474098206,
-0.2823120653629303,
-0.3786129355430603,
0.34236183762550354,
0.6430482864379883,
0.674206554889679,
0.4018203020095825,
0.10327921062707901,
-1.14098060131073,
1... |
func Trim(chars string, operand string) string { return strings.Trim(operand, chars) } | [
-0.2181752324104309,
-0.5827239751815796,
0.2144039273262024,
-0.6261376738548279,
-0.8381836414337158,
0.24878033995628357,
-0.6230098009109497,
-1.30833899974823,
0.4302370548248291,
0.3543075621128082,
0.5097123980522156,
1.607418417930603,
0.3970971703529358,
-1.6262822151184082,
0.9... |
func TrimLeft(chars string, operand string) string { return strings.TrimLeft(operand, chars) } | [
0.7035704851150513,
-0.6642895340919495,
0.04882160574197769,
-1.176758885383606,
-0.7442100048065186,
0.6405206322669983,
-0.8229672312736511,
-0.4619066119194031,
1.0015449523925781,
0.4160219132900238,
-0.3281957507133484,
0.5856701731681824,
-0.09445972740650177,
-0.9305727481842041,
... |
func TrimPrefix(prefix, operand string) string { return strings.TrimPrefix(operand, prefix) } | [
-0.1394658237695694,
-0.297445684671402,
0.39883989095687866,
-0.7723841071128845,
-1.0314077138900757,
0.00393382553011179,
-1.052246332168579,
0.31647124886512756,
0.7427871227264404,
0.48479515314102173,
-0.11912847310304642,
0.839573323726654,
0.10951883345842361,
-0.8545843958854675,
... |
func TrimRight(cutset string, operand string) string { return strings.TrimRight(operand, cutset) } | [
0.11839790642261505,
-0.09630858153104782,
0.3873988389968872,
-0.4235174357891083,
-1.7363969087600708,
0.24536120891571045,
-0.8861799240112305,
-1.2694613933563232,
-0.03154459223151207,
-0.0013969370629638433,
0.6543849110603333,
1.0402147769927979,
-0.26975345611572266,
-0.15450887382... |
func TrimSpace(operand string) string { return strings.TrimSpace(operand) } | [
0.10981275886297226,
0.004363412037491798,
0.10127703845500946,
-0.2587883770465851,
-1.2400262355804443,
0.6314196586608887,
-0.06441351771354675,
-0.7263180017471313,
1.5979654788970947,
-0.46355801820755005,
0.07583094388246536,
0.4604899287223816,
-0.32025355100631714,
-0.5126957893371... |
func TrimSuffix(suffix, operand string) string { return strings.TrimSuffix(operand, suffix) } | [
0.39580237865448,
-0.11905714869499207,
0.3933793604373932,
-0.5709532499313354,
-1.3671700954437256,
0.7074845433235168,
-0.6701095104217529,
0.6004202365875244,
0.12413161993026733,
-0.03389611840248108,
-0.9375227689743042,
1.4174011945724487,
0.3881639242172241,
-1.1905665397644043,
... |
func Unquote(operand string) (unquoted string, err error) { return strconv.Unquote(operand) } | [
-0.38061830401420593,
-0.6920631527900696,
0.6256449222564697,
0.11245323717594147,
-1.047792673110962,
-0.8397805094718933,
-0.18190938234329224,
0.04233946651220322,
-0.3285890221595764,
0.6309105753898621,
0.22410273551940918,
0.9244332313537598,
-0.4200242757797241,
-0.9878734350204468... |
func Grep(pattern string, operand []string) ([]string, error) {
rex, err := regexp.Compile(pattern)
if err != nil {
return nil, err
}
var matching []string
for _, elem := range operand {
if rex.MatchString(elem) {
matching = append(matching, elem)
}
}
return matching, nil
} | [
-0.38024991750717163,
0.21499794721603394,
0.6643274426460266,
0.44666242599487305,
0.3644517958164215,
0.1257924884557724,
-0.6406264901161194,
-0.06757723540067673,
0.020837100222706795,
1.3646162748336792,
0.7102949023246765,
0.8259632587432861,
-0.5745395421981812,
-0.13310757279396057... |
func Head(n int, operand []string) []string {
if len(operand) < n {
return operand
}
return operand[:n]
} | [
-0.3240034878253937,
-0.09372921288013458,
0.46199432015419006,
0.41938185691833496,
-0.467378705739975,
0.6862738728523254,
-0.7717312574386597,
-1.460768699645996,
0.713811993598938,
1.1182148456573486,
0.37883812189102173,
1.6187416315078735,
0.09916041791439056,
-1.0236400365829468,
... |
func Intersect(a, operand []string) []string {
intersection := make([]string, Max(len(a), len(operand)))
uniqA := make(map[string]bool, len(a))
for _, elem := range a {
uniqA[elem] = true
}
i := 0
uniqOp := make(map[string]bool, len(operand))
for _, elem := range operand {
if uniqA[elem] && !uniqOp[elem] {
... | [
-0.17922694981098175,
-0.37311169505119324,
0.9464950561523438,
0.03688224032521248,
-0.8126918077468872,
-0.18106232583522797,
-0.11455269902944565,
0.30460530519485474,
0.24166984856128693,
1.8169739246368408,
0.5881391763687134,
0.10946033149957657,
-0.18334439396858215,
-0.099258281290... |
func Reverse(operand []string) []string {
reversed := make([]string, len(operand))
for i := range operand {
reversed[len(operand)-i-1] = operand[i]
}
return reversed
} | [
-1.0257588624954224,
-0.13989011943340302,
0.5729786157608032,
-0.1175464540719986,
-0.061875320971012115,
0.5235471725463867,
-0.4339331388473511,
0.21163339912891388,
-0.3567696511745453,
0.5682646036148071,
-0.19741299748420715,
1.41292142868042,
-0.7897750735282898,
-0.9674409031867981... |
func Seq(first, last int, incr ...int) []int {
j := 1
if len(incr) > 1 {
panic("Seq incr cannot be more than one value in length")
}
if len(incr) == 1 {
if (incr[0]) == 0 {
panic("Seq incr value cannot be zero")
}
j = incr[0]
}
var values []int
current := first
if j > 0 {
for current <= last {
... | [
-0.43971458077430725,
0.13783013820648193,
0.4235154688358307,
1.0131412744522095,
-0.278923898935318,
-0.25180819630622864,
0.03234706073999405,
0.11471487581729889,
-0.800061821937561,
-0.2790338695049286,
-0.35538992285728455,
0.04854566231369972,
0.04445771127939224,
0.779545247554779,... |
func Shuffle(operand []string) []string {
shuffled := make([]string, len(operand))
for i, p := range pseudo.Perm(len(operand)) {
shuffled[i] = operand[p]
}
return shuffled
} | [
-0.5983359217643738,
-0.19368986785411835,
0.5801671743392944,
-0.24375809729099274,
-1.3114948272705078,
0.8490450382232666,
0.15197815001010895,
-0.2696206271648407,
0.9675496816635132,
0.12764763832092285,
0.8101394772529602,
1.0141392946243286,
-0.9182395935058594,
-0.8340292572975159,... |
func Sort(operand []string) []string {
sorted := make([]string, len(operand))
for i := range operand {
sorted[i] = operand[i]
}
sort.Strings(sorted)
return sorted
} | [
-0.5883814692497253,
-0.7149639129638672,
0.4965187907218933,
-0.16129285097122192,
-1.056922197341919,
0.6345072984695435,
-0.1349787414073944,
-1.4227672815322876,
0.14462022483348846,
0.6334993243217468,
0.5732298493385315,
1.4226818084716797,
-0.5166321992874146,
-0.10850989818572998,
... |
func Tail(n int, operand []string) []string {
if len(operand) < n {
return operand
}
return operand[len(operand)-n:]
} | [
-0.43570709228515625,
-0.20132645964622498,
0.3859425485134125,
0.04855826497077942,
-0.38642174005508423,
0.6975917220115662,
-0.7207959294319153,
-1.709078073501587,
0.35082948207855225,
0.5042926073074341,
0.02755873091518879,
1.748227596282959,
-0.21360687911510468,
-0.2609949707984924... |
func Union(a, operand []string) []string {
uniq := make(map[string]bool, len(a)+len(operand))
for _, elem := range a {
uniq[elem] = true
}
for _, elem := range operand {
uniq[elem] = true
}
union := make([]string, len(uniq))
i := 0
for k := range uniq {
union[i] = k
i++
}
return union[:i]
} | [
-0.5786548256874084,
-0.21731562912464142,
0.6194093227386475,
-0.34972238540649414,
-0.23235175013542175,
-0.19095638394355774,
0.0482843741774559,
0.1994771957397461,
0.6514105796813965,
1.2378708124160767,
0.18985207378864288,
1.110342264175415,
-0.17690739035606384,
-0.6537990570068359... |
func Now() time.Time { return time.Now() } | [
0.13367529213428497,
-0.7634769678115845,
0.3933856785297394,
0.6313154697418213,
-0.14192581176757812,
0.3712238669395447,
-0.20127533376216888,
0.3458702564239502,
-0.9317842721939087,
0.10192541778087616,
-0.8709639310836792,
0.15144577622413635,
0.4007376432418823,
0.28277987241744995,... |
func ParseTime(format, operand string) (time.Time, error) { return time.Parse(format, operand) } | [
0.23976808786392212,
-0.5374720096588135,
0.5476933121681213,
0.24441976845264435,
-0.7681683301925659,
0.11368894577026367,
-1.4350091218948364,
-0.418518602848053,
-0.35472992062568665,
0.6611289381980896,
0.19346857070922852,
0.188580721616745,
-0.6681437492370605,
-0.3798125386238098,
... |
func Matches(pattern string, operand string) (bool, error) {
return regexp.MatchString(pattern, operand)
} | [
-0.747689962387085,
-0.5680249929428101,
0.39889636635780334,
-0.22115442156791687,
-0.4673461616039276,
0.831658124923706,
-0.41416069865226746,
0.3314807713031769,
0.17908909916877747,
0.11087903380393982,
-0.03391698747873306,
0.28193238377571106,
-0.6233978271484375,
-1.664897322654724... |
func CompileRegex(pattern string) (*regexp.Regexp, error) { return regexp.Compile(pattern) } | [
-0.3241432309150696,
-0.4746670424938202,
0.3506890833377838,
0.13550665974617004,
-0.011010365560650826,
0.9533053636550903,
0.17525582015514374,
0.5757659673690796,
0.09697636216878891,
-0.38956424593925476,
-0.8442600965499878,
0.9374070763587952,
-0.05109298601746559,
-0.4178466796875,... |
func CompileERE(pattern string) (*regexp.Regexp, error) { return regexp.CompilePOSIX(pattern) } | [
-0.06808508932590485,
-0.7372246980667114,
0.43987318873405457,
0.5334221124649048,
-0.16770853102207184,
0.14760372042655945,
0.09700510650873184,
1.031355381011963,
0.12136273831129074,
-0.2367836982011795,
0.01747755892574787,
-0.7767229080200195,
-0.12559552490711212,
0.295914798974990... |
func QuoteRegex(operand string) string { return regexp.QuoteMeta(operand) } | [
-0.6571667194366455,
-0.637932300567627,
0.3823292851448059,
-0.4614870250225067,
0.3939416706562042,
0.2707861661911011,
-0.4529667794704437,
0.5751168727874756,
-0.13924095034599304,
0.10270395874977112,
0.1426089107990265,
1.741742730140686,
0.24729642271995544,
-0.7955588102340698,
0... |
func Base64Encode(operand string) string { return base64.StdEncoding.EncodeToString([]byte(operand)) } | [
-0.05331360548734665,
-0.13520562648773193,
0.3514181673526764,
1.1667876243591309,
-0.5511744022369385,
0.8028229475021362,
-0.003246281761676073,
-0.21566270291805267,
0.36596402525901794,
1.138195276260376,
0.6050591468811035,
0.6493399143218994,
-0.8443419933319092,
-1.0096180438995361... |
func Base64Decode(operand string) (string, error) {
bytes, err := base64.StdEncoding.DecodeString(operand)
return string(bytes), err
} | [
0.2687460780143738,
-0.5215135216712952,
0.5316367745399475,
0.7153941988945007,
-1.0081019401550293,
0.296278178691864,
-0.3723686933517456,
0.09285818785429001,
0.06255623698234558,
0.5414890646934509,
0.5138850212097168,
0.699587345123291,
-0.8751051425933838,
-1.2365965843200684,
1.2... |
func ParseBool(operand string) (value bool, err error) { return strconv.ParseBool(operand) } | [
-0.15173789858818054,
-0.23101706802845,
0.48591920733451843,
0.794144332408905,
-1.0775120258331299,
0.23858655989170074,
0.2004745602607727,
0.3008454144001007,
-0.08791907131671906,
0.2083570510149002,
-0.27901867032051086,
0.6626707911491394,
0.21721212565898895,
-1.1314784288406372,
... |
func ParseInt(operand string) (value int, err error) {
i64, err := strconv.ParseInt(operand, 0, 32)
return int(i64), err
} | [
0.006965415086597204,
-0.2863348126411438,
0.440957635641098,
-0.6796276569366455,
-1.6100925207138062,
0.20473359525203705,
0.571000337600708,
-0.3151373267173767,
-0.829412043094635,
-0.6662930846214294,
0.03643742948770523,
0.755559504032135,
-0.11074254661798477,
-1.1901553869247437,
... |
func ParseFloat(operand string) (f float64, err error) { return strconv.ParseFloat(operand, 64) } | [
0.6675376296043396,
0.41941338777542114,
0.35098353028297424,
0.13227029144763947,
-1.3858411312103271,
-1.0318866968154907,
-0.18673075735569,
-0.2592182755470276,
-0.42038798332214355,
-0.7673836946487427,
0.5054137110710144,
0.4217967987060547,
-0.1523228883743286,
0.01210049819201231,
... |
func ParseURL(operand string) (url *url.URL, err error) { return url.Parse(operand) } | [
-0.3419998586177826,
-0.14288939535617828,
0.4437273442745209,
0.7996768355369568,
-1.0689325332641602,
0.7398730516433716,
0.1398247927427292,
0.3315255045890808,
0.16235104203224182,
-0.2959747314453125,
-0.047293245792388916,
0.33658549189567566,
0.04794231802225113,
-0.6552714109420776... |
func Abs(operand int) int {
if operand < 0 {
return operand * -1
}
return operand
} | [
-1.1304208040237427,
-0.4322589635848999,
0.37024879455566406,
0.19093237817287445,
-1.254539132118225,
1.0221256017684937,
-0.08818386495113373,
-0.4220300018787384,
-0.10186845064163208,
-0.2026471644639969,
0.4178001284599304,
1.306330919265747,
0.34977954626083374,
-0.01392443757504224... |
func Add(a, operand int) int { return operand + a } | [
-0.7258260846138,
-0.8719658851623535,
0.40820351243019104,
-0.45491090416908264,
-1.0469821691513062,
0.8306734561920166,
0.38465338945388794,
-0.055655188858509064,
0.6836472153663635,
-0.2515711784362793,
0.4868437349796295,
1.2632509469985962,
-0.3242857754230499,
-0.20827776193618774,... |
func Subtract(a, operand int) int { return operand - a } | [
-0.28699246048927307,
-0.04821855574846268,
0.18748490512371063,
-0.776582658290863,
-1.0807632207870483,
0.6293928027153015,
1.03538179397583,
0.20553866028785706,
0.18261300027370453,
-0.34405118227005005,
0.19497895240783691,
0.6919650435447693,
-0.4079280495643616,
-0.850057065486908,
... |
func Divide(a, operand int) int { return operand / a } | [
-0.48421478271484375,
-0.6442893743515015,
0.1865742951631546,
-0.03939012810587883,
-0.7115496397018433,
0.5389865040779114,
0.7785840630531311,
-0.18866586685180664,
0.1794196367263794,
-0.25454503297805786,
0.512132465839386,
0.7539392709732056,
-0.3807172179222107,
-0.08500541746616364... |
func Modulo(a, operand int) int { return operand % a } | [
-0.7547171711921692,
-0.10313855111598969,
0.2355564534664154,
-0.5704031586647034,
-0.8364312052726746,
0.7572463750839233,
0.22302879393100739,
0.19447241723537445,
0.29469338059425354,
-0.3358147442340851,
0.640544593334198,
1.0730193853378296,
-0.45230725407600403,
-0.5096244215965271,... |
func Multiply(a, operand int) int { return operand * a } | [
-1.1969034671783447,
-0.30787625908851624,
0.32002171874046326,
-0.2528379261493683,
-0.7075013518333435,
0.18483556807041168,
0.005989219062030315,
-0.6462765336036682,
0.4807473123073578,
-0.029393654316663742,
0.08101048320531845,
0.2356550097465515,
-0.1592930555343628,
-0.358255654573... |
func Min(a, operand int) int {
if a < operand {
return a
}
return operand
} | [
0.09819898754358292,
-0.6563732624053955,
0.05497172102332115,
-0.34876200556755066,
-1.7116034030914307,
0.545579195022583,
0.03199780359864235,
-0.9240199327468872,
0.36861440539360046,
-0.3227022886276245,
0.8741709589958191,
1.008359670639038,
0.014533624053001404,
-0.353126585483551,
... |
func Max(a, operand int) int {
if a > operand {
return a
}
return operand
} | [
-0.1381182074546814,
0.15460330247879028,
0.1859394609928131,
0.345883309841156,
-1.1941230297088623,
0.40859127044677734,
-0.28590691089630127,
-0.691152811050415,
0.014700932428240776,
0.3381182849407196,
0.6803489327430725,
1.4195175170898438,
0.23274824023246765,
-0.4717768132686615,
... |
func InSequence(ch chan Result, work []int) []Result {
results := make([]Result, len(work))
go buildInSeq(ch, work, results)
return results
} | [
-1.5622514486312866,
-0.33321914076805115,
0.4555348753929138,
0.6451507210731506,
0.30920326709747314,
-1.373093843460083,
-0.29348352551460266,
-0.06645882874727249,
-0.5539088249206543,
0.5701616406440735,
-1.1576412916183472,
0.2622986435890198,
-1.077480673789978,
0.3030451834201813,
... |
func InParallel(ch chan Result, work []int) []Result {
results := make([]Result, len(work))
var mutex = &sync.Mutex{}
for i, num := range work {
go func(w int, res *Result, ch chan Result) {
*res = executeWork(w)
mutex.Lock()
ch <- *res
mutex.Unlock()
}(num, &results[i], ch)
}
return results
} | [
-0.46690768003463745,
0.46128585934638977,
0.930189847946167,
0.2701389193534851,
-0.6093597412109375,
-0.5132745504379272,
-0.026758546009659767,
-0.35364383459091187,
-0.1873553842306137,
0.3333771824836731,
-0.8824154734611511,
0.31282544136047363,
-1.0288976430892944,
-0.11546717584133... |
func executeWork(num int) Result {
time.Sleep(time.Duration(num) * SleepUnit)
return Result(num)
} | [
-1.3131542205810547,
1.2237718105316162,
0.6997184753417969,
0.7732657194137573,
-0.027098922058939934,
0.4091678559780121,
0.430937796831131,
-0.7243846654891968,
-0.11753816157579422,
-0.4695953130722046,
-0.7305863499641418,
-0.47479119896888733,
-0.9118043184280396,
-1.173525333404541,... |
func (spitterImpl *SpitterImpl) SpittingWebToNest() spiders.Nest {
return spitterImpl.spittingWebToNestImpl
} | [
-0.39483642578125,
0.01966949552297592,
0.25883522629737854,
-0.621748149394989,
-0.1207800954580307,
0.7066739797592163,
1.1500974893569946,
-0.29100513458251953,
0.14815694093704224,
-0.46395382285118103,
-1.3042508363723755,
0.8096474409103394,
-1.1850926876068115,
0.5465373396873474,
... |
func (spitterImpl *SpitterImpl) Spit(nest spiders.Nest) bool {
return spitterImpl.RunOnServer("spit", map[string]interface{}{
"nest": nest,
}).(bool)
} | [
-1.5873324871063232,
0.36709538102149963,
0.3204757273197174,
-0.3631536364555359,
-0.16579893231391907,
0.6753286123275757,
0.27667492628097534,
0.2549954652786255,
-0.29296571016311646,
-0.2688640058040619,
-0.6619076728820801,
0.23737351596355438,
-0.8600019216537476,
0.6587718725204468... |
func (spitterImpl *SpitterImpl) InitImplDefaults() {
spitterImpl.SpiderlingImpl.InitImplDefaults()
spitterImpl.spittingWebToNestImpl = nil
} | [
0.04722074046730995,
0.7506386041641235,
0.22376440465450287,
-0.28350964188575745,
0.4509333372116089,
0.4606832265853882,
0.9041813611984253,
1.2851423025131226,
-0.13681066036224365,
0.043139129877090454,
-2.0886709690093994,
0.23085661232471466,
-0.8288193941116333,
1.590601921081543,
... |
func (spitterImpl *SpitterImpl) DeltaMerge(
deltaMerge base.DeltaMerge,
attribute string,
delta interface{},
) (bool, error) {
merged, err := spitterImpl.SpiderlingImpl.DeltaMerge(
deltaMerge,
attribute,
delta,
)
if merged || err != nil {
return merged, err
}
spidersDeltaMerge, ok := deltaMerge.(DeltaM... | [
-1.5876792669296265,
0.49989908933639526,
0.9175724983215332,
-0.21401844918727875,
0.011028979904949665,
0.7947706580162048,
0.005900088232010603,
0.5362525582313538,
0.3373173177242279,
-0.3977881669998169,
-0.641313910484314,
-0.5966452360153198,
-0.9123257398605347,
1.10459566116333,
... |
func PingHandler(formatter *render.Render) http.HandlerFunc {
return func(w http.ResponseWriter, req *http.Request) {
formatter.JSON(w, http.StatusOK, struct{ Message string }{"Payments API is up and running !!"})
}
} | [
-0.649980366230011,
-0.7282183766365051,
0.5940685272216797,
-0.13910481333732605,
-0.78053218126297,
0.38371795415878296,
-0.15110212564468384,
0.5782821774482727,
-0.21623505651950836,
0.9241619110107422,
0.08777341991662979,
-0.8435860276222229,
-0.16337426006793976,
-0.0783592313528060... |
func MakePaymentHandler(formatter *render.Render) http.HandlerFunc {
return func(w http.ResponseWriter, req *http.Request) {
log.Printf("Make payment handler function")
fmt.Println("Make payment handler router function")
var payment model.Payment
_ = json.NewDecoder(req.Body).Decode(&payment)
transactionID, ... | [
-0.34794363379478455,
-0.09550824016332626,
0.6113520860671997,
-0.5486017465591431,
-0.9697765111923218,
-0.10780391097068787,
0.449770450592041,
0.400987446308136,
0.2070285677909851,
0.4224649965763092,
0.27863389253616333,
-0.45297616720199585,
0.5675641894340515,
-0.1448875069618225,
... |
func (mc *MouseCannon) StateEntry() {
for i := 0; i < 20; i++ {
mc.bullets = append(mc.bullets,
&Bullet{
color: sdl.Color{255, 0, 0, 255},
posRect: &sdl.Rect{0, 0, 2, 2},
})
engine.Register(mc.bullets[i])
}
} | [
0.14127400517463684,
-0.2015087753534317,
0.4432322084903717,
-0.73506098985672,
0.7060249447822571,
-0.23975200951099396,
0.07663798332214355,
-0.19943195581436157,
0.30575427412986755,
0.6124847531318665,
-1.1965868473052979,
0.7799880504608154,
0.23427467048168182,
0.902938961982727,
... |
func (mc *MouseCannon) isArmed() bool {
return mc.armed
} | [
0.2388758659362793,
-1.5129480361938477,
0.5429640412330627,
0.1305696815252304,
0.09081614762544632,
0.49082839488983154,
-1.3565138578414917,
0.09350065886974335,
0.5425872206687927,
-0.04657696560025215,
-0.09287459403276443,
0.7112125754356384,
-0.7087573409080505,
0.7322167754173279,
... |
func Kinds() []Kind {
var out []Kind
for k := range kinds {
out = append(out, k)
}
return out
} | [
-0.6148566007614136,
0.3346422612667084,
0.23031798005104065,
0.10970276594161987,
-0.04894160479307175,
0.3298744857311249,
-1.0005762577056885,
-0.9692619442939758,
-0.44996240735054016,
-0.3951597809791565,
-0.23602524399757385,
1.7687745094299316,
-0.2461843490600586,
0.817855179309845... |
func (k Kind) String() string {
if kinds[k] {
return string(k)
}
if k == KindUnknown {
return "unknown"
}
return string(k)
} | [
-0.07636726647615433,
-0.5926578640937805,
0.2900146245956421,
-0.2826179563999176,
-0.5059213638305664,
1.1068527698516846,
-0.08604076504707336,
-1.245671033859253,
-0.5189445614814758,
0.29347535967826843,
0.7000543475151062,
1.1688148975372314,
-0.014588466845452785,
-0.215909287333488... |
func (k Kind) OK() error {
if k == KindUnknown {
return errors.New("invalid kind")
}
if !kinds[k] {
return errors.New("unsupported kind provided")
}
return nil
} | [
0.2822418808937073,
-0.08786377310752869,
0.3533180058002472,
0.28494858741760254,
-0.24193580448627472,
0.9439378380775452,
-0.24634887278079987,
0.14080944657325745,
-0.25472697615623474,
1.4279167652130127,
-0.018802300095558167,
1.2139124870300293,
0.526128888130188,
0.7412883043289185... |
func (k Kind) ResourceType() influxdb.ResourceType {
switch k {
case KindBucket:
return influxdb.BucketsResourceType
case KindCheck, KindCheckDeadman, KindCheckThreshold:
return influxdb.ChecksResourceType
case KindDashboard:
return influxdb.DashboardsResourceType
case KindLabel:
return influxdb.LabelsReso... | [
0.7828729748725891,
-0.12986089289188385,
0.3137359619140625,
-0.006641732063144445,
1.023659348487854,
-0.11102498322725296,
0.35701945424079895,
-0.24065609276294708,
0.5355819463729858,
0.43949535489082336,
0.7939714789390564,
0.32379481196403503,
-0.3599483370780945,
0.2992710769176483... |
func (s SafeID) Encode() ([]byte, error) {
id := platform.ID(s)
b, _ := id.Encode()
return b, nil
} | [
0.04970782622694969,
0.6302337646484375,
0.059920523315668106,
0.9599155187606812,
-0.10775360465049744,
0.5037147402763367,
-0.18532054126262665,
-0.6519607901573181,
0.21627303957939148,
0.35847318172454834,
-0.6482312679290771,
0.7741843461990356,
-1.4532593488693237,
0.0038199531845748... |
func (s SafeID) String() string {
return platform.ID(s).String()
} | [
0.8332169055938721,
-0.8007893562316895,
-0.026441071182489395,
-0.044511571526527405,
-0.39550989866256714,
1.5713794231414795,
0.6010730266571045,
-1.347190260887146,
0.17256975173950195,
0.1568419188261032,
-0.596844494342804,
0.7150930762290955,
-0.9399592280387878,
-0.623823344707489,... |
func (d DiffIdentifier) IsNew() bool {
return d.ID == 0
} | [
-1.288691759109497,
-0.29927679896354675,
0.2923421561717987,
0.05882440507411957,
0.027248864993453026,
0.20334669947624207,
-0.751112163066864,
-0.3573076128959656,
-0.12462610006332397,
-0.6099627017974854,
-0.7986719608306885,
0.2062094658613205,
0.459430992603302,
1.4137985706329346,
... |
func (d Diff) HasConflicts() bool {
for _, b := range d.Buckets {
if b.hasConflict() {
return true
}
}
for _, l := range d.Labels {
if l.hasConflict() {
return true
}
}
for _, v := range d.Variables {
if v.hasConflict() {
return true
}
}
return false
} | [
-0.5738774538040161,
-0.00818443764001131,
0.828557550907135,
-0.8095953464508057,
0.9827596545219421,
-0.24062325060367584,
0.24441267549991608,
-0.3346598148345947,
-0.9177205562591553,
-0.7358002066612244,
-0.45152345299720764,
-0.9852792620658875,
-0.33116012811660767,
0.90651804208755... |
func (d DiffCheckValues) MarshalJSON() ([]byte, error) {
if d.Check == nil {
return json.Marshal(nil)
}
return json.Marshal(d.Check)
} | [
-0.34346064925193787,
0.3630712330341339,
0.20689237117767334,
0.8526923656463623,
0.3534568250179291,
0.1801956743001938,
0.4242381453514099,
1.0851200819015503,
0.4399481415748596,
-0.21457524597644806,
0.17756612598896027,
0.49466726183891296,
-0.03576821833848953,
1.7450073957443237,
... |
func (d *DiffCheckValues) UnmarshalJSON(b []byte) (err error) {
d.Check, err = icheck.UnmarshalJSON(b)
if errors2.EInternal == errors2.ErrorCode(err) {
return nil
}
return err
} | [
-1.123786211013794,
0.7083383202552795,
0.5402109622955322,
-0.02939721755683422,
-0.06665065139532089,
0.5834856629371643,
1.0243080854415894,
0.7291722297668457,
-0.4564608633518219,
-0.1111215278506279,
-0.06864646822214127,
0.08346541225910187,
-0.3989161550998688,
1.0787423849105835,
... |
func (d DiffNotificationEndpointValues) MarshalJSON() ([]byte, error) {
if d.NotificationEndpoint == nil {
return json.Marshal(nil)
}
return json.Marshal(d.NotificationEndpoint)
} | [
0.06927917897701263,
0.48361265659332275,
0.22938475012779236,
0.6264782547950745,
0.42864757776260376,
0.6901342272758484,
0.3231281638145447,
0.34859442710876465,
-0.10243845731019974,
0.22316312789916992,
-0.45596709847450256,
0.4100261330604553,
0.2268071174621582,
1.5439611673355103,
... |
func (d *DiffNotificationEndpointValues) UnmarshalJSON(b []byte) (err error) {
d.NotificationEndpoint, err = endpoint.UnmarshalJSON(b)
if errors2.EInvalid == errors2.ErrorCode(err) {
return nil
}
return
} | [
-0.7383613586425781,
0.8685200214385986,
0.41297438740730286,
0.03509343042969704,
-0.1463598906993866,
0.6466013789176941,
0.7295974493026733,
0.3894475996494293,
-0.5388308167457581,
0.31699520349502563,
-0.41758111119270325,
-0.21111880242824554,
-0.28124403953552246,
0.7442126274108887... |
func (s *SummaryChart) MarshalJSON() ([]byte, error) {
b, err := influxdb.MarshalViewPropertiesJSON(s.Properties)
if err != nil {
return nil, err
}
type alias SummaryChart
out := struct {
Props json.RawMessage `json:"properties"`
alias
}{
Props: b,
alias: alias(*s),
}
return json.Marshal(out)
} | [
0.4880172610282898,
0.012267092242836952,
0.4458703398704529,
-0.5261971354484558,
-0.9097661375999451,
-0.03292736038565636,
0.4706757366657257,
-0.11333341896533966,
0.8942213654518127,
-0.3068423569202423,
0.04720848798751831,
0.8851648569107056,
0.4503999650478363,
-0.00469444040209054... |
func (s *SummaryChart) UnmarshalJSON(b []byte) error {
type alias SummaryChart
a := (*alias)(s)
if err := json.Unmarshal(b, a); err != nil {
return err
}
s.XPosition = a.XPosition
s.XPosition = a.YPosition
s.Height = a.Height
s.Width = a.Width
vp, err := influxdb.UnmarshalViewPropertiesJSON(b)
if err != ni... | [
-0.10551604628562927,
0.1358668953180313,
0.5490344166755676,
-1.1391741037368774,
-1.295243740081787,
-0.08124887198209763,
0.6913158893585205,
-0.15160265564918518,
0.74685138463974,
-0.21230266988277435,
-0.39379051327705383,
0.3013679087162018,
0.44346538186073303,
-0.22009675204753876... |
func (s *SummaryNotificationEndpoint) UnmarshalJSON(b []byte) error {
var a struct {
SummaryIdentifier
NotificationEndpoint json.RawMessage `json:"notificationEndpoint"`
LabelAssociations []SummaryLabel `json:"labelAssociations"`
}
if err := json.Unmarshal(b, &a); err != nil {
return err
}
s.SummaryIde... | [
-0.5589941143989563,
0.09984475374221802,
0.5131186842918396,
-0.5772660970687866,
-0.5157076120376587,
0.31672996282577515,
0.7705016732215881,
0.6119961142539978,
0.19338026642799377,
0.9281325340270996,
-0.6669101119041443,
-0.0775049477815628,
0.25572365522384644,
-0.3309708535671234,
... |
func CheckAuth(c *gin.Context) {
} | [
0.12422563135623932,
-1.0461328029632568,
0.2811722159385681,
2.1353652477264404,
0.7794924378395081,
0.5170266628265381,
1.5891563892364502,
0.9661771655082703,
0.1668829619884491,
0.12019932270050049,
0.6523834466934204,
0.8589773774147034,
0.02147865481674671,
-0.06690195947885513,
-0... |
func Random(length int, letters string) string {
bytes := make([]byte, length)
// A src.Int63() generates 63 random bits, enough for letterIdxMax characters!
for index, cache, remain := length-1, randomize.Int63(), letterIdxMax; index >= 0; {
if remain == 0 {
cache, remain = randomize.Int63(), letterIdxMax
}
... | [
-0.6748889684677124,
0.2894500195980072,
0.28575778007507324,
-0.5179343223571777,
-0.9587720036506653,
0.23590117692947388,
-0.08976511657238007,
-0.8425422310829163,
1.4573299884796143,
0.11904050409793854,
-0.012425431050360203,
0.7909793853759766,
-0.9367511868476868,
-0.87409454584121... |
func (s *StatFS) Fetch() error {
return syscall.Statfs(s.path, &s.stat)
} | [
0.9779477119445801,
-0.9237226843833923,
0.1539904773235321,
-0.00906032882630825,
0.026609789580106735,
-0.2697593867778778,
-0.012519408948719501,
-0.2764821946620941,
0.25703704357147217,
-1.2397067546844482,
0.3820556700229645,
0.4361323416233063,
1.0376778841018677,
0.934315025806427,... |
func (s *StatFS) MaxFiles(size int) int {
return int(s.stat.Bfree / (uint64(size) / uint64(s.stat.Bsize)))
} | [
1.2418614625930786,
0.8625420928001404,
0.4706210494041443,
0.42932629585266113,
-0.584071159362793,
-0.3133564889431,
0.468531996011734,
0.34055790305137634,
0.534822940826416,
-0.11673418432474136,
0.13269838690757751,
-0.31909438967704773,
-0.8171135783195496,
0.6770590543746948,
-0.7... |
func (s *StatFS) BlockFiles(size int) int {
return size / int(s.stat.Bsize)
} | [
0.5868095755577087,
0.9499871134757996,
0.6622051000595093,
0.638657808303833,
-0.5718573331832886,
-0.027145132422447205,
1.09747314453125,
-0.47449803352355957,
-0.1729220598936081,
0.3925601541996002,
-0.2915242910385132,
-0.27883657813072205,
-0.9467039108276367,
0.46797993779182434,
... |
func DialAsQuicClient(ctx context.Context, hostname string, port int) (quic.Session, error) {
// TODO(jophba): Change InsecureSkipVerify
tlsConfig := &tls.Config{InsecureSkipVerify: true}
addr := fmt.Sprintf("%s:%d", hostname, port)
session, err := quic.DialAddrContext(ctx, addr, tlsConfig, nil)
return session, er... | [
0.12628772854804993,
-0.9620726704597473,
0.44317394495010376,
-1.1657246351242065,
-0.381593257188797,
-0.37527698278427124,
0.45598459243774414,
-1.375317096710205,
0.2563040852546692,
-0.338017076253891,
0.20897378027439117,
0.5738922357559204,
0.09155155718326569,
-1.4431601762771606,
... |
func (e *Element) DSL() func() { return e.DSLFunc } | [
0.4609733521938324,
0.2609645128250122,
0.289453387260437,
0.6551476716995239,
-0.4507879912853241,
0.11154547333717346,
0.76324862241745,
0.5042649507522583,
1.5510624647140503,
-1.0604636669158936,
-0.8959578275680542,
0.0634598582983017,
1.5381176471710205,
-0.8803247809410095,
-0.165... |
func (e *Element) Finalize() {
for _, rel := range e.Relationships {
rel.Finalize()
}
} | [
-0.28977712988853455,
0.07777392119169235,
0.5264866352081299,
-0.2177077978849411,
1.141954779624939,
0.2686760723590851,
0.22485215961933136,
-0.48108604550361633,
0.3338887095451355,
-0.17215293645858765,
0.5830768942832947,
-0.36377936601638794,
-0.6872748136520386,
0.542154848575592,
... |
func (e *Element) GetElement() *Element { return e } | [
0.19523392617702484,
0.20991045236587524,
0.4005281329154968,
0.5150496363639832,
0.8586119413375854,
0.7589132785797119,
1.004367470741272,
-0.15219195187091827,
0.749876856803894,
-1.3402611017227173,
-0.005760351661592722,
1.1961441040039062,
0.12042970210313797,
0.3851141333580017,
0... |
func (e *Element) MergeTags(tags ...string) {
e.Tags = mergeTags(e.Tags, tags)
} | [
0.028558360412716866,
1.2220345735549927,
0.11993852257728577,
0.574571430683136,
1.1806968450546265,
0.2791820466518402,
-1.6215121746063232,
-0.30954864621162415,
-0.20265939831733704,
-0.44575971364974976,
-1.3022115230560303,
-0.23225264251232147,
-0.26182979345321655,
1.20176053047180... |
func (e *Element) PrefixTags(tags ...string) {
prefix := strings.Join(tags, ",")
if e.Tags == "" {
e.Tags = prefix
return
}
e.Tags = mergeTags(prefix, strings.Split(e.Tags, ","))
} | [
0.7129138112068176,
1.0732898712158203,
0.22507083415985107,
0.25101637840270996,
0.9648151397705078,
-0.4818139374256134,
-1.0941951274871826,
-0.20071931183338165,
0.5142267942428589,
0.5325720310211182,
-0.5297773480415344,
-0.040534280240535736,
-0.37610840797424316,
1.1923973560333252... |
func mergeTags(existing string, tags []string) string {
if existing == "" {
return strings.Join(tags, ",")
}
old := strings.Split(existing, ",")
var merged []string
for _, o := range old {
found := false
for _, tag := range tags {
if tag == o {
found = true
break
}
}
if !found {
merged =... | [
0.25018829107284546,
-0.49297016859054565,
0.6881158351898193,
-0.094599649310112,
0.2344728261232376,
-0.5174388289451599,
-1.4337929487228394,
0.09250222891569138,
-0.5531919598579407,
0.4047563970088959,
0.0827467143535614,
0.43746745586395264,
-0.4954398572444916,
0.7958607077598572,
... |
func suspend() {} | [
0.15426823496818542,
-1.1240723133087158,
0.05238999053835869,
0.6274922490119934,
-0.5745003819465637,
0.48397839069366455,
1.4527848958969116,
-0.16485388576984406,
-0.031681835651397705,
-0.7801503539085388,
-1.0716361999511719,
0.10680840164422989,
-1.0982191562652588,
0.57378721237182... |
func Do(opts ...string) int {
colorCyan, colorReset := utils.DefColor(36)
log.Printf("%sgit %s%s\n", colorCyan, strings.Join(opts, " "), colorReset)
return utils.RunCmd("git", opts...)
} | [
-0.10770085453987122,
1.023766040802002,
0.867955207824707,
-0.283248633146286,
0.6125345230102539,
0.30155542492866516,
-0.348989337682724,
-0.47785311937332153,
-0.5545367002487183,
0.3093201220035553,
-0.6083839535713196,
1.6066930294036865,
-0.5224811434745789,
-0.08941090106964111,
... |
func Get(opts ...string) (string, error) {
gotrace.Trace("RUNNING: git %s", strings.Join(opts, " "))
out, err := exec.Command("git", opts...).Output()
return string(out), err
} | [
-0.5516662001609802,
0.010526208207011223,
0.6499557495117188,
-0.5403153300285339,
0.20318269729614258,
0.10336316376924515,
-0.887578010559082,
-0.7285160422325134,
-0.9706922173500061,
0.042946457862854004,
0.7119579911231995,
1.495697021484375,
-0.8352978229522705,
-0.7218858003616333,... |
func Commit(msg string, errorIfEmpty bool) error {
s := Status()
if len(s.Added) == 0 {
return fmt.Errorf("No files added. Please check.")
}
if Do("commit", "-m", msg) > 0 {
return fmt.Errorf("Unable to commit.")
}
return nil
} | [
0.252377986907959,
0.16330429911613464,
0.6862519383430481,
0.639644205570221,
0.2153046429157257,
0.8731238842010498,
0.7521512508392334,
0.3845439851284027,
-0.675370454788208,
0.9478815793991089,
0.5728311538696289,
-0.24465204775333405,
-0.734691321849823,
0.9143267273902893,
-0.0774... |
func Push() error {
if Do("push") > 0 {
return fmt.Errorf("Unable to push commits.")
}
return nil
} | [
0.8414096236228943,
1.8757046461105347,
0.3267157971858978,
0.39444100856781006,
0.5024752020835876,
0.213948056101799,
-0.21575964987277985,
-0.5220441222190857,
-0.6614958643913269,
0.7486647963523865,
0.4503204822540283,
1.15602445602417,
-0.34923091530799866,
0.7649911046028137,
1.26... |
func NewLimitedWriter(w io.WriteCloser, options ...LimitedWriterOption) io.WriteCloser {
for _, o := range options {
w = o(w)
}
return NewSyncedWriteCloser(w)
} | [
0.10550304502248764,
-0.13236935436725616,
0.37742388248443604,
0.9612801671028137,
-0.22002674639225006,
-0.3139254152774811,
-0.08050504326820374,
-0.3112789988517761,
0.39137014746665955,
-0.18170705437660217,
0.12854285538196564,
-0.1755112111568451,
-1.0845425128936768,
0.497307449579... |
func WithMaxBytes(maxBytes int) LimitedWriterOption {
bytesWritten := 0
return func(w io.WriteCloser) io.WriteCloser {
preCheck := NewPreWriteCallbacks(w, func(p []byte) error {
if bytesWritten+len(p) > maxBytes {
if err := w.Close(); err != nil {
return fmt.Errorf("failed to close WriteCloser writing m... | [
0.040951065719127655,
-0.004424841143190861,
0.7486519813537598,
-0.10573358088731766,
-0.6333646774291992,
-0.46654337644577026,
-0.1465243548154831,
-0.004954023752361536,
0.7058125734329224,
0.048403263092041016,
-0.00727873994037509,
-1.1669436693191528,
-0.4475141763687134,
0.48245915... |
func (*Orden) Descriptor() ([]byte, []int) {
return file_chat_proto_rawDescGZIP(), []int{0}
} | [
-0.1593439131975174,
-0.32164815068244934,
0.357639878988266,
-0.5482542514801025,
-0.24209412932395935,
-0.5884886384010315,
0.3688800036907196,
-0.30630528926849365,
-1.349779486656189,
-0.502955973148346,
-0.2854098379611969,
0.8036245703697205,
-0.5157806277275085,
0.1314515620470047,
... |
func (*Paquete) Descriptor() ([]byte, []int) {
return file_chat_proto_rawDescGZIP(), []int{1}
} | [
0.0657944604754448,
0.1981845498085022,
0.6144471764564514,
-0.29201021790504456,
-0.32188305258750916,
0.09612434357404709,
-0.18118929862976074,
0.15388360619544983,
-0.924974799156189,
-0.34764358401298523,
-0.5402083396911621,
-0.2700602412223816,
0.20725412666797638,
0.554176807403564... |
func (*Message) Descriptor() ([]byte, []int) {
return file_chat_proto_rawDescGZIP(), []int{2}
} | [
-0.9570335149765015,
0.819049060344696,
0.6038548946380615,
0.36819538474082947,
-0.45938804745674133,
-0.012075635604560375,
-0.15007448196411133,
0.19364021718502045,
-0.8213084936141968,
-0.7727481722831726,
-0.08716968446969986,
0.05799547955393791,
0.0981970950961113,
1.35870230197906... |
func (p Path) Type() string {
return fmt.Sprintf("Path")
} | [
-0.4050951898097992,
0.018071075901389122,
0.36824682354927063,
-0.022821670398116112,
0.6270601749420166,
1.281494140625,
0.6065398454666138,
-0.3022697865962982,
0.564623236656189,
-0.25833073258399963,
0.5076465010643005,
-0.13029912114143372,
-0.5197509527206421,
0.38909250497817993,
... |
func (p Path) Freeze() {} | [
-1.277704119682312,
-0.5158483386039734,
0.21585127711296082,
0.9678041338920593,
0.6294930577278137,
1.0281085968017578,
1.014858365058899,
0.12641115486621857,
-0.20413221418857574,
-0.2891208231449127,
-0.398616760969162,
-0.5609827637672424,
-0.6388214230537415,
-0.15067382156848907,
... |
func (p Path) Truth() starlark.Bool { return starlark.True } | [
-0.034078940749168396,
-0.11618687212467194,
0.430807501077652,
-0.03593317046761513,
1.2933945655822754,
1.3348017930984497,
-0.20070700347423553,
0.8025368452072144,
-0.16497451066970825,
-0.9222962260246277,
-1.3024849891662598,
0.06372028589248657,
-0.8929756879806519,
0.12324532121419... |
func (p Path) Hash32(h hash.Hash32) { h.Write([]byte(p)) } | [
0.8476431965827942,
0.7090817093849182,
0.43329277634620667,
-0.32493916153907776,
0.8615080118179321,
1.9996814727783203,
-0.2488889843225479,
0.13350795209407806,
-0.9457356929779053,
-0.7552137970924377,
-0.20240409672260284,
-0.22266606986522675,
0.2567089796066284,
-0.0145355202257633... |
func (p Path) Hash() (uint32, error) {
return adler32.Checksum([]byte(p)), nil
} | [
0.8130891919136047,
0.5310965180397034,
0.5327603220939636,
0.47664380073547363,
-0.014992758631706238,
1.769680380821228,
0.2155776023864746,
0.9843372106552124,
0.36803728342056274,
-0.6627022624015808,
-0.30973872542381287,
0.7537962794303894,
-0.2341749221086502,
0.051757968962192535,
... |
func starlarkPath(
args starlark.Tuple,
kwargs []starlark.Tuple,
) (starlark.Value, error) {
if len(args) != 1 {
return nil, errors.Errorf(
"Expected exactly 1 positional argument; found %d",
len(args),
)
}
if len(kwargs) != 0 {
return nil, errors.Errorf(
"Expected exactly 0 positional arguments; f... | [
0.39412909746170044,
-0.1418384164571762,
0.6611660718917847,
0.0037878446746617556,
-0.5637407898902893,
-0.09584099799394608,
0.1889563947916031,
-0.44902703166007996,
-0.40818995237350464,
0.592069149017334,
0.4665457010269165,
0.5190253853797913,
-0.6546177268028259,
-0.127795830368995... |
func (gg GlobGroup) Type() string {
return fmt.Sprintf("GlobGroup")
} | [
0.11550396680831909,
0.39498603343963623,
0.20821893215179443,
-0.5390180349349976,
0.20681433379650116,
1.0592002868652344,
0.6890537142753601,
-0.8679841756820679,
-0.07886562496423721,
0.2978547215461731,
0.41984567046165466,
0.5591789484024048,
-1.094325304031372,
0.9838666319847107,
... |
func (gg GlobGroup) Freeze() {} | [
-1.214239239692688,
-0.4715481996536255,
0.14528043568134308,
0.2781444191932678,
0.1439872533082962,
0.7062777280807495,
1.1237150430679321,
-0.6687214374542236,
-0.617489755153656,
0.05139797553420067,
0.3194739520549774,
0.31479623913764954,
-1.336238145828247,
0.8560078144073486,
-0.... |
func (gg GlobGroup) Truth() starlark.Bool { return starlark.True } | [
-0.0169651061296463,
-0.0045361705124378204,
0.3615827262401581,
-0.5615180730819702,
0.492173433303833,
1.1263809204101562,
0.012879175134003162,
0.25514549016952515,
-0.4871845245361328,
-0.5339718461036682,
-0.9388485550880432,
0.5558904409408569,
-1.3711658716201782,
0.7873839735984802... |
func (gg GlobGroup) Hash32(h hash.Hash32) {
for _, p := range gg {
h.Write([]byte(p))
}
} | [
0.6887372732162476,
0.6539762020111084,
0.37289828062057495,
-0.48177844285964966,
0.7779769897460938,
1.488632321357727,
-0.13671469688415527,
-0.4322102963924408,
-1.4127875566482544,
-0.1300167739391327,
-0.04117646813392639,
0.2427973598241806,
-0.22637715935707092,
0.8259057402610779,... |
func (gg GlobGroup) Hash() (uint32, error) {
h := adler32.New()
gg.Hash32(h)
return h.Sum32(), nil
} | [
0.8090701699256897,
0.7759868502616882,
0.6411506533622742,
0.19690977036952972,
-0.4772391617298126,
1.4678289890289307,
0.8101283311843872,
-0.18264459073543549,
-0.3870323598384857,
-0.8607775568962097,
-0.23641636967658997,
1.184769630432129,
-0.8105126023292542,
0.68095862865448,
1.... |
func (s String) Hash32(h hash.Hash32) { h.Write([]byte(s)) } | [
1.4086731672286987,
0.5900654792785645,
0.404043585062027,
-0.5572277307510376,
0.31580087542533875,
1.0673692226409912,
-0.5075283050537109,
-0.19716355204582214,
-0.8486822843551636,
-0.9005454182624817,
-0.5160110592842102,
0.39069899916648865,
0.43332424759864807,
-0.3610505759716034,
... |
func (s *Sub) Type() string { return "Sub" } | [
-0.018548214808106422,
0.1502131223678589,
0.37582284212112427,
0.6159552335739136,
0.0002713869616854936,
1.2359973192214966,
0.3771897256374359,
-0.984082818031311,
0.20459063351154327,
-0.9009498357772827,
-0.42883947491645813,
1.0882058143615723,
-0.0055469064973294735,
0.3653529584407... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.