text
stringlengths
25
2.19k
embedding
listlengths
768
768
def test _ map _ userinfo _ to _ user _ retries ( self ) - > none : store = self. hs. get _ datastores ( ). main self. get _ success ( store. register _ user ( user _ id = " @ test _ user : test ", password _ hash = none ) ) userinfo = { " sub " : " test ", " username " : " test _ user ", } request, _ = self. start _ a...
[ 0.3474440276622772, 0.6541987657546997, 0.6129592061042786, 0.23503917455673218, 0.042013637721538544, 0.7533863186836243, 0.7160559296607971, -0.41370508074760437, 1.0326824188232422, -0.4018629193305969, -0.8941956162452698, -0.04867510870099068, -0.011897054500877857, -0.362380981445312...
def test _ conjecture _ on _ matrix ( b _ matrix, mutation _ type = none, coxeter = none, cartan _ type = none ) : if not coxeter : coxeter = coxeter _ element ( b _ matrix ) # blackbox to produce the vectors we need t = tropicalclusteralgebra ( b _ matrix, mutation _ type = mutation _ type ) if cartan _ type : t. cart...
[ -0.059669822454452515, 1.2694908380508423, 0.8845123648643494, 0.16144442558288574, 0.2412472367286682, -0.5906496644020081, 1.3367949724197388, -0.45006996393203735, -0.018495263531804085, 0.158412903547287, 0.006732725538313389, 0.8912423253059387, -0.06955356895923615, -0.17382931709289...
def update ( self, data ) : logging. debug ('{ 0 } : update ( { 1 } ) '. format ( self. name, data ['action'] if'action'in data else'none') ) cdata = data. copy ( ) # local shallow copy if'history'in cdata : cdata ['history'] = data ['history']. copy ( ) # local copy of history self. last _ source = cdata ['history']. ...
[ -0.2814183235168457, -0.5455424189567566, 0.6028996706008911, -0.09014635533094406, 0.2822559177875519, -0.2606476843357086, 0.20194026827812195, -0.09510350972414017, 1.0913904905319214, 0.17119985818862915, -0.09727171808481216, 0.7476005554199219, -0.12833522260189056, 0.579218506813049...
def get _ wp _ statistics ( resource _ files, resource _ folder, hgnc _ manager ) - > tuple [ dict [ str, dict [ str, int ] ], dict [ str, dict [ str, dict [ str, int ] ] ], ] : global _ statistics = defaultdict ( lambda : defaultdict ( int ) ) all _ pathways _ statistics = { } for rdf _ file in tqdm. tqdm ( resource _...
[ 0.06332603096961975, 0.02091236412525177, 0.6207330822944641, -0.988616943359375, 0.2101648896932602, 0.4514012932777405, 0.8828374743461609, 0.06550988554954529, -0.7528215050697327, 0.15684987604618073, -0.16450127959251404, 0.07243866473436356, 0.2119985967874527, 0.5675840973854065, ...
def create _ classifier ( f, t, nt ) : training _ set _ features = [ ] training _ set _ target = [ ] testing _ set _ features = [ ] testing _ set _ target = [ ] print ( " number of training set samples : \ t { 0 } ". format ( nt ) ) print ( " number of testing set samples : \ t { 0 } ". format ( len ( f ) - nt ) ) prin...
[ -0.816938579082489, -0.30176791548728943, 0.6593573093414307, -0.11391396075487137, 0.09457792341709137, 0.26884883642196655, 0.7798175811767578, 0.5096496343612671, -1.3426910638809204, 0.4771958887577057, 0.20336498320102692, 0.3608955442905426, 0.4987063407897949, 0.46773338317871094, ...
def _ get _ passed _ arguments _ str ( self ) : passed _ args = [ ] for arg in ['field ','fields ','prev ','new'] : # todo : it will fail if the'prev's actual value is none if getattr ( self, arg, none ) is not none : passed _ args. append ( arg ) return passed _ args
[ -0.5809271931648254, -1.0321468114852905, 0.4861287772655487, -0.276581734418869, 0.8619877696037292, 0.08246930688619614, 0.016089806333184242, -0.5511734485626221, -1.4416879415512085, 0.5907105207443237, 0.5954796671867371, 0.4728863537311554, -0.27680397033691406, 0.7776325345039368, ...
def kill ( self ) : self. exit _ flag = true
[ 0.552571713924408, -0.7579808831214905, 0.24030695855617523, 0.990879476070404, 1.0332006216049194, 1.5228208303451538, 0.13477939367294312, 1.2331498861312866, -1.277107834815979, 0.36782804131507874, -0.7167475819587708, 0.48360157012939453, -0.020625926554203033, -0.05977126210927963, ...
def test _ support _ binary _ files _ request ( self ) : def _ open _ read ( m, payload ) : is _ binary = false args, kwargs = m. call _ args if len ( args ) > 1 : if " b " in args [ 1 ] : is _ binary = true encoding = " utf - 8 " if " encoding " in kwargs : encoding = kwargs [ " encoding " ] if is _ binary : from io i...
[ -0.3402673006057739, -0.160596564412117, 0.7316593527793884, -0.16609007120132446, 0.22460505366325378, 0.4456770718097687, 0.10889708250761032, 0.1792721003293991, -0.3336857259273529, -0.7225222587585449, 0.24505643546581268, -0.03016209974884987, -0.7383876442909241, 0.05375849083065986...
def do _ click ( self, args ) : try : if not self. config [ " actions " ] : self. locate _ element ( ) self. element. click ( ) except : self. handle _ exception ( )
[ 0.34962719678878784, 0.4769960641860962, 0.40091565251350403, 1.0081543922424316, 1.6681619882583618, 0.030354393646121025, 0.4853367805480957, -0.2510092258453369, 0.3346194922924042, 0.1915443390607834, 1.0294803380966187, 0.613201379776001, -0.5515884160995483, 0.11533377319574356, -0...
def _ _ iter _ _ ( self ) : probe = self while probe. next _ is not self : probe = probe. next _ yield probe. data
[ -0.16246691346168518, -0.24633435904979706, 0.6243104338645935, 0.031983230262994766, -0.033915840089321136, 1.1791454553604126, 0.4682537913322449, -1.5953624248504639, 0.23388496041297913, 0.15689577162265778, 0.2553146481513977, 0.09459596872329712, -1.1212799549102783, -0.0822550058364...
def get _ continent _ floor _ region _ map _ sectors _ ids ( self, continent _ id, floor _ id, region _ id, map _ id ) : return self. _ request ( " continents / { } / floors / { } / regions / { } / maps / { } / sectors ". format ( continent _ id, floor _ id, region _ id, map _ id ) )
[ -0.23273901641368866, -1.2924115657806396, 0.5294485688209534, -0.3332049250602722, 0.8939839601516724, -0.18440034985542297, -0.6228665709495544, -1.2111213207244873, 0.15835240483283997, 0.07940617948770523, 0.4875413477420807, 0.11880874633789062, -1.273000717163086, 0.821108877658844, ...
def get _ selected _ block ( self, location : tuple [ float, float ], level : int ) \ - >'block': if level > self. max _ depth : # level greater than max _ depth so we set it to max _ depth level = self. max _ depth closest _ distance = 100000 closest _ block = self for child in self. children : curr = child. get _ sel...
[ 0.3245824873447418, -1.1254918575286865, 0.7181886434555054, 0.18680080771446228, -0.6303616166114807, -0.260524183511734, 0.01876690238714218, -0.6128649711608887, -0.4448462426662445, 0.1655994951725006, -0.17046162486076355, 0.7526881694793701, -0.8137722611427307, 0.1620343178510666, ...
def _ _ call _ _ ( self, function, args, keywords ) : self. _ logger. handle ( logging. logrecord ( self. _ logger. name, # name trace, # level self. _ func _ filename, # pathname self. _ func _ lineno, # lineno " call * % r * * % r ", # msg ( args, keywords ), # args none, # exc _ info func = function. _ _ name _ _ ) ...
[ -0.10559745132923126, 0.7625090479850769, 0.863454282283783, -0.44448694586753845, -0.5057587623596191, -0.10892703384160995, -0.18445681035518646, -0.4879327416419983, -0.5112279653549194, -0.11552398651838303, 0.8438377976417542, -0.12480556964874268, -0.34338006377220154, 0.229985326528...
def clean _ data ( x, bound _ delete = bound _ delete, bound _ change = bound _ change ) : ind _ del = [ ] ind _ change = [ ] # number of rows no _ rows = x. shape [ 0 ] for i in range ( x. shape [ 1 ] ) : freq = x [ x [ :, i ] = = - 999, i ]. shape [ 0 ] / no _ rows print ( " row { }, freq { } ". format ( i, freq ) ) ...
[ -0.10287629812955856, -0.12517021596431732, 0.4680420160293579, -0.03310110419988632, -0.7118840217590332, -0.18448838591575623, 0.09017709642648697, 0.39583873748779297, 1.061141848564148, 0.36729007959365845, 0.21180327236652374, 0.9136508107185364, 0.6658021211624146, 0.2480245381593704...
async def get _ payloads ( self ) - > mythicresponse : url = " { } { } : { } / api / v { } / payloads / current _ operation ". format ( self. _ http, self. server _ ip, self. _ server _ port, self. _ server _ api _ version ) resp = await self. get _ json ( url ) if resp. response _ code = = 200 : # update the response ...
[ -0.9714537262916565, -0.36149832606315613, 0.6409264802932739, -0.1954810470342636, 0.3905799090862274, -1.425598382949829, -0.38924115896224976, -0.23563867807388306, -0.15344876050949097, 0.6409432291984558, -0.26300182938575745, -0.10115000605583191, -0.26127949357032776, -0.24553340673...
def index ( request ) : rooms = { } return render ( request, " index. html ", { " rooms " : rooms, } )
[ -0.8295884728431702, 0.09417876601219177, 0.05613356828689575, 0.3379988670349121, -0.5282955765724182, 0.9518144726753235, 0.24127639830112457, 1.064368724822998, -0.4689192473888397, 0.07233759760856628, 0.004096821881830692, 0.2566341161727905, -0.017569899559020996, 1.0320613384246826,...
def midi2nmat ( path ) : assert ( type ( path ) is str ), " filepath must be a string : % r " % path mid = mido. midifile ( path ) tpb = mid. ticks _ per _ beat output = pd. dataframe ( columns = [ " type ", " voice ", " pitch ", " velocity ", " ticks " ] ) for track in mid. tracks : midiframe = pd. dataframe ( columns...
[ 0.19624707102775574, 0.1609283685684204, 0.947597861289978, -0.4031237065792084, -0.30116668343544006, 0.217450812458992, 0.63907390832901, -0.32008397579193115, -0.7053478956222534, 0.9489126801490784, -0.45807936787605286, 0.2579710781574249, -0.5423938035964966, -0.24004881083965302, ...
def on _ boundary ( self, x ) : return ( np. isclose ( x [ 0 ], 0 ) or np. isclose ( x [ 1 ], 0 ) or np. isclose ( x [ 0 ], 1 ) or np. isclose ( x [ 1 ], 1 ) )
[ -0.5907241106033325, -0.7188922762870789, 0.888981819152832, 0.9283978939056396, 0.2640575170516968, 0.826215386390686, -0.8380251526832581, -0.9220927953720093, 0.7969124913215637, 0.46368879079818726, -0.20451562106609344, 0.3784402012825012, -1.3914741277694702, 0.7063443660736084, -0...
def linreg _ qual ( quality _ string ) : positions = np. arange ( len ( quality _ string ) ) qualities = np. array ( [ convert _ qual ( char ) for char in quality _ string ] ) return stats. linregress ( positions, qualities )
[ 0.17667022347450256, -1.0839745998382568, 0.16395503282546997, -1.5883588790893555, 0.281631201505661, -0.01547757163643837, -0.6413547992706299, 0.8342154622077942, 0.1870070993900299, 0.07574781775474548, -0.3117310404777527, 0.6988164186477661, -0.859797477722168, -1.044032335281372, ...
def n _ chunks ( self ) - > int : return self. _ df. n _ chunks ( )
[ -0.15009239315986633, 1.3034104108810425, 0.24534009397029877, 0.7714269161224365, 0.45579907298088074, -0.5207187533378601, 0.2782733142375946, 0.10526804625988007, -1.5790554285049438, -1.1919429302215576, 0.38816916942596436, 0.40645068883895874, 0.44328582286834717, -0.1359001249074936...
async def test _ form _ cannot _ authenticate ( hass : homeassistant ) - > none : result = await hass. config _ entries. flow. async _ init ( domain, context = { " source " : config _ entries. source _ user } ) with requests _ mock. mocker ( ) as mock _ request : mock _ request. get ( " https : / / user - api. wall - b...
[ -0.7371023297309875, 0.29693812131881714, 0.41682595014572144, 0.6775686144828796, 0.24242019653320312, 0.4972698390483856, -0.43443816900253296, -0.1476714164018631, 0.3443247079849243, -0.7138698101043701, -0.491691529750824, 0.007039543706923723, 0.03551272675395012, 0.04009345173835754...
def find _ the _ plural ( sentence, position ) : if len ( sentence ) - position - 1 < 0 : return - 1 # it is a number the word is not a plural if other _ functions. number ( sentence [ position ] ) = = 1 : return - 1 # if it is proposal we continue if sentence [ position ] in resourcepool ( ). proposals : return find _...
[ -0.39062947034835815, -0.19559498131275177, 0.9299608469009399, -0.2426098734140396, -0.8184154629707336, -1.009451985359192, -0.2583068013191223, 0.1154530718922615, 0.028876399621367455, 0.3646678328514099, 0.4314521849155426, -0.5709453225135803, -0.6625758409500122, 0.1369333118200302,...
def get _ pilot _ source _ dir ( ) : cwd = getcwd ( ) if exists ( join ( join ( cwd,'pilot2'),'pilot. py') ) : # in case wrapper has untarred src as pilot2 in init dir return join ( cwd,'pilot2') elif exists ( join ( cwd,'pilot. py') ) : # in case pilot gets launched from within the src dir return cwd else : # could th...
[ -0.4158692955970764, -0.7533212304115295, 0.8076022863388062, -0.33014729619026184, -0.5181804895401001, 0.8631095886230469, 0.2502303421497345, -0.09922876954078674, 0.895526111125946, -0.7678057551383972, 1.0253350734710693, 0.6152493357658386, -0.8033131957054138, 1.1305323839187622, ...
def construct _ from _ string ( cls, string ) - > self : if not isinstance ( string, str ) : raise typeerror ( f "'construct _ from _ string'expects a string, got { type ( string ) } " ) if string = = " string " : return cls ( ) elif string = = " string [ python ] " : return cls ( storage = " python " ) elif string = =...
[ -0.07321494817733765, -0.9725154638290405, 0.2447831779718399, 0.14853684604167938, -0.5238369107246399, -0.096773661673069, 0.4449332058429718, -0.9811921119689941, 0.9712215662002563, -0.8052002787590027, -0.31549692153930664, 0.30861738324165344, 0.3572976291179657, -0.12306667864322662...
def telstate _ decode ( raw, no _ decode = ( ) ) : if isinstance ( raw, ( np. void, np. ndarray ) ) : return to _ str ( katsdptelstate. decode _ value ( raw. tobytes ( ) ) ) raw _ str = to _ str ( raw ) if raw _ str in no _ decode : return raw _ str else : return to _ str ( katsdptelstate. decode _ value ( raw _ str. e...
[ -0.7238620519638062, 0.1568259596824646, 0.37882930040359497, -0.8437106013298035, -1.6256513595581055, 0.13556398451328278, -1.4636224508285522, -0.10507676005363464, 1.1113709211349487, -0.48029670119285583, 0.7749711275100708, 0.008537929505109787, 0.12655648589134216, -0.23580059409141...
def remove ( self, key : int ) - > none : bucket _ to _ map = self. hash _ function ( key ) ; if self. buckets [ bucket _ to _ map ] is none : return else : value = self. get ( key ) self. buckets [ bucket _ to _ map ]. remove _ item ( ( key, value ) )
[ -0.7229511737823486, 0.30593881011009216, 0.5439858436584473, 0.228101447224617, -0.7112067937850952, -0.09574694186449051, -0.1621987223625183, 0.23035100102424622, -0.24048328399658203, -0.06803551316261292, -0.7595635652542114, -0.7005722522735596, 0.08117201179265976, 0.249414399266242...
def convert _ valid _ bboxes ( self, box _ dict, info ) : # todo : refactor this function box _ preds = box _ dict ['boxes _ 3d'] scores = box _ dict ['scores _ 3d'] labels = box _ dict ['labels _ 3d'] sample _ idx = info ['image'] ['image _ idx'] box _ preds. limit _ yaw ( offset = 0. 5, period = np. pi * 2 ) if len (...
[ -0.1717122346162796, -0.7472082376480103, 0.842024028301239, 0.1160706877708435, -0.3474515378475189, 0.2872059941291809, -0.33633553981781006, -0.18650689721107483, -0.05895219370722771, -0.07837655395269394, -0.051279693841934204, 0.29247820377349854, 0.6374271512031555, 0.33405214548110...
def export _ reaction _ button ( pk, meeting, meeting _ pk, title = " gilla ", icon ='mdi - thumb - up ', color ='primary') : # should be : [ " proposal ", " discussion _ post " ] allowed _ models = [ model _ map [ x ] for x in getattr ( meeting,'like _ context _ types ', [ ] ) ] # this isn't strictly correct since dis...
[ -0.06756234914064407, -0.01686970330774784, 0.750790536403656, -0.5482998490333557, -0.3167802095413208, 0.4563487768173218, -0.6201118230819702, 0.19842149317264557, 0.3847373425960541, 0.6530091166496277, -0.694915235042572, -0.5020773410797119, -0.2833753824234009, -0.894207239151001, ...
def qr _ hapi ( self, tarr ) : allt = list ( np. concatenate ( [ [ self. tref ], tarr ] ) ) qrx = [ ] for iso in self. uniqiso : qrx. append ( hapi. partitionsum ( self. molecid, iso, allt ) ) qrx = np. array ( qrx ) qr = qrx [ :, 1 : ]. t / qrx [ :, 0 ] # q ( t ) / q ( tref ) return qr
[ 0.10950731486082077, 0.20452266931533813, 0.4937494695186615, -0.48640042543411255, -0.14923253655433655, 0.4762750566005707, -0.2510603666305542, 0.331250935792923, 0.5609590411186218, 0.16160209476947784, 0.46199145913124084, -1.4097110033035278, -0.24868643283843994, -0.3742788732051849...
def get _ elements ( self, tag _ name, attribute ) : l = [ ] for item in self. _ xml. getelementsbytagname ( tag _ name ) : value = item. getattributens ( constant. ns _ android _ uri, attribute ) value = self. format _ value ( value ) l. append ( str ( value ) ) return l
[ -0.42048269510269165, -0.8515076041221619, 0.38351303339004517, 0.0631510317325592, -0.05866461992263794, -0.2876852750778198, -1.0731732845306396, -0.2704020142555237, 0.6844400763511658, 0.6553968787193298, 0.7338941693305969, 0.1495433896780014, 0.9304219484329224, 1.0028820037841797, ...
def speedstring ( factor ) : factor = int ( factor ) if factor > = 0 : sign ='+'else : sign ='-'factor = - factor if abs ( factor ) < 10 : return sign +'00'+'%. 0d'% factor elif abs ( factor ) > 99 : return sign +'%. 0d'% factor else : return sign +'0'+'%. 0d'% factor
[ -0.2364778071641922, -0.9098032116889954, 1.048703670501709, -0.5545617938041687, -0.7804206013679504, 0.3648096024990082, -0.26031267642974854, -0.30054962635040283, -0.12465280294418335, -0.03234373778104782, 0.6059527397155762, -0.3837563991546631, 0.03523019328713417, 0.484785079956054...
def test _ redetect _ one _ invalid _ rectangle ( self ) : for detector in self. detectors : with self. subtest ( detectortype = detector. detectortype ) : with pytest. raises ( lunasdkexception ) as exceptioninfo : detector. redetectone ( image = vlimage _ one _ face, bbox = invalid _ rect ) self. assertlunavlerror ( ...
[ 0.20410652458667755, 0.7974866032600403, 0.5495061874389648, 0.7949135303497314, 0.9166247248649597, 0.20728367567062378, -0.31585216522216797, 0.29840949177742004, 0.572796106338501, -0.7836155295372009, -0.03449813276529312, -0.2331354022026062, 0.1078367829322815, 1.1319787502288818, ...
def _ _ init _ _ ( self, stopper, q ) : threading. thread. _ _ init _ _ ( self ) self. q = q self. stopper = stopper self. listener = keyboard. listener ( on _ press = self. on _ press )
[ 0.408253937959671, -0.6043456196784973, 0.6816787123680115, 0.3037312924861908, -0.2768643796443939, 0.6450029015541077, -0.7429497241973877, -0.2658202350139618, -0.517638623714447, -0.6080211400985718, -0.5979830622673035, -0.30026954412460327, 0.012892921455204487, 0.7119609713554382, ...
def print ( self ) - > none : pass
[ 0.6569673418998718, -0.6158995628356934, -0.09205983579158783, 0.6020444631576538, 1.2855117321014404, 1.0835427045822144, 0.928768515586853, -0.2808894217014313, -0.4521365165710449, -1.4854414463043213, 0.07697777450084686, 1.5096595287322998, -0.4073020815849304, 0.42450952529907227, ...
def init _ alphabet ( self, alphabet ) : self. alphabet = alphabet [ : ] self. symbol _ height = self. get _ symbol _ height ( )
[ -0.7750434875488281, -0.20796987414360046, 0.3528965711593628, 0.06080479547381401, 0.4699810743331909, -0.21015150845050812, 0.8324159979820251, -0.8703106641769409, 0.3379598557949066, 0.050766974687576294, -1.755772590637207, 0.6683645248413086, -0.26334768533706665, 1.2444429397583008,...
def sigmoid ( self, x, derivative = false ) : if ( derivative = = true ) : return x * ( 1 - x ) else : return 1 / ( 1 + np. exp ( - x ) )
[ -0.2623515725135803, 1.0628904104232788, 0.5656246542930603, 0.6653697490692139, -0.5076545476913452, 1.0314744710922241, -0.09631150960922241, 0.5306757092475891, 0.6379792094230652, -0.08096494525671005, -0.048526834696531296, -0.4250817894935608, -0.7569751143455505, -0.4773338139057159...
def post ( self, request : request ) - > response. response : try : allergy : models. allergy = models. allergy. create _ from _ json ( data = request. data, patient _ profile = request. user. patient _ profile ) except custom _ exceptions. datanotprovided as e : return response. response ( data = e. get _ response _ f...
[ 0.5700309872627258, -0.38679879903793335, 0.6162326335906982, 0.515567421913147, -0.4475129544734955, -0.07509914040565491, -1.2150555849075317, 0.6224339008331299, 0.4716048836708069, 0.051584821194410324, -0.16533765196800232, 0.3736073970794678, -0.12056203186511993, -0.3918845951557159...
def cartesian _ parameters ( self ) : return self. mu _ list, self. k _ list
[ -1.090393304824829, -0.9230741858482361, 0.3612668216228485, -0.24714292585849762, -0.31020334362983704, 0.6736307740211487, -1.2447028160095215, 0.24915950000286102, -0.9256577491760254, 0.911087155342102, -0.3856005072593689, 0.9587563276290894, -0.11129943281412125, 0.7175540924072266, ...
def encrypt ( self, data : bytearray ) - > bytearray : if not isinstance ( data, ( bytes, bytearray ) ) : self. clear ( ) raise gostciphererror ('invalid plaintext data') gamma = bytearray ( ) result = bytearray ( ) for i in range ( get _ num _ block ( data, self. block _ size ) ) : gamma = self. _ cipher _ obj. encryp...
[ -0.5931441783905029, 0.685938835144043, 0.8930843472480774, 0.21073581278324127, 0.18351036310195923, -0.393265962600708, 1.026810884475708, -0.7726631760597229, 0.41012218594551086, 0.3723176419734955, -0.9971917271614075, 0.11231374740600586, -1.3934592008590698, 0.28959921002388, -0.2...
def _ _ str _ _ ( self ) : alphabet = [ str ( s ) for s in self. alphabet ] tape _ alphabets = [ ] for tape in self. tapes : tape _ alphabets. append ( [ str ( s ) for s in tape. alphabet ] ) strval = \ " " " tm : % s ( sigma, gammas, q, q _ accept, q _ reject, q _ start, delta _ functions ) sigma = % s gammas = % s q ...
[ 0.23385867476463318, -0.6915588974952698, 0.6069394946098328, -1.5652393102645874, -0.40544992685317993, 0.34585919976234436, -0.10249936580657959, -0.8555616140365601, -0.7874317765235901, 0.06478175520896912, 0.06709636747837067, 0.13326072692871094, -0.2539593279361725, 0.36174458265304...
def origin _ access _ identity _ id ( self ) - > typing. optional [ str ] : return self. _ values. get ('origin _ access _ identity _ id')
[ 0.686823844909668, -1.3812196254730225, 0.4461109936237335, 0.5323264002799988, 0.4913119673728943, 1.5878986120224, 0.7576703429222107, 0.36357077956199646, 1.048727035522461, -0.11065439134836197, 0.6690568923950195, 1.62413489818573, 0.23206038773059845, -0.9316006302833557, -0.028876...
def session _ start ( online, jrf _ targets, admin _ user, admin _ pass, admin _ url, domain _ home ) : _ method _ name ='session _ start'_ logger. entering ( online, jrf _ targets, admin _ user, admin _ url, domain _ home, class _ name = _ class _ name, method _ name = _ method _ name ) if online : _ _ online _ sessio...
[ -0.9283978343009949, -0.25224509835243225, 0.5349136590957642, 1.2371840476989746, 0.42288684844970703, -0.17009034752845764, 0.5376845002174377, -0.27057045698165894, 0.31227442622184753, 0.7113034129142761, -0.04790789261460304, 1.5263093709945679, -0.15492220222949982, 0.159056648612022...
def plot _ geotweets ( self, normalize = true, cinema _ run = false ) : # get movie tweet count cell for all movies cell _ tweet _ count _ df = database _ helper. select _ query ( " tweet _ cell _ count " ) title = " { 0 } tweets per region ". format ( self. title ) map _ col ='counts'# load shapefile from ordnance sur...
[ 0.5719083547592163, -0.08658845722675323, 0.7835869193077087, -0.30555829405784607, -0.20142869651317596, 0.794985830783844, 0.3671623170375824, 0.34834787249565125, -0.44852524995803833, 0.5962056517601013, 0.9277769923210144, 0.2830790877342224, 0.4084346294403076, 0.6901951432228088, ...
def input _ amounts ( blockheight = directory _ block _ height ) : transactions : object = factomd. factoid _ block _ by _ height ( blockheight ) ['fblock'] ['transactions'] for amount in transactions : inputs = amount ['inputs'] filtered _ inputs = list ( filter ( none, inputs ) ) # filter out empty strings for in _ a...
[ 0.5473343133926392, -0.2656833529472351, 0.5511904954910278, -0.3663511872291565, -0.3037201464176178, -1.021395206451416, 0.6260611414909363, -0.48428425192832947, -0.6697280406951904, 0.4441722333431244, -0.08421697467565536, 0.1534719169139862, 0.16839365661144257, 0.8420434594154358, ...
def toggle _ string _ cache ( toggle : bool ) : pytoggle _ string _ cache ( toggle )
[ -0.39405858516693115, 0.5811747908592224, 0.36099371314048767, -0.09674746543169022, -1.0686146020889282, 0.6075472831726074, 0.2283782958984375, 0.7638422846794128, 0.6641121506690979, 1.1210490465164185, -0.5689826607704163, 0.27243781089782715, -0.6733965277671814, -0.35026815533638, ...
def schedule _ fetch ( ) : for instance _ group _ manager in models. instancegroupmanager. query ( ) : if instance _ group _ manager. url : utilities. enqueue _ task ('fetch - instances ', instance _ group _ manager. key )
[ -0.27448520064353943, 0.31390827894210815, 0.4726652204990387, 0.3174600899219513, -0.06193752586841583, 0.13378223776817322, -0.25743019580841064, -0.019267631694674492, -0.8028902411460876, 0.32204440236091614, -0.5171428322792053, 0.733267605304718, 0.4915195405483246, 0.754005014896392...
def step _ type ( self, type ) : agents = self. agents _ by _ type [ type ] random. shuffle ( agents ) for agent in agents : agent. step ( )
[ -1.2213010787963867, -0.5903387665748596, 0.43673285841941833, 0.24665109813213348, 0.6963896751403809, 0.1483226716518402, 0.17501457035541534, -0.5385480523109436, 0.5447665452957153, -0.2164250612258911, -0.5814653635025024, -0.18364278972148895, -0.379885733127594, 1.3802670240402222, ...
def size ( w = 15, h = 8, fig = none ) : figure ( fig ). set _ size _ inches ( w, h )
[ 0.6151382923126221, 1.3275237083435059, 0.476887583732605, -0.181986466050148, -0.43236225843429565, 0.6206538677215576, 0.4531256854534149, 0.5098422169685364, -0.35542458295822144, -0.6831787824630737, -1.0368218421936035, 0.48919811844825745, 0.40301984548568726, 0.14087139070034027, ...
def positionvalue ( scene, analyzer, test _ number, workbook = none, sheet _ format = none, agg _ dict = none ) : # get the stats auto ordered nested dictionary position = analyzer. get _ analysis ( ) if scene [ " save _ db " ] : df = pd. dataframe ( list ( position. values ( ) ) [ 1 : ], index = list ( position. keys ...
[ -0.5086092352867126, 0.14700962603092194, 0.7492291331291199, -0.41911187767982483, 0.3301398754119873, -0.11941521614789963, -0.020087605342268944, 0.5243157744407654, -0.6258028149604797, 0.1447051763534546, 0.799718976020813, -0.7016553282737732, 0.4295901656150818, 0.6104183793067932, ...
def state _ message _ received ( msg : receivemessage ) - > none : if not self. _ on _ state _ callback : return if msg. topic = = self. _ cfg. state _ topic1 : state = get _ value _ by _ path ( msg. payload, self. _ cfg. value _ path [ : - 1 ] ) last _ node = self. _ cfg. value _ path [ - 1 ] if msg. topic = = self. _...
[ -0.08354171365499496, -0.009198659099638462, 0.5376915335655212, -0.35311198234558105, 0.28682079911231995, -1.0309330224990845, 0.09598661959171295, -0.40394994616508484, 0.5169829726219177, 0.17722751200199127, 0.5580928325653076, -0.4327033460140228, -0.052456334233284, 0.61667710542678...
def impacting _ phase ( self ) : r = self. grav. y [ 0 : 3 ] v = self. grav. y [ 3 : 6 ] magnetic _ field = fun. b _ field ( r ) a = ( self. prams ['charge'] / self. prams ['mass'] ) * np. cross ( v, magnetic _ field ) [ 2 ] a = a - var. g dr = self. prams ['length'] - r [ 2 ] if dr < 0 : dt = ( - v [ 2 ] - np. sqrt ( ...
[ 0.19904576241970062, -0.1944684237241745, 0.8013175129890442, -0.8576457500457764, 0.217471182346344, 0.48640090227127075, 0.5677753686904907, -0.3119392991065979, -0.4527970850467682, 0.5180694460868835, 0.16712744534015656, -0.15476596355438232, -0.7656845450401306, 0.3723277449607849, ...
def inference ( self, x ) : with tf. variable _ scope ('recurrentnn') : pre _ trained _ embeddings = np. load ('datasets / clinicalts / basefiles / cdif / w2v / final _ embeddings. npy') vocab _ length, embedding _ dimension = pre _ trained _ embeddings. shape print ('embedding matrix dimensions, ', vocab _ length, emb...
[ -0.39538711309432983, 0.4622122049331665, 0.8728271126747131, 0.6406734585762024, -0.6108619570732117, -0.42470332980155945, 0.4802243709564209, -0.09382982552051544, -0.09027571976184845, 0.24335825443267822, -0.9126015305519104, -0.14620567858219147, 0.46539807319641113, 0.57421427965164...
def reason ( self, reason ) : self. _ reason = reason
[ 0.5513395667076111, 0.33780163526535034, -0.2800696790218353, 0.0022984871175140142, 0.2476571649312973, 1.0644862651824951, 0.4231601059436798, 0.6143078207969666, 0.6577321290969849, -0.7830787301063538, -1.1615437269210815, 1.0111244916915894, -0.254038542509079, 0.5048171877861023, 0...
def input _ fn ( params ) : batch _ size = params [ " batch _ size " ] num _ examples = len ( features ) # this is for demo purposes and does not scale to large data sets. we do # not use dataset. from _ generator ( ) because that uses tf. py _ func which is # not tpu compatible. the right way to load data is with tfre...
[ 0.17793919146060944, 0.0639200210571289, 0.5601680874824524, -0.11866791546344757, -0.29673710465431213, -0.16813461482524872, 0.8328356742858887, 0.6576891541481018, -0.0896761417388916, -0.13896329700946808, 0.20258131623268127, 0.7304779887199402, 0.29061150550842285, -0.609394192695617...
def update _ problem _ schema ( self ) : if not self. problem _ updates : self. add _ error _ message ( ('no problem updates specified'' ( userproblemhelper )') ) return false # ( 1 ) get the original problem schema # success, prob _ schema _ or _ err = userproblemhelper. get _ current _ problem _ schema ( self. user _...
[ -0.6227133274078369, -0.3922826945781708, 0.7566239833831787, 0.6382893323898315, -0.33488282561302185, 1.0256917476654053, 0.15653398633003235, 0.7939261198043823, -0.04510271176695824, 0.10073219984769821, -0.26999107003211975, -0.27394235134124756, -0.8594529032707214, -1.25642156600952...
def _ _ init _ _ ( _ _ self _ _ ) : pass
[ -0.1291685253381729, -1.0733017921447754, 0.7379347681999207, 0.942696213722229, 0.4286614656448364, 0.553653359413147, 1.0968037843704224, -0.32136067748069763, 0.641489565372467, -0.9846289157867432, -1.2554070949554443, 0.17475342750549316, 0.21235185861587524, 0.5697752833366394, 0.7...
def subselect _ region ( ds, props ) : # ds = ds. where ( ( ds. latitude > = 20 ) & ( ds. latitude < = 45 ) & ( ds. longitude > = - 85 ) & ( ds. longitude < = - 30 ), drop = true ) ds = ds. where ( ( ds. latitude > = props ['lat'] [ 0 ] ) & ( ds. latitude < = props ['lat'] [ 1 ] ) & ( ds. longitude > = props ['lon'] [ ...
[ -0.1386530101299286, -0.827008068561554, 0.649562418460846, -0.8271939158439636, -0.310939759016037, 0.4723547101020813, -0.4800497591495514, -0.1587553322315216, -0.16385813057422638, -0.595175564289093, 0.4135447144508362, 0.8715706467628479, 0.426280677318573, -1.0056325197219849, 0.2...
def log _ normal _ likelihood ( y _ obs, p ) : log _ pdf = scipy. stats. norm. logpdf ( y _ obs, loc = p [ 0 ], scale = p [ 1 ] ) log _ likelihood = np. nansum ( log _ pdf ) return log _ likelihood
[ 0.2342187613248825, -0.8599493503570557, 0.4529950022697449, -0.30393779277801514, -0.6730532050132751, 0.5997411608695984, -1.0450531244277954, 0.6225303411483765, 0.5174563527107239, -0.09190116822719574, 0.15516169369220734, 0.2769734859466553, -0.052398476749658585, -0.7263476252555847...
def snapshot ( self, label = none ) : result = self. _ client. post ( " { } / backups ". format ( instance. api _ endpoint ), model = self, data = { " label " : label }, ) if not " id " in result : raise unexpectedresponseerror ( " unexpected response taking snapshot! ", json = result ) # so the changes show up the nex...
[ -1.0039650201797485, 0.5728147029876709, 0.41839298605918884, 0.3114117681980133, -0.1324460655450821, 0.5155093669891357, -0.6202322244644165, -0.48562654852867126, 0.4607265889644623, -0.34544050693511963, -0.2979395091533661, -0.37006792426109314, -0.5177320241928101, -0.863967716693878...
def tridiag ( ah ) : a = ah. copy ( ) n = a. shape [ 0 ] for k in range ( n - 2 ) : x = a [ k + 1 :, k ] e1 = zeros ( n - ( k + 1 ) ) e1 [ 0 ] = 1 v = sign ( x [ 0 ] ) * nla. norm ( x ) * e1 + x v = v / nla. norm ( v ) a [ k + 1 :, k : ] = a [ k + 1 :, k : ] - 2 * outer ( v, dot ( v, a [ k + 1 :, k : ] ) ) a [ k :, k +...
[ 0.1805443912744522, -0.7724400162696838, 0.9119604229927063, -0.49182119965553284, -0.2057752013206482, -0.051734134554862976, 1.3079065084457397, 0.4311910569667816, 0.8799605965614319, 0.5605981945991516, 0.03828494995832443, -0.35453125834465027, 0.4141714572906494, 0.5085542798042297, ...
async def get _ self ( self ) - > mythicresponse : url = " { } { } : { } / api / v { } / operators / me ". format ( self. _ http, self. server _ ip, self. _ server _ port, self. _ server _ api _ version ) resp = await self. get _ json ( url ) if resp. response _ code = = 200 and resp. status = = " success " : self. ope...
[ -1.1175353527069092, -0.8024699091911316, 0.8332987427711487, 0.03412317484617233, 0.08040837943553925, -0.7595348358154297, 0.019232988357543945, -0.18678730726242065, 0.25756779313087463, -0.05750180035829544, -0.6740567684173584, 0.0013294926611706614, -0.39249187707901, -0.629937529563...
def user _ principal _ names ( self ) - > sequence [ str ] : return pulumi. get ( self, " user _ principal _ names " )
[ -0.03048529662191868, -0.029923439025878906, 0.3261115252971649, 0.19449670612812042, 0.27826714515686035, 2.0588464736938477, -0.5085957646369934, -0.637959897518158, 1.0965553522109985, 1.037785291671753, -1.3454843759536743, 0.7595106959342957, -0.17639382183551788, -1.1399701833724976,...
async def listen _ for _ all _ payloads ( self, callback _ function = none, timeout = none ) : url = " { } { } : { } / ws / payloads / info / current _ operation ". format ( self. _ ws, self. _ server _ ip, self. _ server _ port ) if callback _ function : task = await self. stream _ output ( url, callback _ function, t...
[ 0.34591448307037354, 0.18528275191783905, 0.7094560265541077, -0.08952009677886963, -0.6420659422874451, -0.7195141315460205, 0.38872581720352173, -0.30185261368751526, -0.17901964485645294, -0.0787324458360672, 0.40305301547050476, 0.5684954524040222, -0.14665617048740387, 0.7622629404067...
def location _ id ( self, location _ id ) : self. _ location _ id = location _ id
[ 0.38904619216918945, -0.9971439838409424, -0.3081120252609253, 0.23958025872707367, 0.2310599833726883, 0.9457423686981201, 0.634552538394928, 1.3035856485366821, 0.7714062333106995, 0.07368563860654831, -0.05336249992251396, 0.089413583278656, 0.49816712737083435, 0.8766204714775085, -0...
def make _ canvas ( width, height, title ) : top = tkinter. tk ( ) top. minsize ( width = width, height = height ) top. title ( title ) canvas = tkinter. canvas ( top, width = width + 1, height = height + 1 ) canvas. pack ( ) return canvas
[ -0.15314354002475739, 0.12843260169029236, 0.7809747457504272, -0.262443482875824, -1.77049720287323, -0.019649647176265717, -0.37776678800582886, -1.2998188734054565, 0.006618264596909285, -0.9020930528640747, 0.5444437861442566, 0.0353451706469059, 0.22694259881973267, -0.174979582428932...
def volume _ type _ get ( context, id ) : return impl. volume _ type _ get ( context, id )
[ 0.12810230255126953, -0.4157499670982361, 0.34810277819633484, 0.1361442655324936, 1.0929840803146362, -1.4123858213424683, -0.7188939452171326, -1.5729645490646362, 0.4228014647960663, 0.22307628393173218, 0.47177013754844666, 1.2697067260742188, -0.17112530767917633, -0.6778355836868286,...
def assign _ interface _ prejudice ( self ) : if ( ( self. interfaces is none ) or ( self. interface _ resistivity _ values is none ) ) : print ( " can't build prejudices, need to define interfaces " ) return else : # remove zero and negative resistivities self. interface _ resistivity _ values = [ max ( 1e - 6, rv ) f...
[ -0.15110692381858826, -0.208998903632164, 0.7671878337860107, 0.14476031064987183, 1.0525847673416138, 0.2607230246067047, 1.08833646774292, -0.23811407387256622, -0.205983966588974, -0.06062980368733406, -0.4149477481842041, 0.2361266016960144, -1.3456238508224487, 0.9193029999732971, 0...
def idle _ federated _ policy ( alice, bob ) : n = int ( constants. number _ of _ ursulas _ in _ network ) random _ label = b'label : / /'+ os. urandom ( 32 ) policy = alice. create _ policy ( bob, label = random _ label, m = 3, n = n, federated = true ) return policy
[ -0.23432204127311707, 0.9548131227493286, 0.2702338397502899, -1.3531508445739746, 1.3984882831573486, 1.5389325618743896, -0.5758228898048401, -0.8815361857414246, 0.9226261973381042, -0.3288624882698059, -0.46983346343040466, 0.3436625301837921, -0.8685972690582275, -0.5894824862480164, ...
def signed _ range _ value ( ranges : list [ valuerange ] ) - >'possiblevalueset': result = possiblevalueset ( ) result. _ value = 0 result. _ type = registervaluetype. signedrangevalue result. _ ranges = ranges result. _ count = len ( ranges ) return result
[ -0.6070417761802673, -0.1755533218383789, 0.25630879402160645, 0.2796006202697754, 0.30453455448150635, -0.1782320737838745, -0.25825557112693787, -0.4497816562652588, 0.3048212230205536, -0.7216500043869019, -0.4627334177494049, -0.144478902220726, -1.0007833242416382, 0.3333894908428192,...
def snapshot ( self, *, as _ json = false, beautify _ json = true ) : snapshot = super ( ). snapshot ( as _ json = false, beautify _ json = false ) snapshot. update ( {'moving _ mean': {'dtype': str ( self. moving _ means. dtype ),'values': self. moving _ means. tolist ( ) } if self. moving _ means is not none else non...
[ -1.0464038848876953, -0.07896458357572556, 0.8407136797904968, -0.38680997490882874, -0.6173896789550781, -0.24494928121566772, -0.2270081788301468, -0.85300612449646, -0.03357213735580444, 0.33480238914489746, -0.6070202589035034, 0.33375146985054016, 1.2989410161972046, 0.377759009599685...
def get _ mnist _ data ( test _ batch _ size : int, batch _ size : int ) - > tuple [ torch. utils. data. dataloader, torch. utils. data. dataloader ] : training _ data = torch. utils. data. dataloader ( torchvision. datasets. mnist ( " ~ /. torch / datasets ", train = true, download = true, transform = torchvision. tra...
[ 0.028573792427778244, -0.30893826484680176, 0.5077559947967529, -0.1332201361656189, -0.48252201080322266, 0.29877611994743347, -0.366902619600296, 0.27139827609062195, 0.35452356934547424, 0.06865081936120987, -0.5986919403076172, 1.0613590478897095, 0.25103482604026794, 0.096396088600158...
def to _ owl _ graph ( msdf : mappingsetdataframe ) - > graph : graph = to _ rdf _ graph ( msdf = msdf ) for _ s, _ p, o in graph. triples ( ( none, uriref ( uri _ sssom _ mappings ), none ) ) : graph. add ( ( o, uriref ( rdf _ type ), owl. axiom ) ) for axiom in graph. subjects ( rdf. type, owl. axiom ) : for p in gra...
[ -0.09644220024347305, 0.45783165097236633, 0.6261649131774902, -0.7179760336875916, -0.17719610035419464, 0.49525079131126404, 0.6141794323921204, 0.16129077970981598, 1.0869511365890503, 0.17581894993782043, -0.0959649384021759, 0.5925384163856506, 0.6164281964302063, -0.4704073369503021,...
def get _ annotmatch _ reviewed ( ibs, annotmatch _ rowid _ list, eager = true, ninput = none ) : id _ iter = annotmatch _ rowid _ list colnames = ( annotmatch _ reviewed, ) annotmatch _ reviewed _ list = ibs. db. get ( const. annotmatch _ table, colnames, id _ iter, id _ colname ='rowid ', eager = eager, ninput = ninp...
[ -0.6051769256591797, -0.25973883271217346, 0.3826456665992737, -0.0752425491809845, -0.3505057990550995, -0.019936148077249527, -0.8767222166061401, 0.22081881761550903, 0.6336424350738525, 0.7156546115875244, -0.016036873683333397, -0.1604045182466507, -0.010128580965101719, 0.34510642290...
def license _ adviser ( file ) : header = iter ( " " ".. licensed under the apache license, version 2. 0 ( the " license " ) ; you may not.. use this file except in compliance with the license. you may obtain a copy of.. the license at.... http : / / www. apache. org / licenses / license - 2. 0.... unless required by a...
[ 0.8681071996688843, -0.9075237512588501, 0.7766305804252625, -0.23604296147823334, -1.0687564611434937, -0.3251599967479706, 0.1466858983039856, 0.607903003692627, 0.374539315700531, 0.7456197142601013, 0.6177261471748352, -0.03546779975295067, 0.49772778153419495, 0.32100406289100647, 0...
def create _ user _ notifications _ settings ( sender, instance = none, created = false, * * kwargs ) : if created : bootstrap _ user _ notifications _ settings ( instance )
[ 0.04296250641345978, 0.8027727007865906, 0.2263292372226715, 0.9370973110198975, 0.47168758511543274, -0.029576795175671577, 1.062588095664978, -0.8306440114974976, -0.14962640404701233, 0.3893216848373413, -1.1617878675460815, 0.008221260271966457, 0.5885544419288635, 0.5508202910423279, ...
def linear _ search ( key, l ) : for i in range ( len ( l ) ) : if key = = l [ i ] : return i return - 1
[ -0.7865412831306458, -0.2330063432455063, 0.34425315260887146, 0.00011591570364544168, -0.8857623338699341, 0.31413573026657104, -0.5428809523582458, 0.5417672991752625, -0.4936785101890564, 0.8085575699806213, -0.3940269947052002, -0.5208716988563538, -1.2368898391723633, -0.1367432922124...
def seconds _ since _ epoch ( date ) : epoch = arrow. get ( 0 ). datetime. replace ( tzinfo = pytz. utc ) return int ( ( date - epoch ). total _ seconds ( ) )
[ 0.01261103991419077, -0.014358573593199253, 0.23739969730377197, -0.04804598540067673, -0.6633386611938477, -0.7735684514045715, 0.5786139369010925, -0.39493459463119507, -0.3202706575393677, 0.6509672403335571, -1.8407278060913086, 0.15674886107444763, 0.9467810988426208, -0.1372162401676...
def _ _ init _ _ ( self, endpoints, client _ cls, pool _ size = thriftconnectionpool. default _ size, retries = 3, ttransport = ttransport. tbufferedtransport, tprotocol = tbinaryprotocol. tbinaryprotocol, use _ ssl = false, ca _ certs = none, cert = none, key = none ) : self. login _ token = none self. retries = retri...
[ 0.018209179863333702, 0.3044542968273163, 0.5971283912658691, -0.5309194922447205, 0.30553385615348816, 0.4247504770755768, 0.2041720151901245, -0.4149763584136963, 0.3117091953754425, 0.25036531686782837, 0.2044650763273239, -0.44805091619491577, -0.5528138875961304, -0.5652897953987122, ...
def get ( self, author _ name, post _ id ) : comment _ id = self. request. get ('cid') uri = self. uri _ for ('post - comments ', author _ name = author _ name, post _ id = post _ id ) if check _ author ( self. render _ params ['post']. key ( ), comment _ id, self. user. username ) : comment. comment. db _ delete ( sel...
[ 0.9476982951164246, -0.5397147536277771, 0.742797315120697, 0.8822009563446045, 0.5185880661010742, -0.2535143196582794, 0.010372198186814785, 0.8088377118110657, 0.15360170602798462, -0.338354229927063, 0.7554600238800049, -0.3176811635494232, -0.509303867816925, -0.0497395358979702, -0...
def print _ stats ( df, verbose = true ) : logger. info ('' ) logger. info ('documents in english : % d ', df [ df. language = ='eng']. shape [ 0 ] ) logger. info ('documents in french : % d ', df [ df. language = ='fre']. shape [ 0 ] ) if verbose : logger. info ('' ) logger. info ('uri descriptors :') logger. info ( d...
[ 0.10713151842355728, 0.26249247789382935, 0.7772004008293152, -1.0658360719680786, 0.4098077416419983, -0.2915629744529724, -0.6436903476715088, -0.16213630139827728, -0.5038809776306152, -0.22330375015735626, 1.0641740560531616, 0.8091988563537598, 1.1330771446228027, 0.2311287671327591, ...
def cloudfront _ domain _ name ( self ) - > str : return pulumi. get ( self, " cloudfront _ domain _ name " )
[ 0.17583119869232178, 0.4705936312675476, 0.2069394290447235, -0.5060436725616455, 0.1387384533882141, 0.9588748216629028, -0.2038077563047409, -0.013546866364777088, -0.09019818156957626, -0.5012577176094055, -0.23769009113311768, 1.3599344491958618, 1.2753263711929321, -0.1444794088602066...
def make _ test _ pool ( pool _ name, pool _ disks ) : ( obj _ path _ exists, ( obj _ path, _ ) ), return _ code, msg = stratisdbus. pool _ create ( pool _ name, pool _ disks, none ) _ raise _ error _ exception ( return _ code, msg, obj _ path _ exists ) return obj _ path
[ -0.236790269613266, -0.2757919132709503, 0.6206182837486267, -0.16572532057762146, 0.5884808301925659, 0.8529815673828125, 1.5075832605361938, -0.7289616465568542, -0.237880140542984, -0.08536630123853683, 0.16215519607067108, -0.04611482843756676, -0.44891586899757385, -1.020706295967102,...
def encode ( self, plexus, * * kwds ) : # get my state date = self. date counter = self. counter # check that we were given enough information if counter is none or date is none : # and if not self. error. line ('not enough information to encode a token') self. error. line ('please supply a counter and a date') self. e...
[ -0.4426656663417816, 0.18164359033107758, 0.6637446880340576, -0.28223279118537903, -0.1913628727197647, 0.10211658477783203, -0.0735081285238266, 0.3854939937591553, 0.015332844108343124, -0.611255407333374, -0.42720314860343933, 1.0339937210083008, -0.6271659135818481, -0.005657584406435...
def test _ check _ basevalues _ window ( ) : # call checker function chmap, landmap, basevalues, time _ window, dim0 = mob. check _ inputs ( ch _ arr, basevalues = [ 0 ], window = 1, landmap = land _ arr ) # assert types assert dim0 = ='time'assert isinstance ( chmap, xr. dataarray ) is true assert isinstance ( landmap...
[ -0.21520310640335083, -0.5202328562736511, 0.5228996872901917, 0.745771050453186, -0.11301234364509583, 1.0390608310699463, -0.17993894219398499, -0.2314906120300293, -0.2935624420642853, -0.31373992562294006, -0.03846263140439987, 0.6847824454307556, -0.9037116765975952, 1.594214320182800...
def buy ( self, possible _ purchases, game _ state ) : return
[ -0.6400904059410095, -0.519374668598175, 0.25315868854522705, 1.5534032583236694, 0.725338339805603, 0.4893694519996643, -0.7742817997932434, 0.5731419324874878, 0.22990693151950836, 0.4179082214832306, 0.29939162731170654, -0.30758219957351685, 0.20925650000572205, -0.6098152995109558, ...
def test _ protprot _ fnat ( protprot _ caprimodule ) : protprot _ caprimodule. calc _ fnat ( ) assert round _ two _ dec ( protprot _ caprimodule. fnat ) = = 0. 05
[ -0.07738175243139267, -0.5311902165412903, 0.4100388288497925, 0.14980100095272064, 0.33701664209365845, 0.4320453107357025, -0.19370119273662567, -1.4803253412246704, -0.5855147242546082, -0.9832744002342224, 0.2096492201089859, 0.3920229375362396, 0.547247588634491, 0.14246933162212372, ...
def parse _ content _ with _ bindings ( content, variables _ binds, functions _ binds ) : if isinstance ( content, ( list, tuple ) ) : return [ parse _ content _ with _ bindings ( item, variables _ binds, functions _ binds ) for item in content ] if isinstance ( content, dict ) : evaluated _ data = { } for key, value i...
[ 0.378322035074234, -0.7026664018630981, 0.7413626909255981, 0.461852490901947, -0.8009668588638306, -0.39689844846725464, -0.30565252900123596, -0.49200576543807983, -0.48153626918792725, -0.4251839220523834, 0.47602757811546326, 0.20468495786190033, -0.1963624507188797, 0.6502217650413513...
def go ( self ) : # print ( self. user _ organism ) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # just locally # print ( " checkpoint # 1 " ...
[ 0.5746736526489258, -0.6318316459655762, 0.6520770788192749, 1.5000109672546387, 0.13723133504390717, 0.6620942950248718, 0.7379937171936035, -0.060454681515693665, -1.611287236213684, 0.4316658079624176, -0.6463673114776611, 0.8660497665405273, 0.3333992063999176, 0.3270464837551117, 0....
def _ ext _ addr ( v : union [ layerfieldscontainer, layerfield ] ) - > extaddr : assert not isinstance ( v, layerfieldscontainer ) or len ( v. fields ) = = 1 return extaddr ( v. get _ default _ value ( ) )
[ 0.10116357356309891, 0.7353329658508301, 0.31759530305862427, -0.36583974957466125, 0.1697215735912323, -0.4441700577735901, 0.04952163249254227, -0.6247619986534119, 1.0611437559127808, 0.3264818489551544, 0.2344004511833191, 0.8086873292922974, -0.4972272217273712, -0.19768111407756805, ...
def clear _ term ( ) : if sys. platform = ='win32': subprocess. call ( " cls " ) else : subprocess. call ( " clear " )
[ 0.24823075532913208, 0.0535086952149868, 0.7030267119407654, 0.5133277773857117, -0.1467076689004898, 1.18181312084198, -0.13249748945236206, -0.8545175194740295, -0.03805910423398018, 0.6851475238800049, 0.5960652232170105, 1.7692536115646362, -0.020449968054890633, -0.42225420475006104, ...
def get _ standard _ time ( time ) : print ( f " \ nget _ standard _ time ( { time } ) " ) hour _ index = int ( time / 4 ) # extract hour 0 - 14 hour = 8 + hour _ index quarter = int ( time % 4 ) # extract quarter 0 - 3 print ( f " hour _ index = { hour _ index }, hour = { hour }, quarter = { quarter } " ) time _ strin...
[ 0.021154746413230896, -0.2907189428806305, 0.4688975512981415, 0.10049347579479218, -0.33276939392089844, 0.2594934105873108, -0.0794152244925499, -0.8545344471931458, 0.15721052885055542, 0.8138067722320557, -0.7605017423629761, -0.4764528274536133, -0.4948936700820923, -0.135105848312377...
def get _ materials _ ids ( self ) : return self. _ request ( " materials " )
[ -0.3822665810585022, -0.34885820746421814, -0.043353285640478134, 0.15027697384357452, 0.7549580335617065, -0.04466765373945236, -1.1165428161621094, -0.5366016626358032, 0.5920819044113159, -0.05694659426808357, -0.7400591969490051, 1.2647712230682373, -1.4699037075042725, 0.2297980487346...
def check _ connections ( self ) : pass
[ -0.7356184124946594, -1.0308444499969482, 0.345467746257782, 1.1613699197769165, 0.9373249411582947, 0.4100632071495056, 0.19669795036315918, -0.6289132237434387, -0.7862206697463989, -0.029295437037944794, 0.35889217257499695, -0.05463423207402229, -0.987066924571991, 0.7917096018791199, ...
def direct _ access _ credentials ( self, dss _ endpoint : str, lambda _ name : str ) : if dss _ endpoint = = config. dss _ endpoint : role _ arn = config. dss _ direct _ access _ role ( lambda _ name ) else : role _ arn = none return self. assumed _ role _ credentials ( role _ arn )
[ -0.3100399971008301, -0.6428144574165344, 0.6072530746459961, -0.7130408883094788, 0.006767906714230776, -0.4337907135486603, -0.21373581886291504, 0.27998921275138855, -0.26031655073165894, -0.24782928824424744, 0.17699719965457916, 1.076349139213562, 1.158866047859192, -0.609400749206543...
def test _ either _ change _ or _ changepercent _ or _ desiredcapacity ( self ) : _ invalid = { " name " : " meh ", " cooldown " : 5, " type " : " webhook " } for props in [ {'change': 3,'changepercent': 23 }, {'change': 3,'desiredcapacity': 23 }, {'changepercent': 3,'desiredcapacity': 23 }, {'change': 4,'changepercent...
[ -0.11670050770044327, -0.6468755602836609, 0.6369763612747192, 0.464179664850235, 0.7401488423347473, 0.8423476815223694, -0.2834224998950958, -0.23650133609771729, -0.0495186485350132, -0.0595175139605999, 0.47838038206100464, -0.135146364569664, -0.07720597088336945, 0.6003377437591553, ...
def query _ valid _ attr _ values ( self, target, display _ mask, attr ) : reply = nvctrlqueryvalidattributevaluesreplyrequest ( display = self. display, opcode = self. display. get _ extension _ major ( extname ), target _ id = target. id ( ), target _ type = target. type ( ), display _ mask = display _ mask, attr = a...
[ -0.6163350343704224, -0.29835018515586853, 0.5104897618293762, -0.3882827162742615, -1.1268819570541382, -0.5576597452163696, -0.7036387324333191, -0.955720841884613, 0.5250976085662842, -0.17882727086544037, 0.08726769685745239, 0.9031649231910706, -0.0799502432346344, -0.2460889816284179...
def convert _ string _ to _ dict ( preferences _ string ) : preferences _ dict = { } info _ categories = [ " titles ", " copies sold lst ", " release dates ", " genres ", " publishers " ] for key in info _ categories : preferences _ dict. update ( { key : [ ] } ) preferences _ lines = preferences _ string. splitlines (...
[ -0.5781254172325134, -0.7019657492637634, 0.7605578303337097, -0.6344506740570068, -0.3012979030609131, 0.10707227140665054, -0.30163130164146423, -0.17291966080665588, -0.5368242859840393, 0.5818067789077759, 0.051907554268836975, 0.49569982290267944, 0.44108134508132935, -0.1787114888429...
def step ( self, action ) : nextcell = tuple ( self. currentcell + self. directions [ action ] ) if not self. occupancy [ nextcell ] : self. currentcell = nextcell if self. rng. uniform ( ) < 1 / 3. : empty _ cells = self. empty _ around ( self. currentcell ) self. currentcell = empty _ cells [ self. rng. randint ( len...
[ -1.3269978761672974, 0.4949398338794708, 0.43988388776779175, 0.0973047986626625, 0.013698645867407322, 0.16141049563884735, 0.8070368766784668, 0.10182879865169525, 0.6799528002738953, 0.22945985198020935, -0.6268677711486816, 0.1092742308974266, -0.09211841225624084, 0.44139933586120605,...
def run _ toil ( args, output _ directory, jobstore _ path, logdir, tmpdir ) : cmd =''. join ( [ base _ toil _ runner ] + ['- - logfile ', os. path. join ( logdir, log _ file _ name ),'- - jobstore ','file : / /'+ jobstore _ path,'- - batchsystem ', args. batch _ system,'- - workdir ', tmpdir,'- - outdir ', output _ di...
[ 0.4642541706562042, -0.802280604839325, 0.7117872834205627, -0.26941731572151184, 0.19341564178466797, 0.03452834486961365, 0.38116076588630676, 0.18420694768428802, -0.8530842661857605, 0.4629433751106262, 0.004194248002022505, 0.029918264597654343, -0.17925620079040527, -0.31595033407211...
def process _ log _ data ( spark, input _ data, output _ data ) : # get filepath to log data files log _ data = input _ data +'log _ data / *. json'# read log data files log _ data _ df = spark. read. json ( log _ data ) # filter by actions for song plays log _ data _ df = log _ data _ df. filter ( log _ data _ df. pag...
[ 0.03788181394338608, -0.0819009318947792, 0.9997158646583557, -0.542417049407959, -0.0637698769569397, -0.16293400526046753, 0.6014199256896973, 0.3538568317890167, -0.11808641999959946, 0.04653608798980713, 0.47153031826019287, 0.3778712749481201, 0.8784148693084717, -0.3824821412563324, ...