text
stringlengths
25
2.19k
embedding
listlengths
768
768
def unset _ no _ wrap _ on _ formatters ( orig _ no _ wrap _ settings ) : if not orig _ no _ wrap _ settings : return { } global _ orig _ no _ wrap = orig _ no _ wrap _ settings [ " global _ orig _ no _ wrap " ] formatter _ no _ wrap _ settings = orig _ no _ wrap _ settings [ " formatter _ no _ wrap _ settings " ] form...
[ -1.7558364868164062, -0.8519994616508484, 0.6045976877212524, -0.32627812027931213, -0.9306377172470093, 0.06686913967132568, 0.16352981328964233, -0.11528231203556061, 0.11129467189311981, 0.7024763822555542, -0.8696771860122681, 1.0837587118148804, -0.3967892825603485, 0.8758274912834167...
def _ get _ archives ( connection, path = none, warn = false ) : regions = _ get _ regions ( connection ) data = none if path is none : try : # download required files and get region code from each filename data = _ download _ tnds _ files ( regions ) except valueerror : if warn : utils. logger. warn ( " no tnds ftp cr...
[ 0.03242993354797363, -0.14305844902992249, 0.7241062521934509, -0.5556029677391052, -0.5962250232696533, -0.7729240655899048, -0.5041328072547913, -0.5734394192695618, -0.9039925336837769, 0.11215166747570038, 0.5706315040588379, -0.10409846901893616, 0.5211790800094604, 0.2855087220668793...
def locateanchorconsts ( self, func _ ea, const _ set ) : results = set ( ) for line in sark. function ( func _ ea ). lines : # numeric constants data _ refs = list ( line. drefs _ from ) for oper in filter ( lambda x : x. type. is _ imm, line. insn. operands ) : if oper. imm in const _ set and oper. imm not in data _ ...
[ 0.09933381527662277, -0.448878675699234, 0.5624686479568481, -0.7116020321846008, 0.19655254483222961, -0.0823729857802391, 0.6439502239227295, -0.4926954507827759, -0.38605546951293945, 0.5717355012893677, 1.1043381690979004, 1.0371618270874023, 0.22312822937965393, 0.023092120885849, 0...
def wears _ jacket ( temp, raining ) : return temp < 60 or raining
[ 0.0428927056491375, -0.695048451423645, 0.23772117495536804, -0.39155206084251404, -0.2772626578807831, 0.3762693703174591, -1.3754584789276123, -0.25181373953819275, -0.2895401120185852, 0.33498987555503845, 0.700590193271637, 0.06973298639059067, -0.5607665181159973, 0.5752610564231873, ...
def _ _ determine _ url ( relative _ url ) : if not relative _ url : default _ url, query = true,'' else : default _ url = false try : relative _ url, query = _ parse _ relative _ url ( relative _ url ) except _ relativeurlerror as e : raise invalidurlerror ( e ) if len ( relative _ url ) > max _ url _ length : raise i...
[ 0.08297722041606903, 0.5550094246864319, 0.6070343255996704, 0.35557228326797485, 0.16629330813884735, 0.7127243876457214, -0.10142917186021805, -0.12146392464637756, -0.753730297088623, -0.06646488606929779, -0.3193103075027466, -1.2056318521499634, -0.04059645161032677, 0.309726655483245...
def natural _ sort ( key ) : import re return [ int ( t ) if t. isdigit ( ) else t for t in re. split ( r'( \ d + ) ', key ) ]
[ -1.7241500616073608, -0.09299202263355255, 0.33045318722724915, -0.3567286729812622, -0.907452404499054, -0.1236162856221199, -0.6604353785514832, -0.20528212189674377, -0.6567065715789795, 0.8855482339859009, -0.9468216896057129, 0.1065324917435646, -0.5428800582885742, -0.027218017727136...
def winbio _ winbioasyncenumdatabases ( jitter ) : ret _ ad, args = jitter. func _ args _ stdcall ( [ " frameworkhandle ", " factor " ] ) raise runtimeerror ('api not implemented') jitter. func _ ret _ stdcall ( ret _ ad, ret _ value )
[ -0.303958535194397, 0.49492600560188293, 0.3155401945114136, 0.3988189697265625, 0.7617299556732178, 0.7369565367698669, 1.492908000946045, -0.24048562347888947, 0.09366419911384583, -0.041725508868694305, -0.5742912292480469, 0.2077396661043167, -1.882271647453308, 1.242264747619629, 0....
def find _ yolo _ coordinates ( infile ) : try : # if image is a png rgba, this throws no error img = np. asarray ( image. open ( infile ) ) height, width, depth = img. shape if depth! = 4 : raise # depth is likely 2 ( grayscale, alpha ) # convert to rgba to give depth 4 except : # convert to rgba and continue img = np...
[ -0.1631089746952057, -0.4873027503490448, 1.0957047939300537, 0.2996635437011719, -0.5739606022834778, -0.6423697471618652, 0.950007975101471, -0.1338501274585724, -0.45589300990104675, -0.1872459203004837, -0.5743048191070557, -0.5032952427864075, -0.44470226764678955, 0.8827040791511536,...
def _ detect _ zygosity ( self, gt ) : if self. _ is _ fp : return variantzygosity. no _ variant if gt [ 0 ] = = - 1 or gt [ 1 ] = = - 1 : return variantzygosity. none elif gt [ 0 ] = = gt [ 1 ] : if gt [ 0 ] = = 0 : return variantzygosity. no _ variant else : return variantzygosity. homozygous else : return variantzyg...
[ -0.8231043219566345, -0.509265124797821, 0.6513530015945435, 0.5952528715133667, -0.09893514215946198, -0.6157477498054504, 0.46099555492401123, -0.9149503707885742, 0.496825635433197, -0.3610101044178009, -0.028611833229660988, 0.6259394884109497, -0.1793580949306488, 0.30947718024253845,...
def lookuplabel ( self, rowid ) : return self. nodetable [ rowid ]. label
[ -0.5927802920341492, -0.16770553588867188, 0.4033717215061188, -0.9233084321022034, -0.1574532687664032, 0.3084869086742401, 0.039537664502859116, -1.358633279800415, 1.1050455570220947, 1.25131094455719, 1.0688748359680176, -0.2951063811779022, -0.1150197684764862, -0.43346408009529114, ...
def remove _ shelf ( self, shelf ) : self. shelves. remove ( shelf ) print ( " removed { name } shelf. ". formt ( name = shelf. name ) )
[ 0.3158424198627472, 0.06579656153917313, 0.056007545441389084, 0.8244117498397827, -0.4734603762626648, 0.7092875242233276, 0.7005864381790161, -0.20406998693943024, -0.643547773361206, -0.10309255123138428, -0.7891693115234375, 0.18023718893527985, -0.3600205183029175, 1.080749273300171, ...
def plot _ gene _ sparsity ( adata _ 1, adata _ 2, xlabel ='adata _ 1 ', ylabel ='adata _ 2 ', s = 1, genes = none ) : logging. info ('pre - processing anndatas...') adata _ 1, adata _ 2 = mu. pp _ adatas ( adata _ 1, adata _ 2, genes = genes ) logging. info ('annotating sparsity...') ut. annotate _ gene _ sparsity ( a...
[ 0.9214024543762207, 0.42146924138069153, 0.7820183634757996, -0.45011425018310547, -0.6068641543388367, -0.08917587250471115, -0.6168059706687927, 0.7885976433753967, 0.0242905393242836, -0.33702319860458374, 0.34298279881477356, 2.4769508838653564, 0.6264873743057251, -0.04177418723702431...
def version _ two ( ) : directory _ path = ". / filestosort " # categorise the extensions unique _ extensions = get _ unique _ extensions ( directory _ path ) directories _ for _ extensions = { } for extension in unique _ extensions : prompt = " what category would you like to sort { } files into? ". format ( extension...
[ 0.11911045759916306, 0.12918159365653992, 0.9014580249786377, 0.27581754326820374, -0.40784889459609985, -0.1582219898700714, 0.9304492473602295, -0.3655075430870056, -0.3357006907463074, -0.19419246912002563, -0.22352930903434753, 0.3650292456150055, 0.2663151025772095, -0.363988965749740...
def get _ devices ( self ) - > list [ str ] : return list ( self. config [ " devices " ]. keys ( ) )
[ -0.8727481961250305, 0.23522740602493286, 0.2463030070066452, 1.0641391277313232, 0.7991780042648315, 0.5827111005783081, -0.6728063821792603, 0.5198459029197693, 0.37446171045303345, 0.8148608207702637, -0.5915803909301758, 0.46733197569847107, 0.11178958415985107, 0.6209975481033325, 0...
async def drop _ table _ moderator _ application ( self, ctx ) - > none : if not await self. table _ moderator _ application _ exists ( ) : return await ctx. send ( " * * table ` moderatorapplication ` doesn't exist! * * " ) mycursor, db = await the _ database ( ) await mycursor. execute ( " drop table moderatorapplica...
[ -0.6886196136474609, -0.09171662479639053, 0.33427461981773376, 0.24752554297447205, -0.05474069342017174, 0.792725145816803, -0.06787940859794617, 0.13028854131698608, -0.2202344834804535, 0.7170593738555908, 0.4538460373878479, 0.6269039511680603, -0.9314460754394531, 0.8164376020431519,...
def type ( self ) - > optional [ str ] : return pulumi. get ( self, " type " )
[ 1.0112429857254028, 0.7905400991439819, 0.38591691851615906, 0.6446436643600464, 1.7537083625793457, 1.0581133365631104, -0.23137730360031128, -0.821532130241394, 0.9103103280067444, 0.10480432212352753, 0.5545724630355835, 0.820533037185669, -0.3869383931159973, -1.0629408359527588, -0....
def load ( cls, filename ) : try : return randomwriter. load _ pickle ( filename ) except pickle. unpicklingerror : logging. warning ( " it is not a pickle object, will load it as a normal file " ) return randomwriter. load _ text ( filename )
[ -0.6396216750144958, -0.4267994463443756, 0.41457611322402954, -0.25333869457244873, -0.581935703754425, -0.17202670872211456, -0.29009735584259033, 0.36852967739105225, 0.68598473072052, -0.2136068046092987, 0.5921204686164856, -1.6154605150222778, -0.3077613115310669, -0.6435378193855286...
def deposit _ view ( request, pk ) : customer = customer. objects. get ( id = pk ) # set context. # leads, sales _ people, roof _ types, storeys, electric _ powers, payments are default options loaded in django admin # requirement, credit _ card, files are loaded from current customer # options allow to configure if a ...
[ 0.6958180069923401, 0.10577943176031113, 0.9089488387107849, 0.45523005723953247, -0.5869601964950562, 0.46556034684181213, 1.0816256999969482, -0.3270517587661743, -0.14224256575107574, 0.19513173401355743, 0.5041576623916626, 0.024162225425243378, 0.3274030387401581, 1.1519136428833008, ...
def isadmin ( ciphertext, key, iv ) : plaintext = aes _ cbc _ decrypt ( ciphertext, key, iv ) print ( " \ ndecrypted string : " ) print ( bytes ( plaintext ) ) pos = plaintext. find ( b'; admin = true ;') if pos = = - 1 : return false else : return true
[ 0.2181074470281601, 0.43698573112487793, 0.36136704683303833, -0.15247374773025513, -0.6221829056739807, 0.3438854515552521, -1.1271252632141113, 0.02697976678609848, 0.3375904858112335, 0.8368747234344482, -0.6840407252311707, 0.9584363102912903, -1.7772001028060913, -0.5342680811882019, ...
def build _ date ( self, job _ name, version ) : release _ dates = {'gov - release - prepare': { * * day _ minus _ 2, * * day _ minus _ 1, * * day _ plus _ 1, }, } return release _ dates [ job _ name ] [ version ]
[ -0.7154292464256287, -0.42348194122314453, 0.3106260299682617, -0.03241334855556488, -0.7393181324005127, 0.18330895900726318, -0.6971867084503174, 0.1856444776058197, -0.4246540367603302, 0.6098654270172119, -0.756834864616394, 0.6579711437225342, 0.050640784204006195, -0.2320114076137542...
def test _ replace _ snapshot _ dep ( self ) : pass
[ -0.5380726456642151, 0.38409867882728577, 0.22587941586971283, 0.411514550447464, -0.7689090967178345, 0.017682980746030807, 1.4044417142868042, 1.0837483406066895, 1.0876250267028809, -1.088566541671753, -1.8275103569030762, -0.5516383051872253, 0.6600480675697327, 0.31333673000335693, ...
def to _ list ( self ) : return self. _ return _ list ( self )
[ -1.0212721824645996, -0.7280932068824768, 0.3479301631450653, -0.18599513173103333, 1.0527018308639526, -0.3132777810096741, -0.4050692021846771, 0.5666705965995789, 1.2447575330734253, 0.19558008015155792, -1.2156636714935303, 0.2755506932735443, 0.10873263329267502, -0.16532295942306519,...
def add _ edge ( self, value1, value2 ) : node1 = none node2 = none for node in self. nodes : if node. value = = value1 : node1 = node elif node. value = = value2 : node2 = value1 node1. edges. append ( node2 ) if self. isundirected : node2. edges. append ( node1 )
[ -0.6240906715393066, 0.09915896505117416, 0.8339756727218628, 0.47555139660835266, 0.5301257967948914, 1.000268578529358, -0.575499415397644, 0.3595108389854431, -0.15561388432979584, 0.06478260457515717, 0.4085838198661804, 0.5738242864608765, -0.3015572428703308, 0.4078662097454071, -0...
def conditional _ variance ( self, gp ) : return self. gp _ link. transf ( gp )
[ -0.23837591707706451, -0.25399234890937805, 0.1379573792219162, 0.2531895637512207, -0.15416473150253296, 0.1796816736459732, 0.6507358551025391, -0.019026808440685272, -0.27807867527008057, -0.33408546447753906, -0.004550061654299498, 1.3099150657653809, -0.8937621712684631, 0.16520120203...
def find _ dust ( images, background, threshold, activeframe ) : dust _ positions = [ ] backsub = cv. createbackgroundsubtractormog2 ( ) fgmask = backsub. apply ( images [ activeframe ] ) bgsubtracted _ image = cv2. bitwise _ and ( images [ activeframe ], images [ activeframe ], mask = fgmask ) # plt. imshow ( fgmask, ...
[ 0.31727054715156555, -1.0286661386489868, 0.6052064299583435, 0.7485291957855225, 0.01499796099960804, -0.6264842748641968, 0.9071415662765503, 0.7711398005485535, -0.369337797164917, 0.39314159750938416, -0.7970280647277832, 0.03659598156809807, -0.5958983302116394, 0.8408665657043457, ...
def _ _ call _ _ ( self, val, last = none ) : # if they pass us in a string that's not at least # the lenght of our sequence, then return the # first element in our sequence if val is none or len ( val ) < self. sequence _ length : return self. sequence _ string [ 0 ] last _ value = val [ - self. sequence _ length : ] ...
[ -0.18038058280944824, -0.1259920448064804, 0.7940744757652283, -0.21366003155708313, -0.7544816136360168, -0.23409448564052582, -0.46763747930526733, -0.43853169679641724, 0.4438960552215576, -0.11882340162992477, 0.4872012436389923, 0.29257315397262573, -0.3956979811191559, -0.00377048063...
def api _ get _ dataset ( id = none ) : auth _ func ( ) if not id : datasets = db. session. query ( dataset ). all ( ) else : datasets = db. session. query ( dataset ). filter _ by ( id = id ) results = [ ] for elem in datasets : results. append ( elem. as _ dict ( ) ) return jsonify ( results )
[ -1.6038941144943237, 0.6477158069610596, 0.2372220903635025, -0.19320829212665558, -0.04874637350440025, -1.0942976474761963, -1.253985047340393, 0.05300933122634888, 0.46187683939933777, -0.3490636348724365, -0.019286740571260452, 0.9835023283958435, 0.27109813690185547, 0.419354885816574...
def send _ chaff ( self, length, buf ='' ) : # don't push chaff through until the dstproto is set. try : proto = self. getdstprotocol ( ) except attributeerror, _ exc : return - 1 msg = ccpmessage. chaff _ msg ( length, buf = buf ) raw _ buf = msg. pack ( ) proto. transport. write ( raw _ buf ) self. update _ txbytes (...
[ -0.45694026350975037, 1.2749028205871582, 0.562370777130127, -1.0546212196350098, -0.5233908295631409, 0.2457784116268158, 0.5834798216819763, -0.8217459917068481, -0.21235448122024536, -0.3615420460700989, -1.4408842325210571, 0.5644494891166687, -1.1333285570144653, -0.09056159853935242,...
def gen _ polyell ( minax, majax, pa _ deg = 0. 0, xcen = 0. 0, ycen = 0. 0, npts = 20 ) : polylst = [ ] pa _ rad = m. radians ( pa _ deg ) dt = m. pi * 2. 0 / npts for i in range ( npts + 1 ) : t = dt * i x = ( xcen + minax * m. cos ( t ) * m. cos ( pa _ rad ) - majax * m. sin ( t ) * m. sin ( pa _ rad ) ) y = ( ycen ...
[ 0.22049447894096375, -0.46055516600608826, 0.6247156262397766, -0.8549869060516357, -0.5453868508338928, 1.269901156425476, -0.5300478935241699, 0.02094421349465847, 0.3387342691421509, -0.04414787515997887, -0.11675307154655457, -0.788657546043396, 0.6780305504798889, -0.3985275328159332,...
def service _ provider ( self ) - > serviceprovider : return self. _ service _ provider
[ 0.020608700811862946, 0.2300843894481659, -0.24657627940177917, 0.17431432008743286, -0.4362000823020935, 1.2378109693527222, 0.5772368907928467, -0.799362063407898, 0.7773613929748535, -0.5925711989402771, 0.5694302320480347, 0.5086638927459717, -0.5502660870552063, -0.3432343006134033, ...
def _ _ init _ _ ( self, components, parameters, random _ state ) : self. parameters = copy. deepcopy ( parameters ) self. random _ state = random _ state self. components = [ ] for component in components : if isinstance ( component ( ), estimator ) : self. parameters [ component. name ] [ " random _ state " ] = self....
[ 0.017058854922652245, 0.2269854098558426, 0.6615537405014038, 0.3276662528514862, -0.17316412925720215, 0.5924107432365417, -0.6650569438934326, 0.44111180305480957, -0.08744540065526962, 0.6246272921562195, 0.04751238226890564, -0.25696638226509094, 0.08039531856775284, 0.4270281493663788...
def list _ files ( self, prefix, flat ) : layer _ path = self. get _ path _ to _ file ( " " ) path = os. path. join ( layer _ path, prefix ) +'*'filenames = [ ] remove = layer _ path if len ( remove ) and remove [ - 1 ]! ='/': remove + ='/'if flat : for file _ path in glob ( path ) : if not os. path. isfile ( file _ pa...
[ 0.3074728548526764, -0.5086551308631897, 1.0594120025634766, 0.021236032247543335, -0.3259020745754242, -0.28861144185066223, 0.15219835937023163, 0.0068876128643751144, 0.13192830979824066, 0.11932186782360077, 0.268481582403183, 0.5132895708084106, 0.10383646935224533, 0.2429592311382293...
def plot _ test _ c ( self, gtype ='vor ', btype = 2, size = ( 10, 8 ), print _ errors = true ) : ax = self. centroid [ 0 ] ay = self. centroid [ 1 ] if gtype = ='tri': xo = self. tri _ verts [ :, 0 ] yo = self. tri _ verts [ :, 1 ] elif gtype = ='vor': xo = self. vor _ verts [ :, 0 ] yo = self. vor _ verts [ :, 1 ] el...
[ 1.3469858169555664, 0.4634864032268524, 0.7794387936592102, 0.6603602170944214, 0.3316027522087097, 0.3499128222465515, 0.8803016543388367, -0.678383469581604, -0.009655800648033619, -0.5193406343460083, 0.5807941555976868, 0.5190763473510742, -0.48105546832084656, 0.23816238343715668, 0...
def smith _ minimax _ matrix ( data = none, matrix = none ) : m = none if data is not none : m = pairwise _ rank _ matrix ( data ) win _ losses = m - m. t elif matrix is not none : win _ losses = np. array ( matrix ) cnum = len ( win _ losses ) s = smith _ set ( wl = win _ losses ) s = list ( s ) ifail = np. ones ( cnu...
[ -0.2802470922470093, -0.5583142042160034, 0.6460232138633728, -0.24783851206302643, -0.526250422000885, -0.8570927381515503, 0.06601041555404663, 0.25276926159858704, 0.9792071580886841, 0.543779194355011, -0.05127520486712456, 1.4907934665679932, -0.34973427653312683, -0.2681981325149536,...
def created _ date ( self, created _ date ) : self. _ created _ date = created _ date
[ 1.3303678035736084, 0.3628591299057007, -0.41121673583984375, 0.6867479681968689, 1.2581504583358765, 0.7146288156509399, -0.12506671249866486, 0.7444681525230408, -0.6044561862945557, -1.6920729875564575, -0.39416882395744324, 0.19743767380714417, 0.6549766063690186, 0.825005292892456, ...
def detachvm ( self, return _ vm = false, replace _ vm = false ) : # job - owned instance, simply destroy after job is completed if self. job. accesskeyid : self. vmms. safedestroyvm ( self. job. vm ) elif return _ vm : self. preallocator. freevm ( self. job. vm ) else : self. vmms. safedestroyvm ( self. job. vm ) if r...
[ 0.10724128037691116, 0.1331365406513214, 0.6507953405380249, -0.4963609278202057, -0.2395884394645691, 0.26513007283210754, 0.3779374659061432, 0.6094691753387451, 0.4178791046142578, 0.1831555962562561, 0.1941584199666977, 0.1575528234243393, -0.8936530351638794, -0.14742062985897064, -...
def forward ( self, x ) : device = torch. device ( " cuda : 0 " if torch. cuda. is _ available ( ) else " cpu " ) x = x. to ( device ) x = self. resnet ( x ) x = x. view ( - 1, 512 ) if self. mcd : x = self. d0 ( x ) x = self. fc1 ( x ) if self. mcd : x = self. d1 ( x ) x = self. fc2 ( x ) if self. mcd : x = self. d2 (...
[ -0.38489460945129395, 0.943593442440033, 0.6009386777877808, -0.04115729779005051, -0.7458924055099487, 0.04094361141324043, 0.248878613114357, -0.643371045589447, 1.1941698789596558, -1.4328680038452148, 0.21145246922969818, -0.03916167467832565, 0.1111501157283783, -0.36727723479270935, ...
def get _ shelf ( self, index ) : return self. shelves [ index ]
[ -0.15478895604610443, 0.049728259444236755, 0.23466290533542633, 0.14591112732887268, 0.3506365418434143, 0.9049355387687683, 0.48040974140167236, -2.2652440071105957, -0.5474489331245422, -0.5389243960380554, 0.26339828968048096, 0.3730233907699585, -0.21277475357055664, -0.30243375897407...
def _ _ init _ _ ( self, znear = 1. 0, zfar = 100. 0, aspect _ ratio = 1. 0, fov = 60. 0, degrees : bool = true, r = _ r, t = _ t, k = none, image _ center = ( ( 0, 0 ), ), crop _ scale = ( 1, ), device = " cpu ", ) : super ( ). _ _ init _ _ ( device = device, znear = znear, zfar = zfar, aspect _ ratio = aspect _ ratio...
[ -0.1682664453983307, 0.14852984249591827, 0.8120895624160767, 0.42800673842430115, -0.6202983856201172, -0.866218090057373, -0.47744888067245483, 0.05598374456167221, 0.42272424697875977, 0.5761399865150452, -0.18453113734722137, -0.6721283793449402, 0.8911867141723633, 0.2503337860107422,...
def object _ copy ( obj, objx, flag _ obj = none, skip _ list = none ) : if skip _ list is none : skip _ list = list ( ) # programmer ’ s tip : note that the rest object and brcddb object are reversed. my humble apologies for that. if isinstance ( obj, dict ) : for k in obj. keys ( ) : if k not in skip _ list : v = obj...
[ -0.8861644268035889, 0.22833266854286194, 1.0141692161560059, 0.509848952293396, -0.46608367562294006, 1.346444845199585, -0.02933858521282673, -0.08468080312013626, 0.30467140674591064, 0.4080236852169037, -0.4961435794830322, 0.5368481278419495, -0.16497963666915894, -0.01283677387982606...
def checkout ( self, days = 0, weeks = 2 ) : self. enshelf ( self. shelf. library. checked _ out ) self. status = " checked out " self. due _ date = set _ due _ date ( days = days, weeks = weeks ) print ( " { book } checked out ; due date is { date }. \ n ". format ( book = self. title, date = self. due _ date ) )
[ 0.3034723699092865, 0.2528165876865387, 0.2818174362182617, -0.899351954460144, -0.15483660995960236, 0.8942359685897827, 0.031799785792827606, 0.03482794389128685, -0.8919057846069336, -0.25115686655044556, 0.5243752002716064, 0.443637490272522, 0.32804301381111145, 0.7849044799804688, ...
def get _ links ( self, params ) : self. _ check _ endpoint _ params ('get - links ', params ) return self. _ request ('get ','links ', params )
[ -0.9220364093780518, 1.1981557607650757, 0.31449437141418457, 1.03654146194458, 1.8981584310531616, -0.5960445404052734, -0.5482880473136902, -0.3592371642589569, -0.1460975855588913, -0.9273388981819153, 0.1442248821258545, 1.3848501443862915, -1.0039551258087158, 0.17644481360912323, -...
def livraison ( request ) : template _ name = " livraison. html " page _ title ='livraison |'+ settings. site _ name context = {'page _ title': page _ title, } return render ( request, template _ name, context )
[ 0.11492457985877991, -0.2939988374710083, 0.3237937092781067, -0.6761767268180847, 0.1396486908197403, 0.4629155993461609, -0.4094385802745819, 1.0548319816589355, 0.5915679931640625, 0.7497169375419617, 0.38759124279022217, -0.45138639211654663, -0.5335119962692261, -0.07074730843305588, ...
def delete ( self, ignore _ 404 _ errors = false ) : status = self. get _ status ( ) prediction _ job _ id = status [ " links " ] [ " self " ]. split ( " / " ) [ - 2 ] try : self. _ client. delete ( self. _ job _ path ( none, prediction _ job _ id ) ) except errors. clienterror as exc : if exc. status _ code = = 404 an...
[ -0.023304244503378868, 0.34061357378959656, 0.5354745388031006, 0.8395461440086365, 0.33190685510635376, 0.4494359493255615, 0.377685010433197, 1.2902933359146118, -0.719516932964325, 0.34001779556274414, -0.15005989372730255, 0.4060000479221344, -0.6807219386100769, 0.12611331045627594, ...
def _ unicode _ ci _ compare ( s1, s2 ) : return unicodedata. normalize ('nfkc ', s1 ). casefold ( ) = = unicodedata. normalize ('nfkc ', s2 ). casefold ( )
[ 0.41960951685905457, -0.39771831035614014, 0.47692814469337463, 0.5475760698318481, -0.5879471898078918, 0.0855725109577179, -0.5901724696159363, 0.07851998507976532, -0.4247606098651886, 0.2374304085969925, -0.4162338376045227, 0.1684141308069229, -1.1805781126022339, -0.4963265061378479,...
def _ initwindowactions ( self ) : pass
[ -0.10689309239387512, -1.1661877632141113, 0.3743337094783783, 1.4589309692382812, 0.26161277294158936, -0.2138535976409912, 1.7071056365966797, -0.17049604654312134, 0.6129298806190491, -1.06975257396698, -0.896111786365509, 0.1654096096754074, -0.6396652460098267, 1.231354832649231, -0...
def randomrestaurantjson ( ) : rand _ restaurant = getrandomrestaurant ( ) return jsonify ( rand _ restaurant. serialize )
[ -1.945123314857483, -1.0907256603240967, 0.1423293799161911, -0.800093948841095, -1.0635212659835815, -0.27673158049583435, -0.20570510625839233, 0.633492648601532, -0.19300960004329681, 0.18365460634231567, -1.2989810705184937, 1.3663415908813477, -0.6630460619926453, -0.44980984926223755...
def _ isclose ( self, point _ a, point _ b, rel _ tol = 1e - 6 ) : return math. isclose ( point _ a. z1 ( ), point _ b. z1 ( ), rel _ tol = rel _ tol ) and \ math. isclose ( point _ a. z2 ( ), point _ b. z2 ( ), rel _ tol = rel _ tol )
[ 0.33099430799484253, -0.5690168142318726, 0.8656628131866455, 0.6023085117340088, -0.14754484593868256, 0.40530335903167725, 0.14595288038253784, 0.010577910579741001, 0.2315380871295929, 0.8561868071556091, 0.6521217823028564, 0.15632078051567078, -0.49893566966056824, -1.2088384628295898...
def rotate ( self, matrix ) - > none : n = len ( matrix ) for i in range ( n / / 2 ) : for j in range ( i, n - i - 1 ) : matrix [ i ] [ j ], matrix [ ~ j ] [ i ], matrix [ ~ i ] [ ~ j ], matrix [ j ] [ ~ i ] = \ matrix [ ~ j ] [ i ], matrix [ ~ i ] [ ~ j ], matrix [ j ] [ ~ i ], matrix [ i ] [ j ]
[ -0.7493127584457397, 0.2902955114841461, 0.5241389870643616, -0.3361886143684387, 0.2804129719734192, -0.6689854860305786, 0.7855072617530823, -0.6547578573226929, 0.1807098686695099, 0.15330204367637634, 0.12264388799667358, 0.032258279621601105, -0.6571688652038574, -0.2347235381603241, ...
def get _ last _ matches _ avg _ goals _ scored ( all _ matches, team _ api _ id, date, x = 5 ) : last _ matches = get _ last _ matches ( all _ matches, team _ api _ id, date, x ) home _ matches = last _ matches [ ( last _ matches ['home _ team _ api _ id'] = = team _ api _ id ) ] away _ matches = last _ matches [ ( la...
[ -0.20158104598522186, 0.07052548974752426, 0.8243891000747681, -0.14550040662288666, 0.21703137457370758, 0.16861078143119812, -0.2620738446712494, -0.8188256025314331, -0.9075028896331787, 1.1555789709091187, 0.10228247940540314, -0.17133447527885437, 0.05043097585439682, -0.3849723935127...
def activeliststoxml ( statusopenonly = true ) : things = thingsapp ( ) xml = xml ( ) with xml. things ( xmlns ='http : / / things. ivonet. nl') : _ _ printinbox ( things [ " inbox " ], statusopenonly, xml ) _ _ printtoday ( things [ " today " ], statusopenonly, xml ) _ _ printnext ( things [ " next " ], statusopenonly...
[ -0.5761308073997498, -1.0054024457931519, 0.5415236353874207, -0.14552465081214905, -0.7383042573928833, 0.510497510433197, -0.9622043371200562, -0.08877325803041458, 0.38587936758995056, -0.5603924989700317, -0.5778515338897705, -0.020079098641872406, -0.012897701933979988, 0.135950386524...
def alias _ to _ modify ( self, other ) : # type : ( udmofficeobject ) - > iterator [ str ] return self. aliases ( set ( self. adconnection _ aliases ) & set ( other. adconnection _ aliases ) )
[ -0.3535335659980774, -0.6802151203155518, 0.6926883459091187, -0.689115047454834, -0.2836476266384125, -0.048752136528491974, -0.8337153196334839, -0.5339488983154297, 0.4100247025489807, 0.6242656707763672, 0.5735906362533569, 1.065501093864441, 0.3135315477848053, 0.39019179344177246, ...
def load _ data ( train _ ratio = 0. 8, validation _ ratio = 0. 1, seed = 100 ) - > ( pd. dataframe, pd. dataframe, pd. dataframe ) : data _ path = '.. / dataset / train. csv'data = pd. read _ csv ( data _ path ) return train _ test _ validation _ split ( data, train _ ratio, validation _ ratio, seed )
[ -0.23619773983955383, 0.4917163550853729, 0.45252642035484314, 0.47147926688194275, -0.35308772325515747, 0.06705545634031296, 0.06120191887021065, 0.28430911898612976, -0.6222413182258606, 0.08500771969556808, 0.12046533823013306, -0.3766934275627136, -0.3311888575553894, -1.1710509061813...
def test _ graph _ g _ suite _ traverse _ user _ group ( self ) : pass
[ -0.5633946061134338, 1.3786927461624146, 0.24575203657150269, 1.1349788904190063, -0.18646378815174103, 0.2179931104183197, 2.4860734939575195, -0.7962143421173096, -0.7111503481864929, -0.25155237317085266, -0.06417267769575119, 0.6247363090515137, -1.1367042064666748, 0.38277915120124817...
def init _ db ( ) : # todo : get params from a function db _ name = database. get ('db _ name ','writer') try : conn = connection ( use _ db = false ) cur = conn. cursor ( ) if db _ exists ( cur, db _ name ) : return true logger. debug ('db not found, will create it...') create _ db ( cur, db _ name ) except psycopg2. ...
[ -0.8102118372917175, 0.36547768115997314, 0.8863682746887207, 0.06811103969812393, 0.699642539024353, -0.014472609385848045, 0.5060361623764038, 0.23917940258979797, -0.5312359929084778, 0.06671744585037231, -0.3117688000202179, -0.7110316157341003, -0.4478761553764343, 0.6442843675613403,...
def winbio _ winbioenrollcapturewithcallback ( jitter ) : ret _ ad, args = jitter. func _ args _ stdcall ( [ " sessionhandle ", " enrollcallback ", " enrollcallbackcontext " ] ) raise runtimeerror ('api not implemented') jitter. func _ ret _ stdcall ( ret _ ad, ret _ value )
[ -0.050885047763586044, 0.010088260285556316, 0.6344785094261169, 0.9509037137031555, -1.0253055095672607, 0.7257866263389587, 0.8985877633094788, -1.099561095237732, 1.7275758981704712, 0.429168164730072, -0.3705594539642334, 0.1981704980134964, -0.3030179440975189, 1.4614843130111694, -...
def post ( self, request, id ) : user = models. user. objects. get ( pk = id ) user. locked = true user. save ( ) messages. success ( request, f " { user. get _ full _ name ( ) }'s profile has been locked. " ) return redirect ( " accounts : list " )
[ -0.08297214657068253, 0.6752907633781433, 0.454186350107193, 0.9082612991333008, 0.37972167134284973, 0.6106811165809631, 1.0983978509902954, -0.9500136375427246, 0.36493638157844543, 0.07253482937812805, -1.352095127105713, -0.0824078768491745, -0.5000810623168945, -0.07536888122558594, ...
def get _ coords ( self, transcript = none ) : if self. kind = ='c': chrom = transcript. tx _ position. chrom start = cdna _ to _ genomic _ coord ( transcript, self. cdna _ start ) end = cdna _ to _ genomic _ coord ( transcript, self. cdna _ end ) if not transcript. tx _ position. is _ forward _ strand : if end > start...
[ -0.9637826085090637, 0.1805221438407898, 0.7103778123855591, 0.2813703119754791, -0.21072159707546234, 0.030315782874822617, 0.11905083805322647, -0.0426781103014946, -0.9225978255271912, 0.02122144028544426, -0.6984201073646545, 0.37005528807640076, -0.5088239908218384, -0.477289885282516...
def random _ views _ for _ dask _ array ( array, n _ random _ samples, n _ chunks ) : # find the indices of the chunks to extract indices = [ np. random. randint ( dimsize, size = n _ chunks ) for dimsize in array. numblocks ] # determine the boundaries of chunks along each dimension chunk _ indices = [ np. hstack ( [ ...
[ -0.7254782319068909, 0.06458650529384613, 0.9160224795341492, 0.30929428339004517, -0.6796166896820068, -0.44327226281166077, 0.6107510328292847, -0.13711000978946686, 0.14061661064624786, -0.1414870321750641, 0.8139778971672058, -0.5204456448554993, 0.202066570520401, 0.6556031107902527, ...
def set _ value ( self, new _ value, problem = none ) : self. _ _ genome = new _ value. copy ( ) # using copy prevents unwanted side effects ( happened with mutations ) if problem : self. evaluate ( problem )
[ -0.22463810443878174, -0.3275774121284485, 0.4288243055343628, 0.5696497559547424, -0.21414050459861755, 0.5137110948562622, -0.7639874219894409, 0.46462029218673706, -0.2533054053783417, 0.3583323657512665, -0.28860580921173096, 0.8594323992729187, -0.5447226166725159, 0.7131868600845337,...
def get _ all _ loads _ pq ( self ) : loads = self. app. getcalcrelevantobjects ('*. elmlod') p _ base = { } q _ base = { } for load in loads : p _ base [ load. loc _ name ] = load. plini q _ base [ load. loc _ name ] = load. qlini return p _ base, q _ base
[ 0.3810175359249115, -1.3284673690795898, 0.478320449590683, -0.2864742577075958, -0.2589033544063568, 0.88311767578125, -1.1839429140090942, -1.0103682279586792, -0.3665316104888916, -0.01003534346818924, -0.4676467776298523, -0.6283772587776184, 0.29568102955818176, 0.2586148977279663, ...
def dropdelay ( self ) : return self. expiry
[ -0.07027281820774078, -0.2618545889854431, 0.6992653608322144, -0.7324730753898621, -0.6028018593788147, 0.9093155860900879, -0.7732563018798828, 0.04688763990998268, 0.24315164983272552, -0.12866151332855225, -0.9272056221961975, -0.31423312425613403, -0.5279101729393005, -0.4084093570709...
def mousedoubleclickevent ( self, event ) : self. vm. neweditor ( )
[ 0.09045373648405075, 0.20342451333999634, 0.2666443884372711, 0.6668460965156555, 0.06599896401166916, 0.5635156035423279, 0.4351901113986969, 0.005842643324285746, -0.5509638786315918, -0.03066355548799038, -0.7721115946769714, 0.6348642110824585, 0.5195122361183167, -0.0583077110350132, ...
def convex ( self, * args ) : return _ topods. topods _ shape _ convex ( self, * args )
[ 0.2432861179113388, -0.06640225648880005, 0.45499148964881897, 0.7421566843986511, -0.031679652631282806, 0.5908213257789612, 0.3019913136959076, -1.3152048587799072, -0.3982725143432617, 0.0793345645070076, 0.005819063168019056, 0.04606084153056145, -0.0969148725271225, -0.777425110340118...
def getlooks ( self ) : pass
[ -0.37812748551368713, -0.13574478030204773, 0.24614951014518738, 0.9876585006713867, 0.11032875627279282, 0.8598850965499878, 0.39555269479751587, -1.108173131942749, 0.38929516077041626, -0.8738908767700195, 0.7538788914680481, 1.3600107431411743, -0.423480361700058, 0.8895097970962524, ...
def create _ block ( self, x, e, stack _ id, block _ id, stack _ type, nb _ poly ) : def reg ( layer ) : return self. _ restore ( layer, stack _ id ) # update name ( useful when share _ weights _ in _ stack = true ) def n ( layer _ name ) : return " / ". join ( [ str ( stack _ id ), str ( block _ id ), stack _ type, la...
[ -0.08939026296138763, 0.7049651741981506, 0.8817561268806458, 0.4365719258785248, 0.6345757246017456, -0.29481858015060425, 0.6777576804161072, -1.014228105545044, -0.44043776392936707, 0.5174297094345093, -0.719295859336853, 0.7868527173995972, 0.41499680280685425, 0.21317021548748016, ...
def get _ prefix ( self ) : return self. _ prefix
[ 0.14169570803642273, 0.2242235392332077, 0.2992938160896301, 0.5029111504554749, 0.40546801686286926, 0.17573347687721252, 0.18313580751419067, -0.11941422522068024, 0.8497134447097778, -0.9388112425804138, -0.09793362021446228, 0.9544104337692261, -0.11651818454265594, -0.4045299291610718...
def replace _ chain ( ) : # get validity of blockchain is _ chain _ replaced = blockchain. replace _ chain ( ) if is _ chain _ replaced : response = {'message':'chain was replaced by longest one. ','new _ chain': blockchain. chain } else : response = {'message':'current chain is up to date, no changes were made. ','act...
[ -0.48146888613700867, -0.5212288498878479, 0.5447067022323608, -0.00657837837934494, 1.0223990678787231, -1.1069368124008179, -0.7688196301460266, 0.4499475657939911, -0.29786625504493713, 0.3871166706085205, -0.9388166666030884, 0.9155970215797424, -0.8030087351799011, 0.01172243710607290...
def format _ img ( img, cfg ) : img, ratio = format _ img _ size ( img, cfg ) img = format _ img _ channels ( img, cfg ) return img, ratio
[ 0.2695845365524292, -0.3015570044517517, 0.29855772852897644, -0.5904098153114319, -0.4880038797855377, -1.14297354221344, -0.0599546879529953, -0.1052827313542366, 0.0884341150522232, 0.28692957758903503, 0.8830042481422424, -0.6806818842887878, 0.744642972946167, 1.8380872011184692, 1....
def z _ height _ to _ terrain ( self, z ) : h = ( z + 16 ) / 32 * 255 return h
[ 0.1506330519914627, -0.5944908857345581, 0.38366997241973877, -0.03719335049390793, -0.3288993239402771, 0.6413202881813049, 0.5525689125061035, -0.9617584943771362, 0.21629689633846283, 0.23273038864135742, -0.36086222529411316, -0.34157586097717285, -0.523274302482605, -0.390534192323684...
def is _ paired ( self ) : return bool ( self. _ peer _ device _ bt _ addr ) \ and self. _ bluetooth. is _ paired _ to _ address ( self. _ peer _ device _ bt _ addr )
[ -0.37189438939094543, -0.28956034779548645, 0.7343666553497314, 0.028794100508093834, 0.7554982304573059, 0.14260311424732208, -0.2724086046218872, 0.1902521401643753, 0.6743014454841614, -0.3255159556865692, 0.05379865691065788, 0.4452332854270935, -0.9547657370567322, 0.28166908025741577...
def validate ( self, schema, instances ) : mydir = self. mydir jing = f " { mydir } / jing / jing. jar " instancesrep = " ". join ( f'" { instance } "'for instance in instances ) ( good, stdout, stderr ) = run ( f " " " java - jar { jing } - t " { schema } " { instancesrep } " " ", workdir = none, ) info = [ ] errors =...
[ -0.9096636176109314, -0.49871718883514404, 0.7176137566566467, -0.2743310332298279, 0.10405369102954865, 0.1909767985343933, 0.027244048193097115, -0.09097306430339813, -0.9746097326278687, 0.5989444255828857, 0.06873077154159546, -0.08124388009309769, -0.12889577448368073, 0.5348448157310...
def in _ waiting ( self ) : if not self. is _ open : raise serialutil. portnotopenerror return self. status _ queue. qsize ( )
[ -0.289987176656723, -0.033291567116975784, 0.5484897494316101, -0.6203526854515076, -0.3892252445220947, 0.38478806614875793, -0.19400273263454437, 0.6508384346961975, -0.16105994582176208, -1.0193672180175781, -0.413488507270813, 0.2216789275407791, -0.49147701263427734, -0.01129559148102...
def location ( self ) - > str : return pulumi. get ( self, " location " )
[ 0.2190219908952713, -0.34800463914871216, 0.4048655033111572, 0.17743009328842163, 0.7626453042030334, 1.2138785123825073, 0.4917268455028534, 0.4296562373638153, 0.4276277720928192, 0.17195431888103485, 0.6824976205825806, 0.4566878378391266, 0.8631269931793213, -1.5780937671661377, -1....
def _ firms _ clustering ( self, df _ firms, res _ data ) : logger. debug ('computing geographic clusters in consecutive fires.') firms _ iter = df _ firms [ df _ firms ['iter _ ev'] ] [ ['latitude ','longitude ','cons _ id ','clus _ id ','event _ id'] ] for event _ id in np. unique ( firms _ iter. event _ id. values )...
[ -0.3138154447078705, 0.30128926038742065, 0.5773939490318298, -0.04373672604560852, 0.6939992904663086, -0.44912096858024597, 0.19907031953334808, 0.6311556100845337, -0.463864266872406, 0.4556836187839508, 0.8104287385940552, 0.7118553519248962, 0.7383151054382324, 0.26258987188339233, ...
def ct _ normalize ( x _ in ) : return ( x _ in - ct _ mean ) / ct _ std
[ 1.0456264019012451, 0.06076059862971306, 0.08746369183063507, 0.012895436957478523, -0.7337501049041748, 0.16286776959896088, -0.14378713071346283, 0.41505542397499084, -0.29184311628341675, 0.8183273673057556, 0.19809332489967346, -0.04399441182613373, -0.7956998348236084, -1.208345651626...
def prev _ time ( self, event ) : self. time _ update ( self. stime. val - self. time _ step )
[ 0.12864640355110168, 0.7210156917572021, 0.6092394590377808, 0.17100705206394196, -0.464756578207016, 0.11405590176582336, 0.43295201659202576, 0.1586860716342926, -0.6005539298057556, 1.389394998550415, -0.5808677673339844, -0.42767059803009033, -0.15400700271129608, 0.83491450548172, -...
def merge _ ivfs ( self, index _ path : union [ str, path ], ivfdata _ path : union [ str, path ], ivfindex _ paths : list [ union [ str, path ] ] = none ) - > int : # collect ivf data from subindexes ivfs = list ( ) if not ivfindex _ paths : ivfindex _ paths = list ( self. subindex _ path _ totals. keys ( ) ) for subi...
[ -1.1142609119415283, 0.6507127285003662, 0.7216885089874268, 0.40345871448516846, 0.5048374533653259, -0.1942635178565979, 0.6240252256393433, 0.4122602641582489, 0.12513722479343414, -0.10914719104766846, -0.7952819466590881, -0.22639425098896027, -0.6748822927474976, -0.8884711265563965,...
def tiles _ to _ geojson ( tiles ) : geojson ='{ " type " : " featurecollection ", " features " : ['first = true for tile in tiles : prop ='" properties " : { { " x " : { }, " y " : { }, " z " : { } } } '. format ( tile. x, tile. y, tile. z ) geom ='" geometry " : { } '. format ( json. dumps ( mercantile. feature ( til...
[ -0.4548795819282532, -1.1240869760513306, 0.5826637744903564, -0.7563468217849731, -0.650611400604248, -0.19141031801700592, 0.14763039350509644, -0.44062045216560364, -0.08191031962633133, 0.6223577260971069, -0.8825849294662476, 0.6266336441040039, 0.3997267782688141, 0.37399357557296753...
def code _ gen ( ts, ns ) : cases = [ ( cpp _ typesystem, ns. cpp _ typesystem ), ( typesystem _ pyx, ns. typesystem _ pyx ), ( typesystem _ pxd, ns. typesystem _ pxd ), ] for func, basename in cases : s = func ( ts, ns ) fname = os. path. join ( ns. src _ dir, basename ) orig = none if os. path. isfile ( fname ) : wit...
[ -0.47167474031448364, 0.021659808233380318, 0.8433829545974731, 0.028009911999106407, 0.854161262512207, 0.014111987315118313, 0.3782462179660797, -0.738802433013916, 0.009201041422784328, -0.3488246202468872, -0.18878212571144104, -0.1611197590827942, 1.1059597730636597, 0.834648311138153...
def message _ retry _ set ( self, retry ) : if retry < 0 : raise valueerror ('invalid retry.') self. _ message _ retry = retry
[ 0.5482556223869324, -0.2362981140613556, 0.287629097700119, 0.10934595763683319, 0.4111071228981018, 0.34611138701438904, -0.10099206864833832, -0.6522126793861389, -0.08275561779737473, -0.059613388031721115, -0.2695141136646271, 0.4268820583820343, -1.2255609035491943, 0.1988568753004074...
def getfiletext ( filename ) - > str : with open ( filename ) as f : doc = " " addflag = false for line in f : if line [ : 6 ] = ='< text >': addflag = true continue elif line [ : 7 ] = ='< / text >': addflag = false if addflag : doc + = line [ : - 1 ] return doc
[ 0.6842628717422485, 0.19129793345928192, 0.8036441206932068, 0.8217805027961731, -0.03842739388346672, 0.34018632769584656, 0.16889889538288116, 0.3486732840538025, -0.11710662394762039, 0.9122433066368103, 0.7038642168045044, -0.9170128107070923, -0.17577245831489563, -0.3196616470813751,...
def with _ scenes ( self, scenes ) : b = deepcopy ( self ) b. config ['scenes'] = scenes return b
[ -0.22047847509384155, 0.03961068391799927, 0.34578806161880493, 0.5907958745956421, -0.6004884243011475, 0.6851332783699036, -0.38977617025375366, -0.6470206379890442, 1.1875152587890625, 0.08338245749473572, -0.4603217840194702, -0.09758168458938599, -0.6328692436218262, 0.107018046081066...
def test _ create _ pfe _ device _ 2 ( self, context ) : # these could come from a data file id = " post _ vedevices _ allconfigadminmulticasttruetwo " name = " post _ vedevices _ allconfigadminmulticasttruetwo " devicehost = " post _ vedevices " # define a test step with pytest. allure. step ( " create client ` { } ` ...
[ 0.5481175780296326, 0.26219111680984497, 0.6695905923843384, 0.46355655789375305, 0.26601067185401917, 0.7281079888343811, 0.289564311504364, -0.04137216508388519, 0.39444106817245483, -0.6617677211761475, -0.4714735448360443, 0.2924981117248535, -0.5815569758415222, 0.610114336013794, 0...
def is _ earlier _ version ( a, b ) : return ( version _ compare ( a, b ) = = - 1 )
[ -0.03632576763629913, -0.5412231683731079, 0.7375816106796265, 0.7970449924468994, 0.03169611096382141, 0.5525059700012207, -0.5385685563087463, 0.17850300669670105, 0.2449396252632141, 0.5324184894561768, 0.06274016946554184, 0.5203593373298645, -0.1919112354516983, 0.38849160075187683, ...
async def get _ operator ( self, operator : operator ) - > mythicresponse : if operator. id is none : # need to get the operator's id first, which means we need to get all operators and match the username url = " { } { } : { } / api / v { } / operators / ". format ( self. _ http, self. server _ ip, self. _ server _ por...
[ -0.9903292655944824, 0.07256560772657394, 0.7488441467285156, 0.4760473966598511, 0.15487487614154816, -1.0068150758743286, -0.1467835158109665, 0.018535200506448746, 0.7914435267448425, 0.15019604563713074, -0.07801348716020584, -0.006849517114460468, -0.5549657344818115, -0.1169255375862...
def deactivate ( self ) : pass
[ -0.10956203937530518, -1.4685090780258179, -0.041925881057977676, 0.6065396070480347, 0.4281553030014038, 0.23523102700710297, 1.1641923189163208, 0.8527763485908508, -0.6184759140014648, -0.7211472988128662, -0.7991520166397095, 0.5648325681686401, -0.508836030960083, -0.4869465231895447,...
def enqueue ( self, val ) : self. _ dll. append ( val )
[ 0.3562754988670349, -0.24716317653656006, 0.43482452630996704, -0.416343629360199, -0.11049047112464905, 1.0320216417312622, -0.599372923374176, -0.9770957231521606, 0.3309372365474701, -0.39538949728012085, -0.7406023740768433, 0.7458130717277527, -0.01752828061580658, 1.2843847274780273,...
def url _ cutter ( url ) : if len ( url ) < 50 : return url position = url. find ('/') if position = = - 1 : return f'{ url [ : 28 ] }... { url [ - 19 : ] }'position + = 1 if url [ position ] = ='/': position + = 1 if position = = len ( url ) : return f'{ url [ : 28 ] }... { url [ - 19 : ] }'position = url. find ('/ ',...
[ -0.8528452515602112, -0.3690197765827179, 0.8314621448516846, -0.4906100630760193, -0.5042157769203186, 0.09628502279520035, 0.7937154769897461, 0.03898657485842705, 0.6257022619247437, 0.26848629117012024, 0.06918331235647202, 0.10497759282588959, 0.2073712944984436, -1.025133728981018, ...
def get _ underlying _ classifier ( self ) : return self. ridge
[ -0.08482209593057632, -0.8785179257392883, 0.5603145360946655, -1.0731720924377441, 0.4016048014163971, 0.9522776007652283, 0.7867178320884705, 0.09345652908086777, -0.6526350378990173, -1.4529917240142822, 0.46269118785858154, 2.055860757827759, -0.3324609100818634, 0.5498651266098022, ...
def merge _ vectors ( v1, v2 ) : if ( len ( v1 ) = = 0 ) : return v2 if ( len ( v2 ) = = 0 ) : return v1 value = [ ] index = [ ] if v1. _ index = = v2. _ index : # no need to check indices = > much faster value = [ x1 + x2 for ( x1, x2 ) in izip ( v1. _ value, v2. _ value ) ] index = v1. _ index else : # a marker at th...
[ -0.43279731273651123, -0.5577678680419922, 0.8510540127754211, 0.0102313794195652, -0.9401412606239319, 0.06291171163320541, 0.21424426138401031, -0.2053569108247757, 0.5991114974021912, 0.037575915455818176, -0.28762274980545044, 0.08185776323080063, -0.2296740561723709, -0.54314124584198...
def createmongopolygon ( thefeature ) : arraycoordinates = [ ] dataset = [ list ( pointpair ) for pointpair in thefeature. exterior. coords ] # ringcoordinates = [ list ( pointpair ) for ring in thefeaturepoints for pointpair in ring ] arraycoordinates. append ( dataset ) # adding any interior polygons if list ( thefea...
[ -0.7385388016700745, -0.6963895559310913, 0.48404189944267273, -0.040596067905426025, 0.5934893488883972, 0.3371654152870178, -0.8456162810325623, -0.12516044080257416, 0.5772446990013123, 0.3413897752761841, -0.5893985629081726, 0.2621062099933624, -0.7714411020278931, -0.6885634064674377...
async def create _ event _ message ( self, message : eventmessage ) - > mythicresponse : url = " { } { } : { } / api / v { } / event _ message ". format ( self. _ http, self. server _ ip, self. _ server _ port, self. _ server _ api _ version ) resp = await self. post _ json ( url, data = await obj _ to _ json ( message...
[ -0.7652950882911682, -0.3155101239681244, 0.6773399710655212, 0.08222116529941559, 1.215299367904663, -0.37040629982948303, -0.30052220821380615, -0.284332811832428, 0.16750158369541168, 0.037942711263895035, -0.3036167621612549, 0.20464922487735748, -0.5907001495361328, 0.2463395893573761...
def process ( email _ msg : dict ) - > dict : logger. debug ('ejv _ failures : % s ', email _ msg ) # fill in template failed _ jv _ file _ name = email _ msg. get ('filename') file _ location = email _ msg. get ('miniolocation') bcol _ admin _ email = current _ app. config ['bcol _ admin _ email'] feedback _ attachmen...
[ 0.20457136631011963, 0.28802645206451416, 0.6085187196731567, -1.1322379112243652, -0.46714746952056885, -0.5028508901596069, 0.3351127505302429, -0.735440731048584, -0.4158492088317871, 0.5271285772323608, -0.4834845960140228, 0.3948201537132263, -0.06020486727356911, 0.26147976517677307,...
def cal _ pathsim _ all ( g ) : # # # l = [ 1, 2, 3, 4, 5 ] # print ( list ( product ( l, l ) ) ) # # 合 # print ( list ( combinations ( [ 1, 2, 3, 4, 5 ], 2 ) ) ) mimnumber _ set = g. keys ( ) # all disease print ( len ( mimnumber _ set ) ) # all disease mimnumbers d _ combination _ list = list ( combinations ( mimnumb...
[ -0.1270630955696106, 0.5762717127799988, 1.0623159408569336, 0.86286461353302, -0.559562623500824, -0.34859633445739746, 1.354835033416748, 0.7289392352104187, 0.34351488947868347, 0.364795982837677, -0.8133199214935303, -0.7061389088630676, -0.4733201563358307, -0.5890989899635315, 0.17...
def is _ valid _ bool ( self ) : if self. datatype = = " bool " and ( self. value = = " true " or self. value = = " false " ) : return true return false
[ -0.4370754361152649, -0.017603565007448196, 0.6667594909667969, 0.776630163192749, -0.551420271396637, 1.0044331550598145, -0.3975452780723572, 0.35741308331489563, -0.3657439351081848, 0.1336188167333603, 0.11347056180238724, 0.3106500208377838, -0.09361671656370163, 0.3043031394481659, ...
def getmenuchoice ( self, max ) : while true : input = raw _ input ('>') try : num = int ( input ) except valueerror : print'invalid choice. please choose a value between 1 and ', max continue if num > max or num < 1 : print'invalid choice. please choose a value between 1 and ', max else : return num
[ -1.540429711341858, -0.054301775991916656, 0.8204977512359619, 1.2035361528396606, -0.5195989012718201, 0.7133842706680298, 0.27055832743644714, -0.129192516207695, -0.32742711901664734, -0.7454423308372498, 0.33282020688056946, 0.6731212139129639, -0.5637488961219788, -0.07978232949972153...
def protocols ( self ) - > optional [ sequence [ str ] ] : return pulumi. get ( self, " protocols " )
[ 0.10922828316688538, 0.682650625705719, 0.32217538356781006, 1.039805293083191, 1.1363011598587036, 1.0102897882461548, -0.3886527717113495, -0.9477821588516235, 1.1795705556869507, 0.28549057245254517, -1.005462646484375, 0.09133172035217285, -0.7381849884986877, -1.020446538925171, -1....
async def on _ message ( message ) : # if the message is from the bot itself ignore it if message. author = = client. user : pass else : # try to evaluate with the command handler try : await ch. command _ handler ( message ) # message doesn't contain a command trigger, so ignore it except typeerror as e : pass # any o...
[ 0.9390406012535095, 0.10151520371437073, 0.5359546542167664, 0.24691656231880188, 0.4413394629955292, 0.2648061215877533, -0.243183434009552, 0.24210861325263977, -0.1297222077846527, -0.8062055110931396, 0.6635953187942505, 0.15290483832359314, -0.7797321677207947, 0.622125506401062, 0....
def _ getkeyfromregistry ( self ) : if not self. _ registry : return try : self. _ registry _ key = self. _ registry. getkeybypath ( self. _ key _ path ) except runtimeerror : pass if not self. _ registry _ key : return for sub _ registry _ key in self. _ registry _ key. getsubkeys ( ) : self. addsubkey ( sub _ registr...
[ -0.018638066947460175, 0.9878399968147278, 0.4875391721725464, 0.22958876192569733, 1.0237675905227661, -0.06960650533437729, 0.6792212128639221, 0.13344798982143402, -0.4467363655567169, 0.37266719341278076, -0.5885270833969116, 0.5557124614715576, -0.29320836067199707, -0.189199671149253...