text
stringlengths
25
2.19k
embedding
listlengths
768
768
def create _ time ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " create _ time " )
[ 0.5364164710044861, 0.11394003033638, 0.38098591566085815, -0.10535142570734024, 1.5399819612503052, 1.4001164436340332, -0.5573795437812805, -0.4582059681415558, 0.17995843291282654, 0.8836508989334106, -0.34241408109664917, 0.16098226606845856, 0.0844321921467781, -0.6112520098686218, ...
def addvariable ( self, namefunc, variable, tipo, filas, columnas, posmemory ) : if ( variable in self. val [ namefunc ] [ 1 ] ) : print ('variable { } previously defined. '. format ( variable ) ) sys. exit ( ) else : tablevars = self. val [ namefunc ] [ 1 ] tablevars [ variable ] = ( tipo, filas, columnas, posmemory )...
[ -0.39689528942108154, 0.3474184274673462, 0.5252722501754761, 0.4846692681312561, -0.09608148783445358, 0.03475301340222359, -0.38496366143226624, -0.43419235944747925, -1.0295019149780273, 0.45445603132247925, -0.767920970916748, 0.5263396501541138, -0.08633533865213394, 0.488635957241058...
def _ ast _ num _ from _ component _ id ( self, citem, node, node _ type, mode, fallback = true ) : if hasattr ( citem,'code _ component _ id') : return ast. num ( citem. code _ component _ id ) elif fallback : name = pyposast. extract _ code ( self. lcode, node ) id _ = self. create _ code _ component ( node, name, mo...
[ 0.0216741431504488, -0.601347804069519, 0.5886248350143433, -0.6262595057487488, -0.33051490783691406, -0.8877840638160706, 0.6891738772392273, 0.3143366575241089, 0.8244519233703613, 0.014552611857652664, -0.3145984411239624, -0.40042784810066223, 0.33170902729034424, 0.15744531154632568,...
def getimagetype ( self ) : return ( self. fileheader. filedescription )
[ 0.4508756697177887, -0.1701410561800003, 0.5776965618133545, -0.5240821838378906, 0.8903542160987854, -0.16421863436698914, -0.30196595191955566, 0.39640772342681885, -0.2573751211166382, -0.22532354295253754, 0.39421355724334717, 0.9936113357543945, -0.6625400185585022, 1.099151611328125,...
def process _ data ( args : argparse ) : train _ output _ destination = os. path. join ( args. data _ directory, " train " ) test _ output _ destination = os. path. join ( args. data _ directory, " test " ) # 1. make directories to store dataset os. makedirs ( args. data _ directory, exist _ ok = true ) os. makedirs ( ...
[ -0.5217225551605225, 0.019221773371100426, 1.1195588111877441, -0.7986716628074646, 0.28062400221824646, 0.7435258030891418, 1.532900094985962, 0.029385343194007874, -0.2920621931552887, 0.3139524459838867, 0.264512300491333, 0.024561841040849686, 0.5519269108772278, -0.2478133887052536, ...
def remove _ duplicate ( polygon ) : duplicateless = [ ] for i in polygon : i = ( round _ it ( i [ 0 ] ), round _ it ( i [ 1 ] ) ) if i in duplicateless : pass else : duplicateless. append ( i ) return duplicateless
[ -0.5237546563148499, -1.3598276376724243, 0.417325884103775, -0.624017059803009, -0.20051266252994537, 1.03245210647583, 0.6689001321792603, -0.8846641778945923, 0.9752352237701416, 0.6142449975013733, -1.8417270183563232, -0.2495354861021042, -0.5754013657569885, -0.3065740168094635, -0...
def get ( key, default = none ) : assert _ profile ( ) return settings. value ( key, default )
[ -0.12707851827144623, 1.2745517492294312, 0.24913017451763153, 1.1632442474365234, 0.7449983954429626, -1.0845741033554077, -0.05391378328204155, -1.4976667165756226, -0.35544273257255554, 0.32319697737693787, -0.057748567312955856, -0.3196777403354645, -0.9037094712257385, -0.667811572551...
async def test _ relay _ as _ light ( hass : homeassistant, mqtt _ mock : mqttmockhaclient, setup _ tasmota ) - > none : config = copy. deepcopy ( default _ config ) config [ " rl " ] [ 0 ] = 1 config [ " so " ] [ " 30 " ] = 1 # enforce home assistant auto - discovery as light mac = config [ " mac " ] async _ fire _ mq...
[ 0.5393590927124023, 0.48068100214004517, 0.3414698541164398, -0.24160495400428772, 0.5892062187194824, 0.35667338967323303, 0.3756590783596039, 0.07921773940324783, 0.7899700999259949, -0.8092206120491028, -0.5590311884880066, 0.14132654666900635, 0.48337507247924805, 0.8427531719207764, ...
def _ decimal _ to _ python ( self, v, desc = none ) : return decimal ( v )
[ -0.15743279457092285, -0.8029338717460632, 0.2658170759677887, -0.6206883788108826, 0.3730417788028717, -0.47187358140945435, -0.34174951910972595, -0.031174296513199806, 0.39350202679634094, -0.6570172309875488, -0.1635805070400238, 0.5841802954673767, 0.4696764349937439, -0.2626624405384...
def getrenderedtemplatewithenvironment ( jinjaenv, templatefilename, templatevalues = { } ) : # get the template from the environment template = jinjaenv. get _ template ( templatefilename ) # render and return the template return template. render ( templatevalues )
[ -0.1782437115907669, -0.40678754448890686, 0.36280810832977295, -0.3158729672431946, -0.6581186652183533, 0.8003658652305603, -0.9712467193603516, 0.41107386350631714, -1.458901047706604, 0.04607219621539116, 0.3698999583721161, -0.12246684730052948, -0.5406116843223572, -0.128855288028717...
def create _ monthly _ bins ( ystart, ystop, mstop ) : interval1 = [ 0. 0, 31. 0, 59. 0, 90. 0, 120. 0, 151. 0, 181. 0, 212. 0, 243. 0, 273. 0, 304. 0, 334. 0, 365. 0 ] interval2 = [ 0. 0, 31. 0, 60. 0, 91. 0, 121. 0, 152. 0, 182. 0, 213. 0, 244. 0, 274. 0, 305. 0, 335. 0, 366. 0 ] blist = [ ] elist = [ ] for year in r...
[ 0.34456345438957214, -0.6238996386528015, 0.9061065912246704, -0.06504350155591965, -1.0206754207611084, 1.2079789638519287, 0.22253195941448212, -0.28393372893333435, 0.3782615661621094, 0.127407506108284, -0.23385979235172272, 0.31785205006599426, -0.24029062688350677, 1.0634238719940186...
def listofwords ( self ) : return list ( self. vocabulary. keys ( ) )
[ -0.09381347894668579, -0.6193303465843201, 0.15494811534881592, -0.06307921558618546, 1.095396637916565, -0.5271028876304626, -1.46562659740448, 0.18911303579807281, 1.051977276802063, 0.7574398517608643, -0.4691424071788788, 0.5028334259986877, -0.4574579894542694, 0.7551866173744202, -...
def balanced _ classes _ weights ( dataset, nclasses ) : count = [ 0 ] * nclasses for item in dataset : count [ item. y ] + = 1 weight _ per _ class = [ 0. ] * nclasses length = float ( len ( dataset ) ) for i in range ( nclasses ) : weight _ per _ class [ i ] = length / float ( count [ i ] ) weight = [ 0 ] * len ( dat...
[ -0.7242870926856995, -0.18612448871135712, 0.5279204249382019, -0.04438489302992821, 0.7628610134124756, 0.22945913672447205, 0.47553184628486633, -0.2011513113975525, 0.12520605325698853, 0.5955718159675598, -0.044554974883794785, -0.5051250457763672, 0.393805593252182, 1.0564416646957397...
def compare _ results ( y _ test, y _ pred ) : # comparamos la prediccion con los datos de testeo print ( classification _ report ( y _ test, y _ pred ) ) conf = pd. dataframe ( confusion _ matrix ( y _ test, y _ pred ), columns = ['predicted relevant ','predicted no relevant'], index = ['true relevant ','true no relev...
[ 0.9819457530975342, -0.5486308932304382, 0.5420781970024109, -0.24405768513679504, 0.38080060482025146, 0.26669326424598694, 0.4709644615650177, 0.6104901432991028, -0.9621096849441528, -0.5370842218399048, 0.2783237099647522, 1.1160942316055298, 0.4438856840133667, 0.10235515236854553, ...
def elb _ access _ log _ bucket _ policy ( self, *, bucket _ arn : str, path _ prefix : str ) - > jsons : self. _ validate _ bucket _ path _ prefix ( path _ prefix ) path = f'{ path _ prefix } / awslogs / { aws. account }'return [ {'effect':'allow ','principal': {'aws': f'arn : aws : iam : : { self. elb _ region _ acco...
[ 0.339400976896286, -0.5859116315841675, 0.6287753582000732, -0.9390406012535095, 0.15540707111358643, 0.7167456746101379, 0.0412214994430542, 0.0889659896492958, 0.371910035610199, 0.4536839723587036, -0.29947328567504883, 1.5943528413772583, 0.3953605592250824, -1.0898869037628174, 1.03...
def knearestneighbors ( ec _ result, tasks, k, task ) : import numpy as np cosdistance = ec _ result. recognitionmodel. grammarlogproductiondistancetotask ( task, tasks ) argsort = np. argsort ( - cosdistance ) # want the greatest similarity. topk = argsort [ : k ] topktasks = list ( np. array ( tasks ) [ topk ] ) retu...
[ 0.08935946971178055, 0.27957260608673096, 0.5523585081100464, 0.6388797163963318, -0.6274539828300476, 0.7156466245651245, 0.2984248995780945, 0.12621858716011047, -0.6964144110679626, 1.1071341037750244, -0.5511876344680786, 0.0763319656252861, 0.4342065751552582, -0.27999597787857056, ...
def plot _ factored _ bmks ( factored ) : plt. clf ( ) cols = ['r ','g ','b ','c ','y ','k ','pink ','gray'] sybs = ['- o ','- s ','- * ','- + ','- v ','- x ','- - o ','- - s ','- d'] if len ( factored ) : plt. title ( factored [ 0 ] ['benchmark _ name'] ) col = cycle ( cols ) syb = cycle ( sybs ) for bmk in factored :...
[ 0.7924180030822754, 0.5558559894561768, 0.7185560464859009, 0.20317982137203217, -0.2032080590724945, -0.11400536447763443, 1.0847523212432861, -0.02581743150949478, -0.04842786490917206, 0.0889509916305542, -0.685486376285553, 1.3853603601455688, -0.0692782998085022, 1.5521085262298584, ...
def get _ energy _ range ( self, run ) : return self [ str ( run ) ]. get _ energy _ range ( )
[ -1.4155116081237793, -0.9017365574836731, 0.12454218417406082, 0.46900662779808044, -0.3547792434692383, -0.3797881603240967, -0.22567982971668243, -0.29839739203453064, -1.2190544605255127, 0.3188803493976593, -0.0707039088010788, 0.8261350393295288, -0.9468415975570679, -0.09080820530653...
def _ _ repr _ _ ( self ) - > str : context = " ". join ( " { } = { } ". format ( k, v ) for k, v in self. _ solution. items ( ) ) return " < twilio. numbers. v2. hostednumberordercontext { } > ". format ( context )
[ -0.09883501380681992, -0.3778419494628906, 0.6116092205047607, -0.527299165725708, -0.6382067799568176, 0.6098344326019287, 0.2732515335083008, -0.17232577502727509, 0.5512843132019043, 0.0038954310584813356, -0.13533052802085876, -0.4739066958427429, 0.292001873254776, -0.0600868500769138...
def get _ answer ( self, action ) : return self. text _ data [ action ] [ self. lang ]
[ -0.8721583485603333, -0.7681892514228821, 0.41993340849876404, -0.7043934464454651, -0.5509599447250366, -0.0294265765696764, -0.35358095169067383, -0.9153695106506348, 0.119967520236969, 0.8220937848091125, 0.2947171628475189, 1.1390866041183472, 0.12643028795719147, -0.510206937789917, ...
def setinput ( self, index, value ) : if index > = len ( self. inputs ) : # if the index is more than the length then append to the list self. inputs. append ( value ) # dont use history after a new input is added self. history _ active = 0 self. _ updatehistory ( ) # because history _ active is set to 0 trigger # will...
[ -0.8023790121078491, 0.06463997811079025, 0.6093289256095886, -0.014159418642520905, 0.6335903406143188, 0.35801658034324646, 0.35136184096336365, 0.000629016081802547, 1.004806399345398, -0.5380492806434631, 0.2982909083366394, 0.2576599419116974, -0.7046516537666321, 0.041179314255714417...
def service _ account _ credentials ( self, service _ account : config. serviceaccount ) : secret _ name = config. secrets _ manager _ secret _ name ( service _ account. secret _ name ) secret = self. _ service _ account _ creds ( secret _ name ) ['secretstring'] with tempfile. namedtemporaryfile ( mode ='w +') as f : ...
[ 0.2200741022825241, -0.22554397583007812, 0.5230997800827026, 0.16037222743034363, -0.42832711338996887, 0.4659874737262726, 0.22500929236412048, -0.5860143303871155, 0.06761932373046875, 0.0012476170668378472, -0.8556662201881409, 0.27739763259887695, 0.3276461064815521, 0.491177737712860...
def post ( self, request, * args, * * kwargs ) : params = request. post try : user = ippauser. objects. create _ user ( params ) self. response [ " res _ str " ] = " player registered successfully. " self. response [ " res _ data " ] = { " player _ id " : user. pk } return send _ 201 ( self. response ) except exception...
[ -1.074628233909607, 0.3297484219074249, 0.8886417150497437, 1.0261422395706177, 0.03763875365257263, 0.5258018970489502, 0.043768029659986496, -0.5792127251625061, -0.03849456459283829, 0.1848173886537552, -1.056086540222168, -0.5766124129295349, -0.48468923568725586, -0.272337943315506, ...
def get _ candidates ( self, px, py, pz, i ) : if not i : cells = [ [ px, py, pz ] ] else : cx = set ( [ min ( max ( 0, x ), self. n ) for x in range ( px - i, px + i ) ] ) cy = set ( [ min ( max ( 0, y ), self. n ) for y in range ( py - i, py + i ) ] ) cz = set ( [ min ( max ( 0, z ), self. n ) for z in range ( pz - i...
[ -0.3844352066516876, -0.316216379404068, 0.5656613707542419, 1.220839262008667, 0.5308361053466797, 0.45267918705940247, 0.27554523944854736, -0.17284393310546875, 0.05309506505727768, -0.04036305844783783, -0.4018927812576294, -0.2790263295173645, -0.6240524053573608, -0.21187877655029297...
def pad _ bit ( bit ) : bg = 36 *'0'output = bg [ : - len ( bit ) ] + bit return output
[ 0.2450045347213745, 0.18623268604278564, 0.47255879640579224, -0.03485788404941559, 0.3987100422382355, 1.0501289367675781, -0.20180004835128784, -1.4934589862823486, 0.10065454989671707, -0.0134567990899086, 0.5618895292282104, 0.26726096868515015, -1.1220314502716064, 0.6258940696716309,...
def _ find _ endpoint ( endpoint _ name, sage _ client ) : endpoints _ page = sage _ client. list _ endpoints ( maxresults = 100, namecontains = endpoint _ name ) while true : for endpoint in endpoints _ page [ " endpoints " ] : if endpoint [ " endpointname " ] = = endpoint _ name : return endpoint if " nexttoken " in ...
[ 0.5025455355644226, -0.7947841286659241, 0.6391560435295105, -0.25201117992401123, -0.09198838472366333, -0.7442837953567505, -1.0420161485671997, -0.4074859619140625, 0.6653873324394226, 0.5218897461891174, 0.47504183650016785, 0.23252840340137482, -0.7865539193153381, 0.3090238869190216,...
def all _ ped _ present ( scene ) : scene _ xy = trajnetplusplustools. reader. paths _ to _ xy ( scene ) return ( not np. isnan ( scene _ xy ). any ( ) )
[ -0.2558015286922455, -0.31965547800064087, 0.5325364470481873, -0.6617489457130432, -0.07252606749534607, 0.9401939511299133, -0.5891577005386353, 0.24307434260845184, 0.25825098156929016, 0.24702414870262146, 0.26871779561042786, -1.0124351978302002, -0.536169171333313, 0.5596924424171448...
async def test _ split _ light2 ( hass : homeassistant, mqtt _ mock : mqttmockhaclient, setup _ tasmota ) - > none : config = copy. deepcopy ( default _ config ) config [ " rl " ] [ 0 ] = 1 config [ " rl " ] [ 1 ] = 1 config [ " rl " ] [ 2 ] = 2 config [ " rl " ] [ 3 ] = 2 config [ " rl " ] [ 4 ] = 2 config [ " rl " ] ...
[ -0.19131170213222504, 0.15476495027542114, 0.4408988952636719, 0.1315888613462448, 0.5538057684898376, 0.21288837492465973, 0.6091353893280029, 0.1493479460477829, -0.023989105597138405, -0.3840448260307312, -1.3954181671142578, -0.6940301060676575, 0.05396884307265282, 0.906516432762146, ...
def clean ( self, values ) : keys = list ( values. keys ( ) ) for k in keys : v = values [ k ] if isinstance ( v, str ) : # print ( " clean ", k, [ v ] ) c = v. strip ( " \ n \ r \ t " ) if c! = v : if len ( c ) > 0 : values [ k ] = c else : del values [ k ] elif len ( v ) = = 0 : del values [ k ] del values [ " _ _ pa...
[ -0.0023131133057177067, -0.3377603590488434, 0.6648611426353455, -0.4188372790813446, -0.3886372447013855, 0.17325814068317413, -0.5699024796485901, -0.18137000501155853, -0.5502909421920776, 0.18198294937610626, 0.07831447571516037, -0.08665059506893158, 0.3539414703845978, 1.556286573410...
def pairs ( l ) : resulting = [ ] current = none for elem in l : if not ( current is none ) : resulting. append ( ( current, elem ) ) current = none else : current = elem return ( resulting, [ ] if current is none else [ current ] )
[ -1.1152524948120117, -0.177518829703331, 0.5713849663734436, 0.006225714460015297, 0.043228134512901306, -0.6277463436126709, 0.20001092553138733, 1.0429731607437134, 0.6559620499610901, 0.09910356998443604, -0.9135010838508606, -1.1329286098480225, -0.8904988169670105, 1.7118984460830688,...
def get _ commands ( ) : return sorted ( iter _ entry _ points ('flowtool _ commands'), key = attrgetter ('name') )
[ 0.1306230127811432, -0.5277469158172607, 0.3969254195690155, 0.7686904072761536, 0.31023505330085754, -0.15902866423130035, 0.14305555820465088, -1.7629207372665405, -0.40775004029273987, -0.8797141909599304, -0.03424471989274025, 0.2692365348339081, 1.2495266199111938, 0.22334450483322144...
def word _ tokenize ( text ) : tokenizer = regexptokenizer ( r'\ w +') return tokenizer. tokenize ( text )
[ -0.3691701591014862, -0.07348177582025528, 0.3261004388332367, 0.2832544445991516, -0.8387036323547363, -0.20349986851215363, -0.4148585796356201, 1.3538826704025269, 0.24299269914627075, -0.07322627305984497, -0.9537599682807922, 0.2862742245197296, -0.5938123464584351, 0.4433165490627289...
def process _ file ( input _ file ) : logger. info ( " processing { } ". format ( input _ file ) ) ( book _ dir, book _ name, book _ number, unparsed _ book _ name ) = preprocess _ file ( input _ file ) mods _ file = none if not os. path. exists ( book _ dir ) : os. mkdir ( book _ dir ) if options. mods _ dir is not no...
[ -0.05030179023742676, 0.1691528856754303, 0.9651899933815002, 0.2491094321012497, 0.3681676387786865, 0.28603053092956543, 0.7420198917388916, 0.4778536260128021, 0.31264281272888184, -0.016786755993962288, 0.690336287021637, -0.5023267269134521, -0.019661162048578262, 1.1947258710861206, ...
def move _ to _ long _ term _ data _ store ( ) : try : cronutils. require _ cron ( request. headers ) new _ events = parkingeventrepository ( ). consume _ new _ parking _ events _ by ('willbestoredtolongtermdatastore ', true, false ) cloudstorageio ( app. config ['google _ cloud _ storage _ store _ name'], app. config ...
[ 0.29340288043022156, -0.19177445769309998, 0.5254531502723694, 0.006833419669419527, -0.10551644116640091, 0.39885756373405457, -0.5744197368621826, -0.03212705999612808, -0.3601017892360687, 0.6385889053344727, -1.0206729173660278, 0.5149887204170227, 0.11051113903522491, -0.2334293276071...
def update _ impersonation _ config ( cls, connect _ args : dict [ str, any ], uri : str, username : optional [ str ], ) - > none : url = make _ url ( uri ) backend _ name = url. get _ backend _ name ( ) # must be trino connection, enable impersonation, and set optional param # auth = ldap | kerberos # set principal _ ...
[ -0.8982977271080017, -0.035627979785203934, 0.6402059197425842, 0.10452789813280106, 0.16575074195861816, 0.6843088865280151, -0.30276840925216675, 1.2437610626220703, 0.04732081666588783, 1.165895700454712, -0.6431288719177246, 0.6894323825836182, -0.7476328611373901, -0.16930416226387024...
def iab _ illegal _ content ( ) : kws = { " illegal content " : [ ], " warez " : [ ], " spyware / malware " : [ ], " copyright infringement " : [ ], }
[ 1.0565464496612549, -0.10548315197229385, 0.23741109669208527, 0.635135293006897, -0.6937941908836365, 0.6195791363716125, 0.18308182060718536, -0.7209671139717102, 0.2299596220254898, 0.4132697284221649, -0.33851051330566406, 0.8538346886634827, -0.9723607897758484, 0.5796661376953125, ...
def _ _ on _ segment ( self, p, q, r ) : if ( ( q. x < = max ( p. x, r. x ) ) and ( q. x > = min ( p. x, r. x ) ) and ( q. y < = max ( p. y, r. y ) ) and ( q. y > = min ( p. y, r. y ) ) ) : return true return false
[ 0.07693637907505035, -1.4945470094680786, 0.8575106859207153, -0.6310650706291199, 0.1918674260377884, 1.288977026939392, -1.1304746866226196, -0.6885063052177429, -0.04176166281104088, 0.6448719501495361, -0.18778710067272186, -0.7099350690841675, -0.6006872057914734, -0.8063793778419495,...
def revoke ( self, data ) : return true
[ 0.17338290810585022, 0.008452353067696095, 0.39278361201286316, 0.48517733812332153, 0.2807231843471527, 0.2394743114709854, -0.36112523078918457, 1.410863995552063, 0.2507619559764862, -0.9300510883331299, -0.35443177819252014, -0.04309473931789398, -1.3589797019958496, -1.026781082153320...
def to _ grid ( self, mapping ) : return list ( reversed ( [ [ mapping. get ( ( x, y ), none ) for x in range ( self. cols ) ] for y in range ( self. rows ) ] ) )
[ -1.3812834024429321, 0.026756854727864265, 0.6929725408554077, -0.1285097301006317, 0.37360891699790955, -0.6062670946121216, -0.7418436408042908, -0.0064975363202393055, 0.2957305312156677, 0.5829633474349976, -0.6937071681022644, 0.13312563300132751, 0.23829089105129242, -0.1158459335565...
def start ( self ) : if self. thread. is _ alive ( ) : return logging. getlogger ( ). info ('starting job manager.') self. thread = stoppablethread ( target = self. _ process, name = self. _ _ class _ _. _ _ name _ _ + timestamp ( ) ) self. thread. start ( )
[ -0.41817352175712585, -1.369285225868225, 0.5699660181999207, -0.05180908367037773, 0.38534319400787354, 0.17461146414279938, -0.5997092723846436, 0.7229648232460022, -0.2709987461566925, -1.2371348142623901, -0.4427626132965088, 0.11394631117582321, 0.04923286661505699, 0.5275192260742188...
def read _ from _ definition _ file ( cls, definition _ groups = none, definition _ names = none, definition _ file = none ) : # type : ( list, list, definitionfile ) - > list if not definition _ groups : definition _ groups = [ ] if not definition _ names : definition _ names = [ ] if not definition _ file : definitio...
[ 0.01675594225525856, -0.1901816725730896, 0.6177483797073364, 1.1382558345794678, 0.3319792151451111, 0.19434517621994019, 0.2990441918373108, 0.01411256194114685, -0.9405640959739685, 0.7475799918174744, 0.20607496798038483, 0.28252974152565, -0.029837895184755325, 1.3159654140472412, -...
def _ add _ column _ wcs ( self, table _ header, wcs _ dict ) : wcs _ col = false # says if column is one that requires wcs info for kwd in table _ header : # adding header descriptions for the table keywords if " ttype " in kwd : table _ header. comments [ kwd ] = " column name " elif " tform " in kwd : table _ header...
[ -0.26889851689338684, -0.5019848346710205, 0.7198358774185181, -0.7298679947853088, -0.015516637824475765, 0.6457030773162842, -0.2462666779756546, -0.938831090927124, -0.636339545249939, 0.6114146113395691, 0.2580053210258484, 0.3205932676792145, 0.3547495901584625, 0.8897393941879272, ...
def get _ all _ entity _ types ( self ) : return self. _ db _ inst. get _ all _ entity _ types ( )
[ 0.06295724213123322, 0.07535157352685928, 0.41898810863494873, 1.0954030752182007, 1.1969119310379028, 0.5164390206336975, -0.4252077043056488, -0.27580419182777405, -0.20806582272052765, -0.7001179456710815, -0.466196745634079, 0.22380651533603668, -0.5877780318260193, 1.3167500495910645,...
def deal ( deck, cardset, quantity ) : for i in range ( quantity ) : cardset. append ( deck. deal ( ) )
[ -0.4442216157913208, -0.07464252412319183, 0.33836209774017334, 0.15842925012111664, 0.7962472438812256, -0.5116303563117981, -1.5394014120101929, -0.25545865297317505, -0.2254580557346344, -1.169024109840393, -0.45439690351486206, -0.24076171219348907, 0.5862110257148743, 0.01234024018049...
def call ( self, pxo, training ) : point, feat, row _ splits = pxo # ( n, 3 ), ( n, c ), ( b + 1 ) if self. stride! = 1 : new _ row _ splits = tf. numpy _ function ( self. compute _ new _ row _ splits, [ row _ splits, self. stride ], tf. int64 ) idx = tf. numpy _ function ( furthest _ point _ sample _ v2, [ point, row ...
[ 0.17724940180778503, 0.28842371702194214, 0.5166816711425781, 0.6455539464950562, -0.6460834741592407, 0.09682287275791168, 0.14499789476394653, 0.24188479781150818, -0.1344761699438095, -0.11901577562093735, -0.28857317566871643, 0.11271482706069946, 0.30829253792762756, -0.07112587988376...
def check _ order _ triggers ( order, event ) : if order. triggered : return ( order. stop _ reached, order. limit _ reached ) stop _ reached = false limit _ reached = false # if the stop price is reached, simply set stop _ reached if order. stop is not none : if ( order. direction * ( event. price - order. stop ) < = ...
[ -0.15517498552799225, -0.13897301256656647, 0.9679340124130249, 0.3947688043117523, 0.03725721687078476, -0.4486824572086334, -0.37085556983947754, 0.10363176465034485, -0.1275465041399002, 0.9428892731666565, -0.1261991411447525, -0.027825582772493362, 0.17414240539073944, -0.679937005043...
def download ( self, filename, fieldnames = true ) : parentname = os. path. dirname ( filename ) if not parentname : parentname = os. getcwd ( ) if not os. path. isdir ( parentname ) : msg _ ='% s is not a valid filepath.'% parentname raise oserror ( msg _ ) writeable = os. access ( parentname, os. w _ ok ) if not writ...
[ -0.2434772551059723, 0.08960899710655212, 0.7364157438278198, -0.10995563864707947, 0.3764553964138031, -0.36187976598739624, 0.6383997201919556, -0.3496996760368347, -0.6936752200126648, -0.20091529190540314, -0.23046797513961792, -0.12960372865200043, -0.19377252459526062, -0.26505064964...
async def delete _ messages ( self :'telegramclient ', entity :'hints. entitylike ', message _ ids :'typing. union [ hints. messageidlike, typing. sequence [ hints. messageidlike ] ] ', *, revoke : bool = true ) - >'typing. sequence [ types. messages. affectedmessages ]': if not utils. is _ list _ like ( message _ ids ...
[ -0.5146803259849548, 0.21518588066101074, 0.8762035369873047, 0.13246837258338928, 1.2102071046829224, -0.8315908312797546, -0.3900943994522095, -0.43223151564598083, 0.3395163416862488, 0.05083119869232178, 0.6631770133972168, 0.8016359806060791, -0.8364488482475281, 1.1087334156036377, ...
def _ set _ method ( self, method ) : self. _ method = method print self. _ method if method [ : 7 ] = ='ratliff'and 1 < = int ( method [ 7 ] ) < = 4 : if method [ 7 ] = ='1': kernels = [ np. array ( [ [ 1, 0 ], [ 0, 0. ] ] ), np. array ( [ [ 0, 1 ], [ 0, 0. ] ] ), np. array ( [ [ 0, 0 ], [ 0, 1. ] ] ), np. array ( [ [...
[ 0.07235578447580338, -0.16968728601932526, 1.127748966217041, -0.4170338809490204, 0.03025607019662857, -1.0443248748779297, 0.5997411608695984, -0.7513421177864075, 0.15556852519512177, 0.8361830115318298, 0.2857770621776581, 0.034478601068258286, 0.052240144461393356, 1.1317914724349976,...
def remove ( self, node ) : # if key exists in cache if node. key in self. hash _ map : prev = node. prev next = node. next next. prev = prev prev. next = next self. cur _ size - = 1 # decrement size else : raise valueerror ( " key not in cache " )
[ -0.2826177179813385, 0.47308745980262756, 0.5355828404426575, -0.4291643500328064, -0.5823820233345032, -0.39919817447662354, 0.3117428719997406, 1.3463268280029297, 0.23955577611923218, 1.200868010520935, 0.08203871548175812, 0.2976735532283783, -1.271136999130249, 0.7191024422645569, -...
def put _ in ( self, y _ start, x _ start, fromtextlist = none, totextlist = none, skip = ['' ] ) : for y in range ( len ( fromtextlist ) ) : if y _ start + y < len ( totextlist ) : newline = totextlist [ y _ start + y ] [ 0 : min ( len ( totextlist [ y _ start + y ] ) - 1, x _ start ) ] for x in range ( len ( fromtext...
[ -0.2537412941455841, -0.24845199286937714, 1.1008020639419556, -1.093428134918213, -1.2560323476791382, 0.07555248588323593, -0.03347717598080635, 0.11549268662929535, -0.4239366054534912, 0.8206976056098938, -0.3446376621723175, 0.4443552792072296, -0.16646252572536469, -0.373343199491500...
def timeline _ geojson ( ) : # perform the sql query query = db. session. query ( globaltemperaturebymajorcity. date, globaltemperaturebymajorcity. latitude, globaltemperaturebymajorcity. longitude, globaltemperaturebymajorcity. city, globaltemperaturebymajorcity. country, func. avg ( globaltemperaturebymajorcity. land...
[ -0.12000422924757004, -0.2331758290529251, 0.7858760952949524, -0.9807865619659424, -0.7276251912117004, -0.08358175307512283, -0.21337492763996124, 0.19010770320892334, -1.1684954166412354, 1.3401525020599365, -0.5861771106719971, 0.22553279995918274, 0.6501222252845764, 0.954735279083252...
def createenv ( model _ dir, train _ args, algo _ name, algo _ class, env _ kwargs, log _ dir = " / tmp / gym / test / ", num _ cpu = 1, seed = 0 ) : # log dir for testing the agent log _ dir + = " { } / { } / ". format ( algo _ name, datetime. now ( ). strftime ( " % y - % m - % d _ % hh % m _ % s _ % f " ) ) os. make...
[ -0.13872398436069489, -0.21384906768798828, 0.750614583492279, -0.17320457100868225, -0.04058319702744484, -0.0509013906121254, 0.18372540175914764, -0.2653070390224457, -0.23930495977401733, 0.9136141538619995, -0.07127199321985245, 0.30685099959373474, 0.709392249584198, 0.12865106761455...
def simpleexpressionhandler ( self, singleexpression ) : if'not'in singleexpression : standaloneterm = singleexpression. split ('not ', 1 ) [ 1 ]. strip ( ) if'"'in standaloneterm : termdocumentset = self. phrasehandler ( standaloneterm ) else : termdocumentset = self. ii. gettermdocumentset ( self. preprocessedterm ( ...
[ -0.25418224930763245, -0.8728340268135071, 0.6085487008094788, -0.6714217066764832, -0.8374901413917542, 0.4243006110191345, 0.46441376209259033, 0.43982169032096863, 0.8757631182670593, 0.1829199343919754, 0.11784112453460693, -0.28891804814338684, -0.9721485376358032, -0.3711386024951935...
def update ( self ) : produced = self. shapedirs. dot ( self. beta ) # produced. shape : ( 2504, 3 ) v _ shaped = produced [ : self. v _ template. shape [ 0 ] ] + self. v _ template # extract the joint locations from the v _ shaped array self. j = v _ shaped [ self. numverts :, : ] v _ shaped = v _ shaped [ 0 : self. n...
[ -0.39201819896698, -0.5158011317253113, 0.691148579120636, -0.19536030292510986, -0.03980160877108574, -0.0734081119298935, 0.5094335675239563, -0.008074094541370869, -0.3476446270942688, -0.14315393567085266, 0.012970850802958012, 0.6204967498779297, -1.0581376552581787, 0.402498662471771...
def handle _ starttag ( self, tag, attrs ) : try : if tag = ='td': # check for < td > tag self. is _ td _ tag = true if len ( attrs ) > 0 : if any ('background - color'in attr for attr in attrs [ 0 ] ) : self. cur _ td _ color = attrs [ 0 ] [ 1 ]. split (':') [ 1 ] elif any ( tag in t for t in ['i ','b'] ) : # check fo...
[ -0.21170923113822937, -0.5234870910644531, 0.7044393420219421, 0.4543820917606354, -0.17696012556552887, -0.356020450592041, 0.13068276643753052, 0.06451674550771713, -0.34805577993392944, 0.2842997908592224, 0.3995484411716461, 0.6884714365005493, 0.3877468407154083, 0.4508914649486542, ...
def get _ vnfrid ( self, nsr ) : vnfrid _ list = nsr ['constituent - vnfr - ref'] return ( vnfrid _ list )
[ -0.6389487385749817, -0.564283013343811, -0.010426223278045654, 0.2115369290113449, 0.47563043236732483, -0.948405921459198, -1.0049035549163818, -0.30791333317756653, 0.31440573930740356, 0.5616138577461243, -0.33801326155662537, 0.4930930733680725, -0.6394711136817932, 1.1626027822494507...
def reset ( self ) : self. tables = { }
[ -0.29593703150749207, 0.42641472816467285, 0.157026469707489, 0.3139890730381012, -0.31491294503211975, 0.508600652217865, 0.6450758576393127, -0.14687496423721313, -0.9520700573921204, -0.39866647124290466, -0.9245489239692688, 1.3218895196914673, -0.2571142017841339, 0.3495359420776367, ...
def _ _ init _ _ ( self, cd, name ) : self. cd = cd self. name = name self. obj = self. build ( )
[ 0.19638828933238983, -1.4154373407363892, 0.6268361806869507, 0.15842032432556152, -0.7416974902153015, 0.5773336887359619, -0.01296098530292511, -0.11168736964464188, -0.06270472705364227, -0.39858052134513855, -1.0279067754745483, 0.6995357871055603, 0.392957866191864, 0.2992289364337921...
def bypass _ raw ( self, datasettype, pythontype, location, dataid ) : from lsst. ip. isr import assembleccdtask config = assembleccdtask. configclass ( ) config. dotrim = false assembletask = assembleccdtask ( config = config ) logger = lsst. log. log. getlogger ( " ztfmapper " ) # - = - = - = - = - = - = - = - = - = ...
[ -0.23761631548404694, -0.6745851039886475, 0.807249128818512, -0.15504126250743866, -0.15977133810520172, -0.3558996021747589, 0.47029557824134827, 0.10142272710800171, 0.5518638491630554, 0.22683008015155792, 0.20006826519966125, 0.31585806608200073, 0.5733474493026733, 0.5441487431526184...
def _ create _ table ( self ) : n = len ( self. dist ) alias _ table = [ [ i, d * n ] for i, d in enumerate ( self. dist ) ] under = [ ] over = [ ] for b in alias _ table : if b [ 1 ] > 1. 0 : over. append ( b ) if b [ 1 ] < 1. 0 : under. append ( b ) over = sorted ( over, key = lambda x : x [ 1 ], reverse = true ) und...
[ 0.10629244893789291, -0.17780302464962006, 0.7156838774681091, -0.21417738497257233, -0.6853564381599426, 0.6519392132759094, 0.7155762910842896, 0.093891441822052, -0.5088227391242981, 1.2597101926803589, -0.10694953054189682, 0.5895522236824036, 0.49852871894836426, 0.8623485565185547, ...
def get _ task ( self ) : # fetch a random task picked _ task = random. choice ( list ( self. _ task _ dictionary. keys ( ) ) ) # fetch all the samples from the current sequence left _ frames = self. _ task _ dictionary [ picked _ task ] ['left'] right _ frames = self. _ task _ dictionary [ picked _ task ] ['right'] gt...
[ -0.699733555316925, -0.34633079171180725, 0.885738730430603, -0.27350568771362305, -0.08017908036708832, 0.2574378550052643, 0.816970944404602, -0.470510870218277, -0.01474285963922739, 0.5754683017730713, -0.5126984119415283, 0.49922704696655273, -0.8219291567802429, 0.26899591088294983, ...
def binary _ var ( name = none ) : return cpointvar ( binary _ domain, name )
[ 0.3929731845855713, -0.5615195035934448, 0.32002755999565125, 0.6598796248435974, -0.9256908893585205, 0.27805447578430176, 0.30743998289108276, -0.8125280737876892, -0.8180387616157532, -0.3293282985687256, -1.461017370223999, 1.2168798446655273, -0.9232973456382751, -0.22917860746383667,...
def get ( self, request, format = none ) : an _ apiview = ['uses http methods as function ( get, post, patch, put, delete ) ','is similar to a tradional django view ','gives you most control over your appilication logic ','is mapped manually to urls ', ] return response ( {'message':'helllo! ','an _ apiview': an _ apiv...
[ -0.8301895260810852, -0.23167121410369873, 0.5391189455986023, -0.4161023497581482, -0.17196659743785858, -0.635515034198761, -0.6254656314849854, 0.3297874629497528, -0.20266425609588623, -1.0510605573654175, 0.4343983232975006, 0.28199779987335205, 0.14828689396381378, 0.1037586480379104...
def retry _ wait ( func, try _ times = 1, delay = 0., exceptions = none ) : for t in retryonexception ( try _ times, exceptions ) : with t : return func ( ) if delay > 0 : time. sleep ( delay )
[ 1.0504652261734009, 0.6938980221748352, 0.4144306480884552, 0.5540773272514343, -0.3517250120639801, -0.2002974897623062, 0.2856111526489258, 1.0869650840759277, -0.17465762794017792, -0.5579833984375, 0.5492780804634094, 0.008914893493056297, -0.0641394555568695, -0.28525182604789734, -...
async def ongoing _ games ( self, ctx : ctx ) : games = ctx. session. get _ ongoing ( ) await paginator ( ctx, games, format _ ongoing _ game, f'{ ctx. session. user. username } \'s ongoing games'). display _ page ( )
[ 0.034160103648900986, -0.4125739634037018, 0.5888796448707581, 0.3078765273094177, -0.329011470079422, 0.4347876310348511, -0.22056542336940765, 0.31041640043258667, -0.2770320177078247, 0.405001699924469, 0.6402590870857239, 0.5038685202598572, -0.46091365814208984, -0.05569540336728096, ...
def do _ setup ( self, context ) : self. context = context log. info ('activate flexvisor cinder volume driver.')
[ 0.24751265347003937, -0.6489505767822266, 0.23291489481925964, 0.833368182182312, 1.8852561712265015, -1.4374358654022217, -0.035314273089170456, 0.22372761368751526, 0.9730222225189209, 0.0040918332524597645, -0.12986478209495544, 0.7039719820022583, 0.31400030851364136, -0.08207674324512...
def forbundlename ( self, bundlename ) : engine = self. _ engines [ self. _ bundlenames [ bundlename ] ] if not engine. available ( ) : raise error. abort ( _ ( b'compression engine % s could not be loaded') % engine. name ( ) ) return engine
[ 0.30389466881752014, -0.7015891671180725, 0.24262259900569916, -0.19011259078979492, -0.262846976518631, -0.28803902864456177, -0.10990248620510101, -0.658492386341095, -0.584982693195343, 0.28068602085113525, 0.744003176689148, -0.17107681930065155, -0.3230656683444977, 0.0943901911377906...
def plot _ locations ( self, key ) : try : locs = np. swapaxes ( self. locationperms [ key ], 0, 1 ) except indexerror : print ( " undefined route, try running grover again : ( " ) return 0 plt. scatter ( locs [ 0 ], locs [ 1 ] ) plt. scatter ( self. start [ 0 ], self. start [ 1 ] ) plt. text ( self. start [ 0 ] + 0. 0...
[ -0.7101683616638184, 0.27860528230667114, 0.7018309831619263, -0.9294032454490662, -0.3428407907485962, 0.14964532852172852, 0.8766841888427734, 1.0335668325424194, 0.15508322417736053, 0.5697174072265625, 0.5953613519668579, 1.060431718826294, -0.38364508748054504, 0.21767844259738922, ...
def process ( self, verbose = false ) : # validate the categories data has been loaded at init time if ( not isinstance ( self. _ _ data _ raw, pd. dataframe ) ) : raise runtimeerror ( " initial hdf5 categories data failed to load ; reload the class. " ) df = self. _ _ data _ raw # # # # # # # # # # # # # # # # # # # #...
[ 0.07814659923315048, 0.412972629070282, 0.7285336852073669, -0.5199121832847595, -0.1753491759300232, -0.844823956489563, 0.36718079447746277, 0.08002921938896179, -0.8469261527061462, -0.026478752493858337, 0.26691165566444397, -0.2762799561023712, 0.7786818742752075, 1.2409981489181519, ...
def check _ user ( self, user ) : # inactive users can't login until they activate their account if user. status = = user. status _ inactive : raise authenticationerror ( " user'% s'registered but not activated " % user. email ) if user. status = = user. status _ blocked : # if user is blocked, don't allow to continue ...
[ -0.11676938831806183, 0.28289079666137695, 0.5405372977256775, 1.0083504915237427, -0.8512450456619263, 0.5655658841133118, 0.5942896008491516, -0.0018879674607887864, -0.045206911861896515, 0.6818666458129883, -0.23504498600959778, 0.46515458822250366, -0.07966621965169907, -0.11478385329...
def _ _ init _ _ ( self, session _ id, custom _ data, site _ id, termination ) : # type : ( str, optional [ str ], str, sessiontermination ) - > none self. session _ id = session _ id self. custom _ data = custom _ data self. site _ id = site _ id self. termination = termination
[ 0.9121249914169312, -0.6531240940093994, 0.19283166527748108, 0.11763458698987961, -0.3194730281829834, -0.8283405303955078, -0.31625229120254517, 0.07647447288036346, 1.2387409210205078, 0.07244183123111725, -0.6700512170791626, 1.0368831157684326, 0.21745438873767853, -0.4617789089679718...
def test _ cancel _ expired _ block _ paid _ creates _ transfer _ block ( self ) : self. assertfalse ( block. objects. exists ( ) ) self. client. login ( username = self. user. username, password ='test') pc = baker. make _ recipe ('booking. future _ pc ', cost = 10 ) ev = baker. make _ recipe ('booking. future _ ev ',...
[ 0.7549962401390076, 0.17096175253391266, 0.9626505374908447, 1.2271740436553955, -0.5146806240081787, 1.2224558591842651, -0.26892176270484924, 0.2910897135734558, -0.5154416561126709, 0.2031555026769638, -0.8712604641914368, -0.2144216150045395, -0.2253202497959137, 0.892865002155304, 0...
def main ( global _ config, * * settings ) : config = configurator ( settings = settings ) config. include ( " pyramid _ chameleon " ) config. add _ static _ view ( " assets ", " assets ", cache _ max _ age = 3600 ) config. add _ route ( " calibration _ report ", " / " ) config. add _ route ( " view _ pdf ", " / view _...
[ 0.13424529135227203, 0.7536776661872864, 0.5772980451583862, 0.5948940515518188, -0.5598568320274353, 0.4026098847389221, 0.7150397300720215, 0.058190517127513885, -0.1893550157546997, 0.016919082030653954, 0.04977468401193619, -0.3222174346446991, -0.09384538233280182, 0.02730832435190677...
def get _ conversation _ name ( client, conversation _ id ) : for c in get _ conversations _ list ( client ) : if c. get ( " id " ) = = conversation _ id : if c. get ( " is _ im " ) : for u in get _ users _ list ( client ) : if u [ " id " ] = = c [ " user " ] : conversation _ name = u [ " name " ] break else : raise va...
[ 0.09634508937597275, -0.8631173372268677, 0.6178497672080994, 0.7055657505989075, -0.24201062321662903, -0.5967027544975281, 0.049877725541591644, -0.884321391582489, 0.17880475521087646, 1.5411911010742188, 0.8382135629653931, 0.8118635416030884, -0.6041919589042664, 0.5529201626777649, ...
def _ _ init _ _ ( self, lat _ pad = 1, lon _ pad = 1 ) : super ( sphericalpad, self ). _ _ init _ _ ( ) self. lat _ pad = lat _ pad self. lon _ pad = lon _ pad
[ -0.023306068032979965, -0.31676238775253296, 0.6710255742073059, -0.30904677510261536, -0.3033735454082489, 1.384948492050171, -0.69175124168396, 0.5049177408218384, 0.9399889707565308, 0.010039682500064373, -0.5867933630943298, 0.02539234422147274, 0.09386079013347626, 0.6810296177864075,...
def virtual _ machine _ id ( self ) - > pulumi. output [ str ] : return pulumi. get ( self, " virtual _ machine _ id " )
[ 1.207289218902588, -0.2040272057056427, 0.11733823269605637, 0.6150551438331604, 0.7217929363250732, 1.1763025522232056, -0.28956374526023865, 0.3000984787940979, 0.9313476085662842, 0.20196883380413055, 0.1374300718307495, 1.2099121809005737, -0.5037794709205627, -0.6900898814201355, -0...
def fit _ corpus ( self, corpus ) : for s in corpus : self. fit _ sentence ( s ) self. norm ( )
[ 0.14321741461753845, -0.5113327503204346, 0.12032319605350494, 1.0221062898635864, 0.5787892937660217, -0.486559122800827, 0.3814898133277893, 0.6645273566246033, -0.4343660771846771, 0.31956103444099426, -0.44375452399253845, -0.45686742663383484, -1.6261850595474243, 1.3201444149017334, ...
def tokenize _ text ( self ) : configurationfile = " tokconfig - nld " tokenizer = ucto. tokenizer ( configurationfile ) tokenizer. process ( self. markedtext ) # print number of words of the text # nr _ of _ tokens = 0 # for token in tokenizer : # nr _ of _ tokens + = 1 # print ('number of tokens of book ', self. book...
[ -0.08267943561077118, -0.7010640501976013, 0.533553957939148, 0.34989532828330994, 0.18262802064418793, -0.1542072296142578, 0.09842376410961151, 1.3426849842071533, -0.9812207221984863, -0.03797748312354088, -0.011289088055491447, -0.27035588026046753, -0.5025808811187744, 1.1393274068832...
def assert _ array _ max _ ulp ( self, * args, * * kwargs ) : return assert _ array _ max _ ulp ( * args, * * kwargs )
[ -0.38129663467407227, -0.050554309040308, 0.8111011385917664, 0.9078950881958008, 0.6635551452636719, 0.7352812886238098, -0.08862379193305969, 0.1173284575343132, 0.7190744280815125, 0.37548547983169556, -0.05251038819551468, 0.5453651547431946, -0.043248049914836884, -0.09548795968294144...
def _ prev _ month ( self ) : self. _ canvas. place _ forget ( ) self. _ date = self. _ date - self. timedelta ( days = 1 ) self. _ date = self. datetime ( self. _ date. year, self. _ date. month, 1 ) self. _ build _ calendar ( ) # reconstuct calendar
[ 0.6510027647018433, 0.14527447521686554, 0.6391793489456177, -0.7675141096115112, -0.3266935348510742, 0.2865314781665802, 1.556279182434082, 0.13995084166526794, 0.2540748119354248, -0.6081835031509399, 0.14904272556304932, 0.48206520080566406, 0.1617061197757721, 0.09421361982822418, 0...
def three _ lines ( ) : print new _ line ( ) print
[ 0.8880760073661804, -0.43495839834213257, 0.25188013911247253, 1.0206815004348755, 1.2049297094345093, 0.8785321116447449, -1.4061139822006226, -0.2795550227165222, -0.699497401714325, -0.44690990447998047, -0.8523821830749512, 0.541948676109314, 0.3836731016635895, -0.5588355660438538, ...
async def vdm ( self, ctx ) - > none : response = get ( " https : / / www. viedemerde. fr / aleatoire " ) soup = beautifulsoup ( response. content, " html. parser " ) tag = soup. find _ all ( " p ", class _ = " block " ) [ 0 ] message = embed ( ) message. set _ thumbnail ( url = " https : / / upload. wikimedia. org / w...
[ -0.46976372599601746, 0.5344338417053223, 0.7877892255783081, -0.4018997848033905, 0.347522497177124, 0.14687411487102509, -1.1183491945266724, 0.46209773421287537, 0.3442487418651581, 0.1921996921300888, 0.11774027347564697, 1.117651343345642, -0.4026573598384857, 0.7830362319946289, -0...
def verify ( self, message, signature ) : try : self. _ _ pk. verify ( signature. bytes, message ) return true except invalidsignature : return false
[ 0.33160021901130676, 0.863527238368988, 0.16403800249099731, 1.56818687915802, 0.3656498193740845, 0.09565429389476776, -0.4758158028125763, 0.015190230682492256, -0.4613112509250641, -0.2481396645307541, -1.6378068923950195, -0.8030574917793274, -1.3404728174209595, 0.39407023787498474, ...
def get ( self, source, next _ index ) : return self. generator. get ( source, next _ index )
[ -0.7599552273750305, 0.8291163444519043, 0.17771725356578827, -0.5410159826278687, -0.5217461585998535, -0.474181592464447, -0.3761025369167328, -0.46931472420692444, -0.2629612684249878, -0.599050760269165, -0.2843440771102905, 1.1506270170211792, -0.10836628079414368, -0.9549204111099243...
def save _ unmatched ( self, unmatched, file _ name = " / tmp / unmatched. csv " ) : if unmatched and len ( unmatched ) > 0 : save _ csv ( data = unmatched, csv _ fname = file _ name, fieldnames = sorted ( list ( unmatched [ 0 ]. keys ( ) ) ), )
[ -0.793993353843689, -0.461992472410202, 0.2570092976093292, -0.06565720587968826, 0.15556783974170685, 0.3136402368545532, 0.3749289810657501, 0.6473578214645386, -0.2779271602630615, -0.49747800827026367, -1.4983989000320435, -0.25076499581336975, -0.3791367709636688, 0.4571026563644409, ...
def _ _ init _ _ ( self, parent, tag, attributes ) : _ node. _ _ init _ _ ( self, attributes ) self. parent = parent self. tag = tag
[ 0.3066087067127228, -0.13371823728084564, 0.47986555099487305, -0.2828141152858734, -0.1174372211098671, 0.049910057336091995, -0.5411390066146851, 0.37123391032218933, -0.9332829713821411, -0.7691866159439087, -0.4460849165916443, 0.3191813826560974, 0.9889366626739502, 0.5426313877105713...
def _ _ iter _ _ ( self ) : for i in range ( self. n - 1, - 1, - 1 ) : yield self. resizing _ array [ i ]
[ -1.0697667598724365, 0.27093589305877686, 0.5475944876670837, 0.2878777086734772, 0.2638361155986786, 0.18197745084762573, -0.0014061194378882647, -0.8882880806922913, -0.18614013493061066, 0.04070935398340225, 0.7890785932540894, 0.11326051503419876, -0.7092448472976685, 0.349456489086151...
def faintanddonemessage ( self ) : self. trap. turns = 1 self. pkmn. setcurrhp ( self. trap. getdamage ( self. pkmn ) ) self. pkmn. secondaryeffects. append ( self. trap ) messages = self. trap. afterturn ( self. pkmn ) assert len ( messages ) = = 2, " should have two messages " assert messages [ 1 ] = = self. pkmn. ge...
[ 0.39003849029541016, -0.3189902901649475, 0.4498310387134552, 0.049148719757795334, 1.0978646278381348, 0.21064698696136475, -0.2635849118232727, -0.6371772289276123, 0.021993393078446388, -0.532877504825592, -0.5782231688499451, 0.3008955121040344, 0.4014560580253601, 0.7571509480476379, ...
def disasm _ view ( self ) : view = self. workspace. view _ manager. current _ view _ in _ category ( " disassembly " ) if view is none : view = self. workspace. _ get _ or _ create _ disassembly _ view ( ) return view
[ -0.03995700180530548, -0.22730901837348938, 0.4471486806869507, -0.6004987955093384, -0.43424364924430847, -0.6104061007499695, 0.4511863589286804, -0.3789912760257721, 0.647404670715332, -1.2743898630142212, 1.65725839138031, 0.3144128620624542, 0.14097526669502258, 0.42868638038635254, ...
def create _ goal _ from _ yaml ( action, msg ) : # initialize message. goal _ cls = get _ goal _ class ( action ) goal _ msg = goal _ cls ( ) # load message dictionary from yaml encoded string. msg _ dict = yaml. load ( msg ) # fill message arguments. roslib. message. fill _ message _ args ( goal _ msg, [ msg _ dict ]...
[ 0.045941490679979324, -0.4417511820793152, 0.4379744827747345, 0.4025373160839081, -0.016737904399633408, -0.2976563274860382, -0.2833746671676636, -0.022311655804514885, -0.622799813747406, 0.2722492814064026, -0.02163396030664444, 0.5994541645050049, 0.2859954833984375, 0.849846541881561...
def locative _ relative ( doc ) : # todo pass
[ 0.6121832728385925, -1.2372018098831177, 0.4386361539363861, 0.3075290322303772, -1.2311598062515259, 0.3811309039592743, 1.0324275493621826, -0.13059662282466888, -0.1112380251288414, 0.40824493765830994, 0.13333003222942352, 0.07766737043857574, -0.20681504905223846, -0.3089922368526459,...
def createnewbbbmeeting ( self, params, xml ='' ) : # send the create new meeting request response = self. _ _ post ( self. action _ create, self. _ _ generatebbbrequest ( params ), xml ) return self. _ _ bbbresponsevalidate ( response )
[ -1.7481588125228882, 0.15402503311634064, 0.6145141124725342, 1.256433367729187, 0.27074363827705383, 0.8140695691108704, -0.023863546550273895, -0.3947632908821106, -0.345527321100235, 0.08579424023628235, -0.15609891712665558, 0.5669233202934265, -2.0130465030670166, 0.7170193195343018, ...
def bbox _ intersect ( ba, bb ) - > bool : return ba. x1 > = bb. x0 and bb. x1 > = ba. x0 and ba. y1 > = bb. y0 and bb. y1 > = ba. y0
[ 0.5413945913314819, -0.48471444845199585, 1.1535515785217285, 0.25629279017448425, 0.31116241216659546, 0.4252793788909912, -0.3798092305660248, 0.049537401646375656, -0.1436425894498825, 0.3893580138683319, -0.016936862841248512, 0.4652087688446045, -0.8424931764602661, 0.2702293694019317...
def docker ( args, input _ = none ) : run _ command ( ['/ usr / bin / docker'] + args, input _ )
[ -0.6107814311981201, 0.7085839509963989, 0.5236721038818359, 0.9224529266357422, 0.05631791055202484, 0.5536902546882629, 1.260292649269104, 0.31089651584625244, -0.31997132301330566, -1.0271883010864258, -0.08438468724489212, 0.6693329215049744, 0.4255172312259674, 1.3088120222091675, 0...
def set _ logger ( level ='debug') : log = logging. getlogger ( _ _ name _ _ ) log. setlevel ( level ) handler = logging. streamhandler ( sys. stdout ) formatter = logging. formatter ('[ % ( funcname ) s ] [ % ( levelname ) s ] : % ( message ) s') handler. setformatter ( formatter ) log. addhandler ( handler ) return l...
[ 0.17267954349517822, -0.43891656398773193, 0.5480824708938599, -0.642532229423523, -0.572381854057312, -0.8674836158752441, -0.7985575199127197, -0.0824643075466156, -0.9760453701019287, -0.9458186626434326, 0.038575269281864166, 0.3174317181110382, -0.11185488104820251, 1.5487626791000366...
def spot _ price _ limit ( self ) - > pulumi. output [ optional [ float ] ] : return pulumi. get ( self, " spot _ price _ limit " )
[ -0.0890633687376976, 0.13178876042366028, 0.4499759078025818, 0.5188802480697632, 0.4341598451137543, 0.8477757573127747, -0.24196171760559082, 0.0164176132529974, 0.524731457233429, 0.4991516172885895, 0.5882524251937866, 0.5538240075111389, 0.09697628021240234, -1.5208938121795654, -0....
def from _ matrix ( mat, source, dest ) : rot = rotation. from _ matrix ( mat ) return constantrotation ( rot. as _ quat ( ), source, dest )
[ 0.6287053227424622, 0.8288182020187378, 0.2929493486881256, -0.5238679051399231, -1.2712433338165283, -0.05368557944893837, -0.45246395468711853, -0.37208104133605957, 0.2537398338317871, 0.8733489513397217, 0.4185674786567688, -0.37901896238327026, 0.09384807199239731, -1.4620417356491089...
def random _ date ( self ) : start = datetime. datetime. strptime ('1 / 1 / 2014 1 : 30 pm ','% m / % d / % y % i : % m % p') end = datetime. datetime. strptime ('1 / 1 / 2016 4 : 50 am ','% m / % d / % y % i : % m % p') delta = end - start int _ delta = ( delta. days * 24 * 60 * 60 ) + delta. seconds random _ second =...
[ -0.32800665497779846, -0.025486990809440613, 0.8155525326728821, -0.23712709546089172, -0.42183610796928406, 0.758335530757904, -0.42449191212654114, -0.9466676115989685, -0.02379419654607773, -0.13081301748752594, 0.03039654530584812, 0.2974393367767334, -0.44288018345832825, -0.110655643...
def _ _ init _ _ ( self, validator, *, message : str = none, exception : exceptiontype = none, debug : bool = false ) : self. validator = self. _ make _ validator ( validator, message = message ) self. debug = debug if exception : self. exception = exception if message : self. exception = self. exception ( message ) # ...
[ 0.047581061720848083, 0.07359027862548828, 0.6350702047348022, 1.087968111038208, -0.2915445566177368, -0.15197724103927612, -0.2458338439464569, 0.5403748154640198, 0.21630558371543884, -0.6940468549728394, 0.4773596525192261, 0.26751211285591125, -0.5121568441390991, 0.682611882686615, ...