text
stringlengths
25
2.19k
embedding
listlengths
768
768
def hire _ fire ( self, firms, firm _ enter _ freq ) : for firm in firms. values ( ) : # ` firm _ enter _ freq ` is the frequency firms enter the market if self. seed. random ( ) < firm _ enter _ freq : if firm. profit > = 0 : self. add _ post ( firm ) else : firm. fire ( self. seed )
[ -0.5299991369247437, 0.5023625493049622, 0.4081673324108124, 1.2946971654891968, 1.0062878131866455, 0.1594323068857193, 0.11816997081041336, 0.3935679793357849, -0.08461891114711761, -0.49560311436653137, 0.3883872926235199, -0.24766243994235992, -0.8857495784759521, 0.996540367603302, ...
def pop ( self ) : return self. _ items. pop ( )
[ -0.4113010764122009, 0.22188612818717957, 0.4630125164985657, -0.2806209623813629, -0.2340717613697052, 0.34647664427757263, -0.3267729580402374, -0.1669846624135971, -0.8002817034721375, 0.4011242091655731, -0.19714464247226715, -0.4774952232837677, -0.6616012454032898, -1.345745325088501...
def test _ defaultagent ( self, agent ) : observer = airbrakelogobserver ('api - key ', environment ='testing') self. assertequal ( observer. _ agent, agent. return _ value ) agent. assert _ called _ once _ with ( reactor, connecttimeout = 5 )
[ 0.35987040400505066, 0.9156568050384521, 0.3470982611179352, -0.08445154875516891, 1.1876353025436401, -0.17678891122341156, 0.027109138667583466, -0.3711549639701843, -0.09762515127658844, -0.7943124175071716, -0.8104140162467957, -0.7981476783752441, -0.9236915111541748, 0.42176356911659...
def n _ small _ element ( l, n ) : ele = [ ] mylist = list ( np. copy ( l ) ) # to avoid modifying our list with which we call the function. for i in range ( n ) : ele. append ( min ( mylist ) ) mylist. remove ( min ( mylist ) ) return ele
[ 0.3112080693244934, -0.39794817566871643, 0.38471415638923645, 0.611406683921814, -0.5151410102844238, -0.1991891860961914, -1.045879602432251, -0.27022507786750793, 1.2341434955596924, -0.388869047164917, -1.4979099035263062, 0.2794710397720337, -0.10617925971746445, 0.4637703001499176, ...
def getstreets ( id = 0, cityid = 0 ) : if id! = 0 : return street. query. filter _ by ( id = id ). scalar ( ) if cityid! = 0 : return street. query. filter _ by ( cityid = cityid ). order _ by ( street. name ). all ( ) else : return street. query. order _ by ( street. name ). all ( )
[ 0.7175663709640503, 0.33537745475769043, 0.42631810903549194, 0.3959028720855713, 0.1937921643257141, -0.28035321831703186, -0.9860173463821411, 0.11497115343809128, 0.03211513161659241, 0.042148657143116, 0.5482838749885559, -0.06790576130151749, -0.15102702379226685, 1.0305485725402832, ...
def test _ example _ input _ one _ default _ value _ example _ checkbox ( self, ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) : input _ page = inputpage ( ucc _ smartx _ selenium _ helper, ucc _ smartx _ rest _ helper ) input _ page. create _ new _ input. select ( " example input one " ) input _ page...
[ -0.10089625418186188, 0.8112785220146179, 0.379202663898468, 1.1852648258209229, 1.439139723777771, 0.8135349154472351, -0.03520208224654198, 0.3766225576400757, 0.3172580599784851, 0.22979550063610077, -0.718485414981842, -0.16360928118228912, -0.01972922869026661, 0.4382394254207611, -...
def logout ( ) : response = jsonrequest ( {'req': " rpcapiuser _ logout " }, referer = " https : / / www. crunchyroll. com " ) # this doesn't seem to help. cookies still infect the system somewhere ( and it's not # safari, i checked ). so whatever. at best, we can try to be secure and fail. good # faith, you know. http...
[ -0.5679502487182617, -0.17804330587387085, 0.4316560924053192, 0.701530933380127, 0.28370943665504456, -0.7049081921577454, -0.33873555064201355, -1.1964555978775024, 0.5474070906639099, -0.44007617235183716, 0.2556820511817932, 0.38851091265678406, -0.37848374247550964, -0.545157492160797...
def test _ mintimeuuid _ function ( self ) : now = datetime. now ( ) where = whereclause ('time ', equalsoperator ( ), functions. mintimeuuid ( now ) ) where. set _ context _ id ( 5 ) self. assertequal ( str ( where ),'" time " = mintimeuuid ( % ( 5 ) s )') ctx = { } where. update _ context ( ctx ) self. assertequal ( ...
[ -0.5385682582855225, 0.3346997797489166, 0.42319780588150024, -0.47326037287712097, -0.5572855472564697, -0.28091713786125183, -0.6014193296432495, -0.2803831100463867, 0.354079008102417, 0.9219730496406555, -0.7758086919784546, -0.26722297072410583, -0.7471266984939575, -0.285738468170166...
def does _ overlap ( x, y, width, height, obs ) : for ob in obs : if ob ['x'] > ( x + width ) or ( ob ['x'] + ob ['width'] ) > x : continue if ob ['y'] > ( y + height ) or ( ob ['y'] + ob ['height'] ) > y : continue return true return false
[ -1.1150274276733398, 0.21434913575649261, 0.8286014795303345, 0.1428096443414688, -1.1797058582305908, 0.3373124301433563, -1.3643572330474854, -0.3338076174259186, -0.13482190668582916, 0.11871127784252167, 0.10125914216041565, -0.5973721742630005, 0.1120576336979866, -0.38544997572898865...
def entropy _ ring _ score ( seq, nb _ pers = 2 ) : if nb _ pers is none : nb _ pers = np. inf seq = sorted ( seq, reverse = true ) if len ( seq ) = = 0 : return 0 if len ( seq ) = = 1 : return 1 if nb _ pers = = np. inf : nb _ pers = len ( seq ) else : seq = seq [ : nb _ pers ] assert nb _ pers > = 2 noise = ss. entro...
[ -0.8327649235725403, 0.10785560309886932, 0.6977859735488892, -0.4784201681613922, 0.08656864613294601, -0.28694072365760803, -0.09180419892072678, 0.15616153180599213, 0.24433234333992004, 1.4587011337280273, -0.23333045840263367, -0.724485456943512, -0.6446194052696228, 0.072410985827445...
def dim _ input ( self ) - > int : return self. in _ features + self. input _ dim
[ -0.16946788132190704, 0.33973821997642517, 0.5654411315917969, 0.5159299969673157, -0.4964231550693512, 1.4223148822784424, 1.2414549589157104, 0.7817919254302979, -0.2001708745956421, -0.5478289127349854, -0.55069899559021, 0.9881979823112488, -0.08316327631473541, -0.62140291929245, -0...
def _ _ init _ _ ( self, template : str ) - > none : pass
[ -0.01529393345117569, -0.4525894224643707, 0.40154653787612915, 0.5566051602363586, -0.8496155738830566, -0.3772050738334656, 0.1006002277135849, 0.9114782214164734, 0.047925032675266266, -1.096541404724121, -0.84136962890625, -0.6938313841819763, -0.0376322939991951, 0.1483299434185028, ...
def query3 ( connection ) : current = time. time ( ) cursor = connection. cursor ( ) cursor. execute ( " " " select b. name as limited _ avail _ beers, br. name as brewery _ name, br. city | | ','| | br. state as address from beer as b inner join brewery as br on b. brewery = br. id inner join availability as a on b. a...
[ 0.4653564393520355, -0.21706165373325348, 0.5699045658111572, 0.12566620111465454, -0.45040249824523926, 0.7018215656280518, -0.4044196307659149, 0.6414294242858887, -0.43668341636657715, 0.9141948223114014, 0.5092656016349792, 0.4312121868133545, -0.6006395220756531, -0.223128542304039, ...
def billing _ full _ name ( self ) : return self. _ billing _ full _ name
[ 0.6317577958106995, 0.12473806738853455, 0.6017235517501831, 0.7185124158859253, -1.4320502281188965, 1.3328496217727661, -0.08668417483568192, 0.2977289855480194, 0.6255488991737366, 0.3776201605796814, 0.08356105536222458, -0.5824446678161621, 0.20826782286167145, 1.0378797054290771, 0...
def _ logl _ delays ( self, delays _ model, delays _ measured, delays _ errors ) : delta _ t _ model = np. array ( delays _ model [ 1 : ] ) - delays _ model [ 0 ] logl = np. sum ( - ( delta _ t _ model - delays _ measured ) * * 2 / ( 2 * delays _ errors * * 2 ) ) return logl
[ 0.7541288733482361, -0.13487543165683746, 0.38222736120224, -0.6863842010498047, -0.7205756902694702, 1.5433931350708008, -0.6604019403457642, -0.04268913343548775, 0.12461868673563004, 0.019794080406427383, -0.6633360385894775, -0.13425926864147186, 0.9748669862747192, -0.2589426934719085...
def handle _ zwave _ js _ event ( hass : homeassistant, config _ entry : configentry, evt : event ) : primary _ lock : keymasterlock = hass. data [ domain ] [ config _ entry. entry _ id ] [ primary _ lock ] child _ locks : list [ keymasterlock ] = hass. data [ domain ] [ config _ entry. entry _ id ] [ child _ locks ] f...
[ 0.04243585094809532, -0.3477388620376587, 0.6760225892066956, -0.25399839878082275, -0.7749866843223572, -0.2665013372898102, 0.4037243127822876, -0.03345548361539841, 0.24355053901672363, 0.5711104869842529, -0.3999615013599396, 0.5831782817840576, 0.5250298976898193, 1.0712133646011353, ...
def create _ superuser ( self, username, first _ name, last _ name, email, date _ of _ birth, password = none ) : user = self. create _ user ( username, first _ name, last _ name, email, password = password, date _ of _ birth = date _ of _ birth, ) user. is _ admin = true user. save ( using = self. _ db ) return user
[ 0.5771541595458984, 0.8247355222702026, 0.4414798617362976, 0.890138566493988, 0.6459652185440063, 0.4591900408267975, -0.7317547798156738, -0.060525454580783844, 0.09227380901575089, -0.963327944278717, -1.324021339416504, -0.2691912055015564, -0.6076916456222534, 0.22814497351646423, -...
def regr _ model _ sa ( self, ignore _ sse _ outliers = true, view = true ) : # extract skeleton mean metric data for v01 skelmean01 _ ser = pd. read _ csv ( self. skelmean01 _ csv, header = none, names = [ " subjlabel ", " meandata " ], index _ col = 0, squeeze = true ) # edit index to omit _ 01 visit code and match c...
[ 0.24164484441280365, 0.4970751702785492, 0.8554241061210632, -0.31880348920822144, -0.7403594255447388, 0.9360650777816772, 1.0913375616073608, 0.07740666717290878, -0.02605515718460083, 0.4895201325416565, 0.7877199649810791, 1.187911033630371, 0.5019574761390686, 0.09667567908763885, 0...
def visible ( self ) : return self. _ visible
[ -0.29391172528266907, -0.715329110622406, 0.44113481044769287, -0.4632154703140259, -0.7467597723007202, 1.100899338722229, 0.5247992277145386, -0.12598074972629547, -0.11268496513366699, 0.38420936465263367, -1.0612717866897583, 0.7735397219657898, 0.04631476476788521, -0.4646140038967132...
def test _ extract _ meta ( self ) : metas = [ extract _ billpage _ content. extract _ meta ( soup ) for \ soup in self. soups ] self. assertequal ( metas, target _ billpage _ metas )
[ -0.4613582193851471, 0.04989759996533394, 0.5660825967788696, 0.21052731573581696, 0.9453819394111633, 0.2284548431634903, -0.30635371804237366, -0.2660664916038513, 0.3639972507953644, -0.11519517004489899, -0.05736765265464783, -0.19011983275413513, 0.5577206015586853, -0.034451629966497...
def _ parse _ country _ html _ ( html : str ) - > dict : return { }
[ -0.7614515423774719, 0.28619763255119324, 0.2413790374994278, -0.47922515869140625, -1.5675468444824219, 0.032511450350284576, 0.27962183952331543, 0.10571097582578659, -0.2638990581035614, -0.315377801656723, -0.5400606393814087, -0.9198017716407776, -0.10601785033941269, 0.35817220807075...
def text _ show ( request, item _ container ) : return httpresponse ( item _ container. item. text, mimetype ='text / plain')
[ 0.3573702275753021, -0.5834841132164001, 0.4209478795528412, -0.6740463972091675, -0.35410553216934204, -0.26699575781822205, -0.0926443412899971, -0.003340082010254264, 0.8055622577667236, 0.9114254713058472, 0.16387216746807098, 0.0334915965795517, 0.144855335354805, -1.2222819328308105,...
def test _ list _ decimal _ enumeration _ 2 _ nistxml _ sv _ iv _ list _ decimal _ enumeration _ 3 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - enumeration - 3. xsd ", instance = " nistdata / list / ...
[ -0.6327881813049316, -0.23585325479507446, 0.7427897453308105, 0.5562018156051636, 0.21442140638828278, 0.2632652819156647, -0.4478919804096222, 0.5461973547935486, 1.4406753778457642, 0.316119521856308, -0.7944915890693665, -0.37243518233299255, 0.14040683209896088, 0.060462307184934616, ...
def printstatus ( self, verbose = true, time = 0. 0 ) : statusvect = [ i. status for i in self. keytable ] # simply writes the status in a comprehensive list statusvect. append ( time ) if verbose = = true : print ( statusvect, end ='\ r ', flush = true ) return statusvect
[ -0.0990719348192215, -0.32172611355781555, 0.580430805683136, 0.9865618348121643, 0.061032023280858994, 0.06308650225400925, -1.1520261764526367, 0.1666601449251175, -0.328570693731308, 1.1523139476776123, -0.2519676387310028, 0.8401807546615601, -0.4757283926010132, 1.250512957572937, -...
def handle _ perp ( perp, n ) : global module _ name if perp < = 0 : raise valueerror ( " error in function handle _ perp of module { module _ name } : perp = { perp }, which is negative. ". format ( module _ name = module _ name, perp = perp ) ) elif perp < 1. 0 : perp * = np. float64 ( n ) perp = np. around ( perp ) ...
[ -0.24708175659179688, -0.0692267045378685, 0.6129798889160156, 0.040097687393426895, -0.1596721112728119, 0.1936148703098297, 0.46457281708717346, -0.035534825176000595, 0.31926918029785156, 0.40983203053474426, 0.931908905506134, -0.417567640542984, -1.2354835271835327, 0.6123144030570984...
def test _ list _ decimal _ min _ length _ 3 _ nistxml _ sv _ iv _ list _ decimal _ min _ length _ 4 _ 1 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / list / decimal / schema + instance / nistschema - sv - iv - list - decimal - minlength - 4. xsd ", instance = " nistdata / list / ...
[ -0.1956760436296463, -0.21214987337589264, 0.4811842739582062, 0.530108630657196, -0.19259494543075562, 0.0698615238070488, -0.5175305604934692, 0.11671222746372223, 1.1083135604858398, -0.10692412406206131, -0.9223330020904541, -0.5601078271865845, -0.4587849974632263, -0.1367159187793731...
def index _ pix _ in _ pixels ( pix, pixels, sort = false, outside = - 1 ) : # adw : not really safe to set index = - 1 ( accesses last entry ) ; # - np. inf would be better, but breaks other code... # adw : are the pixels always sorted? is there a quick way to check? if sort : pixels = np. sort ( pixels ) # assumes th...
[ -0.803086519241333, 0.2046821117401123, 0.5602903962135315, -0.37954896688461304, -1.3462178707122803, 0.5763452649116516, -0.1304241269826889, -0.5041149258613586, -0.032349687069654465, 0.17647527158260345, 1.207707166671753, 0.7607634663581848, -1.5023313760757446, 0.1332389861345291, ...
def _ exec _ log ( self, string, arg _ dic = none, input = none ) : if ( arg _ dic is not none ) : for k, v in arg _ dic. iteritems ( ) : string + ='- { } { } '. format ( k, v ) logging. info ('running { } with arguments '. format ( string ) ) try : process = subprocess. popen ( string, shell = true, stdout = subproces...
[ 0.49456384778022766, -0.5242283940315247, 0.9745677709579468, -0.07847527414560318, -0.4401490092277527, 0.006796165369451046, -0.5082278251647949, 0.30616268515586853, -0.5298327207565308, 0.13212649524211884, 0.4812135398387909, 0.5244128108024597, 0.3228397071361542, 0.26912224292755127...
def set ( self, ns, key, value, usemsgpack = true ) : if usemsgpack : value = msgpack. packb ( value, use _ bin _ type = true ) self. _ sdl. set ( ns, { key : value } )
[ -0.30235251784324646, 1.2736767530441284, 0.3781064450740814, 0.19760768115520477, -0.7888389825820923, -0.006291710305958986, -1.1350953578948975, -1.1100082397460938, 0.1422988325357437, -0.017296504229307175, -0.8002408742904663, 0.46104273200035095, -0.11359981447458267, 0.699304461479...
def _ _ init _ _ ( self, data _ sources : list [ reqbodydatasources ] = none, movements _ enaction : movementsenaction = none ) : # noqa : e501 self. swagger _ types = {'data _ sources': list [ reqbodydatasources ],'movements _ enaction': movementsenaction } self. attribute _ map = {'data _ sources':'datasources ','mov...
[ -0.3474361300468445, 0.10434684157371521, 0.3743685185909271, -0.4278050363063812, 0.33078959584236145, -0.35210707783699036, -0.22218139469623566, 0.8230513334274292, 0.9716680645942688, -0.049394480884075165, -0.7261727452278137, 0.01700151152908802, 0.16442659497261047, 0.30431124567985...
def from _ float ( cls, f ) : if isinstance ( f, numbers. integral ) : return cls ( f ) elif not isinstance ( f, float ) : raise typeerror ( " % s. from _ float ( ) only takes floats, not % r ( % s ) " % ( cls. _ _ name _ _, f, type ( f ). _ _ name _ _ ) ) return cls ( * f. as _ integer _ ratio ( ) )
[ 0.9300503134727478, 0.8405520915985107, 0.6705259084701538, 0.5659357905387878, -0.5939774513244629, 0.634817361831665, 0.13737471401691437, -0.22199170291423798, -0.2857019305229187, -0.3253384828567505, 0.7641521692276001, -1.272333025932312, -0.3576444089412689, -0.1908027082681656, -...
def ok ( self ) : self. selected _ landmark = self. combobox _ filename self. close ( )
[ 0.26104864478111267, -0.9287305474281311, 0.05618372559547424, -0.5627284646034241, -0.10331776738166809, 0.5824553966522217, 1.6405792236328125, 1.2449527978897095, 0.022364718839526176, 0.16683416068553925, -0.7389400601387024, 0.9247493743896484, -0.03899770602583885, -0.368843644857406...
def fit ( self, x, y = none ) : if not sp. issparse ( x ) : x = sp. csc _ matrix ( x ) if self. use _ idf : n _ samples, n _ features = x. shape df = _ document _ frequency ( x ) idf = np. log10 ( ( float ( n _ samples ) - df + 0. 5 ) / ( df + 0. 5 ) ) self. _ avgdl = avgdl = np. average ( x. sum ( axis = 1 ) ) # print...
[ 0.30772337317466736, 0.6506842970848083, 0.7100375890731812, 0.38506466150283813, -0.40126097202301025, -0.17990213632583618, 0.0748634859919548, 0.014265017583966255, 0.3790028691291809, -0.24147190153598785, 0.5338184833526611, 0.1546500027179718, -0.2588537037372589, 0.3250107765197754,...
def getfirstdevice ( ) : devices = device _ utils. deviceutils. healthydevices ( ) if not devices : raise devicesetupexception ('no devices found') return devices [ 0 ]
[ 0.07651085406541824, 0.356458455324173, 0.7400954365730286, 0.7516690492630005, 0.783150851726532, -0.18517330288887024, 0.7200533151626587, -0.4535316824913025, 0.47652536630630493, -0.5844377279281616, 1.142073392868042, 0.21058030426502228, -0.17245468497276306, 0.5214855670928955, 0....
def resolve _ string ( value, replacements ) : lookups = extract _ lookups ( value ) for lookup in lookups : lookup _ value = replacements. get ( lookup. raw ) if not isinstance ( lookup _ value, basestring ) : if len ( lookups ) > 1 : raise invalidlookupcombination ( lookup, lookups, value ) return lookup _ value # we...
[ -0.39008593559265137, -0.2969737946987152, 0.5626411437988281, -0.24510322511196136, -0.6042107343673706, -0.46278104186058044, -0.3976687788963318, 0.6967081427574158, 0.4770214259624481, -0.8518722653388977, 0.14612136781215668, -0.7756471037864685, -0.023682063445448875, -0.845158278942...
def raster _ 4band _ aws _ s3 ( aws _ s3 _ testdata _ dir ) : return aws _ s3 _ testdata _ dir / " 4band _ test. tif "
[ 0.7091460227966309, -0.5162259936332703, 0.3533190190792084, -0.8990874886512756, 0.25852158665657043, 1.301211953163147, 0.7871443629264832, -0.5347340703010559, 0.528022825717926, -0.1259162276983261, 0.35890379548072815, 0.46825122833251953, -0.15359054505825043, -0.6912218928337097, ...
def get _ comment _ components ( initial _ value = " " ) : comment _ components = [ html. h3 ( " comments " ), dbc. textarea ( id = { id _ constants. node _ comment _ textarea : id _ constants. node _ comment _ textarea }, value = initial _ value, ), dbc. button ( id = { id _ constants. save _ comment _ textarea _ butt...
[ -0.6617661714553833, -0.36016255617141724, 0.6743521690368652, -0.691818118095398, 0.8016194701194763, 0.08928795903921127, 0.6545994281768799, -0.5551305413246155, -0.20256730914115906, 0.3659571707248688, -0.4605981707572937, -0.6367433071136475, 0.08954375237226486, 0.6282423734664917, ...
def calculate _ checksum _ on _ bytes ( b, algorithm = d1 _ common. const. default _ checksum _ algorithm ) : checksum _ calc = get _ checksum _ calculator _ by _ dataone _ designator ( algorithm ) checksum _ calc. update ( b ) return checksum _ calc. hexdigest ( )
[ -0.27120980620384216, 0.5318185091018677, 0.3400473892688751, 0.416790634393692, -0.09608998149633408, 0.1406823992729187, 0.014245524071156979, 0.7974702715873718, 0.37621769309043884, 0.011437345296144485, -0.8843279480934143, -0.037044502794742584, -0.18204228579998016, 0.43027979135513...
def pairwise _ dist _ tomatrix ( d ) : return scipy. spatial. distance. squareform ( x = d, force ='tomatrix')
[ -0.6543990969657898, -0.4065770208835602, 0.47913381457328796, -0.8556721806526184, -0.7445527911186218, -0.03480089083313942, -0.48489704728126526, -0.23702912032604218, 1.2578504085540771, -0.24300196766853333, 0.0438220351934433, -0.24171967804431915, 1.2311360836029053, -0.174222409725...
def _ convert _ country _ identifier ( country _ identifier : str ) - > str : country _ abbrev _ map = json. loads ( pkg _ resources. resource _ stream ( resource _ package,'data / country _ abbrev _ map. json'). read ( ). decode ( ) ) country _ abbrev = country _ abbrev _ map. get ( country _ identifier ) if country _...
[ 0.09592165797948837, -1.816227912902832, 0.5954970121383667, -0.6978275775909424, -0.5725317597389221, 1.0699598789215088, -0.07876335084438324, 0.737028956413269, 0.428679496049881, 0.4259272515773773, 0.1884807050228119, 0.4303325116634369, 0.30058741569519043, -0.16946277022361755, 0....
def cn _ createrotated ( self, theta ) : depr ('createrotated ', 1. 1,'obj. rotate ( theta )') return self. rotate ( theta )
[ -0.02372104488313198, 0.3735302984714508, 0.3033295273780823, -0.42165303230285645, 0.6304075121879578, 0.11149290949106216, 0.5496623516082764, -1.700627326965332, -0.3235837519168854, -0.967509925365448, -0.3510396182537079, -0.13645103573799133, -0.7550047636032104, -0.5303981304168701,...
def addautoflags ( parser, release _ track ) : flags. addloggingflag ( parser ) flags. addmonitoringflag ( parser ) flags. addbinauthzflags ( parser, release _ track = release _ track, autopilot = true ) flags. addworkloadpoliciesflag ( parser ) flags. addreleasechannelflag ( parser, autopilot = true )
[ 0.19328810274600983, 0.03849932923913002, 0.531007707118988, 0.5075588226318359, 1.0475491285324097, 0.5221113562583923, -0.2910008728504181, -0.10738727450370789, -0.7749434113502502, -0.7198149561882019, -1.0394175052642822, 0.43464598059654236, -0.6023873686790466, 1.5868409872055054, ...
def _ checkoverlap ( self ) : if self. _ last _ last _ page _ count is not none : # buffered pages is the sum of pages to be read in this period by # memorydumper and pages to be written in this cycle buffered _ pages = self. _ current _ page _ count - self. _ last _ last _ page _ count logging. info ('buffered _ pages...
[ -0.301118403673172, 0.5782305598258972, 1.1227545738220215, -0.5070760846138, -0.11089665442705154, 0.2811836302280426, 0.2058621197938919, -0.19821983575820923, 0.2506227195262909, 0.1613188534975052, 0.9202859997749329, 0.5222120881080627, -0.45687150955200195, 0.6601420044898987, 0.52...
def get _ join _ table ( self ) : return ex. select ( columns = [ make _ sql _ clause ( group, ex. column ) for group in self. groups. values ( ) ], from _ obj = self. from _ obj ). group _ by ( * self. groups. values ( ) )
[ 0.24566686153411865, -0.08041411638259888, 0.7319214344024658, 0.43613356351852417, -0.18914709985256195, 0.02164524793624878, 0.3569280803203583, -0.11948574334383011, -1.1304430961608887, -0.02235640212893486, 0.9445517063140869, -0.30748897790908813, -0.6415776610374451, -0.480223715305...
def preprocess ( text ) : x = [ ] sent _ detector = nltk. data. load ('tokenizers / punkt / english. pickle') for t in text : sents = sent _ detector. tokenize ( t ) result ='' for s in sents : tokens = word _ tokenize ( s ) result + ='' +''. join ( tokens ) x. append ( result ) return x
[ -0.20020130276679993, -0.01924646645784378, 0.6068786382675171, -0.39040032029151917, -0.2833274304866791, -0.5776057243347168, -0.8067247867584229, 0.1663765162229538, 0.04967702552676201, 0.5947849750518799, -0.9254449605941772, -0.5723373293876648, -0.02479347586631775, 0.92983138561248...
def stop ( ) : global running running = false book = workbook ( ) sheet = book. active sheet ['a1'] ='city name'sheet ['b1'] ='temp'sheet ['c1'] ='time'sheet ['d1'] ='unit'row = 2 column = 1 temp _ row = 2 temp _ column = 2 time _ row = 2 time _ column = 3 unit _ row = 2 unit _ column = 4 global list global time _ list...
[ -0.2838526666164398, -0.03934179246425629, 0.9483978152275085, -0.6949430108070374, 0.08155283331871033, 1.3623112440109253, 0.7813319563865662, 0.7213914394378662, -1.3237600326538086, 0.664186418056488, -0.44843345880508423, -0.055083923041820526, -0.8323747515678406, 0.2519870698451996,...
def sort _ dict _ by _ key ( dict _ to _ sort ) : return ordereddict ( sorted ( dict _ to _ sort. items ( ), key = lambda e : e [ 0 ] ) )
[ -0.7032512426376343, -0.11869671195745468, 0.11924616992473602, -0.8158334493637085, -0.7607269883155823, 0.21462440490722656, -0.4906409680843353, -0.21374060213565826, -0.42042967677116394, 0.841225802898407, 0.5755299925804138, 0.20213520526885986, 0.040595851838588715, -0.1993965506553...
def interpolationderivation ( cls, record ) : # make a managed dependent yield from cls. manageddependentderivation ( ) # if the record has anything to say if record. interpolation : # this is its spot yield record. interpolation # this where they fit yield cls. interpolation # and whatever else my superclass says yiel...
[ 0.5445703268051147, 0.16687360405921936, 0.8529883027076721, -0.06548464298248291, -0.08829130232334137, 0.4543028175830841, 0.4536855220794678, 0.16007179021835327, 0.547126293182373, -0.6832614541053772, 0.20727558434009552, -0.22099533677101135, -0.4997618794441223, 0.6939127445220947, ...
def luminance ( image ) : if image. ndim = = 2 : return np. dot ( rgb _ to _ y, image. t ). t else : rows, cols, _ = image. shape image _ flat = image. reshape ( rows * cols, 3 ) y _ flat = np. dot ( rgb _ to _ y, image _ flat. t ). t return y _ flat. reshape ( image. shape [ 0 : 2 ] )
[ -0.2724691331386566, -0.7081775665283203, 0.8906853199005127, 0.06616862863302231, 0.22157438099384308, -0.8393922448158264, -0.17015284299850464, 0.30732086300849915, 0.37132999300956726, 0.6668578386306763, 0.09207471460103989, -0.15845774114131927, -0.07220122218132019, -0.0464329570531...
def crop _ image _ by _ window ( dens _ array, window _ size, threshold, output _ dir = none ) : # scan and gather by window stats if not output _ dir : print ( " please provide name for output folder. " ) return w _ h, w _ w = window _ size for file in tqdm ( dens _ array, total = len ( dens _ array ) ) : img = cv2. i...
[ -0.508399486541748, -0.5418363213539124, 1.0960909128189087, 0.6110406517982483, -0.832380473613739, -0.5201246738433838, 1.012860894203186, -0.8472241163253784, 0.19579018652439117, 0.7648563385009766, 0.5315500497817993, 0.14094705879688263, 0.5345751047134399, 0.6151988506317139, -0.0...
def main ( verb, noun ) : return verb + noun
[ 0.8724660277366638, -0.6978146433830261, 0.27748581767082214, 0.3804239332675934, 0.4785202741622925, -0.07790407538414001, -1.6705423593521118, 0.4087747037410736, 0.02802102267742157, 0.2580363154411316, 0.5443594455718994, 1.1338664293289185, -0.4521813690662384, -0.32862547039985657, ...
def _ _ init _ _ ( self, left _ right, position _ x, position _ y, change _ x, radius, color, life, dif = 1 ) : self. left _ right = left _ right self. position _ x = position _ x self. position _ y = position _ y self. change _ x = change _ x self. radius = radius self. color = color self. life = life self. dif = dif ...
[ -0.1642330288887024, -0.382396936416626, 0.6090452075004578, -0.08136213570833206, 0.4294579327106476, 0.9043324589729309, -0.6271812915802002, -0.3768020272254944, -0.3062371015548706, 0.039941009134054184, -0.7644121646881104, -0.3851729929447174, 0.34870848059654236, 1.668412208557129, ...
def update _ bullets ( bullets, aliens, ai _ settings, screen, ship, stats, sb ) : bullets. update ( ) for bullet in bullets. copy ( ) : if bullet. rect. bottom < = 0 : bullets. remove ( bullet ) # checks alien and bullet collisions check _ alien _ bullet _ collisions ( bullets, aliens, ai _ settings, screen, ship, sta...
[ -0.20383676886558533, -1.025640606880188, 0.3801563084125519, 0.6782811880111694, 0.8153701424598694, 0.08128755539655685, -0.7235172390937805, -1.175736904144287, 0.18217501044273376, 1.0213731527328491, -0.33318832516670227, 0.007369644474238157, -0.5217868089675903, 0.6496830582618713, ...
def load _ mesh _ by _ file _ extension ( file _ name ) : if file _ name. endswith ( ". obj " ) : v, f, n = pcu. read _ obj ( file _ name, dtype = np. float32 ) elif file _ name. endswith ( ". ply " ) : v, f, n, uv = pcu. read _ ply ( file _ name, dtype = np. float32 ) elif file _ name. endswith ( ". off " ) : v, f, n ...
[ 0.6070079803466797, -0.3016888201236725, 0.9023380279541016, 0.6316354870796204, -1.199771523475647, 1.4061862230300903, 0.02545640617609024, -0.822533369064331, -0.45737138390541077, 0.4809366464614868, -0.46249765157699585, 0.9733851552009583, -0.6241521239280701, 0.23941032588481903, ...
def clear _ children ( self ) : self. child _ item = none
[ 0.1648779809474945, -0.36797401309013367, 0.291629433631897, -0.027020609006285667, 0.24392817914485931, 0.5899699330329895, 0.08147287368774414, -0.35616257786750793, -0.9815461039543152, -0.27797481417655945, -1.2058448791503906, 0.6102226376533508, 0.07519243657588959, -0.42983826994895...
def _ determine _ crosslink _ network ( self, verbose ) : pos = nx. get _ node _ attributes ( self. crosslink _ graph,'pos') attachment = nx. get _ node _ attributes ( self. crosslink _ graph,'surface _ bound') nodes = self. crosslink _ graph. nodes ( ) nodes. sort ( key = lambda node : self. min _ periodic _ distance ...
[ 0.8066907525062561, -0.36410611867904663, 0.8026273846626282, 0.04894789308309555, 0.6582949161529541, 0.3136961758136749, 1.0232871770858765, -0.42371881008148193, 0.46796610951423645, -0.3418836295604706, 0.19841155409812927, 0.22154758870601654, -0.21410413086414337, 0.10311184823513031...
def test _ fail _ unexpected _ parameters ( self ) : self. assertfiltererrors ( {'addresses': [ address ( self. trytes1 ) ], # i've had a perfectly wonderful evening. # but this wasn't it.'foo':'bar ', }, {'foo': [ f. filtermapper. code _ extra _ key ], }, )
[ -1.0148396492004395, 0.6182562112808228, 0.3978809416294098, -0.3225485384464264, 0.028844311833381653, 0.8709468841552734, -0.7775850892066956, -0.1495477259159088, -0.23502489924430847, 0.39828789234161377, -0.748719334602356, 0.44710400700569153, -0.13893643021583557, 0.8852522373199463...
def get _ program _ id ( path ) : index = fetch _ url ( " http : / / au. tv. yahoo. com % s " % path ) return re. findall ( " vid \ s +? : \ s +?'(. *? )'", index ) [ 0 ]
[ 0.13699431717395782, -0.6195723414421082, 0.6914703249931335, -0.31364867091178894, -0.14796335995197296, 0.021384047344326973, 0.34745895862579346, 0.10304415225982666, 1.9757705926895142, 0.8184709548950195, -0.16044291853904724, 0.965264618396759, -0.7840151786804199, -0.536169588565826...
def sort ( self, override = true, how = " ilabel " ) : self. sorted _ fst _ fn = self. fst _ fn if override else self. base + '. sorted. fst'call = " fstarcsort - - sort _ type = % s % s % s " % ( how, self. fst _ fn, self. sorted _ fst _ fn ) subprocess. call ( [ call ], shell = true ) return self
[ -0.3966645896434784, -0.009191098622977734, 0.503190815448761, 0.3322560489177704, -0.2454272210597992, -0.24726542830467224, 0.020103279501199722, -0.9011526107788086, -0.4183909296989441, -1.6633456945419312, -0.17756123840808868, 0.6197807788848877, -0.3204284608364105, 0.51813244819641...
def pointify ( self, polygon ) : return tuple ( polygon ) [ 0 ]
[ -0.377934992313385, -0.3636963367462158, 0.2971482574939728, -0.6101630926132202, 1.1592131853103638, 0.2214733362197876, -0.8496589660644531, 0.3497294783592224, 0.1876496523618698, 0.5078428983688354, -0.5401946902275085, -0.7990390658378601, -0.19500698149204254, -1.6817233562469482, ...
def create _ account ( self, currency = none ) : url = " { 0 } / { 1 } / accounts ". format ( self. domain, self. api _ version ) params = { " currency " : currency } try : return self. _ client _ _ call ( uri = url, params = params, method = " post " ) except requestexception : return false except assertionerror : ret...
[ -1.3516464233398438, 0.6452622413635254, 0.4805335998535156, 0.4903551936149597, 0.43605127930641174, 0.646202027797699, 0.6417531967163086, -0.22081370651721954, 0.30239367485046387, -0.2599344551563263, -0.6153282523155212, -0.15729977190494537, -1.4193323850631714, -0.0443628653883934, ...
def test _ atomic _ id _ enumeration _ 1 _ nistxml _ sv _ iv _ atomic _ id _ enumeration _ 2 _ 5 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / id / schema + instance / nistschema - sv - iv - atomic - id - enumeration - 2. xsd ", instance = " nistdata / atomic / id / schem...
[ -0.34750449657440186, -1.0487571954727173, 0.50211501121521, 0.5936279892921448, -0.4440445005893707, 0.09439671039581299, 0.697081983089447, -0.3824208974838257, -0.44982218742370605, 0.7305095195770264, -0.7315899133682251, 0.40844061970710754, 0.3978557884693146, 0.24476057291030884, ...
def reviewcurrentcharacter ( self, inputevent ) : self. _ reviewcurrentcharacter ( inputevent, 1 ) return true
[ -1.094178318977356, -1.2642985582351685, 0.2682015597820282, -0.08976967632770538, -1.3056443929672241, 0.9973844289779663, 0.4594249129295349, -0.1871669739484787, -0.33701324462890625, -0.18081438541412354, -0.299466073513031, 0.9267638921737671, -1.1247034072875977, -0.4489418864250183,...
def sample _ sphere ( size, lon _ range = none, lat _ range = none, random _ state = " random - seed " ) : random _ state = get _ random _ state ( random _ state ) if lon _ range is none : lon _ range = angle ( [ 0., 360. ], " deg " ) if lat _ range is none : lat _ range = angle ( [ - 90., 90. ], " deg " ) # sample ran...
[ -0.48330140113830566, -1.127675175666809, 0.47567126154899597, -0.8521824479103088, -0.9432401657104492, 0.010842060670256615, -0.5677509903907776, 0.2556363642215729, 1.7241125106811523, 0.24526487290859222, -0.49637582898139954, 0.6847155690193176, 0.08760138601064682, -0.448560625314712...
def num _ anchors _ per _ location ( self ) : return [ len ( size ) for size in self. _ base _ sizes ]
[ -0.29883819818496704, -0.3982422351837158, 0.6088045239448547, -0.18343989551067352, 1.0312039852142334, 0.8394551873207092, 0.826143741607666, 0.15217779576778412, 0.6552318334579468, -0.18057464063167572, -0.6438254117965698, 0.348117470741272, 0.03317560628056526, -0.07685810327529907, ...
def schema ( self ) : return tuple ( ( name, self. _ _ columns [ name ] [ 0 ] ) for name in self. columns )
[ -1.717511534690857, 0.02122921124100685, 0.40373581647872925, -0.5821864604949951, 0.5553067922592163, -0.04281291738152504, -0.9750608801841736, -0.18327432870864868, -1.1418991088867188, 0.5224326252937317, -1.0506947040557861, -0.6797075867652893, 0.4313303530216217, -0.6307523250579834...
def test _ example _ input _ two _ edit _ cancel _ entity ( 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. edit _ row ( " dummy _ input _ two " ) self. assert _ u...
[ 0.4234473705291748, -0.10507901012897491, 0.6348817348480225, 0.5317290425300598, 0.11687021702528, 0.5376895070075989, -0.1494324952363968, 0.2364073395729065, 0.13238367438316345, 0.45331454277038574, -0.024332042783498764, -0.24922843277454376, 0.8881221413612366, 0.015372948721051216, ...
def test _ fallback _ channel _ 410 ( self, patch _ refresh _ host _ plugin, patch _ put, patch _ upload, _ ) : with self. create _ mock _ protocol ( ) as wire _ protocol : wire. hostpluginprotocol. is _ default _ channel = false wire _ protocol. client. update _ goal _ state ( ) # act wire _ protocol. client. upload _...
[ 0.5868399739265442, 0.19259680807590485, 0.7803559899330139, 0.10453370213508606, 1.4470688104629517, 0.2994624376296997, 0.21359053254127502, -0.26305970549583435, -0.5543373823165894, 0.05256509780883789, -0.30492591857910156, 0.3554960787296295, -0.5650205612182617, -0.02703799121081829...
def write _ clone _ seqs ( self, output _ filepath, sort _ by _ count = false ) : # make sure clones have been compiled 1st if self. clones = = none : print'the clonal sequences have not been gathered yet from the sample. run the " group _ clones " method first'return fileout = open ( output _ filepath, " w " ) if sort...
[ 0.16460192203521729, -0.37734946608543396, 0.7857133746147156, 0.5253723859786987, -0.317953884601593, 0.3506820797920227, 0.5098470449447632, -0.16324102878570557, -0.20837228000164032, 0.9671350717544556, -0.014998998492956161, 0.10216029733419418, -0.18603312969207764, 0.340868800878524...
def page _ not _ found ( e ) : return'sorry, nothing at this url. ', 404
[ -0.5250890254974365, -0.6634703278541565, 0.2769848108291626, -0.7079537510871887, 0.8187170624732971, 0.32265225052833557, -0.37257716059684753, 0.29386836290359497, 0.09814257174730301, 0.00805417075753212, 0.22586071491241455, -0.20309273898601532, 0.4975530505180359, 0.3213329613208771...
def to _ file ( file, value, typcls ) : s = stream ( file ) s. write _ value ( value, typcls. _ ep _ typedesc )
[ -0.11481904983520508, -0.0017047921428456903, 0.33527442812919617, 0.08379542827606201, 0.7376497387886047, 0.9426702857017517, 0.33238300681114197, -0.21966303884983063, -0.7516263127326965, 0.4551291763782501, 0.031054705381393433, 0.4333699643611908, 0.2583714425563812, 0.01457752194255...
def hex _ bg ( self ) : rgb _ bg = self. rgb _ bg return none if rgb _ bg is none else rgb2hex ( rgb _ bg )
[ 0.4636819362640381, -0.034569643437862396, 0.9194031357765198, 0.9340888261795044, 0.5323213338851929, 0.065147764980793, -0.4569777250289917, 0.7276335954666138, 0.037235673516988754, 0.3712548017501831, -0.14559303224086761, 0.15512947738170624, -0.8009747862815857, 0.013755046762526035,...
def _ _ init _ _ ( self, code = none, geonames _ id = none, name = none, state = none, country = none, location = none, timezone = none, currency = none ) : self. _ code = none self. _ geonames _ id = none self. _ name = none self. _ state = none self. _ country = none self. _ location = none self. _ timezone = none se...
[ 0.07532054930925369, 0.1731656938791275, 0.5614740252494812, -0.40466225147247314, 0.19401420652866364, -0.12021428346633911, -1.199027180671692, 0.32605892419815063, 0.6261872053146362, 0.5097419619560242, -0.9581472873687744, -0.16516341269016266, -0.1696680635213852, 0.4608742296695709,...
def generate _ gallery ( self, create = false, clear = false, generate _ code = false, sphinx = false, plot _ list = none, all _ plots = false, url _ prefix = " ", levels = " ", itimes = " ", vtimes = " ", simple _ naming = false, plot _ types = none ) : if mswms _ settings. _ _ file _ _ : if all _ plots : # imports he...
[ 0.14053548872470856, 0.400685578584671, 0.7953879237174988, 0.6743466854095459, 0.0899280458688736, -0.3704889118671417, 0.4194972515106201, 0.012954366393387318, 0.12939880788326263, -0.32547852396965027, -0.43447205424308777, 0.32710492610931396, 0.032181933522224426, 1.3573694229125977,...
def add _ roll ( self, roll ) : score = self. score ( roll ) self. rolls. create ( roll = roll ) return score
[ -0.15741895139217377, 0.635928750038147, 0.7112051248550415, 0.2751968502998352, 0.25192275643348694, 0.3031282424926758, -0.8845032453536987, -0.41840681433677673, 0.5061506032943726, -0.8718113303184509, -0.33062684535980225, -0.5129839777946472, -0.5818777680397034, -0.01951036043465137...
def mssne _ obj _ fct ( x, sigma _ ij, n, n _ components, p _ h, t _ h, n _ perp ) : global n _ eps _ np _ float64 # evaluating the lds similarities. s _ ij = mssne _ eval _ sim _ lds ( n = n, n _ perp = n _ perp, t _ h = t _ h, np _ eps = n _ eps _ np _ float64, arr _ ones = np. ones ( shape = n, dtype = np. float64 )...
[ 0.4963940382003784, 0.2124963253736496, 0.5444962382316589, -0.4337952136993408, -0.7893335223197937, -0.8228591084480286, 0.10121061652898788, 0.3837933838367462, 0.11784960329532623, 0.1570700705051422, -0.3576355576515198, 0.32909467816352844, 0.7987199425697327, -0.23660193383693695, ...
def address ( self ) : return self. _ address
[ -0.3245115578174591, -1.1828664541244507, 0.3834940195083618, 0.07278474420309067, 0.28964948654174805, 1.273400068283081, 1.048566460609436, 0.3201608955860138, 1.3147104978561401, -1.2206778526306152, 0.23786260187625885, 1.2304271459579468, -0.40971335768699646, -0.9329610466957092, 0...
def dot ( x, y, sparse = false ) : if sparse : res = tf. sparse _ tensor _ dense _ matmul ( x, y ) else : res = tf. matmul ( x, y ) return res
[ -0.13853012025356293, 0.32199665904045105, 0.29697445034980774, -0.563326895236969, 0.2739057242870331, 0.18902277946472168, -0.24493452906608582, -0.7450729012489319, 0.20646932721138, 0.32529300451278687, 0.7224993109703064, 0.26501205563545227, 0.5259312391281128, -1.0303239822387695, ...
def genes _ to _ scores ( self, query _ ids, species, parameters ) : # g = get _ guildify ( ) settings = self. get _ settings ( ) guildifier. set _ parameters ( settings ) user _ entity _ ids = [ ] for user _ entity _ id in query _ ids : try : int ( user _ entity _ id ) except : continue user _ entity _ ids. append ( u...
[ -0.6901419758796692, -0.3455241322517395, 0.6396573781967163, -0.16331681609153748, 1.0626322031021118, -0.4162781238555908, 0.3797905743122101, -0.6638497114181519, -0.8572522401809692, 1.2497472763061523, -0.6163954138755798, 0.6614441275596619, -0.32334426045417786, 0.4918953478336334, ...
def test _ example _ input _ two _ delete _ valid _ title ( 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. delete _ row ( " dummy _ input _ two ", prompt _ msg = ...
[ 0.34839245676994324, 0.12593165040016174, 0.7106846570968628, 0.5980423092842102, -0.2755086421966553, 0.3908984661102295, -0.7696408629417419, -0.2993384003639221, 0.5029909014701843, -0.06279757618904114, 0.17890305817127228, -0.005401786416769028, 0.3508692979812622, 0.26894617080688477...
def ts _ split ( data, test _ size = 100 ) : " " " splits input dataframe into train and test. works for both univariate and multivariable dataframes, in case the split is done after generating the features and lags. parameters - - - - - - - - - - data : pd. dataframe input dataframe containing the time series. index m...
[ -0.22207845747470856, 0.8790128231048584, 0.4811621308326721, -0.03973858058452606, -0.3588525354862213, -0.4882342517375946, 0.3466056287288666, 0.4297751784324646, 0.050256405025720596, 0.4347318708896637, 0.19830285012722015, -0.16427268087863922, 0.276689350605011, -0.5540633201599121,...
def _ base64 _ redirect ( encoded _ domain ) : try : decoded _ domain = base64. b64decode ( encoded _ domain ) if dnstwist. is _ valid _ domain ( decoded _ domain ) : return'/ atom / { } '. format ( tools. encode _ domain ( decoded _ domain ) ) except : pass
[ -0.40112197399139404, -0.0952097550034523, 0.45918282866477966, 0.3404928743839264, -0.46266302466392517, 0.2548520863056183, 0.2336534857749939, 0.41431260108947754, 0.8370590209960938, -0.8255650401115417, 0.5967456102371216, 1.313334584236145, 0.23729778826236725, -0.506261944770813, ...
def plot _ knee _ normalized ( self, figsize : optional [ tuple [ int, int ] ] = none ) : import matplotlib. pyplot as plt if figsize is none : figsize = ( 6, 6 ) plt. figure ( figsize = figsize ) plt. title ( " normalized knee point " ) plt. plot ( self. x _ normalized, self. y _ normalized, " b ", label = " normalize...
[ 0.612769603729248, -0.04355950653553009, 0.6915286183357239, -0.8602198958396912, -0.5495055317878723, 0.5486692786216736, 0.4510294198989868, 0.36283034086227417, 0.91202712059021, -0.1958506554365158, 0.02639610320329666, 1.2676417827606201, -0.1503746062517166, 0.013285188004374504, 0...
def accepts _ command ( self, cmd ) : if cmd = = self. command : return true return false
[ -0.27832698822021484, 0.04014032706618309, 0.5637998580932617, 0.17603619396686554, -0.8915143013000488, 0.977179229259491, -0.4104003608226776, -0.12393777817487717, 0.5436301231384277, -0.790579617023468, 0.3817363679409027, 0.6078504920005798, -0.7104433178901672, 1.2672559022903442, ...
def flags _ to _ direction ( flags ) : assert flags in [ 0, 1, 2, 3 ] if flags in [ 0, 2 ] : return " > " # host - > controller ( or h2d? ) elif flags in [ 1, 3 ] : return " < " # controller - > host ( or d2h? )
[ -0.8195837140083313, -0.04497508332133293, 0.47247523069381714, 0.3920619487762451, 0.719781756401062, 0.7392723560333252, 0.4240785837173462, -0.5445762276649475, -0.7781022191047668, -0.8074753284454346, -0.2171909362077713, 0.08425147831439972, -0.012829734943807125, 0.12468131631612778...
def merge _ overpass _ jsons ( jsons ) : elements = [ ] for osm _ json in jsons : elements. extend ( osm _ json ['elements'] ) return {'elements': elements }
[ -1.5687452554702759, -0.7392078638076782, 0.47797706723213196, -0.5372729301452637, -0.33755624294281006, 0.8386697173118591, -0.6389245390892029, -0.9052230715751648, 0.33128151297569275, 0.2907951772212982, -0.2182559072971344, -0.8442651629447937, 0.05782752111554146, 0.6704515814781189...
def cast ( * args ) : return _ itksubtractconstantfromimagefilterpython. itksubtractconstantfromimagefilteriuc3diuc3 _ cast ( * args )
[ 0.759914755821228, -0.06783445924520493, 0.43993932008743286, -0.5848664045333862, 0.02247460000216961, 1.4678277969360352, 0.6128743290901184, 0.4805353283882141, 0.12882469594478607, 0.26684483885765076, -0.20121096074581146, -0.21245725452899933, -0.05685615539550781, -0.425315290689468...
def printparams ( self, param _ vector, param _ names = none ) : if param _ names = = none : param _ names = self. free _ params. keys ( ) print " model parameters : " for p in param _ names : if type ( self. free _ params [ p ] [ 1 ] ) = = tuple : ( i, ( x, y ) ) = self. free _ params [ p ] print p, " : ", numpy. resh...
[ -0.7978192567825317, -0.2696269154548645, 0.4299401640892029, -0.037307608872652054, -0.42538174986839294, 0.47129371762275696, 0.1642816811800003, -0.3958170711994171, -0.7000470161437988, 0.768207311630249, -0.6470341682434082, 0.6714449524879456, -0.7090089917182922, 0.3684041202068329,...
def softmax ( x ) : e _ x = np. exp ( x - np. max ( x ) ) return e _ x / np. sum ( e _ x, axis = 0 )
[ 0.7489960789680481, 0.41307830810546875, 0.6150297522544861, 0.8100295066833496, -0.7237644791603088, -0.2244202345609665, -0.6167088747024536, 0.9883774518966675, 1.5285183191299438, 0.45623859763145447, -0.34981250762939453, 0.6496590971946716, 0.3900361657142639, -0.2304861694574356, ...
def pull _ snvs _ from _ bams ( self ) : instrain. logutils. log _ checkpoint ( " compare ", " pullsnvsfrombams ", " start " ) scaff2name2position2counts = { } num _ to _ run = estimate _ timing ( self. name2scaff2locs ) pbar = tqdm ( desc ='pulling snvs from bams ', total = num _ to _ run ) for name, scaff2locs in sel...
[ -0.0008583448361605406, -0.3064894378185272, 0.44289711117744446, 0.4950712323188782, -0.4820840060710907, 0.17536382377147675, 0.06162400171160698, -0.6150359511375427, -0.10814613848924637, -0.09484278410673141, -0.6790335178375244, -0.11317677795886993, -0.05851496383547783, -0.02540478...
def get _ td _ qnm ( template = none, * * kwargs ) : input _ params = props ( template, qnm _ required _ args, * * kwargs ) f _ 0 = input _ params. pop ('f _ 0') tau = input _ params. pop ('tau') # the following have defaults, and so will be populated phi = input _ params. pop ('phi') amp = input _ params. pop ('amp') ...
[ -0.14023128151893616, 0.21646791696548462, 0.7466580271720886, -0.33141428232192993, -0.2651984393596649, -0.2290683090686798, -0.8597019910812378, -0.17975813150405884, -0.28445494174957275, -0.10137910395860672, -0.017056256532669067, -0.11985120177268982, 0.3258129954338074, 0.511015951...
def test _ atomic _ any _ uri _ min _ length _ 1 _ nistxml _ sv _ iv _ atomic _ any _ uri _ min _ length _ 2 _ 3 ( mode, save _ output, output _ format ) : assert _ bindings ( schema = " nistdata / atomic / anyuri / schema + instance / nistschema - sv - iv - atomic - anyuri - minlength - 2. xsd ", instance = " nistdata...
[ 0.009052172303199768, -0.6082327365875244, 0.5294108390808105, 0.7589066624641418, -0.283107191324234, 0.03047039918601513, -0.5469871163368225, -0.18704181909561157, 0.27486079931259155, -0.40813666582107544, 0.07701042294502258, 0.039976567029953, -0.4486035108566284, 0.1764899492263794,...
def reduce _ dict ( input _ dict, average = true ) : world _ size = get _ world _ size ( ) if world _ size < 2 : return input _ dict with torch. no _ grad ( ) : names = [ ] values = [ ] # sort the keys so that they are consistent across processes for k in sorted ( input _ dict. keys ( ) ) : names. append ( k ) values. ...
[ -0.1486394852399826, 0.6073545217514038, 0.6690688133239746, -0.259128212928772, -0.7624051570892334, 0.1725701540708542, 1.0204170942306519, 0.2668905258178711, -0.49364522099494934, 1.197505235671997, 0.665238082408905, -0.1466616541147232, -0.4187805652618408, 1.12654447555542, 0.4053...
def is _ bool _ field ( ary ) - > bool : try : iter ( ary ) except typeerror as error : raise typeerror ( " argument must be iterable. " ) from error bools = [ [ true, false ], [ 0, 1 ], [ " true ", " false " ], [ " true ", " false " ], [ " t ", " f " ], [ " t ", " f " ], [ " 0 ", " 1 " ], [ " ", " " ], ] if not ary : ...
[ -0.9367778301239014, 0.11353650689125061, 0.6804762482643127, 0.5801597237586975, 0.30416354537010193, 0.13469022512435913, 0.1311134248971939, -0.4757953882217407, -0.602725625038147, 1.140437126159668, -0.7027002573013306, -0.5120914578437805, -0.3923981189727783, 0.3754303455352783, -...
def split _ data _ train _ valid ( x _ data, y _ data, test _ proportion = 0. 3 ) : save _ log ('{ 0 } : : { 1 } '. format ( split _ data _ train _ valid. _ _ module _ _, split _ data _ train _ valid. _ _ name _ _ ) ) x _ train, x _ valid, y _ train, y _ valid = \ sklearn. train _ test _ split ( x _ data, y _ data, tes...
[ 0.16828927397727966, -0.4204939305782318, 0.6386910676956177, -0.14103412628173828, 0.14889225363731384, 0.8677660822868347, -0.5799629092216492, 0.6945950984954834, -0.10190965235233307, 0.3577703535556793, 0.15765775740146637, 0.2783315181732178, -0.47297433018684387, -1.8466191291809082...
def add _ toc ( self, filename ) : fname = os. path. abspath ( os. path. expanduser ( filename ) ) # fname _ stem = pathlib. path ( fname ). stem process = subprocess. popen ( [ self. command, " - - from ", " markdown ", " - - to ", " markdown ", " - - toc ", " - - toc - depth = 6 ", " - - standalone ", # " - - markdow...
[ -0.026389682665467262, -0.18896710872650146, 1.1888214349746704, -0.22171008586883545, -0.13428929448127747, 0.5059755444526672, 0.10083885490894318, -0.3780416250228882, -0.9785458445549011, -0.10626857727766037, 0.888175368309021, -0.2959785759449005, -0.10806851089000702, -0.04048970714...
def active _ end _ date ( self ) : if " active _ end _ date " in self. _ pattern : if self. _ pattern [ " active _ end _ date " ] : return schedulepattern. _ time _ converter ( self. _ pattern ['active _ end _ date'],'% m / % d / % y ', false ) return false
[ -0.5161027908325195, -0.8080085515975952, 0.8483515977859497, 0.14127567410469055, -0.28575706481933594, 0.3952839970588684, 0.423541396856308, -0.3079224228858948, 0.1619867980480194, 0.8064569234848022, -0.124262236058712, 0.1408274918794632, -0.3625565767288208, -0.39156848192214966, ...
def gen _ databools ( self ) : index _ data = self. roi _ df. index n _ data = len ( index _ data ) # controls ctrl _ bool _ _ chrt = self. chrt _ df ['group'] = = " control " ctrl _ subjids = self. chrt _ df. index [ ctrl _ bool _ _ chrt ] ctrl _ bool _ _ data = pd. series ( data = np. full ( n _ data, false ), index ...
[ -0.0478433258831501, -0.4078960716724396, 0.5904799699783325, -0.8211718797683716, 0.11285381764173508, 0.7880784869194031, 0.5334728360176086, -0.6367648839950562, -0.0625721886754036, -0.16173088550567627, 0.13094662129878998, 0.49145352840423584, -0.12965530157089233, -0.187821179628372...
def getlogicalinterfacesonthingtype ( self, thingtypeid, draft = false ) : if draft : req = apiclient. allthingtypelogicalinterfacesurl % ( self. host, " / draft ", thingtypeid ) else : req = apiclient. allthingtypelogicalinterfacesurl % ( self. host, " ", thingtypeid ) resp = requests. get ( req, auth = self. credenti...
[ -0.8074829578399658, -0.5274091362953186, 0.6123844385147095, -0.3169478178024292, -0.43747127056121826, 0.4495674967765808, -1.0684852600097656, -0.5223142504692078, 0.41168585419654846, 0.4984666705131531, -0.5726193785667419, 0.48398420214653015, -1.3897820711135864, 0.970000147819519, ...
def get _ files _ to _ delete ( local _ files : iterable, remote _ files : iterable ) - > list : if'_ _ iter _ _'not in dir ( local _ files ) or'_ _ iter _ _'not in dir ( remote _ files ) : return {'objects': [ ] } return {'objects': [ {'key': x } for x in remote _ files if x not in local _ files ] }
[ -0.4245535433292389, -1.0858696699142456, 0.4619392454624176, -0.6663653254508972, 0.6106845736503601, 0.23027350008487701, -0.30839502811431885, 0.5072970986366272, -1.0380383729934692, 1.027175784111023, -0.6889047026634216, -0.252517968416214, -0.031796894967556, 0.8465010523796082, -...