text
stringlengths
25
2.19k
embedding
listlengths
768
768
def is _ authenticated ( self ) : return self. authenticated
[ -0.9935930967330933, -0.6267368197441101, 0.2601105868816376, 0.7287286520004272, 0.0924510508775711, -0.15222379565238953, -0.36434516310691833, 0.2319079488515854, 0.6711481809616089, -0.32800737023353577, -1.2572728395462036, 0.6505666375160217, -0.48348909616470337, -0.9342561364173889...
def getr ( self ) : return self. r
[ -0.007351875305175781, -0.43893441557884216, 0.2556000053882599, 0.4652220904827118, -0.20356997847557068, 0.5564641356468201, 0.3921428620815277, -0.36139556765556335, -0.06442642211914062, -1.1860934495925903, 0.15866966545581818, 0.9215535521507263, -0.7233087420463562, -0.1414617896080...
def list _ configurations ( self, configurations _ request : union [ _ models. configurationsrequest, io ], skip _ token : optional [ str ] = none, * * kwargs : any ) - > iterable [ " _ models. configuration " ] : api _ version = self. _ get _ api _ version ('list _ configurations') if api _ version = ='2020 - 12 - 01 ...
[ -2.118945598602295, 0.14173468947410583, 1.0516598224639893, 0.18070842325687408, -0.28310009837150574, -0.6235118508338928, -0.002156867180019617, -0.6752831935882568, 0.9978697299957275, 0.7141566276550293, -0.5128118991851807, -0.3555063307285309, 0.1395106464624405, 0.02002112567424774...
def publish _ message ( producer, topic, message ) : logging. info ( " publish json messages to ", str ( topic ) ) producer. send ( topic, message )
[ -0.8759516477584839, -0.3640526831150055, 0.4697328805923462, 0.2578571140766144, 0.3974755108356476, -0.18918845057487488, -0.26091551780700684, -0.6217557787895203, -1.1606441736221313, 0.6265930533409119, 0.7451702356338501, 0.9576163291931152, -0.48228827118873596, 0.043445806950330734...
def parse _ db _ url ( database _ url ) : parsed _ url = urlparse. urlparse ( database _ url ) scheme = parsed _ url. scheme user = parsed _ url. username or'' password = parsed _ url. password or'' host = parsed _ url. hostname or'' database = parsed _ url. path [ 1 : ] query _ params = dict ( urlparse. parse _ qsl ( ...
[ -0.5205625295639038, -0.13893656432628632, 0.558037281036377, 0.2724888324737549, 0.4849247336387634, -0.39067018032073975, 0.09879212081432343, 0.29248595237731934, -0.16523657739162445, 0.009266315028071404, -0.23758001625537872, 0.28761470317840576, 0.06396743655204773, 0.70825690031051...
def ho _ wavefunction ( x0, hess, masses ) : # sqrt ( mi * mj ) msq = np. sqrt ( np. outer ( masses, masses ) ) # convert hessian to mass - weighted coordinates hess _ mwc = hess / msq # compute matrix square root of mass - weighted hessian and # multiply again by masses # psi ( x1,..., xd ) ~ exp ( - 1 / 2 ( x - x0 ) ...
[ 1.3353824615478516, -0.5242330431938171, 0.5276161432266235, -0.21573464572429657, -0.5431455969810486, -0.22975613176822662, -0.6215161085128784, 0.6033415198326111, 0.1611734926700592, 0.008789430372416973, -0.2630334198474884, 0.32143256068229675, -0.0696561262011528, 0.7478908896446228...
def _ get _ errors ( response, exc ) : response. data = {'errors': [ ] } for _ exc in getattr ( exc,'excs ', [ exc ] ) : response. data ['errors']. append ( _ get _ error ( _ exc ) ) return response
[ -0.49785280227661133, -0.1550857275724411, 0.5102172493934631, -0.8018509745597839, 0.9032184481620789, -0.7653719782829285, -1.3745895624160767, 0.4560454487800598, 0.9423765540122986, -0.2811334729194641, -0.6140428185462952, 0.12197659909725189, 1.3617956638336182, -0.26944881677627563,...
def get _ with _ transaction ( transaction : transaction, eventref : documentreference ) - > type [ event ] : try : snapshot : documentsnapshot = eventref. get ( transaction = transaction ) snapshotdict : dict = snapshot. to _ dict ( ) event = event. from _ dict ( snapshotdict ) event. set _ firestore _ ref ( eventref ...
[ 0.7797645926475525, 0.32566460967063904, 0.5074939727783203, -0.2150951325893402, -0.6119044423103333, -0.42794033885002136, -0.798840343952179, -0.4742242991924286, 0.5361378192901611, 0.6377519965171814, 0.4171190559864044, 0.5681151151657104, 0.5269452929496765, -0.5085411667823792, 0...
def blur ( self, kernel _ size = 3 ) : return ( cv2. blur ( self. im, ( kernel _ size, kernel _ size ) ) )
[ 0.45316052436828613, -0.04953525960445404, 0.3359778821468353, 1.2549281120300293, -0.6176031827926636, -0.13175831735134125, -1.1865748167037964, -0.8900094032287598, 0.32733333110809326, -0.1598954200744629, 0.07874235510826111, 0.24244193732738495, -0.2492055892944336, 0.009081377647817...
def _ verify _ response ( self, response : jsonobject ) - > none : if is _ server _ error _ message ( response ) : self. _ raise _ server _ error ( response )
[ 0.3189844489097595, -0.06189337372779846, 0.29152846336364746, 0.6402414441108704, 0.4772750437259674, -0.2516191005706787, -0.08030726760625839, -0.915083110332489, 0.7491467595100403, 0.11313585937023163, -1.111423134803772, 0.43987926840782166, -0.5175902247428894, 0.5733639597892761, ...
def user _ email _ exists ( self ) : cur. execute ( " select * from users where email = % s ; ", ( self. email, ) ) self. user = cur. fetchone ( )
[ 0.13030306994915009, 0.11018983274698257, 0.34286215901374817, -0.08248525112867355, 1.0143665075302124, 0.06521613895893097, -0.4288730323314667, 0.6365649700164795, -0.9495262503623962, 0.05639725178480148, -0.380735844373703, 0.2552679777145386, 0.08006572723388672, -0.7534698843955994,...
def agregar _ cancion _ sin _ guardar ( self, ruta _ cancion ) : cancion = cancion ( ruta _ cancion ) self. lista _ canciones. insert ( cancion )
[ -0.9455412030220032, -0.5649139881134033, 0.5020425319671631, 0.7555076479911804, 0.8519153594970703, 0.7318257689476013, 0.1360865980386734, 0.5411399006843567, 0.7231173515319824, -0.023901527747511864, -1.1640839576721191, 0.14057159423828125, -0.8592702746391296, 0.10276355594396591, ...
def tokenize ( self, lexical _ input : str = none, * * kwargs ) - > list [ list [ str ] ] : if " input " in kwargs : lexical _ input = kwargs [ " input " ] warning _ message = " the'input'parameter is deprecated and will be removed in the next major release. " warning _ message + = " use the'lexical _ input'parameter i...
[ -0.09618138521909714, 0.11320564895868301, 0.5664417147636414, 0.7152106165885925, 0.3439866006374359, -1.0033361911773682, -0.7526167035102844, 0.7493187785148621, -0.124406598508358, 0.31467312574386597, -0.41759568452835083, 0.44418367743492126, -1.1044012308120728, 0.7396935224533081, ...
def stoptest ( self, method ) : self. _ calls. append ('stoptest')
[ -0.7912397384643555, 0.5043445825576782, 0.11764836311340332, -0.4651901125907898, 0.8578725457191467, 0.393539160490036, 0.32782724499702454, -0.812200129032135, -0.17447663843631744, 0.24106277525424957, -0.4270932376384735, 0.033239852637052536, -1.1365422010421753, 0.007340818643569946...
def _ retrieve _ http _ params ( cls, args ) : endpoint = cls. endpoints [ args. endpoint _ name ] if not endpoint. get ('resource') : path = endpoint ['path'] else : path ='% s / % s'% ( endpoint ['path'], args. resource ) if not endpoint. get ('params') : return ( endpoint ['method'], path, { } ) params = { param : g...
[ -0.30053994059562683, -0.7370702624320984, 0.6560370326042175, -0.3131336271762848, 0.6405551433563232, -0.8043270111083984, -0.5108734965324402, -0.6570857167243958, -1.3260520696640015, 0.4100315272808075, 0.4599781632423401, -0.16401901841163635, -0.045274488627910614, 0.614436686038971...
def tximport ( samples, ensttogene ='ensttogene. csv ', quant _ type ='salmon') : sample _ list = [ ] grp _ list = [ ] for sample in samples : if type ( sample ) = = str : sample _ list. append ( sample ) grp _ list. append ( sample ) elif type ( sample ) = = tuple : for rep in sample : sample _ list. append ( rep ) gr...
[ 0.027514571323990822, -0.2973528504371643, 0.6822819113731384, 0.05743739753961563, 0.06902074068784714, 0.09513822942972183, 0.3176901638507843, -0.48128849267959595, -0.5636733174324036, 0.7143842577934265, -0.27866753935813904, 0.19080698490142822, -0.34682101011276245, -0.3915493786334...
def nptype ( self, n ) : npt = self. _ nptypes. get ( n, none ) if npt is none : npt ='np. npy _ object'self. _ nptypes [ n ] = npt return npt
[ -0.7067250609397888, 0.1451665312051773, 0.4680354595184326, -0.5511441826820374, 0.5923334956169128, -0.22322700917720795, 0.2325478196144104, -1.5970557928085327, 1.011592984199524, -0.24192887544631958, -1.0599831342697144, 0.05210001766681671, 0.13217321038246155, 0.7160301804542542, ...
def _ fc ( self, n ) : return self. reference * 10. 0 * * ( 3. 0 / self. order / 10. 0 ) * 2. 0 * * ( n / self. order )
[ 0.24382540583610535, 0.7721192836761475, 0.192676842212677, -0.7107585668563843, 0.27680203318595886, -0.9553274512290955, 0.3356872498989105, -0.8454728722572327, -0.1546606719493866, -0.3477790057659149, 0.18273700773715973, -0.30558472871780396, 0.014748324640095234, 0.18480075895786285...
def verify _ password ( stored _ password, provided _ password ) : salt = stored _ password [ : 64 ] stored _ password = stored _ password [ 64 : ] pwdhash = hashlib. pbkdf2 _ hmac ('sha512 ', provided _ password. encode ('utf - 8'), salt. encode ('ascii'), 100000 ) pwdhash = binascii. hexlify ( pwdhash ). decode ('asc...
[ 0.7620624303817749, -0.3119146525859833, 0.3559117913246155, 0.7938001751899719, -0.15757887065410614, 0.3779779374599457, -0.7458176016807556, 0.6529066562652588, 0.7625325322151184, -0.04285785183310509, -0.09875138103961945, 1.0316405296325684, -0.3191056251525879, 0.545340895652771, ...
def build _ prometheus _ cli _ args ( charm _ config ) : prometheus _ cli _ args = [ " - - config. file = / etc / prometheus / prometheus. yml ", " - - storage. tsdb. path = / prometheus ", " - - web. enable - lifecycle ", " - - web. console. templates = / usr / share / prometheus / consoles ", " - - web. console. libr...
[ -0.16739965975284576, -0.1167696937918663, 0.7866911292076111, -0.08516941219568253, 0.5676722526550293, 0.5945292115211487, -0.5930200815200806, -0.2029273509979248, -0.525212824344635, 0.6498637199401855, -0.32896822690963745, 0.4659014940261841, -0.3816656172275543, 0.6418512463569641, ...
def rewrite _ complex _ signature ( function, signature : sequence [ tf. tensorspec ] ) : if not all ( [ spec. dtype. is _ complex for spec in signature ] ) : raise notimplementederror ( " signatures with mixed complex and non - complex " " tensor specs are not supported. " ) # rewrite the signature, replacing all comp...
[ -0.5801926851272583, -0.8916922211647034, 0.23620425164699554, 0.6052489876747131, 0.24487076699733734, -0.4969904124736786, 1.2907236814498901, 0.942020058631897, -0.24651163816452026, 0.8054247498512268, -0.5070897936820984, -0.40695086121559143, 0.9625273942947388, -0.05707821622490883,...
def write ( self, outfile, * * options ) : from. import io func = { '. txt': io. tospear, '. hdf5': io. tohdf5, '. h5': io. tohdf5, '. sdif': io. tosdif, } base, ext = os. path. splitext ( outfile ) if ext in func : return func [ ext ] ( self, outfile, * * options ) else : raise valueerror ( " format not supported " )
[ -0.4088158905506134, 0.03721502423286438, 0.6474557518959045, 1.0929007530212402, -0.14269950985908508, -0.01782250963151455, 0.17331406474113464, -0.3074725866317749, 0.20494015514850616, -0.15545372664928436, 0.06042119115591049, -0.4825011193752289, -0.0967617779970169, 0.05961611866950...
def test _ logfilealwaysactive ( self ) : oldsetuplogfile = self. runner. _ setuplogfile l = [ ] def setuplogfile ( ) : oldsetuplogfile ( ) l. append ( self. runner. _ logfileobserver ) self. runner. _ setuplogfile = setuplogfile self. runner. run ( self. test ) self. runner. run ( self. test ) self. assertequal ( len ...
[ 0.495522677898407, -0.01653071865439415, 0.600196123123169, -0.17157334089279175, 0.915087878704071, 0.11377059668302536, 0.24983373284339905, 0.12818925082683563, -0.7963836789131165, -0.39548030495643616, -0.8580099940299988, -0.6218435764312744, -0.24501563608646393, 0.4717365801334381,...
def step _ update ( self, num _ updates ) : if self. args. schedule is none : self. lr = self. args. lr [ 0 ] else : if num _ updates in self. args. schedule : if'restarting _ iter'in self. optimizer. _ optimizer. param _ groups [ 0 ] : for param _ group in self. optimizer. _ optimizer. param _ groups : param _ group [...
[ 0.11593014746904373, 0.11633414030075073, 0.5218465328216553, -0.4391922056674957, -0.6360720992088318, -0.2136618047952652, -0.08981923758983612, 0.2837567925453186, -0.013476415537297726, 0.1290574073791504, 0.6608237028121948, 0.011645650491118431, -1.0872578620910645, 0.138865470886230...
def print _ instance ( self, compute, project, zone, instance ) : import json myinstance = self. get _ instance ( compute, project, zone, instance ) if self. params [ " verbose " ] > 2 : print ( json. dumps ( myinstance, indent = 4, separators = ( ", ", " : " ) ) ) else : address = " " if " networkinterfaces " in myins...
[ -0.5404032468795776, -0.5869851112365723, 0.6727876663208008, -1.0037485361099243, -0.5019664168357849, 0.529123067855835, -0.32064899802207947, 0.30049699544906616, -0.33121591806411743, 0.7690386772155762, -0.028793830424547195, 0.9969645142555237, -0.5505183339118958, 0.3209795653820038...
def test _ bad _ noauth ( self ) : self. _ test _ post ( file _ path = self. form _ with _ case, authtype ='noauth ', expected _ status = 403, )
[ -0.2799895703792572, 0.9209155440330505, 0.24697794020175934, 0.6971623301506042, 0.6344684958457947, 0.7272796630859375, 0.29896965622901917, -0.8174195885658264, -0.3594198226928711, -0.7299302220344543, 0.22716040909290314, 0.38290515542030334, 0.04091186448931694, 0.7076876759529114, ...
def clean _ sentence ( s ) : # s = unicodedata. normalize ('nfd ', s ) # s = s. encode ('utf - 8 ','ignore') s = s. decode ( " utf - 8 " ) s = re. sub ( r'+ ','', s. strip ( ) ) # part1 : remove invalid or duplicated chars / segmentations s = re. sub ( regexes ['repeat _ puncts'], lambda x : remove _ repeat _ puncts ( ...
[ 0.7753857970237732, -0.49137648940086365, 0.7607954144477844, 0.2971976697444916, -0.8865877985954285, -1.2385671138763428, -0.0187832061201334, 0.682336688041687, 0.7033604383468628, 0.22840628027915955, -0.11679981648921967, -0.2742169499397278, 0.4257016181945801, -0.13296647369861603, ...
def password ( self ) : return self. _ data. get ('inputs ', { } ). get ('password')
[ -0.6284953355789185, -0.3290650248527527, 0.4002313017845154, 0.37074241042137146, 0.4411478638648987, 0.19870039820671082, 0.44937989115715027, -0.35032919049263, 0.17053498327732086, -0.413741797208786, -0.30116620659828186, 0.06378326565027237, -0.33308929204940796, -0.05840830132365227...
def section ( title, element _ list ) : sect = {'type':'section ','title': title, } if isinstance ( element _ list, list ) : sect ['elements'] = element _ list else : sect ['elements'] = [ element _ list ] return sect
[ -0.6571041345596313, 0.005971086677163839, 0.27669963240623474, 0.03125261515378952, -0.5841954350471497, 0.27805936336517334, -0.8156939744949341, 0.24519406259059906, 0.22203336656093597, 0.2285645753145218, -0.47745275497436523, -0.204390287399292, 0.16398003697395325, 0.933422029018402...
def test _ missing _ start _ date ( self ) : # validate a form with a missing ` ` start _ date ` ` value form = self. form _ data ( operator _ 1 = self. staff _ user. pk, role _ 1 = self. project _ role. pk, start _ date _ 1 = " 2020 - 06 - 22 ", end _ date _ 1 = " 2020 - 06 - 27 ", note _ 1 = " ", operator _ 2 = self....
[ 0.22160980105400085, -0.2783420979976654, 0.4659830629825592, -0.12925221025943756, 0.06786730885505676, 0.6200871467590332, 0.18324987590312958, 0.3407505750656128, -1.0457085371017456, -0.4951269328594208, -0.38672223687171936, 0.3829342722892761, 0.23403175175189972, 0.3603675365447998,...
def compute _ attention _ masks _ for _ fprop ( inputs : jtensor, paddings : optional [ jtensor ] = none, causal _ attention : optional [ bool ] = false, segment _ mask : optional [ jtensor ] = none, cross _ inputs : optional [ jtensor ] = none, cross _ paddings : optional [ jtensor ] = none, cross _ segment _ mask : o...
[ -0.6070719957351685, -0.7351665496826172, 0.7786449193954468, 0.8857707381248474, 0.46525445580482483, -0.29933857917785645, 0.9674652814865112, -0.5879430174827576, 0.3607659339904785, -0.26978015899658203, 0.43693578243255615, 0.5571760535240173, 1.0856329202651978, 0.3104921579360962, ...
def halt _ motors ( self ) : try : self. _ write ( self. command _ all _ off, [ 0 ] ) except keyboardinterrupt as e : # pragma : no cover self. _ log. warning ( " keyboard interrupt, % s ", e ) raise e except ioerror as e : # pragma : no cover msg = " failed sending motors halt command, { } ". format ( e ) self. _ log....
[ 0.44272953271865845, -0.239285409450531, 0.47983041405677795, -0.40496236085891724, 0.792772114276886, 0.891994833946228, -0.11339540779590607, 0.06056217849254608, -1.0602500438690186, -0.024972833693027496, 0.15291477739810944, 0.6595609784126282, -0.47841328382492065, 0.1396685242652893...
def _ update ( self, curs ) : curs. execute ( " update mailbox set name =? where id =? ", ( self. name, self. id ) ) assert self. flags is not none curs. execute ( " " " delete from mailbox _ flag where mailbox _ id =? and key ='flag'" " ", ( self. id, ) ) for flag in self. flags : curs. execute ( " " " insert into mai...
[ -0.5092833638191223, -0.22340671718120575, 0.4164159595966339, -0.7759106159210205, -0.34373778104782104, 0.33087965846061707, -0.49512428045272827, 0.04350779950618744, 0.20592334866523743, 0.1578245609998703, -0.6795408129692078, 0.05110996216535568, -1.1001222133636475, 0.02401515841484...
def test _ maccormick ( self ) : myfunc = simul. maccormick nvar = 2 vbounds = np. zeros ( ( nvar, 2 ) ) vbounds [ 0, 0 ] = - 1. 5 vbounds [ 0, 1 ] = 4. vbounds [ 1, 0 ] = - 3. vbounds [ 1, 1 ] = 4. mypb = genop. genop ( 90, 0. 69, 0. 05 ) mypb. verbose = false self. assertequal ( mypb. popsize, 90 ) self. assertequal ...
[ 0.47893303632736206, 0.5157020688056946, 0.5288259387016296, 0.6541226506233215, 0.31684237718582153, -0.004396372940391302, 0.3704201877117157, 0.028109678998589516, -0.41165629029273987, -0.10071419924497604, -0.660034716129303, -0.4056256413459778, -0.9823406934738159, -0.06435078382492...
def _ _ hash _ _ ( self ) : return hash ( self. name )
[ 0.6819472312927246, -0.8632311820983887, 0.3933996558189392, -0.840552806854248, -0.5638169050216675, 0.5520798563957214, -0.6474970579147339, -0.23767897486686707, 0.30342820286750793, -0.39694350957870483, -1.0281107425689697, -0.3162577748298645, -0.0861949548125267, -0.6782200336456299...
async def async _ step _ public _ weather _ areas ( self, user _ input : dict | none = none ) - > flowresult : errors : dict = { } if user _ input is not none : new _ client = user _ input. pop ( conf _ new _ area, none ) areas = user _ input. pop ( conf _ weather _ areas, [ ] ) user _ input [ conf _ weather _ areas ] ...
[ -0.5697634220123291, 0.23526547849178314, 0.44973236322402954, -0.07177814096212387, -0.5922943353652954, 0.6489508152008057, 0.595487654209137, -0.20834429562091827, -0.11070726811885834, 0.4683355689048767, -0.18840152025222778, 0.8077991604804993, 0.09696376323699951, 1.0916616916656494...
def is _ installed ( self, root _ mount _ point ) : desktop _ file = self. find _ desktop _ file ( root _ mount _ point ) if desktop _ file is none : return false return ( self. find _ executable ( root _ mount _ point ) is not none or self. _ search _ tryexec ( root _ mount _ point, desktop _ file ) is not none )
[ 0.6133967638015747, -0.8001970648765564, 0.7565991282463074, 1.2438719272613525, 0.4156954288482666, -0.18586374819278717, -0.18032725155353546, -0.3678092062473297, 0.10161207616329193, -0.42241787910461426, -0.09211204946041107, -0.1782611608505249, -0.2656002938747406, 1.112215280532837...
def setup ( self ) : self. source = buildpokemonbattlewrapper ( ) self. pkmn = buildpokemonbattlewrapper ( ) self. message = " hurt. " self. donemessage = " done. " self. trap = trap ( none, self. message, self. donemessage )
[ -0.541678249835968, 0.1581304967403412, 0.38201844692230225, 0.27497023344039917, 0.9562289714813232, 0.038915857672691345, -0.5179759860038757, -0.5561978220939636, 0.07222482562065125, -0.55398029088974, -1.0179767608642578, -0.28994810581207275, -0.26612985134124756, 0.48438915610313416...
def hide _ all _ legends ( self ) : for legend in self. _ legends. values ( ) : if self. legend _ is _ displayed ( legend ) : self. browser. click ( legend )
[ 0.19126155972480774, -0.12604756653308868, 0.47212499380111694, 0.6113289594650269, 0.30483174324035645, 0.35572630167007446, 0.5553145408630371, 0.42575448751449585, -0.04477386921644211, 0.2075449675321579, 0.01331179216504097, -0.23521102964878082, -0.2549486458301544, 0.807518184185028...
def process _ reviews ( bus _ file = '. data / dataset / business. json ', rev _ file = '. / data / dataset / review. json') : assert isinstance ( bus _ file, str ) assert isinstance ( rev _ file, str ) restid = [ ] for line in open ( bus _ file,'r') : data = json. loads ( line ) if'restaurants'in data ['categories'] o...
[ -0.5551762580871582, -0.7284433245658875, 0.5564801692962646, -0.20362454652786255, -0.6458683609962463, -0.17550964653491974, -0.6133961081504822, 1.3093535900115967, -0.7665700316429138, 0.450912207365036, -0.4435046911239624, 0.44560372829437256, -0.6035742163658142, 0.7365902662277222,...
def timer ( func ) : @ wraps ( func ) def wrapper ( * args, * * kwargs ) : start = time. clock ( ) result = func ( * args, * * kwargs ) elapsed = time. clock ( ) - start print'function { } with arguments : { }, { } took { :. 6f } s. '. format ( func. _ _ name _ _, args, kwargs, elapsed ) return result return wrapper
[ 0.06468196213245392, 0.02539311721920967, 0.8106207251548767, -0.7259424328804016, -0.05421135202050209, -0.2485962212085724, 0.08487261086702347, 0.11358093470335007, 0.08248621970415115, 0.5185064673423767, -0.0839582309126854, 0.8910413384437561, 0.6266619563102722, 0.7079131007194519, ...
def center ( self ) : self. center _ pos = { } self. update ( )
[ 0.17863568663597107, -0.9461485743522644, 0.18664252758026123, -0.65296471118927, 0.19732940196990967, -0.4323747754096985, -0.20870693027973175, 0.8763697743415833, 0.06798506528139114, 0.6451454162597656, -0.6188827753067017, -0.5165247917175293, -0.5116493105888367, 0.48473817110061646,...
def make _ progress _ listener ( description, quiet ) : if quiet : return donothingprogresslistener ( ) elif tqdm is not none : return tqdmprogresslistener ( description ) else : return simpleprogresslistener ( description )
[ 0.6374037861824036, -0.46344730257987976, 0.40653863549232483, -0.7565010190010071, -0.43852078914642334, 0.6428893208503723, -0.6168737411499023, -0.8204088807106018, 0.1385890543460846, -0.43987950682640076, 0.3947778046131134, 0.06124180555343628, -0.3127974271774292, -0.031202623620629...
def get _ html ( url ) : r = requests. get ( url ) html = r. content return beautifulsoup ( html,'html. parser')
[ -0.5214916467666626, 0.48222073912620544, 0.12145264446735382, 0.620110809803009, -0.2531988322734833, 0.3058178722858429, -0.6509084701538086, 0.032881006598472595, 0.00726208183914423, -0.157866969704628, 0.4256495237350464, -0.05766750127077103, 0.4663335978984833, -0.5700168013572693, ...
def main ( ) : cur _ request _ id = 0 # grab command line args args = build _ argparser ( ). parse _ args ( ) # connect to the mqtt server client = connect _ mqtt ( ) # perform inference on the input stream infer _ on _ stream ( args, client )
[ 0.41008198261260986, -0.8633447885513306, 0.7034001350402832, 0.38903433084487915, 0.23607726395130157, 0.5160490274429321, -0.5085387229919434, 0.15705379843711853, -0.6951346397399902, -0.6587615013122559, 0.20374009013175964, 0.7221555709838867, -0.7195116281509399, 0.7881214618682861, ...
def strategy _ 2 ( ) : # checking if i went second - then try the mirroring heuristic or try to get to a square # that is as close to possible to mirroring if game. move _ count % 2 = = 1 : mir _ opp _ pos = ( game. get _ player _ location ( opponent ) [ 1 ], game. get _ player _ location ( opponent ) [ 0 ] ) if game. ...
[ 0.2865133583545685, -0.46379563212394714, 0.5929473042488098, 0.4775761365890503, -0.7369817495346069, 0.05735348165035248, -0.15159043669700623, 0.6913937926292419, 0.11052842438220978, 0.24644242227077484, 0.5071361660957336, 0.24300861358642578, 0.3444141745567322, -0.009255693294107914...
def updateall ( self, t0, dt ) : # generate a random draw and scale by sqrt ( dt ) dw = np. sqrt ( dt ) * np. random. normal ( ) # loop over the things to update and update self. updateanalytical ( t0, dt, dw ) self. updateeulermaruyama ( t0, dt, dw ) self. updatemilstein ( t0, dt, dw )
[ -0.20106899738311768, -0.6890063881874084, 0.44441530108451843, -0.00860780943185091, -0.2488858699798584, 0.960666835308075, -0.6845728754997253, -0.6078152060508728, 0.21217404305934906, 0.24435845017433167, -0.16205903887748718, -0.19486559927463531, 0.5895391702651978, 1.41675341129302...
def summarize _ block ( usage _ key ) : orig _ key, orig _ version = store. get _ block _ original _ usage ( usage _ key ) return { " usage _ key " : str ( usage _ key ), " original _ usage _ key " : str ( orig _ key ) if orig _ key else none, " original _ usage _ version " : str ( orig _ version ) if orig _ version el...
[ -0.39278537034988403, -0.16085754334926605, 0.7566124796867371, -0.6413828134536743, -0.6858570575714111, -0.8220008015632629, 0.13117356598377228, 0.2766084671020508, 0.2468094378709793, 1.1048803329467773, -0.2590165436267853, 0.49222806096076965, 0.3764699697494507, 0.17826786637306213,...
def create ( self, location = none, size = none, tag = none, dimensions = none ) : location = location if location else ( 0, 0 ) size = size if size else self. dimensions dimensions = dimensions if dimensions else self. dimensions child = container ( location, size, tag = tag, dimensions = dimensions ) self. add ( chil...
[ 0.7695155143737793, -0.22139067947864532, 0.6493221521377563, -0.03731140121817589, 0.0025408267974853516, -0.004653962329030037, -0.18920521438121796, 0.012020770460367203, -0.08084238320589066, -1.0470709800720215, -0.42773446440696716, -0.18515907227993011, 0.24412627518177032, 0.416713...
def solve ( self ) - > int : self. _ buffer = deque ( ) for token in self. _ expr : if isinstance ( token, int ) : self. _ buffer. append ( token ) elif isinstance ( token, operator ) : self. _ perform _ calculation ( token ) self. _ result = self. _ buffer. pop ( ) if len ( self. _ buffer ) = = 0 and isinstance ( self...
[ -0.21041063964366913, 0.9018530249595642, 0.9204837679862976, 0.1806533932685852, 0.07056745886802673, -0.915730357170105, 1.027640700340271, -0.3077085614204407, -0.6930820345878601, -0.7510640621185303, -0.21942688524723053, -1.0108933448791504, -1.2827479839324951, 0.3554931581020355, ...
def manual _ send _ court _ email ( json _ data, case _ id ) : email _ data = json. loads ( json _ data ) try : case = case. objects. get ( pk = case _ id ) except case. doesnotexist : case = none case _ id = case. id if case else " xx " smtp _ route = " gsi " try : court _ obj = court. objects. get _ by _ urn ( email ...
[ -0.10773056000471115, 0.3060550391674042, 0.71724534034729, -0.16472281515598297, -0.4994140863418579, 0.3379276692867279, -0.12948092818260193, -0.06523291766643524, -0.2552495300769806, 1.498382806777954, 0.0650569349527359, 0.8741093873977661, 0.5249102115631104, 0.46782225370407104, ...
def find _ common _ edges ( network, inds _ 1, inds _ 2 ) : if np. intersect1d ( inds _ 1, inds _ 2 ). size! = 0 : raise exception ( " inds _ 1 and inds _ 2 must not share any nodes " ) if not isgtriu ( network ) : raise exception ( " this function is not implemented for directed graphs " ) edges _ 1 = find _ neighbor ...
[ 0.051833756268024445, 0.19943518936634064, 0.8244274854660034, 0.8509942293167114, 0.122178815305233, 0.15121205151081085, 0.4358764588832855, -0.18112601339817047, -0.500757098197937, 1.1113688945770264, 0.540282130241394, 0.0053029656410217285, -0.8360047340393066, -0.1578017771244049, ...
def find _ match ( question, doc ) : question = question. lower ( ) doc = doc. lower ( ) sm = sequencematcher ( ) sm. set _ seqs ( doc, question ) return sm. find _ longest _ match ( 0, len ( doc ), 0, len ( question ) )
[ 0.9417983293533325, -0.7668460011482239, 0.5378907918930054, -0.07619217038154602, -1.0505794286727905, 0.4580720365047455, -0.7005696296691895, -0.41386738419532776, -0.10131058096885681, -0.0449533611536026, 0.3903241455554962, -0.5511733293533325, -1.4308110475540161, 0.5722180008888245...
def pixintile ( self, tilecoord, pixel, tess _ method, wts, tess _ sc, tess _ fuzzy ) : if tess _ method = ='roundness': # tilenum = pytess _ roundness ( tilecoord, pixel, wts, tess _ sc, tess _ fuzzy ) print " not yet implemented!!!! " return 0 else : xgen, ygen = tilecoord xgen = n. asarray ( xgen ) ygen = n. asarray...
[ -0.016555720940232277, -0.0820171982049942, 0.5873873829841614, -0.14210139214992523, -0.8140345215797424, 0.2750013470649719, 0.4473472833633423, 0.056491367518901825, -0.03784174099564552, -0.24407972395420074, 0.20712119340896606, -0.473585307598114, -0.06901844590902328, 0.366174638271...
def findfeatures ( df, obj, chosen _ alpha ) : featurenames = [ ] for i in range ( len ( list ( df ) ) ) : col = list ( df ) [ i ] if df [ col ]. isnull ( ). sum ( ) = = 0 : featurenames. append ( col ) featurenames = list ( featurenames ) train, test = train _ test _ split ( df, test _ size = 0. 2, random _ state = 10...
[ 0.23405830562114716, 0.07180340588092804, 0.904975950717926, 0.16757027804851532, 0.3231029808521271, -1.0358960628509521, 0.6402038335800171, 0.5994656682014465, -0.34436437487602234, 0.028148319572210312, -0.6528367400169373, 0.17898814380168915, 0.3920336961746216, 0.0073559219017624855...
def log _ base _ two ( n ) : return math. log ( 2, n )
[ -0.43449151515960693, -0.5598559379577637, 0.11933354288339615, 0.12367928773164749, 0.3125329315662384, -0.4579349458217621, -1.043573021888733, -1.0584995746612549, -1.2167505025863647, -0.5946394205093384, -1.0286988019943237, 0.3696156144142151, 0.6786733865737915, 0.2547411620616913, ...
def drop _ schema _ template ( self, template _ name : str ) : request = tsdropschematemplatereq ( self. _ _ session _ id, template _ name ) status = self. _ _ client. dropschematemplate ( request ) logger. debug ( " drop one template { } template name : { } ". format ( self. _ _ session _ id, template _ name ) ) retur...
[ -1.8127126693725586, 0.31500014662742615, 0.6027005910873413, -0.09241143614053726, -0.21281477808952332, 0.09226060658693314, -0.05819104611873627, 0.15374305844306946, 0.08073781430721283, 0.44012555480003357, -0.952388346195221, -0.2622470259666443, -1.4976954460144043, -0.3046804070472...
def build ( ctx ) : os. system ( " cp - f _ config. theme. yml themes / icarus / _ config. yml " ) os. system ( " hexo generate " )
[ -0.5176646113395691, -0.19473503530025482, 0.4097881019115448, 0.3939046263694763, 0.6885148882865906, 1.1153219938278198, 0.7965067625045776, 1.5893255472183228, -0.8195988535881042, -0.10985403507947922, -0.5570068359375, -0.11433035135269165, 0.6773169636726379, 0.11793609708547592, 0...
def split _ integrated _ address ( self, integrated _ address ) : cmd = { " method " : " split _ integrated _ address ", " params " : { " integrated _ address " : integrated _ address } } r = utils. curl ( cmd ) if r : payment _ id = r [ " payment _ id " ] address = r [ " standard _ address " ] return payment _ id, add...
[ -0.4964766800403595, -0.6665334105491638, 0.5223504900932312, -0.48724183440208435, -0.27376338839530945, -0.3849395513534546, 0.19100743532180786, 0.7749609351158142, 1.316469669342041, 0.9743528366088867, -0.8478920459747314, 0.73907071352005, -1.266512393951416, 0.0841306671500206, 0....
def testdimensionalities ( self ) : for dim in [ 1, 2, 3, 4, 5, 6 ] : # datasize n = tuple ( [ 10 ] * dim ) # data : uniform [ 0, 1 ) data = np. random. rand ( * n ) # = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = # no additional reduction in dimension by observable...
[ 0.20103052258491516, 0.622769832611084, 1.128424882888794, 0.5952208042144775, 0.9209195971488953, 0.6526685357093811, 1.2284735441207886, 0.012188607826828957, -0.6631770133972168, -0.10394440591335297, -0.3512400984764099, 0.25255048274993896, -0.5472433567047119, 0.49082493782043457, ...
def media _ info ( self, media _ id, versions : dict = none ) : return self. bynder _ request _ handler. get ( endpoint ='/ api / v4 / media / { 0 } / '. format ( media _ id ), params = versions or { } )
[ -0.36088183522224426, -0.21216969192028046, 0.2443235069513321, 0.051433265209198, 0.17256011068820953, -0.9016156196594238, -0.34444910287857056, -0.4340183138847351, -0.21165145933628082, 0.2776964008808136, -0.43572962284088135, 0.9479231834411621, -0.4299488365650177, 1.090631842613220...
def swap _ ip ( self, h1, h2, rp _ len = 8, add _ arp = true ) : h2ifce = self. _ cur _ topo. host _ ifce _ table h1 _ nw = self. _ cur _ exp. get _ node ( h1 ) h2 _ nw = self. _ cur _ exp. get _ node ( h2 ) h1 _ ip = h1 _ nw. ip ( intf = h2ifce [ h1 _ nw. name ] ) h2 _ ip = h2 _ nw. ip ( intf = h2ifce [ h2 _ nw. name ...
[ -1.0035669803619385, -0.1320951282978058, 0.8967700004577637, 0.16391655802726746, -0.2937661409378052, 0.5837923288345337, -0.15245528519153595, 0.0344296433031559, -1.091157078742981, 0.22519274055957794, 0.5088751912117004, 0.4388291835784912, 0.08212178945541382, -0.1530519276857376, ...
def download _ hosts ( i, q ) : global c _ args, datetime _ format, start _ time _ hosts _ detection # have thread number start at 1 for human display. thread _ number = i + 1 # download assigned hosts in this thread. while true : logger. debug ('thread % s : looking for the next enclosure'% ( thread _ number ) ) ids =...
[ -0.09844312071800232, -0.36246415972709656, 0.5970255732536316, 0.21891920268535614, 0.4368874132633209, -0.18506450951099396, 0.5662315487861633, -0.7569664120674133, -0.6621246933937073, 0.22818444669246674, -0.21673281490802765, 0.9318974018096924, 0.03608337417244911, 0.575854718685150...
def create _ dummy _ computation _ tensorflow _ tuple ( ) : value = 10. 0 with tf. graph ( ). as _ default ( ) as graph : names = ['a ','b ','c'] result = anonymous _ tuple. anonymoustuple ( ( n, tf. constant ( value ) ) for n in names ) result _ type, result _ binding = tensorflow _ utils. capture _ result _ from _ gr...
[ -0.5191693902015686, 0.5099194049835205, 0.7127153277397156, -0.20798663794994354, 1.0191938877105713, -0.2209053784608841, 0.6545481085777283, -0.4217154085636139, -0.8418442010879517, 0.37172192335128784, -1.0468380451202393, -0.5079882144927979, -0.3895885646343231, -0.2710404694080353,...
def old _ complex ( value ) : if isinstance ( value, ( list, tuple ) ) and len ( value ) = = 3 : if value [ 0 ] = ='ri': value = complex ( value [ 1 ], value [ 2 ] ) elif value [ 0 ] = ='mp': value = complex ( value [ 1 ] * math. cos ( value [ 2 ] ), value [ 1 ] * math. sin ( value [ 2 ] ) ) return value
[ -0.052914224565029144, -0.4391663670539856, 0.6683723330497742, 0.03368867188692093, -0.4468199610710144, 0.04530411586165428, 0.537702739238739, -0.32759004831314087, 0.724334180355072, 0.18582186102867126, 0.3983994722366333, -0.0335654616355896, -0.647190511226654, -0.4865206778049469, ...
def set _ led _ two ( self, r, g, b ) : self. _ set _ led ( self. command _ set _ led2, r, g, b )
[ -0.5356941223144531, -1.1900279521942139, 0.4634339213371277, 0.2234952300786972, 0.45223477482795715, 0.4736454486846924, -0.15660099685192108, -0.7143245339393616, -0.9462701678276062, -0.3692461848258972, -1.5109162330627441, 1.2137702703475952, -0.5352396965026855, 0.3485071659088135, ...
def start _ server ( cluster _ resolver, protocol ) : # this function is for multi - processing test or users who would like to have # every job run the same binary for simplicity. if not ( cluster _ resolver. task _ type = ='worker'or cluster _ resolver. task _ type = ='ps') : raise valueerror ('unexpected task _ type...
[ -0.13789425790309906, -0.11381835490465164, 0.31720757484436035, 0.08959119766950607, 0.8957926034927368, 0.11698981374502182, 0.8339359164237976, 0.20770429074764252, -0.7105703353881836, 0.02202613838016987, -0.6073954701423645, 0.31131410598754883, -0.31293728947639465, -0.1213560104370...
def str _ mysqldb ( self ) : return " % d - % 02d - % 02d " % ( self. _ date. year, self. _ date. month, self. _ date. day )
[ -0.5506139993667603, -0.7076243162155151, 0.8049749135971069, -0.16082195937633514, -0.5976153612136841, 1.2829352617263794, -1.2966363430023193, -0.20120711624622345, -0.6062095761299133, -0.272234171628952, -0.41169512271881104, 0.7728251218795776, -0.32592257857322693, 0.414516478776931...
def test _ create _ pfe _ stand _ alone _ deliverysystem _ 3 ( self, context ) : # these could come from a data file id = " post _ vedevices _ allconfigadminmulticasttruethree " pfe _ name = " post _ vedevices _ allconfigadminmulticasttruethree " devicehost = " post _ vedevices " # define a test step with pytest. allur...
[ 0.20423167943954468, 0.795063316822052, 0.5263398885726929, 0.5481741428375244, 0.38798508048057556, 1.0223138332366943, -0.015091938897967339, -0.11031579226255417, 0.5901474356651306, -0.1344071328639984, -1.0940582752227783, -0.08387185633182526, 0.4561580419540405, 0.460753470659256, ...
def register _ job ( self, budget ) : assert budget in self. budgets assert self. sh _ bracket [ budget ] > 0 self. sh _ bracket [ budget ] - = 1 if not self. _ is _ rung _ pending ( self. current _ rung ) : # increment current rung if no jobs left in the rung self. current _ rung = ( self. current _ rung + 1 ) % self....
[ -0.7405499219894409, 0.5298003554344177, 0.6640346646308899, 0.2308358997106552, 0.5565418004989624, 0.1189715713262558, -0.1008455753326416, 0.06270598620176315, -0.07398898154497147, -0.8317758440971375, -0.7180510759353638, 0.544093668460846, -1.2645565271377563, 0.9608942270278931, 1...
def new _ track ( self, track _ level, * * args ) : newtrack = track ( ) for key in args : setattr ( newtrack, key, args [ key ] ) if track _ level not in self. tracks : # no track at that level self. tracks [ track _ level ] = newtrack # so just add it else : # already a track there, so shunt all higher tracks up one ...
[ -0.5579753518104553, -0.12568415701389313, 0.8027540445327759, 0.15932300686836243, 0.15155106782913208, 0.5259902477264404, -0.06747496128082275, -0.8445992469787598, -1.1849656105041504, -0.6470047831535339, 0.5509864687919617, -0.44841569662094116, -0.6129105687141418, 0.817749738693237...
def add _ elasticsearch _ index ( self, column : str, index _ name : optional [ str ] = none, host : optional [ str ] = none, port : optional [ int ] = none, es _ client : optional [ " elasticsearch. elasticsearch " ] = none, # noqa : f821 es _ index _ name : optional [ str ] = none, es _ index _ config : optional [ di...
[ -0.29551756381988525, 0.10137738287448883, 0.5066156983375549, -0.22510071098804474, 0.46240201592445374, -0.03723016381263733, -0.10165342688560486, 0.18299353122711182, 0.3605978190898895, -0.1618463546037674, -0.590782105922699, 0.7499765157699585, 0.8439568877220154, -0.731392264366149...
def agregar _ cancion ( self, ruta _ cancion ) : try : self. agregar _ cancion _ sin _ guardar ( ruta _ cancion ) self. guardar _ accion ( ruta _ cancion, self. agregada ) return true except ( tinytagexception, lookuperror, oserror ) : return false
[ -1.2659887075424194, 0.26023760437965393, 0.7704581618309021, 0.9667043685913086, 0.592628002166748, 0.4768525958061218, 0.8869953155517578, -0.21525399386882782, 0.7213521003723145, -0.07805956155061722, -0.11874036490917206, -0.011625122278928757, -0.7918418645858765, 0.2759888470172882,...
def eliminar ( self, objeto ) : if not self. consultar ( objeto ) is none : self. lista _ general. remove ( objeto ) return true return false
[ -0.8534000515937805, 0.40398523211479187, 0.732797384262085, 0.25851407647132874, -0.5353668928146362, 0.773374617099762, -0.7393282055854797, -0.27225586771965027, 0.4471156895160675, 0.29776856303215027, -0.571453869342804, -0.23547977209091187, -1.1165579557418823, 0.009666555561125278,...
def check _ sorted ( array ) : # this ignores nans, and does the right thing if nans # are concentrated at beginning or end of array # otherwise, it will miss things at nan / finite boundaries array = np. asarray ( array ) return not ( array [ : - 1 ] > array [ 1 : ] ). any ( )
[ -0.15930871665477753, -0.1905088573694229, 0.7660459280014038, 1.0081273317337036, -0.5223658084869385, 0.6037039756774902, 0.15225791931152344, -0.5747465491294861, -0.1289777159690857, -0.21670931577682495, 0.4620887041091919, 0.4596647024154663, -0.062152307480573654, 1.4753005504608154...
def _ installvboxonwindows ( self ) : sexe = self. _ findfile ('^ virtualbox -. * - ( multiarch | win ). exe $') ; if sexe is none : return false ; # temporary hack - start # it seems that running the ndis cleanup script upon uninstallation is not # a good idea, so let's run it before installing virtualbox. # shostname...
[ 0.7052809596061707, -0.45110902190208435, 0.8919610977172852, 0.5524477958679199, -0.12783122062683105, -0.21728625893592834, 0.17777462303638458, 0.031352538615465164, 0.23028616607189178, 0.4733351171016693, -0.3193288743495941, 0.054496947675943375, -1.1604712009429932, 0.82879763841629...
def confirm _ user ( self, user ) : if user. confirmed _ at is not none : return false user. confirmed _ at = self. security. datetime _ factory ( ) user. is _ active = true self. user _ manager. save ( user ) user _ confirmed. send ( app. _ get _ current _ object ( ), user = user ) return true
[ -0.2569824755191803, -0.12193305790424347, 0.6348637342453003, 1.4312517642974854, -0.007673988118767738, 0.6517372131347656, 0.24516844749450684, -0.6691268086433411, -0.3367202877998352, 0.22370529174804688, -1.393309235572815, -0.42084863781929016, 0.25720253586769104, 0.285541296005249...
def adjust _ widths _ groups _ comp ( widths, bottle _ ratios, groups, min _ ratio = 0. ) : bottleneck _ widths = [ int ( w * b ) for w, b in zip ( widths, bottle _ ratios ) ] groups = [ min ( g, w _ bot ) for g, w _ bot in zip ( groups, bottleneck _ widths ) ] if min _ ratio : # torchvision uses a different rounding s...
[ -0.4144386053085327, -0.0861394852399826, 0.47275280952453613, -0.921326220035553, -0.07936360687017441, -0.4731816053390503, 0.13025665283203125, -0.08401554822921753, 0.153426855802536, -0.13831683993339539, 0.9672377109527588, -0.294696569442749, -0.35912033915519714, 0.4032479226589203...
def _ update _ online _ status ( self ) : reference _ time = self. _ last _ loop _ time if reference _ time is none : self. _ back _ online = true else : elapsed = datetime. datetime. now ( ) - reference _ time # # integer multiplication works with timedeltas ; # # float multiplication does not. self. _ back _ online =...
[ 0.10231748223304749, -0.12479082494974136, 0.5898775458335876, 0.017160581424832344, 0.4068741798400879, 0.6975077390670776, -0.7148436307907104, -0.04684508591890335, -0.15430901944637299, 0.8506333231925964, -0.13093851506710052, 0.7314926981925964, -0.3603816032409668, 0.230366185307502...
def active ( s ) : # type : ( state ) - > bool return s. status = = running
[ -0.7994178533554077, -1.2540420293807983, 0.3697980046272278, 0.6723421216011047, -0.3592906594276428, -0.013827608898282051, 0.13660983741283417, 0.714916467666626, 0.6848353743553162, -0.2160741537809372, -0.9269780516624451, 0.003700943198055029, 0.13990455865859985, -1.4944229125976562...
def crypto _ iv ( self ) : if self. encryption _ mode = = 2 : return bytearray ( b'\ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00') elif self. encryption _ mode = = 4 : return bytearray ( b'\ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00 \ x00') elif self. encryption _ mode = ...
[ -0.14291836321353912, -0.44438114762306213, 0.9133907556533813, 0.41466018557548523, 0.08554824441671371, 0.15917983651161194, 0.3354034125804901, -0.5712974667549133, -0.512171745300293, 0.5633244514465332, -0.851172924041748, 0.5049721598625183, -1.3248072862625122, -0.7326710820198059, ...
def delete _ group _ with _ http _ info ( self, group _ id, logged _ in _ user _ id, access _ token, client _ token, * * kwargs ) : all _ params = ['group _ id ','logged _ in _ user _ id ','access _ token ','client _ token ','fields'] all _ params. append ('callback') all _ params. append ('_ return _ http _ data _ onl...
[ -0.20941585302352905, 0.6471908688545227, 0.9016355276107788, -0.1261184811592102, -0.340274840593338, -0.17976397275924683, 0.15071988105773926, -1.18537437915802, -0.45314306020736694, 0.011618668213486671, 0.4967666268348694, 0.6356934905052185, -0.31120678782463074, 0.6895418167114258,...
def shouldblocksignal ( self, signal, default ) : if default : # if signals are blocked assume all signals should be blocked return default if signal = ='sceneopenfinished': return false return self. _ openingscene
[ -1.0233025550842285, 1.1438511610031128, 0.5015581250190735, 0.8992329835891724, -0.4748852252960205, 0.26248160004615784, -0.011464552022516727, -0.5468125939369202, 0.09542874246835709, 0.15068840980529785, -0.5243968963623047, -0.761515736579895, -1.375563621520996, 0.4668992757797241, ...
def description ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " description " )
[ 1.0937169790267944, 0.1883128434419632, 0.43200504779815674, 0.3380596935749054, 0.9967341423034668, 1.1237096786499023, -0.29752761125564575, -0.2089764028787613, 0.8758289217948914, 0.2605397701263428, 0.6131468415260315, 0.8412667512893677, -0.2670503258705139, -0.9193298816680908, -0...
def serialize ( self ) - > bytes : string = self. _ get _ format _ string ( ) vals = [ x. value for x in astuple ( self ) ] try : return struct. pack ( string, * vals ) except struct. error as e : raise serializationexception ( e )
[ -0.7624008655548096, 0.5898038744926453, 0.47990697622299194, 0.5509139895439148, 0.27761003375053406, 0.008825762197375298, -0.3940409719944, -0.9065391421318054, -0.11814353615045547, -1.066401481628418, -0.785831093788147, -0.10675394535064697, -0.6263208389282227, 0.19489121437072754, ...
def myquota ( self ) : self. do _ myquota ('', clear = false )
[ 0.07885745167732239, -0.05257398635149002, 0.10773032903671265, 0.3406037986278534, 0.21867655217647552, -1.1573057174682617, 0.537667453289032, -0.29546353220939636, -0.5381075143814087, 0.42606765031814575, -0.23842965066432953, 1.0714462995529175, 0.2599097490310669, -0.3857698440551758...
def lambda _ handler ( event, context ) : print ( " event. session. application. applicationid = " + event ['session'] ['application'] ['applicationid'] ) " " " uncomment this if statement and populate with your skill's application id to prevent someone else from configuring a skill that sends requests to this function...
[ 0.5983683466911316, -0.8702248334884644, 0.7844322919845581, 0.4899007976055145, -0.4547959566116333, 0.01876945048570633, -0.37663379311561584, -0.5669317841529846, 1.5931432247161865, 0.20667764544487, 0.040252938866615295, 0.7656248807907104, 0.9633758068084717, 0.47260165214538574, 0...
def best _ match ( self, prefix, node = none ) : if not node : node = self. root if prefix. startswith ( node. prefix ) : if not node. children : return node. prefix for child in node. children : if prefix. startswith ( child. prefix ) : return self. best _ match ( prefix, child ) return node. prefix
[ 0.6246023178100586, 0.17014998197555542, 0.7906832098960876, 0.5260524749755859, -0.7330440878868103, -0.6325258612632751, -0.5612692832946777, 0.42213985323905945, 0.4877763092517853, -0.08222121745347977, 0.796628475189209, 0.5765387415885925, -0.21679182350635529, 0.7131863832473755, ...
def is _ valid ( ) : # get validity of blockchain is _ valid = blockchain. is _ chain _ valid ( blockchain. chain ) if is _ valid : response = {'message':'the blockchain is valid!'} else : response = {'message':'error, the blockchain is invalid!'} return jsonify ( response ), 200
[ 0.24461160600185394, -0.38187745213508606, 0.6122062802314758, 0.34734225273132324, 0.6353559494018555, -0.44531959295272827, -0.9110777974128723, 0.2956661283969879, 0.03388793766498566, 0.8988189697265625, -0.23603571951389313, 0.6909852027893066, -1.3237674236297607, -0.3027917742729187...
def _ initfromdata ( self, data ) : magic, bom, version, filesize, headersize, numblocks = \ _ common. nds _ std _ file _ header. unpack _ from ( data, 0 ) if version! = 0x100 : raise valueerror ( f'unsupported swar version : { version }') assert magic = = b'swar'datamagic, datasize, swavcount = \ struct. unpack _ from...
[ 0.4949638843536377, 0.3226626217365265, 0.9941872358322144, -0.05225573852658272, -0.6096153855323792, 0.06444060057401657, -0.0026666640769690275, -0.5160083770751953, 0.8804839253425598, -0.5676195025444031, -0.11906065046787262, 0.1268281787633896, -0.46663615107536316, 0.68888634443283...
def filter _ by _ product _ ids ( self ) : product _ name _ map = self. _ product _ name _ mapping # sort sorted _ product _ name _ map = sorted ( product _ name _ map. items ( ), key = lambda name _ map : name _ map [ 1 ], reverse = self. _ desc _ product _ order ) # product to filter # - > that have ledgers and # - >...
[ -0.42470741271972656, -1.057342767715454, 0.4849625527858734, -0.0006320052780210972, 0.16159681975841522, 0.5538421869277954, 0.2323710024356842, -0.8602868318557739, 0.3747847080230713, 0.728803277015686, 0.24870550632476807, 1.1941767930984497, 0.08341338485479355, -0.09494020789861679,...
def find _ executable ( self, root _ mount _ point ) : return self. _ search _ executable ( root _ mount _ point, self. executable )
[ 0.5585547089576721, -1.3032180070877075, 0.6493276357650757, 1.598021149635315, 0.08658447861671448, -0.5393082499504089, 0.16029269993305206, -1.6881722211837769, -0.06425084918737411, -0.9624852538108826, 0.6235442161560059, 0.2103523463010788, -0.7344130277633667, 0.5188548564910889, ...
def reconnect ( self ) : # update the reconnect status to indicate that we should attempt to reconnect immediately self. _ reconnect _ status = ( 0, time. time ( ) )
[ 0.0758451297879219, -0.5621454119682312, 0.2913396656513214, 0.6170387864112854, -0.09889719635248184, -0.5490076541900635, -0.7579824328422546, 0.657668948173523, -0.6011359691619873, -0.04910149797797203, -0.1801612824201584, 0.7996079921722412, -0.2814568877220154, 0.21766576170921326, ...
def _ _ init _ _ ( self, name, mode ='r ', closefd = true ) : self. name = name self. mode = mode self. closefd = closefd self. closed = false pass
[ 0.03132791817188263, -0.8830691576004028, 0.672152578830719, -0.11073524504899979, -1.873645305633545, 0.6587561964988708, 0.4515424966812134, 0.14657755196094513, -0.44115567207336426, -0.5205560922622681, -0.689953088760376, -0.5323378443717957, -0.34775692224502563, 0.5250127911567688, ...
def correlation _ coefficient ( x, y ) :
[ -0.05302013084292412, -0.26389798521995544, 0.19597622752189636, -0.14289933443069458, -0.12120921909809113, -0.8226062655448914, -0.04290254786610603, -0.9538518190383911, -0.7239947319030762, 0.5289359092712402, 0.23160076141357422, 0.6855207681655884, 1.0697578191757202, -0.679152607917...
def preparenewreplicas ( self ) : res = self. _ _ getnewreplicas ( ) if not res ['ok'] : glogger. fatal ( " requestpreparation. preparenewreplicas : failed to get replicas from stagerdb. ", res ['message'] ) return res if not res ['value'] : glogger. info ( " there were no new replicas found " ) return res replicas = r...
[ -0.9672792553901672, -0.4699174165725708, 0.6313978433609009, -0.6330462694168091, -0.2989519238471985, -0.638209342956543, -0.08932767063379288, -0.12407250702381134, -0.6326301693916321, 0.5170550346374512, -0.1063622236251831, -0.07128613442182541, -0.11487854272127151, 0.98980271816253...
def child _ sample _ 2 ( testapp, project, institution, proband _ 2 _ bam ) : item = { " accession " : " gapsaproband2 ",'project': project ['@ id'],'institution': institution ['@ id'], " bam _ sample _ id " : proband _ sample _ 2 _ id, " status " : " shared ", " processed _ files " : [ proband _ 2 _ bam ['@ id'] ], " ...
[ 0.5233632922172546, -0.511836051940918, 0.5390501022338867, 0.37099599838256836, -0.37979885935783386, 0.6111596822738647, -0.02770760841667652, -0.5688310861587524, -0.07996499538421631, 0.044047415256500244, -0.22810310125350952, 1.0885279178619385, -0.5778725147247314, -0.55181068181991...
def mutate _ once ( gene ) : pass
[ -1.164512276649475, -0.09027077257633209, 0.31402653455734253, 0.219568133354187, 0.4333394169807434, -0.7660802602767944, 0.5353085398674011, 0.22663016617298126, 0.39862966537475586, -0.3746464252471924, -0.810071587562561, 0.5393775701522827, -0.5501225590705872, 0.9438995122909546, -...
def wait _ and _ answer _ call ( ser, duration = 0, timeout = 30 ) : res = wait _ for _ strs ( ser, ['ring'], timeout = timeout ) if'ring'not in res : return {'connected': false,'duration': 0 } ser. write ('ata \ r') res = wait _ for _ strs ( ser, ['ok'], timeout = timeout ) started = int ( time. time ( ) ) res = wait ...
[ -0.7097790837287903, -0.12504616379737854, 0.5872570872306824, -1.0637967586517334, -0.2703852355480194, 0.07020113617181778, -1.028829574584961, -0.9352954030036926, 0.14993847906589508, 0.3457988500595093, -0.21456968784332275, -0.15207220613956451, 0.4428550601005554, -0.263996183872222...
def allow _ methods ( self ) - > optional [ sequence [ str ] ] : return pulumi. get ( self, " allow _ methods " )
[ 0.38483861088752747, 0.7149052619934082, 0.5247332453727722, 0.82857745885849, 0.8265019655227661, 0.9862317442893982, -0.07253435999155045, -0.643904983997345, 0.7154674530029297, 0.2634909152984619, 0.016975868493318558, 0.35542699694633484, -0.5949281454086304, -0.5329793095588684, -0...