text
stringlengths
25
2.19k
embedding
listlengths
768
768
def _ parse _ cusd ( s ) : return s. strip ( ) \. rstrip ( ) \. replace ('+ cusd : 1, " ','' ) \. replace ('+ cusd : 2, " ','' ) \. replace ('", 15 ','' )
[ 1.128238558769226, -0.7370433211326599, 0.4146438241004944, -0.7705439925193787, -1.4848743677139282, 0.06577973812818527, 0.2639394700527191, 0.548679769039154, 0.6579587459564209, 0.04931412637233734, 0.14060615003108978, -0.10540149360895157, 0.14263612031936646, -0.6495535969734192, ...
def getname ( file _ info ) : file _ directory = file _ info [ 0 ] sheet _ name = file _ info [ 1 ] col _ index = " a " temp _ idx = file _ info [ 2 ] if type ( temp _ idx ) = = int : col _ index + = str ( temp _ idx ) else : print ( " index string is not a number " ) col _ index + = " 1 " # read the excel file work _ ...
[ -0.6639651656150818, -1.053472876548767, 0.7563983798027039, 0.19820769131183624, -0.41132059693336487, 0.7484064698219299, 0.6131623387336731, -0.19222509860992432, -1.1569925546646118, 0.586438000202179, 0.2554261386394501, 0.00580615783110261, -0.12964020669460297, -0.1768130511045456, ...
def _ _ selecciones ( self, treeselection, model, path, is _ selected, listore ) : iter = self. get _ model ( ). get _ iter ( path ) tamanio = self. get _ model ( ). get _ value ( iter, 0 ) if self. tamanio! = tamanio : self. tamanio = tamanio self. scroll _ to _ cell ( path ) self. emit ('nueva - seleccion ', self. ta...
[ -0.6816970109939575, 0.38570213317871094, 0.4824448227882385, 0.4084336757659912, 0.1250019669532776, -0.44790616631507874, -0.35637786984443665, -0.7878590226173401, 0.11710378527641296, 0.40790778398513794, -0.8124125599861145, 0.025839010253548622, -0.4300496578216553, 0.099128969013690...
def build _ flow _ mod ( self, datapath, src _ port, dst _ port, flow _ info, queue _ set ) : parser = datapath. ofproto _ parser actions = [ ] if queue _ set : actions. append ( parser. ofpactionsetqueue ( 1 ) ) actions. append ( parser. ofpactionoutput ( dst _ port ) ) # # add action to send to destination port match...
[ -0.8861742615699768, -0.48566848039627075, 0.5128971338272095, -0.2789168357849121, 0.5736960172653198, -0.1931300014257431, -0.004933344665914774, -0.25087451934814453, 0.14521266520023346, -0.21028098464012146, 0.13862945139408112, 0.19667492806911469, 0.3773643970489502, -0.428836971521...
def toanttask ( self, doc ) : pass
[ 0.16635435819625854, -0.5993151068687439, 0.1992453783750534, -0.6815194487571716, -0.13759276270866394, 0.40390506386756897, 0.39959606528282166, 0.19099314510822296, -0.2238619178533554, 1.1357417106628418, -0.7860419154167175, -0.18941505253314972, 1.0919936895370483, 0.1815691590309143...
def testsettaginstancewithintvalue ( self ) : tagapi ( self. user ). create ( [ ( u'username / bar ', u'description') ] ) tag = gettags ( paths = [ u'username / bar'] ). one ( ) objectid = uuid4 ( ) self. store. commit ( ) with login ( u'username ', uuid4 ( ), self. transact ) as session : thriftvalue = createthriftval...
[ -0.18328136205673218, 0.38060739636421204, 0.48439785838127136, -0.6954817175865173, 0.15613192319869995, 0.6496013402938843, 0.19070018827915192, -0.8730732202529907, -0.2515915036201477, -0.12531372904777527, -0.8590086698532104, -0.3649388253688812, 0.12719130516052246, 0.61287885904312...
def by _ image _ digest ( self, sha256 ) : response = self. _ client. get ('container - security / api / v1 / jobs / image _ status _ digest ', params = {'image _ digest': sha256 } ) return sctestjob. from _ json ( response. text )
[ 0.5317946672439575, -0.30074286460876465, 0.23040252923965454, -0.1993437111377716, 0.14649945497512817, -1.159283995628357, -0.47256436944007874, -0.11769817769527435, 0.5063114166259766, -0.3005455732345581, 0.13096454739570618, -0.09148097038269043, 0.1400914043188095, 0.001966832438483...
def test _ gf _ write _ feature _ header _ without _ description _ with _ empty _ background _ no _ short _ description ( disabled _ colors, capsys, mocker ) : # given feature = mocker. magicmock ( spec = feature ) feature. keyword = " feature " feature. short _ description = " my feature " feature. description = [ ] f...
[ 0.619438648223877, -0.24697183072566986, 0.41092443466186523, 0.48579469323158264, 0.8223654627799988, 0.46405163407325745, -0.20090961456298828, -0.07656831294298172, -0.5906817317008972, -0.721284806728363, -0.5226960778236389, 0.5086671710014343, -0.4292738735675812, 0.4987630546092987,...
def auto _ wrapper ( module : str, load _ data : bool = true, use _ new _ client : bool = false, log _ traceback : bool = false ) - > none : # get the database label from the environment variable, this variable is # set by the client / user / researcher. try : label = os. environ [ " user _ requested _ database _ label...
[ -0.06873439997434616, 0.15249702334403992, 0.5677157640457153, 0.6233386993408203, 0.49202960729599, 0.2146049439907074, -0.12921476364135742, -0.19517302513122559, -0.28903868794441223, 0.8763637542724609, 0.5494580268859863, 1.2571029663085938, 0.09345296025276184, 0.6866545081138611, ...
def get _ service _ name _ binding ( svc, provider ) : if provider not in _ service _ name _ spec : return none if svc not in _ service _ name _ spec [ provider ] : return none return _ service _ name _ spec [ provider ] [ svc ]
[ -0.3412334620952606, -0.0720222145318985, 0.3373852074146271, -0.10235751420259476, -0.7707349061965942, -0.12563182413578033, -0.41844868659973145, -0.7417207956314087, 0.2882944643497467, 0.5370093584060669, 0.24416621029376984, 1.0307505130767822, 0.0909416601061821, 0.5173189043998718,...
def save _ fig _ to _ plots ( figname ) : # finding file version version = 1 if not os. path. exists ('plots /'+ figname + '. png') : plt. savefig ('plots /'+ figname + '. png') else : while os. path. exists ('plots /'+ figname +'('+ str ( version ) +'). png') : version + = 1 plt. savefig ('plots /'+ figname +'('+ str ...
[ -0.06940650939941406, 0.03413489833474159, 0.7380115389823914, 0.02164868824183941, 0.5437455773353577, 1.0921603441238403, 1.3092337846755981, 0.2203989177942276, -0.8923757076263428, 0.36368057131767273, -1.4312880039215088, -0.28968730568885803, 0.1822996586561203, 0.583267331123352, ...
def finalize ( self ) : def force _ length ( line ='', length = 0 ) : line = line. rstrip ('' ). replace ('\ n ','' ) if len ( line ) = = length : return line elif len ( line ) > length : return line [ 0 : length ] return line +'' * ( length - len ( line ) ) for y in range ( 0, len ( self. textlist ) ) : self. textlist...
[ -0.2463359385728836, 0.518825888633728, 0.7350788712501526, -0.8781416416168213, 0.09511018544435501, -0.11613904684782028, -0.19436205923557281, -0.03892634063959122, -0.3183315396308899, 0.18044409155845642, -0.31592056155204773, -0.0748041644692421, -0.5178371071815491, 1.53549993038177...
def teardown _ db ( exception ) : storage. close ( )
[ 0.32625481486320496, -0.15936405956745148, 0.12638278305530548, 0.16557161509990692, 0.3621364235877991, 0.49323350191116333, 0.6791130900382996, 0.3252060115337372, 0.7437125444412231, 0.19413404166698456, 0.5779089331626892, -0.46366384625434875, -0.8332657217979431, -0.2471238523721695,...
async def async _ step _ reauth _ confirm ( self, user _ input : dict | none = none ) - > flowresult : if user _ input is none : return self. async _ show _ form ( step _ id = " reauth _ confirm " ) return await self. async _ step _ user ( )
[ 0.3175276517868042, 0.019817758351564407, 0.5163462162017822, 1.5655735731124878, -0.049130238592624664, -0.7512006759643555, 0.5350750088691711, 0.9440341591835022, 0.4350133538246155, 0.078999824821949, -0.16558848321437836, 1.1288373470306396, 0.1263127475976944, 0.16932412981987, -0....
def target _ model ( self ) : return self. _ target _ model
[ -0.7881911396980286, -0.8046217560768127, 0.037406887859106064, 0.04234405979514122, 1.18783438205719, 1.4564539194107056, 0.16690601408481598, 0.26406922936439514, 0.10277881473302841, -0.24878574907779694, 0.2816769778728485, 0.48237863183021545, 0.6242388486862183, -1.4619591236114502, ...
def simple _ get ( url ) : try : with closing ( requests. get ( url, stream = true ) ) as resp : if is _ good _ response ( resp ) : print ('http request successful') return resp. content else : return none except requestexception as e : print ('error during requests to { 0 } : { 1 } '. format ( url, str ( e ) ) ) retur...
[ -0.5373145937919617, -0.5153123140335083, 0.8323861956596375, 0.019558260217308998, -0.33107030391693115, -0.04182589799165726, -0.9532430768013, -1.1549577713012695, 0.11933808773756027, -0.6972669363021851, 0.2936543822288513, 0.17971913516521454, -0.7716039419174194, -0.9099797010421753...
def hide _ legends ( self, * legends ) : for legend in legends : leg = self. _ legends. get ( legend ) if self. legend _ is _ displayed ( leg ) : self. browser. click ( leg )
[ -0.22077515721321106, 0.21585266292095184, 0.40074121952056885, 0.5494188070297241, 0.1869758814573288, 0.7489449381828308, 0.22178901731967926, 0.31364956498146057, -0.24713067710399628, 0.29402264952659607, -0.33526864647865295, -0.45721983909606934, -0.48341530561447144, -0.039980232715...
def test _ no _ display _ of _ hidden _ tasks ( self ) : taskfactory ( creator = self. user2 ) taskfactory ( creator = self. user2, visibility = task. visibilities. team _ only ) response = self. client. get ( self. url ) self. assertcontains ( response,'there are no task matching the search criteria... ', )
[ 0.5234977602958679, 1.3545267581939697, 0.37734195590019226, 0.78902667760849, -0.5063354969024658, 1.0050252676010132, 0.9397508502006531, -0.5445972681045532, -0.3590187728404999, -0.6206926703453064, -0.3862384557723999, 0.7819265127182007, 0.585639476776123, 0.6309961080551147, -0.42...
def api _ get _ movment _ only ( id = none ) : auth _ func ( ) def streaming _ func ( ) : session = create _ session ( ) if id = = none : return jsonify ( { } ) num _ records = 1500 stmt ='''select json _ build _ object ('a ', animal _ id,'t ', " time ",'p ', st _ asgeojson ( position ) : : json - >'coordinates') : : t...
[ -0.42675599455833435, 0.2641918361186981, 0.745293378829956, -0.04536692798137665, -0.2686208188533783, -0.9678919315338135, -0.6333997249603271, -0.7709487676620483, 0.20035402476787567, 0.7598022818565369, 0.3349827527999878, 0.7284477353096008, -0.19969168305397034, 0.6179654598236084, ...
def calc _ profit ( order, bid : float, ask : float, leverage : float = 100 ) : # big assumption, account currency is the same as base currency # ex. gbp account trading on gbpusd since we don't have other # exchange rates streaming to us to handle conversion isbuy = order. type = = " buy " closep = bid if isbuy else a...
[ 0.36344996094703674, -1.071155309677124, 0.8263935446739197, 0.8974482417106628, -0.3936610221862793, 0.13482312858104706, -0.15554574131965637, -0.4672893285751343, 0.2314423769712448, 0.9174286127090454, 0.33025166392326355, 0.27234330773353577, -0.7996589541435242, -0.11172692477703094,...
def clean ( self ) : raise notimplementederror
[ -0.18076777458190918, -1.1241837739944458, 0.38805049657821655, 0.43418195843696594, -0.6851531267166138, 0.8457043766975403, 0.6465019583702087, -0.10788734257221222, 0.3134712278842926, 0.17541129887104034, 0.023803958669304848, 0.4860503673553467, -0.04853663966059685, 0.984466850757598...
def _ _ str _ _ ( self ) : info = ( " architecture : \ n " + " input size = " + str ( self. input _ size _ ) + " number of first filters = " + str ( self. num _ first _ filters _ ) + " number of convnets = " + str ( self. num _ conv _ nets _ ) ) return info
[ -0.28287041187286377, -0.7754658460617065, 0.655552864074707, -0.8441743850708008, -0.2965956926345825, -0.14126797020435333, 0.3640191853046417, -0.19892257452011108, 0.04162267595529556, 0.0011966408928856254, -0.32857322692871094, 0.7689913511276245, 0.5882002115249634, 0.19694274663925...
def mh _ within _ gibbs ( self, init _ batch, init _ batch _ len, granularity = 1 ) : accept _ rate = 0 total = 0 with torch. no _ grad ( ) : noise = init _ batch. clone ( ) right _ bound = init _ batch. shape [ 1 ] - 1 for t in range ( 1, right _ bound, granularity ) : # mask the t - granularity tokens masked _ inputs...
[ 0.05996638908982277, -0.3920852839946747, 0.9894499182701111, 0.06590189039707184, -0.14572110772132874, -0.33155176043510437, -0.39692407846450806, 0.7071497440338135, -0.37911322712898254, 0.9513699412345886, -0.007130952086299658, 0.6170392036437988, -0.253947913646698, 0.04635291919112...
def timestamp ( ) - > int : return int ( time. time ( ) )
[ -0.0893465206027031, 0.547881007194519, 0.6205999255180359, -0.26938554644584656, 0.2857666611671448, -0.34159374237060547, 0.02297915890812874, 0.3428058624267578, 0.5321857333183289, 0.0884721502661705, -0.5351468324661255, -0.3121655583381653, 0.5147037506103516, -0.0417981892824173, ...
def test _ change _ step _ setting ( self ) : pass
[ -0.47253623604774475, 0.8320273160934448, 0.17747138440608978, 1.3088732957839966, -0.22707925736904144, -0.4264949560165405, 0.9962400197982788, 0.04724828153848648, -0.7992385625839233, -0.5176729559898376, -1.2682121992111206, -0.08426317572593689, -0.8863016366958618, 1.572485089302063...
def coord _ to _ sortable ( self, x : jaxarray ) - > jaxarray : return self. kernel1. coord _ to _ sortable ( x )
[ -0.23003602027893066, 0.08537870645523071, 0.5425666570663452, 0.18786686658859253, -0.4016571342945099, -0.13960061967372894, -0.25630491971969604, -1.909178376197815, -0.1987295299768448, 0.49062395095825195, -0.21443097293376923, 0.5375670194625854, 0.04878634959459305, -0.3906479775905...
def reset _ to _ host ( self ) : self. send _ host _ mitm ( managementreset ( ) )
[ -0.2220201939344406, 0.3810795545578003, 0.11966113746166229, 0.6771654486656189, 1.2255609035491943, 0.06033455207943916, 0.33166733384132385, -0.5987570285797119, -1.0185877084732056, -0.06553322821855545, -0.24650201201438904, 1.9351263046264648, -0.2466254085302353, -0.322050005197525,...
def _ local _ data ( self, parent _ data, key = none ) : # add local explanations to data parent _ data [ interpretdata. type ] = interpretdata. univariate parent _ data [ interpretdata. names ] = self. features # note : we currently don't have access to predictions and y values from original dataset on explanation par...
[ 0.04389181733131409, -0.26670441031455994, 0.6718260049819946, -1.6045866012573242, -0.6478592157363892, 0.2510702908039093, 0.10942861437797546, 1.1076750755310059, 0.16992837190628052, -0.6154860854148865, 0.9016591906547546, 0.8185930252075195, 0.09636888653039932, 0.5718204379081726, ...
def _ _ init _ _ ( self, file _ path : anystr, emotions : list, interface : audio. interface. audiointerface = none ) : if not isinstance ( emotions, list ) : raise typeerror ( " expected type'list'for'emotions '. " ) self. file _ path = file _ path self. emotions = emotions if interface and isinstance ( interface, aud...
[ 0.479152113199234, 0.09081783145666122, 0.44218602776527405, 0.0726199820637703, 0.6341620683670044, 0.48942431807518005, 0.3656434118747711, 0.2820797562599182, -0.021003812551498413, -0.03528802469372749, -0.12669998407363892, -0.04492010548710823, -0.5740582942962646, 0.5879040956497192...
def ha _ from _ mjdlon ( mjd, lon, ra ) : mst _ deg = clock. mjd _ to _ mstut _ deg ( mjd ) hourangle = mst _ deg - lon - ra return hourangle
[ 0.41296064853668213, -1.030190110206604, 0.45125627517700195, -0.8734166026115417, -1.3055979013442993, 0.5281790494918823, 0.15368826687335968, 0.7917130589485168, 0.4435391426086426, 0.32738927006721497, -0.04018016904592514, -0.2975635528564453, -0.022568292915821075, -0.065891765058040...
def generic _ write _ model _ inputs ( scenario _ directory, subproblem, stage, timepoint _ req, percent _ req, percent _ map, reserve _ type ) : inputs _ dir = os. path. join ( scenario _ directory, str ( subproblem ), str ( stage ), " inputs " ) # write the by - timepoint requirement file if by - tmp requirement spec...
[ -0.5814574360847473, -0.4730082154273987, 0.8710037469863892, 0.3529601991176605, 0.5112716555595398, 0.7054755091667175, 0.7698389291763306, -0.012306059710681438, -0.6074065566062927, 0.0023834779858589172, 0.7564547657966614, -0.6259310841560364, 0.26057595014572144, 0.24566639959812164...
def _ mgui _ get _ row _ headers ( self ) - > tuple : #...'pyside2. qtwidgets. qtablewidgetitem'object has no attribute'visualindex'# on some linux... so removing the visualindex ( ) for row headers... this means # we can't enable row drag / drop without fixing this indices = range ( self. _ qwidget. rowcount ( ) ) ite...
[ -0.4675675928592682, -0.027898095548152924, 0.5612348914146423, -0.046150147914886475, -0.05058989301323891, -0.7553519606590271, -1.0009738206863403, -1.0912588834762573, -0.5809637904167175, 1.0128062963485718, -0.5943014621734619, -1.2222135066986084, -0.6140562891960144, -0.00218581245...
def read _ neurone ( fpath ) : # read the protocol protocol = read _ neurone _ protocol ( fpath ) # read the signal data data = read _ neurone _ data ( fpath, session _ phase = 1, protocol = protocol ) # read the events events = read _ neurone _ events ( fpath, session _ phase = 1, sampling _ rate = float ( protocol ['...
[ -0.355152428150177, -0.2842057943344116, 0.704784631729126, -0.7370719909667969, -0.6396651864051819, -0.31953367590904236, -0.02382640913128853, 0.2662433981895447, -0.9632576704025269, 0.8141688108444214, -0.5757514834403992, -0.1533193439245224, -0.17508243024349213, 0.02160824835300445...
def delete _ partitions ( self, drive ) : # spawn fdisk. fdisk = pexpect. spawn ('fdisk { } '. format ( drive ) ) fdisk. expect ( harddrive. fdisk _ main _ prompt _ re ) # delete the first partition ( which deletes all child logical # partitions too. fdisk. sendline ('d') index = fdisk. expect ( ['partition number. * \...
[ 0.15425370633602142, -0.3485223352909088, 0.7341854572296143, 0.12281431257724762, 0.5321249961853027, -0.22095845639705658, 0.3993868827819824, 0.3425004482269287, 0.19829262793064117, -0.5699989795684814, 0.5638051629066467, -0.2112385332584381, 0.11384937167167664, 0.2774568796157837, ...
async def async _ set _ direction ( self, direction : str ) - > none : if self. _ set _ direction _ script is none : return if direction in _ valid _ directions : self. _ direction = direction await self. async _ run _ script ( self. _ set _ direction _ script, run _ variables = { attr _ direction : direction }, contex...
[ -0.7901881337165833, 0.38899922370910645, 0.3437609374523163, -0.2279520481824875, 0.6165175437927246, -0.12134398519992828, 0.3934438228607178, -0.09974183887243271, 0.3302973210811615, 0.1345660239458084, -0.07536149770021439, 1.3279765844345093, 0.37129685282707214, 0.7809717655181885, ...
def pick _ orig _ binary ( ns, digits ) : f = gzip. open ('data / mnist. pkl. gz ','rb') train _ set, valid _ set, test _ set = cpickle. load ( f ) f. close ( ) images, labels = train _ set originals = [ ] ; bin _ imgs = [ ] ; true _ labels = [ ] ; i = 0 for n, d in zip ( ns, digits ) : x = np. where ( labels = = d ) [...
[ -0.8526670336723328, -0.3314504623413086, 0.5417267680168152, -0.3737269341945648, -0.5508057475090027, 0.15528015792369843, 0.6090545654296875, -0.20916147530078888, 0.19311529397964478, 0.6746996641159058, -0.27167099714279175, 0.7397280931472778, -0.21397070586681366, -0.047212198376655...
def _ _ init _ _ ( self, * args, * * kwargs ) : super ( newdeviceform, self ). _ _ init _ _ ( * args, * * kwargs ) for visible in self. visible _ fields ( ) : visible. field. widget. attrs ['class'] ='form - control col - sm - 8 col - md - 6 col - lg - 4 '
[ -0.44979503750801086, 0.7726009488105774, 0.4277130663394928, -0.8726003170013428, 0.44898924231529236, 0.3011532127857208, 0.1430731564760208, -0.12458477169275284, -0.20051391422748566, -0.4400123655796051, -0.9326145052909851, -0.564282238483429, 1.0370713472366333, 0.9695790410041809, ...
def wait _ for _ resource _ deletion ( self, id ) : start _ time = int ( time. time ( ) ) while true : if self. is _ resource _ deleted ( id ) : return if int ( time. time ( ) ) - start _ time > = self. build _ timeout : raise exceptions. timeoutexception time. sleep ( self. build _ interval )
[ 0.597239077091217, -0.5332096219062805, 0.45518916845321655, -0.2851411700248718, -0.08395282179117203, 0.5948624610900879, -0.1428394615650177, -0.12790779769420624, 0.3867059350013733, 0.05256539210677147, 0.07462165504693985, 0.5132465362548828, -0.33082571625709534, 0.10262507945299149...
def generate _ dataset _ record ( self, node ) : page = etree. element ( doc ) doc = etree. elementtree ( page ) self. generate _ variables ( ) # writing node related information : for key, value in self. node _ info. iteritems ( ) : append _ to _ xml ( page, key, value ) # writing generic attributes of the dataset tha...
[ -0.1416032463312149, 0.5134902596473694, 0.580636203289032, -1.0927841663360596, 0.263831228017807, 0.5098365545272827, 0.16780780255794525, 0.21936167776584625, -0.6155429482460022, -0.45179277658462524, 0.2982092797756195, -0.06866645812988281, 0.060946837067604065, 0.901604950428009, ...
def test _ create _ new _ superuser ( self ) : user = get _ user _ model ( ). objects. create _ superuser ('test @ gmail. com ','test1234') self. asserttrue ( user. is _ superuser ) self. asserttrue ( user. is _ staff )
[ 0.5482550263404846, 0.6942280530929565, -0.0050268922932446, 1.5387471914291382, 0.5842065811157227, 1.118397831916809, -0.11749839782714844, 0.3729599714279175, 0.08252903074026108, -1.0334479808807373, -1.6061995029449463, 0.02841753140091896, -0.2520638406276703, 0.3991706967353821, -...
def _ try _ force _ move _ to ( self, x, y, creep _ cond = lambda x : true ) : # type : ( int, int, callable [ [ creep ], bool ] ) - > bool if x > 49 or y > 49 or x < 0 or y < 0 : return false if game. map. getterrainat ( x, y, self. room. room. name ) = ='wall': return false for struct in cast ( list [ structure ], se...
[ -1.2445367574691772, 0.47000014781951904, 0.8502828478813171, -0.0693528801202774, 0.3022194504737854, -0.03907511383295059, 0.6402758955955505, -1.687242031097412, -0.5193158984184265, -0.1615859717130661, -0.4936428368091583, -0.0267691258341074, -0.36336398124694824, 0.230817973613739, ...
def _ test _ microvm _ boottime ( microvm, net _ config ) : microvm. spawn ( ) microvm. basic _ config ( vcpu _ count = 2, mem _ size _ mib = 1024 ) if net _ config : _ tap, _, _ = microvm. ssh _ network _ config ( net _ config,'1') # configure logging. log _ fifo _ path = os. path. join ( microvm. path,'log _ fifo') m...
[ 0.5628060698509216, 0.7096409797668457, 0.8247489929199219, 0.5783336162567139, -0.1718638390302658, -0.19272460043430328, 0.20227086544036865, 0.16467443108558655, -0.3244817554950714, 0.3179643750190735, -0.501437246799469, -0.40802136063575745, -0.07808808237314224, 0.6141612529754639, ...
def pseudo _ rerank _ nbests ( nbests, func ) : for nbest in nbests : pseudo _ rerank _ nbest ( nbest, func )
[ -0.7661094665527344, 0.5075922012329102, 0.2500688433647156, 1.349287748336792, 0.03304767236113548, -0.11982487887144089, 0.023552149534225464, 0.21128836274147034, -0.1693248599767685, 0.1309884935617447, -1.1132304668426514, 1.206973910331726, 1.0413552522659302, 0.43509426712989807, ...
def acl6totcount ( self ) : try : return self. _ acl6totcount except exception as e : raise e
[ 1.8722349405288696, -0.13048546016216278, 0.265231192111969, -0.693139374256134, -0.00006439090066123754, -0.1694302260875702, 1.304128646850586, -0.382754921913147, 0.1259501576423645, 0.4697237014770508, -0.4572233557701111, -0.5428375601768494, 0.9493619203567505, -1.3042256832122803, ...
async def stats ( self, ctx, *, member = none ) : if member is none : member = ctx. message. author if type ( member ) is str : membername = member member = displayname. memberforname ( membername, ctx. message. server ) if not member : msg ='i couldn \'t find * { } *... '. format ( membername ) await self. bot. send _...
[ 0.13637971878051758, 0.32290446758270264, 1.0556514263153076, 0.008621015585958958, -0.2884056568145752, 0.17448090016841888, -0.13665275275707245, -0.25645458698272705, 0.5598967671394348, 0.005286769010126591, -0.8203461170196533, 0.3953187167644501, -0.38782408833503723, 0.2036068737506...
def after _ request ( response ) : g. db. close ( ) return response
[ -0.5169864296913147, -0.888970673084259, 0.16502273082733154, -0.008165426552295685, -0.39532628655433655, 0.9712616205215454, 0.5874252915382385, -0.7056470513343811, 0.2840922772884369, -0.6343057155609131, 0.15039308369159698, -1.0509923696517944, -1.0902578830718994, -0.200529113411903...
def get _ n1 _ event _ format ( ) : # define the data format of the events return struct ( " revision " / int32sl, " rfu1 " / int32sl, " type " / int32sl, " sourceport " / int32sl, " channelnumber " / int32sl, " code " / int32sl, " startsampleindex " / int64ul, " stopsampleindex " / int64ul, " descriptionlength " / int...
[ 0.162326380610466, 0.12895599007606506, 0.6041569113731384, -0.6228923201560974, -0.19623114168643951, -0.5281826257705688, -0.39702466130256653, -0.5224751234054565, -0.002862590132281184, -0.6822424530982971, -0.22150039672851562, 0.5319762229919434, -0.7929607033729553, 0.45422878861427...
def friend _ set _ for ( user ) : return set ( [ obj [ " friend " ] for obj in friendship. objects. friends _ for _ user ( user ) ] )
[ -0.4295184314250946, 0.3513842225074768, 0.6093772649765015, 0.5873993039131165, 0.2617853283882141, 0.46600547432899475, -0.19833090901374817, -1.2698071002960205, -1.3755204677581787, -0.26223990321159363, -0.8021939396858215, -0.10816287994384766, 0.3312382698059082, -0.6774787902832031...
def gettemperature ( ) : andor _ solis. gettemperature. restype = ctypes. c _ uint temperature = ctypes. c _ int ( ) result = andor _ solis. gettemperature ( ctypes. byref ( temperature ) ) check _ status ( result ) status = _ sc [ result ] return int ( temperature. value ), str ( status )
[ -0.1527521163225174, -0.6756938099861145, 0.471529483795166, -0.056003693491220474, -0.628346860408783, -1.0739752054214478, 0.29915621876716614, 0.8423436880111694, 0.3858271539211273, 0.3599538207054138, -0.5209814310073853, 0.1400962620973587, -0.46948856115341187, -0.02097112126648426,...
def do _ post ( self ) : if self. do _ preprocess ( ) : try : if ( self. globals. _ config ['parse _ post _ data'] ) : post _ data = none ctype = self. headers ['content - type'] if ctype : if ctype = ='application / json': content _ length = int ( self. headers ['content - length'] ) # < - - - gets the size of data po...
[ 0.31690818071365356, -0.0902080237865448, 0.9589937329292297, 0.6988654732704163, 0.29567137360572815, 0.3099224269390106, -0.08688869327306747, -0.16725793480873108, -0.9334112405776978, -0.8833813071250916, 0.16167853772640228, 0.5048055052757263, -0.4189751446247101, 0.32255950570106506...
def setup _ specific _ parser _ rules ( self, parser ) : def pre _ discovery _ hook ( parser, options ) : " " " hook used to discover the prices " " " # save the values elements = object _ clone ( parser. elements ) # clear the parser parser. reset ( ) parser. element _ create ( ) # discover the prices for element in e...
[ -0.43898749351501465, 0.2178066074848175, 0.6119001507759094, 0.07895944267511368, 0.9069479703903198, -0.0015861181309446692, -0.07100293040275574, 0.21127000451087952, -0.07695674896240234, 0.5102837681770325, 0.49640366435050964, -0.6831004023551941, 0.7922676801681519, 1.59486246109008...
def extract _ twitter _ id ( item : tuple [ str, dict [ userhandle, int ] ], lookup : dict [ userhandle, str ] ) - > tuple [ str, optional [ userhandle ] ] : website, match = item n _ keys = len ( match. keys ( ) ) if n _ keys = = 0 : return ( website, none ) elif n _ keys = = 1 : # take what we can get return ( websit...
[ -0.15043514966964722, -0.26932191848754883, 0.4304421842098236, 0.4520423412322998, -0.5258141160011292, -0.0036574751138687134, 0.7758609652519226, 0.25351810455322266, 1.1108397245407104, 0.536830723285675, -0.19965016841888428, 0.16588516533374786, -0.5453106760978699, -0.44762369990348...
def test _ wa _ update _ no _ args ( self ) : r = rectangle ( 1, 1, 0, 0, 1 ) r. update ( ) self. assertequal ( str ( r ), " [ rectangle ] ( 1 ) 0 / 0 - 1 / 1 " )
[ -0.9338359832763672, -0.7756009101867676, 0.3159322738647461, -0.32061073184013367, 0.15299156308174133, 0.30763888359069824, 0.3938989043235779, -0.7288053035736084, 0.27318722009658813, -0.349232941865921, 0.06785568594932556, -0.8153128623962402, -1.0869462490081787, 0.36348140239715576...
def print _ model ( self, model ) : return " nn _ hiddenunit { } ". format ( model. hidden _ layer _ sizes [ 0 ] )
[ -0.07365111261606216, -0.08564592152833939, 0.47826090455055237, -0.6118292808532715, 0.11279471963644028, 0.8854317665100098, -0.01310906745493412, -1.6286609172821045, -0.0814371258020401, 0.17376603186130524, -0.6176979541778564, 0.0332171730697155, -0.0432877242565155, 0.47508963942527...
async def _ _ get _ prefix ( self, message ) : if await self. mongoio. isblacklisted ( message. author ) or not message. guild : return'' # ignore if user is blacklisted or message is not in a guild guildpref = await self. mongoio. getsetting ( message. guild,'prefix') result = self. config. command _ prefixes. copy ( ...
[ 0.4302700459957123, 0.7262868881225586, 0.6046210527420044, 0.7550835609436035, 0.6357901096343994, -0.8461058139801025, -0.48864874243736267, -0.5557603240013123, 0.8438912630081177, 0.7967023253440857, 0.7049305438995361, 1.1064832210540771, -1.0399456024169922, 1.3231786489486694, 0.4...
def helloworld ( count ) : if count < 1 : return print " hello world " helloworld ( count - 1 )
[ 0.43710556626319885, 0.7239882946014404, 0.5754908919334412, 1.9036632776260376, -0.0962410643696785, 1.200344443321228, 0.467314213514328, -0.3035382032394409, -1.0926768779754639, 0.21758022904396057, 0.10694685578346252, -0.36786019802093506, -1.222041368484497, 0.7156660556793213, 0....
def envs ( self, envs ) : self. _ instructions _ setter ('env ', envs )
[ -1.1968871355056763, 0.2669631838798523, 0.25473034381866455, 0.43880578875541687, 0.6665209531784058, 0.5102736949920654, 0.8300445079803467, -0.3083115816116333, 0.5446005463600159, -0.2081003189086914, -0.5678945183753967, -0.2667376697063446, 0.6852648854255676, 1.1337792873382568, -...
def data ( self, value ) : if type ( value ) is not int : raise typeerror ( " data must be an integer " ) else : self. _ _ data = value
[ -0.8207625150680542, 0.5278000235557556, 0.3990289866924286, -0.675359308719635, -0.18843206763267517, 1.4526704549789429, -0.08699657768011093, -0.26813018321990967, -0.26835817098617554, -0.07999532669782639, -0.21274855732917786, 0.037275560200214386, -0.7179084420204163, 0.958810389041...
def get _ all _ aff _ tables ( means, covars, aff _ funct, progress = true ) : aff _ dispatch = {'probability': aff _ by _ eval,'kl div': aff _ kl _ div,'js div': aff _ js _ div,'hellinger': aff _ hellinger } aff _ tables = [ aff _ dispatch [ aff _ funct ] ( means [ 0 ], covars [ 0 ] ) ] for i in range ( 1, means. shap...
[ 0.20730248093605042, 0.5754640102386475, 0.6200649738311768, 0.3759630024433136, -0.3472900092601776, 0.11589603871107101, 0.28528401255607605, -0.009003420360386372, -0.44904008507728577, 0.7259602546691895, 0.4614039957523346, 1.4685429334640503, 1.2583012580871582, 1.3061275482177734, ...
def index ( ) : scrapes = scrape. query. order _ by ( scrape. created. desc ( ) ). all ( ) # import pdb ; pdb. set _ trace ( ) return render _ template ( " webscrap / index. html ", scrapes = scrapes )
[ -0.26552560925483704, 0.15391311049461365, 0.3350978493690491, -0.20802003145217896, 0.6492021083831787, 0.9448530673980713, 0.44121092557907104, 0.2839409112930298, -0.12819938361644745, 0.056733664125204086, 0.6748425364494324, 0.07031525671482086, 0.7322354316711426, -0.0113006159663200...
def get _ peptide _ info _ from _ db ( self, peptide _ seq ) - > pd. dataframe : return self. _ database. loc [ self. _ database. peptide = = peptide _ seq, ]
[ -0.6512910723686218, 0.09695092588663101, 0.18511314690113068, -0.46513375639915466, -0.22832953929901123, -0.6961037516593933, -0.4755077362060547, 0.0803421214222908, -0.651195228099823, 0.4007144868373871, -0.26770392060279846, 0.08863542228937149, -0.22585026919841766, -0.9638236165046...
def sample _ bell ( m = 39., a = 19., b = 10., mn = - 10., mx = 60. ) : x = np. linspace ( mn, mx, num = 200 ) y = bell _ function ( x, m = m, a = a, b = b ) # probability density function, pdf cdf _ y = np. abs ( np. cumsum ( y + 1e - 10 ) ) # cumulative distribution func, cdf cdf _ y = cdf _ y / cdf _ y. max ( ) # ta...
[ 0.7131209969520569, -0.41838279366493225, 0.7241681814193726, 0.02714620903134346, -0.966320276260376, 0.18101853132247925, 0.10208220034837723, 0.6666287779808044, 0.38687559962272644, 0.43596968054771423, 0.1163281798362732, 1.3338505029678345, -0.700724184513092, -0.3700319230556488, ...
def create _ max _ heap ( arr ) : n = len ( arr ) # last n / 2 elements will be leaf nodes ( cbt property ) hence already max heaps # loop from n / 2 to 0 index and convert each index node into max heap for i in range ( int ( n / 2 ), - 1, - 1 ) : max _ heapify ( i, arr, n )
[ 0.03727241978049278, -0.07503505051136017, 0.7472356557846069, 1.4077174663543701, -0.24346448481082916, 0.1836705356836319, -0.3269656002521515, -0.9339625239372253, 0.6909348964691162, 0.17891277372837067, 0.27373963594436646, -0.40897589921951294, 0.25325581431388855, 0.6559355854988098...
def next _ node ( self, new _ node ) : self. _ next _ node = new _ node
[ -0.674048662185669, 0.1295979619026184, 0.14103297889232635, -0.42908522486686707, -0.014193719252943993, 0.2564977705478668, -0.27514752745628357, 0.48772236704826355, -0.3272007703781128, 0.1820574253797531, -0.8404088616371155, 1.7143473625183105, -0.054333969950675964, 0.17406804859638...
def _ service _ name _ and _ config _ from _ path ( self, path : str ) - > optional [ _ serviceconfig ] : relpath = os. path. relpath ( path, self. _ configs _ folder ) filename = path ( relpath ) service = str ( filename. parts [ 0 ] ) if len ( filename. parts ) > 1 else none config _ name = filename. stem config _ su...
[ 0.29646527767181396, -1.0723215341567993, 0.6476806402206421, -0.5417966842651367, -1.759814739227295, -0.12876218557357788, 0.011339693330228329, -0.10005553811788559, -0.28523972630500793, 0.5892287492752075, -0.3668673634529114, 0.11747043579816818, 0.11937389522790909, 0.39960938692092...
def delete _ file _ dir ( self, path, recursive ) : pass
[ 0.3041806221008301, 0.14813347160816193, 0.3698083162307739, 1.27360200881958, 0.17990075051784515, -0.1644560545682907, 0.8409922122955322, 0.7412681579589844, -0.4083555042743683, -1.1175357103347778, 0.5429122447967529, 0.13362133502960205, 0.023592457175254822, 0.6045576930046082, -1...
def mergepropertydictionaries ( current _ property, new _ property ) : for key, value in new _ property. iteritems ( ) : if key not in current _ property : current _ property [ key ] = value else : assert ( isinstance ( current _ property [ key ], dict ) and isinstance ( value, dict ) ) # this merges two dictionaries t...
[ -0.2487979531288147, -0.9108960032463074, 0.8819074630737305, -0.1684219390153885, -0.10628492385149002, 0.25503742694854736, -1.3677786588668823, 0.11380260437726974, -0.104791060090065, -0.03464983403682709, 0.5719948410987854, -0.05658669397234917, -0.4434874653816223, 0.038020007312297...
def code _ block _ start _ test ( lines, index ) : return code _ start. match ( lines [ index ] )
[ 0.375338077545166, -0.1952717900276184, 0.5024545192718506, 0.3249187469482422, 0.012114036828279495, 0.02593253180384636, 0.26851433515548706, -0.029637061059474945, 0.3336259722709656, -0.3515264093875885, 0.07856196910142899, 0.3753023147583008, -0.6022796034812927, -0.3071959316730499,...
def test _ apply _ return _ literal ( val ) : def func ( row ) : x = row [ " a " ] y = row [ " b " ] if x is not na and x < 2 : return val else : return x + y gdf = cudf. dataframe ( { " a " : [ 1, none, 3, none ], " b " : [ 4, 5, none, none ] } ) run _ masked _ udf _ test ( func, gdf, check _ dtype = false )
[ 0.009903989732265472, 0.5401187539100647, 0.5015740394592285, 0.30030688643455505, -0.4393460750579834, -0.02257155068218708, 0.2357986569404602, 0.21050411462783813, 0.2469874918460846, -0.1576695740222931, 0.42613306641578674, -0.0964040458202362, 0.3776044249534607, -0.6904270648956299,...
def load _ data ( postprocess = true, use _ cached = true ) : if use _ cached : try : with ( root /'data. pickle'). open ('rb') as handle : print ('loading data from cache...') return pickle. load ( handle ) except filenotfounderror : pass with ( root /'data _ for _ student _ case. csv'). open ( mode ='r') as csv _ fil...
[ 0.11882862448692322, -0.16071906685829163, 0.700857937335968, 0.1539483368396759, -0.6071771383285522, -0.29284924268722534, -0.5273117423057556, 0.1776513308286667, -0.01628572680056095, 0.31353166699409485, -0.1323176771402359, -0.20353811979293823, 0.22187918424606323, 0.151764422655105...
def make _ one _ silly _ move ( state, first _ player _ color ) : move _ found = false move _ order = ['top _ coordinate ','top _ right _ coordinate ','bottom _ right _ coordinate ','bottom _ coordinate ','bottom _ left _ coordinate ','top _ left _ coordinate'] start _ penguin _ location = state. players [ first _ play...
[ -1.0655102729797363, 0.5076198577880859, 0.7748141288757324, -0.06324120610952377, 0.41519734263420105, -0.2881539762020111, 0.4788871705532074, -0.358282208442688, -0.35967087745666504, 0.03038853220641613, -0.9085635542869568, -0.1872660368680954, -0.018055150285363197, -0.17164091765880...
def replace ( self, item ) : self. set [ item. state ] = item self. heap = list ( self. set. values ( ) ) heapq. heapify ( self. heap )
[ 0.08015608042478561, -0.1970941722393036, 0.32955706119537354, -0.8965321779251099, -0.24094335734844208, -0.19398090243339539, -0.5837957859039307, 0.3705174922943115, 0.6416320204734802, 0.08948809653520584, -1.4881720542907715, 0.4561977982521057, 0.004127780441194773, -0.13941444456577...
def classifiers _ most _ informative _ features ( vectorizer, clf, n = 20 ) : feature _ names = vectorizer. get _ feature _ names ( ) coefs _ with _ fns = sorted ( zip ( clf. coef _ [ 0 ], feature _ names ) ) top = zip ( coefs _ with _ fns [ : n ], coefs _ with _ fns [ : - ( n + 1 ) : - 1 ] ) for ( coef _ 1, fn _ 1 ), ...
[ -0.2972208261489868, -0.4435094892978668, 0.7963024973869324, -0.05886819586157799, 0.2915232181549072, -0.7724055051803589, 0.17025573551654816, -0.6995953917503357, -0.9583787322044373, -0.3817554712295532, -0.8362266421318054, 1.0733823776245117, 0.8305820822715759, 0.42273759841918945,...
def is _ critical ( self ) : return self. _ call ('is _ critical'). yes
[ 0.5406956076622009, 0.3426036238670349, 0.4268682599067688, 1.812418818473816, 0.3931823968887329, 0.10647552460432053, -0.903315544128418, -0.16829369962215424, 0.2889101207256317, 0.3406527042388916, 0.12931501865386963, 0.4816843867301941, -0.3416207730770111, -0.8721402883529663, -1....
def filter ( self, inc _ fam = none, exc _ fam = none, inc _ indiv = none, exc _ indiv = none ) : if inc _ fam is not none : for i in self. keys ( ) : if self [ i ]. fam _ id not in inc _ fam : del self [ i ] if inc _ indiv is not none : for i in self. keys ( ) : if self [ i ]. ind _ id not in inc _ indiv : del self [ ...
[ 0.47940316796302795, -0.24690377712249756, 0.6729657053947449, -0.03972916305065155, -0.4052489995956421, -0.039713937789201736, 0.44634243845939636, 1.013577938079834, -0.2430877834558487, -0.1575452983379364, 0.7383908629417419, 0.6519875526428223, -1.0802993774414062, -0.090859822928905...
def _ create _ global _ explanation _ kwargs ( local _ explanation = none, expected _ values = none, classification = true, explanation _ id = none, init _ data = none, eval _ data = none, eval _ ys _ predicted = none, eval _ ys _ predicted _ proba = none, model _ id = none, * * kwargs ) : if local _ explanation is not...
[ -0.08820459991693497, 0.322795033454895, 0.8831616044044495, 0.010104736313223839, -0.09241494536399841, 0.24727274477481842, 0.24179789423942566, 1.3451701402664185, 0.335098534822464, 0.32377108931541443, -0.45437803864479065, 0.8339183330535889, -0.11803780496120453, 1.4562230110168457,...
def get _ range _ list _ at _ offset ( self, offset, cu = none ) : self. stream. seek ( offset, os. seek _ set ) return self. _ parse _ range _ list _ from _ stream ( cu )
[ -1.0952012538909912, -0.44995155930519104, 0.42259666323661804, 0.1803489774465561, -0.28086140751838684, -0.025987038388848305, -0.7879596948623657, -0.23510947823524475, 0.08333635330200195, -0.4514849781990051, -1.3362185955047607, 0.17370940744876862, -0.35253843665122986, 0.1395240277...
def test _ recipients _ with _ reply _ parent ( self, * _ ) : parent _ status = models. generatednote. objects. create ( content = " test content ", user = self. remote _ user ) status = models. generatednote. objects. create ( content = " test content ", user = self. local _ user, reply _ parent = parent _ status ) se...
[ 0.5393697023391724, -0.24878670275211334, 0.5223105549812317, -0.774529218673706, 0.41968387365341187, 1.1305290460586548, -0.025407699868083, -0.3876299560070038, -0.041428014636039734, -0.48161378502845764, -1.0290272235870361, 0.8989119529724121, -0.5263553261756897, -0.1088422685861587...
def max _ positions ( self ) : return none
[ -0.12239459902048111, 0.34936007857322693, 0.3358555734157562, 0.4526936411857605, 0.6662814021110535, -0.01882805861532688, -0.3331863284111023, 0.0879402607679367, 0.7452595233917236, -0.6471033096313477, -0.567728579044342, -1.2367985248565674, -0.5011097192764282, -0.30291488766670227,...
def _ _ init _ _ ( self, station, username, created _ at = none, timestamp = true ) : self. station = station self. username = username if created _ at : self. created _ at = created _ at else : datetime _ min = datetime ( 1900, 1, 1 ) self. created _ at = datetime. utcnow ( ) if timestamp else datetime _ min
[ -0.47478029131889343, 0.14025983214378357, 0.45592203736305237, 0.5140483975410461, 0.12225744128227234, 0.3018089830875397, -0.46638816595077515, 0.15624617040157318, 0.085047647356987, -0.5557388663291931, -0.5658426880836487, -0.22849874198436737, 0.6096220016479492, 0.11815884709358215...
def scoresolvers ( self ) : solver _ scores = [ ] withheld _ solvers = [ ] fit = 0 for solver in self. _ solvers : if solver. fitness is none : if len ( withheld _ solvers ) < self. _ max _ withheld : withheld _ solvers. append ( solver ) else : continue elif solver. living : solver _ scores. append ( [ solver, solver....
[ -0.6553518772125244, -0.9071581959724426, 0.576166033744812, 0.4827782213687897, 0.857928454875946, 0.409544974565506, -0.03872954845428467, -1.063441514968872, -0.1704901158809662, -0.020007867366075516, -0.38193589448928833, -0.22948719561100006, -0.7102444171905518, 0.6710417866706848, ...
def info ( self ) - > dict : raise notimplementederror ( " no source info set " )
[ -0.5435832738876343, -0.28006669878959656, 0.3869764506816864, -0.60481196641922, -0.5819091796875, 0.17521439492702484, 0.10139735043048859, -0.3130502700805664, -0.39288419485092163, -0.3079260289669037, -1.3998507261276245, -0.3921899199485779, 0.812233567237854, 1.0239062309265137, -...
def test _ _ array _ search ( self ) : arr = array ( 10 ) arr [ 0 ] = 10 arr [ 1 ] = 20 arr [ 2 ] = 30 arr [ 3 ] = 40 # print ( arr ) res = search ( arr, 30 ) # print ( res ) self. assertequal ( res, 2 )
[ -0.46142175793647766, -0.3434159755706787, 0.5778526663780212, 0.16423067450523376, 0.3552020788192749, 0.646767258644104, 0.2834908366203308, -0.3372476100921631, 0.16126617789268494, -0.17863087356090546, -0.26912111043930054, 0.011769723147153854, -0.6403349041938782, 0.3229667544364929...
def keras _ preprocess _ dataset ( self, network, preprocess ) : try : if network = ='detection': if preprocess = ='vgg19': self. ct _ scan _ detection = keraps. vgg19. preprocess _ input ( self. ct _ scan _ detection ) elif preprocess = ='resnet50': self. ct _ scan _ detection = keraps. resnet50. preprocess _ input ( ...
[ -0.1006736308336258, -0.08502498269081116, 0.6455896496772766, -0.01881563290953636, 0.45338672399520874, -0.4232988655567169, -0.247976154088974, 0.2274438738822937, 0.7283825874328613, -0.5811069011688232, 0.42481425404548645, -0.06039505451917648, 0.7853954434394836, 0.3209959864616394,...
def get _ ip _ by _ address ( self, address : str ) : for ip in self. ips : if address = = ip. address : return ip raise lookuperror ( " no ip with that address found! " )
[ -0.2840360999107361, -0.49775969982147217, 0.39474761486053467, 0.14595909416675568, -0.5600335001945496, -0.42301511764526367, 0.08010806888341904, 0.41738396883010864, 0.8798045516014099, 0.425688773393631, 1.3396915197372437, 0.3499760329723358, 0.6826759576797485, -0.8602406978607178, ...
def beam ( x, y, nu, p, e, i, l, h ) : g = e / ( 2 * ( 1 + nu ) ) c = h / 2 c1 = - p / ( 2 * e * i ) c2 = - ( nu * p ) / ( 6 * e * i ) c3 = p / ( 2 * i * g ) c4 = ( p * l * * 2 ) / ( 2 * e * i ) c5 = - ( p * c * * 2 ) / ( 2 * i * g ) c6 = c4 + c5 c7 = ( nu * p ) / ( 2 * e * i ) c8 = p / ( 6 * e * i ) c9 = - ( p * l * *...
[ 0.3807345926761627, 0.25179001688957214, 0.8481616973876953, 0.09495697170495987, -0.34749796986579895, 0.2797521948814392, -0.04533379524946213, 0.40385356545448303, -0.5277456641197205, 0.31013694405555725, -0.9953152537345886, -0.10554082691669464, -0.7069662809371948, -0.34858885407447...
def upload _ data _ file ( ) : if'uid'in session : response = { " tabledata " : dict ( ), " wikifierdata " : dict ( ), " yamldata " : dict ( ), " error " : none } project _ meta = dict ( ) user _ id = session ['uid'] project _ id = request. form ['pid'] data = data _ file _ uploader ( user _ id, project _ id ) if data ...
[ -0.21191859245300293, -0.32432830333709717, 0.8543199896812439, -0.4914143681526184, -0.06620148569345474, 1.0702319145202637, -0.2725372314453125, 0.5220659971237183, -1.1608184576034546, 0.16261519491672516, 0.11592546850442886, 0.4963432550430298, 0.3575891852378845, 0.6208357214927673,...
def apply _ imm ( self ) : pass
[ -0.6894431710243225, -0.7686296701431274, 0.2466295212507248, 0.5986154675483704, -0.0162801556289196, 0.454751193523407, 0.8345390558242798, 0.6433650851249695, 0.5512740015983582, -0.13292455673217773, -0.10276736319065094, 0.3238283097743988, -1.1426668167114258, 0.37799710035324097, ...
def test _ delete _ admin _ only ( self ) : skill = skill. objects. create ( date = [ 2, 2022 ], name = { " en " : " test skill ", " fr " : " skill de test " }, description = { " en " : [ " test desc " ], " fr " : [ " desc test " ] } ) detail _ url = reverse ('rest : skill - detail ', kwargs = {'pk': skill. id } ) res ...
[ 0.8457412719726562, 0.7851681709289551, 0.4906141757965088, 0.22749994695186615, 0.634758472442627, 1.138335108757019, 0.24752599000930786, -0.6640517711639404, 0.23659217357635498, 0.24718447029590607, -0.2736712396144867, 1.3677339553833008, 0.38381609320640564, 0.3780438005924225, 0.2...
def global _ importance _ values ( self ) : if self. _ global _ importance _ values is none : return self. _ ranked _ global _ values if hasattr ( self. _ global _ importance _ values,'tolist') : return self. _ global _ importance _ values. tolist ( ) return self. _ global _ importance _ values
[ -0.19157415628433228, 0.9119547009468079, 0.7482653260231018, 0.4651091396808624, 0.8268064260482788, 0.945763885974884, -0.36946824193000793, 0.31879013776779175, -0.020829075947403908, 0.613654375076294, -0.836158037185669, 1.0655955076217651, -0.5637113451957703, 1.1085796356201172, 0...
def test _ gsuites _ get ( self ) : pass
[ -0.15170155465602875, 0.18882109224796295, 0.4052356481552124, 0.21334365010261536, 0.3053063750267029, 1.4654834270477295, 1.2874808311462402, -0.844898521900177, -0.45035046339035034, -0.7472951412200928, -0.03917726129293442, 1.0094432830810547, -0.9236650466918945, -0.02084301039576530...
def get _ 5gnr _ mixeroff ( self ) : rdstr = self. queryint ( f'conf : nrmm : meas : rfs : mlof?') return rdstr
[ 0.2189781218767166, 0.040438346564769745, 0.17766030132770538, -0.3776859641075134, -0.4211574196815491, 0.0756862461566925, 0.2998161315917969, -0.9929755926132202, 0.13346663117408752, -0.6784487962722778, -0.08433874696493149, -0.0009910583030432463, -1.9690158367156982, 0.7010862231254...
def redirect ( self, target, msg = " ", msg _ type = " error " ) : if msg : self. show _ message ( msg, msg _ type ) return self. request. response. redirect ( target )
[ -1.0815824270248413, 0.22479060292243958, 0.5095638036727905, 0.4269583821296692, 0.17967762053012848, 0.3932550251483917, 0.7213587164878845, -0.48009446263313293, 0.7349949479103088, -0.9598511457443237, 1.2079416513442993, 1.0484925508499146, 0.24679109454154968, 0.5486227869987488, -...
def answer ( n ) : needed _ length = n + id _ length + 1 # string length needed based on given index prime _ numbers = generate _ prime _ numbers ( needed _ length ) # generate prime numbers prime _ string = stitch _ list ( prime _ numbers ) # stitch them together minion _ id = prime _ string [ n : n + 5 ] # id slice r...
[ -0.6668276786804199, -0.6452542543411255, 0.4648754298686981, -0.6177383661270142, -0.4841168224811554, 0.45333123207092285, -0.0950554609298706, -0.538874089717865, 1.2738271951675415, 0.35048922896385193, -1.4484301805496216, 0.05510031431913376, -1.379913568496704, -0.233571395277977, ...
async def reset ( self, ctx, n : int ) : if not n > 0 : raise commands. badargument ('please specify n > 0') # await ctx. trigger _ typing ( ) try : output = subprocess. check _ output ( ['git ','reset ','- - hard ', f'head ~ { n }'] ). decode ( ) await ctx. send ('` ` ` git \ n'+ output +'\ n ` ` `') except exception ...
[ -0.731285810470581, 1.2311824560165405, 0.5309177041053772, 0.352347195148468, 0.6185003519058228, 0.49784421920776367, 0.23345032334327698, -0.9168782830238342, -0.5918741822242737, -0.07919181138277054, -0.6737627983093262, 1.5804764032363892, -0.9047655463218689, 0.039598070085048676, ...
def get _ hosts _ bw ( self, hosts ) : bw = { } h2ifce = self. _ cur _ topo. host _ ifce _ table ths = [ threading. thread ( target = self. _ get _ host _ bw, args = ( h, h2ifce, bw ) ) for h in hosts ] for th in ths : th. start ( ) for th in ths : th. join ( ) logger. debug ( " [ monitor ] bandwidth dict : % s ", json...
[ -0.6021137833595276, 0.4234999716281891, 0.531765341758728, 0.6790260076522827, 0.2468109428882599, -0.4585616886615753, 0.49038150906562805, -0.4152168333530426, -1.1207114458084106, -0.2343212217092514, -0.22898340225219727, 0.2706785798072815, -0.9280527830123901, 1.3190289735794067, ...
def per _ class _ values ( self ) : if self. _ per _ class _ values is none : return self. _ ranked _ per _ class _ values. tolist ( ) return self. _ per _ class _ values. tolist ( )
[ -1.0863864421844482, 0.3747355341911316, 0.5286458730697632, 0.4278208613395691, 0.9021087288856506, 0.938396155834198, -0.13594721257686615, 0.04923194274306297, -0.10728965699672699, 0.03875909745693207, -0.062073349952697754, 0.2345365434885025, 0.4006028473377228, 1.3160737752914429, ...
def crop _ image ( path ) : img = image. open ( path ) w, h = img. size if h > 800 : new _ path = path [ : - 4 ] + " _ cropped. png " img. crop ( ( 0, h - 700, w, h ) ). save ( new _ path ) # crop ( ( left, upper, right, lower ) ) return true
[ -0.7363605499267578, 0.4252232611179352, 0.8564231395721436, -0.055018529295921326, -0.5306448936462402, 0.5532105565071106, 0.359403133392334, -0.3526497185230255, 0.5453355312347412, 1.113691806793213, -0.25185492634773254, -0.39412766695022583, 0.8739257454872131, -0.2355017215013504, ...
def test _ shutdown _ restart ( self ) : log. info ( " = = = = = = = = = = start qual test shutdown restart = = = = = = = = = = = = = = = " ) # this telemetered file has 2 sets of telemetered data. # first set has 4 instrument records and second set has 6. # 1 metadata record for each set. self. create _ sample _ data ...
[ 0.8643165826797485, -0.6786062121391296, 0.5403510928153992, -0.6041313409805298, 0.295502245426178, -0.1360013484954834, 0.3824026584625244, 0.3963359296321869, -0.05595016852021217, 0.27615341544151306, -0.1100437268614769, 0.29530107975006104, -0.35792213678359985, -0.4881288707256317, ...
def _ isenabled ( definition, enabled _ features ) : if not hasattr ( definition, " attribute _ list " ) : return true if not definition. attribute _ list : return true already _ defined = false for a in definition. attribute _ list : if a. key = ='enableif'or a. key = ='enableifnot': if already _ defined : raise enabl...
[ -0.14509332180023193, 0.1614396721124649, 0.4443202316761017, 0.6252456903457642, 0.3882319927215576, -0.8395050764083862, -0.4158755838871002, 1.2974390983581543, -0.5025143623352051, 0.8669172525405884, -0.32191458344459534, -0.642132580280304, 0.13397467136383057, 1.2303872108459473, ...