text
stringlengths
25
2.19k
embedding
listlengths
768
768
def test _ example _ input _ one _ select _ value _ single _ select _ group _ test ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) selected _ value = " two " input _ page. create _ new _ input. select ...
[ -0.8304399251937866, 0.2574559152126312, 0.26453694701194763, 0.7549173831939697, 0.5141960382461548, 0.40563392639160156, 0.2580663561820984, -0.36090052127838135, 0.2924802601337433, -0.13780412077903748, -0.0767812728881836, 0.24772781133651733, 0.06106016784906387, 0.15079373121261597,...
def at _ object _ creation ( self ) : self. db. written = false self. desc = " nothing has been written on this yet.'{ whelp write { n'" self. db. num _ instances = 1 self. db. can _ stack = true self. db. do _ not _ format _ desc = true self. at _ init ( )
[ -0.21273629367351532, -0.4604865312576294, 0.3300730288028717, -0.4772130846977234, 1.0207170248031616, -0.1069297343492508, 1.0431050062179565, 0.14949508011341095, -0.9602354168891907, -0.06257178634405136, -0.6037673354148865, 0.09807924181222916, 0.5423436760902405, 1.2259273529052734,...
def require _ post _ action ( ) : def decorator ( func ) : # pylint : disable = missing - docstring def wrapped ( * args, * * kwargs ) : # pylint : disable = missing - docstring request = args [ 1 ] action = request. post. get ( " action ", " " ) error _ response _ data = {'error':'missing required query parameter ( s ...
[ -1.1599719524383545, -0.5330276489257812, 0.7472150325775146, -0.19537636637687683, -0.7361084222793579, 0.4458189904689789, -0.2127481997013092, -0.6753641366958618, 0.6939759850502014, 0.5592741966247559, 0.1889374703168869, 0.6810707449913025, 0.566038191318512, 0.9426921606063843, -0...
def test _ authenticated _ upload _ small _ file ( ) : filename ='small. jpg'user ='dakobedbard _ gmail'userid = " dakobedbard @ gmail. com " password ='1! ziontf'id _ token = authenticate _ user ( userid, password ) key ='{ } / { } '. format ( user, filename ) s3 = boto3. resource ('s3') s3. object ( s3 _ _ upload _ b...
[ -0.22395044565200806, 0.22892871499061584, 0.9135574698448181, -0.036407940089702606, 0.02442788891494274, 0.696889340877533, 0.03690343350172043, -0.32742512226104736, 0.5068913102149963, -0.5542960166931152, -1.4623326063156128, -0.18724851310253143, 0.004522835370153189, 0.0616114437580...
def scluster ( matrix, centers, *, prior = 0., msr = 2, temp = 1., maxiter = 1000, savepref = " ", weights = none, mbsize = - 1 ) : if isinstance ( matrix, sp. csr _ matrix ) or isinstance ( matrix, csr _ tuple ) : matrix = csparsematrix ( matrix ) import pyminicore as pmc return pmc. scluster ( matrix, centers, msr = ...
[ 0.5379383563995361, 0.24944359064102173, 0.42493706941604614, 0.30845338106155396, -0.9520174264907837, -0.2986741364002228, -0.4628765285015106, 0.44815757870674133, 1.3395839929580688, -0.09612181782722473, 0.4256438612937927, 0.31032904982566833, -1.077343463897705, -0.5020947456359863,...
def from _ file ( cls, fname ) : with open ( fname ) as f : # parse the header line = f. readline ( ) bundle _ version = line. split ( ) [ - 1 ] if bundle _ version! ='v0. 3': raise bundleexception ('bundle version { } not supported. '. format ( bundle _ version ) ) tokens = f. readline ( ). split ( ) ncams = int ( tok...
[ 0.4201315939426422, -0.30795538425445557, 0.8218340873718262, 0.23813800513744354, -0.8230493664741516, 0.34088221192359924, 0.5847795009613037, 0.25395435094833374, -0.5035174489021301, 0.23473723232746124, -0.34381377696990967, 0.40143734216690063, 0.0913010835647583, 0.5430539846420288,...
def provide _ salesforce _ connection ( key _ file _ path : str ) : if not key _ file _ path. endswith ( ". json " ) : raise airflowexception ( " use a json key file. " ) with open ( key _ file _ path ) as credentials : creds = json. load ( credentials ) missing _ keys = config _ required _ fields - creds. keys ( ) if ...
[ 0.24068881571292877, -0.8029905557632446, 0.6462994813919067, 0.3346185088157654, -0.5404859185218811, 0.2819555103778839, -0.4027666747570038, 0.03972411900758743, -0.3155529499053955, -0.25167936086654663, 0.5087027549743652, -0.1522996872663498, 0.31672438979148865, 0.15648259222507477,...
def _ parsedatetime ( wall _ time ) : if wall _ time : current _ date = datetime. datetime. now ( ) current _ month = current _ date. month run _ month = wall _ time [ 0 : 2 ] if run _ month = ='12'and current _ month = ='01': year = current _ date. year - 1 else : year = current _ date. year return datetime. datetime....
[ 0.8389727473258972, -0.6106667518615723, 0.9650296568870544, 0.1688823401927948, -0.7224962711334229, 0.6646700501441956, -0.129431813955307, -0.0391252376139164, 0.10006658732891083, 1.3698030710220337, 0.2439134269952774, -0.1080956757068634, -0.1725054681301117, 0.4194466471672058, 0....
def _ whichalien ( self ) : empty = true while empty : c = random. randint ( 1, aliens _ in _ row ) - 1 if self. _ aliens [ c ] is not none : for x in range ( alien _ rows ) : if self. _ aliens [ c ] [ x ] is not none : empty = false return self. _ aliens [ c ] [ x ]
[ -0.36473941802978516, -0.7660298943519592, 0.6276097297668457, -0.9012531042098999, -0.047647882252931595, 0.20501941442489624, -0.1699378937482834, -0.2634347975254059, 0.3326861262321472, 0.18056286871433258, 0.7240141034126282, 0.271209716796875, -0.7102813124656677, -0.5488798022270203...
def test _ resize _ integration ( graph, target, methods ) : graph = nx. relabel _ nodes ( graph, lambda x : x * * 2 ) graph _ nodes = set ( graph. nodes ) s _ relabeled = [ ( np. array ( s ) * * 2 ). tolist ( ) for s in subgraphs ] resized = strawberryfields. gbs. dense. resize ( subgraphs = s _ relabeled, graph = gra...
[ 0.01884748600423336, 1.277155876159668, 0.46614065766334534, 0.22578687965869904, 0.9740997552871704, -0.1878749430179596, 0.7349576354026794, -0.31156718730926514, 0.4168838858604431, -0.14368146657943726, -0.42508408427238464, 0.35844922065734863, -0.2015773057937622, -0.7327978014945984...
def get _ whois _ ip ( ip : str, retry _ count : int = rate _ limit _ retry _ count _ default, rate _ limit _ timeout : int = rate _ limit _ wait _ seconds _ default, rate _ limit _ errors _ suppressed : bool = rate _ limit _ errors _ suppressedl _ default ) - > optional [ dict [ str, any ] ] : from urllib. request imp...
[ -0.34288424253463745, -0.21468394994735718, 0.7656079530715942, 0.027509886771440506, -0.3802444636821747, -0.29656603932380676, -0.21338385343551636, -0.7396421432495117, 0.6864157319068909, 0.11702171713113785, 0.6657437682151794, 0.2188953310251236, -0.5057678818702698, -1.6231895685195...
def _ _ init _ _ ( self, action _ size, n _ agents, seed ) : self. action _ size = action _ size self. n _ agents = n _ agents self. seed = np. random. seed ( seed )
[ 0.8031464219093323, -0.9819983839988708, 0.2806345820426941, 0.7933226823806763, 0.2758546769618988, -0.420770525932312, -0.13609907031059265, 0.16680145263671875, 0.9109834432601929, 0.06511680036783218, 0.048272598534822464, 0.5470792651176453, 0.3963313698768616, 0.9266752600669861, 0...
def model _ testing _ independent ( ) : print'traing model and test it with an independent dataset.'# - - directory config db _ dir = r'/ nfs / t2 / atlas / database'base _ dir = r'/ nfs / h1 / workingshop / huanglijie / autoroi'doc _ dir = os. path. join ( base _ dir,'doc') data _ dir = os. path. join ( base _ dir,'mu...
[ -0.26701995730400085, -0.365581750869751, 0.763537585735321, 0.4144352376461029, -0.3662574291229248, 0.47853782773017883, 1.2301018238067627, 0.43032222986221313, 0.2182735800743103, -0.043135542422533035, -0.5783957839012146, 0.47938597202301025, 0.3487411141395569, 0.4362216889858246, ...
def activatechatbot ( voc, search _ method ) : user _ input ='' while ( true ) : try : user _ input = input ('> > >') if user _ input = ='exit': break user _ input = data. preprocessstring ( user _ input ) answer = replytosentence ( voc, user _ input, search _ method ) answer [ : ] = [ token for token in answer if not ...
[ 0.13880962133407593, -0.46224766969680786, 0.6879507303237915, 0.4895041286945343, 0.6664972901344299, 0.1708967387676239, 0.17191831767559052, 0.0766863003373146, -0.454836905002594, 0.19536206126213074, -0.4137382507324219, 0.964425802230835, -0.8948136568069458, -0.2623591125011444, -...
def get _ score _ table ( self, * * kwargs ) : table = get _ score _ df ( exp _ list = self. exp _ list, savedir _ base = self. savedir _ base, score _ list _ name = self. score _ list _ name, filterby _ list = self. filterby _ list, verbose = self. verbose, * * kwargs ) return table
[ -0.2675190567970276, 0.2679637670516968, 0.49627506732940674, 0.9367395043373108, 0.3772695064544678, -0.48194679617881775, 0.32049423456192017, -0.20253628492355347, -0.3446594774723053, 0.5088453888893127, -0.2756606340408325, 0.5556707382202148, -0.8523687124252319, -0.1145198717713356,...
def load _ vocab ( filename ) : try : d = dict ( ) with open ( filename, encoding ='utf - 8') as f : for idx, word in enumerate ( f ) : word = word. replace ('\ n ','' ) d [ word ] = idx except ioerror : raise exception ( " no vocab path : " + filename ) return d
[ -0.012931177392601967, -0.4026782810688019, 0.41410312056541443, -0.6484315395355225, -1.4067025184631348, -0.7580594420433044, 0.36561551690101624, 0.7038498520851135, -0.41435080766677856, 1.1861472129821777, -0.6746946573257446, -0.2541382908821106, -0.34401386976242065, 0.0895007327198...
def location ( self ) : return self. _ location
[ -0.4033340513706207, -0.9285994172096252, 0.2559051811695099, -0.11294841766357422, 0.02708517387509346, 0.7436162829399109, 1.9360123872756958, 0.3598158061504364, 0.34754398465156555, -0.8981477618217468, 0.23001550137996674, 0.32559821009635925, 0.36148202419281006, -0.9233884215354919,...
def clear ( self, value ) : self. _ img. clear ( value )
[ -0.6330341100692749, 0.6396366953849792, 0.1922481507062912, -0.5392531156539917, -0.8094017505645752, 0.8198237419128418, 0.1813868135213852, -1.0938420295715332, 0.2998816668987274, 0.5796244740486145, -0.08411920070648193, 0.6711578965187073, 0.7167555093765259, 1.080689549446106, -0....
def cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilterid3did3 _ superclass _ cast ( * args )
[ 1.0273945331573486, 0.1320340633392334, 0.4493500888347626, -0.38601401448249817, -0.28217989206314087, 1.4155446290969849, -0.30002540349960327, 0.41686710715293884, 1.1049754619598389, 0.3774951994419098, -0.7937580943107605, 0.16850128769874573, -0.37202295660972595, -0.5931394100189209...
def test _ invalid _ key _ raises _ error ( self ) : date = datetime. now ( ) data = { " id " : 1, " date " : date, " shipped " : 1 } with self. assertraises ( datavalidationerror ) : order = order ( ) order. deserialize ( data )
[ -0.79659104347229, 0.6060055494308472, 0.45989787578582764, 0.1855231076478958, -0.3231908082962036, 0.24875256419181824, -1.4236763715744019, 0.4197710156440735, -0.6497558951377869, -0.27568721771240234, -0.8280515670776367, -0.25183796882629395, -0.4288797378540039, 0.19125106930732727,...
def span _ future ( start : pd. timestamp, delta : str ='1w ', freq : str ='1h') - > pd. dataframe : start = start + pd. timedelta ('1d') start = start. normalize ( ) end = start + pd. timedelta ( delta ) - pd. timedelta ( freq ) future = pd. date _ range ( start, end, freq = freq ) future = future. to _ frame ( name =...
[ -0.19434747099876404, 1.2232391834259033, 0.6340854167938232, 0.24057798087596893, -0.8202730417251587, -0.23010051250457764, 0.1223919615149498, -0.4381549060344696, 0.3445003926753998, -0.9229248762130737, 0.6574997901916504, 0.4450533092021942, 0.6518786549568176, -0.45679882168769836, ...
def send ( self, command, text = true ) : if text : self. control _ socket. sendall ( command. encode ( encoding ) ) else : self. control _ socket. sendall ( command ) return self. get _ reply ( )
[ -0.3115132749080658, 0.9254546761512756, 0.47765105962753296, 0.030579525977373123, -0.17327657341957092, -0.04978228360414505, -1.191714882850647, -0.5554599165916443, 0.7368418574333191, 0.5888423323631287, -0.4161228537559509, 0.47486892342567444, -1.6480337381362915, 0.3181290626525879...
def test _ model _ can _ create _ a _ user ( self ) : old _ count = user. objects. count ( ) self. user. save ( ) new _ count = user. objects. count ( ) self. assertnotequal ( old _ count, new _ count )
[ -0.1567779779434204, 0.39871183037757874, 0.2684910297393799, 1.2546870708465576, 0.6626878976821899, 1.5607364177703857, 1.2449997663497925, -0.017060769721865654, -0.8670571446418762, -0.6963358521461487, -1.8389700651168823, -1.3541538715362549, 0.08437184244394302, 0.746970534324646, ...
def voi _ load ( self, download = true ) : self. voi _ df = self. load _ dataset ('voi ', download = download )
[ 0.36695507168769836, 0.11781394481658936, 0.2968538701534271, 0.4886614680290222, -0.47196394205093384, -0.16918854415416718, -0.9070327281951904, 0.5522916913032532, -0.38748252391815186, 0.28816521167755127, 0.17472754418849945, 0.27336618304252625, -0.36251991987228394, -0.5483271479606...
def get _ af _ posterior ( ) : print'training model and generate posterior for each atlas...'# - - directory config db _ dir = r'/ nfs / t2 / atlas / database'base _ dir = r'/ nfs / h1 / workingshop / huanglijie / autoroi'doc _ dir = os. path. join ( base _ dir,'doc') data _ dir = os. path. join ( base _ dir,'ma _ 202 ...
[ -0.544938862323761, -0.5220566987991333, 0.7823735475540161, 0.5814054608345032, 0.39605003595352173, 0.009479450061917305, 0.38037601113319397, 0.4896894693374634, -0.5294965505599976, -0.3186325132846832, -0.009638319723308086, -0.3430483043193817, 0.651212751865387, 0.7233823537826538, ...
def _ _ init _ _ ( self ) : # meant to be overridden by subclasses. return ( none )
[ 0.1325734257698059, -0.649996280670166, 0.39720168709754944, -0.08919913321733475, 0.15021029114723206, -0.3034704327583313, -0.04016993194818497, -0.33365175127983093, 0.796360433101654, -1.7136304378509521, -1.2021095752716064, -0.22599446773529053, -0.36585116386413574, 0.21664418280124...
def setup ( self ) : self. client = apiclient ( ) self. user _ data = {'email':'user @ test. com ','password':'test ','profile': {'gender':'m ','birthday':'1992 - 01 - 01'} } self. response = self. client. post ( reverse ('create'), self. user _ data, format = " json " )
[ -0.16795223951339722, 0.03510039672255516, 0.5992011427879333, 0.2343098223209381, 0.9779871702194214, 0.9612096548080444, 0.08512000739574432, -0.2583860158920288, -0.4511477053165436, -0.411510705947876, -1.2661805152893066, 0.12560544908046722, -0.24759826064109802, 0.12661683559417725,...
def get _ account _ history ( self, accountid, startat, endat, pagesize = 100, currentpage = 1 ) : return self. trading _ api _ request ('get ','/ api / v1 / accounts / { } / ledgers? startat = { } & endat = { } & pagesize = { } & currentpage = { } '. format ( accountid, startat, endat, pagesize, currentpage ) )
[ -0.4013805389404297, 0.24195289611816406, 0.5975175499916077, -0.21332822740077972, 0.272520512342453, 0.0806112289428711, -0.20997866988182068, -0.8348742723464966, 0.2062130719423294, 0.04619057476520538, 0.19935928285121918, 2.2823026180267334, 0.37697428464889526, 0.262981116771698, ...
def test _ atomic _ any _ uri _ pattern _ nistxml _ sv _ iv _ atomic _ any _ uri _ pattern _ 1 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - pattern - 1. xsd ", instance = " nistdata / atomic / anyu...
[ -0.35926803946495056, -0.4642274081707001, 0.5503124594688416, 1.2912201881408691, -0.2503845989704132, -0.021267326548695564, 0.20567920804023743, 0.17055422067642212, -0.2950432002544403, 0.021058252081274986, 0.2616787552833557, -0.13821972906589508, -0.06332220882177353, 0.210366651415...
def testwritetofile ( self ) : conf = xml _ configuration. configuration. emptyconfiguration ( ) conf. writetofile ( self. _ test _ filename ) with open ( self. _ test _ filename,'r') as f : text = f. read ( ) self. assertequal ( conf. toprettyxml ( ), text ) os. remove ( self. _ test _ filename )
[ -0.06642477959394455, -0.23249641060829163, 0.37275558710098267, -0.22374394536018372, 1.262948989868164, 0.08810202777385712, 0.6325927972793579, 0.8860618472099304, -0.6707414984703064, -0.384829044342041, -0.5048428773880005, -0.8872137069702148, 0.2579299509525299, -0.3702820837497711,...
def findgene ( self, s _ signal ) : if ( self. isdna ( ) = = true ) : # make sure it is dna so we find the pieces of gene mygene = [ ] stop _ signal = s _ signal dnastring = self. str while ( dnastring. find ( stop _ signal )! = - 1 ) : gene _ location = dnastring. find ( stop _ signal ) if ( gene _ location > 0 ) : # ...
[ 0.39206361770629883, -0.6176223158836365, 0.8367324471473694, 0.5226895213127136, -0.4525272250175476, -0.4894883930683136, -0.857549786567688, 0.3282231092453003, -0.1402953416109085, 0.24055972695350647, -0.6132677793502808, 0.15099649131298065, -0.9983784556388855, 0.8318450450897217, ...
def concatenate _ encodings ( self, branch _ list ) : encoding = [ ] for branch in branch _ list : new _ encoding = self. branch _ encoding ( branch ) if len ( encoding ) > 0 and encoding [ - 1 ]! = new _ encoding [ 0 ] : raise valueerror ( " the specified branches cannot be concatenated : the endpoint of a branch is n...
[ -0.14425812661647797, 0.08541516959667206, 0.5352882146835327, 1.7446138858795166, 0.4218243360519409, 0.32853442430496216, -0.638885498046875, -1.0206485986709595, -0.05841866880655289, 0.6235769987106323, -0.05268258973956108, -0.5014284253120422, -1.092069149017334, 0.6251068115234375, ...
def test _ atomic _ base64 _ binary _ pattern _ 3 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ pattern _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - pattern - 4. xsd ", instance ...
[ -0.3261292278766632, -0.09291780740022659, 0.5068643689155579, 1.4640363454818726, 0.197389155626297, 0.37655550241470337, 0.365970253944397, -0.04629902169108391, -0.03891480714082718, 0.6532299518585205, -0.2722721993923187, -0.13801594078540802, -0.6281492710113525, -0.3952743709087372,...
def _ _ init _ _ ( self, dictionary ) : self. abbrs = { } self. dictionary = dictionary for word in dictionary : abbr = self. getabbr ( word ) if abbr not in self. abbrs : self. abbrs [ abbr ] = 1 else : self. abbrs [ abbr ] + = 1
[ -0.0180189311504364, -0.21152973175048828, 0.6474207043647766, -0.9743304252624512, -0.5437324643135071, 0.7955724000930786, 0.1319626271724701, 0.017128072679042816, 0.9784514307975769, 0.39744582772254944, 0.15680000185966492, -0.24960337579250336, 0.7503668665885925, 1.722362756729126, ...
def settable ( self ) : self. descriptions = { } self. description _ buttons = { } self. previous _ buttons = { } self. next _ buttons = { } self. movie _ genres = [ [ ], [ ], [ ], [ ], [ ] ] self. genre _ index = [ ]
[ -0.3822822570800781, 0.45610377192497253, 0.308144748210907, -0.2305240035057068, 0.29573333263397217, -0.15486757457256317, -0.0688314437866211, -0.32691067457199097, -1.3712364435195923, -0.12561218440532684, -0.9471032619476318, 1.0495765209197998, -0.32503557205200195, 1.05287098884582...
def log _ completion ( self, record ) : xstr = np. array _ str ( record. params [ 0 ], max _ line _ width = np. inf, precision = 5, suppress _ small = true ) fstr = np. array _ str ( record. value, max _ line _ width = np. inf, precision = 5, suppress _ small = true ) if record. feasible : logger. info ( " { } { } @ { ...
[ 0.37175512313842773, -0.7692723274230957, 0.6716676354408264, -0.682636022567749, -0.5842581391334534, 0.13242913782596588, -0.5437977313995361, 0.4222646951675415, -0.8361315727233887, 0.7295019626617432, -0.12263209372758865, 0.34883156418800354, 0.8585575819015503, 0.9164299964904785, ...
def vmap ( k, diag = false ) : if diag : # k ( params, x ) return jax. vmap ( lambda params, x : k ( params, x, x ), ( none, 0 ) ) else : # k ( params, x1, x2 ) inside = jax. vmap ( lambda params, x1, x2 : k ( params, x1, x2 ), ( none, none, 0 ) ) return jax. vmap ( lambda params, x1, x2 : inside ( params, x1, x2 ), ( ...
[ -0.07813838869333267, 0.11031098663806915, 0.5771074295043945, -0.34474948048591614, -0.6358725428581238, -0.5983405709266663, -0.3918805420398712, -0.0036289796698838472, 0.4701811373233795, 0.7528877854347229, 0.012589660473167896, -0.38044875860214233, 0.8964132070541382, -0.44153136014...
def check _ queue _ example ( ) : output = check50. run ( ". / queue _ example " ). stdout ( ) soln = check50. run ( ". / queue _ example _ soln " ). stdout ( ) if output! = soln : raise check50. failure ( " your output did not match the solution output. \ n \ nexpected : \ n { } \ n \ nyour output : \ n { } \ n \ n "....
[ 1.0621159076690674, -1.0993729829788208, 0.36480870842933655, 1.0606051683425903, 0.04858426749706268, 0.04771866276860237, 0.179677814245224, 0.09533508867025375, 0.10104704648256302, -0.1303873509168625, -0.11078038066625595, 0.5187103152275085, 0.30579325556755066, 0.5042831897735596, ...
async def bind ( self, parent = none ) : async with self. _ lock : if self. progress > = progress. bound : return try : self. frontend. features. eval ( update = false ) except exception as e : logger. critical ( f'something went wrong binding { self. frontend } : { e }') raise self. boundname = self. frontend. boundna...
[ -0.5207353830337524, -0.7934775352478027, 0.8558634519577026, 0.000863555702380836, 0.0059952265582978725, 0.20668289065361023, 0.5209359526634216, -0.006735599134117365, -0.7534249424934387, -0.5013428926467896, 0.34327250719070435, 0.34011372923851013, 0.009227825328707695, 1.57469236850...
def printofile ( self ) : dates = ['' ] lunches = ['lounas'] dinners = ['paivallinen'] for day in self. days : dates. append ( formatdatestring ( day. date ) ) lunches. append ( day. lunch. dish ) dinners. append ( day. dinner. dish ) csvlist = [ dates, lunches, dinners ] filename ='ruokalista { } _ { } - { } _ { }. cs...
[ -0.24306191504001617, -0.3787738084793091, 0.6353527307510376, -0.0233177300542593, 0.2822774648666382, 0.7033076882362366, 0.21863122284412384, 0.046615563333034515, -0.5448917746543884, -1.0437098741531372, 0.17975901067256927, 1.0865535736083984, 0.4832597076892853, 0.6737782955169678, ...
def _ b _ divmod _ ( b, p ) : rr = b. divmod ( p ) return rr. first, rr. second
[ -0.8803690075874329, 0.319500207901001, 0.4086730480194092, 0.3792262673377991, 0.49801120162010193, 0.048631325364112854, -0.5298195481300354, 0.15598717331886292, -0.29373669624328613, 0.43965619802474976, -0.026014670729637146, 0.4263804852962494, -0.9943205714225769, -0.338791906833648...
def get _ fd _ lm ( template = none, * * kwargs ) : input _ params = props ( template, lm _ required _ args, * * kwargs ) # get required args amps, phis = lm _ amps _ phases ( * * input _ params ) mfinal = input _ params. pop ('mfinal') sfinal = input _ params. pop ('sfinal') l, m = input _ params. pop ('l'), input _ p...
[ -0.1503102332353592, 0.2969730496406555, 0.7540989518165588, -0.3657153844833374, -0.5282501578330994, -0.414432555437088, -0.2735786736011505, 0.05033966526389122, -0.43862149119377136, -1.052376389503479, 0.3289032578468323, -0.4758761525154114, 0.159011572599411, 0.823076069355011, 0....
def create _ from _ test _ function ( cls, module : moduletype, function : str ) - > " testitem " : test _ function = getattr ( module, function ) # python _ code = inspect. getsource ( test _ function ) return cls ( name = function, location = f " { module. _ _ name _ _ } : : { function } ", test _ function = test _ f...
[ 0.5655743479728699, -0.8453683257102966, 0.2816332280635834, -0.05122622102499008, 0.19419556856155396, 0.22647398710250854, 0.13031665980815887, -0.1802075356245041, -0.11613123118877411, -0.07787808775901794, -0.0786341056227684, 0.9395967721939087, 0.11626765131950378, -0.26937246322631...
def register ( key ) : return namespacesloader. register ( key )
[ -0.7328372001647949, 0.921837329864502, 0.20393219590187073, -0.01974117010831833, -1.0053188800811768, -0.45273664593696594, -1.7127631902694702, -1.123334527015686, 0.1622663140296936, 0.04739079624414444, -1.316138744354248, -0.18320316076278687, -0.3896661400794983, 1.5085238218307495,...
async def change _ presence _ before ( self ) : await self. bot. wait _ until _ ready ( )
[ -0.4426729083061218, -0.517059326171875, 0.5206975936889648, -0.031141232699155807, 0.3818615674972534, 0.5533880591392517, -0.7145193219184875, 1.1223115921020508, 0.03284650668501854, 0.5433834791183472, -0.5106121301651001, 0.934166431427002, -0.05401160195469856, 0.9379237294197083, ...
def main ( ) : print _ own _ info ( _ _ file _ _ ) # print spawn _ processes ( test _ function, [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ] ) # spawn _ processes ( translate _ words, collection ( ). get _ words ( ) ) " " " print _ line ( ) en _ to _ de _ dict _ test ( ) single _ document _ stats ( 42 ) print _ line ( ) " " " # s...
[ 0.717932939529419, 0.4178962707519531, 0.7212575674057007, 0.30497685074806213, 0.9695611000061035, 0.47033199667930603, 0.9711902737617493, -0.11407622694969177, -0.6240912675857544, -0.5171598792076111, 0.009908459149301052, 0.40461090207099915, 0.14988963305950165, -0.30670660734176636,...
def show _ answer ( ans, s, guess ) : for i in range ( len ( ans ) ) : if ans [ i ] = = guess : s = s [ : i ] + guess + s [ i + 1 : ] return s
[ 0.2846791446208954, -0.3566280007362366, 0.5223838090896606, 0.1456167995929718, -1.0491995811462402, -0.2218017876148224, 0.6311716437339783, 0.392577201128006, 0.8139135837554932, 1.393163800239563, 0.3685438930988312, 1.2707273960113525, -0.11763709038496017, -0.9714508056640625, -0.0...
def test _ atomic _ qname _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ qname _ min _ length _ 2 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - minlength - 2. xsd ", instance = " nistdata / atomic ...
[ 0.2340449094772339, -0.6968724131584167, 0.4856571555137634, -0.05711852386593819, -0.506051242351532, 0.3311459422111511, -0.7162889242172241, -0.8097662925720215, 0.5171107649803162, 0.05956895649433136, -0.4857270121574402, 0.2014315277338028, -0.20670700073242188, -0.1405978947877884, ...
def data _ year ( self ) : return self. _ _ records. data _ year
[ 0.4824209213256836, -0.21384546160697937, 0.33575642108917236, -0.8647779822349548, -0.07355474680662155, 1.373396873474121, -0.14511588215827942, 0.020061152055859566, -0.07299666106700897, -0.5063367486000061, -0.5002707242965698, 1.3207128047943115, 0.3893519937992096, -0.54211479425430...
def prepare _ sequences _ single ( notes, note _ to _ int, n _ vocab ) : sequence _ length = 100 # # get all pitch names # pitchnames = sorted ( set ( item for item in notes ) ) # # create a dictionary to map pitches to integers # note _ to _ int = dict ( ( note, number ) for number, # note in enumerate ( pitchnames ) ...
[ -0.8492920398712158, 0.15568846464157104, 0.7509828209877014, -0.19519387185573578, 0.057513508945703506, -0.5255428552627563, 0.538592517375946, -0.03544659912586212, 0.5734448432922363, 0.36531171202659607, -0.8826019763946533, -0.800312876701355, -0.1357083022594452, 0.01697865687310695...
def read _ image ( file _ name ) : with open ( file _ name,'rb') as f : buf = f. read ( ) header, width, height, max _ val = re. search ( b " ( ^ p5 \ s (? : \ s * #. * [ \ r \ n ] ) * ( \ d + ) \ s (? : \ s * #. * [ \ r \ n ] ) * " b " ( \ d + ) \ s (? : \ s * #. * [ \ r \ n ] ) * " b " ( \ d + ) \ s (? : \ s * #. * [...
[ -0.4627372920513153, -0.6430159211158752, 0.7928218245506287, -0.3532262146472931, -0.7037124037742615, 0.15641415119171143, 0.594464898109436, 0.586417555809021, -0.4740089178085327, 0.4079143702983856, 0.10395939648151398, 0.42738065123558044, 0.12107475101947784, -0.5129830837249756, ...
def get _ measurement _ windows ( self, parameters : dict [ str, parameter ] = none ) - > list [ measurementwindow ] : raise notimplementederror ( )
[ -0.4771730303764343, 0.04782472178339958, 0.5558398365974426, 1.387274146080017, 0.22160343825817108, 0.5936468839645386, 0.19259601831436157, 0.23046435415744781, 0.25105634331703186, 0.36332258582115173, -0.11615423113107681, 0.8021321296691895, -0.5160456299781799, 2.000025749206543, ...
def test _ list _ integer _ length _ nistxml _ sv _ iv _ list _ integer _ length _ 1 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - length - 1. xsd ", instance = " nistdata / list / integer / schema + ...
[ -0.45920330286026, 0.1850200742483139, 0.37288230657577515, 0.42560526728630066, -0.1271943747997284, 0.33215615153312683, -0.3225291967391968, 0.6305832266807556, 1.5267318487167358, 0.9835377335548401, -0.8397068381309509, -0.5485184192657471, -0.5830751061439514, 0.7172025442123413, -...
def _ pattern _ json ( self, pattern _ option _ dict ) : if ('freq _ type'not in pattern _ option _ dict ) or ( pattern _ option _ dict ['freq _ type'] = = self. _ pattern ['freq _ type'] ) : for key, value in pattern _ option _ dict. items ( ) : if key in ('active _ start _ date ','active _ end _ date') : self. _ patt...
[ -0.8588598966598511, -0.28365591168403625, 0.8474740982055664, -0.9621843099594116, -0.04338882863521576, -0.4373408257961273, 0.7164753079414368, -0.2970088720321655, 0.1524992734193802, 0.9324565529823303, -0.2898169457912445, 0.26910269260406494, 0.3784194588661194, 0.1949148178100586, ...
def execute ( self, conn, join _ table = none ) : self. validate ( conn ) create _ schema = self. get _ create _ schema ( ) creates = self. get _ creates ( ) drops = self. get _ drops ( ) indexes = self. get _ indexes ( ) inserts = self. get _ inserts ( ) drop = self. get _ drop ( ) create = self. get _ create ( join _...
[ -0.2004067748785019, 0.6694132089614868, 0.9291877746582031, 0.6596277952194214, 0.957233190536499, -0.09956363588571548, 0.271513968706131, 0.29118162393569946, -0.4568518102169037, 0.5732925534248352, 0.030941050499677658, -0.7541627287864685, -0.07280243933200836, 0.5567309856414795, ...
def get _ path ( self ) - > str : return f " @ { self. uuid } # { self. name } "
[ -0.3081824779510498, -1.0865172147750854, 0.2855289578437805, 0.12801916897296906, -0.41171976923942566, 0.9711907505989075, 0.15762004256248474, 0.40069910883903503, -0.31276074051856995, 0.14834412932395935, 0.4441397488117218, -0.2310599982738495, -0.06357867270708084, -0.75647300481796...
def annotations _ from _ events ( events, sfreq, event _ desc = none, first _ samp = 0, orig _ time = none, verbose = none, ) : event _ desc = _ check _ event _ description ( event _ desc, events ) event _ sel, event _ desc _ = _ select _ events _ based _ on _ id ( events, event _ desc ) events _ sel = events [ event _...
[ 0.6581047773361206, -0.14550019800662994, 0.5358935594558716, 0.7259922623634338, 0.01826230064034462, -0.4074777364730835, 0.3155408501625061, 0.11439886689186096, 0.2731042206287384, 0.7338370680809021, -0.4003458619117737, 0.5382850170135498, 0.6690474152565002, 0.4110718369483948, 0....
def new ( * args, * * kargs ) : obj = itksubtractconstantfromimagefilterid2did2. _ _ new _ orig _ _ ( ) import itktemplate itktemplate. new ( obj, * args, * * kargs ) return obj
[ 0.17784221470355988, -1.55875825881958, 0.444080650806427, -1.1615362167358398, -1.257001280784607, 0.2862163186073303, 0.07881306856870651, -0.026572583243250847, -0.8802884221076965, -0.051558662205934525, -1.2648391723632812, 0.7674150466918945, 0.6231334805488586, 0.3704811632633209, ...
def testshortcitesearch ( self ) : form = self. form form. enter _ value ('accids ','j : 237402') form. click _ search ( ) # finds the results table and iterates through the table table _ element = self. driver. find _ element ( by. id, " resultstable " ) table = table ( table _ element ) # finds the short citation col...
[ 1.2130317687988281, -0.16403093934059143, 0.5531926155090332, 0.43288761377334595, 0.6705020070075989, -0.13929453492164612, 1.1486525535583496, -0.10906372219324112, 0.07241897284984589, -0.7492332458496094, 0.18959924578666687, 0.10608744621276855, -0.23137852549552917, -0.19247515499591...
def get _ active _ global _ version _ manager ( _ cls = true ) : return templateversionmanager. get _ active _ global _ version _ manager ( _ cls )
[ -0.7713579535484314, -0.7064855694770813, 0.5527864694595337, 0.6392161846160889, -0.2892097532749176, 0.7863962054252625, 0.6324551701545715, -0.10546255111694336, 0.02333434857428074, -0.01593318022787571, -0.5866951942443848, 0.9156618714332581, -0.47116318345069885, 0.3427886962890625,...
def mag ( self ) : magnitude = ( self. x * * 2 + self. y * * 2 ) * * 0. 5 return magnitude
[ -0.5775582194328308, -1.0383923053741455, 0.42911583185195923, -0.4628143012523651, 0.08475219458341599, 0.6226872205734253, -0.5441687703132629, -0.3428305387496948, -0.36806291341781616, -0.5934417843818665, -0.1259724199771881, -0.06589282304048538, 0.08055911213159561, -0.1839852631092...
def parse _ both _ eyes _ rgb _ landmark ( im, face _ model, camera _ matrix, headpose _ hr, headpose _ ht, eye _ image _ width = 60, eye _ image _ height = 36 ) : im _ height, im _ width, _ = im. shape h _ r, _ = cv2. rodrigues ( headpose _ hr ) fc = np. dot ( h _ r, face _ model ) fc = fc + np. reshape ( headpose _ h...
[ -0.21722275018692017, -0.26426634192466736, 0.8860034346580505, -0.04685018211603165, -0.5121351480484009, 0.1851562112569809, -0.173188254237175, -0.15569326281547546, -0.7865129113197327, 1.425791621208191, -0.7750900387763977, -0.12211816757917404, 0.04291475936770439, 0.787302553653717...
def test _ get _ github _ emails ( self ) : pass
[ 0.6021105647087097, 0.7064992189407349, 0.11608315259218216, 1.073880672454834, 0.5939857959747314, 0.10255850851535797, 0.6851504445075989, 0.4710090756416321, -0.4349113404750824, -0.5435217022895813, -0.08021976053714752, 1.2065694332122803, -1.2360422611236572, -0.7138040065765381, -...
def signup _ new _ player ( name, password ) : new _ player = player ( name, password ) db. session. add ( new _ player ) db. session. commit ( ) return new _ player
[ -1.0046087503433228, -0.9578897953033447, 0.7609075903892517, 0.254372775554657, -0.01505129411816597, 0.15449672937393188, -0.632623553276062, 0.0845271423459053, 0.14173588156700134, 0.9809612035751343, -0.9749755263328552, -0.9479293823242188, -1.1098061800003052, -0.32115551829338074, ...
def test _ example _ input _ one _ delete _ row _ backend _ validation ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ one ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. table. input _ status _ toggle ( " dummy _ input ...
[ 0.297173410654068, 0.984289824962616, 0.5668057203292847, 0.919163167476654, 0.5834585428237915, 0.7212830185890198, 0.06937773525714874, 0.8412038683891296, 0.38695237040519714, 0.632957935333252, 0.17846259474754333, -0.12602342665195465, -0.07099530845880508, 0.7651426196098328, 0.387...
def friends _ per _ favourite ( x ) : if x ['favourites _ count'] = = 0 : return 0 else : return x ['friends _ count'] / x ['favourites _ count']
[ -0.460577130317688, 0.2852856516838074, 0.26974233984947205, -0.01903866045176983, 0.4843769967556, 0.3403777778148651, -0.7607277631759644, -0.29018688201904297, -0.3943421244621277, 0.6347573399543762, 0.48791784048080444, -0.7236584424972534, 0.4568336606025696, -0.4279666841030121, 1...
def parse ( self, query _ str ) : parsed = self. _ grammar. parsestring ( query _ str ) log. info ( parsed. dump ( ) ) ancestor = none if parsed : log. info ( parsed [ " main " ] [ 0 ] ) main = self. get _ taxon _ query _ args ( parsed [ " main " ] [ 0 ] ) try : log. info ( parsed [ " ancestor " ] [ 0 ] ) ancestor = se...
[ 0.3520093560218811, -0.4819319248199463, 0.4399982690811157, 0.07062777131795883, -0.7570483684539795, 0.22337643802165985, -0.13790394365787506, 0.03820933774113655, -0.24534659087657928, -0.5342186689376831, 0.9907780289649963, -0.11720463633537292, -0.21762222051620483, -0.0481673479080...
def infer _ protein ( dataset, cell _ type, protein _ names ) : if'allsocs'in protein _ names : all _ socs _ names = ['shp1 ','shp2 ','pias1 ','pias2 ','pias3 ','pias4'] socs _ transcripts = np. sum ( dataset. loc [ dataset ['cell _ type'] = = cell _ type ] [ all _ socs _ names ]. values. flatten ( ) ) transcripts = da...
[ 0.0758570209145546, -0.1079879105091095, 0.726736843585968, -0.4077143371105194, -0.741985559463501, -0.395942747592926, -1.1944528818130493, 0.41046395897865295, -0.16007493436336517, 1.1018768548965454, -0.4153067469596863, 0.2026066780090332, 0.3946492373943329, 0.42496466636657715, 0...
def display _ equation ( self ) : return'\ n '. join ( [ r'\ begin { equation } ', self. latex. get ( ), r'\ end { equation }'] )
[ 0.7402012348175049, -1.4535174369812012, 0.7186492681503296, -0.4210629463195801, -0.6117992997169495, 0.6456173658370972, -0.16045421361923218, -0.6104154586791992, -0.46029794216156006, 0.66141676902771, 1.1641112565994263, 0.6065690517425537, -0.09656351059675217, -0.3113496005535126, ...
def init _ weigth ( shape, mode = " r " ) : if ( mode = = " z " ) : return theano. shared ( floatx ( np. zeros ( shape ) ) ) elif ( mode = = " o " ) : return theano. shared ( floatx ( np. ones ( shape ) ) ) elif ( mode = = " u " ) : return theano. shared ( floatx ( np. random. uniform ( - np. sqrt ( 1. / shape [ 1 ] ),...
[ 0.2434530109167099, -0.44122087955474854, 0.7785243988037109, -0.1309501826763153, -0.4975815713405609, 0.6534956097602844, 0.6801784634590149, -0.11496343463659286, -0.13063181936740875, 0.3440631926059723, -0.5290297269821167, 0.4187019467353821, -0.2878569960594177, 0.9176892638206482, ...
def _ _ init _ _ ( self, * * kwargs ) : self. featurematches = kwargs self. _ fm = featurematcher ( * * kwargs )
[ 0.1545134037733078, -0.6576970219612122, 0.6257728934288025, 1.210065484046936, -0.34496214985847473, -0.10114958137273788, 0.1359148919582367, 0.8405809998512268, -0.19158951938152313, -1.7206321954727173, -0.4769112169742584, -0.40856537222862244, -0.45297008752822876, 1.4667710065841675...
def rotate _ local ( self, rot ) : # todo : complete parameter documentation self. local _ rotation = self. local _ rotation * _ convert2tquat ( rot )
[ -0.22484321892261505, -0.32412078976631165, 0.07774689048528671, -0.8977605700492859, 0.11692593991756439, -0.809283971786499, 1.0849140882492065, -0.4831826090812683, -0.04396693408489227, -0.5155227184295654, -0.8535942435264587, 0.15565425157546997, -0.5603046417236328, -0.6404757499694...
def get _ workflow _ image ( workflow, img _ num ) : # scale image if requested width = request. args. get ('width ', none ) try : img _ path = workflow. images [ img _ num ] except indexerror : abort ( 404 ) if width : return scale _ image ( unicode ( img _ path ), width = int ( width ) ) else : return send _ file ( u...
[ -1.346856951713562, 0.1442849040031433, 0.61655193567276, -0.09168041497468948, 0.23559515178203583, -0.7156454920768738, 0.13993988931179047, -0.3432236909866333, 0.11920631676912308, 0.34971898794174194, 1.2112478017807007, -0.40408700704574585, -0.3235335946083069, 0.5216772556304932, ...
def check _ input ( self ) : self. check _ common ( ) if hasattr ( self. data, " eval _ ineq _ constraints " ) : raise valueerror ( " optimization problem has constraints, \ n " " syncstrategynoconstraints can't handle constraints " ) if hasattr ( self. data, " eval _ eq _ constraints " ) : raise valueerror ( " optimiz...
[ 0.1946319043636322, 0.40749767422676086, 0.550489068031311, 0.14862482249736786, 0.5022565126419067, 0.6860418319702148, 0.7391640543937683, -0.3430390954017639, -0.7084196209907532, 0.10736022889614105, 0.4034997224807739, -0.19476905465126038, -0.378493994474411, 0.4965755045413971, -0...
def w2v _ sim ( self, t1, t2 ) : return 0
[ -0.6966453194618225, 0.2925790548324585, 0.3038959801197052, 0.24359194934368134, -0.8428535461425781, 0.05380606651306152, -0.33803001046180725, -0.5934368371963501, -1.023813009262085, 1.333864688873291, -0.11050345003604889, 0.8374021053314209, 0.26684412360191345, 0.1896819919347763, ...
def deltan ( id1 : union [ str, int ], id2 : union [ str, int ], charge1 : int = 0, charge2 : int = 0, missingiszero : bool = true, ) - > float : session = get _ session ( ) atns = ids _ to _ attr ( [ id1, id2 ], attr = " atomic _ number " ) e1, e2 = [ session. query ( element ). filter ( element. atomic _ number = = a...
[ 0.22137175500392914, -0.35998955368995667, 0.8974568843841553, 0.4298146665096283, 0.32437559962272644, -0.572720468044281, -0.9547436833381653, 0.09966570883989334, -0.4888184070587158, 0.2194807529449463, -0.4943922460079193, 0.16993002593517303, 0.13673722743988037, -0.27651840448379517...
def count ( table : arrable ) : result = [ { " count " : len ( table. get _ rows ( ) ) } ] col _ name = [ " count " ] return arrable ( ). init _ from _ arrable ( col _ name, result )
[ 0.276037335395813, 0.3315507173538208, 0.4972634017467499, 0.9116199016571045, -0.363729864358902, -1.1136054992675781, -0.17717964947223663, -0.19277313351631165, -0.5419570207595825, 0.3878038227558136, -0.6890862584114075, -0.8847078680992126, 1.629093050956726, 0.09694173187017441, 0...
def fit ( self, x _ train, y _ train ) : # new lists used for when the there is a nested list new _ list _ x = [ ] new _ list _ y = [ ] # these will store true if there is a nested list passed through use _ new _ x = any ( isinstance ( i, list ) for i in x _ train ) use _ new _ y = any ( isinstance ( i, list ) for i in...
[ 0.09080290794372559, -0.22191570699214935, 0.7187192440032959, 0.3280431628227234, 0.32231518626213074, 0.2521663010120392, -0.3878435790538788, 0.9732272624969482, -0.6657178997993469, -0.6403648853302002, -0.14011836051940918, 0.9043676257133484, -0.40536606311798096, 0.6683073043823242,...
def test _ atomic _ qname _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ qname _ pattern _ 3 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - pattern - 3. xsd ", instance = " nistdata / atomic / qname / sc...
[ -0.0016348096542060375, -0.10285589098930359, 0.5752748250961304, 0.13422933220863342, -0.32521873712539673, 0.7716675400733948, -0.7213990688323975, -0.4353465735912323, 0.6677268743515015, 0.6648643612861633, -0.32279664278030396, -0.07207381725311279, 0.08182206004858017, -0.77704536914...
def enable ( ) - > dict : return { " method " : " inspector. enable ", " params " : { } }
[ -0.08518640697002411, -0.18722215294837952, 0.31534257531166077, -0.11617331951856613, 0.29160499572753906, -0.33085566759109497, 0.07603969424962997, 1.6836241483688354, -0.46378010511398315, 0.3014375865459442, -1.06682288646698, -0.18309229612350464, -0.7559496164321899, 0.1287154108285...
def dcg ( ranking, rank = 10 ) : return sum ( [ ( 2 * * ranking [ i ] - 1 ) / np. log2 ( i + 2 ) for i in range ( rank ) ] )
[ -0.7043737173080444, 1.2603808641433716, 0.4632244408130646, -0.2630285620689392, -0.6870651841163635, -0.730861246585846, -0.13368506729602814, 0.5208539366722107, -0.22832319140434265, 0.9695904850959778, -0.5888630151748657, 0.23399344086647034, -0.2626512348651886, 0.27768784761428833,...
def are _ checksums _ equal ( checksum _ a _ pyxb, checksum _ b _ pyxb ) : if checksum _ a _ pyxb. algorithm! = checksum _ b _ pyxb. algorithm : raise valueerror ( " cannot compare checksums calculated with different algorithms. "'a = " { } " b = " { } " '. format ( checksum _ a _ pyxb. algorithm, checksum _ b _ pyxb. ...
[ 1.2349823713302612, -0.39612311124801636, 0.6676222681999207, -0.2719458043575287, 1.0754828453063965, 0.7030841708183289, -0.5966788530349731, -0.8112598061561584, -0.01724216528236866, 0.25064554810523987, -0.5898319482803345, 0.26286107301712036, -0.11602380126714706, 0.4557211399078369...
async def create _ product _ async ( self, request : servicecatalog _ 20210901 _ models. createproductrequest, ) - > servicecatalog _ 20210901 _ models. createproductresponse : runtime = util _ models. runtimeoptions ( ) return await self. create _ product _ with _ options _ async ( request, runtime )
[ -1.5610010623931885, 0.6230365633964539, 0.34385815262794495, 0.33051830530166626, 0.8606515526771545, 0.5718746185302734, 0.05455489829182625, -1.822790503501892, 0.4146822988986969, -0.18684129416942596, 0.14496751129627228, 0.36584779620170593, -0.3605571389198303, 0.20251762866973877, ...
def close ( self ) : self. get _ as _ project ( ). delete ( clear _ managed _ datasets = true )
[ 0.36742204427719116, 0.6762911081314087, 0.3703557848930359, 0.05864974483847618, -0.3606376051902771, 1.253764033317566, -0.08251123875379562, -0.2650788426399231, 0.11323140561580658, -0.8866069912910461, 1.1602030992507935, 1.5591492652893066, -0.37433531880378723, 0.5234017372131348, ...
def stack _ pos _ neg ( pos _ imgs, neg _ imgs ) : pos _ imgs = torch. stack ( pos _ imgs ) neg _ imgs = torch. stack ( neg _ imgs ) imgs = torch. cat ( [ pos _ imgs, neg _ imgs ], 0 ) y = torch. zeros ( imgs. shape [ 0 ], dtype = torch. uint8 ) y [ : pos _ imgs. shape [ 0 ] ] = 1 return imgs, y
[ -0.9989844560623169, -0.41361692547798157, 0.7756679654121399, 0.37064579129219055, 0.7028096318244934, -0.3648131489753723, -0.7022647261619568, 0.8036002516746521, -0.18523536622524261, 1.2829442024230957, -0.11419141292572021, -0.15605983138084412, 0.23847736418247223, 0.236402466893196...
def translate ( self, value ) : is _ proper = self. _ check _ if _ already _ proper ( value ) if is _ proper : return value items = self. _ get _ matching _ items ( value ) if len ( items ) = = 1 : return items [ 0 ] else : raise ambiguityerror ( " can't decide which value is proper for value'{ } ', " " available choic...
[ -0.7798632383346558, 0.011400057934224606, 0.7797309756278992, -0.07321929186582565, 0.018224334344267845, 0.15720300376415253, -0.17396879196166992, 0.10433567315340042, 0.4918188154697418, 0.17864540219306946, 0.3297167718410492, 0.03833716735243797, 0.6109179258346558, -0.06032254546880...
def test _ inputs _ create _ new _ input _ list _ values ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) create _ new _ input _ list = [ " example input one ", " example input two " ] self. assert _ ut...
[ -0.5085925459861755, -0.1404663324356079, 0.4425985813140869, 1.0656280517578125, 1.1427364349365234, 0.6800684332847595, -0.2852596938610077, -0.1702934205532074, 0.20831307768821716, -0.2584959864616394, -0.47621357440948486, -0.455051988363266, 0.25108063220977783, 0.5878891348838806, ...
def _ _ init _ _ ( self, src _ ont, writer = none ) : self. ont = src _ ont if writer is none : self. writer = markdownwriter ( ) else : self. writer = writer
[ 0.358924925327301, -0.6867186427116394, 0.5539966821670532, 0.34397852420806885, -0.7808642983436584, -0.2801252603530884, -0.48255112767219543, 1.061186671257019, 0.1026487797498703, -0.6538597941398621, 0.36724206805229187, -0.6005527973175049, -0.1478254497051239, 0.7287107706069946, ...
def gathersheets ( dict _ data ) : keys = list ( dict _ data. keys ( ) ) data = dict _ data [ keys [ 0 ] ] for i in range ( 1, len ( keys ) ) : data = data. append ( dict _ data [ keys [ i ] ], ignore _ index = true ) return data
[ -0.31830376386642456, 0.21027874946594238, 0.4086882174015045, -0.9674871563911438, 0.048242438584566116, 1.099062442779541, -1.1829710006713867, -0.3366457223892212, -0.4100189805030823, -0.07976949214935303, 0.5620419383049011, -0.06692031770944595, 0.5438098907470703, 0.7036826610565186...
def bind _ awaitable ( function : callable [ [ _ firsttype ], awaitable [ _ updatedtype ] ], ) - > kinded [ callable [ [ kindn [ _ futurekind, _ firsttype, _ secondtype, _ thirdtype ] ], kindn [ _ futurekind, _ updatedtype, _ secondtype, _ thirdtype ], ] ] : @ kinded def factory ( container : kindn [ _ futurekind, _ fi...
[ -0.3501218855381012, 0.18002532422542572, 0.5302808880805969, 0.40419551730155945, -0.21030500531196594, -0.2564118206501007, -0.6449950933456421, -0.6474133729934692, -1.0337986946105957, 0.18275991082191467, 0.12422794848680496, 0.8076637387275696, 0.23606838285923004, -0.099091835319995...
def is _ on ( self ) - > bool : return self. _ controller. is _ car _ online ( vin = self. vin )
[ -0.22513341903686523, -1.288392424583435, 0.3760000467300415, 1.214444875717163, 0.49563899636268616, -0.6649434566497803, -1.5523788928985596, 1.001522183418274, -0.3295169770717621, 0.38024717569351196, -0.5842925906181335, 0.26983872056007385, -0.9717877507209778, -0.49574264883995056, ...
def _ random _ shoot _ bspline _ ( fun ) : xmn = fun. xmin ( ) xmx = fun. xmax ( ) ymx = max ( fun. bspline ( ). pars ( ) ) i = 0 while true : x = _ uniform _ ( xmn, xmx ) y = _ uniform _ ( 0, ymx ) v = fun ( x ) if v > = y : return x
[ -0.19549596309661865, 0.03959358111023903, 0.29086917638778687, 0.5659199953079224, -0.6440870761871338, 0.6686187982559204, -1.0006173849105835, -1.2538915872573853, 0.35728704929351807, 0.182856023311615, -0.12496162950992584, 0.752579391002655, 0.010967636480927467, -0.4550186097621918,...
def mock _ datetime ( year, month, day, hour, minute, second ) : # r0913 : too - many - arguments # pylint : disable = r0913 class mockdatetime ( datetime ) : " " " datetime used for moker. " " " _ mock _ year = year _ mock _ month = month _ mock _ day = day _ mock _ hour = hour _ mock _ minute = minute _ mock _ second...
[ -1.0750250816345215, 0.0759454146027565, 0.795261561870575, 0.41704627871513367, -0.10024651885032654, -0.09862527251243591, -0.4936072528362274, -0.5736352205276489, -0.791228175163269, 0.6431436538696289, -0.36768102645874023, -0.907530665397644, -0.16892418265342712, 0.3735389709472656,...
def _ _ init _ _ ( self, config, fname, dt, preload = true ) : self. config = config self. fname = fname self. dt = dt self. xvar = config. get ('profiles ','xvar') self. yvar = config. get ('profiles ','yvar') self. zvar = config. get ('profiles ','zvar') self. qcvar = config. get ('profiles ','qcvar') self. posqcvar ...
[ 0.23156103491783142, 0.3933177590370178, 0.8127111196517944, 0.40773409605026245, -0.00723306555300951, 0.0684460997581482, 0.01324572041630745, -0.396424800157547, -0.7079431414604187, -0.09679140895605087, -0.8013725280761719, -0.7414806485176086, 0.5648625493049622, -0.09826406091451645...
def create _ audio _ file ( message _ text, file _ name ) : if not os. path. exists ( f " { serving _ audio _ folder } / { file _ name }. wav " ) : name _ of _ file = f " { serving _ audio _ folder } / { file _ name } " def audio _ creation ( ) : tts = gtts ( message _ text, lang = gcloud _ tts _ language _ code ) tts....
[ 0.7956092357635498, -0.5114890933036804, 0.7002303600311279, 0.09127036482095718, 1.0291551351547241, 0.8965442180633545, 0.21012550592422485, -0.5306326150894165, -0.9459521174430847, 0.6613284945487976, 0.28636714816093445, 0.28168150782585144, -0.04825184494256973, 0.6425895094871521, ...
def title _ changed ( self, title ) : self. setwindowtitle ( title )
[ 0.6398607492446899, -0.6258491277694702, 0.0978543609380722, 0.4147644639015198, -0.39951738715171814, -0.12206671386957169, -0.928727924823761, -0.22995348274707794, 0.15962307155132294, 0.5600187182426453, -0.6079881191253662, 0.6044074296951294, -0.268852561712265, 0.17526736855506897, ...
def mp _ s3 _ tmpdir ( minio _ testdata _ bucket ) : tempdir = minio _ testdata _ bucket / " tmp " / uuid. uuid4 ( ). hex def _ cleanup ( ) : tempdir. rm ( recursive = true, ignore _ errors = true ) _ cleanup ( ) yield tempdir _ cleanup ( )
[ 0.34153062105178833, -0.41909682750701904, 0.4458235800266266, -0.9618567824363708, -0.5257706642150879, 0.47558358311653137, 0.4965883791446686, 0.2553006410598755, 0.9425660967826843, -0.3726103603839874, -0.45830318331718445, -0.09961993992328644, -0.19893641769886017, -0.18459041416645...
def test _ example _ input _ two _ select _ value _ example _ radio ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input two " ) input _ page. en...
[ -0.19325634837150574, -0.06151274964213371, 0.3360963463783264, -0.03793520852923393, 0.4557879567146301, 0.6032334566116333, -0.42998430132865906, -1.0329415798187256, -0.47463831305503845, -0.20139865577220917, -0.4326222538948059, 0.37753424048423767, 0.46967583894729614, -0.05276403948...
def delete _ flow ( name ) : if name = = " all " : cons _ out = anturlar. fos _ cmd ( " echo y | flow - - delete all " ) else : cons _ out = anturlar. fos _ cmd ( " flow - - delete % s " % name )
[ 0.4710325002670288, -0.6423107981681824, 0.6148772835731506, 0.9138649702072144, -0.1904117614030838, 0.07548600435256958, -0.18414552509784698, -0.25856080651283264, 0.8222224712371826, -0.7759608626365662, -0.5437809824943542, 0.4224895238876343, 0.3170219957828522, 0.8617416024208069, ...
def initialize ( cls : type [ spaczzattrs ] ) - > none : if not cls. _ initialized : try : token. set _ extension ( " spaczz _ token ", default = false ) token. set _ extension ( " spaczz _ type ", default = none ) token. set _ extension ( " spaczz _ ratio ", default = none ) token. set _ extension ( " spaczz _ counts ...
[ 0.41441094875335693, 0.2214667946100235, 0.4903813898563385, 0.049065906554460526, -0.10758160054683685, -0.43076008558273315, 0.822884738445282, -0.07162059843540192, 0.8894831538200378, -0.24589230120182037, -1.4520562887191772, 0.35266387462615967, 0.5983074903488159, 0.9516583681106567...