text
stringlengths
25
2.19k
embedding
listlengths
768
768
def convolve _ model _ dir _ monochromatic ( model _ dir, overwrite = false, max _ ram = 8, wav _ min = - np. inf * u. micron, wav _ max = np. inf * u. micron ) : modpar = parfile. read ( os. path. join ( model _ dir,'models. conf'),'conf') if modpar. get ('version ', 1 ) > 1 : raise valueerror ( " monochromatic filter...
[ 0.033165860921144485, 0.22160620987415314, 0.8702331781387329, 0.16983316838741302, -0.5018560290336609, -0.7790943384170532, 0.36338669061660767, 0.23008418083190918, 0.6925451755523682, 0.3352404534816742, 0.06952521204948425, 0.7347472906112671, 0.36699381470680237, 1.4178245067596436, ...
def mbp ( self ) : self. mark ( self. bestseq, color = " yellow " ) self. p ( " marked - only " )
[ 0.3277970850467682, -0.06524693220853806, 0.24889032542705536, -0.22230304777622223, 1.064958095550537, 0.3436596691608429, 0.5546694993972778, 0.9478242993354797, 0.896897554397583, 0.21193590760231018, -0.07608001679182053, 1.4583115577697754, 0.7286470532417297, 0.21966902911663055, -...
def feature _ eng ( df ) : # change all columns with name beginning " dat " to dtype datetime for col in df. columns : if col. startswith ('dat') : df. ix [ :, col ] = pd. to _ datetime ( df. ix [ :, col ], format ='% y - % m - % d % h : % m : % s') # edit featurer type df. libjob = df. libjob. astype ( str ) # drop te...
[ -0.5608857274055481, 0.2512112557888031, 0.8367393612861633, -0.713964581489563, 0.04358895123004913, -0.09574329107999802, 0.3914852440357208, 0.2113814353942871, -0.5945636630058289, -0.21835298836231232, -0.3797256052494049, -0.3345831334590912, 1.3011491298675537, 0.39298030734062195, ...
def hasimagedata ( self, volumenode ) : if not volumenode : logging. debug ('hasimagedata failed : no volume node') return false if volumenode. getimagedata ( ) = = none : logging. debug ('hasimagedata failed : no image data in volume node') return false return true
[ -0.7779586315155029, -0.20754019916057587, 0.7697596549987793, -1.066205382347107, 0.29841548204421997, 0.013552938587963581, -1.0564266443252563, 0.43746238946914673, -0.5544313192367554, 0.3037665784358978, 0.3141407072544098, 0.5449952483177185, -0.13417617976665497, 0.9047086834907532,...
def setupclass ( self ) : self. state = state ( ) self. state. name = " santander "
[ 0.14696680009365082, -0.017064169049263, 0.37151476740837097, 0.2245115041732788, -0.5751216411590576, 0.11493537575006485, 0.1346569061279297, -0.05401909723877907, 0.5897313356399536, -0.25493302941322327, -0.2486727088689804, -0.263327419757843, 0.9863550066947937, 0.5125675201416016, ...
def compute _ mean _ and _ standard _ deviation ( self ) : self. features _ mean = np. mean ( self. train _ features, axis = 0 ) self. features _ standard _ deviation = np. std ( self. train _ features, axis = 0 )
[ -0.7914586663246155, -0.41421759128570557, 0.4517078399658203, 0.21629053354263306, 0.6687204241752625, 0.2565779983997345, 0.5868128538131714, 1.6992945671081543, -0.7950390577316284, 0.6124762892723083, -0.43668338656425476, 1.1158311367034912, 0.7713600397109985, 0.0266638845205307, 0...
def test _ create _ signup ( self ) : signup _ models. create _ signup ( * self. signup _ data ) signup = signup _ models. get _ signup ('dirk @ mail. com ','test - scope') self. assertequal ( signup ['email'],'dirk @ mail. com') self. assertequal ( signup ['questions'] ['q1'],'a1') self. assertequal ( signup ['questio...
[ -0.3671129643917084, 0.3068040609359741, 0.5274783968925476, -0.10753555595874786, 0.7746384739875793, 0.3250909149646759, 0.21000628173351288, -0.15015515685081482, -0.4002654254436493, 0.09289420396089554, -0.5587148070335388, -0.7115811109542847, 0.27902770042419434, -0.6285836100578308...
def to _ python ( self, value ) : if isinstance ( value, filedescriptor ) : return value elif isinstance ( value, str ) : return filedescriptor ( value ) elif isinstance ( value, dict ) : try : path = value [ " file " ] except keyerror : raise validationerror ( " dictionary must contain a'file'element " ) if not isinst...
[ 0.2708931863307953, -0.26596343517303467, 0.7017630934715271, -0.574200451374054, -0.16266252100467682, 0.19842404127120972, 0.12035193294286728, -0.0036094123497605324, -0.06861484050750732, -0.6730070114135742, 0.33156150579452515, 0.1285848170518875, 0.05964519456028938, 0.6690329909324...
def run ( ) : # get configuration settings for display managers displaymanagers = none if " displaymanagers " in libcalamares. job. configuration : displaymanagers = libcalamares. job. configuration [ " displaymanagers " ] if libcalamares. globalstorage. contains ( " displaymanagers " ) : displaymanagers = libcalamares...
[ 0.18741214275360107, -0.5205448865890503, 0.8274518251419067, 0.046221084892749786, -0.12751716375350952, -0.1179129034280777, 0.07548658549785614, 0.01670525223016739, 0.24162426590919495, 0.23104624450206757, -0.05135904252529144, 0.6075460314750671, -0.6843391060829163, 1.23023366928100...
def _ get _ complexes ( rdf _ graph : rdflib. graph ) - > dict [ str, dict [ str, dict [ str, str ] ] ] : return query _ result _ to _ dict ( rdf _ graph. query ( get _ all _ complexes _ sparql, initns = prefixes ), )
[ -0.13892540335655212, -0.13043752312660217, 0.17880341410636902, -0.5222951173782349, -0.4135933518409729, -0.6190909147262573, -0.327434241771698, 0.005395186133682728, 0.08828957378864288, -0.6795141100883484, -0.848293662071228, 0.006946176290512085, 0.536746621131897, -0.68918734788894...
def update _ payments ( ) : # todo : error handling pay. updatepaymentdata ( ) istest = false if current _ app. config ['globalconfig']. deploytype. lower ( )! = " production " : istest = true logger. error ( " non - production environment - not creating google / slack accounts " ) membership. syncwithsubscriptions ( i...
[ 0.42280495166778564, -0.289139062166214, 0.29398635029792786, 0.6303766369819641, 0.4291996359825134, 0.49141785502433777, -0.09533336013555527, -0.2353629618883133, -0.07472548633813858, 0.23576782643795013, 0.8236510753631592, 1.1108523607254028, -0.2410571128129959, 0.3000812530517578, ...
def dobeforesessionstarts ( self ) : pass
[ -0.514552652835846, -0.5937495231628418, 0.38866880536079407, 0.5492899417877197, 0.45169588923454285, 0.0054412344470620155, 1.3115595579147339, -0.5429529547691345, 1.672147274017334, 0.540573000907898, -0.0007010262925177813, -0.34058845043182373, -0.477672278881073, -0.1246719062328338...
def use ( self, item _ entity, * * kwargs ) : results = [ ] item _ component = item _ entity. item if item _ component. use _ function is none : results. append ( {'message': message ('the { 0 } cannot be used. '. format ( item _ entity. name ), tcod. sky ) } ) else : kwargs = { * * item _ component. function _ kwargs,...
[ -1.0098775625228882, 0.15753285586833954, 0.8846847414970398, 0.2121523767709732, 1.4557381868362427, -1.6743918657302856, -0.09203420579433441, -0.04423242062330246, -0.05322505906224251, 0.6812319159507751, -0.07268881052732468, -0.2424408197402954, -0.2270313799381256, 0.631684303283691...
def heartbeat _ callback ( self ) : log. debug ( " sending heartbeat " ) heartbeat _ pdu = messagepdu ( messagetype. heartbeat _ message ) self. tcp _ proxy. send _ msg ( heartbeat _ pdu. to _ buffer ( ) )
[ 0.4849909245967865, 1.2741587162017822, 0.5700657367706299, -0.03814603388309479, 0.8848749995231628, 0.5638153553009033, -0.3146290183067322, -0.2670574486255646, 0.3010585606098175, -0.05483830347657204, 0.13162320852279663, 0.8564812541007996, -0.9615876078605652, 0.24367249011993408, ...
def selector ( self ) : return none
[ -0.5309746265411377, -0.8104764819145203, 0.27816006541252136, -0.2882222831249237, 0.9333146810531616, 0.2752373218536377, 0.4658529758453369, -0.5980678796768188, 0.7331668734550476, -1.9152824878692627, -0.4134238362312317, 0.22816365957260132, -1.1304280757904053, -0.28217411041259766,...
def test _ sort _ topk ( ) : limit = 5 query _ plan = queryplan ( ) # query plan ts = query _ plan. add _ operator ( sqltablescan ('supplier. csv ','select * from s3object ; ', false,'ts ', query _ plan, false ) ) s = query _ plan. add _ operator ( sort ( [ sortexpression ('_ 5 ', float,'asc') ],'s ', query _ plan, fal...
[ 0.2130880057811737, 0.6409977674484253, 0.6831378936767578, 0.050554897636175156, 0.07212178409099579, 0.1445418745279312, 1.2907264232635498, -0.9850236773490906, -0.8181984424591064, -0.08276896178722382, -0.31008702516555786, -0.3417320251464844, 0.204763725399971, -0.8702265024185181, ...
def _ executesubdriver ( self, asactions, fmayskip = true ) : asargs = list ( self. _ assubdriver ) asargs. append ('- - no - wipe - clean') ; asargs. extend ( asactions ) ; return self. _ executesync ( asargs, fmayskip = fmayskip ) ;
[ -1.3017164468765259, 0.4016607999801636, 0.7516076564788818, 0.586635172367096, -0.34138575196266174, -0.4997308552265167, -0.11337359249591827, 0.04283387213945389, 0.38135066628456116, 0.1347876489162445, 0.32849597930908203, -0.26764610409736633, 0.4008994996547699, 0.6029801368713379, ...
def pyfft _ natural ( inp, fft _ size ) : out = np. array ( [ 0. + 0. j ] * fft _ size ) sample _ offset = fft _ size / / 2 for i in range ( fft _ size / / 2 ) : out [ i ] = inp [ i ] + inp [ i + sample _ offset ] out [ i + sample _ offset ] = ( inp [ i ] - inp [ i + sample _ offset ] ) * w ( i, fft _ size ) if sample ...
[ -0.2915074825286865, -0.6887946128845215, 0.6052788496017456, 0.04421510919928551, -0.7015546560287476, -0.35245364904403687, 0.38048288226127625, -0.6598849296569824, -0.13309766352176666, 0.40391507744789124, -0.6993829607963562, 0.5126619338989258, -0.0482160821557045, 0.568674921989440...
def get ( self, linknet _ id ) : result = empty _ result ( ) result [ " data " ] = { " linknets " : [ ] } with sqla _ session ( ) as session : instance = session. query ( linknet ). filter ( linknet. id = = linknet _ id ). one _ or _ none ( ) if instance : result [ " data " ] [ " linknets " ]. append ( instance. as _ d...
[ -0.35491418838500977, -0.06866928189992905, 0.38656413555145264, -0.4074946343898773, 1.039180874824524, 0.008081709034740925, -1.3420168161392212, -0.38547948002815247, 0.7251771688461304, -0.7333202958106995, -0.012418814934790134, 0.3545083701610565, -0.2882446348667145, 0.9249807000160...
def run _ get _ s3 ( args ) : # # open yaml file containing parameters to run download from s3 with open ( args. config, " r " ) as f : config = yaml. load ( f ) # # download data from s3 via parameters in the yaml file config _ s3 = config ['get _ data'] # transfer and then download transfer _ s3 ( * * config _ s3 ['t...
[ 0.8782064914703369, -0.6550468802452087, 0.8822413086891174, 0.04068435728549957, 0.7018437385559082, 0.918035089969635, 0.26379695534706116, 0.36037030816078186, 0.2812417149543762, 0.2919576168060303, -0.1325562596321106, 1.4044709205627441, 0.5593075156211853, 0.10330082476139069, 0.5...
def mcgroupcountstart ( self ) : if self. force _ auto _ sync : self. get ('mcgroupcountstart') return self. _ mcgroupcountstart
[ -0.1163131594657898, 0.18981175124645233, 0.5480988621711731, 0.4970281720161438, -0.1771409958600998, -0.06048279628157616, 1.398679494857788, 0.14036253094673157, 0.051057908684015274, -0.10005941241979599, -0.5421608090400696, 1.118350863456726, -0.735564112663269, -0.2867817282676697, ...
def become _ user ( request, username = none ) : referer = request. meta. get ('http _ referer ','/') current _ user = request. user. username # don't do anything if becoming self. if current _ user = = username : return redirect ( referer ) # save stack since session will be overwritten. if'become _ user _ stack'in re...
[ -1.1303431987762451, 0.45055365562438965, 0.7110483646392822, 1.2366702556610107, 0.2846802771091461, -0.23847037553787231, 1.4794050455093384, -0.500572919845581, 0.9361262321472168, -0.14001590013504028, -0.5080356001853943, 0.27257516980171204, -0.05135379359126091, 0.4932188391685486, ...
def predict _ file ( self, path : str ) - > " predictions " : file _ input = self. _ file _ load ( path ) score = self. predict ( file _ input ) return score
[ -0.6924937963485718, -1.0687488317489624, 0.3568394184112549, 0.023546695709228516, -0.2982466518878937, 0.2397574484348297, -0.010153102688491344, -0.14097966253757477, -1.6610543727874756, 0.03551768511533737, -0.09443207830190659, -0.2842663526535034, -0.025041745975613594, -0.338984787...
def target _ portal _ id ( self, target _ portal _ id ) : self. _ target _ portal _ id = target _ portal _ id
[ -0.4443483352661133, -1.5278993844985962, -0.17341668903827667, -0.6814509630203247, 0.43250954151153564, 1.7364758253097534, 0.2595232129096985, 0.015093263238668442, 0.7669413089752197, 0.7969570159912109, 0.03306543827056885, 1.0265148878097534, 0.3392738699913025, -0.38731491565704346,...
def register ( request ) : logged _ in = authenticated _ userid ( request ) if logged _ in is not none : # if user is already authenticated return httpfound ( # redirect her to the dashboard request. route _ url ('logout') ) # roll your own captcha # _ c1 = random. range ( 10 ) # _ c2 = random. range ( 10 ) class accou...
[ -0.21937967836856842, 0.4674919843673706, 0.9120083451271057, 0.5784629583358765, 0.13161997497081757, -0.4546547830104828, 0.9030730724334717, -0.15658347308635712, 0.29529765248298645, -0.5334802865982056, -0.4065503776073456, -0.3121877610683441, 0.6963402032852173, 0.2586987614631653, ...
def test _ create _ event _ valid _ input ( self ) : # create user eventtype. insert _ event _ types ( ) eventcategory. insert _ event _ categories ( ) role = role. query. filter _ by ( name = " event organizer " ). first ( ) user = testmodelfactory. create _ user ( password = " password " ) user. role = role db. sessi...
[ -0.035777460783720016, 0.3995298445224762, 0.995326042175293, 0.49381008744239807, 0.6706034541130066, 1.0512008666992188, 0.2459312081336975, 0.28547513484954834, 0.08890867233276367, -0.8672391772270203, -0.31186971068382263, -0.3092051148414612, 0.5562995672225952, 0.09668347239494324, ...
def make _ mapping ( self ) - > none : start _ mark = streammark ('generated node ', 0, 0, 0 ) end _ mark = streammark ('generated node ', 0, 0, 0 ) self. yaml _ node = yaml. mappingnode ('tag : yaml. org, 2002 : map ', list ( ), start _ mark, end _ mark )
[ -0.23533357679843903, 0.015655601397156715, 0.49521052837371826, -0.4575973451137543, 0.055508796125650406, 0.6062508225440979, 0.6447139382362366, 1.1061666011810303, -0.04483745992183685, -0.568065881729126, -0.3190246522426605, 0.7818387746810913, 0.9598318338394165, 0.6241223812103271,...
def add _ edge ( self, node _ from, canonical _ range _ from = none, canonical _ range _ to = none, starting _ position = 0 ) : new _ node = self. node ( ) if canonical _ range _ from is none : canonical _ range = [ len ( self. sequences [ self. active _ sequence ] ) - 1, - 1 ] else : if canonical _ range _ to is none ...
[ -0.7147998809814453, -0.6240056753158569, 0.6091187000274658, 0.07353603839874268, 0.24942918121814728, 0.19002914428710938, -0.22629541158676147, 1.073469638824463, -0.35379135608673096, -0.24572183191776276, -0.2364410161972046, 0.6636937260627747, 0.01923156902194023, 0.1699984818696975...
def status _ reblogged _ by ( self, id : union [ status, idtype ] ) - > nonpaginatablelist [ account ] : id = self. _ _ unpack _ id ( id ) return self. _ _ api _ request ('get ', f'/ api / v1 / statuses / { id } / reblogged _ by')
[ -0.5600931644439697, 0.13162833452224731, 0.4146507978439331, 1.2900334596633911, 0.2523709833621979, -0.9899626970291138, -0.06788171082735062, 0.176408588886261, 0.9375594258308411, 0.5323529243469238, -1.4138147830963135, 1.3740135431289673, -0.199725940823555, 0.12372532486915588, -0...
def get _ city _ data ( file _ name ) : input _ file = open ( file _ name, mode = " r " ) # get the cities first cities = dict ( ) for line in input _ file : # check for the end of the city information if line [ 0 : 3 ] = = " # # # " : break line = line. strip ( ). split ( ", " ) lat = float ( line [ 0 ] ) long = float...
[ -0.06283892691135406, -0.5412808656692505, 0.6672964692115784, -1.0893561840057373, -0.6633841395378113, 0.6464672088623047, -0.5748631954193115, 0.3508155345916748, -1.5817832946777344, 0.08115444332361221, -0.73996502161026, -0.440106600522995, -0.46582669019699097, -0.21933627128601074,...
def _ on _ start _ quiz ( self, session : session, bot : bot, user _ id : int ) - > bool : quizpass = get _ active _ quizpass ( session, user _ id ) if quizpass and quizpass. is _ finished : if quizpass. has _ passed : # user has passed. bot. send _ message ( chat _ id = user _ id, text = messages. passed. format ( res...
[ -0.441372275352478, -0.2198162078857422, 0.5975027084350586, 0.3716178834438324, -0.22558075189590454, 0.6132152080535889, 0.5252753496170044, -0.6929641962051392, -0.7612531185150146, 0.1842205822467804, -0.5377368927001953, -0.014082244597375393, -0.2468739002943039, 0.0834764763712883, ...
async def spend _ coin ( self, coin : coinwrapper, pushtx = true, * * kwargs ) : amt = 1 if'amt'in kwargs : amt = kwargs ['amt'] delegated _ puzzle _ solution = none if not'args'in kwargs : target _ puzzle _ hash = self. puzzle _ hash # allow the user to'give this much chia'to another user. if'to'in kwargs : target _ p...
[ -0.5915078520774841, 0.34704941511154175, 0.7251659631729126, 0.21838195621967316, -0.14065749943256378, -0.4505513608455658, 0.6504738330841064, -0.34061601758003235, 0.26284635066986084, 0.8220245242118835, -0.30610960721969604, 0.42038652300834656, -0.4150843620300293, 0.373158901929855...
def demand _ evaluator ( self, from _ node, to _ node ) : del to _ node return self. _ demands [ from _ node ]
[ -0.7505327463150024, -0.4269023835659027, 0.7209275960922241, -1.1347527503967285, -0.6639503240585327, 0.1993543803691864, -1.1727951765060425, -0.36177515983581543, -0.9880854487419128, -0.31044045090675354, 0.8665835857391357, 2.1372647285461426, 0.7794645428657532, -0.5391968488693237,...
def isnotsame ( comp1, comp2 ) : if comp1 = = comp2 : return 0 else : return 1
[ -0.959318220615387, -0.942724883556366, 0.5024114847183228, 0.1984892040491104, 0.09148816764354706, 0.5268076658248901, 0.06294334679841995, -0.7863046526908875, 0.616274893283844, 0.9346486330032349, -0.6285310387611389, 0.8528109788894653, -1.1444001197814941, 0.3371550440788269, -0.0...
def preprocess ( model, device, record ) : orig _ inp : torch. tensor = record ['input']. to ( device ) assert orig _ inp. ndim = = 3 orig _ inp = orig _ inp [ np. newaxis ] assert'robust'in record adv _ inp = none if'adv'in record : adv _ inp = record ['adv']. get ('perturbedinputvalue ', none ) if adv _ inp is none :...
[ 0.5077235698699951, -0.6520221829414368, 0.7818547487258911, 0.0019507987890392542, -0.0999457836151123, 0.4738522469997406, 0.35764560103416443, 0.12487134337425232, 0.40776169300079346, 0.494332879781723, -0.12247487902641296, 0.8542847037315369, 0.3763585090637207, 0.09292300045490265, ...
def provides ( service ) : def class _ builder ( original _ class ) : global _ id _ counter new _ class = original _ class name = get _ name ( new _ class ) # add service to component info _ component _ info [ name ] ['provides']. add ( _ id _ counter ) _ internal _ services [ service ] = _ id _ counter if'_ ipopo _ pr...
[ -1.2619267702102661, -0.7467144727706909, 0.6603148579597473, -0.49702855944633484, -1.1572644710540771, 0.6072241067886353, 0.24819998443126678, 0.00539817102253437, 1.3842580318450928, -0.5398303866386414, -0.05007468909025192, -0.2206297367811203, 0.5001349449157715, 0.10117095708847046...
def _ _ init _ _ ( self, path, size = none, total _ size = none, refs = none ) : self. path = path self. size = size self. total _ size = total _ size if refs is none : refs = [ ] self. refs = refs
[ 0.4888699948787689, -0.25207963585853577, 0.5465160608291626, -0.37300601601600647, -0.09369296580553055, -0.024195194244384766, 0.6802027821540833, 0.09898561984300613, 0.7616738080978394, -0.5104610919952393, 0.07029100507497787, -0.009702073410153389, -0.20059210062026978, 0.19826471805...
def test _ check _ repository ( self ) : def _ http _ get ( service, url, * args, * * kwargs ) : self. assertequal ( url,'https : / / example. com / repos / myrepo / path') return'{ } ', { } account = self. _ get _ hosting _ account ( use _ url = true ) service = account. service self. spy _ on ( service. client. http ...
[ -0.4167424738407135, 0.8136136531829834, 0.6116929650306702, -0.2974976599216461, 0.2456950843334198, -0.5307657122612, -0.9886536002159119, 0.031766150146722794, 0.2749452292919159, -0.40367236733436584, -0.7511793971061707, 1.206343650817871, 0.04652121290564537, -0.20347240567207336, ...
def evaluate ( dataset, predictions, output _ folder, * * kwargs ) : args = dict ( dataset = dataset, predictions = predictions, output _ folder = output _ folder, * * kwargs ) if isinstance ( dataset, datasets. cocodataset ) : return coco _ evaluation ( * * args ) elif isinstance ( dataset, datasets. pascalvocdataset ...
[ -0.6577839255332947, 0.015234819613397121, 0.3964559733867645, -0.12491600215435028, -0.8026280999183655, -0.2025599479675293, -0.5789777636528015, 0.4407535791397095, -0.46721720695495605, -0.49608492851257324, 0.8587948083877563, 0.45718327164649963, 0.1436801701784134, 0.365568608045578...
def _ _ parse _ expr ( self, expr, root, loop _ to _ defendum = true ) : logging. debug ( " parsing expression : { 0 } ". format ( expr ) ) # name shortening for classmethods cls = definitionparser is _ binary = cls. _ is _ binary is _ unary = cls. _ is _ unary is _ tree = lambda r : type ( r ) = = list most _ part = 0...
[ -0.713952362537384, 0.09546368569135666, 0.9313784241676331, 1.171481966972351, 0.29041239619255066, -0.2603243291378021, -0.21457146108150482, 0.5131356716156006, 0.016999376937747, 0.5136502981185913, 0.3630535304546356, 0.27111729979515076, -0.3667130470275879, 1.293042778968811, -0.1...
def fit ( self, x, y ) : x, y, random _ state = self. _ validate _ train _ params ( x, y ) if len ( np. unique ( y ) ) = = 1 : raise valueerror ( " fitting " + type ( self ). _ _ name _ _ + " with only one class is not possible " ) input _ dim = x. shape [ 1 ] nb _ features = input _ dim nclasses = len ( unique _ label...
[ 0.08431895822286606, 0.22059382498264313, 0.7135876417160034, 0.16379354894161224, 0.33048221468925476, 0.6753009557723999, 0.3315284848213196, -0.4143836498260498, 0.17427484691143036, 0.3510073125362396, -0.08167412132024765, 0.7357037663459778, -0.08791448920965195, 0.38036271929740906,...
def trainallmodels ( self, n _ epochs = 10 ) : if self. datasetval is not none : # self. dqn. fit ( self. datasettrain, # eval _ episodes = self. datasetval, # n _ epochs = n _ epochs, verbose = false, show _ progress = false ) # self. doubledqn. fit ( self. datasettrain, # eval _ episodes = self. datasetval, # n _ epo...
[ -0.5447301268577576, 0.20689977705478668, 0.650999128818512, -0.15261216461658478, 0.6370260715484619, -0.09463778138160706, -0.08931653946638107, -0.017794154584407806, -0.25214558839797974, -0.8323992490768433, -0.7644696831703186, 0.31113219261169434, 0.3863721191883087, 0.6909529566764...
def randomstring ( stringlength = 5 ) : letters = string. ascii _ lowercase return''. join ( random. choice ( letters ) for i in range ( stringlength ) )
[ 0.2689174711704254, -0.7477601170539856, -0.08922257274389267, -1.29034423828125, -0.1815841645002365, 0.5353114008903503, -0.40251171588897705, -1.166191816329956, 0.5056888461112976, 0.0442943312227726, -0.175681009888649, 0.38708630204200745, -1.6363747119903564, -0.9661297798156738, ...
def process _ dataset ( filename : str ) - > list [ list ] : with open ( filename,'r') as f : lines = f. readlines ( ) [ 4 : ] lines = [ line. split ( ) for line in lines ] # split will leave some blank arrays in lines = [ line for line in lines if len ( line )! = 0 ] return [ [ float ( x ) for x in line ] for line in ...
[ 0.3305692672729492, -0.42536941170692444, 0.5856047868728638, -0.3012784421443939, 0.6954589486122131, 0.04564572498202324, -0.6335076689720154, 0.9999970197677612, -0.23098991811275482, -0.09598886966705322, -0.027125319465994835, -0.00029135713702999055, 0.34674936532974243, 0.2915119826...
def is _ setup ( self, tree _ node ) : return self. is _ grown ( tree _ node ) or \ tree _ node. _ uids is not none
[ -1.1006534099578857, 0.2389504313468933, 0.5915066599845886, -0.055912137031555176, 0.5228080749511719, -0.10723146796226501, -0.19324491918087006, 0.055596668273210526, 0.3020596504211426, 0.9042147994041443, 0.03612285479903221, -0.041150182485580444, 0.3552612364292145, 0.85838025808334...
def test _ basic _ dict ( self ) : assert { * keys ( {'one': 1,'two': 2 } ) } = = { ('one ', ), ('two ', ) }
[ -0.9909040331840515, 0.4467349052429199, 0.37219497561454773, -0.9197871088981628, 0.2689453363418579, 0.10341430455446243, -0.6683470606803894, -0.233048677444458, -0.14568448066711426, -0.6868467330932617, -0.6013622283935547, -0.6417772173881531, -0.11870232969522476, -0.362055063247680...
def find _ user ( user _ id ) : f = open ('user _ ids. json') user _ data = json. load ( f ) for user in user _ data : if user ['id'] = = user _ id : return user
[ -0.22359231114387512, -1.0703192949295044, 0.2716856598854065, -0.4655247926712036, -0.2086295187473297, 0.21820376813411713, 0.2305227518081665, -0.5860811471939087, -0.6966692209243774, 0.5636396408081055, 0.1848869025707245, 0.6243225932121277, 0.022495556622743607, 0.4899229407310486, ...
def test _ show _ completed _ task _ user _ is _ creator ( self ) : task = taskfactory ( creator = self. user, completed _ by = self. user2, status = task. status. completed ) response = self. client. get ( self. url ) self. assertcontains ( response,'href = " { 0 } " '. format ( reverse ( " tasks : close _ task ", kwa...
[ 0.37907955050468445, 1.275229573249817, 0.42884692549705505, 1.102043628692627, -0.47811686992645264, 0.8894456028938293, 1.6062103509902954, 0.07643241435289383, -0.35516560077667236, -1.1212986707687378, -0.4456942677497864, -0.5352602601051331, 1.0677703619003296, 0.889721691608429, -...
def create _ group _ with _ http _ info ( self, organization _ id, title, description, manager _ id, access _ type, logged _ in _ user _ id, access _ token, client _ token, * * kwargs ) : all _ params = ['organization _ id ','title ','description ','manager _ id ','access _ type ','logged _ in _ user _ id ','access _ t...
[ -0.10487068444490433, 0.5225846171379089, 0.9584357142448425, -0.039928365498781204, 0.0008955151424743235, 0.5184223651885986, -0.6448497176170349, -1.0594440698623657, -0.8574268817901611, 0.46569401025772095, 0.39121752977371216, 0.7361719012260437, -0.5566814541816711, 1.13758063316345...
def read _ verilog _ lines ( path ) : infile = open ( path ) lines = infile. readlines ( ) eff _ line ='' new _ lines = [ ] for line in lines : # remove comment in lines line _ syntax = re. match ( r'^. * / /. * ', line, re. ignorecase ) line = line [ : line. index ('/ /') ] if line _ syntax else line # if there is no ...
[ 1.2275168895721436, -0.7685064077377319, 0.9952038526535034, 0.507354736328125, -0.02389972098171711, 0.10453031957149506, -0.2372172325849533, 0.5997159481048584, -0.1504254788160324, 1.2140129804611206, -0.0936620905995369, 0.26282069087028503, -0.4520043730735779, -0.04794985055923462, ...
def list _ files ( dir _ name : str, suffix : str = " ", ignore _ case : bool = true, use _ media _ root : bool = false, recurse : bool = false ) - > list [ str ] : if not os. path. isdir ( dir _ name ) : raise valueerror ( _ ( " { } is not a directory " ). format ( dir _ name ) ) dir _ full _ path = os. path. abspath ...
[ 0.47948724031448364, -0.32728859782218933, 0.7839585542678833, 0.5520946383476257, -0.39238643646240234, -0.7583065032958984, -0.0517742745578289, 0.7761420607566833, 0.8116320371627808, 0.13074195384979248, 0.25373727083206177, 0.8574734926223755, 0.3528781533241272, 1.2851805686950684, ...
def testdeletevaluesforquerywithinvalidquery ( self ) : self. store. commit ( ) with login ( u'username ', uuid4 ( ), self. transact ) as session : deferred = self. facade. deletevaluesforquery ( session, u'username / unknown 42 ', [ u'username / unknown'] ) yield self. assertfailure ( deferred, tparseerror )
[ 0.4899410307407379, 0.24458131194114685, 0.4324582815170288, -0.06627395004034042, -0.2475992888212204, 1.0094233751296997, -0.9149749875068665, -0.03551848605275154, 0.080037921667099, -0.9494203925132751, 0.3386744260787964, -0.44150224328041077, 0.6722732782363892, 0.8967716097831726, ...
def remove ( path ) : if debug : print ( " remove " + path ) if os. path. isfile ( path ) : os. remove ( path ) # remove the file elif os. path. isdir ( path ) : shutil. rmtree ( path ) # remove dir and all contains
[ 0.11544610559940338, -0.3872925937175751, 0.41225719451904297, 0.6290256381034851, -0.29288768768310547, 0.5029285550117493, 0.46316707134246826, 0.7885927557945251, 0.7426535487174988, -0.6717984676361084, 0.5215751528739929, -0.6074555516242981, -0.5896131992340088, 0.6273988485336304, ...
def _ _ determine _ eta _ posix ( eta = none, countdown = none, current _ time = none ) : if not current _ time : current _ time = time. time if eta is not none and countdown is not none : raise invalidtaskerror ('cannot use a countdown and eta together') elif eta is not none : if not isinstance ( eta, datetime. dateti...
[ 0.06032022461295128, -0.05956179276108742, 0.9154729843139648, 0.1338566392660141, -0.4250318109989166, -0.17889557778835297, 0.3372364640235901, 0.6732866168022156, -0.1569100171327591, 0.502066433429718, 0.301139771938324, -1.39208984375, 0.5829923152923584, 0.9361300468444824, 0.49016...
def decode ( s, enc = none, denc = sys. getdefaultencoding ( ) ) : if isinstance ( s, unicode ) : return s, 0, " utf - 8 " try : x = unicode ( s, " ascii " ) # if it's ascii, we're done return s, 0, " ascii " except unicodeerror : encodings = [ " utf - 8 ", " iso - 8859 - 1 ", " cp1252 ", " iso - 8859 - 15 " ] # if the...
[ -0.28543826937675476, 0.5548040866851807, 0.6993181109428406, 0.11262931674718857, -0.32899993658065796, -0.8490555882453918, -0.05439070239663124, 0.27714213728904724, 0.38657793402671814, 0.2556326985359192, -0.7508985996246338, -0.4372367560863495, -0.1943434774875641, -0.05366489291191...
async def table _ moderator _ application _ exists ( self ) - > bool : mycursor, db = await the _ database ( ) await mycursor. execute ( " show table status like'moderatorapplication'" ) exists = await mycursor. fetchall ( ) await mycursor. close ( ) if len ( exists ) : return true else : return false
[ -1.0510181188583374, -0.21416528522968292, 0.4804757535457611, -0.08499515801668167, 0.15401838719844818, 0.31478050351142883, -0.915667712688446, 0.4436708092689514, -0.5163427591323853, 0.8703348636627197, -0.2883166968822479, -0.1435890793800354, -0.32656458020210266, 1.1166390180587769...
def _ _ init _ _ ( self, * args, * * kwargs ) : self. sim _ time = 0 self. start _ time = 0 self. age = 0
[ 0.06516379117965698, 0.0837416723370552, 0.6739291548728943, 0.4290924072265625, 0.3793265223503113, 0.5930231213569641, -0.45753365755081177, 0.39868324995040894, -0.29675164818763733, 0.30457863211631775, -0.9277029037475586, 0.003345045493915677, -0.2138853818178177, 1.219543218612671, ...
def c _ from _ x ( x, mu, a, l, k ) : c = x / np. pi * mu * * ( 1 - l / 2 ) * a * * ( l / 2 + k - 2 ) cunit _ l = 1 - l + k cunit _ t = l - 2 return c, cunit _ l, cunit _ t
[ 0.9998486042022705, -0.7228708863258362, 0.2973862588405609, -0.2346612811088562, -0.7141357064247131, -0.0623801127076149, -0.17580558359622955, 0.5252739191055298, -0.5210497975349426, 0.46429452300071716, -0.3211289048194885, 0.07620999217033386, 0.5371376872062683, -0.8297229409217834,...
def findcolorpolygons ( self, hsvmin, hsvmax, vertices = 3 ) : framethreshold = cv2. inrange ( self. _ hsv, hsvmin, hsvmax ) # pronadje linije canny = cv2. canny ( framethreshold, self. polygon _ th _ l, self. polygon _ th _ h ) # konture pronadje contours, _ = cv2. findcontours ( canny, cv2. retr _ list, cv2. chain _ ...
[ 0.12665602564811707, -0.6417125463485718, 0.6093321442604065, 0.5625253915786743, -0.3522161841392517, -0.13087475299835205, -0.4039219617843628, -0.5021758675575256, 0.43500640988349915, 0.43998757004737854, -1.1317534446716309, 0.5919671058654785, 0.38881033658981323, 0.21666264533996582...
def from _ service _ account _ info ( cls, info : dict, * args, * * kwargs ) : return smartdevicemanagementserviceclient. from _ service _ account _ info. _ _ func _ _ ( smartdevicemanagementserviceasyncclient, info, * args, * * kwargs ) # type : ignore
[ 0.359862744808197, 0.0012979237362742424, 0.3822692632675171, 0.28110843896865845, -0.6885119080543518, -0.9498373866081238, 0.8529137969017029, -0.402496337890625, 0.35870662331581116, -0.8775761723518372, 0.466857373714447, 0.4326137900352478, 0.6407319903373718, 0.03360526263713837, 0...
async def get ( self ) : if self. config. server. has _ key ('disclaimer') : html = self. get _ disclaimer _ html ( ) data = {'disclaimer': html } self. render ('disclaimer. html ', * * data )
[ 0.4198829233646393, 1.0711342096328735, 0.28714093565940857, 0.23316292464733124, -0.40288227796554565, -0.549809455871582, -1.1141486167907715, 1.7668663263320923, -0.43903663754463196, -0.12032638490200043, 0.725833535194397, 0.8528386354446411, -0.680106520652771, 1.317422866821289, 0...
def precipitation ( ) : session = session ( engine ) # find the most recent date in the data set. most _ recent _ date = session. query ( measurement. date ). order _ by ( measurement. date. desc ( ) ). first ( ). date most _ recent _ date # calculate the date one year from the last date in data set. one _ year _ ago =...
[ -0.2867297828197479, -0.12779223918914795, 0.8975982666015625, -0.6673237681388855, -0.26081547141075134, -0.3646778166294098, -0.9370332956314087, -0.6523752212524414, -0.27079108357429504, 0.6786496639251709, 0.4425041675567627, -0.6748190522193909, -0.22541284561157227, 0.49660602211952...
def getkit ( self, session : session, name : str, version : optional [ union [ str, none ] ] = none, iteration : optional [ union [ str, none ] ] = none ) - > kits : self. getlogger ( ). debug ('retrieving kit [ % s ]'% ( name ) ) try : if version is not none and version is not none and \ iteration is not none : dbkitq...
[ -0.3315010368824005, 0.4312523603439331, 0.2876273989677429, 0.4335304796695709, -0.06967120617628098, -0.5433820486068726, -0.28974637389183044, 0.08974500000476837, -0.21139971911907196, 0.09906718134880066, 1.126873254776001, -0.12042928487062454, -0.046139102429151535, 0.54637241363525...
async def send _ cancel ( self, msg _ to _ cancel : message ) : id _ to _ cancel = msg _ to _ cancel. msg _ id self. logger. info ( " send _ cancel for { } ". format ( id _ to _ cancel ) ) # attempt to find message in q _ in found _ msg = false msgs = [ ] while true : try : msg = self. _ _ q _ in. get _ nowait ( ) exce...
[ 0.23722125589847565, -0.5105916857719421, 0.7338158488273621, -0.14077556133270264, 0.34179019927978516, -0.6391448378562927, -0.02414522133767605, -0.34399184584617615, -0.11916854977607727, 0.3957524597644806, -0.03931235149502754, -0.13541848957538605, -0.47211146354675293, 0.3724509477...
def size ( self ) : header _ seperator = len (': \ r \ n') header _ size = sum ( ( len ( key ) + len ( value ) + header _ seperator ) for key, value in self. _ _ headers _ list ) return ( len ( self. _ _ method ) + len ( self. _ _ payload or'' ) + len ( self. _ _ relative _ url ) + header _ size )
[ -0.08440195024013519, 0.05501062422990799, 0.7373179197311401, -1.1282038688659668, -0.48567771911621094, -0.46728378534317017, -0.6335915923118591, -0.14749248325824738, -0.22492961585521698, -0.0611712671816349, -0.6119440793991089, -0.4767952263355255, -0.6893013119697571, 0.57847678661...
def standalone ( paths ) - > any : interpreter = interpreter ( ) result = none for path in paths : sys. stdout. write ( path + " : " ) result = interpreter. load _ file ( path ) print ( result ) return result
[ 0.1741017997264862, -0.46953803300857544, 0.5565739870071411, 0.318498432636261, -0.3354514539241791, 0.5118617415428162, 0.5473238229751587, 0.7296067476272583, -1.1409765481948853, -0.41728803515434265, -0.11475518345832825, -0.24282851815223694, -0.27562230825424194, 0.06551621109247208...
def getexperiment ( self ) : experimentabspath = os. path. abspath ( os. path. join ( self. basepath, " runtimeexperimentdata " ) ) # scan the directory to check if there is a. zip file. zipped = false zipfilelist = [ fle for fle in glob. glob ( os. path. join ( experimentabspath, " *. zip " ) ) ] if len ( zipfilelist ...
[ 0.15019434690475464, -0.3409667909145355, 0.7640590071678162, -0.5642229318618774, 0.42023301124572754, -0.45348864793777466, 0.3189552426338196, 0.18385817110538483, 0.40162792801856995, -0.11555761098861694, 0.8011404871940613, 0.1054694727063179, -0.7762975096702576, 0.22932302951812744...
def load _ csv ( csv _ path, params = { } ) : csv _ values = [ ] with open ( csv _ path, encoding = " utf - 8 " ) as file : sreader = csv. reader ( file, params ) # reads all lines of file for row in sreader : csv _ values. append ( row ) return csv _ values
[ 0.08527550101280212, -0.36588141322135925, 0.3751028776168823, 0.6487378478050232, 0.2508792579174042, 0.06424882262945175, -0.9481453895568848, 0.9296461343765259, -0.07508291304111481, 0.3558124303817749, 0.03779700770974159, 0.16133202612400055, 0.3791607916355133, 0.6995726227760315, ...
def get _ neighbors ( self, vertex _ id ) : return self. vertices [ vertex _ id ]
[ -0.01223326288163662, -0.19662263989448547, 0.28366807103157043, 0.9549595713615417, -0.07591111212968826, -0.4525696933269501, -0.736918568611145, -0.8156011700630188, 0.3705841600894928, 0.19304925203323364, -0.9952498078346252, 1.4433389902114868, -0.3754083514213562, 0.3574449121952057...
def is _ prime ( value, num _ rounds = 40 ) : # first check the simplest cases. if value < 2 : return false if value = = 2 : return true if 0 = = value % 2 : return false if 3 = = value : return true if 0 = = value % 3 : return false if 5 = = value : return true if 0 = = value % 5 : return false if 7 = = value : return...
[ -0.39998334646224976, 0.024449197575449944, 1.15153169631958, -0.5815664529800415, -0.7634260058403015, 0.12192436307668686, -0.08071664720773697, -0.5070605874061584, 1.6804980039596558, 0.43159613013267517, -0.32794055342674255, -0.5079919099807739, -0.9189818501472473, 0.042178064584732...
def main ( ) : paths = _ parse _ args ( ) for path, overwrite in paths : test ( path, overwrite )
[ 0.10980226844549179, 0.01840222254395485, 0.42347100377082825, 0.8498111963272095, 1.3186389207839966, -0.3994348645210266, 1.4452173709869385, -0.12077568471431732, -0.7136320471763611, -0.6893213391304016, 0.6010074615478516, -0.8030520081520081, -0.7230221033096313, 0.02748231403529644,...
def target _ id ( self, target _ id ) : self. _ target _ id = target _ id
[ -0.003888265695422888, -0.8133791089057922, -0.16143254935741425, 0.15101449191570282, 0.8723007440567017, 0.7464136481285095, -0.13568903505802155, 1.4684593677520752, 0.15678401291370392, 0.23207126557826996, 0.5320407748222351, 1.069151759147644, 0.24827073514461517, 0.6439301371574402,...
def process _ yamls ( folder ) : for item in iglob ( os. path. join ( folder,'*. yaml') ) : data = yaml. load ( open ( item ) ) load _ data ( data )
[ -0.09443510323762894, -0.03258058801293373, 0.642500638961792, -0.5491921901702881, 0.012239417061209679, -0.34330475330352783, 0.3864080011844635, 0.8064833283424377, -0.5725708603858948, 0.6299991607666016, -0.21218881011009216, 0.20550188422203064, 0.48966601490974426, 0.963800787925720...
def modified ( self ) : return self. _ modified
[ -0.7658891081809998, -0.9582602977752686, 0.16104495525360107, -0.27168405055999756, 0.05912680923938751, 0.8033497333526611, 0.053666386753320694, -0.18269230425357819, 0.7374609112739563, -0.8167631030082703, -0.3686097264289856, 0.30474191904067993, 0.02276499755680561, -0.2178820073604...
def name ( self ) : if callable ( self. _ _ name ) : return self. _ _ name ( self ) return self. _ _ name
[ -1.0123975276947021, -0.7573491930961609, 0.7542113065719604, -0.2758079171180725, -0.9635006189346313, -0.5564941167831421, 0.3148779571056366, -0.997828483581543, 0.954143762588501, -0.20334674417972565, -0.19966888427734375, -0.20252487063407898, 0.13830579817295074, 0.7335559725761414,...
def model _ evaluation _ classification ( gcp _ resources : dsl. outputpath ( str ), evaluation _ metrics : dsl. output [ classificationmetrics ], target _ field _ name : str, model : dsl. input [ vertexmodel ] = none, location : str ='us - central1 ', predictions _ format : str ='jsonl ', predictions _ gcs _ source : ...
[ 0.20661881566047668, 0.3350827693939209, 0.8827501535415649, -0.20698268711566925, -0.1219993457198143, -0.0751553401350975, 0.1884581446647644, -0.041527483612298965, -0.7981709837913513, 1.0191619396209717, 0.05454358085989952, 0.6871036291122437, 0.9887306690216064, -0.3600877821445465,...
def checkregions ( simp _ dict, weight _ dict ) : if len ( simp _ dict )! = len ( weight _ dict ) or \ list ( simp _ dict. keys ( ) )! = list ( weight _ dict. keys ( ) ) : msg. printmsg ('error : regions in these two files are not identical') msg. printmsg ('simpoint regions :'+ str ( list ( simp _ dict. keys ( ) ) ) )...
[ 0.8585025668144226, -0.49459052085876465, 0.6499357223510742, -0.7025957107543945, 0.8465730547904968, 1.042267084121704, -0.0755421370267868, 0.3038504421710968, -0.6266820430755615, 0.39860957860946655, 0.5233562588691711, 0.45019111037254333, -0.14626754820346832, 0.49620047211647034, ...
def contactupdated ( self, contactview ) : raise notimplementederror
[ -0.05173470824956894, -1.7103040218353271, 0.5181404948234558, 0.7981036901473999, -1.3334338665008545, 0.1648164987564087, 0.21307745575904846, -0.6537877917289734, 0.9957854151725769, -0.2035675048828125, 0.10106323659420013, -0.5590041875839233, 0.6545301675796509, -0.1436663568019867, ...
def adjust _ potential _ energy ( self, atoms ) : positions = atoms. positions if self. _ type = ='plane': a, b, c, d = self. plane x, y, z = positions [ self. index ] d = ( ( a * x + b * y + c * z + d ) / np. sqrt ( a * * 2 + b * * 2 + c * * 2 ) ) if d > 0 : return 0. 5 * self. spring * d * * 2 else : return 0. if sel...
[ 0.680395245552063, -0.9009637832641602, 0.7632049918174744, 0.16834978759288788, -0.8777072429656982, 0.6143885254859924, 0.0002862243272829801, 0.10611153393983841, -0.19085830450057983, -0.28219860792160034, 0.596123456954956, -0.1272897720336914, -1.2842501401901245, -0.1810345947742462...
def _ createinvitationpage ( self ) : self. _ _ handleholidays ( ) page = directframe ( self. frame ) page. setname ( " partyplannerinvitationpage " ) self. invitationtitlelabel = directlabel ( parent = page, relief = none, text = ttlocalizer. partyplannerconfirmtitle, textmaychange = true, pos = self. gui. find ( " * ...
[ -0.11052027344703674, 0.26590895652770996, 0.7524248957633972, 0.06402802467346191, -0.2235284447669983, 0.5643165707588196, 0.7118405699729919, -0.00020532701455522329, -0.5632994174957275, 0.3846243917942047, -0.26389560103416443, -0.6307631731033325, -0.19816990196704865, 0.724361300468...
def password ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " password " )
[ 0.581977903842926, -0.09645181894302368, 0.544937014579773, 0.7602671980857849, 1.3086440563201904, 0.977484941482544, 0.5239421725273132, 0.32378625869750977, 0.9824094176292419, -0.10972555726766586, 0.33014169335365295, 0.7186198830604553, 0.06230410560965538, -0.8733200430870056, -0....
def wstd ( vals, weights = none ) : mean = wmean ( vals, weights ) vals = np. array ( vals ). astype ( float ) weights = np. array ( weights ). astype ( float ) weights / = weights. sum ( ) top = ( weights * ( ( vals - mean ) * * 2 ) ). sum ( ) bot = weights. sum ( ) return math. sqrt ( top / bot )
[ 0.3135180175304413, 0.39718902111053467, 0.5538380146026611, 0.012262547388672829, -0.9146881699562073, 0.030054287984967232, 0.22064216434955597, -0.3843318223953247, 0.2529599666595459, -0.06380908191204071, 0.7327178716659546, 0.32480841875076294, -0.37402892112731934, 0.662031233310699...
def parse _ cmd _ line ( iargv ) : # - - - default inputs - - - fits _ input0 = '. / *. fits'# prep the line for input argc = len ( iargv ) # parse command line input # - using argparse cli = argparse. argumentparser ( prog ='img _ stats. py ', description = _ _ intro _ _, epilog ='version :'+ _ _ date _ _ ) cli. add _...
[ 0.4572819471359253, -0.49696534872055054, 0.9994907379150391, -0.2207440882921219, 0.36867204308509827, -0.22668631374835968, 0.7692632675170898, -0.8303858041763306, -0.374175488948822, -0.5060256123542786, 0.27915188670158386, 0.09337523579597473, 0.523029625415802, 0.5788119435310364, ...
def _ mgui _ set _ row _ headers ( self, headers : sequence ) - > none : self. _ qwidget. setverticalheaderlabels ( tuple ( map ( str, headers ) ) )
[ -1.0047284364700317, 0.01482553593814373, 0.2973729074001312, -0.3342662751674652, 0.2893831729888916, 0.003550931578502059, -1.0426594018936157, -1.1797678470611572, -0.11046743392944336, 0.8728446364402771, -0.46701154112815857, -0.5117977857589722, -0.32282522320747375, -0.2984124422073...
def authtwitter ( config ) : auth = tweepy. oauthhandler ( config. get ('twitter ','api _ key'), config. get ('twitter ','api _ secret _ key') ) auth. set _ access _ token ( config. get ('twitter ','access _ token'), config. get ('twitter ','access _ token _ secret') ) return auth
[ 0.20618419349193573, -0.8550893664360046, 0.32785478234291077, -0.371207594871521, -0.17050039768218994, -0.04006620869040489, -0.3856562674045563, 0.5288623571395874, -0.26078563928604126, 0.41770675778388977, -0.33637651801109314, 0.02279176190495491, 0.2560289204120636, 0.17827007174491...
def getcapabilities ( ) : andor _ solis. getcapabilities. restype = ctypes. c _ uint caps = andorcapabilities ( ) result = andor _ solis. getcapabilities ( ctypes. byref ( caps ) ) check _ status ( result ) return caps
[ -0.48208725452423096, -1.0752463340759277, 0.3739991784095764, 1.2303622961044312, -0.23760533332824707, -1.0094897747039795, 0.055723559111356735, -0.15833137929439545, 1.1921864748001099, -0.37634018063545227, -0.18530884385108948, -0.39450448751449585, 0.17562629282474518, 0.11986860632...
def _ _ init _ _ ( self ) : self. _ setup _ gcloud ( ) self. client = client. corev1api ( ) self. api _ client = client. corev1api ( client. apiclient ( ) ) self. app _ api _ client = client. appsv1api ( client. apiclient ( ) ) self. name = " user " self. namespace = " default " self. app = " code - server " # name of ...
[ 0.04794388264417648, 0.20631778240203857, 0.5916736721992493, 0.9618602395057678, 0.2857171595096588, 0.5132653713226318, -0.21937960386276245, -1.0663899183273315, -0.1686520129442215, 0.18318532407283783, -0.6699469685554504, 0.33519479632377625, -0.14562609791755676, 0.7093059420585632,...
def status ( self, job _ id ) : response = self. _ client. get ('container - security / api / v1 / jobs / status ', params = {'job _ id': job _ id } ) return sctestjob. from _ json ( response. text )
[ 0.766276478767395, -0.2849995493888855, 0.08318638801574707, 0.46377143263816833, 0.1360412836074829, 0.013989031314849854, -1.17290198802948, 0.210839182138443, 0.8530595302581787, -0.18165625631809235, -0.4579944610595703, 0.8331083059310913, -0.8266172409057617, 0.11368364095687866, -...
def getweights ( self ) : return self. _ traj. getweights ( )
[ 0.03217516094446182, 0.4212714731693268, 0.47134894132614136, 0.39860236644744873, 0.391338586807251, 0.0014184176689013839, 0.12902431190013885, -0.5997815728187561, -0.8241087198257446, -0.24352188408374786, -0.297230064868927, -0.46479278802871704, -0.3978608250617981, 0.894126534461975...
def test _ streamstartedwrongnamespace ( self ) : streamerrors = [ ] xs = self. xmlstream xs. sendstreamerror = streamerrors. append xs. makeconnection ( self ) xs. datareceived ( " < stream : stream xmlns ='jabber : client'" " xmlns : stream ='http : / / etherx. jabber. org / streams'" " to ='component. example. org'>...
[ 0.45435017347335815, 0.01605345495045185, 0.38446590304374695, -0.27455782890319824, 0.351142555475235, 0.12794171273708344, -0.1982400119304657, -0.3292568027973175, 0.8213255405426025, -0.5745977759361267, -0.6785436868667603, 0.9886730313301086, 0.016973664984107018, 0.8355250954627991,...
def _ _ repr _ _ ( self ) : return " < singlylinkedlistnode ( % r ) > " % self. data
[ 0.2521267831325531, -0.7107308506965637, 0.28407564759254456, -1.2909234762191772, -0.6821174621582031, 0.7715293169021606, -0.3022073209285736, 0.8552330732345581, 1.6213634014129639, -0.21379145979881287, -0.3981178104877472, 0.5724118947982788, 0.028661781921982765, -0.2265247404575348,...
def _ _ getitem _ _ ( self, key, with _ age = false ) : if time. time ( ) > self. timer : self. clear ( ) return false try : with self. lock : temp = ordereddict. _ _ getitem _ _ ( self, key ) temp _ seconds = temp [ 1 ] - time. time ( ) if temp _ seconds > 0 : return temp [ 0 ], temp _ seconds else : del self [ key ] ...
[ -0.8281145691871643, 0.309531033039093, 0.949983537197113, -0.029831279069185257, -1.194553017616272, -0.05224251374602318, -0.5757438540458679, -0.5703908801078796, -0.39462193846702576, 1.4818177223205566, -0.25362005829811096, 0.023633984848856926, -0.37532109022140503, 0.13118542730808...
def delete _ from _ db ( self ) : db. session. remove ( self ) db. session. commit ( )
[ 0.23540766537189484, -0.133611261844635, 0.4081819951534271, 0.2753066122531891, 0.3999935984611511, 0.2531529366970062, -0.14026662707328796, 0.5025058388710022, 0.080598846077919, 0.5008026361465454, -0.20213167369365692, -0.5031093955039978, -0.37177202105522156, 0.007661661133170128, ...
def _ update _ dtr _ state ( self ) : pass
[ -1.2619699239730835, -0.673001229763031, 0.2902904152870178, -1.064060926437378, -0.7455249428749084, 0.06813990324735641, 0.29785239696502686, -0.06826991587877274, 0.08413556963205338, 0.4771190881729126, -0.04665670916438103, -0.38164016604423523, 0.1962181031703949, -0.1104880496859550...
def get _ ranked _ local _ values ( self, top _ k = none ) : if self. is _ local _ sparse : return _ sparse _ order _ imp ( self. _ local _ importance _ values, values _ type = _ values, top _ k = top _ k ) if len ( self. _ local _ importance _ values. shape ) = = 1 : sorted _ values = _ sort _ values ( self. _ local _...
[ 0.025520553812384605, -0.3053940534591675, 0.8041815161705017, 0.4967331886291504, 0.2841986119747162, 0.0775177851319313, 0.24609380960464478, 0.5972694158554077, -0.24376371502876282, 0.06781799346208572, -0.2604110538959503, 1.7688928842544556, 0.3609012961387634, 0.4592041075229645, ...
def gen _ input ( self, var _ dict ) : for i in var _ dict : if type ( var _ dict [ i ] ) is str : if i = = var _ dict [ i ] : result = yield ( i, var _ dict [ i ] ) var _ dict [ i ] = result else : nr = yield ( i, var _ dict [ i ] ) if nr = = - 1 : var _ dict [ i ] ='' else : if type ( var _ dict [ i ] [ nr ] ) is dic...
[ -1.072808861732483, 0.5679279565811157, 0.6205927729606628, -0.6169615387916565, -0.12474554032087326, 0.08638913929462433, 0.6684343814849854, -0.3182413876056671, -0.07380222529172897, 0.13108746707439423, 0.035852525383234024, -0.40953704714775085, -0.3006911277770996, 0.677086234092712...
def wrap ( text, length ) : words = text. split ( ) lines = [ ] line ='' for w in words : if len ( w ) + len ( line ) > length : lines. append ( line ) line ='' line = line + w +'' if w is words [ - 1 ] : lines. append ( line ) return'\ n '. join ( lines )
[ 0.6417316794395447, 0.1369798332452774, 0.7968906164169312, -0.5079639554023743, -1.1655455827713013, 0.10536496341228485, -1.1014190912246704, -0.22993114590644836, 0.685206413269043, 0.5345543622970581, 0.829895555973053, 0.7430956363677979, -0.523917019367218, 0.06184150278568268, -0....
def applyinpandas ( self, func : " pandascogroupedmapfunction ", schema : union [ structtype, str ] ) - > dataframe : from pyspark. sql. pandas. functions import pandas _ udf # the usage of the pandas _ udf is internal so type checking is disabled. udf = pandas _ udf ( func, returntype = schema, functiontype = pythonev...
[ -1.283409833908081, 0.6690859794616699, 0.6297294497489929, 0.17634104192256927, -0.5640329718589783, 0.13269594311714172, 0.8140158653259277, -0.05120943859219551, -0.2425636202096939, -0.7675090432167053, 0.6961718201637268, 0.9965022206306458, 0.05202660709619522, -0.5154630541801453, ...
def set _ filepath ( self, path ) : if not self. path : self. path = path
[ 0.4707595705986023, -0.6699767708778381, 0.07550685852766037, -0.3152454197406769, 0.8116716742515564, 0.20829707384109497, 0.7216756343841553, -0.06061291694641113, -0.41251155734062195, -0.4335438907146454, -0.11031486839056015, -0.4856908917427063, -0.4218563139438629, 0.825215518474578...
def test _ saved _ owner _ email ( self ) : report _ airflow _ variable = variable. get ( " rb _ status _ " + self. report _ form _ sample. report _ title. data, deserialize _ json = true, ) self. assertequal ( self. report _ form _ sample. owner _ email. data, report _ airflow _ variable [ " owner _ email " ], )
[ 0.6642228364944458, -0.16874869167804718, 0.3336559236049652, 0.44821760058403015, 0.9135960936546326, -0.23503825068473816, 0.3444025218486786, -0.2914119362831116, -0.057641346007585526, -0.9294953942298889, -0.6998408436775208, 0.9038708806037903, -0.3433511555194855, -1.091671705245971...