text
stringlengths
25
2.19k
embedding
listlengths
768
768
def test _ scale _ pvcs _ pods ( self ) : scale _ count = 6000 pvcs _ per _ pod = 20 try : # scale fioscale = fiopodscale ( kind = constants. deploymentconfig, node _ selector = constants. scale _ node _ selector, ) kube _ pod _ obj _ list, kube _ pvc _ obj _ list = fioscale. create _ scale _ pods ( scale _ count = sca...
[ -0.43771854043006897, -1.0510810613632202, 0.8371428847312927, -0.10092127323150635, 0.8638754487037659, 0.5965324640274048, -0.11365421116352081, -0.8429692387580872, -0.5597141981124878, 0.7084789872169495, -0.08634228259325027, 0.06795021146535873, 0.374590665102005, 0.32044100761413574...
def prepareupdate ( self ) : review _ file = reviewfile. reviewfile ( self. _ active _ branch ) if not review _ file. exists ( ) : print ('review file missing for branch : { 0 : s } '. format ( self. _ active _ branch ) ) # yapf : disable return false self. _ codereview _ issue _ number = review _ file. getcodereviewis...
[ 0.26247110962867737, -0.6652071475982666, 0.6901907324790955, -0.23179705440998077, -0.2620549201965332, 0.5430609583854675, -0.5165486931800842, 0.4889584481716156, -1.1076196432113647, -0.1716846525669098, -0.10483985394239426, -1.0038642883300781, -0.4353826940059662, -0.117220655083656...
def train _ test _ split _ pt ( * tensors, test _ size = 0. 2 ) : first = tensors [ 0 ] if isinstance ( test _ size, float ) : test _ size = int ( first. shape [ 1 ] * test _ size ) perm = torch. randperm ( first. shape [ 1 ] ) train _ perm = [ ] test _ perm = [ ] for t in tensors : t _ perm = t [ :, perm ] train _ per...
[ -0.2530911862850189, -0.07034143805503845, 0.6252380013465881, 0.057659756392240524, -0.35454824566841125, 0.003987645730376244, 1.1140811443328857, 0.3695381283760071, 0.42117252945899963, 1.0077717304229736, 0.16267868876457214, -0.5522655844688416, -0.8833745121955872, -0.92462533712387...
def dectodms ( degreedecimal ) : minutes, seconds = divmod ( degreedecimal * 3600, 60 ) degrees, minutes = divmod ( minutes, 60 ) return degrees, minutes, seconds
[ -0.8660671710968018, 0.3150542080402374, 0.556384801864624, -0.9405718445777893, -0.2143610566854477, -0.330005407333374, -1.0543127059936523, -1.1455992460250854, -0.4841561019420624, -0.31527701020240784, -0.5767230987548828, 0.08218537271022797, 0.1527843475341797, 0.014110641553997993,...
def _ _ init _ _ ( self, jar _ path, input _ data _ path, output _ data _ path ) : self. _ jar _ path = jar _ path self. _ input _ data _ path = input _ data _ path self. _ output _ data _ path = output _ data _ path self. _ check _ output _ folder ( ) self. clear _ output _ folder ( )
[ -0.32105451822280884, -0.4392350912094116, 0.24009586870670319, 0.90020352602005, -0.45481863617897034, 0.14396129548549652, 0.9561243653297424, -0.20882093906402588, -1.0626306533813477, -0.32576102018356323, 0.3400930166244507, 0.28273332118988037, -0.2704291045665741, -0.190601989626884...
def below ( self, ref ) : if not self. _ valid _ ordering _ reference ( ref ) : raise valueerror ( " % r can only be moved below instances of % r which % s equals % r. " % ( self, self. _ _ class _ _, self. order _ with _ respect _ to, self. _ get _ order _ with _ respect _ to ( ) ) ) if self. order = = ref. order : re...
[ -0.07156118750572205, 0.6429991126060486, 1.0048526525497437, 0.20241016149520874, -0.23378334939479828, 0.31110963225364685, 0.30934831500053406, -1.5976306200027466, 0.16975900530815125, 0.16822567582130432, 0.516799807548523, 1.1233272552490234, -0.5591511726379395, 0.6981667280197144, ...
def just _ finish _ exploring ( bot : bot ) - > bool : return " i finished exploring " in get _ latest _ journal _ entry ( bot )
[ -0.12490477412939072, 0.06868068128824234, 0.3803446888923645, 0.2581283450126648, 0.24497327208518982, 0.21239414811134338, -0.7084421515464783, -0.5501723289489746, -0.26220381259918213, 0.3872597813606262, 0.17348839342594147, -0.24968990683555603, -0.10117161273956299, 0.53064012527465...
def test _ id ( sid ) : sid = sid. strip ( ) if len ( sid ) = = 0 : return false if'a'< = sid [ 0 ]. lower ( ) < ='z'or sid [ 0 ] = ='_': for i in range ( 1, len ( sid ) ) : if not ('a'< = sid [ i ]. lower ( ) < ='z'or'0'< = sid [ i ]. lower ( ) < ='9'or sid [ i ]. lower ( ) = ='_') : return false return true else : re...
[ -0.2442806512117386, -0.7591710686683655, 0.5599442720413208, -0.5543709397315979, -0.6598556041717529, 0.14217904210090637, -0.2898905575275421, -0.6294918060302734, 1.486351728439331, -0.12269213795661926, -0.6985213160514832, 0.030145904049277306, -0.9716175198554993, 0.5685378313064575...
def deserialize _ numpy ( self, str, numpy ) : if python3 : codecs. lookup _ error ( " rosmsg " ). msg _ type = self. _ type try : if self. pose is none : self. pose = geometry _ msgs. msg. pose ( ) end = 0 _ x = self start = end end + = 69 ( _ x. road _ id, _ x. section _ id, _ x. lane _ id, _ x. is _ junction, _ x. p...
[ 0.401981383562088, -0.46893078088760376, 0.6842210292816162, -0.5479980707168579, 0.06412792205810547, 0.13944384455680847, 0.33925995230674744, -0.530759871006012, 0.07777629047632217, -0.5470116138458252, -0.08083084225654602, -0.07508332282304764, -0.8681431412696838, -0.496404856443405...
def sklearn _ eval ( watched _ dir, file _ watchdog _ waittime _ seconds, eval _ dir, max _ error _ count, baseline _ score _ eval, baseline _ score _ test ) : logging. info ('watched _ dir : % s ', watched _ dir ) if not tf. io. gfile. exists ( watched _ dir ) : tf. io. gfile. makedirs ( watched _ dir ) writer = tf. s...
[ 0.4018731117248535, 0.13125966489315033, 0.7622641324996948, 0.3990826904773712, 0.7791903614997864, 0.1846366971731186, 0.9145200252532959, 0.032521042972803116, -0.6902233958244324, 0.363859623670578, 0.08430752158164978, 0.5720372796058655, 0.6408826112747192, 0.20357753336429596, -0....
def import _ task _ choice _ event ( self, session, task ) : if task. choice _ flag = = action. asis and not self. warned : self. _ log. warn ( u'cannot zero in \ " as - is \ " mode') self. warned = true # todo request write in as - is mode
[ 0.30501049757003784, -0.4001549184322357, 0.7407094240188599, 1.1783602237701416, 0.5029256343841553, 0.38884761929512024, 0.6227779388427734, -0.7947244644165039, 0.5847054123878479, 1.2661076784133911, 0.24535058438777924, 0.4969444274902344, 0.9575481414794922, 0.16700705885887146, -0...
def import _ data ( job _ year, path ) : try : connection = pyodbc. connect ( " { } { } ". format ( conf. oracle _ connection _ url _ et, conf. oracle _ connection _ params _ et ) ) if not verify _ datemodified ( connection, job _ year ) : return print ( " reading ohl data..... " ) ohl _ data = pd. read _ sql ( ohl _ s...
[ 0.02282450534403324, 0.15709500014781952, 0.9039216041564941, -0.7268698811531067, 0.06339539587497711, 0.3426043689250946, 0.269552081823349, 0.16643406450748444, -0.3186422288417816, -0.10182267427444458, -0.1725739985704422, 0.25037693977355957, 0.5250583291053772, -0.33458009362220764,...
def init ( self ) : # current step of the automation ( 0 index ) self. _ current _ step = 0 # true if current step delay finished self. _ delay _ complete = false # true if current step is completed and delay done self. _ step _ complete = false # true if step triggered to advanced self. _ step _ triggered = false # th...
[ -0.5127145051956177, -0.2478194683790207, 0.5818719267845154, 0.35447850823402405, 0.5593189001083374, 0.23800313472747803, 0.4057728350162506, 0.36652031540870667, -0.9630231261253357, -0.3787204623222351, -0.8355987668037415, -0.4117376506328583, 0.1898358017206192, 1.5527769327163696, ...
def get _ node _ filtered _ subgraph _ view ( graph : nx. graph, query _ params : " graphqueryparams " ) - > nx. graph : def filter _ node _ by _ equality ( node _ name ) : res = graph. nodes [ node _ name ]. get ( query _ params. label ) \ = = query _ params. value return res def filter _ node _ by _ inclusion ( node ...
[ 0.2778059244155884, 1.1306023597717285, 0.6181553602218628, -0.11985611915588379, -0.4452495872974396, 0.546868622303009, 0.19478671252727509, 0.14177095890045166, 0.2272779494524002, 0.30058205127716064, 0.6992887854576111, 1.0758519172668457, 0.1455022245645523, -0.7829434871673584, -1...
def directory ( self, directory ) : self. _ directory = directory
[ -1.1295802593231201, 0.19049832224845886, -0.28413766622543335, 0.1448829174041748, -0.14658215641975403, 0.381639689207077, 0.36555686593055725, 0.49388033151626587, 0.13761508464813232, -1.044708013534546, -0.6532317399978638, 0.2557714283466339, 0.4409613609313965, 1.2585971355438232, ...
def test _ atomic _ hex _ binary _ max _ length _ 2 _ nistxml _ sv _ iv _ atomic _ hex _ binary _ max _ length _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / hexbinary / schema + instance / nistschema - sv - iv - atomic - hexbinary - maxlength - 3. xsd ", instance ...
[ 0.2779179811477661, 0.038478102535009384, 0.3852420449256897, 0.8364591598510742, -0.30729007720947266, 0.6976626515388489, -1.257789134979248, 0.2903381288051605, 0.155572310090065, 0.6377098560333252, -0.6916112899780273, -0.2778927981853485, 0.12463681399822235, 0.12230534106492996, 0...
def sudo _ check ( ) : if os. getuid ( )! = 0 : msg ='this script needs to be executed with sudo'raise iceerror ( msg )
[ 0.32841920852661133, 0.3990819454193115, 0.6070033311843872, 1.4263354539871216, 0.6972751021385193, 0.737970232963562, 0.12631499767303467, 1.445192813873291, -1.0893261432647705, -0.2817557156085968, 0.31464600563049316, 0.5334990620613098, -0.13171488046646118, 0.8364098072052002, -0....
def add _ extras _ for _ mdata ( event, utm _ source ) : tz = pytz. timezone ( event [ " timezone " ] ) for timeslot in event [ " timeslots " ] : local _ timestamp = _ _ timestamp _ to _ datetime _ in _ zone ( timeslot [ " start _ date " ], tz ) timeslot [ " formatted _ time " ] = _ _ format _ event _ start _ date _ an...
[ -0.6773242950439453, 0.08013362437486649, 0.7019799947738647, -0.6581093072891235, -0.6148610711097717, 0.39681100845336914, -0.596827507019043, 0.7421960830688477, 0.5875041484832764, 0.8980056047439575, 0.20411740243434906, 0.19373704493045807, 0.9943578243255615, 1.0758745670318604, 0...
def test _ find _ controller _ non _ convex ( ) : # continuous state space cont _ state _ space = pc. box2poly ( [ [ 0., 1. ], [ 0., 2. ] ] ) # system dynamics ( continuous state, discrete time ) : simple double integrator # but no reversing. h = 1. 0 a = np. array ( [ [ 1. 0, h ], [ 0., 1. 0 ] ] ) b = np. array ( [ [ ...
[ 0.5940191745758057, -0.4382396638393402, 0.9223397970199585, 0.2426782101392746, 0.75059974193573, 0.009484346956014633, 0.2673654854297638, -0.5346278548240662, 0.27029410004615784, -0.8575819730758667, -0.051450975239276886, -0.21431468427181244, 0.058777183294296265, -0.1230375543236732...
def charge _ port _ latch ( self ) - > str : return self. _ vehicle _ data. get ( " charge _ state ", { } ). get ( " charge _ port _ latch " )
[ 1.1556625366210938, -0.6557726263999939, 0.30042165517807007, 0.026828868314623833, 0.6468996405601501, 1.5419540405273438, -0.28108716011047363, -0.9187822937965393, 0.09063983708620071, -0.13404516875743866, 0.08839203417301178, 1.0056710243225098, 0.24808663129806519, -0.312522798776626...
def value ( self, items : bundle ) - > float : return sum ( [ self. item _ value ( item ) for item in items ] )
[ -0.10288792848587036, -0.20318840444087982, 0.40104442834854126, 0.4653015434741974, 1.124046802520752, 0.13171406090259552, -0.22886064648628235, 0.1842258870601654, -0.7383456230163574, 0.4285781681537628, -0.6316016316413879, -0.9785161018371582, 0.3093046545982361, 0.6240084171295166, ...
def add _ device _ notification ( self, name, plc _ datatype, callback ) : attr = pyads. notificationattrib ( ctypes. sizeof ( plc _ datatype ) ) with self. _ lock : try : hnotify, huser = self. _ client. add _ device _ notification ( name, attr, self. _ device _ notification _ callback ) except pyads. adserror as err ...
[ -0.2665572762489319, 0.7348533868789673, 0.45323362946510315, -0.021844247356057167, -0.47872480750083923, -0.08641626685857773, -0.31444039940834045, -0.051400598138570786, 0.09951742738485336, -0.29489415884017944, -0.9798340797424316, 0.0431087352335453, -0.11094401776790619, 0.49015048...
def train ( num _ timesteps, seed, model _ path = none ) : env _ id ='humanoid - v2'def policy _ fn ( name, ob _ space, ac _ space, sess = none, placeholders = none ) : return mlp _ policy. mlppolicy ( name = name, ob _ space = ob _ space, ac _ space = ac _ space, hid _ size = 64, num _ hid _ layers = 2, sess = sess, p...
[ 0.05162405967712402, 0.30331143736839294, 0.7406849265098572, 0.06548231840133667, -0.7783649563789368, 0.30020731687545776, 0.054139696061611176, 0.3190998136997223, 0.02536114491522312, -0.3771456778049469, -0.7091630697250366, 0.1379610002040863, -0.004554722458124161, -0.06375055015087...
def vgg19 _ imagenet ( pretrained = false, * * kwargs ) : model = vgg _ imagenet ( make _ layers ( cfg _ imagenet ['e'] ), * * kwargs ) if pretrained : model. load _ state _ dict ( model _ zoo. load _ url ( model _ urls ['vgg19'] ) ) return model
[ -0.1690494418144226, 0.3273681104183197, 0.13905629515647888, 0.10010136663913727, 0.11165083199739456, -0.2269667685031891, 0.5857146978378296, 0.3355788588523865, -0.34491464495658875, 0.22944124042987823, -0.6318816542625427, -0.6347681879997253, -0.23875544965267181, -0.060139667242765...
def hipaa ( self ) : return self. _ hipaa
[ -0.23462368547916412, -0.4510897994041443, 0.3342818021774292, 0.7031725645065308, -0.30136656761169434, 0.3399723470211029, 1.2986578941345215, 0.11804361641407013, 0.9052628874778748, -0.49303916096687317, 0.505737841129303, 0.6981777548789978, -0.08283016085624695, -0.5135602951049805, ...
def wx _ wylosuj _ zestaw ( self, evt ) : ilosc = random. randrange ( 500, 1500 ) plansza = ( wylosuj _ zestaw ( ilosc ) ) [ 0 ] global aktualny _ zestaw aktualny _ zestaw = plansza self. wx _ aktualizuj _ podglad _ zestawu ( )
[ -0.6297897696495056, -0.3229561150074005, 0.25442972779273987, 0.06135474517941475, -0.9701955914497375, 0.5543408393859863, 0.6449587345123291, -0.15377859771251678, 0.7016593217849731, 0.38277381658554077, -1.1647744178771973, 1.4044491052627563, 0.5140787363052368, 0.5629849433898926, ...
def download _ images ( img _ urls, dest _ dir ) : # + + + your code here + + + if not os. path. exists ( os. path. abspath ( dest _ dir ) ) : os. mkdir ( dest _ dir ) imglist = [ ] file _ ext = 0 for img _ url in img _ urls : ufile = urllib. urlopen ( img _ url ) info = ufile. info ( ) if info. gettype ( ) = ='image /...
[ -0.4474906623363495, 0.4455009698867798, 0.725969672203064, 0.8939222097396851, 0.04572135955095291, -0.11567053198814392, 0.5224700570106506, 0.8097596764564514, 0.011288446374237537, 0.22536979615688324, 0.06266944855451584, -0.2656314969062805, 0.6928492188453674, 1.1948397159576416, ...
def custserv ( self ) : return self. _ custserv
[ 0.05185167118906975, -0.5919944047927856, 0.16224521398544312, -0.07692639529705048, -0.22631356120109558, 0.059375613927841187, 0.8643941283226013, -0.8045791983604431, 0.493304967880249, -1.0751640796661377, 0.1680181473493576, 0.9668819308280945, -0.7969528436660767, -0.3306411504745483...
def trove _ dashboard _ relation _ departed ( ) : juju _ log ('trove - plugin - relation - departed hook run') juju _ log ('relation _ ids : { } '. format ( relation _ ids ('trove - plugin') ) ) for rel _ id in relation _ ids ('trove - plugin') : relation _ clear ( rel _ id )
[ 0.5064166784286499, -0.11566654592752457, 0.3523632884025574, -0.43296486139297485, 1.0850731134414673, 0.03454792499542236, 0.5767368078231812, 0.0009941821917891502, -0.05725309997797012, 0.6683668494224548, -0.34167447686195374, 0.8007957339286804, -0.026191722601652145, -0.547905206680...
def get _ proxy ( mimic _ server, request _ url, requirements, max _ wait _ time = 60 ) : params = {'url': request _ url,'max _ wait _ time': max _ wait _ time } if requirements : params ['requirements'] = ", ". join ( requirements ) resp = requests. post ( mimic _ server + " / proxies / acquire ", data = params ) asse...
[ -1.1116348505020142, 0.3405715525150299, 0.5096641182899475, 0.30789878964424133, 0.42119160294532776, -0.33670392632484436, -1.3849705457687378, 0.03914264962077141, -0.1823999136686325, 0.05857127532362938, -0.41066333651542664, 0.6421756744384766, -0.9729508757591248, -0.044350665062665...
def sort _ words ( words ) : return sorted ( words )
[ 0.1404990553855896, -0.24245129525661469, 0.07795187085866928, -0.26230454444885254, -0.23735548555850983, -0.021666783839464188, -0.5746586322784424, -1.0638046264648438, -0.36451369524002075, 0.5475008487701416, 0.27419012784957886, 0.8132302165031433, -0.8999413847923279, 1.084248423576...
def update _ params ( self, result, bytes _ sent ) : # the algorithm is as follows : # for the sleep time : if it is a success, then we multiple the current sleep time by either the # lower or high water spacing adjustment, depending if we sent fewer than the lower water bytes or # more than the high water bytes. ( if ...
[ -0.545109748840332, -0.11324305087327957, 0.6789882183074951, -0.1338723599910736, -0.8107547163963318, 0.5746350288391113, 0.36039331555366516, -0.925675094127655, -0.40449535846710205, 0.20587195456027985, 0.22561395168304443, 0.8329886198043823, -0.8830587863922119, 0.8376646637916565, ...
def _ get _ network _ data ( self ) : data = self. _ get _ data ( self. _ network _ data _ json ) network _ data = json. loads ( encoding. get _ as _ string ( data ) ) return network _ data
[ -1.4819467067718506, -0.6911312341690063, 0.3155803084373474, -0.6464341282844543, -0.1826266348361969, 0.1966181844472885, -1.2403863668441772, -0.9003520011901855, -0.27607303857803345, -0.18572379648685455, -0.739084005355835, 0.14962661266326904, 0.06027281656861305, -0.924282491207122...
def incr _ packet _ index ( self ) : self. seq _ num + = 1 if not self. seq _ num & 0x03 : self. seq _ num + = 1 self. index + = 8 self. has _ more _ data = self. index < len ( self. data )
[ -0.9250389933586121, 0.5338892340660095, 0.6114657521247864, -0.6158189177513123, 0.05992933735251427, -0.04138626530766487, -0.02925986982882023, 0.127493754029274, 0.9407938122749329, -0.9827896356582642, -0.6949540376663208, 0.4164409637451172, -0.09427740424871445, -0.40900206565856934...
def parse _ token _ response ( body, scope = none ) : params = json. loads ( body ) if'scope'in params : params ['scope'] = scope _ to _ list ( params ['scope'] ) if'expires _ in'in params : params ['expires _ at'] = time. time ( ) + int ( params ['expires _ in'] ) validate _ token _ parameters ( params, scope ) return...
[ -0.5235639810562134, -0.6600901484489441, 0.5083897113800049, -1.0202983617782593, -0.36383920907974243, -1.0811561346054077, -0.9861776828765869, 0.2173888385295868, 0.5873550772666931, 1.090610146522522, -1.076347827911377, 0.7073961496353149, 0.3958052396774292, -0.040941208600997925, ...
def keep _ score ( reddit ) : for comment in reddit. redditor ( " eyebleacherbot " ). stream. comments ( ) : try : score = comment. score threshold = - 1 if score < threshold : comment. delete ( ) print ( f " comment deleted at threshold : { threshold } \ n " ) log ( case ='score ', message = f'comment was deleted for ...
[ 1.1105616092681885, -0.7309590578079224, 0.6737135052680969, 0.11908275634050369, 0.5090633034706116, 0.39336809515953064, -0.348898321390152, -1.1086269617080688, -0.05435555800795555, 1.0194774866104126, -0.105482317507267, 0.12656040489673615, -0.5222069025039673, 0.8631764054298401, ...
def word2vec ( sentences ) : model = word2vec ( sentences, size = 500, window = 5, min _ count = 1, workers = 4 ) model. save ( " word2vec. model " ) return model
[ 0.08710676431655884, -0.32173439860343933, 0.46062952280044556, 0.31483131647109985, -0.09090478718280792, 0.450162410736084, 1.352927565574646, -0.8044859766960144, -0.32096320390701294, 0.2617400288581848, -1.0081901550292969, -0.14251869916915894, -0.14097659289836884, 0.253122568130493...
def _ get _ stock _ samples ( self ) : self. add _ debug ('get stock samples...') query = stocksamplequery ( pool _ ids = self. _ pool _ map. keys ( ), concentration = self. stock _ concentration, minimum _ volume = self. take _ out _ volume ) self. _ run _ query ( query,'error when trying to query stock samples :') if...
[ -0.7638941407203674, -0.1381838023662567, 0.4698413610458374, -0.123297780752182, 0.5455393195152283, 0.36265140771865845, 0.5162659883499146, -1.017524003982544, -0.38684073090553284, -0.3423135280609131, 0.17857667803764343, 0.5764949917793274, 0.1725171059370041, 0.27825766801834106, ...
def test _ list _ decimal _ length _ 3 _ nistxml _ sv _ iv _ list _ decimal _ length _ 4 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - length - 4. xsd ", instance = " nistdata / list / decimal / schem...
[ -0.17420510947704315, 0.20885781943798065, 0.46487879753112793, 0.2446586638689041, 0.1852872520685196, -0.007480196189135313, -0.40720024704933167, 0.4704367518424988, 1.081426978111267, 0.013223584741353989, -1.1036458015441895, -1.0884718894958496, -0.231804758310318, 0.2235049158334732...
def from _ path ( self, repo, path, name = none ) : if name is none : name = os. path. basename ( path ) # fixme : hack, there has to be a better way return item. from _ string ( repo = repo, name = name, string = open ( path ). read ( ) )
[ 0.8308656811714172, -0.9308874011039734, 0.32146918773651123, -0.38435378670692444, -1.0691936016082764, 0.22745585441589355, -1.258453369140625, -0.1103375256061554, -0.4522874653339386, 0.4419870674610138, -0.2690698206424713, 0.17308606207370758, 0.15781931579113007, -1.5582172870635986...
def getentities ( self ) : items = [ ] if self. _ model : items = self. _ model. getentities ( ) return items
[ -0.6529601216316223, -0.6661613583564758, 0.24163872003555298, 0.8427054286003113, 1.4008458852767944, 0.7336949110031128, -0.5472011566162109, -0.03671904653310776, -0.007195364683866501, -0.8614184260368347, -0.44250333309173584, -0.06696464866399765, 0.018382379785180092, 1.047781586647...
def savecalibration ( new _ info, url, cname ) : success = false resolved _ url = resolveurl ( url, cname ) url _ type = parseurl ( resolved _ url ) if url _ type = = url _ empty : return savecalibration ( new _ info, default _ camera _ info _ url, cname ) rospy. loginfo ('writing calibration data to url :'+ resolved _...
[ -0.968770444393158, -0.3792618215084076, 0.6846391558647156, 0.8767274022102356, 0.4575607478618622, 0.21572358906269073, -0.1866905391216278, 0.08076229691505432, 0.20055414736270905, -0.03333476558327675, -1.2022955417633057, -1.2638492584228516, -0.5733155012130737, 0.9946237206459045, ...
def histogram2d ( results _ table, column = none, bins = none, discretise = false, * * kwargs ) : # results table is expected to contain columns : # unique _ hash, n _ true, n _ x # where n _ x is the number of inferred clusters from some method. # if the column is not provided, just grab the third column if column is ...
[ 0.16688497364521027, 0.7766551375389099, 0.8898924589157104, 0.49356868863105774, -0.17185208201408386, -0.11805789172649384, 0.15869100391864777, 0.38952159881591797, -0.467799574136734, -0.05958859995007515, 0.2330523282289505, 0.5244104862213135, 0.3346780240535736, 0.06241634488105774,...
def index _ lonlat _ in _ pixels ( lon, lat, pixels, nside, sort = false, outside = - 1 ) : pix = ang2pix ( nside, lon, lat ) return index _ pix _ in _ pixels ( pix, pixels, sort, outside )
[ -0.7782650589942932, -0.09359606355428696, 0.17118684947490692, -1.3931089639663696, -1.491309642791748, -0.0036030218470841646, -1.1280044317245483, -0.7206904292106628, 0.09929468482732773, 0.04550894349813461, -0.0036506266333162785, 0.2793360650539398, -0.578650951385498, 0.36895066499...
def invert ( self, n = none ) : start _ pos = self. tell ( ) value, num _ bits = self. read ( n ) value = invert _ uint ( value, num _ bits ) self. seek ( start _ pos ) self. write ( value, num _ bits ) self. seek ( start _ pos )
[ -1.4065773487091064, 0.6781167984008789, 0.5464340448379517, 0.007621693424880505, 0.3007509410381317, 0.11359307914972305, 0.9570903182029724, 0.11449619382619858, -0.11025144159793854, -0.6886146664619446, -0.8381561636924744, 0.15028683841228485, -0.7542940974235535, 0.5085766911506653,...
def install _ repositories ( self, repositories, log = none, force _ latest _ revision = false, default _ toolshed ='https : / / toolshed. g2. bx. psu. edu / ', default _ install _ tool _ dependencies = false, default _ install _ resolver _ dependencies = true, default _ install _ repository _ dependencies = true ) : i...
[ -0.5316240787506104, 0.07302170991897583, 0.4645814895629883, 0.08374808728694916, 0.8049437999725342, -0.29883986711502075, 0.14495813846588135, 0.0067044817842543125, -0.4350487291812897, 0.45029932260513306, -0.11355390399694443, -1.0796566009521484, -0.09508342295885086, 0.607473611831...
def calculate _ cashflows ( self ) : self. bond _ spread _ dict = { self. regular _ classes [ i ] : self. bond _ spread [ i ] for i in range ( len ( self. regular _ classes ) ) } self. residual = np. zeros ( ( self. n, self. t ) ) # tranches self. bonds _ balance = { k : np. zeros ( ( self. n, self. t ) ) for k in self...
[ 0.7615989446640015, -0.1458614617586136, 0.9773403406143188, -0.3483642637729645, 0.19393359124660492, 0.07697203755378723, 0.40816453099250793, -0.6916453838348389, 0.17937302589416504, -0.4783584177494049, 0.33763065934181213, 0.07525615394115448, -0.6372414827346802, 0.6672495603561401,...
def test _ atomic _ qname _ max _ length _ 4 _ nistxml _ sv _ iv _ atomic _ qname _ max _ length _ 5 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - maxlength - 5. xsd ", instance = " nistdata / atomic ...
[ 0.16472524404525757, -0.22948144376277924, 0.18022039532661438, 0.33769699931144714, -0.7833489775657654, 0.27151405811309814, -0.10311613976955414, -0.7008689045906067, 0.22042003273963928, 0.6724134087562561, -0.6403091549873352, -0.27388718724250793, -0.3344752788543701, 0.0607027634978...
def create _ playlist ( sp, username, usernames, songs _ id ) : playlist _ name = f " music match - { usernames [ 0 ] } - { usernames [ 1 ] } " playlist = sp. user _ playlist _ create ( username, playlist _ name, public = false ) sp _ limit = 100 for i in range ( ceil ( len ( songs _ id ) / 100 ) ) : sp. user _ playlis...
[ 0.17988482117652893, 0.43584883213043213, 0.34737062454223633, 0.7282828092575073, 0.9014850854873657, 0.6761954426765442, -0.005833002272993326, 0.020039504393935204, -0.032962385565042496, 0.5482984185218811, -0.4721279442310333, -0.17761662602424622, -0.43207478523254395, -0.94474840164...
def list ( self, * * params ) : _, _, voucher _ series _ collection = self. http _ client. get ( " / voucherseries ", params = params ) return voucher _ series _ collection
[ -0.9484046697616577, 0.421825110912323, 0.02308247797191143, 0.7475948929786682, 0.28211820125579834, -0.13456888496875763, -0.9414963722229004, -0.3470720052719116, -0.22245445847511292, 0.37527409195899963, -0.04997989162802696, 1.7084360122680664, -0.31445440649986267, 0.692485213279724...
def to _ materials ( self ) : comp _ dicts = [ dict ( ) for i in range ( len ( self. columns ) ) ] for ( atomic _ number, mass _ number ), abundances in self. iterrows ( ) : nuclear _ symbol ='{ 0 : s } { 1 : d } '. format ( nucname. name ( atomic _ number ), mass _ number ) for i in range ( len ( self. columns ) ) : c...
[ -0.8664310574531555, -0.6158483624458313, 0.49192163348197937, -0.5640062093734741, 0.9937305450439453, -0.26971307396888733, -0.5174691081047058, 0.05625858157873154, 0.06321830302476883, 0.09902749210596085, -0.07543234527111053, 0.24101701378822327, 0.9724670648574829, 0.602924466133117...
def read _ excel ( * args, * * kwargs ) - > linkeddataframe : return linkeddataframe ( pd. read _ excel ( * args, * * kwargs ) )
[ 0.8044899702072144, 0.17050909996032715, 0.5157321691513062, 0.07698586583137512, 0.27373775839805603, 0.32839080691337585, -1.1864591836929321, -0.08350125700235367, -0.4748252332210541, -1.5808566808700562, 0.9966166019439697, 1.254380226135254, -0.3641378581523895, -1.9059240818023682, ...
def _ follow _ user ( self, user, hash _ tag ) : if self. driver. current _ url! = self. _ _ format _ userid ( user ) : self. driver. get ( self. _ _ format _ userid ( user ) ) try : self. _ _ click _ follow ( ) self. _ is _ blocked ( ) self. db _ conn. execute ('''update instadb set following = 1, hash _ tag = " { tag...
[ -0.1020093560218811, 0.42854568362236023, 0.7773141264915466, 1.2673231363296509, 0.13384293019771576, 0.34508591890335083, 0.48673292994499207, -0.27585992217063904, -0.2980640232563019, 0.15760888159275055, -0.3126054108142853, -0.0007981850067153573, 0.010425874032080173, 1.170578837394...
def test _ atomic _ qname _ enumeration _ 3 _ nistxml _ sv _ iv _ atomic _ qname _ enumeration _ 4 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - enumeration - 4. xsd ", instance = " nistdata / atomic ...
[ -0.5007874369621277, -1.1468819379806519, 0.44898274540901184, -0.08551523089408875, -0.6340341567993164, 0.032465480268001556, -0.4311096668243408, -0.8707882761955261, -0.13775251805782318, 0.36192786693573, -0.4561562240123749, -0.31229203939437866, 0.01725309155881405, -0.2251354306936...
def plane _ distance _ from _ object ( loc ) - > float : return np. sqrt ( loc [ 0 ] * * 2 + loc [ 2 ] * * 2 )
[ 0.4382508397102356, -1.533532738685608, 0.22416281700134277, -0.17675955593585968, -0.36655351519584656, 1.1060242652893066, 0.421464204788208, 0.03834166377782822, 0.5075110197067261, 0.6694766283035278, -0.22505459189414978, -0.005513143725693226, -0.04150187224149704, -0.338945299386978...
def run _ game _ loop ( word, answer ) : print ( " guess the word : ",''. join ( answer ) ) number _ guesses = 5 list _ word = list ( word ) while answer! = list _ word and number _ guesses > 0 : if word = = answer : return char _ guess = get _ user _ input ( ) if char _ guess = = " exit " or char _ guess = = " quit " ...
[ -0.12334299087524414, 0.029196128249168396, 0.7978922128677368, 1.1372414827346802, -0.4757392406463623, 0.5930265784263611, 0.23658785223960876, -0.7975528836250305, -0.12196694314479828, 0.9208938479423523, -0.387417197227478, 0.7231753468513489, -0.7386849522590637, -0.07263539731502533...
def test _ atomic _ id _ pattern _ 2 _ nistxml _ sv _ iv _ atomic _ id _ pattern _ 3 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - pattern - 3. xsd ", instance = " nistdata / atomic / id / schema + instance...
[ 0.22201044857501984, -0.44187453389167786, 0.4824497103691101, 0.40116578340530396, -0.45877012610435486, 0.48681730031967163, -0.3680987060070038, -0.12170279771089554, 0.4011259973049164, 1.1339811086654663, -0.1962423473596573, 0.46537744998931885, 0.26494407653808594, -0.38629078865051...
def _ _ acquire _ chan _ block ( self, chan ) : chan. interface. open _ ctrl _ data ( os. o _ rdonly ) ctrl, data = chan. interface. read _ block ( true, true ) chan. interface. close _ ctrl _ data ( ) if ctrl = = none or data = = none : return none # not plottable return [ ( chan, ctrl, data ), ]
[ -0.13397836685180664, -0.38999664783477783, 0.7244086265563965, 0.09703800082206726, 0.19534988701343536, -0.0819922462105751, -0.009619109332561493, -1.2600449323654175, 0.026631413027644157, -0.8739616274833679, -0.6128296256065369, 0.4121629595756531, -0.2878752648830414, 0.362832307815...
def load _ image ( url, path ) : response = requests. get ( url ) # check httperror response. raise _ for _ status ( ) # some sites can return 200 and write error in body if'error'in response : raise requests. exceptions. httperror ( response ['error'] ) with open ( path,'wb') as f : f. write ( response. content )
[ -0.19569887220859528, -0.44415605068206787, 0.6996006965637207, -0.3061968982219696, -0.2348296195268631, 0.11328426003456116, -0.0928422138094902, 0.041369274258613586, 0.10396445542573929, 0.41220152378082275, -0.4287843406200409, 0.21037274599075317, 0.17952626943588257, -0.604696452617...
def getreferences ( loadstate = false, nodesinref = false ) : result = dict ( ) proxymanagers = set ( ) references = cmds. file ( query = true, reference = true ) for i in references : refnode = cmds. referencequery ( i, referencenode = true ) connection = cmds. connectioninfo ( refnode + '. proxymsg ', sourcefromdesti...
[ -0.3372916877269745, 0.05943969637155533, 0.8788695931434631, -1.267677903175354, -0.17491891980171204, -0.2553386986255646, 0.42121535539627075, -0.751227617263794, -0.242389976978302, -0.15407033264636993, 0.27675336599349976, 0.47422316670417786, -0.16766726970672607, 1.600187063217163,...
def straight _ flush ( self ) : return self. straight ( ) and self. flush ( )
[ 0.11207029968500137, 0.4846149981021881, 0.5121077299118042, -0.1702881157398224, -0.8735912442207336, 0.9028251767158508, 0.37469732761383057, -1.030164361000061, -0.7205901741981506, -0.2105884999036789, 0.011442485265433788, 0.2907229959964752, -0.1830560714006424, 0.878288745880127, ...
def element _ text _ should _ not _ be _ equal _ to ( self, name, text ) : selector = self. get _ web _ element _ selector ( name ) self. element _ text _ should _ not _ be ( selector, text )
[ -0.6243712306022644, -0.38475343585014343, 0.25647276639938354, 0.6796861886978149, -0.09298280626535416, 0.737661600112915, -0.2788032293319702, -0.07560630142688751, 0.8681555390357971, 0.9891120195388794, -0.8264615535736084, -0.09607502073049545, -1.1544058322906494, 0.350202739238739,...
def charge _ limit _ soc _ min ( self ) - > int : return self. _ vehicle _ data. get ( " charge _ state ", { } ). get ( " charge _ limit _ soc _ min " )
[ 0.5816493630409241, -0.5143874883651733, 0.3650832176208496, 0.6685457229614258, 0.3579119145870209, 0.12866699695587158, -0.634574294090271, -0.8836093544960022, 0.71208256483078, -0.3334045112133026, 0.05941138416528702, 0.40564045310020447, 0.10179395228624344, -0.6334090828895569, -0...
def nabo _ help ( ) : global username return template ( " help ", username = username )
[ 1.0831588506698608, 0.427597314119339, 0.15367156267166138, 0.6637892723083496, -0.8002859950065613, 0.6219286322593689, 0.8702375292778015, 0.29692578315734863, -0.7094443440437317, 0.7230024337768555, -0.6211447715759277, -0.14244423806667328, 0.1493321806192398, -0.10249171406030655, ...
def getactivitycountforworkshop ( workshopcode, disabled ='0 ', deleted ='0') : objtypes = ['resource ','discussion ','idea'] finalactivitylist = [ ] initialactivitylist = meta. session. query ( thing ) \. filter ( thing. objtype. in _ ( objtypes ) ) \. filter ( thing. data. any ( wc ('workshopcode ', workshopcode ) ) ...
[ -0.277232825756073, -0.11821579933166504, 0.6231992244720459, -0.22367553412914276, 0.3768728971481323, -0.22283078730106354, 1.2937355041503906, 0.0028381149750202894, 0.8767233490943909, -0.2432587444782257, 0.4585553705692291, 0.5937207341194153, -0.2517052888870239, 0.29378190636634827...
def _ add _ dispatch ( x, y, name = none ) : if ops. is _ auto _ dtype _ conversion _ enabled ( ) : return add ( x, y, name = name ) if not isinstance ( y, tensor _ lib. tensor ) and not isinstance ( y, sparse _ tensor. sparsetensor ) : y = ops. convert _ to _ tensor ( y, dtype _ hint = x. dtype. base _ dtype, name = "...
[ -0.017543403431773186, 0.1595235913991928, 0.8724972009658813, 0.004195636138319969, -0.6837482452392578, -0.07140155136585236, -0.5274770259857178, -1.169511079788208, 0.3920929729938507, 0.08743180334568024, -0.09403221309185028, 0.808006227016449, 0.7973117828369141, -0.5611563324928284...
def makereading ( self ) : # make reading from mouth sensor # self. mouth. makereading ( ) # self. mouth. recordreading ( ) # make reading from ear sensors self. forward _ speed = self. getforwardspeed ( ) # if the robot is moving forward, then work out what # the boundaries should be for the potentiometer and pwm # th...
[ 0.10199108719825745, -0.7939896583557129, 0.7783164381980896, -0.6873312592506409, -0.21668383479118347, 0.5262908339500427, -0.3469412922859192, -0.3304629921913147, 0.1081489697098732, 0.056914180517196655, 0.818671464920044, 0.06760475784540176, -0.12260237336158752, -0.4084095358848572...
def _ parse _ query _ params ( self ) : colour _ param = none chill _ filtered _ param = none params = self. request. get if " colour " in params : colour _ param = whiskey. colouring [ int ( params [ " colour " ] ) ] [ 0 ] if " chill _ filtered " in params : chill _ filtered _ param = whiskey. chill _ filtered [ int (...
[ -0.691837728023529, -0.49845364689826965, 0.39100271463394165, -0.8099502921104431, -0.44645529985427856, -0.6188247203826904, -0.5177761912345886, -0.15790271759033203, -0.7446844577789307, 0.5311577320098877, -0.5008596777915955, -0.3444526791572571, -0.23908184468746185, 1.4241056442260...
def rs _ check _ table _ rows ( psql, db, tables, schemaname ) : template = " select count ( * ) from { 0 } " for table in tables : namespaced _ table = get _ namespaced _ tablename ( table, schemaname = schemaname ) query = template. format ( namespaced _ table ) result = psql. run _ sql ( query, db, query, output = t...
[ 0.236399844288826, 0.7590546607971191, 0.6251091957092285, 1.1316205263137817, -0.25420910120010376, 0.3176693022251129, 0.042043816298246384, 0.409872442483902, -0.20755183696746826, -0.00422576954588294, 0.711347222328186, -0.5569595098495483, -0.19347472488880157, 1.80325186252594, -1...
def step ( self ) : # update step info = self. update _ worker. step ( ) # grad _ update _ lag info [ " scheme / fps " ] = int ( self. num _ samples _ collected / ( time. time ( ) - self. start ) ) info [ " scheme / policy _ lag " ] = info [ " grad _ version " ] - info. pop ( " col _ version " ) info [ " scheme / gradi...
[ -0.08508647233247757, -0.3840862810611725, 0.5100600719451904, -0.4253053665161133, 0.22294017672538757, 0.5168052315711975, 0.47561970353126526, -0.19916576147079468, -0.9272973537445068, -0.150544673204422, -0.4029633700847626, 0.13820378482341766, 0.2839886248111725, 0.5406309366226196,...
def load _ correct _ segm ( path _ img ) : if not os. path. isfile ( path _ img ) : raise filenotfounderror ('missing : % s'% path _ img ) logging. debug ('loading image : % s ', path _ img ) img = tl _ data. io _ imread ( path _ img ) seg = ( img > 0 ) seg = morphology. binary _ opening ( seg, selem = morphology. disk...
[ -0.461151123046875, -0.9172607660293579, 0.49641677737236023, -0.6276928782463074, 0.11336720734834671, 0.486829549074173, 0.5257134437561035, 0.10975661128759384, -0.12200990319252014, 0.7404295206069946, 0.32238274812698364, -0.9397002458572388, 0.19641327857971191, 0.2793452739715576, ...
def quit ( browser _ driver ) : # close the browser session browser _ driver. close ( ) browser _ driver. quit ( )
[ -0.19272702932357788, -1.5277178287506104, 0.3632371723651886, 0.43037959933280945, 0.25488531589508057, 0.20549820363521576, 0.681006908416748, -0.23105259239673615, 0.6424396634101868, 0.6225871443748474, 0.2857246398925781, -0.27041178941726685, -0.195140540599823, 0.5269639492034912, ...
def _ write _ raw ( self, data ) : if sys. dev and currentthread ( ). getname ( )! ='asyncorethread': try : raise assertionerror,'bad thread for _ write _ raw : % r'% currentthread ( ). getname ( ) except assertionerror : # from hub import hub # hub. on _ error ( ) traceback. print _ exc ( ) traceback. print _ stack ( ...
[ -0.7274535894393921, 0.30810093879699707, 0.7960612177848816, 0.2063049077987671, 0.024486714974045753, 0.22966402769088745, 0.33107098937034607, -0.5596128106117249, 0.09455449134111404, -0.27171778678894043, -0.12362334877252579, 0.7449342012405396, -0.7176799178123474, 0.554027616977691...
def viewdb ( self, foodtype ='all ', cookingmethod ='all ', pfmenu = none ) : # evaluate the criteria if pfmenu : res = con. session. query ( dish ). filter ( dish. predefmenu = = pfmenu ). all ( ) elif foodtype = ='all'and cookingmethod = ='all': res = con. session. query ( dish ). all ( ) elif cookingmethod = ='all':...
[ -0.9824326634407043, 0.6073197722434998, 0.6624001264572144, 0.5411037802696228, -0.7805221080780029, -0.5921659469604492, -0.319399893283844, 0.2881920337677002, 0.5318974852561951, -0.7285134196281433, 0.4425954818725586, 0.643277645111084, -0.2551843822002411, 1.831153392791748, -0.15...
def compact ( text ) : page = [ ] # list of paragraph headers = { } # headers for unfilled sections emptysection = false # empty sections are discarded inlist = false # whether opened < ul > for line in text. split ('\ n') : if not line : continue # handle section titles m = section. match ( line ) if m : title = m. gr...
[ 0.5560641884803772, -0.7827731966972351, 1.2595200538635254, -0.5519627928733826, -1.3051401376724243, 0.21505925059318542, -0.2970210909843445, 0.0840812623500824, 0.1866559535264969, 0.3138430118560791, 0.8232065439224243, -1.161993384361267, -0.24380013346672058, -0.02793881483376026, ...
def create _ http _ alert ( name, status ='done ', url ='http : / / 127. 0. 0. 1 : 8081') : condition _ dict = {'condition':'always'} event _ dict = {'event':'task run status changed ','data':'requested ','data _ name':'status'} method _ dict = {'method':'http get ','data _ name':'url'} event _ dict ['data'] = status m...
[ -0.3858531713485718, -0.05608438700437546, 0.7835968732833862, -0.057468581944704056, -0.5137940645217896, 0.34578773379325867, -0.696248471736908, -0.21540309488773346, -1.6319905519485474, 0.7617698311805725, -0.7881790995597839, 0.8999962210655212, -0.10893809050321579, 0.76050364971160...
def get _ st _ version ( ) : try : import st _ version. _ _ version _ _ as science _ tools _ version return science _ tools _ version except importerror : pass try : import st _ version if hasattr ( st _ version,'version') : vv = st _ version. version ( ) elif hasattr ( st _ version,'get _ git _ version') : vv = st _ v...
[ -0.09197092801332474, -0.4703843593597412, 0.3884675204753876, 0.2084156721830368, 0.14971517026424408, -0.020986119285225868, 0.38081488013267517, -0.9994843602180481, 0.13295556604862213, 0.2714579999446869, -0.17989866435527802, 0.5301934480667114, 0.5631799101829529, 0.3643273711204529...
def scale _ down ( self ) : self. _ _ scale = max ( 1, self. _ _ scale / / 2 )
[ -0.12539240717887878, -0.5401017665863037, 0.6572182178497314, 0.319397509098053, 0.20722121000289917, 0.6137049794197083, 0.13057354092597961, -0.4357192814350128, -1.1211439371109009, -0.2497377097606659, 0.6223189830780029, 0.18277978897094727, -1.2355226278305054, 0.7481197118759155, ...
def _ prepare _ state _ prompts _ with _ proxy _ pc ( self ) : state _ prompts = { unixremote. unix _ remote : self. _ configurations [ unixremote. connection _ hops ] [ unixremote. proxy _ pc ] [ unixremote. unix _ remote ] [ " command _ params " ] [ " expected _ prompt " ], unixremote. unix _ remote _ root : self. _ ...
[ -0.8844451904296875, -0.7155740857124329, 0.5102651119232178, -0.7711778283119202, -0.07733781635761261, 0.6665170192718506, -0.20547783374786377, -0.057140499353408813, 0.10839667916297913, 0.1384231448173523, -0.37654897570610046, -0.09764603525400162, -0.3829827606678009, -0.31037363409...
def event _ subscribe ( self, obj _ ref ) : self. subscribers. append ( obj _ ref )
[ 0.7790886163711548, -0.8904329538345337, 0.7173823118209839, 0.10761536657810211, 0.5677316784858704, 0.3824900984764099, -0.2685900926589966, -0.029849419370293617, 0.32410746812820435, -0.2225867658853531, -0.7801309823989868, 1.1167261600494385, 0.3452577590942383, 0.5983403325080872, ...
def load _ edmonton _ graph ( filename ) : edmonton = graph ( ) location = { } infile = open ( filename, " r " ) lines = infile. readlines ( ) for l in lines : words = l. split ( ", " ) if words [ 0 ] = = " v " : wordid = int ( float ( words [ 1 ] ) ) edmonton. add _ vertex ( wordid ) location [ wordid ] = ( int ( floa...
[ 0.04303894191980362, -0.3459613621234894, 0.4674137532711029, -1.6846644878387451, -1.0971366167068481, -0.19883765280246735, 0.19738230109214783, 1.0375584363937378, 0.08319318294525146, 1.5777473449707031, 0.06999006122350693, 0.05395198240876198, -0.29952991008758545, -0.695688068866729...
def _ _ init _ _ ( self, channel, interceptor = none ) : self. _ _ _ _ desc = servicedesc ( [ x for x in filedescriptor. service if x. name = = " rolemanager " ] [ 0 ], filedescriptor. package ) self. _ _ _ _ stub = _ rolemanagerstub ( channel ) self. _ _ _ _ interceptor = interceptor
[ 0.16735069453716278, -0.6310886144638062, 0.7023991346359253, -1.4668182134628296, 0.6069918870925903, -0.3669126331806183, -0.4589616656303406, 0.6294482350349426, 0.42379897832870483, -1.304655909538269, 0.276609867811203, 0.4769267141819, 0.14717364311218262, 1.168473720550537, 0.9994...
def get _ pdf _ url ( self, doi : anystr ) - > optional [ anystr ] : pdf _ url = none html = self. _ get _ html ( doi = doi ) if html is none : return pdf _ url return self. _ get _ pdf _ url ( html, pdf _ url )
[ -0.2722412645816803, 0.3142625093460083, 0.5213271975517273, -0.15503095090389252, 0.8294564485549927, -1.0379390716552734, 0.08895991742610931, -0.5109807252883911, 0.22135718166828156, -0.48005300760269165, 0.9932286739349365, 0.1972222924232483, 0.5229145884513855, 0.09547916799783707, ...
def test _ admin _ dashboard ( self ) : db. put ( [ counter ( scan _ name ='person ', repo ='haiti ', last _ key ='', count _ all = 278 ), counter ( scan _ name ='person ', repo ='pakistan ', last _ key ='', count _ all = 127 ), counter ( scan _ name ='note ', repo ='haiti ', last _ key ='', count _ all = 12 ), counter...
[ 0.11463823914527893, 1.5133404731750488, 0.526648223400116, 0.16943146288394928, 0.6093283891677856, 0.47207745909690857, 0.489940881729126, -0.2471383512020111, -0.6026959419250488, -0.3229178488254547, -0.5033544898033142, 0.010641288943588734, -0.02100215293467045, 0.3723679780960083, ...
def _ _ init _ _ ( self, grid ) : if len ( grid ) = = 0 or len ( grid [ 0 ] ) = = 0 : raise valueerror lands = [ ] self. width, self. height = len ( grid ), len ( grid [ 0 ] ) for i in range ( self. height ) : for j in range ( self. width ) : if grid [ i ] [ j ] : lands. append ( i * self. width + j ) self. sets = disj...
[ 0.36214351654052734, 0.485311359167099, 0.6467967629432678, -0.44954508543014526, -0.8286452889442444, -0.016397347673773766, 0.2466217577457428, -0.2704431712627411, 0.31938979029655457, -0.1128648966550827, 0.8476666212081909, -0.5348977446556091, -0.7117618918418884, 0.7270368337631226,...
def compute _ directions ( pitch _ angles, yaw _ angles ) : calibration _ directions = [ ] # add straight up calibration _ directions. append ( [ 0, 0, 1 ] ) for pitch in pitch _ angles : for yaw in yaw _ angles : x = sin ( yaw * pi / 180 ) * cos ( pitch * pi / 180 ) y = cos ( yaw * pi / 180 ) * cos ( pitch * pi / 180 ...
[ -0.6057409048080444, -0.6585130095481873, 0.45521900057792664, 0.41496267914772034, 0.4304859936237335, 0.5720770359039307, 0.384043425321579, 0.21148993074893951, 0.3220236301422119, 0.4601503908634186, -0.6811432242393494, -0.27175840735435486, 0.5375345349311829, -0.04377209395170212, ...
def include _ lost ( self ) : if len ( self. subnets ) > 0 : counter = itertools. count ( start = max ( self. subnets ) + 1 ) else : counter = itertools. count ( ) for p in self. source _ hash. points : if len ( p. forward _ cands ) = = 0 : subnet = next ( counter ) self. subnets [ subnet ] = { p }, set ( ) p. subnet =...
[ 0.697650671005249, 1.0022213459014893, 0.4218071699142456, -0.10937585681676865, -0.3700234889984131, 1.0828441381454468, 0.17551228404045105, 0.7096247673034668, 1.0206270217895508, -0.7386870384216309, -0.24137158691883087, 0.5351142287254333, 0.20580248534679413, 0.5602321028709412, -...
def test _ default _ initialization ( self ) : with client _ manager ( ) as test _ client : assert isinstance ( test _ client. settings, dict ) assert test _ client. settings = = { } assert isinstance ( test _ client. ignored, list ) assert test _ client. ignored = = [ ] assert isinstance ( test _ client. allowed, list...
[ -0.8403893709182739, 0.3833715617656708, 0.14506694674491882, -0.3298816978931427, 1.1881142854690552, 0.21649311482906342, 0.24614037573337555, -0.9894191026687622, -0.7205016016960144, -0.21414539217948914, -0.8633739352226257, -0.13912802934646606, -0.877872109413147, 0.8665891289710999...
def sample _ recipe ( user, * * kwargs ) : params = {'title':'sample recipe ','time _ minutes': 5,'price': 5. 0 } params. update ( kwargs ) return recipe. objects. get _ or _ create ( user = user, * * params )
[ 0.7170364856719971, 0.6179391741752625, 0.3736976385116577, 0.6432155966758728, -0.7063100337982178, -0.34745490550994873, -1.0787549018859863, -0.2642688751220703, 0.08520074933767319, 0.2953999638557434, -0.6169525980949402, 0.05503826215863228, -0.38696205615997314, -0.15355528891086578...
def itksubtractconstantfromimagefilteriuc2diuc2 _ superclass _ cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilteriuc2diuc2 _ superclass _ cast ( * args )
[ 0.579093337059021, 0.17774426937103271, 0.2453830987215042, -0.2320117950439453, -1.0338928699493408, 0.15762822329998016, 0.4169791638851166, 0.8880835175514221, -0.8980228900909424, -1.0542675256729126, -0.5557495355606079, 0.1748136729001999, 0.8664554357528687, -0.04226476699113846, ...
def cleanup ( ) : scacheton. cleanup ( ) if tensor. _ object _ count! = 0 : raise exception ( f'unable to cleanup while { tensor. _ object _ count } tensor objects exist.') cleanup _ devices ( )
[ -0.04948722571134567, -0.09099549055099487, 0.2415945827960968, 0.8667289018630981, 0.46337756514549255, 0.20906205475330353, 2.053072690963745, -0.6304963231086731, 0.29376810789108276, -0.19067244231700897, -0.2051677256822586, -0.15381848812103271, 1.053429126739502, 0.19898448884487152...
def start _ game ( self ) : # check if there are players if len ( self. game. get _ players ( ) ) = = 0 : print ( " please add players before trying to start the game! " ) return 0 # deals to the players self. game. deal ( ) # check if the house has a blackjack? housebj = self. game. check _ dealer _ blackjack ( ) prin...
[ 0.17806008458137512, 0.5818905234336853, 1.006291389465332, 0.8882374167442322, 0.8847430348396301, -0.7556851506233215, 0.21518272161483765, 1.0559468269348145, -0.3179735541343689, 0.8384411334991455, 0.3163905739784241, -0.5823686122894287, -0.8819891214370728, 0.9475836157798767, 0.6...
def test _ hyp _ init _ sequential ( self ) : opt _ args = dict ( max _ evaluations = 15, limit _ action = " ignore " ) model1 = evo _ app. model ( " f81 ", opt _ args = opt _ args ) model2 = evo _ app. model ( " hky85 ", opt _ args = opt _ args ) model3 = evo _ app. model ( " gtr ", opt _ args = opt _ args ) # default...
[ -0.14924238622188568, 0.19771119952201843, 0.5104926824569702, 0.32090139389038086, 0.9797412753105164, 0.3403790295124054, -0.03516716510057449, -0.1090594083070755, -0.8590137362480164, 0.018340714275836945, -0.8217785954475403, -0.023727215826511383, -0.4759581387042999, -0.200967803597...
def whitebox ( self ) : return self. levels [ 0 ] [ 0 ]. whitebox
[ -1.2251813411712646, -0.008671808056533337, 0.36534395813941956, -0.9106553196907043, 0.783926784992218, -0.10931657254695892, 0.7745085954666138, -0.5939826965332031, 0.6984732747077942, -0.28017541766166687, 0.09028631448745728, 1.3534748554229736, -0.8705905675888062, 0.5909491777420044...
def roughness ( self ) : return self. _ roughness
[ -0.1004151850938797, 0.021891571581363678, 0.23440220952033997, 0.08343929797410965, 0.7432207465171814, 0.7619746327400208, 1.1501215696334839, -0.3939364552497864, -0.16442693769931793, -0.9297641515731812, -0.4155215620994568, 0.9528090953826904, -0.6740580201148987, -0.0306667368859052...
def _ get _ contents _ from _ sections _ base ( self, sections ) : contents = [ ] if self. verbose : print ( f " \ nshow contents of the paper. \ n {'='* 30 } " ) return contents
[ 0.38129088282585144, -0.9192270040512085, 0.39565736055374146, 0.015056624077260494, -0.06513767689466476, -0.03216865286231041, -0.7422136068344116, -1.2974562644958496, -0.3376615643501282, 0.4265957176685333, 1.180016040802002, -0.7194035053253174, -0.052558206021785736, 0.5150213837623...
def test _ atomic _ language _ length _ 3 _ nistxml _ sv _ iv _ atomic _ language _ length _ 4 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - length - 4. xsd ", instance = " nistdata / atomic / l...
[ 0.47646281123161316, -0.40716448426246643, 0.2939183712005615, 0.20112201571464539, -0.4609376788139343, -0.0292346328496933, -0.39084187150001526, -0.04984160512685776, -0.21350684762001038, 0.6415082812309265, -0.6384130716323853, -0.5882753729820251, -0.041176848113536835, 0.05855292454...
def _ create _ positions _ digraph ( self ) : # create the positions... if self. graphvizprog is none : self. pos = networkx. spring _ layout ( self. digraph ) else : self. pos = \ networkx. drawing. nx _ pydot. graphviz _ layout ( self. digraph, prog = self. graphvizprog, root = self. rootpid )
[ 0.18505465984344482, -0.06831046938896179, 0.20730841159820557, 0.01759801246225834, -0.3287922143936157, -0.2041335552930832, 0.32442089915275574, 0.6102592349052429, 0.5660266280174255, -1.0357996225357056, -0.1508304625749588, -0.9750487208366394, -0.10476454347372055, -0.31961295008659...
def findv ( self, x ) : nodo = self. nododir [ x ] return nodo. l _ head. head. dato
[ 0.12908659875392914, 0.9799230098724365, 0.6622629165649414, -0.2485111951828003, -0.33031854033470154, 0.08143678307533264, -0.3827359080314636, -1.3186795711517334, 0.6152995824813843, 0.1229623556137085, -0.4302575886249542, 1.5100905895233154, 0.4003117084503174, -0.07829607278108597, ...
def angle _ of _ elevation ( x, y, z ) : den = math. sqrt ( x * * 2 + z * * 2 ) etan = np. divide ( y, den ) return etan
[ -0.01088333036750555, -0.5449411869049072, 0.3394744098186493, 0.09071613103151321, 0.10501382499933243, 0.10331128537654877, -0.07450665533542633, 0.45912542939186096, -0.03907889872789383, 1.0384140014648438, 0.10507723689079285, -0.4488525390625, 0.5916399955749512, -0.7183783054351807,...