text
stringlengths
25
2.19k
embedding
listlengths
768
768
def describe _ loadbalancer _ detail ( self, blb _ id, config = none ) : path = utils. append _ uri ( self. version,'blb ', blb _ id ) return self. _ send _ request ( http _ methods. get, path, config = config )
[ 0.39627110958099365, 0.3026846647262573, 0.5765421390533447, 0.1254279613494873, 0.9021639227867126, 0.3030627965927124, -0.9617202281951904, -0.4681244492530823, 0.1551821529865265, 0.5379011631011963, -0.9092023372650146, 1.7576688528060913, -1.3174258470535278, 0.8970688581466675, 0.5...
def default _ value ( self ) : if not hasattr ( self, " _ default _ value " ) : if self. elem _ type = = " select " : try : # get option marked " selected " def _ value = get _ option _ value ( self. elem. select _ one ( " [ selected ] " ) ) except attributeerror : #... or if that one doesen't exist get the first optio...
[ -0.20437653362751007, 0.4873403310775757, 0.673218846321106, 1.0433460474014282, 1.2135590314865112, -0.030878065153956413, 0.23915959894657135, -0.23869119584560394, 0.5109385848045349, -0.318761944770813, -0.15639455616474152, 0.2008126974105835, 0.16844506561756134, 1.231093168258667, ...
def check _ value ( self, value ) : value = super ( ). check _ value ( value ) if value = = self. states _ enum. out and self. interlocked : raise interlockerror ('valve is currently forced closed') return value
[ -0.9124263525009155, 0.519652247428894, 0.3271980881690979, 0.18154242634773254, -0.39370372891426086, 0.5342722535133362, 0.832599401473999, -0.9867624640464783, 0.3262547254562378, -0.05269808694720268, 0.9348929524421692, 0.1681884229183197, -1.025538682937622, 0.14473597705364227, 0....
def _ retrieve ( self, progress, episode, result, outfile ) : raise notimplementederror
[ -0.2552441656589508, -0.8170417547225952, 0.2905628979206085, -0.15845321118831635, 0.20541873574256897, -0.07572674751281738, 0.16613608598709106, -0.6151608824729919, -0.3822171688079834, -0.5785964727401733, 0.8926475644111633, -0.4610285460948944, -0.5849874019622803, -0.73021316528320...
def reviewpreviousline ( self, inputevent ) : context = self. getflatreviewcontext ( ) moved = context. goprevious ( flat _ review. context. line, flat _ review. context. wrap _ line ) if moved : self. _ reviewcurrentline ( inputevent ) self. targetcursorcell = self. getbraillecursorcell ( ) return true
[ -0.1709679663181305, -0.40821772813796997, 0.6725493669509888, -0.028083698824048042, -0.03727460280060768, 0.7385281324386597, 0.43710416555404663, -0.3458847105503082, 0.27182620763778687, 0.0337638333439827, -0.07765696197748184, 0.17126566171646118, -0.40127280354499817, 0.081107720732...
def check _ melanoma ( metadata ) : if " melanocytic " not in metadata [ " meta " ] [ " clinical " ] : return false elif not metadata [ " meta " ] [ " clinical " ] [ " melanocytic " ] : return false return true
[ -0.2698904573917389, -0.021664977073669434, 0.5493841767311096, 0.6022219061851501, -0.09398268908262253, 0.7546444535255432, -1.6757433414459229, 0.6715578436851501, -0.23710472881793976, 0.5790385603904724, 0.6063262820243835, 0.42188912630081177, 0.2628988027572632, 0.5833823084831238, ...
def generate _ setter ( value ) : @ wraps ( set _ ) def setter ( self ) : self. set _ ( value ) return setter
[ -1.8693444728851318, 0.3918582797050476, 0.3416556417942047, -1.0633125305175781, -0.88410484790802, -0.167567640542984, -0.07782714068889618, -0.5226490497589111, 0.432589590549469, 0.2882598340511322, -0.6966649293899536, -0.3246234655380249, 0.7732763290405273, 0.5951934456825256, 0.5...
def query7 ( connection ) : current = time. time ( ) cursor = connection. cursor ( ) cursor. execute ( " " " select s. style, count ( b. id ) from style as s inner join beer as b on s. id = b. style group by ( s. id ) order by count ( b. id ) desc limit ( 1 ) ; " " " ) print ( " %. 3f " % ( time. time ( ) - current ), ...
[ 0.6022895574569702, -0.26653334498405457, 0.4023262858390808, 0.9699195623397827, -0.32946640253067017, -0.4491007626056671, -0.02233211323618889, 0.37058383226394653, -0.5953326225280762, -0.050524644553661346, 0.4338773488998413, 0.17040219902992249, -0.38241294026374817, 0.3583087027072...
def _ prepare _ state _ hops _ with _ proxy _ pc ( self ) : state _ hops = { unixremote. not _ connected : { unixremote. unix _ remote : unixremote. unix _ local, unixremote. proxy _ pc : unixremote. unix _ local, unixremote. unix _ local _ root : unixremote. unix _ local, unixremote. unix _ remote _ root : unixremote....
[ -0.42034658789634705, -0.44271114468574524, 0.8978849649429321, -1.330137848854065, 0.01768459565937519, 0.8693175315856934, -0.3227510452270508, -0.30227839946746826, 0.3533453047275543, 0.11075025051832199, -0.11525224149227142, -0.47399818897247314, -0.5997012257575989, -0.6842644214630...
def read _ article ( self ) : article = self. file. read _ text ( ). split ( ". " ) sentences = list ( ) for sentence in article : # remove punctuations, numbers and special characters sentences. append ( sentence. replace ( " [ ^ a - za - z ] ", " " ). split ( " " ) ) # sentences. pop ( ) return sentences
[ 0.09801162034273148, -1.3999558687210083, 0.5139360427856445, -0.05837072432041168, -0.3275991678237915, -0.40431639552116394, 0.0019870027899742126, 1.1695266962051392, -0.13531236350536346, 1.2922707796096802, 0.20851318538188934, -0.5491705536842346, -0.540703535079956, 0.01117573026567...
def add _ media ( self, url, media _ type, hero _ img = false ) : if'media'not in self. m : self. m ['media'] = [ ] individual _ media = { } if hero _ img : assert ( media _ type = ='image'), f " { media _ type. upper ( ) } media - type cannot be a hero - image. " assert ( not self. _ is _ asset _ type _ exists ( ) ), ...
[ -1.2229093313217163, 0.2624613046646118, 0.6810909509658813, 0.59763503074646, 0.548269510269165, -0.17574186623096466, -0.43061235547065735, 0.5053409934043884, 0.18550696969032288, 0.012178624048829079, -0.16236038506031036, 0.48284006118774414, 0.018452990800142288, 1.655846357345581, ...
def employee _ more _ info ( id ) : employee = user. query. get ( id ) return render _ template ( " employee _ more _ info. html ", user = current _ user, employee = employee )
[ -0.36901381611824036, 0.038797732442617416, 0.36413121223449707, -0.4919281005859375, -0.647320032119751, 0.32172951102256775, -0.45671141147613525, -0.3105858266353607, -0.7925722002983093, -0.15541252493858337, -0.03915772587060928, -0.16167746484279633, 0.5932327508926392, 0.19445277750...
def get ( self, ns, key, usemsgpack = true ) : result = none ret _ dict = self. _ sdl. get ( ns, { key } ) if key in ret _ dict : result = ret _ dict [ key ] if usemsgpack : result = msgpack. unpackb ( result, raw = false ) return result
[ -0.42720821499824524, 1.0185866355895996, 0.6878559589385986, 0.5794777274131775, -0.8906992673873901, -1.1684283018112183, -1.4050395488739014, -1.1827114820480347, 0.3351965844631195, -0.3938344120979309, 0.09116514027118683, 0.2864711582660675, -0.30778634548187256, 0.0955892950296402, ...
def fit ( self, data ) : # transpose and split data into the two point sets data = data. t x1 = data [ : 3, : 8 ] x2 = data [ 3 :, : 8 ] # estimate fundamental matrix and return f = compute _ fundamental _ normalized ( x1, x2 ) return f
[ 0.3550485372543335, 0.41487014293670654, 0.3665677607059479, 0.30066850781440735, 0.20674410462379456, -0.08897776901721954, 0.07531856000423431, -0.1782132089138031, -0.8310994505882263, -0.19771572947502136, 0.3305387496948242, 0.13617748022079468, -0.8747259974479675, -0.558393299579620...
def start _ alarm ( ) : try : hours _ inp = int ( hours _ item. get ( ) ) # get info from spinbox assert hours _ inp in range ( 0, 24 ) minutes _ inp = int ( minutes _ item. get ( ) ) assert minutes _ inp in range ( 0, 60 ) except valueerror as e : print ( f " error occured : { e } " ) except assertionerror : print ( "...
[ -0.0956573337316513, -0.8869649171829224, 0.6012614369392395, 0.4671892821788788, 0.6053460836410522, 1.2065331935882568, -0.36895596981048584, -0.2213289588689804, 0.0034927595406770706, 0.3485960364341736, -0.3062381446361542, 0.5563607215881348, -0.7932633757591248, 0.4723161458969116, ...
def get _ instance _ output ( instance _ id : optional [ pulumi. input [ str ] ] = none, location : optional [ pulumi. input [ str ] ] = none, project : optional [ pulumi. input [ optional [ str ] ] ] = none, opts : optional [ pulumi. invokeoptions ] = none ) - > pulumi. output [ getinstanceresult ] :...
[ -0.23605786263942719, -0.2137894630432129, 0.47887319326400757, -0.653313398361206, 0.1091974601149559, -0.039135176688432693, -0.14920265972614288, 0.6215155124664307, 0.20675444602966309, -0.25673043727874756, 0.6261551380157471, 1.358134150505066, -1.387168526649475, -1.4605586528778076...
def _ run ( input _ file _ name, cam _ colour _ map _ name, max _ colour _ prctile _ for _ cam, top _ output _ dir _ name ) : main _ gradcam _ dir _ name ='{ 0 : s } / main _ gradcam '. format ( top _ output _ dir _ name ) guided _ gradcam _ dir _ name ='{ 0 : s } / guided _ gradcam '. format ( top _ output _ dir _ nam...
[ -0.4010670781135559, -0.002804277464747429, 0.7625778913497925, -0.25194481015205383, -0.09071629494428635, 0.3793013095855713, 1.2764943838119507, -0.4327144920825958, -0.420419305562973, 0.32471963763237, 0.27295297384262085, 0.3142094314098358, -0.6886289119720459, 0.31927335262298584, ...
def test _ atomic _ qname _ enumeration _ nistxml _ sv _ iv _ atomic _ qname _ enumeration _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - enumeration - 1. xsd ", instance = " nistdata / atomic / qn...
[ -0.5030680894851685, -1.041910171508789, 0.484091579914093, 0.07326624542474747, -0.19651839137077332, 0.17632432281970978, 0.13642621040344238, -0.4756421148777008, 0.6285051107406616, 0.7264881134033203, 0.06166308373212814, -0.21850602328777313, 0.08486782014369965, -0.11535369604825974...
def deletedevice ( self, typeid, deviceid ) : deviceurl = apiclient. deviceurl % ( self. host, typeid, deviceid ) r = requests. delete ( deviceurl, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 204 : self. logger. debug ( " device was successfully removed " ) return true elif...
[ -1.2245427370071411, 0.1366328001022339, 1.081215739250183, 0.7986482381820679, -0.017046956345438957, 0.3951073884963989, 0.017025725916028023, -0.2360328584909439, 0.29237061738967896, 0.26502999663352966, 0.16929633915424347, 0.9389169812202454, -1.8943886756896973, -0.11742150038480759...
def dtype ( self ) : if self. keys ( ) : try : return self. _ data [ next ( iter ( self. keys ( ) ) ) ]. dtype except attributeerror : return none else : return none
[ -0.24276643991470337, 0.621532142162323, 0.38838109374046326, -0.12613216042518616, -0.09103039652109146, -0.7640357613563538, -0.0010064949747174978, -0.09327798336744308, -0.3035232126712799, -0.34072715044021606, 0.31622734665870667, 0.4935271143913269, -0.5977931618690491, 0.2614304423...
def len _ num ( number ) : return len ( str ( abs ( number ) ) )
[ -0.08118458092212677, 0.0727129578590393, 0.4133201837539673, -0.37190982699394226, -0.1997513324022293, 1.1797574758529663, -0.6166800260543823, 0.7607201337814331, 0.5279445052146912, 0.017839394509792328, -0.38445281982421875, -0.7026880979537964, 0.9572651386260986, -0.2038637846708297...
def generate _ image ( image _ shape, image _ objects, multichannel = true, num _ channels = 3, intensity _ range = none, random _ seed = none, color _ info = none, overlay = false ) : if not multichannel : num _ channels = 1 if intensity _ range is none : intensity _ range = ( 0, 254 ) if num _ channels = = 1 else ( (...
[ -0.8803693056106567, -0.5226649641990662, 0.5727503299713135, -0.8261889815330505, 0.3978765606880188, -0.21027228236198425, 0.22444334626197815, -0.34546759724617004, 0.027691088616847992, 0.36481741070747375, -0.16669784486293793, -0.18962575495243073, 0.705865740776062, 0.21592380106449...
def reduced _ pot ( e : float ) - > float : return e / kt
[ 0.6366932988166809, 0.17858554422855377, 0.24596288800239563, -0.3036900758743286, -0.4449915289878845, 0.3314422369003296, 0.1946026086807251, 0.38811159133911133, 0.24459463357925415, 1.5418663024902344, 1.2518086433410645, -1.1200896501541138, 0.12850508093833923, -0.15983083844184875, ...
def handlejwt ( request ) : wob _ payload _ object = wob _ payload. wob _ payload ( ) jwt _ type = request. get. get ('type ','' ) obj _ id = str ( random. randint ( 1, 100 ) ) if jwt _ type = ='loyalty': loyalty _ obj = loyalty. generate _ loyalty _ object ( config. issuer _ id, config. loyalty _ class _ id, config. l...
[ -0.020790085196495056, -0.8532498478889465, 1.039497971534729, 0.27773723006248474, -0.09117473661899567, 0.3115423321723938, 0.18741647899150848, -1.1910977363586426, 0.7044867873191833, 0.2189912497997284, -0.24502617120742798, -0.25202664732933044, -0.156193807721138, 0.5753316879272461...
def on _ combobox _ triggerdomain _ currentindexchanged ( self, index ) : # todo : not implemented yet print ( index )
[ -0.6781837344169617, -0.8258583545684814, 0.2729884386062622, 0.05641023814678192, 0.19978207349777222, -0.24443578720092773, 1.410186529159546, 0.16412822902202606, 0.6332246661186218, -0.4870058298110962, -0.9730138182640076, 1.1860893964767456, -0.06611306965351105, -0.6850088238716125,...
def download _ asset _ c ( filename, counter, project _ id ) : download _ file ( f " https : / / assets. scratch. mit. edu / internalapi / asset / { filename } / get / ", f " { project _ id } / { counter }. { filename. split ( '.') [ - 1 ] } " )
[ 0.3926103711128235, -0.7151022553443909, 0.46114420890808105, -0.4767600893974304, -0.1961192786693573, 0.630905032157898, 0.22314468026161194, -0.44376879930496216, -1.3212616443634033, -0.1922972947359085, 0.6026497483253479, 0.47814232110977173, 0.016009414568543434, -0.4582963883876800...
def mu ( self, v ) : ret = 0. 0 if'*'in self. _ cats : ret = 1. 0 else : if v in self. _ cats : ret = self. _ cats [ v ] # print str ( v ) + " satisfies " + str ( self ) + " = " + str ( ret ) return ret
[ -1.3160966634750366, -0.19347569346427917, 0.3617408573627472, -0.6318085193634033, -0.5820465087890625, -0.07306276261806488, -0.2546408176422119, 0.24419446289539337, 0.3588847815990448, -0.4847290813922882, 0.2670440673828125, 0.30046385526657104, -0.6169645190238953, 0.8138390779495239...
def load _ data ( data _ file _ name _ in ) : print ('loading data to a list of dictionaries') with open ( data _ file _ name _ in,'r') as fin : data _ lines = fin. readlines ( ) len _ data = len ( data _ lines ) for i in range ( len _ data ) : data _ lines [ i ] = json. loads ( data _ lines [ i ] ) print ('loading dat...
[ -0.7217664122581482, -0.4892139732837677, 0.6286345720291138, -1.31682288646698, -0.0754583328962326, 0.462155818939209, -1.2730886936187744, 0.447054922580719, -0.7897523045539856, 0.0455767996609211, -0.9009239673614502, 0.21177737414836884, 0.12058908492326736, 0.2535976469516754, -0....
def get _ language ( self, editor ) : lang = editor. get _ active _ document ( ). get _ language ( ) lang = lang and lang. get _ name ( ) return lang
[ 0.10393822193145752, -1.0440632104873657, 0.4056621491909027, 0.15029427409172058, -1.0044066905975342, -0.6189631223678589, 0.0390966534614563, -0.4410884976387024, -0.06354701519012451, 0.18268528580665588, 0.3425580561161041, -0.28113093972206116, 0.3114645779132843, 0.44233617186546326...
def spec _ hum ( ) : yield 7. 8526e - 3
[ 0.4925878643989563, 0.40797704458236694, 0.41915956139564514, -0.19907543063163757, 0.7533641457557678, 0.42045167088508606, 0.16757196187973022, -0.27208229899406433, -0.14108215272426605, 0.05989382043480873, 0.16036303341388702, -0.24616661667823792, 0.34533485770225525, -0.019830353558...
def make _ task _ dump ( env, dag, kind ) : return pythoncallable ( _ dump, product = file ( env. path / kind /'raw. parquet'), dag = dag, name ='raw ', params = dict ( kind = kind ) )
[ -0.3165295422077179, 0.9154221415519714, 0.4523695707321167, -0.3621024787425995, -0.5830898284912109, -0.009131532162427902, 0.7378959059715271, -0.05158979445695877, -0.8625446557998657, 0.24709776043891907, -0.11043234169483185, 0.6104071140289307, 1.714324712753296, -0.3111723661422729...
def query ( url, * * kwargs ) : try : log. info ('querying url " { } " with params { } '. format ( url, kwargs ) ) resp = requests. get ( url, params = kwargs, verify = true ) data = resp. json ( ) except exception as e : log. error ( " market sessions fail : { } ". format ( e ) ) raise if " error " in data : raise exc...
[ -0.6624722480773926, -0.017726941034197807, 0.46547743678092957, 0.20306792855262756, -0.19997712969779968, -0.7228332757949829, -0.9385854005813599, -0.41748037934303284, 0.7777445912361145, 0.7263312339782715, 0.2809554934501648, 0.4796494245529175, -0.30682793259620667, -0.0159052461385...
def to _ bin ( self, address ) : return bin ( int ( address, 16 ) ) [ 2 : ]. zfill ( 32 ) [ : : - 1 ]
[ -0.17736320197582245, 0.4010067880153656, 0.5954263806343079, -0.3102966248989105, 0.3577877879142761, 0.9087565541267395, 0.013281712308526039, -1.1785026788711548, 0.9814444780349731, 0.08005211502313614, -0.8220694661140442, 1.4209994077682495, 0.0015328768640756607, -0.0620229355990886...
def get _ maya _ window ( ) : for widget in qtwidgets. qapplication. toplevelwidgets ( ) : if widget. objectname ( ) = ='mayawindow': return widget raise runtimeerror ('could not locate mayawindow...')
[ 0.5641886591911316, -0.3734017014503479, 0.3966350555419922, 0.4941851794719696, -1.3525656461715698, 0.07877100259065628, 0.7051226496696472, -0.21290844678878784, 0.41705265641212463, -0.7465958595275879, 0.6347733736038208, 1.2536401748657227, -1.0195752382278442, 0.9575832486152649, ...
def teardown _ db ( exception ) : storage. close ( )
[ 0.32625481486320496, -0.15936405956745148, 0.12638278305530548, 0.16557161509990692, 0.3621364235877991, 0.49323350191116333, 0.6791130900382996, 0.3252060115337372, 0.7437125444412231, 0.19413404166698456, 0.5779089331626892, -0.46366384625434875, -0.8332657217979431, -0.2471238523721695,...
def generate _ dictionaries ( self, train _ set ) : for xy _ tups in train _ set : for i in range ( len ( xy _ tups ) ) : word = xy _ tups [ i ] [ 0 ] pos = xy _ tups [ i ] [ 1 ] self. word _ count [ word ] + = 1 self. distinct _ words. add ( word ) self. d1 [ ( word, pos ) ] + = 1 self. d2 [ pos ] + = 1 if i! = 1 : pr...
[ -0.5901193022727966, 1.1319068670272827, 0.5291087627410889, -1.2445400953292847, -0.2167823165655136, -0.41102802753448486, 0.6388270854949951, 0.4132455289363861, -1.109538197517395, 0.010969409719109535, -0.15457214415073395, -0.6508119106292725, 0.763440728187561, 0.020021116361021996,...
def getinfos ( self, cursor, netid ) : cursor. execute ('''select informationid, internalid from informations where networkid =?'' ', ( netid, ) ) infos = { } for row in cursor : infos [ row [ 1 ] ] = row [ 0 ] return infos
[ -0.23770137131214142, -0.20250500738620758, 0.16057106852531433, -0.8160935640335083, -0.3232789933681488, -0.2976183593273163, -0.7623673677444458, -0.32278576493263245, -0.7624834775924683, 0.2930087149143219, -0.36519068479537964, -0.4220748543739319, -0.5849284529685974, 0.792091548442...
def matvec ( a, b, transpose _ a = false, adjoint _ a = false, a _ is _ sparse = false, b _ is _ sparse = false, name = none ) : with ops. name _ scope ( name, " matvec ", [ a, b ] ) as name : output = matmul ( a, array _ ops. expand _ dims ( b, axis = - 1 ), transpose _ a = transpose _ a, adjoint _ a = adjoint _ a, a ...
[ 0.26379522681236267, 0.24418506026268005, 1.0515031814575195, -0.07183728367090225, -0.3384498655796051, -0.2854822874069214, -0.4050584137439728, 0.14754746854305267, 0.1729947328567505, 0.8866931796073914, 0.8366495966911316, 0.9200120568275452, 0.5920238494873047, -0.7360795736312866, ...
def reopen ( self, ticket _ id ) : return self. update ( ticket _ id, { " status " : " open " } )
[ -0.669070303440094, -0.6561510562896729, 0.40440279245376587, 0.08291033655405045, -1.07173752784729, 0.26655328273773193, 0.06482084840536118, 1.5407218933105469, 0.4109426736831665, -0.3153490126132965, -0.6509557366371155, 0.3678063750267029, -0.45657116174697876, -1.051934003829956, ...
def set _ password ( self, value ) : super ( searchbycategoryinputset, self ). _ set _ input ('password ', value )
[ -1.2161448001861572, 0.5092442631721497, 0.3418358564376831, 0.6790468692779541, -0.0707157626748085, 0.018549280241131783, 0.7751174569129944, -0.6198973655700684, -0.2714627683162689, -0.05500705912709236, -0.058919716626405716, -0.49653077125549316, 0.26999861001968384, 0.34612172842025...
def item _ payload ( item ) : try : media _ type = item [ " type " ] media _ id = item [ " uri " ] except keyerror as err : _ logger. debug ( " missing type or uri for media item : % s ", item ) raise missingmediainformation from err try : media _ class = content _ type _ media _ class [ media _ type ] except keyerror ...
[ -0.575434148311615, -0.6076803803443909, 0.5861245393753052, 0.35381463170051575, -0.3993673324584961, -0.26060909032821655, -0.4971274733543396, -0.9149660468101501, 0.7012431025505066, 0.786510705947876, -0.5749200582504272, 0.012834543362259865, -0.09283076971769333, 0.38298147916793823...
def dice ( predictions, labels, num _ classes ) : dice _ scores = np. zeros ( ( num _ classes ) ) for i in range ( num _ classes ) : tmp _ den = ( np. sum ( predictions = = i ) + np. sum ( labels = = i ) ) tmp _ dice = 2. * np. sum ( ( predictions = = i ) * ( labels = = i ) ) / tmp _ den dice _ scores [ i ] = tmp _ dic...
[ -1.2702405452728271, -0.028549063950777054, 0.5686461329460144, 0.810848593711853, 0.9519157409667969, 0.301194429397583, 0.11522922664880753, 0.7719764709472656, -0.5190012454986572, 0.658797562122345, 0.44957786798477173, 0.30152708292007446, 0.16788022220134735, 0.092896968126297, 0.2...
def removechecker ( self ) : self. checkers. pop ( 0 )
[ 0.03155955299735069, -0.6176735758781433, 0.353680282831192, 0.40986180305480957, 0.6051524877548218, 0.8186922073364258, 0.3012232780456543, 1.0212680101394653, -0.9751490354537964, -0.2121301144361496, 0.483270525932312, 0.08183890581130981, -1.6942248344421387, 1.14840829372406, 0.235...
def write _ fq ( fq _ dict, fname, mode ) : if fname. endswith ( '. gz') : with gzip. open ( fname,'wb') as f : for k in list ( fq _ dict. keys ( ) ) : if mode = ='strip': # if unmapped, write all the read lines if fq _ dict [ k ] [ 0 ] = ='u': f. write ( f " @ { k } \ n ". encode ( ) ) for i in fq _ dict [ k ] [ 1 : ]...
[ 0.05766856670379639, -0.8834205865859985, 1.0811784267425537, -0.4054937958717346, -0.9220549464225769, 0.32588592171669006, -0.1566253900527954, 0.6823607683181763, -0.005439572501927614, -0.03631925955414772, 0.07263442873954773, -0.4671868681907654, 0.7188597321510315, 0.473228335380554...
def decode ( resource _ string ) : log = logging. getlogger ('pyactiveresource. format') log. debug ('decoding resource : % s ', resource _ string ) try : data = util. xml _ to _ dict ( resource _ string, saveroot = false ) except util. error, err : raise error ( err ) if isinstance ( data, dict ) and len ( data ) = = ...
[ 0.30430173873901367, -1.5078736543655396, 0.3697449862957001, -0.5565505623817444, -1.0075808763504028, -0.7204850912094116, -0.08760932832956314, -0.19733864068984985, 0.3322785794734955, -0.643753170967102, 0.2078910917043686, -0.5617383718490601, -0.24345318973064423, -0.479770869016647...
def test _ call _ result _ as _ dict ( self ) : exp _ assignments = rdp _ test1 _ expected _ dict min _ confidence = self. default _ app. params ['confidence'] # since there is some variation in the assignments, run # 10 trials and make sure we get the expected result at least once num _ trials = 10 unverified _ seq _ ...
[ -0.10322088748216629, 0.21650853753089905, 0.6383470296859741, -0.5050469040870667, 0.7237705588340759, 0.49637147784233093, -0.41719165444374084, -0.07639329135417938, -0.2914738059043884, 0.22936013340950012, 0.24955205619335175, 0.14407092332839966, -0.15864700078964233, 0.6227154731750...
def start ( self, origin ) : self. start _ time = time. time ( ) self. pause _ until = none self. data. update ( self. _ get _ struct ( origin,'origin') ) self. data _ stack. append ( self. data ) sys. settrace ( self. _ trace ) return self. _ trace
[ -0.1731688678264618, 0.1421298086643219, 0.49432510137557983, -0.36589136719703674, -0.08998648077249527, -0.03418143466114998, -0.3968908488750458, 0.4821774363517761, 0.45917966961860657, -0.3124840557575226, -1.135717749595642, 0.7896180748939514, -0.5980337262153625, -0.342361360788345...
def cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilterid3did3 _ cast ( * args )
[ 0.5795014500617981, -0.16782817244529724, 0.3584708869457245, -1.0132925510406494, -0.15148326754570007, 1.353309154510498, -0.1759454756975174, -0.03792226314544678, 0.9403501152992249, 0.9656835794448853, -0.5565495491027832, 0.15618400275707245, -0.5896297693252563, -0.8526437878608704,...
def template _ convert ( kod, args ) : try : from jinja2 import environment, filesystemloader except importerror : exit ( " fatal : jinja templating engine not found. install using pip install jinja2 " ) db = database ( args. dbdir, kod ) template _ dir = join ( dirname ( dirname ( abspath ( _ _ file _ _ ) ) ), " templ...
[ -0.03517385572195053, -0.407549113035202, 0.7301855683326721, -0.36247435212135315, -0.5866162776947021, -0.505689263343811, -0.2774219810962677, -0.09405083954334259, -0.6299243569374084, 0.999287486076355, -0.34430456161499023, 0.6963778734207153, 0.2101445496082306, 1.0492137670516968, ...
def find _ start _ in _ peak ( peak _ range, transcript _ sequence, count _ vector, reads _ cutoff, canonical _ start _ codon, nearcanonical _ start _ codon ) : # convert peak to numpy array for better performance range _ numpy = np. asarray ( peak _ range ) # initial qc if np. nansum ( count _ vector [ min ( range _ n...
[ -0.28445106744766235, -0.5574270486831665, 0.7466868758201599, 0.240592360496521, -0.06083954498171806, -0.43204933404922485, 0.04206635802984238, 0.479570209980011, -0.3150637745857239, 0.3868842124938965, 0.18793025612831116, 0.48391279578208923, 0.04774315282702446, -0.13111020624637604...
def calc _ charge ( message _ size, channels, start _ time ) : assert all ( channels ) assert all ( math. isclose ( channel [ - 1 ] [ 1 ], math. inf ) for channel in channels ) not _ transmitted = message _ size time = start _ time channels = [ iter ( channel ) for channel in channels ] charge = [ ( 0, start _ time ) ]...
[ 0.4355151653289795, -0.36456626653671265, 0.9898620843887329, -0.6637561917304993, -0.4147263765335083, -0.682496964931488, -0.4971570670604706, -0.290880024433136, -0.2747521996498108, 0.7491194009780884, 0.10698708146810532, -0.0012395421508699656, -1.037881851196289, 1.223603367805481, ...
def boundary _ images ( images : union [ np. ndarray, torch. tensor ], patch _ classifications : union [ np. ndarray, torch. tensor ], boundary _ color : tuple [ int, int, int ] = ( 255, 0, 0 ) ) - > np. ndarray : images = to _ numpy ( images ). copy ( ) masks = to _ numpy ( patch _ classifications ). copy ( ) b _ imag...
[ -0.42565059661865234, -0.6031044125556946, 0.6991533637046814, 0.6609398126602173, 1.3235007524490356, 0.24577422440052032, 0.10030920058488846, 0.12195725739002228, -0.3036828935146332, 0.9431086778640747, 0.29869014024734497, 0.981202244758606, -0.06224913150072098, 0.6702693104743958, ...
def write _ dataset _ to _ tfrecord ( dataset, output _ dir ) : for d in dataset : encode _ to _ tfrecord ( d, output _ dir )
[ -0.8667226433753967, 0.17573678493499756, 0.1740816831588745, -0.8177435398101807, 0.6562601327896118, -0.40056130290031433, -0.10762149095535278, 0.1420482099056244, -0.5228502750396729, 0.16290615499019623, -0.24188923835754395, 0.5023251175880432, 0.3987198770046234, 0.6368309259414673,...
def _ add _ registry _ creates ( self, node, calls ) : regcreates = calls [ ( ( calls ['api'] = ='regcreatekeyexa') | ( calls ['api'] = ='regcreatekeyexw') | ( calls ['api'] = ='ntcreatekey') ) & ( calls ['status'] = = true ) ] for i, regcreate in regcreates. iterrows ( ) : regname = none for arg, val in regcreate ['ar...
[ -0.7124834060668945, 0.857541561126709, 0.5479106307029724, -0.6424663066864014, 1.5341813564300537, 0.3292846381664276, 0.04493950307369232, -0.06274488568305969, 0.017791952937841415, 0.6563746333122253, -0.10646822303533554, 0.24503958225250244, -0.1998991221189499, 0.5408483743667603, ...
def all _ 2 _ swaps ( steps : list [ step ] ) - > list [ list [ step ] ] : def index ( l, val, fail ) : try : return l. index ( val ) except : return fail swaps = [ ] for idx, step1 in enumerate ( steps ) : jobids = list ( map ( lambda step : step. job, steps ) ) left, right = [ ] if idx = = 0 else jobids [ idx - 1 : :...
[ -0.9263978600502014, -0.5073626637458801, 0.7560639381408691, 0.6174372434616089, -0.4950653612613678, 0.5552970170974731, 0.03194612264633179, 0.08344809710979462, -0.11492990702390671, -0.5204018354415894, -0.6266465187072754, 0.24725587666034698, 0.14774471521377563, 1.3742318153381348,...
def display _ packages _ summary ( build _ errors : dict [ str, list [ docbuilderror ] ], spelling _ errors : dict [ str, list [ spellingerror ] ] ) : packages _ names = { * build _ errors. keys ( ), * spelling _ errors. keys ( ) } tabular _ data = [ { " package name " : f " [ info ] { package _ name } [ / ] ", " count...
[ -0.46535590291023254, -0.02679072879254818, 0.6591072678565979, -0.8194234371185303, -0.654728889465332, 0.5561183094978333, -0.02739819884300232, -0.3502519726753235, -0.20827996730804443, 0.4052481949329376, 0.36457163095474243, 0.6741814613342285, 0.8705987930297852, 0.12470046430826187...
def _ _ init _ _ ( self, class _ object, operation _ type = none ) : # imports inside the _ _ init _ _ method definition to avoid cyclic imports from. commcell import commcell from. client import client from. agent import agent from. backupset import backupset from. subclient import subclient self. class _ object = cla...
[ 0.03817262500524521, 0.24882476031780243, 0.9118654727935791, -0.2052120417356491, -0.5116092562675476, -0.6563301682472229, 0.5532652735710144, -0.5957273840904236, 0.6480850577354431, 0.285327672958374, 0.7927383780479431, 0.29973340034484863, 0.3629061281681061, 0.38705241680145264, 0...
def wegsegment ( self ) : return self. _ wegsegment. get _ waarde ( )
[ -0.5563007593154907, 0.08251159638166428, 0.2888130247592926, -0.6558496952056885, 0.25028014183044434, 0.21042072772979736, 0.7826449871063232, -0.4675356149673462, -0.34584054350852966, -0.2388468235731125, 0.11193056404590607, 0.40152594447135925, -0.9003178477287292, 0.7136715054512024...
def gen _ search _ urls ( search _ term, max _ pages ) : url _ list = [ ] url _ list. append ('http : / / zetatijuana. com /? s = % s'% search _ term ) if max _ pages > 1 : for page _ number in range ( 2, max _ pages + 1 ) : url _ list. append ('http : / / zetatijuana. com / page / % s /? s = % s'% ( page _ number, sea...
[ -1.4454437494277954, 0.2886480987071991, 0.6068281531333923, 0.892200231552124, 0.6579915881156921, 0.09807471185922623, -1.217476725578308, 1.3373618125915527, 0.0012709712609648705, 0.2036755084991455, -0.3420957624912262, -0.22055448591709137, 0.24603094160556793, 0.9147854447364807, ...
def structuralcoverage ( self ) : self. printstatus ( ) if self. mloglevel > = 1 : print " # structures : % s " % ( self. mtablenamestructures ) print " # minimum overlap : % i " % ( self. mstructuresminoverlap ) sys. stdout. flush ( ) print " " " # # family : cluster number # nseqs : number of sequences with annotatio...
[ 0.24961738288402557, -0.6766377687454224, 0.7906615138053894, -0.04158998280763626, -0.5010485053062439, 0.015872813761234283, 1.3281188011169434, -0.7541952729225159, -0.4669417440891266, -0.09371508657932281, 0.49458232522010803, 0.5089995861053467, 0.35431554913520813, -0.17111109197139...
def parse _ value ( val ) : val = val. replace ( " % ", " " ) \. replace ( " ", " " ) \. replace ( ", ", ". " ) \. replace ( " st ", " " ). strip ( ) missing = [ " ejdeltagit ", " n / a ", " - " ] if val in missing : return val elif val = = " " : return none return float ( val )
[ 1.2839893102645874, -0.0023354385048151016, 0.5197435021400452, -0.3700328767299652, -1.0574244260787964, -0.2781622111797333, -0.04006816819310188, -0.6797546744346619, -0.1037270799279213, -0.061914630234241486, 0.4892251193523407, -0.2410692572593689, 0.10218755155801773, 0.864585041999...
def save ( self, * args, * * kwargs ) : self. asset _ type = " residual " super ( residual, self ). save ( * args, * * kwargs )
[ 0.21868671476840973, 0.1142125204205513, 0.5227051973342896, -0.3911500871181488, 0.7584971785545349, 0.44292232394218445, -0.13230285048484802, 0.26962658762931824, -0.08189566433429718, 0.2542427182197571, -1.2309199571609497, -0.042841698974370956, -0.7948359847068787, -0.36196461319923...
def build _ belief _ propagation ( n, m, grid _ shape, gamma = 0. 031, bp _ iterations = 3 ) : # for every ray the per voxel depth probability s = k. placeholder ( shape = ( n, m ), dtype = " float32 ", name = " s " ) # the voxels that each ray intersects with ( in order ) ray _ voxel _ indices = k. placeholder ( shape...
[ 0.23130202293395996, 0.17753341794013977, 0.6843351125717163, 0.27788758277893066, -0.18291811645030975, -0.60533207654953, 0.47473254799842834, 0.7730181813240051, -0.7159186005592346, 1.1765931844711304, 0.5903195142745972, 0.2784002423286438, 0.2857251465320587, 0.24160988628864288, 0...
def getdofvalues ( self ) : return self. getrobot ( ). getdofvalues ( self. getindices ( ) )
[ -0.23006543517112732, 0.7247889041900635, 0.39711257815361023, 0.3355497121810913, 0.8504153490066528, -0.16636626422405243, -0.3793985843658447, -1.1428461074829102, -0.5308343172073364, -1.0207844972610474, -0.15223176777362823, -0.15734240412712097, 0.3943421244621277, 0.845172047615051...
def process _ dict ( json _ dct : dict ) - > dict : try : content = json _ dct [ " content " ] except keyerror : content = " " try : new _ json = json _ dct [ " embed " ] except keyerror : new _ json = json _ dct # set default type to " rich " if " type " not in new _ json : new _ json [ " type " ] = " rich " # todo : ...
[ -0.3158119320869446, -0.46136683225631714, 0.5999523997306824, -0.9241781830787659, -0.5355307459831238, 0.2591833770275116, 0.30059170722961426, -0.693915069103241, 0.6235042810440063, 0.9032411575317383, -0.5385597944259644, 0.008223014883697033, 0.31432658433914185, 0.542607843875885, ...
def load _ shapes ( shape _ file ) : try : sf = shapefile. reader ( shape _ file ) except shapefile. shapefileexception as e : raise valueerror ( e ) # map for patches patches = { } # patch : { key : value } # create a map from field numbers to field names. fields = { } for index, field in enumerate ( sf. fields [ 1 : ...
[ 0.34743842482566833, -0.7095836400985718, 0.6028761267662048, -1.5212159156799316, -0.20698361098766327, 0.11931855976581573, 0.33836501836776733, 0.1237478032708168, 0.2936922609806061, -0.2477923035621643, -0.9780853986740112, 0.026319900527596474, 0.13033877313137054, 0.3150500953197479...
def _ map _ to _ uri ( environ, identifier ) : store = environ ['tiddlyweb. store'] try : tiddler = tiddler ( identifier, mapping _ bag ) tiddler = store. get ( tiddler ) uri = tiddler. fields ['uri'] user = tiddler. fields ['user'] _, netloc, path, params, query, fragment = urlparse. urlparse ( uri ) host = netloc pat...
[ -1.1492446660995483, -0.32056567072868347, 0.49844032526016235, -0.06088442727923393, 0.10332001000642776, 0.3915040194988251, 0.5831591486930847, 0.5383836627006531, -0.2153141051530838, 0.15715493261814117, -0.025912834331393242, -0.8385529518127441, 0.39008647203445435, -0.7996431589126...
def calculateerror ( partition ) : ret = [ ] rows = list ( partition ) normx = 0. 0 error = 0. 0 for row in rows : xi = row [ 1 ] ci = row [ 2 ] normx = normx + np. square ( norm ( xi, 2 ) ) error = error + np. square ( norm ( xi - kruskal _ to _ tensor ( [ ci, a, b ] ), 2 ) )'''( ki, i, j ) = xi. shape for i in range ...
[ -0.22105085849761963, -0.3665347695350647, 0.9525294303894043, 0.11244740337133408, -0.498515784740448, -0.5031710267066956, 0.39981743693351746, 0.9666287302970886, -0.027620159089565277, 0.7740724682807922, -0.24762243032455444, -0.6866875886917114, -0.18565180897712708, -0.0789320021867...
def _ get _ aggregates _ sql ( self, group ) : return chain ( * [ a. get _ columns ( prefix = self. _ col _ prefix ( group ) ) for a in self. aggregates ] )
[ -0.346248060464859, 0.6543989777565002, 0.6791372895240784, 0.3460630476474762, 0.2637096047401428, -1.0691267251968384, -0.477090060710907, -1.4001375436782837, -0.5782074332237244, 0.49869662523269653, 0.7365021705627441, 0.10004148632287979, 0.6663219928741455, 0.14729242026805878, -0...
async def get _ user _ by _ email ( self, email : str ) - > user : await self. connect _ to _ database ( ) user _ db = await self. db ['users']. find _ one ( {'email': email } ) if user _ db : return user _ db
[ -0.2834545075893402, 1.2869513034820557, 0.20680777728557587, 0.17219245433807373, 1.1096258163452148, -0.3383195996284485, -0.09048794209957123, -0.399190217256546, -0.415759801864624, 0.7141804695129395, -0.2602398097515106, 0.18643884360790253, -0.3603546917438507, -0.25780749320983887,...
def status ( self ) - > pulumi. output [ str ] : return pulumi. get ( self, " status " )
[ 0.802270770072937, -0.7566980123519897, 0.24583964049816132, 0.36909449100494385, 0.1976223886013031, 0.8597861528396606, -0.18770088255405426, 0.6784354448318481, 0.31254133582115173, -0.010830732062458992, 0.006940801162272692, 0.7741532921791077, 0.38697779178619385, -0.9860702753067017...
def msnerv _ obj _ fct ( x, sigma _ ij, n, n _ components, p _ h, t _ h, n _ perp, w _ cf ) : x = np. reshape ( a = x, newshape = ( n, n _ components ) ) # computing the pairwise squared euclidean distances in the lds dsm _ lds = pairwise _ dist ( x = x, metric ='sqeuclidean ', tomatrix = true ) # lds multi - scale sim...
[ 0.4674600064754486, 0.3996378183364868, 0.7344986200332642, -0.07518596947193146, -0.9702751040458679, -0.7098934650421143, 0.09312307834625244, 0.6174636483192444, -0.2504359483718872, 0.31607696413993835, -0.21922318637371063, -0.013390272855758667, 0.24135352671146393, 0.179442495107650...
def random _ bounded _ uint16 _ fill ( bitgen, low, rng, size, dtype ) : buf = 0 bcnt = 0 out = np. empty ( size, dtype = dtype ) if rng = = 0 : for i in np. ndindex ( size ) : out [ i ] = low elif rng = = 0xffff : # lemire16 doesn't support rng = 0xffff. for i in np. ndindex ( size ) : val, bcnt, buf = buffered _ uint...
[ -0.09288327395915985, 0.5616154670715332, 0.7685930728912354, -1.0775889158248901, 0.587264358997345, 0.35692787170410156, -0.43574807047843933, -0.7005037665367126, 1.031754493713379, -0.4892953038215637, -0.2226632535457611, 0.36367833614349365, -0.41601985692977905, 0.7049556970596313, ...
def solve ( self, initial : np. ndarray, dt : float, nsteps : int ) - > iterable [ np. ndarray ] : yield initial params = {'dt': dt } for _ in range ( nsteps ) : predicted = self. pbm. predict ( params, initial ) residual = self. ddm ( params, predicted ) initial = self. pbm. correct ( params, initial, residual ) yield...
[ -0.2896687686443329, 0.48042044043540955, 0.614959180355072, 1.1060781478881836, 0.47011318802833557, 0.41066476702690125, -0.6100481152534485, -0.8307113647460938, -1.0002808570861816, -0.4554958641529083, 0.2799626588821411, -0.2671680450439453, 0.04427431896328926, 1.0293391942977905, ...
def main ( ) : return render _ template ('index. html')
[ 0.42481592297554016, 0.6872170567512512, 0.17694006860256195, 0.5023906230926514, -0.16269496083259583, 0.2274087518453598, 0.3928971290588379, 1.0080599784851074, -0.6715036630630493, 0.38564029335975647, 0.4993198812007904, -0.6472824811935425, -0.40966808795928955, -0.5304048657417297, ...
def run ( self, value : any ) - > none : if value! = self. value : raise signals. skip ('provided value " { } " did not match " { } " '. format ( value, self. value ) )
[ -0.41753485798835754, 0.6505023837089539, 0.36243966221809387, 0.38578805327415466, -0.22987358272075653, 1.1775013208389282, 1.100378155708313, -0.8544641137123108, 0.38193368911743164, 0.0005902846460230649, -0.26924827694892883, 0.43469443917274475, -0.47650811076164246, 0.8116545081138...
def _ unsorted _ segment _ n ( data, segment _ ids, num _ segments ) : num _ segments = ops. convert _ to _ tensor ( num _ segments ) # bincount doesn't support negative indices so we use unsorted _ segment _ sum segment _ ids _ shape = array _ ops. shape _ internal ( segment _ ids ) ones _ tensor = array _ ops. ones (...
[ -0.3757094442844391, 0.25003668665885925, 0.5586875081062317, -0.0899457335472107, 0.2540901005268097, -0.7124631404876709, 0.6989688277244568, -0.3096187710762024, 0.7268178462982178, 0.09539224207401276, -0.4099096357822418, -0.3753461241722107, 0.5225699543952942, -0.675282895565033, ...
def test _ directed _ edge _ set ( self ) : v0 = directedvertex ( val ='v0') v1 = directedvertex ( val ='v1') e01 = directededge ( ( v0, v1 ) ) e01. set ('weight ', 5 ) self. assertequal ( e01. attrs, {'weight': 5 } ) e01. set ( 0, 1 ) self. assertequal ( e01. attrs, {'weight': 5, 0 : 1 } )
[ -0.3208458125591278, -0.13959339261054993, 0.46375638246536255, -0.1640206277370453, -0.15316392481327057, 0.9575045704841614, 0.11408988386392593, -0.17533548176288605, -0.4218355715274811, 0.12876838445663452, -0.4327935576438904, -0.086126409471035, -0.006270416546612978, 0.010891617275...
def task _ instances ( self, task _ instances ) : self. _ task _ instances = task _ instances
[ -0.7434205412864685, 0.2071746438741684, 0.01345184724777937, -0.2842037081718445, -0.7502118945121765, 1.6405532360076904, 1.2130452394485474, 1.044162631034851, -1.3552566766738892, 0.5764056444168091, -0.6638273596763611, -0.5813612341880798, -0.07857658714056015, 0.7876552939414978, ...
def _ _ repr _ _ ( self ) : return " schedules class instance for { 0 } ". format ( self. _ repr _ str )
[ -0.21789215505123138, -1.0388000011444092, 0.5116769075393677, -1.8709174394607544, -1.0205985307693481, 1.3392590284347534, -0.17342054843902588, -0.13784387707710266, 0.17273764312267303, 0.17148703336715698, 1.2649811506271362, 0.6022437214851379, 0.5168688297271729, -0.5778733491897583...
def _ add _ contact _ to _ graph ( self : contact ) - > none : self. _ g. bind ( " vcard ", vcard ) if not getattr ( self, " identifier ", none ) : self. identifier = skolemizer. add _ skolemization ( ) _ self = uriref ( self. identifier ) self. _ g. add ( ( _ self, rdf. type, vcard. organization ) ) # name if getattr ...
[ -0.5651240348815918, 0.21195544302463531, 0.6895557641983032, -0.5657195448875427, -0.2330830842256546, -0.1500362902879715, 0.20268549025058746, -0.161476269364357, 0.7134135961532593, 0.23303082585334778, -0.3893352448940277, -0.03355349600315094, -0.09899488836526871, -0.236370936036109...
def test _ atomic _ qname _ min _ length _ 4 _ nistxml _ sv _ iv _ atomic _ qname _ min _ length _ 5 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - minlength - 5. xsd ", instance = " nistdata / atomic ...
[ 0.36441749334335327, -0.9680690765380859, 0.30738121271133423, -0.29822099208831787, -0.8646088242530823, -0.199528306722641, -0.1401330977678299, -1.285301685333252, 0.02819802798330784, 0.2740042805671692, -0.8205991983413696, 0.07726607471704483, -0.4605863094329834, 0.03855046629905701...
def test _ list _ integer _ min _ length _ 4 _ nistxml _ sv _ iv _ list _ integer _ min _ length _ 5 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - minlength - 5. xsd ", instance = " nistdata / list / ...
[ -0.24031594395637512, -0.584213376045227, 0.21629519760608673, 0.1408066600561142, -0.6396782398223877, -0.36027809977531433, -0.1838701218366623, -0.5686510801315308, 0.8950591087341309, 0.4288947582244873, -1.2555211782455444, -0.29824599623680115, -1.274970531463623, 0.6996349692344666,...
def web _ url _ for ( view _ name, _ absolute = false, _ internal = false, _ guid = false, * args, * * kwargs ) : url = url _ for ('osfwebrenderer _ _ { 0 } '. format ( view _ name ), * args, * * kwargs ) if _ guid : url = _ get _ guid _ url _ for ( url ) if _ absolute : # we do not use the url _ for's _ external kwarg...
[ -0.2758479118347168, 0.8190279603004456, 0.5630126595497131, -0.04471459612250328, -0.2257101684808731, -0.06525830924510956, 0.20801161229610443, 0.02575429156422615, -0.2842334508895874, -0.6085739731788635, 0.5224214792251587, 0.16814148426055908, 0.10741903632879257, 1.4770935773849487...
def variable _ summaries ( var ) : with tf. name _ scope ('summaries') : var _ image = tf. reshape ( var, ( tf. shape ( var ) [ 0 ], 1, tf. shape ( var ) [ 1 ], 1 ) ) tf. summary. image ('value ', var _ image, max _ outputs = 100 ) mean = tf. reduce _ mean ( var ) tf. summary. scalar ('mean ', mean ) with tf. name _ sc...
[ -0.2083105891942978, 0.6457011103630066, 0.5467261075973511, -1.0157781839370728, -0.23338644206523895, -0.07638434320688248, 0.4910815954208374, -0.2945973873138428, 0.04592331498861313, 0.26764625310897827, -0.8472162485122681, 0.720367968082428, 1.1522475481033325, 0.43471428751945496, ...
def _ _ get _ mask _ dot ( self ) - > float : p _ t = self. _ _ get _ thrsh _ point _ vector ( ) n _ u = self. n _ u n _ pt = p _ t / np. linalg. norm ( p _ t ) return np. dot ( n _ u, n _ pt )
[ 0.10484892129898071, -1.0406166315078735, 0.5261740684509277, 0.12263975292444229, 0.7415873408317566, 0.4156340956687927, 0.9582961201667786, -0.17895428836345673, 0.18854962289333344, -0.004844775423407555, 0.40167132019996643, 0.06260424107313156, 0.48024192452430725, -0.542651951313018...
def test _ toolkit _ controlpanel _ view _ protected ( self ) : from accesscontrol import unauthorized logout ( ) self. assertraises ( unauthorized, self. portal. restrictedtraverse,'@ @ toolkit - controlpanel')
[ 0.6242375373840332, 0.2086656242609024, 0.17770077288150787, 0.08464191854000092, -0.3452180325984955, 0.4294584095478058, 0.706082820892334, -0.8774864673614502, 0.670936107635498, -1.037343978881836, 0.035356514155864716, -0.032710880041122437, -0.2538134455680847, -0.7762449979782104, ...
def _ get _ region _ slug ( self, id _ or _ label ) : region = self. regions. get _ by _ label ( id _ or _ label ) if region is none : try : region = self. regions [ id _ or _ label ] except stopiteration : # this is a strange error thrown by statscraper raise keyerror ( u " { } is not a valid region id or label ". for...
[ 0.13442501425743103, -0.5695135593414307, 0.38367703557014465, -1.1152554750442505, 0.019245168194174767, -0.17826741933822632, -0.6430387496948242, 0.29232868552207947, 0.39687591791152954, -0.2184184193611145, 0.9020640850067139, 0.38813096284866333, 0.3754788935184479, 0.091887250542640...
async def set _ channel _ id _ as ( self, ctx : context, key : str ) : if key not in channel _ id _ keys : await send _ error ( ctx. channel, f'invalid key. valid keys are ` { channel _ id _ keys } `.') return store _ key = user _ friendly _ keys. get ( key ) if store _ key is none : await send _ internal _ error ( ctx...
[ -0.3660144805908203, -0.06918824464082718, 0.3538573980331421, -0.5935733318328857, 0.34251901507377625, 0.2994053065776825, -0.7253232598304749, -0.6946489214897156, 0.6730196475982666, 0.9341003894805908, -0.0558413565158844, 1.2707290649414062, -0.5063353776931763, 0.5214203000068665, ...
def solve ( self, system, environment _ input ) : self. init _ params ( ) ga _ operator = sogaoperator ( system = system, environment _ input = environment _ input, objective = none ) individual = indiv _ gen. merge _ creation _ functions ( ga _ operator, self. version ) solution = ga _ operator. decode ( individual ) ...
[ -0.9929702877998352, 0.7741817831993103, 0.3974747061729431, 0.8430535197257996, 0.6491453647613525, 0.36979347467422485, -0.12178710848093033, -0.26561683416366577, -0.5465809106826782, 0.13866649568080902, 0.010818270966410637, 0.4728814661502838, -0.6391765475273132, 0.07997308671474457...
def test _ create _ similar _ item _ data _ model ( test _ dao ) : dut = dtmsimilaritem ( test _ dao ) assert isinstance ( dut, dtmsimilaritem ) assert isinstance ( dut. tree, tree ) assert isinstance ( dut. dao, dao )
[ 0.17506800591945648, 0.8714793920516968, 0.2723483145236969, 0.3383941948413849, -0.13339902460575104, 1.350806713104248, 0.4287717044353485, 0.12753014266490936, 0.030168384313583374, -0.3343561887741089, -1.8465794324874878, -0.013216018676757812, 0.33358582854270935, -0.3362986147403717...
def getscenegraphroot ( self ) : if self. _ model is not none : return self. _ model. _ rootnode
[ 0.12954221665859222, -0.11824041604995728, 0.4949920177459717, 1.0494868755340576, -0.0788920521736145, 0.3699047565460205, 0.8982902765274048, -0.9625648260116577, 0.7843015193939209, 0.4077806770801544, -0.15817001461982727, 1.3458377122879028, -0.9076248407363892, -0.4184613525867462, ...
def build _ graph ( self ) : with self. graph. as _ default ( ) : with tf. device ( self. device ) : with tf. variable _ scope ('placeholder') : self. x = tf. placeholder ( tf. float32, [ none, self. num _ time _ steps, self. num _ inputs ], name ='inputs') self. y = tf. placeholder ( tf. float32, [ none, self. num _ t...
[ -0.13855406641960144, 0.4046280086040497, 0.46395960450172424, 0.16452418267726898, 0.24847455322742462, -0.6286340355873108, 0.3241210877895355, 0.15611280500888824, -0.23491299152374268, 0.1793885976076126, 0.1796954870223999, 0.10784690082073212, 0.18555527925491333, -0.3087847828865051...
def get _ market _ list ( self ) : return self. get _ request ('/ api / v1 / markets')
[ -1.5778000354766846, 0.6568717956542969, 0.3086603581905365, 0.5211803913116455, 1.493818759918213, -0.21519088745117188, -1.1468061208724976, -0.39168915152549744, 1.088447093963623, 0.09922733157873154, -0.7031089067459106, 1.4798898696899414, -0.695915699005127, 0.5078732371330261, -1...
def test _ 0 _ layers ( arr _ r _ i ) : r _ i = sbp. calc _ r _ i ( arr _ r _ i, 0 ) assert r _ i = = 0, " interface ratio for zero layers set incorrectly "
[ 0.12736132740974426, -0.1037270799279213, 0.2893521785736084, 0.28721103072166443, 0.6988687515258789, 0.5165285468101501, 1.0004587173461914, -0.29957884550094604, 0.2825796604156494, -0.17638185620307922, 0.397545725107193, -1.0156710147857666, -0.8917713761329651, 0.6840910315513611, ...
async def redpill ( self, ctx ) : msg = copy ( ctx. message ) msg. content = ctx. prefix + " pill # ff0000 " ctx. bot. dispatch ( " message ", msg )
[ 0.31222954392433167, 0.10497190058231354, 0.47326695919036865, -0.7303527593612671, 0.8724789023399353, 1.1187454462051392, -1.4079723358154297, 0.08949432522058487, 1.1342867612838745, 0.09027212113142014, -0.02343660779297352, 1.7980660200119019, -0.3152006268501282, 0.33611100912094116,...
def abort ( msg ) : from fabric. state import output, env if not env. colorize _ errors : red = lambda x : x # noqa : e731 else : from fabric. colors import red if output. aborts : sys. stderr. write ( red ( " \ nfatal error : % s \ n " % _ encode ( msg, sys. stderr ) ) ) sys. stderr. write ( red ( " \ naborting. \ n "...
[ 0.4484962821006775, 0.22672346234321594, 0.8038488626480103, 0.11814777553081512, -0.14846009016036987, -0.2937758266925812, -0.16378623247146606, -0.8335143327713013, -0.2637411952018738, 0.08890929818153381, 1.2539594173431396, 0.816402018070221, 0.5532951354980469, 1.1101025342941284, ...
def _ _ init _ _ _ 0 ( self, filename ) : super ( ztexihxfile1, self ). _ _ init _ _ ( ) self. _ _ init _ _ ( filename, self. defaultztexdescriptoroffs )
[ 1.0252950191497803, 0.031935155391693115, 0.5501883625984192, 0.8365363478660583, 0.27518635988235474, 1.0652538537979126, 0.4192580580711365, 1.0943708419799805, -0.9327951669692993, -0.1396467536687851, -0.42801666259765625, -0.20133306086063385, 0.307715505361557, 0.5881852507591248, ...
def coatedblock ( mat, height, width, coating, thickness, substrate, det, e0 = 20. 0, withpoisson = true, ntraj = 1000, dose = 120. 0, sf = false, bf = false, xtraparams = { } ) : def buildblock ( monte, origin, buildparams ) : height = buildparams [ " height " ] width = buildparams [ " width " ] submat = buildparams [...
[ 1.1148735284805298, 0.6003756523132324, 1.3658252954483032, 0.6092522144317627, -1.3006477355957031, 0.024663487449288368, 0.592684268951416, -0.4717702269554138, 0.14355774223804474, -0.17482224106788635, -0.5334331393241882, 0.5573881268501282, -0.24279728531837463, 1.1798906326293945, ...
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...