text
stringlengths
25
2.19k
embedding
listlengths
768
768
def _ getlandlordlayersize ( self, layerindex : int, domain _ log : typing. optional [ int ] = none ) - > int : if domain _ log is none : domain _ log = self. domain _ log for i in range ( layerindex + 1 ) : assert ( domain _ log > = self. program _ cache _ line _ size _ log ) domain _ log - = self. program _ cache _ l...
[ 0.297810822725296, 0.4534212052822113, 0.5659774541854858, -0.2278980165719986, -0.2902162969112396, 0.2118186354637146, 0.24830152094364166, -0.47285085916519165, 0.1348748654127121, -0.824823796749115, -0.1540500521659851, 1.1089483499526978, -0.24777984619140625, 0.777944803237915, 1....
def generate _ parallel _ light _ mask ( self, mask _ size, position = none, direction = none, max _ brightness = 255, min _ brightness = 0, mode = " gaussian ", linear _ decay _ rate = none, ) : if position is none : pos _ x = random. randint ( 0, mask _ size [ 0 ] ) pos _ y = random. randint ( 0, mask _ size [ 1 ] ) ...
[ -0.034962937235832214, -0.4248596429824829, 1.0857654809951782, 0.20297905802726746, 0.10819415748119354, 0.19435946643352509, 0.10850968211889267, 0.1981055736541748, 0.666134774684906, -0.3936922252178192, -0.29951828718185425, -0.017156168818473816, 0.388710618019104, 0.3714420795440674...
def get _ static _ batch _ size ( layer ) : batch _ input _ shape, _ = get _ input _ shape _ and _ dtype ( layer ) if batch _ input _ shape is not none : return tensor _ shape. dimension ( batch _ input _ shape [ 0 ] ). value return none
[ -0.37154990434646606, 0.3600424528121948, 0.6699718832969666, 0.6670476198196411, -0.5360508561134338, 0.17193245887756348, 0.7174652218818665, -0.628882646560669, -0.17278701066970825, -0.10243947803974152, -1.2893131971359253, 0.5499266982078552, 0.02279043197631836, 0.8790455460548401, ...
def get _ action _ class ( action ) : goal _ msg _ type = rostopic. get _ topic _ type ( " { } / goal ". format ( action ) ) [ 0 ] # verify goal message was found. if not goal _ msg _ type : return none # goal message name is the same as the action message name +'goal '. action _ msg _ type = goal _ msg _ type [ : - 4 ...
[ -0.4701049327850342, -0.4539039731025696, 0.4712713360786438, 0.65113365650177, 0.8086620569229126, -0.3160981833934784, -0.006444571539759636, -1.3695870637893677, 0.26343709230422974, 0.36439070105552673, 0.910994291305542, 1.1277165412902832, 0.11455141752958298, 0.21002675592899323, ...
def keys ( self ) : raise notimplementederror
[ -1.0095603466033936, -0.2311250865459442, 0.37645310163497925, 0.14648623764514923, -0.12814809381961823, 0.39281871914863586, 0.3551987111568451, -0.1562749296426773, -0.0419662781059742, -0.05040161684155464, -0.547812819480896, 0.1897093504667282, 0.1718786060810089, 0.28283271193504333...
def logged _ in ( request ) : request. session. flash ('you are logged in, { }. '. format ( authenticated _ userid ( request ) ),'message _ loggedin') return {'foo':'bar'}
[ 0.22055968642234802, -0.582880437374115, 0.2781417667865753, 0.3078089952468872, -0.1471516489982605, 0.1854751855134964, 0.4610172510147095, -0.4012128412723541, 0.21985368430614471, -0.20213505625724792, -0.8756633400917053, 0.5659598112106323, 0.24431219696998596, -0.021390585228800774,...
def test _ missing _ operator ( self ) : # validate a form with a missing ` ` operator ` ` selection form = self. form _ data ( operator _ 1 = self. staff _ user. pk, role _ 1 = self. project _ role. pk, start _ date _ 1 = " 2020 - 06 - 22 ", end _ date _ 1 = " 2020 - 06 - 27 ", note _ 1 = " ", operator _ 2 = " ", role...
[ -0.6456748843193054, -0.270613431930542, 0.44561767578125, -0.48521438241004944, 0.024802470579743385, 0.3714597821235657, 0.5862717032432556, 0.10021743178367615, -0.5028746128082275, -0.4110790193080902, -0.5443995594978333, -0.3708028197288513, 0.1652429699897766, 0.19505548477172852, ...
def test _ deeptracy _ exception _ holds _ a _ message ( self ) : msg ='custom message'with self. assertraises ( apierror ) as exc : raise apierror ( msg ) self. asserttrue ( msg in exc. exception. message )
[ 0.5402190089225769, 0.8611341118812561, 0.4340178072452545, -0.4520912766456604, 0.7832000255584717, -0.3440605401992798, 0.07573027908802032, 0.2931348979473114, 0.17169688642024994, -0.6763136982917786, 0.12933094799518585, 0.22955450415611267, -0.8385665416717529, 0.08241413533687592, ...
def copyfrom ( self, * args, * * kwargs ) : # real signature unknown pass
[ 0.05652317777276039, -1.0428293943405151, 0.5302791595458984, 1.0796798467636108, -0.1976240873336792, 0.61789870262146, 0.46667346358299255, -0.32818472385406494, -0.05882279947400093, 0.12824305891990662, -0.5975144505500793, 0.2670459747314453, 0.06329606473445892, -0.04520981386303902,...
def validate _ node ( self, node, matcher, image ) : text = self. browser. text ( node ) if isinstance ( matcher, pattern ) : match = matcher. match ( text ) is not none else : match = matcher = = text if not match : return false if image is not none and self. image _ getter ( node )! = image : return false return true
[ -0.7424519062042236, -0.14068756997585297, 0.680717408657074, 0.05908428505063057, -0.422012597322464, -0.06673634052276611, -0.2687845826148987, -0.08349716663360596, 0.3563505709171295, -0.2346082180738449, 0.4823322594165802, -0.10190489888191223, -0.4204893410205841, 0.8355309367179871...
def camera _ height ( self, h ) : self. camheight = h
[ 0.4993317425251007, 0.2522661089897156, 0.24535265564918518, 1.4570457935333252, 0.01498009730130434, 0.7046586871147156, 0.43270769715309143, 0.17137335240840912, -0.15359967947006226, 0.11296629905700684, -1.6180708408355713, 0.49904465675354004, -0.17611590027809143, 0.8635695576667786,...
def compute _ dense ( attrs, inputs, out _ type, target ) : out _ dtype = attrs. out _ dtype out _ dtype = inputs [ 0 ]. dtype if out _ dtype = = " " else out _ dtype if target. device _ name = = " vta " : if inputs [ 0 ]. shape = = 4 : # this implies the layout is packed target = tvm. target. create ( target ) return ...
[ -1.0453091859817505, 0.14237089455127716, 0.5444234609603882, 0.9295822381973267, 0.24147845804691315, -0.5673781037330627, 0.47026312351226807, -0.17578864097595215, 0.5761249661445618, 0.11383166164159775, 0.8654604554176331, 0.25875550508499146, 0.3353506624698639, -0.5804398059844971, ...
def test _ update _ check _ identifies _ update ( fake _ get _ request ) : app = create _ ctfd ( ) with app. app _ context ( ) : app. config [ " update _ check " ] = true fake _ response = mock ( ) fake _ get _ request. return _ value = fake _ response fake _ response. json = lambda : { " resource " : { " download _ ur...
[ 0.0791546106338501, -0.7056258320808411, 0.5071356892585754, 0.4339204728603363, 0.7690726518630981, 0.6006854176521301, -0.3269805312156677, 0.9874627590179443, -0.25900745391845703, 0.03193393722176552, -0.6437471508979797, -0.2306939959526062, -0.029044508934020996, -0.3286290466785431,...
def from _ json ( value ) : if value = = none : return none value = json. loads ( value )
[ -0.13034942746162415, -0.4669290781021118, 0.313953697681427, -0.9271224737167358, -0.8533999919891357, -1.0453530550003052, -0.473643958568573, -0.8782693147659302, 0.6958987712860107, 0.4483901560306549, -0.6660214066505432, 0.4184316098690033, 0.6813011169433594, -0.0553412064909935, ...
def forward ( self, batch _ u, batch _ n, batch _ v _ pad, batch _ v _ mask, batch _ vsp ) : # diff = self. u _ embeddings. weight - self. i _ embeddings. weight emb _ u = self. u _ embeddings ( batch _ u ) # center word [ bs, emb _ dim ] emb _ n = self. u _ embeddings ( batch _ n ) # neighbor word emb _ v = self. v _ ...
[ 0.9528539180755615, -0.10702794045209885, 0.9702690839767456, 1.2497026920318604, -0.23393866419792175, 0.7783506512641907, 0.7480905652046204, 0.5974055528640747, 0.5890556573867798, 0.5111749172210693, -0.17043472826480865, 0.7830404043197632, -0.09334616363048553, 0.06466881185770035, ...
def exchangerows ( m, r1, r2 ) : m [ r1 ], m [ r2 ] = m [ r2 ], m [ r1 ] return m
[ -0.8655539155006409, -0.6383112072944641, 0.48001131415367126, -0.059087593108415604, -0.8859663009643555, -0.1687210202217102, -0.4691713750362396, 0.33516812324523926, -0.14264041185379028, 0.6223397850990295, 1.2946741580963135, 0.8180091977119446, 0.036774761974811554, -0.1924490332603...
def get _ image _ extension ( data ) : if data. startswith ( b'\ x89 \ x50 \ x4e \ x47 \ x0d \ x0a \ x1a \ x0a') : extension _ name ='png'elif data. startswith ( b'\ xff \ xd8') and endswith _ xffxd9 ( data ) : extension _ name ='jpeg'elif data. startswith ( b'\ x47 \ x49 \ x46 \ x38 \ x37 \ x61') or data. startswith (...
[ 0.9110622406005859, 0.5163742899894714, 0.8866869211196899, -0.024742072448134422, -0.875403642654419, -0.37668031454086304, -0.08838110417127609, 0.35005998611450195, 1.1453176736831665, 0.9283437728881836, -0.5758606791496277, 0.25612902641296387, -0.3683111071586609, 0.41810736060142517...
def sf01 ( arr ) : s = arr. shape return arr. swapaxes ( 0, 1 ). reshape ( s [ 0 ] * s [ 1 ], * s [ 2 : ] )
[ 0.41082867980003357, 0.09924930334091187, 0.6124086380004883, 0.7246583104133606, -0.34289565682411194, -0.9038336277008057, 0.2790813148021698, 0.7064816355705261, 1.0266542434692383, 0.04622553661465645, -0.18044139444828033, -0.13914398849010468, 0.7742636203765869, -0.7112509608268738,...
def spell _ by _ name ( intent, session ) : should _ end _ session = true spell _ not _ exists = false # get spell by name if there is value in spell slot if'spell'in intent ['slots'] and'value'in intent ['slots'] ['spell'] : spell _ name = intent ['slots'] ['spell'] ['value'] spell = spell. getspell ( spell _ name ) i...
[ -0.3582262694835663, -0.8118062615394592, 0.5437995791435242, -0.6104297041893005, -0.6236257553100586, -0.5109522938728333, -0.11622560769319534, -0.7063636183738708, 1.2170183658599854, 0.8283587098121643, 0.42925137281417847, -0.36688727140426636, -0.1193755492568016, 0.1356149166822433...
def trigger ( self, actor, action, ev ) : if action not in self. events : raise valueerror ( " trigger expects " + ", ". join ( self. events ) ) # tag the event with modifiers for mod in ('alt ','control ','shift ','meta') : setattr ( ev, mod, getattr ( self, mod ) ) setattr ( ev,'artist ', none ) setattr ( ev,'action ...
[ -0.40767931938171387, -0.25773972272872925, 0.7916592955589294, -0.28305813670158386, -0.2461828887462616, -0.8903926014900208, 0.25916868448257446, 0.40107277035713196, 0.40919390320777893, -0.048589255660772324, -0.7575406432151794, 0.37186193466186523, 0.1866704821586609, -0.37215930223...
def end _ game ( self, game _ id ) : if game _ id in self. games : self. games. pop ( game _ id )
[ 0.27183231711387634, 0.12813511490821838, 0.5174692869186401, -0.8136915564537048, 0.7824111580848694, 0.2861643433570862, -1.8822059631347656, -0.0661165863275528, -0.31320545077323914, 2.0485870838165283, 0.38492485880851746, 0.16751152276992798, -1.6065319776535034, 1.0784010887145996, ...
def startswith ( self, prefix : str ) - > bool : node = self. trie for w in prefix : if w not in node : return false node = node [ w ] return true
[ 0.020258169621229172, 0.3011992573738098, 0.4362199008464813, -0.004804651252925396, -0.42844507098197937, -0.3795025944709778, -0.8567363023757935, 0.2771637439727783, 0.6541976928710938, 0.44414255023002625, -0.3194640278816223, 0.33795249462127686, -0.5126230120658875, 0.441096276044845...
def _ add _ checking _ procedure _ for _ one _ array _ size ( writer, size, arr _ param _ list, type _ str ) : writer. write _ line ('# procedure to check if every'+ type _ str +'array of the same declared size, has indeed same size :') writer. write _ line ('# for arrays of declared size :'+ str ( size ) ) declared _ ...
[ 0.4307142198085785, -0.39745503664016724, 0.9094476103782654, 0.1561335027217865, 0.7568988800048828, -0.15558694303035736, 0.7010418772697449, -0.16914814710617065, 0.4714727997779846, 0.42650696635246277, 0.40832599997520447, 0.852123498916626, -0.04535684362053871, 1.4170501232147217, ...
def pca _ plot ( file : str, options : list ) : if " / protein _ table " in options : with st. beta _ expander ( " pca " ) : df = cached _ file ( file ) cols = [ _ for _ in df. columns if " lfq " in _ ] if len ( cols ) = = 0 : cols = df. columns if multiple _ file _ check ( cols ) : pca = pca ( n _ components = 2 ) com...
[ 0.09651321172714233, 0.10560999810695648, 0.7437939643859863, 0.1679333746433258, -0.26448261737823486, 0.6151202321052551, 1.0604747533798218, 0.5581619739532471, -0.1643584817647934, -0.2561143934726715, 0.6356135010719299, 0.42354342341423035, 0.08783653378486633, -0.17683570086956024, ...
def stations ( ) : session = session ( engine ) results = session. query ( station. name ). all ( ) # unravel results into a 1d array and convert to a list station _ count _ list = list ( np. ravel ( results ) ) session. close ( ) return jsonify ( station _ count _ list )
[ -1.3563510179519653, -0.5205771327018738, 0.32501375675201416, -0.19777794182300568, 0.479911208152771, -0.7883657813072205, -0.3913501501083374, 0.25098922848701477, -0.5502706170082092, 0.7646405100822449, -0.839820921421051, -0.92000412940979, 0.26054227352142334, 0.2889220416545868, ...
def _ get _ inactive _ period ( self ) : period = self. _ get _ period ( ) # might have a list of 2 items try : _, inactive = period except ( typeerror, valueerror ) : inactive = period return float ( inactive )
[ -0.8080316781997681, -0.5421586036682129, 0.3824145793914795, 0.2791050672531128, 0.2196308970451355, -0.16832362115383148, -0.22081388533115387, -0.672528088092804, 0.2319301962852478, -0.1499437838792801, 0.41666215658187866, 0.5438862442970276, -1.100145697593689, 0.033558525145053864, ...
def name ( self ) : return self. _ get ( " _ _ name " )
[ -0.7263143062591553, -0.4444239139556885, 0.4599573314189911, -0.02902776002883911, -0.18093803524971008, 0.2731115520000458, 0.3606405258178711, -0.970569908618927, -0.03327687084674835, 0.20740215480327606, -0.34818342328071594, 0.5891588926315308, 0.8800702691078186, -0.2078322917222976...
def setup ( self ) : super ( ). setup ( ) self. url = " https : / / jira " self. set _ source _ parameter ( " story _ points _ field ", " field " ) self. set _ source _ parameter ( " manual _ test _ execution _ frequency _ field ", " desired _ test _ frequency " ) self. set _ source _ parameter ( " manual _ test _ dura...
[ 0.146528959274292, 0.8064006567001343, 0.39124324917793274, 0.1720089614391327, 0.8760886192321777, 0.1638672947883606, 0.5582810044288635, -0.08211000263690948, -0.4944394826889038, -0.07222684472799301, -0.6977004408836365, -0.08359578251838684, 0.12171152979135513, 0.8517522811889648, ...
def test _ find _ series _ wildcard ( self ) : nodes = [ node. name for node in self. finder. find _ nodes ( query ('*') ) ] self. asserttrue ( self. metric _ prefix in nodes, msg = " node list does not contain prefix'% s'- % s " % ( self. metric _ prefix, nodes ) )
[ 0.6684694290161133, 1.207515001296997, 0.5569689869880676, -0.2797057330608368, 0.37440577149391174, 0.6607592105865479, 0.03291742503643036, -0.3867734968662262, -0.21115510165691376, 0.11339414119720459, 0.2636518180370331, 0.8530938029289246, 0.0986020416021347, 0.5036041736602783, -1...
def lmax ( l, normalized = true ) : if normalized : return 2 else : return scipy. sparse. linalg. eigsh ( l, k = 1, which ='lm ', return _ eigenvectors = false ) [ 0 ]
[ -0.0048186215572059155, 0.4034568667411804, 0.6830855011940002, 0.5693060159683228, -0.28244543075561523, 0.21674758195877075, -1.1437573432922363, 0.9498757719993591, 1.0886415243148804, 0.3665628135204315, 0.33985087275505066, -0.7868033051490784, 0.35630935430526733, 0.5103365778923035,...
def receive _ message ( self, message, data ) : if data [ message _ type ] = = type _ status : self. _ process _ status ( data. get ('data') ) return true return false
[ -0.32706478238105774, 0.25175559520721436, 0.7727652788162231, -0.2245180308818817, 0.446906715631485, 0.33888307213783264, -1.3721649646759033, 0.18766625225543976, -0.7344565391540527, 0.061778631061315536, -0.10339458286762238, 0.20222705602645874, -0.8663830161094666, 0.246704235672950...
def sigma _ clipping ( lcs _ gd, sig _ clip = 2, iters = 10 ) : # - - print status. tstart = start ( " sigma clipping. " ) tmsk = lcs _ gd. mask. copy ( ) for _ in range ( iters ) : avg = lcs _ gd. mean ( 0 ) sig = lcs _ gd. std ( 0 ) lcs _ gd. mask = np. abs ( lcs _ gd - avg ) > sig _ clip * sig lcs _ gd. mask = tmsk ...
[ -0.35582810640335083, -0.14273975789546967, 0.4314204454421997, 0.21369783580303192, -0.565464973449707, 0.5009409189224243, 0.0452483668923378, -0.7323086261749268, -0.052191149443387985, 1.327815294265747, 0.3375670909881592, 0.9531996250152588, 0.644357442855835, 0.7281123995780945, 0...
def _ save _ displays ( self, build _ dir ='' ) : # create all subdisplays for stands list ( map ( lambda x : x. _ save _ displays ( build _ dir = build _ dir ), self. stands ) ) # create stand displays super ( hxrayhome, self ). _ save _ displays ( build _ dir = build _ dir )
[ 0.2011624276638031, 0.11950928717851639, 0.39735865592956543, 1.2673710584640503, 0.2652902603149414, 1.1012706756591797, 1.1137970685958862, -0.6386000514030457, 0.037379514425992966, -0.5078825950622559, -0.7879742980003357, -0.5325486660003662, 0.032677698880434036, 1.1456992626190186, ...
def dispatch ( self, event : union [ str, callable ], payload : dict = { } ) - > none : # get dispatcher method for this event dispatch _ method, params = self. _ get _ dispatcher ( event, payload, is _ async = false ) # dispatch this event dispatch _ method ( * params )
[ -0.10584403574466705, 0.5110442042350769, 0.5011709332466125, 0.7779697775840759, 0.21404123306274414, -0.24557769298553467, -0.575579822063446, 0.3081892728805542, 0.030467569828033447, -0.2859073579311371, -0.48364752531051636, 0.1760675311088562, 0.8821610808372498, 1.1411314010620117, ...
def index ( ) : if'uid'in session : return redirect ( url _ for ('project _ home') ) else : return render _ template ( get _ template _ path ('login') )
[ -0.6355833411216736, 0.39282315969467163, 0.37374332547187805, 0.87405925989151, 0.21868273615837097, 0.35762137174606323, 0.5539759397506714, 0.43090373277664185, 1.1905680894851685, -0.37253236770629883, 0.941886842250824, 0.21740856766700745, 0.06643837690353394, -0.4636164605617523, ...
def encode _ output ( y _ true, valid _ anchor ) : grid _ size = tf. shape ( y _ true ) [ 1 ] c _ xy = tf. meshgrid ( tf. range ( grid _ size ), tf. range ( grid _ size ) ) c _ xy = tf. expand _ dims ( tf. stack ( c _ xy, axis = - 1 ), axis = 2 ) b _ xy = y _ true [..., 0 : 2 ] b _ wh = y _ true [..., 2 : 4 ] t _ xy = ...
[ 0.9491975903511047, 0.22793583571910858, 0.5623313188552856, -0.314823180437088, -0.26334285736083984, -0.3607964515686035, 0.5236402750015259, -0.6242150068283081, 0.1634536236524582, 0.38347741961479187, 0.26258018612861633, 0.6513323187828064, 0.5119260549545288, 0.13081751763820648, ...
def load _ lines _ to _ locus ( feat _ tbl _ lines : list, sep = " \ t " ) - > locus : # load the feature's description and positions fields = feat _ tbl _ lines [ 0 ]. split ( sep ) start, stop, strand = get _ feature _ coordinates ( fields [ : 2 ] ) locus = locus ( start, stop, strand ) # while the start, stop and st...
[ 0.7422342300415039, -0.805171549320221, 0.5289063453674316, 0.20533926784992218, -0.3802173435688019, 0.41928786039352417, -0.19187645614147186, 0.2455940544605255, -0.26926949620246887, -0.5270938873291016, -0.03262011706829071, -0.1350727379322052, 0.49145427346229553, -0.717454314231872...
def create _ socket ( ) : try : server _ sock = socket. socket ( socket. af _ inet, socket. sock _ dgram ) return server _ sock except socket. error, e : logging. error ( " error create server socket : % s " % e ) sys. exit ( 1 )
[ -0.02999257668852806, 0.5071664452552795, 0.3898811638355255, 0.3722705543041229, -0.17612296342849731, 0.4223020076751709, 0.017907284200191498, -0.6641057729721069, 0.017436984926462173, -0.461650550365448, 0.6146433353424072, 0.4594518840312958, -0.6109786033630371, -0.36210715770721436...
def movingaverage ( time, data, moving _ average ) : # empty array's for the smoothed time series time _ 2 = ma. masked _ all ( len ( time ) - moving _ average + 1 ) data _ 2 = ma. masked _ all ( len ( time _ 2 ) ) # determine the so - called middle index where the moving average is determined selection = ( moving _ av...
[ -0.5750945806503296, -0.43530842661857605, 0.6170144081115723, 0.3832494616508484, -0.24803143739700317, -0.13891862332820892, 0.07010887563228607, -0.2068367600440979, -0.21006536483764648, 1.2498352527618408, -0.33617058396339417, 1.5143877267837524, 0.23757722973823547, 0.69003289937973...
def show _ sudo _ command _ line ( use _ shebang, python _ flags, inherit _ flags, pass _ env, check = false ) : if check : if check is true : check = " - - show - sudo - command - line " if len ( sys. argv ) < = 1 or sys. argv [ 1 ]! = check : return cmdstr, sudoers = compute _ sudo _ commane _ line _ patterns ( use _...
[ 0.44711244106292725, 0.18712984025478363, 0.8734993934631348, 1.1022199392318726, 0.6402547359466553, 0.06411725282669067, 0.6107217073440552, 0.9779484272003174, -0.7254690527915955, -0.5164865255355835, 0.19487793743610382, 0.9075510501861572, 0.329560250043869, 0.7891533374786377, 0.0...
def forward ( self, x ) : identity = x. clone ( ) x = self. cnn _ layers ( x ) if self. iden _ downsample is not none : identity = self. iden _ downsample ( identity ) x + = identity x = self. relu ( x ) return x
[ -0.09417912364006042, 0.2610069811344147, 0.4822426438331604, 0.6146742105484009, -0.38285914063453674, 0.5722365975379944, 0.17596463859081268, -0.6914713978767395, 1.4138373136520386, -0.672961413860321, -0.30331671237945557, 0.28727278113365173, -0.6066720485687256, -0.35995545983314514...
def ping _ loop ( self ) : if self. remote _ dest : self. connection. send _ dsa _ dgram ( self. remote _ dest, " hello " ) self. loop. call _ later ( 1, self. ping _ loop )
[ -0.6032019257545471, 0.3930210471153259, 0.41715309023857117, 0.2277778685092926, -0.4886646866798401, 0.5906674265861511, -0.02269039675593376, 0.2895139455795288, -0.1384219229221344, 0.32762014865875244, -0.41511499881744385, 0.6132474541664124, -0.42978328466415405, 0.44582387804985046...
def item _ select ( self, item, close = true ) : try : el = self. browser. element ( self. item. format ( quote ( item ) ) ) self. open ( ) self. parent _ browser. click ( el ) finally : if close : self. close ( )
[ -0.9135088920593262, -0.4566430449485779, 0.5900064706802368, 0.5700856447219849, 0.1553039848804474, 0.3773954510688782, 0.416477769613266, -0.9788609743118286, 1.0950137376785278, 0.37847277522087097, 0.060066211968660355, -0.2765168249607086, -0.7503450512886047, -0.48620250821113586, ...
def get _ tags ( self, params ) : self. _ check _ endpoint _ params ('get - tags ', params ) return self. _ request ('get ','tags ', params )
[ -0.4488646984100342, 1.3122392892837524, 0.2384626269340515, 0.8287827372550964, 1.8325942754745483, -0.8267016410827637, -0.9508737921714783, -0.982443630695343, -0.4443906843662262, 0.36796101927757263, -0.3770853579044342, 1.3540382385253906, -0.715322732925415, 0.51780766248703, -1.5...
def extra _ authorize _ data ( self ) - > dict : exclude = [ ] if self. flow _ impl. name = = " home assistant cloud " : exclude = [ " access _ doorbell ", " read _ doorbell " ] scopes = [ scope for scope in all _ scopes if scope not in exclude ] scopes. sort ( ) return { " scope " : " ". join ( scopes ) }
[ -0.12021782994270325, 0.17254897952079773, 0.5378538370132446, -0.10489466041326523, -1.0081406831741333, 0.17414256930351257, -0.30583181977272034, 0.22221405804157257, 1.7398298978805542, 0.8513782024383545, 0.047504376620054245, 0.8448301553726196, -0.32386326789855957, 0.94419693946838...
def generate _ zigzag _ walls ( trajectory, corridor _ y _ span, corridor _ x _ span ) : obstacles = [ ] stuff = trajectory + np. array ( [ - corridor _ y _ span, corridor _ x _ span ] ) for from _ pt, to _ pt in zip ( stuff [ : - 1 ], stuff [ 1 : ] ) : wall = wall ( from _ pt = from _ pt, to _ pt = to _ pt ) obstacles...
[ 0.11053561419248581, -0.26353517174720764, 0.783059298992157, 0.022347766906023026, 0.47632721066474915, 0.5802834630012512, 0.1858748495578766, -0.5587214231491089, -0.3192475140094757, 0.3121311664581299, -0.17549335956573486, -0.11029809713363647, 0.6814125180244446, -0.2968621551990509...
def _ build _ scheduler ( self ) : self. _ scheduler = polledscheduler ( ) self. _ scheduler. start ( ) def event _ callback ( self, event ) : log. info ( " driver job triggered, raise event : % s " % event ) self. _ fsm. on _ event ( event ) # dynamically create the method and add it method = partial ( event _ callbac...
[ 0.0765373632311821, -0.8560465574264526, 0.4850327968597412, 0.4878575801849365, -0.05479394644498825, -0.6208986639976501, -0.5786131620407104, 0.9158524870872498, -0.09430369734764099, -0.7065461277961731, 0.07891997694969177, -1.0109728574752808, -0.1226179450750351, 0.21171465516090393...
def farm _ cpu _ menu _ default ( self, rop _ path ) : return 0
[ -0.49082762002944946, 0.2114882916212082, 0.37693116068840027, 1.6556954383850098, 1.1124202013015747, -0.08801882714033127, 1.408529281616211, 0.21644459664821625, -0.2878143787384033, -0.5717459321022034, 0.28902435302734375, -0.714221179485321, -0.9175820350646973, -0.2927437722682953, ...
def get _ afternoon _ events ( self ) : events = [ ] for check in self. afternooncheckboxes : if check. ischecked ( ) and check. text ( )! = " checkbox " : events. append ( check. text ( ) ) if self. afternooncheckboxes [ - 1 ]. ischecked ( ) : if self. a _ lineedit. text ( )! = " " : events. append ( self. a _ lineedi...
[ -0.10292724519968033, -1.2143300771713257, 0.8032194972038269, 0.580740749835968, 1.1836605072021484, 0.507691502571106, -0.44376808404922485, -0.22580981254577637, 0.11045617610216141, 0.715510904788971, -0.9169596433639526, 0.3754326403141022, -0.555804431438446, 0.800025999546051, 0.0...
def _ mass _ centers _ table ( ) : nclasses = 9 nvariables = 5 mass _ centers = np. zeros ( ( nclasses, nvariables ) ) mass _ centers _ dict = dict ( ) # c - band centroids derived for meteoswiss albis radar # zh zdr kdp rhohv delta _ z mass _ centers [ 0, : ] = [ 13. 5829, 0. 4063, 0. 0497, 0. 9868, 1330. 3 ] # ds mas...
[ 0.5096101760864258, -0.8805803060531616, 0.9503217339515686, -1.1281404495239258, -0.43927910923957825, 0.24861140549182892, 0.48309171199798584, -0.35981863737106323, -0.8840524554252625, 0.6236505508422852, -0.12435096502304077, -0.031547367572784424, 1.0447670221328735, 1.15645492076873...
def set _ style _ type ( parent ) : # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # def _ set _ style _ values ( parent, ) : " " " style values determine the color... values of items built this is just a beginning btn or button or bn https : / / stackoverflow. com / questions / 4...
[ 0.3777823746204376, -0.3439963757991791, 0.9333323240280151, -0.32458749413490295, 0.4215713441371918, 0.221278116106987, 0.39856675267219543, -0.08729952573776245, 0.11356093734502792, 0.3778797686100006, -0.8128583431243896, 0.04914119094610214, 0.27637341618537903, 1.831687331199646, ...
def filtername _ to _ filterfile ( filtename, fullpath = true ) : _ io = io ( ) if len ( np. atleast _ 1d ( filtename ) ) = = 1 : return _ io. get _ filterfile ( filtename, fullpath = fullpath ) return [ _ io. get _ filterfile ( filt, fullpath = fullpath ) for filt in np. atleast _ 1d ( filtename ) ]
[ 0.09132617712020874, -0.16548088192939758, 0.84731525182724, 0.2536030411720276, -0.13461442291736603, 0.3210548162460327, 0.8076122999191284, -0.053915418684482574, -0.3248249590396881, 0.8113353252410889, -0.861897349357605, 0.4025283753871918, 0.006617225706577301, 0.25447648763656616, ...
def _ _ mul _ _ ( self, other ) : r0 = affinepoint ( 0, 0, true ) r = [ r0, self ] for i in reversed ( range ( other. bit _ length ( ) ) ) : di = ( other > > i ) & 0x1 r [ ( di + 1 ) % 2 ] = r [ 0 ] + r [ 1 ] r [ di ] = r [ di ]. double ( ) return r [ 0 ]
[ -0.38407641649246216, 0.8136525750160217, 0.6269048452377319, 0.5536149144172668, 0.16466988623142242, 0.05456186830997467, -0.42946988344192505, -0.6942380666732788, 0.8579530715942383, 0.3099152445793152, -0.5539602041244507, -0.6454084515571594, -0.5917404890060425, 0.2971394956111908, ...
def open _ img ( path ) : try : image = imread ( path ) except ioerror as e : logging. info ( " file not found ", e, path ) return none else : return image
[ -0.30711859464645386, -0.7955209612846375, 0.5416783094406128, -0.876376211643219, -1.058350682258606, 0.40062689781188965, -0.01382892020046711, -0.24825020134449005, 0.1706589013338089, -0.3562314510345459, 1.6088981628417969, -0.1626473367214203, -0.03756362572312355, -1.156349182128906...
def _ _ len _ _ ( self ) : return len ( self. _ actionlist )
[ -0.4505337178707123, -0.19952161610126495, 0.328534871339798, -0.159576416015625, 0.7340300679206848, 0.012742547318339348, 0.2860376834869385, 0.734763503074646, 0.8534771800041199, -0.204213947057724, -1.3459663391113281, 0.16576753556728363, 0.29854586720466614, -0.19267170131206512, ...
def _ get _ handlers ( self, event : union [ str, callable ], payload : dict = { } ) - > tuple : # get event by string name or class inspection # event _ meta = self. event ( event ) if type ( event ) = = str : # string based event, merge payload with default event event = dict ( payload ). merge ( {'name': event,'desc...
[ -0.17734257876873016, -0.3141363263130188, 0.6843991279602051, 0.6000580787658691, 0.2705007493495941, 0.0625840276479721, -0.13670875132083893, -0.1653572916984558, -0.6398836374282837, 0.024276943877339363, 0.16609090566635132, -0.32902178168296814, 0.31729960441589355, 0.203278824687004...
def _ infertensorrepresentationsfromstruct ( feature : schema _ pb2. feature ) - > dict [ str, schema _ pb2. tensorrepresentation ] : if feature. type! = schema _ pb2. featuretype. struct : raise valueerror ( f " expected struct, got { feature. type } for feature { feature. name }. " ) if feature. struct _ domain. spar...
[ -0.38575437664985657, 0.25916144251823425, 0.4665643572807312, -0.3470800220966339, -0.28454843163490295, -0.1942661851644516, 0.8772438764572144, -0.20987629890441895, -0.37603211402893066, -0.09744565188884735, -1.12803316116333, -0.12581905722618103, 0.3363727331161499, 0.00573917711153...
def prettify ( elem, id = " " ) : rough _ string = elementtree. tostring ( elem,'utf - 8') reparsed = minidom. parsestring ( rough _ string ) return reparsed. toprettyxml ( indent = id )
[ 0.3074699938297272, -0.055529795587062836, 0.3011998236179352, -0.13315236568450928, -1.8530904054641724, -0.42810583114624023, -1.0844136476516724, 0.22534126043319702, 0.49729931354522705, 0.020038830116391182, 0.2149028480052948, -0.0041266982443630695, -0.55374675989151, -0.75726068019...
def _ save ( photo ) : _ cur _ time = str ( datetime. now ( ) ) [ : - 4 ] + ". jpg " try : urlretrieve ( photo, _ img _ dir + " / " + _ cur _ time ) except : # noqa : e722 print ( " name : ", _ cur _ time ) print ( photo ) return _ cur _ time
[ -1.1780781745910645, -0.33104565739631653, 0.491205632686615, -0.09379615634679794, -0.5203173160552979, -0.6670261025428772, 0.6723363995552063, -0.19028334319591522, -0.334089457988739, 0.2542864680290222, -0.44155460596084595, -0.38220176100730896, -0.31821125745773315, 0.35971409082412...
def explore _ path ( filename ) : return _ explore _ path ( filename )
[ -0.3459949791431427, 0.14916470646858215, 0.28774726390838623, 0.698819100856781, -0.07686758041381836, -0.482129842042923, 1.391717791557312, -0.1128639504313469, -0.9129660129547119, 0.2379050850868225, 0.7026435136795044, -0.7172359824180603, 0.01840418204665184, -0.35505935549736023, ...
def solve _ rseq ( en, veff ) : sol = solve _ ivp ( # function signature must be f ( t, y ), so use lambda function lambda t, y : rseq ( t, y, en, veff ), [ tmax, tmin ], # use values from exact radial function for hydrogen : # u ( r ) = 2r exp ( - r ), u'( r ) = 2 ( 1 - r ) exp ( - r ) [ 2 * tmax * np. exp ( - tmax ),...
[ -1.0952911376953125, -0.4800451099872589, 0.6656287312507629, 0.014505179598927498, 0.29722267389297485, -0.6033592224121094, -0.3295769989490509, 0.24860331416130066, -0.8686005473136902, 1.245033860206604, -0.8408461809158325, -0.31984826922416687, -0.14221404492855072, -0.17179900407791...
def getfluxorders ( self, adjacencymatrix = none, fctable = none ) : fluxorders = fluxorder ( model = self, adjacencymatrix = adjacencymatrix, fctable = fctable ) return fluxorders
[ 0.5200819373130798, 0.7796568274497986, 0.3255714476108551, 1.4390896558761597, 0.3177717924118042, -0.7618753910064697, -0.3620384931564331, -0.33384042978286743, -0.2313542664051056, -0.9066250920295715, -0.5936287045478821, 0.18624678254127502, -0.09340640902519226, 0.6254436373710632, ...
def init _ cache _ dir ( ) - > none : create _ dir _ if _ not _ exist ( get _ download _ cache _ dir ( ) )
[ -0.10872898250818253, 0.2539557218551636, 0.6971086859703064, 0.39280077815055847, 0.8815850615501404, 0.3890291452407837, 0.358233243227005, -0.20191459357738495, -0.2190627008676529, -0.6938138008117676, -0.20850633084774017, 1.007375955581665, 0.35748231410980225, 0.7728570699691772, ...
def test _ deny _ closing _ task _ not _ completed ( self ) : # assigned self. task. status = task. status. assigned self. task. save ( ) url = reverse ( " tasks : close _ task ", kwargs = { " pk " : self. task. pk } ) response = self. client. post ( url, { } ) self. assertequal ( response. status _ code, 400 ) # new s...
[ -0.09464854747056961, 0.6084005832672119, 0.8418757915496826, 0.6556420922279358, 0.29021015763282776, 1.3601142168045044, 0.7383145689964294, -0.12559868395328522, -0.4618358016014099, -0.14256665110588074, -0.18518327176570892, -0.49421748518943787, -0.07241825759410858, 1.49756193161010...
def expand _ variables ( self, value, variables ) : def upper ( v ) : return v. upper ( ) def lower ( v ) : return v. lower ( ) def title ( v ) : return v. title ( ) def capital ( v ) : " " " str. capitalize ( ) will lowercase the rest of the string - does someone really want that? " " " if len ( v ) > 2 : return v [ 0...
[ -0.35827434062957764, -0.03223371505737305, 0.8474750518798828, -0.5450472235679626, -0.7845924496650696, -1.01157546043396, -0.6036444902420044, -0.23231959342956543, 0.3790586292743683, -0.12196575850248337, 0.332300066947937, 0.10165087878704071, -0.7521267533302307, 0.23773349821567535...
def test _ check _ config _ params _ missing _ keep _ unsupported _ files ( gitdelver _ config _ params _ fixture : callable [ [ none ], dict [ str, str ] ] ) : config _ params = gitdelver _ config _ params _ fixture. pop ( " keep _ unsupported _ files ", none ) with pytest. raises ( systemexit ) : gitdelver. _ check _...
[ 0.36251765489578247, 0.589763879776001, 0.5620395541191101, 0.4032104015350342, -0.001633573672734201, 1.046597957611084, 0.04960788041353226, 1.0847104787826538, -0.6466965675354004, 1.0948277711868286, -0.9791017770767212, -0.5849509239196777, -0.407492995262146, 1.141999363899231, 0.8...
def rank ( previous _ rank, sindex, jump ) : number = 0 temp = [ none ] * len ( sindex ) check = false for i in range ( 0, len ( sindex ) ) : if ( i + 1 ) = = len ( sindex ) : temp [ sindex [ i ] ] = number else : sindex1 = sindex [ i ] sindex2 = sindex [ i + 1 ] if ( suffix _ compare ( previous _ rank, sindex1, sindex...
[ -0.12287437915802002, 0.4459663927555084, 0.670416533946991, -0.03449931740760803, -0.05110006406903267, -0.8598676323890686, 0.5975445508956909, 0.5427209138870239, 0.3848709166049957, 0.3010022044181824, -0.5511524081230164, 0.7877722978591919, -0.9708459973335266, 0.13645488023757935, ...
def empirical _ ntk _ vp _ fn ( f : applyfn, x1 : pytree, x2 : optional [ pytree ], params : pytree, * * apply _ fn _ kwargs ) - > callable [ [ pytree ], pytree ] : args1, args2, fx1, fx2, fx _ axis, keys, kw _ axes, x _ axis = _ get _ args ( f, apply _ fn _ kwargs, params, none, x1, x2 ) f1, f2 = _ get _ f1 _ f2 ( f, ...
[ 0.3804076015949249, 0.40109381079673767, 0.5521966218948364, -0.04361423850059509, -0.7310786247253418, -0.33954957127571106, -0.20152828097343445, -0.21854691207408905, -0.8124257326126099, 1.2746784687042236, 0.16202235221862793, 0.2991267740726471, 1.1532080173492432, -0.175177276134490...
def unwarp ( self, img : np. ndarray, size : size, dst : optional [ np. ndarray ] = none ) - > np. ndarray : return cv2. warpperspective ( img, self. _ im, size, dst = dst, bordermode = cv2. border _ transparent if dst is not none else cv2. border _ constant )
[ -0.2773441970348358, 0.40139514207839966, 0.9688675403594971, -0.5037724375724792, -1.3179311752319336, -0.2783440053462982, -0.3980315625667572, 0.2612416446208954, 1.0233616828918457, 0.4198839068412781, -0.2174016684293747, 0.6220734715461731, 0.08102042227983475, -0.5700506567955017, ...
def cesaro ( tortoise : turtle. turtle ( ), order : int, size : float, angle _ tear : int ) - > none : experimental _ list = [ angle _ tear / 2 - 90, - 180 - angle _ tear, - 90 + angle _ tear / 2, 0 ] if order = = 0 : tortoise. forward ( size ) else : for angle in experimental _ list : cesaro ( tortoise, order - 1, siz...
[ 0.21851497888565063, 0.4880678653717041, 0.3841843903064728, -0.30335909128189087, -0.2260998785495758, -0.2637677788734436, 0.5291276574134827, 0.15471366047859192, -0.0028913659043610096, 0.44796672463417053, -0.9673103094100952, -0.10634012520313263, 0.8453733921051025, -0.6421955227851...
def about ( ) : # pragma : no cover from phy import _ _ version _ git _ _ msg = " phy { } v { } ". format ( self. name, _ _ version _ git _ _ ) try : from phylib import _ _ version _ _ msg + = " \ nphylib v { } ". format ( _ _ version _ _ ) except importerror : pass qmessagebox. about ( self, " about ", msg )
[ 0.7042380571365356, -0.5616186857223511, 0.44084054231643677, -0.22943617403507233, 0.9197214841842651, -0.08585359156131744, 0.1284780204296112, 0.028538059443235397, -0.6511824131011963, -0.24237704277038574, -0.38033080101013184, 0.7020981311798096, -0.12519308924674988, 1.0656719207763...
def parse _ file ( input _ file ) : f = open ( input _ file,'r') l = f. read ( ). split ( ) n, t, t, w, h = [ int ( x ) for x in l [ : 5 ] ] colors = l [ 5 : 5 + n ] pos = [ ] for i in range ( 5 + n, 5 + 3 * n, 2 ) : pos. append ( ( int ( l [ i ] ), int ( l [ i + 1 ] ) ) ) # skip'obstacles'token index = 5 + 3 * n + 1 o...
[ 0.25261619687080383, -0.1393589973449707, 1.0294005870819092, -0.8775050640106201, -0.8655430674552917, -0.15538425743579865, 0.4847613275051117, -0.2191178798675537, -1.0410823822021484, 0.43167904019355774, -0.832017719745636, -0.514569878578186, 0.271749347448349, 0.6448101997375488, ...
def test _ derived _ quantities _ zero _ order ( ) : for qtty _ name, qtty _ dict in eos. derived _ quantities. iteritems ( ) : ctab = eos. eosmaterial ( material, [ qtty _ name ], spec = qtty _ dict ['spec'] ) for spec in qtty _ dict ['spec'] : yield ctab. q [ qtty _ name, spec ], x, y
[ -0.11893058568239212, -1.0356898307800293, 0.4034658670425415, -0.7298489212989807, 0.489322692155838, 0.94987553358078, -0.12368279695510864, -0.955192506313324, -0.8652865886688232, -1.2174992561340332, -0.392307311296463, -0.5376478433609009, 0.9954096078872681, 0.7898353934288025, -1...
def get _ tables ( self, *, replacements = none ) : if replacements is not none and self. key in replacements. keys ( ) : return { self. key : replacements [ self. key ] } return { self. key : self }
[ -0.5458006262779236, 0.32396599650382996, 0.5068195462226868, -0.20485515892505646, -1.221057653427124, -0.2896813452243805, -0.41023239493370056, 0.6152803897857666, -0.1376296430826187, -0.6544538140296936, -0.8606447577476501, -0.08139699697494507, -0.5924885869026184, -0.00175864784978...
def _ _ init _ _ ( self, tasks, task _ types, * * kwargs ) : self. tasks = tasks self. task _ types = task _ types super ( ). _ _ init _ _ ( sources = [ tasks ], targets = [ task _ types ], * * kwargs )
[ 0.506380021572113, 0.7970461845397949, 0.5041680335998535, 0.35704144835472107, 0.28709354996681213, 0.3402315676212311, 0.21970994770526886, 0.13814140856266022, 0.011010581627488136, -0.28571391105651855, -0.6337496042251587, 0.4192653298377991, 0.3945019543170929, 0.7354798913002014, ...
def setuser ( self, phone _ number, location ) : self. phone _ number = phone _ number self. location = location self. checksettings ( phone _ number ) if os. path. isfile ( self. godatapath +'settings -'+ self. phone _ number + '. dat') and \ ( self. settings. get ('customer _ id')! = none ) and \ ( self. settings. ge...
[ -0.7603289484977722, -0.5697603225708008, 0.4472298324108124, 0.4814760982990265, 0.3601541519165039, -0.03655342385172844, -0.3978016674518585, -0.07836262136697769, -0.3102169930934906, -0.0659877359867096, -0.19175684452056885, 0.46348321437835693, 0.32922884821891785, -0.29723757505416...
def normalize _ mean _ std ( arr1d ) : return ( arr1d - arr1d. mean ( ) ) / arr1d. std ( )
[ -0.013615302741527557, -0.8148863315582275, 0.4659661054611206, 0.2179337441921234, -1.5823135375976562, 0.9158197045326233, 0.7053050398826599, -0.12460190057754517, 0.9926881790161133, 1.3546274900436401, 0.512975811958313, 1.1362180709838867, -0.5438002347946167, 0.9931501746177673, 0...
def _ _ init _ _ ( self, * args ) : _ topods. topods _ tsolid _ swiginit ( self, _ topods. new _ topods _ tsolid ( * args ) )
[ 0.45080551505088806, 0.2449166178703308, 0.31277066469192505, -0.7756852507591248, -0.2901272475719452, 0.9127913117408752, 0.7993926405906677, -0.0973539724946022, -0.23482072353363037, 0.1697760969400406, -0.32838159799575806, -0.5265432596206665, -0.11938869208097458, 0.1319272816181183...
def delete ( self ) : print ( " deleted ", self. address ) result = self. manager. api. query ( ). ips ( self. id ). delete ( ) self. manager. ips. remove ( self ) # todo : figure out something more useful to return? return result
[ -0.7147703170776367, -0.5594772100448608, 0.4724620282649994, -0.419207900762558, -0.3286510109901428, -0.9909560680389404, -0.4559721052646637, 0.8451526761054993, 1.2019857168197632, -0.6328587532043457, 0.01643076166510582, -0.35150232911109924, -1.0174593925476074, -1.0006121397018433,...
def list ( self ) : response = self. _ client. get ('container - security / api / v1 / jobs / list') return sctestjob. from _ json _ list ( response. text )
[ 0.5296722054481506, -0.06992458552122116, 0.19802020490169525, 0.8458031415939331, 0.8906428813934326, -0.11569685488939285, -1.0848087072372437, 0.21175464987754822, 0.9691194295883179, -0.47726765275001526, -0.6322343945503235, 0.4710310399532318, -0.9646685123443604, -0.6182874441146851...
def setup ( self ) : db. drop _ all ( ) # clean up the last tests db. create _ all ( ) # create new tables self. app = app. test _ client ( )
[ 0.936737596988678, 0.6610826849937439, 0.36667400598526, 0.6745317578315735, 1.2353966236114502, 0.31575050950050354, 0.7283429503440857, -0.0676744133234024, 0.16877028346061707, 0.4503172039985657, -0.06730654090642929, -0.20230425894260406, -0.6668596863746643, 0.3534824550151825, -0....
def stack _ frame _ offset ( offset : int ) - >'possiblevalueset': result = possiblevalueset ( ) result. _ type = registervaluetype. stackframeoffset result. _ offset = offset return result
[ -0.2506037950515747, 0.462288498878479, 0.4049786329269409, 0.007881841622292995, -0.6834478974342346, -0.33022889494895935, 0.37929603457450867, 0.05607867240905762, -0.07326161116361618, -0.4454866349697113, -0.30450087785720825, 0.5231353640556335, -0.3872515559196472, 0.283442437648773...
def _ signalsforinterface ( self, context, prefix ='', typetransform = none ) : sigs = [ ] if self. _ interfaces : for intf in self. _ interfaces : sigs. extend ( intf. _ signalsforinterface ( context, prefix, typetransform = typetransform ) ) else : if hasattr ( self,'_ sig') : sigs = [ self. _ sig ] else : t = self. ...
[ -1.0890171527862549, -0.14544062316417694, 0.5319933891296387, -0.15167522430419922, -0.024164864793419838, 0.11250916123390198, -0.10681440681219101, -0.8920788168907166, 0.13034237921237946, 0.09659910202026367, -0.5439195036888123, -0.47786474227905273, -0.2781120240688324, 0.9698041677...
def expose ( self, widget, event ) : self. context = widget. window. cairo _ create ( ) self. rect = self. get _ allocation ( ) self. context. set _ source _ color ( self. style. bg [ gtk. state _ normal ] ) self. context. rectangle ( self. rect. x, self. rect. y, self. rect. width, self. rect. width ) self. context. f...
[ 0.2531201243400574, -0.11420111358165741, 1.1018004417419434, -0.1725134700536728, -0.6582245230674744, 0.4306659698486328, 0.8832113742828369, 0.28886982798576355, 0.3850353956222534, -0.120077945291996, 0.4842276871204376, 0.32351601123809814, 1.0287010669708252, 1.510566234588623, -0....
def has _ errors ( self ) : if self. dataheader. status _ field [ 0 ] & 0xc0 : return true return false
[ 0.16171376407146454, 0.08853176981210709, 0.45276159048080444, -0.5082321166992188, 0.4622829258441925, 0.7274168729782104, -0.6187533736228943, 0.4936041533946991, -0.17950861155986786, -0.7708355188369751, -1.1772606372833252, -0.2467363327741623, -0.6913180351257324, 0.6674018502235413,...
def patch ( self, request, pk = none ) : return response ( {'method':'patch'} )
[ -0.7202746272087097, -0.3526603877544403, 0.3401101231575012, -0.5227766036987305, -0.35765570402145386, -0.008082614280283451, 0.138101726770401, 0.35754284262657166, 0.9455353021621704, -0.665023922920227, 0.2722776532173157, -0.4006735384464264, -0.3407483398914337, 0.04139667749404907,...
def invalidate _ upstream ( task, confirm = true ) : tasks = taskflow _ upstream ( task, only _ complete = true ) if len ( tasks ) = = 0 : print ('no tasks to invalidate') return true if confirm : print ('compeleted tasks to invalidate :') print ( tasks ) c = input ('confirm invalidating tasks ( y / n )') else : c ='y'...
[ -0.6218100190162659, 0.5635070204734802, 0.5971444249153137, 1.0186831951141357, -0.6678587794303894, 0.7151739001274109, 0.7016348838806152, 0.45160582661628723, -0.3559407889842987, -0.10491998493671417, -0.5226683020591736, 0.41065308451652527, -0.7683494091033936, 0.8390136361122131, ...
def forward _ pass ( self, input _ ) : self. input _ = input _ return convolve _ 3x3 ( input _, self. weights )
[ 0.3567919135093689, 0.9095702171325684, 0.3815906345844269, 0.30412763357162476, -0.457960844039917, 0.825811505317688, -0.42800822854042053, -0.10565083473920822, 0.25018110871315, -0.27648183703422546, -0.7816877365112305, 0.04668832942843437, 0.3862707316875458, -0.2235376089811325, -...
def load _ sample ( inpath, trainpath ='sample _ train. mat ', testpath ='sample _ test. mat ', rate _ val = 0. 2 ) : # init trainpath = os. path. join ( inpath, trainpath ) testpath = os. path. join ( inpath, testpath ) # load training set sample _ train = sio. loadmat ( trainpath ) train _ data = sample _ train ['dat...
[ 0.6220714449882507, -0.18777777254581451, 0.9674726724624634, -0.4050445854663849, -0.05694296956062317, 0.227216437458992, 0.25211578607559204, -0.2837367653846741, -0.018119143322110176, 0.45409056544303894, 0.5604549646377563, 0.5288065671920776, -0.4279671907424927, -0.8122156858444214...
def batch _ transformer ( u, thetas, out _ size, name ='batchspatialtransformer') : with tf. variable _ scope ( name ) : num _ batch, num _ transforms = map ( int, thetas. get _ shape ( ). as _ list ( ) [ : 2 ] ) indices = [ [ i ] * num _ transforms for i in xrange ( num _ batch ) ] input _ repeated = tf. gather ( u, t...
[ -0.035659655928611755, 0.314258337020874, 0.40406689047813416, 0.26526692509651184, -0.6304961442947388, -0.06307186186313629, -0.11938943713903427, 0.2959240972995758, -0.31432265043258667, -0.2586667239665985, -1.0581457614898682, 0.7118862867355347, 0.12467725574970245, -0.1652574688196...
async def test _ form _ invalid _ auth ( hass ) : result = await hass. config _ entries. flow. async _ init ( domain, context = { " source " : config _ entries. source _ user } ) mocked _ ayla = _ create _ mocked _ ayla ( connect = sharkiqautherror ) with patch ( " homeassistant. components. sharkiq. config _ flow. get...
[ -0.3665362596511841, 0.2472047656774521, 0.2949436902999878, 0.436773419380188, 0.6685980558395386, -0.18449214100837708, -0.045378848910331726, 0.06024453416466713, 0.7175059914588928, -0.8554434180259705, -0.45519208908081055, 0.06051250919699669, 0.47612446546554565, 0.7008960843086243,...
def test _ warn _ if _ no _ history _ service ( self ) : def mock _ list _ history _ databases ( ) : response = requests. models. response ( ) response. status _ code = 502 raise requests. httperror ( response = response ) def mock _ list _ realtime _ databases ( ) : return { " demo - stk - taq " : [ " demo - stk - taq...
[ -0.18074345588684082, 1.1284658908843994, 0.547001838684082, 0.227267324924469, 0.6468735933303833, -0.07467208057641983, 0.48250502347946167, -0.5656307935714722, 0.3519889712333679, -0.2256392538547516, 0.3049825429916382, 0.8076703548431396, -0.39860546588897705, 1.0241708755493164, -...
def test _ all _ survey _ packages ( self, all _ survey _ packages ) : for package in all _ survey _ packages : package _ keys = package. keys ( ) assert len ( package _ keys ) = = len ( self. p _ model _ keys ) for key in package _ keys : assert key in self. p _ model _ keys assert type ( package [ key ] ) in package ...
[ -0.827796220779419, -0.08385402709245682, 0.3809768557548523, 0.597247302532196, 0.09236908704042435, 1.0971306562423706, -0.590556800365448, -0.19059032201766968, 0.6243336200714111, 0.22228571772575378, -0.3232218623161316, -1.2246488332748413, -0.1473865658044815, 0.4721626937389374, ...
def teardown _ method ( self, method ) : self. hass. stop ( )
[ -0.28043675422668457, -0.04445046931505203, 0.3590029776096344, -0.2913847267627716, 0.6279675364494324, 0.34163203835487366, 1.4439115524291992, -0.05585206300020218, -0.009108568541705608, -0.12839770317077637, 0.8207383155822754, 0.08753057569265366, -0.4279356598854065, 0.2146600931882...
def gethandle ( self ) : return _ topods. topods _ listnodeoflistofshape _ gethandle ( self )
[ 0.24235227704048157, 0.6949418187141418, 0.4190022647380829, -0.06876028329133987, 1.5213576555252075, 0.27921485900878906, 0.44919511675834656, -1.2235323190689087, 0.6475237011909485, -1.2250704765319824, -0.2095395177602768, -0.25841623544692993, -0.4727814495563507, 0.2402409464120865,...
def joined ( self, channel ) : self. atrusdata. log ( { " kind " : " bot _ join ", " msg " : channel } ) self. channel = channel self. usersonline = [ ] self. askforlist ( ) self. loopingmsgdaemon ( )
[ -0.07480569183826447, -0.28141772747039795, 0.18835094571113586, -0.3767228126525879, 0.7281753420829773, 0.9895633459091187, -0.31412702798843384, 0.31223782896995544, 0.09598036855459213, -0.35160383582115173, -1.206343412399292, 0.9681462049484253, -0.2709087133407593, 0.876992166042327...
def get _ unique _ sample _ files ( file _ samples ) : assert isinstance ( file _ samples, pd. dataframe ) df = file _ samples # use shorter variable name # sort data frame by file id df = df. sort _ values ('file _ id') # - some samples have multiple files with the same barcode, # corresponding to different aliquots #...
[ 0.7499392032623291, -0.2928769588470459, 0.7429007291793823, -0.41604289412498474, 0.09472585469484329, -0.6186288595199585, 1.0278308391571045, -0.05290846899151802, 0.43248051404953003, -0.26928526163101196, 0.6315140724182129, 0.08924147486686707, -0.018214618787169456, -0.4938863515853...
def finishchange ( self ) : exit ( )
[ -0.23248057067394257, -0.8386580944061279, 0.2881341278553009, 0.7051195502281189, -0.030608924105763435, 1.2746013402938843, 0.8750924468040466, -0.1549115926027298, -1.0088680982589722, 0.7405572533607483, -0.8243846297264099, 0.4573197662830353, -0.181321918964386, 1.3516027927398682, ...
def name ( self, value ) : max _ characters = 512 conditions = [ validate _ max _ length ( value, max _ characters ) ] if all ( conditions ) : self. _ update _ values ('name ', value ) else : raise invalidvalue ( f'{ value } is invalid. condition max _ characters must be less or equal'f'{ max _ characters }')
[ -0.7556690573692322, 0.38721591234207153, 0.5945488214492798, -0.36421388387680054, -1.7146931886672974, 0.40774136781692505, -0.06565728783607483, -0.562746524810791, 0.4724006652832031, 1.2007311582565308, -0.7241836190223694, -0.11007770895957947, 0.18428663909435272, 0.3939618468284607...
def inherit ( cls, * bases ) : newdict = dict ( [ ( key, value ) for key, value in cls. _ _ dict _ _. items ( ) if key! ='_ _ module _ _'] ) cls = type ( cls. _ _ name _ _, tuple ( bases ), newdict ) setattr ( cls, " _ % s _ _ decorator _ class " % cls. _ _ name _ _, cls ) return cls
[ -1.2963234186172485, 0.09703189879655838, 0.6014219522476196, -0.15379340946674347, -0.0006048376089893281, 0.7839819192886353, -0.16591419279575348, -0.09750573337078094, 0.1999099850654602, -0.22155500948429108, -0.13908402621746063, 0.010885808616876602, -0.3802168667316437, 0.465875715...