text
stringlengths
25
2.19k
embedding
listlengths
768
768
def system _ checks ( ) : print ( " - - > performing system checks : " ) " " " python version check " " " version = float ( sys. version [ : 3 ] ) if version < 2. 3 : print ( " * python version 2. 3 or higher required " ) print ( " * current version is : % s " % sys. version [ : 5 ] ) exit _ message ( ) else : print ( ...
[ -0.23302382230758667, -0.5451378226280212, 0.8998919725418091, 0.701710045337677, 0.6947458386421204, 1.6323012113571167, 0.8375324606895447, -0.8379279375076294, -0.25076091289520264, 0.2190522700548172, 0.6058778762817383, 0.47437262535095215, -0.12444554269313812, 0.8076015710830688, ...
def intervention _ targets ( p, k, size, replace = true, random _ state = none ) : rng = np. random. default _ rng ( random _ state ) # build intervention sizes if isinstance ( size, tuple ) and len ( size ) = = 2 : min _ size, max _ size = size sizes = rng. integers ( size [ 0 ], size [ 1 ] + 1, k ) elif isinstance ( ...
[ -0.7627573609352112, 0.4027017056941986, 0.676647961139679, -0.5349898338317871, -0.2472246289253235, -0.3942202925682068, -0.36362960934638977, 1.1432065963745117, 0.6845362782478333, 0.9895462989807129, 0.30582717061042786, 0.2982535660266876, -1.2355402708053589, -0.9486245512962341, ...
def check _ key _ type ( spec ) : if spec. get ( " type ", " hashed " ) not in [ " hashed ", " integer " ] : raise runtimeerror ( " invalid key type key spec % s " % spec ) if spec. get ( " type ", " hashed " )! = " hashed " : return if " size " not in spec : raise runtimeerror ( " size required for hashed key % s " % ...
[ 0.07415910065174103, 0.1643485426902771, 0.6489886045455933, -0.3481239676475525, 0.6367959380149841, 0.26101940870285034, 0.09412765502929688, -0.2834342420101166, -0.46461206674575806, 0.36611393094062805, 0.1800050437450409, 0.25940486788749695, -0.37165704369544983, 1.3812816143035889,...
def test _ exc _ raised ( self ) : @ retried ( ) def f ( ) : raise valueerror with self. assertraises ( valueerror ) : f ( )
[ 1.070627212524414, 0.31099987030029297, 0.27998560667037964, 0.6867570877075195, 1.3006174564361572, -0.08634540438652039, -0.04893680289387703, 0.614165723323822, -0.04421591758728027, -0.10060731321573257, -0.21356745064258575, 0.15403147041797638, -0.1556236296892166, -0.523419499397277...
def add _ rules ( self, context, id, name, vals ) : neutron = neutronapi. get _ client ( context ) body = self. _ make _ neutron _ security _ group _ rules _ list ( vals ) try : rules = neutron. create _ security _ group _ rule ( body ). get ('security _ group _ rules') except n _ exc. neutronclientexception as e : exc...
[ -1.0056077241897583, 0.7386578321456909, 0.36641964316368103, 0.12119417637586594, 0.512953519821167, 0.3142761290073395, -1.131567120552063, -0.538638174533844, -0.0746065080165863, 0.8386961817741394, -0.14285032451152802, 0.28801870346069336, -1.1185897588729858, 0.35822924971580505, ...
def get _ lldp _ neighbors ( device ) : commands = ['show lldp neighbors'] response = issue _ request ( device, commands ) neighbors = response ['result'] [ 0 ] ['lldpneighbors'] # neighbors is returned as a list of dictionaries return neighbors
[ -0.3967586159706116, -0.12768201529979706, 0.5296081304550171, 0.21508683264255524, -0.7090465426445007, 0.3787771165370941, -0.7305103540420532, -0.20368745923042297, 0.4929904639720917, -0.3145968019962311, -0.4646690785884857, 0.8626599907875061, -0.4570179283618927, 0.2926025390625, ...
def dominance _ filter ( self ) : return self. _ dominance _ filter
[ -0.11949946731328964, -0.5420820713043213, 0.45136573910713196, 0.9558393359184265, 0.15904119610786438, 0.7857685089111328, 0.8627105951309204, 0.024328965693712234, 0.5546743273735046, -0.9753881096839905, -0.06906117498874664, 0.6923113465309143, 0.19089333713054657, -0.1346877962350845...
def is _ connected ( self ) : return self. _ bluetooth. is _ connected ( )
[ -0.7288025617599487, -0.4740738272666931, 0.6039417386054993, 0.7573071718215942, 0.6220303773880005, -0.365437775850296, -1.1991132497787476, -0.17184707522392273, -0.5705853700637817, 0.015921354293823242, -0.7669497728347778, 0.28098490834236145, -0.5144374966621399, -0.3143573701381683...
def header ( self, serialised : bool = false ) - > any : if serialised : version = little _ endian ( num _ bytes = 4, data = self. version ) timestamp = little _ endian ( num _ bytes = 4, data = self. timestamp ) nonce = little _ endian ( num _ bytes = 6, data = self. nonce ) return ( version + self. prev _ block _ has...
[ -0.01207512617111206, -0.2470756322145462, 0.9721945524215698, -0.32768702507019043, -0.44235801696777344, -0.046494536101818085, -0.14134186506271362, -0.35298529267311096, 0.08128472417593002, 0.36358609795570374, -1.1724947690963745, 0.3139992654323578, -1.0752555131912231, -0.601817429...
def inputmatrix ( ) : nf = int ( input ( " ingrese el numero de filas de la matriz : " ) ) nc = int ( input ( " ingrese el numero de columnas de la matriz : " ) ) print " ingrese los elementos de la matriz a fila por fila con un espacio luego enter " print " ejemplo para una matriz de orden 3 : ", " \ n ", " 3 5 1 ", "...
[ 0.7170965075492859, 0.2208065241575241, 0.5936885476112366, 0.022300340235233307, 0.0987091064453125, 0.190602108836174, 0.23345722258090973, -0.03641984984278679, -0.48203957080841064, -0.2956496775150299, 0.07751750200986862, -0.43930473923683167, 0.017436694353818893, 0.6284831166267395...
def job _ ids ( self ) : return self. _ _ job _ ids
[ -0.17005027830600739, -0.516189694404602, 0.17688171565532684, 0.1379452347755432, 0.4740884602069855, 0.6473243236541748, -0.16976547241210938, 0.26502716541290283, -0.06427809596061707, -0.427364706993103, -0.6008955240249634, 0.7370581030845642, -0.7230665683746338, -0.18984434008598328...
def makebundle ( self, localparentpath, subdirlist ) : fileu = fileutil ( ) dirpathlist = [ os. path. join ( localparentpath, subdir ) for subdir in subdirlist ] okt = fileu. bundletarfile ( self. _ _ localstashtarfilepath, dirpathlist, mode = " w : gz ", recursive = true ) return okt
[ 0.6001209020614624, 0.5113446712493896, 0.36808574199676514, -0.11133014410734177, -0.793938159942627, 0.7374569773674011, 0.8417791724205017, 0.30470529198646545, -0.8576859831809998, -0.4150407910346985, -0.1767367571592331, -0.4468190371990204, -0.326841801404953, 0.42885494232177734, ...
def inputs ( self, value ) : if isinstance ( value, dict ) : self. _ update _ values ('inputs ', value ) else : raise invalidvalue ( f'value is not valid dictionary received : { value }')
[ -1.3550230264663696, 0.41846999526023865, 0.6549246311187744, -0.16837239265441895, -0.11219114065170288, 0.6608526706695557, 0.23137898743152618, -0.4224308729171753, 0.6946814656257629, -0.2543564438819885, 0.5295038223266602, -0.06826312839984894, -0.11144675314426422, 0.701063215732574...
def setworkingdir ( self, dirname ) : pass
[ -2.1583104133605957, -0.24963800609111786, 0.26405298709869385, 0.5900492072105408, 0.07179856300354004, 0.25260835886001587, 0.9638413786888123, 0.47901609539985657, 0.11238639056682587, -1.0745784044265747, -0.47247248888015747, 0.5789461731910706, -0.8685078024864197, -0.190692096948623...
def test _ batch _ redetect _ invalid _ rectangle ( self ) : for detector in self. detectors : with self. subtest ( detectortype = detector. detectortype ) : with pytest. raises ( lunasdkexception ) as exceptioninfo : detector. redetect ( images = [ imageforredetection ( image = vlimage _ one _ face, bboxes = [ invalid...
[ 0.18098635971546173, -0.002251522382721305, 0.5259461402893066, 0.4863547384738922, 0.8486586809158325, 0.1780558079481125, -0.1381954401731491, 0.23458227515220642, 0.1594236046075821, -0.9141358137130737, -0.2589397430419922, -0.010775559581816196, 0.5636844635009766, 0.7636588215827942,...
def write ( self, design, filename ) : eagle = self. make _ dom ( design ) with open ( filename,'wb') as outfile : outfile. write ('<? xml version = " 1. 0 " encoding = " utf - 8 "? > \ n') outfile. write ('<! doctype eagle system " eagle. dtd " > \ n') eagle. export ( outfile, 0, namespace _ ='' )
[ -0.22080673277378082, 0.3127543032169342, 0.35734274983406067, -0.1725756824016571, 0.1028195321559906, 0.6602896451950073, -0.2656612694263458, 0.8449654579162598, 0.022906949743628502, 0.09655050188302994, 0.07938035577535629, -0.12458017468452454, 0.8838165998458862, 0.46189484000205994...
def rmmodprobe ( drive _ name, times ) : try : for i in range ( times ) : run _ cmd ( _ root _ no _ password ( " rmmod { } ". format ( drive _ name ) ) ) time. sleep ( 0. 5 ) run _ cmd ( _ root _ no _ password ( " modprobe { } ". format ( drive _ name ) ) ) time. sleep ( 0. 5 ) except exception as e : print ( e ) retur...
[ -0.7681417465209961, 0.08249828219413757, 0.6386735439300537, -0.12595680356025696, -0.057859502732753754, 0.07844796031713486, -0.5069928169250488, 0.2188822627067566, -0.2340204119682312, 0.8966785669326782, 0.005818480625748634, -0.3325873017311096, -1.830078125, 0.6360303163528442, 0...
def _ _ repr _ _ ( self ) : return " rectangle ( { 0! r }, { 1! r }, { 2! r }, { 3! r } ) ". format ( self. pt1. x, self. pt1. y, self. pt2. x, self. pt2. y )
[ -0.3137372136116028, -0.8809105157852173, 0.5316799283027649, -0.562408983707428, 0.10891184955835342, 0.5878098607063293, -0.00994027964770794, -0.08865973353385925, -0.2887691259384155, 0.3285745084285736, 0.17879748344421387, 0.25003188848495483, -0.10673123598098755, -0.683640956878662...
def calculate _ ap _ width ( self ) : l = len ( self. nerve _ ap [ 0 ] ) width _ array = [ 0 for x in range ( 0, l, 1 ) ] " " " first pulse " " " # time array is used to calculate the width of the ap time _ array = [ 0. 0 for x in range ( 0, l * 2, 1 ) ] # ap test is used to determine if we are before, in or after the ...
[ -0.15526573359966278, -0.26846879720687866, 0.856122612953186, -0.8086749315261841, -0.10234226286411285, 0.13551153242588043, 0.05384628474712372, 0.5919157862663269, 1.4868119955062866, 0.6326382160186768, 0.45788976550102234, 0.020557835698127747, -0.5593270063400269, 1.0707298517227173...
def zero _ base _ standardize ( self, data, abs _ base = pd. dataframe ( ) ) : if abs _ base. empty : abs _ base = data. iloc [ 0 ] data _ standardized = ( data / abs _ base ) - 1 return ( abs _ base, data _ standardized )
[ -0.49117311835289, -0.42487403750419617, 0.3966260850429535, 0.13835179805755615, 0.7829660773277283, 0.13099592924118042, -0.8107588291168213, 0.3767727315425873, -0.2975785732269287, 0.4109551012516022, 0.21388868987560272, -0.041552599519491196, -0.38868090510368347, 0.5149639248847961,...
def generate _ x _ star ( num _ params, num _ levels ) : x _ star = np. zeros ( ( 1, num _ params ) ) delta = compute _ delta ( num _ levels ) bound = 1 - delta grid = np. linspace ( 0, bound, int ( num _ levels / 2 ) ) x _ star [ 0, : ] = np. random. choice ( grid, num _ params ) return x _ star
[ -0.6206181049346924, -0.17580178380012512, 0.6989455223083496, 0.35896003246307373, -0.007341669872403145, 0.40904107689857483, -0.10414104908704758, 0.35764840245246887, -0.19740399718284607, 0.24379971623420715, -0.21822117269039154, 0.11261651664972305, -0.5416282415390015, 0.5588964223...
def del _ graph ( ) : graph = get _ graph ( ) graph. shutdown ( ) global _ registry = component. getglobalsitemanager ( ) global _ registry. unregisterutility ( graph )
[ 0.1715172380208969, 0.8461645245552063, 0.30932316184043884, 0.30079054832458496, 0.653903067111969, -0.27502748370170593, 1.138452172279358, 0.4250684976577759, 0.5984313488006592, 0.17910557985305786, -0.23347724974155426, 1.7259373664855957, -0.5552782416343689, -0.6860917210578918, 1...
def _ create _ config _ map _ object ( name, namespace, data ) : log. debug ( " creating kubernetes config map object " ) metadata = v1objectmeta ( name = name, namespace = namespace ) return v1configmap ( api _ version = config _ map _ details ['api _ version'], kind = config _ map _ details ['kind'], data = data, met...
[ -0.7927088141441345, -0.9777602553367615, 0.49171561002731323, -0.04925253242254257, -0.36814019083976746, 0.5124801993370056, -1.2794946432113647, 0.2223929464817047, 0.04865582659840584, 1.1385048627853394, -0.26587289571762085, 0.40590497851371765, 0.09952586889266968, -0.36187970638275...
def test _ invalid _ form ( self ) : self. test _ data. pop ('field1') response = self. client. post ( self. url, self. test _ data ) self. asserttemplateused ( response,'cbv _ formpreview / form. html')
[ -0.014478210359811783, 0.9486461877822876, 0.5523948669433594, 0.4090828001499176, 0.01464986801147461, 0.8031940460205078, -0.2766030430793762, 0.5727552175521851, -0.07986301183700562, -1.3285471200942993, -0.2605603337287903, -0.1913582980632782, -0.5936087369918823, 0.8890124559402466,...
def encode ( self, scalers ) : self. bitvector = " " self. register = 0 self. bpos = 0 for s in scalers : if s = = 0 : self. _ _ push ( 0 ) elif s = = 1 : self. _ _ push ( 1 ) self. _ _ push ( 0 ) elif s = = 2 : self. _ _ push ( 1 ) self. _ _ push ( 1 ) self. _ _ push ( 0 ) elif s = = 3 : self. _ _ pushn ( 14 ) elif s ...
[ -0.7542053461074829, 0.520205020904541, 0.6749186515808105, 0.19373086094856262, 1.082499623298645, -0.5034390687942505, 0.012515497393906116, -0.9552245140075684, -0.48596253991127014, 0.23023511469364166, -0.8156700730323792, 0.60938960313797, -0.9885901212692261, 0.45330989360809326, ...
def inverse _ function ( self, detection, * * kwargs ) : pass
[ -0.42373260855674744, -1.1265552043914795, 0.2976821959018707, 1.4158740043640137, 1.0567858219146729, -0.2555541396141052, 0.49309226870536804, 0.764565646648407, -0.7065697312355042, -0.06267496198415756, -0.9361394643783569, 1.1457140445709229, -0.6129441857337952, -0.17655691504478455,...
def test _ vs ( ) : assert geo _ lin. vs. shape = = ( len _ ts, mlin. n ) for vs in geo _ lin. vs : assert np. allclose ( vs, mlin. vi )
[ 1.1069637537002563, -0.28332364559173584, 0.11310502886772156, 0.1648239940404892, 1.0105230808258057, 1.0317503213882446, -0.2728404700756073, -0.829542338848114, 0.9183659553527832, -0.3499588668346405, -0.30937156081199646, 0.6803035140037537, 0.6060845255851746, 0.5543975234031677, -...
def prep _ answer _ gen _ input _ data ( padded _ seqs, l _ img _ vec, word _ index, max _ nb _ words ) : answer _ gen _ input _ data = np. zeros ( ( len ( padded _ seqs ), max _ nb _ words ), dtype ='float32') vis _ input _ data = np. zeros ( ( len ( padded _ seqs ), max _ nb _ words, dim _ img _ feat ), dtype ='float...
[ -0.4190284311771393, 0.197649285197258, 0.6974475383758545, -0.6421024799346924, -0.6818345189094543, 0.562078595161438, 0.7904278039932251, -0.18014931678771973, 0.6863088607788086, 0.5983934998512268, 0.053332287818193436, 0.6514903903007507, 0.35329291224479675, 0.5574802756309509, 0....
def view _ drafts ( request, mode, page ) : if not request. user. is _ authenticated : return redirect ('login') if ( mode = = 0 ) : all _ photos = list ( photo. objects. filter ( added _ by _ _ username = request. user. username ). filter ( draft = true ). order _ by ('- created _ at') ) else : all _ photos = list ( p...
[ -0.6610497236251831, 0.3586616814136505, 0.8354851007461548, -0.7163853049278259, -0.6828600764274597, 0.49172481894493103, 0.13284124433994293, 0.5731738209724426, 0.6856961846351624, -0.3976648151874542, 0.23396223783493042, 0.34983253479003906, 0.5202170610427856, 0.7128571271896362, ...
def supports _ framelock ( self, target ) : return query _ int _ attribute ( self, target, 0, nv _ ctrl _ framelock ) = = 1
[ -1.4307632446289062, 1.1259068250656128, 0.4197748899459839, 1.3150713443756104, -0.28162309527397156, -0.886706531047821, -0.06726346909999847, -0.6584848165512085, 0.9633907675743103, -0.24833433330059052, -0.46963685750961304, -0.7655264139175415, -0.6457613706588745, 1.0055550336837769...
def write _ to _ excel ( folder _ holds _ results, path _ to _ train _ excel _ file, path _ to _ orig _ test _ excel _ file, save _ path ) : result = { } # 1. open train excel xlsx file workbook = xlrd. open _ workbook ( path _ to _ train _ excel _ file ) sheet = workbook. sheet _ by _ index ( 0 ) # load original data ...
[ -0.01637817546725273, -0.5449161529541016, 0.8155277967453003, -0.7226644158363342, 0.08671891689300537, -0.05475582554936409, 0.606361985206604, 0.5277780294418335, -1.131125569343567, 0.5871945023536682, -0.8410447835922241, 0.4839023947715759, 0.3085860013961792, -0.2863422930240631, ...
def _ createtimepage ( self ) : page = directframe ( self. frame ) page. setname ( " partyplannertimepage " ) self. createtimetitlelabel = directlabel ( parent = page, relief = none, text = ttlocalizer. partyplannertimetitle, pos = self. gui. find ( " * * / title _ locator " ). getpos ( ), scale = self. titlescale, ) s...
[ -0.49769291281700134, -0.027144024148583412, 0.6606444120407104, -0.7515313625335693, -0.13939061760902405, 0.6621516346931458, -0.2746444344520569, -0.13696973025798798, -0.6143863201141357, 0.9122307300567627, -0.07736071199178696, -0.9531050324440002, 0.06508037447929382, 1.130601525306...
def with _ training _ output _ uri ( self, training _ output _ uri ) : b = deepcopy ( self ) b. config ['training _ output _ uri'] = training _ output _ uri return b
[ -0.5422186255455017, -0.24357032775878906, 0.5120559334754944, 1.2937123775482178, -1.1720860004425049, 0.1964448243379593, 0.6317273378372192, 0.12130562961101532, -0.4020068347454071, -0.686408281326294, -0.2162260264158249, -0.3697240650653839, -0.0661545917391777, -0.9873341917991638, ...
def add _ port ( self, port ) : port _ int = int ( port ) if port _ int < 0 : raise valueerror ( " ports are not allowed to be negative. you provided { } ". format ( port _ int, ) ) if port _ int > 65535 : raise valueerror ( " ports are not allowed to be larger than 65535. " " you provided { } ". format ( port _ int, )...
[ -0.6575150489807129, 0.4581042230129242, 0.6591616868972778, 0.5942440032958984, -0.1908709704875946, 0.8765653371810913, 0.20384074747562408, 0.19116094708442688, 0.8448348045349121, -1.5126829147338867, 0.3586650788784027, -0.8880943655967712, -1.407336950302124, -0.900973379611969, -0...
def _ legacyinferdefaultvalue ( feature _ proto : schema _ pb2. feature ) - > optional [ schema _ pb2. tensorrepresentation. defaultvalue ] : if feature _ proto. presence. min _ fraction < 1 : default _ value = _ legacy _ default _ value _ for _ feature _ type. get ( feature _ proto. type ) if default _ value is none :...
[ 0.5605053305625916, 0.31294041872024536, 0.2669149935245514, 0.6966132521629333, 0.5572722554206848, 0.004688370507210493, 0.11670252680778503, -0.19702185690402985, -0.5976499319076538, -0.9107153415679932, 0.214268296957016, -0.6466949582099915, -0.46529436111450195, 0.9063979983329773, ...
async def put _ valid ( self, complex _ body : " models. fish ", * * kwargs ) - > none : cls = kwargs. pop ('cls ', none ) # type : clstype [ none ] error _ map = { 404 : resourcenotfounderror, 409 : resourceexistserror } error _ map. update ( kwargs. pop ('error _ map ', { } ) ) content _ type = kwargs. pop ( " conten...
[ -0.9769467711448669, -0.48701557517051697, 0.8997928500175476, -0.1000896543264389, -0.047959912568330765, -0.0731387659907341, 0.7632555365562439, -0.00802083220332861, 0.2461382895708084, 0.6041330099105835, -0.7846505641937256, 0.9204670190811157, -0.6035358905792236, -0.708070218563079...
def show _ warning _ message ( title, message ) : return _ show _ warning _ message ( title, message )
[ 0.264484703540802, 0.530976414680481, 0.3685722351074219, 0.9126160144805908, -1.1849404573440552, -0.7110609412193298, -0.4576374292373657, -0.902444064617157, -0.5781669616699219, 0.6650396585464478, 1.6018972396850586, 1.680379867553711, -0.024802451953291893, -0.222710981965065, 0.14...
def daquar _ qa _ raw ( train _ or _ test ='train') : if train _ or _ test = ='test': filepath = file _ test else : filepath = file _ train x _ list = [ ] y _ list = [ ] img _ name _ list = [ ] img _ ind _ list = [ ] img _ vec = [ ] img _ vec _ empty = [ 0 ] * dim _ img _ feat with open ( filepath,'r') as f1 : for i, l...
[ -0.8063231706619263, -0.7737034559249878, 0.8595181703567505, -0.49900946021080017, -0.9896633625030518, -0.6417951583862305, 0.7638717889785767, 0.49447113275527954, -0.9229153394699097, -0.1130085438489914, -0.8933284282684326, -0.5225175619125366, 1.1747156381607056, 0.43126508593559265...
def has _ attribute ( self, attribute : str ) - > bool : return any ( [ key _ node. value = = attribute for key _ node, _ in self. yaml _ node. value ] )
[ -0.1187666803598404, -0.3686557412147522, 0.2733387053012848, -0.391248881816864, -0.15373459458351135, -0.5535102486610413, -0.45831063389778137, 1.1435332298278809, -0.38157328963279724, 0.14483138918876648, 0.08347442001104355, 0.3783183693885803, 1.0134886503219604, 1.000881314277649, ...
def ismutatinggraph ( self ) - > bool :...
[ -0.7673988342285156, 0.6312005519866943, 0.5275664925575256, 1.5327208042144775, -0.3010643422603607, -0.3657614290714264, -0.5972194075584412, -0.013199634850025177, 0.792407751083374, 0.39166486263275146, -0.6485595703125, 0.552108108997345, -1.1664419174194336, 0.10895663499832153, -1...
def get _ mentions ( invocation, prayer ) : regex = invocation + " [ a - za - z ] + " mentions = re. findall ( regex, prayer ) return mentions
[ -0.49076247215270996, -0.41269955039024353, 0.478969007730484, -0.13012391328811646, 1.0536621809005737, -0.4647066593170166, -0.06456602364778519, 0.6619393825531006, -0.2651490569114685, 1.0507416725158691, 0.13584335148334503, 1.1123626232147217, -0.9280239343643188, 1.2625874280929565,...
def refresh ( self ) : self. model. refresh ( )
[ 0.1644691824913025, -0.9849192500114441, 0.025831421837210655, 0.5313557982444763, 0.43057987093925476, 0.7976170182228088, -0.07173044979572296, -0.5216083526611328, -0.8188599348068237, 0.06474288552999496, 0.283477246761322, 0.4538091719150543, 0.3170539140701294, 0.7072070240974426, ...
def home ( ) : return " litecoin easy check "
[ 0.9993944764137268, -0.04124598205089569, 0.26089197397232056, 0.07518234848976135, 0.4370107054710388, 0.04482658952474594, -0.3958395719528198, -0.3321636915206909, -0.007357496302574873, 0.9901388883590698, 0.1424759477376938, 0.09643681347370148, -1.0639747381210327, -1.000193357467651...
def seq _ items ( self ) - > list ['node'] : return list ( map ( node, self. yaml _ node. value ) )
[ -0.8890002965927124, -0.6312515735626221, 0.2803944945335388, 0.3460829257965088, 0.5749658346176147, -0.41549384593963623, -0.7969546318054199, 1.2798887491226196, -0.11997637897729874, 0.5361319780349731, -0.8275381922721863, 0.4034176468849182, 0.9489675164222717, 0.5897806882858276, ...
def show _ all _ templates ( self ) : request = tsquerytemplatereq ( self. _ _ session _ id, " ", templatequerytype. show _ templates. value, ) response = self. _ _ client. queryschematemplate ( request ) logger. debug ( " show all template { }, measurements is { } ". format ( self. _ _ session _ id, response. measurem...
[ 0.04363085329532623, 0.4593771994113922, 0.6453578472137451, -0.2216237187385559, -0.6583142280578613, -0.19108711183071136, -0.429116427898407, -0.3141716718673706, 1.1007468700408936, 0.3517625331878662, -0.07158739864826202, -0.08136660605669022, -0.4369101822376251, 0.8464239239692688,...
def cams ( vendor _ name, local _ lan ) : print ( f " scanning { local _ lan } for { vendor _ name } cameras or nvrs " ) found = [ ] nm = nmap. portscanner ( ) nm. scan ( hosts = str ( local _ lan ), ) for _ name in nm. all _ hosts ( ) : host = nm [ _ name ] for hostname in host [ " hostnames " ] : if hostname [ " name...
[ -0.0874197855591774, 0.08430521935224533, 0.5163909792900085, 1.1351412534713745, -0.19101300835609436, -0.26835721731185913, -0.49552270770072937, -0.8827142715454102, 1.036554217338562, 0.1378556489944458, 0.3477969765663147, -0.14993543922901154, 0.15441249310970306, 1.5439887046813965,...
def testgetvaluesforquerywithemptyqueryresults ( self ) : tagapi ( self. user ). create ( [ ( u'username / bar ', u'description') ] ) tag = gettags ( paths = [ u'username / bar'] ). one ( ) objectid = uuid4 ( ) createtagvalue ( self. user. id, tag. id, objectid, 42 ) self. store. commit ( ) with login ( u'username ', u...
[ -0.03762586787343025, 0.605458676815033, 0.30650442838668823, -0.31270718574523926, 0.780556321144104, 0.5489497184753418, -0.5720613598823547, -0.9611945748329163, -0.325441837310791, -1.494331955909729, -0.44852757453918457, -0.45281752943992615, 0.2764911353588104, 0.20770977437496185, ...
def read _ data ( self ) : header = self. read ( 4 ) if rpc. debug : print " read _ data header = ", ; self. hexdump ( header ) if len ( header ) < 4 : print " error reading data header " return none m _ type = header [ 0 ] if ord ( m _ type ) = = rpc. type _ dtb _ data1 : size = struct. unpack ('h ', header [ 2 : 4 ] ...
[ -0.2921666204929352, 0.12008549273014069, 0.8484885692596436, 0.44872260093688965, -0.7503485083580017, 0.05051575228571892, -0.501731276512146, -0.9595258235931396, -0.1871328502893448, -0.44447973370552063, 0.03858613595366478, 0.16736505925655365, -1.6531836986541748, 0.0073486901819705...
def create _ clean _ datafile ( self ) : print ('> creating x & y data files...') # 이건 function call이 아니라 generator를 만든. data _ gen = self. clean _ data ( ) i = 2 with h5py. file ( self. _ filename _ out,'w') as hf : x1, y1 = next ( data _ gen ) # initialize hdf5 x, y datasets with first chunk of data prin...
[ 0.15446153283119202, 0.1029152125120163, 0.7482443451881409, -0.4358522295951843, -0.22090643644332886, 0.2744477689266205, 0.9003881216049194, -0.6679908037185669, -1.19550359249115, -0.20664262771606445, 0.10235188156366348, 0.36336591839790344, 0.6783393025398254, 0.3581385910511017, ...
def resource _ class ( self ) : resource _ module = '. '. join ( self. resource _ class _ path. split ( '.') [ : - 1 ] ) resource _ class _ name = self. resource _ class _ path. split ( '.') [ - 1 ] return getattr ( import _ module ( resource _ module ), resource _ class _ name )
[ -0.14334627985954285, -1.19449782371521, 0.5248239040374756, -0.24972467124462128, 0.012049255892634392, 0.5907943248748779, 0.6832693815231323, -0.11845681816339493, 0.29409390687942505, 0.37737852334976196, 0.5712600350379944, 0.07972605526447296, -0.08050358295440674, -0.513301908969879...
def thermal _ detect ( image, lower _ bound = ( 0, 0, 127 ), upper _ bound = ( 0, 0, 255 ) ) : original = image. copy ( ) image = cv2. cvtcolor ( image, cv2. color _ bgr2hsv ) # convert image to hsv format lower = np. array ( lower _ bound, dtype = " uint8 " ) # arrays for lower and upper bounds of detection upper = np...
[ 0.3069002032279968, -0.9358261823654175, 1.0032154321670532, 0.5037497282028198, -0.2880343198776245, -0.7041199803352356, 0.3880022466182709, 0.5102755427360535, 0.26983678340911865, 0.04135768488049507, -0.818422794342041, 0.28988680243492126, 0.2838067412376404, 0.8118568062782288, 0....
def toggle _ values _ by _ name ( username, domain ) : all _ enabled = toggles _ enabled _ for _ user ( username ) | toggles _ enabled _ for _ domain ( domain ) return { toggle _ name : toggle _ name in all _ enabled for toggle _ name in all _ toggles _ by _ name ( ). keys ( ) }
[ -0.5779942274093628, 0.17352591454982758, 0.5251089930534363, 0.6663287281990051, -1.0615848302841187, -0.21337132155895233, -0.5816318392753601, 0.598870575428009, -0.8838465809822083, 0.7626551389694214, -0.4346643388271332, 0.03357994183897972, -0.2974329888820648, 1.027692198753357, ...
def _ _ init _ _ ( self, fn, zero = none, unk = none, alpha = 0. 25 ) : self. zero = zero self. unk = unk self. alpha = alpha with open ( fn,'r') as f : lines = f. readlines ( ) counts = [ line. strip ( ). split ('' ) for line in lines ] self. counts = { w : int ( c ) for w, c in counts } if self. zero is not none : se...
[ 0.23607666790485382, -0.4361283779144287, 0.670009434223175, -0.5686880946159363, -0.3458330035209656, -0.3962823450565338, 0.7730891704559326, 1.218656301498413, -0.297262966632843, -0.37350699305534363, 0.3395463526248932, -0.35794997215270996, 0.5557754635810852, 0.8657715320587158, 0...
def _ _ init _ _ ( self, vcf, bams = [ ], is _ fp = false, require _ genotype = true, tags = { }, info _ keys = [ ], filter _ keys = [ ], format _ keys = [ " * " ], regions = [ ], num _ threads = mp. cpu _ count ( ), chunksize = 5000, sort = false ) : super ( ). _ _ init _ _ ( ) self. _ vcf = vcf self. _ bams = bams se...
[ 0.9356825947761536, 0.27291202545166016, 0.5562146306037903, 0.7541806101799011, -0.16723619401454926, -0.9509797692298889, 0.0792466253042221, 0.20165632665157318, 0.05389844998717308, 0.19682031869888306, -0.2674211859703064, 0.3012925088405609, -0.2791511118412018, -0.2026524543762207, ...
def set _ weight ( self, row, col, new _ value ) : self. weights ( ) [ row, col ] = new _ value
[ -0.12769614160060883, -0.12080200761556625, 0.3405196964740753, 0.07652606815099716, 0.01223417092114687, 0.0016692717326804996, -0.41808345913887024, -0.3059759736061096, -1.113403081893921, 1.1340982913970947, -0.37304142117500305, 0.7389100193977356, 0.19673658907413483, 0.2787551283836...
def _ does _ model _ exist ( model _ name, sage _ client ) : try : response = sage _ client. describe _ model ( modelname = model _ name ) except sage _ client. exceptions. clienterror as error : if " could not find model " in error. response [ " error " ] [ " message " ] : return false else : return true if response e...
[ -0.42553532123565674, 0.10130319744348526, 0.5872480869293213, -0.6266930103302002, 0.7998424768447876, 0.8782706260681152, -0.8887276649475098, -0.11430657655000687, -0.06565319746732712, 0.7442542314529419, -0.2793584167957306, -0.26051971316337585, -0.5056461095809937, -0.11495019495487...
def listenotherturn ( self ) : if self. rectcharacter [ 0 ] = = ( width / 2 ) \ or ( self. rectcharacter [ 0 ] > = ( width / 2 ) and self. rectcharacter [ 0 ] < ( width / 2 ) + 20 ) : # why + 20? self. collitionactive = false
[ 0.8494505286216736, -1.235034465789795, 0.45936545729637146, -1.0922112464904785, 0.47808837890625, -0.32476717233657837, 0.7827544808387756, -1.1223992109298706, 0.4224475026130676, -0.667928159236908, -0.3946194648742676, 0.26528680324554443, -1.036820650100708, -0.2678951919078827, 0....
def to _ cvn ( self ) : cvn = str ( ) for k in range ( 2 * self. width - 1 ) : i, j = self. diagonal _ cursor ( k ) line = [ ] while i < len ( self ) and j < len ( self ) : if self [ i, j ] is none : if len ( line ) > 0 and line [ - 1 ] in numbers : line [ - 1 ] = str ( int ( line [ - 1 ] ) + 1 ) else : line. append ('...
[ -0.06682942807674408, -1.082637906074524, 0.7765787839889526, 0.29477694630622864, 0.13065218925476074, -0.6258726716041565, 0.19195380806922913, -0.5760160088539124, 0.5610278844833374, -0.02225225232541561, -0.3102383613586426, -0.3927716314792633, 0.2543324828147888, -0.4138940274715423...
def _ num _ workers ( self ) : raise notimplementederror ( )
[ -0.6325041651725769, 0.952583909034729, 0.6852699518203735, -0.5176467895507812, 0.22126269340515137, 0.5083005428314209, 0.36814263463020325, 0.44657593965530396, -0.3025032877922058, -0.23693108558654785, -0.9799607992172241, -0.33645427227020264, 0.12351377308368683, 0.00211882451549172...
def _ get _ primals _ out _ and _ pullback ( fn : callable [ [ pytree ], pytree ], mode : _ mode, _ j _ rules : bool, _ s _ rules : bool, _ fwd : optional [ bool ], * primals _ in : pytree ) - > tuple [ pytree, callable ] : primals _ in _ flat, in _ tree = tree _ flatten ( primals _ in ) fn _ flat, out _ tree = jax. ap...
[ -0.47428303956985474, 0.001148762064985931, 0.6467884182929993, -0.7496839761734009, -0.4104241132736206, -0.6586011648178101, -0.6110058426856995, 0.30551114678382874, -0.7077865600585938, -0.15239763259887695, -0.06117707118391991, 0.143238365650177, 0.5728204250335693, -0.04969685152173...
def check _ signal ( msg : optional [ str ] ) : if msg is none : return # do nothing elif msg = = " close " : viewer. close ( ) else : raise runtimeerror ( f " unknown message from listener : { msg } " )
[ 0.32326841354370117, -0.14745472371578217, 0.4790922701358795, 0.16705171763896942, -0.2961381673812866, 0.0010187049629166722, 0.19927486777305603, -0.2641203999519348, 0.10747302323579788, -0.6819246411323547, 0.5716994404792786, 0.5053470730781555, -0.6143471002578735, 2.003699779510498...
def _ _ init _ _ ( self, filename, configdir ) : self. configdir = configdir initialdata = self. _ _ loadfile ( filename ) log. debug ( " intial data % s ", initialdata ) self. subsystems = self. _ _ converttosubsystems ( initialdata, " / " ) root = self. subsystems [ " / " ] if not " compatibility " in root : log. war...
[ 0.002420050324872136, -0.5301070213317871, 0.5088472962379456, 0.43747907876968384, -0.7886276245117188, 0.48606279492378235, -0.019068146124482155, 0.9727669954299927, -0.4423811137676239, -0.6406851410865784, -0.17609544098377228, -0.22770418226718903, -0.32499951124191284, 1.16904652118...
def infer _ onestep ( self ) : inputs = self. model. create _ inputs ( mode ='infer _ onestep') output _ dict = self. model. infer _ onestep ( inputs ) # click _ prob = layers. slice ( click _ prob, axes = [ 1 ], starts = [ 1 ], ends = [ 2 ] ) fetch _ dict = ordereddict ( ) fetch _ dict ['prev _ hidden'] = output _ dic...
[ -0.39867740869522095, -0.1535564810037613, 0.6015225648880005, -0.42411306500434875, -0.6157180666923523, -0.23748883605003357, -0.03652004897594452, -0.7249131798744202, -1.1305252313613892, 0.20975404977798462, -0.6612899899482727, 0.4149167537689209, 0.05484955757856369, 0.9834949374198...
def segment _ mask ( mask ) : elements, _ = ndimage. label ( mask = = false ) elements = np. ma. masked _ where ( elements = = 0, elements ) elements = np. array ( elements. data ). astype ( " float32 " ) return elements
[ -0.6534692645072937, -0.3073233962059021, 0.5459657311439514, 0.5269328951835632, 0.7108369469642639, 0.4527456760406494, -0.01767137087881565, -1.352614164352417, 0.8938527703285217, 0.407335489988327, 0.4156023859977722, -0.08396779000759125, -0.4380323588848114, 0.20789587497711182, -...
def is _ sink ( m, i ) : sink = m [ i, i ] = = 0 if sink : sink = sum ( m [ i ] ) = = 0 # out - degree if sink : sink = sum ( m [ :, i ] ) = = m. shape [ 0 ] - 1 # in - degree return sink
[ -0.9688524603843689, 0.47562703490257263, 0.4486602246761322, 0.9406022429466248, -0.08099772781133652, -0.6337850093841553, 0.9656252264976501, -0.4629119336605072, 0.6470314860343933, 0.9369237422943115, 0.20707011222839355, -0.131146639585495, -1.0450116395950317, -0.4919050931930542, ...
def update _ reading _ rooms ( contactable, data ) : # delete all existing reading rooms, because we'll re - add them. contactable. reading _ room _ urls. all ( ). delete ( ) for link _ text, url in data. get ('reading _ rooms ', [ ] ) : rru = readingroomurls ( content _ object = contactable, link _ text = link _ text,...
[ -1.4643884897232056, -0.30429911613464355, 0.1661009043455124, 0.25827252864837646, 0.20717838406562805, 0.2962581515312195, -0.7092277407646179, 0.8974018692970276, -0.23901191353797913, 0.3998733460903168, -0.0836002379655838, -0.6218746900558472, -0.7130353450775146, 0.13127058744430542...
def test _ setup _ overwrite _ template _ on _ ilm _ policy _ created ( self ) : # ensure template with ilm rollover _ alias name is created, but ilm policy not yet self. render _ config ( ) exit _ code = self. run _ beat ( logging _ args = [ " - v ", " - d ", " * " ], extra _ args = [ " setup ", self. cmd, " - e ", " ...
[ -0.41623061895370483, -0.6148020029067993, 0.5258769392967224, -0.8033359050750732, 0.9974948763847351, 0.15310817956924438, 0.9671837687492371, 0.055258527398109436, 0.08030320703983307, 0.12373530119657516, -0.6547872424125671, -0.12809671461582184, -0.33735790848731995, -0.7485944628715...
def getddgexternaloutputpolarity ( index ) : andor _ solis. getddgexternaloutputpolarity. restype = ctypes. c _ uint polarity = ctypes. c _ ulong ( ) result = andor _ solis. getddgexternaloutputpolarity ( ctypes. c _ ulong ( index ), ctypes. byref ( polarity ) ) check _ status ( result ) return int ( polarity. value )
[ -1.3033181428909302, 0.8725540637969971, 0.6496362090110779, -0.49086183309555054, -1.0582642555236816, -0.1994009166955948, 0.11209139227867126, -0.3324049711227417, 0.7867631316184998, 0.06990832090377808, -0.025081120431423187, -0.31411463022232056, -0.8387881517410278, -1.1089466810226...
def min _ value ( self ) - > float : return super ( ). _ static _ info. min _ value
[ 0.7551029324531555, 0.11446825414896011, 0.10539617389440536, 0.6025553345680237, 0.5487823486328125, 0.47960805892944336, -0.15407322347164154, -0.7257583141326904, -0.7871244549751282, -0.7987642288208008, 0.5990837812423706, 0.351249098777771, 0.32388758659362793, 0.8920533061027527, ...
def gcode _ draw _ arrow ( self, pendown = " ", penup = " ", img _ height = 0 ) : if img _ height : # flip all the points along horizontal axis so # gcode output looks like the svg image ay = img _ height - self. a [ 1 ] by = img _ height - self. b [ 1 ] cy = img _ height - self. c [ 1 ] dy = img _ height - self. d [ 1...
[ 0.12211772054433823, -0.577243447303772, 0.9371775984764099, 0.03644109144806862, 0.021097632125020027, 0.007926673628389835, 0.29592764377593994, -1.0039855241775513, -0.42499449849128723, 0.2535229027271271, 0.2811289429664612, 0.15999791026115417, 0.5342441201210022, 0.2366141378879547,...
def get _ fields ( place ) : name = re. sub ( ', ','', place [ " title " ] ) category = place [ " category " ] [ " id " ] street, city, state, zipcode = parse _ address ( place ) latitude, longitude = place [ " position " ] to _ write = [ name, street, city, state, str ( zipcode ), str ( latitude ), str ( longitude ), ...
[ -0.9122447967529297, -0.3529485762119293, 0.6538671255111694, -1.5146329402923584, 0.4211662709712982, -0.3117615282535553, -0.8926454186439514, 0.3995521366596222, 0.4197573661804199, 0.6243398785591125, -1.072037935256958, -0.46648460626602173, 0.01739257387816906, -0.828175961971283, ...
def get _ coverage ( sorted _ bam _ file ) : cml = shlex. split ('samtools depth - a % s'% sorted _ bam _ file ) proc = subprocess. popen ( cml, stdout = subprocess. pipe ) cov _ df = pd. read _ csv ( proc. stdout, sep ='\ t ', header = none, names = ['ref ','pos ','coverage'] ) return cov _ df
[ 0.9387335777282715, -0.480203777551651, 0.7009886503219604, 0.8005197644233704, -0.2258087396621704, 0.2656845152378082, 0.8599318265914917, -0.23406656086444855, -0.6832568049430847, -0.1569415032863617, 0.8811752200126648, 0.737228512763977, 0.19085657596588135, -0.4523601830005646, 0....
def _ twostep _ affine ( vol : np. array, mat1 : np. array, outshape1 : iterable [ int ], mat2 : np. array, outshape2 : iterable [ int ], order : int = 1, ) - > np. array : # todo : deal with " mode "... maybe pass varargs step1 = affine _ transform ( vol, mat1, output _ shape = outshape1, order = order ) step2 = affin...
[ 0.3287608027458191, -1.1903297901153564, 0.5890364050865173, 0.5225679874420166, -0.31914520263671875, -1.2303138971328735, -0.9627810716629028, -0.6130254864692688, -1.0846776962280273, 0.3687734305858612, -0.4565293490886688, 0.24820533394813538, 1.0099765062332153, 0.38539189100265503, ...
def is _ time _ exceeded ( timeout _ time, start _ time ) : cmd _ time = int ( time. time ( ) - start _ time ) # parse sys _ args. time max _ time = timeout _ time sp = re. match ( " ( \ d + ) ( [ hms ] ) ", max _ time ). groups ( ) t _ val, t _ unit = int ( sp [ 0 ] ), sp [ 1 ] # convert time to seconds if t _ unit = ...
[ -0.18887959420681, 0.02720230259001255, 0.7175911068916321, 0.3122633397579193, -0.4939396381378174, -0.36669039726257324, -1.0447139739990234, 0.3372681736946106, -0.7903023362159729, 0.8503099083900452, 0.11544468998908997, 0.24466106295585632, -0.43267154693603516, 0.6981134414672852, ...
def _ insert _ class _ header ( line _ num ) : current _ buffer = vim. current. buffer # indent the docstring to the class indentation level spaces = _ check _ indentation ( line _ num ) if vim. eval ( " g : kylevimc _ doxygen " ) = ='1': comment = [ " / / / @ brief { % brief description % } ", " / / / @ author { % aut...
[ -0.1377013623714447, -0.10372359305620193, 0.9795070886611938, 0.1572204828262329, 0.7819267511367798, -0.07863348722457886, 0.09276759624481201, -0.09505879133939743, -0.440311998128891, 0.04405108094215393, -0.2882763147354126, 0.16576743125915527, -0.450700968503952, -0.1087663024663925...
def save ( self ) - > none : if not self. validate ( ) : raise valueerror ( " invalid block " ) serialized _ block = serialise _ block _ to _ save ( self. serialize ( ) ) current _ file = get _ current _ blk _ file ( ) filename = config. blocks _ dir + current _ file with open ( filename, " ab + " ) as f : f. write ( s...
[ 0.0870329737663269, -0.2858780324459076, 0.993348240852356, 0.22135311365127563, 0.40807706117630005, -0.16575275361537933, 0.9943645596504211, -0.052924517542123795, -0.8047454357147217, -0.06198539212346077, -1.1018574237823486, -0.11208915710449219, -0.9354103803634644, -0.2871096432209...
def trans _ 2 _ affine ( elems ) : w _ bb, _, h _ bb, _ = tf. split ( elems [ 0 ], 4 ) tx, ty = tf. split ( elems [ 1 ], 2 ) scalar = 0. 33 * tf. maximum ( w _ bb, h _ bb ) tmp _ ts _ matrix = tf. concat ( [ scalar, tx, scalar, ty ], axis = 0 ) tmp _ ts _ matrix = clip _ transcale ( tf. expand _ dims ( tmp _ ts _ matri...
[ -0.1267589032649994, 0.17757532000541687, 0.7528043985366821, 0.40849554538726807, -0.2112010270357132, -0.6732280254364014, -0.1763162761926651, -0.305309534072876, -0.7436716556549072, 1.0839132070541382, -0.5168143510818481, 0.030105270445346832, 0.7261561751365662, -0.5821006298065186,...
def getsourcefileset ( object _ to _ sources, object _ files ) : source _ set = set ( ) for name in object _ files : # intentially raise a keyerror if lookup fails since something is messed # up with our source and object lists. source _ set. add ( object _ to _ sources [ name ] ) return source _ set
[ -0.27861106395721436, -0.47094666957855225, 0.3821231424808502, -0.6597034931182861, 0.539085328578949, -0.18928124010562897, 0.18968097865581512, -0.021022971719503403, -0.5578457713127136, 0.2063322365283966, -0.028713813051581383, -0.2585369050502777, 0.28972190618515015, -0.57643646001...
def add _ mc ( self, ns _ key, ipv4 _ vec ) : ver _ args = [ {'name':'ns _ key ','arg': ns _ key,'t': emunamespacekey }, {'name':'ipv4 _ vec ','arg': ipv4 _ vec,'t':'ipv4 _ mc ','allow _ list': true }, ] emuvalidator. verify ( ver _ args ) ipv4 _ vec = [ ipv4 ( ip, mc = true ) for ip in ipv4 _ vec ] ipv4 _ vec = [ ipv4...
[ -1.5153971910476685, 0.1388460248708725, 0.7084591388702393, -0.13435578346252441, 0.09189370274543762, -0.15140804648399353, -0.15076248347759247, -0.3448620140552521, 0.15327340364456177, 0.673134982585907, -0.1041724756360054, 0.3818066120147705, -0.9414504766464233, 0.6362403631210327,...
def cast ( * args ) : return _ itkimageserieswriterpython. itkimageserieswriterif3if2 _ cast ( * args )
[ -0.3468657433986664, 0.010149536654353142, 0.26138824224472046, 0.0018109543016180396, 0.14216548204421997, 0.5999638438224792, -0.18722976744174957, -0.7197472453117371, 0.06020971015095711, 1.3352985382080078, 0.44178876280784607, 0.027276961132884026, -0.6556287407875061, 0.140516579151...
def wait ( self ) : if self. returncode is none : obj = waitforsingleobject ( self. _ handle, infinite ) self. returncode = getexitcodeprocess ( self. _ handle ) return self. returncode
[ 0.2920985519886017, -0.7118518948554993, 0.5331829786300659, 0.30347514152526855, 0.2817893624305725, 0.1875179409980774, 0.7868674397468567, 0.8621875643730164, -0.08909596502780914, -1.1660676002502441, -0.34301793575286865, -0.019068734720349312, -0.9960250854492188, -0.7909960150718689...
def store _ test _ dataset ( test _ dataset, source ='source. db') : conn = sqlite3. connect ( location ) c = conn. cursor ( ) for item in test _ dataset : c. execute ('insert into test _ dataset values (?,?,? ) ', item ) conn. commit ( )
[ -0.8770543336868286, 0.42002972960472107, 0.3025735318660736, -0.7586283683776855, 0.2107570618391037, 0.5360321998596191, 0.4117434620857239, 0.3360038101673126, 0.17487213015556335, -0.07476428896188736, -1.0726840496063232, -0.11267949640750885, -0.7440880537033081, -0.27785390615463257...
def isdiscrete ( self ) : # - - - + - - - - | - - - - + - - - - | - - - - + - - - - | - - - - + - - - - | - - - - + - - - - | - - - - + - - - - | - - - - + - - - - | return binomialdistbase. isdiscrete ( self )
[ -0.45427465438842773, -0.23930136859416962, 0.6770204305648804, 0.10869722813367844, 0.8709352612495422, 0.446184903383255, -0.5161793828010559, 0.25151968002319336, 0.6769306063652039, -0.7344671487808228, -0.6721518039703369, 0.12717123329639435, -1.294110655784607, 0.6338633298873901, ...
def point _ in _ poly _ old ( px, py, poly ) : cn = 0 i = - 1 j = 0 while j < len ( poly ) : qx, qy = poly [ i ] rx, ry = poly [ j ] if ( px, py ) = = ( qx, qy ) : return true if ( ( ( qy < = py ) and ( ry > py ) ) or \ ( ( qy > py ) and ( ry < = py ) ) ) : vt = ( py - qy ) / ( ry - qy ) if ( px < qx + vt * ( rx - qx )...
[ 0.056637343019247055, -0.7249802947044373, 0.6085180044174194, -0.7407437562942505, -0.5487055778503418, 0.5179033875465393, -0.27949246764183044, -0.9016599655151367, 0.7443743348121643, 0.03220303729176521, -0.21117091178894043, -0.33447927236557007, -0.8966044783592224, -0.4035951495170...
def timers ( self ) : log. debug ( " executing volatility timers plugin on " " { 0 } ". format ( self. memdump ) ) self. _ _ config ( ) results = [ ] command = self. plugins [ " timers " ] ( self. config ) for timer, module in command. calculate ( ) : if timer. header. signalstate. v ( ) : signaled = " yes " else : sig...
[ -0.5109831094741821, -0.4879344403743744, 0.5103763341903687, -0.8823325037956238, 0.5410139560699463, -0.48957228660583496, -0.3402728736400604, 0.023652169853448868, -0.11974804848432541, 1.068827509880066, -1.09609854221344, 0.35204896330833435, -0.1497814804315567, 0.7624862194061279, ...
def reciprocalexchangemutation ( self, ind ) : pass
[ -0.8705637454986572, 0.7883360981941223, 0.34686243534088135, -0.5175164937973022, 0.5820715427398682, -1.0132396221160889, 0.3741042912006378, 0.012502999976277351, 1.3081525564193726, 0.5262483358383179, -0.41094228625297546, -0.2967572510242462, -1.4025830030441284, -1.4072424173355103,...
def get _ cards ( self ) : return self. card _ probs. keys ( )
[ -0.02400338277220726, -0.388584166765213, 0.43526172637939453, 0.6801502108573914, 0.44903790950775146, 0.2679508924484253, -1.6119598150253296, 0.515040934085846, -0.22526593506336212, 0.17704766988754272, -0.31105223298072815, 0.45649397373199463, 0.07855957746505737, -0.6465579867362976...
def http _ handler _ factory ( urls : object ) : class httphandler ( basehttprequesthandler ) : def do _ get ( self ) : " " " handles http get requests according to urls config. " " " url = urls. get ( self. path ) if not url : self. send _ response _ only ( 404 ) self. end _ headers ( ) return self. wfile. write ('not...
[ -0.6416137218475342, -0.7363951206207275, 0.5666172504425049, -0.42918452620506287, -0.4543217718601227, 0.19815458357334137, -0.5854138731956482, -0.4350026845932007, -0.6090635061264038, -0.3403831422328949, 0.17734169960021973, -0.3275790214538574, 0.05578584596514702, -0.15566077828407...
def okchoosefuturetime ( self ) : if hasattr ( self, " choosefuturetimedialog " ) : self. choosefuturetimedialog. cleanup ( ) del self. choosefuturetimedialog if hasattr ( self, " okchoosefuturetimeevent " ) : self. ignore ( self. okchoosefuturetimeevent )
[ 0.6412513256072998, 0.03999655321240425, 0.4071488380432129, -0.02525716833770275, -0.7642014622688293, -0.39505574107170105, 0.5995935797691345, -0.07049713283777237, 0.32481688261032104, 0.8110895752906799, 0.005557202268391848, -0.14527921378612518, 0.37776315212249756, 0.98673737049102...
def _ update _ step ( self ) : self. step _ t + = 1 self. remaining _ budget _ t _ minus _ 1 = self. remaining _ budget _ t self. remaining _ budget _ t - = self. cost _ t self. bct _ t = ( self. remaining _ budget _ t _ minus _ 1 - self. remaining _ budget _ t ) * 1. 0 / self. remaining _ budget _ t _ minus _ 1 self. ...
[ -0.46399056911468506, -0.3190196454524994, 0.4495755434036255, 0.20440563559532166, 0.04258187115192413, 0.05038464814424515, 0.06606786698102951, 0.01878109574317932, -1.0572490692138672, 0.3860221803188324, -0.662234902381897, -0.19251857697963715, -0.039349786937236786, 0.80485045909881...
def get _ property ( self, property, default = none ) - > any : return self. properties. get ( property, [ default ] ) [ 0 ]
[ 0.02741139568388462, 0.347787469625473, 0.14851686358451843, 1.3909060955047607, 1.4035041332244873, -0.4308914244174957, -1.0452708005905151, -0.6077301502227783, -0.0075125927105546, -0.144679993391037, 0.5786799788475037, 0.04404174163937569, -0.834720253944397, -1.3102396726608276, -...
def get _ led _ one ( self ) : return self. _ get _ led ( self. command _ get _ led1 )
[ -0.04640616849064827, 0.22433513402938843, 0.5404080748558044, 1.1435211896896362, 0.8165358304977417, 0.7355093359947205, 0.2872156500816345, -0.6171013116836548, 0.3122757077217102, -0.6745428442955017, 0.22792674601078033, 1.565837025642395, -1.9652314186096191, -0.22935888171195984, ...
def cal _ error ( obs, mu, sigma, bins = 5 ) : sigmas = np. diag ( sigma ) quantiles = sp. stats. norm. cdf ( obs, mu, np. sqrt ( sigmas ) ) predicted = np. arange ( 1 / bins, 1 + 1 / bins, 1 / bins ) empirical = np. array ( [ np. mean ( quantiles < p ) for p in predicted ] ) return np. sum ( ( predicted - empirical ) ...
[ -0.3678501546382904, 0.15828803181648254, 0.44363105297088623, 0.34379833936691284, -0.5450417995452881, 0.16130919754505157, 0.2096068561077118, 0.2780727744102478, -0.16967414319515228, 0.34509214758872986, -0.0966281145811081, 1.6502715349197388, -0.16284672915935516, -0.119655802845954...
def lease _ tasks ( self, lease _ seconds, max _ tasks, deadline = 10 ) : _ validatedeadline ( deadline ) rpc = create _ rpc ( deadline ) self. lease _ tasks _ async ( lease _ seconds, max _ tasks, rpc ) return rpc. get _ result ( )
[ 0.11027676612138748, 1.2561798095703125, 0.6698271632194519, 0.8033539056777954, 0.02623469941318035, 0.1240745410323143, -0.6826319098472595, 0.7356033325195312, -0.1541803479194641, -0.02819637954235077, -0.9285476207733154, 0.14320144057273865, -0.363851398229599, -0.5135045647621155, ...
def test _ with _ random ( unitless = true ) : delta = 1. 33333 cube1 = algebra. make _ vect ( np. random. normal ( 0, 1, size = ( 257, 124, 68 ) ) ) info = {'axes': [ " freq ", " ra ", " dec " ],'type':'vect ','freq _ delta': delta / 3. 78,'freq _ centre': 0.,'ra _ delta': delta / 1. 63,'ra _ centre': 0.,'dec _ delta'...
[ 0.4848896563053131, 0.10486941039562225, 0.9106684923171997, -0.5338207483291626, 0.15666276216506958, 0.6181735396385193, 0.6292628049850464, -0.286279559135437, -0.5845027565956116, -0.5485987067222595, -0.2730734646320343, 0.5109865665435791, -0.36156725883483887, 0.48933517932891846, ...
def index ( request ) : initialize _ session ( request ) context = get _ context ( request, index = true ) return render ( request, " index. html ", context )
[ -0.2620166540145874, 0.09095311909914017, 0.31146514415740967, 0.2160552740097046, 0.3854946196079254, 0.12355558574199677, 0.7739118933677673, 0.4278610050678253, 0.5887939929962158, 0.09774494171142578, 0.6487631797790527, 0.12417905032634735, -0.19301164150238037, -0.5791161060333252, ...
def test _ parser _ brca2 _ 11 ( self ) : parser = minimalsamparser ('data / brca2 - 11. sam') mapped = dict ( [ ( line [ 0 ], line ) for line in parser if not type ( line ) = = dict ] ) gene _ start = 151341223 for read in mapped : if'plus'in read : strand = 1 else : strand = - 1 record = mapped [ read ] self. asserte...
[ -0.26581263542175293, -1.4427236318588257, 0.915575385093689, 0.10299306362867355, -0.3658887445926666, 0.5615484714508057, 0.20244477689266205, -0.08412213623523712, 0.4720799922943115, -0.890753984451294, -0.08087532967329025, -0.04153473302721977, 0.9039449095726013, 0.1786426454782486,...
def remove ( self, * args ) : return _ topods. topods _ builder _ remove ( self, * args )
[ -0.9997791051864624, 0.5299040079116821, 0.3304724097251892, 0.5474782586097717, -0.6043656468391418, 0.17395305633544922, 0.6839929223060608, 0.6436012387275696, 0.027456343173980713, -0.4548294246196747, -0.35476917028427124, -0.9801821112632751, -1.5630182027816772, -0.5135713815689087,...
def adjust _ ap _ speed ( self ) : for x in range ( 0, self. number _ axons, 1 ) : longueur = len ( self. sol _ array [ x ] [ 0 ] ) / 6 axon _ longueur = self. diameters _ array [ x ] * 142. 86 * longueur ratio = axon _ longueur / self. length self. ap _ speed [ x ] = self. ap _ speed [ x ] * ratio
[ 0.8559986352920532, 0.06115682050585747, 0.627821147441864, -0.6006193161010742, 0.1350821703672409, 0.27244535088539124, -0.29357025027275085, -0.3848569095134735, 0.6030274033546448, 0.38089296221733093, 0.7345903515815735, -0.058892473578453064, -0.3040779232978821, -0.04066584259271622...
def conv2d ( x, w ) : return tf. nn. conv2d ( x, w, strides = [ 1, 1, 1, 1 ], padding ='valid')
[ 0.4114690124988556, -1.070591688156128, 0.2493133693933487, 0.14353078603744507, -1.3158553838729858, 0.4597211182117462, -1.0983264446258545, -0.8057845830917358, -0.637193500995636, -0.3076469898223877, -0.22894297540187836, 0.4127824306488037, 0.43322819471359253, -0.1298753321170807, ...