text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (_CraftingI *CraftingICaller) NextItem(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _CraftingI.contract.Call(opts, &out, "next_item")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
} | [
-1.1424705982208252,
1.0209476947784424,
0.7647879123687744,
0.8008826971054077,
-0.578883707523346,
0.28730377554893494,
0.24137362837791443,
-0.6484606862068176,
0.06882019340991974,
-0.1655454784631729,
0.10047124326229095,
0.6430358290672302,
-0.6971166133880615,
-0.34642842411994934,
... |
func (_CraftingI *CraftingISession) NextItem() (*big.Int, error) {
return _CraftingI.Contract.NextItem(&_CraftingI.CallOpts)
} | [
-0.535835862159729,
1.6559231281280518,
0.35581663250923157,
0.5509452223777771,
-0.6204165816307068,
0.27625736594200134,
0.22359341382980347,
-0.5554155111312866,
0.2576630413532257,
-0.1866016685962677,
0.652594804763794,
0.3288407027721405,
-0.6778908967971802,
-0.8389505743980408,
1... |
func (_CraftingI *CraftingICallerSession) NextItem() (*big.Int, error) {
return _CraftingI.Contract.NextItem(&_CraftingI.CallOpts)
} | [
-0.5322455763816833,
1.3857165575027466,
0.28021183609962463,
0.5312950015068054,
-0.5999132394790649,
0.26554641127586365,
0.08715794235467911,
-0.5701004862785339,
0.30240270495414734,
-0.29593849182128906,
0.45746874809265137,
0.27609917521476746,
-0.819473147392273,
-1.0029628276824951... |
func (_CraftingI *CraftingICaller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error) {
var out []interface{}
err := _CraftingI.contract.Call(opts, &out, "ownerOf", tokenId)
if err != nil {
return *new(common.Address), err
}
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Add... | [
-0.38439756631851196,
0.3887571096420288,
0.5480648279190063,
-0.4099692404270172,
-0.2050197720527649,
-0.8035091161727905,
-0.18775290250778198,
-2.0309481620788574,
0.31048038601875305,
0.12059928476810455,
0.12161756306886673,
0.8606383204460144,
-0.5619140863418579,
-0.363433629274368... |
func (_CraftingI *CraftingISession) OwnerOf(tokenId *big.Int) (common.Address, error) {
return _CraftingI.Contract.OwnerOf(&_CraftingI.CallOpts, tokenId)
} | [
0.1218104362487793,
0.4454737603664398,
0.33738473057746887,
-0.7520464658737183,
-0.11958231776952744,
-0.9275045990943909,
-0.12463553249835968,
-2.1105124950408936,
0.6834655404090881,
0.2881633937358856,
0.2610107660293579,
0.6312817335128784,
-0.41807207465171814,
-0.6830300688743591,... |
func (_CraftingI *CraftingICallerSession) OwnerOf(tokenId *big.Int) (common.Address, error) {
return _CraftingI.Contract.OwnerOf(&_CraftingI.CallOpts, tokenId)
} | [
0.10716239362955093,
0.3540424108505249,
0.26573964953422546,
-0.8618849515914917,
-0.2035137414932251,
-0.9588801860809326,
-0.27841126918792725,
-2.1335012912750244,
0.5760601758956909,
0.24384167790412903,
0.10927583277225494,
0.6526215672492981,
-0.5199933648109436,
-0.6976840496063232... |
func (_CraftingI *CraftingICaller) Simulate(opts *bind.CallOpts, _summoner *big.Int, _base_type *big.Int, _item_type *big.Int, _crafting_materials *big.Int) (struct {
Crafted bool
Check *big.Int
Cost *big.Int
Dc *big.Int
}, error) {
var out []interface{}
err := _CraftingI.contract.Call(opts, &out, "simu... | [
-0.830517590045929,
1.081982970237732,
0.8580633401870728,
-0.15685038268566132,
-0.40989628434181213,
-0.7993278503417969,
-0.32993021607398987,
-0.6740800738334656,
-0.2323732227087021,
0.6875240206718445,
-0.37111255526542664,
0.39790618419647217,
-0.5773794651031494,
-0.904787242412567... |
func (_CraftingI *CraftingISession) Simulate(_summoner *big.Int, _base_type *big.Int, _item_type *big.Int, _crafting_materials *big.Int) (struct {
Crafted bool
Check *big.Int
Cost *big.Int
Dc *big.Int
}, error) {
return _CraftingI.Contract.Simulate(&_CraftingI.CallOpts, _summoner, _base_type, _item_type,... | [
-0.6084235906600952,
1.5603256225585938,
0.5182007551193237,
-0.038654666393995285,
-0.01868087612092495,
-0.6399604082107544,
-0.6166263222694397,
-0.6361879110336304,
-0.23335088789463043,
0.518984317779541,
-0.40766507387161255,
0.21078015863895416,
-0.48530855774879456,
-1.291668534278... |
func (_CraftingI *CraftingICallerSession) Simulate(_summoner *big.Int, _base_type *big.Int, _item_type *big.Int, _crafting_materials *big.Int) (struct {
Crafted bool
Check *big.Int
Cost *big.Int
Dc *big.Int
}, error) {
return _CraftingI.Contract.Simulate(&_CraftingI.CallOpts, _summoner, _base_type, _item... | [
-0.6329653263092041,
1.4585858583450317,
0.5007914900779724,
-0.08691823482513428,
-0.09514275193214417,
-0.6593390107154846,
-0.6394071578979492,
-0.6719709038734436,
-0.15551495552062988,
0.5003626942634583,
-0.46385565400123596,
0.15730056166648865,
-0.5316275358200073,
-1.3758208751678... |
func (_CraftingI *CraftingICaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) {
var out []interface{}
err := _CraftingI.contract.Call(opts, &out, "supportsInterface", interfaceId)
if err != nil {
return *new(bool), err
}
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
retur... | [
-1.1308175325393677,
0.6104538440704346,
0.5530258417129517,
0.009919139556586742,
-0.8089731931686401,
0.27344879508018494,
0.005534065421670675,
-0.777482807636261,
0.2615582346916199,
0.9164515137672424,
-0.5956180691719055,
-0.4035969376564026,
-1.8617362976074219,
0.3235344886779785,
... |
func (_CraftingI *CraftingISession) SupportsInterface(interfaceId [4]byte) (bool, error) {
return _CraftingI.Contract.SupportsInterface(&_CraftingI.CallOpts, interfaceId)
} | [
-1.08915114402771,
0.9683676362037659,
0.3358446955680847,
-0.5625206232070923,
-0.7585274577140808,
0.05901126563549042,
-0.055664774030447006,
-0.790990948677063,
0.6540140509605408,
0.8824731111526489,
-0.564786434173584,
-0.8127505779266357,
-1.772602915763855,
0.23218008875846863,
-... |
func (_CraftingI *CraftingICallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) {
return _CraftingI.Contract.SupportsInterface(&_CraftingI.CallOpts, interfaceId)
} | [
-1.0998719930648804,
0.848038911819458,
0.26437056064605713,
-0.7133910059928894,
-0.7609365582466125,
0.0776757299900055,
-0.19656626880168915,
-0.8885986804962158,
0.6789841055870056,
0.7795068621635437,
-0.6750168800354004,
-0.7720637917518616,
-1.8958405256271362,
0.2121085822582245,
... |
func (_CraftingI *CraftingICaller) Symbol(opts *bind.CallOpts) (string, error) {
var out []interface{}
err := _CraftingI.contract.Call(opts, &out, "symbol")
if err != nil {
return *new(string), err
}
out0 := *abi.ConvertType(out[0], new(string)).(*string)
return out0, err
} | [
-1.41026771068573,
0.9491731524467468,
0.5246273279190063,
0.2549953758716583,
-0.16851647198200226,
-0.34173572063446045,
0.250431627035141,
-0.9633612632751465,
0.5543846487998962,
0.5572828650474548,
-0.05486312508583069,
0.9885319471359253,
-0.2606300413608551,
-0.4276945888996124,
0... |
func (_CraftingI *CraftingISession) Symbol() (string, error) {
return _CraftingI.Contract.Symbol(&_CraftingI.CallOpts)
} | [
-1.2654423713684082,
1.214584469795227,
0.12495167553424835,
-0.265661358833313,
0.16561423242092133,
-0.25205329060554504,
0.6733500361442566,
-0.7324838638305664,
0.985234260559082,
0.47886183857917786,
0.03374968096613884,
0.741385281085968,
0.2576296925544739,
-1.1700643301010132,
0.... |
func (_CraftingI *CraftingICallerSession) Symbol() (string, error) {
return _CraftingI.Contract.Symbol(&_CraftingI.CallOpts)
} | [
-1.253199815750122,
0.9298299551010132,
0.09047498553991318,
-0.3070519268512726,
0.043940529227256775,
-0.24745391309261322,
0.466085284948349,
-0.6358085870742798,
0.9887242913246155,
0.37075182795524597,
-0.1631833016872406,
0.8344760537147522,
0.037954431027173996,
-1.3509119749069214,... |
func (_CraftingI *CraftingICaller) TokenByIndex(opts *bind.CallOpts, index *big.Int) (*big.Int, error) {
var out []interface{}
err := _CraftingI.contract.Call(opts, &out, "tokenByIndex", index)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out... | [
-1.0009355545043945,
0.6485776305198669,
0.7682380080223083,
-0.7204660773277283,
-0.33870673179626465,
-0.7534072995185852,
0.3664203882217407,
-0.7863745093345642,
0.45793774724006653,
0.13489148020744324,
-1.0010716915130615,
0.7847014665603638,
-0.7066165804862976,
-0.45473432540893555... |
func (_CraftingI *CraftingISession) TokenByIndex(index *big.Int) (*big.Int, error) {
return _CraftingI.Contract.TokenByIndex(&_CraftingI.CallOpts, index)
} | [
-0.8285502791404724,
0.8541800379753113,
0.3259146809577942,
-0.83577960729599,
-0.13725176453590393,
-0.6251951456069946,
0.7268063426017761,
-0.7654337882995605,
0.7177189588546753,
0.09112559258937836,
-0.9088822603225708,
0.43547970056533813,
-0.608834981918335,
-0.7814639210700989,
... |
func (_CraftingI *CraftingICallerSession) TokenByIndex(index *big.Int) (*big.Int, error) {
return _CraftingI.Contract.TokenByIndex(&_CraftingI.CallOpts, index)
} | [
-0.8708815574645996,
0.7062973976135254,
0.25412803888320923,
-0.8202551007270813,
-0.06663530319929123,
-0.6549388766288757,
0.5719983577728271,
-0.9085533022880554,
0.7498956322669983,
0.002719914074987173,
-1.0457470417022705,
0.39547914266586304,
-0.8241744041442871,
-0.885153770446777... |
func (_CraftingI *CraftingICaller) TokenOfOwnerByIndex(opts *bind.CallOpts, owner common.Address, index *big.Int) (*big.Int, error) {
var out []interface{}
err := _CraftingI.contract.Call(opts, &out, "tokenOfOwnerByIndex", owner, index)
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[... | [
-0.8929805755615234,
0.6716185808181763,
0.49421676993370056,
-0.02274329587817192,
-0.008714482188224792,
-0.9121114611625671,
0.5915684103965759,
-1.0712815523147583,
0.4399954378604889,
-0.06595949083566666,
-0.4275153577327728,
0.6750064492225647,
-0.2125360369682312,
-0.85850208997726... |
func (_CraftingI *CraftingISession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error) {
return _CraftingI.Contract.TokenOfOwnerByIndex(&_CraftingI.CallOpts, owner, index)
} | [
-0.6281523704528809,
0.5326802134513855,
0.2237221747636795,
0.17136675119400024,
-0.06370718032121658,
-0.8456400632858276,
0.8588343262672424,
-0.8841053247451782,
0.5075734257698059,
-0.2115963101387024,
-0.23616214096546173,
0.497042179107666,
0.09257499128580093,
-1.3310211896896362,
... |
func (_CraftingI *CraftingICallerSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error) {
return _CraftingI.Contract.TokenOfOwnerByIndex(&_CraftingI.CallOpts, owner, index)
} | [
-0.6592053174972534,
0.44242173433303833,
0.15367864072322845,
0.16124439239501953,
-0.05340896174311638,
-0.8790897130966187,
0.8073740601539612,
-0.9771209359169006,
0.5312250852584839,
-0.21474304795265198,
-0.3197270929813385,
0.5411381125450134,
0.006476827897131443,
-1.38503575325012... |
func (_CraftingI *CraftingICaller) TokenURI(opts *bind.CallOpts, _item *big.Int) (string, error) {
var out []interface{}
err := _CraftingI.contract.Call(opts, &out, "tokenURI", _item)
if err != nil {
return *new(string), err
}
out0 := *abi.ConvertType(out[0], new(string)).(*string)
return out0, err
} | [
-1.779388189315796,
0.5417750477790833,
0.7175907492637634,
-0.4799593687057495,
-0.7918781638145447,
-0.7701863646507263,
-0.3258756399154663,
-0.5278257727622986,
0.6933398842811584,
0.15313692390918732,
-0.5660927891731262,
0.736571729183197,
-0.6436775922775269,
-0.7251565456390381,
... |
func (_CraftingI *CraftingISession) TokenURI(_item *big.Int) (string, error) {
return _CraftingI.Contract.TokenURI(&_CraftingI.CallOpts, _item)
} | [
-1.73371422290802,
0.6386224031448364,
0.4296908974647522,
-0.8048874735832214,
-0.5118265151977539,
-0.6302115321159363,
0.07133179157972336,
-0.19711962342262268,
1.0505441427230835,
-0.05548230931162834,
-0.6280956864356995,
0.4228101968765259,
-0.35711294412612915,
-1.0824459791183472,... |
func (_CraftingI *CraftingICallerSession) TokenURI(_item *big.Int) (string, error) {
return _CraftingI.Contract.TokenURI(&_CraftingI.CallOpts, _item)
} | [
-1.714235782623291,
0.5029081702232361,
0.34500008821487427,
-0.8330366015434265,
-0.4860503673553467,
-0.7172891497612,
-0.010528475977480412,
-0.26864710450172424,
1.0666437149047852,
-0.17921820282936096,
-0.7762499451637268,
0.4734914302825928,
-0.4635545313358307,
-1.2033729553222656,... |
func (_CraftingI *CraftingICaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _CraftingI.contract.Call(opts, &out, "totalSupply")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
} | [
-1.549670934677124,
0.8984323143959045,
1.1714167594909668,
-0.5120499730110168,
-0.29531797766685486,
-0.32417240738868713,
0.46928006410598755,
-0.9878566265106201,
1.1168231964111328,
0.3395622968673706,
-0.7300722599029541,
0.013932568021118641,
-1.3265273571014404,
-0.6953666806221008... |
func (_CraftingI *CraftingISession) TotalSupply() (*big.Int, error) {
return _CraftingI.Contract.TotalSupply(&_CraftingI.CallOpts)
} | [
-0.9537193179130554,
1.3320361375808716,
0.6928611397743225,
-0.7278396487236023,
-0.2779584228992462,
-0.5076653361320496,
0.6146911978721619,
-0.8444280624389648,
1.4865264892578125,
0.2532329857349396,
-0.5444101691246033,
-0.40093886852264404,
-1.2685118913650513,
-1.061716079711914,
... |
func (_CraftingI *CraftingICallerSession) TotalSupply() (*big.Int, error) {
return _CraftingI.Contract.TotalSupply(&_CraftingI.CallOpts)
} | [
-0.8878517746925354,
1.165385365486145,
0.6145443916320801,
-0.7185447812080383,
-0.31181204319000244,
-0.5975947380065918,
0.544245719909668,
-0.8446862697601318,
1.5148344039916992,
0.1956881433725357,
-0.7443108558654785,
-0.38230037689208984,
-1.3408633470535278,
-1.142246127128601,
... |
func (_CraftingI *CraftingITransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
return _CraftingI.contract.Transact(opts, "approve", to, tokenId)
} | [
-0.6883336305618286,
0.5919383764266968,
0.2012270838022232,
-1.4803025722503662,
-0.39826205372810364,
-0.7779853343963623,
-0.6296502351760864,
-1.2313275337219238,
-0.38847270607948303,
0.5497633218765259,
-0.4227130115032196,
0.76040118932724,
-0.044025223702192307,
-0.8763870596885681... |
func (_CraftingI *CraftingISession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) {
return _CraftingI.Contract.Approve(&_CraftingI.TransactOpts, to, tokenId)
} | [
-0.5672534704208374,
0.8056923747062683,
0.3126985430717468,
-1.4996401071548462,
-0.38097497820854187,
-1.1429980993270874,
-0.6541036367416382,
-1.3921419382095337,
-0.5107543468475342,
0.8069555163383484,
-0.5207078456878662,
0.6528579592704773,
0.015348279848694801,
-0.8097993731498718... |
func (_CraftingI *CraftingITransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) {
return _CraftingI.Contract.Approve(&_CraftingI.TransactOpts, to, tokenId)
} | [
-0.5946938395500183,
0.6768925189971924,
0.2774996757507324,
-1.5622025728225708,
-0.19493094086647034,
-1.2798676490783691,
-0.6448613405227661,
-1.5633355379104614,
-0.4462437331676483,
0.8050051927566528,
-0.6549105048179626,
0.5155003070831299,
-0.051293354481458664,
-0.894974648952484... |
func (_CraftingI *CraftingITransactor) Craft(opts *bind.TransactOpts, _summoner *big.Int, _base_type uint8, _item_type uint8, _crafting_materials *big.Int) (*types.Transaction, error) {
return _CraftingI.contract.Transact(opts, "craft", _summoner, _base_type, _item_type, _crafting_materials)
} | [
-0.29608529806137085,
0.44684112071990967,
0.45283961296081543,
0.03619341179728508,
0.14058388769626617,
-0.4800853133201599,
0.2613670825958252,
-0.46880900859832764,
0.08757228404283524,
0.5106409788131714,
-0.6980989575386047,
0.35609740018844604,
0.2187013477087021,
-0.631992995738983... |
func (_CraftingI *CraftingISession) Craft(_summoner *big.Int, _base_type uint8, _item_type uint8, _crafting_materials *big.Int) (*types.Transaction, error) {
return _CraftingI.Contract.Craft(&_CraftingI.TransactOpts, _summoner, _base_type, _item_type, _crafting_materials)
} | [
-0.4138452112674713,
0.3794930577278137,
0.42336615920066833,
0.035221461206674576,
0.2369338870048523,
-0.5550583004951477,
0.13552623987197876,
-0.5777038931846619,
-0.1693573147058487,
0.6214815378189087,
-0.7660977244377136,
0.22886061668395996,
0.026764562353491783,
-0.757222890853881... |
func (_CraftingI *CraftingITransactorSession) Craft(_summoner *big.Int, _base_type uint8, _item_type uint8, _crafting_materials *big.Int) (*types.Transaction, error) {
return _CraftingI.Contract.Craft(&_CraftingI.TransactOpts, _summoner, _base_type, _item_type, _crafting_materials)
} | [
-0.36899083852767944,
0.3336043357849121,
0.3592934310436249,
-0.10221659392118454,
0.32580751180648804,
-0.616205632686615,
0.23921945691108704,
-0.6457194685935974,
-0.0030756592750549316,
0.5758446455001831,
-0.7351579666137695,
0.19877876341342926,
0.023199304938316345,
-0.920073032379... |
func (_CraftingI *CraftingITransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
return _CraftingI.contract.Transact(opts, "safeTransferFrom", from, to, tokenId)
} | [
0.04911668598651886,
0.3402988612651825,
0.005648917052894831,
-1.0102214813232422,
-0.2963206171989441,
0.04842647910118103,
-0.7446637153625488,
-0.6215245723724365,
0.04442036151885986,
0.06620720028877258,
-0.48070603609085083,
0.8659136295318604,
-0.10947804152965546,
-1.1672142744064... |
func (_CraftingI *CraftingISession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
return _CraftingI.Contract.SafeTransferFrom(&_CraftingI.TransactOpts, from, to, tokenId)
} | [
0.04833761975169182,
0.34736180305480957,
0.14381304383277893,
-0.9235631227493286,
-0.26523199677467346,
-0.1556832641363144,
-0.6947159767150879,
-0.8758306503295898,
0.060701169073581696,
0.1769392490386963,
-0.506401002407074,
0.8285953402519226,
-0.2081376612186432,
-1.326000213623046... |
func (_CraftingI *CraftingITransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
return _CraftingI.Contract.SafeTransferFrom(&_CraftingI.TransactOpts, from, to, tokenId)
} | [
0.07190903276205063,
0.23499783873558044,
0.09673872590065002,
-0.9760919213294983,
-0.17637813091278076,
-0.2501641511917114,
-0.7505967617034912,
-0.9776557087898254,
0.1429232507944107,
0.148251011967659,
-0.5302510857582092,
0.7200366854667664,
-0.22504277527332306,
-1.4016337394714355... |
func (_CraftingI *CraftingITransactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error) {
return _CraftingI.contract.Transact(opts, "safeTransferFrom0", from, to, tokenId, _data)
} | [
0.1542135328054428,
0.4192343056201935,
-0.045667361468076706,
-1.2781578302383423,
-0.5022587180137634,
-0.10331404209136963,
-0.6994827389717102,
-0.30869755148887634,
-0.2047114372253418,
-0.27446821331977844,
-0.9569389820098877,
0.6888272762298584,
-0.008767579682171345,
-0.3605497777... |
func (_CraftingI *CraftingISession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error) {
return _CraftingI.Contract.SafeTransferFrom0(&_CraftingI.TransactOpts, from, to, tokenId, _data)
} | [
0.26685652136802673,
0.465563029050827,
0.06003889814019203,
-1.1484053134918213,
-0.3974479138851166,
-0.29515597224235535,
-0.567032516002655,
-0.353311151266098,
-0.14214590191841125,
-0.19159665703773499,
-0.9488718509674072,
0.7136442065238953,
-0.0007459973567165434,
-0.5697567462921... |
func (_CraftingI *CraftingITransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error) {
return _CraftingI.Contract.SafeTransferFrom0(&_CraftingI.TransactOpts, from, to, tokenId, _data)
} | [
0.25907498598098755,
0.3757200837135315,
0.026400525122880936,
-1.1906940937042236,
-0.36986953020095825,
-0.33183929324150085,
-0.6150668859481812,
-0.3815927803516388,
-0.07305054366588593,
-0.18705272674560547,
-0.9168547987937927,
0.6213014721870422,
0.0024264161475002766,
-0.622990190... |
func (_CraftingI *CraftingITransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error) {
return _CraftingI.contract.Transact(opts, "setApprovalForAll", operator, approved)
} | [
-0.46069732308387756,
0.768078625202179,
0.5601601004600525,
-0.23719534277915955,
-1.3864291906356812,
-0.23994866013526917,
-0.5416420102119446,
0.6337240934371948,
-0.1967473328113556,
0.5052289366722107,
0.49168455600738525,
0.22399389743804932,
0.23500774800777435,
0.3195015490055084,... |
func (_CraftingI *CraftingISession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error) {
return _CraftingI.Contract.SetApprovalForAll(&_CraftingI.TransactOpts, operator, approved)
} | [
-0.3330211937427521,
0.8857782483100891,
0.5510097742080688,
-0.27384206652641296,
-1.470517873764038,
-0.3720317780971527,
-0.5603121519088745,
0.5621693134307861,
-0.40005433559417725,
0.6356086134910583,
0.3830888867378235,
-0.06048334017395973,
0.3303258419036865,
0.14467482268810272,
... |
func (_CraftingI *CraftingITransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error) {
return _CraftingI.Contract.SetApprovalForAll(&_CraftingI.TransactOpts, operator, approved)
} | [
-0.35243460536003113,
0.7817443013191223,
0.4921537935733795,
-0.2696409523487091,
-1.3055959939956665,
-0.46770739555358887,
-0.6754809021949768,
0.48638540506362915,
-0.3405930995941162,
0.6495653986930847,
0.35026121139526367,
-0.08771435916423798,
0.3000170588493347,
0.0944858342409133... |
func (_CraftingI *CraftingITransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
return _CraftingI.contract.Transact(opts, "transferFrom", from, to, tokenId)
} | [
0.08998523652553558,
0.354497492313385,
0.128036767244339,
-0.7299776673316956,
-0.1843622475862503,
-0.194843128323555,
-0.5911238789558411,
-0.8509857654571533,
0.05917177349328995,
0.06761425733566284,
-0.10148430615663528,
0.8310487866401672,
0.17955464124679565,
-0.9073188304901123,
... |
func (_CraftingI *CraftingISession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
return _CraftingI.Contract.TransferFrom(&_CraftingI.TransactOpts, from, to, tokenId)
} | [
0.07334311306476593,
0.3952936828136444,
0.2150166928768158,
-0.7199401259422302,
-0.15283934772014618,
-0.49764612317085266,
-0.5670836567878723,
-0.9174788594245911,
0.04168374091386795,
0.25524383783340454,
-0.06020824611186981,
0.8031139969825745,
0.23330260813236237,
-1.02034580707550... |
func (_CraftingI *CraftingITransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
return _CraftingI.Contract.TransferFrom(&_CraftingI.TransactOpts, from, to, tokenId)
} | [
0.05345800518989563,
0.3320887088775635,
0.16925148665905,
-0.8470427989959717,
-0.03199134021997452,
-0.6154612898826599,
-0.6517202258110046,
-1.0315297842025757,
0.11899431049823761,
0.14894720911979675,
-0.17039509117603302,
0.7313571572303772,
0.1740274280309677,
-1.1276037693023682,
... |
func (it *CraftingIApprovalIterator) Close() error {
it.sub.Unsubscribe()
return nil
} | [
0.07817713171243668,
0.31308427453041077,
0.1890123188495636,
0.12846329808235168,
-1.2126675844192505,
0.8424888253211975,
-0.3873077929019928,
-0.06926483660936356,
-0.39133065938949585,
0.8122697472572327,
1.4848778247833252,
0.7424088716506958,
-0.6434190273284912,
0.5179604887962341,
... |
func (_CraftingI *CraftingIFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*CraftingIApprovalIterator, error) {
var ownerRule []interface{}
for _, ownerItem := range owner {
ownerRule = append(ownerRule, ownerItem)
}
var approvedRule []inter... | [
0.07225678116083145,
0.009338841773569584,
0.597975492477417,
0.09859135746955872,
-1.4247281551361084,
-0.29029396176338196,
-0.6403019428253174,
-0.3433998227119446,
-0.20830057561397552,
1.1478246450424194,
1.0797621011734009,
1.2455523014068604,
-0.1450406014919281,
-0.2053868919610977... |
func (_CraftingI *CraftingIFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *CraftingIApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {
var ownerRule []interface{}
for _, ownerItem := range owner {
ownerRule = append(ownerRule, ownerItem)
}
va... | [
0.5808948278427124,
-0.2269899696111679,
0.7521883249282837,
-0.11248104274272919,
-0.7992396950721741,
-0.46973857283592224,
-0.17033052444458008,
-0.7624017000198364,
-0.2728523910045624,
0.8460646271705627,
0.6379860639572144,
1.5167311429977417,
0.35038313269615173,
-0.1920984089374542... |
func (_CraftingI *CraftingIFilterer) ParseApproval(log types.Log) (*CraftingIApproval, error) {
event := new(CraftingIApproval)
if err := _CraftingI.contract.UnpackLog(event, "Approval", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
} | [
0.0016452217241749167,
0.6754807233810425,
0.45395198464393616,
-0.31668028235435486,
-1.63835871219635,
-0.46882274746894836,
0.3926917314529419,
-0.2753473222255707,
0.4538004696369171,
1.283085584640503,
0.019615691155195236,
0.03194485232234001,
0.2786688506603241,
-0.5900424718856812,... |
func (it *CraftingIApprovalForAllIterator) Close() error {
it.sub.Unsubscribe()
return nil
} | [
0.292920857667923,
0.24683423340320587,
0.3281764090061188,
0.0774415135383606,
-1.54975426197052,
0.7682428359985352,
-0.5975316166877747,
0.15347473323345184,
-0.5211427211761475,
0.8168783187866211,
1.5505460500717163,
0.6638684868812561,
-0.46878114342689514,
0.7667416334152222,
0.93... |
func (_CraftingI *CraftingIFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*CraftingIApprovalForAllIterator, error) {
var ownerRule []interface{}
for _, ownerItem := range owner {
ownerRule = append(ownerRule, ownerItem)
}
var operatorRule []interface{}
... | [
0.031682539731264114,
0.10005708038806915,
0.8966073393821716,
0.5582676529884338,
-1.4944851398468018,
-0.14032183587551117,
-0.6152953505516052,
0.48863914608955383,
-0.30466851592063904,
0.6671952605247498,
1.288561224937439,
0.9801368117332458,
0.03692180663347244,
0.22462418675422668,... |
func (_CraftingI *CraftingIFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *CraftingIApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error) {
var ownerRule []interface{}
for _, ownerItem := range owner {
ownerRule = append(ownerRule, ownerItem)
}
var operat... | [
0.6779761910438538,
0.04189459979534149,
0.95645672082901,
0.25560545921325684,
-0.8143916130065918,
-0.32805314660072327,
-0.04650670662522316,
-0.06665994226932526,
-0.46776634454727173,
0.2305222898721695,
0.9315165877342224,
1.2952474355697632,
0.3491748869419098,
0.4632672369480133,
... |
func (_CraftingI *CraftingIFilterer) ParseApprovalForAll(log types.Log) (*CraftingIApprovalForAll, error) {
event := new(CraftingIApprovalForAll)
if err := _CraftingI.contract.UnpackLog(event, "ApprovalForAll", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
} | [
0.3092113435268402,
0.33883607387542725,
0.5346766710281372,
-0.5205047130584717,
-1.5661476850509644,
-0.46711426973342896,
-0.5306780934333801,
0.4349808096885681,
0.13997136056423187,
0.8496782779693604,
0.3023947775363922,
0.260529100894928,
0.5819026231765747,
0.4044731557369232,
1.... |
func (it *CraftingICraftedIterator) Close() error {
it.sub.Unsubscribe()
return nil
} | [
0.22023174166679382,
0.3971651792526245,
0.18552710115909576,
-0.7261231541633606,
-0.9787209630012512,
0.6749910712242126,
0.6113187670707703,
-0.5711374282836914,
-1.1483515501022339,
0.36711421608924866,
0.5921079516410828,
0.6761032342910767,
-0.7457287907600403,
0.361273854970932,
0... |
func (_CraftingI *CraftingIFilterer) FilterCrafted(opts *bind.FilterOpts, owner []common.Address) (*CraftingICraftedIterator, error) {
var ownerRule []interface{}
for _, ownerItem := range owner {
ownerRule = append(ownerRule, ownerItem)
}
logs, sub, err := _CraftingI.contract.FilterLogs(opts, "Crafted", ownerR... | [
-0.1711389124393463,
0.3791205585002899,
0.592555820941925,
0.5378901958465576,
-0.43194201588630676,
0.06073315441608429,
1.3464592695236206,
-0.38292011618614197,
-0.15700222551822662,
0.6555185914039612,
0.518393337726593,
1.3743802309036255,
-0.05307062342762947,
-0.3695085644721985,
... |
func (_CraftingI *CraftingIFilterer) WatchCrafted(opts *bind.WatchOpts, sink chan<- *CraftingICrafted, owner []common.Address) (event.Subscription, error) {
var ownerRule []interface{}
for _, ownerItem := range owner {
ownerRule = append(ownerRule, ownerItem)
}
logs, sub, err := _CraftingI.contract.WatchLogs(op... | [
0.4178510308265686,
0.010561260394752026,
0.8941774368286133,
-0.224123015999794,
0.025467397645115852,
-0.6286653876304626,
1.4406099319458008,
-0.8736967444419861,
-0.030156653374433517,
0.11718568205833435,
-0.05961655080318451,
1.5770978927612305,
0.3610570728778839,
-0.229577392339706... |
func (_CraftingI *CraftingIFilterer) ParseCrafted(log types.Log) (*CraftingICrafted, error) {
event := new(CraftingICrafted)
if err := _CraftingI.contract.UnpackLog(event, "Crafted", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
} | [
0.11949089169502258,
0.8997013568878174,
0.4743359684944153,
-0.5922418236732483,
-0.7226842045783997,
-0.4604963958263397,
1.5110256671905518,
-0.5134573578834534,
0.27201640605926514,
0.16781994700431824,
-0.69343501329422,
0.46496158838272095,
0.47662296891212463,
-0.47033169865608215,
... |
func (it *CraftingITransferIterator) Close() error {
it.sub.Unsubscribe()
return nil
} | [
0.2938629686832428,
0.4889347553253174,
0.1605972945690155,
-0.7452182769775391,
-0.8521860837936401,
0.45089957118034363,
0.15841391682624817,
-0.5290588140487671,
-1.1265487670898438,
0.26065972447395325,
0.5167087316513062,
0.16017268598079681,
-0.8305603265762329,
0.5509530305862427,
... |
func (_CraftingI *CraftingIFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*CraftingITransferIterator, error) {
var fromRule []interface{}
for _, fromItem := range from {
fromRule = append(fromRule, fromItem)
}
var toRule []interface{}
for _, toIt... | [
-0.14037752151489258,
-0.04410814493894577,
0.701291561126709,
-0.6956495642662048,
-0.8125728964805603,
-0.39867010712623596,
-0.5284703969955444,
-0.805141806602478,
-0.5808431506156921,
0.5444226264953613,
0.08343197405338287,
1.111751914024353,
-0.49956926703453064,
-0.1997816413640976... |
func (_CraftingI *CraftingIFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *CraftingITransfer, from []common.Address, to []common.Address, tokenId []*big.Int) (event.Subscription, error) {
var fromRule []interface{}
for _, fromItem := range from {
fromRule = append(fromRule, fromItem)
}
var toRule []in... | [
0.5571685433387756,
-0.22425147891044617,
0.7579489946365356,
-0.7678743600845337,
-0.20995813608169556,
-0.5719715356826782,
0.03828176110982895,
-0.9685007333755493,
-0.6817606687545776,
0.2482418268918991,
-0.29507124423980713,
1.11949622631073,
0.020433083176612854,
-0.1460766941308975... |
func (_CraftingI *CraftingIFilterer) ParseTransfer(log types.Log) (*CraftingITransfer, error) {
event := new(CraftingITransfer)
if err := _CraftingI.contract.UnpackLog(event, "Transfer", log); err != nil {
return nil, err
}
event.Raw = log
return event, nil
} | [
0.134961798787117,
0.5405676960945129,
0.4892211854457855,
-0.7151345014572144,
-0.5663551092147827,
-0.42412668466567993,
0.6978499293327332,
-0.8015395998954773,
0.0100080706179142,
0.08569928258657455,
-0.5489409565925598,
-0.04458246007561684,
0.006093645002692938,
0.11674990504980087,... |
func convertToFloat64(value string) (float64, error) {
result, err := strconv.ParseFloat(strings.TrimSpace(value), 64)
if err != nil {
return 0, fmt.Errorf("could not parse string %s into float", value)
}
return result, nil
} | [
-0.3531220555305481,
-0.3040003478527069,
0.5636826157569885,
-0.16145256161689758,
0.04111664742231369,
-0.7708086967468262,
0.02086671255528927,
-0.003778628306463361,
0.516858696937561,
0.06233575567603111,
-0.060106061398983,
-0.43787890672683716,
-0.30754074454307556,
0.93421041965484... |
func readCSVFromString(contents string, removeHeader bool) ([][]string, error) {
lines, err := csv.NewReader(strings.NewReader(contents)).ReadAll()
if err != nil || len(lines) == 0 {
return [][]string{}, err
}
if removeHeader {
lines = lines[1:]
}
return lines, nil
} | [
0.24318133294582367,
-1.1129827499389648,
0.5956539511680603,
-0.32747820019721985,
-0.4371008574962616,
-0.2226371467113495,
-1.0355526208877563,
-0.30337440967559814,
0.27116116881370544,
0.1930335909128189,
1.1027315855026245,
0.25142496824264526,
-0.15222889184951782,
-0.22874185442924... |
func fetchURL(request *http.Request) (string, error) {
contents, err := fetchBytesFromURL(request)
if err != nil {
return "", fmt.Errorf("could not fetch url %v. Response error %v", request.URL, err)
}
return string(contents), nil
} | [
0.23370909690856934,
-0.4612163305282593,
0.14496929943561554,
0.1235974058508873,
-0.8248093724250793,
0.6305407285690308,
-0.43519583344459534,
-0.8727725744247437,
0.6504660248756409,
0.2883581221103668,
0.26249220967292786,
-0.09877530485391617,
0.47117534279823303,
0.4003443121910095,... |
func (r *AWSGlueTrigger_Action) AWSCloudFormationType() string {
return "AWS::Glue::Trigger.Action"
} | [
0.3572617173194885,
0.11847205460071564,
0.24159559607505798,
-0.1353902369737625,
0.8392285108566284,
-0.522438645362854,
0.4211995005607605,
-0.49468740820884705,
0.16454645991325378,
0.1467249095439911,
-0.5197414755821228,
0.7859075665473938,
0.17021170258522034,
0.3112357258796692,
... |
func RefTerm(r ...*Term) *Term {
return &Term{Value: Ref(r)}
} | [
0.016509246081113815,
-0.412474662065506,
0.3397729694843292,
1.1744678020477295,
0.0017269722884520888,
0.5035450458526611,
-0.3736105263233185,
-0.6230939030647278,
0.11197962611913681,
-0.200607031583786,
-0.28494271636009216,
0.37527018785476685,
0.12047846615314484,
0.0308838412165641... |
func (r Ref) Equal(other Value) bool {
switch other := other.(type) {
case Ref:
return r.Compare(other) == 0
default:
return false
}
} | [
-0.7796570658683777,
0.2945040166378021,
0.4731356203556061,
0.590038001537323,
0.5383358597755432,
0.481884628534317,
0.2900857627391815,
-1.3010523319244385,
-0.012013975530862808,
0.6544269323348999,
-0.002118604024872184,
-0.08617265522480011,
-0.6859924793243408,
1.2947609424591064,
... |
func (r Ref) Compare(other Value) int {
if sort := compareSortOrder(r, other); sort != 0 {
return sort
}
o := other.(Ref)
return TermSliceCompare(r, o)
} | [
-0.4985865652561188,
0.3726183772087097,
0.5805196762084961,
-0.02662046253681183,
-0.5945215225219727,
-0.7494397163391113,
0.324321448802948,
-1.3431603908538818,
0.09828856587409973,
0.4479256868362427,
0.30413565039634705,
-0.2044144719839096,
-0.4400373101234436,
1.6310383081436157,
... |
func (r Ref) Hash() int {
return termSliceHash(r)
} | [
0.5480047464370728,
0.14296980202198029,
0.29610514640808105,
-0.2663928270339966,
-0.2493780106306076,
0.4119696617126465,
0.6195480227470398,
0.25811800360679626,
0.029151946306228638,
0.316816508769989,
-0.24080601334571838,
1.1599265336990356,
-0.08401717245578766,
0.8431005477905273,
... |
func loadTestSysCommand() {
wg := new(sync.WaitGroup) // wait till responce
for i := 0; i < 1000; i++ {
wg.Add(1)
out, err := exec.Command(commmand).Output()
if err != nil {
fmt.Printf("%s", err)
}
fmt.Printf("%s", out)
wg.Done()
}
... | [
0.30611881613731384,
0.17154724895954132,
0.6954306364059448,
-0.5017567873001099,
1.0099773406982422,
-0.46534648537635803,
1.3724068403244019,
-0.491732120513916,
-0.30127713084220886,
-0.9987213611602783,
-0.08853047341108322,
0.4149637222290039,
-1.0308821201324463,
1.0290662050247192,... |
func KillProcess(w http.ResponseWriter, r *http.Request) {
params := mux.Vars(r)
ip = params["id"]
wg := new(sync.WaitGroup) // wait till process killed.
out, err := exec.Command("pkill", "-f", ip).Output()
if err != nil {
fmt.Printf("%s", err)
return json.New... | [
-0.44115936756134033,
-0.5755552649497986,
0.6940135955810547,
-0.3063565790653229,
-0.2989867925643921,
-0.015829240903258324,
-0.7444698810577393,
-1.0624418258666992,
-0.12850716710090637,
0.9712084531784058,
-0.28926748037338257,
-0.3175266981124878,
0.17202632129192352,
-0.40254259109... |
func NewPermissions(cfg config.GDPR, tcf2Config TCF2ConfigReader, vendorIDs map[openrtb_ext.BidderName]uint16, fetcher VendorListFetcher) Permissions {
if !cfg.Enabled {
return &AlwaysAllow{}
}
permissionsImpl := &permissionsImpl{
fetchVendorList: fetcher,
gdprDefaultValue: cfg.DefaultValue,
host... | [
-0.5067554712295532,
0.4976905882358551,
0.22276043891906738,
0.6403695344924927,
-0.8912883400917053,
-0.8992735743522644,
0.29623791575431824,
0.6108875870704651,
-0.49579718708992004,
0.9109779000282288,
0.47386103868484497,
-0.3690199553966522,
-0.3914002776145935,
0.6900123953819275,
... |
func getDbConfig(appEnv string) DBConfig {
dbURL := dbConfig[appEnv].DbURL
if dbURL == "" && appEnv != "production" {
return DBConfig{
Dialect: getEnv("DB_TYPE", "postgres"),
Username: getEnv("DB_USER", ""),
Password: getEnv("DB_PASS", ""),
DbName: getEnv("DB_DEV", ""),
DbHost: getEnv("DB_HOST",... | [
-0.12943117320537567,
0.2933271527290344,
0.8598023653030396,
0.6972452998161316,
-0.037685055285692215,
0.255759060382843,
-0.7829881310462952,
0.3912583887577057,
-0.5347464680671692,
0.26082733273506165,
-0.23193879425525665,
0.47121602296829224,
0.24735082685947418,
1.1931827068328857,... |
func (_m *AutomaticScenarioAssignmentService) ListForTargetTenant(ctx context.Context, targetTenantInternalID string) ([]*model.AutomaticScenarioAssignment, error) {
ret := _m.Called(ctx, targetTenantInternalID)
var r0 []*model.AutomaticScenarioAssignment
if rf, ok := ret.Get(0).(func(context.Context, string) []*mo... | [
-1.2892951965332031,
-1.2164812088012695,
0.4112887978553772,
-0.3918986916542053,
-0.1944529265165329,
0.13057205080986023,
0.04426661506295204,
0.20627546310424805,
-0.026504062116146088,
-0.01463724672794342,
-0.021671148017048836,
0.25998246669769287,
0.3823696970939636,
0.201238065958... |
func NewAutomaticScenarioAssignmentService(t mockConstructorTestingTNewAutomaticScenarioAssignmentService) *AutomaticScenarioAssignmentService {
mock := &AutomaticScenarioAssignmentService{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
} | [
-0.5474584698677063,
-1.1503634452819824,
-0.1855650544166565,
-0.1406913846731186,
-0.3869611620903015,
-0.026625586673617363,
0.3406420946121216,
-0.3167326748371124,
-0.5862737894058228,
0.35732415318489075,
0.6797133088111877,
0.5173075199127197,
0.41836002469062805,
0.5694982409477234... |
func main() {
// Create a new Smart Contract
err := shim.Start(new(SmartContract))
if err != nil {
fmt.Printf("Error creating new Smart Contract: %s", err)
}
} | [
0.9188963174819946,
-0.04043641313910484,
0.726228654384613,
1.0211631059646606,
0.0017453532200306654,
0.0693558007478714,
0.410116970539093,
1.0851428508758545,
0.6619133353233337,
-0.2647523581981659,
-0.7748851180076599,
0.4329872727394104,
-0.1346379667520523,
-0.07924967259168625,
... |
func BindAllKVListHandlers(app *app.App) {
BindLPush(app)
BindRPush(app)
BindLPop(app)
BindRPop(app)
BindLLen(app)
BindLInsert(app)
BindLIndex(app)
BindLRange(app)
} | [
0.049342378973960876,
-0.8745293617248535,
0.38480520248413086,
1.920290470123291,
-0.4593697488307953,
1.0849287509918213,
-0.9718494415283203,
-0.09825808554887772,
1.225250005722046,
0.12056812644004822,
-0.5952414870262146,
-0.1425674706697464,
-0.5169499516487122,
0.9737449288368225,
... |
func PathCacheKey(path []string) string {
// There is probably a better way to do this, but this is working for now.
// We just create an MD5 hash of all the MD5 hashes of all the path
// elements. This gets us the property that it is unique per ordering.
hash := md5.New()
for _, p := range path {
single := md5.... | [
-0.5426138639450073,
-0.10253880172967911,
0.5244895815849304,
0.851691722869873,
-0.0903608649969101,
0.5165172219276428,
0.3527332842350006,
0.5002738833427429,
0.1444512903690338,
0.9994697570800781,
-0.6170774698257446,
-1.0605770349502563,
-0.3066447377204895,
0.13270829617977142,
-... |
func NewGPIOInterface(mapper accontrol.Mapper, pin uint) accontrol.HWInterface {
return &GPIOInterface{mapper, pin}
} | [
-0.04126473888754845,
-0.29683706164360046,
0.11347997933626175,
0.6025792360305786,
-0.9015906453132629,
0.5308119654655457,
-0.029825793579220772,
-0.7114474773406982,
-0.7583444714546204,
-0.6326605081558228,
-0.3768001198768616,
-0.4349253475666046,
-0.3859655559062958,
-0.195791721343... |
func (gpio *GPIOInterface) SetState(newState models.ACState) error {
// TODO: Enabled when IRBlaster supports other pins than 18:
//
//pin := C.uint(gpio.pin)
var b [0x200]byte
data := gpio.mapper.MapToProtocolBinaryString(&newState)
copy(b[:], data)
cfg := iRBlasterConfig{
LeadingPulseWidth: 9000,
LeadingG... | [
-0.07740803062915802,
0.34906983375549316,
0.7012821435928345,
-0.01793094538152218,
0.1228649839758873,
0.13799166679382324,
0.5389474630355835,
-0.2708187997341156,
0.09450716525316238,
0.02035284787416458,
-0.9929928183555603,
0.0028887358494102955,
-0.7350265979766846,
0.61454528570175... |
func Open(file string) (*Reader, error) {
reader, err := maxminddb.Open(file)
if err != nil {
return nil, err
}
dbType, err := getDBType(reader)
return &Reader{reader, dbType}, err
} | [
-0.6530572772026062,
0.22999078035354614,
0.0987330824136734,
-0.47611358761787415,
-0.9500235319137573,
0.5520868301391602,
0.10694549232721329,
0.9408155679702759,
0.2826933264732361,
-0.04664820060133934,
0.1811181753873825,
0.28110870718955994,
-1.290945053100586,
0.5446622371673584,
... |
func FromBytes(bytes []byte) (*Reader, error) {
reader, err := maxminddb.FromBytes(bytes)
if err != nil {
return nil, err
}
dbType, err := getDBType(reader)
return &Reader{reader, dbType}, err
} | [
0.12928339838981628,
-0.09175057709217072,
0.06713873893022537,
-1.099805235862732,
-0.8172370791435242,
-0.16847631335258484,
-0.6060601472854614,
0.4763835668563843,
1.5705599784851074,
-0.18825681507587433,
-0.06615473330020905,
0.37540173530578613,
-1.0856233835220337,
0.46374467015266... |
func (r *Reader) Enterprise(ipAddress net.IP) (*Enterprise, error) {
if isEnterprise&r.databaseType == 0 {
return nil, InvalidMethodError{"Enterprise", r.Metadata().DatabaseType}
}
var enterprise Enterprise
err := r.mmdbReader.Lookup(ipAddress, &enterprise)
return &enterprise, err
} | [
-0.8871896266937256,
0.16364502906799316,
0.5059787631034851,
0.4881093204021454,
-0.11834171414375305,
-0.01750025525689125,
-0.46250221133232117,
-0.6180860996246338,
0.7393608093261719,
0.21120181679725647,
0.685552179813385,
0.21795766055583954,
-0.8398248553276062,
0.21981848776340485... |
func (r *Reader) City(ipAddress net.IP) (*City, error) {
if isCity&r.databaseType == 0 {
return nil, InvalidMethodError{"City", r.Metadata().DatabaseType}
}
var city City
err := r.mmdbReader.Lookup(ipAddress, &city)
return &city, err
} | [
0.18469062447547913,
0.3229096829891205,
0.4295825660228729,
0.14964915812015533,
-1.0505399703979492,
0.0782986581325531,
-0.08443836122751236,
-0.17977137863636017,
0.32778286933898926,
0.10650970041751862,
-0.03103114850819111,
-0.3815710246562958,
-0.18824858963489532,
0.21095731854438... |
func (r *Reader) Country(ipAddress net.IP) (*Country, error) {
if isCountry&r.databaseType == 0 {
return nil, InvalidMethodError{"Country", r.Metadata().DatabaseType}
}
var country Country
err := r.mmdbReader.Lookup(ipAddress, &country)
return &country, err
} | [
0.3546873927116394,
0.3145294189453125,
0.3482261896133423,
0.7355509400367737,
-0.3188540041446686,
0.28539973497390747,
0.3970973491668701,
-0.3624252676963806,
0.5283809304237366,
0.3653469979763031,
0.8508281707763672,
0.3531540334224701,
-0.5501530170440674,
0.21653927862644196,
-0.... |
func (r *Reader) AnonymousIP(ipAddress net.IP) (*AnonymousIP, error) {
if isAnonymousIP&r.databaseType == 0 {
return nil, InvalidMethodError{"AnonymousIP", r.Metadata().DatabaseType}
}
var anonIP AnonymousIP
err := r.mmdbReader.Lookup(ipAddress, &anonIP)
return &anonIP, err
} | [
-0.5586299300193787,
-0.23195695877075195,
0.36215847730636597,
0.12585632503032684,
-1.4078449010849,
0.09644758701324463,
-0.14344356954097748,
-0.4804173409938812,
0.46541470289230347,
0.8250064253807068,
0.8259233236312866,
-0.28220903873443604,
-0.5196704864501953,
-0.7209699153900146... |
func (r *Reader) ASN(ipAddress net.IP) (*ASN, error) {
if isASN&r.databaseType == 0 {
return nil, InvalidMethodError{"ASN", r.Metadata().DatabaseType}
}
var val ASN
err := r.mmdbReader.Lookup(ipAddress, &val)
return &val, err
} | [
-0.4592272639274597,
-0.31905463337898254,
0.3035883903503418,
0.1863040179014206,
-1.0545690059661865,
-1.0540145635604858,
-0.553264856338501,
-0.3169604241847992,
0.4677458703517914,
0.41005098819732666,
0.00040913131670095026,
0.1754031479358673,
-0.025203417986631393,
-0.0597124136984... |
func (r *Reader) ConnectionType(ipAddress net.IP) (*ConnectionType, error) {
if isConnectionType&r.databaseType == 0 {
return nil, InvalidMethodError{"ConnectionType", r.Metadata().DatabaseType}
}
var val ConnectionType
err := r.mmdbReader.Lookup(ipAddress, &val)
return &val, err
} | [
-0.24337203800678253,
0.2670225203037262,
0.5791029334068298,
0.5017675161361694,
0.09969548135995865,
-0.6696776151657104,
0.25082695484161377,
-0.4110725522041321,
0.7189502120018005,
0.9596871137619019,
1.4721755981445312,
-0.6728887557983398,
-0.912360429763794,
0.7207950353622437,
0... |
func (r *Reader) Domain(ipAddress net.IP) (*Domain, error) {
if isDomain&r.databaseType == 0 {
return nil, InvalidMethodError{"Domain", r.Metadata().DatabaseType}
}
var val Domain
err := r.mmdbReader.Lookup(ipAddress, &val)
return &val, err
} | [
-0.5048683881759644,
0.8064813613891602,
0.33814361691474915,
0.5777952671051025,
-0.04571448266506195,
-0.27581271529197693,
-0.11909254640340805,
-0.40068677067756653,
0.29770544171333313,
-0.03676643595099449,
0.6856532692909241,
0.8548573851585388,
-0.30050042271614075,
0.1912603676319... |
func (r *Reader) ISP(ipAddress net.IP) (*ISP, error) {
if isISP&r.databaseType == 0 {
return nil, InvalidMethodError{"ISP", r.Metadata().DatabaseType}
}
var val ISP
err := r.mmdbReader.Lookup(ipAddress, &val)
return &val, err
} | [
0.24528685212135315,
0.08714239299297333,
0.37188389897346497,
0.21861542761325836,
-0.48264458775520325,
0.3012917935848236,
-0.46297192573547363,
-0.2885720729827881,
1.1961026191711426,
1.1344282627105713,
1.0186679363250732,
-0.24791936576366425,
-1.406381607055664,
-0.915886402130127,... |
func (r *Reader) Metadata() maxminddb.Metadata {
return r.mmdbReader.Metadata
} | [
0.18109674751758575,
-1.0677461624145508,
0.20329701900482178,
0.2722395956516266,
-0.0096164895221591,
0.22803528606891632,
-0.9389921426773071,
-0.32074370980262756,
0.43957898020744324,
0.33197030425071716,
0.6693419218063354,
-0.08823497593402863,
-0.8364870548248291,
0.411951661109924... |
func (r *Reader) Close() error {
return r.mmdbReader.Close()
} | [
-0.08705054968595505,
-0.7784813642501831,
0.2559070587158203,
-0.22164081037044525,
-0.9117387533187866,
0.8354490995407104,
-0.47660180926322937,
-0.18620029091835022,
-0.4981517493724823,
-0.5710620880126953,
1.167138934135437,
-0.2697773575782776,
-1.8071775436401367,
1.341132521629333... |
func NewMockTaskDao(ctrl *gomock.Controller) *MockTaskDao {
mock := &MockTaskDao{ctrl: ctrl}
mock.recorder = &MockTaskDaoMockRecorder{mock}
return mock
} | [
0.649542510509491,
0.38211899995803833,
0.36140984296798706,
0.8143234252929688,
-0.30180802941322327,
0.1481773406267166,
1.7138690948486328,
0.43433815240859985,
-0.10176149010658264,
0.5399039387702942,
-1.2451218366622925,
0.018152963370084763,
0.5498741865158081,
1.1537330150604248,
... |
func (m *MockTaskDao) EXPECT() *MockTaskDaoMockRecorder {
return m.recorder
} | [
0.06264074146747589,
0.918748140335083,
0.17429929971694946,
0.2556011378765106,
-0.24656227231025696,
-0.14627709984779358,
0.6003366112709045,
0.8221058249473572,
0.246939554810524,
-0.45979565382003784,
-0.0674012303352356,
0.4003102779388428,
0.1607239842414856,
0.602427065372467,
-0... |
func (m *MockTaskDao) AddTask(task *task.OwlTask) (int64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddTask", task)
ret0, _ := ret[0].(int64)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
-0.690181314945221,
0.44260531663894653,
0.32359549403190613,
1.4472918510437012,
1.0511202812194824,
0.2966838777065277,
1.2217661142349243,
0.06013971194624901,
-0.6297569274902344,
-1.1791185140609741,
-0.7032149434089661,
-0.3007795214653015,
-0.09178270399570465,
1.1865514516830444,
... |
func (mr *MockTaskDaoMockRecorder) AddTask(task interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddTask", reflect.TypeOf((*MockTaskDao)(nil).AddTask), task)
} | [
-0.0983382910490036,
1.4257763624191284,
-0.04462422803044319,
1.104629397392273,
-0.21867293119430542,
0.46286529302597046,
0.015300844796001911,
-0.35236719250679016,
0.773098886013031,
-0.08922413736581802,
0.45258039236068726,
0.4468533992767334,
-0.3138768970966339,
1.3246287107467651... |
func (m *MockTaskDao) UpdateTask(task *task.OwlTask) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateTask", task)
ret0, _ := ret[0].(error)
return ret0
} | [
-0.5037034153938293,
0.01981431059539318,
0.1944168657064438,
1.0998305082321167,
0.8788291811943054,
0.47188010811805725,
1.1275118589401245,
-0.24397918581962585,
-0.5966766476631165,
-0.44444069266319275,
-1.0009450912475586,
0.040592342615127563,
-0.2038499265909195,
0.6413062214851379... |
func (mr *MockTaskDaoMockRecorder) UpdateTask(task interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTask", reflect.TypeOf((*MockTaskDao)(nil).UpdateTask), task)
} | [
-0.2407638281583786,
0.8296251893043518,
0.09875468164682388,
0.8703751564025879,
-0.2706875205039978,
0.4584573805332184,
0.2069195806980133,
-0.5153324007987976,
0.9384374618530273,
0.6946372389793396,
0.033068571239709854,
0.6349716186523438,
-0.2153620719909668,
1.0398374795913696,
-... |
func (m *MockTaskDao) ListTask(pagination *service.Pagination, isDBA bool, status []task.ItemStatus) ([]task.OwlTask, int, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListTask", pagination, isDBA, status)
ret0, _ := ret[0].([]task.OwlTask)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1,... | [
-0.5233292579650879,
-0.4581877887248993,
0.4783642888069153,
1.084915041923523,
1.0869542360305786,
0.11340133100748062,
1.0838900804519653,
0.48246729373931885,
-0.27225813269615173,
-0.7028821110725403,
-1.2856611013412476,
0.10369482636451721,
0.26900067925453186,
1.0960530042648315,
... |
func (mr *MockTaskDaoMockRecorder) ListTask(pagination, isDBA, status interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListTask", reflect.TypeOf((*MockTaskDao)(nil).ListTask), pagination, isDBA, status)
} | [
0.050942420959472656,
0.5292671322822571,
0.12057582288980484,
0.997636616230011,
0.05861542373895645,
0.20236222445964813,
-0.10330385714769363,
-0.12454802542924881,
1.0120147466659546,
0.1551562249660492,
-0.3778325915336609,
0.8424843549728394,
0.07118592411279678,
1.6370365619659424,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.