text
stringlengths
25
2.19k
embedding
listlengths
768
768
def gaussian _ kernel ( d = 16, l = 48, sig = 1. ) : ax = np. linspace ( - ( l - 1 ) / 2., ( l - 1 ) / 2., l ) xx, yy = np. meshgrid ( ax, ax ) kernel = np. exp ( - 0. 5 * ( np. square ( xx ) + np. square ( yy ) ) / np. square ( sig ) ) kernel = ( kernel / np. sum ( kernel ) ) + 1 kernel [ kernel > 1 ] + = 1 kernel = n...
[ -0.519232988357544, 0.20415276288986206, 0.5172408223152161, 0.3358534872531891, -0.7201727032661438, -0.3023693561553955, 0.3752357065677643, -0.028145963326096535, 0.47016966342926025, -0.3459281027317047, -0.23627592623233795, 0.3005264401435852, 0.25927531719207764, 0.6568922996520996,...
def single _ rr _ load ( file _ name, label ) : x = np. load ( file _ name ) return x, [ label ] * ( len ( x ) )
[ -0.24455229938030243, -0.026272397488355637, 0.3248867988586426, -0.7703242897987366, 0.42778366804122925, 0.40208014845848083, -0.5160524249076843, 0.8725563287734985, -0.38908132910728455, 0.7601447701454163, -0.3214583992958069, 0.26766863465309143, -0.4345032870769501, -0.6797869801521...
def soft _ delete ( self ) : self. state = state. deleted self. save ( ) db _ obj = self. dbapi. soft _ delete _ action ( self. uuid ) obj = self. _ from _ db _ object ( self. _ _ class _ _ ( self. _ context ), db _ obj, eager = false ) self. obj _ refresh ( obj ) notifications. action. send _ delete ( self. obj _ cont...
[ 0.6749981641769409, -0.34773269295692444, 0.4031710624694824, 0.34467917680740356, 0.03484825789928436, 0.0584372952580452, 0.7280592322349548, 0.18547888100147247, 0.719581663608551, -0.12939374148845673, -0.9543454051017761, 0.31411540508270264, 0.45928993821144104, -0.16052377223968506,...
def _ _ init _ _ ( self, n : int ) : self. n = n
[ -0.7230785489082336, -0.09488658607006073, 0.18204280734062195, 0.21991172432899475, 0.10694317519664764, 0.09500526636838913, 0.006127017550170422, 0.0009124875068664551, 0.31296107172966003, -0.8505948185920715, -1.3677594661712646, -0.27914324402809143, 0.5237030982971191, 1.20218527317...
def unsubscribe ( self ) : return self. person. unsubscribe ( )
[ 0.6545320153236389, -0.006840556859970093, 0.34885838627815247, 0.7005746960639954, -1.7213222980499268, -0.41061151027679443, -0.6157749891281128, 0.44183671474456787, -0.47234994173049927, -0.986009418964386, -0.25318917632102966, -0.10199229419231415, -0.6026735901832581, -0.44711497426...
def _ request ( self, method, url, params = none, files = none ) : if not params : params = { } params ['apikey'] = self. api _ key headers = {'user - agent': self. user _ agent,'accept':'application / json'} try : if self. debug : print ( method +'' + url ) print ( params ) response = requests. request ( method = meth...
[ -0.7520627379417419, -0.15120981633663177, 0.6955209970474243, 0.21096685528755188, 0.5661411285400391, -1.1383594274520874, -0.5489024519920349, -0.06172472983598709, 0.06039005517959595, 0.0018818248063325882, -0.09220092743635178, -0.02547057345509529, -1.3733007907867432, 0.16101139783...
def get _ annotmatch _ confidence ( ibs, annotmatch _ rowid _ list, eager = true, ninput = none ) : id _ iter = annotmatch _ rowid _ list colnames = ( annotmatch _ confidence, ) annotmatch _ confidence _ list = ibs. db. get ( const. annotmatch _ table, colnames, id _ iter, id _ colname ='rowid ', eager = eager, ninput ...
[ -0.4023687541484833, -0.6089368462562561, 0.4448539614677429, 0.42137667536735535, 0.17303162813186646, -0.04745795950293541, -0.47480204701423645, -0.01615585945546627, 0.09241824597120285, 1.2063043117523193, -0.11575927585363388, -0.46431389451026917, -0.08232492208480835, 0.77928847074...
def load _ config ( config _ fp ) : _ dict = none with open ( config _ fp ) as c : _ dict = _ load ( c, object _ hook = hinted _ tuple _ hook ) return _ dict
[ -0.48492684960365295, -0.3327302038669586, 0.16411592066287994, -0.3748398423194885, -1.152864933013916, -0.06511155515909195, 0.8323175311088562, 0.4871634840965271, -1.0645320415496826, 0.6605661511421204, -1.1204925775527954, -1.8062376976013184, -0.10194966197013855, 0.1030536517500877...
def command _ menu ( user _ input : str ) : data = yaml _ loader ( filepath ) commands = {'r': remember,'- c': create _ category,'f': forget,'e': edit,'clear': clear, } return commands [ user _ input ] ( data )
[ -0.02875114418566227, -0.29558542370796204, 0.2411080002784729, 0.27552393078804016, 0.14791589975357056, -0.3858938217163086, 0.24817079305648804, -0.13165536522865295, -0.24827836453914642, -0.5806097388267517, 0.08217310905456543, 0.07387392222881317, 0.7656615376472473, 0.8371121287345...
def ingest _ aggregator _ rss _ http ( event, context ) : try : data = json. loads ( event ['body'] ) url = data ['url'] if'url'in data else none except : return { " error " : sys. exc _ info ( ) } page _ topic _ arn = os. environ. get ('page _ add _ topic') discover _ topic _ arn = os. environ. get ('discover _ add _ ...
[ 0.1756594330072403, 0.08417297899723053, 0.9244322180747986, -0.024322910234332085, 1.1912198066711426, -0.19584420323371887, -1.279509425163269, -0.07218808680772781, 0.09453929215669632, 0.6222434043884277, 0.22680413722991943, 0.5341384410858154, 0.08498672395944595, 0.8877273797988892,...
def print _ object ( self, name = none ) : if name is none : print json. dumps ( self. get _ objects ( ) ) return print json. dumps ( self. get _ object ( name ) )
[ -0.8276885747909546, -1.047249436378479, 0.6985291242599487, -0.194738507270813, -0.2954949736595154, -0.8300138115882874, -0.4035038948059082, -1.099442958831787, 0.08336147665977478, 0.38895249366760254, -0.6389303207397461, 0.9926917552947998, -0.07342486828565598, -0.06541464477777481,...
def tvm _ callback _ cuda _ compile ( code, target ) : # pylint : disable = unused - argument ptx = compile _ cuda ( code, target _ format = " fatbin " ) return ptx
[ -0.07389063388109207, -0.4345645606517792, 0.1841774731874466, 0.07735522091388702, 0.10952635854482651, -0.7930789589881897, -0.5602014064788818, -0.9273542761802673, 0.2732248902320862, 0.4386073648929596, 1.2317774295806885, 0.7326319813728333, -0.007989605888724327, 0.48213669657707214...
def path _ pattern ( self ) - > typing. optional [ str ] : return self. _ values. get ('path _ pattern')
[ 0.3401505947113037, 0.32316461205482483, 0.27871665358543396, 1.0268757343292236, 0.7904562950134277, 1.5253180265426636, 0.8207898736000061, 0.3902476727962494, 0.5320033431053162, -0.3192647099494934, 0.11661622673273087, -0.4716632664203644, -0.37963807582855225, -0.6039931178092957, ...
def seats ( n ) : if n = = 1 : return 1 elif n < = 0 : return 0 else : s = 0. 0 for k in range ( n ) : s + = 1. 0 + seats ( n - k - 2 ) + seats ( k - 1 ) return s / n
[ -0.31465601921081543, 0.8121535778045654, 0.4267520308494568, 0.9991505146026611, -0.4845319986343384, 0.14378492534160614, 0.46581801772117615, -0.19502034783363342, -0.019405171275138855, 0.2399665117263794, 0.059342436492443085, -0.3092668354511261, -0.2632441520690918, 1.38400626182556...
async def rel ( self, ctx, *, cog : str ) : if not mod _ check ( ctx ) : return try : if cog. lower ( ) = = " last " : if self. last _ cog! = " " : cog = self. last _ cog else : await ctx. send ( f " * * ` error : ` * * no last cog " ) self. client. unload _ extension ( " cogs. " + cog ) self. client. load _ extension ...
[ 0.27387043833732605, 0.4572405517101288, 1.1814264059066772, -0.3543270528316498, 0.18126924335956573, -0.03569256514310837, 0.16145604848861694, 0.05576223134994507, 0.0315864197909832, 0.6873331069946289, -0.2746387720108032, 0.9858243465423584, -1.2495794296264648, -0.54912930727005, ...
def parse ( self, response ) : custom _ settings = {'item _ pipelines': {'ufcstats. pipelines. ufcstatspipeline': 400 } } # prompt user to specify whether to update all fighters or to provide an event number. event _ update = none while event _ update is none : try : event _ update _ type = int ( input ('\ nselect from...
[ -0.15685667097568512, 0.23943668603897095, 0.7285389304161072, 0.3632243275642395, 0.21729418635368347, -0.14570552110671997, 0.23990245163440704, -0.1958015412092209, 0.1860453337430954, -1.1178141832351685, 0.6717908978462219, -0.2816372811794281, 0.2464839220046997, 0.5624333620071411, ...
def get _ voltage ( self ) : return self. environment. get ( self. env _ id )
[ 0.17408090829849243, -0.24962788820266724, 0.28216561675071716, 0.5821691751480103, 0.31839969754219055, -0.20838800072669983, -0.8514867424964905, -0.6020298004150391, -0.018317459151148796, -0.24273939430713654, 0.7533186078071594, 1.6130138635635376, -0.5532211065292358, 0.5275744795799...
async def async _ setup _ platform ( hass, config, add _ entities, discovery _ info = none ) : return true " " " set up the ical sensor. " " " name = config. get ( conf _ name ) max _ events = config. get ( conf _ max _ events ) ical _ events = hass. data [ domain ] [ name ] _ logger. debug ( f " data : { ical _ events...
[ -0.11130857467651367, 0.5432681441307068, 0.59731525182724, -0.22929629683494568, 0.47214749455451965, 0.27975520491600037, 0.0023926678113639355, -0.30406707525253296, -0.0013865565415471792, 0.8587431907653809, -0.08312917500734329, -0.8586037158966064, -0.47155389189720154, 0.1156535372...
def refresh ( self ) : self. results. refresh _ from _ data ( ) self. results. scroll _ y = 1
[ 0.11564439535140991, 0.013805657625198364, 0.15366199612617493, 0.5770177245140076, 0.4055728614330292, -0.17211493849754333, 0.19646055996418, -1.0319334268569946, -0.3535732626914978, -1.1368767023086548, 0.17792664468288422, 0.25465521216392517, -0.07624141126871109, 1.0483243465423584,...
def getroot ( self, x ) : lastx, count = float ( " inf " ), 0 while abs ( x - lastx ) > self. precision : lastx = x count + = 1 x = lastx - self. f ( lastx ) / self. dfdx ( lastx ) return [ x, count ]
[ 0.22370529174804688, 0.848003089427948, 0.6088838577270508, -0.01581459492444992, -0.3453192710876465, -0.28390994668006897, 0.07146108150482178, -0.17110510170459747, 0.313090980052948, -0.4199555516242981, -0.06554007530212402, 0.48882800340652466, -0.012366784736514091, -0.3515079021453...
def create _ short _ circuit ( self, target _ name, time, fault _ type, duration = none, name ='sc') : # get element where the short circuit will be made target = self. app. getcalcrelevantobjects ( target _ name ) [ 0 ] # get events folder from active study case evt _ folder = self. app. getfromstudycase ('intevt') # ...
[ 0.44919663667678833, -0.2771385610103607, 0.6738104224205017, -0.0032199390698224306, -0.2115696221590042, 0.5967649817466736, -0.161982461810112, -0.25545352697372437, 0.41632091999053955, 0.44446733593940735, 0.10083817690610886, 0.881357729434967, 0.25544071197509766, 0.0923440381884574...
def test _ filesystem _ list _ empty ( self ) : result = stratisdbus. fs _ list ( ) self. assertequal ( result, { } )
[ -1.2418689727783203, 0.10938333719968796, 0.28880077600479126, -0.4501468539237976, 0.8440814018249512, 0.011890866793692112, -0.6822857856750488, -0.5954264402389526, 0.31548818945884705, -1.6021997928619385, -0.8267730474472046, -0.8734886050224304, -0.2434646636247635, 0.446008443832397...
def handle _ single _ note ( image : np. ndarray, key : keyenum, line _ gap : int, note _ center _ h : int, note _ center _ v : int, element _ height : int, upper _ limit : int ) - > note : # todo : include the possibility of being in a different scale - assuming do major # todo : consider the 1 / 16th note as well hei...
[ 0.17429642379283905, -0.18518584966659546, 0.814603328704834, 0.17780201137065887, 0.08730506151914597, 0.2455991506576538, 0.3165595531463623, 0.47017043828964233, 0.26995396614074707, 0.6557530760765076, 0.7477191090583801, 0.07693280279636383, -0.017887698486447334, 0.05957956612110138,...
def run ( self, args ) : try : private _ key = open ( args. key _ file,'rb'). read ( ) except ioerror as e : raise c _ exc. badfileexception ( e ) json _ key = none try : json _ key = json. loads ( private _ key ) except valueerror : pass account = none if json _ key : if args. password _ file or args. prompt _ for _ p...
[ -0.22109131515026093, -0.04018073156476021, 0.9875076413154602, 0.19994714856147766, -0.2398371547460556, 0.22013361752033234, 0.8103038668632507, 0.17864666879177094, -0.7511378526687622, 0.31460097432136536, 0.28598344326019287, 0.6872531175613403, 0.3103303909301758, 0.4470151364803314,...
def quota _ class _ get _ all _ by _ name ( context, class _ name ) : return impl. quota _ class _ get _ all _ by _ name ( context, class _ name )
[ -0.8885184526443481, -0.3869527280330658, 0.6058986783027649, 0.6892238855361938, 0.2980016767978668, -0.060708459466695786, -0.7354161143302917, -0.8017076849937439, 0.17498263716697693, 0.9911656975746155, -0.11467009782791138, -0.5636695027351379, 1.1624422073364258, 0.01973349973559379...
def _ create ( self ) : with _ handle _ azure _ exception ( ) : self. _ create _ from _ size ( content _ length = self. _ content _ length, * * self. _ client _ kwargs )
[ 0.9833698868751526, 0.33496642112731934, 0.22726087272167206, -0.4572181701660156, 0.41233885288238525, 0.03077940084040165, -0.10484471172094345, -0.5179793834686279, -0.497737318277359, -0.1457253098487854, 0.05481370911002159, -0.3982827961444855, -0.4163431227207184, -0.239802002906799...
def vis _ nodedep _ elements ( curr _ doc : currentdoc, nodedep _ list ) : # todo correct force management i = 0 for el in nodedep _ list : if isinstance ( el, elementcalculation ) : if el. k _ spring _! = 0 : el _ type = elsupenum. elsupenum. spring. value else : # is beam or rod el _ type = elsupenum. elsupenum. beam...
[ -0.7544920444488525, 0.0008924192516133189, 0.5445853471755981, 0.2126818150281906, -0.5285214185714722, 1.1604727506637573, 1.1483696699142456, 0.04671615734696388, 0.950101375579834, -0.020290285348892212, -0.1915096938610077, 0.25729435682296753, 0.39152011275291443, 1.756711483001709, ...
def test _ recipient _ autocomplete _ failure ( client ) : resp = client. post ('/ api / v2 / autocomplete / recipient / ', content _ type ='application / json ', data = json. dumps ( { } ) ) assert resp. status _ code = = status. http _ 400 _ bad _ request
[ -0.7522112727165222, -0.3380143940448761, 0.27361831068992615, -0.9030196666717529, -0.13660161197185516, 0.04653298854827881, -0.8915601372718811, -0.42921632528305054, -0.4809516370296478, 0.37728622555732727, -0.9278561472892761, 0.8164995312690735, -0.10253384709358215, -0.025761187076...
def get _ actual _ column _ char _ len ( self, desired _ char _ len, check _ remaining _ row _ chars = true ) : if self. actual _ column _ char _ len! = - 1 : return self. actual _ column _ char _ len # already calculated if desired _ char _ len < self. min _ width : actual = self. min _ width else : actual = desired _...
[ -0.9420475959777832, -0.6585367321968079, 0.7722856998443604, 0.17637979984283447, -0.495278000831604, -0.2746953070163727, 0.7216853499412537, -0.3973946273326874, -0.5221301913261414, -0.2511851489543915, -0.2858433425426483, 0.10284623503684998, -0.4651370942592621, -0.01673628576099872...
def test _ job _ type _ enum ( self ) : self. assertequal ( jobtypeenum ('composite'). value,'composite') self. assertequal ( jobtypeenum ('conformers'). value,'conformers') self. assertequal ( jobtypeenum ('freq'). value,'freq') self. assertequal ( jobtypeenum ('gen _ confs'). value,'gen _ confs') self. assertequal ( ...
[ -0.5126661658287048, -0.3109862208366394, 0.8131904602050781, -0.4337557852268219, 0.38151609897613525, 0.44387200474739075, 0.013705643825232983, -0.3493209183216095, -0.09492086619138718, -0.17894133925437927, -0.9803352355957031, -0.13693486154079437, 0.029026491567492485, 0.47427651286...
def find _ best _ time _ to _ buy ( origin, destination, departure _ date, arrive _ by = none ) : features, values = parse _ extensive ( amadeus _ extensive _ request ( origin, destination ) ) vec = dictvectorizer ( ) clf = svm. svr ( ) clf. fit ( vec. fit _ transform ( features ). toarray ( ), values ) print vec. get ...
[ -0.6761261820793152, 0.2810845971107483, 0.8612141609191895, 0.21198885142803192, -0.19467668235301971, -0.4362928569316864, -0.7591545581817627, 0.18051934242248535, -0.6397808194160461, 0.6124264001846313, 0.06765880435705185, -0.05769443139433861, 0.5696448087692261, 0.37531062960624695...
def get _ normalized _ probs ( self, net _ output, log _ probs ) : logits = net _ output [ " encoder _ out " ] if log _ probs : return utils. log _ softmax ( logits. float ( ), dim = - 1 ) else : return utils. softmax ( logits. float ( ), dim = - 1 )
[ 0.9970423579216003, -0.2657250761985779, 0.470333993434906, 0.5958337187767029, -0.5196611881256104, -0.633340060710907, -0.6331709027290344, -0.15811555087566376, 0.33342787623405457, 0.23851563036441803, 0.7640764117240906, 0.24413008987903595, -0.46943092346191406, -0.4438941478729248, ...
def _ got _ chunk ( self, chunk, timestamp ) : if adcp _ pd0 _ parsed _ regex _ matcher. match ( chunk ) : pd0 = adcppd0record ( chunk ) transform = pd0. coord _ transform. coord _ transform if transform = = pd0coordinatetransformtype. beam : science = pd0beamparticle ( pd0, port _ timestamp = timestamp ). generate ( )...
[ 0.3729765713214874, -0.20927761495113373, 0.6505391597747803, -0.8961663246154785, 0.5734320878982544, -0.7138562798500061, 0.11207754164934158, -0.1960649937391281, 0.16430862247943878, -0.526358425617218, -0.041518762707710266, 0.21947093307971954, 0.15154166519641876, 0.1073170825839042...
def get _ current _ versioned _ data ( self, session, allow = none, cache = none, project _ id = none ) : min _ version, max _ version = _ normalize _ version _ args ( self. api _ version, none, none ) return self. get _ versioned _ data ( session = session, allow = allow, cache = cache, allow _ version _ hack = true, ...
[ -0.9628920555114746, -0.28193897008895874, 0.297414630651474, 0.72910475730896, -0.36882704496383667, 0.40041783452033997, -0.4552353620529175, -0.3018474578857422, -0.2843061089515686, 0.5135636329650879, -0.2023516744375229, 1.3649041652679443, -0.1475345343351364, -0.26635897159576416, ...
def set _ writeable ( self, * refs ) : for ref in refs : self. _ writeable. add ( ref )
[ -0.941464900970459, -0.5773082971572876, 0.5449212789535522, 0.5397810935974121, 1.1465541124343872, 0.5190561413764954, 0.49931803345680237, -0.47778642177581787, -0.6108245849609375, 0.29357632994651794, -0.20751836895942688, 0.4270820617675781, -1.0664267539978027, 0.5788683295249939, ...
def add _ headercompare _ note ( headerlog, fpath, qchtml ) : basefpath = os. path. basename ( fpath ) stem = basefpath. replace ('nii. gz ','' ) if checkheaders : for line in open ( headerlog ). readlines ( ) : if re. match ( stem, line ) : qchtml. write ( " < p > { } < / p > ". format ( line ) )
[ 1.1146578788757324, -0.8115021586418152, 0.6818746328353882, 0.45818883180618286, -0.05884410813450813, 0.3446284830570221, 0.21150843799114227, -0.5495566129684448, -0.23082570731639862, 0.593116044998169, 0.7256269454956055, -0.6229099631309509, -0.5065829157829285, -0.14576980471611023,...
def tile _ from _ rc ( self, r, c ) : # tilecol increases towards the right = x = horizontal index # tilerow increases towards the bottom = y = vertical index # see https : / / docs. opengeospatial. org / is / 17 - 083r2 / 17 - 083r2. html # 9 if r is not none and c is not none : return morecantile. tile ( x = c, y = r...
[ 1.1298243999481201, -0.6301742792129517, 0.33728381991386414, -0.20972201228141785, -0.241545632481575, 0.05838426575064659, 0.2896231412887573, -0.7129549384117126, -0.11653052270412445, -0.3097376823425293, -0.25076645612716675, -0.007411524187773466, -0.33640262484550476, -0.29852566123...
def test _ instantiate ( ) : x = direct ( )
[ -0.020496241748332977, 0.14510191977024078, 0.3074571192264557, -0.17432816326618195, 0.013785839080810547, 1.7487374544143677, 0.6375118494033813, -0.45220503211021423, -0.6039164066314697, -1.5336240530014038, -0.8675849437713623, 0.5884713530540466, 0.572724461555481, 0.0066599845886230...
def handle ( self, * args, * * options ) : tracking _ metadata = trackingmetadata. load ( ) if options ['from _ date'] : from _ time = options ['from _ date'] visitors = pagevisitor. objects. select _ subclasses ( ) \. filter ( visited _ time _ _ gte = from _ time ) else : if tracking _ metadata. last _ dumped _ flow _...
[ -0.6174555420875549, 0.05636272951960564, 0.9498285055160522, 0.6608514785766602, 0.34626033902168274, 0.1648864597082138, 0.49902305006980896, -0.6118935346603394, -0.522081196308136, -0.03782815486192703, 0.4924747943878174, 0.5524135231971741, 0.444277822971344, 0.2929942011833191, 0....
def getcentroid ( self ) : u, v = self. xycentroidleft disparity = self. xycentroidleft [ 0 ] - self. xycentroidright [ 0 ] return self. convertstereo ( u, v, disparity )
[ 0.9277361631393433, -0.12623022496700287, 0.5248949527740479, 0.3526378870010376, 0.6921737194061279, -0.9800949692726135, 0.331514447927475, 0.025471046566963196, 0.28892049193382263, 0.3567834496498108, 0.042288847267627716, -0.1865217238664627, -0.022105036303400993, -0.5935208797454834...
def find _ all _ solutions ( original _ assignment ) : solutions = list ( ) solver = pycryptosat. solver ( ) for i in range ( 0, len ( original _ assignment ) ) : solver. add _ clause ( original _ assignment [ i ] ) while true : solver _ solution = solver. solve ( ) # print ('solution found!') if not solver _ solution ...
[ -0.7135124206542969, -0.7000795602798462, 0.6501381397247314, 0.608624279499054, -0.0676153227686882, -0.31803953647613525, 0.2277311384677887, -0.1731017380952835, -0.4779883623123169, 0.8076632618904114, 0.10190406441688538, -0.3802894651889801, -0.06829515844583511, 1.0178978443145752, ...
def to _ write _ mode ( file _ in _ read _ plus _ mode ) : if file _ in _ read _ plus _ mode not in [ sys. stdout, sys. stderr ] : file _ in _ read _ plus _ mode. seek ( 0, 0 ) file _ in _ read _ plus _ mode. truncate ( 0 )
[ -0.29938510060310364, -0.4845177233219147, 0.6274380087852478, -0.3682226836681366, 0.6368281245231628, 0.7941253185272217, 0.5445351004600525, 0.1001909151673317, 0.05869823694229126, 0.02070254273712635, 1.2013429403305054, -0.19308283925056458, 0.3640157878398895, -0.159866064786911, ...
def test _ calculate _ quantum _ volume _ loop ( ) : # keep test from taking a long time by lowering circuits and routing # attempts. cirq. contrib. quantum _ volume. calculate _ quantum _ volume ( num _ qubits = 5, depth = 5, num _ circuits = 1, routing _ attempts = 2, seed = 1, device = cirq. google. bristlecone, sam...
[ 0.10738052427768707, -0.049911849200725555, 0.31446489691734314, -0.056927263736724854, -0.012178849428892136, -0.036786038428545, 0.7366054654121399, -0.7116364240646362, -0.05573108792304993, -0.5746719837188721, -0.6190059781074524, 0.4300302565097809, -0.9554426074028015, 0.41923946142...
def test _ lies _ under ( self ) : self. asserttrue ( posixpath ( b'/ tmp'). lies _ under ( b'/') ) self. assertfalse ( posixpath ( b'/ tmp'). lies _ under ( b'/ var') ) self. asserttrue ( posixpath ( b'/ tmp / some / file / here'). lies _ under ( b'/ tmp / some') ) self. assertfalse ( posixpath ( b'/ tmp / some / file...
[ 0.6260354518890381, -0.16575376689434052, 0.9401412010192871, 0.09163673967123032, -0.566313624382019, 1.5152738094329834, 0.49764442443847656, -0.44296857714653015, -0.13095463812351227, -1.1331628561019897, -1.1229822635650635, -0.7311655282974243, -0.8767015337944031, 0.3779215812683105...
def _ _ init _ _ ( self, base _ path : optional [ union [ str, path ] ] = none, in _ memory : bool = true, * * corpusargs, ) - > none : base _ path = flair. cache _ root / " datasets " if not base _ path else path ( base _ path ) # this dataset name dataset _ name = self. _ _ class _ _. _ _ name _ _. lower ( ) data _ f...
[ -0.08709138631820679, -0.27848750352859497, 0.9025042653083801, -1.2497128248214722, -0.25405368208885193, -0.3083329200744629, 0.19348055124282837, 0.5437606573104858, -0.001959018176421523, -0.03570283204317093, 0.13797330856323242, 0.26093024015426636, 0.6398310661315918, 0.018030660226...
def is _ factor ( n, x ) : return n % x = = 0
[ -0.5561919212341309, 0.2932632565498352, 0.14402002096176147, 0.5422629117965698, 0.2590065002441406, 0.06064256653189659, -2.1640610694885254, 0.09088817983865738, 1.0326719284057617, -0.7238869667053223, -0.17859165370464325, 0.7180219292640686, -0.10377335548400879, 0.7010000944137573, ...
def delete _ softly ( context, obj ) : update _ and _ save ( context, obj, {'deleted _ at': timeutils. utcnow ( ) } )
[ 0.7522591352462769, -0.6337117552757263, 0.5739593505859375, -0.1499331295490265, -0.11988053470849991, 0.1929619312286377, -0.20466455817222595, -0.18036802113056183, 0.6156237721443176, -0.33638349175453186, -1.1046279668807983, 0.017153460532426834, 0.4765652120113373, -0.30424135923385...
def run _ model ( self ) : self. rnn _ cell _ loop ( self. input _ data, self. hidden _ init ) with tf. variable _ scope ('output') : w0 = tf. get _ variable ('w0 ', initializer = par ['w _ out0 _ 0'], trainable = true ) b0 = tf. get _ variable ('b0 ', initializer = par ['b _ out0 _ 0'], trainable = true ) w1 = tf. get...
[ 0.22817426919937134, -0.8220106959342957, 0.7282202839851379, 0.3323560059070587, 0.5666496753692627, 0.019549233838915825, 0.8831126689910889, 0.3220144808292389, -0.9596239924430847, 0.14932826161384583, -0.5832021236419678, 0.016598599031567574, 0.19391876459121704, 0.7465600371360779, ...
def get _ us _ reps _ from _ address ( ) : args = address _ parser. parse _ args ( ) resp = leg. create _ us _ leg _ list ( * * args ) # app. logger. info ('us my reps... \ n { } \ n \ n '. format ( resp ) ) return jsonify ( resp )
[ -0.5833773612976074, -0.037149578332901, 0.5512943863868713, -0.515521764755249, -0.371289998292923, 0.13111057877540588, -0.39801061153411865, 1.1882985830307007, 0.27248838543891907, 0.7959109544754028, -0.8576728701591492, 0.5122430920600891, -0.14593659341335297, -0.06753157824277878, ...
def test _ just _ ssh _ config ( self ) : with settings ( use _ ssh _ config = true, ssh _ config _ path = support ( " ssh _ config " ) ) : for val in [ " ", [ ] ] : with settings ( key _ filename = val ) : eq _ ( key _ filenames ( ), [ " foobar. pub " ] )
[ 0.31904229521751404, 0.44441473484039307, 0.35883355140686035, 0.3944927752017975, 0.21809200942516327, 0.37270477414131165, -0.8173885941505432, 0.7274830341339111, -0.3159407079219818, 0.7006496787071228, -1.0366265773773193, -0.04103671386837959, 0.4527800977230072, 1.048073172569275, ...
def signature ( self, key _ json : str, ) - > str : return josepy. b64. b64encode ( self. _ eab ( key _ json ). signature. signature ). decode ( )
[ -0.6361218094825745, -0.5369808673858643, 0.4006176292896271, 0.38140881061553955, -1.1128017902374268, -0.5407629013061523, -0.9854980707168579, 0.19089899957180023, 0.24845844507217407, 1.600372314453125, -1.026580572128296, -0.6768690347671509, -0.04473584145307541, 0.08691192418336868,...
def _ collapse _ literal ( node, ctxt ) : # try : # print ( " trying to collapse { } ". format ( astor. to _ source ( node ) ) ) # except : # print ( " trying to collapse ( source not possible ) { } ". format ( astor. dump _ tree ( node ) ) ) if isinstance ( node, ( ast. name, ast. attribute, ast. nameconstant ) ) : re...
[ -0.12836216390132904, -0.15046611428260803, 0.7899165153503418, -0.863035261631012, -1.4355658292770386, -0.4888727366924286, -0.4147224724292755, 0.3684737980365753, 0.32094714045524597, 0.23466035723686218, 0.0071922834031283855, 0.3372596502304077, 0.3145636320114136, 0.3881105780601501...
def resnet101 ( pretrained = false ) : model = resnet ( bottleneck, [ 3, 4, 23, 3 ] ) if pretrained : model. load _ state _ dict ( model _ zoo. load _ url ( model _ urls ['resnet101'] ) ) return model
[ -0.13695934414863586, 0.6024891138076782, 0.2749539017677307, 0.6634513735771179, 0.664838969707489, 0.2669123113155365, 0.5411892533302307, 1.2864203453063965, 0.17942465841770172, -0.1767367720603943, -1.115254282951355, -0.5106208324432373, -0.11288046091794968, -1.2146815061569214, -...
def test _ recipe _ filename _ uuid ( self, mock _ uuid ) : file _ path = models. recipe _ image _ file _ path ( none,'my _ image. jpg') exp _ path ='uploads / recipe / test _ uuid. jpg'self. assertequal ( file _ path, exp _ path )
[ -0.53557288646698, -0.26728907227516174, 0.4206770062446594, 0.1944705694913864, 0.40885916352272034, 0.13570909202098846, 0.5757624506950378, 1.514706015586853, -0.17784838378429413, 0.3119280934333801, -0.2661212384700775, -0.5000067353248596, 0.27974194288253784, -0.1931893527507782, ...
def height ( self ) : return float ( self. ymax - self. ymin )
[ 0.7695703506469727, -0.5285050868988037, 0.4419739246368408, 1.353628158569336, -0.36156418919563293, 1.2254407405853271, 0.3987062871456146, -0.35911884903907776, -0.7378650307655334, -0.763697624206543, -0.8881886005401611, 0.27213525772094727, 0.14507417380809784, -0.24431635439395905, ...
def log _ error ( self, format, * args ) : if debug : self. log _ message ( format, * args )
[ -0.526129424571991, 0.11226198077201843, 0.3491288423538208, 0.5540656447410583, 1.4175620079040527, -0.3283255100250244, -1.2981066703796387, -0.029609885066747665, -0.0880885124206543, -0.9684491157531738, 0.5707778930664062, 0.6091324687004089, 0.020699404180049896, 1.473859429359436, ...
def get _ the _ data ( self, dev ) : dev. updatestateonserver ('deviceisonline ', value = true, uivalue = " download " ) try : url = dev. pluginprops ['sourcexml'] username = dev. pluginprops. get ('digestuser ','' ) # add capacity to run very raw curl command userawcurl = dev. pluginprops. get ('userawcurl ', false ) ...
[ -0.45616400241851807, -0.9974648952484131, 0.805203914642334, -0.13570095598697662, 0.17767514288425446, -0.24466536939144135, 0.09366344660520554, 0.5638766288757324, 0.3816906809806824, -0.7586198449134827, -0.0683378130197525, 0.14622384309768677, 0.2316240817308426, 0.40656960010528564...
def present ( email, profile = " splunk ", * * kwargs ) : name = kwargs. get ( " name " ) ret = { " name " : name, " changes " : { }, " result " : none, " comment " : " " } target = _ _ salt _ _ [ " splunk. get _ user " ] ( email, profile = profile, user _ details = true ) if not target : if _ _ opts _ _ [ " test " ] :...
[ -0.2251328080892563, -0.09141907095909119, 0.9823942184448242, -0.4122925400733948, 0.18474656343460083, -0.16064982116222382, 0.21653687953948975, 0.27069780230522156, 0.14832793176174164, 0.4293915927410126, -0.21172751486301422, -0.19249199330806732, -0.6638236045837402, 0.1478498280048...
def ensure _ dir ( d ) : dirs = d. split ('/') working _ dir = " " for sd in dirs : working _ dir + = sd if not os. path. exists ( working _ dir ) : os. makedirs ( working _ dir ) working _ dir + = " / " return 0
[ -0.9416583180427551, 0.9070412516593933, 0.8131691217422485, 0.13218699395656586, 0.6405913233757019, 0.7938864827156067, 0.8398130536079407, -0.4291043281555176, 0.8036487102508545, -0.9322299361228943, -0.11355894804000854, -0.4592975676059723, -0.03947371989488602, 0.2743661105632782, ...
def max _ sequence _ length ( self ) - > int : return 2048
[ 0.3163703680038452, -0.3268356919288635, 0.33184027671813965, 0.6787301301956177, -0.3088717460632324, 0.6194213628768921, -0.8932007551193237, 0.9112398028373718, 1.30185866355896, 0.13889724016189575, -0.7270416021347046, -0.26710620522499084, -0.6056049466133118, 0.25331562757492065, ...
def modify _ cell ( self, modify _ shape, min, max ) : for i, row in enumerate ( self. struct _ dict [ " lattice " ] [ " matrix " ] ) : if modify _ shape is true : for j, column in enumerate ( row ) : # var _ shape is to change cell shape if the elements of axis is 0. 0. # the validity of this type of changing shape is...
[ -0.835135281085968, -0.1763569712638855, 0.6764890551567078, -0.06766379624605179, 0.35129889845848083, 0.16218480467796326, -0.029787665233016014, 0.294156014919281, -0.03494764864444733, 0.24078723788261414, 0.03589491546154022, 0.5122644901275635, 0.04396155849099159, 0.8203407526016235...
def get _ annotmatch _ truth ( ibs, annotmatch _ rowid _ list, eager = true, ninput = none ) : id _ iter = annotmatch _ rowid _ list colnames = ( annotmatch _ truth, ) annotmatch _ truth _ list = ibs. db. get ( const. annotmatch _ table, colnames, id _ iter, id _ colname ='rowid ', eager = eager, ninput = ninput ) retu...
[ -0.7743116021156311, 0.09909915924072266, 0.4953381419181824, -0.05259309336543083, 0.13734988868236542, -0.026237158104777336, -0.634535551071167, 0.25126901268959045, 0.35963624715805054, 1.310638189315796, -0.3717905580997467, -0.5886767506599426, -0.49520614743232727, 0.551140844821929...
def json _ response ( ) : return jsonify ( json _ data )
[ -0.5296677350997925, -1.6732642650604248, 0.188245952129364, -0.7848952412605286, -0.5501395463943481, -0.9197827577590942, -0.6493854522705078, -0.06479568034410477, 0.05836869031190872, -0.12679818272590637, -1.072487473487854, 0.38480043411254883, 0.17395234107971191, -0.605589151382446...
def setprivatetools ( self, privtool ) : if self. _ privatetools is not none : raise configurationerror ( " this componentaccumulator holds already a ( list of ) private tool. only one ( list of ) private tool ( s ) is allowed " ) if isinstance ( privtool, collections. sequence ) : for t in privtool : if t. _ _ compone...
[ -0.5605013370513916, 0.5185445547103882, 0.420619934797287, 0.2914733290672302, 0.3390886187553406, 0.5414730310440063, 0.4240325093269348, -1.3218376636505127, 0.2345329225063324, -0.52256840467453, -0.973246693611145, 0.4945046603679657, 0.10182537138462067, 0.8944841623306274, 0.48487...
def get _ diagonals ( self ) : # create a dictionary with an entry for each mode diags = { } for i in xrange ( self. mode _ mats [ 0 ]. shape [ 0 ] ) : diags [ i ] = [ ] for mat in self. mode _ mats : for i in xrange ( mat. shape [ 0 ] ) : diags [ i ]. append ( mat [ i, i ] ) return diags
[ -0.666917622089386, -0.6968081593513489, 0.3461354374885559, -0.769008994102478, -0.002687237923964858, 0.09693632274866104, -0.05999794602394104, 0.024458540603518486, -0.34484565258026123, 0.20744839310646057, -0.9609782695770264, -0.7338168621063232, 0.1346866339445114, 0.68484181165695...
def unlock ( self, key : keytype ) - > future [ none ] : check _ not _ none ( key, " key can't be none " ) try : key _ data = self. _ to _ data ( key ) except schemanotreplicatederror as e : return self. _ send _ schema _ and _ retry ( e, self. unlock, key ) request = multi _ map _ unlock _ codec. encode _ request ( se...
[ -1.5416697263717651, 0.4898832142353058, 0.6269758343696594, 0.6183823943138123, -0.4847606420516968, -0.6324872970581055, -0.1736522912979126, -0.0066331131383776665, 0.841088056564331, -0.10514817386865616, -0.38144972920417786, 0.5665559768676758, -0.9571393728256226, 0.1155978888273239...
def get _ user _ settings ( self, username : str = none, auth _ token : str = none ) - > dict : return self. sqldata. get _ user _ settings ( username, auth _ token )
[ -1.277445912361145, 1.282095193862915, 0.23926183581352234, 0.5078091621398926, -0.35394877195358276, -0.826748251914978, -0.6152271628379822, -1.2533338069915771, -0.6251278519630432, 0.46695587038993835, -0.9398598074913025, 0.5909079313278198, -0.3159742057323456, -0.5227243304252625, ...
def quota _ get ( context, project _ id, resource ) : return impl. quota _ get ( context, project _ id, resource )
[ -0.09822621196508408, -0.05130954831838608, 0.22325843572616577, 0.10813578218221664, -0.030534444376826286, -0.7664135694503784, -0.6951576471328735, -1.0218433141708374, -0.6457454562187195, 1.2532751560211182, 0.79142826795578, 0.8067667484283447, 1.0848225355148315, -1.250976324081421,...
def getdepth ( self, pos ) : depth = float ( self. interpoldepth. ev ( pos [ 0 ], pos [ 1 ] ) ) if depth < 0 : depth = float ( 0. 000000001 ) # if depth is < 0 it is an effect of the interpolation, and can be set to zero. no negative depths are assumed as it will induce negative times later on. return depth
[ 0.21076981723308563, 0.1186804473400116, 0.7064321041107178, 0.10915563255548477, 0.24068613350391388, 0.5169817805290222, 0.0018035388784483075, -0.15222719311714172, 0.2931872308254242, -0.39846643805503845, -0.32161450386047363, -0.3762364983558655, -0.27626708149909973, 0.0350844934582...
def mkeqnmat ( ) : equation _ mat = zeros ( ( 6 * m, 6 * m ), dtype ='complex') # # # # # # # # # # # # # # # # # # # # # # # x direction # # # # # # # # # # # # # # # # # # # # # # # # # # # # # du equation _ mat [ 0 : m, 0 : m ] = - re * 1. j * kx * mmu + beta * ( - ( kx * * 2 ) * eye ( m, m ) + mdyy ) # dv equation ...
[ -0.28586503863334656, -0.032991599291563034, 1.2512973546981812, -0.5737443566322327, 0.06375975906848907, -0.18649441003799438, 0.9610683917999268, -0.8119527101516724, -0.20416879653930664, -0.1968444138765335, -0.43904557824134827, -0.7311694025993347, 0.6102449297904968, -0.09763126075...
def test _ multikey _ get _ with _ normal _ dict _ syntax ( config ) : assert config [ " test / spam " ] = = " eggs "
[ -0.4992823004722595, 0.2581443786621094, 0.26706764101982117, 0.4483409821987152, -1.1522029638290405, 0.05022077262401581, -0.9022273421287537, 0.9879441857337952, 0.42631006240844727, 0.4453684389591217, -0.6513992547988892, 0.3585118055343628, 0.37898147106170654, 0.32542410492897034, ...
def with _ base _ config ( base _ config, extra _ config ) : config = copy. deepcopy ( base _ config ) config. update ( extra _ config ) return config
[ -0.1103709414601326, -0.5903632044792175, 0.6511067748069763, 0.6151554584503174, -1.312674880027771, 0.4541141986846924, -1.2498236894607544, 1.2298476696014404, 0.2302679866552353, 0.9091755151748657, -0.7826273441314697, 0.501484215259552, -0.18230152130126953, 0.021983666345477104, 0...
def initsinglepixel ( self ) : self. vthisdeficit = n. array ( [ ] ) self. thisstdlinear = 0. 0 self. thislowthresh = 0. 0 self. thislowpoke = 0. 0 self. vthispixel = n. array ( [ ] ) self. gthishi = n. array ( [ ] ) self. gthislo = n. array ( [ ] ) # fitted parameters self. vparsdeficit = n. array ( [ ] ) self. vparsa...
[ 0.45323610305786133, 0.09853631258010864, 0.4958820343017578, -0.023984169587492943, 0.9382623434066772, 0.6566629409790039, 0.01316614169627428, -0.04890727996826172, -0.2389681041240692, 0.19166070222854614, -0.9267404675483704, 1.1201362609863281, -0.4082155227661133, 1.3712327480316162...
def statezip ( buffr ) : if len ( buffr ) < 8 or buffr [ 2 ]! ='' : return 0 st =''. join ( buffr [ : 2 ] ). upper ( ) # expected 2 - char state abbreviation if not st in ziprs : return 0 # if not known, quit zc = ziprs [ st ] # get zip - code start b = buffr [ 3 : ] # expected start of zipcode i = 0 for c in zc : # ch...
[ -0.9187440276145935, -0.5434287190437317, 0.9287819266319275, -0.0431978702545166, -0.5029012560844421, -0.6305329203605652, 1.0606672763824463, -0.019639059901237488, 1.2870837450027466, -0.009769639000296593, -0.3034970760345459, 0.043937407433986664, -0.7686070203781128, 0.3987055122852...
def test _ hypothesis _ grid ( h, generator, survey, n = 10, processes = 1, do _ bar = true, bins = 15, return _ chains = false, mw _ alternative ='greater ', method ='dynesty ', nlive = 100, * * kwargs ) : # split ` kwargs ` into ` grid ` ( list values + n ) and ` fixed ` ( scalar values ) keyword arguments grid = { k...
[ 0.024651791900396347, 0.7286354899406433, 0.9485090374946594, 0.4560062885284424, 0.0987914428114891, -0.2459811568260193, 0.3778854012489319, -0.6388782262802124, -0.7033102512359619, 0.05693679675459862, -0.01137992087751627, 0.76336669921875, -0.20295487344264984, 0.6816130876541138, ...
def _ _ init _ _ ( self, state _ word _ len, variables ) : self. state _ word _ len = state _ word _ len self. variables = variables variable _ names = map ( lambda i :'s % d'% i, xrange ( self. state _ word _ len ) ) variable _ names + = self. variables self. qm = qm ( variable _ names )
[ 0.5971452593803406, -0.05750320106744766, 0.33679598569869995, -0.7180015444755554, -0.35222986340522766, -0.2778688073158264, -0.5400973558425903, 0.15571342408657074, 0.03825143352150917, -0.14339829981327057, -0.41718825697898865, 0.06405800580978394, -0.12909993529319763, 0.35712674260...
async def zci _ with _ result ( q : str, web _ fallback : bool = true, priority : tuple [ str ] = default _ priorities, urls : bool = true, * * kwargs, ) - > [ str, results ] : logger. info ( " performing ddg zci :'% s'", q ) logger. debug ( " web fallback : % s ", web _ fallback ) logger. debug ( " use urls : % s ", u...
[ -0.6099727749824524, 0.6636812686920166, 0.8167626261711121, -0.24768216907978058, 0.31995898485183716, -1.3977771997451782, 0.22576682269573212, -0.39630234241485596, 0.21839310228824615, 0.089023657143116, -0.19619601964950562, -0.4471270740032196, -0.5790349841117859, 0.7870588898658752...
def get _ ciclo _ gonotrofico ( self, codigo ) : # se definie el query de la consulta. sql _ string = " " " select * from ( select codigo, 2 as tipo, sum ( tmp. cg _ dias ) / count ( tmp ) as dias from ( select codigo, id _ mosquito, cantidad _ oviposicion, ciclo _ gonotrofico as cg _ dias from evolucion _ log where ci...
[ 0.14109760522842407, 0.5674784183502197, 0.828758180141449, -0.26144564151763916, 0.418137788772583, -0.41839611530303955, 0.04609761759638786, -0.3166274130344391, -0.3598274290561676, 0.8999432325363159, 0.114840067923069, 0.33403685688972473, 0.09502633661031723, 0.7811102271080017, 0...
def test _ create _ score ( client ) : response = client. post ( json = input ) score = json. loads ( response. data ) [ 0 ] [ " prediction " ] assert score = = pytest. approx ( expected _ output )
[ 0.03673406317830086, 0.08510393649339676, 0.41262009739875793, 0.26859161257743835, 1.019767165184021, 0.8822428584098816, -0.47783660888671875, -0.5777726173400879, -0.6016603112220764, -0.17073355615139008, -0.7029777765274048, -0.23683452606201172, -0.36120590567588806, -0.0222281608730...
def _ ingest _ data ( self ) : while true : start _ time = time. time ( ) buffer _ snapshot = self. buffer. get _ snapshot ( ) buffer _ len = len ( buffer _ snapshot ) if buffer _ len : log _ event ( self. cfg, self. module _ name,'','info ','ingesting'+ str ( buffer _ len ) +'elements from buffer into influxdb') origi...
[ 0.0492122545838356, -0.4336417615413666, 0.5900054574012756, 0.017718030139803886, 0.8878313302993774, 0.5835437178611755, 0.14730115234851837, -0.001860076212324202, -0.19149357080459595, -0.0009747759322635829, -0.43419748544692993, -0.3581960201263428, -0.8346120119094849, -0.3869699537...
def get _ blocks _ votes _ count ( self, id = none, order _ by = false ) : if order _ by : if id : blocks = self. bigchain. connection. run ( r. table ('bigchain'). ge ( id ) ) else : blocks = self. bigchain. connection. run ( r. table ('bigchain'). order _ by ( index = r. asc ( " block _ timestamp " ) ) ) else : if id...
[ 0.07494675368070602, 0.12465978413820267, 0.7578132152557373, 0.4142749309539795, 0.09555275738239288, -0.8036481142044067, -0.7007991671562195, 0.07752324640750885, -0.750828206539154, 0.9385247230529785, -0.6258787512779236, -0.07247678935527802, 0.25812992453575134, 0.9178624749183655, ...
def em ( data ) : # starting equal probabilities prob _ a =. 5 prob _ b =. 5 # generate random parameters params _ a = list ( np. random. uniform ( size = 6 ) ) params _ b = list ( np. random. uniform ( size = 6 ) ) # set max iteration to 30, threshold to. 01, and null loglik to 0 max _ iter = 30 threshold = 0. 01 logl...
[ 0.8437305092811584, -0.7087833285331726, 1.0878642797470093, -0.19608692824840546, 0.20951390266418457, -0.004145826678723097, -0.1232730895280838, 0.2908090651035309, -0.09556284546852112, 0.6528168320655823, 0.36457255482673645, 0.03718658909201622, 0.41509944200515747, 0.564008057117462...
def mpr _ wnetconnectiondialog1 ( jitter, get _ str, set _ str ) : ret _ ad, args = jitter. func _ args _ stdcall ( [ " lpconndlgstruct " ] ) raise runtimeerror ('api not implemented') jitter. func _ ret _ stdcall ( ret _ ad, ret _ value )
[ -0.4262661933898926, -0.197616845369339, 0.19882169365882874, -0.8449152708053589, -1.2240289449691772, 0.6125655770301819, -0.32915619015693665, -0.09271615743637085, -0.07797674089670181, 0.7599906325340271, 0.4330793619155884, -0.37268826365470886, -0.3827306032180786, 1.121752738952636...
def get _ annotmatch _ posixtime _ modified ( ibs, annotmatch _ rowid _ list, eager = true, ninput = none ) : id _ iter = annotmatch _ rowid _ list colnames = ( annotmatch _ posixtime _ modified, ) annotmatch _ posixtime _ modified _ list = ibs. db. get ( const. annotmatch _ table, colnames, id _ iter, id _ colname ='r...
[ -0.5907658934593201, -0.32786980271339417, 0.5534323453903198, 0.1880103200674057, -0.6056972146034241, -0.5750068426132202, -1.0059270858764648, 0.35875099897384644, 0.7242889404296875, 1.4174927473068237, -0.4184182584285736, -0.719403862953186, -0.15537120401859283, 0.8715940713882446, ...
def ask _ and _ convert ( prices, string ) : try : period = int ( convert _ period ( input ('ingrese mes y ano de { } : '. format ( string ) ) ) ) except valueerror : raise valueerror ( syntax _ error ) try : if period not in prices. keys ( ) : raise valueerror ('periodo no encontrado.') except valueerror : raise value...
[ -0.03872797265648842, -0.4249814748764038, 0.7027632594108582, 0.6079800128936768, -0.8728533983230591, 0.008087432011961937, -0.16803769767284393, -0.2524638772010803, 0.24123986065387726, 0.36817172169685364, 0.5172547698020935, 0.9865679740905762, -0.5189343094825745, -0.660522639751434...
def blocked _ cows _ number ( self, player ) : hero _ blocked = 0 villain _ blocked = 0 for l in range ( state. board _ size ) : for r in range ( state. board _ size ) : for c in range ( state. board _ size ) : if self. cow _ blocked ( player, ( l, r, c ) ) : hero _ blocked + = 1 if self. cow _ blocked ( 3 - player, ( ...
[ -0.48640555143356323, 0.9269899725914001, 0.8915215730667114, 0.826040506362915, 0.06639891117811203, -0.4661512076854706, 1.6236742734909058, -0.7107405066490173, -0.20915137231349945, 0.2051672637462616, -1.3874995708465576, -0.39435556530952454, -0.22942300140857697, 0.6211116909980774,...
def _ _ init _ _ ( self, input ) : self. _ linereader = linereader ( input ) self. _ nextatom = cacheempty
[ 0.10669510811567307, -0.6182520985603333, 0.207768052816391, -0.31766828894615173, -0.6271935105323792, 0.2870618402957916, -0.1216474249958992, 0.27949920296669006, -0.15839441120624542, -1.4271717071533203, -0.27490371465682983, 0.07356484979391098, 0.017430907115340233, 0.30187380313873...
def test _ protprot _ ilrmsd ( protprot _ caprimodule ) : protprot _ caprimodule. calc _ ilrmsd ( ) assert round _ two _ dec ( protprot _ caprimodule. ilrmsd ) = = 18. 25
[ 0.9569978713989258, -0.9776620864868164, 0.4366735517978668, -0.3454274535179138, 0.320437490940094, 1.0494877099990845, -0.8423010110855103, -0.3325629234313965, 0.25372883677482605, -0.8679640293121338, 0.2185514271259308, 0.5854796767234802, -1.2279871702194214, -0.25250864028930664, ...
def get ( self, key : typing. anystr, default : typing. any = none ) - > typing. optional [ typing. any ] :
[ -0.10748143494129181, 0.4215255677700043, 0.31201183795928955, 0.22592177987098694, 0.669880747795105, -0.5837811231613159, -1.8872182369232178, -0.457013875246048, -0.1288536936044693, -0.2265579104423523, -0.004914559423923492, 0.6112064123153687, -1.0005970001220703, -0.9866513013839722...
def fluent _ comments _ list ( context ) : if appsettings. use _ threadedcomments : template = get _ template ( " fluent _ comments / templatetags / threaded _ list. html " ) else : template = get _ template ( " fluent _ comments / templatetags / flat _ list. html " ) context ['use _ threadedcomments'] = appsettings. u...
[ 0.1562081128358841, -0.027888936921954155, 0.3908277451992035, -0.7755336165428162, 0.7530968189239502, -1.0394659042358398, -0.4898322522640228, 0.018606608733534813, 0.656339168548584, 0.09362870454788208, 0.2213246375322342, -0.3175700008869171, -0.05299048498272896, 0.43641534447669983...
def _ translate _ _ interfaces _ interface _ ipv4 _ neighbor ( input _ yang _ obj, translated _ yang _ obj = none ) : if input _ yang _ obj. link _ layer _ address. _ changed ( ) : input _ yang _ obj. link _ layer _ address = input _ yang _ obj. link _ layer _ address if input _ yang _ obj. origin. _ changed ( ) : inpu...
[ -0.51438307762146, -0.6719344258308411, 0.3785838782787323, -0.4783588647842407, -0.5729986429214478, 0.7133844494819641, 1.0634135007858276, -0.6098939180374146, -0.010058428160846233, -0.3393526077270508, -0.34445640444755554, 0.3144974410533905, -0.6028704643249512, -0.01348985731601715...
def holistic _ sampling _ from _ step ( aam, step = 8 ) : reference = aam. appearance _ models [ 0 ]. mean ( ) n _ true _ pixels = reference. n _ true _ pixels ( ) true _ positions = np. zeros ( n _ true _ pixels, dtype = np. bool ) sampling = range ( 0, n _ true _ pixels, step ) true _ positions [ sampling ] = true mo...
[ -0.7513309717178345, -0.1388421356678009, 0.5782682299613953, 0.3025112450122833, -0.8558081388473511, -0.005020461045205593, 0.7016880512237549, -0.31589311361312866, -0.11419686675071716, 1.557390570640564, 0.04260718822479248, -0.19247639179229736, 0.828972339630127, 0.47560206055641174...
def _ update _ proxy ( self, change ) : super ( chartview, self ). _ update _ proxy ( change )
[ -0.9363158941268921, -0.15931573510169983, 0.3184204697608948, -1.1169867515563965, -0.8182429075241089, -0.45309728384017944, 0.5103012919425964, -0.4584258794784546, 0.05601699650287628, -0.4230443835258484, -0.05503404140472412, 0.7753963470458984, 0.15033377707004547, -0.10370830446481...
def instance _ metadata _ get ( context, instance _ uuid ) : return impl. instance _ metadata _ get ( context, instance _ uuid )
[ -1.2123754024505615, -0.08142142742872238, 0.27484679222106934, -0.6550353765487671, 0.3306237757205963, -0.15176178514957428, -0.6013849973678589, 0.2641052305698395, -0.8679357171058655, 0.8902797698974609, 0.17206314206123352, 1.2045323848724365, 0.3561077117919922, -1.0594984292984009,...
def complete _ next ( self, count = 1, disable _ wrap _ around = false ) : if self. complete _ state : completions _ count = len ( self. complete _ state. current _ completions ) if self. complete _ state. complete _ index is none : index = 0 elif self. complete _ state. complete _ index = = completions _ count - 1 : i...
[ -0.6115352511405945, -0.23478370904922485, 0.699677586555481, 0.35018691420555115, -0.5728569030761719, -0.10680437088012695, 0.8052590489387512, -0.03545292466878891, -0.26213860511779785, -0.19235627353191376, -0.3718869984149933, -0.05581492558121681, -0.09213940054178238, -0.0112038431...
def information _ gain ( self, var _ a, var _ b ) : a = self. entropy ( var _ a ) b = self. conditional _ entropy ( var _ a, var _ b ) # print " e ( % s ) : % f, e ( % s | % s ) : % f " % ( var _ a, a, var _ a, var _ b, b ) return a - b
[ -0.1178726926445961, -0.42231109738349915, 0.5507871508598328, -0.4736124277114868, 0.7480853796005249, -0.07449936121702194, -0.06764986366033554, 0.2539478540420532, -1.3261455297470093, 0.08141375333070755, 0.2818106710910797, 1.0963383913040161, -0.3037140965461731, -0.0405558943748474...
def websocket _ session ( func : typing. callable [ [ websocket ], typing. awaitable [ none ] ] ) - > asgiapp : # assert asyncio. iscoroutinefunction ( func ), " websocket endpoints must be async " async def app ( scope : scope, receive : receive, send : send ) - > none : session = websocket ( scope, receive = receive,...
[ -0.20502056181430817, 0.2039141058921814, 0.4705870449542999, -0.36231401562690735, -0.8131163120269775, -0.5184628963470459, 0.5903101563453674, -1.351062536239624, 1.3036736249923706, 1.2221981287002563, 0.19130933284759521, 1.0614410638809204, 0.9293363690376282, -0.8233907222747803, ...
def _ dom2object ( self, * nodes ) : res = frag ( ) for node in filter ( none, nodes ) : if node. nodetype = = node. element _ node : childs = self. _ dom2object ( * node. childnodes ) cls = self. typemap. get ( node. nodename ) if not cls : self. unknown _ tags. append ( node. nodename ) res. extend ( childs ) else : ...
[ -1.2824676036834717, 0.16424521803855896, 0.7643271088600159, -0.36180350184440613, -0.28139492869377136, -0.4470601975917816, -0.03603099659085274, -0.20049822330474854, -0.27128803730010986, -0.13661052286624908, -0.25518929958343506, -0.20239682495594025, 0.5817070007324219, -0.31598228...
def has _ handlers ( name ) : ret _ val = 0 if type ( name ) = = logging. logger : hndls = name. handlers else : try : my _ logger = logging. logger. manager. loggerdict [ name ] hndls = my _ logger. handlers except keyerror as e : logger. debug ( " no logger named { } ". format ( name ) ) hndls = [ ] if len ( hndls ) ...
[ -1.320178747177124, -0.13055898249149323, 0.8614101409912109, -0.2540375888347626, -0.9764637351036072, -0.08049415796995163, -0.45520663261413574, 0.18041545152664185, 0.06673675775527954, -0.5683932304382324, -0.8974049687385559, -0.44679969549179077, -0.7607665061950684, 1.5808335542678...
def generate _ hash ( self ) : # todo : emulate orginal google analytics client library generation more closely string = self. user _ agent + self. screen _ resolution + self. screen _ color _ depth return utils. generate _ hash ( string )
[ 0.14950191974639893, 0.37147629261016846, 0.340623140335083, -0.015192429535090923, 0.0982782319188118, 1.2431830167770386, 0.22505129873752594, -1.243779182434082, -0.583457887172699, -0.204711452126503, 0.3939395248889923, 0.13085004687309265, 0.1517198383808136, 0.03381011262536049, 0...