text
stringlengths
25
2.19k
embedding
listlengths
768
768
def calculate _ capture _ point _ trajectory ( self, leg _ name ) : if self. _ capture _ point _ pose [ leg _ name ] is none : rospy. logwarn ('no messages received from the capture point topic of { lg } '. format ( lg = leg _ name ) ) return none if self. _ old _ capture _ point _ msg _ time [ leg _ name ] : if self. ...
[ -0.4185931384563446, -0.6488739848136902, 0.6581579446792603, -0.2177039086818695, -0.12130750715732574, -0.05725072696805, 0.09770484268665314, -0.6179288625717163, -0.6179648041725159, 0.5319892764091492, -0.37351536750793457, 0.1872154176235199, -0.5406476855278015, -0.03066077083349228...
def add ( self, task, transactional = false ) : if task : return self. add _ async ( task, transactional ). get _ result ( ) else : return [ ]
[ -1.0600345134735107, 1.6229981184005737, 0.7469717860221863, 1.1551854610443115, 0.3000507950782776, -0.7042232751846313, -0.9807420372962952, 0.14539676904678345, 0.4783977270126343, 0.8523221015930176, -0.3536846339702606, -0.7881231307983398, -0.39676955342292786, 0.6080880761146545, ...
def process _ posts ( db _ client, new _ entries, start _ date, end _ date, ) : print ( f'\ nstart processing posts') # feed new posts into nlp engine to perform frequency calculations stock _ frequencies = {'stocks': get _ stock _ frequency ( deepcopy ( new _ entries ) ),'start _ date': start _ date,'end _ date': end ...
[ -0.4480956792831421, 0.305507630109787, 0.5283046364784241, -0.06536835432052612, 0.20239859819412231, -0.2647995352745056, -0.3580036461353302, -0.4845750033855438, -1.107128381729126, -0.2730700671672821, -0.4238591194152832, -0.1240517720580101, 0.0405045747756958, 1.0966604948043823, ...
def _ _ str _ _ ( self ) : return f'{ self. name } '
[ -0.33461061120033264, -1.8452281951904297, 0.5371116995811462, -1.3865000009536743, -0.8442170023918152, 0.5760542750358582, -0.5261515378952026, -0.7450307011604309, 0.017112527042627335, 0.04742216691374779, 0.11879213154315948, 0.7698314785957336, 0.5084517598152161, -0.515940248966217,...
def get _ ahead ( self, curvature, zcurvature = none ) : centerx, centery = self. get _ center ( ) aheadx, aheady, aheadz = self. ahead focalx, focaly = self. focal _ length ('xy') alpha = atan ( aheadz * curvature ) ahead _ x = tan ( atan ( ( aheadx - centerx ) / focalx ) - alpha ) * focalx if zcurvature : beta = atan...
[ -0.5624343752861023, -0.4124884605407715, 0.6666021347045898, -0.8687635064125061, -1.02515709400177, -0.06271742284297943, -0.05750847980380058, 0.05239967629313469, 0.9471068978309631, -0.41446202993392944, -0.3947615325450897, 0.4429684281349182, -0.026499105617403984, -0.55658924579620...
def get _ result ( self ) : return self. result
[ -0.5444088578224182, 0.17397867143154144, 0.37036988139152527, 0.4346142113208771, 0.5810810923576355, -0.6589955687522888, 0.5601635575294495, -0.666172444820404, -0.2817125916481018, -1.906251311302185, -0.5242828130722046, 0.2847847044467926, -0.8166400790214539, -0.8225420117378235, ...
def maxperformance ( self, n : int, speed, efficiency, k : int ) - > int : m = 10 * * 9 + 7 n = len ( speed ) engineers = sorted ( [ ( efficiency [ i ], speed [ i ] ) for i in range ( n ) ], reverse = true ) total _ speed = 0 res = 0 selected = [ ] for eff, spd in engineers : heapq. heappush ( selected, spd ) total _ s...
[ 0.20034825801849365, 1.2268202304840088, 0.6547167897224426, 0.28816479444503784, 0.3648088872432709, -0.7984200716018677, -0.05257602781057358, 0.6782868504524231, 0.6221298575401306, 0.46780481934547424, -0.029827823862433434, -1.0782407522201538, -1.0291962623596191, 1.056064486503601, ...
def _ _ deepcopy _ _ ( self, * args, * * kwargs ) : # real signature unknown pass
[ -0.41429752111434937, -0.7071184515953064, 0.6474767327308655, 1.2861956357955933, -0.0727379322052002, 0.39337456226348877, 0.9833094477653503, -0.1170126423239708, 0.2673017978668213, -0.20580270886421204, -0.9803723692893982, 0.05929205194115639, 0.1725766360759735, -0.1501104235649109,...
def loss ( self, logits, labels, scope ='' ) : with tf. name _ scope ('loss') : with tf. name _ scope ('cross _ entropy') : labels = tf. to _ int32 ( labels ) cross _ entropy _ mean = self. loss _ func ( labels = labels, logits = logits ) tf. summary. scalar ('cross _ entropy ', cross _ entropy _ mean ) tf. add _ to _ ...
[ -1.2544770240783691, 0.08437420427799225, 0.44150885939598083, -1.8477460145950317, 0.4890325367450714, -0.18078166246414185, -0.07101240009069443, -0.20032644271850586, 0.1987895518541336, 0.8744374513626099, 0.3411639630794525, 0.377318412065506, 0.5011810660362244, -0.87483811378479, ...
def conv3x3 ( in _ planes, out _ planes, stride = 1, groups = 1, dilation = 1, bias = false ) : return nn. conv2d ( in _ planes, out _ planes, kernel _ size = 3, stride = stride, padding = dilation, groups = groups, bias = bias, dilation = dilation, )
[ 0.7849716544151306, 0.3662603497505188, 0.3760911822319031, 0.18649138510227203, -1.4302772283554077, 1.0503907203674316, -1.1602717638015747, -0.039085518568754196, -0.135665163397789, 0.5981107950210571, 0.2338540405035019, 0.10150473564863205, -0.11603423953056335, -1.2876315116882324, ...
def get _ grouping _ by _ id ( self, id _ : int ) : return self. _ db _ inst. get _ grouping _ by _ id ( id _ )
[ -0.7086286544799805, 1.0423457622528076, 0.2577497661113739, -0.4263777732849121, -0.22605836391448975, -0.6063588857650757, 0.3946458399295807, -0.9706153869628906, -0.4918678402900696, 0.026189656928181648, 0.23933205008506775, 0.12684854865074158, -0.3903958201408386, 0.4500117301940918...
def test _ simple _ operations ( etcd _ client ) : assert not etcd _ client. get ( " mtg / ambush " ) assert etcd _ client. set ( " mtg / ambush ", " viper " ) = = " viper " assert etcd _ client. get ( " mtg / ambush " ) = = " viper " assert etcd _ client. delete ( " mtg / ambush " ) assert not etcd _ client. get ( " m...
[ 0.06968921422958374, 0.594406008720398, 0.2425798624753952, -0.9500170946121216, 0.1291169822216034, 0.14095526933670044, -0.47295379638671875, 0.20809082686901093, 0.017285868525505066, -0.002871675183996558, -0.15686959028244019, -0.682693600654602, 0.5185456871986389, -1.127268314361572...
def get _ word _ id _ mapping ( articles, min _ occurrences = 3, num _ tokens = 100000 ) : words = articles. flatmap ( lambda x : x [ 1 ] ) \. map ( lambda x : ( x, 1 ) ) \. reducebykey ( add ) \. filter ( lambda x : x [ 1 ] > = min _ occurrences ) \. top ( num _ tokens, key = lambda x : x [ 1 ] ) local _ word _ map = ...
[ 0.1407327950000763, 0.20604747533798218, 0.3781624734401703, -0.7681518793106079, -0.7075045108795166, -0.7771511077880859, 0.38630160689353943, 0.8689639568328857, 0.23220029473304749, 0.7649708986282349, -0.6066108345985413, 0.20071539282798767, -0.13329987227916718, 0.000209166872082278...
def count ( self ) - > countrequestbuilder : from. count. count _ request _ builder import countrequestbuilder return countrequestbuilder ( self. request _ adapter, self. path _ parameters )
[ -0.21211384236812592, -0.008261074312031269, 0.42444050312042236, 0.7769010066986084, 0.23846973478794098, -0.034106962382793427, 0.024011120200157166, 0.8579414486885071, 0.6354383826255798, -0.8311750292778015, 0.30656716227531433, 0.4938526451587677, 0.2801108658313751, -0.0821002051234...
def static _ skeleton ( data _ sequence, stride = 10, offset = np. array ( [ 0. 5, 0. 5, 0 ] ) ) : totla _ frame = data _ sequence. shape [ 0 ] num _ of _ skeleton = int ( totla _ frame / stride ) fig = plt. figure ( ) ax = fig. add _ subplot ( 1, 1, 1, projection ='3d') ax. set _ xlim3d ( [ - 1. 5 + offset [ 0 ] / 2 *...
[ 0.09743177890777588, 0.24412310123443604, 1.058059811592102, -0.3431471884250641, -0.9087684750556946, 0.14953729510307312, 1.554563045501709, -0.14798611402511597, 0.27582672238349915, 0.4623526632785797, 0.019643286243081093, 1.1800986528396606, -0.08806994557380676, -0.7449176907539368,...
def configure ( self, baseschema, override = none, roots = none ) : verbose = self. verbose self. baseschema = baseschema self. baseschemadir = dirnm ( baseschema ) self. override = override self. overridedir = none if override is none else dirnm ( override ) self. outputfile = ( basenm ( override if override is not no...
[ -0.18215738236904144, 0.0627995952963829, 0.8079666495323181, 0.08885130286216736, -0.21428003907203674, -0.7769180536270142, 0.2813246250152588, -0.11550258100032806, 0.2082023173570633, -0.7065636515617371, -0.24929538369178772, -0.6409819722175598, 0.004150955472141504, 0.89541792869567...
def user _ options ( self ) : if self. _ _ rop is not none : return self. _ _ rop. parm ( " ar _ user _ options " ). eval ( )
[ -0.165459543466568, -0.21475806832313538, 0.47007572650909424, 0.9371361136436462, 0.89141446352005, 0.061369962990283966, 1.2163662910461426, -0.6356885433197021, 0.778779149055481, -0.4996894896030426, 0.07274393737316132, 0.541899561882019, -0.02068161405622959, -0.9429960250854492, 0...
def _ verify _ table _ definitions ( ) : # todo make output shown only for errors errmsg ='' print ('verifying column order defintions... \ n') for tbl in table _ definitions : for col in table _ definitions [ tbl ] : try : t, c = current _ names ( tbl, col ) except keyerror : errmsg = errmsg + ('- header definition " ...
[ 0.02916955202817917, -0.32125577330589294, 0.8390493392944336, 0.7236307859420776, -0.217168390750885, 0.18673968315124512, 0.01635635457932949, -0.8595700263977051, -0.8023672699928284, 0.053471677005290985, -0.5807260274887085, -0.12139104306697845, 0.27029579877853394, 0.876200258731842...
def numerical _ hessian _ g ( grad, x0, h = 1. 0e - 5 ) : n = len ( x0 ) hess = np. zeros ( ( n, n ) ) g0 = grad ( x0 ) print " numerical differentiation of forces requires % d gradient calculations " % ( 2 * n ) for i in range ( 0, n ) : print " % s of % d " % ( 2 * ( i + 1 ), 2 * n ) ei = np. zeros ( n ) ei [ i ] = 1...
[ 0.10583643615245819, 0.2940688133239746, 0.6451571583747864, -0.5960392355918884, 0.3123469054698944, 0.4280884265899658, 0.12358567863702774, -0.036347776651382446, -1.2803270816802979, 0.3253186345100403, -0.285331666469574, 0.34339216351509094, -0.6009383797645569, 1.251259207725525, ...
def month ( self ) - > int : return self. _ month
[ 0.991547167301178, 0.1682644635438919, 0.2741372585296631, 0.6532107591629028, 0.5108670592308044, 1.5924654006958008, 1.6474868059158325, 0.5154977440834045, 0.4400312006473541, -1.7500196695327759, 0.2215973436832428, 0.6128377914428711, -0.3004814684391022, 0.09252403676509857, 0.9927...
def _ _ init _ _ ( self, vein : vein, height : int = 2, diameter : int = 16, is _ round : bool = true, * * kwargs ) : super ( ). _ _ init _ _ ( vein, * * kwargs ) self. diameter = diameter self. height = height self. is _ round = is _ round
[ 0.43024104833602905, -0.06657083332538605, 0.5255152583122253, 0.1637348234653473, -0.021366452798247337, 0.18852435052394867, -0.11714694648981094, -0.23286697268486023, 0.6822758316993713, -0.28118547797203064, -0.5961778163909912, 0.9592443704605103, 0.3364710807800293, 0.77837073802948...
def hour ( self ) - > int : return self. _ hour
[ 0.7941585183143616, -0.01187334768474102, 0.47410112619400024, 0.7620896100997925, 0.41200509667396545, 1.8417047262191772, 1.1742935180664062, 1.1411885023117065, -0.29835018515586853, -0.3455038070678711, -0.7368503212928772, 0.21837015450000763, -0.026571018621325493, -0.669778048992157...
def get _ all _ matches ( ) : start = time. time ( ) matches = pd. read _ sql ( " select * from match ; ", conn ) print ('time to get all matches ', time. time ( ) - start ) return matches
[ 0.12212172150611877, 0.08960644155740738, 0.6012643575668335, 1.4813586473464966, 0.044260259717702866, -0.10801535844802856, -0.40575605630874634, 0.546746015548706, -0.9834924936294556, -0.6387587785720825, 0.04420812800526619, 0.25642624497413635, -0.5721619129180908, -0.366782516241073...
def test _ basic _ list ( self ) : assert get ( [ 0, 1 ], ('1 ', ) ) = = 1
[ -0.9970105886459351, 0.08635680377483368, 0.17754635214805603, 0.4423283636569977, 0.5770214200019836, 0.22472502291202545, -1.0770717859268188, 0.16250403225421906, 0.540095329284668, -0.761900007724762, -1.105907917022705, 0.2153913676738739, -0.10860839486122131, 0.006490458734333515, ...
def tile _ event ( player ) : tile _ check = player. get _ tile ( ) if tile _ check in get _ money : player. deposit _ cash ( 8 ) print'you have gained $ 8!'elif tile _ check in pay _ money : player. withdraw _ cash ( 3 ) print'you lost $ 3!'else : print'house event! under construction '
[ 0.42010077834129333, -0.11519914865493774, 0.642819881439209, 0.8361437916755676, 0.6125332713127136, -0.33314430713653564, 0.7469278573989868, 0.32302728295326233, 0.3795754313468933, -0.052174463868141174, -0.15847672522068024, 0.015702074393630028, 0.1741454154253006, 0.7658629417419434...
def isleaf ( self, key ) : curr _ node = self. _ root for char in key : curr _ node _ 1 = curr _ node [ 1 ] if char in curr _ node _ 1 : curr _ node = curr _ node _ 1 [ char ] else : return false return curr _ node [ 0 ] is not none
[ -0.3128683269023895, -0.8591651916503906, 0.5610187649726868, -0.20559413731098175, -0.7995386719703674, -0.5356960296630859, -0.7189900279045105, 0.09092264622449875, 0.2374136596918106, 0.6704761981964111, -0.13427500426769257, 0.29273849725723267, -1.305991768836975, 0.5726081132888794,...
def runtest ( self ) : # | test | is an array of alternating state names and action names, starting # and ending with state names. therefore, its length must be odd. self. assertequal ( 1, len ( self. _ test ) % 2,'the length of test array must be odd') # todo ( sukolsak ) : run a reset command that puts the machine in...
[ -1.145363450050354, 0.08947975933551788, 0.37522584199905396, 0.5202390551567078, 1.286496639251709, 0.18837334215641022, 0.9329961538314819, -0.740229606628418, 0.1424485594034195, -0.56550133228302, -0.21070222556591034, 0.4616905450820923, -0.5813456177711487, 0.40619567036628723, -0....
def get _ ordering ( self, request ) : return self. ordering or ( ) # otherwise we might try to * none, which is bad ; )
[ -1.1059595346450806, 0.382368266582489, 0.6462881565093994, 0.8084925413131714, 0.5979545712471008, -1.1249237060546875, -1.1799933910369873, -1.3513177633285522, 0.6538456082344055, -0.552940845489502, 0.5114101767539978, -0.7398644089698792, 0.07745355367660522, 0.7583109736442566, -0....
def testdeletetaginstance ( self ) : tagapi ( self. user ). create ( [ ( u'username / bar ', u'description') ] ) tag = gettags ( paths = [ u'username / bar'] ). one ( ) objectid = uuid4 ( ) createtagvalue ( self. user. id, tag. id, objectid, 42 ) self. store. commit ( ) with login ( u'username ', uuid4 ( ), self. trans...
[ -0.006466651801019907, 0.7434574961662292, 0.3902033567428589, -0.3364083766937256, 0.44382160902023315, 0.5781244039535522, 0.06139790266752243, -0.2418333888053894, -0.38792163133621216, -0.5766579508781433, -0.6762830018997192, -0.08363474905490875, -0.028953637927770615, 0.291284978389...
def max _ backoff _ seconds ( self ) : return self. _ _ max _ backoff _ seconds
[ 1.0329915285110474, -0.08225876092910767, 0.3758845031261444, 0.595036506652832, -0.5937288999557495, 0.5831647515296936, -0.21745677292346954, 0.29567497968673706, -0.12159132957458496, 0.1430179923772812, -0.3723827600479126, -0.21752357482910156, -0.40118762850761414, -0.909578740596771...
def _ mgui _ set _ cell ( self, row : int, col : int, value : any ) - > none : if value is none : self. _ qwidget. setitem ( row, col, none ) self. _ qwidget. removecellwidget ( row, col ) return if isinstance ( value, widget ) : self. _ qwidget. setcellwidget ( row, col, value. native ) return item = qtw. qtablewidget...
[ 0.22831888496875763, 0.7325347065925598, 0.5590338110923767, -0.44812750816345215, -0.12642788887023926, 0.2525394558906555, -0.26086294651031494, -0.11512958258390427, -0.2756744921207428, -0.0021518333815038204, 0.171014666557312, -0.04940258339047432, 0.5777879953384399, 0.5604958534240...
def mse _ func ( x, y, w, b _ mat ) : sse = sse _ func ( x, y, w, b _ mat ) mse = sse / len ( x ) return mse
[ 1.3013018369674683, 0.130102276802063, 0.2931099236011505, 0.40495923161506653, -0.05448830500245094, -0.4270811080932617, 0.2931750416755676, -0.32494309544563293, 0.2089170664548874, 1.1340243816375732, -0.10254914313554764, 0.4684034585952759, 0.41254276037216187, 0.6031174659729004, ...
def configuration ( self, plugin ) : conf = self. config. get ( plugin, " default ; " ). split (';') if len ( conf ) = = 1 : conf. append ('' ) return tuple ( conf )
[ -0.5914294123649597, 0.10341952741146088, 0.5878021717071533, 0.2359188199043274, 0.7990787625312805, -1.6077473163604736, -0.4072580933570862, 0.6032118201255798, -0.4068373441696167, 0.9988451600074768, -1.3037290573120117, -1.629679799079895, -0.948906660079956, 0.08619682490825653, -...
def fieldtodec ( self, field ) : size = " " for d in field [ : : - 1 ] : size + = format ( ord ( d ),'08b') return ( int ( size, 2 ) )
[ 0.032528288662433624, -0.05796656012535095, 0.7360907196998596, -0.6980808973312378, 0.6766155958175659, -0.042227085679769516, -0.008673499338328838, -0.25085291266441345, -0.16554805636405945, -0.39111047983169556, -0.9269594550132751, 0.3377200961112976, 0.05895800516009331, 0.335586816...
def filter _ by ( self, column, value ) : # headers = self. get _ headers _ table ( column ) column = column. upper ( ) if column = ='awards'and value. isdigit ( ) : query = [ ] percentage _ rate = int ( value ) sql = " " " select title, awards from movies where awards not null " " " for title, awards in self. query _ ...
[ -0.16985100507736206, -0.05051995441317558, 0.8026162385940552, 0.7719416618347168, -1.0313626527786255, 0.21455682814121246, -0.36298274993896484, -0.11093195527791977, -0.4285224378108978, 0.5852369070053101, 0.3273657560348511, 0.25580891966819763, -0.27980202436447144, 0.80141693353652...
def events _ listener ( self, event ) : self. send ( " cmd " )
[ 0.5929496884346008, -1.0920952558517456, 0.3842960298061371, -0.01449882984161377, 0.7991458773612976, 0.6646931767463684, 0.7170499563217163, -0.04167177900671959, 0.6464489698410034, -0.41045498847961426, -0.26474282145500183, 0.1265835016965866, 0.6009052991867065, 0.3672010898590088, ...
def run _ scenario ( self, scenario _ id, credentials ) : return self. post ('/ scenarios / % i / run'% ( scenario _ id, ), credentials )
[ -1.0834686756134033, -0.12156675010919571, -0.04781400039792061, 0.9116413593292236, 0.38789212703704834, -0.5375282764434814, -0.7579225301742554, -0.051188837736845016, 0.07107215374708176, 0.25347670912742615, -0.7922112345695496, 0.6151666045188904, -1.2449413537979126, -0.222569748759...
def export _ ass _ path ( self, rop _ path, session _ id ) : return str ( )
[ -0.46128663420677185, -1.9041824340820312, 0.3251962661743164, 0.08257606625556946, -0.23958158493041992, 0.0849379301071167, -0.01784679852426052, -0.7080026268959045, 1.4375044107437134, 0.14557220041751862, 1.1448287963867188, 0.5944561958312988, 0.9643716812133789, -0.8376131057739258,...
def mask _ along _ axis ( datum, params ) : specgram = datum. x mask _ start = params [ " mask _ start " ] mask _ end = params [ " mask _ end " ] if params [ " axis " ] = = 1 : specgram [ :, mask _ start : mask _ end, :, : ] = params [ " mask _ value " ] elif params [ " axis " ] = = 2 : specgram [ :, :, mask _ start : ...
[ 0.18004649877548218, 0.13945747911930084, 0.7444610595703125, 0.36138293147087097, 0.06546105444431305, -0.43049854040145874, 0.8521151542663574, 0.0911688357591629, 0.05075009912252426, 0.533042848110199, 0.5213972330093384, 0.8900843262672424, 0.14905042946338654, -0.4154117703437805, ...
def get _ total _ number _ of _ registered _ units _ by _ admission ( self, admission _ no ) : self. curr. execute ( " " " select count ( * ) from subjects as s inner join units as un on s. unit = un. unit _ name inner join users as us on s. student = us. admission _ no where admission _ no = % s " " ", ( admission _ n...
[ -0.08230458945035934, 0.0772816464304924, 0.7097247838973999, -0.5657670497894287, 0.5885820388793945, -0.2218247354030609, 1.3616806268692017, 0.24440130591392517, 0.08290483802556992, 0.03105151280760765, -0.20497792959213257, 0.19550901651382446, 0.37714558839797974, 0.00031951666460372...
def mw _ lmc _ particles ( xyz, mass, pids, nmw _ particles ) : sort _ indexes = np. sort ( pids ) n _ cut = sort _ indexes [ nmw _ particles ] mw _ ids = np. where ( pids < n _ cut ) [ 0 ] lmc _ ids = np. where ( pids > = n _ cut ) [ 0 ] return xyz [ lmc _ ids ], mass [ lmc _ ids ]
[ 0.40585795044898987, -1.5231860876083374, 0.308616578578949, -1.6820485591888428, -0.3530070185661316, 0.12010873854160309, -1.0875219106674194, -0.434360146522522, -0.6803470849990845, 0.23009246587753296, 0.28756067156791687, 0.8748398423194885, -1.0022556781768799, 0.804016649723053, ...
def run ( argv = none ) : parser = argparse. argumentparser ( ) parser. add _ argument ('- - input ', dest ='input ', default ='gs : / / dataflow - samples / shakespeare / kinglear. txt ', help ='input file to process.') parser. add _ argument ('- - output ', dest ='output ', required = true, help ='output file to writ...
[ -0.0031356567051261663, 0.3856755793094635, 0.8380047082901001, -0.060354240238666534, 0.2804369330406189, -0.8036635518074036, 1.2919981479644775, 1.0542426109313965, -0.7189123034477234, 0.0702674612402916, 0.015789050608873367, 0.5079619288444519, 0.2830156087875366, -0.2573829293251037...
def curr ( ) : return tstamp ( time. time ( ) )
[ -0.22490620613098145, -0.8886479735374451, 0.8098953366279602, -0.4171540439128876, -0.326007604598999, 0.5197861194610596, -0.10929842293262482, -0.28281840682029724, -0.2774498462677002, 0.5025452375411987, 0.4083998203277588, 0.2722833752632141, 0.652696430683136, -0.4287196397781372, ...
def _ _ setattr _ _ ( self, * args, * * kwargs ) : # real signature unknown pass
[ -0.5797858834266663, -1.3268930912017822, 0.47557464241981506, -0.005250025540590286, 0.11261139065027237, -0.21346533298492432, 0.718698263168335, -0.4546686112880707, 0.23712262511253357, -0.007288826629519463, -0.9835387468338013, -0.1453191190958023, 0.7317723035812378, 0.8812469244003...
def calc _ items _ total ( cls, items ) : shipping _ charge = 0 subtotal = 0 ad _ charge _ amt = 0 ad _ charge _ breakup = { } for item in items : shipping _ charge + = item. shipping _ charge subtotal + = item. subtotal ad _ charge _ amt + = item. additional _ charge for charge in item. cost _ breakup ['additional _ c...
[ -0.33725789189338684, -0.16185520589351654, 0.7630923986434937, -1.1581872701644897, 0.12594495713710785, -0.1815735399723053, -0.2975933849811554, -0.3915122449398041, -0.4008987247943878, 0.8348490595817566, -1.1517210006713867, -0.6957284808158875, 1.024984359741211, -0.0176807995885610...
def name ( self, code ) : return self. _ _ temple _ to _ abrev. get ( code, _ ( " unknown " ) )
[ -1.3072900772094727, 0.4854554533958435, 0.5850297212600708, -0.873752236366272, -0.38064974546432495, 0.4902368187904358, 0.6778774261474609, -0.748898983001709, 0.7313202619552612, 0.9570891857147217, -0.3370962142944336, 0.22640958428382874, 1.1346275806427002, -0.013651628978550434, ...
def loadgtfstats ( infiles, outfile ) : p. concatenateandload ( infiles, outfile, regex _ filename = " (. * ). tsv. gz ", options = " - - allow - empty " )
[ 0.5506722927093506, 0.447322815656662, 0.5288267135620117, 0.41882625222206116, 0.21185491979122162, 0.8341654539108276, -0.14610663056373596, -0.2622891366481781, -1.3551310300827026, -0.08064562827348709, 0.5344325304031372, 0.22483709454536438, 0.012785379774868488, -0.30370134115219116...
def update ( self, action ) : pass
[ -1.335693597793579, -1.7848472595214844, -0.02559330314397812, 0.5824729204177856, 0.16278797388076782, 0.7707090377807617, 0.23668994009494781, -0.3758045732975006, 0.31041058897972107, 0.3649137318134308, -0.29987284541130066, 1.0242949724197388, -0.31558626890182495, 0.21122948825359344...
def insert _ into _ db ( name, age ) : client. name _ age. customers. insert _ one ( { " name " : name, " age " : age } )
[ -0.9208686351776123, 0.7223525643348694, 0.517890453338623, -0.4607028365135193, -0.08465198427438736, 0.6130344271659851, -0.8901039958000183, 0.1791740208864212, -1.2633394002914429, 0.6649370789527893, -1.3392008543014526, -0.3928752839565277, -1.0472973585128784, 0.3162883520126343, ...
def test _ get _ user _ details ( self ) : user = user. objects. create _ user ( username ='chort ', email ='chort @ chorthall. com ', password ='chort') url = reverse ('user - details ', args = ( user. id, ) ) response = self. client. get ( url + ". json " ) self. assertequal ( response. status _ code, status. http _ ...
[ 0.5503582954406738, 0.09936045110225677, 0.32882311940193176, -0.1564483493566513, 0.9364752769470215, 0.8774049878120422, 0.18045949935913086, -0.35579290986061096, -0.5272050499916077, -1.202595829963684, -0.7005018591880798, 0.629153847694397, 0.662407636642456, -0.3301263749599457, 0...
def create _ dummy _ computation _ placement ( ) : placement _ literal, type _ signature = create _ dummy _ placement _ literal ( ) value = pb. computation ( type = type _ serialization. serialize _ type ( type _ signature ), placement = pb. placement ( uri = placement _ literal. uri ) ) return value, type _ signature
[ -0.38977137207984924, -0.3696902096271515, 0.5474012494087219, -0.6266902089118958, 0.2799484133720398, -0.10894740372896194, 0.7882540225982666, -0.10806244611740112, 0.05433441326022148, 0.27747616171836853, -0.5661631226539612, -0.31097739934921265, -0.5028603076934814, -0.0031508458778...
def test _ packages ( self ) : self. asserttrue ( self. check _ package _ output ( " ruby - - version ", " ruby 2. 5. " ) ) self. asserttrue ( self. is _ package _ present ( " bundler " ) ) self. asserttrue ( self. is _ package _ present ( " gem " ) )
[ 0.01717100851237774, 0.12849417328834534, 0.4879376292228699, 0.9441254734992981, 0.8062213659286499, 0.9643201231956482, 0.40164852142333984, 0.20623746514320374, -0.21496953070163727, -0.02137094736099243, -0.7955707907676697, -0.35741379857063293, 0.23554472625255585, 0.9520301222801208...
def get _ group _ set _ id ( self, _ request, assignment, historical _ assignment = none ) : if not self. group _ type : # groups not enabled on this product return none if assignment : return assignment. extra. get ( " group _ set _ id " ) if historical _ assignment : # when creating new assignments, take the value fr...
[ -0.8621804118156433, 0.49507126212120056, 0.2916027009487152, 0.26638296246528625, 0.06110402196645737, -0.0407642126083374, 0.1736091524362564, -0.8165495991706848, -0.32461485266685486, 0.7580230236053467, 1.3218506574630737, 1.117597222328186, -0.6066527962684631, 0.04824575409293175, ...
def t _ continue ( self ) : host, port = self. ip _ addr, 730 sock = socket. socket ( socket. af _ inet, socket. sock _ stream ) sock. connect ( ( host, port ) ) # this is the cmd that we send to the console sock. send ( " continue thread = 0x % x exception \ r \ n " % self. addr ) sock. close ( )
[ 0.9589130878448486, -0.4184068441390991, 0.6709563732147217, -0.5058344602584839, 0.12486786395311356, 0.6338492631912231, 0.16587287187576294, -0.5592913031578064, -0.57822585105896, 0.028448067605495453, 0.9111782312393188, 0.8875864744186401, -0.8853861689567566, -1.0705050230026245, ...
def apply _ zoom _ in _ transformation ( self ) : image = self. modification _ information. image min = image. shape [ 0 ] max = self. modification _ information. get _ enlarged _ bounding _ box _ dimensions ( ) original _ dimensions = image. shape [ 0 ] new _ dimensions = int ( min + random. random ( ) * ( max - min )...
[ -0.8028953671455383, -0.028344785794615746, 0.5946792364120483, -0.03504999727010727, -0.6466537714004517, -0.06718318164348602, 0.07010561227798462, 0.4968157708644867, 0.4867922067642212, -0.9198892712593079, -0.582502007484436, 0.8041664958000183, 0.5304999351501465, 0.11911967396736145...
def characteristic ( self ) : return integer ( 2 )
[ -0.12878532707691193, -0.6334331631660461, 0.44284456968307495, 0.7744795083999634, 0.06084176152944565, 0.5808582305908203, 1.1013938188552856, 0.16490350663661957, 0.1383981853723526, -0.6955652236938477, -0.7770444750785828, 0.6841896176338196, -0.23081059753894806, -0.17087921500205994...
def test _ apply _ mixed _ dtypes ( left _ dtype, right _ dtype, op ) : # first perform the op on two dummy data on host, if numpy can # safely type cast, we should expect it to work in udf too. try : op ( np. dtype ( left _ dtype ). type ( 0 ), np. dtype ( right _ dtype ). type ( 42 ) ) except typeerror : pytest. skip...
[ -0.3449559807777405, 1.0865801572799683, 0.7770158052444458, 0.2839137315750122, 0.5517301559448242, 0.13929370045661926, 0.849065363407135, -0.2975420653820038, 0.21055644750595093, 0.12380348145961761, -0.6917043328285217, 0.1962677240371704, -0.03415948152542114, -0.16010402143001556, ...
def findunsortedsubarray ( self, nums : list [ int ] ) - > int : n = len ( nums ) lo, hi = 0, n - 1 while lo < hi and nums [ lo ] < = nums [ lo + 1 ] : lo + = 1 while lo < hi and nums [ hi - 1 ] < = nums [ hi ] : hi - = 1 if hi < = lo : return 0 mini = float ('inf') maxa = - float ('inf') for i in range ( lo, hi + 1 ) ...
[ 0.4635475277900696, -0.429246187210083, 0.7785813808441162, 0.4342239201068878, -0.2941010296344757, 0.2715475261211395, 1.248781681060791, 0.061425767838954926, 0.2326020449399948, -0.8152896761894226, -0.6857351064682007, 0.540862500667572, -0.8269195556640625, 1.0756720304489136, 0.00...
def max _ heapify ( indx, arr, size ) : # get index of left and right child of indx node left _ child = indx * 2 + 1 right _ child = indx * 2 + 2 largest = indx # check what is the largest value node in indx, left child and right child if left _ child < size : if arr [ left _ child ] > arr [ largest ] : largest = left ...
[ 0.03049936518073082, 0.171553373336792, 0.7760766744613647, 0.46806812286376953, -0.678824245929718, -0.5089227557182312, -1.1201608180999756, -0.38877391815185547, 0.3937295377254486, 0.08413393795490265, -0.1721683144569397, 0.4776345193386078, 0.39305979013442993, 0.7339897751808167, ...
def save ( self, * args, * * kwargs ) : if self. order is none : klass = get _ concrete _ base _ model ( type ( self ), orderable ) max _ order = klass. objects. aggregate ( max _ order = max ('order') ) ['max _ order'] if max _ order is none : max _ order = - 1 self. order = max _ order + 1 super ( orderable, self ). ...
[ -1.0917726755142212, 0.6437989473342896, 0.8373700976371765, 1.1000808477401733, 0.8644290566444397, -0.5782058238983154, -0.3468473553657532, 0.4321860373020172, -0.5414618253707886, 0.2688720226287842, -0.9219064712524414, -0.4820680320262909, -0.17480631172657013, 0.9443686604499817, ...
def occupy _ seat ( ticket _ id, seat _ id ) : if not _ is _ seat _ management _ enabled ( ) : flash _ error ( gettext ('seat reservations cannot be changed at this time.') ) return ticket = _ get _ ticket _ or _ 404 ( ticket _ id ) manager = g. user if ( not ticket. is _ seat _ managed _ by ( manager. id ) and not _ i...
[ -0.29127830266952515, -0.1470547765493393, 0.6999354362487793, -0.4345747232437134, 0.03164735436439514, -0.24503079056739807, 0.05550893023610115, -0.3847671151161194, -0.04689990356564522, 0.40685585141181946, 0.6853147745132446, 0.9764721989631653, 0.01626937836408615, 0.451709091663360...
def _ _ contains _ _ ( self, key ) : return key in self. _ items
[ -0.5620306730270386, -0.48429322242736816, 0.39614441990852356, -0.5140379667282104, -0.5205916166305542, 0.5062724947929382, -0.8772409558296204, -0.021371806040406227, -0.7210879921913147, -0.3168288767337799, -0.6828282475471497, -0.30782872438430786, -0.28062132000923157, -0.1813781708...
def _ mgui _ bind _ column _ headers _ change _ callback ( self, callback ) - > none : raise notimplementederror ( )
[ -0.9136950969696045, -0.7966870665550232, 0.5399298071861267, 0.7980270385742188, -0.8655205965042114, 0.29839980602264404, 0.5060043334960938, -0.6608593463897705, -0.06444235891103745, 0.6144598722457886, -0.5346248149871826, -0.019243009388446808, -0.0353553481400013, 0.7886070609092712...
def make _ mixed _ palindrome ( max _ int = 10 ) : stack _ list = make _ palindrome ( max _ int ) random. shuffle ( stack _ list ) return np. array ( stack _ list, dtype = dtype )
[ -0.8348414301872253, 0.6194549798965454, 0.44183844327926636, -0.2411515712738037, 0.1284724324941635, 0.32745233178138733, 0.1175500676035881, 0.32248854637145996, 0.47656765580177307, -0.03538360446691513, -0.6485836505889893, -0.29728516936302185, -0.9684514999389648, -0.251454293727874...
def get _ place ( place _ id ) : place _ obj = storage. get ( place, place _ id ) if place _ obj is none : abort ( 404 ) return jsonify ( place _ obj. to _ dict ( ) )
[ -0.6620392799377441, -0.692093014717102, 0.5645367503166199, -0.18440000712871552, 0.033562470227479935, -1.341381311416626, -0.6125227212905884, -0.06120620295405388, 0.4398864805698395, 0.10501093417406082, 0.009352540597319603, 0.3704213798046112, -0.3876124620437622, 0.1992193758487701...
def setincrementindex ( self, * args ) : return _ itkimageserieswriterpython. itkimageserieswriterid3id2 _ setincrementindex ( self, * args )
[ -0.6530781388282776, -0.4653724730014801, 0.3470097780227661, -0.035448428243398666, -0.271194189786911, 0.9316675662994385, -0.08792874217033386, -0.4142475426197052, -0.40371158719062805, 0.5236092209815979, -1.5902429819107056, 0.6884217262268066, -0.289964884519577, 0.3019567131996155,...
def get _ max _ displays ( self, target ) : return query _ int _ attribute ( self, target, 0, nv _ ctrl _ max _ displays )
[ -0.6092482805252075, 0.6589723229408264, 0.5783085227012634, 0.8065828680992126, -0.5021854043006897, -0.41405153274536133, 0.3663378953933716, -1.326117992401123, 0.8489627242088318, -0.09785360842943192, 0.22766950726509094, 0.09556359052658081, -0.17875611782073975, 0.3807145953178406, ...
def create _ chains _ loc _ drive ( self ) : self. guides = ( self. guide _ start _ loc, self. guide _ end _ loc ) self. spline _ chain = chain. make _ chain _ between ( self. guides ) transform. match ( self. spline _ chain [ 0 ], self. root _ grp ) self. spline _ chain. set _ parent ( self. root _ grp ) ikh _ spline ...
[ 0.21801704168319702, -0.23532864451408386, 0.6340010166168213, -0.22671757638454437, 1.060971736907959, -0.06718838959932327, 0.6581817269325256, -0.20175759494304657, -0.09943272918462753, -0.374018132686615, 0.10189452767372131, 0.07464801520109177, -0.1590236872434616, 0.053716156631708...
def delete _ screenboard ( self, board _ id ) : return self. http _ request ('delete ','/ screen /'+ str ( board _ id ) )
[ -0.698501467704773, 0.7727200984954834, 0.3289814293384552, 1.422555685043335, 0.08051798492670059, 0.04780958220362663, -0.33438950777053833, -0.39101943373680115, 0.6388617753982544, -0.331360399723053, -0.5491112470626831, 0.6410401463508606, -1.4331430196762085, 1.3489434719085693, 0...
def list _ queues ( parameters ) : if production : print " use'rabbitmqctl list _ queues'to list queues " else : rabbit _ env ['parameters'] = parameters r = local ( " { rabbitmqctl } list _ queues { parameters } ". format ( * * rabbit _ env ), capture = true ) return r
[ -0.6034446358680725, -1.0051606893539429, 0.5904837846755981, 0.1290452480316162, 0.05925603583455086, 0.004087630659341812, -1.4192724227905273, -0.5587719678878784, 0.2589675486087799, 0.7683665156364441, -0.3219880163669586, 1.5899754762649536, -0.518507719039917, 0.5712027549743652, ...
def displaytalkaccount ( self, fromid, sendername, rawstring, mods ) : sender = none playerinfo = none sfx = self. soundwhisper # mpg we need to identify the sender in a non - toontown specific way # sender = base. cr. identifyavatar ( fromid ) # sender = idenityplayer ( fromid ) playerinfo = base. cr. playerfriendsman...
[ 0.20421183109283447, -0.8227384090423584, 0.9278178811073303, -0.27473676204681396, -1.2240358591079712, -0.17494234442710876, 0.7554243803024292, -0.6124072670936584, 1.1022107601165771, -0.25463658571243286, 0.538654088973999, 1.0768442153930664, 0.22301951050758362, -0.02904182299971580...
def test _ recuperate _ number _ wiki _ page ( ) : result = recuperate _ number _ wiki _ page ( " openclassrooms " ) assert result = = 4338589
[ -1.1715397834777832, 0.08077548444271088, 0.3294034004211426, 0.07831986993551254, 0.8878106474876404, 0.16674040257930756, 0.306680291891098, 0.40386343002319336, 0.3476524353027344, 0.11007241159677505, -0.5721434354782104, -0.42127326130867004, -0.3824824094772339, -0.11614713072776794,...
def source ( self ) : return self. _ source
[ -0.05027595907449722, 0.2579401135444641, -0.00796645600348711, 0.135287344455719, -0.29449573159217834, 0.7747630476951599, 1.3854328393936157, 0.4029251039028168, 0.8363739252090454, -0.9372320771217346, -0.4623948037624359, 0.1537484973669052, -0.39214593172073364, -0.5959739089012146, ...
def secondaryionizationrate ( self, absorber, donor ) : if self. esec. method < 2 : ionizationrate = self. psin [ donor ]. copy ( ) ionizationrate - = self. e _ th [ donor ] \ * erg _ per _ ev * self. phin [ donor ] if self. pf ['photon _ conserving'] : ionizationrate - = self. psindn [ donor ] ionizationrate + = self....
[ 0.2526540160179138, -0.09695734083652496, 0.599143385887146, -0.2783472537994385, -0.009288966655731201, -0.8987935781478882, -0.07243722677230835, 0.18172301352024078, -0.08368058502674103, 0.3883133828639984, 0.7679347991943359, 0.04283259063959122, -0.5016322135925293, 0.473281860351562...
def get _ site _ trackers ( req _ list : list [ dict ], trackers : dict [ str, list [ str ] ] ) - > list [ str ] : # filter for entries that are actually requests for resources resources = [ r for r in req _ list if r [ " entrytype " ] = = " resource " ] # for each request made, get its domain and check if it matches t...
[ -0.15318642556667328, -0.03290749341249466, 0.5044437646865845, 0.9922453761100769, 0.6128731369972229, 0.4718731939792633, -0.02790435403585434, 0.09025885164737701, -0.05448311194777489, -0.16770270466804504, 0.0671047791838646, 0.572830855846405, -0.15313047170639038, 1.3031668663024902...
def pop _ front ( self ) : if self. is _ empty ( ) : raise indexerror ( " linked list is empty. " ) if self. size = = 1 : data = self. head. data self. head = none else : data = self. head. data self. head = self. head. next self. head. prev = none self. size - = 1 return data
[ 0.2602526843547821, 0.5401241779327393, 0.7026587128639221, -0.7731805443763733, -0.2825065553188324, -0.2504904270172119, -0.1536855250597, -0.432542085647583, 0.5513876676559448, -0.20334313809871674, -0.4120042026042938, 1.0858595371246338, -0.6877389550209045, 0.12293819338083267, 0....
def cam ( self, data ) : # cam ( self, data : image ) self. ros _ time = data. header. stamp # get time stamp # bridge to bgr8 image = self. bridge. imgmsg _ to _ cv2 ( data, " bgr8 " ) median = cv2. medianblur ( image, 25 ) # median blur # hue saturation and intensity hsv = cv2. cvtcolor ( median, cv2. color _ bgr2hsv...
[ 0.14431706070899963, -0.6097573041915894, 0.8812952637672424, 0.984533965587616, 0.11812561005353928, -0.2000380903482437, 0.3735574781894684, -0.14169666171073914, 0.703084409236908, 0.3487240672111511, -0.18328121304512024, 0.1999329775571823, 0.7488358616828918, 0.3475230634212494, 0....
def _ _ dir _ _ ( self ) : return dir ( dict )
[ -0.9682134985923767, -0.2753264009952545, 0.44218048453330994, -1.058681607246399, -0.9112834930419922, 0.40483522415161133, 0.7194801568984985, 0.44472384452819824, 0.2620067000389099, -1.3937108516693115, 0.37364277243614197, 0.3629988133907318, 0.8971011638641357, -0.3334500789642334, ...
def test _ cdr _ values ( ) : for cdr _ at _ 1000 _ tests in np. linspace ( 0. 05, 0. 5, 10 ) : cdr _ function = preprocess. testing. create _ cdr _ function ( 1000. 0, cdr _ at _ 1000 _ tests ) for i _ tests in list ( np. linspace ( 0. 0, 1e3, 11 ) ) + list ( np. linspace ( 0. 0, 1e5, 11 ) ) : assert cdr _ function ( ...
[ 0.3630117177963257, 0.34787890315055847, 0.371646523475647, -0.691638708114624, 0.8248068690299988, 0.5985660552978516, 0.4576137959957123, -0.14606454968452454, -0.19482818245887756, 0.012645924463868141, -0.09802976250648499, -0.12500251829624176, 0.10846320539712906, 0.7469642758369446,...
def test _ aux _ differential _ srv _ transform _ vectorization ( self ) : dim = 3 curves = gs. stack ( ( self. curve _ a, self. curve _ b ) ) tangent _ vecs = gs. random. rand ( 2, self. n _ sampling _ points, dim ) result = self. srv _ metric _ r3. aux _ differential _ srv _ transform ( tangent _ vecs, curves ) res _...
[ 0.16067494451999664, 0.6339486837387085, 0.6888899207115173, -0.38275477290153503, 0.17821522057056427, -0.056123699992895126, 0.7798427939414978, -0.8866850733757019, 0.5755255222320557, 0.019791435450315475, -0.7446792721748352, 0.29005861282348633, 0.3070363998413086, -0.402714788913726...
def _ generateheaderfilecontent ( header _ filename, namespace, histograms _ map ) : include _ guard = re. sub ( " [ ^ a - z ] ", " _ ", header _ filename. upper ( ) ) + " _ " if not histograms _ map : # some platforms don't allow creating empty arrays. histograms _ map [ " 0x00000000 " ] = " dummy. histogram " hashes ...
[ 0.5029932856559753, -0.657531201839447, 0.4174972176551819, 0.19417832791805267, -0.2674814462661743, 0.42358076572418213, -0.025866512209177017, 0.01948586106300354, -0.8963487148284912, 0.3826165795326233, -0.10920106619596481, -0.029517050832509995, 0.22309048473834991, -0.0220855157822...
def resolve ( self, s1, s2 ) : new _ sentence = [ ] for pred _ i in s1. predicates : for pred _ j in s2. predicates : if self. is _ valid _ pair ( pred _ i, pred _ j ) : theta = { } self. unify ( pred _ i, pred _ j, theta ) if ('failure'not in theta ) : new _ pred _ i = self. duplicate _ predicate ( pred _ i, s1. predi...
[ -0.2768283784389496, -0.32026875019073486, 0.7299157381057739, 0.12808260321617126, -0.2956574261188507, -1.0778553485870361, -0.8781360983848572, 1.1254444122314453, -0.7704965472221375, 0.44263336062431335, -0.7980673313140869, 0.3977673351764679, -0.313434362411499, -0.01680135913193226...
def testupdatevaluesforquerieswithmixedvalues ( self ) : securetagapi ( self. user ). create ( [ ( u'username / test1 ', u'description'), ( u'username / test2 ', u'description'), ( u'username / test3 ', u'description'), ( u'username / test4 ', u'description'), ( u'username / test5 ', u'description'), ( u'username / tes...
[ -0.1702144742012024, 0.2726856768131256, 0.7736117243766785, 0.08498299866914749, -0.015790503472089767, 0.40552857518196106, 0.12728604674339294, -0.4379274845123291, -0.07425325363874435, -0.540106475353241, -0.9149633646011353, -0.7911236882209778, -0.22484010457992554, 0.26451104879379...
def user _ stats ( df ) : print ('\ ncalculating user stats... \ n') start _ time = time. time ( ) # display counts of user types users _ count = df ['user type']. value _ counts ( ) subs _ count = users _ count. iloc [ 0 ] print ('there are { } subscriber - type users '. format ( subs _ count ) ) cust _ count = users ...
[ 0.5293818712234497, 0.17993436753749847, 0.928458571434021, -0.01011167373508215, -0.1663104146718979, 0.47270843386650085, 1.2357021570205688, -0.4857717454433441, -0.5049921274185181, -0.5614412426948547, 0.010850942693650723, 0.8261730670928955, 0.5855500102043152, 0.8458834886550903, ...
def test _ milestone _ view _ with _ no _ project ( self ) : response = self. client. get ( reverse ('projects : milestone ', args = ( 1, 1 ) ) ) self. assertequal ( response. status _ code, 404 )
[ -0.4587591290473938, 1.1377778053283691, 0.2798820436000824, 0.04354606941342354, 0.2735353112220764, 1.6083012819290161, 1.3438800573349, 0.0651516541838646, -0.08548443764448166, -0.9278377890586853, 0.06336136907339096, 0.23593592643737793, -1.0086485147476196, 0.5769152641296387, -0....
def setup ( self ) : logging. info ( " setting up source connection profile " ) # create the oracle connection profile self. _ createdatabaseconnectionprofile ( ) logging. info ( " setting up gcs connection profile " ) self. _ creategcsconnectionprofile ( self. dest _ connection _ name, bucket _ name = self. gcs _ buck...
[ 0.8381070494651794, 0.22013597190380096, 0.7161968946456909, -0.1829252541065216, 0.7383074760437012, -0.2328435182571411, 0.890899658203125, -0.34985125064849854, 0.4007501006126404, 0.3106195330619812, -0.7221981883049011, 0.21125634014606476, -0.23511065542697906, 0.18862853944301605, ...
def _ _ len _ _ ( self :'linked _ list') - > int : return self. size
[ 0.1794341802597046, -0.202985480427742, 0.24326159060001373, -1.1128290891647339, 0.3352850675582886, -0.032343581318855286, 0.742087721824646, 0.7273551225662231, 1.1360710859298706, -1.1163915395736694, -1.0685698986053467, -0.17407411336898804, 0.16898426413536072, 0.11062891781330109, ...
def has _ number ( word ) : return bool ( re. search ( r'\ d + ', word ) )
[ 0.1947147697210312, 0.3684415817260742, 0.4392886459827423, 1.0574476718902588, -0.4043041467666626, 0.40710383653640747, -0.10555092245340347, 0.9657006859779358, 0.1749003529548645, -0.9840714335441589, -0.8144553303718567, -0.5280930399894714, -0.2699629068374634, 0.2656852602958679, ...
def end _ date ( self ) : return self. _ _ end _ date
[ 0.8398021459579468, -0.11561546474695206, 0.27902936935424805, 0.12041347473859787, 0.41786888241767883, 1.4434549808502197, -0.6038766503334045, 0.5476478934288025, 0.07077713310718536, -0.5446895360946655, -0.07148955017328262, 0.9949675798416138, -0.3713490664958954, 0.5502367615699768,...
def linear _ program _ eq ( self, c, a, b, lb, ub ) : if self. solver = = solver _ scipy : return _ scipy _ linear _ program _ eq ( c, a, b, lb, ub ) elif self. solver = = solver _ gurobi : return _ gurobi _ linear _ program _ eq ( c, a, b, lb, ub ) else : raise valueerror ('qp solver { } not available '. format ( self...
[ 0.7660833597183228, -0.9198452234268188, 0.5883421897888184, -0.2800147533416748, 0.7095593214035034, 1.3845839500427246, -0.0952318012714386, -0.7474521398544312, 0.5931351184844971, 0.31851375102996826, -0.05804743990302086, -0.2724827826023102, -1.5141053199768066, -0.8753237724304199, ...
def test _ peak _ trough _ seasonal _ forcing ( ) : seasonal _ forcing _ function = get _ seasonal _ forcing ( 365. 0, 0. 0, 2. 0, 1. 0 ) assert seasonal _ forcing _ function ( 0. 0 ) = = 2. 0 assert seasonal _ forcing _ function ( 365. 0 ) = = 2. 0 assert seasonal _ forcing _ function ( 365. 0 / 2. 0 ) = = 0. 0
[ -0.25509244203567505, -0.16438119113445282, 0.5494996905326843, 0.7964438796043396, 0.9203374981880188, 0.09303455799818039, 0.18334411084651947, -0.7394158244132996, -0.5037865042686462, -0.7280711531639099, -0.22546562552452087, 0.4561096429824829, 0.33320140838623047, 0.3353952467441559...
def write _ into _ sidecar ( args ) : h5filename = os. path. splitext ( os. path. abspath ( args. hdf5file ) ) [ 0 ] path = h5filename + ". xmp " if args. outfile! = none : path = args. outfile if os. path. isfile ( path ) : return update _ sidecar ( args ) check _ image _ files ( args ) with open ( path, " w " ) as of...
[ -0.01938994973897934, -0.33805471658706665, 0.6925032138824463, -0.3479044437408447, 0.5458837747573853, 0.07728078961372375, 0.30720919370651245, 0.03268664330244064, -1.0295207500457764, 0.29687896370887756, 0.15020674467086792, -0.4000841975212097, -1.202667474746704, 0.3703494668006897...
def _ createguestpage ( self ) : page = directframe ( self. frame ) page. setname ( " partyplannerguestpage " ) self. guesttitlelabel = directlabel ( parent = page, relief = none, text = ttlocalizer. partyplannerguesttitle, pos = self. gui. find ( " * * / title _ locator " ). getpos ( ), scale = self. titlescale, ) sel...
[ -0.5675995945930481, 0.2053857147693634, 0.7176680564880371, -0.5434000492095947, 0.11696024984121323, 0.7178312540054321, -0.16930042207241058, 0.09124741703271866, -0.6363574266433716, 0.2144174575805664, 0.14361344277858734, -0.4464503824710846, 0.04948094114661217, 0.6221806406974792, ...
def force _ basic _ move _ to ( self, target, creep _ cond = lambda x : true ) : # type : ( union [ roomobject, roomposition ], callable [ [ creep ], bool ] ) - > bool if self. creep. fatigue > 0 : return true target = robjs. pos ( target ) if self. pos. isnearto ( target ) : return true adx = target. x - self. pos. x ...
[ -1.2361475229263306, 0.6317167282104492, 1.0345969200134277, -0.0716349333524704, -0.3399248421192169, 0.09049419313669205, 0.32618263363838196, -0.8421854972839355, 0.04983079805970192, 0.059473976492881775, -0.6325255632400513, -0.05699651315808296, -0.052139244973659515, -0.144730001688...
def not _ null ( schema ) : types = schema. data. get ('type') if isinstance ( types, list ) and'null'in types : types. remove ('null') if len ( types ) = = 1 : types = types [ 0 ] schema. data ['type'] = types schema. data ['_ notnull'] = true return schema
[ -0.7451269030570984, 0.11036931723356247, 0.6530917882919312, -0.5472449064254761, 0.07265244424343109, -0.7616945505142212, -0.5204993486404419, 0.4887317419052124, 1.2418479919433594, 0.9871415495872498, -0.7448326945304871, 0.4996154308319092, -0.17666319012641907, 0.47734060883522034, ...
def randomrestaurantxml ( ) : rand _ restaurant = getrandomrestaurant ( ) d = {'restaurant': rand _ restaurant. serialize } return response ( xmlify ( d, wrap ='randomrestaurant'), mimetype ='text / xml')
[ -0.8122937679290771, -0.1144350990653038, 0.07369910180568695, -0.7361610531806946, -0.9484499096870422, 0.17192652821540833, -0.6670536994934082, 0.807301938533783, 0.4870704412460327, -0.261126846075058, -0.4701917767524719, 0.4939611554145813, -0.8769893050193787, -0.4246092438697815, ...
def set _ clipboard _ html ( html, text ) : return _ set _ clipboard _ html ( html, text )
[ -0.9945498108863831, 0.955710768699646, 0.34616026282310486, 1.0574686527252197, -1.6391932964324951, -0.1269444078207016, -0.06004403159022331, 0.6790774464607239, -0.5521301031112671, 0.43854114413261414, -0.16300031542778015, 0.26433247327804565, -0.15977035462856293, 0.1782548725605011...
async def create _ table _ moderator _ application ( self, ctx ) - > none : if await self. table _ moderator _ application _ exists ( ) : return await ctx. send ( " * * table ` moderatorapplication ` already exists! * * " ) mycursor, db = await the _ database ( ) await mycursor. execute ( " " " create table moderatorap...
[ -0.046637773513793945, -0.09222295135259628, 0.4673372805118561, -0.2242230474948883, 0.26376914978027344, 0.33740806579589844, 0.10325337201356888, -0.3567969501018524, -0.058818746358156204, 0.3422497808933258, 0.10125777870416641, 0.7026838660240173, -1.098964810371399, 0.77324199676513...
def messages _ offtopic ( ) : return jsonify ( [ x [ " datapoints " ] for x in httpx. get ( graphite _ host, params = { " target " : " keeplastvalue ( integral ( stats _ counts. bot. channels. off _ topic _ * ), inf ) ", " from " : time _ frames [ request. args. get ( " frame ", " day " ) ], " format " : " json ", " ma...
[ -0.21182049810886383, 0.20553500950336456, 0.39794686436653137, -0.6377996802330017, 0.0059671299532055855, 0.4463231563568115, -0.7755316495895386, -1.72792649269104, -0.7334866523742676, 0.5531132221221924, 0.5935448408126831, 0.6748723387718201, -0.2776621878147125, 0.13729634881019592,...
def status _ history ( self, id : union [ status, idtype ] ) - > nonpaginatablelist [ status ] : id = self. _ _ unpack _ id ( id ) return self. _ _ api _ request ('get ', f " / api / v1 / statuses / { id } / history " )
[ -0.6462113261222839, 0.29937124252319336, 0.09274551272392273, 0.5925793051719666, 0.008973943069577217, -0.39986687898635864, -0.9277734756469727, 0.05533020943403244, 1.054115891456604, -0.13407132029533386, -0.996862530708313, 1.035550594329834, 0.5126440525054932, 0.6367860436439514, ...