text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (it *BondedECDSAKeepETHRewardDistributedIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.6884956359863281, 0.3909202516078949, 0.2360745668411255, -0.8082886934280396, -0.5385345816612244, 1.2963632345199585, 0.12800650298595428, -0.49683877825737, -0.4499187171459198, -0.1390935629606247, 0.9664751887321472, 0.6131629943847656, -0.6751424670219421, 0.9402942657470703, 0.5...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) FilterETHRewardDistributed(opts *bind.FilterOpts) (*BondedECDSAKeepETHRewardDistributedIterator, error) { logs, sub, err := _BondedECDSAKeep.contract.FilterLogs(opts, "ETHRewardDistributed") if err != nil { return nil, err } return &BondedECDSAKeepETHRewardDistrib...
[ 0.7394496202468872, -0.2765226364135742, 0.4898619055747986, -0.7237183451652527, -0.097758948802948, 0.8640509843826294, 0.4850417673587799, -0.021106163039803505, 0.9705192446708679, 0.5919368863105774, 0.7047085165977478, 0.5993900895118713, -0.04656494781374931, 0.21440505981445312, ...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) WatchETHRewardDistributed(opts *bind.WatchOpts, sink chan<- *BondedECDSAKeepETHRewardDistributed) (event.Subscription, error) { logs, sub, err := _BondedECDSAKeep.contract.WatchLogs(opts, "ETHRewardDistributed") if err != nil { return nil, err } return event.NewSu...
[ 1.29192316532135, -0.49199989438056946, 0.8579484820365906, -1.3374866247177124, 0.15164649486541748, 0.3282109200954437, 0.7223889231681824, -0.3964467942714691, 0.7754974365234375, -0.14821217954158783, 0.211976557970047, 0.9663711786270142, 0.35510313510894775, 0.5514428019523621, 0.3...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) ParseETHRewardDistributed(log types.Log) (*BondedECDSAKeepETHRewardDistributed, error) { event := new(BondedECDSAKeepETHRewardDistributed) if err := _BondedECDSAKeep.contract.UnpackLog(event, "ETHRewardDistributed", log); err != nil { return nil, err } return event...
[ 1.219482421875, 0.05444738641381264, 0.45554301142692566, -1.7149326801300049, 0.02684769034385681, 0.40137428045272827, 0.44739046692848206, -0.059901684522628784, 1.1527917385101318, 0.2694073021411896, -0.2052142173051834, 0.08164355903863907, 0.4157058894634247, 0.09750176966190338, ...
func (it *BondedECDSAKeepKeepClosedIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.5369687080383301, 0.2532702386379242, 0.330276757478714, 0.03333067148923874, -1.0532370805740356, 1.1389192342758179, -0.15172286331653595, -0.9399200081825256, -0.7879348993301392, -0.37729984521865845, 0.7935419678688049, 0.22113269567489624, -0.4927711486816406, 0.9029083251953125, ...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) FilterKeepClosed(opts *bind.FilterOpts) (*BondedECDSAKeepKeepClosedIterator, error) { logs, sub, err := _BondedECDSAKeep.contract.FilterLogs(opts, "KeepClosed") if err != nil { return nil, err } return &BondedECDSAKeepKeepClosedIterator{contract: _BondedECDSAKeep....
[ -0.021977027878165245, -0.06756405532360077, 0.7470836043357849, 0.2602808475494385, -0.7820184826850891, 1.0528814792633057, 0.345267653465271, -1.0680125951766968, 0.4017602503299713, 0.3362070322036743, 0.5212185382843018, 0.490118145942688, -0.37290918827056885, -0.004550117067992687, ...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) WatchKeepClosed(opts *bind.WatchOpts, sink chan<- *BondedECDSAKeepKeepClosed) (event.Subscription, error) { logs, sub, err := _BondedECDSAKeep.contract.WatchLogs(opts, "KeepClosed") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan st...
[ 0.5764428973197937, -0.3240348994731903, 0.9836947917938232, -0.21976420283317566, -0.4744468331336975, 0.15629690885543823, 0.6822414994239807, -1.2945988178253174, 0.11373406648635864, -0.7536677122116089, 0.27307260036468506, 1.0723357200622559, 0.197071373462677, 0.39948707818984985, ...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) ParseKeepClosed(log types.Log) (*BondedECDSAKeepKeepClosed, error) { event := new(BondedECDSAKeepKeepClosed) if err := _BondedECDSAKeep.contract.UnpackLog(event, "KeepClosed", log); err != nil { return nil, err } return event, nil }
[ 0.5126778483390808, 0.10027361661195755, 0.412210077047348, -0.26800164580345154, -0.7686941027641296, 0.45599690079689026, 0.18837252259254456, -0.7846033573150635, 0.14968281984329224, -0.156804621219635, -0.3496301770210266, -0.04792658984661102, -0.03341978043317795, -0.178486585617065...
func (it *BondedECDSAKeepKeepTerminatedIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.22145044803619385, 0.4562613070011139, 0.2886742353439331, 0.00891263410449028, -1.056984305381775, 1.1863377094268799, -0.23373021185398102, -0.6855613589286804, -0.8185349702835083, -0.000468679383629933, 0.521098256111145, 0.31762170791625977, -0.6859304904937744, 1.0803433656692505, ...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) FilterKeepTerminated(opts *bind.FilterOpts) (*BondedECDSAKeepKeepTerminatedIterator, error) { logs, sub, err := _BondedECDSAKeep.contract.FilterLogs(opts, "KeepTerminated") if err != nil { return nil, err } return &BondedECDSAKeepKeepTerminatedIterator{contract: _...
[ 0.12840445339679718, -0.20986583828926086, 0.6577521562576294, 0.2315787374973297, -0.26557278633117676, 0.7956498265266418, -0.2128063589334488, -0.4601428508758545, 0.5678761601448059, 0.5015642046928406, -0.11689090728759766, 0.6065050363540649, -0.6625064015388489, -0.02477913908660412...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) WatchKeepTerminated(opts *bind.WatchOpts, sink chan<- *BondedECDSAKeepKeepTerminated) (event.Subscription, error) { logs, sub, err := _BondedECDSAKeep.contract.WatchLogs(opts, "KeepTerminated") if err != nil { return nil, err } return event.NewSubscription(func(qu...
[ 0.5101396441459656, -0.37765857577323914, 0.9457446932792664, -0.2966844439506531, -0.10415177792310715, 0.01922842301428318, 0.21848689019680023, -0.6955615282058716, 0.2844947874546051, -0.5356000065803528, -0.48733773827552795, 0.9963498711585999, 0.01786016672849655, 0.4682790338993072...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) ParseKeepTerminated(log types.Log) (*BondedECDSAKeepKeepTerminated, error) { event := new(BondedECDSAKeepKeepTerminated) if err := _BondedECDSAKeep.contract.UnpackLog(event, "KeepTerminated", log); err != nil { return nil, err } return event, nil }
[ 0.49875134229660034, -0.1600060611963272, 0.44612425565719604, -0.3535614013671875, -0.6102792620658875, 0.2795240879058838, -0.2936801016330719, -0.1322995275259018, 0.30802369117736816, 0.41108959913253784, -0.9038336277008057, -0.07517176121473312, -0.07143905758857727, -0.1148942932486...
func (it *BondedECDSAKeepPublicKeyPublishedIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.5299426913261414, -0.05152970552444458, 0.18085820972919464, -0.11254314333200455, -1.2326363325119019, 1.171882152557373, -0.28404298424720764, -0.3678836226463318, -1.036325454711914, -0.11010024696588516, 0.7644848823547363, 0.010360443964600563, -0.833766758441925, 1.109575867652893,...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) FilterPublicKeyPublished(opts *bind.FilterOpts) (*BondedECDSAKeepPublicKeyPublishedIterator, error) { logs, sub, err := _BondedECDSAKeep.contract.FilterLogs(opts, "PublicKeyPublished") if err != nil { return nil, err } return &BondedECDSAKeepPublicKeyPublishedIter...
[ 0.3373871445655823, -0.3108215928077698, -0.016710065305233, 0.5520625114440918, -0.7984293699264526, 0.09441743791103363, 0.013060609810054302, 0.22420912981033325, -0.48157936334609985, 0.604149580001831, 0.07628720998764038, 0.07504023611545563, -0.5698800086975098, 0.41567400097846985,...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) WatchPublicKeyPublished(opts *bind.WatchOpts, sink chan<- *BondedECDSAKeepPublicKeyPublished) (event.Subscription, error) { logs, sub, err := _BondedECDSAKeep.contract.WatchLogs(opts, "PublicKeyPublished") if err != nil { return nil, err } return event.NewSubscrip...
[ 0.5434259176254272, -0.4484841227531433, 0.42763829231262207, -0.14494480192661285, -0.352204293012619, -0.3681716322898865, 0.5496484637260437, -0.23075737059116364, -0.6312367916107178, -0.12387534976005554, -0.45178255438804626, 0.19004927575588226, -0.10813195258378983, 0.4314170479774...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) ParsePublicKeyPublished(log types.Log) (*BondedECDSAKeepPublicKeyPublished, error) { event := new(BondedECDSAKeepPublicKeyPublished) if err := _BondedECDSAKeep.contract.UnpackLog(event, "PublicKeyPublished", log); err != nil { return nil, err } return event, nil }
[ 0.5952534675598145, 0.23641645908355713, 0.00866716168820858, -0.1065714955329895, -0.6277700066566467, -0.39044052362442017, -0.14328739047050476, 0.35539206862449646, -0.4183783233165741, 0.1409069001674652, -0.9445962905883789, -0.47888678312301636, -0.04961192235350609, 0.4692440330982...
func (it *BondedECDSAKeepSignatureRequestedIterator) Close() error { it.sub.Unsubscribe() return nil }
[ -0.4773694574832916, 0.4930741786956787, 0.4360980689525604, 0.11300365626811981, -1.1870677471160889, 0.8519389629364014, -0.4302719235420227, -0.616454005241394, -0.6545016765594482, -0.3768763244152069, 0.6165440082550049, -0.21953117847442627, -0.676092803478241, 0.7428176403045654, ...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) FilterSignatureRequested(opts *bind.FilterOpts, digest [][32]byte) (*BondedECDSAKeepSignatureRequestedIterator, error) { var digestRule []interface{} for _, digestItem := range digest { digestRule = append(digestRule, digestItem) } logs, sub, err := _BondedECDSAK...
[ -1.3371516466140747, -0.18664924800395966, 0.6772290468215942, 0.201040118932724, -0.7551546692848206, -0.25626710057258606, 0.12847472727298737, 0.24350816011428833, 0.6139973998069763, 0.10913823544979095, 0.6898597478866577, 0.3214488923549652, -0.44374990463256836, 0.49657732248306274,...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) WatchSignatureRequested(opts *bind.WatchOpts, sink chan<- *BondedECDSAKeepSignatureRequested, digest [][32]byte) (event.Subscription, error) { var digestRule []interface{} for _, digestItem := range digest { digestRule = append(digestRule, digestItem) } logs, sub...
[ -0.5661033391952515, -0.3494761288166046, 0.831892728805542, 0.07740744948387146, -0.30927684903144836, -0.40616628527641296, 0.28483107686042786, -0.6642230153083801, 0.2067989856004715, -0.4336320757865906, 0.27130457758903503, 0.7209182977676392, 0.28783291578292847, 0.2704238295555115,...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) ParseSignatureRequested(log types.Log) (*BondedECDSAKeepSignatureRequested, error) { event := new(BondedECDSAKeepSignatureRequested) if err := _BondedECDSAKeep.contract.UnpackLog(event, "SignatureRequested", log); err != nil { return nil, err } return event, nil }
[ -1.0635054111480713, 0.38520699739456177, 0.46579256653785706, 0.23648904263973236, -0.722450315952301, -0.4107014536857605, -0.17504121363162994, 0.17600642144680023, 0.41387316584587097, -0.27668020129203796, -0.3561488687992096, -0.2740527093410492, 0.3380041718482971, 0.181691989302635...
func (it *BondedECDSAKeepSignatureSubmittedIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.25704556703567505, 0.3940252959728241, 0.2577410042285919, -0.12677904963493347, -1.354272723197937, 1.20428466796875, 0.016494937241077423, -0.31769880652427673, -0.9670038819313049, -0.16647367179393768, 0.5766679644584656, -0.05958849564194679, -0.7382563352584839, 1.2873345613479614,...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) FilterSignatureSubmitted(opts *bind.FilterOpts, digest [][32]byte) (*BondedECDSAKeepSignatureSubmittedIterator, error) { var digestRule []interface{} for _, digestItem := range digest { digestRule = append(digestRule, digestItem) } logs, sub, err := _BondedECDSAK...
[ 0.07620275765657425, 0.11901674419641495, 0.2959004342556, -0.36108165979385376, -0.9991677403450012, 0.2206086665391922, 0.49595171213150024, -0.2649397552013397, 0.3169806897640228, 0.35617560148239136, -0.049576424062252045, 0.2330566942691803, -0.48584726452827454, 0.6079676747322083, ...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) WatchSignatureSubmitted(opts *bind.WatchOpts, sink chan<- *BondedECDSAKeepSignatureSubmitted, digest [][32]byte) (event.Subscription, error) { var digestRule []interface{} for _, digestItem := range digest { digestRule = append(digestRule, digestItem) } logs, sub...
[ 0.3309289515018463, -0.09394238889217377, 0.6334900259971619, -0.643578827381134, -0.7934088706970215, -0.16246409714221954, 0.822382926940918, -0.6859176754951477, 0.09288772195577621, -0.23760128021240234, -0.20879755914211273, 0.6662236452102661, 0.0932130217552185, 0.4609237313270569, ...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) ParseSignatureSubmitted(log types.Log) (*BondedECDSAKeepSignatureSubmitted, error) { event := new(BondedECDSAKeepSignatureSubmitted) if err := _BondedECDSAKeep.contract.UnpackLog(event, "SignatureSubmitted", log); err != nil { return nil, err } return event, nil }
[ 0.4652820825576782, 0.6876367330551147, 0.14185965061187744, -0.27483442425727844, -0.8320819139480591, 0.005759084597229958, 0.4879928529262543, -0.08115335553884506, 0.24970324337482452, 0.16587664186954498, -0.8740031123161316, -0.4289068579673767, 0.29113438725471497, 0.066294349730014...
func (it *BondedECDSAKeepSlashingFailedIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.8091415166854858, 0.32809266448020935, 0.11714611947536469, 0.061063628643751144, -1.0492833852767944, 1.0283957719802856, -0.08013347536325455, -0.40015631914138794, -1.0372464656829834, -0.8288750052452087, 0.9622634053230286, 0.4472178816795349, -0.4558263123035431, 0.9717960357666016...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) FilterSlashingFailed(opts *bind.FilterOpts) (*BondedECDSAKeepSlashingFailedIterator, error) { logs, sub, err := _BondedECDSAKeep.contract.FilterLogs(opts, "SlashingFailed") if err != nil { return nil, err } return &BondedECDSAKeepSlashingFailedIterator{contract: _...
[ 0.4495072066783905, 0.4229939877986908, 0.20023824274539948, 0.5447566509246826, -0.3135482668876648, 0.6632503271102905, 0.4957906901836395, -0.40403109788894653, -0.21506015956401825, -0.1721537858247757, 0.5050235390663147, 0.604885458946228, -0.44890326261520386, -0.19819998741149902, ...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) WatchSlashingFailed(opts *bind.WatchOpts, sink chan<- *BondedECDSAKeepSlashingFailed) (event.Subscription, error) { logs, sub, err := _BondedECDSAKeep.contract.WatchLogs(opts, "SlashingFailed") if err != nil { return nil, err } return event.NewSubscription(func(qu...
[ 0.776450514793396, 0.06318417191505432, 0.5142257809638977, -0.038614772260189056, 0.03063148818910122, -0.048058222979307175, 0.8196398615837097, -0.685464084148407, 0.02655917964875698, -0.825052797794342, 0.05824829265475273, 0.9880490899085999, 0.19470742344856262, 0.3755488693714142, ...
func (_BondedECDSAKeep *BondedECDSAKeepFilterer) ParseSlashingFailed(log types.Log) (*BondedECDSAKeepSlashingFailed, error) { event := new(BondedECDSAKeepSlashingFailed) if err := _BondedECDSAKeep.contract.UnpackLog(event, "SlashingFailed", log); err != nil { return nil, err } return event, nil }
[ 0.551825761795044, 0.5068516135215759, 0.0426788404583931, 0.0033802795223891735, -0.23064793646335602, -0.06048508360981941, 0.6786001920700073, -0.034718919545412064, -0.26729992032051086, -0.450798898935318, -0.42219242453575134, -0.05805152282118797, -0.0930306613445282, -0.10031919181...
func New(c *warden.ServerConfig, svr *service.Service) *warden.Server { ws := warden.NewServer(c) pb.RegisterThumbupServer(ws.Server(), &server{s: svr}) ws, err := ws.Start() if err != nil { panic(err) } return ws }
[ -0.13012360036373138, 0.07538425177335739, 0.23967446386814117, -0.05611824244260788, 0.25298625230789185, 0.2849491834640503, 0.43733787536621094, -0.2000996619462967, 0.14595283567905426, 0.2885630130767822, 0.39436283707618713, 0.6344878077507019, 0.1384742558002472, 1.1907442808151245,...
func (ps *PeerSet) Add(peer *Peer) error { ps.mtx.Lock() defer ps.mtx.Unlock() if ps.lookup[peer.Key] != nil { return ErrSwitchDuplicatePeer } // ensure we havent maxed out connections for the peer's IP range yet // and update the IP range counters if !ps.incrIPRangeCounts(peer.Host) { return ErrSwitchMaxPe...
[ -1.6513259410858154, 0.01565612107515335, 0.34909293055534363, -0.618517279624939, 0.4385205805301666, -0.10576937347650528, -0.93112713098526, 0.027696169912815094, 0.4524063766002655, 0.10497482120990753, 0.1062532290816307, -0.055573128163814545, -1.0208715200424194, 0.6917198896408081,...
func (ps *PeerSet) List() []*Peer { ps.mtx.Lock() defer ps.mtx.Unlock() return ps.list }
[ -0.7519608736038208, -0.7623236179351807, 0.2945014238357544, -0.4190683662891388, 0.47718968987464905, 0.001441168482415378, -0.792966365814209, -0.4075293242931366, 0.276245653629303, 0.04485959932208061, 0.0022161344531923532, 0.6372826099395752, -1.1518913507461548, -0.1699299365282058...
func (ps *PeerSet) HasMaxForIPRange(conn net.Conn) (ok bool) { ps.mtx.Lock() defer ps.mtx.Unlock() ip, _, _ := net.SplitHostPort(conn.RemoteAddr().String()) ipBytes := strings.Split(ip, ".") c := ps.connectedIPs for i, ipByte := range ipBytes { if c, ok = c.children[ipByte]; !ok { return false } if maxP...
[ -0.5065996050834656, -0.4630303382873535, 0.45160719752311707, -0.661651611328125, -0.55931156873703, -0.4711330831050873, -0.6021294593811035, 0.4082299470901489, -0.7257900238037109, -0.3022291958332062, -0.047760624438524246, -0.9110479354858398, -0.5725379586219788, -0.0497178435325622...
func (ps *PeerSet) incrIPRangeCounts(address string) bool { addrParts := strings.Split(address, ".") c := ps.connectedIPs return incrNestedCounters(c, addrParts, 0) }
[ -0.6344578862190247, 0.2841012179851532, 0.5215134024620056, -1.1299567222595215, -0.7858367562294006, 0.44553592801094055, 0.08460287749767303, 0.2190275937318802, 0.8244726061820984, -0.605798065662384, 0.18943694233894348, -0.3991144597530365, -0.5415139198303223, -0.2674206495285034, ...
func incrNestedCounters(c *nestedCounter, ipBytes []string, index int) bool { ipByte := ipBytes[index] child := c.children[ipByte] if child == nil { child = NewNestedCounter() c.children[ipByte] = child } if index+1 < len(ipBytes) { if !incrNestedCounters(child, ipBytes, index+1) { return false } } if...
[ -0.1695113480091095, 0.701509952545166, 0.7824186682701111, -0.25186529755592346, -0.5141637325286865, 0.658658504486084, 0.22862491011619568, -0.27825722098350525, 0.0993683934211731, -1.3509864807128906, -0.4828450679779053, -0.03631177544593811, -1.369872808456421, 0.17078392207622528, ...
func (ps *PeerSet) decrIPRangeCounts(address string) { addrParts := strings.Split(address, ".") c := ps.connectedIPs decrNestedCounters(c, addrParts, 0) }
[ -0.221074178814888, -0.2494416981935501, 0.33781343698501587, -1.330603003501892, -0.5265688896179199, 0.11770812422037125, 0.13094794750213623, 0.47733938694000244, 0.546563982963562, -0.24490530788898468, 0.5448406934738159, 0.07230855524539948, -0.38878270983695984, -0.4164397716522217,...
func decrNestedCounters(c *nestedCounter, ipBytes []string, index int) { ipByte := ipBytes[index] child := c.children[ipByte] if child == nil { log.Error("p2p/peer_set decrNestedCounters encountered a missing child counter") return } if index+1 < len(ipBytes) { decrNestedCounters(child, ipBytes, index+1) } ...
[ 0.4239910840988159, 0.2047576606273651, 0.622484564781189, -0.6728277802467346, -0.13177527487277985, 0.3094538152217865, 0.45391151309013367, -0.12352656573057175, -0.2312200963497162, -0.5954354405403137, 0.08182372152805328, 0.23954452574253082, -1.4149911403656006, 0.23013581335544586,...
func NewMockUserUsecase(ctrl *gomock.Controller) *MockUserUsecase { mock := &MockUserUsecase{ctrl: ctrl} mock.recorder = &MockUserUsecaseMockRecorder{mock} return mock }
[ -0.34157952666282654, 0.03211457282304764, 0.3193383812904358, 1.5046017169952393, 0.05844103544950485, -0.24588066339492798, 1.1680585145950317, -0.6175930500030518, 1.0045082569122314, 0.8984057307243347, -0.47454899549484253, -0.29779475927352905, -0.00008650654490338638, 0.862501502037...
func (m *MockUserUsecase) EXPECT() *MockUserUsecaseMockRecorder { return m.recorder }
[ 0.028011498972773552, 0.306907057762146, 0.24697712063789368, 0.9741822481155396, 0.013544588349759579, 0.20884183049201965, 0.4396235942840576, 0.25082927942276, 0.6702139973640442, -0.21460066735744476, 0.37724214792251587, 0.8396599888801575, -0.6722604036331177, 0.6011424660682678, 0...
func (m *MockUserUsecase) GetUser(id int64) entity.User { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetUser", id) ret0, _ := ret[0].(entity.User) return ret0 }
[ -0.5844278931617737, 0.11949772387742996, 0.18733060359954834, 1.3234913349151611, 1.3920810222625732, 0.12839749455451965, 1.3026467561721802, -0.8848300576210022, -0.4997773766517639, -0.35046452283859253, -0.6333355903625488, -0.7637637853622437, -0.5279110670089722, 1.081600308418274, ...
func (mr *MockUserUsecaseMockRecorder) GetUser(id interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUser", reflect.TypeOf((*MockUserUsecase)(nil).GetUser), id) }
[ -0.31796276569366455, 0.8319678902626038, 0.23441961407661438, 0.9564796090126038, 0.5027936697006226, -0.012729877606034279, 0.36980995535850525, -1.5283490419387817, 0.902197539806366, 0.3945365846157074, 0.24700012803077698, 0.3305656611919403, -0.7975971102714539, 1.4997313022613525, ...
func (m *StoragepoolStatusUnprovisionedItem) Validate(formats strfmt.Registry) error { var res []error if err := m.validateBay(formats); err != nil { res = append(res, err) } if err := m.validateLnn(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(r...
[ 0.09669535607099533, 0.023194780573248863, 0.19433282315731049, 0.4552098214626312, -0.05400476232171059, 0.3962315618991852, -0.020925723016262054, 0.5115394592285156, -0.7102124691009521, -0.05645005404949188, 0.20154313743114471, 0.42864567041397095, -0.6047325134277344, 0.2194656580686...
func NewUnixLogger(path string) *UnixLogger { return &UnixLogger{path} }
[ -0.05811208486557007, -0.6839144825935364, 0.17115777730941772, 0.026618532836437225, -1.582156777381897, -0.9415630102157593, -1.5899946689605713, 1.3590389490127563, 0.3946053087711334, -0.5009212493896484, -1.0970251560211182, 0.4973386228084564, 0.19884677231311798, 1.0734132528305054,...
func (ul *UnixLogger) Serve() { os.Remove(ul.path) listener, err := net.ListenUnix("unix", &net.UnixAddr{Name: ul.path, Net: "unix"}) if err != nil { log.Fatal("ListenUnix failed", zap.Error(err)) } err = os.Chmod(ul.path, 0666) if err != nil { log.Fatal("Chmod failed", zap.Error(err)) } defer os.Remove(ul...
[ 0.30282407999038696, -0.24192547798156738, 1.030550479888916, -0.3621608316898346, 0.29157721996307373, 0.10092950612306595, -0.34101632237434387, 0.7084357738494873, -0.9127730131149292, -0.12295891344547272, -0.2484039068222046, 1.0993732213974, -0.32819947600364685, 0.1690875142812729, ...
func parseBuildParameters(parameters []string) (string, string, bool) { paramString := strings.Join(parameters, " ") if len(parameters) == 1 { if strings.HasPrefix(paramString, "\"") && strings.HasSuffix(paramString, "\"") { tempString := strings.TrimLeft(strings.TrimRight(paramString, `\"`), `\"`) return tem...
[ -0.2501165568828583, -0.9781807065010071, 1.0197030305862427, 0.4049256145954132, 0.01836991310119629, 0.16481047868728638, 0.35622572898864746, 0.3767239451408386, -0.6253198385238647, 0.9907033443450928, -0.5195479393005371, 0.5188789963722229, -1.4020016193389893, 0.5609865188598633, ...
func PollInput() UserInput { var input UserInput switch kev := term.PollEvent(); kev.Type { case term.EventKey: switch kev.Key { case term.KeyArrowUp: input.Up = true case term.KeyArrowDown: input.Down = true case term.KeyArrowLeft: input.Left = true case term.KeyArrowRight: input.Right = ...
[ -0.34176188707351685, -0.4013573229312897, 0.5946945548057556, 0.27702081203460693, -1.0048987865447998, 1.0698143243789673, -0.0270744226872921, -0.3330654203891754, 0.615802526473999, 0.7305801510810852, 0.11043193191289902, -0.022660156711935997, 0.03551457077264786, -0.4434556365013122...
func (lss *ListStrings) Join(lsep string, ssep string) (s string) { lsslen := len(*lss) - 1 for x, ls := range *lss { s += strings.Join(ls, ssep) if x < lsslen { s += lsep } } return }
[ 0.42817988991737366, -0.3902934193611145, 0.5464646816253662, -0.2998930513858795, -0.4578384459018707, 0.9167600870132446, -1.8855313062667847, 0.2685322165489197, 0.9132334589958191, 0.4561009109020233, 0.020652547478675842, -0.08108355104923248, -0.5446599125862122, 0.4233188033103943, ...
func NewXFRMCollector() prometheus.Collector { return newXFRMCollector(procfs.NewXfrmStat) }
[ 0.4227563738822937, -0.418958455324173, 0.23228362202644348, -1.3629975318908691, -0.5479415059089661, -1.1140564680099487, -0.4569900333881378, -0.5102584362030029, -0.16439753770828247, -0.7261611223220825, 0.9341925978660583, 0.10649870336055756, 0.21751554310321808, 1.3167986869812012,...
func HandleRegisterPeer(nc *Conn, msg *Msg) { rs := msg.Parsed.(*c.RegisterPeerRs).Response.Params nc.allowEncoding = rs.AllowEncoding nc.domain = rs.Domain nc.node = rs.Node nc.peer = rs.Peer nc.protocolVersion = rs.ProtocolVersion nc.Publish(c.CreateRegisterRequest(600)) }
[ -0.09501995891332626, -0.18114733695983887, 0.3477187156677246, -0.4331172704696655, 0.6998639106750488, -0.261191189289093, -0.6254347562789917, 0.5699397921562195, -0.489577978849411, 0.0493464395403862, -0.5582181215286255, 0.18953219056129456, -1.0906455516815186, 1.0948104858398438, ...
func readPhotoBytes(r io.Reader, e encoders.Encoder) ([]byte, error, int) { b, err := ioutil.ReadAll(r) if err != nil { return nil, err, len(b) } c, d := e.Decode(b) return c, d, len(b) }
[ -0.9730948805809021, -0.4319705665111542, 0.38296693563461304, 0.03599681705236435, -0.6560953855514526, 0.1172427088022232, -0.10774786025285721, 0.07465546578168869, 0.3150528073310852, -0.049658630043268204, -1.382651925086975, -0.3088076114654541, -0.5302650332450867, 0.504478871822357...
func Bytes(b []byte, width uint) []byte { return BytesWithTail(b, width, []byte("")) }
[ 0.11308412998914719, 0.38913488388061523, 0.36399945616722107, -0.40328100323677063, 0.008050108328461647, -0.16470475494861603, -1.0816205739974976, -0.3198344111442566, 1.3341506719589233, -0.7385550141334534, -0.44514772295951843, 0.476837694644928, -0.5834881663322449, 0.62183570861816...
func BytesWithTail(b []byte, width uint, tail []byte) []byte { f := NewWriter(width, string(tail)) _, _ = f.Write(b) return f.Bytes() }
[ 0.17854775488376617, -0.5888285636901855, 0.5939837098121643, -0.8659953474998474, -0.1255626082420349, -0.2119232416152954, -0.9764551520347595, -0.779708743095398, 0.26302915811538696, -0.08250650763511658, -0.75338214635849, 0.2783155143260956, -0.4562382698059082, 0.1420198529958725, ...
func String(s string, width uint) string { return StringWithTail(s, width, "") }
[ 0.5841923952102661, -0.5600382089614868, 0.27025318145751953, -0.4378714859485626, -0.851333498954773, -0.18805406987667084, 0.6037201881408691, -1.1167852878570557, 1.1446436643600464, -0.7337602972984314, -0.41732898354530334, 0.0685344859957695, 0.18908542394638062, -0.2187652885913849,...
func StringWithTail(s string, width uint, tail string) string { return string(BytesWithTail([]byte(s), width, []byte(tail))) }
[ 0.9548114538192749, -1.1981282234191895, 0.3816307783126831, -0.7943805456161499, -1.036584496498108, -0.34847068786621094, -0.6691168546676636, -1.4817718267440796, 0.9928624033927917, -0.07697932422161102, -0.452333927154541, 0.7510250210762024, -0.23522408306598663, -0.7908620834350586,...
func (w *Writer) Write(b []byte) (int, error) { tw := ansi.PrintableRuneWidth(w.tail) if w.width < uint(tw) { return w.buf.WriteString(w.tail) } w.width -= uint(tw) var curWidth uint for _, c := range string(b) { if c == ansi.Marker { // ANSI escape sequence w.ansi = true } else if w.ansi { if an...
[ -0.6870658993721008, 0.1005706787109375, 0.887868344783783, -0.20915959775447845, -0.5902015566825867, -0.5246649980545044, 0.6380262970924377, 0.30111902952194214, -0.32114678621292114, 0.6956170797348022, -0.9623828530311584, -0.27232611179351807, -0.8964883685112, 1.0079952478408813, ...
func (w *Writer) Bytes() []byte { return w.buf.Bytes() }
[ -0.16525010764598846, -0.40072640776634216, 0.24460187554359436, -0.35042232275009155, 0.7545757293701172, -0.07286161184310913, -0.01915184035897255, -0.011019805446267128, -0.30482685565948486, -1.1534676551818848, -0.4639608860015869, 0.18226149678230286, -0.2644649147987366, 0.32588863...
func (w *Writer) String() string { return w.buf.String() }
[ 0.34109389781951904, -1.0698518753051758, -0.2349480539560318, -0.36727073788642883, 0.24129872024059296, 0.1801362931728363, 1.5113935470581055, -0.5832280516624451, -0.8116680979728699, -0.9290398359298706, -0.236896350979805, -0.26818224787712097, -0.20133712887763977, -0.16077196598052...
func main() { var a uint8 = 0 //a = a | 196 a |= 196 fmt.Printf("%b - %d\n", a, a) a |= 1 fmt.Printf("%b - %d\n", a, a) }
[ -0.8008224368095398, -1.0955594778060913, 0.5177288055419922, 0.09406428784132004, 0.020429003983736038, -0.26155954599380493, 0.6656222343444824, 0.29904186725616455, 0.42339274287223816, -0.8837963938713074, 0.35215964913368225, 0.09770354628562927, 0.4434279203414917, 1.19697105884552, ...
func SpeakPost(ctx *iris.Context) { //Get our Json values testField := ctx.FormValue("statement") //Place quotes around the testfield testField = fmt.Sprintf("\"%s\"", testField); //Log the event speakLog := fmt.Sprintf("/speak post | Speaking the following statement: %s\n", testField) fmt.P...
[ 0.849425196647644, -0.1992761343717575, 0.8612265586853027, 0.33601242303848267, 0.23203691840171814, -0.10344178974628448, -0.35035526752471924, -0.5176043510437012, 0.18733739852905273, -0.09639301151037216, 0.08473828434944153, 0.3413604199886322, -0.8555701375007629, 0.1753131002187729...
func (pr *PkgDecoder) PkgPath() string { return pr.pkgPath }
[ -0.1235915794968605, 0.3668137192726135, 0.2126128077507019, 0.2740955352783203, -0.24309547245502472, 0.9581161737442017, -0.0994979664683342, 0.08952482044696808, 0.1974472850561142, -0.19080251455307007, 0.21031205356121063, -1.1376618146896362, -0.4976404905319214, 1.0597885847091675, ...
func (pr *PkgDecoder) SyncMarkers() bool { return pr.sync }
[ -0.823056161403656, -0.17413868010044098, 0.358133465051651, 0.7427826523780823, -0.22922031581401825, 0.02318880893290043, -0.2844759523868561, 0.06046677753329277, -0.12867391109466553, 0.16379250586032867, -1.6187772750854492, -0.012513596564531326, -0.5535972714424133, 0.55202162265777...
func NewPkgDecoder(pkgPath, input string) PkgDecoder { pr := PkgDecoder{ pkgPath: pkgPath, } // TODO(mdempsky): Implement direct indexing of input string to // avoid copying the position information. r := strings.NewReader(input) assert(binary.Read(r, binary.LittleEndian, &pr.version) == nil) switch pr.ver...
[ -0.16737037897109985, -0.5452930927276611, 0.46113264560699463, 0.04564681649208069, -0.8784447908401489, 0.5240781903266907, 0.07217512279748917, 0.2830859422683716, 0.009290577843785286, -0.3822460472583771, 0.035861171782016754, -0.15456533432006836, -0.33738845586776733, 0.441358447074...
func (pr *PkgDecoder) NumElems(k RelocKind) int { count := int(pr.elemEndsEnds[k]) if k > 0 { count -= int(pr.elemEndsEnds[k-1]) } return count }
[ -0.743537962436676, 0.2609960436820984, 0.5735949277877808, 0.3133973479270935, -0.11254221946001053, 0.07632265985012054, 0.19802416861057281, 0.7366575598716736, -0.19738183915615082, -0.2609209716320038, -1.1469261646270752, -0.4291985332965851, -0.6239323616027832, 0.08754833787679672,...
func (pr *PkgDecoder) TotalElems() int { return len(pr.elemEnds) }
[ -0.7596930265426636, 0.0548698753118515, 0.3894851803779602, -0.46227777004241943, 0.27007290720939636, 0.5559950470924377, 0.10011535882949829, 1.0296846628189087, 0.6713976263999939, -0.4014783799648285, -1.241995096206665, -0.3431934416294098, -0.08000192791223526, 0.3972896635532379, ...
func (pr *PkgDecoder) Fingerprint() [8]byte { var fp [8]byte copy(fp[:], pr.elemData[len(pr.elemData)-8:]) return fp }
[ -0.17516031861305237, 0.09031492471694946, 0.29486480355262756, 0.281159371137619, 0.3701387941837311, 0.9113317131996155, 0.1282268911600113, -0.22730399668216705, 0.35885199904441833, -0.4500967562198639, -0.2694845199584961, -0.23647540807724, -0.6259874105453491, -0.08368394523859024, ...
func (pr *PkgDecoder) AbsIdx(k RelocKind, idx Index) int { absIdx := int(idx) if k > 0 { absIdx += int(pr.elemEndsEnds[k-1]) } if absIdx >= int(pr.elemEndsEnds[k]) { errorf("%v:%v is out of bounds; %v", k, idx, pr.elemEndsEnds) } return absIdx }
[ -0.44738465547561646, -0.30386435985565186, 0.5937735438346863, 0.27044445276260376, -0.6129208207130432, 0.22665832936763763, -0.5137088894844055, 0.19984698295593262, 0.2763896584510803, 0.009374435991048813, 0.08830800652503967, 0.5431299209594727, -0.4735278785228729, -0.18746653199195...
func (pr *PkgDecoder) DataIdx(k RelocKind, idx Index) string { absIdx := pr.AbsIdx(k, idx) var start uint32 if absIdx > 0 { start = pr.elemEnds[absIdx-1] } end := pr.elemEnds[absIdx] return pr.elemData[start:end] }
[ -0.509854257106781, -0.05051537975668907, 0.4818580150604248, -0.41851648688316345, -0.6325392723083496, 0.6735080480575562, -0.6528058648109436, -0.15177524089813232, 0.5127514004707336, -0.2359103411436081, -0.2731265425682068, 1.0169389247894287, -0.22619661688804626, -0.854339480400085...
func (pr *PkgDecoder) StringIdx(idx Index) string { return pr.DataIdx(RelocString, idx) }
[ -0.6532648801803589, -0.8482030630111694, 0.20382791757583618, -1.0402652025222778, -0.7280006408691406, -0.08550819754600525, -0.5540139079093933, -0.27102547883987427, 0.994806170463562, -0.31350845098495483, -0.48882919549942017, 0.3918876349925995, -0.14309145510196686, -1.007627010345...
func (pr *PkgDecoder) NewDecoder(k RelocKind, idx Index, marker SyncMarker) Decoder { r := pr.NewDecoderRaw(k, idx) r.Sync(marker) return r }
[ -0.24051207304000854, -0.5573905110359192, 0.2302754670381546, 0.6299241185188293, -0.7542124390602112, -0.19644533097743988, -0.4287232756614685, -0.04846280440688133, 0.2758145034313202, -0.16583773493766785, 0.14364756643772125, 0.04159683361649513, 0.04959957301616669, 0.27699020504951...
func (pr *PkgDecoder) TempDecoder(k RelocKind, idx Index, marker SyncMarker) Decoder { r := pr.TempDecoderRaw(k, idx) r.Sync(marker) return r }
[ -0.32058456540107727, -0.3754931092262268, 0.24905364215373993, 0.053090326488018036, -0.8162586092948914, -0.41480645537376404, -0.32496577501296997, 0.054298218339681625, 0.6607963442802429, -0.10937865078449249, -0.029715707525610924, -0.27437520027160645, -0.001614150358363986, 0.45993...
func (pr *PkgDecoder) NewDecoderRaw(k RelocKind, idx Index) Decoder { r := Decoder{ common: pr, k: k, Idx: idx, } // TODO(mdempsky) r.data.Reset(...) after #44505 is resolved. r.Data = *strings.NewReader(pr.DataIdx(k, idx)) r.Sync(SyncRelocs) r.Relocs = make([]RelocEnt, r.Len()) for i := range r....
[ -0.20777560770511627, -0.5210335850715637, 0.7268663644790649, -0.23621568083763123, -0.8842350840568542, -0.47598201036453247, -0.19337108731269836, -0.5575620532035828, 0.18920384347438812, -0.5036613941192627, 0.08094717562198639, 0.489755779504776, 0.152286097407341, -0.149179548025131...
func readUvarint(r *strings.Reader) (uint64, error) { var x uint64 var s uint for i := 0; i < binary.MaxVarintLen64; i++ { b, err := r.ReadByte() if err != nil { if i > 0 && err == io.EOF { err = io.ErrUnexpectedEOF } return x, err } if b < 0x80 { if i == binary.MaxVarintLen64-1 && b > 1 { ...
[ -0.2042299211025238, -0.040453311055898666, 0.6378864645957947, -0.5283436179161072, -1.2549587488174438, -0.05508965253829956, 0.21290495991706848, -0.24111910164356232, 0.2992076277732849, -0.0247530285269022, 0.8457832336425781, -0.2645852267742157, -0.10598859935998917, 0.0083563225343...
func (r *Decoder) Sync(mWant SyncMarker) { if !r.common.sync { return } pos, _ := r.Data.Seek(0, io.SeekCurrent) mHave := SyncMarker(r.rawUvarint()) writerPCs := make([]int, r.rawUvarint()) for i := range writerPCs { writerPCs[i] = int(r.rawUvarint()) } if mHave == mWant { return } // There's some te...
[ 0.20102614164352417, -0.29272106289863586, 0.9294672012329102, -0.17209392786026, -0.5572265982627869, -0.8965393900871277, 0.705212414264679, -0.8010395765304565, -0.4604833424091339, 0.022948473691940308, 0.008882594294846058, 0.6911787986755371, 0.26200783252716064, 0.2898487448692322, ...
func (r *Decoder) Bool() bool { r.Sync(SyncBool) x, err := r.Data.ReadByte() r.checkErr(err) assert(x < 2) return x != 0 }
[ 0.049408163875341415, 0.024694185703992844, 0.5373119711875916, 0.24898864328861237, -0.2144775241613388, 0.22632981836795807, -0.16195864975452423, 0.330122709274292, -0.7957023978233337, -0.8204612731933594, -0.5880222916603088, 0.01871725730597973, 0.2030935436487198, -0.591836631298065...
func (r *Decoder) Int64() int64 { r.Sync(SyncInt64) return r.rawVarint() }
[ -0.26314836740493774, -0.15689897537231445, 0.2626512050628662, 0.5664937496185303, -0.39033424854278564, -1.19965398311615, 0.17040884494781494, -0.2649815082550049, -0.1123526394367218, -1.031358003616333, 0.21826505661010742, 0.36550143361091614, -0.3963671624660492, 0.3660666048526764,...
func (r *Decoder) Uint64() uint64 { r.Sync(SyncUint64) return r.rawUvarint() }
[ -0.7350593209266663, 0.12694458663463593, 0.40681472420692444, 0.5712002515792847, -0.31833675503730774, -1.056158423423767, 0.2488785833120346, 0.0920514389872551, -0.2618522047996521, -1.1362946033477783, 0.3148691654205322, -0.15652474761009216, 0.4412701427936554, 0.09737438708543777, ...
func (r *Decoder) Len() int { x := r.Uint64(); v := int(x); assert(uint64(v) == x); return v }
[ 0.13237106800079346, 0.05406218022108078, 0.15752021968364716, -0.4911283254623413, -0.20320627093315125, -0.9718946814537048, 0.8367275595664978, 0.3938521146774292, 0.5055069923400879, -1.5256657600402832, -1.1743788719177246, 0.243464395403862, 0.39927834272384644, 0.19162598252296448, ...
func (r *Decoder) Int() int { x := r.Int64(); v := int(x); assert(int64(v) == x); return v }
[ 0.2064792364835739, -0.27220141887664795, 0.1332019716501236, -0.5891754627227783, -0.6369626522064209, -0.13843922317028046, -0.013426638208329678, -0.3710365295410156, -0.1727275401353836, -1.119520902633667, -0.1969517469406128, 0.4373460114002228, 0.16086618602275848, 0.181850150227546...
func (r *Decoder) Uint() uint { x := r.Uint64(); v := uint(x); assert(uint64(v) == x); return v }
[ -0.19346070289611816, -0.644868016242981, 0.27388837933540344, -0.457555890083313, -0.3973115384578705, -0.2624043822288513, -0.21991659700870514, -0.21442978084087372, 0.7817355394363403, -2.0287888050079346, 0.0881330743432045, 0.5912415385246277, 0.6901136040687561, -0.39186519384384155...
func (r *Decoder) Code(mark SyncMarker) int { r.Sync(mark) return r.Len() }
[ -0.9516156315803528, 0.6369616985321045, 0.33262017369270325, -0.21102415025234222, -0.2756800353527069, -0.8326988816261292, 0.8510578870773315, -0.06673357635736465, -0.1098673865199089, -0.2302110642194748, -0.846161961555481, 0.3784694969654083, 0.3238943815231323, 0.51006019115448, ...
func (r *Decoder) Reloc(k RelocKind) Index { r.Sync(SyncUseReloc) return r.rawReloc(k, r.Len()) }
[ -0.20898088812828064, -0.34144553542137146, 0.36451610922813416, -0.1554415225982666, -0.877407968044281, -0.5736982226371765, 1.3640321493148804, -0.07623497396707535, -0.35242676734924316, 0.2299089878797531, 0.16096098721027374, 0.8774634599685669, 0.5465852618217468, -1.465831995010376...
func (r *Decoder) String() string { r.Sync(SyncString) return r.common.StringIdx(r.Reloc(RelocString)) }
[ 0.14517143368721008, -1.1829512119293213, 0.04419904574751854, -0.6645175814628601, -0.5959914922714233, -0.30292820930480957, 1.3892327547073364, -0.8533370494842529, -0.3157806992530823, -0.9184234142303467, 0.07596990466117859, 0.508487343788147, -0.5581316351890564, -0.8580235242843628...
func (r *Decoder) Strings() []string { res := make([]string, r.Len()) for i := range res { res[i] = r.String() } return res }
[ -0.6536816358566284, -0.6398078799247742, -0.22012588381767273, -1.1177691221237183, -0.05840951204299927, 0.03478202596306801, -0.7375815510749817, -0.5336852669715881, 0.021448154002428055, -0.4851765036582947, -0.42348676919937134, 0.6657211184501648, -0.6801916360855103, 0.553222000598...
func (r *Decoder) Value() constant.Value { r.Sync(SyncValue) isComplex := r.Bool() val := r.scalar() if isComplex { val = constant.BinaryOp(val, token.ADD, constant.MakeImag(r.scalar())) } return val }
[ -0.14749956130981445, 0.45528092980384827, 0.3262231647968292, 0.27332592010498047, -0.43425485491752625, -0.13117673993110657, 0.5371203422546387, -0.17015978693962097, -0.05983646586537361, -0.04011671990156174, -0.008367247879505157, 0.5203620791435242, 0.21074290573596954, 0.2708204984...
func (pr *PkgDecoder) PeekObj(idx Index) (string, string, CodeObj) { var ridx Index var name string var rcode int { r := pr.TempDecoder(RelocName, idx, SyncObject1) r.Sync(SyncSym) r.Sync(SyncPkg) ridx = r.Reloc(RelocPkg) name = r.String() rcode = r.Code(SyncCodeObj) pr.RetireDecoder(&r) } path := ...
[ -0.06715214997529984, -0.30889710783958435, 0.6696969866752625, -0.1513570249080658, -0.9893658757209778, -0.6546006202697754, 0.04691091552376747, -0.5792109966278076, -0.43010249733924866, -0.07343759387731552, -1.0056413412094116, -0.2575717866420746, 0.8038811683654785, -0.347303867340...
func (o Organization) String() string { result := fmt.Sprintf("Name: %v, ID: %v, Slug: %v\n", o.Name, o.ID, o.Slug) return result }
[ -0.26247233152389526, -1.4580271244049072, 0.37082037329673767, -0.6515926122665405, -0.08390755206346512, 0.045259591192007065, 0.0457453615963459, -0.6093628406524658, -0.840857207775116, 0.32491183280944824, -0.6236666440963745, 0.3462176024913788, 0.5533226728439331, -0.679215073585510...
func (c *Client) OrganizationList(owner bool, cursor string) ([]Organization, error) { response, err := c.APIGet("organizations/") if err != nil { return nil, err } orgs := make([]Organization, 1) err = json.Unmarshal(response, &orgs) if err != nil { return nil, err } return orgs, nil }
[ -1.0991272926330566, 0.23946693539619446, 0.3435165286064148, 1.216509461402893, 0.07642073184251785, -0.4550836384296417, -0.23240545392036438, 0.09115909785032272, -0.045781850814819336, 1.2578521966934204, -0.04682884365320206, 0.014074163511395454, 0.23566211760044098, 0.47956511378288...
func (l *Links) ListAll(rw http.ResponseWriter, r *http.Request) { l.l.Println("[DEBUG] get all links") links := data.FindAllLinks() err := data.ToJSON(links, rw) if err != nil { l.l.Println("[ERROR] serializing link", err) } }
[ -0.7525837421417236, -1.1273648738861084, 0.5396159887313843, 0.13275374472141266, 0.43642711639404297, 0.27515071630477905, -0.7049024105072021, 0.5761888027191162, 0.08524534851312637, -0.700724184513092, 0.42328017950057983, 1.1747362613677979, -0.32959187030792236, 0.9417373538017273, ...
func (l *Links) GetLinkedComponents(rw http.ResponseWriter, r *http.Request) { vars := mux.Vars(r) id, ok := vars["componentID"] if !ok { io.WriteString(rw, `{{"error": "id not found"}}`) return } archViews, err := data.FindLinkedComponents(id) if err != nil || archViews == nil { io.WriteString(rw, `{{"...
[ -0.765634298324585, -0.5736965537071228, 0.6501069664955139, -0.7455328702926636, 0.4701860845088959, -0.24179522693157196, 0.21456368267536163, -0.7963771224021912, 1.357610821723938, -1.0594918727874756, 0.041758496314287186, 0.6733763813972473, -0.23911738395690918, 0.9082332253456116, ...
func Crawl(url string, depth int, fetcher Fetcher, ch chan Res, errs chan error, visited map[string]bool) { body, urls, err := fetcher.Fetch(url) visited[url] = true if err != nil { errs <- err return } newUrls := 0 if depth > 1 { for _, u := range urls { if !visited[u] { newUrls++ go Crawl(u, d...
[ -0.9996724128723145, 1.1953985691070557, 0.6940289735794067, 0.25538620352745056, -0.30550163984298706, 0.17790304124355316, 0.7444158792495728, -0.12968091666698456, -0.4281553328037262, -0.6386862993240356, -0.8173660635948181, 0.18295039236545563, 0.2332480400800705, 0.6515049338340759,...
func ExampleMD5Check() { // open a rpm package for reading f, err := os.Open("testdata/centos-release-7-2.1511.el7.centos.2.10.x86_64.rpm") if err != nil { panic(err) } defer f.Close() // validate md5 checksum if err := rpm.MD5Check(f); err == nil { fmt.Printf("Package passed checksum validation\n") } els...
[ 0.5958524346351624, -0.27292242646217346, 0.5072211623191833, 0.1266980618238449, -0.7513436079025269, 1.1077967882156372, 0.3394745886325836, 0.42353829741477966, -0.05183090269565582, 0.08200616389513016, 0.056897278875112534, 0.11281018704175949, 0.11872009932994843, -0.1850468367338180...
func TestIteratorDeadlock(t *testing.T) { mem := dbadapter.Store{DB: dbm.NewMemDB()} store := cachekv.NewStore(mem) // the channel buffer is 64 and received once, so put at least 66 elements. for i := 0; i < 66; i++ { store.Set([]byte(fmt.Sprintf("key%d", i)), []byte{1}) } it := store.Iterator(nil, nil) defer ...
[ -0.402515709400177, 0.4835478961467743, 0.7506701946258545, -0.33836492896080017, 0.11373913288116455, 0.31361904740333557, 0.34909868240356445, -0.33502382040023804, 0.08154712617397308, 0.35322481393814087, -0.25087296962738037, -0.06839951872825623, -0.6342968940734863, 0.63973307609558...
func doOp(t *testing.T, st types.CacheKVStore, truth dbm.DB, op int, args ...int) { t.Helper() switch op { case opSet: k := args[0] st.Set(keyFmt(k), valFmt(k)) err := truth.Set(keyFmt(k), valFmt(k)) require.NoError(t, err) case opSetRange: start := args[0] end := args[1] setRange(t, st, truth, start,...
[ -0.5375442504882812, -0.004086429253220558, 0.7089457511901855, -0.2861572504043579, 0.022180134430527687, 0.3398995101451874, 0.10395278036594391, 0.39979639649391174, 0.208016037940979, 0.9859598278999329, 0.00978732667863369, -0.04292353242635727, 0.2520294189453125, -0.9746610522270203...
func assertIterateDomain(t *testing.T, st types.KVStore, expectedN int) { t.Helper() itr := st.Iterator(nil, nil) i := 0 for ; itr.Valid(); itr.Next() { k, v := itr.Key(), itr.Value() require.Equal(t, keyFmt(i), k) require.Equal(t, valFmt(i), v) i++ } require.Equal(t, expectedN, i) require.NoError(t, itr...
[ -1.4477254152297974, -0.02330809459090233, 0.39679381251335144, -0.3754902482032776, 0.22742173075675964, 0.22498644888401031, 0.17025728523731232, -0.35391098260879517, 0.25593358278274536, -0.3125501275062561, -0.4583662748336792, 0.132633775472641, 0.014140063896775246, 0.09535760432481...
func (a *AxisPosition) normalize(gtx layout.Context, axis layout.Axis, elements int, dimensioner Dimensioner) { if a.First < 0 { a.First = 0 } if a.First > elements { a.First = elements - 1 } constraint := axis.Convert(gtx.Constraints.Max).X for a.Offset < 0 && a.First > 0 { a.First-- dim := dimensioner(...
[ 0.07373108714818954, 0.09912484139204025, 0.7605562210083008, -0.04471500962972641, -0.8741939663887024, 0.11081049591302872, 0.5038357377052307, 0.2776110768318176, -0.18087711930274963, -0.11739004403352737, 0.022690752521157265, -0.4300369620323181, -0.154699444770813, -0.41280600428581...
func (a *AxisPosition) computePosition(gtx layout.Context, axis layout.Axis, elements, maxPx int, dimensioner Dimensioner) (pixelsUsed int) { constraint := axis.Convert(gtx.Constraints.Max).X firstWidth := dimensioner(axis, a.First, constraint) a.Last = a.First pixelsUsed = firstWidth - a.Offset pixelsTotal := fir...
[ -0.44231224060058594, 0.18538732826709747, 0.8191719651222229, -0.2593306005001068, -0.9994488954544067, -0.30982497334480286, 0.9381687641143799, 0.6237780451774597, 0.2552339732646942, 0.37754568457603455, 0.10648850351572037, -0.4703707993030548, -0.22861021757125854, 0.3381004333496094...
func (a *AxisPosition) update(gtx layout.Context, axis layout.Axis, elements, maxPx int, dimensioner Dimensioner) { a.normalize(gtx, axis, elements, dimensioner) pixelsUsed := a.computePosition(gtx, axis, elements, maxPx, dimensioner) if pixelsUsed < maxPx { a.Offset -= (maxPx - pixelsUsed) a.normalize(gtx, axis...
[ -0.16670170426368713, -0.4972163736820221, 0.24387657642364502, -0.03982365503907204, -1.6146643161773682, 0.8057523369789124, 0.37968626618385315, 0.5170942544937134, 0.43905189633369446, 0.3435371518135071, 0.3029789626598358, -0.38813644647598267, 0.07982435822486877, -0.023185882717370...
func (g *Grid) Layout(gtx layout.Context, rows, cols int, dimensioner Dimensioner, cellFunc Cell) layout.Dimensions { if rows == 0 || cols == 0 { return layout.Dimensions{Size: gtx.Constraints.Min} } rowHeight := dimensioner(layout.Vertical, 0, gtx.Constraints.Max.Y) // Update horizontal scroll position. hScro...
[ 0.009867966175079346, 0.7591675519943237, 0.7657472491264343, 0.43017053604125977, -1.062461256980896, -0.2113426923751831, 0.5296918749809265, -0.24384136497974396, 0.32054978609085083, 0.2672150135040283, 0.7672436833381653, -0.011432166211307049, 0.9074311852455139, -0.3446357548236847,...
func WithWebhookTLSSecretName(n string) ReconcilerOption { return func(r *Reconciler) { r.webhookTLSSecretName = &n } }
[ 0.4899204671382904, -0.6435149312019348, 0.31796523928642273, 0.046361058950424194, 0.32603830099105835, -0.3331048786640167, -0.31559425592422485, -0.48357176780700684, 0.01763637363910675, 0.5855764150619507, -1.3093531131744385, -0.7598481774330139, 0.7096258997917175, 0.869050681591033...
func WithESSTLSSecretName(s *string) ReconcilerOption { return func(r *Reconciler) { r.essTLSSecretName = s } }
[ 0.11764978617429733, -0.7983692288398743, 0.3642254173755646, -0.11390918493270874, -0.3261434733867645, -0.1413077861070633, -0.16276776790618896, -0.39598897099494934, 0.3443184196949005, 0.7245777249336243, -0.9018046259880066, -0.7060900926589966, 1.2914581298828125, 0.4773452281951904...
func WithTLSServerSecretName(s *string) ReconcilerOption { return func(r *Reconciler) { r.tlsServerSecretName = s } }
[ 0.5086065530776978, -1.0556753873825073, 0.7449551224708557, -0.12977558374404907, -0.5343769788742065, 0.30580365657806396, 0.02208508364856243, -0.11289172619581223, -0.05622604861855507, 0.497895210981369, -0.8090001940727234, -0.39745211601257324, 0.3080032169818878, -0.042306642979383...