text
stringlengths
25
2.19k
embedding
listlengths
768
768
def main ( model _ path = default _ model _ path, images _ path = default _ images _ path ) : predictor = predictor ( model _ path ) predicted _ depths, resized _ imgs = predictor. predict _ depth ( images _ path = images _ path ) # plot result fig = plt. figure ( ) columns = 2 rows = len ( resized _ imgs ) logger. deb...
[ -0.6216897964477539, 0.2689846456050873, 0.8973593711853027, 0.42535078525543213, 0.19580122828483582, 0.4069725573062897, 1.3826135396957397, 0.4269774556159973, -0.7240303158760071, -0.3727569282054901, -0.25122514367103577, 0.4843243658542633, 0.9421109557151794, 0.40094128251075745, ...
def release ( self ) : with self. _ lock : # sanity check, confirm'fd'has a unique hard link which matches the # configured file path. assert self. _ validate _ path _ and _ fd ( self. _ path, self. _ fd ) os. unlink ( self. _ path ) os. fsync ( self. _ fd ) os. close ( self. _ fd ) self. _ fd = none
[ 0.3627479076385498, 0.1557479053735733, 0.4535854756832123, -0.4498993158340454, 0.4931638240814209, 0.20277930796146393, 1.056656837463379, 0.42814964056015015, -0.5966722369194031, -1.3709766864776611, 1.0947076082229614, 0.4021282494068146, -0.29082006216049194, 0.13561281561851501, 1...
def describe _ tcp _ listener ( self, blb _ id, listener _ port = none, marker = none, max _ keys = none, config = none ) : path = utils. append _ uri ( self. version,'blb ', blb _ id,'tcplistener') params = { } if listener _ port is not none : params [ b'listenerport'] = listener _ port if marker is not none : params ...
[ 0.2512611150741577, -0.06149369850754738, 0.6711530685424805, -0.8024455904960632, 0.40264958143234253, -0.49270275235176086, -0.5128626823425293, 0.09281901270151138, -0.4945261776447296, 0.7539640069007874, -0.4772985875606537, 0.981408953666687, -0.8614027500152588, 0.01779928058385849,...
def detect _ sound _ event ( self, audio _ path, n _ dominate = 5, threshold = 0. 2 ) : ( audio, _ ) = librosa. core. load ( audio _ path, sr = 32000, mono = true ) duration = audio. shape [ 0 ] / 32000 audio = audio [ none, : ] # ( batch _ size, segment _ samples ) framewise _ output = self. inference ( audio ) # ( ba...
[ 0.1162390187382698, -0.9178565144538879, 0.9815381765365601, 0.5266793966293335, 0.01891058310866356, -0.3144688606262207, 0.23186175525188446, -0.599308967590332, -0.11297789216041565, 0.8391780853271484, -0.24749508500099182, -0.08408211916685104, 0.42760390043258667, 0.3505304157733917,...
def iseven ( * args ) : return _ snap. tint _ iseven ( * args )
[ -0.7636337280273438, -0.20744425058364868, 0.4022390842437744, 1.0049668550491333, 0.8563692569732666, 0.47114381194114685, -0.18311911821365356, 0.2925736904144287, -0.5479019284248352, -0.04273046553134918, -1.3528856039047241, 0.5898181200027466, -1.4984365701675415, 0.21879763901233673...
def addsorted ( self, * args ) : return _ snap. tintfltkdv _ addsorted ( self, * args )
[ -0.05529940500855446, 0.44624727964401245, 0.21196229755878448, 0.33000004291534424, -0.14360181987285614, -0.232655867934227, 0.41904327273368835, -0.4798318147659302, -0.612296462059021, -1.4168548583984375, -0.2627951204776764, -0.1284334510564804, -0.8191776871681213, 1.651179671287536...
def search ( filehandle, regexp, return _ line = false ) : regexp _ compiled = re. compile ( regexp ) while true : line = decode ( filehandle. readline ( ) ) if ( line = = " " ) : break # empty line = end - of - file # if ( re. search ( regexp, line ) ) : if ( regexp _ compiled. search ( line ) ) : if ( return _ line )...
[ 1.1782503128051758, -0.8721463680267334, 0.5165765285491943, 0.30569198727607727, 0.1106112077832222, 0.3975352644920349, 0.3913312256336212, -0.11993628740310669, -1.2904609441757202, -0.7587960958480835, 0.384397953748703, -0.10765820741653442, -1.4215606451034546, -0.5301029086112976, ...
def get ( self, uid ) : parser = ak _ parser. copy ( ) args = parser. parse _ args ( strict = true ) return { }, 200
[ -0.7167145013809204, -0.6247727870941162, 0.3406660556793213, 0.12239379435777664, -0.9824308753013611, -0.8312802314758301, -0.5179625749588013, -0.8994626402854919, 0.02221483737230301, 0.06435353308916092, 0.13991980254650116, 1.0654125213623047, -0.19605009257793427, 0.0301918685436248...
def save _ images ( wordcloud _ dict ) : for field in wordcloud _ dict. keys ( ) : for company in wordcloud _ dict [ field ]. keys ( ) : plt. imshow ( wordcloud _ dict [ field ] [ company ], interpolation ='bilinear') plt. axis ('off') plt. tight _ layout ( pad = 0 ) plt. savefig ( f '.. / backend / static / images / {...
[ -0.6483718156814575, 0.886846125125885, 0.3208771347999573, -1.0695213079452515, 0.3952878415584564, 0.5508990287780762, 0.17564432322978973, 0.17876863479614258, -1.2843871116638184, 1.2847346067428589, -0.3079071640968323, 0.39205583930015564, -0.030953167006373405, 0.660483181476593, ...
def listfromfile ( filename ) : numbersfile = open ( filename ) # open the file alltext = numbersfile. read ( ) # get all the text from the file numbersfile. close ( ) # close the file justnums = alltext. strip ( ) # just the numbers, still as a string listoflines = justnums. split ( ) # into a list of strings : 1 per ...
[ 0.3285480737686157, -1.0564441680908203, 0.5355005264282227, -0.6311043500900269, -0.2478667050600052, 0.6324813365936279, -0.39567872881889343, 1.5465165376663208, 0.34957730770111084, -0.13497883081436157, -0.3944626748561859, -0.11054286360740662, -0.27955347299575806, 0.640803158283233...
def _ group _ swap _ suggest _ move ( groups, zero _ group _ index, move _ group _ index, previous _ move, target _ func ) : n = groups. shape [ 0 ] move _ group = groups [ move _ group _ index ] move _ direction = np. sign ( move _ group _ index - zero _ group _ index ) # we always wish to ignore the previous move we ...
[ -0.7639195919036865, -0.335207998752594, 0.7405911087989807, 0.03738962486386299, 0.47065916657447815, -1.2729476690292358, 0.38736844062805176, -0.33907413482666016, -0.33514323830604553, 0.3631460666656494, 0.5413426756858826, 1.4626332521438599, 0.7019725441932678, -0.20304562151432037,...
def _ _ rsub _ _ ( self, other ) : # return _ create _ and _ connect _ node ( " sub ", other, self ) return _ create _ and _ connect _ node ( " sub ", other, self, try _ existing _ node = true )
[ -0.29230329394340515, 0.23618990182876587, 0.7526293396949768, 0.5321117043495178, -0.4601587653160095, 0.18446221947669983, 0.05171716958284378, -0.5423969030380249, 0.25210288166999817, -0.35481539368629456, -0.666994571685791, 0.32393577694892883, -0.4886382818222046, -0.886542081832885...
def line _ num ( self ) : return self. _ line _ num
[ -0.29175829887390137, -0.45270219445228577, 0.27289727330207825, 1.0891238451004028, 1.3800265789031982, 0.5799841284751892, 0.9889582395553589, 0.7925171852111816, 0.27470430731773376, -2.243154525756836, -0.8030701875686646, 0.13650691509246826, 0.4665580987930298, -0.3285822868347168, ...
def primes ( ) : i = 1 while true : if isprime ( i ) : yield i i + = 1
[ -0.8871291279792786, 0.5061383843421936, 0.6063916683197021, 0.4072206914424896, -0.2190806120634079, 0.2895274758338928, -0.2237549126148224, -0.5024828314781189, 0.648909330368042, -0.19249050319194794, -0.3519366383552551, -0.02032342366874218, -1.7996876239776611, 0.004341029096394777,...
def tstrhashf _ djb _ getsechashcd ( * args ) : return _ snap. tstrhashf _ djb _ getsechashcd ( * args )
[ 1.3241195678710938, 0.33962300419807434, 0.2318706512451172, 0.2132064551115036, -0.025009719654917717, -0.25650978088378906, 0.695188045501709, 0.9091361165046692, -0.5029735565185547, -0.795943021774292, 0.0392044335603714, -0.7265437841415405, 0.49928727746009827, 0.2241414338350296, ...
def genconfmodel ( * args ) : return _ snap. genconfmodel ( * args )
[ -1.8877243995666504, 0.15223954617977142, 0.5837288498878479, 1.195377230644226, 0.695135235786438, 0.688569962978363, 0.8093753457069397, 0.5728384256362915, -1.1264592409133911, -0.06131619215011597, -1.2155182361602783, -2.0862507820129395, -0.2611982226371765, 0.4289054870605469, -0....
def haswon ( self, player ) : # check diagonals if self. board [ 0 ] = = player and self. board [ 4 ] = = player and self. board [ 8 ] = = player : return true elif self. board [ 2 ] = = player and self. board [ 4 ] = = player and self. board [ 6 ] = = player : return true # check horizontals elif self. board [ 0 ] = =...
[ -0.4710269570350647, -0.30414465069770813, 1.358487606048584, -0.005344273988157511, -0.607847273349762, -0.27247652411460876, 0.8343324065208435, -0.032874058932065964, 0.23316217958927155, -0.12442007660865784, -1.1075668334960938, 0.035784684121608734, -0.6588913202285767, 0.09505208581...
def testdates ( ) : print ( colors. bold + " appel du script de check des contraintes d'activity avec les dates " + colors. endc ) # tests sur les dates ( il faut une activity complete ) data = const. defaultdata ( activityname = " generatedactivitywithdateprb2 " ) rmurray = sessionserpico ( " rmurray @ yopmail. com " ...
[ 0.08844398707151413, -0.3775894045829773, 0.8963180780410767, -0.029263250529766083, -0.20159141719341278, 0.5288752913475037, 0.4845469295978546, -0.002661248669028282, -0.26921334862709045, -0.07368704676628113, 0.01987123303115368, 0.3903810977935791, -0.36378633975982666, 0.49479731917...
def test _ read _ wavfile _ 1 ( ) : filename = os. path. join ( os. path. expanduser ( " ~ " ), " empty. file " ) with pytest. raises ( exception ) : empty _ audio = audio. audio ( filename ) print ( empty _ audio )
[ 0.9191712737083435, 0.3043736517429352, 0.6735677719116211, 0.13432945311069489, 0.16338050365447998, 1.4904991388320923, 1.1124672889709473, 0.035495825111866, -0.06444153934717178, -0.6291230320930481, 0.23631064593791962, 0.2688910961151123, -0.1594688892364502, -0.07932249456644058, ...
def is _ number ( s ) : try : float ( s ) return true except valueerror : return false
[ 0.2809784412384033, 0.059303831309080124, 0.2332027703523636, 1.570102572441101, 0.426569402217865, 0.010044723749160767, -0.22231781482696533, 0.24884742498397827, 0.6658886075019836, -1.027463674545288, -0.6954742670059204, -0.18304501473903656, -0.21129977703094482, -0.16585303843021393...
def test _ list _ insert _ bin _ is _ none ( self ) : key = ('test ','demo ', 1 ) try : testlistinsert. client. list _ insert ( key, none, 2, " str " ) except e. paramerror as exception : assert exception. code = = - 2 assert exception. msg = = " bin name should be of type string "
[ -0.795994758605957, 0.24627752602100372, 0.4667409062385559, 0.26083627343177795, 0.6942421793937683, -0.1444397121667862, -0.35160335898399353, -0.025467241182923317, -0.20884519815444946, 0.5245447158813477, -1.438478708267212, 0.13887284696102142, -2.0154950618743896, 0.8758497834205627...
def isnumeric ( hou _ attrib ) : assert type ( hou _ attrib ) is hou. attrib, " invalid argument " return \ hou _ attrib. datatype ( )! = hou. attribdata. string
[ -0.03534749522805214, -0.45636454224586487, 0.497730553150177, 0.8119503855705261, -0.1538834124803543, 0.8872594833374023, -0.18317651748657227, -0.33818137645721436, 0.047365736216306686, 0.13707606494426727, -0.2446233630180359, 0.07718296349048615, -0.05641491711139679, -0.326677948236...
def _ inputlocation ( self, line _ num ) : return''. join ( [ " input line ", str ( line _ num ), " : " ] )
[ -0.41091758012771606, -0.9089977145195007, 0.5458889603614807, -1.0640637874603271, -0.15350580215454102, 0.8908300399780273, 0.46418261528015137, -0.03158945590257645, -0.06912945210933685, -0.38901928067207336, 0.4127013683319092, -0.3105660378932953, 0.47822800278663635, -0.787568867206...
def add ( self, data ) : print ( " adding to internal buffer " ) self. forwarder _ queue. put ( data )
[ -0.11365371197462082, 0.033801641315221786, 0.6398491263389587, -0.7791903614997864, -0.19240018725395203, 1.4411510229110718, -0.1643405705690384, -0.6141724586486816, 0.12795400619506836, -0.5848031640052795, -0.9282756447792053, 1.300545334815979, -1.2522003650665283, 1.2291629314422607...
def get _ labels ( data, fill = [ " number " ] ) : n = len ( data ) sets _ data = [ set ( data [ i ] ) for i in range ( n ) ] # sets for separate groups s _ all = set ( chain ( * data ) ) # union of all sets # bin ( 3 ) - - >'0b11 ', so bin ( 3 ). split ('0b') [ - 1 ] will remove " 0b " set _ collections = { } for n in...
[ -0.129169300198555, 0.4413626790046692, 0.7511943578720093, -0.8768450617790222, -0.6128906011581421, 0.4657999277114868, 0.4336390793323517, -1.0431922674179077, -0.014674033038318157, 0.5698230862617493, -0.054884172976017, -0.8082432150840759, 0.4469046890735626, 0.6246705651283264, -...
def _ needaction _ domain _ get ( self ) : domain = [ ] if self. env ['res. users']. has _ group ('fleet _ x. fleet _ group _ manager') : domain = [ ('state ','= ','license _ exp') ] return domain
[ -1.1262441873550415, 0.1275848150253296, 0.3373625874519348, 0.3287377655506134, 0.8094542026519775, -0.24677762389183044, -0.4592728614807129, -0.3673168122768402, 0.20023633539676666, -0.4452333450317383, 0.23351773619651794, 1.2790725231170654, 0.3345644474029541, 0.881600558757782, -...
def test _ op _ 2 _ op _ 3 ( self ) : self. testsmartcontractoperations. operations ['op _ 2'] ( # push two onto the stack self. testexpressionstack ) assert self. testexpressionstack. pop ( ) = = 2 # check that two has been successfully pushed self. testsmartcontractoperations. operations ['op _ 3'] ( # push three ont...
[ 0.257993221282959, 1.199686884880066, 0.8022150993347168, 0.612415611743927, 0.7168379426002502, 0.06337365508079529, 0.10823041200637817, 0.11223149299621582, -0.1777801513671875, 0.7723566889762878, -0.729508638381958, -0.5746731162071228, -0.158506840467453, -0.9555577039718628, 1.008...
def str _ format ( string ) : return string. replace ( ", ", " " )
[ 0.7368559241294861, -1.2087838649749756, 0.5464048385620117, -1.0524754524230957, -0.1524105817079544, -0.5348510146141052, -0.829979658126831, 0.8235608339309692, 0.5969604253768921, 0.5168269276618958, 0.8738003969192505, 0.6276637315750122, -0.1972055435180664, -1.0092359781265259, 0....
def _ get _ features ( self, sentence, char _ ids, ner _ tags ) : data = { " word _ ids " : _ mat _ feature ( sentence ), " char _ ids " : _ mat _ feature ( char _ ids ), " tag _ ids " : _ mat _ feature ( ner _ tags ) } return data
[ 0.4170615077018738, -0.4693116545677185, 0.12349556386470795, -0.3720235526561737, -0.3416655957698822, -0.9916893243789673, -1.1553397178649902, -0.2782396078109741, -1.2237498760223389, 0.346172034740448, -1.4058512449264526, 0.11189096421003342, 0.16904620826244354, 0.0500277616083622, ...
def isflt ( self, * args ) : return _ snap. tstr _ isflt ( self, * args )
[ -0.4821474850177765, 0.33350804448127747, 0.24004246294498444, -0.5917100310325623, 0.7951460480690002, -0.17657385766506195, 0.2908259332180023, -0.6247867941856384, -0.3274517059326172, -0.7856157422065735, -0.2306496798992157, 0.05146415904164314, -0.7675081491470337, 0.9960354566574097...
def test _ atomic _ qname _ pattern _ 1 _ nistxml _ sv _ iv _ atomic _ qname _ pattern _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - pattern - 2. xsd ", instance = " nistdata / atomic / qname / sc...
[ -0.2619495987892151, -0.8068071007728577, 0.5664198398590088, 0.6735042333602905, -0.42624425888061523, 0.39852550625801086, -0.14761222898960114, -0.35978367924690247, -0.17084582149982452, 0.475241094827652, -0.413453608751297, 0.4060481786727905, 0.5459544062614441, -0.16944889724254608...
def iswcmatch ( self, * args ) : return _ snap. tstr _ iswcmatch ( self, * args )
[ 0.026758302003145218, 0.8981887102127075, 0.41791850328445435, 0.2363019734621048, -0.29584935307502747, 0.0015549121890217066, 1.0256001949310303, -0.5866244435310364, -0.5258448123931885, 0.2995493710041046, -0.1795763522386551, -0.09949681162834167, -1.0107725858688354, 0.45624104142189...
def setburnprob ( self, * args ) : return _ snap. tforestfire _ setburnprob ( self, * args )
[ -0.13120487332344055, 0.6014142036437988, 0.42387479543685913, 1.4108291864395142, 0.6532101631164551, 0.1435224413871765, 0.8328287601470947, -0.3828924298286438, -1.3429927825927734, 0.795364260673523, -0.42373812198638916, -0.7449837923049927, -0.8836284875869751, 1.046705722808838, 0...
def investigate ( self ) : def extract _ value ( s ) : return int ( s. strip ('rx : \ t \ n') ) # we need to be sure that on rhel system we don't automatically tune buffers # that have been already manually tuned. in non rhel system we skip this checks. ns ='/ etc / sysconfig / network - scripts /'if path. exists ( ns ...
[ 0.30512088537216187, 0.3112139403820038, 0.7821798324584961, 0.5203557014465332, 0.6258869767189026, -0.2475619912147522, 0.4687784016132355, -1.026444911956787, -0.15238195657730103, -0.09822072833776474, -0.2787129282951355, -0.06344030797481537, -0.20510514080524445, 0.6068013310432434,...
def initgui ( self ) : icon _ path =': / plugins / stripchart / icon. png'self. add _ action ( icon _ path, text = self. tr ( u'stripchart'), callback = self. run, parent = self. iface. mainwindow ( ) ) self. dlg = stripchartdockwidget ( self. iface. mainwindow ( ) ) self. view. setparent ( self. dlg ) self. dlg. vlmai...
[ 0.3581415116786957, 0.13146671652793884, 0.6783461570739746, -1.188593864440918, -0.4532633423805237, -0.14951808750629425, 1.0257313251495361, 0.11660585552453995, 0.06887077540159225, -0.7588527202606201, -0.6236422061920166, 0.4959692060947418, 0.21443615853786469, 0.8645539283752441, ...
def set _ ida _ state ( * args ) : return _ ida _ auto. set _ ida _ state ( * args )
[ -1.382942795753479, -0.2535284459590912, 0.3585318624973297, -0.038308609277009964, -0.16781306266784668, 0.3177121579647064, 1.2236346006393433, -0.7002536058425903, 0.1651989370584488, 0.07320304960012436, -1.1961199045181274, 0.4269084632396698, -0.37691789865493774, -0.0096046859398484...
def testpartfailmoveattachmentoneevent ( self ) : self. _ createbuffer ( {'copy _ attachments': false } ) with file _ utils. unopenedtemporaryfile ( ) as path : event = datatypes. event ( { }, {'a': path,'b':'/ tmp / non _ existent _ file'} ) self. assertequal ( false, self. sf. produce ( [ event ] ) ) # make sure sour...
[ 0.5587177872657776, -0.23542995750904083, 0.5789204239845276, -0.21266986429691315, -0.14787018299102783, 1.0099382400512695, 0.9334142804145813, -0.2273191213607788, 0.018437352031469345, -0.7767822742462158, -0.015072774142026901, 0.06260222941637039, 0.1616455763578415, -0.4235704541206...
def _ _ eq _ _ ( self, * args ) : return _ snap. tintprinthi _ _ _ eq _ _ ( self, * args )
[ -0.22245286405086517, -0.580435037612915, 0.07041233777999878, -0.6460691094398499, 0.27661481499671936, 0.2872743308544159, -0.38019856810569763, -0.16739177703857422, -0.3962327241897583, 0.19969730079174042, -1.1246379613876343, 0.1770835816860199, -0.9298982620239258, 0.368721634149551...
def load ( self, model _ name _ or _ path : union [ str, path ], ) : raise notimplementederror ( " please implement this method " )
[ -0.7756964564323425, -0.1846349984407425, 0.4941067695617676, 0.6362962126731873, -0.4821665287017822, 0.6680635213851929, -0.26546111702919006, -0.1614323854446411, -0.031248221173882484, 0.06467245519161224, -0.5099984407424927, -0.25726309418678284, 0.3351146876811981, -0.15411999821662...
def apply ( self ) : self. _ _ start _ time = time ( ) self. create _ log _ table ( ) if self. _ _ statics _ mismatch ( ) : not _ answered = true while not _ answered : dbmarshal. talk ( " apply " ) dbmarshal. warn ('triggers and / or stored procedures exist in your database but you do not have any corresponding static...
[ -0.010064738802611828, -0.006753033492714167, 0.886393129825592, 0.35372403264045715, -0.06137918308377266, 0.17003926634788513, 0.5977811217308044, 0.13128717243671417, -0.2557893693447113, -0.2592129707336426, 0.10132220387458801, 0.18839682638645172, -0.08843560516834259, 0.705615937709...
def clr ( self, * args ) : return _ snap. tintv _ clr ( self, * args )
[ -0.4096493124961853, 0.2701301872730255, 0.4426523745059967, 1.0331791639328003, -0.43471264839172363, 0.601621687412262, 0.15738460421562195, -0.7836690545082092, -0.5357120037078857, -0.6303611993789673, 0.22929559648036957, 0.47588983178138733, -1.4418874979019165, 1.238486409187317, ...
def unionlen ( self, * args ) : return _ snap. tintfltkdv _ unionlen ( self, * args )
[ 0.1501726657152176, 0.6846421360969543, 0.0749356672167778, 0.8925896286964417, -0.08393644541501999, 0.019189056009054184, 0.4831448793411255, 0.937410295009613, -0.3913878798484802, -0.482323557138443, -0.20341286063194275, -0.41784945130348206, -0.019395358860492706, 1.324537754058838, ...
def home ( ) : if session. get ('office _ id') is none : return redirect ( url _ for ('account. nurse _ info ', nurse _ id = session ['nurse _ id'] ) ) else : id = session ['office _ id'] office = office. query. get ( id ) return render _ template ('office _ account. html ', office = office )
[ 0.7195234298706055, -0.16783393919467926, 0.6546357274055481, 0.8523083329200745, 0.2638310194015503, 0.4308939576148987, 0.2186499536037445, -0.15513373911380768, 1.8784818649291992, 0.33869725465774536, 0.6960632801055908, 0.4616994559764862, 0.5625059604644775, 0.15224751830101013, -0...
def sanitize _ worklog _ time ( s ) : s = s. replace ('','' ) def get _ number _ before ( letter ) : number = 0 try : regex _ str ='\ d * ( \ d * ) \ s * { }. * '. format ( letter ) number = re. findall ( regex _ str, s ) [ 0 ] except ( attributeerror, indexerror ) : pass return number days = get _ number _ before ('d'...
[ -0.1394050270318985, -0.2521287202835083, 0.8818506598472595, -0.6467984318733215, -0.9734720587730408, -0.716708242893219, 0.5346335172653198, -0.9410713911056519, 0.348748117685318, 0.17849449813365936, 0.24777749180793762, 0.23439620435237885, -0.4259904623031616, 0.32203760743141174, ...
def isic _ getdata ( numjson = 20, numimage = 20, dermo _ filter = false, melano _ filter = false, path = os. getcwd ( ) ) : if ( numjson < numimage ) : print ( " invalid parameters " ) else : dataset = isic _ request ( numjson ) image _ data = { } datalist = [ ] i = 0 dir = path + " / static / isic / " if not os. path...
[ -0.8860108256340027, -0.4911044239997864, 0.9218459725379944, -0.17744025588035583, -0.2987760305404663, -0.09442681819200516, -0.8722614645957947, -0.06039707735180855, -0.0988476499915123, 1.1534404754638672, -0.4793930947780609, 0.7542726397514343, 0.23705843091011047, 0.145413547754287...
def delete _ edge ( self, v : int, w : int ) - > none : if w in self. _ adj [ v ] and v in self. _ adj [ w ] : self. _ adj [ v ]. remove ( w ) self. _ adj [ w ]. remove ( v )
[ 0.20564211905002594, -0.42197540402412415, 0.45932453870773315, -0.8136904835700989, 0.02113332785665989, 0.2024369239807129, 0.037303756922483444, 0.25631073117256165, 0.6711007952690125, 0.9896031022071838, 0.5905631184577942, 0.5993145108222961, -0.7024982571601868, 0.5092033743858337, ...
def add ( self, * args ) : return _ snap. tintprv _ add ( self, * args )
[ -2.0385594367980957, -0.3204725980758667, 0.6102825403213501, -0.00433428306132555, 0.3983643054962158, 0.6980614066123962, -0.2183423638343811, 0.6195175647735596, -0.12861882150173187, -0.6083552241325378, -0.13541936874389648, -0.33046919107437134, -1.7686136960983276, 0.684760212898254...
def sortbydat ( self, asc = true ) : return _ snap. tintprflth _ sortbydat ( self, asc )
[ -0.06434813886880875, 0.05301159992814064, 0.21643655002117157, -0.9967942833900452, 0.40734195709228516, 0.4055500626564026, 0.020583845674991608, -0.5633901953697205, -0.7481233477592468, -1.1590772867202759, -0.4100348651409149, -0.14844979345798492, -0.4311077892780304, 0.9563955664634...
def detect _ body _ parts ( frame : np. ndarray, size : int = 256 ) - > np. ndarray : # format the video frame to a square tensor required by movenet image = tf. convert _ to _ tensor ( frame ) image = tf. image. resize _ with _ pad ( image, size, size ) image = tf. expand _ dims ( image, axis = 0 ) image = tf. cast ( ...
[ -0.29635515809059143, -0.5765359997749329, 0.8370668292045593, 0.19769157469272614, -0.21455274522304535, -0.37559160590171814, -0.5639693140983582, -0.471445232629776, 0.5897964835166931, 0.4586403965950012, -1.22706937789917, 0.32853415608406067, -0.12314736843109131, 0.6103519797325134,...
def cleanup _ archive _ data ( dir _ path : str ) : try : # delete a given directory including its content shutil. rmtree ( dir _ path ) if not os. path. isdir ( dir _ path ) : # create a directory pathlib. path ( dir _ path ). mkdir ( parents = true, exist _ ok = true ) output _ log ( f'clean up folder { dir _ path } ...
[ 0.2684558033943176, -0.07983434200286865, 0.5421391725540161, -0.3372136056423187, 0.07028079777956009, 0.5566325187683105, 0.9283703565597534, 0.14968544244766235, 0.38362374901771545, -0.505590558052063, 0.40224936604499817, 0.8302164673805237, 0.33681756258010864, -0.16192664206027985, ...
def _ _ init _ _ ( self, t, trj, ats, molno, comids ) : self. timestep = t self. ats = ats self. nclusts = molno self. clusterids = np. zeros ( molno ) ( self. pos, boxl ) = self. readgro ( trj ) self. box = boxl self. rng = none if len ( self. pos )! = 3 * molno * ats : raise runtimeerror ( " incorrect number of atoms...
[ 0.12800970673561096, -0.14508962631225586, 0.6041746139526367, -0.8611936569213867, -0.19110225141048431, -0.28909388184547424, -0.12116841226816177, 0.5064360499382019, -0.09168283641338348, 0.34644341468811035, 0.10905274748802185, -0.7606196403503418, 0.4094131886959076, -0.151421263813...
def test _ atomic _ qname _ white _ space _ nistxml _ sv _ iv _ atomic _ qname _ white _ space _ 1 _ 1 ( 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.4294341504573822, -0.43128398060798645, 0.49330517649650574, -0.11861544847488403, -0.1051192432641983, 0.17498411238193512, 0.18776462972164154, -0.8583888411521912, 0.9199212193489075, 0.5510282516479492, 0.23123401403427124, 0.15372520685195923, -0.05591525882482529, 0.73352831602096...
def adam _ optimize ( self, num _ iterations = 1000, learning _ rate = 0. 001, beta1 = 0. 9, beta2 = 0. 999, epsilon = 1e - 8, tolerance = none ) : if not 0 < = beta1 < 1 or not 0 < = beta2 < 1 : raise valueerror ( " the value of beta ( sample weight ) should be between 0 and 1 ( excluding 1 ). " ) cur _ variable _ val...
[ 0.5656495690345764, -0.014882507734000683, 0.6303207874298096, 0.46593624353408813, -0.6586123108863831, -0.6936020255088806, 0.14581774175167084, -0.21938571333885193, -0.8888441324234009, 0.8499341607093811, 0.1612735390663147, 0.6779688596725464, 0.07864132523536682, 0.47684288024902344...
def align _ bulge _ envelope _ centre _ tag ( self ) - > str : if self. bulge _ prior _ model is none or self. envelope _ prior _ model is none : return " " if not self. align _ bulge _ envelope _ centre : return " " elif self. align _ bulge _ envelope _ centre : return f " _ { conf. instance ['notation'] ['setup _ tag...
[ 0.7619705200195312, -1.4460268020629883, 0.8544174432754517, -0.44572392106056213, 1.0299904346466064, 0.04245943948626518, 0.43598246574401855, -0.04232971742749214, 0.4935937225818634, 0.8243857026100159, 0.27695146203041077, 0.16394825279712677, -0.07530664652585983, 1.3130656480789185,...
def last ( self, * args ) : return _ snap. pneanetv _ last ( self, * args )
[ -1.2621771097183228, 0.7307502031326294, 0.48512986302375793, 0.02165447548031807, 1.2074536085128784, 0.7675156593322754, -0.5255165696144104, -0.6996394991874695, -0.6863526105880737, -0.21349698305130005, -0.35591867566108704, -1.1813204288482666, -0.3412948250770569, 0.5382494926452637...
def force _ updated _ at ( self, t = none ) : if t is none : t = util. now _ int ( ) else : util. check _ attr _ type ( t, int ) self. _ h5file. attrs [ " updated _ at " ] = util. time _ to _ str ( t )
[ -0.7855070233345032, -0.40191546082496643, 0.6316062808036804, -0.6322221159934998, 0.1329994648694992, 0.39298224449157715, -0.06539332121610641, -0.2491501271724701, -1.28652822971344, 0.034617744386196136, -0.5129892230033875, -0.45837441086769104, 0.7205430865287781, 0.1278182119131088...
def update ( self, time ) : self. xpos = self. xpos + time * self. xvel yvel1 = self. yvel - 9. 8 * time self. ypos = self. ypos + time * ( self. yvel + yvel1 ) / 2. 0 self. yvel = yvel1 if self. ypos > self. ymax : self. ymax = self. ypos return self. ymax
[ -0.30694353580474854, -0.32297757267951965, 0.8759714365005493, 0.6563701033592224, -0.7426629662513733, -0.3150598406791687, -0.8089135885238647, -0.8194363117218018, -0.010480985045433044, 0.20128139853477478, -0.9870123267173767, -0.39564618468284607, -0.04238146170973778, 0.54316353797...
def bfs _ search ( graph, a _ node, b _ node ) : front = deque ( ) front. append ( a _ node ) came _ from = { a _ node : none } while front : cp = front. popleft ( ) if cp = = b _ node : break # early exit for np in graph. neighbors ( cp ) : if np not in came _ from : front. append ( np ) came _ from [ np ] = cp return...
[ 0.8507205843925476, 0.24389970302581787, 0.5736973285675049, -0.46630582213401794, 0.6331884264945984, -0.48167237639427185, -0.549310028553009, -0.10044403374195099, -0.47249558568000793, 0.008604020811617374, 0.5144530534744263, 1.142805814743042, 0.04693086817860603, -0.1090551838278770...
def getspacestr ( * args ) : return _ snap. tstr _ getspacestr ( * args )
[ 0.6076699495315552, 0.06470645219087601, 0.3228050172328949, 1.1168839931488037, 0.6967586874961853, 0.637976348400116, 0.3238585293292999, -0.5145278573036194, -0.8467296957969666, -0.77518630027771, 0.5613510608673096, -0.46509474515914917, -0.19328148663043976, 0.7738964557647705, 1.1...
def _ filter _ description ( self, description ) : description = re. sub ('/ n ','', description ) description = re. sub ('+ ','', description ) description = description. lower ( ) res = [ ele for ele in self. filter _ desc if ( ele in description ) ] return ( bool ( res ) )
[ 0.004349273629486561, 0.11971588432788849, 0.6550742387771606, -0.20112359523773193, -0.6310455203056335, 0.3078654408454895, -0.9461749792098999, 0.43686342239379883, 0.005922256503254175, 0.28759434819221497, 0.30900320410728455, 0.48366937041282654, -0.6844345331192017, 0.26349371671676...
def onboard _ task _ update ( context, task _ id, values ) : return impl. onboard _ task _ update ( context, task _ id, values )
[ -0.562802791595459, -0.12514111399650574, 0.281355082988739, 0.29252174496650696, -0.6967949867248535, 0.07706198841333389, -0.02859288454055786, -0.10571688413619995, -0.7263808846473694, 0.745178759098053, -0.7177117466926575, 0.12785322964191437, 0.11025229841470718, 0.5032578110694885,...
def _ _ init _ _ ( self, * args ) : _ snap. tmmnet _ swiginit ( self, _ snap. new _ tmmnet ( * args ) )
[ -0.3993247151374817, 0.3607292175292969, -0.052276745438575745, -0.48331549763679504, 0.17017801105976105, -0.195883646607399, 0.444198340177536, 0.016551589593291283, 0.42977750301361084, -0.2317090630531311, -0.6766409873962402, -0.20952992141246796, -0.841526210308075, 1.238239407539367...
def run _ simulations ( setups : simulationsetupset, num _ subprocesses : int = 1, best _ para _ run : bool = false ) : # get system time now, for debug output. time _ now = datetime. datetime. now ( ) if num _ subprocesses = = 1 : msg _ serial ='* serial model execution started, at : { }'logging. info ( msg _ serial. ...
[ -0.5779353380203247, 0.3180673122406006, 0.6697691679000854, 1.057493805885315, 0.6044206023216248, -0.08655541390180588, 0.43124261498451233, -0.5017364621162415, 0.03901113197207451, 0.09398169815540314, 0.038188084959983826, -0.06934195756912231, -0.06152929738163948, 0.0594570450484752...
def tokenize ( doc : str ) - > tuple [ str,... ] : return tuple ( str ( doc ). split ( ) )
[ -1.347070336341858, 0.5675661563873291, 0.37994858622550964, 0.01697549596428871, -0.12001731991767883, -0.7056369781494141, -0.6019443869590759, 0.7578818798065186, -0.9760321378707886, 0.2540615200996399, -0.7323673367500305, -0.3049534261226654, -0.7475260496139526, -0.6992501020431519,...
def get _ ranking ( predictions, labels, num _ guesses = 5 ) : assert labels. size ( 0 ) = = predictions. size ( 0 ) assert labels. dim ( ) = = 1 assert predictions. dim ( ) = = 2 values, full _ guesses = predictions. topk ( predictions. size ( 1 ), dim = 1 ) _, ranking = full _ guesses. topk ( full _ guesses. size ( 1...
[ -0.7679415941238403, 0.6938380599021912, 0.3546682596206665, 0.6364377737045288, -0.02780143916606903, 0.1904013305902481, -0.023800572380423546, 0.4836024045944214, -1.5564740896224976, 0.394920289516449, 0.31946632266044617, 0.36592361330986023, 0.3835417628288269, -0.2143869251012802, ...
def get _ by ( ) : idd = int ( input ( " enter id to get record : " ) ) rec = con. get _ record ( idd ) if rec is none : print ( " \ 033 [ 1 ; 31m " + " record not found " + " \ 033 [ 0m " ) else : print ( rec )
[ 0.4083680808544159, 0.07923255115747452, 0.6289988160133362, -0.037272993475198746, -0.12169378995895386, 0.19578257203102112, 0.5338066816329956, -0.2935352325439453, -1.033447027206421, -0.21409161388874054, 0.28886812925338745, 1.2161953449249268, -0.42741259932518005, -0.32875159382820...
def iterate _ lines ( path : str ) - > iterator : if not path. endswith ( ". gz " ) : yield from open ( path ) else : with gzip. open ( path ) as ih : for line in ih : yield line. decode ( )
[ 1.059445858001709, -0.7174753546714783, 0.5821272730827332, 0.3343627452850342, -0.06648552417755127, 0.12835903465747833, -0.809363603591919, -0.7029688358306885, -0.14273403584957123, -0.1716986745595932, 0.8161137700080872, -0.16375432908535004, -0.051826946437358856, -0.160484880208969...
def sort ( self, * args ) : return _ snap. tgstatvec _ sort ( self, * args )
[ -1.3088990449905396, 0.48844480514526367, 0.40217918157577515, 0.1689164936542511, 0.1417708545923233, 0.5990158915519714, 2.1126253604888916, -1.1545541286468506, -1.498563528060913, -0.6121388077735901, 0.03182161971926689, 0.23917622864246368, 0.1457429975271225, 0.6596699953079224, -...
def add _ zero ( data : str, sz : int = 8 ) - > str : if len ( data ) < sz : data = list ( data ) ; string = " " ; for i in range ( sz - len ( data ) ) : data. insert ( i, " 0 " ) for i in data : string + = i ; data = string return data
[ -0.025280645117163658, 0.24649359285831451, 0.6593616008758545, 0.4285843074321747, -0.09665090590715408, 0.36449551582336426, -0.5617488026618958, 0.4967671036720276, 1.2555643320083618, 0.049476735293865204, -0.5691971778869629, 0.1411227434873581, -1.165813684463501, 0.08314234763383865...
def getrandomsample ( self, n ) : if n > self. grid. size : raise valueerror ( " sample size must be smaller than number of elements in array " ) else : # check for blank entries before grabbing location flattened = np. arange ( self. grid. size ) [ np. where ( self. grid. ravel ( ) > - 1 ) ] ids = np. random. choice (...
[ -1.2275995016098022, -0.38650575280189514, 0.5184004306793213, -0.23608605563640594, -0.17123748362064362, -0.135873481631279, -0.1910374015569687, -0.597111165523529, 1.0226401090621948, 0.4054066836833954, -0.09190480411052704, -0.011851459741592407, -0.4791012704372406, 0.32167819142341...
def update _ many ( self, context, bytez ) : assert bytez context = context [ : ] for next _ byte in bytez : result = self. update ( context, next _ byte ) context = context [ 1 : ] + [ next _ byte ] return result
[ -0.9709281325340271, -0.5204030275344849, 0.5709446668624878, 0.16720542311668396, -0.13294348120689392, -0.7470266222953796, -0.41272100806236267, -0.2439381331205368, 1.3378175497055054, 0.44024816155433655, -1.4499653577804565, -0.18483521044254303, -1.5160861015319824, 0.56528306007385...
def _ _ lt _ _ ( self, * args ) : return _ snap. tfltflthi _ _ _ lt _ _ ( self, * args )
[ 0.15124495327472687, 0.01914471574127674, 0.13843385875225067, -0.7634713053703308, 1.1404807567596436, -0.6984419226646423, 0.45630010962486267, -0.9956673383712769, -1.6666924953460693, -1.2922602891921997, -0.0942700058221817, -1.7711867094039917, -0.4023035764694214, 1.1573107242584229...
def nucs _ show ( self ) : cif = self. frame. currentindex hh = self. frame. view. viewrange ( ) self. mtx _ mdf2show = np. copy ( self. mtx2show ) self. mtx _ mdf2show [ :, :, :, 0 ] + = ( self. nucs _ dapi = = self. nucs _ value ) * np. uint8 ( 50 ) * np. sign ( self. mtx2show [ :, :, :, 0 ] ) * np. sign ( self. mtx2...
[ -0.0614289827644825, -0.14487601816654205, 0.5028168559074402, -1.0666462182998657, -0.48461106419563293, -0.4070535898208618, 0.44065994024276733, 0.02113245241343975, 0.19832539558410645, -0.3792971670627594, 0.47054141759872437, 0.6115974187850952, 0.2935672998428345, 0.1651670038700103...
def build _ tree ( data, disorder _ function = " entropy " ) : if disorder _ function = = " entropy " : disorder _ estimator = decisiontree. entropy elif disorder _ function = = " gini _ impurity " : disorder _ estimator = decisiontree. gini _ impurity elif disorder _ function = = " variance " : disorder _ estimator = ...
[ -0.13125641644001007, 0.0910976231098175, 0.6351994276046753, -0.3260708749294281, -0.19031685590744019, -0.19414176046848297, 0.3850061893463135, 0.5779553055763245, -0.149117112159729, -0.6212416291236877, 0.4104718267917633, 0.01665387488901615, 0.3562124967575073, 0.05841705948114395, ...
def predict ( train, test, p, d, q ) : history = list ( train ) test _ predict = [ ] for i in range ( len ( test ) ) : model = arima ( history, order = ( p, d, q ) ) model = model. fit ( disp = 0 ) output = model. forecast ( ) test _ predict. append ( output [ 0 ] ) history. append ( test [ i ] ) print ( i ) return tes...
[ -0.7311752438545227, 0.293189138174057, 0.2882764935493469, 0.765937864780426, 0.26511144638061523, 0.16764488816261292, -0.20182031393051147, 0.3871115446090698, -0.5590196251869202, -0.27985939383506775, 0.08137865364551544, 0.3459954857826233, 0.1278534233570099, -0.02355356700718403, ...
def create _ user _ import _ job ( jobname = none, userpoolid = none, cloudwatchlogsrolearn = none ) : pass
[ 0.8617508411407471, -0.15278767049312592, 0.29712435603141785, 0.8541505932807922, -0.09806215018033981, 0.7884129285812378, 0.4868045449256897, -0.3873097002506256, 0.31213128566741943, 0.003503277897834778, -1.1420068740844727, 0.8347011804580688, -0.7941782474517822, -0.9338359832763672...
def test _ run _ alpha _ rarefaction _ parallel ( self ) : run _ alpha _ rarefaction ( self. test _ data ['biom'] [ 0 ], self. test _ data ['map'] [ 0 ], self. test _ out, call _ commands _ serially, self. params, self. qiime _ config, tree _ fp = self. test _ data ['tree'] [ 0 ], num _ steps = 5, parallel = true, min ...
[ 0.3970991373062134, 0.008295933715999126, 0.7387591004371643, -0.12591053545475006, 0.8425982594490051, 0.47492992877960205, 0.8044622540473938, 0.2218504697084427, -0.339571475982666, -0.3033718764781952, 0.3465515077114105, 0.2609536051750183, -0.3591012954711914, 0.3573269844055176, 0...
def asjsonstring ( self ) : return json. dumps ( self. asdict ( ), sort _ keys = true )
[ -0.9476732611656189, -1.7897228002548218, 0.46997568011283875, -0.8096262216567993, -0.9367121458053589, -0.1770818680524826, -0.23329854011535645, -1.5229238271713257, 0.40305790305137634, -0.18810659646987915, 0.1308107078075409, 0.6743707060813904, 0.429228812456131, -0.0782960280776023...
def getcomvelocityoverc ( self, direction ) : if not hasattr ( self, " v _ over _ c " ) : self. v _ over _ c = { } if not direction in self. v _ over _ c : self. v _ over _ c [ direction ] = self. calccomvelocityoverc ( direction ) return self. v _ over _ c [ direction ]
[ 0.35001784563064575, 0.15393517911434174, 0.5797070264816284, -0.09085608273744583, -0.6122686862945557, -0.085147425532341, 0.7012473940849304, -0.7450504302978516, 0.1570056527853012, 0.4368569552898407, -0.5742046236991882, -0.1273249238729477, -0.3255905210971832, 1.0507951974868774, ...
def get _ quotes ( cursor, hpage _ html, movie _ title, movie _ url ) : print ( '...') # 1. fetch quote page result = etree. html ( hpage _ html ). xpath ('/ / div [ @ id = " quotes " ] / a [ text ( ) = " see more " ] / @ href') quotes _ url = movie _ url + str ( result [ 0 ] ) logger. debug ('quotes _ url'+ quotes _ u...
[ -0.22622238099575043, -0.09777916967868805, 0.9196356534957886, 0.4692521393299103, 0.79632568359375, -0.3267386555671692, -0.0728021040558815, 0.15969957411289215, -0.04700161889195442, 1.1557042598724365, -0.661339521408081, -0.6039668321609497, -0.5441840887069702, 0.22928884625434875, ...
def generate _ history _ matrix ( self ) : pass
[ -0.25374239683151245, 0.1296653300523758, 0.21154217422008514, 0.5595515370368958, 0.7396288514137268, 0.5090757608413696, 1.3559423685073853, 0.4465802013874054, -0.22241969406604767, -0.7152203917503357, 0.2700659930706024, 0.798862099647522, 0.5158498287200928, 0.6955032348632812, -0....
def _ _ str _ _ ( self ) : txt = " \ t \ tvocabulary element : " + self. _ label + " ( " for i in self. _ cats : txt + ='' + i +'= >'+ str ( self. _ cats [ i ] ) + ','return txt [ : - 2 ] +') '
[ 0.05167326703667641, -1.2156217098236084, 0.4105771481990814, -0.6563141345977783, 0.010453274473547935, 0.5723751187324524, -1.0434640645980835, -0.4524305760860443, -1.003055453300476, -0.20083214342594147, 0.6583641767501831, -0.20381012558937073, 0.47328171133995056, -0.526147425174713...
def test _ list _ integer _ max _ length _ 2 _ nistxml _ sv _ iv _ list _ integer _ max _ length _ 3 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - maxlength - 3. xsd ", instance = " nistdata / list / ...
[ -0.27533799409866333, 0.042070940136909485, 0.3462561070919037, 0.6042956113815308, -0.2961288392543793, 0.572136640548706, -1.0255142450332642, 0.48941412568092346, 1.48439621925354, 0.8908211588859558, -0.9427794814109802, -0.18568606674671173, -0.30001315474510193, 0.21172137558460236, ...
def compute _ positional _ encoding ( max _ seq _ len, attention _ dim ) : with tf. name _ scope ('positional _ encoding _ computation') : # compute an array a such that, # a [ i, d ] = np. sin ( i / multiplier ) # when d is even, and when d is odd : # a [ i, d ] = np. cos ( i / multiplier ) # where i ranges over seque...
[ -0.18184524774551392, 0.0781012549996376, 0.7583640813827515, 0.6749594807624817, -0.573329746723175, 0.1054445281624794, 0.6406366229057312, 0.9274953603744507, 0.5484567880630493, 0.7652249336242676, 0.5933995842933655, 0.3253170847892761, 0.4974600672721863, 0.2083026021718979, 0.8079...
def add _ optimizer ( model ) : stepsz = int ( 30 * args. epoch _ size / args. batch _ size / args. num _ shards ) stepsz = stepsz if stepsz else 100 optimizer. add _ weight _ decay ( model, 1e - 4 ) # opt = optimizer. build _ multi _ precision _ sgd ( opt = optimizer. build _ sgd ( model, args. base _ learning _ rate,...
[ 0.7548881769180298, 0.3007691502571106, 0.8501270413398743, 0.643706738948822, -0.08905117213726044, 0.2094699740409851, -0.3153567314147949, 0.057354360818862915, 0.30896124243736267, -0.5594279170036316, 0.029474230483174324, -0.4279102385044098, -0.3722129166126251, 0.7327227592468262, ...
def serialize ( self, file _ path, trace _ title = none ) : self. freeze ( ) assert self. _ traces,'trace data has already been cleaned up'trace _ files = [ trace. handle. name for trace in self. _ traces ] serializeashtml ( trace _ files, file _ path, trace _ title )
[ 0.5967716574668884, 0.22292979061603546, 0.3588351607322693, 0.6785025000572205, 0.1939231902360916, 0.5329871773719788, 1.0332486629486084, -0.37045156955718994, 0.06695057451725006, -0.05417671054601669, -0.6284871697425842, -0.03187193721532822, -0.26816877722740173, 0.1624789535999298,...
def plot _ pygac _ l1c _ timestamps ( cursor, satellite ) : logger. info ( " read all available pygac processing versions " ) pygac _ versions = get _ pygac _ versions _ dict ( cursor = cursor ) # list of processing versions p _ vers _ list = list ( ) # dict of orbit lengths of different proc. versions orbit _ dict = d...
[ 0.07019103318452835, -0.12718048691749573, 0.7491649389266968, -0.7613009810447693, -0.2991484999656677, 0.6831539869308472, -0.11458425968885422, -0.37823498249053955, -0.36054569482803345, 1.5889233350753784, -0.005143368616700172, 0.7352123260498047, 0.6136638522148132, 0.93656349182128...
def get _ type _ surprisals ( type2p, base = 2, alpha = 1 ) : type2surprise = { t : - 1 * log ( p, base ) for t, p in type2p. items ( ) } return type2surprise
[ -0.9921103715896606, -0.0417228527367115, 0.5165766477584839, -0.19641564786434174, -0.538115382194519, 0.16914929449558258, -1.0064613819122314, -0.9188085198402405, -0.5156461000442505, 0.600596010684967, -1.0374723672866821, 0.40513840317726135, -0.3049202859401703, -0.3696531057357788,...
def format _ entry ( self, entry ) : output = " " self. logger. debug ( " received : { } ". format ( entry ) ) data = entry [ " payload " ] # check if there is data to be read if len ( data ) > 0 : # extract the device info line - by - line lines = data. split ( self. entry _ delimiter ) for i in xrange ( 0, len ( line...
[ 0.16162109375, -0.42684465646743774, 0.8752918243408203, -0.976836085319519, -0.16766494512557983, -0.8504590392112732, -0.48184671998023987, -0.23540176451206207, 0.4436401128768921, 0.03289130702614784, 0.9282954335212708, 0.1600952446460724, 0.11721546202898026, 0.5509594082832336, 0....
def tmemin _ new ( * args ) : return _ snap. tmemin _ new ( * args )
[ -0.7814159989356995, -1.2687321901321411, 0.08414438366889954, -0.9525594711303711, -0.5092910528182983, 0.4203677773475647, -0.19892501831054688, -0.2883738875389099, -1.2335294485092163, -0.006838575005531311, -0.4478412866592407, -1.2483501434326172, 0.3903794288635254, 0.72215038537979...
def init _ extra _ actuator ( self, component _ instance, function, mw _ data, kind ) : component _ name = component _ instance. blender _ obj. name parent _ name = component _ instance. robot _ parent. blender _ obj. name # check if the name of the poster has been given in mw _ data try : # it should be the 4th parame...
[ -0.21922746300697327, -0.4637987017631531, 0.6021866798400879, -0.5151489973068237, -0.3844636082649231, 0.25515294075012207, -0.312591552734375, 1.0512877702713013, -0.04506839066743851, 0.005833175498992205, -0.9674660563468933, 0.9703509211540222, -0.5495641231536865, 0.7752587795257568...
def in _ limit ( self, x : arraytype, time _ deriv : int ) - > cs. dm : lo, up = self. get _ limits ( time _ deriv ) return cs. logic _ all ( cs. logic _ and ( lo < = x, x < = up ) )
[ 0.07637356966733932, 0.46019789576530457, 0.5156803131103516, 0.6320067048072815, -0.6562494039535522, -0.008076938800513744, -1.4942612648010254, -0.8748195767402649, 0.07602645456790924, 0.041423000395298004, 0.3469117283821106, 0.5302454233169556, 0.12073305249214172, -0.111558869481086...
def _ _ repr _ _ ( self ) : return json. dumps ( self. _ _ dict _ _ )
[ -1.1308958530426025, -1.9849679470062256, 0.8698149919509888, -1.6946673393249512, -0.9389409422874451, 0.40103352069854736, -0.22060154378414154, -0.30301016569137573, 0.7267396450042725, 0.170236274600029, -0.343421995639801, 1.159727931022644, 0.5817505121231079, -0.2738436162471771, ...
def writeemptysetup ( self, * path ) : outdir = self. basedir. descendant ( path ) outdir. makedirs ( ) outdir. child ( " setup. py " ). setcontent ( " " )
[ -1.140260934829712, 0.1922960877418518, 0.4903940260410309, 0.2042074203491211, 0.7789213061332703, 0.48935502767562866, 1.6609489917755127, -0.6340718269348145, 0.21735826134681702, -0.30085891485214233, -0.49288156628608704, -0.0036416957154870033, -0.07417064160108566, -0.25286009907722...
def getkilostr ( * args ) : return _ snap. tint _ getkilostr ( * args )
[ -0.03326466679573059, 0.05715386942028999, 0.1990751177072525, 0.8276636600494385, 0.2532244324684143, -0.3280499279499054, -0.4654790759086609, -0.8811770677566528, -0.9261462092399597, -0.5324130058288574, 0.1908303052186966, 0.4721565842628479, -1.4832549095153809, 0.22940482199192047, ...
def oldest _ file _ info ( self ) : if not self. _ file _ revisions : self. site. loadimageinfo ( self, history = true ) oldest _ ts = min ( self. _ file _ revisions ) return self. _ file _ revisions [ oldest _ ts ]
[ 0.5205654501914978, -0.675534188747406, 0.5673694610595703, -1.0781461000442505, 0.5089737772941589, -0.5826913118362427, 0.05123375356197357, -0.5150815844535828, -0.7113014459609985, -1.1102356910705566, 0.547874391078949, 0.008472586050629616, 0.15539203584194183, 0.9459683895111084, ...
def sourcesmat ( self ) : out = numpy. zeros ( ( self. _ ysize, self. _ xsize ), dtype = float ) for source in self. sources : out [ source. ypix, source. xpix ] = 1 return out
[ -0.7325239181518555, -0.6599396467208862, 0.23883432149887085, -1.2903342247009277, 0.44574645161628723, 0.0741669237613678, 0.6221212148666382, -0.5395269393920898, 0.568322479724884, -0.7659515738487244, 0.4207184314727783, 0.09941238909959793, 0.1728755086660385, 0.8112347722053528, -...
def _ monthly _ relative ( self, pattern _ dict ) : _ freq _ recurrence _ factor = 1 _ freq _ interval = 1 _ freq _ relative _ interval = 1 try : if self. _ pattern ['freq _ type'] = = 32 : _ freq _ recurrence _ factor = self. _ pattern ['freq _ recurrence _ factor'] _ freq _ interval = self. _ pattern ['freq _ interva...
[ -0.614564836025238, 0.4093627631664276, 1.122454047203064, -0.6434679627418518, -0.8920831084251404, -0.17912833392620087, 0.7447828650474548, -0.354679137468338, -0.03766738995909691, 0.4324391484260559, 0.3631719648838043, 0.2746153771877289, 0.3558497130870819, -0.04337269067764282, 1...
def getdat ( self, * args ) : return _ snap. tintintvv _ getdat ( self, * args )
[ -0.41248640418052673, 0.1134999617934227, 0.5954689383506775, 0.2322496920824051, 1.004525065422058, 0.5246986746788025, 0.3151220679283142, -0.7613061666488647, -0.21385033428668976, -0.7759983539581299, -0.10346876829862595, 0.42399272322654724, -1.1630581617355347, -0.17885243892669678,...
def onpastebuttonclicked ( self ) : self. _ pandacontroller. pasteselectedobject ( )
[ 0.25523483753204346, -0.1282368153333664, 0.27443841099739075, -0.15149718523025513, -0.0007488974370062351, 0.31548362970352173, 1.1671417951583862, -0.09030390530824661, 0.32803404331207275, 0.28699377179145813, -0.5696718692779541, 0.5205670595169067, 0.30741769075393677, -0.78251945972...