text
stringlengths
25
2.19k
embedding
listlengths
768
768
def get _ remote ( xmpp, callback ) : if xmpp. anon : return method = config. get ('use _ bookmarks _ method') if not method : available _ methods = { } def _ save _ and _ call _ callback ( ) : # if both methods returned a result, we can now call the given callback if callback and " privatexml " in available _ methods ...
[ -0.3360581398010254, 0.02412908338010311, 0.8021289110183716, 0.61370849609375, -0.21389375627040863, -0.5377665162086487, -0.9406512975692749, -0.5639404654502869, 0.04147196188569069, 0.20956739783287048, -0.42567571997642517, 0.10139656066894531, -1.3980780839920044, 0.41311731934547424...
def test _ existing _ exe _ args _ mutation ( ) : args = [ " sleep. py ", " - - time = 5 " ] orig = [ " sleep. py ", " - - time = 5 " ] rs0 = runsettings ( " python ", args ) # both should be the same assert rs0. exe _ args = = args # modify the args list args. append ( " - - foo " ) assert rs0. exe _ args = = orig # c...
[ -0.8177151083946228, -0.40060505270957947, 0.7474279403686523, 0.6210620999336243, 0.9607053399085999, 0.22069603204727173, 0.14432425796985626, -0.3649193346500397, -0.2352021485567093, 1.1414185762405396, -1.0120209455490112, 0.21698392927646637, -0.3470582962036133, 0.4512636363506317, ...
def getrndei ( self, * args ) : return _ snap. tneanetmp _ getrndei ( self, * args )
[ 0.11148910224437714, -0.14281387627124786, 0.28101423382759094, 0.23025768995285034, 1.0285813808441162, 0.29347169399261475, -0.09199048578739166, -0.2944839894771576, -1.073244571685791, -0.5661506056785583, -0.7954256534576416, -1.6763356924057007, -0.9542236924171448, 1.233980774879455...
def connect ( commit _ flag ) : # define the database name as database _ name database _ name ='tournament'try : db = psycopg2. connect ( " dbname = { } ". format ( database _ name ) ) c = db. cursor ( ) yield c except : raise else : if commit _ flag = ='yes': db. commit ( ) finally : c. close ( ) db. close ( )
[ 0.07601743191480637, 0.5089045763015747, 0.7089216113090515, 0.3020242154598236, 0.030941765755414963, 0.2902664840221405, -0.3556346893310547, 0.33225616812705994, -0.9871372580528259, 0.9711644649505615, 0.5339680910110474, -0.9032171368598938, -0.622750997543335, 0.1666794866323471, -...
def bucket _ data ( data, eval _ data = false ) : bucketed _ data = [ [ ] for _ in _ buckets ] for input _ ids, output _ ids in data : for bucket _ id, ( max _ inp _ size, max _ out _ size ) in enumerate ( _ buckets ) : # refer the input and output size for bucketing training data # for evaluation data, bucketing is ba...
[ -0.6889159083366394, 0.3190269470214844, 0.43635639548301697, 0.134262353181839, -0.29048293828964233, 0.657711923122406, 0.38993480801582336, -0.18905098736286163, -0.036508817225694656, -0.13035675883293152, -0.05952870100736618, 0.40747806429862976, 0.29027119278907776, 0.09279231727123...
def run ( self, overwrite = false, overwrite _ latent _ process = true, refit _ compmodel = false ) : # x ( fmri ) : masking & zooming self. x _ generator. run ( overwrite = overwrite ) # y ( latent process ) : comp. model. & hrf convolution self. config ['hbayesdm'] ['refit _ compmodel'] = refit _ compmodel self. y _ ...
[ -0.12727893888950348, -0.016135860234498978, 0.778598427772522, 0.03890589624643326, -0.09373041987419128, -0.02400536648929119, 0.5375723838806152, 0.5968784093856812, -0.3980362117290497, -0.36899125576019287, 0.25640276074409485, 0.48917311429977417, -0.10081971436738968, 0.698538899421...
def test _ stock _ retrive _ invested _ field ( self ) : trader = self. login _ user ( usera. get ('username') ). profile # 1. not invested endpoint = reverse ( self. endpoint _ stock _ detail, kwargs = {'pk': 1 } ) resp = self. client. get ( endpoint ) self. assertequal ( resp. status _ code, status. http _ 200 _ ok )...
[ -0.5198991298675537, 0.1708252727985382, 0.7014845609664917, -0.3876122534275055, 1.4681733846664429, 0.17601388692855835, 0.3854248523712158, -0.6642472743988037, -0.23273150622844696, -0.5992136001586914, -0.9597160816192627, 0.015631387010216713, -0.05684515833854675, 0.1079144328832626...
def subdivision _ solve _ nd ( funcs, a, b, deg, interval _ results, interval _ checks = [ ], subinterval _ checks = [ ], tol = 1. e - 3 ) : division _ var = 0 cheb _ approx _ list = [ ] try : if np. random. rand ( ) >. 999 : print ( " interval - ", a, b ) dim = len ( a ) for func in funcs : coeff = full _ cheb _ appro...
[ 0.20982711017131805, 0.3416978418827057, 0.9418534636497498, 0.40243852138519287, 0.20667500793933868, 0.4131186604499817, 0.16447000205516815, 0.0760461613535881, -0.29350054264068604, -0.17372047901153564, 0.006868760567158461, -0.27387067675590515, -0.25027868151664734, 0.30078122019767...
def simulate _ lag _ cython ( ) : # input # sim _ input ['psdpar'] = ['broken _ powerlaw ', [. 2, - 1, - 2, 1e - 3 ] ] norm = sim _ input ['norm'] dt = sim _ input ['dt'] psdpar = sim _ input ['psdpar'] lag = sim _ input ['lag'] phase = sim _ input ['phase'] inorm = 0 if norm = ='var'else 1 if norm = ='leahy'else 2 sim...
[ 0.8428945541381836, 0.48189863562583923, 0.9305355548858643, -0.5500054955482483, 0.3770807385444641, 0.02826177142560482, 0.14911073446273804, -0.5479429960250854, -0.7471307516098022, 0.3871212601661682, -0.1245846152305603, 0.12991727888584137, -0.49829986691474915, 0.5431979298591614, ...
def getmxindegnid _ pngraph ( * args ) : return _ snap. getmxindegnid _ pngraph ( * args )
[ -0.6330544948577881, 1.1241154670715332, 0.4754292070865631, -0.1941557675600052, -0.8591641783714294, 0.2661249041557312, -1.0101099014282227, -0.347391813993454, -0.4213680624961853, 0.03150295838713646, -0.6251847743988037, 0.17751356959342957, -1.111914873123169, -0.14222973585128784, ...
def _ process _ ngg _ findpics ( self ) : keys = self. content _ dict. keys ( ) photo _ ids = none if'source'in keys : source = self. content _ dict ['source'] if source. lower ( ) = ='galleries': ids = self. _ get _ parm _ list ('container _ ids ', int ) photo _ ids = set ( ) for p _ id in ids : p _ list = self. _ get...
[ -0.627327561378479, -0.2405555248260498, 0.5054424405097961, -0.14665545523166656, 0.6000581979751587, -0.23229554295539856, 0.323231041431427, -0.3283790946006775, 0.1744920015335083, 1.1262589693069458, -0.2224186807870865, 0.18662187457084656, 0.00979000236839056, 1.351115107536316, 0...
def contact _ us ( ) : global username return template ( " contact ", username = username )
[ 0.38398411870002747, -0.3801424503326416, 0.2264074683189392, 0.2397174835205078, -1.5252346992492676, 0.13184300065040588, 0.8731197118759155, 0.4248063564300537, -0.26463592052459717, 0.22437523305416107, -0.27143725752830505, -0.52540123462677, -0.13162976503372192, -0.4128659665584564,...
def exists ( * args ) : return _ snap. tfile _ exists ( * args )
[ -1.2649474143981934, -0.12242332100868225, 0.5176991820335388, -0.8738115429878235, 1.2230926752090454, 1.1549588441848755, -0.5833529829978943, 0.4883698523044586, -1.9504224061965942, 0.15455161035060883, -0.3459903597831726, -1.4475371837615967, -0.11373922973871231, -0.1217795833945274...
def begei ( self, * args ) : return _ snap. pungraph _ begei ( self, * args )
[ -0.026819339022040367, 0.9696009159088135, 0.3148452341556549, 1.6799356937408447, 1.815659999847412, -0.5454164147377014, 0.5987040400505066, 0.21455955505371094, -0.8875197172164917, -0.04189871996641159, -0.9099099040031433, -0.20468741655349731, -1.764439582824707, 0.3529605269432068, ...
def test _ min _ 1 ( ) : assert mono _ 22050 _ 16bits. min ( ) = = - 32768
[ 0.4040457308292389, 0.3354528248310089, 0.21215616166591644, 0.9725295305252075, 0.5384277701377869, 1.318007469177246, 0.3877876102924347, -1.3356562852859497, 0.7214723229408264, -1.0473560094833374, -0.49505487084388733, 1.0942026376724243, -1.2520411014556885, 0.4171585440635681, 0.4...
def concat _ arrow _ table _ partitions ( axis, partitions ) : if axis = = 0 : table = pyarrow. table. from _ batches ( [ part. to _ batches ( part. num _ rows ) [ 0 ] for part in partitions ] ) else : table = partitions [ 0 ]. drop ( [ partitions [ 0 ]. columns [ - 1 ]. name ] ) for obj in partitions [ 1 : ] : i = 0 f...
[ 0.8655749559402466, -0.6626830101013184, 1.0960173606872559, 1.30221688747406, -0.9548036456108093, -0.37069937586784363, -0.23781022429466248, -0.6088977456092834, -0.04954373091459274, 0.45952659845352173, 0.7204432487487793, -0.333760142326355, 0.8666964173316956, -1.00688898563385, 0...
def fetch _ subtitles ( self, video _ file ) : attributes = self. guess _ attributes ( video _ file ) logger. debug ( " guessed attributes for'% s': \ n % s " % ( basename ( video _ file ), attributes. nice _ string ( ) ) ) logger. info ( " fetching subtitles for'% s'" % basename ( video _ file ) ) api = providers. bie...
[ 0.2801518142223358, -0.4091189205646515, 0.46011802554130554, 0.5543674826622009, -0.32910940051078796, -0.026612548157572746, -0.2694116532802582, 0.15648484230041504, -0.612894594669342, 0.4575742781162262, -0.6066281795501709, -0.1817588210105896, 0.14987538754940033, 0.5191455483436584...
def get _ file _ paths ( self, subject _ id, task _ name, data _ source _ name ) : if self. sched _ df. empty : raise exception ('schedule is empty, try schedule. compile ( path ).') sub _ df = self. sched _ df [ ( self. sched _ df ['subject'] = = subject _ id ) & ( self. sched _ df ['task _ name'] = = task _ name ) & ...
[ 0.08831218630075455, 0.6395828723907471, 0.4393647611141205, -0.17799407243728638, -0.562457263469696, -0.48042628169059753, 0.4991847276687622, 0.6675320863723755, -1.2458314895629883, 0.41020533442497253, -0.2500080466270447, 0.1966894567012787, 0.4867265522480011, 0.26490408182144165, ...
def vintage ( testlines ) : i = 3 blue _ scale = 5 result = [ ] while i < len ( testlines ) : if i = = blue _ scale : testlines [ i ] = str ( int ( int ( testlines [ i ] ) * 0. 5 ) ) + " \ n " blue _ scale + = 3 result + = [ testlines [ i ] ] i + = 1 vintage _ scale = ( " ". join ( testlines [ 0 : 3 ] ) ) + ( " ". join...
[ -0.07426241785287857, -0.9977849721908569, 0.7981658577919006, -0.2743544578552246, 0.004738880321383476, 0.03133770823478699, -0.2053980529308319, -0.5444723963737488, -1.2414137125015259, 0.8648221492767334, -0.214597687125206, 0.19031357765197754, -0.48086073994636536, 0.216102033853530...
def get _ file _ location _ detail _ by _ sha256 ( self, checksum ) : uri = u " / forensic - search / queryservice / api / v1 / filelocations " return self. _ connection. get ( uri, params = { u " sha256 " : checksum } )
[ 0.26825785636901855, -0.011384301818907261, 0.3609006106853485, 0.17127202451229095, 1.1851558685302734, -1.3017137050628662, 0.2403118908405304, 0.054433126002550125, 0.5504924654960632, -0.4585786461830139, -0.13011252880096436, -0.11042141169309616, -0.07290417701005936, 0.3467268943786...
def convolve _ grayscale _ same ( images, kernel ) : m = images. shape [ 0 ] h = images. shape [ 1 ] w = images. shape [ 2 ] kh = kernel. shape [ 0 ] kw = kernel. shape [ 1 ] pad _ h = int ( ( kh - 1 ) / 2 ) pad _ w = int ( ( kw - 1 ) / 2 ) if kh % 2 = = 0 : pad _ h = int ( kh / 2 ) if kw % 2 = = 0 : pad _ w = int ( kw...
[ -0.2135663479566574, 0.3845265507698059, 1.0322703123092651, 0.378780335187912, -0.294079452753067, -0.2572268545627594, -0.2886168360710144, 0.1839618980884552, -0.5761783123016357, 1.2849982976913452, 0.18226075172424316, -0.08203081041574478, -0.21510092914104462, 1.4410223960876465, ...
def mkdir ( self, path, modification _ time = none ) : path = path. encode ( " utf - 8 " ) if modification _ time is none : modification _ time = int ( time. time ( ) * 1 _ 000 _ 000 _ 000 ) encoded = ( struct. pack ( " < bxhxxxxq ", filetransferservice. mkdir, len ( path ), modification _ time ) + path ) self. _ write...
[ -0.10375673323869705, 0.46843698620796204, 0.7873764038085938, -0.28730934858322144, -0.612784743309021, 0.11327807605266571, 0.172786682844162, -0.26311975717544556, 0.23073717951774597, -0.09496714174747467, -0.15816806256771088, -0.09704959392547607, -0.7639774680137634, 0.3480158746242...
def calculate _ absolute _ adjacency _ matrix ( adjacency _ matrix ) : return np. absolute ( adjacency _ matrix )
[ 0.24956762790679932, -1.027233362197876, 0.5414539575576782, -0.22902584075927734, 0.17287498712539673, -0.16811464726924896, 0.3119533061981201, -0.030751047655940056, 0.15694552659988403, 0.5741798877716064, 1.3255531787872314, 0.6394301056861877, 0.1891734004020691, -0.263755738735199, ...
def write _ schedule _ txt ( self ) : sch = self. build _ schedule _ txt ( ) # print sch # drop base _ df columns. sch. drop ( ['ocd - division ','email ','county ','location _ name ','address _ 1 ','address _ 2 ','city ','state ','zip _ code ','source _ start _ time ','source _ end _ time ','source _ start _ date ','s...
[ -0.7536414861679077, -0.6707825064659119, 0.7042180895805359, 0.5570354461669922, 0.01644458808004856, -0.08741098642349243, 0.4586561620235443, 0.19833508133888245, -0.6410169005393982, 0.4427461624145508, -0.433041512966156, 0.5182028412818909, 0.029872151091694832, -0.5484684109687805, ...
def group _ start ( self ) : if self. has _ error ( ) : return'< div class = " form - check has - danger " > < label class = " form - check - label " >'else : return'< div class = " form - check " > < label class = " form - check - label " > '
[ -0.12234141677618027, -0.2688801884651184, 0.5904077887535095, 0.1466243714094162, 0.31539207696914673, 0.17943401634693146, -0.4993739128112793, -0.181635782122612, 0.3652687668800354, 0.20396512746810913, 1.1244701147079468, 0.7075666189193726, 0.29346755146980286, 0.42189791798591614, ...
def available ( self ) : return hub. available
[ -0.749321699142456, -0.9671779870986938, 0.4386276602745056, 1.3666198253631592, 0.024528097361326218, 1.7290500402450562, -0.11056766659021378, 1.167327880859375, 0.6814720034599304, 1.024246335029602, -0.12325479090213776, 0.2953870892524719, -0.6069319844245911, 0.014982521533966064, ...
def sample _ voxel _ volumes ( epoch ) : imgs = next ( iter ( val _ dataloader ) ) real _ a = variable ( imgs [ " a " ]. unsqueeze _ ( 1 ). type ( tensor ) ) real _ b = variable ( imgs [ " b " ]. unsqueeze _ ( 1 ). type ( tensor ) ) fake _ b = generator ( real _ a ) # convert to numpy arrays real _ a = real _ a. cpu ( ...
[ -0.17085960507392883, -0.1835545152425766, 0.6208910346031189, 0.024049796164035797, 0.08094550669193268, -0.3454503118991852, 0.09715452045202255, -0.25839051604270935, -0.5798482298851013, 0.24215148389339447, 0.11845841258764267, 0.26168668270111084, 0.6421927809715271, 0.59232908487319...
def getweibull ( self, * args ) : return _ snap. trnd _ getweibull ( self, * args )
[ -0.2949182391166687, 0.2874021828174591, 0.2112939953804016, 0.3371771574020386, 1.3690975904464722, -0.07625259459018707, 0.9756395220756531, -0.3447994887828827, -0.7747427225112915, -1.2641236782073975, -0.9245651960372925, 0.19049720466136932, -0.7701458930969238, 0.18475587666034698, ...
def getgammadev ( self, * args ) : return _ snap. trnd _ getgammadev ( self, * args )
[ -0.8672484159469604, 0.3606299161911011, 0.1591627299785614, 0.12693066895008087, 1.0830479860305786, 0.18170879781246185, 0.05637134984135628, -0.2177998274564743, -1.2439947128295898, -0.9612586498260498, -0.5956096053123474, 0.31643930077552795, -0.42332836985588074, 0.514658510684967, ...
def dofitstr ( self, * args ) : return _ snap. tmem _ dofitstr ( self, * args )
[ -0.37561526894569397, -0.40773671865463257, 0.1451389193534851, 0.5547218322753906, 0.5157217383384705, 0.198207825422287, 1.0856547355651855, -0.669105052947998, -1.338322401046753, -0.18693958222866058, -0.2726530432701111, -0.23825541138648987, -0.7902476787567139, 0.2400011420249939, ...
def addmp ( self, * args ) : return _ snap. schema _ addmp ( self, * args )
[ -0.7723921537399292, 0.655166745185852, 0.6349319219589233, 0.9448069930076599, 0.5347971320152283, 0.6428223848342896, 0.05500921607017517, 0.6584185361862183, 0.5217075347900391, -0.6603766679763794, 0.592327356338501, -0.3379572629928589, -1.634852409362793, 0.5821828246116638, 0.4352...
def leftclickreviewitem ( self, inputevent = none ) : if self. flatreviewcontext : self. flatreviewcontext. clickcurrent ( 1 ) else : try : eventsynthesizer. clickcharacter ( orca _ state. locusoffocus, 1 ) except : try : eventsynthesizer. clickobject ( orca _ state. locusoffocus, 1 ) except : self. speakmessage ( mess...
[ -0.1118909940123558, -0.012340704910457134, 0.409111350774765, 0.16596779227256775, -0.27998772263526917, 0.4213674068450928, 0.08628503978252411, 0.2841316759586334, 0.8138489127159119, -0.09454827755689621, 0.3791329264640808, -0.08667965233325958, -1.2550715208053589, 0.0618580169975757...
def remap _ decoder _ name _ scope ( var _ list ) : return { x. name. replace ( " decoder / ", " rnn / " ). replace ( " rnn / logits _ layer ", " logits _ layer " ). replace ( " decoder / while / beamsearchdecoderstep / logits _ layer ", " logits _ layer " ) [ : - 2 ] : x for x in var _ list }
[ -0.8790758848190308, -0.5565539002418518, 0.3836959898471832, -0.655908465385437, -0.8502624034881592, -0.8011308312416077, -0.30208951234817505, -0.554222583770752, 0.2432580292224884, 0.685761570930481, -1.5357767343521118, 0.3777740001678467, 0.3562851846218109, 0.9360823035240173, 0....
def process _ file ( self ) : self. functions = [ ] mapping = {'# # @ description':'_ process _ description ','# # @ audience':'_ process _ audience ','# # @ stability':'_ process _ stability ','# # @ replaceable':'_ process _ replaceable ','# # @ param':'_ process _ param ','# # @ return':'_ process _ return ', } if s...
[ -0.20930464565753937, -0.2757200598716736, 0.6129155158996582, -0.29241225123405457, 0.3998703360557556, -0.578708827495575, 0.2258118838071823, 0.5452340841293335, -0.5818420648574829, -0.2962563633918762, -0.07322388142347336, 0.30501726269721985, -0.17899754643440247, 0.4532454907894134...
def parse _ bin ( bin _ string, bin _ type = none ) : if bin _ type not in ( none,'float ','int') : raise valueerror ('invalid bin type ; bin _ type must be unspecified or set as " float " or " int "') bin _ string = validate _ bin _ string ( bin _ string ) parsed _ string = bin _ parser. match ( bin _ string ) if pars...
[ 0.23118111491203308, -1.0142325162887573, 0.819136381149292, 0.696571946144104, -0.8289129137992859, 0.6353507041931152, 0.24696500599384308, -0.24852254986763, -0.32717275619506836, -0.531712532043457, 0.11431034654378891, 1.0951499938964844, -0.3313005864620209, -0.22335956990718842, 1...
def _ _ init _ _ ( self, * args ) : _ snap. tuint64strvhi _ swiginit ( self, _ snap. new _ tuint64strvhi ( * args ) )
[ -0.6150307059288025, 0.18726101517677307, 0.08069540560245514, 0.1754603087902069, -0.4076990485191345, -0.24761539697647095, -0.44881322979927063, 0.4250105321407318, -1.331227421760559, 0.2754402160644531, 0.2137097716331482, -1.0574243068695068, -0.4727678596973419, -0.04803013429045677...
def _ _ init _ _ ( self, func : callable, params : iterable [ zfit. parameter ] = none, errordef : float | none = none, # legacy deps : iterable [ zfit. parameter ] = none, dependents : iterable [ zfit. parameter ] = none, ) : super ( ). _ _ init _ _ ( model = [ ], data = [ ], options = { " subtr _ const " : false } ) ...
[ -0.13062861561775208, 0.1353139579296112, 0.6733056902885437, 0.4358375370502472, -0.4277594983577728, -0.2600160837173462, 0.19324737787246704, -0.10818790644407272, 0.09102939814329147, -0.11045767366886139, -0.827470064163208, 0.311530739068985, 0.6910447478294373, 0.29431256651878357, ...
def add _ to _ group ( ctx, user, group ) : result = ctx. sudo ( f'adduser { user } { group }'). stdout. strip ( ) return'adding'in result
[ -0.5376386642456055, 1.3588767051696777, 0.5710549354553223, 0.8705633282661438, -0.37489399313926697, 0.757506251335144, -0.5580710768699646, -0.5321752429008484, -0.8431052565574646, -0.36944782733917236, 0.3446716070175171, 0.48358991742134094, -0.5351113080978394, -0.009566989727318287...
def subpixel _ register ( self, clean _ keys = [ ], threshold = 0. 8, upsampling = 16, template _ size = 19, search _ size = 53, max _ x _ shift = 1. 0, max _ y _ shift = 1. 0, tiled = false ) : matches = self. matches self. subpixel _ offsets = pd. dataframe ( 0, index = matches. index, columns = ['x _ offset ','y _ o...
[ -0.42050647735595703, 0.6064788103103638, 0.7386544942855835, -0.4783589541912079, -0.8678033351898193, -0.029162198305130005, 0.5287347435951233, 0.4451427161693573, -0.20958445966243744, 0.3024284839630127, -0.3573434054851532, 0.05333390459418297, 0.47448286414146423, -0.653965175151825...
def delmode ( self, * args ) : return _ snap. tmmnet _ delmode ( self, * args )
[ -0.14843901991844177, 0.8343549370765686, 0.4678352475166321, 0.047385074198246, 0.1557462364435196, 0.688592791557312, -0.38160499930381775, 0.43603843450546265, -0.07139025628566742, -0.3294122815132141, 0.06129911169409752, -0.5200508236885071, -1.4101910591125488, 0.707065999507904, ...
def _ _ init _ _ ( self, width : int, height : int, t : float, initial = " random " ) : self. _ x = width self. _ y = height # generate a random spin lattice of - 1 and 1 # first generate a random int array of 0s and 1s of size width, height self. _ spins = self. create _ lattice ( initial ) # replace 0 with - 1 self. ...
[ -0.548214316368103, -0.9437130689620972, 0.5203657150268555, -0.435172975063324, -0.5601422190666199, 0.6776813268661499, -0.26616963744163513, 0.2865690290927887, 0.3530026972293854, 0.4446054697036743, -0.6062673926353455, 0.37657514214515686, -0.5956268906593323, 0.5787923336029053, -...
def _ parse _ horizontal _ scroll _ table ( self, table _ html ) : row _ labels = [ parse _ text ( x. text ) for x in table _ html. select ( ". dtfc _ leftbodywrapper tbody tr " ) ] row _ label _ ids = [ none ] * len ( row _ labels ) cols = [ parse _ text ( x. text ) for x in table _ html. select ( ". datatables _ scro...
[ 0.8574817776679993, 0.4355316162109375, 0.7882543802261353, -0.041705455631017685, -0.3914409279823303, -0.20097920298576355, -0.595017671585083, -0.4336301386356354, -0.48248347640037537, -0.1038375124335289, -0.41616323590278625, -0.10643082857131958, 0.5261560082435608, 0.93598997592926...
def update _ application _ info _ 1 ( table, appname, attrib _ name, attrib _ value ) : attr = attrib _ name + " [ " + str ( attrib _ value ) + " ] " print ( attr ) update _ response = table. update _ item ( key = { " application _ name " : appname }, updateexpression = " remove container _ instances [ 0 ] ", returnval...
[ -0.3590363562107086, -1.0273194313049316, 0.46659132838249207, 0.39821773767471313, -1.0513938665390015, 0.041369784623384476, 0.29136189818382263, 0.43932488560676575, -0.7089148163795471, 1.1889262199401855, 0.3443286418914795, 0.31346189975738525, 0.5692821145057678, -0.0282309167087078...
def _ _ init _ _ ( self, element _ info ) : basewrapper. _ _ init _ _ ( self, element _ info, backend. registry. backends ['atspi'] )
[ 0.4851071238517761, -0.1751648485660553, 0.347942978143692, 0.49261847138404846, -0.04490663483738899, 0.5043129920959473, -0.4658740162849426, 0.19544100761413574, 0.4622846841812134, -0.20931150019168854, -0.29217708110809326, 0.03926338627934456, 0.4647914469242096, 0.18501032888889313,...
def get _ trade _ histories ( self, symbol ) : return self. get _ request ('/ api / v1 / market / histories? symbol ='+ symbol )
[ -0.9004711508750916, 1.4127516746520996, 0.3939063251018524, 0.3200497627258301, 0.880167543888092, -0.8104218244552612, 0.05914929136633873, -1.3827917575836182, 0.6450721621513367, -0.12730738520622253, -0.4658544361591339, 1.7253674268722534, 0.23201128840446472, 0.3095535635948181, -...
def getmodenetbyid ( self, * args ) : return _ snap. pmmnet _ getmodenetbyid ( self, * args )
[ 0.05997009575366974, -0.25888410210609436, 0.6502088308334351, 0.6122177839279175, 0.8598811030387878, -0.08560775220394135, -0.2022678703069687, -0.8862776160240173, 0.16915342211723328, -0.388432115316391, -0.09093764424324036, -0.36309826374053955, -1.5205440521240234, 0.405090928077697...
def run ( self ) : for video _ file in self. input _ files : if self. needs _ subtitles ( video _ file ) : logger. info ( " processing file'% s'" % basename ( video _ file ) ) try : self. fetch _ subtitles ( video _ file ) except : logger. info ( " error while processing file'% s'" % video _ file ) else : logger. info ...
[ 0.0887330174446106, -0.42432141304016113, 0.6781085133552551, 1.0535156726837158, 0.540761411190033, 0.4632311463356018, -0.4754233956336975, -0.014336688444018364, -0.7786988019943237, 0.4765566289424896, 0.47575944662094116, 0.5148430466651917, -0.4297548830509186, 1.3334226608276367, ...
def extract _ sdk _ to _ deb _ dir ( self, inzip, deb _ dir, full = false ) : # tack on the prefix prefix = self. prefix _ if prefix. startswith ('/') : prefix = prefix [ 1 : ] path = " % s / % s " % ( deb _ dir, prefix ) os. makedirs ( path ) if full : print ( " extracting full sdk... " ) self. unzip ( inzip, path ) e...
[ -0.6020612716674805, -0.37528863549232483, 0.7656568288803101, 0.10569838434457779, -0.18164178729057312, -1.186254620552063, 0.6137213706970215, 0.33024922013282776, 0.7020961046218872, -0.2302093505859375, 0.1427323967218399, -0.6926145553588867, -0.04731430858373642, 0.6571465730667114,...
def cmd ( self, args, wait = true ) : if use _ vcmd _ module : if not self. cmdchnl. connected ( ) : raise valueerror ( " self. cmdchnl not connected " ) tmp = self. cmdchnl. qcmd ( args ) if not wait : return tmp tmp = tmp. wait ( ) else : if wait : mode = os. p _ wait else : mode = os. p _ nowait tmp = os. spawnlp ( ...
[ 0.21898983418941498, -0.254253089427948, 0.735918402671814, 0.20214927196502686, 0.5082328915596008, 0.6152431964874268, -0.503740131855011, -0.5333658456802368, -0.15771996974945068, -0.19613231718540192, 0.21951894462108612, -0.8608828783035278, -0.8671954870223999, -0.2685726284980774, ...
def grow ( self ) : for m in self. value. next _ move ( ) : g = self. value. make _ move ( m ) self. children. append ( gamestatenode ( g ) ) self. children [ - 1 ]. grow ( ) # grow latest child
[ -0.5245690941810608, 0.9514110088348389, 0.7476991415023804, 0.6876909732818604, 0.3767581880092621, 0.2766042649745941, 0.23309528827667236, -0.6801674365997314, 0.12573537230491638, -0.5749715566635132, -0.1969323456287384, -0.2897789180278778, 0.18686078488826752, -0.08759038150310516, ...
def delifin ( self, * args ) : return _ snap. tintintvv _ delifin ( self, * args )
[ -0.7002867460250854, 0.38194170594215393, 0.8126951456069946, 0.8922054171562195, -0.146867573261261, 0.36709335446357727, 0.0018664386589080095, 0.06547722965478897, -0.20528648793697357, -0.7529339790344238, -0.5821043252944946, 0.8307185173034668, -1.7055010795593262, 0.2859053313732147...
def isfeaturesupported ( self, qsensor _ feature ) : # real signature unknown ; restored from _ _ doc _ _ return false
[ -0.16047704219818115, 0.097439244389534, 0.1528562605381012, 1.116487741470337, -0.06899286061525345, -0.35091108083724976, 0.42192983627319336, 0.25091901421546936, 0.6545659303665161, -0.7353585958480835, -1.021812915802002, -0.9521215558052063, -0.7975603938102722, 0.592054009437561, ...
def img _ processing ( images ) : # # step through the list and search for chessboard corners for idx, fname in enumerate ( images ) : # read image img = mpimg. imread ( fname ) # warp image warped = roadperspectivetransformation ( pfile _ cb, img, hood _ pixels = 0 ) # detect lanes and remove noise lrlanes = lane _ de...
[ -0.32949912548065186, 0.018259702250361443, 0.9530436396598816, -0.25594058632850647, -0.06864393502473831, -0.1081375852227211, 0.7007660269737244, 0.27861377596855164, -0.47783902287483215, 0.394834965467453, -0.19984455406665802, -0.24972224235534668, -0.5914451479911804, 0.456603795289...
def searchforw ( self, * args ) : return _ snap. tintprv _ searchforw ( self, * args )
[ -1.3735885620117188, 0.8521650433540344, 0.5126591920852661, 0.1757459044456482, 0.3766273856163025, -0.44221383333206177, 0.3181507885456085, -0.577928364276886, -1.1832400560379028, -1.1215871572494507, 0.248138427734375, -0.654302179813385, -1.1713566780090332, 1.2246683835983276, -0....
def test _ duration _ plus ( ) : pytest. debug _ func ( ) dur60 = d ( seconds = 60 ) m1 = m ( " 2018 - 02 - 01 05 : 00 : 00 " ) m2 = m ( " 2018 - 02 - 01 05 : 01 : 00 " ) # payload ( duration + moment = > moment ) assert dur60 + m1 = = m2 # payload ( duration + duration = > duration ) assert d ( hours = 1 ) + d ( minut...
[ -0.5351520776748657, 0.5914933085441589, 0.6576135158538818, -0.07827968150377274, -0.6316220164299011, 0.13096344470977783, -0.24796447157859802, -1.4998345375061035, 0.8775497674942017, -0.3871494233608246, -0.8276970982551575, 0.017030373215675354, 1.153361201286316, 0.04719347134232521...
def erfi ( x ) : a = 0. 147 # magic!!! a1 = math. log ( 1 - x * x ) a2 = ( 2. 0 / ( math. pi * a ) + a1 / 2. 0 ) return ( sign ( x ) * math. sqrt ( math. sqrt ( a2 * a2 - a1 / a ) - a2 ) )
[ -0.34029948711395264, -0.0075523825362324715, 0.30380624532699585, -0.00018506713968236, -0.5593331456184387, -0.027850326150655746, 0.08434196561574936, 0.08485226333141327, -0.4433514177799225, -0.1468835026025772, -0.6966192722320557, -0.0604570247232914, -0.4147452712059021, -0.2203612...
def plot _ depth ( self, binning = np. arange ( - 595, 596, 10 ), * * hist _ kwargs ) : args = {'bins': binning,'histtype':'step ','label':'cc { 0 } '. format ( self. detector ) } args. update ( hist _ kwargs ) plt. hist ( ( self. d [ self. s, self. s _ hv ]. a1 - self. d [ self. s, self. s _ lv ]. a1 ) * 10., * * args...
[ 0.6548366546630859, 0.579196572303772, 0.6114822030067444, -0.0689707100391388, 0.03780634328722954, 0.8175784349441528, 0.3526708483695984, 0.1076434999704361, -0.583547055721283, -0.8041133284568787, -0.0805678591132164, 1.1899514198303223, 0.21496757864952087, 0.7367778420448303, 0.40...
def start _ pagerduty _ ingestion ( neo4j _ session : neo4j. session, config : config, ) - > none : common _ job _ parameters = { " update _ tag " : config. update _ tag, } if not config. pagerduty _ api _ key : logger. info ('pagerduty import is not configured - skipping this module. see docs to configure.') return se...
[ -0.4852067828178406, -0.3090987503528595, 0.6967453360557556, -0.6747204661369324, 0.8300758004188538, 0.043466124683618546, 0.03946113958954811, -0.9397176504135132, 0.4302074909210205, 0.9296470284461975, -0.19766639173030853, 0.7887736558914185, 0.5688415765762329, -0.04549076780676842,...
def test _ list _ decimal _ min _ length _ 1 _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - minlength - 2. xsd ", instance = " nistdata / list / ...
[ -0.35437265038490295, -0.7325159311294556, 0.4858364760875702, 0.5559301376342773, -0.4414922595024109, -0.2988312244415283, -0.09582212567329407, -0.2957189977169037, 0.3450118899345398, -0.30053457617759705, -1.452123999595642, 0.06888582557439804, -0.17852501571178436, 0.788929164409637...
def find _ root _ domain ( soa ) : if soa is none : return none domains = soa. domain _ set. all ( ) if domains : key = lambda domain : len ( domain. name. split ( '.') ) return sorted ( domains, key = key ) [ 0 ] # sort by number of labels else : return none
[ 0.31286266446113586, -0.3153352439403534, 0.6048619151115417, -0.43472835421562195, -0.13545967638492584, -0.6505823135375977, 0.1106247752904892, -0.7977478504180908, 0.9959798455238342, -0.3364756405353546, 0.9804788827896118, 1.4697082042694092, -0.04467138648033142, 0.3672253489494324,...
def defrag ( self, onlynodelinks = false ) : return _ snap. tungraph _ defrag ( self, onlynodelinks )
[ -0.880312442779541, 1.0714349746704102, 0.3706871271133423, 0.5866594314575195, 0.5182293057441711, -0.2074720859527588, 1.0648365020751953, 1.1683330535888672, 0.24621853232383728, -1.1699573993682861, 0.1546277105808258, 0.16565796732902527, -0.26553985476493835, 0.7981069684028625, 0....
def test _ would _ schedule _ daily _ update _ next _ run ( self, app _ setup _ to _ add _ job, freeze _ datetime ) : freeze _ datetime. freeze ( self. start _ time _ beautifully ) schedule = models. schedule ( schedule _ type = constants. schedule _ daily, start _ time = self. start _ time _ ugly, * * self. active _ s...
[ -0.7011004090309143, 0.2418805956840515, 0.7665316462516785, 0.306463360786438, -0.21145842969417572, 0.6250521540641785, 0.302430123090744, -0.8268389701843262, -0.3665611743927002, 0.0809776782989502, -0.28619974851608276, 0.29579272866249084, 0.18667851388454437, 0.23457343876361847, ...
def getsubgraph _ pneanet ( * args ) : return _ snap. getsubgraph _ pneanet ( * args )
[ -0.444330632686615, 0.7844845056533813, 0.47684445977211, 1.3502718210220337, -0.4122704863548279, 0.08578450232744217, -0.7298257946968079, -0.4202294647693634, -0.6112574934959412, -1.0802973508834839, -1.2202928066253662, 0.24724635481834412, -0.598024308681488, -0.44412410259246826, ...
def unassign _ all _ from _ sanclient ( self, sanclient _ name ) : driver = self. driver driver. find _ element _ by _ xpath ( " / / span [ contains (.,'manage') ] " ). click ( ) time. sleep ( 2 ) # clients tab driver. find _ element _ by _ xpath ( " / / a [ contains (.,'clients') ] " ). click ( ) # find the element wi...
[ 0.16951462626457214, 0.28705841302871704, 0.8018646836280823, 0.18762974441051483, -0.31570297479629517, 0.03014308586716652, 1.2431385517120361, 0.3223212659358978, -0.25682246685028076, 0.6487311720848083, 0.1126934364438057, 0.2376292645931244, -0.5768423676490784, 0.6470386385917664, ...
def get _ port ( self, sim _ name, port _ name ) : # print sim _ name, port _ name # pytau. start ( self. timers ['get _ port'] ) sim _ data = self. sim _ map [ sim _ name ] comp _ id = sim _ data. port _ map [ port _ name ] # pytau. stop ( self. timers ['get _ port'] ) return comp _ id
[ 0.810299813747406, -0.6068167686462402, 0.48861467838287354, 0.03299838304519653, 0.31878718733787537, -0.06915638595819473, 0.38846853375434875, -0.5334924459457397, 0.07667388767004013, 0.4471873342990875, -0.31648343801498413, 0.6394984126091003, -0.6161730289459229, -0.4403311908245086...
def has _ horovodrun ( ) : return'ompi _ comm _ world _ rank'in os. environ or'horovod _ rank'in os. environ
[ 0.010496757924556732, -0.37461158633232117, 0.40742820501327515, 0.9261357188224792, 0.2877461016178131, 1.131484031677246, -0.32898643612861633, 0.20140643417835236, -0.6779832243919373, 0.17842280864715576, 0.6233178973197937, 0.7729324102401733, -1.1339365243911743, 0.8953058123588562, ...
def test _ get _ year _ wise _ generator _ for _ multiple _ year ( self ) : # setup years = ( 2000, 2001 ) # patch ` extracted _ data _ dir _ path ` to ` test / data ` directory functions. extracted _ data _ dir _ path = \ os. path. join ( os. path. dirname ( _ _ file _ _ ), " data " ) # call to func : func : ` get _ y...
[ -0.15242262184619904, 0.2988176643848419, 0.6643568277359009, -1.0843712091445923, -0.3981606364250183, 0.4350055754184723, 0.10983861237764359, 0.14342717826366425, -0.05791778117418289, -0.9098837971687317, -0.9314791560173035, -0.3687325119972229, 0.6582582592964172, 0.5145663022994995,...
def field _ help ( view, field ) : return view. lookup _ field _ help ( field )
[ 0.06042182445526123, 0.27566462755203247, 0.12804464995861053, -0.8064031004905701, -0.21509672701358795, -0.20720061659812927, 0.5488172173500061, -0.42870283126831055, -0.21513858437538147, -0.018375683575868607, 0.1992502361536026, -0.17178009450435638, 1.1863234043121338, -0.5241450667...
def isin ( self, * args ) : return _ snap. tstrintprv _ isin ( self, * args )
[ -0.6383668184280396, -0.7117902040481567, 0.6078197360038757, -1.5169545412063599, -0.40125733613967896, 0.3500901162624359, -0.033434681594371796, 1.0482414960861206, -1.3385218381881714, 0.06521885842084885, -0.2879698574542999, 0.7638677954673767, -1.1575676202774048, -0.823573052883148...
def reduce _ on _ plateau ( ) : name = " reduce _ on _ plateau " patience = 25 factor = 0. 2 min _ lr = 1e - 6 window _ length = 1 stop _ after _ min = false
[ 0.5803678631782532, -0.6903740167617798, 0.3739699423313141, -0.23111383616924286, -0.016800256446003914, 0.11830467730760574, 0.16362890601158142, -0.18280917406082153, -0.19420607388019562, 0.4054235816001892, -0.8484943509101868, 0.14744286239147186, -0.955001175403595, 0.38232284784317...
def client _ authentication _ required ( self, request, * args, * * kwargs ) : return true
[ -1.5154680013656616, -0.5804804563522339, 0.42624619603157043, 0.7899494171142578, -0.2775355875492096, 1.1734296083450317, 0.3425394594669342, -0.5209484696388245, -0.18912075459957123, 0.10002139210700989, -0.6262970566749573, 0.016666442155838013, -0.6322530508041382, 0.1543337851762771...
def displays1 ( data _ set ) : k = 0 for data in data _ set : if data. dtype is np. dtype ('float32') : data _ uchar = ( ( data - np. amin ( data ) ) / ( np. amax ( data ) - np. amin ( data ) ) * 255 ). astype ( np. uint8 ) else : data _ uchar = data cv2. imshow ( " win _ name " + str ( k ), data _ uchar ) k + = 1 cv2....
[ 0.2592255175113678, 0.03453425318002701, 0.6166315674781799, 0.525540828704834, -1.0485674142837524, 0.24917790293693542, 0.706955075263977, -0.27442458271980286, 0.3295106887817383, 0.3493352234363556, 0.6237475275993347, 1.0938719511032104, -0.11495883017778397, 1.1203794479370117, -0....
def get _ ruptures _ poisson ( self, mag = none, strike = none, dip = none, rake = none, depth = none, timespan = none ) : if timespan : tom = oqhazlib. tom. poissontom ( timespan ) else : tom = none ruptures = list ( self. iter _ ruptures ( tom ) ) # # filter by magnitude, strike, dip, and rake if mag is not none : ru...
[ -0.36298197507858276, 0.45564258098602295, 0.7479367256164551, -0.5398605465888977, 0.4216117262840271, 0.08021686971187592, -0.06492763757705688, -0.04056646674871445, 0.48158764839172363, -0.15159018337726593, 0.10346225649118423, -0.2022356241941452, -0.5381463170051575, -0.133510574698...
def tnotify _ gettypestr ( * args ) : return _ snap. tnotify _ gettypestr ( * args )
[ 0.5537277460098267, 0.6374720335006714, 0.046137720346450806, 0.9213725328445435, 0.8076114058494568, 0.2672894597053528, 0.2414361983537674, -0.883702278137207, -0.9748862385749817, 0.17970287799835205, -0.10546393692493439, -1.4927432537078857, -0.7935003042221069, 0.6526449918746948, ...
def search ( self, types, query, limit = 20 ) : type _ str = ", ". join ( types ) params = {'type': type _ str,'q': query,'limit': limit } results = self. get _ api _ v1 ( " search ", params ) cast = {'artists': artist,'tracks': track,'albums': album,'playlists': playlist, } combined = [ ] if results : for spotify _ ty...
[ -1.053758978843689, -0.18909570574760437, 0.6338321566581726, 0.13908585906028748, 1.2410776615142822, 0.3861289620399475, -0.8713523745536804, -0.9112803936004639, 0.20056883990764618, 0.3618631064891815, -0.042185086756944656, 0.3549419343471527, -0.961417555809021, -0.15138649940490723,...
def parametrize ( cases, ids = none ) : def decorator ( test _ fn ) : argnames = ', '. join ( inspect. getfullargspec ( test _ fn ). args ) theids = [ strip _ parens ( str ( case ) ) for case in cases ] if ids is none else ids return pytest. mark. parametrize ( argnames, cases, ids = theids ) ( test _ fn ) return decor...
[ -0.3120632767677307, 0.12712419033050537, 0.39772483706474304, -0.6160498261451721, 0.7886931300163269, -0.6607337594032288, -0.2896367609500885, 0.17160426080226898, 0.3854808211326599, 0.12299616634845734, 0.6230408549308777, 0.4523218274116516, 0.3596471846103668, 0.16816601157188416, ...
def get _ pets ( ) : conn = none row = { } pets = [ ] try : params = config ( ) conn = psycopg2. connect ( * * params ) cur = conn. cursor ( ) cur. execute ( " select pet _ id, pet _ name, pet _ age, pet _ type from pets order by pet _ name " ) print ( " the number of parts : ", cur. rowcount ) while row is not none : ...
[ 0.49944302439689636, 0.28069984912872314, 0.7793194055557251, 0.06451191753149033, 0.813340961933136, 0.5973978638648987, -1.3597455024719238, -0.08291260153055191, -1.5680502653121948, 0.23815584182739258, -0.19119511544704437, 0.21538963913917542, -0.4984586238861084, 0.6932135224342346,...
def signer _ delivered ( self, signer _ id ) : recipient = self. docusign _ parser. recipients [ signer _ id ] self. update _ signer ( signer _ id, status ='delivered ', status _ datetime = recipient ['delivered'], )
[ -0.06759175658226013, -1.450206995010376, 0.1822139471769333, -0.6478110551834106, -0.5178973078727722, 0.45192840695381165, -1.1943875551223755, 1.0213853120803833, 0.5995992422103882, 0.05930444225668907, -1.9189746379852295, -0.38391199707984924, 0.5189198851585388, 1.1288388967514038, ...
def create _ processor ( self, preprocessor : optional [ callable [ [ text ], text ] ] = none ) - > messageprocessor : # checks that the interpreter and tracker store are set and # creates a processor if not self. is _ ready ( allow _ nlu _ only = true ) : raise agentnotready ( " agent needs to be prepared before usage...
[ -0.44496628642082214, -0.25928792357444763, 0.4861176908016205, -0.8060978055000305, -0.08817195147275925, -0.009700814262032509, -0.06351914256811142, -0.07343025505542755, 0.8985137939453125, -0.009216118603944778, 0.15375052392482758, 0.597883403301239, -0.48436179757118225, 0.761876046...
def getnodeecc _ pungraph ( * args ) : return _ snap. getnodeecc _ pungraph ( * args )
[ -0.5464041233062744, 0.8474230170249939, 0.35348770022392273, 0.4282433092594147, -0.3204740583896637, -0.7900210022926331, 0.6981013417243958, -0.16504326462745667, -0.05928666144609451, -0.23259545862674713, -0.025394868105649948, -0.08155179768800735, 0.005183175206184387, 0.56906545162...
def parse _ literal _ number ( lexer ) : token, tag = lexer. get _ next _ token ( ) if tag! ='int': raise parseerror ('expected an integer literal') return get _ integer _ value ( token, 0, 0xffffffff )
[ 0.6644952297210693, -0.3377396762371063, 0.5958654284477234, -0.3159521818161011, -0.9834274649620056, -0.18504971265792847, -0.8493532538414001, 0.37701869010925293, -0.4495522677898407, -0.4543202817440033, -0.45044243335723877, -0.6008156538009644, -0.1962958425283432, 0.431056320667266...
def track _ alt _ ids ( alt _ ids, obo _ tags, node _ id ) : # make sure we can convert between the alternate ids and their hpo id if " alt _ id " in obo _ tags : for alt _ id in obo _ tags [ " alt _ id " ] : alt _ id = str ( alt _ id ) alt _ ids [ alt _ id ] = node _ id
[ 0.4909840524196625, -0.9198979735374451, 0.40693920850753784, -0.7396498918533325, 1.0840225219726562, 0.5994585156440735, -1.3397077322006226, 0.6229056715965271, -0.21396836638450623, 1.0737981796264648, -0.08248929679393768, 1.6011555194854736, 0.6331286430358887, 0.3025693893432617, ...
def get _ one ( self, id ) : host _ dct = pecan. request. hosts _ rpcapi. get _ computehost ( id ) if host _ dct is none : raise exceptions. notfound ( object = {'host _ id': id } ) return host. convert ( host _ dct )
[ -0.4884292781352997, 0.5666322112083435, 0.23934157192707062, 0.30396556854248047, 0.5155718326568604, 0.21759602427482605, -0.6033138632774353, -0.3800071179866791, -0.19965171813964844, 0.16435715556144714, 0.4295755624771118, 0.9007286429405212, -0.8096791505813599, 0.07452451437711716,...
def test _ example _ input _ one _ edit _ backend _ validation ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ one ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. table. edit _ row ( " dummy _ input _ one " ) input _ pag...
[ -0.26802611351013184, 0.2552880644798279, 0.8259910941123962, 0.2164580076932907, 0.845047652721405, 0.6034453511238098, 0.7241314053535461, -0.056277818977832794, 0.09128500521183014, 0.5374696254730225, -0.6612359881401062, -0.015658948570489883, -0.17654140293598175, 0.11046652495861053...
def round ( x, name = none ) : # pylint : disable = redefined - builtin x = ops. convert _ to _ tensor ( x, name = " x " ) if x. dtype. is _ integer : return x else : return gen _ math _ ops. round ( x, name = name )
[ -0.31015220284461975, 1.0629243850708008, 0.40746960043907166, 0.36085015535354614, -0.3474745750427246, -0.10886457562446594, 0.7253825664520264, -1.204799771308899, 0.2696877717971802, 0.6510359048843384, 0.19284223020076752, 0.389681339263916, 0.2813442349433899, -0.31280946731567383, ...
def loadbooters ( ) : # 的 booterlist = [ booter ( ) ] cwp = os. getcwd ( ) _ logger. debug ('current work path :'+ cwp ) stream = open ( os. path. abspath ( os. path. join ( cwp, _ boot _ yaml ) ),'r') content = yaml. load ( stream ) _ logger. debug ( content ) booters = content. get ( _ node _ booters ) _ logger. debu...
[ -1.1735624074935913, -0.5946985483169556, 0.6645874977111816, 0.7506030201911926, -0.16331684589385986, -0.05336115509271622, 0.707122266292572, -0.29700493812561035, -0.45452964305877686, 0.11230529844760895, -0.671681821346283, 0.0733068659901619, -0.8087663054466248, 1.244870901107788, ...
def test _ get _ maximum _ reserve _ drive _ count ( self ) : with patch ( self. netapp _ request _ func ) as netapp _ request : netapp _ request. return _ value = ( 200, self. expansion _ ddp _ drive _ data ) with patch ( self. drives _ property, new _ callable = propertymock ) as drives : drives. return _ value = sel...
[ 0.14345110952854156, 0.26079824566841125, 0.432659775018692, -0.31998318433761597, 0.9550739526748657, -0.023265115916728973, 0.20543701946735382, 0.36326083540916443, 0.19789953529834747, -0.4290493428707123, -0.13440729677677155, -0.11525807529687881, -0.5725492835044861, -0.261231273412...
def get _ link _ angular _ geometric _ jacobian ( self, link : str, q : arraytype, base _ link : str ) - > casadiarraytype : j = self. get _ link _ geometric _ jacobian ( link, q, base _ link ) return j [ 3 :, : ]
[ -0.35876235365867615, -0.6158251762390137, 0.14486992359161377, 0.25637421011924744, 0.3222219944000244, 0.16532015800476074, -0.4327431619167328, -0.8120870590209961, -0.014916791580617428, -0.33963456749916077, 0.5088656544685364, 1.5178419351577759, 0.009601475670933723, -0.341137200593...
def add ( self, v ) : hashes = np. bitwise _ xor ( self. _ masks, hash ( v ) ) self. _ hashes = np. minimum ( self. _ hashes, hashes )
[ -0.2511211335659027, -0.2069493681192398, 0.3471488952636719, 0.48485955595970154, 0.7436836361885071, 0.2676575481891632, 0.17972315847873688, -0.7524504661560059, 0.9258840680122375, -0.23831291496753693, -0.6705643534660339, -0.023207589983940125, -0.35114774107933044, -0.10445182770490...
def getsattrvn ( self, * args ) : return _ snap. pneanet _ getsattrvn ( self, * args )
[ -0.5755062699317932, -0.23509472608566284, 0.42945408821105957, 0.39979618787765503, 0.6757941246032715, 0.22321608662605286, 0.21025747060775757, -0.07212554663419724, 0.0929628312587738, -1.3391261100769043, -0.6928351521492004, 0.3189305067062378, -0.31783631443977356, 0.925839304924011...
def get _ command _ description ( self, command ) - > str : if not command. short _ doc : # check if it has any brief return'there is no documentation for this command currently'else : return command. short _ doc. format ( prefix = self. clean _ prefix )
[ 0.90703946352005, -0.34685271978378296, 0.42061030864715576, 0.04098360985517502, 0.3741035461425781, -0.017052076756954193, -0.4141850769519806, -0.05320218950510025, 0.8231939077377319, 0.12251145392656326, 1.1906708478927612, 1.306436538696289, 0.22861255705356598, 1.9495314359664917, ...
def searchbinleft ( self, * args ) : return _ snap. tstrintprv _ searchbinleft ( self, * args )
[ -0.5241192579269409, -0.5312541723251343, 0.06199485436081886, -0.6072420477867126, 0.7547862529754639, 1.6178404092788696, -0.5539444088935852, -0.7175745964050293, -1.3153682947158813, 0.2876741290092468, -0.7834048271179199, 0.0875527486205101, -1.5794365406036377, 0.16984526813030243, ...
def settoken ( self, tokenno ) : self. tokenno = tokenno # in case the headers were purposely wiped if self. headers! = { } : self. headers = {'user - agent': self. useragent,'authorization': " bearer " + self. tokenno }
[ -0.41926413774490356, -0.18785704672336578, 0.4250153601169586, 0.1532626748085022, -0.14824429154396057, -0.4407723546028137, -0.21983128786087036, 0.7342448830604553, 0.5398106575012207, -1.2736233472824097, -0.9625540375709534, 0.7782554626464844, 0.7458115816116333, 0.12215110659599304...
def _ format _ to _ pattern ( self, alias _ format ) : kwargs = { } # step 1 : extract action alias arguments so they can be used later # when calling the stackstorm action. tokens = re. findall ( r " { { (. *? ) } } ", alias _ format, re. ignorecase ) for token in tokens : name = val = none for i, v in enumerate ( tok...
[ 0.20771676301956177, -0.6998213529586792, 0.7528369426727295, -0.9315223097801208, -0.03903365880250931, -0.7905662655830383, -0.3066752552986145, 0.6096254587173462, -0.7097187638282776, 0.7256034016609192, -0.19644823670387268, 0.3710993826389313, 0.39128628373146057, 0.6346456408500671,...
def import _ ovpn ( config : str, private _ key : str, certificate : str ) - >'nm. connection': target _ parent = path ( mkdtemp ( ) ) target = target _ parent / " eduvpn. ovpn " write _ config ( config, private _ key, certificate, target ) connection = ovpn _ import ( target ) connection. normalize ( ) rmtree ( target...
[ -0.8837542533874512, -0.23190373182296753, 0.37762215733528137, 0.6358134746551514, -0.1992248296737671, 0.33283454179763794, -0.24178820848464966, 0.04289889335632324, 0.5682196617126465, 1.4473098516464233, -0.04992951825261116, 0.16763073205947876, -0.21109892427921295, -1.2639566659927...
def begmmni ( self, * args ) : return _ snap. tmodenet _ begmmni ( self, * args )
[ -0.06688947230577469, 0.023652447387576103, 0.12762194871902466, -0.14829041063785553, 1.0412168502807617, -0.07338868081569672, 0.08332302421331406, -0.5826457738876343, -0.9789866209030151, 0.28585684299468994, -0.08079994469881058, 0.027025999501347542, -0.9368688464164734, 0.1037870496...
def scenariosfromexperiments ( self, addtoset ) : assert isinstance ( addtoset, scenarioset ) scenario _ numbers = list ( range ( len ( self. pest. callback _ data ) ) ) prob = 1. 0 / len ( scenario _ numbers ) for exp _ num in scenario _ numbers : # # print ( " experiment number = ", exp _ num ) model = self. pest. _ ...
[ -0.46254870295524597, -0.12350552529096603, 0.33822014927864075, 0.4961857497692108, 0.5573953986167908, 0.16778896749019623, 0.37905025482177734, -0.3931853175163269, 0.16442622244358063, 0.24116170406341553, -0.02991681918501854, -0.8355591893196106, 0.27304214239120483, 0.47650435566902...
def getpivotvaln ( self, * args ) : return _ snap. tintfltkdv _ getpivotvaln ( self, * args )
[ -0.49949851632118225, 0.11498817056417465, 0.22179028391838074, 1.1018980741500854, -0.29654595255851746, -0.6568240523338318, -0.2923586070537567, 0.5215867757797241, -0.8005456924438477, -1.3384443521499634, -0.43374505639076233, -0.18161803483963013, 0.3402365744113922, 1.23052442073822...
def assertextensions ( self, expected ) : extensions = dist. getextensions ( ) names = [ extension. name for extension in extensions ] self. assertequal ( sorted ( names ), expected )
[ -0.022746747359633446, 0.29757943749427795, 0.2580703794956207, 0.4866653084754944, 0.3576242923736572, 0.25078850984573364, -0.4635049104690552, -0.17402802407741547, 1.2874969244003296, 0.5848807096481323, -0.32080352306365967, 0.11911641061306, -0.2118309736251831, 0.2928895354270935, ...
def create _ target _ update _ ops ( self, target _ scope, online _ scope, tau = 1e - 3, name = " target _ update " ) : with self. _ graph. as _ default ( ) : target _ params = tf. get _ collection ( tf. graphkeys. trainable _ variables, scope = target _ scope ) online _ params = tf. get _ collection ( tf. graphkeys. t...
[ -0.5626416802406311, -0.9470083117485046, 0.6026453375816345, -0.13584518432617188, 0.22847695648670197, -0.34327295422554016, -0.24983185529708862, 0.023104051128029823, -0.7381490468978882, 1.440312147140503, 0.35904401540756226, 0.33370938897132874, 0.2705942988395691, -0.78337657451629...