text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (bc BucketConfig) PersistentVolumeName(prefix string) string { return prefix + "-" + bc.hash() }
[ -0.3270973861217499, -1.1504918336868286, 0.5562089681625366, 0.12293887138366699, -0.35468652844429016, 0.19396190345287323, -1.0900684595108032, 0.22300195693969727, 0.2428346425294876, 0.21623773872852325, -0.027471445500850677, 0.05720817670226097, 0.23991428315639496, -0.2980050146579...
func (bc BucketConfig) Matches(endpoint, bucketName string) bool { return strings.ToLower(endpoint) == strings.ToLower(bc.Endpoint) && strings.ToLower(bucketName) == strings.ToLower(bc.Name) }
[ -0.221002995967865, -0.9708340764045715, 0.4426000714302063, -0.3639352023601532, 0.2104663848876953, 0.05352357402443886, -1.2974467277526855, -0.1483781486749649, -0.5560520887374878, -0.07034887373447418, -0.43088778853416443, 0.2963450253009796, -0.9646183252334595, -0.934596598148346,...
func (bc BucketConfig) EndpointAsURL() string { prefix := "http://" if bc.Secure { prefix = "https://" } return prefix + bc.Endpoint }
[ -0.557997465133667, -0.8283025026321411, 0.5216259956359863, -0.01648624986410141, 0.5342461466789246, 0.3466264009475708, -1.0419443845748901, -0.13649579882621765, -0.014414630830287933, 0.9278117418289185, -0.32448431849479675, 0.027965346351265907, 0.24064134061336517, -0.2096330225467...
func ReadUrl(url string) ([]byte, error) { resp, err := http.Get(url) if err != nil { return nil, err } defer resp.Body.Close() if resp.StatusCode != 200 { return nil, errors.New(url + ": " + resp.Status) } body, err := ioutil.ReadAll(resp.Body) // log.Println(url + ":", string(body)) return body, err ...
[ -0.763662576675415, -0.9724836349487305, 0.9730034470558167, 0.012079817242920399, -0.11039935797452927, 0.7862921953201294, -0.9700817465782166, 0.10893324762582779, 0.19986896216869354, 0.10667648166418076, -0.47802770137786865, 0.7953786849975586, -0.3604659140110016, -0.076155111193656...
func ParseJSON(body []byte, v interface{}) error { return json.Unmarshal(body, v) }
[ -0.43166932463645935, 0.1917029768228531, 0.40500348806381226, -0.8276848196983337, -0.9049397110939026, 0.02706907130777836, -0.4105044901371002, 0.20492196083068848, 0.5948177576065063, 0.7376173734664917, -0.8101140856742859, 1.1696890592575073, -0.27442339062690735, 0.4862367510795593,...
func ParseCSV(body []byte) ([]map[string]string, error) { slice := make([]map[string]string, 0) records, err := csv.NewReader(bytes.NewReader(body)).ReadAll() if err != nil { return slice, err } rows := len(records) for i := 1; i < rows; i++ { m := make(map[string]string) cols := len(records[i]) for j :...
[ -0.5582723021507263, -0.3705589473247528, 0.6707550287246704, -0.37859907746315, -0.5177816152572632, -0.40807434916496277, -0.2880140542984009, 0.3938233256340027, 0.2658984661102295, 0.6505807042121887, -0.6234195828437805, 0.47451290488243103, -0.16669274866580963, 0.4540426433086395, ...
func ParseSimpleDate(date string) (t time.Time, err error) { return time.Parse(SimpleDateFormat, date) }
[ -0.12835924327373505, 0.4910547435283661, 0.5145841836929321, -0.15187518298625946, -1.1655347347259521, 0.10153697431087494, -0.9717128872871399, 0.09319649636745453, 0.7185378670692444, -0.2877594232559204, -1.7143173217773438, -0.6972662210464478, -0.14169256389141083, 0.237303391098976...
func PrintMap(m map[string]string) { for k := range m { log.Println("\t",k,"=",m[k]) } }
[ -0.07050564140081406, -0.5174022316932678, 0.6484306454658508, -0.37412524223327637, -0.4951748847961426, 0.966532826423645, -0.7036433815956116, -0.06429183483123779, -0.6703255772590637, 0.6980751156806946, 0.3768915832042694, 0.47143590450286865, 0.4948464035987854, 0.9487317204475403, ...
func FindCurrentMeta(platform, requestedActivity string) (*skillserver.EchoResponse, error) { response := skillserver.NewEchoResponse() // TODO: activity hash is currently unused. may be useful to be able to request meta // for a current activity //activityHash := "" gameModes := []string{} translatedGameMode, ...
[ -0.3172214925289154, -0.9220434427261353, 0.9231787919998169, 0.04115196689963341, -0.05812764912843704, -0.4964487850666046, -0.25317567586898804, -0.762889564037323, -0.7938408851623535, 0.7425201535224915, 0.47701695561408997, 0.39446166157722473, -0.1683959811925888, 0.5026647448539734...
func LastModified(fileOrDir ...string) (time.Time, error) { var latest time.Time // TODO: does this error contain enough context? walker := func(path string, info os.FileInfo, err error) error { if err != nil { return err } if info.IsDir() && info.Name() == ".dobi" { return filepath.SkipDir } if inf...
[ -0.763611376285553, -0.27005597949028015, 0.9519323110580444, 0.2370094656944275, 0.8535090684890747, -0.12279272824525833, 0.5802685022354126, -0.05232339724898338, -0.06972798705101013, -0.06610438227653503, 0.36570385098457336, -0.18122348189353943, -0.5088261365890503, 1.22703945636749...
func (r *Inputer) Start() error { _, err := r.JetStream.Subscribe( r.InputRoomEventTopic, // We specifically don't use jetstream.WithJetStreamMessage here because we // queue the task off to a room-specific queue and the ACK needs to be sent // later, possibly with an error response to the inputter if synchron...
[ -0.06050733104348183, -0.11743900924921036, 0.7083127498626709, 0.4526885747909546, -0.16581189632415771, -0.20742478966712952, 0.1473170667886734, 0.3167697787284851, -0.4899578392505646, 0.6141665577888489, 0.029025951400399208, 1.2541402578353882, -0.5342567563056946, 0.9808912873268127...
func (c *Command) String() string { // TODO: criteria if c.Next != nil { return c.Executer.String() + ", " + c.Next.String() } return c.Executer.String() }
[ 0.4474533200263977, -0.8375512957572937, 0.3372061848640442, -0.38045069575309753, 0.36626651883125305, 0.11529745161533356, 0.3881587088108063, -0.7139734029769897, -0.1011221781373024, -0.19859462976455688, 1.0203931331634521, 0.8222646117210388, -0.323684424161911, 0.8514897227287292, ...
func (c *Command) Run(ctx context.Context) error { // TODO: criteria err := c.Exec(ctx) if err != nil { return err } if c.Next != nil { return c.Next.Run(ctx) } return nil }
[ 0.05477724224328995, 0.06646893173456192, 0.5346872806549072, -0.08639026433229446, 0.8541253209114075, 0.04663269594311714, 0.24697107076644897, 0.30952754616737366, 0.32925012707710266, -0.7997282147407532, -0.2066608965396881, 0.41947096586227417, -0.4501805901527405, 0.8641624450683594...
func cmdParse(commandStr string, config *Config) (*Command, error) { // TODO: criteria lexer := lex(commandStr) defer lexer.drain() cmdToken := lexer.nextItem() if cmdToken.typ != itemString { return nil, fmt.Errorf("expected string, got token '%s'", cmdToken.val) } // TODO: chained commands command := &Co...
[ 0.5231354236602783, -0.807446300983429, 0.5042176246643066, 0.46886637806892395, -0.24234694242477417, -0.3713248372077942, -0.7774537205696106, 0.04107845574617386, 0.2984366714954376, -1.3244715929031372, 0.6795269250869751, 0.2509218454360962, -0.3926740288734436, -0.09531059861183167, ...
func (c *Cluster) applyResourcesToAllContainers(spec *v1.PodSpec, resources v1.ResourceRequirements) { for i := range spec.InitContainers { spec.InitContainers[i].Resources = resources } for i := range spec.Containers { spec.Containers[i].Resources = resources } }
[ -0.5398080348968506, -1.1452360153198242, 0.6226810812950134, -0.11296921968460083, 0.2601621448993683, -0.5548292398452759, -0.244110107421875, 0.6469503045082092, 0.598344087600708, -0.33512136340141296, 0.461273729801178, -0.013418796472251415, 0.2194696068763733, 1.2993751764297485, ...
func TestBind(t *testing.T) { driver := NewDriver("192.168.0.1:50000") driver.onError = func(err error) { t.Error("fail", err) } driver.Start() time.Sleep(time.Second * 10) driver.Halt() }
[ 0.38817697763442993, -0.4985198974609375, 0.7524423599243164, 0.8027759790420532, 0.14158788323402405, 0.7393823862075806, 0.14026708900928497, 0.22976605594158173, 0.1959909349679947, -0.5501473546028137, 0.09118682891130447, 0.028777658939361572, -0.5228029489517212, 0.6449581980705261, ...
func bufferToString(buffer *bytes.Buffer, unsafePtr *bool) string { defer buffer.Reset()//ensure buffer is reset if !*unsafePtr { return buffer.String() } bb := buffer.Bytes() s := *(*string)(unsafe.Pointer(&bb)) return s }
[ 0.42696836590766907, -0.4880445897579193, 0.2229553759098053, -0.3914716839790344, 0.05363598093390465, 0.6148374080657959, -0.4135409891605377, -0.9738295078277588, 0.254167765378952, 0.8698908090591431, -0.15535959601402283, 1.1163573265075684, -0.8822947144508362, -1.077604055404663, ...
func usage() { fmt.Printf("Usage of %s:\n", os.Args[0]) fmt.Println(" [-unsafe] inputfile outfile search-string replace-string") fmt.Println("\nAvailable options:") flag.PrintDefaults() fmt.Printf("\nThe -unsafe flag can increase performance. The performance gain is, however, marginal\n") fmt...
[ 0.25620952248573303, -0.0963771864771843, 0.8312092423439026, -0.5161975026130676, 0.713441014289856, 0.6472817659378052, 0.6956140398979187, -0.04707225412130356, -0.9918309450149536, 0.5719249844551086, -0.04061463102698326, 1.064819574356079, -0.45593398809432983, 0.4434467554092407, ...
func openFiles(argv []string) (*os.File, *os.File) { inFile, err := os.Open(argv[0]) if err != nil { panic(err) } outFile, err := os.Create(argv[1]) if err != nil { inFile.Close()//close here panic(err) } return inFile, outFile }
[ -0.3264763355255127, -0.14046712219715118, 0.7381836771965027, -0.2630532681941986, -0.21112120151519775, 0.7142966985702515, 0.25572535395622253, 0.3056022524833679, -0.8357532024383545, 0.26428094506263733, 0.38482731580734253, 0.1608748733997345, -0.7743353843688965, 0.18083421885967255...
func openReadWrite(inFile *os.File, outFile *os.File) (*bufio.Reader, *bufio.Writer) { return bufio.NewReader(inFile), bufio.NewWriter(outFile) }
[ -0.06720709055662155, -1.3043562173843384, 0.5707309246063232, -0.7310400009155273, -0.2998632490634918, 0.193777933716774, 0.3800216317176819, 0.7757758498191833, -0.6080760955810547, -0.2682547867298126, 0.36251845955848694, -0.398102343082428, 0.12873567640781403, -0.067571260035038, ...
func GetData() (m MyIP, err error) { resp, err := http.Get(url) if err == nil { if resp.StatusCode != 400 { body, err := ioutil.ReadAll(resp.Body) bytBodyErr := []byte(body) if err == nil { _ = json.Unmarshal(bytBodyErr, &m) } } else { return m, errors.New("400 Bad Request") } } return ...
[ -1.0588499307632446, 0.01869044452905655, 1.0955182313919067, 0.015171067789196968, -0.24160334467887878, -0.02271636389195919, -1.3045215606689453, 0.30238837003707886, 0.24471786618232727, -0.4882889986038208, 0.24763159453868866, 0.6190893054008484, -0.08400945365428925, -0.339550495147...
func Base58Encode(input []byte) []byte { encode := base58.Encode(input) return []byte(encode) }
[ -0.5993610620498657, -0.7794115543365479, -0.015499125234782696, 0.6761329770088196, 0.31944045424461365, 0.1608095020055771, -0.4023646116256714, 0.6906096339225769, 1.107954740524292, 0.906538724899292, -0.8877096772193909, 0.978742241859436, -1.7934871912002563, 0.2005968987941742, 1....
func Base58Decode(input []byte) []byte { decode, err := base58.Decode(string(input[:])) if err != nil { log.Panic(err) } return decode }
[ 0.02266685850918293, -1.3992812633514404, 0.23924985527992249, 0.11869025230407715, 0.31747743487358093, 0.39064815640449524, -0.49191832542419434, 0.8124847412109375, 1.1634435653686523, 0.5386995077133179, -0.4476543366909027, 0.9584037661552429, -1.6319162845611572, -0.3303796350955963,...
func (act Action) AsInt() int { retVal := 0 if act.PlayRecent { retVal = 1 } if act.SelectedCard != None && act.SelectedCard != Guard { retVal += 2 * (int(act.SelectedCard) - 1) } else if act.TargetPlayerOffset > 0 { retVal += 2 * act.TargetPlayerOffset } return retVal }
[ -0.8814436793327332, -1.1329413652420044, 0.708276629447937, -0.659611701965332, -0.4048175811767578, -0.7260822653770447, 0.782284140586853, -0.9062157869338989, -0.2887948751449585, 0.5450745224952698, 0.24340806901454926, 0.31519651412963867, -0.09022703766822815, -0.13977733254432678, ...
func ActionFromInt(st int) Action { act := Action{} if st%2 == 1 { act.PlayRecent = true } st = (st & 0xF) >> 1 // Now st is the TargetPlayerOffset or SelectedCard. We don't know which, but if *any* card was selected, // then the other player must be targeted (since the played card is a guard), so for 2 player...
[ -1.1898839473724365, -1.1743336915969849, 0.6124106049537659, -0.6233770847320557, 0.18695054948329926, -0.5133127570152283, 0.6053354740142822, -0.8092293739318848, 1.0056085586547852, 0.1258503943681717, -0.03458242863416672, 0.6525707840919495, -0.0033262548968195915, -0.806030571460723...
func NewSyscallCounter() SyscallCounter { return SyscallCounter(make(map[string]int)) }
[ 0.7727228999137878, -0.9334505200386047, 0.3100806176662445, -0.15408127009868622, -0.8197572827339172, -0.3764112889766693, -0.5690097808837891, -0.11746169626712799, 0.49056190252304077, -0.8154186606407166, -1.3514093160629272, -0.18963748216629028, 0.5602156519889832, 1.363104939460754...
func (s SyscallCounter) Add(name string, count int) { s[name] = count }
[ 0.23700304329395294, -0.4838082492351532, 0.2979310154914856, -0.04533914849162102, -0.34460222721099854, 0.34828898310661316, -0.48079362511634827, 0.006033455953001976, 0.03880748152732849, -0.220497727394104, -1.3068008422851562, -0.4638313055038452, -0.37727412581443787, 0.755645811557...
func (s SyscallCounter) AddRange(m map[string]int) { for k, v := range m { s[k] = v } }
[ -0.6962260007858276, 0.203158900141716, 0.011361303739249706, 0.824100911617279, 0.24043364822864532, -0.14370647072792053, -0.2895154058933258, 0.44907569885253906, -0.8700588345527649, -0.5252113342285156, -0.15333859622478485, -1.0427473783493042, -0.37037378549575806, 1.462944030761718...
func (s SyscallCounter) Check(name string) (bool, bool) { n, o := s[name] if o { s[name] = n - 1 if n <= 1 { return true, false } return true, true } return false, true }
[ -0.5482998490333557, 0.519668459892273, 0.7061445713043213, 0.7674118280410767, -0.05714723467826843, 0.2601970434188843, 0.5132954120635986, -0.19092194736003876, -0.10683028399944305, 0.0837235376238823, -1.10691499710083, -0.6250181794166565, -0.22867734730243683, 1.3693703413009644, ...
func (v Vec2) MagSq() float64 { return v.X*v.X + v.Y*v.Y }
[ -0.3085309863090515, -1.2458018064498901, 0.35972270369529724, -0.6381692290306091, -0.11697201430797577, -0.7431462407112122, -1.4828417301177979, -1.053098201751709, -0.057904619723558426, -0.11116645485162735, -0.7075352668762207, 0.34524616599082947, 0.9586890339851379, 0.0869165137410...
func (v Vec2) Mag() float64 { return math.Sqrt(v.MagSq()) }
[ -0.3117483854293823, -0.700596272945404, 0.22598782181739807, 0.07403721660375595, -0.264595627784729, -0.08147136121988297, -0.906434178352356, -0.07342878729104996, -0.0830727145075798, -0.4144865870475769, 0.2057047188282013, 0.3185221552848816, 0.7921450138092041, 0.526884138584137, ...
func (v Vec2) Add(other Vec2) Vec2 { return Vec2{v.X + other.X, v.Y + other.Y} }
[ -0.24386145174503326, -1.5627930164337158, 0.7274402379989624, -0.33246010541915894, -0.022036433219909668, 0.7209473252296448, -0.4244687855243683, -1.0161176919937134, 0.6391699314117432, -0.24426527321338654, 0.04027394950389862, 0.34218379855155945, 0.27396273612976074, 0.0697451978921...
func (v Vec2) Sub(other Vec2) Vec2 { return Vec2{v.X - other.X, v.Y - other.Y} }
[ 0.38723060488700867, -1.0683925151824951, 0.49529534578323364, -0.1811228096485138, -0.7111455798149109, 0.5474039316177368, 0.06561192125082016, -0.5413015484809875, -0.01757173053920269, -0.5313916802406311, -0.657550573348999, 0.3023456037044525, 0.5052842497825623, -0.5016712546348572,...
func (request *preparedRequest) Bytes() ([]byte, error) { resp, err := request.Execute() if err != nil { return nil, err } if resp.StatusCode != http.StatusOK { msg := fmt.Sprintf("Status error: %d", resp.StatusCode) return nil, fmt.Errorf(msg) } defer resp.Body.Close() data, err := ioutil.ReadAll(resp....
[ -0.7988479137420654, 0.11216437071561813, 0.5245165228843689, -0.6409091949462891, 0.13263291120529175, 0.3858245611190796, -1.4486421346664429, -0.5047180652618408, 0.4127511978149414, -0.5364291071891785, 0.2855333983898163, 0.6627956628799438, -0.2781704068183899, 0.5952093005180359, ...
func buildFirstArrowChunk(rowsetBase64 string, loc *time.Location, alloc memory.Allocator) arrowResultChunk { rowSetBytes, err := base64.StdEncoding.DecodeString(rowsetBase64) if err != nil { return arrowResultChunk{} } rr, err := ipc.NewReader(bytes.NewReader(rowSetBytes), ipc.WithAllocator(alloc)) if err != ni...
[ -0.28559932112693787, -0.6951907277107239, 0.4437158703804016, -0.056119631975889206, -0.16071033477783203, -1.1698598861694336, -0.2328401505947113, -0.3531050980091095, 0.6953504681587219, -0.8537320494651794, 0.9579015374183655, 0.9171927571296692, 0.6538029909133911, -0.480589240789413...
func Ortho(left, right, bottom, top, near, far float64) Mat4 { rml, tmb, fmn := (right - left), (top - bottom), (far - near) return Mat4{float64(2. / rml), 0, 0, 0, 0, float64(2. / tmb), 0, 0, 0, 0, float64(-2. / fmn), 0, float64(-(right + left) / rml), float64(-(top + bottom) / tmb), float64(-(far + near) / fmn), 1...
[ 0.6237475275993347, -0.8876540660858154, 0.7671665549278259, -0.9058730602264404, -0.069508396089077, -0.17247380316257477, 0.34544986486434937, -0.9125504493713379, -0.6223350763320923, -0.02292048931121826, -0.24433615803718567, -0.4401896893978119, 0.49176186323165894, -0.25225600600242...
func Ortho2D(left, right, bottom, top float64) Mat4 { return Ortho(left, right, bottom, top, -1, 1) }
[ -0.13735857605934143, -1.5763243436813354, 0.48750802874565125, -0.17551903426647186, -0.6446012854576111, -0.13083134591579437, 0.06594860553741455, -1.687138557434082, -1.0828001499176025, -0.6090997457504272, 0.6511237025260925, 0.03031941130757332, 0.5062937140464783, -0.10784019529819...
func Perspective(fovy, aspect, near, far float64) Mat4 { // fovy = (fovy * math.Pi) / 180.0 // convert from degrees to radians nmf, f := near-far, float64(1./math.Tan(float64(fovy)/2.0)) return Mat4{float64(f / aspect), 0, 0, 0, 0, float64(f), 0, 0, 0, 0, float64((near + far) / nmf), -1, 0, 0, float64((2. * far * n...
[ 0.1827702671289444, -0.807422935962677, 0.6789873242378235, -1.1161167621612549, -0.04005139693617821, -0.24308577179908752, -0.9727369546890259, -0.5190333127975464, 0.44300317764282227, -0.12274888157844543, 0.1400013118982315, -0.6033597588539124, 0.0009618803160265088, 0.23302280902862...
func Frustum(left, right, bottom, top, near, far float64) Mat4 { rml, tmb, fmn := (right - left), (top - bottom), (far - near) A, B, C, D := (right+left)/rml, (top+bottom)/tmb, -(far+near)/fmn, -(2*far*near)/fmn return Mat4{float64((2. * near) / rml), 0, 0, 0, 0, float64((2. * near) / tmb), 0, 0, float64(A), float6...
[ -0.07065942138433456, -0.4660116732120514, 0.6395424604415894, -0.3786778450012207, 0.43663129210472107, -0.4405624270439148, 0.7837863564491272, -0.8331242799758911, 0.03652787581086159, -0.7718878984451294, -0.367777019739151, 0.5300562977790833, 0.09167589247226715, 0.12396641820669174,...
func LookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ float64) Mat4 { return LookAtV(Vec3{eyeX, eyeY, eyeZ}, Vec3{centerX, centerY, centerZ}, Vec3{upX, upY, upZ}) }
[ 0.27951255440711975, -0.7790125608444214, 0.5745934247970581, -1.0371296405792236, -0.6031087636947632, 0.1803625375032425, -0.6451307535171509, -0.9186146855354309, 0.6652175784111023, 0.13440553843975067, 0.43104949593544006, 0.06375280022621155, -0.31543490290641785, -0.7584994435310364...
func LookAtV(eye, center, up Vec3) Mat4 { f := center.Sub(eye).Normalize() s := f.Cross(up.Normalize()).Normalize() u := s.Cross(f) M := Mat4{ s[0], u[0], -f[0], 0, s[1], u[1], -f[1], 0, s[2], u[2], -f[2], 0, 0, 0, 0, 1, } return M.Mul4(Translate3D(float64(-eye[0]), float64(-eye[1]), float64(-eye[2]))) ...
[ -0.14500190317630768, -0.17348317801952362, 0.9058606624603271, -0.5740081667900085, -0.6205241680145264, -0.34479570388793945, -0.40761598944664, -0.3342948257923126, 0.19748441874980927, 0.8844540119171143, 0.3185969591140747, 0.3289538621902466, 0.3129385709762573, -0.8956632614135742, ...
func Project(obj Vec3, modelview, projection Mat4, initialX, initialY, width, height int) (win Vec3) { obj4 := obj.Vec4(1) vpp := projection.Mul4(modelview).Mul4x1(obj4) vpp = vpp.Mul(1 / vpp.W()) win[0] = float64(initialX) + (float64(width)*(vpp[0]+1))/2 win[1] = float64(initialY) + (float64(height)*(vpp[1]+1))/...
[ 0.36720702052116394, -0.0029864117968827486, 0.5533004403114319, 0.8988521695137024, -0.7150579690933228, 0.20343054831027985, 0.7568831443786621, -0.16686023771762848, 0.042526762932538986, 0.4805903732776642, 0.4701622426509857, -0.5308727622032166, -0.8891828656196594, -0.48401862382888...
func UnProject(win Vec3, modelview, projection Mat4, initialX, initialY, width, height int) (obj Vec3, err error) { inv := projection.Mul4(modelview).Inv() var blank Mat4 if inv == blank { return Vec3{}, errors.New("Could not find matrix inverse (projection times modelview is probably non-singular)") } obj4 := ...
[ 0.11754177510738373, -0.3279946744441986, 0.8187848329544067, 0.25392797589302063, -1.0738632678985596, 0.10451274365186691, 0.5591647624969482, -0.12479014694690704, -0.30440565943717957, -0.4127228558063507, 0.3243235945701599, -0.5317168235778809, -0.8140240907669067, -0.902931272983551...
func ComputeDomain(domainType DomainType, forkVersion []byte, genesisValidatorsRoot []byte) ([]byte, error) { if len(forkVersion) != 4 { return nil, errors.New("fork version must be 4 bytes in length") } if len(genesisValidatorsRoot) != 32 { return nil, errors.New("genesis validators root must be 32 bytes in len...
[ -0.6272602677345276, 0.14200371503829956, 0.55744868516922, 0.2963572144508362, 0.07793471962213516, 0.4363318681716919, -0.4339081645011902, 0.15865758061408997, -0.22049030661582947, -0.0957297757267952, -0.5592707395553589, 1.520576000213623, -0.8338650465011597, 0.6824970245361328, 0...
func Domain(domainType DomainType, forkVersion []byte, genesisValidatorsRoot []byte) []byte { // Generate fork data root from fork version and genesis validators root. forkData := &ForkData{ CurrentVersion: forkVersion, GenesisValidatorsRoot: genesisValidatorsRoot, } forkDataRoot, err := forkData.HashTre...
[ -0.6742002367973328, 0.2673622667789459, 0.421006441116333, 0.9575129747390747, -0.10098550468683243, -0.0465918593108654, -0.4587682783603668, -0.503161609172821, -0.6108341217041016, -0.3235190212726593, -0.3834725022315979, 1.675065517425537, -0.5338544249534607, 1.064904808998108, 0....
func True(baseURL string) Strategy { return authTrue{ baseURL: baseURL, } }
[ 0.07385177165269852, 0.11461462825536728, 0.41072458028793335, 0.4487391710281372, -0.4639567732810974, 0.5685597062110901, -0.7596884965896606, 0.630548357963562, 0.574135422706604, 0.18095210194587708, -0.6339604258537292, 0.446360319852829, 0.4389680325984955, -0.94881671667099, -0.05...
func (c Client) Fetch() (*FetchIncomingPhoneNumberResponse, error) { return c.FetchWithContext(context.Background()) }
[ 0.7279583811759949, -0.4062311351299286, 0.4024362564086914, 0.03045310080051422, -0.5880839824676514, 0.29411596059799194, -0.39864611625671387, -1.022039532661438, 0.6244593858718872, -0.8462820053100586, -0.002558055566623807, 0.3078901469707489, -0.240354984998703, 1.006292462348938, ...
func (c Client) FetchWithContext(context context.Context) (*FetchIncomingPhoneNumberResponse, error) { op := client.Operation{ Method: http.MethodGet, URI: "/Accounts/{accountSid}/IncomingPhoneNumbers/{sid}.json", PathParams: map[string]string{ "accountSid": c.accountSid, "sid": c.sid, }, } ...
[ 0.36039048433303833, -0.5190397500991821, 0.902317225933075, -0.4699065685272217, -1.1576495170593262, 0.030218057334423065, -0.8968274593353271, -2.0041253566741943, 0.9444129467010498, 0.2636317014694214, -0.4000163674354553, 0.41819706559181213, -0.25819727778434753, 0.3946077823638916,...
func Execute() { if err := rootCmd.Execute(); err != nil { fmt.Println(err) } }
[ 1.052836298942566, -0.6243939995765686, 0.7818662524223328, 0.846149742603302, 0.822791576385498, 0.763458251953125, -0.3336111009120941, 0.026664234697818756, -0.690308153629303, -0.586775541305542, 0.5202429890632629, 0.699790894985199, -0.3357110917568207, 0.7330715656280518, -0.11044...
func NewValidateCreateAnomalyDetectionDiskEventParams() *ValidateCreateAnomalyDetectionDiskEventParams { var () return &ValidateCreateAnomalyDetectionDiskEventParams{ timeout: cr.DefaultTimeout, } }
[ 0.7812819480895996, -0.29685524106025696, 0.3202878534793854, 1.095967173576355, 0.049106281250715256, 0.2639637589454651, 0.23599140346050262, 0.1717044711112976, -1.2830848693847656, -0.6289440989494324, 0.12087292969226837, -0.5488545894622803, 1.0993502140045166, 1.019736647605896, 0...
func NewValidateCreateAnomalyDetectionDiskEventParamsWithTimeout(timeout time.Duration) *ValidateCreateAnomalyDetectionDiskEventParams { var () return &ValidateCreateAnomalyDetectionDiskEventParams{ timeout: timeout, } }
[ 1.2526923418045044, -0.2363215684890747, 0.30773964524269104, 0.9908614754676819, 0.06833537667989731, 0.5913403034210205, -0.19291986525058746, 0.17060500383377075, -1.1342183351516724, 0.20201031863689423, 0.20971719920635223, 0.02857382781803608, 1.1179813146591187, 1.1234450340270996, ...
func NewValidateCreateAnomalyDetectionDiskEventParamsWithContext(ctx context.Context) *ValidateCreateAnomalyDetectionDiskEventParams { var () return &ValidateCreateAnomalyDetectionDiskEventParams{ Context: ctx, } }
[ 0.8221227526664734, -0.06508477032184601, 0.627918004989624, 0.6533651351928711, 0.4327837824821472, 0.5017392635345459, -0.07531746476888657, -0.43539631366729736, -0.6078084111213684, -0.263621985912323, -0.10982558131217957, -0.39001813530921936, 1.0483484268188477, 0.6496551632881165, ...
func NewValidateCreateAnomalyDetectionDiskEventParamsWithHTTPClient(client *http.Client) *ValidateCreateAnomalyDetectionDiskEventParams { var () return &ValidateCreateAnomalyDetectionDiskEventParams{ HTTPClient: client, } }
[ 0.7716162800788879, -0.5367499589920044, 0.4330219030380249, 0.9858910441398621, 0.33026832342147827, 0.615603506565094, 0.7210256457328796, -0.056504953652620316, -1.1470574140548706, -0.5975034236907959, -0.08688360452651978, -0.4876541197299957, 1.035810112953186, 0.761395275592804, -...
func (o *ValidateCreateAnomalyDetectionDiskEventParams) WithTimeout(timeout time.Duration) *ValidateCreateAnomalyDetectionDiskEventParams { o.SetTimeout(timeout) return o }
[ 1.136208176612854, 0.18257786333560944, 0.445126473903656, 0.5887444615364075, -0.036406368017196655, 0.15592923760414124, 0.3671095669269562, -0.03507443889975548, -0.3521011471748352, -0.0614188127219677, 0.335220605134964, 0.24776552617549896, 1.5661547183990479, 1.0170413255691528, 0...
func (o *ValidateCreateAnomalyDetectionDiskEventParams) SetTimeout(timeout time.Duration) { o.timeout = timeout }
[ 0.7879552841186523, 0.04279913008213043, 0.24397270381450653, 0.5710453987121582, 0.38955023884773254, 0.8495514988899231, 0.29906609654426575, 0.4435321092605591, -0.6598597168922424, 0.03115762211382389, 0.333797812461853, 0.4532763361930847, 0.6689126491546631, 1.0452587604522705, 0.4...
func (o *ValidateCreateAnomalyDetectionDiskEventParams) WithContext(ctx context.Context) *ValidateCreateAnomalyDetectionDiskEventParams { o.SetContext(ctx) return o }
[ 0.5209507942199707, 0.051145657896995544, 0.6419861316680908, 0.5216606855392456, -0.012465057894587517, 0.13455680012702942, -0.02868160605430603, -0.6208320260047913, 0.19040536880493164, -0.6237986087799072, 0.14695578813552856, -0.06101254001259804, 1.0110256671905518, 0.17018006742000...
func (o *ValidateCreateAnomalyDetectionDiskEventParams) SetContext(ctx context.Context) { o.Context = ctx }
[ 0.3567691445350647, 0.1410253942012787, 0.33728504180908203, 0.7943810820579529, 0.49361780285835266, 0.6734693646430969, -0.0851077139377594, -0.2212088704109192, 0.1253104954957962, -0.4931781589984894, 0.028739728033542633, 0.36191534996032715, 0.4193001389503479, 0.5132582187652588, ...
func (o *ValidateCreateAnomalyDetectionDiskEventParams) WithHTTPClient(client *http.Client) *ValidateCreateAnomalyDetectionDiskEventParams { o.SetHTTPClient(client) return o }
[ 0.6372812986373901, -0.8053880929946899, 0.3732270300388336, 0.1986975222826004, 0.13990063965320587, 0.24493440985679626, 0.8183671236038208, -0.5222418308258057, -0.7138142585754395, -0.9565722346305847, 0.03624795749783516, -0.1407843381166458, 1.31510591506958, 0.34088295698165894, 0...
func (o *ValidateCreateAnomalyDetectionDiskEventParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client }
[ 1.1002745628356934, -0.537359893321991, 0.20104491710662842, -0.13431718945503235, 0.11559794098138809, 0.21828627586364746, 0.8732492923736572, -0.18158864974975586, -1.188285231590271, -0.769383430480957, -0.14989137649536133, 0.4545368254184723, 0.5222013592720032, 0.2813265025615692, ...
func (o *ValidateCreateAnomalyDetectionDiskEventParams) WithBody(body *dynatrace.DiskEventAnomalyDetectionConfig) *ValidateCreateAnomalyDetectionDiskEventParams { o.SetBody(body) return o }
[ 0.28943920135498047, -0.16714967787265778, 0.4233325123786926, 0.31902673840522766, 0.565826952457428, 0.1988893300294876, 0.2212274670600891, -0.8006160259246826, 0.025762468576431274, -0.3078101575374603, -0.05708108842372894, -0.37343841791152954, 1.1256407499313354, 0.9866414070129395,...
func (o *ValidateCreateAnomalyDetectionDiskEventParams) SetBody(body *dynatrace.DiskEventAnomalyDetectionConfig) { o.Body = body }
[ 0.12350057065486908, -0.17062395811080933, 0.23914892971515656, 0.8501364588737488, 0.7012689113616943, 0.569129467010498, 0.12851455807685852, -0.4359035789966583, -0.09290476888418198, -0.17877009510993958, -0.4012906551361084, 0.10434195399284363, 0.3528250753879547, 1.313571810722351, ...
func (o *ValidateCreateAnomalyDetectionDiskEventParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Body != nil { if err := r.SetBodyParam(o.Body); err != nil { return err } } if len(res) > 0 { ...
[ -0.5648800134658813, -0.10497221350669861, 0.6847199201583862, -0.2715640366077423, 1.2637568712234497, -0.1445101648569107, 0.8630104064941406, 0.058209165930747986, -0.7792239189147949, 0.05280553176999092, 0.37630143761634827, 0.10960893332958221, 0.03470800817012787, 0.6290373206138611...
func NewParkingLotUsecase(a domain.ParkingLotRepository, timeout time.Duration) domain.ParkingLotUsecase { return &parkingLotUsecase{ parkingLotRepo: a, contextTimeout: timeout, } }
[ 0.35850512981414795, 0.09025292843580246, 0.05629947781562805, -0.01695394329726696, -1.144221544265747, -0.365229994058609, -0.5845499038696289, 0.48657286167144775, -0.17654262483119965, 1.1070338487625122, 0.5850772857666016, -0.34955936670303345, 0.0472315177321434, -0.0371523462235927...
func (p *DeploymentScriptsListByResourceGroupPager) Err() error { return p.err }
[ -0.0981711819767952, -0.6801443696022034, -0.25809547305107117, -0.11352952569723129, -0.858763575553894, 0.2471875250339508, 0.18014363944530487, 0.038963958621025085, 0.27819082140922546, -0.15302816033363342, 1.385158658027649, -0.22966088354587555, -0.06107999384403229, 1.6468251943588...
func (p *DeploymentScriptsListByResourceGroupPager) NextPage(ctx context.Context) bool { var req *policy.Request var err error if !reflect.ValueOf(p.current).IsZero() { if p.current.DeploymentScriptListResult.NextLink == nil || len(*p.current.DeploymentScriptListResult.NextLink) == 0 { return false } req, e...
[ -0.7146332263946533, 0.19323140382766724, 0.5984677076339722, -0.6520967483520508, -0.6684693694114685, 0.16596975922584534, 0.45475107431411743, -0.5671418309211731, -0.3014262020587921, 0.40562260150909424, 1.1571555137634277, -0.4087325930595398, -1.448264718055725, 1.3861205577850342, ...
func (p *DeploymentScriptsListByResourceGroupPager) PageResponse() DeploymentScriptsListByResourceGroupResponse { return p.current }
[ -0.17856919765472412, -1.5072250366210938, -0.1552160531282425, -1.2978414297103882, -0.15440158545970917, -0.40815627574920654, 0.2682632803916931, -0.5946059823036194, 0.9738696813583374, 0.7851160168647766, 1.4410759210586548, -0.5091936588287354, -1.103922724723816, 0.6481174826622009,...
func (p *DeploymentScriptsListBySubscriptionPager) Err() error { return p.err }
[ 0.5674369931221008, -0.25880327820777893, -0.13080742955207825, 0.48854100704193115, -0.5386895537376404, 0.18349958956241608, -0.41226547956466675, 0.583599328994751, 0.7103960514068604, -0.1172214075922966, 1.0683424472808838, 0.35865819454193115, 0.3158780336380005, 1.608002781867981, ...
func (p *DeploymentScriptsListBySubscriptionPager) NextPage(ctx context.Context) bool { var req *policy.Request var err error if !reflect.ValueOf(p.current).IsZero() { if p.current.DeploymentScriptListResult.NextLink == nil || len(*p.current.DeploymentScriptListResult.NextLink) == 0 { return false } req, er...
[ -0.29171091318130493, 0.46261778473854065, 0.7075090408325195, -0.2544945180416107, -0.49638044834136963, 0.1986512541770935, 0.0036759276408702135, -0.17394141852855682, -0.06827422231435776, 0.4442130923271179, 0.91493159532547, -0.0870165303349495, -1.0082825422286987, 1.165378570556640...
func (p *DeploymentScriptsListBySubscriptionPager) PageResponse() DeploymentScriptsListBySubscriptionResponse { return p.current }
[ 0.4428422451019287, -0.9286491274833679, 0.07391072809696198, -0.3894025981426239, 0.02596220001578331, -0.4430824816226959, -0.30484539270401, -0.16091039776802063, 1.2407022714614868, 0.7584241032600403, 1.050750732421875, 0.11180944740772247, -0.5099871754646301, 0.35998183488845825, ...
func (f *FS) AllocSector(typ DataType, miner address.Address, ssize abi.SectorSize, cache bool, num abi.SectorNumber) (SectorPath, error) { { spath, err := f.FindSector(typ, miner, num) if err == nil { return spath, xerrors.Errorf("allocating sector %s: %m", spath, ErrExists) } if err != ErrNotFound { re...
[ -0.4876798987388611, -0.1921650469303131, 0.6659063696861267, 0.003137302352115512, -0.34322389960289, -0.16049771010875702, 0.7039603590965271, -1.1952718496322632, 0.9872490763664246, 0.26714062690734863, 0.6872696280479431, 0.16209061443805695, 0.9005810618400574, 0.34396305680274963, ...
func (c *Configuration) JobInfoFiles() ([]string, error) { fileInfos, err := ioutil.ReadDir(c.JobInfoDir) if err != nil { return nil, err } res := []string{} for i := 0; i<len(fileInfos); i++ { fileInfo := fileInfos[i] name := fileInfo.Name() if strings.HasSuffix(name, ".json") { res = append(res, name...
[ -0.09105604141950607, -0.8285127282142639, 0.7955953478813171, -0.32834887504577637, -0.4448397755622864, 0.2483271211385727, -0.27466636896133423, 0.04447367787361145, -1.0556010007858276, 0.4883020520210266, -0.6625808477401733, -0.10716895759105682, -0.425244003534317, 0.319876879453659...
func (c *Configuration) JobInfoList( files []string) ([]*job_info.JobInfo, error) { res := make([]*job_info.JobInfo, len(files)) for i := 0; i < len(files); i++ { res[i] = job_info.NewJobInfo() err := res[i].ReadFromFile(c.JobInfoDir + "/" + files[i]) if err != nil { return nil, err } } return res, ni...
[ -0.4159930646419525, -0.8808978796005249, 0.4842377305030823, 0.17543306946754456, 0.3059580624103546, 0.6515148282051086, -0.31227171421051025, 0.32272225618362427, -0.9849693179130554, 0.0922381728887558, -0.23325112462043762, -0.6975599527359009, -0.18544822931289673, 0.8777939081192017...
func ProcFS() proc.FileSystem { fs, err := procfs.NewFileSystem("") if err != nil { glog.Fatal(err) } return fs }
[ 0.6721923351287842, 0.029937563464045525, 0.3082740306854248, -0.7833706736564636, -0.14260800182819366, -0.4869646728038788, 0.29972296953201294, -1.2216062545776367, 0.5682005882263184, -1.2628862857818604, 1.3497425317764282, 0.7262162566184998, -0.35115140676498413, -0.4873262345790863...
func HostProcFS() proc.FileSystem { hostProcFSOnce.Do(func() { hostProcFS = findHostProcFS() }) return hostProcFS }
[ 0.9032440185546875, -0.5453284382820129, 0.4666179120540619, -0.23373548686504364, 0.22252501547336578, -0.5127075910568237, 1.2005500793457031, -0.2620331943035126, -0.5516119003295898, -0.5528600215911865, 0.8233327865600586, -0.23753277957439423, -0.7341958284378052, -0.2364483922719955...
func TracingDir() string { mounts := HostProcFS().Mounts() // Look for an existing tracefs for _, m := range mounts { if m.FilesystemType == "tracefs" { glog.V(1).Infof("Found tracefs at %s", m.MountPoint) return m.MountPoint } } // If no mounted tracefs has been found, look for it as a // subdirector...
[ 1.2451096773147583, -0.14195512235164642, 0.8562069535255432, 0.6275855302810669, 0.11135570704936981, -0.520008385181427, 0.8560316562652588, -0.7195098400115967, 0.6313451528549194, -0.8875373005867004, 0.9752333760261536, -0.3996970057487488, -0.2771778106689453, 1.1849929094314575, -...
func PerfEventDir() string { for _, mi := range HostProcFS().Mounts() { if mi.FilesystemType == "cgroup" { for option := range mi.SuperOptions { if option == "perf_event" { return mi.MountPoint } } } } return "" }
[ 1.1279942989349365, -0.32975104451179504, 0.7703440189361572, 0.7884669303894043, -0.48118308186531067, -0.41454923152923584, 0.6620038151741028, 0.5668336749076843, -0.03754737600684166, -0.4571411907672882, 1.2064180374145508, -0.10105352848768234, -0.7790719866752625, 1.0508226156234741...
func MountTempFS(source string, target string, fstype string, flags uintptr, data string) error { // Make sure that `target` exists. err := os.MkdirAll(target, 0500) if err != nil { glog.V(2).Infof("Couldn't create temp %s mountpoint: %s", fstype, err) return err } err = unix.Mount(source, target, fstype, fla...
[ -0.06072172522544861, 0.06370973587036133, 0.42410042881965637, -0.24020403623580933, 0.39337047934532166, -0.5018619298934937, -0.7504074573516846, -0.7359188199043274, 0.2907433807849884, -0.3804071545600891, -0.40476125478744507, 0.20261284708976746, -0.43732982873916626, 0.405660182237...
func UnmountTempFS(dir string, fstype string) error { err := unix.Unmount(dir, 0) if err != nil { glog.V(2).Infof("Couldn't unmount %s at %s: %s", fstype, dir, err) return err } err = os.Remove(dir) if err != nil { glog.V(2).Infof("Couldn't remove %s: %s", dir, err) return err } return nil }
[ -0.2768426537513733, 0.07058777660131454, 0.36114224791526794, -0.49730753898620605, -0.32945892214775085, -0.9727407693862915, -0.18753299117088318, -0.1934121698141098, -0.04286285862326622, 0.16501367092132568, 0.23430737853050232, 0.17800170183181763, -0.7169721126556396, 0.12650154531...
func main(){ var rata_rata = hitung(10,2,5,8,7,8,2,5,6,12) var pesan = fmt.Sprintf("Rata-rata : %.2f",rata_rata) fmt.Println(pesan) }
[ 0.17150627076625824, -0.46170300245285034, 0.6181100606918335, -0.18983051180839539, 0.5707528591156006, 0.20107506215572357, 0.7354928851127625, 0.1369357407093048, -0.8999359607696533, 0.1897568553686142, 0.3306845724582672, 0.45253702998161316, 0.11796450614929199, 0.0000347169261658564...
func Equals(t *testing.T, actual, expected interface{}, format string, a ...interface{}) { if !reflect.DeepEqual(actual, expected) { msg := fmt.Sprintf(format, a...) t.Errorf("not equal: %s\nactual=%+v\nexpected=%+v", msg, actual, expected) } }
[ -0.5822218060493469, -0.9443743824958801, 0.44954201579093933, -0.7227516770362854, 0.6126295328140259, 0.4697549045085907, 0.06231563910841942, 0.024296093732118607, -0.4146926999092102, 0.18035176396369934, 0.2052905410528183, 0.9190875887870789, 0.4309104382991791, 0.5831153988838196, ...
func JsonError(writer http.ResponseWriter, error_message string) { writer.WriteHeader(http.StatusInternalServerError) writer.Header().Set("Content-Type", "application/json") writer.Write([]byte("{\"error\": \"" + error_message + "\"}")) }
[ -1.0782521963119507, -0.7492423057556152, 0.5202513337135315, -0.4177305996417999, -0.11025195568799973, -0.6159363985061646, 0.22225095331668854, 0.29913514852523804, -0.8203521966934204, 0.43783295154571533, 0.06917214393615723, 0.8755035400390625, -0.06614629179239273, 0.241655752062797...
func JsonMessage(writer http.ResponseWriter, info_code int, info_message string) { writer.WriteHeader(info_code) writer.Header().Set("Content-Type", "application/json") writer.Write([]byte("{\"message\": \"" + info_message + "\"}")) }
[ -0.7109630703926086, -0.5731449127197266, 0.521069347858429, -0.5455318093299866, 0.5411458015441895, -0.7730491161346436, -0.17275547981262207, -0.6526774764060974, -0.6794926524162292, 0.05552070960402489, -0.17759324610233307, 0.3671386241912842, -0.19146978855133057, 0.4833208918571472...
func ATJsonError(writer http.ResponseWriter, error_message string) { writer.WriteHeader(http.StatusInternalServerError) writer.Header().Set("Content-Type", "application/json") obj := model.ATResultList{Error: error_message} json_bytes, _ := json.Marshal(obj) writer.Write(json_bytes) }
[ -1.3143186569213867, -0.6382571458816528, 0.4428303837776184, -0.8268656730651855, -0.32194504141807556, -0.32705211639404297, 0.07066404819488525, -0.07566097378730774, -0.45444050431251526, 0.7823469638824463, -0.6560774445533752, 0.6097615361213684, 0.33309701085090637, 0.42030227184295...
func ATJsonMessage(writer http.ResponseWriter, info_code int, info_message string) { writer.WriteHeader(info_code) writer.Header().Set("Content-Type", "application/json") obj := model.ATResultList{ ResultList: make([]model.ATResult,0) } obj.ResultList = append(obj.ResultList, model.ATResult{Text: info_message, Ti...
[ -1.0583723783493042, -0.6604986190795898, 0.4685829281806946, -0.88539719581604, 0.434834361076355, -0.47429391741752625, -0.09125209599733353, -1.0358092784881592, -0.8214321732521057, 0.4452088177204132, -0.5636665225028992, 0.28079625964164734, 0.3534218966960907, 0.5358301401138306, ...
func GetRole(iamc aws.IAMAPI, roleName *string) (*Role, error) { out, err := iamc.GetRole(&iam.GetRoleInput{ RoleName: roleName, }) if err != nil { return nil, err } outRole := Role{ Arn: out.Role.Arn, Tags: map[string]*string{}, } if out.Role.Tags != nil { for _, tag := range out.Role.Tags { if...
[ 0.0007044606609269977, 0.18543994426727295, 0.4358172118663788, -0.3331820070743561, 0.349446564912796, -1.1059222221374512, -0.5663462281227112, -0.5417962074279785, -0.4146389365196228, -0.06861701607704163, 0.4288875460624695, 0.28807303309440613, -0.4143534004688263, 0.0180373582988977...
func New(factory func() interface{}) *Server { t := topic.New() t.AddSubscriber(1, &subscriber{state: factory()}) return &Server{topic: t} }
[ -0.35700705647468567, -0.30854955315589905, 0.23302429914474487, 0.0768870860338211, 0.01253274641931057, -0.2630052864551544, -0.42436614632606506, -0.3183029592037201, -0.3237043023109436, -0.28684180974960327, 0.07043059170246124, 0.7175917625427246, 0.9373002052307129, 0.75010341405868...
func (s *Server) Async(fn func(interface{})) { s.topic.Publish(fn) }
[ 0.39841794967651367, 0.421747624874115, 0.299165815114975, 0.3921017348766327, -0.05556732416152954, 0.06931173801422119, 0.5598682165145874, 0.3192780017852783, -0.36667630076408386, -0.11344750225543976, 0.3528270125389099, 0.8772979974746704, 0.6491164565086365, 0.07273419946432114, -...
func (s *Server) Sync(fn func(interface{}) interface{}) interface{} { ch := make(chan interface{}, 1) s.Async(func(message interface{}) { defer close(ch) ch <- fn(message) }) return <-ch }
[ -0.4621283710002899, 0.3348102569580078, 0.61241614818573, -0.30198726058006287, -0.20505493879318237, -0.8438891768455505, 0.2547599673271179, -1.6349258422851562, -0.6427963972091675, -0.228349506855011, -0.13926856219768524, 1.1201292276382446, 0.15770237147808075, 0.45961567759513855, ...
func Init() {}
[ 0.5617318153381348, -0.9579869508743286, 0.09644126892089844, 0.8986107110977173, 0.18331380188465118, 0.18865720927715302, 1.0195972919464111, 0.6535390615463257, -0.04386204481124878, -0.6020563840866089, -0.9897137880325317, 0.8579539060592651, -0.4646986722946167, 0.15791678428649902, ...
func Short() bool { // possible: panic("testing: Short called before Init") // possible: panic("testing: Short called before Parse") }
[ 1.0857014656066895, 0.4158916175365448, 0.41639623045921326, 0.5807820558547974, -0.5233353972434998, 1.4953171014785767, -0.0024886131286621094, -0.37938442826271057, 0.3069835305213928, -0.586601972579956, 0.0261831097304821, 0.9075520634651184, -0.01906718499958515, -0.04292294755578041...
func CoverMode() string {}
[ 0.7677595019340515, -0.4994865953922272, 0.2639436423778534, 0.7232265472412109, -1.018099069595337, 1.1369901895523071, 0.7310305833816528, 0.8043953776359558, 0.08792845159769058, 0.009010612964630127, -0.8074466586112976, -1.0145241022109985, -0.04801788553595543, 0.454132080078125, 0...
func Verbose() bool { // possible: panic("testing: Verbose called before Init") // possible: panic("testing: Verbose called before Parse") }
[ 1.4268404245376587, 0.7496785521507263, 0.5604802966117859, 0.7496922612190247, 0.8152011632919312, 0.03808159381151199, -0.6744828820228577, -0.39333608746528625, 0.1371162384748459, -0.008184405043721199, 0.16051439940929413, 0.1965842992067337, -1.250862717628479, 0.092207171022892, -...
func Main(matchString func(pat, str string) (bool, error), tests []InternalTest, benchmarks []InternalBenchmark, examples []InternalExample) {}
[ 0.4368981122970581, 0.39173099398612976, 0.4468989372253418, 0.6632709503173828, -0.24985139071941376, 0.3644663989543915, 1.2921884059906006, 1.117915153503418, -0.4516126811504364, 0.0033702380023896694, 0.19132155179977417, 0.22004084289073944, -0.1900608390569687, -0.700934112071991, ...
func MainStart(deps testDeps, tests []InternalTest, benchmarks []InternalBenchmark, examples []InternalExample) *M {}
[ -0.0573105588555336, -0.15540093183517456, 0.4078771471977234, 0.6467428803443909, -0.04750177264213562, 0.4225073754787445, 0.7165583968162537, 0.7945634722709656, 0.8039551377296448, -0.051381681114435196, 0.46028485894203186, 0.0590832494199276, -0.43967321515083313, 0.2939414381980896,...
func (m *M) Run() int {}
[ -1.0098233222961426, -0.23339691758155823, 0.40642058849334717, 0.5183677077293396, -0.5476781129837036, 0.4235411584377289, 1.5431325435638428, 0.1245919018983841, -0.5788370966911316, -0.5244486927986145, -1.089435338973999, -0.11155087500810623, -1.3261650800704956, 0.6309719085693359, ...
func RunTests(matchString func(pat, str string) (bool, error), tests []InternalTest) (ok bool) {}
[ -1.4121700525283813, -0.2921003997325897, 0.5727616548538208, 0.00939074344933033, -0.3645777404308319, 0.29531675577163696, 0.5871966481208801, 0.5296133756637573, 0.1752110719680786, -0.6424821615219116, 0.05654105544090271, 0.11578778177499771, -1.3292230367660522, -1.0859993696212769, ...
func AllocsPerRun(runs int, f func()) (avg float64) {}
[ 0.05686128884553909, 0.67460697889328, 0.5167278051376343, 0.7421481609344482, -0.5602573752403259, -0.10658719390630722, 0.779900074005127, -0.7876113653182983, -0.38024628162384033, -0.015986060723662376, 1.5151307582855225, -0.1737198680639267, 0.241193026304245, 0.7731689810752869, -...
func (b *B) StartTimer() {}
[ 0.6660084128379822, -0.6388234496116638, 0.31753459572792053, 1.5319346189498901, -0.15409544110298157, 0.11630191653966904, 0.9095494151115417, 0.8537137508392334, 0.41016632318496704, -0.21863245964050293, 0.010273993015289307, -0.08677360415458679, -0.897260844707489, 1.7185503244400024...
func (b *B) StopTimer() {}
[ -0.7353809475898743, -0.9021969437599182, 0.2848542332649231, 0.8981983065605164, -0.2697075307369232, 0.6834031939506531, 0.9458404779434204, 0.3649788796901703, -0.2633795440196991, -0.10362266004085541, -0.017035698518157005, -0.7051909565925598, -0.7594757676124573, 1.4586498737335205,...
func (b *B) ResetTimer() {}
[ 0.11158132553100586, 0.023943910375237465, 0.21079935133457184, 1.6885861158370972, 0.22816471755504608, -0.10912428051233292, 0.7203539609909058, 0.3636845052242279, -0.17443624138832092, 0.5226777195930481, -0.08636011183261871, 0.007521629799157381, -1.0807538032531738, 1.34482407569885...