text
stringlengths
25
2.19k
embedding
listlengths
768
768
def copy ( self ) : return path ( self. path, relto = self. _ relto, make _ absolute = self. _ absolute )
[ 0.36721518635749817, -1.7642155885696411, 0.6321006417274475, 0.6261523962020874, -0.9602633118629456, 1.6446439027786255, 0.8699040412902832, -0.19650694727897644, 0.11785200983285904, 0.0935920774936676, 0.2853200137615204, -0.01920456811785698, 0.17912405729293823, -1.4395289421081543, ...
def description ( self ) - > optional [ str ] : return pulumi. get ( self, " description " )
[ 1.301131010055542, 0.35559210181236267, 0.4731626510620117, 0.5851143598556519, 1.2246614694595337, 0.8117304444313049, -0.7922653555870056, -0.4751299321651459, 0.7352304458618164, 0.4699159264564514, 0.7639843821525574, 0.6848452687263489, -0.11685861647129059, -0.8969605565071106, -0....
def get _ ans ( question : str, selections : union [ list [ str ], list [ int ] ] = ['y ','n'] ) : reply = input ( question ) selections = list ( map ( str, selections ) ) if reply in selections : return reply else : return get _ ans ('invalid answer. retry : ', selections )
[ -0.3986697196960449, -0.10937409102916718, 0.4505620002746582, 0.1948484182357788, -0.6170682907104492, -0.17670321464538574, -0.8754168152809143, -1.2598886489868164, 0.9947152733802795, -0.1374950408935547, 0.42853453755378723, 0.5429201126098633, -0.8528621196746826, -1.0182541608810425...
def only _ debug _ pu ( self, pu _ id ) : # set debug flag to false to all components # self. tabla. pugb. debug = false # self. tabla. bus _ arbiter. debug = false for pu in self. tabla. pus : pu. debug = false pu. pegb. debug = false pu. bus _ arbiter. debug = false for pe in pu. pes : pe. debug = false pe. penb. deb...
[ -0.5648901462554932, -0.3992171287536621, 0.9170054793357849, -0.24322432279586792, 0.7376816272735596, 1.2631181478500366, -0.46130678057670593, 0.7312555909156799, 0.16127227246761322, -0.5285072326660156, 0.492201566696167, 0.3192969858646393, -0.8149839639663696, 0.6377299427986145, ...
def principal _ id ( self ) - > str : return pulumi. get ( self, " principal _ id " )
[ 1.6840219497680664, 0.16785384714603424, 0.42548051476478577, -0.1076885536313057, 0.5040475130081177, 1.8935247659683228, -0.33533427119255066, 0.2205968201160431, 1.083823561668396, 0.37694689631462097, 0.6550956964492798, 1.4627679586410522, -1.0145553350448608, -1.634300708770752, 0....
def in _ node ( self ) : return node ( self. graph, self. graph. redis. get ('{ } : in '. format ( self. name ) ) )
[ 0.014732067473232746, 0.05311954766511917, 0.3926123380661011, -0.5266278386116028, -0.2348107546567917, 0.15854305028915405, -0.990827202796936, 0.3230740427970886, 0.025071319192647934, 0.0005158522399142385, 0.08076906204223633, 1.2540618181228638, -0.6781840324401855, -0.82712054252624...
def processsingleframe ( self ) : self. dir = str ( self. ui. dirstring. text ( ) ) self. currentframe = int ( self. ui. input _ singleframe. toplaintext ( ) ) self. state = str ( self. ui. statestring. text ( ) ) self. data = load ( directory = self. dir ) print ('you chose frame { } '. format ( self. currentframe ) )...
[ -0.18763622641563416, -0.19161903858184814, 0.6592152118682861, -0.21367879211902618, -0.13451138138771057, -0.32449328899383545, 1.529634714126587, -0.03100157342851162, 0.7605780363082886, -0.8509544730186462, 0.03822655603289604, 0.6668142676353455, -0.09212418645620346, 1.0488168001174...
def np _ from _ xfoil ( *, cl _ data _ wing, cl _ data _ tail, re _ wing, re _ tail, alpha _ wing, alpha _ tail, l _ h, s, s _ h, eps ) : a = dcl _ da ( cl _ data _ wing, re _ wing, alpha _ wing ) a _ t = dcl _ da ( cl _ data _ tail, re _ tail, alpha _ tail ) np = ( a _ t * ( 1 - eps ) * s _ h * l _ h ) / ( s * a ) # r...
[ 0.7270220518112183, -0.22756487131118774, 0.5410348773002625, -0.6536120176315308, -0.17041419446468353, 0.38374385237693787, -0.3492198884487152, 0.0703754872083664, 0.05203862488269806, -0.24055513739585876, -0.08310781419277191, 0.924410343170166, 0.6782515645027161, 0.15783092379570007...
def fasta _ iterator ( fasta _ filename ) : fasta _ file = open ( fasta _ filename,'r') identifier = " " completeseq = [ ] for line in fasta _ file : line = line. strip ( ) if line. startswith ( " > " ) : if completeseq : yield ( identifier,''. join ( completeseq ) ) completeseq = [ ] identifier = line [ 1 : ] else : c...
[ -0.29490312933921814, -1.5005477666854858, 0.709733784198761, -0.18332533538341522, -0.9742950797080994, 0.11862895637750626, 0.8477110862731934, 0.8424568176269531, -0.020112186670303345, 0.47578948736190796, 0.05688635632395744, -0.6102361083030701, 0.42852985858917236, 0.50984126329422,...
def s3 _ image _ get _ by _ uuid ( context, image _ uuid ) : return impl. s3 _ image _ get _ by _ uuid ( context, image _ uuid )
[ -0.5121397376060486, -0.34960976243019104, 0.17147046327590942, -0.26621389389038086, -0.5335805416107178, -0.3304147720336914, -0.5943834185600281, 0.20735086500644684, 0.13129617273807526, 0.8585510849952698, 0.65953129529953, 0.5735930800437927, 0.25321486592292786, -1.2904423475265503,...
def find _ longest _ route ( composites, host ) : # init nodes init _ nodes ( composites ) # get route set route _ set = get _ route _ set ( host ) # get longest route longest _ route = [ ] for rt in route _ set : if len ( longest _ route ) < len ( rt. route ) : longest _ route = rt. route return longest _ route
[ 0.09647975862026215, -0.3879639208316803, 0.5765823125839233, -0.05959643796086311, 1.0574313402175903, -0.15310610830783844, -1.0140197277069092, 0.2590736746788025, -0.9746147394180298, 0.607974112033844, 0.002606702735647559, 0.170729860663414, -0.18589738011360168, 0.8129335045814514, ...
def get _ supplychains ( self, uuids, types = none, states = none, detail = none, environment = none, aspects = none, health = false, * * kwargs ) : args = {'uuids': ', '. join ( uuids ) if isinstance ( uuids, list ) else uuids,'types': ', '. join ( types ) if types else none,'entity _ states': ', '. join ( states ) if...
[ -1.5007908344268799, 0.4446369409561157, 0.6423431038856506, -0.286943256855011, 0.9187737703323364, -0.2270199954509735, -0.857506513595581, -1.2285865545272827, 0.14654015004634857, 0.4058893322944641, -0.26384395360946655, 0.5201363563537598, -0.7005317211151123, 0.3168008029460907, -...
def reservation _ get ( context, uuid ) : return impl. reservation _ get ( context, uuid )
[ -0.8914195895195007, 0.3338043987751007, 0.21255415678024292, -0.046357665210962296, -0.4310452938079834, -1.6281837224960327, -0.8275768756866455, 0.13027219474315643, -0.15894438326358795, 1.0400153398513794, 0.420401006937027, 0.5870031118392944, 0.11993643641471863, -1.9894471168518066...
def commandlineoptions ( self ) : commandlineoptions = { } for varname, option in self. options. items ( ) : if not option. argname. parametervalue = = none : commandlineoptions [ varname ] = option return commandlineoptions
[ -0.19324102997779846, -1.1495777368545532, 0.2633817791938782, -0.8971226215362549, 0.6470748782157898, -0.514085054397583, -0.6000615358352661, -0.9057143926620483, -0.7346509099006653, 0.41731491684913635, -0.7385204434394836, -0.43854886293411255, -0.11671558767557144, 0.801810920238494...
def init _ database ( engine ) : if not database _ exists ( str ( sql _ uri ) ) : create _ database ( str ( sql _ uri ) ) schema _ name = configuration. db _ name with engine. connect ( ) as connection : if schema _ name not in connection. dialect. get _ schema _ names ( connection ) : connection. execute ( createschem...
[ -0.5816357135772705, 1.163308024406433, 0.6962985992431641, 0.655800461769104, 1.2693079710006714, 0.05793627351522446, -0.49614715576171875, 0.580766499042511, -0.19716860353946686, 0.12271321564912796, -0.13225474953651428, -0.4653342068195343, -0.4018500745296478, 0.931756854057312, 0...
def test _ check _ config _ params _ empty _ repo _ path ( gitdelver _ config _ params _ fixture : callable [ [ none ], dict [ str, str ] ] ) : config _ params = gitdelver _ config _ params _ fixture config _ params [ " repo _ path " ] = " " with pytest. raises ( systemexit ) : gitdelver. _ check _ config _ params ( co...
[ 0.14585956931114197, 0.8074530959129333, 0.29765617847442627, 0.4674825668334961, 0.897339403629303, 0.36145442724227905, 0.28829893469810486, 0.765402615070343, -0.3101907968521118, 0.6004973649978638, -1.0177953243255615, -0.03446543961763382, -0.1923527866601944, 0.888873279094696, 0....
def origin ( self ) : radius = self. radius return ( self. _ center [ 0 ] - radius, self. _ center [ 1 ] - radius, self. _ center [ 2 ] - radius )
[ -0.28391900658607483, -0.9408493638038635, 0.6951728463172913, -0.5269451141357422, 0.2699182629585266, 0.500714898109436, 0.12463576346635818, 0.5941516757011414, -0.07310225814580917, 0.7725487351417542, -1.4268317222595215, 0.19445718824863434, -0.8722557425498962, -0.50193190574646, ...
def fill ( self, papyon _ contact ) : self. uid = papyon _ contact. id self. account = papyon _ contact. account self. icon. load ( " theme ", " buddy _ " + self. _ core. p2s [ papyon _ contact. presence ] ) self. emblem. load ( " theme ", " emblem _ " + self. _ core. p2s [ papyon _ contact. presence ] ) # todo : parse...
[ -0.5092246532440186, -0.6542394757270813, 0.5462250113487244, -0.22011882066726685, -0.15683317184448242, 0.6297817230224609, 0.15637418627738953, -1.1157394647598267, 1.0500473976135254, -0.6229134202003479, -0.56059330701828, -0.4736524522304535, 0.09457606822252274, 0.14023847877979279,...
def get ( self, queue = none, ary = none, async = false ) : if ary is none : ary = np. empty ( self. shape, self. dtype ) ary = _ as _ strided ( ary, strides = self. strides ) else : if ary. size! = self. size : raise typeerror ( "'ary'has non - matching size " ) if ary. dtype! = self. dtype : raise typeerror ( "'ary'h...
[ 0.0263969749212265, -0.12034540623426437, 0.8600906729698181, 0.10423800349235535, 0.4735872745513916, -0.08579006046056747, -0.14765609800815582, -0.7110447883605957, 0.30464860796928406, 0.07639230042695999, 1.1304932832717896, 1.392996072769165, -0.23902665078639984, 0.39323315024375916...
def compile _ cuda ( code, target _ format = " ptx ", arch = none, options = none, path _ target = none ) : if arch is none : # if none, then it will use ` tvm. target. target. current ( ). arch `. # target arch could be a str like " sm _ xx ", or a list, such as # [ # " - gencode ", " arch = compute _ 52, code = sm _ ...
[ -0.5459370613098145, 0.054734308272600174, 0.9290335774421692, 0.4944474995136261, -0.11979313939809799, -0.3542000949382782, -0.016143543645739555, -0.5252202749252319, 0.36491790413856506, 0.2992437481880188, 0.7411672472953796, 0.949450671672821, 0.23656055331230164, 0.18868261575698853...
def change _ perspective ( tokens ) : for i, j in enumerate ( tokens ) : for convert _ from, convert _ to in response _ converters. items ( ) : tokens [ i ] = re. sub ( convert _ from, convert _ to, tokens [ i ], flags = re. ignorecase ) return tokens
[ -1.0129046440124512, -1.1912750005722046, 0.7640340924263, -0.7258402109146118, 0.3515516221523285, -0.7578034400939941, -0.5814784169197083, 0.120343878865242, 0.3556644022464752, 0.4296901822090149, -0.5178491473197937, -0.09788812696933746, -0.4524557888507843, -0.48809799551963806, 0...
def test _ breadth _ first _ trav _ error _ empty ( gr ) : with pytest. raises ( keyerror ) : gr. breadth _ first _ traversal ( 12 )
[ 0.5001859664916992, 1.4708305597305298, 0.39119094610214233, 0.11099883168935776, 1.496963620185852, 0.2589785158634186, 0.32502132654190063, -0.025124186649918556, -0.8919399380683899, 0.1794920563697815, -1.1617591381072998, 0.6189180016517639, 0.3240358829498291, 0.3543034493923187, -...
def min _ max _ normalization ( map _ array, a = 0, b = 1 ) : min = map _ array. min ( ) max = map _ array. max ( ) return a + ( ( map _ array - min ) * ( b - a ) / ( max - min ) )
[ -0.1703100949525833, -1.2343270778656006, 0.623193621635437, 1.006012201309204, -0.9264010787010193, -0.14072102308273315, -0.6832913756370544, 0.2293950319290161, 0.7193401455879211, 0.5649811029434204, 0.6463108658790588, 0.4196866452693939, -0.7484710812568665, -0.30352357029914856, 0...
def from _ files ( cls, files, * * options ) : im = cls ( ) for file in files : im. append _ file ( file, * * options ) return im
[ 0.22623787820339203, -0.010380047373473644, 0.4111652970314026, 1.0284082889556885, 0.01551450788974762, 0.030406387522816658, -0.0795244425535202, 0.04294946789741516, -0.20893996953964233, -0.011613000184297562, 0.3555909991264343, -1.0683066844940186, -0.18428288400173187, 0.47357419133...
def pull _ tickerdata ( self, ticker, daysback = 4 ) : # url prep base _ url ='http : / / ichart. finance. yahoo. com / table. csv? s ='prices ='& g = d & ignore =. csv'dividends ='& g = v & ignore =. csv'ua _ string ='mozilla / 5. 0 ( x11 ; linux x86 _ 64 ; rv : 10. 0. 1 )'ua _ string + ='gecko / 20120225 firefox / 10...
[ -0.6889178156852722, 0.4044458866119385, 1.1687135696411133, 0.03039693273603916, -0.29167407751083374, 0.19195300340652466, 0.19157060980796814, -0.5016738176345825, -0.3467452824115753, 0.21809954941272736, -0.2388077974319458, 0.25928995013237, -0.13574762642383575, 0.5362396240234375, ...
def image _ square ( img ) : x, y = img. size while y > x : # slice 10px at a time until square slice _ height = min ( y - x, 5 ) bottom = img. crop ( ( 0, y - slice _ height, x, y ) ) top = img. crop ( ( 0, 0, x, slice _ height ) ) # remove the slice with the least entropy if image _ entropy ( bottom ) < image _ entro...
[ -0.17454512417316437, -0.7961479425430298, 1.164147138595581, -0.8903540968894958, 0.2975580394268036, -0.9285428524017334, 0.2115125060081482, -0.966688871383667, 1.198838233947754, 0.38706281781196594, 0.23623380064964294, 0.11116839200258255, 0.11737339198589325, 0.2110985964536667, 0...
def has _ defaultchild ( jsov, node ) : try : dpath. options. allow _ empty _ string _ keys = true dc = dpath. util. get ( jsov, " / " + node + " / default - child " ) return dc except keyerror : return false
[ -0.12387804687023163, 1.074897289276123, 0.6094567775726318, 0.16468235850334167, 0.3284139931201935, 0.05211604759097099, 0.08243061602115631, -0.19484655559062958, -0.91402268409729, -0.3896878659725189, -0.7837275862693787, -1.0221388339996338, -0.09951697289943695, 0.6826322674751282, ...
def _ _ init _ _ ( self ) : self. _ _ time _ counter _ when _ end = 0
[ -0.04148257151246071, -0.30572769045829773, 0.7023277878761292, 0.4307838976383209, 0.30460429191589355, 0.8329048156738281, -0.07362459599971771, 0.47820329666137695, -0.9571083188056946, 0.6090919375419617, -0.3893164098262787, -0.28234025835990906, -0.726158857345581, 1.3069242238998413...
def is _ xl ( self ) : if self. version. platform = ='xl': return true return false
[ 0.5893734693527222, 0.070769302546978, 0.45647773146629333, 1.2028765678405762, -0.6290971636772156, 1.2203787565231323, -0.973930835723877, 0.021929770708084106, 0.9803726077079773, 0.2505546510219574, -0.5824511051177979, 0.8495703339576721, -0.9793484210968018, -0.12255904078483582, -...
def model _ inputs ( image _ width, image _ height, image _ channels, z _ dim ) : inputs _ real = tf. placeholder ( tf. float32, shape = ( none, image _ width, image _ height, image _ channels ), name ='input _ real') inputs _ z = tf. placeholder ( tf. float32, ( none, z _ dim ), name ='input _ z') learning _ rate = tf...
[ 0.08957245945930481, -0.15562237799167633, 0.3205821216106415, -0.7821954488754272, 0.18542098999023438, 0.35020962357521057, 0.4742644131183624, -0.19832530617713928, -0.9817072749137878, 0.12576474249362946, -0.5545056462287903, -0.6711925268173218, 0.24445447325706482, -0.07596714049577...
def load _ run _ metadata ( f ) : libs = defaultdict ( dict ) samples = set ( ) with open ( f ) as rfile : reader = csv. dictreader ( rfile, dialect = " excel - tab " ) for row in reader : samples. add ( row [ " # sample _ accession " ] ) if " library _ name " in row : libs [ row [ " run _ accession " ] ] = ( re. sub (...
[ -0.25429967045783997, -0.8938629627227783, 0.551181435585022, -0.49607744812965393, -0.5951243042945862, 0.43436941504478455, -0.04768669977784157, 0.30494093894958496, -0.8612418174743652, 0.933117687702179, 0.07000867277383804, 0.12183070182800293, 0.557324230670929, -0.04433880373835564...
def from _ bspline ( cls, name, knots, coeffs, order, source = none, meta = none ) : degree = order - 1 breaks = np. unique ( knots ) # remove endpoint multiplicity pieces = breaks. size - 1 # number of polynomial pieces dim = coeffs. shape [ - 1 ] # dimension = number of gauss coefficients coeffs _ pp = np. zeros ( ( ...
[ 0.31536585092544556, -0.0018451203359290957, 0.5945117473602295, 0.46321600675582886, -1.0205585956573486, 0.41369181871414185, -1.2444883584976196, 0.28011342883110046, 0.7095754742622375, -0.16046305000782013, -0.25422266125679016, 0.09851910173892975, 0.5007176995277405, -1.446552634239...
def convert _ string ( token _ list ) : # list is empty if not token _ list : return'' if len ( token _ list ) = = 1 : return token _ list [ 0 ] else : return token _ list [ 0 ] +'' + convert _ string ( token _ list [ 1 : ] )
[ 0.020208504050970078, 0.14333476126194, 0.6672195196151733, 0.7260264754295349, 0.3902873396873474, -0.5564162135124207, -1.017991065979004, 0.29309582710266113, 0.3578108251094818, 0.8510037064552307, -0.48043736815452576, 0.4186013638973236, -0.3449788987636566, 0.6042935848236084, -0....
def _ export _ struct ( self, struct ) : blendstruct = blenderfile. blendstruct blendstructfield = blenderfile. blendstructfield field _ names = self. index. field _ names type _ names = self. index. type _ names type _ sizes = self. index. type _ sizes ptr _ size = 8 if self. header. arch = = blenderfile. arch. x64 el...
[ -0.42253366112709045, -0.22044576704502106, 0.7715121507644653, -0.19042271375656128, -0.5276944637298584, -0.45828568935394287, 0.30211111903190613, -0.9437517523765564, 0.71027672290802, -0.3841175436973572, -1.1347723007202148, 0.172856867313385, -0.6866872310638428, -0.7324886918067932...
def expire _ messages _ for _ subscriptions ( self, stream, expire _ time, local = false ) : if self. persistent : url _ endpoint ='/ streams / persistent / stream / { } / all _ subscription / expiremessages / { }? local = { }'\. format ( stream, expire _ time, local ) # else : # url _ endpoint ='/ streams / non - pers...
[ 0.0427229143679142, -0.09931622445583344, 0.9484819769859314, 0.42816299200057983, 0.4479208290576935, -0.7335777282714844, -0.8034953474998474, -0.5810024738311768, -0.19605867564678192, 0.25320324301719666, 0.04939199984073639, 0.7186912894248962, -1.158045768737793, 1.29788076877594, ...
def setincrementindex ( self, * args ) : return _ itkimageserieswriterpython. itkimageserieswriteriuc3iuc2 _ setincrementindex ( self, * args )
[ -0.4398866295814514, 0.17699426412582397, 0.34133750200271606, 0.04988234117627144, 0.0668429285287857, 1.1051931381225586, 0.551571786403656, -0.04855890944600105, -0.6054379940032959, -0.21308450400829315, -1.221812129020691, 0.49710607528686523, -0.10954845696687698, -0.0291734188795089...
def base _ path _ fixture ( pytestconfig, acceptance _ test _ config ) - > path : if acceptance _ test _ config. base _ path : return path ( acceptance _ test _ config. base _ path ). absolute ( ) return path ( pytestconfig. getoption ( " - - acceptance - test - config " ) ). absolute ( )
[ 0.7972850799560547, -0.558605432510376, 0.6122693419456482, 0.8591782450675964, 0.25774556398391724, 0.8033981323242188, 0.7111362814903259, 0.34638530015945435, -0.21835140883922577, 0.5138018727302551, 0.5024247765541077, 0.2536432147026062, -0.07054534554481506, 0.4862382411956787, 0....
def get _ monitors ( ) - > list : displays = [ ] i = 0 while true : try : display = win32api. enumdisplaydevices ( none, i ) displays. append ( display ) except pywintypes. error : # run out of displays break i + = 1 monitors = [ ] for display in displays : try : win32api. enumdisplaydevices ( display. devicename, 0 ) ...
[ -0.6921776533126831, -0.2526875436306, 0.656333863735199, 0.8794186115264893, 0.4562942385673523, 0.08229546993970871, 0.3160382807254791, -1.1056239604949951, 1.1526269912719727, -0.08268583565950394, 0.08989796042442322, 0.399337500333786, -1.111407995223999, 1.1487698554992676, 0.7649...
def recalc _ transform ( self, dims ) : x _ lo, x _ hi = self. bbox. t [ 0 ]. min ( ), self. bbox. t [ 0 ]. max ( ) y _ lo, y _ hi = self. bbox. t [ 1 ]. min ( ), self. bbox. t [ 1 ]. max ( ) wd, ht = dims [ : 2 ] x _ pct = ( x _ hi - x _ lo ) / wd y _ pct = ( y _ hi - y _ lo ) / ht self. plot _ tr. set _ plot _ scalin...
[ 0.3186851739883423, -0.10403665155172348, 0.4774657189846039, -0.9013581871986389, -0.3363187313079834, -0.2321598082780838, 0.10469231754541397, 0.14893054962158203, -0.5288395285606384, 0.06188983842730522, -0.07712002843618393, 0.3792450726032257, 0.4974254369735718, -0.1700685769319534...
def adjustresiduesupply ( self, lotarget, loprice, lofract, hitarget, hiprice, hifract, target ) : _ logger. info ( " adjust residue supply curves for % s ( % s, % s : % s @ % s, % s : % s @ % s ) " % \ ( self. name, target, lotarget, lofract, loprice, hitarget, hifract, hiprice ) ) # create modified version of resbio ...
[ -0.3803311288356781, -0.6595976948738098, 0.7464800477027893, -0.675732433795929, 0.2538270652294159, -0.23629695177078247, 0.04173404723405838, -0.11491560190916061, -0.015900129452347755, 0.33303067088127136, 0.4515412449836731, 0.2387993484735489, 0.2518981099128723, -0.5053122043609619...
def keys ( ) : assert _ profile ( ) return settings. allkeys ( )
[ -0.48172420263290405, 0.6343867778778076, 0.31099364161491394, 1.3331884145736694, 0.33223938941955566, -0.49536800384521484, 0.08610204607248306, -1.124464750289917, 0.07395782321691513, 0.6196049451828003, -0.7676314115524292, 0.0674080178141594, -0.5228073596954346, -0.22957944869995117...
def read _ imgs _ from _ list ( file _ list, folder ='' ) : if not folder : return [ cv2. cvtcolor ( cv2. imread ( img _ file ), cv2. color _ bgr2rgb ) for img _ file in file _ list ] return [ cv2. cvtcolor ( cv2. imread ('{ } / { } '. format ( folder, img _ file ) ), cv2. color _ bgr2rgb ) for img _ file in file _ lis...
[ -0.1945420354604721, -0.41764795780181885, 0.5517653822898865, 0.623112678527832, 0.4574735164642334, 0.323668897151947, -0.02053259126842022, 1.2850465774536133, -0.24089519679546356, 1.0952483415603638, 0.24430833756923676, 0.23726095259189606, 0.3121737539768219, 1.830535650253296, -0...
def _ _ init _ _ ( self, direction ) : self. name ='character move request'self. direction = direction
[ -0.48983892798423767, -1.0329363346099854, 0.4585697054862976, -0.3245213031768799, -0.680185079574585, 0.16089998185634613, -0.9763737916946411, -0.2719850540161133, 0.21875928342342377, -0.4076760709285736, -0.588018000125885, 0.6035422682762146, 0.22645194828510284, 0.13933107256889343,...
def step ( self, by _ type = true ) : if by _ type : for agent _ class in self. agents _ by _ type : self. step _ type ( agent _ class ) self. steps + = 1 self. time + = 1 else : super. step ( )
[ -0.810375988483429, -0.04178828373551369, 0.5257797241210938, 1.40127694606781, 0.5738909244537354, -0.3880593180656433, 0.6433467268943787, 0.10690514743328094, -0.5224536061286926, -0.2862546443939209, -0.8676732182502747, -0.20282573997974396, 0.24392257630825043, 1.865278720855713, 0...
def pretty _ td ( td : datetime. timedelta ) - > str : hours, seconds = divmod ( td. seconds, 3600 ) minutes, seconds = divmod ( seconds, 60 ) weeks, days = divmod ( td. days, 7 ) display ='' parts = {'w': weeks,'d': days,'h': hours,'m': minutes,'s': seconds } display =''. join ( str ( parts [ i ] ) + i for i in parts ...
[ -0.41060325503349304, 0.5531808733940125, 0.8022146224975586, -1.1218268871307373, -1.3515509366989136, -0.19700540602207184, -0.12393943965435028, -1.6434563398361206, 0.3643828332424164, 0.615028977394104, 1.133562684059143, -0.09096980839967728, 1.037601113319397, 0.22818273305892944, ...
def instance _ info _ cache _ get ( context, instance _ uuid ) : return impl. instance _ info _ cache _ get ( context, instance _ uuid )
[ -0.8914218544960022, -0.18938048183918, 0.3219289481639862, -0.82958984375, -0.5588577389717102, -0.14544129371643066, -0.2507916986942291, -0.20797032117843628, -0.7016473412513733, 0.4553050994873047, 0.053208500146865845, 0.512738049030304, -0.07519473880529404, -1.0751408338546753, -...
def _ _ le _ _ ( self, other ) : if self. num _ classes > other. num _ classes : return none return self. project _ mappings ( other )
[ -0.3453510105609894, 0.06887619197368622, 0.6005170345306396, -0.16115212440490723, 0.06808797270059586, -0.0803648978471756, -0.6853851675987244, -1.3831992149353027, 0.8895033001899719, -0.9845718145370483, 0.4785516560077667, -0.8274134993553162, 0.2168494313955307, -0.3669359087944031,...
def clone ( years, public, languages, exclude, username ) : try : " " " repos for < username > which you have member access " " " member _ repos = github ( github. token ). get _ user ( ). get _ repos ('member') for repo in member _ repos : if username in repo. full _ name and repo. language in languages and exclude no...
[ 0.0664537101984024, 0.4506409764289856, 1.0457673072814941, 0.5497297644615173, -0.5432934761047363, 0.8582867383956909, -0.6659643650054932, -0.6886122226715088, -0.3407019376754761, 0.14492861926555634, -0.5382471084594727, 0.39088723063468933, -0.24769249558448792, 0.11497091501951218, ...
def data2b _ atom ( mol ='', data _ file ='', property ='b ', quiet = 0 ) : b _ dict = atom _ data _ extract ( data _ file ) quiet = int ( quiet ) = = 1 def b _ lookup ( chain, resi, name, id, b ) : def _ lookup ( chain, resi, name, id ) : if resi in b _ dict [ chain ] and isinstance ( b _ dict [ chain ] [ resi ], dict...
[ 0.34001272916793823, -0.6380089521408081, 0.6762723922729492, 0.13109856843948364, 0.23051899671554565, -0.19285544753074646, 0.09737667441368103, -0.025132905691862106, -0.15782581269741058, -0.6335304975509644, -0.3102238178253174, 0.933329701423645, -0.7009164690971375, -0.7921327948570...
def _ _ init _ _ ( self ) : # set up a task dict self. taskdir = os. path. join ( os. environ ['home'],'cli - tasks') self. taskfile = os. path. join ( self. taskdir,'tasks. json') self. taskbackup = ". ". join ( [ self. taskfile,'bkup'] ) if not os. path. exists ( self. taskdir ) : print ( " task dir not found, creati...
[ 0.33269014954566956, 0.2014947533607483, 0.6466192007064819, 0.5222893953323364, 0.30176904797554016, 0.6133800148963928, 0.654568076133728, 0.12881547212600708, -0.7623199820518494, 0.013105283491313457, -0.7474002838134766, -0.638908326625824, 0.48877274990081787, 0.319667786359787, -0...
def get _ head _ commit _ format ( git _ repo : optional [ pathstr ] = none, format : str ='' ) - > str : if not git _ repo : git _ repo = get _ chromium _ src _ path ( ) if not isinstance ( git _ repo, pathlib. path ) : git _ repo = pathlib. path ( git _ repo ) _ assert _ git _ repository ( git _ repo ) return subproc...
[ 0.2545003592967987, 0.1537685990333557, 0.6727917194366455, -0.3283732235431671, -0.33090853691101074, 0.0705157220363617, -0.7053653597831726, -0.5087999105453491, -0.08801982551813126, 0.5776236057281494, 0.8879161477088928, 1.3391146659851074, -0.005820997059345245, 0.4198835790157318, ...
def _ long _ to _ python ( self, v, desc = none ) : return int ( v )
[ -0.4106983542442322, 0.383735328912735, 0.2826956808567047, -1.481658935546875, -0.14363209903240204, -0.42488300800323486, -0.7507349848747253, 0.40394335985183716, 0.717912495136261, -0.043853797018527985, -0.8793163895606995, 0.955948531627655, 0.7071552276611328, 0.12393759936094284, ...
def clear _ streams _ backlog ( self ) : request = request ( method ='post ', endpoint ='/ streams / clearbacklog') def response _ handler ( resp ) : code = resp. status _ code if resp. is _ success : return'ok'elif code = = 403 : raise ex. streampermissionerror ( resp, request ) raise ex. streamconnectionerror ( resp,...
[ 0.3053472936153412, 0.25836095213890076, 0.682228147983551, 0.3867041766643524, -0.12394683808088303, -0.5904638171195984, 0.18519610166549683, -1.1087819337844849, -0.45175379514694214, 1.2398384809494019, 0.1700894981622696, 1.8097184896469116, -1.6964884996414185, -0.5391710996627808, ...
def _ parsefile ( self ) : self. har _ summary ['log _ version'] = self. har _ raw ['log']. get ('version ','unknown') self. har _ summary ['log _ creator _ name'] = self. har _ raw ['log']. get ('creator ', { } ). get ('name ','unknown') self. har _ summary ['log _ creator _ version'] = self. har _ raw ['log']. get ('...
[ -0.1428472399711609, -0.46579697728157043, 0.8590326309204102, -0.8280616998672485, -0.5166600942611694, -0.13904687762260437, -0.4145872890949249, 0.3441058099269867, -0.9638463854789734, 0.02783813513815403, -0.4618595838546753, -0.13741393387317657, 0.8834940791130066, 0.495059221982955...
def from _ server _ var ( self, environ ) : if not environ. get ('remote _ addr') : ip = none for key in ['x _ forwarded _ for ','remote _ addr'] : if environ. get ( key ) and not ip : ips = environ [ key ]. split ( ',') ip = ips [ - 1 ]. strip ( ) # double - check if the address has a valid format if not visitor. re _...
[ 0.2701631486415863, -0.455112099647522, 0.5621075630187988, -0.2790907323360443, 0.038195692002773285, -0.22008469700813293, 0.11294517666101456, 0.514913022518158, -0.42765602469444275, -0.5208925008773804, -0.1543666571378708, 0.5048288702964783, 0.7856419682502747, 0.28286367654800415, ...
def read _ dp ( self, addr, to _ ap = 0 ) : cmd = 0x85 cmd = cmd | to _ ap < < 1 cmd = cmd | ( addr & 0b1100 ) < < 1 cmd = self. _ apply _ dp _ parity ( cmd ) self. write ( cmd. to _ bytes ( 1, byteorder = " little " ) ) status = 0 for i in range ( 3 ) : status + = ord ( self. read _ bit ( ) ) < < i if status = = 1 : r...
[ -0.6431093215942383, 0.43947505950927734, 0.9069129824638367, 0.24315355718135834, -0.8712522387504578, -0.28912484645843506, 0.1427880972623825, -0.19412849843502045, 1.0005738735198975, 0.4269517660140991, 0.798464298248291, -0.3167418837547302, -0.3030855059623718, -0.7045403122901917, ...
def modify ( self, request, nodes, namespace, root _ id, post _ cut, breadcrumb ) : if breadcrumb : return nodes for node in nodes : if node. attr. get ('hidden') : nodes. remove ( node ) return nodes
[ -0.3721148371696472, 0.4336804449558258, 0.483786016702652, -0.02319171465933323, -0.06913711130619049, -0.5986617803573608, 0.08556021004915237, 0.10696238279342651, 0.9391506910324097, 0.7448206543922424, -0.2873380780220032, 0.7706539630889893, -0.369158536195755, 0.5933016538619995, ...
def _ _ init _ _ ( self, in _ depth, out _ depth ) : xav = np. sqrt ( 6. / ( 9 * ( in _ depth + out _ depth ) ) ) self. weights = np. random. uniform ( size = ( 3, 3, in _ depth, out _ depth ), low = - xav, high = xav )
[ 0.19388915598392487, 0.5287739038467407, 0.4218364655971527, -0.45434701442718506, -0.23290954530239105, 0.5392935276031494, -0.2658136487007141, 0.429456889629364, 0.45113664865493774, -0.059180643409490585, -0.03765878081321716, 0.9249333739280701, -0.2336851954460144, 0.0165563896298408...
def remove _ aln _ files ( class _ name ) : file _ l = [ path ( class _ name. path,'blosum62. izone'), path ( class _ name. path,'blosum62 _ a. aln'), path ( class _ name. path,'blosum62 _ b. aln') ] for f in file _ l : if f. exists ( ) : os. unlink ( f )
[ 0.5363202095031738, -1.561131477355957, 0.5736333131790161, 0.24023878574371338, -0.14763909578323364, 0.5384925007820129, 1.263763427734375, 0.30491888523101807, 0.17270441353321075, 0.753426730632782, -0.4904187321662903, -0.5478483438491821, 0.5658748745918274, -0.1742996722459793, 0....
def _ next _ month ( self ) : self. _ canvas. place _ forget ( ) year, month = self. _ date. year, self. _ date. month self. _ date = self. _ date + self. timedelta ( days = calendar. monthrange ( year, month ) [ 1 ] + 1 ) self. _ date = self. datetime ( self. _ date. year, self. _ date. month, 1 ) self. _ build _ cale...
[ 0.3785037398338318, -0.11011305451393127, 0.28404268622398376, -0.10645107179880142, -0.519517183303833, 0.6498121619224548, 0.4305592179298401, -0.20595897734165192, 0.6012669205665588, -1.036012887954712, 0.08630535751581192, 0.8195158243179321, 0.1290404498577118, -0.21381424367427826, ...
def build _ test _ ir ( opts, ) - > tuple [ popxl. ir, tuple [ popxl. hosttodevicestream ], popxl. devicetohoststream, ] : ir = popxl. ir ( ) ir. num _ host _ transfers = 1 ir. replication _ factor = opts. replication _ factor with ir. main _ graph, popxl. in _ sequence ( ) : # host load input and labels img _ stream =...
[ -0.31977811455726624, -0.15450233221054077, 0.5290848612785339, -0.3111613988876343, -0.6501970887184143, 0.07485778629779816, 1.217287540435791, -0.13303007185459137, -0.5191383361816406, -0.003770863637328148, 0.5011534094810486, 0.04910683631896973, -0.36083731055259705, -0.581653058528...
def check _ state ( left, right, boat ) : if numt ( left ) > nump ( left ) and nump ( left ) > 0 : return - 1 if numt ( right ) > nump ( right ) and nump ( right ) > 0 : return - 1 if numt ( right ) - nump ( right ) > 2 : # unsolvable! return - 1 if len ( left ) = = 0 and len ( boat. contents ) = = 0 : print " found a ...
[ -0.7667026519775391, -0.18196667730808258, 0.7855295538902283, -0.28770700097084045, -0.07766474783420563, 0.26820796728134155, -0.018032483756542206, -0.4047519266605377, -0.3255218267440796, -0.23112067580223083, 0.26515230536460876, -0.10876961797475815, -0.706396758556366, 1.0707217454...
def _ create _ routing _ slip _ refund _ file ( cls ) : # pylint : disable = too - many - locals, too - many - statements cls. ap _ type = ejvfiletype. refund routing _ slips : list [ routingslipmodel ] = db. session. query ( routingslipmodel ) \. filter ( routingslipmodel. status = = routingslipstatus. refund _ author...
[ -0.24898260831832886, -0.2988255023956299, 0.8543651103973389, -0.7415865063667297, 0.7578508257865906, -0.042588718235492706, 0.4435003995895386, -0.14188866317272186, 0.37734532356262207, 0.43273165822029114, 0.6864986419677734, -0.9436554312705994, 0.9324719905853271, 0.3184544444084167...
def date ( self, date ) : if ( self. local _ vars _ configuration. client _ side _ validation and date is not none and not re. search ( r'yyyy - mm - dd hh : mm : ss ', date ) ) : # noqa : e501 raise valueerror ( r " invalid value for ` date `, must be a follow pattern or equal to ` / yyyy - mm - dd hh : mm : ss / ` " ...
[ 0.09843508899211884, 0.493592768907547, 0.24239948391914368, 0.14389798045158386, -0.05072148144245148, 1.217132806777954, 0.2850285470485687, -0.21689563989639282, -0.3951433002948761, -0.31508880853652954, -0.6912664771080017, 0.06709690392017365, 0.20417265594005585, 0.8329480886459351,...
def drop _ missing _ data ( df _ reviews ) : print ( " dropping missing data \ n " ) df _ reviews = df _ reviews [ np. isfinite ( df _ reviews ['stars'] ) ] df _ reviews = df _ reviews [ np. isfinite ( df _ reviews ['stars'] ) ] df _ reviews = df _ reviews. dropna ( ) df _ reviews = df _ reviews. reset _ index ( drop =...
[ -1.1239832639694214, -0.06661418080329895, 0.49877384305000305, -0.7004417181015015, 0.08596569299697876, 0.9678257703781128, -0.816865861415863, 0.36303582787513733, -0.5726826786994934, 0.39767518639564514, 0.5562559366226196, 0.6705923080444336, -0.23022176325321198, -0.0145939700305461...
def get _ formatted _ conditional _ desc ( self ) : conditional _ paramlist = " " # get conditional parameter inp = toolinput ( self. tool _ inp _ desc [ " test _ param " ], self. wf _ param _ values, self. wf _ steps, self. level, should _ be _ there = true, force _ default = true, ) conditional _ paramlist = inp. get...
[ 0.9021706581115723, -0.9947078227996826, 0.4977269172668457, 0.031247489154338837, 0.15494875609874725, 0.3111116290092468, 0.12774743139743805, -0.07501503825187683, -1.3431051969528198, 0.6715440154075623, 0.5318929553031921, 0.7530508041381836, -0.018802830949425697, 1.0715782642364502,...
def show _ trailer ( self ) : webbrowser. open ( self. trailer _ youtube _ url )
[ 0.14244942367076874, -0.4544159471988678, 0.1798582524061203, -0.39426758885383606, 0.09497952461242676, 0.0965753048658371, 0.5503526329994202, 1.173095941543579, 0.17862559854984283, -0.19600744545459747, 0.04903123527765274, 1.3818882703781128, 0.5147859454154968, 0.23130980134010315, ...
def _ numba _ sampen ( self, x, mm = 2, r = 0. 2 ) : n = x. size n1 = n - 1 mm + = 1 mm _ dbld = 2 * mm # define threshold r * = x. std ( ) # initialize the lists run = [ 0 ] * n run1 = run [ : ] r1 = [ 0 ] * ( n * mm _ dbld ) a = [ 0 ] * mm b = a [ : ] p = a [ : ] for i in range ( n1 ) : nj = n1 - i for jj in range ( ...
[ 0.27552634477615356, -0.1173895001411438, 0.8892279267311096, -0.05993158370256424, -1.5372906923294067, -0.17436234652996063, 0.6286296844482422, 0.0322551392018795, 0.6520591378211975, 1.1864964962005615, -0.36653175950050354, 0.4334208369255066, -0.8781053423881531, 0.084909588098526, ...
def gettime ( ) : return time. strftime ( " % d. % m. % y - % h : % m : % s ", time. localtime ( ) )
[ 0.22178640961647034, -0.8366295099258423, 0.8831008672714233, -0.32578831911087036, 0.4471253454685211, 0.08640170097351074, -1.0549125671386719, -0.08793312311172485, -0.8691803216934204, 1.0974416732788086, -0.24336116015911102, -0.12057763338088989, -0.008784199133515358, -0.43306869268...
def test _ cant _ create _ branch _ invalid _ request ( self ) : json _ response = api _ call ( self, " post ",'/ branch / create ', none, 200 ) self. assertequal ( json _ response, none ) res = self. client. post ('/ branch / create') self. assertequal ( res. status _ code, 200 ) res = self. client. post ('/ branch / ...
[ -0.2312597781419754, 0.671405017375946, 0.8885529041290283, 0.7657326459884644, 0.9744226336479187, 1.301365613937378, -0.02048404887318611, -0.395713746547699, -0.5423822999000549, -0.5159521698951721, -0.061307769268751144, 0.11355002224445343, -0.5060633420944214, 0.9595556259155273, ...
def _ _ len _ _ ( self ) : return len ( self. list _ sample )
[ 0.16390128433704376, -0.49548158049583435, 0.3367626965045929, -1.0925328731536865, -0.12736763060092926, 0.3452656865119934, -0.03363239765167236, 1.3667770624160767, 1.1356589794158936, -0.4178391396999359, -1.383319616317749, -0.23732611536979675, 0.2040998339653015, 0.3785495162010193,...
def test _ nodegroup _ create _ with _ labels ( self ) : expected _ args = self. _ default _ args expected _ args ['labels'] = {'arg1':'value1 ','arg2':'value2'} arglist = ['- - labels ','arg1 = value1 ','- - labels ','arg2 = value2 ', self. nodegroup. cluster _ id, self. nodegroup. name ] verifylist = [ ('labels ', ['...
[ -0.3167012631893158, 0.4126148223876953, 0.22991546988487244, -0.946668803691864, 0.9559358358383179, 0.30610164999961853, -0.7713935375213623, -0.6211472153663635, -1.4394805431365967, 0.06357359141111374, 0.26843008399009705, -0.35302823781967163, -0.3943224251270294, 0.6633544564247131,...
def test _ get _ media _ group _ other _ site ( self ) : media _ group _ partner = mediapartner. objects. get ( id = 402 ) self. login ( media _ group _ partner. email ) response = self. client. get ('/ media - partner /') self. assertequal ( response. status _ code, 302 )
[ -0.5848074555397034, 0.8200353384017944, 0.39831551909446716, -0.18260659277439117, -0.6426447033882141, 0.06295689195394516, 0.9088537096977234, -0.2988806366920471, 0.2742610573768616, -0.5601184964179993, -0.23884627223014832, 0.593173623085022, -0.7233957648277283, 0.4702722132205963, ...
def positionnementdansleftp ( ftp, chemin ) : l = differenceentrechemins ( chemin, ftp. pwd ( ) ) if l : if l [ 0 ] = ='*': redirigevers ( ftp, chemin ) else : for i in l : try : ftp. cwd ( i ) except ftplib. error _ perm : redirigevers ( ftp, chemin )
[ -0.20097346603870392, -0.37228283286094666, 0.38378801941871643, -0.4635189175605774, 0.043954335153102875, 0.8166040182113647, -0.20878656208515167, 0.3786381185054779, -0.06798186898231506, -0.10051939636468887, 0.6138085126876831, -0.4408835470676422, -0.7318562269210815, 0.600064575672...
def test _ project _ view ( self ) : target = project. objects. create ( name ='test project ', slug ='test _ project') for i in range ( 5 ) : sprint. objects. create ( project = target, deadline = datetime. now ( ), number = i ) response = self. client. get ('/ backlog / project / % d /'% target. id ) self. failunless...
[ -0.1335040181875229, 0.9514122009277344, 0.5154107213020325, -0.2992050349712372, 0.6478224396705627, 0.6396848559379578, -0.11821188032627106, -0.31270909309387207, -0.4549112915992737, -0.8442269563674927, 0.24379988014698029, 0.008019180037081242, -0.14721593260765076, -0.19484511017799...
def assert _ approx _ equal ( self, * args, * * kwargs ) : return assert _ approx _ equal ( * args, * * kwargs )
[ -0.47950008511543274, -0.5631974339485168, 0.5757588744163513, 0.2192019373178482, 0.5175115466117859, 1.129284143447876, 0.6425433158874512, -0.5413466691970825, -0.528168797492981, 0.2578047513961792, -0.7188940048217773, 0.6149106621742249, -1.1446001529693604, 0.7932150363922119, -0....
def tweak _ limits ( self, lo, hi ) : spread = hi - lo margin _ pct = self. settings. get ('tweak _ lim _ pct ', 0. 05 ) lo - = spread * margin _ pct hi + = spread * margin _ pct return lo, hi
[ 1.0533193349838257, -0.3318295478820801, 0.40104490518569946, -0.381829172372818, -0.06541480123996735, 0.7352199554443359, 0.22921298444271088, 0.04310804232954979, 0.4323395788669586, -0.2912592589855194, 0.3063909411430359, 0.7493953108787537, -0.13914862275123596, -0.6967549324035645, ...
def get _ node _ loss ( self, inputs, outputs ) : losses = attrdict ( ) tree = outputs. tree # weight of the loss kl _ weights = weights = 1 if self. _ hp. equal _ weight _ layer : top = 2 * * ( self. _ hp. hierarchy _ levels - 1 ) # for each layer, divide the weight by the number of elements in the layer weights = np....
[ -0.48297104239463806, -0.3037441074848175, 0.5202016830444336, -0.06434434652328491, 0.056826673448085785, -0.8212982416152954, 0.12039784342050552, 0.25379323959350586, -1.1902815103530884, -0.12822271883487701, 0.17650818824768066, 0.04912226274609566, -0.37808161973953247, 0.75144761800...
def teleopperiodic ( self ) : # read joystick buttons button _ a = self. stick1. getrawbutton ( 2 ) button _ b = self. stick1. getrawbutton ( 3 ) button _ x = self. stick1. getrawbutton ( 1 ) button _ rt = self. stick1. getrawbutton ( 8 ) button _ lt = self. stick1. getrawbutton ( 7 ) button _ lb = self. stick1. getraw...
[ -0.00803281832486391, -0.7465535998344421, 0.7459632158279419, 0.1878322809934616, -0.19525134563446045, 0.09956158697605133, 0.18966072797775269, 0.10538553446531296, -0.43479883670806885, -0.07720571011304855, 0.2965525984764099, -0.822881281375885, -0.07846761494874954, 0.08082082867622...
def generate _ ballot ( n _ alternatives ) : return random. sample ( list ( range ( n _ alternatives ) ), n _ alternatives )
[ -0.5467857718467712, 0.09351907670497894, 0.38357025384902954, -0.6143955588340759, -0.47883179783821106, 1.2284653186798096, -1.627483606338501, -0.3908073604106903, 0.11474288254976273, 0.5008962750434875, -0.7033004760742188, -0.09258497506380081, 0.36327463388442993, 0.4269434213638305...
def compute _ calendartsfeatures ( s3 _ args : s3args, args : calendartsfeaturesargs ) : sagemaker _ response = run _ sagemaker ( url = s3 _ args. s3 _ url, dest _ url = s3 _ args. s3 _ dest _ url, output _ name = f'calendar - features. csv ', script ='calendar / make _ holidays. py ', arguments = parse _ args ( args )...
[ 0.023379573598504066, -0.09301269054412842, 0.5772514939308167, 0.02915077470242977, 0.06332586705684662, 0.3399304151535034, -0.47171854972839355, 0.9167051911354065, 0.3170441687107086, 0.27287280559539795, -0.06717369705438614, 0.17175552248954773, 0.685969352722168, -0.8062760829925537...
def daily _ recurrence _ time ( self ) - > pulumi. input [ str ] : return pulumi. get ( self, " daily _ recurrence _ time " )
[ 0.16701281070709229, 0.3289322555065155, 0.49088624119758606, 0.5475631356239319, 1.0371068716049194, 0.5344765782356262, 0.3526328504085541, -0.1329304426908493, 0.1268801987171173, -0.19695384800434113, 0.21710386872291565, 0.5660390853881836, 0.24078872799873352, -0.808444082736969, -...
def guess _ encoding ( data ) : successful _ encoding = none # we make'utf - 8'the first encoding encodings = ['utf - 8'] # # next we add anything we can learn from the locale try : encodings. append ( locale. nl _ langinfo ( locale. codeset ) ) except attributeerror : pass try : encodings. append ( locale. getlocale (...
[ -0.10828565806150436, 0.18483737111091614, 0.49934571981430054, 0.6470159888267517, -0.17189504206180573, -0.33342599868774414, -0.14937850832939148, 0.11671621352434158, -0.06700319051742554, -0.6504149436950684, 0.4277054965496063, -0.5287742614746094, -0.5168604850769043, 0.254740476608...
def exercise2 ( ) : sim = system _ init ( ) # add muscle activations to the simulation # here you can define your muscle activation vectors # that are time dependent # act1 = np. ones ( ( len ( sim. time ), 1 ) ) * 0. 05 # act2 = np. ones ( ( len ( sim. time ), 1 ) ) * 0. 05 a = 0. 95 act1 = 0. 05 + np. absolute ( np. ...
[ 0.7608897686004639, 0.11691943556070328, 1.121516227722168, 0.0854504257440567, -0.06551938503980637, -0.26683682203292847, 1.108561396598816, -0.40782976150512695, 0.6889495253562927, -0.13166339695453644, -0.05134487897157669, 1.009170651435852, 0.4910075068473816, -0.3171067237854004, ...
def set _ style ( self, name, value ) : self. document. set _ style ( 0, len ( self. document. text ), { name : value } )
[ -0.0827399343252182, -0.14630529284477234, 0.16920965909957886, -0.8706799149513245, -1.1794761419296265, -0.0764024555683136, -1.1028306484222412, -0.40206170082092285, -0.2366095334291458, 1.377333164215088, -0.5011512041091919, 0.16442997753620148, -0.7733858227729797, -0.11712563037872...
def upload _ to _ gsheet ( results, config, exp = none, upload _ source _ metrics = false ) : credentials _ path = os. getenv ('path _ to _ google _ credentials ', none ) if not credentials _ path : logging. info ('path _ to _ google _ credentials not set, cannot proceed.') return none gc = init _ gsheet ( credentials ...
[ -0.017712054774165154, 0.9578181505203247, 0.610724687576294, -0.7015031576156616, 0.5057966709136963, 0.42473700642585754, 0.19458630681037903, -0.903417706489563, -0.16547663509845734, 0.8249558210372925, 0.23560741543769836, -0.0061637177132070065, -0.26379549503326416, 0.54291886091232...
def test _ calc _ stats ( ) : observed _ mean, observed _ std = calc _ stats ( [ 2, 2, 4, 5 ] ) assert round _ two _ dec ( observed _ mean ) = = 3. 25 assert round _ two _ dec ( observed _ std ) = = 1. 3
[ 0.48265382647514343, 0.5478285551071167, 0.353447288274765, 0.23662467300891876, 0.5548872351646423, 0.42245540022850037, 0.9323489665985107, -0.9971529841423035, -0.05953723192214966, -0.40644699335098267, -0.6928330063819885, 0.06875752657651901, 0.6605587601661682, 0.5414723753929138, ...
def virtual _ interface _ delete ( context, vif _ id ) : return impl. virtual _ interface _ delete ( context, vif _ id )
[ 0.2044367492198944, -0.7772847414016724, 0.16677361726760864, 0.7049422860145569, -0.31324905157089233, -0.7261204123497009, 0.6534618139266968, 0.2987823486328125, 0.984610378742218, 0.829258382320404, -0.6552352905273438, 0.047535404562950134, -1.593005657196045, -0.7470324039459229, -...
def search ( self, e ) : if not self. library. loaded : self. load _ library ( ) filtered _ packages = self. package _ filter _ list. getstrings ( ) packages = [ filtered _ packages [ i ] for i in self. package _ filter _ list. getselections ( ) ] filtered _ manufacturers = self. manufacturer _ filter _ list. getstring...
[ -0.2708989679813385, 0.0413363054394722, 0.5526441931724548, -0.17338678240776062, 0.47004956007003784, 0.2067061811685562, -0.15018503367900848, -0.19163450598716736, -0.1164172887802124, -0.3509693741798401, 0.10315550118684769, 0.13545534014701843, -0.9910447001457214, 0.535515367984771...
def copy _ model _ instance ( obj ) : initial = dict ( [ ( f. name, getattr ( obj, f. name ) ) for f in obj. _ meta. fields if not isinstance ( f, autofield ) and not f in obj. _ meta. parents. values ( ) ] ) return obj. _ _ class _ _ ( * * initial )
[ -0.600309431552887, -0.593767523765564, 0.47401702404022217, -0.18144895136356354, -1.4591929912567139, 1.1580533981323242, 0.8799102902412415, -0.5594354867935181, -0.4179609417915344, 0.3660270869731903, -1.16548490524292, -0.25015610456466675, 0.18961024284362793, -0.6194143295288086, ...
def display _ class _ report ( selection ) : global analysis _ path if selection is none : style _ sel = { " padding - top " : " 25 % ", " margin " : " auto ", " width " : " 20 % " } rep _ children = none style _ rep = { " display " : " none " } else : style _ sel = { " width " : " 20 % " } rep _ children = generate _ ...
[ -0.2910044491291046, 0.03641248494386673, 0.5374833941459656, -0.21375881135463715, -0.07451733201742172, -0.1664806753396988, 1.5532292127609253, 0.2531398832798004, 0.3962334096431732, 0.0980781838297844, 0.15895846486091614, -0.07486250251531601, 0.11156054586172104, 0.2919674813747406,...
def push ( self, x ) : p = self. _ queue p. append ( x )
[ -0.22760149836540222, 0.7895119786262512, 0.33850425481796265, -0.39079993963241577, -0.3525088131427765, 1.193392038345337, -1.4480276107788086, -0.8254591822624207, 0.22241517901420593, 0.3077261447906494, -1.36354660987854, 1.4348516464233398, 0.004554408136755228, -0.04749305546283722,...
def _ read _ day ( self, bfp, lastpx = none ) : day = none tcol = [ ] bcols = [ ] ecols = [ ] parse _ ext = true first _ tick = true ticks = 0 while true : l = bfp. readline ( ). decode ( ) if len ( l ) > 20 : # some minimum size utc, basic, ext = self. _ parse _ line ( l, parse _ ext = parse _ ext ) if basic is none :...
[ -0.5855655670166016, -0.2573634684085846, 0.896763801574707, 0.08437091112136841, 0.3498227894306183, 0.18182633817195892, 0.41251567006111145, -0.6624314785003662, -0.49330222606658936, 0.6887291073799133, 0.7771893739700317, -0.32534700632095337, -0.6536498069763184, 0.31419211626052856,...
def revert ( self, snapshot _ name ) : self. _ execute ('lvconvert ','- - merge ', snapshot _ name, root _ helper = self. _ root _ helper, run _ as _ root = true )
[ -0.24437043070793152, 0.4801066219806671, 0.7039076089859009, -0.3390185534954071, -0.3119012415409088, -0.202475905418396, -0.23924832046031952, 0.8896592259407043, 0.17923371493816376, -1.0350459814071655, -0.575969398021698, 0.07912381738424301, -0.8860511779785156, -0.09446243196725845...
def json _ random _ quote ( request ) : quotes = quote. objects. filter ( approved = true ) if'speaker'in request. get : quotes = quotes. filter ( speaker = request. get ['speaker'] ) if'year'in request. get : quotes = quotes. filter ( date _ _ year = int ( request. get ['year'] ) ) if'month'in request. get : quotes = ...
[ -1.3878092765808105, -0.6648187637329102, 0.9307748079299927, 0.012581907212734222, -0.7372446656227112, -0.01633305847644806, -0.36732104420661926, -0.7740735411643982, 0.4358058571815491, 0.7318373322486877, 0.6505313515663147, -0.007891674526035786, -0.27759280800819397, 0.8500052690505...
def maximum _ capture _ duration ( self ) - > optional [ pulumi. input [ int ] ] : return pulumi. get ( self, " maximum _ capture _ duration " )
[ 0.08718216419219971, -0.3581019341945648, 0.39967775344848633, 1.500815510749817, 0.7018704414367676, 1.4312552213668823, -0.4959733486175537, -0.2896811366081238, 1.412634015083313, 0.34201326966285706, -0.20999209582805634, 0.5192838907241821, 0.7324837446212769, -0.6145017743110657, -...
def type ( self ) - > optional [ pulumi. input [ str ] ] : return pulumi. get ( self, " type " )
[ 0.8103295564651489, 0.5675862431526184, 0.3442249298095703, 0.488986611366272, 1.547010064125061, 1.2760064601898193, 0.22838342189788818, -0.6121605634689331, 1.0448805093765259, -0.04402422532439232, 0.3382732570171356, 0.9727432727813721, -0.3952687382698059, -1.0635545253753662, -0.2...
def scale _ image ( tables, v _ segments, h _ segments, factors ) : scaling _ factor _ x, scaling _ factor _ y, img _ y = factors tables _ new = { } for k in tables. keys ( ) : x1, y1, x2, y2 = k x1 = scale ( x1, scaling _ factor _ x ) y1 = scale ( abs ( translate ( - img _ y, y1 ) ), scaling _ factor _ y ) x2 = scale ...
[ -0.7167569994926453, -0.08631797879934311, 0.9816924333572388, -0.5716115236282349, -0.18183480203151703, 0.2384091019630432, -0.3606339991092682, 0.014353292994201183, -1.0656096935272217, 1.3360592126846313, -0.16677607595920563, -1.0434565544128418, 0.3075001537799835, 0.216568052768707...
def sum _ numbers ( list _ of _ numbers ) : sum _ score = 0 for number in list _ of _ numbers : sum _ score + = number return sum _ score
[ -0.18548022210597992, -0.436788409948349, 0.44806990027427673, 0.7382462620735168, 1.4128671884536743, 0.21103066205978394, -0.2900713384151459, 0.7468373775482178, 1.1659715175628662, 0.34062814712524414, -1.1637263298034668, -0.9250327348709106, 0.2784069776535034, 0.872687578201294, -...
def set _ default _ config ( modules, params = { }, yaml = none, filename = none, config = none, validate = true ) : # get the configuration from the file, or from params ['config'] file _ config = { } if yaml is none and filename is none and config is none : if'config'in params and params ['config'] is not none : file...
[ -0.2288818657398224, -0.15922684967517853, 0.5402113795280457, 0.4430560767650604, 0.6818388104438782, -0.6689764261245728, -0.1410156637430191, 0.9639506340026855, -0.2392568141222, 0.1895894706249237, -0.2415296882390976, -0.24379003047943115, -0.29647719860076904, 1.224491834640503, 0...