text
stringlengths
25
2.19k
embedding
listlengths
768
768
def _ add _ process _ metadata ( self ) : for process in self. _ processes : nodename = " pid { 0 } ". format ( process ['pid'] ) self. nodemetadata [ nodename ] ['first _ seen'] = process ['first _ seen'] if not process ['calls'] : self. nodemetadata [ nodename ] ['calls'] = pandas. dataframe ( columns = ['category ',...
[ -0.29512766003608704, -0.4308722913265228, 0.6782228946685791, -1.4652913808822632, 1.4800021648406982, 0.5215483903884888, -0.9087690711021423, -0.5128251314163208, -1.0588663816452026, 0.3696899712085724, 0.12552659213542938, 0.6316264271736145, 0.4525096118450165, 0.6104833483695984, ...
def add _ first ( self, value ) : node = linkedlistnode ( value ) if self. is _ empty ( ) : self. head = node self. tail = node else : node. next = self. head self. head = node
[ 0.1880340576171875, 0.7028653025627136, 0.579022228717804, -0.573297917842865, 0.262543648481369, 0.17500683665275574, -0.22519196569919586, -0.17883150279521942, 0.9898988008499146, -0.3324340581893921, -0.44711095094680786, 0.1423608660697937, -0.4107920825481415, 1.6029235124588013, -...
def is _ up ( self ) : return self. state! = bankingsystem. state _ shutdown
[ -0.6949424743652344, 0.33605319261550903, 0.5486006140708923, 0.8391380310058594, 0.0730862244963646, 0.17183591425418854, -0.4231277406215668, -0.3866674304008484, 0.8228908777236938, 0.7487240433692932, 0.19041356444358826, -0.05468935891985893, -0.7292105555534363, -0.2763027250766754, ...
def login ( ) : form = loginform ( ) username = request. form. get ('username') password = request. form. get ('password') if form. validate _ on _ submit ( ) : dynamodb = boto3. resource ('dynamodb ', region _ name ='us - east - 1') table = dynamodb. table ('user') response = table. scan ( filterexpression = key ('nam...
[ -0.3984804153442383, -0.3852861523628235, 0.8110915422439575, 1.1055970191955566, -0.7700040340423584, 0.17955923080444336, 0.5867241621017456, 0.5081565976142883, 0.8571859002113342, -0.808112621307373, -0.12184922397136688, -0.36760956048965454, 0.35729920864105225, -0.16840706765651703,...
def test _ resource _ caching ( self ) : # there's no file here. self. go ('/ global / foo. txt') assert self. s. status = = 404 self. go ('/ global / foo. txt? lang = fr') assert self. s. status = = 404 # add a resource to be served as the static file. bundle = resourcebundle ( key _ name ='1') resource ( parent = bun...
[ 0.30866432189941406, 0.2749444246292114, 0.49152305722236633, -0.2999313473701477, -0.13735996186733246, 0.7026278376579285, -0.11484213173389435, 0.702625036239624, -0.8132016658782959, 0.6820200681686401, -0.6222714781761169, -0.4113830626010895, -0.07263415306806564, 0.2561062276363373,...
def best _ practice ( bp _ file, sfp _ file, a _ tbl, proj _ obj ) : global _ alert _ tbl _ d, _ bp _ tbl _ d, _ sfp _ file, _ sfp _ rules _ alert _ tbl _ d = a _ tbl # i could have handled this better but i'm not fixing working code. if sfp _ file is not none : _ sfp _ file = sfp _ file _ sfp _ rules = report _ utils....
[ 0.7147796750068665, -0.08240405470132828, 0.6409593224525452, 0.7070737481117249, 0.7575483322143555, 0.49692460894584656, 0.6923738121986389, 0.3695817291736603, -0.7876509428024292, -0.03986824303865433, 1.0895400047302246, 0.6296947598457336, -0.08839280903339386, 0.4129910469055176, ...
def produce _ plot ( self, query, mode ) : logging. debug ( " getmap / getvsec request. interpreting parameters.. " ) # evaluate query parameters : # = = = = = = = = = = = = = = = = = = = = = = = = = = = = = version = query. get ( " version ", " 1. 1. 1 " ) # image size. width = query. get ('width ', 900 ) height = que...
[ -0.302852600812912, 0.380727618932724, 0.7325459718704224, 0.0726686641573906, -0.5897340178489685, -0.6256140470504761, -0.39766380190849304, -0.5010620951652527, -0.6020528078079224, 0.3343808650970459, 0.6025605797767639, 0.8312755823135376, 0.023566853255033493, 0.16737724840641022, ...
def sortedbydist ( reachable, dest ) : destx, desty = dest # sorts by distance then lexical. then only return the reachable list that was sorted. return [ n [ - 1 ] for n in sorted ( reachable, key = lambda node : ( dist ( node [ 1 ], destx, node [ 2 ], desty ), node [ 0 ], node ) ) ]
[ -0.2885358929634094, -0.08735030889511108, 0.5981418490409851, 0.04420093446969986, -0.6486061215400696, 0.10633990913629532, -1.309430718421936, 0.16054652631282806, -0.9897060990333557, 1.358802318572998, -0.4487834572792053, -0.2567635476589203, 0.5175859928131104, -0.5781896710395813, ...
def aggregation _ divisor ( cls, message ) : if notimplemented in [ cls. dimension _ hierarchy, cls. dimension _ element ] : raise notimplementederror # dimension is defined, and hierarchy is dimension as well, # we count elements if message. dimension [ cls. dimension _ hierarchy ] : return len ( message. dimension [ ...
[ -0.381591796875, 0.8851988315582275, 0.9293814897537231, 0.04704388231039047, 0.10371830314397812, 0.4611646234989166, 1.1585361957550049, 0.8382648229598999, -0.5223304629325867, -0.007970827631652355, 0.5403268337249756, 0.3607422113418579, -0.39902034401893616, 1.791040301322937, 0.11...
def get _ link _ angular _ geometric _ jacobian _ function ( self, link : str, base _ link : str, n : int = 1, numpy _ output : bool = false, ) - > cs. function : return self. make _ function ( " ja ", link, self. get _ link _ angular _ geometric _ jacobian, base _ link = base _ link, n = n, numpy _ output = numpy _ ou...
[ -0.15905675292015076, -0.2260393351316452, 0.25958251953125, 0.3658348321914673, 0.13606886565685272, -0.7881554961204529, 0.6587491035461426, -0.9425017833709717, -0.5127511024475098, -0.5669185519218445, 0.21216842532157898, 1.3325120210647583, 0.5683716535568237, -0.9200078845024109, ...
def addintattrdate ( self, * args ) : return _ snap. tneanetmp _ addintattrdate ( self, * args )
[ 0.43209969997406006, -0.36441442370414734, 0.3210243880748749, -0.7657148838043213, 0.6498551368713379, 0.6324974298477173, -0.7061865329742432, -0.1305069476366043, -0.8022949695587158, -0.062391337007284164, 0.12738998234272003, -1.5426095724105835, -1.1680766344070435, 1.234252214431762...
def seek _ kindle _ price ( soup : bs ) - > str : kindle _ arr = soup. find _ all ( " span ", class _ = " a - size - base a - color - secondary " ) for soup _ obj in kindle _ arr : string = soup _ obj. get _ text ( ) if ( len ( re. findall ( " [ + * | ( ) { } %! ] ", string ) ) > 0 or len ( re. findall ( " [ a - z ] ",...
[ -0.8308780789375305, -0.6010164022445679, 1.010318398475647, 0.3814208209514618, -0.21081393957138062, -0.3256121277809143, 0.2003447562456131, -0.9040921330451965, 0.03651690483093262, 0.9018138647079468, 1.1055759191513062, -0.08893190324306488, 0.12431597709655762, 0.28280386328697205, ...
def getdat ( self, * args ) : return _ snap. tintprflth _ getdat ( self, * args )
[ 0.5788562893867493, 0.32405102252960205, 0.5836334228515625, 0.17557138204574585, 1.3482229709625244, 0.5279959440231323, 0.13386736810207367, -0.4523393511772156, -0.3403227925300598, -1.8658074140548706, -0.04958019778132439, -0.42203062772750854, -1.2636892795562744, 0.38136881589889526...
def _ index _ call ( self, params ) : return self. req. get ( self. _ index _ url, params = params ). text
[ -1.0544133186340332, 0.3975609242916107, 0.31425634026527405, -0.4858534038066864, -0.28432443737983704, -0.1991773396730423, -1.142683982849121, -0.3273393213748932, -0.23713690042495728, 1.2364171743392944, 1.1029845476150513, 0.4634753465652466, -0.7695936560630798, -0.8445082902908325,...
def geti ( self, * args ) : return _ snap. tintflth _ geti ( self, * args )
[ 0.8934512734413147, -0.024687621742486954, 0.36834630370140076, 1.24466872215271, 1.0526466369628906, -0.08719831705093384, 0.539289116859436, -0.38101568818092346, -1.4971798658370972, -0.9808574318885803, -0.6159543991088867, -0.8098836541175842, -1.0218037366867065, -0.31994181871414185...
def save _ algo _ object ( algo _ name, key, obj, environ = none, rel _ path = none, how ='pickle') : folder = get _ algo _ folder ( algo _ name, environ ) if rel _ path is not none : folder = os. path. join ( folder, rel _ path ) ensure _ directory ( folder ) if how = ='json': filename = os. path. join ( folder,'{ }. ...
[ 0.14748486876487732, -0.5280966758728027, 1.1839244365692139, -0.2531987726688385, -0.32491904497146606, 0.32945582270622253, 0.1279553920030594, 0.004580067470669746, -0.2680797576904297, 1.720592975616455, -0.7633909583091736, 0.34531086683273315, 0.19138315320014954, -0.3114259243011474...
def _ _ init _ _ ( self, * args ) : _ snap. tinth _ swiginit ( self, _ snap. new _ tinth ( * args ) )
[ -0.8462527394294739, 0.2545296847820282, 0.12978532910346985, 0.5084757804870605, -0.0771610215306282, -0.24562044441699982, 0.3937728703022003, -0.8594640493392944, -0.15650507807731628, -0.0830775797367096, -1.129123568534851, 0.38480040431022644, -0.8469370603561401, 0.5311644077301025,...
def get _ bbs _ locations ( ) : con = sqlite3. connect ( ". / data / bbs. sqlite " ) query = " select statenum * 1000 + route as siteid, lati as lat, loni as long from routes ; " bbs _ locations = pandas. io. sql. read _ frame ( query, con ) bbs _ locations. to _ csv ( ". / data / bbs _ locations. csv ", index = false ...
[ -0.17771653831005096, 0.3948143720626831, 0.4633660614490509, 0.14731435477733612, 0.2518692910671234, -0.3456185460090637, -0.24085356295108795, 0.029756901785731316, 0.002885735360905528, 0.06895677000284195, 0.014398368075489998, 1.292850136756897, 0.27103543281555176, -0.53794395923614...
def _ _ init _ _ ( self, path = none ) : super ( movieplayer, self ). _ _ init _ _ ( ) self. createwidgets ( path )
[ -0.5465696454048157, -0.09789179265499115, 0.5336860418319702, 0.6577051281929016, -0.1546887308359146, 0.25294429063796997, -0.04759583622217178, 1.1798797845840454, 0.4585117697715759, -0.20614926517009735, -0.5387144088745117, -0.12702439725399017, -0.6820175051689148, 1.518719434738159...
def validate _ args ( args, access _ type = " cli " ) : msg = " " return _ type = exitcodes. ok if args. list _ suites : for test _ suite in sorted ( test _ definitions ) : msg + = test _ suite +'\ n'elif args. describe _ suites : for test _ suite in sorted ( test _ definitions ) : msg + = test _ suite + " : " + test _...
[ -0.4300849735736847, -0.5869596600532532, 1.0385576486587524, -0.01906263642013073, 0.5368096232414246, 0.47962620854377747, 0.26971423625946045, -0.07802119851112366, -0.3782098591327667, 0.736457347869873, 0.6627763509750366, 0.6887997984886169, -0.4477904736995697, 0.8312739133834839, ...
def get _ projects ( self, limit = none, drop _ empty = true, asdict = true ) : limit = assure _ list ( limit ) if drop _ empty : # todo : rework this logic / restriction # yoh thinks this should not be implied ( we could check " private " # ones we have access to ) here. if limit! = ['public'] : lgr. warning ( " limit...
[ -0.33077502250671387, 1.1096030473709106, 0.9988880753517151, -0.1740475744009018, 0.11164477467536926, 0.04214070737361908, -0.579187273979187, 0.05140923708677292, 0.24084897339344025, 0.5311393141746521, 0.34400564432144165, 0.20936603844165802, -0.7411667704582214, 0.16107769310474396,...
def get _ integer _ value ( token, min _ val, max _ val ) : is _ neg = token [ 0 ] = ='-'if is _ neg : token = token [ 1 : ] if token [ 0 : 2 ] = ='0x': value = int ( token, 16 ) elif token [ 0 : 2 ] = ='0b': value = int ( token, 2 ) else : value = int ( token ) if is _ neg : value = - value if value < min _ val or val...
[ 0.3326738476753235, -0.11138498038053513, 0.7121182680130005, 0.2037266343832016, -0.29046866297721863, 0.06152224540710449, -1.417426347732544, -0.08983977138996124, -1.5193438529968262, -0.8448116183280945, 0.1775679886341095, 1.072839379310608, 0.04452231526374817, -0.35946646332740784,...
def parse _ var _ operand ( lexer, module, kind, type _ id ) : if kind = ='variableliteralnumber': kinds = ['literalnumber'] elif kind = ='variableid': kinds = ['id'] elif kind = ='variableidliteralpair': kinds = ['id ','literalnumber'] elif kind = ='variableliteralidpair': kinds = ['literalnumber ','id'] else : raise ...
[ -0.32913732528686523, -1.3705047369003296, 0.5608013272285461, -0.1408601999282837, -0.7259581089019775, -0.21518394351005554, -1.0856553316116333, -0.011559762060642242, -0.11578290164470673, 1.068284273147583, -0.1795564442873001, 0.49864667654037476, -0.4709104597568512, 0.2197525948286...
def cleanup _ logging ( logging _ handler = none ) : simutils. remove _ logger _ handlers ( logging. getlogger ('core'), logging _ handler ) simutils. remove _ logger _ handlers ( logging. getlogger ('utils'), logging _ handler )
[ 0.5052075386047363, 0.5873960852622986, 0.3303256928920746, 0.8354421854019165, -0.4456985294818878, -0.04156935214996338, 0.41027355194091797, 0.32027366757392883, 0.7230342030525208, -0.3182893395423889, -0.7070725560188293, -0.32778432965278625, -0.20627368986606598, 0.785676896572113, ...
def skip _ frames ( self ) : return self. _ skip _ frames
[ -0.9835160970687866, 0.80818772315979, 0.6023252010345459, 0.4844330847263336, 0.08674010634422302, 0.5556719899177551, 1.3884108066558838, -0.8499935269355774, -0.004000927321612835, 0.07065492123365402, -0.9620217680931091, -0.5035625696182251, -1.0917190313339233, -0.43123048543930054, ...
def close ( self ) : logging. info ( " keithley. close ( ) called. " ) self. keithley. close ( ) logging. info ( " keithley. close ( ) done. " ) return true
[ -0.29292356967926025, -0.010721600614488125, 0.8050477504730225, 0.02361222542822361, -0.17787398397922516, 0.21698807179927826, -0.6545825600624084, -0.05989326536655426, -0.4715885519981384, -0.16705532371997833, -0.06738733500242233, -0.9397627711296082, -0.4955316483974457, 0.877006351...
def selectatomicconst ( self, * args ) : return _ snap. ptable _ selectatomicconst ( self, * args )
[ 0.2926846444606781, -0.7069286704063416, 0.09688442945480347, 0.23436841368675232, -0.055525846779346466, 0.6004459261894226, 0.4530406594276428, -1.0370490550994873, -1.5833303928375244, 0.5687898993492126, 0.267843097448349, 0.4486701786518097, -0.295984148979187, -0.7268117070198059, ...
def wczytaj _ scenariusz ( nazwa _ pliku ) : wczytany _ slownik = { } if os. path. isfile ( nazwa _ pliku ) : with open ( nazwa _ pliku, " r " ) as plik : a = plik. readline ( ) licz = 0 a = a. replace ('\ n ','' ) if a = = konfiguracja [ " klucz _ zabezpieczajacy _ scenariusz " ] : while true : licz + = 1 a = plik. re...
[ -0.3347913324832916, -0.8990256786346436, 0.4439012110233307, -0.3290662169456482, -0.6486799716949463, -0.1221759095788002, 0.880281925201416, 0.287509024143219, -0.3750448524951935, 0.869795560836792, -0.687476396560669, 0.24552908539772034, 0.14924976229667664, 0.19557268917560577, 0....
def updatevalues ( self, acc ) : self. cursor. execute ( " insert into chat _ log values (?,?,?,?,?,? ) ", ( acc [ 0 ], acc [ 1 ], acc [ 2 ], acc [ 3 ], acc [ 4 ], acc [ 5 ] ) )
[ 0.10361461341381073, 0.1285204440355301, 0.5822861194610596, -0.1056346595287323, -0.04089893400669098, 0.20182564854621887, 0.3855123221874237, -0.6070594787597656, -0.9090321063995361, 0.5254334211349487, -0.4497644603252411, -0.32058820128440857, -0.17138554155826569, 0.0143776834011077...
def cheesy _ drive ( self, wheel, throttle, quickturn, low _ gear ) : # todo replace low gear with slowdown analog if low _ gear : throttle * = 0. 6 # sloow down neg _ inertia = wheel - self. old _ wheel self. old _ wheel = wheel if not low _ gear : wheel = util. sin _ scale ( wheel, 0. 8, passes = 2 ) else : wheel = u...
[ 0.35304516553878784, -0.05310638248920441, 0.8132647275924683, -0.36104944348335266, 0.7738773822784424, -0.2747860550880432, -0.34847623109817505, -0.259960800409317, 0.5059924125671387, -0.031124155968427658, 0.24227705597877502, -0.014982081018388271, 0.13074414432048798, 0.550073027610...
def getdat ( self, * args ) : return _ snap. tintprinthi _ getdat ( self, * args )
[ 0.5502052307128906, 0.06325464695692062, 0.5361132621765137, -0.6751740574836731, 1.0661025047302246, 0.737053394317627, -0.11508049815893173, -0.9516714215278625, -0.5949496626853943, -1.2386932373046875, -0.20724989473819733, 0.7289908528327942, -1.0203917026519775, -0.1574469804763794, ...
def with _ backend ( self, backend ) : b = self. _ copy ( ) b. config ['backend'] = backend return b
[ 0.3825124204158783, -0.0764952152967453, 0.4983867406845093, 0.338182270526886, -0.153231680393219, -0.139002725481987, -0.6968897581100464, -0.3002077341079712, 0.6528210043907166, 0.1272541880607605, -0.40812864899635315, 0.33986926078796387, -0.7367486953735352, -0.3930360674858093, 0...
def max ( self ) : return self. _ max
[ 0.022688807919621468, 0.14855653047561646, 0.28911513090133667, 0.7306037545204163, 0.3883413076400757, 1.0654510259628296, -0.3439280390739441, 0.21850457787513733, 0.40246590971946716, -0.9169766902923584, 0.1170700341463089, 0.6768106818199158, -0.030865872278809547, -0.7767230868339539...
def plot _ panel ( self, map, panel = 1, panel _ fov = none, * * kwargs ) : if panel _ fov is none : panel _ fov = panel spec = self. grid _ spec [ panel ] ax = self. figure. add _ subplot ( spec, projection = map. geom. wcs ) try : ax = map. plot ( ax = ax, * * kwargs ) except attributeerror : ax = map. plot _ rgb ( a...
[ -0.2153216302394867, 0.6454782485961914, 0.48472651839256287, 0.4276077449321747, -0.49382007122039795, 0.703715980052948, -0.37746545672416687, -0.3664911389350891, 0.13393640518188477, -0.44964131712913513, 0.8263610601425171, 0.9450517892837524, -0.48267674446105957, 0.24736763536930084...
def test _ apply _ check _ mode _ unchange ( self ) : # absent storage pool required to be absent with self. assertraisesregexp ( ansibleexitjson, "'changed': false " ) : with patch ( self. drives _ property, new _ callable = propertymock ) as drives : drives. return _ value = self. drives _ data with patch ( self. sto...
[ -0.28770163655281067, -0.5997791290283203, 0.7338727116584778, -0.21981258690357208, 0.9535697102546692, 0.9433838725090027, 0.4774642288684845, 0.5352541208267212, -0.1990438848733902, 0.11712796986103058, -0.42676371335983276, 0.2645995318889618, -0.12917651236057281, 0.329329252243042, ...
def _ compute _ log _ gaussian _ prob ( self, x, mean, covariance ) : diff = x - mean # the precision matrix, inverse of covariance precision = np. linalg. inv ( covariance ) # the determinant of covariance det = np. linalg. det ( covariance ) return -. 5 * ( self. n _ components * np. log ( 2 * np. pi ) + np. log ( de...
[ 0.11495257169008255, -0.16746829450130463, 0.6475529670715332, -0.3132628798484802, -0.8660703897476196, 0.45407965779304504, -0.7907915711402893, 0.3763837218284607, 0.2434251606464386, 1.5062133073806763, 0.15709613263607025, 0.8372215628623962, -0.41282588243484497, -1.3438990116119385,...
def _ _ binary _ search ( self, word ) : left = 0 right = len ( self. _ _ word _ list ) - 1 idx = - 1 while ( left < = right ) : middle _ idx = ( left + right ) / / 2 middle = self. _ _ word _ list [ middle _ idx ] if ( middle = = word ) : idx = middle _ idx break elif ( middle > word ) : right = middle _ idx - 1 else ...
[ -0.5243080854415894, -0.5178012251853943, 0.8772751092910767, -0.24238327145576477, -0.6778115034103394, 0.3745640516281128, 0.3786461353302002, -0.49771636724472046, -0.29496121406555176, 0.2017141878604889, -0.8795328140258789, 0.6238812804222107, -1.6792200803756714, 0.4096240699291229,...
def _ parse ( self, value, function, fmt ) : try : return function ( value ) except valueerror as e : six. raise _ from ( valueerror ( fmt. format ( e ) ), none )
[ 0.66581130027771, -0.6186849474906921, 0.30427923798561096, -0.044370945543050766, -0.20954403281211853, -0.7854658365249634, -1.1240553855895996, -0.18335288763046265, 0.05950634554028511, -0.6710077524185181, 0.9928902983665466, 0.05097414180636406, 0.3447049856185913, -0.770606517791748...
def parse _ operand ( lexer, module, kind, type _ id ) : if kind = ='id'or kind = ='optionalid': operands = [ parse _ id ( lexer, module, type _ id = type _ id ) ] elif kind = ='literalnumber'or kind = ='optionalliteralnumber': operands = [ parse _ literal _ number ( lexer ) ] elif kind [ : 8 ] = ='optional'and kind [ ...
[ -0.4177369177341461, -1.283829927444458, 0.6918579339981079, 0.3659324645996094, -0.8871331810951233, 0.08355308324098587, -0.88850337266922, 0.1741485595703125, 0.018263965845108032, 0.9617159366607666, 0.26189544796943665, 0.6504295468330383, -0.4333288371562958, 0.6945105791091919, 0....
def lat ( self, lat ) : self. _ lat = lat
[ 0.40290409326553345, -0.6245618462562561, -0.31428956985473633, -0.8886621594429016, -0.37164008617401123, 1.0764431953430176, -0.32840240001678467, 0.7039763927459717, -0.5873458385467529, -0.2919696569442749, -0.563452422618866, -0.8112014532089233, -0.16462938487529755, 0.69731497764587...
def with _ dataset ( self, dataset ) : b = self. _ copy ( ) b. config ['dataset'] = dataset return b
[ -0.22202324867248535, 0.48321375250816345, 0.3313690423965454, -0.5140683650970459, -0.944825291633606, 0.16925989091396332, -0.5829787850379944, -0.017872953787446022, 1.3177543878555298, -0.5989683270454407, -0.14190101623535156, 0.7239989638328552, -0.0159155186265707, -0.00742336548864...
def handle _ outbound _ message ( self, message ) : log. info ('sending ussd via parlayx : % r'% ( message. to _ json ( ), ) ) session _ event = message ['session _ event'] parlayx _ ussd = message. get ('transport _ metadata ', { } ). get ('parlayx _ ussd ', { } ) # set sendercb as receivecb sendercb = parlayx _ ussd ...
[ 0.16492760181427002, 0.08202048391103745, 0.9152414798736572, -0.18751755356788635, -0.8155417442321777, 0.47356805205345154, 0.09909214079380035, -0.35406243801116943, 0.9185294508934021, -0.13913272321224213, 0.7181630730628967, 0.6487258672714233, -0.2411840558052063, 0.1296631842851638...
def ibm _ hmc _ get _ all _ by _ cluster ( context, host _ name ) : return impl. ibm _ hmc _ get _ all _ by _ cluster ( context, host _ name )
[ 0.2184467762708664, 0.07567796111106873, 0.7902384400367737, 1.412852168083191, 0.038329482078552246, -0.6916069984436035, 0.06609904021024704, -0.4593537151813507, -0.6132090091705322, 0.0579303503036499, -0.12903857231140137, 1.1168155670166016, -0.40490686893463135, 0.5279009342193604, ...
def the _ words ( self ) : return self. _ _ my _ words
[ -0.4705740809440613, -0.21295322477817535, 0.451148122549057, -0.9695620536804199, 0.40985673666000366, -0.04088880494236946, -0.1276513934135437, 0.4628809988498688, 0.056289806962013245, -0.16586199402809143, 0.02343788370490074, 0.47517234086990356, -0.8505414724349976, 0.24396666884422...
def example ( cls ) : raise notimplementederror ('derived classes must implement this class method')
[ 0.4381575882434845, -0.40678220987319946, 0.674920380115509, 0.5831471085548401, -0.21103039383888245, 1.4542062282562256, 0.39118748903274536, 0.42371925711631775, 0.6015275716781616, -0.20442064106464386, -1.136268973350525, 0.11346419155597687, 0.25304093956947327, 0.4035158157348633, ...
def putmem ( self, * args ) : return _ snap. tsout _ putmem ( self, * args )
[ 0.48967498540878296, 0.9660006761550903, 0.46986207365989685, 0.4219455122947693, -0.2371942549943924, -0.1551261991262436, 1.4899623394012451, 0.9710389971733093, -0.7088825106620789, -0.3265739977359772, -0.5460659265518188, -0.34571415185928345, -0.6945093274116516, 0.10508283227682114,...
def simjoin ( self, * args ) : return _ snap. ptable _ simjoin ( self, * args )
[ -0.12193339318037033, 1.2843191623687744, 0.6567689776420593, 1.3292665481567383, -0.2653968930244446, 0.8112432360649109, 0.9186734557151794, 0.48220062255859375, -0.9059131741523743, 0.31519994139671326, -0.9101962447166443, -0.47131064534187317, -1.2950118780136108, -0.04673220962285995...
def index ( ) : return render _ template ('index. html')
[ 0.6503291130065918, 0.4519205093383789, 0.027740590274333954, -0.027164287865161896, -0.09195702522993088, 0.21939018368721008, 0.5763280987739563, 1.2399687767028809, -0.6618441343307495, 0.4215790629386902, 0.14496943354606628, -0.3240973949432373, -0.08366081118583679, -0.64679813385009...
def _ _ init _ _ ( self, dtype = np. float32 ) : self. dtype = dtype iso _ coords, weights = self. _ triangular _ quad _ points ( dim = 2, n _ quadpoints = 1 ) self. iso _ coords = iso _ coords self. weights = weights
[ 0.5598996877670288, 0.648962676525116, 0.3814076781272888, 0.7997227907180786, -0.18967831134796143, 0.16259242594242096, 0.388567179441452, 0.2800382971763611, 0.13764433562755585, 0.0019339206628501415, -0.8233597874641418, -0.2011958658695221, 0.7143267393112183, -0.8556565642356873, ...
def analyze _ status _ codes ( self, resp ) : reason = none if 400 < = resp. status _ code < 500 : reason = " client's request error ( i. e. notfound / forbidden / badrequest etc. ) " elif 500 < = resp. status _ code < 600 : reason = " server specific error " return reason
[ 0.30767372250556946, -0.3860511779785156, 0.2989906370639801, 0.07626301050186157, 0.09802547842264175, -0.4890201687812805, -0.3323315382003784, -0.3661663234233856, 0.7555208206176758, -0.3426351249217987, 0.21061302721500397, 0.6418673396110535, 0.17630527913570404, 0.1559898406267166, ...
def removegroggy ( ) : invoker = spellbook. getinvoker ( ) inventory = simbase. air. inventorymanager. getinventory ( invoker. doid ) inventory. setvitaelevel ( 0 ) return " removed active groggy effect! "
[ 0.0005822446546517313, -0.5384353399276733, 0.36820802092552185, 0.16321131587028503, 0.34632357954978943, 0.20356027781963348, 0.9772768020629883, 0.600225567817688, 0.011009590700268745, 0.709343433380127, 0.3234978914260864, 0.8772456645965576, -1.5408233404159546, -0.16823585331439972,...
def _ _ eq _ _ ( self, * args ) : return _ snap. tstr _ _ _ eq _ _ ( self, * args )
[ -1.0071027278900146, -0.028168052434921265, 0.10281559079885483, -0.6332712173461914, 0.5681065917015076, 0.5103525519371033, 0.6531500220298767, 0.04188324883580208, -0.9889838099479675, 0.3594568967819214, -0.9867007732391357, -1.7476328611373901, 0.8791680335998535, -0.01589531637728214...
def addone ( self, scen ) : assert isinstance ( self. _ scens, list ) self. _ scens. append ( scen )
[ -0.8918786644935608, 0.17794406414031982, 0.11068108677864075, 0.05636099725961685, 0.8943556547164917, 0.4119216203689575, -0.6795501112937927, -0.7583329081535339, 1.1396760940551758, -0.49842044711112976, -1.3149532079696655, 0.25710955262184143, -0.5982660055160522, 0.5004867315292358,...
def test _ content _ type _ field ( self ) : field = omnimodelformbase. _ meta. get _ field ('content _ type') self. assertisinstance ( field, models. foreignkey ) self. assertequal ( field. rel. to, contenttype ) self. assertfalse ( field. blank ) self. assertfalse ( field. null )
[ 0.9399998784065247, 0.2889149785041809, 0.4132463335990906, -0.46333491802215576, 0.9260885715484619, 0.09839633107185364, 0.7509334683418274, -0.43620291352272034, -0.007354178931564093, -0.17719005048274994, -0.2989185154438019, -0.5563254356384277, -0.6213070154190063, -0.01798992976546...
def relativehastigheder ( a _ i, a _ j, r, z ) : t = temp _ funktion ( r, false, false, false ) # get temperature cs = np. sqrt ( k * t / mu ) # isothermal speed of sound kepler _ frq = np. sqrt ( np. abs ( ( g * m _ centralstar ) / r * * 3 ) ) kepler _ vel = kepler _ frq * r h = cs / kepler _ frq vn = ( cs * * 2 / ( 2...
[ 1.3618305921554565, -0.2808689475059509, 1.006064534187317, -0.014419957995414734, 0.09016158431768417, 0.5500075817108154, 0.4199002683162689, -0.555829644203186, -0.8720130920410156, 1.110188364982605, 0.2847203314304352, -0.11784756928682327, -0.4671437442302704, 0.2650807499885559, 0...
def isinbin ( self, * args ) : return _ snap. tfltv _ isinbin ( self, * args )
[ -0.5150936841964722, 0.004586122464388609, 0.5884450078010559, 0.7952318787574768, 0.09293471276760101, -0.04645678028464317, 0.3027246594429016, -0.10459442436695099, -1.230352520942688, -0.772018313407898, -0.4110041558742523, 0.527146577835083, -1.2004722356796265, 1.4585663080215454, ...
def check _ unique ( self, cr, uid, ids, context = none ) : for rec in self. browse ( cr, uid, ids, context = context ) : if rec. fuel _ amount < = 0. 0 : raise osv. except _ osv ( _ ('error'), _ ('fuel amount should be greater than zero!') ) domain = [ ('vehicle _ category ','= ', rec. vehicle _ category. id ), ('vehi...
[ -0.75589919090271, -0.1581345647573471, 0.7725548148155212, 0.015692591667175293, 0.24548518657684326, -0.41102343797683716, -0.0032953780610114336, 0.5012500286102295, -0.13763317465782166, -0.04498980939388275, 0.4697609841823578, 0.13166743516921997, -0.18860003352165222, 0.983603000640...
def glitch _ bytes ( self ) : amount = self. amount / 100 seed = self. seed / 100 iterations = self. iterations # work with a copy of the original bytes. we might need the original # bytes around if we glitch it so much we break the file. new _ bytes = copy. copy ( self. bytes ) for i in ( range ( iterations ) ) : max ...
[ -0.15243233740329742, -0.13609184324741364, 0.6706493496894836, -0.3910907506942749, -0.09250831604003906, -0.056759025901556015, 0.8628383874893188, -0.5211436748504639, 0.21049870550632477, -0.06539975851774216, 0.10499197244644165, 0.35989999771118164, -0.4669068455696106, 0.00340853631...
def update _ car _ info ( self, car : dict ) - > none : if not car : _ logger. debug ( " attempted to update car id % d with empty car info ", self. id ) return if car [ " vin " ]! = self. vin : _ logger. error ( " failed updating car info : new vin ( % s ) doesn't match existing vin ( % s ) ", car [ " vin " ] [ - 5 : ...
[ -0.9726645350456238, -1.2778464555740356, 0.326259046792984, -0.2555845081806183, 0.16596774756908417, 0.06460366398096085, -0.47976669669151306, -0.5765860676765442, -0.0643502026796341, 0.4202197194099426, -0.9187449812889099, 0.009262285195291042, -0.7118478417396545, -0.130160793662071...
def get _ variable _ parameters _ path ( cls, folder, year, year _ lookup ) : return os. path. join ( cls. get _ meps _ folder _ dir ( folder ), f " { year _ lookup [ year ] } _ parameters. json " )
[ -0.5519121885299683, -0.6863161325454712, 0.5005990862846375, -0.6256123185157776, -0.682089626789093, 0.8435639142990112, 0.24794968962669373, 0.43055272102355957, -0.4458584189414978, 1.0901678800582886, 0.47890836000442505, 0.10174605250358582, -0.39212673902511597, 0.1525760143995285, ...
def alter _ name ( self, old, new ) : self. _ _ columns. rename ( old, new )
[ -0.94334876537323, -0.6019741892814636, 0.688083291053772, -0.15526431798934937, -0.6790772080421448, -0.17674881219863892, -1.0779643058776855, 0.03590936213731766, -1.3887859582901, 0.38814398646354675, -1.0316755771636963, 1.0605380535125732, 0.8420324921607971, 0.2781360149383545, 0....
def test _ subclasses _ omni _ field ( self ) : self. asserttrue ( issubclass ( omnimanytomanyfield, omnifield ) )
[ 0.23752009868621826, 0.2360718697309494, 0.38532185554504395, 1.02378511428833, -0.056835200637578964, 1.1585726737976074, -0.21382226049900055, 0.038446005433797836, 0.8507844805717468, -0.4842725098133087, -0.9298540353775024, -0.2057846337556839, -0.6801381707191467, -0.0823398604989051...
def ploteigvalrank ( * args ) : return _ snap. ploteigvalrank ( * args )
[ -0.7133755087852478, 0.6681070327758789, 0.4340953826904297, 0.10372471064329147, 0.34310224652290344, 0.7318602204322815, 0.7057228684425354, 0.026442646980285645, -0.08719156682491302, -0.09889784455299377, -0.3517088294029236, 0.5673310160636902, -0.21516373753547668, 0.5011609792709351...
def integ _ in _ pixels ( x, y, f ) : # put this integration code in cache " " " p, w = leggauss ( quadrature _ order ) p * = 0. 5 ; w * = 0. 5 gx, gy = np. meshgrid ( p, p ) wx, wy = np. meshgrid ( w, w ) ww = ( wx * wy ). ravel ( ) xc = x. reshape ( x. shape + ( 1, 1, ) ) + gx yc = y. reshape ( y. shape + ( 1, 1, ) )...
[ 0.3878767192363739, 0.6823424100875854, 0.7134054899215698, -1.1500244140625, -0.8558927774429321, -0.5370007157325745, -0.4513540267944336, -0.8375703692436218, -0.35090136528015137, 0.6358950734138489, 0.08486722409725189, 0.054607003927230835, -0.07476121187210083, -0.000529819517396390...
async def getmember ( self, member ) : for user in self. users : if user. tag = = member. id : return user return none
[ 0.6648871302604675, -0.3482954502105713, 0.17008356750011444, 0.9232980608940125, 0.3895977735519409, -0.7336627840995789, -0.8432271480560303, -0.8274685740470886, -0.3644031584262848, -0.35530340671539307, 0.12957541644573212, 0.7366941571235657, -1.0733586549758911, -0.00704095652326941...
def get _ benders _ results _ from _ logs ( folder _ name, output _ file _ name ) : root = get _ root _ path ( ) outputs _ path = os. path. join ( root, folder _ name ) if not os. path. isdir ( outputs _ path ) : extract _ archive ( os. path. join ( root, folder _ name + ". 7z " ) ) rows = [ ] for f in os. listdir ( ou...
[ 0.8666483759880066, -0.4093029201030731, 0.8786356449127197, 0.7763555645942688, -0.6832424998283386, -0.4990588426589966, 0.3962818384170532, 0.12045176327228546, -0.38681647181510925, -0.41907456517219543, 0.3039848804473877, 0.7775317430496216, 0.2872839868068695, 0.2105998396873474, ...
def set _ hgrid _ from _ file ( self, basename ) : ( grd _ x, grd _ xt ) = read _ legacy _ hgrid ( basename, self. attrs ['rgnid'], self. gall1d ) self. set _ hgrid ( grd _ x, grd _ xt ) self. flush ( ) return none
[ 0.15408764779567719, -0.2319190502166748, 0.35342034697532654, -0.0013857054291293025, -0.28071290254592896, 0.6341865658760071, 0.19359007477760315, 0.16068923473358154, -1.3402659893035889, -0.002585333539173007, 0.1149626225233078, 0.9111707806587219, -0.24328476190567017, 0.69522953033...
def avggstat ( self, * args ) : return _ snap. tgstat _ avggstat ( self, * args )
[ -0.15326349437236786, 0.8929779529571533, -0.04129815846681595, -1.3816285133361816, 0.055414337664842606, 0.29142457246780396, 0.11817159503698349, -0.7136948108673096, -1.4326083660125732, 0.9258431792259216, -0.7845030426979065, 0.14283056557178497, -0.15463417768478394, 0.8834584951400...
def hello ( self ) : print ( " hello ", self. i )
[ 1.1239371299743652, -0.48228636384010315, 0.4800085425376892, 0.24953018128871918, 0.3047107458114624, 1.017577886581421, 0.7347590923309326, 0.11611604690551758, -1.0916383266448975, -0.6892979145050049, -0.694933295249939, 0.8484262228012085, -0.3638097643852234, -0.4248094856739044, -...
def bboxes _ iou ( bboxes1, bboxes2, method = " union " ) : bboxes1 = np. transpose ( bboxes1 ) bboxes2 = np. transpose ( bboxes2 ) # intersection bbox and volume. int _ ymin = np. maximum ( bboxes1 [ 0 ], bboxes2 [ 0 ] ) int _ xmin = np. maximum ( bboxes1 [ 1 ], bboxes2 [ 1 ] ) int _ ymax = np. minimum ( bboxes1 [ 2 ]...
[ -0.5041339993476868, -0.7243033647537231, 1.180953025817871, -0.4488019049167633, -0.14824146032333374, -0.6127303242683411, 0.09894489496946335, -0.013609260320663452, 0.10262002795934677, -0.19411171972751617, 0.2695462107658386, 0.05365579202771187, -0.44974133372306824, -1.017272233963...
def validloads ( beam, loads ) : for load in loads : if load [ 0 ] > = 0 and load [ 0 ] < = beam [ 0 ] : yield load
[ 0.2299869954586029, -0.9428088068962097, 0.42782077193260193, 0.313819944858551, -1.268589735031128, 0.629478931427002, -0.9720064401626587, -1.5227895975112915, -0.18950626254081726, -0.12207508087158203, 0.5792602896690369, -0.34554174542427063, -0.8964288830757141, 0.3938165605068207, ...
def convertesrigeometry ( self, featurelist ) : # default the geometrytype to something that will catch attention if an error geometrytype = " unk " # get the first feature in the list as an example try : firstfeature = featurelist [ 0 ] geo = firstfeature [ " geometry " ] except : print ( " no geometry found, unable t...
[ -0.008834393694996834, -0.9632817506790161, 0.710181474685669, 0.30430176854133606, 0.7008709907531738, -0.7279955148696899, -0.43168288469314575, -0.08416115492582321, 0.25344690680503845, 0.6586015820503235, -0.7519715428352356, -0.010489623062312603, 0.3507138192653656, 0.77788358926773...
def encrypt ( self, ptxt ) : if not isinstance ( ptxt, ( int, long ) ) : raise typeerror ('plaintext must be a number') r = random _ range _ coprime ( 2, self. n, self. n ) ctxt = ( pow ( self. g, ptxt, self. n _ sq ) * pow ( r, self. n, self. n _ sq ) ) % self. n _ sq return encryptedmessage ( self, ctxt, r )
[ -0.4972027838230133, 0.959579586982727, 0.3482900559902191, -0.2888753414154053, -0.19412901997566223, 0.2314191609621048, 0.07197827100753784, -1.5967010259628296, 1.0780329704284668, -0.08145922422409058, -0.461586594581604, 0.13604508340358734, -1.4836777448654175, 0.09084360301494598, ...
def write _ pid ( self, pid ) : with open ( self. pidfile,'w') as f : f. write ('% d'% pid )
[ 0.15728437900543213, -1.4548972845077515, 0.343127578496933, -0.6560565829277039, 0.9627612233161926, 1.8097422122955322, 0.4253184199333191, 0.5444854497909546, 0.1505846083164215, 0.009367975406348705, -0.0029101551044732332, -0.36398282647132874, -0.3627367615699768, 0.19315844774246216...
def _ get _ json ( self, url ) : self. log. info ( u " / get " + url ) r = requests. get ( url ) if hasattr ( r,'from _ cache') : if r. from _ cache : self. log. info ( " ( from cache ) " ) r. raise _ for _ status ( ) return r. json ( )
[ -1.1057769060134888, -0.4765218496322632, 0.6674349308013916, 0.17607446014881134, -1.06003999710083, -0.4900481104850769, -0.39495840668678284, -0.5595725178718567, 0.1309756189584732, 0.34129825234413147, -0.5247539281845093, 0.6167241334915161, 0.15297573804855347, 0.08272278308868408, ...
def iterkeys ( self ) : for row in self. jenkins. _ data. get ('jobs ', [ ] ) : yield row ['name']
[ -1.0205789804458618, 0.027867261320352554, 0.29718151688575745, -0.6759112477302551, -0.15584546327590942, -0.18495886027812958, -0.9508545994758606, -0.746981143951416, -0.7837667465209961, 0.6190004944801331, -0.2511236369609833, 0.5997501015663147, 0.1561456322669983, -0.037094458937644...
def plotkcorenodes _ pngraph ( * args ) : return _ snap. plotkcorenodes _ pngraph ( * args )
[ -0.536421537399292, 1.9014791250228882, 0.04258568212389946, -0.17393171787261963, -1.0434521436691284, -0.04607442393898964, 0.03704153373837471, -0.3512086868286133, -0.3781817853450775, 0.7927289605140686, -0.20613069832324982, 0.4379390776157379, -0.6189075708389282, -0.102064236998558...
def click ( event = none ) : global mess message. withdraw ( ) mess = t. get ( " 1. 0 ", " end - 1c " )
[ 0.8573609590530396, 0.12058182060718536, 0.2325683832168579, -0.10915838927030563, 0.7242201566696167, 0.35979175567626953, 0.9626972079277039, -0.15591347217559814, -0.41887301206588745, 0.08624371141195297, 0.3083396852016449, 0.3791467249393463, -1.2971751689910889, 0.8651522397994995, ...
def delifkey ( self, * args ) : return _ snap. tintflth _ delifkey ( self, * args )
[ 0.014934215694665909, 0.7910717129707336, 0.2737312614917755, 0.8052074909210205, 0.6400718688964844, -0.22369830310344696, -0.11594176292419434, -0.4389028251171112, -0.5418261289596558, -0.04571132734417915, -0.009477849118411541, -0.3197711408138275, -1.8002263307571411, 0.9497358798980...
def create _ message ( sender, to, subject, message _ text ) : message = mimetext ( message _ text ) message ['to'] = to message ['from'] = sender message ['subject'] = subject return {'raw': base64. urlsafe _ b64encode ( message. as _ string ( ). encode ( encoding = " utf - 8 " ) ). decode ( encoding = " utf - 8 " ) }
[ -0.1984831839799881, -0.058673154562711716, 0.548593282699585, -0.5129629969596863, -0.7638722062110901, -0.15265512466430664, -1.567348837852478, 0.18576985597610474, -0.5111545324325562, 0.44171378016471863, -0.645207405090332, -0.1902306079864502, -0.40742751955986023, -0.38549670577049...
def getshortpath _ pneanet ( * args ) : return _ snap. getshortpath _ pneanet ( * args )
[ -0.4804729223251343, 0.09518839418888092, 0.3321473300457001, 0.8184661865234375, 0.42421868443489075, 0.6682897210121155, -0.3146634101867676, -0.8612372279167175, -0.2990136444568634, -1.267966389656067, -0.39297789335250854, -0.38934001326560974, -0.06829176098108292, 0.1100216284394264...
def _ _ init _ _ ( self, net, cuda _ device, is _ cuda ) : pass
[ 0.635373592376709, 0.4591311514377594, 0.3599565029144287, 1.8385614156723022, 0.5872988700866699, 0.06827706843614578, -0.07911276072263718, -0.1142677366733551, 0.6167160272598267, -0.21738272905349731, 0.5316007733345032, -0.027198217809200287, 0.18906991183757782, 0.7953473925590515, ...
def load _ hydranet _ from _ file ( f _ name = none, rng = none, xd = none, \ new _ params = none ) : assert ( not ( f _ name is none ) ) pickle _ file = open ( f _ name ) # load basic parameters self _ dot _ params = cpickle. load ( pickle _ file ) if not ( new _ params is none ) : for k in new _ params : self _ dot _...
[ 0.7225930690765381, -0.0681370422244072, 0.7838101983070374, -0.145535409450531, -0.15356652438640594, 0.045567695051431656, 0.757439136505127, 0.2786206305027008, -0.8008735775947571, -0.05624467134475708, -0.6414799690246582, 0.29392603039741516, 0.6151947379112244, 0.3821830153465271, ...
def selectatomicconst ( self, * args ) : return _ snap. ttable _ selectatomicconst ( self, * args )
[ -0.06039777025580406, -0.6158728003501892, 0.09463827311992645, -0.1261492669582367, 0.07602290064096451, 0.19757677614688873, 0.388875275850296, -1.0383265018463135, -1.7586262226104736, 0.655421257019043, 0.15687690675258636, 0.11235392838716507, 0.36206111311912537, -0.45192474126815796...
def get _ logits ( self, batch _ samples ) : pass
[ -0.33718666434288025, -0.9457109570503235, 0.1932065635919571, 0.6980730295181274, 0.8854345679283142, 0.4574584364891052, -0.7704710960388184, -0.15053555369377136, -0.20342394709587097, -0.3461344540119171, -0.22579996287822723, 0.7622843980789185, -0.3956303894519806, -0.459805637598037...
def reverse ( self, * args ) : return _ snap. tfltprv _ reverse ( self, * args )
[ -1.4118318557739258, 0.5845059752464294, 0.3262627124786377, -0.7193514108657837, 1.1511366367340088, 0.27606040239334106, 0.5497761964797974, 1.2101181745529175, -2.2651727199554443, -0.26470062136650085, 0.002592330100014806, -1.2729939222335815, -1.441109538078308, 0.050322026014328, ...
def plothops _ pungraph ( * args ) : return _ snap. plothops _ pungraph ( * args )
[ -1.5948235988616943, 0.9978246092796326, 0.3834436237812042, 0.7244046330451965, -1.3144075870513916, 0.03366794064640999, 1.0828455686569214, 0.14252866804599762, 0.5554184317588806, 0.07709432393312454, -0.22203072905540466, -0.4647899270057678, -0.32610923051834106, 0.012850897386670113...
def getkeyid ( self, * args ) : return _ snap. tintinth _ getkeyid ( self, * args )
[ 0.27478399872779846, -0.45717987418174744, 0.6709337830543518, 0.784157395362854, 0.7064835429191589, 0.6938216686248779, 0.06213853508234024, -0.7962342500686646, -0.32430094480514526, -0.21255463361740112, -0.8720924854278564, 0.632856547832489, -1.7445467710494995, 0.4584742784500122, ...
def _ _ eq _ _ ( self, * args ) : return _ snap. tinthi _ _ _ eq _ _ ( self, * args )
[ -0.8088842034339905, -0.4147963523864746, -0.005327764432877302, 0.0863422304391861, 0.7489399313926697, 0.36782658100128174, 0.18099771440029144, -0.6446756720542908, -0.4776754081249237, 0.7169766426086426, -1.2523406744003296, -0.5548290610313416, -0.31657955050468445, 0.138590618968009...
def semantic _ forward ( self, probs ) : return probs
[ 0.17643584311008453, -0.3950131833553314, 0.11747445911169052, -0.007808293681591749, 0.1603461354970932, 0.7150035500526428, -0.1614905744791031, 0.19116078317165375, 0.15036316215991974, -0.48192495107650757, 0.8251535296440125, 0.33521774411201477, 0.20765402913093567, -0.37072128057479...
def write ( self, cr, uid, ids, vals, context = none ) : if'employee _ id'in vals : rec = self. pool. get ('hr. employee'). browse ( cr, uid, vals ['employee _ id'], context = context ) vals. update ( {'degree _ id': rec. degree _ id. id,'department _ id': rec. department _ id. id,'emp _ code': rec. emp _ code } ) retu...
[ -0.572496771812439, -0.34250926971435547, 0.3976805508136749, -0.6982130408287048, 0.9929695129394531, -0.2751312851905823, -0.3195152282714844, 0.9114991426467896, 0.029117584228515625, -0.5098371505737305, 0.30844271183013916, 0.4755411744117737, 0.14795564115047455, 0.7225971817970276, ...
def save _ to _ json ( self, path : str, overwrite : bool = false ) : mode = " w " if overwrite else " x " try : with open ( path, mode, encoding ='utf - 8') as json _ file : json. dump ( self. data, json _ file, ensure _ ascii = false ) except fileexistserror as err : raise exception ( " file already exists and overwr...
[ -1.3039714097976685, -0.74666827917099, 0.6064727306365967, -0.749190092086792, 0.5589813590049744, 0.19122381508350372, 0.3452811539173126, -0.8238779902458191, -0.657660722732544, 0.37492334842681885, -0.8979700803756714, 0.1611405611038208, -0.2419535368680954, 0.31570595502853394, 0....
def confidence _ compare ( n, qs, fs ) : for q in qs. split ( ',') : for f in fs. split ( ',') : q, f = int ( q ), int ( f ) z _ pa, z _ st = [ ], [ ] print ( q, f, end ='', flush = true ) for _ in range ( n ) : stats _ a = single _ run ( start ='07 : 00 : 00 ', end ='11 : 00 ', q = q, f = f, nt = 14, db =. 1 ) stats _...
[ 0.2906076908111572, -0.31972646713256836, 0.6494829654693604, -0.10477741807699203, 0.42311346530914307, 0.4121030867099762, 0.5806997418403625, -1.0076091289520264, -0.06074013561010361, 0.1386355608701706, -0.18823173642158508, 0.38508737087249756, -0.1227196529507637, 0.5707010626792908...
def addexecutable ( self, uid, gid, command _ line, tcp _ ports, udp _ ports, linux _ caps ) : executable = self. sandbox _ spec. executables. add ( ) executable. uid = uid executable. gid = gid executable. command _ line. extend ( command _ line ) for listen _ ports, ports in ( ( executable. tcp _ listen _ ports, tcp ...
[ 0.4862545430660248, 0.1264146864414215, 0.6520784497261047, 0.6911476254463196, 0.872419536113739, 1.176967740058899, -0.2658640444278717, -0.11953587085008621, 0.2687883973121643, -0.5936312675476074, -0.10806948691606522, 0.47403374314308167, 0.052942775189876556, 0.7261167764663696, 0...
def verify _ realms ( self, token, realms, request ) : raise notimplementederror ( " subclasses must implement this function. " )
[ -0.16288872063159943, -0.5397294163703918, 0.4958886504173279, 0.19856862723827362, 0.3244214951992035, 0.7188972234725952, -0.4646952152252197, -0.8611498475074768, 0.14513790607452393, -0.20282481610774994, -0.08118068426847458, 0.6752336025238037, -0.029102345928549767, 0.77551215887069...
def log _ parameters _ histogram ( self, scope : str = " weights ", *, ignore _ zero _ grad : bool = true ) - > none : optimizer _ steps = cast ( " _ buddyoptimizer ", self ). optimizer _ steps with self. log _ scope ( scope ) : for param _ name, p in cast ( " buddy ", self ). model. named _ parameters ( ) : if ignore ...
[ 0.10689288377761841, 0.23413921892642975, 0.6742934584617615, -0.09519010782241821, 0.8167226910591125, -0.1827123612165451, 0.2407766878604889, 0.1731233298778534, -0.6706696152687073, 0.5584458708763123, -0.7673072218894958, 1.2322221994400024, 0.17797985672950745, 0.9842928051948547, ...
def tographpergroupiterator ( self, * args ) : return _ snap. ptable _ tographpergroupiterator ( self, * args )
[ -1.2003655433654785, 0.1817225217819214, 0.39525753259658813, 0.7996917963027954, -1.0883749723434448, 0.07789430767297745, 1.5251383781433105, -0.9610843062400818, -0.9354716539382935, 0.5329847931861877, 0.35439446568489075, -0.7188743352890015, -1.282090187072754, -0.3753558099269867, ...
def test _ highlight _ chainable ( sphinx _ client ) : ( sphinx _ client. expects _ call ( ). returns _ fake ( ). is _ a _ stub ( ). expects ('runqueries'). returns ( no _ results ) ) s = s ( excerptbiscuitwithlimit ). highlight ('color ', before _ match ='< i > ', after _ match ='< / i >') s. _ raw ( ) # these three a...
[ 0.3457135558128357, 0.760966956615448, 0.44200238585472107, 0.16548702120780945, 0.49542608857154846, -0.2711280882358551, 0.3791992664337158, -0.021605007350444794, 0.3642600476741791, -1.0438796281814575, -1.0063560009002686, 0.15528398752212524, -0.5017022490501404, -0.3632758855819702,...
def _ _ init _ _ ( self, learning _ rate = 1e - 3, beta1 = 0. 9, beta2 = 0. 999, epsilon = 1e - 8, * * kwargs ) : if learning _ rate < = 0 : raise valueerror ( " learning rate must be positive. " ) if epsilon < = 0 : raise valueerror ( " epsilon must be positive. " ) if not 0 < beta1 < 1 or not 0 < beta2 < 1 : raise va...
[ 0.41124802827835083, 0.0978967472910881, 0.8749494552612305, 0.2976548671722412, -0.31425756216049194, -0.5266422629356384, -0.1583220362663269, -0.04488198459148407, -1.0582555532455444, 0.34486567974090576, -0.6500734686851501, 0.6628277897834778, 1.185579776763916, -0.6549833416938782, ...
def is _ on ( self ) : return hub. smartplug _ status [ self. _ id ]. status = ='on '
[ -0.4470803141593933, -0.6891278028488159, 0.43332916498184204, 1.328088641166687, 0.3265083432197571, -0.33569857478141785, -1.683537483215332, 1.5444499254226685, 1.2314921617507935, 0.1988086700439453, -0.6073622703552246, 0.1204553171992302, -1.0780308246612549, -0.21668414771556854, ...