text
stringlengths
25
2.19k
embedding
listlengths
768
768
def plot _ arrows _ dbt _ rh ( self, points _ pairs : dict [ str, any ] ) - > dict [ str, any ] : points _ plot = { } default _ style = { " linewidth " : 0, " color " : [ 1. 0, 0. 8, 0. 1, 0. 8 ], " arrowstyle " : " wedge ", } for key, pair _ point in points _ pairs. items ( ) : plot _ params = default _ style. copy ( ...
[ -0.3017708361148834, 0.0904112458229065, 0.8971384763717651, 0.11894729733467102, -0.4831966757774353, 0.5036168694496155, 0.5303502082824707, 0.5569126009941101, -0.20752741396427155, 0.7548719644546509, 0.056015923619270325, 0.8362663984298706, 0.18569688498973846, 0.01532308105379343, ...
def make _ classifier _ score ( n _ hidden _ layers = 3, hidden _ layer _ size = 100, activation ='tanh ', dropout _ prob = 0. 0, learn _ log _ r = false, l2 _ regularization = 0. 001, learning _ rate = 1. e - 3 ) : # inputs input _ layer = input ( shape = ( settings. n _ thetas _ features, ) ) # network hidden _ layer...
[ 0.14039385318756104, -0.09829612076282501, 0.9781825542449951, 0.5682920217514038, 0.22022457420825958, -0.3126397132873535, 0.15807470679283142, -0.437185138463974, -0.14806176722049713, 0.8858822584152222, -0.5841315388679504, -0.011399228125810623, 0.5108263492584229, -0.087707236409187...
def acl6name ( self ) : try : return self. _ acl6name except exception as e : raise e
[ 0.8648896813392639, -0.7454947829246521, 0.3585490882396698, 0.8440726399421692, -0.9017690420150757, 0.3488156199455261, 1.0165576934814453, -0.4425317943096161, 0.7775973081588745, 0.77787184715271, 0.2631931006908417, 0.020114349201321602, 0.9705582857131958, -0.7467066049575806, 0.92...
def delete _ usage ( self, integration _ id, asset _ id, query : dict = none ) : if query is none : query = { } query ['integration _ id'] = integration _ id query ['asset _ id'] = asset _ id return self. bynder _ request _ handler. delete ( endpoint ='/ api / media / usage / ', params = query )
[ -0.33133089542388916, -0.22424545884132385, 0.6005949974060059, -0.5009265542030334, 0.3538677394390106, -0.858502984046936, 0.6525196433067322, -0.4108090400695801, 0.14515134692192078, 0.9202308058738708, 1.197081446647644, 0.8717491626739502, -0.32421860098838806, 0.248000368475914, 0...
def add _ weight ( self, source, target, weight ) : if source in self. relation _ type : # in case source has a relation _ type if not target in self. relation _ type [ source ] : # in case target has no relation _ type self. add _ edge ( source, target,'geen') # add'geen'as relation _ type between source and target el...
[ -0.09184011816978455, -0.4660913348197937, 0.8930853009223938, -0.7347174286842346, -0.305988609790802, 0.06616850197315216, 0.10544412583112717, 0.16825778782367706, 0.20000164210796356, 0.44749537110328674, -0.08977580815553665, 0.14134033024311066, -0.8141642212867737, 0.772527337074279...
def create _ packet _ machines ( sshkeyname = none ) : packet _ cl = j. clients. packetnet. get ( ) sshkeyname = sshkeyname or ( j. clients. sshkey. listnames ( ) [ 0 ] if j. clients. sshkey. listnames ( ) else default _ sshkey _ name ) print ( " creating packet machine for bitcoin node " ) btc _ node = packet _ cl. st...
[ 0.1731846183538437, 0.9044607877731323, 0.6650021076202393, -0.752876877784729, 0.8948632478713989, 0.25434979796409607, -0.3676283061504364, -0.27874547243118286, -0.6948913335800171, 0.2770553231239319, -1.3264282941818237, -0.080013208091259, 0.10313987731933594, 0.8712384700775146, 0...
def _ _ init _ _ ( self, _ fname, _ popsize, _ mutationrate, _ maxiterations, _ config ) : self. population = [ ] self. matingpool = [ ] self. best = none self. popsize = int ( _ popsize ) self. gensize = none self. mutationrate = float ( _ mutationrate ) self. maxiterations = int ( _ maxiterations ) self. iteration = ...
[ -0.5033791661262512, -0.1218966618180275, 0.7478440999984741, 0.2973015606403351, -0.7455753087997437, 0.11459635943174362, -0.08448898047208786, 0.4197222888469696, -0.46602416038513184, 0.5262045860290527, -0.5913528800010681, -0.576407790184021, 0.38138502836227417, 0.5513496994972229, ...
def _ ready ( self ) : self. sock. sendall ( self. codec. encode ( " ready " ) ) message = self. receive ( ) if message! = " ok " : raise runtimeerror ( " handshake failed " )
[ -0.08604133874177933, 0.54827880859375, 0.6676870584487915, -0.3560131788253784, 0.2499711811542511, -0.10160621255636215, -0.7897393107414246, -0.22579428553581238, -0.5145018696784973, -0.12338680773973465, -0.2580919563770294, 0.8630803227424622, -0.3310874104499817, 0.6258059144020081,...
def serialize ( self ) : return {'id': self. id,'name': self. name,'description': self. description,'category _ id': self. category _ id }
[ -0.537700891494751, -1.3039590120315552, 0.3722114562988281, -1.0971903800964355, -0.7141945958137512, -0.1262006163597107, -0.8860048651695251, -0.30250340700149536, 0.10339730232954025, -0.4795536398887634, -1.4828096628189087, 0.28157684206962585, -0.24557819962501526, 0.508015632629394...
def grad ( self, s, gtype ='tri') : if gtype = ='tri': assert ( len ( s ) = = self. n _ tverts ), " length of array passed to grad is not tri _ verts length " grads = ( 1 / self. tri _ edge _ len ) * np. dot ( self. delta _ tri _ 0, s ) elif gtype = ='vor': assert ( self. make _ all _ operators ), " this mesh hasn't co...
[ -0.05704953521490097, 0.29964783787727356, 0.6518349051475525, -0.20924684405326843, -0.6875224113464355, 0.4223939776420593, 0.7863766551017761, -0.30414387583732605, 0.4749922752380371, 0.5563700199127197, 0.18436801433563232, 0.5555152893066406, -1.023169994354248, 0.6446821093559265, ...
def test _ 1 ( ) : tiny _ data = [ {'name':'bizcuit ','age': 29,'city':'manchester ','gender':'m ','start _ date':'2019 - 05 - 10'}, {'name':'eczmax ','age': 23,'city':'liverpool ','gender':'f ','start _ date':'2019 - 07 - 08'}, {'name':'boeing ','age': 33,'city':'manchester ','gender':'m ','start _ date':'2019 - 08 - ...
[ -0.40144333243370056, 0.7666406035423279, 0.8417263627052307, -0.34819746017456055, 0.16744746267795563, -0.4379085898399353, 0.9912905097007751, -0.6948354840278625, -0.5434355735778809, 0.10829013586044312, -1.3095636367797852, 0.7740908265113831, 0.36610332131385803, -0.3526800870895386...
def _ _ call _ _ ( self, y _ true, y _ pred, sample _ weight = none ) : # in order to call it like a function # suffix rel ( relative ) means that its coordinates are relative to cells # basically ( tx, ty, tw, th ) format from the paper # _ rel is used to calcuate the loss # suffix abs ( absolute ) means that its coor...
[ -0.24195367097854614, -0.7522411346435547, 1.083173155784607, 0.3863004148006439, -0.3926220238208771, -0.4761837422847748, 0.36644378304481506, 0.08863140642642975, -0.3310657739639282, -0.08318009972572327, -0.34400004148483276, 0.5879318118095398, 0.43910297751426697, -0.255615234375, ...
def _ _ captionchange ( self, cap, editor ) : fn = editor. getfilename ( ) if fn : if preferences. getui ( " tabviewmanagerfilenameonly " ) : txt = os. path. basename ( fn ) else : txt = e5app ( ). getobject ( " project " ). getrelativepath ( fn ) maxfilenamechars = preferences. getui ( " tabviewmanagerfilenamelength "...
[ -0.29659396409988403, -1.2049009799957275, 0.5650835037231445, 0.2902263104915619, -0.572783887386322, -0.20152340829372406, 0.5638318657875061, -0.015842080116271973, -0.5722556114196777, 0.592817485332489, 0.36934107542037964, 0.1275397688150406, 1.1357430219650269, 0.3549923002719879, ...
def onusertyping ( self, contact ) : print " % s is typing " % ( contact, ) self. _ _ set _ statusbar _ text ( " % s is typing " % ( contact, ) ) if self. typingtimer! = none : gobject. source _ remove ( self. typingtimer ) self. typingtimer = none self. typingtimer = gobject. timeout _ add ( 6000, self. _ _ typingstop...
[ -0.013880203478038311, -0.013815640471875668, 0.35565394163131714, 0.49288633465766907, -1.1655710935592651, 0.36644887924194336, 0.8269873261451721, -0.23845070600509644, 0.5542169213294983, 1.335744023323059, -0.777819037437439, 0.03175479918718338, -0.9293525815010071, 0.431877911090850...
def create _ empty _ domain _ matrix ( region, resolution ) : start = region [ 0 ] end = region [ 1 ] beads = 0 while start < end : start + = resolution beads + = 1 return np. zeros ( ( beads, beads ) )
[ -0.870730996131897, -0.268608421087265, 0.25483110547065735, -0.5315682888031006, 0.5900513529777527, 0.351948618888855, 0.8116554617881775, -0.5575875639915466, 0.6630461812019348, -0.35701310634613037, -0.663064181804657, 1.1810245513916016, -0.7150868773460388, -0.1162320226430893, -0...
def test _ create _ alumno _ curso _ admin ( self ) : self. client. force _ authenticate ( user = self. user _ admin ) alumno = alumno. objects. get ( apellido = " 3 " ). pk curso = curso. objects. get ( nombre = " curso2 " ). pk anio _ lectivo = aniolectivo. objects. get ( nombre = " 2019 " ). pk data = { " alumno " :...
[ 0.7247437238693237, -0.27297449111938477, 0.4396049380302429, -0.05836542695760727, 0.4826071262359619, 1.5579843521118164, -0.6350898146629333, -0.23269976675510406, -0.3738923668861389, 0.44409069418907166, -1.1339097023010254, 1.2501140832901, 0.5821864008903503, 0.10295756161212921, ...
def to _ bool ( value : any ) - > bool : if value is none or isinstance ( value, bool ) : return bool ( value ) if isinstance ( value, str ) : value = value. lower ( ) if value in ( " yes ", " on ", " 1 ", " true ", 1 ) : return true return false
[ -0.3490379750728607, 0.13906548917293549, 0.5528544783592224, 0.5868764519691467, -0.6454899311065674, 0.2622032165527344, -0.19348472356796265, -0.0371956042945385, 0.6306023001670837, -0.19651849567890167, -0.520194947719574, 0.044706933200359344, -0.3515929579734802, 0.22927507758140564...
def dist _ init ( self, true _ type ='gaussian ', cont _ type ='gaussian ', true _ mean = 0. 0, cont _ mean = 0. 0, cont _ var = 1, cont _ covmat = none ) : self. true _ type = true _ type self. cont _ type = cont _ type # # settings for true distribution sampler self. true _ mean = torch. ones ( self. p ) * true _ mea...
[ 0.13506779074668884, -0.44938865303993225, 0.7230895757675171, 0.5886486768722534, -0.3897261321544647, 0.8101983666419983, 0.4219006896018982, 0.6510711312294006, -0.4059585928916931, 0.601919412612915, 0.01057364884763956, 0.213984876871109, 0.5497166514396667, 0.8963258266448975, 1.09...
def _ _ delitem _ _ ( self, key ) : del self. word _ id [ key ] self. id _ word = dict ( enumerate ( self. words ) ) self. word _ id = { w : i for i, w in iteritems ( self. id _ word ) }
[ -0.33211785554885864, -0.3201873004436493, 0.4130179286003113, -0.9740950465202332, -0.9317604303359985, 0.3815431594848633, -0.5712102055549622, 0.9077717065811157, 0.30179664492607117, 1.1741729974746704, -0.3818320035934448, 0.09860222786664963, -1.0063321590423584, 0.6547455191612244, ...
def createcoordinate ( self, blob, relativecoordinates, feature ) : c = coordinate ( ) c. x = relativecoordinates [ 0 ] c. y = relativecoordinates [ 1 ] c. z = 0 c. xp = int ( blob. pt [ 0 ] ) c. yp = int ( blob. pt [ 1 ] ) c. features. feature = list ( feature [ :, 0 ]. flatten ( ) ) + list ( feature [ :, 1 ]. flatten...
[ 0.6779933571815491, -1.4924492835998535, 0.7575172781944275, 0.29972851276397705, 0.040247850120067596, 0.1843191683292389, -0.25082799792289734, 0.3933897614479065, -0.4865053594112396, 0.11719804257154465, -1.0117621421813965, -0.8193673491477966, -0.7700827717781067, -1.171170949935913,...
def preloop ( self ) : tcache = threading. timer ( 60, self. con. cancel ) tcache. start ( ) try : if not self. quiet : print ('loading metadata into cache...') cmd. cmd. preloop ( self ) # # sets up command completion create _ metadata = false check ='select count ( table _ name ) from user _ tables where table _ name...
[ -0.0004337324935477227, 0.358393132686615, 0.7605530023574829, 0.3989536166191101, 0.2695823311805725, 0.1067805141210556, 0.6783820390701294, -0.37868162989616394, -0.8280239701271057, 0.32724350690841675, -0.03572583571076393, 0.47968339920043945, 0.4497177302837372, 1.1122134923934937, ...
def get _ service _ item _ qs ( cls, product _ list, * * search _ info ) : soe _ qs = stafforderevent. search ( * * {'order _ _ pay _ time _ _ gte': search _ info ['begin _ time'],'order _ _ pay _ time _ _ lte': search _ info ['end _ time'],'is _ count':'countin'} ) effective _ order _ list = [ soe. order for soe in so...
[ -0.5644237399101257, -0.48359745740890503, 0.7548850774765015, 0.8356730341911316, 0.018601877614855766, 0.7211645245552063, 0.17457275092601776, -0.368173211812973, -0.904192328453064, 0.30727747082710266, -0.32000625133514404, 0.21918709576129913, -0.05553290247917175, 0.3888959884643554...
def on _ modified ( self, event ) : self. file _ metadata _ cache. remove _ item ( event. src _ path )
[ -0.07294344156980515, -0.26937925815582275, 0.2987530827522278, -0.13251514732837677, 0.10452943295240402, 0.20274971425533295, -0.1868412345647812, 1.0279738903045654, -0.3530193269252777, 0.7725772857666016, -0.22591832280158997, 0.24564243853092194, 0.247313991189003, 0.2010426074266433...
def _ log _ command _ output ( self, output, error ) : stdout = output. read ( ) stderr = error. read ( ) # don't log empty messages if stdout : self. log. info ( stdout ) if stderr : self. log. error ( stderr )
[ 0.22667787969112396, -0.6595577597618103, 0.252190500497818, -0.3178710341453552, -0.42785152792930603, -0.4893888235092163, -0.4588858485221863, -0.0056222472339868546, -0.11358517408370972, -0.8517427444458008, 0.4384440779685974, -0.23532995581626892, 0.22098779678344727, 0.432299226522...
def check _ flag _ threshold ( self, content _ type, object _ id, flag ) : content _ type _ object = contenttype. objects. get ( id = content _ type ) target _ object = content _ type _ object. model _ class ( ). objects. get ( id = object _ id ) flag _ object = contentflag. objects. get _ flag _ object ( flag ) flag _...
[ 0.5817493796348572, -0.016631366685032845, 0.46110987663269043, 0.3658134937286377, 0.6650559902191162, 0.7990347146987915, -0.7775099277496338, -0.46207550168037415, -0.8527294397354126, 0.40408840775489807, -0.742597222328186, 0.7319721579551697, -0.4229009747505188, 0.5902615189552307, ...
def load _ data ( distance _ file ) : max _ dist = 0. 0 distances = { } with open ( distance _ file,'r') as file : for line in file : point _ a, point _ b, dist = [ float ( x ) for x in line. split ( ) ] point _ a, point _ b = int ( point _ a ), int ( point _ b ) max _ dist = max ( max _ dist, dist ) distances [ ( poin...
[ 0.43377625942230225, -0.5896323919296265, 0.5589439868927002, -0.4715898036956787, -0.3450661301612854, 0.8613660335540771, -0.3506787121295929, 1.4110994338989258, -0.5487121343612671, 0.39518430829048157, -0.8342598676681519, -0.6633427739143372, 0.8234380483627319, 0.33061251044273376, ...
def evaluate ( beta, x _ train, x _ test, y _ test, kernel, * * train _ cache ) : n _ test = len ( y _ test ) y _ pred = np. zeros ( n _ test ) y _ vals = np. zeros ( n _ test ) for i in range ( n _ test ) : y _ vals [ i ] = np. dot ( kernel ( x _ train, x _ test [ i, : ]. reshape ( 1, - 1 ), * * train _ cache ). resha...
[ -0.6433201432228088, 0.117252878844738, 0.5531291961669922, -0.21480685472488403, -0.2084026038646698, -0.056049611419439316, 0.1451871693134308, 0.19295184314250946, -0.7572528123855591, 0.3951902985572815, 0.023801103234291077, 0.4632992446422577, -0.2469443678855896, 0.6827920079231262,...
def get _ logger ( ) : return logging. getlogger ( " surfify " )
[ 0.31377530097961426, 0.5098028182983398, 0.08225998282432556, 0.14527678489685059, -0.5523637533187866, -0.43423938751220703, -0.41105279326438904, 0.19995932281017303, 0.4973098635673523, -0.9517097473144531, -0.04692969471216202, 0.28647100925445557, -0.5070089101791382, 1.63268816471099...
def acl6missesrate ( self ) : try : return self. _ acl6missesrate except exception as e : raise e
[ 1.014042854309082, -0.5246966481208801, -0.006742020603269339, -0.05491592735052109, -0.010917866602540016, -0.07317592203617096, -0.29726460576057434, -1.0952153205871582, 0.7790278196334839, 0.5165224075317383, 0.6531698703765869, -0.5163154602050781, -0.16568876802921295, 0.602831244468...
def setup _ platform ( hass, config : configtype, add _ devices : callable [ [ list ], none ], discovery _ info = none ) : if isy. isy is none or not isy. isy. connected : _ logger. error ('a connection has not been made to the isy controller.') return false devices = [ ] for node in isy. filter _ nodes ( isy. nodes, u...
[ 0.435940146446228, 0.6726253032684326, 0.8079881072044373, 0.27376794815063477, 0.9085376262664795, -0.48988282680511475, 0.4024277925491333, 0.16429761052131653, 0.357578307390213, 0.2094738632440567, -0.1446067839860916, -0.6276963949203491, 0.09474629908800125, 0.6952992081642151, 0.0...
def get _ products ( q : optional [ str ] = none, page : int = 1, db : session = depends ( get _ db ) ) : results = crud. search _ products ( db, search _ string = q, page = page ) raw _ data = results [ " data " ] data = [ ] total _ pages = results [ " total _ pages " ] current _ page = results [ " current _ page " ] ...
[ -0.9763585329055786, 0.33330821990966797, 0.5664834380149841, -0.09153304994106293, 0.4327116310596466, -0.09939024597406387, -0.671286940574646, -0.5521091818809509, 0.9253926277160645, 0.7417408227920532, -0.2578609585762024, 0.23661823570728302, 0.3752838373184204, 0.7119870781898499, ...
def scope ( self, scope _ name : optional [ union [ str, list [ str ] ] ], op : operator = operator. _ all ) - > " scopedauth " : clone = self. _ clone ( ) if isinstance ( scope _ name, str ) : scope _ name = [ scope _ name ] clone. scope _ name = scope _ name clone. _ verifier. op = op if not clone. scope _ key : rais...
[ -0.43323296308517456, 0.4569849669933319, 0.5173653364181519, 0.6465917229652405, -0.6127492189407349, -0.1810625046491623, -0.11554446816444397, 0.2627534866333008, 1.4443713426589966, 1.000244379043579, -0.2863102853298187, 0.8173838257789612, 0.06375028938055038, -0.40628620982170105, ...
def _ create _ momilp _ model ( self, params _ file = none ) : return gurobimomilpmodel ( self. _ model _ file, discrete _ objective _ indices = self. _ discrete _ objective _ indices, num _ threads = self. _ search _ num _ threads, obj _ index _ 2 _ range = self. _ obj _ index _ 2 _ range, params _ file = params _ fil...
[ -0.057544607669115067, -0.5000602006912231, 0.5235825777053833, 0.36953824758529663, 0.17281928658485413, 1.1982477903366089, -0.016942188143730164, -0.03966192901134491, -0.32439538836479187, 0.8862870335578918, 0.06818687170743942, -0.34297358989715576, -0.5363973379135132, -0.8664042353...
def _ _ init _ _ ( self, username, password, team _ configs, scoring _ period ) : super ( ). _ _ init _ _ ( username ) self. username = username self. password = password self. team _ configs = team _ configs self. scoring _ period = scoring _ period
[ 0.27890634536743164, 0.522193431854248, 0.5805236101150513, 1.0876753330230713, -0.08660101145505905, 0.7143095135688782, 0.11048221588134766, 0.20334362983703613, -0.6201779842376709, 0.5565016269683838, -0.3395746648311615, -0.2679593861103058, -0.044324155896902084, -0.17170505225658417...
def test _ request _ failure ( self ) : d = self. cleanup _ d ( self. client. request ('get ', path ='/ my - path') ) for lb in ['lb1 ','lb2'] : request = yield self. requests. get ( ) self. assertthat ( request, hasrequestproperties ( method ='get ', url ='http : / / % s : 9090 / my - path'% ( lb, ) ) ) request. setre...
[ -1.2742983102798462, 0.20972253382205963, 0.6857646107673645, 0.33643433451652527, 0.5831942558288574, 0.5113837718963623, -0.4216330647468567, -0.6491021513938904, -0.9124886393547058, -1.0630886554718018, 0.535202145576477, -0.34117332100868225, -0.24073754251003265, 0.5095396041870117, ...
def juju _ path ( ) : return os. getenv ('juju _ data ', os. path. expanduser ('~ /. local / share / juju') )
[ 0.12985433638095856, 0.2817716598510742, 0.43454259634017944, 0.8214929699897766, -0.4704102873802185, 1.2676615715026855, 1.31669020652771, 0.772342324256897, -1.3875912427902222, 0.4061105251312256, 0.8466602563858032, 0.5668079853057861, -0.8524173498153687, -0.01287279836833477, 0.20...
def blend ( response, f _ a, r _ bp, alpha = 0. 8, tau = 0. 05 ) : weight = ( response > tau ). type ( torch. floattensor ) * alpha weight = weight. expand ( 1, f _ a. size ( 1 ), weight. size ( 2 ), weight. size ( 3 ) ) weight = weight. cuda ( ) f _ ap = f _ a * weight + r _ bp * ( 1. - weight ) return f _ ap
[ 0.9816583395004272, -0.9645959138870239, 0.641474187374115, 0.45596379041671753, 0.4906795918941498, -0.10776407271623611, 0.7139419317245483, -0.6184378862380981, 0.8878464698791504, 0.07862616330385208, 0.7266305685043335, -0.4076603949069977, -0.9500341415405273, -0.5254257917404175, ...
def get _ rop _ list ( ) : return list ( hou. nodetype ( hou. ropnodetypecategory ( ), " arnold " ). instances ( ) )
[ -0.5820475220680237, 0.4400286376476288, 0.3798723816871643, -0.21611778438091278, 1.0442124605178833, -0.5337260365486145, -0.6654456257820129, 0.23674669861793518, 0.9140647053718567, 0.3463919460773468, 0.235625222325325, 0.5120923519134521, 0.22823336720466614, -0.49065840244293213, ...
def _ _ call _ _ ( self, environ, start _ response ) : try : request = webob. request ( environ ) self. _ log _ request ( request ) response = self. _ handle _ request ( request ) return response ( environ, start _ response ) except exception as e : logger. exception ('uncaught exception in service : % s ', e ) raise
[ 0.2410459667444229, -0.7255135178565979, 0.8127710819244385, 0.2980438768863678, 0.6123629212379456, -0.09147808700799942, -0.18666347861289978, -0.5298235416412354, 0.2825857698917389, -0.6129745244979858, 0.061065200716257095, 0.011425149627029896, -0.503165602684021, -0.4131259322166443...
def create _ query _ file ( arguments, dump _ directory ) : data _ directory = arguments. data _ directory num _ features = arguments. num _ features split _ ratio = arguments. split _ ratio ml _ model = joblib. load ( _ model _ file _ path ( dump _ directory ) ) query _ features, query _ ids = get _ query _ data ( dat...
[ -0.37272942066192627, 0.01736890897154808, 0.3881065845489502, -0.10995164513587952, 0.08756467700004578, 0.5651556253433228, 0.19312095642089844, 0.37235763669013977, -1.0680127143859863, -0.16384592652320862, -0.44301867485046387, 0.37885618209838867, 0.5027519464492798, -0.1962364912033...
def evaluate _ model ( model, test _ loader ) : model. eval ( ) correct = 0 total = 0 with torch. no _ grad ( ) : for data in test _ loader : images, labels = data outputs = model ( images ) _, predicted = torch. max ( outputs. data, 1 ) total + = labels. size ( 0 ) correct + = ( predicted = = labels ). sum ( ). item (...
[ 0.05583373084664345, -0.6763030290603638, 0.7567048668861389, -0.35770395398139954, 0.23250709474086761, -0.008789216168224812, 0.9793322086334229, 0.10839352756738663, -0.39793142676353455, 0.16115158796310425, 0.23861654102802277, 0.06506185978651047, 0.48190367221832275, 1.0102058649063...
def get _ healthy _ instances ( self ) :
[ -0.7844295501708984, -0.7579733729362488, 0.4641081392765045, 0.3843913674354553, -0.011835647746920586, 1.1866066455841064, -0.6748788952827454, -0.5456061363220215, -0.3604845404624939, -0.41081705689430237, -0.23698706924915314, 0.7881072163581848, -0.31730908155441284, 0.69420176744461...
def is _ ready ( self, stage : mlplanstages, is _ probabilities : bool ) - > bool : return stage = = mlplanstages. post _ predict and is _ probabilities
[ -0.31578490138053894, -0.4538937509059906, 0.5287558436393738, 0.8792073726654053, -1.106289267539978, 0.8563469052314758, -0.4248626232147217, -0.10231838375329971, -0.2674664258956909, 0.06563025712966919, -0.1797264814376831, 0.7908974289894104, 0.31506574153900146, 1.015251636505127, ...
def step ( num, doc ='' ) : def wrapper ( f ) : if not isinstance ( num, int ) : raise valueerror ('step num mast be int only') setattr ( f, doc _ attribute _ name, doc ) setattr ( f, weight _ attribute _ name, num ) setattr ( f, screenplay _ attribute _ name,'' ) @ wraps ( f ) def wrapped ( * args, * * kwargs ) : retu...
[ -0.7036996483802795, -0.0014664108166471124, 0.6619507670402527, 0.18729178607463837, -0.9316231608390808, 0.3788788616657257, 0.2589696943759918, -0.04268495365977287, -0.11561866104602814, -0.24701271951198578, 0.03729120269417763, -0.02798512578010559, 0.6890777945518494, 0.658142328262...
def urr _ probabilitytable ( self, stylelabel, frompdf = false, numberofprobabilities = 20, skipilf _ logic = false ) : urrpt = [ ] iff = 1 ilf, ioa = getilf _ ioa ( self, skipilf _ logic = skipilf _ logic ) urr _ styles = [ style for style in self. styles. getstylesofclass ( stylesmodule. urr _ probabilitytables ) if ...
[ -0.40078121423721313, -0.022571245208382607, 0.7993109226226807, -0.7131887674331665, -0.04313447326421738, -0.4257507920265198, 0.21379521489143372, 0.515250563621521, -0.24360555410385132, 0.7000318169593811, 0.6503537893295288, -0.6735682487487793, -0.2173440009355545, -0.45911800861358...
def add _ request ( self, request : request ) - > none : self. modify _ data ('''insert into request ( tid, uid, sid, seen ) values ( % s, % s, % s, % s )'' ', ( request. tid, request. uid, request. sid, request. seen ) )
[ -1.6993581056594849, 0.2266562134027481, 0.49922510981559753, -0.5379855036735535, 0.6965613961219788, 0.4105578362941742, -0.6553645133972168, -0.36711186170578003, 0.21962584555149078, -0.30821073055267334, 0.10632524639368057, 0.36725082993507385, 0.008017569780349731, -0.07113735377788...
def process _ msg ( self, msg ) : method = msg ['method'] if method = ='signup': return self. signup ( msg ) elif method = ='delegate': return self. delegate ( msg ) elif method = ='use _ delegation': return self. use _ delegation ( msg ) else : return {'error':'method not implemented'}
[ -0.4227930009365082, 0.42516443133354187, 0.7623332142829895, -0.25016331672668457, 0.19701817631721497, -0.810565173625946, -0.020408915355801582, -0.03258953243494034, 0.36714452505111694, 0.37769460678100586, 0.738009512424469, -0.40335410833358765, -0.13126212358474731, 0.8511224985122...
def test _ length _ array ( self ) : vector = array ( 10, 0 ) res = len ( vector ) self. assertequal ( res, 10 )
[ 0.5155016779899597, -0.5661844611167908, 0.10498540103435516, -0.8501937985420227, 1.887750506401062, 0.8581275343894958, 0.36187902092933655, 0.9895928502082825, 1.1141128540039062, -0.31004756689071655, -1.4946355819702148, -0.11568326503038406, 0.0744447112083435, 0.42348548769950867, ...
def test _ concurrent ( self ) : self. assertraises ( util. _ workingdirectorybusy, secondrunner. run, concurrentcase ('test _ failure') )
[ 0.8201377391815186, 0.6909131407737732, 0.42583513259887695, 0.9243727922439575, 0.5868666768074036, 0.386215478181839, 1.6321338415145874, -0.12062831968069077, 0.16533023118972778, -0.4399411678314209, -0.09241057187318802, 0.26726770401000977, -0.5953064560890198, 0.5521509051322937, ...
def get _ imgplus ( ij _ fixture ) : # get java resources random = sj. jimport ( " java. util. random " ) axes = sj. jimport ( " net. imagej. axis. axes " ) unsignedbytetype = sj. jimport ( " net. imglib2. type. numeric. integer. unsignedbytetype " ) datasetservice = ij _ fixture. get ( " net. imagej. datasetservice " ...
[ -0.3681579828262329, 0.8828552961349487, 0.5917794704437256, -1.706264853477478, -0.28754234313964844, -0.23922234773635864, -0.2950299382209778, -1.2145415544509888, 0.6952618956565857, -0.003925250377506018, 0.1281391680240631, 0.4860675036907196, -0.503383219242096, 0.056557610630989075...
def entity ( self ) - > optional ['outputs. responsemessageenvelopeapientityresponse'] : return pulumi. get ( self, " entity " )
[ 0.6213492155075073, -0.5095133185386658, 0.3970731496810913, 0.028303690254688263, 1.4004510641098022, 0.7382165193557739, 0.6185246706008911, -0.5722938776016235, 1.489106297492981, -0.12856362760066986, 0.4980660378932953, 0.35591599345207214, -0.3494809567928314, -0.21165527403354645, ...
def test _ create _ pfe _ device ( self, context ) : # these could come from a data file id = " post _ vedevices _ allconfigadminmulticasttrue " name = " post _ vedevices _ allconfigadminmulticasttrue " devicehost = " post _ vedevices " # define a test step with pytest. allure. step ( " create client ` { } ` ( { } ). "...
[ 0.5693284273147583, 0.4651505649089813, 0.6335686445236206, 0.4172634780406952, 0.3967178165912628, 0.6584117412567139, 0.3446404039859772, 0.020302707329392433, 0.6064281463623047, -0.732696533203125, -0.37195947766304016, 0.11956721544265747, -0.7646120190620422, 0.504031777381897, 0.0...
def trip _ duration _ stats ( df ) : print ('\ ncalculating trip duration... \ n') start _ time = time. time ( ) # display total travel time duration = df ['trip duration']. sum ( ) h, m = divmod ( duration, 3600 ) d, h = divmod ( h, 24 ) print ('the total trip duration was { } seconds, or about { } days, { } hours. '....
[ -0.11227146536111832, 0.5423609614372253, 0.5708314180374146, -0.6758038401603699, -0.018534762784838676, 0.13820703327655792, 0.6732771992683411, -0.5748364329338074, -0.1299515962600708, 0.5364896059036255, -0.17702007293701172, 0.7684110403060913, 1.3015451431274414, 0.04249397665262222...
def custom _ resource _ name ( self ) - > str : return pulumi. get ( self, " custom _ resource _ name " )
[ 1.0784327983856201, -0.3845556378364563, 0.4709416627883911, -0.3782891035079956, -0.6727312207221985, 0.625856339931488, 0.40103623270988464, 0.49600768089294434, 0.43070435523986816, 0.6670711636543274, 0.24287168681621552, 0.7820064425468445, 0.7020464539527893, -1.3305752277374268, -...
def add _ to _ files _ list ( file _ list _ path : path, name : str, path : union [ str, path ] ) : data = read _ files _ list ( file _ list _ path ) if name in data and data [ name ]! = str ( path ) : raise errors. parametererror ( f " duplicate input / output name found : { name } " ) data [ name ] = str ( path ) yam...
[ 0.03875665366649628, -0.6843116283416748, 0.6414926052093506, 0.162167489528656, 0.17759066820144653, 0.14125950634479523, 0.059423089027404785, 0.5842909216880798, 0.012860606424510479, 0.31684044003486633, -0.5368096828460693, -0.23986726999282837, 0.027238884940743446, 0.443476408720016...
def think ( state, quip ) : rootnode = node ( state = state ) me = rootnode. player def rewardfunc ( gstate ) : rewar = 0. 0 if me = ='blue': # print str ( gstate. get _ score ( ) ) rewar = gstate. get _ score ( ) ['blue'] - gstate. get _ score ( ) ['red'] else : rewar = gstate. get _ score ( ) ['red'] - gstate. get _ ...
[ -0.09911970049142838, -0.0584852509200573, 0.9651780724525452, -0.15744875371456146, 0.029372574761509895, -0.6503607034683228, 0.15151038765907288, -0.43249043822288513, 0.6271792650222778, 0.09568531066179276, 0.2631324231624603, 0.15109358727931976, 0.2490684688091278, -0.46816325187683...
def refresh _ oauth _ token ( request ) : request _ json = request. get _ json ( ) content _ header = { " content - type " : " application / x - www - form - urlencoded " } post _ params = { " grant _ type " : " refresh _ token ", " refresh _ token " : request _ json [ " state " ] [ " refresh _ token " ], } resp = rq. ...
[ -0.440598726272583, -0.9253013730049133, 0.38178732991218567, -0.11511591821908951, -0.2456110566854477, 0.14818066358566284, -0.80975741147995, -1.5384019613265991, -0.0569668747484684, 0.17405124008655548, -0.1905415952205658, 1.6276262998580933, 0.40599581599235535, -0.04751596972346306...
def find _ peaks _ above _ min _ height ( x, size, min _ height, max _ num ) : i = 0 n _ peaks = 0 ir _ valley _ locs = [ ] # [ 0 for i in range ( max _ num ) ] while i < size - 1 : if x [ i ] > min _ height and x [ i ] > x [ i - 1 ] : # find the left edge of potential peaks n _ width = 1 # original condition i + n _ w...
[ -0.1886766403913498, 0.016614781692624092, 0.8140116333961487, 0.977458119392395, -0.6645383238792419, 0.15513454377651215, 0.28675466775894165, -0.16457101702690125, 0.3576401472091675, 0.47127947211265564, -0.3541765809059143, 0.2880004346370697, -0.10650479793548584, 0.09167568385601044...
def rnn _ cell ( self, rnn _ input, h ) : with tf. variable _ scope ('rnn _ cell ', reuse = true ) : w _ in = tf. get _ variable ('w _ in') w _ rnn = tf. get _ variable ('w _ rnn') b _ rnn = tf. get _ variable ('b _ rnn') " " " update the hidden state only use excitatory projections from input layer to rnn all input an...
[ 0.3514195382595062, -0.42946699261665344, 0.6438161134719849, 0.42166706919670105, 0.33319994807243347, 0.6952897310256958, 0.39714592695236206, 0.050266291946172714, -0.5347852110862732, 0.3155640661716461, 0.25594139099121094, 0.2001304030418396, -0.5315040349960327, 0.07528272271156311,...
def test _ can _ create _ branch ( self ) : json _ response = api _ call ( self, " post ", " / branch / create ", dict ( city = " london ", postcode = " e1w 3ss ", capacity = 5 ), 200, true ) self. assertequal ( json _ response [ " status _ code " ], 201 ) self. assertequal ( json _ response [ " message " ],'branch cre...
[ 0.5474681854248047, 0.6852473020553589, 0.4889651834964752, 0.6826967000961304, 0.9432591199874878, 1.3623344898223877, -0.5591027736663818, 0.5771280527114868, -0.5570117235183716, -0.5104420185089111, -1.020660400390625, 0.28199321031570435, -0.5212815999984741, 0.5323061943054199, 0.6...
def force _ reload ( name ) : cmd = _ service _ cmd ( name, " force - reload " ) return not _ _ salt _ _ [ " cmd. retcode " ] ( cmd )
[ -1.0626386404037476, 1.0563678741455078, 0.68703693151474, 0.11325392872095108, -0.20851202309131622, -0.18347497284412384, -0.15453071892261505, -1.5919204950332642, 0.37151846289634705, -0.013586188666522503, -0.31678733229637146, 0.5692870020866394, -0.7343832850456238, 0.20225431025028...
def _ _ enter _ _ ( self ) : self. _ credential _ providers = self. _ credential _ providers or [ store. gcecredentialprovider ( ), ] for provider in self. _ credential _ providers : provider. register ( ) # register support for service account impersonation. store. impersonation _ token _ provider = ( iamcred _ util. ...
[ -0.18074776232242584, 1.0325108766555786, 0.4425560235977173, 0.06296534836292267, 0.9417605400085449, 0.44139114022254944, 0.23265761137008667, 0.07722070068120956, 0.6521874666213989, -0.23930250108242035, -0.6714779138565063, 0.8501732349395752, -0.1494329869747162, -0.20245610177516937...
def from _ sgf ( cls, sgf _ coords, board _ size, player = " b " ) : if sgf _ coords = = " " or move. sgf _ coord. index ( sgf _ coords [ 0 ] ) = = board _ size [ 0 ] : # some servers use [ tt ] for pass return cls ( coords = none, player = player ) return cls ( coords = ( move. sgf _ coord. index ( sgf _ coords [ 0 ] ...
[ 0.5249219536781311, 0.0030976147390902042, 0.5266010165214539, 0.2699970304965973, -0.38133272528648376, -0.19337303936481476, -0.19422699511051178, -0.3456454873085022, 0.09251223504543304, 0.40551358461380005, 0.015417424030601978, 0.08080471307039261, -0.31813135743141174, -0.9707756042...
def poppipedbrowser ( self, currentpipedmessage ) : newpipedbrowsers = [ ] desiredpipedbrowser = none for pipedbrowser, pipedmessage in self. pipedbrowsers : if pipedmessage is currentpipedmessage : desiredpipedbrowser = pipedbrowser else : newpipedbrowsers. append ( ( pipedbrowser, pipedmessage ) ) self. pipedbrowsers...
[ -1.3480422496795654, -0.702691376209259, 0.4160129427909851, -0.38819068670272827, 0.09996964037418365, -0.2386655956506729, 0.3764745593070984, -0.424168199300766, 0.4037519693374634, 0.9990096092224121, 0.7715606689453125, 0.9312875270843506, -1.766261100769043, 1.0679665803909302, 0.3...
def _ _ getitem _ _ ( self, item ) : if item = = 0 : return self. r elif item = = 1 : return self. g elif item = = 2 : return self. b else : raise indexerror ( " index out of range : vector rgb has r [ 0 ], g [ 1 ] and b [ 2 ] items. item calls greater than 2 " " not permitted " )
[ -0.7229417562484741, -0.04714649170637131, 0.8304487466812134, 0.9176475405693054, 0.32919758558273315, 0.4250675141811371, 0.6259137392044067, -1.4667840003967285, -0.3611241579055786, -0.040349625051021576, 0.4176214039325714, 0.389729768037796, -0.14801029860973358, -0.6112152338027954,...
def get _ move ( self, game, legal _ moves, time _ left ) : self. time _ left = time _ left # todo : finish this function! # perform any required initializations, including selecting an initial # move from the game board ( i. e., an opening book ), or returning # immediately if there are no legal moves try : # the sear...
[ -0.35594499111175537, 0.25137555599212646, 0.7192748785018921, 0.4201633930206299, 0.1773233860731125, -0.6460142731666565, 0.16889220476150513, 0.4737009108066559, -0.3658004403114319, 0.12143867462873459, 0.0442289337515831, 0.2488834708929062, -0.7458561062812805, 0.46807870268821716, ...
def setsplitcount ( self, count ) : if count > self. splitcount ( ) : while self. splitcount ( ) < count : self. addsplit ( ) elif count < self. splitcount ( ) : while self. splitcount ( ) > count : # use an arbitrarily large index to remove the last one self. removesplit ( index = 100 )
[ -0.23556408286094666, 0.7638356685638428, 0.5554426312446594, -0.797337532043457, -0.25739356875419617, -0.17566758394241333, 0.8935388326644897, 0.14842191338539124, -0.030834926292300224, -0.4731837213039398, -0.571158766746521, -0.4420609176158905, -0.57057785987854, -0.1007398292422294...
def infertensorrepresentationsfrommixedschema ( schema : schema _ pb2. schema ) - > dict [ str, schema _ pb2. tensorrepresentation ] : tensor _ representations = gettensorrepresentationsfromschema ( schema ) inferred _ tensor _ representations = infertensorrepresentationsfromschema ( schema ) if tensor _ representation...
[ -0.7942284941673279, 0.4748813807964325, 0.412397563457489, -0.20880882441997528, -0.4290822744369507, -0.41415831446647644, 0.8061255812644958, -0.23408253490924835, 0.03590463101863861, 0.27758538722991943, -1.256058692932129, -0.407071977853775, 0.16795025765895844, 0.2895738184452057, ...
def add _ static _ group _ members ( self, uuid, members = none ) : if members is none : members = [ ] group = self. get _ group _ members ( uuid ) ext = [ x ['uuid'] for x in group ] return self. update _ static _ group _ members ( uuid, ext + members )
[ -1.5830081701278687, 0.023519044741988182, 0.3210347294807434, 0.8712228536605835, 0.20596492290496826, -0.1415681391954422, -0.8408249020576477, 0.7257581353187561, -0.12524132430553436, 0.5404779314994812, -0.6415347456932068, 0.3768216669559479, -1.1453648805618286, 0.18746070563793182,...
def topods _ wire ( * args ) : return _ topods. topods _ wire ( * args )
[ -0.9023908972740173, 0.4377666711807251, 0.5589235424995422, 0.08805735409259796, -0.046859804540872574, 0.5501987934112549, -0.25389668345451355, -1.5758055448532104, -0.2624721825122833, 0.2353801727294922, 0.04093657061457634, -0.07260912656784058, -0.945885181427002, 0.6199041604995728...
def generate _ private _ key ( self ) : random _ string = base64. b64encode ( os. urandom ( 4096 ) ). decode ('utf - 8') binary _ data = bytes ( random _ string,'utf - 8') hash _ object = hashlib. sha256 ( binary _ data ) message _ digest _ bin = hash _ object. digest ( ) message _ digest _ hex = binascii. hexlify ( me...
[ -0.050128113478422165, -0.014899389818310738, 0.6014609336853027, -0.6054143905639648, 0.6854457259178162, 0.21475309133529663, -0.49797579646110535, 0.41119179129600525, 0.3322948217391968, -0.10578180104494095, -0.43553438782691956, 0.3533991873264313, -0.6085807085037231, 0.488317549228...
def deposit _ list ( request ) : if request. method = ='get': # get all requirements in deposit status if request. user. has _ perm ('customer. customer _ view _ others') : requirements = requirement. objects. filter ( status = " deposit " ). distinct ( ) else : requirements = requirement. objects. filter ( q ( custome...
[ 0.026692422106862068, -0.06876718997955322, 0.9424661993980408, 0.4512787163257599, -0.6390520334243774, 0.8071295619010925, 0.8064797520637512, 0.7134562730789185, -0.2729327976703644, 0.4735344350337982, 0.3259181082248688, -0.5874621868133545, 0.4243212640285492, 1.213832974433899, -0...
def conversion _ or _ check _ error ( value _ str, index, line _ num, file _ name ) : try : value _ str. isdigit ( ) except attributeerror : return " typeerror : use'str'object " outputs = { " index = = 1 " : [ " float ( value _ str ) ", " second " ], " index = = 2 " : [ " int ( value _ str ) ", " third " ], " index no...
[ -0.43951305747032166, -0.5895594954490662, 0.5354774594306946, 0.17251211404800415, -0.06234665960073471, -0.05237739533185959, -0.12371750921010971, -0.3757012188434601, -0.5162398219108582, 0.11410881578922272, 0.9331837892532349, -0.14214357733726501, -0.07741668820381165, -0.1614912152...
def del _ market ( self, uuid, scenario = false ) : if uuid in self. _ _ system _ market _ ids : return false if scenario : try : self. del _ scenario ( self. get _ markets ( uuid ) [ 0 ] ['scenario'] ['uuid'] ) except exception : pass return self. request ('markets ', method ='delete ', uuid = uuid )
[ -1.2269216775894165, 0.5933617949485779, 0.47086387872695923, 0.5997908115386963, -0.26791641116142273, 0.2912943363189697, 0.17225831747055054, 0.6699668169021606, 0.6251480579376221, 0.6996150016784668, 0.012187579646706581, 0.23820437490940094, -1.3874781131744385, 0.23406846821308136, ...
def finalize _ linux ( self ) : # tell piro that gcc is fine and dandy, but not so ms compilers for extension in self. extensions : extension. extra _ compile _ args. append ('- wdeclaration - after - statement')
[ 0.753143846988678, -0.061865974217653275, 0.3321751356124878, 0.052773330360651016, -0.09096648544073105, 0.5553203225135803, -0.13736575841903687, 0.2963528633117676, 0.2055664360523224, -0.5350592136383057, 0.14759498834609985, 0.12701424956321716, -0.8235406279563904, 2.2192935943603516...
def not _ supported ( self ) : raise notimplementederror ('provider : % s does not support this operation'% self. _ _ class _ _ )
[ -0.33184921741485596, 0.754478931427002, 0.6323522329330444, 0.03686903044581413, -0.21925781667232513, 0.6281210780143738, 0.3197080194950104, 0.4466882646083832, 0.7281604409217834, 0.4488987922668457, -0.4861922264099121, -0.08528216928243637, -0.14036951959133148, 0.17538465559482574, ...
def move ( self, x : int, y : int ) - > none : r = self. square _ rect. move ( x, y ) if r. left < 0 : r. left = 0 elif r. right > self. rect. width : r. right = self. rect. width if r. top < 0 : r. top = 0 elif r. bottom > self. rect. height : r. bottom = self. rect. height self. square _ rect = r
[ -1.2442785501480103, -0.7949376106262207, 0.8027278780937195, -0.1528398096561432, 0.0862528532743454, 0.1533040553331375, -0.8289141654968262, -1.3290348052978516, 0.28988975286483765, 0.09053398668766022, -0.665386974811554, 0.14768710732460022, 0.1496635377407074, -0.02220773696899414, ...
def random _ date ( begin = 30, end = 0 ) : start _ date = date. today ( ). toordinal ( ) + begin end _ date = date. today ( ). toordinal ( ) + end random _ date = date. fromordinal ( random. randint ( start _ date, end _ date ) ) return random _ date
[ -0.6539502739906311, -0.09904970973730087, 0.6667379140853882, -0.49040457606315613, -0.6083285808563232, 1.5038303136825562, -0.8606043457984924, 0.20093123614788055, 0.23527516424655914, -0.5903851389884949, 0.3310355544090271, 1.1492749452590942, -0.3907127380371094, -0.8181822896003723...
def nop ( self, username, token ) : message = dict ( ) if not ( self. checktoken ( username, token ) ) : message [ " success " ] = false message [ " error " ] = " invalid authentication token. " return ( json. dumps ( message ) ) else : message [ " success " ] = true return ( json. dumps ( message ) )
[ -1.065657377243042, 0.3078381419181824, 0.36083751916885376, -0.1680266559123993, -0.6608414053916931, 0.07690814882516861, -0.6881157755851746, -0.6443299651145935, -0.7853036522865295, 0.40773212909698486, -0.5380420684814453, -0.00018320274830330163, -0.8485461473464966, -0.218923419713...
def render _ image ( image _ data, content _ type ) : response = make _ response ( image _ data ) response. headers ['content - type'] = content _ type return response
[ -0.4470466077327728, -0.7774029970169067, 0.3598349094390869, -0.7092444896697998, -0.48351651430130005, -0.3537174463272095, -0.967783510684967, 0.10008002817630768, -0.11692813783884048, 0.5331010818481445, 0.4431343674659729, 0.24381624162197113, -0.55314701795578, 0.13190223276615143, ...
def disassembly _ theme ( self ) : return self. _ themes [ self. _ disassembly _ theme ]
[ -0.2674056887626648, -0.611549973487854, 0.24901403486728668, -0.7017699480056763, -0.8520563244819641, 0.3015167713165283, 0.09054192900657654, -0.4468934237957001, 0.31019705533981323, 0.009872101247310638, -0.03615531697869301, 0.2950090765953064, 0.2544233202934265, -0.5820128321647644...
def test _ retrieving _ recipe ( self ) : sample _ recipe ( user = self. user ) sample _ recipe ( user = self. user ) res = self. client. get ( recipe _ url ) recipe = recipe. objects. all ( ). order _ by ('- id') serializer = recipeserializer ( recipe, many = true ) self. assertequal ( res. status _ code, status. http...
[ 0.6886216998100281, 0.46838462352752686, 0.32182252407073975, 0.34184491634368896, 0.8343998193740845, -0.3690662682056427, -0.5714529156684875, 1.2079256772994995, -0.25848811864852905, -1.0392910242080688, -0.34180518984794617, 0.23314714431762695, -0.004986901767551899, -0.2293410748243...
def cb _ save ( event ) : print ('dum') fig. savefig ('sample. univariate _ continuous. py. png ', dpi = 300, format ='png ', transparent = true ) # plt. savefig ('sample. univariate _ continuous. py. svg ', format ='svg') # いし 大 file
[ 0.8711130619049072, 0.7330535650253296, 0.7814172506332397, 0.5670180320739746, 0.14129230380058289, 0.8713491559028625, 0.8589640259742737, 0.2799375653266907, -0.07705500721931458, 0.6606050729751587, -1.0719099044799805, -0.37198248505592346, 0.7744747400283813, -0.31678181886672974, ...
def freeze _ session ( session, keep _ var _ names = none, output _ names = none, clear _ devices = true ) : graph = session. graph with graph. as _ default ( ) : freeze _ var _ names = list ( set ( v. op. name for v in tf. global _ variables ( ) ). difference ( keep _ var _ names or [ ] ) ) output _ names = output _ n...
[ -0.6620176434516907, 0.286392480134964, 0.6828855872154236, 0.28417110443115234, -0.8420449495315552, -0.34178557991981506, 0.5491428375244141, -0.9587624669075012, 0.46903374791145325, 1.4543322324752808, -0.08218242973089218, 0.27820730209350586, 0.2970741391181946, -0.9620001316070557, ...
def test _ is _ number _ validation _ valid ( ) : sut = isnumbervalidation ( field ) error = sut. validate ( { field : 1 } ) assert error is none
[ 0.09706538170576096, 0.8598360419273376, 0.429821640253067, 1.2163970470428467, 0.12899301946163177, 1.0882734060287476, 0.19328716397285461, 0.8496109843254089, 0.06512672454118729, -0.6927474141120911, -1.1276034116744995, -0.5659155249595642, -0.2113693803548813, 0.36007654666900635, ...
def remove _ zones ( self ) - > none : for patch in self. _ artists. zones. values ( ) : patch. remove ( ) self. _ artists. zones = { }
[ -0.10881981253623962, -0.7353694438934326, 0.19190600514411926, -0.6574946641921997, -0.7573989629745483, 0.9106103181838989, 1.3632664680480957, 0.4317684769630432, 0.6540282964706421, -0.30759313702583313, -1.1362136602401733, 0.2787638306617737, -0.8609106540679932, 0.2604481875896454, ...
def read ( self, file _ name : optional [ path ] = none ) : if file _ name is none : file _ name = self. file _ name if ( self. n _ rows is none ) or ( self. n _ cols is none ) : raise valueerror ('the number of rows and columns in the image must be specified before calling read') with open ( file _ name,'r') as ifile ...
[ -0.39563944935798645, 0.15579983592033386, 0.9676854014396667, -0.22822463512420654, 0.06566542387008667, 0.3941534161567688, 0.043762367218732834, 0.8588748574256897, -0.40525487065315247, -0.17763623595237732, 0.5416178703308105, 0.3566610813140869, -0.3666624128818512, 0.427591532468795...
def sync _ to ( self, src, dest, verbose = true ) : self. _ raise ( )
[ -0.14708714187145233, 0.8482227325439453, 0.35743385553359985, 0.6317850947380066, 0.2490995079278946, -0.01964958757162094, -0.9208758473396301, -0.8036826848983765, -0.5367202162742615, 0.9951556324958801, -0.16268090903759003, 1.4855148792266846, 0.667677640914917, -0.1460256576538086, ...
def schemaspace _ exists ( self ) - > bool : schemaspace _ dir _ exists = false for d in self. metadata _ paths : if os. path. isdir ( d ) : schemaspace _ dir _ exists = true break return schemaspace _ dir _ exists
[ -0.35216277837753296, -0.22767697274684906, 0.5958937406539917, 0.3503343164920807, 0.7940314412117004, 0.4008227586746216, -0.1452811360359192, 0.8177962899208069, 0.7022916674613953, -0.5664569139480591, 0.14389275014400482, 0.16617748141288757, 0.28507789969444275, 1.1048774719238281, ...
def winbio _ winbioenumbiometricunits ( jitter ) : ret _ ad, args = jitter. func _ args _ stdcall ( [ " factor ", " unitschemaarray ", " unitcount " ] ) raise runtimeerror ('api not implemented') jitter. func _ ret _ stdcall ( ret _ ad, ret _ value )
[ -0.6371127367019653, -0.03459448367357254, 0.4270782172679901, 0.7164270877838135, 0.8839930295944214, 0.9825832843780518, 0.7105923891067505, -0.32732024788856506, -0.4685729742050171, -0.011803844943642616, -0.13742633163928986, 0.31089290976524353, -1.4265817403793335, 0.980385482311248...
def _ _ stagetotarget ( self, doc, stage, cmds ) : target = doc. createelementns ( " ", " target " ) target. setattributens ( " ", " name ", " stage % s " % stage ) parallel = doc. createelementns ( " ", " parallel " ) parallel. setattributens ( " ", " threadcount ", " $ { number. of. threads } " ) target. appendchild ...
[ -0.859494149684906, -0.48790261149406433, 0.37395069003105164, -1.1274333000183105, -0.45526543259620667, -0.05687051638960838, 0.5196242332458496, -0.10436389595270157, -0.24280014634132385, 0.27247926592826843, 0.7949861884117126, -0.29961758852005005, 0.6647652387619019, 0.2247982919216...
def make _ polynomial _ matrix ( n, degrees ) : time _ points = np. linspace ( - 1, 1, n ) [ np. newaxis ]. t polynomials = np. zeros ( ( n, len ( degrees ) ) ) # loop over degrees for i, d in enumerate ( degrees ) : poly _ vector = time _ points * * d if i > 0 : # project out the other polynomials poly _ vector = np. ...
[ -0.3771849274635315, 0.5103800296783447, 0.527209460735321, -0.5486277341842651, -0.36740314960479736, -0.07812882959842682, -0.12301591038703918, -0.5672191977500916, 0.5645075440406799, 1.0878007411956787, 0.01799233816564083, -0.4610559046268463, -0.299035906791687, -0.5968970060348511,...
def test _ replace _ agent _ requirement ( self ) : pass
[ -0.6697679162025452, -0.8744792342185974, 0.3140833079814911, 0.31357109546661377, -0.025697259232401848, 0.12526345252990723, 0.6237198114395142, 1.0250176191329956, 0.9866580367088318, -0.37272393703460693, -0.782012939453125, 0.43400686979293823, -0.44130486249923706, 0.6388238668441772...
def display _ entries ( entries, format _ style = none ) : print ( entry _ repr _ heading ( format _ style ) ) for entry in entries : print ( entry _ repr ( entry, format _ style ) )
[ 0.2055642157793045, -0.37496575713157654, 0.37247434258461, 0.4418782591819763, -0.03836642950773239, 0.03232961520552635, -0.609266996383667, 0.4056185185909271, 0.1467054784297943, 0.3568280041217804, 0.979104220867157, 0.7784698009490967, 0.1868971735239029, 0.7292895913124084, -0.745...
def set _ temp ( self, temp ) : msg = self. device. send ( " set - tr - temp ", temp ) return not msg. iserror ( )
[ -0.5731521248817444, 0.9636560678482056, 0.5097102522850037, -0.2883507013320923, 0.5618399977684021, -0.0047598411329090595, 0.09052782505750656, -0.021588314324617386, -0.21619664132595062, 0.4917133152484894, -0.9332208037376404, -0.6770322322845459, -0.9482185244560242, -0.285952329635...
def getvelocities ( self ) : if self. _ velocs is not none : indices = self. _ traj. _ indices if indices is none : return self. _ velocs. copy ( ) else : return self. _ velocs [ indices ]
[ -0.009801451116800308, 0.28781378269195557, 0.467759370803833, 0.8648492693901062, 0.7269143462181091, 0.015684518963098526, 0.12176992744207382, -1.1928520202636719, 1.1397002935409546, -0.24321652948856354, -0.03776612877845764, -0.08046723902225494, 0.034897834062576294, -0.206682488322...
def upper ( self ) : return self. center ( ) * 2. 0 * * ( + 1. 0 / ( 2. 0 * self. order ) )
[ -0.42269206047058105, -0.7871789932250977, 0.7137798070907593, 0.6397609710693359, -0.047877535223960876, 0.3370526432991028, 0.48520874977111816, 0.1396474838256836, 0.5325206518173218, 0.10855690389871597, 0.00875508040189743, 0.5566962957382202, 0.18902616202831268, -0.11721225082874298...
def extend _ step ( self, cached _ states : nestedmap, inputs : jtensor, *, time _ step : jtensor, attention _ mask : jtensor, cross _ inputs : optional [ jtensor ] = none, cross _ attention _ mask : optional [ jtensor ] = none ) - > tuple [ jtensor, nestedmap ] : if not self. params. mask _ self _ attention : raise va...
[ 0.29293733835220337, -0.3698457181453705, 0.8351277709007263, 0.8194520473480225, -0.3543701469898224, -0.5565287470817566, 0.6603240966796875, 0.016348086297512054, 0.0846676155924797, -0.7890464067459106, -0.034775327891111374, 0.14216946065425873, 1.0343708992004395, 0.3396529257297516,...
def save _ file ( self ) : super ( ). save _ file ( )
[ -0.14670298993587494, -0.36991068720817566, 0.17990411818027496, 0.6391564607620239, 1.4540724754333496, 0.5737698674201965, 0.7414353489875793, 1.1042267084121704, -2.0352766513824463, -0.17962297797203064, -0.8228008151054382, -0.654951810836792, 0.6082669496536255, 1.1352832317352295, ...
def getdstprotocol ( self ) : return self. dstproto
[ -0.196757972240448, 0.886969268321991, 0.594685971736908, -0.25402921438217163, -0.9677908420562744, 0.9412956237792969, -0.2403544783592224, -1.0344702005386353, -0.026797626167535782, 0.3611944019794464, -0.15369227528572083, 0.4167717397212982, -0.4106556177139282, -1.4777952432632446, ...