text
stringlengths
25
2.19k
embedding
listlengths
768
768
def next _ batch ( self ) : i = self. batch _ pointer self. batch _ pointer + = 1 if self. batch _ pointer > = self. args. batch _ num : self. batch _ pointer = 0 start = i * self. args. batch _ size assert i < self. args. batch _ num return self. batch _ pointer, self. x _ batches [ i ], self. y _ batches [ i ], \ sel...
[ 0.1202298030257225, -0.3283649981021881, 0.7003067135810852, 0.1276574581861496, -0.2177666574716568, -0.01795375905930996, 0.29892659187316895, -0.7938003540039062, -0.2556537985801697, -0.5994468331336975, -0.170395627617836, 0.5642819404602051, -0.3247632682323456, -0.35619136691093445,...
def test _ change _ feature _ setting ( self ) : pass
[ -0.755731999874115, 1.1675430536270142, 0.04593805596232414, 1.3441640138626099, 0.02387520670890808, -1.3941859006881714, 1.0542664527893066, -0.04947012662887573, -0.24482418596744537, 0.06590143591165543, -1.424569845199585, 0.7599028944969177, -0.3258930444717407, 0.31638431549072266, ...
def _ uninstallvboxondarwin ( self ) : # is virtualbox installed? if not, don't try uninstall it. svbox = self. _ getvboxinstallpath ( ffailifnotfound = false ) ; if svbox is none : return true ; # find the dmg. sdmg = self. _ findfile ('^ virtualbox -. * \ \. dmg $') ; if sdmg is none : return false ; if not os. path....
[ -0.16036731004714966, 0.5671433210372925, 0.733176589012146, 0.15556776523590088, -0.3541344702243805, -0.6010205745697021, 0.12415604293346405, 0.23692283034324646, -0.4081589877605438, 0.0681631788611412, -0.2544538974761963, -0.4215777516365051, -0.6118488311767578, 0.4448431134223938, ...
def apply _ off _ center _ transformation ( self ) : image = self. modification _ information. image information = self. modification _ information # determines the limit of how much the piece can be shifted left / up min = int ( ( information. original _ dimensions - information. bounding _ box _ dimensions ) / 2 ) # ...
[ -0.5797774791717529, -0.05281057953834534, 0.6290392279624939, -0.21956767141819, -0.7715464234352112, 0.6290509700775146, 0.4793696701526642, 0.06578244268894196, 0.8392007350921631, 0.00944514200091362, 0.45140478014945984, 0.4489712119102478, -0.6331301331520081, 0.4010655879974365, 0...
def map _ clusters _ to _ data ( data, clusters, how ) : # fixme hardcoded time intervals ('1h ','1d') # get all timesteps, not just the first per day ts _ per _ day = _ get _ timesteps _ per _ day ( data ) idx = clusters. index new _ idx = _ hourly _ from _ daily _ index ( idx ) clusters _ timeseries = ( clusters. rei...
[ -0.5244731903076172, 0.20948868989944458, 0.8160015940666199, 0.04871315881609917, -0.13834574818611145, 0.4558131992816925, -0.19575032591819763, -0.6115339398384094, -0.2116442322731018, -0.11043701320886612, 0.5080443620681763, 0.023808104917407036, 0.7753642797470093, 0.153594866394996...
def test _ graph _ g _ suite _ associations _ post ( self ) : pass
[ -0.23632192611694336, 0.6434139609336853, 0.03297071531414986, 1.05877685546875, 0.4630175232887268, 0.7417059540748596, 1.9743232727050781, -1.0816222429275513, -0.1915806233882904, -0.43725523352622986, -0.1205747127532959, -0.30419400334358215, -0.059522271156311035, 0.11158734560012817...
def getimagesperdma ( ) : andor _ solis. getimagesperdma. restype = ctypes. c _ uint images = ctypes. c _ ulong ( ) result = andor _ solis. getimagesperdma ( ctypes. byref ( images ) ) check _ status ( result ) return int ( images. value )
[ -1.1244488954544067, 0.3434450924396515, 0.4730047881603241, 0.10072952508926392, -0.5049804449081421, -1.1770261526107788, 1.2360079288482666, 0.3782308101654053, 1.0141409635543823, -0.03832473233342171, 0.5015133023262024, 0.19081905484199524, -0.6908953785896301, 0.7255434989929199, ...
def calculate _ new _ score ( self, group ) : group _ size = len ( group ) self. _ score + = self. base _ tile _ score * group _ size if group _ size > 4 : bonus = self. bonus _ points * ( group _ size - 4 ) self. _ score + = bonus self. message = f " bonus { bonus } points! "
[ -0.21372270584106445, 0.9220484495162964, 0.4337518513202667, 0.37012606859207153, 0.20951929688453674, -0.7448520660400391, 0.26571953296661377, -0.9060688018798828, -0.4391273856163025, 0.6135717630386353, -0.40742725133895874, -0.3814752697944641, -0.6827254891395569, 0.3509321212768554...
def _ delete _ scheduler ( self ) : try : self. _ scheduler. unschedule _ job ( self. _ job ) self. _ scheduler. shutdown ( ) # self. _ scheduler. remove _ scheduler ( self. _ job ) except keyerror : log. info ('failed to remove scheduled job for acquire _ sample')
[ 0.6904436945915222, -1.0288846492767334, 0.39949652552604675, 0.338108628988266, -0.6543931365013123, -0.6295182704925537, -0.37182706594467163, 0.5739037394523621, 0.3893437087535858, -0.1874396800994873, 0.5803500413894653, 0.01886381022632122, -0.09780478477478027, 0.17553143203258514, ...
def to _ output ( self, value ) : return json. loads ( resolwe _ runtime _ utils. save ( self. name, value ) )
[ -1.2770649194717407, -0.7219574451446533, 0.4434545636177063, -1.110626459121704, -0.8482840657234192, -1.0116738080978394, -0.2718508541584015, -1.7042202949523926, -0.10655126720666885, 0.8850185871124268, -1.4706673622131348, -0.4955437183380127, -0.4141410291194916, -0.6636423468589783...
def _ _ commandtoxml ( doc, cmd ) : # < execute id = " 1 " stage = " 1 " component = " mas " cwd = " % epocroot % " commandline = " getrel mas 92 _ 013 _ symbian _ os " / > cmdsnode = doc. createelementns ( " ", " execute " ) cmdsnode. setattributens ( " ", " id ", " % d " % cmd. jobid ( ) ) cmdsnode. setattributens ( ...
[ 0.2150818109512329, -0.7949466109275818, 0.7180787324905396, -0.49503782391548157, -0.47449806332588196, 0.27776047587394714, -0.14493082463741302, 0.3040408194065094, 0.008879847824573517, -0.43994051218032837, 0.5722383856773376, -0.4587881863117218, 0.7186146378517151, 0.475533038377761...
def select ( selector, obj ) : parser = parser ( obj ) try : return parser. parse ( selector ) except selectorsyntaxerror as e : log. exception ( e ) return false
[ -0.5793961882591248, -0.8810345530509949, 0.409448504447937, -0.30632296204566956, -0.6227151155471802, -0.35655829310417175, -0.40735334157943726, -0.5073121190071106, 0.45304223895072937, -0.04412168264389038, -0.36401310563087463, -0.14105871319770813, -0.4298466145992279, -1.4637595415...
def tracksep _ flags ( lat, time, timelag = 10 ) : n = lat. shape [ 0 ] flags = np. empty ( n, np. uint8 ) # data in - memory if cmodule : # c function mod. tracksep _ flags ( lat, time, flags ) else : # py function i _ beg = 0 for i _ end in xrange ( n - 1 ) : # if break in time or last track if ( time [ i _ end + 1 ]...
[ -0.8887254595756531, -0.05640147253870964, 1.1635042428970337, -0.819280207157135, 0.01294872909784317, 0.1474849283695221, -0.0610966794192791, -0.6969650983810425, -0.5915445685386658, 0.4962441623210907, -0.4823216497898102, -0.25197505950927734, 0.10929160565137863, 0.6491312980651855,...
def testgetsourcewriterloadsevent ( self ) : gen = _ eventgenerator ( self ) acc = self. _ make _ accumulator ( gen ) gen. addevent ( event _ pb2. event ( wall _ time = 1, step = 2, file _ version = " brain. event : 2 ", source _ metadata = event _ pb2. sourcemetadata ( writer = " custom _ writer " ), ) ) self. asserte...
[ 0.4762832224369049, -0.15859533846378326, 0.4748874604701996, 0.612248957157135, 0.6088801026344299, -0.1961468756198883, 0.5793512463569641, 0.13924066722393036, -0.2962292432785034, -0.2123035043478012, -0.47329893708229065, -0.17191056907176971, 0.4545438587665558, 0.1292533576488495, ...
def test _ get _ example _ new _ project _ description _ compatibility _ version1 ( self ) : pass
[ 0.4950353503227234, 0.06873980164527893, 0.32550832629203796, 1.1493099927902222, 0.22522354125976562, 1.7361620664596558, -0.2266848236322403, 1.2017123699188232, -0.35953018069267273, 1.0161494016647339, -0.3586333990097046, 0.12339665740728378, -0.5591760873794556, 0.36554911732673645, ...
def _ process _ token ( self, token : object ) - > none : if isinstance ( token, int ) : self. _ result. append ( token ) elif isinstance ( token, operator ) : self. _ process _ operator ( token ) elif token = = " ( " : self. _ operators. append ( token ) elif token = = " ) " : self. _ process _ right _ bracket ( ) els...
[ -0.7317741513252258, 0.6427582502365112, 0.7729946374893188, -0.03424348309636116, 0.21966323256492615, -0.689944326877594, -0.03837648779153824, -0.730637788772583, -0.3673345446586609, -0.2591431736946106, -0.6938163042068481, -0.3541111648082733, 0.017108405008912086, 0.5542154908180237...
def box _ size ( self ) : return self. _ box _ size
[ -0.20601893961429596, 0.9485607147216797, 0.3330492377281189, -0.07812793552875519, 0.12162236124277115, 0.2677808105945587, 0.7119268178939819, -0.01184286829084158, 0.3257092833518982, -1.1681839227676392, -0.666343092918396, 0.24666933715343475, -0.09249190241098404, -0.0360062941908836...
def _ insert _ function _ body _ header ( line _ num ) : current _ buffer = vim. current. buffer line = current _ buffer [ line _ num - 1 ] # check for multi - line definitions temp _ line _ num = line _ num + 1 while line. endswith ( ", " ) : line + = " " + current _ buffer [ temp _ line _ num - 1 ]. lstrip ( ) temp _...
[ 0.3621928095817566, -0.0780751034617424, 1.1065226793289185, -0.10836990922689438, 0.601018488407135, -0.6234340667724609, 0.17688684165477753, 0.31213581562042236, -0.6617915630340576, -0.10925612598657608, -0.6367990374565125, 0.5039374232292175, -0.5741807818412781, -0.08579997718334198...
def main ( ) : # nuclide concentration lists # train _ db = ['sim _ grams _ nuc29. pkl'] # db _ descs = ['nuc29'] # txtfile = ['optimize _ nuc29 _ param. txt'] # processed spectra lists train _ db = ['nuc7 _ activities _ scaled _ 1g _ reindex. pkl ','nuc12 _ activities _ scaled _ 1g _ reindex. pkl ','nuc32 _ activities...
[ 0.7517448663711548, 0.156875342130661, 1.0298497676849365, -0.12142215669155121, 0.5958752036094666, 0.2715408504009247, 0.737719714641571, 0.4804491102695465, -0.07159358263015747, -0.19171327352523804, -0.08718746155500412, -0.23060710728168488, 0.6127344965934753, -0.6158567070960999, ...
def base _ set ( self ) : self. gnafrecs = pd. dataframe ( ) if self. addressdetails. street _ name and self. addressdetails. state : " " " some postcode falls under 2 states " " " addrdim = addressreference ( ) tempstates = addrdim. gnafpostcodes [ self. addressdetails. postcode ] sqlquery ='' if tempstates and len ( ...
[ 0.07879232615232468, 0.0712791383266449, 0.7076724171638489, -0.7933744788169861, -0.06945498287677765, -0.5591637492179871, 0.1279342770576477, -0.596996009349823, -0.5422918796539307, 0.09549392014741898, 0.8023616671562195, 0.6567413806915283, -0.33596932888031006, 0.11912386864423752, ...
def constant _ values ( juldate, series, length, eps ) : if ( len ( series. shape ) > 1 ) : raise valueerror ('constant _ values : only allowed for 1d data arrays') if ( len ( juldate. shape ) > 1 ) : raise valueerror ('constant _ values : only allowed for 1d julian date arrays') if ( np. size ( juldate, 0 )! = np. siz...
[ 0.2266995757818222, -0.03537741303443909, 0.8782232403755188, -0.09666039049625397, -0.6734093427658081, 0.6649739742279053, -0.07732144743204117, -0.1294877976179123, 0.14663627743721008, 0.7774214148521423, 0.05595233291387558, 0.9582472443580627, -0.05387452244758606, 0.1091140657663345...
def setcustomfields ( self, field _ names _ and _ values ) : self. _ custom _ fields = dict ( field _ names _ and _ values ) self. _ field _ names. extend ( self. _ custom _ fields. keys ( ) )
[ 0.1894950568675995, 0.096074678003788, 0.06357752531766891, -0.8747473359107971, -0.10308732837438583, 0.14689688384532928, -0.2638488709926605, 0.3527742922306061, -0.30336499214172363, -0.5300161838531494, -1.6850011348724365, 0.62770676612854, 0.18673290312290192, -0.06862066686153412, ...
def get _ unresolved ( self, g _ gauls, beam, nsig, kappa2, over, bright _ snr _ cut = 20. 0, plot = false ) : num = len ( g _ gauls [ 0 ] ) b1 = n. asarray ( g _ gauls [ 4 ] ) / ( beam [ 0 ] * 3600. ) b2 = n. asarray ( g _ gauls [ 5 ] ) / ( beam [ 1 ] * 3600. ) s1 = n. asarray ( g _ gauls [ 1 ] ) / n. array ( g _ gaul...
[ -0.30821311473846436, 0.47719016671180725, 0.7802866101264954, 0.21474310755729675, -0.5613964796066284, -0.4304244816303253, 0.00813092291355133, -0.7592868208885193, -0.15169233083724976, -0.6458656787872314, -0.05525992810726166, 0.6558879613876343, 0.2487897425889969, 0.464411407709121...
def get _ local _ psf ( self, band = " f090w ", source = none, wcs = none ) : if wcs is not none : xy = wcs. world _ to _ pixel _ values ( source. ra, source. dec ) else : xy = none psf = self. lookup ( band, xy = xy ) return psf
[ -0.12028206139802933, 0.30840176343917847, 0.25584152340888977, -0.7652837634086609, -1.1750589609146118, -0.4868723750114441, 0.2509211301803589, -0.6447974443435669, 0.31397756934165955, -0.3970997929573059, -0.2570308446884155, 0.3905527591705322, -0.663104236125946, -0.0993551835417747...
def beads _ to _ matr ( nonzero _ beads, chromosome, resolution, genome ) : matr = create _ chromosome _ empty _ matrix ( chromosome = chromosome, resolution = resolution, genome = genome ) for i in range ( len ( nonzero _ beads ) ) : matr [ nonzero _ beads [ i ] [ 0 ] ] [ nonzero _ beads [ i ] [ 1 ] ] = nonzero _ bead...
[ -0.12963558733463287, -0.8744592666625977, 0.41228124499320984, -0.07686429470777512, 0.01497001014649868, 0.17218711972236633, 0.841301441192627, 1.0128297805786133, 0.6369205713272095, 0.8147335648536682, -0.37636443972587585, 0.31458765268325806, -1.2838984727859497, 0.38917192816734314...
def get _ first _ message ( spot _ feed : spot _ sdk. feed ) - > spot _ sdk. message : first _ message = spot _ feed. first ( ) assert isinstance ( first _ message, spot _ sdk. message ) return first _ message
[ 0.16194534301757812, 0.11443643271923065, 0.2732752561569214, -0.5934668183326721, 1.3773037195205688, -0.7986189723014832, -0.41696450114250183, -1.497556447982788, 0.06932464241981506, -0.8889815211296082, 0.9659351706504822, 0.8550148606300354, -0.3714483082294464, 1.0127867460250854, ...
def make _ gene _ tile ( gffhash, outfile ) : outf = open ( outfile +'forward. txt ','w') outr = open ( outfile +'reverse. txt ','w') for i, genome in enumerate ( gffhash ) : for gene in gffhash [ genome ] ['genes'] : g = gffhash [ genome ] ['genes'] [ gene ] o = g ['orientation'] if o = ='-': ort = - 1 outlist = [ gen...
[ 0.4352980852127075, -0.06459669768810272, 0.7773553133010864, -0.6012903451919556, -0.15509465336799622, 0.895662248134613, 0.3361726403236389, 0.8305239677429199, -1.3950812816619873, 0.4405395984649658, -0.2133215367794037, 0.5134349465370178, 0.34772318601608276, 0.17861312627792358, ...
def run ( self ) : raise notimplementederror
[ -0.6048942804336548, -0.7036275863647461, 0.2476288229227066, 0.5857511758804321, 0.37384846806526184, 1.2962769269943237, 0.7950446009635925, 0.20489934086799622, 0.19278724491596222, -0.6393751502037048, -0.7507175803184509, 0.27469006180763245, 0.1071551963686943, 0.381147176027298, -...
def _ feature _ probability ( self, feature, x, hypothesis, feature _ type = " discrete " ) : total _ hypothesis _ data = self. _ train _ outputs. count ( hypothesis ) features _ in _ hypothesis = 0 possible _ feature _ values = set ( ) feature _ data = [ ] # find probability that provided input feature is in provided ...
[ -0.15128782391548157, 0.07089950144290924, 0.7589147686958313, 0.5604496002197266, -0.34110110998153687, -0.3036426305770874, 0.03818133473396301, 0.40439847111701965, -0.9314394593238831, 0.47240692377090454, 0.32324233651161194, -0.07570887356996536, -0.3348420560359955, 0.20161738991737...
def random _ identifier ( size = 5 ) : return''. join ( random. choice ( string. lowercase +''. join ( [ str ( x ) for x in range ( 10 ) ] ) ) for x in range ( size ) )
[ -0.22464080154895782, -0.4266713559627533, 0.33854910731315613, -2.005582809448242, -0.20053479075431824, 0.7639595866203308, -0.3116261661052704, -0.1352481096982956, 1.12192702293396, 0.4687161147594452, -0.7040413022041321, 0.08089374005794525, -1.132485270500183, -0.7383545637130737, ...
def test _ get _ requirement _ setting ( self ) : pass
[ -0.6601521372795105, 0.6208371520042419, 0.35859063267707825, 0.8862382173538208, 0.725319504737854, -0.45166561007499695, 0.948577344417572, -0.6522923707962036, 0.26014596223831177, -0.3749389946460724, -0.45856615900993347, -0.16168154776096344, -1.0924161672592163, 0.43776437640190125,...
def get _ characters ( content ) : characters = len ( content ) return characters
[ -0.7048799991607666, -0.8568263053894043, 0.1240709125995636, -1.187636137008667, 0.39293187856674194, -0.49001848697662354, -0.23471489548683167, -0.03080517053604126, 0.06547340750694275, -0.21154499053955078, -1.5309828519821167, -0.08742785453796387, -0.8317255973815918, -0.60727119445...
def map _ name _ to _ srm ( self, project _ id, fc _ id = none, use _ ps _ map = true, use _ bc _ map = false, check _ consistency = false ) : project = self. get _ entry ( project _ id ) if not project : return none project _ samples = project. get ('samples ', none ) if project _ samples is none : return none sample ...
[ -0.29325923323631287, -0.1173037737607956, 0.7733569741249084, -0.42119845747947693, -0.4193243980407715, -0.09431182593107224, -0.28967350721359253, -0.33712607622146606, -0.2305936962366104, 0.373836874961853, -0.3361263573169708, 0.0177058894187212, -0.69243323802948, 0.4550251960754394...
def _ check _ if _ every _ in _ array _ of _ the _ same _ size _ has _ indeed _ same _ size ( writer, parameters ) : # first, get the list of every array in parameter array _ in _ params = [ param for param in parameters if param. is _ array and param. is _ in ] # then, check if every such parameter has the same size _...
[ -0.5409416556358337, -0.7757247686386108, 0.7237514853477478, 0.9121021628379822, 0.882431149482727, -0.3385734260082245, 0.526508092880249, 0.28490445017814636, 0.22898344695568085, 0.5742747187614441, -0.009680074639618397, 0.31647995114326477, -1.066652774810791, 1.7883925437927246, -...
def build ( self ) : static _ lib _ targets = self. build _ static _ libs ( ) app _ main _ obj _ targets = self. build _ app _ main _ objs ( ) if self. _ _ build _ env. in _ link _ stage ( ) : self. build _ apps ( app _ main _ obj _ targets, static _ lib _ targets ) pass
[ -0.6246180534362793, -1.509382724761963, 0.5137335062026978, 1.5051751136779785, 0.7309860587120056, 0.99830162525177, 0.9580205678939819, 0.17760872840881348, -0.02655894123017788, -0.342517614364624, 0.40986329317092896, 0.24732479453086853, 0.25489675998687744, 0.43148472905158997, 0....
def _ janes _ existing _ scenario ( self ) : rv = self. get ( self. scenarios _ path, self. jane _ doe _ credentials ) self. assertequal ( rv. status _ code, 200 ) return [ s for s in json. loads ( rv. data ) if not s ['is _ built _ in'] ] [ 0 ]
[ -0.7238826751708984, -0.724330484867096, 0.31806913018226624, 0.17323146760463715, 0.5028197765350342, -0.1527513712644577, -0.9859251379966736, -0.0658874660730362, 0.16028326749801636, 1.0768413543701172, -0.6858322620391846, -0.08575543761253357, -0.03640246018767357, -0.346026927232742...
def kinetic _ func ( self, p ) : # # # # # # # using the fact that m is diagonal by construction : # # m _ determinant : = ( 1 / m ) * * d # # m _ inverse : = 1 / m * identity # # p _ transpose @ m _ inverse @ p : = 1 / m * p _ transpose @ p # # # # # m = self. mass d = p. shape [ 1 ] term _ inv = 0. 5 * ( np. sum ( p ...
[ 0.4223804771900177, -0.1189437210559845, 0.5970523357391357, -0.21640850603580475, -0.914735734462738, -0.2140241414308548, 1.0550429821014404, 0.7102518677711487, -0.4614569842815399, 0.2744823694229126, 0.12649844586849213, -0.2375538945198059, -0.23412004113197327, -0.4408763349056244, ...
def send _ pager _ reply ( self, data, match ) : self. collected _ data + = [ data ]
[ -0.21763236820697784, -0.10735700279474258, 0.3512057363986969, -1.0262877941131592, 0.7677693367004395, 0.9355528950691223, -1.2277029752731323, -0.8039108514785767, 0.5111141204833984, 0.246017187833786, -0.44346991181373596, 0.9381994605064392, -0.38376763463020325, 0.22443336248397827,...
def plans ( self, plans ) : if plans is none : raise valueerror ( " invalid value for ` plans `, must not be ` none ` " ) # noqa : e501 self. _ plans = plans
[ 0.6873452067375183, 0.7225890755653381, -0.3486957252025604, 0.9719064831733704, 0.34171515703201294, 1.4454458951950073, 0.1750161200761795, -0.5473245978355408, 0.6813103556632996, -0.08547265827655792, -0.5023075342178345, -0.5367854237556458, -0.1732809841632843, 0.017474088817834854, ...
def digest ( self, mac _ size : int ) - > bytearray : temp = deepcopy ( self ) if mac _ size > temp. block _ size : temp. clear ( ) raise gostciphererror ('invalid message authentication code size') return temp. mac _ final ( ) [ 0 : mac _ size : ]
[ -0.5132190585136414, 0.4008895456790924, 0.6498000621795654, 0.2092689424753189, -0.44395095109939575, -0.2738514840602875, 0.2118547111749649, -0.5230344533920288, 0.47043895721435547, -0.08522306382656097, 0.5717850923538208, 0.8791354298591614, -1.2274396419525146, 0.2636774182319641, ...
def as _ uni _ form ( form ) : if isinstance ( form, baseformset ) : template = get _ template ('uni _ form / uni _ formset. html') c = context ( {'formset': form } ) else : template = get _ template ('uni _ form / uni _ form. html') c = context ( {'form': form } ) return template. render ( c )
[ -0.5282485485076904, 0.48151445388793945, 0.5011746883392334, -0.33044594526290894, -0.6756953597068787, -0.3375605344772339, -0.5317657589912415, 0.5652514696121216, 1.2745718955993652, -0.9661132097244263, 0.5921294093132019, -0.6060882210731506, 0.2978701591491699, -0.46807774901390076,...
def radix _ sort ( lst, base = 10 ) : output = lst power = 1 max _ element = max ( lst ) while power < = max _ element : key = lambda num : ( num / / power ) % base output = counting _ sort ( output, key, base ) power * = base print ( output ) return output
[ -0.4624096751213074, 0.2250603437423706, 0.6059340834617615, 1.2763457298278809, -0.5515012145042419, -0.03805762156844139, -0.2969486713409424, -0.0768016055226326, -0.4640737771987915, 0.0182878989726305, -0.9699134826660156, -0.3470383584499359, -1.2234218120574951, 0.24159009754657745,...
def getinput ( self, * args ) : return _ itkimageserieswriterpython. itkimageserieswriterid3id2 _ getinput ( self, * args )
[ 0.022630786523222923, 0.15640082955360413, 0.5556538701057434, 0.053331829607486725, 0.1991019994020462, 0.7839166522026062, 0.10993251949548721, -0.2638573944568634, -0.11096788942813873, 0.44930949807167053, -0.46975472569465637, 0.6432854533195496, -1.2149312496185303, -0.74310463666915...
def get _ source _ updates ( self ) : if util. is _ git _ repo ( self. sourcepath ) : util. pull _ git _ repo ( self. sourcepath ) return if not os. path. isdir ( self. sourcepath ) : path _ parts = self. sourcepath. split ('/') new _ path ='' for part in path _ parts : if part = ='nlab - content - html': break new _ p...
[ -0.21457210183143616, 0.6343880295753479, 0.4094632863998413, 0.14881651103496552, -0.36543628573417664, 0.3103252947330475, 0.14889539778232574, -0.7181826829910278, 0.8356117010116577, 0.10013539344072342, 0.12122291326522827, -0.07759087532758713, -0.6122032999992371, 0.2730661332607269...
def build _ model ( self, weights ) : print ( " * * * * * * building model " ) inputs = keras. layers. input ( ( self. img _ size, self. img _ size, self. color _ channel ) ) custom _ weights = weights and os. path. isfile ( weights ) preload _ weights = none if not custom _ weights : preload _ weights = weights preloa...
[ -0.0014495104551315308, -0.35112425684928894, 0.5184363126754761, 0.8734531402587891, -0.24625198543071747, 0.22697997093200684, -0.0789542868733406, 0.20829986035823822, 0.49119696021080017, -0.12240932881832123, 0.37294453382492065, -0.4390895664691925, 0.1770925521850586, 0.364533126354...
def _ check _ ovs _ port _ integrity ( self, ovs _ port ) : ofport = ovs _ port. ofport port _ type = ovs _ port. type if ( ofport is none ) or ( ofport < 0 ) or ( port _ type is none ) : return false if ( port _ type = = constants. ovs _ vm _ interface and ovs _ port. lport is none ) : return false return true
[ -0.157301127910614, -0.27996528148651123, 0.6683728694915771, -0.14112241566181183, 1.1994550228118896, 0.35626623034477234, -0.33768516778945923, -0.7305616140365601, 0.9716648459434509, 0.23166432976722717, 0.8952779769897461, -0.212203711271286, -0.9688412547111511, -0.19990772008895874...
def test _ get _ register _ personality _ description ( self ) : description = self. strategy. get _ register _ personality _ description ( ) assert type ( description ) = = description assert description. data _ model is agent _ personality _ model assert description. values. get ( " piece ", " " ) = = " genus " asser...
[ -0.007850090973079205, 0.6925588250160217, 0.19699622690677643, -0.11398648470640182, 1.1350185871124268, 0.32674434781074524, -0.6625615954399109, -0.19933222234249115, -0.09997109323740005, -0.010638772509992123, -0.3915024697780609, 1.1999157667160034, -0.22389554977416992, 0.0097451535...
def taylor _ expand ( f : applyfn, params : pytree, degree : int ) - > applyfn : def taylorize _ r ( f, params, dparams, degree, current _ degree ) : " " " recursive function to accumulate contributions to the taylor series. " " " if current _ degree = = degree : return f ( params ) def f _ jvp ( p ) : _, val _ jvp = j...
[ 0.7987468838691711, 0.5824328064918518, 0.7229189276695251, -0.30684879422187805, -0.7786962389945984, -0.24491490423679352, 0.07713419198989868, 0.5546136498451233, -0.08935601264238358, -0.19608210027217865, 0.47297388315200806, 0.45455172657966614, 0.7117589116096497, 0.2001751810312271...
def verify _ state _ country ( raw _ location ) : url ='https : / / maps. googleapis. com / maps / api / geocode / json'params = dict ( address = raw _ location, key = google _ maps _ api _ key ) resp = requests. get ( url = url, params = params ) address _ components = json. loads ( resp. text ) ['results'] [ 0 ] ['ad...
[ -0.3379596173763275, -1.222962737083435, 0.6224991083145142, -0.3252841830253601, -0.04070987552404404, 0.33290895819664, -0.5612642168998718, 0.10790205746889114, 1.166206955909729, 0.9375419020652771, -0.5359377264976501, 0.8453404307365417, 0.08697965741157532, 0.9194129705429077, 0.2...
def _ _ init _ _ ( self ) : self. run = true self. clock = pygame. time. clock ( ) " " " color and background " " " self. background = background ( background _ game, [ 0, - 20 ] ) self. fill _ color = ( 100, 100, 100 ) self. color _ margin = ( 238, 232, 170 ) " " " types of spikes " " " self. spikebottom = pygame. ima...
[ -0.27913936972618103, -0.2848398983478546, 1.1100903749465942, 0.22764058411121368, 0.13021127879619598, 0.5825112462043762, 0.06660620868206024, -0.11556079238653183, -0.022195221856236458, 0.1895265281200409, -0.7779040932655334, 0.18522483110427856, -0.29987832903862, 0.9579973816871643...
def write _ into _ userblock ( args ) : with open ( args. hdf5file, " rb " ) as hf : # check if the file is a hdf5 - file filesize = os. fstat ( hf. fileno ( ) ). st _ size hdf _ pos = 0 while not check _ header ( hf, hdf _ pos, magic _ hdf ) and hdf _ pos < filesize : hdf _ pos = next _ power2 ( hdf _ pos + 1 ) if not...
[ -0.1189471110701561, 0.06206482648849487, 0.9417921304702759, -0.17037981748580933, 0.014221233315765858, -0.6240124106407166, 0.14044807851314545, -0.45361313223838806, -0.4638317823410034, 0.04069378972053528, 0.23945245146751404, 0.09244797378778458, -0.8397321105003357, 0.9044819474220...
def _ fill _ gaps ( first _ obs, frame _ iter2 ) : most _ recent = [ x * np. nan for x in first _ obs ] for i, frame in enumerate ( frame _ iter2 ) : for fr _ chan, mr _ chan in zip ( frame, most _ recent ) : mr _ chan [ np. isfinite ( fr _ chan ) ] = fr _ chan [ np. isfinite ( fr _ chan ) ] yield np. array ( [ np. nan...
[ -0.03685205057263374, 0.04258275777101517, 0.6519913673400879, -0.5665698051452637, 0.46107974648475647, -0.3043271005153656, 0.10860937833786011, 0.1631755530834198, -0.22514814138412476, 0.03246629238128662, 0.37059286236763, 0.5599209666252136, 0.4724828004837036, 1.7689019441604614, ...
def getqvalue ( self, state, action ) : " * * * your code here * * * " # the initial value should be zero return self. qvalues [ ( state, action ) ]
[ -0.2710201144218445, -0.7942182421684265, 0.23831883072853088, 0.8470010757446289, -0.25973719358444214, 0.286441832780838, -0.37846192717552185, -0.3198092579841614, 0.06905976682901382, -1.193747639656067, -0.05272478982806206, 1.7997874021530151, 0.2192850559949875, -0.30357253551483154...
def find _ ranges ( r _ list, missing _ days ) : new _ l = [ ] temp = [ ] for i in range ( len ( r _ list ) ) : if r _ list [ i ] = = 0 : temp. append ( missing _ days [ i ] ) new _ l. append ( temp ) temp = [ ] else : temp. append ( missing _ days [ i ] ) temp. append ( missing _ days [ - 1 ] ) new _ l. append ( temp ...
[ -0.8064296245574951, -0.48010438680648804, 0.520827054977417, 0.835723876953125, 0.5878892540931702, 0.8035719394683838, 0.0964103415608406, 0.7090834379196167, -0.052473220974206924, 0.31157031655311584, -0.18626490235328674, -0.3943447768688202, -0.3056216239929199, 1.6437485218048096, ...
def separate _ args _ and _ flags ( sys _ args : list [ str ] ) - > tuple [ list [ str ] ] : args = [ ] flags = [ ] for sys _ arg in sys _ args : if sys _ arg. startswith ('- -') : flags. append ( sys _ arg ) elif sys _ arg. startswith ('-') : flags. append ( flags. get ( sys _ arg, sys _ arg ) ) elif sys _ arg. starts...
[ -0.29118528962135315, -0.6989694237709045, 0.4639755189418793, 0.24177978932857513, 0.24706245958805084, 0.504062831401825, 0.029451638460159302, 0.553065299987793, 0.13876459002494812, 0.15366855263710022, -0.4026486575603485, 0.5177543759346008, -0.3848781883716583, 1.0192879438400269, ...
def pr _ plot ( y, preds, fname = none, figsize = ( 8, 6 ), verbose = true ) : precision, recall, thresh = precision _ recall _ curve ( y, probas _ pred = preds ) pr _ auc = auc ( recall, precision ) fig = plt. figure ( figsize = figsize ) plt. step ( recall, precision, color ='b ', alpha = 0. 2, where ='post') plt. fi...
[ 1.1015825271606445, 0.06248336657881737, 0.9781947135925293, -0.6060600876808167, -0.5588157773017883, 0.23977245390415192, 0.3907034397125244, 0.28175586462020874, 0.46027329564094543, -0.36630943417549133, 0.31411483883857727, 1.0277642011642456, 0.3460692763328552, -0.47357800602912903,...
def trace ( n, f, c, d, kappa, omega ) : return pop. trace ( n, f, c, d, kappa, omega )
[ 0.6211352348327637, 1.1187931299209595, 0.22935731709003448, -0.558799147605896, 0.28632447123527527, -0.288042813539505, 0.4053106904029846, -0.7822243571281433, -0.6640766263008118, 0.6861699223518372, -0.3746044635772705, -0.8112172484397888, 0.00902597140520811, -0.6611582040786743, ...
def done ( self ) : return self. _ current _ waypoint = = len ( self. _ waypoints )
[ -0.38524603843688965, -0.4863375723361969, 0.3922919034957886, -0.03922153264284134, 0.24609237909317017, 0.6800274848937988, -0.1364584118127823, -0.5545701384544373, 0.24896566569805145, 0.7049546241760254, -1.1554111242294312, -0.09775988012552261, -1.2630201578140259, 0.310213953256607...
def test _ parse _ bar _ sizes ( self ) : def mock _ get _ history _ db _ config ( db ) : return { " bar _ size " : " 15 mins ", # 15 mins plural ( ib format ) " universes " : [ " usa - stk " ], " vendor " : " ibkr ", " fields " : { " close " : " float ", " open " : " float ", " high " : " float ", " low " : " float ",...
[ 0.24798980355262756, 0.1729358285665512, 1.0413098335266113, -0.4681161344051361, 0.5937581658363342, -0.03562716022133827, 0.6464197635650635, -0.612694501876831, -0.9393232464790344, -0.3320165276527405, -0.4704035818576813, -0.3255643844604492, -0.13249735534191132, 0.05557981878519058,...
def lcm ( a, b ) : return a * b / / gcd ( a, b )
[ 1.088139533996582, -0.3118046224117279, 0.44272539019584656, -1.5899124145507812, 0.0542963407933712, 0.10874803364276886, -1.4471653699874878, -0.5605477690696716, 0.4464327096939087, -0.45296433568000793, 1.0831431150436401, 0.08993857353925705, -0.1675092577934265, -0.4173175096511841, ...
def define _ ua _ schema ( session ) : uaserver _ tables = [ {'name': dbconstants. apps _ table,'schema': dbconstants. apps _ schema }, {'name': dbconstants. users _ table,'schema': dbconstants. users _ schema } ] for table in uaserver _ tables : key = bytearray ('/ '. join ( [ dbconstants. schema _ table, table ['name...
[ -0.6098291277885437, 0.1587275117635727, 0.7873970866203308, 0.24481260776519775, 0.3316267728805542, 0.33442801237106323, 0.32482844591140747, 0.22788818180561066, 0.36793217062950134, 0.3831644356250763, -0.5295265913009644, -0.22645220160484314, 1.0199806690216064, -0.058052197098731995...
def createdb ( dbname ='ddsassignment3') : # connect to the default database con = getopenconnection ( dbname ='postgres') con. set _ isolation _ level ( psycopg2. extensions. isolation _ level _ autocommit ) cur = con. cursor ( ) # check if an existing database with the same name exists cur. execute ('select count ( *...
[ -0.46703383326530457, 0.8208942413330078, 0.7504873871803284, 0.3550677001476288, 0.7953254580497742, 0.3740372359752655, 0.15838773548603058, 0.2668229341506958, -0.45836886763572693, -0.012045166455209255, -0.002741871401667595, -0.47278130054473877, -1.0471341609954834, 0.04649170860648...
def createnumpyimage ( self ) : return numpyimage ( self. _ numpyarray )
[ -0.22368557751178741, -0.7325388789176941, 0.21682684123516083, -0.08444378525018692, 0.1019260585308075, 0.22075289487838745, -0.17654137313365936, -1.021464467048645, -0.05116379261016846, -0.02429320104420185, 0.5340265035629272, 0.4136996269226074, -0.2577819228172302, 0.45572987198829...
def is _ grown ( self, tree _ node ) : return tree _ node. root! = - 1
[ -0.6301249861717224, 0.3897140324115753, 0.6789661049842834, 0.9897814393043518, 0.828682005405426, 0.6303821802139282, -0.9349917769432068, 0.3422299325466156, -0.529907763004303, -0.23027591407299042, -0.2154533714056015, 0.11600130051374435, 0.32360321283340454, 0.8956755995750427, -0...
def bind ( self, index, column, item ) : # bind the current index, col using dataframe if self. _ dataframe. empty : # add the current data into the attributes frame self. _ dataframe = pd. dataframe ( [ item ], index = [ index ], columns = [ column ] ) else : # add the current data into the attributes frame self. _ da...
[ -0.4464408755302429, -0.2157731056213379, 0.4857482612133026, -0.2138347029685974, 0.41489771008491516, 0.38681817054748535, 0.24076707661151886, 0.538136899471283, -0.19090068340301514, -0.6904940009117126, 0.29048243165016174, 1.4234458208084106, -0.06645946204662323, -0.5311449766159058...
def calc _ iffilt _ bw _ actual ( self, model ) : model. vars. iffilt _ bandwidth _ actual. value = self. iffilt _ bw [ model. vars. rac _ iffiltctrl _ bandwidth. value ]
[ 0.16300168633460999, -0.546457052230835, 0.49475324153900146, 0.4109519422054291, 0.2998596727848053, 0.033666569739580154, 0.8989779949188232, -0.5843502283096313, -0.7033544182777405, 0.5004021525382996, -0.5844281315803528, 0.49830758571624756, -0.836404025554657, 0.5432308316230774, ...
def handle _ battery _ level ( hass : homeassistant, gateway _ id : gatewayid, msg : message ) - > none : _ handle _ node _ update ( hass, gateway _ id, msg )
[ 0.6900903582572937, 0.23258377611637115, 0.34945109486579895, -0.01562628336250782, 0.4389205873012543, -0.22239577770233154, -0.3029658794403076, -0.23396384716033936, -0.5056433081626892, 0.00895392894744873, -0.3235161304473877, 0.9005669951438904, -0.17094266414642334, 0.89792138338088...
def test _ booking _ history _ list ( self ) : self. client. login ( username = self. user. username, password ='test') resp = self. client. get ( self. url ) self. assertequal ( booking. objects. all ( ). count ( ), 2 ) self. assertequal ( resp. status _ code, 200 ) self. assertequal ( resp. context _ data ['bookings'...
[ -0.9456599354743958, 0.9192612767219543, 0.6481996774673462, 1.6067639589309692, 0.34108641743659973, 1.0260660648345947, 0.09171055257320404, 1.6292834281921387, 0.0682491883635521, -0.6410064697265625, -0.9618476629257202, -0.16714166104793549, 0.4375409483909607, 0.6553083062171936, 0...
def test _ success _ case ( self ) : tm = testmodel. create ( count = 8, text ='123456789') tm2 = tm. update ( count = 9 ) tm3 = testmodel. get ( tm. vid ) assert tm2. count = = 9 assert tm3. count = = 9
[ -0.03718624264001846, -0.02911975048482418, 0.5341488718986511, 0.2468140721321106, 0.24563461542129517, 0.7897575497627258, -0.14849331974983215, -0.1899683028459549, -0.3474224805831909, 0.26319146156311035, -0.6887722015380859, -0.7442454695701599, -0.14079993963241577, -0.3334876298904...
def input _ sources ( self ) : response = self. _ tower. session. get ( f'{ self. url } input _ sources') if not response. ok : self. _ logger. exception ( f'could not retrieve the input sources for credential { self. name }') response. raise _ for _ status ( ) return next ( iter ( response. json ( ). get ('results ', ...
[ -0.5124253034591675, 0.2231917530298233, 0.18305166065692902, -0.3278246223926544, 0.6295323967933655, -0.3638494610786438, -0.6722129583358765, -0.0783807635307312, 0.11909988522529602, -0.36924052238464355, -0.270195871591568, 0.17886413633823395, -1.4545382261276245, 0.11411899328231812...
def _ _ init _ _ ( self, holder = none, number = none, expiry _ month = none, expiry _ year = none, cvv = none ) : self. holder = holder self. number = number self. expiry _ month = expiry _ month self. expiry _ year = expiry _ year self. cvv = cvv
[ 0.5486447215080261, -0.5928912162780762, 0.578087568283081, 1.2451468706130981, 0.22687213122844696, 0.40112248063087463, -1.1040828227996826, 0.9148345589637756, 0.6400031447410583, -0.4889625608921051, -0.11058692634105682, 0.49659058451652527, 0.119328074157238, 0.16634860634803772, 0...
def test _ export _ model _ as _ both _ formats ( self, export _ model _ mock, sync ) : test _ model = models. model ( _ test _ id ) test _ model. export _ model ( export _ format _ id = _ test _ export _ format _ id _ artifact, image _ destination = _ test _ container _ registry _ destination, artifact _ destination =...
[ -0.062072206288576126, 0.10163383930921555, 0.6735761761665344, 0.58714759349823, 0.6158972382545471, 0.16636991500854492, 0.46961215138435364, -1.0113974809646606, 0.11087369173765182, 0.14576859772205353, -0.15267978608608246, -0.0018148384988307953, 0.7936974763870239, 0.484243631362915...
def create _ code _ block ( self, node, type _, has _ doc = true ) : id _ = self. create _ code _ component ( node, type _, " w " ) self. code _ blocks. add ( id _, self. trial _ id, pyposast. extract _ code ( self. lcode, node ), false, ast. get _ docstring ( node ) if has _ doc else " ", '. '. join ( self. nested ) +...
[ 0.4196907579898834, 0.21812814474105835, 0.7594668865203857, -0.13619893789291382, 0.05704065039753914, 0.6034307479858398, -0.05590761825442314, -0.433143675327301, 0.1565970629453659, -0.3994213044643402, -0.2106771022081375, 0.28250616788864136, -0.30100879073143005, 1.0798474550247192,...
def get _ max _ non _ diags ( self ) : # find the top 5 max non - diagonals num _ maxes = 5 final _ mat = self. mode _ mats [ - 1 ] m, n = final _ mat. shape max _ ijs = self. init _ max _ array ( num _ maxes ) for i in xrange ( m ) : for j in xrange ( n ) : e = final _ mat [ i, j ] if i! = j and abs ( e ) > max _ ijs ...
[ -0.5931962132453918, -0.08279882371425629, 0.5550386905670166, -0.7316288352012634, -1.2282966375350952, -0.1911226063966751, 0.21755164861679077, -0.9749776124954224, -0.6489189267158508, 1.040751576423645, -0.8245415687561035, -0.5456147789955139, -0.3479689359664917, 0.9193798899650574,...
def fill _ content _ vuln ( self, context ) : m _ results = defaultdict ( list ) # get all type of resources m _ all _ resources = set ( [ x for x in dir ( resource ) if x. startswith ( " resource " ) ] ) for l _ resource in m _ all _ resources : # get resources url resources resource = self. common _ get _ resources (...
[ 0.03668143227696419, -0.6883692741394043, 0.7084155082702637, -1.1664060354232788, 0.3838651776313782, -0.17789937555789948, 0.26557478308677673, -0.3127753436565399, -0.25816476345062256, -0.06421513855457306, -0.42046716809272766, -0.34050634503364563, 0.3802008628845215, 0.5917769074440...
def check _ for _ decisive _ in _ param ( self ) : for param in self. parameters _ list : if param. is _ in : self. decisive _ param _ name = param. name
[ 0.39255309104919434, -1.1232469081878662, 0.5825349688529968, 0.4035080671310425, 0.7914509177207947, 0.1546054482460022, -0.04318508878350258, 0.7251862287521362, -1.0111732482910156, 1.0868719816207886, -0.4570140540599823, 0.26919248700141907, -0.7309470772743225, 1.4689855575561523, ...
def _ count _ calls _ in _ supernodeblocks ( blocks : list [ block ], start : codelocation, end : codelocation ) - > int : calls = 0 started = false for b in blocks : if b. addr = = start. block _ addr : started = true continue if b. addr = = end. block _ addr : started = false continue if started : if b. statements an...
[ 0.8478417992591858, 0.03698926791548729, 0.7070741057395935, -0.19329866766929626, -0.2607034742832184, -0.3641747534275055, 0.09718994796276093, -0.10782960802316666, -0.27969005703926086, 0.7927426099777222, -0.6877846717834473, 0.5220202803611755, -1.0945677757263184, 0.6190240979194641...
def gdisconnect ( ) : # only disconnect a connected user : credentials = login _ session. get ('credentials') if credentials is none : response = make _ response ( json. dumps ('current user not connected.'), 401 ) response. headers ['content - type'] ='application / json'return response # send http get request to revo...
[ 0.22896265983581543, -0.9396510124206543, 0.8236809372901917, -0.1764850616455078, -0.25332504510879517, -0.5877759456634521, -0.6453390717506409, -0.8611350059509277, 0.38072264194488525, 0.15432380139827728, 0.2563991844654083, 0.3470427095890045, -0.18046504259109497, -0.847167074680328...
def reset _ hidden ( hidden, mask ) : if len ( mask )! = 0 : hidden [ :, mask, : ] = 0 return hidden
[ 0.2213786393404007, -0.07514327019453049, 0.3435535728931427, 0.8044044375419617, 0.7659266591072083, 0.10726474970579147, -0.060241859406232834, -0.48087847232818604, -0.21355734765529633, 0.40686365962028503, -0.9311642646789551, 1.4203301668167114, -0.36802709102630615, -1.1447111368179...
def inspect _ fleur ( self ) : # expected _ states = [ calc _ states. finished, calc _ states. failed, # calc _ states. submissionfailed ] # print ( self. ctx ['last _ calc'] ) # self. report ('i am in inspect _ fleur') try : calculation = self. ctx. last _ calc except attributeerror : self. ctx. successful = false err...
[ 0.30317699909210205, -0.05984381213784218, 0.863823413848877, 0.059335704892873764, -0.019386837258934975, -0.0035644371528178453, 0.5137510895729065, -0.9869541525840759, -0.055484309792518616, -0.6757830381393433, 0.7853111028671265, 0.18651901185512543, -0.3472583293914795, 0.3489635288...
def zip ( self, * args ) : args = [ np. asanyarray ( a ) for a in args ] dtype = np. result _ type ( * tuple ( [ a. dtype for a in args ] ) ) res = np. empty ( self. n, dtype ) for info, r, arg in zip ( self. info, self. r, args ) : targ = res [ r [ 0 ] : r [ 1 ] ] targ [... ] = arg [ info. mask ] if info. mask is not ...
[ -1.2812362909317017, -0.6199682950973511, 0.6666130423545837, 0.3588440418243408, 1.2137165069580078, -0.38937127590179443, 0.2702111601829529, -0.3853914141654968, -0.33497369289398193, 0.18760371208190918, -0.03731446713209152, 0.18853746354579926, -0.1542021930217743, 0.3105262815952301...
def newoffenseentry ( offensegrp, crime ) : ofentry = {'event': none,'eventlist': none } ofentry ['event'] = offensegrp ofentry ['eventlist'] = lt. newlist ('array _ list ', compareevent ) return ofentry
[ 0.7099902033805847, -0.4200509190559387, 0.23629233241081238, -0.6640722751617432, 0.48826315999031067, -0.935763418674469, -0.05453164502978325, -0.4111424684524536, 0.015509063377976418, 0.6908762454986572, 0.13454578816890717, 0.2906091809272766, -0.3964562714099884, 0.7311200499534607,...
def main ( argv = none ) : signal. signal ( signal. sigint, lambda * args : sys. exit ( _ signal _ exit _ code _ base + signal. sigint ) ) if hasattr ( signal,'siginfo') : signal. signal ( getattr ( signal,'siginfo'), lambda * args : report _ progress ( sys. stderr ) ) try : return dsc. main ('cosmic - ray ','cosmic ra...
[ 0.09851446002721786, 0.026790471747517586, 0.9795520305633545, -0.0029547838494181633, -0.2026146501302719, -0.8198873400688171, 0.5238580703735352, 0.13612152636051178, -0.6654642224311829, 0.24941936135292053, 0.8557639122009277, 0.4269430339336395, -0.21342833340168, 0.5008808970451355,...
def azure _ cluster _ creator _ step1 ( request ) : form = createclusterstep1 log. info ('rendering createclusterstep1') return render ( request,'azure _ cluster _ creator _ step1. html ', {'form': form } )
[ 0.12804798781871796, 0.35109567642211914, 0.3269021213054657, 0.47551825642585754, 0.22327788174152374, 0.47746801376342773, 0.4102574288845062, -0.12549400329589844, -0.7210160493850708, -0.26277825236320496, 0.766027569770813, 0.15375101566314697, -0.06282766908407211, 0.2372103184461593...
def test _ deckcards ( self ) : expected _ list = ['ha ','h2 ','h3 ','h4 ','h5 ','h6 ','h7 ','h8 ','h9 ','ht ','hj ','hq ','hk ','sa ','s2 ','s3 ','s4 ','s5 ','s6 ','s7 ','s8 ','s9 ','st ','sj ','sq ','sk ','da ','d2 ','d3 ','d4 ','d5 ','d6 ','d7 ','d8 ','d9 ','dt ','dj ','dq ','dk ','ca ','c2 ','c3 ','c4 ','c5 ','c6 '...
[ 0.35876864194869995, 0.3841884136199951, 0.6556479334831238, -0.19544295966625214, 0.6373146176338196, 0.15358975529670715, 0.3712025582790375, 0.5059266686439514, -0.11096148192882538, -0.5169881582260132, -0.5190480947494507, -0.25172290205955505, 0.1365508735179901, 0.3958129286766052, ...
def main ( num ) : print ( ( len ( num ) + 2 ) * " * " ) print ( " * % s * " % num ) print ( ( len ( num ) + 2 ) * " * " )
[ -0.10795197635889053, 0.8520220518112183, 0.7867103219032288, 0.4184102416038513, -0.7282568216323853, -0.1570155769586563, 0.6072661280632019, 0.5348190665245056, 0.2963207960128784, -0.3493945300579071, -1.064197063446045, 1.1782944202423096, 0.29081326723098755, 0.3747825622558594, 1....
def update ( self, collab _ id : str, project _ id : str, expt _ id : str, run _ id : str, * * updates ) : return self. _ execute _ operation ( operation = " put ", url = self. _ generate _ single _ url ( collab _ id = collab _ id, project _ id = project _ id, expt _ id = expt _ id, run _ id = run _ id ), payload = upd...
[ -0.3273451030254364, -0.31050580739974976, 0.5820897221565247, 0.6978224515914917, 0.35251811146736145, 0.8194236159324646, -0.5979040861129761, 0.013571719639003277, 0.03576960787177086, 0.9597710371017456, 0.2599366009235382, 0.7960723638534546, -2.166280746459961, -1.1912928819656372, ...
def _ mgui _ get _ step ( self ) - > float : return 1
[ -0.3235953152179718, 0.7528238892555237, 0.26515933871269226, 1.1492769718170166, -0.16503852605819702, 0.48355832695961, -0.07808095961809158, -0.08405188471078873, -1.1949676275253296, -1.2597030401229858, 0.1408277153968811, -0.5701380372047424, -0.685722827911377, 1.5559122562408447, ...
def test _ directory _ broken _ symlink ( file, tmp _ path ) : tmp _ dir = tmp _ path / " foo " tmp _ dir. mkdir ( 0o700 ) null _ file = tmp _ dir / " null " broken _ link = tmp _ dir / " broken " broken _ link. symlink _ to ( null _ file ) if is _ windows : extra _ kwds = { " follow _ symlinks " : true, " win _ owner ...
[ 0.05625663697719574, -0.04868748039007187, 0.3147042691707611, 0.3733329176902771, 0.21240819990634918, -0.21807652711868286, 1.0851771831512451, 0.7647769451141357, 0.3405482769012451, -1.40420663356781, -0.38113293051719666, -0.05764118954539299, 0.30846530199050903, 0.957838237285614, ...
def main ( pages, url ) : return marker _ parser ( pages, find _ markers = find _ markers, image _ region = ( 0. 35, - 0. 023, 0. 07, 0. 058 ), text _ region = ( - 0. 01, - 0. 01, 0. 9, 0. 03 ), extract _ product _ from _ text = extract _ product _ from _ text, )
[ -0.03059193305671215, -0.7701900601387024, 0.4390014410018921, 0.30778276920318604, 0.25419333577156067, -0.3107297718524933, 0.5764048099517822, 0.42960113286972046, 0.36519408226013184, 0.37960073351860046, -0.046942003071308136, 0.1448718011379242, 0.23647136986255646, 0.465715259313583...
def cond _ exp _ tree _ intv ( self, model, x, s, v, explore, get _ partition, get _ final _ partition, data ) : s _ bar = np. array ( [ i for i in self. index if i not in s and type ( i )! = str ] ) x _ in = x. copy ( ) if len ( s )! = len ( x _ in ) : cat _ va = [ ca for ca in s if type ( ca ) = = str ] s = [ cu for ...
[ 0.30179721117019653, -0.4011913239955902, 1.0199928283691406, 0.33528557419776917, -0.7418361902236938, 0.03413669392466545, 0.12785573303699493, 1.0140012502670288, -0.36686280369758606, 0.6969847083091736, 0.51192706823349, 0.05009552091360092, -0.4971473217010498, -0.11205355823040009, ...
def getunitcell ( self ) : if self. _ unitcell is not none : return self. _ unitcell. copy ( )
[ 0.17457103729248047, -0.2726232409477234, 0.7496886253356934, 0.5024648308753967, 0.6288806796073914, 0.5783324837684631, 1.1637318134307861, -1.2531729936599731, 1.0811784267425537, -0.35983410477638245, 0.9867040514945984, 0.9920690655708313, -0.1111907809972763, -0.6613026857376099, -...
def forward ( self, pos ) : self. ptr = self. ptr. children [ pos ]
[ 0.48945823311805725, -0.3076605796813965, 0.3813803493976593, -1.4616295099258423, -0.4923841059207916, 0.4436529874801636, 0.30608808994293213, -0.29302290081977844, -0.34627819061279297, -0.7478124499320984, -0.652747392654419, 0.45885154604911804, 0.28772076964378357, -0.561532616615295...
def clearall ( self ) : # don't monitor any actions self. _ actions = { } for action in self. events : self. _ actions [ action ] = { } # need activity state self. _ artists = [ ] self. _ current = selection ( ) self. _ hasclick = selection ( ) self. _ haskey = selection ( )
[ -0.5309487581253052, -1.1162148714065552, 0.32691287994384766, 0.0007746188202872872, -0.18102197349071503, -0.17284046113491058, 1.275803565979004, -0.5727317333221436, 0.7711740732192993, -0.4800693988800049, -0.649925947189331, 0.5751407742500305, 0.06645113974809647, 0.2909268438816070...
def json _ encode ( data ) : def _ any ( data ) : ret = none if type ( data ) is types. listtype : ret = _ list ( data ) elif type ( data ) is types. dicttype : ret = _ dict ( data ) elif isinstance ( data, decimal ) : # json. dumps ( ) cant handle decimal ret = str ( data ) elif isinstance ( data, models. query. query...
[ -0.655094563961029, -0.5133488774299622, 0.609380841255188, -0.3654753863811493, -0.8980133533477783, -0.9216527938842773, -0.2208973914384842, -0.8913304209709167, 0.5423727631568909, -0.6239098906517029, -0.8956007957458496, 0.1307806819677353, 0.32727885246276855, 0.6950365900993347, ...
def find _ file ( self, lfn ) : result = self. _ store. find _ block _ containing ( lfn ) # result is none or ( dataset _ name, block _ name ) if result is none : return none try : dataset = self. datasets [ result [ 0 ] ] except keyerror : # can happen if the dataset was deleted from the inventory in this process retu...
[ 0.45442676544189453, -0.36036306619644165, 0.6452909708023071, -0.31714826822280884, 0.2278483510017395, -1.0271203517913818, 0.12424514442682266, -0.36918580532073975, -0.46393099427223206, -0.6815736293792725, 0.3701610565185547, 0.5401172637939453, 0.042620789259672165, 0.37308174371719...
def calculate _ mathematical _ expression ( num1, num2, sgn ) : if num2 = = 0 : return none elif sgn = = " + " : return num1 + num2 elif sgn = = " - " : return num2 - num1 elif sgn = = " / " : return num1 / num2 elif sgn = = " * " : return num1 * num2 else : return none
[ 0.8626784682273865, -0.44178903102874756, 0.5894849896430969, 1.3147053718566895, -0.9153528213500977, -0.4350966215133667, -0.9765562415122986, -0.7814632058143616, -0.14256301522254944, -0.017766619101166725, -0.2464253008365631, 0.1391538828611374, 0.040105629712343216, -0.4104780256748...
def calculate ( self ) : self. dev _ data = devdata ( year _ set = self. year _ set, annual _ data = self. annual _ data ) self. cre _ data = credata ( year _ set = self. year _ set, annual _ data = self. annual _ data ) self. pro _ data = prodata ( year _ set = self. year _ set, annual _ data = self. annual _ data ) s...
[ -0.1987120807170868, 0.06116192415356636, 0.6136447787284851, -0.11224888265132904, -0.03983762115240097, 1.0854672193527222, 0.5271154642105103, -0.29643699526786804, -0.39164549112319946, -0.7758744359016418, 0.09781762957572937, 0.39688387513160706, 0.4733855128288269, 0.211908340454101...
def _ getattr ( i ) : if i not in rinodes : alloc _ inode ( i ) n = secfs. fs. get _ inode ( i ) # fill entry with known attributes entry = llfuse. entryattributes ( ) entry. st _ ino = rinodes [ i ] entry. st _ mtime _ ns = n. mtime entry. st _ ctime _ ns = n. ctime entry. st _ size = n. size # unused attributes entry...
[ -0.07506854832172394, -0.45077991485595703, 0.6233951449394226, -0.2635824680328369, -0.24884659051895142, -0.7699282169342041, 1.1266659498214722, 0.23132725059986115, -0.04609934613108635, -0.29690098762512207, 0.4443456828594208, 0.1489183008670807, 0.06819356977939606, 0.07396709918975...
def created ( self, created ) : self. _ created = created
[ 0.8095845580101013, -0.5978984832763672, -0.29326581954956055, 0.7777999043464661, 1.3422516584396362, 1.172783613204956, 0.35275983810424805, 0.5555166602134705, -0.9063063263893127, -1.3963311910629272, -1.1639015674591064, -0.5176571607589722, 1.2748838663101196, 0.6616278886795044, -...