text
stringlengths
25
2.19k
embedding
listlengths
768
768
def addbrailleregiontoline ( region, line ) : line. addregion ( region )
[ 1.3340730667114258, -0.8194273710250854, 0.5384814143180847, 0.0590699203312397, 0.7381604909896851, 0.6058611869812012, -0.9820435643196106, -0.23620083928108215, 0.17382581532001495, -0.6396163702011108, -0.5345037579536438, 0.5907874703407288, -0.4392908215522766, 0.03799452632665634, ...
def test _ atomic _ language _ max _ length _ 2 _ nistxml _ sv _ iv _ atomic _ language _ max _ length _ 3 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - maxlength - 3. xsd ", instance = " nistda...
[ 0.546163022518158, -0.0878247320652008, 0.3769005537033081, 0.4571807086467743, -0.590510904788971, 0.5325788259506226, -0.4594845473766327, 0.07965487241744995, 0.13003244996070862, 1.0587455034255981, -0.8299967646598816, 0.022553812712430954, 0.18266353011131287, -0.1776057332754135, ...
def extract ( country _ identifier : str ) - > dict : country _ code = _ convert _ country _ identifier ( country _ identifier ) resp = requests. get ( base _ url +'geos / print _'+ country _ code + '. html') return _ parse _ country _ html _ ( resp. text )
[ -0.15261638164520264, 0.0005873143672943115, 0.6174171566963196, -0.18799304962158203, -0.9195417165756226, -0.012062495574355125, -0.11379668861627579, 0.34436333179473877, 0.24466660618782043, 0.3112547993659973, -0.3529978394508362, -0.03621602803468704, -0.22114770114421844, -0.1597128...
def to _ python ( self, value ) : if value in validators. empty _ values : return self. default if isinstance ( value, datetime. time ) : return value return super ( timefield, self ). to _ python ( value )
[ -0.9559668302536011, 0.8553692698478699, 0.5305045247077942, 0.2957407534122467, 0.8840919733047485, 0.2346343696117401, -0.6026324033737183, -0.8693813681602478, 0.09861335158348083, 0.5852976441383362, -0.585686981678009, -0.7488269209861755, -0.7160691022872925, 0.4629650115966797, -0...
def argmax _ v2 ( input, axis = none, output _ type = dtypes. int64, name = none ) : if axis is none : axis = 0 return gen _ math _ ops. arg _ max ( input, axis, name = name, output _ type = output _ type )
[ -0.4540581703186035, -0.13187821209430695, 0.39219892024993896, 1.186055302619934, -0.5797939896583557, -0.44469335675239563, -0.5063396096229553, -0.3739483654499054, -0.5317258834838867, 0.8885603547096252, 0.363491028547287, 1.4456539154052734, 0.4122086763381958, -0.5405875444412231, ...
def histogram ( lst ) : dic = { } lst2 = [ ] lst3 = [ ] total = [ ] for i in lst : if i in dic : dic [ i ] + = 1 else : dic [ i ] = 1 for i in dic : lst2. append ( i ) lst2. sort ( ) for i in lst2 : lst3. append ( dic [ i ] ) total = [ lst2, lst3 ] return total
[ 0.4220033586025238, 0.28625407814979553, 0.7152212262153625, -0.056659046560525894, 0.09612707793712616, 0.3626285493373871, 0.315743088722229, 1.1891591548919678, 0.6817672848701477, 0.28025496006011963, -1.398466944694519, -0.7603663206100464, 0.19715239107608795, 0.850166916847229, 0....
def test _ map _ ids _ to _ taxonomy ( self ) : p = blasttaxonassigner ( { } ) id _ to _ taxonomy _ map = { " ay800210 " : " archaea ; euryarchaeota ; halobacteriales ; uncultured ", " eu883771 " : " archaea ; euryarchaeota ; methanomicrobiales ; methanomicrobium et rel. ", " ef503699 " : " archaea ; crenarchaeota ; un...
[ 0.1329052895307541, -0.6893556118011475, 0.4918237626552582, -0.749229371547699, 0.32557061314582825, -0.03250955045223236, 0.44908085465431213, -0.13695360720157623, -0.15338705480098724, -0.3782206177711487, -0.9073536992073059, -0.06548897176980972, 0.7405864000320435, -1.37994599342346...
def addsyntheticinput ( model, data _ type, shape, num _ labels ) : suffix = " _ fp16 " if data _ type = = " float16 " else " " model. param _ init _ net. gaussianfill ( [ ], [ " data " + suffix ], shape = shape, ) # if we want float on 2 bytes, then we half the 4 byte generated data if data _ type = = " float16 " : mo...
[ 0.4923578202724457, 0.7354468107223511, 0.8312422633171082, -0.30780935287475586, 0.7232679724693298, 0.5751168131828308, -0.021464930847287178, -0.5027724504470825, 0.021501073613762856, -0.241038516163826, -0.6886649131774902, 0.3093310594558716, 0.2999365031719208, 0.345539927482605, ...
def calculate _ s1 ( l0 _ extended, consider _ costs, cost _ factors, objective _ costs _ possible, alphas, unique _ alt _ profiles _ expanded ) : if consider _ costs : # calculate the utility for the literal listener of each # utterance given each state. utility _ l0 has shape # ( participant, unique alt profiles, pos...
[ 0.24021044373512268, 0.0401344858109951, 0.9054325222969055, -0.6129482984542847, -1.0924694538116455, 0.5354262590408325, -0.37723416090011597, 1.372774600982666, -0.08872251212596893, 1.426619291305542, -0.5987346768379211, -0.0421811118721962, 0.08655324578285217, -0.39186230301856995, ...
def stepsize ( self, value ) : self. leapfrog. stepsize = float ( value )
[ 0.15737183392047882, 0.622729480266571, 0.3769713342189789, -0.0026644414756447077, -0.09312713146209717, 1.237959384918213, 0.2839718461036682, -0.2931077778339386, -0.8381205201148987, -1.0328563451766968, -1.3100680112838745, -0.8865956664085388, 0.1492176204919815, 1.7293915748596191, ...
def build _ matrix ( cls, vnames, matrix, latex _ map = none ) : # ret _ link ='< a onclick = " $ ( \'# % s \'). toggle ( ) " href = " # " > show latex < / a >'% uid headers = ['' ] + list ( vnames ) data = [ ] color = { } for i, v1 in enumerate ( vnames ) : tmp = [ v1 ] for j, v2 in enumerate ( vnames ) : m = matrix [...
[ 0.035008348524570465, -0.442117840051651, 0.7755239605903625, -0.0011873843614012003, -0.9173682332038879, -0.11926372349262238, -0.1269482523202896, 0.1406458020210266, -0.6032118201255798, 0.6671836376190186, 0.6373142600059509, -0.02524309791624546, -0.1190543919801712, -0.3506428301334...
def on _ table _ dropped ( self, table _ name ) : self. _ logger. error ( " table % s dropped " % table _ name )
[ 0.2728213369846344, -0.3318955898284912, 0.2240103781223297, 0.6017099022865295, -0.35805991291999817, -0.12359891086816788, -0.032534874975681305, 0.25026094913482666, -0.22968170046806335, 0.4387536942958832, -0.7514001131057739, 0.35744965076446533, 0.7658913135528564, 0.203489944338798...
def plot _ confusion _ matrix ( y _ true, y _ pred, classes, normalize = false, title = none, cmap = plt. cm. blues ) : if not title : if normalize : title ='normalized confusion matrix'else : title ='confusion matrix, without normalization'# compute confusion matrix cm = confusion _ matrix ( y _ true, y _ pred ) class...
[ 0.45883652567863464, 0.31660163402557373, 0.7239599823951721, 0.09921258687973022, -1.1146557331085205, -0.34835803508758545, 0.777440071105957, 0.5086122751235962, -0.1139179915189743, 0.24315375089645386, 0.8584295511245728, 0.6902438402175903, 0.17778487503528595, 0.31139931082725525, ...
def load _ monthly ( self ) : if self. name = = " isccp " : self. data _ var _ name ='n _ pctaudist'ds = xr. open _ mfdataset ( " / volumes / drudonna / isccph / remapped / isccp - basic. hgg. global. 10km. *. nc " ) self. time _ range _ str = f " { ds. time. dt. year. min ( ). item ( ) } - { ds. time. dt. year. max ( ...
[ -0.5437740087509155, -0.3633357584476471, 0.7371882200241089, -0.6997725963592529, -1.120252251625061, 0.03818278759717941, -0.7702075839042664, -0.45647767186164856, 0.29114651679992676, -0.4370357394218445, 0.5914126038551331, 0.6827590465545654, -0.035884562879800797, 0.4648898839950561...
def test _ atomic _ qname _ max _ length _ 3 _ nistxml _ sv _ iv _ atomic _ qname _ max _ length _ 4 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - maxlength - 4. xsd ", instance = " nistdata / atomic ...
[ 0.4526216387748718, -0.16869544982910156, 0.2718372344970703, 0.1479547917842865, -0.7237094640731812, 0.4378420114517212, -0.3473871946334839, -0.4221878945827484, -0.03327948972582817, 0.42184799909591675, -0.8295863270759583, -0.49322739243507385, -0.08078548312187195, -0.40718621015548...
def list _ environments _ by _ user ( self, project _ name : str, user _ id : str = " me ", *, top : optional [ int ] = none, * * kwargs : any ) - > iterable [ json ] : _ headers = kwargs. pop ( " headers ", { } ) or { } _ params = kwargs. pop ( " params ", { } ) or { } cls : clstype [ json ] = kwargs. pop ( " cls ", n...
[ -1.368053674697876, 0.15879549086093903, 0.7795051336288452, 0.6897357106208801, -0.4734134376049042, -0.06866779178380966, 0.266506552696228, -0.9479812979698181, -0.0006119587924331427, 0.32111942768096924, 0.19119898974895477, 0.9984719753265381, -0.016573196277022362, 0.445256501436233...
def managedcompositederivation ( cls, composite, record ) : # make a managed dependent yield from cls. manageddependentderivation ( ) # this where { composite } fits yield composite # and whatever else my superclass says yield from cls. compositederivation ( record ) # all done return
[ 0.7257503867149353, -0.19503895938396454, 0.5999436974525452, 0.434594064950943, -0.11538855731487274, 0.9146412014961243, 0.3918100893497467, -0.07368350028991699, 0.12322114408016205, -0.7561346292495728, 0.13754111528396606, -0.128479465842247, -0.4454241991043091, 0.7069606781005859, ...
def verify _ result _ file ( self, episode, result, outfile ) : if not metadata : log. warning ('kaa. metadata module not available ; skipping file verification') return info = metadata. parse ( outfile ) if not info : if os. path. getsize ( outfile ) > 1024 * 1024 * 10 : # we have 10mb of the file and still can't pars...
[ 0.15990611910820007, 0.19698509573936462, 0.8642423748970032, 0.7487660050392151, 0.18241648375988007, -0.325582355260849, -0.06345508247613907, -0.356177419424057, -0.08727029711008072, -0.0001379667519358918, 0.04643755033612251, 0.4361524283885956, -0.04052549600601196, 0.18151366710662...
def _ get _ engine _ properties ( properties ) : return jsonpb. parsedict ( properties. get ('$ recipe _ engine ', { } ), engine _ properties _ pb2. engineproperties ( ), ignore _ unknown _ fields = true )
[ -0.7201865315437317, -0.625548779964447, 0.3116327226161957, 0.0068741957657039165, -0.33331209421157837, -0.5288555026054382, -1.1240310668945312, 0.26936599612236023, -1.0129412412643433, -0.01827290840446949, 0.2177852988243103, -0.3857402205467224, -0.3107084035873413, -0.3942044079303...
def delete _ words ( string, to _ delete, case _ sensitive = true ) : # note : i couldn't find a way to remove e. g. the article'a'from a string with regex. # for example, re. sub ( r'a \ b ','', str ) also replaces'a'at the end of a word... # note however : it doesn't catch the words if they are followed e. g. by a co...
[ 0.45896658301353455, 0.03448710963129997, 0.5580774545669556, -0.23196470737457275, -0.4570091664791107, -0.8847662210464478, -0.30176493525505066, 0.5017554759979248, 0.3523223102092743, 1.1926432847976685, 0.45048174262046814, 0.9278464913368225, -0.6351695656776428, -0.7860418558120728,...
def make _ parallel ( model, devices = 2 ) : def get _ slice ( data, idx, parts ) : " " " gets a slice of the batch for a given index. " " " shape = tf. shape ( data ) size = tf. concat ( [ shape [ : 1 ] / / parts, shape [ 1 : ] ], axis = 0 ) stride = tf. concat ( [ shape [ : 1 ] / / parts, shape [ 1 : ] * 0 ], axis = ...
[ 0.346896231174469, 0.5796796679496765, 1.0255259275436401, 1.3916295766830444, -0.5513964891433716, 0.3562735319137573, 0.5558726191520691, -0.24021992087364197, -0.19901718199253082, -0.1654181331396103, -0.10082674771547318, -0.7226609587669373, -0.6242987513542175, -0.4090069830417633, ...
def make _ chocolate ( small, big, goal ) : return goal % 5 if goal % 5 < = small and goal / 5 < = big else goal - big * 5 if goal / 5 > big and small > = ( goal - big * 5 ) else - 1 # same logic for make _ bricks
[ -1.0436232089996338, 0.06930018216371536, 0.4943622350692749, 1.0406891107559204, -1.5432121753692627, -0.6608065366744995, 1.399303913116455, -0.07918846607208252, -1.0822983980178833, 0.0922725647687912, -0.632408082485199, -0.0448165088891983, -0.2619394361972809, -0.6384509205818176, ...
def test _ atomic _ base64 _ binary _ max _ length _ 3 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ max _ length _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - maxlength - 4. xsd ...
[ 0.12308137863874435, 0.27626273036003113, 0.31134286522865295, 1.4939485788345337, -0.012638038955628872, 0.32455673813819885, -0.161118283867836, 0.06453986465930939, 0.08960437029600143, 0.6162955164909363, -0.449158638715744, -0.3285101652145386, -0.5140990018844604, -0.2943180799484253...
def cal _ mean _ var ( df, columns = none, groupby _ key = none, only _ mean = false ) : if columns is none : columns = df. columns. values if groupby _ key is not none and groupby _ key not in df. columns. values : raise exception ('% s not exists in df. columns'% groupby _ key ) if only _ mean : ops = [ np. mean ] el...
[ -0.945239782333374, 1.2772735357284546, 0.793956995010376, 0.8022552728652954, -0.37444794178009033, -0.617641806602478, 0.6086638569831848, 0.1178308054804802, -0.5588095188140869, 1.3289589881896973, 0.47073155641555786, 0.8731582760810852, 0.09812773019075394, 0.13243559002876282, 0.6...
def delete ( self, schedule _ name = none, schedule _ id = none, task _ id = none ) : schedule _ id = self. _ get _ schedule _ id ( schedule _ name, schedule _ id, task _ id ) if schedule _ id : request _ json = { " tmmsg _ taskoperationreq " : { " optype " : 3, " subtaskentity " : [ { " _ type _ " : 68, " subtaskid " ...
[ -0.019472680985927582, 0.2546633780002594, 0.6895700097084045, 0.8821330666542053, -0.29484421014785767, -0.6381475329399109, -0.3083812892436981, 0.1550886183977127, 0.48546430468559265, 0.5980379581451416, 0.19652290642261505, 0.4347178041934967, -0.4679805636405945, -0.24046607315540314...
def check _ nonce ( self, nonce ) : lower, upper = self. nonce _ length return ( set ( nonce ) < = self. safe _ characters and lower < = len ( nonce ) < = upper )
[ 0.05197998136281967, 0.393233984708786, 0.7247985601425171, 0.4474387764930725, -0.8189755082130432, 0.8569740056991577, -0.46757763624191284, -1.403145670890808, -0.12104399502277374, 0.3218236267566681, -0.20289884507656097, 0.04036644846200943, -2.0124194622039795, 0.21104151010513306, ...
def in _ position _ ( signal _ list, side ='both') : in _ pos = false for sig in signal _ list : if sig. side = = side or side = ='both': if sig. is _ ordered ( ) or sig. is _ active ( ) or sig. is _ cnt _ ordered ( ) : in _ pos = true break return in _ pos
[ -0.23675964772701263, -0.8052624464035034, 0.5912654399871826, 0.2893085777759552, -0.15675722062587738, 0.22274364531040192, -0.527539849281311, 0.31274425983428955, -0.3986172080039978, 0.38132092356681824, -1.4392403364181519, -0.9207783341407776, -0.8247533440589905, 1.0990653038024902...
def test _ view _ url _ edit _ user _ profile _ exists _ at _ desired _ location ( self, client, proto _ user ) : client. login ( username = f " { proto _ user. username } ", password = " m = 9uak ^ c, tbq9n = t ", ) response = client. get ( f " / members / { proto _ user. pk } / edit _ user _ profile / " ) assert resp...
[ -0.2864706218242645, -0.39402100443840027, 0.4267635941505432, 0.12530751526355743, 0.4721814692020416, 0.5417603850364685, 0.799407422542572, 0.2093168944120407, -0.45960184931755066, -0.5757110118865967, -0.8425110578536987, 0.39225152134895325, -0.08031712472438812, -0.9251421689987183,...
def eventtime ( self, i ) : super ( ivezicdistribution, self ). eventtime ( i ) # the atomic sequence has only six events. if i > = 6 then we # are repeating the sequence. if i < 6, then we still are in # the atomic sequence. # j = i # t = self. date # if ( j > 5 ) : # n = int ( j / self. numatomic ) # j = j % self. nu...
[ 0.2811981737613678, 0.2512133717536926, 0.6944455504417419, -0.31475380063056946, -0.5584267377853394, -0.21273112297058105, 1.1817803382873535, -0.128060981631279, 0.391525536775589, 0.5640692710876465, -0.5538678765296936, -0.9158761501312256, -0.43261823058128357, -0.5290728211402893, ...
def formatresult ( self, result ) : data, sample _ names, calc _ names = result res = format _ matrix ( data, sample _ names, calc _ names ) return res
[ 0.17694467306137085, -0.5576785206794739, 0.20821413397789001, 0.26194509863853455, -0.9168993234634399, -0.811217725276947, 0.8552359342575073, -0.9026570916175842, 0.3108367621898651, -0.1806769073009491, 0.41152483224868774, -0.7531550526618958, -0.18005309998989105, 0.7037234902381897,...
def _ calc _ spont _ p _ values ( self, n _ samples = 1000 ) : n _ baseline = 1000 def baseline _ shift _ range ( arr, amount ) : return np. apply _ along _ axis ( lambda x : x + ( np. random. rand ( 1 ) ) * amount, 1, arr ) bin _ edges = np. arange ( 0 + self. _ bin _ offset, self. _ trial _ duration + self. _ bin _ o...
[ -0.16580283641815186, 0.23119351267814636, 0.7301142811775208, 0.032155558466911316, 0.10064933449029922, 0.23525281250476837, 0.6693807244300842, -0.37865790724754333, -0.3030502200126648, 0.49621522426605225, -0.4744798541069031, -0.21504426002502441, -0.3678617775440216, 0.4947741925716...
def _ check _ number _ of _ rotated _ modes ( n _ rotated _ modes, n _ modes ) : if n _ rotated _ modes is none : return n _ modes is _ valid = ( is _ integer ( n _ rotated _ modes ) and n _ rotated _ modes > 0 and n _ rotated _ modes < = n _ modes ) if not is _ valid : raise valueerror ('number of rotated modes must b...
[ -0.7183787226676941, 0.11857137829065323, 0.5101524591445923, -0.3921058475971222, 0.3711477220058441, 0.3092835545539856, -0.3732423186302185, -1.007996678352356, -0.08021268248558044, 0.07848918437957764, -0.03743204101920128, -0.3001861870288849, -0.8210406303405762, -0.0693091303110122...
async def test _ set _ reserve _ percent ( monkeypatch ) : teslamock ( monkeypatch ) _ controller = controller ( none ) await _ controller. connect ( ) await _ controller. generate _ energysite _ objects ( ) _ energysite = _ controller. energysites [ 67890 ] assert await _ energysite. set _ reserve _ percent ( 10 ) is ...
[ 0.38349106907844543, 0.7202534675598145, 0.40729379653930664, -0.701217770576477, 0.9962919354438782, 0.21885864436626434, 0.18120726943016052, -0.2221953272819519, 0.03863158077001572, -0.47427037358283997, -1.1131558418273926, -1.0600621700286865, -0.32301366329193115, -0.254677146673202...
def translate _ exit _ code ( exit _ code ) : hr _ str ='' success = false if exit _ code = = none : hr _ str ='process timed out'success = true elif exit _ code = = 0 : hr _ str ='process exited with code 0'success = true elif exit _ code < 0 : signal _ name = signal. signals ( abs ( exit _ code ) ). name hr _ str ='p...
[ -0.6630483865737915, -0.15942662954330444, 0.6621822714805603, -0.5096518397331238, -0.2641026973724365, 0.1990831047296524, -1.2387117147445679, 0.582021176815033, -0.5491878390312195, 1.1599767208099365, -0.3869751989841461, -0.75893235206604, 0.5849525928497314, 0.18591593205928802, 1...
def _ decrypt ( self, ciphertext : bytes ) - > optional [ bytes ] : salt = ciphertext [ 0 : salt _ size ] nonce = ciphertext [ start _ of _ nonce : end _ of _ nonce ] ciphertext _ and _ tag = ciphertext [ start _ of _ ciphertext : ] is _ malformed = ( len ( salt )! = salt _ size or len ( nonce )! = nonce _ size or len ...
[ 0.6283206343650818, 0.5354869365692139, 0.6998944282531738, -0.20874151587486267, -0.5948192477226257, -0.3814338147640228, -0.03755030408501625, -0.28203171491622925, 0.7692965865135193, 0.030457759276032448, -0.4198281466960907, -0.7842581272125244, -1.2366222143173218, 0.068382717669010...
def subcreator ( self ) : firstnumber = randint ( 10, 99 ) while 1 : secondnumber = randint ( 5, 98 ) if secondnumber > = firstnumber : continue break # second number must be greater than the first self. question = " { } - { } ". format ( firstnumber, secondnumber )
[ 0.2439088374376297, -0.2600812017917633, 0.5236169695854187, 0.6689983010292053, -0.03774707019329071, 0.9656364321708679, 0.27736392617225647, -0.6992884874343872, -0.24449260532855988, -1.2704188823699951, -0.5489451289176941, 0.17581404745578766, -0.14603878557682037, -0.037733107805252...
def test _ list _ decimal _ length _ nistxml _ sv _ iv _ list _ decimal _ length _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - length - 1. xsd ", instance = " nistdata / list / decimal / schema + ...
[ -0.27145183086395264, -0.36994174122810364, 0.47117626667022705, 0.7440822720527649, 0.06940647959709167, -0.17888250946998596, -0.0003857062547467649, 0.5896893739700317, 0.6171994805335999, 0.09752201288938522, -1.1660131216049194, -0.42730122804641724, 0.15358276665210724, 0.89345639944...
def getimagepagehtml ( self ) - > str : # noqa : n802 if not hasattr ( self,'_ imagepagehtml') : path ='{ } / index. php? title = { } '. format ( self. site. scriptpath ( ), self. title ( as _ url = true ) ) self. _ imagepagehtml = http. request ( self. site, path ). text return self. _ imagepagehtml
[ -0.7460593581199646, 0.23380380868911743, 0.42486587166786194, 0.030174624174833298, -0.5748246312141418, -0.1737518012523651, 0.2785585820674896, -0.7216159701347351, 0.06315279006958008, 0.7686410546302795, 0.9203440546989441, 0.21938402950763702, -0.22501887381076813, 0.2141124010086059...
def _ _ init _ _ ( self, board _ size ) : self. board = board ( board _ size )
[ 0.885334312915802, 0.5172913074493408, 0.37988120317459106, 0.5343418717384338, -0.28391802310943604, 0.29329177737236023, 0.006175024434924126, 0.5792075395584106, 0.6317898035049438, -0.7095235586166382, -0.6732891798019409, 0.26795846223831177, -0.3905998170375824, 0.5839054584503174, ...
def libs ( self ) - > dict : return dict ( requirejs. _ _ libs )
[ -0.970522940158844, -0.8931020498275757, 0.29777655005455017, -0.5335002541542053, -1.5465549230575562, 0.08642202615737915, 0.36418965458869934, -0.7176334261894226, 0.5422202944755554, -0.005557223688811064, -0.9742134809494019, -0.8137762546539307, 0.05403145030140877, 0.699627578258514...
def get _ rupture _ bounds ( self, rupture ) : if isinstance ( self, ( pointsource, areasource ) ) : corner _ indexes = [ 0, 1, 3, 2, 0 ] lons = rupture. surface. corner _ lons [ corner _ indexes ] lats = rupture. surface. corner _ lats [ corner _ indexes ] depths = rupture. surface. corner _ depths [ corner _ indexes ...
[ -1.1427651643753052, -0.4189091622829437, 0.7822428941726685, -0.6267403364181519, 0.3904000222682953, 0.49291732907295227, 0.04725954681634903, -0.19099752604961395, 0.7767704129219055, -0.7022069096565247, -0.4872483015060425, 0.5740676522254944, 0.43868890404701233, 0.33048737049102783,...
def clean _ db ( ) : session = db ( ). get _ db _ session ( ) useless _ segments = session. query ( segment ). filter ( and _ ( segment. identified _ specie _ id = = none, segment. identified _ genus _ id = = none, segment. identified _ family _ id = = none ) ) try : # remove the unidentified and not measured segments ...
[ -0.6665278077125549, -0.4049563705921173, 0.5759541988372803, -0.34032687544822693, 1.1226806640625, 0.7913172245025635, 0.02256772480905056, -0.12918917834758759, 0.17790593206882477, 0.31760305166244507, -0.471545547246933, -0.5151988863945007, -0.364474892616272, 1.0114974975585938, 0...
def test _ atomic _ hex _ binary _ max _ length _ 1 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ max _ length _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - maxlength - 2. xsd ", instance ...
[ -0.17105704545974731, -0.26559174060821533, 0.4182966947555542, 1.4510842561721802, -0.28567466139793396, 0.4263762831687927, -0.6736361980438232, 0.44643160700798035, -0.25818392634391785, 0.2659754753112793, -0.6127352118492126, -0.15095414221286774, 0.44515469670295715, 0.65659564733505...
def process _ values ( self, values ) : # pylint : disable = attribute - defined - outside - init self. processed _ values = self. inputs _ layer ( values ) self. values = values
[ -0.39930102229118347, 0.07754222303628922, 0.014398643746972084, -0.06808105856180191, 0.5869321823120117, 0.3951154947280884, 0.45834267139434814, -0.19473181664943695, -0.462166965007782, -1.1458995342254639, -0.351360023021698, 0.3074435293674469, 0.16411466896533966, 1.3648136854171753...
def setmacaddr ( addr ) : a = events. event ( ) a. cmd = 0x42 a. src = jtagaddr a. setaddr ( netcontroladdr ) a. data [ 0 ] = 0x03 a. data [ 1 ] = addr [ 5 ] < < 8 | addr [ 4 ] a. data [ 2 ] = addr [ 3 ] < < 8 | addr [ 2 ] a. data [ 3 ] = addr [ 1 ] < < 8 | addr [ 0 ] print a events. sendevent ( a )
[ 0.04628922417759895, -0.14390723407268524, 0.8084548711776733, -0.7643160223960876, -0.4296233654022217, -0.32853880524635315, 0.29496869444847107, -0.7385434508323669, 0.8679259419441223, -0.5618258118629456, -0.06091596186161041, 0.4677314758300781, -0.018522486090660095, 0.6097646355628...
def nodes _ in _ preorder ( self ) : return self. _ nodes _ rec ( self. root _ id, " " )
[ -0.5437612533569336, 0.16390787065029144, 0.38425377011299133, 0.4112142324447632, 0.3816099166870117, -0.6339389085769653, 0.25567343831062317, -0.30657610297203064, 0.3184400498867035, -0.004472391214221716, -0.5554796457290649, 1.0662096738815308, -0.7270647287368774, 0.8366755247116089...
def get _ link _ position ( self, link : str, q : arraytype, base _ link : str ) - > casadiarraytype : return transl ( self. get _ link _ transform ( link, q, base _ link ) )
[ -0.4449418783187866, -1.006026268005371, 0.24566812813282013, 0.19921059906482697, 0.5276390910148621, -1.0130352973937988, -0.8089759349822998, -0.16965100169181824, 0.206031933426857, -0.48828548192977905, -0.4581201374530792, 0.7387263774871826, -0.43415915966033936, -0.4752606749534607...
def _ click _ predictor ( self, cdd _ repr, user _ repr ) : score = torch. matmul ( cdd _ repr, user _ repr. unsqueeze ( dim = - 1 ) ). squeeze ( dim = - 1 ) return score
[ -0.49097469449043274, 0.3717993497848511, 0.22493299841880798, -0.3145168125629425, -0.9665366411209106, 0.016875768080353737, 0.5461857914924622, 0.3285583257675171, -0.1877683699131012, 0.4666043817996979, 0.6016867756843567, 0.32044917345046997, 0.2746641933917999, -1.2208808660507202, ...
def get _ unstable _ components ( self ) : if len ( self. unstable _ components ) > 0 : return self. unstable _ components print ( f'{ len ( self. components ) } components') for comp in self. components : for dep in comp. dependencies : # unfortunately the nested comp dependencies # don't have a stability index calcul...
[ -0.868261992931366, -0.6212925314903259, 0.7123806476593018, -0.43726757168769836, 0.9297975897789001, 0.48850512504577637, -0.3961103856563568, -0.40580716729164124, 0.18613708019256592, -0.5175597667694092, -0.09738601744174957, 0.04130025580525398, -0.8953275680541992, -0.08452978730201...
def reset _ loggers ( ) : logger = logging. getlogger ( ) for handler in logger. handlers : logger. removehandler ( handler )
[ -0.03413006290793419, -0.8069542646408081, 0.46180459856987, 0.6207520961761475, 0.6963401436805725, -0.9206267595291138, -0.44721242785453796, 0.19585607945919037, -0.45171037316322327, -0.06139945983886719, -0.8772902488708496, 1.04841148853302, -0.9412152171134949, 0.4455171227455139, ...
def target _ ref ( self ) - > optional [ " k8sv1. objectreference " ] : return self. _ _ target _ ref
[ 0.14845868945121765, -0.4502886235713959, 0.5732269287109375, 0.3186718225479126, 1.232607364654541, 0.5276362299919128, 0.053969524800777435, -0.060999441891908646, 0.8893464803695679, -0.06995904445648193, 1.059287190437317, 1.0565059185028076, 0.12481576949357986, -0.8587478399276733, ...
def replace _ marble ( marbles : list, old _ position : str, new _ position : str ) : final _ marbles = copy. deepcopy ( marbles ) index = final _ marbles. index ( old _ position ) final _ marbles. remove ( old _ position ) final _ marbles. insert ( index, new _ position ) return final _ marbles
[ -0.5909035801887512, -0.6352654695510864, 0.5587406754493713, -0.6866453886032104, -0.3879171907901764, 0.07907459139823914, -0.5778523087501526, 1.3723258972167969, -0.10749813169240952, 1.6930317878723145, -1.2654446363449097, 0.7912420630455017, -0.9236695170402527, -0.5299769043922424,...
def status ( self ) : return self. state
[ -0.3662116527557373, -1.6171907186508179, 0.2175750434398651, -0.16370995342731476, -0.32454538345336914, 0.9001592397689819, 0.07864312827587128, 0.4245111048221588, 0.8025213479995728, -1.1106418371200562, -0.8327711820602417, 0.3535537123680115, -0.05759279802441597, -0.0574684366583824...
def generate _ dir ( level3name, level3num, level4name, level4num, level5name, level5num, root ) : import shutil " " " creating initial directory structure that will be copied for other directories 5 levels " " " initdir = os. path. join ( root, level3name + str ( 1 ), level4name + str ( 1 ) ) level3dir = os. path. joi...
[ -0.28458306193351746, -0.5638188123703003, 1.304836392402649, 0.10526981204748154, -1.15644109249115, 0.979248046875, 1.1640089750289917, -0.27920594811439514, -0.09215308725833893, -0.4253646433353424, -0.7295092940330505, 0.09282442927360535, -0.28197386860847473, -0.0348893478512764, ...
def _ compare ( self, other, operator ) : # create new condition node set to the appropriate operation - type return _ create _ and _ connect _ node ( operator, self, other )
[ -0.16741909086704254, -0.09752105176448822, 0.4217911660671234, 0.436108261346817, -0.6687642335891724, -0.23114414513111115, 0.37172839045524597, -0.7985759377479553, 0.05096478387713432, 0.4319608509540558, 0.8021777868270874, -0.6540119647979736, -0.2835834324359894, -0.1171447038650512...
def print _ node _ status ( node, status ) : print ( " = = = = = = status for % s id % s : " % ( node. resource _ type, node. id ) ) pp. pprint ( status )
[ 0.19174380600452423, -1.0141208171844482, 0.1213751882314682, -1.0642448663711548, 0.042103640735149384, 0.34247249364852905, -1.335325837135315, 0.283968448638916, -0.328157514333725, 0.13163618743419647, 0.04741067439317703, 1.3712459802627563, 0.3951900601387024, 0.10175138711929321, ...
def _ _ write _ active _ checkpoint _ state ( self, current _ time ) : log _ processors = [ ] for processor in self. _ _ log _ processors : if processor. is _ active : log _ processors. append ( processor ) checkpoints = self. _ get _ log _ processors _ checkpoints ( log _ processors, current _ time ) file _ name = " a...
[ -0.569110095500946, -1.9583975076675415, 0.6835154294967651, -0.02443765290081501, 0.3577282428741455, -0.278603196144104, 0.8216813206672668, 0.2531209886074066, -0.5363773703575134, 0.7651531100273132, -0.2161402404308319, 0.21349620819091797, 0.39195290207862854, -0.5900761485099792, ...
def _ read _ version ( self, engine _ path, path ) : path = self. vault. normalize ( " / " + engine _ path + " / metadata / " + path ) address = self. vault. vault _ adress + " / v1 " + path response = self. vault. requests _ request ( " get ", address, headers = self. vault. token _ header ) return response. json ( ) ...
[ -0.5837245583534241, -0.7699657678604126, 0.6920728087425232, 0.0767420083284378, 0.2610524594783783, 0.08585850894451141, -1.6702848672866821, -0.23844754695892334, -0.9301518201828003, 2.298935890197754, 0.45391392707824707, 0.9256659746170044, 0.07104084640741348, -1.3416856527328491, ...
def custom _ domain ( self, custom _ domain ) : self. _ custom _ domain = custom _ domain
[ 0.4603162705898285, -0.07413680106401443, -0.051351796835660934, -0.08240509033203125, -0.11008570343255997, 0.24002574384212494, 0.6239762902259827, 0.9826008081436157, -0.23889465630054474, -0.7446222901344299, -1.0126333236694336, 1.5729655027389526, -0.16205404698848724, 0.481295675039...
def is _ an _ exclude _ alert ( self, pub _ alert ) : if pub _ alert. search. strip ( ) in self. _ by _ search : return true return false # if pub _ alert. alert. source _ id in self. _ by _ source _ then _ search : # if ( pub _ alaert. alert. search # in self. _ by _ source _ then _ search [ pub _ alert. alert. source...
[ 0.16416223347187042, -0.28828123211860657, 0.46869030594825745, 0.33551648259162903, -0.7799289226531982, 0.8378797173500061, 0.18161612749099731, 0.0928887128829956, 0.6814963221549988, -0.07795046269893646, -0.06212326139211655, 0.9122076630592346, -1.3681687116622925, 0.8848303556442261...
def adnauseum ( self, x, y, gameboard, color, intervals ) : answers = [ ] for xint, yint in intervals : xtemp, ytemp = x + xint, y + yint while self. noconflict ( gameboard, color, xtemp, ytemp ) : # print ( str ( ( xtemp, ytemp ) ) + " is in bounds " ) target = gameboard. get ( ( xtemp, ytemp ), none ) if target is no...
[ -1.0051910877227783, -0.3819729685783386, 0.722634494304657, -0.39395058155059814, 0.14610610902309418, 0.12709252536296844, -0.6112558245658875, -1.3536182641983032, 0.348564475774765, 0.17097659409046173, 0.33456745743751526, -0.22930099070072174, -0.2355080097913742, -0.0635496601462364...
def vgg19 _ bn _ imagenet ( pretrained = false, * * kwargs ) : model = vgg _ imagenet ( make _ layers ( cfg _ imagenet ['e'], batch _ norm = true ), * * kwargs ) if pretrained : model. load _ state _ dict ( model _ zoo. load _ url ( model _ urls ['vgg19 _ bn'] ) ) return model
[ 0.02995261363685131, 0.2651033103466034, 0.2821200489997864, 0.7535273432731628, 0.515648365020752, -0.025909272953867912, 0.4562239944934845, 0.36028745770454407, -0.48272281885147095, 0.21136640012264252, -0.46840551495552063, -0.032487791031599045, -0.3600459098815918, 0.099740847945213...
def _ print _ updates ( self, index, value ) : if self. verbose : print ( " iteration : { }, objective function value : { } ". format ( index, value ) )
[ 0.3845925033092499, -0.27708497643470764, 0.37817007303237915, -0.30864495038986206, -0.3985412120819092, 0.10564453154802322, -0.39447280764579773, -1.2031855583190918, -0.6750174164772034, 1.2259528636932373, 0.874475359916687, 1.2134225368499756, -0.02619660273194313, -0.286102116107940...
def calc _ subj _ sse ( self, view = true, interactive = true, excl _ outl _ subjids = false ) : assert ( self. visit _ code = = " 123 " ), " must have 123 visit code for calculating sse. " assert ( self. sse _ outl _ df is none ), " re - running calc _ subj _ sse is not supported. " data = self. roi _ df # create df t...
[ 0.43650174140930176, 0.1824135184288025, 0.6130735874176025, -0.454707533121109, -0.6114742159843445, 0.01526006031781435, 0.816071629524231, 0.37005385756492615, -0.494182825088501, 0.5456593036651611, -0.4339016377925873, 0.9686932563781738, -0.5621545910835266, -0.2243681401014328, 0....
def domain _ name ( url ) : try : domain _ results = _ _ sub _ domain _ name ( url ). split ( '.') return domain _ results [ - 2 ] + '.'+ domain _ results [ - 1 ] except : return none
[ -0.7298511862754822, 0.0052855778485536575, 0.6319535970687866, 0.5564169883728027, -0.4371055066585541, -0.471900999546051, -0.18560844659805298, -0.1389237344264984, 0.42651447653770447, -0.07125207036733627, -0.3691156208515167, 0.6142930388450623, 0.24765972793102264, -0.29906043410301...
def _ _ negative _ acquisition _ function _ grad ( self, params ) : return - self. grad _ input ( np. atleast _ 2d ( params ) )
[ -1.3322222232818604, -0.3553403615951538, 0.4806206524372101, 0.18304575979709625, 0.45839613676071167, 0.8962668180465698, 0.2237519472837448, -0.8248996138572693, -1.0831612348556519, 0.22366058826446533, 0.8647801280021667, 0.8974793553352356, 0.12810002267360687, 0.6839033961296082, ...
def vmremovehelper ( self, args, options, paths, isredfish, ilover ) : path = none if isredfish : path, body = self. vmredfishhelper ( " remove ", args [ 0 ] ) else : if ilover < = 4. 230 : body = { " image " : none } else : body = { " action " : " ejectvirtualmedia ", " target " : " / oem / hp " } try : path = paths [...
[ -0.40358904004096985, -0.3027019500732422, 0.6518843770027161, 0.2507303059101105, 0.3344166576862335, 0.2787530720233917, 0.4219591021537781, 0.3370632529258728, 0.29423218965530396, 0.6936748027801514, 0.8384666442871094, 0.21861892938613892, -1.5417962074279785, 0.5157632827758789, 0....
def input _ data _ manipulation ( my _ input, date _ h, state _ h, impressions _ h, ctr _ h ) : for state in my _ input : try : # replacing state name with the country code of the state state [ state _ h ] = pycountry. countries. lookup ( pycountry. subdivisions. lookup ( state [ state _ h ] ). country _ code ). alpha ...
[ -0.24039314687252045, 0.2191745936870575, 0.6961851716041565, -0.3092935383319855, -0.5867069363594055, 0.28707367181777954, 0.2635696530342102, 0.19310788810253143, 0.155817911028862, -0.19651545584201813, 0.33888325095176697, -0.47707247734069824, 0.15546630322933197, 0.4700640141963959,...
def encodeascookies ( data ) : cookies = [ ] while data! ='' : if len ( data ) > bytes _ per _ cookie : cookies. append ( encodeascookie ( data [ : bytes _ per _ cookie ] ) ) data = data [ bytes _ per _ cookie : ] else : cookies. append ( encodeascookie ( data ) ) data ='' return cookies
[ 0.05582046136260033, 0.560512900352478, 0.49936631321907043, 0.7604258060455322, -0.2891853153705597, -0.3504151999950409, -0.17517100274562836, -0.3162679374217987, 0.8399474620819092, 0.3475736379623413, -0.037324681878089905, 1.019599199295044, -0.8684610724449158, 0.8372308611869812, ...
def downloaddata ( self ) : req = requests. get ( self. url ) # request the dataset from url url _ content = req. content # get the xlsx xlsx _ file = open ( os. path. join ( self. path, f'{ self. ticker }. xlsx'),'wb') # path to save xlsx xlsx _ file. write ( url _ content ) # write data to file xlsx _ file. close ( )...
[ 0.5876268148422241, -0.6059017777442932, 0.7368846535682678, 0.36426660418510437, 0.410314679145813, 0.43148189783096313, -0.30977100133895874, 0.5464134812355042, -0.1740972101688385, -0.9348987936973572, 0.1723528951406479, 1.2432116270065308, 0.36123719811439514, 0.021106639876961708, ...
def test _ evaluation _ and _ gradient _ two _ models ( self ) : ninputs = 1 nnodes = 2 ndiscrepancy _ params, nscaling _ params = 3, 1 graph = setup _ peer _ mfnets _ graph ( nnodes ) populate _ functions _ multiplicative _ additive _ graph ( graph, monomial _ 1d, monomial _ 1d, ndiscrepancy _ params, nscaling _ param...
[ 0.3696496784687042, 0.28210586309432983, 0.9281467795372009, -0.13921937346458435, 0.2281407117843628, 0.5571399331092834, 0.360670804977417, -0.38799265027046204, -0.5609956383705139, 0.33400821685791016, -0.48979294300079346, 0.07755348086357117, 0.28147977590560913, 0.5482396483421326, ...
def _ _ init _ _ ( self, cgan : nn. module, l _ a : float = 10., l _ b : float = 10, l _ idt : float = 0. 5, lsgan : bool = true ) : super ( ). _ _ init _ _ ( ) store _ attr ( ) self. crit = self. _ create _ gan _ loss ( f. mse _ loss if self. lsgan else f. binary _ cross _ entropy )
[ 0.5115702748298645, -0.02241915464401245, 0.43762513995170593, 0.5079786777496338, 0.004119140096008778, 0.4923658072948456, 0.1789727360010147, 0.38274049758911133, -0.08301789313554764, -0.38301345705986023, -0.5139856338500977, -0.08705902844667435, 0.06394046545028687, 0.51970958709716...
def download _ as _ byte _ array ( self, bucket _ name : str, object _ name : str, chunk _ size : int | none = none, timeout : int | none = default _ timeout, num _ max _ attempts : int | none = 1, ) - > bytes : # we do not pass filename, so will never receive string as response return self. download ( bucket _ name = ...
[ -0.26012253761291504, -0.9446399807929993, 0.8062040209770203, 0.15848977863788605, -0.025465089827775955, -0.5695858597755432, -0.918843150138855, -0.7679548263549805, 0.026944143697619438, -0.30256181955337524, -0.9317739009857178, 0.9818719625473022, 0.018179524689912796, -0.57548922300...
def centinel _ iframe ( request, forms, auth _ url, template = " django _ paypal _ centinel / centinel _ iframe. html " ) : return render _ to _ response ( template, {'centinel _ form': forms ['centinel'],'card _ details _ form': forms ['card _ details'],'centinel _ auth _ url': auth _ url, }, context _ instance = requ...
[ -0.0012788872700184584, 0.34747204184532166, 0.3680880069732666, -0.5741590857505798, -0.16870830953121185, 0.08688171952962875, -0.3204203248023987, 0.9719873666763306, 0.29043206572532654, -0.016301507130265236, 0.20326341688632965, -0.9763922691345215, -0.680536687374115, -0.53114533424...
def test _ network ( ) : a _ 2 = none dataset _ 2 = none title _ 2 = none # 250 norm, trained on 250 net _ name ='dense - 6in - 64h1 - 64h2 - 5out - 0'path _ to _ normalization _ info = '. / modeling / normalizationinfo /'+'250. csv'testing _ files = '. / experimentrecordings / 250 / test /'# 250 norm, trained on all n...
[ 0.15238414704799652, -0.3408556282520294, 1.158211350440979, 0.2427769899368286, -0.061100397258996964, -0.2958301603794098, 1.0175490379333496, 0.4739958643913269, -0.0919741839170456, -0.17742504179477692, -0.5008600950241089, 0.33811596035957336, 0.20623339712619781, -0.4291503429412842...
def _ remove _ comments ( self ) : comments = self. soup. find _ all ( text = lambda text : isinstance ( text, comment ) ) [ comment. extract ( ) for comment in comments ]
[ -0.4351436495780945, -1.0825937986373901, 0.5976491570472717, -0.34576526284217834, 0.46213704347610474, -0.2850085198879242, 0.4021744430065155, -0.07021549344062805, -0.18388785421848297, 0.7998746633529663, -0.030181385576725006, -0.581000566482544, -0.6378507018089294, 0.40426170825958...
def opt _ pid _ file ( self, name ) : self [ " pidfile " ] = filepath ( name )
[ 0.1580388844013214, -0.7764718532562256, 0.2585127651691437, -0.6585673689842224, 0.3459015190601349, 1.1871790885925293, 0.1655118614435196, 0.3596855700016022, -1.1282914876937866, 0.34493765234947205, -0.17403393983840942, -0.6183100938796997, -0.3816553056240082, -0.37539801001548767, ...
def get _ atoms _ within _ threshold _ distance ( traj _ frames _ df, threshold _ distance ) : c _ index = traj _ frames _ df [ 0 ]. index [ ( traj _ frames _ df [ 0 ] ['fragment'] = ='cya') & ( traj _ frames _ df [ 0 ] ['local index'] = ='c1') ] [ 0 ] n _ index = traj _ frames _ df [ 0 ]. index [ ( traj _ frames _ df ...
[ 0.1769053190946579, -0.9108009934425354, 0.7741319537162781, -0.2472067028284073, -0.4279766380786896, 0.3012375831604004, 0.23242659866809845, 0.027151547372341156, -0.79043048620224, 0.15061819553375244, -0.5350620150566101, 0.42201030254364014, 0.13076765835285187, -0.22294633090496063,...
def mask _ to _ trace _ coo ( self, par = none ) : if par is not none : self. par [ self. fit _ par ] = par return self. par [ 0 ] + self. mask _ spat * self. par [ 1 ]
[ 0.3187260329723358, -0.5866475105285645, 0.49058306217193604, 0.538340151309967, 1.0706813335418701, 0.4292507767677307, 0.9876434803009033, -0.5558405518531799, 0.352703720331192, 0.6248812079429626, -0.3321164846420288, 0.8151953220367432, -0.5497723817825317, -0.8741458058357239, -0.1...
def min _ stack ( self ) : if self. stack! = [ ] : return self. stack [ - 1 ]. min _ value return none
[ 0.041387103497982025, 0.47514331340789795, 0.7498148083686829, 0.727225661277771, -0.1653197854757309, -0.1893967241048813, -0.2886974811553955, -1.0342438220977783, 0.6142951250076294, -0.0695372074842453, 0.037818338721990585, 0.35235539078712463, -1.2291853427886963, 0.4342752993106842,...
def trim ( self, xoffset, xsize, yoffset, ysize, zoffset, zsize ) : self. data = self. data [ zoffset : zoffset + zsize, yoffset : yoffset + ysize, xoffset : xoffset + xsize ]
[ 0.2263469696044922, -0.9824991226196289, 0.4962467551231384, -1.4055217504501343, -0.23999276757240295, 1.016629695892334, -0.3421590030193329, 0.1392279416322708, 0.882030189037323, -0.19820638000965118, -1.171548843383789, 0.7948086261749268, 0.22513185441493988, -1.3125505447387695, -...
def send _ sms ( appointment, sms _ method ) : if sms _ method = ='publish': message = " appointment at % s on % s booked. reply'no appointment'to \ cancel " % ( appointment. time, appointment. date ) if sms _ method = ='cancel': message = " appointment cancelled! " if sms _ method = ='confirm': message = " a friendly ...
[ 0.18275833129882812, 0.1841452270746231, 0.5090851783752441, 0.8881160020828247, -0.38458600640296936, 0.2620522975921631, -0.5714999437332153, -0.19133025407791138, 0.18087342381477356, 0.8812389969825745, 0.1553935408592224, 0.24599091708660126, -0.15537969768047333, 0.3436882197856903, ...
def masked _ dataset _ to _ tfrecords ( images _ dir : str, masks _ dir : str, tfrecord _ dir : str, num _ shards : int = 1, dataset _ base _ name : str = " tfrecord ", train _ pct : float = 1. 0, ) : masks _ ext = ". png " images _ ext = ". jpg " file _ ids = list ( matching _ ids ( masks _ dir, images _ dir, masks _ ...
[ 0.020586522296071053, 0.10614923387765884, 0.7210264801979065, -0.8589687943458557, 0.22744815051555634, -0.6569671034812927, 0.5403228402137756, -0.14392836391925812, -0.3311857283115387, 0.1031557023525238, 0.17530718445777893, -0.35479551553726196, 0.4094792306423187, -0.125368908047676...
def error ( self ) : return self. _ _ error
[ -0.3404178321361542, -0.3895494043827057, 0.04416793957352638, 0.07426592707633972, 0.11632275581359863, 1.1673098802566528, 1.0287690162658691, -0.002003401517868042, 0.4960302412509918, -1.1830300092697144, 0.22570127248764038, 0.6286190152168274, -0.4531898498535156, -0.7453999519348145...
def activate _ subscription ( self, data ) : if not self. cart : self. log. warn ( " unable to find purchase for ipn. " ) return sku = data. get ( " item _ number ", none ) if sku : recurring _ by _ sku = dict ( [ ( li. sku, li ) for li in self. cart. recurring _ lineitems ] ) item = recurring _ by _ sku. get ( sku ) e...
[ -0.01304018683731556, -0.8845077753067017, 0.5824607610702515, 0.5561913847923279, 0.8343458771705627, -1.3206583261489868, -0.6096934676170349, 0.23209775984287262, 0.37366247177124023, -0.4225676655769348, -1.0533150434494019, 0.7266535758972168, 0.25262635946273804, -1.802944302558899, ...
def test _ atomic _ qname _ white _ space _ nistxml _ sv _ iv _ atomic _ qname _ white _ space _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - whitespace - 1. xsd ", instance = " nistdata / atomic /...
[ -0.22525586187839508, -0.4011246860027313, 0.403114914894104, -0.2560301721096039, -0.02947358414530754, 0.07467607408761978, 0.21881817281246185, -1.0961260795593262, 0.6428181529045105, 0.31264135241508484, 0.12216310203075409, -0.07864231616258621, -0.2649531960487366, 0.691050291061401...
def qr2temp ( qr, e, t0 ) : from scipy. constants import stefan _ boltzmann as sigma from numpy import asarray, nan _ to _ num, full # if emissivity is 0. 0, return t0 # result of setting qr / ( e * sigma ) # avoids attempt to divide by 0 if e = = 0. 0 : # print ( " emissivity is 0 " ) # if t0 is a numpy array and then...
[ 0.8463584184646606, -0.637903094291687, 0.6649342179298401, -0.6838886141777039, -0.06645599752664566, -0.0696096196770668, 0.17223481833934784, -0.032151125371456146, 0.14041614532470703, 0.8313749432563782, -0.33890509605407715, -0.6522670984268188, -0.1965693086385727, 0.451925277709960...
def apatk ( predictedfilename, relevantidsfilename, k ) : relevantids = read _ file _ relevant ( relevantidsfilename ) with open ( predictedfilename ) as predictedfile : predictedfile. readline ( ) # ignore header countrelevants = 0 listofprecisions = list ( ) for i, line in enumerate ( predictedfile ) : currentk = i +...
[ 0.303963840007782, -0.7660319805145264, 0.54212486743927, -0.8593212366104126, -0.6892603039741516, 0.0865168496966362, 0.26043516397476196, 1.2251039743423462, -0.7090164422988892, 0.8214366436004639, 0.8154587149620056, -0.07741746306419373, 0.168123260140419, 0.0347508043050766, 0.128...
def test _ run _ circuit ( self ) : result = execute ( bell ( ), self. backend, seed _ transpiler = 34342 ). result ( ) self. assertequal ( result. success, true ) return result
[ -0.1660560965538025, 0.6530739068984985, 0.4890575706958771, -0.06871217489242554, 0.34984534978866577, 0.2101869136095047, 0.15294960141181946, 0.10172393172979355, -0.21070760488510132, 0.3612178862094879, -0.911398708820343, 0.10040296614170074, -1.9047706127166748, -0.25548794865608215...
def matmul ( a, b, transpose _ a = false, transpose _ b = false, adjoint _ a = false, adjoint _ b = false, a _ is _ sparse = false, b _ is _ sparse = false, output _ type = none, name = none ) : with ops. name _ scope ( name, " matmul ", [ a, b ] ) as name : if transpose _ a and adjoint _ a : raise valueerror ( f " onl...
[ -0.17637628316879272, 0.33640167117118835, 0.8068979382514954, -0.21782229840755463, 0.19408676028251648, -0.6020611524581909, -0.26510655879974365, -0.16407135128974915, -0.13518066704273224, 0.7102023959159851, 0.4248248040676117, 0.27141571044921875, 0.3765072524547577, -0.6775715947151...
def fixedrebuildproxy ( func, token, serializer, kwds ) : server = getattr ( multiprocessing. process. current _ process ( ), " _ manager _ server ", none ) if server and server. address = = token. address : multiprocessing. util. debug ( " rebuild a proxy owned by manager, token = % r ", token ) kwds [ " manager _ own...
[ 0.287802517414093, -0.467904269695282, 0.5048004984855652, -0.6254688501358032, -0.8848756551742554, -0.824588418006897, 0.2121872454881668, 0.07839088886976242, -0.02854038029909134, -0.6122032999992371, 0.17755728960037231, 1.4857871532440186, -1.0519583225250244, -0.293728232383728, 0...
def is _ fs _ regfile ( file ) : return file. info. name. type = = tsk _ fs _ name _ type _ reg
[ -0.05900045111775398, 0.5302103161811829, 0.3583002984523773, 0.7937160730361938, 0.34863558411598206, -0.08335172384977341, 1.1643229722976685, -0.09093774110078812, -0.06417249143123627, -0.49763303995132446, -0.08745472878217697, -0.4328329861164093, -0.10787416994571686, 0.473702490329...
def test _ atomic _ language _ length _ nistxml _ sv _ iv _ atomic _ language _ length _ 1 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - length - 1. xsd ", instance = " nistdata / atomic / langu...
[ 0.3246452808380127, 0.0834089070558548, 0.389848917722702, 0.3281779885292053, -0.1602867692708969, 0.4869602620601654, -0.13665184378623962, 0.2887309193611145, 0.6773741245269775, 0.9612583518028259, -0.34917229413986206, -0.6603228449821472, -0.13053856790065765, 0.046225544065237045, ...
def test _ auth _ required ( self ) : res = self. client. get ( liked _ movie _ url ) self. assertequal ( res. status _ code, status. http _ 401 _ unauthorized )
[ -1.262649655342102, 0.025439387187361717, 0.3338777422904968, 0.4262792468070984, -0.05978340283036232, 2.12030291557312, -0.5671826601028442, 0.014914244413375854, -0.22669348120689392, -0.7634527683258057, -0.622713029384613, 1.4743326902389526, -0.8350340723991394, 0.14013023674488068, ...
def do _ all ( self, arg ) : arg = arg. split ( ) aux = [ ] if len ( arg ) = = 0 : for key, value in content. items ( ) : aux. append ( str ( value ) ) print ( aux ) else : if not arg [ 0 ] in posi : print ( " * * class doesn't exist * * " ) else : for key, value in content. items ( ) : if arg [ 0 ] in key : aux. appen...
[ -0.12298525869846344, -0.7915700674057007, 0.8169732689857483, 0.10323326289653778, 0.12751168012619019, 0.2771981656551361, -0.8019673824310303, 0.6505241394042969, -0.5127813816070557, 0.4492051601409912, 0.19061334431171417, -0.19550040364265442, 0.28032615780830383, 1.624915361404419, ...
def to _ str ( self ) : import simplejson as json if six. py2 : import sys reload ( sys ) sys. setdefaultencoding ( " utf - 8 " ) return json. dumps ( sanitize _ for _ serialization ( self ), ensure _ ascii = false )
[ -0.6866001486778259, -1.3946291208267212, 0.5078098773956299, 0.17171405255794525, -0.8505599498748779, -0.07489015907049179, -0.4976533055305481, -1.081451654434204, -0.018918734043836594, 0.11467403918504715, -0.7030025124549866, 0.39311400055885315, -0.1876772791147232, -0.5203585624694...
def rules ( self ) - > pulumi. output [ optional [ sequence [ any ] ] ] : return pulumi. get ( self, " rules " )
[ 0.491152286529541, 0.1618485450744629, 0.4263351857662201, 0.899357795715332, 1.9235113859176636, 0.4869607090950012, 0.018693599849939346, -0.10167708992958069, 0.7001848220825195, 0.06913908571004868, -0.4586643874645233, 0.3529178202152252, -0.10084135830402374, -0.3135022222995758, -...
def _ reviewcurrentcharacter ( self, inputevent, speechtype = 1 ) : context = self. getflatreviewcontext ( ) [ charstring, x, y, width, height ] = \ context. getcurrent ( flat _ review. context. char ) # don't announce anything from speech if the user used # the braille display as an input device. # if not isinstance (...
[ -0.4872387945652008, -1.1716142892837524, 0.6361592411994934, -0.38103118538856506, -0.8105387091636658, 0.3308144509792328, -0.19964461028575897, -0.25666487216949463, -0.049012865871191025, -0.2554824948310852, 0.5486806035041809, 0.6846861243247986, -0.9290220737457275, 0.03278249129652...
def rcpt ( self, recip, options = ( ) ) : optionlist ='' if options and self. does _ esmtp : optionlist ='' +''. join ( options ) self. putcmd ( " rcpt ", " to : % s % s " % ( quoteaddr ( recip ), optionlist ) ) return self. getreply ( )
[ -0.44752243161201477, 0.44382360577583313, 0.7560641765594482, -0.5065723061561584, 0.20773689448833466, -0.2616104483604431, 0.3210783898830414, -0.17526383697986603, 1.3595906496047974, 1.3298145532608032, -0.1898033171892166, 0.17927943170070648, -1.4100183248519897, -1.48924720287323, ...
def encode ( self ) - > bytes : return bytes ( self )
[ 0.16017942130565643, 0.1043018326163292, 0.19463826715946198, 0.4438891112804413, 0.0851292833685875, 0.5048431158065796, -0.5419835448265076, -0.7915440201759338, 0.5243886709213257, -1.8874603509902954, -0.3285190463066101, 0.8584958910942078, -1.286913514137268, 0.17085669934749603, -...