text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (_Erc777 *Erc777TransactorSession) RevokeOperator(operator common.Address) (*types.Transaction, error) { return _Erc777.Contract.RevokeOperator(&_Erc777.TransactOpts, operator) }
[ -0.16390341520309448, 0.5586473345756531, 0.6798211336135864, -0.6267280578613281, -1.2768276929855347, -1.1541448831558228, 0.7488239407539368, 0.28904151916503906, 1.1485623121261597, 0.3823311924934387, -0.2855629026889801, -0.7900676727294922, 0.22955791652202606, -0.5944083333015442, ...
func (_Erc777 *Erc777Transactor) Send(opts *bind.TransactOpts, recipient common.Address, amount *big.Int, data []byte) (*types.Transaction, error) { return _Erc777.contract.Transact(opts, "send", recipient, amount, data) }
[ 0.18629120290279388, 0.4560950994491577, 0.26649731397628784, -0.3113551437854767, -0.4452715516090393, -0.17290592193603516, -0.0795016959309578, -0.749268114566803, 0.5030500292778015, 0.45255571603775024, -0.08832575380802155, 0.5071849226951599, 0.17944104969501495, -0.1598637402057647...
func (_Erc777 *Erc777Session) Send(recipient common.Address, amount *big.Int, data []byte) (*types.Transaction, error) { return _Erc777.Contract.Send(&_Erc777.TransactOpts, recipient, amount, data) }
[ 0.12641555070877075, 0.48617419600486755, 0.33690738677978516, -0.20776771008968353, -0.647698700428009, -0.5668423771858215, 0.06614256650209427, -0.9396865367889404, 0.43223243951797485, 0.5608353018760681, -0.16176743805408478, 0.2203039675951004, 0.06526921689510345, -0.213614150881767...
func (_Erc777 *Erc777TransactorSession) Send(recipient common.Address, amount *big.Int, data []byte) (*types.Transaction, error) { return _Erc777.Contract.Send(&_Erc777.TransactOpts, recipient, amount, data) }
[ 0.0442669615149498, 0.530226469039917, 0.18013906478881836, -0.3544522821903229, -0.4987640380859375, -0.5475743412971497, -0.014886150136590004, -0.9603295922279358, 0.42658331990242004, 0.6259708404541016, -0.22913089394569397, 0.15379218757152557, 0.09073011577129364, -0.269267290830612...
func (_Erc777 *Erc777Transactor) Transfer(opts *bind.TransactOpts, recipient common.Address, amount *big.Int) (*types.Transaction, error) { return _Erc777.contract.Transact(opts, "transfer", recipient, amount) }
[ -0.04411168023943901, 0.17735280096530914, 0.39760053157806396, -0.0669003501534462, -0.27574604749679565, 0.03904911130666733, 0.650776743888855, -0.280206561088562, 0.7745042443275452, 0.27823057770729065, 0.33972448110580444, 0.34993287920951843, 0.3866332769393921, -0.21288318932056427...
func (_Erc777 *Erc777Session) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error) { return _Erc777.Contract.Transfer(&_Erc777.TransactOpts, recipient, amount) }
[ -0.12321646511554718, 0.23238149285316467, 0.462303102016449, 0.027353692799806595, -0.4338522255420685, -0.2278684675693512, 0.7956840991973877, -0.6223252415657043, 0.6822174191474915, 0.597658634185791, 0.27172088623046875, 0.10013407468795776, 0.25237101316452026, -0.3531785011291504, ...
func (_Erc777 *Erc777TransactorSession) Transfer(recipient common.Address, amount *big.Int) (*types.Transaction, error) { return _Erc777.Contract.Transfer(&_Erc777.TransactOpts, recipient, amount) }
[ -0.16939982771873474, 0.32167527079582214, 0.42947080731391907, -0.12547701597213745, -0.337078332901001, -0.20861437916755676, 0.7625259757041931, -0.619416356086731, 0.7066934108734131, 0.6304155588150024, 0.2658166289329529, -0.013163086958229542, 0.3843397796154022, -0.4505966901779175...
func (_Erc777 *Erc777Transactor) TransferFrom(opts *bind.TransactOpts, holder common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) { return _Erc777.contract.Transact(opts, "transferFrom", holder, recipient, amount) }
[ 0.7691556811332703, 0.52269047498703, 0.34301984310150146, 0.28257614374160767, -0.5601242184638977, 0.19122982025146484, -0.0035338131710886955, 0.06651673465967178, 0.5260118842124939, 0.12662199139595032, 0.8554722666740417, 0.3422481119632721, 0.8406590819358826, -0.2940004765987396, ...
func (_Erc777 *Erc777Session) TransferFrom(holder common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) { return _Erc777.Contract.TransferFrom(&_Erc777.TransactOpts, holder, recipient, amount) }
[ 0.7858657240867615, 0.40069353580474854, 0.40932324528694153, 0.4627166986465454, -0.7604823112487793, -0.2559176981449127, 0.08184611797332764, -0.30287861824035645, 0.6197433471679688, 0.30742138624191284, 0.7640637755393982, 0.26977595686912537, 0.6588211059570312, -0.21049368381500244,...
func (_Erc777 *Erc777TransactorSession) TransferFrom(holder common.Address, recipient common.Address, amount *big.Int) (*types.Transaction, error) { return _Erc777.Contract.TransferFrom(&_Erc777.TransactOpts, holder, recipient, amount) }
[ 0.7187674641609192, 0.44862833619117737, 0.38740333914756775, 0.3958718180656433, -0.6497133374214172, -0.23514951765537262, 0.08465065807104111, -0.29006338119506836, 0.6289165019989014, 0.3087873160839081, 0.7451738119125366, 0.190914586186409, 0.8063426613807678, -0.3076842427253723, ...
func (it *Erc777ApprovalIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.49759429693222046, 0.09626054763793945, 0.3328849673271179, 0.1223735585808754, -1.3972554206848145, 1.1155897378921509, -0.4180457890033722, 0.21668322384357452, -0.30621808767318726, 0.3971058428287506, 1.639192819595337, 1.1427032947540283, -0.5964663028717041, 0.8395673632621765, 0...
func (_Erc777 *Erc777Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*Erc777ApprovalIterator, error) { var ownerRule []interface{} for _, ownerItem := range owner { ownerRule = append(ownerRule, ownerItem) } var spenderRule []interface{} for _, spenderItem := r...
[ -0.2785305976867676, -0.10962827503681183, 0.8867911100387573, 0.4990650713443756, -1.3433361053466797, 0.20517116785049438, 0.2893754541873932, 0.05396030470728874, 0.15235039591789246, 1.4657061100006104, 1.4547618627548218, 1.0844759941101074, -0.6994251608848572, -0.1317661851644516, ...
func (_Erc777 *Erc777Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Erc777Approval, owner []common.Address, spender []common.Address) (event.Subscription, error) { var ownerRule []interface{} for _, ownerItem := range owner { ownerRule = append(ownerRule, ownerItem) } var spenderRule []interface{} f...
[ 0.43535396456718445, -0.4171225428581238, 0.8908118009567261, 0.03949651122093201, -0.8388602137565613, -0.050350043922662735, 0.4339140057563782, -0.3464459180831909, -0.10672067105770111, 0.9397728443145752, 0.8939610719680786, 1.2586441040039062, -0.07575307041406631, -0.035481750965118...
func (_Erc777 *Erc777Filterer) ParseApproval(log types.Log) (*Erc777Approval, error) { event := new(Erc777Approval) if err := _Erc777.contract.UnpackLog(event, "Approval", log); err != nil { return nil, err } event.Raw = log return event, nil }
[ -0.11693477630615234, 0.5659083724021912, 0.855241596698761, -0.28586649894714355, -1.5674444437026978, -0.3734748959541321, 0.337505966424942, -0.45967406034469604, 0.703357458114624, 0.9975501298904419, 0.05954276770353317, 0.19926920533180237, 0.25877830386161804, -0.13159675896167755, ...
func (it *Erc777AuthorizedOperatorIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.19127872586250305, 0.6630021929740906, 0.3608836531639099, 0.07790212333202362, -1.1374117136001587, 0.6446607708930969, 0.4184734523296356, -0.33222684264183044, -0.39604514837265015, -0.25471341609954834, 0.7713258266448975, 0.6131802797317505, -0.6479707956314087, 0.3812229037284851, ...
func (_Erc777 *Erc777Filterer) FilterAuthorizedOperator(opts *bind.FilterOpts, operator []common.Address, tokenHolder []common.Address) (*Erc777AuthorizedOperatorIterator, error) { var operatorRule []interface{} for _, operatorItem := range operator { operatorRule = append(operatorRule, operatorItem) } var token...
[ -0.4544071555137634, 0.06240376457571983, 0.2953164577484131, -0.014306354336440563, -1.8296316862106323, -0.36642906069755554, 0.25852954387664795, -0.4407038390636444, 0.13129763305187225, 0.3716336786746979, 0.6231545209884644, 1.072261929512024, -0.4492989480495453, 0.30184948444366455...
func (_Erc777 *Erc777Filterer) WatchAuthorizedOperator(opts *bind.WatchOpts, sink chan<- *Erc777AuthorizedOperator, operator []common.Address, tokenHolder []common.Address) (event.Subscription, error) { var operatorRule []interface{} for _, operatorItem := range operator { operatorRule = append(operatorRule, opera...
[ 0.2958638370037079, -0.1931782066822052, 0.5747404098510742, -0.33632180094718933, -1.2137279510498047, -0.43730923533439636, 0.5837686061859131, -0.664566695690155, 0.054027099162340164, -0.26301732659339905, 0.00277228862978518, 1.158531904220581, 0.1339111328125, 0.2768174111843109, 0...
func (_Erc777 *Erc777Filterer) ParseAuthorizedOperator(log types.Log) (*Erc777AuthorizedOperator, error) { event := new(Erc777AuthorizedOperator) if err := _Erc777.contract.UnpackLog(event, "AuthorizedOperator", log); err != nil { return nil, err } event.Raw = log return event, nil }
[ 0.06254465132951736, 0.5367288589477539, 0.48296064138412476, -0.48374858498573303, -1.9497326612472534, -0.900950014591217, 0.8359206914901733, 0.04149676114320755, 1.1423850059509277, 0.11878831684589386, -0.2395298033952713, 0.2094969004392624, 0.39672502875328064, -0.22647301852703094,...
func (it *Erc777BurnedIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.6380828022956848, 0.1442386955022812, 0.3720107078552246, -0.06257527321577072, -0.7163915634155273, 0.37259024381637573, 0.2021334320306778, -0.4095723032951355, -0.7957991361618042, -0.37560325860977173, 0.3971737027168274, 0.9264189600944519, -0.9007703065872192, 0.9418328404426575, ...
func (_Erc777 *Erc777Filterer) FilterBurned(opts *bind.FilterOpts, operator []common.Address, from []common.Address) (*Erc777BurnedIterator, error) { var operatorRule []interface{} for _, operatorItem := range operator { operatorRule = append(operatorRule, operatorItem) } var fromRule []interface{} for _, fromI...
[ -0.018058767542243004, -0.17022496461868286, 0.8852740526199341, 0.4637894034385681, -1.0665034055709839, -0.04659368470311165, 0.4844110310077667, -0.1615639328956604, -0.0019228061428293586, 0.15249352157115936, 0.6510276198387146, 1.6507500410079956, -0.6701535582542419, 0.0968526899814...
func (_Erc777 *Erc777Filterer) WatchBurned(opts *bind.WatchOpts, sink chan<- *Erc777Burned, operator []common.Address, from []common.Address) (event.Subscription, error) { var operatorRule []interface{} for _, operatorItem := range operator { operatorRule = append(operatorRule, operatorItem) } var fromRule []int...
[ 0.8770387172698975, -0.38160231709480286, 0.8930747509002686, -0.06456806510686874, -0.38786888122558594, -0.33739790320396423, 0.8043818473815918, -0.38936203718185425, 0.05686661973595619, -0.37936797738075256, 0.1549956351518631, 1.4411201477050781, -0.058456361293792725, 0.257158279418...
func (_Erc777 *Erc777Filterer) ParseBurned(log types.Log) (*Erc777Burned, error) { event := new(Erc777Burned) if err := _Erc777.contract.UnpackLog(event, "Burned", log); err != nil { return nil, err } event.Raw = log return event, nil }
[ 0.2686788737773895, 0.4674932658672333, 0.7086857557296753, 0.005849783308804035, -0.9150221347808838, -0.4631827473640442, 0.9448354840278625, -0.7025604248046875, 1.0576024055480957, -0.621807873249054, -0.7260085344314575, 0.7215912938117981, -0.013997378759086132, 0.05900336429476738, ...
func (it *Erc777MintedIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.8424007296562195, -0.13958227634429932, 0.23953677713871002, -0.31126153469085693, -0.8204862475395203, 0.9320059418678284, -0.2354910969734192, -1.199363350868225, -0.5476065278053284, -0.2519195079803467, 0.6149155497550964, 0.5248423218727112, -0.8759709596633911, 0.7728448510169983, ...
func (_Erc777 *Erc777Filterer) FilterMinted(opts *bind.FilterOpts, operator []common.Address, to []common.Address) (*Erc777MintedIterator, error) { var operatorRule []interface{} for _, operatorItem := range operator { operatorRule = append(operatorRule, operatorItem) } var toRule []interface{} for _, toItem :=...
[ -0.3066229224205017, -0.49171677231788635, 0.8189839720726013, -0.55678391456604, -0.36439794301986694, 0.35934188961982727, -0.17041853070259094, -0.8558748364448547, -0.11036267131567001, 0.3751089870929718, 0.5278896689414978, 1.2721930742263794, -0.6824122667312622, 0.10277163237333298...
func (_Erc777 *Erc777Filterer) WatchMinted(opts *bind.WatchOpts, sink chan<- *Erc777Minted, operator []common.Address, to []common.Address) (event.Subscription, error) { var operatorRule []interface{} for _, operatorItem := range operator { operatorRule = append(operatorRule, operatorItem) } var toRule []interfa...
[ 0.35732781887054443, -0.7790169715881348, 1.0044641494750977, -0.7861019372940063, -0.12679138779640198, 0.06047516316175461, 0.21389563381671906, -1.0906744003295898, -0.03283130005002022, -0.16686947643756866, 0.13374300301074982, 1.3183542490005493, -0.1639052927494049, 0.26744434237480...
func (_Erc777 *Erc777Filterer) ParseMinted(log types.Log) (*Erc777Minted, error) { event := new(Erc777Minted) if err := _Erc777.contract.UnpackLog(event, "Minted", log); err != nil { return nil, err } event.Raw = log return event, nil }
[ 0.3159502446651459, -0.29976263642311096, 0.8017315864562988, -0.9495651125907898, -0.5478652119636536, -0.05079130083322525, 0.17148178815841675, -1.2732079029083252, 0.9299468398094177, -0.5474741458892822, -0.5254318118095398, 0.26041850447654724, -0.373105525970459, 0.26274433732032776...
func (it *Erc777RevokedOperatorIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.4128171503543854, 0.799794614315033, 0.2899681329727173, -0.13651081919670105, -0.7490297555923462, 0.536645770072937, 0.2370806187391281, 0.25935864448547363, -0.5400917530059814, 0.05577201023697853, 0.5021860003471375, 0.5666826963424683, -0.8016846179962158, 0.425184041261673, 0.29...
func (_Erc777 *Erc777Filterer) FilterRevokedOperator(opts *bind.FilterOpts, operator []common.Address, tokenHolder []common.Address) (*Erc777RevokedOperatorIterator, error) { var operatorRule []interface{} for _, operatorItem := range operator { operatorRule = append(operatorRule, operatorItem) } var tokenHolder...
[ -0.07686616480350494, 0.24157829582691193, 0.34539857506752014, -0.09526434540748596, -1.431570053100586, -0.5696681141853333, -0.06292720139026642, 0.41153013706207275, 0.11247546970844269, 0.37414833903312683, 0.20585067570209503, 0.6794147491455078, -0.8177207708358765, -0.0778519809246...
func (_Erc777 *Erc777Filterer) WatchRevokedOperator(opts *bind.WatchOpts, sink chan<- *Erc777RevokedOperator, operator []common.Address, tokenHolder []common.Address) (event.Subscription, error) { var operatorRule []interface{} for _, operatorItem := range operator { operatorRule = append(operatorRule, operatorIte...
[ 0.48627567291259766, -0.03821146860718727, 0.4482570290565491, -0.24295538663864136, -0.8642608523368835, -0.6820980906486511, 0.35510995984077454, 0.07031604647636414, 0.0648745745420456, -0.24479003250598907, -0.17769134044647217, 0.7222906351089478, -0.2989942729473114, 0.05658509582281...
func (_Erc777 *Erc777Filterer) ParseRevokedOperator(log types.Log) (*Erc777RevokedOperator, error) { event := new(Erc777RevokedOperator) if err := _Erc777.contract.UnpackLog(event, "RevokedOperator", log); err != nil { return nil, err } event.Raw = log return event, nil }
[ 0.3558822572231293, 0.4761337637901306, 0.37588784098625183, -0.6363674998283386, -1.5914536714553833, -0.967646062374115, 0.34147322177886963, 0.5245562791824341, 1.089761734008789, -0.08848457783460617, -0.4420538544654846, -0.366475909948349, 0.003781295381486416, -0.7100443243980408, ...
func (it *Erc777SentIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.6608172655105591, -0.1281457543373108, 0.20711469650268555, -0.19106023013591766, -0.4883435070514679, 0.4727889895439148, 0.2916634678840637, -0.24096904695034027, -0.5486417412757874, -0.09993229806423187, 0.48841291666030884, 0.2143373340368271, -0.8560100793838501, 0.7018557190895081...
func (_Erc777 *Erc777Filterer) FilterSent(opts *bind.FilterOpts, operator []common.Address, from []common.Address, to []common.Address) (*Erc777SentIterator, error) { var operatorRule []interface{} for _, operatorItem := range operator { operatorRule = append(operatorRule, operatorItem) } var fromRule []interfac...
[ -0.4784206748008728, -0.04451025649905205, 0.8781490325927734, -0.20241622626781464, -0.8008973598480225, -0.09070607274770737, 0.5102041363716125, -0.5154967308044434, -0.3177439570426941, 0.7293493151664734, 0.1423676460981369, 0.9919369220733643, -0.1848020851612091, -0.6029579043388367...
func (_Erc777 *Erc777Filterer) WatchSent(opts *bind.WatchOpts, sink chan<- *Erc777Sent, operator []common.Address, from []common.Address, to []common.Address) (event.Subscription, error) { var operatorRule []interface{} for _, operatorItem := range operator { operatorRule = append(operatorRule, operatorItem) } v...
[ 0.6370596289634705, -0.3980691134929657, 0.8027607202529907, -0.5765304565429688, -0.3772018253803253, -0.264112651348114, 0.7731203436851501, -0.7136390805244446, -0.5894694328308105, 0.4093111455440521, 0.27686673402786255, 1.0008305311203003, 0.47584354877471924, -0.3783207833766937, ...
func (_Erc777 *Erc777Filterer) ParseSent(log types.Log) (*Erc777Sent, error) { event := new(Erc777Sent) if err := _Erc777.contract.UnpackLog(event, "Sent", log); err != nil { return nil, err } event.Raw = log return event, nil }
[ 0.14345669746398926, 0.24173779785633087, 0.8180735111236572, -0.2794368863105774, -0.8065829277038574, -0.3973610997200012, 0.7022032737731934, -1.1066254377365112, 0.6082402467727661, 0.24336206912994385, -0.6716535687446594, 0.5098842978477478, 0.46324896812438965, -0.6460639834403992, ...
func (it *Erc777TransferIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.7051144242286682, 0.3358660340309143, 0.3029347062110901, -0.7683237791061401, -0.7515324354171753, 0.8696597218513489, 0.21551884710788727, -0.6678215861320496, -0.8261101841926575, 0.29643669724464417, 0.493838369846344, 0.48113909363746643, -0.6156418323516846, 0.8455985188484192, -...
func (_Erc777 *Erc777Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*Erc777TransferIterator, error) { var fromRule []interface{} for _, fromItem := range from { fromRule = append(fromRule, fromItem) } var toRule []interface{} for _, toItem := range to { toRule = a...
[ -0.5211269855499268, -0.0885559543967247, 0.9822728037834167, -0.03573048114776611, -0.7726877927780151, -0.0068200682289898396, 0.09223120659589767, -0.4613555073738098, -0.47852692008018494, 0.6059935092926025, 0.45215821266174316, 0.9812682867050171, -0.3675556778907776, -0.002325194422...
func (_Erc777 *Erc777Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Erc777Transfer, from []common.Address, to []common.Address) (event.Subscription, error) { var fromRule []interface{} for _, fromItem := range from { fromRule = append(fromRule, fromItem) } var toRule []interface{} for _, toItem := r...
[ 0.45811304450035095, -0.40535593032836914, 0.8711428642272949, -0.5696069598197937, -0.33634141087532043, -0.2359636127948761, 0.34397581219673157, -0.7052702307701111, -0.6104269623756409, 0.16073957085609436, -0.022233542054891586, 0.8990132808685303, 0.19452489912509918, 0.1347600966691...
func (_Erc777 *Erc777Filterer) ParseTransfer(log types.Log) (*Erc777Transfer, error) { event := new(Erc777Transfer) if err := _Erc777.contract.UnpackLog(event, "Transfer", log); err != nil { return nil, err } event.Raw = log return event, nil }
[ 0.18302695453166962, 0.3744007349014282, 0.8636339902877808, -0.5608940124511719, -0.6436083316802979, -0.29689130187034607, 0.5719307661056519, -0.776849091053009, 0.4515450894832611, -0.3906460702419281, -0.4266013503074646, 0.011476815678179264, 0.3750933110713959, 0.4378192722797394, ...
func IsContainerRunning(id string) (bool, error) { if id == "" { return false, fmt.Errorf("id is empty") } result := exe.Command("docker", "inspect", "-f", "{{.State.Running}}", id).Run() if result.Err != nil { return false, fmt.Errorf("failed to run docker inspect: %w", result.Err) } b, err := strconv.Pars...
[ -0.8716514706611633, -0.1667633354663849, 0.6090784668922424, -0.0100576002150774, 0.021895287558436394, -0.5585033297538757, 0.1133609488606453, 0.13896311819553375, -0.11024679988622665, -0.012161945924162865, -0.08256033062934875, 0.47988152503967285, -0.5276409983634949, 0.535579085350...
func (iv IndexView) List(ctx context.Context, opts ...*options.ListIndexesOptions) (*Cursor, error) { if ctx == nil { ctx = context.Background() } sess := sessionFromContext(ctx) if sess == nil && iv.coll.client.sessionPool != nil { sess = session.NewImplicitClientSession(iv.coll.client.sessionPool, iv.coll.cl...
[ -0.30140554904937744, 0.12897363305091858, 0.8350860476493835, 0.513684093952179, 0.5398258566856384, -0.5122743248939514, 0.15662315487861633, -0.36416035890579224, 0.6003619432449341, 0.6675804257392883, -0.566402792930603, 0.8907164931297302, -0.6932452917098999, -0.6646287441253662, ...
func (iv IndexView) ListSpecifications(ctx context.Context, opts ...*options.ListIndexesOptions) ([]*IndexSpecification, error) { cursor, err := iv.List(ctx, opts...) if err != nil { return nil, err } var results []*IndexSpecification err = cursor.All(ctx, &results) if err != nil { return nil, err } ns :=...
[ -0.6488069295883179, 0.13086390495300293, 0.1276179552078247, 0.45370516180992126, 0.6658825874328613, -0.7728037238121033, -0.3810734748840332, -1.1701511144638062, 0.9572810530662537, 0.3882220983505249, -0.7785473465919495, 0.6148743629455566, -0.3737480044364929, 0.2792986035346985, ...
func (iv IndexView) CreateOne(ctx context.Context, model IndexModel, opts ...*options.CreateIndexesOptions) (string, error) { names, err := iv.CreateMany(ctx, []IndexModel{model}, opts...) if err != nil { return "", err } return names[0], nil }
[ -0.9882783889770508, 0.38715386390686035, 0.6165792346000671, 0.7908179759979248, 0.41519638895988464, 0.3389490246772766, 0.2893834114074707, -0.8868257403373718, 0.2066315859556198, 0.8090440034866333, -0.8184093832969666, -0.8709458708763123, -0.8808795809745789, -0.08475678414106369, ...
func (iv IndexView) CreateMany(ctx context.Context, models []IndexModel, opts ...*options.CreateIndexesOptions) ([]string, error) { names := make([]string, 0, len(models)) var indexes bsoncore.Document aidx, indexes := bsoncore.AppendArrayStart(indexes) for i, model := range models { if model.Keys == nil { r...
[ -1.5904262065887451, -0.1859636902809143, 0.9626240134239197, 0.5200058221817017, 0.644463300704956, -0.024761710315942764, 0.032105088233947754, -0.9439597725868225, 0.6054314374923706, 0.955173909664154, -0.38481178879737854, -0.6711251735687256, -0.5975599884986877, 0.2773876190185547, ...
func printResults(results []*Result) { fmt.Printf("results %v", results) for _, r := range results { if r.Rows != nil { fmt.Printf("\n\nColums:\n") for j, c := range r.Columns { fmt.Printf("\t%3d%20s%10d%10d\n", j, c.Name, c.DbType, c.DbSize) } for i, _ := range r.Rows { for j, _ := range r.Colu...
[ -0.031072085723280907, 0.30211400985717773, 0.5452522039413452, -0.6991418600082397, 0.5449106693267822, -0.2056991457939148, 0.0798286646604538, -1.264039397239685, -0.44161587953567505, -0.34250909090042114, -0.0481269545853138, 0.17704781889915466, -0.6017165184020996, 1.034603834152221...
func TestMessageNumbers(t *testing.T) { const msgnumOne = 123 const msgnumTwo = 456 c := &Conn{ messageNums: make(map[int]int), } var wg sync.WaitGroup wg.Add(1) go func() { c.addMessage("alpha", msgnumOne) wg.Done() }() wg.Add(1) go func() { c.addMessage("beta", msgnumOne) c.addMessage("delta",...
[ -0.48137572407722473, 0.24031364917755127, 0.7282978892326355, -0.48275694251060486, 0.9077722430229187, 0.4141850173473358, 0.41253623366355896, -0.6007295846939087, -0.9654541015625, -0.794169545173645, -1.0677003860473633, -0.47073987126350403, -0.7064152956008911, 1.2511310577392578, ...
func (et Option) IsEmpty() bool { var opt Option if et == opt { return true } return false }
[ -1.2023684978485107, 0.5135902166366577, 0.44015493988990784, 0.1601790338754654, 1.2037994861602783, 0.0983169749379158, -0.6899088025093079, -0.6639422178268433, 0.5284124612808228, 1.1633327007293701, -0.4724279046058655, 0.1992391049861908, 0.07968387007713318, -1.1326842308044434, -...
func (*AdGroupBidModifierOperation) XXX_OneofWrappers() []interface{} { return []interface{}{ (*AdGroupBidModifierOperation_Create)(nil), (*AdGroupBidModifierOperation_Update)(nil), (*AdGroupBidModifierOperation_Remove)(nil), } }
[ -1.6735774278640747, 0.5034540295600891, 0.4977361559867859, 0.19495560228824615, 0.2834441065788269, -0.3696524500846863, 0.18302439153194427, -0.393892377614975, 0.5947194695472717, 0.6930721402168274, 0.10157494992017746, 0.22240854799747467, -0.5507371425628662, 0.7031151652336121, 0...
func (h Hash) Big() *big.Int { return new(big.Int).SetBytes(h[:]) }
[ -0.17704732716083527, 0.7151480317115784, 0.5588963031768799, 0.23988565802574158, 0.5680824518203735, 0.39095520973205566, -0.28885334730148315, 0.19493263959884644, -0.21474245190620422, -1.0499372482299805, -0.4964180588722229, 1.154625654220581, -0.21572144329547882, -0.200783073902130...
func (h Hash) Hex() string { return hexutil.Encode(h[:]) }
[ 0.5846920013427734, -0.2706198990345001, 0.44885361194610596, 0.5713831782341003, 0.6595706343650818, 1.1428202390670776, -1.624014973640442, 0.9505118131637573, -0.048073865473270416, -0.14222538471221924, -0.09717929363250732, 0.8144810795783997, 0.18502895534038544, -0.14829674363136292...
func (a Address) Hex() string { unchecksummed := hex.EncodeToString(a[:]) sha := sha3.NewKeccak256() sha.Write([]byte(unchecksummed)) hash := sha.Sum(nil) result := []byte(unchecksummed) for i := 0; i < len(result); i++ { hashByte := hash[i/2] if i%2 == 0 { hashByte = hashByte >> 4 } else { hashByte ...
[ 0.02788638137280941, 0.020184621214866638, 0.9844725131988525, -0.27514317631721497, -0.20679301023483276, 0.1381615847349167, -0.18546505272388458, 1.4219342470169067, 1.505954384803772, 0.7626243829727173, -0.0431065671145916, 0.2889597713947296, 0.33914995193481445, -0.01450704503804445...
func TestSingleSurvey(t *testing.T) { tGlobal = t // surveyResponseChannel = make(chan string) var s Server t.Log("Starting Survey Server") err := s.Listen(url, 100, 2, handleSurveyResponse) if err != nil { t.Errorf("Error at survey.TestSingleSurvey: %v", err.Error()) } var sock mangos.Socket if sock, e...
[ -0.03267059475183487, 0.08100410550832748, 0.9569182395935059, -0.2968674600124359, 0.4785102903842926, 0.587315022945404, 0.8621609210968018, -0.5025014877319336, 0.7304994463920593, -0.7340950965881348, -0.35747620463371277, 0.6529351472854614, -1.1523526906967163, 0.26850003004074097, ...
func respondToSurvey(sock mangos.Socket, t *testing.T, messages chan string, surveyQuestion string, surveyResponse string) { var err error var msg []byte if msg, err = sock.Recv(); err != nil { t.Errorf("Error Receiving at survey.respondToSurvey: %v", err.Error()) messages <- "Test Failed" return } if str...
[ 0.10783766210079193, -0.9233429431915283, 0.49040496349334717, -0.5505740642547607, -0.41016510128974915, 0.3312525153160095, 0.6904705762863159, -1.0515291690826416, 0.9053170680999756, -0.00824788585305214, -0.02413134276866913, 0.0948932021856308, -1.1363507509231567, -0.232380568981170...
func (c oauthClient) UploadFile( localFilePath string, remoteFileName string, contentType string, md5sum string, ) (wl.Upload, error) { fileContents, err := c.readLocalFile(localFilePath) if err != nil { return wl.Upload{}, err } initialUploadResp, err := c.createUpload(remoteFileName, contentType, len(fileC...
[ 0.26908981800079346, -0.3419327139854431, 0.6714730262756348, -0.25369954109191895, 0.18832354247570038, 0.4246484041213989, -0.10533266514539719, 0.007503407541662455, -0.7099999785423279, 0.26450762152671814, 0.17686481773853302, -0.7315980195999146, -0.9459171891212463, -0.2092750668525...
func GenerateToken(jwtSecret string, claims InvoicesClaims) string { hmacSampleSecret := []byte(jwtSecret) type Claims struct { InvoicesClaims jwt.StandardClaims } token := jwt.NewWithClaims(jwt.SigningMethodHS256, Claims{ InvoicesClaims{ GetInvoices: true, GetInvoice: true, CreateInvoice: tru...
[ 0.3913991451263428, -0.7514656186103821, 0.5113171935081482, -0.30251485109329224, -0.25990888476371765, 0.01113323587924242, -0.7054764032363892, 0.39693817496299744, 0.5386521816253662, -0.5526695251464844, -0.31584781408309937, 0.42438894510269165, 0.37563812732696533, -0.51696509122848...
func CreateTestDB(user, pass string) (string, func() error, error) { rand.Seed(time.Now().UnixNano()) dbName := fmt.Sprintf("test_db_%v", rand.Intn(1000)) db, err := sql.Open("mysql", fmt.Sprintf("%v:%v@/", user, pass)) nilFn := func() error { return err } if err != nil { return "", nilFn, err } if err != nil...
[ -0.1698491871356964, 0.057680580765008926, 1.051435947418213, 0.15474309027194977, 0.4216858446598053, 0.2204676866531372, 0.8135212063789368, -0.34018757939338684, 0.5336745381355286, 0.33073967695236206, -0.45218417048454285, -0.40821823477745056, -0.28989681601524353, 0.7889170050621033...
func prepareNotification(context *util.Context, notification *models.Notification) { // get sender name if notification.SenderID.Valid() { notification.SenderName = models.GetPlayerName(context, notification.SenderID) } else { notification.SenderName = "" // "System Message"? } switch notification.Type { ca...
[ -0.43133607506752014, 0.13631212711334229, 0.5631645917892456, 1.5924004316329956, 0.4653513431549072, -0.24152961373329163, 0.23652413487434387, -0.6028909683227539, 1.1660550832748413, 0.6123027205467224, -0.5006749629974365, -1.2507704496383667, 0.7776187062263489, 0.6917851567268372, ...
func createTestPeerInfo(n int) map[int]NodeInfo { peers := make(map[int]NodeInfo) for i := 0; i < n; i++ { peers[i] = NodeInfo{NodeID: i} } return peers }
[ -0.7402743101119995, -0.40758490562438965, 0.2719009518623352, -1.6039451360702515, 0.2774665951728821, 0.5253464579582214, -0.1603766232728958, -1.1323997974395752, -0.5413554906845093, 0.09890234470367432, -0.845786452293396, -0.57985520362854, -0.29988911747932434, 0.6722362041473389, ...
func (c *Connection) AcceptsLabels(pairs []LabelPair) (bool, error) { pairs = c.filterLabelPairs(pairs) if len(pairs) != len(c.LabelAcceptanceCriteria) { return false, nil } accepts := true for _, pair := range pairs { meetsCriteria := false for _, criterion := range c.LabelAcceptanceCriteria { accepts,...
[ -1.3025139570236206, 0.46139660477638245, 0.9396329522132874, -0.5138001441955566, -1.5478485822677612, 0.9643658399581909, -0.03704660013318062, 0.24792884290218353, -1.1234041452407837, 0.28373897075653076, 1.2984912395477295, -0.5930124521255493, -1.0917457342147827, 0.839911699295044, ...
func (c *Connection) filterLabelPairs(pairs []LabelPair) []LabelPair { // Load criterion names into a set for quick lookup criterionNames := map[string]struct{}{} for _, criterion := range c.LabelAcceptanceCriteria { criterionNames[criterion.LabelPair.Name] = struct{}{} } var filteredPairs []LabelPair for _, p...
[ -0.983466386795044, -0.7753635048866272, 0.7138011455535889, -0.5155240297317505, -1.9327019453048706, 0.9716224670410156, -0.4563135802745819, -0.009279931895434856, -0.21363502740859985, 0.9698179364204407, 0.9302770495414734, 0.12516610324382782, -0.7631462812423706, 0.48722895979881287...
func (l *LabelAcceptanceCriterion) acceptsLabel(pair LabelPair) (result bool, labelMismatch bool, err error) { if l.LabelPair.Name != pair.Name { return false, true, nil } switch pair.Value.(type) { case float64: /* since json does not differentiate between int or float, the marshaller will encode numbers as flo...
[ -0.876832127571106, -0.40637341141700745, 1.1104354858398438, -0.432351291179657, -1.4373369216918945, 0.8584078550338745, -0.20143377780914307, -0.028568867594003677, -0.3619571328163147, 0.5353534817695618, 0.4643234312534332, -0.001656338688917458, -0.3774217367172241, 0.484556525945663...
func NewEnvironment(kubeConfig *rest.Config) *Environment { atomic.AddInt32(&namespaceCounter, portPerTest) namespaceID := gomegaConfig.GinkgoConfig.ParallelNode*testPerNode + int(namespaceCounter) // the single namespace used by this test ns := utils.GetNamespaceName(namespaceID) env := &Environment{ Environme...
[ 0.5566771626472473, 0.08851159363985062, 0.4196464419364929, -0.35149019956588745, 0.22258035838603973, 0.08856607973575592, 0.8105105757713318, -0.03492601960897446, 0.3254929482936859, 0.48317021131515503, 0.2869306206703186, 0.17651796340942383, -0.9417192935943604, 0.9526033997535706, ...
func (e *Environment) SetupClientsets() error { var err error e.Clientset, err = kubernetes.NewForConfig(e.KubeConfig) if err != nil { return err } e.VersionedClientset, err = versioned.NewForConfig(e.KubeConfig) if err != nil { return err } e.QuarksStatefulSetClient, err = qstsclient.NewForConfig(e.KubeCo...
[ 0.4373127818107605, -0.41590437293052673, 0.40328261256217957, -1.1554690599441528, 0.10695023834705353, -0.012787274084985256, 0.29677852988243103, -1.4329432249069214, -0.4304739236831665, 0.5575156807899475, 0.18658851087093353, 0.3941229581832886, -0.231805220246315, 0.9106557965278625...
func (e *Environment) SetupServiceAccount() error { serviceAccount := &corev1.ServiceAccount{ ObjectMeta: metav1.ObjectMeta{ Name: serviceAccountName, Namespace: e.Namespace, }, } client := e.Clientset.CoreV1().ServiceAccounts(e.Namespace) if _, err := client.Create(context.Background(), serviceAcco...
[ 0.10977356880903244, -0.07470466196537018, 0.6981620788574219, -0.6091563105583191, 0.4457016885280609, -0.09004078060388565, 0.9276544451713562, -0.9054061770439148, 0.6161000728607178, 0.4164451062679291, 0.18458370864391327, 1.4259344339370728, -0.447968453168869, 0.639366626739502, 0...
func (e *Environment) NodeIP() (string, error) { if override, ok := os.LookupEnv("CF_OPERATOR_NODE_IP"); ok { // The user has specified a particular node IP to use; return that. return override, nil } nodes, err := e.Clientset.CoreV1().Nodes().List(context.Background(), metav1.ListOptions{}) if err != nil { ...
[ -0.9890246391296387, 0.7337360382080078, 0.5070449709892273, -0.16084666550159454, 0.032852571457624435, -0.46617600321769714, -0.12344226241111755, 0.24294888973236084, -0.3076344132423401, 0.7554914355278015, 0.9996885061264038, -0.3323831558227539, -0.41065266728401184, -0.2545474767684...
func ApplyCRDs(kubeConfig *rest.Config) error { err := operator.ApplyCRDs(context.Background(), kubeConfig) if err != nil { return err } err = qjob.ApplyCRDs(context.Background(), kubeConfig) if err != nil { return err } err = qsec.ApplyCRDs(context.Background(), kubeConfig) if err != nil { return err } ...
[ 0.8992724418640137, 0.4989742934703827, 0.732462465763092, -0.11729394644498825, -0.0704651027917862, 0.13274891674518585, -0.5658050775527954, 0.09844490885734558, 0.3473793864250183, -0.4489588141441345, 1.104776382446289, -0.15666909515857697, -1.3858188390731812, 1.3465243577957153, ...
func (p *Periph) Bus() bus.Bus { return busForAddr(p) }
[ 0.1216992735862732, -0.35520097613334656, 0.10858220607042313, 0.5862235426902771, -1.2450170516967773, 1.3188811540603638, 0.3620833456516266, 0.09106098115444183, 0.7024533152580261, -0.7873374819755554, 0.8504478931427002, 0.7480435967445374, -0.5760082006454468, -0.23792949318885803, ...
func (p *Periph) EnableClock(lp bool) { apb.EnableClock(unsafe.Pointer(p), lp) }
[ 0.8418468832969666, -0.014880841597914696, 0.4798990488052368, -0.4371974468231201, 0.0737418606877327, 1.4581063985824585, 0.6975566744804382, 1.1698871850967407, 0.8926778435707092, -0.6209673285484314, 0.11330153793096542, -0.24930766224861145, -1.6925151348114014, -0.12704603374004364,...
func (p *Periph) DisableClock() { apb.DisableClock(unsafe.Pointer(p)) }
[ 0.7081391215324402, 0.2000611126422882, 0.26620393991470337, -0.22037984430789948, -0.2902285158634186, 1.1689263582229614, 1.5357587337493896, 1.1704288721084595, 0.573142945766449, -1.1371774673461914, 0.033356305211782455, -0.094321608543396, -1.8021442890167236, 0.30627498030662537, ...
func (p *Periph) BR(baudrate int) Config { pclk := p.Bus().Clock() div := uint32((pclk + int64(baudrate) - 1) / int64(baudrate)) switch { case div < 2: div = 2 case div > 256: div = 256 } br := 31 - bits.LeadingZeros32(uint32(div-1)) return Config(br << brn) }
[ -0.9248800873756409, 1.1008243560791016, 0.6909504532814026, -0.10535890609025955, -0.8519799709320068, 1.1421769857406616, -0.0021644742228090763, -0.14671380817890167, 0.19165509939193726, -0.6677504181861877, 0.43504682183265686, 0.3335961103439331, -0.8545432686805725, 0.64218366146087...
func (p *Periph) Config() Config { cr1 := p.cr1.LoadBits(cr1mask) cr2 := p.cr2.LoadBits(cr2mask) return Config(cr1 | cr2<<16) }
[ 0.28330153226852417, 0.4280800223350525, 0.5080550909042358, 0.48607543110847473, -0.0028588538989424706, 0.4732617437839508, 0.6874201893806458, 0.1980077624320984, -0.6272384524345398, -0.42203739285469055, -0.23851776123046875, -0.15282702445983887, -0.6915876269340515, 0.30001318454742...
func (p *Periph) SetConfig(conf Config, baudrate int) { if baudrate > 0 { conf = conf&^BR256 | p.BR(baudrate) } p.cr1.StoreBits(cr1mask, uint32(conf&0xFFFF)) p.cr2.StoreBits(cr2mask, uint32(conf>>16)) }
[ 0.060498323291540146, 0.3731361925601959, 0.4430235028266907, 0.18170097470283508, 0.18551978468894958, 0.9274947047233582, 0.4960750341415405, 0.7013723254203796, -0.4952019155025482, -0.16523580253124237, -1.1015043258666992, -0.06539022922515869, -0.5561906695365906, 0.7378737330436707,...
func (p *Periph) Baudrate() int { br := p.cr1.LoadBits(cr1mask) >> brn & 7 return int(p.Bus().Clock() >> (br + 1)) }
[ 0.1502227932214737, 0.7568092346191406, 0.5932636857032776, 0.5694688558578491, -0.2603880763053894, 0.08241887390613556, 0.17738762497901917, 0.40609976649284363, -0.5140274167060852, -0.8582390546798706, 0.4540576636791229, 0.07304216921329498, -1.6417114734649658, 0.022855224087834358, ...
func (p *Periph) SetBaudrate(baudrate int) { p.cr1.StoreBits(uint32(BR256), uint32(p.BR(baudrate))) }
[ 0.3042822778224945, 0.2153281420469284, 0.516683042049408, -0.4576913118362427, 0.2584702968597412, 0.8896225690841675, 0.07623586803674698, 0.16609607636928558, -0.7656811475753784, -0.5469697713851929, -0.5845592617988586, 0.9171241521835327, -1.8135299682617188, 0.906549870967865, 0.2...
func (p *Periph) WordSize() int { return p.wordSize() }
[ 0.04946574941277504, 1.0074143409729004, 0.45363229513168335, -0.6634312868118286, -0.18641413748264313, 0.017971254885196686, 0.5724654793739319, 0.44087111949920654, -0.48490774631500244, 0.3858241140842438, 0.5553234815597534, 0.3767502009868622, -2.093536138534546, 0.6856418251991272, ...
func (p *Periph) SetWordSize(size int) { p.setWordSize(size) }
[ 0.15210871398448944, 0.545674741268158, 0.33507677912712097, -0.3614047169685364, -0.7189346551895142, 0.6057174205780029, 0.2019084095954895, 0.3061297833919525, 0.17441606521606445, 0.05807838216423988, -0.31553584337234497, 0.28591659665107727, -1.865815281867981, 1.3343369960784912, ...
func (p *Periph) Status() (Event, Error) { sr := p.sr.Load() err := Error(sr>>3) & errorMask ev := Event(sr<<1) & bsyEventMask if err != 0 { ev |= Err } return ev, err }
[ -0.07141713798046112, -0.42170250415802, 0.4608704447746277, 0.5016549229621887, -0.5764815807342529, -0.26732492446899414, 0.31724196672439575, 0.3709900975227356, 0.6371099352836609, -0.12437263131141663, -0.802619457244873, 0.30970993638038635, -0.4608280062675476, 0.6381857991218567, ...
func (p *Periph) EnableIRQ(e Event) { if e &= errEventMask; e != 0 { p.cr2.SetBits(uint32(e) << errien) } }
[ -0.0573183074593544, -1.0138617753982544, 0.6383605003356934, -0.0021576087456196547, 0.6115636229515076, 0.7372649908065796, 0.751479983329773, 0.7941211462020874, -0.3873108923435211, -0.7202713489532471, -0.4813748002052307, 0.739301323890686, -0.6807790994644165, -0.33324581384658813, ...
func (p *Periph) DisableIRQ(e Event) { if e &= errEventMask; e != 0 { p.cr2.ClearBits(uint32(e) << errien) } }
[ -0.1385805308818817, -0.8161455988883972, 0.49919387698173523, 0.15329954028129578, -0.2728467881679535, 0.7486667037010193, 1.1011841297149658, 0.5570621490478516, -0.31561267375946045, -0.496236115694046, -0.14691829681396484, 0.2351095825433731, -1.0621802806854248, -0.20093803107738495...
func (p *Periph) EnableDMA(e Event) { if e &= realEventMask; e != 0 { p.cr2.SetBits(uint32(e) >> 1) } }
[ 0.8238012790679932, -0.4866774380207062, 0.6737738847732544, 0.9067725539207458, 0.2220373898744583, 0.7159343361854553, 0.6270737648010254, 1.3138809204101562, 1.3070415258407593, -0.8555729389190674, -0.2671651244163513, 0.38843679428100586, 0.46608471870422363, 0.2666448950767517, 0.4...
func (p *Periph) DisableDMA(e Event) { if e &= realEventMask; e != 0 { p.cr2.ClearBits(uint32(e) >> 1) } }
[ 0.5898883938789368, -0.44702550768852234, 0.6275200247764587, 1.0753624439239502, -0.23186133801937103, 0.7440336346626282, 1.2318309545516968, 1.1856234073638916, 1.052927017211914, -0.7765803933143616, 0.02719595842063427, 0.25189030170440674, -0.28995001316070557, 0.38102900981903076, ...
func (p *Periph) Enabled() bool { return p.cr1.LoadBits(spe) != 0 }
[ 0.39680951833724976, 0.03578655794262886, 0.4036858081817627, 1.0156285762786865, -0.16457045078277588, 1.2652828693389893, 0.051085375249385834, 1.581226110458374, 0.34146416187286377, -0.08651552349328995, -1.002373456954956, -0.22530820965766907, -1.69692063331604, 0.07671548426151276, ...
func (p *Periph) StoreWord16(v uint16) { (*mmio.U16)(unsafe.Pointer(&p.dr)).Store(v) }
[ 0.8989924788475037, 0.7288844585418701, 0.26402968168258667, -0.9931392669677734, -0.49843883514404297, 0.4603160619735718, -0.15680617094039917, -0.5153356790542603, 0.6388428211212158, 0.1655777394771576, -0.23247511684894562, 0.18292106688022614, -1.1855740547180176, 0.8467715978622437,...
func (p *Periph) LoadWord16() uint16 { return (*mmio.U16)(unsafe.Pointer(&p.dr)).Load() }
[ 0.8347569108009338, 0.4032963514328003, 0.46244996786117554, -0.5540326237678528, -1.026199460029602, -0.3276699483394623, -0.4872331917285919, -0.30114227533340454, -0.013009009882807732, 0.4208461344242096, 0.40467506647109985, 0.10621500015258789, -1.8442775011062622, 0.8290491104125977...
func (p *Periph) StoreByte(v byte) { (*mmio.U8)(unsafe.Pointer(&p.dr)).Store(v) }
[ 0.31882306933403015, 0.6903886198997498, 0.2556275427341461, -0.1912534385919571, -0.3386163115501404, 1.0210776329040527, 0.8174200654029846, -0.28782281279563904, 1.1340631246566772, -0.3802753686904907, -0.055871300399303436, -0.10400106012821198, -2.076362371444702, 0.3850367069244385,...
func (p *Periph) LoadByte() byte { return (*mmio.U8)(unsafe.Pointer(&p.dr)).Load() }
[ 0.5495659112930298, 0.7265980839729309, 0.5870904326438904, 0.3308069109916687, -0.8331788182258606, 0.31378427147865295, -0.16316545009613037, -0.24639421701431274, 0.41038501262664795, -0.48261064291000366, 0.8277502655982971, -0.1885838806629181, -2.6034634113311768, 0.03072164021432399...
func (_m *RedisSearchClient) Delete(docID string) error { ret := _m.Called(docID) var r0 error if rf, ok := ret.Get(0).(func(string) error); ok { r0 = rf(docID) } else { r0 = ret.Error(0) } return r0 }
[ -0.49293646216392517, -0.1133749708533287, 0.2641196846961975, 0.43167316913604736, -0.014993957243859768, 0.10370231419801712, 0.44814756512641907, 0.0919179618358612, 0.6465081572532654, 0.2774498164653778, -0.1366223692893982, -0.2583844065666199, -0.41663092374801636, 0.745007276535034...
func (_m *RedisSearchClient) Index(docs ...redisearch.Document) error { _va := make([]interface{}, len(docs)) for _i := range docs { _va[_i] = docs[_i] } var _ca []interface{} _ca = append(_ca, _va...) ret := _m.Called(_ca...) var r0 error if rf, ok := ret.Get(0).(func(...redisearch.Document) error); ok { ...
[ -1.0700219869613647, 0.3112308382987976, 0.4125078618526459, 0.1852661669254303, 0.07654925435781479, 0.2610677480697632, 1.4300868511199951, 0.3077371418476105, -0.27671143412590027, 0.24161437153816223, -0.29591256380081177, 0.300508052110672, 0.09402087330818176, 0.057224009186029434, ...
func (_m *RedisSearchClient) Search(text string, offset int, limit int) ([]redisearch.Document, int, error) { ret := _m.Called(text, offset, limit) var r0 []redisearch.Document if rf, ok := ret.Get(0).(func(string, int, int) []redisearch.Document); ok { r0 = rf(text, offset, limit) } else { if ret.Get(0) != ni...
[ -1.0250627994537354, -0.07647594064474106, 0.6690273880958557, -0.2700592279434204, -0.41524001955986023, 0.5896494388580322, 0.26627668738365173, 0.5939870476722717, -0.49670714139938354, 0.10210864245891571, -0.6501328945159912, -0.014318126253783703, -0.494616836309433, -0.1064313054084...
func NewConsumer(amqpURI, exchange, queue, routingKey, tag string, prefetch int) *RabbitMQ { conn, err := amqp.Dial(amqpURI) if err != nil { log.Fatalf("writer failed to connect to Rabbit: %s", err) return nil } go func() { log.Printf("writer closing: %s", <-conn.NotifyClose(make(chan *amqp.Error))) log.Pr...
[ -0.034397222101688385, -1.3688626289367676, 0.9453972578048706, -0.4047470688819885, -0.413225382566452, -0.6025940775871277, -0.3922899067401886, 0.11475841701030731, 0.01718686893582344, 0.7589892148971558, 0.41001513600349426, 0.1880691796541214, -0.5851856470108032, 0.3007564842700958,...
func (r *RabbitMQ) Consume(out chan Message, verify <-chan Verify) { go r.ackMultiple(verify) // set up a channel consumer deliveries, err := r.channel.Consume( r.queue, // name r.tag, // consumerTag, false, // noAck false, // exclusive false, // noLocal false, // noWait nil, // argument...
[ 0.23599570989608765, -0.24007287621498108, 0.5630087852478027, 0.13837547600269318, 0.6862741708755493, -0.38238126039505005, -0.1592150181531906, -0.14591310918331146, -0.49663156270980835, 0.38542094826698303, 0.1492416262626648, 0.4377840459346771, -0.23519626259803772, 1.33755111694335...
func RegisterCodec(cdc *codec.Codec) { cdc.RegisterConcrete(ClientState{}, "ibc/client/localhost/ClientState", nil) cdc.RegisterConcrete(ConsensusState{}, "ibc/client/localhost/ConsensusState", nil) cdc.RegisterConcrete(Header{}, "ibc/client/localhost/Header", nil) cdc.RegisterConcrete(Evidence{}, "ibc/client/local...
[ 0.9825723767280579, 0.2286747843027115, 0.5439931154251099, -0.8006256818771362, 1.0680179595947266, 0.8666264414787292, 0.5248762369155884, 0.09395931661128998, -0.2640261948108673, -1.0148600339889526, -0.3649330735206604, 1.1664694547653198, 0.03398481756448746, 0.479759156703949, 0.5...
func SetSubModuleCodec(cdc *codec.Codec) { SubModuleCdc = cdc }
[ 0.9705278277397156, -0.12995846569538116, 0.4134482145309448, -0.19645458459854126, -0.9328332543373108, 1.2383570671081543, 0.7397334575653076, 0.4379681944847107, 0.5061213970184326, -0.8698274493217468, -1.0960787534713745, 1.9171323776245117, 0.36176010966300964, 0.32221657037734985, ...
func NewOccMetricsClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client OccMetricsClient, err error) { if enabled := common.CheckForEnabledServices("ocicontrolcenter"); !enabled { return client, fmt.Errorf("the Alloy configuration disabled this service, this behavior is controlled by O...
[ 0.7283105254173279, -0.2013351172208786, 0.19817489385604858, 0.036602575331926346, 0.06315621733665466, -0.27390360832214355, 0.9993625283241272, -1.09037446975708, 0.2125309854745865, 0.538979172706604, 0.6921035647392273, 0.11873827874660492, -0.5160213708877563, -0.3580082654953003, ...
func NewOccMetricsClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client OccMetricsClient, err error) { baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) if err != nil { return client, err } return newOccMetricsClientFromBaseClient(baseClient, configProvi...
[ 1.0153532028198242, -0.2422495037317276, 0.23309145867824554, -0.28379738330841064, 0.49973955750465393, -0.17550992965698242, 0.853300154209137, -1.464188575744629, -0.8883819580078125, 0.22424301505088806, 0.4068988561630249, 0.6942018270492554, 0.13912223279476166, -0.42734000086784363,...
func (client *OccMetricsClient) SetRegion(region string) { client.Host = common.StringToRegion(region).EndpointForTemplate("ocicontrolcenter", "https://control-center.{region}.oci.{secondLevelDomain}") }
[ 0.8888096213340759, -0.017409654334187508, 0.20468567311763763, -0.28554895520210266, 0.35542601346969604, 0.031232956796884537, 0.3652658760547638, -0.46126052737236023, -0.24875594675540924, 0.01293922308832407, 0.20088617503643036, 1.3624533414840698, -0.6229938864707947, -0.41128051280...
func (client *OccMetricsClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { return err } // Error has been checked already region, _ := configProvider.Region() client.SetRegion(region) if client.Host == "...
[ -0.3112967014312744, -0.16971902549266815, 0.20529890060424805, 0.003803856670856476, -0.30952969193458557, 0.19973747432231903, 1.2833967208862305, -0.24708957970142365, -0.1797357052564621, 0.6246992945671082, 0.06675545126199722, -0.23655414581298828, -0.4678404927253723, 0.257716685533...
func (client *OccMetricsClient) ConfigurationProvider() *common.ConfigurationProvider { return client.config }
[ 1.0040316581726074, 0.4427236020565033, -0.006942998617887497, 0.10077515989542007, -0.23466026782989502, 0.2542474865913391, 1.178977131843567, -1.1068495512008667, -0.038766007870435715, 0.5834863185882568, 0.4762854278087616, -1.0889142751693726, -0.694428026676178, -0.08149345219135284...
func (client OccMetricsClient) ListMetricProperties(ctx context.Context, request ListMetricPropertiesRequest) (response ListMetricPropertiesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } if request....
[ -0.33742833137512207, -0.4191625714302063, 0.6720261573791504, -0.05896935984492302, 0.14050520956516266, -0.0030402240809053183, 0.2570766508579254, -1.3462661504745483, 0.5450729131698608, 0.9324297904968262, 0.2554078698158264, 0.53363037109375, -1.0021979808807373, -0.7605018615722656,...
func (client OccMetricsClient) listMetricProperties(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { httpRequest, err := request.HTTPRequest(http.MethodGet, "/metricProperties/{namespaceName}", binaryReqBody, extraHe...
[ -0.2999500334262848, -0.32701316475868225, 0.658903956413269, -0.3596665561199188, 0.1943948119878769, 0.0871257558465004, 0.6582618355751038, -1.5290147066116333, -0.09667866677045822, 0.8816744685173035, 0.38848620653152466, 0.7079459428787231, -1.071196436882019, -0.2968757152557373, ...
func (client OccMetricsClient) ListNamespaces(ctx context.Context, request ListNamespacesRequest) (response ListNamespacesResponse, err error) { var ociResponse common.OCIResponse policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } if request.RetryPolicy() != n...
[ -0.15828564763069153, 0.04032905399799347, 0.7755780220031738, -0.634279727935791, -0.490093469619751, -0.2633712887763977, 0.4691084027290344, -1.7530219554901123, 1.8429676294326782, 0.2771395742893219, 0.5487146377563477, 0.5656063556671143, -0.8790146708488464, 0.46800708770751953, -...