text
stringlengths
25
2.19k
embedding
listlengths
768
768
def dag _ full ( p, w _ min = 1, w _ max = 1, return _ ordering = false, random _ state = none ) : rng = np. random. default _ rng ( random _ state ) # build a triangular matrix a = np. triu ( np. ones ( ( p, p ) ), k = 1 ) weights = rng. uniform ( w _ min, w _ max, size = a. shape ) w = a * weights # permute rows / co...
[ -0.3015252351760864, 0.9684677720069885, 0.8574127554893494, -0.2902970314025879, -1.0680140256881714, -0.25971007347106934, 0.2695073187351227, 0.577409029006958, 0.7874897122383118, 0.08366197347640991, 0.40449920296669006, 0.05539672449231148, 0.41879144310951233, -0.19822725653648376, ...
def parse _ prefix ( self, prefix, kind ) : self. prefix = prefix # no prefix. if prefix = ='' : self. chrom ='' self. transcript ='' self. gene ='' return # transcript and gene given with parens. # example : nm _ 007294. 3 ( brca1 ) : c. 2207a > c match = re. match ( " ^ (? p < transcript > [ ^ ( ] + ) \ ( (? p < gene...
[ -0.18009814620018005, -0.8597714304924011, 0.8016877770423889, 0.3828650414943695, -0.42557939887046814, -1.2615565061569214, -0.3766874670982361, -0.351986825466156, -0.10089338570833206, 0.01772257685661316, -0.19232895970344543, 1.2016637325286865, 0.23890231549739838, 0.661162197589874...
def translate ( sequence, start, end, codon _ table ) : tranlsated = [ ] for i in range ( start, end, 3 ) : codon = sequence [ i : i + 3 ] if codon in codon _ table : aa = codon _ table [ codon ] # get the codon's matching amino acid by codon table dictionary else : aa ='x'# ignore frameshifts tranlsated. append ( aa )...
[ 0.14296551048755646, -0.21193411946296692, 0.5362496972084045, 0.16643330454826355, -0.433389812707901, -0.8137804269790649, -0.9164647459983826, 0.9424492716789246, 0.065394826233387, 1.2269567251205444, -1.5339932441711426, -0.31312382221221924, 0.12680873274803162, -0.8849108219146729, ...
def cfn _ resource _ type _ name ( cls ) - > str : return jsii. sget ( cls, " cfn _ resource _ type _ name " )
[ 0.10402005910873413, 0.342154860496521, 0.4496711194515228, 0.14245490729808807, 0.5714231729507446, 0.5732086896896362, 1.1970590353012085, -0.4997215270996094, -0.0980454832315445, -0.5507497787475586, -0.5355690717697144, -0.6584934592247009, 0.7136155962944031, 0.3030480742454529, 0....
def _ vectors ( self ) : if self. settings ['mode'] = ='relative': position = self. _ table. get _ status ( ) [ 1 ] else : position = ( 0, 0 ) vectors = [ ] for range _, offset in zip ( self. settings ['extent'], position ) : start, stop, step = range _ if start = = stop : vec = np. array ( [ start ], dtype = np. float...
[ -0.7703959345817566, -0.20643910765647888, 0.6046015024185181, -0.22752226889133453, -0.05697370320558548, 0.641366183757782, 0.16257335245609283, -0.13331986963748932, -0.3155262768268585, 0.6998797655105591, 0.2340041548013687, 0.2809680104255676, 0.8345100283622742, 0.09165303409099579,...
def test _ get _ login _ page ( self ) : page = self. client. get ( reverse ( " login " ), follow = true ) self. assertequal ( page. status _ code, 200 ) self. asserttemplateused ( page, " login. html " )
[ 0.16337241232395172, 0.3526281416416168, 0.498561829328537, 0.23124706745147705, 0.5245592594146729, 0.6245507001876831, -0.1913079172372818, 0.34251081943511963, 0.2921365797519684, -0.3273065388202667, -0.07738573849201202, -0.10677529126405716, 0.22950586676597595, -0.003229890484362840...
def transactions ( self ) : if len ( self. _ _ transactions ) = = 0 : self. _ _ transactions = reduce ( lambda x, y : x + y, [ b. transactions for b in self. _ _ blocks ] ) return self. _ _ transactions
[ 0.29747533798217773, 0.22973434627056122, 0.7147383093833923, 0.2242029756307602, 0.35141628980636597, -0.9060539603233337, 0.8047488927841187, -0.4747616648674011, 0.7933331727981567, 0.1317344754934311, -0.7607313394546509, -0.6648645401000977, -0.6306467652320862, 0.49654489755630493, ...
def _ create _ db ( self ) : try : db _ list = self. client. get _ list _ database ( ) if not any ( d ['name'] = = self. db _ name for d in db _ list ) : self. client. create _ database ( self. db _ name ) log _ event ( self. cfg, self. module _ name,'','info ','database'+ self. db _ name +'successfully created') retur...
[ -0.8815094828605652, 0.8429924249649048, 0.6858546137809753, 0.1989099383354187, 1.081357717514038, 0.7348921298980713, 0.07132550328969955, -0.25940048694610596, 0.12100708484649658, 0.2533944547176361, -0.7108724117279053, -0.6773957014083862, -1.384078025817871, 0.7674605250358582, 0....
def net _ input ( self, x _ train _ ) : return np. dot ( x _ train _, self. weight [ 1 : ] ) + self. weight [ 0 ]
[ -0.8220765590667725, -0.21413326263427734, 0.6111143231391907, -0.032715145498514175, 0.2589574456214905, 0.5965853929519653, 0.5364904999732971, -0.711972713470459, -0.2018611878156662, -0.27494946122169495, -0.41018781065940857, 0.20402850210666656, 0.4300090968608856, -0.312531977891922...
def check _ memory ( self, memory _ rtl _ path, memory _ to _ check, digit _ number ) : # internal variables var _ name = " memory _ to _ check " # convert memory _ to _ check to a string for tcl check memory _ to _ check _ str = " \ " { " for i in range ( 0, len ( memory _ to _ check ) ) : # add space str only on data...
[ 0.4246102273464203, -0.04112136736512184, 0.736414909362793, -0.5545549988746643, -0.1691899448633194, 0.06583326309919357, 0.39562737941741943, -0.09621187299489975, -0.5335254073143005, 0.6848037242889404, 0.2161889374256134, 0.553523063659668, 0.028394773602485657, 1.0140787363052368, ...
def handle _ scal _ buffer ( self, grid, method, exchange _ type, use _ cuda, before _ sending = false, after _ receiving = false, gpudirect = false ) : # define region that is copied to or from the buffer # depending on the method used. if method = ='replace': nz _ start = self. n _ guard nz _ end = 2 * self. n _ guar...
[ 0.2514914572238922, 0.9296536445617676, 0.9500628113746643, 0.15675000846385956, -0.12094070017337799, 0.06318321824073792, 0.31281912326812744, -0.9634509086608887, 0.33554890751838684, 0.11980879306793213, 0.1632165014743805, 0.8613248467445374, -0.6408952474594116, 0.48442012071609497, ...
def network _ disassociate ( context, network _ id ) : return impl. network _ disassociate ( context, network _ id )
[ -0.5039339661598206, -0.11105842888355255, 0.01934419572353363, -0.5295066833496094, 0.4272259771823883, -0.3744434416294098, 0.15922445058822632, -0.15192082524299622, 0.8054159879684448, 0.036382079124450684, -0.25838711857795715, -0.6931836009025574, -0.30172908306121826, -0.03668118268...
def _ get _ auto _ sample ( ndim, gradient ) : if ndim < 10 : sample ='unif'elif 10 < = ndim < = 20 : sample ='rwalk'else : if gradient is none : sample ='rslice'else : sample ='hslice'return sample
[ 0.2203042358160019, 0.15100640058517456, 0.43722355365753174, 0.11289441585540771, -0.2115810215473175, 0.08249711990356445, 0.5108559131622314, -0.694088876247406, -0.3181234300136566, -0.007859183475375175, -0.013907588087022305, 0.6243584752082825, -0.259087473154068, -0.045293509960174...
def period _ range ( start = none, end = none, periods : int | none = none, freq = none, name : hashable | none = none, ) - > periodindex : if com. count _ not _ none ( start, end, periods )! = 2 : raise valueerror ( " of the three parameters : start, end, and periods, " " exactly two must be specified " ) if freq is n...
[ -1.152057409286499, -0.01869962364435196, 0.5577465891838074, 0.3319126069545746, -0.8417237997055054, 0.29758673906326294, -0.015342865139245987, -0.1619156450033188, -0.04579852148890495, -0.2548557221889496, -0.04703614488244057, 1.218623399734497, -0.5169660449028015, -1.05456042289733...
def destroy ( self, then = none ) : with self. _ _ rlock : if not self. _ _ valid : raise invalidhandle ('asked to destroy handle, but it was already destroyed') if then : self. _ _ destroy _ callbacks. append ( then ) self. _ _ request _ invalidation = true if 0 = = self. _ _ use _ count : self. _ _ destroy ( )
[ -0.18103773891925812, -0.03907128795981407, 0.529636025428772, 0.6083144545555115, 0.6821013689041138, 0.44174423813819885, 0.2748558819293976, 0.2099340856075287, -0.13333240151405334, -1.586355447769165, -0.20720623433589935, -0.32012638449668884, -1.4194914102554321, 0.7850255966186523,...
def test _ write ( self ) : temp _ file = tempfile. mkstemp ( ) [ 1 ] try : with open ( temp _ file,'w +') as fh : self. new _ manifest. write ( fh ) tools. eq _ ( self. new _ manifest, manifest ( temp _ file ) ) finally : os. unlink ( temp _ file )
[ 0.3813852369785309, -1.3038026094436646, 0.4123997688293457, 0.3135005235671997, 0.52634197473526, 0.1162438616156578, 0.14605268836021423, 0.724534273147583, -0.18427258729934692, -0.1268736869096756, -0.6202026605606079, -0.40121781826019287, -0.15091204643249512, 0.23173190653324127, ...
def padhexeven ( string ) : if ( len ( string ) % 2 ) : return'0'+ string return string
[ 0.07047580927610397, -0.15704962611198425, 0.29735565185546875, -0.7175925374031067, 0.4276483356952667, 1.1204944849014282, -0.7292559742927551, 0.7516229748725891, 0.3211307227611542, -0.2597024738788605, 0.6236037611961365, -0.41684022545814514, -0.7323711514472961, 0.9758285880088806, ...
def reverse _ string ( input _ string ) : print ( input _ string [ : : - 1 ] )
[ 0.059577468782663345, -0.2531282305717468, 0.2917102873325348, 0.22099748253822327, 0.900120735168457, 0.3626576066017151, 0.020490098744630814, 0.3751607835292816, -1.412079930305481, -0.20346547663211823, 0.3958008885383606, 1.664982557296753, -0.9600551128387451, -1.8559308052062988, ...
def scale _ image ( self, factor ) : self. scale _ factor * = factor width = self. scale _ factor * self. width ( ) height = self. scale _ factor * self. height ( ) if self. tmp _ path! ='' : path = self. tmp _ path else : path = self. path pix _ max = qpixmap ( path ) self. setpixmap ( pix _ max. scaled ( width, heigh...
[ -0.8020380735397339, -0.9829238057136536, 0.5382653474807739, -0.4351223409175873, -0.5595934391021729, 0.38183271884918213, -0.3459230959415436, -0.04105565324425697, 0.36702239513397217, -0.026670362800359726, 0.195260688662529, 0.0039731827564537525, 0.15297859907150269, 1.4496639966964...
def _ _ init _ _ ( _ _ self _ _, *, id : str, name : str, private _ link _ service _ connection _ state :'outputs. privatelinkserviceconnectionstateresponse ', provisioning _ state : str, type : str, identity : optional ['outputs. identityresponse'] = none, location : optional [ str ] = none, private _ endpoint : optio...
[ -0.5124934315681458, -0.5117831826210022, 0.5787891149520874, -0.1694112867116928, 0.6102381348609924, -0.16790954768657684, -0.945289671421051, 0.08471211045980453, 1.0369292497634888, -0.11202576756477356, -0.9431142807006836, 0.30698445439338684, 0.14604626595973969, -0.7579665184020996...
def reinit _ song ( song : song, playlist _ numbering : bool = false ) - > song : data = song. json new _ data = song. from _ url ( data [ " url " ] ). json data. update ( ( k, v ) for k, v in new _ data. items ( ) if v is not none ) if data. get ( " song _ list " ) : # reinitialize the correct song list object if song...
[ -0.7292305827140808, -1.0294371843338013, 0.7340636849403381, -0.3774690628051758, -0.08667052537202835, -0.2342878133058548, -0.4173862040042877, 0.5586023926734924, 0.2075793594121933, -0.19807855784893036, -1.0616976022720337, 0.3837760388851166, 0.269120991230011, 0.13306322693824768, ...
def setundone ( self, label ) : rowid = self. lookuprowid ( label ) self. database. updatecompletionstatus ( rowid, todotask. task _ undone )
[ -0.8441348671913147, -0.06077311187982559, 0.6989122629165649, -0.29458749294281006, 0.5328725576400757, 0.3204575777053833, 0.6625307202339172, 0.8309401869773865, 0.004993377719074488, 0.5145337581634521, -0.9890851378440857, -0.3549076318740845, 0.3604755103588104, -0.24890843033790588,...
def getkitlist ( self, session ) : self. getlogger ( ). debug ('retrieving all available kits') return session. query ( kits ). all ( )
[ -0.4913743734359741, 0.1988401710987091, -0.04769992083311081, 1.140070915222168, -0.02429136261343956, -0.15868708491325378, -0.8687956929206848, 0.6297451853752136, 0.5295172929763794, -0.34178468585014343, 0.8936715126037598, 0.16439493000507355, 0.585504412651062, 0.7550585865974426, ...
def test _ complete ( self ) : # make all legal cards full _ deck = [ ] for suite in suites : for i in range ( 1, 14 ) : full _ deck. append ( card ( i, suite ) ) self. asserttrue ( len ( full _ deck ) = = n _ cards ) # check that a deck contains all legal cards only deck = deck ( ) visited _ deck = [ ] for card in dec...
[ 0.5622239112854004, 0.6718709468841553, 0.7847118377685547, -0.21821095049381256, 0.538710355758667, 0.14952245354652405, 0.4592067003250122, 0.09932497143745422, 0.7400194406509399, -0.21797943115234375, -0.45960894227027893, -0.8563200235366821, 0.07928593456745148, 0.21915322542190552, ...
def getrefexpnames ( self ) : refexps, refexpsco = getseqassignrefexperiments ( self. project ) # expnames = set ( [ e. name for e in refexps ] ) expnames = set ( [ e. name for e in refexps ] + seqnoesyexperiments ) expnamesco = set ( [ e. name for e in refexpsco ] ) return expnames, expnamesco
[ -0.08177319914102554, 0.04824769124388695, 0.6728477478027344, -0.46504369378089905, -0.1362907737493515, 0.22860470414161682, -0.08274753391742706, 0.4408224821090698, 0.7906783819198608, 1.3986177444458008, -0.23267139494419098, -0.09731225669384003, 0.004499170463532209, 0.7446212172508...
def _ run ( self, * params ) : debug ( params ) cmd = [ _ dynobj _ command ] for param in params : cmd. append ( param ) if param = ='& &': cmd. append ( _ dynobj _ command ) else : _ validate _ token ( param ) cmd. extend ( ['| | ','echo ', _ error _ token ] ) debug (''. join ( cmd ) ) out, err = self. rexec ( cmd ) d...
[ -0.7559992671012878, -0.5792731642723083, 1.0483872890472412, 0.684466540813446, 0.3316578269004822, -0.6202080845832825, -0.23349188268184662, -0.06857393682003021, -0.7996969819068909, 0.0026949679013341665, 0.28026434779167175, 0.02202933467924595, -0.22896955907344818, 0.81754130125045...
def load _ problem ( self, problemid, problemdir ) : # self. problems. extend ( cvxproblem. read ( fileid, problemdir ) ) self. problems. append ( ( problemid, problemdir ) )
[ 0.5398691892623901, -0.5220454931259155, 0.18316689133644104, 0.023377379402518272, 0.23726212978363037, 0.7048609852790833, -1.2358301877975464, 0.2904374897480011, 0.9783031940460205, -0.7004650831222534, -0.17270444333553314, 0.10611880570650101, -0.6731410622596741, 0.09444478899240494...
def write _ rows _ as _ csv _ to _ stream ( rows : t. union [ t. sequence [ t. list [ str ] ], t. iterator [ t. list [ str ] ] ], columns _ definition : column _ definition _ type, stream : t. textio, delimiter _ char : str ='\ t ', ) : if isinstance ( columns _ definition, str ) : cell _ definitions = parse _ column _...
[ -0.13971416652202606, 0.1564493477344513, 0.7204471230506897, 0.9369922876358032, 0.03147406876087189, -1.1239030361175537, -0.4775889813899994, 0.2827460467815399, -0.44196972250938416, 0.23329412937164307, -0.10388261824846268, 0.5948442816734314, 0.6655908823013306, 0.9654515385627747, ...
def area ( self ) : return self. _ _ width * self. _ _ height
[ -0.53153395652771, -1.0122642517089844, 0.558817982673645, -0.4826383590698242, 0.08752868324518204, 0.5343603491783142, 0.7013781070709229, -0.027457786723971367, 0.7767553329467773, -0.7128666043281555, 0.9913671016693115, 0.05383898690342903, -0.2666228115558624, 1.069167137145996, 0....
def halign ( s, t ) : slen = len ( s ) tlen = len ( t ) minscore = slen + tlen + 1 for upad in range ( 0, tlen + 1 ) : upper = ['_'] * upad + s + ( tlen - upad ) * ['_'] lower = slen * ['_'] + t score = hamming ( upper, lower ) if score < minscore : bu = upper bl = lower minscore = score for lpad in range ( 0, slen + 1...
[ -0.37584415078163147, -0.6356686949729919, 0.6740355491638184, -0.5358408093452454, -0.913650393486023, 0.3726217448711395, -0.2493300437927246, 0.6635012030601501, -0.11962725967168808, 0.8151084184646606, -0.9961039423942566, 0.3438319265842438, 0.21013407409191132, -0.0358138233423233, ...
def purge ( self ) : result = requests. post ( " { } / purge / ". format ( self. root _ url ), headers = {'content - type':'application / json'}, ) self. assertequal ( result. status _ code, 200 ) return result. json ( )
[ -0.11629997193813324, -0.2680799961090088, 0.5113859176635742, 0.549239993095398, 0.800844132900238, -0.4722954332828522, -1.6441794633865356, -0.98747318983078, -0.014056678861379623, 0.05527608096599579, -0.7882936596870422, 0.8569359183311462, -0.27133551239967346, -0.029926082119345665...
def add _ embryo _ life _ stage _ acc ( self, specimen _ df : dataframe ) : efo _ acc _ udf = udf ( self. resolve _ embryo _ life _ stage, stringtype ( ) ) specimen _ df = specimen _ df. withcolumn ( " developmental _ stage _ acc ", efo _ acc _ udf ( " _ stage " ) ) specimen _ df = specimen _ df. withcolumn ( " develop...
[ -0.1668504774570465, -0.09132755547761917, 0.6286063194274902, 0.11676626652479172, 0.26291847229003906, -0.03205825388431549, -0.027569998055696487, -0.23113983869552612, 0.06968683004379272, -0.10419849306344986, 1.0862128734588623, -0.037776097655296326, 1.7151108980178833, 0.2883603572...
def on _ delete _ article _ pressed ( self ) : # get a set of the articles currently selected article _ ids = self. article _ list _ widget. get _ selection ( ) # if there is no selection then do nothing if article _ ids = = set ( ) : return # if there is a selection create a dialog window to ask for deletion confirmat...
[ 0.502849817276001, -0.18919575214385986, 0.7718437910079956, -0.22735705971717834, 0.11866271495819092, -0.3189952075481415, 0.7709381580352783, 0.25422394275665283, 0.32704031467437744, -0.02761993743479252, -0.11357578635215759, 0.35275304317474365, -0.23139606416225433, 0.93640100955963...
def write _ task ( self, taskdetails ) : self. db. insert ( taskdetails )
[ -0.636929452419281, 1.054579496383667, 0.30022993683815, 0.10626062750816345, 1.4848443269729614, 1.2057329416275024, 0.40295150876045227, 0.712877631187439, -0.8889049291610718, 0.288894385099411, -1.5680961608886719, -0.8188260793685913, -0.6046262979507446, 0.2679796516895294, -0.7517...
def gross _ predictions ( ) : return render _ template ( " scatter. html " )
[ -0.0032030281145125628, 0.6340230107307434, 0.2625754177570343, 0.276613712310791, 0.2748012840747833, 1.0208874940872192, -0.02349981851875782, 0.6110545992851257, -1.0425387620925903, 0.3323557376861572, 1.0426576137542725, 0.0394185334444046, 0.5843409895896912, 0.47613945603370667, -...
def _ _ init _ _ ( self ) : self. _ config = [ ]
[ -0.5688170194625854, -0.09329240024089813, 0.1538822203874588, 0.17186239361763, 0.44894757866859436, -0.4485749304294586, -0.2866755425930023, 0.958907425403595, -0.5729624032974243, 0.17812716960906982, -1.6549186706542969, -0.3132467269897461, -0.07063312083482742, 1.2758833169937134, ...
def test _ user _ cannot _ register _ twice ( self ) : res = self. client ( ). post ( self. full _ url ('auth / signup'), data = json. dumps ( self. data [ " user " ] ), content _ type ='application / json') res = self. client ( ). post ( self. full _ url ('auth / signup'), data = json. dumps ( self. data [ " user " ] ...
[ -0.48223018646240234, 1.2977867126464844, 0.6003310084342957, 0.2333819419145584, 0.8930774331092834, 0.5120073556900024, 0.31690844893455505, -0.5801326036453247, -0.46414321660995483, 0.12285040318965912, -1.1251816749572754, 0.385172963142395, -0.05214616656303406, 0.6405754685401917, ...
def print _ tables ( self ) : # execute show tables self. cursor. execute ( " show tables " ) self. connection. commit ( ) # set the key for result. key = " tables _ in _ { } ". format ( self. db ) results = self. cursor. fetchall ( ) print ( " databases : " ) for i, result in enumerate ( results ) : print ( " \ t { } ...
[ 0.10492236167192459, 0.8131229281425476, 0.43962472677230835, 0.1800050437450409, -0.03316269442439079, 0.773540735244751, 0.605583667755127, 0.6294746994972229, -0.8110240697860718, 0.205266073346138, -0.3116532862186432, 0.6998658776283264, -0.5848410725593567, 0.6634968519210815, -0.0...
def test _ components ( self ) : hdfs, retcode = self. hdfs. run ( " pgrep - a java " ) yarn, retcode = self. yarn. run ( " pgrep - a java " ) slave, retcode = self. slave. run ( " pgrep - a java " ) hive, retcode = self. hive. run ( " pgrep - a java " ) #. namenode needs the. to differentiate it from secondarynamenode...
[ -0.29758480191230774, -0.6973572969436646, 0.4680068790912628, -0.7442449927330017, 1.168861746788025, 0.7060914039611816, -0.027250785380601883, 0.3106275200843811, -0.4586234986782074, -0.712751567363739, -0.22044941782951355, 0.4856422245502472, -0.23416239023208618, 0.7734003663063049,...
def safe _ label ( name ) : # convert a - > a as isalpha ('a') is true value = unicodedata. normalize ('nfkd ', name ) value = value. encode ('ascii ','ignore'). decode ('utf - 8') # remove non - alphanumeric chars value =''. join ( char. lower ( ) if char. isalnum ( ) else'_'for char in value ) # add leading " _ " if ...
[ -0.3968657851219177, -0.5611581802368164, 0.6810386180877686, -1.2357057332992554, -1.7289780378341675, 0.6692224144935608, -0.8711020946502686, -0.9660407304763794, 0.917722225189209, 1.143865704536438, 0.067589171230793, -0.2738516926765442, 0.2616336941719055, -0.5185880064964294, 0.6...
def predict _ proba ( self, x ) : return logisticregression. predict _ proba ( self = self, x = self. transform _ input ( x, force = false ) )
[ -0.36352455615997314, -0.013804113492369652, 0.5269662141799927, 0.21857687830924988, -0.25776612758636475, 0.13539206981658936, -0.7565969228744507, -0.4476471543312073, 0.4636668264865875, -0.2547075152397156, -0.4972037374973297, 0.5961433053016663, -0.6958747506141663, -0.9373008012771...
def plot _ simple _ bmks ( simples ) : if len ( simples ) : plt. clf ( ) data = [ ] labl = [ ] for bmk in simples : labl. append ( bmk ['experiment _ name'] ) data. append ( np. array ( bmk ['timings'] ) ) plt. title ( simples [ 0 ] ['benchmark _ name'] ) plt. boxplot ( data ) plt. ylabel ( bmk ['time _ type'] ) plt. x...
[ 0.08139567822217941, 1.0813344717025757, 0.6745253205299377, 0.013448715209960938, -0.21724745631217957, 0.26448488235473633, 0.02021024189889431, -0.14759181439876556, 0.21543532609939575, 0.2824045419692993, -0.542253851890564, 0.6901684999465942, -0.314572274684906, 0.9486836194992065, ...
def calc _ ds ( h ) : n = h [ 0 ]. size dh = [ ] if n > = 1 : dh. append ( h [ 0 ]. copy ( ) ) if n > = 2 : dh. append ( np. zeros ( ( n * ( n - 1 ) / 2 ) ) ) k = 0 for i in range ( n - 1 ) : for j in range ( i + 1, n ) : dh [ 1 ] [ k ] = h [ 1 ] [ i, j ] - dh [ 0 ] [ i ] - dh [ 0 ] [ j ] k + = 1 if n > = 3 : dh. appen...
[ -0.7458453178405762, 1.2793395519256592, 0.7789876461029053, 0.7558443546295166, -0.21588391065597534, 0.09734202921390533, 0.7327874302864075, 0.44553881883621216, 0.4947933852672577, -0.1288778930902481, -0.5561749339103699, -0.0753658264875412, 0.4605593979358673, 0.538967490196228, 0...
def re _ introduce ( self, baton ) : # used in ` save `. location, was _ touched, was _ range, was _ writeable = baton if was _ touched : self. _ touched. add ( location ) elif location in self. _ touched : self. _ touched. remove ( location ) if was _ range is not none : self. _ range [ location ] = was _ range elif l...
[ -0.11768900603055954, 0.10190238058567047, 0.6586488485336304, -0.8185069561004639, 0.14225532114505768, 0.3769562542438507, 0.9761767983436584, 0.8604530096054077, -0.1978520154953003, 0.12315815687179565, -0.6307264566421509, 0.6435135006904602, -1.0101603269577026, -0.33364784717559814,...
def process ( self ) : if not self. datasets : raise aspecd. exceptions. missingdataseterror super ( ). process ( ) history _ record = self. create _ history _ record ( ) for dataset in self. datasets : dataset. append _ history _ record ( history _ record )
[ 0.9205812811851501, 1.124760389328003, 0.4090628921985626, -0.20965583622455597, 1.3869110345840454, 0.49463680386543274, -0.09768390655517578, 0.75026935338974, 0.3749677240848541, -0.15243329107761383, 0.558009684085846, 0.5995849370956421, 0.9517396092414856, 1.168440341949463, 0.6070...
def check _ cpu _ on _ node ( node _ name ) : idle _ status = _ get _ cpu _ idle _ status ( node _ name ) logger. info ( " idle status : % s ", idle _ status ) while float ( idle _ status ) < 20. 0 : logger. info ( " cpu usage is above 80 %, current idle status : { idle _ status } ". format ( idle _ status = idle _ sta...
[ -0.0541064590215683, 0.155806764960289, 0.5284220576286316, -0.8634238839149475, -0.029013918712735176, -0.18005697429180145, -0.043576013296842575, -0.38982701301574707, -0.4809156060218811, 0.5520024299621582, -0.08944340795278549, 1.0413838624954224, -0.1109243631362915, 0.3744222819805...
def cert _ info ( self, cert ) : return self. _ cfssl ( ['certinfo ','- cert ','cert. pem'], files = {'cert. pem': cert } )
[ 0.06918146461248398, 0.22420883178710938, 0.3493378162384033, 0.09456218034029007, -0.753079354763031, -0.16002334654331207, -0.2456783950328827, -0.35140103101730347, -0.3347300589084625, -0.3556262254714966, -0.8571320176124573, -1.225464105606079, 0.32933729887008667, 0.4215584993362427...
def get _ geocent _ time _ with _ uncertainty ( geocent _ time, uncertainty ) : geocent _ time _ prior = get _ time _ prior ( geocent _ time, uncertainty ) return geocent _ time _ prior. sample ( )
[ 0.739400327205658, -0.5588833689689636, 0.6378816962242126, 0.004100733902305365, 0.01522142719477415, 0.7857057452201843, -0.9383068680763245, -0.37432631850242615, 0.11614887416362762, 0.7854831218719482, 0.9925448298454285, 0.3024851977825165, -0.18165439367294312, -0.13236172497272491,...
def test _ progress _ with _ one _ weighted ( self ) : task1 = statussimulatingtaskproxy ( ) task2 = statussimulatingtaskproxy ( ) ctask = taskcontainer ('tester') ctask. add _ task ( task1, 80 ) ctask. add _ task ( task2 ) self. assertequal ( ctask. progress ( ), 0,'both task progresses are zero, container progress sh...
[ 0.5263926982879639, 0.6803955435752869, 0.7780198454856873, 0.5005885362625122, 0.1327640265226364, 0.9557420015335083, 0.633963942527771, -0.38640719652175903, -0.6121232509613037, 0.033491965383291245, -0.016062887385487556, -0.8151018619537354, -0.034537576138973236, 1.415151596069336, ...
def cantile ( self ) : return false
[ 0.5092834830284119, -0.07523933053016663, 0.4257824122905731, 1.4037728309631348, -1.1612626314163208, 1.196195125579834, 0.6664061546325684, 0.743685781955719, -0.647050142288208, -0.5330164432525635, 0.07256662845611572, -0.3168601989746094, -1.347861409187317, 0.5799075365066528, -1.7...
def test _ qlibrary _ instantiate _ circle _ raster ( self ) : design = designs. designplanar ( ) try : circleraster except exception : self. fail ( " circleraster failed " ) try : circleraster ( design, " my _ name " ) except exception : self. fail ( " circleraster ( design, \ " my _ name \ " ) " ) try : circleraster ...
[ -0.1256670206785202, -0.07051016390323639, 0.5798941254615784, -0.9899727702140808, -0.07278797030448914, 1.0480822324752808, 0.8631293177604675, -1.0328599214553833, 0.053809549659490585, -0.6474527716636658, -0.5288118124008179, -0.7321192026138306, -0.6320926547050476, 0.086166724562644...
def getinitialstate ( self ) - > int : return self. initial _ state
[ 0.585582435131073, -0.5350216627120972, 0.30090445280075073, 0.11496404558420181, 0.0951169803738594, 0.1688598245382309, 0.5156238079071045, 1.0263954401016235, 0.3154529631137848, -0.9784415364265442, -0.5201455354690552, 0.5768672823905945, -0.3455095887184143, -0.12284698337316513, 0...
def get _ csrf _ token ( self ) : return flask. request. cookies. get ( " csrf _ token " )
[ 0.36748096346855164, -0.29883822798728943, 0.30211371183395386, 1.5519771575927734, 0.5486013889312744, -0.9293333292007446, -0.2729995548725128, 0.47884565591812134, -0.294144868850708, -1.1665257215499878, 0.2751826345920563, 0.1740346997976303, 0.4380459189414978, -0.05245745927095413, ...
def fake _ ethermint _ files ( tmp _ files _ dir, monkeypatch ) : testsdir = os. path. dirname ( os. path. realpath ( _ _ file _ _ ) ) dest = join ( tmp _ files _ dir, " ethermint ", " priv _ validator. json. { } " ) if not os. path. exists ( dirname ( dest ) ) : os. makedirs ( dirname ( dest ) ) dest _ datadir = join ...
[ -1.0120573043823242, -0.09877870976924896, 1.1362223625183105, -0.5919291377067566, 0.18059420585632324, 0.7341933846473694, 0.07282073050737381, -0.5591209530830383, 0.09083917737007141, -0.4708189368247986, -0.8085883259773254, 0.11064966022968292, -0.3529127538204193, 0.3124102354049682...
def test _ prediction _ value ( self ) : # given the above static data, excel calculated those values : # 57. 387372836332 + 0. 251764995965033 * ( 251 + 5 ) = 121. 84 # 57. 387372836332 + 0. 251764995965033 * ( 251 + 10 ) = 123. 1 self. assertequal ( round ( predict _ value ( lr, num _ data _ points, 5 ), 2 ), 121. 84...
[ 0.2683787941932678, 0.059084948152303696, 0.38313838839530945, -0.18817058205604553, -0.13861200213432312, 0.6009731888771057, 0.4666493237018585, 0.29002615809440613, -0.6474586129188538, -0.32226189970970154, 0.008466515690088272, 0.16347722709178925, 0.7189050912857056, 0.39713847637176...
def track ( self, video _ paths : list, out _ dir : str ) : for video _ path in video _ paths : # # # # # # # # # # # # # # # # # * detect faces # # # # # # # # # # # # # # # # faces _ dict = self. detect ( video _ path ) # # # # # # # # # # # # # # # # # # # # * associate faces # # # # # # # # # # # # # # # # # # # tr...
[ -0.5908199548721313, -0.5077131390571594, 0.8353012800216675, 0.6669532656669617, 0.16802042722702026, 0.3868188261985779, 1.45654296875, -0.5189712643623352, -0.5880867838859558, 0.323513001203537, -0.4811864197254181, -0.04468010738492012, 0.6533163785934448, 0.5724460482597351, -0.092...
def instance _ get _ all _ by _ host ( context, host ) : return impl. instance _ get _ all _ by _ host ( context, host )
[ -0.340901643037796, 0.37761250138282776, 0.3887934982776642, 0.7362982630729675, -0.1316601037979126, 0.1540881097316742, -0.6908661127090454, -0.07674317061901093, -1.1629222631454468, 0.264617919921875, -0.45178863406181335, 0.7738204002380371, -0.1988144814968109, 0.7688239216804504, ...
def print _ help ( self ) : keys = operations. keys ( ) print ( " = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = " ) print ( " colored lines in main panels : " ) print ( " gray : wavelength has not been assigned to this detection " ) print (...
[ 0.6566689610481262, -0.810390293598175, 1.2874771356582642, -0.4648497998714447, -0.28674325346946716, 0.5310140252113342, 1.324561357498169, -0.46639284491539, -0.45044437050819397, 0.18187756836414337, -0.5238213539123535, 0.026582658290863037, 0.18804998695850372, 0.6828351020812988, ...
def _ _ eq _ _ ( self, other ) : if not isinstance ( other, activitylog ) : return false return self. _ _ dict _ _ = = other. _ _ dict _ _
[ -0.40709516406059265, -0.6547911167144775, 0.6002324819564819, -0.29075250029563904, -0.8412341475486755, 0.5044642686843872, 0.3167087435722351, -0.8612518310546875, 1.0901585817337036, 0.1313023716211319, -0.4736320972442627, 0.3592955470085144, -0.2580674886703491, -0.42339688539505005,...
async def async _ setup _ platform ( hass, config, async _ add _ entities, discovery _ info = none ) : pass
[ 0.010762826539576054, 0.819839358329773, 0.453554630279541, 0.5206549763679504, 1.6721433401107788, -0.11685899645090103, 0.44867995381355286, 0.29492825269699097, -0.04785789176821709, 0.022963425144553185, -0.029573872685432434, -0.32599300146102905, 0.3116973042488098, 1.121485471725463...
def get _ radius ( self ) : return self. radius
[ 0.041431646794080734, -0.5940224528312683, 0.35738635063171387, 0.01803526282310486, 0.29924604296684265, 0.42520126700401306, 0.46793267130851746, -0.03486580401659012, -0.39985135197639465, -0.5925169587135315, -0.06410414725542068, 1.3592071533203125, -1.1105583906173706, 0.021795094013...
def calculate _ variance ( sequence _ list ) : m = len ( sequence _ list ) sequence _ means = { } sequence _ variance = { } for j, sequence in enumerate ( sequence _ list, 1 ) : n = len ( sequence ) sequence _ vector = list ( map ( create _ vector, sequence ) ) seq _ sum = sum ( sequence _ vector, counter ( ) ) sequenc...
[ -0.48568955063819885, -0.24751044809818268, 0.8658975958824158, -0.3088228106498718, -0.8452578186988831, -0.4322795271873474, 1.0824975967407227, 0.5200160145759583, 0.13797517120838165, 0.9359008073806763, -1.3592720031738281, -0.014180894009768963, -0.18136203289031982, 1.32076621055603...
def width ( self ) - > int : return self. _ df. width ( )
[ -0.6808660626411438, 1.106366753578186, 0.2624903619289398, 0.9796794056892395, 0.8422448039054871, -0.414706826210022, 0.8537729978561401, 0.33149537444114685, -0.3478274643421173, -2.0053136348724365, 0.6558873057365417, 0.20718826353549957, 0.002672348404303193, -0.5840068459510803, 0...
def long _ option ( self ) : return'- - % s'% self. name
[ 0.46401917934417725, 0.23218174278736115, 0.7339978814125061, -0.9294373393058777, 0.9201042056083679, 0.6609739065170288, -0.7111144065856934, -0.4070603847503662, 0.5429679155349731, 0.3296285569667816, -0.15695379674434662, 0.406902939081192, 1.2834734916687012, 0.12782855331897736, -...
def split _ sents _ stanford ( self, textpairs ) : sents1 = [ textpair. t1 for textpair in textpairs ] sents2 = [ textpair. t2 for textpair in textpairs ] split1 = self. segmenter. segment _ sents ( sents1 ). split ('\ n') split2 = self. segmenter. segment _ sents ( sents2 ). split ('\ n') rlist = [ ] for i in range ( ...
[ -1.2555838823318481, -0.44395527243614197, 0.7318335175514221, -0.504481852054596, -0.6590116024017334, 0.274404376745224, -0.016090381890535355, -0.020385852083563805, -0.34503695368766785, 1.2535425424575806, 0.30752837657928467, -0.3790430724620819, -1.320995807647705, 0.542960107326507...
def get _ entanglement _ length ( simname, coords _ loc = [ 3, 6 ], sidechain = false ) : coord, bs = extract. extract _ unwrapped ( simname, last _ only = true, boxsize = true ) coordinates = coord ['timestep _ 0'] rendsq = [ ] nc = len ( coordinates. mol. unique ( ) ) diff _ array = np. array ( [ ] ) for chain in ran...
[ -0.07550932466983795, 0.16879916191101074, 0.7376465797424316, -0.9557077288627625, -0.05350837856531143, -0.2219490259885788, 0.7294015884399414, 0.1774846464395523, 0.5884111523628235, 0.621058464050293, -0.10159853845834732, -0.05158529058098793, 0.06917546689510345, 0.12066001445055008...
def set _ focus ( self, * _ ) : self. search _ widget. ids. to _ search. focus = true
[ -0.873711109161377, 0.22962342202663422, 0.37146472930908203, -0.12504155933856964, 1.3544284105300903, 0.01556891668587923, 0.42781880497932434, -0.019860556349158287, -1.0075881481170654, -0.04137890413403511, -0.7285627722740173, 0.8351861834526062, -0.30454447865486145, -0.130018755793...
def add _ padding ( i, padding ) : if len ( i. shape ) = = 2 : h, w = i. shape padded = np. zeros ( ( h + 2 * padding, w + 2 * padding ), dtype = np. float32 ) padded [ padding : - padding, padding : - padding ] = i else : h, w, c = i. shape padded = np. zeros ( ( h + 2 * padding, w + 2 * padding, c ), dtype = i. dtype...
[ -0.06808517128229141, 0.4734167754650116, 0.7354952692985535, -0.5426339507102966, 0.0381343699991703, 0.8467128872871399, -0.16737815737724304, -0.5884285569190979, 0.4839338958263397, 0.4283295273780823, -0.031959932297468185, 0.3347763121128082, 0.070774607360363, 0.36347660422325134, ...
def volume _ data _ get _ for _ project ( context, project _ id, session = none ) : return impl. volume _ data _ get _ for _ project ( context, project _ id, session = session )
[ -0.15202048420906067, 0.08126875758171082, 0.23985888063907623, 0.061470478773117065, 0.8002181649208069, 0.011292115785181522, -0.9334943890571594, -0.9512102007865906, -0.20427991449832916, -0.180985227227211, 0.7723566889762878, 0.8219801187515259, 0.11411754786968231, -0.35750809311866...
def is _ absent ( self ) : return self. presence = = _ pres _ absent
[ -0.6141723990440369, -1.2946566343307495, 0.4462459087371826, 0.23424319922924042, -0.39504295587539673, 1.8574620485305786, -0.5415400266647339, -0.006878721062093973, 0.5120261311531067, 0.162993922829628, -0.05989047884941101, 0.8544554710388184, -0.9051098227500916, 0.6678258180618286,...
def clear ( self ) : self. contents = [ ]
[ -0.14034505188465118, -0.8569440245628357, 0.0807013288140297, -0.8438428044319153, -0.012613515369594097, 0.1334276646375656, -0.5158822536468506, -0.6506317257881165, -0.12231489270925522, -0.7340760231018066, 0.16641385853290558, 0.5247974395751953, 0.22228741645812988, 0.81165307760238...
def get _ imdbpersonid ( self, personid ) : name = getlabel ( personid,'% snames. index'% self. _ _ db,'% snames. key'% self. _ _ db ) if name is none : return none return self. name2imdbid ( name )
[ -1.5656826496124268, -0.8765769004821777, 0.41340842843055725, -0.34417518973350525, -0.9214028120040894, 0.03379582613706589, -0.4032360017299652, -0.5443910360336304, 0.9834253191947937, 0.8066648244857788, -0.11530175060033798, 0.1815001517534256, -1.7301393747329712, 0.9696885347366333...
def log ( text, array = none ) : if array is not none : text = text. ljust ( 25 ) text + = ( " shape : { : 20 } ". format ( str ( array. shape ) ) ) if array. size : text + = ( " min : { : 10. 5f } max : { : 10. 5f } ". format ( array. min ( ), array. max ( ) ) ) else : text + = ( " min : { : 10 } max : { : 10 } ". for...
[ 0.8629904389381409, -0.6426534652709961, 1.0216639041900635, -0.8521745800971985, -0.39345428347587585, 0.44874662160873413, -0.7608649730682373, -0.002477685920894146, 0.28753921389579773, 0.14602243900299072, -0.44602876901626587, 1.8136976957321167, -0.16404443979263306, 0.4325378239154...
async def async _ step _ select _ meter ( self, user _ input = none ) : errors = { } description _ placeholders = { " error _ info " : " " } if user _ input is not none : if not re. fullmatch ( r " [ a - za - z0 - 9 _ ] + ", user _ input [ conf _ meter _ id ] ) : errors [ conf _ meter _ id ] = " invalid _ meter _ id " ...
[ -0.20168505609035492, 0.10331331193447113, 0.6126374006271362, 0.34968799352645874, -0.31886863708496094, -0.5921499133110046, 0.6744041442871094, -0.2523898780345917, -0.26016974449157715, -0.3605214059352875, 0.2347872257232666, 0.7431563138961792, 0.05225078761577606, 0.8794942498207092...
def setup _ logging ( debug ) : logger = logging. getlogger ('ciserver') logger. setlevel ( logging. debug if debug else logging. info ) handler = logging. streamhandler ( sys. stdout ) fmt ='% ( asctime ) s % ( levelname ) s % ( name ) s % ( message ) s'handler. setformatter ( logging. formatter ( fmt ) ) logger. addh...
[ 0.2757238745689392, -0.6656026840209961, 0.7155122756958008, -0.5331054329872131, -0.244426891207695, -0.7084348797798157, -0.3116089403629303, -0.030444778501987457, -0.2604677379131317, -0.4952058792114258, -0.32140904664993286, -0.5494207143783569, -0.47512561082839966, 1.12984549999237...
def upload _ scan ( self, application _ id, file _ path ) : return self. _ request ('post ','rest / applications /'+ str ( application _ id ) +'/ upload ', files = {'file': open ( file _ path,'rb') } )
[ -0.06934137642383575, 0.0372442826628685, 0.40741968154907227, 0.7375602126121521, -0.05658161640167236, 0.07329773157835007, -0.4938774108886719, -0.8479664921760559, -0.44187527894973755, 0.2131674438714981, 0.1003609225153923, 0.3831968307495117, -0.9107959270477295, 0.05520490929484367...
def checkpoint _ metrics _ path ( checkpoint _ path, eval _ name, file _ name = none ) : checkpoint _ dir = os. path. dirname ( checkpoint _ path ) checkpoint _ name = os. path. basename ( checkpoint _ path ) if eval _ name : # this bit of magic is defined by the estimator framework, and isn't easy # to change. we only...
[ 1.0240827798843384, 0.03641289100050926, 0.5077731013298035, 0.5972678065299988, -0.13163986802101135, 1.046120047569275, 1.0194530487060547, 0.17205685377120972, -1.0078387260437012, 0.44261038303375244, 0.8113154172897339, -0.29004794359207153, 0.4133223593235016, 0.011344333179295063, ...
def chk ( self, alias, data, test ) : line _ to _ print = " chk [ { 0 } ] ( { 1 } { 2 } ) ". format ( alias, hex ( data ), test ) # + " ] ( " + hex ( data ) + " " + test + " ) \ n " self. scn _ line _ list. append ( line _ to _ print )
[ 0.9519215822219849, -0.20910142362117767, 0.4297434985637665, 0.09319716691970825, 0.7019412517547607, 0.4384306073188782, -0.45133039355278015, 1.0658633708953857, -0.1189996525645256, 0.05991494283080101, -0.24108630418777466, 1.2047332525253296, -0.005713113117963076, 0.5410033464431763...
def volume _ update ( context, volume _ id, values ) : return impl. volume _ update ( context, volume _ id, values )
[ -0.3555929958820343, -1.0056244134902954, 0.19667388498783112, -0.08732325583696365, 0.35273367166519165, -0.6082028150558472, -0.9492653608322144, 0.02165662869811058, 0.06333712488412857, 0.18112792074680328, -0.03651205822825432, 0.3286648392677307, -0.49547895789146423, -0.518881916999...
def fill _ search _ field ( self, input _ type : str, ride : dict ) - > none : rider = ride ['rider'] ride _ email = rider ['email'] ride _ name = f'{ rider [ " first _ name " ] } { rider [ " last _ name " ] }'ride _ phone = rider ['phone'] accepted _ types : dict = {'email': ride _ email,'name': ride _ name,'phone': r...
[ -0.18039360642433167, 1.356067419052124, 0.7455663084983826, -0.2557145059108734, 0.5344129800796509, 1.06285560131073, -0.09781123697757721, -0.8744055032730103, -0.914762020111084, -0.18375957012176514, -0.11259904503822327, 0.0161065012216568, -1.0696256160736084, 0.40811604261398315, ...
def schedule _ fix ( ) : schedule. clear ( )
[ 0.7654064297676086, -0.2831162214279175, 0.32217857241630554, 0.8747010231018066, -0.36508795619010925, -0.19580495357513428, -0.3390878736972809, 0.6446102261543274, -0.2894093692302704, 0.5331645607948303, -0.1015232503414154, 1.2179545164108276, 0.43021878600120544, -0.6681534647941589,...
def update _ csv _ file ( converted _ query, csv _ filename ) : path = path ( os. path. abspath ( _ _ file _ _ ) ) # get to base directory / p4 base _ dir = path. parent. parent list _ as _ string = list _ to _ string ( converted _ query ) print ( list _ as _ string ) tickets _ path = os. path. join ( base _ dir, csv _...
[ -0.5452450513839722, -1.3983526229858398, 0.6904445290565491, 0.16171160340309143, -0.11002326011657715, 1.1388102769851685, -0.10412969440221786, 0.9323675632476807, -0.024662170559167862, 0.08135730773210526, -0.3019119203090668, -0.24887418746948242, 0.11032798886299133, 0.0656691789627...
def winbio _ winbioregistereventmonitor ( jitter ) : ret _ ad, args = jitter. func _ args _ stdcall ( [ " sessionhandle ", " eventmask ", " eventcallback ", " eventcallbackcontext " ] ) raise runtimeerror ('api not implemented') jitter. func _ ret _ stdcall ( ret _ ad, ret _ value )
[ -0.4567911922931671, 0.11163103580474854, 0.3971412479877472, 1.1426851749420166, 0.920443058013916, -0.10801562666893005, 1.0401338338851929, -0.4308609068393707, 0.40021276473999023, -0.2742637097835541, -0.951969563961029, -0.004336720332503319, -0.7123208045959473, 1.0111937522888184, ...
def summary ( self, x, y, k = " all ", cor _ pearson = true, chi2 = true, wrapper = true, embeded = true, randomforest = true, lightgbm = true ) : feature _ name = x. columns. tolist ( ) pd. set _ option ('display. max _ rows ', none ) # put all selection together feature _ selection _ df = pd. dataframe ( {'feature': ...
[ -0.6449936032295227, 0.07739226520061493, 0.7538436055183411, -0.35918381810188293, -0.10822368413209915, -0.5688385367393494, 0.27225518226623535, -0.18594038486480713, -0.024665774777531624, 0.7686023116111755, -0.0014939483953639865, 0.6154850125312805, 0.3826586604118347, -0.3041004240...
def softmax ( x ) : x = 1. / np. array ( x ) / 100. e _ x = np. exp ( x - np. max ( x ) ) return e _ x / e _ x. sum ( )
[ 0.4032366871833801, 0.45002612471580505, 0.5593153834342957, 0.6134186387062073, -0.9036974906921387, -0.23256941139698029, -0.5485441088676453, 0.5187322497367859, 1.6002553701400757, 0.4124375879764557, -0.07625272125005722, 0.608120322227478, 0.5323050618171692, -0.10148944705724716, ...
def build ( self ) : self. title = " dynamic widgets " self. root = builder. load _ file ('dynamic _ labels. kv') self. create _ widgets ( ) return self. root
[ -0.2851402759552002, -0.3841145932674408, 0.16739852726459503, 0.9264039993286133, -0.3885970711708069, 0.4321904480457306, -0.05046994984149933, 0.5212373733520508, -0.7516677975654602, -1.1567810773849487, 0.27729010581970215, -0.07961493730545044, -0.6864228844642639, 0.5099976658821106...
def adjust _ learning _ rate ( optimizer, epoch, opt ) : if opt. pre _ train = = false : addition _ epoch = int ( opt. load _ epoch ) else : addition _ epoch = 0 if opt. multi _ gpu = = true : lr = opt. lr * ( opt. lr _ decrease _ factor * * ( ( epoch + addition _ epoch ) / / opt. lr _ decrease _ epoch ) ) for param _ ...
[ 0.28357240557670593, 0.22137002646923065, 0.839299201965332, -0.06094156950712204, -0.23579393327236176, 0.511614978313446, -0.5583059787750244, 0.7171940803527832, -0.16307997703552246, 0.23941519856452942, 0.46844813227653503, 0.3694382607936859, -0.21805937588214874, 1.002272129058838, ...
def sigmoid _ prime ( z : np. ndarray ) : return sigmoid ( z ) * ( 1 - sigmoid ( z ) )
[ -0.12423454970121384, -0.6236083507537842, 0.16416673362255096, 0.7339504361152649, 0.0675688087940216, -0.3701260983943939, 0.6802850961685181, 0.1064741462469101, 1.6957114934921265, 0.5259696841239929, -0.20867900550365448, -0.5482925176620483, -1.06299889087677, 0.3023263216018677, -...
def last _ modified _ by ( self ) - > optional [ str ] : return pulumi. get ( self, " last _ modified _ by " )
[ 0.7039417624473572, 0.3093549609184265, 0.8197669982910156, -0.24391965568065643, 0.7543519139289856, 0.3730062246322632, 0.33101165294647217, 0.16057515144348145, 0.8748443722724915, 0.3775034248828888, 0.36841705441474915, -0.15984271466732025, 0.42928656935691833, -0.9080023169517517, ...
def enable _ all _ buttons ( self, state ) : self. enable _ top _ buttons ( state ) self. enable _ toolbar _ buttons ( state )
[ -0.2588863670825958, -0.22465510666370392, 0.4822721779346466, 1.1254879236221313, -0.029590489342808723, 0.8804418444633484, 0.05470319092273712, 0.07252512872219086, 0.9439021944999695, -0.5567052960395813, -1.1790320873260498, -0.0506887286901474, 0.9384996294975281, 0.9018304944038391,...
def test _ tc _ assetca _ 002 _ newratingtypeinadmin _ mat ( self ) : # access administration self. dashboard. accessadmin ( ) admin = setuppage ( self. uidriver ) msgcreated = " the rating type created successfully. " # create rating type createadmindata ( self, admin, admin. assets, admin. ratingtype, datalist, self....
[ -0.1141326054930687, 0.5629309415817261, 0.49430742859840393, -0.9408696889877319, 0.3258495330810547, 1.2146940231323242, 0.4373093843460083, -1.1000779867172241, -0.5162390470504761, 0.8448705673217773, 0.08097204566001892, 0.5216242074966431, -0.46820303797721863, 0.4140126705169678, ...
def test _ complain _ if _ invalid _ timezone ( self ) : with self. assertraises ( parametererror ) as cm : get _ prices ( " my - db ", timezone = " timbuktu " ) self. assertin ( " invalid timezone : timbuktu ( see ` pytz. all _ timezones ` for choices ) ", str ( cm. exception ) )
[ -0.0510236993432045, 0.18250598013401031, 0.17609204351902008, 0.8615785837173462, -0.07460516691207886, 0.34742221236228943, -0.1160176545381546, 0.14151406288146973, 0.40309083461761475, 0.7307449579238892, -0.29048222303390503, -0.5466805100440979, -0.8575748801231384, 0.534972429275512...
def _ is _ mwtab ( string ) : if isinstance ( string, str ) : lines = string. replace ( " \ r ", " \ n " ). split ( " \ n " ) elif isinstance ( string, bytes ) : lines = string. decode ( " utf - 8 " ). replace ( " \ r ", " \ n " ). split ( " \ n " ) else : raise typeerror ( " expecting < class'str'> or < class'bytes'>,...
[ 0.5536601543426514, -0.31439507007598877, 0.6806640028953552, 0.6212369203567505, -1.0185465812683105, 0.23680400848388672, -0.3831533193588257, -1.2146131992340088, 0.1135760173201561, 0.17686063051223755, 0.7725894451141357, 0.5772576332092285, -0.9401312470436096, 0.6603577136993408, ...
def display _ finds ( r, width = 300 ) : base = " https : / / www. nb. no / items / " rows = [ ] pages = [ ] urns = [ ] urnstore = [ ] for row in r : urnstring = re. findall ( " urn [ ^ / ] * ", row ) [ 0 ] prefix, doctyp, urn, page = urnstring. split ('_') title = f " { prefix } _ { doctyp } _ { urn } " # urnstring # ...
[ -0.6887117028236389, -0.26777395606040955, 0.4461696743965149, -0.8156766295433044, 0.046769093722105026, -0.08776623755693436, 0.6620470881462097, 0.007893448695540428, 0.756409227848053, -0.08525162190198898, 0.3279913067817688, 0.22668012976646423, 0.2459864616394043, -0.226138994097709...
def _ _ delitem _ _ ( self, key ) : del self. bindings [ key ]
[ -1.1566323041915894, -0.36954638361930847, 0.4872358441352844, -0.23576588928699493, -1.6731281280517578, 0.3578803241252899, 0.013783731497824192, 0.24100780487060547, 0.47243863344192505, 0.2146633118391037, 0.14548112452030182, -0.14059191942214966, -0.5483177900314331, 0.22637124359607...
def on _ intent ( intent _ request, session ) : print ( " on _ intent requestid = " + intent _ request ['requestid'] + ", sessionid = " + session ['sessionid'] ) intent = intent _ request ['intent'] intent _ name = intent _ request ['intent'] ['name'] print ( " intent _ name = " + intent _ name ) # dispatch to your ski...
[ 0.04215511307120323, -2.0038254261016846, 0.7510664463043213, 0.40955933928489685, -0.2499815970659256, 0.13602043688297272, 0.0076322127133607864, -0.7514190077781677, 1.2636094093322754, -0.12597262859344482, -0.014158317819237709, -0.10856689512729645, 0.3159460723400116, -0.85624998807...
def addstudent ( self, student ) : self. students. append ( student )
[ -1.1222271919250488, -0.46682870388031006, 0.08344290405511856, 0.3454853594303131, -0.010316736064851284, 1.54639732837677, -1.0729570388793945, 0.4175185263156891, 0.17372284829616547, -0.31496644020080566, -0.7466343641281128, 0.5645624995231628, -0.4452475607395172, 0.07120756059885025...
def main ( writer ) : global bpms, snrs'''get / display raw data and sampling rate.'''# acquire time - series data from the. csv file # ignore the first second of data, since it's very different from the other data. timedata = writer. get _ time _ data ( ) [ 30 : ] camdatared = writer. get _ cam _ data _ red ( ) [ 30 :...
[ -0.2705118954181671, 0.595855712890625, 0.9816699028015137, -0.3466918468475342, -0.16207745671272278, 0.237722247838974, 0.07947222143411636, 0.053686074912548065, -0.09353695064783096, 0.27321478724479675, 0.13735109567642212, 0.3077000081539154, 0.17696261405944824, 0.3333177864551544, ...
def service _ get _ all _ compute _ by _ host ( context, host ) : return impl. service _ get _ all _ compute _ by _ host ( context, host )
[ -0.36265766620635986, 0.5522861480712891, 0.6625009775161743, 0.9650299549102783, 0.14684787392616272, -0.3119584619998932, -1.0359830856323242, -0.34143581986427307, -0.9992621541023254, -0.2838694453239441, -0.09861352294683456, 0.9872516989707947, -0.1460156887769699, 0.8684616088867188...
def get _ account _ wallet ( self, token = none ) : return self. _ request ( " account / wallet ", access _ token = token ) if token else self. _ request ( " account / wallet " )
[ 0.1536111980676651, 0.6263433694839478, 0.2907659411430359, 0.5862789750099182, 0.9728633761405945, -1.3477296829223633, -0.6191713809967041, -0.7668546438217163, 0.5665910840034485, -0.44816866517066956, 0.5885958671569824, 1.6828919649124146, -0.04158957302570343, 0.2387504130601883, -...