rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
for filter in filterlist: sedmag[sedfile][filter] = sed[sedfile].calcMag(bandpass[filter])
for f in filterlist: sedmag[sedfile][f] = sed[sedfile].calcMag(bandpass[f]) sedcol[sedfile][f] = sedmag[sedfile][f] - sedmag[sedfile]['V']
def calcAllMags(self, filt, mjdTaiList, rootSEDdir, withErrors=True, fiveSigmaLimitingMag=None): """ Calculate the magnitude of all objects in the movingObjectList """ """ - Given the filter, the mjd (to find the ephemeris info) and the root directory of SEDS/thruputs """ """ individual objects know their SED and thei...
649989e6c45a02c566ac9b33aee0267cb811b9a9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/91/649989e6c45a02c566ac9b33aee0267cb811b9a9/movingObjectList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 1595, 49, 1341, 12, 2890, 16, 18553, 16, 312, 20769, 56, 10658, 682, 16, 1365, 18204, 1214, 16, 598, 4229, 33, 5510, 16, 23714, 24491, 3039, 310, 11372, 33, 7036, 4672, 3536, 9029,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 1595, 49, 1341, 12, 2890, 16, 18553, 16, 312, 20769, 56, 10658, 682, 16, 1365, 18204, 1214, 16, 598, 4229, 33, 5510, 16, 23714, 24491, 3039, 310, 11372, 33, 7036, 4672, 3536, 9029,...
self.veto_definer = os.path.basename(definer_file)
def update_veto_lists(self, timeoffset, veto_definer = None):
1e970725389ab6428d527ad9ebb1d1f3b0c5d669 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/1e970725389ab6428d527ad9ebb1d1f3b0c5d669/pylal_exttrig_llutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 90, 11453, 67, 9772, 12, 2890, 16, 813, 3348, 16, 331, 11453, 67, 5649, 264, 273, 599, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 90, 11453, 67, 9772, 12, 2890, 16, 813, 3348, 16, 331, 11453, 67, 5649, 264, 273, 599, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return props.getProperty('showPlaylist')
return props.getProperty('showPlaylist') and 'flowPlaylistVisible' or 'flowPlaylistHidden'
def show_playlist(self): properties_tool = getToolByName(self.context, 'portal_properties') props = getattr(properties_tool, 'flowplayer_properties', None) return props.getProperty('showPlaylist')
15077139cd9febae1eb944d5753e63893b5f35ef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10573/15077139cd9febae1eb944d5753e63893b5f35ef/view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 1601, 1098, 12, 2890, 4672, 1790, 67, 6738, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 24386, 67, 4738, 6134, 3458, 273, 3869, 12, 4738, 67, 6738, 16, 296, 2426, 1487...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 1601, 1098, 12, 2890, 4672, 1790, 67, 6738, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 24386, 67, 4738, 6134, 3458, 273, 3869, 12, 4738, 67, 6738, 16, 296, 2426, 1487...
self._evalwheredat(intid)
self._evalwheredat([intid])
def _create_autoincrement(self, data=None): """ obj.create(data=None) -> self
42f9d25588493f6ca5b43260e482e205e427a547 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/42f9d25588493f6ca5b43260e482e205e427a547/database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 5854, 30033, 12, 2890, 16, 501, 33, 7036, 4672, 3536, 1081, 18, 2640, 12, 892, 33, 7036, 13, 317, 365, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 5854, 30033, 12, 2890, 16, 501, 33, 7036, 4672, 3536, 1081, 18, 2640, 12, 892, 33, 7036, 13, 317, 365, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if not self.field_id:
if not self.field_id.get(cr.dbname):
def _field_get(self, self2, cr, uid, prop): if not self.field_id: cr.execute('select id from ir_model_fields where name=%s and model=%s', (prop, self2._name)) res = cr.fetchone() self.field_id = res and res[0] return self.field_id
a230dfb364a5586ae582f6ae99d35a124c64e563 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7397/a230dfb364a5586ae582f6ae99d35a124c64e563/fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1518, 67, 588, 12, 2890, 16, 365, 22, 16, 4422, 16, 4555, 16, 2270, 4672, 309, 486, 365, 18, 1518, 67, 350, 18, 588, 12, 3353, 18, 20979, 4672, 4422, 18, 8837, 2668, 4025, 612, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1518, 67, 588, 12, 2890, 16, 365, 22, 16, 4422, 16, 4555, 16, 2270, 4672, 309, 486, 365, 18, 1518, 67, 350, 18, 588, 12, 3353, 18, 20979, 4672, 4422, 18, 8837, 2668, 4025, 612, ...
req = "%s AND AncestorDepth IN (%s);" % (req,intListToString(depths)) res = self.db._query(req,connection)
req = "%s AND AncestorDepth IN (%s);" % ( req, intListToString( depths ) ) res = self.db._query( req, connection )
def _getFileAncestors(self,fileIDs,depths=[],connection=False): connection = self._getConnection(connection) req = "SELECT FileID,AncestorID,AncestorDepth FROM FC_FileAncestors WHERE FileID IN (%s)" % intListToString(fileIDs) if depths: req = "%s AND AncestorDepth IN (%s);" % (req,intListToString(depths)) res = self.db...
26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 29925, 28304, 12, 2890, 16, 768, 5103, 16, 5979, 87, 22850, 6487, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 1111, 273, 315, 4803, 1387, 734, 16, 15637, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 29925, 28304, 12, 2890, 16, 768, 5103, 16, 5979, 87, 22850, 6487, 4071, 33, 8381, 4672, 1459, 273, 365, 6315, 588, 1952, 12, 4071, 13, 1111, 273, 315, 4803, 1387, 734, 16, 15637, ...
ALIASES: numerical_aproximation and numerical_approx are the same.
sage: (pi + e + sqrt(2)).numerical_approx(100) 7.2740880444219335226246195788
def numerical_approximation(self, prec=53): """ Get a numerical approximation of self as either a real or complex number.
620e070c69b2ba56d65f620b55649fc43ff77bab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/620e070c69b2ba56d65f620b55649fc43ff77bab/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17409, 67, 26742, 5115, 12, 2890, 16, 13382, 33, 8643, 4672, 3536, 968, 279, 17409, 24769, 434, 365, 487, 3344, 279, 2863, 578, 7233, 1300, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17409, 67, 26742, 5115, 12, 2890, 16, 13382, 33, 8643, 4672, 3536, 968, 279, 17409, 24769, 434, 365, 487, 3344, 279, 2863, 578, 7233, 1300, 18, 2, -100, -100, -100, -100, -100, -100, -10...
t = self.f.reduce(filled(t, self.filly), axis, dtype=dtype or t.dtype)
t = self.f.reduce(filled(t, self.filly), axis, dtype=dtype or t.dtype)
def reduce (self, target, axis=0, dtype=None): """Reduce target along the given axis with this function.""" m = getmask(target) t = filled(target, self.filly) if t.shape == (): t = t.reshape(1) if m is not nomask: m = make_mask(m, copy=1) m.shape = (1,) if m is nomask: return masked_array (self.f.reduce (t, axis)) else...
cc3e7f3907f6c0621e5ff8866a078e4049fd2be8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14925/cc3e7f3907f6c0621e5ff8866a078e4049fd2be8/ma.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5459, 261, 2890, 16, 1018, 16, 2654, 33, 20, 16, 3182, 33, 7036, 4672, 3536, 12944, 1018, 7563, 326, 864, 2654, 598, 333, 445, 12123, 312, 273, 336, 4455, 12, 3299, 13, 268, 273, 6300,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5459, 261, 2890, 16, 1018, 16, 2654, 33, 20, 16, 3182, 33, 7036, 4672, 3536, 12944, 1018, 7563, 326, 864, 2654, 598, 333, 445, 12123, 312, 273, 336, 4455, 12, 3299, 13, 268, 273, 6300,...
return {'value': result['value'], 'warning':warning}
return {'value': result.get('value',{}), 'warning':warning}
def onchange_partner_id(self, cr, uid, ids, type, partner_id, date_invoice=False, payment_term=False, partner_bank_id=False): if not partner_id: return {'value': { 'address_contact_id': False , 'address_invoice_id': False, 'account_id': False, 'payment_term': False, } } warning = {} title = False message = False partn...
436cfd6954d5ed8e538ae3c4c141e9cf56f75bae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/436cfd6954d5ed8e538ae3c4c141e9cf56f75bae/warning.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 31993, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 16, 19170, 67, 350, 16, 1509, 67, 16119, 33, 8381, 16, 5184, 67, 6408, 33, 8381, 16, 19170, 67, 10546,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 31993, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 16, 19170, 67, 350, 16, 1509, 67, 16119, 33, 8381, 16, 5184, 67, 6408, 33, 8381, 16, 19170, 67, 10546,...
def isLogging(self, level): if level > self.INFO_MAX: if level-self.INFO_MAX > self._debug_level: return False else: if level > self._level: return False if not self._logging.has_key(level): return False if not self._domains.has_key(level) or len(self._domains[level]) < 1: return False return True
def delLogging(self, domain, target, level=ALL, format=None): """ Delete log target for domain and level. Level can be a single level or an array of levels. Use level ALL to set for all levels. If no format is specified, the default format will be used. """ levels = self._getLevels(level) for level in levels: if not se...
5e21eaf199cb2a3a81aefe5be1fd9cac8312f653 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/5e21eaf199cb2a3a81aefe5be1fd9cac8312f653/logger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 7735, 12, 2890, 16, 2461, 16, 1018, 16, 1801, 33, 4685, 16, 740, 33, 7036, 4672, 3536, 2504, 613, 1018, 364, 2461, 471, 1801, 18, 4557, 848, 506, 279, 2202, 1801, 578, 392, 526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 7735, 12, 2890, 16, 2461, 16, 1018, 16, 1801, 33, 4685, 16, 740, 33, 7036, 4672, 3536, 2504, 613, 1018, 364, 2461, 471, 1801, 18, 4557, 848, 506, 279, 2202, 1801, 578, 392, 526, ...
self.default_font.GetFamily(), self.default_font.GetStyle(), self.default_font.GetWeight())
default_font.GetFamily(), default_font.GetStyle(), default_font.GetWeight())
def __init__(self, mode, parent): wx.ListCtrl.__init__(self, parent, style=wx.LC_REPORT) self.mpd = mode.mpd self.createColumns()
dfc430bfbd215fb5641b5a8403f6a74ce6ee39f9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/dfc430bfbd215fb5641b5a8403f6a74ce6ee39f9/mpd_major_mode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1965, 16, 982, 4672, 7075, 18, 682, 12418, 16186, 2738, 972, 12, 2890, 16, 982, 16, 2154, 33, 27226, 18, 13394, 67, 22710, 13, 365, 18, 1291, 72, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1965, 16, 982, 4672, 7075, 18, 682, 12418, 16186, 2738, 972, 12, 2890, 16, 982, 16, 2154, 33, 27226, 18, 13394, 67, 22710, 13, 365, 18, 1291, 72, 273, ...
if account.isSetUp():
if account.isSetUp(ignorePassword):
def getCurrentOutgoingAccount(view): """ This function returns the default C{OutgoingAccount} account or the first C{OutgoingAccount} found if no default exists. @return C{OutgoingAccount} or None """ outgoingAccount = None # Get the current SMTP Account outgoingAccount = schema.ns('osaf.pim', view).currentOutgoingA...
da69f378e03cd4ad2f57bb44acaad5e047e5bd57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/da69f378e03cd4ad2f57bb44acaad5e047e5bd57/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5175, 24866, 3032, 12, 1945, 4672, 3536, 1220, 445, 1135, 326, 805, 385, 95, 24866, 3032, 97, 2236, 578, 326, 1122, 385, 95, 24866, 3032, 97, 1392, 309, 1158, 805, 1704, 18, 225, 632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5175, 24866, 3032, 12, 1945, 4672, 3536, 1220, 445, 1135, 326, 805, 385, 95, 24866, 3032, 97, 2236, 578, 326, 1122, 385, 95, 24866, 3032, 97, 1392, 309, 1158, 805, 1704, 18, 225, 632, ...
session = self.remote_login() if session: cmd = self.params.get("cpu_chk_cmd") s, count = session.get_command_status_output(cmd) if s == 0: return int(count)
cmd = self.params.get("cpu_chk_cmd") s, count = session.get_command_status_output(cmd) if s == 0: return int(count)
def get_cpu_count(self): """ Get the cpu count of the VM. """ try: session = self.remote_login() if session: cmd = self.params.get("cpu_chk_cmd") s, count = session.get_command_status_output(cmd) if s == 0: return int(count) return None finally: session.close()
f061a282f5ae3d1cb9059539cba533d8c19eb8d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10349/f061a282f5ae3d1cb9059539cba533d8c19eb8d1/kvm_vm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11447, 67, 1883, 12, 2890, 4672, 3536, 968, 326, 8326, 1056, 434, 326, 8251, 18, 3536, 775, 30, 1797, 273, 365, 18, 2010, 18, 588, 2932, 11447, 67, 27038, 67, 4172, 7923, 272,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 11447, 67, 1883, 12, 2890, 4672, 3536, 968, 326, 8326, 1056, 434, 326, 8251, 18, 3536, 775, 30, 1797, 273, 365, 18, 2010, 18, 588, 2932, 11447, 67, 27038, 67, 4172, 7923, 272,...
for char in ',;:': if line[index] == char and line[index + 1] != ' ': return index, "E231 missing whitespace after '%s'" % char
char = line[index] if char in ',;:' and line[index + 1] != ' ': before = line[:index] if char == ':' and before.count('[') > before.count(']'): continue return index, "E231 missing whitespace after '%s'" % char
def missing_whitespace(logical_line): """ JCR: Each comma, semicolon or colon should be followed by whitespace. """ line = logical_line for index in range(len(line) - 1): for char in ',;:': if line[index] == char and line[index + 1] != ' ': return index, "E231 missing whitespace after '%s'" % char
59be47b92a0b4bed0a72822fd35f9a8517f02b7d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3111/59be47b92a0b4bed0a72822fd35f9a8517f02b7d/pep8.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3315, 67, 18777, 12, 20300, 67, 1369, 4672, 3536, 17573, 30, 8315, 8716, 16, 23682, 578, 13336, 1410, 506, 10860, 635, 7983, 18, 3536, 980, 273, 6374, 67, 1369, 364, 770, 316, 1048, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3315, 67, 18777, 12, 20300, 67, 1369, 4672, 3536, 17573, 30, 8315, 8716, 16, 23682, 578, 13336, 1410, 506, 10860, 635, 7983, 18, 3536, 980, 273, 6374, 67, 1369, 364, 770, 316, 1048, 12, ...
cflags = sysconfig.get_config_vars()['CFLAGS']
try: cflags = sysconfig.get_config_vars()['CFLAGS'] except KeyError: return []
def _c_arch_flags(self): """ Return detected arch flags from CFLAGS """ from distutils import sysconfig cflags = sysconfig.get_config_vars()['CFLAGS'] arch_re = re.compile(r"-arch\s+(\w+)") arch_flags = [] for arch in arch_re.findall(cflags): arch_flags += ['-arch', arch] return arch_flags
ba019417f66168b32357f397df7fd45808fd1ce4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/ba019417f66168b32357f397df7fd45808fd1ce4/gnu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 71, 67, 991, 67, 7133, 12, 2890, 4672, 3536, 2000, 8316, 6637, 2943, 628, 6123, 6552, 55, 3536, 628, 2411, 5471, 1930, 2589, 1425, 775, 30, 276, 7133, 273, 2589, 1425, 18, 588, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 71, 67, 991, 67, 7133, 12, 2890, 4672, 3536, 2000, 8316, 6637, 2943, 628, 6123, 6552, 55, 3536, 628, 2411, 5471, 1930, 2589, 1425, 775, 30, 276, 7133, 273, 2589, 1425, 18, 588, 67...
sf += binomial(self.dfn, i) * scipy.stats.chi.sf(x, i) / N.power(2., self.dfn)
sf += binomial(self.dfn, i) * stats.chi.sf(x, i) / N.power(2., self.dfn)
def _getmu(self): x = N.linspace(0, 2 * self.dfn, 100) sf = 0. g = Gaussian() for i in range(1, self.dfn+1): sf += binomial(self.dfn, i) * scipy.stats.chi.sf(x, i) / N.power(2., self.dfn)
b251694b7d7fc8fce6e39eac693410d6577055a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12658/b251694b7d7fc8fce6e39eac693410d6577055a1/rft.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 13297, 12, 2890, 4672, 619, 273, 423, 18, 80, 15738, 12, 20, 16, 576, 380, 365, 18, 2180, 82, 16, 2130, 13, 9033, 273, 374, 18, 314, 273, 23079, 1435, 364, 277, 316, 1048, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 13297, 12, 2890, 4672, 619, 273, 423, 18, 80, 15738, 12, 20, 16, 576, 380, 365, 18, 2180, 82, 16, 2130, 13, 9033, 273, 374, 18, 314, 273, 23079, 1435, 364, 277, 316, 1048, ...
contents = self.doctree( inspect.getclasstree(classes, 1), name, cdict) for item in classes: contents = contents + self.document(item, fdict, cdict)
classlist = map(lambda (key, value): value, classes) contents = [self.formattree( inspect.getclasstree(classlist, 1), name, cdict)] for key, value in classes: contents.append(self.document(value, key, fdict, cdict))
def docmodule(self, object): """Produce HTML documentation for a module object.""" name = object.__name__ parts = split(name, '.') links = [] for i in range(len(parts)-1): links.append( '<a href="%s.html"><font color="#ffffff">%s</font></a>' % (join(parts[:i+1], '.'), parts[i])) linkedname = join(links + parts[-1:], '....
54a838fe1421d6e6829cabc42e7f398722140804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54a838fe1421d6e6829cabc42e7f398722140804/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 4672, 3536, 25884, 3982, 7323, 364, 279, 1605, 733, 12123, 508, 273, 733, 16186, 529, 972, 2140, 273, 1416, 12, 529, 16, 2611, 13, 4716, 273, 5378, 364, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 4672, 3536, 25884, 3982, 7323, 364, 279, 1605, 733, 12123, 508, 273, 733, 16186, 529, 972, 2140, 273, 1416, 12, 529, 16, 2611, 13, 4716, 273, 5378, 364, 2...
yoffset += 65
dialog.addResizeGump(65, 109 + yoffset, 9200, 405, 62) dialog.addText(76, 115 + yoffset, unicode( "Skill: %s (%i)" % (skillname, skill) ), 2100) dialog.addResizeGump(123, 135 + yoffset, 9300, 63, 26) dialog.addText(76, 137 + yoffset, unicode( "Value:" ), 2100) dialog.addText(187, 138 + yoffset, unicode( "%" ), 2100) di...
def callback(player, arguments, target): if not target.char: return dialog = wolfpack.gumps.cGump() dialog.setCallback("commands.skillinfo.response") dialog.setArgs([target.char.serial]) dialog.startPage(0) dialog.addResizeGump(35, 12, 9260, 460, 504) dialog.addGump(1, 12, 10421, 0) dialog.addGump(30, -1, 10420, 0) d...
9552b6d4143c46cdc4a9033e72c472113180bf62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/9552b6d4143c46cdc4a9033e72c472113180bf62/skillinfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1348, 12, 14872, 16, 1775, 16, 1018, 4672, 309, 486, 1018, 18, 3001, 30, 327, 225, 6176, 273, 341, 355, 74, 2920, 18, 75, 23868, 18, 71, 43, 2801, 1435, 6176, 18, 542, 2428, 2932, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1348, 12, 14872, 16, 1775, 16, 1018, 4672, 309, 486, 1018, 18, 3001, 30, 327, 225, 6176, 273, 341, 355, 74, 2920, 18, 75, 23868, 18, 71, 43, 2801, 1435, 6176, 18, 542, 2428, 2932, 78...
self.__read_file()
newUsers = self.__read_file()
def rebuild(self, force=False): self.mtx.acquire() try: if force: self.__read_file() else: mtime = os.path.getmtime(self.__user_db) if mtime > self.__mtime: self.__read_file() self.__mtime = mtime finally: self.mtx.release()
ce34a373ffb1d3f8a24bcc69ebb33cf62d9e8afa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2459/ce34a373ffb1d3f8a24bcc69ebb33cf62d9e8afa/user.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13419, 12, 2890, 16, 2944, 33, 8381, 4672, 365, 18, 81, 978, 18, 1077, 1039, 1435, 775, 30, 309, 2944, 30, 394, 6588, 273, 365, 16186, 896, 67, 768, 1435, 469, 30, 13158, 273, 1140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13419, 12, 2890, 16, 2944, 33, 8381, 4672, 365, 18, 81, 978, 18, 1077, 1039, 1435, 775, 30, 309, 2944, 30, 394, 6588, 273, 365, 16186, 896, 67, 768, 1435, 469, 30, 13158, 273, 1140, ...
def onSendChallengeButtonResponse (self, dialog, response):
def onChallengeDialogResponse (self, dialog, response):
def onSendChallengeButtonResponse (self, dialog, response): self.widgets["challengeDialog"].hide() if response is not 5: return if self.widgets["challenge3Radio"].get_active(): self.__loadSeekEditor(3) elif self.widgets["challenge2Radio"].get_active(): self.__loadSeekEditor(2) else: self.__loadSeekEditor(1) min, incr,...
a7c08490b6abd21967d9c19a31c4977f6e4ce49d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/a7c08490b6abd21967d9c19a31c4977f6e4ce49d/ICLounge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 18359, 6353, 1064, 261, 2890, 16, 6176, 16, 766, 4672, 365, 18, 18148, 9614, 25092, 6353, 6, 8009, 11248, 1435, 309, 766, 353, 486, 1381, 30, 327, 225, 309, 365, 18, 18148, 9614, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 18359, 6353, 1064, 261, 2890, 16, 6176, 16, 766, 4672, 365, 18, 18148, 9614, 25092, 6353, 6, 8009, 11248, 1435, 309, 766, 353, 486, 1381, 30, 327, 225, 309, 365, 18, 18148, 9614, ...
else: from cStringIO import StringIO fp = StringIO() image.save(fp, image_orig.format) fp.seek(0) return self._Image(self, item, fp.read(), getattr(getattr(item, name), 'path', None)) else: return self._Image(self, item)
from cStringIO import StringIO fp = StringIO() image.save(fp, image_orig.format) fp.seek(0) return self._Image(self, item, fp.read(), getattr(getattr(item, name), 'path', None)) else: return _image
def convertFromForm(self, form, name, item): if self.fieldToThumb: # we have field to thumbnail _image = getattr(item, self.fieldToThumb, None) image = image_orig = getattr(_image, '_image', None) else: # field thumbnails itself if form.has_key(name+'-delete'): old_path = getattr(getattr(item, name), 'path', None) ret...
e0760c8ae0acae1b3ed3e3e4dc0e1b6c68663063 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/e0760c8ae0acae1b3ed3e3e4dc0e1b6c68663063/qFieldTypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 1265, 1204, 12, 2890, 16, 646, 16, 508, 16, 761, 4672, 309, 365, 18, 1518, 774, 18922, 30, 468, 732, 1240, 652, 358, 9134, 389, 2730, 273, 3869, 12, 1726, 16, 365, 18, 1518, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 1265, 1204, 12, 2890, 16, 646, 16, 508, 16, 761, 4672, 309, 365, 18, 1518, 774, 18922, 30, 468, 732, 1240, 652, 358, 9134, 389, 2730, 273, 3869, 12, 1726, 16, 365, 18, 1518, 77...
['Products/Five/doc', ['Products/ZReST/doc/*']], ['Products/Five/skel', ['Products/ZReST/skel/*']], ['Products/Five/tests', ['Products/ZReST/tests/*']],
['Products/Five/doc', ['Products/Five/doc/*']], ['Products/Five/skel', ['Products/Five/skel/*']], ['Products/Five/tests', ['Products/Five/tests/*']],
def __init__(self, *attrs): Distribution.__init__(self, *attrs) self.cmdclass['build'] = MyBuilder self.cmdclass['build_ext'] = MyExtBuilder self.cmdclass['install_lib'] = MyLibInstaller
a6ae89ff7c1f501a5592e9d123362a4ad1a06e37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/a6ae89ff7c1f501a5592e9d123362a4ad1a06e37/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 7039, 4672, 17547, 16186, 2738, 972, 12, 2890, 16, 380, 7039, 13, 365, 18, 4172, 1106, 3292, 3510, 3546, 273, 8005, 1263, 365, 18, 4172, 1106, 3292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 7039, 4672, 17547, 16186, 2738, 972, 12, 2890, 16, 380, 7039, 13, 365, 18, 4172, 1106, 3292, 3510, 3546, 273, 8005, 1263, 365, 18, 4172, 1106, 3292, ...
self.db.cursor().execute("create table foo(x)")
def testIssue31(self): # http://code.google.com/p/apsw/issues/detail?id=31 # The claim is that using the same connection in two threads # on Windows results in the main thread and the same # connection threads all hanging.
f0f139ca1c73176ffc374f8eb6f63ed6e2cd34b3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/993/f0f139ca1c73176ffc374f8eb6f63ed6e2cd34b3/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12956, 6938, 12, 2890, 4672, 468, 1062, 2207, 710, 18, 9536, 18, 832, 19, 84, 19, 438, 5328, 19, 9618, 19, 8992, 35, 350, 33, 6938, 225, 468, 1021, 7516, 353, 716, 1450, 326, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12956, 6938, 12, 2890, 4672, 468, 1062, 2207, 710, 18, 9536, 18, 832, 19, 84, 19, 438, 5328, 19, 9618, 19, 8992, 35, 350, 33, 6938, 225, 468, 1021, 7516, 353, 716, 1450, 326, 1...
the normalized address as a 2-tuple.
the normalized address as a 4-tuple.
def _make_socket(self, addr=None, overwrite=False): """ Constructs a socket based on the given addr. Returns the socket and the normalized address as a 2-tuple.
90682baa5ab5e105fb31ca84cac0f9a398304906 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11722/90682baa5ab5e105fb31ca84cac0f9a398304906/sockets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 67, 7814, 12, 2890, 16, 3091, 33, 7036, 16, 6156, 33, 8381, 4672, 3536, 14291, 87, 279, 2987, 2511, 603, 326, 864, 3091, 18, 225, 2860, 326, 2987, 471, 326, 5640, 1758, 487,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 67, 7814, 12, 2890, 16, 3091, 33, 7036, 16, 6156, 33, 8381, 4672, 3536, 14291, 87, 279, 2987, 2511, 603, 326, 864, 3091, 18, 225, 2860, 326, 2987, 471, 326, 5640, 1758, 487,...
if ids:
if ref_ids:
def _get_external_referential_id(self, cr, uid, ids, name, arg, context=None): res = {} for model_data in self.browse(cr, uid, ids, context): s = model_data.module.split('.') #we assume a module name with a '.' means external referential if len(s) > 1: ref_ids = self.pool.get('external.referential').search(cr, uid, [['...
d1f2c6fb773b58e149c1ad2413ee4d65b5702aa3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/d1f2c6fb773b58e149c1ad2413ee4d65b5702aa3/base_external_referentials.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 9375, 67, 266, 586, 2001, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 400, 273, 2618, 364, 938, 67, 892, 316, 365, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 9375, 67, 266, 586, 2001, 67, 350, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 400, 273, 2618, 364, 938, 67, 892, 316, 365, 18...
self.CheckMenuBlock("EditRecurrence", "recurrence", dict[field])
self.CheckMenuBlock("EditRecurrence", "recurrence", value)
def Check_DetailView(self, dict): """ Check expected values by comparation to the data diplayed in the detail view @type dict : dictionary @param dict : dictionary with expected item attributes values for checking {"attributeName":"expected value",...} """ if self.logger: self.logger.SetChecked(True) self.SelectItem() ...
5c6ba404b99947f3210082287c79a9b81a402c26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5c6ba404b99947f3210082287c79a9b81a402c26/QAUITestAppLib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 67, 6109, 1767, 12, 2890, 16, 2065, 4672, 3536, 2073, 2665, 924, 635, 532, 20961, 358, 326, 501, 4314, 1601, 329, 316, 326, 7664, 1476, 632, 723, 2065, 294, 3880, 632, 891, 2065, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 67, 6109, 1767, 12, 2890, 16, 2065, 4672, 3536, 2073, 2665, 924, 635, 532, 20961, 358, 326, 501, 4314, 1601, 329, 316, 326, 7664, 1476, 632, 723, 2065, 294, 3880, 632, 891, 2065, ...
while sections and level<sections[-1].level:
while sections and level<=sections[-1].level:
def create(): if current.start is None or current.endtitle is None: return False l1 = tokens[current.start].text.count("=") l2 = tokens[current.endtitle].text.count("=") level = min (l1, l2)
935c3fb9132fb875d499bbbaaf7ddc22981e729b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12391/935c3fb9132fb875d499bbbaaf7ddc22981e729b/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 13332, 309, 783, 18, 1937, 353, 599, 578, 783, 18, 409, 2649, 353, 599, 30, 327, 1083, 225, 328, 21, 273, 2430, 63, 2972, 18, 1937, 8009, 955, 18, 1883, 2932, 1546, 13, 328, 22,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 13332, 309, 783, 18, 1937, 353, 599, 578, 783, 18, 409, 2649, 353, 599, 30, 327, 1083, 225, 328, 21, 273, 2430, 63, 2972, 18, 1937, 8009, 955, 18, 1883, 2932, 1546, 13, 328, 22,...
relative importance of that node to its graph. Vertices that occur on more shortest paths between other nodes have higher betweenness than nodes that occur on less.
relative importance of that vertex to its graph. Vertices that occur on more shortest paths between other vertices have higher betweenness than vertices that occur on less.
def centrality_betweenness(self, normalized=True): r""" Returns the betweenness centrality (fraction of number of shortest paths that go through each node) as a dictionary keyed by vertices. The betweenness is normalized by default to be in range (0,1). This wraps Networkx's implementation of the algorithm described i...
7d819cbf1df622e9f76b4801233dbb334f44d362 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/7d819cbf1df622e9f76b4801233dbb334f44d362/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 8230, 7919, 67, 15019, 4496, 12, 2890, 16, 5640, 33, 5510, 4672, 436, 8395, 2860, 326, 3086, 4496, 276, 8230, 7919, 261, 16744, 434, 1300, 434, 20579, 2953, 716, 1960, 3059, 1517, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 276, 8230, 7919, 67, 15019, 4496, 12, 2890, 16, 5640, 33, 5510, 4672, 436, 8395, 2860, 326, 3086, 4496, 276, 8230, 7919, 261, 16744, 434, 1300, 434, 20579, 2953, 716, 1960, 3059, 1517, 7...
if st.st_mode != change.mode:
if stat.S_IMODE(st.st_mode) != change.mode:
def __getitem__(self, key): if key in self: return dict.__getitem__(self, key) return key
46628d63b0770d492a934b473c3dcbecd94e3a14 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10616/46628d63b0770d492a934b473c3dcbecd94e3a14/changes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 309, 498, 316, 365, 30, 327, 2065, 16186, 31571, 972, 12, 2890, 16, 498, 13, 327, 498, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 2890, 16, 498, 4672, 309, 498, 316, 365, 30, 327, 2065, 16186, 31571, 972, 12, 2890, 16, 498, 13, 327, 498, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
ec = g_self.space.getexecutioncontext() g_self.running = 1
ec = self.space.getexecutioncontext() self.running = 1
def next(g_self): if g_self.running: raise OperationError(self.w_ValueError, "generator already executing") ec = g_self.space.getexecutioncontext()
8b87e80aa66eaef372ec7b69c8744ea46174e4bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/8b87e80aa66eaef372ec7b69c8744ea46174e4bf/trivial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 75, 67, 2890, 4672, 309, 314, 67, 2890, 18, 8704, 30, 1002, 4189, 668, 12, 2890, 18, 91, 67, 23610, 16, 315, 8812, 1818, 11274, 7923, 6557, 273, 314, 67, 2890, 18, 2981, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 12, 75, 67, 2890, 4672, 309, 314, 67, 2890, 18, 8704, 30, 1002, 4189, 668, 12, 2890, 18, 91, 67, 23610, 16, 315, 8812, 1818, 11274, 7923, 6557, 273, 314, 67, 2890, 18, 2981, 18...
zinfo.CRC = crc32(bytes)
zinfo.CRC = crc32(bytes) & 0xffffffff
def writestr(self, zinfo_or_arcname, bytes): """Write a file into the archive. The contents is the string 'bytes'. 'zinfo_or_arcname' is either a ZipInfo instance or the name of the file in the archive.""" if not isinstance(zinfo_or_arcname, ZipInfo): zinfo = ZipInfo(filename=zinfo_or_arcname, date_time=time.localtim...
bf02e3bb21b2d75cba4ce409a14ae64dbc2dd6d2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/bf02e3bb21b2d75cba4ce409a14ae64dbc2dd6d2/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7262, 313, 12, 2890, 16, 998, 1376, 67, 280, 67, 11828, 529, 16, 1731, 4672, 3536, 3067, 279, 585, 1368, 326, 5052, 18, 225, 1021, 2939, 353, 326, 533, 296, 3890, 10332, 225, 296, 94, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7262, 313, 12, 2890, 16, 998, 1376, 67, 280, 67, 11828, 529, 16, 1731, 4672, 3536, 3067, 279, 585, 1368, 326, 5052, 18, 225, 1021, 2939, 353, 326, 533, 296, 3890, 10332, 225, 296, 94, ...
purge):
purge, cache=cache):
def _getContentsAndSupercats(self, recurse=False, purge=False, startFrom=None, cache=[]): """ Cache results of _parseCategory for a second call.
5afb2f2f9cd7b97e901eba042ad6c30778279e51 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/5afb2f2f9cd7b97e901eba042ad6c30778279e51/catlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 6323, 1876, 8051, 24750, 12, 2890, 16, 11502, 33, 8381, 16, 11668, 33, 8381, 16, 787, 1265, 33, 7036, 16, 1247, 33, 8526, 4672, 3536, 4379, 1686, 434, 389, 2670, 4457, 364, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 6323, 1876, 8051, 24750, 12, 2890, 16, 11502, 33, 8381, 16, 11668, 33, 8381, 16, 787, 1265, 33, 7036, 16, 1247, 33, 8526, 4672, 3536, 4379, 1686, 434, 389, 2670, 4457, 364, 2...
if milestone.has_key('date'):
if milestone.has_key('due'):
def write_utctime(name, value, params={}): write_prop(name, strftime('%Y%m%dT%H%M%SZ', value), params)
4d2b3d40032e2ed086c9a6cc5b9c8cdae5a6c765 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/4d2b3d40032e2ed086c9a6cc5b9c8cdae5a6c765/roadmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 322, 21261, 12, 529, 16, 460, 16, 859, 12938, 4672, 1045, 67, 5986, 12, 529, 16, 10405, 29909, 61, 9, 81, 9, 23148, 9, 44, 9, 49, 9, 28830, 2187, 460, 3631, 859, 13, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 322, 21261, 12, 529, 16, 460, 16, 859, 12938, 4672, 1045, 67, 5986, 12, 529, 16, 10405, 29909, 61, 9, 81, 9, 23148, 9, 44, 9, 49, 9, 28830, 2187, 460, 3631, 859, 13, 2, ...
if int(actual_size) == size:
if actual_size == size:
def is_uploaded(url, size): if url.startswith('http://TESTING/releases'): return True
661e35ce029fd9f6319b4c73a431b8e13ac9521a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3006/661e35ce029fd9f6319b4c73a431b8e13ac9521a/release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 23249, 12, 718, 16, 963, 4672, 309, 880, 18, 17514, 1918, 2668, 2505, 2207, 16961, 1360, 19, 28416, 11, 4672, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 23249, 12, 718, 16, 963, 4672, 309, 880, 18, 17514, 1918, 2668, 2505, 2207, 16961, 1360, 19, 28416, 11, 4672, 327, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
s = shelve.open(self.fn, protocol=0)
def test_ascii_file_shelf(self): try: s = shelve.open(self.fn, protocol=0) s['key1'] = (1,2,3,4) self.assertEqual(s['key1'], (1,2,3,4)) s.close() finally: for f in glob.glob(self.fn+"*"): os.unlink(f)
dbb86a52dd4b50d221d9b67922e19b8215364f24 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/dbb86a52dd4b50d221d9b67922e19b8215364f24/test_shelve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9184, 67, 768, 67, 674, 19079, 12, 2890, 4672, 775, 30, 272, 3292, 856, 21, 3546, 273, 261, 21, 16, 22, 16, 23, 16, 24, 13, 365, 18, 11231, 5812, 12, 87, 3292, 856, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9184, 67, 768, 67, 674, 19079, 12, 2890, 4672, 775, 30, 272, 3292, 856, 21, 3546, 273, 261, 21, 16, 22, 16, 23, 16, 24, 13, 365, 18, 11231, 5812, 12, 87, 3292, 856, 21, ...
self.clockOffset = time.clock() - tele.timeStamp;
self.clockOffset = FOFilter(1.0, time.clock() - tele.timeStamp); self.avgReceptionLatency = FOFilter(0.1, 0.0)
def processTelemetry(self,tele): """message handler""" #update reception latency if self.clockOffset == None: self.clockOffset = time.clock() - tele.timeStamp; else: newOffset = time.clock() - tele.timeStamp diff = abs(self.clockOffset - newOffset) self.avgReceptionLatency = self.avgReceptionLatency * 0.9 + diff * 0.1...
10ead6b4ff71585d050bce2c55777911a87c190e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5773/10ead6b4ff71585d050bce2c55777911a87c190e/cerebellum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 56, 20483, 12, 2890, 16, 29170, 4672, 3536, 2150, 1838, 8395, 225, 468, 2725, 283, 472, 19518, 309, 365, 18, 18517, 2335, 422, 599, 30, 365, 18, 18517, 2335, 273, 17634, 1586, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 56, 20483, 12, 2890, 16, 29170, 4672, 3536, 2150, 1838, 8395, 225, 468, 2725, 283, 472, 19518, 309, 365, 18, 18517, 2335, 422, 599, 30, 365, 18, 18517, 2335, 273, 17634, 1586, 12, ...
installablepng = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "SystemPlugins/SoftwareManager/installable.png"))
def buildEntryComponent(self, name, details, description, packagename, state, selected = False): divpng = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/div-h.png")) if state == 'installed': installedpng = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_PLUGIN, "SystemPlugins/...
018534fa7bf9be0885b2ffc753d8d6fc5b56143c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/018534fa7bf9be0885b2ffc753d8d6fc5b56143c/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1622, 1841, 12, 2890, 16, 508, 16, 3189, 16, 2477, 16, 2298, 346, 1069, 16, 919, 16, 3170, 273, 1083, 4672, 3739, 6446, 273, 4444, 21816, 1458, 12, 7097, 33, 5510, 16, 589, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1622, 1841, 12, 2890, 16, 508, 16, 3189, 16, 2477, 16, 2298, 346, 1069, 16, 919, 16, 3170, 273, 1083, 4672, 3739, 6446, 273, 4444, 21816, 1458, 12, 7097, 33, 5510, 16, 589, 33, ...
'--scriptFile=%s' % os.path.join('tools', 'QATestScripts', 'Performance', 'quit.py') ]
'--scriptFile=%s' % os.path.join('tools', 'QATestScripts', 'Performance', 'quit.py'),]
def runStartupPerfTests(options, timer, largeData=False, repeat=3, logger=log): """ Run startup time tests. >>> options = parseOptions() >>> checkOptions(options) >>> options.dryrun = True >>> options.verbose = True >>> runStartupPerfTests(options, '/usr/bin/time') Creating repository for startup time tests /.../rel...
134ce2a6ff32b988db479ade6fcf70a08aac23f5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/134ce2a6ff32b988db479ade6fcf70a08aac23f5/rt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 22178, 22016, 14650, 12, 2116, 16, 5441, 16, 7876, 751, 33, 8381, 16, 7666, 33, 23, 16, 1194, 33, 1330, 4672, 3536, 1939, 11850, 813, 7434, 18, 225, 4080, 702, 273, 1109, 1320, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 22178, 22016, 14650, 12, 2116, 16, 5441, 16, 7876, 751, 33, 8381, 16, 7666, 33, 23, 16, 1194, 33, 1330, 4672, 3536, 1939, 11850, 813, 7434, 18, 225, 4080, 702, 273, 1109, 1320, 1...
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 523) else quickfix.StringField.__init__(self, 523, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 4366, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 4366, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738...
>>> po = polib.pofile('tests/test_utf8.po')
>>> po = polib.pofile('tests/test_weird_occurrences.po')
def pofile(fpath, **kwargs): """ Convenience function that parse the po/pot file *fpath* and return a POFile instance. **Keyword arguments**: - *fpath*: string, full or relative path to the po/pot file to parse - *wrapwidth*: integer, the wrap width, only useful when -w option was passed to xgettext (optional, default...
5b72c6243b1389bfc8807cb9c9332502da07fe04 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9209/5b72c6243b1389bfc8807cb9c9332502da07fe04/polib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8275, 768, 12, 28900, 16, 2826, 4333, 4672, 3536, 735, 9080, 445, 716, 1109, 326, 8275, 19, 13130, 585, 380, 28900, 14, 471, 327, 279, 13803, 812, 791, 18, 225, 2826, 8736, 1775, 636, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8275, 768, 12, 28900, 16, 2826, 4333, 4672, 3536, 735, 9080, 445, 716, 1109, 326, 8275, 19, 13130, 585, 380, 28900, 14, 471, 327, 279, 13803, 812, 791, 18, 225, 2826, 8736, 1775, 636, ...
from schooltool.basicperson.person import BasicPerson
def createPerson(self, data): from schooltool.basicperson.person import BasicPerson person = BasicPerson(data['__name__'], data['first_name'], data['last_name']) self.applyData(person, data) return person
e866f69737046ff6dd0ad5d28cbc44e235fb6cb3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7127/e866f69737046ff6dd0ad5d28cbc44e235fb6cb3/importer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 8346, 12, 2890, 16, 501, 4672, 6175, 273, 7651, 8346, 12, 892, 3292, 972, 529, 972, 17337, 501, 3292, 3645, 67, 529, 17337, 501, 3292, 2722, 67, 529, 19486, 365, 18, 9010, 751, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 8346, 12, 2890, 16, 501, 4672, 6175, 273, 7651, 8346, 12, 892, 3292, 972, 529, 972, 17337, 501, 3292, 3645, 67, 529, 17337, 501, 3292, 2722, 67, 529, 19486, 365, 18, 9010, 751, 12...
self.__rows = rows self.__columns = columns
self.__rows = nrows self.__columns = ncols
def _(m = input_grid(2,2, default = [[1,7],[3,4]], label='M=', to_value=matrix), v = input_grid(2,1, default=[1,2], label='v=', to_value=matrix)): try: x = m\v html('$$%s %s = %s$$'%(latex(m), latex(x), latex(v))) except: html('There is no solution to $$%s x=%s$$'%(latex(m), latex(v)))
d309010c54ba9edf1e2bfc229ca66c5c4e85a709 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/d309010c54ba9edf1e2bfc229ca66c5c4e85a709/interact.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12, 81, 273, 810, 67, 5222, 12, 22, 16, 22, 16, 805, 273, 12167, 21, 16, 27, 6487, 63, 23, 16, 24, 65, 6487, 1433, 2218, 49, 33, 2187, 358, 67, 1132, 33, 5667, 3631, 331, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12, 81, 273, 810, 67, 5222, 12, 22, 16, 22, 16, 805, 273, 12167, 21, 16, 27, 6487, 63, 23, 16, 24, 65, 6487, 1433, 2218, 49, 33, 2187, 358, 67, 1132, 33, 5667, 3631, 331, 27...
if not self.hook("changegroup"):
if not self.hook("changegroup", node=hex(self.changelog.node(cor+1))): self.ui.warn("abort: changegroup hook returned failure!\n")
def revmap(x): return self.changelog.rev(x)
5bfe675dcfadeef7bc8562282f30b889984045b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/5bfe675dcfadeef7bc8562282f30b889984045b0/localrepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5588, 1458, 12, 92, 4672, 327, 365, 18, 24083, 12970, 18, 9083, 12, 92, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5588, 1458, 12, 92, 4672, 327, 365, 18, 24083, 12970, 18, 9083, 12, 92, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
return string.replace(val, '%USERPROFILE%', os.environ['USERPROFILE'])
out = ctypes.create_string_buffer(4096) indata = ctypes.create_string_buffer(val) bytes = ctypes.windll.kernel32.ExpandEnvironmentStringsA(indata,out,4093) return out.value
def doExpand(val): # We can't use os.path.expandvars because that handles only # $foo and ${foo}-style vars, while Windows is lobbing us # %FOO%-style expansions. So just handle the special case of # %USERPROFILE%, which is what we'll be dealing with under normal # circumstances. # .. If USERPROFILE isn't defined, we'r...
c80a4fa99544e1616bd94ccd13358a1eb891f62a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/c80a4fa99544e1616bd94ccd13358a1eb891f62a/platformcfg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 12271, 12, 1125, 4672, 468, 1660, 848, 1404, 999, 1140, 18, 803, 18, 12320, 4699, 2724, 716, 7372, 1338, 468, 271, 11351, 471, 3531, 11351, 14023, 4060, 4153, 16, 1323, 8202, 353, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 12271, 12, 1125, 4672, 468, 1660, 848, 1404, 999, 1140, 18, 803, 18, 12320, 4699, 2724, 716, 7372, 1338, 468, 271, 11351, 471, 3531, 11351, 14023, 4060, 4153, 16, 1323, 8202, 353, 4...
return paths_new, paths_edited, paths_stat
return files_new, files_edited, paths_stat
def attrs_equal(attrs, a, b): for attr in attrs: if getattr(a, attr) != getattr(b, attr): return False
429032fa7a0adc75619ec1c9f5d039321108985f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10616/429032fa7a0adc75619ec1c9f5d039321108985f/dirindex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3422, 67, 9729, 12, 7039, 16, 279, 16, 324, 4672, 364, 1604, 316, 3422, 30, 309, 3869, 12, 69, 16, 1604, 13, 480, 3869, 12, 70, 16, 1604, 4672, 327, 1083, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3422, 67, 9729, 12, 7039, 16, 279, 16, 324, 4672, 364, 1604, 316, 3422, 30, 309, 3869, 12, 69, 16, 1604, 13, 480, 3869, 12, 70, 16, 1604, 4672, 327, 1083, 2, -100, -100, -100, -100, ...
def _remove_empty_lines (text): """replace empty lines with lines of a single space. this works around a pango bug with wrong computation of line height for empty lines under cairo scales""" text = text.replace ("\n\n", "\n \n") if text.endswith ("\n"): text += " " return text
def _extents_intersect (ex1, ex2): if not ex1: return ex2 else: x1 = max (ex1[0], ex2[0]) y1 = max (ex1[1], ex2[1]) x2 = min (ex1[0] + ex1[2], ex2[0] + ex2[2]) y2 = min (ex1[1] + ex1[3], ex2[1] + ex2[3]) return [x1, y1, x2 - x1, y2 - y1]
9fd84fa983fd32c081c9edfb2a02c844f13b0d49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8139/9fd84fa983fd32c081c9edfb2a02c844f13b0d49/slippy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 408, 4877, 67, 12288, 261, 338, 21, 16, 431, 22, 4672, 225, 309, 486, 431, 21, 30, 327, 431, 22, 469, 30, 619, 21, 273, 943, 261, 338, 21, 63, 20, 6487, 431, 22, 63, 20, 571...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 408, 4877, 67, 12288, 261, 338, 21, 16, 431, 22, 4672, 225, 309, 486, 431, 21, 30, 327, 431, 22, 469, 30, 619, 21, 273, 943, 261, 338, 21, 63, 20, 6487, 431, 22, 63, 20, 571...
__slots__ = ["kind", "name", "tags"]
__slots__ = OpCode.__slots__ + ["kind", "name", "tags"]
def Summary(self): """Generates a summary description of this opcode.
4f05fd3bdb49a9f1628b9915afde3c0d83367f6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/4f05fd3bdb49a9f1628b9915afde3c0d83367f6d/opcodes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17967, 12, 2890, 4672, 3536, 6653, 279, 4916, 2477, 434, 333, 11396, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17967, 12, 2890, 4672, 3536, 6653, 279, 4916, 2477, 434, 333, 11396, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
'zh': u'User',
def __init__(self): family.Family.__init__(self) self.name = 'uncyclopedia'
5291e54d99c50e05679c62b06fbab03ab3f57e0d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/5291e54d99c50e05679c62b06fbab03ab3f57e0d/uncyclopedia_family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 551, 93, 7550, 1845, 1155, 11, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 6755, 18, 9203, 16186, 2738, 972, 12, 2890, 13, 365, 18, 529, 273, 296, 551, 93, 7550, 1845, 1155, 11, 2, -100, -100, -100, -100, -100, -100, -100, -10...
return UserBit.valid_objects().filter(user=self, verb__parent=GetNode("V/Flags/UserRole")).values_list('verb__name', flat=True).distinct()
retVal = UserBit.valid_objects().filter(user=self, verb__parent=GetNode("V/Flags/UserRole")).values_list('verb__name', flat=True).distinct() if len(retVal) == 0: UserBit.objects.create(user=self, verb=GetNode("V/Flags/UserRole/Student"), qsc=GetNode("Q")) retVal = UserBit.valid_objects().filter(user=self, verb__parent=...
def getUserTypes(self): """ Return the set of types for this user """ return UserBit.valid_objects().filter(user=self, verb__parent=GetNode("V/Flags/UserRole")).values_list('verb__name', flat=True).distinct()
40cab0a387734eb4ad9775bce01083b94af16030 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/40cab0a387734eb4ad9775bce01083b94af16030/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4735, 2016, 12, 2890, 4672, 3536, 2000, 326, 444, 434, 1953, 364, 333, 729, 3536, 12197, 273, 2177, 5775, 18, 877, 67, 6911, 7675, 2188, 12, 1355, 33, 2890, 16, 6405, 972, 2938, 33, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4735, 2016, 12, 2890, 4672, 3536, 2000, 326, 444, 434, 1953, 364, 333, 729, 3536, 12197, 273, 2177, 5775, 18, 877, 67, 6911, 7675, 2188, 12, 1355, 33, 2890, 16, 6405, 972, 2938, 33, 96...
temparray2 = Numeric.swapaxes(results,2,3) self.results = Numeric.swapaxes(temparray2,1,2)
temparray2 = Numeric.swapaxes(results[0],1,2) self.results = [ Numeric.swapaxes(temparray2,0,1) ] if unrestricted: temparray2 = Numeric.swapaxes(results[1],1,2) self.results.append(Numeric.swapaxes(temparray2, 0, 1))
def calculate(self, indices=None, fupdate=0.05): """Perform an overlap population analysis given the results of a parser""" if not self.parser.parsed: self.parser.parse()
d4434ccfe35e2e0e1bfff88951117695a1323233 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/d4434ccfe35e2e0e1bfff88951117695a1323233/opa.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 12, 2890, 16, 4295, 33, 7036, 16, 284, 2725, 33, 20, 18, 6260, 4672, 3536, 4990, 392, 7227, 11209, 6285, 864, 326, 1686, 434, 279, 2082, 8395, 225, 309, 486, 365, 18, 4288, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4604, 12, 2890, 16, 4295, 33, 7036, 16, 284, 2725, 33, 20, 18, 6260, 4672, 3536, 4990, 392, 7227, 11209, 6285, 864, 326, 1686, 434, 279, 2082, 8395, 225, 309, 486, 365, 18, 4288, 18, ...
for ts,_ in testSuiteCache.values()])
for ts,_ in testSuiteCache.values() if ts])
def main(): global options from optparse import OptionParser, OptionGroup parser = OptionParser("usage: %prog [options] {file-or-path}") parser.add_option("-j", "--threads", dest="numThreads", metavar="N", help="Number of testing threads", type=int, action="store", default=None) group = OptionGroup(parser, "Output Fo...
83410aa8c59837bafd2fcab76c33abd14e72b5c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6277/83410aa8c59837bafd2fcab76c33abd14e72b5c1/lit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 702, 628, 2153, 2670, 1930, 18862, 16, 2698, 1114, 2082, 273, 18862, 2932, 9167, 30, 738, 14654, 306, 2116, 65, 288, 768, 17, 280, 17, 803, 1532, 13, 225, 2082, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 702, 628, 2153, 2670, 1930, 18862, 16, 2698, 1114, 2082, 273, 18862, 2932, 9167, 30, 738, 14654, 306, 2116, 65, 288, 768, 17, 280, 17, 803, 1532, 13, 225, 2082, 18, ...
def _youtube_get_first_successful(info, current_url, urls, callback, title): if isinstance(info, httpclient.UnexpectedStatusCode): if info.code != 404: _youtube_errback(info, callback) return if len(urls) == 0: callback(None) return current_url, urls = urls[0], urls[1:] logging.debug("youtube download: trying %s", c...
def _youtube_get_first_successful(info, current_url, urls, callback, title): if isinstance(info, httpclient.UnexpectedStatusCode): if info.code != 404: _youtube_errback(info, callback) return if len(urls) == 0: callback(None) return current_url, urls = urls[0], urls[1:] logging.debug("youtube download: trying %s", c...
6ef78b0a872ee19d61d898e0f1e36c4c0b38a7bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/6ef78b0a872ee19d61d898e0f1e36c4c0b38a7bd/flashscraper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 31749, 67, 588, 67, 3645, 67, 18418, 12, 1376, 16, 783, 67, 718, 16, 6903, 16, 1348, 16, 2077, 4672, 309, 1549, 12, 1376, 16, 1062, 2625, 18, 7762, 14041, 4672, 309, 1123, 18, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 31749, 67, 588, 67, 3645, 67, 18418, 12, 1376, 16, 783, 67, 718, 16, 6903, 16, 1348, 16, 2077, 4672, 309, 1549, 12, 1376, 16, 1062, 2625, 18, 7762, 14041, 4672, 309, 1123, 18, 7...
inc_dir = base else: inc_dir = os.path.join(base, "Include") if not os.path.exists(inc_dir): inc_dir = os.path.join(os.path.dirname(base), "Include") return inc_dir
return base else: incdir = os.path.join(get_config_var('srcdir'), 'Include') return os.path.normpath(incdir)
def get_python_inc(plat_specific=0, prefix=None): """Return the directory containing installed Python header files. If 'plat_specific' is false (the default), this is the path to the non-platform-specific header files, i.e. Python.h and so on; otherwise, this is the path to platform-specific header files (namely pycon...
341b840382f386066571d3b6a6c0531bf68fc1ab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/341b840382f386066571d3b6a6c0531bf68fc1ab/sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8103, 67, 9523, 12, 412, 270, 67, 12524, 33, 20, 16, 1633, 33, 7036, 4672, 3536, 990, 326, 1867, 4191, 5876, 6600, 1446, 1390, 18, 225, 971, 296, 412, 270, 67, 12524, 11, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8103, 67, 9523, 12, 412, 270, 67, 12524, 33, 20, 16, 1633, 33, 7036, 4672, 3536, 990, 326, 1867, 4191, 5876, 6600, 1446, 1390, 18, 225, 971, 296, 412, 270, 67, 12524, 11, 35...
bss.anisotropic_scaling=save_bss_anisotropic_scaling
assert save_bss_anisotropic_scaling is not None bss.anisotropic_scaling = save_bss_anisotropic_scaling bss.minimization_b_cart = save_bss_anisotropic_scaling
def __init__(self, fmodel, selections = None, params = None, r_initial = None, t_initial = None, bss = None, log = None, monitors = None): global time_rigid_body_total self.params = params if(params is None): self.params = fmodel_from_xray_structure_master_params.extract() save_original_target_nam...
a1286dfa760c61de0eaae982b0edee6f39281e3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/a1286dfa760c61de0eaae982b0edee6f39281e3d/rigid_body.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 284, 2284, 16, 21738, 273, 599, 16, 859, 377, 273, 599, 16, 436, 67, 6769, 225, 273, 599, 16, 268, 67, 6769, 225, 273, 599, 16, 324, 1049, 3639, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 284, 2284, 16, 21738, 273, 599, 16, 859, 377, 273, 599, 16, 436, 67, 6769, 225, 273, 599, 16, 268, 67, 6769, 225, 273, 599, 16, 324, 1049, 3639, 273, ...
del req.args['owner']
del req.args['field_owner']
def process_newticket_request(self, req): req.perm.require('TICKET_CREATE') data = {} db = self.env.get_db_cnx()
daeaacb4a8d7e14bcd4491b18a83e37c26c94ecb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/daeaacb4a8d7e14bcd4491b18a83e37c26c94ecb/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2704, 16282, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 6528, 2668, 56, 16656, 1584, 67, 9344, 6134, 501, 273, 2618, 1319, 273, 365, 18, 3074, 18, 588, 67, 1966...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2704, 16282, 67, 2293, 12, 2890, 16, 1111, 4672, 1111, 18, 12160, 18, 6528, 2668, 56, 16656, 1584, 67, 9344, 6134, 501, 273, 2618, 1319, 273, 365, 18, 3074, 18, 588, 67, 1966...
sage: print "Test finished !" Test finished ! TESTS::
ValueError: algorithm must be either 'backtrack' or 'MILP'
def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``.
815c98d316de2356ea416011f877811bcf39fae3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/815c98d316de2356ea416011f877811bcf39fae3/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 273, 599, 16, 268, 273, 599, 16, 13747, 273, 1083, 16, 4886, 273, 315, 49, 2627, 52, 3113, 12776, 273, 599, 16, 3988, 273, 374, 4672, 436, 8395, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 273, 599, 16, 268, 273, 599, 16, 13747, 273, 1083, 16, 4886, 273, 315, 49, 2627, 52, 3113, 12776, 273, 599, 16, 3988, 273, 374, 4672, 436, 8395, 28...
setup(name = 'poly2d',
setup(
def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('poly2d', parent_package, top_path, package_path =_root_dir) # -- Add `_poly2d` extension module. src_files = ['_poly2d.pyx'] src_files = [join(_src_dir, f) for f in src_files] config.add_ex...
534425c7c4b52e8df589df54c5158e3288dad5f2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14911/534425c7c4b52e8df589df54c5158e3288dad5f2/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1664, 12, 2938, 67, 5610, 2218, 2187, 1760, 67, 803, 33, 7036, 4672, 628, 3972, 18, 4413, 5471, 18, 23667, 67, 1367, 1930, 4659, 225, 642, 273, 4659, 2668, 16353, 22, 72, 2187, 982, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1664, 12, 2938, 67, 5610, 2218, 2187, 1760, 67, 803, 33, 7036, 4672, 628, 3972, 18, 4413, 5471, 18, 23667, 67, 1367, 1930, 4659, 225, 642, 273, 4659, 2668, 16353, 22, 72, 2187, 982, 67...
return S_ERROR( error)
return S_ERROR( error )
def configureCE( ceName='',ceType='', cfg=None, currentSectionPath='' ): """ Produce new dirac.cfg including configuration for new CE """ from DIRAC.Resources.Computing.ComputingElementFactory import ComputingElementFactory from DIRAC.Resources.Computing.ComputingElement import getLocalCEConfigDict from DIR...
9cd965a8f6afefefa23e4aaa683056b6432068d8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9cd965a8f6afefefa23e4aaa683056b6432068d8/InstallTools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 1441, 12, 5898, 461, 2218, 2187, 311, 559, 2218, 2187, 2776, 33, 7036, 16, 783, 5285, 743, 2218, 11, 262, 30, 3536, 23278, 394, 4314, 8836, 18, 7066, 6508, 1664, 364, 394, 29538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5068, 1441, 12, 5898, 461, 2218, 2187, 311, 559, 2218, 2187, 2776, 33, 7036, 16, 783, 5285, 743, 2218, 11, 262, 30, 3536, 23278, 394, 4314, 8836, 18, 7066, 6508, 1664, 364, 394, 29538, ...
print action, request
def __call__(self, environ, start_response): from webob import Request request = Request(environ)
ea9db19fdf3a98a72b6d1592c5a6f400959ee52c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4277/ea9db19fdf3a98a72b6d1592c5a6f400959ee52c/snakeroutes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 628, 3311, 947, 1930, 1567, 590, 273, 1567, 12, 28684, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 628, 3311, 947, 1930, 1567, 590, 273, 1567, 12, 28684, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.assertEqual(self.done.get(True, 1), 'DONE') self.assertEqual(self.done.get(True, 1), 'DONE') self.assertEqual(self.done.get(True, 1), 'DONE') self.assertEqual(self.done.get(True, 1), 'DONE')
self._waitThreads() for i in range(4): self.failUnlessEqual(self.done.get_nowait(), 'DONE')
def testConcurrentRemove(self): self.ls.add('four') self.ls.acquire(['one', 'two', 'four']) Thread(target=self._doLockSet, args=(['one', 'four'], 0)).start() Thread(target=self._doLockSet, args=(['one', 'four'], 1)).start() Thread(target=self._doLockSet, args=(['one', 'two'], 0)).start() Thread(target=self._doLockSet, ...
4607c978b8f973b63c49547f1b8d6061fdbd78d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/4607c978b8f973b63c49547f1b8d6061fdbd78d3/ganeti.locking_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 18521, 3288, 12, 2890, 4672, 365, 18, 3251, 18, 1289, 2668, 74, 477, 6134, 365, 18, 3251, 18, 1077, 1039, 12, 3292, 476, 2187, 296, 15415, 2187, 296, 74, 477, 19486, 4884, 12, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 18521, 3288, 12, 2890, 4672, 365, 18, 3251, 18, 1289, 2668, 74, 477, 6134, 365, 18, 3251, 18, 1077, 1039, 12, 3292, 476, 2187, 296, 15415, 2187, 296, 74, 477, 19486, 4884, 12, 32...
g = self.__class__(s, self._mangle_from_, self.__maxheaderlen)
g = self.clone(s)
def _handle_message(self, msg): s = StringIO() g = self.__class__(s, self._mangle_from_, self.__maxheaderlen) # The payload of a message/rfc822 part should be a multipart sequence # of length 1. The zeroth element of the list should be the Message # object for the subpart.Extract that object, stringify it, and write #...
ee084c72c49e60af052e272006f74cb07fc13eb2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ee084c72c49e60af052e272006f74cb07fc13eb2/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 2150, 12, 2890, 16, 1234, 4672, 272, 273, 15777, 1435, 314, 273, 365, 18, 14056, 12, 87, 13, 468, 1021, 2385, 434, 279, 883, 19, 16784, 24532, 1087, 1410, 506, 279, 1026...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4110, 67, 2150, 12, 2890, 16, 1234, 4672, 272, 273, 15777, 1435, 314, 273, 365, 18, 14056, 12, 87, 13, 468, 1021, 2385, 434, 279, 883, 19, 16784, 24532, 1087, 1410, 506, 279, 1026...
self.WriteConf()
self.changed = True
def ChangeParent(self, name, parent): """ Change keyword's parent """ try: self.keywords[parent] self.keywords[name]["parent"] = parent except KeyError, e: raise exceptions.BadArgumentError("The keyword %s doesn't exist on this system." % str(e)) self.WriteConf()
79be33ad35e5abf9b9e98709a8fa8bad16c9097b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/79be33ad35e5abf9b9e98709a8fa8bad16c9097b/keywords.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7576, 3054, 12, 2890, 16, 508, 16, 982, 4672, 3536, 7576, 4932, 1807, 982, 3536, 775, 30, 365, 18, 11771, 63, 2938, 65, 365, 18, 11771, 63, 529, 6362, 6, 2938, 11929, 273, 982, 1335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7576, 3054, 12, 2890, 16, 508, 16, 982, 4672, 3536, 7576, 4932, 1807, 982, 3536, 775, 30, 365, 18, 11771, 63, 2938, 65, 365, 18, 11771, 63, 529, 6362, 6, 2938, 11929, 273, 982, 1335, ...
replacements.append(arg) if source == None or len(replacements) != 2:
commandline_replacements.append(arg) if source == None:
def generator(source, old, regex, textfilename = None, sqlfilename = None): if source == 'sqldump': for pl in read_pages_from_sql_dump(sqlfilename, old, regex): yield pl elif source == 'textfile': for pl in read_pages_from_text_file(textfilename, old, regex): yield pl
d3596dc42562932cbc3b84fdd463983c3a41dcb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/d3596dc42562932cbc3b84fdd463983c3a41dcb7/replace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4456, 12, 3168, 16, 1592, 16, 3936, 16, 977, 3459, 273, 599, 16, 1847, 3459, 273, 599, 4672, 309, 1084, 422, 296, 4669, 8481, 4278, 364, 886, 316, 855, 67, 7267, 67, 2080, 67, 4669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4456, 12, 3168, 16, 1592, 16, 3936, 16, 977, 3459, 273, 599, 16, 1847, 3459, 273, 599, 4672, 309, 1084, 422, 296, 4669, 8481, 4278, 364, 886, 316, 855, 67, 7267, 67, 2080, 67, 4669, ...
self.parent_dir(None)
self.browse_parent_dir(None)
def topwindow_keypress(self, widget, event): shortcut = gtk.accelerator_name(event.keyval, event.state) shortcut = shortcut.replace("<Mod2>", "") # These shortcuts were moved here so that they don't # interfere with searching the library if shortcut == 'BackSpace': self.parent_dir(None) elif shortcut == 'Escape': if se...
ef335bb5758783289bea4a5b77282ae0c87d687a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/ef335bb5758783289bea4a5b77282ae0c87d687a/sonata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1760, 5668, 67, 856, 1028, 12, 2890, 16, 3604, 16, 871, 4672, 10995, 273, 22718, 18, 30737, 7385, 67, 529, 12, 2575, 18, 856, 1125, 16, 871, 18, 2019, 13, 10995, 273, 10995, 18, 2079, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1760, 5668, 67, 856, 1028, 12, 2890, 16, 3604, 16, 871, 4672, 10995, 273, 22718, 18, 30737, 7385, 67, 529, 12, 2575, 18, 856, 1125, 16, 871, 18, 2019, 13, 10995, 273, 10995, 18, 2079, ...
self.calendarColor = Styles.ColorStyle(self.itsView)
hueList = [k/360.0 for k in [210, 120, 60, 0, 240, 90, 330, 30, 180, 270]] @classmethod def getNextHue(cls, oldhue): """ returns the next hue following the one passed in For example, f.hue = nextHue(f.hue) """ found = False for hue in cls.hueList: if found: return hue if hue == oldhue: found = True return cls.hueLis...
def __init__(self, *args, **keywords): super(CalendarData, self).__init__(*args, **keywords) self.calendarColor = Styles.ColorStyle(self.itsView)
25ddad0361cdcff8c6c9b1849cc3d6061261e934 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/25ddad0361cdcff8c6c9b1849cc3d6061261e934/CalendarCanvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 11771, 4672, 2240, 12, 7335, 751, 16, 365, 2934, 972, 2738, 972, 30857, 1968, 16, 2826, 11771, 13, 282, 16846, 682, 273, 306, 79, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 11771, 4672, 2240, 12, 7335, 751, 16, 365, 2934, 972, 2738, 972, 30857, 1968, 16, 2826, 11771, 13, 282, 16846, 682, 273, 306, 79, 19...
S[:,:,j] = num.dot(V, dot(diag(D), V.T ))
S[:,:,j] = num.dot(V, num.dot(num.diag(D), V.T ))
def trysplit(ellipses,i,isdone,L,dfore): if DEBUG: print 'trying to split target i=%d: '%i if DEBUG: print str(ellipses[i]) # get datapoints (r,c) = num.where(L==i+1) x = num.hstack((c.reshape(c.size,1),r.reshape(r.size,1))) w = dfore[L==i+1] ndata = r.size ## try increasing threshold # get a bounding box around L ...
e7bd804077e11ab23fcc662b8ba169e169bc8bfc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2711/e7bd804077e11ab23fcc662b8ba169e169bc8bfc/estconncomps.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 775, 4939, 12, 292, 11693, 281, 16, 77, 16, 291, 8734, 16, 48, 16, 72, 1405, 4672, 225, 309, 6369, 30, 1172, 296, 698, 310, 358, 1416, 1018, 277, 5095, 72, 30, 1995, 77, 309, 6369, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 775, 4939, 12, 292, 11693, 281, 16, 77, 16, 291, 8734, 16, 48, 16, 72, 1405, 4672, 225, 309, 6369, 30, 1172, 296, 698, 310, 358, 1416, 1018, 277, 5095, 72, 30, 1995, 77, 309, 6369, ...
marginalia = '&nbsp;' * width
marginalia = '<tt>' + '&nbsp;' * width + '</tt>'
def section(self, title, fgcol, bgcol, contents, width=20, prelude='', marginalia=None, gap='&nbsp;&nbsp;'): """Format a section with a heading.""" if marginalia is None: marginalia = '&nbsp;' * width result = '''
af4215be4e43ddf4f8775f622d9db3233f712894 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/af4215be4e43ddf4f8775f622d9db3233f712894/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2442, 12, 2890, 16, 2077, 16, 10186, 1293, 16, 7611, 1293, 16, 2939, 16, 1835, 33, 3462, 16, 675, 80, 1317, 2218, 2187, 26533, 1155, 33, 7036, 16, 9300, 2218, 10, 10600, 23480, 10600, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2442, 12, 2890, 16, 2077, 16, 10186, 1293, 16, 7611, 1293, 16, 2939, 16, 1835, 33, 3462, 16, 675, 80, 1317, 2218, 2187, 26533, 1155, 33, 7036, 16, 9300, 2218, 10, 10600, 23480, 10600, ...
txt = new_doc.createTextNode(str(line[f] or ''))
col.text = line[f] or ''
def _append_node(name, text): n = new_doc.createElement(name) t = new_doc.createTextNode(text) n.appendChild(t) config.appendChild(n)
32aa89f603ce93d4388ce6f049f482862969ced9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/32aa89f603ce93d4388ce6f049f482862969ced9/custom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6923, 67, 2159, 12, 529, 16, 977, 4672, 290, 273, 394, 67, 2434, 18, 2640, 1046, 12, 529, 13, 268, 273, 394, 67, 2434, 18, 2640, 17299, 12, 955, 13, 290, 18, 6923, 1763, 12, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6923, 67, 2159, 12, 529, 16, 977, 4672, 290, 273, 394, 67, 2434, 18, 2640, 1046, 12, 529, 13, 268, 273, 394, 67, 2434, 18, 2640, 17299, 12, 955, 13, 290, 18, 6923, 1763, 12, 8...
"Return the column number where the current event ends." return -1
"Return the column number where the current event ends." return -1
def getColumnNumber(self):
27c75fe806fd4e5fcdccb398bd43691a6d25d3ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/27c75fe806fd4e5fcdccb398bd43691a6d25d3ca/xmlreader.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6716, 1854, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6716, 1854, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def submitted(self): if not self.available(): return False form = self.form name = "%s.%s" % (form.prefix, self.__name__) return name in form.request.form
def available(self): condition = self.condition return (condition is None) or condition(self.form, self)
b454136ef456c884ae4bf11b3f8d29e8bd8fd1f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9642/b454136ef456c884ae4bf11b3f8d29e8bd8fd1f1/form.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2319, 12, 2890, 4672, 2269, 273, 365, 18, 4175, 327, 261, 4175, 353, 599, 13, 578, 2269, 12, 2890, 18, 687, 16, 365, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2319, 12, 2890, 4672, 2269, 273, 365, 18, 4175, 327, 261, 4175, 353, 599, 13, 578, 2269, 12, 2890, 18, 687, 16, 365, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def setParseAction( self, fn ):
def setParseAction( self, *fns ):
def setParseAction( self, fn ): """Define action to perform when successfully matching parse element definition. Parse action fn is a callable method with the arguments (s, loc, toks) where: - s = the original string being parsed - loc = the location of the matching substring - toks = a list of the matched tokens, pa...
0d5c070900efe583f55b5d4d6525eb2686936701 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12364/0d5c070900efe583f55b5d4d6525eb2686936701/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 3201, 1803, 12, 365, 16, 380, 74, 2387, 262, 30, 3536, 11644, 1301, 358, 3073, 1347, 4985, 3607, 1109, 930, 2379, 18, 2884, 1301, 2295, 353, 279, 4140, 707, 598, 326, 1775, 261, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 3201, 1803, 12, 365, 16, 380, 74, 2387, 262, 30, 3536, 11644, 1301, 358, 3073, 1347, 4985, 3607, 1109, 930, 2379, 18, 2884, 1301, 2295, 353, 279, 4140, 707, 598, 326, 1775, 261, 8...
contents = '' for item in funcs: contents = contents + self.document(item, fdict, cdict)
contents = [] for key, value in funcs: contents.append(self.document(value, key, fdict, cdict))
def docmodule(self, object): """Produce HTML documentation for a module object.""" name = object.__name__ parts = split(name, '.') links = [] for i in range(len(parts)-1): links.append( '<a href="%s.html"><font color="#ffffff">%s</font></a>' % (join(parts[:i+1], '.'), parts[i])) linkedname = join(links + parts[-1:], '....
a8b37d1a3238fb85be760a30db03672525e8f591 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a8b37d1a3238fb85be760a30db03672525e8f591/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 4672, 3536, 25884, 3982, 7323, 364, 279, 1605, 733, 12123, 508, 273, 733, 16186, 529, 972, 2140, 273, 1416, 12, 529, 16, 2611, 13, 4716, 273, 5378, 364, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 2978, 12, 2890, 16, 733, 4672, 3536, 25884, 3982, 7323, 364, 279, 1605, 733, 12123, 508, 273, 733, 16186, 529, 972, 2140, 273, 1416, 12, 529, 16, 2611, 13, 4716, 273, 5378, 364, 2...
"friendlyName": "Dell PERC 5/i Integrated Controller 3 Firmware",
"displayname": "Dell PERC 5/i Integrated Controller 3 Firmware",
def testSvm_multiPkg(self): import firmware_addon_dell.svm as svm expectedResult = [ {"name": "pci_firmware(ven_0x1028_dev_0x0015_subven_0x1028_subdev_0x1f03)", "friendlyName": "Dell PERC 5/i Integrated Controller 1 Firmware", "pciDbdf": (0, 2, 0x14, 0)}, {"name": "pci_firmware(ven_0x1028_dev_0x0016)", "friendlyName": ...
606d28562261464d563e0ba692d958783d6ffc7f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/36/606d28562261464d563e0ba692d958783d6ffc7f/testSvm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 55, 3489, 67, 7027, 11264, 12, 2890, 4672, 1930, 22820, 67, 24390, 67, 72, 1165, 18, 87, 3489, 487, 272, 3489, 2665, 1253, 273, 306, 12528, 529, 6877, 315, 2436, 77, 67, 24403, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 55, 3489, 67, 7027, 11264, 12, 2890, 4672, 1930, 22820, 67, 24390, 67, 72, 1165, 18, 87, 3489, 487, 272, 3489, 2665, 1253, 273, 306, 12528, 529, 6877, 315, 2436, 77, 67, 24403, 1...
\item \sage tries to convert $x$ into a \class{RealIntervalField}. The floors of the endpoints are computed. If they are the same, then that value is returned. Otherwise, the precision of the \class{RealIntervalField} is increased until they do match up or it reaches \code{maximum_bits} of precision.
\item \sage tries to convert $x$ into a \class{RealIntervalField} with 53 bits of precision. Next, the floors of the endpoints are computed. If they are the same, then that value is returned. Otherwise, the precision of the \class{RealIntervalField} is increased until they do match up or it reaches \code{maximum_bits...
def __call__(self, x, maximum_bits=20000): try: return x.ceil() except AttributeError: if isinstance(x, (float, int, long, complex)): return Integer(int(math.ceil(x)))
2cf36cd065e0c14848cc191fb4e60967c101792f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2cf36cd065e0c14848cc191fb4e60967c101792f/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 16, 4207, 67, 6789, 33, 22, 2787, 4672, 775, 30, 327, 619, 18, 311, 330, 1435, 1335, 6394, 30, 309, 1549, 12, 92, 16, 261, 5659, 16, 509, 16, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 16, 4207, 67, 6789, 33, 22, 2787, 4672, 775, 30, 327, 619, 18, 311, 330, 1435, 1335, 6394, 30, 309, 1549, 12, 92, 16, 261, 5659, 16, 509, 16, 15...
self.pageSection % ('Word query', self.wordQuery)+ self.pageSection % ('Train', self.train))
self.pageSection % ('Train', self.train)+ self.pageSection % ('Classify a message', self.classify)+ self.pageSection % ('Word query', self.wordQuery))
def onHome(self, params): """Serve up the homepage.""" body = (self.pageSection % ('Status', self.summary % status.__dict__)+ self.pageSection % ('Word query', self.wordQuery)+ self.pageSection % ('Train', self.train)) self.push(body)
bb67db5e2dc016a7be764205cf241b78d334ff9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/bb67db5e2dc016a7be764205cf241b78d334ff9b/pop3proxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 8684, 12, 2890, 16, 859, 4672, 3536, 14350, 731, 326, 30815, 12123, 1417, 273, 261, 2890, 18, 2433, 5285, 738, 7707, 1482, 2187, 365, 18, 7687, 738, 1267, 16186, 1576, 972, 27921, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 8684, 12, 2890, 16, 859, 4672, 3536, 14350, 731, 326, 30815, 12123, 1417, 273, 261, 2890, 18, 2433, 5285, 738, 7707, 1482, 2187, 365, 18, 7687, 738, 1267, 16186, 1576, 972, 27921, 3...
currentData = ''.join(self.currentData)
currentData = ''.join(str(self.currentData))
def endData(self, containerClass=NavigableString): if self.currentData: currentData = ''.join(self.currentData) if currentData.endswith('<') and self.convertHTMLEntities: currentData = currentData[:-1] + '&lt;' if not currentData.strip(): if '\n' in currentData: currentData = '\n' else: currentData = ' ' self.currentDa...
cdbfc869714001c09ab27ccac7074328724b6865 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8598/cdbfc869714001c09ab27ccac7074328724b6865/BeautifulSoup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 751, 12, 2890, 16, 1478, 797, 33, 50, 4911, 429, 780, 4672, 309, 365, 18, 2972, 751, 30, 30685, 273, 875, 18, 5701, 12, 701, 12, 2890, 18, 2972, 751, 3719, 309, 30685, 18, 5839,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 751, 12, 2890, 16, 1478, 797, 33, 50, 4911, 429, 780, 4672, 309, 365, 18, 2972, 751, 30, 30685, 273, 875, 18, 5701, 12, 701, 12, 2890, 18, 2972, 751, 3719, 309, 30685, 18, 5839,...
HHGate2D.className_ = _moose.cvar.HHGate2D_className_
def getType(*args): """getType(self) -> string""" return _moose.HHGate2D_getType(*args)
1961c35f540060f41023dcf804a850794a39f350 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2961/1961c35f540060f41023dcf804a850794a39f350/moose.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3130, 30857, 1968, 4672, 3536, 588, 559, 12, 2890, 13, 317, 533, 8395, 327, 389, 8683, 2584, 18, 17500, 13215, 22, 40, 67, 588, 559, 30857, 1968, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3130, 30857, 1968, 4672, 3536, 588, 559, 12, 2890, 13, 317, 533, 8395, 327, 389, 8683, 2584, 18, 17500, 13215, 22, 40, 67, 588, 559, 30857, 1968, 13, 2, -100, -100, -100, -100, -100, -...
chance = chance * -1
chance = 0
def getexceptionalchance(self, player, arguments): if not self.skills.has_key(BOWCRAFT): return False
d3a229f3927dfab3f902c94177d231927ef4e830 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/d3a229f3927dfab3f902c94177d231927ef4e830/bowcraft.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4064, 287, 343, 1359, 12, 2890, 16, 7291, 16, 1775, 4672, 309, 486, 365, 18, 7771, 737, 87, 18, 5332, 67, 856, 12, 5315, 59, 39, 2849, 4464, 4672, 327, 1083, 2, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 4064, 287, 343, 1359, 12, 2890, 16, 7291, 16, 1775, 4672, 309, 486, 365, 18, 7771, 737, 87, 18, 5332, 67, 856, 12, 5315, 59, 39, 2849, 4464, 4672, 327, 1083, 2, -100, -100, -100...
def __init__(self,input_handler):
def __init__(self):
def __init__(self,input_handler): Widget.__init__(self) self.input_handler=input_handler self.win=None
15c8f8c34c52496d37a8a99389c07ba9fa01e1df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12768/15c8f8c34c52496d37a8a99389c07ba9fa01e1df/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 11103, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2630, 67, 4176, 33, 2630, 67, 4176, 365, 18, 8082, 33, 7036, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 11103, 16186, 2738, 972, 12, 2890, 13, 365, 18, 2630, 67, 4176, 33, 2630, 67, 4176, 365, 18, 8082, 33, 7036, 225, 2, -100, -100, -100, -100, -100, -100...
self._completeDelayedCallback = FrameDelayedCallback(
self._completeDelayedCallback = FrameDelayedCall(
def sendEvent(): messenger.send(self.getAllInterestsCompleteEvent()) for callback in self._allInterestsCompleteCallbacks: callback() self._allInterestsCompleteCallbacks = []
5f779fa12ecab28126e191fe82db1852c6112cbf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/5f779fa12ecab28126e191fe82db1852c6112cbf/DoInterestManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 1133, 13332, 31086, 18, 4661, 12, 2890, 18, 588, 1595, 2465, 25563, 6322, 1133, 10756, 364, 1348, 316, 365, 6315, 454, 2465, 25563, 6322, 10617, 30, 1348, 1435, 365, 6315, 454, 2465,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 1133, 13332, 31086, 18, 4661, 12, 2890, 18, 588, 1595, 2465, 25563, 6322, 1133, 10756, 364, 1348, 316, 365, 6315, 454, 2465, 25563, 6322, 10617, 30, 1348, 1435, 365, 6315, 454, 2465,...
self.targets[tag['name']] = tb
self.targets[tag[key]] = tb
def parse_tag(self, tag, parent_css): try: tagname = tag.name.lower() except AttributeError: if not isinstance(tag, HTMLConverter.IGNORED_TAGS): self.add_text(tag, parent_css) return tag_css = self.tag_css(tag, parent_css=parent_css) try: # Skip element if its display attribute is set to none if tag_css['display'].lowe...
b6075d3dd6c27ae601bd9acb1970998212e8ed19 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/b6075d3dd6c27ae601bd9acb1970998212e8ed19/convert_from.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2692, 12, 2890, 16, 1047, 16, 982, 67, 5212, 4672, 775, 30, 25586, 273, 1047, 18, 529, 18, 8167, 1435, 1335, 6394, 30, 309, 486, 1549, 12, 2692, 16, 3982, 5072, 18, 3047, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2692, 12, 2890, 16, 1047, 16, 982, 67, 5212, 4672, 775, 30, 25586, 273, 1047, 18, 529, 18, 8167, 1435, 1335, 6394, 30, 309, 486, 1549, 12, 2692, 16, 3982, 5072, 18, 3047, 3...
dict[meth_name] = Function(fullmodule, meth_name, file, lineno)
dict[meth_name] = Function(fullmodule, meth_name, fname, lineno)
def _readmodule(module, path, inpackage=None): '''Do the hard work for readmodule[_ex].''' # Compute the full module name (prepending inpackage if set) if inpackage: fullmodule = "%s.%s" % (inpackage, module) else: fullmodule = module # Check in the cache if fullmodule in _modules: return _modules[fullmodule] # Initi...
7d4cac5de777aad61727f6a068b3c392bb76f3e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/7d4cac5de777aad61727f6a068b3c392bb76f3e3/pyclbr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 2978, 12, 2978, 16, 589, 16, 316, 5610, 33, 7036, 4672, 9163, 3244, 326, 7877, 1440, 364, 855, 2978, 63, 67, 338, 65, 1093, 6309, 468, 8155, 326, 1983, 1605, 508, 261, 1484, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 2978, 12, 2978, 16, 589, 16, 316, 5610, 33, 7036, 4672, 9163, 3244, 326, 7877, 1440, 364, 855, 2978, 63, 67, 338, 65, 1093, 6309, 468, 8155, 326, 1983, 1605, 508, 261, 1484, ...
def ssh_command(self, connect_timeout=30):
def ssh_command(self, connect_timeout=30, options=''):
def ssh_command(self, connect_timeout=30): """Construct an ssh command with proper args for this host.""" ssh = self.ssh_base_command(connect_timeout) return r'%s -l %s -p %d %s' % (ssh, self.user, self.port, self.hostname)
1e2ce83a87cd61c21ae5660a0769f5db77e32ddc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/1e2ce83a87cd61c21ae5660a0769f5db77e32ddc/ssh_host.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7056, 67, 3076, 12, 2890, 16, 3077, 67, 4538, 33, 5082, 16, 702, 2218, 11, 4672, 3536, 7249, 392, 7056, 1296, 598, 5338, 833, 364, 333, 1479, 12123, 7056, 273, 365, 18, 10975, 67, 1969...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7056, 67, 3076, 12, 2890, 16, 3077, 67, 4538, 33, 5082, 16, 702, 2218, 11, 4672, 3536, 7249, 392, 7056, 1296, 598, 5338, 833, 364, 333, 1479, 12123, 7056, 273, 365, 18, 10975, 67, 1969...
Seq('AAACACAC', Alphabet()) """ records = [] for record in fasta_multi(filename): records.append(record) return records
Seq('AAACACAC', SingleLetterAlphabet()) """ return list(SeqIO.parse(open_file(filename), format="fasta"))
def fasta_readrecords(filename=None): """ >>> records = fasta_readrecords('GFF/multi.fna') >>> records[0].id 'test1' >>> records[2].seq Seq('AAACACAC', Alphabet()) """ records = [] for record in fasta_multi(filename): records.append(record) return records
8f2d18c8dacb0d43fdf0329c0285ee23c561a67b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7167/8f2d18c8dacb0d43fdf0329c0285ee23c561a67b/easy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13104, 67, 896, 7094, 12, 3459, 33, 7036, 4672, 3536, 4080, 3853, 273, 13104, 67, 896, 7094, 2668, 43, 2246, 19, 7027, 18, 4293, 69, 6134, 4080, 3853, 63, 20, 8009, 350, 296, 3813, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13104, 67, 896, 7094, 12, 3459, 33, 7036, 4672, 3536, 4080, 3853, 273, 13104, 67, 896, 7094, 2668, 43, 2246, 19, 7027, 18, 4293, 69, 6134, 4080, 3853, 63, 20, 8009, 350, 296, 3813, 21,...
if isinstance(right, basestring): ids2 = [x[0] for x in field_obj.name_search(cr, uid, right, [], operator, limit=None)] else: ids2 = list(right) if not ids2: self.__exp[i] = ('id', '=', '0') else: self.__exp[i] = ('id', 'in', self.__execute_recursive_in(cr, field._fields_id, field_obj._table, 'id', ids2))
call_null = True if right: if isinstance(right, basestring): ids2 = [x[0] for x in field_obj.name_search(cr, uid, right, [], operator, limit=None)] operator = 'in' else: if not isinstance(right,list): ids2 = [right] else: ids2 = right if not ids2: call_null = True operator = 'in' else: call_null = False o2m_op = 'in' ...
def rg(ids, table, parent): if not ids: return [] ids2 = table.search(cr, uid, [(parent, 'in', ids)], context=context) return ids + rg(ids2, table, parent)
029c8f62598eeeb99bfb23ba2cb398a6ef5dfd95 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/029c8f62598eeeb99bfb23ba2cb398a6ef5dfd95/expression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14524, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 3353, 16, 4555, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, 13, 6487, 819...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14524, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 3353, 16, 4555, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, 13, 6487, 819...
def set_add_view_expr(gscontext):
def set_add_view_expr(context):
def set_add_view_expr(gscontext): # in Plone 4, the Action Letter FTI needs to have the add_view_expr set. if HAS_PLONE40: ttool = getToolByName(gscontext, 'portal_types') ttool['Action Letter']._updateProperty( 'add_view_expr', 'string:${folder_url}/+/addActionLetter' )
b5e0465b66cb74dcf90fa2948ddaccfafd508bdd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10584/b5e0465b66cb74dcf90fa2948ddaccfafd508bdd/setuphandlers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 1289, 67, 1945, 67, 8638, 12, 2472, 4672, 468, 316, 3008, 476, 1059, 16, 326, 4382, 10559, 387, 478, 23240, 4260, 358, 1240, 326, 527, 67, 1945, 67, 8638, 444, 18, 309, 21641,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 1289, 67, 1945, 67, 8638, 12, 2472, 4672, 468, 316, 3008, 476, 1059, 16, 326, 4382, 10559, 387, 478, 23240, 4260, 358, 1240, 326, 527, 67, 1945, 67, 8638, 444, 18, 309, 21641,...
return self.eigVectors[:nPCs]
return MA.take(self.eigVectors, range(nPCs), axis=1)
def getEigVectors(self, nPCs = None, varianceExplained = None): if not self.data: return None self.compute() nPCs = self.getCount(nPCs, varianceExplained) return self.eigVectors[:nPCs]
18586f4d56a41156c51a8dbdbbe000463c34e3b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6366/18586f4d56a41156c51a8dbdbbe000463c34e3b7/orngDimReduction.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4774, 360, 21680, 12, 2890, 16, 290, 3513, 87, 273, 599, 16, 12380, 424, 7446, 329, 273, 599, 4672, 309, 486, 365, 18, 892, 30, 327, 599, 365, 18, 9200, 1435, 225, 290, 3513, 87, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4774, 360, 21680, 12, 2890, 16, 290, 3513, 87, 273, 599, 16, 12380, 424, 7446, 329, 273, 599, 4672, 309, 486, 365, 18, 892, 30, 327, 599, 365, 18, 9200, 1435, 225, 290, 3513, 87, 273...
t.lineno += t.value.count('\n')
t.lexer.lineno += t.value.count('\n')
def t_CPPDIRECTIVE(t): r'^\#[^\#].*\n' t.lineno += t.value.count('\n') return t
afeef4c0622dd3b0d90a8446c97b6671679c1a82 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7385/afeef4c0622dd3b0d90a8446c97b6671679c1a82/isa_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 67, 4258, 52, 17541, 5354, 12, 88, 4672, 436, 11, 17134, 7, 15441, 7, 65, 4509, 64, 82, 11, 268, 18, 31731, 18, 17782, 1011, 268, 18, 1132, 18, 1883, 2668, 64, 82, 6134, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 67, 4258, 52, 17541, 5354, 12, 88, 4672, 436, 11, 17134, 7, 15441, 7, 65, 4509, 64, 82, 11, 268, 18, 31731, 18, 17782, 1011, 268, 18, 1132, 18, 1883, 2668, 64, 82, 6134, 327, ...
expr = re.compile(r'(\s*[%s]+\.)|(\s*[0-9]+\.)|(\s*[0-9]+\s+)' % letters).match):
expr = re.compile(r'(\s*[%s]\.)|(\s*[0-9]+\.)|(\s*[0-9]+\s+)' % letters).match):
def doc_numbered( self, paragraph, expr = re.compile(r'(\s*[%s]+\.)|(\s*[0-9]+\.)|(\s*[0-9]+\s+)' % letters).match): # This is the old expression. It had a nasty habit # of grabbing paragraphs that began with a single # letter word even if there was no following period. #expr = re.compile('\s*' # '(...
b29008c90524f37221faf5a492ff5cfc6328548c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b29008c90524f37221faf5a492ff5cfc6328548c/DocumentClass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 67, 2696, 329, 12, 365, 16, 10190, 16, 3065, 273, 283, 18, 11100, 12, 86, 11, 4713, 87, 14, 14451, 87, 65, 5834, 14047, 4713, 87, 26625, 20, 17, 29, 3737, 5834, 14047, 4713, 87,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 67, 2696, 329, 12, 365, 16, 10190, 16, 3065, 273, 283, 18, 11100, 12, 86, 11, 4713, 87, 14, 14451, 87, 65, 5834, 14047, 4713, 87, 26625, 20, 17, 29, 3737, 5834, 14047, 4713, 87,...
print " Op", r.owner, "produced", type(r_vals[r])
print " Result:", id(r), r print " Op", r.owner print " Value Type:", type(r_vals[r])
def f(): for x in no_recycling: x[0] = None try: equiv_vals = {} problematic = set() r_vals = {} assert len(thunks) == len(order) for i, (thunk, node) in enumerate(zip(thunks, order)): thunk()
4429a0e8fb76c2421c51d3d2f105fe6d40dae574 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/4429a0e8fb76c2421c51d3d2f105fe6d40dae574/debugmode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 13332, 364, 619, 316, 1158, 67, 266, 2431, 830, 310, 30, 619, 63, 20, 65, 273, 599, 775, 30, 1298, 427, 67, 4524, 273, 2618, 6199, 2126, 273, 444, 1435, 436, 67, 4524, 273, 2618...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 13332, 364, 619, 316, 1158, 67, 266, 2431, 830, 310, 30, 619, 63, 20, 65, 273, 599, 775, 30, 1298, 427, 67, 4524, 273, 2618, 6199, 2126, 273, 444, 1435, 436, 67, 4524, 273, 2618...
sage: a.minpoly(algorithm='numeric', bits=100, degree=3)
sage: a.minpoly(algorithm='numerical', bits=100, degree=3)
def minpoly(self, var='x', algorithm=None, bits=None, degree=None, epsilon=0): """ Return the minimal polynomial of self, if possible.
716fafc899a2315c0c3ff5bce18d53b81aa109d3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/716fafc899a2315c0c3ff5bce18d53b81aa109d3/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 16353, 12, 2890, 16, 569, 2218, 92, 2187, 4886, 33, 7036, 16, 4125, 33, 7036, 16, 10782, 33, 7036, 16, 12263, 33, 20, 4672, 3536, 2000, 326, 16745, 16991, 434, 365, 16, 309, 3323...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1131, 16353, 12, 2890, 16, 569, 2218, 92, 2187, 4886, 33, 7036, 16, 4125, 33, 7036, 16, 10782, 33, 7036, 16, 12263, 33, 20, 4672, 3536, 2000, 326, 16745, 16991, 434, 365, 16, 309, 3323...
return self._executeSingleStorageElementFunction(storageElementName,storageDirectory,'isDirectory') else: return self._executeStorageElementFunction(storageElementName,storageDirectory,'isDirectory') def getStorageDirectoryMetadata(self,storageDirectory,storageElementName,singleDirectory=False):
return self._executeSingleStorageElementFunction( storageElementName, storageDirectory, 'isDirectory' ) else: return self._executeStorageElementFunction( storageElementName, storageDirectory, 'isDirectory' ) def getStorageDirectoryMetadata( self, storageDirectory, storageElementName, singleDirectory=False ):
def getStorageDirectoryIsDirectory(self,storageDirectory,storageElementName,singleDirectory=False): """ Determine the storage paths are directories
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13840, 2853, 2520, 2853, 12, 2890, 16, 5697, 2853, 16, 5697, 30584, 16, 7526, 2853, 33, 8381, 4672, 3536, 10229, 326, 2502, 2953, 854, 6402, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13840, 2853, 2520, 2853, 12, 2890, 16, 5697, 2853, 16, 5697, 30584, 16, 7526, 2853, 33, 8381, 4672, 3536, 10229, 326, 2502, 2953, 854, 6402, 2, -100, -100, -100, -100, -100, -100, -100, ...
catContentDB[cat] = [subcatlist, articlelist]
catContentDB[supercat] = [subcatlist, articlelist]
def get_subcats(supercat): ''' For a given supercategory, return a list of CatLinks for all its subcategories. Saves this list in a temporary database so that it won't be loaded from the server next time it's required. ''' # if we already know which subcategories exist here if catContentDB.has_key(supercat): return cat...
3a995a3b062b01c4b620c238fc64f5656ea117ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3a995a3b062b01c4b620c238fc64f5656ea117ad/category.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1717, 24750, 12, 9565, 2574, 4672, 9163, 2457, 279, 864, 2240, 4743, 16, 327, 279, 666, 434, 385, 270, 7100, 364, 777, 2097, 720, 8995, 18, 348, 6606, 333, 666, 316, 279, 6269...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 1717, 24750, 12, 9565, 2574, 4672, 9163, 2457, 279, 864, 2240, 4743, 16, 327, 279, 666, 434, 385, 270, 7100, 364, 777, 2097, 720, 8995, 18, 348, 6606, 333, 666, 316, 279, 6269...
print "schedTime - addTime > self._lastRun=", schedTime - addTime > self._lastRun
def _CalcNextRun(self, missedAlready = False): # calculate when the next task should run # depending on last run time, update frequency, # task start time and day of the week
2e54de76b96ee6c9485ee5131c7e0d1170f6f06f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3644/2e54de76b96ee6c9485ee5131c7e0d1170f6f06f/Scheduler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 25779, 2134, 1997, 12, 2890, 16, 25143, 9430, 273, 1083, 4672, 468, 4604, 1347, 326, 1024, 1562, 1410, 1086, 468, 8353, 603, 1142, 1086, 813, 16, 1089, 8670, 16, 468, 1562, 787, 813...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 25779, 2134, 1997, 12, 2890, 16, 25143, 9430, 273, 1083, 4672, 468, 4604, 1347, 326, 1024, 1562, 1410, 1086, 468, 8353, 603, 1142, 1086, 813, 16, 1089, 8670, 16, 468, 1562, 787, 813...
def BurnDVDISO():
def BurnDVDISO(title):
def BurnDVDISO(): write( "Burning ISO image to %s" % dvddrivepath) checkCancelFlag() finished = False tries = 0 while not finished and tries < 10: f = os.open(dvddrivepath, os.O_RDONLY | os.O_NONBLOCK) drivestatus = ioctl(f,CDROM.CDROM_DRIVE_STATUS, 0) os.close(f); if drivestatus == CDROM.CDS_DISC_OK or drivestatus =...
87ee8e4938a9bc41c4ba992fd57f61744dee45ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13713/87ee8e4938a9bc41c4ba992fd57f61744dee45ce/mythburn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 321, 30199, 2565, 3584, 12, 2649, 4672, 1045, 12, 315, 38, 321, 310, 9351, 1316, 358, 738, 87, 6, 738, 12494, 449, 86, 688, 803, 13, 866, 6691, 4678, 1435, 225, 6708, 273, 1083, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 605, 321, 30199, 2565, 3584, 12, 2649, 4672, 1045, 12, 315, 38, 321, 310, 9351, 1316, 358, 738, 87, 6, 738, 12494, 449, 86, 688, 803, 13, 866, 6691, 4678, 1435, 225, 6708, 273, 1083, ...
res.append( self.move_line_get_item(cr, uid, line, context)) for tax in tax_obj.compute(cr, uid, line.invoice_line_tax_id, (line.price_unit *(1.0-(line['discount'] or 0.0)/100.0)), line.quantity, inv.address_invoice_id.id, line.product_id, inv.partner_id):
res.append(self.move_line_get_item(cr, uid, line, context)) tax_code_found= False for tax in tax_obj.compute(cr, uid, line.invoice_line_tax_id, (line.price_unit * (1.0 - (line['discount'] or 0.0) / 100.0)), line.quantity, inv.address_invoice_id.id, line.product_id, inv.partner_id):
def move_line_get(self, cr, uid, invoice_id, context={}): res = [] tax_grouped = {} tax_obj = self.pool.get('account.tax') cur_obj = self.pool.get('res.currency') ait_obj = self.pool.get('account.invoice.tax') inv = self.pool.get('account.invoice').browse(cr, uid, invoice_id) cur = inv.currency_id
2dc533b969687458f10362d76b0d0320bfe478db /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/2dc533b969687458f10362d76b0d0320bfe478db/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 67, 1369, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 9179, 67, 350, 16, 819, 12938, 4672, 400, 273, 5378, 5320, 67, 25472, 273, 2618, 5320, 67, 2603, 273, 365, 18, 6011, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 67, 1369, 67, 588, 12, 2890, 16, 4422, 16, 4555, 16, 9179, 67, 350, 16, 819, 12938, 4672, 400, 273, 5378, 5320, 67, 25472, 273, 2618, 5320, 67, 2603, 273, 365, 18, 6011, 18, 58...
self.deleteTransformationInputDataQuery(transID,connection=connection)
self.deleteTransformationInputDataQuery( transID, connection = connection )
def __addInputDataQuery(self, transID, queryDict, author='', connection=False): res = self.getTransformationInputDataQuery(transID, connection=connection) if res['OK']: return S_ERROR("Input data query already exists for transformation") if res['Message'] != 'No InputDataQuery found for transformation': return res inse...
9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 1210, 751, 1138, 12, 2890, 16, 906, 734, 16, 843, 5014, 16, 2869, 2218, 2187, 1459, 33, 8381, 4672, 400, 273, 365, 18, 588, 15292, 1210, 751, 1138, 12, 2338, 734, 16, 1459,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 1210, 751, 1138, 12, 2890, 16, 906, 734, 16, 843, 5014, 16, 2869, 2218, 2187, 1459, 33, 8381, 4672, 400, 273, 365, 18, 588, 15292, 1210, 751, 1138, 12, 2338, 734, 16, 1459,...
pattern = join(self.packageResourceFolder, pat)
pattern = join(self.resourceFolder, pat)
def _addResources(self): "Add Welcome/ReadMe/License files, .lproj folders and scripts."
d932aaa96ea8845f4755fa2da90712cb71b9e9c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d932aaa96ea8845f4755fa2da90712cb71b9e9c4/buildpkg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 3805, 12, 2890, 4672, 315, 986, 678, 16312, 19, 1994, 4667, 19, 13211, 1390, 16, 263, 80, 17995, 9907, 471, 8873, 1199, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 3805, 12, 2890, 4672, 315, 986, 678, 16312, 19, 1994, 4667, 19, 13211, 1390, 16, 263, 80, 17995, 9907, 471, 8873, 1199, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.engine.processFrame(StompFrame('SUBSCRIBE', headers={'destination': '/queue/bar',
self.engine.process_frame(StompFrame('SUBSCRIBE', headers={'destination': '/queue/bar',
def test_subscribe_ack(self): """ Test subscribing to a queue with ack=true """ self._connect() self.engine.processFrame(StompFrame('SUBSCRIBE', headers={'destination': '/queue/bar', 'ack': 'client'})) assert self.conn.reliable_subscriber == True assert self.conn in self.qm.queues['/queue/bar']
f9d8d8c4b602e4da62a32eac4e04f31994d99e97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10258/f9d8d8c4b602e4da62a32eac4e04f31994d99e97/test_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9174, 67, 484, 12, 2890, 4672, 3536, 7766, 10189, 310, 358, 279, 2389, 598, 8479, 33, 3767, 3536, 365, 6315, 3612, 1435, 365, 18, 8944, 18, 2567, 67, 3789, 12, 510, 20667, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9174, 67, 484, 12, 2890, 4672, 3536, 7766, 10189, 310, 358, 279, 2389, 598, 8479, 33, 3767, 3536, 365, 6315, 3612, 1435, 365, 18, 8944, 18, 2567, 67, 3789, 12, 510, 20667, 32...
report.write("\n\nThe following subject languages returned no results:\n")
report.write("\n\nThe following %s subject languages returned no results:\n" % len(subjzeros))
def inc(var, dict): if var in dict: dict[var] += 1 else: dict[var] = 1
87cab1882ebddf3ad47a4249bd5b2a75fabd3742 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8937/87cab1882ebddf3ad47a4249bd5b2a75fabd3742/worldcat2olac.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7290, 12, 1401, 16, 2065, 4672, 309, 569, 316, 2065, 30, 2065, 63, 1401, 65, 1011, 404, 469, 30, 2065, 63, 1401, 65, 273, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7290, 12, 1401, 16, 2065, 4672, 309, 569, 316, 2065, 30, 2065, 63, 1401, 65, 1011, 404, 469, 30, 2065, 63, 1401, 65, 273, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...