text
stringlengths
25
2.19k
embedding
listlengths
768
768
def draw _ bottom _ left _ corner ( x = 1, y = 1, width = 1, height = 1, fore _ colour = 39, back _ colour = 49 ) : # execute function to check for valid colours and force correction fore _ colour, back _ colour = colour _ check ( fore _ colour, back _ colour ) # set foreground and background colours and turn on line d...
[ 0.8732308149337769, -0.3466404974460602, 0.5299485921859741, -1.0942741632461548, 0.6302216053009033, -0.479711651802063, -0.4715440571308136, -0.2438552975654602, -0.590382993221283, -0.2862657606601715, -0.06471872329711914, 1.0330836772918701, -0.7518115639686584, 0.1913505345582962, ...
def to _ date _ str ( x : str ) : res = str ( x ) [ 0 : 10 ] if len ( res ) = = 10 : res = res + " t00 : 00 : 00 " return res return none
[ 0.27444323897361755, -0.5419495701789856, 0.5819407105445862, -0.678988516330719, 0.29308661818504333, 0.5666808485984802, -1.263021469116211, -0.3217494785785675, 0.8546794652938843, 1.010391354560852, -0.46060264110565186, -0.26614952087402344, 0.09036844223737717, -1.1107659339904785, ...
def country ( self, country ) : if country is none : raise valueerror ( " invalid value for ` country `, must not be ` none ` " ) self. _ country = country
[ 0.49345284700393677, 0.3662264943122864, -0.17637476325035095, 0.49162882566452026, 0.7988430261611938, 0.6945286989212036, 0.743828296661377, 0.3787691295146942, 0.011273759417235851, -0.11568555980920792, -0.4614601135253906, 0.0537198968231678, -0.8224871754646301, 0.6742388606071472, ...
def display _ help ( self, in _ room ) : possible _ commands = self. current _ commands ( in _ room ) help _ text = " " " 我 的 ? 下 面 的 : " " " self. display ( help _ text ) for command, command _ list in possible _ commands. items ( ) : self. display ( " { 0 } - { 1 } ". format ( command, command _ list [ 1 ] ) )
[ 0.15852172672748566, -0.9113286137580872, 0.7552933096885681, 1.0384739637374878, -0.5202922224998474, 0.172642320394516, 0.6960681080818176, 0.18600673973560333, -0.11515113711357117, 0.6159850358963013, 0.26536253094673157, 1.2913826704025269, -1.0214580297470093, 0.23400923609733582, ...
def test _ atomic _ qname _ length _ 2 _ nistxml _ sv _ iv _ atomic _ qname _ length _ 3 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - length - 3. xsd ", instance = " nistdata / atomic / qname / schem...
[ 0.28348666429519653, -0.07512795180082321, 0.4222690761089325, -0.22794514894485474, -0.2498508095741272, 0.5986419320106506, -0.7840387225151062, -0.35562464594841003, 0.5817123651504517, 0.6018064618110657, -0.6024928092956543, -0.19249822199344635, 0.14105989038944244, -0.51500988006591...
def search _ response ( self, request ) : print " searching response " if self. cache. is _ empty ( ) is true : print " empty cache " return none print " cache not empty " " " " create a new cache key from the request " " " if self. mode = = defines. forward _ proxy : search _ key = cachekey ( request ) else : search _...
[ -0.6066825985908508, -0.11441218107938766, 0.572194516658783, -0.33601057529449463, -0.09717632830142975, -0.1281585991382599, -0.18340280652046204, -0.7944039702415466, 0.3117317259311676, 0.12363391369581223, 0.45144498348236084, -0.24806921184062958, -1.039197325706482, -0.3685285747051...
def import _ function _ comments ( comments, sections ) : for addr, comment in comments. items ( ) : addr = adjust _ addr ( sections, int ( addr ) ) if addr is none : continue func = ida _ funcs. get _ func ( addr ) if func is none : print ('failed to apply function comment at offset : { : 08x } '. format ( addr ) ) co...
[ 0.25666072964668274, -0.7577585577964783, 0.7622658014297485, -0.9444000720977783, 0.4569198191165924, -0.44176241755485535, 0.4282919764518738, -0.05534739792346954, -0.050837691873311996, 0.6573836207389832, 0.029350029304623604, -0.259196013212204, -0.08597617596387863, 0.19785158336162...
def write _ idl ( length _ y, file _ obj, plot _ name, boxes, scores = none ) : string _ prep ='" { plot _ name } " : '. format ( plot _ name = plot _ name ) if scores is none : for box in boxes : string _ prep + = " ( { }, { }, { }, { } ), ". format ( int ( np. round ( box. x0 ) ), int ( length _ y - np. round ( box. ...
[ 0.34860217571258545, -0.7549750208854675, 0.9639747738838196, -0.4072118401527405, 0.0668502002954483, 0.5249813795089722, 0.5309795141220093, -0.08300092071294785, -0.21682880818843842, 0.0983242467045784, -0.9631854295730591, -0.4957055151462555, 0.4239172637462616, -0.9250467419624329, ...
def read _ fai _ file ( fai _ file _ name ) : fai _ record _ dict = { } with open ( fai _ file _ name,'r') as fai _ file : for line in fai _ file : line = line. strip ( ) if not line : continue fai _ record = line. split ( ) fai _ record _ dict [ fai _ record [ 0 ] ] = [ int ( x ) for x in fai _ record [ 1 : ] ] return...
[ 0.1042770966887474, 0.25294584035873413, 0.47972413897514343, -1.2395981550216675, -0.4241272509098053, -0.33222493529319763, 0.7962570786476135, 1.1504415273666382, -1.1634912490844727, 0.2895345985889435, -0.6202784776687622, -0.2934305667877197, 0.33198055624961853, 0.4936406910419464, ...
def rules ( self ) : policy = networkpolicy ( ) for switch in self : config = switchconfiguration ( ) for _, rule in self [ switch ] : config. add _ rule ( rule ) policy [ switch ] = config return policy
[ 0.11289475113153458, 0.5375860333442688, 0.18396329879760742, -0.2843700647354126, 0.7086873650550842, 1.1355443000793457, -0.726294219493866, 0.1558409184217453, 0.501801609992981, 0.22301727533340454, 0.06974027305841446, -1.0697795152664185, 0.025043915957212448, 0.4339294135570526, -...
def active ( self, value ) : if bool ( value ) : self. _ active. set ( ) else : self. _ active. clear ( )
[ -0.17017531394958496, -0.3580722212791443, 0.3928554654121399, -0.08972036093473434, -0.2948459982872009, 0.6970873475074768, 0.7211045622825623, 0.0550011582672596, 0.0477207712829113, 0.5393613576889038, -0.7151704430580139, 0.056463029235601425, -0.26516902446746826, -0.5991272330284119...
def background _ thread ( ) : count = 0 while true : time. sleep ( 10 ) count + = 1 socketio. emit ('my response ', {'data':'server generated event ','count': count }, namespace ='/ test')
[ 0.6989014744758606, 0.23818251490592957, 0.6489930748939514, -0.4560593366622925, 0.9375646710395813, 0.46951350569725037, 0.6633418798446655, -0.47964534163475037, -0.5024568438529968, -0.7372015118598938, -0.7247235774993896, 1.0816837549209595, -1.4339107275009155, 0.19323453307151794, ...
def severity ( self, severity ) : allowed _ values = [ " info ", " warning ", " critical " ] # noqa : e501 if severity not in allowed _ values : raise valueerror ( " invalid value for ` severity ` ( { 0 } ), must be one of { 1 } " # noqa : e501. format ( severity, allowed _ values ) ) self. _ severity = severity
[ 0.2050943225622177, 0.5153607130050659, -0.19094951450824738, 1.0552419424057007, 0.5231022238731384, 0.7121120691299438, 0.19308476150035858, 0.5295042395591736, 0.03513181954622269, 0.10598143935203552, -1.216525673866272, -0.004256453365087509, -0.2537369132041931, -0.25090810656547546,...
def close ( self, end _ time = none ) : super ( subsegment, self ). close ( end _ time ) self. parent _ segment. decrement _ ref _ counter ( )
[ 0.07534284889698029, -0.15024599432945251, 0.6876533627510071, 0.10808277130126953, 0.22274136543273926, 1.4511559009552002, 0.8917917609214783, -0.232078418135643, -1.1798256635665894, -0.9456272721290588, -0.11718636751174927, -0.02071564644575119, -0.5321875214576721, 1.1826328039169312...
def getclusterid ( self, positions, cutoff, func ) : bt = balltree ( positions, metric ='pyfunc ', func = func ) rng = radius _ neighbors _ graph ( bt, cutoff ) ( nclusts, clusterids ) = connected _ components ( rng, directed = false, return _ labels = true ) return ( nclusts, clusterids, bt )
[ -0.22030436992645264, 0.014845062978565693, 0.2577221989631653, -0.2695379853248596, 0.033999793231487274, 0.016289405524730682, 0.6155848503112793, -0.8283500075340271, -0.038775842636823654, 0.44134044647216797, -0.10124897956848145, 0.12545707821846008, -0.3368039131164551, -0.700836956...
def memcache _ version ( self ) - > str : return pulumi. get ( self, " memcache _ version " )
[ 0.8681771755218506, -0.20405027270317078, 0.34919455647468567, 0.3887663185596466, 0.44200456142425537, 1.0980769395828247, -0.3859325647354126, -0.0870680883526802, 0.18249373137950897, 0.6182369589805603, 0.0066178361885249615, 1.1648534536361694, 0.18018034100532532, -0.716903567314148,...
def test _ no _ decompaction ( ) - > none : dz _ 0 = np. full ( 100, 1. 0 ) phi _ 0 = np. full ( 100, 0. 5 ) phi _ 1 = compact ( dz _ 0, phi _ 0, porosity _ max = 0. 5 ) dz _ 1 = dz _ 0 * ( 1 - phi _ 0 ) / ( 1 - phi _ 1 ) dz _ 1 [ 0 ] / = 2. 0 phi _ 2 = compact ( dz _ 1, phi _ 1, porosity _ max = 0. 5 ) assert np. all ...
[ 0.09835411608219147, 0.05482499301433563, 0.504147469997406, 0.18455690145492554, 0.22751325368881226, 0.44633686542510986, 1.1553822755813599, 0.31521251797676086, 0.056282199919223785, -0.32354408502578735, -0.6894009113311768, -0.02760203555226326, -0.8246384859085083, 0.883511364459991...
def chi2betafunc ( params, xc, yc, nmax, im, nm ) : betax = params [ 0 ] betay = params [ 1 ] if betax < 0. : print'warning : betax going negative, setting to 0. 0'betax = 0. if betay < 0. : print'warning : betay going negative, setting to 0. 0'betay = 0. print'beta : ( % f, % f )'% ( betax, betay ) size = im. shape # ...
[ 0.33002182841300964, -0.45816895365715027, 0.4854738414287567, -0.443890780210495, 0.5815216898918152, -0.28554144501686096, -0.08336969465017319, -0.6523324251174927, -0.917620837688446, 0.5213174819946289, -0.27217182517051697, 0.5029763579368591, -0.4838007390499115, 0.1844996213912964,...
def updategenres ( self, film _ index, increase _ by ) : new _ index = self. genre _ index [ film _ index ] + increase _ by if new _ index > len ( self. movie _ genres [ film _ index ] ) - 1 : new _ index = 0 elif new _ index < 0 : new _ index = len ( self. movie _ genres [ film _ index ] ) - 1 self. genre _ index [ fi...
[ -1.130434274673462, -0.10120607912540436, 0.6346814036369324, 0.40248990058898926, -0.07578782737255096, -0.44740790128707886, -0.05505819618701935, 0.4435649812221527, -0.6823399662971497, 0.5615067481994629, -0.1180931031703949, 0.7274857759475708, -0.382558137178421, 0.07879944890737534...
def test _ create _ order _ no _ auth ( self ) : endpoint = reverse ( self. endpoint _ order _ list ) resp = self. client. post ( endpoint, { } ) self. assertequal ( resp. status _ code, status. http _ 401 _ unauthorized )
[ -0.9416372776031494, 0.1425630748271942, 0.3901601731777191, 0.5976789593696594, 1.1949352025985718, 0.9862521886825562, -1.0034688711166382, -0.3119855523109436, -0.33239540457725525, -0.6525818109512329, -1.3248791694641113, 0.409834623336792, -0.46307098865509033, 0.3011343777179718, ...
def uploadchunk ( self, uploadtask ) : return self. _ _ swift. uploaddata ( uploadtask. getextent ( ) )
[ -0.48479342460632324, 0.15471693873405457, 0.5163121223449707, 0.25771597027778625, -0.024181362241506577, 0.19335277378559113, -0.5459296703338623, -0.47980108857154846, -1.0633293390274048, 0.09098745137453079, -0.24688193202018738, 0.90008944272995, -0.32385143637657166, 0.1966361701488...
def numpyarraybool ( * args, * * kwargs ) : return np. array ( * args, dtype = bool, * * kwargs )
[ 0.06325676292181015, -0.8252973556518555, 0.43377867341041565, 0.17792603373527527, 0.6842926740646362, 0.6822900772094727, -0.887982189655304, 0.012022854760289192, -0.5883887410163879, 0.6914933323860168, -0.7520986795425415, 1.0486880540847778, -0.3110559582710266, -0.038243234157562256...
def minute _ sample ( x ) : enc = onehotencoder ( sparse ='false ', categories = [ list ( range ( 0, 60 ) ) ] ) array = enc. fit _ transform ( np. array ( x. index. minute ). reshape ( - 1, 1 ) ) array = array. toarray ( ) columns = ['minute _'+ str ( i ) for i in range ( 0, 60 ) ] return pd. dataframe ( array, index =...
[ -0.2659064531326294, 0.11518781632184982, 0.6763176321983337, -0.23543216288089752, -0.9379326701164246, -0.5692496299743652, -0.6363940238952637, -0.5112950205802917, 1.4333412647247314, 0.40082040429115295, -0.14477364718914032, 0.6531417965888977, -0.2945677936077118, -0.951270520687103...
def brokertech _ tob _ download ( self, download = true ) : if download : self. download _ data ('nexbrokertectob')
[ 0.6627143025398254, 0.01848084107041359, 0.36981120705604553, 1.482331395149231, 0.18048159778118134, 0.43075674772262573, -0.0935857892036438, -0.7085051536560059, 0.5112917423248291, 0.4154661297798157, -0.08334297686815262, -0.6308295130729675, -0.8367600440979004, 0.44898054003715515, ...
def test _ atomic _ base64 _ binary _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ pattern _ 3 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - pattern - 3. xsd ", instance ...
[ -0.005512246862053871, 0.008806279860436916, 0.5719253420829773, 1.0413777828216553, 0.19674567878246307, 0.4762129485607147, -0.2814711332321167, 0.05047813057899475, 0.4175141453742981, 0.6757611632347107, -0.31296399235725403, 0.15828296542167664, -0.45679205656051636, -0.34914603829383...
async def dm ( self, ctx : commands. context ) - > none : if not await self. config. allow _ dm ( ) : await self. config. allow _ dm. set ( true ) await ctx. send ( _ ( " i will reply directly to dm's. " ) ) else : await self. config. allow _ dm. set ( false ) await ctx. send ( _ ( " i won't reply directly to dm's. " )...
[ -0.7383643984794617, 1.3755977153778076, 0.8608919382095337, -0.43104296922683716, 0.41780808568000793, 0.9713327288627625, 0.030041376128792763, 0.2089795172214508, 0.10332663357257843, -0.4589405059814453, 0.46514931321144104, 1.4515578746795654, -0.5864371061325073, -0.05626603588461876...
def _ narrow _ build _ check ( local ) : if len ( u " \ u0010ffff " ) > 1 : # this is a narrow build, try to match this again. # the narrow build only checks up to 56319 instead # of 1114111 ( 0x10ffff ). convert any unicode characters # in the valid range ( 0x0080 to 0x10ffff ) to 0x0080 and # run the regex on that lo...
[ -0.40952882170677185, -0.02659742347896099, 0.7233709096908569, -0.16513407230377197, -0.3991259038448334, 0.2584036886692047, 0.32640179991722107, 0.22598199546337128, 0.9721086621284485, -0.8631030321121216, 0.5232622623443604, 0.16260157525539398, -1.2737972736358643, -0.479965209960937...
def process _ citation ( self, citation ) : if citation is none or citation. handle in self. referenced [ " citation " ] : return self. referenced [ " citation " ]. add ( citation. handle ) source _ handle = citation. get _ reference _ handle ( ) if source _ handle : source = self. db. get _ source _ from _ handle ( so...
[ 0.16219574213027954, -0.28157466650009155, 0.6013853549957275, -0.13512462377548218, 0.5718042850494385, -0.24579055607318878, 0.7185210585594177, -0.2620163857936859, 0.8100656867027283, -0.024456389248371124, -0.0010597899090498686, -0.36320334672927856, -0.30108073353767395, 1.097402453...
def update _ result _ duo ( op1, oper, op2, res, res _ gob ) : # # # circuitpython does not currently allow / translate float ( ) # # # for a class new _ float = oper. apply ( op1. _ _ float _ _ ( ), op2. _ _ float _ _ ( ) ) res. set _ fp ( new _ float ) si, ex, ma = res. binary _ fp _ comp ( ) res _ gob. update _ valu...
[ -0.18686529994010925, -1.052452564239502, 0.6125434637069702, 0.23133157193660736, -0.25289326906204224, 0.11156786978244781, 0.286357045173645, -0.45538052916526794, -0.7261874079704285, -0.032667625695466995, -0.23665298521518707, -0.19410893321037292, -0.25865912437438965, -0.2843165993...
def hasunointerfaces ( oobject, * cinterfaces ) : for cinterface in cinterfaces : if not hasunointerface ( oobject, cinterface ) : return false return true
[ 0.040224429219961166, 0.3736329972743988, 0.706342339515686, 0.4037463963031769, 0.3806036412715912, 0.0491606630384922, 1.2121427059173584, -0.0016492957947775722, 0.6885650753974915, -0.36821532249450684, -0.7957821488380432, -0.6754924654960632, -1.2796554565429688, 0.5898159742355347, ...
def add _ report ( self, report ) : report _ title = self. get _ report _ title ( report ) report. render ( self. workbook, title = report _ title ) self. report _ titles. add ( report _ title )
[ -0.07902273535728455, 1.008975625038147, 0.43656808137893677, 0.45844659209251404, 0.6772208213806152, 0.6481611728668213, -0.946380615234375, 0.2650003135204315, 0.571645200252533, -0.6488776206970215, 0.14888565242290497, -0.5833591222763062, -0.9484326243400574, 0.3237348198890686, -0...
def test _ recent _ pub ( self ) : futuredate = timezone. now ( ). date ( ) + datetime. timedelta ( days = 5 ) future _ pub = book ( publication _ date = futuredate ) self. assertequal ( future _ pub. recent _ publication ( ), false )
[ -0.33938002586364746, 0.863703727722168, 0.24700281023979187, 0.07098333537578583, 0.1614677906036377, 0.755223274230957, -0.3772641718387604, 0.1934036761522293, -0.6816306710243225, -0.5918521285057068, 0.4392111897468567, -0.845374584197998, -0.8936240673065186, 0.6531932353973389, -0...
def task ( self, value ) : # if the task has one of our " valid " job types if value ['job _ type'] = = " update " or value ['job _ type'] = = " maintain " : self. _ queue. put ( value ) # setting that causes paginating through all pages, not just unknown ones # this setting is set by the housekeeper and is attached to...
[ -0.13753429055213928, -0.061345916241407394, 0.5475651025772095, 0.3910999298095703, 0.13509394228458405, 0.005614620167762041, 0.05613793805241585, -0.5178652405738831, -0.047171369194984436, 0.09370813518762589, -0.4581296741962433, 0.04260949790477753, 0.059150330722332, 1.1726353168487...
def compile _ path ( self, path, write = true, package = true, * args, * * kwargs ) : if not isinstance ( write, bool ) : write = fixpath ( write ) if os. path. isfile ( path ) : destpath = self. compile _ file ( path, write, package, * args, * * kwargs ) return [ destpath ] if destpath is not none else [ ] elif os. pa...
[ -0.5548378825187683, -0.09515200555324554, 0.6270424723625183, 0.9327571392059326, 0.3007996082305908, 0.004007328301668167, 0.3810333013534546, 0.2852257788181305, -0.010878547094762325, 0.2956480085849762, 0.2665586769580841, -0.3167595863342285, -0.27936697006225586, 0.6451761722564697,...
def _ _ encode ( value, encoding ='utf - 8 ', encoding _ errors ='strict') : if isinstance ( value, bytes ) : return value if isinstance ( value, float ) : return repr ( value ) if not isinstance ( value, str ) : return str ( value ) if isinstance ( value, unicode ) : return value. encode ( encoding, encoding _ errors ...
[ 0.12438736110925674, 0.38998231291770935, 0.2975755035877228, 0.1960742473602295, -0.7273361086845398, 0.17695868015289307, -0.45063090324401855, -0.6328369975090027, 0.3600189685821533, -0.1273013949394226, 0.6240103840827942, 0.4176577627658844, -0.21811342239379883, -0.09882298111915588...
def _ initialize _ dummy _ instance ( self, alt _ args = none ) : args = { " state " : " absent ", " name " : " storage _ pool " } if alt _ args : args. update ( alt _ args ) self. _ set _ args ( args ) return netappeseriesstoragepool ( )
[ -0.29120153188705444, 0.14727744460105896, 0.5078277587890625, -0.8454266786575317, 0.8810879588127136, 1.2071726322174072, 0.2757893204689026, -0.4014139473438263, 0.44761285185813904, 0.014939968474209309, -0.41258910298347473, 0.5670236349105835, 0.17190927267074585, 0.6840903162956238,...
def cn _ applytransformation ( self, dudx, dudy, dvdx, dvdy ) : depr ('applytransformation ', 1. 1,'obj = obj. transform ( dudx, dudy, dvdx, dvdy )') new _ obj = self. copy ( ). transform ( dudx, dudy, dvdx, dvdy ) self. _ profile = new _ obj. _ profile self. _ profile _ for _ stored = none # reset the stored profile a...
[ -0.9828300476074219, 0.040371768176555634, 0.5313116908073425, -0.15652504563331604, -0.33164656162261963, -0.329403817653656, 0.7144515514373779, -0.7291145324707031, 0.5732312202453613, -0.43271949887275696, -1.5116029977798462, 0.06358833611011505, -0.024735072627663612, -0.276983946561...
def reload _ nginx ( self, cr, uid, context = none ) : settings = { } settings ['port'] = config ['xmlrpc _ port'] nginx _ dir = os. path. join ( self. root ( cr, uid ),'nginx') settings ['nginx _ dir'] = nginx _ dir ids = self. search ( cr, uid, [ ('nginx ','= ', true ) ], order ='id') if ids : build _ ids = self. poo...
[ -0.4196392297744751, -0.19306842982769012, 0.6005975604057312, 0.3256013095378876, -0.2994747459888458, 0.20459622144699097, 0.25112542510032654, -0.06395313143730164, 0.016955051571130753, 0.19356223940849304, -0.5669339299201965, 1.4356107711791992, -0.9749950766563416, -0.58421146869659...
def _ _ init _ _ ( self, num _ outputs, use _ ground _ truth, internal _ cell ) : self. _ num _ outputs = num _ outputs self. _ use _ ground _ truth = use _ ground _ truth # boolean self. _ internal _ cell = internal _ cell # may be lstm or gru or anything
[ 0.42809537053108215, 0.23359213769435883, 0.4173431992530823, 1.0154225826263428, 0.18296337127685547, -0.5898388028144836, 0.5695252418518066, 0.2705945670604706, -0.7024083137512207, -0.4941946268081665, 0.5802227854728699, -0.01409828383475542, -0.34599679708480835, 0.3775944411754608, ...
def gain ( self ) : if self. module. device : self. _ settings. gain = self. module. device. sequencers [ self. sequencer _ number ]. get ( f " gain _ awg _ path0 " ) return self. _ settings. gain
[ 0.39693161845207214, 0.0135857118293643, 0.669381320476532, 0.476284921169281, 0.328286737203598, 0.13919013738632202, 0.9307642579078674, -0.5855054259300232, 0.13031262159347534, -0.8542836308479309, -0.0679193064570427, 1.2744033336639404, -0.35973459482192993, 0.3801502287387848, 1.0...
def set _ splash _ screen ( self, string, lcd _ chars ) : self. _ write _ command ( lcdbackpack. set _ splash _ screen ) self. _ ser. write ('{ { 0 : < { } } } '. format ( lcd _ chars ). format ( string ). encode ( ) )
[ -0.4067785441875458, 0.43935471773147583, 0.30458977818489075, -0.04520642012357712, -0.12791676819324493, 0.7397847771644592, 0.21985439956188202, -0.6224120259284973, 0.35733237862586975, -0.4975118935108185, -1.2431080341339111, 1.333048939704895, -0.7955066561698914, 0.1104677468538284...
def billing _ state _ name ( self, billing _ state _ name ) : self. _ billing _ state _ name = billing _ state _ name
[ -0.08675193786621094, 0.36733293533325195, -0.05169622600078583, 0.4226130247116089, -1.0484946966171265, 1.010675311088562, 0.14153793454170227, 0.445497065782547, -0.08807280659675598, -0.158860445022583, -0.6821075677871704, -1.3091678619384766, 0.5721026062965393, 0.775775134563446, ...
def test _ list _ decimal _ min _ length _ 4 _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 5 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - minlength - 5. xsd ", instance = " nistdata / list / ...
[ -0.29569196701049805, -0.6917601227760315, 0.3773406147956848, 0.154408797621727, -0.6045923233032227, -0.5376029014587402, -0.16970294713974, -0.557716965675354, 0.4241083264350891, -0.12154285609722137, -1.4775911569595337, -0.2014656662940979, -0.43990474939346313, 0.5512377619743347, ...
def _ _ call _ _ ( self, request ) : if request. user. is _ staff : # import pdb ; pdb. set _ trace ( ) if request. path = ='/ admin /': return redirect ('/ admin / personas /') response = self. get _ response ( request ) return response
[ -0.47881457209587097, 0.2148561179637909, 0.7529346942901611, 1.0995571613311768, 0.652887761592865, 0.5999411344528198, 0.6771008372306824, -0.8378432989120483, 0.8486582040786743, -0.5784606337547302, 0.4784836769104004, 0.19642360508441925, -0.34215039014816284, 0.2729603350162506, -0...
def test _ atomic _ any _ uri _ enumeration _ 3 _ nistxml _ sv _ iv _ atomic _ any _ uri _ enumeration _ 4 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - enumeration - 4. xsd ", instance = " nistdata...
[ -0.7773720026016235, -1.066194772720337, 0.48277547955513, 0.5891574621200562, -0.4703484773635864, -0.3835284113883972, -0.11196707934141159, -0.2441641241312027, -0.17750485241413116, -0.054237090051174164, -0.09190752357244492, -0.5137692093849182, -0.3075217604637146, 0.004475192632526...
def read _ csv _ option ( filepath ) : df _ option = misc _ func. optionalvariable ( ) if os. path. isfile ( filepath ) : try : # use the new dataframe defined in misc _ func df = pd. read _ csv ( filepath ) df = misc _ func. details _ in _ dataframe ( df ) df _ option. set ( df ) except baseexception : df _ option. se...
[ 0.10246937721967697, -0.31760677695274353, 0.5088039636611938, 0.5710079073905945, 0.36377397179603577, -0.40826407074928284, 0.37807515263557434, -0.06789534538984299, 0.02186053805053234, -0.13099198043346405, 1.236981749534607, 0.39473772048950195, -0.093682199716568, -0.450964838266372...
def test _ atomic _ language _ max _ length _ 3 _ nistxml _ sv _ iv _ atomic _ language _ max _ length _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - maxlength - 4. xsd ", instance = " nistda...
[ 0.2703445553779602, 0.15688371658325195, 0.2208506017923355, 0.7730820775032043, -0.5066037774085999, 0.4913049042224884, -0.4681157171726227, 0.21657492220401764, 0.31845328211784363, 0.8511711955070496, -0.3634413480758667, -0.47222891449928284, -0.11670804768800735, -0.5055379271507263,...
def shipping _ state _ name ( self, shipping _ state _ name ) : self. _ shipping _ state _ name = shipping _ state _ name
[ -0.7169507145881653, 0.256439745426178, 0.012521841563284397, -0.2452009618282318, -1.318878173828125, 0.6351432800292969, 0.026845073327422142, 0.13014087080955505, -0.1460776925086975, 0.7343131899833679, -0.8212604522705078, -1.3727983236312866, 0.5809651017189026, -0.3801458477973938, ...
def call _ endpoint ( request, name ) : return _ reg. call _ endpoint ( request, name )
[ -1.4174489974975586, 0.42144736647605896, 0.4174552261829376, 0.647885262966156, -0.30306312441825867, -0.47528043389320374, -0.8140538334846497, -0.6494570374488831, -0.18654055893421173, 1.0841995477676392, -0.0387224517762661, 0.1367177516222, -0.869151771068573, -0.44686663150787354, ...
def manage _ entries ( ) : print ('inside manage entries') if request. method = ='post': if request. get _ json ( ) is not none : # read inputs my _ day = datetime. strptime ( request. get _ json ( ). get ( " date ", none ), " % y - % m - % d " ). date ( ) my _ title = request. get _ json ( ). get ( " title ", none ) m...
[ -1.0067349672317505, -0.025573203340172768, 1.1440038681030273, 0.4264768958091736, 0.7334316968917847, 0.33462876081466675, -0.13718979060649872, -0.23474740982055664, -0.47990357875823975, -0.7644601464271545, 0.6312251091003418, -0.4036651849746704, -0.3865032196044922, 1.77454257011413...
def _ update _ param ( self, name, x ) : assert name in self. shadow update _ delta = self. shadow [ name ] - x self. shadow [ name ] - = ( 1. 0 - self. decay ) * update _ delta
[ -0.5473850965499878, -0.6112708449363708, 0.5014232993125916, -0.5110344290733337, -0.9123143553733826, 0.6157039999961853, 0.0823720321059227, -0.4192812144756317, 0.16242460906505585, 0.5339933633804321, -0.7861679792404175, 1.0853190422058105, 0.24651509523391724, 0.4440223276615143, ...
def cast _ path ( anypath ) : return path ( str ( anypath ) )
[ -0.3772478401660919, -1.7761991024017334, 0.10497313737869263, -0.06397859752178192, -0.8837571144104004, 0.8174245953559875, -0.1306818127632141, -0.9646629691123962, 0.5453417897224426, -0.04155736044049263, 0.45004916191101074, 0.40021342039108276, -0.9212996959686279, -0.31334146857261...
def print _ class _ accuracy ( class _ accuracies ) : for class _ name, class _ accuracy in zip ( class _ names, class _ accuracies ) : logging. info ( class _ name +':'+ str ( class _ accuracy ) )
[ -0.6501945853233337, -1.717194676399231, 0.5924782752990723, 0.20354996621608734, 0.4329093098640442, 0.442131906747818, 0.36770111322402954, 0.23315736651420593, -0.036676883697509766, 0.32288143038749695, 0.16481979191303253, 1.3401352167129517, 1.0980340242385864, 0.7295514345169067, ...
def _ _ str _ _ ( self ) : ana = str ( self. cfg _ ana ) count ='' ave ='' if hasattr ( self,'counters') and len ( self. counters. counters ) > 0 : count ='\ n '. join ( map ( str, self. counters. counters ) ) if hasattr ( self,'averages') and len ( self. averages ) > 0 : ave ='\ n '. join ( map ( str, self. averages )...
[ 0.2995724678039551, -0.3473303020000458, 0.6686592698097229, -1.067216157913208, -0.6472135186195374, 0.5690935254096985, 0.36663296818733215, -0.6902307271957397, -0.9244600534439087, 0.3317606747150421, 1.0094220638275146, 0.10305305570363998, 1.0410456657409668, 0.6521357297897339, 0....
def test _ atomic _ boolean _ white _ space _ 1 _ nistxml _ sv _ iv _ atomic _ boolean _ white _ space _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - whitespace - 2. xsd ", instance = " nistdat...
[ -0.470838725566864, -0.33342239260673523, 0.4773336350917816, 0.6973447203636169, -0.29712286591529846, 0.21295177936553955, 0.7228101491928101, -0.5451008081436157, -0.5423652529716492, 0.8743538856506348, -0.3702545464038849, 0.6228302717208862, 0.0889720693230629, 0.9182178378105164, ...
def show _ list _ of _ assets _ to _ json ( ) : assets = app. bank. assets assets _ list = [ [ asset. char _ code, asset. name, round ( asset. capital, 8 ), \ round ( asset. interest, 8 ) ] for asset in assets ] return jsonify ( sorted ( assets _ list ) )
[ -0.546367883682251, -0.5886082053184509, 0.3678211271762848, -1.3699971437454224, -0.33586183190345764, -0.37790387868881226, -0.03561349958181381, -1.220448613166809, 0.041702862828969955, 0.618737518787384, -0.5256086587905884, 0.6865626573562622, 0.49216365814208984, 0.39875781536102295...
def step ( self, action ) : # perform step in environment obs, reward, done, info = self. env. step ( action ) # render and record the associated frame self. step _ id + = 1 if self. recording : # render and add a frame to the video self. video _ recorder. capture _ frame ( ) self. num _ recorded _ frames + = 1 if self...
[ -0.7073551416397095, 0.4935474395751953, 0.7971861362457275, 0.3976372182369232, 0.18909244239330292, -0.18963056802749634, 0.20321738719940186, -0.23185722529888153, 0.20079457759857178, -0.1842072755098343, -0.603531539440155, 0.27632489800453186, -0.2707219123840332, 1.1828540563583374,...
def _ _ str _ _ ( self ) : return'pricedata < { }, { }, { }, { }, { }, { }, { }, { } > '. format ( self. quote, self. date, self. open _ price, self. high _ price, self. low _ price, self. close _ price, self. volume, self. adjusted _ price )
[ -0.6128589510917664, -1.2404729127883911, 0.6314628720283508, -1.1292543411254883, 0.045333169400691986, 0.5429049730300903, -0.9416152834892273, -0.559490442276001, -0.6195341944694519, 0.6564825177192688, 0.30150213837623596, 1.0970538854599, -0.11761254817247391, -0.4923553168773651, ...
def purchase _ info _ for _ product ( parse, token ) : tokens = token. split _ contents ( ) if len ( tokens )! = 5 or tokens [ 3 ]! ='as': raise template. templatesyntaxerror ( " % ( tag ) r tag uses the following syntax : " " { % % % ( tag ) r request product as " " record % % } " % {'tag': tokens [ 0 ] } ) request _ ...
[ -0.015387674793601036, -0.4179408848285675, 0.5426324009895325, -0.057200100272893906, 0.4248041808605194, -0.5396056771278381, -0.2261749505996704, -0.6139909625053406, -0.3197062015533447, 0.21078737080097198, 0.4471376836299896, -0.14643724262714386, 0.9169612526893616, -0.5349906086921...
def test _ example _ input _ one _ valid _ input _ query _ start _ date ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input one " ) input _ page...
[ -0.20872749388217926, -0.5085479021072388, 0.6208786964416504, 0.42323219776153564, -0.26506656408309937, 1.2695717811584473, 0.1142934262752533, -0.04531824216246605, 0.28494763374328613, 0.28086933493614197, -0.3085378110408783, 0.013952524401247501, 0.044682666659355164, 0.2977260649204...
def on _ start ( self ) : self. my _ collection. load _ movies ('movies. csv') # separate movie list to not change to original list self. movie _ to _ show = self. my _ collection. movies # make sure the height is such that there is something to scroll. self. root. ids. movie _ list. bind ( minimum _ height = self. roo...
[ 0.33800753951072693, -0.3116084337234497, 0.4262307584285736, 0.453364759683609, 0.435969740152359, 0.2827537953853607, 0.6069455742835999, -0.05770169571042061, -0.32061997056007385, 0.04635793715715408, -0.7890110015869141, 0.9096083641052246, 0.2532476782798767, 1.3297775983810425, 0....
def test _ atomic _ base64 _ binary _ length _ 1 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ length _ 2 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - length - 2. xsd ", instance = "...
[ 0.16343896090984344, -0.8438615202903748, 0.3984585106372833, 1.0593334436416626, 0.07801351696252823, -0.09305151551961899, 0.13797315955162048, -0.05442670360207558, -0.5931327939033508, 0.27701348066329956, -0.630150318145752, 0.3909341096878052, 0.01130734570324421, 0.6285125017166138,...
def test _ input _ specs ( self, input _ dim ) : tf. keras. backend. set _ image _ data _ format ('channels _ last') input _ specs = tf. keras. layers. inputspec ( shape = [ none, none, none, input _ dim ] ) network = efficientnet. efficientnet ( model _ id ='b0 ', input _ specs = input _ specs ) inputs = tf. keras. in...
[ -0.026320680975914, 0.19114796817302704, 0.42159751057624817, -0.7350867390632629, 0.7656481266021729, 0.5111307501792908, 0.6041774153709412, -0.08709277212619781, -0.4507744014263153, -0.35803040862083435, 0.41028693318367004, 0.12497877329587936, 0.17090997099876404, 0.39117196202278137...
def test _ sum _ series ( n, num1, num2, result ) : from series import sum _ series assert sum _ series ( n, num1, num2 ) = = result
[ -0.2622169256210327, 0.24564547836780548, 0.17941345274448395, 1.2808351516723633, 1.0694894790649414, 0.6278415322303772, 0.17133866250514984, -1.2515002489089966, 0.6321769952774048, -0.4855877161026001, -1.1134711503982544, 0.6576025485992432, -0.20046082139015198, -1.0145779848098755, ...
def create _ schedule ( self, task _ req, pattern _ dict, schedule _ id = none ) : _ automatic _ pattern = { } if pattern _ dict [ " freq _ type " ] = ='automatic': _ pattern = { " freq _ type " : 1024 } _ automatic _ pattern = self. create _ schedule _ pattern ( pattern _ dict ) else : _ pattern = self. create _ sched...
[ -0.6440561413764954, 0.2907753884792328, 0.9211854338645935, 0.054198335856199265, 0.28535887598991394, 0.20126326382160187, 0.3493906557559967, 0.06078415364027023, -0.6589969396591187, 0.3664603531360626, -0.7025809288024902, 0.3003835380077362, 0.8262868523597717, -0.019941134378314018,...
def test _ list _ integer _ max _ length _ nistxml _ sv _ iv _ list _ integer _ max _ length _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - maxlength - 1. xsd ", instance = " nistdata / list / inte...
[ -0.41109952330589294, -0.14025861024856567, 0.20104365050792694, 0.7528064846992493, -0.7745740413665771, 0.10443419963121414, 0.010183713398873806, 0.24297447502613068, 1.12180495262146, 0.8907482028007507, -1.1181426048278809, -0.3173998296260834, -0.6343791484832764, 1.0752863883972168,...
def download _ remote _ pairs ( namespace, workspace ) : res = firecloud _ api. get _ entities _ tsv ( namespace, workspace, " pair " ) with open ( '. / pairs / remote _ pairs. txt ','w') as outfile : outfile. write ( res. text ) return
[ -0.48261693120002747, -0.1541975438594818, 0.5861817598342896, -0.7851595878601074, 0.0066252038814127445, 0.8734156489372253, -0.36346080899238586, 0.13375446200370789, -0.17919526994228363, 0.17800240218639374, -0.7179919481277466, 0.2110474705696106, -0.5756518244743347, 0.4962435364723...
def _ _ init _ _ ( self, dbfile ) : self. connection = sqlite3. connect ( dbfile ) self. connection. row _ factory = sqlite3. row self. cursor = self. connection. cursor ( )
[ 0.236130028963089, 0.1129157766699791, 0.27000027894973755, 0.256767600774765, -0.056842535734176636, 0.4559878408908844, 0.28712570667266846, 0.7354112863540649, -0.11701203882694244, -0.19356609880924225, 0.3170582354068756, -1.131439447402954, -0.04789033532142639, 0.9653267860412598, ...
def results _ counter ( self ) : if self. worker _ type = ='facade _ worker': return self. cfg. repos _ processed # todo : figure out why this doesn't work... else : return self. _ results _ counter
[ -0.25970202684402466, 0.911806046962738, 0.5021076798439026, -0.7223353981971741, 0.9835173487663269, 0.29028066992759705, 0.7146690487861633, -0.5885041952133179, -0.6955685615539551, -1.0826306343078613, -0.4956236183643341, -0.5976950526237488, -0.7426785230636597, 0.49060386419296265, ...
def _ get _ parser ( ) - > argumentparser : warning = " warning : this script loads / saves some results from / to python pickle files. " \ " pickle files can be used to execute arbitrary code, " \ " so you should never open one from an untrusted source. " parser = argumentparser ( description ='form a giant results fi...
[ 0.6469798684120178, -0.20049914717674255, 0.7387180328369141, -0.6840569972991943, 0.06596490740776062, -0.10986702889204025, -0.1592579334974289, 0.578341007232666, 0.22251898050308228, -0.12000582367181778, 0.1145457774400711, 0.4346521198749542, -0.2857605516910553, 0.4901651442050934, ...
def test _ list _ integer _ min _ length _ 4 _ nistxml _ sv _ iv _ list _ integer _ min _ length _ 5 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - minlength - 5. xsd ", instance = " nistdata / list / ...
[ -0.24437060952186584, -0.34690043330192566, 0.2921797037124634, 0.04830518737435341, -0.6989192366600037, -0.029785027727484703, -0.3904227912425995, -0.46802324056625366, 1.1191840171813965, 0.5431957244873047, -1.1811120510101318, -0.29265090823173523, -1.1403484344482422, 0.452179282903...
def extract _ from _ from _ prefix ( self, prefix ) : return prefix. split ( '!') [ 0 ]
[ 0.0957709476351738, 0.0927736759185791, 0.6194871664047241, 0.37375909090042114, -0.4423023462295532, -0.8175607919692993, -0.937784731388092, 0.6296977996826172, 0.7842493057250977, 0.1910208910703659, 0.22768241167068481, 0.3037899434566498, -0.5584006905555725, -0.9401000142097473, 0....
def test _ atomic _ base64 _ binary _ enumeration _ 1 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ enumeration _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - enumeration - 2. xsd ...
[ -0.7445342540740967, -1.0389586687088013, 0.5995863080024719, 1.5775667428970337, 0.04205246642231941, 0.012959983199834824, 0.38336870074272156, -0.022972965613007545, -0.4420205056667328, 0.5547709465026855, -0.4081929326057434, 0.6945375800132751, 0.19804877042770386, 0.2600239813327789...
def start ( self, domain, args, settings, crawl _ id = none ) : domain = domain. replace ('https : / / ','' ). replace ('http : / / ','' ) default _ cls = find _ spider _ cls ( self. default _ spider _ name, self. spider _ packages + ['arachnado. spider'] ) spider _ cls = get _ spider _ cls ( domain, self. spider _ pac...
[ 0.15184256434440613, -0.15700581669807434, 0.5631301403045654, 0.26447609066963196, 1.420796513557434, -0.07743816822767258, 0.2796069383621216, 0.4437703490257263, -0.2715825140476227, -0.5004828572273254, 0.28377658128738403, 1.4176182746887207, 0.15811166167259216, 0.18868006765842438, ...
def tsp _ brute ( graph ) : n = len ( graph ) paths = list ( permutations ( list ( range ( 0, n ) ), n ) ) minimum = float ('inf') for path in paths : current = 0 # sum for each vertex in path for i in range ( len ( path ) - 1 ) : current + = graph [ path [ i ] ] [ path [ i + 1 ] ] # add final edge tail - > start curre...
[ 0.5598920583724976, 0.2849893569946289, 0.6786379814147949, 0.7466843724250793, -0.034140776842832565, -0.2410757839679718, 0.23836135864257812, -0.19037146866321564, 0.07136549055576324, 0.7614693641662598, -0.48652705550193787, -0.6614781022071838, -1.1833648681640625, -0.169564932584762...
def log _ to _ linear _ base ( log _ xs, dlogy _ dlogxs, base = none ) : if base is none : return dlogy _ dlogxs / np. exp ( log _ xs ) else : return dlogy _ dlogxs / ( base * * log _ xs * math. log ( base ) )
[ 0.4040197730064392, -0.07788465917110443, 0.6954123377799988, -0.4349331557750702, 0.16902199387550354, -0.7895427942276001, -1.2983887195587158, -0.2874275743961334, 0.6568669080734253, 0.3409590423107147, -0.21478129923343658, 0.648869514465332, 0.3236018717288971, -0.8732876777648926, ...
def subsquashrngpy ( rng, molrng, apermol ) : dim = np. shape ( molrng ) [ 0 ] sz = np. shape ( rng ) rng = rng. reshape ( ( 1, sz [ 0 ] * sz [ 1 ] ) ) [ 0 ] molrng = molrng. reshape ( ( 1, dim * dim ) ) [ 0 ] for i in range ( dim ) : for j in range ( i + 1, dim ) : istart = apermol * i ; iend = apermol * ( i + 1 ) ; j...
[ 0.16803522408008575, -0.9344068169593811, 0.7343685626983643, -1.1739296913146973, -0.6021278500556946, -0.2736840546131134, -0.2960784435272217, -0.23775945603847504, 0.4486583471298218, 0.6103630065917969, 0.36400288343429565, 0.05331907048821449, -0.6283349394798279, 0.42784181237220764...
def parse _ splign _ output ( splignoutputname ) : file = open ( splignoutputname, " r " ) blocklist = [ ] for line in file. readlines ( ) : if'no alignment was found'in line or " > - 1 " in line : break else : if ( " exon " in line ) : location = line. split ( " ( " ) [ 1 ]. split ( " ) " ) [ 0 ] identity = float ( li...
[ 0.9087044596672058, -1.6793372631072998, 0.8229554295539856, 0.3225272595882416, -1.0455985069274902, -0.08029025048017502, 0.6663598418235779, 0.8989879488945007, 0.3827565610408783, 0.3999691605567932, -1.0196443796157837, -0.8485594391822815, -0.49940869212150574, 0.08455927670001984, ...
def portfolios _ owned ( self ) : url = lendingclub _ url ('accounts ', self. investor _ id,'portfolios') response = self. session. get ( url = url ) response. raise _ for _ status ( ) return [ namedtuple _ from _ json ('lendingclubportfolio ', d ) for d in response. json ( ). get ('myportfolios') ]
[ -0.41271644830703735, 0.09403442591428757, 0.35128411650657654, 0.7496150732040405, 0.4102111756801605, 0.08370449393987656, -0.5042674541473389, -0.9902215600013733, 0.1026809886097908, -0.21891796588897705, -0.9956642389297485, 0.2080124020576477, -0.8905982375144958, -0.0704159364104271...
def zip _ addon ( addon, addon _ dir ) : already _ zipped = false addon _ path = os. path. realpath ( addon ) addon _ basename = os. path. basename ( addon _ path ) if addon _ basename. endswith ( ". zip " ) : already _ zipped = true if os. path. isdir ( addon _ dir ) : shutil. rmtree ( addon _ dir ) os. mkdir ( addon ...
[ 0.08441255241632462, -1.124539852142334, 0.9903802275657654, 0.41827815771102905, -0.1568852812051773, -0.04840535670518875, 0.9658271074295044, 0.2664187252521515, 1.112720012664795, 0.4061301350593567, -0.7213547825813293, 0.08171412348747253, -0.7668552994728088, 0.6506381034851074, 0...
def test _ atomic _ base64 _ binary _ max _ length _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ max _ length _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - maxlength - 1. xsd ", i...
[ 0.0597364641726017, -0.09597688168287277, 0.30562326312065125, 1.6242129802703857, -0.06564178317785263, 0.19930364191532135, 0.08754321187734604, 0.13609594106674194, 0.376502126455307, 0.6687628030776978, -0.25328925251960754, -0.0347125343978405, -0.574431300163269, 0.27770915627479553,...
def max _ val ( t ) : t = list ( t ) if all ( isinstance ( x, int ) for x in t ) : return max ( t ) else : for x in range ( len ( t ) ) : if isinstance ( t [ x ], tuple ) or isinstance ( t [ x ], list ) : return ( max _ val ( t ) )
[ -0.5588632225990295, 0.5748608708381653, 0.7116556763648987, 0.9992526769638062, -0.6739705801010132, 0.05493887886404991, -0.9114910960197449, -0.24944159388542175, -0.14678512513637543, 0.4438995122909546, -0.2269757091999054, -1.1007360219955444, 0.09188302606344223, 0.744420051574707, ...
def _ _ init _ _ ( self, rng, input, n _ in, n _ out, w = none, b = none, activation = t. tanh ) : self. input = input if w is none : w _ values = numpy. asarray ( rng. uniform ( low = - numpy. sqrt ( 6 / ( n _ in + n _ out ) ), high = numpy. sqrt ( 6 / ( n _ in + n _ out ) ), size = ( n _ in, n _ out ) ), dtype = thea...
[ 0.5309149622917175, -0.08080530911684036, 0.6129255294799805, 0.5249040722846985, -0.4018762707710266, -0.2463829666376114, 0.746601939201355, 0.5118832588195801, 0.26024648547172546, -0.07551811635494232, -0.34546956419944763, -0.1683197170495987, -0.14846599102020264, 0.9629873633384705,...
def saliency _ map ( x, model, class _ index = none, func = tf. math. reduce _ mean ) : x = tf. convert _ to _ tensor ( x ) with tf. gradienttape ( ) as tape : tape. watch ( x ) outputs = model ( x ) if class _ index is not none : outputs = outputs [ :, class _ index ] else : outputs = func ( outputs ) return tape. gra...
[ -0.5173801779747009, 0.5485749244689941, 0.6029531955718994, 0.15496541559696198, -0.4921429753303528, 0.48997756838798523, 0.23006828129291534, 0.29516077041625977, 0.40186724066734314, 0.5240303874015808, -0.21293969452381134, 0.39057812094688416, 1.54106867313385, -0.575525164604187, ...
def cumulative _ distribution ( self, x ) : stdev = np. sqrt ( self. model. covariance [ 0, 0 ] ) lower = ndtr ( ( self. lower - self. model. dataset ) / stdev ) [ 0 ] uppers = np. vstack ( [ ndtr ( ( x - self. model. dataset ) / stdev ) [ 0 ] for x in x ] ) return ( uppers - lower ). dot ( self. model. weights )
[ 0.05993596091866493, -0.33647432923316956, 0.4912537634372711, 0.09005723148584366, -0.5371823906898499, 0.7947118282318115, -0.16437488794326782, -0.21452941000461578, 0.4139297306537628, 0.24493101239204407, -0.333520770072937, 0.1456165909767151, 0.02745688706636429, 0.8344333171844482,...
def _ depth _ first _ midi _ search ( self, path : str ) - > list [ str ] : files _ out = [ ] paths = os. listdir ( path ) for p in paths : full _ subpath = path + " / " + p try : # print ( full _ subpath ) os. listdir ( full _ subpath ) dfs _ results = self. _ depth _ first _ midi _ search ( full _ subpath ) for file ...
[ -0.45097053050994873, 0.48269563913345337, 0.9001463055610657, 0.8041272759437561, -0.23813220858573914, -0.3494691252708435, 0.8052558898925781, -0.16576361656188965, 0.25035515427589417, -0.2196798324584961, 0.08675795048475266, -0.6693097352981567, -0.9873635768890381, 0.641434192657470...
def dt _ branch _ type ( self, branch ) : begin _ switch = self. branch _ endpoint ( - branch ) end _ switch = self. branch _ endpoint ( branch ) pants _ branch = self. outgoing _ branch ( begin _ switch, 0, self. get _ switch _ turning ( begin _ switch ) ) pants _ curve = self. switch _ to _ pants _ curve ( begin _ sw...
[ -0.7370380163192749, -0.23481737077236176, 1.1246354579925537, -0.18401190638542175, -0.3875652849674225, 0.41497957706451416, 0.9084318280220032, -0.967423141002655, 0.11609876155853271, -0.23359522223472595, 0.24588543176651, 0.8697262406349182, -0.723128616809845, 0.0918039083480835, ...
def columns ( self ) : columns = sorted ( self. _ _ columns, key = lambda info : info [ 0 ] ) return tuple ( map ( lambda info : info [ 1 ], columns ) )
[ -1.219503402709961, -0.5167034268379211, 0.4489825367927551, -0.26196396350860596, 0.9063295722007751, 0.030895210802555084, -0.2645551860332489, -1.01652991771698, -1.397449016571045, -0.014091023243963718, -1.1149907112121582, -0.7806946635246277, 0.2813718318939209, -0.34761548042297363...
def fullyqualifiedtemplatetitle ( templatetitle ) : if templatetitle. startswith (':') : # leading colon by itself implies main namespace, so strip this colon return ucfirst ( templatetitle [ 1 : ] ) else : m = re. match ('( [ ^ : ] * ) ( :. * ) ', templatetitle ) if m : # colon found but not in the first position - ch...
[ 0.452975332736969, -0.23558413982391357, 0.5685361623764038, -0.06096283718943596, -0.9224433898925781, -0.13163988292217255, -0.3324718177318573, 0.24977222084999084, 1.3359944820404053, 0.10542554408311844, 0.2375834584236145, -0.3905644714832306, -0.018316658213734627, 0.304983824491500...
def get _ results ( self ) : job _ queues _ data = { " completed " : self. jobs _ completed, " failed " : self. jobs _ failed, } data = { " job _ queues " : job _ queues _ data, " page _ results " : self. page _ results, " postproc _ results " : self. postproc _ results, " font _ training _ results " : self. font _ tra...
[ -0.25000593066215515, -0.38812437653541565, 0.5789034962654114, -1.4276396036148071, -0.43745893239974976, -0.21208833158016205, -0.2715263366699219, -0.8255036473274231, -0.724051296710968, -1.1894721984863281, -0.9826183319091797, 0.19352462887763977, 0.5406211018562317, 0.81060653924942...
def get _ token _ frequencies ( ) : return database. select ( " token _ freqs " )
[ 0.3092694878578186, 0.3624182939529419, 0.3613751530647278, -0.14688365161418915, 0.49216368794441223, -1.2520225048065186, -0.9161794781684875, 0.21949279308319092, -0.44705381989479065, -0.694598376750946, -0.16564807295799255, -0.09939581155776978, 0.13419824838638306, -0.59999960660934...
def test _ normal _ conditions _ shrink ( self, graph ) : adj = ( ( 0, 1, 0, 0, 0, 1, 1 ), ( 1, 0, 1, 1, 0, 0, 0 ), ( 0, 1, 0, 1, 0, 0, 0 ), ( 0, 1, 1, 0, 1, 0, 0 ), ( 0, 0, 0, 1, 0, 0, 0 ), ( 1, 0, 0, 0, 0, 0, 0 ), ( 1, 0, 0, 0, 0, 0, 0 ), ) graph = nx. graph ( 0. 5 * np. array ( adj ) ) # multiply by 0. 5 to follow w...
[ 0.20425857603549957, 0.7276366949081421, 0.8591446876525879, 0.2335713654756546, -0.27247777581214905, 1.244736671447754, 0.6831053495407104, -0.3753897249698639, 0.19865599274635315, 0.18645446002483368, 0.46765536069869995, -0.2944835424423218, -0.9727274179458618, -0.5343117117881775, ...
def test _ example _ input _ one _ add _ duplicate _ names ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ one ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input one " ) input ...
[ -0.49381446838378906, 0.5628482103347778, 0.6833295822143555, 0.15931789577007294, 0.9975582957267761, 0.6694472432136536, 0.25907766819000244, -0.6872708797454834, 0.7197142839431763, 0.7999988198280334, -0.9089651107788086, -0.3016340136528015, -0.3294824957847595, 0.3548150062561035, ...
def order _ notes ( self ) : return self. _ order _ notes
[ -0.31255826354026794, -0.6000642776489258, 0.2775149643421173, 0.45735564827919006, 0.6121071577072144, 0.2842511534690857, 0.05267394334077835, -1.6316591501235962, 0.13091707229614258, 0.4308335483074188, -0.6066482663154602, 0.23590560257434845, -0.06645429134368896, -0.4822005331516266...
def cohort _ upload ( ) : if request. method = ='get': return render _ template ('csv _ upload. html ', projects = json. dumps ( db. project _ host _ map. keys ( ) ), ) elif request. method = ='post': try : csv _ file = request. files ['csv'] name = request. form ['name'] project = request. form ['project'] description...
[ 0.3429669439792633, 0.11022116988897324, 0.6556044220924377, -0.1326391100883484, -0.07044300436973572, 0.7917380928993225, 0.2085944265127182, 0.13105079531669617, -1.0971801280975342, 0.2144390195608139, 0.8237009048461914, -0.0415390245616436, -0.43911296129226685, 0.18772722780704498, ...
def estimate _ gaussian ( x ) : assert ( x. shape [ 1 ] > 1 and x. shape [ 0 ] > 1 ) mu = np. mean ( x, axis = 1, keepdims = true ) sigma2 = np. var ( x, axis = 1, keepdims = true ) return mu, sigma2
[ -0.7560899257659912, -0.23750774562358856, 0.6132828593254089, 0.4858705699443817, -0.5868711471557617, -0.4135380983352661, -0.15107229351997375, -0.34288153052330017, -0.39320334792137146, 0.9484604597091675, -0.8220608234405518, 1.557320237159729, 0.15758241713047028, 0.7108373045921326...
def get _ plot _ name ( self ) : return self. name [ 5 : ]. replace ('_ ','-') + '. { } '. format ( self. extention )
[ 0.22306938469409943, -0.6721729636192322, 0.6474862098693848, -0.5304227471351624, -1.8213692903518677, 0.6272255778312683, -0.3636951744556427, -0.3975684642791748, -0.4365208148956299, 0.6381146907806396, 0.021540259942412376, 1.061741590499878, 0.2909514009952545, -0.46880337595939636, ...
def heterogzygote _ counts ( paired ) : work _ dir = utils. safe _ makedir ( os. path. join ( dd. get _ work _ dir ( paired. tumor _ data ), " structural ", " counts " ) ) key = " germline _ het _ pon " het _ bed = tz. get _ in ( [ " genome _ resources ", " variation ", key ], paired. tumor _ data ) vr = bedutils. popu...
[ -0.021055888384580612, -0.36178871989250183, 0.6050896048545837, -0.07967910170555115, 0.03634510189294815, 0.9836969971656799, 0.6839867830276489, 0.6043930649757385, -0.7052060961723328, -0.270722895860672, 0.00343782315030694, 0.09958243370056152, 0.6585159301757812, 0.34466567635536194...
def load _ cows ( filename ) : cow _ dict = dict ( ) f = open ( filename,'r') for line in f : line _ data = line. split ( ',') cow _ dict [ line _ data [ 0 ] ] = int ( line _ data [ 1 ] ) return cow _ dict
[ -0.8916307091712952, -0.13250812888145447, 0.5410166382789612, -1.0947380065917969, -0.8287316560745239, 0.056385040283203125, -0.09704688936471939, 0.11049695312976837, -1.5852341651916504, 0.11699758470058441, -1.521770715713501, -0.3796752095222473, 0.36377450823783875, 0.36413270235061...
def grouper ( iterable, n ) : it = iter ( iterable ) while true : chunk = tuple ( islice ( it, n ) ) if not chunk : return yield chunk
[ -0.9796843528747559, 0.3809351325035095, 0.5313432216644287, -0.23116262257099152, 0.06052030622959137, 0.0848652571439743, -0.5104741454124451, -0.9995017051696777, -1.0381017923355103, -0.013385267928242683, 0.5577912926673889, -0.7256361246109009, -0.742727518081665, -0.1349379271268844...