text
stringlengths
25
2.19k
embedding
listlengths
768
768
def midpoint ( a, b ) : p = ( a + b ) / 2. 0 # now normalize... l = np. sqrt ( np. sum ( p * p, axis = - 1 ) ) l = two _ d ( l ) return p / l
[ 0.7292786240577698, -0.6909438371658325, 0.5485188364982605, -0.05547739565372467, 0.019417334347963333, -0.18309888243675232, -1.2140967845916748, 0.24460774660110474, 1.048156976699829, 0.8073976039886475, 1.0223103761672974, 0.08443648368120193, -0.9249074459075928, -0.34345102310180664...
def getdevicemanagementrequest ( self, requestid ) : mgmtrequests = apiclient. mgmtsinglerequest % ( self. host, requestid ) r = requests. get ( mgmtrequests, auth = self. credentials, verify = self. verify ) status = r. status _ code if status = = 200 : self. logger. debug ( " retrieving single management request " ) ...
[ -1.6852284669876099, 0.08963596075773239, 0.5080100893974304, -0.001023850403726101, 0.16517138481140137, -0.39661046862602234, -0.12424467504024506, -0.9644433856010437, 0.7009517550468445, -0.1960097849369049, 0.5588623285293579, 1.2135828733444214, -0.8090062737464905, 1.019592404365539...
def get _ params ( self ) : default _ params = { " entry _ level " : " routes ", " maximum _ query _ count " : 0, " minimum _ threshold " : 0, " maximum _ threshold " : 0, " filter _ string " : " ", " entry _ tests " : { }, " exclude _ tests " : [ ] } params = self. apply _ default _ params ( default _ params ) return ...
[ 0.03237279877066612, 0.1373351514339447, 0.3557913303375244, 0.1397792398929596, 0.971253514289856, -0.08987327665090561, -0.057048261165618896, 0.5522280931472778, -0.4154011607170105, -0.0683174654841423, -0.4747920036315918, 0.08354771882295609, -0.5775180459022522, 1.076073169708252, ...
def tableexists ( tablename, conn = none ) : if conn = = none : conn = sqlite3. connect ( os. getenv ('dbname') ) c = conn. cursor ( ) c. execute ( " select count ( name ) from sqlite _ master where type ='table'and name ='{ }'". format ( tablename ) ) if c. fetchone ( ) [ 0 ] = = 1 : flag = true else : flag = false co...
[ -0.2934549152851105, 0.04967359080910683, 0.9129754900932312, 1.243997573852539, 0.028822673484683037, 0.4329092502593994, -0.04792093485593796, 1.0274271965026855, -0.3223692774772644, 0.21177783608436584, -0.31855159997940063, -0.6616241931915283, -0.8127822875976562, 0.2248212695121765,...
def _ _ init _ _ ( self, completed _ on = none, image = none, script _ commands = none, setup _ commands = none, started _ on = none, state = none, uuid = none ) : # noqa : e501 # noqa : e501 self. _ completed _ on = none self. _ image = none self. _ script _ commands = none self. _ setup _ commands = none self. _ star...
[ 0.2366579920053482, -0.12099589407444, 0.36444658041000366, 0.11687763780355453, -0.11060202121734619, -1.3902314901351929, 0.14343582093715668, 0.5244220495223999, 0.42001038789749146, 0.2516483962535858, -0.660225510597229, 0.13103513419628143, 0.3811349868774414, 0.4159530699253082, 0...
def _ _ copy _ _ ( self ) : new _ om = self. _ _ class _ _ ( * * self. mapping ( ) ) return new _ om
[ -0.6585348844528198, -1.4223239421844482, 0.7289506793022156, 0.5608120560646057, -1.5138994455337524, 0.4407446086406708, 0.18068283796310425, -0.5456481575965881, 1.3986790180206299, -0.032469265162944794, 0.22740128636360168, -0.2744525671005249, 0.10057979077100754, -0.8600801825523376...
def move _ wrapper ( board, player, trials ) : move = mm _ move ( board, player ) assert move [ 1 ]! = ( - 1, - 1 ), " returned illegal move ( - 1, - 1 ) " return move [ 1 ]
[ -0.8939298987388611, -0.47018107771873474, 0.3076498210430145, 0.9634543657302856, -0.675717294216156, -0.12355278432369232, -0.42841723561286926, -0.22379666566848755, -0.09671268612146378, 0.7519123554229736, 1.3162195682525635, 0.7019662857055664, -0.4512726664543152, -0.461713820695877...
def submit ( self, notes ='' ) : if self. state! = states. open : raise valueerror, " only open changes can be submitted for approval. " self. comments. create ( commenter = self. indexer, text = notes, old _ state = self. state, new _ state = states. pending ) self. state = states. pending self. save ( )
[ -0.5183752179145813, -0.013060891069471836, 0.5353659391403198, -0.1891925036907196, 0.5569693446159363, 0.34307384490966797, 0.1684039682149887, 0.23295621573925018, -0.40229788422584534, 0.0745651051402092, 0.19325780868530273, 0.5277026891708374, -0.8270243406295776, 0.02355205826461315...
def test02 _ calculate _ quality _ risk ( self ) : self. dut. phase _ id = 3 # pdr self. dut. lst _ sftw _ quality = [ [ ], [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ] _ error _ code = _ calculate _ quality _ risk ( self. dut ) self. assertequal ( _ error _ code, 0 ) self. asse...
[ -0.5380375385284424, -0.21343384683132172, 0.884884774684906, -0.251341313123703, 0.2858811616897583, -0.06744543462991714, -0.29648905992507935, 0.04116833209991455, -0.23663738369941711, -0.05009091645479202, -0.9078201651573181, -0.19721288979053497, 0.04098686948418617, 0.0014336165040...
def _ copy ( self ) : e = experimentconfigbuilder ( ) e. config ['id'] = self. config. get ('id') e. config ['task'] = deepcopy ( self. config. get ('task') ) e. config ['backend'] = deepcopy ( self. config. get ('backend') ) e. config ['dataset'] = self. config. get ('dataset') e. config ['analyzers'] = self. config. ...
[ -0.3238963782787323, -0.3222598731517792, 0.6722837090492249, 0.07405021041631699, -0.8277953267097473, 0.056133437901735306, 0.22976864874362946, 0.6667960286140442, -0.27402374148368835, 0.8127129673957825, -0.22190679609775543, 0.039228688925504684, -0.3044656813144684, 0.03236835822463...
def put _ many ( self, type : type [ t ], items : iterable [ t ] ) - > none : logger. info ( " getting sinkhandlers for \ " { type } \ " ". format ( type = type. _ _ name _ _ ) ) try : handlers = self. _ put _ types [ type ] except keyerror : try : logger. info ( " building new sinkhandlers for \ " { type } \ " ". form...
[ -1.943920612335205, 0.243392214179039, 0.7911083698272705, -0.24961687624454498, 1.1271744966506958, -0.3498591184616089, -0.08571311086416245, -0.5209739804267883, -0.09504019469022751, 0.42100629210472107, -0.9704079627990723, 0.26975882053375244, -0.5135083794593811, 0.44596973061561584...
def count ( self ) : return self. _ json. get ( prop _ collection _ member _ count, 0 )
[ -0.09297648072242737, -0.752531111240387, 0.30897074937820435, -0.33519265055656433, 1.4923880100250244, 0.7520712018013, -0.538291335105896, -0.30834153294563293, -0.9988467693328857, -0.522006094455719, -0.5133921504020691, 0.33405765891075134, -0.7151127457618713, -0.9616987705230713, ...
def create ( clss, * args, * * kwargs ) : obj = clss ( * args, * * kwargs ) db. session. add ( obj ) db. session. flush ( ) return obj
[ -0.4566362500190735, -0.38295575976371765, 0.6237030029296875, 0.1413733810186386, 0.45556849241256714, 0.8807681202888489, 0.039832379668951035, -0.6178250908851624, 0.07273036241531372, -0.48421382904052734, -0.40234315395355225, -0.127584308385849, -0.2146250307559967, -0.03303524851799...
def test _ atomic _ id _ white _ space _ nistxml _ sv _ iv _ atomic _ id _ white _ space _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - whitespace - 1. xsd ", instance = " nistdata / atomic / id / schema...
[ -0.04484234005212784, -0.30927664041519165, 0.34916284680366516, -0.07868456095457077, -0.37140318751335144, -0.008128204382956028, 0.7333588600158691, -0.7229416370391846, 0.7224692702293396, 0.802864670753479, 0.020730918273329735, 0.4872458279132843, -0.11375705897808075, 1.060075283050...
def _ _ init _ _ ( self, fwk, config _ file _ list, platform _ file _ name, compset _ list ) : # ref to framework # self. timers = make _ timers ( ) # start ( self. timers ['_ _ init _ _'] ) # pytau. start ( self. timers ['_ _ init _ _'] ) self. fwk = fwk self. event _ mgr = none self. data _ mgr = none self. resource ...
[ 0.512881338596344, -0.2741227149963379, 0.6111604571342468, 0.7810539603233337, 0.14454588294029236, -0.23151908814907074, 0.7761823534965515, 0.05147400125861168, -0.3626094460487366, -0.4027012586593628, -0.6109088063240051, -0.7563870549201965, 0.40664610266685486, 1.685373067855835, ...
def ondeletebuttonclicked ( self ) : self. _ pandacontroller. deleteselectedobject ( )
[ 0.7426540851593018, -0.7599417567253113, 0.18888382613658905, 0.41850021481513977, 0.8316461443901062, 0.38885238766670227, 1.1484675407409668, -0.4062890410423279, 0.6118816137313843, -0.7951328754425049, -0.44370073080062866, 0.6051758527755737, 0.6012003421783447, -0.8860145211219788, ...
def setupclient ( ) : try : conn = client ( ('localhost ', default _ tcp _ logging _ port ) ) except socket. error as e : logger. exception ( e ) else : return conn
[ 0.675832986831665, -0.2623986005783081, 0.40950560569763184, -0.13384824991226196, 0.41440513730049133, -0.2889433801174164, 0.20303387939929962, 0.15155498683452606, -0.8042248487472534, -0.48229363560676575, 0.6979847550392151, -0.09697437286376953, -0.47567954659461975, -0.8931964039802...
def get _ up _ since ( client, machine _ id ) : return client. get _ juju _ output ('run ','- - machine ', machine _ id,'uptime - s')
[ -0.15913695096969604, 1.2791943550109863, 0.6588839888572693, 0.5375104546546936, -1.174492359161377, -0.313370943069458, -0.560489296913147, -0.2658050060272217, -1.3833673000335693, 0.6326900720596313, -0.5655973553657532, 0.8287809491157532, -0.4597041606903076, 0.26882725954055786, 0...
def combsimp ( expr ) : expr = expr. rewrite ( gamma, piecewise = false ) if any ( isinstance ( node, gamma ) and not node. args [ 0 ]. is _ integer for node in preorder _ traversal ( expr ) ) : return gammasimp ( expr ) ; expr = _ gammasimp ( expr, as _ comb = true ) expr = _ gamma _ as _ comb ( expr ) return expr
[ -1.1832767724990845, 0.4569514989852905, 0.6176432371139526, 0.6290594339370728, -0.15030527114868164, -0.4704377055168152, 0.79183429479599, 0.19292084872722626, 0.8539329171180725, 0.4686451256275177, -0.060161836445331573, -0.5259063839912415, -0.44941049814224243, 0.2061101645231247, ...
def get _ link _ transform ( self, link : str, q : arraytype, base _ link : str ) - > casadiarraytype : t _ l _ w = self. get _ global _ link _ transform ( link, q ) t _ b _ w = self. get _ global _ link _ transform ( base _ link, q ) return t _ l _ w @ invt ( t _ b _ w )
[ -0.18016614019870758, -0.438008576631546, 0.4164922535419464, -0.2280978560447693, 0.6469354629516602, -0.7810309529304504, -0.4261026680469513, -0.21488681435585022, 0.3292796313762665, -0.20797838270664215, -0.6321269869804382, 1.3489718437194824, -0.910239577293396, -0.14552485942840576...
def restore ( self, name : str ) - > none : self. _ archive _ or _ restore ( name = name, is _ archived = false )
[ 0.2696338891983032, 0.04082970321178436, 0.39945128560066223, 0.08861089497804642, 0.1315842866897583, -0.31903979182243347, -0.5426608920097351, 0.3350241184234619, 0.6646538972854614, 0.19257435202598572, 0.03847638890147209, 0.30013495683670044, -0.3890650272369385, -0.5615083575248718,...
def strip _ quotes ( self, s ) : single _ quote = "'" double _ quote ='"'if s. startswith ( single _ quote ) and s. endswith ( single _ quote ) : s = s. strip ( single _ quote ) elif s. startswith ( double _ quote ) and s. endswith ( double _ quote ) : s = s. strip ( double _ quote ) return s
[ -0.29291561245918274, -1.0335924625396729, 0.4364076256752014, -0.12757179141044617, 0.05558491870760918, 0.06401577591896057, 0.42075279355049133, 0.20718911290168762, 0.5600793361663818, 0.08391726016998291, 0.20266768336296082, 1.1354315280914307, 0.2421468198299408, 0.1227027028799057,...
def test _ list _ decimal _ length _ 2 _ nistxml _ sv _ iv _ list _ decimal _ length _ 3 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - length - 3. xsd ", instance = " nistdata / list / decimal / schem...
[ 0.07673753798007965, -0.05123084411025047, 0.5161528587341309, 0.2773016095161438, 0.06324148178100586, 0.20037348568439484, -0.19453632831573486, 0.4470495879650116, 0.6738656759262085, 0.5310916900634766, -1.4332138299942017, -0.39348170161247253, 0.13754692673683167, 0.32455265522003174...
def load _ instances _ with _ any _ tags ( resource _ type : types, tags : tuple [ str ] ) - > tuple [ any ] : instances = [ ] for ( _, instance _ class ) in commonresourceutils. load _ all _ instances ( resource _ type ) : for tag in tags : if not hasattr ( instance _ class, tag ) : continue instances. append ( instan...
[ -0.565152645111084, 0.07068128883838654, 0.5091184973716736, -0.2838813066482544, 0.16093848645687103, -0.29038143157958984, -1.0919842720031738, -1.0378577709197998, -1.2401078939437866, 0.6415465474128723, -0.24708591401576996, -1.1340581178665161, -0.6361211538314819, 1.2397851943969727...
def test _ directed _ edge _ get ( self ) : v0 = directedvertex ( val ='v0') v1 = directedvertex ( val ='v1') e01 = directededge ( ( v0, v1 ), attrs = {'weight': 5 } ) self. assertequal ( e01. get ('weight'), 5 ) self. assertisnone ( e01. get ('notthere') )
[ 0.015302697196602821, -0.29680556058883667, 0.47358155250549316, 0.2195298671722412, 0.2948154807090759, 0.6322675347328186, -0.24995000660419464, -0.4573487341403961, -0.6561588644981384, -0.4986080825328827, -0.4378775954246521, 0.022828320041298866, -0.3801501393318176, -0.2537823021411...
def sum _ of _ squares ( num _ list ) : sum _ of _ squares = 0 for num in num _ list : sum _ of _ squares + = ( num * * 2 ) return sum _ of _ squares
[ -0.24990572035312653, 0.008605999872088432, 0.37028825283050537, 0.7492928504943848, 0.5051479339599609, -0.2726747691631317, 0.5648625493049622, -0.0553421825170517, 0.9573323726654053, 0.29851406812667847, -1.7183059453964233, 0.030609766021370888, 0.10700591653585434, 0.9825693368911743...
def dropout ( self ) : return self. _ dropout
[ 0.4128943681716919, 0.04316563159227371, 0.1593986600637436, 0.07526969164609909, -0.023733964189887047, 1.1143038272857666, 0.8201679587364197, 0.37490004301071167, -0.376211017370224, -0.2232075035572052, -0.24381692707538605, 0.08652285486459732, -0.4859519302845001, -0.9590016007423401...
def test _ atomic _ base64 _ binary _ enumeration _ 4 _ nistxml _ sv _ iv _ atomic _ base64 _ binary _ enumeration _ 5 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / base64binary / schema + instance / nistschema - sv - iv - atomic - base64binary - enumeration - 5. xsd ...
[ -0.7581135034561157, -0.6023480296134949, 0.4931313693523407, 1.430316686630249, -0.0685068741440773, 0.01108356099575758, 0.7152540683746338, -0.5396449565887451, -0.30848902463912964, 0.876494288444519, -0.6498528718948364, 0.1451863944530487, -0.9169654250144958, 0.2994690239429474, 0...
def fast _ charger _ type ( self ) - > str : return self. _ vehicle _ data. get ( " charge _ state ", { } ). get ( " fast _ charger _ type " )
[ -0.0917026549577713, 0.0017908280715346336, 0.3158513009548187, 0.5854058861732483, 0.8867821097373962, -0.32148459553718567, -0.8097055554389954, -0.8309471011161804, 0.12727776169776917, -0.631172239780426, -0.2132153958082199, 0.2379147857427597, 0.7131625413894653, 0.7736287117004395, ...
def test _ atomic _ any _ uri _ pattern _ nistxml _ sv _ iv _ atomic _ any _ uri _ pattern _ 1 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - pattern - 1. xsd ", instance = " nistdata / atomic / anyu...
[ -0.29681020975112915, -0.35900527238845825, 0.508108377456665, 1.0526068210601807, -0.32552722096443176, -0.008422992192208767, 0.7511205077171326, 0.013643264770507812, -0.13464219868183136, 0.09574130922555923, 0.14304402470588684, -0.31014883518218994, -0.5035288333892822, 0.22546914219...
def test _ list _ integer _ length _ 3 _ nistxml _ sv _ iv _ list _ integer _ length _ 4 _ 2 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - length - 4. xsd ", instance = " nistdata / list / integer / schem...
[ -0.3687121272087097, -0.3456781208515167, 0.30396661162376404, 0.1891818642616272, -0.4647360146045685, -0.16179004311561584, -0.6216458678245544, 0.23886041343212128, 0.6225277185440063, 0.7210677266120911, -1.178663969039917, -0.5172418355941772, -0.37427857518196106, 0.5891538262367249,...
def cli _ format _ error ( message : str ) - > str : return " { } { } ". format ( colorama. fore. red + " error : " + colorama. style. reset _ all, message )
[ 0.1587049961090088, 0.014495711773633957, 0.5681915879249573, -0.07338950037956238, 0.31873419880867004, 0.16599608957767487, -0.5087053179740906, -0.5283522605895996, -0.22378794848918915, 0.20241504907608032, 1.451512336730957, 1.2599477767944336, 0.022106263786554337, 0.8659370541572571...
def _ getwordcategory ( word, words _ category _ index ) : if word in words _ category _ index : return words _ category _ index [ word ] else : return none
[ 0.8168372511863708, 0.16424117982387543, 0.4698803126811981, -1.072504997253418, -0.05897815525531769, -1.0363374948501587, -0.25448518991470337, -0.7951329946517944, -0.10865535587072372, -0.19097565114498138, 1.3039261102676392, 1.2374439239501953, 0.2897520065307617, -0.2795351445674896...
def has _ object _ permission ( self, request, view, obj ) : return self. has _ object _ permission _ static ( request, obj )
[ -1.04590904712677, -0.05063105747103691, 0.6014326214790344, 1.2838548421859741, -0.4486631453037262, 0.269526869058609, 0.9190020561218262, -0.4613739848136902, 0.3985511362552643, 0.26830825209617615, -0.22440791130065918, -0.1811418980360031, 0.7751445174217224, 0.04546472430229187, -...
def get _ ospf _ neighbor _ count ( device, expected _ state = none, output = none, max _ time = 60, check _ interval = 10 ) : try : if output : out = device. parse ('show ospf neighbor ', output = output ) else : out = device. parse ('show ospf neighbor') except schemaemptyparsererror : return 0 # example out out # { ...
[ 0.31486645340919495, 0.40534237027168274, 0.5406282544136047, 0.32050788402557373, -0.30964112281799316, -0.1090259701013565, -0.014971503056585789, 0.5924341082572937, -0.7570149302482605, -0.26519596576690674, -0.33815065026283264, 0.0023424718528985977, -0.24864031374454498, 0.141811802...
def get _ df ( pi, lambda _, ws, params ) : pths, shocks = sample _ path ( ws, params, lambda _ = lambda _, w0 =. 9, nseries = 1000, nperiods = 100 ) df = pd. dataframe ( pths ) return df
[ 0.19193482398986816, 0.5469558238983154, 0.26572325825691223, -0.21751157939434052, 0.22786441445350647, -0.5034391283988953, 0.431027889251709, -0.10667058080434799, -0.08016786724328995, -0.31919097900390625, 0.5859535336494446, 0.8676487803459167, -0.04527051001787186, -0.39573210477828...
def load _ plugin ( self, name, add _ searchpaths = [ ] ) : sp = self. searchpaths [ : ] sp. extend ( add _ searchpaths ) if name in self. plugins : return self. plugins [ name ] r2 = none for f in self. finders : r = f. find ( sp, name ) if r [ 0 ] = = true : r2 = r [ 1 ] r2. load ( ) if r2 = = none : raise nameerror ...
[ -0.30288514494895935, -0.4485929608345032, 0.5735991597175598, 0.3799276053905487, -0.015898745507001877, -0.37821459770202637, 0.047886960208415985, -1.1786891222000122, 0.5790500044822693, 0.04363008961081505, -0.6732576489448547, 0.08940722793340683, -1.1902004480361938, -0.330930411815...
def threads _ status _ as _ string ( self ) : status ='{ } active threads, { } finished threads. \ n '. format ( len ( self. _ active _ workers ), len ( self. _ finished _ workers ) ) status + ='active threads :'for dw in self. _ active _ workers : status + ='\ n'+ dw. status _ str ( ) if self. _ finished _ workers : s...
[ -0.040097471326589584, -1.9268314838409424, 0.6004360318183899, -1.1908892393112183, 0.12123703956604004, 0.5008074641227722, -0.39671510457992554, -0.5949978232383728, 0.03589687496423721, 0.4792751669883728, 0.14841243624687195, 0.2942637503147125, -0.16223958134651184, 0.171966671943664...
def x ( self ) : return self. _ x
[ -0.34922724962234497, 0.4157586991786957, 0.1356298327445984, -0.13350841403007507, -0.20403695106506348, 1.4457114934921265, 0.24057817459106445, -0.0018899115966632962, 0.7805531024932861, -1.507206678390503, -0.8887510895729065, 0.7889201641082764, 0.3562729060649872, -1.267579674720764...
def _ create _ invoice _ lines ( self, cr, uid, ids, vals ) : return self. pool. get ('account. invoice. line'). create ( cr, uid, vals )
[ -0.0032006846740841866, -0.3339187800884247, 0.06605561822652817, 0.03458345681428909, 1.0432292222976685, 0.5686423778533936, -1.3181061744689941, -0.3167381286621094, 0.3558679223060608, -0.6263682842254639, 0.24056625366210938, -0.21830900013446808, -0.5660165548324585, -0.8606891632080...
def _ verify _ results ( self, results ) : verified _ results = [ ] for cnt, matches in enumerate ( results ) : if cnt > len ( results ) * 0. 05 : # only check top 5 percent of results break verified _ results. append ( matches ) # if isinstance ( matches, self. fingerprintlist ) : for dbfp, qfp in matches : # in order...
[ 0.3267320990562439, 0.3879215717315674, 0.6978594660758972, 0.19424037635326385, 0.25590482354164124, 0.40328460931777954, 0.9304359555244446, -0.38799408078193665, -0.16536401212215424, -0.20020507276058197, -0.30737754702568054, -1.0287387371063232, -1.274087905883789, 0.7660649418830872...
def run ( self ) : self. _ last _ page _ count = 0 while true : self. _ stop _ event. wait ( self. _ dump _ period _ secs ) if self. _ stop _ event. is _ set ( ) : return self. _ handleoneperiod ( )
[ -0.7730478644371033, -0.3342494070529938, 0.705110490322113, -0.521573543548584, 0.30350378155708313, 0.2374652624130249, 0.3923039734363556, -0.5557028651237488, -0.01954021118581295, -1.1685315370559692, 0.705809473991394, -0.6934521198272705, -0.8630208373069763, -0.3093894124031067, ...
def download ( self, filename = none, chunk _ size = 100 * 1024, revision = none ) : if filename is none : filename = self. title ( as _ filename = true, with _ ns = false ) filename = os. path. expanduser ( filename ) if revision is none : revision = self. latest _ file _ info req = http. fetch ( revision. url, stream...
[ 0.15306821465492249, -0.17734210193157196, 1.0930169820785522, 0.7241714596748352, 0.06261710822582245, 0.5590383410453796, -0.70147705078125, 0.43114638328552246, -0.786253035068512, -0.09927457571029663, 0.5140954852104187, -0.40187138319015503, -0.46092459559440613, 0.03247186541557312,...
def on _ error ( ws, error ) : print _ ( error, fileout ) return
[ 0.7527464032173157, -0.9113661646842957, 0.20877763628959656, 0.09126675128936768, -0.3387053608894348, -0.7474339604377747, 0.3021802306175232, 0.02288222685456276, 0.012079564854502678, -0.0934549942612648, 0.07667718082666397, 1.1542484760284424, 0.12136320769786835, 0.6517490148544312,...
def test _ list _ integer _ max _ length _ 1 _ nistxml _ sv _ iv _ list _ integer _ max _ length _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / integer / schema + instance / nistschema - sv - iv - list - integer - maxlength - 2. xsd ", instance = " nistdata / list / ...
[ -0.6164339184761047, -0.4499693512916565, 0.28585344552993774, 0.9096116423606873, -0.760775089263916, 0.05492570623755455, -0.16160233318805695, 0.2362527698278427, 0.34772369265556335, 0.5991472005844116, -1.423927903175354, -0.03972836956381798, -0.2109558880329132, 1.178813099861145, ...
def exclude _ index ( lst, index ) : return lst [ : index ] + lst [ index + 1 : ]
[ -0.2551000118255615, 0.3484518229961395, 0.41251876950263977, -0.06525178998708725, -1.2770212888717651, 1.0762311220169067, -0.2720092535018921, 0.1382579803466797, 1.2113189697265625, 0.16696825623512268, -1.1923890113830566, 0.7609505653381348, -1.135362148284912, -1.4274630546569824, ...
def get _ global _ link _ linear _ jacobian ( self, link : str, q : arraytype ) - > casadiarraytype : j = self. get _ global _ link _ geometric _ jacobian ( link, q ) return j [ : 3, : ]
[ 0.551787793636322, -0.44702595472335815, 0.21429358422756195, 0.11632432788610458, -0.16704502701759338, 0.6415174007415771, -0.22090798616409302, -0.5786730647087097, 0.590239942073822, -0.16074424982070923, -0.28299880027770996, 1.9064860343933105, -0.8735712170600891, -0.169314742088317...
def read _ yaml ( filepath ) : with open ( filepath ) as f : d = yaml. load ( f ) return d
[ 0.2990139126777649, -0.3451541066169739, 0.22699598968029022, -0.8753899335861206, -0.212305948138237, 0.1781027764081955, 0.6205355525016785, 0.17409417033195496, -0.0828835666179657, 0.06557311117649078, 0.2860525846481323, 0.29498380422592163, 0.9712445735931396, -0.520815908908844, -...
def train ( wandb _ track, experiment _ name, epochs, task, gpu _ num = 0, pretrained ='', margin = 0. 4, losstype ='deepcca') : epochs = int ( epochs ) gpu _ num = int ( gpu _ num ) margin = float ( margin ) # setup the results and device. results _ dir = setup _ dirs ( experiment _ name ) train _ results _ dir = os. ...
[ -0.039303120225667953, 0.8429496884346008, 0.9149675965309143, 0.7499642968177795, 0.5213767290115356, 0.3826732933521271, 0.897519588470459, 0.42005932331085205, -0.7844176292419434, 0.052002377808094025, -0.3675267696380615, 0.16011396050453186, 0.32406696677207947, 0.6445105671882629, ...
def test _ atomic _ any _ uri _ length _ 2 _ nistxml _ sv _ iv _ atomic _ any _ uri _ length _ 3 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - length - 3. xsd ", instance = " nistdata / atomic / any...
[ 0.1311749368906021, -0.06282968074083328, 0.46433237195014954, 0.7222892642021179, -0.055583883076906204, 0.170325368642807, -0.5596376061439514, 0.13684743642807007, 0.2200227677822113, 0.15496540069580078, 0.12040210515260696, -0.3268606662750244, -0.224512979388237, -0.12489283084869385...
def _ _ init _ _ ( self, text ) : self. text = text. upper ( )
[ -0.04139960929751396, -0.9144399762153625, 0.33717209100723267, 0.3055369555950165, -0.9980051517486572, 0.5562410354614258, -0.44344961643218994, 0.8828783631324768, 0.4133540987968445, 0.3020566999912262, -0.6923636198043823, 0.079084612429142, -0.48093292117118835, 0.6501675248146057, ...
def login ( self ) : print ('enter your card number :') number = input ( ) print ('enter your pin :') pin = input ( ) card = self. db. find _ card _ by _ number ( number ) if card and card. is _ valid _ pin ( pin ) : self. state = self. state _ account self. card = card print ( " you have successfully logged in! " ) el...
[ -0.7130811214447021, -0.21297460794448853, 0.7629063725471497, 0.681559145450592, 0.31785085797309875, 0.4264831244945526, 0.37263548374176025, 0.40922003984451294, 0.6527122855186462, -0.4285799264907837, -0.7523006200790405, 0.19365869462490082, -0.11468636244535446, -0.7579250931739807,...
def unload ( self ) : self. frameset = [ ] self. inputset = [ ] self. preframes = [ ] self. evenedframeset = [ ] self. evenedinputset = [ ]
[ -1.2078531980514526, -0.1882144957780838, 0.516319990158081, -1.306012511253357, -0.06990347057580948, -0.3768068253993988, 0.6930871605873108, -1.2804404497146606, -0.33583149313926697, -0.7598975300788879, -0.4997062683105469, 0.2095755934715271, -0.8440442085266113, 0.5449255108833313, ...
def _ normalize _ around ( self, input _ df ) : is _ baseline = input _ df. index. get _ level _ values ( self. _ idx _ name ) = = self. _ idx _ value # get stats for baseline base = input _ df. loc [ is _ baseline, self. _ column _ names ]. iloc [ 0 ] scaling _ factor = ( input _ df [ self. _ column _ names ] - base )...
[ -0.5400605797767639, -0.32160624861717224, 0.6283720135688782, -0.18488584458827972, 0.014290766790509224, 0.5144311785697937, 0.3600848913192749, -0.8641989231109619, -0.6019796133041382, 0.06632202863693237, 0.8506982922554016, 0.4633682370185852, -0.56395423412323, 0.030775727704167366,...
def process _ position ( self, m ) : pose = m. pose. pose orientation _ tuple = ( pose. orientation. x, pose. orientation. y, pose. orientation. z, pose. orientation. w ) angles = euler _ from _ quaternion ( orientation _ tuple ) self. theta = angles [ 2 ]
[ -0.08917373418807983, -0.2801523208618164, 0.36362266540527344, -0.6481666564941406, 0.2713211178779602, -0.076750747859478, 0.47796759009361267, 0.563495934009552, -0.6786757111549377, 0.5540516972541809, -0.30376631021499634, -0.6624918580055237, 0.3496095538139343, -0.5008800029754639, ...
def test _ example _ input _ two _ clone _ backend _ validation ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper, add _ input _ two ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. table. wait _ for _ rows _ to _ appear ( 1 ) input _ pag...
[ 0.17124027013778687, 0.23531366884708405, 0.8521556258201599, 0.7547299265861511, 0.4400672912597656, 0.7709388732910156, -0.25489839911460876, -0.46397632360458374, -0.4807290732860565, 0.6499251127243042, -0.41080978512763977, 0.39605823159217834, 0.099884033203125, -0.2570832669734955, ...
def int2bool ( var ) : var _ out = deepcopy ( var ) if isinstance ( var, int ) : var _ out = bool ( var ) elif len ( var ) > = 1 : for i in range ( 0, len ( var ) ) : var _ out [ i ] = bool ( var [ i ] ) return var _ out
[ -1.1829638481140137, -0.006135907024145126, 0.5030126571655273, 0.12118685245513916, -0.26978427171707153, 0.23627886176109314, 0.06500567495822906, 0.13702528178691864, 0.054418254643678665, 1.0434916019439697, -0.8066397905349731, 0.7041170001029968, -0.11238574981689453, -0.058678079396...
def to _ dict ( self ) : result = { } for attr, _ in six. iteritems ( self. swagger _ types ) : value = getattr ( self, attr ) if isinstance ( value, list ) : result [ attr ] = list ( map ( lambda x : x. to _ dict ( ) if hasattr ( x, " to _ dict " ) else x, value ) ) elif hasattr ( value, " to _ dict " ) : result [ att...
[ -0.7353226542472839, -0.23781068623065948, 0.7614322304725647, -0.8721303343772888, -0.6342906951904297, -0.6596683263778687, 0.4902494251728058, -0.4452497661113739, -0.05775731801986694, 0.1537473350763321, -0.6756056547164917, -0.12896190583705902, 0.10802530497312546, 0.916053712368011...
def cross ( attr _ a, attr _ b = 0, normalize = false ) : return _ create _ and _ connect _ node ('cross ', attr _ a, attr _ b, normalize )
[ -0.10695144534111023, 0.42724156379699707, 0.41343164443969727, 0.6562824249267578, -0.7768954634666443, -0.49206408858299255, 0.20492248237133026, 0.05660798028111458, -0.023971544578671455, 0.48470592498779297, 0.5673093795776367, 0.3905649185180664, -0.17117518186569214, -0.883053600788...
def stopsend ( self ) : self. continuous = false return
[ -0.11514058709144592, -0.18521112203598022, 0.3176872432231903, -0.08991270512342453, 0.3296561539173126, 1.5424704551696777, 0.7907353639602661, -0.1592315137386322, -1.3796521425247192, 0.46184438467025757, -0.9658772349357605, -0.1283176839351654, -1.3233996629714966, -0.371989607810974...
def prepare _ token _ request ( grant _ type, body ='', * * kwargs ) : params = [ ('grant _ type ', grant _ type ) ] if'scope'in kwargs : kwargs ['scope'] = list _ to _ scope ( kwargs ['scope'] ) for k in kwargs : if kwargs [ k ] : params. append ( ( unicode _ type ( k ), kwargs [ k ] ) ) return add _ params _ to _ qs ...
[ -0.8205801844596863, -0.16557355225086212, 0.6052166223526001, -0.4655793309211731, -0.21929122507572174, -0.6187691688537598, -1.0467396974563599, -0.3414725661277771, 0.7442753911018372, 0.8501986265182495, 0.22401827573776245, 1.7435437440872192, 0.14271219074726105, 0.9624654650688171,...
def indent ( text, spaces = 4, strip = false ) : # normalize list of strings into a string for dedenting. " list " here means # " not a string " meaning " doesn't have splitlines ". meh. if not hasattr ( text,'splitlines') : text ='\ n '. join ( text ) # dedent if requested if strip : text = textwrap. dedent ( text ) p...
[ 0.6784929633140564, 0.060237105935811996, 0.3390534520149231, -0.4607219099998474, -1.2922413349151611, -0.2227223962545395, -0.2857426404953003, 0.7873106598854065, 0.7744371891021729, -0.454791396856308, -0.06915859878063202, 0.08586984127759933, 0.17752952873706818, 0.5904041528701782, ...
def start _ batch ( self ) : # note : there is no re - start in the basic mopls strategy self. sample _ adapt ( )
[ 0.3693775236606598, -0.7255452871322632, 0.3190382719039917, 0.7969135046005249, -0.23989859223365784, -0.12362226843833923, 0.26978716254234314, 0.8896790742874146, 1.1017452478408813, -0.2991788983345032, -0.10753460973501205, 1.3420923948287964, 0.7548636198043823, 0.07677928358316422, ...
def rename ( self, source _ file _ names, destination _ file _ names ) : raise notimplementederror
[ -0.7970075011253357, -0.32984474301338196, 0.4944800138473511, 0.38866284489631653, -0.3172166645526886, 0.17772673070430756, -0.5046541690826416, 1.0752595663070679, -0.8421596884727478, 0.9709570407867432, -0.5586773157119751, 0.08178239315748215, 1.4302247762680054, -0.28397852182388306...
def _ update _ state ( self, new _ state : statetype ) - > none :
[ -1.4089502096176147, -0.5941452980041504, 0.17047449946403503, -0.14790579676628113, -0.054550956934690475, 0.16021597385406494, -0.14426057040691376, 0.0707002803683281, 0.4135169982910156, 0.8521075248718262, -0.4485045075416565, 0.03377769514918327, 0.28258824348449707, 0.31310153007507...
def run ( self, value : inputfile, block : block ) : # note : the run / walk methods are stateful, so if they fail the # context will be left in an incorrect state. self. blocks. append ( block ) self. block = block self. walk ( value. value ) self. blocks. pop ( ) self. block = none return block
[ -0.05474252998828888, -0.5749974250793457, 0.459202378988266, -0.01606672629714012, -0.4065098762512207, 0.48714110255241394, 1.0250638723373413, -0.8547519445419312, -0.11235097050666809, -0.9295259118080139, -0.41710343956947327, 0.2627057433128357, -1.6166270971298218, 0.014263749122619...
def get _ goofs ( cursor, hpage _ html, movie _ title, movie _ url ) : print ('花...') # 1. fetch goof page result = etree. html ( hpage _ html ). xpath ('/ / div [ @ id = " goofs " ] / a [ text ( ) = " see more " ] / @ href') if len ( result ) = = 0 : print ( " 0 " ) logger. debug ('# of goofs : 0') return goofs _ url ...
[ -0.32356196641921997, 0.7175552845001221, 0.7085469961166382, 0.7832682728767395, 0.6652718186378479, -0.2996848523616791, 0.2324777990579605, 0.3437215983867645, -0.20119032263755798, 0.8741936683654785, -1.155808687210083, 0.16607198119163513, -0.35517188906669617, 0.5262681245803833, ...
def test _ request _ do _ select _ all ( test _ dao, test _ configuration ) : dut = dtcsimilaritem ( test _ dao, test _ configuration, test ='true') _ tree = dut. request _ do _ select _ all ( revision _ id = 1 ) assert isinstance ( _ tree, tree ) assert isinstance ( _ tree. get _ node ( 2 ). data, ramstksimilaritem )
[ -0.07222039997577667, 0.8307479023933411, 0.5365831851959229, 0.5055628418922424, 0.3310315012931824, -0.21552374958992004, -0.5938771367073059, -0.07220488041639328, 0.35584545135498047, -0.058264415711164474, -0.3992607295513153, 0.7888875007629395, 0.15167702734470367, -0.39944800734519...
def superpixel ( subpix, nside _ subpix, nside _ superpix ) : if nside _ subpix = = nside _ superpix : return subpix theta, phi = hp. pix2ang ( nside _ subpix, subpix ) return hp. ang2pix ( nside _ superpix, theta, phi )
[ 0.7549858689308167, 0.312066912651062, 0.635431170463562, 0.32519859075546265, -0.8119657039642334, 0.2716861665248871, -1.5309092998504639, -0.09429768472909927, 0.6906498074531555, -0.5473827123641968, -0.031613338738679886, 0.7952829599380493, -0.3651496171951294, -0.8614675998687744, ...
def group ( seq, size ) : def take ( seq, n ) : for i in xrange ( n ) : yield seq. next ( ) if not hasattr ( seq,'next') : seq = iter ( seq ) while true : x = list ( take ( seq, size ) ) if x : yield x else : break
[ 0.10140230506658554, 0.6599053144454956, 0.5543465614318848, -0.2362041026353836, -1.070180058479309, -0.07781894505023956, 0.24328410625457764, -0.15427078306674957, 0.585870087146759, 0.2980826497077942, -0.2374659925699234, -0.1058216318488121, -0.6777818202972412, 0.7435575723648071, ...
def regularization _ tag ( self ) - > str : return ( f " _ _ { conf. instance ['notation'] ['setup _ tags'] ['inversion'] ['regularization'] } _ " f " { conf. instance ['notation'] ['prior _ model _ tags'] ['regularization'] [ self. regularization _ prior _ model. name ] } " )
[ -0.039542216807603836, 0.08473970741033554, 0.4888004660606384, -0.36399245262145996, 1.0774695873260498, -0.345151424407959, 0.36070412397384644, 0.4511023759841919, -0.9461830258369446, 0.49833688139915466, -0.885307252407074, 0.09660517424345016, -0.020277978852391243, 0.340857595205307...
def create _ user _ pool _ domain ( domain = none, userpoolid = none ) : pass
[ -0.9931287169456482, 0.14565913379192352, 0.055742330849170685, 0.5432456731796265, 0.2795153260231018, 0.857401967048645, 0.6769272685050964, -0.6885858774185181, 0.8290637731552124, -0.6116154789924622, -1.07623291015625, 2.0511138439178467, -0.4555732309818268, -0.46068745851516724, -...
def is _ mapping ( data : dict, df _ temp : object, is _ data : dict ) - > dict : # print ( is _ data ) global is _ cal _ index, year _ count _ is, is _ header _ mapping _ dict, all _ neg global scenario _ flag _ is print ('- - - - - - - - - - - - - - - - - - - - - - is classes - - - - - - - - - - - - - - - - - - -') c...
[ -0.8023405075073242, -0.13406237959861755, 0.9546701312065125, 0.28224098682403564, -0.23964856564998627, 0.5311651229858398, 0.049302615225315094, 0.4891619086265564, -0.07147283852100372, -0.08810282498598099, 0.1175047755241394, 0.2592167258262634, 0.5665003061294556, -0.096127480268478...
def overlay _ contours _ stack ( stack, mask, rescale _ img = false ) : contour = np. zeros ( mask. shape, dtype = np. bool ) for i in range ( len ( mask ) ) : coords = measure. find _ contours ( mask [ i ], 0. 5 ) # 0. 5 to work with both float and int for coord in coords : rows = np. rint ( coord [ :, 0 ] ). astype (...
[ 0.029374856501817703, 0.38370946049690247, 0.7668507099151611, 1.078091025352478, -0.36327260732650757, -0.8638427257537842, 0.6741241812705994, -0.7426138520240784, 0.20012524724006653, 0.4469383656978607, 0.15877129137516022, -0.9682120680809021, 0.1257733553647995, 0.6236208081245422, ...
def shutdown ( self ) : try : self. localsocket. shutdown ( socket. shut _ rdwr ) except exception : pass # socket already closed
[ 0.1771087497472763, 0.32428932189941406, 0.3091087341308594, -0.5027504563331604, 0.16713176667690277, 0.08061965554952621, 0.2624366581439972, 0.08441764861345291, 0.32992616295814514, -0.3927789330482483, 0.46219781041145325, 0.8354223966598511, -0.965067446231842, 0.7038710713386536, ...
def sshfp _ from _ string ( value, fingerprint _ type ='sha - 1') : if not isinstance ( value, ( str, unicode ) ) : raise ansiblefiltererror ('a string was expected') parts = value. split ( ) if len ( parts )! = 2 : raise ansiblefiltererror ( " expected string composed of two parts type and key, given string contains o...
[ 0.3035200238227844, -0.16156597435474396, 0.39900636672973633, 0.36040934920310974, -0.9636644124984741, -0.29612237215042114, -0.31244683265686035, 0.029309164732694626, -0.15643887221813202, 0.1561981737613678, 0.050414565950632095, -0.001049460843205452, -0.8535045385360718, 0.009943609...
def find _ user ( cls, usern ) : for user in cls. user _ list : if user. username = = usern : return true else : return false
[ -0.45356297492980957, -0.19474664330482483, 0.21920663118362427, 0.8982509970664978, 0.2528167963027954, 0.23141366243362427, -0.04857543110847473, 0.3583042621612549, -0.27133235335350037, -0.07713204622268677, -1.4220527410507202, -0.7064934968948364, -0.3957013785839081, 1.1077779531478...
def _ add _ file _ activity ( self ) : self. filedata = self. jsonreportdata ['behavior'] ['generic'] metadata = self. nodemetadata. copy ( ) for node in metadata : for process in self. filedata : if'pid { } '. format ( process ['pid'] ) = = node : if'summary'in process : self. file _ written = list ( ) self. file _ cr...
[ 0.38630053400993347, -0.5482932925224304, 0.8367703557014465, -0.41099560260772705, 0.886303722858429, -0.38932788372039795, 0.7438042163848877, -0.40609243512153625, -0.46677759289741516, -0.3251481056213379, 0.45738092064857483, 0.5920848250389099, 0.16130311787128448, 0.0874261334538459...
async def dump ( self, ctx : context ) - > none : embed _ parser = jsonembedparser. from _ embed ( ctx, self. embeds [ ctx. author ] ) json = embed _ parser. make _ json ( ) await ctx. send ( f " ` ` ` json \ n { json } ` ` ` " )
[ -0.7990242838859558, 0.3245352506637573, 0.7038140296936035, -0.04413016885519028, 0.044737666845321655, 0.5111901760101318, -0.2620173394680023, -0.0746803730726242, 0.21160978078842163, -0.28324177861213684, -1.305497646331787, 1.6153310537338257, -0.3971893787384033, 0.29177820682525635...
def polynomial ( n : int, order = 1 ) - > np. ndarray : power = order + 1 return np. arange ( n ) * * power / power
[ -0.38752853870391846, -0.10814152657985687, 0.3761232793331146, 0.8377569317817688, -0.016711516305804253, -0.42262908816337585, -1.0426177978515625, -0.4930148720741272, 0.7308573722839355, 0.12133476138114929, -0.19290795922279358, 0.4154457151889801, 0.10863429307937622, -0.727399587631...
def dispatch ( self, request, module _ id, model _ name, id = none ) : self. module = get _ object _ or _ 404 ( module, id = module _ id, course _ _ owner = request. user ) self. model = self. get _ model ( model _ name ) print ( self. model ) if id : self. obj = get _ object _ or _ 404 ( self. model, id = id, owner = ...
[ -0.4808426797389984, -0.8538622856140137, 0.7209979295730591, 0.9343962669372559, 0.612604558467865, 0.5611648559570312, 0.163102924823761, 0.09609197080135345, 0.7785497307777405, 0.3188098967075348, -0.5711316466331482, 0.7804697155952454, 0.5774350762367249, 0.4920085072517395, -0.678...
def post ( self, request ) : rec _ form = loginuser ( request. post ) if rec _ form. is _ valid ( ) : user = authenticate ( username = rec _ form. cleaned _ data [ " login " ], password = rec _ form. cleaned _ data [ " password " ] ) if user : login ( request, user ) return redirect ('/ about _ us') else : return rende...
[ -0.6066341400146484, 0.10937227308750153, 0.8049505352973938, 1.4791067838668823, -0.5618934631347656, 0.7175093293190002, -0.3544847369194031, 0.6031468510627747, 0.11842913180589676, -1.0620737075805664, 0.5101309418678284, -0.5619421601295471, -0.09606781601905823, 0.13546209037303925, ...
def train ( voc, qa _ pairs, encoder, decoder, encoder _ optimizer, decoder _ optimizer, embedding, encoder _ n _ layers, decoder _ n _ layers, save _ dir, iterations, batch _ size, print _ every, save _ every, clip, knowledge _ file ) : # load batches for each iteration training _ batches = [ generatetraindata ( voc, ...
[ -0.17946676909923553, 0.12534043192863464, 0.599349319934845, 0.2104818969964981, 0.04582087695598602, -0.33963268995285034, 0.9271923303604126, -0.02850371040403843, -0.5710145831108093, 0.3892933428287506, -0.46179118752479553, -0.4448329508304596, 0.03863978758454323, 0.4017947316169739...
def find _ associated _ element ( self, first _ element, desired _ element ) : element = self. wait _ for _ element _ found ( first _ element, desired _ element,'associated') return element
[ 0.051519643515348434, -0.2052507847547531, 0.25763842463493347, 0.5135547518730164, 0.7866523265838623, 0.1812661737203598, -0.34983837604522705, -0.4001740515232086, -0.6719099879264832, -0.744418203830719, 0.5671663880348206, 1.055378794670105, -0.13351041078567505, 0.4713107943534851, ...
def begin _ custom _ environment _ action ( self, project _ name : str, environment _ name : str, body : json, user _ id : str = " me ", *, content _ type : str = " application / json ", * * kwargs : any ) - > lropoller [ none ] :
[ -0.0787636861205101, -0.45349112153053284, 0.504127562046051, 0.1541236937046051, -0.3916797339916229, 0.5798207521438599, 0.4448304772377014, -0.748413622379303, 0.010650193318724632, 0.7111358046531677, -0.19271127879619598, 2.0351850986480713, -0.07756908237934113, 0.3427823483943939, ...
def compute _ hmm _ lists ( self ) : self. hmm _ lines = [ [ self. word _ to _ num [ word ] for word in line ] for line in self. lines ]
[ -0.4113418757915497, -1.0454105138778687, 0.34448936581611633, 0.003606278682127595, 0.7657936811447144, -0.02120182290673256, -0.18117424845695496, 1.3820316791534424, 0.2625211179256439, -0.05577258765697479, -0.3477860391139984, -0.03782246634364128, 0.1829225867986679, 1.34633338451385...
def _ _ rgb2ma ( self, rgb, gamma = none ) : if gamma : rgb = ( gamma [ x ] for x in rgb ) # assume 60ma at full brightness return ( 60. 0 / ( 255. 0 * 3. 0 ) ) * sum ( rgb )
[ -1.2795981168746948, -0.9467536211013794, 0.6285287141799927, -0.3479456901550293, 0.3222411274909973, -0.5753269791603088, -0.44317662715911865, 0.18597561120986938, 0.8325026035308838, 0.43804579973220825, -0.20370124280452728, -0.3084318935871124, -0.24312323331832886, 0.274057477712631...
def upload ( self, bucket _ name : str, object _ name : str, filename : str | none = none, data : str | bytes | none = none, mime _ type : str | none = none, gzip : bool = false, encoding : str = " utf - 8 ", chunk _ size : int | none = none, timeout : int | none = default _ timeout, num _ max _ attempts : int = 1, met...
[ -0.03855190798640251, -0.14231282472610474, 0.8861292004585266, 0.5039874315261841, 0.3448827266693115, -0.07760683447122574, -0.21150511503219604, -0.19820807874202728, -1.1555324792861938, 0.5457950234413147, -0.47977104783058167, 0.8368316292762756, -0.22509878873825073, -0.470797419548...
def door _ dr ( self ) - > int : return self. _ vehicle _ data. get ( " vehicle _ state ", { } ). get ( " dr " )
[ -0.6455961465835571, -0.06448209285736084, 0.5017197132110596, 0.546227753162384, -0.07605323195457458, 0.6695570349693298, -0.008766516111791134, 0.5867739319801331, -0.3103635907173157, -0.1710788905620575, 0.513572633266449, 0.4297425448894501, -0.5668283700942993, 0.3843221962451935, ...
def responsiveness _ vs _ shuffle ( self ) : if self. _ responsiveness _ vs _ shuffle is none : self. _ responsiveness _ vs _ shuffle = self. _ calc _ shuffle _ p _ values ( ) return self. _ responsiveness _ vs _ shuffle
[ 0.042389169335365295, 0.2277662605047226, 0.440611869096756, -0.1739460825920105, -0.06594482064247131, 0.2462104856967926, 0.9997490048408508, -0.12312695384025574, 1.5250849723815918, -0.9420406818389893, 0.3879219889640808, 0.02145463041961193, -0.43937063217163086, -0.11550325900316238...
def handle _ general _ exception ( self, msg, error _ field, code ) : return {'message': msg,'error': {'field': error _ field } }, code
[ -0.7221843004226685, 0.6762657761573792, 0.3499654531478882, -0.49741342663764954, -0.12353087216615677, 0.151888906955719, -0.5490021109580994, 0.3103945553302765, -0.4955335855484009, 0.17295679450035095, -0.12459027767181396, -0.1413322538137436, -0.4132935702800751, 0.49060964584350586...
def extroversion _ score ( user _ pictures ) : # maximum number of photos : 5 score = np. zeros ( len ( user _ pictures ) ) for i in user _ pictures : score [ i ] = user _ pictures [ i ] / 5 return score
[ -0.5363855361938477, -0.05930975079536438, 0.17884138226509094, 0.520526111125946, 0.38473325967788696, 0.07438722997903824, 0.3609953820705414, 0.0510965958237648, 0.6505880355834961, 1.6682765483856201, -0.6064748764038086, -0.4185551106929779, -0.296585351228714, 0.06139042228460312, ...
def position _ count ( insids, signal _ list, side ='both') : count = 0 for s in insids : for sig in signal _ list [ s ] : if sig. side = = side or side = ='both': if sig. is _ ordered ( ) or sig. is _ active ( ) or sig. is _ cnt _ ordered ( ) : count + = 1 return count
[ -0.11560328304767609, -0.2034507691860199, 0.42883652448654175, 0.19283613562583923, 0.3082118332386017, 0.04299962893128395, 0.09958502650260925, 0.48875585198402405, -0.42774516344070435, 0.8454456925392151, -0.8584713935852051, -0.7700731158256531, -0.5576807260513306, 1.016765236854553...
def test _ query _ serialize _ multiple _ list ( self ) : self. check _ query _ serialize _ multiple ( " list " )
[ -0.9404160976409912, 0.5638179779052734, 0.35711774230003357, 0.8825830817222595, 0.8452494740486145, 0.23573678731918335, -1.0139293670654297, 0.06667950749397278, 1.100362777709961, 0.2345287948846817, -1.307429552078247, -0.18671944737434387, -0.21330265700817108, 1.17880380153656, -1...
def describe _ gaps ( parameters ) : applogger. info ( " reading scaffolds from reference file... " ) # print ( " reading scaffolds from reference file... " ) start = datetime. datetime. now ( ) message = " all correct. " applogger. info ( " reading file... " ) handle = none filekind = filetype. guess ( parameters ['in...
[ -0.17338357865810394, -0.41339224576950073, 0.6656467318534851, -0.2717845141887665, 0.24084728956222534, 0.15087957680225372, 0.8122003078460693, 0.2609613835811615, -0.4813222885131836, 0.39634642004966736, -0.042828623205423355, 0.4660620391368866, -0.5964339971542358, 1.244452595710754...
def _ run _ step ( debug _ log, step _ data, step _ stream, step _ runner, step _ config, base _ environ, start _ dir ) : if not step _ config. cmd : debug _ log. write _ line ('noop step.') step _ data. exc _ result = step _ runner. run _ noop ( step _ data. name _ tokens, debug _ log ) _ set _ initial _ status ( step...
[ -0.022044243291020393, -0.10038687288761139, 0.693432629108429, -0.026391230523586273, -0.04378274828195572, -0.24808740615844727, -0.22908756136894226, 0.26219403743743896, -0.6797586679458618, -0.4658685326576233, -0.07843979448080063, -0.33127737045288086, -0.30862128734588623, 0.631502...
def new ( * args, * * kargs ) : obj = itksubtractconstantfromimagefilterif2dif2 _ superclass. _ _ new _ orig _ _ ( ) import itktemplate itktemplate. new ( obj, * args, * * kargs ) return obj
[ 0.8502511382102966, -0.1338633894920349, 0.34716901183128357, -0.10570382326841354, -1.223490834236145, -0.23906677961349487, 0.4011682868003845, 0.6582706570625305, -0.8419957160949707, -1.1748243570327759, -0.7794860005378723, -0.24829334020614624, 0.5647942423820496, 0.6646584868431091,...
def read _ legacy _ hgrid ( basename, rgnids, gall1d, da = false ) : if ( not basename ) : return ( none, none ) head = ( " head ", " < i " ) tail = ( " tail ", " < i " ) grd _ x = np. empty ( [ 3, len ( rgnids ), gall1d, gall1d ], dtype ='f8') grd _ xt = np. empty ( [ 3, 2, len ( rgnids ), gall1d, gall1d ], dtype ='f8...
[ -0.2229095846414566, -0.5567060708999634, 0.7493897080421448, -0.22540950775146484, -0.39350980520248413, 0.4115571081638336, 0.2395414412021637, 0.12624411284923553, -1.055067777633667, 0.4047829806804657, 0.023121224716305733, 0.700989842414856, -0.342050164937973, 0.6123695373535156, ...
def test _ split _ shuffled _ df _ split _ frac ( df ) : # shuffle the dataframe df _ shuffled = df. sample ( frac = 1 ) test = drophighpsifeatures ( split _ frac = 0. 6 ) base, test = test. _ split _ dataframe ( df _ shuffled ) # the base dataframe should contain indexes from 0 to 599 set ( base. index ) = = { _ for _...
[ -0.2238442599773407, 0.5972821116447449, 0.32606974244117737, 0.46511900424957275, 0.8119524121284485, -0.6293245553970337, 1.2505649328231812, 0.12320369482040405, 0.6755608320236206, -0.7796880006790161, -0.3196527063846588, -0.4373689293861389, -0.1368771493434906, -0.5694378018379211, ...
def create _ data ( self ) : return { }
[ -0.7169176936149597, -0.5094595551490784, 0.2892957627773285, -0.6535281538963318, -0.2152724415063858, 0.8689073920249939, -0.816764771938324, -0.35143470764160156, -0.5251808166503906, -1.0471397638320923, -1.6498456001281738, -0.4894806146621704, 0.1228235512971878, 0.4438972473144531, ...