text
stringlengths
25
2.19k
embedding
listlengths
768
768
def extract _ course _ times ( course = course ) : m = re. compile ( r'\ d + : \ d +') return m. findall ( course )
[ -0.8313705325126648, -0.09243270009756088, 0.5223328471183777, -0.184212327003479, 0.41648831963539124, 0.14704857766628265, -0.28449440002441406, 0.5249583125114441, 0.0406653992831707, 1.2765058279037476, -1.2559741735458374, -0.9111149311065674, -0.01691748946905136, -0.2527522444725036...
def pyxl _ test ( items ) : items = ( < li > { item } < / li > for item in items ) doc = < ul > { items } < / ul > return unicode ( doc )
[ 0.008435351774096489, -0.18359225988388062, 0.5420517921447754, -0.8772426843643188, 0.09225114434957504, 0.2332708090543747, -0.9529860019683838, 0.3038405776023865, 1.0302088260650635, -0.48822030425071716, -0.8657227158546448, -1.134641408920288, 0.2110326588153839, -0.4822136461734772,...
def ic _ prelim ( fig, x = 0. 75, y = 0. 8, * * kw ) : if'color'not in kw : kw ['color'] ='red'if'weight'not in kw : kw ['weight'] ='bold'fig. text ( x, y, " icecube preliminary ", * * kw )
[ 0.10483318567276001, 0.7319375276565552, 0.7126033902168274, -0.5165638327598572, -0.9734182357788086, 0.22642278671264648, 0.05376831442117691, -0.146647647023201, -0.06182379648089409, 0.44412940740585327, -0.04580027237534523, 0.6595362424850464, -0.17584997415542603, -0.936067402362823...
def find _ partition _ models ( cls ) : return [ m for m in models. get _ models ( ) if isinstance ( m. _ meta. db _ table, cls ) ]
[ -0.38350868225097656, 0.288621187210083, 0.6998388767242432, 0.9896356463432312, 0.7352179884910583, 0.2934807538986206, -0.2349046766757965, -0.3175690174102783, -0.2671555280685425, 0.4569729268550873, -0.554911732673645, -0.7853820323944092, -0.08349931985139847, 0.7605392932891846, -...
def construct _ subgait ( self, capture _ point _ leg _ name, subgait _ name ) : non _ capture _ point _ move _ group ='right _ leg'if capture _ point _ leg _ name = ='left _ leg'else'left _ leg'self. calculate _ capture _ point _ trajectory ( capture _ point _ leg _ name ) self. calculate _ normal _ trajectory ( non _...
[ 0.6712871193885803, -0.5028783082962036, 0.5951099991798401, 0.06338567286729813, -0.33057329058647156, 0.5448408722877502, -0.4643266797065735, -0.523408830165863, -0.14590385556221008, -0.21947680413722992, -0.1733216643333435, 0.4322865307331085, 0.16072285175323486, -0.154772087931633,...
def winbio _ winbiolocatesensor ( jitter ) : ret _ ad, args = jitter. func _ args _ stdcall ( [ " sessionhandle ", " unitid " ] ) raise runtimeerror ('api not implemented') jitter. func _ ret _ stdcall ( ret _ ad, ret _ value )
[ -0.19222398102283478, -0.6352019309997559, 0.3135802447795868, 0.5012726783752441, 0.40186238288879395, 0.4965633749961853, 1.350203514099121, -0.9724718928337097, 1.3396632671356201, -0.07614821195602417, -0.3741200268268585, 0.3858424127101898, -1.281974196434021, 0.9583145380020142, -...
def _ _ wait _ for _ async _ request ( self, async _ request, tag : str = none, max _ sleep _ time : int = 7000, sleep _ interval : int = 2000, initial _ sleep _ time : int = 7000 ) : logmsg _ prefix ='{ 0 } : '. format ( tag ) if tag else'' total _ sleep _ time = 0 for retries in itertools. count ( 0 ) : if async _ re...
[ -0.3221471309661865, 0.32303112745285034, 0.5125393867492676, -0.027398617938160896, -0.3809739351272583, -0.19249604642391205, -0.24799703061580658, -0.6775176525115967, -0.18443894386291504, 0.4271981418132782, 0.724847674369812, -0.26889172196388245, 0.32628902792930603, -0.268327772617...
def handle _ line _ removal ( self, file _ path, line _ num ) : self. files [ file _ path ]. pop ( line _ num ) del self. nvim. current. buffer [ line _ num ]
[ 0.8648940324783325, -1.189166784286499, 0.49904072284698486, 0.5172245502471924, 0.6665955185890198, -0.07396672666072845, 0.10742644965648651, 0.2717013359069824, -0.1794191300868988, -0.44095510244369507, -0.3885264992713928, -0.6955684423446655, -0.4974100887775421, -0.18947021663188934...
def _ _ init _ _ ( self ) : self. scheme = super ( thebarchivelinks, self ). scheme self. netloc ='thebarchive. com'self. apiloc ='thebarchive. com'self. imgloc ='thebarchive. com '
[ -0.1398746818304062, -0.3652849495410919, 0.2664855718612671, -0.30438509583473206, 1.5804262161254883, -0.4184234142303467, 0.11076183617115021, 1.3069804906845093, -0.43320125341415405, -0.7064114212989807, -0.7871383428573608, 0.2746240794658661, 0.3719874918460846, 0.9381173253059387, ...
def test _ course _ user _ post _ get ( self ) : school = school _ sample ( ) data = { " course " : " bachelor of science in business ", " major " : " marketing ", " school " : school } url = school _ course _ url ( school. id ) res = self. client. get ( url ) res2 = self. client. post ( url, data ) object = models. co...
[ -0.370796799659729, 0.3022240102291107, 0.8218140602111816, 0.3883269131183624, 0.6338314414024353, 1.1625360250473022, 0.11885571479797363, -0.563162088394165, 0.09342418611049652, -1.0914469957351685, -0.03468424454331398, 0.5037264227867126, -0.16603311896324158, -0.6863307952880859, ...
def add _ gen _ mc ( self, ns _ key, ipv4 _ start, ipv4 _ count = 1 ) : ver _ args = [ {'name':'ns _ key ','arg': ns _ key,'t': emunamespacekey }, {'name':'ipv4 _ start ','arg': ipv4 _ start,'t':'ipv4 _ mc'}, {'name':'ipv4 _ count ','arg': ipv4 _ count,'t': int } ] emuvalidator. verify ( ver _ args ) ipv4 _ vec = self....
[ -1.5529507398605347, 0.08280345052480698, 0.8684270977973938, -0.13312451541423798, -0.05059270188212395, -0.2404186874628067, 0.16685046255588531, -0.17346124351024628, -0.3261207342147827, 0.4732075035572052, -0.26186031103134155, 0.30598220229148865, -0.8278873562812805, 0.4121823608875...
def plane _ sweep ( image, depths, pose, intrinsics ) : batch, height, width, _ = image. get _ shape ( ). as _ list ( ) plane _ sweep _ volume = [ ] for depth in depths : curr _ depth = tf. constant ( depth, dtype = tf. float32, shape = [ batch, height, width ] ) warped _ image = projective _ inverse _ warp ( image, cu...
[ -0.955880880355835, 0.16414257884025574, 0.6218457818031311, 0.2443636655807495, -0.018130188807845116, 0.9024133086204529, -0.2790340185165405, 0.057809941470623016, -1.2255595922470093, 0.33431434631347656, 0.8445518612861633, 0.3336802124977112, 0.4454760253429413, 0.26829540729522705, ...
def quiz ( ) : return render _ template ('quiz. html')
[ 0.3421361446380615, 0.12901011109352112, 0.22442342340946198, 0.5033875703811646, -0.07958704233169556, 0.31368616223335266, 0.44837692379951477, 0.47062769532203674, -0.18486909568309784, -0.19662350416183472, 0.4765734076499939, -0.8200759887695312, -0.54063880443573, -0.6316251158714294...
def test _ filter _ jobs _ by _ category ( self ) : job _ post _ 1 = create _ job ( title = " job a ", category = job _ category _ choices. design, company = self. test _ company ) response = self. client. get ( reverse ('jobs : jobs - home'), {'job _ category': job _ category _ choices. design } ) self. assertequal ( ...
[ 0.2542811632156372, 1.0932354927062988, 0.3489491641521454, -0.004396680276840925, 0.9585880041122437, 0.3104541003704071, 0.4116668701171875, -0.46332696080207825, -0.3052213788032532, -0.691104531288147, 0.274742066860199, 0.04000374302268028, 0.30714088678359985, 0.005738212261348963, ...
def data _ circle ( num _ samples, noise ) : radius = 5 def get _ circle _ label ( x, y, xc, yc ) : return 1 if np. sqrt ( ( x - xc ) * * 2 + ( y - yc ) * * 2 ) < ( radius * 0. 5 ) else 0 noise * = 0. 01 points = np. zeros ( [ num _ samples, 2 ] ) labels = np. zeros ( num _ samples ). astype ( int ) # generate positive...
[ -0.7568877339363098, -0.5275968909263611, 0.8062632083892822, -1.4466328620910645, -0.20178894698619843, 0.440832257270813, -0.14484654366970062, -0.5329229831695557, -0.03163451701402664, 0.8427725434303284, -0.3503997325897217, 0.4245974123477936, 0.6478460431098938, -0.12549224495887756...
def new ( * args, * * kargs ) : obj = itksmoothingrecursivegaussianimagefilterius2ius2. _ _ new _ orig _ _ ( ) import itktemplate itktemplate. new ( obj, * args, * * kargs ) return obj
[ -0.4322925806045532, -0.7237786650657654, -0.06494197994470596, -0.16151928901672363, -1.1302170753479004, -0.41453179717063904, -0.10094884037971497, -0.7870638966560364, -1.044305443763733, -0.5368295311927795, -0.3584730625152588, 0.9443479180335999, -0.4423539340496063, 1.7633756399154...
def init _ db ( ) : logging. debug ( " entered init _ sqlite " ) conn = sqlite3. connect ( ces _ settings ['sqlitedb'] ) try : with conn : cursor = conn. cursor ( ) cursor. execute ( " select sqlite _ version ( ) " ) logging. info ( " sqlite ok. version : % s " % cursor. fetchone ( ) ) # if an added _ events table does...
[ 0.5327295064926147, 0.28958892822265625, 0.7708537578582764, 0.34513670206069946, 0.3372102677822113, 0.30749520659446716, 0.29914432764053345, -0.180659681558609, 0.028003348037600517, 0.3572465777397156, -0.06976650655269623, -0.27767977118492126, -0.2817935049533844, 0.482514888048172, ...
def displayfilmhylle ( dic ) : win = graphicswindow ( 500, 500 ) can = win. canvas ( ) y = 0 for key in sorted ( dic ) : st = key + " \ n " + dic [ key ] [ 0 ] + " \ n " + dic [ key ] [ 1 ] + " \ n " + dic [ key ] [ 2 ] + " \ n " + str ( dic [ key ] [ 3 ] ) + " \ n " can. drawtext ( 0, y, st ) y + = 60 win. wait ( )
[ 0.07871180027723312, -0.1554412841796875, 0.6303720474243164, -1.2704441547393799, -0.63886958360672, 0.40452811121940613, 0.04745613783597946, 0.06598693132400513, -0.28494399785995483, -0.4459686279296875, -0.08687545359134674, 0.2562447488307953, 0.13556893169879913, 0.4069557785987854,...
def device _ loc _ to _ type ( loc ) : if loc in [ 461, 501 ] : return " etc " elif loc in [ 541, 542 ] : return " gif " elif loc in [ 11, 75, 150, 239, 321, 439, 482, 496, 517, 534 ] : return " fif " elif loc in [ 38, 331, 438, 460, 478, 479, 480, 481, 497, 498, 499, 500, 513, 514, 515, 516, 527, 528, 529, 530, 531, 5...
[ -0.9690425992012024, -0.9013453125953674, 0.7752909064292908, -1.1995285749435425, -0.07519818097352982, -0.47594743967056274, 1.1783652305603027, 0.2950375974178314, 0.5806869864463806, 0.3839133381843567, -0.5053747892379761, -0.31781354546546936, 0.3013564646244049, 0.2530863285064697, ...
def calculate _ te ( delay, timelag, samples, sub _ samples, mcsamples, k = 1, l = 1 ) : # get autoregressive datasets data = getdata ( samples, delay ) [ x _ pred, x _ hist, y _ hist ] = vectorselection ( data, timelag, sub _ samples, k, l ) transentropy = te _ calc ( x _ pred, x _ hist, y _ hist, mcsamples ) return t...
[ 0.1737695038318634, 0.38946735858917236, 0.40434229373931885, -0.49960243701934814, -0.17705431580543518, -0.6727806925773621, 0.6990661025047302, 0.960809588432312, -0.057179830968379974, 0.9596413373947144, -0.3723978102207184, -0.07570002973079681, 0.3591398000717163, -0.586075901985168...
def insert ( self, k, x, p ) : temp = listnode ( k, x, p. next ) p. next = temp
[ 0.10844714939594269, 1.011328935623169, 0.2835971713066101, 0.026475995779037476, -0.5476787686347961, 1.427781105041504, -1.349301815032959, 1.3175874948501587, 0.0023008331190794706, 0.7848532795906067, -1.0669105052947998, -0.17912501096725464, -1.5389490127563477, -0.24762749671936035,...
def test _ running _ norm _ identity _ train ( normalization _ layer : type [ networks. basenorm ] ) : running _ norm = normalization _ layer ( 1, eps = 0. 0 ) running _ norm. train ( ) # stats will change in eval mode normalized = th. tensor ( [ - 1, - 1, - 1, - 1, 1, 1, 1, 1 ] ) # mean 0, variance 1 for _ in range ( ...
[ -0.7645530700683594, 0.304170161485672, 0.6740632653236389, 0.6264330744743347, 1.0207785367965698, 0.8957465887069702, 1.3181713819503784, 0.17665733397006989, -0.3063507676124573, -0.6457009315490723, -0.44541269540786743, -0.2969558537006378, -0.3875148594379425, -0.18342828750610352, ...
def guardar _ plot ( tension, tiempo, title = none ) : title = title + '. npz'np. savez ( title, x = tiempo, y = tension )
[ 0.6385837197303772, -0.7854668498039246, 0.34487318992614746, 0.5187801718711853, 0.09884211421012878, 0.3857530951499939, -0.4200310707092285, -1.1086379289627075, -0.07047967612743378, 0.3692462146282196, -0.5637690424919128, -0.08438129723072052, -0.789313018321991, -1.0712493658065796,...
def prepare _ for _ regex ( input _, task ='search') : splits = input _. split ('{ }') process = _ prepare _ for _ regex _ get _ processor ( task ) return (''. join ( process ( n, split ) for n, split in zip ( [ n for n, _ in enumerate ( splits ) ] [ 1 : ], splits ) ) + splits [ - 1 ] )
[ -1.1712042093276978, 0.5239568948745728, 0.49668967723846436, -0.09779251366853714, -0.404224157333374, -0.7536476254463196, 0.7039363384246826, 0.40339189767837524, -0.3714045584201813, 0.15610092878341675, -0.9784774780273438, 0.43129464983940125, 0.4036458730697632, -0.532364547252655, ...
def copy _ important _ words ( word _ list ) : # replace can be new _ word _ list = copy. deepcopy ( word _ list ) important _ word _ list = set ( word _ list ) - set ( query _ small _ change _ sets ) target = random. sample ( important _ word _ list, 1 ) [ 0 ] position = random. randint ( 0, len ( word _ list ) ) new ...
[ -0.5935835838317871, 0.4004596471786499, 0.5085248947143555, -0.28863218426704407, -0.7835456728935242, 0.8625632524490356, -0.14205457270145416, 0.36569517850875854, 1.3182356357574463, 1.494362235069275, -0.9257189035415649, 0.6632482409477234, -0.8026044368743896, 0.19988460838794708, ...
def look _ around ( self ) : # remove hidden objects when the user looks around visible _ objects = { } for k, v in self. current _ room ['objects']. items ( ) : if'hidden'in v and v ['hidden'] = = true : continue visible _ objects [ k ] = v print ( " there are { 0 } items in the room : ". format ( len ( visible _ obje...
[ 0.04834815859794617, -0.9882910847663879, 0.6734535098075867, -0.5722419619560242, -0.44147083163261414, 0.7156162261962891, 0.1847461760044098, -0.1232038363814354, -0.5217748880386353, 0.411781907081604, -0.7211198210716248, 1.237087368965149, -0.10189523547887802, 0.9671421647071838, ...
def ml _ assist _ enabled ( self ) - > optional [ bool ] : return pulumi. get ( self, " ml _ assist _ enabled " )
[ 0.5784291625022888, -0.29523545503616333, 0.5003900527954102, 0.29694613814353943, -0.21663181483745575, 1.13872230052948, -0.29031136631965637, 0.3336188495159149, 0.3050486147403717, 0.4384004473686218, -0.03414153307676315, 1.1369956731796265, -0.27038267254829407, -0.1441916972398758, ...
def scale _ selenium _ pods ( self, num ) : oc ( " scale ", " dc / selenium ", f " - - replicas = { num } " ) wait _ for _ ready ( " dc ", " selenium " ) self. expected _ num _ pods = num self. reconcile _ pods ( )
[ -1.4277831315994263, 0.12194128334522247, 0.47322553396224976, -0.01512375008314848, 0.621088445186615, -0.13163520395755768, -0.10405680537223816, 0.4075780212879181, 1.0315725803375244, 0.9249140620231628, -0.28457531332969666, -0.6719363927841187, 0.2796621322631836, -0.0007404290372505...
def r ( self, state ) : return self. reward [ state ]
[ -0.41977035999298096, 0.20489813387393951, 0.36789923906326294, -0.9036474823951721, -0.24202540516853333, -0.37216874957084656, -0.8138457536697388, -0.341161847114563, 0.9905884265899658, 0.5630293488502502, -0.09661903232336044, 0.6127232909202576, 0.5713781714439392, -0.986241340637207...
def description ( self, description ) : if description is not none and len ( description ) > 200 : raise valueerror ( " invalid value for ` description `, length must be less than or equal to ` 200 ` " ) # noqa : e501 self. _ description = description
[ 0.014412417076528072, 0.17843753099441528, -0.04395733401179314, 0.4023047089576721, 0.143416628241539, 0.4187169373035431, -0.07293117046356201, 0.28425273299217224, 0.772831916809082, 0.5389595627784729, -0.5482233762741089, -0.23122142255306244, 0.050737813115119934, 0.31937268376350403...
async def async _ added _ to _ hass ( self ) : self. _ subscribe _ homegear _ events ( )
[ 1.3635605573654175, 0.2667737305164337, 0.5080711841583252, 1.4829566478729248, 1.2513457536697388, -0.497326523065567, -0.5751202702522278, -0.13375508785247803, 1.2022894620895386, -0.3276025652885437, -0.4867151975631714, 0.6795116066932678, 0.6213256120681763, 0.7800076603889465, 0.9...
def edit _ category _ name ( data : dictionary ) : display _ categories ( data ) category _ choice = input ( " choose category : " ) if category _ choice in data. keys ( ) : new _ category = input ( " enter new category name : " ) data. update ( { new _ category : data [ category _ choice ] } ) del data [ category _ ch...
[ -0.1604144424200058, -0.4942234754562378, 0.4143924117088318, -0.6119886040687561, -0.6530901193618774, 0.22509947419166565, 0.7563614845275879, -0.12342244386672974, -0.351555198431015, 0.19627758860588074, -0.01759391278028488, 0.6191636323928833, 0.916985273361206, 0.32406869530677795, ...
def check ( self ) : moves = 0 for insect in self. insects : if insect. color = = self. turn : moves + = len ( insect. moves ) else : for pos in insect. moves : if self [ pos ] is not none : attacked _ insect = self [ pos ] if attacked _ insect. leader : self. caption ='setback'self. setback = true if len ( attacked _ ...
[ -0.11331494897603989, -0.3684130609035492, 0.6527903079986572, -0.06518132984638214, 0.8142910599708557, -0.6754087805747986, -0.28910404443740845, -0.19856229424476624, 0.09202907979488373, 0.654664933681488, 0.13552048802375793, -0.023217374458909035, -0.5629397034645081, -0.079421944916...
def _ _ init _ _ ( self ) : ginacfunction. _ _ init _ _ ( self, " stieltjes ", nargs = 1, conversions = dict ( mathematica ='stieltjesgamma ', sympy ='stieltjes'), latex _ name ='\ gamma')
[ 0.8592047691345215, -0.3641226589679718, 0.3749031722545624, 0.2198924720287323, -0.06014693155884743, -0.30720388889312744, 0.9677591323852539, -0.37226244807243347, -0.7476441860198975, 0.30779537558555603, -0.505084216594696, 0.06183794513344765, 0.5047165155410767, -0.12656152248382568...
def test _ related _ jobs ( self ) : job _ post _ 1 = create _ job ( title = " job 1 ", category = job _ category _ choices. design, company = self. test _ company ) job _ post _ 2 = create _ job ( title = " job 2 ", category = job _ category _ choices. design, company = self. test _ company ) response = self. client. ...
[ 1.0782572031021118, 0.8365171551704407, 0.5147271156311035, -0.03570619970560074, 0.9161262512207031, 0.9258366823196411, 0.3470350503921509, 0.0465569943189621, -0.39584314823150635, -1.2122786045074463, -0.25242143869400024, 0.01698945462703705, 0.11592478305101395, -0.25613343715667725,...
def _ _ init _ _ ( self, ox, oy, reso, rr ) : self. reso = reso self. rr = rr self. calc _ obstacle _ map ( ox, oy ) self. motion = self. get _ motion _ model ( )
[ 0.6913732886314392, -1.001015067100525, 0.6917154788970947, 0.364625483751297, 0.36935102939605713, 0.5028700232505798, 0.02927139215171337, -0.38952529430389404, 0.2843647003173828, -0.13131286203861237, 0.20591901242733002, -0.13013850152492523, 0.7383002042770386, -0.12375771999359131, ...
def create _ grism _ wavelengthrange ( outname = " niriss _ wavelengthrange. asdf ", history = " niriss grism - fiter wavelengthrange ", author = " stsci ", module = " n / a ", pupil = " n / a ", wavelengthrange = none, extract _ orders = none ) : ref _ kw = common _ reference _ file _ keywords ( reftype = " wavelength...
[ -0.04413435980677605, -0.11833155155181885, 0.5215187072753906, -0.1764896810054779, -0.12595263123512268, -0.7652248740196228, -0.260494589805603, 0.15919435024261475, -0.1963762789964676, 0.0563448928296566, -0.03614604473114014, 0.596099853515625, 0.03173759579658508, 0.6511111855506897...
def private _ link _ service _ connection _ state ( self ) - >'outputs. privatelinkserviceconnectionstateresponse': return pulumi. get ( self, " private _ link _ service _ connection _ state " )
[ -0.2770179510116577, -1.045421838760376, 0.273292601108551, -0.2517271041870117, 0.1879127323627472, 0.36110222339630127, 0.06556037068367004, -0.5776813626289368, 1.159832239151001, -0.9213534593582153, 0.4694633483886719, 0.6318343877792358, -0.3910275101661682, -0.2525317966938019, -0...
def now ( ) : if timezone : return timezone. now ( ) return datetime. now ( )
[ 0.008859945461153984, -0.2174249291419983, 0.2613813877105713, 1.2209595441818237, -0.18197691440582275, -0.3226502537727356, 0.3104751706123352, 0.14284877479076385, -0.40294626355171204, -0.08933724462985992, -0.2616387903690338, -0.892973780632019, -0.5199279189109802, 0.075242452323436...
def vpc _ peering _ connection _ id ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " vpc _ peering _ connection _ id " )
[ 0.8352822661399841, -0.6609912514686584, 0.2902805507183075, 0.33300089836120605, 1.0604760646820068, 1.1980329751968384, -0.22251006960868835, 0.23129093647003174, 1.0878010988235474, 0.4608847498893738, 0.3579772710800171, 1.0797075033187866, -1.0898263454437256, -0.3396422564983368, -...
def find _ header _ files ( hdr _ files, incl _ paths ) : result = [ ] processed _ files = set ( ) new _ files = set ( ) included _ src = { } while true : for hdr _ file in hdr _ files : if hdr _ file in processed _ files : continue processed _ files. add ( hdr _ file ) full _ path = find _ file ( hdr _ file, incl _ pa...
[ 0.9898372888565063, -0.4035402834415436, 1.0300358533859253, 0.6200515627861023, -0.11104761809110641, 0.18767507374286652, 0.6929367184638977, 0.30808818340301514, -0.2181168496608734, 0.31933268904685974, 0.4620889723300934, -0.27314645051956177, -0.8723008036613464, 0.6290766000747681, ...
async def stream _ async ( self, status : union [ " hostednumberorderinstance. status ", object ] = values. unset, sms _ capability : union [ bool, object ] = values. unset, phone _ number : union [ str, object ] = values. unset, incoming _ phone _ number _ sid : union [ str, object ] = values. unset, friendly _ name :...
[ -0.00020807933469768614, 0.6599525809288025, 0.599602997303009, 0.08111681789159775, -0.32253795862197876, -0.2066105604171753, -0.7543511986732483, 0.009622969664633274, 0.48438093066215515, -0.15930230915546417, -0.1323089301586151, 0.7633548974990845, 0.07212299853563309, 0.051167372614...
def elwise _ kernel _ runner ( kernel _ getter ) : def kernel _ runner ( * args, * * kwargs ) : repr _ ary = args [ 0 ] queue = kwargs. pop ( " queue ", none ) or repr _ ary. queue wait _ for = kwargs. pop ( " wait _ for ", none ) # wait _ for must be a copy, because we modify it in - place below if wait _ for is none ...
[ -0.09529042989015579, 0.04247395321726799, 0.8864964246749878, -0.13495253026485443, -1.1098103523254395, -0.42469272017478943, -0.4350128471851349, -0.0715908631682396, 0.35907766222953796, 0.4928772449493408, 0.4290446639060974, -0.05426430702209473, 0.6224140524864197, 0.504528880119323...
def fetch _ url ( url, dirpath ) : file _ name = url. split ('/') [ - 1 ] u = urllib2. urlopen ( url ) f = open ( os. path. join ( dirpath, file _ name ),'wb') meta = u. info ( ) log. debug ( " meta : % s " % meta ) file _ size ='' if meta. getheaders ( " content - length " ) : file _ size = int ( meta. getheaders ( " ...
[ 0.29461705684661865, -0.34759271144866943, 0.676921546459198, -0.22232292592525482, -0.09821999818086624, -0.0755356177687645, 0.062202394008636475, 0.2909758687019348, -0.06956741213798523, 0.3689700961112976, -0.0981777161359787, 0.6861088275909424, 0.4982130825519562, -0.005809386260807...
def get _ colors ( self, num _ lights = 1 ) - > list [ color ] : splits = even _ split ( range ( num _ lights ), self. sum _ weights ) random. shuffle ( splits ) splits _ iter = iter ( splits ) res = [ ] for c, weight in self. _ color _ weights. items ( ) : for _, split in zip ( range ( weight ), splits _ iter ) : res....
[ -0.666525661945343, 0.4993538558483124, 0.5346583724021912, 0.13850705325603485, 0.6062349677085876, -0.28069156408309937, 0.4711059629917145, -0.1470111459493637, 0.8161188960075378, -0.5073204040527344, 0.03810027241706848, -0.31530407071113586, -0.5121957063674927, 0.4671982526779175, ...
def ls ( self ) : # enables colorama and autoreset the color of the cmd colorama. init ( autoreset = true ) # wait untill all the files and folders are avaible in webpage elements = self. driver. find _ elements _ by _ xpath ( " / / div [ @ data - item - index ] " ) while len ( elements ) = = 0 : elements = self. drive...
[ -0.09787064045667648, -0.4325086772441864, 0.7689383625984192, 0.08393742144107819, 0.34962382912635803, 0.12413997948169708, 0.3254453241825104, 0.4127654433250427, 0.5923939347267151, -0.36602872610092163, 0.5677242875099182, 0.833950936794281, 0.27569717168807983, 1.5177961587905884, ...
def create _ pre _ trained _ embedding _ matrix ( f _ pre _ trained _ embed, word2index, suffix ) : # filter for performance reasons ( big file... ) f _ pre _ trained _ embed _ filter = f _ pre _ trained _ embed. replace ( ". txt ", ". filtered { }. txt ". format ( suffix ) ) filterwordembedding ( f _ pre _ trained _ e...
[ -0.5142145752906799, -0.2425338327884674, 0.5124678015708923, -0.6786919832229614, -0.6113285422325134, 0.17348287999629974, 1.2855573892593384, 0.7293753623962402, -0.16557765007019043, 0.37361910939216614, -0.16205064952373505, 0.7633734941482544, 0.1993226855993271, 0.18885156512260437,...
def max ( self ) : return self. apply ( max )
[ 0.17847751080989838, 0.07708115875720978, 0.3247046172618866, 0.9480695724487305, 0.43656158447265625, -0.30889320373535156, -0.9234843850135803, 0.6079743504524231, 0.49090003967285156, -0.9050797820091248, 0.18425290286540985, 0.1721910685300827, 0.1448107808828354, -0.3112567663192749, ...
def get ( self ) : env = os. environ self. rendertemplate ('landing. html ', {'user': self. getuserinfo ( ) } )
[ 0.5653600096702576, 0.09924185276031494, 0.318125456571579, 0.4505016505718231, -0.5618119239807129, 1.4008324146270752, 0.08665505051612854, 0.1379154920578003, -1.0156792402267456, -0.4948728084564209, 0.6379185914993286, -0.5962391495704651, -0.476997971534729, 0.5711694955825806, -0....
def _ init ( self ) : # cells grid. each item is either 0 for a dead cell or 1 for a live # one. self. cells = np. zeros ( ( self. width, self. height ), dtype = np. int8 )
[ -0.5578661561012268, -0.1453193724155426, 0.45738592743873596, 0.3340625464916229, 1.1927934885025024, -0.14532171189785004, 0.4173239767551422, -0.20721492171287537, -0.27811557054519653, -0.06598099321126938, 0.31468868255615234, -0.17968986928462982, 0.039040517061948776, 0.982993423938...
def identity ( payload ) : user _ id = payload ['identity'] return usermodel. find _ by _ id ( user _ id )
[ 0.06785719096660614, -0.15123330056667328, 0.21463008224964142, 0.7640894055366516, 1.0265569686889648, 0.35849565267562866, -0.4464797377586365, -0.746315062046051, 0.28550800681114197, -0.12424679100513458, -0.4695378243923187, -0.8438606262207031, -0.11200651526451111, -0.36409026384353...
async def test _ no _ services ( hass : homeassistant ) - > none : result1 = await hass. config _ entries. flow. async _ init ( domain, context = { " source " : config _ entries. source _ user } ) assert result1 [ " type " ] = = flowresulttype. form assert result1 [ " errors " ] is none with patch ( " aussiebb. asyncio...
[ -0.30556029081344604, 0.848811686038971, 0.6032381653785706, -0.7453402280807495, 0.7835691571235657, -0.2549803853034973, -0.032756030559539795, -1.1151819229125977, 0.593826949596405, -0.9931848645210266, 0.25484636425971985, -0.3008131980895996, 0.2514289319515228, 0.7181313633918762, ...
def options ( self ) : return self. cf. options ( self. main _ section )
[ 0.39026665687561035, -0.27379846572875977, 0.28884074091911316, 0.14573729038238525, 1.098108172416687, -0.42247700691223145, 0.006243806332349777, -0.5966753959655762, -0.7050827145576477, -0.3066439628601074, 0.8105009198188782, -0.5592122077941895, -0.06911138445138931, 0.78300255537033...
def _ _ init _ _ ( self, year1, year2 ) : self. year1 = year1 self. year2 = year2
[ -0.37525516748428345, -1.0515093803405762, 0.5725342631340027, 0.14364959299564362, -0.6784636974334717, 0.9170696139335632, -0.6870779991149902, 0.3672662675380707, -0.4078446328639984, 0.12276707589626312, -0.44088301062583923, 0.8352230787277222, -0.14179466664791107, 0.2221209406852722...
def wait ( self, image, timeout = none ) : self. _ entitycopies [ image. id ] = copy. copy ( image ) if timeout is none : self. _ wait ( image ) else : result = self. _ timeout ( self. _ wait, ( image, ), timeout _ duration = timeout / 1000. 0 )
[ -1.0405117273330688, 0.5842522382736206, 0.4545331299304962, 0.2504462003707886, -0.45135778188705444, 0.3837150037288666, -0.4042355716228485, 0.09981823712587357, 0.19018158316612244, 0.7470501661300659, 0.15589985251426697, -0.18259233236312866, 0.4541669189929962, 0.2597092092037201, ...
def select _ cam _ device _ num ( ) - > int : print ('[ camera device ]') print ('checking camera devices...') cam _ list = get _ cams _ list ( ) print ('= > ', cam _ list ) device _ num = int ( get _ ans ('select one camera device ( { } ) : '. format ( list _ to _ comma _ str ( cam _ list ) ), cam _ list ) ) return de...
[ -0.8259958028793335, -0.04112016037106514, 0.5020402669906616, 1.511610507965088, -0.10880040377378464, -0.7233060002326965, 1.2717584371566772, -0.17562335729599, 0.9627163410186768, -0.5359594225883484, -0.45030567049980164, 0.7077285051345825, -0.554149866104126, 0.5015435218811035, 1...
def get _ targets ( self ) : return self. _ to _ dense _ design _ matrix ( ) [ 1 ]
[ -0.7057792544364929, 0.337185263633728, 0.37197601795196533, 0.9116836190223694, 1.878458023071289, -0.3360025882720947, 0.00037135431193746626, -0.2881983816623688, 0.5056291222572327, -0.933030903339386, 0.20258598029613495, 0.9709592461585999, 0.1284911185503006, -0.6861045956611633, ...
def validate ( self, attrs : dict ) - > any : collection = attrs [ " collection " ] collection _ use _ case, collection _ food _ type, * other = collection. split ( " _ " ) check _ use _ cases = measurement. objects. order _ by ( " use _ case " ). distinct ( " use _ case " ). values _ list ( " use _ case ", " food _ ty...
[ -0.2523535192012787, 0.5220898389816284, 0.7028375864028931, 0.2029164880514145, 0.06518135964870453, 0.4277381896972656, 0.5878689885139465, -0.8768496513366699, -0.21986021101474762, 0.7266391515731812, 0.9065827131271362, 0.06746038049459457, 0.3524065911769867, 0.8096148371696472, 0....
def create _ programmer ( board, * args, * * kwargs ) : # for now, always create an sspi interface. # we can take an'interface'argument later to differentiate. return spiflash ( board, * args, * * kwargs )
[ 0.7909159064292908, 0.9812011122703552, 0.32029369473457336, 0.4663490653038025, -0.6669808626174927, 0.1505509614944458, -0.3925510346889496, 0.6519713997840881, 0.14095865190029144, -0.8448652029037476, -0.2871418297290802, -0.20824484527111053, -1.1364613771438599, 0.16597026586532593, ...
def generate _ images ( dataframe ) : # find the row with the parameters that generated the highest r11 max _ r _ 11 = np. max ( dataframe ['r _ 11'] ) max _ r _ 11 _ combo = dataframe [ dataframe ['r _ 11'] = = max _ r _ 11 ] image _ dict = { } true _ galaxy = max _ r _ 11 _ combo ['original _ gal']. values [ 0 ] imag...
[ -0.7110231518745422, 0.2190106362104416, 0.6952003836631775, -0.01460298616439104, 0.24324394762516022, -0.2074384093284607, -0.405673623085022, 0.7058397531509399, -0.712291419506073, 0.42705458402633667, -0.5195842385292053, -0.11419615149497986, 0.6722517609596252, 0.6942699551582336, ...
def display ( self ) : self. viewer. display ( self. tournament, self. turn )
[ 0.13891077041625977, -1.1483064889907837, 0.2112434208393097, -1.2570441961288452, -0.13310083746910095, 0.11940096318721771, 0.6857575178146362, 0.5616711378097534, 0.30629605054855347, -0.2608473598957062, 1.0202462673187256, 0.9321047067642212, 0.542322039604187, 0.05751227214932442, ...
def find _ intense _ points ( lidar, th = none ) : # th = lidar [ int ] > np. median ( lidar [ int ] [ lidar [ int ] > np. median ( lidar [ int ] ) ] ) if th is none : th = 210 t = lidar [ int ] > th filtered _ int = lidar [ int ] filtered _ long = lidar [ long ] filtered _ lat = lidar [ lat ] filtered _ elev = lidar [...
[ -0.285597562789917, -0.1864965409040451, 0.7055710554122925, -0.7528153657913208, 0.39178940653800964, 0.00531864445656538, -0.744077742099762, -0.0783398300409317, -0.4166669249534607, 1.0033059120178223, -0.22789283096790314, -0.02168874628841877, 0.6970983147621155, -0.35613521933555603...
def save ( self, path _ dest : any, canvas _ cls : type [ figurecanvasbase ] | none = none, * * params, ) - > none : # ensure destination path if folder does not exist if ( isinstance ( path _ dest, ( str, path ) ) and not path ( path _ dest ). parent. exists ( ) ) : path ( path _ dest ). parent. mkdir ( parents = true...
[ -0.30602404475212097, 0.41235512495040894, 0.7698130011558533, -0.23796339333057404, 0.243028923869133, 0.3406992256641388, 0.8705577254295349, -0.6851246953010559, -0.4934472441673279, -0.4002724289894104, -0.6443115472793579, 0.5978136658668518, 0.2654169499874115, 0.2331184446811676, ...
def tag _ noun ( node, context ) : return do _ noun ( word _ from _ file ('data / nouns'), node. attribute. split ( ) )
[ -0.45213720202445984, 0.1508772075176239, 0.11405745148658752, -0.7504891753196716, 0.6754595637321472, -0.5649412870407104, -0.654672384262085, 0.4801950454711914, -0.6913874745368958, 0.4124744236469269, -0.314691424369812, 0.19869033992290497, 0.751402735710144, 0.2557578682899475, -0...
def explode ( self, columns : " union [ str, list [ str ] ] " ) - > " dataframe " : if isinstance ( columns, str ) : columns = [ columns ] return wrap _ df ( self. _ df. explode ( columns ) )
[ -1.3636775016784668, 1.4982151985168457, 0.13140016794204712, 0.7184219360351562, 0.34418612718582153, -0.5363062024116516, -0.6665451526641846, 0.1394955962896347, -0.5928574204444885, -0.6801032423973083, 0.052110034972429276, 0.33885499835014343, -0.39570891857147217, -1.359971046447754...
def get _ logger ( filename = none ) : import logging import inspect # get caller's filename to use as log file name. frame = inspect. stack ( ) [ 1 ] # caller frame filename _ with _ extension = os. path. basename ( inspect. getfile ( frame [ 0 ] ) ) filename = filename _ with _ extension. split ( '.') [ 0 ] log _ dir...
[ -0.06050848215818405, -0.42362409830093384, 0.9303421974182129, -0.06329677253961563, -0.3946894109249115, 0.1074438989162445, -0.6661481857299805, 0.2346869856119156, -0.29998594522476196, -1.102534294128418, 0.38332557678222656, 0.14329296350479126, -0.04469972103834152, 0.83104479312896...
def imagetoarray ( i ) : a = gdalnumeric. fromstring ( i. tobytes ( ),'b') a. shape = i. im. size [ 1 ], i. im. size [ 0 ] return a
[ -0.4393637180328369, -0.9860122799873352, 0.49015605449676514, -0.9262887239456177, 0.03724638745188713, 0.24828797578811646, 0.7015992403030396, -0.7989929914474487, 0.2966498136520386, 0.5331936478614807, -0.3999762237071991, 0.21395844221115112, 0.13650624454021454, -0.8770068287849426,...
def add ( self, agent ) : self. agents. append ( agent ) agent _ class = type ( agent ) self. agents _ by _ type [ agent _ class ]. append ( agent )
[ -0.7820273041725159, -0.9998545050621033, 0.20564571022987366, 0.10507907718420029, 0.9343805313110352, 0.18303102254867554, -0.5530429482460022, -0.2906608581542969, 1.331325650215149, -0.2454751878976822, -0.12764720618724823, 0.7352496981620789, 0.28103649616241455, 0.9915053844451904, ...
def get _ login _ by _ sid ( self, sid ) : log _ list = login ( self. db ). list ( session _ id = sid ) if len ( log _ list ) = = 0 : return none return log _ list [ 0 ]
[ 0.09340409189462662, -0.6672167778015137, 0.4484594762325287, 0.41802874207496643, 0.08614640682935715, -0.7908907532691956, -0.8232446312904358, -0.706757128238678, 1.6635055541992188, 0.10457021743059158, -0.2062026411294937, 0.49406713247299194, -0.05178150534629822, -0.2308981865644455...
def to _ python ( self, value ) : return value
[ -1.0533347129821777, -0.2920191287994385, 0.17043434083461761, -0.9336968064308167, 0.2793891429901123, 0.3998657763004303, -0.1311677098274231, -0.9792507290840149, 0.49577751755714417, -0.052081067115068436, -0.9762554168701172, 0.69279545545578, 0.24108123779296875, -0.25319036841392517...
def word _ search ( board, word ) : width = len ( board [ 0 ] ) height = len ( board ) def search _ helper ( word _ part, y, x, seen ) : " " " recursive search function called once initial character found. " " " to _ check = [ ] if ( y - 1 ) > = 0 and ( ( y - 1 ), x ) not in seen : to _ check. append ( ( y - 1, x ) ) i...
[ 0.4292462468147278, 0.24841392040252686, 0.8216912746429443, -0.22557510435581207, -1.305245041847229, -0.5847897529602051, 0.7157109379768372, -0.6299269795417786, -0.2509477436542511, 0.3651958405971527, -0.5639426708221436, 0.044829487800598145, -0.7553349137306213, 0.6451273560523987, ...
def logout ( request ) : auth _ logout ( request ) # info ( request, _ ( " successfully logged out - come back soon! " ) ) return redirect ( " / " )
[ -0.8624195456504822, 0.021800218150019646, 0.3281315565109253, 0.521579921245575, 0.14803187549114227, 0.2376822978258133, 0.6718150973320007, 0.31817516684532166, 0.026378825306892395, -0.670226514339447, 0.41866496205329895, 0.15437248349189758, 1.2382030487060547, -0.9791653752326965, ...
def actions _ required ( self ) - > optional [ str ] : return pulumi. get ( self, " actions _ required " )
[ 0.28407764434814453, -0.2146017998456955, 0.539495587348938, 0.7008664011955261, 1.2741272449493408, 1.2028239965438843, -0.16256088018417358, -0.6804640293121338, 0.9377481937408447, 0.3167276680469513, 0.11953692138195038, 0.8756355047225952, 0.15382368862628937, -0.9781923890113831, -...
def clip _ to _ image _ transform ( self ) : return clip _ to _ image _ transform ( self. width, self. height )
[ -1.4209328889846802, -0.6923771500587463, 0.41881030797958374, -0.15807215869426727, -1.0032395124435425, -0.4882640242576599, 0.12610062956809998, -0.41397589445114136, 0.6409143805503845, 0.43889084458351135, 0.1651194840669632, 0.265947550535202, 1.167210340499878, -0.4345255494117737, ...
def setinputs ( self, * * inputs ) : for key in inputs : # to support both upper and lower case if key. lower ( ) = = " j " : # to support both numerical / boolean values or connector # instances if isinstance ( inputs [ key ], connector ) : self. j = inputs [ key ] else : self. j. state = int ( inputs [ key ] ) elif k...
[ -0.8888975977897644, -0.36486437916755676, 0.7966733574867249, 0.023207588121294975, -0.5327608585357666, 0.8646172881126404, 0.48159703612327576, -0.5592817664146423, 0.029055286198854446, -0.3026883602142334, 0.14947223663330078, -0.05383201688528061, -0.2518917918205261, 0.6895435452461...
def swift _ format _ of _ message ( mt _ type ) : mt _ type = str ( mt _ type ) if re. match ( r " ^ ( mt ) { 0, 1 } \ d { 3 } ( cov ) { 0, 1 } $ ", mt _ type ) is not none : # starts optionally with mt. followed by 3 digits. ends optionally with cov. return'mt'elif re. match ( r " ^ [ a - za - z ] { 4 } [ a - za - z0 ...
[ 0.7207284569740295, -0.3382876515388489, 0.6357847452163696, -0.5344612002372742, -0.23059047758579254, 0.034210044890642166, -0.3332742154598236, -0.7001808881759644, 0.14980944991111755, 0.4681340456008911, 0.8845598697662354, 0.41185376048088074, -0.08262456208467484, 0.6253408789634705...
def guardar _ accion ( self, ruta _ cancion, accion ) : self. acciones _ tomadas. apilar ( ( ruta _ cancion, accion ) )
[ -0.791812002658844, -1.0321707725524902, 0.43831950426101685, 0.8293509483337402, 1.0648573637008667, -0.053081512451171875, -0.1738017350435257, 0.13442152738571167, 0.9431624412536621, 0.5775869488716125, -0.037423379719257355, 0.7706870436668396, -0.18369688093662262, -0.265666425228118...
def transaction _ details ( request ) : if request. method = ='get': info = transfer. objects. filter ( tracking _ id = request. get ['tracking _ id'] ). first ( ) content = {'title':'transfer details'} content ['track _ id'] = info. tracking _ id content ['from _ to'] = " from { 0 } - to { 1 } ". format ( ( info. app....
[ 0.8207901120185852, 0.1551976054906845, 0.879310667514801, -0.8336413502693176, -0.13594911992549896, 0.8025630116462708, -0.09764329344034195, -0.5571497082710266, -0.6422368288040161, 0.11824122071266174, 0.5582313537597656, -0.5576730370521545, 0.7747531533241272, 0.34656140208244324, ...
def test _ load _ cow ( self ) : glb = data _ dir / " cow. glb " self. asserttrue ( glb. is _ file ( ) ) device = torch. device ( " cuda : 0 " ) mesh = _ load ( glb, device = device ) self. assertequal ( mesh. device, device ) self. assertequal ( mesh. faces _ packed ( ). shape, ( 5856, 3 ) ) self. assertequal ( mesh. ...
[ 0.1805315911769867, 0.74918133020401, 0.8159152269363403, 0.3588182032108307, 0.355241596698761, 0.7616509199142456, 1.037146806716919, -1.0775777101516724, -0.3858325481414795, -0.833875298500061, -0.8988598585128784, 0.23793071508407593, 0.12657158076763153, 0.2780027687549591, 0.25925...
def _ _ init _ _ ( self ) : self. students = [ ] # list of student objects self. grades = { } # map id _ num - > list of grades self. is _ sorted = true # true uf self. student is sorted
[ -0.6030007600784302, -0.38395577669143677, 0.49610310792922974, 0.26216834783554077, -0.1629120260477066, 0.7325633764266968, 0.40391096472740173, 0.4612087607383728, -0.3139311671257019, -0.2573242783546448, -1.0347634553909302, -0.44772249460220337, -0.018506353721022606, 0.9045492410659...
def reset _ message _ subscription ( self, stream, subscription, message _ id, local = false ) : if self. persistent : url _ endpoint ='/ streams / persistent / stream / { } / subscription / { }? local = { } '. format ( stream, subscription, local ) # else : # url _ endpoint ='/ streams / non - persistent / stream / { ...
[ 0.18408553302288055, -0.22122490406036377, 0.8162720203399658, 0.047046348452568054, -0.04790204390883446, -0.7980507016181946, -0.06648126244544983, -0.42086365818977356, -0.46776527166366577, 0.6419600248336792, 0.2137622833251953, 1.568955898284912, -1.5627306699752808, -0.3580074906349...
def read _ and _ measure _ time ( path ) : start _ time = time. time ( ) try : f = open ( path,'rb') data = f. read ( ) return data except filenotfounderror as err : logger. error ( err ) raise else : f. close ( ) finally : stop _ time = time. time ( ) dt = stop _ time - start _ time logger. info ( " time required for ...
[ -0.5494769215583801, -0.987206220626831, 0.8455331921577454, -0.5481092929840088, -0.4448423385620117, 0.8993490934371948, -0.0773245170712471, -0.5953925848007202, -0.707065224647522, 0.8453508019447327, 0.2630854845046997, -0.3055475950241089, -0.07247201353311539, 0.34580981731414795, ...
def player _ search _ name ( self, player _ name, player _ type = " current " ) : url = " http : / / www. nfl. com / players / search? " params = { " category " : " name ", " filter " : player _ name, " playertype " : player _ type } return self. get ( url, params = params )
[ -1.969801425933838, 0.010561500675976276, 0.48695045709609985, -0.14976519346237183, -0.016248580068349838, -0.35807570815086365, -1.437034249305725, -1.2736440896987915, 0.04319768026471138, 1.3608427047729492, -0.3879239559173584, 0.3754570484161377, -1.3312832117080688, 0.40486094355583...
def summarize _ data _ artifact ( self, input _ artifact _ path, output _ visualization _ path ) : subprocess. run ( ['qiime ','demux ','summarize ','- - i - data ', input _ artifact _ path,'- - o - visualization ', output _ visualization _ path ] ) return output _ visualization _ path
[ -0.2878941595554352, 1.0181293487548828, 0.5087822079658508, -0.5911962985992432, -0.6761120557785034, 0.015300840139389038, 0.36600831151008606, 0.1803901493549347, 0.24935759603977203, -0.3689236640930176, 0.4954496920108795, 0.48486679792404175, 0.5765195488929749, -0.3015294075012207, ...
async def test _ alarm _ state ( v3 _ server ) : async with aiohttp. clientsession ( ) as session : simplisafe = await get _ api ( test _ email, test _ password, session = session, client _ id = test _ client _ id ) systems = await simplisafe. get _ systems ( ) system = systems [ test _ system _ id ] assert system. sta...
[ 0.3550814092159271, 0.03385721147060394, 0.17152266204357147, 0.5469948053359985, 0.8102179765701294, 0.8636184930801392, -0.49260377883911133, -0.33182811737060547, 1.3867288827896118, -0.39555081725120544, -0.6663089394569397, 0.9117079973220825, -0.08306313306093216, 0.1237708330154419,...
def load _ folder ( path ) : files = glob ( path + " / *. npy " ) loaded = { t _ name ( f ) : np. load ( f ) for f in tqdm ( files ) } # tt = [ loaded [ t _ name ( f ) ]. shape for f in files ] # import pdb ; pdb. set _ trace ( ) # checks sizes how they go down return loaded
[ -0.13253659009933472, -0.3974876403808594, 0.6251392364501953, -1.0867565870285034, -0.6776412725448608, -0.21805892884731293, 0.8174792528152466, -1.0523227453231812, -0.7646328210830688, 0.4111059308052063, -0.9665731191635132, -0.6004337072372437, 0.2520162761211395, 0.4298604130744934,...
def parse _ file ( filename ) : all _ series = [ ] with open ( filename ) as f : for line in f : line = [ int ( i ) for i in line. strip ( ) ] all _ series. append ( line ) f. close ( ) return all _ series
[ 0.28329581022262573, -0.44106417894363403, 0.49625617265701294, -0.09841591864824295, 0.25443533062934875, 0.6950452327728271, -0.3156215250492096, 1.0710771083831787, -0.421048104763031, -0.11748149991035461, -0.19162465631961823, 0.3576827645301819, 0.2075713872909546, 0.5258859992027283...
def evolutionvectorfornode ( self, nodeid ) : v = np. zeros ( len ( self. _ sortednodes ) ) v [ nodeid ] = 1 return ( v )
[ -1.1018562316894531, 0.5894327759742737, 0.1696975976228714, -1.1223931312561035, 0.9437087774276733, -0.18030492961406708, 0.10803086310625076, -0.5912356376647949, 0.30267637968063354, 0.4331454336643219, 0.11631540954113007, 1.0321686267852783, 0.49064454436302185, 0.8753299713134766, ...
def _ generate _ random _ calibration _ logits ( self, nsamples, nclasses ) : tf. random. set _ seed ( 1 ) logits = 2. 0 * tf. random. normal ( ( nsamples, nclasses ) ) py = tfp. distributions. categorical ( logits = logits ) labels = py. sample ( ) logits _ other = 2. 0 * tf. random. normal ( ( nsamples, nclasses ) ) ...
[ -0.7062496542930603, -0.5139614939689636, 0.42644810676574707, -0.24001312255859375, -0.3603983223438263, 1.0395768880844116, -0.38274726271629333, -0.27582767605781555, 0.6753228306770325, 0.502479612827301, -0.44622790813446045, -0.01891719549894333, 0.12408715486526489, 0.65406507253646...
def video _ body ( select _ port : optional [ serial ], mouse _ info : mouseinfo, camera _ info : deviceinfo, save _ video : bool, save _ csv : bool, frame _ color : bool ) - > none : cap = cv2. videocapture ( sys. argv [ 1 ] if len ( sys. argv ) = = 2 and os. path. isfile ( sys. argv [ 1 ] ) else camera _ info. num ) ...
[ 0.14470958709716797, -0.4524272680282593, 0.8205068111419678, 1.6254661083221436, 0.21507953107357025, -0.7574023008346558, -0.3451692461967468, -0.5285191535949707, 0.3219684958457947, 0.3080361783504486, -0.48844441771507263, 0.7924677729606628, 0.36193352937698364, 0.5426755547523499, ...
def get _ game ( self, request ) : game = get _ by _ urlsafe ( request. urlsafe _ game _ key, game ) if game : if game. game _ over : return game. to _ form ('this game has ended') else : return game. to _ form ('game ongoing. time to make a move!') else : raise endpoints. notfoundexception ('game not found!')
[ -0.3355756402015686, 0.05360061302781105, 0.5184886455535889, 0.23525987565517426, -0.1912832409143448, 0.12934361398220062, -1.3978723287582397, -0.639423668384552, -0.5850153565406799, 1.8259551525115967, 1.462118148803711, -0.26899945735931396, -0.3676270544528961, 0.04257363826036453, ...
def getstartindex ( self ) : return _ itkimageserieswriterpython. itkimageserieswriteriuc3iuc2 _ getstartindex ( self )
[ 0.14062058925628662, 0.0798761248588562, 0.2597465217113495, 0.04890526831150055, 0.3902854919433594, 0.6857548356056213, 0.5991438031196594, 0.6277481913566589, -0.3814670145511627, -0.36312931776046753, -0.7534424662590027, 1.0067806243896484, -0.3411220908164978, -0.9634862542152405, ...
def wtf _ fail _ json ( self, * * kwargs ) : self. add _ path _ info ( kwargs ) kwargs. setdefault ('failed ', true ) kwargs. setdefault ('invocation ', {'module _ args': self. params } ) kwargs = ansible. module _ utils. basic. remove _ values ( kwargs, self. no _ log _ values ) self. do _ cleanup _ files ( ) raise mo...
[ -0.44519898295402527, -0.1833081990480423, 0.6661109924316406, -0.40309247374534607, 0.3801894187927246, -0.19880376756191254, -0.18463216722011566, -0.18817664682865143, -0.9692016839981079, 0.4685955345630646, -0.06252279132604599, 0.7559112906455994, -0.1706380844116211, 1.3262937068939...
def signal _ windows ( sections, start, end, warn = false ) : import numpy as np early _ section = sections < start late _ section = sections > end if any ( early _ section. flatten ( ) ) > 0 : start = 0 if warn : print ( " warning : window starts before start point, new start point is " + str ( start ) ) if any ( late...
[ -0.05258956924080849, -0.23816698789596558, 0.8734076023101807, 0.284679114818573, -0.6712777614593506, -0.028645755723118782, 0.7098615765571594, -0.007722432725131512, -0.33658531308174133, 1.0162575244903564, 0.09170351922512054, 0.5519840717315674, -0.512656569480896, 1.020766019821167...
def parse _ deps _ from _ path ( self, infile _ path, classpath _ indexer ) : with open ( infile _ path,'r') as infile : return self. parse _ deps ( infile, classpath _ indexer )
[ -0.3853836953639984, -1.2903130054473877, 0.2604226768016815, 0.24258801341056824, -0.3478030264377594, 0.3424339294433594, 0.7409000992774963, -0.06739208847284317, -0.2664545178413391, 0.19342249631881714, -0.3451010584831238, -0.39689114689826965, -0.2783361077308655, -0.572601318359375...
def get _ commit _ by _ id ( self, commit _ id ) : raise notimplementederror
[ 0.8066272735595703, -1.1429190635681152, 0.593267023563385, 0.5982105135917664, 0.6808416247367859, -0.6521710753440857, -0.3443349599838257, -0.8718879818916321, -0.041603442281484604, 0.3772508203983307, 0.7992293238639832, 0.45431676506996155, 0.01890706457197666, 0.14528553187847137, ...
def print _ report ( self, data ) : context = ( self. _ context or { } ) datas = {'ids': context. get ('active _ ids ', [ ] ) } res = self. read ( ) res = res and res [ 0 ] or { } datas. update ( {'form': res } ) if datas ['form']. get ('xls _ output ', false ) : obj _ pr = self. env ['report. ng _ hr _ payroll. payrol...
[ 0.2721017897129059, 0.5889142751693726, 1.149269461631775, -0.8775311708450317, -0.3418125510215759, -0.048334721475839615, -0.10182005167007446, -0.07201274484395981, -0.8543325662612915, -0.08200761675834656, 0.5276734232902527, 0.1594514399766922, 0.0967615619301796, 0.1810244619846344,...
def getglobvalue ( globs, path ) : import fnmatch result = none for glob in globs : if fnmatch. fnmatchcase ( path, glob [ 0 ] ) : result = glob [ 1 ] break return result
[ 0.3032118082046509, -0.4296155571937561, 0.6864104270935059, 1.0908863544464111, -0.38650834560394287, 0.2232317328453064, 0.4818246066570282, -0.9919772744178772, -0.5103598237037659, 0.07727763056755066, 0.5822351574897766, 0.2938137650489807, -0.9525679349899292, 0.11461859941482544, ...
def stream ( self, status : union [ " hostednumberorderinstance. status ", object ] = values. unset, sms _ capability : union [ bool, object ] = values. unset, phone _ number : union [ str, object ] = values. unset, incoming _ phone _ number _ sid : union [ str, object ] = values. unset, friendly _ name : union [ str, ...
[ 0.11986096203327179, 0.4390954077243805, 0.5468589067459106, 0.26479238271713257, -0.21033824980258942, 0.3209194242954254, -0.8418781161308289, 0.025906328111886978, 0.27125462889671326, -0.29256442189216614, -0.2796662151813507, 0.7443416714668274, -0.21504569053649902, -0.00131636683363...
def chunks ( l, n ) : for i in range ( 0, len ( l ), n ) : yield l [ i : i + n ]
[ -0.28746387362480164, 0.5728985071182251, 0.39129555225372314, -0.017833421006798744, -0.16806411743164062, 0.5943106412887573, -1.019998550415039, -0.4482986330986023, -0.38011443614959717, -0.7051392793655396, -0.6505395174026489, -0.3429281711578369, 0.0986400693655014, 0.60941970348358...