text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (k Keeper) GetCollection(ctx sdk.Context, denom string) (types.Collection, error) { nfts := k.GetNFTs(ctx, denom) if len(nfts) == 0 { return types.Collection{}, sdkerrors.Wrapf(types.ErrUnknownCollection, "collection %s not existed ", denom) } return types.NewCollection(denom, nfts), nil }
[ -0.3141641616821289, 0.3046654760837555, 0.6122457981109619, 0.38871145248413086, 0.7705260515213013, -0.2927124500274658, -0.28643473982810974, -1.0756453275680542, 0.4777162969112396, -0.27344897389411926, 0.455143004655838, 0.46656832098960876, 0.4739733040332794, 0.5318241119384766, ...
func (k Keeper) GetCollections(ctx sdk.Context) (cs types.Collections) { k.IterateCollections(ctx, func(collection types.Collection) { cs = append(cs, collection) }) return cs }
[ 0.13950695097446442, -0.13859134912490845, 0.5162188410758972, 1.2243168354034424, 1.2242064476013184, 0.838157594203949, -0.30544739961624146, -1.8942995071411133, 0.8379019498825073, -0.9565812349319458, 0.3051358163356781, 0.1878831833600998, -0.2212548404932022, 0.7990211844444275, -...
func (k Keeper) GetTotalSupply(ctx sdk.Context, denom string) uint64 { store := ctx.KVStore(k.storeKey) bz := store.Get(types.KeyCollection(denom)) if len(bz) == 0 { return 0 } var supply uint64 k.cdc.MustUnmarshalBinaryLengthPrefixed(bz, &supply) return supply }
[ -0.878499448299408, 0.5331219434738159, 0.689652681350708, -0.646774411201477, -0.052087727934122086, -1.0731345415115356, 0.0030028752516955137, -0.4484162926673889, 0.7723221778869629, 0.325795978307724, -0.6440918445587158, -0.5031383037567139, -0.9950598478317261, -0.5666739344596863, ...
func (k Keeper) GetTotalSupplyOfOwner(ctx sdk.Context, denom string, owner sdk.AccAddress) (supply uint64) { store := ctx.KVStore(k.storeKey) iterator := sdk.KVStorePrefixIterator(store, types.KeyOwner(owner, denom, "")) defer iterator.Close() for ; iterator.Valid(); iterator.Next() { supply++ } return supply }
[ -0.4768313765525818, 0.2816527485847473, 0.7858747839927673, -0.24761070311069489, -0.5771432518959045, -1.558542013168335, -0.08897530287504196, -0.7820141315460205, 0.46897950768470764, 0.4150489568710327, -0.5982688665390015, -0.10058638453483582, 0.1964973658323288, -0.5916188359260559...
func (k Keeper) IterateCollections(ctx sdk.Context, fn func(collection types.Collection)) { denoms := k.GetDenoms(ctx) for _, denom := range denoms { nfts := k.GetNFTs(ctx, denom) fn(types.Collection{ Denom: denom, NFTs: nfts, }) } }
[ -0.5845344066619873, -0.08733782172203064, 0.4282873272895813, 0.017826523631811142, 0.7187069058418274, -0.08598298579454422, -0.1456877738237381, -1.7645457983016968, 0.28080856800079346, -0.5754586458206177, 0.4696429371833801, -0.16091041266918182, 0.2558524012565613, 0.46677365899086,...
func (k Keeper) GetDenoms(ctx sdk.Context) (denoms []string) { store := ctx.KVStore(k.storeKey) iterator := sdk.KVStorePrefixIterator(store, types.KeyCollection("")) defer iterator.Close() var denomMap = make(map[string]int) for ; iterator.Valid(); iterator.Next() { key := iterator.Key() denom := types.SplitK...
[ -0.8385864496231079, 0.4083433747291565, 0.5863910913467407, -0.13766735792160034, 0.3444688618183136, -0.27781054377555847, -0.2187919318675995, -0.33595797419548035, 0.695055365562439, 0.24288038909435272, -0.5008736252784729, -0.0018997511360794306, 0.1444932520389557, 0.567670643329620...
func (f *NetworkFingerprint) linkSpeed(device string) int { command := fmt.Sprintf("Get-NetAdapter -IncludeHidden | Where name -eq '%s' | Select -ExpandProperty LinkSpeed", device) path := "powershell.exe" outBytes, err := exec.Command(path, command).Output() if err != nil { f.logger.Printf("[WARN] fingerprint.n...
[ 0.3560960590839386, 0.5267541408538818, 0.8133754134178162, 0.3742581307888031, -0.3268870413303375, -0.33224624395370483, 0.7966944575309753, 0.14156223833560944, 0.21008586883544922, -0.8196623921394348, 0.2721724212169647, -0.10792557150125504, -1.4445137977600098, 0.8258160948753357, ...
func NewClient(client management.Client) VirtualNetworkClient { return VirtualNetworkClient{client: client} }
[ 1.245513677597046, 0.030276689678430557, -0.2504936158657074, 0.44007182121276855, -0.678152859210968, 0.44757428765296936, -0.006289979442954063, -0.1794586479663849, 0.7045773267745972, 0.6270124316215515, -0.1541852056980133, -0.1699959933757782, -0.44648754596710205, -0.297636628150939...
func (c VirtualNetworkClient) GetVirtualNetworkConfiguration() (NetworkConfiguration, error) { networkConfiguration := c.NewNetworkConfiguration() response, err := c.client.SendAzureGetRequest(azureNetworkConfigurationURL) if err != nil { return networkConfiguration, err } err = xml.Unmarshal(response, &network...
[ -0.5236791372299194, -0.12656265497207642, 0.27493414282798767, 0.022974317893385887, -0.43666747212409973, -0.9193251729011536, -0.43834272027015686, 0.19857358932495117, 0.37348008155822754, 0.3260881304740906, -0.8067945241928101, -0.15435904264450073, -0.8248948454856873, 0.06775534152...
func (c VirtualNetworkClient) SetVirtualNetworkConfiguration(networkConfiguration NetworkConfiguration) (management.OperationID, error) { networkConfiguration.setXMLNamespaces() networkConfigurationBytes, err := xml.Marshal(networkConfiguration) if err != nil { return "", err } return c.client.SendAzurePutReque...
[ -0.5891749858856201, 0.12712953984737396, 0.14898578822612762, -0.41274675726890564, -0.560445249080658, 0.04680181294679642, 0.15541037917137146, 0.3348447382450104, 0.8777381777763367, 0.82717365026474, -1.1624040603637695, -0.8097375631332397, -0.6796985268592834, 0.19276374578475952, ...
func (c *Client) DescribeRootFolders(ctx context.Context, params *DescribeRootFoldersInput, optFns ...func(*Options)) (*DescribeRootFoldersOutput, error) { if params == nil { params = &DescribeRootFoldersInput{} } result, metadata, err := c.invokeOperation(ctx, "DescribeRootFolders", params, optFns, addOperationD...
[ -1.0951793193817139, 0.6000849604606628, 0.8732121586799622, 0.8992605805397034, 0.3976902663707733, -0.5280587673187256, 0.6341067552566528, -1.2814220190048218, 0.22313439846038818, -0.6911547780036926, -0.08250994980335236, 0.9018720984458923, -0.9209491014480591, 0.41269493103027344, ...
func (ck *TeamData) PutParams() map[string]string { t := map[string]string{ "name": ck.Name, } // Ignore if not defined if ck.UserIds != "" { t["userids"] = ck.UserIds } return t }
[ -0.981569230556488, 0.3906823992729187, 0.38896098732948303, -1.1752532720565796, -0.34682556986808777, 0.7245671153068542, -0.727992832660675, 0.006830143742263317, -1.259265422821045, 1.45220148563385, -0.39134928584098816, -0.0819515809416771, -0.3156728744506836, 0.37132781744003296, ...
func (ck *TeamData) PostParams() map[string]string { params := ck.PutParams() for k, v := range params { if v == "" { delete(params, k) } } return params }
[ -0.6022165417671204, 0.10901904851198196, 0.42698192596435547, -0.8525214195251465, -0.18485939502716064, 0.22552433609962463, -0.8016330003738403, 0.12414190918207169, -1.037054419517517, 1.1363985538482666, -0.20449046790599823, -0.3143066167831421, -0.5490342378616333, 0.746774792671203...
func (ck *TeamData) Valid() error { if ck.Name == "" { return fmt.Errorf("Invalid value for `Name`. Must contain non-empty string") } return nil }
[ 0.6099938154220581, 0.33032533526420593, 0.4313938021659851, -0.34633398056030273, -0.6939486861228943, 1.3707733154296875, -0.8229662179946899, -0.23249593377113342, -1.3825035095214844, 0.2214881032705307, -0.2965002655982971, 0.21361635625362396, 0.24239692091941833, -0.3758100867271423...
func (c *Client) getMembership(isProvisionalReq bool) bool { args := InConfigurationArgs{Server: c.serverId, IsProvisionalReq: isProvisionalReq} inConfiguration := false for !c.killed() { reply := InConfigurationReply{} c.mu.Lock() potentialLeader := c.currConf[c.lastKnownLeaderInd] c.mu.Unlock() ok := c.c...
[ -1.2417829036712646, 0.2888633608818054, 0.7705719470977783, 0.5246848464012146, -0.16968119144439697, -0.32212549448013306, -0.12938523292541504, 0.35310542583465576, 0.1281363070011139, 0.1909521371126175, 0.2900000214576721, -0.1336095929145813, -1.9156509637832642, 0.3808706998825073, ...
func (c *Client) setActive() { member := c.getMembership(false) c.mu.Lock() c.active = member c.mu.Unlock() }
[ 0.26987436413764954, -0.7989885210990906, 0.39732274413108826, -0.005770488176494837, 0.08746809512376785, 0.16320843994617462, 0.2734471261501312, -0.0925360694527626, -1.1708157062530518, -0.6040199398994446, -0.6793080568313599, 1.1113183498382568, -1.9774701595306396, -0.74273908138275...
func (c *Client) attemptProvisional() bool { args := AddProvisionalArgs{Server: c.serverId} for !c.killed() { reply := AddProvisionalReply{} c.mu.Lock() potentialLeader := c.currConf[c.lastKnownLeaderInd] c.mu.Unlock() ok := c.cp.Call(potentialLeader, "Server", "AddProvisional", &args, &reply) if !ok || r...
[ -1.1127995252609253, -0.28812187910079956, 0.7532954216003418, -0.4806264042854309, -0.6046106815338135, 0.7424398064613342, -0.6223727464675903, -0.5509427785873413, 0.19871118664741516, 0.4157513678073883, 0.15048249065876007, -0.5021600127220154, -1.701515555381775, 0.4722471237182617, ...
func (c *Client) addProvisional() { for !c.killed() { if inActiveConfiguration := c.attemptProvisional(); inActiveConfiguration { return } if c.checkMembership(1*time.Second, true) { return } } }
[ -0.44502320885658264, 0.4007946252822876, 0.46299952268600464, 0.8237929940223694, -0.011078882962465286, 0.6192243099212646, -0.7228490710258484, 0.19251850247383118, -0.13833510875701904, 0.19260990619659424, 0.7006704211235046, -0.1209510937333107, -1.375324010848999, 0.3590432405471802...
func (c *Client) addSelf() { for !c.killed() { err := c.attemptAddRemove(true) if err == libraft.AR_NOT_PROVISIONAL { panic("(Client) Add without becoming provisional shouldn't occur.") } c.mu.Lock() tempActive := c.active c.mu.Unlock() if tempActive { return } if c.checkMembership(1*time.Se...
[ 0.05789926275610924, -0.5784681439399719, 0.5986193418502808, 0.4072459042072296, -0.00118941068649292, 0.5561572313308716, 0.22686263918876648, -0.7669429183006287, -0.28524282574653625, 0.08443082123994827, 0.12247971445322037, 0.20657441020011902, -0.9806272983551025, 0.3342113494873047...
func (c *Client) removeSelf() { for !c.killed() { err := c.attemptAddRemove(false) if err == libraft.AR_NOT_PROVISIONAL { panic("(Client) Shouldn't get provisional err on remove.") } // we will not receive an update from the server, because the server is not in the current config // thus we have to set ...
[ -0.006972531788051128, -0.663612425327301, 0.4746314585208893, -0.06342536956071854, -0.17802782356739044, 0.029004789888858795, 0.3704223930835724, -0.10204395651817322, -0.14119061827659607, 0.37019962072372437, -0.14883333444595337, 0.37770432233810425, -1.1708924770355225, 0.1929400265...
func (c *Client) BecomeActive() { c.addProvisional() for !c.killed() { c.addSelf() startTime := time.Now() timeout := time.Second * 2 for time.Since(startTime) < timeout { var tempActive bool c.mu.Lock() // this is set when client receives configuration update tempActive = c.active c.mu.Unlock(...
[ 0.4966505169868469, -1.2633148431777954, 0.701158344745636, 0.2161867767572403, -0.15237362682819366, 0.3131368160247803, 0.32336872816085815, 0.20350150763988495, -0.6327712535858154, 0.32847505807876587, -0.561163604259491, 0.34705182909965515, -0.7592746615409851, -0.0034350301139056683...
func (c *Client) BecomeInactive() { c.mu.Lock() // We won't join any new rounds once this is set c.leaving = true c.mu.Unlock() for !c.killed() { c.removeSelf() startTime := time.Now() timeout := time.Second * 2 for time.Since(startTime) < timeout { var tempActive bool c.mu.Lock() // this is set ...
[ 0.44503554701805115, -1.3524961471557617, 0.7614889144897461, -0.4899202287197113, -0.15431444346904755, 0.33992746472358704, 0.4392072856426239, -0.0668221041560173, -0.7728529572486877, 0.3018575608730316, -0.3609265387058258, 0.2864283323287964, -1.314642071723938, 0.05261215195059776, ...
func (m *Max) Get() float64 { return m.max }
[ -0.013980216346681118, 0.4275371730327606, 0.38561615347862244, 0.733214259147644, 0.24128982424736023, 0.1692427545785904, -1.0492099523544312, 0.011603416875004768, -0.8563790917396545, -0.2878074645996094, 0.574585497379303, 0.7894924879074097, -0.5417030453681946, 0.2841888666152954, ...
func (m *Max) GetId() int { if m.count > 0 { return m.maxIdx } else { return -1 } }
[ -0.3279450237751007, 0.1710151582956314, 0.42785608768463135, 1.0308326482772827, 0.4284214675426483, 0.36663439869880676, -0.01290153432637453, 0.30453306436538696, 0.7423909902572632, -0.2820318043231964, -0.23510445654392242, -0.04333089664578438, -1.3037281036376953, 0.1363853812217712...
func (m *Max) Count() int { return m.count }
[ 0.5654561519622803, -0.27050870656967163, 0.3173655867576599, 0.7191566228866577, -0.3558140993118286, 0.5328906774520874, 0.19006453454494476, 0.21189583837985992, -0.8878557682037354, -0.07335204631090164, -0.5537393689155579, -0.7226333022117615, -0.041370291262865067, 0.838040947914123...
func PrintSet(index int){ set:=table[index] PrintUnicode(set.start,set.cnt) fmt.Printf("#%3d %4X~%4X %s %s\n",index,set.start,set.end(),set.key,set.desc) }
[ -0.45227834582328796, 0.4210842549800873, 0.6729834675788879, -1.1035131216049194, -0.2568119168281555, -0.08253020793199539, -0.27889177203178406, -1.302215814590454, -0.6923865079879761, 0.21642538905143738, 0.04688718914985657, 0.7642673850059509, 0.28531286120414734, -0.404062360525131...
func PrintUnicode(start,cnt int){ for index := 0; index < cnt; index++ { c := start + index fmt.Printf("%4X %-3c ",c,c) if index%8 == 7{ fmt.Printf("\n") } } fmt.Printf("\n") }
[ -0.036201417446136475, 0.16440095007419586, 0.7194896936416626, -0.3639294505119324, 0.43378859758377075, 0.1725667119026184, 0.12200143188238144, 0.13524235785007477, -0.0660545825958252, -0.13546638190746307, -0.7716904282569885, 1.2870463132858276, -0.2771555185317993, -0.46621227264404...
func GetOutboundIP() net.IP { conn, err := net.Dial("udp", "8.8.8.8:80") if err != nil { log.Fatal(err) } defer conn.Close() localAddr := conn.LocalAddr().(*net.UDPAddr) return localAddr.IP }
[ -0.3570793867111206, -0.013149616308510303, 0.944115400314331, -0.2862790822982788, -0.14844682812690735, 0.2306792140007019, -0.3557145297527313, 0.11225845664739609, -0.03230844810605049, -0.14996126294136047, 0.3846343755722046, 0.4339991807937622, -0.30636969208717346, -0.4657051265239...
func includeQuery(pile []string, needle string) bool { for _, elem := range pile { if elem == needle { return true } } return false }
[ 1.420742392539978, 0.10176682472229004, 0.5901194214820862, 0.10314471274614334, -0.47347816824913025, 0.5484617352485657, -0.9165913462638855, 0.72856605052948, 0.13064874708652496, 0.7190000414848328, 0.24477903544902802, -0.0003533450362738222, -0.9201720952987671, 0.21718046069145203, ...
func ShowUsage() { println("Usage:\n\thref_links <html source file>\n\tRead content from stdin: href_links -\ne.g. curl https://example.com/ | href_links -\nBy default utility tries read ./home.html") }
[ 0.48457154631614685, 0.4814400374889374, 0.5539841651916504, -0.19138666987419128, 0.3805297017097473, -0.24177350103855133, 0.6634805798530579, 0.4644843637943268, -0.3754728138446808, -0.27175527811050415, 0.6265302896499634, 0.9230303764343262, -0.13126759231090546, 0.7050649523735046, ...
func (c *SkaffoldConfig) Upgrade() (util.VersionedConfig, error) { var newConfig next.SkaffoldConfig pkgutil.CloneThroughJSON(c, &newConfig) newConfig.APIVersion = next.Version err := util.UpgradePipelines(c, &newConfig, upgradeOnePipeline) return &newConfig, err }
[ -0.5557812452316284, -0.24383164942264557, 0.32100117206573486, 0.7067860960960388, -0.527696430683136, -0.2640523910522461, -0.3943701684474945, 0.44910162687301636, 0.1975664496421814, 1.1209516525268555, -0.7692589163780212, -0.16490457952022552, -0.3092045783996582, -0.2549658119678497...
func (token Token) ToBundle(masterToken string) TokenBundle { return TokenBundle{ Auth: token, Master: masterToken, } }
[ 0.7576419711112976, 0.2158445119857788, 0.4730447828769684, -0.6189047694206238, -0.4944237470626831, -0.09064418077468872, -0.3171105682849884, 0.8055879473686218, -0.03955678641796112, -0.19197580218315125, -1.0300657749176025, 0.8236612677574158, -0.5064265131950378, -0.2039217203855514...
func (tokens TokenBundle) Print() { fmt.Println("Auth token", tokens.Auth.Data) fmt.Println("Timestamp ", tokens.Auth.Timestamp) fmt.Println("Master:") fmt.Println(strings.Replace(tokens.Master, "-", "\n", -1)) }
[ 0.3568422198295593, 0.17635731399059296, 0.6491507887840271, -0.9409719109535217, -0.11457479745149612, 0.490481436252594, -1.010827660560608, 0.46131062507629395, -0.5508565306663513, -0.7709484100341797, -0.12638209760189056, 1.3194661140441895, 0.03435516729950905, 0.40847694873809814, ...
func (token Token) Valid(maxAge float64) bool { now := time.Now().UTC() difference := now.Sub(token.Timestamp) return difference.Seconds() <= maxAge }
[ -0.25810307264328003, -0.22643662989139557, 0.6251857876777649, 0.12251816689968109, -1.2097923755645752, 1.1014502048492432, -1.6695342063903809, 0.5957290530204773, -0.5954570770263672, 0.5860978960990906, -0.20049551129341125, -0.07725820690393448, 0.1716882735490799, -0.475776463747024...
func NewToken() Token { return Token{ Data: GenerateToken(1), Timestamp: time.Now().UTC(), } }
[ -0.03866581246256828, -0.3300662338733673, 0.35419124364852905, 0.33184731006622314, -0.337586909532547, 0.647483229637146, -0.43898847699165344, 0.907839298248291, -0.20983575284481049, -1.602997899055481, -0.6624888181686401, 1.1083749532699585, 0.9302657246589661, -0.02202794700860977, ...
func GenerateToken(length int) string { tokenParts := make([]string, 0) for i := 0; i < length; i++ { tokenParts = append(tokenParts, TokenPart()) } return strings.Join(tokenParts, "-") }
[ -0.46532365679740906, 0.44552746415138245, 0.6910363435745239, -0.5716793537139893, 0.32517001032829285, 0.6065962314605713, -0.7212830781936646, 0.6492137312889099, 0.00047580854152329266, -0.9845449328422546, -1.2637412548065186, 0.2778930068016052, 0.26716142892837524, -0.08147723227739...
func TokenPart() string { randBytes := make([]byte, 64) rand.Seed(time.Now().UnixNano()) rand.Read(randBytes) return fmt.Sprintf("%x", sha256.Sum256(randBytes)) }
[ 0.7944801449775696, -0.7266538143157959, 0.5885761976242065, -1.5377507209777832, -0.5081711411476135, 0.1120096817612648, -1.1784716844558716, -0.3187142312526703, 0.6007854342460632, 0.11274872720241547, -0.04155091196298599, -0.4469808042049408, -0.6845893859863281, -0.2352251559495926,...
func TokenSchema() string { return `CREATE TABLE TOKEN( AUTH VARCHAR(64), MASTER VARCHAR(260), AUTH_TIMESTAMP DATETIME ) ` }
[ 0.013205981813371181, 0.2506047487258911, 0.482632040977478, 0.0703110545873642, 0.03926656022667885, -0.3604535758495331, -0.9042707085609436, 0.7050853371620178, 0.0035090306773781776, 0.03420279175043106, -0.14975343644618988, 0.2594616711139679, 0.3959154188632965, -0.5863936543464661,...
func GetTokenBundle(path string) TokenBundle { db := ConnectTokenDB(path) defer db.Close() var tokens TokenBundle err := db.QueryRow("SELECT AUTH, MASTER, AUTH_TIMESTAMP FROM TOKEN").Scan( &tokens.Auth.Data, &tokens.Master, &tokens.Auth.Timestamp) util.CheckErrFatal(err) return tokens }
[ -0.5211242437362671, 0.5967547297477722, 0.5464024543762207, -0.36667561531066895, -0.5337120890617371, -0.2744579017162323, -0.47940629720687866, 0.05148804560303688, -0.5909577012062073, -0.05860837921500206, -0.49936774373054504, 0.46533408761024475, -0.4276443421840668, 0.3517720997333...
func ConnectTokenDB(path string) *sql.DB { dbFile := filepath.Join(path, "token-db") db, err := sql.Open("sqlite3", dbFile) util.CheckErrFatal(err) err = db.Ping() util.CheckErrFatal(err) return db }
[ -0.13875319063663483, -0.529406726360321, 0.6194894313812256, 0.4299079477787018, -0.5445874929428101, 0.4077253043651581, -0.4743357300758362, -0.38372641801834106, -0.31779420375823975, 0.5100195407867432, 0.1531325727701187, -0.15161769092082977, -1.2385679483413696, 0.15466389060020447...
func (qs QuorumPrivateTxSigner) SignatureValues(tx *Transaction, sig []byte) (R, S, V *big.Int, err error) { r, s, _, _ := HomesteadSigner{}.SignatureValues(tx, sig) // update v for private transaction marker: needs to be 37 (0+37) or 38 (1+37) for a private transaction. v := new(big.Int).SetBytes([]byte{sig[64] + 3...
[ -0.8466764688491821, 0.2196296900510788, 0.3686829209327698, -0.06846567243337631, -0.5338850617408752, -1.205499291419983, -0.029117245227098465, 0.191791832447052, -0.31897222995758057, -0.040638331323862076, -1.1211758852005005, -0.6760983467102051, 0.07991787046194077, 0.47002917528152...
func (s QuorumPrivateTxSigner) Hash(tx *Transaction) common.Hash { return s.HomesteadSigner.Hash(tx) }
[ 0.012164446525275707, 0.5186945796012878, 0.15202154219150543, 0.20828722417354584, -0.16406093537807465, 0.3448883593082428, -0.5017810463905334, -0.18444901704788208, -0.34967154264450073, -0.006653663236647844, -0.6198770403862, 0.05685430020093918, -0.02016570419073105, 0.2505599856376...
func isPrivate(v *big.Int) bool { return v.Cmp(big.NewInt(37)) == 0 || v.Cmp(big.NewInt(38)) == 0 }
[ -1.1025255918502808, 0.6152011752128601, 0.43279749155044556, -0.03965787962079048, 0.18097268044948578, -0.10034970194101334, -0.4680768847465515, -1.398929238319397, 1.0464202165603638, -0.27570146322250366, -0.35332831740379333, 0.5440547466278076, -1.0657609701156616, 0.816314876079559...
func NewMsgLeave(tx common.Tx, signer sdk.AccAddress) MsgLeave { return MsgLeave{ Tx: tx, Signer: signer, } }
[ 0.524605393409729, -0.06521239131689072, 0.1472356915473938, -0.0002379569923505187, -1.263116717338562, -0.02329103648662567, -0.9393215775489807, -0.2509554922580719, -0.26630592346191406, 0.11666339635848999, 0.05470099672675133, -0.17062047123908997, -0.5526764988899231, 0.829186201095...
func (msg MsgLeave) Route() string { return RouterKey }
[ -0.5580714344978333, 0.06517309695482254, 0.27601194381713867, -0.1986784189939499, 0.11197008937597275, -0.2136576622724533, 0.16347205638885498, -0.5882328748703003, -0.690073549747467, 0.7372314929962158, 0.34464409947395325, 0.23860032856464386, -0.4085550904273987, 0.9706035256385803,...
func (msg MsgLeave) Type() string { return "validator_leave" }
[ 0.4457343518733978, -0.06599980592727661, 0.31265002489089966, -0.3284057080745697, 0.6836870312690735, 0.6507714986801147, 0.11471050977706909, -1.09128999710083, 0.38982731103897095, 0.21204695105552673, 0.056088559329509735, -0.1812884360551834, -0.8583821654319763, 0.7957823872566223, ...
func (msg MsgLeave) ValidateBasic() sdk.Error { if msg.Tx.FromAddress.IsEmpty() { return sdk.ErrUnknownRequest("from address cannot be empty") } if msg.Tx.ID.IsEmpty() { return sdk.ErrUnknownRequest("tx id hash cannot be empty") } if msg.Signer.Empty() { return sdk.ErrUnknownRequest("signer cannot be empty "...
[ 0.13621775805950165, 0.5019227862358093, 0.5269402265548706, -0.5533882975578308, 0.3347271680831909, 0.04540632292628288, -0.5205771923065186, -0.7229359149932861, -1.1010469198226929, -0.10778294503688812, -0.2814193367958069, -0.26648426055908203, -0.3576628863811493, 0.5289215445518494...
func (msg MsgLeave) GetSignBytes() []byte { return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(msg)) }
[ -0.6824231147766113, 0.7883326411247253, 0.394525408744812, -0.4187176823616028, -0.009247817099094391, -0.8894761800765991, -0.04259501025080681, -0.4927074909210205, 0.028134934604167938, 0.4175162613391876, -0.956734299659729, 0.1647351235151291, -1.3676159381866455, 1.352134346961975, ...
func (msg MsgLeave) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{msg.Signer} }
[ -0.15568947792053223, -0.273854523897171, 0.39968037605285645, -0.05998547002673149, 0.6394561529159546, -0.9797303676605225, -0.2368912547826767, 0.38922736048698425, 0.45726168155670166, -0.3617611527442932, -0.20682144165039062, 0.2940346598625183, -1.0748645067214966, 1.415108203887939...
func (pkg *goPackage) addFile(c *config.Config, er *embedResolver, info fileInfo, cgo bool) error { switch { case info.ext == unknownExt || !cgo && (info.ext == cExt || info.ext == csExt): return nil case info.ext == protoExt: if pcMode := getProtoMode(c); pcMode == proto.LegacyMode { // Only add files in leg...
[ -0.14300337433815002, 0.33231425285339355, 0.7800318598747253, 0.19737273454666138, 0.1475433111190796, 0.6853563189506531, 0.1014586016535759, 0.9819899201393127, -0.7460024952888489, -0.2902665138244629, 0.43986427783966064, -0.817196786403656, -0.8855047225952148, 0.8965648412704468, ...
func (pkg *goPackage) isCommand() bool { return pkg.name == "main" && pkg.hasMainFunction }
[ -0.23324888944625854, -0.13658860325813293, 0.5151613354682922, 0.6794454455375671, 0.6933837532997131, 0.3010134696960449, -0.020408080890774727, 1.1639245748519897, 1.4705039262771606, 0.590418815612793, 0.09440366923809052, 0.4071706235408783, -0.5017968416213989, 0.9167095422744751, ...
func (pkg *goPackage) isBuildable(c *config.Config) bool { return pkg.firstGoFile() != "" || !pkg.proto.sources.isEmpty() }
[ -0.36702993512153625, 0.37059226632118225, 0.38114139437675476, 0.4272838532924652, 0.8812597393989563, 0.7366785407066345, 0.16324150562286377, 0.8016040921211243, -0.5810765624046326, 0.243160218000412, -0.5476845502853394, -0.7034695148468018, -0.8726768493652344, 0.7647758722305298, ...
func (pkg *goPackage) firstGoFile() string { goSrcs := []platformStringsBuilder{ pkg.library.sources, pkg.binary.sources, pkg.test.sources, } for _, sb := range goSrcs { if sb.strs != nil { for s := range sb.strs { if strings.HasSuffix(s, ".go") { return s } } } } return "" }
[ 1.1022297143936157, 0.7086139917373657, 0.799534022808075, -0.6754345893859863, 0.8368649482727051, 0.0020615141838788986, -0.2896048128604889, 0.4413300156593323, -1.153766393661499, 0.41912946105003357, 0.18451336026191711, -0.7760916352272034, -1.1546039581298828, 0.9397184252738953, ...
func libNameFromImportPath(dir string) string { i := strings.LastIndexAny(dir, "/\\") if i < 0 { return dir } name := dir[i+1:] if pkgVersionRe.MatchString(name) { dir := dir[:i] i = strings.LastIndexAny(dir, "/\\") if i >= 0 { name = dir[i+1:] } } return strings.ReplaceAll(name, ".", "_") }
[ -0.6435920596122742, -1.2573972940444946, 0.8714564442634583, 0.03642528876662254, -1.2189834117889404, 0.0895913615822792, 0.5471017360687256, -0.7312378883361816, -0.06298685073852539, 1.39173424243927, 0.16633515059947968, -0.7400741577148438, -0.12572351098060608, -0.8493813872337341, ...
func libNameByConvention(nc namingConvention, imp string, pkgName string) string { if nc == goDefaultLibraryNamingConvention { return defaultLibName } name := libNameFromImportPath(imp) isCommand := pkgName == "main" if name == "" { if isCommand { name = "lib" } else { name = pkgName } } else if isC...
[ -0.18560144305229187, -0.8841960430145264, 0.7302818894386292, 0.1842302531003952, 0.033217549324035645, 0.36179986596107483, 0.21756912767887115, -0.15298938751220703, 0.12054993212223053, 0.9811899662017822, 0.6385865807533264, -0.4330691397190094, -0.059839777648448944, -0.1419040262699...
func testNameByConvention(nc namingConvention, imp string) string { if nc == goDefaultLibraryNamingConvention { return defaultTestName } libName := libNameFromImportPath(imp) if libName == "" { libName = "lib" } return libName + "_test" }
[ 0.21637290716171265, -0.6254495978355408, 0.4440670609474182, -0.20050819218158722, 0.5153206586837769, 0.15568937361240387, 0.6861732006072998, -0.7468980550765991, 0.4063740670681, 1.059859275817871, 0.17077893018722534, -0.33460745215415955, -1.1168756484985352, -0.3440841734409332, 0...
func binName(rel, prefix, repoRoot string) string { return pathtools.RelBaseName(rel, prefix, repoRoot) }
[ 0.9099228382110596, -1.172347068786621, 0.3162879943847656, -0.13781313598155975, -1.2041162252426147, 0.38142308592796326, -0.5989416241645813, 0.19754444062709808, -0.3702472448348999, 0.02162058651447296, 0.10042387247085571, 0.2233296036720276, 0.5377799272537231, -0.4986826479434967, ...
func getPlatformStringsAddFunction(c *config.Config, info fileInfo, cgoTags *cgoTagsAndOpts) func(sb *platformStringsBuilder, ss ...string) { isOSSpecific, isArchSpecific := isOSArchSpecific(info, cgoTags) v := getGoConfig(c).rulesGoVersion constraintPrefix := "@" + getGoConfig(c).rulesGoRepoName + "//go/platform:" ...
[ 0.21436293423175812, -0.06819427013397217, 0.8337827324867249, 0.2203768938779831, 0.1131967082619667, 0.6523346304893494, -0.11242958903312683, 0.2958414852619171, -0.36440587043762207, 0.4679669141769409, 0.5516722798347473, 0.11613970994949341, 0.21119709312915802, 0.779321014881134, ...
func pathWithoutSemver(path string) string { m := semverRex.FindStringSubmatchIndex(path) if m == nil { return "" } v := path[m[2]+2 : m[3]] if v[0] == '0' || v == "1" { return "" } return path[:m[2]] + path[m[3]:] }
[ -0.13040563464164734, -0.43303969502449036, 0.5736252069473267, 0.35381364822387695, -0.9348022937774658, 0.7307550311088562, 0.9352760910987854, 0.29171425104141235, 0.8566775918006897, 0.8322606086730957, -0.13329368829727173, -0.4737369418144226, -1.1424838304519653, -0.3521104454994201...
func loadUtteranceLists(dirPath string) /*(utteranceLists,*/ error { //var res = newUtteranceLists() files, err := filepath.Glob(filepath.Join(dirPath, "*", "*.utt")) if err != nil { return fmt.Errorf("loadUtteranceLists: failed to list user *.utt files : %v", err) } //fmt.Printf("dirPath: %s\n", dirPath) utt...
[ -0.6717706322669983, -0.23333464562892914, 0.6818884611129761, -0.7221599817276001, -0.7760716080665588, 0.37116312980651855, 0.32990142703056335, 0.0686708465218544, -0.08431392908096313, 0.56648850440979, 0.16153216361999512, -0.5345771312713623, -0.4493836462497711, 0.39381420612335205,...
func (c *WebListenerConfig) CheckAndSetDefaults() error { if c.Listener == nil { return trace.BadParameter("missing parameter Listener") } if c.ReadDeadline == 0 { c.ReadDeadline = defaults.HandshakeReadDeadline } if c.Clock == nil { c.Clock = clockwork.NewRealClock() } return nil }
[ -0.0015997582813724875, -0.2614811956882477, 0.366312175989151, 0.3576102554798126, 1.1021418571472168, 0.09003432095050812, -0.006897501181811094, 0.11124422401189804, -0.39422473311424255, 0.7919923663139343, 0.013048873282968998, -0.3892783522605896, -0.7259591817855835, 1.6228389739990...
func NewWebListener(cfg WebListenerConfig) (*WebListener, error) { if err := cfg.CheckAndSetDefaults(); err != nil { return nil, trace.Wrap(err) } context, cancel := context.WithCancel(context.Background()) return &WebListener{ log: logrus.WithField(trace.Component, "mxweb"), cfg: cfg, webLi...
[ 0.5752246379852295, -0.40053561329841614, 0.19944000244140625, 0.7274771928787231, -0.6546474099159241, 0.5454493165016174, -0.2045843005180359, 0.1496717631816864, -0.21220162510871887, 0.31449490785598755, -0.8693433403968811, -0.24620439112186432, -0.6623733639717102, 1.3109492063522339...
func (l *WebListener) Web() net.Listener { return l.webListener }
[ 0.7738986015319824, -1.3028634786605835, 0.05613666772842407, 0.8948366045951843, -0.15609754621982574, 1.4562915563583374, 0.3406349718570709, -0.6726722717285156, -0.7147555351257324, -1.3002904653549194, -0.27053725719451904, -0.05629519745707512, 0.289855420589447, 0.5752879977226257, ...
func (l *WebListener) DB() net.Listener { return l.dbListener }
[ 0.9511493444442749, -0.33325037360191345, 0.337595134973526, 0.515829861164093, -0.11262247711420059, 1.8594385385513306, 0.2785491943359375, -0.22718122601509094, 0.8619083762168884, -0.6098827719688416, 0.5534654259681702, -0.3537607789039612, -0.4030405580997467, 1.2200292348861694, -...
func (l *WebListener) Serve() error { for { conn, err := l.cfg.Listener.Accept() if err != nil { if utils.IsUseOfClosedNetworkError(err) { <-l.context.Done() return trace.Wrap(err, "listener is closed") } select { case <-l.context.Done(): return trace.Wrap(net.ErrClosed, "listener is closed...
[ 0.3078281283378601, -0.21440209448337555, 0.4716072380542755, -0.12210306525230408, 0.0413169264793396, 0.4336862564086914, 0.2286764234304428, -0.35037511587142944, -1.2439239025115967, 0.7881492972373962, -0.4457061290740967, -0.25716954469680786, -0.4370056986808777, 1.0934849977493286,...
func (l *WebListener) Close() error { defer l.cancel() return l.cfg.Listener.Close() }
[ 0.3074256479740143, -0.4958804249763489, 0.34216180443763733, 0.1089959666132927, -0.6235060691833496, 1.2894777059555054, 0.12332896143198013, -0.20071573555469513, -0.2980230152606964, 0.015211080200970173, 0.07531319558620453, -0.6778934597969055, -1.3177378177642822, 1.541924238204956,...
func (l *WebListener) Addr() net.Addr { return l.cfg.Listener.Addr() }
[ 0.6772862076759338, -0.8339043855667114, 0.25209057331085205, 0.5479912161827087, -0.5067175626754761, 1.3721801042556763, 0.3985496461391449, 0.29024192690849304, 0.5837090015411377, -0.715440034866333, 0.9459844827651978, -0.20106248557567596, -0.07380568236112595, 1.2756096124649048, ...
func (this *HomeAction) Get() error { return this.Render("home.html", &xweb.T{ "IsHome": true, }) }
[ 0.3604607880115509, -0.05975411459803581, 0.3954254984855652, 0.914746105670929, 0.6986505389213562, -0.16152092814445496, 0.08300205320119858, 0.18680033087730408, 0.34583649039268494, 0.2745046317577362, 0.28575414419174194, 1.151602864265442, -0.3791336119174957, 0.2945403754711151, -...
func Sqrt(x float64) (float64, float64) { z := 1.0 for i := 0; i < 10; i++ { z -= (z*z - x) / (2 * z) } return z, math.Sqrt(x) }
[ 0.3759414553642273, 0.2556866705417633, 0.2941723167896271, -0.2379506528377533, -0.026667654514312744, -0.6037662029266357, -0.22691325843334198, -0.550601065158844, 1.1372201442718506, -0.23380234837532043, -0.7457840442657471, 0.18051059544086456, -0.43036729097366333, 0.690461874008178...
func Agent(ag *agent.Agent) cli.Agent { return &cliAgent{ agent: ag, } }
[ 0.47966375946998596, -0.6339754462242126, 0.013235341757535934, 0.11752098798751831, -0.12807190418243408, 0.013132912106812, -0.5966764688491821, -0.9313557147979736, 1.0011318922042847, -0.2531532347202301, 0.46804267168045044, 0.8842262029647827, 0.5303153395652771, 0.0963018536567688, ...
func (ct ContentType) IsValid() error { switch ct { case Collection, Credential, DIDDocument, Metadata, Connection: return nil } return fmt.Errorf("invalid content type '%s', supported types are %s", ct, []ContentType{Collection, Credential, DIDDocument, Metadata, Connection}) }
[ 0.6838693022727966, -0.5226039290428162, 0.36520498991012573, 0.08557730168104172, 0.27395790815353394, 0.4428572952747345, -0.05001470819115639, -0.07266370952129364, 0.258404403924942, -0.08687605708837509, 0.25326019525527954, 0.964608371257782, -0.7327068448066711, 0.09896919876337051,...
func (ct ContentType) Name() string { return string(ct) }
[ -0.04982371628284454, -1.117218255996704, 0.23755969107151031, -0.18210765719413757, -1.356446385383606, -0.1963745355606079, 0.08592433482408524, -0.7896314263343811, -0.6966526508331299, 0.7745897769927979, -0.7354938983917236, -0.4652920961380005, -0.49943459033966064, 0.169281750917434...
func newContentStore(p storage.Provider, pr *profile) (*contentStore, error) { store, err := p.OpenStore(pr.ID) if err != nil { return nil, fmt.Errorf("failed to create store for user '%s' : %w", pr.User, err) } err = p.SetStoreConfig(pr.ID, storage.StoreConfiguration{TagNames: []string{ Collection.Name(), Cre...
[ -0.09072992205619812, -0.6071743369102478, -0.018596233800053596, -0.04708930477499962, -1.2681782245635986, -0.009219182655215263, -0.08111602813005447, -0.9940328001976013, 0.06406953930854797, -0.08192729949951172, -0.043599262833595276, -0.7198183536529541, -0.5119287967681885, -0.1134...
func (cs *contentStore) Save(ct ContentType, content []byte) error { if err := ct.IsValid(); err != nil { return err } var cid contentID if err := json.Unmarshal(content, &cid); err != nil { return fmt.Errorf("failed to read content to be saved : %w", err) } if strings.TrimSpace(cid.ID) == "" { return err...
[ 0.2849906384944916, -0.5323385000228882, 0.24653632938861847, -0.8056767582893372, -0.25132495164871216, -0.4678712487220764, -0.40120720863342285, -0.7970453500747681, -0.197072833776474, 0.9739169478416443, -1.0639728307724, -0.9920544624328613, -1.3442977666854858, -0.2830713391304016, ...
func (cs *contentStore) Remove(ct ContentType, key string) error { return cs.store.Delete(getContentKeyPrefix(ct, key)) }
[ -0.41449421644210815, -0.8970187902450562, -0.033213838934898376, -0.26274213194847107, -1.2137538194656372, -0.3719201385974884, -0.6911458373069763, 0.44839563965797424, 0.09156706184148788, 0.5200852751731873, -0.412154883146286, -0.3170667290687561, -1.0555250644683838, 0.0457708202302...
func (cs *contentStore) Get(ct ContentType, key string) ([]byte, error) { return cs.store.Get(getContentKeyPrefix(ct, key)) }
[ -0.449146568775177, -0.5312449336051941, 0.08190130442380905, -0.36229100823402405, -0.14944511651992798, -0.847972571849823, -1.2305028438568115, -0.5028979778289795, -0.31949353218078613, 0.290761262178421, -0.453357070684433, 0.6231193542480469, -0.6529309153556824, -0.01195478439331054...
func getContentKeyPrefix(ct ContentType, key string) string { return fmt.Sprintf("%s_%s", ct, key) }
[ -0.6155413389205933, -0.4370635151863098, 0.5341161489486694, -1.0461996793746948, -0.4968721866607666, -0.5089379549026489, -0.7820844054222107, -0.48241233825683594, -1.138731837272644, 0.8188254237174988, -0.14213991165161133, 0.7019850611686707, -0.1753726303577423, 0.3921778202056885,...
func NewArticle(feed *app.Feed, item *gofeed.Item) *model.Article { article := &model.Article{} article.Content = item.Content article.Description = item.Description article.GUID = item.GUID article.Link = item.Link article.Title = item.Title article.Published = item.Published article.PublishedParsed = item.Pub...
[ 0.5799510478973389, -1.41471529006958, 0.21714626252651215, -0.48997247219085693, 0.12349789589643478, -0.07342042773962021, -0.8971526026725769, -0.18427424132823944, -0.5823190808296204, 0.6277105212211609, -0.22228576242923737, 0.2189849615097046, -0.09670891612768173, -0.68447107076644...
func NewArticles(feed *app.Feed, items []*gofeed.Item) []*model.Article { result := make([]*model.Article, len(items), len(items)) for i := range items { result[i] = NewArticle(feed, items[i]) } return result }
[ -0.20695452392101288, -0.8538607358932495, 0.15177609026432037, -0.032716281712055206, 0.3314546048641205, 0.018229903653264046, -0.8311532139778137, -0.5839139819145203, -0.9160767793655396, 0.6748731732368469, -0.1720241904258728, -0.2906992435455322, -0.2637319266796112, -0.013473608531...
func pointyMap() interface{} { return map[string]interface{}{ "bar": map[string]interface{}{ "baz": &b{0, []int{1, 2, 3}}, "buzz": []int{4, 5, 6}}, "baz": []int{7, 8, 9}, "bazzle": []string{"10", "11", "12"}} }
[ -1.080970287322998, -0.39896079897880554, 0.6442570686340332, -0.16401255130767822, -0.47228527069091797, -0.36616185307502747, 0.22971531748771667, -0.1623363196849823, 0.8764850497245789, 0.7638577222824097, -1.0653599500656128, -0.44123995304107666, 0.04881121590733528, -0.5323380827903...
func NewSprite(rend *sdl.Renderer) *Sprite { s := &Sprite{ rend: rend, w: 0, h: 0, pitch: 0, } return s }
[ 0.3241250813007355, -0.1696619838476181, 0.2589166462421417, -0.1819213479757309, -1.1418612003326416, 0.20844519138336182, -0.7977328300476074, -0.3331998586654663, 0.01147662103176117, -0.6108235120773315, -0.35411691665649414, 0.05560924857854843, -0.2976240813732147, 0.2701817452907562...
func (s *Sprite) LoadRGBAPixels(pixels []int, pitch int32) error { s.w = pitch s.h = int32(len(pixels)) / pitch s.pitch = pitch { surf, err := RGBAPixels2Surface(pixels, s.w, s.h) if err != nil { return err } s.surf = surf } { tex, err := Surface2Texture(s.rend, s.surf) if err != nil { return e...
[ -0.20305001735687256, 0.11660734564065933, 0.8833022713661194, -0.15889422595500946, 0.09040368348360062, 0.41492608189582825, 0.555357813835144, -1.1162989139556885, 0.13112099468708038, 0.831285297870636, -0.4126439690589905, -0.4541047513484955, -1.2366530895233154, 0.39748167991638184,...
func (s *Sprite) DrawAt(x, y int32, scale float32) { if s.tex == nil { return } dstRect := &sdl.Rect{ X: x, Y: y, W: int32(float32(s.w) * scale), H: int32(float32(s.h) * scale), } s.rend.Copy(s.tex, nil, dstRect) }
[ -0.8290331363677979, -0.33061009645462036, 0.6928135752677917, -1.6530319452285767, -0.9956136345863342, 0.5911805629730225, -1.0901830196380615, -1.0307743549346924, -0.030728446319699287, 0.27880242466926575, -0.10794076323509216, 0.19330818951129913, 0.43965426087379456, -0.674261093139...
func (s *Sprite) GetPitch() int32 { return int32(s.pitch) }
[ 0.5157929062843323, 1.2745864391326904, 0.4831877052783966, -0.13044914603233337, -0.03986280784010887, 0.5758635401725769, 1.0557713508605957, -0.35146239399909973, -0.32805243134498596, 0.08409639447927475, -0.0863942876458168, 0.14718179404735565, -1.1440232992172241, -0.346048921346664...
func (s *Sprite) GetPixels() []byte { return s.surf.Pixels() }
[ 0.02121550962328911, 0.871946394443512, 0.3225789964199066, 0.3876054584980011, -0.16371197998523712, -0.0020853944588452578, 0.5916031002998352, -0.7825576066970825, 0.9454243183135986, -0.14742857217788696, -0.4039483964443207, 0.29856282472610474, -1.440555214881897, 1.3444138765335083,...
func UID() string { return uuid.NewV4().String() }
[ 0.2501087188720703, -1.192816972732544, 0.3678266406059265, -0.2386171668767929, 0.02116122841835022, 1.4764293432235718, -0.4355931282043457, 1.059880256652832, 0.7968093156814575, -0.5558983087539673, 0.70034259557724, 0.49412772059440613, 0.13368286192417145, -0.5267514586448669, -0.5...
func Wait(wg *sync.WaitGroup, timeout time.Duration) bool { wgDone := make(chan bool) defer close(wgDone) go func() { wg.Wait() wgDone <- true }() select { case <-wgDone: return true case <-time.After(timeout): return false } }
[ -0.3627237379550934, 0.8092306852340698, 0.46829140186309814, -0.08701168745756149, -0.42493531107902527, 0.23205386102199554, -0.19368785619735718, -0.36734750866889954, -1.1198265552520752, 0.6275885105133057, -0.19949974119663239, -0.10763062536716461, -0.2824823558330536, 0.38362976908...
func (p *Postgres) PayingCustomers() ([]string, error) { // The SQL query below returns us a list of all 'active' paying custormers // account ids: // select payment.customer.old_id from payment.subscription, payment.customer // where payment.subscription.customer_id = payment.customer.id and // payment.subscripti...
[ 0.5412548184394836, -0.9578946828842163, 0.8641451597213745, 0.3737700879573822, -0.9410493969917297, -0.47068142890930176, -0.43602657318115234, 0.5148080587387085, -0.6122248768806458, 1.3852648735046387, 0.8179157376289368, 0.09523209929466248, -0.13819311559200287, 0.3921694755554199, ...
func NewMockOrganizationLister(ctrl *gomock.Controller) *MockOrganizationLister { mock := &MockOrganizationLister{ctrl: ctrl} mock.recorder = &MockOrganizationListerMockRecorder{mock} return mock }
[ -0.5897666811943054, -0.0407925508916378, -0.06838244199752808, 0.47638142108917236, -0.5509531497955322, 0.08714989572763443, 0.5902968049049377, -0.17588527500629425, -0.04379807785153389, 0.28408169746398926, -0.6233212947845459, -0.7886478900909424, 0.45461297035217285, 1.4175997972488...
func (m *MockOrganizationLister) EXPECT() *MockOrganizationListerMockRecorder { return m.recorder }
[ -0.5169814229011536, -0.024625660851597786, 0.29050377011299133, 0.38964059948921204, 0.2694398760795593, 0.4648793637752533, 0.32008570432662964, 0.34234705567359924, 0.17475995421409607, -0.12272398918867111, 0.18550977110862732, 0.5675102472305298, -0.6556468605995178, 0.912433862686157...
func (m *MockOrganizationLister) Organizations(arg0 *mongodbatlas.ListOptions) (*mongodbatlas.Organizations, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Organizations", arg0) ret0, _ := ret[0].(*mongodbatlas.Organizations) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -1.3087286949157715, 0.5277695059776306, 0.17595764994621277, -0.0908140018582344, 0.9831838607788086, 0.6484665274620056, 1.43368399143219, -0.5748373866081238, -0.6098350882530212, -0.6524942517280579, 0.05758398026227951, -1.2425488233566284, -0.3533904254436493, 1.1953662633895874, 0...
func (mr *MockOrganizationListerMockRecorder) Organizations(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Organizations", reflect.TypeOf((*MockOrganizationLister)(nil).Organizations), arg0) }
[ -0.865199089050293, 1.0889042615890503, 0.17728999257087708, -0.4022766351699829, 0.16944283246994019, 0.417829692363739, 0.015330547466874123, -1.1377537250518799, 0.7802930474281311, -0.1382913738489151, 0.8230558633804321, -0.19212228059768677, -0.5680647492408752, 1.814319133758545, ...
func NewMockOrganizationCreator(ctrl *gomock.Controller) *MockOrganizationCreator { mock := &MockOrganizationCreator{ctrl: ctrl} mock.recorder = &MockOrganizationCreatorMockRecorder{mock} return mock }
[ 0.020431144163012505, 0.24352392554283142, -0.21907901763916016, 0.8443535566329956, -0.354150652885437, 0.10787709057331085, 0.5316394567489624, -0.26913779973983765, -0.17712999880313873, -0.32094869017601013, -0.503810465335846, -0.7334081530570984, 0.7094910740852356, 1.196730852127075...
func (m *MockOrganizationCreator) EXPECT() *MockOrganizationCreatorMockRecorder { return m.recorder }
[ 0.02054568938910961, -0.02982735075056553, 0.226374089717865, 0.6158310174942017, 0.5224940180778503, 0.6090754270553589, 0.5184573531150818, 0.011135919950902462, -0.027904240414500237, -0.6579301953315735, 0.39663922786712646, 0.31742313504219055, -0.28627511858940125, 0.6617040634155273...
func (m *MockOrganizationCreator) CreateOrganization(arg0 string) (*mongodbatlas.Organization, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateOrganization", arg0) ret0, _ := ret[0].(*mongodbatlas.Organization) ret1, _ := ret[1].(error) return ret0, ret1 }
[ -0.9182553291320801, 0.3443957567214966, 0.22141829133033752, 0.3414764702320099, 1.5715839862823486, -0.1951781064271927, 1.599029302597046, -0.6328001618385315, -0.5608773827552795, 0.14905983209609985, -0.8703330159187317, -1.449424386024475, -0.48534733057022095, 1.5163486003875732, ...
func (mr *MockOrganizationCreatorMockRecorder) CreateOrganization(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrganization", reflect.TypeOf((*MockOrganizationCreator)(nil).CreateOrganization), arg0) }
[ -0.4260719418525696, 0.5734235644340515, 0.12046018242835999, 0.2050221860408783, 0.5438240170478821, -0.09144511818885803, 0.10110002756118774, -0.9432411193847656, 0.6134459376335144, 0.8063756227493286, 0.2503299117088318, -0.409060001373291, -0.6321378350257874, 1.616145133972168, -0...
func NewMockOrganizationDeleter(ctrl *gomock.Controller) *MockOrganizationDeleter { mock := &MockOrganizationDeleter{ctrl: ctrl} mock.recorder = &MockOrganizationDeleterMockRecorder{mock} return mock }
[ -0.7648361921310425, -0.11815989017486572, -0.03198256716132164, 0.44738179445266724, -0.22911585867404938, 0.5430424213409424, 0.17567387223243713, 0.10768797248601913, 0.002813371829688549, -0.011793381534516811, -0.23504534363746643, 0.13512754440307617, 0.15617282688617706, 1.373092055...
func (m *MockOrganizationDeleter) EXPECT() *MockOrganizationDeleterMockRecorder { return m.recorder }
[ -0.17105679214000702, -0.0676485002040863, 0.28899911046028137, 0.2540477514266968, 0.6278427839279175, 0.5533908009529114, 0.1377730816602707, 0.6221306324005127, 0.5763202905654907, -0.38644495606422424, 1.0054562091827393, 1.2090891599655151, -0.5089081525802612, 0.6157392859458923, -...
func (m *MockOrganizationDeleter) DeleteOrganization(arg0 string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteOrganization", arg0) ret0, _ := ret[0].(error) return ret0 }
[ -1.1044248342514038, 0.12080862373113632, 0.2034611701965332, 0.16125008463859558, 1.2246078252792358, -0.26304522156715393, 1.5598576068878174, -0.4048023521900177, -0.18791653215885162, -1.010549783706665, -0.4347189664840698, -1.0189872980117798, -0.8071846961975098, 1.198933720588684, ...
func (mr *MockOrganizationDeleterMockRecorder) DeleteOrganization(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteOrganization", reflect.TypeOf((*MockOrganizationDeleter)(nil).DeleteOrganization), arg0) }
[ -0.7904924750328064, 0.6017282605171204, 0.22250697016716003, 0.2953964173793793, 0.3280271291732788, -0.2004360854625702, 0.2644123435020447, -0.49156680703163147, 1.0900951623916626, 0.09392410516738892, 0.5681362748146057, 0.004885587841272354, -0.522650420665741, 1.1924093961715698, ...