text
stringlengths
25
2.19k
embedding
listlengths
768
768
def _ _ contains _ _ ( self, key ) : return key in self. _ groups
[ -0.7817443609237671, 0.36032143235206604, 0.3970145285129547, -0.4084340035915375, -0.9918233752250671, 0.24460358917713165, -0.20284490287303925, -0.55757075548172, -1.2398197650909424, -0.11127444356679916, 0.24476462602615356, -0.12840507924556732, -0.9779829978942871, 0.366879165172576...
def getdistname ( self ) : # - - - + - - - - | - - - - + - - - - | - - - - + - - - - | - - - - + - - - - | - - - - + - - - - | - - - - + - - - - | - - - - + - - - - | return binomialdistbase. getdistname ( self )
[ -0.1575014740228653, -1.2156158685684204, 0.9461508393287659, 0.01773820072412491, -0.9182924032211304, 0.0050802407786250114, 0.11370843648910522, 0.44934266805648804, -0.42661675810813904, -0.16817955672740936, -0.4991338551044464, 0.16298021376132965, -0.10672789812088013, -0.1974713653...
def _ mkanchors ( ws, hs, x _ ctr, y _ ctr ) : ws = ws [ :, np. newaxis ] hs = hs [ :, np. newaxis ] anchors = np. hstack ( ( x _ ctr - 0. 5 * ( ws - 1 ), y _ ctr - 0. 5 * ( hs - 1 ), x _ ctr + 0. 5 * ( ws - 1 ), y _ ctr + 0. 5 * ( hs - 1 ) ) ) return anchors
[ -0.2882801592350006, -0.4976899027824402, 0.4019407033920288, -0.3080122172832489, 0.36916470527648926, -0.19236832857131958, 0.39103221893310547, -0.5104608535766602, 0.2907882034778595, 0.14275024831295013, 0.5705644488334656, 0.8035305142402649, 0.3570689558982849, -0.4554122984409332, ...
def _ create _ widgets ( self ) : # # dirty trick to make form views work during unit tests, since unit # tests have no event loop running, so the delegate will never be set, # so we get it and are sure it will be there if we are running without # threads # if not self. _ delegate : self. _ delegate = self. _ model. ge...
[ -0.5080059170722961, 0.2511883080005646, 0.40714946389198303, -1.161892056465149, 0.500368058681488, -0.22328642010688782, 0.017311370000243187, 0.6577213406562805, -0.35323119163513184, -1.3062623739242554, -0.4657544791698456, -0.8008085489273071, -0.23213917016983032, 0.6535447239875793...
def a _ star ( init _ board, hfn ) : # init the start state start _ state = state ( init _ board, hfn, hfn ( init _ board ), 0 ) # create frontier and explored frontier = [ start _ state ] explored = [ ] expand = 0 while len ( frontier ) > 0 : current _ state = frontier. pop ( ) # check if explored if current _ state. ...
[ -0.22932392358779907, 0.24246808886528015, 0.6762317419052124, 0.7463517189025879, -0.10822129249572754, -0.7020328044891357, 0.4055730402469635, 1.2295947074890137, -0.2030889391899109, 0.08308639377355576, -0.3397851586341858, -0.14820562303066254, -0.006165698170661926, 0.53791087865829...
def termination _ string ( ) : now = datetime. datetime. now ( ) time = now. strftime ( " % y - % m - % d % h : % m : % s. % f " ) end _ time = " script exiting at % s \ n " % time return end _ time
[ -0.4672757685184479, -0.9667834639549255, 1.027273178100586, -0.654395341873169, 0.11663226038217545, -0.15217506885528564, -1.1654777526855469, -0.5381899476051331, -1.1716563701629639, 1.0102548599243164, -0.2333822101354599, 0.25215116143226624, -0.38473203778266907, -0.0908696874976158...
def unit _ vector ( vector ) : return vector / np. linalg. norm ( vector )
[ -0.771457850933075, -0.6149957776069641, 0.16646936535835266, -0.4088979959487915, 0.17319843173027039, 0.44648388028144836, 0.4649220407009125, 0.5680111646652222, 0.513992965221405, -0.03006500005722046, 0.13347971439361572, 0.22118911147117615, 0.0943976417183876, -0.3393341600894928, ...
def get _ diffgrid ( u _ current, u _ fine, dt ) : n _ current = len ( u _ current [ :, 0 ] ) n _ fine = len ( u _ fine [ :, 0 ] ) if n _ current! = n _ fine : grid _ size _ ratio = ceil ( n _ fine / n _ current ) + 1 # ratio between grid sizes ( no. of time steps ) # ceil + 1?? whyyyy else : grid _ size _ ratio = 1 # ...
[ 0.1464414894580841, 0.5819904208183289, 0.6838135719299316, 0.6560103297233582, -0.6305275559425354, 0.01964300312101841, 0.29820871353149414, -0.05882757529616356, -0.3903515040874481, 0.34380513429641724, 0.16546307504177094, 0.4928865134716034, 0.31959977746009827, 0.6479993462562561, ...
def widgetlist ( boolean ) : children = [ ] children. append ( dock ) child = true while child : child = false for i in children : if i. children ( ) : for c in i. children ( ) : if c not in children : children. append ( c ) child = true for child in children : applyglass ( boolean, child )
[ -0.3511165678501129, 0.8275343775749207, 0.8227620124816895, 0.2731544077396393, -0.42631298303604126, -0.043444640934467316, 1.259986400604248, 1.5593106746673584, 0.18355338275432587, 0.4272085130214691, -1.4200469255447388, -0.34772175550460815, -0.8834131956100464, 1.0222049951553345, ...
def format _ commands ( self, ctx, formatter ) : commands = [ ] for subcommand in self. list _ commands ( ctx ) : cmd = self. get _ command ( ctx, subcommand ) # what is this, the tool lied about a command. ignore it if cmd is none : continue if cmd. hidden : continue aliases = [ alias for alias, cmd _ name in self. al...
[ 0.3323156535625458, -0.14421355724334717, 0.6179719567298889, -0.06387060135602951, 0.09771624952554703, -0.4363709092140198, -0.10196235775947571, -0.12396349757909775, 0.34908682107925415, -0.7387097477912903, 0.734854519367218, 0.06908651441335678, 1.430391788482666, 1.6973448991775513,...
def get _ parent _ bbox _ from _ child _ grid _ spec ( child _ center _ x : float, child _ center _ y : float, child _ cell _ size : tuple [ float, float ], child _ cols : int, child _ rows : int, child _ parent _ res _ ratio : int, parent _ left _ padding : int, parent _ right _ padding : int, parent _ bottom _ paddin...
[ 0.708250105381012, -0.17532972991466522, 0.9701406955718994, -0.6467961668968201, -0.7242724299430847, -0.9434253573417664, -0.16375866532325745, -0.7216097116470337, -0.7149069905281067, -0.2670394778251648, -0.16283807158470154, -0.11993803828954697, 0.58549565076828, -0.0884429290890693...
def test _ subscription _ api _ with _ invalid _ event _ id ( self ) : data = { " event _ id " : 4000, " user _ id " : 28, " no _ of _ tickets " : 4 } response = self. client. post ( self. end _ point, json. dumps ( data ), http _ authorization = " bearer { } ". format ( self. token ), content _ type ='application / js...
[ 0.8569167256355286, -0.5577999949455261, 0.9336423873901367, 0.7638904452323914, 0.14674416184425354, 0.6109055876731873, -1.1309481859207153, -0.1042431890964508, 0.1027272641658783, -0.5589097142219543, -0.5828475952148438, 0.5400498509407043, -0.45946332812309265, 0.7615631818771362, ...
def graph ( self, name, * args, * * kwargs ) : r = self. get _ graph ( name ) return r. graph ( * args, * * kwargs )
[ -0.43110793828964233, 0.012468942441046238, 0.32833975553512573, 0.0018561905017122626, -0.22934065759181976, -0.6083320379257202, -0.5327526330947876, -0.3817688226699829, 0.14853429794311523, 0.4146023094654083, -0.4016530215740204, 0.8111845254898071, -0.3124202489852905, -0.83755832910...
def test _ calculate _ neg _ slopes ( ) : arr = np. linspace ( np. ones ( ( 5, 3 ) ), np. zeros ( ( 5, 3 ) ), 5 ) slopes = mob. _ calculate _ temporal _ linear _ slope ( arr ) assert np. all ( slopes < 0. 0 )
[ 0.705125093460083, -0.03893401846289635, 0.4806118607521057, 0.640024721622467, 0.04323945567011833, 1.2229746580123901, -0.4645325243473053, -0.4508989751338959, -0.12221156060695648, -0.1714918166399002, -0.14601323008537292, -0.4848528504371643, -0.4777876138687134, 1.2426735162734985, ...
def set _ um _ freq _ zpe ( self, v _ um, zpe _ um ) : if not self. v _ um : self. v _ um = v _ um # in cm ^ - 1 please elif v _ um! = self. v _ um : raise valueerror ( " um freq already exists for this mode and does not match previous value! " ) else : pass if not self. zpe _ um : self. zpe _ um = zpe _ um # in kcal /...
[ -0.6546761393547058, -0.8057928681373596, 0.8365581631660461, 0.3079942762851715, 0.18494442105293274, 0.5667331218719482, 0.9246656894683838, 0.2765066921710968, 0.43785667419433594, 0.2625540494918823, 0.41276073455810547, 0.11971321702003479, -0.5579270124435425, -0.1713961660861969, ...
def write _ file ( name, data ) : if not os. path. exists ( name ) : raise ioerror ( f " { name } doesn't exist " ) with open ( name, " w " ) as tmp _ file : tmp _ file. write ( data )
[ -0.0392112210392952, -0.28021159768104553, 0.3707331120967865, -0.39979878067970276, 0.714531421661377, 0.9810112118721008, -0.6198911070823669, 0.28500813245773315, -0.922980010509491, 0.5785121321678162, -0.47561344504356384, -0.650362491607666, 0.12522754073143005, 0.24348504841327667, ...
def variable ( self, name, shape, l2 _ regularization = none, initializer ='norm ', stddev = 0. 02, const = 0. 0 ) : if initializer = ='norm': initializer = tf. random _ normal _ initializer ( stddev = stddev, dtype = self. dtype ) elif initializer = ='const': initializer = tf. constant _ initializer ( const ) else : i...
[ 0.12649664282798767, -0.02558186836540699, 0.5875281691551208, -0.3901270031929016, -0.7869810461997986, -0.10253488272428513, -0.7104507088661194, 0.015319684520363808, -0.2541879117488861, -0.30462464690208435, -0.5781225562095642, 1.1543940305709839, -0.01253778487443924, -0.33881026506...
def create _ backlog _ from _ scraping _ result ( self, path _ to _ scraper _ result _ csv, path _ to _ backlog _ csv = none ) : # pop unimportant columns colums _ to _ use = [ " companyname ", " additionalinformationtype ", " documentid ", " reasonforinformation ", " dateofcorrection ", " dateofinformation " ] scraper...
[ -0.6025540828704834, -0.2309107929468155, 0.6418730616569519, 0.20525763928890228, 0.13226743042469025, -0.0974711999297142, 0.6036435961723328, -0.4118095636367798, -0.5438550114631653, -0.1592751294374466, 0.18940575420856476, 0.08445363491773605, 0.23731784522533417, -0.8775343298912048...
def fromtxt ( path ) : return spectrum ( map ( _ namedtup2partial, io. fromtxt ( path ) ) )
[ 0.055635880678892136, -1.3327361345291138, 0.24719561636447906, -0.6846489906311035, -1.6517750024795532, 0.22535055875778198, -0.7573680281639099, 0.05602150410413742, -0.1262367069721222, 0.20658983290195465, -0.7004838585853577, -0.26818159222602844, -0.185259610414505, -0.4458184838294...
def kmeans ( self, original _ test _ data ) : self. _ _ get _ elbow ( ) cluster _ count = 3 model = kmeans ( n _ clusters = cluster _ count ) km = model. fit ( self. trainingdata ) res = km. predict ( self. testingdata ) pred _ dict = { } for i in range ( cluster _ count ) : pred _ dict [ i ] = [ ] for i in range ( len...
[ -0.6199370622634888, 0.07085596024990082, 0.5930342078208923, -0.20221127569675446, -0.40330395102500916, 0.4911104738712311, 0.8100218772888184, 0.413849800825119, -0.07338062673807144, 0.036243099719285965, 0.40605077147483826, 0.8977369666099548, 0.12800800800323486, -0.1722637712955474...
def get _ filename _ pair ( filename ) : param _ filename = data _ filename = filename [ : - 1 ] if filename [ - 1 : ]. isupper ( ) : data _ filename + ='d'param _ filename + ='p'else : data _ filename + ='d'param _ filename + ='p'return ( param _ filename, data _ filename )
[ -1.2260005474090576, -0.2385348528623581, 0.9003046751022339, -0.38546332716941833, 0.4987688362598419, 0.3831460773944855, 0.10402733832597733, 0.9690541625022888, -0.9464179873466492, 0.4741622805595398, 0.42387109994888306, 0.25203314423561096, -0.2781643867492676, 0.933742344379425, ...
def state ( self ) : return str ( self. _ puzzle )
[ -0.27396875619888306, -1.0037270784378052, 0.2148352563381195, -0.3954775035381317, -1.2748163938522339, 1.0970451831817627, 0.445432186126709, -0.8742170929908752, 0.9885167479515076, 0.4247432053089142, 0.11777796596288681, 0.378336638212204, -0.09579738229513168, -0.9008285403251648, ...
def sortstories ( filteredstories ) : date _ sorted _ stories = [ ] unsorted _ stories = [ ] for s in filteredstories : try : print ( s. pubdate ) date = s. pubdate. feedparser. _ parse _ date ( ) print ( date ) date = date. strftime ( " % j % m % t " ) print ( date ) s. pubdate = date date _ sorted _ stories. append (...
[ 0.2665043771266937, -0.2499486654996872, 0.5472692251205444, 0.2631490230560303, -0.09500422328710556, 0.7978065013885498, -0.26822856068611145, -0.3146097660064697, -0.7567077279090881, -0.15586130321025848, 0.8728888034820557, 0.16496224701404572, 0.340993195772171, 1.1496620178222656, ...
def sse _ grad ( x, y, w, b _ mat ) : error _ vec = raw _ error ( x, y, w, b _ mat ) error _ vec = error _ vec. reshape ( error _ vec. shape + ( 1, ) ) gradient _ mat = np. multiply ( error _ vec, b _ mat ) gradient _ vec = np. sum ( gradient _ mat, axis = 0 ) return gradient _ vec
[ -0.22972580790519714, 0.8220718502998352, 0.9615035653114319, -0.3752896189689636, 0.2800547778606415, 0.04578419029712677, 0.35734570026397705, 0.5704370737075806, -0.6010555028915405, 1.2325303554534912, -0.4300094246864319, 1.2330774068832397, 0.1853446364402771, 0.17144322395324707, ...
def _ _ lt _ _ ( self, other ) : return ( self. pt1. x, self. pt1. y, self. pt2. x, self. pt2. y ) < ( other. pt1. x, other. pt1. y, other. pt2. x, other. pt2. y )
[ 0.8649637699127197, -1.1039786338806152, 0.86750727891922, -0.4121330678462982, 0.12791883945465088, 0.6570756435394287, -0.5787627696990967, -1.577857494354248, -0.9473692774772644, -0.2283121794462204, -0.5469295978546143, -0.26129892468452454, -0.10670284181833267, 0.14180640876293182, ...
def _ create _ menu ( self ) : self. _ menu = qmenu ( " % s menu " % self. objectname ( ), self )
[ -0.36187276244163513, -0.7788766622543335, 0.27257001399993896, -0.42917194962501526, 0.6514148116111755, 0.028637763112783432, -0.339240163564682, 0.3304572105407715, 0.20962928235530853, -1.4923821687698364, -0.39101138710975647, -0.22153355181217194, 0.10785931348800659, 0.2001945376396...
def test _ errbackresultchangesvalue ( self ) : sd = synchronousdeferred ( synchronousfailure ( runtimeerror ( ) ) ) sd. adderrback ( lambda r : 42 ) self. assertequals ( sd. synchronize ( ), 42 )
[ 0.4714423418045044, 1.2905579805374146, 0.46266016364097595, 0.5798094272613525, 0.7373740077018738, -0.5930581092834473, 0.396064430475235, 0.08212840557098389, -0.19649052619934082, -1.1432995796203613, -1.2842211723327637, 0.5660812854766846, -0.10203901678323746, 0.45473921298980713, ...
def print _ word _ freq ( file ) : with open ( file ) as file : lines =''. join ( file. readlines ( ) ) print ( lines ) l _ words = lines. lower ( ) words = l _ words. split ('' ) just _ words = [ s. translate ( string. punctuation ) for s in words ] word _ count = { } for word in just _ words : x = l _ words. count ( ...
[ 1.2247344255447388, 0.03757556155323982, 0.6412773132324219, -0.3617568910121918, 0.0017662560567259789, 0.020613620057702065, 0.24280333518981934, 1.213470697402954, -1.0478416681289673, 0.24999688565731049, -0.2617361545562744, 0.21227790415287018, -0.2382889688014984, 1.3531789779663086...
def create _ code _ component ( self, node, type _, mode ) : num = self. code _ components. add ( self. trial _ id, node. name, type _, mode, node. first _ line, node. first _ col, node. last _ line, node. last _ col, self. container _ id ) node. code _ component _ id = num if hasattr ( node,'op _ pos') : for index, op...
[ -0.7985488772392273, -0.19899491965770721, 0.7893893718719482, -0.5457708239555359, 0.798011302947998, -0.14118528366088867, 0.467439204454422, -0.2178145945072174, 0.15118370950222015, -0.03259226679801941, -0.15475668013095856, -0.705603837966919, 0.10793083906173706, 0.49434542655944824...
def write _ output ( output _ format : str, output : any, output _ file : str ) - > none : with open ( output _ file,'wb') as fp : if output _ format : # indicate output format fp. write ( output _ format. encode ( ) + b '.') # write actual data output _ format = dataformat ( output _ format. lower ( ) ) serialized = s...
[ -0.06575557589530945, -1.0954772233963013, 0.46737900376319885, 0.4444093704223633, 0.22864004969596863, -0.13264235854148865, -0.28990763425827026, 0.8682406544685364, -0.40346530079841614, -0.09196441620588303, -0.07294460386037827, -0.7191727757453918, 0.21604692935943604, -0.2634484767...
def create _ from _ file ( fname ) : with open ( fname,'r') as f : s = f. read ( ) net _ params = json. loads ( s ) layer _ sizes = net _ params ['layer _ sizes'] nnet = netfactory. create _ neural _ net ( sizes = layer _ sizes ) for layer in range ( len ( nnet. layers ( ) ) ) : weights = net _ params ['layers'] [ laye...
[ 0.38364890217781067, -0.5381925106048584, 0.48559191823005676, -0.4091532230377197, -0.5342481732368469, -0.1012532189488411, -0.3004460036754608, -0.3209169805049896, -0.8773130178451538, 0.6155186891555786, -0.3232579231262207, -0.10654225945472717, 0.8623571991920471, 0.559319794178009,...
def attribute ( self, name : str ) - > optional [ countattribute ] : return super ( ). attribute ( name = name )
[ 0.8469879627227783, -0.2883322834968567, 0.33569395542144775, 0.07874538004398346, -0.12004834413528442, -0.058531586080789566, 0.5814549922943115, 0.23268598318099976, 0.535712480545044, -0.150834858417511, 0.16855131089687347, -0.5419023036956787, 0.30470728874206543, -0.3618641793727875...
def test _ abstract _ methods ( self ) : with self. assertraisesregexp ( typeerror, " can't instantiate abstract class testedclass with " " abstract methods orchestration _ restore, orchestration _ save, " " restore, save " ) : self. tested _ class ( )
[ 0.3223232328891754, 0.5746166706085205, 0.3517341613769531, -0.2179766446352005, 1.0407625436782837, 1.1242334842681885, 0.6319844126701355, -0.22468478977680206, 0.015416497364640236, -0.0806378498673439, 0.099494069814682, -0.6976050734519958, 0.09254665672779083, 0.5310943126678467, 0...
def is _ data _ set ( self ) : if self. data = = none : return false else : return true
[ -0.41665446758270264, 0.1427336186170578, 0.4705372154712677, -0.7236506342887878, 0.5778744220733643, 0.20838697254657745, -1.1063084602355957, 0.0494421124458313, -0.0876040831208229, -0.9130793213844299, -0.16545620560646057, 0.5091078281402588, -0.5860449075698853, 0.4429362714290619, ...
def security _ group _ id ( self ) - > pulumi. output [ optional [ str ] ] : return pulumi. get ( self, " security _ group _ id " )
[ 1.552134394645691, 0.3313849866390228, 0.1669151484966278, 0.7413666248321533, 0.15601837635040283, 0.46886923909187317, 0.004558981861919165, 0.016489500179886818, 0.8232848048210144, -0.4540547728538513, 0.012614268809556961, 0.8321555256843567, -0.6262373328208923, -0.14365598559379578,...
def complete _ reductions ( self ) : if self. _ last _ step : # zero out gradients that have not been completed yet for param _ i, grad _ generated in enumerate ( self. _ grads _ generated ) : if not grad _ generated : grad _ info = self. _ grads _ info [ param _ i ] param _ offset = grad _ info [ " param _ offset " ] ...
[ -0.2579500377178192, -0.5119495987892151, 0.755934476852417, -0.5396239161491394, 0.06273309141397476, -0.2956513464450836, 0.6537134647369385, 0.03800894320011139, -1.1256805658340454, 0.20279258489608765, -0.4037330150604248, -0.07530473917722702, -0.30115222930908203, 0.7815488576889038...
def test _ show _ due _ date _ time _ event _ with _ payment _ due _ date ( self, mock _ tz ) : mock _ tz. now. return _ value = datetime ( 2015, 2, 1, tzinfo = dt _ timezone. utc ) event. objects. all ( ). delete ( ) booking. objects. all ( ). delete ( ) event = baker. make _ recipe ('booking. future _ pc ', advance _...
[ 0.2606263756752014, 0.6585739850997925, 0.8714307546615601, 0.30544808506965637, -0.6620305776596069, 0.2803613245487213, -0.18727083504199982, 0.7500476241111755, -0.5040948390960693, -0.016712337732315063, -0.15633532404899597, -0.19252344965934753, 0.5420686602592468, 0.5923490524291992...
async def set _ fan ( self, device _ id : str, value : str ) : zone _ id = self. _ get _ zone _ id ( device _ id ) if zone _ id : await self. _ request ( " createrequest ", f " / zone / { zone _ id } / commandprocessor ", { " command " : { " commandtype " : " gotofanspeed ", " fanspeedparameters " : { " fanspeed " : va...
[ -0.08457504212856293, 1.0406508445739746, 0.2830381691455841, 1.2178725004196167, 0.2868347764015198, -0.12877899408340454, 0.9575002193450928, -0.5425813794136047, -0.08083367347717285, -0.12546464800834656, -0.6388832926750183, 1.0554839372634888, -0.25445735454559326, 0.6543728709220886...
def test _ async _ redetect _ face ( self ) : detector = self. detectors [ - 1 ] detectone = detector. detectone ( image = vlimage _ one _ face ) task = detector. redetectone ( image = vlimage _ one _ face, bbox = detectone, asyncestimate = true ) self. assertasyncestimation ( task, facedetection ) task = detector. red...
[ -0.36979761719703674, 0.817809522151947, 0.5828443765640259, 1.2040759325027466, 0.9202557802200317, -1.002128005027771, 0.5391431450843811, 0.08929795026779175, 0.7899453043937683, 0.35382214188575745, -0.6127346158027649, -0.35012394189834595, 0.2581561207771301, 0.9577949643135071, 0....
def start _ new _ session ( ) : # make sure the session only uses the gpu memory that it actually needs config = tf. configproto ( ) config. gpu _ options. allow _ growth = true session = tf. session ( config = config, graph = tf. get _ default _ graph ( ) ) k. tensorflow _ backend. set _ session ( session )
[ 0.5492771863937378, 0.16850325465202332, 0.26715773344039917, 0.9881198406219482, 0.6239933967590332, -0.5276029706001282, 0.296712726354599, 0.1584666669368744, -0.12385475635528564, 0.10738497227430344, -0.15262852609157562, 0.8402590751647949, -0.11739132553339005, -0.15290053188800812,...
def addparsers ( self, subparsers ) : helpmessage = " bump the skelebot. yaml project version " arghelp = " select the version number that should be bumped " parser = subparsers. add _ parser ( " bump ", help = helpmessage ) parser. add _ argument ( " version ", help = arghelp, choices = [ major, minor, patch ] ) retur...
[ -0.1347924917936325, -0.15083438158035278, 0.6498842835426331, 0.13564607501029968, 0.27610066533088684, 1.0851067304611206, -0.8525972962379456, 0.14300356805324554, 0.4674914479255676, 0.07377612590789795, -0.7582650184631348, 0.37588560581207275, -0.6392579078674316, 0.3894621431827545,...
def draw ( self ) : self. user _ inteface. render ( self. current _ loop. get _ sprites ( ) )
[ -0.4742206633090973, 0.41393524408340454, 0.22696532309055328, -0.1684633195400238, 0.19045381247997284, 1.0780372619628906, 0.3392953872680664, 0.21030141413211823, -0.39889276027679443, -0.010699726641178131, -0.06332327425479889, 0.7707881927490234, -1.196641445159912, 0.064741924405097...
def family ( self ) - > optional [ str ] : return pulumi. get ( self, " family " )
[ 0.6853379011154175, 0.4973051846027374, 0.33312803506851196, 0.8280277252197266, 0.9139382839202881, 0.9203039407730103, -0.5368044972419739, -0.9600925445556641, 0.18877080082893372, -0.5771535038948059, 0.616866946220398, 0.13179874420166016, 0.38454341888427734, -0.6736065149307251, -...
def run ( self ) - > tuple [ list [ float ], list [ float ] ] : self. opt _ steps = 0 ln : int = self. num _ steps remainder = ln % self. window _ size if remainder! = 0 : if self. verbose : print ( f'window _ size must be a factor of len ( energy _ cost ), trimming arrays from { ln } to { ln - remainder }') self. ener...
[ -0.3628033995628357, 0.19674643874168396, 0.4692595899105072, 0.4390970468521118, 0.3468974828720093, -0.5003136396408081, 0.14567850530147552, 0.05010974779725075, -0.6571236848831177, -0.0241069495677948, -0.1834360957145691, -0.40482890605926514, -0.1235705241560936, 0.8240793347358704,...
def setup _ model ( args ) : model = get _ model ( args ) if args. load is not none : if args. deepspeed : iteration, release, success = get _ checkpoint _ iteration ( args ) path = os. path. join ( args. load, str ( iteration ), " mp _ rank _ 00 _ model _ states. pt " ) print ('current device : ', torch. cuda. current...
[ 0.06868468970060349, 0.03700733929872513, 0.6962659955024719, 0.2653792202472687, 0.2516382932662964, 0.2773350179195404, 0.5773610472679138, 0.30646225810050964, -0.29846885800361633, 0.5906845331192017, 0.8414666652679443, -0.28832507133483887, -0.1088482141494751, -0.018159514293074608,...
def test _ console _ forwards _ 404 ( c, users : list [ user ], flights : list [ flight ] ) : httpretty. register _ uri ( httpretty. get, f " http : / / container - nodeodm : 3000 / task / { flights [ 0 ]. uuid } / output ", status = 404 ) # try to get info on working flight _ auth ( c, users [ 0 ] ) resp = c. get ( re...
[ -0.8027889728546143, 0.42418861389160156, 0.6181787848472595, -0.6888193488121033, 0.8203222751617432, 0.524247944355011, 0.6078029870986938, -0.5895721912384033, -0.9528158903121948, -0.5052149295806885, 0.20830413699150085, 0.49846574664115906, -0.10513397306203842, -0.11749683320522308,...
def handle ( self, files, encoding, chunksize = 1 ) : stats = [ ] if files : logging. info ( " input file count : % d ", len ( files ) ) for fp in files : stream = self. reader ( fp, encoding ) parsed = self. streamer. consume ( stream, source = fp. name, chunksize = chunksize ) stats. append ( parsed ) if not fp. clos...
[ -0.0024668993428349495, 0.11813690513372421, 0.899224042892456, 0.4425126016139984, 0.21598534286022186, 0.2572023272514343, -0.18861986696720123, -0.19573311507701874, -0.48153045773506165, -0.31008464097976685, 0.4233036935329437, -1.0140435695648193, -0.23211570084095, 0.676240086555481...
def _ tokenised _ files _ expression _ to _ cmd ( cls, tokens ) : tokens, cmd = list ( tokens ), [ ] # special treatment of tokens = [ " - " ] if tokens = = [ " - " ] : # this means, no file should be in the repository return [ " - - exclude = * " ] while tokens : # get first token token = tokens. pop ( 0 ) if token no...
[ -0.3972846567630768, -0.932891845703125, 0.8425071835517883, -0.7834340929985046, 0.2078358232975006, -0.2736792266368866, -0.21787290275096893, 0.41186824440956116, 0.011753067374229431, 0.06606165319681168, -0.11786485463380814, 0.06225280091166496, 0.25819751620292664, 0.011492620222270...
def lorentz _ beta _ gamma ( beta _ x, beta _ y ) : beta = np. sqrt ( beta _ x * * 2 + beta _ y * * 2 ) if ( beta > = 1. ) : print ( beta _ x, beta _ y, beta ) raise valueerror ( " should never try to boost with beta > = 1! " ) gamma = 1 / np. sqrt ( 1 - beta * * 2 ) return ( beta, gamma )
[ 0.3036535084247589, -0.6160486340522766, 0.35208603739738464, -0.17176857590675354, 0.470260351896286, -0.22201663255691528, -0.7050325274467468, -0.9936888217926025, -1.0171923637390137, -0.1321454644203186, -0.1256229728460312, 0.8831056952476501, -0.6616222858428955, 1.0194587707519531,...
def save _ image ( filename : str, img : np. ndarray ) : filepath = path. cwd ( ) /'data'/ filename if len ( img. shape ) > 2 : img [ :, :, : ] = img [ :, :, : : - 1 ] # invert channels # assert ( filepath. exists ( ) is true ), " wrong path " cv2. imwrite ( str ( filepath ), img )
[ -0.6112000942230225, -0.47688859701156616, 0.4708639085292816, -0.029262280091643333, 0.7812522649765015, 0.4171445667743683, 0.13854172825813293, 0.35389038920402527, -0.7242773175239563, 0.5579370260238647, -0.3255177140235901, 0.2647601366043091, -0.11904557794332504, 0.5180622935295105...
def validate _ number _ value ( cls, current _ char ) : if current _ char in'0123456789': return true return false
[ 0.41458168625831604, -0.659871518611908, 0.43651944398880005, 0.7161702513694763, -0.129164919257164, 0.49172335863113403, 0.9309912323951721, 0.5100646018981934, -0.6796501874923706, -0.6822803020477295, -0.1968839317560196, -0.2446262687444687, -0.27635714411735535, 0.6015483140945435, ...
def _ get _ team _ id ( code ) : for team in team _ data : if team [ " code " ] = = code : return team [ " id " ] break else : return null
[ 0.6085813641548157, 0.1671149879693985, 0.44311705231666565, -0.35851165652275085, 0.20041523873806, -0.07907021790742874, -0.6309897899627686, -0.5730438828468323, -0.005588304717093706, 0.8137108683586121, -0.23764072358608246, -0.13043421506881714, -0.29427990317344666, -0.1847406476736...
def selectsockets ( self, int _ tuple, p _ int, p _ int _ 1, * int ) :...
[ -1.638332724571228, 0.5511271953582764, 0.29477402567863464, -0.2881239652633667, 0.35639965534210205, -0.11497777700424194, 0.5365232825279236, -1.7911280393600464, -0.03878534585237503, -0.026157863438129425, 0.2792033553123474, 0.41439011693000793, -1.1174278259277344, -1.20656895637512...
def save _ np _ arr ( save _ path, file _ name, np _ arr ) : # type : str - > str - > np. array - > ( ) if not os. path. exists ( save _ path ) : os. makedirs ( save _ path ) with open ( os. path. join ( save _ path, file _ name + '. npy'),'w') as f : np. save ( f, np _ arr )
[ -0.01301815826445818, -0.9736859798431396, 0.49137696623802185, 0.2597525119781494, 0.5659621357917786, 0.38945838809013367, 0.22423142194747925, -0.40038198232650757, -0.3020114302635193, 0.7335225343704224, -0.7559399604797363, 0.013526376336812973, -0.04050933197140694, 0.70875841379165...
def update ( self, image ) : self. _ faces = [ ] if ( utils. is _ gray ( image ) ) : image = cv2. equalizehist ( image ) else : image = cv2. cvtcolor ( image, cv2. color _ bgr2gray ) image = cv2. equalizehist ( image ) min _ size = utils. widthheightdividedby ( image, 8 ) face _ rects = self. _ face _ classifier. detec...
[ -1.1872748136520386, -0.08296721428632736, 0.9807252287864685, -0.2421579211950302, 0.33123815059661865, -0.13696569204330444, 0.034720513969659805, -0.6432169675827026, 0.29091545939445496, 0.18137605488300323, -0.5917621850967407, 0.1987919807434082, 0.07861049473285675, 0.95174527168273...
def allnames ( self ) : return os. listdir ( self. path )
[ -0.26238515973091125, -0.8074280619621277, 0.5333166122436523, 0.05048321560025215, -0.34907376766204834, 0.5812204480171204, -0.7778339982032776, -0.2670351266860962, 1.036382794380188, -0.8260785937309265, -0.2356853485107422, 0.5249733924865723, 0.461123526096344, 0.7522282004356384, ...
def test _ solver _ constraints _ without _ simplification ( self ) : parameters = [ 3, 3, 3, 3 ] constraints = { ( pair ( 0, 0 ), pair ( 2, 0 ) ), ( pair ( 0, 1 ), pair ( 1, 1 ), pair ( 2, 0 ) ), ( pair ( 0, 2 ), pair ( 3, 2 ) ) } solver = solver ( parameters, constraints ) self. assertequal ( solver. constraints, con...
[ -0.6299886703491211, -0.03088286891579628, 0.302298903465271, 0.16297097504138947, -0.29561564326286316, 0.1547744870185852, 0.36475229263305664, 0.7223876714706421, 0.4225398898124695, 0.0024798887316137552, -1.0499744415283203, -1.0882420539855957, -0.5117651224136353, 0.0560723468661308...
async def resetall ( self, ctx, confirmation : bool = false ) : if confirmation is false : return await ctx. send ( " this will delete * * all * * points from all members. this action * * cannot * * be undone. \ n " " if you're sure, type ` { 0 } xpset resetall yes `. ". format ( ctx. clean _ prefix ) ) for member in c...
[ 0.7352822422981262, 0.34720146656036377, 0.4752110540866852, 1.1644173860549927, 0.6935977339744568, 0.5435458421707153, -0.4011666178703308, 0.38639456033706665, -0.13854797184467316, 0.4143390655517578, -0.5112887620925903, 1.817881464958191, -0.8120808601379395, 0.3675812780857086, -0...
def solve _ multi _ destination _ tcp _ instance ( model, graph, edge _ variables, detailed _ output = true, time _ output = false ) : start _ time = python _ time. time ( ) # solve and recover solution print ('- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -...
[ 0.14508569240570068, 0.5500965714454651, 0.6838634014129639, 0.5220126509666443, -0.6900764107704163, -0.465032696723938, -0.09483137726783752, -0.19274216890335083, -1.0573409795761108, 0.8431462645530701, 0.18911294639110565, -0.715490996837616, -0.666312038898468, -0.5723351240158081, ...
def test _ cleanup ( self ) : class mocktest ( pyunit. testcase ) : def test _ foo ( test ) : pass test = mocktest ('test _ foo') result = reporter. testresult ( ) suite = runner. destructivetestsuite ( [ test ] ) self. assertequal ( suite. counttestcases ( ), 1 ) suite. run ( result ) self. assertequal ( suite. countt...
[ -0.37977564334869385, 1.0536521673202515, 0.46198245882987976, 0.18230532109737396, 1.1728167533874512, 0.27961602807044983, 0.8957284688949585, 0.6307312250137329, 0.7926908135414124, -1.2882373332977295, -0.23881568014621735, -0.806036651134491, -0.36700439453125, 0.2356748878955841, 0...
def extend ( self, it ) : for i, v in it : self. append ( i, v )
[ -0.5651465058326721, 0.23815375566482544, 0.4076572358608246, 0.16461198031902313, 0.5704802870750427, 1.0029571056365967, -1.3906584978103638, -0.10480544716119766, 0.28037330508232117, -0.24008537828922272, -0.44268831610679626, -0.38170376420021057, -0.31476160883903503, 0.2263964414596...
def validated _ ptrs ( self, i ) : # to prevent dos attacks, more than 10 ptr names must not be looked up if self. strict : max = max _ ptr if self. strict > 1 : # break out the number of ptr records returned for testing try : ptrnames = self. dns _ ptr ( i ) ptrip = [ p for p in ptrnames if i in self. dns _ a ( p ) ] ...
[ -0.14366725087165833, 0.31027951836586, 0.5555893182754517, -0.8591731190681458, 0.1060556024312973, 0.020821567624807358, -0.1459447592496872, -0.7814409732818604, 0.7787342071533203, 0.2844718396663666, 0.6209291219711304, -0.6153963804244995, -0.659129798412323, -0.1609831005334854, 0...
def test _ bc _ correction _ notification ( app, session, status, legal _ type ) : # setup filing + business for email legal _ name ='test business'original _ filing = prep _ incorp _ filing ( session,'bc1234567 ','1 ', status, legal _ type = legal _ type ) token ='token'business = business. find _ by _ identifier ('bc...
[ 1.1041096448898315, -0.19781902432441711, 0.7311812043190002, -0.5086839199066162, 0.881397545337677, 0.047408945858478546, 0.5171359777450562, 0.4728546142578125, -0.2871805727481842, -0.0021006111055612564, -0.15097619593143463, 0.8555606007575989, -0.1212802529335022, 0.2753430008888244...
def paginator ( self ) : if not hasattr ( self,'_ paginator') : if self. pagination _ class is none : self. _ paginator = none else : self. _ paginator = self. pagination _ class ( ) return self. _ paginator
[ -0.33981066942214966, -0.5998821258544922, 0.50893235206604, -0.8885056972503662, -0.6238556504249573, -1.2577236890792847, 0.5269066095352173, -0.030684366822242737, 0.7335692048072815, -1.11276376247406, 0.5326469540596008, -0.3913288712501526, -0.4011925160884857, 0.8889913558959961, ...
def test _ compute _ constraints _ with _ one _ secrete _ constraint ( self ) : parameters = [ 3, 3, 3, 3 ] constraints = { ( pair ( 0, 0 ), pair ( 2, 0 ) ), ( pair ( 0, 1 ), pair ( 1, 1 ), pair ( 2, 0 ) ), ( pair ( 0, 2 ), pair ( 3, 2 ) ) } solver = solver ( [ ], [ ] ) solver. data = parameters solver. constraints = c...
[ -0.6285571455955505, 0.3776511549949646, 0.663284957408905, 0.46813762187957764, 0.44513359665870667, -0.3159085214138031, 0.18363623321056366, 0.27021482586860657, -0.19603364169597626, 0.19012795388698578, -1.075121283531189, -0.7880825400352478, -1.34188711643219, -0.06539367139339447, ...
def continuity _ segmentation ( vocalization, rate, min _ level _ db = - 80, min _ level _ db _ floor = - 40, db _ delta = 5, n _ fft = 1024, hop _ length _ ms = 1, win _ length _ ms = 5, ref _ level _ db = 20, pre = 0. 97, spectral _ range = none, verbose = false, mask _ thresh _ std = 1, neighborhood _ time _ ms = 5,...
[ 0.679827868938446, -0.3508484363555908, 0.9460406303405762, 0.7886661887168884, 0.17391249537467957, -0.34506937861442566, 0.9500346779823303, -0.5166778564453125, -0.08515344560146332, 0.3572666347026825, 0.40106651186943054, 0.12429004907608032, -0.2740470767021179, 0.33673152327537537, ...
def comparisons ( self ) : pass
[ 0.7708533406257629, -1.025898814201355, 0.22233502566814423, 0.4938642084598541, 0.7994726896286011, 1.0239379405975342, 1.097265601158142, -0.04716489836573601, 0.029908733442425728, -0.856134831905365, -0.4507615864276886, -0.6564909219741821, -0.743309497833252, 1.497833251953125, -1....
def _ get _ timezone ( self ) : if time. altzone < = 0 : prefix = " + " else : prefix = " - " hours = ( " % 2d " % ( abs ( time. altzone / ( 60 * 60 ) ) ) ). replace ( " ", " 0 " ) mins = ( " % 2d " % ( abs ( time. altzone / 60 ) % 60 ) ). replace ( " ", " 0 " ) if int ( mins ) > 0 : return " % s % s % s " % ( prefix, ...
[ -0.31972482800483704, -0.6442089676856995, 0.6240200400352478, -0.2873630225658417, -0.9953773617744446, -0.16826699674129486, -0.7298997640609741, -0.27894797921180725, 0.7405178546905518, 0.5726841688156128, 0.1402066946029663, 0.13541477918624878, 0.5854372978210449, -0.0706997588276863...
def is _ minor ( self ) : return self. _ call ('is _ minor'). yes
[ 0.00914397556334734, 0.13634581863880157, 0.5389657616615295, 1.3255695104599, 0.33572104573249817, 0.154885396361351, -0.8533638119697571, -1.08106529712677, 0.8103886246681213, -1.1388322114944458, -0.023323439061641693, 0.3071800768375397, -1.34270441532135, 0.07484350353479385, -0.99...
def score ( self, inputs, targets ) : return self. ridge. score ( inputs, targets )
[ -0.01870354637503624, -0.24613353610038757, 0.2277168333530426, 0.10247958451509476, 1.5922473669052124, -0.011726447381079197, -0.5564696788787842, -0.8931853175163269, -0.9646821022033691, 0.862298309803009, 1.3709009885787964, -0.12483326345682144, -0.6522402167320251, -0.20160938799381...
def order _ by ( self, * field _ names ) : updated _ field _ names = [ ] for field _ name in field _ names : if isinstance ( field _ name, basestring ) and field _ name! = '?': is _ desc = field _ name. startswith ('-') # remove ` - ` if field _ name has it if is _ desc : field _ name = field _ name [ 1 : ] field _ nam...
[ -0.10718999058008194, -0.18023866415023804, 0.6986572742462158, 0.08877509087324142, 0.5287001729011536, -0.41758987307548523, -0.978066623210907, -0.5140662789344788, -0.8801355361938477, -0.10647373646497726, -0.08063024282455444, -0.0012897253036499023, 0.642358660697937, -0.25282415747...
def load _ handler ( handler ) : match = re. match ('^ ( [ \ w | - ] + ( \. [ \ w | - ] + ) * ) : ( \ w + ) $ ', handler ) if not match : raise valueerror ('malformed handler - {! r } '. format ( handler ) ) mod _ name, func _ name = match. group ( 1 ), match. group ( 3 ) mod = load _ module ( mod _ name ) return getat...
[ -0.47940579056739807, -0.7595182657241821, 0.43213510513305664, -0.2778231203556061, -1.381126880645752, -0.36355987191200256, 0.593569815158844, -0.08589337021112442, -0.21197092533111572, 0.12011644244194031, -0.3387576937675476, 0.5165590047836304, 0.0989062637090683, 0.0986496657133102...
def check _ connection ( self, url, auth = none, * * kwargs ) : try : status = false api _ response = self. req. options ( url, auth = auth, * * kwargs ) if not str ( api _ response ). startswith ('2') or \ str ( api _ response ). startswith ('1') : pnote ( " connection was successful, but there was " \ " problem acces...
[ -1.417374610900879, -0.4938000440597534, 0.8534370064735413, -0.24833112955093384, 0.20253412425518036, 0.40251943469047546, -0.22352701425552368, -0.1946481168270111, -0.06026458740234375, -0.07671593129634857, 0.5424859523773193, -0.8996767997741699, -0.6299077272415161, -0.0698352083563...
def distance2bbox ( self, points, distance ) : x1 = points [ :, 0 ] - distance [ :, 0 ] y1 = points [ :, 1 ] - distance [ :, 1 ] x2 = points [ :, 0 ] + distance [ :, 2 ] y2 = points [ :, 1 ] + distance [ :, 3 ] return torch. stack ( [ x1, y1, x2, y2 ], - 1 )
[ -0.31170547008514404, 0.2055596113204956, 0.8584402203559875, 0.5542446374893188, 0.6242983937263489, -0.11800431460142136, -0.18961939215660095, 0.9778587222099304, -0.508382260799408, 0.9430094957351685, -1.5980693101882935, 0.23169608414173126, 0.6901279091835022, -1.1036713123321533, ...
def propose _ rotation ( cls, original _ positions, mc _ atoms ) : positions _ unit = original _ positions. unit xold = original _ positions [ mc _ atoms, : ] / positions _ unit x0 = xold. mean ( 0 ) # compute center of geometry of atoms to rotate # generate a random quaterionion ( uniform element of of so ( 3 ) ) usin...
[ -0.1976470947265625, 0.3830690085887909, 0.37156951427459717, -0.6433875560760498, -0.5649541616439819, -0.3762938976287842, 0.2581901550292969, 0.22289611399173737, 0.5080422163009644, 0.31787994503974915, 0.14247483015060425, -0.15069828927516937, -0.3745763897895813, -0.8052945733070374...
def get _ requirements ( ) : base _ path = os. path. dirname ( _ _ file _ _ ) with open ( os. path. join ( base _ path,'requirements. txt') ) as reqs : return [ req. strip ( ) for req in reqs ]
[ -0.6636735200881958, -1.1084760427474976, 0.4492177665233612, 0.24403297901153564, 0.6204978227615356, 1.0425994396209717, -0.5551086664199829, 0.6607770323753357, -0.01576855778694153, 0.42608144879341125, -0.543245255947113, 0.07407886534929276, -0.00035222372389398515, 0.804456412792205...
def set ( self, key, value ) : self. discard ( key ) # limit size of cache if len ( self. _ cache ) > self. _ size : self. _ cache. popitem ( last = false ) self. _ cache [ key ] = value
[ 0.3468431830406189, 1.10264253616333, 0.532949686050415, -0.5398304462432861, -1.2509617805480957, 0.37827906012535095, -0.9094620943069458, 0.07155169546604156, 0.015210770070552826, 1.176472783088684, -0.47510722279548645, 0.1604234129190445, -0.09828480333089828, -0.2022126317024231, ...
def distance ( self, samples ) : x = samples [ :, 0 ] y = samples [ :, 1 ] k = self. params [ 0 ] m = self. params [ 1 ] dists = abs ( k * x + m - y ) # dists = abs ( - k * x + y - m ) / math. sqrt ( k * * 2 + 1 ) return dists
[ 0.029985371977090836, -1.2968887090682983, 0.6408454179763794, 0.3362642228603363, -0.3963167071342468, 0.5693904161453247, 0.3299597501754761, 0.2371314913034439, -0.24923180043697357, 1.1350398063659668, 0.2863244414329529, 0.0010180555982515216, -0.46884456276893616, 0.2801412045955658,...
def move ( self ) : most _ affected _ city = self. find _ most _ affected _ city ( ) if self. city! = most _ affected _ city : if logger is not none : logger. log ( " treatment center with id { } moved from { } to { } ". format ( self. treatment, self. city. name, most _ affected _ city. name ) ) self. city = most _ af...
[ 0.11937277019023895, -1.3080894947052002, 0.41328945755958557, -1.1162828207015991, 0.11531581729650497, 0.06636076420545578, 0.19939884543418884, 0.2846604585647583, 0.45389991998672485, 0.10936206579208374, -0.5991899371147156, 0.5900232195854187, -0.23894739151000977, -0.007492322009056...
def _ _ camera _ samples _ update _ ui ( self ) : if self. _ _ ui _ update : for output in self. selected _ outputs : output. ui. aa _ samples = self. _ _ camera _ aa _ slider. value ( )
[ -0.19196157157421112, -1.6346955299377441, 0.2684248685836792, -0.13711127638816833, -0.5150372982025146, -0.49197182059288025, 0.8602631092071533, -0.9277560114860535, 0.4549860656261444, 0.27904975414276123, 0.603903591632843, -0.18978065252304077, -0.03195304423570633, 1.385781764984130...
def edit _ portfoliohaircut ( request ) : if request. user. is _ stylist = ='yes': if request. method = ='post': haircut = portfoliohaircut. objects. get ( pk = request. post. get ('portfoliohaircut _ pk') ) if'picture'in request. files : haircut. picture = request. files ['picture'] haircut. name = request. post. get ...
[ -0.3649357259273529, -0.3086293041706085, 0.4775877296924591, 0.09522376209497452, 0.09706766903400421, 0.33924922347068787, 0.3044867217540741, 0.3863172233104706, 0.10789211839437485, 0.5485767126083374, 0.15111888945102692, 0.375006765127182, -0.4088912010192871, 0.4512008726596832, 0...
def position ( self, value ) : if ( len ( value )! = 2 or type ( value [ 0 ] )! = int or type ( value [ 1 ] )! = int or value [ 0 ] < 0 or value [ 1 ] < 0 or type ( value )! = tuple ) : raise typeerror ( " position must be a tuple of 2 positive integers " ) self. _ _ position = value
[ -1.787459135055542, -0.35604020953178406, 0.529831051826477, -0.18329723179340363, 0.03081994690001011, 0.9018413424491882, 0.016717270016670227, -0.6882122159004211, -0.8636173605918884, 0.36980533599853516, -0.1559874713420868, -1.5755831003189087, -0.6798101663589478, 0.1841791719198227...
def test _ get _ parameters _ 0 ( self ) : pass
[ -0.1173315942287445, -0.15180277824401855, 0.30520960688591003, 1.1661585569381714, 1.2391648292541504, 0.7847423553466797, 0.8467025756835938, 0.1821192055940628, -0.3379319906234741, -0.48874080181121826, -0.0035427671391516924, 0.8910583257675171, -0.8385328650474548, 0.7918119430541992...
def load _ vcf ( bcftools _ command, genes = none ) : # run subprocess and capture stdout data = os. popen ( bcftools _ command ). read ( ) # format bcftools output into a list of rows, split rows into lists of columns output _ list = [ ] for line in data. split ('\ n') : line _ split = line. split (';') if len ( line ...
[ 0.5723559856414795, -0.24667012691497803, 0.7737244963645935, -0.3583638668060303, -0.6283203363418579, -0.03481563553214073, 0.3279915750026703, 0.20328404009342194, -1.0952805280685425, -0.32403895258903503, -0.16763117909431458, 0.7735843658447266, -0.7883130311965942, -0.20402629673480...
def buildchains ( trigger _ rules, lvl1 _ file, hlt _ file, chains = [ ] ) : lvl1 _ info = et. parse ( lvl1 _ file ). getroot ( ) hlt _ info = et. parse ( hlt _ file ). getroot ( ) l2 _ items = { } ef _ items = { } for hlt _ item in hlt _ info. findall ('chain _ list / chain') : chain _ name = hlt _ item. get ('chain _...
[ -0.42050105333328247, -0.4261380732059479, 0.7234022617340088, -0.04745590314269066, 0.4916328191757202, 0.1725936233997345, -0.14765553176403046, 0.3960306942462921, -1.1289153099060059, -0.5942236185073853, -0.38975441455841064, -0.11963086575269699, -0.12477105110883713, 0.5775102376937...
def prepare _ data ( seqs, labels, maxlen = none ) : # x : a list of sentences lengths = [ len ( s ) for s in seqs ] if maxlen is not none : new _ seqs = [ ] new _ labels = [ ] new _ lengths = [ ] for l, s, y in zip ( lengths, seqs, labels ) : if l < maxlen : new _ seqs. append ( s ) new _ labels. append ( y ) new _ le...
[ -0.08651217818260193, 0.0015478389104828238, 0.7196670770645142, -0.6508098840713501, -0.32442706823349, -0.6827247738838196, -0.7438791394233704, 0.019430402666330338, 0.7858995199203491, 0.7575563192367554, -0.6122147440910339, -0.027166755869984627, 0.17966288328170776, -0.0533424802124...
def test _ target ( ) - > none : test _ file = " tests / wf / scatter - wf4. cwl " exit _ code = main ( [ " - - target ", " out ", get _ data ( test _ file ), " - - inp1 ", " inp1 ", " - - inp2 ", " inp2 " ] ) assert exit _ code = = 0
[ -0.318675696849823, -0.1886211484670639, 0.5763745307922363, 0.3360652029514313, 0.9622598886489868, 0.9096369743347168, 0.4845449924468994, 0.38879942893981934, -1.067194938659668, -0.13349653780460358, 0.38960951566696167, 1.0804574489593506, -0.004833081271499395, -0.8510045409202576, ...
def rotate _ right ( self ) : self. body. angle - = radians ( 2 )
[ 0.3332195580005646, 0.6938273906707764, 0.404465913772583, -0.2917216122150421, 0.23958547413349152, 0.638952910900116, -0.6628175377845764, -0.40738949179649353, -0.6045209765434265, -0.23848970234394073, -0.5776495933532715, 0.53276526927948, -0.6582754850387573, 0.04789930209517479, 0...
def gethandle ( self ) : return _ topods. topods _ tshape _ gethandle ( self )
[ 0.35796430706977844, 0.4423765540122986, 0.39338257908821106, -0.1883505880832672, 1.309007167816162, 1.0664153099060059, 0.6929430365562439, -0.5958328247070312, -0.27321526408195496, -0.8377343416213989, 0.1525295376777649, -0.4616759419441223, -0.27709314227104187, -0.4457080066204071, ...
def get _ workouts ( begin _ date, end _ date ) : pass
[ -0.7272275686264038, 0.7621498107910156, 0.5406169891357422, 1.1953685283660889, 0.7138500213623047, 0.7918240427970886, 0.29902517795562744, -0.4112095534801483, -1.4832693338394165, -0.6299364566802979, 0.15693068504333496, 0.8618919849395752, -0.5294102430343628, -0.44523659348487854, ...
def test _ compute _ constraints _ detect _ invalid _ constraints ( self ) : parameters = [ 3, 3, 3 ] constraints = { ( pair ( 0, 0 ), ), ( pair ( 0, 1 ), ), ( pair ( 0, 2 ), ) } solver = solver ( [ ], [ ] ) solver. data = parameters solver. constraints = constraints solver. read _ constraints ( ) self. assertraises ( ...
[ -0.2680495083332062, 0.13540859520435333, 0.4058437943458557, 0.8031101226806641, 0.42533743381500244, -0.2531583309173584, -0.12760712206363678, -0.02330573834478855, -0.5754950642585754, 0.02949504368007183, -0.10214463621377945, -0.9099072813987732, -0.9833864569664001, -0.1338052153587...
def testgetgeolocationinfo ( self ) : selector = {'addresses': [ {'streetaddress':'1600 amphitheatre parkway ','cityname':'mountain view ','provincecode':'us - ca ','provincename':'california ','postalcode':'94043 ','countrycode':'us'}, {'streetaddress':'76 ninth avenue ','cityname':'new york ','provincecode':'us - ny ...
[ -0.33425846695899963, 0.33028480410575867, 0.4808811545372009, -1.0491050481796265, 0.0882808268070221, 0.11143118143081665, -0.27370133996009827, -0.3423502445220947, -0.0687456876039505, -0.2292783558368683, -0.4437413811683655, -0.15945972502231598, 0.18092040717601776, -0.3974146544933...
def profile ( request ) : csform = customform ( ) posts = customurls. objects. filter ( user = request. user ) count = posts. count ( ) top = posts. order _ by ('- foll') [ : 2 ] cus = sum ( posts. values _ list ('foll ', flat = true ) ) total = cus * 0. 5 custom = posts. order _ by ('- id') context = {'posts': posts,'...
[ 1.0022892951965332, 0.3764690160751343, 0.6363751888275146, 0.15177761018276215, -0.7052119970321655, 0.3285066485404968, 1.078919529914856, -0.05110683664679527, -0.3327800929546356, -0.5436333417892456, -0.38878175616264343, -0.3673628866672516, 0.774001955986023, 0.48456060886383057, ...
def listenlimit ( self ) : self. positiontuple = self. character. get _ position ( ) self. x, self. y = self. positiontuple if self. x > = 269 : while self. rightlimit = = false : self. leftlimit = false self. changerightlimit ( ) self. createspikes ( ) if self. collitionactive = = false : self. score + = 10 self. hand...
[ 0.4154711961746216, -0.6957373023033142, 0.7377198934555054, -0.5446975827217102, 0.09995897114276886, -0.010184894315898418, 0.17549161612987518, -0.23189429938793182, 0.09147917479276657, 0.6722185015678406, -0.7432631254196167, -0.08252422511577606, -0.16876189410686493, -0.373291254043...
def count _ calls ( func, * args, * * kwargs ) : calls = - 1 def call _ trace ( frame, event, arg ) : nonlocal calls if event! ='call': return calls + = 1 return sys. settrace ( call _ trace ) rv = func ( * args, * * kwargs ) sys. settrace ( none ) return calls, rv
[ 0.5586665868759155, 0.42190149426460266, 0.6074733138084412, -0.08578894287347794, 0.5161025524139404, -0.5599074959754944, 0.33286207914352417, -0.1851542890071869, 0.9876090288162231, 0.2944619357585907, -0.44686591625213623, -0.237198144197464, -0.10173969715833664, 1.194740891456604, ...
def recursive _ min ( nested _ list : list ) - > int : smallest = none first _ time = true for element in nested _ list : if type ( element ) is list : value = recursive _ min ( element ) else : value = element if first _ time or value < smallest : smallest = value first _ time = false return smallest
[ 0.3969784379005432, -0.048448462039232254, 0.49395471811294556, 1.2226767539978027, -0.14198102056980133, -0.5129826664924622, -0.12308265268802643, -0.4956720173358917, 0.1633961796760559, -0.8547574281692505, -0.962125301361084, 0.14107288420200348, -1.1844570636749268, 1.663833498954773...
def test _ toml _ rows ( sample _ sheet ) : assert len ( sample _ sheet. rows ) = = 1
[ 0.9718519449234009, 1.3522429466247559, 0.09732238948345184, -0.3346858322620392, 0.06505782157182693, 0.1409999579191208, -0.1443311870098114, 1.0733221769332886, 1.8365625143051147, -0.9588668346405029, 0.27526694536209106, -0.5217512249946594, 0.7505501508712769, 0.9831886291503906, -...
def _ _ init _ _ ( _ _ self _ _, *, location : str, id : optional [ str ] = none, kind : optional [ str ] = none, name : optional [ str ] = none, option : optional [ str ] = none, tags : optional [ mapping [ str, str ] ] = none, type : optional [ str ] = none ) : pulumi. set ( _ _ self _ _, " location ", location ) if ...
[ -0.4372292459011078, 0.13173162937164307, 0.8087103366851807, -0.5460439920425415, 0.9728555679321289, 0.16401547193527222, -1.646389126777649, 0.19454719126224518, 0.3425014615058899, 0.2896310091018677, -1.2862646579742432, 0.2714262008666992, 0.7299415469169617, -0.7410855889320374, -...
def game _ 0 ( ) : print ( " " " * would you choose to accept your mission? a : accept b : refuse " " " ) choice _ 1 = input ( " \ t > " ) if'ac'in choice _ 1 : print ( " \ f " ) print ( f " " " the world is counting on you to save! good luck agent { user _ name }!! " " " ) import time time. sleep ( 2 ) print ( " \ f "...
[ 0.8545339107513428, 0.03233085945248604, 1.0661263465881348, 0.7390849590301514, -0.0006986823864281178, 0.752159595489502, 0.46473225951194763, -0.7387272119522095, -0.5108593106269836, 1.070355772972107, 0.07701008021831512, 0.718953549861908, -0.44277942180633545, 0.8791146278381348, ...
async def get _ properties _ full _ for _ lst ( entities, lang ='en') : # get results for all sorts of properties reqs = [ get _ literals _ full _ for _ lst ( entities ), get _ objects _ full _ for _ lst ( entities ), # get _ strings _ for _ lst ( entities, lang ), # values are already included in get _ literals ] part...
[ -0.35200217366218567, -0.3033416271209717, 0.5035436153411865, -0.5174980163574219, -0.1489521861076355, -0.3997308611869812, -1.218937873840332, -0.3560665547847748, -0.891488254070282, 0.2171381562948227, -0.234394833445549, -0.4731793701648712, 0.592104971408844, 0.5637218356132507, 0...