text
stringlengths
25
2.19k
embedding
listlengths
768
768
def decode _ multiple ( self, obs _ fl, z = none, num _ decode = 10 ) : if z is none : shape = ( tf. shape ( obs _ fl ) [ 0 ], num _ decode, self. latent _ dim ) z = tf. clip _ by _ value ( tf. random. normal ( shape, 0, 1 ), - 0. 5, 0. 5 ) # z = b * n * d with tf. variable _ scope ('decoder') : tf. get _ variable _ sc...
[ -0.14926958084106445, 0.16002337634563446, 0.751815140247345, 0.6694943308830261, -0.07380994409322739, -0.38785865902900696, 0.29926928877830505, 0.09590718150138855, 0.44076085090637207, 0.048792872577905655, -0.5308782458305359, 0.1536843180656433, -0.011730697005987167, -0.011793957091...
def match ( self, passage _ encodes, question _ encodes, p _ length, q _ length ) : with tf. variable _ scope ('match _ lstm') : cell _ fw = matchlstmattncell ( self. hidden _ size, question _ encodes ) cell _ bw = matchlstmattncell ( self. hidden _ size, question _ encodes ) outputs, state = tf. nn. bidirectional _ dy...
[ 0.18812531232833862, -0.7024614214897156, 0.6882598400115967, 0.08674198389053345, -0.03363347426056862, -0.06659741699695587, -0.038254331797361374, 0.15682324767112732, -0.23114149272441864, -0.39361950755119324, -0.1499621421098709, 0.16646865010261536, -0.2816639244556427, -0.135461434...
def generate _ moments ( hyper, params ) : k, d = hyper ['k'], hyper ['d'] p = params # shorthand, don't judge m = { } # moments for x1 in xrange ( 1, d + 1 ) : m [ ( x1, ) ] = sum ( p [ ( h, x1 ) ] * p [ ( h, ) ] for h in xrange ( 1, k + 1 ) ) for x2 in xrange ( 1, d + 1 ) : m [ ( x1, x2 ) ] = sum ( p [ ( h, x1 ) ] * ...
[ -0.2681185007095337, 0.8244048357009888, 0.7213164567947388, -0.4989127516746521, -0.4302370846271515, 0.1633448600769043, 0.5497853755950928, 0.17876985669136047, -0.8352487087249756, 0.2644018530845642, -0.72079998254776, -0.4388120770454407, 0.24430295825004578, 0.7105922698974609, -0...
def get _ args ( ) : parser = argparse. argumentparser ( description ='genetic algorithm for de novo discovery of exclusively mutated pathways.') parser. add _ argument ('- - k ', type = int, action ='store ', default = 3, help ='solution size to search for') parser. add _ argument ('- - eval - only ', action ='store '...
[ -0.06314653903245926, 0.029846446588635445, 0.7828648686408997, 0.10672620683908463, 0.10281497985124588, 0.1647447645664215, -0.24797508120536804, 0.31356626749038696, -0.49597033858299255, 0.02792217582464218, -0.4377841651439667, 0.6617115139961243, -0.11074390262365341, 0.7475119233131...
def reset _ default ( self ) : self. data = self. default self. _ save ( )
[ -0.04304755479097366, 0.17126762866973877, 0.21732062101364136, 0.5911588072776794, 1.750878095626831, -0.3238403797149658, 0.08778582513332367, 0.23407480120658875, -0.7478747963905334, 0.07437539100646973, -1.436556100845337, 0.668554425239563, -0.6903659105300903, -0.8570322394371033, ...
def get _ gs _ similarity _ node _ creator ( alphabet, n, graph, graph _ weights, y _ length, gs _ kernel ) : n _ gram _ to _ index = get _ n _ gram _ to _ index ( alphabet, n ) letter _ to _ index = get _ n _ gram _ to _ index ( alphabet, 1 ) n _ grams = get _ n _ grams ( alphabet, n ) min _ bound = peptideminboundcal...
[ 0.5461260080337524, 0.5104673504829407, 0.592564046382904, -0.04951315000653267, 0.2693510353565216, -0.22879013419151306, -0.2083437144756317, -0.4512016177177429, -0.28186193108558655, -0.12827804684638977, -0.4240422248840332, 0.7244704365730286, -0.4231042265892029, -0.1326313614845276...
def change _ subgraph _ io _ type _ shape ( onx, type _ changes = none, shape _ changes = none, recursive = true ) : if isinstance ( onx, modelproto ) : graph = change _ subgraph _ io _ type _ shape ( onx. graph, type _ changes, shape _ changes, recursive ) onnx _ model = make _ model ( graph, functions = onx. function...
[ -0.4303465485572815, -0.29052966833114624, 0.6523463726043701, 0.05913592502474785, -0.5498583912849426, 0.3056964874267578, 0.8849531412124634, -0.5794007778167725, 0.015396344475448132, 0.5358085036277771, 0.0033011501654982567, 1.0906108617782593, 0.2577693462371826, -0.2821510434150696...
def disk _ prior _ model _ tag ( self ) - > str : if self. disk _ prior _ model is none : return " " tag = conf. instance [ " notation " ] [ " prior _ model _ tags " ] [ " light " ] [ self. disk _ prior _ model. name ] return f " _ _ disk _ { tag } "
[ 0.04280023276805878, -0.4811774790287018, 0.6681573987007141, -0.24369370937347412, 0.5423506498336792, 0.032422084361314774, 0.8285199403762817, -0.29713475704193115, -0.7451254725456238, -0.45514896512031555, -0.2698211073875427, -0.49056851863861084, 0.6274561882019043, 0.69846862554550...
def add _ to _ command _ stack ( cls, command ) : cls. executed _ commands _ stack. append ( command )
[ -0.4527987241744995, 0.6449187994003296, 0.1905059814453125, 0.07063315063714981, 1.5397944450378418, 0.7547823190689087, 0.39038172364234924, -0.2818433940410614, 0.06626470386981964, -0.3648527264595032, -0.3833993375301361, 1.0310804843902588, -0.014742045663297176, 1.1224589347839355, ...
def read _ from _ yaml ( file _ path ) : import yaml if os. path. isfile ( file _ path ) : with open ( file _ path,'r') as stream : data = yaml. load ( stream ) return data else : raise exception ('file : { } does not exist. '. format ( file _ path ) )
[ 1.1077206134796143, -0.4426983594894409, 0.6877064108848572, 0.07936026901006699, 0.1675424873828888, 0.22491171956062317, 0.21047961711883545, 0.11707723885774612, -0.46321868896484375, 0.05329654738306999, 0.45703840255737305, 0.7139391303062439, 0.5216149687767029, 0.18934014439582825, ...
def getkilostr ( * args ) : return _ snap. tuint _ getkilostr ( * args )
[ -0.5002516508102417, 0.40964657068252563, 0.26283779740333557, 0.27788007259368896, 0.3530818223953247, -0.023223113268613815, -0.5848352909088135, -0.7991920709609985, -1.1715569496154785, -0.4090728163719177, 0.6078974604606628, -0.4857636094093323, -0.8660557866096497, 0.253842562437057...
def overwrite _ dbs _ in _ target ( self ) - > optional [ str ] : return pulumi. get ( self, " overwrite _ dbs _ in _ target " )
[ -0.42439189553260803, 0.1397647112607956, 0.6878641247749329, -0.29711422324180603, 1.3202660083770752, 0.6991618871688843, 0.3929823338985443, 0.03183145076036453, 0.6746925711631775, 0.3518642783164978, -0.2852345108985901, 1.272705316543579, -0.2599140703678131, -1.2128549814224243, -...
def _ _ init _ _ ( self, username, password ) : self. username = username self. password = password opts = webdriver. firefoxoptions ( ) opts. headless = true self. bot = webdriver. firefox ( options = opts )
[ 0.10175154358148575, -0.8892659544944763, 0.48849591612815857, 0.9527143239974976, -0.4716935455799103, 0.0870712473988533, -0.5840915441513062, 0.8286840319633484, 0.34009599685668945, -0.45003563165664673, -0.6189521551132202, 0.22937270998954773, -0.1640777289867401, 0.8706520795822144,...
def _ _ set ( self, status ) : # pylint : disable = too - many - locals address = str ( status. address ). encode ( self. encoding ) key _ hash = self. _ key ( " servers ", status. address ) key _ tags = self. _ key ( " servers ", status. address, " tags " ) hash _ = { } for attribute in { " name ", " map ", " applicat...
[ -0.08932770788669586, 0.06990458071231842, 0.5978177189826965, -0.7544087767601013, -0.09995748847723007, -1.1339162588119507, -0.7669085264205933, -0.013730527833104134, -0.5038031935691833, 0.7421155571937561, -1.5481562614440918, 0.09258165955543518, 0.3816685974597931, 0.63669192790985...
def set _ display _ mode ( self, presenter _ code ) : if presenter _ code not in self. _ presenter _ classes : raise ringmastererror ( " unknown presenter type : % s " % presenter _ code ) self. display _ mode = presenter _ code
[ -0.08077305555343628, -0.41185182332992554, 0.4449005126953125, -0.41054606437683105, -0.17250972986221313, 1.4577897787094116, 0.7708562612533569, 0.21914878487586975, 0.3200327157974243, 0.05561025068163872, 0.09993663430213928, -0.029899094253778458, -0.1064266711473465, 0.6679432988166...
def insert ( self, val ) : if val not in self. reversedic : self. count + = 1 self. dic [ self. count ] = val self. reversedic [ val ] = self. count return true else : return false
[ -1.157070279121399, 1.8915235996246338, 0.8530287146568298, -0.6686803102493286, -0.21014411747455597, 0.5812492966651917, 0.5889413952827454, -0.03126703202724457, -1.1075013875961304, -0.1832873374223709, -0.8482269644737244, -0.6693426370620728, -1.4753820896148682, -0.21084314584732056...
def test _ auto _ verify _ dups ( unode, simpleacq, archivefile, archivefilecopy ) : # enable auto _ verify unode. db. auto _ verify = 4 # last update time to permit auto verification last _ update = datetime. datetime. utcnow ( ) - datetime. timedelta ( days = 10 ) # only one file copyy = archivefilecopy ( node = unod...
[ 0.012342255562543869, 0.5394807457923889, 0.5655796527862549, 0.7002677917480469, 1.1685633659362793, 0.332591712474823, 0.7045965790748596, 0.2353944182395935, 0.22893302142620087, -0.19173400104045868, -0.7953445911407471, -0.10874775052070618, 0.41439980268478394, 0.051101505756378174, ...
def test _ isunicode _ int ( self ) : assert not isunicode ( 0 )
[ -0.0476713664829731, 0.3571876883506775, 0.15161332488059998, 0.3819989562034607, 0.3297794759273529, 1.2360591888427734, -0.011759777553379536, 0.5497938394546509, 0.91875821352005, -0.7707937955856323, -0.8425989151000977, -0.23192760348320007, -1.102464199066162, 0.5169416666030884, -...
def calculate _ lbtt ( property _ value ) : # edge case if property value is lower than the taxable bound, no tax is incurred if property _ value < = 145000 : return 0 taxable _ bands = get _ taxable _ bands ( property _ value ) tax _ amount = reduce ( lambda sum, band : sum + band. tax if band. high < property _ value...
[ 1.2301760911941528, -1.3018282651901245, 0.7889737486839294, -1.127694010734558, -0.22312110662460327, 0.43483027815818787, 0.012270876206457615, -0.9366856813430786, -0.14127805829048157, -0.07788729667663574, -0.019547929987311363, 0.02748378925025463, -0.4275541603565216, -0.21297906339...
def reserve ( self, * args ) : return _ snap. tungraph _ reserve ( self, * args )
[ -0.48559075593948364, 0.5237898230552673, 0.08990995585918427, -0.2616557776927948, 1.1492812633514404, -0.289374440908432, 0.16274330019950867, -0.07366425544023514, -0.12917476892471313, -0.8620269298553467, -0.7292864322662354, -0.7026746869087219, -1.0961189270019531, -0.73847275972366...
def server ( version = none, password = none ) : family = distrib _ family ( ) if family = ='debian': _ server _ debian ( version, password ) elif family = ='redhat': _ server _ redhat ( version, password ) else : raise unsupportedfamily ( supported = ['debian ','redhat'] )
[ -1.1483932733535767, -0.47798946499824524, 0.5525394678115845, 0.7425864338874817, -0.07449690252542496, 0.2575873136520386, -1.1216567754745483, 0.6014413833618164, -0.5716961026191711, -0.07865948230028152, -0.942693829536438, 0.5890033841133118, 0.05116678401827812, 0.7291052341461182, ...
def load _ elements ( css _ selector = ". buy - button ", page _ ups = 1, wait _ max = 20, time _ to _ wait = 1 ) : old _ elements _ count = none new _ elements _ count = 0 while new _ elements _ count! = old _ elements _ count : old _ elements _ count = new _ elements _ count # replacing old button count new _ element...
[ -0.835060179233551, 0.06810515373945236, 1.2806655168533325, 0.6659182906150818, 0.1076231524348259, -0.11059780418872833, 0.3854895234107971, -0.1834433674812317, 0.31468307971954346, 0.44289571046829224, -0.6856685876846313, -0.49527764320373535, -0.02848065458238125, 0.5588463544845581,...
def _ _ ne _ _ ( self, other ) : if not isinstance ( other, putbusinesssettingsbusinesssettings ) : return true return self. to _ dict ( )! = other. to _ dict ( )
[ -1.516066074371338, 1.073553204536438, 0.6943563222885132, -0.2551208734512329, -0.07396349310874939, 0.3140993118286133, -0.09370549023151398, -0.9815851449966431, -0.4727271795272827, 0.6686474680900574, -1.19718337059021, 0.11365871131420135, -1.2260254621505737, 0.1829644739627838, -...
def test _ delete _ github _ link ( self ) : pass
[ 0.44680464267730713, 0.18615587055683136, -0.01993553712964058, 1.4865293502807617, 1.0893537998199463, 0.36033499240875244, 1.160019040107727, 1.0053720474243164, 0.1958761215209961, -1.1504707336425781, -0.2820001244544983, 0.6308342218399048, -1.3225300312042236, 0.19676600396633148, ...
def run ( ) : arg = config. config ['arg'] cfg = config. get _ cfg ('edit ', defaults ) root = cfg ['lexor'] ['root'] paths = cfg ['edit'] ['path']. split (':') fname = arg. inputfile found = false for path in paths : if path [ 0 ] in ['/ ', '.'] : abspath ='% s / % s'% ( path, fname ) else : abspath ='% s / % s / % s'...
[ -0.1623358130455017, -0.6465875506401062, 0.8097372651100159, 0.27359262108802795, 0.3667425811290741, 0.18618611991405487, 1.219882845878601, -0.3006044328212738, -0.9145761132240295, -0.06879685074090958, 0.28967544436454773, 0.022157132625579834, 0.20225436985492706, 0.655784547328949, ...
def priority ( self ) - > pulumi. output [ optional [ int ] ] : return pulumi. get ( self, " priority " )
[ 1.2284636497497559, 0.5894873738288879, 0.3275868892669678, 0.7946057915687561, 0.771396815776825, -0.19190379977226257, 0.269578218460083, 0.19406574964523315, 0.7432299256324768, -0.902510404586792, -0.2134924829006195, 0.15342006087303162, -0.38890302181243896, -0.7006518840789795, 0....
def change _ userpass ( cls, usern, new _ pass ) : for user in cls. user _ list : if cls. find _ user ( usern ) : user. password = new _ pass return user else : return
[ -0.41069531440734863, -1.080853819847107, 0.2900514602661133, 1.3878700733184814, 0.36346739530563354, -0.09101840853691101, -0.29325994849205017, 0.1420239508152008, 0.15346583724021912, 0.727295458316803, -0.850623607635498, 0.6206098794937134, -0.05558528006076813, 0.3163031041622162, ...
def interpret _ python ( source, provided _ globals, display _ filename ) : result = provided _ globals. copy ( ) code = compile ( source, display _ filename,'exec ', division. compiler _ flag, true ) exec code in result return result
[ -0.4665714204311371, 0.2300984412431717, 0.41360044479370117, -0.12362442910671234, -0.28767818212509155, 0.20324993133544922, 0.5341309905052185, 0.7389428615570068, -0.6270795464515686, -0.32371649146080017, 0.10463251173496246, 0.12333116680383682, -0.24900035560131073, 0.55649101734161...
def _ _ str _ _ ( self ) : table = prettytable ( [ str ( x ) for x in range ( len ( self. rows [ 0 ] ) ) ] ) table. header = false table. border = false for row in self. rows : table. add _ row ( row ) return str ( table )
[ 0.29557475447654724, -0.2343681901693344, 0.6239159107208252, -0.5056459903717041, -0.7890021204948425, 0.3226584196090698, 0.045086462050676346, -0.5269199013710022, -0.5064931511878967, -0.017178287729620934, 0.7488530278205872, 0.3380749225616455, 0.14538916945457458, 0.2890599370002746...
def add _ message ( self, message _ type : wsmessagetype, data : union [ dict [ str, any ], list [ any ] ], ) - > none : fallback _ msg = json. dumps ( {'type': str ( message _ type ),'data': data } ) # noqa : e501 # kind of silly to repeat it here. same code in broadcast if self. rotki _ notifier is not none : self. r...
[ -0.5463293790817261, 0.3289399743080139, 0.7605102062225342, 0.1798318475484848, 1.1417900323867798, -0.19976358115673065, -0.17962737381458282, -0.566956639289856, 0.5057087540626526, 0.15317822992801666, -0.163465678691864, 0.9236926436424255, -0.7692247629165649, 1.719631314277649, -0...
def example ( cls ) : return cls ('[ * * * * ] \ n'' [ * * * * * * * * * * ] \ n'' [ * * *, *, *, * *, * *, *, *, *, * ]')
[ 1.022632360458374, -0.7365395426750183, 0.7114747166633606, -0.025841429829597473, -0.10004950314760208, -0.5885483622550964, -0.7297816872596741, 0.3002650737762451, -0.04039314016699791, -0.0682402029633522, -1.4594968557357788, 0.6929244995117188, -0.12887178361415863, -0.39201965928077...
def unique _ filename ( inputs, wildcards ) : unique _ if = ( " ". join ( [ str ( v ) for p, v in inputs. items ( ) ] ) ). encode ('utf - 8') return str ( _ hl. md5 ( unique _ if ). hexdigest ( ) )
[ 0.3123335838317871, -0.07083183526992798, 0.5604501962661743, -0.2286645472049713, -0.09681824594736099, 0.46738916635513306, -0.24769356846809387, 0.538798451423645, -0.30143633484840393, 0.17686200141906738, 0.23678116500377655, -0.28674256801605225, -0.040540389716625214, -0.56750106811...
def fetch _ packages ( self ) : global verbose curllist = self. mc. handles [ : ] serverlist = [ ] # build a list of " free " servers ( those that can be downloaded from ) for server in self. url _ queue : thr _ max = min ( threads _ per _ server, len ( self. url _ queue [ server ] ) ) for i in range ( thr _ max ) : se...
[ -0.11402665823698044, -0.7215494513511658, 0.6816749572753906, -0.10871860384941101, -0.2209485024213791, -0.2233198881149292, 0.4410518407821655, -0.43193456530570984, 0.3854235112667084, -0.4553975760936737, -0.2705332338809967, -0.4916245639324188, -0.12865695357322693, 0.83484917879104...
def update _ to _ latest _ version ( self, path ) : if not self. has _ latest _ version ( path ) : self. refresh _ cache ( path )
[ -0.49726995825767517, -0.9867210388183594, 0.4447392225265503, 0.24400261044502258, 0.2136031538248062, 1.1094979047775269, -0.7271429300308228, -0.9368216395378113, 0.33080148696899414, 1.215118408203125, -0.3722482919692993, 0.013828810304403305, 0.06443476676940918, 0.020787911489605904...
def network _ id ( self ) : return self. _ network _ id
[ 0.5439965724945068, -0.48236364126205444, 0.06920135766267776, 1.0703333616256714, 1.6384625434875488, 1.5374369621276855, 0.6259422302246094, 0.24541035294532776, 1.26707923412323, -1.1983476877212524, -0.3861457407474518, 0.38584989309310913, -0.15117155015468597, 0.41974785923957825, ...
def get _ count ( self ) : return sum ( [ item. _ method = ='get'for item in self ] )
[ -0.48702293634414673, 0.09734746813774109, 0.5335862040519714, 0.3554821014404297, 1.156250238418579, 0.0748375803232193, -0.5882849097251892, 0.276176393032074, -0.22637201845645905, -0.5790442228317261, -0.8944891691207886, -0.13441883027553558, 0.0216838251799345, 0.2287333756685257, ...
def find _ name _ of _ classes _ in _ project ( classes _ name ) : classes = [ ] error = false for class _ name in classes _ name : try : class _ _ = getattr ( importlib. import _ module ( " src. models. dataobject. v0 _ 0 _ 2. nodeentities. " + class _ name ), class _ name, ) classes. append ( class _ _ ) except : try...
[ -0.9043066501617432, -0.06661534309387207, 0.8666876554489136, -0.08658822625875473, 0.5859910249710083, 0.24326466023921967, -0.4219571650028229, -1.1049437522888184, -0.11879121512174606, 0.4838956892490387, -0.074464812874794, -0.6583390831947327, -0.0515923947095871, 0.6933383941650391...
def _ parse _ repo ( self, data ) : if not isinstance ( data, dict ) : raise attributeerror ( " expected a dict object " ) repo = data. get ('repository') canon _ url = data. get ('canon _ url ','' ) abs _ url = repo. get ('absolute _ url ','' ) if not abs _ url. startswith ('http') : abs _ url = urlparse. urljoin ( ca...
[ -0.6064669489860535, 0.18195292353630066, 0.41806334257125854, -1.250035285949707, -0.9038486480712891, -0.36943933367729187, -0.6084384918212891, 0.45759597420692444, -0.3627166152000427, 0.6017979383468628, -1.0268661975860596, -0.15746423602104187, -0.06513645499944687, 0.77281183004379...
def _ _ init _ _ ( self, buffer, steps _ count = 1 ) : self. update _ buffer ( buffer ) self. steps _ count = steps _ count
[ 0.4206719398498535, -0.18350927531719208, 0.2613181173801422, 1.0609999895095825, -0.7322454452514648, 0.4717755913734436, 0.39990150928497314, 0.41352587938308716, -0.35458019375801086, -1.01032555103302, -0.9397280216217041, -0.19045768678188324, -0.30936399102211, 1.4506056308746338, ...
def get _ lti _ consumer ( ) : return lticonsumer ( consumer _ name ='consumer name ', consumer _ key ='consumer key ', consumer _ secret ='consumer secret')
[ 1.2655762434005737, -0.6622481346130371, 0.3149040937423706, -0.2661342918872833, 0.21604415774345398, -0.36603283882141113, -1.1874397993087769, -0.208649680018425, -1.297197699546814, 0.5187018513679504, -0.7383186221122742, 0.3718753755092621, -0.025529906153678894, -1.0004866123199463,...
def zca _ whiten ( x ) : assert ( x. ndim = = 2 ) eps = 10e - 5 # covariance matrix cov = np. dot ( x. t, x ) # d = ( lambda1, lambda2,..., lambdan ) d, e = np. linalg. eigh ( cov ) # d = diag ( d ) ^ ( - 1 / 2 ) d = np. diag ( 1. / np. sqrt ( d + eps ) ) # w _ zca = e * d * e. t w = np. dot ( np. dot ( e, d ), e. t ) ...
[ -0.354780375957489, -0.24870505928993225, 0.5508142709732056, -0.4281846582889557, -0.09645428508520126, -0.6846905946731567, 1.539250135421753, -0.6238549947738647, 0.7784199714660645, 0.5028828382492065, -0.19857046008110046, 1.3348644971847534, 1.1126629114151, 0.9523115158081055, -0....
def host _ from _ uri ( uri ) : default _ ports = {'http':'80 ','https':'443 ', } sch, netloc, path, par, query, fra = urlparse ( uri ) if':'in netloc : netloc, port = netloc. split (': ', 1 ) else : port = default _ ports. get ( sch. upper ( ) ) return netloc, port
[ -0.024451343342661858, -0.6239571571350098, 0.6138820052146912, 0.31527405977249146, 0.00475738663226366, 0.16936804354190826, 0.9146214127540588, 0.28270667791366577, -0.22204314172267914, -0.4572690427303314, -0.07275160402059555, -0.6180745363235474, -0.18555040657520294, -0.61463582515...
def message _ callback ( client, userdata, message ) : # pylint : disable = unused - argument logger. info ( " received a new message from % s : ", message. topic ) logger. info ( " payload : % r ", message. payload ) logger. info ( " executing : % s ", params. script ) # add mqtt _ payload and mqtt _ topic to the scri...
[ 1.0033735036849976, -0.29728570580482483, 0.729019284248352, -0.4485073983669281, 0.21441836655139923, 0.6023236513137817, -0.00808811467140913, -0.1494452953338623, -0.3112519383430481, 0.3015788197517395, 0.46086013317108154, 0.9494386911392212, 0.1024264469742775, 0.8437696099281311, ...
def tint _ getmegastr ( * args ) : return _ snap. tint _ getmegastr ( * args )
[ -0.6800802946090698, -0.23694291710853577, 0.3604050278663635, 0.6481819748878479, 0.37437906861305237, 0.30757564306259155, 0.21081390976905823, -0.43434938788414, -0.9792570471763611, -0.17439985275268555, 0.2964257597923279, 0.09151657670736313, -1.8043593168258667, 0.8910592198371887, ...
def make _ bricks ( small, big, goal ) : # condition 1 - will remainder of length of goal after big bricks used be less than or equal to amount of small bricks # condition 2 - will length of both big and small bricks together at least equal the goal length, ok if bigger as can get rid of a brick return goal % 5 < = sma...
[ -0.613433837890625, 0.15714341402053833, 0.5145273208618164, 0.801585853099823, -1.2600641250610352, -0.42747271060943604, 0.6330849528312683, -0.1708470731973648, -0.8231680989265442, 0.311282753944397, -0.6514673829078674, -0.3855431377887726, -1.0089823007583618, -0.8419269323348999, ...
def isempty ( self ) : return self. stack = = [ ]
[ -0.9922165870666504, 0.6683164238929749, 0.3738611340522766, 0.7266435027122498, 1.198460578918457, 0.10767348855733871, -0.22530996799468994, 0.097372867166996, 0.2662416994571686, 0.18290315568447113, -1.4168040752410889, 0.4877781569957733, -0.7325389981269836, 0.7760536074638367, -1....
def forward _ step ( x, * ps ) : # for each equation y need to do the folloing equations ( basic rnn ) # st = tanh ( uxt + wst - 1 ) - > hidden t state f the unit - > ( ( 8000x100 ) t dot ( 8000, 1 ) ) + ( 100, 100 ) dot ( 100, 1 ) # ot = softmax ( vst ) - > output t of the unit states = [ ] # we have to iterate betwee...
[ -0.6246983408927917, 0.22478607296943665, 0.7151946425437927, 0.03050028719007969, 0.29265689849853516, -0.19143487513065338, 0.05795904994010925, -0.13888409733772278, -0.19597022235393524, -0.6242993474006653, -0.03761390969157219, -0.6810967922210693, 0.7608830332756042, 0.0334328338503...
def test _ ask _ for _ password _ reset _ via _ form ( self ) : pass
[ 0.2758095860481262, 0.46540582180023193, 0.3069915771484375, 0.23940050601959229, 0.9352333545684814, 0.31914079189300537, 1.745050072669983, -0.39532405138015747, -0.5556413531303406, -0.48163941502571106, -0.06161270663142204, 0.6477662920951843, -0.017871467396616936, -0.179678872227668...
def modellearning ( x, y ) : # create 10 cross - validation sets for training and testing cv = shufflesplit ( x. shape [ 0 ], n _ iter = 10, test _ size = 0. 2, random _ state = 0 ) # generate the training set sizes increasing by 50 train _ sizes = np. rint ( np. linspace ( 1, x. shape [ 0 ] * 0. 8 - 1, 9 ) ). astype (...
[ 0.759502649307251, 1.0969867706298828, 0.9873994588851929, -0.1390678882598877, -0.3473936915397644, 0.785796046257019, 0.48663395643234253, -0.0017502920236438513, -0.3178028166294098, 0.14363306760787964, 0.0829855427145958, 1.0902377367019653, 0.8186349868774414, 0.12223248928785324, ...
def inversion _ pixels _ fixed _ tag ( self ) - > str : if ( self. inversion _ pixels _ fixed is none or self. _ pixelization _ prior _ model. cls is not pix. voronoibrightnessimage ) : return " " return f " _ { str ( self. inversion _ pixels _ fixed ) } "
[ 0.17322205007076263, 0.11718238890171051, 0.5338798761367798, -0.006338545586913824, 0.886417031288147, 0.47523996233940125, 0.057357266545295715, -0.24662108719348907, -0.370641827583313, 0.46939417719841003, -0.0821131095290184, 0.27967894077301025, -0.8954224586486816, 0.959193229675293...
def kneighbors ( self, x _ test ) : # scale the list and test list scaled _ x _ train, scaled _ x _ test = myutils. scale ( self. x _ train, x _ test ) all _ distances = [ ] all _ indices = [ ] # for each value in the scaled test list for val in scaled _ x _ test : # the prep gives us the distance and indice list dista...
[ -0.84385085105896, 0.07355380803346634, 0.430473655462265, 0.15842516720294952, -0.4926708936691284, 0.16627541184425354, -0.5489209294319153, 0.5896719694137573, 0.01158894319087267, 1.0858831405639648, -0.7153152227401733, 0.20642760396003723, -0.08463825285434723, 0.8439458012580872, ...
def test _ list _ decimal _ length _ 4 _ nistxml _ sv _ iv _ list _ decimal _ length _ 5 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - length - 5. xsd ", instance = " nistdata / list / decimal / schem...
[ -0.21222025156021118, -0.46289196610450745, 0.3548116981983185, 0.20235280692577362, -0.25651296973228455, -0.5036108493804932, 0.13666141033172607, -0.100487120449543, 0.11863572895526886, 0.2430502027273178, -1.5248323678970337, -0.5914332866668701, -0.15139131247997284, 0.89216065406799...
def preprocess ( self, batch ) : # first and last states for every entry state _ 0 = np. array ( [ exp [ 0 ]. state for exp in batch ], dtype = np. float32 ) state _ l = np. array ( [ exp [ - 1 ]. state for exp in batch ], dtype = np. float32 ) q0, ql = self. _ calc _ q ( state _ 0, state _ l ) rewards = self. _ calc _...
[ -0.010836804285645485, -0.30499690771102905, 0.9047120213508606, -0.9574087858200073, 0.7711098790168762, -0.19491435587406158, 0.14526137709617615, -0.17548446357250214, 0.43127840757369995, 1.183092713356018, 0.17812511324882507, -0.06338401883840561, 0.5182636380195618, -0.4087967574596...
def list _ find ( f, items ) : for i, x in enumerate ( items ) : if f ( x ) : return i return none
[ -0.4363083839416504, -0.3669307231903076, 0.4596834182739258, -0.045221179723739624, 0.03825287148356438, -0.6785436868667603, -0.2712879776954651, 0.8955897688865662, -0.897243857383728, 0.12054850161075592, -0.6519553661346436, -0.5406219959259033, -0.019947081804275513, -0.5012730360031...
def proj ( self ) : # keep epsg code strings upper case return self. _ _ geo _ transform _ _. proj. replace ('epsg ','epsg')
[ 0.5299196839332581, -0.014738129451870918, 0.27121439576148987, -0.7832053303718567, -0.16601258516311646, 0.3309323191642761, -0.9358425736427307, 0.3486623764038086, 0.1987392157316208, 0.2746380865573883, 0.6990857124328613, -0.4260609447956085, -0.43437185883522034, 0.21127289533615112...
def sent _ loader ( mock _ creds, get _ token, monkeypatch ) : monkeypatch. setattr ( microsoftsentinel, " set _ default _ workspace ", _ set _ default _ workspace ) mock _ creds. return _ value = none get _ token. return _ value = " fd09863b - 5cec - 4833 - ab9c - 330ad07b0c1a " with custom _ mp _ config ( get _ test ...
[ 0.707805335521698, -0.7140811681747437, 0.5350837707519531, -0.8639402389526367, -0.5161616206169128, -0.19159382581710815, -0.2418724149465561, -0.5202922821044922, -0.04200227931141853, 0.6095651984214783, -0.9019892811775208, 0.1510983109474182, -0.6227841377258301, -0.3957280218601227,...
def image _ reference ( self, image _ id ) : return " "
[ -0.17079204320907593, -0.2750343382358551, 0.1975645124912262, -0.8635787963867188, 0.3042427897453308, -0.0838075578212738, -0.3329409956932068, -0.5984426140785217, 0.35212433338165283, 0.5137544274330139, 1.2153244018554688, 0.5867213010787964, -0.10289577394723892, 1.550385594367981, ...
def find _ common _ ar _ markers ( ar _ pos1, ar _ pos2 ) : ar1, ar2 = { }, { } common _ id = np. intersect1d ( ar _ pos1. keys ( ), ar _ pos2. keys ( ) ) for i in common _ id : ar1 [ i ] = ar _ pos1 [ i ] ar2 [ i ] = ar _ pos2 [ i ] return ar1, ar2
[ -0.4590739607810974, -1.6942514181137085, 0.666782021522522, -0.2997440993785858, -0.09241117537021637, 0.33946144580841064, 0.2805638611316681, 0.07291805744171143, -0.6825535893440247, 1.1674706935882568, 0.23192784190177917, 0.05633187294006348, 0.2023153305053711, 0.3088134527206421, ...
def read _ conll _ file ( self, file _ name ) : for line in codecs. open ( file _ name, encoding ='utf - 8') : line = line. strip ( ) if line : label, features = line. split ('\ t') features = map ( int, features. split ('' ) ) yield ( label, features )
[ -0.020561229437589645, -1.3939993381500244, 0.48173561692237854, -0.39167454838752747, -0.24723997712135315, 0.5578689575195312, -0.6887081265449524, 1.0864801406860352, -1.6069583892822266, 0.8782669305801392, 0.22144250571727753, -0.36142340302467346, 0.7023960947990417, -0.0572163388133...
def custom _ hostname ( self ) : return self. _ custom _ hostname
[ 0.4085733890533447, -0.7122458219528198, 0.3763340413570404, 0.389148473739624, -0.999492883682251, 0.3063662648200989, 0.9139031171798706, 0.7901721000671387, -0.43730950355529785, -0.4290480315685272, 0.01659316197037697, 0.8996771574020386, 0.26935404539108276, -0.9118821024894714, -0...
def position _ in _ large _ switch _ to _ branch ( self, large _ switch, paths _ on _ side, side ) : # todo : collapsed cusp for branch, total in self. accumulate _ outgoing _ paths ( large _ switch, side ) : if all ( total > = paths _ on _ side ) : return paths _ on _ side - ( total - self. get _ intersections ( branc...
[ -0.07089507579803467, 0.2738180160522461, 0.61362224817276, -0.11783289909362793, -0.19502897560596466, 0.1622592806816101, 0.6204010248184204, 0.07943320274353027, -0.04000606760382652, 0.2248097062110901, -0.4980686902999878, -1.2316769361495972, -0.30634805560112, 0.18298913538455963, ...
def increment ( t1, t2 ) : sec1 = time _ to _ int ( t1 ) sec2 = time _ to _ int ( t2 ) new _ sec = sec1 + sec2 return int _ to _ time ( new _ sec )
[ -0.49030134081840515, 0.10708092898130417, 0.7398213148117065, 0.39750128984451294, -0.8650062680244446, 0.08360369503498077, -0.3636552393436432, -1.2674143314361572, -1.199623465538025, 0.8300097584724426, -0.5437465310096741, 0.504952609539032, 0.22651423513889313, -0.30238041281700134,...
def apply _ curriculum ( batch : dict [ str, tensor ], curr _ seq _ len : int, truncate : bool ) - > batch : assert isinstance ( batch, mapping ) if truncate : for k in batch. keys ( ) : batch [ k ] = batch [ k ] [ :, : curr _ seq _ len ] else : # ensure new tensor shape is divisible by curr _ seq _ len input _ ids = b...
[ -0.24783247709274292, -0.7457781434059143, 0.5057575702667236, -0.3295188844203949, -0.5416653156280518, 0.17831231653690338, 0.371781587600708, 0.7785770297050476, 0.3727608919143677, 0.5768144726753235, 0.501103401184082, 0.10732065141201019, 0.508886456489563, -0.24099765717983246, 0....
def update _ standings ( ) : db. session. commit ( ) return
[ -0.7887714505195618, -0.6769006252288818, 0.4635808765888214, 0.7542807459831238, 0.20168979465961456, 0.34000906348228455, 0.3911759555339813, 0.015447558835148811, -0.7327937483787537, 1.2313647270202637, -0.7033138275146484, -0.24903304874897003, -0.6565249562263489, -0.7073421478271484...
def patches2array _ new ( patches, img _ upscale _ size, img _ size, patch _ size = ( 64, 64 ), step _ size = 64 ) : logging. info ('patches2array, patches. shape : { }, img _ size : { } '. format ( patches. shape, img _ size ) ) logging. debug ('patches2array : img _ size : { } '. format ( img _ size ) ) patches _ in ...
[ -0.49067017436027527, -1.2042561769485474, 0.8620564937591553, -0.41332170367240906, -0.3762662708759308, -0.225473552942276, 0.841491162776947, -0.5767053961753845, -0.2510460913181305, 0.2941190302371979, -0.3443785309791565, 0.5755614042282104, 0.5283724665641785, 0.7948569059371948, ...
def show _ about ( ) : with open ('readme. md') as f : readme = markup ( markdown. markdown ( f. read ( ) ) ) return render _ template ('about. html ', readme = readme )
[ 0.7283511757850647, -0.015737956389784813, 0.4302704632282257, 0.1789156049489975, -0.38150787353515625, 0.11688365787267685, -0.1531836986541748, 1.9042998552322388, -1.039969801902771, 0.8003696799278259, 1.5803937911987305, -0.09717877954244614, -0.17196811735630035, 0.24157626926898956...
async def _ setcelebrate _ remove ( self, ctx, user : discord. member ) : guild = ctx. guild group = self. config. guild ( guild ) async with group. blocked _ ids ( ) as blocked _ ids : if user. id not in blocked _ ids : await ctx. send ( " this user isn't in the block list, did you mean to ` - - setcelebrate add `? " ...
[ 0.9914711713790894, 0.6758672595024109, 0.5985865592956543, 1.3865118026733398, -0.5567945241928101, 0.16052702069282532, -0.09185326844453812, 0.1459714025259018, -0.5105413198471069, 1.1115219593048096, -1.0611590147018433, 1.1041693687438965, -1.4962595701217651, 0.4766589403152466, 0...
def automatic ( self, pattern _ dict ) : if isinstance ( pattern _ dict, bool ) : pattern _ dict = { } pattern _ dict ['freq _ type'] ='automatic'schedule _ pattern = schedulepattern ( self. _ automatic _ pattern ) self. _ pattern = { " freq _ type " : 1024 } if'commonopts'in self. _ task _ options : self. _ task _ opt...
[ -0.36775797605514526, 0.261382520198822, 0.959359884262085, -0.24159061908721924, 0.2905561625957489, 0.03949756175279617, 1.0105197429656982, 0.3756818175315857, -0.21426180005073547, 0.25705164670944214, -0.7563779354095459, 0.4158966839313507, 0.8005035519599915, -0.35662612318992615, ...
def gaussian _ likelihood ( data, model, sigma ) : return - 0. 5 * np. sum ( ( data - model ) * * 2 / sigma * * 2 + np. log ( 2 * np. pi * sigma * * 2 ) )
[ 0.5511453747749329, -0.837191104888916, 0.4776327908039093, -0.09713052958250046, -1.1153712272644043, 0.8643558025360107, -0.7824829816818237, -0.3226563036441803, -0.279514342546463, 0.29935404658317566, -0.6403560042381287, 0.893939197063446, -0.3351849913597107, 0.037954386323690414, ...
def convolve ( image, kernel ) : assert len ( image ) = = len ( kernel ) and len ( image [ 0 ] ) = = len ( kernel [ 0 ] ) image = fft. fft2 ( image ) image = fft. fftshift ( image ) image * = kernel image = fft. ifftshift ( image ) image = fft. ifft2 ( image ) return image
[ 0.515537679195404, 0.6423039436340332, 0.6857162117958069, 1.0334320068359375, -0.40201690793037415, -0.6894857287406921, -1.038955807685852, -0.22923937439918518, -0.31988072395324707, 0.2659373879432678, 0.6751550436019897, 0.16958768665790558, 0.22316090762615204, 1.435435175895691, 0...
def make _ request ( self, request, path _ params = none ) : url = self. _ create _ url ( path _ params ) headers = request. headers method = request. method if method = ='get': try : response = requests. get ( url, headers = headers ) response = response ( response. json ( ), status = response. status _ code ) except ...
[ -0.9388338327407837, -0.5531235337257385, 1.315964698791504, 0.23995721340179443, 0.18321669101715088, -0.4099496901035309, 0.17651450634002686, -0.5350284576416016, 0.1907232254743576, 0.18912339210510254, 0.921653687953949, 0.03835748881101608, -0.6633453965187073, 0.2661654055118561, ...
def get _ command ( self, destination ) : for key in self. commands _ to _ proc : command = self. commands _ to _ proc [ key ] if command [ - 4 : ] = = destination. encode ( ) : return ( key, command [ : - 5 ] ) return ( none, none )
[ -1.0001096725463867, -0.6285411715507507, 0.5055721402168274, -0.11529134213924408, 0.11706166714429855, -1.4031829833984375, -0.49301502108573914, -1.2663319110870361, -0.395702987909317, 0.9032545685768127, -0.5271384716033936, 0.881314754486084, 0.21170279383659363, -0.24586693942546844...
def get _ upcoming _ action ( self, project _ name : str, dev _ box _ name : str, upcoming _ action _ id : str, user _ id : str = " me ", * * kwargs : any ) - > json : error _ map = { 401 : clientauthenticationerror, 404 : resourcenotfounderror, 409 : resourceexistserror, 304 : resourcenotmodifiederror, } error _ map. ...
[ -1.500551700592041, -0.25099673867225647, 0.7695360779762268, 0.1266229897737503, -0.3364473283290863, -0.7763512134552002, -0.13539095222949982, -1.5196746587753296, -0.18687281012535095, -0.17423105239868164, -0.3784765601158142, 1.7743871212005615, 0.3889099359512329, -0.171324729919433...
def brython _ _ ne _ _ ( a, b ) : return a! = b
[ -0.6165677309036255, -0.4825543761253357, 0.7508338093757629, 0.2759852111339569, 0.6443740129470825, -0.18053512275218964, -1.3400033712387085, -0.6867766380310059, -0.9904683828353882, 0.037657324224710464, -0.21205191314220428, 0.5866831541061401, 0.28381994366645813, -1.038454174995422...
async def async _ getnow ( self ) : response = await self. _ websession. request ( " post ", getnow _ api _ url, timeout = self. _ timeout, json = { " settlement _ point " : self. _ settlement _ point }, ) return griddypricedata ( await response. json ( ) )
[ -0.13961024582386017, 0.6249115467071533, 0.5853179097175598, 0.8716493248939514, 0.8588072657585144, -1.071414589881897, -1.3048310279846191, -0.8952099084854126, -0.5849233269691467, 0.9210238456726074, -0.17775453627109528, 0.6281648874282837, -0.35839831829071045, -0.09670974314212799,...
def check _ hole _ bounds ( x _ y _ z _ r _ array, mask _ checker, cut _ pct = 0. 1, pts _ per _ unit _ volume = 3, num _ surf _ pts = 20, num _ cpus = 1, verbose = 0 ) : if num _ cpus = = 1 : valid _ index, monte _ index = oob _ cut _ single ( x _ y _ z _ r _ array, mask _ checker, cut _ pct, pts _ per _ unit _ volume...
[ -0.4677932858467102, -0.06681212782859802, 0.5001113414764404, 1.3057096004486084, -0.3558891713619232, 1.214828372001648, 1.4109385013580322, -0.9465939998626709, 0.8998883366584778, 0.8193163275718689, 0.6572932600975037, 0.7638663649559021, -0.5221578478813171, 0.3879048824310303, 0.9...
def browse ( ) : global file _ loc file _ loc = askopenfilename ( parent = dec, initialdir = os. getcwd ( ), title ='select file to decode ', filetypes = [ ('text files ', '. txt') ], defaultextension = '. txt') file _ ent. delete ( 0, end ) file _ ent. insert ( 0, file _ loc ) info _ label. config ( text ='selected fi...
[ 0.1337241381406784, -0.706781804561615, 0.5580042004585266, -0.11762414127588272, 0.6036749482154846, 0.5156835913658142, 1.3445873260498047, 0.6268261075019836, -0.5751317143440247, -0.845550537109375, -0.024735519662499428, 0.7193723917007446, 0.0832395851612091, -0.3286912739276886, 0...
def test _ atomic _ id _ pattern _ 1 _ nistxml _ sv _ iv _ atomic _ id _ pattern _ 2 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - pattern - 2. xsd ", instance = " nistdata / atomic / id / schema + instance...
[ 0.008790080435574055, -0.7406948804855347, 0.5082115530967712, 0.745228111743927, -0.34400475025177, 0.17323611676692963, 0.2238139510154724, -0.20749197900295258, -0.15622706711292267, 0.6963464617729187, -0.26256468892097473, 0.559650182723999, 0.5561097860336304, 0.01827896758913994, ...
def setstatus ( self, status ) : self. _ status = status
[ -0.33496367931365967, -0.7579774856567383, -0.13995283842086792, 0.06383185088634491, 0.07599501311779022, 0.6516121029853821, -0.1545766144990921, 1.393304705619812, 0.0024029817432165146, -0.485696405172348, -1.991471290588379, 0.27201157808303833, 0.4021575450897217, 1.0053577423095703,...
def run _ simulation ( tf = 100, n = 1000 ) : flag = 1 while flag! = 0 : option = input ('choose : case _ a, case _ b, case _ c, case _ d, case _ e, case _ cool _ 1, otherwise 0 to quit') if option = ='case _ a': dict = case _ a elif option = ='case _ b': dict = case _ b elif option = ='case _ c': dict = case _ c elif ...
[ -0.30870962142944336, 1.0866949558258057, 0.6771608591079712, 0.11448164284229279, 0.2840835750102997, 0.21668528020381927, 1.0901941061019897, -0.562177300453186, -0.6960713863372803, 0.20994997024536133, -0.3800482749938965, 0.11572850495576859, 0.021776972338557243, 0.033433981239795685...
def command _ host ( self, brain, host ) : return
[ -0.10216227173805237, -0.22093461453914642, 0.16720789670944214, 0.8628031015396118, 0.3638446629047394, 0.5292600393295288, -0.2933022677898407, -0.09190128743648529, -0.6517336964607239, -0.19228646159172058, 0.06888159364461899, 0.7027550935745239, -1.2084097862243652, -0.30775693058967...
def nb _ r _ deriv ( r, data _ row ) : n = len ( data _ row ) d = sum ( digamma ( data _ row + r ) ) - n * digamma ( r ) + n * np. log ( r / ( r + np. mean ( data _ row ) ) ) return d
[ 0.4002714157104492, 0.5300776362419128, 0.6239234209060669, 0.13603144884109497, -0.2952596843242645, 0.279995322227478, 0.5225181579589844, -0.04635835066437721, 0.31430232524871826, 0.014773573726415634, -0.3963988125324249, 0.21761144697666168, -0.007488476112484932, 0.10887084901332855...
def is _ lazy ( self ) - > bool : return self. _ load _ lazy is not none
[ 0.12379387021064758, 0.13994769752025604, 0.5594106316566467, -0.49104100465774536, 0.45005759596824646, -0.12207124382257462, -0.7093290686607361, -0.5329199433326721, 0.314348429441452, -0.9143747091293335, -0.5913553237915039, 0.2511310279369354, -0.17691963911056519, 1.0466269254684448...
def _ _ init _ _ ( self, dropout = none, batch _ size = none, dataset _ id = none, input _ ranges = none, output _ ranges = none, hidden _ layer _ count _ range = none, neurons _ per _ layer = none, training _ algorithms = none, activation _ functions = none, max _ epoch = none, cross _ validation = none, validation _ ...
[ 0.47972339391708374, 0.7512489557266235, 0.7548234462738037, 0.760948896408081, 0.06809064745903015, -0.5782014727592468, -0.004616686142981052, 0.2566046714782715, 0.11504828929901123, 0.38294437527656555, -0.9785674214363098, 0.29069283604621887, 0.5064478516578674, -0.059058185666799545...
def is _ draw ( game _ board ) : for row in range ( 3 ) : for col in range ( 3 ) : if game _ board [ row ] [ col ] = = ('' ) : return false return true pass
[ 0.1309838443994522, 1.0222209692001343, 0.6357856392860413, -0.1411605030298233, 0.49614211916923523, 0.931912899017334, -1.1913957595825195, 0.1699346899986267, 0.03731315955519676, 0.07934964448213577, 0.36901891231536865, -0.3848299980163574, 0.07179925590753555, -0.41986051201820374, ...
def url _ to _ gdrive _ id ( url : str ) - > str : pattern = re. compile ( r " [ a - za - z0 - 9 - _ ] { 33 } " ) return pattern. search ( url ). group ( 0 )
[ -0.8957574367523193, -0.8878505229949951, 0.614587128162384, -0.16767841577529907, 0.27648118138313293, 0.9624718427658081, -0.23618891835212708, 0.4350365102291107, 0.4577777087688446, 0.3314090669155121, -0.1261829435825348, 0.2799703776836395, -1.0841556787490845, -0.3710155487060547, ...
def get _ roles ( self ) : return " \ n ". join ( self. credentials. keys ( ) )
[ -0.1550503522157669, -0.5397250652313232, 0.40997275710105896, -0.6333624720573425, 0.8435012698173523, 0.05979038402438164, -2.190086603164673, -0.027299387380480766, -0.15847979485988617, -0.017690563574433327, 0.22554601728916168, 0.32918843626976013, -0.44963982701301575, 0.34490123391...
def normalize _ y ( y : np. ndarray ) - > np. ndarray : # return y # return y - np. mean ( y ) y _ min, y _ max = np. min ( y ), np. max ( y ) return - 0. 5 + ( ( y - y _ min ) / ( y _ max - y _ min ) )
[ 0.11043404042720795, -0.7697919011116028, 0.582440972328186, 0.25351688265800476, -0.3430212140083313, 0.41166388988494873, 0.5313917398452759, -0.8370372653007507, 0.4674816429615021, 0.006385588552802801, -0.25478190183639526, 0.9811018705368042, 0.10500234365463257, 0.35664576292037964,...
def fast _ charger _ brand ( self ) - > str : return self. _ vehicle _ data. get ( " charge _ state ", { } ). get ( " fast _ charger _ brand " )
[ -0.08830324560403824, -0.17013607919216156, 0.23342423141002655, 1.0507197380065918, 0.3683185577392578, 0.15472213923931122, -0.6659677624702454, -0.17542876303195953, 0.16388928890228271, -0.8845788836479187, 0.20676814019680023, 0.9466577768325806, 0.5989725589752197, 0.5251104235649109...
def _ _ init _ _ ( self, * args ) : _ snap. tmout _ swiginit ( self, _ snap. new _ tmout ( * args ) )
[ 0.24014000594615936, 0.3837741017341614, 0.014814453199505806, -0.9856374859809875, -0.2577519416809082, -0.4294724464416504, 1.2390364408493042, 0.7553714513778687, -0.9537491798400879, 0.21103699505329132, -0.7389568090438843, -0.9954934120178223, -0.48762741684913635, 0.6974323987960815...
def test _ add _ exe _ args _ list _ of _ mixed ( ) : settings = runsettings ( " python " ) with pytest. raises ( typeerror ) : settings. add _ exe _ args ( [ " 1 ", " 2 ", 3 ] )
[ -0.5067812204360962, 0.8440630435943604, 0.5942074060440063, 1.1572155952453613, 1.4263997077941895, 0.9775002598762512, -0.4370461106300354, -0.386260449886322, 0.15856286883354187, 0.6904534101486206, -1.227888584136963, -0.7479766607284546, -1.1224825382232666, 0.97307288646698, 0.112...
def show _ topic ( self ) : data = none for path, topic _ file in self. _ gathering _ topics ( ) : topic _ path = os. path. join ( path, topic _ file ) with open ( topic _ path,'r') as ifs : try : yamldata = ifs. read ( ) data = yaml. safe _ load ( yamldata ) topic = topic _ file [ : - len ( self. topic _ ext ) ] self....
[ 0.3148171901702881, -0.17932875454425812, 0.45908045768737793, -0.037116795778274536, 0.2362051159143448, 0.15867774188518524, 0.329077810049057, -0.04137177765369415, -0.7654447555541992, 0.38478174805641174, 0.9721182584762573, 0.35890665650367737, 0.4554387629032135, 0.5622522830963135,...
def search ( self, request ) : result = self. xml. find ( request ) return result. text
[ -1.2307626008987427, 0.5503290295600891, 0.5049982666969299, 0.247609481215477, -0.41951560974121094, -0.11369920521974564, -0.3521174490451813, -1.5155620574951172, -0.18011431396007538, -0.43156272172927856, 0.9365543127059937, -0.9170257449150085, -1.057470440864563, -0.0144751612097024...
def shopify _ create _ variant _ product ( self, result, instance, price ) : product _ template _ obj = self. env [ " product. template " ] template _ title = result. get ( " title ", " " ) attrib _ line _ vals = self. shopify _ prepare _ attribute _ vals ( result ) if attrib _ line _ vals : template _ vals = { " name ...
[ -0.5157987475395203, -0.1588253378868103, 0.5369808673858643, 0.001981468638405204, -0.29236024618148804, 0.7377254962921143, -0.3329106271266937, -0.7223268747329712, 0.39514198899269104, 0.7643125057220459, -0.2400706261396408, -0.5370514988899231, -0.6441090106964111, -0.369946837425231...
def form _ valid ( self, form ) : form _ data = form. save ( commit = false ) form _ data. user = self. request. user form _ data. save ( ) form = campgroundmodelform ( ) msg = " successfully registered " return self. render _ to _ response ( self. get _ context _ data ( form = form, success = msg ) )
[ -0.4544723331928253, 0.3282087445259094, 0.522701621055603, 0.16807249188423157, 0.8181383013725281, 0.36944013833999634, 0.0648677721619606, 0.327185720205307, -0.5047826766967773, -0.6231198906898499, -0.4086432158946991, -0.6683264374732971, 0.5702383518218994, 0.1854461133480072, 0.2...
def purge _ orphaned _ l7 _ policy ( self, tenant _ id = none, l7 _ policy _ id = none, hostnames = list ( ), listener _ id = none ) : for bigip in self. get _ all _ bigips ( ) : if bigip. hostname in hostnames : error = none try : l7 _ policy _ name = l7 _ policy _ id partition = self. service _ adapter. prefix + tena...
[ 0.25647857785224915, -0.15264472365379333, 0.4933929741382599, -0.69148850440979, -0.31809002161026, 0.8531203269958496, -0.9426109790802002, 0.21321260929107666, 0.772742748260498, 0.990362823009491, 0.08556749671697617, 0.22056812047958374, -0.1293274611234665, 0.22280646860599518, 0.0...
def onnx _ inline _ function ( obj, protos = none, existing _ names = none, verbose = 0, flog = none ) : if verbose > 0 and flog is none : flog = print # pragma : no cover if isinstance ( obj, modelproto ) : if verbose > 0 : flog ( " [ onnx _ inline _ function ] type = % r graph = % d " % ( type ( obj ), id ( obj ) ) )...
[ -0.06210442632436752, 0.06080013886094093, 0.7402750849723816, 0.6598823666572571, -0.34572669863700867, -0.5911744236946106, 0.6372590065002441, 0.007094453554600477, 0.4773513674736023, -0.6398492455482483, -0.5029804110527039, 0.47519388794898987, -0.35401949286460876, -0.49209615588188...
def _ _ eq _ _ ( self, * args ) : return _ snap. tuch _ _ _ eq _ _ ( self, * args )
[ -1.3579998016357422, 0.084012471139431, 0.14745038747787476, -0.07122296839952469, 0.7878518104553223, 0.3357967436313629, 0.48077523708343506, -0.2801141142845154, -0.48930975794792175, 0.16644208133220673, -0.5916287302970886, -1.8104840517044067, 0.8111608028411865, -0.05754353478550911...
def test _ autocomplete ( self ) : support. create _ project ( self,'gina') support. add _ step ( self,'a. py') support. add _ step ( self,'b. py') result = support. autocomplete ('steps a') self. assertin ('add ', result ) result = support. autocomplete ('steps modify') self. assertequal ( len ( result ), 2,'there are...
[ 0.04167996346950531, 0.05326016619801521, 0.47473523020744324, 0.17172253131866455, 0.9539514780044556, 0.08215581625699997, 0.02557757869362831, -0.06253544241189957, -0.2851921021938324, -0.3302687406539917, -0.6444948315620422, -0.5868033766746521, -0.21422740817070007, 0.78265291452407...
def draw _ map ( self, width ) : for j in range ( len ( self. track _ points ) ) : pygame. draw. line ( screen,'red ', self. track _ points [ j - 1 ], self. track _ points [ j ], width )
[ -1.1847259998321533, 0.009041410870850086, 0.6723542213439941, -0.24118970334529877, 0.7621562480926514, 1.3308815956115723, -0.789696991443634, -0.21450617909431458, 0.461344838142395, -0.004246297292411327, 0.5345443487167358, -0.2254660576581955, 0.23750834167003632, 0.659044623374939, ...