text
stringlengths
25
2.19k
embedding
listlengths
768
768
def decompile ( self, txtfst _ fn = none ) : self. txtfst _ fn = self. txtfst _ fn if txtfst _ fn = = none else txtfst _ fn isyms = " - - isymbols = " + self. isymbols _ fn if os. path. isfile ( self. isymbols _ fn ) else " " ; osyms = " - - osymbols = " + self. osymbols _ fn if os. path. isfile ( self. osymbols _ fn )...
[ 0.39607328176498413, 0.098624087870121, 0.577404797077179, -0.4280768036842346, 0.21932703256607056, -1.2833070755004883, 0.27395012974739075, 1.023431420326233, -0.20647509396076202, -1.1475721597671509, -0.24806024134159088, 0.3349415361881256, -0.6861197352409363, 0.5005695819854736, ...
def calc _ z _ frumpy ( m, zs, cs ) : q = [ ] for z, c in zip ( zs, cs ) : q. append ( func ( m, z, c ) ) return ( q )
[ -0.07679888606071472, -0.15781916677951813, 0.25436392426490784, 0.8544909358024597, 0.061078984290361404, -0.9818080067634583, 0.7513121366500854, -0.41249707341194153, 0.3323749303817749, -0.282171368598938, -0.9719271063804626, -0.23168577253818512, 0.5897341966629028, 0.585381031036377...
def test _ atomic _ qname _ max _ length _ 2 _ nistxml _ sv _ iv _ atomic _ qname _ max _ length _ 3 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - maxlength - 3. xsd ", instance = " nistdata / atomic ...
[ 0.21978628635406494, -0.07391002774238586, 0.42225372791290283, 0.5994968414306641, -0.514858603477478, 0.8326524496078491, -0.892134428024292, -0.14114020764827728, 0.7816230058670044, 0.7841793298721313, -0.4494694471359253, 0.09413645416498184, 0.20476707816123962, -0.6601504683494568, ...
def getdatwithdefault ( self, * args ) : return _ snap. tintinth _ getdatwithdefault ( self, * args )
[ 0.6996505260467529, 0.009265957400202751, 0.39554980397224426, 0.8121412992477417, 1.4961403608322144, 0.4621067941188812, -0.5170058012008667, -0.672058641910553, -0.30844607949256897, -1.1170125007629395, -1.0559906959533691, 0.33957964181900024, -0.9032292366027832, -0.02999833412468433...
def import _ specimen ( specimen _ file ) : # check if the file has a. npy extension. if specimen _ file [ - 4 : ] = = '. npy': # load specimen from numpy file and convert boolean to float. specimen = np. load ( specimen _ file ). astype ('float64') else : # assume the file is in text format. open the file and read # t...
[ 0.5685029029846191, -0.9476460218429565, 0.578590989112854, -0.2180708348751068, -0.05450637638568878, -0.08866725116968155, 0.5389453768730164, 0.3875129222869873, 0.24772055447101593, 0.9412194490432739, 0.01105782575905323, 0.5239946842193604, -0.5397779941558838, -0.7713590860366821, ...
def incident _ action _ guid ( self, incident _ action _ guid ) : self. _ incident _ action _ guid = incident _ action _ guid
[ 0.23452365398406982, -1.443450927734375, -0.5261661410331726, 0.404153048992157, 0.4916066527366638, 0.9695611596107483, 0.7357617616653442, 0.2657977342605591, -0.052262015640735626, 0.017853712663054466, 0.03738477826118469, 0.709872841835022, -0.5804657936096191, -0.4702620208263397, ...
def _ _ new _ _ ( cls, bounds, sheet _ coordinate _ system, force _ odd = false, min _ matrix _ radius = 1 ) : if force _ odd : slicespec = slice. _ createoddslicespec ( bounds, sheet _ coordinate _ system, min _ matrix _ radius ) else : slicespec = slice. _ boundsspec2slicespec ( bounds. lbrt ( ), sheet _ coordinate _...
[ -0.41179800033569336, -1.0403602123260498, 0.5484371781349182, -0.4020248055458069, -0.2932801842689514, 0.48994433879852295, -0.35787421464920044, -0.6060736775398254, 0.2609093189239502, -0.011449309065937996, 0.6610421538352966, 1.1735916137695312, 0.4884757399559021, 0.4397611916065216...
def set _ agent _ report _ state ( self, report _ state _ callback ) : self. agent _ report _ state = report _ state _ callback
[ 0.7447576522827148, -0.229357048869133, 0.38052791357040405, -0.40940868854522705, 0.06854929029941559, -0.2483336478471756, 0.5858883857727051, 0.5271702408790588, 1.1166234016418457, -0.05512158200144768, -0.402951717376709, -0.11368122696876526, 0.36686021089553833, 0.1959005743265152, ...
def addmp ( self, * args ) : return _ snap. tintfltkdv _ addmp ( self, * args )
[ -0.08555420488119125, 0.34165120124816895, 0.3076336681842804, 0.7115146517753601, 0.251705527305603, 0.2856333255767822, 0.31869250535964966, 0.0070656961761415005, -0.3384105861186981, -0.8308660387992859, 1.072256326675415, -0.5757574439048767, -0.9291518926620483, 1.8129947185516357, ...
def getstrattrinddatn ( self, * args ) : return _ snap. pneanet _ getstrattrinddatn ( self, * args )
[ -0.5978549122810364, -0.13664424419403076, 0.23977632820606232, -0.6284765005111694, 1.008668065071106, 0.14586667716503143, -0.11882371455430984, -0.6611021161079407, -0.29814302921295166, -1.4890211820602417, -0.9556043744087219, 0.03546658530831337, -0.6325802206993103, 0.38112851977348...
def get _ grad ( self, batch _ samples, batch _ labels ) : loss = self. loss _ fn ( self. model _ obj ( torch. tensor ( batch _ samples ) ), torch. tensor ( batch _ labels ) ) loss. backward ( ) return [ p. grad. numpy ( ) for p in self. model _ obj. parameters ( ) ]
[ -0.905217170715332, -0.7948639392852783, 0.7832301259040833, 0.6629894375801086, 1.0713605880737305, 0.6672753691673279, -0.5441436767578125, 0.25184366106987, -1.710234522819519, 0.21463191509246826, -0.31978267431259155, 0.5310906767845154, 0.2423679679632187, 0.04953940957784653, -0.6...
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrstrprvhi _ _ _ lt _ _ ( self, * args )
[ 0.07429078966379166, -1.0640408992767334, 0.29749274253845215, -1.1396561861038208, 0.5613968968391418, 0.10966827720403671, -0.9164808392524719, -0.5954510569572449, -1.7141104936599731, -0.5553165674209595, -0.5509790778160095, -1.590923547744751, -1.5448508262634277, 0.28510522842407227...
def setups ( ) : setups = [ ] genot2011 _ f3 = dict ( ) genot2011 _ f3 ['name'] ='genot2011 _ f3'genot2011 _ f3 ['piltemplate'] = genot2011 _ f3 _ pil genot2011 _ f3 ['pilparams'] = [ ( 8, 7 ), ( 17, 17 ), ( 20, 20 ), ( 23, 23 ) ] genot2011 _ f3 ['pepperargs'] = {'condensed': false,'conc':'nm'} genot2011 _ f3 ['simulat...
[ -0.1720467209815979, -0.06125812232494354, 0.9373844265937805, -0.8250771760940552, 0.4353099465370178, -0.42153164744377136, -0.15452730655670166, -0.18544341623783112, -0.012777671217918396, 0.044705647975206375, -0.8014622330665588, -0.8422775864601135, 0.8153858184814453, 0.71135133504...
def _ send _ copy ( self, buf, flags ) : zmq _ msg = ffi. new ('zmq _ msg _ t *') if not isinstance ( buf, bytes ) : # cast any bufferable data to bytes via memoryview buf = memoryview ( buf ). tobytes ( ) c _ message = ffi. new ('char [ ] ', buf ) rc = c. zmq _ msg _ init _ size ( zmq _ msg, len ( buf ) ) _ check _ rc...
[ 0.1971152126789093, 0.28189003467559814, 0.8085970282554626, -0.07454764097929001, -0.6855223178863525, 0.17760731279850006, 0.19692519307136536, -1.071602463722229, 0.5197359919548035, 0.20076273381710052, -0.36879146099090576, 1.0365028381347656, -1.214840292930603, 0.12656758725643158, ...
def _ _ call _ _ ( cls, * args, * * kwargs ) : if cls. _ instance is none : instance = super ( ). _ _ call _ _ ( * args, * * kwargs ) cls. _ instance = instance return cls. _ instance
[ -0.7381113767623901, 0.17266657948493958, 0.6066837906837463, -1.2602254152297974, 0.3416694700717926, -0.24338692426681519, -0.517313539981842, -0.2989470958709717, 0.3082059323787689, -0.055399440228939056, -0.3583797216415405, 0.3058682382106781, -0.6879943609237671, 0.5970852971076965,...
def parse _ args ( ) : parser = argparse. argumentparser ( description = " play a mp3 when grafana alert is received via post req ", formatter _ class = argparse. argumentdefaultshelpformatter, ) parser. add _ argument ( " - p ", " - - port ", default = 8333, type = int, help = " port to listen on for http requests ", ...
[ 0.2504642605781555, -0.7367696166038513, 0.9117708802223206, -0.1850017011165619, 0.3619231581687927, 0.6318818926811218, -0.16444283723831177, -0.1783565878868103, -0.6765025854110718, -0.01885225810110569, 0.40749144554138184, 0.5824078321456909, -0.6771122217178345, 0.030637934803962708...
def aggregated _ query _ status ( self, query _ name : text ) - > bool : for performance in self. suite _ performances. values ( ) : if not performance. has _ query _ performance ( query _ name ) : return false if not performance. is _ query _ successful ( query _ name ) : return false return true
[ -0.886643648147583, 0.660782516002655, 0.5465078353881836, -0.11479970067739487, -0.08375806361436844, 0.8845607042312622, -0.5231741070747375, -0.021366827189922333, -0.08097212761640549, 0.6487419009208679, 0.10049010068178177, -0.06120508164167404, -0.3365221917629242, 1.414808750152588...
def per _ flow _ update ( topology, new _ policy, flow _ window, refine, refine _ window, use _ extension = true, use _ subspace = true, use _ island = false ) : # if current policy empty if ( inst. current _ internal _ policy. is _ empty ( ) and inst. current _ edge _ policy. is _ empty ( ) ) : # use empty _ update up...
[ -0.07760287821292877, -0.94420325756073, 0.6259583234786987, 0.22101712226867676, -0.2297949492931366, 1.2119516134262085, 0.550019383430481, -0.06724429130554199, 0.8997446894645691, 0.4139821231365204, 1.0613133907318115, 0.27299875020980835, -1.404022216796875, 0.4048596918582916, 0.3...
def process _ response ( self, response ) : # we log before processing the result, in case there's an error from the # competition code. self. log ( " response from game % s " % response. game _ id ) for warning in response. warnings : self. warn ( warning ) for log _ entry in response. log _ entries : self. log ( log ...
[ 0.08772066235542297, -0.708937406539917, 0.509392499923706, -0.08506271988153458, 0.8655964732170105, -0.6888793706893921, -0.053176913410425186, -0.5683895945549011, 0.29621922969818115, 0.38841524720191956, -0.19239652156829834, -0.3043510913848877, -0.2649225890636444, 0.221214860677719...
def test _ retrieves _ oneself _ by _ name ( self ) : user = make _ user ( ) headers = make _ authentication _ headers _ for _ user ( user ) post _ creator = make _ user ( ) post = post _ creator. create _ public _ post ( text = make _ fake _ post _ text ( ) ) url = self. _ get _ url ( post ) search _ query = user. pro...
[ -0.05613883584737778, 0.08387978374958038, 0.6089224815368652, 0.49403661489486694, 0.21877610683441162, 0.35108739137649536, 0.13935382664203644, -1.2012985944747925, -0.23941850662231445, -0.6716107726097107, -1.4118033647537231, -0.5422713160514832, -0.7832086086273193, -0.3242858052253...
def makempm ( self, threshold, maskname ='mpm. nii. gz') : if self. _ pm is none : raise exception ('please execute makepm first') mpm = roimethod. make _ mpm ( self. _ pm, threshold ) if self. _ issave is true : iofactory = iofiles. iofactory ( ) factory = iofactory. createfactory ( self. _ savepath, maskname ) if mas...
[ 0.015684448182582855, -0.5216391682624817, 0.5650663375854492, 0.5747312903404236, -0.2416338324546814, 0.05708513781428337, -0.03901688754558563, -0.45619964599609375, 0.2689361870288849, -0.28460797667503357, -0.05140431597828865, -0.5539193153381348, -0.8852220177650452, -0.459457188844...
def _ _ init _ _ ( self, file _ revision ) - > none : self. _ _ dict _ _. update ( file _ revision ) self. timestamp = pywikibot. timestamp. fromisoformat ( self. timestamp )
[ 0.4421161711215973, -0.3551618456840515, 0.4475291967391968, -0.43310052156448364, -0.03811781480908394, -0.015880955383181572, -0.9120927453041077, 1.3377741575241089, -0.37518882751464844, -0.1775016486644745, 0.0035127054434269667, -0.2652943432331085, 0.6514755487442017, 0.078086763620...
def add _ surface _ form ( self, sf ) : # assert isinstance ( sf, surfaceform ) if self. surface _ forms _ ids. has _ key ( sf. id ) : raise exceptions. duplicatemodelerror ( str ( sf ) ) self. surface _ forms _ ids [ sf. id ] = sf self. surface _ forms. add ( sf ) self. xmlroot. surface _ forms. append ( sf. elem )
[ -0.06538208574056625, -0.012049246579408646, 0.36665505170822144, 0.122107595205307, -0.0014203322352841496, 0.905307412147522, 0.7982390522956848, -0.8893803954124451, 0.6473127603530884, -1.5663893222808838, -1.6397008895874023, -0.23655015230178833, 0.04008395969867706, 0.97234171628952...
def get _ weights _ path ( self ) - > str : checkpoints = os. listdir ( self. _ paths [ " checkpoint _ folder " ] ) if " checkpoint " in checkpoints : checkpoints. remove ( " checkpoint " ) _ checkpoints = [ ] for checkpoint in checkpoints : try : _ checkpoints. append ( ( checkpoint, int ( checkpoint. split ( " _ " ) ...
[ 0.605135440826416, -0.4801303744316101, 0.7385075688362122, 1.0226017236709595, 0.5691121220588684, 0.2728533148765564, 1.572705626487732, -0.1941918134689331, -1.207685947418213, 0.21222524344921112, -0.06547673791646957, -0.6971572637557983, -0.07073892652988434, 0.47150683403015137, 0...
def addunique ( self, * args ) : return _ snap. tfltprv _ addunique ( self, * args )
[ -1.455967903137207, 0.721997857093811, 0.4694349467754364, -0.17661575973033905, 0.6302642822265625, -0.16236481070518494, 0.16567032039165497, 1.0781348943710327, -1.5386178493499756, -0.2569265067577362, -0.1776220202445984, -0.8489487171173096, -0.8539111614227295, 0.4301621913909912, ...
def posthits ( mt _ conn, resv ) : proto = resv. proto qual _ arr = [ ] if proto. worker _ locale! ='' and proto. worker _ locale is not none : qual _ arr. append ( localerequirement ('equalto ', proto. worker _ locale ) ) if proto. approval _ rating > 0 : qual _ arr. append ( percentassignmentsapprovedrequirement ('gr...
[ -0.6909998655319214, 0.6942476630210876, 0.7547886371612549, 0.0981641337275505, 0.2251434326171875, 0.8153478503227234, -0.14581261575222015, 0.18525567650794983, -1.0627559423446655, -0.1394079476594925, 0.04852990806102753, -0.1614352911710739, -0.5941993594169617, -0.21338523924350739,...
def isnumber ( hou _ attrib ) : assert type ( hou _ attrib ) is hou. attrib, " invalid argument " return \ hou _ attrib. datatype ( )! = hou. attribdata. string and \ hou _ attrib. size ( ) = = 1
[ -0.4933946430683136, -0.2664259970188141, 0.3729020655155182, 0.7619134187698364, -0.06059281900525093, 0.6578296422958374, 0.4731574058532715, 0.2119431048631668, 0.5981610417366028, -0.5410458445549011, -0.5900434255599976, 0.1696547567844391, -0.2624710500240326, 0.3899245262145996, 0...
def all ( self ) - > generator [ callbackentry, none, none ] : for key, ( url, config ) in iter ( self. _ callbacks. items ( ) ) : yield callbackentry ( key = key, url = url, config = config )
[ 0.40848004817962646, -0.6062734723091125, 0.2628570795059204, 0.4306337535381317, 0.08741185069084167, 0.11768653243780136, -0.15325592458248138, 0.15680398046970367, 0.5937749743461609, -0.44969576597213745, -0.604584813117981, 0.0951477587223053, 0.14194737374782562, 1.3818609714508057, ...
def getdat ( self, * args ) : return _ snap. tstrv _ getdat ( self, * args )
[ -0.3514527976512909, 0.25672999024391174, 0.4316462278366089, -1.1812268495559692, 1.3112127780914307, 0.1915588080883026, 1.0046255588531494, -0.4951266646385193, -0.7544201016426086, -1.0614359378814697, -0.37705740332603455, -0.17775958776474, 0.5374375581741333, -0.01773805357515812, ...
def getpsmecasx ( self ) : # get location x, y, depth = self. c [ 0 ], self. c [ 1 ], self. c [ 2 ] # get the eigenvalues and vectors ( v, d ) = self. eig ( ) # convert vectors to azim and plunge ( paz, ppl ) = azimplunge ( v [ :, 0 ] ) ( baz, bpl ) = azimplunge ( v [ :, 1 ] ) ( taz, tpl ) = azimplunge ( v [ :, 2 ] ) #...
[ 0.058747656643390656, 0.08317271620035172, 0.5532096028327942, -0.5471749901771545, -0.7337566614151001, 0.16716115176677704, -0.12781544029712677, 0.6201112270355225, 0.33466845750808716, -0.03752008453011513, -0.026364538818597794, -0.04617583751678467, -0.05223535746335983, -0.106980644...
def update _ result ( self, test _ id = none ) : if test _ id is none : test _ instances = self. test _ results. test else : test _ instances = [ self. test _ results. test [ test _ id ] ] @ asyncio. coroutine def update _ stats ( test ) : if test. test _ state not in [ " test _ initializing ", " test _ stopped " ] : t...
[ -0.2726295292377472, 0.36555215716362, 0.3864303231239319, 0.18657808005809784, 0.38901597261428833, -0.4572347402572632, 0.5267806053161621, -0.1621270328760147, -0.16965559124946594, 0.06942353397607803, 0.3250025808811188, -0.2703380882740021, -0.7793276309967041, 0.4895838499069214, ...
def _ loaddatamodel ( self ) : self. datasetmenuversion = - 1 # - - remove existing items # - - # while self. getmenuitemcount ( ) > 0 : # self. destroyitem ( self. finditembyposition ( 0 ) ) self. _ clearmenu ( self ) self. derivedmenu = none # - - process datamodel to determine if there are derive - ables # - - if se...
[ -0.5023505091667175, -0.30297964811325073, 0.9119399785995483, -0.5004048347473145, -0.4920980930328369, 1.1186405420303345, 0.38024580478668213, 0.21408067643642426, -0.5551146268844604, -0.7139567136764526, -0.6007558703422546, 0.1385163813829422, -0.03873712942004204, 1.0807701349258423...
def test _ do _ update _ non _ existent _ id ( test _ dao ) : dut = dtmsimilaritem ( test _ dao ) dut. do _ select _ all ( revision _ id = 1 ) _ error _ code, _ msg = dut. do _ update ( 100 ) assert _ error _ code = = 2207 assert _ msg = = ( " ramstk error : attempted to save non - existent similaritem " " id 100. " )
[ 0.051335107535123825, 0.043413154780864716, 0.48272940516471863, 0.5794083476066589, 0.4763471782207489, 0.28604361414909363, 0.283099502325058, 0.5080732703208923, 0.05833372473716736, 1.1741539239883423, -0.8893101215362549, -0.10633811354637146, -0.07105029374361038, -0.0525356642901897...
def issolvable ( self, data : uidata ) - > bool : if tilepuzzlesolver. issolvable ( data. init, data. goal ) : self. ui. printwindow. settext ( " yes, the given input is solvable " ) return true else : self. ui. printwindow. settext ( " the given input is not solvable! " ) return false
[ -0.6302521228790283, 0.17091844975948334, 0.6277260780334473, 0.8580062389373779, -1.2732070684432983, 1.2381558418273926, 0.3653092682361603, 0.03638411685824394, -0.3441030979156494, -0.18116223812103271, -0.5956665873527527, 0.25826495885849, -1.0755627155303955, 0.7712898850440979, -...
async def format _ roll ( self, roll, checked, verbose = true ) : return await self. formatter. format _ roll ( roll, checked, verbose = verbose )
[ -0.033904917538166046, 0.12220138311386108, 0.31217601895332336, 1.105580449104309, 0.30203184485435486, -0.9068145751953125, -0.8955674767494202, -0.5642584562301636, -0.03464226424694061, 0.1922171413898468, 0.900419294834137, 1.3038374185562134, -0.3031160235404968, 0.736092209815979, ...
def getoveralldatatransfered ( self ) : return self. _ _ swift. getoveralldatatransfered ( )
[ -0.1291368454694748, 0.625823974609375, 0.6423752903938293, -0.6263708472251892, -0.18302962183952332, 0.18333935737609863, -0.688011884689331, 0.04984608665108681, -0.1912509948015213, -0.6139011383056641, -0.9464985132217407, 0.1097874715924263, 0.28179842233657837, 0.3706508278846741, ...
def create _ vocabulary ( train _ file ) : vocab _ input = odict ( ) vocab _ output = odict ( ) input _ count = 0 output _ count = 0 try : if os. path. isfile ( train _ file ) : with open ( train _ file,'r') as f _ data : # add the special symbols defined above for term in _ start _ vocab : vocab _ input [ term ] = inp...
[ 0.20168347656726837, -0.5419145822525024, 0.6742644906044006, 0.063873291015625, -0.3844428062438965, -0.25655314326286316, 0.9722467064857483, 0.2927740812301636, -1.375998854637146, 0.21755895018577576, -0.20767471194267273, -0.11175059527158737, 0.06132497265934944, 0.03399258106946945,...
def check _ maps ( path, compare = true, img = true, v = true, filt = true ) : # plot _ fields = ['type ','batch'] plot _ fields = ['type'] # add checks to add batch and dose if present pert _ dict, map _ list = { }, { } wellpert _ dict = { } flist = gt. get _ flist ( path, ext = '. xlsx') if filt is true : flist = [ x...
[ -0.1032286211848259, -0.7138646245002747, 0.9362905621528625, -0.2612246572971344, -0.25495681166648865, 0.3152705729007721, 0.7730669975280762, 0.15919460356235504, 0.21181179583072662, 0.24942739307880402, 0.3446524441242218, -0.23386211693286896, 0.08774539828300476, 0.7051351070404053,...
def create _ pool _ and _ wait _ for _ node ( batch _ client : batchserviceclient, pool _ id : str, vm _ size : str, vm _ count : int, sha1 _ cert _ tp : str ) : # create start task commands # 1. update repository # 2. install blobxfer pre - requisites # 3. pip install blobxfer python script start _ task _ commands = [...
[ 0.7867898344993591, 0.09690414369106293, 0.739653468132019, 0.4817608892917633, 1.031935691833496, 0.878876805305481, 0.5312362313270569, -0.21822375059127808, -0.7337299585342407, 0.6788531541824341, -0.28681275248527527, 0.7335467338562012, 0.7855516672134399, 0.34010517597198486, 0.02...
def get _ aggregated _ query _ performance _ sample ( self, query _ name : text, metadata : dict [ str, str ] ) - > sample. sample : query _ metadata = copy. copy ( metadata ) query _ metadata ['query'] = query _ name query _ metadata ['aggregation _ method'] ='mean'perf, exec _ status, agg _ md = - 1. 0, edwqueryexecu...
[ -0.17623822391033173, 0.5911455154418945, 0.6079707741737366, -0.5180296301841736, -0.19489483535289764, 0.19916218519210815, -0.671435534954071, -0.4109201729297638, -0.18444716930389404, 1.4746123552322388, 1.329837679862976, 0.7918066382408142, -0.19135138392448425, 0.7358638644218445, ...
def _ _ init _ _ ( self, webif _ dir, plugin ) : self. logger = logging. getlogger ( _ _ name _ _ ) self. webif _ dir = webif _ dir self. plugin = plugin self. tplenv = self. init _ template _ environment ( ) self. items = items. get _ instance ( )
[ 0.5719869136810303, -0.8454775810241699, 0.3834545612335205, 0.06904124468564987, 0.5613446235656738, -0.5758056044578552, -0.2346019297838211, 0.9016579389572144, 0.0208588819950819, -0.1950628012418747, -1.269898772239685, 0.31547921895980835, 0.05449802801012993, 0.5182163715362549, -...
def get _ games ( start _ date, end _ date ) : url ='https : / / statsapi. web. nhl. com / api / v1 / schedule? startdate = { } & enddate = { } '. format ( start _ date, end _ date ) resp = requests. get ( url = url ) gamesched = json. loads ( resp. text ) gameids = [ ] for day in range ( 0, len ( gamesched ['dates'] )...
[ -0.47664785385131836, 0.29865705966949463, 0.7862809896469116, 0.2055494487285614, 0.7661594152450562, 0.04273848980665207, -1.590167760848999, -0.4219067692756653, -1.102110505104065, 0.8657974004745483, -0.2004108726978302, 0.5371418595314026, -0.3678100109100342, -0.43801349401474, 0....
def allow _ post _ images ( self ) : return self. get _ boolean ('allow _ post _ images')
[ -0.6248998045921326, 1.1818783283233643, 0.580130934715271, 0.9549201130867004, -0.6144972443580627, 1.025395154953003, 0.0245316494256258, 0.3501918911933899, -0.8337329626083374, 0.1909770965576172, -0.11715643107891083, 0.23811128735542297, -1.0648562908172607, 1.1489337682724, -0.744...
def test _ solve _ with _ actual _ input ( self ) : expected = " 5537376230 " size = 50 actual = solve ( input, size ) self. assertequal ( expected, actual )
[ -0.5027670860290527, -0.63240647315979, 0.4879247844219208, 0.02357654646039009, 0.00860659684985876, 0.24272818863391876, 0.6067408919334412, -0.7140654921531677, 0.5035572648048401, 0.13306894898414612, -1.2044461965560913, -0.8487558960914612, -0.1422991156578064, -0.09060194343328476, ...
def add _ event _ files ( self, event _ files ) : for i in self. sub _ id _ pairs : _, sub _ id = list ( i. items ( ) ) [ 0 ] if isinstance ( event _ file, str ) : _ set _ event _ files ( event _ file, sub _ id, os. path. join ( self. data _ path,'sub - { } '. format ( sub _ id ) ) ) elif isinstance ( event _ file, lis...
[ -0.21772614121437073, -0.3629368841648102, 0.8089973330497742, 0.8063193559646606, 0.34946176409721375, 0.5585152506828308, 0.5145972371101379, 0.619673490524292, 0.34373536705970764, -0.09898260980844498, -0.10295643657445908, -0.024236800149083138, -0.23873072862625122, 0.469369351863861...
def deletemappingsfromdevicetype ( self, typeid, logicalinterfaceid ) : req = apiclient. onedevicetypemappingurl % ( self. host, " / draft ", typeid, logicalinterfaceid ) resp = requests. delete ( req, auth = self. credentials, verify = self. verify ) if resp. status _ code = = 204 : self. logger. debug ( " mappings de...
[ -1.4414883852005005, -0.1274215579032898, 0.4788103997707367, -0.5066389441490173, -0.6458181142807007, -0.14870095252990723, 0.37698984146118164, -0.9398516416549683, 0.9955891370773315, 0.2536495327949524, 0.394456684589386, -0.050205036997795105, -1.4106218814849854, 0.510381817817688, ...
def speakcharacter ( self, character ) : if character. isupper ( ) : voice = self. voices [ settings. uppercase _ voice ] else : voice = self. voices [ settings. default _ voice ] spokencharacter = chnames. getcharactername ( character ) speech. speakcharacter ( spokencharacter, voice )
[ -0.6391010880470276, -0.9132850766181946, 0.4233403205871582, -0.027519086375832558, 0.4997722804546356, -0.21435175836086273, -0.44959211349487305, -0.40764543414115906, 0.6629684567451477, 0.16225005686283112, -0.38572385907173157, 0.45609986782073975, -0.7317256927490234, 0.314531922340...
def test _ subpage _ types ( self ) : self. assertallowedsubpagetypes ( projectslandingpage, [ project, linkpage ] )
[ 0.8160776495933533, 1.0017108917236328, 0.3685510754585266, 0.9604010581970215, 0.27468815445899963, 2.3091049194335938, 0.11256763339042664, 0.26279187202453613, -0.007290701847523451, -0.6318613886833191, 0.3520409166812897, 0.40630385279655457, -0.4057547152042389, 0.6276602745056152, ...
def geti ( self, * args ) : return _ snap. tinth _ geti ( self, * args )
[ -0.09801961481571198, -0.1153903529047966, 0.38635820150375366, 0.9401379227638245, 0.7986767292022705, 0.3757646381855011, 0.2693108916282654, -1.0423991680145264, -1.1522451639175415, -0.5672508478164673, -1.2207061052322388, 0.11948331445455551, -1.1797266006469727, -0.5462719798088074,...
def variable _ elimination ( group _ means ) : # create coordination graph from group _ means agents = { } # mapping from name to object reward _ functions = [ ] for table in group _ means : reward _ name = table. columns [ - 1 ] group _ agents = set ( ) for agent _ name in list ( filter ( lambda x : x [ : 2 ]! ='mu ',...
[ 0.2861436903476715, 0.25835558772087097, 0.636902928352356, 0.3518517315387726, -0.10287713259458542, -0.795953094959259, 0.4836815297603607, -0.02901466377079487, -0.2067590206861496, 0.7884732484817505, 0.3072439134120941, 0.27464041113853455, -0.5334088206291199, -0.9490986466407776, ...
def execute _ cmd _ output _ string ( self, cmd, enable _ shell = false ) : try : result = subprocess. check _ output ( split ( cmd ), stderr = subprocess. stdout, shell = enable _ shell ) except subprocess. calledprocesserror as e : s = " " " while executing'{ }'something went wrong. return code = ='{ }'return output ...
[ 0.392779141664505, -0.852363109588623, 0.8141612410545349, 0.34415403008461, -0.8713838458061218, -0.23539648950099945, -0.0994827151298523, -0.1649656891822815, 0.08639999479055405, 0.8128831386566162, 0.698788046836853, -0.1541554480791092, -0.6128556728363037, 0.040163908153772354, 0....
def getpdf ( * args ) : return _ snap. tgutil _ getpdf ( * args )
[ 0.20091374218463898, 0.07175303995609283, 0.569284200668335, 0.12158890068531036, 1.2139334678649902, -0.46362224221229553, 1.3123112916946411, -0.015096242539584637, -1.2175014019012451, -0.5862058997154236, 0.5230600833892822, -0.10758249461650848, -0.5311257839202881, 0.7654839754104614...
def execute ( self ) : args = self. _ arg _ value _ list types = self. _ arg _ type _ list if self. _ sqls is not none : self. _ sqls. append ( { " sql " : self. get _ sql ( param _ inline ) } ) if self. _ plan _ cache is not none : sql = self. get _ sql ( param _ plpy ) plan = self. _ plan _ cache. get _ plan ( sql, t...
[ -1.0808895826339722, 0.3269556760787964, 0.6876755356788635, 0.39750975370407104, 0.12088271230459213, 0.3522031307220459, -0.9642208814620972, 0.3124254047870636, 0.09752453118562698, 0.8868433833122253, -0.2471410036087036, 0.2876971960067749, 0.00811069831252098, -0.13521161675453186, ...
def p300 _ verify ( self ) : ctx = self. item _ start ( ) # always first line of test self. log _ bullet ( f " { ctx. item. delay } s wait for boot " ) time. sleep ( ctx. item. delay ) self. log _ bullet ( " done wait " ) port _ candidates = serial _ ports ( ) self. logger. info ( " serial ports to look for teensy { } ...
[ 0.28153470158576965, -0.21731872856616974, 0.8573099970817566, 0.25302088260650635, 1.0466303825378418, -0.10508286952972412, 0.3370712995529175, -1.0217193365097046, -0.14576351642608643, -0.3711661696434021, -1.2216981649398804, 0.21461178362369537, -0.7754889726638794, 0.625858962535858...
def get _ metric _ constraints ( settings, cvx _ masks, xs, overrides = none, data _ provider = none ) : constraints = [ ] risk _ score = none metrics = settings. get _ metrics _ all ( ) for metric in metrics : if metric. type = = 1 : if overrides : risk _ score = overrides. get ( " risk _ score ", metric. configured _...
[ -0.5266064405441284, 0.7171220183372498, 0.6431581974029541, 0.653770923614502, 0.7713974714279175, -0.43199631571769714, 0.33691614866256714, -1.1262898445129395, -0.17097380757331848, 1.090004324913025, 0.13982446491718292, -0.3530460596084595, 0.36225566267967224, -0.17252777516841888, ...
def create _ task _ list _ label ( self ) : self. task _ list _ label = qtwidgets. qlabel ( self ) self. task _ list _ label. setalignment ( qt. aligncenter ) self. task _ list _ label. settext ( " list of your current tasks " ) self. task _ list _ label. setobjectname ( " task _ list _ label " ) self. task _ list _ la...
[ -0.052711110562086105, -0.7956467270851135, 0.4575304687023163, -0.34846919775009155, 0.3833180069923401, 0.8678470849990845, 0.030783265829086304, 0.31290382146835327, 0.19506071507930756, 0.44319671392440796, -0.31818684935569763, -0.4634183645248413, 0.6550613641738892, 0.20794425904750...
def ampgradientbackwardstep ( loss : tensor, model : model ) : model. zero _ grad ( ) with amp. scale _ loss ( loss, model. optimizer ) as scaled _ loss : yield scaled _ loss model. step ( )
[ -0.6540094017982483, -0.2101886123418808, 0.6048428416252136, -0.870498776435852, -0.758936882019043, 0.4988294839859009, -0.04783893749117851, -1.0742781162261963, -0.9321631193161011, 0.1937796175479889, -0.20199549198150635, 0.15047034621238708, 0.466526061296463, 0.261065274477005, -...
def getsubvalv ( self, * args ) : return _ snap. tstrv _ getsubvalv ( self, * args )
[ -0.24685007333755493, 0.2703610062599182, 0.3550984859466553, 0.3800732493400574, -0.40144842863082886, 0.2407570779323578, 0.9605226516723633, 0.969727098941803, -1.434058666229248, -0.7673410177230835, -1.0777077674865723, 1.0718958377838135, 0.7244887351989746, 0.17240114510059357, 1....
def onitemselected ( self, event ) : # self. currentitem = event. geteventobject ( ). getselectedobjects ( ) # logger. debug ( " called!! " ) try : self. currentitem = self. myolv. getselectedobjects ( ) # logger. debug ( " selectedobjects % s " % self. currentitem ) self. record _ service. select _ points ( datetime _...
[ -0.17860017716884613, -0.9950807094573975, 0.42789074778556824, 0.27827268838882446, 0.17621850967407227, 0.22200621664524078, 0.7342872619628906, -0.03544439747929573, 0.31803202629089355, 0.6318047046661377, -0.5498912930488586, 0.9067245721817017, 0.010009946301579475, -1.03215134143829...
def getrndni ( self, * args ) : return _ snap. pneanet _ getrndni ( self, * args )
[ -0.6215440034866333, 0.8094508051872253, 0.5264583230018616, 1.222373127937317, 0.39728015661239624, 0.34416285157203674, -0.85434889793396, -1.0255002975463867, -1.0246806144714355, -1.466627597808838, -1.5009512901306152, -0.7952487468719482, -0.5991812944412231, 0.5154035687446594, 0....
def _ _ init _ _ ( _ _ self _ _, resource _ name : str, opts : optional [ pulumi. resourceoptions ] = none, key _ arn : optional [ pulumi. input [ str ] ] = none, _ _ props _ _ = none ) :...
[ 0.06342793256044388, -0.25638508796691895, 0.45630955696105957, 0.01710043102502823, 0.10329106450080872, -0.26598188281059265, -0.07200497388839722, 0.5399860739707947, 0.9065571427345276, -0.30272048711776733, 0.04298458248376846, 0.7891190052032471, 0.7994683384895325, -1.22428810596466...
def _ iter _ module _ files ( ) : # the list call is necessary on python 3 in case the module # dictionary modifies during iteration. for module in list ( sys. modules. values ( ) ) : if module is none : continue filename = getattr ( module,'_ _ file _ _ ', none ) if filename : if os. path. isdir ( filename ) and \ os....
[ -0.14770610630512238, -0.9322446584701538, 0.8793736100196838, -0.09704762697219849, 0.06319396942853928, -0.11483573168516159, 0.6370022296905518, -0.5599282383918762, -0.15466322004795074, 0.1735999435186386, 0.6439523696899414, 0.289521187543869, -0.08028849214315414, 1.0546917915344238...
def _ check _ closed _ deep ( self ) : if self. _ closed : return true try : self. get ( zmq. type ) except zmqerror as e : if e. errno = = zmq. enotsock : self. _ closed = true return true elif e. errno = = zmq. eterm : pass else : raise return false
[ -0.9161099791526794, 0.47722405195236206, 0.8787590265274048, -0.5865644216537476, -0.19416400790214539, 0.4582834541797638, 0.05209864303469658, -1.162859320640564, -0.5089775323867798, -0.49306684732437134, 0.5766886472702026, 0.7885032296180725, -1.5789486169815063, 0.9595555663108826, ...
def load _ v1 ( * args ) : return _ snap. tundirnet _ load _ v1 ( * args )
[ -1.1616477966308594, 0.09819480031728745, 0.3242204487323761, 0.46075350046157837, 0.3393210768699646, 0.7262054681777954, 0.43956097960472107, -0.605255126953125, -0.663145899772644, 1.2070823907852173, 0.28505566716194153, -0.00013201577530708164, -0.8618907928466797, -0.1298013180494308...
def getmxbicon _ pneanet ( * args ) : return _ snap. getmxbicon _ pneanet ( * args )
[ -0.6087596416473389, 0.5172536969184875, 0.4385989308357239, 1.015511393547058, -0.36093148589134216, 0.25272688269615173, -1.0754555463790894, -0.6413213014602661, -1.0715453624725342, -0.5581335425376892, -0.8739621639251709, -0.6093538999557495, -1.2056353092193604, -0.2333310842514038,...
def read ( self, path, *, offset = 0 ) : # pylint : disable = too - many - locals path = path. encode ( " utf - 8 " ) chunk _ size = chunk _ size start _ offset = offset encoded = ( struct. pack ( " < bxhii ", filetransferservice. read, len ( path ), offset, chunk _ size ) + path ) self. _ write ( encoded ) b = bytearr...
[ -0.0782478004693985, -0.2783190906047821, 1.041221261024475, -0.5119332075119019, -0.2998069226741791, -0.058619722723960876, -0.009860942140221596, -0.33864447474479675, -0.6944154500961304, -0.3959622085094452, 0.03411298990249634, 0.33862555027008057, -0.6799842715263367, -0.41631919145...
def govpxeod _ download ( self, download = true ) : if download : self. download _ data ('govpxeod')
[ 0.08498828113079071, 0.16772519052028656, 0.35158976912498474, 0.16827528178691864, -0.18626318871974945, 1.2279678583145142, -0.3316486179828644, -0.3413667380809784, 0.9343287348747253, 0.42611342668533325, 0.596701979637146, 0.27765390276908875, -0.7792972326278687, 0.5316906571388245, ...
def closefileandsaveasasync ( ws, filepath, handle ='', overwrite ='false ', compress ='false') : command = " femtoapifile. closefileandsaveasasync ('" + str ( filepath ) + " ','" + str ( handle ) + " ', " + str ( overwrite ) + ", " + str ( compress ) + " ) " simplecmdparser = ws. sendjscommand ( command ) resultcode =...
[ -1.0368174314498901, -0.1512453705072403, 0.6826137900352478, -0.16921135783195496, -0.25143176317214966, -0.5589205026626587, 0.20358610153198242, -0.94293612241745, -0.46096912026405334, -0.4271678030490875, -0.15314234793186188, -0.09000584483146667, -0.35418373346328735, 0.652056574821...
def _ _ len _ _ ( self ) : return ( np. ceil ( self. n _ samples * 340 / float ( self. batch _ size ) ) ). astype ( np. int )
[ 0.44599294662475586, 0.1894817352294922, 0.4421926438808441, -0.3794213533401489, 0.47380194067955017, 0.27337196469306946, -0.1091717779636383, -0.5915396809577942, 0.3214746415615082, 0.41637909412384033, -0.15365193784236908, -0.16456714272499084, -0.023079698905348778, 0.36295726895332...
def get _ absolute _ url ( self ) : # ic is the primary key for patient return reverse ('patient _ detail ', args = [ str ( self. identity _ card _ number ) ] )
[ 0.21040374040603638, -0.2585308849811554, 0.5544753074645996, -0.2398288995027542, 1.037818193435669, 0.9071471095085144, -0.5260541439056396, 1.005189299583435, -0.34248554706573486, -0.2788960039615631, 0.826519787311554, 0.4199433922767639, 0.4171348512172699, -0.4052559733390808, -0....
def forward ( self, x ) : x = 2 * x + self. pe [ :, : x. size ( 1 ) ]. repeat ( x. shape [ 0 ], 1, 1 ) return x
[ -0.5188810229301453, 1.3293589353561401, 0.4745955169200897, -0.44345352053642273, -0.46006619930267334, 0.9363885521888733, 0.3696455955505371, 0.14482957124710083, 0.5546486377716064, 0.1386810839176178, -0.13194797933101654, 0.45208740234375, 0.26811909675598145, -0.47692057490348816, ...
def getval ( self, * args ) : return _ snap. tstrv _ getval ( self, * args )
[ -0.6541322469711304, 0.8670220971107483, 0.17876097559928894, -0.31163787841796875, 0.7390092015266418, -0.20335526764392853, 1.0526460409164429, 0.21785254776477814, -0.6732120513916016, -0.499559611082077, -0.17626261711120605, -0.20355503261089325, 0.5320947766304016, 0.1077024340629577...
def make _ local _ storage ( path, env = none ) : path = str ( path ) # check that the data directory is writable try : if not os. path. exists ( path ) : action = " create " # when running in parallel, it's possible that multiple jobs will # try to create the path at the same time. use exist _ ok to avoid # raising an...
[ 0.034116439521312714, 0.5189288258552551, 0.7255207300186157, -0.23936809599399567, 0.00925272423774004, 0.2970393896102905, 0.7543259859085083, -0.12208050489425659, -0.3350757658481598, -0.1526702493429184, -0.3328244686126709, -0.09979847818613052, -0.11260774731636047, 0.09200346469879...
def check _ int _ constraints _ trans _ consistency ( constraints _ trans, vranges = none ) : if vranges is none : vranges = { } def _ check _ forward ( constraints1, constraints2, varmap, backvarmap ) : ana = tvm. arith. analyzer ( ) all _ vranges = vranges. copy ( ) all _ vranges. update ( { v : r for v, r in constra...
[ -0.2649790644645691, -0.6509975790977478, 0.778161883354187, -0.25381991267204285, -0.42493560910224915, 0.3347802758216858, 0.3979550302028656, 0.1096051037311554, -0.46570536494255066, 0.9690025448799133, 0.008616916835308075, 0.07746066153049469, -0.5660921335220337, -0.4146539270877838...
def get _ access _ token _ url ( self ) : return urllib. parse. urljoin ( self. _ server _ url, " portal " )
[ 0.45671021938323975, -0.8129674792289734, 0.3436945974826813, -0.5896772146224976, -0.24422340095043182, 0.9158092141151428, -0.4123404026031494, 1.2093782424926758, -0.15250949561595917, -0.37665697932243347, 0.5089482069015503, 1.5975682735443115, 0.04622449353337288, -0.1723529547452926...
def view ( self, uuid ) : from hydrat. display. tsr import render _ tasksetresult tsr = self. store. _ get _ tasksetresult ( uuid ) confusion _ matrix = tsr. overall _ confusion _ matrix ( self. interpreter ). sum ( 0 ) used _ classes = ( confusion _ matrix [ :, 0 ] + confusion _ matrix [ :, 3 ] ) > 0 summary = self. s...
[ -0.28805071115493774, 0.6761265397071838, 0.9685986042022705, -1.2655237913131714, -0.3205430507659912, -0.6612298488616943, 0.6755958795547485, 0.13337264955043793, -0.5648896098136902, 0.10685176402330399, 1.3499172925949097, -0.33836278319358826, 0.6126132011413574, -0.03830631077289581...
def add ( self, expr, type = " text ", required = false ) : self. _ add _ expr ('', expr, self. _ params, type, required )
[ -1.1527982950210571, 0.219760000705719, 0.43784159421920776, -0.18986324965953827, -0.12768062949180603, 0.48501816391944885, -1.0338144302368164, 0.30580419301986694, 0.3235720098018646, 0.48468488454818726, 0.1552262306213379, 1.4613996744155884, -0.7518505454063416, 0.7475122213363647, ...
def _ _ eq _ _ ( self, * args ) : return _ snap. tneanetnodei _ _ _ eq _ _ ( self, * args )
[ -1.3237810134887695, 0.33187198638916016, -0.25476154685020447, -1.2774018049240112, 0.4927818179130554, 0.2795197069644928, 0.24629119038581848, -0.5993977785110474, -0.4284127950668335, 1.4694327116012573, -0.14523418247699738, -1.482149600982666, 0.7583270072937012, 0.43655669689178467,...
def load _ manual _ references ( paths = none, extra _ csl _ items = none ) - > dict : if paths is none : paths = [ ] if extra _ csl _ items is none : extra _ csl _ items = [ ] from manubot. cite. csl _ item import csl _ item csl _ items = [ ] paths = list ( dict. fromkeys ( paths ) ) # remove duplicates for path in pa...
[ -0.21835213899612427, -0.20630128681659698, 0.560177743434906, 0.32491981983184814, -0.6280005574226379, 0.5719209313392639, -0.4753624498844147, 0.729396641254425, -0.8531771302223206, 0.4992640018463135, -1.1230581998825073, -0.3714310824871063, -0.04243330657482147, 0.6180686354637146, ...
def tstrutil _ splitlines ( * args ) : return _ snap. tstrutil _ splitlines ( * args )
[ -1.1952992677688599, 0.4439619481563568, 0.25073471665382385, -0.6108613610267639, 0.3340792953968048, -0.2240135818719864, 0.6419693231582642, 0.19373099505901337, -0.20597191154956818, -0.13557682931423187, -0.5717080235481262, -0.6795589923858643, 0.22418726980686188, 0.1244966834783554...
def _ get _ iterator ( obj ) : if inspect. ismodule ( obj ) : iterator = [ ] [ iterator. extend ( inspect. getmembers ( members ) ) for members in inspect. getmembers ( obj ) ] return iterator else : return inspect. getmembers ( obj )
[ 0.07186377048492432, -0.4539185166358948, 0.4389288127422333, -0.1819489300251007, -0.15933462977409363, 0.14307564496994019, -0.43872183561325073, -0.2820059657096863, 0.7077558040618896, 0.3298999071121216, 0.7642960548400879, 0.7510855793952942, -0.5535794496536255, 0.10971637815237045,...
def test _ policy ( policy, num _ episodes : int = 10, # num _ episodes : int = 1, render : bool = true, num _ iterations : int = 200, log _ iterations : bool = false, policy _ name : str = " random " ) : current _ time = datetime. datetime. now ( ). strftime ( " % y - % m - % d - % h - % m - % s " ) log _ file _ name ...
[ -0.2604247033596039, 0.12089350074529648, 0.6835538148880005, -0.7924630045890808, -0.41871318221092224, 0.3015572726726532, -0.1690891534090042, -0.08510124683380127, 1.1500346660614014, 0.509222149848938, -0.30945590138435364, 0.11902288347482681, -0.29310619831085205, -0.726928234100341...
def delifin ( self, * args ) : return _ snap. tstrintprv _ delifin ( self, * args )
[ -0.21069222688674927, -0.134609192609787, 0.49839770793914795, -1.332453727722168, -0.35626375675201416, 0.6524876356124878, -0.19653619825839996, 0.7064840197563171, -1.4235436916351318, -0.29530972242355347, 0.0207572840154171, 0.2579687237739563, -1.3105562925338745, -0.1333175599575042...
def setupclass ( cls ) : cls. tx _ file = ref _ files [ " 100transcripts _ bed _ tabix " ] cls. cds _ file = ref _ files [ " 100cds _ bed _ tabix " ] cls. as _ cds _ file = ref _ files [ " 100as _ cds _ bed _ tabix " ] cls. tx _ hash = tabixgenomehash ( cls. tx _ file, data _ format = " bed " ) cls. cds _ hash = tabixg...
[ -0.2654546797275543, -0.5204388499259949, 0.5649038553237915, -0.694315493106842, -0.055447470396757126, 0.12914085388183594, -0.0015552656259387732, -0.20433218777179718, -0.2586968243122101, -0.16847260296344757, -0.36639997363090515, 0.04055922478437424, 1.0489896535873413, 0.2643490731...
def start _ trap _ listener ( self, system _ name, custom _ mib _ path = none, load _ mib _ module ='snmpv2 - mib, snmp - community - mib') : status = true wdesc = " starting trap listener " utils. testcase _ utils. psubstep ( wdesc ) snmp _ parameters = ['ip ','snmp _ trap _ port ','community ','snmp _ username ','sec...
[ 0.4542844295501709, -1.213566780090332, 0.5933501720428467, -0.17524653673171997, -0.39342090487480164, -0.1089448407292366, -0.17611481249332428, 0.2443663328886032, 0.10186929255723953, 0.2659482955932617, -0.559679388999939, 0.3126215934753418, -0.6664811968803406, 0.487016499042511, ...
def set _ notification ( self, access _ token, user _ token, notification _ count ) : payload = { " api _ key " : self. api _ key, " access _ token " : access _ token, " user _ token " : user _ token, " notification _ count " : notification _ count } r = requests. post ( self. base _ url + " setnotification ", params =...
[ -0.42426398396492004, -0.14757709205150604, 0.4818466007709503, 0.44198906421661377, 0.5296285152435303, -0.41019323468208313, -0.8831102252006531, 0.18704473972320557, -0.7372357845306396, 0.932990550994873, -1.386875033378601, 0.9755826592445374, -0.14159530401229858, -0.3480013608932495...
def set _ htpasswd ( force ) : htpasswd _ file = current _ app. config ['root'] +'/ etc / nginx / htpasswd'htpasswd _ path = path ( htpasswd _ file ) user = current _ app. config ['name'] secret _ key = current _ app. config ['secret _ key'] print ('setting password for user % s to % s.'% ( user, secret _ key ) ) if no...
[ -0.1993246227502823, 0.12583845853805542, 0.62726891040802, 0.8401972651481628, 0.6509218215942383, 1.0871124267578125, 0.6060923933982849, 0.15783320367336273, -0.6974667906761169, 0.492520809173584, -0.5758952498435974, 0.22463205456733704, -0.004452477674931288, 0.6878888010978699, 0....
def _ _ init _ _ ( self ) : self. graph = tf. graph ( ) graph _ def = none with tf. gfile. gfile ( frozen _ graph _ name, " rb " ) as f : print ( frozen _ graph _ name ) graph _ def = tf. graphdef ( ). fromstring ( f. read ( ) ) if graph _ def is none : raise runtimeerror ('cannot find inference graph in tar archive.')...
[ 0.7346534132957458, 0.44780609011650085, 0.4542181193828583, 0.05007697269320488, 0.2755565047264099, -0.15006409585475922, 0.4615502655506134, 0.13066773116588593, -0.5680574774742126, 0.10774548351764679, -0.686832845211029, 0.5701795220375061, 0.5023420453071594, -0.06599624454975128, ...
def flex _ id ( self, flex _ id ) : self. _ flex _ id = flex _ id
[ 1.5246670246124268, -1.0328857898712158, 0.2634880840778351, 0.9130256175994873, 0.19617700576782227, 0.7446096539497375, -0.7038031816482544, 0.801313579082489, 0.29792681336402893, -1.0757025480270386, -0.9103056192398071, 0.17045336961746216, 0.21376492083072662, 1.109230875968933, 0....
def counter ( self ) - > int | float : max _ jitter = self. _ base / 16. 0 value = self. _ base + random. random ( ) * max _ jitter - max _ jitter / 2 # noqa : s311 self. _ base = min ( self. _ base * 2, self. _ max ) return value
[ 0.5434644818305969, 0.2568517029285431, 0.6244400143623352, 0.02072943188250065, -0.214272603392601, 0.3529341220855713, 0.5332657694816589, -0.5499840974807739, 0.06571708619594574, -0.7400651574134827, -0.6123585104942322, -0.2130558043718338, -0.18278546631336212, 0.26607686281204224, ...
def get _ help ( cls ) - > str : return ( " boundary conditions for each axis are set using a list : [ bc _ x, bc _ y, " " bc _ z ]. if the associated axis is periodic, the boundary condition needs " f " to be set to'periodic '. otherwise, { boundarypair. get _ help ( ) } " )
[ 0.7646614909172058, -0.47781094908714294, 0.40333595871925354, 0.02471824549138546, 0.4953593313694, 0.17681941390037537, 0.9206199645996094, -0.5178810358047485, -1.5419056415557861, 0.37240877747535706, 0.678347110748291, 0.3924413323402405, -0.3367878496646881, -0.16259871423244476, 0...
def test _ valid _ command ( self, * _ ) : result = run _ flow ( ['dumb ','command'],'fake contents') self. assertequal ( result, { " dumb " : false } )
[ -0.20116670429706573, 0.07649463415145874, 0.5067648887634277, -0.1983874887228012, 0.28098320960998535, 0.47683703899383545, -0.3036235570907593, -0.27551692724227905, 0.5279224514961243, -1.6320898532867432, -0.8750188946723938, -0.3161591589450836, -0.4952719211578369, 0.335443258285522...
def inv _ marker _ horizontal ( n _ inv, hrange ) : if n _ inv > 1 : x _ inv = list ( np. linspace ( - hrange, hrange, n _ inv ) ) else : x _ inv = [ 0 ] return x _ inv
[ -0.9978270530700684, 0.3720780611038208, 0.4487736225128174, 0.6528204679489136, 0.35673514008522034, 0.6105549931526184, -0.7326999306678772, 1.1249828338623047, -0.7003442645072937, 0.781416654586792, -1.0732545852661133, -0.07736395299434662, -0.3701729476451874, -0.29564979672431946, ...
def getmodename ( self, * args ) : return _ snap. tmmnet _ getmodename ( self, * args )
[ -0.5444697737693787, 0.2309117466211319, 0.7181205749511719, 0.7179265022277832, 0.7972762584686279, -0.09891553223133087, 0.06218686327338219, 0.024532943964004517, -0.18216314911842346, 0.40434905886650085, -0.422913134098053, -0.7412999868392944, -0.7842772006988525, 0.968034029006958, ...
def getmegastr ( * args ) : return _ snap. tuint _ getmegastr ( * args )
[ -1.2337065935134888, 0.6223552227020264, 0.4190101623535156, -0.0539277121424675, 0.46159470081329346, 0.3843493163585663, -0.09350040555000305, -0.18355464935302734, -1.0943024158477783, -0.42905643582344055, 0.7964829802513123, -0.773418128490448, -1.3714914321899414, 0.654338538646698, ...
def update _ all _ flowrules ( self ) : for valve in self. valves _ manager. valves. values ( ) : valve. update _ tunnel _ flowrules ( )
[ -0.08440203219652176, -1.0591853857040405, 0.5249384045600891, -0.07109392434358597, -0.21867014467716217, 0.5563934445381165, -0.05811271071434021, -0.3481869101524353, -0.21075409650802612, -0.22867654263973236, 0.13942399621009827, 0.45539626479148865, -0.35243093967437744, 0.9283702373...
def execute ( cls ) : config = configurationreader ( ). read ('config. yml') try : scheme = config ['scheme'] host = config ['host'] port = config ['port'] path = config ['path'] except keyerror as exc : print ( f'missing key from from the confing file : { exc }') return request = predictionrequest ( scheme, host, port...
[ -0.4787919223308563, -0.41292503476142883, 0.6703922748565674, 0.6181203126907349, 0.3281862735748291, 0.6722220182418823, 0.23904788494110107, 0.7518004179000854, -1.7082931995391846, 0.6478340029716492, 0.20866526663303375, 0.19870609045028687, -0.41023218631744385, 0.3414490520954132, ...
def update _ device _ status ( accesstoken = none, devicekey = none, devicerememberedstatus = none ) : pass
[ -0.8202552795410156, 0.11114580184221268, 0.27081945538520813, 0.6105231046676636, 0.17115941643714905, 0.10051126778125763, 0.19646817445755005, 0.4927440583705902, 0.7704082131385803, -0.10044889897108078, -0.34814172983169556, 0.9869013428688049, -0.7532691359519958, 0.00487422943115234...
def navigate _ to _ next _ page ( self, soup ) : print ('current page % d'% self. current _ page _ number ) print ('next page % d'% ( self. current _ page _ number + 1 ) ) next _ page _ number = self. current _ page _ number + 1 next _ page _ link = self. base _ url +'& page ='+ str ( next _ page _ number ) print ('nex...
[ -1.5427113771438599, -0.16637186706066132, 0.463664710521698, 0.09368469566106796, 0.4436182975769043, -0.1909133940935135, 0.1726304441690445, -0.10655633360147476, 0.5034189224243164, -0.8075377345085144, -0.02913914993405342, 0.45616501569747925, 0.20583319664001465, 0.28343233466148376...
def test _ separate _ state _ from _ functionality ( self ) : b = self. create _ balloon ( ) balloon _ state = b. state self. assertisinstance ( balloon _ state, balloon. balloonstate ) self. assertnotisinstance ( balloon _ state, balloon. balloon )
[ 0.39429333806037903, 0.08896408975124359, 0.39238202571868896, 0.6058355569839478, -0.04676273092627525, 1.0852242708206177, 0.944612979888916, -0.723212480545044, 1.6801961660385132, -1.6714799404144287, -0.7161526679992676, 0.28730735182762146, -0.4348040819168091, -0.32210773229599, 1...