rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
elif date is not None: self.__date = date
elif mxDate is not None: self.__date = mxDate
def __init__(self,freq,year=None, month=None, day=None, seconds=None,quarter=None, date=None, val=None): if hasattr(freq,'freq'): self.freq = corelib.fmtFreq(freq.freq) else: self.freq = corelib.fmtFreq(freq) self.type = corelib.freqToType(self.freq) if val is not None: if self.freq == 'D': self.__date = val+originDa...
c207acc5c7f49d5bd86329331c20462583407dd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/c207acc5c7f49d5bd86329331c20462583407dd3/tsdate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 10212, 16, 6874, 33, 7036, 16, 3138, 33, 7036, 16, 2548, 33, 7036, 16, 3974, 33, 7036, 16, 372, 14153, 33, 7036, 16, 1509, 33, 7036, 16, 1244, 33, 7036...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10212, 16, 6874, 33, 7036, 16, 3138, 33, 7036, 16, 2548, 33, 7036, 16, 3974, 33, 7036, 16, 372, 14153, 33, 7036, 16, 1509, 33, 7036, 16, 1244, 33, 7036...
res = process_liness(self, datas, prefix + [field], current_module, relation_obj._name, newfd, position) (newrow, max2, w2, translate2, data_id2, data_res_id2) = res
res = process_liness(self, datas, prefix + [field], current_module, relation_obj._name, newfd, position) (newrow, max2, w2, translate2, data_id2, data_res_id2) = res
def process_liness(self, datas, prefix, current_module, model_name, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = [] data_id = False data_res_id = False is_xml_id = False is_db_id = False ir_model_data_obj = self.pool.get('ir.model.data') # # Import normal fields # for i in...
9f8394a3119b661e0f978387e8467c7103893025 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/9f8394a3119b661e0f978387e8467c7103893025/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 80, 6336, 12, 2890, 16, 5386, 16, 1633, 16, 783, 67, 2978, 16, 938, 67, 529, 16, 1466, 67, 536, 16, 1754, 33, 20, 4672, 980, 273, 5386, 63, 3276, 65, 1027, 273, 2618, 420...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 80, 6336, 12, 2890, 16, 5386, 16, 1633, 16, 783, 67, 2978, 16, 938, 67, 529, 16, 1466, 67, 536, 16, 1754, 33, 20, 4672, 980, 273, 5386, 63, 3276, 65, 1027, 273, 2618, 420...
import multiarray
def __import__(*args, **kws): arg = args[0] print >>sys.stderr, "about to import " + arg # helps determine which module had the problem return _old_import(*args, **kws)
b128a3e33d34c4973ef3c73f191ef346245b4c5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/b128a3e33d34c4973ef3c73f191ef346245b4c5e/all_mac_imports.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5666, 972, 30857, 1968, 16, 2826, 79, 4749, 4672, 1501, 273, 833, 63, 20, 65, 1172, 1671, 9499, 18, 11241, 16, 315, 21071, 358, 1930, 315, 397, 1501, 468, 21814, 4199, 1492, 1605, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 5666, 972, 30857, 1968, 16, 2826, 79, 4749, 4672, 1501, 273, 833, 63, 20, 65, 1172, 1671, 9499, 18, 11241, 16, 315, 21071, 358, 1930, 315, 397, 1501, 468, 21814, 4199, 1492, 1605, ...
except Exception, e:
except Exception:
def test_run_bad_query(self): cursor = self.connection.cursor() try: cursor.execute("garbage blah blah") self.assert_(False) except AssertionError: raise except Exception, e: pass cursor.close()
219a396ff68b5a6189a9ddc5ecd846a4dd5db09d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10078/219a396ff68b5a6189a9ddc5ecd846a4dd5db09d/db_pool_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2681, 67, 8759, 67, 2271, 12, 2890, 4672, 3347, 273, 365, 18, 4071, 18, 9216, 1435, 775, 30, 3347, 18, 8837, 2932, 75, 12332, 2811, 9795, 2811, 9795, 7923, 365, 18, 11231, 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, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2681, 67, 8759, 67, 2271, 12, 2890, 4672, 3347, 273, 365, 18, 4071, 18, 9216, 1435, 775, 30, 3347, 18, 8837, 2932, 75, 12332, 2811, 9795, 2811, 9795, 7923, 365, 18, 11231, 67...
except: self._debug('Unable to save synclog: %s' % traceback.format_exc())
except Exception, e: self._debug('Unable to save synclog -- caught an exception.') tsumufs.syslogCurrentException()
def run(self): try: while not tsumufs.unmounted.isSet(): self._debug('TsumuFS not unmounted yet.')
d9185e1cc661b3156fd5f0abbe3ae21cb0af7f8a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10739/d9185e1cc661b3156fd5f0abbe3ae21cb0af7f8a/syncthread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 1323, 486, 268, 1364, 696, 87, 18, 318, 4778, 329, 18, 291, 694, 13332, 365, 6315, 4148, 2668, 56, 1364, 89, 4931, 486, 25670, 329, 4671, 1093, 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, 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, 1086, 12, 2890, 4672, 775, 30, 1323, 486, 268, 1364, 696, 87, 18, 318, 4778, 329, 18, 291, 694, 13332, 365, 6315, 4148, 2668, 56, 1364, 89, 4931, 486, 25670, 329, 4671, 1093, 13, 2, ...
wx.CallAfter(self.frame.SetTitle, ("%s - file://%s%s%s" % \ (self.control.filename, self.control.dirname, util.GetPathChar(), self.control.filename)))
def OnUpdatePageText(self, evt): """Update the title text of the current page @param evt: event that called this handler @type evt: ed_event.UpdateTextEvent
4c536948e9228a77353a4494fbc42a138ec65e53 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/4c536948e9228a77353a4494fbc42a138ec65e53/ed_pages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1891, 1964, 1528, 12, 2890, 16, 6324, 4672, 3536, 1891, 326, 2077, 977, 434, 326, 783, 1363, 632, 891, 6324, 30, 871, 716, 2566, 333, 1838, 632, 723, 6324, 30, 1675, 67, 2575, 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, 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, 2755, 1891, 1964, 1528, 12, 2890, 16, 6324, 4672, 3536, 1891, 326, 2077, 977, 434, 326, 783, 1363, 632, 891, 6324, 30, 871, 716, 2566, 333, 1838, 632, 723, 6324, 30, 1675, 67, 2575, 18...
decode_from = connection.execute("show variables like 'character_Set_results'").fetchone()[1]
decode_from = connection.execute("show variables like 'character_set_results'").fetchone()[1]
def reflecttable(self, connection, table): # reference: http://dev.mysql.com/doc/refman/5.0/en/name-case-sensitivity.html cs = connection.execute("show variables like 'lower_case_table_names'").fetchone()[1] if isinstance(cs, array): cs = cs.tostring() case_sensitive = int(cs) == 0
b1ec42fb1d0f855f5276cfff67e77a0b824b7298 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/b1ec42fb1d0f855f5276cfff67e77a0b824b7298/mysql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3037, 2121, 12, 2890, 16, 1459, 16, 1014, 4672, 468, 2114, 30, 225, 1062, 2207, 5206, 18, 12527, 18, 832, 19, 2434, 19, 1734, 4728, 19, 25, 18, 20, 19, 275, 19, 529, 17, 3593, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3037, 2121, 12, 2890, 16, 1459, 16, 1014, 4672, 468, 2114, 30, 225, 1062, 2207, 5206, 18, 12527, 18, 832, 19, 2434, 19, 1734, 4728, 19, 25, 18, 20, 19, 275, 19, 529, 17, 3593, 17, ...
def test_basic(self):
class ListTestCase(BaseTestCase): seq = [0,10,20,30,40,50] def test_setdelitem(self):
def test_basic(self): self.o.ind = -2 self.n.ind = 2 assert(self.seq[self.n] == self.seq[2]) assert(self.seq[self.o] == self.seq[-2]) assert(operator.index(self.o) == -2) assert(operator.index(self.n) == 2)
3b380b22b23cc30be13984f5c76d2e6f1e703203 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3b380b22b23cc30be13984f5c76d2e6f1e703203/test_index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 667, 987, 4709, 2449, 12, 2171, 4709, 2449, 4672, 3833, 273, 306, 20, 16, 2163, 16, 3462, 16, 5082, 16, 7132, 16, 3361, 65, 225, 1652, 1842, 67, 542, 3771, 1726, 12, 2890, 4672, 365, 18, 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, 667, 987, 4709, 2449, 12, 2171, 4709, 2449, 4672, 3833, 273, 306, 20, 16, 2163, 16, 3462, 16, 5082, 16, 7132, 16, 3361, 65, 225, 1652, 1842, 67, 542, 3771, 1726, 12, 2890, 4672, 365, 18, 8...
initialcolor = (128, 128, 128)
initialcolor = 'grey50'
def main(): global app initialcolor = (128, 128, 128) try: opts, args = getopt.getopt(sys.argv[1:], 'hc:', ['color=', 'help']) except getopt.error, msg: usage(1, msg) if args: usage(1) for opt, arg in opts: if opt in ('-h', '--help'): usage(0) elif opt in ('-c', '--color'): initialcolor = arg # create the windows a...
2f2723d0e66c382c68c482ca0e3eebffdcdf1da6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2f2723d0e66c382c68c482ca0e3eebffdcdf1da6/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 2552, 595, 225, 2172, 3266, 273, 296, 11556, 93, 3361, 11, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 28353, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 595, 225, 2172, 3266, 273, 296, 11556, 93, 3361, 11, 775, 30, 1500, 16, 833, 273, 336, 3838, 18, 588, 3838, 12, 9499, 18, 19485, 63, 21, 30, 6487, 296, 28353, 30, ...
result = logDB.addFileRecords(fileTuples)
result = logDB.addFileRecords( fileTuples )
def export_addFileRecords(self,fileTuples): """ Add a group of logging records """ result = logDB.addFileRecords(fileTuples) return result
4797b8c582dfd807acec37afc8310baba2b3d395 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/4797b8c582dfd807acec37afc8310baba2b3d395/DataLoggingHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 1289, 812, 6499, 12, 2890, 16, 768, 25813, 4672, 3536, 1436, 279, 1041, 434, 2907, 3853, 3536, 563, 273, 613, 2290, 18, 1289, 812, 6499, 12, 585, 25813, 262, 327, 563, 2, 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, 1, 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, 3359, 67, 1289, 812, 6499, 12, 2890, 16, 768, 25813, 4672, 3536, 1436, 279, 1041, 434, 2907, 3853, 3536, 563, 273, 613, 2290, 18, 1289, 812, 6499, 12, 585, 25813, 262, 327, 563, 2, -10...
self.AddMember(subscribe_address, password, digest, remote)
userdesc = UserDesc(subscribe_address, password, digest) self.AddMember(userdesc, remote)
def ProcessSubscribeCmd(self, args, cmd, mail): """Parse subscription request and send confirmation request.""" digest = self.digest_is_default password = "" address = "" done_digest = 0 if not len(args): password = Utils.MakeRandomPassword() elif len(args) > 3: self.AddError(_("Usage: subscribe [password] " "[digest|n...
cf4f819c583f04d6fab9c8bc012e5c6165b95bd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/cf4f819c583f04d6fab9c8bc012e5c6165b95bd3/MailCommandHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4389, 16352, 5931, 12, 2890, 16, 833, 16, 1797, 16, 4791, 4672, 3536, 3201, 4915, 590, 471, 1366, 14296, 590, 12123, 5403, 273, 365, 18, 10171, 67, 291, 67, 1886, 2201, 273, 1408, 1758, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4389, 16352, 5931, 12, 2890, 16, 833, 16, 1797, 16, 4791, 4672, 3536, 3201, 4915, 590, 471, 1366, 14296, 590, 12123, 5403, 273, 365, 18, 10171, 67, 291, 67, 1886, 2201, 273, 1408, 1758, ...
return self._runWithConnection(self._iterSelect, select, self, False)
return Iteration(self, self.getConnection(), select, keepConnection=False)
def iterSelect(self, select): return self._runWithConnection(self._iterSelect, select, self, False)
5a908bb7a7804435bc3a2c7383d5b451f28ad3a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8798/5a908bb7a7804435bc3a2c7383d5b451f28ad3a0/dbconnection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 3391, 12, 2890, 16, 2027, 4672, 327, 365, 6315, 2681, 1190, 1952, 12, 2890, 6315, 2165, 3391, 16, 2027, 16, 365, 16, 1083, 13, 2, 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, 1400, 3391, 12, 2890, 16, 2027, 4672, 327, 365, 6315, 2681, 1190, 1952, 12, 2890, 6315, 2165, 3391, 16, 2027, 16, 365, 16, 1083, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
def _check_itairy(self):
def check_itairy(self):
def _check_itairy(self): cephes.itairy(1)
2a0571808f9b68627e9152f6f1037281e69d9d98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/2a0571808f9b68627e9152f6f1037281e69d9d98/test_cephes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 305, 1826, 93, 12, 2890, 4672, 5898, 844, 281, 18, 305, 1826, 93, 12, 21, 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, ...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 305, 1826, 93, 12, 2890, 4672, 5898, 844, 281, 18, 305, 1826, 93, 12, 21, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
except WindowsError: raise LookupError("MSYS not found in the registry") finally: key.Close()
finally: key.Close() except WindowsError: raise LookupError("MSYS not found in the registry")
def find_msys_registry(): """Return the MSYS 1.0 directory path stored in the Windows registry The return value is an encoded ascii str. The registry entry for the uninstaller is used. Raise a LookupError if not found. """ subkey = ( 'Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MSYS-1.0_is1') key = _winr...
7ba5997fe47ddf54ff897301ee28397e01243479 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1298/7ba5997fe47ddf54ff897301ee28397e01243479/msys.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 959, 1900, 67, 9893, 13332, 3536, 990, 326, 490, 30664, 404, 18, 20, 1867, 589, 4041, 316, 326, 8202, 4023, 225, 1021, 327, 460, 353, 392, 3749, 11384, 609, 18, 1021, 4023, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1104, 67, 959, 1900, 67, 9893, 13332, 3536, 990, 326, 490, 30664, 404, 18, 20, 1867, 589, 4041, 316, 326, 8202, 4023, 225, 1021, 327, 460, 353, 392, 3749, 11384, 609, 18, 1021, 4023, 1...
def _oct__value_of_string(self, value): return int(value, 8)
def _oct__value_of_string(self, text): if not text: return 0 return int(text, 8)
def _oct__value_of_string(self, value): return int(value, 8)
334d69ecca497c5fe47c80c27d0fdaf764a8fe4a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5406/334d69ecca497c5fe47c80c27d0fdaf764a8fe4a/LiteralIntWidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 13410, 972, 1132, 67, 792, 67, 1080, 12, 2890, 16, 460, 4672, 327, 509, 12, 1132, 16, 1725, 13, 2, 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, 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, 389, 13410, 972, 1132, 67, 792, 67, 1080, 12, 2890, 16, 460, 4672, 327, 509, 12, 1132, 16, 1725, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
plotter('set data style linespoints')
def plotStreams(self, groupAddrs, genImage=""):
9d593b5859483a776f3e59e9f769c2e4383fa8d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10061/9d593b5859483a776f3e59e9f769c2e4383fa8d4/knxmonitor_decoder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 10301, 12, 2890, 16, 1041, 13811, 16, 3157, 2040, 1546, 6, 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, ...
[ 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, 3207, 10301, 12, 2890, 16, 1041, 13811, 16, 3157, 2040, 1546, 6, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.user.delete()
def tearDown(self): self.user.delete() self.transaction.delete() for account in self.accounts: account.delete() self.group.delete()
cfea0eccfd7db3ad42699b42b7c41cd779f23174 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12178/cfea0eccfd7db3ad42699b42b7c41cd779f23174/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 365, 18, 7958, 18, 3733, 1435, 364, 2236, 316, 365, 18, 13739, 30, 2236, 18, 3733, 1435, 365, 18, 1655, 18, 3733, 1435, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 365, 18, 7958, 18, 3733, 1435, 364, 2236, 316, 365, 18, 13739, 30, 2236, 18, 3733, 1435, 365, 18, 1655, 18, 3733, 1435, 2, -100, -100, -100, -100, -100...
os.symlink(longDir, shortDir)
if not os.path.exists(shortDir): os.symlink(longDir, shortDir) finally: os.chdir(cwd)
def ReleaseToDated(options, upload_dir, files): values = BuildIDToDict(options.buildid) values['branch'] = options.branch longDir = LONG_DATED_DIR % values shortDir = SHORT_DATED_DIR % values longDatedPath = os.path.join(NIGHTLY_PATH, longDir) shortDatedPath = os.path.join(NIGHTLY_PATH, shortDir) for f in files: Cop...
551aa2282a426164520a02bf7ad4b28f9967eabe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6206/551aa2282a426164520a02bf7ad4b28f9967eabe/post_upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10819, 774, 40, 690, 12, 2116, 16, 3617, 67, 1214, 16, 1390, 4672, 924, 273, 3998, 734, 774, 5014, 12, 2116, 18, 3510, 350, 13, 924, 3292, 7500, 3546, 225, 273, 702, 18, 7500, 1525, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10819, 774, 40, 690, 12, 2116, 16, 3617, 67, 1214, 16, 1390, 4672, 924, 273, 3998, 734, 774, 5014, 12, 2116, 18, 3510, 350, 13, 924, 3292, 7500, 3546, 225, 273, 702, 18, 7500, 1525, ...
if u.get("bytes", 0) >= u.get("size", -1):
if u.get("bytes", -1) >= u.get("size", 0):
def request(self, args): """Request a file from a server. args are (.sumi filename) or (transport, nick, filename).
6302cf12c3692daac3d672787e4e972719384053 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2496/6302cf12c3692daac3d672787e4e972719384053/sumiget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 833, 4672, 3536, 691, 279, 585, 628, 279, 1438, 18, 833, 854, 261, 18, 1364, 77, 1544, 13, 578, 261, 13049, 16, 10909, 16, 1544, 2934, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 833, 4672, 3536, 691, 279, 585, 628, 279, 1438, 18, 833, 854, 261, 18, 1364, 77, 1544, 13, 578, 261, 13049, 16, 10909, 16, 1544, 2934, 2, -100, -100, -100, -100, -...
self.show_x = show_x self.show_y = show_y
mode_common.show_xy(self, show_x, show_y)
def show_xy(self, show_x, show_y): self.show_x = show_x self.show_y = show_y self.cxb.setVisible(show_x) self.cyb.setVisible(show_y)
8152acbd9caf37ba0b935cc3572f94af327b99d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7151/8152acbd9caf37ba0b935cc3572f94af327b99d2/fa-viewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 1698, 12, 2890, 16, 2405, 67, 92, 16, 2405, 67, 93, 4672, 1965, 67, 6054, 18, 4500, 67, 1698, 12, 2890, 16, 2405, 67, 92, 16, 2405, 67, 93, 13, 365, 18, 71, 6114, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1698, 12, 2890, 16, 2405, 67, 92, 16, 2405, 67, 93, 4672, 1965, 67, 6054, 18, 4500, 67, 1698, 12, 2890, 16, 2405, 67, 92, 16, 2405, 67, 93, 13, 365, 18, 71, 6114, 18, 5...
import sqlite3
def __init__(self, databaseFilePath, autoConvertDatabase=True): import sqlite3 self._databaseFilePath = databaseFilePath self._autoConvertDatabase = autoConvertDatabase self.userRootCache = {} self._connect() self._migrateExistingData()
d2198816cdcfa59d4105128ad9a077d8dcc4c2f0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2223/d2198816cdcfa59d4105128ad9a077d8dcc4c2f0/db_sqlite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2063, 5598, 16, 12696, 4254, 33, 5510, 4672, 365, 6315, 6231, 5598, 273, 2063, 5598, 365, 6315, 6079, 2723, 4254, 273, 12696, 4254, 365, 18, 1355, 2375, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2063, 5598, 16, 12696, 4254, 33, 5510, 4672, 365, 6315, 6231, 5598, 273, 2063, 5598, 365, 6315, 6079, 2723, 4254, 273, 12696, 4254, 365, 18, 1355, 2375, 16...
def get_scod_queue():
def get_scan_queue():
def get_scod_queue(): def f(scan_status): q = { 'type': '/type/scan_record', 'scan_status': scan_status, } result = web.ctx.site.things(q) return [web.ctx.site.get(key) for key in result] result = f('WAITING_FOR_BOOK') + f('SCAN_IN_PROGRESS') result.sort(key=lambda record: to_datetime(record.request_date) or record.la...
8d0739a9c94f7bc3a94de39d29a29eb42e5dacd7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3913/8d0739a9c94f7bc3a94de39d29a29eb42e5dacd7/code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9871, 67, 4000, 13332, 1652, 284, 12, 9871, 67, 2327, 4672, 1043, 273, 288, 296, 723, 4278, 1173, 723, 19, 9871, 67, 3366, 2187, 296, 9871, 67, 2327, 4278, 4135, 67, 2327, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9871, 67, 4000, 13332, 1652, 284, 12, 9871, 67, 2327, 4672, 1043, 273, 288, 296, 723, 4278, 1173, 723, 19, 9871, 67, 3366, 2187, 296, 9871, 67, 2327, 4278, 4135, 67, 2327, 16,...
"""
"""
def toggleTimeSlider(self, flag): """ Created: 23.07.2006, KP Description: Toggle the time slider on or off """ if not flag: self.sliderWin.SetDefaultSize((0, 0)) else: self.sliderWin.SetDefaultSize(self.sliderWin.origSize)
228d177ed04eda3e5752ade67b1e400d3b569646 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/228d177ed04eda3e5752ade67b1e400d3b569646/Visualizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10486, 950, 21824, 12, 2890, 16, 2982, 4672, 3536, 12953, 30, 10213, 18, 8642, 18, 6976, 26, 16, 1475, 52, 6507, 30, 399, 9891, 326, 813, 18442, 603, 578, 3397, 3536, 309, 486, 2982, 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, 10486, 950, 21824, 12, 2890, 16, 2982, 4672, 3536, 12953, 30, 10213, 18, 8642, 18, 6976, 26, 16, 1475, 52, 6507, 30, 399, 9891, 326, 813, 18442, 603, 578, 3397, 3536, 309, 486, 2982, 3...
file = CWriter(filename) self.WriteHeader(file) file.Write("// It is included by gles2_cmd_decoder.cc\n") file.Write("\n")
file = CHeaderWriter( filename, "// It is included by gles2_cmd_decoder.cc\n")
def WriteServiceImplementation(self, filename): """Writes the service decorder implementation.""" file = CWriter(filename) self.WriteHeader(file) file.Write("// It is included by gles2_cmd_decoder.cc\n") file.Write("\n")
20d6af8de9f49c5a4b9a5d098840a1523ad90cb6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/20d6af8de9f49c5a4b9a5d098840a1523ad90cb6/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2598, 1179, 13621, 12, 2890, 16, 1544, 4672, 3536, 8368, 326, 1156, 443, 901, 264, 4471, 12123, 585, 273, 385, 2289, 12, 3459, 13, 365, 18, 3067, 1864, 12, 768, 13, 585, 18, 3067, 2932...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2598, 1179, 13621, 12, 2890, 16, 1544, 4672, 3536, 8368, 326, 1156, 443, 901, 264, 4471, 12123, 585, 273, 385, 2289, 12, 3459, 13, 365, 18, 3067, 1864, 12, 768, 13, 585, 18, 3067, 2932...
qualifier = "Note 'circa': '%s'" % date
qualifier = "Note 'circa': '%s'" % orig_date
def parse(self, date): qualifier = '' if dateutil_parser is None: return None date = date.strip()
2fccd73196c4b90c6a963deed6e5574e54132d69 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12898/2fccd73196c4b90c6a963deed6e5574e54132d69/date.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 1509, 4672, 12327, 273, 875, 309, 1509, 1367, 67, 4288, 353, 599, 30, 327, 599, 1509, 273, 1509, 18, 6406, 1435, 2, 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, 1109, 12, 2890, 16, 1509, 4672, 12327, 273, 875, 309, 1509, 1367, 67, 4288, 353, 599, 30, 327, 599, 1509, 273, 1509, 18, 6406, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
yield u"http://%s:%i/%s" % (resolve(addr), port, msg)
yield "http://%s:%i/%s" % (resolve(addr), port, msg)
def search(what, async=False): """Search for files""" sock = get_socket() what = what.encode('utf8') sock.sendto("search %s %s" % (config.HELLO, what), (config.BROADCAST_IP, config.PORT)) results = 0 for data in recv(sock, config.SEARCH_TIMEOUT, async): if data: msg, (addr, port) = data if msg.startswith(what + ":"): r...
b823d30bbbb57755d6b84872312cc129aad2bdc3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8725/b823d30bbbb57755d6b84872312cc129aad2bdc3/lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 23770, 16, 4326, 33, 8381, 4672, 3536, 2979, 364, 1390, 8395, 7313, 273, 336, 67, 7814, 1435, 4121, 273, 4121, 18, 3015, 2668, 3158, 28, 6134, 7313, 18, 4661, 869, 2932, 3072, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1623, 12, 23770, 16, 4326, 33, 8381, 4672, 3536, 2979, 364, 1390, 8395, 7313, 273, 336, 67, 7814, 1435, 4121, 273, 4121, 18, 3015, 2668, 3158, 28, 6134, 7313, 18, 4661, 869, 2932, 3072, ...
self.client.voidresp()
self.assertEqual(self.client.voidresp(), "226 transfer complete")
def test_data_connection(self): # clear text sock = self.client.transfercmd('list') self.assertNotIsInstance(sock, ssl.SSLSocket) sock.close() self.client.voidresp()
a5c4b5515f5af878923d67752d282f8cc8f072e7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/a5c4b5515f5af878923d67752d282f8cc8f072e7/test_ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 892, 67, 4071, 12, 2890, 4672, 468, 2424, 977, 7313, 273, 365, 18, 2625, 18, 13866, 4172, 2668, 1098, 6134, 365, 18, 11231, 1248, 2520, 1442, 12, 15031, 16, 5832, 18, 1260, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 892, 67, 4071, 12, 2890, 4672, 468, 2424, 977, 7313, 273, 365, 18, 2625, 18, 13866, 4172, 2668, 1098, 6134, 365, 18, 11231, 1248, 2520, 1442, 12, 15031, 16, 5832, 18, 1260, 2...
yield commands.FileRenameCommand(src, dest)
yield commands.FileCopyCommand(src, dest)
def iter_file_commands(self): """Iterator returning FileCommand objects. If an invalid file command is found, the line is silently pushed back and iteration ends. """ while True: line = self.next_line() if line is None: break elif len(line) == 0 or line.startswith('#'): continue # Search for file commands in order of ...
108ff7c3efaab85cac6d9ef658a8526dcb979c9e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8703/108ff7c3efaab85cac6d9ef658a8526dcb979c9e/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 768, 67, 7847, 12, 2890, 4672, 3536, 3198, 5785, 1387, 2189, 2184, 18, 225, 971, 392, 2057, 585, 1296, 353, 1392, 16, 326, 980, 353, 22274, 18543, 1473, 471, 6532, 3930, 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, 1400, 67, 768, 67, 7847, 12, 2890, 4672, 3536, 3198, 5785, 1387, 2189, 2184, 18, 225, 971, 392, 2057, 585, 1296, 353, 1392, 16, 326, 980, 353, 22274, 18543, 1473, 471, 6532, 3930, 18, ...
i = 0 startAngle = self.startAngle
def draw(self): # normalize slice data g = self.makeBackground() or Group()
7560fdfa0895186c8f0183a636ad5504edbdd459 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/7560fdfa0895186c8f0183a636ad5504edbdd459/spider.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 468, 3883, 2788, 501, 314, 273, 365, 18, 6540, 8199, 1435, 578, 3756, 1435, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 2890, 4672, 468, 3883, 2788, 501, 314, 273, 365, 18, 6540, 8199, 1435, 578, 3756, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self.body.append('\\tableofcontents\n\n\\bigskip\n') self.body.append('% [depart_topic]\n')
def visit_topic(self, node): self.body.append('% [visit_topic]\n') self.topic_class = node.get('class') if self.latex_toc: self.body.append('\\tableofcontents\n\n\\bigskip\n') self.body.append('% [depart_topic]\n') self.topic_class = '' raise nodes.SkipNode
930090122192dbfbdaa2a15fd94937d58c92bf0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/930090122192dbfbdaa2a15fd94937d58c92bf0d/latex2e.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 10476, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 29909, 306, 11658, 67, 10476, 13944, 82, 6134, 365, 18, 10476, 67, 1106, 273, 756, 18, 588, 2668, 1106, 6134, 309, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 67, 10476, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 29909, 306, 11658, 67, 10476, 13944, 82, 6134, 365, 18, 10476, 67, 1106, 273, 756, 18, 588, 2668, 1106, 6134, 309, 36...
- ``ivar`` - (optional) the independent variable (hereafter called x), which must be specified if there is more than one independent variable in the equation.
- ``ivar`` - (optional) the independent variable (hereafter called x), which must be specified if there is more than one independent variable in the equation.
def desolve(de, dvar, ics=None, ivar=None, show_method=False, contrib_ode=False): """ Solves a 1st or 2nd order linear ODE via maxima. Including IVP and BVP. *Use* ``desolve? <tab>`` *if the output in truncated in notebook.* INPUT: - ``de`` - an expression or equation representing the ODE - ``dvar`` - the dependent...
a5e01917e5cb3eb9aa0a8033daad14821fe571aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/a5e01917e5cb3eb9aa0a8033daad14821fe571aa/desolvers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2832, 5390, 12, 323, 16, 302, 1401, 16, 277, 2143, 33, 7036, 16, 277, 1401, 33, 7036, 16, 2405, 67, 2039, 33, 8381, 16, 13608, 67, 390, 33, 8381, 4672, 3536, 348, 355, 3324, 279, 404...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2832, 5390, 12, 323, 16, 302, 1401, 16, 277, 2143, 33, 7036, 16, 277, 1401, 33, 7036, 16, 2405, 67, 2039, 33, 8381, 16, 13608, 67, 390, 33, 8381, 4672, 3536, 348, 355, 3324, 279, 404...
if combId in filteredResources:
if combId in resdata:
def serialize(filteredResources, combinedImages, resdata): for resId, resval in filteredResources.items(): # build up resdata if isinstance(resval, ImgInfoFmt): resvalue = resval.flatten() else: # handle other resources resvalue = resval resdata[resId] = resvalue # register the resource with the package needing it add...
bfe4c90417ed06513f17ea05c9b07c9f26b77dbc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/bfe4c90417ed06513f17ea05c9b07c9f26b77dbc/CodeGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4472, 12, 12071, 3805, 16, 8224, 8946, 16, 400, 892, 4672, 364, 400, 548, 16, 400, 1125, 316, 5105, 3805, 18, 3319, 13332, 468, 1361, 731, 400, 892, 309, 1549, 12, 455, 1125, 16, 2221,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4472, 12, 12071, 3805, 16, 8224, 8946, 16, 400, 892, 4672, 364, 400, 548, 16, 400, 1125, 316, 5105, 3805, 18, 3319, 13332, 468, 1361, 731, 400, 892, 309, 1549, 12, 455, 1125, 16, 2221,...
Base.LinkPython (room_start, 'exit', "
Base.LinkPython (room_start, 'exit', "
def __init__(self, room_start, room_exit_to, enable_missions, enable_finances, enable_manifest, enable_load, enable_save): # Quine computer is made up of several "rooms" aka screens # the room_start show the user's location # this is made a lot more complex because of the need to update the cargo manifest guiroom = GUI...
4edbbe64222e335e1967196d8f2b25e4c65003b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2883/4edbbe64222e335e1967196d8f2b25e4c65003b5/computer_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7725, 67, 1937, 16, 7725, 67, 8593, 67, 869, 16, 4237, 67, 7300, 16, 4237, 67, 926, 6872, 16, 4237, 67, 14357, 16, 4237, 67, 945, 16, 4237, 67, 5688, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7725, 67, 1937, 16, 7725, 67, 8593, 67, 869, 16, 4237, 67, 7300, 16, 4237, 67, 926, 6872, 16, 4237, 67, 14357, 16, 4237, 67, 945, 16, 4237, 67, 5688, ...
while i < ss.length - 1 and ss[i+1].type == LABEL: i++ if i < ss.length - 1 and ss[i+1].isLoop: i++
while i < len(ss) - 1 and ss[i+1].type == LABEL: i += 1 if i < len(ss) - 1 and ss[i+1].isLoop: i += 1
def Statement(tokenizer, compilerContext): """Parses a Statement.""" tokenType = tokenizer.get(True) builder = compilerContext.builder # Cases for statements ending in a right curly return early, avoiding the # common semicolon insertion magic after this switch. if tokenType == FUNCTION: # DECLARED_FORM extends funD...
e84674e67dd665fd11d61644e7a7afffaad25771 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/e84674e67dd665fd11d61644e7a7afffaad25771/Parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8056, 12, 2316, 1824, 16, 5274, 1042, 4672, 3536, 6656, 279, 8056, 12123, 225, 22302, 273, 10123, 18, 588, 12, 5510, 13, 2089, 273, 5274, 1042, 18, 9574, 225, 468, 385, 3304, 364, 6317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8056, 12, 2316, 1824, 16, 5274, 1042, 4672, 3536, 6656, 279, 8056, 12123, 225, 22302, 273, 10123, 18, 588, 12, 5510, 13, 2089, 273, 5274, 1042, 18, 9574, 225, 468, 385, 3304, 364, 6317, ...
printf("lock failure\n");
printf("lock failure\\n");
# def outputFreeIt(self, name):
c3baa0eff75baec3f4d8d82f2f9994d376cf5e3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c3baa0eff75baec3f4d8d82f2f9994d376cf5e3d/CarbonEvtsupport.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 202, 536, 876, 9194, 7193, 12, 2890, 16, 508, 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...
[ 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 468, 202, 536, 876, 9194, 7193, 12, 2890, 16, 508, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.checkChangedMessage(1, added=[f1, f2, f3, f4, f5])
self.checkChangedMessage(2, added=[f1, f2, f3, f4, f5])
def testAddedOrder(self): f1 = Feed(u'http://example.com/3') f2 = Feed(u'http://example.com/4') f3 = Feed(u'http://example.com/5') f4 = Feed(u'http://example.com/6') f5 = Feed(u'http://example.com/7') self.runUrgentCalls() # We want the ChannelAdded messages to come in the same order the # feeds were added self.checkCh...
69858501f3380a2140e17bd59f52ef0c473defe6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/69858501f3380a2140e17bd59f52ef0c473defe6/messagetest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 8602, 2448, 12, 2890, 4672, 284, 21, 273, 14013, 12, 89, 11, 2505, 2207, 8236, 18, 832, 19, 23, 6134, 284, 22, 273, 14013, 12, 89, 11, 2505, 2207, 8236, 18, 832, 19, 24, 6134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8602, 2448, 12, 2890, 4672, 284, 21, 273, 14013, 12, 89, 11, 2505, 2207, 8236, 18, 832, 19, 23, 6134, 284, 22, 273, 14013, 12, 89, 11, 2505, 2207, 8236, 18, 832, 19, 24, 6134, ...
header = struct.unpack('I', header_bytes)[0]
header = struct.unpack('!I', header_bytes)[0]
def find_header(fp, start_pos=0): import struct fp.seek(start_pos) carry = '' while True: data, carry = carry + fp.read(64*1024), '' if not data: break elif data == '\xff' * len(data): # Lame catch for a pathological edge case in which the data # is all 0xff. continue pos = -1 while pos < len(data): pos = data.find('\...
62d0cd1c16208c1796a5daad2c71f6cb653b48ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11721/62d0cd1c16208c1796a5daad2c71f6cb653b48ce/mp3.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 3374, 12, 7944, 16, 787, 67, 917, 33, 20, 4672, 1930, 1958, 4253, 18, 16508, 12, 1937, 67, 917, 13, 9331, 273, 875, 1323, 1053, 30, 501, 16, 9331, 273, 9331, 397, 4253, 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, 1104, 67, 3374, 12, 7944, 16, 787, 67, 917, 33, 20, 4672, 1930, 1958, 4253, 18, 16508, 12, 1937, 67, 917, 13, 9331, 273, 875, 1323, 1053, 30, 501, 16, 9331, 273, 9331, 397, 4253, 18,...
computed bound is greater than a value set by the eclib
computed bound is greater than a value set by the ``eclib``
def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group.
9932a677a12413086a59217c4c0d425b0543b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/9932a677a12413086a59217c4c0d425b0543b6eb/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
Compare self and right.
Compare ``self`` and ``right``.
def __cmp__(self, right): """ Compare self and right. The ordering is whatever it is in Gap. EXAMPLES:: sage: G1 = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: G2 = PermutationGroup([[(1,2,3),(4,5)]]) sage: G1 > G2 True sage: G1 < G2 False """ if not isinstance(right, PermutationGroup_generic): return -1 return...
1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1a05983ebb3835bbd44e7ffd0287f6bbaee2ac36/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 2145, 4672, 3536, 11051, 12176, 2890, 10335, 471, 12176, 4083, 68, 8338, 225, 1021, 9543, 353, 15098, 518, 353, 316, 611, 438, 18, 225, 5675, 8900, 11386, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9625, 972, 12, 2890, 16, 2145, 4672, 3536, 11051, 12176, 2890, 10335, 471, 12176, 4083, 68, 8338, 225, 1021, 9543, 353, 15098, 518, 353, 316, 611, 438, 18, 225, 5675, 8900, 11386, ...
app = zine.application.get_application() if app is None:
translations = get_translations() if translations is None:
def gettext(string): """Translate type(string)iven string to the language of the application.""" app = zine.application.get_application() if app is None: return unicode(string) return app.translations.gettext(string)
ff0382db399bc9c58e8c38532fb68d4a961f9dff /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/ff0382db399bc9c58e8c38532fb68d4a961f9dff/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24972, 12, 1080, 4672, 3536, 12818, 618, 12, 1080, 13, 837, 533, 358, 326, 2653, 434, 326, 2521, 12123, 7863, 273, 336, 67, 13457, 1435, 309, 7863, 353, 599, 30, 327, 5252, 12, 1080, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24972, 12, 1080, 4672, 3536, 12818, 618, 12, 1080, 13, 837, 533, 358, 326, 2653, 434, 326, 2521, 12123, 7863, 273, 336, 67, 13457, 1435, 309, 7863, 353, 599, 30, 327, 5252, 12, 1080, 1...
self.oldstyle = True
self.oldstyle = oldstyle
def __init__(self, enabled, testclass, modified=False, oldstyle=False): """ if modified is True, the actual test item needs to be taken from the pypy/lib/test2 hierarchy. """ self.enabled = enabled self.testclass = testclass self.modified = modified self.oldstyle = True
454155eb59172d0bbc584f93695da2f5941e00bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/454155eb59172d0bbc584f93695da2f5941e00bf/conftest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3696, 16, 1842, 1106, 16, 4358, 33, 8381, 16, 1592, 4060, 33, 8381, 4672, 3536, 309, 4358, 353, 1053, 16, 326, 3214, 1842, 761, 4260, 358, 506, 9830, 628...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3696, 16, 1842, 1106, 16, 4358, 33, 8381, 16, 1592, 4060, 33, 8381, 4672, 3536, 309, 4358, 353, 1053, 16, 326, 3214, 1842, 761, 4260, 358, 506, 9830, 628...
<td>%d of %d images already graded</td> <td><div id="ph_agraded_div"></div></td>
<td>%d of %d QFits processings already graded</td> <td><div id="ph_agraded_div" style="color: black;"></div></td>
def getProcessingHistoryExtraHeader(self, request): """ Returns extra custom header for qfitsin items """
3d9f2ee9dca674541a3929a3cdad384ef4dbd4c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11651/3d9f2ee9dca674541a3929a3cdad384ef4dbd4c2/qualityfitsin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 7798, 5623, 7800, 1864, 12, 2890, 16, 590, 4672, 3536, 2860, 2870, 1679, 1446, 364, 1043, 18352, 267, 1516, 3536, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 7798, 5623, 7800, 1864, 12, 2890, 16, 590, 4672, 3536, 2860, 2870, 1679, 1446, 364, 1043, 18352, 267, 1516, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"""get the work name, stripping file type and revision index""" l = re.findall(r'(.*)(_[a-z])\.png', filename) if l: return l[0][0] else: return os.path.splitext(filename)[0]
return os.path.splitext(filename)[0]
def basename(filename): """get the work name, stripping file type and revision index""" # this mainly is for the scraps that we save l = re.findall(r'(.*)(_[a-z])\.png', filename) if l: return l[0][0] else: return os.path.splitext(filename)[0]
e60df346386398c9705914ae60e86f9616de7e08 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7129/e60df346386398c9705914ae60e86f9616de7e08/drawwindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4882, 12, 3459, 4672, 3536, 588, 326, 1440, 508, 16, 2569, 1382, 585, 618, 471, 6350, 770, 8395, 468, 333, 31457, 353, 364, 326, 888, 7506, 716, 732, 1923, 328, 273, 283, 18, 4720, 454...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4882, 12, 3459, 4672, 3536, 588, 326, 1440, 508, 16, 2569, 1382, 585, 618, 471, 6350, 770, 8395, 468, 333, 31457, 353, 364, 326, 888, 7506, 716, 732, 1923, 328, 273, 283, 18, 4720, 454...
size = get_xml_tag_strings(item, ["size"])[0]
try: size = get_xml_tag_strings(item, ["size"])[0] except: size = None
def check_file_node(item): ''' Downloads a specific version of a program First parameter, file XML node Second parameter, file path to save to Third parameter, optional, force a new download even if a valid copy already exists Fouth parameter, optional, progress handler callback Returns dictionary of file paths with he...
149a2cdabd6d2203140d240c6756aa4cab80e3a7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6425/149a2cdabd6d2203140d240c6756aa4cab80e3a7/metalink.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 768, 67, 2159, 12, 1726, 4672, 9163, 13059, 87, 279, 2923, 1177, 434, 279, 5402, 5783, 1569, 16, 585, 3167, 756, 7631, 1569, 16, 585, 589, 358, 1923, 358, 935, 6909, 1569, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 67, 768, 67, 2159, 12, 1726, 4672, 9163, 13059, 87, 279, 2923, 1177, 434, 279, 5402, 5783, 1569, 16, 585, 3167, 756, 7631, 1569, 16, 585, 589, 358, 1923, 358, 935, 6909, 1569, 16,...
Selects a node using a XPath like path expresseion.
Selects a node using a XPath like path expression.
def selectNode(node, path): """ Selects a node using a XPath like path expresseion. This function returns None if no matching node was found. Warning: This function usys a depth first search without backtracking!! ".." navigates to the parent node "nodeName" navigates to the first child node of type nodeN...
a13e134d9b0bf18e2d51908716330cb96a28fc74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/a13e134d9b0bf18e2d51908716330cb96a28fc74/treeutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 907, 12, 2159, 16, 589, 4672, 3536, 6766, 87, 279, 756, 1450, 279, 10172, 3007, 589, 2652, 18, 1220, 445, 1135, 599, 309, 1158, 3607, 756, 1703, 1392, 18, 225, 9728, 30, 1220, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2027, 907, 12, 2159, 16, 589, 4672, 3536, 6766, 87, 279, 756, 1450, 279, 10172, 3007, 589, 2652, 18, 1220, 445, 1135, 599, 309, 1158, 3607, 756, 1703, 1392, 18, 225, 9728, 30, 1220, 44...
return [statusentry(l) for l in lines]
return [parse(l) for l in lines]
def applied(self): if os.path.exists(self.join(self.status_path)): lines = self.opener(self.status_path).read().splitlines() return [statusentry(l) for l in lines] return []
c3fb9b13f9f3b0c5438dd558e62124d8c567ec43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/c3fb9b13f9f3b0c5438dd558e62124d8c567ec43/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6754, 12, 2890, 4672, 309, 1140, 18, 803, 18, 1808, 12, 2890, 18, 5701, 12, 2890, 18, 2327, 67, 803, 3719, 30, 2362, 273, 365, 18, 25098, 12, 2890, 18, 2327, 67, 803, 2934, 896, 7675...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6754, 12, 2890, 4672, 309, 1140, 18, 803, 18, 1808, 12, 2890, 18, 5701, 12, 2890, 18, 2327, 67, 803, 3719, 30, 2362, 273, 365, 18, 25098, 12, 2890, 18, 2327, 67, 803, 2934, 896, 7675...
eq(folders, map(normF, ['deep', 'deep/f1', 'deep/f2', 'deep/f2/f3', 'inbox', 'wide']))
tfolders = map(normF, ['deep', 'deep/f1', 'deep/f2', 'deep/f2/f3', 'inbox', 'wide']) tfolders.sort() eq(folders, tfolders)
def test_listfolders(self): mh = getMH() eq = self.assertEquals
b4b1e409f82b2cbb67821f4720da1c1ca0a4240c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b4b1e409f82b2cbb67821f4720da1c1ca0a4240c/test_mhlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1098, 16064, 12, 2890, 4672, 17819, 273, 2108, 44, 1435, 7555, 273, 365, 18, 11231, 8867, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1098, 16064, 12, 2890, 4672, 17819, 273, 2108, 44, 1435, 7555, 273, 365, 18, 11231, 8867, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Return the product of the fractional ideals self and right.
Return the product of the fractional ideals ``self`` and ``right``.
def __mul__(self, right): """ Return the product of the fractional ideals self and right.
1fe7e945a5e69662d3b79300c558387c31fea323 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1fe7e945a5e69662d3b79300c558387c31fea323/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 2145, 4672, 3536, 2000, 326, 3017, 434, 326, 20462, 10572, 1031, 365, 471, 2145, 18, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 2145, 4672, 3536, 2000, 326, 3017, 434, 326, 20462, 10572, 1031, 365, 471, 2145, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for recipe in Recipe.query().filter( Recipe.status==TaskStatus.by_name(u'New')):
recipes = Recipe.query().filter( Recipe.status==TaskStatus.by_name(u'New')) if recipes.count(): log.debug("Entering new_recipes routine") for recipe in recipes:
def new_recipes(*args): for recipe in Recipe.query().filter( Recipe.status==TaskStatus.by_name(u'New')): if recipe.distro: systems = recipe.distro.systems_filter( recipe.recipeset.job.owner, recipe.host_requires ) recipe.systems = [] for system in systems: # Add matched systems to recipe. recipe.systems.append(system) ...
21152319496607664b89fa38802612b4f8236938 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14755/21152319496607664b89fa38802612b4f8236938/recipes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 67, 266, 3449, 281, 30857, 1968, 4672, 5863, 281, 273, 7776, 3151, 18, 2271, 7675, 2188, 12, 7776, 3151, 18, 2327, 631, 2174, 1482, 18, 1637, 67, 529, 12, 89, 11, 1908, 26112, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 394, 67, 266, 3449, 281, 30857, 1968, 4672, 5863, 281, 273, 7776, 3151, 18, 2271, 7675, 2188, 12, 7776, 3151, 18, 2327, 631, 2174, 1482, 18, 1637, 67, 529, 12, 89, 11, 1908, 26112, 309...
expected = "SELECT D.db_document_id, D.document_id, D.title, D.size, D.text, D.url, D.mime_type, D.publication_time FROM documents D, document_scores DS WHERE DS.db_document_id=D.db_document_id AND DS.word IN (%s, %s, %s, %s) GROUP BY DS.db_document_id HAVING count(DS.db_document_id) = %s LIMIT 15 OFFSET 0" print que...
expected = "SELECT D.db_document_id, D.document_id, D.title, D.size, D.text, D.url, D.mime_type, D.publication_time FROM documents D, document_scores DS WHERE DS.db_document_id=D.db_document_id AND DS.word IN (%s, %s, %s, %s) GROUP BY DS.db_document_id HAVING count(DS.db_document_id) = %s LIMIT 15 OFFSET 0" self.assert...
def testContainingQuery(self): query, params = Document._selectContainingQuery(['un', u't', u'', 'la', 'mer']) self.assertEquals(params, [u'un', u'ete', u'la', u'mer', 4]) for p in params[:-1]: self.assertEquals(type(p), unicode) self.assertEquals(len(params), params[-1] + 1) expected = "SELECT D.db_document_id, D.docu...
6e4719f4b268ddb2e27cd8fdc5be0ca5f0724d27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2259/6e4719f4b268ddb2e27cd8fdc5be0ca5f0724d27/test_dbentity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 24344, 1138, 12, 2890, 4672, 843, 16, 859, 273, 4319, 6315, 4025, 24344, 1138, 12, 3292, 318, 2187, 582, 1404, 2187, 582, 11, 2187, 296, 11821, 2187, 296, 6592, 19486, 365, 18, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24344, 1138, 12, 2890, 4672, 843, 16, 859, 273, 4319, 6315, 4025, 24344, 1138, 12, 3292, 318, 2187, 582, 1404, 2187, 582, 11, 2187, 296, 11821, 2187, 296, 6592, 19486, 365, 18, 112...
try: thunk() except TestFailed: if verbose: print "failed (expected %s but got %s)" % (result, test_result) raise TestFailed, name else: if verbose: print "ok"
thunk() if verbose: print "ok"
def run_test(name, thunk): if verbose: print "testing %s..." % name, try: thunk() except TestFailed: if verbose: print "failed (expected %s but got %s)" % (result, test_result) raise TestFailed, name else: if verbose: print "ok"
c8cba5afd5227dd0e35904dd00d844e47ca1c07a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c8cba5afd5227dd0e35904dd00d844e47ca1c07a/test_gc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3813, 12, 529, 16, 286, 1683, 4672, 309, 3988, 30, 1172, 315, 3813, 310, 738, 87, 7070, 738, 508, 16, 286, 1683, 1435, 309, 3988, 30, 1172, 315, 601, 6, 225, 2, 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, 1, 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, 1086, 67, 3813, 12, 529, 16, 286, 1683, 4672, 309, 3988, 30, 1172, 315, 3813, 310, 738, 87, 7070, 738, 508, 16, 286, 1683, 1435, 309, 3988, 30, 1172, 315, 601, 6, 225, 2, -100, -100,...
self.x, self.y = self.GetPositionTuple() width, height = self.GetClientSize() self.r_fieldWidth = (width - (self.m_BorderRight + self.m_BorderLeft)) self.r_fieldHeight = (height - (self.m_BorderUp + self.m_BorderDown)) self.r_rangeWidth = (self.m_MinMax[1] - self.m_MinMax[0]) self.pixel_per_value = float(self.r_f...
self._update_size()
def __init__(self, parent, id=wx.ID_ANY, label="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.NO_BORDER, validator=wx.DefaultValidator, name="TransferFunction"): wx.PyControl.__init__(self, parent, id, pos, size, style, validator, name) # Local Variables self.m_BorderLeft = 20 self.m_BorderUp = 5 self.m_Bo...
8266f3e7a480eb6b62c06787a109e6d21a27c094 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4494/8266f3e7a480eb6b62c06787a109e6d21a27c094/transfer_function_widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 33, 27226, 18, 734, 67, 15409, 16, 1433, 1546, 3113, 949, 33, 27226, 18, 1868, 2555, 16, 963, 33, 27226, 18, 1868, 1225, 16, 2154, 33, 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, 1001, 2738, 972, 12, 2890, 16, 982, 16, 612, 33, 27226, 18, 734, 67, 15409, 16, 1433, 1546, 3113, 949, 33, 27226, 18, 1868, 2555, 16, 963, 33, 27226, 18, 1868, 1225, 16, 2154, 33, 27...
def processComment(self, data): self.parser.openElements[-1].appendChild(CommentNode(data))
def processCharacter(self, data): if character in spaceCharacters: self.parser.openElements[-1].appendChild(TextNode(character)) else: raise NotImplementedError()
531a062e6b87c82cd7cd538c4ad0aab49fb48e9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/531a062e6b87c82cd7cd538c4ad0aab49fb48e9b/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 7069, 12, 2890, 16, 501, 4672, 309, 3351, 316, 3476, 11600, 30, 365, 18, 4288, 18, 3190, 3471, 18919, 21, 8009, 6923, 1763, 12, 17299, 12, 11560, 3719, 469, 30, 1002, 11206, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 7069, 12, 2890, 16, 501, 4672, 309, 3351, 316, 3476, 11600, 30, 365, 18, 4288, 18, 3190, 3471, 18919, 21, 8009, 6923, 1763, 12, 17299, 12, 11560, 3719, 469, 30, 1002, 11206, 1435, ...
obj = self.cache.get(self.sources[self.sourceIndex], tile)
obj = self.cache.get((self.sources[self.sourceIndex], tile))
def drawTile(self, x, y, tile): """Retrieve and draw one tile at the given position""" obj = self.cache.get(self.sources[self.sourceIndex], tile) obj.draw(self.backbuffer, x, y)
efe1dfc8e6ac0f44501afa68d307a3e636b5ea7e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/efe1dfc8e6ac0f44501afa68d307a3e636b5ea7e/pyhole.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 9337, 12, 2890, 16, 619, 16, 677, 16, 4769, 4672, 3536, 5767, 471, 3724, 1245, 4769, 622, 326, 864, 1754, 8395, 1081, 273, 365, 18, 2493, 18, 588, 12443, 2890, 18, 10141, 63, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3724, 9337, 12, 2890, 16, 619, 16, 677, 16, 4769, 4672, 3536, 5767, 471, 3724, 1245, 4769, 622, 326, 864, 1754, 8395, 1081, 273, 365, 18, 2493, 18, 588, 12443, 2890, 18, 10141, 63, 289...
relation = self._inherit_fields[node.getAttribute('name')][2]._obj
column = self._inherit_fields[node.getAttribute('name')][2]
def __view_look_dom(self, cr, user, node, view_id, context=None): if not context: context = {} result = False fields = {} childs = True
45f34ac9eb7f3d2d5bb3e09f3d53f64a9f5e642e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/45f34ac9eb7f3d2d5bb3e09f3d53f64a9f5e642e/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1945, 67, 7330, 67, 9859, 12, 2890, 16, 4422, 16, 729, 16, 756, 16, 1476, 67, 350, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 563, 273, 1083, 1466, 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, 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, 1945, 67, 7330, 67, 9859, 12, 2890, 16, 4422, 16, 729, 16, 756, 16, 1476, 67, 350, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 273, 2618, 563, 273, 1083, 1466, 273, 2618, ...
print >>controlfile, "Depends: libc6, libgcc1, libstdc++6, libx11-6 libssl0.9.8"
print >>controlfile, "Depends: libc6, libgcc1, libstdc++6, libx11-6, libssl0.9.8"
def buildDEB(self, output, platform): """ Builds a .deb archive and stores it in the path indicated by the 'output' argument. It will be built for the architecture specified by the 'arch' argument. If 'output' is a directory, the deb file will be stored in it. """ arch = platform.rsplit("_", 1)[-1] output = Filename(o...
2c47ebfe5b9b00473c2e531e8613de79f9bfbe69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/2c47ebfe5b9b00473c2e531e8613de79f9bfbe69/DeploymentTools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 1639, 38, 12, 2890, 16, 876, 16, 4072, 4672, 3536, 3998, 87, 279, 263, 31888, 5052, 471, 9064, 518, 316, 326, 589, 17710, 635, 326, 296, 2844, 11, 1237, 18, 2597, 903, 506, 6650,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1639, 38, 12, 2890, 16, 876, 16, 4072, 4672, 3536, 3998, 87, 279, 263, 31888, 5052, 471, 9064, 518, 316, 326, 589, 17710, 635, 326, 296, 2844, 11, 1237, 18, 2597, 903, 506, 6650,...
@raise errors.OpProgrammerError: if the nodes parameter is wrong type
@raise errors.ProgrammerError: if the nodes parameter is wrong type
def _GetWantedNodes(lu, nodes): """Returns list of checked and expanded node names. @type lu: L{LogicalUnit} @param lu: the logical unit on whose behalf we execute @type nodes: list @param nodes: list of node names or None for all nodes @rtype: list @return: the list of nodes, sorted @raise errors.OpProgrammerError: i...
083a91c929379287b01c32e61ad292698a103759 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/083a91c929379287b01c32e61ad292698a103759/cmdlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 967, 59, 970, 329, 3205, 12, 28832, 16, 2199, 4672, 3536, 1356, 666, 434, 5950, 471, 8406, 756, 1257, 18, 225, 632, 723, 20072, 30, 511, 95, 17955, 2802, 97, 632, 891, 20072, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 967, 59, 970, 329, 3205, 12, 28832, 16, 2199, 4672, 3536, 1356, 666, 434, 5950, 471, 8406, 756, 1257, 18, 225, 632, 723, 20072, 30, 511, 95, 17955, 2802, 97, 632, 891, 20072, 30, ...
"""<TR colspan="2"><TD></TD></TR>""" % (imagesurl,zlib.decompress(preabstract))
"""<TR colspan="2"><TD></TD></TR>""" % (imagesurl,preabstract)
def display_basket_content(uid, id_basket, basket_name): out = "" out_tmp="" # search for basket's items if (id_basket != '0') and (id_basket != 0): query_result = run_sql("SELECT br.id_record,br.nb_order, fmt.value "\ "FROM basket_record br, bibfmt fmt "\ "WHERE br.id_basket=%s AND br.id_record=fmt.id_bibrec AND fmt...
3a8ea0fba4fda25139d10609e40e739373b11485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/3a8ea0fba4fda25139d10609e40e739373b11485/webbasket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 26219, 67, 1745, 12, 1911, 16, 612, 67, 26219, 16, 12886, 67, 529, 4672, 225, 596, 273, 1408, 596, 67, 5645, 1546, 6, 225, 468, 1623, 364, 12886, 1807, 1516, 309, 261, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2562, 67, 26219, 67, 1745, 12, 1911, 16, 612, 67, 26219, 16, 12886, 67, 529, 4672, 225, 596, 273, 1408, 596, 67, 5645, 1546, 6, 225, 468, 1623, 364, 12886, 1807, 1516, 309, 261, 350, ...
remove_paths.add(path + '.pyc')
paths_to_remove.add(path + '.pyc')
def uninstall(self, auto_confirm=False): assert self.check_if_exists(), "Cannot uninstall requirement %s, not installed" % (self.name,) dist = self.satisfied_by remove_paths = set() remove_from_easy_install_pth = set() easy_install_pth = os.path.join(lib_py, os.path.join('site-packages', 'easy-install.pth'))
83f9d9c18b33d7eaefd25541ebfcc8eb4c825233 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12982/83f9d9c18b33d7eaefd25541ebfcc8eb4c825233/pip.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16577, 12, 2890, 16, 3656, 67, 10927, 33, 8381, 4672, 1815, 365, 18, 1893, 67, 430, 67, 1808, 9334, 315, 4515, 16577, 12405, 738, 87, 16, 486, 5876, 6, 738, 261, 2890, 18, 529, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16577, 12, 2890, 16, 3656, 67, 10927, 33, 8381, 4672, 1815, 365, 18, 1893, 67, 430, 67, 1808, 9334, 315, 4515, 16577, 12405, 738, 87, 16, 486, 5876, 6, 738, 261, 2890, 18, 529, 16, 1...
exec _buildFacade(spec, callable.__doc__) in facade_globs return facade_globs['_facade']
exec _buildFacade(name, spec, callable.__doc__) in facade_globs return facade_globs[name]
def _curried(*args, **kw): request = args[r_index] if IBrowserRequest.providedBy(request): if request.method not in methods: raise Forbidden('Request must be %s' % methodsstr)
cd5a3f35aa0e6c7ef5af3f0eeb036f2d540789e0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9658/cd5a3f35aa0e6c7ef5af3f0eeb036f2d540789e0/requestmethod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1397, 24012, 30857, 1968, 16, 2826, 9987, 4672, 590, 273, 833, 63, 86, 67, 1615, 65, 309, 467, 9132, 691, 18, 29206, 858, 12, 2293, 4672, 309, 590, 18, 2039, 486, 316, 2590, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1397, 24012, 30857, 1968, 16, 2826, 9987, 4672, 590, 273, 833, 63, 86, 67, 1615, 65, 309, 467, 9132, 691, 18, 29206, 858, 12, 2293, 4672, 309, 590, 18, 2039, 486, 316, 2590, 30, ...
Makefile.write("all: cm3\n\n")
Makefile.write(".SUFFIXES:\nall: cm3\n\n")
def Boot(): global BuildLocal BuildLocal += " -boot -keep " Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. Compile = ("gcc -g -fPIC " + ({ "AMD64_LINUX" : " -m64 -mno-align-double ", "LINUXLIBC6" ...
9f179a9c489d0de8e6f0bc58ed2e4f9647f10077 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9328/9f179a9c489d0de8e6f0bc58ed2e4f9647f10077/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 315, 225, 4049, 273, 315, 21, 6, 225, 468, 1220, 1779, 353, 16975, 628, 326, 642, 1390, 18, 468, 399, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 315, 225, 4049, 273, 315, 21, 6, 225, 468, 1220, 1779, 353, 16975, 628, 326, 642, 1390, 18, 468, 399, ...
api_sig = self.flickr_create_api_signature(auth_token=self.flickr_authtoken,method='flickr.photos.getSizes', photo_id=photo_id) d = self.flickr_call('flickr.photos.getSizes', auth_token=self.flickr_authtoken, photo_id=photo_id,api_sig=api_sig) return d
if self.flickr_authtoken != None: api_sig = self.flickr_create_api_signature(auth_token=self.flickr_authtoken,method='flickr.photos.getSizes', photo_id=photo_id) d = self.flickr_call('flickr.photos.getSizes', auth_token=self.flickr_authtoken, photo_id=photo_id,api_sig=api_sig) else: api_sig = self.flickr_create_api_sig...
def flickr_photos_getSizes(self, photo_id=None): api_sig = self.flickr_create_api_signature(auth_token=self.flickr_authtoken,method='flickr.photos.getSizes', photo_id=photo_id) d = self.flickr_call('flickr.photos.getSizes', auth_token=self.flickr_authtoken, photo_id=photo_id,api_sig=api_sig) return d
4e5d5bfba716c8fed77c1e8c6f284c4576a87408 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/4e5d5bfba716c8fed77c1e8c6f284c4576a87408/flickr_storage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 16254, 67, 29121, 67, 588, 11923, 12, 2890, 16, 10701, 67, 350, 33, 7036, 4672, 1536, 67, 7340, 273, 365, 18, 2242, 16254, 67, 2640, 67, 2425, 67, 8195, 12, 1944, 67, 2316, 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, 1183, 16254, 67, 29121, 67, 588, 11923, 12, 2890, 16, 10701, 67, 350, 33, 7036, 4672, 1536, 67, 7340, 273, 365, 18, 2242, 16254, 67, 2640, 67, 2425, 67, 8195, 12, 1944, 67, 2316, 33, ...
assert ( isinstance ( val, int ) )
AssertInt32(val)
def UpdateAttributes ( self, index, attrs, values, mva=False ): """ Update given attribute values on given documents in given indexes. Returns amount of updated documents (0 or more) on success, or -1 on failure.
c4645cbf3af9465130a920c32784c7ec87f66962 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5754/c4645cbf3af9465130a920c32784c7ec87f66962/sphinxapi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2315, 2498, 261, 365, 16, 770, 16, 3422, 16, 924, 16, 7701, 69, 33, 8381, 262, 30, 3536, 2315, 864, 1566, 924, 603, 864, 7429, 316, 864, 5596, 18, 2860, 3844, 434, 3526, 7429, 261, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2315, 2498, 261, 365, 16, 770, 16, 3422, 16, 924, 16, 7701, 69, 33, 8381, 262, 30, 3536, 2315, 864, 1566, 924, 603, 864, 7429, 316, 864, 5596, 18, 2860, 3844, 434, 3526, 7429, 261, 2...
debug_uuid = uuid.createString()
debug_uuid = genuuid.createString()
def debug_create(self, session): debug_uuid = uuid.createString() self._debug[debug_uuid] = None return xen_api_success(debug_uuid)
3070d0cfb532c3b4a9b62a3d967edd6f3daa970b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/3070d0cfb532c3b4a9b62a3d967edd6f3daa970b/XendAPI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 67, 2640, 12, 2890, 16, 1339, 4672, 1198, 67, 7080, 273, 314, 2104, 1911, 18, 2640, 780, 1435, 365, 6315, 4148, 63, 4148, 67, 7080, 65, 273, 599, 327, 23048, 67, 2425, 67, 4768, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1198, 67, 2640, 12, 2890, 16, 1339, 4672, 1198, 67, 7080, 273, 314, 2104, 1911, 18, 2640, 780, 1435, 365, 6315, 4148, 63, 4148, 67, 7080, 65, 273, 599, 327, 23048, 67, 2425, 67, 4768, ...
if (a.endswith(".ms") or a.endswith(".is") or a.endswith(".s") or a.endswith(".c")): CopyFile(os.path.join(Root, dir, Config, a), BootDir) Makefile.write("Objects += " + a + ".o\n" + a + ".o: " + a + "\n\t") if a.endswith(".c"): Command = "Compile" else: Command = "Assemble" for b in [Make, Makefile]: b.write("${" + Co...
if not (a.endswith(".ms") or a.endswith(".is") or a.endswith(".s") or a.endswith(".c") or a.endswith(".h")): continue CopyFile(os.path.join(Root, dir, Config, a), BootDir) if a.endswith("ThreadApple.c") or a.endswith("ThreadFreeBSD.c") or a.endswith(".h"): continue Makefile.write("Objects += " + a + ".o\n" + a + ".o: "...
def Boot(): global BuildLocal BuildLocal += " -boot -keep -DM3CC_TARGET=" + Target Version = "1" # This information is duplicated from the config files. # TBD: put it only in one place. # The older bootstraping method does get that right. SunCompile = "/usr/ccs/bin/cc -g -mt -xcode=pic32 -xldscope=symbolic " GnuCo...
c06bb87ec77476d54d9b2fdd5bb3031990b86c63 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9328/c06bb87ec77476d54d9b2fdd5bb3031990b86c63/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 300, 16125, 23, 6743, 67, 16374, 1546, 397, 5916, 225, 4049, 273, 315, 21, 6, 225, 468, 1220, 1779, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26254, 13332, 225, 2552, 3998, 2042, 3998, 2042, 1011, 315, 300, 7137, 300, 10102, 300, 16125, 23, 6743, 67, 16374, 1546, 397, 5916, 225, 4049, 273, 315, 21, 6, 225, 468, 1220, 1779, 353...
fast_resume_data = { 'already_got': storagewrapper.get_have_list(), 'mtimes': dict([(f.encode('utf-8'), path.getmtime(f)) for \ f, size in files]), } self.fast_resume_queue.put(bencode(fast_resume_data))
try: fast_resume_data = { 'already_got': storagewrapper.get_have_list(), 'mtimes': dict([(f.encode('utf-8'), path.getmtime(f)) for \ f, size in files]), } self.fast_resume_queue.put(bencode(fast_resume_data)) except: self.fast_resume_queue.put(None) raise
def make_upload(connection, choker = choker, storagewrapper = storagewrapper, max_slice_length = config['max_slice_length'], max_rate_period = config['max_rate_period'], fudge = config['upload_rate_fudge']): return Upload(connection, choker, storagewrapper, max_slice_length, max_rate_period, fudge)
b8f94646adacf939ca355f2179b8cd44d634199a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/b8f94646adacf939ca355f2179b8cd44d634199a/bittorrent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 6327, 12, 4071, 16, 462, 601, 264, 273, 462, 601, 264, 16, 19705, 346, 359, 1266, 457, 273, 19705, 346, 359, 1266, 457, 16, 943, 67, 6665, 67, 2469, 273, 642, 3292, 1896, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 67, 6327, 12, 4071, 16, 462, 601, 264, 273, 462, 601, 264, 16, 19705, 346, 359, 1266, 457, 273, 19705, 346, 359, 1266, 457, 16, 943, 67, 6665, 67, 2469, 273, 642, 3292, 1896, 6...
port, path_to_figures):
port, path_to_figures, pdf=False, graph=False):
def build_vistrails_cmd_line(path_to_vistrails, host, db_name, vt_id, version, port, path_to_figures): """ build_vistrails_cmd_line(path_to_vistrails: str, host: str, db_name: str, vt_id: str, version: str, path_to_figures: str) -> str Build the command line to run vistrails with the given parameters. """ cmd_line = 'p...
3123297d6a1b374a7b720af850b6ee46e7955b16 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6341/3123297d6a1b374a7b720af850b6ee46e7955b16/includevistrail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 90, 3337, 15208, 67, 4172, 67, 1369, 12, 803, 67, 869, 67, 90, 3337, 15208, 16, 1479, 16, 1319, 67, 529, 16, 7966, 67, 350, 16, 1177, 16, 1756, 16, 589, 67, 869, 67, 470,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 90, 3337, 15208, 67, 4172, 67, 1369, 12, 803, 67, 869, 67, 90, 3337, 15208, 16, 1479, 16, 1319, 67, 529, 16, 7966, 67, 350, 16, 1177, 16, 1756, 16, 589, 67, 869, 67, 470,...
nsmap = kwargs.pop('nsmap', None) element = self.to_element(nsmap=nsmap) if kwargs.pop('validate', self._validate_output):
element = self.to_element(*args, **kwargs) if kwargs.pop('validate', self._validate_output) and self._xml_schema is not None:
def toxml(self, *args, **kwargs): nsmap = kwargs.pop('nsmap', None) element = self.to_element(nsmap=nsmap) if kwargs.pop('validate', self._validate_output): self._xml_schema.assertValid(element) kwargs.setdefault('encoding', self.encoding) kwargs.setdefault('xml_declaration', self._xml_declaration) return etree.tostri...
b58735788a7c14cafeb8fb076c083d01782d57f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/b58735788a7c14cafeb8fb076c083d01782d57f9/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 2902, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 930, 273, 365, 18, 869, 67, 2956, 30857, 1968, 16, 2826, 4333, 13, 309, 1205, 18, 5120, 2668, 5662, 2187, 365, 6315, 5662, 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, 358, 2902, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 930, 273, 365, 18, 869, 67, 2956, 30857, 1968, 16, 2826, 4333, 13, 309, 1205, 18, 5120, 2668, 5662, 2187, 365, 6315, 5662, 67,...
"""Walk the list of source files in 'sources', looking for SWIG interface (.i) files. Run SWIG on all that are found, and return a modified 'sources' list with SWIG source files replaced by the generated C (or C++) files. """
def swig_sources (self, sources):
def swig_sources (self, sources): """Walk the list of source files in 'sources', looking for SWIG interface (.i) files. Run SWIG on all that are found, and return a modified 'sources' list with SWIG source files replaced by the generated C (or C++) files. """ new_sources = [] swig_sources = [] swig_targets = {} # X...
792d215f022fc86e5b15c34c904b2f0ac7c51fb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/792d215f022fc86e5b15c34c904b2f0ac7c51fb7/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 4672, 225, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 4672, 225, 394, 67, 10141, 273, 5378, 1352, 360, 67, 10141, 273, 5378, 1352, 360, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 4672, 225, 1652, 1352, 360, 67, 10141, 261, 2890, 16, 5550, 4672, 225, 394, 67, 10141, 273, 5378, 1352, 360, 67, 10141, 273, 5378, 1352, 360, ...
except ImportError:
except ImportError, err:
def webapp_add_wsgi_middleware(app): try: from appstats import recording except ImportError: logging.info('Failed to import recording: %s', err) else: app = recording.appstats_wsgi_middleware(app) try: from firepython import middleware except ImportError, err: logging.info('Failed to import firepython: %s', err) else...
39430455cc111e2d3665d3f80800f0924f83497a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/476/39430455cc111e2d3665d3f80800f0924f83497a/appengine_config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28945, 67, 1289, 67, 28539, 67, 17352, 12, 2910, 4672, 225, 775, 30, 628, 595, 5296, 1930, 14949, 1335, 11308, 16, 393, 30, 2907, 18, 1376, 2668, 2925, 358, 1930, 14949, 30, 738, 87, 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, 28945, 67, 1289, 67, 28539, 67, 17352, 12, 2910, 4672, 225, 775, 30, 628, 595, 5296, 1930, 14949, 1335, 11308, 16, 393, 30, 2907, 18, 1376, 2668, 2925, 358, 1930, 14949, 30, 738, 87, 2...
4*5 + 3*5^2 + 3*5^3 + 4*5^4 + 4*5^5 + 5^6 + 4*5^8 + O(5^9)
4*5 + 3*5^2 + 3*5^3 + 4*5^4 + 4*5^5 + 5^6 + 4*5^8 + 3*5^9 + O(5^10)
def padic_regulator(self, p, prec=20, height=None, check_hypotheses=True): r""" Computes the cyclotomic p-adic regulator of this curve.
dc02e67e52b9174198fb76d7b9504168026ea700 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/dc02e67e52b9174198fb76d7b9504168026ea700/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4627, 335, 67, 1574, 11775, 12, 2890, 16, 293, 16, 13382, 33, 3462, 16, 2072, 33, 7036, 16, 866, 67, 76, 879, 10370, 281, 281, 33, 5510, 4672, 436, 8395, 14169, 281, 326, 6143, 830, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4627, 335, 67, 1574, 11775, 12, 2890, 16, 293, 16, 13382, 33, 3462, 16, 2072, 33, 7036, 16, 866, 67, 76, 879, 10370, 281, 281, 33, 5510, 4672, 436, 8395, 14169, 281, 326, 6143, 830, ...
callback_arguments=param_list) for (ix, iy), title, param_list
callback_arguments=param_dict) for (ix, iy), title, param_dict
def _create_line(plots, labels, queries, invert, single): """\ Given all the data for the metrics, create a line plot. plots: list of dicts containing the plot data. Each dict contains: x: list of x-values for the plot y: list of corresponding y-values errors: errors for each data point, or None if no error informatio...
65437c2a8cdbd195cc7b6b214c58d4c70ebbf509 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/65437c2a8cdbd195cc7b6b214c58d4c70ebbf509/graphing_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2640, 67, 1369, 12, 13214, 16, 3249, 16, 6218, 16, 9848, 16, 2202, 4672, 3536, 64, 16803, 777, 326, 501, 364, 326, 4309, 16, 752, 279, 980, 3207, 18, 225, 17931, 30, 666, 434, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2640, 67, 1369, 12, 13214, 16, 3249, 16, 6218, 16, 9848, 16, 2202, 4672, 3536, 64, 16803, 777, 326, 501, 364, 326, 4309, 16, 752, 279, 980, 3207, 18, 225, 17931, 30, 666, 434, 1...
package = self.ownet
package = self.owner
def _get_ns_dict(self): if hasattr(self, "ADVENE_TYPE"): package = self.ownet else: package = self namespaces = {} prefixes = package.get_meta(PARSER_META_PREFIX + "namespaces", "") for line in prefixes.split("\n"): if line: prefix, uri = line.split(" ") namespaces[prefix] = uri return namespaces
95888680eff12eb4d4ddc00a9f348571994a1abc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11977/95888680eff12eb4d4ddc00a9f348571994a1abc/meta.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 2387, 67, 1576, 12, 2890, 4672, 309, 3859, 12, 2890, 16, 315, 1880, 58, 1157, 41, 67, 2399, 6, 4672, 2181, 273, 365, 18, 8443, 469, 30, 2181, 273, 365, 7728, 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, 389, 588, 67, 2387, 67, 1576, 12, 2890, 4672, 309, 3859, 12, 2890, 16, 315, 1880, 58, 1157, 41, 67, 2399, 6, 4672, 2181, 273, 365, 18, 8443, 469, 30, 2181, 273, 365, 7728, 273, 2618,...
self.set_stroke_width(2.0)
self._set_stroke_width(2.0)
def _svg_circle_of_dots(self, n, x, y): rtab = {5:9, 7:13, 11:17} r = rtab[n] ox = 0 oy = 32.5 da = pi * 2 / n a = 0 nx = ox + sin(a) * r ny = oy + cos(a) * r svg_string = "%s%f%s%f%s" % ("<g\n transform=\"translate(", x, ", ", y, ")\">\n") self.set_stroke_width(2.0) for i in range(n): svg_string += self._svg_circle(...
3abdde2d4415b99e072401aa95cc310d13046e05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7609/3abdde2d4415b99e072401aa95cc310d13046e05/gencards.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11451, 67, 18970, 67, 792, 67, 72, 6968, 12, 2890, 16, 290, 16, 619, 16, 677, 4672, 436, 7032, 273, 288, 25, 30, 29, 16, 2371, 30, 3437, 16, 4648, 30, 4033, 97, 436, 273, 436,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11451, 67, 18970, 67, 792, 67, 72, 6968, 12, 2890, 16, 290, 16, 619, 16, 677, 4672, 436, 7032, 273, 288, 25, 30, 29, 16, 2371, 30, 3437, 16, 4648, 30, 4033, 97, 436, 273, 436,...
def with_warning_restore(func): @wraps(func) def decorator(*args, **kw): with warnings.catch_warnings(): warnings.simplefilter("always") warnings.filterwarnings("error", category=DeprecationWarning) return func(*args, **kw) return decorator
def with_warning_restore(func): @wraps(func) def decorator(*args, **kw): with warnings.catch_warnings(): # We need this function to warn every time, so stick an # unqualifed 'always' at the head of the filter list warnings.simplefilter("always") warnings.filterwarnings("error", category=DeprecationWarning) return func(...
bcd7347b7882853fa5e5ff5fc3a15e495b640b42 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/bcd7347b7882853fa5e5ff5fc3a15e495b640b42/test_struct.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 598, 67, 8551, 67, 13991, 12, 644, 4672, 632, 91, 7506, 12, 644, 13, 1652, 7367, 30857, 1968, 16, 2826, 9987, 4672, 598, 5599, 18, 14683, 67, 12103, 13332, 468, 1660, 1608, 333, 445, 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, 598, 67, 8551, 67, 13991, 12, 644, 4672, 632, 91, 7506, 12, 644, 13, 1652, 7367, 30857, 1968, 16, 2826, 9987, 4672, 598, 5599, 18, 14683, 67, 12103, 13332, 468, 1660, 1608, 333, 445, 3...
return
return 0, 0
def write_results_file(self, path, lines, lnotab, lines_hit): """Return a coverage results file in path."""
83bab1a343de156fe75bec67d3be828dacfed2bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/83bab1a343de156fe75bec67d3be828dacfed2bf/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4717, 67, 768, 12, 2890, 16, 589, 16, 2362, 16, 328, 902, 378, 16, 2362, 67, 15989, 4672, 3536, 990, 279, 11196, 1686, 585, 316, 589, 12123, 2, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 4717, 67, 768, 12, 2890, 16, 589, 16, 2362, 16, 328, 902, 378, 16, 2362, 67, 15989, 4672, 3536, 990, 279, 11196, 1686, 585, 316, 589, 12123, 2, -100, -100, -100, -100, -100, ...
signature_re = (r'^\s*((?P<class>\w+)\.)?' + r'(?P<func>%s)' % func.__name__ + r'\((?P<params>(\w+(,\s*\w+)*)?)\)' + r'(\s*->\s*(?P<return>\S.*))?'+ r'\s*(\n|\s+--\s+|$)') m = re.match(signature_re, (_getdoc(func) or '')) if m: if m.group('params'): for name in m.group('params').split(','):
if params: while '[' in params or ']' in params: m2 = re.match(r'(.*)\[([^\[\]]+)\](.*)', params) if not m2: self._vararg_param = Var('...') return (start, mid, end) = m2.groups() mid = re.sub(r'((,|^)\s*[\w\-\.]+)', r'\1=...', mid) params = start+mid+end params = re.sub(r'=...=' , r'=', params) for name in params.s...
def _init_builtin_signature(self, func): self._params = [] self._kwarg_param = None self._vararg_param = None self._return = Var('return') # Check if there's a "builtin signature" available. signature_re = (r'^\s*((?P<class>\w+)\.)?' + r'(?P<func>%s)' % func.__name__ + r'\((?P<params>(\w+(,\s*\w+)*)?)\)' + r'(\s*->\s*...
d3395d508175517a8a8289ffc33bd81b4ee231c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/d3395d508175517a8a8289ffc33bd81b4ee231c2/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 24553, 67, 8195, 12, 2890, 16, 1326, 4672, 365, 6315, 2010, 273, 5378, 365, 6315, 31029, 67, 891, 273, 599, 365, 6315, 24823, 67, 891, 273, 599, 365, 6315, 2463, 273, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 67, 24553, 67, 8195, 12, 2890, 16, 1326, 4672, 365, 6315, 2010, 273, 5378, 365, 6315, 31029, 67, 891, 273, 599, 365, 6315, 24823, 67, 891, 273, 599, 365, 6315, 2463, 273, 45...
var, num = match.group(1, 2) return string.atoi(num), var
var, num = match.groups() return int(num), var
def makekey(item, prog=prog): match = prog.match(item) if match: var, num = match.group(1, 2) return string.atoi(num), var else: # Bad input -- pretend it's a var with value 0 return 0, item
f1ca811abb26b9ade70cb80ddc2dc8ed89b330b3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/f1ca811abb26b9ade70cb80ddc2dc8ed89b330b3/sortingtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 856, 12, 1726, 16, 11243, 33, 14654, 4672, 845, 273, 11243, 18, 1916, 12, 1726, 13, 309, 845, 30, 569, 16, 818, 273, 845, 18, 4650, 1435, 327, 509, 12, 2107, 3631, 569, 469, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 856, 12, 1726, 16, 11243, 33, 14654, 4672, 845, 273, 11243, 18, 1916, 12, 1726, 13, 309, 845, 30, 569, 16, 818, 273, 845, 18, 4650, 1435, 327, 509, 12, 2107, 3631, 569, 469, 30...
charset=email_charset, debug=False, From=source)
charset=email_charset, debug=False)
def __call__(self): portal_membership = getToolByName(aq_inner(self.context), 'portal_membership') portal_groups = getToolByName(aq_inner(self.context), 'portal_groups')
da1fe382ecdb86056ba66d92fc5170b5c73b732c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8674/da1fe382ecdb86056ba66d92fc5170b5c73b732c/mail.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 11899, 67, 19679, 273, 336, 6364, 5911, 12, 69, 85, 67, 7872, 12, 2890, 18, 2472, 3631, 296, 24386, 67, 19679, 6134, 11899, 67, 4650, 273, 336, 6364, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 4672, 11899, 67, 19679, 273, 336, 6364, 5911, 12, 69, 85, 67, 7872, 12, 2890, 18, 2472, 3631, 296, 24386, 67, 19679, 6134, 11899, 67, 4650, 273, 336, 6364, 5...
import zipfile, tempfile
import zipfile
def addArchive(self, defaultArchive): import zipfile, tempfile zf = zipfile.ZipFile(path.join(self.rootpath, defaultArchive)) self.archives[defaultArchive] = map(lambda fl: fl.filename, zf.filelist)
ac557e78fd3cba73d89c0cd2965d6ff5789707e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ac557e78fd3cba73d89c0cd2965d6ff5789707e7/ImageStore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 7465, 12, 2890, 16, 805, 7465, 4672, 1930, 18823, 22758, 273, 18823, 18, 29394, 12, 803, 18, 5701, 12, 2890, 18, 3085, 803, 16, 805, 7465, 3719, 365, 18, 991, 3606, 63, 1886, 7465...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 7465, 12, 2890, 16, 805, 7465, 4672, 1930, 18823, 22758, 273, 18823, 18, 29394, 12, 803, 18, 5701, 12, 2890, 18, 3085, 803, 16, 805, 7465, 3719, 365, 18, 991, 3606, 63, 1886, 7465...
elif ttype == RPM_CHAR: data = unpack("!%dc" % count, fmt2[offset:offset + count]) elif ttype == RPM_INT8:
elif ttype == RPM_INT8 or ttype == RPM_CHAR:
def __parseIndex(self, indexNo, fmt, fmt2, dorpmtag): hdr = HdrIndex() if len(dorpmtag) == 0: return hdr for i in xrange(0, indexNo * 16, 16): (tag, ttype, offset, count) = unpack("!IIII", fmt[i:i + 16]) if not dorpmtag.has_key(tag): continue nametag = dorpmtag[tag][4] if ttype == RPM_STRING_ARRAY or ttype == RPM_I18NS...
9d8954635a98e616d42d72e82745fa2d8820963e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/9d8954635a98e616d42d72e82745fa2d8820963e/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2670, 1016, 12, 2890, 16, 770, 2279, 16, 1325, 16, 1325, 22, 16, 302, 280, 84, 1010, 346, 4672, 7723, 273, 670, 3069, 1016, 1435, 309, 562, 12, 72, 280, 84, 1010, 346, 13, 422,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2670, 1016, 12, 2890, 16, 770, 2279, 16, 1325, 16, 1325, 22, 16, 302, 280, 84, 1010, 346, 4672, 7723, 273, 670, 3069, 1016, 1435, 309, 562, 12, 72, 280, 84, 1010, 346, 13, 422,...
[90 62] [70 33]
[90 62] [70 33]
def matrix_of_frobenius(Q, p, M, trace=None, compute_exact_forms=False): """ Computes the matrix of Frobenius on Monsky-Washnitzer cohomology, with respect to the basis $(dx/y, x dx/y)$. INPUT: Q -- cubic polynomial $Q(x) = x^3 + ax + b$ defining an elliptic curve E by $y^2 = Q(x)$. The coefficient ring of Q should be...
e8c5dfe629aabf0303b396e56733ea0c7032d92a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e8c5dfe629aabf0303b396e56733ea0c7032d92a/monsky_washnitzer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3148, 67, 792, 67, 74, 303, 19425, 8384, 12, 53, 16, 293, 16, 490, 16, 2606, 33, 7036, 16, 3671, 67, 17165, 67, 9741, 33, 8381, 4672, 3536, 14169, 281, 326, 3148, 434, 478, 303, 1942...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3148, 67, 792, 67, 74, 303, 19425, 8384, 12, 53, 16, 293, 16, 490, 16, 2606, 33, 7036, 16, 3671, 67, 17165, 67, 9741, 33, 8381, 4672, 3536, 14169, 281, 326, 3148, 434, 478, 303, 1942...
if self.exist: self.__load_preset() self.volume.SetVisibility(1) else: self.LoadVolume() self.CalculateHistogram() self.exist = 1
if self.config: if self.exist: self.__load_preset() self.volume.SetVisibility(1) else: self.LoadVolume() self.CalculateHistogram() self.exist = 1
def OnUpdatePreset(self, pubsub_evt): self.__load_preset_config() if self.exist: self.__load_preset() self.volume.SetVisibility(1) #ps.Publisher().sendMessage('Render volume viewer') else: self.LoadVolume() self.CalculateHistogram() self.exist = 1
1813028581bf6f68b083c9743a8032c32a362852 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/1813028581bf6f68b083c9743a8032c32a362852/volume.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 1891, 18385, 12, 2890, 16, 23288, 67, 73, 11734, 4672, 365, 16186, 945, 67, 27524, 67, 1425, 1435, 309, 365, 18, 7398, 30, 365, 16186, 945, 67, 27524, 1435, 365, 18, 9491, 18, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2755, 1891, 18385, 12, 2890, 16, 23288, 67, 73, 11734, 4672, 365, 16186, 945, 67, 27524, 67, 1425, 1435, 309, 365, 18, 7398, 30, 365, 16186, 945, 67, 27524, 1435, 365, 18, 9491, 18, 69...
default="detailed-progress,unexpected", help="log various types of data. The param should be a " + "comma-separated list of values from: " + "actual,config," + LOG_DETAILED_PROGRESS + ",expected,timing," + LOG_UNEXPECTED + " " + "(defaults to " + "--log detailed-progress,unexpected)"), optparse.make_option("-v", "--ver...
default=LOG_DEFAULT_VALUE, help=("log various types of data. The argument value should be a " "comma-separated list of values from: %s (defaults to " "--log %s)" % (LOG_VALUES, LOG_DEFAULT_VALUE))), optparse.make_option("-v", "--verbose", action="store_true",
def parse_args(args=None): """Provides a default set of command line args. Returns a tuple of options, args from optparse""" # FIXME: All of these options should be stored closer to the code which # FIXME: actually uses them. configuration_options should move # FIXME: to WebKitPort and be shared across all scripts. c...
0878094155a8430c6c5e2b1a192f9826a1476132 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/0878094155a8430c6c5e2b1a192f9826a1476132/run_webkit_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 1968, 12, 1968, 33, 7036, 4672, 3536, 17727, 279, 805, 444, 434, 1296, 980, 833, 18, 225, 2860, 279, 3193, 434, 702, 16, 833, 628, 2153, 2670, 8395, 225, 468, 9852, 30, 4826,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1968, 12, 1968, 33, 7036, 4672, 3536, 17727, 279, 805, 444, 434, 1296, 980, 833, 18, 225, 2860, 279, 3193, 434, 702, 16, 833, 628, 2153, 2670, 8395, 225, 468, 9852, 30, 4826,...
host=DefaultHost, debug=0):
host=DefaultHost, debug=0, https_connection_factory=None):
def __init__(self, aws_access_key_id=None, aws_secret_access_key=None, is_secure=False, port=None, proxy=None, proxy_port=None, host=DefaultHost, debug=0): AWSAuthConnection.__init__(self, host, aws_access_key_id, aws_secret_access_key, is_secure, port, proxy, proxy_port, debug)
0d658092e9a36db8afbc75530d4ff66f00a51143 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1098/0d658092e9a36db8afbc75530d4ff66f00a51143/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2287, 67, 3860, 67, 856, 67, 350, 33, 7036, 16, 2287, 67, 5875, 67, 3860, 67, 856, 33, 7036, 16, 353, 67, 8869, 33, 8381, 16, 1756, 33, 7036, 16, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2287, 67, 3860, 67, 856, 67, 350, 33, 7036, 16, 2287, 67, 5875, 67, 3860, 67, 856, 33, 7036, 16, 353, 67, 8869, 33, 8381, 16, 1756, 33, 7036, 16, 288...
PROCESS_CREATION_DELAY = 4 class GenericBrowser:
class BaseBrowser(object): """Parent class for all browsers.""" def __init__(self, name=""): self.name = name def open_new(self, url): return self.open(url, 1) def open_new_tab(self, url): return self.open(url, 2) class GenericBrowser(BaseBrowser): """Class for all browsers started with a command and without rem...
def _iscommand(cmd): """Return True if cmd can be found on the executable search path.""" path = os.environ.get("PATH") if not path: return False for d in path.split(os.pathsep): exe = os.path.join(d, cmd) if os.path.isfile(exe): return True return False
2e17d91b4cf4bb0fb2a60b21783a4491e2a33017 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2e17d91b4cf4bb0fb2a60b21783a4491e2a33017/webbrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 291, 3076, 12, 4172, 4672, 3536, 990, 1053, 309, 1797, 848, 506, 1392, 603, 326, 9070, 1623, 589, 12123, 589, 273, 1140, 18, 28684, 18, 588, 2932, 4211, 7923, 309, 486, 589, 30, 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, 389, 291, 3076, 12, 4172, 4672, 3536, 990, 1053, 309, 1797, 848, 506, 1392, 603, 326, 9070, 1623, 589, 12123, 589, 273, 1140, 18, 28684, 18, 588, 2932, 4211, 7923, 309, 486, 589, 30, 3...
sgas1 = 1 - swat1 sgas2 = 1 - swat2 sgas1.name = "SGAS" sgas2.name = "SGAS" phase_list += [ (sgas1 , sgas2) ]
if restart_file.has_kw( "OIL_DEN" ): soil1 = 1 - swat1 soil2 = 1 - swat2 soil1.name = "SOIL" soil2.name = "SOIL" phase_list += [ (soil1 , soil2) ] else: sgas1 = 1 - swat1 sgas2 = 1 - swat2 sgas1.name = "SGAS" sgas2.name = "SGAS" phase_list += [ (sgas1 , sgas2) ]
def deltag( xyz , grid , init_file , restart_file1 , restart_file2): swat1 = restart_file1.iget_named_kw( "SWAT" , 0) swat2 = restart_file2.iget_named_kw( "SWAT" , 0) if init_file.has_kw( "AQUIFERN" ): aquifern = init_file.iget_named_kw( "AQUIFERN" , 0 ) else: # The low level C function will create and discard a tempo...
0eb72632d630c4cdf26d46046e6bb686535471a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10268/0eb72632d630c4cdf26d46046e6bb686535471a7/ecl_grav.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 2692, 12, 14779, 269, 3068, 269, 1208, 67, 768, 269, 7870, 67, 768, 21, 269, 7870, 67, 768, 22, 4672, 1352, 270, 21, 273, 7870, 67, 768, 21, 18, 360, 278, 67, 13188, 67, 9987, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2692, 12, 14779, 269, 3068, 269, 1208, 67, 768, 269, 7870, 67, 768, 21, 269, 7870, 67, 768, 22, 4672, 1352, 270, 21, 273, 7870, 67, 768, 21, 18, 360, 278, 67, 13188, 67, 9987, ...
self.bad_urls = pickle.load(b_file)
try: self.bad_urls = pickle.load(b_file) except IOError, ValueError: if options["globals", "verbose"]: print >>sys.stderr, "Bad URL pickle, using new." self.bad_urls = {"url:non_resolving": (), "url:non_html": (), "url:unknown_error": ()}
def setup(self): # Can't import this at the top because it's circular. # XXX Someone smarter than me, please figure out the right # XXX way to do this. from spambayes.FileCorpus import ExpiryFileCorpus, FileMessageFactory
aead699bc1f61b77f407079a07cef75e3a76161b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/aead699bc1f61b77f407079a07cef75e3a76161b/classifier.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 4672, 468, 4480, 1404, 1930, 333, 622, 326, 1760, 2724, 518, 1807, 15302, 18, 468, 11329, 10548, 476, 3029, 14153, 2353, 1791, 16, 9582, 7837, 596, 326, 2145, 468, 11329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 12, 2890, 4672, 468, 4480, 1404, 1930, 333, 622, 326, 1760, 2724, 518, 1807, 15302, 18, 468, 11329, 10548, 476, 3029, 14153, 2353, 1791, 16, 9582, 7837, 596, 326, 2145, 468, 11329, ...
actions.append([id, proc, runtime, status, progress])
actions.append([id, proc, runtime, (status !="" and status or ''), (progress !="" and progress or '')])
def perform_runwebcoll(colID, ln, confirm=0, callback='yes'): """form to delete an output format not in use. colID - the collection id of the current collection. fmtID - the format id to delete.""" subtitle = """<a name="11"></a>Webcoll Status""" output = "" colID = int(colID) col_dict = dict(get_def_name('', "colle...
4985d89e7a07aff3641519d5acb862533a5cecdc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/4985d89e7a07aff3641519d5acb862533a5cecdc/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 2681, 4875, 12910, 12, 1293, 734, 16, 7211, 16, 6932, 33, 20, 16, 1348, 2218, 9707, 11, 4672, 3536, 687, 358, 1430, 392, 876, 740, 486, 316, 999, 18, 645, 734, 300, 326, 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, 3073, 67, 2681, 4875, 12910, 12, 1293, 734, 16, 7211, 16, 6932, 33, 20, 16, 1348, 2218, 9707, 11, 4672, 3536, 687, 358, 1430, 392, 876, 740, 486, 316, 999, 18, 645, 734, 300, 326, 18...
"""Toggle autoAnneal setting.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Auto-Anneal'),kind=wx.ITEM_CHECK) menu.AppendItem(menuItem) menuItem.Check(settings['bash.installers.autoAnneal']) def Execute(self,event): """Handle selection.""" s...
"""Toggle autoAnneal setting.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_('Auto-Anneal'),kind=wx.ITEM_CHECK) menu.AppendItem(menuItem) menuItem.Check(settings['bash.installers.autoAnneal']) def Execute(self,event): """Handle selection.""" s...
def Execute(self,event): """Handle selection.""" progress = balt.Progress(_("Annealing..."),'\n'+' '*60) try: self.data.anneal(progress=progress) finally: progress.Destroy() self.data.refresh(what='NS') gInstallers.RefreshUIMods()
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 3536, 3259, 4421, 12123, 4007, 273, 324, 2390, 18, 5491, 24899, 2932, 979, 4644, 287, 310, 7070, 3631, 8314, 82, 11, 6797, 14609, 4848, 13, 775, 30, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7903, 12, 2890, 16, 2575, 4672, 3536, 3259, 4421, 12123, 4007, 273, 324, 2390, 18, 5491, 24899, 2932, 979, 4644, 287, 310, 7070, 3631, 8314, 82, 11, 6797, 14609, 4848, 13, 775, 30, 365, ...
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 304) else quickfix.IntField.__init__(self, 304, 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, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 27499, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 27499, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 9...
response.extend(('RFC822.TEXT', msg.getBodyFile()))
doLast.extend(('RFC822.TEXT', msg.getBodyFile()))
def _sendMessageFetchResponse(self, msgId, msg, query, uid): seenUID = False response = [] for part in query: if part.type == 'envelope': response.extend(('ENVELOPE', getEnvelope(msg))) elif part.type == 'flags': response.extend(('FLAGS', msg.getFlags())) elif part.type == 'internaldate': response.extend(('INTERNALDATE...
eb8d902d2b64789da87345b7689551f2803c111a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/eb8d902d2b64789da87345b7689551f2803c111a/imap4.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4661, 1079, 5005, 1064, 12, 2890, 16, 1234, 548, 16, 1234, 16, 843, 16, 4555, 4672, 5881, 3060, 273, 1083, 766, 273, 5378, 364, 1087, 316, 843, 30, 309, 1087, 18, 723, 422, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4661, 1079, 5005, 1064, 12, 2890, 16, 1234, 548, 16, 1234, 16, 843, 16, 4555, 4672, 5881, 3060, 273, 1083, 766, 273, 5378, 364, 1087, 316, 843, 30, 309, 1087, 18, 723, 422, 296, ...
def module_verify(): print "=== test infinity class" def test_inf_cmp(r,a,b): if cmp(a, b) == r: s = "pass: " else: s = "FAIL: " print s + "cmp(" + str(a) + ", " + str(b) + ") = " + str(cmp(a, b)) def test_inf_add(r,a,b): if a + b == r: s = "pass: " else: s = "FAIL: " print s + str(a) + " + " + str(b) + " = "...
def contract(self, x): """ For each segment in the list, move both the start and the end a distance x towards the other. Coalesce the result. """ return segmentlist([seg.contract(x) for seg in self]).coalesce()
f96aaaafca5d2d24bc524ea3fe1f5b4e3cb971ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/f96aaaafca5d2d24bc524ea3fe1f5b4e3cb971ca/segments.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6835, 12, 2890, 16, 619, 4672, 3536, 2457, 1517, 3267, 316, 326, 666, 16, 3635, 3937, 326, 787, 471, 326, 679, 279, 3888, 619, 23248, 326, 1308, 18, 225, 7695, 24827, 326, 563, 18, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6835, 12, 2890, 16, 619, 4672, 3536, 2457, 1517, 3267, 316, 326, 666, 16, 3635, 3937, 326, 787, 471, 326, 679, 279, 3888, 619, 23248, 326, 1308, 18, 225, 7695, 24827, 326, 563, 18, 353...
print "%s/sqlite3.h: version %s"%(d, sqlite_version)
if sqlite_setup_debug: print "%s/sqlite3.h: version %s"%(d, sqlite_version)
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
738446f44d6d37d920d00fa99bbb1a7084bd537b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/738446f44d6d37d920d00fa99bbb1a7084bd537b/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 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, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, ...
super(ObjectModifiedEvent, self).__init__(object)
super(ObjectModifiedEvent, self).__init__(object)
def __init__(self, object, *descriptions) : """ Init with a list of modification descriptions. >>> from zope.interface import implements, Interface, Attribute >>> class ISample(Interface) : ... field = Attribute("A test field") >>> class Sample(object) : ... implements(ISample) >>> obj = Sample() >>> obj.fiel...
c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9830/c9dc3eafe032c53f87a1bc5ab01257a5b96fdb10/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 733, 16, 380, 30288, 13, 294, 3536, 4378, 598, 279, 666, 434, 11544, 15550, 18, 225, 4080, 628, 998, 1306, 18, 5831, 1930, 4792, 16, 6682, 16, 3601, 4080...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 733, 16, 380, 30288, 13, 294, 3536, 4378, 598, 279, 666, 434, 11544, 15550, 18, 225, 4080, 628, 998, 1306, 18, 5831, 1930, 4792, 16, 6682, 16, 3601, 4080...
family in (socket.AF_INET, socket.AF_UNIX)
family in SOCKET_FAMILIES
def __init__ ( self, Dispatcher, addr, precision, max, family=socket.AF_INET ): assert ( type (precision) == int and precision > 0 and type (max) == int and max > 0 and family in (socket.AF_INET, socket.AF_UNIX) ) self.server_dispatchers = [] self.server_named = {} self.Server_dispatcher = Dispatcher self.server_precis...
bd558883e173bf21280058343de7d2f4ab3e4356 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/bd558883e173bf21280058343de7d2f4ab3e4356/async_server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 261, 365, 16, 16710, 16, 3091, 16, 6039, 16, 943, 16, 6755, 33, 7814, 18, 6799, 67, 18819, 262, 30, 1815, 261, 618, 261, 14548, 13, 422, 509, 471, 6039, 405, 374, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 365, 16, 16710, 16, 3091, 16, 6039, 16, 943, 16, 6755, 33, 7814, 18, 6799, 67, 18819, 262, 30, 1815, 261, 618, 261, 14548, 13, 422, 509, 471, 6039, 405, 374, 47...
import sys
if debug_stderr: sys.stderr = debug_stderr
def __init__(self): self.preffilepath = ":Python:PythonIDE preferences" Wapplication.Application.__init__(self, 'Pide') from Carbon import AE from Carbon import AppleEvents AE.AEInstallEventHandler(AppleEvents.kCoreEventClass, AppleEvents.kAEOpenApplication, self.ignoreevent) AE.AEInstallEventHandler(AppleEvents.kCore...
e0ba087d4476c43dd91cdf7779f3eea27c70bc12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e0ba087d4476c43dd91cdf7779f3eea27c70bc12/PythonIDEMain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 25724, 10561, 273, 6398, 15774, 30, 15774, 10385, 12750, 6, 678, 3685, 18, 3208, 16186, 2738, 972, 12, 2890, 16, 296, 52, 831, 6134, 628, 13353,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4672, 365, 18, 25724, 10561, 273, 6398, 15774, 30, 15774, 10385, 12750, 6, 678, 3685, 18, 3208, 16186, 2738, 972, 12, 2890, 16, 296, 52, 831, 6134, 628, 13353,...
if not scanner.infected and data:
buf = attrs['virus_buf'] if data:
def filter (self, data, **attrs): if not attrs.has_key('scanner'): return data scanner = attrs['scanner'] if not scanner.infected and data: scanner.scan(data) if not scanner.infected: return data for msg in scanner.infected: warn(FILTER, "Found virus %r in %r", msg, attrs['url']) return ""
c1d07a5dae765cc144bb6ec68299de892bfde3ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/c1d07a5dae765cc144bb6ec68299de892bfde3ff/VirusFilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1034, 261, 2890, 16, 501, 16, 2826, 7039, 4672, 309, 486, 3422, 18, 5332, 67, 856, 2668, 26842, 11, 4672, 327, 501, 7683, 273, 3422, 3292, 26842, 3546, 1681, 273, 3422, 3292, 25692, 407,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1034, 261, 2890, 16, 501, 16, 2826, 7039, 4672, 309, 486, 3422, 18, 5332, 67, 856, 2668, 26842, 11, 4672, 327, 501, 7683, 273, 3422, 3292, 26842, 3546, 1681, 273, 3422, 3292, 25692, 407,...
if diffopts.git:
if diffopts.git or diffopts.upgrade:
def refresh(self, repo, pats=None, **opts): if len(self.applied) == 0: self.ui.write(_("no patches applied\n")) return 1 msg = opts.get('msg', '').rstrip() newuser = opts.get('user') newdate = opts.get('date') if newdate: newdate = '%d %d' % util.parsedate(newdate) wlock = repo.wlock() try: self.check_toppatch(repo) (t...
416b565f6988709b29821aa7a413e1b8dd63614d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/416b565f6988709b29821aa7a413e1b8dd63614d/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 12, 2890, 16, 3538, 16, 293, 2323, 33, 7036, 16, 2826, 4952, 4672, 309, 562, 12, 2890, 18, 438, 3110, 13, 422, 374, 30, 365, 18, 4881, 18, 2626, 24899, 2932, 2135, 16482, 6754, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4460, 12, 2890, 16, 3538, 16, 293, 2323, 33, 7036, 16, 2826, 4952, 4672, 309, 562, 12, 2890, 18, 438, 3110, 13, 422, 374, 30, 365, 18, 4881, 18, 2626, 24899, 2932, 2135, 16482, 6754, ...
(llx,lly,urx,ury) = bb llx = min(llx, dims[0]) lly = min(lly, dims[1]) urx = max(urx, dims[2]) ury = max(ury, dims[3]) return (llx,lly,urx,ury)
(llx, lly, urx, ury) = bb llx = min (llx, dims[0]) lly = min (lly, dims[1]) urx = max (urx, dims[2]) ury = max (ury, dims[3]) return (llx, lly, urx, ury)
def update_bbox_with_bbox (bb, dims): (llx,lly,urx,ury) = bb llx = min(llx, dims[0]) lly = min(lly, dims[1]) urx = max(urx, dims[2]) ury = max(ury, dims[3]) return (llx,lly,urx,ury)
d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 20737, 67, 1918, 67, 20737, 261, 9897, 16, 9914, 4672, 261, 2906, 92, 16, 328, 715, 16, 8896, 92, 16, 8896, 93, 13, 273, 7129, 6579, 92, 273, 1131, 261, 2906, 92, 16, 9914,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 67, 20737, 67, 1918, 67, 20737, 261, 9897, 16, 9914, 4672, 261, 2906, 92, 16, 328, 715, 16, 8896, 92, 16, 8896, 93, 13, 273, 7129, 6579, 92, 273, 1131, 261, 2906, 92, 16, 9914,...