text
stringlengths
25
2.19k
embedding
listlengths
768
768
def handle _ arp _ request ( self, msg, srcip, dstip ) : datapath = msg. datapath ofproto = datapath. ofproto parser = datapath. ofproto _ parser result = self. topology. retrieve _ dpid _ connected _ host ( dstip ) if result : dst _ datapath, out _ port = result [ 0 ], result [ 1 ] datapath = self. datapaths [ dst _ d...
[ -0.6798756718635559, -0.14309443533420563, 0.661310613155365, -0.2976197600364685, 0.01087628211826086, -0.2772209346294403, -0.19723853468894958, -0.39498308300971985, 0.26737961173057556, -0.497297465801239, 1.110075831413269, 0.1108463779091835, 0.470812052488327, -0.8058539032936096, ...
def basic _ logfile ( ) : log _ lines = [ " first \ n ", " second \ n ", " third \ n ", " fourth \ n ", " fifth \ n " ] with tempfile. namedtemporaryfile ( " w ", delete = false ) as logfile : logfile. writelines ( log _ lines ) logfile. flush ( ) filepath = logfile. name yield filepath os. remove ( filepath )
[ 1.129360556602478, -0.08615849167108536, 0.7347983717918396, -0.52693110704422, 0.2887136936187744, 0.03999147564172745, -0.04997730255126953, -0.5371806025505066, -1.0983343124389648, -0.08890324831008911, -0.7918754816055298, -1.0727031230926514, 0.05057588964700699, -0.3105105757713318,...
def load _ all _ configs ( self, configdir ) : for _, _, filenames in os. walk ( configdir ) : for filename in filenames : if filename [ - 4 : ] = = ". yml " or filename [ - 5 : ] = = ". yaml " : # remove extension configid = os. path. splitext ( filename ) [ 0 ] self. load _ config ( configid, configdir )
[ -0.14676301181316376, -0.045642655342817307, 0.6601570248603821, 0.7734257578849792, -0.6249035596847534, -0.8890016078948975, 0.13835857808589935, 0.04784955084323883, 0.0332687646150589, 0.261471152305603, -0.4945250153541565, -0.009808400645852089, -0.2108297497034073, 2.076696872711181...
def test _ exchange _ code ( self ) - > none : token = { " type " : " bearer ", " access _ token " : " aabbcc ", } self. fake _ server. post _ token _ handler. side _ effect = none self. fake _ server. post _ token _ handler. return _ value = fakeresponse. json ( payload = token ) code = " code " ret = self. get _ succ...
[ 0.14365515112876892, 1.0160104036331177, 0.607656717300415, -0.5442373156547546, 0.7533790469169617, -0.34094470739364624, -0.12895719707012177, 0.44084861874580383, 0.573613166809082, -0.26196587085723877, -0.506449282169342, 0.8874152898788452, -0.09433222562074661, 0.6973470449447632, ...
def _ from _ address ( self, ptr ) : block, offset = none, none for _ block, _ offset in self. blocks : if _ block. addr = = ptr : block, offset = _ block, _ offset if offset is none : raise blenderfilereadexception ('cannot find the address { } in the blend file '. format ( hex ( ptr ) ) ) struct = self. index. struct...
[ -0.18683236837387085, -0.5046712160110474, 0.6540787816047668, -0.22148250043392181, -0.7784385085105896, -0.34769749641418457, 0.4266366958618164, -0.45069265365600586, -0.036588821560144424, 0.36101093888282776, -0.20010194182395935, 0.28234636783599854, -0.1373146027326584, 0.4802316427...
async def get _ composed _ with _ discriminator ( self, * * kwargs ) - > " models. dotfishmarket " : cls = kwargs. pop ('cls ', none ) # type : clstype [ " models. dotfishmarket " ] error _ map = { 404 : resourcenotfounderror, 409 : resourceexistserror } error _ map. update ( kwargs. pop ('error _ map ', { } ) ) # cons...
[ -1.1009652614593506, -0.2903587520122528, 0.8041266202926636, 0.06802266091108322, 0.13298000395298004, -1.1650651693344116, 0.2670714855194092, -0.09201054275035858, 0.5481699705123901, -0.37982746958732605, -0.45536133646965027, 0.7198310494422913, -0.1453527957201004, -0.198389828205108...
def get _ ts _ features ( ts, time, prefix, suffix, deriv _ ord, exclude _ order = none, do _ plot = false, axs = [ ] ) : der _ names = [ " pos ",'vel ','acc ','jerk ','jounce'] measures = [ ( np. average, " avg " ), ( abs _ avg, " tavg " ), ( np. max, " max " ), ( np. min, " min " ), ( np. std, " std " ), ( np. median...
[ 0.5085605978965759, 0.5920763611793518, 0.8567234873771667, -0.6390159130096436, -0.6815081834793091, -0.8389675617218018, 0.09111224114894867, 0.21175764501094818, -0.5574438571929932, -0.14561869204044342, -1.1465927362442017, 0.5413193106651306, 1.2619961500167847, 0.16686002910137177, ...
def set _ taxon _ name ( self, node ) : level _ name = " " for leaf in node : level _ name + = str ( leaf. name ) level _ name + = " / " node. name = str ( level _ name [ : - 1 ] )
[ -0.26024314761161804, -1.017134428024292, 0.49896079301834106, -0.21162351965904236, -0.36175161600112915, 0.5692121982574463, -0.3480781018733978, -0.29978257417678833, -1.491292119026184, 1.2101236581802368, -0.26928845047950745, 0.019521579146385193, 0.9183539748191833, -0.0709041506052...
def moveit _ play _ planned _ path _ from _ file ( self, arg _ file _ path, arg _ file _ name ) : file _ path = arg _ file _ path + arg _ file _ name with open ( file _ path,'r') as file _ open : loaded _ plan = yaml. load ( file _ open ) ret = self. _ group. execute ( loaded _ plan ) # rospy. logerr ( ret ) return ret
[ -0.32227668166160583, -1.210204839706421, 0.588543176651001, 0.4778518080711365, -0.021199679002165794, 0.760352611541748, 0.6267103552818298, 0.4220135509967804, -0.9403308629989624, 0.8590261936187744, 0.10582658648490906, 0.41365697979927063, -0.09667231142520905, -0.9148528575897217, ...
def newdataentry ( crime ) : entry = {'lstmusic': none } entry ['lstmusic'] = lt. newlist ('single _ linked') return entry
[ 0.4046114683151245, -0.12621039152145386, 0.06160629540681839, -1.0867772102355957, 0.8885730504989624, 0.7078771591186523, -0.2837877869606018, 0.2562141716480255, 0.5104432702064514, -0.9102598428726196, -1.2133595943450928, 0.4721410870552063, -0.5352262258529663, 0.6618928909301758, ...
def doubler ( number ) : result = number * 2 # using process id # proc = os. getpid ( ) # we get the current process id by using the python module os # print ('{ } doubled to { } by process id : { } '. format ( number, result, proc ) ) # using process name proc _ name = current _ process ( ). name # grabs the name of t...
[ -0.38916343450546265, -0.9878536462783813, 0.9050869345664978, -0.24509330093860626, 0.13280034065246582, 0.0049433838576078415, 0.3297368288040161, -0.8712918758392334, -0.6034619212150574, 0.011271979659795761, -1.1560052633285522, 0.9848689436912537, 0.20468083024024963, 1.0002231597900...
def measure _ ellipse ( header, data, x _ deg, y _ deg, maj _ deg, min _ deg, pa _ deg ) : wcs = pw. wcs ( header ) w = mkwcsdict ( header ) # convert inputs to pixel coordinates and calculate region bounds [ [ x _ pix, y _ pix ] ] = wcs. wcs _ sky2pix ( [ ( x _ deg, y _ deg ) ], 0 ) maj _ pix = maj _ deg / w ['pixscal...
[ -0.23370863497257233, -0.18115486204624176, 1.05453622341156, -0.9199955463409424, -1.2827584743499756, 0.09054253995418549, -0.5251516103744507, 0.20293013751506805, 0.8801389932632446, 0.5988286733627319, -0.08012781292200089, 0.19643937051296234, -0.03658397123217583, 0.0474306792020797...
def translate _ path ( self, path ) : elts = path. split ('/') if len ( elts ) > 1 and elts [ 0 ] = ='' and elts [ 1 ] = ='cgi - bin': return os. path. join ( cgi _ dir, * elts [ 2 : ] ) return cgihttprequesthandler. translate _ path ( self, path )
[ -0.5050323009490967, 0.3917332589626312, 0.5903602242469788, 0.706972062587738, -0.4443519711494446, 0.18649058043956757, 0.5878081917762756, 0.11323248594999313, 0.08365919440984726, -0.598675549030304, -0.4487919211387634, -0.6010875105857849, -0.5269545912742615, 0.20409898459911346, ...
def _ _ init _ _ ( self, multi = false ) : if multi : self. graph = nx. multidigraph ( ) else : self. graph = nx. digraph ( ) self. undirected _ graph = self. graph. to _ undirected ( ) self. person _ type = " 100 " self. node _ count = { } self. edges _ count = { }
[ -0.632225513458252, 0.6188951134681702, 0.6262080669403076, 0.45734703540802, -0.46971604228019714, 0.4808652997016907, 0.4116809070110321, 0.7847875952720642, 0.6358513236045837, -0.763109028339386, -0.8349441885948181, -0.43203026056289673, -0.06689941138029099, 0.49384140968322754, 0....
def login ( * args, * * kwargs ) : kwargs ['authentication _ form'] = authenticationformaccounts return login _ base ( * args, * * kwargs )
[ -0.11601930111646652, 0.02075796201825142, 0.5517563819885254, 0.5467578172683716, -0.10767083615064621, -0.3169480562210083, -0.43160200119018555, -0.02378915250301361, -0.2873193919658661, -0.5106653571128845, 0.0011462519178166986, -0.21157915890216827, -0.09302932024002075, -0.45703086...
def read _ next _ round _ file ( file _ name ) : try : file = open ( file _ name,'r ', encoding ='utf8') file. readline ( ). split ( " " ) # round _ num = header [ 1 ]. strip ( ) match _ round = [ ] for line in file : match = { } match [ " date " ] = line. strip ( ) line = file. readline ( ) match [ " host " ] = line. ...
[ -0.39451536536216736, -0.8248500823974609, 0.8640853762626648, -0.28511470556259155, -0.3250058889389038, 0.7063398957252502, 0.45240041613578796, 0.5624865293502808, -1.8688116073608398, 0.1947970986366272, -0.028985759243369102, 0.01522719394415617, -0.16167528927326202, 0.04130505770444...
def get _ variable _ for _ api _ name ( variable _ api _ name ) : " " " example variable _ api _ name ='variable55'" " " # get instance of variablesoperations class variables _ operations = variablesoperations ( ) # get instance of parametermap class param _ instance = parametermap ( ) # possible parameters of get vari...
[ -0.6945620179176331, -0.7266563177108765, 0.9238738417625427, -0.5453020334243774, 0.2828744351863861, -0.46802061796188354, 0.3839859664440155, -0.3533479571342468, -0.2580372393131256, 0.39900532364845276, -0.500274658203125, 0.849523663520813, -0.6858147382736206, 0.1419093906879425, ...
def show _ parental _ dialog ( * * kwargs ) : from resources. lib. kodi. ui. xmldialog _ parental import parentalcontrol show _ modal _ dialog ( false, parentalcontrol,'plugin - video - netflix - parentalcontrol. xml ', * * kwargs )
[ 1.0235235691070557, 0.007424856070429087, 0.4332277774810791, 0.026306187734007835, -0.93309086561203, -0.0028941729106009007, -0.16347241401672363, -0.0941561758518219, -0.256855845451355, -0.43127259612083435, 0.3231123387813568, 0.8616599440574646, -0.28721344470977783, 0.64531302452087...
def split _ sent _ stanford ( self, textpair ) : t1 = self. segmenter. segment ( textpair. t1 ) t2 = self. segmenter. segment ( textpair. t1 ) if debug : print ( t1, t2 ) return text _ pair. textpair ( t1, t2, textpair. label )
[ -1.2716865539550781, -0.4089196026325226, 0.48164311051368713, -0.7937600612640381, -1.0997891426086426, 0.4244675934314728, -0.1690773218870163, -0.5346903204917908, -0.6131107807159424, 1.1216657161712646, 0.2311713546514511, -0.4160761833190918, -1.4885326623916626, 0.17500264942646027,...
def get _ function ( self, minterms ) : return self. qm. get _ function ( minterms )
[ 0.06550509482622147, -0.6084721088409424, 0.15066617727279663, -0.7715521454811096, 0.22371944785118103, -0.9073091745376587, -0.9716305136680603, -2.030341625213623, 0.1435214877128601, -0.7711839079856873, -0.012844379059970379, 0.8379637002944946, -0.7353222370147705, -1.220269918441772...
def handle _ bad _ request ( error ) : payload = dict ( error. payload or ( ) ) payload ['status'] = error. status payload ['message'] = error. message return jsonify ( payload ), 400
[ -1.552760124206543, -0.6740501523017883, 0.6644010543823242, 0.022685246542096138, -0.6845493912696838, -0.5118037462234497, -2.1816351413726807, -0.3198483884334564, 0.1074366644024849, 0.028433991596102715, -0.5594340562820435, 0.2186720222234726, 0.06680136173963547, 0.4682062268257141,...
def update _ time ( self ) - > optional [ float ] : if self. reservation is none : return none else : return self. reservation. update _ time. timestamp ( )
[ -0.12785151600837708, -0.23068851232528687, 0.6034327745437622, 0.3998316824436188, 0.12064190208911896, 0.11332257837057114, -1.258582592010498, -0.07738620042800903, 0.5158302187919617, 1.3108234405517578, 0.2250499278306961, -0.4518745243549347, -0.49424752593040466, -0.661442220211029,...
def clear _ stream _ backlog ( self, subscription ) : request = request ( method ='post ', endpoint ='/ streams / clearbacklog / { } '. format ( subscription ) ) def response _ handler ( resp ) : code = resp. status _ code if resp. is _ success : return'ok'elif code = = 403 : raise ex. streampermissionerror ( resp, req...
[ 0.4094606339931488, 0.3039610981941223, 0.6523857712745667, 0.6080865263938904, -0.5062881708145142, -0.4643722474575043, -0.3058924973011017, -0.9815433621406555, -0.06156814098358154, 1.1947273015975952, -0.15280815958976746, 1.9691650867462158, -1.5222159624099731, -0.7896135449409485, ...
def find _ min _ step ( cakes, flipper ) : return bfs ( cakes, flipper )
[ -0.474150151014328, -0.2981184720993042, 0.12681816518306732, 1.1944369077682495, -1.0413304567337036, -0.1734708696603775, -0.5182459950447083, -0.3849908113479614, -0.5593456029891968, -0.8875415325164795, -0.31887558102607727, -0.590100884437561, 0.09666579216718674, 1.8972185850143433,...
def fixed _ ip _ update ( context, address, values ) : return impl. fixed _ ip _ update ( context, address, values )
[ -1.2462689876556396, -0.304725706577301, 0.15542593598365784, 0.3277070224285126, -0.9405738115310669, -0.02165048196911812, -0.0191420316696167, 0.45224589109420776, 0.5442873239517212, 0.1436523050069809, -0.081455297768116, 0.1817295104265213, -0.3799678385257721, -1.0494017601013184, ...
def reservation _ expire ( context ) : return impl. reservation _ expire ( context )
[ -0.5507851243019104, 0.42333945631980896, 0.09113623201847076, -0.16012489795684814, -0.1535448133945465, -0.6023277044296265, -0.7743163108825684, 0.728693962097168, 0.5500231981277466, 1.818629503250122, -0.14114698767662048, -0.25682947039604187, -0.33926111459732056, -1.166663885116577...
def compute _ equality ( vec _ a, vec _ b ) : return vec _ a = = vec _ b
[ 0.24116840958595276, -0.6188793778419495, 0.5271580219268799, -0.011721582151949406, 1.6056978702545166, -0.42283692955970764, -0.08135207742452621, 0.0080134691670537, -0.06736067682504654, 0.5586308836936951, -0.35576674342155457, 0.9024245738983154, 0.2243235558271408, -0.38759046792984...
def _ _ init _ _ ( self ) : self. min = none self. stack = [ ]
[ 0.0017143081640824676, 0.2646886706352234, 0.2893519401550293, 0.5883286595344543, -0.012256979942321777, -0.6826992630958557, -0.1483420729637146, 0.04564249888062477, 0.33093613386154175, -0.24394932389259338, -1.903608798980713, 0.1397174894809723, -0.5114402770996094, 1.003856658935546...
def promjeni _ line _ width ( self ) : sirina = self. doublespinline. value ( ) msg ='zahtjev za promjenom sirine linije. nova sirina = { 0 } '. format ( str ( sirina ) ) logging. debug ( msg ) self. defaultgraf [ 7 ] = sirina
[ -0.10319846123456955, 0.33130720257759094, 0.4758840501308441, -0.04947976768016815, 0.10037119686603546, 0.34034958481788635, 0.7291587591171265, 0.3366071581840515, -0.022416355088353157, -0.5065937638282776, -0.8997823596000671, 0.337892085313797, -0.5705579519271851, 1.1367301940917969...
def unique _ id ( self ) : return self. _ unique _ id
[ 1.0342477560043335, -0.4837154448032379, 0.21546420454978943, -0.11382932960987091, 0.9069118499755859, 1.0172005891799927, 0.6817517876625061, 1.1788747310638428, 0.9684860110282898, -0.8402979969978333, -0.059221301227808, 1.1854345798492432, -0.3161851763725281, -1.0018396377563477, 0...
def steps3d ( p, dp, inds, niter ) : shape = p. shape [ 1 : ] for t in range ( niter ) : # pi = p. astype ( np. int32 ) for j in range ( inds. shape [ 0 ] ) : z = inds [ j, 0 ] y = inds [ j, 1 ] x = inds [ j, 2 ] p0, p1, p2 = int ( p [ 0, z, y, x ] ), int ( p [ 1, z, y, x ] ), int ( p [ 2, z, y, x ] ) p [ 0, z, y, x ] ...
[ -0.23032334446907043, -0.04448229447007179, 0.7518040537834167, -0.1657543033361435, -0.10792069137096405, 0.699901819229126, -0.013504344038665295, 0.5270267128944397, 0.488511860370636, 0.31697604060173035, -0.7621183395385742, -0.7060950994491577, 0.08418791741132736, -0.508944749832153...
def repos _ path ( user _ path : pathlib. path, request : pytest. fixturerequest ) : dir = user _ path / " repos " dir. mkdir ( exist _ ok = true ) def clean ( ) : shutil. rmtree ( dir ) request. addfinalizer ( clean ) return dir
[ 0.06023189052939415, 0.7046418786048889, 0.3623768985271454, 0.279065877199173, -0.09811372309923172, 0.6039524078369141, 1.6124686002731323, -0.6588019132614136, 0.5296581983566284, -0.4158537685871124, 0.4624324440956116, -0.8113312125205994, 0.5254431962966919, -0.6420422196388245, -0...
def gf _ sub ( f, g, p ) : if not g : return f if not f : return gf _ neg ( g, p ) df = gf _ degree ( f ) dg = gf _ degree ( g ) if df = = dg : return gf _ strip ( [ ( a - b ) % p for a, b in zip ( f, g ) ] ) else : k = abs ( df - dg ) if df > dg : h, f = f [ : k ], f [ k : ] else : h, g = gf _ neg ( g [ : k ], p ), g ...
[ 0.22251605987548828, 0.8391700387001038, 0.6366744637489319, 0.3850289583206177, -0.7841827273368835, 0.955219030380249, -0.5275127291679382, 0.6792440414428711, -0.9957113862037659, 0.22396992146968842, 0.18131023645401, -0.009615682065486908, -0.48096001148223877, -0.7159079313278198, ...
def join _ deals ( data, deals, dates ='datdealversion') : data ['joindate'] = data. ix [ :, dates ]. dt. date deals = deals. set _ index ( ['tradedate ','dealtype'] ). unstack ('dealtype') deals = deals. xs ('count ', axis = 1 ). reset _ index ( ) deals. tradedate = deals. tradedate. dt. date # drop repeated features ...
[ 0.07961298525333405, 0.6757898926734924, 0.6204678416252136, 0.09343710541725159, 0.4595131278038025, 0.7692641615867615, -0.09336647391319275, 0.5011513233184814, -0.02728055790066719, 0.19930890202522278, -0.3289281129837036, 0.20526254177093506, 0.15450607240200043, -0.2190503478050232,...
def amenities ( self, value ) : if type ( value ) = = amenity : self. amenity _ ids. append ( value. id )
[ -0.37164607644081116, 0.2290564328432083, 0.5321440100669861, -0.2069682627916336, 0.05101585388183594, 1.353871464729309, -1.0370337963104248, -0.6295627355575562, 1.1228885650634766, 0.08186107873916626, -0.5857037305831909, 1.1288138628005981, -0.139297217130661, 0.7732621431350708, -...
def compare _ limits ( sdict, xlims, ylims, alpha = 0. 05, decay = false ) : fig = plt. figure ( ) axis = fig. add _ subplot ( 111 ) axis. set _ xscale ('log') axis. set _ yscale ('log') axis. set _ xlim ( ( xlims [ 0 ], xlims [ 1 ] ) ) axis. set _ ylim ( ( ylims [ 0 ], ylims [ 1 ] ) ) axis. set _ xlabel ( mass _ axis ...
[ 0.7592747211456299, -0.3265821933746338, 0.6493911147117615, -0.7689092755317688, -1.01443612575531, 0.7116504311561584, -0.4811563789844513, -0.13944952189922333, 0.0013488540425896645, 0.07407855242490768, 0.3991753160953522, 0.3205123543739319, 0.597646951675415, 0.33020731806755066, ...
def parse ( cls, datestr ) : def _ dual _ year ( year _ str, dual _ year _ str ) : " " " guess dual year, returns actual year number. in gedcom dual year uses last two digits of the year number ( though some implementations use four digits ). this method tries to guess actual year number from the digits that were given...
[ 0.8161161541938782, -0.20933185517787933, 0.5853002071380615, -0.2193850725889206, -0.9795067310333252, 0.248915895819664, -0.31762635707855225, -0.23499608039855957, 1.0086394548416138, -1.1513478755950928, 0.10199324786663055, 0.6122405529022217, -0.008384127169847488, -0.636381208896637...
def data _ input ( self ) : # initialize dataframe for all game data all _ games = pd. dataframe ( ) # loop through all years in range. obtain schedule, rating, and conference ranking for given year. for year in range ( self. year1, self. year2 + 1 ) : # skip year 2017, as some issues exist with ratings. discovered iss...
[ -0.20983019471168518, 0.364379346370697, 0.8079437613487244, -0.41086533665657043, 0.1404738426208496, 0.8359931111335754, 0.3126547634601593, -0.8012911081314087, -0.026719219982624054, 0.06148453801870346, 0.3033320903778076, 0.6357184648513794, 0.661166787147522, -0.0212172269821167, ...
def add _ fruit ( self ) : condition = true ligne, case = ( 0, 0 ) while ( ligne, case ) in self. fruits _ coords or condition : ligne = random. randint ( 0, map _ size [ 0 ] - 1 ) case = random. randint ( 0, map _ size [ 1 ] - 1 ) condition = false self. fruits _ coords. append ( ( ligne, case ) ) self. fruits _ image...
[ -1.1639084815979004, -0.23094147443771362, 0.5776110291481018, 0.3256339132785797, 0.1121082529425621, 0.8150873780250549, 0.05086834356188774, 0.09354887157678604, 0.43988940119743347, -0.6797006130218506, 0.13698352873325348, -0.6204022765159607, -0.27090829610824585, 0.32639262080192566...
def printstatereport ( listofstates ) : # 1a - create report headers ; format : [ " header title ", header length ] columns = [ [ " state name ", len ( " state name " ) ], [ " capital city ", len ( " capital city " ) ], [ " state abbr ", len ( " state abbr " ) ], [ " state population ", len ( " state population " ) ], ...
[ 0.49313968420028687, 0.025598976761102676, 0.9306687116622925, -0.06204177066683769, -0.35957983136177063, 0.0834621712565422, 0.7630983591079712, -0.7409766912460327, -0.28265655040740967, -0.3349437713623047, 0.047320831567049026, -0.7298839092254639, -0.31580960750579834, 0.511513113975...
def width ( self ) : n = self. text. cols return n * self. char _ width + ( n - 1 ) * self. x _ space
[ 0.16838431358337402, 0.4640132486820221, 0.5251879096031189, 0.23120757937431335, -0.27937257289886475, -0.4372471868991852, 0.17928044497966766, 0.525320291519165, 0.2676307260990143, -0.7147314548492432, -0.3824601471424103, 0.11648918688297272, -0.15355917811393738, -0.17244620621204376...
def getsuccessor ( self, src : int, player1 _ action : int, player2 _ action : int ) - > int : return self. transitions [ ( src, player1 _ action, player2 _ action ) ]
[ -1.0652133226394653, 0.04330965131521225, 0.6021374464035034, 0.3812565505504608, -0.9988499283790588, -0.7133584022521973, 0.2078971415758133, 0.15951918065547943, -0.5562974214553833, 0.43295571208000183, -0.8143798112869263, 0.7665090560913086, 0.26344603300094604, -0.6605808138847351, ...
def printvideo ( entry ) : # print'video title : % s'% entry. media. title. text # print'video watch page : % s'% entry. media. player. url url _ data = urlparse. urlparse ( entry. media. player. url ) query = urlparse. parse _ qs ( url _ data. query ) video = query [ " v " ] [ 0 ] # print'video id is % s'% video retur...
[ 0.5770891904830933, -1.0713783502578735, 0.5739960670471191, 0.25148072838783264, 0.2061866670846939, 0.14563478529453278, -0.41902559995651245, -0.08292222023010254, 1.1656030416488647, -0.028141623362898827, 0.5725768208503723, 1.5184739828109741, -0.4942661225795746, 0.3151228427886963,...
def add _ to _ parent ( self, parent : union [ node, int ], value : str, is _ deleted : bool = false, ) - > node : if isinstance ( parent, node ) : parent _ index = parent. db _ id else : parent _ index = parent try : db _ parent = self. nodes [ parent _ index ] except keyerror : raise valueerror ('{ parent _ index } n...
[ 0.07740672677755356, 0.8301443457603455, 0.49569129943847656, -0.2040170580148697, 0.4429137706756592, 0.05731929838657379, -0.6959400177001953, -0.6482217311859131, -0.11128609627485275, 0.34552323818206787, 0.8049124479293823, 0.6623995304107666, -0.664214015007019, -0.36696693301200867,...
def isvalidinput ( inputstring ) : if len ( inputstring ) = = 0 : return false return true
[ -0.553124725818634, -0.3965579569339752, 0.41225215792655945, 0.23373614251613617, -0.2482544630765915, 1.3258050680160522, -0.1307992786169052, 0.6562122702598572, 0.7369815111160278, -1.4147847890853882, 0.09711857885122299, -0.6269850134849548, -1.5348254442214966, -0.31385689973831177,...
def switch _ to _ openmarket ( self ) : self. mainwindow. openmarket _ controller. setup _ view ( ) self. mainwindow. stackedwidget. setcurrentwidget ( self. mainwindow. openmarket _ page )
[ -0.01739703118801117, 0.13624346256256104, 0.3914150595664978, -0.6024389266967773, -0.13757029175758362, 0.04228294640779495, 0.8750159740447998, 0.5832076072692871, 0.5935103893280029, -0.07520534098148346, 0.7496044635772705, 1.1576247215270996, -0.5373238921165466, 0.47335076332092285,...
def get _ treeview _ data ( self ) : data = [ ] counter = 0 if self. detection _ results is none : for image in self. ct _ scan : data. append ( ( counter, self. get _ slice _ z _ coordinates ( counter ),'nan %') ) counter + = 1 else : for i in range ( 0, self. ct _ scan. shape [ 0 ] ) : coordinates = self. get _ slice...
[ -0.5488582849502563, -0.23182009160518646, 0.46808061003685, 0.2766976058483124, 0.019149674102663994, -0.09062188118696213, 0.18074268102645874, 0.09916049987077713, -0.5898914933204651, -0.416708767414093, 0.41738319396972656, -0.2252027541399002, 0.06184815615415573, 0.39141252636909485...
def get _ feedback ( self, scope _ to ='as - seller') : params = {'includes':'user'} resource ='users / _ _ self _ _ / feedback /'+ scope _ to results = self. get ( resource, params = params ) return results
[ -0.9891475439071655, 0.12133414298295975, 0.38450154662132263, 0.5288183689117432, 0.47826480865478516, -0.8733248710632324, 0.20558515191078186, -0.8840028047561646, 0.3164905607700348, -0.1081065982580185, -0.18210235238075256, 1.6389927864074707, 0.41772931814193726, -0.0824344381690025...
def _ _ str _ _ ( self ) : s = " % s % s " % ( type ( self ), str ( self. as _ dict ( ) ) ) return s
[ -0.6289851665496826, -1.358569860458374, 0.5085920095443726, -1.3030943870544434, -0.322357177734375, 0.19682548940181732, -0.6382392048835754, -0.5456950664520264, 0.1525052934885025, 0.14570879936218262, 0.7443971037864685, 0.789665699005127, 0.39239031076431274, -0.2934175431728363, 0...
def _ compute _ tfr ( self, epoch, freq, tfr _ method ='rls ', window _ width = 1. 2, filter _ lambda = 1. 0 ) : data = epoch. get _ data ( ) if type ( freq ) is not np. ndarray : raise typeerror ('frequencies need to provided in a numpy array.') samplefreq = epoch. info ['sfreq'] n _ window = int ( samplefreq * window...
[ -0.14688733220100403, 0.49998390674591064, 0.9170035123825073, -0.23088906705379486, -0.7090661525726318, -0.8158964514732361, -0.04132744297385216, 0.8360401391983032, -0.3902404010295868, 0.49959510564804077, 0.6973259449005127, 0.2741709351539612, 0.34277841448783875, 1.0151829719543457...
def save _ data _ to _ influxdb ( self, datastream : datastream ) : self. timeseriesdata. save _ data _ to _ influxdb ( datastream )
[ -0.35062718391418457, -0.08140498399734497, 0.07065702974796295, 0.5282433032989502, 0.7922539710998535, 0.5624256134033203, -0.38225486874580383, -0.4291760325431824, -0.15766601264476776, -0.2559475898742676, -1.2127948999404907, 0.20562098920345306, -0.07478085160255432, 0.8285438418388...
def test _ check _ config _ params _ analysis _ mode _ wrong _ type ( gitdelver _ config _ params _ fixture : callable [ [ none ], dict [ str, str ] ] ) : config _ params = gitdelver _ config _ params _ fixture config _ params [ " analysis _ mode " ] = " test " with pytest. raises ( systemexit ) : gitdelver. _ check _ ...
[ -0.02525799348950386, 0.45341259241104126, 0.4230983555316925, 0.7420603036880493, 0.6673161387443542, 1.0951179265975952, 0.5826032161712646, 0.13511355221271515, -0.6052768230438232, 0.9874231815338135, -0.21464908123016357, -0.02600063383579254, -0.06364311277866364, 0.9332982897758484,...
def normalize _ and _ tokenize ( text ) : tokens = word _ tokenize ( text. lower ( ) ) return tokens
[ 0.14738596975803375, -1.0028555393218994, 0.18671855330467224, 0.4842433035373688, -0.5314706563949585, -0.759538471698761, -0.814669132232666, 1.1743510961532593, 0.8435272574424744, 0.06390739232301712, -0.5071567296981812, 0.33871108293533325, -1.283781886100769, 0.8751135468482971, -...
def x _ max ( self ) - > float : return self. nx * self. dx
[ -0.05686367675662041, 1.9206706285476685, 0.32215049862861633, 0.4180661737918854, 0.05077149346470833, -0.21383026242256165, -1.5957952737808228, -0.4553758502006531, 0.2828182876110077, -0.18105213344097137, -0.14759275317192078, 0.1435079127550125, 0.3027787506580353, -1.043899774551391...
def test _ compute _ heavy _ set ( ) : a, b, c = cirq. linequbit. range ( 3 ) model _ circuit = cirq. circuit ( [ cirq. moment ( [ ] ), cirq. moment ( [ cirq. x ( a ), cirq. y ( b ) ] ), cirq. moment ( [ ] ), cirq. moment ( [ cirq. cnot ( a, c ) ] ), cirq. moment ( [ cirq. z ( a ), cirq. h ( b ) ] ) ] ) assert cirq. co...
[ 0.5086811184883118, -0.4378190040588379, 0.436229944229126, -0.5958336591720581, 0.9415242671966553, 0.2910067141056061, 0.07342468202114105, -0.6581273674964905, -0.6525045037269592, -0.2709846496582031, -0.385511577129364, -0.17216214537620544, -0.7427409291267395, 0.2720924913883209, ...
def leaveevent ( self, ev ) : if self. linksenabled and self. _ currentlinkid is not none : self. linkhoverleave ( ) self. _ currentlinkid = none super ( ). leaveevent ( ev )
[ 0.8578385710716248, -0.2934297025203705, 0.46141237020492554, 0.2522970736026764, 0.2690337002277374, 0.45262640714645386, 0.1360757052898407, 0.7269942760467529, 1.0819402933120728, -0.11933060735464096, -0.3172559440135956, -0.23303483426570892, -1.0922991037368774, 1.3668198585510254, ...
def process _ map ( filename ) : keys = { " lower " : 0, " lower _ colon " : 0, " problemchars " : 0, " other " : 0 } for _, element in et. iterparse ( filename ) : keys = key _ type ( element, keys ) return keys
[ -0.8848631978034973, -1.1944853067398071, 0.6001758575439453, -0.38732412457466125, -0.0429014153778553, 0.044173672795295715, -0.24576321244239807, 0.5612775683403015, -0.48821505904197693, 0.4705979824066162, -0.06681355088949203, -1.094988465309143, -0.37319934368133545, 0.1267136782407...
def _ homogenised _ contestants ( self ) : counts = [ c ['count'] for c in self. contestants ] while sum ( counts ) : for index, contestant in enumerate ( self. contestants ) : if counts [ index ] : self. logger. debug ( f " counts : { counts } " ) counts [ index ] - = 1 yield contestant ['function'], contestant ['args...
[ -0.11424858123064041, -0.5099051594734192, 0.47381705045700073, -0.1327189952135086, 0.053350064903497696, 0.16716700792312622, -0.41141900420188904, 0.315787672996521, -0.7481132745742798, 0.23486395180225372, -0.32686540484428406, 0.18495377898216248, 0.15535569190979004, 0.1069033741950...
def is _ ntfs ( stream ) : # get start position to reset after check offset = stream. tell ( ) stream. seek ( offset + 3 ) fs _ type = stream. read ( 8 ) stream. seek ( offset ) if fs _ type = = b'ntfs': return true return false
[ 0.16359519958496094, -0.07835105806589127, 0.4553506374359131, 0.11816690862178802, -0.23392228782176971, -0.6304225325584412, 0.20156043767929077, -0.9119254350662231, 0.3522956669330597, 0.25157812237739563, 0.026893330737948418, -0.028894688934087753, -0.919379711151123, -0.107134908437...
def get _ lam _ by _ label ( self, label ) : # prepare error message just in case err _ msg = ( f "'{ label }'is not a valid input argument for label. " + " only'stator _ x'or'rotor _ x ', with x the index, are accepted. " ) # split the label components lam _ str = label. split ( " _ " ) # if no index is provided appen...
[ -0.6258146166801453, -0.08385642617940903, 0.63886958360672, -0.11877403408288956, -0.27082565426826477, 0.5183607339859009, -0.5057613849639893, -0.5833167433738708, 0.538034975528717, 0.03135042265057564, 1.0533944368362427, 0.4999324679374695, -0.8553968071937561, -0.36922264099121094, ...
def offsetposition ( in _ ra, in _ dec, delta _ ra, delta _ dec ) : ra = in _ ra dec = in _ dec + delta _ dec if dec > 90. : dec = 180 - dec ra = 180 + ra if dec < - 90. : dec = - 180 - dec ra = 180 + ra ra = ra + delta _ ra if ra > 360. : ra = ra - 360. if ra < 0. : ra = ra + 360. return ra, dec
[ -0.06852131336927414, -0.9985511302947998, 0.743244469165802, -1.4369689226150513, -0.36118024587631226, 0.8210563659667969, 0.5857042074203491, -0.0007777328719384968, -0.5849581956863403, -0.3027283549308777, 0.08784698694944382, -0.1332797408103943, -0.4451748728752136, -0.6240237951278...
def name ( self ) : return self. _ name. rstrip ( )
[ 0.25763335824012756, -0.8460565805435181, 0.4665127992630005, -0.6742066740989685, -0.5028101205825806, 1.1299197673797607, -0.8189957141876221, -1.0296357870101929, -0.04275372624397278, 0.4394751787185669, -0.5259736180305481, 0.2697414755821228, 0.03871564939618111, -0.5174093246459961,...
def callback ( ) : try : executor. execute ( ['kops ','validate ','cluster ','- - state ', state ] ) except runtimeerror : return false return true
[ 0.0742260292172432, 0.6396637558937073, 0.5539467334747314, 0.39034777879714966, 0.17136897146701813, 0.07024037837982178, -0.2745692729949951, -0.06966666877269745, 0.3657599091529846, 0.15027864277362823, 0.6663952469825745, -0.6139963269233704, -0.6361587047576904, -0.7523307204246521, ...
def service _ get _ all _ by _ topic ( context, topic ) : return impl. service _ get _ all _ by _ topic ( context, topic )
[ 0.043828971683979034, 0.25896957516670227, 0.3297635316848755, 0.5829126834869385, 0.5759164094924927, -0.21567347645759583, -0.43610820174217224, -1.0375605821609497, -0.35534679889678955, -0.1252652108669281, 0.890748918056488, 0.024275286123156548, 0.0475781187415123, 0.3331314921379089...
def _ get _ multiplier ( self ) - > float : relative _ to _ threshold = probability _ is _ above _ or _ below ( self. cube ) if relative _ to _ threshold = = " above " : multiplier = 1. 0 elif relative _ to _ threshold = = " below " : multiplier = - 1. 0 else : raise valueerror ( " input cube must contain probabilities...
[ -0.8423112034797668, -0.31494489312171936, 0.785759687423706, 0.29872438311576843, -0.4058389365673065, 0.5426444411277771, -0.027190212160348892, -0.21865881979465485, -0.5022363662719727, -0.226284921169281, 0.2851628363132477, -0.03592653572559357, -0.7250708341598511, 0.829686582088470...
def _ attributes _ t _ call _ cb ( self, key, val ) : # make sure interface is ready to use d = self. _ attributes _ t _ init ( key ) # avoid recursion if d ['attributes'] [ key ] ['recursion'] : return callbacks = d ['attributes'] [ key ] ['callbacks'] # iterate over a copy of the callback list, so that remove does no...
[ -0.008774325251579285, 0.47843074798583984, 0.5871515274047852, -0.19386105239391327, -0.6562525033950806, -0.620129406452179, 0.029190897941589355, -0.6044564247131348, 0.14431124925613403, 0.91097092628479, 0.2619190514087677, -0.46922600269317627, -0.4537985622882843, 1.0125008821487427...
def siblings _ spacing ( self ) : status = true query ='select fam. chil from fam where fam. chil! = " na "'siblings = self. tool. query _ info ( query ) for sibling in siblings : sib = sibling [ 0 ]. split ( ) if len ( sib ) > 1 : for a in sib : for b in sib : birth _ a = self. tool. get _ birthday ( a ) birth _ b = s...
[ 0.48009780049324036, 0.11767375469207764, 0.7852188348770142, 0.6884694695472717, -0.614223062992096, 0.8805652260780334, 0.6555729508399963, -0.23675544559955597, -0.15746009349822998, -0.25997844338417053, -0.26490670442581177, 0.027729259803891182, -0.6345247626304626, 1.187587141990661...
def train ( args : argparse. namespace ) : # convert to paths if args. examples : args. examples = path ( args. examples ) if args. intent _ graph : # load intent graph from file args. intent _ graph = path ( args. intent _ graph ) with open ( args. intent _ graph, " r " ) as graph _ file : graph _ dict = json. load ( ...
[ -0.5274717211723328, 0.3982205092906952, 0.9993612170219421, -0.055842362344264984, -0.018453821539878845, -0.6356876492500305, 1.2909280061721802, 0.023937812075018883, -0.24196580052375793, 0.4897470474243164, -0.2501731514930725, -0.07652048021554947, -0.10891944169998169, 0.38802915811...
def _ normalize _ personid ( self, personid ) : try : return int ( personid ) except ( valueerror, overflowerror ) : raise imdberror,'personid " % s " can \'t be converted to integer'% \ personid
[ -0.3825819194316864, -0.6733859181404114, 0.10818140208721161, -0.44378942251205444, -1.2938566207885742, 0.20155492424964905, -0.047197967767715454, -0.018937822431325912, 0.7065262794494629, 0.06777859479188919, 1.02040696144104, 0.07574810087680817, -1.4472392797470093, 0.96394425630569...
def test _ 507 _ kruskal _ matched _ single _ empty _ vector ( self ) : np. random. seed ( 987654321 ) x _ parms = [ 1. 7 ] x _ input _ array = st. weibull _ min. rvs ( * x _ parms, size = 100 ) y _ input _ array = [ " one ", " two ", " three ", " four ", " five " ] z _ input _ array = st. weibull _ min. rvs ( * x _ pa...
[ -0.09734051674604416, -0.19118186831474304, 0.52751624584198, -0.3521314263343811, 0.1782345026731491, 0.8162295818328857, 1.1642954349517822, -0.10090116411447525, 0.0355660617351532, -0.2967129945755005, 0.10530690103769302, 0.5033068656921387, -0.6126016974449158, 1.0002920627593994, ...
def setinputs ( self, * * inputs ) : # to support both upper and lower case for key in inputs : if key. lower ( ) = ='s': # to support both numerical values or connector instances if isinstance ( inputs [ key ], connector ) : self. s = inputs [ key ] else : self. s. state = int ( inputs [ key ] ) elif key. lower ( ) = ...
[ -0.556428074836731, -0.5391691327095032, 0.8941742181777954, 0.12638705968856812, -0.4707576334476471, 0.7598743438720703, 0.32188040018081665, -0.15581832826137543, -0.15320512652397156, -0.29116711020469666, 0.06483835726976395, 0.26966673135757446, -0.26412928104400635, 0.61225533485412...
def check _ filepath ( checked _ deleted, dry _ run, filepath, references ) : try : from traxit _ manage. settings import audio _ filetypes _, _, fileextension = split _ dir _ file _ ext ( filepath ) assert ( fileextension. lower ( ) in audio _ filetypes ) track = track ( filepath = filepath, generate _ id = true ) ref...
[ 0.6596338748931885, -0.29118141531944275, 0.5722842812538147, -0.5930069088935852, 0.6984753608703613, 0.8800087571144104, 0.5397225022315979, -0.5151233673095703, -0.29158908128738403, 0.8283581137657166, 0.627269983291626, 0.29336535930633545, -0.7744567394256592, 0.19212307035923004, ...
def clean _ country ( self ) : value = self. cleaned _ data ['country'] if value : value = value. upper ( ) return value
[ -0.09615693241357803, -0.32009899616241455, 0.4048921465873718, 0.2870739698410034, -0.10902576148509979, 1.1689717769622803, 0.2097201645374298, -0.3189193606376648, -0.15516677498817444, 0.7485553026199341, 0.8936090469360352, 0.5517388582229614, -0.7724078297615051, 0.5839808583259583, ...
def get _ auth _ mgr ( ) : global thread _ local if not hasattr ( thread _ local,'_ auth _ mgr') : try : thread _ local. _ auth _ mgr = auth _ data. authorizationdatamanager ( ) thread _ local. _ auth _ mgr. connect ( ) except ( auth _ data. dbconnectionerror, auth _ data. dbaccesserror, auth _ data. dbupgradeerror ) a...
[ -0.4232769012451172, -0.25812435150146484, 0.6843981742858887, -0.3358688950538635, -0.044408105313777924, -0.42132383584976196, -0.387077659368515, -0.46653270721435547, 0.09963695704936981, -0.31862005591392517, 0.19074173271656036, 0.09624676406383514, -0.20540779829025269, 0.5067955851...
def are _ scheduled ( self, nodes _ to _ run ) : # if there is more than one instance of workflow processor running # additional ones should finish immediately # as only one of them is needed to push the workflow forward. # in most cases such situation can be detected when task which is # about to be scheduled is alrea...
[ -1.2034025192260742, -0.3362361788749695, 0.49821290373802185, -0.1917227804660797, 0.12537305057048798, -0.5156141519546509, -0.2720346450805664, -0.037845171988010406, -0.7603443264961243, 1.0564699172973633, -0.4624546766281128, 0.2177123725414276, 0.15003186464309692, 0.074508868157863...
def is _ valid ( input _ text ) : if input _ text. strip ('' ) = ='' : return true # check for only numbers and symbols : word _ tokens = word _ tokenize ( input _ text ) for word in word _ tokens : if word. isalpha ( ) : return true else : return false
[ 0.25282585620880127, -0.20208212733268738, 0.3796055018901825, 0.13412675261497498, -0.8298724293708801, 1.0863957405090332, -0.3653026521205902, 1.371358871459961, 0.7443717122077942, -0.22666576504707336, 0.113374724984169, -0.06279062479734421, -1.1822746992111206, 1.0666842460632324, ...
def distance _ between ( self, agent ) : dy = self. _ y - agent. _ y dx = self. _ x - agent. _ x return ( ( dx * * 2 + dy * * 2 ) * * 0. 5 )
[ 0.0575682558119297, -0.9809883832931519, 0.27108320593833923, -0.5535169243812561, -0.2025630623102188, 0.6471743583679199, 0.12016642093658447, -0.6355754733085632, 0.9911837577819824, 0.14487896859645844, -0.04128851369023323, 0.05744357407093048, -0.028794443234801292, -0.08855426311492...
def numopensquares ( self ) : return self. _ opensquares
[ -0.9303885698318481, -0.439718097448349, 0.6283389329910278, -0.4627511203289032, -0.961757242679596, 0.4061617851257324, 1.1777992248535156, 0.031110793352127075, 0.9601405262947083, -1.0021809339523315, -0.7622082829475403, -0.09680851548910141, 0.08184465020895004, -0.4924415051937103, ...
def normalize ( s ) : def remove _ articles ( text ) : return re. sub ( r'\ b ( a | an | the ) \ b ','', text ) def white _ space _ fix ( text ) : return''. join ( text. split ( ) ) def remove _ punc ( text ) : exclude = set ( string. punctuation ) return''. join ( ch for ch in text if ch not in exclude ) def lower ( t...
[ 0.49278524518013, -0.49231022596359253, 0.4193210303783417, -0.7578283548355103, -1.1103895902633667, -0.8019551038742065, 0.14602912962436676, 0.6218991279602051, 0.6896966099739075, -0.001387396245263517, 0.11165063828229904, -0.4637167751789093, -0.5755435824394226, -0.1541069895029068,...
def get _ candidate _ rels ( entry, summ, all _ ents, prons, players, teams, cities, connect _ multiwords = false, filter _ none = false, ) : sents = sent _ tokenize ( summ ) for j, sent in enumerate ( sents ) : # tokes = word _ tokenize ( sent ) tokes = sent. split ( ) ents = extract _ entities ( tokes, all _ ents, pr...
[ 0.03264670446515083, -0.4224613904953003, 0.5856868028640747, -0.5241820216178894, -0.20005784928798676, -0.6834208369255066, 0.13407249748706818, 0.8679425716400146, 0.6478032469749451, 0.3447740972042084, 0.2445712834596634, 0.08034111559391022, -0.26462432742118835, -0.240891695022583, ...
def write _ bit16 ( data ) : return pack ('h ', data ) [ 1 ]
[ 0.12848064303398132, 0.39231473207473755, 0.40821537375450134, -0.03689961135387421, 0.5815832018852234, 0.44093459844589233, -0.3409387469291687, -0.8459128141403198, 0.13397738337516785, -0.0902661457657814, -0.552995502948761, 0.330104798078537, -1.0167700052261353, -0.5160729289054871,...
def reset ( self ) : # print " resetted selectionlist " * 30 self. selectedlist. reset ( )
[ -0.977959394454956, -0.5727782249450684, -0.06723792105913162, 0.009302983991801739, 0.9972586631774902, 0.23504935204982758, 0.20248349010944366, 0.2406986951828003, 0.5118290185928345, 0.07666368037462234, -1.041813850402832, 1.1713954210281372, -0.5164015293121338, 0.23657070100307465, ...
def calculate _ iou ( geom, match ) : intersection = geom. intersection ( match ). area union = geom. union ( match ). area iou = intersection / float ( union ) return iou
[ 0.12026210129261017, -0.28897571563720703, 0.5822853446006775, -0.24854359030723572, -0.367534875869751, 0.0035080132074654102, 0.7264366149902344, 0.7717458605766296, -0.09894836694002151, 0.6663767695426941, 0.8993278741836548, -0.31841444969177246, -0.5894160270690918, -1.54133176803588...
def libtech _ queue _ worker ( logger, job _ queue, result _ queue ) : name = threading. currentthread ( ). getname ( ) while true : obj = job _ queue. get ( ) if obj is none : break func _ name = obj ['func _ name'] func _ args = obj ['func _ args'] logger. info ( f " queuesize { job _ queue. qsize ( ) } thread { name...
[ -0.15783242881298065, -0.6659649014472961, 0.8450838327407837, -0.32060539722442627, 0.33259180188179016, -0.5657200813293457, -0.20867282152175903, -0.47450530529022217, -1.0203207731246948, -0.3378986716270447, -0.8066776990890503, -0.3262512981891632, 0.26970914006233215, 0.525986135005...
def write _ rdf ( msdf : mappingsetdataframe, file : textio, serialisation : optional [ str ] = none, ) - > none : if serialisation is none : serialisation = sssom _ default _ rdf _ serialisation elif serialisation not in rdf _ formats : logging. warning ( f " serialisation { serialisation } is not supported, " f " usi...
[ 0.2855449616909027, 0.03631369024515152, 0.5107033848762512, -0.42722800374031067, -0.03594941273331642, 0.02888440527021885, 0.26564645767211914, 0.7020551562309265, 0.18404702842235565, -0.17099925875663757, 0.12154045701026917, 0.5866299271583557, -0.2584289610385895, -0.512717068195343...
def _ mangle _ name ( internal _ name, class _ name ) : return " _ % s % s " % ( class _ name. lstrip ('_'), internal _ name )
[ -0.9003422856330872, -0.7081478238105774, 0.7561193108558655, -1.5272274017333984, -0.599590539932251, 0.22100022435188293, -1.5550289154052734, 0.32548654079437256, -0.5304775834083557, 0.4348165690898895, 0.15340954065322876, -0.19276119768619537, 0.6266676783561707, 0.2732463777065277, ...
def validateconfig ( self, config ) : # # ( boolean with the result of the validation, eventual error message ) return true, " valid configuration "
[ -0.9572675824165344, -0.012000158429145813, 0.5966535210609436, 0.6705489158630371, -0.546409010887146, 0.6502835154533386, 0.6076894998550415, 0.893336296081543, -0.025996800512075424, -0.07782270014286041, -0.7144542336463928, -1.2328295707702637, -1.0001273155212402, 0.5946894288063049,...
async def get _ payloadtype _ commands ( self, payload _ type : union [ payloadtype, dict ] ) - > mythicresponse : url = " { } { } : { } / api / v { } / payloadtypes / { } / commands ". format ( self. _ http, self. server _ ip, self. _ server _ port, self. _ server _ api _ version, str ( payload _ type. id if isinstanc...
[ -0.7047961950302124, 0.06352812051773071, 0.7869536876678467, -0.2631838321685791, 0.9831628203392029, -1.3740229606628418, -0.7534354329109192, -1.4743382930755615, 0.4942637085914612, -0.15328635275363922, 0.09487572312355042, 0.3970295190811157, 0.1200387179851532, 1.264657735824585, ...
def switch _ to _ profile ( self ) : self. mainwindow. profile _ controller. setup _ view ( ) self. mainwindow. stackedwidget. setcurrentwidget ( self. mainwindow. profile _ page )
[ 1.027406930923462, 0.28468504548072815, 0.455614298582077, -0.009992196224629879, 0.55379319190979, 0.06528273224830627, 1.0252045392990112, 0.4169451594352722, -0.0497942753136158, 0.6077612638473511, 0.16473469138145447, 0.6990852952003479, -0.30076971650123596, 0.3939545452594757, -0....
def search _ field ( self, * * kwargs ) : data = self. _ optional _ variable ( kwargs, ['type ','id ','query ','orderby ','expand'] ) return self. _ raw _ execution ( path ='/ field / search ', data = data )
[ -1.3000909090042114, 1.587005615234375, 0.4088417887687683, 0.3555135726928711, 0.9172930717468262, 0.08448759466409683, -0.2551968991756439, -1.4644689559936523, -0.447773277759552, -0.33524051308631897, -0.12726686894893646, -0.04171612486243248, -1.3417291641235352, -0.9003868699073792,...
def make _ tree ( self ) : folders = next ( os. walk ( self. path ) ) [ 1 ] folder _ labels = [ ] folder _ values = [ ] files = next ( os. walk ( self. path ) ) [ 2 ] file _ labels = [ ] file _ values = [ ] for folder in folders : folder _ path = os. path. join ( self. path, folder ) folder _ labels. append ( folder ) ...
[ -0.13233114778995514, 0.25353625416755676, 0.7306715250015259, -1.3661729097366333, -0.025929920375347137, 0.5972902774810791, 0.7746233940124512, -0.10195008665323257, -0.8224424123764038, -0.3603402078151703, -0.09769929200410843, -0.2927784323692322, 0.018093090504407883, 0.881340980529...
def get _ variables ( ) : # get instance of variablesoperations class variables _ operations = variablesoperations ( ) # get instance of parametermap class param _ instance = parametermap ( ) # possible parameters of get variables operation param _ instance. add ( getvariablesparam. group,'general') # call get _ variab...
[ -0.6638679504394531, -0.3800983130931854, 1.0354580879211426, -0.05328331142663956, 0.5228559374809265, -0.3587992191314697, 0.30936750769615173, -0.7449994683265686, -0.39153754711151123, -0.06976734846830368, 0.2721713185310364, 0.9016202092170715, -1.0534086227416992, 0.1222008615732193...
def private _ ip _ address ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " private _ ip _ address " )
[ -0.41763123869895935, -0.13792818784713745, 0.45411011576652527, 0.4831298291683197, 0.5034053325653076, 0.5941404700279236, 0.5181093215942383, -0.4025712013244629, 1.163596749305725, -0.8093266487121582, 0.2200212925672531, 0.4818001687526703, -0.47154998779296875, -1.434999942779541, ...
def deconnexionauserveur ( ftp ) : ftp. quit ( )
[ 0.5841596722602844, -0.6648694276809692, 0.34791263937950134, -0.11630894243717194, -0.06915265321731567, 0.6937060952186584, 0.27295756340026855, -0.7636580467224121, -0.46701279282569885, -0.3321542739868164, 0.1693897545337677, 0.4802273213863373, -0.8353548645973206, -1.327307105064392...
def _ _ eq _ _ ( self, other ) : if not isinstance ( other, buildinfo ) : return false return self. _ _ dict _ _ = = other. _ _ dict _ _
[ -0.41343972086906433, -0.9466111063957214, 0.6080330014228821, -0.15756630897521973, 0.10016518086194992, 1.170795202255249, 0.11197522282600403, -0.23165826499462128, 0.487237811088562, -0.45980170369148254, -1.1384594440460205, -0.0033394484780728817, -0.3474421799182892, -0.141316235065...
def config _ digest _ signed _ canonical ( request ) - > formattedsha256 : return formattedsha256. parse ( get _ test _ data ( request, _ _ name _ _, " config _ signed _ canonical. json. digest ", " r " ) )
[ -1.0311177968978882, -1.1672533750534058, 0.4083545506000519, 0.12839221954345703, -0.025843631476163864, -0.13796257972717285, 0.23219481110572815, -0.2788897454738617, 0.19241397082805634, 0.44006019830703735, 0.5298576951026917, 0.26633405685424805, 0.4390823245048523, 0.017672002315521...
def backpropagation ( self, x, gradient ) : w, b, y = self. delta _ wb ( x, gradient ) w = w / x. shape [ 0 ] b = b / x. shape [ 0 ] return self. apply _ wb ( w, b, y )
[ 0.05485662445425987, 0.31070029735565186, 0.7693489193916321, 0.6893686056137085, -0.6571847200393677, 0.2356957346200943, 0.4844529926776886, -0.22191660106182098, -0.2130253165960312, 1.0973576307296753, -0.19238214194774628, -0.1328614056110382, -1.0051697492599487, -0.5294959545135498,...
def sender _ id ( self ) : warnings. warn ( "'sender _ id'is deprecated. ", deprecationwarning, stacklevel = 2 ) raise notimplementederror
[ 0.31780171394348145, -0.08830559253692627, 0.543509840965271, 0.6446372866630554, -0.2719985842704773, -0.48835811018943787, -0.22590097784996033, 0.327828049659729, -0.39912664890289307, 0.045757751911878586, -0.7919425368309021, 0.1971423625946045, 0.2951836585998535, 1.275531530380249, ...
def g _ inv _ mat ( x, mode, nt, gs, gd _ vec, bas _ flag = true, c1 _ flag = true ) : if mode = = 1 : b = lfilter ( np. array ( [ 1 ] ), np. concatenate ( [ np. array ( [ 1. ] ), - gs ] ), x [ : nt ] ) + bas _ flag * x [ nt - 1 + bas _ flag ] + c1 _ flag * gd _ vec * x [ - 1 ] elif mode = = 2 : b = np. hstack ( ( np. ...
[ 0.23998162150382996, 0.3648112416267395, 0.8120937943458557, -0.43705812096595764, -0.11316216737031937, 1.5743882656097412, 0.3070675730705261, -0.21521659195423126, -1.2247027158737183, 0.6852995753288269, -0.08527401834726334, 0.7478179335594177, -0.23869214951992035, -0.425747901201248...
def read _ parquet ( file : union [ str, binaryio ], stop _ after _ n _ rows : " optional [ int ] " = none, use _ pyarrow = false, ) - > " dataframe " : if use _ pyarrow : if stop _ after _ n _ rows : raise valueerror ( " stop _ after _ n _ rows can not be used with'use _ pyarrow = = true'" ) tbl = pa. parquet. read _ ...
[ 0.022214574739336967, 0.43231743574142456, 0.6364139318466187, 0.7692667245864868, -0.8341471552848816, 0.01678565889596939, 0.6061826944351196, -0.23975996673107147, -0.6751343011856079, -0.4604618549346924, 0.46710148453712463, -0.341900497674942, 0.24960778653621674, -0.6524457931518555...