text
stringlengths
25
2.19k
embedding
listlengths
768
768
def visit ( i, j ) :'raumproportionen auslesen'room = rows [ j ] [ i ]'wenn nachbar schon bekannt wird raum hinzugefugt'visited. add ( room )'nachbar nach zufallsprinzip festlegen'neighbors = self. rand. subset ( [ ( 0, 1 ), ( 0, - 1 ), ( - 1, 0 ), ( 1, 0 ) ], 4 )'fur jeden moglichen nachbarn ausfuhren'for dj, di in ne...
[ -0.46910741925239563, 0.719463586807251, 0.5565636157989502, 0.7852533459663391, 0.016883470118045807, 0.06380586326122284, 1.319114089012146, -0.87032550573349, -0.22163447737693787, 0.9470367431640625, 0.22317315638065338, -0.6637352705001831, -0.350136935710907, 1.025346040725708, 0.0...
def unregister _ system _ shared _ memory ( self, name : str =..., headers : dict [ str, t. any ] =... ) - > none :
[ -0.27859604358673096, 0.11840835213661194, 0.5526440739631653, 0.1851915568113327, -0.5632691383361816, -0.5699217915534973, 0.10915146768093109, 1.079761266708374, 0.15761630237102509, -0.401216983795166, -1.386570692062378, 0.2541113793849945, -1.0044447183609009, 0.04666447639465332, ...
def tbstim ( ) : # reset the block before processing yield pulse _ reset ( reset, clock ) # enable writing in the quantizer ram quant _ config. qwren. next = true yield clock. posedge # filling the quantizer ram with quantizer rom for i in range ( max _ addr _ quant ) : quant _ config. qdata. next = quant _ rom [ i ] q...
[ 0.8583133816719055, 0.1524885892868042, 0.6940180063247681, -0.326306015253067, 0.2615664005279541, -0.29744234681129456, 0.9295457601547241, -0.8293946981430054, 0.5622645020484924, -0.18399880826473236, -0.5101589560508728, 0.8346743583679199, -0.33434027433395386, 0.020296942442655563, ...
def _ post _ concat _ forward _ fn ( cls, cell, inputs : torch. tensor, state : torch. tensor, context : torch. tensor ) : out = cell ( inputs, state ) out = torch. cat ( [ out, context ], dim = 1 ) return out
[ 0.4001363515853882, 0.1756526529788971, 0.32484227418899536, 0.1944304257631302, -0.5003899931907654, -0.35678741335868835, -0.2611907124519348, 0.06572046875953674, -0.33125022053718567, -0.29659801721572876, 1.1267603635787964, -0.35606637597084045, 0.7826142907142639, -0.424514651298522...
def get _ random _ point _ inside _ simplex ( dimension ) : exponencial = np. random. exponential ( size = dimension ) return normalize _ vector ( exponencial )
[ 0.09629888087511063, -0.04708221182227135, 0.4237324297428131, 0.2617160379886627, -1.2798928022384644, 0.78648442029953, -0.752656877040863, 1.029442548751831, 0.8748357892036438, -0.1843458116054535, 0.1783178597688675, 1.2052786350250244, -1.2711782455444336, -1.4892853498458862, -0.7...
def debug _ run _ inference _ with _ training _ data ( use _ image = true ) : # b064 - do the same inference with the training data to check results print ( " starting inference with trainingdata.... " ) sample _ set _ of _ 3 = [ 4, 6, 8 ] indices _ to _ see = random. randint ( low = 0, high = len ( train _ raw _ q ), ...
[ -0.09669482707977295, 0.02941819466650486, 0.8730721473693848, -0.09493664652109146, -0.05904364213347435, 0.31473568081855774, 0.5985917448997498, -0.23837491869926453, -0.0974518284201622, 0.20976805686950684, 0.09624901413917542, 0.022365188226103783, 0.21373958885669708, 0.131543293595...
def get _ peptides _ from _ experiment ( self, experiment _ id : str ) - > list [ str ] : if experiment _ id not in set ( list ( self. _ database. iloc [ :, 0 ] ) ) : raise valueerror ( f'the provided id is not in the database') return self. _ database. loc [ self. _ database. iloc [ :, 0 ] = = experiment _ id ]. iloc ...
[ -0.6162315011024475, 0.5231737494468689, 0.30498170852661133, 0.18660250306129456, 0.473897248506546, -0.28962159156799316, -1.041299819946289, 0.4650959372520447, 0.5133318305015564, 1.6097725629806519, 0.3652566373348236, 0.8150976300239563, -0.3600926399230957, -0.493135005235672, -0....
def process _ cdip _ station ( station _ folder, out _ folder, nproc = none ) : station _ folder = os. path. normpath ( station _ folder ) assert os. path. isdir ( station _ folder ) station _ id = os. path. basename ( station _ folder ) glob _ pattern = os. path. join ( station _ folder, f'{ station _ id } _ d??. nc')...
[ -0.1463022381067276, 0.01791205257177353, 0.8882582783699036, -0.4720157980918884, -0.22144930064678192, -0.2966794967651367, 1.284098744392395, -0.20433896780014038, -0.28667429089546204, -0.001358308712951839, -0.33522722125053406, -1.0093944072723389, -0.3333432674407959, 0.268352061510...
def updated _ date ( self ) : return self. _ updated _ date
[ 0.7520781755447388, -0.7647722959518433, 0.06243234872817993, 0.7983130216598511, -0.38291093707084656, 1.2790186405181885, -0.11316973716020584, 0.5914991497993469, 0.5255590081214905, -0.7229667901992798, -0.470816045999527, 0.9456080794334412, 0.47127601504325867, -0.4973115622997284, ...
def flip ( stringblock ) : lines = [ list ( row ) for row in stringblock. split ( " \ n " ) ] length = len ( lines ) return " \ n ". join ( [ " ". join ( [ lines [ i ] [ length - 1 - j ] for j in range ( length ) ] ) for i in range ( length ) ] )
[ -0.4041364789009094, -0.624750554561615, 0.9297233819961548, -0.13304442167282104, -1.3632090091705322, -0.41691353917121887, -0.5305781364440918, 0.6104440093040466, -0.42882463335990906, 0.7299334406852722, 0.16688868403434753, 0.2958340644836426, -0.7289736866950989, -0.2722924947738647...
def _ _ decode _ json _ layout ( self ) : # import json to dictionary if self. args ['layout']! = none : path = self. args ['layout'] else : path = os. path. join ( os. path. join ( os. path. dirname ( _ _ file _ _ ), '..'),'config ','sample _ layout. json') self. sample = true jdict = hlp. import _ json ( path ) # cou...
[ -0.5769537091255188, -1.0084391832351685, 0.7833737730979919, -1.1804498434066772, -1.1704049110412598, 0.27033331990242004, 0.9491512179374695, 0.17656224966049194, 0.19617219269275665, 0.5520510077476501, -0.719519317150116, -0.731922447681427, 0.18739543855190277, 0.42378246784210205, ...
def predicttrials ( x, y, fitter, data ) : # store the predicted prices prices = [ ] for k in range ( 10 ) : # split the data x _ train, x _ test, y _ train, y _ test = train _ test _ split ( x, y, \ test _ size = 0. 2, random _ state = k ) # fit the data reg = fitter ( x _ train, y _ train ) # make a prediction pred =...
[ -0.054438427090644836, 0.2026638686656952, 0.4452151954174042, -0.0979316309094429, -0.1881781369447708, 0.10547570884227753, -0.4780222773551941, 0.20185093581676483, -0.592683732509613, -0.010390530340373516, -0.5107331275939941, 1.0884528160095215, 0.20152297616004944, 0.159976050257682...
def classify ( self, example, var ) : if not self. leaf : for child in self. children : if child. value = = example [ child. variable ] : return child. classify ( example, var ) if self. prob ('poisonous ', 1 ) > self. prob ('poisonous ', 0 ) : return 1 else : return 0
[ -0.21421483159065247, -0.6339308023452759, 0.6639986038208008, 0.5701283812522888, 0.21784694492816925, -0.15648604929447174, -0.7207018733024597, 0.9546734690666199, -0.508867084980011, 0.43202391266822815, 0.10664083808660507, 1.2645339965820312, -0.22042128443717957, 0.9087793231010437,...
def post _ link ( self, params ) : self. _ check _ endpoint _ params ('post - link ', params ) return self. _ request ('post ','links ', params )
[ -1.2235832214355469, 0.5475396513938904, 0.23700153827667236, 1.0347208976745605, 1.2947368621826172, 0.1266683042049408, -0.22717313468456268, -0.214578315615654, -0.3311253488063812, -0.8534247279167175, -0.628434956073761, 0.8110542297363281, -1.3168082237243652, 0.09476036578416824, ...
def build _ hleft ( station _ info, ddict, year ) : headers = station _ info. columns. tolist ( ) x = [ ['-'] * 7 ] x. append ( ['year / / month ','start _ time ( hhmm ) ','end _ time ( hhmm ) ','average _ sza ','average _ azm ','hourly _ average _ etr ','hourly _ average _ etrn'] ) for i in range ( 12 ) : for j in ran...
[ -0.3092931807041168, -0.3056148290634155, 0.8381496667861938, -0.5723544359207153, -0.0730423703789711, 1.0149418115615845, -0.4383317828178406, -0.08698766678571701, -0.21669477224349976, -0.13842575252056122, 0.0670381486415863, -0.5436997413635254, 0.21870343387126923, 0.066836014389991...
def _ _ init _ _ ( self, lst ) : [ name, commname, typ, innames, outnames, slst, tlst, nobalance, reversible, enames, inpath, dic ] = lst self. name = name self. commname = commname self. typ = typ self. innames = innames self. outnames = outnames self. reversible = reversible self. trans = false self. ename = enames s...
[ 0.04025232419371605, -0.2153112143278122, 0.603793203830719, -0.29067307710647583, -0.7096004486083984, 0.16109050810337067, -0.02598395384848118, -0.038553886115550995, 0.3004671037197113, 0.1899501383304596, -1.5237810611724854, -0.4278113842010498, -0.3571050763130188, 0.547066509723663...
def safe _ output ( cmd, shell = false, * args, * * kwargs ) : try : out = subprocess. check _ output ( cmd, shell = false, * args, * * kwargs ) except ( subprocess. calledprocesserror, oserror ) : cmd =''. join ( cmd ) out = subprocess. check _ output ( cmd, shell = true, * args, * * kwargs ) return out
[ 0.9921422600746155, -0.059568140655756, 0.446098655462265, 0.16146133840084076, -1.314661979675293, -0.5686344504356384, -0.3688434958457947, -0.652328610420227, -0.024108761921525, -0.31935766339302063, 0.376696914434433, -0.3061085641384125, -0.5583063960075378, 0.26475033164024353, 0....
def is _ task _ idle ( self ) : return not self. _ has _ target
[ -0.99824059009552, 0.26055648922920227, 0.5753223896026611, 0.05661768466234207, 1.0293540954589844, 0.35503053665161133, -0.13340182602405548, -0.33086931705474854, 0.23246373236179352, 0.05930817872285843, -0.37704789638519287, -0.024308038875460625, -0.7668876647949219, 0.23732253909111...
def test _ unit _ login _ user _ with _ post ( self ) : with patch ('user _ auth. views. loginform') as form : request = magicmock ( ) request. method = " post " request. post = " some data " form. return _ value = mock ( ) form. return _ value. is _ valid = mock ( return _ value = true ) form. return _ value. login _ ...
[ -0.15061451494693756, 0.35389357805252075, 0.7012398838996887, 0.38998177647590637, -0.23875005543231964, 0.5762525796890259, -0.5923088788986206, -0.5943677425384521, 0.9415388107299805, -1.3390874862670898, -0.8719927668571472, 0.0810883566737175, 0.19035035371780396, -0.2245577722787857...
def _ _ init _ _ ( self, batches : list [ readerbatch ] ) : self. batches = batches self. calledactivatemultiprocessing = false self. storedskipanswermatching = false self. storedusegroundtruthpassage = true
[ 0.0930810496211052, -0.5276748538017273, 0.2658778131008148, 1.1544582843780518, -0.5819350481033325, 0.669154703617096, 0.11074088513851166, 0.7294802069664001, -0.04254516586661339, 0.025324324145913124, -0.16839875280857086, -0.6494207382202148, -0.6376394629478455, 0.35128745436668396,...
def shift ( self, x, y ) : for pt in self. points : pt [ 0 ] + = x pt [ 1 ] + = y self. update _ lines ( )
[ -0.23605585098266602, -0.6473914980888367, 0.4644038677215576, 0.3479304015636444, 0.49805590510368347, 1.2679225206375122, -1.1030992269515991, -0.8357710838317871, 0.04301390051841736, 0.020758794620633125, 0.017475271597504616, 0.6135315895080566, 0.4665292799472809, -0.4740114808082580...
def onstart ( ) : if mw. property ( " eventloop " ) : timer. stop ( ) timer. timeout. disconnect ( onstart ) finddock ( ) createactions ( ) timer. timeout. connect ( onresize ) timer. start ( 2000 )
[ 1.044643759727478, -0.29434192180633545, 0.3780231177806854, 0.4861963093280792, 0.14249958097934723, -0.7779000401496887, 0.6159310936927795, -0.24527235329151154, 0.3913955092430115, 0.5264861583709717, 0.1777348667383194, 0.1629275530576706, -0.38169848918914795, 1.0935097932815552, -...
def center _ operation ( self, binarized _ frame : np. ndarray ) - > float : _, _, stats, centroids = cv2. connectedcomponentswithstats ( binarized _ frame, 4 ) stats = stats [ 1 : ] # remove information from the entire image ( idx = 0 ) # sort by size # exclusion of obviously different shapes by mice # a _, b _ = sort...
[ 0.06082068011164665, -0.588694155216217, 0.916379451751709, -0.1937500238418579, -0.10403551161289215, -0.5455890893936157, 0.6589205861091614, 0.3979625105857849, 1.1912436485290527, 0.6733934879302979, 0.09982062876224518, -0.5143757462501526, -0.7721682190895081, 0.04783724248409271, ...
def has _ privilege ( privileges, type = none ) : # privileges is none, return false if not privileges : return false if type : logging. debug ( " has _ privilege : % s = % d ", type, privileges [ type ] ) return privileges [ type ] return true
[ -0.8797954320907593, 0.13072744011878967, 0.7829723954200745, 0.5748241543769836, 0.16180776059627533, -0.4927634000778198, -0.9693462252616882, -0.20789769291877747, 0.9941746592521667, -0.06834302097558975, 0.15975764393806458, 0.015415752306580544, -0.9914358854293823, 0.385747075080871...
def write ( self, elements ) : elements _ size = tf. shape ( elements ) [ 0 ] start = tf. math. floormod ( self. _ read _ head. read _ value ( ) + self. _ data _ size. read _ value ( ), self. _ buffer _ size, ) indices = tf. math. floormod ( tf. range ( start, limit = start + elements _ size ), self. _ buffer _ size ) ...
[ -0.8712887763977051, -0.46464142203330994, 0.6122632622718811, -0.6779524683952332, 0.16886036098003387, 0.34808069467544556, 0.451065331697464, 0.07815928012132645, 0.43314990401268005, 0.11031292378902435, -0.34115344285964966, 0.5423628091812134, -0.48413002490997314, -1.078477382659912...
def score ( true, pred ) : found = np. full ( ( len ( true ), ), false ) box _ w, box _ h = ( 20, 20 ) fp = 0 for ( yp, xp ) in pred : matched = [ ] for i, ( yt, xt ) in enumerate ( true ) : if ( xt - box _ h < = xp < = xt + box _ h ) and ( yt - box _ w < = yp < = yt + box _ w ) : matched. append ( i ) if not matched :...
[ 0.16785001754760742, 0.07097992300987244, 0.7332428693771362, -0.10064629465341568, 0.3678142726421356, -0.17790305614471436, 0.31735172867774963, 0.38003772497177124, -0.3215852379798889, 0.46537917852401733, 0.5052958130836487, 0.3176996111869812, -0.168264701962471, 0.3935963809490204, ...
def get _ queries ( self, query _ id ) : q = db. session. query ( queryinfo ). filter ( queryinfo. query _ table _ info. id = = query _ id ) query = q. first ( ) return query
[ 0.9502056241035461, -0.39615485072135925, 0.07874130457639694, 0.190807044506073, 0.48689329624176025, -0.4920476973056793, -0.8973963856697083, -1.0068901777267456, 0.5717824697494507, -0.3758639693260193, 0.7555114030838013, -0.262393981218338, -0.332986980676651, 0.39509910345077515, ...
def adc3 ( self, seq, ntrig = 1, verbose = false, udelay = 10 ) : if self. module. issingleroc ( ) : self. daq _ select _ deser160 ( self. deseradjust ) # no idea why we need this cmdlist = [ ] # to send sync signal ( following the signalprobedx command ) # cmdlist. append ( dtb. pg _ sync + 10 ) if ( seq & dtb. sync )...
[ -0.2055383026599884, 0.488289475440979, 0.8898947834968567, 0.2775539457798004, -0.24365024268627167, -0.40961143374443054, 0.07442715018987656, -0.30103492736816406, 0.24887508153915405, 0.042362410575151443, 0.24135199189186096, -0.11050201952457428, -0.58750319480896, 0.1102024242281913...
def d3logpdf _ dlink3 ( self, link _ f, y, y _ metadata = none ) : d3lik _ dlink3 = 2 * y / ( link _ f ) * * 3 return d3lik _ dlink3
[ 0.39243045449256897, -0.268106073141098, 0.3997343182563782, -0.39319363236427307, 0.41630375385284424, 0.3551546633243561, -0.33214038610458374, 0.5875979661941528, 0.24277055263519287, -0.6226661801338196, 0.60713791847229, 0.6528459191322327, 0.009743571281433105, -1.0185691118240356, ...
def pip _ cmd ( * packages, * * kwargs ) : # delete pip cache dir shutil. rmtree ('/ root /. cache / pip ', ignore _ errors = true ) # test for pip if running _ on _ windows : pip _ base ='python - m pip'else : pip _ base = verify _ pip ( * * kwargs ) mode = kwargs. pop ('mode ','install') # validate assert mode in ['i...
[ -0.3052369952201843, -0.19135117530822754, 0.787913978099823, -0.1870267391204834, 0.08551663905382156, 0.2340080887079239, -0.3694710433483124, 0.03206602856516838, 0.27779725193977356, 0.7228195071220398, -0.023843280971050262, -0.389351487159729, -0.27157825231552124, -0.527278184890747...
def squash ( self, other ) : assert self. stencil = = other. stencil self. exprs. extend ( [ i for i in other. exprs if i not in self. exprs ] )
[ 0.9799073934555054, -0.044039979577064514, 0.5577822923660278, 0.29710453748703003, -0.1170184537768364, -0.025665288791060448, 0.3762474060058594, -0.9379839301109314, 0.3094543516635895, 0.5043819546699524, -0.6294561624526978, 0.644612193107605, -0.363577276468277, -0.21027788519859314,...
def run ( self ) : self. menu ( ) play _ again _ button = rect ( self. x / / 2 - 250, self. y / / 2 + 85, 500, 200 ) play _ again _ color = ( 148, 87, 114 ) self. start = time. time ( ) flag = false while self. running : for event in pygame. event. get ( ) : if event. type = = quit : self. running = false if self. acti...
[ -0.4624117314815521, -0.5968058109283447, 1.2407094240188599, 0.8156352639198303, -0.16508950293064117, -0.057375218719244, 1.3489842414855957, -1.0373623371124268, 0.11464587599039078, 0.6850200891494751, -0.5085548758506775, -0.13939517736434937, -0.5597136616706848, 0.27279093861579895,...
def get ( org _ id ) : try : invitation _ status = request. args. get ('status'). upper ( ) if request. args. get ('status') else none invitations = invitationservice. get _ invitations _ for _ org ( org _ id = org _ id, status = invitation _ status ) response, status = {'invitations': invitationschema ( exclude = ['me...
[ -0.4845150113105774, 0.10087759047746658, 0.49788805842399597, 0.3531683385372162, 0.36878350377082825, -0.2543294131755829, -0.62584388256073, 0.9965220093727112, -0.17484089732170105, 1.1350001096725464, -0.5447798371315002, 0.7360090613365173, -0.6090858578681946, 0.5007755160331726, ...
def importsolvers ( self, solvers _ json ) : if not isinstance ( solvers _ json, types. stringtypes ) : prev = len ( self. _ solvers ) try : for item in solvers _ json : self. _ solvers. append ( importsolver ( item ) ) print ( " % d solvers imported to world. " % ( len ( self. _ solvers ) - prev ) ) except typeerror :...
[ -1.5404739379882812, -0.2889938950538635, 0.5098660588264465, 0.25130969285964966, 0.3740224540233612, 0.37662744522094727, 0.310138076543808, -1.4611567258834839, 0.43350982666015625, 1.2194747924804688, -1.4190555810928345, -0.13190118968486786, -0.9348878264427185, 0.3855621814727783, ...
def modeplotter ( x, y, a, b, beta, n, m, ninc, dt ) : w = np. zeros ( ninc, dtype = float ) c = beta for i in range ( ninc ) : t = i * dt k = sqrt ( ( m * * 2 ) / ( a * * 2 ) + ( n * * 2 ) / ( b * * 2 ) ) w [ i ] = sin ( m * pi * x / a ) * sin ( n * pi * y / b ) * cos ( pi * k * c * t ) return ( w )
[ 0.15878161787986755, 0.09008176624774933, 0.5023708939552307, -0.46783027052879333, -0.3915805220603943, -0.07862411439418793, -0.10538925230503082, -0.8306720852851868, -0.9814456701278687, 0.5191805362701416, 0.09591958671808243, -0.7362667322158813, -0.4080900251865387, 0.03683506697416...
def save _ initial _ conditions ( atomlist, qs, ps, inidir, name, frmt = " fish " ) : assert frmt in [ " fish ", " qmf3 " ] ncoord, nsample = qs. shape for i in range ( 0, nsample ) : fname = join ( inidir, " % s _ %. 4d. in " % ( name, i ) ) if frmt = = " fish " : txt = dynamics _ in _ format ( atomlist, qs [ :, i ], ...
[ -0.5203037858009338, -1.0891456604003906, 0.5735830068588257, -0.24691025912761688, -0.06178241968154907, 0.25242847204208374, 0.7960333824157715, -0.10693840682506561, -0.45047974586486816, -0.0807294100522995, -0.8885374069213867, 0.09352761507034302, -0.7210276126861572, 0.0758828967809...
def test _ vasp _ calc _ del _ str _ ext ( run _ vasp _ process ) : # let us add an additional object to the retrieve _ list ( which do not delete the object after parse ) # and check if it is actually there from aiida _ vasp. calcs. vasp import vaspcalculation retrieve _ list _ ref = ['_ scheduler - stdout. txt ','_ s...
[ 0.5523877739906311, -0.39438366889953613, 0.5979908108711243, -0.3092558979988098, -0.1348949521780014, 0.2840268015861511, -0.10186202079057693, -0.40092626214027405, 0.7110973596572876, -0.21029676496982574, -0.30297014117240906, 0.06987088918685913, 0.17363467812538147, 0.10883858799934...
def find _ frame ( ref ) : max _ len = - 1 # refseq = str ( ref ) refseq = str ( ref ). replace ('- ','' ). upper ( ) assert not refseq. startswith ('-') if len ( refseq ) < 100 : warnings. warn ('estimation of the frame not reliable :'+'sequence too short') aa _ seq = { } for f in [ 1, 2, 3 ] : nts = refseq [ f - 1 : ...
[ -0.20855587720870972, 0.05222436413168907, 0.7121334075927734, -0.5150365829467773, -0.9629552364349365, -1.198906421661377, 0.17850807309150696, -0.06432538479566574, 0.3404916822910309, 1.172426700592041, -0.09199574589729309, 0.052652712911367416, 0.10655942559242249, 0.4575291275978088...
def confusion _ matrix _ plot ( y _ true, y _ pred, labels, normalize = false, cmap = plt. cm. blues, shape = ( 1000, 1000 ), text = true, ax = none ) : cm = metrics. confusion _ matrix ( y _ true, y _ pred, labels = range ( len ( labels ) ) ) if normalize : cm = cm. astype ('float') / cm. sum ( axis = 1 ) [ :, np. new...
[ 0.467825710773468, 0.5027866959571838, 0.6093989610671997, -0.4985911250114441, -1.6349345445632935, -0.2864170968532562, 0.532908022403717, 0.3864704370498657, -0.4764905571937561, 0.35510435700416565, 1.321151614189148, 0.7633064389228821, 0.36581090092658997, -0.47744736075401306, 0.2...
def setup _ row _ ids ( connection, check _ existing = true ) : row _ ids = rowids ( connection, check _ existing ) @ utils. xslt _ text _ func def add _ id ( _, name, * ids ) : " " " creates id for an unique combination of strings ( eg code ). " " " return row _ ids. add _ id ( name, * ids ) @ utils. xslt _ text _ fun...
[ 0.11183538287878036, 0.30361753702163696, 0.4764530062675476, -0.39112040400505066, 0.5849250555038452, -1.0228204727172852, -0.39383143186569214, 0.032125066965818405, 0.22721529006958008, 0.4186622202396393, -0.5744405388832092, -0.10003119707107544, -0.07487550377845764, 0.4642854034900...
def test _ complete _ special _ resolution _ correction _ attachments ( session, config ) : # setup filing + business for email legal _ type = business. legaltypes. coop. value legal _ name ='test cp sr business'token ='token'status ='completed'original _ filing = prep _ cp _ special _ resolution _ filing ( cp _ identi...
[ 1.1309750080108643, -0.39835044741630554, 0.8387464284896851, 0.16491594910621643, 0.3936360776424408, 0.13298283517360687, 0.32464683055877686, 0.8124406337738037, -0.1674586832523346, 0.02327626943588257, -0.41536590456962585, 0.011731685139238834, 0.26145607233047485, -0.432051241397857...
def plot ( self, ax : axes | none = none ) - > axes : self. process _ chart ( ) # instantiate a new artist registry for the new plot self. _ artists = chartregistry ( ) if ax is not none : self. _ fig = ax. get _ figure ( ) else : self. _ fig = figure. figure ( figsize = self. config. figure. figsize, dpi = self. confi...
[ 0.3947333097457886, 0.6908859610557556, 0.5818490386009216, -0.23924770951271057, -0.36766695976257324, -0.16645175218582153, 0.5777027010917664, 0.2691427767276764, 0.3325360417366028, -1.1426769495010376, -0.09140680730342865, 1.0072999000549316, -0.7006624341011047, -0.9749174118041992,...
def reduce _ loss ( loss, reduction ) : if reduction = = " mean " : return loss. mean ( ) elif reduction = = " sum " : return loss. sum ( ) else : return loss
[ -0.6672838926315308, 0.3312932848930359, 0.45420438051223755, 0.22543515264987946, -0.4268130958080292, 0.011364377103745937, -0.031099198386073112, -0.11522315442562103, 0.4394323527812958, 0.7610217928886414, 0.13317808508872986, 0.2815946936607361, 0.46521738171577454, 0.188198462128639...
def fetch _ async ( cls, queue _ or _ queues, rpc = none ) : wants _ list = true if isinstance ( queue _ or _ queues, six. string _ types ) : queue _ or _ queues = [ queue _ or _ queues ] wants _ list = false try : queues _ list = [ queue for queue in queue _ or _ queues ] except typeerror : queues _ list = [ queue _ o...
[ -0.8123498558998108, -0.4710548520088196, 0.697935938835144, 0.05538107454776764, -0.30287250876426697, -0.016276443377137184, -1.2017027139663696, -0.5463576316833496, 0.5899016261100769, 0.006238922942429781, 0.5152591466903687, 0.09553065150976181, -0.11242508143186569, 1.07038843631744...
def group ( group _ name ) : _ state. group = group _ name if group _ name not in _ state. groups : _ state. groups [ group _ name ] = [ ]
[ -0.9104713797569275, 0.9526612758636475, 0.3448021113872528, -0.6595638990402222, 0.21495161950588226, -0.6917465925216675, 0.22784805297851562, 0.18385325372219086, 0.0011287132510915399, 0.1379927545785904, -0.8096586465835571, 0.42461419105529785, -0.12328071892261505, 0.778207361698150...
def scrape _ html ( self, localfile, regexp ) : matcher = re. compile ( regexp ) with open ( localfile, encoding ='utf - 8') as f : logger. debug ( f " searching { localfile } for { regexp }... " ) for line in f : match = matcher. search ( line ) if match : url = match. group ( 1 ) logger. debug ( f "... found { url } ...
[ -0.11408424377441406, -0.21661241352558136, 0.7152619361877441, 0.17828144133090973, -0.2674363851547241, 0.3096504509449005, 0.43275806307792664, 0.651786208152771, -0.8729486465454102, 0.7008251547813416, 0.8379707336425781, -0.3131733536720276, -0.567140519618988, -0.23199647665023804, ...
def get _ response ( message ) : print ( message ) return input ( )
[ 0.28220218420028687, -0.33717089891433716, 0.207753524184227, 0.5769798755645752, -0.2940754294395447, -0.21213586628437042, 1.1482157707214355, -1.6609182357788086, 0.17537492513656616, -1.4312055110931396, 0.49404266476631165, 0.5200735926628113, -1.5531727075576782, -0.4792044162750244,...
def print _ grid ( grid : dict ) : # print ( grid ) coordinates = [ ] for coordinate in grid. values ( ) : coordinates. append ( coordinate ) plt. scatter ( * zip ( * coordinates ) ) for name in grid : plt. annotate ( name, ( grid [ name ] [ 0 ], grid [ name ] [ 1 ] ) ) plt. show ( )
[ 0.2599056363105774, 0.2651841342449188, 0.4399951696395874, -0.6782950162887573, -0.2977205216884613, 0.6107776165008545, -0.29207226634025574, 0.25740301609039307, -0.4435831606388092, 0.2575305700302124, 0.015515745617449284, 1.1887032985687256, 0.6670549511909485, 1.0311321020126343, ...
def on _ mailbox _ unread _ mail _ count _ changed ( self, unread _ mail _ count, initial = false ) : pass
[ 0.04717080295085907, -0.7944025993347168, 0.44563430547714233, -0.776174783706665, -0.5403838157653809, 0.31407690048217773, 0.2943039536476135, 0.28714561462402344, -0.6923531293869019, -0.5484334826469421, -0.4963132441043854, 1.2469550371170044, -0.2987443208694458, -0.41931119561195374...
def make _ layer ( self, fc _ name, where _ clause = none ) : layer _ name = self. _ make _ layer _ name ( ) fc _ path = os. path. join ( self. path, fc _ name ) arcpy. makefeaturelayer _ management ( fc _ path, layer _ name ) yield layer _ name arcpy. delete _ management ( layer _ name )
[ 0.029683684930205345, 0.10078851133584976, 0.40725839138031006, 0.33790040016174316, -0.31467005610466003, 0.07805611938238144, 0.1707964539527893, -0.6360176801681519, 0.017269041389226913, -1.059185266494751, -0.039171796292066574, 0.00838932953774929, 0.840143620967865, -0.5856858491897...
def _ _ str _ _ ( self ) : func _ invokes = " " for f in sorted ( self. funcs, key = lambda a : ( a. func, a. farg ) ) : func _ invokes + = self. test _ invoke _ template. format ( fname = f. get _ name ( ), farg = f. farg ) return self. instance _ test _ template. format ( test _ name = self. get _ name ( ), ty = self...
[ 0.5049466490745544, -1.2498551607131958, 0.6945823431015015, -1.6324129104614258, -0.12555232644081116, -0.6604548096656799, 0.005717598367482424, -0.34294766187667847, -0.024883991107344627, -0.3500179350376129, 0.46450209617614746, 0.4604591429233551, -0.6560816764831543, 0.1609685719013...
def submit _ photo ( request ) : if request. method = = " post " : # if cancel then return to main page if " cancel " in request. post : return redirect ('home ', permanent = true ) submit _ form = photosubmitform ( request. post, request. files ) if submit _ form. is _ valid ( ) : files = request. files. getlist ('pho...
[ -0.6718146204948425, 0.1454714685678482, 0.8228998184204102, 1.0132890939712524, 0.20830509066581726, 0.43831807374954224, 0.1841326206922531, -0.08348017185926437, -0.06776247918605804, -0.4080003798007965, -0.059958335012197495, -0.8784080147743225, -0.17008225619792938, 0.97761660814285...
def vertex ( * args ) : return _ topods. topods _ vertex ( * args )
[ -0.2856927216053009, 0.254533588886261, 0.12797801196575165, 0.6835476160049438, -0.11279613524675369, 0.05211241543292999, 0.743285596370697, 0.13016384840011597, 0.228535458445549, -0.6121955513954163, -0.13162590563297272, -0.07817573845386505, -0.5298013687133789, -0.4512842297554016, ...
def run _ monitor ( self, cycle = 3 ) : logger. info ( " start monitoring processors " ) self. _ mon _ proc _ proc. start ( )
[ 0.2661978602409363, 0.0213656947016716, 0.43001750111579895, -0.06344569474458694, 0.971770703792572, 0.0051914541982114315, 0.4871276617050171, 0.0341847762465477, 0.35617807507514954, -0.053731564432382584, -0.36565709114074707, 0.8426380753517151, -0.7341311573982239, 0.4013677537441253...
def _ _ len _ _ ( self ) : return self. num _ rows
[ 0.4459005296230316, -0.07061783224344254, 0.3260754942893982, -0.6698063015937805, 0.5788052678108215, -0.34613335132598877, 0.5123434662818909, 1.0299255847930908, 1.0650995969772339, -0.7763279676437378, -0.14697179198265076, -0.32443323731422424, 0.7099279761314392, 0.30087414383888245,...
def get _ build _ type ( buildername ) : if not buildername : return none for build _ type in build _ type _ buildername : for pat in build _ type _ buildername [ build _ type ] : if pat. match ( buildername ) : return build _ type return none
[ -0.05183495581150055, -0.3007020056247711, 0.591788649559021, 0.9254708886146545, 0.25179657340049744, -0.03459981456398964, 0.8845958709716797, 0.053089819848537445, 0.0048887175507843494, -0.41316789388656616, -0.4798126220703125, 0.585469126701355, -0.9881511926651001, -0.27710008621215...
async def call ( self, http _ auth : httpauthorizationcredentials ) - > any :... # pragma : no cover
[ -0.8012913465499878, 0.8841556310653687, 0.3314436376094818, 0.8748809695243835, 0.34518423676490784, -0.28301581740379333, -0.6572266817092896, -0.2225496768951416, 0.033364854753017426, 0.3606603443622589, 0.05149877816438675, 0.9332028031349182, -0.3239188492298126, 0.007088562473654747...
def test _ subscription _ api _ with _ invalid _ user _ id ( self ) : data = { " user _ id " : 28, " no _ of _ tickets " : 4 } response = self. client. post ( self. end _ point, json. dumps ( data ), http _ authorization = " bearer { } ". format ( self. token ), content _ type ='application / json') self. assertequals ...
[ 0.8037354946136475, -0.4674767255783081, 0.7663965225219727, 0.9478877186775208, -0.15073364973068237, 0.7970190048217773, -0.8890072703361511, -0.5702379941940308, -0.002367537934333086, -0.8670471906661987, -0.3883377015590668, 0.6479387283325195, -0.5349695682525635, 0.7446228861808777,...
def test _ is _ user _ blocked ( self ) : anonymous _ user = create _ anonymous _ user ( is _ blocked = true ) post _ comment = create _ post _ comment ( anonymous _ user = anonymous _ user ) self. asserttrue ( post _ comment. is _ user _ blocked ( ) ) anonymous _ user = create _ anonymous _ user ( is _ blocked = false...
[ 0.23991620540618896, 0.799315333366394, 0.47290292382240295, 1.789264440536499, 0.9659425616264343, 0.8596217632293701, 0.4363197982311249, -0.6849482655525208, -0.6818208694458008, 0.0917409211397171, -0.9937896728515625, 0.08773255348205566, 0.04434497281908989, -0.01250497717410326, -...
def get _ newest _ datasets ( n ) : user = tk. get _ action ('get _ site _ user') ( {'ignore _ auth': true }, { } ) context = {'user': user ['name'] } data _ dict = {'sort':'metadata _ created desc ','q':'type : dataset'} datasets = tk. get _ action ('package _ search') ( context, data _ dict ) ['results'] if len ( dat...
[ -0.9602505564689636, 1.4562008380889893, 0.47374194860458374, 0.46806252002716064, 0.3672749102115631, -0.18363967537879944, -0.213328555226326, -1.0667637586593628, 0.11643440276384354, -0.6873734593391418, 0.051548976451158524, 0.7934550046920776, 0.01575721614062786, 0.6360850930213928,...
def parse _ blastn _ xml ( blastn _ xml : str, path _ query : typing. optional [ str ] = none ) - > typing. tuple [ blastmatch ] : result = [ ] for blast _ record in ncbixml. parse ( io. stringio ( blastn _ xml ) ) : for blast _ alignment in blast _ record. alignments : hsp = blast _ alignment. hsps [ 0 ] qseq = only _...
[ 0.235099196434021, -0.5261132121086121, 0.6782177090644836, 0.7901898622512817, 0.24269449710845947, 0.059035774320364, -0.035509444773197174, 0.14077554643154144, -0.08503063023090363, 0.14478538930416107, -0.5695778131484985, -0.925194263458252, -0.5015627145767212, -0.4412262737751007, ...
def user _ login ( ) : state = hashlib. sha256 ( os. urandom ( 1024 ) ). hexdigest ( ) flask. session ['state'] = state if'previous _ page'not in flask. session : flask. session ['previous _ page'] ='/'google _ oauth _ 2 _ 0 = ( " / / ajax. googleapis. com / ajax / libs / jquery / 1. 8. 2 / jquery. min. js ", " / / api...
[ -0.6071689128875732, 0.021529603749513626, 0.7752996683120728, 0.06617188453674316, -0.34125372767448425, -0.1403728574514389, 0.47647833824157715, -0.15166766941547394, 0.8703312277793884, 0.47090908885002136, -0.13101895153522491, 0.4846198856830597, 0.1622404158115387, -0.18669447302818...
def dump ( file = sys. stdout ) : print ( file = file ) while not reporter. _ mq. empty ( ) : ms, delta, message = reporter. _ mq. get ( ) no _ color ='\ 033 [ 0m'delta _ color ='\ 033 [ 92m'if delta is not none : if delta > reporter. _ thres _ slow : delta _ color ='\ 033 [ 91m'elif delta > reporter. _ thres _ warn : ...
[ 1.1339186429977417, -0.09657871723175049, 0.8821924328804016, -1.2914966344833374, 0.29321131110191345, 0.7472714185714722, 0.578701913356781, -0.4556334912776947, -0.8963937163352966, -0.5452234745025635, 0.12839773297309875, 0.14038844406604767, -0.24185915291309357, 1.471514105796814, ...
def validate _ redirect _ uri ( self, client _ id, redirect _ uri ) : if redirect _ uri = ='urn : ietf : wg : oauth : 2. 0 : oob': return true app = oauthclient. find ( client _ id ) # when matching against a redirect _ uri, it is very important to # ignore the query parameters, or else this step will fail as the # par...
[ -0.24636118113994598, -0.43431955575942993, 0.7231259942054749, 0.7775207161903381, -0.534368634223938, 1.0922527313232422, 0.17971815168857574, -0.6741580963134766, 0.8863595724105835, -0.29110416769981384, 0.7737967371940613, 0.7274228930473328, -0.8886829614639282, -0.012659371830523014...
def test _ id _ type _ string ( self ) : b1 = basemodel ( ) self. assertequal ( type ( b1. id ), str )
[ 0.16815727949142456, -1.3005647659301758, -0.08680499345064163, 0.4962714612483978, 1.2951884269714355, 1.7061444520950317, -0.2668033540248871, -0.7318586111068726, 0.44630998373031616, 0.11740808188915253, -0.598726749420166, 0.06686555594205856, -1.3900532722473145, -0.378998726606369, ...
def cross _ product ( u, v ) : x1 = u [ 1 ] [ 0 ] - u [ 0 ] [ 0 ] y1 = u [ 1 ] [ 1 ] - u [ 0 ] [ 1 ] x2 = v [ 1 ] [ 0 ] - v [ 0 ] [ 0 ] y2 = v [ 1 ] [ 1 ] - v [ 0 ] [ 1 ] return x1 * y2 - x2 * y1
[ 0.0581570640206337, -0.1446228325366974, 0.9524320960044861, -0.2865162789821625, -0.31864646077156067, 0.22848112881183624, 0.44601374864578247, -0.053414348512887955, 0.48752668499946594, 0.5910180807113647, -0.026375126093626022, 0.7755590677261353, -0.5042818188667297, -1.4332236051559...
def apply ( self, obj, in _ place = false ) : if not in _ place : obj = copy. deepcopy ( obj ) for operation in self. _ ops : obj = operation. apply ( obj ) return obj
[ -0.29027053713798523, 0.1566670686006546, 0.8625522255897522, 0.8582760691642761, -1.1017783880233765, 0.5520588755607605, 0.9090176820755005, 0.14729025959968567, 1.2480509281158447, -0.36533254384994507, -0.09842967987060547, -0.5894063115119934, -0.7506425380706787, -0.4115772843360901,...
def next _ inputs _ fn ( time, outputs, state, sample _ ids ) : finished = time > = params [ " nr _ next _ frames " ] - 1 next _ inputs, _ = outputs # pick only prediction, discard state return finished, next _ inputs, state
[ -0.6764893531799316, -0.6097697019577026, 0.2568237781524658, 0.9045377969741821, -0.8438671827316284, -1.0692138671875, 0.7903956174850464, -0.7534734010696411, -0.3924799859523773, 0.05682600662112236, 0.13813567161560059, 0.00124359130859375, 0.34379667043685913, 0.24845926463603973, ...
def lookup _ coordinate _ system ( wkid ) : if wkid = = 102100 : wkid = 3857 global _ lutbl if _ lutbl is none : _ load _ data ( ) if isinstance ( wkid, ( int, float ) ) : q = _ lutbl [ " wkid " ] = = int ( wkid ) elif isinstance ( wkid, ( list, tuple ) ) : q = _ lutbl [ " wkid " ]. isin ( wkid ) else : raise valueerro...
[ -0.6505129337310791, 0.06783460825681686, 0.5421184301376343, -1.3073481321334839, -0.41902846097946167, -0.5299381613731384, -0.03128023445606232, -0.6665962934494019, 0.05411265045404434, 0.2598799467086792, 0.044029027223587036, -0.1363772302865982, -0.8901703953742981, 0.34725299477577...
def test _ comoving _ vol _ init ( comoving _ vol _ converter ) : d _ min = 100 d _ max = 1000 dc _ min = mock ( ) dc _ min. value = 2 dc _ max = mock ( ) dc _ max. value = 2000 n _ interp = 10 dl _ array = mock ( ) dl _ array. value = np. arange ( n _ interp ) dc _ array = np. arange ( n _ interp ) z _ values = np. ar...
[ -0.19681881368160248, -0.7485172152519226, 0.8323896527290344, -0.16820292174816132, 0.35226985812187195, 0.4647188186645508, -0.1590573787689209, 0.17987976968288422, 0.3948494791984558, -0.7249181270599365, -0.42116907238960266, 0.06119005009531975, 0.29089170694351196, 0.721852719783783...
def get _ additional _ cache _ keys ( self, * * kw ) : return [ ]
[ -1.0319820642471313, -0.027802279219031334, 0.5209670066833496, 1.2550415992736816, -0.4794747829437256, 0.21570953726768494, -0.7251556515693665, -0.5968277454376221, 0.6053247451782227, -0.2866041660308838, -1.2017589807510376, 0.5999961495399475, -0.3437066078186035, 0.9191755056381226,...
def create _ scan _ grid ( xpnts = none, ypnts = none, zpnts = none ) : xlen = len ( xpnts ) ylen = len ( ypnts ) zlen = len ( zpnts ) shift = 0 nd1 = xlen nd2 = ylen num _ grids = zlen if xlen < = ylen and xlen < = zlen : shift = 2 nd1 = ylen nd2 = zlen num _ grids = xlen elif ylen < = xlen and ylen < = zlen : shift =...
[ 0.09298824518918991, -0.5188866853713989, 0.7617698907852173, -0.492598295211792, -0.26822564005851746, 0.15581762790679932, -0.19577987492084503, -0.9817306399345398, -0.004749222658574581, -0.22739797830581665, 0.09019000083208084, 0.20457984507083893, -0.4641273021697998, -0.44577676057...
def status _ update ( product : productmodel, status, token : optional [ str ] = header ( none ) ) : return {'product': product,'status': status }
[ -0.5215976238250732, -1.3867137432098389, 0.13605338335037231, 0.08823847025632858, -1.1399396657943726, -0.13832229375839233, -1.3371154069900513, 0.48301422595977783, 0.008414809592068195, 0.47935810685157776, -1.5654081106185913, -0.1219513788819313, 0.26196298003196716, -0.827779054641...
def _ _ clear _ dir _ if _ necessary ( self ) : if self. clear _ dir : clear _ directory ( self. output _ dir ) self. clear _ dir = false
[ -0.710598886013031, 0.42475950717926025, 0.3746005594730377, -0.07675330340862274, -0.5614755749702454, 0.044586945325136185, 0.5441311001777649, -0.9688975811004639, -0.12337150424718857, 0.6238042712211609, 1.2310956716537476, 0.8026703596115112, 0.25744596123695374, 0.6020296812057495, ...
def _ _ init _ _ ( self, guild, rythm _ commands, rythm _ channel _ id, delete _ user _ msg = false ) : self. guild = guild self. rythm _ commands = rythm _ commands self. rythm _ channel _ id = int ( rythm _ channel _ id ) self. delete _ user _ msg = delete _ user _ msg super ( musicmoverbot, self ). _ _ init _ _ ( )
[ 0.9756431579589844, -0.04971553757786751, 0.5226339101791382, 0.20044870674610138, 0.952096700668335, 0.08150481432676315, -0.06575097888708115, 0.07266273349523544, -0.03504527732729912, -0.3764961361885071, -0.7325896620750427, 0.6617383360862732, -0.8522927165031433, 1.476214051246643, ...
def test _ gf _ write _ feature _ footer _ no _ blank _ line _ if _ rules ( disabled _ colors, capsys, mocker ) : # given feature = mocker. magicmock ( spec = feature ) feature. description = [ ] feature. rules = [ " foo " ] # when write _ feature _ footer ( feature ) # then stdout = capsys. readouterr ( ). out assert ...
[ 0.7285284399986267, 0.6987865567207336, 0.2852541506290436, 0.6452661752700806, 1.2665544748306274, 0.4642772376537323, 0.24688971042633057, 0.023682337254285812, -0.6967492699623108, -0.2922588586807251, 0.32722121477127075, -0.30305472016334534, -0.34096190333366394, 1.3926899433135986, ...
async def checkorcreatelabels ( gl, event ) : url = f " / projects / { event. project _ id } / labels " exist _ flag = 0 labels = [ i async for i in gl. getiter ( url ) ] for dict _ item in labels : for item in dict _ item. items ( ) : if item [ 0 ] = ='name': if item [ 1 ] in ['mr1 : : created ','mr1 : : completed ','...
[ 0.1534021645784378, -0.04371970146894455, 0.8485119342803955, -0.3016575872898102, 0.9999505877494812, 0.5460512042045593, -0.4103763699531555, -0.1915721297264099, -0.5132100582122803, 0.8910560607910156, 0.03563804551959038, -0.5031536817550659, 0.20916661620140076, 1.1438368558883667, ...
def forward ( self, feat ) : out = self. fc2 ( feat ) return feat, out
[ -0.034430328756570816, -0.7790293097496033, 0.10458637773990631, 0.592088520526886, -0.9811434149742126, -0.9637566804885864, 0.8014388084411621, 0.31607282161712646, -0.49821045994758606, -1.7942705154418945, -0.9546639323234558, 0.2592853009700775, 1.1686464548110962, 0.7038469910621643,...
def gp _ ex _ fixed _ period ( ) : start, end = - 4. 0, 0. 0 x = infpy. gp _ 1d _ x _ range ( start, end, 1. 3 ) # x = [ ] # x = [ [ 0. 0 ] ] # x = [ [ 0. 0 ], [ 1. 0 ] ] # x = [ [ 0. 0 ], [ - 1. 0 ], [ - 2. 0 ], [ - 3. 0 ], ] y = numpy. asarray ( [ math. sin ( 2. 0 * math. pi * x [ 0 ] ) for x in x ] ) # pylab. plot (...
[ 0.4529711902141571, -0.3719516694545746, 0.8358393907546997, 0.42573830485343933, -1.128071665763855, 0.6637268662452698, -0.24446988105773926, 0.638485312461853, 0.2934008836746216, 0.13697651028633118, 0.5292714834213257, 1.3489750623703003, -0.4521229565143585, -0.12392783910036087, 0...
def _ postsolve ( self ) : raise notimplementederror ( " this is just an abstract interface " )
[ -0.6727727055549622, -0.5862011313438416, 0.7658528685569763, -0.17944729328155518, -0.28132325410842896, 0.2930012047290802, 0.49488314986228943, -0.5706471800804138, -0.4220494031906128, -0.9892353415489197, -0.8911129832267761, -1.3146947622299194, -0.35612547397613525, 0.30719089508056...
def novel10 ( text ) : assert isinstance ( text, list ), " please input parameter'text'to list. " cut = int ( 0. 9 * len ( text ) ) forward, backward = text [ : cut ], text [ cut : ] wordlist = set ( forward ) print ( [ w for w in backward if w not in wordlist ] )
[ 0.5779332518577576, 0.4883517920970917, 0.3445557653903961, -0.589099645614624, 0.3503292500972748, 0.872419536113739, 0.39116525650024414, 0.10551222413778305, -0.31155526638031006, 1.0278583765029907, -0.4986715614795685, 0.759433388710022, -1.1781811714172363, 0.3677579462528229, -1.1...
def full _ execute _ query ( self, stmts, commit, query _ params = { }, rollback _ to _ savepoint = false, write _ conflict = false, issleep = 0, n1qlhelper = none, prepare = false, server = none, memory _ quota = 0 ) : self. name _ list = [ ] self. prepare = prepare self. log = logger. get ( " test " ) collection _ sa...
[ -0.2210570126771927, -0.45751723647117615, 0.7972005009651184, 0.672418475151062, 0.1303970217704773, -0.17873118817806244, -0.18722602725028992, -0.3444647789001465, 0.0800071582198143, 1.3911194801330566, 0.043674126267433167, -0.7954592108726501, -0.949432373046875, 0.5777471661567688, ...
def test _ ad _ solver _ clean ( new _ benchmark _ ad _ clean, input _ file ) : if new _ benchmark _ ad _ clean : ( ice, illumination, rt _ config, model _ config, plot _ config, impurities, ) = setup _ snicar ( " default " ) ice, illumination, impurities, rt _ config, model _ config = match _ matlab _ config ( ice, il...
[ 0.3579321503639221, 0.28620970249176025, 0.8159471750259399, 0.025909531861543655, 0.5187720060348511, 0.4094219207763672, 1.1230558156967163, 0.057944826781749725, -0.7397003173828125, 0.573125958442688, -0.44641751050949097, -0.0031662997789680958, -0.7763697504997253, 0.6830449104309082...
def new _ py _ inst ( self, t ) : n = self. norms. get ( t, t ) inst = self. _ new _ py _ insts. get ( n, none ) if inst is none : # look up base type inst = self. _ new _ py _ insts. get ( n [ 0 ], none ) if inst is none : inst ='none'self. _ new _ py _ insts [ n ] = inst return inst
[ -1.3288265466690063, -0.8602399826049805, 0.4533619284629822, -1.3069102764129639, -0.245439350605011, -0.0756530910730362, -0.2521955668926239, -1.44246244430542, -0.09584308415651321, -0.08201877772808075, -0.3292657434940338, 0.384665846824646, -0.6309171915054321, -0.04452793300151825,...
def get _ hex _ value ( self ) - > str : return " 0x " + self. value. hex ( ). replace ( "'", " " )
[ 0.5460547804832458, -0.14502479135990143, 0.6434463262557983, -0.691129744052887, 0.06474572420120239, 0.4743744432926178, -1.4735735654830933, 1.2411960363388062, -0.38355469703674316, -0.07358001917600632, 0.7517222166061401, 0.9407436847686768, 0.7802117466926575, 0.6625258326530457, ...
def change _ order _ smirksified ( mols, cluster _ types, order _ type _ names = none, smirks _ verbose = false, include _ params = none ) : smirs _ order _ types = dict ( ) order _ types _ dict = {'original': none,'reversed': reverse _ clusters,'shuffle': shuffle,'small _ size': by _ smallest _ size,'biggest _ size': ...
[ -0.1548328548669815, 0.0023978545796126127, 0.8437681198120117, 0.4529905319213867, 0.42105382680892944, -1.197773814201355, -0.3262948989868164, 0.047464754432439804, 0.05088126286864281, 0.44415146112442017, -1.270046353340149, 0.5445237159729004, 0.192779541015625, 0.5588876605033875, ...
def pivotp ( m, r1, r2 ) : m = [ i [ : ] for i in m ] return exchangerows ( m, r1, r2 )
[ -0.23209361732006073, 0.054761867970228195, 0.48525604605674744, 0.5233654379844666, -0.4182974100112915, -0.02775992453098297, -1.2575234174728394, 0.28959229588508606, -0.13720443844795227, 1.3687939643859863, 1.224976897239685, -0.14960919320583344, -1.1023001670837402, -0.9245948791503...
def load _ weights ( weight _ file ) : import numpy as np try : weights _ dict = np. load ( weight _ file, allow _ pickle = true ). item ( ) except : weights _ dict = np. load ( weight _ file, allow _ pickle = true, encoding ='bytes'). item ( ) return weights _ dict
[ 0.6438841223716736, -0.121324323117733, 0.4676665663719177, -0.18127663433551788, 0.1398288905620575, -0.0051200659945607185, -0.2218807488679886, -0.09395137429237366, -0.7604500651359558, 1.0596688985824585, -0.2670237421989441, -0.08056740462779999, -0.8964486718177795, 0.93493980169296...
def deep _ weibull ( dataset, split, plot = false, lr = 1e - 4, epochs = 75, steps _ per _ epoch = 25 ) : train _ path = " datasets / " + dataset + " / train _ " + str ( split ) + ". csv " # training set data test _ path = " datasets / " + dataset + " / test _ " + str ( split ) + ". csv " # test set data training _ los...
[ -0.3372388184070587, 0.2852631211280823, 0.8487095236778259, -0.5589397549629211, -0.7030838131904602, 0.6353416442871094, 0.568049430847168, 0.42223110795021057, -0.40774214267730713, 0.258107453584671, 0.44714635610580444, 0.419996440410614, -0.010542257688939571, 0.08234435319900513, ...
def get _ neighbor _ coordinates ( seed _ coordinates : coordinate, kernel _ size : int, height : int, width : int, allow _ diagonals : bool = true, include _ seed = true ) - > tuple [ list [ coordinate ], coordinate ] : pad = kernel _ size / / 2 # compute border pixels leftmost = max ( 0, seed _ coordinates [ 1 ] - pa...
[ 0.013906576670706272, 0.12835879623889923, 0.8134289383888245, 0.11854606866836548, -0.9178218841552734, -0.18993841111660004, 0.29719531536102295, -0.18886126577854156, 0.4220502972602844, 0.42976564168930054, -0.28404709696769714, 0.19725672900676727, 0.07909312099218369, 0.3594883680343...
def dir _ contains _ config ( dir ) : if dir = ='dist. nrc': raise argumenttypeerror ( ('you cannot use the distribution'' configuration directory') ) dist _ dir ='dist. nrc'pwd = dirutils. pwd ( ) + os. path. sep if dir [ 0 ]! = os. path. sep : requested _ dir = pwd + dir else : requested _ dir = dir if not os. path. ...
[ -0.7985270023345947, 0.19062262773513794, 0.9803928732872009, -0.29575175046920776, -0.2653222382068634, -0.20688720047473907, 1.2083632946014404, -0.563346803188324, -0.28174036741256714, -0.34037935733795166, 1.6814154386520386, -0.2590148448944092, -0.2701184153556824, 0.548802316188812...
def _ _ init _ _ ( self, model _ id = none, * * kwargs ) : super ( _ modelidmixin, self ). _ _ init _ _ ( * * kwargs ) self. _ model _ id = model _ id
[ -0.4029519557952881, -0.34243306517601013, 0.41982677578926086, 0.4710535705089569, 0.29943621158599854, -0.2776145040988922, -0.8331074118614197, 0.15534381568431854, 1.155335545539856, -0.11783124506473541, -1.254774808883667, -0.08951032906770706, -0.10020923614501953, 0.821321308612823...
def get _ trace _ and _ result ( self, fonction, * args, * * kwargs ) : # mise en place de la fonction trace sys. settrace ( self. tracer ) # appel de la fonction a tester try : res = fonction ( * args ) except boucleinfinie as e : print ( " boucle infinie detecte " ) trace = self. lines _ trace vartrace = self. var _ ...
[ 0.8814233541488647, -0.6981015205383301, 0.7731910943984985, -0.362910658121109, 0.8388605117797852, -0.5105568170547485, 0.19882315397262573, -0.2836771309375763, 0.13825060427188873, -0.20934663712978363, -0.24177846312522888, -0.7378215193748474, -0.3148716986179352, 0.658906102180481, ...
def leave _ event ( activity _ id, event _ id ) : # user login required if'username'not in flask. session : response = flask. make _ response ( json. dumps ('user login required'), 401 ) response. headers ['content - type'] ='application / json'return response try : with db _ session ( ) as db : user _ attending = db. ...
[ -0.11406366527080536, -0.9301554560661316, 0.7394633889198303, -0.04602857306599617, -0.06829193234443665, 0.3319346308708191, 0.6872023940086365, -0.3043763339519501, 0.36230555176734924, 1.3760294914245605, 0.8733442425727844, 0.17189627885818481, 0.15854568779468536, 0.2837281823158264,...
def redraw ( main _ window, tasks, selection ) : for i, win in enumerate ( main _ window. get _ window ( ) ) : if i < len ( tasks ) : if i = = selection [ 0 ] : win. draw ( tasks [ i ], selected = selection [ 1 ] ) else : win. draw ( tasks [ i ] ) else : win. draw ( ) main _ window. control. draw ( element = tasks [ se...
[ -0.3673577606678009, -0.4540472626686096, 0.5129575729370117, 0.49868708848953247, -0.49968090653419495, 0.422488272190094, 0.5160307288169861, 0.40468621253967285, 0.49641430377960205, -0.3086870312690735, 0.3406239151954651, 0.6691904067993164, -0.05954177305102348, 0.2679966986179352, ...
def _ sample _ oat ( parameter _ space, n, num _ levels = 4 ) : group _ membership = np. asmatrix ( np. identity ( parameter _ space ['num _ vars'], dtype = int ) ) num _ params = group _ membership. shape [ 0 ] sample = np. array ( [ generate _ trajectory ( group _ membership, num _ levels ) for n in range ( n ) ] ) r...
[ -0.4573245644569397, 0.23895792663097382, 0.6422075033187866, -0.4727494716644287, -0.1605629324913025, -0.9066607356071472, -0.3863297700881958, -1.0354020595550537, 0.3132598102092743, 0.44680023193359375, 0.5253161787986755, 0.17391765117645264, 0.37071067094802856, -0.01240725629031658...
def test _ update _ incomplete _ payments _ extracts _ card _ details ( self, mock _ send _ email ) : payment _ extra _ details = {'cardholder _ name':'jack halls ','card _ brand':'visa ','worldpay _ id':'11112222 - 1111 - 2222 - 3333 - 111122223333 ','card _ number _ first _ digits':'100002 ','card _ number _ last _ d...
[ 0.08339600265026093, -0.12882262468338013, 0.8166730403900146, -0.9819664359092712, 0.21519829332828522, -0.18485888838768005, -0.22344020009040833, 0.6162289977073669, -0.02447018027305603, -0.05895731598138809, -0.707542359828949, 0.2683318555355072, 0.02564680017530918, -0.2647693753242...
def test _ api _ video _ initiate _ upload _ by _ playlist _ admin ( self ) : user = factories. userfactory ( ) playlist = factories. playlistfactory ( ) factories. playlistaccessfactory ( role = models. administrator, playlist = playlist, user = user ) video = factories. videofactory ( id = " 27a23f52 - 3379 - 46a2 - ...
[ 0.19410564005374908, 0.045535098761320114, 0.7113832235336304, -0.09600231796503067, 0.5514742136001587, 0.3130810558795929, -0.0051741693168878555, -0.28034359216690063, 0.4669091999530792, 0.22830337285995483, -1.2217062711715698, 0.9526624083518982, -0.272790789604187, 0.108071640133857...
def _ _ eq _ _ ( self, other ) : if isinstance ( other, disabledcommandsprofile ) : return self. _ name = = other. name
[ 0.8026647567749023, -0.4586254060268402, 0.4618704915046692, 0.44799599051475525, 0.03737901896238327, 0.5970838665962219, 0.11041158437728882, -1.1950167417526245, 0.9612274169921875, -0.2967631220817566, -0.9342986941337585, -0.6838734745979309, -0.9654276967048645, -0.5155096650123596, ...
def generate _ sheet ( pt, timestamp, font _ path, png _ path, out _ path ) : def new _ txtimg ( txt, font _ size = 20 ) : font = imagefont. truetype ( font = font _ path, size = font _ size ) txtimg = image. new ( mode ='rgb ', size = imagedraw. draw ( image. new ('rgb ', ( 0, 0 ) ) ). textsize ( text = txt, font = fo...
[ -0.5262138843536377, 0.06463191658258438, 1.031365990638733, -0.26966696977615356, -0.036276575177907944, 0.2526553273200989, -0.5518015623092651, 0.11354407668113708, -0.4470704197883606, 0.016208382323384285, -0.3076949119567871, -0.2473159283399582, 0.5108712911605835, 0.803372144699096...