text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (k Querier) DelegatorValidators(ctx context.Context, req *types.QueryDelegatorValidatorsRequest) (*types.QueryDelegatorValidatorsResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}
if req.DelegatorAddr == "" {
return nil, status.Error(codes.InvalidArgument,... | [
-1.1368070840835571,
0.26338937878608704,
0.6764405369758606,
-0.9012863039970398,
-0.44743219017982483,
0.018706826493144035,
0.000487683922983706,
0.03866603597998619,
1.0188298225402832,
-0.050566140562295914,
0.28989773988723755,
0.87545245885849,
-0.17614123225212097,
0.74859559535980... |
func (k Querier) Pool(ctx context.Context, _ *types.QueryPoolRequest) (*types.QueryPoolResponse, error) {
bondDenom, err := k.BondDenom(ctx)
if err != nil {
return nil, err
}
bondedPool := k.GetBondedPool(ctx)
notBondedPool := k.GetNotBondedPool(ctx)
pool := types.NewPool(
k.bankKeeper.GetBalance(ctx, notBon... | [
-0.4269070327281952,
-0.22097191214561462,
0.6280614733695984,
-0.4127342104911804,
0.608678936958313,
1.129947543144226,
0.8861023187637329,
-0.9846910834312439,
0.5863175988197327,
-0.3655130863189697,
0.4736078679561615,
0.8493251800537109,
-0.5309056639671326,
-0.07114303112030029,
-... |
func (k Querier) Params(ctx context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error) {
params, err := k.GetParams(ctx)
if err != nil {
return nil, err
}
return &types.QueryParamsResponse{Params: params}, nil
} | [
-0.6998196840286255,
-0.3109646439552307,
0.18875843286514282,
-0.7838945388793945,
0.05380232632160187,
-0.14286349713802338,
-0.6053824424743652,
-0.8972599506378174,
0.44847571849823,
-0.05626024305820465,
0.7265081405639648,
0.3745422959327698,
-0.37096500396728516,
0.29174208641052246... |
func ValidateAuction(a Auction) error {
// ID can be 0 for surplus, debt and collateral auctions
if strings.TrimSpace(a.GetInitiator()) == "" {
return errors.New("auction initiator cannot be blank")
}
if !a.GetLot().IsValid() {
return fmt.Errorf("invalid lot: %s", a.GetLot())
}
if !a.GetBid().IsValid() {
re... | [
-0.4155811667442322,
-0.9227457046508789,
0.557561993598938,
-0.35495099425315857,
-0.3692214787006378,
0.28863081336021423,
0.7580122351646423,
0.10232575982809067,
-0.023924948647618294,
0.21924297511577606,
-0.16087618470191956,
0.2806070148944855,
0.04648382589221001,
0.669974923133850... |
func NewSurplusAuction(seller string, lot sdk.Coin, bidDenom string, endTime time.Time) SurplusAuction {
auction := SurplusAuction{
BaseAuction: BaseAuction{
// No Id
Initiator: seller,
Lot: lot,
Bidder: nil,
Bid: sdk.NewInt64Coin(bidDenom, 0),
HasReceivedBids... | [
-0.28745588660240173,
-0.3852926194667816,
0.5222324728965759,
-0.10794869065284729,
-0.6687902212142944,
-0.3761395215988159,
0.41844817996025085,
0.6058329343795776,
0.5174582600593567,
0.15847145020961761,
-1.1122429370880127,
0.9251096248626709,
-0.19903665781021118,
-0.253408491611480... |
func (a SurplusAuction) GetPhase() string { return ForwardAuctionPhase } | [
0.5193005800247192,
-0.02076777070760727,
0.3090774416923523,
-0.1491927206516266,
0.552955150604248,
-0.20308494567871094,
0.17467117309570312,
0.42560523748397827,
0.5727977752685547,
-0.3694135546684265,
0.85356605052948,
-0.47030550241470337,
0.2244996875524521,
-0.1017955020070076,
... |
func (a SurplusAuction) GetType() string { return SurplusAuctionType } | [
0.14955994486808777,
-0.17513029277324677,
0.3175218999385834,
0.5160025954246521,
1.2839478254318237,
-0.2793557643890381,
1.1885277032852173,
0.10732650011777878,
1.2507140636444092,
-0.10064985603094101,
-0.5427709221839905,
0.5857676863670349,
0.42485174536705017,
-0.2797864079475403,
... |
func (a SurplusAuction) GetModuleAccountCoins() sdk.Coins {
// a.Bid is paid out on bids, so is never stored in the module account
return sdk.NewCoins(a.Lot)
} | [
0.1873333752155304,
-0.44188615679740906,
0.2950923442840576,
-0.6733638048171997,
0.3660774528980255,
-0.6292981505393982,
0.7338013052940369,
-0.33111345767974854,
0.9436362385749817,
0.2699289619922638,
-0.018320923671126366,
1.9886038303375244,
-0.1462911069393158,
-0.07110680639743805... |
func NewDebtAuction(buyerModAccName string, bid sdk.Coin, initialLot sdk.Coin, endTime time.Time, debt sdk.Coin) DebtAuction {
// Note: Bidder is set to the initiator's module account address instead of module name. (when the first bid is placed, it is paid out to the initiator)
// Setting to the module account addre... | [
-0.37652844190597534,
-1.0157828330993652,
0.5581473112106323,
0.04902663081884384,
-0.5956891775131226,
-0.17177684605121613,
0.14005039632320404,
0.22686605155467987,
0.015311060473322868,
-0.0658828541636467,
-0.5734322667121887,
0.989311933517456,
-0.22442084550857544,
0.21639023721218... |
func (a DebtAuction) GetPhase() string { return ReverseAuctionPhase } | [
-0.02413971908390522,
-0.0404825322329998,
0.4723174571990967,
0.164078027009964,
0.8453342318534851,
-0.3237675726413727,
-0.23411482572555542,
0.748613715171814,
0.6581922173500061,
-0.39258065819740295,
1.0166585445404053,
-0.1911259889602661,
-0.25294214487075806,
-0.16001811623573303,... |
func (a DebtAuction) GetType() string { return DebtAuctionType } | [
-0.45846423506736755,
0.27607306838035583,
0.41139718890190125,
0.4641134738922119,
1.2042759656906128,
-0.12453172355890274,
0.8683987855911255,
0.27759870886802673,
1.1160706281661987,
-0.6295463442802429,
0.2457822859287262,
0.24435129761695862,
0.46386852860450745,
0.1940477043390274,
... |
func (a DebtAuction) GetModuleAccountCoins() sdk.Coins {
// a.Lot is minted at auction close, so is never stored in the module account
// a.Bid is paid out on bids, so is never stored in the module account
return sdk.NewCoins(a.CorrespondingDebt)
} | [
-0.12570559978485107,
-0.5041194558143616,
0.35986289381980896,
-0.6659389734268188,
-0.005556566175073385,
-0.013358169235289097,
0.7108005881309509,
-0.46104350686073303,
0.7819031476974487,
-0.13222651183605194,
0.48502489924430847,
1.8299171924591064,
-0.21728482842445374,
0.4444369971... |
func (a DebtAuction) Validate() error {
if !a.CorrespondingDebt.IsValid() {
return fmt.Errorf("invalid corresponding debt: %s", a.CorrespondingDebt)
}
return ValidateAuction(&a)
} | [
-0.10795221477746964,
0.08053311705589294,
0.38572055101394653,
0.05293690413236618,
0.32995539903640747,
0.018850507214665413,
0.20871317386627197,
0.03794747591018677,
0.5820332169532776,
-0.8511354327201843,
0.8153349757194519,
0.10020017623901367,
0.5714179873466492,
0.3743106424808502... |
func NewCollateralAuction(seller string, lot sdk.Coin, endTime time.Time, maxBid sdk.Coin, lotReturns WeightedAddresses, debt sdk.Coin) CollateralAuction {
auction := CollateralAuction{
BaseAuction: BaseAuction{
// no ID
Initiator: seller,
Lot: lot,
Bidder: nil,
Bid: ... | [
0.2885766625404358,
-1.1073263883590698,
0.4983707070350647,
0.2819664776325226,
-0.7643126845359802,
-0.1299864798784256,
0.5430325865745544,
0.9340077042579651,
0.30929020047187805,
0.527370274066925,
0.12093792110681534,
0.30652883648872375,
-0.691004753112793,
-0.039428744465112686,
... |
func (a CollateralAuction) GetType() string { return CollateralAuctionType } | [
1.1182739734649658,
-0.2967469394207001,
0.373819500207901,
0.44844865798950195,
0.9712634086608887,
0.07853945344686508,
1.1490939855575562,
0.3604911267757416,
1.177495002746582,
0.13008596003055573,
0.18628272414207458,
0.12783809006214142,
-0.07322283834218979,
-0.23227889835834503,
... |
func (a CollateralAuction) IsReversePhase() bool {
return a.Bid.IsEqual(a.MaxBid)
} | [
-0.20749028027057648,
-0.24609266221523285,
0.5358100533485413,
0.12702572345733643,
0.2157348096370697,
-0.041817739605903625,
-1.2171905040740967,
0.9781448245048523,
0.5902666449546814,
0.5628497004508972,
-0.14971394836902618,
0.16518573462963104,
-1.2580209970474243,
-0.25827947258949... |
func (a CollateralAuction) GetPhase() string {
if a.IsReversePhase() {
return ReverseAuctionPhase
}
return ForwardAuctionPhase
} | [
0.8294755816459656,
0.22607015073299408,
0.4434894621372223,
0.15431581437587738,
0.6570941805839539,
-0.13048776984214783,
0.2616138160228729,
0.300454705953598,
0.9815563559532166,
0.24420948326587677,
1.2769814729690552,
-0.23575513064861298,
-0.21602879464626312,
0.1782616823911667,
... |
func (a CollateralAuction) GetLotReturns() WeightedAddresses { return a.LotReturns } | [
1.0788434743881226,
-0.12842857837677002,
0.22260534763336182,
-1.2802629470825195,
0.06149914860725403,
-0.1902763694524765,
0.12568461894989014,
0.5793529152870178,
0.6053729057312012,
-1.463742971420288,
1.0698621273040771,
0.51483553647995,
-0.8733507394790649,
-0.45054754614830017,
... |
func (a CollateralAuction) GetModuleAccountCoins() sdk.Coins {
// a.Bid is paid out on bids, so is never stored in the module account
return sdk.NewCoins(a.Lot).Add(sdk.NewCoins(a.CorrespondingDebt)...)
} | [
0.5038599967956543,
-0.3549486994743347,
0.3390222191810608,
-0.5386418700218201,
0.28896546363830566,
-0.34855198860168457,
0.6338630318641663,
-0.0762024074792862,
0.8960303068161011,
0.33538123965263367,
0.29038020968437195,
1.7111254930496216,
-0.1354013830423355,
0.09494082629680634,
... |
func (a CollateralAuction) Validate() error {
if !a.CorrespondingDebt.IsValid() {
return fmt.Errorf("invalid corresponding debt: %s", a.CorrespondingDebt)
}
if !a.MaxBid.IsValid() {
return fmt.Errorf("invalid max bid: %s", a.MaxBid)
}
if err := a.LotReturns.Validate(); err != nil {
return fmt.Errorf("invalid... | [
0.6660208702087402,
-0.5881441235542297,
0.37790703773498535,
-0.2799428105354309,
-0.17365972697734833,
-0.06176004558801651,
0.34007716178894043,
0.4333740770816803,
0.3004816174507141,
-0.5384459495544434,
0.7882035374641418,
-0.07736482471227646,
0.04039084166288376,
0.0122906425967812... |
func NewWeightedAddresses(addrs []sdk.AccAddress, weights []sdkmath.Int) (WeightedAddresses, error) {
wa := WeightedAddresses{
Addresses: addrs,
Weights: weights,
}
if err := wa.Validate(); err != nil {
return WeightedAddresses{}, err
}
return wa, nil
} | [
0.28155919909477234,
-0.5161510705947876,
0.34784650802612305,
-0.10493066906929016,
-0.38348686695098877,
-0.17547714710235596,
0.244137242436409,
-0.5400646924972534,
0.7050291895866394,
0.43238937854766846,
0.30150270462036133,
0.7548577785491943,
-1.4086657762527466,
0.3852489292621612... |
func (wa WeightedAddresses) Validate() error {
if len(wa.Weights) < 1 {
return fmt.Errorf("must be at least 1 weighted address")
}
if len(wa.Addresses) != len(wa.Weights) {
return fmt.Errorf("number of addresses doesn't match number of weights, %d ≠ %d", len(wa.Addresses), len(wa.Weights))
}
totalWeight := s... | [
0.2022673785686493,
0.1467248946428299,
0.6719287633895874,
-0.38925299048423767,
0.2833780348300934,
0.008434608578681946,
0.19929052889347076,
-0.30365023016929626,
0.01937025412917137,
0.3154773712158203,
0.8077365756034851,
-0.13778352737426758,
-1.1200979948043823,
0.4366881847381592,... |
func handleConsoleCtrlEvent(events chan<- uint) error {
kernel32 := windows.NewLazySystemDLL("kernel32.dll")
setConsoleCtrlHandler := kernel32.NewProc("SetConsoleCtrlHandler")
callback := func(ctrlType uint) uint {
events <- ctrlType
return 0
}
n, _, err := setConsoleCtrlHandler.Call(windows.NewCallback(call... | [
0.3469737470149994,
-0.15998713672161102,
0.8044654726982117,
-0.22266913950443268,
0.5995161533355713,
-0.30395519733428955,
0.555077850818634,
-0.575940728187561,
0.37917131185531616,
-0.3666297197341919,
-0.7675255537033081,
-0.5607473850250244,
-0.4679134786128998,
0.747380793094635,
... |
func protoKnownFieldsEqual(a, b proto.Message) bool {
return cmp.Equal(a, b, cmp.FilterPath(func(path cmp.Path) bool {
if field, ok := path.Last().(cmp.StructField); ok {
return strings.HasPrefix(field.Name(), "XXX_")
}
return false
}, cmp.Ignore()))
} | [
-0.08215919882059097,
-0.3295593559741974,
0.6008380651473999,
-0.7820844650268555,
0.23317481577396393,
0.5534096360206604,
-0.17277038097381592,
-0.04592030122876167,
-0.5776534080505371,
0.36130812764167786,
-1.7024786472320557,
-0.16313593089580536,
-0.5198472142219543,
-0.763417243957... |
func (s *source) removeCursor(rm *cursor) {
s.cursorsMu.Lock()
defer s.cursorsMu.Unlock()
if rm.cursorsIdx != len(s.cursors)-1 {
s.cursors[rm.cursorsIdx], s.cursors[len(s.cursors)-1] = s.cursors[len(s.cursors)-1], nil
s.cursors[rm.cursorsIdx].cursorsIdx = rm.cursorsIdx
} else {
s.cursors[rm.cursorsIdx] = nil... | [
-0.33174723386764526,
-0.17130504548549652,
0.4472825527191162,
-0.8665581345558167,
-1.2511578798294067,
-0.9966686964035034,
0.40330278873443604,
0.7857473492622375,
1.4873021841049194,
0.10996861010789871,
-0.5967315435409546,
0.6053463816642761,
-0.9972910284996033,
0.9640751481056213,... |
func (c *cursor) use() *cursorOffsetNext {
// A source using a cursor has exclusive access to the use field by
// virtue of that source building a request during a live session,
// or by virtue of the session being stopped.
c.useState = 0
return &cursorOffsetNext{
cursorOffset: c.cursorOffset,
from: ... | [
-0.4635099768638611,
-0.3215736746788025,
0.6332137584686279,
-0.543242335319519,
-0.5579906105995178,
-0.22748450934886932,
0.9067057967185974,
-0.1775052398443222,
0.2609475553035736,
-0.7858946323394775,
-0.2488785684108734,
0.13785503804683685,
-0.9861272573471069,
-0.5508683919906616,... |
func (c *cursor) unset() {
c.useState = 0
c.setOffset(cursorOffset{
offset: -1,
lastConsumedEpoch: -1,
})
} | [
-0.03184392675757408,
-0.21042273938655853,
0.2070542871952057,
-1.4274550676345825,
0.02673483081161976,
-0.7710123062133789,
0.8724016547203064,
0.6536964178085327,
-0.8200304508209229,
0.23049910366535187,
0.11773950606584549,
0.6143500208854675,
0.17155349254608154,
-0.258661150932312,... |
func (c *cursor) usable() bool {
return atomic.LoadUint32(&c.useState) == 1
} | [
-0.9551573991775513,
0.08382418751716614,
0.4823213517665863,
-0.33529266715049744,
-0.03452327847480774,
-0.35900336503982544,
0.25829148292541504,
-0.19300709664821625,
-0.5344572067260742,
0.9443148374557495,
-0.7013958692550659,
0.16971857845783234,
-0.5299620628356934,
0.2337786406278... |
func (c *cursor) allowUsable() {
atomic.SwapUint32(&c.useState, 1)
c.source.maybeConsume()
} | [
0.011501825414597988,
0.7473985552787781,
0.25115442276000977,
-0.5021722912788391,
-0.023005234077572823,
-0.44829726219177246,
0.6498649716377258,
-0.04555497691035271,
-0.3310128450393677,
1.0736839771270752,
0.378800630569458,
0.613947868347168,
-0.49867430329322815,
0.3373863101005554... |
func (c *cursor) setOffset(o cursorOffset) {
c.cursorOffset = o
} | [
0.18795883655548096,
-0.61604905128479,
0.03421145677566528,
-0.4459388852119446,
-1.0480200052261353,
0.7679789662361145,
0.8697513341903687,
0.28931722044944763,
0.3247295320034027,
0.23589010536670685,
-1.0419169664382935,
0.4931439757347107,
0.3253844380378723,
-0.3462165296077728,
0... |
func (p *cursorOffsetPreferred) move() {
c := p.from
defer c.allowUsable()
// Before we migrate the cursor, we check if the destination source
// exists. If not, we do not migrate and instead force a metadata.
c.source.cl.sinksAndSourcesMu.Lock()
sns, exists := c.source.cl.sinksAndSources[p.preferredReplica]
c... | [
-0.4355992078781128,
0.8992447853088379,
0.5238685607910156,
-0.19026805460453033,
-0.014014536514878273,
-0.17179177701473236,
0.14224953949451447,
0.000038618469261564314,
0.715359091758728,
0.15711690485477448,
-0.4456028640270233,
1.0119678974151611,
0.3176960051059723,
0.0041228858754... |
func (s *source) takeBuffered() Fetch {
return s.takeBufferedFn(func(usedOffsets usedOffsets) {
usedOffsets.finishUsingAllWith(func(o *cursorOffsetNext) {
o.from.setOffset(o.cursorOffset)
})
})
} | [
1.1738495826721191,
-0.3412654399871826,
0.4996583163738251,
-0.6504982113838196,
-0.6865895986557007,
-0.31859537959098816,
1.082637071609497,
-0.43327856063842773,
0.7049916982650757,
-0.9358000159263611,
-1.0589255094528198,
0.6626750826835632,
0.489386647939682,
0.5396464467048645,
0... |
func (s *source) takeNBuffered(n int) (Fetch, int, bool) {
var r Fetch
var taken int
b := &s.buffered
bf := &b.fetch
for len(bf.Topics) > 0 && n > 0 {
t := &bf.Topics[0]
r.Topics = append(r.Topics, *t)
rt := &r.Topics[len(r.Topics)-1]
rt.Partitions = nil
tCursors := b.usedOffsets[t.Topic]
for len(t... | [
0.3752218186855316,
-0.5503050088882446,
0.8079001903533936,
-1.1440060138702393,
-0.07339050620794296,
-0.3319847881793976,
0.9742074012756348,
-0.5444800853729248,
-0.09610170871019363,
0.0916241705417633,
-0.8521748185157776,
0.011264453642070293,
-0.6082660555839539,
0.5974875688552856... |
func (s *source) createReq() *fetchRequest {
req := &fetchRequest{
maxWait: s.cl.cfg.maxWait,
minBytes: s.cl.cfg.minBytes,
maxBytes: s.cl.cfg.maxBytes,
maxPartBytes: s.cl.cfg.maxPartBytes,
rack: s.cl.cfg.rack,
isolationLevel: s.cl.cfg.isolationLevel,
// We copy a view of t... | [
-0.23510180413722992,
-0.09192207455635071,
0.5888359546661377,
-0.08819060027599335,
-0.22176919877529144,
-0.5893738865852356,
0.015296771191060543,
0.30719539523124695,
0.29034292697906494,
-0.47684401273727417,
-0.18956546485424042,
0.46366557478904724,
0.04620260372757912,
0.040524300... |
func (s *source) fetch(consumerSession *consumerSession, doneFetch chan<- struct{}) (fetched bool) {
req := s.createReq()
// For all returns, if we do not buffer our fetch, then we want to
// ensure our used offsets are usable again.
var alreadySentToDoneFetch bool
var buffered bool
defer func() {
if !buffered... | [
0.2419242262840271,
-0.15456156432628632,
0.8512924313545227,
-0.09680107235908508,
-0.11614730954170227,
-0.6521557569503784,
-0.4216809868812561,
-0.5602517127990723,
0.047482676804065704,
0.05523650720715523,
-0.18655534088611603,
0.562354326248169,
0.10055601596832275,
-0.0396991148591... |
func (s *source) handleReqResp(req *fetchRequest, resp *kmsg.FetchResponse) (Fetch, listOrEpochLoads, cursorPreferreds, bool) {
var (
f = Fetch{
Topics: make([]FetchTopic, 0, len(resp.Topics)),
}
reloadOffsets listOrEpochLoads
preferreds []cursorOffsetPreferred
updateMeta bool
)
for _, rt := range... | [
0.10907795280218124,
-0.6268347501754761,
0.713071882724762,
-0.13891562819480896,
-0.6265478730201721,
-0.3152136206626892,
-0.2127600759267807,
-0.18889126181602478,
0.15641812980175018,
0.7952725887298584,
-0.033506326377391815,
-0.7227420806884766,
-0.0027534710243344307,
0.08787974715... |
func (o *cursorOffsetNext) processRespPartition(version int16, rp *kmsg.FetchResponseTopicPartition, decompressor *decompressor) FetchPartition {
fp := FetchPartition{
Partition: rp.Partition,
Err: kerr.ErrorForCode(rp.ErrorCode),
HighWatermark: rp.HighWatermark,
LastStableOffset: rp.Las... | [
1.0424338579177856,
-1.0602128505706787,
0.9212620258331299,
-0.5721635818481445,
-0.9498531222343445,
0.26285529136657715,
0.054668959230184555,
-0.5022242069244385,
0.4437256157398224,
-0.3171931505203247,
0.6139001846313477,
-0.3491848409175873,
-0.4600028395652771,
-0.23037566244602203... |
func readRawRecords(n int, in []byte) []kmsg.Record {
rs := make([]kmsg.Record, n)
for i := 0; i < n; i++ {
length, used := kbin.Varint(in)
total := used + int(length)
if used == 0 || length < 0 || len(in) < total {
return rs[:i]
}
if err := (&rs[i]).ReadFrom(in[:total]); err != nil {
return rs[:i]
... | [
-0.9422904253005981,
0.2452515959739685,
0.8557125926017761,
-0.8622944355010986,
-0.6287192702293396,
-0.5039976239204407,
-0.22340188920497894,
-0.42863893508911133,
-0.009402655996382236,
0.34228402376174927,
0.0014902729308232665,
-0.1767359972000122,
-0.8225851058959961,
-0.1872954368... |
func (o *cursorOffsetNext) processV1OuterMessage(
fp *FetchPartition,
message *kmsg.MessageV1,
decompressor *decompressor,
) {
compression := byte(message.Attributes & 0x0003)
if compression == 0 {
o.processV1Message(fp, message)
return
}
rawInner, err := decompressor.decompress(message.Value, compression)
... | [
0.11410751938819885,
-0.39185476303100586,
0.7997426390647888,
-0.7445757985115051,
-0.7905624508857727,
-0.35308924317359924,
0.08830022066831589,
-0.3272222876548767,
-0.2814119756221771,
0.3213407099246979,
0.6151577830314636,
0.5484438538551331,
-0.8737762570381165,
0.272020548582077,
... |
func (o *cursorOffsetNext) processV0OuterMessage(
fp *FetchPartition,
message *kmsg.MessageV0,
decompressor *decompressor,
) {
compression := byte(message.Attributes & 0x0003)
if compression == 0 {
o.processV0Message(fp, message)
return
}
rawInner, err := decompressor.decompress(message.Value, compression)
... | [
0.24984940886497498,
-0.41258224844932556,
0.8463925719261169,
-0.9302430748939514,
-0.38465189933776855,
-0.24133610725402832,
0.06130731850862503,
0.2710057497024536,
-0.2886626720428467,
-0.008820198476314545,
0.39440953731536865,
0.36831164360046387,
-0.7917078137397766,
0.732912540435... |
func (o *cursorOffsetNext) maybeKeepRecord(fp *FetchPartition, record *Record, abort bool) {
if record.Offset < o.offset {
// We asked for offset 5, but that was in the middle of a
// batch; we got offsets 0 thru 4 that we need to skip.
return
}
// We only keep control records if specifically requested.
if r... | [
0.7343494296073914,
-0.29567044973373413,
0.8452185392379761,
-0.3407354950904846,
-0.552944540977478,
0.5325177311897278,
-0.35663172602653503,
-0.5539589524269104,
0.21866025030612946,
-0.28073567152023315,
0.43771615624427795,
-0.13659889996051788,
-0.16265684366226196,
0.20478980243206... |
func timeFromMillis(millis int64) time.Time {
return time.Unix(0, millis*1e6)
} | [
1.1025470495224,
0.1086743026971817,
0.05498119443655014,
0.26108822226524353,
-1.3807631731033325,
-0.24320685863494873,
-0.9351387023925781,
-0.40381401777267456,
0.8208262920379639,
0.3505133390426636,
-0.47548335790634155,
-1.0791962146759033,
-0.18674218654632568,
0.5724782943725586,
... |
func recordToRecord(
topic string,
partition int32,
batch *kmsg.RecordBatch,
record *kmsg.Record,
) *Record {
h := make([]RecordHeader, 0, len(record.Headers))
for _, kv := range record.Headers {
h = append(h, RecordHeader{
Key: kv.Key,
Value: kv.Value,
})
}
return &Record{
Key: record.... | [
0.8306214213371277,
-0.6854217648506165,
0.5804480314254761,
-0.5729939341545105,
-0.45157209038734436,
0.03463621810078621,
-1.312307596206665,
0.6516239643096924,
-0.8995687961578369,
0.2706548571586609,
0.29425638914108276,
0.5458833575248718,
-0.13751646876335144,
-0.7144794464111328,
... |
func (s *fetchSession) reset() {
if s.killed {
return
}
s.epoch = 0
s.used = nil
} | [
-0.14472052454948425,
-0.01848134770989418,
0.298077791929245,
0.13925489783287048,
0.20954206585884094,
-0.30326706171035767,
-0.2333419919013977,
-1.203835129737854,
0.07681600749492645,
0.4326029121875763,
-0.5097692012786865,
1.2649056911468506,
0.38113918900489807,
-0.4300627112388611... |
func (s *fetchSession) bumpEpoch(id int32) {
if s.killed {
return
}
if id != s.id {
s.epoch = 0 // new session: reset to 0 for the increment below
}
s.epoch++
if s.epoch < 0 {
s.epoch = 1 // we wrapped: reset back to 1 to continue this session
}
s.id = id
} | [
-0.4384585916996002,
-0.2795044779777527,
0.705829918384552,
0.14477549493312836,
-0.3201557993888855,
0.5619489550590515,
0.018656127154827118,
-0.7573390007019043,
1.0776172876358032,
0.17080974578857422,
-0.7174162268638611,
0.6390473246574402,
0.6742042899131775,
0.038503170013427734,
... |
func (b *Base) Home(w http.ResponseWriter, r *http.Request) {
b.log.Printf("%s %s -> %s", r.Method, r.URL.Path, r.RemoteAddr)
pv := render.PageVars{
Title: "GoViolin",
}
if err := render.Render(w, "home.html", pv); err != nil {
b.log.Printf("%s %s -> %s : ERROR : %v", r.Method, r.URL.Path, r.RemoteAddr, err)
... | [
0.18424934148788452,
-0.27704423666000366,
0.6119158267974854,
0.3318478465080261,
0.06343534588813782,
0.8486228585243225,
-0.04895222932100296,
0.18793565034866333,
-0.08689111471176147,
0.5801756381988525,
0.6244831681251526,
0.7495255470275879,
-0.9029258489608765,
-0.00659476127475500... |
func (b *Base) Scale(w http.ResponseWriter, r *http.Request) {
b.log.Printf("%s %s -> %s", r.Method, r.URL.Path, r.RemoteAddr)
sOptions, pOptions, kOptions, oOptions := render.SetDefaultScaleOptions()
pv := render.PageVars{
Title: "Practice Scales and Arpeggios", // default scale initially displayed is A... | [
-0.4893849790096283,
-0.24410788714885712,
1.00276780128479,
0.1903746873140335,
0.5464624762535095,
0.660226047039032,
0.21753886342048645,
-0.03531791642308235,
-0.17548003792762756,
0.5505030155181885,
0.8166620135307312,
-0.4675436019897461,
-0.536918044090271,
0.5327758193016052,
0.... |
func (b *Base) ScaleShow(w http.ResponseWriter, r *http.Request) {
b.log.Printf("%s %s -> %s", r.Method, r.URL.Path, r.RemoteAddr)
//populate the default ScaleOptions, PitchOptions, KeyOptions, OctaveOptions for scales and arpeggios
sOptions, pOptions, kOptions, oOptions := render.SetDefaultScaleOptions()
r.Parse... | [
-0.2885233759880066,
-0.38050687313079834,
0.9219855070114136,
0.17643900215625763,
-0.24202695488929749,
0.23100174963474274,
0.21372303366661072,
-0.06489228457212448,
-0.2663740813732147,
0.5283718705177307,
0.1532333791255951,
-0.2273828536272049,
-0.2510823607444763,
1.236874341964721... |
func (b *Base) Duet(w http.ResponseWriter, r *http.Request) {
b.log.Printf("%s %s -> %s", r.Method, r.URL.Path, r.RemoteAddr)
dOptions := []render.ScaleOptions{
render.ScaleOptions{"Duet", "G Major", false, true, "G Major"},
render.ScaleOptions{"Duet", "D Major", false, false, "D Major"},
render.ScaleOptions{"... | [
-0.6434149146080017,
-0.4187809228897095,
0.8394790887832642,
-0.6446702480316162,
0.5193120837211609,
1.138091802597046,
0.8754701614379883,
-0.14188072085380554,
-0.2404775172472,
0.4239177405834198,
0.5246158242225647,
0.052372001111507416,
0.1485660970211029,
0.38770708441734314,
0.3... |
func (b *Base) DuetShow(w http.ResponseWriter, r *http.Request) {
b.log.Printf("%s %s -> %s", r.Method, r.URL.Path, r.RemoteAddr)
// define default duet options
dOptions := []render.ScaleOptions{
render.ScaleOptions{"Duet", "G Major", false, true, "G Major"},
render.ScaleOptions{"Duet", "D Major", false, false,... | [
-0.6308649182319641,
-0.4418680965900421,
0.9338884949684143,
-0.8319920301437378,
-0.2630949914455414,
0.25113219022750854,
0.6493387222290039,
0.17862772941589355,
-0.1980133354663849,
0.3682807683944702,
0.08437233418226242,
-0.35328105092048645,
0.7085614800453186,
0.9588634967803955,
... |
func NewChargeAddonInvoiceParams() *ChargeAddonInvoiceParams {
var ()
return &ChargeAddonInvoiceParams{
timeout: cr.DefaultTimeout,
}
} | [
0.08125197887420654,
-0.9944979548454285,
0.08531344681978226,
0.44802823662757874,
-0.3838539719581604,
0.5119856595993042,
-0.7130460739135742,
0.5561206340789795,
-0.5789915323257446,
0.13286976516246796,
-0.20709216594696045,
0.24294006824493408,
-1.3187073469161987,
0.4909929037094116... |
func NewChargeAddonInvoiceParamsWithTimeout(timeout time.Duration) *ChargeAddonInvoiceParams {
var ()
return &ChargeAddonInvoiceParams{
timeout: timeout,
}
} | [
0.6999616026878357,
-0.9206548929214478,
0.29881441593170166,
0.43349385261535645,
-0.06424107402563095,
0.994530975818634,
-1.4340851306915283,
0.5560524463653564,
-0.4900388717651367,
1.1090168952941895,
0.21108485758304596,
0.3972042202949524,
-0.9415293335914612,
0.528077244758606,
-... |
func NewChargeAddonInvoiceParamsWithContext(ctx context.Context) *ChargeAddonInvoiceParams {
var ()
return &ChargeAddonInvoiceParams{
Context: ctx,
}
} | [
0.29273098707199097,
-0.7511419653892517,
0.5594009160995483,
0.03425868973135948,
-0.08515877276659012,
1.0953490734100342,
-1.2276345491409302,
-0.15123125910758972,
0.06771452724933624,
0.6329296231269836,
-0.07867809385061264,
0.20978344976902008,
-1.1572237014770508,
-0.01979128085076... |
func NewChargeAddonInvoiceParamsWithHTTPClient(client *http.Client) *ChargeAddonInvoiceParams {
var ()
return &ChargeAddonInvoiceParams{
HTTPClient: client,
}
} | [
0.18324865400791168,
-1.042427897453308,
0.34285756945610046,
0.06844278424978256,
0.10058999806642532,
0.8071051239967346,
-0.4194942116737366,
0.24259671568870544,
-0.5676361322402954,
0.1528877317905426,
-0.13461598753929138,
-0.11642935872077942,
-1.0055125951766968,
-0.062273614108562... |
func (o *ChargeAddonInvoiceParams) WithTimeout(timeout time.Duration) *ChargeAddonInvoiceParams {
o.SetTimeout(timeout)
return o
} | [
0.5213384032249451,
-0.5359658598899841,
0.18408308923244476,
0.10136362165212631,
-0.20743441581726074,
0.7159034013748169,
-0.8104268312454224,
0.23951004445552826,
0.030243579298257828,
0.5391110181808472,
0.42584022879600525,
0.6934017539024353,
-0.18439938127994537,
0.666948139667511,... |
func (o *ChargeAddonInvoiceParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
} | [
0.3650248348712921,
-0.6492205858230591,
0.08687308430671692,
0.014054326340556145,
0.18196222186088562,
1.1147727966308594,
-0.7071501016616821,
0.4046613276004791,
-0.5484367609024048,
0.541523814201355,
0.34021905064582825,
1.0320415496826172,
-0.8195607662200928,
0.9528486132621765,
... |
func (o *ChargeAddonInvoiceParams) WithContext(ctx context.Context) *ChargeAddonInvoiceParams {
o.SetContext(ctx)
return o
} | [
-0.24970585107803345,
-0.4827267825603485,
0.36899301409721375,
-0.02058297209441662,
-0.32953697443008423,
0.5281488299369812,
-0.9337708950042725,
-0.4948214292526245,
0.4569566249847412,
-0.04309454932808876,
0.2912047803401947,
0.6454861164093018,
-0.7210943102836609,
0.142704322934150... |
func (o *ChargeAddonInvoiceParams) SetContext(ctx context.Context) {
o.Context = ctx
} | [
-0.2970869541168213,
-0.38381272554397583,
0.10878551751375198,
0.05922074243426323,
0.2966977655887604,
0.7940195202827454,
-0.6006869673728943,
-0.34484100341796875,
0.37940531969070435,
-0.06670144200325012,
0.012928172945976257,
1.0182467699050903,
-1.1080877780914307,
0.56249165534973... |
func (o *ChargeAddonInvoiceParams) WithHTTPClient(client *http.Client) *ChargeAddonInvoiceParams {
o.SetHTTPClient(client)
return o
} | [
0.03610283136367798,
-1.344362497329712,
0.36060142517089844,
-0.38878241181373596,
-0.18478697538375854,
0.5360373258590698,
-0.10647493600845337,
-0.2808043658733368,
-0.36046910285949707,
-0.49107110500335693,
0.43715259432792664,
0.2542129456996918,
-0.309014230966568,
-0.1986248344182... |
func (o *ChargeAddonInvoiceParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
} | [
0.5706325173377991,
-1.1786766052246094,
0.18999174237251282,
-0.7885187268257141,
-0.1564202606678009,
0.355446457862854,
0.05057396739721298,
-0.34468623995780945,
-0.9200996160507202,
-0.3311164975166321,
-0.03772677481174469,
0.9432370066642761,
-0.8789023756980896,
-0.0613278932869434... |
func (o *ChargeAddonInvoiceParams) WithInvoiceChargeAddonRequest(invoiceChargeAddonRequest *models.InvoiceChargeAddonRequest) *ChargeAddonInvoiceParams {
o.SetInvoiceChargeAddonRequest(invoiceChargeAddonRequest)
return o
} | [
-1.153364658355713,
-0.9540970325469971,
0.7545039653778076,
-0.17946884036064148,
-1.32763671875,
0.3567708730697632,
-1.0870840549468994,
-0.11871527135372162,
0.38235509395599365,
-0.5575835108757019,
1.1398054361343384,
0.8295743465423584,
-1.0699403285980225,
0.3608298897743225,
0.2... |
func (o *ChargeAddonInvoiceParams) SetInvoiceChargeAddonRequest(invoiceChargeAddonRequest *models.InvoiceChargeAddonRequest) {
o.InvoiceChargeAddonRequest = invoiceChargeAddonRequest
} | [
-1.3015316724777222,
-1.2725366353988647,
0.6061356067657471,
0.02757265605032444,
-0.7123202681541443,
0.31069260835647583,
-0.940339207649231,
-0.002993333386257291,
0.2633390426635742,
-0.33636099100112915,
0.5835298895835876,
0.640457808971405,
-0.7730891704559326,
0.2710704207420349,
... |
func (o *ChargeAddonInvoiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.InvoiceChargeAddonRequest != nil {
if err := r.SetBodyParam(o.InvoiceChargeAddonRequest); err != nil {
return err
}
}
... | [
-0.9138889908790588,
-0.6922601461410522,
0.7359715700149536,
-0.30718207359313965,
0.9663934707641602,
0.04178814962506294,
0.21182407438755035,
0.28910696506500244,
-0.3631759583950043,
0.06906936317682266,
0.39638006687164307,
0.40354910492897034,
-1.1267539262771606,
0.3849104344844818... |
func integerBreak(n int) int {
// n is not less than 2
var product = make([]int, n+1)
product[2] = 1
for i := 3; i < len(product); i++ {
var max int
for j := 1; j <= i/2; j++ {
var a, b = j, i - j
if j > 2 && product[j] > j {
a = product[j]
}
if i-j > 2 && product[i-j] > i-j {
b = product[i-... | [
-0.9611587524414062,
0.9317747354507446,
0.9773840308189392,
1.2130722999572754,
-0.6278302073478699,
0.3386366665363312,
0.39526426792144775,
-1.0227510929107666,
0.29182565212249756,
0.4905776381492615,
-0.8453071117401123,
-0.10695460438728333,
-0.32803407311439514,
0.07077345997095108,... |
func New(path string) *Flock {
return &Flock{path: path}
} | [
0.17409327626228333,
-1.072230339050293,
-0.0409993939101696,
-0.013557802885770798,
-1.214177131652832,
0.22196263074874878,
0.9680547118186951,
-1.2986857891082764,
-0.22849193215370178,
-1.1767510175704956,
-0.6946219205856323,
1.695029854774475,
0.9153667092323303,
0.2763223350048065,
... |
func NewFlock(path string) *Flock {
return New(path)
} | [
-0.194889098405838,
-0.08832775801420212,
0.048148829489946365,
0.6036187410354614,
-0.8806976675987244,
-0.09975612163543701,
1.1744520664215088,
-1.2433947324752808,
0.11097365617752075,
-1.4489752054214478,
-0.8783396482467651,
1.4414488077163696,
-0.17374669015407562,
0.303137034177780... |
func (f *Flock) Close() error {
return f.Unlock()
} | [
0.12659937143325806,
0.04059029743075371,
0.34183523058891296,
0.5027726292610168,
-0.7500103712081909,
0.45807692408561707,
1.0155586004257202,
-1.3589932918548584,
-0.5538586378097534,
-0.930245041847229,
0.13147972524166107,
0.3829079568386078,
-0.7097547054290771,
0.2394997477531433,
... |
func (f *Flock) Path() string {
return f.path
} | [
0.4744032621383667,
-0.6997387409210205,
0.13308575749397278,
0.23550885915756226,
-0.466180682182312,
1.4960212707519531,
1.2159632444381714,
-1.8230559825897217,
-0.48439788818359375,
-0.5038495659828186,
0.023829229176044464,
0.3436034023761749,
-0.2861510217189789,
0.5330460667610168,
... |
func (f *Flock) Locked() bool {
f.m.RLock()
defer f.m.RUnlock()
return f.l
} | [
-0.6220859289169312,
-0.0668938010931015,
0.45942986011505127,
-0.019836710765957832,
0.28487804532051086,
0.029903491958975792,
1.1182725429534912,
-0.7174530625343323,
0.06180912256240845,
-1.2187541723251343,
-0.8812452554702759,
-0.1762939840555191,
-0.45099183917045593,
0.133715793490... |
func (f *Flock) RLocked() bool {
f.m.RLock()
defer f.m.RUnlock()
return f.r
} | [
-0.48421359062194824,
0.23312915861606598,
0.5891897678375244,
0.5407891273498535,
0.2739507853984833,
-0.10251016169786453,
0.7924627065658569,
-0.6920020580291748,
-0.320516973733902,
-0.5594739317893982,
-0.6568750143051147,
0.36560162901878357,
-0.9199452996253967,
0.2948385179042816,
... |
func (f *Flock) TryLockContext(ctx context.Context, retryDelay time.Duration) (bool, error) {
return tryCtx(ctx, f.TryLock, retryDelay)
} | [
-0.3343513309955597,
0.9181495308876038,
0.6272449493408203,
0.08521376550197601,
-0.19752724468708038,
0.11223017424345016,
-0.7267920970916748,
-1.2202844619750977,
0.42853108048439026,
-0.4752310514450073,
-0.9066596627235413,
0.29439258575439453,
-0.5501400828361511,
-0.202284306287765... |
func (f *Flock) TryRLockContext(ctx context.Context, retryDelay time.Duration) (bool, error) {
return tryCtx(ctx, f.TryRLock, retryDelay)
} | [
-0.07800263166427612,
0.7732670903205872,
0.6904273629188538,
-0.5061274766921997,
-0.0014253479894250631,
0.451783150434494,
-0.3538016676902771,
-0.8070606589317322,
0.7974464893341064,
-0.24276983737945557,
-1.0176365375518799,
0.11713958531618118,
-0.8003844618797302,
-0.29581207036972... |
func (f *Flock) ensureFhState() {
if !f.l && !f.r && f.fh != nil {
f.fh.Close()
f.fh = nil
}
} | [
1.0677409172058105,
-0.17883440852165222,
0.4617501199245453,
0.34296929836273193,
0.0993921160697937,
0.16346000134944916,
0.34841862320899963,
-0.2985835671424866,
0.447370707988739,
-0.7923153638839722,
-0.07070589810609818,
-0.47192254662513733,
0.07998538762331009,
1.6296954154968262,... |
func (s *Worker) BeforeRun() error {
return nil
} | [
0.6095556616783142,
-0.22738070785999298,
0.29336118698120117,
-0.048447441309690475,
-0.10444477945566177,
0.4928295612335205,
0.31348952651023865,
0.17838546633720398,
0.15803921222686768,
-0.5614356994628906,
-0.7139320373535156,
-0.3976028561592102,
-1.1212199926376343,
0.8795588016510... |
func (s *Worker) AfterRun() error {
return nil
} | [
0.4001615047454834,
-1.160075068473816,
0.20368389785289764,
0.047259535640478134,
-0.8512023091316223,
0.7666128277778625,
0.8862976431846619,
0.540524959564209,
0.084901824593544,
-1.072800636291504,
-0.956185519695282,
-0.3963693678379059,
-0.9336993098258972,
0.23182177543640137,
0.4... |
func (s *Worker) Run(_ chan struct{}) error {
for notification := range s.queueNotification {
// run custom process function
_ = s.runFunc(notification)
}
return nil
} | [
-0.07342402637004852,
-0.6367371678352356,
0.45696765184402466,
-0.6685194373130798,
0.1525852233171463,
-0.23358340561389923,
0.5721249580383301,
0.1565885841846466,
-0.4324558675289154,
-0.3278135061264038,
-1.6444562673568726,
0.7323336601257324,
0.3687940239906311,
0.44650039076805115,... |
func (s *Worker) Usage() int {
return len(s.queueNotification)
} | [
-0.2679903507232666,
0.23478460311889648,
0.7183360457420349,
-0.6205058097839355,
-0.14664562046527863,
-0.7267708778381348,
0.750429630279541,
-0.07381527125835419,
-0.131187304854393,
-0.038274455815553665,
-0.9673420786857605,
-0.03231074661016464,
0.22677797079086304,
0.95522803068161... |
func (s *Worker) Queue(job queue.QueuedMessage) error {
select {
case s.queueNotification <- job:
return nil
default:
return errMaxCapacity
}
} | [
0.8899792432785034,
0.06221985071897507,
0.45640912652015686,
0.6255698204040527,
-0.07227534055709839,
-0.8914095163345337,
0.09500078856945038,
-0.35007795691490173,
-0.29789257049560547,
-0.5575171709060669,
-0.011671877466142178,
0.41720882058143616,
0.5829152464866638,
0.8592125773429... |
func WithQueueNum(num int) Option {
return func(w *Worker) {
w.queueNotification = make(chan queue.QueuedMessage, num)
}
} | [
0.018970057368278503,
-0.29783156514167786,
0.6596330404281616,
-0.34157460927963257,
0.20322300493717194,
-0.3011326789855957,
0.7454009056091309,
-0.29389116168022156,
0.5967170596122742,
-0.8007251620292664,
-1.0835257768630981,
0.16009008884429932,
0.9116805195808411,
0.473107576370239... |
func WithRunFunc(fn func(queue.QueuedMessage) error) Option {
return func(w *Worker) {
w.runFunc = fn
}
} | [
0.9851786494255066,
-0.3836681842803955,
0.5780764222145081,
-0.6184751391410828,
-0.09789754450321198,
-0.41139039397239685,
0.6625410318374634,
-0.24843302369117737,
-0.3274981379508972,
-0.6743364334106445,
-0.5007256269454956,
0.3794495463371277,
1.0773802995681763,
0.00378887937404215... |
func (e *ecsImpl) WaitForEip(eipID string, status ecs.EipStatus, backoff wait.Backoff) (*ecs.EipAddressSetType, error) {
var eipInfo *ecs.EipAddressSetType
var innerErr error
err := wait.ExponentialBackoff(backoff,
func() (done bool, err error) {
describeEipAddressesArgs := ecs.DescribeEipAddressesArgs{
All... | [
-0.2381986528635025,
0.02602263353765011,
0.685539722442627,
-1.3187307119369507,
-0.31305941939353943,
0.08010019361972809,
-0.3060063123703003,
-0.27283579111099243,
0.3919502794742584,
0.37862250208854675,
0.13667987287044525,
-0.895145833492279,
0.043339818716049194,
-0.533198952674865... |
func NewMockRDSAPI(ctrl *gomock.Controller) *MockRDSAPI {
mock := &MockRDSAPI{ctrl: ctrl}
mock.recorder = &MockRDSAPIMockRecorder{mock}
return mock
} | [
-0.24687238037586212,
0.20112574100494385,
0.13329823315143585,
0.04525193199515343,
0.07233443111181259,
-0.07163751870393753,
-0.22468774020671844,
0.06452000886201859,
0.2518210709095001,
0.09501110762357712,
-0.7683237791061401,
-0.03278999775648117,
-1.1259279251098633,
0.646223366260... |
func (m *MockRDSAPI) EXPECT() *MockRDSAPIMockRecorder {
return m.recorder
} | [
-0.20918843150138855,
0.2500864565372467,
0.26840704679489136,
-0.3187965750694275,
-0.13361778855323792,
-0.224960058927536,
-0.46874725818634033,
0.2596549987792969,
0.5199615955352783,
-0.35346081852912903,
0.5375481843948364,
0.6637689471244812,
-1.2432427406311035,
0.6745530962944031,... |
func (m *MockRDSAPI) AddRoleToDBCluster(arg0 *rds.AddRoleToDBClusterInput) (*rds.AddRoleToDBClusterOutput, error) {
ret := m.ctrl.Call(m, "AddRoleToDBCluster", arg0)
ret0, _ := ret[0].(*rds.AddRoleToDBClusterOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
-0.18800918757915497,
0.0407075397670269,
0.4853072464466095,
-0.2423221319913864,
1.6102845668792725,
0.09469517320394516,
0.6966916918754578,
-0.7904528975486755,
-0.9566131234169006,
-1.2898690700531006,
-0.8403998017311096,
-0.5736353993415833,
-1.229283094406128,
0.7765827775001526,
... |
func (mr *MockRDSAPIMockRecorder) AddRoleToDBCluster(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRoleToDBCluster", reflect.TypeOf((*MockRDSAPI)(nil).AddRoleToDBCluster), arg0)
} | [
0.19993706047534943,
0.7340218424797058,
0.25026488304138184,
-0.694970428943634,
0.9068382382392883,
0.24146991968154907,
-0.5653296113014221,
-0.9287220239639282,
-0.23540352284908295,
-0.5592474341392517,
-0.3067246973514557,
0.5377901792526245,
-1.082642674446106,
0.9720696210861206,
... |
func (m *MockRDSAPI) AddRoleToDBClusterRequest(arg0 *rds.AddRoleToDBClusterInput) (*request.Request, *rds.AddRoleToDBClusterOutput) {
ret := m.ctrl.Call(m, "AddRoleToDBClusterRequest", arg0)
ret0, _ := ret[0].(*request.Request)
ret1, _ := ret[1].(*rds.AddRoleToDBClusterOutput)
return ret0, ret1
} | [
-1.2246522903442383,
-0.3334319293498993,
0.40161508321762085,
-0.027853948995471,
1.3948662281036377,
0.06301508098840714,
0.39925235509872437,
-0.5810109972953796,
-0.9568948149681091,
-1.0030885934829712,
-0.21678583323955536,
-0.58233642578125,
-0.8392731547355652,
0.7687010765075684,
... |
func (mr *MockRDSAPIMockRecorder) AddRoleToDBClusterRequest(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRoleToDBClusterRequest", reflect.TypeOf((*MockRDSAPI)(nil).AddRoleToDBClusterRequest), arg0)
} | [
-1.3077127933502197,
0.36527058482170105,
0.3305814564228058,
-0.680121660232544,
0.849018931388855,
0.12441003322601318,
-0.5512130856513977,
-0.5535784959793091,
-0.4135993719100952,
-0.13805557787418365,
0.1192934587597847,
0.23869673907756805,
-0.870459794998169,
0.8669350147247314,
... |
func (m *MockRDSAPI) AddRoleToDBClusterWithContext(arg0 aws.Context, arg1 *rds.AddRoleToDBClusterInput, arg2 ...request.Option) (*rds.AddRoleToDBClusterOutput, error) {
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "AddRoleToDBClusterWithContext... | [
-0.1795935332775116,
-0.21166269481182098,
0.5816909074783325,
-0.0950692743062973,
0.8303425312042236,
0.34823736548423767,
0.16081754863262177,
-1.2737176418304443,
-0.4562448561191559,
-1.1285966634750366,
-0.8601155281066895,
-0.1861833930015564,
-1.531327486038208,
0.3612266480922699,... |
func (mr *MockRDSAPIMockRecorder) AddRoleToDBClusterWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddRoleToDBClusterWithContext", reflect.TypeOf((*MockRDSAPI)(nil).AddRoleToDBClusterW... | [
0.28223493695259094,
0.25446340441703796,
0.6520666480064392,
-0.5674360394477844,
0.3921423852443695,
0.15989123284816742,
-1.0255433320999146,
-1.3675522804260254,
-0.12147469818592072,
-0.20426034927368164,
-0.45135578513145447,
0.44500043988227844,
-1.2931239604949951,
0.49415984749794... |
func (m *MockRDSAPI) AddSourceIdentifierToSubscription(arg0 *rds.AddSourceIdentifierToSubscriptionInput) (*rds.AddSourceIdentifierToSubscriptionOutput, error) {
ret := m.ctrl.Call(m, "AddSourceIdentifierToSubscription", arg0)
ret0, _ := ret[0].(*rds.AddSourceIdentifierToSubscriptionOutput)
ret1, _ := ret[1].(error)
... | [
-0.4332973062992096,
-0.13759852945804596,
-0.08694051951169968,
0.687432050704956,
0.5393975973129272,
0.06699935346841812,
0.6589756011962891,
-0.2975550889968872,
0.14139187335968018,
-0.666731595993042,
-1.1722418069839478,
-0.1899588406085968,
-0.33092001080513,
1.0131068229675293,
... |
func (mr *MockRDSAPIMockRecorder) AddSourceIdentifierToSubscription(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSourceIdentifierToSubscription", reflect.TypeOf((*MockRDSAPI)(nil).AddSourceIdentifierToSubscription), arg0)
} | [
-0.04436715692281723,
0.30450770258903503,
0.08914884924888611,
0.5581406950950623,
-0.29387760162353516,
0.17056050896644592,
-0.3454659879207611,
-0.12812374532222748,
1.0084900856018066,
0.10156393051147461,
-0.7416454553604126,
0.8185840249061584,
-0.0014566312311217189,
0.987458407878... |
func (m *MockRDSAPI) AddSourceIdentifierToSubscriptionRequest(arg0 *rds.AddSourceIdentifierToSubscriptionInput) (*request.Request, *rds.AddSourceIdentifierToSubscriptionOutput) {
ret := m.ctrl.Call(m, "AddSourceIdentifierToSubscriptionRequest", arg0)
ret0, _ := ret[0].(*request.Request)
ret1, _ := ret[1].(*rds.AddSo... | [
-0.7507883906364441,
0.07050895690917969,
-0.09547800570726395,
0.4887447655200958,
0.5125336647033691,
0.2558269202709198,
0.2632989287376404,
0.0761108472943306,
0.221659317612648,
-0.6840035915374756,
-0.42627662420272827,
-0.1165219396352768,
0.3272499144077301,
0.8999243974685669,
0... |
func (mr *MockRDSAPIMockRecorder) AddSourceIdentifierToSubscriptionRequest(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSourceIdentifierToSubscriptionRequest", reflect.TypeOf((*MockRDSAPI)(nil).AddSourceIdentifierToSubscriptionRequest), arg0)
} | [
-0.46848684549331665,
0.5916250348091125,
0.1422794908285141,
0.6086589694023132,
-0.15788428485393524,
0.4793630540370941,
-0.5857961177825928,
0.08615849167108536,
1.088401436805725,
0.09331627190113068,
-0.010925434529781342,
0.9196516871452332,
0.5382047295570374,
0.9206460118293762,
... |
func (m *MockRDSAPI) AddSourceIdentifierToSubscriptionWithContext(arg0 aws.Context, arg1 *rds.AddSourceIdentifierToSubscriptionInput, arg2 ...request.Option) (*rds.AddSourceIdentifierToSubscriptionOutput, error) {
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := ... | [
-0.2351824790239334,
-0.07882684469223022,
0.22220642864704132,
0.4110155403614044,
-0.16788862645626068,
0.12643034756183624,
0.20845063030719757,
-0.6699745059013367,
0.23907732963562012,
-0.5927842855453491,
-1.0347579717636108,
0.052823178470134735,
-0.7916601300239563,
0.4265373349189... |
func (mr *MockRDSAPIMockRecorder) AddSourceIdentifierToSubscriptionWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
varargs := append([]interface{}{arg0, arg1}, arg2...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddSourceIdentifierToSubscriptionWithContext", reflect.TypeOf((*MockRD... | [
0.3047471344470978,
0.34828510880470276,
0.37828418612480164,
0.20252829790115356,
-0.6628718376159668,
0.061287060379981995,
-0.8442402482032776,
-0.9119653701782227,
1.0029382705688477,
0.24329368770122528,
-0.7513130307197571,
0.7965434193611145,
-0.49356716871261597,
0.524979829788208,... |
func (m *MockRDSAPI) AddTagsToResource(arg0 *rds.AddTagsToResourceInput) (*rds.AddTagsToResourceOutput, error) {
ret := m.ctrl.Call(m, "AddTagsToResource", arg0)
ret0, _ := ret[0].(*rds.AddTagsToResourceOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
-0.16600149869918823,
0.159990131855011,
-0.17628787457942963,
0.23183132708072662,
0.3625013828277588,
0.1043056845664978,
0.47650766372680664,
-0.7675458788871765,
-0.8800881505012512,
-0.7466987371444702,
-0.27660712599754333,
-1.3889983892440796,
-0.8223333954811096,
1.3687527179718018... |
func (mr *MockRDSAPIMockRecorder) AddTagsToResource(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTagsToResource", reflect.TypeOf((*MockRDSAPI)(nil).AddTagsToResource), arg0)
} | [
-0.09846732020378113,
0.7741474509239197,
-0.17309308052062988,
0.14468254148960114,
-0.4937143623828888,
-0.025448203086853027,
-0.5513686537742615,
-0.8316607475280762,
0.47071903944015503,
-0.40225517749786377,
0.3329157829284668,
-0.17589926719665527,
-0.28655150532722473,
1.3319464921... |
func (m *MockRDSAPI) AddTagsToResourceRequest(arg0 *rds.AddTagsToResourceInput) (*request.Request, *rds.AddTagsToResourceOutput) {
ret := m.ctrl.Call(m, "AddTagsToResourceRequest", arg0)
ret0, _ := ret[0].(*request.Request)
ret1, _ := ret[1].(*rds.AddTagsToResourceOutput)
return ret0, ret1
} | [
-0.5453435182571411,
-0.2655498683452606,
-0.12360981851816177,
-0.09518981724977493,
0.8800249099731445,
0.43319085240364075,
0.4709762930870056,
-0.6977525949478149,
-0.8008613586425781,
-1.068585753440857,
-0.21437831223011017,
-1.1227879524230957,
-0.4048784375190735,
1.411978006362915... |
func (mr *MockRDSAPIMockRecorder) AddTagsToResourceRequest(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTagsToResourceRequest", reflect.TypeOf((*MockRDSAPI)(nil).AddTagsToResourceRequest), arg0)
} | [
-0.6947383880615234,
0.44732150435447693,
-0.04569675028324127,
-0.3678794205188751,
0.0989985316991806,
0.41137221455574036,
-0.33317694067955017,
-0.5520766973495483,
0.3232586085796356,
-0.362291157245636,
0.36005568504333496,
-0.14132902026176453,
-0.0914791002869606,
1.555920243263244... |
func (m *MockRDSAPI) AddTagsToResourceWithContext(arg0 aws.Context, arg1 *rds.AddTagsToResourceInput, arg2 ...request.Option) (*rds.AddTagsToResourceOutput, error) {
varargs := []interface{}{arg0, arg1}
for _, a := range arg2 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "AddTagsToResourceWithContext", v... | [
-0.023481613025069237,
0.03371962159872055,
0.2954750955104828,
0.08142991364002228,
0.28926777839660645,
0.4752281606197357,
-0.08670252561569214,
-1.4321767091751099,
-0.6600719094276428,
-0.8696578741073608,
-0.5310091972351074,
-0.8632140755653381,
-0.9138553738594055,
0.90697568655014... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.