text
stringlengths
25
2.19k
embedding
listlengths
768
768
def make _ move ( self ) : move = try _ again ( get _ input,'{ name }, what move are you making? ( enter " paper ", " scissors " or " rock " ) '. format ( name = self. name ), in _ list = ['paper ','scissors ','rock'] ) self. move = move return'{ name } plays { move } '. format ( name = self. name, move = self. move )
[ -1.1053030490875244, -0.26383155584335327, 0.7222437858581543, -0.6797844171524048, -0.35075369477272034, -0.40431758761405945, 0.042376574128866196, -1.207862138748169, 0.28721123933792114, -0.05159788951277733, -0.2633619010448456, 0.7324494123458862, -0.4624742269515991, -0.759373068809...
def findalternateglyphs ( otltable, glyphnames ) : assert otltable. tabletag = = " gsub " gf = alternateglyphfinder ( otltable ) return gf. findalternateglyphs ( glyphnames )
[ -0.20111265778541565, 0.4306581914424896, 0.4572802186012268, -0.6570621132850647, -0.7486775517463684, 0.3449580669403076, -0.07167625427246094, -0.7980300784111023, -0.4154435992240906, 1.1877641677856445, -0.7758106589317322, 0.5990091562271118, -0.028729302808642387, 0.7664554715156555...
def _ _ validate _ model _ section ( self, model _ section _ key, model _ dict, valid _ section _ folders ) : _ method _ name ='_ _ validate _ model _ section'self. _ logger. info ('wlsdply - 05008 ', model _ section _ key, self. _ model _ file _ name, class _ name = _ class _ name, method _ name = _ method _ name ) if...
[ -0.47689884901046753, -1.047859787940979, 0.7146838903427124, -0.6300883889198303, -0.613377034664154, 0.6843987703323364, 0.4984285533428192, -0.43388497829437256, -1.135719895362854, -0.005059270188212395, 0.5154114961624146, -0.19030551612377167, 0.8497508764266968, 1.4531757831573486, ...
def _ _ init _ _ ( self ) : self. _ mancala = [ 0 ]
[ -0.6631814241409302, -0.03323401138186455, 0.41040173172950745, 0.9781931042671204, 0.7398357391357422, -0.35356730222702026, 0.3136036992073059, 0.937461256980896, 0.1388261616230011, -0.3996325731277466, -1.0885064601898193, -0.3244381844997406, 0.026545917615294456, 1.9665874242782593, ...
def insert _ into _ influx ( self, data ) : client = influxdbclient ('localhost ','8086 ','newsapi ','newsapi ','monitor _ newsapi') data _ point = [ { " measurement " : " per _ hr _ data ", " fields " : data } ] client. write _ points ( data _ point )
[ -0.2917124032974243, 0.5832945108413696, 0.34331321716308594, 0.13782985508441925, 1.2149584293365479, 1.168320655822754, -0.06448002904653549, 0.26674067974090576, -0.9971123337745667, -0.06014300510287285, -0.810242235660553, -0.48254838585853577, -1.12806236743927, -0.001452159835025668...
def show _ info ( ) : echo. bold ('- flowtool information dump -') echo. bold ( ) echo. bold ( colors. cyan ('python executable :'), ( sys. executable ) ) echo. bold ( colors. cyan ('python version :'), str ( sys. version _ info ) ) echo. bold ( ) echo. bold ( colors. cyan ('flowtool _ packages :') ) for e in sorted ( ...
[ 0.7772102952003479, -0.5031203627586365, 0.9864137172698975, -0.6244102716445923, -0.15920135378837585, 0.8858185410499573, 0.48904672265052795, -1.0170032978057861, -1.0223308801651, -0.15554755926132202, 0.05158015713095665, 1.027289628982544, 1.1735233068466187, 0.6527940630912781, 0....
def putop ( op, a, b, c ) : putinstr ( op +'' + a + ','+ b + ','+ str ( c ) )
[ -0.09895095229148865, 0.8573851585388184, 0.6626640558242798, -1.1363153457641602, 0.30686551332473755, 0.6303237676620483, -0.37517350912094116, 0.00427058944478631, -0.5823976397514343, 0.8978487253189087, -0.5593268275260925, -0.6936381459236145, -0.7759472131729126, -1.584560751914978,...
def makeresponselikelihood ( self, * argv, * * kwargs ) : sd = tf. cast ( self. sd, kwargs [ " dtype " ] ) current = kwargs [ " predict " ] ( true, argv [ 0 ] ) current = tf. transpose ( current ) sigma = tf. ones _ like ( current ) * sd realvals = tf. reshape ( kwargs [ " realvals " ], current. shape ) result = multiv...
[ 0.3465486466884613, -0.6234865188598633, 0.528859555721283, -0.3329254388809204, -1.2290639877319336, 0.6711775660514832, -0.12683261930942535, -0.0235043503344059, 0.7669840455055237, -0.2411871999502182, -0.4929313063621521, 0.4524882733821869, -0.330413281917572, -0.7497110962867737, ...
def split _ in _ groups ( key _ func, l, continuous = true, max _ group _ size = none ) : if continuous : if len ( l ) = = 0 : return [ ] groups = [ ] g = [ l [ 0 ] ] key = key _ func ( l [ 0 ] ) for e in l [ 1 : ] : ek = key _ func ( e ) if ek! = key or ( max _ group _ size is not none and len ( g ) > = max _ group _ ...
[ -0.5261732339859009, 0.8904004693031311, 0.6482679843902588, 0.2748967707157135, -1.051698088645935, -0.4021965563297272, -0.037404514849185944, 0.8980764150619507, -0.4030587673187256, 0.2874096632003784, -0.06377997249364853, -0.11525557190179825, -0.35338014364242554, 0.3950732350349426...
def _ _ init _ _ ( self, nb, s, c, p1, p2, dim = 2 ) : fiber. _ _ init _ _ ( self, nb, dim ) self. s = s self. makeellipse ( c, p1, p2 )
[ 0.8485192060470581, 0.03968663513660431, 0.4301423132419586, 1.064779281616211, -0.569549024105072, 1.026618480682373, -0.09550397098064423, 0.38749799132347107, 0.2829990088939667, 0.0048935869708657265, -0.7661457657814026, -0.02479255571961403, 0.41649892926216125, -0.14741991460323334,...
def authentication _ domains ( self, authentication _ domains ) : self. _ authentication _ domains = authentication _ domains
[ -1.0205349922180176, 0.4871104061603546, -0.1991318166255951, 0.8788192272186279, 0.20369252562522888, 0.6048340797424316, 0.5290948748588562, 0.2389472872018814, 0.036991801112890244, -0.4281967282295227, -0.6950412392616272, 0.2452826052904129, 0.15062759816646576, 0.036335207521915436, ...
def sat ( id, value ) : return put _ state ( id, { " sat " : value } )
[ -0.8014575839042664, 0.04112265259027481, 0.11204610019922256, -1.0025256872177124, -0.46017971634864807, 0.31416043639183044, -0.5491427779197693, -0.8545213937759399, 0.32136696577072144, 0.5817310810089111, -0.9184985160827637, 0.13825833797454834, 0.12635137140750885, -0.45209893584251...
async def access _ config _ from _ coroutine ( self, priority : int ) - > bool : data = await self. configuration _ function ( ) # type : ignore self. from _ mapping ( data, priority = priority ) return true
[ -0.5994243025779724, 0.5617635250091553, 0.5876790881156921, -0.0657401829957962, -0.09421651810407639, -0.6491518616676331, -0.40014925599098206, 0.754170835018158, -0.42784759402275085, 0.3099524676799774, 0.05186772346496582, -0.695833146572113, 0.31714051961898804, 0.06787717342376709,...
def _ _ call _ _ ( self, data ) : new _ index = [ ] new _ attr = [ ] for node in range ( torch. max ( data. edge _ index ). item ( ) + 1 ) : candidates = data. edge _ index [ 1 ] [ data. edge _ index [ 0 ] = = node ] kstat = - np. partition ( - data. edge _ attr [ data. edge _ index [ 0 ] = = node ]. numpy ( ), self. k...
[ -0.6854301691055298, -0.6794378757476807, 0.6927639245986938, -0.6677109003067017, -0.8347687721252441, -0.27945366501808167, 0.4055381417274475, 0.8411688804626465, -0.3512185215950012, 0.27914273738861084, 0.3742225766181946, 0.4763409495353699, 0.46750837564468384, -0.6065715551376343, ...
def full _ name ( self ) : return " % s % s " % ( self. first _ name, self. last _ name )
[ 0.7372741103172302, -1.623876929283142, 0.6536053419113159, -0.7860921621322632, -0.25455594062805176, 0.604327380657196, -1.5092847347259521, 0.19558793306350708, -0.22870346903800964, -0.14396995306015015, 0.14229950308799744, 0.16693633794784546, 0.442145973443985, 0.22696170210838318, ...
def point ( self, xy, fill = none ) : ink, fill = self. _ getink ( fill ) if ink is not none : self. draw. draw _ points ( xy, ink )
[ -0.08702225983142853, 0.46849754452705383, 0.1451881378889084, -0.6209161877632141, 0.420096218585968, -0.13839145004749298, 0.04032781347632408, -0.4092283248901367, 1.1794629096984863, -0.44226357340812683, 0.7379993796348572, 0.6417598724365234, 0.23101744055747986, 0.33556443452835083,...
def test _ non _ array _ policy _ fails ( self ) : self. assertraises ( validationerror, validate, self. one _ policy, rest _ schemas. create _ policies _ request )
[ -0.008642548695206642, 0.4658658802509308, 0.32570880651474, 0.652430534362793, 1.1331665515899658, 2.0201547145843506, -0.570627748966217, -0.817834198474884, 0.7339921593666077, -0.3952785134315491, -0.37268418073654175, -0.3869882822036743, -1.1170152425765991, 0.6098197102546692, 1.4...
def _ _ init _ _ ( _ _ self _ _, *, payment _ type : pulumi. input [ str ], period : pulumi. input [ int ], sd _ cbool : pulumi. input [ str ], sdc : pulumi. input [ str ], sddp _ version : pulumi. input [ str ], ud _ cbool : pulumi. input [ str ], udc : pulumi. input [ str ], dataphin : optional [ pulumi. input [ str ...
[ -0.6253573298454285, 0.5464047193527222, 0.8432159423828125, -0.6893085241317749, 0.3944002091884613, -0.014993338845670223, -1.115103840827942, 0.2524035573005676, 0.6814082264900208, 0.307708203792572, 0.08933969587087631, 0.6280946135520935, 0.30683833360671997, -0.6760048866271973, -...
def constructfrominput ( cls, linereader ) : pass
[ -0.16608034074306488, -1.5000834465026855, 0.16563177108764648, 0.004435256123542786, -0.5332135558128357, 0.74295973777771, -0.2522963583469391, -0.1743747591972351, -0.26917514204978943, -1.575984001159668, -0.25520792603492737, -0.5242207646369934, 0.40783923864364624, 0.171201094985008...
def largelightthemedicon ( self ) - > _ n _ 8 _ t _ 0 :
[ 0.6579666137695312, 0.2266155481338501, 0.03883608058094978, -0.39508381485939026, -0.3738630414009094, 0.023357536643743515, 0.4369569718837738, 0.025341596454381943, 0.739652156829834, -0.7910625338554382, -1.447697401046753, -0.3212714195251465, 0.268646776676178, 0.6184688806533813, ...
def get _ peak _ shape _ feat ( ts, time, pks, prefix, suffix, deriv _ ord, exclude _ order = ( ), do _ plot = false, ax = none ) : der _ names = [ " pos ",'vel ','acc ','jerk ','jounce'] measures = [ ( np. average, " avg " ), ( abs _ avg, " tavg " ), ( np. median, " med " ), ( np. max, " max " ), ( np. min, " min " ),...
[ 0.4740371108055115, 0.24750788509845734, 0.7778329253196716, -0.18815825879573822, -0.3623031973838806, -0.5329909324645996, -0.15312089025974274, 0.3072984218597412, -0.06807119399309158, -0.1619759052991867, -1.2641860246658325, 0.6449254751205444, 1.17021644115448, 0.0666637048125267, ...
def _ get _ nitro _ response ( self, service, response ) : try : result = service. payload _ formatter. string _ to _ resource ( vpnvserver _ binding _ response, response, self. _ _ class _ _. _ _ name _ _ ) if ( result. errorcode! = 0 ) : if ( result. errorcode = = 444 ) : service. clear _ session ( self ) if result. ...
[ -0.7284442186355591, -0.797792911529541, 0.6207136511802673, 0.14859390258789062, -0.9087530374526978, -0.7220059037208557, 0.011231287382543087, -1.2090123891830444, 0.7872315049171448, 0.140485018491745, -0.020070623606443405, -0.2500298023223877, -1.292511224746704, -0.5695663094520569,...
def kldiv ( x, xp, k = 3, base = 2 ) : assert k < min ( len ( x ), len ( xp ) ), " set k smaller than num. samples - 1 " assert len ( x [ 0 ] ) = = len ( xp [ 0 ] ), " two distributions must have same dim. " d = len ( x [ 0 ] ) n = len ( x ) m = len ( xp ) const = log ( m ) - log ( n - 1 ) tree = ss. ckdtree ( x ) tree...
[ 0.5743770003318787, 0.530391275882721, 0.8774687051773071, 0.15194766223430634, -0.7950498461723328, 0.26891082525253296, -1.160101294517517, -0.1397610753774643, -0.2526181638240814, 0.4105727970600128, 0.010704826563596725, 0.2781260311603546, -0.14675962924957275, -0.010064235888421535,...
def road ( self ) : start = ( random. randrange ( 15 ), random. randrange ( 15 ) ) self. win _ way. append ( start ) self. canvas. itemconfig ( self. dict _ grid [ self. return _ coord _ string ( start ) ]. id, fill ='red') actual _ position = start road _ finish = false goal _ middle _ placed = false while road _ fini...
[ -0.2441444844007492, -0.17200781404972076, 1.0883008241653442, 0.01625385880470276, 0.12821213901042938, 0.21546386182308197, 0.26955679059028625, -0.02750617079436779, -0.7992327213287354, 0.8732118606567383, -0.6664832234382629, -1.3581749200820923, -0.26508283615112305, -0.1111429259181...
def gen _ confusion _ matrix ( targets, predictions, classes, verb = false, outfile = '. / confusion. png') : from sklearn. metrics import confusion _ matrix try : cm = confusion _ matrix ( targets, predictions, labels = none, sample _ weight = none ) except valueerror as err : msg ='error [ gen _ confusion _ matrix ] ...
[ -0.30514493584632874, -0.021967530250549316, 0.4628591239452362, 0.8636021614074707, 0.056328799575567245, 0.8825554847717285, 0.7604635953903198, 0.17395807802677155, -0.29952186346054077, 0.28573673963546753, 0.708392322063446, 0.628869891166687, 0.042088668793439865, 0.19086837768554688...
def test _ drawing _ png _ output _ with _ null _ smoketest ( self ) : a = pgv. agraph ( name = " test graph " ) a. add _ path ( [ 1, 2, 3, 4 ] ) d = a. _ draw ( prog = " dot ", format = " png " )
[ 0.08486439287662506, 0.3839866816997528, 0.5101091861724854, -0.5678464770317078, -0.1513669639825821, 0.015037000179290771, 0.3355412483215332, -0.6431059241294861, 0.48068803548812866, -1.0898593664169312, 0.05663168430328369, -0.06347782909870148, 0.2870868146419525, 0.2615194320678711,...
def wait _ for _ vacuum ( self, pthreshold = 1. 0, alternative _ breakfunc = lambda : false ) : while not ( self. pressure < = pthreshold or alternative _ breakfunc ( ) ) : for i in range ( 100 ) : glib. main _ context _ default ( ). iteration ( false ) if not glib. main _ context _ default ( ). pending ( ) : break ret...
[ -0.5438886284828186, 0.4939112365245819, 0.44623586535453796, -0.16413156688213348, -0.6225602030754089, 1.0608619451522827, -0.32534730434417725, -0.6005869507789612, -0.5452496409416199, -0.7168650031089783, -0.48710858821868896, -0.2661946713924408, -0.49677202105522156, -0.028555914759...
def test _ work _ id _ from _ bad _ url _ raises _ runtimeerror ( bad _ url ) : with pytest. raises ( runtimeerror ) as exc : utils. work _ id _ from _ url ( bad _ url ) assert'not a recognised ao3 work url'in exc. value. message
[ -0.378178209066391, 0.4753170907497406, 0.36759835481643677, 0.6376615166664124, 0.5312176942825317, 0.8865712285041809, -0.4428860545158386, 0.03438638895750046, 0.3850197196006775, 0.03960365429520607, -0.6779448390007019, 0.2970237731933594, -0.28307703137397766, 0.6920061111450195, 0...
def graycode ( self, n ) : if n = = 0 : return [ 0 ] result = [ " " ] for i in range ( n ) : result = [ " 0 " + num for num in result ] + [ " 1 " + num for num in reversed ( result ) ] return [ int ( num, 2 ) for num in result ]
[ -1.6852458715438843, 0.30652326345443726, 0.5938154458999634, 0.14256565272808075, 0.8562482595443726, -0.2507604956626892, -0.12318841367959976, 0.19310905039310455, 0.5879197120666504, 0.1070583313703537, -0.46144819259643555, 0.5699895024299622, -0.4787018895149231, 1.6930805444717407, ...
def get _ address1 _ error ( self ) - > str : logging. info ( " get error message from'address 1'field. " ) return self. driver. find _ element ( * addaddresslocators. address1 _ error ). text
[ -0.8773289918899536, 0.5464887619018555, 0.46550241112709045, 0.3344338834285736, -0.13537392020225525, 0.5655115842819214, 0.8633109927177429, -0.3777397871017456, 0.340360164642334, 0.36598271131515503, 0.7223424911499023, 0.5338692665100098, -0.6307373642921448, -0.08627777546644211, ...
def obtener _ reader ( archivo ) : archivo. seek ( 0 ) return csv. reader ( archivo )
[ 0.10413263738155365, -0.9552603960037231, 0.18064776062965393, -0.29941317439079285, 0.11574893444776535, 0.09040297567844391, -0.9614964127540588, -0.2615833580493927, -0.4999038577079773, -0.8707244396209717, 1.4039815664291382, 0.9366997480392456, 0.4283648729324341, -1.0729511976242065...
def get ( self, request, id ) : try : if wallet. objects. filter ( technician = id ). exists ( ) : serializer = walletserializers ( wallet. objects. get ( technician = id ) ) return jsonresponse ( { " isamountpresent " : true, " data " : serializer. data }, status = 200 ) else : return jsonresponse ( { " isamountpresen...
[ -0.5473078489303589, -1.1535084247589111, 0.6273685097694397, -0.9973664283752441, -0.06666281074285507, -0.272305965423584, -0.9621769189834595, -0.5016400218009949, 0.6145989298820496, 0.7593100666999817, 0.32094690203666687, 0.2108117640018463, 0.029569286853075027, 0.9150276184082031, ...
def optimal _ coins _ set ( index, change, denom, used ) : if change = = 0 : return if used [ index ] [ change ] : print " use a coin of denomination % d " % denom [ index ] optimal _ coins _ set ( index, change - denom [ index ], denom, used ) else : optimal _ coins _ set ( index + 1, change, denom, used )
[ -0.4257609248161316, 0.8441070318222046, 0.4541073143482208, -0.35182422399520874, 0.30297383666038513, -1.2156176567077637, 0.2097485363483429, -0.9081240892410278, -0.27746960520744324, 0.627750813961029, 0.2740441858768463, 1.0411738157272339, -0.25818946957588196, -0.37273484468460083,...
def _ compute _ asym _ prob _ table ( neighbour _ distances, neighbour _ idx, similarity _ function = compute _ gaussian _ similarity ) : dissim _ table = _ compute _ dissim _ table ( similarity _ function = similarity _ function, neighbour _ idx = neighbour _ idx, neighbour _ distances = neighbour _ distances ) asym _...
[ 0.456843763589859, 0.30057182908058167, 0.6343356370925903, -0.08767478168010712, -0.27821415662765503, -0.4948062598705292, -0.1457969844341278, 0.30081892013549805, -0.25431156158447266, 0.9855415225028992, 0.4898098111152649, 0.5781288146972656, 0.7660197615623474, -0.6550916433334351, ...
async def obamaresidue ( self, context ) : q = basics. contentq ( context. message. content, split = false ) q, max = basics. subcommands ( context, q, [ r " all | max | now | top | list " ] ) bot = self. bot ot. otedit ( self. bot, context. message. author, 0, false, channel = context. message. channel ) if max is not...
[ 0.04414316266775131, -0.09898097813129425, 0.8640919327735901, -0.8105859756469727, 0.7240087389945984, -0.46403974294662476, 0.19589540362358093, 0.24078349769115448, 0.1510397344827652, 0.44646045565605164, 0.1175532191991806, 0.806082546710968, -0.9213321805000305, 0.1763375699520111, ...
def construct _ palindrome ( l ) : if not l : return idx = len ( l ) - 1 head = none while idx > = 0 : head = node ( l [ idx ], head ) idx - = 1 return head
[ -0.7569149136543274, 0.23156197369098663, 0.5749706029891968, -0.46212103962898254, -0.4796149730682373, -0.3055897355079651, 0.6433625221252441, 0.34629616141319275, 0.5375338196754456, -0.3514745533466339, -0.43875885009765625, -0.6023712158203125, -1.918692946434021, -0.0673931017518043...
def _ flush ( self ) : self. _ _ dict _ _ ['_ updatedattr'] = [ ]
[ -1.3920073509216309, -0.5858810544013977, 0.321835458278656, -1.1690826416015625, -0.3891320526599884, 0.5623466372489929, 0.3229004144668579, 0.02793542481958866, -0.4588705897331238, 0.5780280828475952, -0.2305060476064682, 0.45706498622894287, 0.4641468822956085, 0.8400198221206665, 0...
def collapserow ( self, lst ) : collapsible = false length = len ( lst ) base = zero _ count = 0 last _ merge = none for i in range ( length ) : if lst [ i ] = = 0 : zero _ count + = 1 # bad things happen if we test lst [ base ] with itself. elif base! = i : # if the cells at i and base are equal and we haven't merged ...
[ -1.2861993312835693, 0.1940402388572693, 1.0083568096160889, 0.7531216740608215, -0.28575173020362854, -0.7689274549484253, -0.041100457310676575, 0.40778815746307373, 0.4658149480819702, 0.34871789813041687, -0.8712278604507446, -1.4003099203109741, -0.36204278469085693, 1.239243626594543...
def _ _ repr _ _ ( self ) : ret = " - pso - % s - % s execution \ n " % ( self. gettopologytype ( ), self. getpsotype ( ) ) ret + = " \ tswarm size : \ t % d \ n " % ( self. topology. swarmsize, ) ret + = " \ ttime steps : \ t % d \ n " % ( self. timesteps, ) ret + = " \ tcurrent step : \ t % d \ n " % ( self. currents...
[ 0.7548961043357849, -1.0799394845962524, 0.8801683187484741, -0.9358689785003662, -0.2634080648422241, 0.3300715684890747, 0.017834292724728584, -0.30828428268432617, -0.5688214898109436, -0.34964412450790405, 0.16858017444610596, 0.22531332075595856, -0.2658360004425049, 0.412151753902435...
def get _ all _ states ( n, sym = false ) : import warnings warnings. warn ( " this is deprecated to bin _ states ( ). that name is superior. " ) if n < 0 : raise exception ( " n cannot be < 0 " ) if n > 15 : raise exception ( " n is too large to enumerate all states. " ) v = np. array ( [ list ( np. binary _ repr ( i,...
[ -0.535236656665802, 0.7757267951965332, 0.5076444149017334, 0.6219377517700195, 0.24044205248355865, -0.5453944206237793, 0.1580849438905716, -0.546950101852417, 0.8394303321838379, -0.5418239235877991, -0.1991681307554245, -0.09068968892097473, -0.040502507239580154, 0.5856354832649231, ...
def _ attributes _ i _ is _ final ( self, key, flow ) : # make sure interface is ready to use d = self. _ attributes _ t _ init ( key ) if final = = d ['attributes'] [ key ] ['mode'] : return true # no final flag found - - assume non - finality! return false
[ -1.0938512086868286, -0.17434461414813995, 0.5248401761054993, 0.05674615129828453, -0.16941997408866882, 0.07441620528697968, 0.23320990800857544, 0.4292621910572052, -0.3533382713794708, 0.5267408490180969, -0.2856338620185852, -0.586479902267456, -0.46275725960731506, 0.5424097776412964...
def backpropogate ( self, x, y, alpha, n ) : err _ oh = delcrossentropy ( self. o, y ) * delsigmoid ( self. zho ) / n grad _ ho = np. dot ( self. ohh, err _ oh ) grad _ bho = np. sum ( err _ oh, axis = 0 ) err _ hh = np. dot ( err _ oh, np. transpose ( self. who ) ) * delrelu ( self. zhh ) grad _ hh = np. dot ( self. o...
[ 0.12737399339675903, -0.14706669747829437, 1.0967984199523926, -0.7113819122314453, 0.3770160377025604, -0.31988653540611267, -0.07211650162935257, 0.19855931401252747, -0.3054656982421875, 0.8794171810150146, 0.25563210248947144, -0.06322705745697021, -1.413851022720337, 0.231619104743003...
def marges ( edt : edt ) : x = [ ] for activite in edt. activites : x. append ( activite. dta - activite. debut ) return x
[ -0.5026854872703552, -0.5286084413528442, 0.5319715738296509, -0.3151935040950775, -0.17525328695774078, 0.5697893500328064, 0.0012597581371665, 0.1241634339094162, 0.4780716300010681, 1.03815495967865, -0.44355952739715576, 0.6984531879425049, 0.27232280373573303, 0.2274528592824936, -0...
def toggles _ enabled _ for _ user ( username ) : return { toggle _ name for toggle _ name, toggle in all _ toggles _ by _ name ( ). items ( ) if toggle. enabled ( username, namespace _ user ) }
[ -0.28120967745780945, 0.3390776515007019, 0.34722575545310974, 0.7209027409553528, -1.2822544574737549, -0.015550619922578335, -0.3716050386428833, 0.4969269335269928, 0.234048530459404, 0.5251186490058899, -1.227890968322754, -0.36914652585983276, -0.3281349539756775, 0.8604238033294678, ...
def test _ glm _ prepare _ controller _ l1 ( glm _ config _ file : path ) : # monkeypatch helper function so that controller can be tested in isolation glm _ prepare. _ glm _ l1 _ propagate = _ glm _ l1 _ propagate _ return with pytest. raises ( systemexit ) as e : glm _ prepare. glm _ prepare ( glm _ config _ file = g...
[ 0.7351678609848022, -0.16275717318058014, 0.4203566312789917, 0.47835037112236023, 0.25676319003105164, 1.4462372064590454, 0.45713600516319275, 0.24401040375232697, 0.1280246526002884, 0.5746634006500244, -0.4841737449169159, -0.14273394644260406, -0.3337556719779968, 0.5072566866874695, ...
def save _ progress ( config, weight _ dict, it _ val _ dict, exp _ label, step, directories, sess, saver, val _ check, val _ score, val _ loss, val _ perf, train _ score, train _ loss, timer, num _ params, log, use _ db, summary _ op, summary _ writer, save _ activities, save _ gradients, save _ checkpoints ) : # upda...
[ 0.1160736083984375, 0.16160470247268677, 0.6569563746452332, 1.0051227807998657, 0.2913087010383606, 0.10824408382177353, 0.3458780348300934, -0.09323499351739883, -0.5477685332298279, 0.527039647102356, -0.29579097032546997, -1.4139758348464966, -0.11922851204872131, 0.648170530796051, ...
def get _ types ( self ) : return self. types
[ -0.33697381615638733, 0.11039366573095322, 0.3203538954257965, 0.38586175441741943, 1.7126431465148926, 0.4750843346118927, -0.045225560665130615, -0.7926313281059265, 0.08509396761655807, -0.6238323450088501, -0.9923216700553894, 0.5112002491950989, -1.3603153228759766, 0.7633812427520752...
def interpolate _ depth ( data, depth _ array, depth _ new ) : # masked arrays are used for more accurate interpolation. mu = data = = 0 datao = np. ma. array ( data, mask = mu ) mu = depth _ array = = 0 depth _ arrayo = np. ma. array ( depth _ array, mask = mu ) # interpolations f = interp. interp1d ( depth _ arrayo, ...
[ 0.15991736948490143, -0.330193430185318, 0.8426357507705688, 0.15547174215316772, 0.006013740319758654, 0.528191089630127, 0.00983574241399765, 0.009214133955538273, 0.18243879079818726, 0.3598085641860962, 0.6717801690101624, 0.7508308291435242, -0.5142539143562317, 0.539441704750061, -...
def query _ objects ( self, options ) : # search the server for users full _ record = options. get ('full _ record ', false ) fields = self. ldap _ query _ fields if full _ record : fields = none ldap _ users = self. ldap _ connection. search _ s ( self. settings ['base _ dn'], ldap. scope _ subtree, self. settings ['f...
[ -0.7817841172218323, -0.07133540511131287, 0.5448102355003357, -0.3051600754261017, -0.4288942515850067, -0.22662003338336945, 0.04174939915537834, -0.6873371005058289, -0.04600795730948448, 0.44003817439079285, -0.3148532211780548, 0.21003560721874237, -0.5582496523857117, -0.350749999284...
def panel ( hpad, vpad, dbl, input ) : text = input. read ( ) panel = stereo _ panel ( text, hpad, vpad, dbl ) click. echo ( panel )
[ 0.07005932182073593, 0.20411290228366852, 0.26882484555244446, 0.5498424768447876, 0.0259939506649971, 0.7384819984436035, 0.45295608043670654, -0.7444701194763184, -0.3749680817127228, -0.1821233332157135, -0.2399442493915558, 0.8887975215911865, -1.6116998195648193, -0.39767253398895264,...
def print _ rare _ disallows ( ) : # count 1 = > print _ text = " " item _ list = counter ( disallow ). items ( ) file _ name = " rare _ robot _ txt _ disallows. txt " for item in item _ list : if item [ 1 ] < = 1 : print _ text = print _ text + item [ 0 ] + " \ n " write _ to _ file ( file _ name, print _ text )
[ -0.008572444319725037, -0.18116961419582367, 0.7644178867340088, 0.38153383135795593, -0.16356521844863892, 0.7294518947601318, 0.24627898633480072, 0.8393020629882812, -0.12878723442554474, -0.31011560559272766, -0.3107886016368866, 0.6227440237998962, -0.6771196722984314, 0.4394047856330...
def run ( self ) : import tensorflow as tf self. qnn. initialisation ( ) self. sess = tf. session ( ) self. sess. run ( tf. global _ variables _ initializer ( ) ) self. qnn. read _ value _ from _ theta ( self. sess ) self. qnn. read _ value _ from _ theta _ minus ( self. sess ) epsilon = self. epsilon _ ini t = 0 y _ b...
[ -0.14150111377239227, -0.08351090550422668, 0.8239802718162537, 0.0527639165520668, 1.382199764251709, -0.05531662702560425, 0.00004560807064990513, -0.20682737231254578, -0.2278667390346527, 0.5689478516578674, -0.01737472042441368, 0.28218191862106323, 0.21520036458969116, 0.346675843000...
def handle _ cancel ( ) : farewell _ text = render _ template ('cancel _ bye') return statement ( farewell _ text )
[ 1.1004722118377686, 0.3434443771839142, 0.23166479170322418, -0.01643405854701996, -0.901404857635498, -0.2876102924346924, -0.6086610555648804, 0.8196703791618347, -0.4502335488796234, 0.5337126851081848, 0.8132160305976868, -0.7307761311531067, 0.03569439426064491, -0.15269382297992706, ...
def validate _ start _ arguments ( self, addnodesrequest : dict [ str, any ], dbhardwareprofile : hardwareprofile, dbsoftwareprofile : softwareprofile ) - > none : \ # pylint : disable = unused - argument installer = dbhardwareprofile. nics [ 0 ]. node \ if dbhardwareprofile. nics else \ self. _ nodesdbhandler. get _ i...
[ -0.031024344265460968, 1.1102819442749023, 0.5071132779121399, 0.1503709852695465, 0.7669845223426819, 0.6967193484306335, 0.3165263235569, 0.07683850079774857, -0.29204803705215454, 0.5330756306648254, 0.11312619596719742, 0.2177828997373581, -0.5957639217376709, 1.0037950277328491, 0.1...
def submit ( loomfile, model, hapcode, chunk, start, end, outdir, email, queue, mem, walltime, systype, dryrun, verbose ) : utils. configure _ logging ( verbose ) scbase. submit ( loomfile, model, hapcode, chunk, start, end, outdir, email, queue, mem, walltime, systype, dryrun )
[ 0.1360497921705246, 0.14248280227184296, 0.25417980551719666, 0.5803053975105286, 0.10201428830623627, -0.14589886367321014, 0.08182478696107864, -0.2549222707748413, -1.2552918195724487, -0.14124731719493866, -0.515833854675293, 0.8591894507408142, -0.9474974274635315, 0.35997557640075684...
def test _ lies _ under ( self ) : self. asserttrue ( windowspath ( u'\ \ tmp'). lies _ under ( u'\ \') ) self. assertfalse ( windowspath ( u'c : \ \ tmp'). lies _ under ( u'c : \ \ var') ) self. assertfalse ( windowspath ( u'\ \ tmp'). lies _ under ( u'c : \ \ tmp') ) self. assertfalse ( windowspath ( u'c : \ \'). lie...
[ 0.4573368728160858, -0.8263674974441528, 1.003148078918457, -0.12600991129875183, -0.6040634512901306, 1.624037742614746, 1.1725952625274658, -0.44443970918655396, -0.6083987951278687, -0.9783505201339722, -0.957042932510376, -0.023637745529413223, -1.2728075981140137, 0.35407668352127075,...
def sender _ id ( self ) : warnings. warn ( "'sender _ id'is deprecated. ", deprecationwarning, stacklevel = 2 ) return self. room _ id
[ 0.1883373111486435, -0.19563238322734833, 0.33732813596725464, 0.8335869908332825, -0.35714271664619446, -0.3217622637748718, -0.11096572875976562, 0.3404853343963623, -0.3088294267654419, 0.14101536571979523, -0.6262825131416321, 0.2191280722618103, -0.23699051141738892, 1.408572077751159...
def origin _ path ( self ) - > typing. optional [ str ] : return self. _ values. get ('origin _ path')
[ 0.8640385270118713, -0.04953830689191818, 0.2160940170288086, 1.198062539100647, 0.509132444858551, 1.9574099779129028, 0.8141301870346069, 1.0131853818893433, 0.31884458661079407, -0.21890172362327576, 0.24489963054656982, 0.2008904367685318, -0.18798516690731049, -0.8475700616836548, 0...
def set _ style ( style, config ) : conf = cidict ( transform = cidict _ fun ) conf. update ( config ) changed = { } for attr in style _ setters [ 0 ] : if not attr in conf : continue try : value = float ( conf. pop ( attr ) ) setter = getattr ( style,'set'+ attr ) old _ value = none try : if attr in style _ getters : ...
[ -0.0407843180000782, -0.45458728075027466, 0.6739509105682373, 0.0005614953697659075, -0.4045991897583008, -0.7883337140083313, 0.1651201695203781, -0.3027811050415039, -0.6178953647613525, 0.8412383198738098, -0.8567445874214172, -0.2810426652431488, 0.3656243085861206, 1.0527215003967285...
def test _ register _ input _ and _ user _ name _ has _ non _ alphanumeric ( self, * _ ) : self. open ( base _ url +'/ logout') # go to main page self. open ( base _ url +'/ register') # validate that the user is taken to / login assert self. get _ current _ url ( ) = = base _ url +'/ register'self. type ('# email ','t...
[ -0.7664148211479187, 0.41877633333206177, 0.5161555409431458, 0.5775293707847595, 0.007781823631376028, 0.6458532214164734, 0.49294358491897583, 0.06444196403026581, -0.41565611958503723, -0.44060587882995605, -0.8574967384338379, 0.407999724149704, -0.35116928815841675, 1.3584988117218018...
def test _ map _ userinfo _ to _ user _ does _ not _ register _ new _ user ( self ) - > none : userinfo : dict = { " sub " : " test _ user ", " username " : " test _ user ", } request, _ = self. start _ authorization ( userinfo ) self. get _ success ( self. handler. handle _ oidc _ callback ( request ) ) self. complete...
[ -0.5072332620620728, 0.7518827319145203, 0.4125657081604004, 0.8006575703620911, -0.05265505611896515, 1.4873993396759033, 0.8970543742179871, 0.1290881186723709, 0.6624019145965576, -0.6400507092475891, -0.8820118308067322, -0.48654595017433167, 0.45799070596694946, 0.7026522159576416, ...
def train ( self, agent _ fn : callable, env _ fn : callable ) : agent _ fn = self. accelerator. setup ( agent _ fn ) self. _ run _ train ( agent _ fn, env _ fn )
[ 0.14994031190872192, -0.24546292424201965, 0.31584274768829346, 0.8482070565223694, 0.7019895315170288, -0.687564492225647, 0.24750055372714996, 1.1184682846069336, -0.6912232637405396, -0.41520753502845764, -0.35690051317214966, 1.1022975444793701, 1.4321058988571167, -0.06981929391622543...
def calc _ polar ( afile, re, polarfile, cpfile, coordfile, alfa, refine = false, max _ iter = 1000, n = none ) : fnull = open ( os. devnull,'w') pxfoil = sp. popen ( [ xfoilbin ], stdin = sp. pipe, stdout = fnull, stderr = none ) is _ done = false try : with time _ limit ( 15 ) : def write2xfoil ( string ) : if ( sys....
[ 0.13079065084457397, -0.2120577096939087, 0.9932391047477722, 0.2869858145713806, -0.8745229244232178, 0.6847984194755554, -0.04576387628912926, -0.14676812291145325, -0.3940180838108063, 0.19578737020492554, -0.23555190861225128, 0.0907946527004242, -0.021610671654343605, 0.18640723824501...
def _ _ init _ _ ( self, cmd, stdout = none, stderr = none, bufsize = none ) : # make sure'with mockpopen. expectcommands ( ) :'is being used. assert self. _ in _ test, ('mockpopen instantiated without'"'with mockpopen. expectcommands ( ) :'" ) try : # find out what command is expected next and how it should behave. ex...
[ 0.2593880593776703, -0.6349537372589111, 0.7366580963134766, -0.0414438359439373, -0.47581589221954346, -0.7482960224151611, 0.3776962459087372, 0.20705099403858185, 0.11665146797895432, -1.2337439060211182, 0.2031276971101761, 0.31307482719421387, -0.19659991562366486, 0.4869629442691803,...
def mpr _ multinetgetconnectionperformance ( jitter, get _ str, set _ str ) : ret _ ad, args = jitter. func _ args _ stdcall ( [ " lpnetresource ", " lpnetconnectinfostruct " ] ) raise runtimeerror ('api not implemented') jitter. func _ ret _ stdcall ( ret _ ad, ret _ value )
[ -0.494961678981781, -0.47876110672950745, 0.15629121661186218, -0.3304617702960968, -0.4173983633518219, -0.14904913306236267, -0.18715304136276245, -0.6675554513931274, 0.23376907408237457, -0.4573783278465271, 0.4773481786251068, -0.9702951312065125, -0.7685704231262207, 0.66753178834915...
def time _ until _ break ( self, time _ until _ break ) : self. _ time _ until _ break = time _ until _ break
[ -0.4383332431316376, 0.18002639710903168, 0.26549723744392395, -0.04842871055006981, 0.3431648910045624, 1.7006042003631592, 0.16630211472511292, -0.4842447340488434, -1.0398865938186646, 0.36115914583206177, -0.7824491858482361, -1.4092600345611572, -0.3706290125846863, 0.6141652464866638...
def do _ channel _ registration ( self, situ _ img : situimage, reference _ channel : int = 0 ) : reference _ peaks = self. peak _ finder. get _ channel _ peaks ( situ _ img, reference _ channel ) for channel in range ( situ _ img. get _ channel _ count ( ) ) : if channel! = situ _ img. nucleaus _ channel and channel! ...
[ -0.5673850178718567, 0.284214049577713, 0.7312883734703064, 0.3594934344291687, 1.7758958339691162, -0.5362006425857544, 0.21187378466129303, -0.3378582000732422, 0.5913889408111572, 0.40160897374153137, 0.08101644366979599, 0.6855580806732178, 0.36947834491729736, 0.5257817506790161, 0....
def assert _ valid ( name, # type : str value, # type : any * validation _ func, # type : validationfuncs * * kwargs ) : error _ type, help _ msg, none _ policy = pop _ kwargs ( kwargs, [ ('error _ type ', none ), ('help _ msg ', none ), ('none _ policy ', none ) ], allow _ others = true ) # the rest of keyword argumen...
[ -0.2353004813194275, 0.03634397312998772, 0.776093065738678, 0.5996910333633423, -0.4148702323436737, 0.02817002311348915, -0.3396476209163666, -0.5688530802726746, 0.32738804817199707, 0.10409076511859894, -0.16808563470840454, 0.585789680480957, -0.28469932079315186, 0.37766093015670776,...
def naive _ approach ( nums, target ) : # loop through nums, for i in range ( len ( nums ) ) : # loop through nums again for j in range ( i + 1, len ( nums ) ) : # if target = = nums [ i ] + nums [ j ], then return indices if target = = nums [ i ] + nums [ j ] : return [ i, j ] return [ ]
[ -1.0562835931777954, -1.3616565465927124, 0.6543912887573242, -0.23338435590267181, -0.3204549252986908, -0.49551379680633545, 0.06659954786300659, -0.3692742884159088, 0.9024090766906738, 0.699269711971283, 0.768439769744873, 0.541558563709259, -0.23971401154994965, -0.4249791204929352, ...
def epilogue ( bitwidth, chrom, g, xor _ gates, idx, carry = false ) : chrom + = map ( lambda x : [ x [ 0 ], x [ 1 ], gene _ translation. index ( " xor " ) ], zip ( xor _ gates [ : - 1 ], g [ 1 : ] ) ) out = range ( idx, idx + bitwidth - 1 ) idx + = bitwidth - 1 if carry : chrom + = [ [ xor _ gates [ - 1 ], 2 * bitwidt...
[ 0.20373962819576263, 0.05181852728128433, 0.6398941874504089, -0.06551773846149445, -0.5761586427688599, 0.2153315544128418, -0.3758755326271057, 0.15500962734222412, -0.4045667052268982, 0.9703795909881592, 0.1703757643699646, 0.43454012274742126, -0.5637817978858948, -0.7775994539260864,...
def plot _ zoom _ y _ cb ( self, plot, direction ) : scale _ x, scale _ y = self. viewer. get _ scale _ xy ( ) zoomrate = self. viewer. get _ zoomrate ( ) with self. viewer. suppress _ redraw : # zoom y axis if direction = ='in': scale _ y * = 1. 1 elif direction = ='out': scale _ y * = 0. 9 self. viewer. scale _ to ( ...
[ -0.08137053996324539, -0.028476063162088394, 0.850749671459198, 0.026862239465117455, -0.8461351990699768, -0.3341761529445648, 0.7657220959663391, -0.4937814176082611, 0.3697971701622009, -0.1221708133816719, -0.5059106945991516, 0.3603406846523285, 0.40121111273765564, -0.014281657524406...
def should _ play ( ) : global play while true : if play : return true else : time. sleep ( 0. 05 )
[ 0.8340661525726318, 0.3518008887767792, 0.6451424956321716, 0.6788860559463501, -0.18536292016506195, 1.3495135307312012, 0.23780471086502075, -0.938326358795166, -0.2413250058889389, 0.2687241733074188, -0.07636476308107376, 0.08340644091367722, -1.405295491218567, -0.6670641899108887, ...
def unassign _ hooks ( self ) : self. _ monitor = none
[ -0.268644779920578, -0.36482304334640503, 0.308214396238327, -0.6227986216545105, 0.6863723993301392, 0.07186391949653625, 1.2066428661346436, -0.011917989701032639, -0.9174164533615112, 0.02448177896440029, 0.10756590217351913, 0.3624989092350006, -0.8796154856681824, 0.6640359163284302, ...
def recurse _ generate _ json ( self, obj _ type, obj _ id, node ) : label = node. label + 1 for child in node. children : if child. label = = label : test _ result _ object = {'name': str ( child ),'result': child. result,'test _ description': processed _ func _ descrp ( child. kwargs [ " name " ] ),'text': child. to ...
[ -0.6744396090507507, 0.02725982666015625, 1.069701075553894, -0.6050587296485901, 0.47349119186401367, -0.26031583547592163, 0.997202455997467, -0.9598467946052551, 0.15606427192687988, -0.041182707995176315, -0.828900158405304, 0.18744593858718872, -0.019785622134804726, 0.955035746097564...
def search _ image ( keyword, keyword2, number ) : # provide api key and project cx gis = googleimagessearch ('aizasybqfju9zopofck2v8 - b7bmtqeyp5ragzec ','6922f47f7f04d0785') current _ dir = os. getcwd ( ) # define search paramemts _ search _ params = {'q': keyword,'num': number, } # create a directory named with keyw...
[ -0.6792022585868835, 0.1016177386045456, 0.5913873314857483, 0.2012932151556015, -0.3400147557258606, 0.27116844058036804, -0.5222422480583191, -0.31428056955337524, -0.49892643094062805, 0.23080092668533325, -0.4038388729095459, 0.5548726916313171, -0.4752282500267029, 1.0923629999160767,...
def remove ( self, target _ item ) : if len ( self ) = = 0 : raise indexerror ( " len ( node ) = 0. no item to remove in empty node. " ) probe = self while probe. next _. next _ is not self : if probe. next _. data = = target _ item : break probe = probe. next _ if probe. next _. data = = target _ item : probe. next _ ...
[ -1.1919951438903809, 0.6842445135116577, 0.788452684879303, -0.14949549734592438, -0.1280013769865036, 0.044753216207027435, 0.6213299036026001, 0.4364359974861145, 0.477221816778183, 0.5362486839294434, -0.810789167881012, -0.4244590401649475, -1.2929936647415161, -0.7578537464141846, -...
def test _ connect ( self ) : c = self. _ new _ client ( )
[ 0.34082162380218506, 0.09456797689199448, -0.027615956962108612, 0.028893742710351944, 0.7842381000518799, 0.46406376361846924, 1.0030744075775146, -0.4806869328022003, -0.998119056224823, -0.7200741171836853, -0.33595120906829834, -0.26193490624427795, -0.3674221336841583, -0.252499073743...
def setup ( self ) : logging. basicconfig ( ) self. logger = logging. getlogger ('logdbtest') # self. logger. setlevel ( logging. debug ) self. schema = [ ] self. couchapps = [ " logdb " ] self. testinit = testinitcouchapp ('logdbtest') self. testinit. setlogging ( ) self. testinit. setdatabaseconnection ( ) self. test...
[ 0.7065773606300354, -0.277910977602005, 0.6235881447792053, -0.1299647092819214, 1.0460206270217896, 0.23486244678497314, 0.43846502900123596, 0.32727280259132385, 0.4347097873687744, -0.63492751121521, -0.49120938777923584, -0.5348540544509888, -0.36581847071647644, 0.47024571895599365, ...
def getreportadapter ( self ) : return self. reportadapter
[ 0.47804027795791626, -0.4865031838417053, 0.1611703634262085, -0.12626849114894867, -0.17333239316940308, -0.0628405287861824, 0.6594812870025635, -0.17255958914756775, 0.6195135116577148, -0.9236056804656982, 0.7958759069442749, 0.21010610461235046, -0.9658656716346741, 0.1163497790694236...
def check _ docker ( ) - > checklevels : try : docker. from _ env ( version ='auto') except docker. errors. dockerexception : message = ('docker is not running.'' docker is required for the " create " command to determine the'' dc / os variant of the given dc / os installer.'' use the " - - variant " option when using ...
[ -0.4673090875148773, 0.3115274906158447, 0.5618821382522583, 1.283147931098938, 0.2023373246192932, 0.019451966509222984, 0.4832998216152191, -0.6147900223731995, -0.6180615425109863, 0.1999104768037796, 0.20930977165699005, 0.005966374184936285, 0.3391132056713104, 0.9036062955856323, 0...
def titlebarlocation ( self ) - > palettesettitlebarlocation :
[ -0.4736713767051697, -0.3140316903591156, 0.3432007133960724, -0.5839176177978516, -0.5669944882392883, 0.7463265657424927, 0.6896028518676758, -0.523514986038208, 0.09314624220132828, -0.9335079193115234, -0.12044477462768555, -0.628420889377594, -0.16799278557300568, -0.06754571944475174...
def send _ packet ( self, addr, packet ) : return - 1
[ -1.5926685333251953, 1.159703016281128, 0.30128222703933716, 0.5933390855789185, -0.2105628103017807, -0.192252516746521, -0.2735499143600464, 0.33300769329071045, 0.1691426932811737, 0.03252079337835312, 0.377474844455719, 0.16639173030853271, 0.13377560675144196, 0.17820172011852264, -...
def _ _ conv2d ( self, x, y, padding = none, strikes = none ) : # using default if padding is none : padding = self. padding if strikes is none : strikes = self. strikes # calculate shape of the result result _ shape = [ x. shape [ 0 ] - ( padding [ 1 ] + padding [ 3 ] ), x. shape [ 1 ] - ( padding [ 0 ] + padding [ 2 ...
[ 0.04629145935177803, -0.43433213233947754, 1.316601276397705, -0.3700631856918335, -0.9046294093132019, -0.509184718132019, -0.3027227222919464, -0.46495679020881653, -0.21347366273403168, 0.012274528853595257, -0.010767623782157898, 0.5894704461097717, 0.28037866950035095, -0.557530522346...
def getquaternionbetween ( self, u, v ) : # print ( " u : " + str ( u ) ) # print ( " v : " + str ( v ) ) w = u. cross ( v ) # print ( " cross : " + str ( w ) ) d = u. dot ( v ) # print ( " dot : " + str ( d ) ) q = quaternion ( ( 1. 0 + d, w. x, w. y, w. z ) ) ; # print ( " q : " + str ( q ) ) return q. normalized ( )
[ -0.007853476330637932, -1.5244169235229492, 0.5352371335029602, -0.5345384478569031, -0.8586778044700623, 0.08469448238611221, 0.140208438038826, -0.24572427570819855, 0.4656856656074524, -0.6804012060165405, -0.25500890612602234, 1.0861667394638062, -0.9865230321884155, -0.845281958580017...
def update ( self, graph ) : self. graph = graph self. vlst = range ( len ( graph. vs [ : ] ) ) if'name'in graph. vertex _ attributes ( ) : self. vnlst = graph. vs ['name'] [ : ] self. elst = graph. get _ edgelist ( ) if'color'in graph. edge _ attributes ( ) : self. eclst = graph. es ['color'] [ : ]
[ -0.4509459137916565, -0.8124704957008362, 0.2067434936761856, -0.5378149747848511, -0.6521740555763245, 0.1943930983543396, -1.043314814567566, 0.3372848927974701, 0.6006631851196289, 0.6073802709579468, -0.6907467246055603, 0.20718291401863098, 0.5780633687973022, 0.25252440571784973, -...
def refresh ( self, eager = false ) : current = self. get _ by _ uuid ( self. _ context, uuid = self. uuid, eager = eager ) self. obj _ refresh ( current )
[ -0.656455934047699, -0.7426650524139404, 0.25072428584098816, 0.12978777289390564, 0.09732645750045776, -0.06272612512111664, 0.11316071450710297, -0.5493447184562683, -0.29665112495422363, 0.5969761610031128, 0.601747453212738, 0.6191761493682861, 0.1125742495059967, -0.5554324388504028, ...
async def idkick ( self, ctx : commands. context, user _ ids : commands. greedy [ rawuserids ], *, reason : str = none, ) : kicked = [ ] errors = { } async def show _ results ( ) : text = " kicked { num } users from the server. ". format ( num = humanize _ number ( len ( kicked ) ) ) if errors : text + = " \ nerrors : ...
[ -0.3763580918312073, 0.3172330856323242, 0.3920760154724121, 0.8088106513023376, 0.2862083315849304, -0.22508467733860016, 0.22690843045711517, 0.2940087914466858, 0.37445539236068726, 0.6769095659255981, -0.43758031725883484, 1.2748706340789795, -0.6515072584152222, 0.6417108774185181, ...
def linkcode _ resolve ( domain, info ) : if domain! ='py': return modname = info ['module'] fullname = info ['fullname'] submod = sys. modules. get ( modname ) if submod is none : return obj = submod for part in fullname. split ( '.') : try : obj = getattr ( obj, part ) except attributeerror : return # strip decorator...
[ -0.14014044404029846, -0.777696967124939, 0.7919766306877136, -0.5644415020942688, 0.43971407413482666, -0.37910813093185425, 0.3985802233219147, 0.12812907993793488, -0.08106198161840439, -0.22720234096050262, 0.24521709978580475, 0.1546257883310318, 0.3932305574417114, 0.3817880749702453...
def test _ identify _ protdnainterface ( protdna _ caprimodule, protdna _ input _ list ) : protdna _ complex = protdna _ input _ list [ 0 ] observed _ interface = protdna _ caprimodule. identify _ interface ( protdna _ complex, cutoff = 5. 0 ) expected _ interface = { " a " : [ 10, 16, 17, 18, 27, 28, 29, 30, 32, 33, 3...
[ -0.9761503338813782, -0.20148321986198425, 0.3145090341567993, -0.07733028382062912, 0.49185559153556824, 0.8828319311141968, 0.9728100299835205, -0.5237174034118652, 0.6235369443893433, -0.2592583894729614, -0.597183883190155, 0.3279496729373932, -0.8591541051864624, 0.14951354265213013, ...
def event _ cards ( self ) - > tuple [ eventcard,... ] : return tuple ( eventcard ( self. page, item ) for item in self. container. find _ elements ( * eventcard. root _ locator ) )
[ -0.11265829205513, -0.5314924120903015, 0.43986624479293823, 0.4918738603591919, 1.1547913551330566, -0.730987548828125, -0.11095575988292694, 0.42215004563331604, 0.0836130827665329, 0.39868655800819397, -0.6421432495117188, -0.5242300629615784, 0.6382937431335449, 0.14740455150604248, ...
def _ _ get _ codeclimate _ category ( cppcheck _ severity : str ) - > str : map _ severity _ to _ category = { " error " : " bug risk ", " warning " : " bug risk ", " style " : " style ", " performance " : " performance ", " portability " : " compatibility ", " information " : " style ", } return map _ severity _ to _...
[ -0.07410310953855515, -0.32272452116012573, 0.4916858971118927, -0.05734461918473244, 0.04201444610953331, 0.37916576862335205, 0.04397894814610481, -0.20436817407608032, -0.36273911595344543, -0.38725337386131287, 0.19932377338409424, 0.5946886539459229, 0.7089107632637024, 0.384191423654...
def get _ taxon _ key ( species _ list ) : print ( " \ ngetting gbif taxon key for species in the list. " ) base _ url = " https : / / api. gbif. org / v1 / " resource = " species / match " parameter = " name " species _ dict = { } for species _ name in species _ list : response = requests. get ( f " { base _ url } { r...
[ -0.7057055234909058, -0.06533440947532654, 0.25383418798446655, 0.41021478176116943, 0.39950498938560486, -0.24427305161952972, 0.2030228227376938, -0.06919997185468674, -1.2106702327728271, 0.9602874517440796, -1.3793920278549194, -0.15112429857254028, -0.599267303943634, 1.23922741413116...
def rename _ volume ( self, lv _ name, new _ name ) : try : self. _ execute ('lvrename ', self. vg _ name, lv _ name, new _ name, root _ helper = self. _ root _ helper, run _ as _ root = true ) except putils. processexecutionerror as err : log. exception ( _ le ('error renaming logical volume') ) log. error ( _ le ('cm...
[ -0.037608496844768524, -1.251500129699707, 0.44172579050064087, -0.4011799097061157, -0.5088635087013245, -0.2436329573392868, -1.0290842056274414, -0.061614882200956345, -0.32580316066741943, 1.0512796640396118, 0.36930418014526367, 1.3642041683197021, 0.013706116005778313, 0.128014087677...
def print _ report ( self ) : stats = stats ( ) for pool in range ( 0, self. num _ pools ) : stats. add _ meta ( " pool ", int ( self. meta. get ( " root " ) ) ) stats. add _ meta ( " container ", int ( self. meta. get ( " container " ) ) ) self. calc _ tree ( stats, self. pools [ pool ] ) stats. pretty _ print ( )
[ 0.8633743524551392, 0.6297413110733032, 0.5220690369606018, -0.6908960938453674, 0.7230324745178223, 0.21589669585227966, 1.0474026203155518, -0.5218980312347412, -0.7227270007133484, -0.510398805141449, 0.19956621527671814, 0.4584769010543823, 0.17065690457820892, 0.5713930130004883, -0...
def show _ modal _ dialog ( non _ blocking, dlg _ class, xml _ filename, * * kwargs ) : # warning : domodal when invoked does not release the function immediately! # it seems that domodal waiting for all window operations to be completed before return, # for example the " skip " dialog takes about 30 seconds to release...
[ 0.04532982409000397, 0.47263216972351074, 0.7457675337791443, -0.4016208350658417, -1.3134976625442505, -0.3974170982837677, -0.15412692725658417, 0.21334409713745117, 0.25051432847976685, 0.5249395370483398, 0.30832329392433167, 0.6915010809898376, 0.07005541026592255, 0.5265499949455261,...
def addconnection ( analyzer, origen, destino, distancia ) : grafo = analyzer ['connections'] try : gr. addedge ( grafo, origen, destino, distancia ) return analyzer except exception as exp : error. reraise ( exp,'model : addconnection')
[ -0.7521417737007141, 0.19917191565036774, 0.5370293855667114, 0.40280723571777344, -0.25863707065582275, 0.6903638243675232, -0.32186347246170044, -0.327079176902771, -0.4726354479789734, -0.11931300163269043, 1.3400967121124268, -0.7682491540908813, -0.10468428581953049, -0.67743295431137...
def get _ top _ wall ( self ) : x1, y1 = self. left + 1, self. top x2, y2 = self. left + self. width - 2, y1 return self. level. get _ tiles _ along _ line ( x1, y1, x2, y2 )
[ -0.4027891457080841, -0.13332997262477875, 0.8729596138000488, 0.9211892485618591, -0.40600693225860596, -0.22592392563819885, 0.408764123916626, -1.1184293031692505, -0.29469332098960876, 0.23760779201984406, -0.41021284461021423, 0.026711544021964073, -0.5501620173454285, 0.7408799529075...
def show _ observed _ model ( self, ) : img = self. compute _ observed _ model ( unit ='mag') self. image _ template ( img, " zodiacal _ light _ obsersved _ model ", mask = true )
[ 0.22745727002620697, -0.19889362156391144, 0.4696275293827057, -0.30888956785202026, 0.16115044057369232, 1.175333857536316, 0.6503379940986633, 0.10137452930212021, -0.521697998046875, 0.3297214210033417, -0.11959542334079742, 0.7476176023483276, 1.2621084451675415, 0.7184427380561829, ...
def alpha _ has _ subs ( self ) : has _ sub = false for symbol in self. alphabet : if symbol. sub : has _ sub = true return has _ sub
[ 0.05358210206031799, -0.03495980426669121, 0.710798978805542, -0.29902440309524536, 0.10696303844451904, 0.6795452833175659, -0.1315433531999588, 0.23361793160438538, -0.3058863878250122, -0.8334543108940125, -1.3080766201019287, 0.2837180197238922, -0.48233386874198914, 1.4673051834106445...
def target _ team _ id ( self ) : return self. _ target _ team _ id
[ 0.6178813576698303, -0.663750171661377, 0.02502279169857502, 0.5198001861572266, 0.9509080648422241, 1.281389594078064, 0.27773159742355347, 0.2681146562099457, 0.20757120847702026, -0.2289382517337799, 0.575280487537384, 1.1549553871154785, 0.5365276336669922, -0.7811932563781738, -0.28...