text
stringlengths
25
2.19k
embedding
listlengths
768
768
def conditionalstart ( self, raisefailure = false ) : if self. wasstopped : logging. debug ( " service % s was stopped. starting it again " % self. name ) return self. start ( raisefailure ) else : logging. debug ( " service was not stopped. there for we're not starting it " ) return ( false, false )
[ -0.03361646458506584, -0.41973987221717834, 0.6488884687423706, 0.189848855137825, 0.21534430980682373, -0.24635466933250427, -0.9529420137405396, 0.454178124666214, 0.241294264793396, 0.2691361904144287, -0.0034309341572225094, -0.1289580911397934, -0.7450726628303528, 0.2826445698738098,...
def family ( self ) : return self. symbol. family
[ -0.23568038642406464, 0.41958045959472656, 0.14571358263492584, 0.47899094223976135, 0.1558123081922531, 0.07183516770601273, 0.5730090737342834, -1.0868829488754272, -0.23774904012680054, -1.3588091135025024, -0.019825873896479607, 0.21894817054271698, 0.11176354438066483, -0.189599946141...
def er _ 2x2 _ avg ( prob _ conn : float, num _ trans : int, auto _ reg : bool, rho : float, stationary : bool ) : bc _ dict = { } probability = 1 for i in range ( - 1, 2 ) : probability _ i = probability * ternary _ prob ( i, prob _ conn ) for j in range ( - 1, 2 ) : probability _ j = probability _ i * ternary _ prob ...
[ 0.1205391064286232, -0.2889530658721924, 0.9863482117652893, 0.2625401020050049, -0.12632866203784943, -0.5020702481269836, 0.530990481376648, 0.6060317754745483, -1.3675010204315186, 0.7126040458679199, -0.6146048307418823, 0.7483729124069214, -0.5394391417503357, -0.009188385680317879, ...
def fetch _ organizations ( page _ num = 1, order ='updated _ at + desc') : return fetch _ json ( organizations _ url, {'page': page _ num,'order': order } )
[ -0.8630613088607788, 0.41274502873420715, 0.5459781289100647, 0.6231704950332642, -0.16263969242572784, -0.8310824632644653, -0.7266292572021484, -0.9324939250946045, 0.16933315992355347, 0.5143470168113708, 0.11937759816646576, -0.117546945810318, 0.9930986166000366, 0.017814215272665024,...
def test _ atomic _ any _ uri _ length _ 3 _ nistxml _ sv _ iv _ atomic _ any _ uri _ length _ 4 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - length - 4. xsd ", instance = " nistdata / atomic / any...
[ 0.10427838563919067, -0.18383286893367767, 0.394614577293396, 0.592911422252655, -0.08343175798654556, -0.2966231107711792, -0.18275301158428192, -0.15834788978099823, -0.07283376902341843, -0.18437041342258453, -0.008713961578905582, -0.7230458855628967, -0.5003082752227783, -0.0657359361...
def kind _ first ( self ) : kind = qcirc _ kind _ first ( self ) return kind
[ 1.4476852416992188, -0.2549622356891632, 0.48838138580322266, -0.5391378998756409, 0.5892085433006287, -0.3163085877895355, 0.551011323928833, -1.5247043371200562, -0.0015986155485734344, -0.43368765711784363, 0.0697992742061615, 1.0752909183502197, -0.788943350315094, 0.038125742226839066...
def _ get _ info _ dict _ json ( self, soup : soupinfo ) - > optional [ str ] : # details _ dict : dict = get _ some _ details _ dict # return json. dumps ( details _ dict ) return none
[ -0.4111076891422272, -0.672222912311554, 0.25197190046310425, -1.334863543510437, -0.056195203214883804, -0.742779016494751, -0.4738824963569641, -1.2122151851654053, -0.18074125051498413, -0.24157695472240448, -0.5493651628494263, 0.12276656180620193, 0.866412341594696, 0.4120568633079529...
def mark ( pid ) : cursor. execute ('''select answers. qid from answers where answers. pid =?'' ', ( pid, ) ) question = cursor. fetchall ( ) conn. commit ( ) theaid = question [ 0 ] [ 0 ] # check if the post has an accepted answer already cursor. execute ('''select questions. theaid from questions, answers where quest...
[ -0.020889129489660263, -0.37760865688323975, 0.8367340564727783, -0.5113497376441956, -0.36668163537979126, 0.7542994022369385, 0.056668829172849655, 0.09092412143945694, 0.03711126744747162, 0.4048749506473541, -0.12246028333902359, -0.24699778854846954, -0.8542068004608154, 0.18190504610...
def seek _ table ( self, tag, offset _ in _ table = 0 ) : self. _ pos = self. get _ table _ pos ( tag ) [ 0 ] + offset _ in _ table return self. _ pos
[ -0.47922757267951965, -0.1878044158220291, 0.58720463514328, 0.1491672694683075, -0.8618507981300354, 0.24077735841274261, 0.485159695148468, -0.5700293183326721, -0.9525486826896667, -0.18517959117889404, -0.2080039232969284, 0.3796851336956024, -0.3325258493423462, -0.3102446496486664, ...
def tngraphmp _ new ( * args ) : return _ snap. tngraphmp _ new ( * args )
[ -0.3122011721134186, -0.6511032581329346, 0.004165750462561846, -0.6204163432121277, 0.4733363687992096, -0.17214235663414001, 0.08186019212007523, -0.7279624342918396, -1.3606925010681152, 0.4930819272994995, -0.026926113292574883, -1.3398317098617554, -0.011726271361112595, 0.44466024637...
def addnodeunchecked ( self, * args ) : return _ snap. pngraph _ addnodeunchecked ( self, * args )
[ -1.108461856842041, 1.2768609523773193, 0.4668426513671875, -0.13709145784378052, 1.0842666625976562, 0.2941890060901642, 0.8239826560020447, -0.3171886205673218, -0.0980452224612236, -0.85020512342453, -0.47033822536468506, -0.134405717253685, -0.7280774712562561, -0.40027326345443726, ...
def get _ most _ recent _ event ( self, originator _ id : uuid, lt : optional [ int ] = none, lte : optional [ int ] = none ) - > optional [ tevent ] : events = self. list _ events ( originator _ id = originator _ id, lt = lt, lte = lte, limit = 1, is _ ascending = false ) len _ events = len ( events ) if len _ events ...
[ 0.024558857083320618, 0.2899990677833557, 0.5940425992012024, 0.2392871230840683, 0.19061394035816193, -0.8185141086578369, -0.30301880836486816, 0.24111071228981018, 0.1319914162158966, -0.48618048429489136, 0.6391127705574036, 0.43862736225128174, -0.7125494480133057, -0.6235640048980713...
def images _ list ( self ) : img = self. select ('select * from images') return img
[ -0.7406802177429199, 0.3770826756954193, 0.1910330206155777, -0.11473341286182404, 0.9536328911781311, -0.7822784185409546, -0.8289871215820312, 0.9144143462181091, 0.019550437107682228, 0.6898942589759827, 0.18878379464149475, -0.1933240294456482, 0.353647381067276, 0.37446215748786926, ...
def attrvalueei ( self, * args ) : return _ snap. pneanet _ attrvalueei ( self, * args )
[ -0.21235978603363037, 0.5098387598991394, 0.14580616354942322, 0.9488702416419983, 0.6122572422027588, 0.7014662623405457, 0.21471747756004333, 0.43333619832992554, -1.6714967489242554, -0.4626173675060272, -0.3008831739425659, -0.7776986956596375, 0.6307904720306396, 0.9922903776168823, ...
def isgoogle ( url ) : pattern ='http : / / www. google. com / search \? q = (? p < query > [ a - za - z0 - 9 + ] + )'matches = re. match ( pattern, url ) if matches! = none : return true return false
[ -1.51300048828125, 0.25290846824645996, 0.19320155680179596, 0.24861446022987366, 0.26426389813423157, 0.605722963809967, -0.1921774297952652, 0.8622863292694092, 0.511324942111969, 0.4226144850254059, -0.5909992456436157, 0.40327000617980957, -1.0574108362197876, 0.3076140582561493, -0....
def get _ s3 _ path ( bucket ) : raise notimplementederror ( " get _ s3 _ paths " )
[ -0.3889847695827484, 0.13790100812911987, 0.3760135769844055, 0.9486192464828491, -0.25315868854522705, 0.9531009197235107, 0.7455748319625854, 0.0684838816523552, 0.7617275714874268, -0.026390643790364265, -0.6629449725151062, -0.23976440727710724, 0.36540839076042175, -0.2435419261455536...
def get _ label _ list ( sid _ list, db _ dir ) : label _ list = [ ] for subj in sid _ list : subject _ dir = os. path. join ( db _ dir, subj,'obj ','face - object') if not os. path. exists ( subject _ dir ) : print'subject % s does not exist in database.'% ( subj ) return label = get _ label _ file ( subject _ dir ) l...
[ -0.34887707233428955, -0.5221765041351318, 0.48555535078048706, 0.16488660871982574, 0.8315801024436951, 0.5148831009864807, -0.36135584115982056, -0.29423412680625916, 0.7201669216156006, 0.8013052940368652, -0.25043123960494995, 0.16805504262447357, 0.24272288382053375, 0.984842538833618...
def hasflag ( self, * args ) : return _ snap. tneanet _ hasflag ( self, * args )
[ -0.09914180636405945, 0.6270033717155457, 0.4013384282588959, -0.13542799651622772, 1.0936225652694702, 0.7860710024833679, -0.14933162927627563, 0.5033782720565796, -0.886368453502655, -0.7421320676803589, -0.2732902467250824, -1.6657060384750366, -0.017821665853261948, 1.4706178903579712...
def isotope _ switch _ as _ far _ as _ possible ( self, switch ) : small _ tt = self. _ small _ tt min _ path = shortest _ path ( [ self. path _ coordinates ( branch, br ) for br in small _ tt. outgoing _ branches ( switch ) ] + [ self. path _ coordinates ( cusp, cusp ) for cusp in small _ tt. outgoing _ cusps ( switch...
[ -0.7133033871650696, -0.38247355818748474, 0.8833796381950378, 0.0027692047879099846, -0.18875044584274292, 0.15459632873535156, 0.8525418043136597, -0.20250524580478668, 0.37464502453804016, 0.19283607602119446, 0.3421713411808014, -0.8851416707038879, 0.09271050989627838, -0.114324428141...
def dot ( u : list, v : list ) - > float : return sum ( x * y for x, y in zip ( u, v ) )
[ -0.1241302639245987, -0.16642671823501587, 0.4281386733055115, -0.613774836063385, 0.48796364665031433, 0.09588310867547989, 0.15364877879619598, 0.3082592785358429, 0.36315473914146423, 0.30216774344444275, -0.4787173867225647, 0.5204949975013733, 0.27689674496650696, -0.15307345986366272...
def add ( self, * args ) : return _ snap. tgstatvec _ add ( self, * args )
[ -1.4015048742294312, -0.04385465756058693, 0.3835277557373047, -0.041892796754837036, 0.8386133909225464, 1.0213795900344849, 1.7838789224624634, -0.23892243206501007, -0.8320399522781372, -0.22738869488239288, 0.3302907347679138, 0.41124293208122253, 0.3324682414531708, 0.7100966572761536...
def valued _ functions ( functions, guess _ x, guess _ y ) : array _ valued _ functions = list ( ) for function in functions : array _ valued _ functions. append ( function. subs ( [ ( x, guess _ x ), ( y, guess _ y ) ] ) ) return array _ valued _ functions
[ -0.6930705904960632, -0.7294933199882507, 0.5812528133392334, 0.7257898449897766, 1.261211633682251, 0.03714846819639206, -0.6866948008537292, 0.6151737570762634, -0.5185824036598206, 0.5348731875419617, -1.2982107400894165, 0.7882499694824219, 0.268587201833725, -0.26847103238105774, 0....
def check _ price ( desired : str, actual : str ) - > bool : if ( actual. lower ( ) = ='price not found') : return false return true if ( parse _ price ( actual ) < float ( desired ) ) else false
[ -0.26313984394073486, -0.4130658507347107, 0.814315140247345, 0.8781672716140747, 0.46565890312194824, 0.6235726475715637, -1.7282586097717285, -0.5912403464317322, -1.6751182079315186, 0.27464544773101807, 0.9201589226722717, 0.09362538903951645, -0.29785773158073425, -0.47059160470962524...
def getrndkeyid ( self, * args ) : return _ snap. tinth _ getrndkeyid ( self, * args )
[ -0.6199230551719666, 0.20032307505607605, 0.3919985890388489, 0.3188624382019043, 0.01955411210656166, 0.45804962515830994, -0.4259198307991028, -0.8355321884155273, -0.5976454019546509, 0.12605513632297516, -1.1381133794784546, 1.5851787328720093, -2.20682954788208, 1.296434998512268, 0...
def assert _ dict _ keys _ equal ( dictionary, target _ keys ) : assert isinstance ( dictionary, dict ) assert set ( dictionary. keys ( ) ) = = set ( target _ keys )
[ -1.335935115814209, -0.28107649087905884, 0.2606000006198883, -0.6444985866546631, 0.7506361603736877, 0.20955710113048553, -0.3220251798629761, 0.14025181531906128, 0.2015935778617859, 0.7612599730491638, 0.09355583041906357, 1.0432240962982178, 0.3731828033924103, 0.016454771161079407, ...
def test _ example _ input _ two _ add _ backend _ validation ( 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. entity2....
[ 0.08402490615844727, 0.16713190078735352, 0.9494388103485107, 0.18725748360157013, 0.81988924741745, 0.6107227206230164, -0.1438121497631073, -0.40642160177230835, -0.5218616127967834, 0.47552716732025146, -0.8058435916900635, 0.3209993541240692, 0.26639315485954285, 0.06511016935110092, ...
def bottom _ inf ( self ) : self. source. ids. bottom _ message. text = self. information
[ 0.004369027446955442, 0.04481947794556618, 0.22561198472976685, -0.6579938530921936, 1.4391897916793823, 0.07148684561252594, 0.15016819536685944, -0.3561917245388031, -1.1588343381881714, -0.3108741343021393, -0.8433384895324707, 1.3566813468933105, -1.6208665370941162, 0.4559400975704193...
def getei ( self, * args ) : return _ snap. pungraph _ getei ( self, * args )
[ -0.2538119852542877, 1.154757022857666, 0.4685637950897217, 1.6198394298553467, 1.6998276710510254, -0.9745148420333862, 1.1693154573440552, 0.1773788332939148, -0.5390167236328125, -0.5089603662490845, -0.9929896593093872, -0.7176682949066162, -1.2066549062728882, -0.5039725303649902, 0...
def itksubtractconstantfromimagefilterius3dius3 _ superclass _ cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilterius3dius3 _ superclass _ cast ( * args )
[ 0.9236183762550354, 0.4547012746334076, 0.5230144262313843, -0.2794937193393707, -0.5959746837615967, 0.9578094482421875, -0.5650683045387268, 0.6574541330337524, 0.6471986174583435, 0.00981211755424738, -0.4555501937866211, -0.027732551097869873, -0.40169307589530945, -0.4567822813987732,...
def getlogicalinterfacesondevicetype ( self, typeid, draft = false ) : if draft : req = apiclient. alldevicetypelogicalinterfacesurl % ( self. host, " / draft ", typeid ) else : req = apiclient. alldevicetypelogicalinterfacesurl % ( self. host, " ", typeid ) resp = requests. get ( req, auth = self. credentials, verify ...
[ -0.816333532333374, -0.39642399549484253, 0.5863691568374634, -0.18071718513965607, -0.5493780374526978, 0.24842461943626404, -0.4750775694847107, -0.6076853275299072, 0.9112155437469482, 0.6050650477409363, -0.5384324193000793, 0.19117434322834015, -1.4726223945617676, 0.9651569724082947,...
def addsattrdatn ( self, * args ) : return _ snap. tdirnet _ addsattrdatn ( self, * args )
[ -0.507834255695343, 0.5116077661514282, 0.37236258387565613, -0.469074010848999, 0.22638842463493347, 0.13183525204658508, 0.29229921102523804, 0.3380813002586365, -0.10158484429121017, -1.8720769882202148, -1.145328164100647, 0.21262061595916748, 1.4611234664916992, 0.9036810398101807, ...
def calcendbalance ( balance, annualinterestrate, monthlypayment, months = 12 ) : monthlyinterestrate = annualinterestrate / 12 totalbalance = 0 totalinterest = 0 totalpayment = 0 startingbalance = balance for i in range ( months ) : # print ('month ', i,': begbal : ', startingbalance ) minpayment = monthlypayment tota...
[ 0.5177872180938721, -0.2438850849866867, 1.0163028240203857, -0.9990770816802979, -0.2560364603996277, 0.4562978148460388, -0.4203396737575531, -0.5355411767959595, 0.5834696888923645, -0.3646884858608246, 0.9552346467971802, -0.12341640889644623, -1.6976189613342285, 0.52223801612854, 0...
def write _ labels ( length _ y, file _ obj, plot _ name, labels, label _ box ) : string _ prep ='" { plot _ name } " : '. format ( plot _ name = plot _ name ) for j in range ( len ( labels ) ) : box = label _ box [ j ] string _ prep + = " ( { }, { }, { }, { } ) : { }, ". format ( int ( np. round ( box. x0 ) ), int ( l...
[ -0.08443212509155273, -1.1004078388214111, 0.7295336127281189, -0.865788996219635, 0.2737118601799011, 0.6089139580726624, -0.19297657907009125, 0.23225805163383484, -0.7460336089134216, 0.06763002276420593, -0.6130975484848022, -0.22875604033470154, 0.500077486038208, -0.4578321576118469,...
def gaussian _ blur ( img, kernel = 5 ) : blur = cv2. gaussianblur ( img, ( kernel, kernel ), 0 ) return blur
[ -0.11190849542617798, 0.17650768160820007, 0.28892767429351807, 1.0701565742492676, -1.0587884187698364, 0.8324751257896423, -0.18506160378456116, -0.2788149118423462, 0.18724612891674042, 0.12431160360574722, 0.00314948963932693, 0.6574031114578247, 0.010973756201565266, 0.785619914531707...
def get ( self, transaction _ ids ) : try : transaction _ ids = list ( set ( list ( transaction _ ids ) ) ) request = { " transaction _ ids " : transaction _ ids } response = { } # validate user input validations _ result = validate _ transaction _ ids ( transaction _ ids ) if validations _ result is not none and len (...
[ -0.8712489604949951, 0.02668818272650242, 0.8595166206359863, -0.518083393573761, -0.6741284132003784, -1.4467744827270508, 1.0112465620040894, -0.39447149634361267, -0.08263244479894638, 0.5716721415519714, -0.05385711416602135, -0.21503384411334991, -0.2306666523218155, 0.123715266585350...
def tweet ( msg ) : twitter = twitter ( ) status = twitter. tweet (''. join ( msg ) ) print ( status. link )
[ 1.1154361963272095, 0.11824288219213486, 0.2979593276977539, -0.13679884374141693, 0.8297494053840637, -0.1720721572637558, 0.1739240437746048, 0.7866193652153015, -0.3947538435459137, -1.0239232778549194, -0.785444974899292, 0.9295297861099243, -0.7154803276062012, 1.0129787921905518, -...
def deserialize _ kp _ and _ des ( serialized _ kp _ path, store ) : serialized _ kp _ path = serialized _ kp _ path + store + ". p " with open ( serialized _ kp _ path,'rb') as fp : serialized _ kp = pickle. load ( fp ) results = { } for jpg in serialized _ kp : serialized _ kp _ list = serialized _ kp [ jpg ] [ 0 ] k...
[ -0.3400436043739319, -0.8672887682914734, 0.5749432444572449, -0.22379820048809052, -0.9578573107719421, 0.14246344566345215, -0.3763396143913269, 0.6237612962722778, 0.6556299328804016, 0.7898606657981873, -1.0806373357772827, -0.8952648043632507, 0.11432710289955139, -0.21634070575237274...
def get _ hash _ iterator ( self ) : tdr = self. hash & self. tdr _ mask min _ tdr = max ( 0, tdr - self. tdr _ delta _ value ) max _ tdr = min ( self. tdr _ resolution - 1, tdr + self. tdr _ delta _ value ) part _ hash = int ( self. hash & ( 0xffffffff ^ self. tdr _ mask ) ) hash _ list = [ self. hash ] # add hashes i...
[ 0.2924220860004425, -0.049793437123298645, 0.674200177192688, 0.22802965342998505, -0.29544126987457275, 0.7592954635620117, 0.07068464159965515, -0.4609300196170807, -0.6257878541946411, -0.18027101457118988, 0.25929588079452515, -0.7900375723838806, 0.03585151955485344, -0.23164464533329...
def addfltattrn ( self, * args ) : return _ snap. pneanet _ addfltattrn ( self, * args )
[ -0.7097512483596802, 0.9622197151184082, 0.5094679594039917, -0.006265061907470226, 1.0769449472427368, -0.269207239151001, -0.03359900414943695, -0.45874321460723877, -0.6400690674781799, -1.654587984085083, -0.23151718080043793, -1.0730741024017334, 0.2593826353549957, 1.1189664602279663...
def _ install _ handler ( self, intended _ signal : signal. signals, callback : typing. callable [ [ signal. signals, frametype ], none ], ) - > _ handlertype : def handler ( signum : signal. signals, stack _ frame : frametype ) - > none : signum = signal. signals ( signum ) assert signum = = intended _ signal request ...
[ -0.45349931716918945, 0.0868942067027092, 0.38276588916778564, 0.5487363338470459, 0.2131728082895279, -0.3048242926597595, 0.3503585457801819, -0.48369091749191284, 0.6457366943359375, -0.17077352106571198, -0.20397111773490906, -0.2451408952474594, -0.07156065106391907, 0.663097262382507...
def test _ number _ of _ sampling _ points _ 1 ( ) : assert stereo _ 44100 _ 16bits. number _ of _ sampling _ points ( ) = = 294909
[ 1.0734325647354126, 1.0728192329406738, 0.11065594106912613, 0.9291195869445801, 0.06193364039063454, 0.19952675700187683, 0.6995393633842468, -0.002785320393741131, 1.0374257564544678, -0.045643966645002365, -0.750324010848999, -0.5009827017784119, 0.19544582068920135, -0.2942463457584381...
def defrag ( self, onlynodelinks = false ) : return _ snap. pungraph _ defrag ( self, onlynodelinks )
[ -0.78726726770401, 1.1540133953094482, 0.287063330411911, 0.9840964078903198, 0.2192951887845993, -0.4601299464702606, 1.2611745595932007, 1.3291682004928589, 0.346380352973938, -1.31515371799469, -0.2939494848251343, -0.2597639262676239, -0.7175225019454956, 1.1268963813781738, 0.302508...
def mutate ( self, prob ) : if np. random. uniform ( 0, 1 ) < prob : i = np. random. randint ( 0, len ( self. genes ) ) ngh = np. random. choice ( self. graph. neighbors ( i ) ) self. genes [ i ] = self. genes [ ngh ]
[ -0.16903027892112732, 0.20923176407814026, 0.5300760865211487, 0.5181750059127808, 0.2726058065891266, 0.9962567090988159, -0.1281321495771408, -0.07769042998552322, 0.4463299512863159, 0.45818522572517395, 0.08011668920516968, 0.42661261558532715, -1.1397236585617065, -0.01749357767403125...
def _ find _ legacy _ ec _ projects ( ) : # parallelize, shell is slow. board _ dirs = list ( legacy _ ec _ boards _ dir. iterdir ( ) ) make _ vars _ futures = [ ] with futures. threadpoolexecutor ( ) as executor : for board _ dir in board _ dirs : make _ vars _ futures. append ( executor. submit ( _ get _ legacy _ ec ...
[ -0.2946258783340454, 0.750194787979126, 0.46804994344711304, -0.3714570701122284, -0.25516751408576965, -0.3259787857532501, 0.09452510625123978, 0.17583344876766205, -0.38824984431266785, -0.04337795823812485, -0.34770840406417847, -0.36820098757743835, 0.28431740403175354, 1.161225080490...
def update ( self, env ) : self. env = env
[ -0.8508822321891785, -1.078202486038208, 0.07030711323022842, -0.5761687755584717, 0.2945325970649719, 0.8452770113945007, 0.04245224595069885, 0.013947933912277222, -0.338604211807251, 0.22912102937698364, -0.470652312040329, 0.979141116142273, 0.07504384964704514, 1.1831125020980835, 0...
def test _ uclust _ assigner _ write _ to _ file ( self ) : params = {'id _ to _ taxonomy _ fp': self. id _ to _ tax1 _ fp,'reference _ sequences _ fp': self. refseqs1 _ fp } t = uclustconsensustaxonassigner ( params ) result = t ( seq _ path = self. inseqs1 _ fp, result _ path = self. output _ txt _ fp, uc _ path = se...
[ 0.2251252979040146, -1.3336284160614014, 0.5833505392074585, -0.12050242722034454, 0.31681525707244873, 0.49123451113700867, 1.0791414976119995, 0.46119439601898193, -0.7843301296234131, -0.018791204318404198, 0.30066344141960144, -0.7668676376342773, -0.004539043176919222, -0.691930770874...
def convertesubgraph _ pneanet _ pneanet ( * args ) : return _ snap. convertesubgraph _ pneanet _ pneanet ( * args )
[ -1.116463303565979, 0.2343301773071289, 0.352729856967926, 0.28422409296035767, -0.23546846210956573, 0.5935465693473816, -1.215995192527771, -0.20435328781604767, -0.5252693891525269, -0.2535478472709656, -0.7681567072868347, -0.43704962730407715, 0.6807738542556763, 0.15052857995033264, ...
def _ _ iter _ _ ( self ) : ts = filestoragemanagersingleton. get ( self. _ id ) return iter ( ts )
[ 0.03718569874763489, -0.6439423561096191, 0.2341424971818924, -0.6440984010696411, 0.6810120344161987, -0.5268212556838989, -0.40187016129493713, -0.35936227440834045, -0.11372377723455429, -0.6204906702041626, 0.3287144899368286, 0.25679707527160645, 0.5394701361656189, 0.2832079231739044...
def irg _ to _ rgb ( irg ) : rgb = np. zeros _ like ( irg ) s = irg [..., 0 ] * 3. 0 rgb [..., 0 ] = irg [..., 1 ] * s rgb [..., 1 ] = irg [..., 2 ] * s rgb [..., 2 ] = ( 1. 0 - irg [..., 1 ] - irg [..., 2 ] ) * s # np. testing. assert _ array _ almost _ equal ( # irg, rgb _ to _ irg ( rgb ) ) return rgb
[ -0.9140375256538391, 0.5884715914726257, 0.39934173226356506, -0.2863348126411438, 0.11301244050264359, 0.021823057904839516, 0.6833090782165527, -0.11586541682481766, 0.35237112641334534, 0.9168544411659241, -0.19529134035110474, 0.050764668732881546, -1.0180009603500366, 0.17126064002513...
def _ _ random _ tasks _ for _ frame ( self, frame ) : return task. objects \. filter ( frame = frame, experiment _ id = self. latin _ square. experiment. id ) \. exclude ( id _ _ in = self. _ _ tasks _ to _ exclude ( ) )
[ -0.22382844984531403, 0.3332534432411194, 0.556084156036377, -0.3258531987667084, -0.3727891743183136, 0.7288943529129028, 0.8797608613967896, -0.7316389679908752, 1.1512625217437744, 0.09961067140102386, -1.0481393337249756, -0.09152868390083313, -0.6904427409172058, 0.31266796588897705, ...
def gettabledata ( self, url, fields, querytext, usecustomheaders = false, additionalparameters = false ) : # initialize a master list, we will append each querie's features to this featurelist = [ ] # data to be sent to api - constrained by start and end oid for chunk params = {'f':'json ','where': querytext,'outfield...
[ -0.5892131924629211, -0.5561279058456421, 0.7318539023399353, 0.25954893231391907, -0.06870164722204208, -0.21378734707832336, -0.13300137221813202, -0.42677199840545654, -0.7535821199417114, 0.040019311010837555, -0.7284396886825562, 0.6131098866462708, -0.5776420831680298, 0.218422576785...
def _ _ calc _ contributor _ authors ( self ) : authors = [ ] contributors = [ ] cutof = self. _ _ calc _ cutof ( ) prev _ count, _ = self. _ _ mapped _ shortlog [ 0 ] for count, cont in self. _ _ mapped _ shortlog : if count > = cutof and count > = prev _ count * 0. 4 : prev _ count = count authors. append ( ( count, ...
[ 0.25739553570747375, -1.4191546440124512, 0.33503639698028564, -0.704344630241394, -1.0447282791137695, -0.19948022067546844, 1.0050292015075684, 0.39743173122406006, -0.4030941426753998, 0.04204319417476654, -0.3900458812713623, -0.4219419062137604, -0.2981342375278473, 0.161490797996521,...
def event _ showtimes ( request, event _ id ) : event = get _ object _ or _ 404 ( event, pk = event _ id ) showtimes = showtime. objects. select _ related ( ). filter ( event = event _ id ). order _ by ('date') context = {'showtimes': showtimes,'event': event, } return render ( request,'events / showtimes. html ', cont...
[ 0.492657333612442, 0.23852324485778809, 0.6541706919670105, -0.02115423046052456, -0.13004405796527863, -0.061145782470703125, 0.5036547183990479, 0.6027440428733826, 0.48539304733276367, 1.1308695077896118, 0.3445962369441986, -0.3797541558742523, 0.746077299118042, 0.5459451079368591, ...
def store _ channel _ history ( * * kwargs ) : record = history ( * * kwargs ) channel = record. target global channel _ history if not channel in channel _ history : channel _ history [ channel ] = collections. deque ( [ ], max _ history ) channel _ history [ channel ]. append ( record )
[ 0.5980014801025391, 0.6454177498817444, 0.49059179425239563, -0.641007661819458, 0.9459158778190613, -0.10867951810359955, -0.6401087641716003, -0.27790701389312744, 0.14815503358840942, -0.5042129158973694, -0.7392880320549011, 1.3716471195220947, -0.675349771976471, 0.5189601182937622, ...
def cover _ interval _ by _ static _ offset _ intervals ( start _ ts : pd. timestamp, end _ ts : pd. timestamp, offset : pd. dateoffset ) - > list [ tuple [ pd. timestamp, pd. timestamp ] ] : intervals = [ ] start _ interval _ ts, end _ interval _ ts = find _ date _ bounds _ by _ dateoffset ( start _ ts, offset ) while...
[ -0.6625010967254639, -0.5286874771118164, 0.745168149471283, 0.5354409217834473, -0.3275529742240906, 1.0323234796524048, -0.19814838469028473, -0.15024036169052124, -0.003320898860692978, 0.3796660304069519, 0.021735653281211853, 0.4384137690067291, 1.0896086692810059, 0.22340665757656097...
def save _ logs ( input _ dict ) : root _ dir = input _ dict ['input'] ['root _ dir'] log _ file = open ( root _ dir + " logs. json ", " a + " ) log _ file. write ( json. dumps ( input _ dict ) ) log _ file. close ( )
[ -0.2719722390174866, -0.928666353225708, 0.5454511642456055, -0.33546772599220276, 0.12903687357902527, 0.9992361068725586, 0.08839739114046097, -0.06474940478801727, -0.43032515048980713, 0.14543777704238892, -0.9401611089706421, 0.6460519433021545, -0.1289905160665512, 0.6213696002960205...
def test _ extend _ neg ( self ) : self. assertequal ( bitfield. sign _ extend ( 7, 3 ), - 1 )
[ 0.15307456254959106, 1.206879734992981, 0.5245355367660522, 1.2071688175201416, -0.028663799166679382, 1.7553707361221313, -0.8420681357383728, 0.30682969093322754, 0.4136456549167633, -0.04135449230670929, -1.0252511501312256, -0.712455153465271, -1.2891924381256104, -0.16439378261566162,...
def _ _ init _ _ ( self, width = 0 ) : self. width = width self. item _ index = none self. callback _ func = none self. popup _ window = none self. model = none
[ -0.38546067476272583, 0.025991536676883698, 0.5446894764900208, 0.6100491285324097, 0.024694964289665222, -0.5767858028411865, 0.7691307663917542, -0.05557713285088539, 0.6641512513160706, -0.9877797365188599, -0.7020992636680603, -0.8021552562713623, -0.5492538213729858, 1.309492945671081...
def top _ ten ( subreddit ) : url = " https : / / www. reddit. com / r / " + subreddit + " / hot. json " headers = {'user - agent': " just me " } response = requests. get ( url, headers = headers ) if response. status _ code! = 200 : print ( none ) return information = response. json ( ) data = information [ " data " ]...
[ 0.30247339606285095, -0.1572819948196411, 0.999765932559967, -0.5806841850280762, 0.4779275953769684, 0.15285491943359375, -1.1593241691589355, -0.12508945167064667, -0.3978031873703003, 0.21475188434123993, -1.2958687543869019, 0.9221617579460144, 0.5427982211112976, 0.22626441717147827, ...
def parse _ request ( self ) : global count, test _ mode _ enabled self. command = none # set in case of error on the first line self. request _ version = version = self. default _ request _ version self. close _ connection = true requestline = str ( self. raw _ requestline,'utf - 8') # print ( " request ", requestline...
[ -0.9898794889450073, -0.3902437388896942, 0.9727117419242859, 0.8114685416221619, -0.09009557217359543, 0.07137621939182281, -0.17583264410495758, -0.27023136615753174, -0.8473379015922546, -0.6321115493774414, 0.24608181416988373, -0.4285511076450348, -0.6616104245185852, 0.18406356871128...
def cast _ to _ floatx ( x ) : return np. asarray ( x, dtype = _ floatx )
[ -0.6147811412811279, -0.2382795214653015, 0.6502645015716553, -0.24833156168460846, 0.8779116272926331, 0.630797803401947, -0.6847567558288574, -1.3739440441131592, 0.4295821785926819, 0.27911609411239624, -0.5870847702026367, 1.5979970693588257, 0.1710912138223648, 0.5797775983810425, 0...
def addvmerged ( self, * args ) : return _ snap. tinttrv _ addvmerged ( self, * args )
[ -0.7345107197761536, -0.23483800888061523, 0.35596132278442383, 0.11201994121074677, 0.5818067193031311, 0.051866646856069565, 0.27022939920425415, 0.06377208232879639, 0.1644955426454544, -0.21315132081508636, -1.166371464729309, 0.09128133952617645, -0.9682822823524475, 0.905434370040893...
def _ compresswhitespace ( self, text ) : return self. _ re _ whitespace. sub ('', text ). strip ( )
[ 0.10262536257505417, -0.14197814464569092, 0.38294705748558044, -0.718966007232666, -0.9509776830673218, -0.2612566649913788, -0.11934147030115128, 0.3971445560455322, 0.5996642112731934, 0.37781140208244324, -0.3024676442146301, -0.05523332953453064, -0.9486870765686035, 0.857508361339569...
def secdef _ download ( self, download = true ) : if download : self. download _ data ('secdef')
[ 1.3437741994857788, -0.33584290742874146, 0.29346972703933716, 1.7641483545303345, 0.05211305618286133, 0.19790981709957123, 0.23811788856983185, -0.22370721399784088, -0.0030013034120202065, 0.29694440960884094, -0.5539012551307678, 0.21235857903957367, 0.14817562699317932, 0.879893898963...
def test _ atomic _ any _ uri _ min _ length _ 4 _ nistxml _ sv _ iv _ atomic _ any _ uri _ min _ length _ 5 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - minlength - 5. xsd ", instance = " nistdata...
[ 0.14416131377220154, -0.5906689167022705, 0.4014700949192047, 0.4598217308521271, -0.5120427012443542, -0.44126567244529724, -0.006361278705298901, -0.7890971899032593, 0.08981766551733017, -0.17390400171279907, -0.16727960109710693, -0.166011244058609, -0.9598910808563232, 0.2639924287796...
def output _ dirname ( self ) - > str : return " decrypted _ output "
[ -0.37702229619026184, -0.3872809410095215, 0.4840272068977356, 0.2537488043308258, -0.5818822979927063, -0.16895559430122375, 0.7694511413574219, 0.029253775253891945, -0.5330587029457092, -0.28577616810798645, -0.00986398383975029, 0.16933582723140717, 0.25980615615844727, -0.818017780780...
def get _ 2ndlogarithm ( lines : list [ str ], skipspecialnoun = false ) : alphabet = ascii _ letters [ 0 : 26 ] + " " l = len ( alphabet ) n = l * * 2 npmatrix = np. zeros ( ( n, n ) ) def s ( letter ) : return alphabet. find ( letter ) for line in lines : line = trim _ line ( line, ignorecapitalzedword = skipspecialn...
[ 0.5561659932136536, -0.9364215135574341, 0.9374117255210876, -0.13674652576446533, -0.9201489090919495, -0.7713550925254822, 0.0798015370965004, 0.22529301047325134, -0.1513293832540512, -0.08823538571596146, 0.26555028557777405, 0.4347762167453766, 0.13994860649108887, 0.38460299372673035...
def missing _ param ( setting, param _ name ) : if param _ name not in setting : raise settingmissing ( param _ name )
[ 0.24410472810268402, -0.4374883770942688, 0.3097030818462372, 0.003974094521254301, 0.06598138064146042, 0.20248329639434814, -0.7692408561706543, -0.7357204556465149, -0.5328590869903564, 1.745214819908142, 0.44559112191200256, 0.3838459849357605, 0.059287432581186295, 0.6872663497924805,...
def get ( resource _ name : str, id : pulumi. input [ str ], opts : optional [ pulumi. resourceoptions ] = none ) - >'attribute': opts = pulumi. resourceoptions. merge ( opts, pulumi. resourceoptions ( id = id ) ) _ _ props _ _ = attributeargs. _ _ new _ _ ( attributeargs ) _ _ props _ _. _ _ dict _ _ [ " attribute _ c...
[ 0.4972076117992401, -1.0391738414764404, 0.34018242359161377, -0.8677246570587158, -0.02662438340485096, -0.3236386775970459, 0.13425758481025696, 0.45872795581817627, 0.5242190361022949, -0.028823314234614372, 0.6452518105506897, 0.8412773013114929, 0.07878696173429489, -0.620524883270263...
def _ _ eq _ _ ( self, * args ) : return _ snap. tinttrv _ _ _ eq _ _ ( self, * args )
[ -1.4930830001831055, -0.9103991389274597, -0.09692830592393875, -0.631388247013092, -0.12913590669631958, 0.18840470910072327, 0.7718688249588013, -0.32539793848991394, -0.25377553701400757, -0.07562686502933502, -0.9675605297088623, -0.13015860319137573, -0.08836834132671356, -0.014023168...
def parse _ function ( lexer, module ) : func = parse _ function _ definition ( lexer, module ) while true : token, _ = lexer. get _ next _ token ( peek = true, accept _ eol = true ) if token = ='' : lexer. done _ with _ line ( ) else : break lexer. get _ next _ token ('{') lexer. done _ with _ line ( ) while true : to...
[ 0.4040488600730896, -0.6612223386764526, 0.6686872839927673, 0.07532238960266113, -0.44784122705459595, -0.6422699689865112, -0.9753248691558838, -0.2598070800304413, -1.017612099647522, -0.42822563648223877, 0.2432507425546646, 0.2514190971851349, 0.4966092109680176, 0.3577987551689148, ...
def state _ attributes ( self ) : # # maybe should filter rather than sending them all return visonicapi. panelstatus
[ -0.7280589938163757, -0.7167465686798096, 0.41839852929115295, -0.38302740454673767, -0.5418384075164795, 0.22191976010799408, -0.7831186652183533, -0.0937543585896492, 0.04620388522744179, 0.6061983704566956, -0.8430833220481873, -0.16209962964057922, -0.25787997245788574, 0.9896223545074...
def parse _ iw _ scan ( output ) : lines = output. split ('\ n') index = [ i for i in xrange ( 0, len ( lines ) ) if lines [ i ]. startswith ('bss') ] + [ len ( lines ) ] results = [ ] for i, j in zip ( index [ : - 1 ], index [ 1 : ] ) : s ='\ n '. join ( [ l. strip ( ) for l in lines [ i : j ] ] ) r = dict ( ) for nam...
[ -0.22771675884723663, -0.25797250866889954, 0.6122099757194519, -0.4120405614376068, -1.3222349882125854, -0.7182211875915527, 0.00852449331432581, -0.8471651077270508, -0.8314160704612732, 0.12254533916711807, -0.226627916097641, -0.24970613420009613, -0.2938465178012848, 0.62887597084045...
def _ _ init _ _ ( self, * args ) : _ snap. tintstrhi _ swiginit ( self, _ snap. new _ tintstrhi ( * args ) )
[ 0.7295444011688232, -0.4270518720149994, 0.03750312700867653, 0.9237349033355713, -0.4284929037094116, -0.6370508074760437, 0.7693806290626526, -0.13530340790748596, -0.886987566947937, 0.16668732464313507, -0.691889762878418, 0.07154898345470428, -0.3298852741718292, 0.2105565369129181, ...
def _ _ eq _ _ ( self, * args ) : return _ snap. tintstrpr _ _ _ eq _ _ ( self, * args )
[ -0.7929404973983765, -0.8226357698440552, 0.09360577911138535, -0.4351474642753601, 0.03104081004858017, -0.09036509692668915, -0.013209806755185127, -0.37026873230934143, -0.04736214876174927, 0.29816240072250366, -0.7668266296386719, -0.6654345393180847, -0.6808690428733826, -0.622941076...
def test _ max _ digits ( self ) : field = omnidecimalfield. _ meta. get _ field ('max _ digits') self. assertisinstance ( field, models. positiveintegerfield ) self. assertfalse ( field. blank ) self. assertfalse ( field. null )
[ 0.9235745072364807, 1.1381717920303345, 0.2601828873157501, 0.06681430339813232, 0.03266894444823265, 0.6931766271591187, -1.3578770160675049, 0.47222721576690674, 0.7787398099899292, -0.254624605178833, -0.14883248507976532, -0.561494767665863, 0.03762336075305939, 0.29401692748069763, ...
def test _ model _ result _ total _ length ( self ) : _ data = { " human " : " atgcggctcgcggaggccgcgctcgcggag ", " mouse " : " atgcccggcgccaaggcagcgctggcggag ", " opossum " : " atgccagtgaaagtggcggcggtggctgag ", } aln = make _ aligned _ seqs ( data = _ data, moltype = " dna " ) model1 = evo _ app. model ( " gn ", opt _ ...
[ 0.7282301783561707, 0.1771305501461029, 0.44645437598228455, -0.6420095562934875, 0.5565823316574097, 0.5474839210510254, -0.07513405382633209, 0.20972338318824768, 0.09165775775909424, 0.41302141547203064, -0.9996230006217957, -0.3607328236103058, 0.26774388551712036, 0.44329872727394104,...
def gettrianglecnt _ pngraph ( * args ) : return _ snap. gettrianglecnt _ pngraph ( * args )
[ -0.09975903481245041, 0.7077156901359558, 0.07224777340888977, -1.0766558647155762, 0.15498854219913483, -0.3221345543861389, 0.8221790790557861, -0.20014117658138275, -0.1428477168083191, -0.42821386456489563, -0.6869766712188721, 0.07389179617166519, 0.9948295950889587, -0.81834912300109...
def unwatch _ tag ( self, tag ) : channel _ server = self. _ channel ( self. tag, tag ) subscriber = yield from self. _ get _ subscriber ( ) yield from subscriber. unsubscribe ( [ channel _ server ] ) log. debug ( " unsubscribed from % s ", channel _ server )
[ 1.1061351299285889, -0.3787350654602051, 0.31044116616249084, -0.7282318472862244, -0.41499486565589905, -0.43817535042762756, -0.12722811102867126, -0.6815230846405029, -0.37516412138938904, -0.14767347276210785, -0.4897174835205078, 1.4420843124389648, -0.1496812105178833, 0.851082146167...
def compareatomicconsttstr ( self, * args ) : return _ snap. trowiterator _ compareatomicconsttstr ( self, * args )
[ 0.30952557921409607, -1.1090284585952759, 0.09717720001935959, 0.14728713035583496, -0.6246737241744995, 0.5251885056495667, 0.09945376962423325, -1.4506244659423828, -1.6552029848098755, 0.6180720925331116, 0.3558294177055359, -0.8559188842773438, -0.05578780919313431, -0.3658757209777832...
def test _ call _ logs _ run ( self ) : log _ path = get _ tmp _ filename ( \ prefix ='blasttaxonassignertests _ ', suffix = '. fasta') self. _ paths _ to _ clean _ up. append ( log _ path ) # build the blast database and keep track of the files to clean up blast _ db, files _ to _ remove = \ build _ blast _ db _ from ...
[ 0.19362983107566833, -0.4319424629211426, 0.6202244758605957, -0.21417762339115143, 0.5753595232963562, 0.5762954354286194, 0.4809192419052124, 0.35373184084892273, -0.4411393105983734, 0.13667882978916168, -0.11313144117593765, -0.08210177719593048, -0.40979713201522827, 0.189931496977806...
def iskey ( self, * args ) : return _ snap. tintset _ iskey ( self, * args )
[ -1.037018895149231, -0.07152207940816879, 0.26160305738449097, 1.2163646221160889, 0.3327258229255676, -0.35267260670661926, 0.49582618474960327, -0.6830691695213318, 0.16068847477436066, -0.19107842445373535, -0.1409025490283966, 0.2620777189731598, -1.6204649209976196, -0.228648230433464...
def genffgraphs ( * args ) : return _ snap. tffggen _ genffgraphs ( * args )
[ -0.9799082279205322, 1.3880615234375, 0.4061933755874634, 0.8586562275886536, -0.18820331990718842, -0.002662080340087414, 0.6195394992828369, -0.11435846239328384, -1.2213767766952515, 0.01604849472641945, -1.5052413940429688, -0.6260188817977905, -0.7071835398674011, 1.5899956226348877, ...
def test _ get _ login _ form ( self ) : pass
[ -0.24593237042427063, -0.019161803647875786, 0.04318464919924736, 0.5261343121528625, 0.702113926410675, 0.08770684152841568, 0.8856827616691589, -0.318663090467453, 0.02418600581586361, -1.857714056968689, -1.1166425943374634, 0.7311612367630005, -0.9423513412475586, -1.0791878700256348, ...
def add _ source ( ) : print ( " adding new source " ) type _ = click. prompt ( " type ( rss | youtube _ channel | page _ links ) " ) name = click. prompt ( " name " ) url = click. prompt ( " url / channel " ) page _ links _ selector = none if type _ = = " page _ links " : page _ links _ selector = click. prompt ( " pa...
[ -0.5314830541610718, 0.38830041885375977, 0.41973909735679626, 0.3054380714893341, 0.3311026394367218, 0.2835007905960083, -0.29623886942863464, -0.7451406121253967, 0.33198821544647217, -0.5946947336196899, -1.011873483657837, 0.4194850027561188, -0.667184054851532, 1.1258172988891602, ...
def convertsubgraph _ pungraph _ pungraph ( * args ) : return _ snap. convertsubgraph _ pungraph _ pungraph ( * args )
[ -0.8618294596672058, 0.3768632113933563, 0.3499624729156494, 1.2817744016647339, -0.7250330448150635, -0.34731364250183105, -0.025934217497706413, 0.9530878663063049, 0.025779617950320244, -0.055663563311100006, -1.508259892463684, 0.08522683382034302, -0.229818657040596, 0.129904776811599...
def addatm ( self, * args ) : return _ snap. tfltv _ addatm ( self, * args )
[ -0.6959522366523743, 0.16128568351268768, 0.12022282183170319, -0.444320410490036, 0.8317098617553711, -0.0670238807797432, 0.31210604310035706, 0.13223187625408173, -0.6731882095336914, -1.0395033359527588, 0.350041925907135, -0.9225385189056396, 0.42809683084487915, 1.2025206089019775, ...
def select ( self, * args ) : return _ snap. ptable _ select ( self, * args )
[ -0.9113811254501343, 0.7828924655914307, 0.3738071024417877, 1.0843913555145264, 0.39049363136291504, -0.04978882893919945, 1.2356350421905518, -1.0345118045806885, -0.7837616205215454, 0.016388434916734695, -0.06018041446805, -0.9197307825088501, -0.5585212707519531, -0.22579894959926605,...
def generateforecasttimeseries ( self, request, context ) : context. set _ code ( grpc. statuscode. unimplemented ) context. set _ details ('method not implemented!') raise notimplementederror ('method not implemented!')
[ -1.6931357383728027, 0.4920579493045807, 0.5430117845535278, 0.558404803276062, -0.020169591531157494, 0.3602657616138458, 0.4190879166126251, -0.9644123911857605, 0.14929595589637756, 0.49998533725738525, -0.39516597986221313, 0.9170764088630676, -0.7334991097450256, 0.5318495631217957, ...
def last _ updated ( ) - > datetime : # gets the current datetime to show when the webpage was last updated. current _ datetime = datetime. now ( ). strftime ( " % y - % m - % d % h : % m : % s " ) print ( " last updated : \ n ", current _ datetime ) return current _ datetime
[ 0.34175390005111694, -1.223289966583252, 0.6947830319404602, -1.0817714929580688, -0.32697972655296326, 0.24308332800865173, -0.43799862265586853, 0.43413785099983215, 0.14004184305667877, 0.7276841998100281, 0.2522386610507965, 0.3295965790748596, -0.35087037086486816, -0.2136445194482803...
def test _ order ( self ) : order _ kanan = order. objects. get ( customer _ name ='kanan') order _ rita = order. objects. get ( customer _ name ='rita') order _ david = order. objects. get ( customer _ name ='david') self. assertequal ( order _ kanan. pizza. title,'hawaiian chicken') self. assertequal ( order _ rita. ...
[ 0.23096688091754913, -0.19306577742099762, 0.37942373752593994, 0.8717765212059021, 0.1600850522518158, -0.1226891502737999, -0.24368499219417572, 0.10016562044620514, -0.3482779264450073, -0.08886724710464478, -0.8576404452323914, -0.3945700526237488, 0.1650063842535019, 0.164891585707664...
def evaluate _ game ( self ) : if self. my _ choice = = self. ai _ choice : self. gewinner ='tied'else : if rockpaperscissors. choices [ self. my _ choice ] [ self. ai _ choice ] : self. gewinner ='human'else : self. gewinner ='ai '
[ -1.0981632471084595, -0.48701226711273193, 0.6263104677200317, -0.8165438771247864, 0.42965853214263916, 0.7109687924385071, -0.3770831227302551, -0.1411559134721756, 0.06854064762592316, 1.2338885068893433, 0.3328171372413635, 0.5926264524459839, -0.3832453191280365, 0.5479529500007629, ...
def test _ propensity _ migration _ carn ( self ) : assert self. o. propensity _ migration _ carn = = 0
[ 0.0056436676532030106, -0.678149938583374, 0.4419699013233185, 1.5121753215789795, 1.0858334302902222, 0.836193323135376, -0.18689917027950287, 0.570030152797699, -0.1048702746629715, -0.7190264463424683, -0.13328872621059418, 0.3043828308582306, 0.0709967315196991, -0.3238445222377777, ...
def calculate _ gc _ content ( sequence : str ) - > float : sequence = re. sub ( r'[.!? /, \ n ] ','', sequence ) # print ( sequence ) c = counter ( sequence. upper ( ) ) return round ( ( ( c ['g'] + c ['c'] ) / len ( sequence ) ) * 100, 2 )
[ -0.13593293726444244, -0.79313063621521, 0.5319603085517883, -0.7772375345230103, -0.5808578133583069, -0.8933870196342468, 0.236098974943161, -0.10834714025259018, -0.6152892708778381, 0.8892878890037537, -0.5731290578842163, -0.3746010661125183, -0.21628688275814056, 0.16132162511348724,...
def _ _ new _ _ ( s, * more ) : # real signature unknown ; restored from _ _ doc _ _ pass
[ -0.8009260892868042, -0.5534924268722534, 0.4688420593738556, 0.8641753792762756, -1.1760499477386475, -0.24230769276618958, 0.8332360982894897, -1.1120270490646362, 0.00872752908617258, -0.19691911339759827, -1.164334774017334, -0.5995680093765259, 0.8356699347496033, -0.3499341309070587,...
def segment _ protein ( self, protein, segmented _ protein, length, existingsegments, lastindex, lastindexoffset ) : print'protein ( % d / % d ) : % s'% ( self. proteincount, self. proteintotal, protein. code ) chains = protein. chains. all ( ) for chain in chains : print'chain : % s'% chain. code # setup initial list ...
[ -0.327237993478775, -0.6808639764785767, 0.6713991761207581, -0.7490489482879639, 1.1372419595718384, -0.06310272961854935, -0.36745312809944153, -0.33800339698791504, 0.13642558455467224, 0.17234265804290771, 0.23266687989234924, -0.5893940925598145, -1.1805496215820312, -0.33853045105934...
def count ( self, * args ) : return _ snap. tfltv _ count ( self, * args )
[ -0.4397783875465393, 0.3416171669960022, 0.3630674183368683, -0.10181643068790436, 0.5012657642364502, -0.37449347972869873, 0.9506887197494507, 0.3596775233745575, -1.5368188619613647, -0.6446465253829956, -0.44541865587234497, -1.1758427619934082, 0.08128054440021515, 1.764021635055542, ...
def handle _ client ( sock, addr, public, private ) : print ( " handling client " ) contacts = load _ contacts ( ) display _ name = get _ contact _ name ( addr [ 0 ], contacts ) print _ green ( " new connection from { }! ". format ( display _ name ) ) print ( " > performing key exchange... " ) client _ public = rsa. im...
[ -0.518202006816864, -0.18290986120700836, 0.7499493360519409, -0.28692305088043213, -0.3927933871746063, 0.011480378918349743, 0.5560905337333679, -0.5244424939155579, 0.00008956427336670458, 0.01772182062268257, -0.45600929856300354, -0.13809560239315033, -0.019475506618618965, 0.40153628...
def softmax ( v ) : exps = torch. exp ( v ) return exps / torch. sum ( exps, dim = 0 ). unsqueeze ( 0 )
[ 0.5362988710403442, -0.20632104575634003, 0.4217193126678467, 0.8621326684951782, -0.7825567722320557, -1.0716396570205688, 0.13647021353244781, 1.1440136432647705, 1.5229551792144775, 0.49322158098220825, -0.6465094685554504, 0.3087080121040344, -0.1349368691444397, -0.3569446802139282, ...
def depends _ on ( self ) : return self. _ depends _ on
[ 0.0010227560997009277, -1.0660300254821777, 0.4451671540737152, 0.135825976729393, -0.11108280718326569, 0.6754603981971741, 0.23265090584754944, 0.1384766846895218, -0.5204700827598572, -0.42085716128349304, -1.5054482221603394, -0.0651279166340828, -0.1472129374742508, -0.245167806744575...