text
stringlengths
25
2.19k
embedding
listlengths
768
768
def parse _ option _ recursive _ exclude ( parser ) : parser. add _ argument ('- r ','- - recursive ', action ='store _ true ', dest ='recursive ', default = false, help = " look for yaml files recursively " ) parser. add _ argument ('- x ','- - exclude ', dest ='exclude ', action ='append ', default = [ ], help = " pa...
[ 0.755864679813385, 0.8386669158935547, 0.7992777824401855, 0.3639694154262543, -0.34481102228164673, 0.5242791175842285, 1.0829930305480957, 0.0613161101937294, -0.0013307167682796717, -0.4840356409549713, -0.6330262422561646, -0.3688480854034424, -0.22421036660671234, 0.9988307356834412, ...
def get _ learning _ rate ( optimizer ) : if len ( optimizer. param _ groups ) > 0 : return optimizer. param _ groups [ 0 ] ['lr'] else : raise valueerror ('no trainable parameters.')
[ 0.5191177725791931, 0.47591182589530945, 0.18144601583480835, 0.44916361570358276, 0.14408044517040253, -0.6089723110198975, -0.42263278365135193, -0.1675422191619873, -0.7163140773773193, 0.6956796646118164, 0.755264937877655, 0.07492591440677643, -0.9596521258354187, 1.0653587579727173, ...
def getunicodecurrencysymbols ( self ) : if not self. _ unicodecurrencysymbols : self. _ unicodecurrencysymbols = [ \'\ u0024 ', # dollar sign'\ u00a2 ', # cent sign'\ u00a3 ', # pound sign'\ u00a4 ', # currency sign'\ u00a5 ', # yen sign'\ u0192 ', # latin small letter f with hook'\ u060b ', # afghani sign'\ u09f2 ', ...
[ -0.6086862683296204, 0.0860942006111145, 0.6397936344146729, -0.7926743030548096, -0.10879041999578476, -0.032239917665719986, 0.26544901728630066, -0.20485800504684448, 0.3700621426105499, -0.16616636514663696, -1.527574896812439, -0.30009725689888, -0.21632622182369232, -0.12982285022735...
def _ f1 _ draw _ ( self, * opts ) : if not hasattr ( self,'_ tf1') : self. _ tf1 = _ tf1 _ ( self ) if type ( self ) in ( ostap. math. positive, ostap. math. positiveeven, ostap. math. monothonic, ostap. math. convex, ostap. math. convexonly, ostap. math. positivespline, ostap. math. monothonicspline, ostap. math. con...
[ -0.921744167804718, 0.32888326048851013, 0.7106168270111084, 0.07490020990371704, -0.2735026776790619, 0.5324316620826721, 0.29025399684906006, -0.6479053497314453, 0.05680566653609276, -0.8799688220024109, 0.6016896367073059, -0.20432643592357635, 0.39182814955711365, -0.6584898829460144,...
def get ( self, request, * args, * * kwargs ) : filename = " / home / bivestinc / portfolio / media / daniel _ resume _ 2017. pdf " wrapper = filewrapper ( open ( filename,'rb') ) response = httpresponse ( wrapper, content _ type ='text / plain') response ['content - disposition'] ='attachment ; filename = % s'% os. pa...
[ 0.28252214193344116, -1.0849689245224, 0.566720724105835, -1.5055530071258545, 0.3650042414665222, -0.5300944447517395, 0.2708228528499603, -0.2836988568305969, 0.06391196697950363, -0.2032521516084671, 0.4669366180896759, 0.049765072762966156, -0.4235993027687073, -1.40562903881073, 0.0...
def run ( self ) : target = getattr ( self,'_ target') if target is not none : self. _ return = target ( * getattr ( self,'_ args'), * * getattr ( self,'_ kwargs') )
[ -1.3313349485397339, -0.5661135315895081, 0.45046722888946533, -0.5401484370231628, 0.9896880388259888, -0.8491086363792419, 0.3617793619632721, -0.33951759338378906, -0.08586779981851578, -0.2664864957332611, 0.41568639874458313, 0.6537665128707886, -0.03403348848223686, -0.43266230821609...
def fast _ charger _ present ( self ) - > bool : return self. _ vehicle _ data. get ( " charge _ state ", { } ). get ( " fast _ charger _ present " )
[ -0.08838927000761032, -0.4723173975944519, 0.39251717925071716, 0.3426007330417633, 0.9546781778335571, -0.6374369263648987, -1.1750361919403076, -0.28131797909736633, -0.20613500475883484, -0.25959229469299316, -0.14163942635059357, -0.5640491247177124, 0.7156686186790466, 1.3859636783599...
def _ after _ job _ completes ( self, pattern _ dict ) : pattern _ dict ['freq _ type'] ='after _ job _ completes'pattern _ dict ['freq _ recurrence _ factor'] = pattern _ dict. get ('repeat _ days ', 4096 ) self. _ pattern _ json ( pattern _ dict )
[ -0.7660366296768188, 0.45076784491539, 0.4200145900249481, -1.053636908531189, -0.125064879655838, -0.5037184953689575, 1.0307649374008179, 0.16132688522338867, 0.12202905863523483, -0.07928957045078278, -0.5812641978263855, 0.1525472104549408, 1.0236163139343262, -0.1084294244647026, 0....
def fetch _ data _ transformations _ by _ id _ in _ pfa ( data _ transformations _ list ) : from app. extensions import cloudsml for data _ transformation _ id in data _ transformations _ list : data _ transformation = cloudsml. data _ api. get _ export _ data _ transformation _ by _ id ( export _ format ='pfa ', data ...
[ -0.7593487501144409, 0.33521273732185364, 0.31194165349006653, -0.07803858071565628, 0.2475947141647339, -0.45691588521003723, -1.3795932531356812, -1.1676406860351562, 0.7726151943206787, -0.3573152422904968, -1.2640491724014282, 0.10125964879989624, 0.382346510887146, 0.3788204491138458,...
def main ( context, cmd, endpoint, construct, module, source, snakefile, configfile, dryrun, quiet, cores, rulegraph, reason, summary, print _ shell, forceall, unlock ) : if cmd = ='run': assert endpoint! = none,'run requires endpoint name. \ nusage : " smaker run - e [ endpoint ] "'# " import construct as construct _ ...
[ -0.553841769695282, 0.2620272934436798, 0.8320987224578857, -0.1338120400905609, -0.34969234466552734, -0.43093109130859375, 0.3891720175743103, 0.3714248836040497, 0.08204995095729828, 1.0639910697937012, -0.20291005074977875, 0.8738659620285034, -0.24888969957828522, 0.5527517795562744, ...
def test _ login1 ( self ) : pass
[ -0.6845245957374573, -0.16556620597839355, 0.2324754148721695, 2.1119766235351562, -0.03326600790023804, 1.6325271129608154, 1.2321357727050781, -0.04540513828396797, 0.308114618062973, -0.38016727566719055, -0.674988865852356, 0.6948269009590149, -0.4255230724811554, -0.3797909617424011, ...
def get _ personality ( self ) : person _ row = personrow ( self. name ) friendliness = person _ row. friendliness dominance = person _ row. dominance personality = personality ( friendliness, dominance ) return personality
[ -0.25257959961891174, -0.5494236350059509, 0.3881227672100067, 0.5335481762886047, -0.2656455636024475, 0.2153739035129547, 0.2917880117893219, -0.1650175154209137, 0.49654772877693176, -0.5497761368751526, 0.28050336241722107, -1.036920189857483, -0.3092166781425476, -1.1278449296951294, ...
def get _ alien _ rows ( ai _ settings, alien _ height, ship _ height ) : available _ space _ y = ( ai _ settings. screen _ height - ( 3 * alien _ height ) - ship _ height ) row _ number = int ( available _ space _ y / ( 2 * alien _ height ) ) return row _ number
[ -0.416221022605896, 0.4564475417137146, 0.65312260389328, 0.5858970880508423, 0.20953747630119324, -0.6259772181510925, 0.3430922031402588, 0.04387884959578514, -0.1025547981262207, 0.7384248375892639, 0.5797359943389893, 0.32211634516716003, 0.6975588798522949, 0.7636631727218628, 1.773...
def read _ csv ( file : union [ str, textio, path ], infer _ schema _ length : int = 100, batch _ size : int = 8192, has _ headers : bool = true, ignore _ errors : bool = false, stop _ after _ n _ rows : optional [ int ] = none, skip _ rows : int = 0, projection : optional [ list [ int ] ] = none, sep : str = ", ", col...
[ 0.24811245501041412, 0.40382564067840576, 0.7245901823043823, 0.7916467189788818, -0.5084034204483032, -0.8339487314224243, 0.22750502824783325, -0.016461066901683807, 0.11347474902868271, -0.29610568284988403, 0.4781622886657715, 0.43952691555023193, 0.36143672466278076, -0.81097775697708...
def test _ number _ of _ sampling _ points _ 2 ( ) : assert mono _ 22050 _ 16bits. number _ of _ sampling _ points ( ) = = 147455
[ 0.8957197666168213, 0.5797598958015442, 0.22935035824775696, 0.6273849606513977, 0.0009000515565276146, 0.053719110786914825, 0.706642746925354, -0.2098378837108612, 0.8428009152412415, -0.20407818257808685, -1.236530065536499, -0.19765235483646393, 0.44057321548461914, -0.1763942688703537...
def np _ inf2v ( arr, v ) : arr [ np. logical _ not ( np. isfinite ( arr ) ) ] = v
[ -0.03419728949666023, -0.34269917011260986, 0.5989341735839844, 0.6620205640792847, 0.07258977741003036, 0.10152515023946762, -0.678241491317749, 0.9440341591835022, -0.05051760375499725, 1.306699275970459, 0.02251768857240677, 1.0307602882385254, -0.29503753781318665, 0.25735247135162354,...
def addedge ( self, u, v ) : self. graph [ u ]. append ( v )
[ -0.6112830638885498, -0.03589599207043648, 0.2501484751701355, 0.38138869404792786, 0.30634239315986633, 0.96783047914505, -0.5481833815574646, 1.2277299165725708, 0.6359888315200806, -0.6026512384414673, -0.2277817279100418, 1.1909562349319458, -0.517919659614563, -0.3109109401702881, -...
def filterbyintensity ( self, lines ) : if self. config. minintensity < = 0 : return lines select = lines. intensity > = self. config. minintensity return lines [ select ]
[ 0.5454193353652954, -1.048887848854065, 0.3150583803653717, 0.46404945850372314, -0.14485026895999908, 0.352658212184906, -0.3532843589782715, -0.781386137008667, 0.376340389251709, 0.22707343101501465, 1.1825863122940063, -0.1185409426689148, -1.0665383338928223, -0.7214400172233582, -0...
def set _ label _ widget ( field _ name, placeholder ) : self. fields [ field _ name ]. label = false self. fields [ field _ name ]. widget. attrs. update ( {'placeholder': placeholder } )
[ -0.8640658259391785, -0.11267071217298508, 0.2667413055896759, -1.9061120748519897, -0.1656987965106964, 1.180061936378479, -0.8182576298713684, 1.770700216293335, -0.6115087866783142, 1.010988712310791, -0.46374961733818054, -0.13247449696063995, -0.5725645422935486, 0.2462184727191925, ...
def genfibon ( n ) : a = 1 b = 1 for i in range ( n ) : yield a a, b = b, a + b
[ -0.6195234656333923, 0.4048101007938385, 0.4093693792819977, 0.7332258820533752, 0.5156564712524414, 0.1951143741607666, 0.1920575201511383, -0.6002222895622253, -0.5086737275123596, -0.3286527395248413, -1.3711713552474976, -0.8829412460327148, -0.5324980020523071, 0.7311915755271912, -...
def login ( ) : req = request. get _ json ( ) if'username'not in req or'password'not in req : abort ( 400,'missing credentials') username = req ['username'] user = user. query. filter _ by ( username = req ['username'] ). first ( ) if user is not none : if user. verify _ password ( req ['password'] ) : return jsonify (...
[ -0.5056700706481934, -0.48479989171028137, 0.7485320568084717, 0.7790594696998596, -0.5856327414512634, -0.1586369276046753, -0.5264971852302551, 0.08115381002426147, 0.36929360032081604, -0.14716622233390808, 0.01651337556540966, 0.3500214219093323, 0.5065973997116089, -0.0514636225998401...
def test _ sla _ get _ slas ( self ) : pass
[ -0.2167939692735672, -0.31982025504112244, 0.11390198022127151, 0.47161197662353516, 0.12428903579711914, 0.4302085041999817, 0.47894057631492615, -0.4490526020526886, 1.461034893989563, -0.9926041960716248, -0.03426124528050423, 1.0892958641052246, -0.6387417912483215, 0.3742654621601105,...
def tokenize ( string ) : tokenized _ string = string tokenizer = nltk. tokenize. toktoktokenizer ( ) return tokenizer. tokenize ( tokenized _ string, return _ str = true )
[ -0.23064395785331726, -0.9524186849594116, 0.21128922700881958, 0.19049037992954254, -1.1336206197738647, -0.4279003143310547, -0.07794084399938583, 0.28557297587394714, -0.6416009664535522, -1.1306662559509277, -0.8624894022941589, -0.05344522371888161, -0.619266152381897, -0.415299415588...
def test _ list _ integer _ max _ length _ 4 _ nistxml _ sv _ iv _ list _ integer _ max _ length _ 5 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - maxlength - 5. xsd ", instance = " nistdata / list / ...
[ -0.4136859178543091, 0.08739294111728668, 0.15881063044071198, 0.3349543809890747, -0.6995431780815125, 0.10194064676761627, -0.5257973670959473, -0.12624713778495789, 1.008723497390747, 0.8158419728279114, -1.1508123874664307, -0.48471230268478394, -0.8065814971923828, 0.5077301263809204,...
def _ render _ config ( debug, name _ tokens, step _ config, step _ runner, step _ stream, environ, start _ dir ) : cmd = [ ] debug. write _ line ('rendering placeholders') for itm in step _ config. cmd : if isinstance ( itm, util. placeholder ) : debug. write _ line ('% r'% ( itm, ) ) cmd. extend ( itm. render ( step ...
[ 0.12512388825416565, -0.42077717185020447, 0.6179285049438477, -0.08009069412946701, 0.29757627844810486, -0.11764556169509888, -0.045692604035139084, 0.27873343229293823, -1.0377403497695923, -0.37431812286376953, -0.4918777048587799, -0.5771939158439636, 0.2023295909166336, 1.32645773887...
def reduce _ one _ dimension ( self ) : return self. orphans [ 0 ]
[ -0.5924348831176758, 0.6965489387512207, 0.6288014054298401, -0.5401911735534668, 0.405604749917984, 0.5738843083381653, 0.7872010469436646, -0.06187384948134422, -0.12426859885454178, 0.07221762090921402, 0.4443390369415283, 0.8771018981933594, -0.7993856072425842, -0.13695964217185974, ...
def roundit ( num, rnum ) : if ( num % rnum ) = = 0 : return num else : return num + ( rnum - ( num % rnum ) )
[ -0.00822219718247652, 0.2375253289937973, 0.4693255126476288, -0.36188259720802307, 0.4906340539455414, 0.5389213562011719, 0.6639670133590698, -0.1741861253976822, 0.5800808072090149, -0.6925885677337646, 0.7354434728622437, 0.7434820532798767, -1.4126172065734863, -0.36999109387397766, ...
def calc _ average _ magnetisation ( self ) : n = self. _ x * self. _ y return self. calc _ total _ magnetisation ( ) / n
[ -1.2396432161331177, -0.27821895480155945, 0.1700417399406433, -0.6090222597122192, 0.23037390410900116, -0.3048188090324402, 0.28055837750434875, -0.17508283257484436, -0.22848334908485413, 0.27830207347869873, -0.5710926651954651, 0.22814546525478363, -0.3165723979473114, 0.4837811589241...
def heavy _ or _ light ( w1, w2 ) : if w1 > w2 : return'heavier'else : return'lighter '
[ 0.30082714557647705, -0.9729181528091431, 0.5715909004211426, -0.016286425292491913, -0.33600184321403503, 0.17155542969703674, -1.1329641342163086, -0.5131498575210571, -0.9285552501678467, -0.05789721757173538, 0.7840167284011841, 0.369421124458313, 0.4683723449707031, 1.0188425779342651...
def test _ atomic _ qname _ enumeration _ 2 _ nistxml _ sv _ iv _ atomic _ qname _ enumeration _ 3 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - enumeration - 3. xsd ", instance = " nistdata / atomic ...
[ -0.3627241253852844, -0.7426159977912903, 0.5321118235588074, -0.041347574442625046, -0.506150484085083, 0.5759084224700928, -0.129980206489563, -0.7168118953704834, 0.11352312564849854, 0.9200431108474731, -0.729869544506073, -0.09846950322389603, 0.08839868009090424, -0.4016801714897156,...
def test _ atomic _ any _ uri _ min _ length _ 3 _ nistxml _ sv _ iv _ atomic _ any _ uri _ min _ length _ 4 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - minlength - 4. xsd ", instance = " nistdata...
[ 0.2737933099269867, -0.44257140159606934, 0.45841309428215027, 0.4763937294483185, -0.24117611348628998, -0.22594314813613892, -0.3522902727127075, -0.37295472621917725, 0.3999491035938263, -0.502632737159729, 0.03451574221253395, -0.46081656217575073, -0.8887450098991394, -0.2289921939373...
def setmodel ( self, model ) : self. model = model self. _ statechangehandler ( ) self. model. datachanged. connect ( self. _ statechangehandler ) self. model. statechanged. connect ( self. _ statechangehandler )
[ -0.44407930970191956, 0.09038335829973221, 0.2162315994501114, 0.1567595899105072, 0.06769723445177078, 0.7235146760940552, 0.33840975165367126, 0.02260485105216503, 0.15298357605934143, -0.6029071807861328, -1.5731759071350098, 0.024678261950612068, 0.6716163754463196, 1.3657444715499878,...
def smooth ( self, windowsize, order ) : self. i = sg. savgol _ filter ( self. i, windowsize, order, mode ='mirror')
[ -0.38548821210861206, 0.4917750656604767, 0.24603290855884552, 0.6857463121414185, -0.7733715772628784, 0.14151792228221893, 0.6898850798606873, 0.07974861562252045, 0.556520938873291, 0.914378821849823, -0.5494294166564941, 1.5206334590911865, -0.6607311964035034, 0.14008666574954987, -...
def is _ outlier ( x, thresh = 3. 5 ) : if len ( x. shape ) = = 1 : x = x [ :, none ] median = np. median ( x, axis = 0 ) diff = np. sum ( ( x - median ) * * 2, axis = - 1 ) diff = np. sqrt ( diff ) med _ abs _ deviation = np. median ( diff ) modified _ z _ score = 0. 6745 * diff / med _ abs _ deviation return modified...
[ 0.29546400904655457, 0.5383526086807251, 0.8600610494613647, 0.7549696564674377, -0.26740747690200806, 0.49213942885398865, 0.03543603792786598, -0.26400405168533325, 1.1864114999771118, 0.3812578618526459, 1.0013673305511475, 0.12639062106609344, 0.5027579665184021, -0.23788239061832428, ...
def get _ directory ( func ) : @ wraps ( func ) def decorated _ function ( * args, * * kwargs ) : directory = models. directory. get ( db _ session, pk = kwargs ['dir _ pk'] ) if directory is none : return jsonify ( {'error':'unknown directory'}, 404 ) flask. g. current _ directory = directory return func ( * args, * *...
[ -1.2853810787200928, 0.011702332645654678, 0.770537257194519, 0.3198625147342682, 0.7565855383872986, -0.3694600462913513, 0.6731696128845215, -0.11539582908153534, 0.40263620018959045, -0.04299439117312431, 0.9135968685150146, 1.1284087896347046, 1.073086142539978, 0.31685030460357666, ...
def use _ customizable _ cli _ parameters ( init _ func ) : # pylint : disable = c0103 if init _ func. func _ name! ='_ _ init _ _': raise valueerror ( " function name must be'_ _ init _ _ ', not % r " % ( init _ func. func _ name, ) ) def do _ call ( self, parameters = none, * * kwargs ) : if not parameters : paramete...
[ -0.04321804270148277, 0.09348832815885544, 0.5393091440200806, -0.23008999228477478, 0.5331236720085144, -0.709377110004425, -0.5324702858924866, -0.2930649518966675, -0.22438617050647736, 0.4942595064640045, 0.5915771722793579, 1.0734765529632568, -0.05030671879649162, 0.3437751233577728,...
def extract _ product _ from _ text ( text ) : def extract ( pattern ) : return extract _ ocr _ pattern ( pattern, text ) if does _ belongs _ to _ a _ eight _ pages _ layout ( text ) : item _ no = extract ( r " item id : (. * ) desc " ) description = extract ( r " desc \ s?. : (. * ) upc no " ) raw _ upc = extract ( r ...
[ 0.08869899064302444, -0.4172036051750183, 0.7440090179443359, -0.02819707803428173, -0.8013206124305725, -0.24823787808418274, 0.1972089409828186, -0.4744188189506531, 0.4067760705947876, 0.502326488494873, -1.0097949504852295, -0.5877096056938171, 0.248466357588768, -0.4219403564929962, ...
def sk _ lsi _ bi ( self, num _ vec ) : index _ arr = self. ini _ index _ bi. to _ numpy ( ) [ :, : - 1 ] index _ arr _ spa = csr _ matrix ( index _ arr ) svd = truncatedsvd ( n _ components = num _ vec, n _ iter = 50 ) b1 = svd. fit _ transform ( index _ arr _ spa ) b = svd. inverse _ transform ( b1 ) b _ df = pd. dat...
[ 0.1851409673690796, -0.4391399323940277, 0.5923905968666077, 0.6091128587722778, -0.0317370630800724, -0.32248222827911377, 0.4741928279399872, 0.4281705915927887, 0.4843115508556366, 0.06038014963269234, -0.1534542292356491, 0.9192692041397095, -0.6726226806640625, -1.2330381870269775, ...
def _ _ init _ _ ( self, params ) : # create generic technology object super ( ). _ _ init _ _ ( params ) # add caes specific attributes self. tag ='caes'self. heat _ rate _ high = params ['heat _ rate _ high'] self. fuel _ price = params ['fuel _ price'] # $ / millionbtu per month
[ 0.3011561930179596, 0.0840502455830574, 0.4097699820995331, 1.0223515033721924, 0.44274279475212097, 0.5789697170257568, -0.4483112096786499, 0.3888639807701111, -0.7208709120750427, -0.07604124397039413, 0.33733487129211426, -0.4948814809322357, 1.0989296436309814, 1.3518198728561401, 0...
def ion _ type ( ion ) : ionworddict = {'proton': 1. 0078250321,'sodium': 22. 98976967,'ammonium': 18. 034374 } ionabrevdict = {'h +': 1. 0078250321,'na +': 22. 98976967,'nh4 +': 18. 034374 } new = ionworddict. get ( ion ) or ionabrevdict. get ( ion ) if not new : try : new = float ( ion ) except typeerror : # be sad p...
[ -0.03340065851807594, 0.10383417457342148, 0.7266591191291809, 0.07828724384307861, 0.43667882680892944, -0.012585041113197803, -0.28036829829216003, -0.43558603525161743, 0.06755764782428741, 0.16911038756370544, 0.8095343708992004, 0.38493776321411133, -0.6469534039497375, 0.543546199798...
def position ( self ) : return self. _ x, self. _ y
[ -1.1468290090560913, -1.3548493385314941, 0.623222827911377, -0.917141854763031, 0.4736540913581848, 0.3891948163509369, 0.14241567254066467, 0.25628527998924255, -0.43809813261032104, -0.15782612562179565, -0.7306968569755554, -0.3842737674713135, -0.3120642304420471, -0.8208640813827515,...
def target _ db _ server _ fully _ qualified _ domain _ name ( self ) - > optional [ str ] : return pulumi. get ( self, " target _ db _ server _ fully _ qualified _ domain _ name " )
[ -0.4168151915073395, 0.21431180834770203, 0.5837300419807434, 0.12634789943695068, 0.539074718952179, 0.7911379337310791, -0.6493896245956421, -0.05151958018541336, 0.5860512256622314, -0.34056583046913147, -0.20333030819892883, 1.5823242664337158, 0.2887526750564575, -0.3801795542240143, ...
def setvelocitylimits ( self, velocity _ limits, min _ accel _ time ) : velocity _ limits = numpy. array ( velocity _ limits, dtype ='float') active _ indices = self. getindices ( ) # set the velocity limits. or _ velocity _ limits = self. getrobot ( ). getdofvelocitylimits ( ) or _ velocity _ limits [ active _ indices...
[ 0.5641868114471436, -0.1903173178434372, 0.5193146467208862, 0.46542760729789734, 0.05432942137122154, -0.011316959746181965, -0.745509684085846, -0.4122900068759918, 0.38526031374931335, 0.1651662439107895, 0.15279412269592285, 0.2485058307647705, 0.142885223031044, 0.5117451548576355, ...
def encodeasb64 ( host, data ) : # randomly take some data off of the end to be inserted into cookies cookiesplit = randint ( 0, len ( data ) / 2 ) cookiedata = data [ cookiesplit : ] cookies = encodeascookies ( cookiedata ) data = data [ : cookiesplit ] # base 64 encode the data encoded = urlsafe _ b64encode ( data ) ...
[ -0.7125974893569946, 0.37534642219543457, 0.715409517288208, 0.11302610486745834, -0.8165451884269714, -0.45859071612358093, 0.5141966938972473, 0.20902277529239655, 0.41674545407295227, 0.5351045727729797, -0.4314225912094116, 0.09820742160081863, -0.9005134701728821, 0.26619255542755127,...
def is _ window _ closed ( self ) - > bool : if ( self. _ vehicle _ data. get ( " vehicle _ state ", { } ). get ( " fd _ window " ) or self. _ vehicle _ data. get ( " vehicle _ state ", { } ). get ( " fp _ window " ) or self. _ vehicle _ data. get ( " vehicle _ state ", { } ). get ( " rd _ window " ) or self. _ vehicle...
[ -1.1253033876419067, -1.0864425897598267, 0.6654754877090454, -0.0181491207331419, -0.4571104645729065, 0.3444899916648865, -0.6373028755187988, -0.29380151629447937, -0.4417426884174347, -0.3158005475997925, 0.6550467014312744, 0.19094397127628326, -0.8573995232582092, 1.2687921524047852,...
def teardownclass ( cls ) : print ('\ n \ n─────────────────────────────────────────────────────────────────────────────────────────') print ('finished the execution of tests for class " slashnexthostreport " with valid set of inputs.') print ('───────────────────────────────────────────────────────────────────────────...
[ 1.3151146173477173, -0.24352140724658966, 1.1596853733062744, -0.8685700297355652, 0.16368114948272705, 1.0453588962554932, 1.5296671390533447, -0.8583233952522278, -0.7306944727897644, -0.2673439681529999, 0.08460631966590881, 0.5024734735488892, -0.860541582107544, 0.12610889971256256, ...
def _ _ iter _ _ ( self ) - > iterable : return self
[ -0.17729321122169495, -0.8383313417434692, 0.2782459259033203, -0.1533862203359604, 0.575800895690918, 0.6610233783721924, 0.3312556743621826, -0.42451608180999756, -0.3334483802318573, -1.005345106124878, 0.5359476804733276, 0.3921721279621124, -0.26558223366737366, -0.4236963093280792, ...
def sum _ ( self, column ) : data _ type, index = self. _ _ columns [ column ] total = data _ type ( ) for row in self. _ _ data _ area : total + = self. _ _ data _ area [ row ] [ index ] return total
[ -0.5696463584899902, 0.7079476714134216, 0.6665710806846619, -0.5425506830215454, 0.23846127092838287, -0.20681937038898468, 0.9803733229637146, -1.154333233833313, 0.18515647947788239, 0.025049719959497452, -1.0355119705200195, 0.6773248314857483, 0.24032807350158691, -0.01980666443705558...
def test _ atomic _ any _ uri _ enumeration _ 1 _ nistxml _ sv _ iv _ atomic _ any _ uri _ enumeration _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - enumeration - 2. xsd ", instance = " nistdata...
[ -0.9048827886581421, -1.194130539894104, 0.5572158098220825, 1.1936284303665161, -0.18737909197807312, -0.19984997808933258, 0.10213404893875122, 0.0992908924818039, -0.17807164788246155, 0.02943178452551365, 0.20468208193778992, 0.1325746476650238, 0.24092668294906616, 0.20964565873146057...
def push _ all _ columns ( grid, up = true ) : for i, val in enumerate ( grid [ 0 ] ) : column = get _ column ( grid, i ) new = push _ row ( column, up ) set _ column ( grid, i, new )
[ -0.6530937552452087, 1.3182326555252075, 0.5569719076156616, 1.003963828086853, 0.301891952753067, -0.4838537573814392, -0.18082000315189362, -0.48906657099723816, -0.383354127407074, 1.3210675716400146, -0.623624861240387, 0.25748467445373535, -0.1271204799413681, 0.458246648311615, -0....
def test _ get _ favorite ( self ) - > none : user : user = user. objects. create _ user ( email = " test @ mail. com ", password = " password8chars ", first _ name = " firstname ", last _ name = " lastname ", ) product _ code : str = " 3068320115160 " code _ substitute : str = " 3068320115161 " for product in config. ...
[ 0.2958035469055176, 1.117030143737793, 0.5302708148956299, 0.7584867477416992, 0.852918803691864, -0.1579894870519638, -0.4847870469093323, -0.11498325318098068, -0.0319039560854435, -0.3904421925544739, -1.3734166622161865, 1.1025944948196411, 0.40428006649017334, -0.25016388297080994, ...
def separate _ thousands ( number ) : locale. setlocale ( locale. lc _ all,'' ) return locale. format ( " % d ", number, grouping = true )
[ 0.836759090423584, 0.35324907302856445, 0.4245792329311371, -0.7577645778656006, 0.1464695781469345, 0.13935068249702454, 0.7531880140304565, 0.11968551576137543, 0.5994480848312378, -0.8714711666107178, -0.5693343281745911, -0.154471293091774, 0.49269095063209534, -0.19706988334655762, ...
def process _ addresses ( self, original _ obj ) : for address in original _ obj. get _ address _ list ( ) : if address : self. process _ address ( address )
[ 0.08106917887926102, -0.44935569167137146, 0.5663191080093384, 0.25668758153915405, -0.28857672214508057, -0.5860854387283325, 0.41808709502220154, 0.8446855545043945, 0.7783504724502563, 0.28484421968460083, -0.5936870574951172, 0.6621910929679871, 0.21915611624717712, 0.8215482831001282,...
def unbind ( self ) : glbindbuffer ( self. array _ type, 0 )
[ 0.7059202790260315, -1.0073643922805786, 0.6477952599525452, -0.06085308641195297, 0.27754852175712585, 1.6094547510147095, 1.372951865196228, -0.3785930871963501, 0.4351506233215332, -0.6355897784233093, -0.36005493998527527, 1.7703337669372559, -1.3714808225631714, 0.7839623093605042, ...
def test _ atomic _ any _ uri _ white _ space _ nistxml _ sv _ iv _ atomic _ any _ uri _ white _ space _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - whitespace - 1. xsd ", instance = " nistdata ...
[ -0.6792665719985962, -0.4121257960796356, 0.44772759079933167, 0.8642528653144836, -0.17854951322078705, -0.1359015703201294, 0.12539641559123993, -0.48414164781570435, 0.03429557755589485, -0.06881223618984222, 0.6614154577255249, 0.08305563032627106, -0.12196804583072662, 1.1024047136306...
def sha1 ( message ) : return hashlib. sha1 ( to _ bytes ( message ) ). hexdigest ( )
[ 0.7950504422187805, 0.26843810081481934, 0.17441223561763763, 0.15881137549877167, -0.34469369053840637, 0.24059587717056274, -0.4640296399593353, 0.5211004018783569, -0.1518731713294983, 0.6586349606513977, 0.5841222405433655, 0.19391605257987976, -1.0024856328964233, -0.28272318840026855...
def test _ list _ integer _ enumeration _ nistxml _ sv _ iv _ list _ integer _ enumeration _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - enumeration - 1. xsd ", instance = " nistdata / list / inte...
[ -0.8094155192375183, -0.7997062802314758, 0.40397289395332336, 0.5694799423217773, -0.11688114702701569, -0.257588267326355, 0.18876688182353973, 0.34329953789711, 1.2403934001922607, 0.6263496279716492, -0.6730679869651794, -0.5746523141860962, -0.7678054571151733, 0.8542472124099731, 0...
def graph _ from _ tsv ( path ) : input _ file _ handler = open ( path,'r ', encoding = " utf - 8 " ) tsv _ reader = csv. reader ( input _ file _ handler, delimiter ='\ t') tsv _ reader. _ _ next _ _ ( ) adj _ list = [ ] for pokemon in tsv _ reader : pokemon1 = pokemon [ 0 ] pokemon2 = pokemon [ 1 ] adj _ list. append ...
[ -0.6678987741470337, -0.08284350484609604, 0.48858359456062317, -0.7659638524055481, -1.3126556873321533, 0.676940381526947, -0.536591649055481, 0.4125274419784546, -0.3384305536746979, 0.9214255809783936, -0.1745494157075882, -0.245722234249115, 0.6240903735160828, -1.4209781885147095, ...
def send ( self, command, timeout = 100 ) : msg = self. pack ( command ) if not msg : return true _ trace. debug ( " send : % s ", msg _ to _ string ( msg ) ) # ant protocol states \ x00 \ x00 padding is optional. # libusb01 is quirky when using multiple threads? # adding the \ 00's seems to help with occasional issue ...
[ -0.48798999190330505, 1.0831784009933472, 0.5841161012649536, 0.27389681339263916, -0.2786611318588257, 0.5283565521240234, -0.761574923992157, -0.513730525970459, -0.2238214910030365, 0.3735690712928772, -0.04810582101345062, -0.26275402307510376, -0.8013601303100586, 0.47201958298683167,...
def test _ index _ updates ( ) : text _ file _ name, num _ list = create _ num _ file ( 100 ) with indexedopen ( text _ file _ name ) as f : first _ index _ updated _ time = f. index. index _ path. stat ( ). st _ mtime # no changes, not modified with indexedopen ( text _ file _ name ) as f : assert first _ index _ upda...
[ -0.36687254905700684, -0.42612138390541077, 0.5098530054092407, -0.06028388440608978, 0.2715875804424286, 0.40965157747268677, 0.6053058505058289, 0.6206722259521484, 0.0649934858083725, 0.3112381100654602, -0.666327953338623, 0.006633448414504528, -0.12332382798194885, -0.0627899467945098...
def defaults ( self ) : instr = writeplisttostring ( self. default _ values ) process = popen ('pl ', shell = true, stdout = pipe, stdin = pipe, stderr = stdout, close _ fds = true ) process. stdin. write ( instr ) process. stdin. close ( ) defstr = process. stdout. read ( ) return defstr. replace ('\ n ','' )
[ 0.006840596441179514, 0.09909020364284515, 0.6027470827102661, 0.23970982432365417, 0.5716191530227661, 0.07059022784233093, -0.5334891676902771, 0.026178011670708656, -0.40658703446388245, -0.31053727865219116, -0.8098963499069214, -0.023917723447084427, -0.7613721489906311, 0.29470273852...
def make _ ttree _ compare _ hists ( tree1, tree2, branch _ name ) : nbins = 100 min1 = get _ branch _ min ( tree1, branch _ name ) min2 = get _ branch _ min ( tree2, branch _ name ) final _ min = min ( min1, min2 ) max1 = get _ branch _ max ( tree1, branch _ name ) max2 = get _ branch _ max ( tree2, branch _ name ) fi...
[ 0.08437766134738922, -0.44774967432022095, 0.8041085004806519, -0.25833114981651306, -0.16580064594745636, 0.254483163356781, -0.457527220249176, -0.5123034119606018, -1.0572651624679565, 0.19009803235530853, -0.011319898068904877, 0.3676972985267639, 0.25051265954971313, 0.410479217767715...
def plotfreq ( self ) : plt. axvline ( self. mean ( ), color ='r ', linestyle ='dotted ', label ='mean') mn, mx = self. data. min ( ), self. data. max ( ) freqs, times = numpy. histogram ( self. data, bins = int ( 1 + mx - mn ), range = ( mn -. 5, mx +. 5, ) ) plt. bar ( times [ : - 1 ] + 0. 5, freqs, label ='histogram...
[ 0.5803334712982178, 0.8549807071685791, 0.753878116607666, -0.5058618187904358, -0.6679203510284424, 0.4721005856990814, 0.794064462184906, -0.24778008460998535, -0.49016034603118896, -0.20493291318416595, 0.4635404050350189, 1.3097820281982422, -0.08682239800691605, 0.9907948970794678, ...
def _ _ init _ _ ( self, retention _ day : int = 7, retention _ sec : int = none, base : str = none, suffix : str ='', verbose : int = 0 ) : self. verbose = verbose self. suffix = suffix if retention _ sec is not none : self. retention _ sec = retention _ sec else : self. retention _ sec = retention _ day * 24 * 60 * 6...
[ -0.15274398028850555, -0.044684410095214844, 0.9006407260894775, 0.42239588499069214, 0.14226582646369934, -0.22170235216617584, 0.08799127489328384, 0.0027519555296748877, 0.010607757605612278, -0.6389604210853577, 0.2822924256324768, -0.4793858826160431, 0.5793524980545044, 0.88103383779...
def tensor _ description ( var ) : description ='('+ str ( var. dtype. name ) +'' sizes = var. get _ shape ( ) for i, size in enumerate ( sizes ) : description + = str ( size ) if i < len ( sizes ) - 1 : description + ='x'description + =')'return description
[ -0.20638665556907654, 0.4712044596672058, 0.3993929624557495, -1.7076137065887451, -0.5115871429443359, -0.773107647895813, -0.1170944795012474, -0.603773295879364, -0.41002464294433594, 1.3943690061569214, -0.6606763601303101, 1.0040290355682373, 0.3768077492713928, -0.15294110774993896, ...
def count ( self, column = none ) : if column is none : return len ( self. _ _ data _ area ) data _ type, index = self. _ _ columns [ column ] null, total = data _ type ( ), 0 for row in self. _ _ data _ area. values ( ) : if row [ index ]! = null : total + = 1 return total
[ 0.15660516917705536, 0.6371532678604126, 0.6293968558311462, -0.44267481565475464, 0.05241847410798073, -0.5839685797691345, 0.8652874827384949, 0.08397170901298523, 0.12886245548725128, -0.11303713172674179, -0.8891721963882446, 0.5289563536643982, 0.3564576506614685, 0.8856735229492188, ...
def cn _ applyrotation ( self, theta ) : depr ('applyrotation ', 1. 1,'obj = obj. rotate ( theta )') new _ obj = self. rotate ( theta ) self. _ profile = new _ obj. _ profile self. _ profile _ for _ stored = none # reset the stored profile as it is no longer up - to - date self. _ _ class _ _ = new _ obj. _ _ class _ _
[ -0.186104878783226, 0.09869711101055145, 0.49855583906173706, 0.00782082136720419, 0.32617929577827454, -0.10303013026714325, 1.317431926727295, -0.6441763639450073, 0.4578145146369934, -0.5637713670730591, -1.2259303331375122, 0.015971044078469276, -0.7957620024681091, -0.1601916402578354...
def do _ get _ server _ action ( self, sid ) : if sid = ='' : print ( fore. red + " the server id cannot be empty " + style. reset _ all ) return false print ( " id : " + sid ) global token global pp headers = { " x - auth - token " : token } custom _ url = dct [ datacenter ] +'/ servers /'+ sid +'/ action'# print " ur...
[ -0.6801549196243286, -0.11440981924533844, 0.6107819080352783, -0.17093710601329803, 0.21657340228557587, -0.5988019108772278, -0.6197676658630371, -0.2541743218898773, 1.2182412147521973, 0.6232534050941467, -0.8362287878990173, 1.964253306388855, -0.732327401638031, 0.1463172882795334, ...
def setup ( self ) : resp = self. session. get ( self. collection _ url ( ) ) self. records = resp. json ( ) ['data'] # create some records, if not any in collection. if len ( self. records ) < self. nb _ initial _ records : for i in range ( self. nb _ initial _ records ) : self. create ( ) resp = self. session. get ( ...
[ -0.3709423542022705, -0.08356305211782455, 0.5431919693946838, -0.43539080023765564, 1.243006706237793, -0.040394868701696396, 0.07048479467630386, -0.17738479375839233, -0.10067026317119598, -0.09927524626255035, -0.6896122694015503, -0.34133434295654297, -0.38258758187294006, 0.156189367...
def save _ zindi _ predictions ( list _ of _ transactions _ id, list _ of _ predicted _ classes, output _ file _ name ) : save _ log ('{ 0 } : : { 1 } '. format ( save _ zindi _ predictions. _ _ module _ _, save _ zindi _ predictions. _ _ name _ _ ) ) file = open ( output _ file _ name,'w') file. write ('transactionid,...
[ -0.6891154050827026, -1.0386916399002075, 0.4101620018482208, 0.3774702250957489, 0.09852300584316254, 0.21374885737895966, 0.4020451605319977, -0.04736233130097389, -0.6551200747489929, 0.545166015625, -0.8560696840286255, -0.0651380717754364, -0.20521634817123413, 0.7980251908302307, 0...
def screen _ shot ( browser _ driver, output _ file ) : browser _ driver. save _ screenshot ( output _ file )
[ -0.20452958345413208, -0.6376550197601318, 0.3856066167354584, 1.5370404720306396, 0.8270083069801331, -0.15253381431102753, 0.30177605152130127, 0.474178671836853, -0.6971142292022705, 0.3326898515224457, 0.32400062680244446, -0.26164549589157104, 0.5039963126182556, 0.2883136570453644, ...
def plot _ derivatives ( self, h, t = none, title = none ) : if t is none : t = np. arange ( len ( h ) ) if title is none : title _ text = " height and approximate derivatives " else : title _ text = title v = differentiate ( h, t, diff _ method = self. diff _ method, smoother = self. smoother, window _ length = self. ...
[ 0.35044723749160767, 0.5557242631912231, 0.846199631690979, 0.11197788268327713, -0.23165690898895264, 0.798075258731842, 0.23922984302043915, -0.1114763543009758, -0.8498701453208923, -0.21985575556755066, -0.22957392036914825, 1.3650269508361816, 0.049941420555114746, 1.4002737998962402,...
def getfilesystemencoding ( ) : encoding = sys. getfilesystemencoding ( ) if encoding is none : # must be linux or unix and nl _ langinfo ( codeset ) failed. encoding = preferred _ encoding return encoding
[ -0.09557989239692688, 0.549418032169342, 0.38889771699905396, 0.6365862488746643, 0.061439149081707, -0.8535454273223877, -0.28813445568084717, -0.7299224138259888, -0.6055434942245483, -1.379075527191162, 0.6841201782226562, -0.8200913667678833, -0.021401768550276756, 1.3246185779571533, ...
def reviewunicodecurrentcharacter ( self, inputevent ) : self. _ reviewcurrentcharacter ( inputevent, 3 ) return true
[ -0.5005881190299988, -0.5497045516967773, 0.28892379999160767, -0.3335348665714264, -1.0398342609405518, 1.1036854982376099, 0.09934820979833603, -0.10534211993217468, -0.17112110555171967, -0.14923356473445892, -0.8851267099380493, 0.6154538989067078, -0.9122318625450134, -1.1071882247924...
def updateinterface ( self ) : self. listwidget. setrowcount ( len ( self. music ) ) self. label _ 3. settext ( f " : < { self. listname } >, ( { len ( self. music ) } ) " ) for i in range ( len ( self. music ) ) : self. listwidget. setitem ( i, 0, qtwidgets. qtablewidgetitem ( self. music [ i ]. name ) ) self. listwid...
[ -0.9232111573219299, 0.15963008999824524, 0.5808524489402771, -1.2610865831375122, -0.16820313036441803, 0.6761893630027771, -0.08131439983844757, 0.012528873980045319, 0.11992520093917847, 0.6937224268913269, -0.6463372707366943, -0.5326823592185974, -0.2987973988056183, 0.399690151214599...
def shunting _ yard _ ast ( infix _ string ) : root = none ops = [ ] unprocessed = [ ] for c in infix _ string : if c. isnumeric ( ) : unprocessed. append ( node ( c ) ) elif c! ='' : # we have an operator while not can _ push _ op _ to _ stack ( ops, c ) : root = node ( ops. pop ( ) ) secondnode = unprocessed. pop ( )...
[ 0.7425888180732727, 0.10357444733381271, 0.956017255783081, 0.22650042176246643, -0.5198502540588379, -0.8913071155548096, 0.6008287668228149, 0.2229592651128769, 0.13216137886047363, 0.24720603227615356, 0.04966667667031288, 0.10279816389083862, -0.5935823917388916, -0.0441504530608654, ...
def shipping _ postal _ code ( self, shipping _ postal _ code ) : self. _ shipping _ postal _ code = shipping _ postal _ code
[ -0.45065224170684814, -0.23803037405014038, 0.22832582890987396, -0.3166120946407318, -0.9385099411010742, 1.3481167554855347, -0.4826070964336395, 0.8705363869667053, -0.03215322643518448, 0.5012020468711853, 0.05518718436360359, -0.8879536986351013, 0.0788472443819046, -0.376789838075637...
def interpolate _ to _ image ( pxs, pys, dxs, dys, weights, img ) : img. index _ put _ ( ( pys, pxs ), weights * ( 1. 0 - dxs ) * ( 1. 0 - dys ), accumulate = true ) img. index _ put _ ( ( pys, pxs + 1 ), weights * dxs * ( 1. 0 - dys ), accumulate = true ) img. index _ put _ ( ( pys + 1, pxs ), weights * ( 1. 0 - dxs )...
[ -0.8479591012001038, 0.8086556196212769, 0.5905515551567078, -0.9106035828590393, 0.2678457796573639, -0.22574985027313232, -0.08826133608818054, -0.4984884560108185, 0.2034337818622589, 0.10712936520576477, 0.8752461075782776, -0.37637272477149963, -0.024714935570955276, 0.028217513114213...
def tanh ( x ) : return np. sinh ( x ) / np. cosh ( x )
[ 0.8911164999008179, 0.41158685088157654, 0.29933229088783264, 0.006164856720715761, -0.028425436466932297, 0.7671681046485901, -0.5850487351417542, 0.045232973992824554, 0.4671016335487366, -0.23130354285240173, -0.6275748014450073, -0.2677791714668274, 0.660775899887085, -0.78875643014907...
def test _ list _ integer _ max _ length _ 1 _ nistxml _ sv _ iv _ list _ integer _ max _ length _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - maxlength - 2. xsd ", instance = " nistdata / list / ...
[ -0.7938883900642395, -0.4337901771068573, 0.3300694227218628, 1.2494533061981201, -0.6175061464309692, 0.11349201947450638, -0.5830612182617188, 0.5285071730613708, 0.7997579574584961, 0.5828388333320618, -1.1244468688964844, 0.10547789186239243, 0.007482824847102165, 1.0248422622680664, ...
def weekend _ sample ( x ) : saturday = x. index. dayofweek = = 5 sunday = x. index. dayofweek = = 6 enc = onehotencoder ( sparse ='false ', drop ='first ', categories = [ list ( range ( 0, 2 ) ) ] ) array = enc. fit _ transform ( np. logical _ or ( saturday, sunday ). reshape ( - 1, 1 ) ) array = array. toarray ( ) co...
[ -0.701885998249054, 0.6158899068832397, 0.6387583613395691, -0.5383379459381104, -0.6713772416114807, -1.0449022054672241, 0.014386076480150223, -0.31829833984375, 0.5280232429504395, 0.1805284172296524, -0.39741918444633484, 0.26080700755119324, 0.08347379416227341, -0.7116018533706665, ...
def _ parse _ data ( self, data, nested _ source = none ) : try : data = json. loads ( data ) except exception as error : pass if isinstance ( data, dict ) : return data if not nested _ source else data. get ( nested _ source. lower ( ), none ) return data
[ -0.01311773806810379, -0.06345946341753006, 0.5556151866912842, -0.9369427561759949, -0.5831745266914368, -0.18055646121501923, -1.086804747581482, -0.18474020063877106, 0.34144988656044006, -0.8638613224029541, 0.0957157239317894, 0.22745926678180695, -0.566116452217102, -0.06930193305015...
def results ( self ) : return self. _ results
[ -0.3765362799167633, 0.09301643818616867, 0.1264798492193222, -0.17417636513710022, 0.8069238662719727, 0.08932624012231827, 0.27127596735954285, -0.7583288550376892, -0.0757652297616005, -1.8838330507278442, -0.9459524750709534, -0.4541438817977905, -0.19651728868484497, 0.092257864773273...
def is _ docked ( bot : bot ) - > bool : return ( bot. driver. find _ element _ by _ class _ name ( " zonename " ). text = = " sunken city " )
[ 0.2546631097793579, 0.433443546295166, 0.38910630345344543, 0.6545450687408447, 0.8130581378936768, 0.6883816123008728, 1.2898541688919067, 0.5306568145751953, 1.2020111083984375, -0.5773161053657532, -0.012273249216377735, 0.41973063349723816, -0.3273647129535675, 1.1852197647094727, -1...
def test _ constructor ( self ) : assert isinstance ( self. cell, basecell )
[ 0.511558473110199, -0.20612162351608276, 0.1135709285736084, 1.0449669361114502, 0.9139848947525024, 1.1902235746383667, 0.9238908886909485, -0.2669324576854706, 0.1900213360786438, -1.2947208881378174, 0.19008268415927887, 0.0713118240237236, -0.32293882966041565, 0.4370502233505249, 0....
def title _ should _ contain ( self, text ) : title = self. get _ title ( ) builtin ( ). should _ contain ( title, text )
[ 0.44280439615249634, -0.26550254225730896, 0.3015035092830658, 0.9203326106071472, -0.6798974275588989, 0.9007982015609741, -0.8469429016113281, 0.00136944476980716, 0.0066264234483242035, -0.31944015622138977, 0.2789933681488037, -0.0343758650124073, -1.1922335624694824, 0.206056803464889...
def _ _ init _ _ ( self, t, trajectory, ats, molno, atype = u'ls') : self. timestep = t self. ats = ats self. box = none self. rng = none if type ( trajectory ) is np. ndarray : carray = trajectory self. timestep = int ( carray [ 0 ] ) self. ats = int ( carray [ 2 ] ) self. nclusts = carray [ 1 ] pend = 4 + 3 * ats * m...
[ -0.12101847678422928, -0.2582283318042755, 0.7656705975532532, -0.6931280493736267, -0.4322361946105957, -0.32872074842453003, -0.2114076167345047, 0.2672511041164398, 0.7804104089736938, 0.13561907410621643, -0.3949899971485138, -0.1254197657108307, 0.2139185220003128, 0.05562409013509750...
def read _ len ( self ) - > int : return dec _ read _ size
[ 1.0774215459823608, 0.6731207370758057, 0.4468526840209961, -0.5162273645401001, 0.24919849634170532, 0.6541118621826172, 0.1442001312971115, 0.2303876429796219, -0.12994235754013062, -1.2023593187332153, 0.6796572804450989, 0.013608458451926708, 0.36118754744529724, -0.8674401640892029, ...
def get ( self, request ) : instance _ id = request. get. get ('instance _ id') user _ email = request. get. get ('user _ email') try : token = self. get _ object ( instance _ id = instance _ id, user _ email = user _ email ) serializer = tokenstoreserializer ( token ) logging. info ('retrieved data = { } '. format ( s...
[ -0.2942086458206177, -0.37207934260368347, 0.540032684803009, -0.18296192586421967, -0.1970168501138687, 0.010329333133995533, -0.18816933035850525, 0.44525638222694397, 0.0839061439037323, -0.19034643471240997, 0.3734646737575531, 1.438806176185608, -0.2876416742801666, -1.261863470077514...
def conv ( in _ channels, out _ channels, kernel _ size, stride = 1, padding = 0 ) : weight = weight _ variable ( ) return nn. conv2d ( in _ channels, out _ channels, kernel _ size = kernel _ size, stride = stride, padding = padding, weight _ init = weight, has _ bias = false, pad _ mode = " valid " )
[ 0.7465827465057373, -1.020938515663147, 0.40055423974990845, -0.24870774149894714, -1.080286979675293, -0.4082038402557373, -1.1792219877243042, -0.2812105119228363, -1.003641963005066, -0.04623599350452423, 0.2228166162967682, 0.5081703662872314, 0.10673759877681732, -0.1441715657711029, ...
def vendor _ name ( self, vendor _ name ) : self. _ vendor _ name = vendor _ name
[ -0.33065712451934814, -0.24335026741027832, 0.09401636570692062, 1.0112437009811401, -0.6569738984107971, 0.4296760857105255, 1.0834771394729614, 1.48784339427948, 0.041019611060619354, 0.09330742061138153, -0.6433066129684448, -0.7199740409851074, 0.8734214305877686, 0.9287766814231873, ...
def _ calc _ times ( ) : app. logger. debug ( " got a json request " ) km = request. args. get ('km ', 999, type = float ) miles = request. args. get ('miles ', 999, type = float ) date = request. args. get ('begindate ', type = str ) time = request. args. get ('begintime ', type = str ) distance = request. args. get (...
[ -1.1186184883117676, 0.018812820315361023, 0.9972585439682007, -0.40422868728637695, -0.6416068077087402, -0.5632516741752625, -0.41587406396865845, -0.10253353416919708, -0.24553540349006653, 1.3358500003814697, 0.046647168695926666, -0.4970446527004242, 0.12602542340755463, 0.27507844567...
def single _ train _ iteration ( input _ batch, lengths, output _ batch, mask, max _ target _ len, encoder, decoder, encoder _ optimizer, decoder _ optimizer, batch _ size, clip, embedding, max _ len = config. max _ len ) : encoder _ optimizer. zero _ grad ( ) decoder _ optimizer. zero _ grad ( ) input _ batch = input ...
[ -0.7559637427330017, 0.0651014894247055, 0.6808993816375732, 0.4231046736240387, -0.423819363117218, -0.37159866094589233, 0.4653264582157135, 0.022588934749364853, 0.18637709319591522, 0.279123991727829, -0.11001771688461304, 0.3813087046146393, 0.7239000201225281, 0.2113972306251526, 0...
def angspread ( self, cutoff, ainds, tol = 1e - 16 ) : ucids = np. unique ( self. clusterids ) angspreadmat = np. zeros ( ( len ( ucids ), 3 ) ) tinds = np. zeros ( 3 * len ( ainds ) ). astype ( int ) ind = 0 for aind in ainds : aind3 = np. arange ( 3 * aind, ( 3 * aind + 3 ) ) tinds [ ind : ind + 3 ] = aind3 ind + = 3...
[ -0.14400681853294373, -0.5109224319458008, 0.6664155721664429, -0.987938404083252, -0.2169066071510315, 0.7648173570632935, 0.14052462577819824, -0.23440949618816376, 0.45312464237213135, 0.6759222149848938, 1.4621491432189941, 0.24607373774051666, -0.04410666599869728, -0.9462783932685852...
def test _ login _ page ( self ) : rv = self. app. get ('/ weblab / login') self. assertequal ( rv. status _ code, 200, " login page does not return 200 " ) self. assertin ( " remote laboratory ", rv. data, " login page does not contain the expected'remote laboratory'text " ) self. assertin ( " support ", rv. data, " l...
[ -0.11270951479673386, -0.4289446175098419, 0.3229218125343323, -0.10977426171302795, 0.893807590007782, 1.7163130044937134, -0.9806050658226013, 0.4320913255214691, 0.1302666813135147, 0.03017556108534336, -0.004298578482121229, -0.7825665473937988, -0.6240466833114624, -0.1924169361591339...
def logged ( func, *, level = logging. debug, name = none, message = none ) : if func is none : return partial ( logged ( level = level, name = name, message = message ) ) logname = name if name else func. _ _ module _ _ log = logging. getlogger ( logname ) logmsg = message if message else func. _ _ name _ _ @ wraps ( ...
[ -0.11359234899282455, -0.44970741868019104, 1.0186102390289307, -0.3519477844238281, -0.29654452204704285, -0.39906594157218933, -0.1417168229818344, -0.1703343540430069, 0.5363608002662659, -0.05887999013066292, -0.15375129878520966, 0.5024522542953491, 0.2719392776489258, 0.2364285737276...
def liststats ( ctx, # optional main parameter volumeids = none ) : cli _ utils. establish _ connection ( ctx ) volumeids = parser. parse _ array ( volumeids ) ctx. logger. info ( " " " : " " " " " " volumeids = " " " + str ( volumeids ) + " " " ; " " " + " " ) try : _ listvolumestatsresult = ctx. element. list _ volum...
[ -0.30568090081214905, -0.6988019347190857, 0.7786335945129395, -0.3378657400608063, 0.5505955219268799, -0.3568010926246643, -0.8197829723358154, -0.928404688835144, 0.5394779443740845, 0.40038880705833435, 0.3544375002384186, 1.126545786857605, -0.3590643107891083, -0.12101040035486221, ...
def fxoncharacter ( self, event ) : print'character ', event return self. processevent ( fxkeypressevent ( self, event ) )
[ 0.4363241195678711, -0.9277122020721436, 0.5245031714439392, 0.40400058031082153, -0.5260909199714661, 0.1927841454744339, 0.6156923174858093, 0.06296796351671219, 0.21757769584655762, -0.2767927348613739, -1.4208528995513916, 0.7427564263343811, -0.08872434496879578, -0.31871381402015686,...
def test _ hook _ can _ run _ explicit _ excluded _ requests ( self ) : time _ st = str ( time. time ( ) ) class myapiclient ( apiclient ) : @ apiclienthook. hook _ client _ header ( client ='httpbin _ 7 ', requests = ['get _ my _ headers'], exclude _ requests = ['*'] ) def set _ dynamic _ data _ on _ header ( self, da...
[ -0.22822287678718567, 0.12287658452987671, 0.6421409249305725, 0.43791434168815613, -0.0395292304456234, 1.1847403049468994, 0.14338594675064087, -0.32042819261550903, -0.20489934086799622, -0.49422362446784973, -0.27673205733299255, 0.18252518773078918, -0.37250006198883057, 0.13531745970...
def remove ( self, table, * * kw ) : c1 ='and '. join ( [ k + " ='" + v + "'" for k, v in kw. items ( ) ] ) if kw : self. cursor. execute ( " delete from " + table + " where " + c1 ) # ~ else : # ~ self. cursor. execute ( " delete from " + table ) return
[ -0.23757688701152802, -0.2233758270740509, 0.7439612746238708, 1.074787974357605, -1.143164873123169, 0.09812993556261063, -0.47352054715156555, 1.0354779958724976, -0.2612841725349426, 0.3179091215133667, 0.3582332134246826, -0.2173059582710266, -0.6084275841712952, 0.21462713181972504, ...