text
stringlengths
25
2.19k
embedding
listlengths
768
768
def make _ otap _ file ( infile, outfile, is _ executable = true, do _ compression = true, skip _ validation = false, * * kwargs ) : # first, generate the file data ( without the mic ) # data inf = open ( infile,'rb') file _ data = inf. read ( ) inf. close ( ) # figure out the flags # is _ executable = true # default #...
[ 0.11130829155445099, -0.4580993056297302, 0.9053892493247986, 0.21487656235694885, -0.762833297252655, 0.05597776919603348, -0.45945626497268677, -0.03320443257689476, -0.2885769009590149, -0.4749763607978821, 0.12604641914367676, -0.7394174337387085, -0.030715595930814743, -0.503737628459...
def logger ( self ) : return self. _ logger
[ -0.47217118740081787, -0.4514616131782532, 0.08445031940937042, -0.511329710483551, -0.2483823597431183, 0.2018226534128189, 0.4592103660106659, 0.3627162277698517, 0.4516046941280365, -1.4758597612380981, 0.6669983267784119, 0.049501899629831314, -0.3793529272079468, 0.5127946734428406, ...
def type ( self ) : return self ['type']
[ -0.4090035557746887, 0.1206955760717392, 0.0920991376042366, 0.034079890698194504, 1.3080840110778809, 0.5589295029640198, 0.3777349293231964, -0.47879499197006226, 0.9505531787872314, -0.315539687871933, -0.23602209985256195, 0.7110924124717712, -0.708422064781189, -0.5244875550270081, ...
def call ( self, inputs, training = false ) : points = [ inputs ['point'] ] # ( n, 3 ) feats = [ inputs ['feat'] ] # ( n, c ) row _ splits = [ inputs ['row _ splits'] ] # ( b ) feats [ 0 ] = points [ 0 ] if self. in _ channels = = 3 else tf. concat ( ( points [ 0 ], feats [ 0 ] ), 1 ) for i in range ( 5 ) : p, f, r = s...
[ -0.04996956139802933, 0.22210323810577393, 0.5930705070495605, 0.40942585468292236, -0.23604720830917358, -0.988010048866272, 0.46214503049850464, -0.45191988348960876, -0.22748424112796783, -0.49390485882759094, -0.8143048882484436, 0.1871049702167511, -1.0798614025115967, -0.066624134778...
def test _ key _ does _ not _ exist ( self ) : test _ record = {'accountid': 123456,'region':'region _ name'} normalized _ types = {'region': ['region ','awsregion'],'sourceaccount': ['account ','accountid'], # there is no ip value in record, so normalization should not include this'ipv4': ['sourceipaddress'] } expecte...
[ -0.10709911584854126, 0.20664680004119873, 0.40493494272232056, -0.743755578994751, 0.08071526885032654, 0.5583925843238831, -0.1903354674577713, 0.30912137031555176, -0.2567806839942932, 0.08515159040689468, 0.10428562760353088, -0.4736328125, -0.7970870733261108, -0.15764114260673523, ...
def add _ chosen _ inline _ result _ callback ( self, regexp, fn ) : self. _ chosen _ inline _ result _ callbacks. append ( ( regexp, fn ) )
[ -0.3294939398765564, -0.6313860416412354, 0.32663390040397644, 0.5934959053993225, 0.44773250818252563, -0.2379249930381775, 0.4706886410713196, 0.7729642987251282, 0.17863023281097412, -1.1968082189559937, -1.2073192596435547, 0.5410068035125732, -0.13575343787670135, -0.9000744819641113,...
def load _ data ( visit _ data _ handles, baseline _ score _ handle, scaling _ parameter _ handles, nmf _ model _ handles ) : visit _ data = [ _ load _ visit _ data ( h ) for h in visit _ data _ handles ] logging. info ('loading baseline scores') baseline _ scores = pd. read _ csv ( baseline _ score _ handle, index _ c...
[ -0.3898063600063324, 0.34720396995544434, 0.5733561515808105, 0.16219304502010345, 0.4252759516239166, 0.712333083152771, 0.36031079292297363, -0.8637169599533081, -1.5828416347503662, 0.5821660757064819, -0.09308167546987534, 0.19916458427906036, -0.8670260906219482, -0.20211754739284515,...
def remove _ part ( self, e ) : for item in self. footprint _ list. getselections ( ) : row = self. footprint _ list. itemtorow ( item ) ref = self. footprint _ list. gettextvalue ( row, 0 ) self. fabrication. parts [ ref ] [ " lcsc " ] = " " self. populate _ footprint _ list ( ) self. fabrication. save _ part _ assign...
[ -0.0874243676662445, -0.18904627859592438, 0.3850487768650055, -0.3793069124221802, 0.6642361283302307, 0.2034253031015396, -0.005783635191619396, 0.5215852856636047, -0.32225945591926575, -0.36095890402793884, 0.03066525049507618, -0.9103503823280334, -0.4388222396373749, 0.83420675992965...
def percentilize ( vec ) : vec _ sorted = sorted ( copy. deepcopy ( [ elem for elem in vec if elem is not none ] ) ) vec _ len = float ( len ( vec _ sorted ) ) if vec _ len = = 0 : return none p _ map = { none : none } for i, val in enumerate ( vec _ sorted ) : p _ map [ val ] = ( i + 1 ) / vec _ len return [ p _ map [...
[ 0.13796848058700562, -0.1588396579027176, 0.7732463479042053, -0.058322321623563766, 0.018587956205010414, 0.12846378982067108, 1.0197697877883911, -0.022213147953152657, 0.7290794253349304, 0.3925720155239105, -0.13218069076538086, -0.7520540952682495, -0.30084508657455444, 0.634982347488...
def inference ( self, preprocessed ) : return self. adapter. inference ( preprocessed )
[ -0.8532981276512146, -0.5597659945487976, 0.3024645149707794, -0.3298121690750122, -0.11062946915626526, -0.36768820881843567, 0.18644066154956818, -0.5652608275413513, -0.1667127013206482, -0.5343109965324402, -0.43716979026794434, 0.5288286209106445, -0.289949506521225, 0.537510275840759...
def forget ( data : dictionary ) : category _ or _ note = input ( " forget ( 1 ) note or ( 2 ) category? " ) if category _ or _ note = ='1': forget _ note ( data ) yaml _ dump ( filepath, data ) elif category _ or _ note = ='2': forget _ category ( data ) yaml _ dump ( filepath, data ) else : print ( " invalid selectio...
[ -0.2832072079181671, -0.09695231169462204, 0.4411452114582062, 0.34896519780158997, 0.47942760586738586, 0.7395184636116028, 0.5808243751525879, 0.059586457908153534, -0.4449847638607025, 0.15106631815433502, 0.09669719636440277, 0.5865294933319092, 0.0661788284778595, 0.2564878463745117, ...
def _ get _ method ( self ) : return self. _ method
[ -0.6191434860229492, 0.15576979517936707, 0.2999700903892517, -1.0665640830993652, 0.3763945996761322, -0.9261519312858582, 0.5265108942985535, -0.8141531348228455, -0.23412176966667175, -0.7178425192832947, 0.7567964792251587, 0.5525243878364563, 0.6256479024887085, -0.41312742233276367, ...
def format _ prefix ( self, use _ gene = true ) : if self. kind = ='g': if self. chrom : return self. chrom if self. transcript : if use _ gene and self. gene : return'% s ( % s )'% ( self. transcript, self. gene ) else : return self. transcript else : if use _ gene : return self. gene else : return''
[ -0.13274437189102173, -0.4695482850074768, 0.7535436153411865, -0.18168528378009796, -0.5862018465995789, -0.4940827190876007, -0.7210400700569153, -0.1994398683309555, -0.15450350940227509, 0.5239354968070984, 1.0388985872268677, 1.5339471101760864, -0.41094598174095154, 0.507136285305023...
def children ( self ) - > iterable [ lineentity ] : yield from self. lines
[ 0.9779927134513855, -1.4594740867614746, 0.460042804479599, -0.020253561437129974, 0.1664244383573532, 0.6408937573432922, -1.023432970046997, -0.12047936767339706, -0.3390692174434662, -1.4234308004379272, 0.2575354278087616, -0.08146277070045471, 0.763152003288269, 0.5604731440544128, ...
def _ _ init _ _ ( self, stage : any, variable _ name : str ) - > none : from apysc import stage from apysc. validation import display _ validation from apysc. validation import string _ validation self. _ stage _ cls : type [ stage ] = stage self. stage : stage = stage display _ validation. validate _ stage ( stage = ...
[ 0.3976811170578003, -0.7252715826034546, 0.4350830912590027, 0.19093382358551025, -1.309444546699524, -0.3972029983997345, 0.24793167412281036, 0.32627105712890625, 0.11964064091444016, -0.1702433079481125, -0.3768361508846283, 0.40983355045318604, 0.32735469937324524, 1.1426533460617065, ...
def check _ entities ( worker ) : resp = { " status " : true, " unknown " : false } priority _ level = worker ['groupspecificparticipantdata']. highest _ role. priority _ level for entity in worker ['entities'] : entity = entity [ " type " ] if entity not in available _ entities : resp [ " status " ] = false resp [ " c...
[ -0.7833713889122009, -0.8633009195327759, 0.5481226444244385, -0.9607701301574707, 0.015872741118073463, 0.37274953722953796, -0.5180556774139404, 0.1531447172164917, -0.8547983169555664, 0.33562520146369934, 0.08524872362613678, -0.09680850058794022, -0.23052865266799927, 0.88429427146911...
def _ tables _ get ( self ) : return self. query ('set hive. cli. print. header = false ; show tables'). splitlines ( )
[ -0.47435909509658813, 0.9257545471191406, 0.5868450999259949, 0.31057441234588623, -0.24632149934768677, 0.11623731255531311, -0.30460843443870544, 0.02983960509300232, -1.0248589515686035, -0.08189805597066879, 0.05193347483873367, 0.615922212600708, -0.592372477054596, -0.107928857207298...
def set _ motor _ two ( self, level ) : self. _ set _ motor ( level, self. command _ set _ b _ fwd, self. command _ set _ b _ rev )
[ -0.71977698802948, -0.9057211875915527, 0.47984081506729126, 0.09837616235017776, 0.7305205464363098, -0.5337256789207458, 0.5825981497764587, -0.0034637246280908585, -1.3514747619628906, -0.8544630408287048, -0.7628573179244995, 1.3719267845153809, -0.2019563913345337, 0.9159991145133972,...
def _ _ ne _ _ ( self, other ) : if not isinstance ( other, packsobject ) : return true return self. to _ dict ( )! = other. to _ dict ( )
[ -0.9281178116798401, -0.376282662153244, 0.8822363018989563, 0.34833353757858276, -0.3958199620246887, -0.009383045136928558, -0.867322564125061, -0.6654714941978455, 0.4018091857433319, -0.6295896768569946, -1.3791589736938477, -0.053499750792980194, -0.41595906019210815, 0.01159178651869...
def _ isimage ( blob ) : try : image = images. image ( blob _ key = str ( blob. key ( ) ) ) # force image to load. image. horizontal _ flip ( ) image. execute _ transforms ( ) except ( images. badimageerror, images. notimageerror ) : return false except images. largeimageerror : pass return true
[ -1.0937418937683105, 0.32497936487197876, 0.5797167420387268, -0.11808773875236511, 0.018940092995762825, -0.012971904128789902, -0.906528890132904, 0.5735753178596497, 0.1990627497434616, 1.0393977165222168, -0.07741962373256683, -0.7100688219070435, -0.27322840690612793, 0.12088508903980...
def is _ editor ( cmgr ) : _ method _ name ='is _ editor'_ logger. entering ( class _ name = _ class _ name, method _ name = _ method _ name ) try : result = cmgr. iseditor ( ) except wlstexception, e : pwe = exception _ helper. create _ pywlst _ exception ('wlsdply - 00094 ', _ format _ exception ( e ), error = e ) _ ...
[ -0.963128924369812, 0.4139295220375061, 0.6993145942687988, 0.22172807157039642, -0.7030234932899475, -0.28956353664398193, 0.26641368865966797, -0.4454772472381592, 0.2155611217021942, 0.39750316739082336, 0.31893378496170044, -0.28545859456062317, -0.9148484468460083, 1.1951205730438232,...
def rotateby ( self, other : rotation2d ) - > " translation2d " : x = self. x y = self. y cos = other. cos sin = other. sin return translation2d ( x * cos - y * sin, x * sin + y * cos )
[ -0.11377168446779251, -0.0025569256395101547, 0.8957929015159607, -0.40472379326820374, -0.7276044487953186, -0.48996061086654663, -0.3370092213153839, -1.5986688137054443, -0.22722980380058289, -0.36859554052352905, -0.3616609275341034, -0.285785973072052, -0.20511284470558167, -1.5155315...
def test _ write _ hdf5 ( self ) : with pd. hdfstore ( os. path. join ( self. job _ 1. local _ path,'data. hdf5') ) as store : data = store ['df']. to _ dict ( ) self. assertequal ( [ key for key in data. keys ( ) ], ['spc1 ','spc2 ','spc3'] )
[ -0.3662058711051941, -0.2431020885705948, 0.23107731342315674, 0.07782654464244843, 0.9199684262275696, -0.014895726926624775, 0.5554739832878113, 0.7083030939102173, -0.6611776351928711, -0.8966329097747803, -0.6041999459266663, -0.7114506959915161, -0.49944359064102173, -0.76133352518081...
def build _ output ( args ) : if not path. exists ( args. target ) : makedirs ( args. target ) cwd = getcwd ( ) print " created { } ". format ( path. join ( cwd, args. target ) ) settings. configure ( template _ loaders = ( " django. template. loaders. filesystem. loader ", ), template _ dirs = ( path. join ( args. ori...
[ -0.5432285070419312, -0.33415165543556213, 0.5130799412727356, -0.6118499040603638, 0.1977977603673935, 0.31389468908309937, 0.44299644231796265, 0.027243277058005333, -0.8935083150863647, -0.3129883110523224, 0.21459202468395233, 0.14830382168293, 0.38791197538375854, 0.10313581675291061,...
def on _ file _ list ( request ) : if request. method = ='get': # get all requirements in on _ file status if request. user. has _ perm ('customer. customer _ view _ others') : requirements = requirement. objects. filter ( status = " on _ file " ). distinct ( ) else : requirements = requirement. objects. filter ( q ( c...
[ 0.34112414717674255, -0.788215160369873, 0.8908722400665283, 0.3141867220401764, -0.7336071729660034, 0.06973055750131607, 0.16552576422691345, 0.9850631356239319, -0.6888986229896545, 0.5508630275726318, 0.49460944533348083, -0.6016812324523926, 0.13241682946681976, 1.1076384782791138, ...
def test _ can _ delete _ driver ( self ) : api _ call ( self, " post ",'/ driver / create ', dict ( first _ name = " nicola ", last _ name = " tesla ", dob = " 23 / 12 / 1983 " ), 200 ) json _ response = api _ call ( self, " delete ",'/ driver / delete ', dict ( id = 1 ), 200, true ) self. assertequal ( json _ respons...
[ -0.5784949660301208, -0.23334141075611115, 0.6642587184906006, 0.44906920194625854, 1.2157342433929443, 0.19713103771209717, -0.40116506814956665, 0.6106824278831482, 0.08529658615589142, -0.1481366753578186, -0.11921430379152298, 0.26470324397087097, -0.2273806482553482, 0.761127889156341...
def _ add _ igroup _ member ( self, connector, igroup ) : v = self. vmem _ vip log. info ( _ ( " adding initiator % s to igroup " ), connector ['initiator'] ) resp = v. igroup. add _ initiators ( igroup, connector ['initiator'] ) if resp ['code']! = 0 : raise exception. error ( _ ('failed to add igroup member : % ( cod...
[ -0.6861155033111572, 0.023772384971380234, 0.3645409047603607, -0.26884448528289795, -0.5603432059288025, -0.6336446404457092, -0.46225419640541077, 0.6471338868141174, -0.29942020773887634, 0.4167076349258423, 0.1174275130033493, 0.01717759110033512, -1.8538590669631958, -0.40181997418403...
def git ( * args ) : return subprocess. check _ output ( [ " git ", * args ] )
[ 0.3955586552619934, 0.15570715069770813, 0.46116116642951965, 0.10980496555566788, -0.08303990215063095, 0.5139325857162476, -0.4107053577899933, -0.7653455138206482, -1.559321641921997, -0.41200968623161316, 0.7385586500167847, -0.11918537318706512, -0.6603342890739441, -0.220440968871116...
def ccode ( self, directory, config = configuration ( ) ) : cmsisdsp. sdf. scheduler. ccode. gencode ( self, directory, config )
[ -0.4485337734222412, -0.014970180578529835, 0.2962706983089447, 0.35177430510520935, -0.4408743679523468, -0.07995448261499405, 0.5512751340866089, 1.3434118032455444, 0.13898912072181702, 0.5189532041549683, -0.015496424399316311, 0.0007099566282704473, 0.4821772277355194, 0.8522153496742...
def test _ init ( ) - > none : m = sm. sepalmap ( ) m. clear ( ) zoom _ control = sm. zoomcontrol ( m ) m. add ( zoom _ control ) assert isinstance ( zoom _ control, sm. zoomcontrol ) assert zoom _ control in m. controls return
[ 0.946448028087616, 0.15907028317451477, 0.2962874174118042, 0.5128940939903259, 0.06909117102622986, 0.11062933504581451, -0.08504870533943176, -0.5786070823669434, 1.7658659219741821, -1.536413550376892, -1.241254210472107, -0.27033764123916626, 0.2903282940387726, -0.10803817957639694, ...
def get _ pending _ user _ transactions ( cls, user, detailed = false ) : transaction _ details _ list = [ ] user _ transactions = cls. objects. filter ( ( q ( item1 _ _ owner = user ) | q ( item2 _ _ owner = user ) ), is _ approved = none ) for transaction in user _ transactions : transaction _ dict = { " user _ item ...
[ -0.3329617381095886, -0.058711059391498566, 0.6769796013832092, 0.8011566400527954, -0.6355032324790955, -0.3348847031593323, -0.3820171356201172, 0.24813847243785858, -0.19881945848464966, 0.4193825423717499, -0.6872367858886719, -0.03064224310219288, 0.7806410789489746, 0.706433475017547...
def process _ set _ heading _ cmd ( self, t, dt ) : assert ( type ( self. direction _ cmd ). _ _ name _ _ = ='setheadingcmd') psi _ c = self. direction _ cmd. psi _ c self. platform. yaw _ cmd ( psi _ c )
[ -0.04983143508434296, -0.751783013343811, 0.4804021120071411, -0.3433016836643219, 0.7180337905883789, 0.916473388671875, 0.4223029911518097, -0.47863292694091797, -0.24521803855895996, -0.17163628339767456, 0.1031743586063385, 0.7768849730491638, 0.20246773958206177, 0.729608416557312, ...
def _ init _ cluster ( self ) : # we are creating a daemon that runs on all nodes. it runs privileged so it # has access to the host docker socket in order to pull down the image. once # complete it just sleeps forever. daemon _ set = kubernetes. client. v1beta1daemonset ( metadata = kubernetes. client. v1objectmeta ( ...
[ -0.19176611304283142, 0.24552848935127258, 0.7616145014762878, -0.32888853549957275, 0.35608527064323425, -0.7097504734992981, 0.018981000408530235, -0.03991369158029556, -0.2623988687992096, 0.7100178003311157, 0.44440385699272156, 0.7222018241882324, 0.40324026346206665, 0.08294212818145...
def on _ submit ( ) : # many widgets use " get " to retrieve contents name = name _ inp. get ( ) # spinboxes return a str, not a float or int! number = num _ inp. get ( ) # listboxes are more involved selected _ idx = color _ inp. curselection ( ) if selected _ idx : color = color _ inp. get ( selected _ idx ) else : c...
[ -0.04045407846570015, -0.2125156968832016, 0.3631714880466461, -0.2526888847351074, -0.31415972113609314, -0.2795010805130005, -0.41387662291526794, -0.3029837906360626, -0.2055269330739975, -0.8657225370407104, -0.017143404111266136, 0.3225814998149872, -0.6853451132774353, 0.463214755058...
def setsky ( self, imtype ='im1') : npix = self. npix self. sky = np. zeros ( ( npix, npix ),'float') # # # stay between 0. 25 and 0. 75 if imtype = ='im1': self. sky [ int ( npix * 0. 5 ), int ( npix * 0. 6 ) ] = 4. 0 self. sky [ int ( npix * 0. 5 ), int ( npix * 0. 63 ) ] = 1. 0 self. sky [ int ( npix * 0. 5 ), int (...
[ -0.3314692974090576, 0.24051564931869507, 0.9873855710029602, -0.3203895688056946, 0.263776957988739, 0.08983591198921204, 0.33808547258377075, -0.774536669254303, 0.7823874354362488, -0.21523605287075043, -0.07413025200366974, 1.021642804145813, -0.05451171100139618, 1.6248544454574585, ...
def test _ register _ input _ and _ user _ name _ too _ short ( self, * _ ) : self. open ( base _ url +'/ logout') # go to main page self. open ( base _ url +'/ register') # validate that the user is taken to / login assert self. get _ current _ url ( ) = = base _ url +'/ register'self. type ('# email ','test _ fronten...
[ -0.2977434992790222, 0.6118733286857605, 0.5328152179718018, 0.5780364274978638, -0.09935902804136276, 0.5276473760604858, 0.6486004590988159, -0.06910089403390884, -0.29741227626800537, -0.3713727295398712, -0.994400143623352, 0.8809213042259216, -0.033183783292770386, 0.9818392992019653,...
def get _ window _ id ( self ) : return self. _ _ window _ id
[ 0.8014894127845764, -0.6148998141288757, 0.3193691670894623, 1.1239097118377686, 0.2675693929195404, 1.2790498733520508, 1.1613154411315918, 0.21296317875385284, 0.8377010822296143, -0.8132941722869873, 0.17489297688007355, 2.3271822929382324, -0.9711205959320068, 1.1854348182678223, 0.2...
def _ expected _ account _ summary ( self ) : return _ accountsummary ( account ='du12345 ', values = [ _ accountsummaryvalue ( tag = _ tags. totalcashvalue, value = 1001872. 67, currency ='usd'), _ accountsummaryvalue ( tag = _ tags. netliquidation, value = 1001872. 67, currency ='usd'), ] )
[ 0.1483561247587204, 0.5955964922904968, 0.5085509419441223, -1.0376255512237549, -0.7877805829048157, -0.06456509977579117, 0.3244723379611969, 0.06822828203439713, 0.868221640586853, 0.015609780326485634, -0.006132049020379782, -0.051125627011060715, 1.060687780380249, -0.3419182002544403...
def protest _ handler ( sender, instance, created, * * kwargs ) : media = instance. media status = instance. status old _ status = instance. _ _ old _ status # make sure this not from commented action # if status change to published, + 1 count but old status is not published # if status change from published, - 1 count...
[ 0.5574930906295776, -0.9083430171012878, 0.670518696308136, 0.17855849862098694, 0.2159852832555771, 0.7358373403549194, 1.0794256925582886, 0.16922257840633392, 0.1558980494737625, 0.22516858577728271, -0.29956188797950745, -0.8367121815681458, 0.7691617012023926, 1.0283812284469604, 0....
def get _ unlocked _ dependencies ( self ) : return set ( [ task _ id for task _ id, task _ success in self. finished. items ( ) if task _ success ] )
[ -0.6978381872177124, -0.07403038442134857, 0.5682864785194397, 0.5330257415771484, -0.49835824966430664, 0.7008905410766602, 0.6108928918838501, -0.04814071208238602, -0.10877537727355957, 0.4427444338798523, -1.2215931415557861, 0.42490237951278687, -0.17993609607219696, 0.359572947025299...
def fade _ down _ music ( self, pause : bool ) - > none : while self. _ volume > 0 : self. _ volume = self. _ volume - self. _ volume _ fadespeed if self. _ volume < 0 : self. _ volume = 0 self. _ set _ volume ( self. _ volume ) time. sleep ( 0. 05 ) if pause : self. _ pause ( ) else : self. stop ( )
[ 0.1277495175600052, -0.5446193814277649, 0.7697444558143616, 0.3941017985343933, 0.31777146458625793, 0.6406735777854919, 0.3410230278968811, -0.6263744235038757, -0.47996222972869873, -0.4161093235015869, 0.3873784840106964, -0.1147434189915657, -0.961442768573761, 0.5211579203605652, 0...
def to _ json ( self ) : return { " class " : " game ", " uid " : self. uid }
[ -1.6020427942276, -1.2323193550109863, 0.5488913059234619, -0.9592859745025635, -0.40532615780830383, 0.9230280518531799, -0.38251325488090515, -0.8035112619400024, 0.7830888032913208, 0.5490192770957947, -0.868546724319458, 0.6671087145805359, 0.2399744838476181, 0.3347688615322113, 0.0...
def mangle ( self, # type : cryptomanager field _ name, # type : str ) - > str : pass
[ -0.8019539713859558, 0.4536786675453186, 0.3595890402793884, -0.4703599512577057, -0.29154136776924133, 0.19441184401512146, -0.7327746152877808, -0.4409869611263275, -0.4551906883716583, -0.15650391578674316, -0.5659822225570679, -0.12149502336978912, -1.1072238683700562, 0.29483333230018...
def parse _ meta ( meta _ args, includes _ shape = true, includes _ dtype = true ) : sep = ", " shape _ sep = " x " meta = tensormetadata ( ) for orig _ tensor _ meta _ arg in meta _ args : tensor _ meta _ arg = orig _ tensor _ meta _ arg def pop _ meta ( name ) : nonlocal tensor _ meta _ arg tensor _ meta _ arg, _, va...
[ 0.5956903696060181, 0.033673156052827835, 0.7531447410583496, -0.4805702567100525, -0.48191097378730774, -0.5072113871574402, 0.13678254187107086, -0.23238861560821533, -0.7573265433311462, 0.7095184922218323, -0.2461000680923462, 0.5937262773513794, 0.21858519315719604, -0.685570478439331...
def get _ xsec _ version ( self ) : return self ['xsec _ version']
[ 1.078773856163025, -0.24308978021144867, 0.17077550292015076, 0.582078754901886, 0.45131567120552063, 0.05631064996123314, -0.3334727883338928, -1.0531409978866577, 0.4136088490486145, 0.7846013903617859, -1.2271857261657715, 0.5747177004814148, 0.00333013734780252, -0.5172640681266785, ...
def prep _ auto _ encoder _ target _ data ( padded _ seqs, embed _ index ) : auto _ encoder _ target _ data = np. zeros ( ( len ( padded _ seqs ), max _ query _ time _ steps, dim _ word _ embed ), dtype ='float32') for i, seq in enumerate ( padded _ seqs ) : for j, index in enumerate ( seq ) : word = index2word _ train...
[ -0.7472911477088928, -0.08195846527814865, 0.6103023886680603, -0.09154529124498367, 0.11084326356649399, 0.33428841829299927, 0.2463652789592743, -0.016614407300949097, 0.4780389368534088, 0.6201139688491821, -0.1671765148639679, 0.9649932384490967, -0.0064939032308757305, -0.086326658725...
def italic ( text : str ) - > str : return f " _ { text } _ " if get _ interface _ type ( ) = = " slack " else f " \ 033 [ 3m { text } \ 033 [ 23m "
[ 0.19898594915866852, 0.0061666336841881275, 0.606777012348175, -0.4839494824409485, -0.31891465187072754, 1.0946271419525146, -0.5389153361320496, -0.41131821274757385, -0.8032932877540588, 0.5076159834861755, 0.2828468680381775, 0.5621055364608765, -0.6529463529586792, -0.5722090005874634...
async def _ received _ remote _ receipt ( self, origin, content ) : receipts = [ ] for room _ id, room _ values in content. items ( ) : for receipt _ type, users in room _ values. items ( ) : for user _ id, user _ values in users. items ( ) : if get _ domain _ from _ id ( user _ id )! = origin : logger. info ( " receiv...
[ -0.3075493574142456, -0.794528603553772, 0.4410516917705536, -0.38222724199295044, -0.1452237218618393, 0.5365211963653564, -0.6592377424240112, 0.7167807221412659, -0.3826444149017334, 0.19942088425159454, -0.4727284014225006, 0.48762598633766174, 0.34208089113235474, 0.14925891160964966,...
def topological _ order ( graph, visit _ order = none ) : order = [ ] visited = set ( ) if visit _ order is none : nodes = set ( graph ) while len ( nodes ) > 0 : start = nodes. pop ( ) _ topological _ order _ dfs ( graph, start, visited = visited, order = order ) nodes. difference _ update ( visited ) else : vo _ set ...
[ -0.2116011530160904, 1.2281438112258911, 0.7694689631462097, 1.1300749778747559, -0.12941205501556396, -0.7588860988616943, 0.38599079847335815, 0.44308072328567505, 0.4364999234676361, 0.452982634305954, -0.04213446006178856, -0.28331080079078674, 0.14613375067710876, -0.31163451075553894...
def test _ error _ delim ( self ) : msg = self. instance. delimiter. join ( ['args1 ','val1 ','args2 ','val2'] ). encode ( " utf - 8 " ) self. assert _ raises ( valueerror, self. instance. deserialize, msg )
[ 0.5317080616950989, 0.997778058052063, 0.4026893377304077, 0.05517081171274185, 0.25980326533317566, 0.3330555558204651, -1.4880629777908325, 0.4027206003665924, -0.626763105392456, -0.32516300678253174, -0.49980124831199646, -0.32792165875434875, -1.2362456321716309, -0.0599256195127964, ...
def get _ counter ( self ) : return self. counter
[ 0.2818816304206848, -0.7940877079963684, 0.3414198160171509, -0.04568855091929436, 0.0180714949965477, 0.6994417309761047, 0.5046796202659607, 0.011107347905635834, -0.21177323162555695, -1.2085562944412231, 0.12487709522247314, 0.15369383990764618, -0.562135636806488, -0.22522425651550293...
def sumofsquares ( n ) : result = 0 for i in range ( n + 1 ) : result + = pow ( i, 2 ) return result
[ -0.6366061568260193, 0.6390742659568787, 0.22797894477844238, 0.47430500388145447, 0.004023873247206211, -0.491131991147995, 0.7184854745864868, -0.8733651041984558, -0.0934048742055893, -0.14755438268184662, -1.4243870973587036, -0.3438466191291809, 0.011031698435544968, 0.449159860610961...
def star ( f ) : res = f. copy ( ) res. repeat _ star ( ) res. minimize ( ) return res
[ -0.9236053228378296, 0.04567360505461693, 0.15419705212116241, 1.1279611587524414, -1.0847080945968628, -0.3278766870498657, 0.6400302052497864, 0.5930938124656677, 0.6756673455238342, -0.2530471384525299, -0.8867296576499939, 0.07019856572151184, 0.3146284520626068, -0.8296895623207092, ...
def _ _ init _ _ ( self, src _ addr, dst _ addr, tunnel _ type, sentinel, tls, conn _ type = ccpmessage. open _ socks5 _ conn ) : self. connections = { } self. src _ addr = src _ addr self. dst _ addr = dst _ addr self. tunnel _ type = tunnel _ type self. tls _ uni _ hdshake _ done = false self. sentinel = sentinel sel...
[ 0.7249255776405334, 0.26126450300216675, 0.7819116115570068, -0.14898914098739624, -0.432339072227478, 0.09191124141216278, 0.6689186096191406, -0.7759889364242554, -0.4725443422794342, 0.26341161131858826, 0.017866401001811028, -0.29168426990509033, 0.1385165899991989, 0.5304710865020752,...
def perms ( columns ) : results = [ ] for perm in permutations ( columns ) : for signs in product ( [ - 1, 1 ], repeat = len ( columns ) ) : results. append ( [ i * sign for i, sign in zip ( perm, signs ) ] ) return results
[ -0.8871228694915771, 0.8321962356567383, 0.6128917932510376, 1.3974167108535767, -0.3148050904273987, 0.022213857620954514, 0.3013609051704407, 0.22086308896541595, -0.5867565274238586, 0.8773270845413208, -0.534773051738739, -0.7009649872779846, -0.9071794152259827, -0.0756201222538948, ...
def children ( self ) - > iterable [ entity ] : yield self. token
[ 0.2948701083660126, -0.7999343872070312, 0.4523807168006897, -0.2226589322090149, -0.07914833724498749, 0.3292980194091797, -0.4783708155155182, 0.20825351774692535, -0.6989719867706299, -1.2334140539169312, -0.347274512052536, 0.4968019723892212, 0.5370969772338867, 0.07540261745452881, ...
def longitude ( self, longitude ) : self. _ longitude = longitude
[ -0.024291889742016792, -0.14227177202701569, 0.06239939481019974, 0.25467178225517273, -0.3491192162036896, 0.4539448916912079, -0.4075348675251007, 1.055885672569275, 0.5968857407569885, -0.6182537078857422, -1.6574128866195679, -1.1029471158981323, 0.18736127018928528, 0.9435910582542419...
def find _ ref ( ref _ source, cat ) : os. chdir ( config. blazar _ photometry ) try : cat _ data = fits. open ( cat ) except : raise cat _ len = len ( cat _ data [ 2 ]. data ) ref _ list = [ ] for ref _ star in range ( len ( ref _ source ) ) : closest = 1e10 uid = float ( np. copy ( ref _ source [ ref _ star ] [ 0 ] )...
[ -0.13849413394927979, -0.7350757122039795, 0.6189073920249939, -0.39090022444725037, 0.2037508636713028, 0.6053850054740906, 0.19341838359832764, 0.2246989607810974, -0.8753145337104797, 0.011836402118206024, -0.3416169285774231, 0.39915505051612854, 0.26301372051239014, 1.1108593940734863...
def plot _ genome _ predictions ( y, preds, fname = none, width = 2000, figsize = ( 14, 14 ) ) : if len ( y )! = len ( preds ) : raise valueerror ('len ( y ) not equal to len ( preds )!') # break up chromosome into chunks for plotting. starts = np. linspace ( 0, stop = len ( y ), num = 6, dtype = int ) [ 1 : 5 ] # if p...
[ 0.1149674504995346, 0.18519867956638336, 0.664532482624054, -0.0655386820435524, -0.5590499639511108, -0.2379411906003952, 0.5464414954185486, -0.15665706992149353, -0.695188045501709, 0.2607402205467224, 0.11747333407402039, 0.9961496591567993, 0.06027178466320038, -0.07572653144598007, ...
def acl6totpktsallowed ( self ) : try : return self. _ acl6totpktsallowed except exception as e : raise e
[ 1.1011704206466675, -0.0021523635368794203, 0.4315415918827057, -0.25248706340789795, -0.9253093004226685, 0.017225444316864014, 0.4982064664363861, -0.3466907739639282, 0.13800205290317535, 0.6856228709220886, -0.10108305513858795, -0.6483548283576965, 0.08370410650968552, -1.391253113746...
def simplify ( self ) : d = gcd ( self. num, self. den ) return rational ( int ( self. num / d ), int ( self. den / d ) )
[ 0.4432036876678467, 0.9081969857215881, 0.39182335138320923, -1.0730555057525635, -0.06878014653921127, -0.027028687298297882, -0.10154657810926437, -1.157755970954895, 0.4818631410598755, -1.3596270084381104, 0.6861032843589783, 0.4035757780075073, -0.39754724502563477, -1.239370703697204...
def add _ action _ and _ slot ( self, action _ name : str, action _ slot : types. functiontype ) : self. addaction ( qaction ( action _ name, self. parent ) ) acts = self. actions ( ) acts [ - 1 ]. triggered. connect ( action _ slot )
[ -0.10376540571451187, -1.2336511611938477, 0.44774970412254333, 0.04450371116399765, 0.046419065445661545, -0.3927687406539917, 0.4281858503818512, -0.3616974651813507, 0.30989542603492737, -0.41852861642837524, -0.11343429982662201, 0.6301980018615723, 0.5088657140731812, 0.12100644409656...
def writebytes ( self, raf : java. io. randomaccessfile, dc : ghidra. util. dataconverter, template : ghidra. app. util. bin. format. pe. portableexecutable ) - > none :...
[ -0.49251943826675415, 0.9472395181655884, 0.3808443546295166, -0.9585325717926025, 0.8069020509719849, -0.08957210928201675, 0.10358469933271408, -0.08503150194883347, -0.16934111714363098, -1.3444446325302124, 0.10635057836771011, -0.680213451385498, -0.6433560848236084, 1.001662373542785...
def initialize _ parameters ( ) : import parameters npoly = 0 # total number of polymers in system ( summed over lattice sites ) nmono = 0 # total number of monomers in system tot _ species = 0 # total number of replicator species that have ever existed in sim khevents = 0 # tracks number of polymer replication events ...
[ -0.018859373405575752, -0.4427926540374756, 0.5929497480392456, -0.6759197115898132, 0.8762035965919495, 0.30469536781311035, 0.743705689907074, -0.29617688059806824, 0.3441832661628723, 0.6032043099403381, -1.1388567686080933, 0.4601880609989166, -0.24820536375045776, 0.6102473735809326, ...
def add _ account ( self, account _ profile ) : return self. _ add _ and _ return ('accounts ','account _ id ', account _ profile, account _ profile. data )
[ -0.47703424096107483, 0.20812615752220154, 0.3181321620941162, 0.9546086192131042, 0.8526758551597595, 0.18930403888225555, 0.6521311402320862, -0.008839390240609646, 0.8062340617179871, -0.29393067955970764, -0.5949004292488098, -0.614382803440094, -0.7328739166259766, -0.2197031080722808...
def jax _ get _ geoweights ( beta, delta, xmat ) : # begin by calculating beta _ x, an s x h matrix : # each row has the sum over k of beta [ s _ i, k ] * x [ h _ j, k ] # for each household where s _ i is the state in row i # each column is a specific household beta _ x = jnp. dot ( beta, xmat. t ) # add the delta vec...
[ 0.3032885193824768, 0.2823881208896637, 0.6653367877006531, -0.4953055679798126, 0.5948889255523682, 0.3917092978954315, -0.12303680181503296, 0.4479978680610657, -1.194596767425537, 0.34582987427711487, -0.32513418793678284, 0.24572229385375977, 0.30351221561431885, 0.0772988572716713, ...
def least _ squares ( y, tx ) : # returns mse, and optimal weights x _ t = np. transpose ( tx ) one = np. dot ( x _ t, tx ) two = np. dot ( x _ t, y ) return np. linalg. solve ( one, two ), compute _ squared _ loss ( y, tx, w )
[ 0.40894004702568054, -0.9524886012077332, 0.47731640934944153, -0.4811404347419739, -0.7246041893959045, -1.153291940689087, -0.8567002415657043, -0.4695283770561218, -0.13327600061893463, 0.986884593963623, -0.5359312295913696, 0.1287001073360443, 0.6633919477462769, -0.14213372766971588,...
def active _ games ( ) : global screenplay _ dir game _ list = [ ] for game _ file in os. listdir ( screenplay _ dir ) : file _ path = os. path. join ( screenplay _ dir, game _ file ) py _ ext = ". py " if os. path. isfile ( file _ path ) and game _ file. endswith ( py _ ext ) and not game _ file. startswith ( " _ _ in...
[ -0.14581863582134247, -1.7464982271194458, 1.0171836614608765, 0.3707387149333954, 0.28405892848968506, 0.3590666353702545, 0.14508618414402008, -0.3309873640537262, 0.047059066593647, 1.2786123752593994, -0.21996526420116425, 0.6945189237594604, -0.5138171315193176, 0.16062158346176147, ...
def delete _ project ( ) : if'uid'in session : user _ id = session ['uid'] project _ id = request. form [ " pid " ] project _ directory = path ( app. config ['upload _ folder'] ) / session ['uid'] / project _ id shutil. rmtree ( project _ directory ) user _ dir = path ( app. config ['upload _ folder'] ) / user _ id pro...
[ 0.018599608913064003, -0.2178642898797989, 0.49275845289230347, 0.5208630561828613, 0.2113543152809143, 0.2084454894065857, 0.22494666278362274, -0.08770059794187546, 0.40994060039520264, 0.10458682477474213, 0.44444355368614197, 0.11985573172569275, -0.2777361571788788, 0.5359411835670471...
def on _ text ( self, instance, filename ) : copy _ file _ btn = self. ids. copy _ file _ button if filename in self. media _ files or not check _ filename ( filename ) : copy _ file _ btn. disabled = true else : copy _ file _ btn. disabled = false
[ 0.629700243473053, -1.1286839246749878, 0.6806840300559998, 0.17992804944515228, -1.0112814903259277, 0.5076767206192017, -0.05193822830915451, 1.3770301342010498, -0.011995375156402588, 1.529097080230713, -0.3166038990020752, -0.2862541079521179, -0.31869685649871826, -0.0349128320813179,...
def base _ conditions ( self ) : patron = self. _ build _ thirsty _ customer ( ) patron. needs. hunger = 1 self. add _ drinks ( ) self. add _ chair ( ) return patron
[ -0.2131602019071579, -0.6821662783622742, 0.215959832072258, -0.2470804750919342, 0.2565755248069763, 0.645532488822937, -0.019400857388973236, -0.07651355117559433, -0.5626351833343506, -0.24615627527236938, -0.022885765880346298, -0.10214754939079285, -0.44897162914276123, 0.053615447133...
def check _ node _ reachable ( self, simulation, node _ name ) : nodes = self. get _ node _ summary ( simulation ) return nodes [ node _ name ] [ " reachable " ]
[ -1.4289442300796509, 0.7012160420417786, 0.7203598618507385, -0.2163827121257782, -0.6006727814674377, 0.2821286916732788, -0.37690451741218567, 0.0805344358086586, -1.378382682800293, 1.7267510890960693, 0.5701931118965149, 0.3944411873817444, -0.09137003123760223, -1.002016544342041, -...
def verify _ node ( self, node ) : px = self. calc _ grid _ position ( node. x, self. minx ) py = self. calc _ grid _ position ( node. y, self. miny ) # boundary check ( min, max boundary ) if px < self. minx : return false elif py < self. miny : return false elif px > = self. maxx : return false elif py > = self. maxy...
[ -0.330529123544693, -0.17492356896400452, 0.9723116755485535, -0.10252374410629272, 0.5791749954223633, 1.0640406608581543, -0.5101140141487122, -0.743681013584137, 0.4191204309463501, -0.45355474948883057, -0.003919797949492931, 0.15389840304851532, -0.5420624017715454, 0.1066551655530929...
def train _ save ( features, values, nb _ epoch = 5 ) : print ( " training the model using the nvidia architecture, performing { } epochs ". format ( nb _ epoch ) ) # defining the model as in the lecture video, basically. minor modifications to the cropping, dropout and # deep layer sizes model = sequential ( ) model. ...
[ -0.20750898122787476, -0.12304223328828812, 0.8765451908111572, 0.9040257334709167, -0.3713968098163605, -0.2350677102804184, 0.3151492774486542, -0.072040855884552, 0.2625325620174408, 0.28218960762023926, -0.9814831614494324, -0.09147477895021439, 0.6862865686416626, 0.4226987063884735, ...
def _ _ init _ _ ( self, build _ tool = none, build _ flags = none, build _ branch = none, build _ tag = none, build _ revision = none, built = none, built _ by = none ) : self. _ build _ tool = none self. _ build _ flags = none self. _ build _ branch = none self. _ build _ tag = none self. _ build _ revision = none se...
[ 0.7230288982391357, -0.8635651469230652, 0.5378556847572327, 0.7603148818016052, 0.587169885635376, 0.07661273330450058, -0.08301854133605957, 0.4024505317211151, -0.6533837914466858, -0.9779483675956726, -1.092529535293579, 0.3398878574371338, 0.01590917818248272, 0.06139935553073883, 0...
def kea _ talk ( url, command, ipv ) : try : if url. startswith ('http') : # http to control agent response = requests. post ( url, timeout = 30, json = {'command': command,'service': [ f'dhcp { ipv }'], } ) data = response. json ( ) else : # unix socket to daemon with socket. socket ( socket. af _ unix, socket. sock _...
[ -0.8055403232574463, -0.15330681204795837, 0.8390032649040222, -0.2802760899066925, -0.5140912532806396, -0.5958064198493958, -1.2610410451889038, -0.9526613354682922, -0.04005849361419678, 0.0596764013171196, 0.19016534090042114, 0.48152121901512146, -0.04989847540855408, 0.62717670202255...
def get _ short _ name ( self ) : return self. first _ name
[ 1.0531214475631714, -0.540841817855835, 0.46730607748031616, -0.14960339665412903, -0.19182956218719482, 0.20235387980937958, -0.08185985684394836, -0.3340136408805847, 0.1522829532623291, -0.4275017976760864, 0.44268640875816345, 0.5193896889686584, 0.25117477774620056, 0.3229259252548218...
def assemble _ common _ meta ( common _ meta _ dfs, fields _ to _ remove, sources, remove _ all _ metadata _ fields, error _ report _ file ) : all _ meta _ df, all _ meta _ df _ with _ dups = build _ common _ all _ meta _ df ( common _ meta _ dfs, fields _ to _ remove, remove _ all _ metadata _ fields ) if not all _ me...
[ 0.21122890710830688, 0.06060680001974106, 0.7077276110649109, 0.22594697773456573, 0.6896040439605713, 0.10497669875621796, 0.5728916525840759, 0.16175226867198944, -0.8846679329872131, 0.04547600820660591, 0.5840758681297302, 0.31847861409187317, -0.26273253560066223, -0.776985228061676, ...
def vae _ loss ( y _ true, y _ pred ) : # e [ log p ( x | z ) ] here a gaussian bce recon = - k. log ( 2 * np. pi ) - 0. 5 * k. sum ( std _ decoder, axis = 1 ) - 0. 5 * k. sum ( ( k. square ( inputs - mu _ decoder ) / ( k. exp ( std _ decoder ) ) ), axis = 1 ) # d _ kl ( q ( z | x ) | | p ( z | x ) ) ; calculate in clo...
[ 0.6854681968688965, -0.618837296962738, 0.677966296672821, 0.41720765829086304, -1.067112684249878, 0.14857274293899536, 0.41751211881637573, 0.7487891912460327, 0.5166809558868408, 0.4133915603160858, -0.19747406244277954, 0.7550892233848572, 0.4898933470249176, 0.5736803412437439, 0.42...
def print _ points ( data, bb ) : points = set ( ) for point in data : points. add ( ( point [ 0 ], point [ 1 ] ) ) for y in range ( bb [ 3 ] ) : for x in range ( bb [ 2 ] ) : if ( x + bb [ 0 ], y + bb [ 1 ] ) in points : print ('# ', end ='' ) else : print ('', end ='' ) print ( ) print ( )
[ 1.0313612222671509, 0.18780654668807983, 0.7732158899307251, -0.07173575460910797, 0.46131184697151184, 0.6034412980079651, -0.13505326211452484, -0.14609664678573608, -0.3217214047908783, 0.6648185849189758, 0.2627452313899994, 1.2286683320999146, -0.7053055763244629, -0.5900095105171204,...
def agent _ status _ field ( log, agent _ status, field _ name ) : # pylint : disable = unused - argument return agent _ status. basc _ field _ result ( log, field _ name )
[ 0.9421160817146301, -0.4825815260410309, 0.08181361109018326, -0.8247085213661194, -0.17737023532390594, -0.2742321193218231, -0.7366545796394348, 0.34885650873184204, -0.26291459798812866, 0.663257896900177, -0.3257282078266144, -0.21179243922233582, 0.5386828780174255, -0.889866590499877...
def get _ checked ( entry ) : interested _ field = entry. form. fields. filter ( slug ='im _ interseted _ in') if interested _ field. exists ( ) : interested _ field = interested _ field. get ( ) interested = entry. fields. get ( field _ id = interested _ field. pk ). value yield interested training _ field = entry. fo...
[ -0.35370153188705444, 0.09233952313661575, 0.5623517036437988, -0.5071768164634705, 0.6984503865242004, 0.09559490531682968, -0.000705277023371309, -0.5213034152984619, -0.2636830806732178, 0.3466145396232605, 0.022761298343539238, 0.3297329545021057, 0.16630078852176666, 0.452308684587478...
def pop ( self ) : priority = self. max _ priority ( ) if priority is none : raise keyerror ( " dequeue from empty queue " ) value = self. queue [ priority ]. pop ( 0 ) if len ( self. queue [ priority ] ) = = 0 : del self. queue [ priority ] return priority, value
[ -0.055099207907915115, -0.6326670050621033, 0.9798372983932495, -0.47647058963775635, -0.2653667628765106, -0.3320872485637665, -1.301795482635498, 0.8432855606079102, 0.033530935645103455, 0.3535242974758148, -0.49975183606147766, -0.06451070308685303, 0.16960638761520386, 0.9848165512084...
def bench _ quant ( ) : inst = quantizer _ top ( clock, reset, quanti _ datastream, quant _ ctrl, quant _ config, quanto _ datastream ) inst _ clock = clock _ driver ( clock ) @ instance def tbstim ( ) : " " " we send test cases here " " " # reset the block before processing yield pulse _ reset ( reset, clock ) # enabl...
[ 0.7870021462440491, -0.2179163694381714, 0.6926823258399963, -0.7317703366279602, 0.23797866702079773, -0.34781965613365173, 0.9132318496704102, -0.5662252902984619, 0.10351908951997757, 0.17748484015464783, -0.5953698754310608, 0.5625874400138855, -0.7251914739608765, -0.02583722397685051...
def _ set _ pos _ size ( self, position, size ) : if position is not none : self. move ( position [ 0 ], position [ 1 ] ) if size is not none : self. resize ( qsize ( size [ 0 ], size [ 1 ] ) )
[ -0.06421664357185364, -0.27879732847213745, 0.5289489030838013, -0.32115402817726135, -0.14186042547225952, -0.7315621972084045, -0.9402268528938293, -0.30799219012260437, 0.32017388939857483, 0.18267235159873962, -0.6499099731445312, -0.6673251986503601, 0.2882300913333893, -0.37801852822...
def synth _ coeffs _ tdep ( self, time, *, nmax = none, * * kwargs ) : return self. model _ tdep. synth _ coeffs ( time, nmax = nmax, * * kwargs )
[ -1.0994832515716553, 0.1212717816233635, 0.400917112827301, -0.4577445983886719, -0.6298129558563232, -0.7899987101554871, -0.8034723997116089, -1.3626388311386108, -0.1609877496957779, 0.2801520526409149, -1.67061185836792, -0.7370288968086243, 0.8406285047531128, -1.0288236141204834, -...
def _ _ exit _ _ ( self, exc _ type, exc _ value, traceback ) : try : self. eyes. close ( ) finally : self. eyes. abort _ if _ not _ closed ( )
[ -0.2953512668609619, -0.15049363672733307, 0.5518283843994141, -0.01669434644281864, -0.10653108358383179, 0.06557068228721619, 0.057768791913986206, -0.8715424537658691, 0.476263165473938, 0.4137584865093231, 1.8151582479476929, -0.5637733340263367, 0.011461402289569378, 0.656891107559204...
def testgetvaluesforquerywithonlyfluiddbidtag ( self ) : securetagapi ( self. user ). create ( [ ( u'username / tag ', u'description') ] ) objectid = uuid4 ( ) # fixme replace this with securetagvalueapi once the index is # integrated values = { objectid : { u'username / tag': 12 } } securetagvalueapi ( self. user ). s...
[ -0.10764334350824356, -0.06952368468046188, 0.31969785690307617, -0.042883820831775665, 0.5199683904647827, 0.27535590529441833, -0.13404515385627747, -0.2726989984512329, -0.11392589658498764, -1.1354411840438843, -0.8194764852523804, -0.34851178526878357, -0.17063705623149872, 0.53811216...
def mean ( vals ) : assert type ( vals ) is list,'input format is incorrect'new _ list = [ ] length - len ( vals ) for i in = length new _ list. append ( float ( i ) ) total = sum ( vals ) if length = = 0 : return 0. 0 else : return total / length
[ -0.8938132524490356, 0.31785452365875244, 0.4274325668811798, 0.0847560465335846, 0.3858608901500702, 0.5559935569763184, 0.21344919502735138, 0.1671856939792633, 0.6705341935157776, 0.7258784770965576, -0.21322298049926758, -0.2600743770599365, -0.7394712567329407, 1.0611714124679565, -...
async def import _ key ( self, name : str, key : jsonwebkey, * * kwargs : " any " ) - > keyvaultkey : enabled = kwargs. pop ( " enabled ", none ) not _ before = kwargs. pop ( " not _ before ", none ) expires _ on = kwargs. pop ( " expires _ on ", none ) if enabled is not none or not _ before is not none or expires _ on...
[ 0.13688595592975616, 0.3915543556213379, 0.6207478046417236, 1.1859301328659058, -0.822154700756073, 0.1586458384990692, -1.0115128755569458, -0.5138263702392578, 0.30362313985824585, 1.1001558303833008, -0.8152420520782471, 0.24099931120872498, -0.6033456921577454, 0.053098417818546295, ...
def deletefromdb ( filename ) : try : fileexists = db. session. query ( file ). filter ( file. name = = filename ). one ( ) if fileexists : md5 = fileutilities. getmd5 ( filename ) file. query. filter ( file. name = = filename ). delete ( ) db. session. commit ( ) return md5 except exception as e : print e
[ 0.10295450687408447, -0.2077830284833908, 0.7530848383903503, 0.22851844131946564, -0.12813740968704224, -0.14922161400318146, 0.6607279777526855, 0.32325437664985657, -0.5012773871421814, 1.0880728960037231, -0.2281143218278885, -1.2756750583648682, -1.007184386253357, 0.2990046739578247,...
def list _ rebuilding ( string ) : if'+'in string : return [ string [ : string. index ('+') ] ] + list _ rebuilding ( string [ string. index ('+') + 1 : ] ) return [ string ]
[ -0.7276527881622314, 0.1627272516489029, 0.4012073278427124, -0.009111307561397552, -0.6769118309020996, 0.17548559606075287, -0.2933911681175232, 1.2177709341049194, 1.3792470693588257, 0.04653685539960861, -0.4105226695537567, 0.5216307044029236, -0.6113941073417664, -0.6412162780761719,...
def load ( rootdir, pid, test _ mode = false, val _ mode = false ) : i = 0 if ( not test _ mode ) and ( not val _ mode ) : i = np. random. randint ( 10 ) patch = np. load ( os. path. join ( rootdir, pid,'patch _'+ str ( i ) + '. npy') ) if test _ mode : return patch mask = np. load ( os. path. join ( rootdir, pid,'mask...
[ -0.11985036730766296, -0.8964359760284424, 0.6655452847480774, -0.22317403554916382, -0.2378387749195099, 0.43269142508506775, 0.34973806142807007, -0.47466257214546204, 0.6241689920425415, 0.15917089581489563, 0.3309224843978882, 0.577983021736145, -0.37847521901130676, 0.0407519713044166...
def test _ impact _ of _ file ( filename ) : parts = filename. split ( os. sep ) if parts [ 0 ] in [ '. jenkins ', '. circleci'] : return'ci'if parts [ 0 ] in ['docs ','scripts ','codeowners ','readme. md'] : return'none'elif parts [ 0 ] = ='torch': if parts [ - 1 ]. endswith ( '. py') or parts [ - 1 ]. endswith ( '. p...
[ 0.03194492310285568, -0.8031998872756958, 0.9800292253494263, -0.4125204384326935, -0.20839737355709076, 0.09388229995965958, 1.3082330226898193, -0.009028320200741291, -0.694336473941803, 0.3700648844242096, 0.3528934717178345, -0.10022314637899399, -0.48271360993385315, 0.179869398474693...
def terraref _ timestamp _ format _ regex ( self ) : return [ r'( \ d { 4 } ( / | - ) { 1 } \ d { 1, 2 } ( / | - ) { 1 } \ d { 1, 2 } _ _ \ d { 2 } - \ d { 2 } - \ d { 2 } [ \ - { 1 } \ d { 3 } ] * )']
[ -0.44933873414993286, -0.4519055485725403, 0.924431324005127, -0.3970021903514862, 0.47205179929733276, 0.17265267670154572, -0.22101032733917236, 0.01478393655270338, 0.29987868666648865, 0.6999734044075012, -0.1481640487909317, -0.21382443606853485, 0.744737446308136, 0.19561614096164703...
def shell ( * args ) : return _ topods. topods _ shell ( * args )
[ -0.6571424007415771, 0.5803874135017395, 0.2357284426689148, 0.18316791951656342, -0.4617018401622772, 0.22572840750217438, 0.006895845755934715, -0.7804136872291565, 0.04667110741138458, -0.6201174259185791, 0.021821914240717888, -0.25537967681884766, -0.115425705909729, 0.137822806835174...
def is _ pil ( im : union [ image. image, np. ndarray ] ) - > bool : try : im. verify ( ) return true except : return false
[ -0.2386249601840973, 0.40996333956718445, 0.48961785435676575, 1.3879127502441406, -0.27156755328178406, 0.4394880533218384, -0.9725111126899719, -0.5976032614707947, 1.7535779476165771, 0.7492994666099548, 0.31823378801345825, -0.06840800493955612, -0.4975009858608246, -0.0024457711260765...
def get _ brightness ( self, frame ) : gray = cv2. cvtcolor ( frame, cv2. color _ bgr2gray ) for ( x _ roi, y _ roi, w _ roi, h _ roi ), brightness in zip ( self. rois, self. brightness ) : try : # spatial mean of the bounding box of the face brightness. append ( np. mean ( gray [ y _ roi : y _ roi + h _ roi + 1, x _ r...
[ -0.11707063019275665, 0.08950094878673553, 0.6505848169326782, 0.9354104399681091, 0.14655248820781708, -0.44547221064567566, 0.4655091166496277, -0.7080891728401184, 0.44174811244010925, -0.052475400269031525, -0.42395028471946716, 0.8245636224746704, 0.14791660010814667, 1.53079581260681...
def format _ dna _ allele ( self ) : if self. mutation _ type = ='=': # no change. # example : 101a = return self. ref _ allele +'='if self. mutation _ type = ='>': # snp. # example : 101a > c return self. ref _ allele +'>'+ self. alt _ allele elif self. mutation _ type = ='delins': # indel. # example : 112 _ 117delagg...
[ -0.37609195709228516, -0.47180992364883423, 0.8652334809303284, -0.26257023215293884, -0.05082617327570915, -0.05847577378153801, 0.1413281112909317, -0.4374953508377075, 1.3159725666046143, 0.7721320986747742, 0.9429463148117065, 1.201810359954834, 0.3776193857192993, 0.49372416734695435,...
def _ _ str _ _ ( self ) : string = " [ " + str ( self. _ _ class _ _. _ _ name _ _ ) + " ] " string + = str ( self. _ _ width ) + " / " + str ( self. _ _ height ) return string
[ -0.29042211174964905, -1.5715620517730713, 0.7001820206642151, -0.9783098697662354, -0.4713444411754608, 0.6725752949714661, 0.36028221249580383, -1.337449073791504, 0.07524381577968597, 0.2525799870491028, 0.2018686681985855, 0.42109590768814087, 0.1364050954580307, 0.6992312669754028, ...