text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (c *TimeoutCache) autoEvict() { c.lock.Lock() defer c.lock.Unlock() time := time.Now().Unix() for e := c.evictList.Back(); e != nil; e = e.Prev() { kv := e.Value.(*entry) if time > kv.evict { c.removeElement(e) } } }
[ -0.037310048937797546, 0.02694942057132721, 0.6763515472412109, -0.17887911200523376, -0.3437049686908722, -0.20435166358947754, 0.18277056515216827, 0.37199077010154724, -0.2665154039859772, 1.23879873752594, -0.052719540894031525, -0.028124244883656502, 0.17460601031780243, -0.0030786334...
func (c *TimeoutCache) Add(key, value interface{}) { c.lock.Lock() defer c.lock.Unlock() // Check for existing item if ent, ok := c.items[key]; ok && ent != nil { c.items[key] = value return } // Add new item ent := &entry{key, value, time.Now().Add(time.Duration(c.evictAfter * int64(time.Second))).Unix()}...
[ -0.33905333280563354, 0.1044042780995369, 0.5988733172416687, -0.0009884641040116549, -0.2579403519630432, 0.5908733010292053, -1.1337257623672485, 0.761143147945404, 0.06163547560572624, 1.36692214012146, 0.047010455280542374, -0.14512598514556885, -0.14794321358203888, 0.3217669129371643...
func (c *TimeoutCache) removeElement(e *list.Element) { c.evictList.Remove(e) kv := e.Value.(*entry) delete(c.items, kv.key) }
[ -0.7253352999687195, 0.6386876106262207, 0.21377982199192047, -0.13484005630016327, -0.40313664078712463, 0.5313533544540405, -0.39831259846687317, 1.8164081573486328, 0.4843577742576599, 1.2439262866973877, -0.8804699182510376, -0.43172532320022583, 0.24763207137584686, 0.7431111335754395...
func (c *TimeoutCache) searchElement(key interface{}) *list.Element { for e := c.evictList.Back(); e != nil; e = e.Prev() { kv := e.Value.(*entry) if kv.key == key { return e } } return nil }
[ -0.0876554325222969, 0.807823657989502, 0.5682799816131592, 0.47696441411972046, -0.4096348285675049, 0.041212428361177444, -0.48497509956359863, -0.15563324093818665, 0.3687285780906677, 1.1291120052337646, 0.06728871911764145, 0.27663007378578186, -0.7703014016151428, 0.4228717088699341,...
func (c *TimeoutCache) Remove(key interface{}) { c.lock.Lock() defer c.lock.Unlock() if ele := c.searchElement(key); ele != nil { c.removeElement(ele) } }
[ -0.8466528058052063, 0.56874680519104, 0.1848386824131012, 0.7167705297470093, -1.1717844009399414, -0.21171124279499054, -0.2157508283853531, 0.9373887181282043, 0.5528037548065186, 1.5196744203567505, -0.3171907663345337, -0.7960924506187439, -1.3799279928207397, 0.664496898651123, 0.5...
func (c *TimeoutCache) Len() int { c.lock.RLock() defer c.lock.RUnlock() return c.evictList.Len() }
[ 0.04409215971827507, 0.9932488799095154, 0.12708468735218048, -0.036609333008527756, -0.28506359457969666, -0.6779935956001282, 0.22764015197753906, 1.6418135166168213, -0.0724022388458252, 0.9437844157218933, -0.9663901925086975, -0.3890165686607361, 0.11137981712818146, -0.38909468054771...
func NewEnvironment(pass *analysis.Pass) *Environment { return &Environment{ //TODO make it private and reject object named __val ExplicitRefinementMap: map[types.Object]types.Type{}, ImplicitRefinementMap: map[types.Object]types.Type{}, funArgRefinementMap: map[string]types.Type{}, Scope: ...
[ -0.36252671480178833, -1.229734182357788, 0.40938398241996765, -0.29088976979255676, -0.7690712213516235, 0.024233847856521606, 1.09064781665802, -0.5123627185821533, 0.43739476799964905, 0.1815304011106491, 0.010858558118343353, 0.5173206329345703, 0.24435855448246002, 0.39444541931152344...
func (pr *PsqlDonorRepository) EmailExists(email string) bool { var name string err := pr.conn.QueryRow("SELECT firstname FROM donor WHERE email=$1", email).Scan(&name) if err != nil { return false } return true }
[ -0.9949385523796082, 0.48181354999542236, 0.6461235284805298, -0.3818916976451874, 0.45318177342414856, -0.22860600054264069, -0.9033597111701965, 1.1955862045288086, -0.15950845181941986, 0.6930920481681824, 0.4275471568107605, -0.44268614053726196, 0.05188179016113281, 0.1260988414287567...
func (r AnnounceRequest) ToQuery() (vs url.Values) { vs = make(url.Values, 9) vs.Set("info_hash", r.InfoHash.BytesString()) vs.Set("peer_id", r.PeerID.BytesString()) vs.Set("uploaded", strconv.FormatInt(r.Uploaded, 10)) vs.Set("downloaded", strconv.FormatInt(r.Downloaded, 10)) vs.Set("left", strconv.FormatInt(r.L...
[ -0.21158070862293243, -0.1906706541776657, 0.649627149105072, -1.2528328895568848, 0.288616806268692, -0.015851758420467377, -0.3937927186489105, 0.45795124769210815, -0.014240972697734833, 0.22110715508460999, 0.5177099704742432, -0.11536910384893417, 0.022221896797418594, 0.6719362735748...
func (r *AnnounceRequest) FromQuery(vs url.Values) (err error) { if err = r.InfoHash.FromString(vs.Get("info_hash")); err != nil { return } if err = r.PeerID.FromString(vs.Get("peer_id")); err != nil { return } v, err := strconv.ParseInt(vs.Get("uploaded"), 10, 64) if err != nil { return } r.Uploaded = ...
[ -0.17413955926895142, -0.36723434925079346, 0.8140602111816406, -0.6248993873596191, -0.610348105430603, -0.36283978819847107, -0.282470166683197, 0.10409688204526901, 0.23656915128231049, -0.12186986207962036, 0.5770771503448486, 0.03550141304731369, 0.4590950608253479, 0.4287274777889251...
func (sr *ScrapeResponse) DecodeFrom(r io.Reader) (err error) { return bencode.NewDecoder(r).Decode(sr) }
[ -0.4711938500404358, -0.7853913307189941, 0.27012938261032104, -0.7418029308319092, -0.312555193901062, -0.4048271179199219, -0.2515689432621002, -0.3858613073825836, 0.9445900917053223, -0.8932722806930542, 0.3541443347930908, -0.7193390130996704, 0.4507790505886078, 0.02599714696407318, ...
func (sr ScrapeResponse) EncodeTo(w io.Writer) (err error) { return bencode.NewEncoder(w).Encode(sr) }
[ -0.9438098073005676, -0.19754773378372192, 0.4733198285102844, -0.9629310369491577, 0.6580401062965393, -0.3418882489204407, 0.09975585341453552, -0.8328510522842407, 0.41437816619873047, -0.527131199836731, -0.06908171623945236, 0.3740265667438507, 0.35605305433273315, -0.1110989749431610...
func NewClient(announceURL, scrapeURL string) *Client { if scrapeURL == "" { scrapeURL = strings.Replace(announceURL, "announce", "scrape", -1) } id := metainfo.NewRandomHash() return &Client{AnnounceURL: announceURL, ScrapeURL: scrapeURL, ID: id} }
[ -0.0035446181427687407, -0.05884964391589165, 0.30647459626197815, 0.18099696934223175, -0.49902498722076416, 0.4768340289592743, -0.12911732494831085, 0.6049683690071106, -0.021412301808595657, -0.01595219224691391, 0.30028754472732544, 0.8287148475646973, -0.31647446751594543, 0.01786343...
func (t *Client) Close() error { return nil }
[ 0.06722471863031387, -0.3816327750682831, 0.2730919122695923, -0.3428969383239746, -0.4557192027568817, 0.9579079151153564, 0.5894157290458679, -0.7757323980331421, -0.775705099105835, -0.8274849653244019, 0.06820402294397354, 0.436376690864563, -1.0001459121704102, 0.19748437404632568, ...
func (t *Client) Announce(c context.Context, req AnnounceRequest) ( resp AnnounceResponse, err error) { if req.PeerID.IsZero() { if t.ID.IsZero() { req.PeerID = metainfo.NewRandomHash() } else { req.PeerID = t.ID } } err = t.send(c, t.AnnounceURL, req.ToQuery(), &resp) return }
[ -1.370248556137085, 0.29109007120132446, 0.6410409808158875, 0.05256199836730957, 0.44219252467155457, -0.3234158754348755, -0.1810864508152008, 0.7233294248580933, 0.14675375819206238, -0.022545523941516876, 0.7963389158248901, 0.3744772672653198, -1.2110766172409058, 1.3330796957015991, ...
func (t *Client) Scrape(c context.Context, infohashes []metainfo.Hash) ( resp ScrapeResponse, err error) { hs := make([]string, len(infohashes)) for i, h := range infohashes { hs[i] = h.BytesString() } err = t.send(c, t.ScrapeURL, url.Values{"info_hash": hs}, &resp) return }
[ -0.8747897744178772, 0.10696752369403839, 0.43971532583236694, 0.27152594923973083, 0.18698471784591675, 0.3106606602668762, -0.5827304720878601, -0.7245700359344482, -0.4851265847682953, 0.4554646611213684, 0.06125682592391968, -0.09905075281858444, -0.39451727271080017, -0.37672778964042...
func buildStateFnCheckImageJob(expectedJob batchv1.Job) stateFn { return func(ctx context.Context, r *reconciler, s *systemState) (stateFn, error) { labels := s.internalFunctionLabels() err := r.client.ListByLabel(ctx, s.instance.GetNamespace(), labels, &s.jobs) if err != nil { return nil, errors.Wrap(err, "...
[ -0.496244341135025, -0.3759239614009857, 0.39947235584259033, -0.09426500648260117, -0.02784993126988411, -0.68437659740448, 0.34003686904907227, 0.4833676815032959, 0.5714287757873535, -0.004312689416110516, 0.18484660983085632, 0.5688958168029785, 0.07614759355783463, 0.00288249296136200...
func (n *hostOnlyNetwork) Save(vbox VBoxManager) error { if err := n.SaveIPv4(vbox); err != nil { return err } if n.DHCP { vbox.vbm("hostonlyif", "ipconfig", n.Name, "--dhcp") // not implemented as of VirtualBox 4.3 } return nil }
[ -0.16221967339515686, 0.5269507169723511, 0.34775304794311523, 0.7622553706169128, 0.023454278707504272, 0.37528663873672485, -0.488278865814209, 0.4662482440471649, -0.284353643655777, 0.5381022095680237, -1.232544183731079, -1.2681461572647095, -1.0679363012313843, 0.9655085802078247, ...
func (n *hostOnlyNetwork) SaveIPv4(vbox VBoxManager) error { if n.IPv4.IP != nil && n.IPv4.Mask != nil { if err := vbox.vbm("hostonlyif", "ipconfig", n.Name, "--ip", n.IPv4.IP.String(), "--netmask", net.IP(n.IPv4.Mask).String()); err != nil { return err } } return nil }
[ -0.5949798822402954, -0.389347106218338, 0.41021209955215454, 0.5493324398994446, 0.1308325082063675, 0.0266694538295269, -0.1311398148536682, 0.334183931350708, -0.1267009675502777, 0.46968546509742737, -1.1686782836914062, -1.0227259397506714, -1.2907737493515015, 0.6846286058425903, 0...
func createHostonlyAdapter(vbox VBoxManager) (*hostOnlyNetwork, error) { out, err := vbox.vbmOut("hostonlyif", "create") if err != nil { return nil, err } res := reHostOnlyAdapterCreated.FindStringSubmatch(string(out)) if res == nil { return nil, errors.New("Failed to create host-only adapter") } return &h...
[ 0.06932400166988373, 0.01747342012822628, 0.41312798857688904, 1.0691763162612915, -0.6943486928939819, 0.12819980084896088, -0.6103295683860779, 0.46718525886535645, -0.14688196778297424, 0.19879630208015442, -0.1306835412979126, 0.3194475471973419, -0.9543163180351257, 0.8909896016120911...
func listHostOnlyAdapters(vbox VBoxManager) (map[string]*hostOnlyNetwork, error) { out, err := vbox.vbmOut("list", "hostonlyifs") if err != nil { return nil, err } byName := map[string]*hostOnlyNetwork{} byIP := map[string]*hostOnlyNetwork{} n := &hostOnlyNetwork{} err = parseKeyValues(out, reColonLine, func...
[ -0.25977760553359985, -0.4803959131240845, 0.6885570287704468, 0.5048976540565491, -0.9479356408119202, -0.6482067704200745, -0.6438608765602112, 0.5911755561828613, 0.12989404797554016, 0.3313836455345154, -0.33633309602737427, 0.12234701216220856, -0.5109214782714844, 0.5970874428749084,...
func removeOrphanDHCPServers(vbox VBoxManager) error { dhcps, err := listDHCPServers(vbox) if err != nil { return err } if len(dhcps) == 0 { return nil } nets, err := listHostOnlyAdapters(vbox) if err != nil { return err } for name := range dhcps { if strings.HasPrefix(name, dhcpPrefix) { if _, p...
[ -0.9439455270767212, -0.35683920979499817, 0.8382487893104553, -0.1261206865310669, 0.2750836908817291, 0.47606799006462097, -0.06980238109827042, -0.2443934679031372, 0.7951094508171082, 0.5626869797706604, -0.22694799304008484, -0.4461801052093506, -0.2781601846218109, 1.0493338108062744...
func addHostOnlyDHCPServer(ifname string, d dhcpServer, vbox VBoxManager) error { name := dhcpPrefix + ifname dhcps, err := listDHCPServers(vbox) if err != nil { return err } // On some platforms (OSX), creating a host-only adapter adds a default dhcpserver, // while on others (Windows?) it does not. command...
[ -0.5343077182769775, -0.00421209167689085, 0.9314119219779968, 0.35762926936149597, 0.08392870426177979, -0.008327193558216095, -0.8188760280609131, -0.00979134812951088, 0.21955080330371857, -0.037985026836395264, -0.03974909335374832, 0.24270707368850708, -0.7426986694335938, 0.405045121...
func listDHCPServers(vbox VBoxManager) (map[string]*dhcpServer, error) { out, err := vbox.vbmOut("list", "dhcpservers") if err != nil { return nil, err } m := map[string]*dhcpServer{} dhcp := &dhcpServer{} err = parseKeyValues(out, reColonLine, func(key, val string) error { switch key { case "NetworkName"...
[ -0.8535918593406677, -0.3091660141944885, 0.3997442424297333, -0.02707347646355629, 0.09250035136938095, -0.4674839973449707, -0.663002073764801, -0.3861539661884308, 0.39192017912864685, 0.4042511582374573, -1.0903356075286865, -0.2877059876918793, -0.38518792390823364, 0.4263965785503387...
func parseIPv4Mask(s string) net.IPMask { mask := net.ParseIP(s) if mask == nil { return nil } return net.IPv4Mask(mask[12], mask[13], mask[14], mask[15]) }
[ -0.6919968128204346, -0.25970903038978577, 0.3145315647125244, 0.4337785840034485, 0.33028513193130493, -1.1829159259796143, 0.1506168246269226, -0.40845391154289246, 0.5102895498275757, -0.3115941286087036, -0.3160398304462433, -0.7238010764122009, -0.4838242828845978, -1.33879816532135, ...
func NewBlock(transactions []*Transaction, prevBlockHash []byte, height int) *Block { block := &Block{time.Now().Unix(), transactions, prevBlockHash, []byte{}, 0, height} block.POW() return block }
[ 0.8326104879379272, 0.5764410495758057, 0.637981116771698, 1.0740728378295898, -0.14129184186458588, -0.24026800692081451, 0.4074590802192688, -0.6176166534423828, -0.34534454345703125, 0.039122842252254486, 0.27134275436401367, 0.3761732578277588, -0.3191664218902588, 0.19893251359462738,...
func (block *Block) HashTransactions() []byte { var hashes [][]byte for _, transaction := range block.Transactions { hashes = append(hashes, transaction.Serialize()) } if len(hashes) == 0 { return []byte{} } mtree := NewMerkleTree(hashes) return mtree.Root.Data }
[ 0.7833882570266724, 0.6913643479347229, 0.7732449173927307, 0.34624409675598145, 0.08993031829595566, -1.1324504613876343, -0.12392935156822205, -0.2456934154033661, 0.22516360878944397, 0.45016568899154663, -0.9987990856170654, -0.03253966197371483, -0.6108853816986084, 0.7557433843612671...
func (block *Block) Serialize() []byte { var result bytes.Buffer encoder := gob.NewEncoder(&result) err := encoder.Encode(block) if err != nil { panic(err) } return result.Bytes() }
[ 0.14558205008506775, 0.9232251048088074, 0.5998477339744568, 0.4421808123588562, 0.3637966513633728, -0.3813426196575165, -0.9574806094169617, -0.6588947176933289, -0.35797566175460815, -0.02647724375128746, -1.2823413610458374, 0.3764570653438568, -1.9049848318099976, 0.7226502299308777, ...
func Deserialize(data []byte) *Block { var block Block decoder := gob.NewDecoder(bytes.NewReader(data)) err := decoder.Decode(&block) if err != nil { panic(err) } return &block }
[ 0.9125385880470276, 0.36012983322143555, 0.4472956955432892, -0.18091566860675812, 0.03202643245458603, -0.17326359450817108, -1.3383837938308716, -0.3011206090450287, -0.5035590529441833, -0.3630078136920929, -0.7545086741447449, -0.01248812023550272, -1.4406145811080933, -0.6884886622428...
func (block *Block) Log() { template := "BLOCK >>>> \nHeight: %d \nPrevious hash: %x \nData: %x " + "\nTimestamp: %d [%s] \nNonce: %d \nTransactions:\n" fmt.Printf(template, block.Height, block.PrevBlockHash, block.Hash, block.Timestamp, time.Unix(block.Timestamp, 0), block.Nonce) for _, t := range block.Transac...
[ 0.6438084840774536, 0.5716150999069214, 0.8811269402503967, -0.18149961531162262, 0.352443665266037, -0.25686830282211304, 0.14576438069343567, -0.31525418162345886, -1.156471610069275, -0.2375243902206421, -0.6335330009460449, 0.2516854703426361, -0.0577826201915741, 0.6516790986061096, ...
func NewFlagSet(name string) *FlagSet { return &FlagSet{ FlagSet: pflag.NewFlagSet(name, pflag.ContinueOnError), Name: name, } }
[ 0.902754008769989, -0.16146093606948853, 0.3156319558620453, -0.0031898263841867447, -1.4384698867797852, -0.4942626953125, -0.4741835296154022, -0.9515354037284851, -0.032964106649160385, -0.7858017683029175, -0.13148945569992065, 0.6914599537849426, -1.0003184080123901, -0.47249725461006...
func NewPreRunner(name string, fn func() error) PreRunner { return preRunner{name: name, fn: fn} }
[ -0.2780973017215729, 0.19634917378425598, 0.40282317996025085, 0.2022843360900879, -1.958890438079834, -0.749069333076477, -0.3933500051498413, 0.3500242829322815, -0.03621545433998108, -0.8740299344062805, -1.0722379684448242, 0.4337503910064697, -0.10937373340129852, -0.2409602552652359,...
func NewGroup(name string) Group { return Group{ name: name, readyCh: make(chan struct{}), } }
[ 0.07759121060371399, 0.8552404642105103, 0.16905036568641663, -0.07684111595153809, -1.417363166809082, -0.22928482294082642, -0.25775018334388733, -1.045914888381958, -0.25036585330963135, -0.09887591749429703, -0.6817130446434021, 0.512456476688385, 0.15533186495304108, 0.324686527252197...
func (g Group) Name() string { return g.name }
[ -0.8655102252960205, 0.30311518907546997, -0.08752104640007019, -0.03556331992149353, -1.2589585781097412, -0.06337520480155945, 0.2625441551208496, -0.947450578212738, -1.2881040573120117, 0.7302542924880981, -0.019995208829641342, 0.12218271940946579, -0.22369307279586792, 0.420214354991...
func (g *Group) Register(units ...Unit) []bool { g.log = logger.GetLogger(g.name) hasRegistered := make([]bool, len(units)) for idx := range units { if !g.configured { // if RunConfig has been called we can no longer register Config // phases of Units if c, ok := units[idx].(Config); ok { g.c = append...
[ -1.6300468444824219, 0.677994966506958, 0.5963287949562073, 0.1490318477153778, 0.5157870054244995, 0.06697767972946167, 0.09443339705467224, 0.12777124345302582, -1.2639416456222534, -0.16003769636154175, -0.09974384307861328, -0.023064419627189636, -0.48277637362480164, 0.873740792274475...
func (g *Group) RegisterFlags() *FlagSet { // run configuration stage g.f = NewFlagSet(g.name) g.f.SortFlags = false // keep order of flag registration g.f.Usage = func() { fmt.Printf("Flags:\n") g.f.PrintDefaults() } gFS := NewFlagSet("Common Service options") gFS.SortFlags = false gFS.StringVarP(&g.name,...
[ -0.12783534824848175, 0.7243344783782959, 0.6285383105278015, -0.3780553936958313, 0.505963146686554, -0.3466947674751282, 0.6447237730026245, -1.067861557006836, -0.8929952383041382, -0.989780604839325, 0.35925769805908203, 0.006283331662416458, -0.6465323567390442, 1.4003643989562988, ...
func (g *Group) RunConfig() (interrupted bool, err error) { g.log = logger.GetLogger(g.name) g.configured = true if g.name == "" { // use the binary name if custom name has not been provided g.name = path.Base(os.Args[0]) } defer func() { if err != nil { g.log.Error().Err(err).Msg("unexpected exit") }...
[ -0.3942699432373047, -0.28651317954063416, 1.1120169162750244, 0.3170304298400879, -0.48035305738449097, 0.26559513807296753, 0.7663064002990723, 0.2765236496925354, -1.3855828046798706, 0.3472710847854614, -0.29288342595100403, -0.0048460643738508224, -0.30907994508743286, 0.9279327392578...
func (g *Group) Run() (err error) { // run config registration and flag parsing stages if interrupted, errRun := g.RunConfig(); interrupted || errRun != nil { return errRun } defer func() { if err != nil { g.log.Fatal().Err(err).Stack().Msg("unexpected exit") } }() // execute pre run stage and exit on e...
[ -0.6376216411590576, 0.6275312304496765, 0.8508926033973694, -0.19353674352169037, -0.35369789600372314, -0.3106159567832947, 1.2834149599075317, 0.06892208755016327, -1.0942363739013672, 0.11461212486028671, 0.03787935897707939, 0.8887963891029358, -0.39943307638168335, 1.3364185094833374...
func (g Group) ListUnits() string { var ( s string t = "cli" ) if len(g.c) > 0 { s += "\n- config: " for _, u := range g.c { if u != nil { s += u.Name() + " " } } } if len(g.p) > 0 { s += "\n- prerun: " for _, u := range g.p { if u != nil { s += u.Name() + " " } } } if len(g....
[ -0.5371503233909607, 0.07152106612920761, 0.7073430418968201, -1.5167088508605957, 0.12335088849067688, 0.2686193883419037, 0.05975513532757759, -0.6461455821990967, -0.6977744102478027, -0.08956544101238251, 0.9974150657653809, 0.6837769746780396, 0.011640639975667, 0.390266090631485, -...
func (g *Group) WaitTillReady() { <-g.readyCh }
[ -0.25885292887687683, -0.5051254034042358, 0.11470969766378403, -0.7554793953895569, 0.2566995322704315, 0.4122592508792877, -0.5583585500717163, -0.9560738801956177, -1.267831563949585, 0.0776570737361908, -0.6230253577232361, 0.5987321138381958, 0.0014154911041259766, 0.9339125752449036,...
func (v *StringIsPath) Validate(e *validator.Errors) { if Exists(v.Field) { return } e.Add(v.Name, StringIsPathError(v)) }
[ 0.48451051115989685, -0.17227792739868164, 0.3788480758666992, 0.14827366173267365, 0.6353094577789307, 0.33286964893341064, 0.5199338793754578, 0.08856318891048431, 0.3538268506526947, 0.18675623834133148, -0.0185201745480299, -0.30580729246139526, -0.20267674326896667, 0.1334144324064254...
func (v *StringIsPath) SetField(s string) { v.Field = s }
[ 0.369581013917923, 0.09008021652698517, 0.17920057475566864, -0.05736393481492996, 0.13396628201007843, 0.9821115136146545, 0.2662975788116455, 0.630805253982544, 0.1459377557039261, -0.5817232131958008, -0.569855809211731, -0.2907402217388153, -0.10810310393571854, 0.19060534238815308, ...
func (v *StringIsPath) SetNameIndex(i int) { v.Name = fmt.Sprintf("%s[%d]", RxSetNameIndex.ReplaceAllString(v.Name, ""), i) }
[ -1.085152506828308, -0.461748868227005, 0.39450281858444214, -1.3342735767364502, -0.44788116216659546, -0.012021049857139587, 0.07428354024887085, -0.6094154119491577, 0.1506834179162979, 0.2291814237833023, -1.4767403602600098, 0.24866321682929993, -0.28447267413139343, -0.20219653844833...
func Exists(path string) bool { if _, err := os.Stat(path); !os.IsNotExist(err) { return true } return false }
[ -0.5748490691184998, -0.1846262812614441, 0.49582698941230774, -0.55426424741745, 0.5650664567947388, 1.3499438762664795, -0.6434677839279175, -0.11735278367996216, -0.2336343228816986, -0.7402986884117126, -0.1631450057029724, -0.31312674283981323, 0.24991650879383087, 0.23603425920009613...
func init() { kmerSize = indexCmd.Flags().IntP("kmerSize", "k", 31, "size of k-mer") sketchSize = indexCmd.Flags().IntP("sketchSize", "s", 21, "size of MinHash sketch") windowSize = indexCmd.Flags().IntP("windowSize", "w", 100, "size of window to sketch graph traversals with") numPart = indexCmd.Flags().IntP("numPa...
[ 0.6515486836433411, 0.03529403358697891, 0.6984158158302307, -0.37202611565589905, 0.3630538582801819, 0.5901201367378235, 1.0673109292984009, 0.006392809562385082, 0.14080648124217987, -0.630868673324585, 0.05484481155872345, 1.1797806024551392, -0.36292970180511475, 1.0897740125656128, ...
func runIndex() { // check index flag is set (global flag but don't require it for all sub commands) if *indexDir == "" { fmt.Println("please specify a directory for the index files (--indexDir)") os.Exit(1) } // set up profiling if *profiling == true { defer profile.Start(profile.MemProfile, profile.Profi...
[ 0.5384331345558167, -0.3275145888328552, 0.8832892775535583, 0.0519331656396389, 0.11226677149534225, 0.2746889293193817, 0.9338142275810242, 0.676167368888855, -0.9331849813461304, -0.40585264563560486, -0.12168138474225998, 1.3540236949920654, -0.7670695781707764, -0.0558008998632431, ...
func indexParamCheck() error { // check the supplied directory is accessible etc. log.Printf("\tdirectory containing MSA files: %v", *msaDir) misc.ErrorCheck(misc.CheckDir(*msaDir)) // check there are some files with the msa extension msas, err := filepath.Glob(*msaDir + "/cluster*.msa") if err != nil { retur...
[ -0.26764044165611267, 0.2521667778491974, 0.8230515718460083, -0.01828179880976677, -0.04339149221777916, -0.27022016048431396, 1.444580078125, 0.45476001501083374, -0.14268669486045837, 0.5159520506858826, 1.191768765449524, 0.891228437423706, -0.7536635398864746, 0.5447890758514404, -0...
func NewApplication() *Application { tview.Styles = tview.Theme{ PrimitiveBackgroundColor: tcell.ColorDefault, ContrastBackgroundColor: tcell.ColorBlue, PrimaryTextColor: tcell.ColorDefault, SecondaryTextColor: tcell.ColorDefault, } table := NewTable() table.SetInputCapture(func(t todo.Todo...
[ 0.03936474025249481, 0.2470497190952301, 1.0138270854949951, -0.2259868085384369, -0.39035865664482117, -0.2747075855731964, 0.3329729437828064, 0.05418722331523895, 0.5967340469360352, 0.30755454301834106, 0.04536588117480278, -0.35508498549461365, 0.6815829873085022, 1.391543984413147, ...
func (app *Application) Run() error { go func() { for { todos := <-app.subscriber app.Update(todos) } }() return app.Application.Run() }
[ 0.3482254147529602, -0.2599380612373352, 0.48781609535217285, 0.2312297224998474, 0.5422659516334534, 0.04035530984401703, -0.5633410811424255, 0.050038814544677734, -0.5688934326171875, -0.013084995560348034, -0.425527960062027, 0.02526547946035862, 0.3355827033519745, 0.7753530144691467,...
func (app *Application) Subscribe(store *todo.Store) { store.Register(app.subscriber) }
[ 0.7315521836280823, 0.7454070448875427, 0.08267197012901306, 0.7381139397621155, 0.25599542260169983, 0.29036396741867065, -1.5123114585876465, 0.455484002828598, 0.2858952581882477, -0.5131685733795166, -0.8841501474380493, 0.617996096611023, 1.043965220451355, 0.5760565400123596, 0.020...
func (app *Application) Update(todos []todo.Todo) { app.table.Update(todos) }
[ -0.4175657629966736, -0.0938737764954567, 0.32496997714042664, 1.4118854999542236, -0.3206104338169098, 0.680695116519928, -0.17944517731666565, -0.0212064478546381, -0.06103023141622543, 0.6488641500473022, -0.035529401153326035, 0.12176252156496048, 1.023461937904358, 0.6238073110580444,...
func (m *ModulusGroup) AsCurve() elliptic.Curve { return &asCurve{m} }
[ 0.049099840223789215, -0.5497910380363464, 0.1251332312822342, -0.2241452932357788, -0.6451376676559448, 0.15249930322170258, -0.513024628162384, -0.9142277240753174, 0.7751901745796204, 0.2780635356903076, 0.8905444145202637, 0.19190292060375214, -0.9470956325531006, 0.5173409581184387, ...
func helper(root *TreeNode) (int, int) { maxFromRoot, max, maxThroughRoot := root.Val, root.Val, root.Val if root.Left != nil { leftMax, leftMaxFromRoot := helper(root.Left) if leftMaxFromRoot+root.Val > maxFromRoot { maxFromRoot = leftMaxFromRoot + root.Val } if leftMaxFromRoot > 0 { maxThroughRoot += ...
[ 0.2745361924171448, -0.5135428309440613, 1.0023634433746338, -0.06494762748479843, -0.8040686845779419, 0.20414160192012787, 0.08331070840358734, -0.35398778319358826, -0.3650614321231842, 0.004740835167467594, -0.30415570735931396, 0.07706918567419052, 0.8022218346595764, 1.68105483055114...
func MaxItemID() int { var maxItemID int err := getJSON(MaxItemIDURL, &maxItemID) if err != nil { log.Panicln(err.Error()) } return maxItemID }
[ 0.24607519805431366, -0.728296160697937, 0.47933000326156616, 0.8465607166290283, -0.4571775496006012, 0.4724409282207489, -0.5204722881317139, 0.383829265832901, 0.77616947889328, 0.27034181356430054, -0.6356463432312012, 0.24923139810562134, -0.28074899315834045, 0.7314241528511047, 1....
func (*Message) Descriptor() ([]byte, []int) { return file_helloworld_helloworld_proto_rawDescGZIP(), []int{0} }
[ -0.720782458782196, 0.9535333514213562, 0.537761926651001, 0.12417330592870712, -0.09721051156520844, 0.16490823030471802, -0.036260075867176056, 0.40270256996154785, -0.8131130933761597, -0.799113392829895, -0.08316852152347565, 0.044015269726514816, -0.24449461698532104, 1.53477990627288...
func (*CodeRequest) Descriptor() ([]byte, []int) { return file_helloworld_helloworld_proto_rawDescGZIP(), []int{1} }
[ -1.0999764204025269, 0.571579098701477, 0.47210997343063354, -0.5010858178138733, -0.5188349485397339, 0.25326788425445557, -0.0667930468916893, 0.7664113640785217, -0.7775704264640808, -0.694405198097229, -0.2967378795146942, 0.3532717525959015, -0.2011515349149704, 1.373720645904541, 1...
func (*PaqueteRequest) Descriptor() ([]byte, []int) { return file_helloworld_helloworld_proto_rawDescGZIP(), []int{2} }
[ -0.6842765212059021, -0.29201552271842957, 0.49783390760421753, -0.09105978161096573, -0.05233626440167427, -0.28933417797088623, -0.20979313552379608, 0.2822146713733673, -0.8847740292549133, -1.073835849761963, -0.5511643886566162, -0.49356573820114136, -0.17919227480888367, 0.7270527482...
func NewGetPlatformsParams() *GetPlatformsParams { var () return &GetPlatformsParams{ timeout: cr.DefaultTimeout, } }
[ 0.4609720706939697, 0.4518909454345703, 0.3178449869155884, 1.2791441679000854, -0.21841299533843994, 0.5668166279792786, 0.3665618598461151, -0.06436554342508316, -0.8379930853843689, 0.08985917270183563, -0.4136676788330078, 0.15740282833576202, -0.518402099609375, 1.1651183366775513, ...
func NewGetPlatformsParamsWithTimeout(timeout time.Duration) *GetPlatformsParams { var () return &GetPlatformsParams{ timeout: timeout, } }
[ 0.8224270939826965, 0.1577395498752594, 0.41972845792770386, 1.081174373626709, -0.37374579906463623, 1.3971030712127686, -0.7062221765518188, -0.22867989540100098, -0.8859333992004395, 1.0178372859954834, -0.3013690412044525, 0.2968878448009491, -0.4399661421775818, 1.1786037683486938, ...
func NewGetPlatformsParamsWithContext(ctx context.Context) *GetPlatformsParams { var () return &GetPlatformsParams{ Context: ctx, } }
[ 0.6300849914550781, 0.30178576707839966, 0.45293182134628296, 0.7751748561859131, -0.300284206867218, 1.3372373580932617, -0.6139053106307983, -0.9509887099266052, -0.44586318731307983, 0.5221601128578186, -0.34697017073631287, 0.1680525243282318, -0.22324217855930328, 0.8102573156356812, ...
func NewGetPlatformsParamsWithHTTPClient(client *http.Client) *GetPlatformsParams { var () return &GetPlatformsParams{ HTTPClient: client, } }
[ 0.7059964537620544, -0.03836857154965401, 0.60664302110672, 0.8820492029190063, -0.06703805178403854, 1.3230998516082764, 0.09385650604963303, -0.20502150058746338, -1.1405789852142334, 0.3249138295650482, -0.5348573923110962, 0.14235690236091614, -0.10749214142560959, 0.8517921566963196, ...
func (o *GetPlatformsParams) WithTimeout(timeout time.Duration) *GetPlatformsParams { o.SetTimeout(timeout) return o }
[ 0.3716050088405609, 0.7516919374465942, 0.3497942090034485, 0.37023860216140747, -0.24329939484596252, 0.9820927381515503, 0.06951801478862762, -0.3887423276901245, 0.2750789225101471, 0.6706547141075134, 0.057384561747312546, 0.08784543722867966, -0.08064581453800201, 1.1139016151428223, ...
func (o *GetPlatformsParams) SetTimeout(timeout time.Duration) { o.timeout = timeout }
[ 0.09455931186676025, 0.847466230392456, 0.25964128971099854, 0.39445632696151733, 0.352366179227829, 1.2508692741394043, 0.5278369784355164, 0.09851914644241333, -0.291542112827301, 0.5954979658126831, 0.05117011070251465, 0.5840179324150085, -0.7844999432563782, 0.9095658659934998, -0.4...
func (o *GetPlatformsParams) WithContext(ctx context.Context) *GetPlatformsParams { o.SetContext(ctx) return o }
[ -0.19833143055438995, 0.8488651514053345, 0.3776460886001587, 0.27646690607070923, -0.3523560166358948, 0.8502709865570068, -0.08139223605394363, -1.0174667835235596, 0.49445316195487976, 0.09681890159845352, 0.22745618224143982, 0.0720456913113594, -0.4655483365058899, 0.3974287807941437,...
func (o *GetPlatformsParams) SetContext(ctx context.Context) { o.Context = ctx }
[ -0.4846196472644806, 0.8058380484580994, 0.1725509613752365, 0.4648810923099518, 0.2902601957321167, 0.9411342740058899, 0.47718337178230286, -0.5001112818717957, 0.4377991557121277, 0.022157976403832436, -0.011076522059738636, 0.5362512469291687, -0.9537487030029297, 0.35574647784233093, ...
func (o *GetPlatformsParams) WithHTTPClient(client *http.Client) *GetPlatformsParams { o.SetHTTPClient(client) return o }
[ 0.2988762855529785, 0.1493372917175293, 0.3998105525970459, 0.11402490735054016, -0.11943300068378448, 0.6593826413154602, 0.5267572999000549, -0.7405812740325928, -0.2815355956554413, -0.20565612614154816, -0.19837148487567902, -0.1244669184088707, 0.13661383092403412, 0.4012833535671234,...
func (o *GetPlatformsParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client }
[ 0.4064401090145111, 0.2654075026512146, 0.23553648591041565, -0.41385284066200256, -0.2871454954147339, 0.5329267382621765, 0.8525919318199158, -0.6799834370613098, -0.687499463558197, -0.17882466316223145, -0.4173480272293091, 0.513579785823822, -0.6877429485321045, 0.12291772663593292, ...
func (o *GetPlatformsParams) WithExtended(extended *bool) *GetPlatformsParams { o.SetExtended(extended) return o }
[ 0.5259621739387512, 0.6676386594772339, 0.40466535091400146, 0.37300819158554077, -0.6356261968612671, 0.9828013777732849, -0.4145891070365906, 0.19036336243152618, 0.3198637366294861, -0.14279305934906006, -0.5274287462234497, 0.10458464920520782, 0.11141763627529144, 0.7036722302436829, ...
func (o *GetPlatformsParams) SetExtended(extended *bool) { o.Extended = extended }
[ 0.26566174626350403, 0.7392187714576721, 0.30945828557014465, 0.3320360481739044, -0.047602854669094086, 1.0148556232452393, 0.055880654603242874, 0.33096495270729065, -0.3363837003707886, -0.10844610631465912, -0.8720608353614807, 0.9339513778686523, -0.6864844560623169, 0.653921842575073...
func (o *GetPlatformsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Extended != nil { // query param extended var qrExtended bool if o.Extended != nil { qrExtended = *o.Extended } qExten...
[ -1.0672210454940796, 0.39471039175987244, 0.9569242596626282, -0.45446041226387024, 0.4679999053478241, 0.40900686383247375, 0.7895938754081726, -0.14786802232265472, -0.28283971548080444, 0.29631513357162476, 0.21468909084796906, 0.31263208389282227, -0.4289642870426178, 0.312485009431839...
func (l *LicenseRepository) ListMetricEquipAttr(ctx context.Context, scopes ...string) ([]*v1.MetricEquipAttrStand, error) { respJSON, err := l.listMetricWithMetricType(ctx, v1.MetricEquipAttrStandard, scopes...) if err != nil { logger.Log.Error("dgraph/ListMetricEquipAttr - listMetricWithMetricType", zap.Error(err...
[ -0.271856427192688, -1.1993852853775024, 0.380013108253479, -0.5054676532745361, -0.4109153747558594, -0.21015435457229614, -0.038132380694150925, -0.26670417189598083, 0.3704075217247009, 1.4165689945220947, 0.5020956993103027, 0.03248223662376404, 0.09941776096820831, 0.5665079355239868,...
func NewMockServiceAuth(ctrl *gomock.Controller) *MockServiceAuth { mock := &MockServiceAuth{ctrl: ctrl} mock.recorder = &MockServiceAuthMockRecorder{mock} return mock }
[ 0.08185678720474243, -0.6714043617248535, 0.12032219022512436, 0.8472605347633362, -0.4214467406272888, 0.28248831629753113, 0.8826653361320496, -1.2614219188690186, 0.8452848792076111, 0.2781592011451721, -0.5702248215675354, -0.11778007447719574, -0.8203055262565613, 1.214376449584961, ...
func (m *MockServiceAuth) EXPECT() *MockServiceAuthMockRecorder { return m.recorder }
[ -0.1122942715883255, -0.04005848243832588, 0.17328956723213196, 0.3662046492099762, -0.3005636930465698, 0.3746647834777832, 0.043106809258461, 0.22020794451236725, 0.5735882520675659, -0.4599517583847046, 0.8422294855117798, 0.6998329758644104, -0.7053521275520325, 0.6485223770141602, -...
func (m *MockServiceAuth) Auth(arg0 models.UserInput) (models.UserBoardsOutside, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Auth", arg0) ret0, _ := ret[0].(models.UserBoardsOutside) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.415072500705719, 0.2071717530488968, 0.07614850252866745, 1.0403857231140137, 0.6610812544822693, 0.5225566029548645, 1.6614829301834106, -0.4985319674015045, -0.8378767371177673, -0.49593764543533325, -0.5511643886566162, -0.11548511683940887, -0.3619515001773834, 0.7953961491584778, ...
func (mr *MockServiceAuthMockRecorder) Auth(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Auth", reflect.TypeOf((*MockServiceAuth)(nil).Auth), arg0) }
[ -0.21495412290096283, 0.41203877329826355, 0.035640183836221695, 0.47280776500701904, -0.14968368411064148, 0.3392627537250519, 0.2248302400112152, -0.9398976564407349, 0.9199684858322144, -0.2971632778644562, 0.7516992092132568, 1.2297807931900024, -0.4054246246814728, 1.3199936151504517,...
func (m *MockServiceAuth) CheckCookie(arg0 echo.Context) (int64, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CheckCookie", arg0) ret0, _ := ret[0].(int64) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.54780513048172, -0.30151301622390747, 0.6280578970909119, 1.0010724067687988, 1.9381769895553589, 0.053841881453990936, 0.8812151551246643, 0.25935855507850647, -1.5132272243499756, 0.2432233989238739, -0.2882431447505951, -0.6404281854629517, -0.9323016405105591, 1.747358798980713, 0...
func (mr *MockServiceAuthMockRecorder) CheckCookie(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckCookie", reflect.TypeOf((*MockServiceAuth)(nil).CheckCookie), arg0) }
[ 0.172234445810318, 0.5214062333106995, 0.24317771196365356, 0.5781859159469604, 0.6249073147773743, 0.22554071247577667, -0.20029544830322266, -0.43717753887176514, -0.13555391132831573, 0.7707935571670532, 0.8848788738250732, 0.42217037081718445, -1.3647598028182983, 1.5601153373718262, ...
func (m *MockServiceAuth) Login(arg0 models.UserInputLogin) (models.UserSession, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Login", arg0) ret0, _ := ret[0].(models.UserSession) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.8544145226478577, -0.6496455073356628, 0.4083271622657776, 0.7395839691162109, 0.7848607897758484, 0.5821236968040466, 0.9026641845703125, -0.11180423945188522, -0.20055502653121948, -0.17208588123321533, -1.1584526300430298, -0.1647413969039917, -0.5461900234222412, 0.16166232526302338...
func (mr *MockServiceAuthMockRecorder) Login(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Login", reflect.TypeOf((*MockServiceAuth)(nil).Login), arg0) }
[ -0.4770473837852478, 0.16105879843235016, 0.22500695288181305, 0.21537379920482635, -0.23890917003154755, 0.6076789498329163, -0.3674372732639313, -0.6024690866470337, 0.7285439968109131, -0.12064605206251144, 0.22758400440216064, 1.135874629020691, -0.859135627746582, 0.970731794834137, ...
func (m *MockServiceAuth) Logout(arg0 echo.Context) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Logout", arg0) ret0, _ := ret[0].(error) return ret0 }
[ -0.3016536235809326, -0.2999647855758667, 0.3909962475299835, -0.029126767069101334, 0.6259546875953674, 0.6364573836326599, 0.6296370625495911, 0.11289405822753906, -0.2409045249223709, -0.02967841364443302, -0.11344318836927414, 0.14146538078784943, -0.8881518840789795, 0.754616200923919...
func (mr *MockServiceAuthMockRecorder) Logout(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Logout", reflect.TypeOf((*MockServiceAuth)(nil).Logout), arg0) }
[ 0.027998412027955055, 0.37748363614082336, 0.28307589888572693, -0.044772788882255554, -0.4117353856563568, 0.606431782245636, -0.31892892718315125, -0.8936730623245239, 1.0062832832336426, 0.5317782163619995, 0.6480957865715027, 1.1049766540527344, -0.9353829622268677, 1.2249534130096436,...
func (m *MockServiceAuth) Registration(arg0 models.UserInputReg) (models.UserSession, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Registration", arg0) ret0, _ := ret[0].(models.UserSession) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -1.1780426502227783, 0.7425323128700256, 0.22494462132453918, 0.9670521020889282, 0.8341087102890015, -0.03571072220802307, 1.5962551832199097, -0.33480265736579895, -0.6142030954360962, 0.4353111684322357, -0.9853100180625916, -1.2865263223648071, -0.2373971939086914, 0.5806354880332947, ...
func (mr *MockServiceAuthMockRecorder) Registration(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Registration", reflect.TypeOf((*MockServiceAuth)(nil).Registration), arg0) }
[ -0.7632007002830505, 1.2729880809783936, 0.05949931591749191, 0.7459670305252075, 0.13935449719429016, -0.1945568025112152, 0.2534502446651459, -0.683940589427948, 0.3315654695034027, 0.621618926525116, 0.5007160902023315, 0.12433378398418427, -0.5629206895828247, 1.5247271060943604, 0.2...
func (v *Popover) Popup() { C.gtk_popover_popup(v.native()) }
[ 0.791211724281311, 0.1445322334766388, 0.39783796668052673, 0.2175830751657486, -0.3211476504802704, 0.6429562568664551, 0.8836040496826172, 0.39678579568862915, -0.2024899125099182, 0.6175436973571777, 0.3528120219707489, -0.23548221588134766, 0.751177966594696, -0.3745408356189728, -0....
func (v *Popover) Popdown() { C.gtk_popover_popdown(v.native()) }
[ 1.0834237337112427, -0.3374797999858856, 0.5500609278678894, 0.197685107588768, -0.2563038766384125, 1.227667212486267, 0.5696274042129517, -0.48247459530830383, 0.055277809500694275, 0.0939587950706482, 0.31973326206207275, -0.7882630228996277, 0.1492357850074768, 0.2187778204679489, -0...
func (v *FileChooser) AddChoice(id, label string, options, optionLabels []string) { cId := C.CString(id) defer C.free(unsafe.Pointer(cId)) cLabel := C.CString(label) defer C.free(unsafe.Pointer(cLabel)) if options == nil || optionLabels == nil { C.gtk_file_chooser_add_choice(v.native(), (*C.gchar)(cId), (*C.gc...
[ -0.43769195675849915, -0.4757031500339508, 0.9025325775146484, -0.3759309947490692, 0.8647228479385376, 0.0737130343914032, -0.19019922614097595, -0.37179791927337646, -0.37119388580322266, 0.3538326621055603, 0.7856441140174866, -0.3836766183376312, -0.3576148450374603, 0.4644685685634613...
func (v *FileChooser) RemoveChoice(id string) { cId := C.CString(id) defer C.free(unsafe.Pointer(cId)) C.gtk_file_chooser_remove_choice(v.native(), (*C.gchar)(cId)) }
[ -0.3821714222431183, -0.5108176469802856, 0.5688164234161377, 0.20689131319522858, 0.2068275809288025, -0.7894091010093689, 0.13216394186019897, -0.13512283563613892, -0.17993949353694916, 0.7611349821090698, -0.2890893518924713, -0.5280791521072388, -0.4421613812446594, 0.3705185055732727...
func (v *FileChooser) SetChoice(id, option string) { cId := C.CString(id) defer C.free(unsafe.Pointer(cId)) cOption := C.CString(option) defer C.free(unsafe.Pointer(cOption)) C.gtk_file_chooser_set_choice(v.native(), (*C.gchar)(cId), (*C.gchar)(cOption)) }
[ -0.2839410603046417, -0.8493168354034424, 0.4060126841068268, 0.4602842926979065, 0.5857269763946533, -0.3772556781768799, -0.4388373792171478, -0.38217270374298096, -0.6306082606315613, 0.6363347768783569, -0.19408906996250153, 0.0650743916630745, -0.01512754987925291, 0.06872723996639252...
func (v *FileChooser) GetChoice(id string) string { cId := C.CString(id) defer C.free(unsafe.Pointer(cId)) c := C.gtk_file_chooser_get_choice(v.native(), (*C.gchar)(cId)) return C.GoString(c) }
[ -0.15956982970237732, -0.20728866755962372, 0.6017309427261353, 0.36883044242858887, 0.2895064949989319, -1.1045416593551636, -0.13213013112545013, -1.3321852684020996, -0.4026954174041748, 0.8467282056808472, 0.08705452084541321, -0.3372470438480377, -0.19192956387996674, 0.03563113510608...
func (v *ScrolledWindow) GetMaxContentWidth() int { c := C.gtk_scrolled_window_get_max_content_width(v.native()) return int(c) }
[ 0.8919795155525208, -0.5387824773788452, 0.5114990472793579, 0.9358844757080078, -0.691866934299469, 0.08196642249822617, 0.684463620185852, -0.5755796432495117, 0.24220240116119385, -0.9297712445259094, -0.2621789276599884, 0.28560367226600647, -0.755768358707428, 0.715179979801178, -0....
func (v *ScrolledWindow) SetMaxContentWidth(width int) { C.gtk_scrolled_window_set_max_content_width(v.native(), C.gint(width)) }
[ 0.18408755958080292, -0.7217420339584351, 0.4120630919933319, 0.4489986300468445, -0.8708735108375549, 0.3813021779060364, 0.25245407223701477, -0.6737651228904724, 0.36343833804130554, -0.7032181620597839, -0.4705899655818939, -0.014177627861499786, -0.6095094680786133, 1.1228536367416382...
func (v *ScrolledWindow) GetMaxContentHeight() int { c := C.gtk_scrolled_window_get_max_content_height(v.native()) return int(c) }
[ 1.3122847080230713, -0.8340726494789124, 0.6145307421684265, 1.4000416994094849, -0.84832763671875, 0.495846152305603, 0.3726612329483032, -0.9357728958129883, -0.2197238653898239, -0.6037350296974182, -0.5354328155517578, 0.0019614382181316614, -0.6919867992401123, 0.4977753162384033, -...
func (v *ScrolledWindow) SetMaxContentHeight(width int) { C.gtk_scrolled_window_set_max_content_height(v.native(), C.gint(width)) }
[ 0.46339261531829834, -0.8625167012214661, 0.512731671333313, 0.7094215750694275, -1.0804731845855713, 0.6978920698165894, -0.05097724869847298, -1.1333668231964111, 0.09298685193061829, -0.5081269145011902, -0.6435720920562744, -0.04275262728333473, -0.45936429500579834, 0.8988747000694275...
func (v *ScrolledWindow) GetPropagateNaturalWidth() bool { c := C.gtk_scrolled_window_get_propagate_natural_width(v.native()) return gobool(c) }
[ 0.09569772332906723, 0.46034345030784607, 0.7142089605331421, 0.7236782908439636, -0.731268584728241, 0.4429965913295746, -0.007607107982039452, -0.23201002180576324, -0.044676896184682846, -0.9961422681808472, -0.08865794539451599, 0.4065310060977936, -0.5892172455787659, 0.65332329273223...
func (v *ScrolledWindow) SetPropagateNaturalWidth(propagate bool) { C.gtk_scrolled_window_set_propagate_natural_width(v.native(), gbool(propagate)) }
[ 0.15770508348941803, 0.05638745799660683, 0.5968883633613586, 0.4114692807197571, -0.9337150454521179, 0.42127755284309387, 0.18871255218982697, -0.005448579788208008, -0.210325226187706, -0.9203536510467529, 0.1748158484697342, 0.42154672741889954, -0.4480384588241577, 1.0285471677780151,...
func (v *ScrolledWindow) GetPropagateNaturalHeight() bool { c := C.gtk_scrolled_window_get_propagate_natural_height(v.native()) return gobool(c) }
[ 0.2600988745689392, 0.3723742365837097, 0.7429742813110352, 1.0836199522018433, -0.7494233250617981, 0.9827530384063721, -0.14601974189281464, -0.6729966402053833, -0.6590525507926941, -0.44900956749916077, -0.3790943920612335, 0.18857699632644653, -0.7929080128669739, 0.09525436162948608,...
func (v *ScrolledWindow) SetPropagateNaturalHeight(propagate bool) { C.gtk_scrolled_window_set_propagate_natural_height(v.native(), gbool(propagate)) }
[ 0.2750610411167145, -0.03855699673295021, 0.6074849367141724, 0.8092054724693298, -0.9027188420295715, 0.9106450080871582, 0.08561963587999344, -0.4327302575111389, -0.7592782378196716, -0.37675637006759644, -0.3675764501094818, 0.42693468928337097, -0.6021639108657837, 0.5039386749267578,...
func (c *client) GetKlines(query *KlineQuery) ([]Kline, error) { err := query.Check() if err != nil { return nil, err } qp, err := common.QueryParamToMap(*query) if err != nil { return nil, err } resp, err := c.baseClient.Get("/klines", qp) if err != nil { return nil, err } iklines := [][]interface{}{...
[ -0.6565653681755066, -0.28376784920692444, 0.8309032320976257, -0.1924884170293808, 0.1315494179725647, -0.27777165174484253, -0.7454530000686646, -1.2974612712860107, 0.2705819308757782, 0.9888437390327454, -0.23837628960609436, 0.2770540714263916, -0.6552790999412537, 0.13731367886066437...
func NewProvider(conf *blkstorage.Conf, indexConfig *blkstorage.IndexConfig, _ *ledger.Config, metricsProvider metrics.Provider) (extledgerapi.BlockStoreProvider, error) { return blkstorage.NewProvider(conf, indexConfig, metricsProvider) }
[ 0.9753239750862122, 0.33130723237991333, 0.3099331259727478, 1.2921538352966309, -0.6561535000801086, -0.10406538099050522, 0.6603868007659912, -0.28408709168434143, 0.27905377745628357, 0.9864974021911621, 0.09476267546415329, -0.012786077335476875, -0.27565255761146545, 0.259375065565109...
func NewConf(blockStorageDir string, maxBlockfileSize int) *blkstorage.Conf { return blkstorage.NewConf(blockStorageDir, maxBlockfileSize) }
[ 1.284193992614746, -0.47132712602615356, 0.3894176781177521, 0.8937365412712097, -0.3915061950683594, -1.270237684249878, 0.4079938530921936, 0.6278806328773499, -0.4886157214641571, -0.09998345375061035, -0.5412327647209167, 0.03637238219380379, 0.4503377377986908, 0.2728089988231659, 0...