text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (_EtherDelta *EtherDeltaTransactorSession) ChangeAdmin(admin_ common.Address) (*types.Transaction, error) { return _EtherDelta.Contract.ChangeAdmin(&_EtherDelta.TransactOpts, admin_) }
[ -0.16765178740024567, 1.1948561668395996, 0.3366645276546478, -1.0424213409423828, -0.2332400530576706, -0.742399275302887, -0.26425498723983765, -0.5472854375839233, 0.32388827204704285, 0.9473620057106018, -0.19867010414600372, 0.9446895122528076, 0.1278051882982254, 0.4825209975242615, ...
func (_EtherDelta *EtherDeltaTransactor) ChangeFeeAccount(opts *bind.TransactOpts, feeAccount_ common.Address) (*types.Transaction, error) { return _EtherDelta.contract.Transact(opts, "changeFeeAccount", feeAccount_) }
[ -0.4476115107536316, 0.8905708193778992, 0.32813459634780884, -0.47229713201522827, 0.05375370755791664, -0.8727990388870239, 1.6592272520065308, 0.49179670214653015, 0.4630185663700104, 0.5594393610954285, -0.5339924097061157, 1.1376959085464478, 0.4036133587360382, 0.8602921962738037, ...
func (_EtherDelta *EtherDeltaSession) ChangeFeeAccount(feeAccount_ common.Address) (*types.Transaction, error) { return _EtherDelta.Contract.ChangeFeeAccount(&_EtherDelta.TransactOpts, feeAccount_) }
[ -0.621698260307312, 1.0257008075714111, 0.2872738838195801, -0.4996073842048645, -0.06531760841608047, -1.2207679748535156, 1.5168499946594238, 0.5877807140350342, 0.5072609782218933, 0.5404801964759827, -0.6120749115943909, 1.1354397535324097, 0.6112244129180908, 0.924064040184021, 0.56...
func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeAccount(feeAccount_ common.Address) (*types.Transaction, error) { return _EtherDelta.Contract.ChangeFeeAccount(&_EtherDelta.TransactOpts, feeAccount_) }
[ -0.5007194876670837, 0.9524837136268616, 0.35323408246040344, -0.5029585361480713, -0.0817531943321228, -1.186602234840393, 1.6516058444976807, 0.5412058234214783, 0.5645145773887634, 0.5869229435920715, -0.5624972581863403, 1.0802465677261353, 0.5095411539077759, 0.8480536341667175, 0.5...
func (_EtherDelta *EtherDeltaTransactor) ChangeFeeMake(opts *bind.TransactOpts, feeMake_ *big.Int) (*types.Transaction, error) { return _EtherDelta.contract.Transact(opts, "changeFeeMake", feeMake_) }
[ -1.2815958261489868, 1.8155059814453125, 0.011701072566211224, -0.6066237092018127, -0.38461315631866455, -1.3819135427474976, -0.060760460793972015, 0.19897596538066864, -0.7395812273025513, 0.28515416383743286, -0.24229146540164948, 0.5093376040458679, -0.36782127618789673, 0.87736696004...
func (_EtherDelta *EtherDeltaSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_) }
[ -1.1343218088150024, 1.9397130012512207, 0.07529964298009872, -0.5938109159469604, -0.21153518557548523, -1.4519076347351074, -0.13280197978019714, -0.03749573975801468, -0.7950884103775024, 0.07597903162240982, -0.22562935948371887, 0.36563920974731445, -0.2331690788269043, 0.812126994132...
func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeMake(feeMake_ *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.ChangeFeeMake(&_EtherDelta.TransactOpts, feeMake_) }
[ -1.0025283098220825, 1.845792531967163, 0.1462806612253189, -0.5724379420280457, -0.13194380700588226, -1.457390308380127, 0.014208902604877949, -0.03584498539566994, -0.6945924162864685, 0.19185632467269897, -0.19563055038452148, 0.2973518371582031, -0.2874996066093445, 0.7675055265426636...
func (_EtherDelta *EtherDeltaTransactor) ChangeFeeRebate(opts *bind.TransactOpts, feeRebate_ *big.Int) (*types.Transaction, error) { return _EtherDelta.contract.Transact(opts, "changeFeeRebate", feeRebate_) }
[ -1.0419129133224487, 1.295262336730957, 0.24057966470718384, -0.718472957611084, -0.2672227621078491, -1.7072010040283203, -0.6423325538635254, -0.22560395300388336, -0.4368620812892914, 0.5023711323738098, 0.2724139094352722, 0.009618186391890049, -0.7960669994354248, 0.9332854151725769, ...
func (_EtherDelta *EtherDeltaSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_) }
[ -0.8948643207550049, 1.4375818967819214, 0.28752923011779785, -0.6403186917304993, -0.25794827938079834, -1.8073798418045044, -0.6246390342712402, -0.41933321952819824, -0.2747221887111664, 0.3576374053955078, 0.1882406324148178, -0.047455888241529465, -0.6239199042320251, 0.87869507074356...
func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeRebate(feeRebate_ *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.ChangeFeeRebate(&_EtherDelta.TransactOpts, feeRebate_) }
[ -0.7879346609115601, 1.3727424144744873, 0.3532586395740509, -0.6435228586196899, -0.17390994727611542, -1.7610888481140137, -0.5539719462394714, -0.4440057575702667, -0.25016823410987854, 0.3946877717971802, 0.22686909139156342, -0.08981094509363174, -0.6496337652206421, 0.823494970798492...
func (_EtherDelta *EtherDeltaTransactor) ChangeFeeTake(opts *bind.TransactOpts, feeTake_ *big.Int) (*types.Transaction, error) { return _EtherDelta.contract.Transact(opts, "changeFeeTake", feeTake_) }
[ -0.8355610370635986, 1.8957117795944214, 0.1523166447877884, -0.2714049518108368, -0.10468064993619919, -1.413079023361206, 0.27620941400527954, -0.04487184062600136, -0.549385666847229, 0.12840497493743896, 0.14527767896652222, 0.583249568939209, -0.04864964634180069, 1.3627357482910156, ...
func (_EtherDelta *EtherDeltaSession) ChangeFeeTake(feeTake_ *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.ChangeFeeTake(&_EtherDelta.TransactOpts, feeTake_) }
[ -0.7048286199569702, 1.9890930652618408, 0.17993496358394623, -0.16931645572185516, -0.03521978110074997, -1.5616650581359863, 0.2657358646392822, -0.12347397953271866, -0.6967090368270874, -0.02481485903263092, 0.17962631583213806, 0.4733736515045166, 0.05368763208389282, 1.28814649581909...
func (_EtherDelta *EtherDeltaTransactorSession) ChangeFeeTake(feeTake_ *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.ChangeFeeTake(&_EtherDelta.TransactOpts, feeTake_) }
[ -0.5924813747406006, 1.9103518724441528, 0.21546490490436554, -0.2214236855506897, -0.032174330204725266, -1.556389331817627, 0.38851699233055115, -0.13060177862644196, -0.6375484466552734, 0.03374632075428963, 0.18637615442276, 0.42255207896232605, 0.0023334359284490347, 1.242266058921814...
func (_EtherDelta *EtherDeltaTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error) { return _EtherDelta.contract.Transact(opts, "deposit") }
[ -0.2669486999511719, 0.21721099317073822, 0.4332551956176758, 0.2365196794271469, 0.314683198928833, 0.7797700762748718, 0.7377706170082092, -0.7480911016464233, 0.35014986991882324, -0.5707232356071472, 0.19073306024074554, -0.03843284398317337, -0.2756963074207306, 0.1912720650434494, ...
func (_EtherDelta *EtherDeltaSession) Deposit() (*types.Transaction, error) { return _EtherDelta.Contract.Deposit(&_EtherDelta.TransactOpts) }
[ 0.05923870950937271, 0.5902585387229919, 0.434630811214447, -0.2881813049316406, 0.4598979353904724, 0.26829472184181213, 0.7170870900154114, -0.8032734394073486, -0.03303888440132141, -0.6262993216514587, 0.2195952981710434, -0.3825734257698059, -0.0894610807299614, 0.03099900297820568, ...
func (_EtherDelta *EtherDeltaTransactorSession) Deposit() (*types.Transaction, error) { return _EtherDelta.Contract.Deposit(&_EtherDelta.TransactOpts) }
[ 0.11506137251853943, 0.282452791929245, 0.49038833379745483, -0.2102958709001541, 0.5211415886878967, 0.2467716485261917, 0.8360008001327515, -0.9515326619148254, 0.08426453173160553, -0.5832175612449646, 0.13254418969154358, -0.3637627363204956, -0.025534654036164284, 0.035308316349983215...
func (_EtherDelta *EtherDeltaTransactor) DepositToken(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error) { return _EtherDelta.contract.Transact(opts, "depositToken", token, amount) }
[ 0.005104964133352041, 0.5399710536003113, 0.3772328197956085, -0.1531403362751007, -0.21642695367336273, 0.033988166600465775, 0.5259178876876831, 0.17126601934432983, 0.5036318898200989, -0.039543312042951584, -0.7288677096366882, 0.17112253606319427, 0.31051287055015564, 0.19370564818382...
func (_EtherDelta *EtherDeltaSession) DepositToken(token common.Address, amount *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.DepositToken(&_EtherDelta.TransactOpts, token, amount) }
[ -0.010102937929332256, 0.6810892224311829, 0.4586946368217468, -0.29154840111732483, -0.11010430008172989, -0.12397343665361404, 0.35126015543937683, -0.039913155138492584, 0.3716282546520233, 0.04850926250219345, -0.5973274111747742, 0.08281250298023224, 0.3497510552406311, -0.02506137453...
func (_EtherDelta *EtherDeltaTransactorSession) DepositToken(token common.Address, amount *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.DepositToken(&_EtherDelta.TransactOpts, token, amount) }
[ 0.11949962377548218, 0.52327561378479, 0.5279722213745117, -0.2821751534938812, 0.017479758709669113, -0.1797814965248108, 0.43833428621292114, -0.09127595275640488, 0.4189915060997009, 0.07645155489444733, -0.660291850566864, 0.06588757038116455, 0.3395251929759979, -0.05582709610462189, ...
func (_EtherDelta *EtherDeltaTransactor) Order(opts *bind.TransactOpts, tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int) (*types.Transaction, error) { return _EtherDelta.contract.Transact(opts, "order", tokenGet, amountGet, tokenGive, amountG...
[ 0.13466885685920715, 0.2330256700515747, 0.5788670778274536, -0.8079330325126648, 0.756666362285614, -0.8022910356521606, -1.079109787940979, -0.5153052806854248, -0.0625857412815094, 0.1884661763906479, -0.39395567774772644, 0.20498329401016235, 0.06882216036319733, -0.04747546464204788, ...
func (_EtherDelta *EtherDeltaSession) Order(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.Order(&_EtherDelta.TransactOpts, tokenGet, amountGet, tokenGive, amountGive, expires, nonce...
[ 0.21814043819904327, 0.1819019615650177, 0.64935702085495, -0.8687856197357178, 0.6981834769248962, -0.8233843445777893, -1.1123619079589844, -0.5075514316558838, -0.2444240152835846, 0.10151556879281998, -0.3379015326499939, 0.026294130831956863, 0.12889862060546875, -0.25121966004371643,...
func (_EtherDelta *EtherDeltaTransactorSession) Order(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.Order(&_EtherDelta.TransactOpts, tokenGet, amountGet, tokenGive, amountGive, expi...
[ 0.2289021611213684, 0.1034359261393547, 0.6513299942016602, -0.8692746162414551, 0.7257568836212158, -0.8754976391792297, -1.0326365232467651, -0.5901436805725098, -0.19309422373771667, 0.15543513000011444, -0.36505889892578125, 0.008359572850167751, 0.07529900223016739, -0.240258365869522...
func (_EtherDelta *EtherDeltaTransactor) Trade(opts *bind.TransactOpts, tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, user common.Address, v uint8, r [32]byte, s [32]byte, amount *big.Int) (*types.Transaction, error) { return _EtherDelta.c...
[ 0.38385555148124695, 0.3341805636882782, 0.4532758593559265, -0.6920281648635864, 0.6016718149185181, -0.10217958688735962, 0.29387661814689636, -1.2404017448425293, 0.31128308176994324, -0.6147958636283875, -0.31957751512527466, 0.8807225227355957, -0.02540481835603714, -0.572919905185699...
func (_EtherDelta *EtherDeltaSession) Trade(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, user common.Address, v uint8, r [32]byte, s [32]byte, amount *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.Trade(&_EtherDelta.T...
[ 0.4371766448020935, 0.2534340023994446, 0.4955429434776306, -0.6834301948547363, 0.6531544923782349, -0.18299387395381927, 0.11024859547615051, -1.130195140838623, 0.20628736913204193, -0.5890304446220398, -0.29558125138282776, 0.9077812433242798, -0.05913941562175751, -0.6809261441230774,...
func (_EtherDelta *EtherDeltaTransactorSession) Trade(tokenGet common.Address, amountGet *big.Int, tokenGive common.Address, amountGive *big.Int, expires *big.Int, nonce *big.Int, user common.Address, v uint8, r [32]byte, s [32]byte, amount *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.Trade(&_Et...
[ 0.4739740192890167, 0.15342867374420166, 0.5325269103050232, -0.6558604836463928, 0.5839870572090149, -0.27804049849510193, 0.20851881802082062, -1.1501379013061523, 0.2536758780479431, -0.5062426328659058, -0.3882915675640106, 0.8474518656730652, -0.0866420641541481, -0.6363207101821899, ...
func (_EtherDelta *EtherDeltaTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error) { return _EtherDelta.contract.Transact(opts, "withdraw", amount) }
[ -0.5990657806396484, 0.578215479850769, 0.46224257349967957, -0.287091463804245, -0.11588133871555328, -0.12429139018058777, 0.4651154577732086, -0.2914302945137024, 0.9580651521682739, -0.38797351717948914, -0.14144308865070343, 0.0734887421131134, -0.3137100636959076, -0.0611767135560512...
func (_EtherDelta *EtherDeltaSession) Withdraw(amount *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.Withdraw(&_EtherDelta.TransactOpts, amount) }
[ -0.8605337738990784, 1.0384162664413452, 0.5221208333969116, -0.510499119758606, -0.048149675130844116, -0.2803049087524414, 0.5373478531837463, -0.7620960474014282, 0.7632997632026672, -0.3512786328792572, -0.27197572588920593, -0.3578251302242279, -0.2151690423488617, -0.1590787768363952...
func (_EtherDelta *EtherDeltaTransactorSession) Withdraw(amount *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.Withdraw(&_EtherDelta.TransactOpts, amount) }
[ -0.7456440925598145, 0.7732325792312622, 0.5555561184883118, -0.47009560465812683, 0.04035414755344391, -0.3419434130191803, 0.630138635635376, -0.8304940462112427, 0.7735105752944946, -0.27218377590179443, -0.3332083523273468, -0.33766674995422363, -0.1604781150817871, -0.1479261219501495...
func (_EtherDelta *EtherDeltaTransactor) WithdrawToken(opts *bind.TransactOpts, token common.Address, amount *big.Int) (*types.Transaction, error) { return _EtherDelta.contract.Transact(opts, "withdrawToken", token, amount) }
[ -0.5311293005943298, 0.7469261288642883, 0.3712206780910492, -0.4112328886985779, 0.021649323403835297, -0.21650546789169312, 0.17007997632026672, 0.7382948994636536, 0.6919528841972351, -0.2229725867509842, -0.8847981095314026, 0.2399558275938034, 0.2828023433685303, -0.1959783434867859, ...
func (_EtherDelta *EtherDeltaSession) WithdrawToken(token common.Address, amount *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.WithdrawToken(&_EtherDelta.TransactOpts, token, amount) }
[ -0.6725640892982483, 0.9620012640953064, 0.44908055663108826, -0.6637246608734131, 0.21380527317523956, -0.426350474357605, -0.1280771940946579, 0.5970439314842224, 0.5547515153884888, -0.10276591777801514, -0.8306838274002075, 0.1578112691640854, 0.4407510757446289, -0.38991400599479675, ...
func (_EtherDelta *EtherDeltaTransactorSession) WithdrawToken(token common.Address, amount *big.Int) (*types.Transaction, error) { return _EtherDelta.Contract.WithdrawToken(&_EtherDelta.TransactOpts, token, amount) }
[ -0.5066033005714417, 0.7527747750282288, 0.48052945733070374, -0.6383438110351562, 0.2836565375328064, -0.4592816233634949, -0.02526973746716976, 0.5308999419212341, 0.6026983857154846, -0.032597366720438004, -0.8669775128364563, 0.14229002594947815, 0.4078167974948883, -0.3853068649768829...
func (it *EtherDeltaCancelIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 1.001112461090088, 0.05260463058948517, 0.2691458761692047, -0.01991787552833557, -1.1562238931655884, 1.2938728332519531, -0.36142051219940186, 0.18374185264110565, -0.9805596470832825, 0.12993769347667694, 0.6578243374824524, 0.1654725968837738, -0.09357617050409317, 0.9134957790374756, ...
func (_EtherDelta *EtherDeltaFilterer) FilterCancel(opts *bind.FilterOpts) (*EtherDeltaCancelIterator, error) { logs, sub, err := _EtherDelta.contract.FilterLogs(opts, "Cancel") if err != nil { return nil, err } return &EtherDeltaCancelIterator{contract: _EtherDelta.contract, event: "Cancel", logs: logs, sub: su...
[ 0.6700805425643921, 0.21254779398441315, 0.8890098333358765, 1.0319206714630127, -1.2319566011428833, 0.29681500792503357, -0.028526196256279945, -0.18776081502437592, 0.2163819819688797, 1.2391599416732788, 0.975846529006958, 0.9506738185882568, 0.09788146615028381, -0.2369268387556076, ...
func (_EtherDelta *EtherDeltaFilterer) WatchCancel(opts *bind.WatchOpts, sink chan<- *EtherDeltaCancel) (event.Subscription, error) { logs, sub, err := _EtherDelta.contract.WatchLogs(opts, "Cancel") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsu...
[ 0.9109492301940918, -0.3723139762878418, 1.0225129127502441, 0.08465199172496796, -0.48730501532554626, -0.23743152618408203, 0.4199134409427643, -0.567902147769928, -0.19293972849845886, 0.5158212184906006, 0.5002979636192322, 1.2789947986602783, 0.4806619882583618, 0.03332176432013512, ...
func (it *EtherDeltaDepositIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.23266549408435822, 0.17368008196353912, 0.09095768630504608, -0.5065062642097473, -0.33063700795173645, 0.949554443359375, -0.015901919454336166, 0.027166854590177536, -0.131005197763443, -0.4501708149909973, 0.4407465159893036, -0.03875262662768364, -0.257048636674881, 0.522766470909118...
func (_EtherDelta *EtherDeltaFilterer) FilterDeposit(opts *bind.FilterOpts) (*EtherDeltaDepositIterator, error) { logs, sub, err := _EtherDelta.contract.FilterLogs(opts, "Deposit") if err != nil { return nil, err } return &EtherDeltaDepositIterator{contract: _EtherDelta.contract, event: "Deposit", logs: logs, su...
[ -0.13095210492610931, -0.001949101802892983, 0.5840161442756653, -0.02468186616897583, -0.7386075258255005, 0.7210655212402344, 0.6722866296768188, -0.34621232748031616, 0.6279808282852173, -0.04035361483693123, 0.32569122314453125, -0.015545575879514217, -0.19893847405910492, -0.011070834...
func (_EtherDelta *EtherDeltaFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *EtherDeltaDeposit) (event.Subscription, error) { logs, sub, err := _EtherDelta.contract.WatchLogs(opts, "Deposit") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.U...
[ 0.3065299093723297, -0.6196452379226685, 0.758047878742218, -0.7404000163078308, -0.3484764099121094, 0.09093888103961945, 0.704121470451355, -0.7126453518867493, 0.06766641139984131, -0.2062738686800003, -0.08582460880279541, 0.335743248462677, 0.5280556678771973, 0.13292951881885529, 0...
func (it *EtherDeltaOrderIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.381714403629303, 0.03561136871576309, 0.28559377789497375, -0.17393893003463745, -0.7322561740875244, 0.9787387847900391, -0.29747670888900757, -0.3637436330318451, -0.4610520005226135, 0.16528284549713135, 0.5650417804718018, 0.5881693363189697, -0.3821049928665161, 1.0470635890960693, ...
func (_EtherDelta *EtherDeltaFilterer) FilterOrder(opts *bind.FilterOpts) (*EtherDeltaOrderIterator, error) { logs, sub, err := _EtherDelta.contract.FilterLogs(opts, "Order") if err != nil { return nil, err } return &EtherDeltaOrderIterator{contract: _EtherDelta.contract, event: "Order", logs: logs, sub: sub}, n...
[ 0.14527034759521484, 0.059654802083969116, 0.6283746957778931, 1.1486196517944336, -0.6238095760345459, 0.19661495089530945, 0.2672695815563202, -0.3901997208595276, 0.9299423098564148, -0.008222139440476894, 0.5069419741630554, 0.8052316308021545, -0.1967710554599762, 0.4367425739765167, ...
func (_EtherDelta *EtherDeltaFilterer) WatchOrder(opts *bind.WatchOpts, sink chan<- *EtherDeltaOrder) (event.Subscription, error) { logs, sub, err := _EtherDelta.contract.WatchLogs(opts, "Order") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubsc...
[ 0.47174009680747986, -0.36338937282562256, 0.7116448283195496, 0.01262737438082695, -0.18421399593353271, -0.3554823100566864, 0.22132785618305206, -0.7085946202278137, 0.3031279444694519, -0.2197621911764145, 0.026034552603960037, 0.89742112159729, 0.24700598418712616, 0.8420499563217163,...
func (it *EtherDeltaTradeIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.5814957618713379, 0.2803531289100647, 0.18230986595153809, -0.6309576630592346, -0.3831526041030884, 1.4138267040252686, -0.21801292896270752, -0.44493794441223145, -0.6414551138877869, -0.027127809822559357, 0.5307729840278625, 0.7621167898178101, -0.42040789127349854, 0.715678334236145...
func (_EtherDelta *EtherDeltaFilterer) FilterTrade(opts *bind.FilterOpts) (*EtherDeltaTradeIterator, error) { logs, sub, err := _EtherDelta.contract.FilterLogs(opts, "Trade") if err != nil { return nil, err } return &EtherDeltaTradeIterator{contract: _EtherDelta.contract, event: "Trade", logs: logs, sub: sub}, n...
[ -0.012536263093352318, 0.49865567684173584, 0.4916539490222931, 0.35280725359916687, 0.04932773858308792, 0.48209717869758606, 0.4272399842739105, -0.6371964812278748, 0.6545231342315674, -0.02690325863659382, 0.5921019911766052, 1.0987038612365723, -0.5464756488800049, -0.0202750768512487...
func (_EtherDelta *EtherDeltaFilterer) WatchTrade(opts *bind.WatchOpts, sink chan<- *EtherDeltaTrade) (event.Subscription, error) { logs, sub, err := _EtherDelta.contract.WatchLogs(opts, "Trade") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubsc...
[ 0.6283467411994934, -0.10807203501462936, 0.7719929814338684, -0.30351802706718445, 0.17043757438659668, -0.20217810571193695, 0.5869964361190796, -0.900500476360321, 0.4009453356266022, -0.11140962690114975, 0.18375036120414734, 1.130782127380371, 0.0030340494122356176, 0.2837457954883575...
func (it *EtherDeltaWithdrawIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.5189711451530457, 0.44683578610420227, 0.36180901527404785, -0.758901059627533, -0.8762650489807129, 1.4445829391479492, -0.3007286787033081, -0.9062521457672119, -0.6035178899765015, -0.7302854061126709, 0.5387033820152283, 0.25347456336021423, 0.05205397680401802, 1.2773634195327759, ...
func (_EtherDelta *EtherDeltaFilterer) FilterWithdraw(opts *bind.FilterOpts) (*EtherDeltaWithdrawIterator, error) { logs, sub, err := _EtherDelta.contract.FilterLogs(opts, "Withdraw") if err != nil { return nil, err } return &EtherDeltaWithdrawIterator{contract: _EtherDelta.contract, event: "Withdraw", logs: log...
[ 0.17403927445411682, 0.2676956057548523, 0.9631779193878174, 0.019066395238041878, -0.9250388741493225, 0.21939796209335327, 0.2856627106666565, -0.9191114902496338, 0.7017704248428345, -0.3084404766559601, 0.42802101373672485, 0.7721039652824402, 0.24852785468101501, 0.21175090968608856, ...
func (_EtherDelta *EtherDeltaFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *EtherDeltaWithdraw) (event.Subscription, error) { logs, sub, err := _EtherDelta.contract.WatchLogs(opts, "Withdraw") if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer su...
[ 0.6140812635421753, -0.13584665954113007, 1.1243975162506104, -0.41331058740615845, -0.33016279339790344, -0.3642997145652771, 0.4404172897338867, -1.2241588830947876, 0.47038203477859497, -0.6981321573257446, 0.18810954689979553, 1.1143020391464233, 0.7564128637313843, 0.3868793845176697,...
func AttributeValidationCode(att *expr.AttributeExpr, put expr.UserType, attCtx *AttributeContext, req, alias bool, target, attName string) string { seen := make(map[string]*bytes.Buffer) return recurseValidationCode(att, put, attCtx, req, alias, target, attName, seen).String() }
[ -0.5190312266349792, -0.8468908667564392, 0.20517747104167938, -0.8112719655036926, -0.8930996656417847, -0.2600392997264862, 0.8231894969940186, 0.04545268043875694, 0.5744071006774902, 0.43510305881500244, 0.2901459336280823, 0.9355531930923462, 1.1695849895477295, 0.2528517544269562, ...
func ValidationCode(att *expr.AttributeExpr, put expr.UserType, attCtx *AttributeContext, req, alias bool, target string) string { seen := make(map[string]*bytes.Buffer) return recurseValidationCode(att, put, attCtx, req, alias, target, target, seen).String() }
[ -0.21670113503932953, -0.6067879796028137, 0.2789495289325714, -0.620306670665741, -0.7659526467323303, -0.16053414344787598, 0.5625177025794983, -0.05173971876502037, 0.20966044068336487, 0.2938806712627411, 0.6221299171447754, 0.9343919157981873, 1.1160719394683838, 0.45116183161735535, ...
func validationCode(att *expr.AttributeExpr, attCtx *AttributeContext, req, alias bool, target, context string) string { validation := att.Validation if ut, ok := att.Type.(expr.UserType); ok { val := ut.Attribute().Validation if val != nil { if validation == nil { validation = val } else { validati...
[ -1.2112008333206177, -0.3690481185913086, 0.8129050135612488, -0.6567923426628113, -0.5613520741462708, -0.4185446798801422, -0.004878555424511433, -0.35307249426841736, 0.4377620816230774, 1.0425176620483398, 0.5806825757026672, 0.2713880240917206, 1.4005582332611084, 0.868529736995697, ...
func hasValidations(attCtx *AttributeContext, ut expr.UserType) bool { // We need to check empirically whether there are validations to be // generated, we can't just generate and check whether something was // generated to avoid infinite recursions. res := false done := errors.New("done") Walk(ut.Attribute(), fu...
[ -0.9669821858406067, 0.37569659948349, 0.6973177790641785, -0.2140553593635559, -0.1412740796804428, 0.08264485001564026, 0.7180469632148743, -0.1239963173866272, -0.3071851134300232, -0.037089940160512924, -0.5722201466560364, -0.48861056566238403, 0.5979354977607727, 1.2452654838562012, ...
func generatedRequiredValidation(att *expr.AttributeExpr, attCtx *AttributeContext) (res []string) { if att.Validation == nil { return } obj := expr.AsObject(att.Type) for _, req := range att.Validation.Required { reqAtt := obj.Attribute(req) if reqAtt == nil { continue } if !attCtx.Pointer && expr.IsP...
[ -1.8060884475708008, -0.62301105260849, 0.8082432150840759, -0.17085307836532593, -0.5462695360183716, 0.7944368720054626, -0.07750306278467178, -0.5522757172584534, -0.04869772866368294, 0.725341796875, -0.4331277906894684, 0.3634011447429657, 0.31203731894493103, 1.353784441947937, 0.5...
func toSlice(val []any) string { elems := make([]string, len(val)) for i, v := range val { elems[i] = fmt.Sprintf("%#v", v) } return fmt.Sprintf("[]any{%s}", strings.Join(elems, ", ")) }
[ -0.15211011469364166, -0.260701447725296, 0.513246476650238, 0.1855718195438385, 0.16299289464950562, -0.5187055468559265, -1.4126743078231812, -0.4852157533168793, 0.018955521285533905, 1.240816593170166, 0.6885520815849304, 0.044193197041749954, 0.298069566488266, 0.11494877934455872, ...
func oneof(target string, vals []any) string { elems := make([]string, len(vals)) for i, v := range vals { elems[i] = fmt.Sprintf("%s == %#v", target, v) } return strings.Join(elems, " || ") }
[ -0.14828452467918396, -0.3176394999027252, 0.46972593665122986, -0.6024513840675354, 0.04522860422730446, -0.5684741139411926, -1.3323525190353394, -0.0286293663084507, 0.010413979180157185, 0.317786306142807, 1.5994038581848145, -0.1815466284751892, 0.4898020625114441, -0.1124870479106903...
func constant(formatName string) string { switch formatName { case "date": return "goa.FormatDate" case "date-time": return "goa.FormatDateTime" case "uuid": return "goa.FormatUUID" case "email": return "goa.FormatEmail" case "hostname": return "goa.FormatHostname" case "ipv4": return "goa.FormatIPv4...
[ -0.4113377332687378, -1.344592571258545, 0.664310872554779, -0.5765657424926758, -0.8490116000175476, 0.5964189171791077, -0.6829515099525452, 0.019329605624079704, -0.10598393529653549, 0.21173156797885895, 0.01288636215031147, 0.5343883037567139, 0.1561233550310135, 0.14712563157081604, ...
func (t Tools) UnwrapICMPMessage(index int, body []byte) (*icmp.Message, error) { if index < 4 { return nil, fmt.Errorf("incorrect length of icmp message") } unwrapped, err := icmp.ParseMessage(ethr.ICMPProtocolNumber(t.IPVersion), body[index-4:]) if err != nil { return nil, fmt.Errorf("failed to unwrap icmp pa...
[ -0.7704594731330872, -0.0630306676030159, 0.25507786870002747, -1.1234596967697144, 0.35502132773399353, -0.09380252659320831, -0.03481581062078476, -0.5287173986434937, -0.35195720195770264, 0.21878716349601746, -0.1564074605703354, 0.4571872055530548, -1.7071044445037842, -1.357144355773...
func AppendStringToFile(path, text string) error { f, err := os.OpenFile(path, os.O_APPEND|os.O_WRONLY, os.ModeAppend) if err != nil { return err } defer f.Close() _, err = f.WriteString("\n" + text) if err != nil { return err } return nil }
[ 0.6685337424278259, -0.9498124718666077, 0.4635775685310364, -0.6154496073722839, -0.08099496364593506, 0.7212613224983215, -0.21003977954387665, 0.1263546198606491, -0.7714523673057556, 0.4863680601119995, 0.6205734014511108, 0.28963544964790344, 0.17177055776119232, -0.2826813757419586, ...
func doEvery(d time.Duration, f func(time.Time)) { for x := range time.Tick(d) { f(x) } }
[ -0.36396926641464233, 0.9723865985870361, 0.5603417158126831, 0.07525854557752609, 0.7184698581695557, 0.2809096872806549, -0.8442865014076233, -0.25382018089294434, -1.0780519247055054, 0.6065182685852051, -0.17061424255371094, 0.5497775673866272, 1.2917916774749756, 0.6229630708694458, ...
func RemoveContents(dir string) error { d, err := os.Open(dir) if err != nil { return err } defer d.Close() names, err := d.Readdirnames(-1) if err != nil { return err } for _, name := range names { err = os.RemoveAll(filepath.Join(dir, name)) if err != nil { return err } } return nil }
[ -0.6294083595275879, 0.1640865057706833, 0.4212207794189453, -0.11191744357347488, -0.9044643044471741, -0.28283819556236267, 0.7605795860290527, -0.6409610509872437, 0.04547572508454323, 0.26197683811187744, 0.40959689021110535, -0.30386024713516235, -0.8317544460296631, 0.781763613224029...
func ThumbnailFromFile(fn string) (image.Image, error) { if !*Progress { log.Printf("ThumbnailFromFile(%s)", fn) } realFn := fn if strings.HasSuffix(fn, ".CR2") || strings.HasSuffix(fn, ".DNG") || strings.HasSuffix(fn, ".NEF") { realFn = os.TempDir() + string(os.PathSeparator) + path.Base(fn) + ".jpg" e...
[ 0.4204913377761841, -0.018422555178403854, 0.5178892612457275, 0.5365428328514099, -0.8959061503410339, 0.006157547235488892, 0.6634871363639832, 0.07290897518396378, -0.5653886198997498, -0.2174036055803299, -0.3067541718482971, -0.29165056347846985, 0.336256742477417, 0.08523106575012207...
func ExtractThumbnailFromRaw(in, out string) error { cmd := exec.Command(*DcRaw, "-c", "-e", in) var output bytes.Buffer cmd.Stdout = &output err := cmd.Run() if err != nil { return err } return ioutil.WriteFile(out, output.Bytes(), 0600) }
[ 0.37804165482521057, 0.25269463658332825, 0.8717403411865234, 0.2653181850910187, -0.7113434076309204, -0.3077670931816101, 0.4602273106575012, 0.4253990054130554, 0.12458612024784088, -0.43523427844047546, -0.762458086013794, -0.4353048801422119, 0.5921881794929504, 0.17129512131214142, ...
func (c *Client) NewQuery(kind string) storage.Query { return &Query{query: datastore.NewQuery(kind)} }
[ 0.1419818103313446, -0.28172537684440613, 0.054342057555913925, 0.2925686240196228, -0.6245324611663818, -0.45470747351646423, -1.2616822719573975, -0.2663169503211975, 0.1460663378238678, -0.3217661380767822, 0.5335924625396729, 0.9193737506866455, -0.31246551871299744, -0.025316165760159...
func (q *Query) Filter(filter string, value interface{}) storage.Query { return &Query{query: q.query.Filter(filter, value)} }
[ 0.600052535533905, 0.15638302266597748, 0.1331990361213684, 0.3714350163936615, -1.6549746990203857, -0.04558084160089493, -1.0307197570800781, -0.32991501688957214, -0.27198249101638794, -0.4806358218193054, 0.5856052041053772, 0.5876920819282532, 0.35239872336387634, 0.03152099996805191,...
func (q *Query) Require(name string, value interface{}) storage.Query { return &Query{query: q.query.Filter(fmt.Sprintf("%s =", name), value)} }
[ -0.3199094831943512, 0.09704034775495529, 0.18292009830474854, -0.4095642566680908, -1.4180694818496704, -0.07400357723236084, -1.1304861307144165, -0.814850926399231, -0.47517555952072144, 0.4338950216770172, 0.33265143632888794, 0.32307979464530945, -0.21800567209720612, 0.36283582448959...
func (q *Query) Order(order string) storage.Query { return &Query{query: q.query.Order(order)} }
[ 0.30920690298080444, 0.10909280180931091, 0.05622819811105728, 0.526043713092804, -0.5959396362304688, -0.3118523359298706, -1.5473361015319824, -0.2553907334804535, 0.23531654477119446, -0.5996994376182556, 0.007351427339017391, 0.00018599815666675568, 0.5028414726257324, 0.18334878981113...
func (q *Query) ApplyCursor(cursorStr string) (storage.Query, error) { if cursorStr != "" { cursor, err := datastore.DecodeCursor(cursorStr) if err != nil { return nil, internalError(err) } q = &Query{query: q.query.Start(cursor)} } return q, nil }
[ 0.6786586046218872, -0.5489818453788757, 0.37608569860458374, -0.019357433542609215, -1.469793677330017, -0.6048028469085693, -0.709105908870697, 0.9952658414840698, 0.9453054666519165, -0.5106646418571472, 0.4257371127605438, 0.015283601358532906, -0.3753397464752197, 1.1311601400375366, ...
func TravelCost(from *SpaceSystem, to *SpaceSystem) float64 { return from.DistanceTo(to) }
[ -0.15585139393806458, 0.050475724041461945, 0.5012516975402832, -0.07582184672355652, -0.7925434708595276, 0.07560790330171585, -0.6768375039100647, -0.3657449185848236, 0.048706308007240295, 1.058760166168213, 0.028686044737696648, 0.985065221786499, -0.06344734877347946, 0.02479780651628...
func init() { RootCmd.AddCommand(DeployCmd) DeployCmd.Flags().StringP("file", "f", "", "file used to specify the job to deploy (required)") DeployCmd.Flags().StringP("port", "p", "", "connect to a specific port (default: 3939)") DeployCmd.MarkFlagRequired("file") }
[ 0.6593115329742432, -0.7999208569526672, 0.8865260481834412, -0.3046284317970276, 0.7777941823005676, 0.8299940824508667, 0.43751662969589233, 0.8057832717895508, -0.8676096200942993, -0.597721517086029, 0.0368381030857563, 0.5812508463859558, 0.2245105803012848, 1.419768214225769, -0.19...
func deployJob(cmd *cobra.Command, args []string) { port, _ := cmd.Flags().GetString("port") if port == "" { port = DefaultPort } name, _ := cmd.Flags().GetString("file") yaml := unmarsharlYaml(readJobFile(name)) if !semanticCheck(yaml) { os.Exit(2) } currentDir, _ := os.Getwd() var...
[ 0.3350071609020233, -0.6282526254653931, 1.0780625343322754, 0.3379732072353363, 0.18877382576465607, 0.17948222160339355, -0.0364454947412014, 0.6778784990310669, -0.6773596405982971, 0.3249635100364685, -0.5788688659667969, 0.46888935565948486, -0.6911692023277283, 0.746338963508606, 0...
func semanticCheck(yaml Config) bool { var status = true if yaml.Provider.Version == "2.0.0" { if yaml.Job.Name == "" { printField("\n - Name") status = false } if yaml.Job.Description == "" { printField("\n - Description") status = false ...
[ -0.04378413408994675, -0.37831100821495056, 0.6342538595199585, 0.48336324095726013, -0.2184504121541977, 0.3602741062641144, -0.15537600219249725, 0.9459014534950256, 0.05450955033302307, 0.6385506987571716, 0.12257777899503708, 0.7622861266136169, -0.16670621931552887, 0.8131849765777588...
func printField(field string) { if field != "" { fmt.Println(field + " field is missing from Yaml config.") } }
[ 0.7628341317176819, 0.20691248774528503, 0.4566802680492401, -0.8000072836875916, 0.5344243049621582, 0.8273287415504456, -0.14647597074508667, 0.5282459259033203, -0.333455890417099, 0.3540191948413849, -0.1635732501745224, 0.687620222568512, -0.34408965706825256, 1.3472871780395508, 0....
func readJobFile(name string) []byte { file, err := os.Open(name) if err != nil { log.Fatal(err) } bytes, _ := ioutil.ReadAll(file) defer file.Close() return bytes }
[ 0.4125001132488251, -0.20542067289352417, 1.020361304283142, -0.036246202886104584, -1.348999261856079, 0.9565221071243286, -0.6297168135643005, 0.04031871259212494, -1.4838215112686157, 0.2289934754371643, -0.5549681782722473, -0.05172191187739372, -1.0249754190444946, 0.08749212324619293...
func unmarsharlYaml(byteArray []byte) Config { var cfg Config err := yaml.Unmarshal([]byte(byteArray), &cfg) if err != nil { log.Fatalf("error: %v", err) } return cfg }
[ 0.8139777779579163, -0.033485572785139084, 0.6692520380020142, -0.16729964315891266, -0.6748145818710327, -0.9990145564079285, 0.4579342007637024, 0.39648687839508057, 0.23044656217098236, 0.23562180995941162, -0.8316736817359924, -0.16582588851451874, -0.4657514691352844, 0.41547143459320...
func ensureDirectory(dir string) bool { if _, err := os.Stat(dir); os.IsNotExist(err) { return false } return true }
[ -0.6528912782669067, 0.30854740738868713, 0.6850734353065491, 0.1936161369085312, 0.7354407906532288, 0.6928531527519226, -0.3130868971347809, -0.3855954110622406, 0.10272902250289917, -0.9159379601478577, -0.23303231596946716, -0.21054819226264954, 0.11298774182796478, 0.9039521813392639,...
func getScheduleString(name string, port string) string { dir, _ := os.Getwd() absPath := []byte(dir + "/" + name) ss := makePostRequest(fmt.Sprintf("http://localhost%s/schedule", port), bytes.NewBuffer(absPath)) return ss }
[ -0.6357213854789734, -0.2899608612060547, 0.6725374460220337, 0.0700383260846138, -0.9019864797592163, -0.1560550481081009, -0.6922838091850281, -0.8736724853515625, -0.6957840323448181, 0.3448023200035095, 0.38372802734375, 0.6502339839935303, -0.5638416409492493, -0.4992016851902008, 0...
func newNs(name string) (*namespace, error) { ns := &namespace{ name: name, setMap: make(map[string]string), podMap: make(map[types.UID]*corev1.Pod), npMap: make(map[string]*networkingv1.NetworkPolicy), ipsMgr: ipsm.NewIpsetManager(), iptMgr: iptm.NewIptablesManager(), } return ns, nil }
[ -0.9019715785980225, -0.07222819328308105, 0.34348055720329285, -0.1606978178024292, -1.2240508794784546, -0.40418192744255066, -0.4641796946525574, -1.2327758073806763, 0.9829047918319702, -0.23278479278087616, -0.8985605835914612, -0.20428404211997986, 0.19214016199111938, -0.09176351130...
func (npMgr *NetworkPolicyManager) InitAllNsList() error { allNs := npMgr.nsMap[util.KubeAllNamespacesFlag] for nsName := range npMgr.nsMap { if nsName == util.KubeAllNamespacesFlag { continue } if err := allNs.ipsMgr.AddToList(util.KubeAllNamespacesFlag, nsName); err != nil { log.Errorf("Error: failed t...
[ 0.31932777166366577, -0.26527705788612366, 0.7755560874938965, -0.5354967713356018, -0.2983980178833008, 0.41759586334228516, -1.3916667699813843, -0.42454907298088074, 0.4211301803588867, 0.22080755233764648, 0.044537436217069626, 0.016949279233813286, -0.4030919075012207, 1.7864738702774...
func (npMgr *NetworkPolicyManager) UninitAllNsList() error { allNs := npMgr.nsMap[util.KubeAllNamespacesFlag] for nsName := range npMgr.nsMap { if nsName == util.KubeAllNamespacesFlag { continue } if err := allNs.ipsMgr.DeleteFromList(util.KubeAllNamespacesFlag, nsName); err != nil { log.Errorf("Error: f...
[ 0.10950130969285965, -0.15458546578884125, 0.47312018275260925, -1.0292508602142334, -0.5679693818092346, 0.044107068330049515, -0.8145713210105896, -0.10479027777910233, 0.1464444249868393, 0.25362515449523926, -0.2131473422050476, 0.1475522369146347, -0.6752349138259888, 1.12750995159149...
func (npMgr *NetworkPolicyManager) AddNamespace(nsObj *corev1.Namespace) error { npMgr.Lock() defer npMgr.Unlock() var err error nsName, nsNs, nsLabel := nsObj.ObjectMeta.Name, nsObj.ObjectMeta.Namespace, nsObj.ObjectMeta.Labels log.Printf("NAMESPACE CREATING: [%s/%s/%+v]", nsName, nsNs, nsLabel) ipsMgr := npM...
[ -0.7557045221328735, -0.0160332303494215, 0.8349887728691101, -0.8718036413192749, -0.09990758448839188, 0.1607077270746231, -0.8084120154380798, -0.3922538161277771, 1.1784594058990479, -0.21932809054851532, 0.06239863857626915, 0.027784546837210655, 0.10167763382196426, 0.600641250610351...
func (npMgr *NetworkPolicyManager) UpdateNamespace(oldNsObj *corev1.Namespace, newNsObj *corev1.Namespace) error { var err error oldNsName, oldNsNs, oldNsLabel := oldNsObj.ObjectMeta.Name, oldNsObj.ObjectMeta.Namespace, oldNsObj.ObjectMeta.Labels newNsName, newNsNs, newNsLabel := newNsObj.ObjectMeta.Name, newNsObj....
[ -0.4175401031970978, -0.8434661626815796, 1.0093554258346558, -0.767262876033783, -0.22815866768360138, 0.4671342074871063, -0.8504481911659241, -0.7366893887519836, 1.4115116596221924, 0.798315167427063, 0.1969900280237198, 0.6372985243797302, -0.23885875940322876, 0.6801284551620483, 0...
func (npMgr *NetworkPolicyManager) DeleteNamespace(nsObj *corev1.Namespace) error { npMgr.Lock() defer npMgr.Unlock() var err error nsName, nsNs, nsLabel := nsObj.ObjectMeta.Name, nsObj.ObjectMeta.Namespace, nsObj.ObjectMeta.Labels log.Printf("NAMESPACE DELETING: [%s/%s/%+v]", nsName, nsNs, nsLabel) _, exists ...
[ -0.4501263499259949, -0.26992571353912354, 0.5484641194343567, -0.7324050664901733, -0.3965747654438019, -0.3168031871318817, -0.5886955857276917, -0.6231454014778137, 1.35068941116333, -0.3347778618335724, 0.16633820533752441, 0.18417321145534515, -0.0596918985247612, 0.7806947231292725, ...
func (vm *VirtualMachine) RunWithGasLimit(entryID, limit int, params ...int64) (int64, error) { count := 0 // Init count buffer vm.Ignite(entryID, params...) // Ignite vm for !vm.Exited { // Do until vm exits vm.Execute() // Execute if vm.Delegate != nil { // Check for delegate call vm.Delegate() // Ru...
[ -0.3303389549255371, -0.19641828536987305, 1.025560736656189, 0.3169611990451813, -0.14781974256038666, -0.06695385277271271, -0.5887616872787476, -0.15371249616146088, -0.8194718956947327, 0.5309938788414001, 0.16112883388996124, 0.20595048367977142, -0.6636779308319092, -0.03235667198896...
func (vm *VirtualMachine) Run(entryID int, params ...int64) (int64, error) { vm.Ignite(entryID, params...) // Ignite VM for !vm.Exited { // Check not already exited vm.Execute() // Execute if vm.Delegate != nil { // Check for errors vm.Delegate() // Run delegate call vm.Delegate = nil // Delegate run,...
[ -0.5653061270713806, 0.3346002995967865, 0.7018697261810303, 0.1756441444158554, 0.3447820246219635, 0.3232762813568115, -0.2296171933412552, 0.1121264398097992, -0.5259084105491638, 0.7637016773223877, -0.15036870539188385, 0.015166988596320152, -0.8171845078468323, 0.24610750377178192, ...
func (r *Resolver) ResolveFunc(module, field string) FunctionImport { //fmt.Printf("Resolve func: %s %s\n", module, field) // Log resolve switch module { // Handle module types case "env": // Env module switch field { // Handle fields case "__ursa_ping": return func(vm *VirtualMachine) int64 { return vm....
[ -0.004925808869302273, -0.1927376389503479, 0.6278913617134094, -0.010453958995640278, 0.09404764324426651, 0.05039012432098389, 0.6257500648498535, 0.22369173169136047, -0.3137603998184204, 0.46660780906677246, 0.20148777961730957, 0.43855753540992737, 0.18136359751224518, 0.3061144351959...
func (r *Resolver) ResolveGlobal(module, field string) int64 { fmt.Printf("Resolve global: %s %s\n", module, field) // Log resolve global switch module { // Handle module types case "env": // Env module switch field { // Handle fields case "__ursa_magic": return 424 // Return magic default: panic(fmt.Er...
[ -0.8684347867965698, 0.48550745844841003, 0.7086067199707031, 0.25293609499931335, -0.028379084542393684, 0.7422969937324524, 0.335075318813324, 0.31271475553512573, -1.1078652143478394, 1.0444599390029907, -0.24206483364105225, 0.5237519145011902, -1.0722638368606567, 0.4371950626373291, ...
func (h *Handler) AddDeviceGroup(ctx context.Context, addRequest *grpc_device_go.AddDeviceGroupRequest) (*grpc_device_go.DeviceGroup, error) { err := devices.ValidAddDeviceGroupRequest(addRequest) if err != nil { log.Error().Str("trace", err.DebugReport()).Msg("invalid add device group request") return nil, conve...
[ -1.7424819469451904, 1.1546658277511597, 0.46432745456695557, -0.8108399510383606, -0.6450815200805664, -0.16158035397529602, 0.26179754734039307, -0.9062306880950928, -0.26551738381385803, -0.4900149405002594, 0.4013945460319519, -0.2741289436817169, -1.0246374607086182, 1.400079965591430...
func (h *Handler) ListDeviceGroups(ctx context.Context, organizationID *grpc_organization_go.OrganizationId) (*grpc_device_go.DeviceGroupList, error) { err := entities.ValidOrganizationID(organizationID) if err != nil { log.Error().Str("trace", err.DebugReport()).Msg("invalid organization identifier") return nil,...
[ -1.430353045463562, 0.7748923301696777, 0.16745907068252563, -1.0301119089126587, -0.35683050751686096, -1.108201026916504, -0.10070466250181198, -0.8663590550422668, 0.5376861691474915, 0.43977242708206177, -0.2991750240325928, 0.5522950887680054, -0.8866886496543884, 1.03132164478302, ...
func (h *Handler) GetDeviceGroup(ctx context.Context, DeviceGroupID *grpc_device_go.DeviceGroupId) (*grpc_device_go.DeviceGroup, error) { err := devices.ValidDeviceGroupId(DeviceGroupID) if err != nil { log.Error().Str("trace", err.DebugReport()).Msg("invalid device group identifier") return nil, conversions.ToGR...
[ -0.8737176060676575, 0.9579681158065796, 0.021537065505981445, -0.7887692451477051, -0.24480417370796204, -0.6287639737129211, 0.6898720860481262, -1.2316190004348755, 0.22341063618659973, 0.15332160890102386, 0.3633491098880768, 0.6025153398513794, -0.9671781659126282, 1.1308016777038574,...
func (h *Handler) RemoveDeviceGroup(ctx context.Context, removeRequest *grpc_device_go.RemoveDeviceGroupRequest) (*grpc_common_go.Success, error) { err := devices.ValidRemoveDeviceGroupRequest(removeRequest) if err != nil { log.Error().Str("trace", err.DebugReport()).Msg("invalid remove device request") return ni...
[ -2.107529878616333, 0.8429950475692749, 0.1567813903093338, -0.4694109559059143, -1.1647027730941772, -0.5814382433891296, 0.4896790683269501, -0.1626928150653839, -0.3364216983318329, 0.2328975349664688, 0.0147280627861619, -0.2759789526462555, -1.0853923559188843, 1.2519413232803345, 0...
func (h *Handler) GetDeviceGroupsByNames(ctx context.Context, request *grpc_device_go.GetDeviceGroupsRequest) (*grpc_device_go.DeviceGroupList, error) { err := devices.ValidGetDeviceGroupsRequest(request) if err != nil { log.Error().Str("trace", err.DebugReport()).Msg("invalid get device groups request") return n...
[ -1.7337515354156494, 1.094704270362854, -0.00010649237810866907, -1.1154285669326782, -0.5640131235122681, -1.0381660461425781, -0.2856217324733734, -1.3994840383529663, -0.1566634327173233, 0.07818235456943512, -0.3437071144580841, 0.28942424058914185, -0.9142128825187683, 0.7608659863471...
func (h *Handler) AddDevice(ctx context.Context, addRequest *grpc_device_go.AddDeviceRequest) (*grpc_device_go.Device, error) { err := devices.ValidAddDeviceRequest(addRequest) if err != nil { log.Error().Str("trace", err.DebugReport()).Msg("invalid add device request") return nil, conversions.ToGRPCError(err) }...
[ -1.4387195110321045, 0.6226112842559814, 0.9859221577644348, 0.31837818026542664, 0.02335745468735695, 0.7246611714363098, 0.3887585997581482, -0.726810872554779, 0.053049877285957336, -0.8849905729293823, 1.419845700263977, 0.19788630306720734, -1.4828624725341797, 1.0099148750305176, 0...
func (h *Handler) ListDevices(ctx context.Context, deviceGroupRequest *grpc_device_go.DeviceGroupId) (*grpc_device_go.DeviceList, error) { err := devices.ValidDeviceGroupId(deviceGroupRequest) if err != nil { log.Error().Str("trace", err.DebugReport()).Msg("invalid device group identifier") return nil, conversion...
[ -1.4025187492370605, 0.30391666293144226, 0.194549560546875, -0.26820194721221924, 0.05010377988219261, -0.5018781423568726, 0.47898274660110474, -1.0383638143539429, 0.41838598251342773, 0.4471331238746643, 0.6637492179870605, 0.25359398126602173, -1.1083574295043945, 1.0922532081604004, ...
func (h *Handler) GetDevice(ctx context.Context, deviceRequest *grpc_device_go.DeviceId) (*grpc_device_go.Device, error) { err := devices.ValidDeviceID(deviceRequest) if err != nil { log.Error().Str("trace", err.DebugReport()).Msg("invalid device identifier") return nil, conversions.ToGRPCError(err) } device, e...
[ -0.8078650236129761, 0.72213214635849, 0.612297534942627, 0.3554399907588959, 0.5888452529907227, 0.1330089271068573, 0.8646434545516968, -1.0203195810317993, 0.39787691831588745, -0.27447840571403503, 1.2006949186325073, 1.0180511474609375, -1.165157437324524, 0.5986979007720947, 1.2137...
func (h *Handler) RemoveDevice(ctx context.Context, removeRequest *grpc_device_go.RemoveDeviceRequest) (*grpc_common_go.Success, error) { err := devices.ValidRemoveDeviceRequest(removeRequest) if err != nil { log.Error().Str("trace", err.DebugReport()).Msg("invalid remove device request") return nil, conversions....
[ -1.5665861368179321, 0.5015543699264526, 0.8184859156608582, 0.5411830544471741, -0.2079426795244217, 0.48715415596961975, 0.7902158498764038, -0.2060314118862152, -0.1124151349067688, -0.4704996347427368, 0.5901657342910767, 0.13720229268074036, -1.3256992101669312, 0.9610422253608704, ...
func (h *Handler) UpdateDevice(ctx context.Context, request *grpc_device_go.UpdateDeviceRequest) (*grpc_device_go.Device, error) { err := devices.ValidUpdateDeviceRequest(request) if err != nil { log.Error().Str("trace", err.DebugReport()).Msg("invalid update device request") return nil, conversions.ToGRPCError(e...
[ -1.6010469198226929, -0.180199533700943, 0.7426846623420715, 0.6107090711593628, -0.46358218789100647, 0.4607582986354828, 0.8698552250862122, -0.7967037558555603, -0.06180683150887489, -0.09113354980945587, 0.8741304278373718, 0.7850690484046936, -1.3684037923812866, 0.8473014235496521, ...
func (a *ioStream) attach(stdoutW, stderrW io.Writer) error { params := rata.Params{ "handle": a.containerHandle, "pid": fmt.Sprintf("%d", a.processID), "streamid": fmt.Sprintf("%d", a.streamID), } a.wg = new(sync.WaitGroup) if stdoutW != nil { err := a.copyStream(params, stdoutW, routes.Stdout) ...
[ 0.5201892256736755, -1.002432107925415, 0.7934572100639343, -0.47560566663742065, -0.1506107747554779, 0.2716482877731323, 0.5083141922950745, -0.32981184124946594, -0.7665632367134094, 0.4637904167175293, 1.0187679529190063, 0.7823874950408936, -0.26923203468322754, 0.9801800847053528, ...
func Age(seconds float64, planet Planet) float64 { earthAge := seconds / 31557600 switch planet { case "Mercury": return earthAge / 0.2408467 case "Venus": return earthAge / 0.61519726 case "Mars": return earthAge / 1.8808158 case "Jupiter": return earthAge / 11.862615 case "Saturn": return earthAge / ...
[ -0.849402904510498, -0.24078918993473053, 0.922245979309082, -0.39641451835632324, 0.02451510541141033, 0.9804409146308899, -0.7787929177284241, -0.2720760703086853, -1.4006531238555908, 0.09510048478841782, 0.5723972320556641, 0.3318060040473938, -0.27159273624420166, 1.4235392808914185, ...
func ConfigReadFile(path string) (string, []byte, error) { if strings.HasPrefix(path, "file://") { path = path[7:] } pos := strings.LastIndexByte(path, '.') if pos == -1 { pos += len(path) } data, err := ioutil.ReadFile(path) last := strings.LastIndex(path, ".") + 1 if last == 0 { return "", nil, fmt.Er...
[ -0.6009207963943481, -0.3334510028362274, 1.1043076515197754, -0.37422239780426025, -0.5857741236686707, 0.14869961142539978, 0.05518864095211029, 0.23642322421073914, -1.2524909973144531, 0.8885164856910706, 0.4036281108856201, 0.1296127438545227, -0.22586143016815186, 0.2686834931373596,...
func ConfigReadHTTP(path string) (string, []byte, error) { req, err := http.NewRequest("GET", path, nil) if err != nil { return "", nil, err } req.Header.Set(HeaderAccept, MimeApplicationJSON) resp, err := http.DefaultClient.Do(req) if err != nil { return "", nil, err } defer resp.Body.Close() data, err :=...
[ -0.7192245721817017, -0.6654796004295349, 1.071485161781311, -0.37671658396720886, -0.47648486495018005, 0.3459067940711975, -0.6452326774597168, -0.3958812654018402, -0.6514362692832947, 1.2181719541549683, -0.20101116597652435, 0.6035210490226746, -0.39772844314575195, 0.1983934342861175...
func (a *Async) watcher() { defer func() { close(a.forceQuit) }() var buf buffer for { timeout := time.After(time.Second / 2) for i := 0; i < a.bufSize; i++ { select { case req := <-a.taskChan: a.flushReq(&buf, req) case <-timeout: goto ForEnd case <-a.quit: goto ForEnd } } For...
[ -0.08118776232004166, -0.7518272995948792, 0.6513139605522156, -0.04419400170445442, -0.07537873089313507, 0.31438031792640686, 0.7718235850334167, -0.6691790819168091, -0.6119304299354553, -0.5847883224487305, 0.2720009982585907, 0.4896031618118286, 0.42767494916915894, 1.6417230367660522...
func (a *Async) flushReq(b *buffer, t *task) { //do print for this b.Append(t) }
[ -1.1841388940811157, -0.027096278965473175, 0.5234808325767517, 0.5077122449874878, -0.0054016876965761185, 0.6815121173858643, -0.3324979245662689, 0.25280338525772095, -0.325507789850235, 0.06814341247081757, -0.3386748731136322, 0.7700348496437073, -0.31651052832603455, 0.83798056840896...