text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (_Constants *ConstantsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Constants.Contract.ConstantsTransactor.contract.Transact(opts, method, params...)
} | [
-0.44244712591171265,
0.3071848750114441,
0.488705039024353,
-0.5860421657562256,
0.019545620307326317,
0.127924382686615,
0.6217274069786072,
-0.009199895896017551,
0.23773358762264252,
0.4165971577167511,
-0.21373064815998077,
0.5919483304023743,
-0.16701512038707733,
-0.3746122419834137... |
func (_Constants *ConstantsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
return _Constants.Contract.contract.Call(opts, result, method, params...)
} | [
-0.9535282850265503,
0.39352431893348694,
0.5999555587768555,
0.9321237206459045,
-0.9132081866264343,
0.5010855197906494,
-0.6426845192909241,
-0.5345459580421448,
0.18274855613708496,
0.48317286372184753,
0.1557369977235794,
-0.13672447204589844,
-0.534434974193573,
0.2969452142715454,
... |
func (_Constants *ConstantsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _Constants.Contract.contract.Transfer(opts)
} | [
-0.3969348967075348,
0.07578028738498688,
0.34698888659477234,
0.5905371904373169,
-0.23019401729106903,
0.453610360622406,
0.42800673842430115,
-0.36639267206192017,
0.6950809955596924,
0.009386925026774406,
-0.11758147180080414,
0.14434431493282318,
-0.39898332953453064,
-0.8242918848991... |
func (_Constants *ConstantsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _Constants.Contract.contract.Transact(opts, method, params...)
} | [
-0.21816034615039825,
0.427181601524353,
0.4307781159877777,
-0.3453274071216583,
0.11257343739271164,
-0.042803697288036346,
0.7332286834716797,
-0.23531804978847504,
0.24171993136405945,
0.2802424728870392,
-0.12951624393463135,
0.4121665060520172,
-0.16267302632331848,
-0.46071985363960... |
func (_Constants *ConstantsCaller) Commit(opts *bind.CallOpts) (uint8, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "commit")
if err != nil {
return *new(uint8), err
}
out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8)
return out0, err
} | [
-0.903905987739563,
0.09156932681798935,
0.8098257780075073,
0.8672304153442383,
-0.14110533893108368,
0.41737857460975647,
0.15571485459804535,
-0.6718417406082153,
0.42000967264175415,
1.621825933456421,
0.07751912623643875,
0.26974573731422424,
-1.2474576234817505,
0.061551857739686966,... |
func (_Constants *ConstantsSession) Commit() (uint8, error) {
return _Constants.Contract.Commit(&_Constants.CallOpts)
} | [
-0.793415904045105,
0.31782469153404236,
0.4502606987953186,
0.14819414913654327,
-0.02017158269882202,
0.4938988983631134,
0.15399262309074402,
-0.47418928146362305,
0.26060736179351807,
1.5884227752685547,
0.01604854129254818,
0.11828433722257614,
-1.0756170749664307,
-0.4958455860614776... |
func (_Constants *ConstantsCallerSession) Commit() (uint8, error) {
return _Constants.Contract.Commit(&_Constants.CallOpts)
} | [
-0.6287210583686829,
0.1759626418352127,
0.4313017427921295,
0.47132834792137146,
0.10205788165330887,
0.3645862638950348,
0.17215003073215485,
-0.5239272117614746,
0.3672926127910614,
1.6477082967758179,
-0.03266366571187973,
-0.05522625893354416,
-1.024358868598938,
-0.06710578501224518,... |
func (_Constants *ConstantsCaller) Dispute(opts *bind.CallOpts) (uint8, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "dispute")
if err != nil {
return *new(uint8), err
}
out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8)
return out0, err
} | [
-0.5425181984901428,
0.4545782804489136,
0.8078348636627197,
0.9394607543945312,
0.22280651330947876,
0.2168724238872528,
-0.21078109741210938,
-0.7142512798309326,
0.9161872267723083,
-0.3153398334980011,
0.20980238914489746,
0.3576015532016754,
-1.5912131071090698,
0.3969905972480774,
... |
func (_Constants *ConstantsSession) Dispute() (uint8, error) {
return _Constants.Contract.Dispute(&_Constants.CallOpts)
} | [
-0.2963196337223053,
0.8948049545288086,
0.5212008953094482,
0.46674275398254395,
0.27673694491386414,
0.026562532410025597,
-0.15453286468982697,
-0.4409942328929901,
0.8520052433013916,
-0.7480648159980774,
0.44056057929992676,
0.02862844429910183,
-1.723997712135315,
0.02616072818636894... |
func (_Constants *ConstantsCallerSession) Dispute() (uint8, error) {
return _Constants.Contract.Dispute(&_Constants.CallOpts)
} | [
-0.16006985306739807,
0.7254353165626526,
0.4817173182964325,
0.7628567814826965,
0.3793923556804657,
-0.06489093601703644,
-0.0657980814576149,
-0.4291829764842987,
1.0460355281829834,
-0.7369157671928406,
0.40713194012641907,
0.0228431336581707,
-1.6609718799591064,
0.32970502972602844,
... |
func (_Constants *ConstantsCaller) EpochLength(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "epochLength")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
} | [
-1.0173144340515137,
1.2996257543563843,
0.7211657762527466,
0.1119425892829895,
0.10121528059244156,
0.5077766180038452,
-0.260929137468338,
-0.34832385182380676,
-0.3081483840942383,
1.0154167413711548,
-0.8309674859046936,
1.0445020198822021,
-0.4796101450920105,
0.25329962372779846,
... |
func (_Constants *ConstantsSession) EpochLength() (*big.Int, error) {
return _Constants.Contract.EpochLength(&_Constants.CallOpts)
} | [
-0.6248903870582581,
1.7450065612792969,
0.29889458417892456,
-0.176832914352417,
0.14995740354061127,
0.8073840141296387,
-0.14572778344154358,
-0.013280953280627728,
-0.26012536883354187,
0.6806840896606445,
-0.5144400000572205,
0.8420485854148865,
-0.40003833174705505,
-0.29658776521682... |
func (_Constants *ConstantsCallerSession) EpochLength() (*big.Int, error) {
return _Constants.Contract.EpochLength(&_Constants.CallOpts)
} | [
-0.4839957356452942,
1.6103475093841553,
0.3262116611003876,
0.08160226792097092,
0.19708938896656036,
0.7621920704841614,
-0.1252788007259369,
-0.06193127483129501,
-0.16136157512664795,
0.6499950885772705,
-0.5276461839675903,
0.7318383455276489,
-0.3537096083164215,
-0.0564720518887043,... |
func (_Constants *ConstantsCaller) ExposureDenominator(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "exposureDenominator")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
} | [
-1.3002557754516602,
0.08230633288621902,
0.7406452894210815,
0.07634718716144562,
-1.3160338401794434,
0.1377042829990387,
1.0486598014831543,
0.1180373802781105,
0.7363334894180298,
-0.4882141053676605,
-0.04273485392332077,
0.00897484365850687,
-0.20835505425930023,
0.6543605923652649,
... |
func (_Constants *ConstantsSession) ExposureDenominator() (*big.Int, error) {
return _Constants.Contract.ExposureDenominator(&_Constants.CallOpts)
} | [
-0.8150343894958496,
0.3026386499404907,
0.5064723491668701,
-0.12074917554855347,
-1.2872371673583984,
0.1911618411540985,
1.0327767133712769,
0.1903313398361206,
1.0445051193237305,
-0.5082261562347412,
0.05709084868431091,
-0.34991568326950073,
-0.23854497075080872,
0.314803808927536,
... |
func (_Constants *ConstantsCallerSession) ExposureDenominator() (*big.Int, error) {
return _Constants.Contract.ExposureDenominator(&_Constants.CallOpts)
} | [
-0.7116386294364929,
0.2542058825492859,
0.46679776906967163,
0.0712381973862648,
-1.266743540763855,
0.04760022088885307,
1.0931979417800903,
0.17840541899204254,
1.1097122430801392,
-0.49444112181663513,
0.07633421570062637,
-0.3498828411102295,
-0.12901830673217773,
0.42801710963249207,... |
func (_Constants *ConstantsCaller) GetBlockConfirmerHash(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "getBlockConfirmerHash")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, er... | [
0.4743196368217468,
0.8910074234008789,
0.7558910846710205,
1.4819772243499756,
-0.20138593018054962,
0.395183801651001,
-0.2900570034980774,
-0.7095674872398376,
-0.9322503209114075,
0.34156322479248047,
-0.3099204897880554,
0.8950767517089844,
-1.0174205303192139,
0.7097276449203491,
0... |
func (_Constants *ConstantsSession) GetBlockConfirmerHash() ([32]byte, error) {
return _Constants.Contract.GetBlockConfirmerHash(&_Constants.CallOpts)
} | [
0.8589557409286499,
0.6867607831954956,
0.4517456293106079,
1.5819767713546753,
-0.12802357971668243,
0.3478269875049591,
-0.11601394414901733,
-0.47861248254776,
-1.0145677328109741,
0.3129400312900543,
-0.45830535888671875,
0.7803507447242737,
-1.1772245168685913,
0.519679605960846,
1.... |
func (_Constants *ConstantsCallerSession) GetBlockConfirmerHash() ([32]byte, error) {
return _Constants.Contract.GetBlockConfirmerHash(&_Constants.CallOpts)
} | [
0.9129395484924316,
0.6872147917747498,
0.45757582783699036,
1.6759079694747925,
-0.10788653790950775,
0.3015785217285156,
-0.1039791852235794,
-0.44316914677619934,
-0.9096481204032898,
0.31794556975364685,
-0.4201407730579376,
0.7946182489395142,
-1.1072146892547607,
0.6595290303230286,
... |
func (_Constants *ConstantsCaller) GetDefaultAdminHash(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "getDefaultAdminHash")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
} | [
0.04845573380589485,
1.528949499130249,
0.6011924743652344,
0.7546289563179016,
0.36174601316452026,
1.090533971786499,
-0.8478436470031738,
-1.8116145133972168,
-0.28470543026924133,
0.021083805710077286,
-0.4911564886569977,
1.1370768547058105,
-1.4125791788101196,
0.657554030418396,
0... |
func (_Constants *ConstantsSession) GetDefaultAdminHash() ([32]byte, error) {
return _Constants.Contract.GetDefaultAdminHash(&_Constants.CallOpts)
} | [
0.39649641513824463,
1.5175672769546509,
0.13374465703964233,
0.39045605063438416,
0.3909499943256378,
1.2108701467514038,
-0.7162235975265503,
-1.6509281396865845,
-0.09721504151821136,
-0.020455269142985344,
-0.4861674904823303,
0.8408898711204529,
-1.5593829154968262,
0.1249763742089271... |
func (_Constants *ConstantsCallerSession) GetDefaultAdminHash() ([32]byte, error) {
return _Constants.Contract.GetDefaultAdminHash(&_Constants.CallOpts)
} | [
0.5493219494819641,
1.4325419664382935,
0.11718527972698212,
0.5549381375312805,
0.4437989890575409,
1.198371171951294,
-0.7789660692214966,
-1.606374979019165,
-0.050669051706790924,
-0.05854148790240288,
-0.4799259305000305,
0.7313524484634399,
-1.5491514205932617,
0.3568021357059479,
... |
func (_Constants *ConstantsCaller) GetJobConfirmerHash(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "getJobConfirmerHash")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
} | [
0.30061835050582886,
0.8556641340255737,
0.8448753952980042,
1.1575617790222168,
-0.42112526297569275,
0.649613618850708,
-0.54278564453125,
-0.5647388100624084,
-0.9165626168251038,
-0.3320769667625427,
-0.7428348660469055,
1.0717880725860596,
-0.8780789375305176,
0.77181077003479,
0.41... |
func (_Constants *ConstantsSession) GetJobConfirmerHash() ([32]byte, error) {
return _Constants.Contract.GetJobConfirmerHash(&_Constants.CallOpts)
} | [
0.7173558473587036,
0.6539103984832764,
0.4266086220741272,
1.0312530994415283,
-0.3631439805030823,
0.6637975573539734,
-0.4058898091316223,
-0.309251070022583,
-0.9394618272781372,
-0.5607358813285828,
-0.9237191677093506,
0.8458850383758545,
-1.0458710193634033,
0.5969892740249634,
0.... |
func (_Constants *ConstantsCallerSession) GetJobConfirmerHash() ([32]byte, error) {
return _Constants.Contract.GetJobConfirmerHash(&_Constants.CallOpts)
} | [
0.822391927242279,
0.5774633288383484,
0.4139781594276428,
1.1610791683197021,
-0.34266242384910583,
0.5666502118110657,
-0.3979942500591278,
-0.25374820828437805,
-0.8377674221992493,
-0.5524453520774841,
-0.8683502078056335,
0.7780075073242188,
-0.9902166128158569,
0.7211428880691528,
... |
func (_Constants *ConstantsCaller) GetStakeModifierHash(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "getStakeModifierHash")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
return out0, err
... | [
-0.28656309843063354,
0.607103168964386,
0.7282214760780334,
0.17571614682674408,
-0.09381652623414993,
-0.06265050917863846,
-0.46134647727012634,
-0.4193863868713379,
-0.11737346649169922,
0.23738089203834534,
-1.3713897466659546,
1.579748272895813,
-1.1539051532745361,
0.637018442153930... |
func (_Constants *ConstantsSession) GetStakeModifierHash() ([32]byte, error) {
return _Constants.Contract.GetStakeModifierHash(&_Constants.CallOpts)
} | [
-0.13062164187431335,
0.42011281847953796,
0.3817979097366333,
-0.0426303930580616,
-0.2110254466533661,
0.022081797942519188,
-0.42844679951667786,
-0.020942647010087967,
-0.10286442190408707,
0.04648641124367714,
-1.725677251815796,
1.0287903547286987,
-1.2494029998779297,
0.307565838098... |
func (_Constants *ConstantsCallerSession) GetStakeModifierHash() ([32]byte, error) {
return _Constants.Contract.GetStakeModifierHash(&_Constants.CallOpts)
} | [
-0.029979821294546127,
0.32974979281425476,
0.37522879242897034,
0.12125755101442337,
-0.18582971394062042,
-0.07418989390134811,
-0.3795904219150543,
-0.03220748156309128,
-0.02371973730623722,
0.012483539059758186,
-1.6814579963684082,
0.9645397663116455,
-1.1983752250671387,
0.455238878... |
func (_Constants *ConstantsCaller) GetStakerActivityUpdaterHash(opts *bind.CallOpts) ([32]byte, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "getStakerActivityUpdaterHash")
if err != nil {
return *new([32]byte), err
}
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
r... | [
0.41662630438804626,
0.28031125664711,
0.9575821161270142,
0.8464342951774597,
-0.6499671936035156,
0.32104429602622986,
-0.062485359609127045,
-0.5302779078483582,
0.05725172534584999,
0.23859058320522308,
-0.6550118923187256,
1.0077260732650757,
-0.7413943409919739,
-0.3780704736709595,
... |
func (_Constants *ConstantsSession) GetStakerActivityUpdaterHash() ([32]byte, error) {
return _Constants.Contract.GetStakerActivityUpdaterHash(&_Constants.CallOpts)
} | [
0.5866784453392029,
-0.09322433918714523,
0.5889067649841309,
0.9301027655601501,
-0.8823157548904419,
0.3888290226459503,
0.10642798244953156,
-0.025854311883449554,
0.0312519446015358,
0.2709212601184845,
-0.8813018798828125,
0.4892447590827942,
-0.9329661726951599,
-0.8303547501564026,
... |
func (_Constants *ConstantsCallerSession) GetStakerActivityUpdaterHash() ([32]byte, error) {
return _Constants.Contract.GetStakerActivityUpdaterHash(&_Constants.CallOpts)
} | [
0.629766583442688,
-0.1096109002828598,
0.5535894632339478,
1.0241429805755615,
-0.8651714324951172,
0.30054938793182373,
0.19058768451213837,
-0.04605010524392128,
0.10894118994474411,
0.2636590600013733,
-0.856610894203186,
0.5147561430931091,
-0.9269551038742065,
-0.6793881058692932,
... |
func (_Constants *ConstantsCaller) MaxAltBlocks(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "maxAltBlocks")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
} | [
-0.47780629992485046,
0.4428721070289612,
0.993281364440918,
-0.0649842843413353,
-0.9727990627288818,
0.17824292182922363,
-0.6487551927566528,
-0.97214674949646,
0.47671428322792053,
0.832533061504364,
-0.4080309569835663,
0.5720157027244568,
-0.7589728236198425,
0.6815982460975647,
0.... |
func (_Constants *ConstantsSession) MaxAltBlocks() (*big.Int, error) {
return _Constants.Contract.MaxAltBlocks(&_Constants.CallOpts)
} | [
0.12545083463191986,
0.6414617896080017,
0.5684330463409424,
-0.20361806452274323,
-0.9115568399429321,
0.5101280212402344,
-0.8145159482955933,
-0.835091769695282,
0.6446638107299805,
0.6767259240150452,
-0.36682096123695374,
0.15725281834602356,
-0.7947096228599548,
0.5730614066123962,
... |
func (_Constants *ConstantsCallerSession) MaxAltBlocks() (*big.Int, error) {
return _Constants.Contract.MaxAltBlocks(&_Constants.CallOpts)
} | [
0.18252311646938324,
0.5330894589424133,
0.5220359563827515,
-0.06198398023843765,
-0.8291246294975281,
0.4964791536331177,
-0.7827022671699524,
-0.8455379605293274,
0.700256884098053,
0.6300989389419556,
-0.361551433801651,
0.12820561230182648,
-0.7455780506134033,
0.822861909866333,
0.... |
func (_Constants *ConstantsCaller) MinStake(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "minStake")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
} | [
-0.311250776052475,
1.0799604654312134,
0.8766570687294006,
0.21867382526397705,
-0.49691343307495117,
-0.4301854968070984,
0.017788587138056755,
-1.0537259578704834,
0.4770810306072235,
-0.13876883685588837,
-0.43667101860046387,
0.6503426432609558,
-1.4684641361236572,
0.4530686438083648... |
func (_Constants *ConstantsSession) MinStake() (*big.Int, error) {
return _Constants.Contract.MinStake(&_Constants.CallOpts)
} | [
0.1645873785018921,
1.3740925788879395,
0.43619197607040405,
0.14919981360435486,
-0.4984009861946106,
-0.5387131571769714,
0.17977993190288544,
-0.7195290327072144,
0.4341520369052887,
-0.5294235944747925,
-0.08673045784235,
-0.0752311497926712,
-1.6939468383789062,
0.2373926341533661,
... |
func (_Constants *ConstantsCallerSession) MinStake() (*big.Int, error) {
return _Constants.Contract.MinStake(&_Constants.CallOpts)
} | [
0.24037286639213562,
1.2971833944320679,
0.4372189939022064,
0.3912354111671448,
-0.4333893954753876,
-0.5678766369819641,
0.17906808853149414,
-0.7523259520530701,
0.5061010122299194,
-0.5258952379226685,
-0.0855923593044281,
-0.04612462967634201,
-1.6497704982757568,
0.505720853805542,
... |
func (_Constants *ConstantsCaller) NumStates(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "numStates")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
} | [
-0.6620058417320251,
0.8567937612533569,
0.6049273014068604,
-0.2656138837337494,
-0.6044924855232239,
-0.2517220973968506,
-0.18773801624774933,
-0.6764645576477051,
0.9618179202079773,
-0.3517424166202545,
-0.7494840621948242,
0.03736057132482529,
-0.9997194409370422,
-0.1977017223834991... |
func (_Constants *ConstantsSession) NumStates() (*big.Int, error) {
return _Constants.Contract.NumStates(&_Constants.CallOpts)
} | [
-0.26113200187683105,
1.1148324012756348,
0.1908261477947235,
-0.4883732497692108,
-0.6751725673675537,
-0.2600688636302948,
-0.12076692283153534,
-0.3137941360473633,
1.2506083250045776,
-0.5049659609794617,
-0.6350245475769043,
-0.6178030371665955,
-1.1646876335144043,
-0.714463591575622... |
func (_Constants *ConstantsCallerSession) NumStates() (*big.Int, error) {
return _Constants.Contract.NumStates(&_Constants.CallOpts)
} | [
-0.144982248544693,
1.0724430084228516,
0.15610729157924652,
-0.27408209443092346,
-0.5788200497627258,
-0.2691110074520111,
-0.058302681893110275,
-0.35661301016807556,
1.326900601387024,
-0.583361029624939,
-0.6189530491828918,
-0.6231010556221008,
-1.127437710762024,
-0.4550288915634155... |
func (_Constants *ConstantsCaller) PenaltyNotRevealDenom(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "penaltyNotRevealDenom")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, er... | [
-0.2956847846508026,
0.7941816449165344,
0.5485444068908691,
0.44909101724624634,
-0.28130480647087097,
0.15167905390262604,
-0.23910009860992432,
0.3180205225944519,
0.13950833678245544,
0.39734354615211487,
0.2653260827064514,
0.6345896124839783,
-0.6518584489822388,
-0.3246036469936371,... |
func (_Constants *ConstantsSession) PenaltyNotRevealDenom() (*big.Int, error) {
return _Constants.Contract.PenaltyNotRevealDenom(&_Constants.CallOpts)
} | [
0.10737599432468414,
0.8316065669059753,
0.3692402243614197,
0.6801665425300598,
0.11725816130638123,
0.19224095344543457,
-0.18647682666778564,
0.48562416434288025,
0.2604142129421234,
0.19504718482494354,
0.03308822214603424,
0.5378198027610779,
-0.5488205552101135,
-0.794535756111145,
... |
func (_Constants *ConstantsCallerSession) PenaltyNotRevealDenom() (*big.Int, error) {
return _Constants.Contract.PenaltyNotRevealDenom(&_Constants.CallOpts)
} | [
0.1680654138326645,
0.7332897782325745,
0.322245329618454,
0.739948034286499,
0.09794536978006363,
0.11264140158891678,
-0.15765218436717987,
0.4706179201602936,
0.323732852935791,
0.178550586104393,
0.05340775474905968,
0.5275301337242126,
-0.525356650352478,
-0.7149845361709595,
0.3810... |
func (_Constants *ConstantsCaller) PenaltyNotRevealNum(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "penaltyNotRevealNum")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
} | [
-0.9956714510917664,
0.7116051316261292,
0.6554813385009766,
0.1750672310590744,
0.0239791888743639,
0.18903474509716034,
0.45653051137924194,
0.3281938135623932,
0.509284496307373,
0.08233063668012619,
0.3123985528945923,
0.5541126728057861,
-0.9248862862586975,
0.19112379848957062,
0.5... |
func (_Constants *ConstantsSession) PenaltyNotRevealNum() (*big.Int, error) {
return _Constants.Contract.PenaltyNotRevealNum(&_Constants.CallOpts)
} | [
-0.7263760566711426,
0.7631251811981201,
0.4631970524787903,
0.3954097330570221,
0.3314089775085449,
0.26449838280677795,
0.7660800814628601,
0.5630645155906677,
0.474997341632843,
-0.0017692848341539502,
0.04115622863173485,
0.4001915454864502,
-0.998673677444458,
-0.3950275480747223,
0... |
func (_Constants *ConstantsCallerSession) PenaltyNotRevealNum() (*big.Int, error) {
return _Constants.Contract.PenaltyNotRevealNum(&_Constants.CallOpts)
} | [
-0.6948448419570923,
0.662453293800354,
0.4098067879676819,
0.4516924321651459,
0.330025851726532,
0.14683549106121063,
0.8282767534255981,
0.5689307451248169,
0.5530605912208557,
-0.007839381694793701,
0.059904877096414566,
0.403676837682724,
-0.94923335313797,
-0.3333297073841095,
0.58... |
func (_Constants *ConstantsCaller) Propose(opts *bind.CallOpts) (uint8, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "propose")
if err != nil {
return *new(uint8), err
}
out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8)
return out0, err
} | [
-1.0400654077529907,
1.1527304649353027,
0.7544119954109192,
0.6788780093193054,
-0.14730848371982574,
-0.49610960483551025,
-0.4677552282810211,
-0.7288613319396973,
0.4602879285812378,
0.5275485515594482,
0.00998356007039547,
0.08997978270053864,
-1.0385938882827759,
0.35910552740097046,... |
func (_Constants *ConstantsSession) Propose() (uint8, error) {
return _Constants.Contract.Propose(&_Constants.CallOpts)
} | [
-0.689476728439331,
1.6250522136688232,
0.47282713651657104,
0.3445291221141815,
-0.19081752002239227,
-0.8482974767684937,
-0.5210986137390137,
-0.7816498875617981,
0.19957095384597778,
0.4466261863708496,
0.18319129943847656,
-0.17648698389530182,
-0.9590528011322021,
-0.0215570759028196... |
func (_Constants *ConstantsCallerSession) Propose() (uint8, error) {
return _Constants.Contract.Propose(&_Constants.CallOpts)
} | [
-0.5697386860847473,
1.432997465133667,
0.43747854232788086,
0.6906666159629822,
-0.1075548380613327,
-0.902341902256012,
-0.495773583650589,
-0.8160692453384399,
0.34304580092430115,
0.44639214873313904,
0.07641962170600891,
-0.2591037154197693,
-0.8181357979774475,
0.42189380526542664,
... |
func (_Constants *ConstantsCaller) Reveal(opts *bind.CallOpts) (uint8, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "reveal")
if err != nil {
return *new(uint8), err
}
out0 := *abi.ConvertType(out[0], new(uint8)).(*uint8)
return out0, err
} | [
-0.8073762059211731,
0.8118752241134644,
0.7545731663703918,
0.6862978935241699,
-0.20905359089374542,
-0.4923415780067444,
-0.18099676072597504,
-0.5311738848686218,
0.8790028691291809,
0.3162177503108978,
-0.4028761088848114,
0.7327390313148499,
-1.0842053890228271,
0.2585378885269165,
... |
func (_Constants *ConstantsSession) Reveal() (uint8, error) {
return _Constants.Contract.Reveal(&_Constants.CallOpts)
} | [
-0.43462955951690674,
1.4051551818847656,
0.4696331322193146,
0.08201129734516144,
-0.3620850145816803,
-0.7413747310638428,
-0.15034103393554688,
-0.6052970886230469,
0.7489523887634277,
0.2661576569080353,
0.0031842486932873726,
0.4482637047767639,
-1.1602997779846191,
-0.072761781513690... |
func (_Constants *ConstantsCallerSession) Reveal() (uint8, error) {
return _Constants.Contract.Reveal(&_Constants.CallOpts)
} | [
-0.33404430747032166,
1.2250325679779053,
0.4435131251811981,
0.39073020219802856,
-0.20310693979263306,
-0.7620517015457153,
-0.10057642310857773,
-0.6006422638893127,
0.8047794103622437,
0.24843215942382812,
-0.08275279402732849,
0.3837774097919464,
-1.0605354309082031,
0.358874738216400... |
func (_Constants *ConstantsCaller) UnstakeLockPeriod(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "unstakeLockPeriod")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
} | [
-0.25631287693977356,
1.0765577554702759,
0.6807877421379089,
0.21218086779117584,
-0.5798280835151672,
0.026881463825702667,
0.7066601514816284,
-0.6459579467773438,
0.057940587401390076,
0.5754168629646301,
-0.4017523229122162,
0.4024823009967804,
-1.3850637674331665,
0.2449377328157425,... |
func (_Constants *ConstantsSession) UnstakeLockPeriod() (*big.Int, error) {
return _Constants.Contract.UnstakeLockPeriod(&_Constants.CallOpts)
} | [
0.2759927809238434,
1.4193979501724243,
0.47664007544517517,
0.2244091033935547,
-0.5921053290367126,
-0.13134706020355225,
0.8223262429237366,
-0.681117594242096,
0.01174124889075756,
0.25445929169654846,
-0.41516587138175964,
0.1793813407421112,
-1.494928002357483,
0.15684431791305542,
... |
func (_Constants *ConstantsCallerSession) UnstakeLockPeriod() (*big.Int, error) {
return _Constants.Contract.UnstakeLockPeriod(&_Constants.CallOpts)
} | [
0.35536104440689087,
1.3628968000411987,
0.4609560966491699,
0.3295377194881439,
-0.5353537797927856,
-0.2302141934633255,
0.8296023607254028,
-0.6910173296928406,
0.0447322241961956,
0.28337013721466064,
-0.4114009141921997,
0.1511254757642746,
-1.4705389738082886,
0.3329712450504303,
0... |
func (_Constants *ConstantsCaller) WithdrawLockPeriod(opts *bind.CallOpts) (*big.Int, error) {
var out []interface{}
err := _Constants.contract.Call(opts, &out, "withdrawLockPeriod")
if err != nil {
return *new(*big.Int), err
}
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
return out0, err
} | [
-1.0630652904510498,
0.46040767431259155,
0.7480341196060181,
-0.09360992908477783,
-0.2666913866996765,
0.49160048365592957,
0.2803645730018616,
-0.2840995490550995,
0.5427992343902588,
0.29061636328697205,
-0.08973884582519531,
0.40916574001312256,
-1.5815657377243042,
-0.365887045860290... |
func (_Constants *ConstantsSession) WithdrawLockPeriod() (*big.Int, error) {
return _Constants.Contract.WithdrawLockPeriod(&_Constants.CallOpts)
} | [
-0.6556235551834106,
0.6756263375282288,
0.5256863236427307,
-0.17023950815200806,
-0.10097406804561615,
0.5422462821006775,
0.38619911670684814,
-0.18238326907157898,
0.6428313851356506,
0.15020057559013367,
-0.15356676280498505,
0.37700217962265015,
-1.6161645650863647,
-0.59113872051239... |
func (_Constants *ConstantsCallerSession) WithdrawLockPeriod() (*big.Int, error) {
return _Constants.Contract.WithdrawLockPeriod(&_Constants.CallOpts)
} | [
-0.6111442446708679,
0.6355698108673096,
0.5264363288879395,
-0.0019061141647398472,
-0.11520048975944519,
0.43224963545799255,
0.4523634612560272,
-0.23826287686824799,
0.7164714932441711,
0.17493769526481628,
-0.16084547340869904,
0.37678664922714233,
-1.5664907693862915,
-0.449036747217... |
func checkCertificateVisibleInBrowserSettings(ctx context.Context, tconn *chrome.TestConn, br *browser.Browser) error {
conn, err := br.NewConn(ctx, "chrome://settings/certificates")
if err != nil {
return err
}
defer conn.Close()
// We may have to reload the page for the certificate to show up.
ui := uiauto.N... | [
-0.1822257786989212,
0.3329882323741913,
0.5265616774559021,
0.34629884362220764,
0.12191365659236908,
0.22260209918022156,
-0.0034730746410787106,
-0.7386527061462402,
-1.232633113861084,
1.8829469680786133,
-0.30599525570869446,
0.024560239166021347,
-0.27749621868133545,
0.0428303256630... |
func (z *zr) Read(dst []byte) (n int, err error) {
for i := range dst {
dst[i] = 0
}
return len(dst), nil
} | [
-1.3484171628952026,
0.12033254653215408,
0.5683944225311279,
-0.3645196259021759,
-0.1588374525308609,
-0.18124711513519287,
0.8269176483154297,
0.3911421597003937,
0.38029080629348755,
0.5750054121017456,
-0.6616809368133545,
0.6961526274681091,
-0.34737053513526917,
0.20555290579795837,... |
func MinAvgTwoSlice(A []int) int {
// Get A length
n := len(A)
// New variables
minAvg := float64(10000)
result := 0
for i := 0; i < n-1; i++ {
// The minimal of 2 consecutive slices
if i+1 < n {
avg := float64(A[i]+A[i+1]) / float64(2.0)
if minAvg > avg {
minAvg = avg
result = i
}
}
/... | [
-0.10176563262939453,
-0.6495823860168457,
0.8793565034866333,
-0.603405773639679,
-0.9963046908378601,
0.30438122153282166,
0.5247056484222412,
0.07358776032924652,
-0.47754597663879395,
0.8100327849388123,
0.39757657051086426,
1.3566970825195312,
0.12447675317525864,
1.1781904697418213,
... |
func (m *UserSettings) Validate(formats strfmt.Registry) error {
return nil
} | [
-0.487541139125824,
1.0613669157028198,
0.0625057965517044,
0.41068342328071594,
0.04605059325695038,
0.13038383424282074,
0.9780451059341431,
-0.49395233392715454,
-0.43616968393325806,
0.2635936737060547,
-0.06162344291806221,
-0.304176390171051,
-1.0084450244903564,
0.3488490581512451,
... |
func GetWarnings(_ context.Context, shoot, oldShoot *core.Shoot, credentialsRotationInterval time.Duration) []string {
if shoot == nil {
return nil
}
var warnings []string
if pointer.BoolDeref(shoot.Spec.Kubernetes.EnableStaticTokenKubeconfig, true) {
warnings = append(warnings, "you should consider disabling... | [
-0.2929869592189789,
-0.02508414536714554,
0.6479167342185974,
0.7593518495559692,
0.045088931918144226,
-0.47111058235168457,
-0.714817225933075,
-1.1333413124084473,
0.1454564332962036,
0.35024943947792053,
-0.09375316649675369,
0.7853865623474121,
-0.06625239551067352,
0.579186558723449... |
func (*BillingAccount) Descriptor() ([]byte, []int) {
return file_google_cloud_billing_v1_cloud_billing_proto_rawDescGZIP(), []int{0}
} | [
0.1408478319644928,
0.4997962713241577,
0.20095621049404144,
0.6962199211120605,
-0.15953561663627625,
0.46758928894996643,
1.0887011289596558,
0.793282151222229,
-0.16387225687503815,
-0.5025366544723511,
-0.6790589690208435,
0.29550909996032715,
0.23861491680145264,
0.8350933194160461,
... |
func (*ProjectBillingInfo) Descriptor() ([]byte, []int) {
return file_google_cloud_billing_v1_cloud_billing_proto_rawDescGZIP(), []int{1}
} | [
-0.22531548142433167,
0.9463177919387817,
0.49848243594169617,
0.5424405336380005,
-1.096912145614624,
0.6248719692230225,
0.16358941793441772,
0.2677975296974182,
-1.2885385751724243,
-0.2068147212266922,
-0.40508779883384705,
-0.8800196647644043,
-0.48796406388282776,
0.6996769905090332,... |
func (*GetBillingAccountRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_billing_v1_cloud_billing_proto_rawDescGZIP(), []int{2}
} | [
-0.764643669128418,
0.7110891938209534,
0.4919348359107971,
0.8616155385971069,
0.8299822807312012,
0.03092411532998085,
0.7171483039855957,
0.18563982844352722,
-0.23627032339572906,
-0.48371243476867676,
0.43361327052116394,
0.3903037905693054,
0.22280828654766083,
1.1949290037155151,
... |
func (*ListBillingAccountsRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_billing_v1_cloud_billing_proto_rawDescGZIP(), []int{3}
} | [
-0.2631987929344177,
0.13176386058330536,
0.42878684401512146,
-0.06517462432384491,
0.4452635943889618,
-0.6718595027923584,
0.18885928392410278,
-0.019546927884221077,
0.5191994309425354,
-0.5115165710449219,
-0.16210591793060303,
-0.48486703634262085,
0.20150384306907654,
0.932668983936... |
func (*ListBillingAccountsResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_billing_v1_cloud_billing_proto_rawDescGZIP(), []int{4}
} | [
0.6359607577323914,
0.0045669288374483585,
-0.23943927884101868,
-0.11451540142297745,
0.3601427972316742,
-1.0290982723236084,
0.5210520625114441,
-0.36016756296157837,
0.3901168406009674,
0.08916935324668884,
-0.9472836256027222,
-0.9949924349784851,
-0.3017383813858032,
0.37332984805107... |
func (*CreateBillingAccountRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_billing_v1_cloud_billing_proto_rawDescGZIP(), []int{5}
} | [
-0.5980243682861328,
0.6877431273460388,
-0.02791801653802395,
0.8980116844177246,
0.5509346723556519,
0.6483813524246216,
0.8824082016944885,
-0.33338627219200134,
-0.8719884753227234,
-0.4494166970252991,
0.2639944851398468,
-0.10259819030761719,
-0.2407754808664322,
1.736574649810791,
... |
func (*UpdateBillingAccountRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_billing_v1_cloud_billing_proto_rawDescGZIP(), []int{6}
} | [
-1.3097089529037476,
0.12087877839803696,
0.11835238337516785,
0.49244099855422974,
-0.013450438156723976,
0.0011949811596423388,
0.7547621726989746,
0.19802908599376678,
-0.4725589156150818,
0.1763618290424347,
0.15294776856899261,
-0.018390022218227386,
0.05238277092576027,
0.83216202259... |
func (*ListProjectBillingInfoRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_billing_v1_cloud_billing_proto_rawDescGZIP(), []int{7}
} | [
-0.5313839912414551,
0.7346130013465881,
0.5578286647796631,
0.16730996966362,
-0.1364753544330597,
0.17095942795276642,
0.05017005279660225,
0.2147728055715561,
-0.7391648292541504,
0.13095849752426147,
0.2947738468647003,
-0.7112593054771423,
-0.3042680025100708,
0.7910877466201782,
-0... |
func (*ListProjectBillingInfoResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_billing_v1_cloud_billing_proto_rawDescGZIP(), []int{8}
} | [
-0.10020549595355988,
0.3308263421058655,
-0.08726850152015686,
0.1640949696302414,
-0.14851783215999603,
-0.213437020778656,
-0.025692038238048553,
-0.09950575232505798,
-0.5668554306030273,
-0.2652722895145416,
-0.5033018589019775,
-1.1671826839447021,
-0.8755960464477539,
0.505295813083... |
func (*GetProjectBillingInfoRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_billing_v1_cloud_billing_proto_rawDescGZIP(), []int{9}
} | [
-0.38235193490982056,
1.069907784461975,
0.8206571936607361,
0.06367921829223633,
-0.27951276302337646,
0.514525294303894,
0.4295222759246826,
0.3189431130886078,
-0.8885887265205383,
-0.3132566511631012,
0.17525820434093475,
-0.6821500658988953,
-0.5513052940368652,
0.5787546634674072,
... |
func (*UpdateProjectBillingInfoRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_billing_v1_cloud_billing_proto_rawDescGZIP(), []int{10}
} | [
-0.7451109886169434,
0.439103901386261,
0.5795760154724121,
0.12011053413152695,
-0.7403463125228882,
0.42097389698028564,
0.612720251083374,
0.2727901041507721,
-0.8476182818412781,
0.7146307826042175,
0.3751314878463745,
-0.720054566860199,
-0.7239132523536682,
0.20539042353630066,
0.3... |
func OAuthURI(clientID string) http.HandlerFunc {
return func(rw http.ResponseWriter, r *http.Request) {
googleOAuthURI, err := oauth.GetGoogleOAuthURI(clientID)
if err != nil {
log.Fatalln(
"Failed to generate Google oAuth URI: %s",
err.Error(),
)
http.Error(
rw,
http.StatusText(http.Stat... | [
-1.287982702255249,
-0.4849129617214203,
0.48110446333885193,
-0.6890954375267029,
-0.6017457842826843,
-0.10468211024999619,
0.13840237259864807,
-0.008208781480789185,
-0.3706303834915161,
0.7224364280700684,
-0.48908838629722595,
1.0385425090789795,
-0.08751741051673889,
0.1511001437902... |
func HandleGoogleOAuthCallback(clientID, clientSecret string) http.HandlerFunc {
return func(rw http.ResponseWriter, r *http.Request) {
var data struct {
Code string `json:"code"`
}
err := json.NewDecoder(r.Body).Decode(&data)
if err != nil {
log.Printf("Error parsing code from request %s\n", err.Error(... | [
-0.04436013475060463,
-0.6180392503738403,
0.4709593653678894,
-0.4481567144393921,
-0.14455311000347137,
-0.2802709937095642,
0.21867439150810242,
-0.4690403938293457,
1.0232182741165161,
0.7517135143280029,
-0.01707274653017521,
0.28744199872016907,
0.8525694012641907,
0.1152511686086654... |
func getRawData(tx Transaction, nonce uint32) []byte {
var validate [][]byte
for _, v := range tx.Validate {
validate = append(validate, v[:])
}
return bytes.Join(
[][]byte{
IntToBytes(int64(tx.Number)),
tx.Parent[:],
bytes.Join(validate, []byte{}),
tx.Income[:],
tx.Sender[:],
IntToBytes(int64... | [
0.0622088722884655,
0.8936523795127869,
1.0537961721420288,
-0.5893260836601257,
-0.6492421627044678,
0.6151631474494934,
-1.1395676136016846,
-0.5783581733703613,
-0.2529509961605072,
-0.35761770606040955,
-0.3630817234516144,
0.6029095649719238,
-0.3840504288673401,
-0.07826963067054749,... |
func (tx Transaction) HashTx() [32]byte {
txCopy := tx
txCopy.Hash = [32]byte{}
hash := sha256.Sum256(txCopy.Serialize())
return hash
} | [
0.9207094311714172,
0.6413429975509644,
0.4819584786891937,
-0.3737582266330719,
-0.4065721035003662,
0.4821198582649231,
-0.839658260345459,
-0.2834031879901886,
0.39809417724609375,
-0.048262327909469604,
-1.587925672531128,
-0.30897822976112366,
0.09794991463422775,
-1.0619491338729858,... |
func (tx *Transaction) Sign(privKey ecdsa.PrivateKey) {
if tx.IsGenesisTx() {
return
}
// TODO not complete copy
txCopy := *tx
txCopy.Hash = [32]byte{}
txCopy.Signature = [64]byte{}
//dataToSign := fmt.Sprintf("%x\n", txCopy)
dataToSign := ""
r, s, err := ecdsa.Sign(rand.Reader, &privKey, []byte(dataToS... | [
-0.9922692775726318,
0.17962123453617096,
0.5670042634010315,
-0.24636989831924438,
-0.26924026012420654,
0.5211556553840637,
-0.4512370526790619,
0.23010218143463135,
0.1870459020137787,
0.49615320563316345,
-1.0202181339263916,
-0.06420785933732986,
0.08260051906108856,
0.059483747929334... |
func (tx *Transaction) Verify() bool {
/*
// It just return true in the test
if tx.IsGenesisTx() {
return true
}
// TODO not complete copy
txCopy := *tx
r := big.Int{}
s := big.Int{}
sigLen := len(tx.Signature)
r.SetBytes(tx.Signature[:(sigLen/2)])
s.SetBytes(tx.Signature[(sigLen/2):])
x :=... | [
-0.028922993689775467,
0.5652790069580078,
0.6575013399124146,
-0.039701562374830246,
-0.33335167169570923,
0.19859963655471802,
-0.18751594424247742,
-0.029298773035407066,
-0.4337020814418793,
0.3981493413448334,
-1.4079633951187134,
0.2974708378314972,
-0.15843544900417328,
0.2052186727... |
func (tx Transaction) Serialize() []byte {
var encode bytes.Buffer
// construct the pure version of tx
pureTx := PureTx{
Parent: tx.Parent,
Validate: tx.Validate,
Income: tx.Income,
Sender: tx.Sender,
Value: tx.Value,
Receiver: tx.Receiver,
Nonce: tx.Nonce,
Timestamp: tx.Timestamp,
Signature: tx.S... | [
-0.36189979314804077,
0.42349809408187866,
0.6667699217796326,
-0.09406653791666031,
-0.054826442152261734,
0.16169822216033936,
-0.9588533639907837,
-0.04890665039420128,
-0.4241938591003418,
0.38429081439971924,
-1.1098268032073975,
-0.16235928237438202,
-1.1472421884536743,
-0.184391036... |
func NewTx(validateNum [2]int, par [32]byte, validate [2][32]byte, income [32]byte, sender string, senderNum int, value int, receiver string, verification bool) *Transaction {
senderBytes := []byte(sender)
var senderBytes34 [34]byte
copy(senderBytes34[:], senderBytes)
receiverBytes := []byte(receiver)
var receive... | [
0.9034050107002258,
0.5979055762290955,
0.8724021315574646,
0.06907695531845093,
-0.9100921154022217,
-0.04061698541045189,
-0.6925183534622192,
-0.6330664157867432,
0.764444887638092,
-0.2161206305027008,
-0.5445191860198975,
0.04339068382978439,
-0.6967331171035767,
-0.7081329226493835,
... |
func NewGenesisTx(value int, receiver []byte) *Transaction {
return NewTx([2]int{-1, -1}, [32]byte{}, [2][32]byte{}, [32]byte{}, "", -1, value, "", false)
} | [
-0.7096230387687683,
0.5436564087867737,
0.8338528871536255,
0.054390739649534225,
-0.8887973427772522,
-0.0659126341342926,
-0.1914197951555252,
-0.4696243107318878,
-0.6733935475349426,
0.6956520080566406,
-0.930719792842865,
-0.855783998966217,
-0.08147937804460526,
0.08088866621255875,... |
func (tx Transaction) IsGenesisTx() bool {
return 0 == len(tx.Parent) && 0 == len(tx.Validate) && 0 == len(tx.Sender)
} | [
-0.9582128524780273,
0.39120641350746155,
0.4631958603858948,
0.46252068877220154,
0.027613017708063126,
0.6903907656669617,
-0.5229994654655457,
-0.2968369126319885,
-0.4061668813228607,
0.44353798031806946,
-0.904348611831665,
-0.44179198145866394,
-0.3403128981590271,
0.4463455975055694... |
func NewTU(validateNum [2]int, acc *Account, income [32]byte, value int, receiver string,) (*TU, *TxContent) {
log.Println("The latest validateNum of a TU: ", validateNum)
receiverBytes := []byte(receiver)
var receiverBytes34 [34]byte
copy(receiverBytes34[:], receiverBytes)
newTU := &TU{
Number:txNum,
ParNum... | [
-0.39340123534202576,
-0.15929459035396576,
0.9284535646438599,
-0.6920880675315857,
-0.7040677070617676,
-0.16745565831661224,
0.45471709966659546,
0.5495485067367554,
0.632210910320282,
-0.24612823128700256,
-0.1243055909872055,
0.0449586845934391,
0.15444545447826385,
-0.203003153204917... |
func PruneOldTxs(dc *DagChain, acc *Account) error {
log.Printf("Prune old transactions of account: %d\n", acc.AccountNo)
txsByAccount := acc.WithoutPruneIds
var toPruneNum = make(map[int]bool)
for _, tn := range txsByAccount {
//log.Printf("tx in txsByAccount: %d", tn)
if GXs[tn].FetchCitedCount() == 0 {
if... | [
-0.07588668167591095,
0.2962557077407837,
0.6745655536651611,
-0.07398296892642975,
-0.5617862939834595,
-0.15453049540519714,
0.777555525302887,
0.016907889395952225,
0.3603244125843048,
0.2762955129146576,
0.35636278986930847,
0.5100054740905762,
-0.4240729510784149,
0.05189287289977074,... |
func StdlibShim(handler Triggerable, opts ...ShimWriterOption) *log.Logger {
shim := NewShimWriter(handler)
for _, opt := range opts {
opt(&shim)
}
return log.New(shim, "", 0)
} | [
0.4515485465526581,
0.12399790436029434,
0.6903664469718933,
0.8723981380462646,
-1.230225682258606,
-0.2114647775888443,
-0.019767584279179573,
0.1575263887643814,
-0.09276833385229111,
-0.04103078693151474,
-1.2764047384262085,
-0.4918552339076996,
0.034728046506643295,
0.189825996756553... |
func binomial(n, x int) float64 {
i, f := new(big.Int), new(big.Float)
binom, _ := f.SetInt(i.Binomial(int64(n), int64(x))).Float64()
return binom
} | [
0.5080052018165588,
0.3394183814525604,
0.2415941208600998,
0.1348622590303421,
0.07791580259799957,
0.04561510309576988,
-0.6236357092857361,
-0.39120590686798096,
-0.8017734885215759,
0.14547161757946014,
-0.46090933680534363,
0.8484755158424377,
0.12970133125782013,
-0.38714107871055603... |
func likelihood(pi float64, x int, n int) float64 {
return math.Pow(pi, float64(x)) * math.Pow(1 - pi, float64(n - x))
} | [
0.5193373560905457,
-0.3919350802898407,
0.2381785809993744,
-1.1000794172286987,
-0.33895277976989746,
0.7209112048149109,
-1.337970495223999,
-0.8290899991989136,
0.4577052593231201,
0.043924927711486816,
-0.17732279002666473,
-0.052466362714767456,
-0.454183429479599,
0.0131500810384750... |
func (s *Socket) Accept(m *transport.Message) error {
select {
case s.recv <- m:
return nil
case <-s.closed:
return io.EOF
}
} | [
-0.637683629989624,
0.14134466648101807,
0.6340809464454651,
-0.5344253182411194,
-0.8714900612831116,
-0.21163202822208405,
0.40611040592193604,
-1.007714867591858,
-0.4957648515701294,
-0.3788628578186035,
0.643600583076477,
0.3893468379974365,
-0.5500565767288208,
0.04464536905288696,
... |
func (s *Socket) Process(m *transport.Message) error {
select {
case msg := <-s.send:
*m = *msg
case <-s.closed:
// see if we need to drain
select {
case msg := <-s.send:
*m = *msg
return nil
default:
return io.EOF
}
}
return nil
} | [
0.05082717537879944,
0.3450206518173218,
0.7604233622550964,
-0.6166653037071228,
-0.7090352177619934,
-0.4537132978439331,
0.23430956900119781,
-1.2658543586730957,
0.6726818680763245,
0.12530653178691864,
0.6552197933197021,
-0.09427043795585632,
-0.5828198194503784,
0.2049092948436737,
... |
func (s *Socket) Close() error {
select {
case <-s.closed:
// no op
default:
close(s.closed)
}
return nil
} | [
-0.2581685781478882,
1.1239646673202515,
0.34766051173210144,
0.6786695718765259,
-0.6531627178192139,
-0.7060990929603577,
0.554421603679657,
-0.8393067121505737,
-0.0030405584257096052,
-1.0096261501312256,
0.4609369933605194,
0.5840337872505188,
-0.9790422320365906,
0.090810127556324,
... |
func New(id string) *Socket {
return &Socket{
id: id,
closed: make(chan bool),
local: "local",
remote: "remote",
send: make(chan *transport.Message, 128),
recv: make(chan *transport.Message, 128),
}
} | [
-0.5568221211433411,
-0.3378051221370697,
0.2850167453289032,
-0.9470494389533997,
-0.8372769355773926,
-0.0026920754462480545,
-0.39718514680862427,
-0.6897106766700745,
-0.09446282684803009,
-0.6318309903144836,
-0.855830729007721,
0.9300938844680786,
0.18073558807373047,
0.0726790726184... |
func (gateway VirtualNetworkGateway_Spec_ARM) GetAPIVersion() string {
return string(APIVersion_Value)
} | [
0.41030004620552063,
-0.3660154938697815,
0.12735840678215027,
-0.7515177726745605,
0.09362946450710297,
0.26728788018226624,
0.03867389261722565,
0.10616213083267212,
0.30393344163894653,
0.7736064195632935,
-0.26949775218963623,
0.1838628649711609,
-0.15210433304309845,
0.582018077373504... |
func (gateway *VirtualNetworkGateway_Spec_ARM) GetName() string {
return gateway.Name
} | [
0.8666664361953735,
-0.16648806631565094,
0.20647984743118286,
-0.20064955949783325,
-0.07849831134080887,
-0.17617842555046082,
-0.08252039551734924,
-0.04261213168501854,
0.12245349586009979,
1.419081687927246,
0.26802265644073486,
0.11715882271528244,
-0.07208418846130371,
1.11667430400... |
func (gateway *VirtualNetworkGateway_Spec_ARM) GetType() string {
return "Microsoft.Network/virtualNetworkGateways"
} | [
1.7757725715637207,
0.45790424942970276,
0.0350760780274868,
0.20907559990882874,
1.1046894788742065,
0.19965972006320953,
0.29017263650894165,
-0.6945018768310547,
1.072059154510498,
1.132935881614685,
0.20505473017692566,
0.13871340453624725,
-0.6854636073112488,
0.9603448510169983,
0.... |
func WriteFlightsToCSV(flights []Flight, jobID uint64) (ok bool) {
csvFile, err := os.Create("./output/report" + strconv.FormatUint(jobID, 10) + ".csv")
if err != nil {
return false
}
defer csvFile.Close()
writer := csv.NewWriter(csvFile)
defer writer.Flush()
headers := []string{
"TimeStamp",
"Carrie... | [
-0.2717016935348511,
-0.0026700743474066257,
0.9187760353088379,
-0.051260389387607574,
0.30775123834609985,
0.5500503778457642,
-0.33786287903785706,
-0.07288575917482376,
-0.7253007292747498,
-0.5198521614074707,
-0.25826746225357056,
-0.3493345081806183,
-0.06467901170253754,
0.81322920... |
func DeleteCSVFile(jobID uint64) (ok bool) {
if err := os.Remove("./output/report" + strconv.FormatUint(jobID, 10) + ".csv"); err != nil {
return false
}
return true
} | [
1.1059304475784302,
0.1566971242427826,
0.7483205795288086,
0.3050117492675781,
-0.05263359099626541,
0.5782896280288696,
0.6344195008277893,
0.5613144040107727,
-0.8769882321357727,
-0.06544984877109528,
-0.2675163149833679,
-0.5631433129310608,
-0.845877468585968,
0.45522359013557434,
... |
func (c *Context) Get(key interface{}) (v interface{}, has bool) {
c.l.RLock()
defer c.l.RUnlock()
v, has = c.data[key]
return
} | [
-0.5915049910545349,
0.06528276205062866,
0.33146223425865173,
-0.3319603502750397,
-0.04673374071717262,
-0.23356792330741882,
-0.6154112815856934,
-0.12766292691230774,
-0.2917361855506897,
0.22112467885017395,
-0.46343615651130676,
0.4834875762462616,
-0.5135375261306763,
0.075929135084... |
func (c *Context) Set(key interface{}, val interface{}) (old interface{}, has bool) {
c.l.Lock()
defer c.l.Unlock()
old, has = c.Get(key)
c.data[key] = val
return
} | [
-0.28940826654434204,
0.3113430440425873,
0.30668166279792786,
-0.5857051014900208,
-0.14627665281295776,
0.08817689120769501,
-0.5065550804138184,
-0.2371618002653122,
-0.43107572197914124,
0.3859853148460388,
-0.4991506040096283,
0.27772626280784607,
0.03574848175048828,
0.55854743719100... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.