text
stringlengths
25
2.19k
embedding
listlengths
768
768
def rss _ query ( self ) : query = self. request. query _ string stato = self. request. form. get ( " stato _ bandi ", " " ) if stato : now = quote ( datetime ( ). iso ( ) ) if stato = = " scheduled " : query = " { query } & apertura _ bando. query : record = { now } & apertura _ bando. range : record = min ". format (...
[ 0.1504291146993637, -0.7508295774459839, 0.5833196640014648, -0.4341896176338196, -0.05023704096674919, 0.2551083266735077, -0.7620089650154114, -0.25434014201164246, -0.38245975971221924, 0.2307169884443283, 1.0698508024215698, 0.7456423044204712, 0.07142126560211182, 0.6110057830810547, ...
def pin _ local _ repos ( path ='/ etc / apt / preferences. d / rhcs. pref ', distro = none ) : # skip this on non - apt - based systems. distro = distro or get _ distro ( ) if distro. pkg _ manager. _ _ class _ _. _ _ name _ _! ='apt': return template = ( " explanation : prefer red hat packages \ n " " package : * \ n...
[ -0.5334416627883911, 0.8098955750465393, 0.5941056609153748, -0.73391193151474, 0.08341966569423676, 0.6058337688446045, -0.1976548433303833, 0.42542317509651184, 0.4086496829986572, 0.3962082266807556, -0.7953145503997803, 0.22721025347709656, 0.28078651428222656, 0.11068868637084961, 0...
def variance ( data ) : len _ data = len ( data ) if len _ data = = 0 : return 0 score = [ float ( item. value ) for item in data ] mean = sum ( score ) / len ( score ) variance = sum ( [ ( s - mean ) * * 2 for s in score ] ) / len ( score ) return variance
[ -0.19490943849086761, -0.029389679431915283, 0.517890214920044, -0.2239672839641571, 0.496559739112854, 0.3895278871059418, 0.38376584649086, 0.17510421574115753, 0.43436920642852783, 0.1315583735704422, -1.0423458814620972, 0.818479597568512, -0.4966307580471039, 0.5508411526679993, -0....
def main ( ) : # initialize selection value selection = - 1 while selection : # menu display print ('welcome to the state capital and bird application') print ('please choose from the following selections') print ('1. display state capitals and birds') print ('2. search for a specific state and bird') print ('3. update...
[ -0.10085094720125198, -0.16854974627494812, 0.7084470391273499, 0.8237485289573669, -0.13663338124752045, 0.7952566146850586, 0.5525863170623779, -0.5278998017311096, -0.18277472257614136, 0.2621167302131653, 0.34101101756095886, 0.29627320170402527, -0.2323770970106125, 0.3307801187038421...
def test _ deepbacktrace ( self ) : lines = self. root. findall ('error / backtrace / line') self. assertequal ( lines [ - 2 ]. get ('method'),'deep _ failure : return fail _ with _ traceback ( )')
[ 0.481418639421463, 0.6599313616752625, 0.4133116602897644, 0.18043626844882965, 0.9454141855239868, -0.3302633464336395, 0.5956452488899231, -0.17922843992710114, -0.19994668662548065, -0.6630455255508423, -0.27671298384666443, 0.0986158475279808, -0.5384613871574402, 0.15460260212421417, ...
def get _ scaffolds _ stats ( parameters ) : applogger. info ( " reading scaffolds from reference file... " ) # print ( " reading scaffolds from reference file... " ) start = datetime. datetime. now ( ) message = " all correct. " applogger. info ( " reading file... " ) handle = none filekind = filetype. guess ( paramet...
[ 1.0548720359802246, -0.3948279917240143, 0.9223775267601013, -0.3471558690071106, 0.2740130126476288, 0.01585175096988678, 1.3760323524475098, -0.3952699601650238, -0.4273606240749359, 0.27505072951316833, -0.7095339298248291, -0.0188289862126112, -0.08168598264455795, 0.9423543214797974, ...
def pinta _ frontera _ recta ( x, y, theta ) : plt. figure ( ) x1 _ min, x1 _ max = x [ :, 0 ]. min ( ), x [ :, 0 ]. max ( ) x2 _ min, x2 _ max = x [ :, 1 ]. min ( ), x [ :, 1 ]. max ( ) xx1, xx2 = np. meshgrid ( np. linspace ( x1 _ min, x1 _ max ), np. linspace ( x2 _ min, x2 _ max ) ) h = sigmoid ( np. c _ [ np. ones...
[ 0.062032587826251984, -0.03436550125479698, 0.9769641757011414, -0.6588614583015442, -0.19553925096988678, 0.7732077836990356, 0.17891986668109894, -0.2241867035627365, 0.5324401259422302, 0.5092282295227051, 0.44707345962524414, 1.2645819187164307, 0.8177964687347412, -0.36353373527526855...
def gen _ rnd _ smpl ( low : int, high : int, size : int = 1000, d _ type = np. int16 ) - > np. array : return np. random. randint ( low, high, size, d _ type ) [ : 10 ]
[ -0.7837743163108826, 0.3121839165687561, 0.5392172336578369, -1.3135476112365723, 0.33786740899086, -0.013201395981013775, -0.5193387269973755, -0.3537406623363495, 1.1943186521530151, -0.12650778889656067, -0.46534430980682373, 0.651897668838501, -0.23784072697162628, -0.581371545791626, ...
def get _ queryset ( self ) : return announcement. objects. filter ( pub _ date _ _ lte = timezone. now ( ) ). order _ by ('- pub _ date')
[ 0.29874858260154724, -0.6569637060165405, 0.571514368057251, 0.885802149772644, 0.1435156911611557, 0.6526498794555664, -1.0160061120986938, 0.7233707308769226, -1.1006325483322144, 0.31735822558403015, 1.289343237876892, 1.2229362726211548, -0.3495022654533386, 0.9981033205986023, -1.20...
def postreleaser _ middle ( self, data ) : update _ docs _ config ( data ['dev _ version'] )
[ -0.5869095921516418, -0.7693597078323364, 0.09747689962387085, -0.017986513674259186, -0.39612719416618347, 0.24345475435256958, 0.26793110370635986, 0.07987285405397415, 0.4604877233505249, 0.40371063351631165, -1.1290076971054077, -0.14079390466213226, -0.012710465118288994, 0.3804557621...
def test _ initial _ settings _ for _ default _ portfolio ( ) : start _ dt = pd. timestamp ('2017 - 10 - 05 08 : 00 : 00 ', tz = pytz. utc ) # test a default portfolio port1 = portfolio ( start _ dt ) assert port1. start _ dt = = start _ dt assert port1. current _ dt = = start _ dt assert port1. currency = = " usd " as...
[ 0.31972792744636536, 0.023982007056474686, 0.710221529006958, -0.2265254110097885, 0.8009815216064453, 0.3154681921005249, 0.2988484501838684, -1.3571587800979614, -0.24319572746753693, 0.01560790091753006, -0.9722574353218079, -0.1893058866262436, -0.5581417083740234, 0.25698691606521606,...
def filter _ by _ scores ( type2freq, type2score, stop _ lens ) : type2freq _ new = dict ( ) type2score _ new = dict ( ) stop _ words = set ( ) for lower _ stop, upper _ stop in stop _ lens : for t in type2score : if ( ( type2score [ t ] < lower _ stop ) or ( type2score [ t ] > upper _ stop ) ) \ and t not in stop _ wo...
[ -0.8664563894271851, -0.8724409341812134, 0.6670302152633667, 0.21050339937210083, -0.2369876205921173, 0.25628092885017395, -0.0758175328373909, -1.3694835901260376, -1.3287601470947266, 0.6295007467269897, 0.23016218841075897, 0.44136080145835876, -0.2013912945985794, -0.0234250463545322...
def indexlocationstrongs ( location, words _ index, words _ rc, strongs _ index = none ) : words = _ getlocationwords ( location, words _ index ) if strongs _ index : index = strongs _ index else : index = { } for word in words : if word not in index : index [ word ] = findstrongs ( word, words _ rc ) return index
[ 0.7239338159561157, -0.3502206802368164, 0.24028152227401733, -1.0341103076934814, 0.3393974006175995, -0.4107923209667206, 0.31406962871551514, 0.3193819224834442, -0.11673399806022644, 0.5331886410713196, -0.2728547155857086, 0.1145150363445282, -0.411928653717041, -0.33637094497680664, ...
def cn _ createmagnified ( self, mu ) : depr ('createmagnified ', 1. 1,'obj. magnify ( mu )') return self. magnify ( mu )
[ -0.8928523063659668, -0.23286068439483643, 0.37067732214927673, 0.08374428749084473, -0.5486300587654114, -0.267389178276062, -1.3776336908340454, -0.508796751499176, 0.4101898670196533, -0.7849907279014587, -0.5231480598449707, 0.2589431703090668, -0.0638900101184845, 0.5006672739982605, ...
def cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilterius2dius2 _ cast ( * args )
[ -0.15735507011413574, -1.3283820152282715, 0.3287385106086731, -0.55738365650177, -0.3507079482078552, 0.16037146747112274, 0.7783251404762268, -0.16045299172401428, -0.2343503087759018, 0.34488916397094727, -0.27024704217910767, 1.0014889240264893, 0.09077712893486023, -0.3647222816944122...
def oncaretmoved ( self, event ) : if not orca _ state. locusoffocus : return obj, offset = self. pointofreference. get ( " lastcursorposition ", ( none, - 1 ) ) if offset = = event. detail1 \ and self. utilities. issameobject ( obj, event. source ) : return # should the event source be the locusoffocus? # try : role =...
[ 0.44772130250930786, -1.0209643840789795, 0.7357273101806641, -0.506263017654419, -0.5746319890022278, -0.1195247620344162, 0.412974089384079, -0.40774133801460266, 1.046927809715271, 0.13950592279434204, -0.23166301846504211, 0.05154041573405266, -0.029096636921167374, -0.1840929687023162...
def load ( self, _ fh ) : raise typeerror ( " block. load not implemented " )
[ -0.19860729575157166, -0.13406316936016083, 0.4539141058921814, 0.5273545980453491, -0.6934166550636292, 0.8379917740821838, 0.4143296182155609, -0.22312788665294647, -1.048410177230835, 0.1553046554327011, -0.8711466789245605, 0.22557301819324493, -0.513694167137146, 0.9165287613868713, ...
def create _ allocation _ table ( expt _ name : str, base _ url = base _ url ) : experiment = get _ object ('{ } { } '. format ( base _ url, expt _ name ) ) rules _ script = get _ object ( experiment ['rules _ script'] ) interp = rules _ script ['interpretationresults'] parse _ err = interp ['parseerror'] # if there is...
[ 0.5340665578842163, 0.14879964292049408, 0.5903217792510986, -0.44250503182411194, -0.26488548517227173, -0.3430981934070587, 0.2987937331199646, 0.3937022387981415, -0.08140707015991211, 0.7166512608528137, 0.9321805834770203, 0.27670666575431824, 0.08171939104795456, 0.05215628072619438,...
def maketestcase ( n ) : return random. sample ( range ( random _ minimum, random _ maximum ), n )
[ -0.828957200050354, -0.3251182436943054, 0.3388199508190155, -0.3779153823852539, 0.04087308794260025, 0.7910069823265076, -0.41188541054725647, -0.8584421873092651, 1.1005173921585083, -0.3777174651622772, -0.7227805256843567, -0.13589948415756226, 0.004545619711279869, -0.903545081615448...
def test _ example _ input _ two _ required _ field _ example _ radio ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input two " ) input _ page. ...
[ -0.4170488119125366, -0.0659705176949501, 0.6467811465263367, 0.048630136996507645, 0.6678332686424255, 1.1578088998794556, -0.2637317478656769, -0.44808363914489746, -0.30843427777290344, 0.5082350969314575, -1.29745614528656, -0.04644227400422096, -0.3097061812877655, 0.41320815682411194...
def zinb _ ll _ row ( params, data _ row ) : # todo
[ 0.20161835849285126, 0.43343105912208557, 0.12201952934265137, 0.11400209367275238, 0.6214954257011414, -0.24641075730323792, 0.3675779700279236, -0.18406394124031067, 0.5900043845176697, 0.026075566187500954, 0.26698607206344604, 0.12935754656791687, -0.24353265762329102, 0.27907037734985...
def train ( self, x, y, batch = true ) : self. d = len ( x [ 0 ] ) n = len ( x ) self. w = np. zeros ( d ) step = 0 while true : w _ prev = np. copy ( self. w ) if batch : self. batchdescentstep ( x, y ) else : self. stochasticdescentstep ( x [ step ], y [ step ] ) step = ( step + 1 ) % n if auxiliary. converged ( self...
[ -0.23547376692295074, 1.1211873292922974, 0.6935602426528931, 1.1184669733047485, -0.46597030758857727, 0.3293445110321045, -0.6664716601371765, -0.287395179271698, -0.8205471634864807, -0.09232506155967712, -0.1039501279592514, 0.48610106110572815, 0.08837003260850906, 0.9418914318084717,...
def manage _ addropesimpleitem ( dispatcher, id, title ='', request = none ) : class _ = dispatcher. getmapperclass ( ) ob = class _ ( ) keysupport = ikeyidsubobjectsupport ( ob ) if not keysupport. issubobject ( id ) : raise valueerror ( " wrong id " ) ob. id = id ob. title = str ( title ) dispatcher. _ setobject ( id...
[ -1.2191035747528076, 0.2856568396091461, 0.7468904852867126, 0.5591979026794434, -0.753186821937561, 0.5056375861167908, -0.8630712628364563, 0.010943187400698662, 1.1823489665985107, -0.32384195923805237, -0.7196033596992493, -1.0448933839797974, 0.23737111687660217, -0.2553083598613739, ...
def calc _ psd _ epochs ( epochs, plot = false ) : tmin, tmax = - 0. 5, 0. 5 fmin, fmax = 2, 90 # n _ fft = 2048 # the fft size ( n _ fft ). ideally a power of 2 psds _ vol, freqs = psd _ multitaper ( epochs [ " voluntary " ], tmin = tmin, tmax = tmax, fmin = fmin, fmax = fmax ) psds _ inv, freqs = psd _ multitaper ( e...
[ 0.08715365827083588, 0.1004568338394165, 0.7348420023918152, -0.6534874439239502, -0.5263804197311401, -0.08378899842500687, -0.04690619558095932, 0.05433231219649315, -0.11417929828166962, -0.1114676371216774, 0.2561916410923004, 0.21694311499595642, 0.7820401191711426, 0.8903622031211853...
def put ( self, topic _ id : str ) - > none : assert self. normalized _ payload is not none topic _ url = feconf. topic _ editor _ url _ prefix +'/'+ topic _ id if feconf. can _ send _ emails : email _ manager. send _ mail _ to _ admin ('request to review and publish a topic ','% s wants to publish topic : % s at url %...
[ -0.5383954048156738, -0.17893706262111664, 0.27499520778656006, -0.607460081577301, -0.3200182318687439, -0.12299245595932007, -0.4425339996814728, 0.25260862708091736, -0.36606356501579285, 0.5090323686599731, 0.5249406695365906, 0.6941732168197632, -0.3107629716396332, 0.1501142978668213...
def cpprecal ( dirlist, destdir = '. / ', fsize = 8400960 ) : # get current and previous dates # current source dir cdate = dirlist [ - 1 ]. split ('/') [ - 1 ] # convert to jd ctime = time ( cdate [ 0 : 4 ] +'-'+ cdate [ 4 : 6 ] +'-'+ cdate [ 6 : ] ) cjd = ctime. jd # # previous source dir pdate = dirlist [ - 2 ]. spl...
[ -0.894335150718689, -0.07204416394233704, 1.0465480089187622, -0.06644988059997559, -1.37631094455719, 0.3246379792690277, 1.0105760097503662, -0.328093945980072, 0.4995633065700531, 0.7041235566139221, 0.3842211067676544, 0.07641954720020294, 0.20212025940418243, 0.9805219769477844, 0.4...
def delete _ group ( groupname = none, userpoolid = none ) : pass
[ -0.2861315608024597, 0.8147737383842468, -0.0598922036588192, 0.7788844704627991, 0.27901673316955566, -0.34110963344573975, 0.956504225730896, -0.16160210967063904, -0.06706740707159042, -0.20274418592453003, -0.09462545812129974, 1.2458006143569946, -1.1072330474853516, 0.387624442577362...
def is _ column _ unique ( self, i : int ) - > bool : if self. _ unique _ columns [ i ] is none : self. _ unique _ columns [ i ] = len ( np. unique ( self. get _ column ( i ) ) ) = = self. _ n _ obsv return self. _ unique _ columns [ i ]
[ -0.8693643808364868, 0.8818957805633545, 0.7086992859840393, -0.1670202612876892, 0.3306727707386017, -0.2528717815876007, 0.5829817652702332, -0.8516440391540527, 0.4652451276779175, 0.24668854475021362, -1.555147647857666, 0.17448118329048157, -0.4515615701675415, -0.6921223402023315, ...
def expn ( self, address ) : self. putcmd ( " expn ", _ addr _ only ( address ) ) return self. getreply ( )
[ -0.9284775853157043, 0.5538113117218018, 0.4169749319553375, -0.1884497106075287, -0.7736164331436157, -0.1394384205341339, 0.3319482207298279, 0.7341331839561462, 1.5900192260742188, 0.20098817348480225, -0.8139235377311707, 0.5733247995376587, -0.7384951710700989, -0.3729803264141083, ...
def token _ from _ http _ body ( http _ body ) : for response _ line in http _ body. splitlines ( ) : if response _ line. startswith ('token =') : # strip off token = and return the token value string. return response _ line [ 6 : ] return none
[ 0.5270627737045288, -0.8102773427963257, 0.35426414012908936, -0.31132829189300537, 0.36829161643981934, -0.36488667130470276, -0.4762391448020935, -0.02104094997048378, -0.17070062458515167, -0.044540539383888245, -0.3723415732383728, 0.5887068510055542, 0.272029310464859, -0.455030858516...
def get _ rpm _ str ( self, versioned = false ) : namespace = " mvn " if self. namespace : namespace = self. namespace + " - mvn " mvnstr = " { gid } : { aid } ". format ( gid = self. groupid, aid = self. artifactid ) if self. extension : mvnstr = mvnstr + " : { ext } ". format ( ext = self. extension ) if self. classi...
[ 0.16526255011558533, -1.8791477680206299, 0.4939590096473694, -0.9354609251022339, -0.17127001285552979, 0.4433462619781494, -0.7561753392219543, -0.10250288248062134, 0.30277323722839355, 0.20001938939094543, 0.16054706275463104, 0.6067913770675659, -0.0026413998566567898, 0.1179347783327...
def prune _ loggers ( self, retain : list [ str ] ) - > none : delete _ list = [ ] for logger in self. loggers. keys ( ) : if logger not in retain : module _ logger. info ( " removing logger % s ", logger ) delete _ list. append ( logger ) for logger in delete _ list : del self. loggers [ logger ]
[ -0.011911301873624325, -0.8578125238418579, 0.6505537629127502, -0.10742440819740295, 1.1921409368515015, -0.5814388990402222, -1.0270545482635498, 0.16195091605186462, 1.0743882656097412, 0.13849540054798126, -0.3761133551597595, 1.0013017654418945, -1.664078712463379, 1.1978551149368286,...
def update _ tcp _ listener ( self, blb _ id, listener _ port, backend _ port = none, scheduler = none, health _ check _ timeout _ in _ second = none, health _ check _ interval = none, unhealth _ threshold = none, health _ threshold = none, config = none ) : path = utils. append _ uri ( self. version,'blb ', blb _ id,'...
[ 0.13809968531131744, -0.9839807748794556, 0.6603419184684753, -0.4343363046646118, -0.121139757335186, 0.15361139178276062, -0.4299624264240265, -0.20777066051959991, -0.5371614098548889, 0.8028568029403687, -0.5919687151908875, 0.45201849937438965, -0.9666398167610168, -0.2514298558235168...
def greet ( name ) : print ( " good morning ", name )
[ 0.021034853532910347, -0.16015389561653137, 0.4770278334617615, -0.4500976502895355, -0.64996337890625, 1.0262552499771118, -1.2097697257995605, -0.7688630819320679, -0.576004683971405, -0.08960726857185364, -0.5654383301734924, 0.4536224901676178, -0.37826308608055115, 1.2827839851379395,...
def save ( self, dataset :'dataset ', dataset _ uri : str, *, compute _ digest : computedigest = computedigest. always, preserve _ metadata : bool = true ) - > none :
[ -0.8746041655540466, 0.28631311655044556, 0.4423457086086273, 0.3186781704425812, 0.7364606857299805, -0.30978453159332275, -0.4694744944572449, 1.049015760421753, -0.2798827886581421, -0.15961986780166626, -0.09609123319387436, 0.041285786777734756, 0.0850764662027359, 0.01141903456300497...
def adddevicetype ( self, typeid, description = none, deviceinfo = none, metadata = none, classid = " device " ) : devicetypesurl = apiclient. devicetypesurl % ( self. host ) payload = {'id': typeid,'description': description,'deviceinfo': deviceinfo,'metadata': metadata,'classid': classid } r = requests. post ( device...
[ -1.6717077493667603, 0.1560804694890976, 0.8043887615203857, 0.4165066182613373, 0.2764706611633301, -0.16118305921554565, 0.05980923771858215, -0.6741521954536438, -0.0330691933631897, 0.31759870052337646, -0.40228271484375, 0.518322229385376, -1.4693682193756104, 0.511975109577179, 1.1...
def isatty ( self ) : return self. byte _ source. isatty ( )
[ -0.127576544880867, 0.3420239984989166, 0.1821642518043518, -0.5404273271560669, 0.5333659052848816, -0.38842737674713135, -0.2740440368652344, -0.4077385663986206, 0.5012279152870178, 0.2278503030538559, -0.6413198113441467, 0.025653447955846786, 0.13320857286453247, -0.07259360700845718,...
def test _ list _ decimal _ length _ 3 _ nistxml _ sv _ iv _ list _ decimal _ length _ 4 _ 2 ( 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.09695947915315628, -0.36542752385139465, 0.4084467589855194, 0.2535581588745117, -0.07534398138523102, -0.26171544194221497, -0.45463231205940247, 0.3119414448738098, 0.41338932514190674, 0.04881570115685463, -1.3252949714660645, -0.7928274273872375, -0.016746383160352707, 0.45133441686...
def _ protocol _ version _ characteristic ( self ) : characteristics = self. connection. getcharacteristics ( uuid = protocol _ version _ uuid ) if not characteristics : return none return characteristics [ 0 ]
[ -0.49669548869132996, -1.0868364572525024, 0.30681541562080383, 0.21802957355976105, -0.2967786192893982, 0.5303928852081299, -0.09572578966617584, -0.022391989827156067, -0.007418461609631777, 0.8548822999000549, -0.17821186780929565, 1.002573847770691, -1.380200743675232, -1.815047502517...
def model _ check ( blk ) : # check temperature bounds if value ( blk. temperature ) < blk. temperature. lb : _ log. error ( " { } temperature set below lower bound. ". format ( blk. name ) ) if value ( blk. temperature ) > blk. temperature. ub : _ log. error ( " { } temperature set above upper bound. ". format ( blk. ...
[ 0.15602464973926544, -0.27336040139198303, 0.5201717615127563, 0.4268675446510315, 0.09395161271095276, 0.5440043210983276, 0.40490034222602844, -0.5094824433326721, -1.3610657453536987, 0.4942041039466858, -0.5246821641921997, 0.27510344982147217, -0.07755031436681747, 0.989493727684021, ...
def line _ received ( self, text ) : self. log. debug ('line _ received : {! r } '. format ( text ) ) text = text. rstrip ( ) try : self. _ lastline. clear ( ) if not text : self. display _ text ('' ) self. display _ prompt ( redraw = true ) elif self. process _ cmd ( text ) is not none : self. display _ prompt ( ) exc...
[ 0.6538278460502625, -0.24419240653514862, 0.6815863251686096, 0.015680909156799316, 0.18753065168857574, -0.015419060364365578, -0.14190922677516937, -0.080601766705513, 0.9613049030303955, -0.42787566781044006, -0.19946667551994324, 0.05335017666220665, -0.06572003662586212, 0.40173345804...
def _ connectfootattrs ( self ) : mc. connectattr ( self. ik _ controllers [ " hindleg " ] + ". hockroll ", self. misc [ " foothookattr " ] + ". rx " ) mc. connectattr ( self. ik _ controllers [ " hindleg " ] + ". toeroll ", self. misc [ " rolltoe " ] + ". rx " ) mc. connectattr ( self. ik _ controllers [ " hindleg " ]...
[ -0.38671743869781494, -0.09300754219293594, 0.6643707752227783, -0.34351664781570435, -0.536798894405365, 0.42232245206832886, 0.8604661226272583, -0.6102509498596191, -0.877958357334137, -0.06419281661510468, 0.6617416143417358, -0.4275873005390167, 0.04801065847277641, 0.9520546197891235...
def user _ has _ put _ quota ( self, conn ) : from jdma _ control. models import storagequota # get the storage id storage _ id = storagequota. get _ storage _ index ( " objectstore " ) storage _ quota = storagequota. objects. filter ( storage = storage _ id, workspace _ _ workspace = conn. jdma _ workspace ) [ 0 ] ret...
[ -0.31051868200302124, -0.26217710971832275, 0.5120778679847717, 0.02438429929316044, -0.0149576086550951, -0.8245007395744324, -0.12857703864574432, -0.6992316246032715, -0.40672314167022705, 0.6277569532394409, -0.1062564104795456, 0.2706795334815979, -0.24527055025100708, -0.727318465709...
def deploy ( ) : print ( green ( " installing packages at % s " % str ( env. host _ string ) ) ) from.. deploy import _ deploy _ multiple _ deploy _ multiple ( )
[ -0.3034137487411499, 0.05001046881079674, 0.5228116512298584, 0.5383497476577759, 1.1249957084655762, 0.3001784384250641, 0.22092169523239136, 0.6825182437896729, -0.8322305083274841, 0.7811020016670227, -0.32018956542015076, 0.20313376188278198, 0.06406376510858536, 0.6227616667747498, ...
def celery _ config ( broker _ url, queue _ name ='celery ', * * kwargs ) : config = {'broker _ url': broker _ url, # setup a queue that is ready for prioritized tasks. the queue has to be created this way, # once created in rabbitmq, the setting can't be changed. this can be set without any # penalty for an app that w...
[ 0.15230828523635864, -0.12675438821315765, 1.0258643627166748, 0.02613874524831772, -0.9289268255233765, -1.1468249559402466, -0.03235817328095436, 0.21998876333236694, -0.09054456651210785, 0.7337898015975952, -1.583846926689148, -0.5448532104492188, -0.26450398564338684, 0.98406273126602...
def get _ multiple _ tracks _ info ( self, tracks _ id ) : id _ string = " " for track _ id in tracks _ id : id _ string + = track _ id + ", " track _ info _ data = self. _ make _ request ( f " https : / / api. spotify. com / v1 / tracks /? ids = { id _ string [ : - 1 ] } " ) if track _ info _ data : tracks _ info = [ ...
[ -0.5446133613586426, -0.20061933994293213, 0.5567365884780884, -0.448091983795166, 1.0753436088562012, -0.10936319082975388, -1.6614587306976318, -0.8768525123596191, -1.1251704692840576, 0.11178670823574066, -0.9534645676612854, -0.23800455033779144, -0.17127938568592072, 0.66650295257568...
def remove _ files ( file _ list, verbose, warn = false, force = false ) : for file in file _ list : if path. isfile ( file ) : os. remove ( file ) if verbose : printv ('deleting'+ file ) elif not force : abort ('file'+ file +'does not exists')
[ 0.7761518359184265, 0.27651408314704895, 0.6545143723487854, 1.2678378820419312, 1.1520776748657227, -0.031591445207595825, -0.3996129035949707, 1.12083101272583, -0.1630551964044571, 1.0778114795684814, -0.06024133041501045, 0.17115749418735504, -0.31050434708595276, 0.9355686902999878, ...
def isotope ( symbol _ or _ atn : union [ str, int ], mass _ number : int ) - > isotope : session = get _ session ( ) if isinstance ( symbol _ or _ atn, int ) : return ( session. query ( isotope ). filter _ by ( atomic _ number = symbol _ or _ atn, mass _ number = mass _ number ). one ( ) ) elif isinstance ( symbol _ o...
[ -0.1842070072889328, -0.09952528774738312, 0.3331696689128876, 0.19153839349746704, 0.28654301166534424, -0.8765072226524353, -0.040377020835876465, 0.09758015722036362, -0.004109609872102737, -0.6717147827148438, 0.7743204236030579, 0.1417008489370346, 0.47796565294265747, -0.748777747154...
def dispatch ( message ) : if message. type = = message _ type _ slack : return dispatch _ slack ( message ) else : logging. error ( f " unknown / unsupported message type { message. type } " ) return false
[ -0.12154590338468552, 0.7273826599121094, 0.6143375039100647, 0.8154296278953552, 0.2262287586927414, 0.4966273605823517, -0.16052499413490295, -0.7986272573471069, -0.06144271045923233, -0.07706021517515182, 0.14343221485614777, 0.6576483845710754, -0.731608510017395, 0.7402412295341492, ...
def input _ transpose ( sents, pad _ token ) : max _ len = max ( len ( s ) for s in sents ) batch _ size = len ( sents ) sents _ t = [ ] for i in range ( max _ len ) : sents _ t. append ( [ sents [ k ] [ i ] if len ( sents [ k ] ) > i else pad _ token for k in range ( batch _ size ) ] ) return sents _ t
[ 0.03205716237425804, 0.10356492549180984, 0.812171220779419, -0.7250567078590393, -0.5767121911048889, -0.46355825662612915, -0.1287289559841156, 0.17230643332004547, 0.1331108659505844, 0.9865024089813232, -0.8077412247657776, -0.41041475534439087, -0.26116037368774414, 0.2273879051208496...
def view ( hexdomain ) : # parse out the requested domain domain = tools. parse _ domain ( hexdomain ) # redirect old base64 requests to the new format. if domain is none : redirect _ url = _ base64 _ redirect ( hexdomain ) if redirect _ url is not none : return flask. redirect ( redirect _ url, code = 302 ) flask. abo...
[ -0.1507801115512848, 1.1168935298919678, 0.5861967206001282, -1.0607112646102905, -0.18739864230155945, -0.4467145502567291, 0.41485416889190674, 0.6385350823402405, -0.14978806674480438, -0.9480770826339722, 0.7056059241294861, 0.4956172704696655, -0.11299245804548264, 0.2466573417186737,...
def plot _ price _ with ( self, title, df, x _ col, y _ col ='price') : rental _ price = pd. dataframe ( ) rental _ price = df [ [ x _ col, y _ col ] ]. dropna ( ) ax = rental _ price. plot. scatter ( x _ col, y _ col ) ax. set ( xlabel = x _ col, ylabel ='price in dollars ', title = title )
[ -0.3156386911869049, 0.9200199842453003, 0.7406519651412964, 0.5910395383834839, -0.6933545470237732, 0.5237549543380737, -0.5722399353981018, 0.09557417780160904, -0.5741367936134338, 1.264385461807251, 0.2630281150341034, 1.1324108839035034, 0.5359849333763123, -1.0350797176361084, 0.9...
def _ copy _ data ( self, data ) : file = none try : file = data. pop ('file') except keyerror : pass data = data. copy ( ) data ['file'] = file return data
[ -0.16470348834991455, -0.3823710083961487, 0.3860178291797638, -0.49269959330558777, -0.47366201877593994, 0.9105419516563416, -0.8883117437362671, 0.01539781503379345, -0.36794766783714294, 0.698212742805481, 0.6212173700332642, -0.3191281259059906, 0.098364919424057, -0.6506377458572388,...
def evaluate ( self, x, integrate = true ) : raise notimplementederror ( )
[ -0.06306402385234833, -0.06064392253756523, 0.4373306334018707, -0.3737863302230835, -0.11613867431879044, 1.0276343822479248, -0.3034083843231201, -0.03230529651045799, -0.5038130283355713, -0.22320570051670074, -0.9072399139404297, -0.5671971440315247, -0.45786258578300476, 0.21949897706...
def close _ far ( a, b, c ) : return abs ( a - b ) < = 1 and abs ( a - c ) > = 2 and abs ( b - c ) > = 2 or abs ( a - c ) < = 1 and abs ( a - b ) > = 2 and abs ( b - c ) > = 2 # b is close to a for first half, vice versa for second
[ -0.15475694835186005, -0.42605891823768616, 1.043418526649475, 0.23505516350269318, -0.6585015654563904, 1.5338531732559204, 0.3462849259376526, -0.7975790500640869, -0.7568020224571228, -0.0813678503036499, 0.6407807469367981, 0.02164021134376526, -0.6145505905151367, 0.5108887553215027, ...
def predict ( self, x ) : if not isinstance ( x, np. ndarray ) : x = x. to _ numpy ( ) y _ hat = self. _ forward ( x ) print ( " predicted : ", y _ hat ) return y _ hat
[ 0.14716243743896484, 0.11172645539045334, 0.5161598324775696, 0.4134262502193451, -0.9344882965087891, 0.5683706998825073, 0.31622976064682007, -0.32133591175079346, 0.7917557954788208, -1.225121021270752, -0.3375592827796936, 0.8123006224632263, 0.5059822201728821, 0.5289445519447327, -...
def test _ delete ( self ) : pass
[ 1.3315870761871338, 0.2567823529243469, 0.22744803130626678, 1.2495677471160889, 1.3308724164962769, 0.8618934750556946, 1.5805937051773071, 0.5674317479133606, 1.0038038492202759, -0.6712881922721863, -0.032411761581897736, 0.09904443472623825, -1.3387620449066162, -0.3117172420024872, ...
def get _ player _ num _ left _ of _ dealer ( self ) : player _ num = self. dealer _ num + 1 player _ num % = len ( self. players ) return player _ num
[ -0.9787079691886902, -0.5488900542259216, 0.8490939140319824, 0.32972240447998047, 0.7377069592475891, -0.1682382971048355, 0.557155430316925, 0.2848331034183502, 0.3058115541934967, -0.257403165102005, -0.4513103663921356, -0.18713676929473877, -0.4453667998313904, 1.080409288406372, 1....
def write _ string ( self, address : int, string : str, encoding : str = " ascii " ) : self. seek ( address ) self. write ( string. encode ( encoding ) + b " \ x00 " )
[ 0.14883911609649658, -0.6750456094741821, 0.07215788215398788, -0.5529167056083679, -0.23243774473667145, 0.09778027981519699, 0.05859367921948433, 0.04424123093485832, 0.7732829451560974, -0.16458237171173096, -0.2888806462287903, 1.0261502265930176, 0.08937938511371613, -0.73944938182830...
def log ( self, global _ step, epoch _ count, train _ loss, valid _ loss, test _ loss, train _ accuracy, valid _ accuracy, test _ accuracy, learning _ rate, ) : # store inputs self. output [ global _ step ] [ " epoch _ count " ] = epoch _ count self. output [ global _ step ] [ " train _ loss " ] = train _ loss self. ou...
[ -0.22574900090694427, -0.10299023985862732, 0.47532644867897034, -0.4526282548904419, -0.02861880138516426, 0.22591033577919006, 0.37817105650901794, 0.3167429566383362, -1.4140077829360962, -0.12549017369747162, -0.8555953502655029, 0.5823650360107422, 0.29581260681152344, 0.4714466333389...
def _ _ init _ _ ( _ _ self _ _, resource _ name : str, opts : optional [ pulumi. resourceoptions ] = none, role : optional [ pulumi. input [ str ] ] = none, token _ id : optional [ pulumi. input [ str ] ] = none, _ _ props _ _ = none ) :...
[ 0.7207046747207642, -0.20843513309955597, 0.5367295742034912, -0.8365017175674438, 0.1683858036994934, -0.23074842989444733, -0.4387884736061096, 0.2806576192378998, 1.1376055479049683, -0.527276873588562, -0.21147483587265015, 0.7820762991905212, 0.6776552796363831, -1.3221484422683716, ...
def read _ tokenizer _ metadata ( elf ) - > dict [ str, int ] : sections = _ elf _ reader ( elf ). dump _ sections ( r'\. pw _ tokenizer _ info') metadata : dict [ str, int ] = { } if sections is not none : for key, value in struct. iter _ unpack ('12si ', sections ) : try : metadata [ key. rstrip ( b'\ 0'). decode ( )...
[ -0.778598427772522, -0.22919075191020966, 0.45570945739746094, -1.3303511142730713, -1.5031529664993286, -0.5931367874145508, -0.9792380928993225, 0.1944648027420044, -1.2501205205917358, 0.3574284017086029, -0.2625024914741516, -0.505206823348999, -0.09013503789901733, 1.05282461643219, ...
def update _ isymbols ( self, isymbols ) : with open ( self. isymbols _ fn,'w') as f : f. write ( isymbols ) return self
[ -0.681753933429718, -0.30594155192375183, 0.4498651921749115, 0.016181569546461105, -0.1634625643491745, 0.5842480063438416, 0.8977380394935608, 0.5094946026802063, 0.753404438495636, 0.4124661684036255, -1.3651330471038818, 0.7075792551040649, -0.7616251707077026, -0.6233823299407959, -...
def start _ jupyter ( self, args ) : install _ func = partial ( run _ cmd, show _ output = logger. verbose ) try : install _ func ( [ " jupyter ", " - - version " ] ) except calledprocesserror : jupyter = " ipython " else : jupyter = " jupyter " # always install kernels if given no args, otherwise only if there's a ker...
[ -0.6275498867034912, -0.018168827518820763, 0.8080743551254272, 0.13389275968074799, 0.21808740496635437, 0.017990324646234512, 0.05634819716215134, 0.2799991965293884, -1.0001641511917114, 0.6540535688400269, -0.09927733242511749, -0.01941695436835289, -0.14143851399421692, 0.732737123966...
def _ generate _ sample _ coltype _ map ( ) : tmap = { } s = sample ( ) for c in s. _ _ table _ _. columns : tmap [ c. name ] = c. type return tmap
[ -0.49380677938461304, -0.5805731415748596, 0.5675472617149353, -0.5623969435691833, -0.7460503578186035, -0.19963526725769043, 0.5900662541389465, -0.3448038399219513, -0.6127752661705017, 0.5871692299842834, -1.783441185951233, -0.4862474501132965, 0.5677495002746582, 0.1436351090669632, ...
def shard _ dataset ( ds : dataset, max _ size : int ) - > list [ dataset ] : number _ shards = compute _ number _ of _ shards ( ds, max _ size ) if number _ shards < = 1 : return [ ds ] results = [ ] logger. info ( f " shard dataset in { number _ shards } shards " ) for shard _ id in range ( number _ shards ) : logger...
[ -0.4153636693954468, 1.5255935192108154, 0.5235205292701721, 0.17487357556819916, 0.21633298695087433, -0.7866588830947876, -0.4590708911418915, 0.513712465763092, 1.221853494644165, -0.47947195172309875, 0.25621917843818665, 0.5575152635574341, 0.2978070080280304, -0.4369048476219177, 0...
def get _ dataset _ id ( self, dataset _ format ) : try : return interpolate ( dataset _ format, self. attributes ) except : raise missingpatternkey ( self. attributes. keys ( ), dataset _ format )
[ -0.2031293511390686, 0.1012621819972992, 0.22353513538837433, -0.6226916909217834, -0.2291267216205597, -0.249432772397995, -0.604847252368927, 0.020404117181897163, 0.44453367590904236, -0.5725497603416443, 0.8592385649681091, 0.18445460498332977, 0.44953227043151855, 0.08287519961595535,...
def test _ get _ best _ model ( self ) : # aic order is null, alt1, alt2 # in this case, no substantial diff, so should return smaller nfp, ie null hyp = _ make _ hyp ( 112, 110, 111, 10, 11, 12 ) got = hyp. get _ best _ model ( threshold = 0. 05 ) self. assertis ( got, hyp. null ) # here alt2 is winner hyp = _ make _ ...
[ -0.022975033149123192, -0.4293976128101349, 0.578432023525238, 0.7980929017066956, 0.6594138741493225, -0.2404734343290329, -0.3102347254753113, -0.5632705688476562, -0.14546135067939758, -1.0063670873641968, -0.2446386218070984, 0.30187731981277466, 0.5820617079734802, -0.5908304452896118...
def _ has _ json _ fields ( cls, sort _ list ) : fields = [ f. name for f in instance. _ meta. get _ fields ( ) ] return any ( [ i for i in sort _ list if i. lstrip ('-') not in fields ] )
[ -0.7887359857559204, 0.12553894519805908, 0.6798710227012634, -0.3106580376625061, -0.33089882135391235, 0.09860281646251678, -0.8611270189285278, -0.49976474046707153, -0.6743004322052002, 0.3552253544330597, -1.2962301969528198, -0.5407460331916809, 0.04384159296751022, 0.353055596351623...
def _ _ getitem _ _ ( self, index ) : item = self. data [ index ] return item
[ -0.6016695499420166, -0.33771708607673645, 0.19402240216732025, -1.010954737663269, -0.07797864824533463, 0.5056652426719666, -0.14028050005435944, -1.1978332996368408, -0.08805499225854874, -1.1249703168869019, -0.042927782982587814, 0.8262705206871033, 0.15462394058704376, -1.72164201736...
def latin _ american _ child ( self, parent ) : name = name ( ) # the editor requires a surname name. add _ surname ( surname ( ) ) name. set _ primary _ surname ( 0 ) # for each child, find one with a last name for ref in self. obj. get _ child _ ref _ list ( ) : child = self. db. get _ person _ from _ handle ( ref. r...
[ 0.3591889441013336, -0.14141850173473358, 0.7639705538749695, -0.6133800148963928, -0.7328587770462036, 0.06449198722839355, -0.7785574793815613, -0.47426682710647583, -0.2500638961791992, 0.2189752161502838, -0.24493683874607086, -0.5487757325172424, 0.435641884803772, 0.6297983527183533,...
def execute ( self, args, unnamed _ args ) : name ='' if'muted'in args : try : par = args ['muted']. capitalize ( ) except attributeerror : par = args ['muted'] muted = bool ( eval ( par ) ) else : muted = false try : name = args ['name'] except keyerror : if muted is false : self. raise _ tcl _ error ( " object name i...
[ 0.24179144203662872, -0.27997541427612305, 0.8204839825630188, 0.1306183636188507, 0.06060031056404114, -0.29851987957954407, 0.03759748861193657, -1.0924010276794434, -0.18502263724803925, 0.9807131886482239, 0.10068534314632416, 0.3297196924686432, 0.40564095973968506, -0.043307024985551...
def cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefiltericf2cficf2 _ superclass _ cast ( * args )
[ 1.0488983392715454, -0.8207446336746216, 0.30356237292289734, 0.27589744329452515, -0.18272563815116882, -0.023624062538146973, 0.7993189096450806, 0.6601823568344116, -0.6713429093360901, -0.4157333970069885, -0.902021050453186, -0.11513782292604446, 0.11561612784862518, 0.152257427573204...
def generate _ output _ paths ( self, received _ data ) : inputs = packetregister ( received _ data ) out _ paths = { } wildcards = self. parse _ wildcards ( received _ data ) for out, out _ port in self. outputs. items ( ) : try : current _ formatter = self. output _ formatters [ out ] except keyerror : current _ form...
[ -1.0537034273147583, -0.6092946529388428, 0.48331716656684875, -0.3322412073612213, -0.7213115096092224, -0.45409297943115234, 0.8379497528076172, 0.20665323734283447, -0.3146999478340149, -0.8515306711196899, 0.2434816211462021, -0.2765699625015259, 0.022057654336094856, 0.854614734649658...
def set _ mixture _ kk ( self, clip = true ) : assert 0 < = self. kk1 _ p < = 1., " kk1 mixture ratio must be between 0 and 1 " assert 0 < = self. kk2 _ p < = 1., " kk2 mixture ratio must be between 0 and 1 " self. kk1 = sp. zeros ( ( self. mm, self. nn ) ) self. kk2 = sp. zeros ( ( self. mm, self. nn ) ) num _ comp1 =...
[ -0.05599982291460037, -0.46091315150260925, 0.9475253224372864, 0.6691018342971802, -0.47181764245033264, 0.33476606011390686, 0.4163063168525696, 0.5456172227859497, 0.0402238629758358, 0.2034887820482254, 0.0474921353161335, 0.6591396331787109, 0.26445427536964417, 0.5924615859985352, ...
def remove _ from _ queue ( pos _ idx ) : persistence. delete _ from _ queue ( pos _ idx ) return'ok '
[ -0.399564266204834, -0.42997679114341736, 0.25459063053131104, -0.2910916209220886, 0.21176967024803162, -0.4331682324409485, -0.6533093452453613, -0.023424722254276276, 0.5018817782402039, 0.49076664447784424, -0.2860028147697449, -0.4483214020729065, -0.3129117488861084, -0.8188291192054...
def random _ fill _ word ( word ) : x = random. randint ( 0, len ( word ) - 2 ) new _ list = [ ] letter = word [ x ] for i in word : if i = = letter : new _ list. append ( i ) else : new _ list. append ('_') j =''. join ( new _ list ) return ( j )
[ -1.2485638856887817, 0.405473530292511, 0.6583280563354492, -0.9012519717216492, -0.8876050114631653, 0.5143846273422241, 0.1322631686925888, -0.3147406578063965, 0.7029343247413635, 0.7538490295410156, -1.0613213777542114, 0.19166775047779083, -0.23435495793819427, 0.681178629398346, -0...
def test _ run _ command ( ) : sample _ exe = " python " cmd = " echo " rs = runsettings ( sample _ exe, run _ command = cmd ) rc _ output : str = rs. run _ command or " " assert len ( rc _ output ) > len ( cmd )
[ -0.0166129469871521, -0.12936235964298248, 0.405823677778244, 0.39260727167129517, 0.626835286617279, -0.12648898363113403, -0.06166066974401474, -0.6770370602607727, 0.21059107780456543, -0.8429625034332275, -0.47254300117492676, 0.1810779869556427, -0.6680792570114136, 0.1903745532035827...
def deletemusic ( self, music ) : if pygame. mixer. music. get _ busy ( ) and self. music [ self. currentindex - 1 ]. path = = music. path : pygame. mixer. music. stop ( ) del self. music [ self. currentindex ] # self. currentindex - = 1 self. letsplay ( ) elif pygame. mixer. music. get _ busy ( ) : del self. music [ s...
[ -0.2823905944824219, -0.0036401539109647274, 0.7259421348571777, -0.24080617725849152, 0.23746757209300995, 0.603645384311676, 0.7694743871688843, -0.6932255625724792, 0.43678992986679077, 0.2635294198989868, -0.11487548798322678, 0.17006680369377136, -1.6490488052368164, -0.31315070390701...
def hasgladeprojectcssfilename ( filename ) : css _ filename = getgladeprojectcssfilename ( filename, do _ realpath = false ) return css _ filename is not none
[ 0.23014093935489655, -0.25709328055381775, 0.5310600996017456, -0.12751813232898712, 0.13463298976421356, 0.7098486423492432, -0.010927252471446991, 0.03438853472471237, -1.1199359893798828, 0.34314242005348206, -0.113980732858181, -0.2634921967983246, -0.02663659304380417, -0.297811299562...
def test _ atomic _ qname _ enumeration _ nistxml _ sv _ iv _ atomic _ qname _ enumeration _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - enumeration - 1. xsd ", instance = " nistdata / atomic / qn...
[ -0.43421226739883423, -1.045758843421936, 0.4390910267829895, 0.026075856760144234, -0.4648110270500183, 0.20087462663650513, 0.5151088833808899, -0.8012547492980957, 0.12289459258317947, 0.7850353717803955, -0.4286724627017975, -0.22926707565784454, -0.05784425139427185, 0.070200353860855...
def check _ add _ link ( self, typ, link ) : f = false if typ = ='image': if not ( typ, link ) in self. images : self. images. append ( ( typ, link ) ) elif not ( typ, link ) in self. links : # print'adding link ', link, typ pos = self. getpos ( ) self. links. append ( ( typ, link ) ) self. linkpos [ ( typ, link ) ] = ...
[ -1.047249436378479, -0.03884096443653107, 0.5085219144821167, -0.23349672555923462, 0.9128350615501404, 0.226124569773674, -0.7114824652671814, -0.22929534316062927, 0.2906954884529114, -0.8712729811668396, 0.3104092478752136, 0.19934402406215668, -1.0355209112167358, 1.0913838148117065, ...
def new _ interval ( self ) : for i in range ( self. _ interval _ to _ large _ switch. size ) : if self. _ interval _ to _ large _ switch [ i ] = = 0 : return i + 1
[ -0.8438411355018616, 0.41375577449798584, 0.4796847105026245, 0.24074941873550415, -0.730782151222229, 0.8256363868713379, 0.5926289558410645, 0.34754297137260437, -0.4321514368057251, -0.4419906735420227, 0.27288293838500977, 0.3779079020023346, -0.7226201891899109, 0.18665026128292084, ...
def increment _ year ( self ) : next _ year = self. _ _ policy. current _ year + 1 self. _ _ records. increment _ year ( ) self. _ _ policy. set _ year ( next _ year )
[ -0.04274816811084747, -0.26939281821250916, 0.6235259175300598, 0.05562489479780197, 0.09056919068098068, 1.612991213798523, 0.30025213956832886, 0.7428969740867615, 0.3442286252975464, 0.06401930004358292, -0.050652291625738144, 0.4806819558143616, -0.16890352964401245, -0.039518378674983...
def get _ completed _ deletes ( backend _ object ) : # avoiding a circular dependency from jdma _ control. models import migrationrequest, migration, storagequota # get the storage id storage _ id = storagequota. get _ storage _ index ( " ftp " ) # get the decrypt key key = aes _ tools. aes _ read _ key ( settings. enc...
[ -0.026000455021858215, 0.18264538049697876, 0.7548104524612427, 0.2169799953699112, -0.09738436341285706, -0.28911271691322327, 0.14434443414211273, -0.09154576808214188, -0.0070566292852163315, 0.9476099014282227, -0.05140138417482376, 0.111026331782341, -0.42616188526153564, 0.6689908504...
def remove _ non _ ascii ( doc : str ) - > str : return''. join ( char if ord ( char ) < 128 else'' for char in str ( doc ) )
[ 0.4882444441318512, -0.3019528090953827, -0.042664073407649994, -0.3092454969882965, -1.5360417366027832, 0.7314575910568237, -0.7702623605728149, -0.13797633349895477, -0.1721876561641693, 0.809817910194397, -0.3068685233592987, -0.06475226581096649, -1.210798740386963, -0.338109612464904...
def makezero ( cls, m, n ) : return matrix ( m, n, init = true )
[ 0.13760267198085785, -1.0252450704574585, 0.29700207710266113, 0.3341670334339142, 0.1496519148349762, 0.01150061096996069, -0.10231117904186249, 0.2162042260169983, -0.33902618288993835, -0.9954586625099182, 0.13928528130054474, 0.40188583731651306, -0.2892470955848694, -0.263709366321563...
def test _ atomic _ base64 _ binary _ length _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ length _ 1 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - length - 1. xsd ", instance = " nis...
[ 0.35024887323379517, -0.4123125374317169, 0.3589133322238922, 0.9588413834571838, 0.3740222156047821, 0.010468432679772377, 0.4709605276584625, -0.07441253960132599, 0.11723688989877701, 0.44381511211395264, -0.388046532869339, -0.25510528683662415, -0.6710006594657898, 0.41433700919151306...
def welcomescreen ( self ) : self. canvas. delete ( " all " ) # clear the screen self. roundentryerror. grid _ forget ( ) self. canvas. create _ image ( 300, 300, image = self. bimage ) # displaying the background image self. canvas. create _ text ( 300, 50, text = " welcome to quick maths ", font = " courier 30 italic...
[ 0.7333174347877502, 0.31274330615997314, 0.7247160077095032, -0.682367205619812, 0.3411146402359009, -0.17201927304267883, 0.8578733801841736, -1.2638874053955078, 0.5515652894973755, 0.14361898601055145, 0.4673192799091339, 0.5092514753341675, 0.1450568586587906, 1.4972081184387207, 0.0...
def singlewellplot ( uberplot, xlims, mass, well, numplots, plotnum, usegauss, verbose ) : ax = uberplot. add _ subplot ( numplots, 1, plotnum ) pyplot. title ('well { } '. format ( well. mzml. split ( '.') [ 0 ] ), size ='large') if verbose > = 2 : ax. plot ( * well. chromatogramfeatures [ mass ] ['smoothed'], color =...
[ 1.1766242980957031, 0.05314144864678383, 0.8225581645965576, 0.07541530579328537, -0.6602394580841064, 0.4753587245941162, 0.4159433841705322, 0.36304762959480286, 0.0849139392375946, -0.46194908022880554, 0.3214472830295563, 1.1320632696151733, -0.2816750109195709, 0.3674744963645935, 0...
def test _ list _ insert _ index _ negative ( self ) : key = ('test ','demo ', 1 ) try : testlistinsert. client. list _ insert ( key, " age ", - 6, false ) except e. invalidrequest as exception : assert exception. code = = 4 assert exception. msg = ='aerospike _ err _ request _ invalid '
[ -1.4316130876541138, 0.9145053625106812, 0.3913685083389282, 0.3318673372268677, 0.5777893662452698, 1.0441033840179443, -0.8376701474189758, 0.08819419145584106, 0.028009237721562386, 0.581321120262146, -0.6385265588760376, -0.2550395131111145, -1.156461477279663, 0.4889906644821167, 0....
def transform _ data ( d, n _ parent = 0, num = 1, h _ elem = [ ] ) : _ _ b _ have _ next = lambda parent, num : d. get ( str ( parent ) + " : " + str ( num + 1 ) ) _ _ b _ have _ child = lambda parent, num : d. get ( str ( parent ) + " : " + str ( num ) ) # # # 1 ) form dictionary of father - child d _ trans = dict ( ...
[ -0.5422398447990417, 0.8622205257415771, 0.6642513871192932, 0.27465346455574036, -0.9592993259429932, -0.6711516976356506, 0.580085813999176, 0.6329266428947449, -0.517655611038208, -0.22006577253341675, -1.1505180597305298, -0.6470035910606384, 0.8360248804092407, 0.3965260088443756, 0...
def is _ authorized ( self ) : return'private _ token'in self. account. data
[ -0.13371522724628448, -0.1075655072927475, 0.3058594763278961, 0.4326865077018738, 0.23074209690093994, -0.5662286877632141, -1.0802648067474365, 0.23402664065361023, 0.5359962582588196, -0.4611426889896393, -0.42854684591293335, 1.739182710647583, 0.24704773724079132, -0.24108538031578064...
def index ( cls, query, fields, count, pagestart ) : search _ dict = { } # dict to store the converted key : value search terms more _ results = false # boolean to indicate whether there are more results pagenext = none # int to indicate the paging key for use with next page link if not pagestart : pagestart = 1 # e st...
[ -0.9656708836555481, -0.08473977446556091, 0.5706987977027893, -0.9564932584762573, -0.38130688667297363, -0.15846535563468933, -0.17656472325325012, 0.2980228662490845, -0.9575429558753967, 0.48831474781036377, -0.3597911596298218, -0.2524259090423584, -0.20359641313552856, 0.011230475269...
def add _ spam ( menu = none ) : if menu is none : menu = [ ] menu. append ('spam') return menu
[ 0.0036333948373794556, 0.618983268737793, 0.4466210901737213, 0.5383563041687012, 0.5217800140380859, 0.2908562123775482, -1.307625412940979, 1.6261186599731445, 1.335953712463379, -0.3180813789367676, -0.9378604888916016, 0.6374311447143555, -1.057745099067688, 1.5079560279846191, -0.62...
def get _ and _ reset _ closed _ files _ checkpoints ( self, ) : # type : ( ) - > dict [ six. text _ type, any ] with self. _ closed _ files _ checkpoints _ lock : result = self. _ closed _ files _ checkpoints # empty the collection, since the current collections have already been returned. self. _ closed _ files _ che...
[ -0.9335718750953674, -0.6931837201118469, 0.3892512619495392, 0.653583288192749, -0.015281528234481812, 0.6025204062461853, 0.6263876557350159, -1.1794686317443848, -0.745553195476532, -0.30766189098358154, -0.23705361783504486, -0.30989885330200195, -1.005582332611084, -0.4071164131164551...
def get _ txt _ features _ ala2 ( filename, num _ frames, cossin = false ) : phi = [ ] psi = [ ] curr ='phi'with open ( filename ) as f : for s in f. readlines ( ) : if s = ='phi \ n'or s = ='psi \ n': continue if s = ='\ n': curr ='psi'else : if curr = ='phi': phi. append ( float ( s ) ) else : psi. append ( float ( s...
[ -0.18734097480773926, -0.7006194591522217, 0.7132956385612488, -0.3663005530834198, 0.009873115457594395, -0.41455623507499695, 0.18913039565086365, 1.6159348487854004, 0.4381796419620514, 0.38861167430877686, -0.747535228729248, 0.8546912670135498, -1.217928409576416, 0.49941909313201904,...
def step ( self ) : self. scheduler _ step _ fn [ self. scheduler _ choice ] ( self. scheduler )
[ -0.5481257438659668, -0.32729288935661316, 0.2348102629184723, 0.9654691815376282, 0.22159560024738312, 0.08688725531101227, 0.5506500005722046, 0.3530963957309723, -0.2870919704437256, -1.0087014436721802, -0.21620969474315643, 0.08732273429632187, 0.6004074215888977, 0.20398887991905212,...
def raw _ patches ( files ) : # create the processing group. group = threadedgroup ( ) # create the wrapper function to load a patch file. def load _ patch ( patch _ dict, file _ name ) : # parse the patch file. with open ( file _ name ) as patch : for index, row in enumerate ( csv. dictreader ( patch ) ) : # insert th...
[ -0.5307766199111938, -0.050089213997125626, 0.5698822736740112, -1.0039300918579102, -1.258927822113037, -0.23204007744789124, 0.36280348896980286, 0.00958937406539917, -0.8073607683181763, -0.49423882365226746, -0.4704446494579315, 0.009601944126188755, 0.14780345559120178, -0.24281181395...
def rgb ( self ) : if not hasattr ( self,'_ rgb') : self. _ rgb, self. _ rgb _ bg, self. _ style = decode _ ansi ( self. _ ansi ) return self. _ rgb
[ 0.008306418545544147, 0.06444227695465088, 0.4640513062477112, 0.3644963502883911, -0.8720806241035461, -0.2635107934474945, -0.32391083240509033, -0.5787166953086853, -0.28117990493774414, -0.06394676864147186, -0.7387416958808899, 0.5490624904632568, -0.48885175585746765, 0.4363123476505...