text
stringlengths
25
2.19k
embedding
listlengths
768
768
def test _ atomic _ base64 _ binary _ length _ 2 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ length _ 3 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - length - 3. xsd ", instance = "...
[ 0.4147900938987732, -0.16828669607639313, 0.4062872529029846, 0.8693113923072815, 0.16588225960731506, 0.30348217487335205, 0.2149643898010254, 0.05733826011419296, -0.24698138236999512, 0.8257757425308228, -0.816091001033783, 0.10552448034286499, -0.33071404695510864, 0.16256482899188995,...
def self _ link ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " self _ link " )
[ -0.15782496333122253, -0.27795761823654175, 0.6014193892478943, 0.855642557144165, 0.754118025302887, 1.1088879108428955, 1.1867481470108032, 0.16905894875526428, 0.9113847613334656, -1.0839037895202637, -0.5229907631874084, 1.8780169486999512, -0.17706948518753052, -1.087386965751648, -...
def to _ python ( self, value ) : if value in ( true,'true ','1') : return true elif value in ( false,'false ','0') : return false else : return self. default
[ -1.452071189880371, 0.4058636724948883, 0.5259356498718262, 0.0045063914731144905, 0.21172793209552765, 0.39856284856796265, -0.463263601064682, -0.3566988706588745, -0.3564671277999878, 0.4553677439689636, -0.7083494663238525, -0.46560385823249817, -1.2138174772262573, -0.0621190220117569...
def merge _ mutable ( self, qc ) : qcirc _ merge _ mutable ( self, qc ) return self
[ -0.27062559127807617, -0.23258273303508759, 0.5412973761558533, 0.30173176527023315, 0.0026620649732649326, 0.0017252209363505244, -0.6911889314651489, -0.9257956147193909, 1.1989067792892456, -0.9453110098838806, -0.9833206534385681, -0.28772714734077454, -1.4735743999481201, -0.509119153...
def getval ( self, * args ) : return _ snap. tstrintprv _ getval ( self, * args )
[ -0.19502869248390198, 0.2950823903083801, 0.3753853440284729, -1.2098758220672607, 0.5704317688941956, 0.3175713121891022, -0.13785940408706665, 0.13043347001075745, -1.176068663597107, 0.1421138495206833, 0.40911757946014404, 0.01190818939357996, -0.6484845876693726, -0.6454976201057434, ...
def is _ open ( self ) : try : self. _ h5file. mode return true except valueerror : return false
[ -0.9686513543128967, -0.3434867858886719, 0.3636478781700134, 0.4968162178993225, -0.27235695719718933, 0.466501384973526, 0.7576835751533508, 0.15130890905857086, -0.7030625939369202, -0.774307131767273, 0.29497846961021423, -0.518307626247406, -0.9757779240608215, -0.5942537188529968, ...
def print _ categories _ list ( ) : categories = [ ] for item in data : cat = item [ " category " ] if cat not in categories : categories. append ( cat ) print ( categories ) # print the list
[ 0.16919361054897308, -0.16171757876873016, 0.17190450429916382, -0.2097889930009842, 0.6837255358695984, 0.5259532332420349, -1.1377979516983032, 0.28722530603408813, -0.07817438989877701, -0.8289110660552979, 0.07210958003997803, 0.4838695526123047, 0.1525590568780899, 0.953452467918396, ...
def log ( x ) : try : if x. val < = 0 : raise valueerror ('math domain error') return variable ( x. name, np. log ( x. val ), { k : v / x. val for ( k, v ) in x. der. items ( ) }, false ) except attributeerror : if x < = 0 : raise valueerror ('math domain error') return np. log ( x )
[ 0.13867700099945068, 0.5199695229530334, 0.49989306926727295, 0.04797128587961197, -1.2415988445281982, 0.7564730048179626, -0.8026998043060303, -0.9718453288078308, -0.03757072985172272, -0.7229987978935242, 0.4073807895183563, 0.5862300395965576, 0.452338308095932, -0.15167118608951569, ...
def export _ pandas _ columns _ to _ txt ( data, input _ file _ name = '.. / data / features _ columns. txt') : save _ log ('{ 0 } : : { 1 } '. format ( export _ pandas _ columns _ to _ txt. _ _ module _ _, export _ pandas _ columns _ to _ txt. _ _ name _ _ ) ) columns = data. columns file = open ( input _ file _ name,...
[ -0.12196097522974014, -0.7705994844436646, 0.601945698261261, 0.6679204106330872, 0.5249320864677429, -0.09329122304916382, 0.48747724294662476, -0.35504868626594543, -0.5069233179092407, 0.32338079810142517, -1.1607695817947388, 0.47762227058410645, 0.22893883287906647, -0.958593249320983...
def reachable ( self, target _ set ) : reachables = [ ] for target in target _ set : if self. distance ( target ) < = self. range : reachables. append ( target ) return reachables
[ -1.600071668624878, -0.5748137831687927, 0.4803386330604553, 0.41093623638153076, 0.04250556603074074, 0.24476242065429688, -0.8977269530296326, -0.1273014396429062, -0.9860804677009583, 1.3750543594360352, -0.03720932453870773, 0.5206189155578613, -0.4240773916244507, -0.7710025310516357,...
def geteainti ( self, * args ) : return _ snap. tneanetmp _ geteainti ( self, * args )
[ -0.2253701537847519, -0.7942500114440918, 0.16559629142284393, -0.6579787731170654, 1.0826464891433716, 0.28827545046806335, -0.27097177505493164, -0.1907230168581009, -1.0396208763122559, 0.3774179220199585, -0.47160762548446655, -1.7368144989013672, -0.8183357119560242, 0.530985832214355...
def test _ list _ decimal _ length _ nistxml _ sv _ iv _ list _ decimal _ length _ 1 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - length - 1. xsd ", instance = " nistdata / list / decimal / schema + ...
[ -0.2535240650177002, -0.15989276766777039, 0.5020378828048706, 0.6550823450088501, 0.2502042055130005, -0.0988231897354126, 0.1302596479654312, 0.7638428807258606, 1.2181440591812134, 0.20121517777442932, -0.909622848033905, -0.6853538751602173, -0.1047021821141243, 0.7224431037902832, -...
def test _ list _ decimal _ min _ length _ 4 _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 5 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - minlength - 5. xsd ", instance = " nistdata / list / ...
[ -0.20657560229301453, -0.5009225010871887, 0.4002135396003723, 0.07045271247625351, -0.40267708897590637, -0.4829915463924408, -0.09821726381778717, -0.5567188262939453, 0.6949947476387024, -0.15027223527431488, -1.3869115114212036, -0.3435227572917938, -0.7044047713279724, 0.4234407842159...
def getalldiagnosticerrorcodes ( self, typeid, deviceid ) : devicediagnostics = apiclient. devicediagerrorcodes % ( self. host, typeid, deviceid ) r = requests. get ( devicediagnostics, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 200 : self. logger. debug ( " error codes we...
[ -1.128218412399292, -0.47167930006980896, 0.7618854641914368, 0.43615099787712097, -0.20233584940433502, -0.5132387280464172, -0.534144401550293, -0.07858695834875107, 0.2321557253599167, 0.18849553167819977, 0.1800772100687027, 1.0110355615615845, 0.04019847512245178, 0.609575629234314, ...
def quadratic _ formula _ check ( y ) : discriminant = c1 * * 2 - 4 * ( c2 * y + constant ) * c3 if np. isclose ( discriminant, 0, atol = tol ) and interval [ 0 ] [ 0 ] < - c1 / 2 / c3 < interval [ 1 ] [ 0 ] : return true elif discriminant > 0 and \ ( interval [ 0 ] [ 0 ] < ( - c1 + np. sqrt ( discriminant ) ) / 2 / c3...
[ 0.2762385606765747, -0.6944804787635803, 0.8586271405220032, -0.24210864305496216, -1.108650803565979, 0.46321481466293335, -0.32461389899253845, -1.1398788690567017, -0.42961710691452026, -0.271870881319046, 0.1808241754770279, 0.20197170972824097, -0.4754684567451477, -0.4153625965118408...
def mapdir ( usfm _ dir, words _ rc, output _ dir, global _ search = false, map _ phrases = true ) : usfm _ files = [ ] strongs _ index = { } for root, dirs, files in os. walk ( usfm _ dir ) : usfm _ files. extend ( files ) break print ('generating occurrences index') location _ index = indexwordslocation ( words _ rc ...
[ -0.24214133620262146, -0.2084052413702011, 0.925430417060852, -0.47044697403907776, -0.10857602953910828, 0.517158031463623, 1.324474811553955, 0.9330777525901794, 0.41368401050567627, -0.12307564169168472, 0.11770972609519958, -0.09426788985729218, 0.09471079707145691, 0.3491244912147522,...
def configure ( ) : # plugins configuration configure _ plugins ( ) # default editor editor = prompt ('please specify your default editor ', default ='vim') context = {'default _ editor': editor,'user': env. user } upload _ template ('{ } / templates / zshrc '. format ( root _ folder ), '. zshrc ', context = context ) ...
[ 0.1592848002910614, -0.3110099732875824, 0.517497181892395, 0.3022877871990204, 0.7114923000335693, -1.2411811351776123, 0.5818004012107849, -0.2550807297229767, -0.3978194296360016, 0.004544841591268778, -1.3513338565826416, 0.08085508644580841, 0.010157840326428413, 0.33118316531181335, ...
def getaction ( self, state, hand _ index, ingame ) : legalactions = self. actionswithhandindex ( state, hand _ index, ingame ) if util. flipcoin ( self. epsilon ) : return random. choice ( legalactions ) return self. computeactionfromqvalues ( state, hand _ index, ingame )
[ -0.12260838598012924, -0.28185394406318665, 0.3930625319480896, -0.2760327458381653, 0.5787796378135681, 0.07363421469926834, -0.12807437777519226, -0.29977747797966003, 0.9609420299530029, -0.04984508454799652, 0.5418318510055542, 0.7429069876670837, -0.4704751968383789, -0.72829866409301...
def isfltattre ( self, * args ) : return _ snap. tneanet _ isfltattre ( self, * args )
[ -0.8585108518600464, 0.7050490379333496, 0.447124183177948, -0.5352317094802856, 0.9633876085281372, -1.2174324989318848, -0.27717605233192444, -0.670094907283783, -0.40452155470848083, -0.295632928609848, 0.16945554316043854, -1.2628567218780518, -1.109364628791809, 1.0606974363327026, ...
def setval ( self, * args ) : return _ snap. tfltprv _ setval ( self, * args )
[ -1.2780896425247192, 0.8320082426071167, 0.3727591335773468, -0.271402508020401, 0.33091527223587036, 0.44441255927085876, 0.1915266215801239, 0.8214566707611084, -1.5008794069290161, -0.07184136658906937, 0.39630064368247986, -1.4713102579116821, -0.19923323392868042, 0.8215785622596741, ...
def tch _ ishashch ( * args ) : return _ snap. tch _ ishashch ( * args )
[ 0.6420888900756836, 0.2673031687736511, 0.3457408845424652, 0.8291682004928589, 0.3307003676891327, 0.9852616190910339, -0.05234741419553757, -0.1969398856163025, 0.0022639273665845394, 0.4717862904071808, -0.38142362236976624, -0.16463489830493927, -0.31946390867233276, 0.0411671437323093...
def test _ list _ decimal _ pattern _ 3 _ nistxml _ sv _ iv _ list _ decimal _ pattern _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - pattern - 4. xsd ", instance = " nistdata / list / decimal / sc...
[ -0.5373364090919495, 0.07228470593690872, 0.6359405517578125, 0.8054680824279785, 0.22939786314964294, 0.21413666009902954, -0.11200203746557236, 0.60572749376297, 1.0126142501831055, 0.40709254145622253, -0.8354758620262146, -0.8138217329978943, -0.18159335851669312, -0.12896786630153656,...
def getstatusescount ( self ) : return self. _ statuses _ count
[ 0.2591058909893036, -0.2599063217639923, 0.22033943235874176, -0.05905396491289139, 0.528179407119751, 0.8084385991096497, 0.015217911452054977, 0.4685662090778351, 0.36124885082244873, -1.4412542581558228, -0.5987651348114014, -0.4007364809513092, -0.18661001324653625, 0.00090826221276074...
def query _ data ( self, rec ) : raise notimplementederror ( )
[ -0.5498547554016113, 0.3005223870277405, 0.4004025459289551, -0.5266772508621216, -0.08877982944250107, 0.7946459054946899, 0.21004167199134827, -0.4593386650085449, -0.17352554202079773, -0.4940432012081146, 0.1639004647731781, 0.5398991703987122, 0.08667249977588654, 0.03234319016337395,...
def _ ast _ for _ statement ( node : cst. cstnode ) - > ast. stmt : code = _ code _ for _ node ( node ) try : return ast. parse ( code, type _ comments = true ). body [ - 1 ] except syntaxerror : return ast. parse ( code, type _ comments = false ). body [ - 1 ]
[ -0.14337952435016632, 0.14731329679489136, 0.5120751261711121, -0.9673085808753967, -0.43831050395965576, -0.41408661007881165, -0.6880800724029541, -0.4827909767627716, 0.2717254161834717, 0.23322589695453644, 1.1238614320755005, -0.28700143098831177, 0.24949677288532257, -0.1563321650028...
def _ read _ assoc ( self, items, subtypes ) : nitems = self. _ read _ int ( ) ntypes = len ( subtypes ) for i in xrange ( nitems ) : key = self. read _ value ( subtypes [ ( 2 * i ) % ntypes ] ) val = self. read _ value ( subtypes [ ( 2 * i + 1 ) % ntypes ] ) items [ key ] = val return items
[ -0.8666638135910034, 0.13446001708507538, 0.5256233811378479, 0.1336919665336609, -0.3176916241645813, -0.32205232977867126, 0.14655841886997223, -0.3431495130062103, -1.0616672039031982, 0.23349429666996002, 0.148131862282753, 0.40815529227256775, 0.06711353361606598, -0.5695757865905762,...
def main _ encrypt ( self, data ) : aes _ key, hmac _ key = self. keys pad = self. aes _ block _ size - len ( data ) % self. aes _ block _ size data = data + pad * chr ( pad ) iv _ bytes = os. urandom ( self. aes _ block _ size ) cypher = aes. new ( aes _ key, aes. mode _ cbc, iv _ bytes ) data = iv _ bytes + cypher. e...
[ -0.27512359619140625, 0.48858439922332764, 0.5899123549461365, 0.12726791203022003, 0.19095633924007416, -0.006055077072232962, -0.13956353068351746, -0.4267124831676483, 0.7718512415885925, 0.5621778964996338, -0.5925724506378174, -0.2716328203678131, -0.42317143082618713, 0.1898838579654...
def nextln ( self, * args ) : return _ snap. tlnret _ nextln ( self, * args )
[ -0.7626498341560364, 0.21436205506324768, 0.18445934355258942, -0.16101565957069397, -0.3367598056793213, -0.06929696351289749, 0.08315464109182358, -0.34507492184638977, -0.28988292813301086, -0.8491783142089844, -0.7471495866775513, -0.4484705924987793, -0.2751312851905823, -0.2284122556...
def rgbn _ bg ( self ) : rgb _ bg = self. rgb _ bg return none if rgb _ bg is none else self. rgb _ bg / 255.
[ 0.34251606464385986, 0.18068626523017883, 0.7346875667572021, 1.1801295280456543, 0.5203849673271179, -0.14543823897838593, -0.12297806143760681, -1.0532684326171875, 0.0642029196023941, -0.05660964176058769, -0.6333997845649719, 0.1179082840681076, -1.2510720491409302, 0.5925785899162292,...
def test _ as _ data _ frame _ _ list _ columns ( self ) : data = { " string _ list " : ['[ " foo ", " bar " ] ','[ " wizzle ", " wozzle " ]'], " integer _ list " : [ " [ 1, 5 ] ", " [ 2, 1 ] " ], " boolean _ list " : [ " [ true, false ] ", " [ false, true ] " ], " date _ list " : [ " [ 1622614955000, 1622614955000 ] "...
[ -0.4327855110168457, -0.5480371713638306, 0.7733986377716064, -0.38086584210395813, 0.539454996585846, -0.6945520043373108, -0.05585591867566109, -0.44190219044685364, 0.6027006506919861, -0.3021361231803894, -0.9017374515533447, 0.4214531183242798, 0.5944110155105591, -0.13487344980239868...
def endeainti ( self, * args ) : return _ snap. tneanetmp _ endeainti ( self, * args )
[ -0.4381406307220459, -0.4107298254966736, 0.20329615473747253, -1.119580864906311, 0.9588435292243958, 0.5369990468025208, -0.2974031865596771, -0.15679404139518738, -1.2145071029663086, 0.909062385559082, -0.5349225401878357, -1.7176425457000732, -1.1015530824661255, 0.8604238033294678, ...
def get _ delegates _ of ( userid ) : assert type ( userid ) in ( long, int ) return dict ( [ ( doc [ " category " ], doc ['to'] ) for doc in mongodb. graph. find ( { " from " : userid,'rm': {'$ ne': true } } ) ] )
[ -0.1366606056690216, 0.724155604839325, 0.5784125924110413, -0.8788428902626038, -0.8957014679908752, -0.20835734903812408, -0.11908252537250519, -0.3045927584171295, 0.3073834478855133, 0.07139279693365097, -0.5214347839355469, -0.20753926038742065, 0.5792701840400696, 0.9149355888366699,...
def test _ storage _ pool _ drives ( self ) : with patch ( self. drives _ property, new _ callable = propertymock ) as drives : drives. return _ value = self. drives _ data storagepool = self. _ initialize _ dummy _ instance ( { " state " : " present ", " name " : " pool ", " criteria _ drive _ count " : " 12 ", " raid...
[ 0.05387768894433975, -1.0510344505310059, 0.6024554967880249, -0.6767473816871643, 1.3454246520996094, 0.1503954827785492, 0.5018088817596436, -0.09133075177669525, -0.23042769730091095, -0.3903703987598419, -0.146059051156044, 0.2664640545845032, -0.4333666265010834, -0.2434665858745575, ...
def rot _ center ( self, angle ) : self. rotation = angle orig _ rect = self. origimage. get _ rect ( ) rot _ image = pygame. transform. rotate ( self. origimage, angle ) rot _ rect = orig _ rect. copy ( ) rot _ rect. center = rot _ image. get _ rect ( ). center rot _ image = rot _ image. subsurface ( rot _ rect ). cop...
[ -0.2571147084236145, -0.15923167765140533, 0.5329660177230835, -1.0141549110412598, 0.19764827191829681, -0.041920192539691925, 0.8985684514045715, 0.34747597575187683, 0.6302471160888672, 0.31634658575057983, 0.2853644788265228, 0.19038072228431702, -0.4599359333515167, 0.1833800971508026...
def on _ pushbutton _ startreplay _ clicked ( self ) : folderpath = os. path. split ( os. path. realpath ( _ _ file _ _ ) ) [ 0 ] + " \ \ data \ \ " selectfilepath, filttype = qfiledialog. getopenfilename ( mainwindow, " open bin file ", folderpath, " binary file ( *. dat ) " ) ; if ( selectfilepath! = none ) : self. s...
[ 0.4200190305709839, -0.09714056551456451, 0.8381293416023254, -0.09059516340494156, 0.07033254951238632, 0.5923029184341431, 0.9431735277175903, 0.07872842252254486, -0.27635225653648376, -0.2835904359817505, 0.048724882304668427, 1.6157329082489014, -0.11456441134214401, -0.36035072803497...
def fig _ out ( ) : # sub _ set = ['0145 ','0153'] # sub _ set = ['0145 ','0146'] # sub _ set = ['0145 ','0135'] sub _ set = ['0121 ','0120'] setn = len ( sub _ set ) z = [ ] m _ sat = [ ] m _ bcg = [ ] m _ icm = [ ] m _ h = [ ] m _ s = [ ] for k in range ( setn ) : with h5py. file ('/ mnt / ddnfs / data _ users / cxkt...
[ 0.5058878064155579, 0.14616695046424866, 0.6248611211776733, -0.8115974068641663, -0.04760964959859848, 0.018419038504362106, 0.7391260266304016, -0.07122648507356644, -0.9291709661483765, -0.12225901335477829, -0.1370077282190323, 0.1812223196029663, 0.2419571727514267, 1.2389034032821655...
def test _ atomic _ any _ uri _ pattern _ 4 _ nistxml _ sv _ iv _ atomic _ any _ uri _ pattern _ 5 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - pattern - 5. xsd ", instance = " nistdata / atomic / ...
[ -0.2511862814426422, -0.481084406375885, 0.4398593306541443, 0.8708638548851013, -0.385245680809021, -0.3371061086654663, 0.5018848776817322, -0.44239455461502075, -0.40191903710365295, 0.07550720870494843, -0.10029850900173187, -0.3539060950279236, -0.7558218836784363, 0.17428916692733765...
def test _ atomic _ language _ max _ length _ 1 _ nistxml _ sv _ iv _ atomic _ language _ max _ length _ 2 _ 4 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / language / schema + instance / nistschema - sv - iv - atomic - language - maxlength - 2. xsd ", instance = " nistda...
[ 0.31725040078163147, -0.46800696849823, 0.236162006855011, 0.7918974161148071, -0.5353503823280334, -0.017917221412062645, -0.4528767168521881, -0.15422376990318298, -0.24677525460720062, 0.37112435698509216, -0.5383367538452148, -0.08879652619361877, 0.13414449989795685, 0.381743609905242...
def register _ lsec _ layer ( self, datasets, variable = none, filetype = " ml ", layer _ class = none ) : # loop over all provided dataset names. create an instance of the # provided layer class for all datasets and register the layer # instances with the datasets. for dataset in datasets : try : if variable : layer =...
[ -0.3073376715183258, 0.017109405249357224, 0.30724331736564636, -0.25087419152259827, 0.6702086329460144, -0.04833490774035454, -0.49518635869026184, -0.25248947739601135, -0.2514558732509613, -0.316084086894989, -0.3852058947086334, 0.16718675196170807, 0.12794025242328644, 1.158586859703...
def literal _ sentences ( entity _ uri, literal _ type ) : sentences = [ ] entity _ string = entity _ to _ str ( entity _ uri ) if literal _ type = ='date': query _ string = ( " select str (? answer ) as? a str (? pl ) as? plabel where { { " " < { } >? p? answer. " "? p rdfs : range xsd : date. " "? p rdfs : label? pl....
[ -0.06224622204899788, -0.7206965088844299, 0.875674843788147, -0.5756239295005798, 0.1580396294593811, -0.1301611065864563, -0.289908766746521, -0.1934441477060318, 0.6338815689086914, 0.81304532289505, 0.8148738145828247, 0.00814216397702694, -0.17793411016464233, 0.42602065205574036, -...
def large _ cusp _ to _ small _ cusp ( self, large _ cusp ) : for cusp in self. _ small _ tt. cusps ( ) : if self. small _ cusp _ to _ large _ cusp ( cusp ) = = large _ cusp : return large _ cusp return none
[ -0.00693666422739625, -0.7285311818122864, 0.5953554511070251, -0.8420568108558655, -0.8316592574119568, -0.2701289653778076, 0.33710333704948425, -0.5180683732032776, 1.6350897550582886, 0.0733465701341629, -0.7008755207061768, -0.0922250747680664, 0.020741267129778862, -0.305150955915451...
def begeastri ( self, * args ) : return _ snap. pneanetmp _ begeastri ( self, * args )
[ -0.24800023436546326, -0.13104967772960663, 0.19312971830368042, 0.0964345932006836, 1.2837886810302734, 0.8005817532539368, -0.0462229922413826, -0.5696556568145752, -0.934109628200531, -0.16252858936786652, -0.28415581583976746, -0.562002420425415, -1.4814693927764893, 0.813043475151062,...
async def async _ process _ requirements ( hass : homeassistant, name : str, requirements : list [ str ] ) - > bool : pip _ lock = hass. data. get ( data _ pip _ lock ) if pip _ lock is none : pip _ lock = hass. data [ data _ pip _ lock ] = asyncio. lock ( ) kwargs = pip _ kwargs ( hass. config. config _ dir ) async wi...
[ -0.8370418548583984, 0.5721631646156311, 0.816986083984375, 0.22100327908992767, 0.6478732824325562, -0.4753805696964264, -0.8645293116569519, 0.5214411616325378, 0.18861663341522217, 0.4672221541404724, -0.22924713790416718, -1.0482701063156128, -0.2016061246395111, 1.045111894607544, -...
def on _ command ( self, connection, commander, replyto, groups ) : connection. privmsg ( replyto, " what's % s? " % groups [ 0 ] )
[ -0.24196569621562958, 0.40352827310562134, 0.2957208752632141, -0.3927187919616699, 1.1245572566986084, -0.7899072170257568, -0.8540216684341431, -0.9159168004989624, -0.5182987451553345, -0.16016548871994019, 0.060740306973457336, 1.097047209739685, -0.7045678496360779, -0.228042900562286...
def do _ is _ server _ action ( self, args ) : sid = args. split ( ) [ 0 ] action = args. split ( ) [ 1 ] # pp. pprint ( args ) actions = self. do _ get _ server _ action ( sid ) # pp. pprint ( actions ) for a in actions ['actions'] : if a = = action : return true return false
[ -0.7411643266677856, -0.8888555765151978, 0.5907455086708069, 1.0650830268859863, 0.9365346431732178, -0.0815933346748352, -0.21468524634838104, -0.561932384967804, 0.9101192951202393, 0.7858574986457825, -0.5882711410522461, 1.8920553922653198, -0.7751657962799072, 0.32904574275016785, ...
def domaindistribution ( self ) : self. printstatus ( ) if self. mloglevel > = 1 : sys. stdout. flush ( ) print " " " # # counts : number # ndomains : number of domains per sequence # ndomains / sin : number of domains without singletons per sequence # nmobiles : number of mobile modules per sequence # " " " print " le...
[ 0.45032480359077454, 0.5889496803283691, 0.5336841344833374, -0.11141540110111237, 0.36296820640563965, 0.0957769900560379, 1.0135952234268188, 0.1859300434589386, 0.20310799777507782, -0.566862940788269, 0.3113601505756378, 0.1940661519765854, 0.5164425373077393, 1.2596756219863892, 0.6...
def getdat ( self, * args ) : return _ snap. tinttrflthi _ getdat ( self, * args )
[ 0.4773407578468323, 0.4483506977558136, 0.29016149044036865, -0.6529144048690796, 1.188117504119873, 0.6993400454521179, 0.4067205786705017, -1.6493885517120361, -1.0563832521438599, -1.1736421585083008, 0.5139560699462891, -0.2854243516921997, -0.7044138312339783, 0.40542829036712646, 0...
def apply _ configuration ( self ) : options = self. options if options is none : return self. organization = options. get _ string ( " origin " ) self. observer = options. get _ string ( " observer " ) self. creator = options. get _ string ( " creator " ) self. operator = options. get _ string ( " operator " ) self. f...
[ 0.32398805022239685, -0.4059831500053406, 0.4672548174858093, -0.09826554358005524, 0.35881006717681885, -0.1628841757774353, -0.01744028367102146, 0.75755375623703, 0.12001599371433258, 0.1914716362953186, -0.3498670160770416, -0.22912362217903137, -0.2799849808216095, 0.5541938543319702,...
def push ( self, data ) : cur _ min = data if self. stack! = [ ] and self. stack [ - 1 ]. min _ value < cur _ min : cur _ min = self. stack [ - 1 ]. min _ value self. stack. append ( node ( data, cur _ min ) )
[ -0.36974668502807617, 0.8141535520553589, 0.6155503392219543, 0.2733295261859894, -0.29883500933647156, 0.20365354418754578, -0.5050816535949707, -0.9966959357261658, 0.0396481491625309, -0.04426988586783409, -0.5945615768432617, 0.9855369925498962, -0.9439865350723267, 0.19261908531188965...
def test _ request _ store ( self ) : request _ store = requestsstore ( ) user = get _ user _ model ( ). objects. get ( id = 1 ) # test model blank and null fields validation with self. assertraises ( validationerror ) as err : request _ store. full _ clean ( ) err _ dict = err. exception. message _ dict self. asserteq...
[ -0.617477297782898, -0.4336859881877899, 0.46584609150886536, 0.44020313024520874, 0.2627907395362854, 0.680606484413147, 0.3694476783275604, -0.023445995524525642, 0.4537559151649475, -0.5899381041526794, -0.22850508987903595, -0.09798868000507355, 0.10642813891172409, 0.3065665364265442,...
def _ _ saveparametrization ( self, parameters ) : # todo : implement consistency check self. _ _ parameters = parameters
[ -1.6826012134552002, -0.27481597661972046, 0.2146102786064148, -0.7196152210235596, 1.0343232154846191, 0.25204557180404663, 0.3143404722213745, 0.3337671458721161, -0.12942302227020264, 1.508236050605774, -0.6804620027542114, -0.6536559462547302, -1.4580575227737427, 1.3248579502105713, ...
def getsattrdatn ( self, * args ) : return _ snap. pneanet _ getsattrdatn ( self, * args )
[ -0.4331219494342804, 0.31933480501174927, 0.5234919190406799, 0.6348434686660767, 0.5461521148681641, 0.126931294798851, -0.23428496718406677, 0.1407577246427536, -0.49422886967658997, -1.7346842288970947, -1.1042563915252686, 0.23882178962230682, 0.4570348262786865, 0.9252381324768066, ...
def getsubsetinternalname ( self, subset, doc ) : try : state = self. state [ doc ] except keyerror : state = self. state [ doc ] = ttfont. state ( self. _ asciireadable ) if subset < 0 or subset > = len ( state. subsets ) : raise indexerror ('subset % d does not exist in font % s'% ( subset, self. fontname ) ) if stat...
[ -0.31643036007881165, -0.5836755037307739, 0.6541597843170166, -1.2529840469360352, -1.8359109163284302, -0.12552852928638458, 0.40946370363235474, -0.23571065068244934, 0.2363048791885376, -0.35095319151878357, 0.19011607766151428, 0.4641101360321045, 0.293841689825058, -0.570143520832061...
def fltattrnameni ( self, * args ) : return _ snap. tneanet _ fltattrnameni ( self, * args )
[ -0.8115823268890381, 0.5809414982795715, -0.08544774353504181, -0.37042251229286194, -0.2788774371147156, -0.46273455023765564, -0.20908670127391815, -1.445876121520996, -0.9211125373840332, 0.4272131621837616, -0.7940404415130615, -0.8226487636566162, 0.19660800695419312, 0.17020222544670...
def _ _ lt _ _ ( self, * args ) : return _ snap. tuinthi _ _ _ lt _ _ ( self, * args )
[ -0.007617596536874771, -0.3983815014362335, 0.2736435532569885, -0.8807286024093628, 0.535931408405304, 0.3585066497325897, -0.4015161395072937, -0.9337466359138489, -1.5910693407058716, -0.30942198634147644, -0.33758315443992615, -1.5012190341949463, -0.3528129458427429, 0.326078921556472...
def join ( self, * args ) : return _ snap. ptable _ join ( self, * args )
[ -0.3763993978500366, 0.8039755821228027, 0.5991289615631104, 1.5879560708999634, 0.05052118003368378, 1.009168028831482, 0.5649874806404114, -0.30921483039855957, -1.208573341369629, -0.10656104981899261, -0.2980138063430786, -1.424464464187622, -1.271474838256836, 0.09939834475517273, -...
def getstr ( * args ) : return _ snap. tflt _ getstr ( * args )
[ 0.08677253872156143, 0.480751633644104, -0.10130184888839722, 0.3144066333770752, 0.40150678157806396, 0.313138484954834, 0.9293567538261414, -0.351284384727478, -1.016527771949768, -0.7704165577888489, -0.6514219641685486, -1.0045830011367798, -0.25171032547950745, 0.29793402552604675, ...
def has _ permission ( self, request, view ) : return self. has _ permission _ static ( request )
[ -0.8863860964775085, 0.3852089047431946, 0.4270038306713104, 1.6284064054489136, 0.1487935334444046, 0.0712554007768631, 0.44079089164733887, 0.029150092974305153, -0.14407341182231903, -0.11016134917736053, 0.8685614466667175, -0.04304520785808563, 0.3884482979774475, 0.5430253744125366, ...
def validate ( self, config ) : config = config [ self. namespace ] if not isinstance ( config, list ) : config = [ config ] for conf in config : key = conf. get ('key') if key is none : raise configerror ('seqeunce missing a ` key ` in config') sequence = conf. get ('sequence') if sequence is none : raise configerror ...
[ -0.8290477395057678, -0.48595553636550903, 0.514164924621582, 1.154331088066101, -0.1532975733280182, -0.4225170612335205, -0.4356191158294678, 0.41718149185180664, 0.746651291847229, 1.1966147422790527, -0.2257019579410553, -0.23266898095607758, -0.4388992488384247, 1.588465690612793, 0...
def admin _ list _ devices ( userpoolid = none, username = none, limit = none, paginationtoken = none ) : pass
[ -0.8592808246612549, 0.8943667411804199, 0.4310646653175354, 0.687618613243103, 0.5149924755096436, -0.4725797176361084, 0.9617652297019958, -0.916205883026123, 0.724492073059082, -0.09781899303197861, -0.3379184901714325, 2.093937873840332, -0.5889438390731812, 0.09200325608253479, -0.3...
def parse _ filters ( request, expected ) : # retrieve any supplied filter values f _ types = request. get. getlist ('ft') f _ comps = request. get. getlist ('fc') f _ values = request. get. getlist ('fv') # run. filters = { } min _ len = min ( len ( f _ types ), len ( f _ comps ), len ( f _ values ) ) for ft, fc, fv i...
[ -0.7910885214805603, -0.2607940137386322, 0.5648369193077087, -0.2060956507921219, 0.4388464093208313, -0.3771328628063202, 0.0047977520152926445, -0.387267142534256, -0.2473989874124527, -0.5360747575759888, 0.30097079277038574, 0.13899925351142883, -0.32753250002861023, 1.155036807060241...
def nn _ words ( table, wordvecs, query, k = 10 ) : keys = table. keys ( ) qf = table [ query ] scores = numpy. dot ( qf, wordvecs. t ). flatten ( ) sorted _ args = numpy. argsort ( scores ) [ : : - 1 ] words = [ keys [ a ] for a in sorted _ args [ : k ] ] print'query :'+ query print'nearest :'for i, w in enumerate ( w...
[ 0.17178773880004883, 0.19308270514011383, 0.4126530885696411, -0.06457395851612091, -0.5918233394622803, -0.09440995752811432, -0.07205186784267426, -0.5751373171806335, -1.0211024284362793, 1.439995288848877, 0.20179887115955353, -0.28933364152908325, -0.10139873623847961, 0.4800827801227...
def codingin ( ) : var _ a = int ( input ( ) ) var _ b = int ( input ( ) ) var _ c = int ( input ( ) ) var _ d = int ( input ( ) ) var _ e = int ( input ( ) ) average = max ( var _ a, var _ b, var _ c, var _ d, var _ e ) + min ( var _ a, var _ b, var _ c, var _ d, var _ e ) varp = average / 2 varp + = ( " % 2f " % aver...
[ 0.13137762248516083, -0.037962038069963455, 0.6604521870613098, 0.48169848322868347, -0.15118032693862915, 0.6970611810684204, 1.1993328332901, -0.43215426802635193, -0.4257734417915344, 0.15838631987571716, 0.4321244955062866, 0.23949819803237915, -0.4644269347190857, 0.9206216931343079, ...
def host2ip ( hostname, allow _ localhost = false ) : try : ip _ list = socket. gethostbyaddr ( hostname ) [ 2 ] if allow _ localhost : return ip _ list [ 0 ] else : local _ ips = ('127. 0. 0. 1 ',': : 1') for ip in ip _ list : if ip not in local _ ips : break else : raise nameerror ( ) return ip except nameerror : # g...
[ -0.6266209483146667, -0.02385776676237583, 0.5287078619003296, 0.3005412518978119, -1.1792709827423096, 0.14183808863162994, 0.40075159072875977, 0.9454599022865295, -0.03129635378718376, 1.0971894264221191, 0.8928995132446289, -0.5799636244773865, 0.12187460064888, -0.6946374773979187, ...
def passlistoflists ( lists : list [ listnode ] ) - > list [ listnode ] : l = len ( lists ) lists _ merged = [ ] i = 0 while i < l : # only one list left ; add it if i = = l - 1 : lists _ merged + = [ lists [ i ] ] # at least two lists left ; merge next two and add result else : lists _ merged + = [ mergetwolists ( lis...
[ -0.741291880607605, 0.6264781355857849, 0.8164827823638916, 1.0796153545379639, 0.5650911331176758, 0.6855056285858154, -0.41207239031791687, 0.11847158521413803, 1.0005276203155518, -0.4292071759700775, -0.9858917593955994, -1.254266381263733, -1.0768204927444458, 1.3522192239761353, -0...
def new ( * args ) : return _ snap. tnativecallbacknotify _ new ( * args )
[ -0.04782356694340706, -0.45748886466026306, 0.42753836512565613, 0.2849760949611664, -0.20246276259422302, 0.03468458354473114, -0.14846812188625336, -0.2158961296081543, -1.2948294878005981, -0.20717477798461914, -1.0826836824417114, -1.712568759918213, 0.9390540719032288, 0.4535873532295...
def strattrnameei ( self, * args ) : return _ snap. pneanetmp _ strattrnameei ( self, * args )
[ -0.48503127694129944, 0.011005381122231483, 0.29429197311401367, 0.14914695918560028, 0.17601531744003296, 0.6027060151100159, 0.35266733169555664, -1.628712773323059, -1.510267972946167, 0.626250147819519, -0.2512585520744324, -0.9610898494720459, -0.94940185546875, -0.19307297468185425, ...
def init ( ) : cotton. install ( ) # cotton. create _ project ( ) cotton. install _ iojs ( ) cotton. upload _ template _ and _ reload ('defaults') cotton. upload _ template _ and _ reload ('marvin. sh') cotton. upload _ template _ and _ reload ('supervisor _ marvin') # make a directory to hold the file - brain cotton. ...
[ 0.3782983720302582, 0.3722919821739197, 0.5403702855110168, 0.6869165301322937, 0.7213403582572937, 0.32348528504371643, 0.33402037620544434, 0.3628957271575928, -0.24469707906246185, -0.4125805199146271, -0.7163691520690918, 0.16542772948741913, 0.08004557341337204, 0.8683481216430664, ...
def plotprevioustrace ( self ) : if self. place > = 1 : self. place - = 1 self. plotdualtrace ( )
[ 0.7961649894714355, 1.2538868188858032, 0.7535725235939026, -0.11866627633571625, 0.17251797020435333, 0.5244881510734558, 1.9824339151382446, 0.06319467723369598, 0.890880286693573, 0.33814215660095215, 0.4370103180408478, 0.7248175144195557, -0.6718586087226868, 0.7642306685447693, -0....
def test _ post _ token ( client, session, model, tokens, e _ coli _ core ) : test _ model = { " name " : " private model ", " organism _ id " : 1, " project _ id " : 4, " default _ biomass _ reaction " : " biomass _ ecoli _ core _ w _ gam ", " model _ serialized " : e _ coli _ core, " preferred _ map _ id " : 1, " ec ...
[ -0.2786167562007904, 0.46587151288986206, 0.5050697922706604, -0.20421482622623444, 0.9893834590911865, 0.6921647787094116, -0.5710859298706055, -0.45594358444213867, -0.6117872595787048, -0.625349760055542, -1.02229905128479, -0.0893283486366272, 0.07334239035844803, -0.09611426293849945,...
def save _ xyz ( x, symbols, filename, unit _ conversion = 1. 0 / units. angstrom _ to _ au, text = " ", format _ str = " %. 11e " ) : with open ( filename,'w') as fout : xc = np. array ( x ) * unit _ conversion save _ xyz _ filehandle ( xc, symbols, fout, text, format _ str )
[ 0.06318563222885132, -0.6927404403686523, 0.2633037269115448, 0.3253546953201294, 0.5728169083595276, 0.6502318382263184, 0.5178725719451904, 0.15905117988586426, 0.21713204681873322, -0.3543190658092499, -0.7988625764846802, 0.13178332149982452, 0.10622774064540863, 0.008073806762695312, ...
def _ _ init _ _ ( self, dbase, all _ people = false ) : proxydbbase. _ _ init _ _ ( self, dbase ) self. reset _ references ( ) # if restricted _ to [ " person " ] is a set, restrict process to # them, and do not process others outside of them self. restricted _ to = { " person " : none } # build lists of referenced ob...
[ 0.139827162027359, -0.06735961139202118, 1.077276349067688, 0.2587006092071533, -0.01591821387410164, -0.24637895822525024, 0.7431907653808594, 0.03376767411828041, 0.05626752972602844, -0.5233609080314636, -0.16355378925800323, 0.3383651375770569, -0.4770514667034149, 0.5663852691650391, ...
def _ _ irshift _ _ ( self, * args ) : return _ snap. tuint _ _ _ irshift _ _ ( self, * args )
[ -1.2389954328536987, 0.2759334444999695, 0.36535248160362244, -0.38791659474372864, 0.6025053262710571, 0.5650956630706787, -0.04081682860851288, -0.4561132490634918, -1.5224319696426392, 0.079347625374794, -0.28852030634880066, -0.4935232698917389, -0.9504790306091309, -0.3590489625930786...
def get _ month _ num ( month _ string ) : months = {'jan':'1 ','feb':'2 ','mar':'3 ','apr':'4 ','may':'5 ','jun':'6 ','jul':'7 ','aug':'8 ','sep':'9 ','oct':'10 ','nov':'11 ','dec':'12'} return months [ month _ string ]
[ 0.2255280464887619, -1.2612758874893188, 0.952335774898529, -0.4390498697757721, -0.5410365462303162, 0.18798992037773132, 0.7621283531188965, 0.30042511224746704, 0.5288338661193848, -0.7890555262565613, -0.7529388070106506, 0.17233806848526, 0.0903315618634224, -0.311800479888916, 1.48...
def close _ override ( self ) : return self. override _ force _ close
[ -1.1682229042053223, 0.307510644197464, 0.53873211145401, 0.1367926001548767, -0.10812360793352127, 0.6768729090690613, 0.8707066774368286, -0.8460549712181091, -0.2702977657318115, -0.915846586227417, -0.08522749692201614, -0.2182653695344925, -1.1322617530822754, 0.18078157305717468, 0...
def loadnewbf ( self, * args ) : return _ snap. tsin _ loadnewbf ( self, * args )
[ -0.8842312097549438, 0.7621610760688782, 0.5170969367027283, 0.7444413304328918, -0.3741700053215027, -0.19297738373279572, 0.39161068201065063, -0.2690344750881195, -0.8082675933837891, -0.3179076313972473, -0.8390346765518188, -1.0071334838867188, -1.4021263122558594, 0.7496013641357422,...
def y ( self ) : return self. _ v _ y
[ -0.35502249002456665, -0.3362120985984802, 0.3806033432483673, 0.19248351454734802, 0.44005507230758667, 0.20508010685443878, 0.6308046579360962, -0.8320224285125732, -0.04261505603790283, -0.8550994396209717, -0.17668142914772034, 0.7870422005653381, 0.5897940993309021, -0.386654436588287...
def test _ elementisoperand ( self ) : sclanguage = smartcontractlanguage ( ) # case the element is empty assert not sclanguage. elementisoperand ('' ) # case it is an operand assert sclanguage. elementisoperand ('< something >') # case it is not an operand assert not sclanguage. elementisoperand ('something') assert n...
[ -0.4350616931915283, 0.16460008919239044, 0.3812028765678406, 0.29110202193260193, -0.9761387705802917, 0.9052374362945557, -0.07677607238292694, 0.89149010181427, 1.2698564529418945, -0.3083342909812927, 0.15818940103054047, -0.30608007311820984, -0.6878315210342407, 0.34432193636894226, ...
def _ _ lt _ _ ( self, * args ) : return _ snap. tstrprflthi _ _ _ lt _ _ ( self, * args )
[ 0.4207899868488312, -0.6211011409759521, 0.1418805718421936, -1.3529701232910156, 0.9403026103973389, -0.09387360513210297, -0.06436747312545776, -0.6610735654830933, -1.3019957542419434, -0.6463627219200134, -1.0021401643753052, -0.7908861637115479, -0.5994694232940674, 0.4346644580364227...
def cmd ( * args, * * kwargs ) : cmd _ s =''. join ( args ) print ('+ { } '. format ( cmd _ s ) ) proc = subprocess. popen ( cmd _ s, shell = true, stdout = subprocess. pipe, * * kwargs ) for line in iter ( proc. stdout. readline,'' ) : sys. stdout. write ('> { } '. format ( line ) ) while proc. poll ( ) is none : time...
[ 1.0164859294891357, -0.3294781446456909, 0.9244996905326843, -0.10209468752145767, -0.17448750138282776, 0.39050009846687317, -0.5880964994430542, 0.002627801848575473, -0.46729913353919983, -0.5700758695602417, 1.0155766010284424, 0.8216463923454285, 0.2448398470878601, 0.2426154911518097...
def get _ all _ business _ details ( self, csvfilep, term, location, records ) : bearer _ token = self. obtain _ bearer _ token ( self. api _ host, self. token _ path ) response = self. get _ search _ results ( bearer _ token, term, location, 1, 0 ) businesses = response. get ('businesses') total _ no _ businesses = re...
[ -0.36011752486228943, -0.28931090235710144, 0.8001312613487244, 0.3264637589454651, 0.4449905455112457, 0.594692587852478, -1.0348570346832275, 0.09122505784034729, -0.5318368673324585, -0.18306200206279755, -0.10261204838752747, 1.1508888006210327, -0.5568044185638428, 0.6206819415092468,...
def _ normalize ( self, input _ df : pd. dataframe ) : if self. _ direction = = direction. maximize : max _ val = input _ df [ self. _ input _ col _ name ]. max ( ) else : max _ val = input _ df [ self. _ input _ col _ name ]. min ( ) input _ df [ self. _ output _ col _ name ] = input _ df [ self. _ input _ col _ name ...
[ -0.5489832758903503, 0.5440307855606079, 0.43215665221214294, 0.5310652256011963, -0.40914416313171387, -0.3857616186141968, 0.31657227873802185, 0.09798160195350647, -0.03451962023973465, 0.18070393800735474, 0.6777017712593079, 0.07561565190553665, 0.05111329257488251, -0.609800696372985...
def getni ( self, * args ) : return _ snap. tbpgraph _ getni ( self, * args )
[ 0.6093951463699341, 1.3855260610580444, 0.38601043820381165, 0.8987938761711121, 1.2993851900100708, -1.403688669204712, 0.47929930686950684, -0.8911616206169128, -1.3428151607513428, 0.4333229064941406, -0.9537506103515625, -0.6657326817512512, -0.9809412360191345, -0.5283633470535278, ...
def simple _ get ( url ) : try : with closing ( get ( url, stream = true ) ) as resp : if is _ good _ response ( resp ) : return resp. content else : return none except requestexception as e : log _ error ('error during request to { 0 } : { 1 } '. format ( url, str ( e ) ) ) return none
[ -0.5788128972053528, -0.5235553979873657, 0.8809676170349121, 0.09400054067373276, -0.6168274879455566, -0.18663108348846436, -0.8633662462234497, -1.1654052734375, 0.39249423146247864, -0.7272716164588928, 0.38164108991622925, 0.21707503497600555, -0.8309141993522644, -0.9255943894386292,...
def backpropagate ( this, goal ) : g = np. zeros ( this. network [ - 1 ]. shape ) g [ :, 0 ] = goal assert this. network [ - 1 ]. size = = len ( goal ), ( " goal is not the same length as output " + " layer rather it is % r " % len ( goal ) ) this. error = gradc ( g, this. network [ - 1 ] ) # get the change in cross re...
[ 0.04511300474405289, 0.10484540462493896, 1.1694520711898804, 0.11446812003850937, 0.1223732978105545, -0.57450270652771, 0.37680864334106445, 0.580666720867157, -0.3497702181339264, 0.8360832929611206, 0.39172402024269104, 0.6707812547683716, -0.906471848487854, 0.11807867139577866, 0.2...
def test _ send _ v3 _ trap ( self, mock _ call ) : snmp _ settings = {'traphost':'localhost ','version':'3 ','secname':'eosplus ','seclevel':'authpriv ','authprotocol':'md5 ','authpassword':'eosplus123 ','privprotocol':'des ','privpassword':'eosplus123'} msg = " this is a test message " send _ trap ( snmp _ settings, ...
[ -0.32428109645843506, 0.5132237672805786, 0.7503688931465149, -0.2275761514902115, 0.12480494379997253, 0.5650743842124939, -1.0950632095336914, -0.8411020040512085, 0.9827496409416199, 0.7012639045715332, -0.7917199730873108, 0.12635307013988495, -0.35358694195747375, -0.4665348529815674,...
def hasval ( self, * args ) : return _ snap. tgstat _ hasval ( self, * args )
[ 0.3983355164527893, 1.0752344131469727, 0.3526065945625305, 0.2772692143917084, -0.07686863839626312, 0.6450441479682922, 0.635443389415741, -0.47252342104911804, -1.32149338722229, -0.04031052067875862, -0.5834751129150391, -1.0587011575698853, 0.7846336960792542, 0.9277768135070801, -0...
def plotoutdegdistr _ pneanet ( * args ) : return _ snap. plotoutdegdistr _ pneanet ( * args )
[ -1.0930933952331543, 0.7415249347686768, 0.29173702001571655, -0.6600463390350342, -0.2986580729484558, 1.123543381690979, -0.12383900582790375, 0.08000751584768295, -0.6254653334617615, -0.9812535047531128, 0.13657037913799286, -0.27520787715911865, 0.23980948328971863, -0.063762933015823...
def runonmainloop ( self ) : print ( getdt ( ), " | serial terminal service | register the signal handlers. " ) signal. signal ( signal. sigterm, onserviceshutdownhandler ) signal. signal ( signal. sigint, onserviceshutdownhandler ) print ( getdt ( ), " | serial terminal service | starting main program. " ) try : self....
[ -0.17825458943843842, -0.5680198669433594, 0.3585676848888397, 0.33357569575309753, -0.30884623527526855, 0.4271017611026764, -0.019033025950193405, -0.09022266417741776, 0.2916012108325958, -0.31140342354774475, 0.3110577464103699, -0.1537327766418457, -0.6215156316757202, -0.065422773361...
def test _ initial ( self ) : field = omnidurationfield. _ meta. get _ field ('initial _ data') self. assertisinstance ( field, models. durationfield ) self. asserttrue ( field. blank ) self. asserttrue ( field. null )
[ 0.6065195202827454, 0.48342201113700867, 0.3520776629447937, -0.08850414305925369, 0.7813574075698853, 1.093669056892395, 0.11252668499946594, 0.3283911943435669, 0.4925685524940491, -0.07695840299129486, -0.648627758026123, 0.08350879698991776, 0.15626946091651917, 0.4750498831272125, 0...
def mutation _ operation ( self ) : newpop = [ ] for i in range ( self. sizepop ) : newpop. append ( copy. deepcopy ( self. population [ i ] ) ) r = np. random. random ( ) if r < self. params [ 1 ] : mutate _ pos = np. random. randint ( 0, self. vardim - 1 ) theta = np. random. random ( ) if theta > 0. 5 : newpop [ i ]...
[ -1.184293270111084, -0.4468938112258911, 0.9392814040184021, 0.8059842586517334, -0.4019516706466675, 0.4626069664955139, 0.7352964878082275, -0.40430864691734314, -0.051164399832487106, 1.455955982208252, -0.5334336757659912, -0.4022006392478943, -0.25734955072402954, -0.2752700746059418,...
def testcreatediskfromsnapshot ( self, mock _ gce _ api, mock _ block _ operation ) : mock _ block _ operation. return _ value = none disks = mock _ gce _ api. return _ value. disks disks. return _ value. insert. return _ value. execute. return _ value = none # creatediskfromsnapshot ( snapshot = fake _ snapshot, disk ...
[ 0.22442074120044708, 0.4382708966732025, 0.6398801207542419, 0.2328513264656067, 0.11508702486753464, 0.09665089100599289, 0.8843412399291992, -0.24719321727752686, -0.06223832070827484, -0.8098278641700745, -0.3937411904335022, -0.5071972608566284, 0.5669487714767456, 0.6099062561988831, ...
def check _ existing _ dir ( path ) : try : fullpath = os. path. abspath ( path ) except typeerror : log _ and _ print _ msg ( " check _ existing _ dir was passed an empty path! " ) return none if os. path. exists ( fullpath ) : return fullpath else : log _ and _ print _ msg ( " { 0 } does not exist! ". format ( fullpa...
[ -0.17517204582691193, -0.5188267827033997, 0.7242751717567444, 0.26057952642440796, -0.1873244047164917, 0.7471514940261841, 0.5859279036521912, -0.20114776492118835, 0.3341204524040222, -0.13342833518981934, 1.0421664714813232, 0.14772076904773712, -0.24745917320251465, 0.0281409826129674...
def order ( self, * args ) : return _ snap. ptable _ order ( self, * args )
[ -1.5119818449020386, 0.6658409833908081, 0.3691742718219757, 1.211076259613037, 0.569185733795166, 0.7986041903495789, 0.6592714190483093, -0.39387184381484985, -0.9421539306640625, -0.38319939374923706, -0.4397169351577759, -1.333998203277588, -0.6506848335266113, 0.20756341516971588, -...
def delete ( self ) : # step [ 1 ] : delete a single resource self. res. body, self. res. status _ int = self. jungler. channel _ delete _ single _ resource ( self. path _ url ) # step [ 2 ] : return the response back to the caller return self. res
[ -0.14987991750240326, -0.34794124960899353, 0.45097482204437256, -0.008404170162975788, 0.8857334852218628, -0.6994114518165588, 0.5859466791152954, 0.3807963728904724, 0.208296999335289, -0.5275009274482727, 0.1190490871667862, 0.2819426357746124, -1.365273118019104, -0.032630983740091324...
def isfloat ( hou _ attrib ) : assert type ( hou _ attrib ) is hou. attrib, " invalid argument " return \ hou _ attrib. datatype ( ) = = hou. attribdata. float and \ hou _ attrib. size ( ) = = 1
[ 0.4010133445262909, 0.32838934659957886, 0.45247864723205566, 0.8724443316459656, 0.4320812523365021, 0.5629568696022034, 0.5835449695587158, 0.23881152272224426, 0.3467208743095398, -0.8435853719711304, -0.09695747494697571, -0.06318917125463486, -0.08127397298812866, 0.9185688495635986, ...
def addbacksorted ( self, * args ) : return _ snap. tfltprv _ addbacksorted ( self, * args )
[ -0.7737427949905396, 0.7660525441169739, 0.538754940032959, -0.4399964213371277, 1.0494625568389893, -0.5036325454711914, 0.4437660872936249, -0.1712629199028015, -1.1486114263534546, -0.5626974105834961, -0.07181787490844727, -0.9907389879226685, -1.5745247602462769, 0.7213376760482788, ...
def strattrvalueni ( self, * args ) : return _ snap. tneanet _ strattrvalueni ( self, * args )
[ -0.9154542088508606, -0.09321077167987823, 0.2292688637971878, -0.7059125304222107, -0.029775802046060562, 0.09636460989713669, 0.029174378141760826, -0.96400386095047, -1.5243687629699707, 0.18617574870586395, -0.38375550508499146, -1.0167676210403442, -0.4044893980026245, 0.0448761992156...
def test _ publication _ failed ( self ) : with self. app. app _ context ( ) : session = classic. current _ session ( ) # publication agent publishes the paper. db _ submission = session. query ( classic. models. submission ) \. get ( self. submission. submission _ id ) db _ submission. status = db _ submission. error ...
[ 0.5767627954483032, -0.4243914783000946, 0.0976966992020607, 0.10886874794960022, 0.6636528372764587, 0.5666243433952332, -0.6367630958557129, 0.6420176029205322, 0.5741629600524902, -0.3359925150871277, -0.2027207314968109, -0.4936072528362274, 0.06737741827964783, 0.1515655517578125, -...
def calc _ stringency ( self, x _ costs, prescribed _ ips ) : stringency = np. dot ( x _ costs, np. array ( list ( prescribed _ ips. values ( ) ) ) ) return stringency
[ -0.35387566685676575, -0.3899802267551422, 0.32062217593193054, -0.11878732591867447, 0.004924063570797443, -0.6930966377258301, -0.9231629371643066, 0.6997883319854736, 0.04739931598305702, 1.0294255018234253, 0.3666445016860962, -0.0613316111266613, 0.6236801743507385, -1.200254082679748...