text
stringlengths
25
2.19k
embedding
listlengths
768
768
def check _ for _ soa _ partition ( domain, child _ domains ) : for i _ domain in child _ domains : if i _ domain. soa = = domain. soa : continue # valid child. for j _ domain in child _ domains : # make sure the child domain does not share an soa with one # of it's siblings. if i _ domain = = j _ domain : continue if ...
[ 0.45452865958213806, -0.04954748600721359, 0.5545495748519897, 0.12442218512296677, -0.3066503405570984, -0.743596076965332, 1.4044113159179688, 0.10154735296964645, 0.3732073903083801, 0.7228962779045105, 0.0264451801776886, 0.1264147162437439, 0.27272796630859375, 0.47164008021354675, ...
def leaf _ count ( game _ state _ node ) : # count the number of leaves in each child # test!! # if there are no children, it is a leaf. if not game _ state _ node. children : return 1 else : sum = 0 # keep a counter for all the leafs for c in game _ state _ node. children : sum + = leaf _ count ( c ) return sum
[ 0.5522912740707397, -0.26857486367225647, 0.7041624784469604, -0.033807795494794846, 0.2590812146663666, 0.3008173704147339, 0.34862181544303894, 0.31488317251205444, 0.5843332409858704, -0.46557581424713135, 0.03514402359724045, -0.30372101068496704, 0.694891095161438, 0.07578874379396439...
def run _ tests ( input _ dict, environment _ dict ) : # check user input and seash state : # 1, make sure there is an active user key. if environment _ dict [ " currentkeyname " ] is none : raise seash _ exceptions. usererror ( " " " error : please set an identity before using'runtests '! example :! > loadkeys your _ ...
[ -0.44416725635528564, 0.32546183466911316, 0.8345322608947754, 0.05376232787966728, 0.5945202708244324, -0.1358778029680252, 1.0708034038543701, 0.07044647634029388, 0.14362765848636627, 0.12990163266658783, 0.04726336896419525, 0.9056670665740967, -0.9725852012634277, 0.42918911576271057,...
def get _ link _ rotation _ function ( self, link : str, base _ link : str, n : int = 1, numpy _ output : bool = false, ) - > cs. function : return self. make _ function ( " r ", link, self. get _ link _ rotation, base _ link = base _ link, n = n, numpy _ output = numpy _ output, )
[ -0.612947940826416, 0.21237978339195251, 0.2643163204193115, 0.3987511992454529, 0.5188495516777039, -1.8737622499465942, 0.6211655139923096, -0.6276264190673828, -0.10454919934272766, -0.8264288306236267, -0.04231575131416321, 1.0491467714309692, -0.21934013068675995, -1.371943473815918, ...
def addcrossnet ( self, * args ) : return _ snap. tmmnet _ addcrossnet ( self, * args )
[ -0.29440590739250183, 0.7891053557395935, 0.4654369354248047, 0.5820661187171936, 0.29346907138824463, 0.22624288499355316, 0.5173395872116089, -0.31418484449386597, 0.19701169431209564, -0.4130505323410034, 0.16120055317878723, -1.0196739435195923, -1.219032645225525, 1.5416126251220703, ...
def split _ terms ( self, operation ) : return [ int ( operation ) ]
[ -1.109965205192566, 0.6184521317481995, 0.5063465237617493, 0.2492924928665161, 0.2661193907260895, -0.800887405872345, 0.48149076104164124, 0.5662596821784973, 0.701019823551178, 0.6663045287132263, -0.5828462839126587, -0.5096021294593811, -0.5771437883377075, -0.9581189751625061, 0.18...
def save _ results _ file ( ) : while true : try : save _ file _ name = input ( " enter the name of the file you want to save to? = = > " ) return open ( save _ file _ name, " w " ) except filenotfounderror : print ( " invalid input. try another file name. " ) except ioerror : print ( " invalid input. try another file ...
[ -0.02589271403849125, -0.19694368541240692, 0.3730368912220001, 0.18458326160907745, 0.06792377680540085, 1.0631409883499146, 0.9848933815956116, -0.5869929790496826, -1.525270700454712, -0.8496075868606567, -0.12987233698368073, -0.36484867334365845, -0.7952315807342529, -0.40675175189971...
def fastcoreperiphery ( * args ) : return _ snap. fastcoreperiphery ( * args )
[ -0.6036812663078308, 0.1897168606519699, 0.6320053339004517, 0.40971827507019043, -0.10565350949764252, -0.006875135935842991, 0.6695709228515625, -1.1827404499053955, -0.6269134879112244, -0.0483684204518795, 0.11003632098436356, -1.485083818435669, -1.4722058773040771, 0.5483285188674927...
def acquire ( self ) : with self. _ lock : if self. _ fd is not none : return false try : self. _ fd = os. open ( self. _ path, os. o _ creat | os. o _ excl ) except oserror : log. exception ( " unable to create lockfile at'% s'", self. _ path ) return false os. fsync ( self. _ fd ) return true
[ 0.21463412046432495, 0.1262306123971939, 0.8634924292564392, -0.17194923758506775, 0.49965816736221313, 0.3315216898918152, 0.3583405315876007, 0.16109028458595276, -0.8174429535865784, -1.3387964963912964, 0.4884291887283325, -0.3670693337917328, 0.08745867758989334, -0.3137902319431305, ...
def on _ action _ text _ changed ( self, content ) : text = content ['text'] self. set _ guarded ( text = text )
[ 0.674746572971344, -1.0745019912719727, 0.20661088824272156, 0.2610527276992798, 0.8069426417350769, -0.28858402371406555, -0.38528668880462646, -0.541932225227356, 0.5948314666748047, 0.7859135866165161, -0.7998290061950684, 0.7947734594345093, -0.3672117590904236, -0.5927374362945557, ...
def getinrng ( * args ) : return _ snap. tflt _ getinrng ( * args )
[ 0.1611376702785492, 0.6354811787605286, 0.3199656903743744, 0.016992837190628052, 0.10045051574707031, -0.2924061417579651, 0.053840335458517075, 0.16596756875514984, -1.6184629201889038, -0.11609697341918945, -0.6008260846138, -0.016467969864606857, -1.1580995321273804, 0.7293090224266052...
def operationelestatus ( self ) : return self. _ operationelestatus. get _ waarde ( )
[ -0.3076487183570862, 0.5648679137229919, 0.48932671546936035, 0.05658295750617981, -0.2523643374443054, 0.05922083556652069, 0.9280447363853455, -0.1541062891483307, 0.5857493877410889, 0.14104360342025757, 0.44320663809776306, -0.24698001146316528, -0.10737964510917664, -0.296546429395675...
def dot _ fields ( field1, field2 ) : return field1 [ :, :, 0 ] * field2 [ :, :, 0 ] + field1 [ :, :, 1 ] * field2 [ :, :, 1 ]
[ -0.16874143481254578, -0.015123032964766026, 0.7190290689468384, -1.00478196144104, 0.17520467936992645, 0.1829548478126526, 0.2896522283554077, -0.25825631618499756, -0.3982629179954529, 0.5895795226097107, -0.9365783929824829, 0.38732385635375977, 0.19325615465641022, -1.1116700172424316...
def getkey ( self, * args ) : return _ snap. tintset _ getkey ( self, * args )
[ -0.5855393409729004, 0.6788188815116882, 0.36411866545677185, 1.1534053087234497, 0.7880563139915466, -0.3594162166118622, 0.7149715423583984, -1.122799277305603, -0.5218441486358643, -0.1687396615743637, -0.18119500577449799, -0.13198116421699524, -1.0867799520492554, -0.2208106368780136,...
def test _ get _ github ( self ) : pass
[ 0.46924352645874023, 0.674307107925415, 0.2398369461297989, 1.739243984222412, 1.6227757930755615, -0.01736106537282467, 1.1733142137527466, 0.4505408704280853, -0.10937101393938065, -1.3840584754943848, -0.2804083228111267, 0.27220332622528076, -1.3835800886154175, -0.4192140996456146, ...
def _ _ init _ _ ( self, locked = none, battery = none, responsive = none ) : # noqa : e501 # noqa : e501 self. _ locked = none self. _ battery = none self. _ responsive = none self. discriminator = none self. locked = locked self. battery = battery self. responsive = responsive
[ 0.0578521303832531, 0.12268470227718353, 0.33317261934280396, 0.44517457485198975, 0.6342504620552063, -0.028754141181707382, -0.00467425212264061, -0.10312841087579727, 0.3636770248413086, -0.5255193114280701, -0.5022754669189453, 0.24202832579612732, -0.2806914150714874, -0.8486296534538...
def _ right _ clicking ( self ) : self. elements = self. driver. find _ elements _ by _ class _ name ( " brmdjf. islir " ) # scrolling down if we have less items than we need if len ( self. elements ) < self. items : self. scroll _ down ( ) # setting the limit for images self. elements = self. elements [ : self. items ...
[ -0.4097881317138672, 0.6807551383972168, 0.580326497554779, 0.5558997392654419, 0.5717973709106445, -0.8664645552635193, 0.03818071261048317, 0.06743938475847244, 0.34938564896583557, -0.45406052470207214, 0.1674865335226059, 0.09718074649572372, -0.7044103741645813, 0.6502695083618164, ...
def make _ environ ( self ) : environ = super ( peercertwsgirequesthandler, self ). make _ environ ( ) x509 _ binary = self. connection. getpeercert ( true ) x509 = openssl. crypto. load _ certificate ( openssl. crypto. filetype _ asn1, x509 _ binary ) environ ['peercert'] = x509 return environ
[ 0.28551989793777466, 0.039390530437231064, 0.5334237217903137, -0.1668001115322113, -0.7274787425994873, 0.6037922501564026, -0.25890442728996277, 0.687972903251648, -0.4991879463195801, 0.17050427198410034, -0.5335107445716858, -0.2861682176589966, -0.39484721422195435, 0.4539163410663605...
def plotsngvaldistr ( * args ) : return _ snap. plotsngvaldistr ( * args )
[ -0.0781400054693222, 0.5460749268531799, 0.22645197808742523, 0.6100677251815796, -0.44555678963661194, 1.2674833536148071, -0.008304976858198643, -0.1463109850883484, -0.21390493214130402, -0.8008577823638916, -0.4694628119468689, 0.8173684477806091, 0.08711820095777512, 0.796169877052307...
def _ _ init _ _ ( self, * args ) : _ snap. tungraphmtx _ swiginit ( self, _ snap. new _ tungraphmtx ( * args ) )
[ -0.3462447226047516, -0.3265465497970581, 0.022496143355965614, 0.5737548470497131, -0.2356511801481247, 0.22980666160583496, -0.10815493017435074, 0.07715169340372086, -0.418960839509964, -0.20828157663345337, -0.9582558274269104, -0.13833484053611755, -0.04450518637895584, -0.01441437937...
def sort ( self, * args ) : return _ snap. tintprflth _ sort ( self, * args )
[ -0.6264958381652832, 0.14011257886886597, 0.5142210721969604, 0.5562811493873596, 0.2314882129430771, 0.24405167996883392, 0.14436163008213043, -0.5771703124046326, -1.0508623123168945, -1.4218745231628418, -0.18507272005081177, -0.31999513506889343, -1.7786500453948975, 0.9270297884941101...
def test _ atomic _ qname _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ qname _ min _ length _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - minlength - 2. xsd ", instance = " nistdata / atomic ...
[ 0.27200180292129517, -0.9957319498062134, 0.42376622557640076, 0.029834026470780373, -0.7333856821060181, 0.11854482442140579, -0.08389503508806229, -1.0103652477264404, -0.06295546144247055, 0.18285076320171356, -0.8027728796005249, 0.34462857246398926, -0.13365986943244934, 0.20800967514...
def geteastri ( self, * args ) : return _ snap. tneanet _ geteastri ( self, * args )
[ -0.498267263174057, 0.02435486949980259, 0.3044160008430481, -0.6298363208770752, 0.8331066370010376, 0.3217924237251282, 0.062246501445770264, -0.5126817226409912, -0.8282859921455383, 0.45070207118988037, -0.21315187215805054, -1.4268455505371094, -0.594078779220581, 0.6166117191314697, ...
def mail _ user ( self, cr, uid, ids, confirm = false, context = none ) : for regestration in self. browse ( cr, uid, ids, context = context ) : src = regestration. event _ id. reply _ to or false email _ to = [ ] email _ cc = [ ] if regestration. email _ from : email _ to = regestration. email _ from if regestration. ...
[ -0.35492122173309326, 0.3456553518772125, 0.796920657157898, 0.10717440396547318, 0.37521079182624817, -0.2986156940460205, 0.681477963924408, 0.044929053634405136, 0.011767901480197906, 0.6821997165679932, -0.4842441976070404, 1.4158140420913696, 0.34708142280578613, 0.41010457277297974, ...
def cntuniqbidiredges _ pneanet ( * args ) : return _ snap. cntuniqbidiredges _ pneanet ( * args )
[ -0.9919593334197998, 0.35746994614601135, 0.03850462660193443, -0.6714290976524353, 0.7285583019256592, 0.7881630063056946, -1.0066440105438232, -0.2690964639186859, -0.9725196957588196, -0.29467853903770447, -0.7911077737808228, -0.1944972276687622, -0.4836275279521942, -0.620808720588684...
def get ( self, request ) : result = client. { { cookiecutter. panel } } _ list ( request ) return {'items': [ change _ to _ id ( n. to _ dict ( ) ) for n in result ] }
[ -1.852601170539856, 0.3083927035331726, 0.3760692775249481, -0.19907568395137787, 0.45267316699028015, -1.346683382987976, -0.7846719026565552, -0.3254821300506592, -0.46288415789604187, 1.4254120588302612, -0.8261847496032715, 1.0038331747055054, -0.4044484496116638, 0.3395575284957886, ...
def cn _ applyexpansion ( self, scale ) : depr ('applyexpansion ', 1. 1,'obj = obj. expand ( scale )') new _ obj = self. copy ( ). expand ( scale ) self. _ profile = new _ obj. _ profile self. _ profile _ for _ stored = none # reset the stored profile as it is no longer up - to - date self. _ _ class _ _ = new _ obj. _...
[ -0.14063985645771027, -0.384425550699234, 0.8213046193122864, 1.0026507377624512, -1.0159326791763306, 0.036981526762247086, 0.7864461541175842, -0.6287492513656616, 0.6360839605331421, -0.11087731271982193, -0.9348334074020386, -0.20521332323551178, -0.2931607663631439, 0.1152293458580970...
def test _ zombie _ fails ( self ) : with self. assertraises ( unitisnotdeadexception ) : zombiebuff ( unit ( ) )
[ -0.028886977583169937, 0.46830061078071594, 0.24882952868938446, 0.6815826296806335, 0.44453951716423035, 0.9844024777412415, 0.6083563566207886, -0.4921640455722809, 0.47617238759994507, -1.472848892211914, -0.42589259147644043, 0.2568865120410919, -1.0005220174789429, 0.7181843519210815,...
def getv ( * args ) : return _ snap. tinttrv _ getv ( * args )
[ -0.7251522541046143, -0.526330828666687, 0.30101481080055237, 0.5083408355712891, 0.2436288446187973, 0.22708635032176971, 0.9379896521568298, 0.03759222850203514, -0.4885953664779663, -0.2896072268486023, -0.28946906328201294, 0.9326257109642029, -0.25628861784935, -0.436763733625412, 0...
def calc _ z _ dumpy ( m : int, zs : list [ complex ], cs : list [ complex ] ) - > list [ int ] : return [ func ( m, z, c ) for z, c in zip ( zs, cs ) ]
[ -0.5787948966026306, 0.0030464278534054756, 0.2201833873987198, 0.45027077198028564, -0.10136852413415909, -1.063759207725525, 1.0689786672592163, -0.09237583726644516, 0.1616974025964737, -0.003166602924466133, -1.4073623418807983, -0.39107251167297363, 0.5276259779930115, 0.5629377961158...
def _ _ eq _ _ ( self, * args ) : return _ snap. tcncom _ _ _ eq _ _ ( self, * args )
[ -0.5202300548553467, 0.29298049211502075, -0.059677641838788986, -0.6883657574653625, 1.5386264324188232, -0.23409311473369598, 0.7438792586326599, 0.3053879737854004, -0.5303784608840942, 0.029598888009786606, -1.5438934564590454, -1.5978775024414062, 0.416635662317276, 0.3147432208061218...
def addelement ( self, an, l, ms, mc, mac, mas ) : if an not in self. _ elements : self. _ elements [ an ] = partitionelementnum ( l, float ( ms ), float ( mc ), float ( mac ), float ( mas ), self. _ attribute, self. _ ipe, self. _ nump ) self. _ ipe + = 1 else : print ( " error : a partition element already exists wit...
[ 0.11420834809541702, -0.056954525411129, 0.560017466545105, -0.08090657740831375, -0.16995330154895782, 0.5338971614837646, 0.17758870124816895, 0.49941718578338623, 0.4413396418094635, -0.863338828086853, -0.09028454124927521, -0.555350124835968, -0.6987704634666443, 0.1236201599240303, ...
def test _ atomic _ id _ white _ space _ nistxml _ sv _ iv _ atomic _ id _ white _ space _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - whitespace - 1. xsd ", instance = " nistdata / atomic / id / schema...
[ -0.21317508816719055, -0.3014583885669708, 0.3956690728664398, 0.11016134917736053, -0.1476956307888031, 0.07430512458086014, 0.39260584115982056, -0.4169656038284302, 1.1381583213806152, 0.8197473287582397, 0.4107476770877838, 0.5668034553527832, -0.06017259880900383, 0.9203555583953857, ...
def getintattrinde ( self, * args ) : return _ snap. tneanetmp _ getintattrinde ( self, * args )
[ 0.1769736409187317, -0.4789690375328064, 0.3884528577327728, -0.27484533190727234, 0.8626745939254761, 0.04851699247956276, -0.1234290823340416, -0.15576526522636414, -0.979886531829834, -0.18423789739608765, 0.5393760800361633, -1.179779291152954, -1.9135868549346924, 0.586880087852478, ...
def make _ train _ test ( batch _ size, batch _ num, test _ size, noise ) : x _ train, y _ train = make _ moons ( n _ samples = batch _ size * batch _ num, noise = noise ) y _ train = y _ train. reshape ( batch _ num, batch _ size, 1 ) x _ train = x _ train. reshape ( batch _ num, batch _ size, 2 ) x _ test, y _ test =...
[ 0.21356914937496185, -0.10872795432806015, 0.8009165525436401, -0.23800967633724213, -0.04454983025789261, -0.15775510668754578, -0.16167579591274261, 0.5098733305931091, -0.48228728771209717, -0.6744216680526733, -0.36609524488449097, 0.1904699057340622, 0.7109425663948059, -1.04466402530...
def admin _ remove _ user _ from _ group ( userpoolid = none, username = none, groupname = none ) : pass
[ -0.7327411770820618, 0.5396142601966858, 0.08162662386894226, 0.7804090976715088, -0.616262674331665, 0.12611834704875946, 1.1762192249298096, -0.4076346158981323, -0.7208449244499207, 0.33377254009246826, -0.3203933835029602, 1.2715985774993896, -1.3621325492858887, -0.18108966946601868, ...
def _ build ( self ) : # todo : log this print'building...'self. _ run _ cmds ( self. _ xpd. _ data ['build'] )
[ -0.9758736491203308, -0.73860102891922, 0.06832440197467804, 0.4687991738319397, 0.9988070130348206, 0.21438103914260864, -0.17519764602184296, -0.15432673692703247, -0.02576701156795025, -1.014187216758728, 0.30436140298843384, 0.4620000720024109, 0.14911365509033203, -0.6494713425636292,...
def test _ appropriate _ async _ thread _ pool _ size _ on _ master ( self, admin _ remote ) : # get num of cpu from master node cpu _ count = admin _ remote. check _ call ( self. cmd. system. cpu _ count ) cpu _ count = int ( cpu _ count. stdout _ string ) if cpu _ count < = 4 : pytest. skip ('\ nfor this test master ...
[ -0.07577414810657501, 0.5476540327072144, 0.6255844235420227, 0.2616357207298279, 0.6457890272140503, 0.31661584973335266, 0.35941147804260254, -0.3045631945133209, 0.1692725419998169, -0.18555830419063568, 0.023787492886185646, 0.9036335945129395, -0.6851409673690796, 0.4920857846736908, ...
def _ preprocess _ ops ( ops, loop _ axis _ len ) : updaters = { } dependencies = { } out _ ops = [ [ ] ] last _ evaluated _ stage = { } def add _ dep ( dep _ index ) : for dep in dependencies [ dep _ index ] : if dep not in last _ evaluated _ stage or last _ evaluated _ stage [ dep ]! = ( len ( out _ ops ) - 1 ) : if ...
[ -0.9641873240470886, -0.13191574811935425, 0.9676751494407654, -0.07514095306396484, -0.9261906147003174, -0.2422521710395813, 1.2704607248306274, -0.04399654641747475, 0.7913582921028137, 0.8775535225868225, -0.2580828368663788, -0.5301302075386047, 0.05202800780534744, 0.4520910382270813...
def get _ form _ numbers _ list ( self, form _ nums _ elements ) : form _ nums _ list = [ ] for form _ number in form _ nums _ elements [ 9 : ] : # extract only the text content from the html element form _ number = form _ number. text form _ nums _ list. append ( form _ number ) return form _ nums _ list
[ -0.9011188745498657, -0.5786018371582031, 0.45809683203697205, 0.409817099571228, 0.4446835219860077, 0.3800755739212036, -0.18795660138130188, 0.8681626319885254, 0.7469349503517151, -0.37868714332580566, -0.9110485315322876, -0.4258595407009125, 0.2719188332557678, 0.7595221400260925, ...
def layers ( vgg _ layer3 _ out, vgg _ layer4 _ out, vgg _ layer7 _ out, num _ classes ) : # todo : implement function # # layer7 1x1 convolution and upsample layer7 _ 1x1 = conv _ 1x1 ( vgg _ layer7 _ out, num _ classes ) upsample _ layer7 = tf. layers. conv2d _ transpose ( layer7 _ 1x1, num _ classes, 4, strides = ( ...
[ -0.01274045929312706, 0.14748162031173706, 0.9471328854560852, 0.3109532296657562, -0.3017425537109375, -0.42082828283309937, 0.828044056892395, -0.4080042839050293, 0.1632746309041977, 0.5538067817687988, 0.1506824791431427, -0.718973696231842, 0.03688928857445717, -0.2993471324443817, ...
def constraint _ blackout ( self, state : str ) - > bool : if state not in ['in ','out'] : raise valueerror ('unknown blackout state : { 0 } '. format ( state ) ) in _ blackout = self. now _ is _ between ( blackout _ start, blackout _ end ) if state = ='in': return in _ blackout return not in _ blackout
[ -0.9021618366241455, -0.5794190764427185, 0.6484420299530029, 0.6027283072471619, -0.38465040922164917, 0.7194468975067139, -0.3033134639263153, 0.2775435745716095, -0.016767172142863274, 1.0506200790405273, -0.014889737591147423, 0.42513829469680786, -0.7250540256500244, -0.46868342161178...
def makeexpbins ( * args ) : return _ snap. tgutil _ makeexpbins ( * args )
[ -1.1752034425735474, 0.8902327418327332, 0.01747026853263378, -0.35544002056121826, -0.8231634497642517, 1.712134599685669, 0.6401800513267517, 0.35090333223342896, -0.8945163488388062, -0.06317993998527527, -0.5621834993362427, -0.5505332946777344, -1.0576092004776, 0.5537549257278442, ...
def endeaintvi ( self, * args ) : return _ snap. tneanet _ endeaintvi ( self, * args )
[ -1.2536814212799072, 0.2350003719329834, 0.28329312801361084, -1.2623567581176758, 0.6148672103881836, 0.20182591676712036, 0.6827439069747925, -0.96988445520401, -0.9720636606216431, 0.8714011907577515, -0.19706743955612183, -1.3931716680526733, -0.7732493281364441, 0.6188656091690063, ...
def tbool _ getyesnostr ( * args ) : return _ snap. tbool _ getyesnostr ( * args )
[ -0.16832880675792694, 0.6600939631462097, 0.10084899514913559, 0.6489721536636353, 0.32048338651657104, 0.4904589354991913, 0.41520291566848755, -0.9080345034599304, -1.8687939643859863, -0.9476669430732727, -0.450740784406662, 0.32247763872146606, -0.20605707168579102, -0.1457847207784652...
def test _ bad _ ioconfig ( simplenode ) : simplenode. io _ config = " true " with pytest. raises ( valueerror ) : updateablenode ( none, simplenode ) # but this is fine simplenode. io _ config = " { } " updateablenode ( none, simplenode )
[ -0.10129646211862564, 0.8704696297645569, 0.23873908817768097, 0.5222318768501282, -0.0648181363940239, 0.33254703879356384, -0.46623682975769043, 0.6152486205101013, -0.6027355194091797, 0.792315661907196, -1.0834742784500122, 0.22316554188728333, -0.49800458550453186, -0.2684325575828552...
def guess _ language ( text ) : return langid. rank ( text )
[ 0.08378706872463226, 0.08727647364139557, 0.12312756478786469, -0.09356510639190674, -0.7977238893508911, -0.11761173605918884, -0.6078526973724365, 0.730538010597229, 0.1904151439666748, 0.23672693967819214, -0.17735841870307922, -0.08949807286262512, -1.2825727462768555, 0.36949899792671...
def simfinaltossprob ( numdoubleheaded = 1, numflips = 10, numcoins = 1000, numtrials = 1000000 ) : count = 0 heads = 0 condition = 1 - ( float ( numdoubleheaded ) / numcoins ) for i in xrange ( numtrials ) : x = random. random ( ) if x < condition : flag = true for i in range ( numflips ) : outcome = int ( random. ran...
[ -0.2182437926530838, 1.0525273084640503, 0.6869313716888428, -0.39455291628837585, -0.30377650260925293, -0.23705975711345673, 0.6275314092636108, -0.4426703453063965, 0.5099902153015137, 0.818349301815033, -0.20087064802646637, -0.12348605692386627, -0.9936532378196716, -0.499809175729751...
def edge _ points ( self ) : return [ ( self. points [ e [ 0 ] ], self. points [ e [ 1 ] ] ) for e in self. edges ]
[ -1.0552940368652344, -0.45155754685401917, 0.41719040274620056, -0.061415404081344604, 0.9010759592056274, 0.11462924629449844, -0.6752020716667175, 1.070548415184021, 0.4914349615573883, 1.3590549230575562, -0.2176942080259323, -0.2632814347743988, -0.3033269941806793, -0.0987340211868286...
def getni ( self, * args ) : return _ snap. tnegraph _ getni ( self, * args )
[ -0.016380634158849716, 1.222522497177124, 0.3629247844219208, 0.8749060034751892, 0.8605794310569763, -1.5172799825668335, 0.24265047907829285, -0.8631626963615417, -1.0132976770401, 0.40121033787727356, -1.485235571861267, -1.9193793535232544, -0.5186316967010498, -0.540763258934021, 0....
def test _ atomic _ base64 _ binary _ length _ 4 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ length _ 5 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - length - 5. xsd ", instance = "...
[ 0.18985703587532043, -0.5306276082992554, 0.3256470263004303, 0.8702871203422546, -0.13726995885372162, -0.34088006615638733, 0.3389706611633301, -0.4393554627895355, -0.6703798174858093, 0.6012460589408875, -0.8997793197631836, 0.02056906186044216, -0.5474758148193359, 0.585794985294342, ...
def opt _ version ( self ) : from deps import _ _ version _ _ as version exit ( exitstatus. ex _ ok, " { } ". format ( version ) )
[ 0.3235836923122406, -0.9820718765258789, 0.5044833421707153, 0.11848215013742447, 0.5453700423240662, 1.360622525215149, 0.46405160427093506, 0.3673427700996399, 0.19438765943050385, 1.6929998397827148, -0.5352256894111633, -0.1333652287721634, 0.22717948257923126, -0.6949347853660583, 0...
def dim ( self ) : return self. _ dim
[ 0.036756787449121475, 0.5754482746124268, 0.2667020261287689, 0.8634178638458252, -0.2640549838542938, 1.5067310333251953, 1.2969025373458862, 0.09729912877082825, 0.11842525750398636, -1.5741095542907715, -0.40096378326416016, 0.4612429440021515, 0.2122701108455658, -0.8672887682914734, ...
def prep _ bulk _ err _ response ( self, parent _ response, body ) : resp = response ( method = parent _ response. method, url = parent _ response. url, headers = parent _ response. headers, status _ code = parent _ response. status _ code, status _ text = parent _ response. status _ text, raw _ body = self. serialize ...
[ -0.1563526839017868, -0.5925896763801575, 0.6109434962272644, -0.4957357943058014, 0.7091211676597595, -0.3563849925994873, -0.26750245690345764, 0.3457820415496826, 1.0948185920715332, -0.020514046773314476, -0.6496302485466003, 0.41601821780204773, -0.11637406051158905, -0.13337516784667...
def partition ( self, * args ) : return _ snap. tintv _ partition ( self, * args )
[ -1.0842936038970947, 0.27498576045036316, 0.40146294236183167, 0.9496195912361145, -0.1729569286108017, -0.06666845083236694, 0.48049503564834595, -0.3309536874294281, -0.03414245694875717, -0.7001699805259705, -0.2502976655960083, -0.08679062873125076, -1.9465004205703735, 1.1189931631088...
def load _ cows ( filename ) : dict = { } file = open ( filename,'r') for line in file : line = line. rstrip ( ) if len ( line ) > 0 : data = line. split ( ',') name = data [ 0 ] weight = int ( data [ 1 ] ) dict [ name ] = weight file. close ( ) return dict
[ -0.44168126583099365, -0.7140533328056335, 0.6534792184829712, -1.4904077053070068, -1.1920275688171387, 0.05472787469625473, -0.5365490317344666, -0.21869657933712006, -1.8122329711914062, 0.46190452575683594, -1.3009730577468872, -0.8816942572593689, -0.035712599754333496, 0.637034058570...
async def test _ config _ google _ home _ entity _ id _ to _ number _ empty ( hass : homeassistant, hass _ storage : dict [ str, any ] ) - > none : conf = config ( hass, { " type " : " google _ home " }, " 127. 0. 0. 1 " ) hass _ storage [ data _ key ] = { " version " : data _ version, " key " : data _ key, " data " : ...
[ -0.5496953129768372, -0.29519352316856384, 0.562735378742218, -0.04963945969939232, 1.2529723644256592, 0.12337955832481384, 0.44168487191200256, 0.06927362829446793, 0.024176131933927536, 0.12783212959766388, -1.3140021562576294, 0.3496970236301422, 0.6302300095558167, 1.0198354721069336,...
def _ compose ( args, decs ) : if len ( args ) > 0 : f = args [ 0 ] for d in reversed ( decs ) : f = d ( f ) return f return decs
[ -1.0368658304214478, 1.1093318462371826, 0.3063892126083374, 0.003073306754231453, 1.3687814474105835, -1.2459425926208496, 0.29681769013404846, -0.31808120012283325, -1.3473647832870483, -1.008974552154541, 0.9366055727005005, -0.3972015380859375, 0.6605175733566284, 0.20287063717842102, ...
def hex ( self ) : rgb = self. rgb return none if rgb is none else rgb2hex ( rgb )
[ 0.19350390136241913, -0.21133050322532654, 0.6329941153526306, 0.23204469680786133, 0.6159188151359558, -0.09954749792814255, -0.7308475971221924, 0.406446635723114, 0.08945629745721817, -0.47655826807022095, -0.02660336345434189, 0.14828799664974213, -0.2105884552001953, -0.18440942466259...
def data _ attribute _ id ( self ) - > pulumi. input [ str ] : return pulumi. get ( self, " data _ attribute _ id " )
[ 0.4135245680809021, 0.004163491073995829, 0.26789966225624084, -0.2449929118156433, 0.4384504556655884, 1.6955068111419678, 0.41721177101135254, 0.8346428275108337, 0.7515366673469543, -0.0939367488026619, 0.34371504187583923, 1.787919282913208, 0.32071664929389954, -0.8483298420906067, ...
def convert _ cv _ qt ( self, frame ) : frame = cv2. resize ( frame, ( 0, 0 ), fx = 0. 7, fy = 0. 7 ) # frame = cv2. resize ( frame, dsize = ( 800, 600 ) ) rgb _ image = cv2. cvtcolor ( frame, cv2. color _ bgr2rgb ) h, w, ch = rgb _ image. shape bytes _ per _ line = ch * w convert _ to _ qt _ format = qtgui. qimage ( r...
[ 0.21756833791732788, -0.9386376738548279, 0.9036184549331665, -0.2417142242193222, -0.707007646560669, -0.05439063161611557, -0.7523330450057983, -0.7816476225852966, 0.966342031955719, 0.4344145953655243, -0.26446211338043213, 0.12432906776666641, 0.3052925765514374, 0.748198390007019, ...
def search _ application _ number ( self, response ) : logger. info ( " in search _ application _ number. last url : % s ", response. url ) if self. process _ errors ( response, [ teststrings. error ] ) : url = self. url _ provider. get _ institute _ login _ url ( self. student. get ( formkeys. std ( ), " " ) ) yield s...
[ -1.4438647031784058, 0.5472210645675659, 0.746833324432373, -0.21332599222660065, 0.15861111879348755, -0.17557285726070404, 0.1936841607093811, -0.18062029778957367, 0.8436962366104126, -0.5689284205436707, 0.12740132212638855, 0.04765719547867775, 0.8402931690216064, 0.6290898323059082, ...
def parse _ landsting ( val ) : try : return re. search ( " \ ( this, ( \ d + ) ", val ). group ( 1 ) except attributeerror : return none
[ -0.2700599133968353, -0.22106128931045532, 0.5381907224655151, -0.9605056643486023, -1.0788120031356812, -0.675200343132019, -0.1086805909872055, -0.7724378108978271, 0.407583624124527, 0.1723271608352661, 0.16433067619800568, -0.8724225759506226, -0.7386322617530823, -0.43430817127227783,...
def _ randomfire ( self ) : self. _ steprandom = random. randint ( 1, bolt _ rate )
[ -0.7248456478118896, 0.4253387451171875, 0.3896588981151581, 0.19451430439949036, 0.3749012351036072, 0.4485201835632324, -0.3598683476448059, 0.9931361675262451, -0.8549514412879944, -0.9248661398887634, -0.738789975643158, -0.03910660743713379, -0.3726131319999695, 0.7026919722557068, ...
def build _ monthly _ performance ( df, param ) : rslt = [ ] rslt. append ( build _ monthly _ summary ( df, param ) ) rslt. append ( find _ best _ doy ( df, param ) ) rslt. append ( find _ worst _ doy ( df, param ) ) return rslt
[ -0.7768652439117432, 0.5296524167060852, 0.5214338898658752, 0.874975323677063, 1.2448198795318604, -0.3954356014728546, 0.3969677686691284, -0.5812421441078186, 0.146719291806221, -0.26352277398109436, 0.4743601977825165, 0.21037478744983673, -0.38516655564308167, 1.1871905326843262, -0...
def close ( self ) : self. _ browser. quit ( )
[ -0.059074532240629196, -0.964068591594696, 0.18191885948181152, 0.1563897579908371, -0.09765607118606567, 1.3546186685562134, 0.8960060477256775, -0.6853856444358826, -0.4171659052371979, -0.7028928399085999, 0.8350146412849426, 0.0191839300096035, -0.5239933133125305, 1.036359190940857, ...
def init _ webinterface ( self ) : try : self. mod _ http = modules. get _ instance ( ). get _ module ('http') # try / except to handle running in a core version that does not support modules except : self. mod _ http = none if self. mod _ http = = none : self. logger. error ( " not initializing the web interface " ) r...
[ -0.37964364886283875, 0.7367114424705505, 0.6991238594055176, 0.13175517320632935, 0.09856188297271729, 0.5681639909744263, 0.6547431349754333, -0.09510856121778488, -0.3016463816165924, 0.2620618939399719, -1.2060214281082153, -0.5627167820930481, -1.2465674877166748, 1.2666029930114746, ...
def get _ weighted _ average _ embeddings ( graphs, label, num _ dimensions = 64 ) : # fits the graph2vec model all _ subgraphs = [ ] for g in graphs : subgraphs = [ g. to _ undirected ( ). subgraph ( cc ). copy ( ) for cc in nx. connected _ components ( g. to _ undirected ( ) ) ] all _ subgraphs. extend ( subgraphs ) ...
[ -0.23358456790447235, -0.0201498344540596, 0.9217920303344727, 0.6315390467643738, -0.18993757665157318, 0.5837516188621521, 1.026047706604004, -0.46586570143699646, -0.6246116161346436, 0.6246798634529114, 0.27186882495880127, 0.9406118988990784, 0.15858802199363708, -0.14826524257659912,...
def strategy _ cursor _ broken ( cookies, cps, history, time _ left, build _ info ) : return " cursor "
[ -0.14582911133766174, -0.9909584522247314, 0.1523618996143341, 0.3152036964893341, 0.8242380619049072, -0.27120864391326904, 0.33223575353622437, 0.12317908555269241, 0.36357226967811584, 0.9897454977035522, 0.3995712101459503, 0.41865095496177673, 0.14064237475395203, 0.6912855505943298, ...
def get _ sgf _ filename ( self, game _ id ) : return " % s. sgf " % game _ id
[ 0.5165533423423767, -0.4978363513946533, 0.4185442626476288, -0.04094360023736954, -0.1604028046131134, -0.09203427284955978, -0.38906458020210266, 0.017591705545783043, -0.22891540825366974, 0.6522658467292786, 0.10408556461334229, 0.06467441469430923, 0.4755706191062927, 0.24286720156669...
def is _ dir ( self, node ) : if'link'in node. attrib : link = node. attrib ['link'] linkfile = link [ 6 : ] linkfile = os. path. abspath ( linkfile ) return os. path. isdir ( linkfile ) else : return 1 = = len ( node. attrib ['text']. split ( '.') )
[ -0.3084617257118225, -0.1791905164718628, 0.6633685827255249, 0.040574681013822556, -0.037609513849020004, 0.0401822030544281, 0.7404661178588867, 0.3786729872226715, 0.6707194447517395, -1.0464876890182495, 0.45177897810935974, 0.4398045539855957, 0.16521115601062775, 0.3429504334926605, ...
def read _ csv ( self, file : str, * * kwargs ) : # find all couples of classification rules and try to create action rules self. decisions. read _ csv ( file, * * kwargs )
[ -0.43424534797668457, -0.17085109651088715, 0.1427730768918991, 0.7999892234802246, 0.8574128746986389, 0.9087783694267273, -0.008971784263849258, 0.3567562401294708, -1.1426047086715698, 0.14185349643230438, 0.7057409882545471, 0.8195756673812866, 0.5573385953903198, 0.5755969882011414, ...
def strattrnameei ( self, * args ) : return _ snap. tneanet _ strattrnameei ( self, * args )
[ -0.5330265164375305, 0.12742291390895844, 0.21857735514640808, -0.347455769777298, 0.07778941839933395, 0.16846399009227753, 0.5188559293746948, -1.6518954038619995, -1.5471153259277344, 1.0963369607925415, -0.22839084267616272, -1.146327018737793, -0.3368642330169678, -0.3326210677623749,...
def test _ atomic _ any _ uri _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ any _ uri _ min _ length _ 2 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - minlength - 2. xsd ", instance = " nistdata...
[ 0.12958717346191406, -0.880486786365509, 0.45993685722351074, 0.8255224227905273, -0.280877023935318, -0.34629297256469727, -0.30003219842910767, -0.4489443898200989, -0.08779632300138474, -0.6112106442451477, 0.08837675303220749, 0.03598623722791672, -0.5481482148170471, 0.375274360179901...
def geteainti ( self, * args ) : return _ snap. tcrossnet _ geteainti ( self, * args )
[ -0.23812948167324066, 0.508729100227356, 0.4742853343486786, -0.4471457004547119, 0.5920445919036865, 0.2638106942176819, 0.36689493060112, 0.21830697357654572, -0.4365391135215759, -0.11264171451330185, -0.3225630521774292, -1.6657450199127197, -0.29496675729751587, 0.5507614016532898, ...
def validate _ domain _ name ( name ) : _ name _ type _ check ( name ) for label in name. split ( '.') : if not label : raise validationerror ( " error : ivalid name { 0 }. empty label. ". format ( label ) ) valid _ chars = string. ascii _ letters + " 0123456789 " + " - _ " validate _ label ( label, valid _ chars = val...
[ -0.9095785617828369, -0.23998306691646576, 0.7671390175819397, -0.16642893850803375, -0.3241041600704193, 1.0382264852523804, 0.04157803952693939, -0.7884750366210938, 0.43368327617645264, 0.5391634106636047, -0.8242881894111633, 0.266946405172348, 0.3132876753807068, 0.24435079097747803, ...
def draw _ bottom _ right ( x = 1, y = 1 ) : print ( " { } { } ; { } ". format ( csi, y, x ), end = " ", flush = true )
[ 0.2557230293750763, 0.2889614403247833, 0.8203843832015991, -0.08645543456077576, -0.22577573359012604, 0.37400007247924805, -1.0166553258895874, -0.671177089214325, -0.28683459758758545, -0.5822550058364868, -0.1217365488409996, 1.865578055381775, -1.0063120126724243, 0.27714890241622925,...
def test _ get _ user _ by _ id ( self ) : pass
[ 0.25960758328437805, -0.02226891554892063, -0.10443402826786041, 1.4459002017974854, 0.7077648043632507, 0.10277251899242401, 1.122480034828186, -0.9378774762153625, -0.12099658697843552, -0.7375696897506714, -0.7503617405891418, -0.07961566001176834, -0.4258938431739807, -0.11230139434337...
def update ( self, index, weight, grad, state ) :
[ -0.5082922577857971, -0.7002859711647034, 0.014773995615541935, -0.04593471810221672, -0.17314760386943817, 0.4263875186443329, 0.29745909571647644, -0.4181191623210907, -0.15949104726314545, 0.8233147859573364, -0.37795695662498474, 0.15472814440727234, -0.4120836555957794, -0.84698641300...
def vgg11 ( num _ classes = 10 ) : model = vgg ( cfg ['vgg11'], num _ classes ) return model
[ 0.08759701251983643, 0.8228793740272522, 0.2220289707183838, 0.614471971988678, 0.5097551345825195, 0.6733942031860352, -0.320181667804718, 0.8557543158531189, -0.055579252541065216, 0.4053530693054199, -0.4879128038883209, -0.4823013246059418, 0.1354588121175766, -0.26039350032806396, -...
def getkeyid ( self, * args ) : return _ snap. tintstrh _ getkeyid ( self, * args )
[ 0.9924697875976562, -0.9939193725585938, 0.5321488976478577, 1.234203577041626, -0.007839599624276161, 0.2381829023361206, 0.5090118646621704, -0.6483507752418518, -0.19789162278175354, -0.34058740735054016, -0.44962450861930847, 0.497557669878006, -1.3287115097045898, 0.23625007271766663,...
def test _ install ( ) : import math class benchmark _ sqrt ( benchmark. benchmark ) : each = 4 # scaled for fast operation def setup ( self ) : # only using setup in order to subclass later # can also specify teardown, eachsetup, and eachteardown self. size = 20 def test _ pow _ operator ( self ) : for i in xrange ( s...
[ 0.8880714178085327, 0.30315226316452026, 0.6337400078773499, 0.4590139389038086, 0.2600146532058716, 0.10388774424791336, 1.0811742544174194, -0.2902897000312805, 0.2640882134437561, 0.025712111964821815, -0.21723288297653198, -0.4571743309497833, -0.141929492354393, 0.6461572647094727, ...
def info ( self ) : return api _ util. get _ url ( self. _ start _ url, self. _ user, self. _ password, self. _ header )
[ -0.4198954999446869, -0.4187583029270172, 0.5368869304656982, 0.4232637882232666, 0.5175007581710815, -0.1638289988040924, -0.430530846118927, 0.44755348563194275, -1.1143591403961182, -0.13490810990333557, -0.20464906096458435, 0.7519243955612183, -0.020341575145721436, -0.582986414432525...
def searchback ( self, * args ) : return _ snap. tstrv _ searchback ( self, * args )
[ -1.1408910751342773, 0.7020764946937561, 0.7981367111206055, -0.09323471039533615, 0.8856081962585449, -0.3675086796283722, 1.1722147464752197, 0.10555701702833176, -1.1942994594573975, 0.25441858172416687, -0.3554077446460724, -0.013038678094744682, -0.21666891872882843, -0.29628875851631...
def test _ cluster _ points ( ) : inputs = {'a': ( 4, 0, 0, 0 ),'b': ( 0, 4, 0, 0 ),'c': ( 0, 0, 4, 0 ),'d': ( 0, 0, 0, 4 ), } # centers are chosen so the result is unique centers = [ ( 4, 4, 0, 0 ), ( 0, 0, 4, 4 ) ] result, score = _ cluster _ points ( inputs, centers ) assert len ( result ) = = 2 assert sorted ( resu...
[ 0.136504665017128, 0.32833120226860046, 0.41975826025009155, -0.18038801848888397, 0.8361356258392334, -0.44074177742004395, 0.392020046710968, -0.41808831691741943, 0.6553953289985657, 0.6523368954658508, -0.21347889304161072, -0.14823664724826813, -0.07234977930784225, -0.818921089172363...
def _ check _ model _ architect ( self ) :
[ -0.3977057635784149, -0.2738427519798279, 0.2153276950120926, 0.9913694858551025, -0.04522635042667389, 0.5610816478729248, 0.539133608341217, 0.8485634326934814, 0.4334118664264679, -0.2563992738723755, -0.04526891931891441, 0.15326032042503357, 0.8440439105033875, 1.630690097808838, -0...
def make _ instance ( self, include _ optional ) : # model = pollination _ sdk. models. activation _ list. activationlist ( ) # noqa : e501 if include _ optional : return activationlist ( resources = [ pollination _ sdk. models. activation. activation ( app _ version ='0 ', created _ at = datetime. datetime. strptime (...
[ 0.36914554238319397, -0.33833327889442444, 0.908959686756134, -0.05441805347800255, -0.3759993016719818, 0.2302471101284027, -0.1534014791250229, 1.151111364364624, 0.5565240383148193, 0.7824833989143372, 0.06880652904510498, -0.6444686651229858, -0.2273515909910202, -0.4239284098148346, ...
def getalldiagnosticlogs ( self, typeid, deviceid ) : devicediagnostics = apiclient. devicediaglogs % ( self. host, typeid, deviceid ) r = requests. get ( devicediagnostics, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 200 : self. logger. debug ( " all diagnostic logs succes...
[ -0.812389612197876, -0.4469650685787201, 0.654947817325592, 0.6744439601898193, -0.40402209758758545, 0.1133754625916481, -0.9237854480743408, -0.8636742234230042, 0.042064834386110306, 0.4335843324661255, 0.26197484135627747, 1.2130188941955566, -0.40877631306648254, 0.785214364528656, ...
def distribution _ tables ( self, calc, groupby ) : # nested function used only by this method def have _ same _ income _ measure ( calc1, calc2 ) : " " " return true if calc1 and calc2 contain the same expanded _ income ; otherwise, return false. ( note that " same " means nobody's expanded _ income differs by more th...
[ 0.053565289825201035, -0.044608790427446365, 0.9372683167457581, 0.8595396876335144, -0.526058554649353, 0.5294339656829834, 1.0440727472305298, -0.4008525311946869, -0.015186256729066372, 0.025481203570961952, 0.804747462272644, 0.06968574225902557, 0.05065033957362175, 0.5767675638198853...
def tstr _ getchstr ( * args ) : return _ snap. tstr _ getchstr ( * args )
[ -0.07910919934511185, 0.24223759770393372, 0.16272036731243134, 0.4730830192565918, 1.3183187246322632, 0.2504400312900543, -0.08736000955104828, -0.746484100818634, -1.6570093631744385, -0.30975914001464844, -0.2050282210111618, -1.0641671419143677, -0.3071913421154022, -0.033064216375350...
def getvec ( self, s ) : if self. ndim is none : self. ndim = self. w. shape [ 0 ] try : return self. w [ :, self. dict [ s ] ] except keyerror : # print'could not find vector rep of { }, # return with zero vector '. format ( s ) return numpy. zeros ( ( self. ndim, ) ) # return numpy. random. random ( ( self. d, ) ) / ...
[ -0.7564243674278259, 0.02336181327700615, 0.6016417741775513, -0.7867265343666077, -0.19478246569633484, -0.3066194951534271, 0.5190496444702148, 0.20165592432022095, 1.4581360816955566, 0.17029798030853271, 0.7585739493370056, 1.2122368812561035, 0.20158497989177704, 0.21984826028347015, ...
def calculate _ rating ( self ) : self. average _ rating = self. reviews. all ( ). aggregate ( avg ( " rating " ) ) ['rating _ _ avg'] self. save ( )
[ -0.8834620714187622, 0.7641280889511108, 0.3032850921154022, -0.4731442928314209, 0.6904749870300293, 0.08831469714641571, -0.04128945991396904, 1.6508573293685913, -0.9879896640777588, 1.7112528085708618, -0.3737543225288391, -0.8407481908798218, -0.7418593764305115, 0.39468914270401, -...
def test _ minimize _ 3h _ camel ( self ) : opt _ params = {'eta': 0. 5,'eta _ min': 0. 5,'eps': 1e - 12,'discrete': true,'bounds': cconstraintbox ( lb = - 1, ub = 1 ) } self. _ test _ minimize ( coptimizerpgdls,'3h - camel ', opt _ params = opt _ params, label ='discrete')
[ -0.1449633687734604, 0.07020005583763123, 0.6350808143615723, 0.4264172613620758, 0.9828078746795654, 1.1742528676986694, -0.00003690547600854188, -0.3514520227909088, 0.25749585032463074, -0.26902154088020325, -0.8072530627250671, -0.5625022053718567, -0.5529112219810486, -0.2480174154043...
def imread _ to _ float ( filename, scaling = none, return _ scaling = false ) : stack = io. imread ( filename ) # if no scaling is precised, use max value of stack if scaling is none : scaling = stack. max ( ) stack = stack. astype ( np. float32 ) / scaling if return _ scaling : return stack, scaling else : return sta...
[ -0.33082568645477295, 0.14467674493789673, 0.5911403894424438, 0.06523506343364716, -0.36820822954177856, -0.5612094402313232, -0.03232043236494064, -0.26007896661758423, -0.9044097065925598, 0.8823320865631104, 0.20348526537418365, 0.004411672241985798, 0.04612407460808754, 0.494059234857...
def show _ txt ( ) : if pwd _ ent [ " state " ] = = active or pwd _ ent ['state'] = = normal : if pwd _ ent [ " show " ] = ='*': pwd _ ent. config ( show = " " ) pass _ bu2. config ( image = img2 ) elif pwd _ ent [ " show " ] = = " " : pwd _ ent. config ( show ='*') pass _ bu2. config ( image = img )
[ 0.0922914445400238, -0.6422286629676819, 0.6113402247428894, -0.3299667239189148, -1.018311858177185, 0.642385721206665, 0.1348968744277954, 1.5696033239364624, 0.060515958815813065, 0.9379438757896423, 0.23184122145175934, 0.1616758406162262, -0.14120064675807953, 0.5779805779457092, 0....
def generate _ pushid _ file ( adid, bidres _ pushid _ set, show _ pushid _ set, file _ name ) : if ( none = = bidres _ pushid _ set or none = = show _ pushid _ set or none = = file _ name or 0 = = len ( file _ name ) ) : return if ( - 1! = string. find ( file _ name, ". tar. gz " ) ) : return if ( not os. path. isfile...
[ 1.000359058380127, -0.04587699845433235, 0.8099280595779419, 0.10203903168439865, 0.09824623912572861, 0.47029411792755127, -0.10943269729614258, 0.11899895966053009, -0.580880880355835, 0.5390260219573975, 0.5793494582176208, 0.19445869326591492, -0.06300932914018631, 0.6221232414245605, ...
def frame _ audio ( audio, frame _ len, hop _ size, sample _ rate ) : audio = np. pad ( audio, int ( frame _ len / 2 ), mode ='reflect') frame _ num = int ( ( len ( audio ) - frame _ len ) / hop _ size ) + 1 frames = np. zeros ( ( frame _ num, frame _ len ) ) for n in range ( frame _ num ) : frames [ n ] = audio [ n * ...
[ 0.14370334148406982, 0.22943425178527832, 0.7771642804145813, 0.6196758151054382, 0.3644096553325653, -0.722663164138794, 0.4725964367389679, -0.7463168501853943, 0.9198105931282043, 0.528011679649353, 0.3082100450992584, 0.12423022091388702, 0.27640584111213684, 0.3638512194156647, 0.59...
def begin _ deploy _ environment _ action ( self, project _ name : str, environment _ name : str, body : union [ json, io ], user _ id : str = " me ", * * kwargs : any ) - > lropoller [ none ] : _ headers = case _ insensitive _ dict ( kwargs. pop ( " headers ", { } ) or { } ) _ params = kwargs. pop ( " params ", { } ) ...
[ -0.3020209074020386, -0.5202552080154419, 0.9382555484771729, -0.3062063157558441, 0.10728023946285248, -0.04984317719936371, 0.10967279970645905, -0.5515648126602173, -0.35406288504600525, 1.1036070585250854, -0.0019353852840140462, 1.0339062213897705, 0.018376177176833153, 0.273738712072...
def resources ( self ) - > pulumi. output [ optional [ sequence ['outputs. regioncommitmentresource'] ] ] : return pulumi. get ( self, " resources " )
[ 0.7647243142127991, -0.2615007758140564, 0.3292955160140991, -0.12743867933750153, 1.0535725355148315, 0.22054129838943481, 0.6798382997512817, 0.5177971720695496, 0.8209688067436218, 0.4641154110431671, 0.03552543744444847, -0.1830320805311203, -0.09172090142965317, -0.22592443227767944, ...
def plus _ dapi _ thr ( self ) : cif = self. frame _ dapi _ 2d. currentindex hh = self. frame _ dapi _ 2d. view. viewrange ( ) self. nucs _ 2d _ det. vals [ self. frame _ dapi _ 2d. currentindex ] + = self. nucs _ 2d _ det. val _ step self. nucs _ 2d _ det. nucs _ sgm [ self. frame _ dapi _ 2d. currentindex ] = ( self....
[ -0.35887861251831055, -0.11040310561656952, 0.6225649118423462, -0.5103967189788818, 0.07727189362049103, 0.5045650005340576, 0.6241430640220642, -0.7367432117462158, 0.15044774115085602, -0.7780413031578064, -0.2773285210132599, 0.28603652119636536, 0.6991493701934814, 0.36544132232666016...