text
stringlengths
25
2.19k
embedding
listlengths
768
768
def get ( self, length = 16 ) : password _ text =''. join ( secrets. choice ( string. ascii _ uppercase + string. punctuation + string. ascii _ lowercase + string. digits ) for _ in range ( length ) ) password = {'password': password _ text } return jsonify ( password )
[ -0.6099216938018799, -0.705086886882782, 0.5347239375114441, -0.7611521482467651, -0.13686500489711761, -0.7515119314193726, -1.469759225845337, -0.2518896758556366, 0.21271304786205292, 0.13117867708206177, -1.6897200345993042, 0.40121281147003174, -0.26890894770622253, -0.533022820949554...
def getbeam ( ) : supporttypes = { " 1 " : " both ", " 2 " : " cantilever " } # get input for length & support, and check whether both are valid length = input ( " input beam length [ m ] : " ) if not isfloat ( length ) : print ( " you must input a scalar! " ) return none print ( " support types : " ) print ( " 1. both...
[ 0.6819119453430176, 0.14402230083942413, 0.7565903663635254, 0.5032662749290466, -1.328557014465332, 0.4409014880657196, 0.21426206827163696, 0.2768647074699402, -0.029554296284914017, -0.575726330280304, -1.1085095405578613, 0.5951157808303833, -1.2221076488494873, 0.9593262076377869, 1...
def sicbuild ( self ) : indextoretentiontime = { } # build sim chromatograms for each target mass precision = self. parameters ['mz precision'] reader = pymzml. run. reader ( self. mzml, msn _ precision = precision ) #, obo _ version ='4. 0. 1') scan _ index = 0 simdict = collections. defaultdict ( lambda : ( [ ], [ ] ...
[ -0.33212172985076904, -0.6169388294219971, 0.7111494541168213, 0.384275883436203, -0.18670544028282166, 0.6568718552589417, 0.5597186088562012, -0.02222503162920475, -0.3054819107055664, -0.08952479809522629, 0.18750014901161194, 0.18927590548992157, -0.7956649661064148, -0.203137204051017...
def get _ book _ by _ isbn ( isbn ) : rsp = requests. get ('https : / / www. goodreads. com / book / isbn? format = xml & isbn = % s & key = % s'% ( isbn, goodreads _ api _ key ) ) if rsp. status _ code! = 200 : raise keyerror ( " book not found by isbn % s " % isbn ) root = et. fromstring ( rsp. text ). find ('book') ...
[ -0.4236030876636505, -0.33500468730926514, 0.6016180515289307, 0.4494676887989044, -0.2371455878019333, 0.1522361934185028, -0.7784664630889893, -0.16599702835083008, -0.04033002257347107, -0.08491439372301102, -0.05691845342516899, 0.6444488763809204, -0.5173662304878235, -0.1250652521848...
def get _ post _ lb _ rack _ vthunder _ association _ flow ( self, prefix, topology, mark _ active = true ) : sf _ name = prefix +'-'+ constants. post _ lb _ amp _ association _ subflow post _ create _ lb _ flow = linear _ flow. flow ( sf _ name ) post _ create _ lb _ flow. add ( vthunder _ tasks. setupdevicenetworkmap...
[ 1.1707329750061035, -0.9786528944969177, 0.45488330721855164, 0.7977353930473328, 0.156563401222229, 0.39152848720550537, 0.8673561215400696, -0.5049833059310913, 0.0811602845788002, 0.045705582946538925, -0.565894365310669, -0.4521983563899994, -0.036797940731048584, 0.5416921973228455, ...
def into ( self, table ) : self _ iter = iter ( self ) self _ colu = next ( self _ iter ) for row in self _ iter : table. insert ( * * { name : data for name, data in zip ( self _ colu, row ) } )
[ -0.627531886100769, 0.7029049396514893, 0.6370862126350403, -0.06601408123970032, -0.2613637149333954, 0.3178437054157257, 0.02811671979725361, 0.0481097549200058, -1.3243238925933838, -0.02647150307893753, -0.7427330017089844, -0.0720716044306755, -0.12889418005943298, 0.18399235606193542...
def cmpfilenames ( n1, n2 ) : if len ( n1 ) > len ( n2 ) : return 1 elif len ( n1 ) < len ( n2 ) : return - 1 else : # strings of the same length can be compared normally return cmp ( n1, n2 )
[ -0.17978671193122864, -0.35786253213882446, 0.8030776977539062, -0.490954726934433, -0.4864439070224762, 0.3836385905742645, -0.8385000228881836, -0.15286296606063843, -0.7132405042648315, 0.04538613185286522, -0.04776353761553764, -0.19932478666305542, -0.3716076910495758, 0.6010218262672...
def time _ left _ check ( hours _ inp, minutes _ inp ) : curr _ hour = datetime. now ( ). hour curr _ min = datetime. now ( ). minute curr _ time _ in _ min = curr _ hour * 60 + curr _ min if hours _ inp = = 0 : # if 24 : 00 now minutes _ left = ( 24 * 60 + minutes _ inp ) - curr _ time _ in _ min else : minutes _ left...
[ 0.2272208034992218, -0.5842642784118652, 0.7400007843971252, -0.45130637288093567, 0.1963236778974533, 1.3829290866851807, -0.45789623260498047, -0.5024075508117676, -0.12051595002412796, 0.566363513469696, 0.2982642650604248, -0.0698700100183487, -0.9227665066719055, 0.7167389988899231, ...
def process _ message ( * args, * * kwargs ) : pass
[ -0.08941864967346191, 0.07570500671863556, 0.6178287267684937, 0.2078394889831543, 1.292477011680603, -0.4837864637374878, 0.1773328185081482, 0.03144625201821327, -0.6233280897140503, -0.5325347781181335, 0.07031328231096268, 1.0960354804992676, -1.1010329723358154, 0.506399393081665, -...
def frequency ( self, word ) : # todo : retrieve word frequency count count = 0 if ( self. _ _ contains _ _ ( word ) ) : for key in self. keys ( ) : data = self [ key ] for i in range ( len ( data ) ) : if ( data [ i ] [ 0 ] = = word ) : count + = data [ i ] [ 1 ] return count
[ 0.015397196635603905, 0.4965091943740845, 0.3992604911327362, 0.13154534995555878, -0.3623098134994507, -0.6005224585533142, 0.11546354740858078, 0.15875466167926788, -0.5188964605331421, -0.6664740443229675, -0.1679283082485199, 0.19788548350334167, -0.6498099565505981, 0.7013103365898132...
def add _ work _ arrangement ( self, request _ data : request _ data _ models. createworkarrangementdata ) : employee = self. _ employee _ repo. employee _ exists ( request _ data. employee _ id ) if employee is none : raise domain _ validators. objectentitydoesnotexist ( " employee does not exist " ) # check if employ...
[ -1.1882694959640503, -0.119845911860466, 0.9396090507507324, 0.10412725061178207, -0.08817193657159805, 1.264704704284668, 0.452950119972229, -0.4573708474636078, -0.034205492585897446, 0.6444574594497681, -0.2762141227722168, -0.16446883976459503, -0.29685279726982117, 0.07550427317619324...
def epoch _ data ( self, data, mode = " 1 ", window _ length = 2, overlap = 125 ) : array _ epochs = [ ] i = 0 self. window _ size _ hz = int ( window _ length * self. sample _ rate ) if mode = = " 1 " : while ( i < len ( data ) ) : array _ epochs. append ( data [ i : i + self. window _ size _ hz ] ) i = i + self. wind...
[ -0.48148125410079956, 0.34968629479408264, 0.933923065662384, 0.19368958473205566, -0.5196950435638428, 0.26090848445892334, 0.2844390273094177, -0.052598726004362106, -0.33140283823013306, 0.3909505605697632, -0.30023670196533203, 0.9585607051849365, -0.5413296222686768, 0.381624579429626...
def test _ call _ result _ to _ file ( self ) : expected _ lines = rdp _ test1 _ expected _ lines # since there is some variation in the assignments, run # 10 trials and make sure we get the expected result at least once # for each sequence num _ trials = 10 num _ seqs = len ( expected _ lines ) assignment _ comp _ res...
[ 0.20495514571666718, -0.29859551787376404, 0.5349662899971008, -0.5614054203033447, 0.7887184023857117, 0.4536582827568054, 0.5035384297370911, -0.2911715507507324, -0.457986444234848, 0.27269890904426575, 0.4401313364505768, -0.2723410427570343, -0.09216634184122086, 0.02186433970928192, ...
def pbm _ table _ pie ( data, title ='', divid ='plot ', startdate ='', enddate ='', \ colors = [ ], plotid ='', \ template ='pbm / templatetags / pbm _ table _ pie. html ', * args, * * kwargs ) : returndata = { \'data': data, \'title': title, \'divid': divid, \'startdate': startdate, \'enddate': enddate, \'colors': co...
[ -0.512095034122467, 0.3270815312862396, 0.5225529670715332, 0.0461677685379982, -1.0568937063217163, 0.6009761691093445, -0.5380712747573853, 0.08769841492176056, -0.9023923873901367, 0.2379911094903946, -0.17348985373973846, -0.4343571066856384, -0.7108237743377686, 0.13462841510772705, ...
def infer _ on _ stream ( args, client ) : # initialise the inference engine infer _ network = network ( ) # set probability threshold for detections prob _ threshold = args. prob _ threshold # load the network model into the ie infer _ network. load _ model ( args. model, args. device, args. cpu _ extension ) input _ ...
[ 0.05813988670706749, 0.17945189774036407, 0.9795664548873901, 0.9294262528419495, -0.00913270004093647, -0.42604541778564453, 0.14771504700183868, -0.6369969248771667, -0.22520141303539276, -0.3894008994102478, -0.049811478704214096, 0.5953577756881714, -0.32248011231422424, 1.165185809135...
def generate _ forecast _ from _ mix ( data, model, start = none, end = none, resolution = none, params = none ) : # get all relevant columns column _ names = [ ] for column _ name in data : if column _ name in valid _ energy _ mix _ columns : column _ names. append ( column _ name ) # set forecasting model for each co...
[ -0.6430981159210205, -0.2026630938053131, 0.5773501396179199, 0.8606370687484741, -0.360866904258728, -0.41860276460647583, 0.33666566014289856, 0.03216954320669174, -0.8148754239082336, -0.28809764981269836, -0.3726068437099457, -0.8329344987869263, -0.5210648775100708, 0.2745653390884399...
def _ count _ value _ instances _ among _ keys ( tags _ dict, keys, values, full _ match = true, keys _ regex = false, none _ value = np. nan, * * unused ) : findings = [ ] for key, value in tags _ dict. items ( ) : if _ key _ in _ set ( key, keys, keys _ regex = keys _ regex ) : if isinstance ( value, str ) : if full ...
[ 0.046377576887607574, 0.001737095764838159, 0.572425901889801, -0.9230993390083313, -0.5165388584136963, -0.5132726430892944, -0.4402328133583069, 0.6187539100646973, -1.3131088018417358, -0.002186947502195835, 0.1934935599565506, -0.01252812147140503, -0.24234680831432343, 0.7986484766006...
def _ updateoneperiod ( self ) : self. _ last _ last _ page _ count = self. _ last _ page _ count self. _ last _ page _ count = self. _ current _ page _ count
[ -0.6099899411201477, -1.5465068817138672, 0.44664284586906433, -1.052804708480835, 0.4803473651409149, 0.3112671971321106, -0.43348604440689087, -0.0039313980378210545, 0.15502814948558807, -0.0045854272320866585, 0.7206240892410278, 0.34363073110580444, -0.25080156326293945, 0.03893954679...
def add _ suite ( self, suite ) : self. suites. append ( suite )
[ -0.8210538625717163, 0.37826767563819885, 0.2882115840911865, 0.4824640452861786, 0.3166182041168213, 0.619123637676239, -1.5237541198730469, 0.20266751945018768, 0.5900371670722961, -0.6041296124458313, -0.18856331706047058, 0.06038018316030502, -0.36202773451805115, 0.6983007192611694, ...
def test _ list _ decimal _ length _ 1 _ nistxml _ sv _ iv _ list _ decimal _ length _ 2 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - length - 2. xsd ", instance = " nistdata / list / decimal / schem...
[ -0.17511014640331268, -0.5823460221290588, 0.43890380859375, 0.658797562122345, 0.18078948557376862, -0.40399765968322754, -0.13389994204044342, 0.2360944151878357, 0.2305135726928711, -0.2703736126422882, -1.2254787683486938, -0.5188338756561279, 0.0016480631893500686, 0.9703365564346313,...
def attach ( self, gui, * * kwargs ) : gui. add _ view ( self ) self. start _ kernel ( ) self. inject ( gui = gui, * * kwargs ) try : import numpy self. inject ( np = numpy ) except importerror : # pragma : no cover pass try : import matplotlib. pyplot as plt self. inject ( plt = plt ) except importerror : # pragma : n...
[ 0.5001964569091797, 0.1426401138305664, 0.6324277520179749, -0.034164395183324814, -0.9288285374641418, 0.5465263724327087, -0.07591507583856583, -0.6009851098060608, 0.3100734055042267, -1.0778627395629883, 0.17904357612133026, 0.6985002756118774, -0.5336692929267883, 1.594131350517273, ...
def hkcancor _ to _ ud ( tag : str = none ) : if tag is none : return _ map else : return _ map. get ( tag. strip ( ). upper ( ) ) or " x "
[ -0.5372949242591858, -0.20643115043640137, 0.4495004713535309, 0.6043049693107605, -0.589809238910675, -0.3259921073913574, 0.2664479613304138, 0.026820583269000053, 0.2763502299785614, -0.4999019503593445, 0.4371406137943268, -0.10980880260467529, 0.13451603055000305, 0.05583538860082626,...
def draw ( self, format = " pdf " ) : # check if the fst isn't too large and otherwise throw a warning if os. path. isfile ( self. txtfst _ fn ) : with open ( self. txtfst _ fn,'r') as f : num _ lines = sum ( 1 for _ in f ) if num _ lines > 100 : warnings. warn ( " very large fst : drawing a very large fst ( % s lines ...
[ -0.1487177163362503, 0.3671729266643524, 0.756553590297699, -0.7313699722290039, 0.34321117401123047, -0.13362419605255127, -0.10288790613412857, -0.24349583685398102, 0.33870530128479004, -1.1556463241577148, 0.14947400987148285, 0.1611034870147705, 0.28499504923820496, 0.3544361293315887...
def _ _ init _ _ ( self, name ) : self. name = name self. accounts = { } self. report ( " open for business " )
[ 0.2593258321285248, 0.024758355692029, 0.4238741397857666, -0.2944420576095581, -0.7801612615585327, 0.012067703530192375, 0.6559861302375793, 0.22123199701309204, 0.2191893756389618, -1.1334015130996704, -0.43424808979034424, -0.18116016685962677, 0.055251237004995346, 0.33947044610977173...
def test _ example _ input _ one _ checked _ example _ checkbox ( 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 one " ) input _ page. entity...
[ -0.17506001889705658, 0.45798492431640625, 0.45365574955940247, 0.9058905839920044, 0.8336741924285889, 0.8236510157585144, 0.49997425079345703, 0.6467800140380859, 0.25997409224510193, 0.30965015292167664, -0.47568461298942566, -0.08569233864545822, -0.17619898915290833, 0.000971549365203...
def orf _ prodigal ( self ) : quality = " - n - p single " _ min, _ max = self. min _ max _ sequence _ length ( ) logger. info ( " minimum sequence length : { }, maximun sequence length { } ". format ( _ min, _ max ) ) if self. low _ quality = = true or _ min < 20000 : quality = " - p meta " filename = os. path. splite...
[ 0.02820945531129837, -0.8791812658309937, 0.7124808430671692, -0.2827417850494385, -0.20967257022857666, -0.15256117284297943, 0.6502143144607544, 0.4510609209537506, -0.410202294588089, 0.16513106226921082, 1.229002594947815, 0.802799642086029, 0.0047042276710271835, 0.5532506704330444, ...
def test _ example _ input _ one _ required _ field _ object ( 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 one " ) input _ page. entity1. ...
[ -0.7776565551757812, -0.0961994156241417, 0.6234458088874817, 0.31275954842567444, 0.5900724530220032, 1.2115200757980347, 0.6528964042663574, -0.25436338782310486, 0.2259051650762558, 0.3510112464427948, -1.5365408658981323, -0.09814394265413284, -0.25398480892181396, 0.11394031345844269,...
def _ require _ valid _ version ( self, version _ from _ payload : int, topic _ version : int ) - > none : if version _ from _ payload! = topic _ version : raise base. basehandler. invalidinputexception ('trying to update version % s of topic from version % s,'' which is too old. please reload the page and try again.'%...
[ 0.14054401218891144, -0.7875557541847229, 0.4718094766139984, 0.20427025854587555, -0.560759425163269, 1.4465945959091187, -0.5265089869499207, -0.6025767922401428, -0.3804766535758972, 0.6164313554763794, 0.4391184449195862, -0.2246258705854416, -0.5154638886451721, -0.18896779417991638, ...
def get _ slug ( symbol : str ) - > str : df = pd. dataframe ( read _ file _ data ( " santiment _ slugs. json " ) ) slug = df. loc [ df [ " ticker " ] = = symbol. upper ( ) ] [ " slug " ]. values [ 0 ] return slug
[ -0.2178640365600586, 0.4533158242702484, 0.38284003734588623, -0.3052883744239807, 0.44147682189941406, -0.8745930790901184, 0.5097360610961914, -0.3996663987636566, -0.8024835586547852, 0.03686971589922905, 0.40793296694755554, 0.6387051343917847, 0.5478312373161316, -0.3943367898464203, ...
def jsonrequest ( valuesdict, referer = none ) : response = makeapirequest ( valuesdict, referer ) response = json. objectfromstring ( response ) return response
[ -1.1123498678207397, -0.2916319966316223, 0.5648422241210938, -0.6979376077651978, -0.8932251930236816, -0.455915242433548, -0.7555437088012695, -0.9520665407180786, 0.9058717489242554, -0.10615885257720947, -0.013423287309706211, 0.5414128303527832, 0.27159562706947327, -0.151960656046867...
def getindscsr ( csr ) : if type ( csr )! = csr _ matrix : raise typeerror ( " argument of getindscsr should be a csr matrix! " ) ia = csr. indptr ja = csr. indices cii = 0 bi = 0 m = len ( ja ) bonds = np. zeros ( ( m, 2 ) ) for i in range ( 1, len ( ia ) ) : ninrow = ia [ i ] - ia [ i - 1 ] row = i - 1 for n in range...
[ -0.595300555229187, -0.06297142803668976, 0.4697027802467346, 0.17716415226459503, 0.06391569972038269, -0.265042245388031, 0.4717203676700592, -0.45792070031166077, 0.7722719311714172, 0.35129639506340027, 0.21331436932086945, 0.398284912109375, -1.9509437084197998, -0.2531171143054962, ...
def human _ size ( bytes, units = ('bytes ','kb ','mb ','gb ','tb ','pb ','eb') ) : return str ( bytes ) + units [ 0 ] if bytes < 1024 else human _ size ( bytes > > 10, units [ 1 : ] )
[ -0.18132393062114716, 0.5145484805107117, 0.6081151962280273, -0.5951226949691772, 0.1838020235300064, 0.5344512462615967, -0.824172854423523, -0.19897246360778809, -0.0044332100078463554, 0.0485629141330719, 0.13498356938362122, -0.02574504353106022, -0.3922658860683441, -0.59324085712432...
def make _ numbers _ in _ nested ( nested, ind1, ind2, ind3, ind4 ) : n = 0 while n < len ( nested ) : nested [ n ] [ ind1 ] = int ( nested [ n ] [ ind1 ] ) nested [ n ] [ ind2 ] = int ( nested [ n ] [ ind2 ] ) nested [ n ] [ ind3 ] = int ( nested [ n ] [ ind3 ] ) nested [ n ] [ ind4 ] = int ( nested [ n ] [ ind4 ] ) n...
[ -0.08350854367017746, 0.030616888776421547, 0.7262310981750488, -0.5764315128326416, 0.13312828540802002, -0.24614861607551575, 0.961412787437439, -0.13278815150260925, -0.3400018513202667, -1.0218453407287598, -1.5119569301605225, -0.12731964886188507, -0.3425460755825043, -0.614737510681...
def fire ( self, data = { } ) : event _ data = {'event':'sequenceupdated ','component _ id': self. id,'name': self. name,'updated _ at': str ( datetime. datetime. now ( ). replace ( microsecond = 0 ) ),'state': self. active,'step': self. _ current _ step,'total _ steps': self. total _ steps } event _ data. update ( dat...
[ -0.661011815071106, -0.8611094355583191, 0.4917753040790558, 0.04456546530127525, 0.11520712822675705, -0.45340847969055176, -0.4973208010196686, 0.9567420482635498, -0.09124882519245148, -0.0445382222533226, -1.290444016456604, 0.6454811096191406, -0.6528935432434082, 0.42346155643463135,...
def get _ sign ( variable ) : return variable and ( 1, - 1 ) [ variable < 0 ]
[ -0.7367547750473022, -0.9840717315673828, 0.4898635149002075, 0.6582250595092773, -0.4024091064929962, -0.35778743028640747, -0.5636508464813232, -0.19127045571804047, -0.28063544631004333, -0.1117732971906662, -0.5727713704109192, -0.017336515709757805, -0.7521984577178955, 0.415010958909...
def create _ fleet ( ai _ settings, screen, aliens, ship ) : # create an alien and find the number of rows and aliens in a row alien = alien ( ai _ settings, screen ) alien _ number _ x = get _ alien _ number _ x ( ai _ settings, alien. rect. width ) row _ number = get _ alien _ rows ( ai _ settings, alien. rect. heigh...
[ -0.43675917387008667, 0.34067466855049133, 0.4681745767593384, -0.17906147241592407, 1.2549290657043457, -0.6495915651321411, -0.308342307806015, -0.43831729888916016, -0.23628364503383636, -0.1452033519744873, 0.1551189422607422, -0.0639994740486145, 0.9803288578987122, 0.6458253264427185...
def _ get _ tensors ( self, loaded _ graph ) : with loaded _ graph. as _ default ( ) : utils. thin _ line ( ) print ('loading graph and tensors...') inputs _ = loaded _ graph. get _ tensor _ by _ name ('inputs : 0') labels _ = loaded _ graph. get _ tensor _ by _ name ('labels : 0') input _ imgs _ = loaded _ graph. get ...
[ -0.5719801783561707, -0.36194634437561035, 0.8093281388282776, -0.5921728014945984, 0.13427333533763885, -0.3561781942844391, 0.8773764967918396, -0.5399150252342224, -0.6308264136314392, 0.26104801893234253, -0.07484026253223419, 0.14119909703731537, 0.16897405683994293, -0.05582608655095...
def taxonomicdistributiondomaincombinations ( self ) : self. printstatus ( ) if self. mloglevel > = 1 : print " # taxonomy : % s " % ( self. mtablenametaxonomy ) print " # taxonomy _ assignments : % s " % ( self. mtablenametaxonomyassignments ) print " # file _ taxonomy _ classes : % s " % self. mfilenametaxonomyclasse...
[ -0.05971941351890564, -0.028754504397511482, 0.7112680673599243, -0.19299128651618958, -0.4666516184806824, 0.3274303376674652, 0.5939546227455139, 0.10097461938858032, -1.3471406698226929, -0.1626361459493637, 0.3606676161289215, -0.17854145169258118, 0.8951441645622253, 0.130894437432289...
def create _ user ( self, request ) : if user. query ( user. name = = request. user _ name ). get ( ) : raise endpoints. conflictexception ('a user with that name already exists!') " " " import function from regex used to check email validity " " " user = user ( name = request. user _ name, email = request. email ) mat...
[ -0.37678664922714233, -0.12125479429960251, 0.7376387119293213, 0.28991585969924927, 0.24244926869869232, 0.5700110793113708, 0.19672155380249023, -0.49753621220588684, 0.012403209693729877, 0.008651099167764187, -0.39662861824035645, -0.33777862787246704, -0.3603018820285797, -0.633132576...
def removelogicalinterfacefromthingtype ( self, thingtypeid, logicalinterfaceid ) : req = apiclient. onethingtypelogicalinterfaceurl % ( self. host, thingtypeid, logicalinterfaceid ) resp = requests. delete ( req, auth = self. credentials, verify = self. verify ) if resp. status _ code = = 204 : self. logger. debug ( "...
[ -0.7257156372070312, -0.5295370221138, 0.3397490680217743, -0.5519893169403076, -0.9574375748634338, 0.21836504340171814, -0.9029653668403625, -0.6580987572669983, 0.0002517692046239972, 0.17747578024864197, -0.3513040542602539, 0.3489379286766052, -2.1608948707580566, 0.11671466380357742,...
def get _ max _ snps ( indir ) : print ('find max number of snps from simulations') max _ snps = 0 for ( dirpath, dirnames, filenames ) in os. walk ( indir ) : for file _ name in filenames : if file _ name. endswith ( " maxsnps. txt " ) : file _ path = os. path. join ( dirpath, file _ name ) with open ( file _ path ) a...
[ 0.26242345571517944, 0.16259364783763885, 0.9986677169799805, 0.09424884617328644, -0.09509917348623276, 0.08238457888364792, -0.204612597823143, -0.040465716272592545, 0.2062257081270218, 0.4107719957828522, -0.20516885817050934, -0.10220646113157272, -0.4098939895629883, 0.28628325462341...
def wsgi _ options ( self ) : kwargs = dict ( ) if false : kwargs [ " minimum _ chunk _ size " ] = 1 return kwargs
[ -0.7435578107833862, 0.21660305559635162, 0.45281532406806946, -0.7682727575302124, -0.19232746958732605, -0.17430122196674347, -0.37922385334968567, -1.120457410812378, -0.17391514778137207, 0.510783851146698, -0.57127445936203, 0.2049056887626648, -0.9118208289146423, 1.1569582223892212,...
def merge _ with ( self, other _ schema ) : pass
[ -0.36310699582099915, -0.31392332911491394, 0.5117979645729065, 0.9615192413330078, 0.6340675354003906, -0.12877294421195984, -1.0001412630081177, 0.12871891260147095, 0.3238726258277893, -0.3801179528236389, -1.1859008073806763, 0.3084932863712311, -0.919102668762207, -0.02277302928268909...
def setdirty ( self, dirty = true ) : if dirty! = self. _ dirty : self. _ dirty = dirty self. dirtychanged. emit ( self. _ dirty )
[ -0.867954432964325, -0.20385430753231049, 0.5658431053161621, -0.055117640644311905, 0.11378917098045349, 0.5561633110046387, -0.05865105986595154, -0.6118863224983215, -0.4510248303413391, -0.5113974809646606, -1.2211015224456787, 1.279430627822876, 0.16755078732967377, 1.7618204355239868...
def similarity _ scores ( model, pairs ) : similarity _ scores _ df = pd. dataframe ( columns = [ " disease ", " gene ", " class ", " score " ] ) for pair in pairs : if all ( str ( vocab ) in model. wv. vocab for vocab in pair [ : 2 ] ) : score = model. wv. similarity ( str ( pair [ 0 ] ), str ( pair [ 1 ] ) ) new _ ro...
[ -0.5928323268890381, 0.21589556336402893, 0.6493297219276428, 0.27726855874061584, -0.20507484674453735, -0.24649393558502197, 0.16031739115715027, 0.2901085317134857, -0.5212952494621277, 0.6915408372879028, 0.2312825620174408, 0.351528137922287, -0.07635428756475449, 0.06122121214866638,...
def test _ atomic _ language _ min _ length _ 3 _ nistxml _ sv _ iv _ atomic _ language _ min _ length _ 4 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - minlength - 4. xsd ", instance = " nistda...
[ 0.36080440878868103, -0.18014280498027802, 0.3675106465816498, 0.05349298566579819, -0.5492983460426331, 0.15399743616580963, -0.45009729266166687, -0.2780288755893707, 0.758362889289856, 0.19359757006168365, -0.33894750475883484, -0.5079202651977539, -0.7249453663825989, -0.49789229035377...
def press ( self ) - > none : self. coordinator. client. lamp _ change _ color ( )
[ -0.04726900905370712, 1.3872828483581543, 0.26331332325935364, 0.13362599909305573, 0.8740234375, 0.744423508644104, 0.2797752618789673, 0.3340389132499695, -0.20471304655075073, 0.36551621556282043, -0.2675570547580719, 1.317190170288086, -0.24635134637355804, 0.7999972701072693, 0.4635...
def csv _ output ( kod, args ) : db = database ( args. dbdir, kod ) mkdir ( args. outputdir ) chdir ( args. outputdir ) filereferences = [ ] # first dump all non - file tables for table in db. enumerate _ tables ( files = false ) : tablesafename = safepathname ( table. tablename ) + ". csv " with open ( tablesafename,'...
[ 0.5242992043495178, -0.32641899585723877, 0.959656298160553, 0.39321961998939514, 0.05483867600560188, -0.335231214761734, 1.0059841871261597, -0.41505733132362366, -0.46938827633857727, 0.09786605834960938, 0.5681812763214111, 0.07007408887147903, 0.07560522854328156, 0.9393543004989624, ...
def find _ location ( self, current _ target = none ) : debug ( " find _ location - location is { } ". format ( self. _ location. _ loc ) ) if self. _ location. is _ landed ( ) : debug ( " landed " ) target = self. _ materials. matches ( self. location ( ) ) if target : debug ( " found a resource on planet " ) mats = s...
[ -0.43936243653297424, -1.116870403289795, 0.6852684617042542, -0.8901559710502625, -0.107388436794281, 0.20365063846111298, 0.12358277291059494, -0.514617919921875, -0.2782883942127228, 0.06371597200632095, 0.605377733707428, -0.13243483006954193, -0.1559022217988968, 0.6403490304946899, ...
def get _ click _ points ( rgb, depth ) : clicks = [ ] def mouse _ click ( event, x, y, flags, params ) : if event = = cv. cv _ event _ lbuttondown : clicks. append ( [ x, y ] ) xyz = clouds. depth _ to _ xyz ( depth, asus _ xtion _ pro _ f ) cv2. imshow ( " points ", rgb ) cv. setmousecallback ( " points ", mouse _ cl...
[ -0.6777331829071045, -0.03222217783331871, 0.5065858960151672, 1.116539478302002, 0.016493890434503555, -0.30691108107566833, 0.42542892694473267, -0.4496530294418335, 0.09986064583063126, 0.5504881143569946, -0.18179668486118317, 0.9974947571754456, 0.15361584722995758, 0.2827435135841369...
def test _ atomic _ boolean _ pattern _ 1 _ nistxml _ sv _ iv _ atomic _ boolean _ pattern _ 2 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / boolean / schema + instance / nistschema - sv - iv - atomic - boolean - pattern - 2. xsd ", instance = " nistdata / atomic / bo...
[ -0.19212733209133148, -0.7690590023994446, 0.6177471876144409, 1.1402881145477295, -0.24158704280853271, 0.34785428643226624, 0.052594877779483795, 0.0005385411204770207, -0.7845503687858582, 0.7435492277145386, -0.36083346605300903, 0.5018349289894104, 0.3792251944541931, -0.1177598834037...
def max _ contig _ sum ( l ) : # your code here l _ copy = l. copy ( ) maxsum = 0 maxseq = [ ] while len ( l _ copy ) > 0 : sum1 = 0 seq = [ ] for j in range ( len ( l _ copy ) ) : sum1 + = l _ copy [ j ] seq. append ( l _ copy [ j ] ) if maxsum < sum1 : maxsum = sum1 maxseq = seq. copy ( ) del l _ copy [ 0 ] return ma...
[ 0.32604220509529114, -0.021802328526973724, 0.9452396035194397, 1.3588733673095703, -1.3330094814300537, -0.1791001558303833, 0.10881447046995163, 0.5897486805915833, 0.7620291113853455, 0.841964840888977, -0.9598354697227478, -0.5314549803733826, -0.34392815828323364, 0.507746160030365, ...
def index ( ) : collections = collection. query return render _ template ('admin / index. html ', collections = collections )
[ 1.1696279048919678, 0.8153749108314514, 0.12413804233074188, -0.5023745894432068, 0.6696340441703796, 0.6609545350074768, -0.07556269317865372, -0.19054272770881653, -0.5579695105552673, 0.034091126173734665, 0.3944586217403412, 0.1319388896226883, -0.3927026689052582, -0.1080516055226326,...
def get _ plugin ( self, name ) : if name in self. plugins : return self. plugins [ name ] else : raise nameerror ( " plugin % s is not loaded " % name )
[ -0.07208897918462753, -0.9857079982757568, 0.34367555379867554, -0.19357527792453766, -0.1090262234210968, -0.15780670940876007, -0.26734545826911926, -1.463505506515503, 0.8132463693618774, 0.09544743597507477, -0.3413057029247284, 1.083491563796997, -0.3170510530471802, -0.30772483348846...
def render _ file ( *, vars, template _ file, output _ file, template _ include _ dirs ) : # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # zenfig will look for templates on this directories # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ...
[ 0.019246041774749756, -0.16574907302856445, 0.9674315452575684, -0.2248837649822235, -0.7643978595733643, -0.46941086649894714, 0.9151017069816589, 0.8635822534561157, -0.8239524960517883, 1.0196701288223267, -0.3427433371543884, -0.4882039427757263, -0.4702208340167999, 0.4945107102394104...
def dataset _ size _ learning _ curves _ plot ( df : dataframe ) : ax = sns. lineplot ( data = df, markers = ['o ','o'] ) xticklabels = reversed ( _ labels ['dataset _ sizes'] ) yticks = np. linspace ( 0, 1, 11 ) ax. set ( xticks = df. index, xticklabels = xticklabels, yticks = yticks, title ='dataset size learning cur...
[ 0.9128654599189758, 0.9342267513275146, 0.662926971912384, -1.6605522632598877, -0.9431815147399902, 0.34130358695983887, 0.6588196158409119, -0.17337027192115784, 0.39757388830184937, -0.4660852253437042, 0.32354921102523804, 1.159650444984436, 1.1749969720840454, -0.17340989410877228, ...
def transaction ( self, name = none ) : if name is none : name = self. _ get _ name ( ) self. m _ lock. acquire ( ) try : try : tnx = self. m _ tsd. transactions [ name ] except attributeerror : self. m _ tsd. transactions = { } except keyerror : pass else : return tnx tnx = self. transaction _ factory ( self ) self. m...
[ -0.26499199867248535, 0.42598918080329895, 0.46999651193618774, -0.4611074924468994, -1.065246820449829, -1.1428513526916504, -0.3000195622444153, -0.8338836431503296, 0.21242816746234894, -0.4047168791294098, -0.7036484479904175, -0.7423896193504333, 0.043417010456323624, -0.9690047502517...
def load _ params ( self, path, strict : bool = false, * * kwargs ) : path _ parts = [ path,'default ','version _ 0 ','checkpoints'] path = os. path. join ( * path _ parts ) for file in os. listdir ( path ) : if file. endswith ( ". ckpt " ) : self. model = cinn. load _ from _ checkpoint ( os. path. join ( path, file ),...
[ 0.04959681257605553, 0.1610395461320877, 0.59653240442276, 0.8598154187202454, 0.05810645967721939, 0.037634674459695816, -0.26049789786338806, 0.6754026412963867, -1.2615700960159302, 0.6188220381736755, -0.726392924785614, -0.48299840092658997, -0.26960131525993347, 0.58365398645401, -...
def local _ storage ( self, storage _ name ) : # find the storage name in the combo box and set that item match _ index = self. ui. storage _ select _ combo. findtext ( storage _ name ) if match _ index > - 1 : self. ui. storage _ select _ combo. setcurrentindex ( match _ index ) self. refresh _ display ( )
[ -0.13458815217018127, -0.7683447599411011, 0.30074843764305115, 0.26974883675575256, -0.04040811210870743, -0.09375949949026108, 0.9309237599372864, -0.2937362790107727, 0.7780041098594666, 0.5902628302574158, -0.4118192791938782, 0.05387328192591667, -0.3698754906654358, -0.37425649166107...
def test _ list _ insert _ policy _ is _ string ( self ) : key = ('test ','demo ', 1 ) try : testlistinsert. client. list _ insert ( key, " age ", 1, 85, { }, " " ) except e. paramerror as exception : assert exception. code = = - 2 assert exception. msg = = " policy must be a dict "
[ -0.49388954043388367, 0.45934292674064636, 0.503623366355896, -0.5757272243499756, 0.5259733200073242, 0.7348610758781433, -1.1379026174545288, 0.5700575113296509, 0.6017841100692749, 1.1548943519592285, -0.7570686936378479, 0.011622251011431217, -1.347859501838684, 0.42092442512512207, ...
def _ _ iter _ _ ( self ) : return ( row ['name'] for row in self. jenkins. _ data. get ('jobs ', [ ] ) )
[ -0.6920003890991211, -0.1824769824743271, 0.31614017486572266, -0.3842400312423706, 0.15224923193454742, -0.04022420197725296, -1.242124080657959, -0.5895013213157654, -0.45568403601646423, 0.286517858505249, -0.030122218653559685, -0.08936641365289688, 0.30438321828842163, -0.037676583975...
def ascon _ permutation ( s, rounds = 1 ) : assert ( rounds < = 12 ) if debugpermutation : printwords ( s, " permutation input : " ) for r in range ( 12 - rounds, 12 ) : # - - - add round constants - - - s [ 2 ] ^ = ( 0xf0 - r * 0x10 + r * 0x1 ) if debugpermutation : printwords ( s, " round constant addition : " ) # - ...
[ 0.23922546207904816, -0.004442301113158464, 0.9036902785301208, -0.5076730847358704, -0.7208625078201294, -0.5356176495552063, 1.3682729005813599, -0.5503320693969727, 1.3804105520248413, 0.9351966977119446, -0.464058518409729, -0.46992969512939453, -0.5363903641700745, 0.09039229899644852...
def test _ example _ input _ two _ clone _ frontend _ validation ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ two ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. table. wait _ for _ rows _ to _ appear ( 1 ) input _ pa...
[ 0.195809468626976, 0.7342671751976013, 0.8239099383354187, 0.8362215161323547, 0.20648178458213806, 0.5512973666191101, 0.049350351095199585, -0.7114816904067993, -0.020127641037106514, 0.15292313694953918, -0.3347410261631012, 0.589067816734314, 0.7680919170379639, 0.1982964277267456, 0...
def diff _ grad ( g1, g2 ) : return norm ( g1 - g2 ) / norm ( g1 + g2 )
[ -0.2155359983444214, -0.36433374881744385, 0.5713706016540527, 0.13146942853927612, -0.6925299763679504, 1.0934371948242188, 0.06864804029464722, -0.7396829128265381, -1.4552233219146729, 0.7605738043785095, 0.205336332321167, 0.9553652405738831, -0.46401482820510864, -0.003681778907775879...
def test _ conversation ( self ) : code, reply = self. reply ( ) self. assertequal ( code, 220, reply ) code, reply = self. do _ cmd ( b " lhlo localhost " ) self. assertequal ( code, 250, reply ) code, reply = self. do _ cmd ( b " mail from : < " + from + b " > " ) self. assertequal ( code, 250, reply ) code, reply = ...
[ 0.5089784264564514, -0.19581477344036102, 0.7530761361122131, -0.15239471197128296, 0.9328405857086182, 0.20060060918331146, -0.013265828602015972, -0.49801236391067505, 0.3505059778690338, -0.6075707077980042, -0.2499709129333496, 0.33044853806495667, -0.8285108208656311, 0.06027614697813...
def serialize ( self, input _ ) : return self. parse ( input _ )
[ -0.5463845133781433, -0.26119571924209595, 0.3062485158443451, -0.4442504048347473, -0.5553264021873474, -0.04132287576794624, -0.31545954942703247, -0.3740989863872528, 0.27684447169303894, -1.552117943763733, -1.2513965368270874, -0.17597827315330505, -0.6611666083335876, -0.300399541854...
def fit ( self, x, y = none, sample _ weight = none ) : super ( ). fit ( x, y, sample _ weight ) self. full _ triangle _ = self. _ get _ full _ triangle _ ( ) return self
[ 0.9693076610565186, 0.06508544832468033, 0.36411264538764954, 0.631278932094574, -0.43306592106819153, 0.222325399518013, 0.27509573101997375, -0.14194267988204956, 0.4309459924697876, -0.46197569370269775, -0.5075132846832275, 0.6549975872039795, 0.6272410154342651, -0.35902705788612366, ...
def post ( ) : answers = [ ] student _ id = time. time ( ) + random. randint ( 1, 100000 ) a = b = c = 0 for i in range ( 1, 28 ) : if ( request. form. get ('option'+ str ( i ) ) = = str ( 1 ) ) : a = a + 1 if ( request. form. get ('option'+ str ( i ) ) = = str ( 2 ) ) : b = b + 1 if ( request. form. get ('option'+ str...
[ -0.7792946696281433, 0.409896582365036, 0.7747434377670288, 0.2932635247707367, 0.5919643640518188, 0.6051097512245178, 0.9548308849334717, -0.4396776854991913, 0.28199905157089233, -0.1988620012998581, 0.24651207029819489, -1.1087720394134521, -0.7369756698608398, 0.33137941360473633, -...
def set _ display _ info ( self, set _ affiliations = true ) : user = self. user self. name = user. profile. get _ full _ name ( ) self. email = user. email self. username = user. username if set _ affiliations : self. text _ affiliations = [ a. name for a in self. affiliations. all ( ) ]
[ -0.12468037754297256, 0.09852968901395798, 0.16246670484542847, -0.24213306605815887, -0.9772520065307617, 0.7107793092727661, -0.22498168051242828, -0.5084854960441589, -0.6807436943054199, 0.5917088985443115, 0.13020913302898407, 0.20830263197422028, 0.45615941286087036, 0.98076850175857...
def repackage _ hidden ( self, h ) : if isinstance ( h, torch. tensor ) : return h. detach ( ) else : return tuple ( self. repackage _ hidden ( v ) for v in h )
[ -0.6883555054664612, 0.579039454460144, 0.5743317008018494, 0.7298406958580017, -0.3184607923030853, 0.2776809334754944, 0.06067956984043121, -0.12564000487327576, 0.25983113050460815, 1.0751938819885254, -1.4312063455581665, -0.6028420329093933, -0.23724612593650818, 0.37895268201828003, ...
def test _ atomic _ any _ uri _ min _ length _ 3 _ nistxml _ sv _ iv _ atomic _ any _ uri _ min _ length _ 4 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - minlength - 4. xsd ", instance = " nistdata...
[ 0.12842825055122375, -0.243284672498703, 0.5201101303100586, 0.42947113513946533, -0.32158973813056946, -0.07716163247823715, -0.47810325026512146, -0.2508370876312256, 0.6531268954277039, -0.48188871145248413, 0.04777548462152481, -0.4976149797439575, -0.8847991228103638, -0.2227020859718...
def _ get _ leap _ month ( self, lunar _ year : int ) - > int : return ( self. g _ lunar _ month _ days [ lunar _ year - self. start _ year ] > > 16 ) & 0x0f
[ 0.6727019548416138, -0.0440790094435215, 0.34790298342704773, -0.4486110806465149, 0.25855910778045654, 0.8277468085289001, -0.9434998631477356, -0.31366947293281555, 0.48835670948028564, -1.1730471849441528, 0.2763884365558624, 0.7100139856338501, -0.6120379567146301, 0.34361955523490906,...
def add _ neibour ( self, val1, sequence ) : # number of intervals and their sizes ( step ) to consider # bf _ num _ inter = self. bf _ num _ inter bf _ step = self. bf _ step s = sequence val1 _ set = set ( ) rem _ val1 = val1 % bf _ step # convert into values within same interval rem _ val1 = round ( rem _ val1, 2 ) ...
[ 0.08578035980463028, -0.19508160650730133, 0.9223757386207581, 0.3481055498123169, -0.269802987575531, 0.23483391106128693, 0.009201216511428356, -0.3937877416610718, -0.8672828674316406, 0.019205663353204727, 0.10369869321584702, -0.2563322186470032, -0.32697102427482605, 0.59753543138504...
def test _ output ( self ) : item = create _ content _ item ( linkitem, url = " http : / / example. com ", name = " test " ) self. asserthtmlequal ( render _ content _ items ( [ item ] ). html,'< span class = " link " >'' < a href = " http : / / example. com " >'' test'' < / a >'" < / span > ", )
[ -0.07789107412099838, 0.12179514765739441, 0.24438384175300598, 0.2341879904270172, 0.21056301891803741, 0.6191840767860413, 0.09095747023820877, -0.030758431181311607, -0.5058701634407043, -0.9711344838142395, -0.28039276599884033, -0.07436812669038773, -0.5367324352264404, -0.27824646234...
def test _ inputs _ pagination ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ multiple _ inputs ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. open ( ) self. assert _ util ( input _ page. pagination. select _ page _ option, tr...
[ -0.4046603739261627, 0.7016450762748718, 0.7360661625862122, 0.3762745261192322, 0.7314440608024597, 0.4285097122192383, 0.41353172063827515, -0.29284602403640747, 0.5757026672363281, -0.10412126779556274, 0.40289419889450073, -0.7281346917152405, -0.1909693032503128, 0.5781247615814209, ...
def visualize _ game ( ) : return [ visualize _ game _ round _ count ( ), visualize _ game _ outcome ( ), visualize _ game _ population ( ), visualize _ pathogens _ in _ full _ game ( ) ]
[ -0.5946041941642761, 0.5631360411643982, 0.4569077789783478, 0.048003219068050385, 0.11440051347017288, 0.34942302107810974, -0.49854370951652527, -0.47145915031433105, 0.07463235408067703, 0.8370749950408936, -0.0500527061522007, -0.010918405838310719, 0.8207547068595886, 0.60123938322067...
def sample _ replace ( lines, dist _ measurer, sample _ rate, corpus _ idx ) : out = [ none for _ in range ( len ( lines ) ) ] for i, line in enumerate ( lines ) : if random. random ( ) < sample _ rate : sims = dist _ measurer. most _ similar ( corpus _ idx + i ) [ 1 : ] # top match is the current line try : line = nex...
[ -0.05169607326388359, -0.2528771162033081, 0.6999363303184509, -0.10776831954717636, -0.6323891282081604, -0.3547472059726715, -0.24718943238258362, 0.3248595595359802, 0.676503598690033, -0.008407794870436192, 0.34446436166763306, -0.10565072298049927, 0.22264081239700317, 0.2711554169654...
def ask ( self, command ) : warn ( " ` adapter. ask ` is deprecated, call ` instrument. ask ` instead. ", futurewarning ) return self. connection. query ( command )
[ -0.33462557196617126, 0.24899281561374664, 0.39471107721328735, 0.4136733114719391, -0.8518197536468506, -0.711541473865509, -0.6944488883018494, -0.8119442462921143, 0.186730295419693, -0.2573748230934143, 0.8122141361236572, 0.7659162878990173, -0.24843774735927582, -0.08143388479948044,...
def plot _ tile ( data, oname, samp = 1 ) : # - - set the colors scl = 1e - 6 norm = data [ :, 2 ] / data [ :, 2 ]. max ( ) # convert height to 0 to 1 clrs = cm. viridis ( norm ) fig, ax = plt. subplots ( figsize = ( 5, 5 ) ) ax. scatter ( data [ : : samp, 0 ] * scl, data [ : : samp, 1 ] * scl, c = clrs [ : : samp ], l...
[ 0.4138209819793701, 0.5094769597053528, 0.8128312826156616, -0.1781117171049118, -0.9263348579406738, 0.2208298295736313, 0.6168892979621887, -0.061286039650440216, 0.3423830568790436, 0.5302053689956665, -0.5756614804267883, 0.6833049058914185, -0.3147258460521698, -0.4038451611995697, ...
def compare ( base _ parameters : baseparameters ) - > none : previous _ logs = base _ parameters. previous _ logs current _ logs = base _ parameters. current _ logs print _ title ( f " pull requests from " f " { current _ logs. git _ ref } not in { previous _ logs. git _ ref } " ) previous _ diff _ logs = previous _ l...
[ 0.4617009460926056, -0.814130961894989, 0.7937220335006714, -0.5227124691009521, 0.8514618873596191, 0.8321951031684875, 0.140451118350029, -0.739772617816925, -0.5668644309043884, 0.2560296654701233, 0.6986363530158997, 1.3490886688232422, -0.5720182061195374, 0.6969009637832642, -0.020...
def plot _ composite ( inargs, rootgroup, i, data, ax, label, clist, ylabel ) : # check how many nans there are in dataset num _ nan = np. isnan ( data ). sum ( ) num _ tot = data. size print ('scale index : % i'% ( i ) ) print ('number of nans : %. 2e / %. 2e'% ( num _ nan, num _ tot ) ) print ('percentage of nans : %...
[ -0.11526010185480118, 0.30951178073883057, 1.0158312320709229, -0.21055132150650024, -0.3237172067165375, 0.6046234965324402, 0.6300811171531677, -0.7182546854019165, -0.8092419505119324, 0.5390214323997498, 0.690638542175293, 0.573357105255127, -0.6370493173599243, 0.2523031234741211, 0...
def optimizegp ( gp, theta, y, seed = none, ngprestarts = 1, method = " powell ", options = none, p0 = none, gphyperprior = defaulthyperprior ) : # run the optimization routine ngprestarts times res = [ ] mll = [ ] # optimize gp hyperparameters by maximizing marginal log _ likelihood for ii in range ( ngprestarts ) : #...
[ -0.2829847037792206, 0.05916370078921318, 0.9269264340400696, 0.33516359329223633, -0.23709926009178162, -0.4894173741340637, 0.3557489514350891, -0.5579062104225159, -0.12619303166866302, 0.019457770511507988, 0.16204304993152618, -0.14315064251422882, -0.6973055005073547, 0.8551235795021...
def _ generate _ public _ access _ policy ( ) : accesspolicy = v2. accesspolicy ( ) accessrule = v2. accessrule ( ) accessrule. subject. append ( d1 _ common. const. subject _ public ) permission = v2. permission ('read') accessrule. permission. append ( permission ) accesspolicy. append ( accessrule ) return accesspol...
[ 0.4719330966472626, -0.1303120255470276, 0.5519819259643555, -0.8586560487747192, -0.7749250531196594, 1.380014181137085, -0.12860770523548126, 0.4027833044528961, -0.41121798753738403, -0.16194628179073334, 1.1220762729644775, 0.9513631463050842, 0.1388402134180069, -0.5787802338600159, ...
def test _ atomic _ qname _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ qname _ min _ length _ 2 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / qname / schema + instance / nistschema - sv - iv - atomic - qname - minlength - 2. xsd ", instance = " nistdata / atomic ...
[ 0.15810000896453857, -1.017328143119812, 0.454305499792099, 0.28218361735343933, -0.604783833026886, 0.1255940943956375, -0.4533545672893524, -0.7041329145431519, 0.2326173335313797, 0.16572493314743042, -0.4469807744026184, 0.4768373370170593, 0.0818733423948288, 0.04042535275220871, -0...
def test _ example _ input _ two _ required _ field _ example _ example _ account ( 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 " ) in...
[ -0.48095807433128357, 0.03267791122198105, 0.6228635907173157, 0.35456332564353943, 0.4920670688152313, 1.2240848541259766, 0.41821807622909546, -0.1882208287715912, 0.166310116648674, 0.345918208360672, -1.3490514755249023, 0.1857915073633194, -0.020855553448200226, 0.33570918440818787, ...
def visit _ addresses ( frame, return _ addresses ) : outdict = dict ( ) for real _ name, ( pyname, address ) in return _ addresses. items ( ) : if address : xrval = frame [ pyname ]. loc [ address ] if xrval. size > 1 : outdict [ real _ name ] = xrval else : outdict [ real _ name ] = float ( np. squeeze ( xrval. value...
[ -0.6296812295913696, 0.5548285245895386, 0.5244277119636536, -1.2614237070083618, -0.9273958206176758, -1.371430516242981, 0.22295084595680237, 0.047152113169431686, -0.1235836073756218, 0.8833324909210205, -0.43891769647598267, 0.533151388168335, 0.25760123133659363, 0.40932536125183105, ...
def mkdir ( self, path ) : folder = os. path. exists ( path ) if not folder : os. makedirs ( path )
[ 0.09732139855623245, 0.43243229389190674, 0.4706276059150696, -0.296447217464447, 0.03913236781954765, 1.578824758529663, 0.4660640358924866, -0.6073821783065796, 0.03629089891910553, -1.1818771362304688, -0.19875586032867432, -0.5612022876739502, 0.3382226228713989, 0.21041451394557953, ...
def resize _ mask ( self, wsi _ height, wsi _ width, cls ) : self. masks [ cls ] = cv2. resize ( self. masks [ cls ], ( wsi _ width, wsi _ height ) )
[ -1.211687445640564, -0.2734360694885254, 0.3145511746406555, 0.4542897641658783, 0.6406863331794739, -0.0859515592455864, 0.20231516659259796, -0.8280330896377563, 0.5040768384933472, 0.11310743540525436, -0.3901233971118927, 1.0421826839447021, 0.6514482498168945, 0.5131112933158875, 0....
def list _ networks ( ) : return _ _ sets. keys ( )
[ -0.4024345278739929, 0.2685454487800598, 0.4273054003715515, -0.03455688804388046, -0.10237733274698257, 0.6232770085334778, -0.5685454607009888, -1.009634256362915, 0.5669024586677551, -0.2875058352947235, -0.5288271307945251, 0.31648313999176025, 0.38604170083999634, 0.02371552772819996,...
def get _ current _ task ( bot, message, quest ) : pass
[ -0.25694742798805237, -0.516623854637146, 0.22651104629039764, 0.9891406893730164, 0.35176563262939453, 0.23596230149269104, 0.5710790157318115, -0.6318468451499939, -1.1849035024642944, 0.34034863114356995, -0.44367891550064087, 0.8584993481636047, -0.13693256676197052, 0.0310010910034179...
def group _ lines ( self, iml, line ) : if self. journal _ id. group _ invoice _ lines : line2 = { } # thanh : change name of entry item when group by product key _ group _ product = { } for x, y, l in line : tmp = self. inv _ line _ characteristic _ hashcode ( l ) # thanh : change name of entry item when group by prod...
[ -0.1584579348564148, -1.0972837209701538, 0.7037714123725891, -0.3570787012577057, 0.13055557012557983, 0.27613115310668945, -0.04890455678105354, -0.5225266814231873, -0.4591963589191437, 0.5902300477027893, 0.3268488943576813, 0.09559720009565353, 0.3447818458080292, 0.2559357285499573, ...
def load _ file ( self ) : if not self. file : return none metadata = metadataparser ( filename = self. file. path ) return metadata
[ 0.2530239522457123, -0.9444487690925598, 0.5025610327720642, -0.5335462093353271, 0.1667422354221344, 0.44106578826904297, -1.0358669757843018, -0.28199824690818787, -0.8175656199455261, -0.323295921087265, -0.128224715590477, 0.057844698429107666, -0.2358894795179367, -0.14107027649879456...
def downloaddatasets ( ) : years = range ( int ( os. getenv ('start _ year') ), int ( os. getenv ('end _ year') ) + 1 ) with mp. pool ( mp. cpu _ count ( ) ) as p : ret = p. map ( downloadfile, years ) flag = true for r in ret : flag & = r return flag
[ -0.29508671164512634, 0.25340020656585693, 0.67774897813797, 0.053969480097293854, -0.1630501002073288, 1.2417562007904053, -0.31656593084335327, 0.265320748090744, -0.71116703748703, -0.2961612045764923, 0.004004663787782192, 0.5361694097518921, -0.3992256224155426, -0.013791849836707115,...
def get _ exchange _ bundles _ folder ( exchange _ name ) : exchange _ folder = get _ exchange _ folder ( exchange _ name ) temp _ bundles = os. path. join ( exchange _ folder,'temp _ bundles') ensure _ directory ( temp _ bundles ) return temp _ bundles
[ -0.2784576714038849, 0.09887412935495377, 0.6286810636520386, -0.6791340112686157, -0.25707659125328064, 0.251562237739563, 0.8139167428016663, -0.268310010433197, 0.5531431436538696, 0.5607414841651917, 0.6386454105377197, -0.09613914042711258, -0.4092119336128235, 0.4257166087627411, -...
def decode _ structure ( root, noise = false ) : # decode = model. sampledecoder ( root _ code ) syms = [ torch. ones ( 8 ). mul ( 10 ) ] stack = [ root ] boxes = [ ] boxes _ type = [ ] labels = [ ] objnames = [ ] while len ( stack ) > 0 : node = stack. pop ( ) # label _ prob = model. nodeclassifier ( f ) # _, label = ...
[ 0.05540795996785164, 0.38363438844680786, 0.852436363697052, 0.16117940843105316, -0.6199268102645874, -0.6648670434951782, 0.8034626841545105, 0.7022265791893005, 0.36969053745269775, -0.010675337165594101, -0.32416680455207825, -0.1637130081653595, 0.5813940763473511, 0.5117827653884888,...
def calc _ f _ trans ( num _ nodes, p _ state _ s, tp, f _ trans _ tr ) : f _ trans _ tr [ : ] = 1. - tp * p _ state _ s # one - line numpy vectorized implementation # for i in nb. prange ( num _ nodes ) : # f _ trans _ tr [ i ] = 1. - tp * p _ state _ s [ i ]
[ -0.05267415568232536, 0.5255603790283203, 0.2234308272600174, -0.08098261058330536, 0.45340803265571594, -0.740763783454895, 0.3896673917770386, 0.5225145816802979, -0.23770172894001007, 0.4838130474090576, -0.4430543780326843, -0.5781955718994141, 0.5897045135498047, -0.7667891979217529, ...
def any _ possible _ moves ( grid ) : if get _ empty _ cells ( grid ) : return true for row in grid : if any ( row [ i ] = = row [ i + 1 ] for i in range ( len ( row ) - 1 ) ) : return true for i, val in enumerate ( grid [ 0 ] ) : column = get _ column ( grid, i ) if any ( column [ i ] = = column [ i + 1 ] for i in ran...
[ -0.6766858100891113, 0.6386860609054565, 0.6591529846191406, 1.031475305557251, -0.25261127948760986, -0.6704517602920532, 0.14334601163864136, -0.21910403668880463, -0.8477033376693726, 0.17691917717456818, -0.20685988664627075, -0.2806043028831482, -0.7759647369384766, 0.9132780432701111...
def _ get _ ax _ extend ( self, ax, panel ) : p = self. parameters # compute aspect ratio of the axis aspect = ax. bbox. width / ax. bbox. height # compute width and height in world coordinates height = np. abs ( p [ " ylim " ]. diff ( ) [ 0 ] ) width = aspect * height left, bottom = p [ " xlim " ] [ 0 ]. wrap _ at ( "...
[ 0.3311556875705719, 0.3661966323852539, 1.0696712732315063, -0.24616125226020813, -0.24510176479816437, 0.6251533627510071, 0.03798484802246094, -0.36138346791267395, -0.3406488299369812, 0.5551971197128296, -0.0215310025960207, 0.771263837814331, -0.5303474068641663, 0.03066212870180607, ...
def showquestions ( ) : questions = db. getquestions ( ) user = getuser ( request, session ) return render _ template ('questions. html ', question = questions, user = user )
[ 0.8694742321968079, -0.2646160423755646, 0.21122030913829803, 0.5604965686798096, -0.4860374331474304, 0.5254113674163818, 0.3130520284175873, 0.5593128204345703, -0.05330830439925194, -0.04407466575503349, 0.6182163953781128, -0.5414291024208069, 0.715090811252594, 0.4505065083503723, -...
def test _ create _ master ( self ) : parameters = ['config ','database'] environment ='master'module _ text ='migration for the submitty master database.'parameter _ text = " " " : param config : object holding configuration details about submitty : type config : migrator. config. config : param database : object for ...
[ 0.5765231251716614, 0.3709312379360199, 0.7325882911682129, 0.20743703842163086, 0.7591916918754578, 0.9289810657501221, 0.19921541213989258, 0.2476467788219452, 0.11714393645524979, 0.5012348294258118, -0.8513504862785339, 0.20075352489948273, -0.3408489227294922, 1.1577785015106201, 0....