text
stringlengths
25
2.19k
embedding
listlengths
768
768
def empty ( self ) - > bool : return not self. children and not self. properties
[ -0.8704800605773926, -0.7187881469726562, 0.5858272314071655, -0.474343478679657, 0.4209493100643158, 1.1030975580215454, -0.6523633003234863, 0.08191828429698944, -0.8873744010925293, -0.3629060983657837, -0.27206549048423767, -0.001686009345576167, -0.18168796598911285, -0.02314282394945...
def _ get _ nodes ( rdf _ graph : rdflib. graph ) - > dict [ str, dict [ str, dict [ str, str ] ] ] : return query _ result _ to _ dict ( rdf _ graph. query ( get _ all _ data _ nodes _ sparql, initns = prefixes ), ids _ argument = true, )
[ -0.4131162762641907, 0.4827665686607361, 0.24488097429275513, -1.231316328048706, -0.21408818662166595, -0.49491527676582336, -1.2240467071533203, 0.6065041422843933, -0.4803023636341095, 0.37064695358276367, -0.8847237825393677, 0.6545535326004028, 0.3187105357646942, -0.3478162884712219,...
def get _ task _ data _ epoch _ duration ( self, major _ key, minor _ key ) : return [ x [ 1 ] - x [ 0 ] for x in self. task _ data [ major _ key ] [ minor _ key ] ['timestamps'] ]
[ -0.8753840327262878, 0.07184780389070511, 0.626887321472168, 0.05489768832921982, -0.15882059931755066, 0.19441314041614532, -0.315470814704895, 0.7686693668365479, -1.1749730110168457, 1.6813147068023682, -1.1451219320297241, 0.44114160537719727, 1.0963263511657715, 0.1777428537607193, ...
def generate _ nav _ button _ click _ template ( specifics : dict, placeholders : dict, * * kwargs ) - > dict : template = generate _ generic _ template ( specifics = specifics, placeholders = placeholders ) template ['action - type'] ='click'return template
[ -0.7770483493804932, 0.08686107397079468, 0.19415515661239624, -0.5049867630004883, 0.08625521510839462, 0.2095007449388504, -0.5389198660850525, 0.6482920050621033, 0.04327952861785889, 1.2084754705429077, -0.5045591592788696, -0.14915987849235535, 0.4801153540611267, -0.30083149671554565...
def getddgiocfrequency ( ) : andor _ solis. getddgiocfrequency. restype = ctypes. c _ uint frequency = ctypes. c _ double ( ) result = andor _ solis. getddgiocfrequency ( ctypes. byref ( frequency ) ) check _ status ( result ) return int ( frequency. value )
[ -0.8855207562446594, 1.4726561307907104, 0.48916658759117126, 0.12752816081047058, -0.32149723172187805, -1.0066882371902466, 0.7751386165618896, -0.6472440361976624, -0.2566893994808197, -0.6487138867378235, 0.28049758076667786, -0.08277474343776703, 0.05562460049986839, 0.181424587965011...
def get _ tracks ( self ) : return self. tracks. values ( )
[ 0.17737741768360138, 0.17343753576278687, 0.30909913778305054, 0.5024269223213196, 0.6316730976104736, 0.9711493849754333, -0.9751739501953125, -0.3274015188217163, -1.4489085674285889, -0.9856617450714111, 0.3527138829231262, 0.46405214071273804, -0.40945470333099365, 0.553483784198761, ...
def test _ create _ broadcast ( self, one, two, broadcast _ mock, * _ ) : models. comment. objects. create ( content = " hi ", user = self. local _ user, book = self. book ) self. assertequal ( broadcast _ mock. call _ count, 2 ) pure _ call = broadcast _ mock. call _ args _ list [ 0 ] bw _ call = broadcast _ mock. cal...
[ -0.1544036865234375, -0.09222722053527832, 0.7953237891197205, 0.33472487330436707, 1.6154794692993164, 0.6275932788848877, 0.55548495054245, -0.25391170382499695, -0.3346126675605774, 0.04991355910897255, -0.5386861562728882, 0.13537395000457764, -0.9565935730934143, 0.606686532497406, ...
def install _ build _ order ( self ) : # todo : rename to serialize ( )? install _ order = self. install _ order ( ) result = [ [ n. serialize ( ) for n in level ] for level in install _ order ] return result
[ -0.9284923672676086, -1.219833254814148, 0.519403338432312, 1.0728195905685425, 0.5739782452583313, -0.37001892924308777, -0.4383721649646759, 0.12344103306531906, -0.08779340237379074, 0.817734956741333, -0.9396093487739563, -0.11286558210849762, -0.6705002188682556, 0.574155867099762, ...
def displaymessage ( parent, message ) : messagedialog = wx. messagedialog ( parent, message, " info ", wx. ok | wx. centre | wx. icon _ information ) messagedialog. center ( wx. both ) messagedialog. showmodal ( )
[ 1.0049943923950195, -0.3157786428928375, 0.6984405517578125, -0.6615649461746216, -0.6415833234786987, 0.7210443019866943, 0.12606200575828552, 0.06433933228254318, -0.2053745537996292, -0.2181236892938614, 0.5420270562171936, 0.4406850337982178, -0.2093767374753952, 0.8463037014007568, ...
def _ _ init _ _ ( self, slide, tile _ size = 256, overlap = 0, limit _ bounds = true, resolution = 0. 5, ) : self. slide = slide self. tile _ size = tile _ size self. overlap = overlap self. limit _ bounds = limit _ bounds self. resolution = resolution self. _ properties = dict ( self. slide. properties ) self. _ prep...
[ 0.34777888655662537, -0.3452374339103699, 0.5418905019760132, 0.5115853548049927, -0.6361828446388245, -0.12674486637115479, -0.1064835861325264, 0.2528604567050934, 0.43638601899147034, -0.6503362059593201, -0.7183977365493774, -0.3624354600906372, -0.13674689829349518, 0.4673115313053131...
def get _ pedal _ type _ from _ value ( value, evaluate _ name = none ) - > type : if isinstance ( value, bool ) : return literalbool ( value ) if isinstance ( value, int ) : return literalint ( value ) if isinstance ( value, float ) : return literalfloat ( value ) if isinstance ( value, complex ) : return numtype ( ) ...
[ 0.33137160539627075, 0.1624714583158493, 0.882826030254364, -0.03601352125406265, -0.6449983716011047, -0.5502802729606628, -0.2023644894361496, -0.5695549249649048, -0.18239560723304749, -0.31245535612106323, 0.39318403601646423, -0.33221638202667236, -0.46008002758026123, 0.8567733168601...
def default _ walk ( self, new _ default _ walk ) : self. _ default _ walk = new _ default _ walk
[ -0.9047022461891174, -0.24571506679058075, 0.03686831519007683, 0.7217087149620056, 1.1616804599761963, 1.0628650188446045, 0.35031062364578247, -0.4347907304763794, -0.6840311288833618, -1.246269702911377, -1.243863582611084, 0.05563949793577194, -0.7043379545211792, 0.7088199257850647, ...
def fbconnect ( ) : # verify the page's state token to be sure it was generated by this app server if request. args. get ('state')! = login _ session ['state'] : response = make _ response ( json. dumps ('invalid state parameter'), 401 ) response. headers ['content - type'] ='application / json'return response # obtain...
[ -0.20619042217731476, -0.35072267055511475, 0.9462148547172546, -0.10562684386968613, 0.055482570081949234, -0.9920455813407898, -0.456233948469162, -0.6774757504463196, 0.5101173520088196, 0.45345163345336914, -0.33611685037612915, 0.2793244421482086, -0.037704676389694214, -0.52908331155...
def tag _ indefinite ( node, context ) : if len ( node. children ) = = 0 : return phrase = node. process _ children ( context ) if phrase [ 0 ]. lower ( ) in " aeiou " : return " an " + phrase else : return " a " + phrase
[ 0.28933149576187134, -0.17158351838588715, 0.6724473237991333, -0.7806140184402466, 0.5708534121513367, 0.020517634227871895, -0.5489093661308289, 0.1785700023174286, 0.09112294763326645, 0.5637946724891663, 0.9178860783576965, -0.2734665274620056, -0.15783217549324036, 0.20335333049297333...
def destroy _ snapshot ( self ) : try : check _ call ( [ " zfs ", " destroy ", " - r ", " { } / iocage / releases / { } @ { } ". format ( self. pool, self. release, self. uuid ) ], stdout = pipe, stderr = pipe ) except calledprocesserror : pass try : # old basejails. check _ call ( [ " zfs ", " destroy ", " - r ", " { ...
[ -1.247929334640503, -0.7249255776405334, 0.5185772180557251, -0.268602192401886, 0.017462609335780144, -1.1311322450637817, 0.24473156034946442, 0.2068854719400406, -0.22653041779994965, 0.032732266932725906, 0.6900571584701538, -0.2452256679534912, -0.38629448413848877, 0.0829201117157936...
def get _ upload _ params ( request ) : file _ name = request. post ['name'] file _ type = request. post ['type'] file _ size = int ( request. post ['size'] ) dest = get _ s3direct _ destinations ( ). get ( request. post. get ('dest ', none ), none ) if not dest : resp = json. dumps ( {'error':'file destination does no...
[ -0.785021960735321, -0.1642897129058838, 1.1012989282608032, -0.010995142161846161, -0.4518723487854004, -0.05181732028722763, -0.3816155791282654, -0.840046226978302, -0.871500551700592, 1.05362868309021, -0.3529355525970459, 0.3542877733707428, 0.6857698559761047, -0.08266402781009674, ...
def commission ( self ) : return self. buy _ commission + self. sell _ commission
[ -0.1487516164779663, -0.5495564937591553, 0.5280328989028931, -0.0065783229656517506, 1.0266538858413696, -0.3885619342327118, 0.4860072731971741, 0.4363528788089752, 0.540556788444519, 1.247357726097107, 0.29563283920288086, -0.054475732147693634, -0.0691419169306755, -0.4603269398212433,...
def test _ check _ quantity _ type ( ) : test _ obj = uvtest ( ) test _ obj. floatarr = ( test _ obj. floatarr + 1j * test _ obj. floatarr ) * units. m with uvtest. check _ warnings ( userwarning, " parameter _ floatarr is a quantity object, but the expected type " " is a precision identifier : ( < class'float'>, < cla...
[ 0.5308476090431213, 0.06050187721848488, 0.7391061782836914, 0.8787540197372437, 0.31942272186279297, 0.39329826831817627, 0.9695006608963013, -0.6081147193908691, 0.8139587044715881, -0.7087765336036682, 0.6012800335884094, -0.035101212561130524, -0.259794682264328, 0.6773050427436829, ...
def dump ( ) : print ( " attempting to dump notification email address for all registered device... " ) reply = send _ request ( json. dumps ( {'type':'dump'} ) ) for row in reply : print ( row ) return
[ -1.2530502080917358, 0.7447041273117065, 0.3913037180900574, -0.11117549985647202, 0.5088633894920349, -0.20788869261741638, 0.02034522034227848, -0.3743070065975189, -0.19029836356639862, 0.31149664521217346, -0.18240560591220856, 1.7102216482162476, -0.023195888847112656, 0.4234043061733...
def _ _ setstate _ _ ( self, state ) : # restore the'normal'items normals = state ['normals'] self. _ _ dict _ _. update ( normals ) # restore the queues queues = state ['queues'] for name, queue _ state in queues. items ( ) : # create the queue object, set its state and update this object qqq = proc _ q. _ procqueue (...
[ -0.5959488153457642, -0.7738820314407349, 0.6116097569465637, -0.9472111463546753, -0.6209622621536255, -0.22708436846733093, -0.4170266091823578, -0.06294137984514236, 0.6416479349136353, -0.5418393015861511, -0.9838827252388, 0.20954318344593048, 0.3085261285305023, 0.2777137756347656, ...
def toggles _ enabled _ for _ request ( request ) : toggles = set ( ) if hasattr ( request,'domain') : toggles = toggles | toggles _ enabled _ for _ domain ( request. domain ) if hasattr ( request,'user') : toggles = toggles | toggles _ enabled _ for _ user ( request. user. username ) toggles = toggles | toggles _ enab...
[ -0.9082745909690857, 0.08863594383001328, 0.5279766917228699, 0.7107291221618652, 0.03709341213107109, 0.3529711365699768, -0.1493278592824936, -0.10110573470592499, 0.2101512998342514, -0.3761971890926361, 0.38894471526145935, 0.5872021317481995, -0.09010836482048035, 1.1425018310546875, ...
def _ _ init _ _ ( self, * clusters ) : super ( clustergroup, self ). _ _ init _ _ ( * clusters ) self. atomics = defaultdict ( set )
[ -0.5672441124916077, 1.437631368637085, 0.29484227299690247, 0.8346717357635498, 0.09567057341337204, 0.18279635906219482, -0.15940771996974945, -0.549927830696106, -0.6861672401428223, 0.23011009395122528, -0.12014969438314438, -0.3636478781700134, -0.18565420806407928, 0.5443763732910156...
def cleanup ( ) : cat = csvcatalog. csvcatalog ( ) cat. drop _ table ( " people " ) cat. drop _ table ( " batting " ) cat. drop _ table ( " teams " )
[ 0.40276503562927246, 0.3754541873931885, 0.18963617086410522, 0.044693902134895325, -0.44065698981285095, 0.6716086268424988, -0.10636506229639053, 0.29835614562034607, -0.5006077885627747, -0.5679311156272888, -0.3544321060180664, 0.32936856150627136, 1.12924325466156, 0.4659186899662018,...
def test _ create _ multiple _ alumno _ curso _ instituciones _ distintas ( self ) : self. client. force _ authenticate ( user = self. user _ admin ) alumno _ 1 = alumno. objects. get ( apellido = " 1 " ). pk alumno _ 2 = alumno. objects. get ( apellido = " 5 " ). pk curso = curso. objects. get ( nombre = " curso2 " )....
[ -0.2732428014278412, -0.14601658284664154, 0.6804972887039185, -0.041791778057813644, 1.0135326385498047, 1.352796196937561, 0.0537097305059433, -0.15256232023239136, -0.3954016864299774, 0.16032329201698303, -1.3223055601119995, 0.3210141360759735, 0.8784242868423462, 0.2008979618549347, ...
def problem156 _ inner ( iparm ) : nrep = numbdata ( iparm ) minv = 0 maxv = nrep. upper nrange = [ ] def do _ search ( ) : " " " search for a number that matches it's position " " " nadded = false for i in range ( 0, len ( nrep. checked ) ) : if nrange [ 0 ] < = nrep. checked [ i ] [ 0 ] : if nrange [ 1 ] > = nrep. ch...
[ -0.5175760984420776, 0.006690480280667543, 0.9617366790771484, -0.027346666902303696, -0.5125322937965393, -0.18317380547523499, 0.826913595199585, -0.4554302990436554, 0.01503391470760107, -0.020855732262134552, -0.19538038969039917, -0.34458842873573303, -1.2737362384796143, -0.048132397...
def disconnect ( signal, slot = none ) : if signal is not none : try : signal. disconnect ( slot ) except typeerror : # prevent exception when there's no connection pass
[ 0.12199665606021881, -0.12652674317359924, 0.28222426772117615, 0.5879491567611694, -0.7003632187843323, -0.10744286328554153, 0.22957393527030945, -0.18505553901195526, -0.14710749685764313, 0.0032323377672582865, 0.0572248175740242, -0.30008551478385925, -0.2477724850177765, 0.6751881241...
def generate _ value _ feature ( self ) : args = self. args self. value _ feature = np. zeros ( [ len ( self. embedding _ words ), args. feature _ size ] ) for i, slot in enumerate ( self. slots ) : values = self. slot _ value [ slot ] bias = int ( args. feature _ size / len ( values ) ) start = 0 for v in values : ind...
[ -0.11023152619600296, 0.12287376821041107, 0.4099377989768982, -0.07858692854642868, 0.8160865902900696, -0.07148765027523041, 0.8166413903236389, 1.0804357528686523, -0.6228975653648376, 0.6960944533348083, -0.7380911707878113, 1.0492348670959473, -0.29643693566322327, 0.8458424210548401,...
def clear ( self ) : self. params = set ( )
[ 0.05875835940241814, 0.03293251246213913, 0.23912692070007324, -0.29894766211509705, 0.6505290865898132, 0.6685946583747864, -0.27029046416282654, -0.6977909207344055, -1.0073477029800415, 0.6286407113075256, 0.06782417744398117, 1.5847100019454956, 0.22858117520809174, 0.9949337840080261,...
def blur _ image ( self, im, n, ny = none ) : from scipy. ndimage import gaussian _ filter sx = n if ny! = none : sy = ny else : sy = n improc = gaussian _ filter ( im, [ sy, sx ] ) return improc
[ -0.29593777656555176, 0.7129235863685608, 0.3175395429134369, 0.7128409743309021, -0.3813072741031647, -0.07458764314651489, -0.3981235921382904, -0.892532229423523, 1.2398531436920166, 0.08621970564126968, 0.4650851786136627, 0.820986807346344, 0.5026434063911438, 0.6189080476760864, 0....
def basc _ init _ fields ( self, log, field _ names ) : # pylint : disable = no - self - use for field in field _ names : if field = = barrele _ constant. barrele _ field _ host : continue if field = = barrele _ constant. barrele _ field _ up : self. basc _ is _ up ( log ) elif field = = barrele _ constant. barrele _ f...
[ -0.11378162354230881, 0.19685298204421997, 0.4665752351284027, -0.10476630926132202, 0.6487311124801636, 0.2876861095428467, 0.44864368438720703, 0.18625706434249878, -1.2721598148345947, 0.24537105858325958, -0.6640806794166565, 0.17547398805618286, 0.17219527065753937, -0.066927134990692...
def evaluate ( test _ texts, test _ labels, model, train _ label _ values ) : nlp = spacy. load ( model ) print ('\ nmodel loading complete') docs = [ nlp. tokenizer ( text ) for text in test _ texts ] textcat = nlp. get _ pipe ('textcat') true _ labels = [ ] pred _ labels = [ ] for j, doc in enumerate ( textcat. pipe ...
[ 0.457763135433197, -0.2028220146894455, 0.5708643198013306, -0.36771437525749207, -0.6285613775253296, 0.24990589916706085, 0.6269301176071167, 0.2776266634464264, -0.49038568139076233, 0.1682763248682022, 0.7302709221839905, 0.3463256359100342, 0.009311607107520103, 0.08396763354539871, ...
def activate ( self ) : # use exit _ key _ handler of current class appuifw. app. exit _ key _ handler = self. exit _ key _ handler # create tab name list from tabs sequence self. tab _ menu = [ item [ 0 ] for item in self. tabs ] # put all views to another sequence self. views = [ item [ 1 ] for item in self. tabs ] a...
[ -0.7846254706382751, -0.8900880217552185, 0.41781601309776306, 0.9639583230018616, 0.3362075686454773, 0.3503105342388153, 0.47673556208610535, 0.5067448019981384, -0.6550772190093994, -0.7258614301681519, -0.2573593258857727, -0.11353842169046402, 0.833855390548706, 0.2343577742576599, ...
def weight _ for _ vote ( self, mode, user ) : if mode = = contentapprovalvote. accept : return reputation. objects. reputation _ for _ user ( user ). reputation elif mode = = contentapprovalvote. reject : return - 1 * reputation. objects. reputation _ for _ user ( user ). reputation elif mode = = contentapprovalvote. ...
[ -0.30050522089004517, -0.0015182746574282646, 0.5870087742805481, 0.010373416356742382, -0.43772584199905396, 1.0730470418930054, -0.6246997117996216, 0.19371354579925537, -0.7700039148330688, 1.0269603729248047, 0.6515184044837952, 0.34250473976135254, -0.7198885679244995, 0.4640432298183...
def find _ responses ( self, statement ) : responses = [ ] # o ( n ) algorithm must be improved with a pattern match search index or semantic search index like annoy for patt, template in self. response _ mapping : match = none try : match = patt. match ( statement ) except attributeerror : if self. ignore _ case : pat...
[ -0.13340944051742554, -0.9516215324401855, 0.7414949536323547, -0.5343782305717468, -0.41897428035736084, -0.7443270087242126, 0.13725458085536957, -0.49003130197525024, 1.284043312072754, -0.09670637547969818, 0.3631272315979004, -0.27406957745552063, -0.05187686160206795, -0.225062504410...
def ldrmodules ( self ) : log. debug ( " executing volatility ldrmodules plugin on { 0 } ". format ( self. memdump ) ) self. _ _ config ( ) results = [ ] command = self. plugins [ " ldrmodules " ] ( self. config ) for task in command. calculate ( ) : # build a dictionary for all three peb lists where the # keys are bas...
[ 0.12422669678926468, -0.7513838410377502, 0.7072596549987793, -1.0322514772415161, 0.5429060459136963, -0.5673390030860901, -0.17666174471378326, -0.4196115732192993, 0.6134241223335266, 0.5281332731246948, -0.5052826404571533, 0.23339015245437622, 0.1495910882949829, 0.5950266122817993, ...
def _ _ init _ _ ( self, x : int, y : int, z : int ) : super ( ). _ _ init _ _ ( x, y, z )
[ 0.5244194269180298, -0.11510439217090607, 0.5053824186325073, 0.5975387692451477, 0.19780845940113068, 0.5734012126922607, -0.11279277503490448, 0.06528310477733612, -0.01816251315176487, -0.43193140625953674, -0.9238793253898621, -0.293470174074173, -0.10004599392414093, -0.39517173171043...
def vox _ chunk ( id : bytes, content : bytes, children : bytes ) - > bytes : assert ( len ( id ) = = 4 ) w = bytearray ( ) w. extend ( id ) w. extend ( struct. pack ('< ii ', len ( content ), len ( children ) ) ) w. extend ( content ) w. extend ( children ) return bytes ( w )
[ 0.39014679193496704, 0.07638523727655411, 0.4292549788951874, -0.33029934763908386, -0.2790074944496155, -0.2799094319343567, -0.3435646891593933, -0.9937796592712402, -0.5153862833976746, -0.4405994117259979, -0.3086349070072174, -0.1257247030735016, -1.0828660726547241, -0.54457879066467...
def target _ design _ id ( self, target _ design _ id ) : self. _ target _ design _ id = target _ design _ id
[ -0.2389991730451584, -0.2599843740463257, -0.4609641432762146, 0.40252742171287537, 0.11406504362821579, 0.985453188419342, 0.11740953475236893, 0.5258806943893433, 0.6883221864700317, -0.2856455445289612, 0.4029899537563324, 1.246771216392517, 1.4599708318710327, 0.2413819283246994, -0....
def build ( src _ dir, build _ dir, common _ construct _ vars, bt _ cv _ pairs ) : build _ env = buildenv ( src _ dir = src _ dir, build _ dir = build _ dir, common _ construct _ vars = common _ construct _ vars, bt _ cv _ pairs = bt _ cv _ pairs ) if not getoption ('help') : if getoption ('clean') : print misc. text _...
[ -0.9399996399879456, -0.4232747256755829, 0.5135158896446228, 1.0261921882629395, 0.7405132055282593, 0.7364765405654907, 1.0248202085494995, 0.21215149760246277, -0.5127389430999756, -0.5072851181030273, 0.1965484768152237, 0.9164434671401978, -0.038169749081134796, 0.8707371950149536, ...
def modified _ pe _ header ( self ) : rule ='rule modified _ pe _ header { strings : $ msg = " this program cannot " condition : ( ( not uint16 ( 0 ) = = 0x5a4d ) and $ msg ) }'temp _ rule _ file = tempfile. mktemp ( ) file ( temp _ rule _ file, " wb " ). write ( rule ) res = self. yarascan ( temp _ rule _ file ) [ " d...
[ 0.06508398801088333, -0.8133115768432617, 0.4065011441707611, -0.28860005736351013, -0.668391227722168, 0.623069167137146, 0.3902148902416229, 0.17326249182224274, -0.21917927265167236, 0.6387465000152588, 0.12106548249721527, 0.15582633018493652, -0.8352174758911133, 0.7064722180366516, ...
def get _ successors ( self, u ) : return self. successors. get ( u, [ ] )
[ -0.7929382920265198, -0.11795008927583694, 0.3762895464897156, 1.4113370180130005, -0.44139984250068665, 0.34421488642692566, -0.9050731658935547, 0.20259995758533478, 0.32797005772590637, -0.6689703464508057, -1.9487141370773315, 1.0907803773880005, 0.09684038162231445, 0.6644076704978943...
def delete _ user ( password : usermodel, token : optional [ str ] = header ( none ) ) : token _ decoded = decode _ token ( token ) if ( token _ decoded = = none ) : return {'msg':'token is required'} if ( not password ) : return json. dumps ( {'msg':'body is required'} ) controller = usercontroller ( ) return controll...
[ -0.3124322295188904, -0.12983857095241547, 0.43330058455467224, 0.5944324731826782, -0.3178882896900177, -0.18350805342197418, -0.6356582045555115, 0.0447738878428936, 0.42155221104621887, 0.130684494972229, -0.9615556597709656, -0.01381742674857378, -0.33185285329818726, -0.01421179901808...
def getarg ( self, argpos = 0 ) : if self. args : return self. args [ argpos ] else : print " argument undefined, never called ", self. name return none
[ -0.13080067932605743, -0.3694714605808258, 0.5124853253364563, -0.4445706307888031, 0.8501634001731873, 0.072067029774189, -0.44143253564834595, -0.4088006913661957, -0.13948021829128265, -0.33065518736839294, 0.4714275002479553, 0.5616746544837952, -0.5108457803726196, 0.13684408366680145...
def eta ( self ) : if self. _ _ eta is none and self. _ _ eta _ posix is not none : self. _ _ eta = datetime. datetime. fromtimestamp ( self. _ _ eta _ posix, _ utc ) return self. _ _ eta
[ 0.20869861543178558, -0.9932840466499329, 0.6697337627410889, -0.567375898361206, 0.49851399660110474, -0.28036385774612427, -0.17369745671749115, 0.11950443685054779, 0.277091383934021, 0.3349763751029968, 0.4252529442310333, -0.5498342514038086, 1.1875278949737549, -0.36026519536972046, ...
def snapshot ( self ) : return consolecontroller ( self. port ( ) ). snapshot
[ 0.2553645074367523, -0.00039539148565381765, 0.3490857183933258, -0.3796927332878113, -0.0484943762421608, -0.2397947907447815, 0.12191334366798401, -0.9456096291542053, 0.19952978193759918, -1.2843292951583862, 0.20073066651821136, 0.2183620035648346, -0.025218578055500984, -0.89844822883...
def apply ( self, obj ) : raise notimplementederror ('should implement patch operation.')
[ -0.08731891214847565, -0.5312879681587219, 0.6946204304695129, 0.4643973708152771, -1.0625159740447998, 1.4450346231460571, 0.7825107574462891, 0.7457937002182007, 1.320647954940796, -0.10492043942213058, -0.46870678663253784, 0.0031222724355757236, 0.1399516761302948, -0.00573061499744653...
def flags _ for _ object ( self, object ) : content _ type _ object, object _ id = contenttype. objects. get _ for _ model ( object. _ _ class _ _ ), object. id return contentflaginstance. objects. filter ( content _ type = content _ type _ object, object _ id = object _ id )
[ 0.3494647741317749, -0.7755390405654907, 0.5734901428222656, -0.5594715476036072, 0.36796361207962036, 0.3891650438308716, -0.18846936523914337, -0.7760717868804932, -0.22657617926597595, 0.013677500188350677, -0.9363574385643005, 0.7440260052680969, -0.15492840111255646, 0.492461532354354...
def settext ( self, text ) : raise notimplementederror
[ -0.6365023255348206, -0.44375818967819214, 0.29511603713035583, 0.3691204786300659, -0.3041206896305084, 0.9210658669471741, -0.23406575620174408, 0.3245234191417694, 0.6521582007408142, 0.19214335083961487, -0.9756779670715332, 0.2500227689743042, -0.02792907878756523, 0.31653153896331787...
def gettemperaturerange ( ) : andor _ solis. gettemperaturerange. restype = ctypes. c _ uint mintemp, maxtemp = ctypes. c _ int ( ), ctypes. c _ int ( ) result = andor _ solis. gettemperaturerange ( ctypes. byref ( mintemp ), ctypes. byref ( maxtemp ) ) check _ status ( result ) return int ( mintemp. value ), int ( max...
[ -0.7849404811859131, -0.4387377202510834, 0.396779328584671, 0.36972251534461975, -0.534519612789154, -0.1751781702041626, -0.28160980343818665, 0.4820193648338318, -0.5061126947402954, -0.04339028149843216, -0.8576311469078064, 0.5314844250679016, -0.8531408309936523, 0.06580609083175659,...
def get _ term _ frequencies ( articles ) : def map _ tokens _ to _ frequencies ( x ) : doc _ id, tokens = x from collections import counter frequencies = list ( counter ( tokens ). items ( ) ) return ( doc _ id, frequencies ) return articles. map ( map _ tokens _ to _ frequencies )
[ -0.36590301990509033, -0.3669050633907318, 0.2548984885215759, -0.4683857262134552, -0.3796451687812805, -0.7263715267181396, -0.4771517813205719, 0.08189702033996582, -0.05449965223670006, 0.17524614930152893, -0.5941235423088074, -0.3807322084903717, 0.8188195824623108, -0.05538633838295...
def get _ app _ status ( self, obj ) : if obj. status! = mkt. status _ disabled and obj. _ is _ disabled : status ='disabled'else : status = mkt. status _ choices _ api _ v2 [ obj. status ] return status
[ -0.6045832633972168, -1.4353017807006836, 0.34617555141448975, 1.084205985069275, -1.11409330368042, 0.8198297023773193, -0.8823457360267639, 0.6886926889419556, 0.9943224191665649, 1.2319655418395996, -0.25120216608047485, 0.08895013481378555, 0.3665911853313446, 0.07225222140550613, 0....
def get _ geo ( filename, proj4 = none ) : ds = gdal. open ( filename, gdal. ga _ readonly ) bnd = ds. getrasterband ( 1 ) noda = np. float64 ( bnd. getnodatavalue ( ) ) gt = ds. getgeotransform ( ) nx = np. int64 ( ds. rasterxsize ) ny = np. int64 ( ds. rasterysize ) resx = np. float64 ( gt [ 1 ] ) resy = np. float64 ...
[ 0.3516874611377716, 0.07595676928758621, 0.8155573606491089, 0.29240259528160095, 0.12864629924297333, 0.3613572418689728, 0.14976003766059875, -0.05558812618255615, 0.07484348118305206, 0.39979442954063416, -0.31837424635887146, 0.15719261765480042, 0.0006237482302822173, 0.04717773571610...
def test _ write ( self ) : message = streamrequestpartmessage ( request _ id = " 0001 ", payload = " hello world " ) m _ bytes = write _ message ( message ) self. assertequal ( m _ bytes,'p00010000000bhello world')
[ -0.14424657821655273, 0.03757799416780472, 0.4147428870201111, 0.07267781347036362, 1.0294862985610962, 0.7923505902290344, -0.30022192001342773, -0.8663906455039978, -0.3203454613685608, -0.8952972888946533, 0.28652602434158325, -0.2406844198703766, -1.773782730102539, 0.3783518075942993,...
def get _ levels ( self ) : levels = self. tracks. keys ( ) levels. sort ( ) return levels
[ 0.03521285951137543, -0.4302070438861847, 0.5048575401306152, 0.6378292441368103, 0.005589231848716736, 1.0488330125808716, -0.4995770752429962, -1.0871859788894653, -1.3479090929031372, 0.4717830419540405, -0.40495482087135315, -0.17707152664661407, -0.5523393154144287, 0.6473513245582581...
def swap _ rows _ area ( self ) : area1 = random. randrange ( 0, self. n, 1 ) # получение случаиного раиона area2 = random. randrange ( 0, self. n, 1 ) # еще раион, но не такои же самыи while ( area1 = = area2 ) : area2 = random. randrange ( 0, self. n, 1 ) for i in range ( 0, self. n ) : n1, n2 = area1 * self. n + i, ...
[ -1.1856465339660645, 0.35665711760520935, 0.9130581617355347, -0.06375392526388168, -0.34590944647789, 0.2765725553035736, 1.1084574460983276, 0.06466610729694366, 0.27224215865135193, 0.3897179067134857, 0.05771224945783615, 0.13753363490104675, 0.4065456688404083, 0.9634599089622498, -...
def register _ provider ( self, provider : _ abstractconfigurationprovider ) - > none : type _ = type ( provider ) if type _ in self. _ providers : raise valueerror ( f " provider of type { type _ } has already been registered! " ) self. _ providers [ type _ ] = provider
[ -1.9130030870437622, 1.3680837154388428, 0.1596309095621109, 0.18172842264175415, 0.8959431052207947, 0.5959728360176086, 0.10254104435443878, -0.6767049431800842, 0.5695770382881165, 0.618256688117981, -0.8834788203239441, 0.1806621551513672, -0.2313598096370697, 0.8176596164703369, 1.5...
def acl6perhitsrate ( self ) : try : return self. _ acl6perhitsrate except exception as e : raise e
[ 1.205889344215393, -0.3540097177028656, 0.1238265335559845, 0.32976680994033813, -0.3445833623409271, 0.3526780903339386, 0.3260497748851776, -0.40227460861206055, 0.18302059173583984, -0.3304809033870697, 0.7705262899398804, -0.8557435274124146, -0.3807917535305023, -0.5101467370986938, ...
def getcurelemsection ( self, * args ) : return _ stepap209. stepap209 _ construct _ getcurelemsection ( self, * args )
[ -0.29402443766593933, -0.2507660686969757, 0.39389729499816895, 0.32854291796684265, -0.5139273405075073, 0.35507115721702576, 1.3027921915054321, -0.07196524739265442, -0.7697272300720215, -0.9259734153747559, 0.19998712837696075, -0.9320893287658691, -0.2696121037006378, 0.02100251801311...
def while _ version ( l ) : i = 0 total = 0 while i < len ( l ) and l [ i ] % 2! = 0 : total = total + l [ i ] i = i + 1 return total
[ 0.06715337187051773, -0.06095224618911743, 0.5460830330848694, -0.470812052488327, -0.06409137696027756, 1.1303790807724, 0.22060108184814453, -0.055042814463377, 0.45360270142555237, 0.40655678510665894, -1.2296630144119263, -0.7462947964668274, -0.950275182723999, 0.5142565369606018, 0...
def first _ scene ( cls ) : return cls. scenes [ 0 ]
[ 0.25214576721191406, -0.9449873566627502, 0.44919249415397644, -0.3562915027141571, 0.6420661807060242, -0.2323261797428131, -0.30866163969039917, -0.6568707823753357, -0.2029242217540741, -0.3306727707386017, 0.7096322774887085, 0.33906519412994385, -0.28056013584136963, 0.395303279161453...
async def setup _ db ( app : sanic, loop : any ) - > none : rblogs, rblog = render _ blogs ( 2, " blog " ) blogs, blog = add _ last _ next ( ( ldict2blog ( load _ store _ blogs ( rblogs ) ), ldict2blog ( load _ store _ blog ( rblog ) ), ) ) app. blogs = blog2ldict ( blogs ) app. blog = blog. copy ( )
[ 0.38581177592277527, 1.5620794296264648, 0.42343670129776, 0.5337730050086975, 0.02219565398991108, 0.4898408055305481, 0.06707032024860382, -0.157834991812706, 0.16043171286582947, 0.5498367547988892, -0.6667781472206116, 0.2876875698566437, 0.22485265135765076, 0.3318909704685211, 0.55...
def get _ top ( data, rating, min _ num _ of _ movies, num _ of _ influencers ) : data = data. loc [ ( data ['movies'] > = min _ num _ of _ movies ) ] data = data. sort _ values ( rating, ascending = false ) data = data. head ( num _ of _ influencers ) return data
[ -0.6443936228752136, 0.7771489024162292, 0.4968913793563843, -0.031504299491643906, -0.28932738304138184, -0.5546602010726929, -0.9629042148590088, -0.1953570544719696, -0.6003716588020325, 0.6387978196144104, 0.5221229195594788, 1.297937035560608, 0.032148752361536026, -1.3168212175369263...
def _ _ init _ _ ( self, dloop ) : self. dloop = dloop self. loop = dloop. loop msg. logmessage ( " starting scheduler ", msg. info ) msg. logmessage ( self. dloop, msg. debug ) msg. logmessage ( self. dloop. loop, msg. debug ) self. s = scheduler ( " localhost ", loop = self. dloop. loop ) self. s. start ( 0 ) # rando...
[ -0.4515203535556793, -0.03721525892615318, 0.9040957093238831, 0.08716730028390884, -0.7011222839355469, 0.33664485812187195, -0.03017413429915905, 0.574594259262085, 0.39539629220962524, -0.20862115919589996, -0.16425669193267822, -0.7751830816268921, -0.1315240114927292, 0.83176344633102...
def write _ into _ ldap ( connection, firstname, surname, birthday, phonenumber, mail, address ) : new _ surname ='' if len ( surname ) > 0 : new _ surname = " " + surname sn = surname elif len ( surname ) = = 0 : sn = firstname cn = " cn = " + firstname + new _ surname + ", ou = users, " + credentials _ project. ldap....
[ -0.43536049127578735, 0.06980913877487183, 0.8781254887580872, -0.03634107485413551, 0.2419699728488922, 0.21842092275619507, -0.3775829076766968, 0.7750405669212341, 0.288630872964859, -0.36461591720581055, -0.6336577534675598, -0.35349392890930176, -1.4638625383377075, 0.2785517275333404...
def test _ info _ working _ flight _ other _ user ( c, users : list [ user ], flights : list [ flight ] ) : mock _ data = { " fake " : " exists ", " anotherfake " : " alsoexists ", " dummycount " : 100 } httpretty. register _ uri ( httpretty. get, f " http : / / container - nodeodm : 3000 / task / { flights [ 0 ]. uuid...
[ -0.5962176322937012, 1.0937352180480957, 0.8522443771362305, 0.2920265197753906, 0.6668615937232971, 0.6592695713043213, 0.18866392970085144, -0.4439416825771332, -0.9038318991661072, -0.542079746723175, 0.05960085988044739, 0.0011473081540316343, -0.49025189876556396, -0.03726023063063621...
def primed ( ) : try : db _ access = cassandra _ interface. datastoreproxy ( ) except cassandra. invalidrequest : return false try : return db _ access. get _ metadata ( cassandra _ interface. primed _ key ) = ='true'finally : db _ access. close ( )
[ -0.4126144051551819, 1.144277572631836, 0.4515615999698639, -0.5670588612556458, 0.34671396017074585, 0.27637505531311035, -1.1469600200653076, 0.3159681260585785, 0.31725361943244934, -0.27312418818473816, 0.2571229636669159, -0.4909806549549103, -0.7807765603065491, 0.3193856179714203, ...
def process _ song _ data ( spark, input _ data, output _ data ) : # get filepath to song data file song _ data = input _ data + " song _ data / * / * / * " songschema = r ( [ fld ('artist _ id ', str ( ) ), fld ('artist _ latitude ', dbl ( ) ), fld ('artist _ location ', str ( ) ), fld ('artist _ longitude ', dbl ( ) ...
[ 0.4243234097957611, -0.34279248118400574, 0.9020196795463562, -0.28959766030311584, 0.15893162786960602, 0.7925545573234558, 0.6702195405960083, 0.8276061415672302, -0.7637799978256226, 0.02755974419414997, -0.38183191418647766, 0.01107585709542036, 0.49071699380874634, -0.1393673419952392...
def remove _ flag ( self, object, flag ) : content _ flag _ object = self. get _ flag _ object ( flag ) content _ type _ object, object _ id = contenttype. objects. get _ for _ model ( object. _ _ class _ _ ), object. id try : content _ flag _ instance = contentflaginstance. objects. get ( content _ type = content _ ty...
[ 0.5093175172805786, -0.6888839602470398, 0.6202746033668518, -0.1413349211215973, -0.31498992443084717, 0.27145129442214966, -0.003101745154708624, -0.0788140594959259, -0.594445526599884, 0.16347815096378326, -0.9094547033309937, 0.4535737633705139, -1.0023783445358276, -0.146774679422378...
def state _ dict ( self ) - > dict : raise notimplementederror
[ -0.6746640205383301, -0.5425887107849121, 0.4535091817378998, -0.4483858346939087, -1.634626865386963, 0.16147951781749725, 0.40908703207969666, -0.09959815442562103, 0.2852705121040344, -0.26857760548591614, -0.5113657712936401, -0.5424964427947998, 0.6005188226699829, 0.710759162902832, ...
def generate _ file ( self, filename, amount ) : if type ( amount = = str ) : amount = int ( amount ) # # # # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # # # # # # # # # # # # # # # # # # # # this is for sys. stdout file object if hasattr ( filename,'read') : fi = filename for ele in self. g...
[ -0.08430813997983932, -0.6105294823646545, 1.204481601715088, 0.24094648659229279, -0.7203382253646851, -0.4932442307472229, 0.11882878094911575, 0.30586016178131104, -0.5397138595581055, -0.36491721868515015, -0.10649044811725616, -0.5936347246170044, -0.34992432594299316, 0.8617577552795...
def test _ table _ 6 ( ) : cleanup ( ) print _ test _ separator ( " starting test _ table _ 6 " ) cat = csvcatalog. csvcatalog ( ) t = cat. create _ table ( " teams ", ".. / data / teams. csv " ) print ( " test1 : \ n teams table ", json. dumps ( t. describe _ table ( ), indent = 2 ), " \ n \ n " ) # the output should ...
[ 0.5589317083358765, 0.36213698983192444, 0.5894308090209961, -0.24488072097301483, -0.13210603594779968, -0.17909085750579834, 0.2281862199306488, -0.802242636680603, -0.5425955653190613, -0.6927048563957214, -0.5015550255775452, 0.44146639108657837, 1.1432480812072754, -0.2168690413236618...
def create _ dir ( _ dir ) : if not os. path. exists ( _ dir ) : os. makedirs ( _ dir )
[ -0.3701665699481964, 0.586193859577179, 0.3267408609390259, -0.47052574157714844, 0.6636581420898438, 1.1948660612106323, 0.4573090374469757, -0.669647216796875, -0.08316103368997574, -1.3045880794525146, -0.283318430185318, -0.04253869503736496, 0.7770238518714905, 0.3868764340877533, 0...
def run ( settings, biome ) : # - - - cycle through each generation - - - - - - - - - - - - - - - - - - - - + for gen in range ( 0, settings ['gens'] ) : print ( " gen : " + str ( gen ) + " \ n " ) print ( " starting food : " + str ( len ( biome. foods ) ) ) print ( " starting beasts : " + str ( len ( biome. beasts ) )...
[ -0.5816003680229187, 0.38522693514823914, 1.012182354927063, 0.5314291715621948, 0.007019261829555035, 0.3538467586040497, 1.0825356245040894, -0.7017230987548828, -0.9767938256263733, 0.8973119854927063, -0.39131343364715576, 0.7607868909835815, -0.5781619548797607, 0.1657235026359558, ...
def curl _ of _ curl _ xy _ inv ( self, fx, fy, gtype ='tri') : # as there are an equal number of edges in tri and vor grids, check once : assert ( len ( fx ) = = self. n _ tedges ), " length of array passed to grad is not edges length! " assert ( len ( fy ) = = self. n _ tedges ), " length of array passed to grad is n...
[ 0.3574848771095276, -0.057770974934101105, 0.8411800861358643, -1.097335934638977, -0.38518136739730835, -0.2342764139175415, 0.14720913767814636, 0.03285897895693779, -0.8918378353118896, 0.44779345393180847, 0.16060258448123932, 0.4323034882545471, -0.5263044834136963, -0.277009636163711...
def fit ( self, x ) : n _ samples = x. shape [ 0 ] self. mean _ = _ features _ mean ( x, self. arity, n _ samples ) norm _ blocks = [ ] for rows in x. _ iterator ('rows') : aux _ rows = [ object ( ) for _ in range ( x. _ n _ blocks [ 1 ] ) ] _ normalize ( rows. _ blocks, aux _ rows, self. mean _ ) norm _ blocks. append...
[ -0.4688818156719208, 0.013050851412117481, 0.6927566528320312, 0.4565564692020416, -0.4881768226623535, -0.02634279616177082, 0.4823461174964905, 0.27214232087135315, 0.593116283416748, -0.5365987420082092, -0.03357855975627899, 0.3700474500656128, 0.23946914076805115, 0.5993944406509399, ...
def get _ free _ location ( position : tuple, all _ sites : np. matrix, used _ sites : list [ tuple ] ) - > tuple : available _ locations = check _ location ( position, all _ sites, used _ sites ) if len ( available _ locations ) > 0 : return random. choice ( available _ locations ) else : return false
[ -0.757164478302002, 0.1590079516172409, 0.4683900773525238, -0.5211971402168274, -0.3853869140148163, -0.08488696813583374, 0.2886691987514496, -0.02016097865998745, 0.4965333342552185, 0.5741105675697327, -0.10713618993759155, -0.1467633694410324, -0.9660130739212036, -0.43840447068214417...
def _ translate _ _ interfaces _ interface _ encapsulation _ dot1q _ vlan ( input _ yang _ obj, translated _ yang _ obj = none ) : innerobj = _ translate _ _ interfaces _ interface _ encapsulation _ dot1q _ vlan _ outer _ tag ( input _ yang _ obj. outer _ tag, translated _ yang _ obj ) innerobj = _ translate _ _ interf...
[ -0.4335409104824066, -0.08167675882577896, 0.10939090698957443, -0.2971731722354889, -0.5399692058563232, 0.22053255140781403, 0.855133593082428, -0.9405462741851807, 0.7011420726776123, 0.07239791750907898, -0.42268839478492737, -0.2124571055173874, -0.2657894790172577, 1.0059573650360107...
def detail _ url ( recipe _ id ) : return reverse ( " recipe : recipe - detail ", args = [ recipe _ id ] )
[ 0.5693556070327759, 0.8786165714263916, 0.30862119793891907, -0.24109219014644623, 0.7057564854621887, 0.18997904658317566, -0.28751692175865173, 1.544127345085144, 0.16973692178726196, -0.20441043376922607, 0.4443604648113251, 0.8143635988235474, 0.6866261959075928, 0.4784858822822571, ...
def test _ available _ languages _ required _ for _ update ( self, mock _ sync ) : self. data. pop ('available _ languages') form = self. form _ class ( data = self. data, instance = factories. org ( ) ) self. assertfalse ( form. is _ valid ( ) ) self. assertequal ( form. errors. keys ( ), ['available _ languages'] ) s...
[ -0.48074623942375183, -0.050230566412210464, 0.2752901613712311, -0.6328641176223755, -0.3241630494594574, 1.3549493551254272, -0.479971319437027, 0.9185785055160522, -0.06494908779859543, 0.35344234108924866, -0.8735911250114441, -0.4085364043712616, -0.029790321364998817, 0.3759438097476...
def start ( self ) : self. threads = [ ] for i in range ( self. num _ threads ) : name = " kadabranannythread - % s " % str ( i ) nanny _ thread = nannythread ( self. channel, self. publisher, self. queue, self. logger ) nanny _ thread. name = name self. threads. append ( nanny _ thread ) nanny _ thread. start ( ) time...
[ 0.28145885467529297, -0.35195785760879517, 0.4680115282535553, 0.0030530064832419157, 0.8412036895751953, -0.36831942200660706, -0.521206796169281, -0.08785230666399002, 0.1846296787261963, -0.5854262709617615, -0.6728392243385315, 0.7349534630775452, -0.18309427797794342, 1.31992566585540...
def test _ error _ reporting _ on _ blueprint _ error ( self, mock _ rd ) : pipe = mock. magicmock ( ) sw = secureworker ( worker _ request, pipe ) with mock. patch. multiple ( sw, accept _ job _ request = mock. default, api = mock. default ) as mocks : mock _ rd. side _ effect = taskerror ('internal ', client _ messag...
[ -0.349815309047699, 0.7094349265098572, 0.6042511463165283, 0.07565990090370178, 1.3643532991409302, 0.7163837552070618, 0.41774803400039673, 0.8983109593391418, -0.5296422839164734, -0.12472791224718094, -0.42548152804374695, -0.03641408681869507, -0.7842357754707336, 0.4605226218700409, ...
def getsubset ( mali, identifiers, not _ in _ set = false ) : new _ mali = { } if not _ in _ set : for k, v in mali. items ( ) : if k not in identifiers : new _ mali [ k ] = v else : for k, v in mali. items ( ) : if k in identifiers : new _ mali [ k ] = v return new _ mali
[ -0.26436173915863037, -0.016619890928268433, 0.4032323658466339, -0.9587504267692566, -1.4117209911346436, 0.04611605033278465, -1.075058937072754, 0.9272993206977844, -0.9238510131835938, 0.6055774092674255, -0.2468716949224472, 0.5949560403823853, -0.46337562799453735, -1.042865633964538...
def build _ date ( self, job _ name, version ) : release _ dates = {'gov - release - prepare': { * * day _ minus _ 1, * * day _ 0, * * day _ plus _ 1, } } return release _ dates [ job _ name ] [ version ]
[ -0.7206446528434753, -0.4037661552429199, 0.2941399812698364, -0.08029896765947342, -0.7197808027267456, 0.0892055556178093, -0.7505702972412109, 0.27060264348983765, -0.32417726516723633, 0.5938259363174438, -0.7336311936378479, 0.584638774394989, -0.06296582520008087, -0.1951293647289276...
def forward ( self, inputs ) : out = self. neck ( inputs [ 0 : 4 ] ) return out
[ -0.20249250531196594, 0.1342250555753708, 0.20211705565452576, 0.14259493350982666, 0.8453042507171631, 0.05871998891234398, 0.21719641983509064, -2.016697883605957, -0.4936491549015045, -0.9016211032867432, 0.18942013382911682, -0.2734377682209015, -0.5677409172058105, -0.8910336494445801...
def test _ currency ( self, config ) : def find _ child _ select ( elem, text ) : select = elem. find _ element _ by _ xpath ( ". / / div [ @ class ='select'] " ) select. click ( ) visible = select. find _ element _ by _ xpath ( ". / / div [ @ class ='visible'] " ) options = visible. find _ elements _ by _ xpath ( ". /...
[ -0.12469172477722168, 0.785946249961853, 0.9633129835128784, -0.17552053928375244, 0.652263879776001, -0.4686066210269928, 1.291946530342102, -0.11041346192359924, 0.7781165242195129, 0.28761231899261475, -0.2726420760154724, -0.406768262386322, -0.7276558876037598, 0.04582452028989792, ...
def security _ log _ updater ( self ) : last _ number _ of _ lines = self. number _ of _ lines last _ end _ position = self. end _ positon try : with open ( config. security _ system _ log _ file,'r') as f : # count the current number of lines number _ of _ lines _ now = sum ( [ 1 for line in f ] ) # check if something...
[ 0.14884120225906372, -0.8366028666496277, 0.7597880363464355, 0.4558367133140564, 0.07085173577070236, 0.3039965033531189, -0.5410809516906738, -0.28397631645202637, -0.2692241072654724, 0.3035182058811188, 0.34288638830184937, -0.4858989119529724, -0.5890176892280579, 0.2836279571056366, ...
def update ( self, dummy = ( 0, 0, 0, 0 ) ) : self. t. cancel ( ) lines = self. _ get _ lines ( ) self. canvas. clear ( ) self. blit _ lines ( lines ) if self. active : self. t. after ( 0. 5, self. update )
[ 1.1640516519546509, -0.7103903293609619, 0.40342044830322266, 0.12629245221614838, -0.36795344948768616, -0.08760713040828705, 0.4557863771915436, -0.9622631669044495, 0.21849040687084198, 0.6844149827957153, -0.4283018708229065, 0.24880652129650116, -0.3127689063549042, -0.275138378143310...
def extract _ items _ from _ json ( self, json _ obj ) : pass
[ -0.9962340593338013, -0.9378303289413452, 0.3714616894721985, 0.465200811624527, -0.5301895141601562, 0.061296653002500534, -0.1686815321445465, -0.6051567196846008, -0.014261198230087757, 0.15212666988372803, -1.2129442691802979, -0.4325617253780365, 0.3806951940059662, 0.6642934083938599...
def test _ translation _ rules _ g _ suite _ list ( self ) : pass
[ -0.30040931701660156, 0.8797124028205872, 0.17874813079833984, 0.7808255553245544, 0.6060989499092102, 1.5463546514511108, 0.6443224549293518, -0.4425472617149353, -0.5233345627784729, 1.0644423961639404, -1.324573278427124, -0.2822055220603943, -0.04179538041353226, 1.0296740531921387, ...
def fix _ time _ individual ( df ) : @ jit def _ fix _ time ( x ) : aux = " 0 " * ( 8 - len ( str ( x ) ) ) + str ( x ) return aux [ : 2 ] + " : " + aux [ 2 : 4 ] + " : " + aux [ 4 : 6 ] + ". " + aux [ 6 : ] return ( df [ " date " ] + " " + df [ " time " ]. apply ( _ fix _ time ) ). astype ( np. datetime64 )
[ -0.0455416664481163, -0.1424858272075653, 0.8011888861656189, 0.27734312415122986, 0.0013235557125881314, 0.08750834316015244, -0.8873600363731384, 0.14630374312400818, -0.10658751428127289, 1.0305732488632202, 0.16878840327262878, 0.913981020450592, 0.5171021223068237, 0.22734303772449493...
def check _ region ( region, genome ) : chromosomes _ dict = choose _ genome _ version ( genome _ version = genome ) if int ( region [ 2 ] ) > chromosomes _ dict [ region [ 0 ] ] : raise valueerror ( " end of region exceeds length od chromosome. " )
[ 0.6643835306167603, 0.04553457349538803, 0.37969261407852173, -0.01776813715696335, -0.22810979187488556, 0.5302114486694336, -0.5534830093383789, -0.6299037933349609, -0.942642331123352, 0.18192103505134583, 0.21793073415756226, 0.9030695557594299, -0.40056902170181274, 0.6517431139945984...
def submitgamescore ( self, username, token, points, cache ) : message = dict ( ) if not ( self. checktoken ( username, token ) ) : message [ " success " ] = false message [ " error " ] = " invalid authentication token. " return ( json. dumps ( message ) ) if not geocache. select ( ). where ( geocache. cachename = = ca...
[ -1.0106117725372314, 0.43576544523239136, 0.7513262629508972, 0.23483532667160034, 0.005779700353741646, 0.5373230576515198, -0.6142801642417908, -0.85430908203125, -0.5976507663726807, 1.273498296737671, -0.7196639776229858, -0.1749684065580368, -0.8961494565010071, 0.24219311773777008, ...
def machine _ to _ human ( intake, output, process _ log ) : df = pandas. read _ csv ('{ }. csv '. format ( intake ), header = none, names = ['time ','1 ','2 ','3 ','4 ','5 ','6 ','7 ','8'] ) time _ start = df. iloc [ 0, 0 ] # checks if the first time point is in machine time if time _ start > 1 : process _ log + ='\ n...
[ -0.4640943109989166, -0.4211386442184448, 0.7623574733734131, -0.11175143718719482, -0.36040329933166504, 0.21591608226299286, -0.508624255657196, -0.2648078501224518, -0.7111881375312805, 1.1417895555496216, -0.23437368869781494, 0.6959167122840881, 0.11729712784290314, 0.8196426033973694...
def read _ frame _ lammpstrj ( trj ) : box = np. empty ( shape = ( 3, 2 ), dtype = np. float32 ) # - - - begin header - - - trj. readline ( ) # text step = int ( trj. readline ( ) ) # timestep trj. readline ( ) # text n _ atoms = int ( trj. readline ( ) ) # num atoms trj. readline ( ) # text box [ 0 ] = trj. readline (...
[ -0.19770872592926025, -0.4786246716976166, 0.8031769394874573, -1.1273905038833618, -0.699741780757904, -0.08204028010368347, -0.0653718039393425, -0.2967241108417511, -0.9132024049758911, 0.5166997909545898, -0.7762241959571838, -0.19134806096553802, -0.326387882232666, -0.031742263585329...
def newtimerregistrar ( ) : from. registrar import registrar return registrar ( )
[ 0.10263980180025101, -0.10058073699474335, 0.2021745890378952, -0.4390890300273895, -0.1928853988647461, -0.42525622248649597, 0.3728054463863373, -0.028445996344089508, 0.5030785799026489, -0.5626776814460754, -0.46808570623397827, 0.43340402841567993, -0.7974669337272644, -0.033383786678...
def _ setup _ callbacks ( self, deferred ) : deferred. addcallback ( self. _ handle _ callback ) deferred. adderrback ( self. _ handle _ errback )
[ 0.3843599557876587, 0.5713510513305664, 0.7101389169692993, 0.4207717478275299, 1.0655009746551514, 0.011020151898264885, 0.1730337142944336, 0.24782180786132812, 1.1150764226913452, -1.4316589832305908, -0.396726131439209, -0.538331151008606, 0.19061103463172913, 0.9591341614723206, 1.1...
def test _ isinstanceremindoresult ( rclient ) : results = rclient. list _ results ( recipe _ ids = 2335 ) assert isinstance ( results [ 0 ], remindoresult )
[ -0.865781843662262, 0.589145839214325, 0.15478773415088654, -0.24353669583797455, 0.3857875168323517, -0.12759657204151154, -0.12730857729911804, -0.8789301514625549, 1.4348353147506714, -0.4721018373966217, -0.8941051363945007, -0.18326318264007568, -1.7869125604629517, -0.069878309965133...
def _ _ init _ _ ( self, ip, username, password, project _ id = " admin ", timeout = 5 ) : self. ip = ip self. username = username self. password = password self. project _ id = project _ id self. token = " " self. timeout = timeout
[ 0.5166870951652527, 0.7313898801803589, 0.38834619522094727, 0.8310762643814087, -0.4209064543247223, 0.3681546747684479, -1.3305920362472534, 0.3077346980571747, -0.645220160484314, 0.6585867404937744, -0.15279310941696167, -0.11588875949382782, -0.5284548997879028, 0.00749144097790122, ...
def _ get _ local _ explanation _ row ( explainer, evaluation _ examples, i, batch _ size ) : rows = evaluation _ examples. typed _ wrapper _ func ( evaluation _ examples. dataset [ i : i + batch _ size ] ) return explainer. explain _ local ( rows )
[ 0.2689354717731476, 0.775576114654541, 0.2378556877374649, -0.45868703722953796, -0.4842149019241333, -0.6233161687850952, 0.36684709787368774, 0.8003209233283997, -0.3738766312599182, 0.1610770970582962, 0.8424235582351685, 0.29255205392837524, 1.0504186153411865, 0.2666485905647278, 0....
def _ conv3x3 ( self, in _ planes, out _ planes, stride = 1 ) : return nn. conv2d ( in _ planes, out _ planes, kernel _ size = 3, stride = stride, padding = 1, bias = false )
[ 0.7179578542709351, -0.10267196595668793, 0.2685098946094513, -0.11266012489795685, -1.2545422315597534, 1.1058123111724854, -1.4267405271530151, -0.000648538931272924, -0.5289633870124817, 0.7065755724906921, 0.09067560732364655, -0.16297556459903717, -0.048709698021411896, -1.43040525913...