rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
print>>sys.__stderr__, "Invalid host: ", address
print>>sys.__stderr__, "** Invalid host: ", address
def accept(self): working_sock, address = self.listening_sock.accept() if address[0] == '127.0.0.1': print>>sys.__stderr__, "Idle accepted connection from ", address SocketIO.__init__(self, working_sock) else: print>>sys.__stderr__, "Invalid host: ", address raise socket.error
24e012d82bd97af6530c1f8f64d1fa0786a2a446 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/24e012d82bd97af6530c1f8f64d1fa0786a2a446/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2791, 12, 2890, 4672, 5960, 67, 15031, 16, 1758, 273, 365, 18, 18085, 310, 67, 15031, 18, 9436, 1435, 309, 1758, 63, 20, 65, 422, 296, 14260, 18, 20, 18, 20, 18, 21, 4278, 1172, 9778...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2791, 12, 2890, 4672, 5960, 67, 15031, 16, 1758, 273, 365, 18, 18085, 310, 67, 15031, 18, 9436, 1435, 309, 1758, 63, 20, 65, 422, 296, 14260, 18, 20, 18, 20, 18, 21, 4278, 1172, 9778...
cPickle.dump(data, f, 1)
try: cPickle.dump(data, f, 1) except: logException()
def __setPickle(self, data): # lock and unlock, TBD f=open(self.__picklepath, 'w') fd=f.fileno() fcntl.flock(fd, fcntl.LOCK_EX) cPickle.dump(data, f, 1) fcntl.flock(fd, fcntl.LOCK_UN) f.close()
a11ee1e7567cfd429f466586fa18af5e34590e00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5832/a11ee1e7567cfd429f466586fa18af5e34590e00/FSSessionStore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 17968, 298, 12, 2890, 16, 501, 4672, 468, 2176, 471, 7186, 16, 399, 18096, 284, 33, 3190, 12, 2890, 16186, 20847, 803, 16, 296, 91, 6134, 5194, 33, 74, 18, 7540, 5764, 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, 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, 542, 17968, 298, 12, 2890, 16, 501, 4672, 468, 2176, 471, 7186, 16, 399, 18096, 284, 33, 3190, 12, 2890, 16186, 20847, 803, 16, 296, 91, 6134, 5194, 33, 74, 18, 7540, 5764, 1435,...
self.show_auto_tab(key, count+other_count)
if key in self.auto_tabs: self.update_auto_tab_count(key, count+other_count)
def update_count(self, key, attr, count, other_count=0): self.show_auto_tab(key, count+other_count) try: iter = self.iter_map[key] except KeyError, e: pass else: tab = self.view.model[iter][0] setattr(tab, attr, count) self.view.update_tab(iter, tab) self.hide_auto_tab(key, count+other_count) self.view.model_changed()
80678c663d8abf6e685b43bef8b921e040eb42ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/80678c663d8abf6e685b43bef8b921e040eb42ec/tablist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 1883, 12, 2890, 16, 498, 16, 1604, 16, 1056, 16, 1308, 67, 1883, 33, 20, 4672, 309, 498, 316, 365, 18, 6079, 67, 16056, 30, 365, 18, 2725, 67, 6079, 67, 7032, 67, 1883, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1883, 12, 2890, 16, 498, 16, 1604, 16, 1056, 16, 1308, 67, 1883, 33, 20, 4672, 309, 498, 316, 365, 18, 6079, 67, 16056, 30, 365, 18, 2725, 67, 6079, 67, 7032, 67, 1883, 1...
dismissAllButton = wx.Button(self, wx.ID_OK, _(u"Dismiss All"))
dismissAllButton = wx.Button(panel, wx.ID_OK, _(u"Dismiss All"))
def __init__(self, parent, ID, size=wx.DefaultSize, pos=wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE | wx.STAY_ON_TOP):
174f25b0a73f7ac1ec721bddd40bc7cb00ac6fe1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/174f25b0a73f7ac1ec721bddd40bc7cb00ac6fe1/ReminderDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 1599, 16, 963, 33, 27226, 18, 1868, 1225, 16, 949, 33, 27226, 18, 1868, 2555, 16, 2154, 33, 27226, 18, 5280, 67, 2565, 18683, 67, 15066, 571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 1599, 16, 963, 33, 27226, 18, 1868, 1225, 16, 949, 33, 27226, 18, 1868, 2555, 16, 2154, 33, 27226, 18, 5280, 67, 2565, 18683, 67, 15066, 571, ...
com_value = 0.0 if line.category_id.contribute and line.category_id.amount_type == 'per': amt = amt + (amt * line.category_id.contribute_per) elif line.category_id.contribute and line.category_id.amount_type == 'fix': com_value = line.category_id.contribute_per elif line.category_id.contribute and line.category_id.amo...
def compute_sheet(self, cr, uid, ids, context={}): emp_pool = self.pool.get('hr.employee') slip_pool = self.pool.get('hr.payslip') func_pool = self.pool.get('hr.employee.grade') slip_line_pool = self.pool.get('hr.payslip.line') holiday_pool = self.pool.get('hr.holidays') vals = self.read(cr, uid, ids)[0] emp_ids = ids...
be8d1f3f08714c0f37c3c42fbc3beeb2f650951d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/be8d1f3f08714c0f37c3c42fbc3beeb2f650951d/hr_payroll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 8118, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 801, 84, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, 351, 2817, 1340, 6134, 272, 3169, 67, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3671, 67, 8118, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 801, 84, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, 351, 2817, 1340, 6134, 272, 3169, 67, 60...
if event.eventtype() in ['pubmsg', 'action', 'part', 'kick'] and not source_nickname:
if event.eventtype() in ['pubmsg', 'action', 'part', 'kick', 'join'] and not source_nickname:
def _irc_event_handler(self, connection, event): """[Internal] Manage IRC events""" # Answer ping if event.eventtype() == 'ping': connection.pong(connection.get_server_name()) return # Events we always want to ignore if 'all' in event.eventtype() or 'motd' in event.eventtype() or event.eventtype() in ['nicknameinuse...
f0063ab3776d327f4aa7ceb4013e4a2618f25b63 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9915/f0063ab3776d327f4aa7ceb4013e4a2618f25b63/bot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 481, 71, 67, 2575, 67, 4176, 12, 2890, 16, 1459, 16, 871, 4672, 3536, 63, 3061, 65, 24247, 467, 11529, 2641, 8395, 225, 468, 21019, 10087, 309, 871, 18, 2575, 723, 1435, 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, 481, 71, 67, 2575, 67, 4176, 12, 2890, 16, 1459, 16, 871, 4672, 3536, 63, 3061, 65, 24247, 467, 11529, 2641, 8395, 225, 468, 21019, 10087, 309, 871, 18, 2575, 723, 1435, 422, 296,...
userid = event_var['userid'] tripler = gungame.getPlayer(event_var['userid']) tripler.set('triple', int(tripler.get('triple')) + 1)
userid = event_var['userid'] tripler = gungame.getPlayer(event_var['userid']) tripler.set('triple', int(tripler.get('triple')) + 1)
def gg_levelup(event_var): # If is it a Triple Level userid = event_var['userid'] tripler = gungame.getPlayer(event_var['userid']) tripler.set('triple', int(tripler.get('triple')) + 1) if tripler.get('triple') == 3: # Sound and Messages es.emitsound('player', event_var['userid'], gungame.getGunGameVar('gg_sound_triple...
e4aa6b2e06b2addf6b7f63cf176828e5d5d3a96d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4575/e4aa6b2e06b2addf6b7f63cf176828e5d5d3a96d/gg_triple_level.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29758, 67, 2815, 416, 12, 2575, 67, 1401, 4672, 468, 971, 353, 518, 279, 28173, 4557, 6709, 273, 871, 67, 1401, 3292, 8339, 3546, 6882, 20728, 273, 31475, 13957, 18, 588, 12148, 12, 2575...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29758, 67, 2815, 416, 12, 2575, 67, 1401, 4672, 468, 971, 353, 518, 279, 28173, 4557, 6709, 273, 871, 67, 1401, 3292, 8339, 3546, 6882, 20728, 273, 31475, 13957, 18, 588, 12148, 12, 2575...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 585) else quickfix.IntField.__init__(self, 585, 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, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 7140, 13, 469, 9549, 904, 18, 1702, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 1381, 7140, 13, 469, 9549, 904, 18, 1702, 974, 16186, 2738, ...
path += '&action=purge''
path += '&action=purge'
def _parseCategory(self, purge=False, startFrom=None): """ Yields all articles and subcategories that are in this category.
5d15d71a14c729a462cf04287e86bb8d94af1484 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/5d15d71a14c729a462cf04287e86bb8d94af1484/catlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 4457, 12, 2890, 16, 11668, 33, 8381, 16, 787, 1265, 33, 7036, 4672, 3536, 31666, 87, 777, 15828, 471, 720, 8995, 716, 854, 316, 333, 3150, 18, 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, 0, 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, 2670, 4457, 12, 2890, 16, 11668, 33, 8381, 16, 787, 1265, 33, 7036, 4672, 3536, 31666, 87, 777, 15828, 471, 720, 8995, 716, 854, 316, 333, 3150, 18, 2, -100, -100, -100, -100, -10...
exc_type, exc_value, exc_tb_or_stack = self._exception if type(exc_tb_or_stack) == types.TracebackType:
if self._exception[2]:
def get_result(self): """ Get the results when finished. The function will either return the result or raise the exception provided to the exception function. """ if not self._finished: raise RuntimeError('operation not finished') if self._exception: self._unhandled_exception = None exc_type, exc_value, exc_tb_or_stack...
ad352040eed209b8b8ec71e22704567f20b1200d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11722/ad352040eed209b8b8ec71e22704567f20b1200d/async.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2088, 12, 2890, 4672, 3536, 968, 326, 1686, 1347, 6708, 18, 1021, 445, 903, 3344, 327, 326, 563, 578, 1002, 326, 1520, 2112, 358, 326, 1520, 445, 18, 3536, 309, 486, 365, 6315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2088, 12, 2890, 4672, 3536, 968, 326, 1686, 1347, 6708, 18, 1021, 445, 903, 3344, 327, 326, 563, 578, 1002, 326, 1520, 2112, 358, 326, 1520, 445, 18, 3536, 309, 486, 365, 6315...
timechansel = chanselstr cs_simplifications = []
def time_then_chan_avg(inms, tbin, chanbin, outms="", zaptemp=True, zaporig=False, chanselstr=""): """ Bins time and frequency in 1.x passes. First inms is time averaged to in_timebin<tbin>.ms by split with timebin = tbin. Then in_timebin<tbin>.ms (much smaller than inms!) is channel averaged to outms by split with w...
bcc7dfbcb0997ad01a952e0eb554a102e06407ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/bcc7dfbcb0997ad01a952e0eb554a102e06407ff/time_then_chan_avg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 813, 67, 15991, 67, 7472, 67, 14141, 12, 267, 959, 16, 268, 4757, 16, 3861, 4757, 16, 596, 959, 1546, 3113, 998, 1657, 30752, 33, 5510, 16, 11419, 4949, 33, 8381, 16, 462, 634, 292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 813, 67, 15991, 67, 7472, 67, 14141, 12, 267, 959, 16, 268, 4757, 16, 3861, 4757, 16, 596, 959, 1546, 3113, 998, 1657, 30752, 33, 5510, 16, 11419, 4949, 33, 8381, 16, 462, 634, 292, ...
return
if __name__ == "__main__": unittest.main()
def ui_syntax_error(self): try: ex_handler = None eval('import foo')
1924a698e4ceb6d94262929ee48805290ceda107 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13163/1924a698e4ceb6d94262929ee48805290ceda107/exception_handler_test_case.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5915, 67, 14308, 67, 1636, 12, 2890, 4672, 775, 30, 431, 67, 4176, 273, 599, 5302, 2668, 5666, 8431, 6134, 2, 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, 5915, 67, 14308, 67, 1636, 12, 2890, 4672, 775, 30, 431, 67, 4176, 273, 599, 5302, 2668, 5666, 8431, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
class CUDPPort(cudp.UDPPortMixin, udp.Port):
_origUDPPort = udp.Port class CUDPPort(cudp.UDPPortMixin, _origUDPPort):
def _makeTransport(self): return CClient(self.host, self.port, self.bindAddress, self, self.reactor)
ad36ec9fe865b94885d719f41b3e660ccfb39fee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/ad36ec9fe865b94885d719f41b3e660ccfb39fee/hooks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6540, 6568, 12, 2890, 4672, 327, 385, 1227, 12, 2890, 18, 2564, 16, 365, 18, 655, 16, 365, 18, 4376, 1887, 16, 365, 16, 365, 18, 266, 3362, 13, 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, 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, 389, 6540, 6568, 12, 2890, 4672, 327, 385, 1227, 12, 2890, 18, 2564, 16, 365, 18, 655, 16, 365, 18, 4376, 1887, 16, 365, 16, 365, 18, 266, 3362, 13, 2, -100, -100, -100, -100, -100, ...
def secret(self, val=None):
def secret(self, val=UNDEFINED):
def secret(self, val=None): return self._file_str(self.path.secret, val)
cc8f4b7879c964af4c9c3e9adf42893b1c3a187f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10616/cc8f4b7879c964af4c9c3e9adf42893b1c3a187f/registry.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4001, 12, 2890, 16, 1244, 33, 2124, 15544, 4672, 327, 365, 6315, 768, 67, 701, 12, 2890, 18, 803, 18, 5875, 16, 1244, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4001, 12, 2890, 16, 1244, 33, 2124, 15544, 4672, 327, 365, 6315, 768, 67, 701, 12, 2890, 18, 803, 18, 5875, 16, 1244, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if right: if isinstance(right, basestring): ids2 = [x[0] for x in field_obj.name_search(cr, uid, right, [], operator, limit=None)] operator = 'in' else: if not isinstance(right,list): ids2 = [right]
else: call_null = True if right: if isinstance(right, basestring): ids2 = [x[0] for x in field_obj.name_search(cr, uid, right, [], operator, limit=None)] operator = 'in'
def rg(ids, table, parent): if not ids: return [] ids2 = table.search(cr, uid, [(parent, 'in', ids)], context=context) return ids + rg(ids2, table, parent)
360d52e45b2342607c15854194ed146dc085f05a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/360d52e45b2342607c15854194ed146dc085f05a/expression.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14524, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 3353, 16, 4555, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, 13, 6487, 819...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14524, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 3353, 16, 4555, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, 13, 6487, 819...
if needmode in ['ud', 'od']:
if needmode in ['ud']: self.verbose_logger.log(logginglevels.DEBUG_2, _('Trying to update %s to resolve dep'), requiringPo) origobs = self.conf.obsoletes self.conf.obsoletes = 0 txmbrs = self.update(po=requiringPo, requiringPo=requiringPo) self.conf.obsoletes = origobs if not txmbrs: txmbrs = self.update(po=requirin...
def _requiringFromInstalled(self, requiringPo, requirement, errorlist): """processes the dependency resolution for a dep where the requiring package is installed"""
c0124699e38151144ef72ab1be9d8c42510ce375 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/c0124699e38151144ef72ab1be9d8c42510ce375/depsolve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4523, 11256, 1265, 16747, 12, 2890, 16, 29468, 29198, 16, 12405, 16, 555, 1098, 4672, 3536, 18675, 326, 4904, 7861, 364, 279, 5993, 1625, 326, 29468, 2181, 353, 5876, 8395, 2, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4523, 11256, 1265, 16747, 12, 2890, 16, 29468, 29198, 16, 12405, 16, 555, 1098, 4672, 3536, 18675, 326, 4904, 7861, 364, 279, 5993, 1625, 326, 29468, 2181, 353, 5876, 8395, 2, -100, ...
repl.stdin.write( text + newline )
os.write( repl_stdin.fileno(), text + newline )
def server(): """Main server routine: starts REPL and helper threads for sending and receiving data to/from REPL. """ global terminate # First check if server already runs s = socket.socket( socket.AF_INET, socket.SOCK_STREAM ) try: s.connect( ( 'localhost', PORT ) ) except socket.error, msg: # Server not found, our t...
812a5578bd28dabfa24167cfa10c3509f66a2380 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10890/812a5578bd28dabfa24167cfa10c3509f66a2380/slimv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1438, 13332, 3536, 6376, 1438, 12245, 30, 2542, 2438, 6253, 471, 4222, 7403, 364, 5431, 471, 15847, 501, 358, 19, 2080, 2438, 6253, 18, 3536, 2552, 10850, 225, 468, 5783, 866, 309, 1438, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1438, 13332, 3536, 6376, 1438, 12245, 30, 2542, 2438, 6253, 471, 4222, 7403, 364, 5431, 471, 15847, 501, 358, 19, 2080, 2438, 6253, 18, 3536, 2552, 10850, 225, 468, 5783, 866, 309, 1438, ...
self.tk.call(self._w, 'selection', 'set', first, last)
self.tk.call(self._w, 'selection', 'set', first, last)
def selection_set(self, first, last=None):
0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4421, 67, 542, 12, 2890, 16, 1122, 16, 1142, 33, 7036, 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,...
[ 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4421, 67, 542, 12, 2890, 16, 1122, 16, 1142, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
el = etree.SubElement(self.current_element, 'text:span',
el = SubElement(self.current_element, 'text:span',
def visit_literal(self, node): #ipshell('At visit_literal') el = etree.SubElement(self.current_element, 'text:span', attrib={'text:style-name': 'rststyle-inlineliteral'}) self.set_current_element(el)
57ceb741b8ea9b94d9b9e314a03912d12bd3c5c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/57ceb741b8ea9b94d9b9e314a03912d12bd3c5c5/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 13107, 12, 2890, 16, 756, 4672, 468, 625, 10304, 2668, 861, 3757, 67, 13107, 6134, 415, 273, 5479, 12, 2890, 18, 2972, 67, 2956, 16, 296, 955, 30, 3969, 2187, 5885, 5899, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 67, 13107, 12, 2890, 16, 756, 4672, 468, 625, 10304, 2668, 861, 3757, 67, 13107, 6134, 415, 273, 5479, 12, 2890, 18, 2972, 67, 2956, 16, 296, 955, 30, 3969, 2187, 5885, 5899, 11,...
x/2
x//2
>>> def f(x):
2e82ad9791c9029bfa44ef39f6c4cd1b786cef51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2e82ad9791c9029bfa44ef39f6c4cd1b786cef51/test_doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 12, 92, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 1652, 284, 12, 92, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if os.path.exists(dest): os.unlink(dest) a=getstatusoutput("cp -a "+"'"+src+"' '"+dest+"'")
if dest!="/bin/cp": if os.path.exists(dest): os.unlink(dest) a=getstatusoutput("/bin/cp -a "+"'"+src+"' '"+dest+"'")
def movefile(src,dest): """moves a file from src to dest, preserving all permissions and attributes.""" if os.path.exists(dest): os.unlink(dest) a=getstatusoutput("cp -a "+"'"+src+"' '"+dest+"'") os.unlink(src) if a[0]==0: return 1 else: return 0
e53e8ede1287d0ae50e98ec6b6a28d45ef95e620 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9957/e53e8ede1287d0ae50e98ec6b6a28d45ef95e620/portage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 768, 12, 4816, 16, 10488, 4672, 3536, 81, 10829, 279, 585, 628, 1705, 358, 1570, 16, 27995, 777, 4371, 471, 1677, 12123, 309, 1570, 5, 1546, 19, 4757, 19, 4057, 6877, 309, 1140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3635, 768, 12, 4816, 16, 10488, 4672, 3536, 81, 10829, 279, 585, 628, 1705, 358, 1570, 16, 27995, 777, 4371, 471, 1677, 12123, 309, 1570, 5, 1546, 19, 4757, 19, 4057, 6877, 309, 1140, ...
if fromfile == None:
if file == None: Dbg.add("Failed to open input file: %s" % fromfile)
def read_from_file(self, fromfile): """Get the load order by reading an input file. This is mostly to help others debug their load order.""" file = myopen_file(fromfile, 'r') if fromfile == None: return self.order = [] for line in file: plugin_match = re_sloppy_plugin.match(line) if plugin_match: p = plugin_match.group...
dc9dcb9a895f92a512d4395c03f44dd2bfe103db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2827/dc9dcb9a895f92a512d4395c03f44dd2bfe103db/mlox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 2080, 67, 768, 12, 2890, 16, 628, 768, 4672, 3536, 967, 326, 1262, 1353, 635, 6453, 392, 810, 585, 18, 1220, 353, 23958, 358, 2809, 10654, 1198, 3675, 1262, 1353, 12123, 585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 67, 2080, 67, 768, 12, 2890, 16, 628, 768, 4672, 3536, 967, 326, 1262, 1353, 635, 6453, 392, 810, 585, 18, 1220, 353, 23958, 358, 2809, 10654, 1198, 3675, 1262, 1353, 12123, 585, ...
color_by_label=False, heights=None, **kwds):
color_by_label=False, heights=None, edge_style=None, **kwds):
def show(self, pos=None, layout=None, vertex_labels=True, edge_labels=False, vertex_size=200, graph_border=False, vertex_colors=None, edge_colors=None, partition=None, scaling_term=0.05, talk=False, iterations=50, loop_size=.1, color_by_label=False, heights=None, **kwds): """ Shows the (di)graph.
c704509be45784b37830e7be4f4ce322c08c1169 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/c704509be45784b37830e7be4f4ce322c08c1169/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 16, 949, 33, 7036, 16, 3511, 33, 7036, 16, 5253, 67, 5336, 33, 5510, 16, 3591, 67, 5336, 33, 8381, 16, 5253, 67, 1467, 33, 6976, 16, 2667, 67, 8815, 33, 8381, 16, 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, 12, 2890, 16, 949, 33, 7036, 16, 3511, 33, 7036, 16, 5253, 67, 5336, 33, 5510, 16, 3591, 67, 5336, 33, 8381, 16, 5253, 67, 1467, 33, 6976, 16, 2667, 67, 8815, 33, 8381, 16, 5...
session_class=None, **session_class_kw):
session_class=None, expiration=60*12, **session_class_kw):
def __init__(self, environ, cookie_name='_SID_', session_class=None, **session_class_kw): self.created = False self.used = False self.environ = environ self.cookie_name = cookie_name self.session = None self.session_class = session_class or FileSession self.session_class_kw = session_class_kw
9850a35c5a615ada79edb0729a32c6b8143cbb85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/9850a35c5a615ada79edb0729a32c6b8143cbb85/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5473, 16, 3878, 67, 529, 2218, 67, 30287, 67, 2187, 1339, 67, 1106, 33, 7036, 16, 7686, 33, 4848, 14, 2138, 16, 2826, 3184, 67, 1106, 67, 9987, 4672, 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, 1001, 2738, 972, 12, 2890, 16, 5473, 16, 3878, 67, 529, 2218, 67, 30287, 67, 2187, 1339, 67, 1106, 33, 7036, 16, 7686, 33, 4848, 14, 2138, 16, 2826, 3184, 67, 1106, 67, 9987, 4672, 2...
aname = eval(report_xml.attachment, {'object':obj, 'time':time})
aname = eval(attach, {'object':obj, 'time':time})
def create(self, cr, uid, ids, data, context=None): if not context: context={} pool = pooler.get_pool(cr.dbname) ir_obj = pool.get('ir.actions.report.xml') report_xml_ids = ir_obj.search(cr, uid, [('report_name', '=', self.name[7:])], context=context) report_xml = ir_obj.browse(cr, uid, report_xml_ids[0], context=conte...
8c58a438d38fa93f8e1a8812b7c20ed00eff42be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/8c58a438d38fa93f8e1a8812b7c20ed00eff42be/report_sxw.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 501, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 12938, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 9482, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 501, 16, 819, 33, 7036, 4672, 309, 486, 819, 30, 819, 12938, 2845, 273, 2845, 264, 18, 588, 67, 6011, 12, 3353, 18, 20979, 13, 9482, ...
else
else:
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 477) else quickfix.IntField.__init__(self, 477, 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, 1059, 4700, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 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, 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, 1059, 4700, 13, 469, 30, 9549, 904, 18, 1702, 974, 16186, 27...
def subscribe_back_decision(self,arg,accept): stanza,buf=arg
def subscribe_back_decision(self, accept, stanza, buf):
def subscribe_back_decision(self,arg,accept): stanza,buf=arg if accept: p=pyxmpp.Presence(stanza_type="subscribe",to_jid=stanza.get_from()) self.cjc.stream.send(p) buf.close() stanza.free()
9100cd8c1eea13376c62b80059ee0b249bf8b5b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12768/9100cd8c1eea13376c62b80059ee0b249bf8b5b1/presence.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9129, 67, 823, 67, 4924, 1951, 12, 2890, 16, 2791, 16, 21650, 16, 1681, 4672, 309, 2791, 30, 293, 33, 2074, 92, 24109, 18, 22590, 12, 541, 11939, 67, 723, 1546, 9174, 3113, 869, 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, 9129, 67, 823, 67, 4924, 1951, 12, 2890, 16, 2791, 16, 21650, 16, 1681, 4672, 309, 2791, 30, 293, 33, 2074, 92, 24109, 18, 22590, 12, 541, 11939, 67, 723, 1546, 9174, 3113, 869, 67, ...
d = error_dialog(self.window, _('Cannot read'),
d = error_dialog(self.parent(), _('Cannot read'),
def select_cover(self): files = choose_images(self, 'change cover dialog', _('Choose cover for ') + unicode(self.title.text())) if not files: return _file = files[0] if _file: _file = os.path.abspath(_file) if not os.access(_file, os.R_OK): d = error_dialog(self.window, _('Cannot read'), _('You do not have permission t...
a5f2c1fbb1f429acbd11ca56eb1d3025914e10da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/a5f2c1fbb1f429acbd11ca56eb1d3025914e10da/metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 3165, 12, 2890, 4672, 1390, 273, 9876, 67, 7369, 12, 2890, 16, 296, 3427, 5590, 6176, 2187, 389, 2668, 24529, 5590, 364, 8624, 397, 5252, 12, 2890, 18, 2649, 18, 955, 1435, 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, 2027, 67, 3165, 12, 2890, 4672, 1390, 273, 9876, 67, 7369, 12, 2890, 16, 296, 3427, 5590, 6176, 2187, 389, 2668, 24529, 5590, 364, 8624, 397, 5252, 12, 2890, 18, 2649, 18, 955, 1435, 3...
learner=orngTree.TreeLearner(mesure="retis",
learner=orngTree.TreeLearner(measure="retis",
def setLearner(self): learner=orngTree.TreeLearner(mesure="retis", binarization=self.Bin, mForPruning=self.PostMPCheck and self.PostMPVal, minExamples=self.MinNodeCheck and self.MinNodeVal, storeExamples=1) if self.preprocessor: learner = self.preprocessor.wrapLearner(learner) learner.name=self.Name self.send("Learner"...
1150995e2cfad5855e83b686d4f8e3dd385ba0ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/1150995e2cfad5855e83b686d4f8e3dd385ba0ed/OWRegressionTree.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 1682, 24834, 12, 2890, 4672, 884, 24834, 33, 280, 3368, 2471, 18, 2471, 1682, 24834, 12, 10772, 1546, 1349, 291, 3113, 4158, 297, 1588, 33, 2890, 18, 9913, 16, 312, 1290, 2050, 1303...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 1682, 24834, 12, 2890, 4672, 884, 24834, 33, 280, 3368, 2471, 18, 2471, 1682, 24834, 12, 10772, 1546, 1349, 291, 3113, 4158, 297, 1588, 33, 2890, 18, 9913, 16, 312, 1290, 2050, 1303...
self.files = {'<string>': None}
self.files = {'<string>': None}
def __init__(self, ignore = Ignore()): self.ignore = ignore self.ignore_names = ignore._ignore # access ignore's cache (speed hack)
ed1ee6edcef108d19d14203d66a5b954531dd12f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ed1ee6edcef108d19d14203d66a5b954531dd12f/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2305, 273, 8049, 1435, 4672, 365, 18, 6185, 273, 2305, 365, 18, 6185, 67, 1973, 273, 2305, 6315, 6185, 468, 2006, 2305, 1807, 1247, 261, 13871, 11769, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 2738, 972, 12, 2890, 16, 2305, 273, 8049, 1435, 4672, 365, 18, 6185, 273, 2305, 365, 18, 6185, 67, 1973, 273, 2305, 6315, 6185, 468, 2006, 2305, 1807, 1247, 261, 13871, 11769, 13, ...
def cmp(f1, f2, shallow=1,use_statcache=0): """Compare two files. Arguments: f1 -- First file name f2 -- Second file name shallow -- Just check stat signature (do not read the files). defaults to 1. use_statcache -- Do not stat() each file directly: go through the statcache module for more efficiency. Return valu...
def cmp(f1, f2, shallow=1,use_statcache=0): """Compare two files. Arguments: f1 -- First file name f2 -- Second file name shallow -- Just check stat signature (do not read the files). defaults to 1. use_statcache -- Do not stat() each file directly: go through the statcache module for more efficiency. Return valu...
def cmp(f1, f2, shallow=1,use_statcache=0): """Compare two files. Arguments: f1 -- First file name f2 -- Second file name shallow -- Just check stat signature (do not read the files). defaults to 1. use_statcache -- Do not stat() each file directly: go through the statcache module for more efficiency. Return valu...
43265beff993bd07f7d685394c02fd55433004f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/43265beff993bd07f7d685394c02fd55433004f1/filecmp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9411, 12, 74, 21, 16, 284, 22, 16, 18501, 33, 21, 16, 1202, 67, 5642, 2493, 33, 20, 4672, 3536, 8583, 2795, 1390, 18, 225, 13599, 30, 225, 284, 21, 1493, 5783, 585, 508, 225, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9411, 12, 74, 21, 16, 284, 22, 16, 18501, 33, 21, 16, 1202, 67, 5642, 2493, 33, 20, 4672, 3536, 8583, 2795, 1390, 18, 225, 13599, 30, 225, 284, 21, 1493, 5783, 585, 508, 225, 284, ...
os.appendChild(boot)
opSys.appendChild(boot)
def bootElement(bootDict): """ Creates a libvirt <os> element, a child of L{domain element <domainElement>}, that describes the operating system boot protocol for the Virtual Machine, specifically values to enable booting from the BIOS. @param bootDict: dictionary of boot arguments @type bootDict: dictionary @note: b...
b19e865d32d9ed2915eaa051855e86e8037b151c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9789/b19e865d32d9ed2915eaa051855e86e8037b151c/OvfLibvirt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4835, 1046, 12, 7137, 5014, 4672, 3536, 10210, 279, 16388, 411, 538, 34, 930, 16, 279, 1151, 434, 511, 95, 4308, 930, 411, 4308, 1046, 34, 5779, 716, 19605, 326, 16929, 2619, 4835, 1771,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4835, 1046, 12, 7137, 5014, 4672, 3536, 10210, 279, 16388, 411, 538, 34, 930, 16, 279, 1151, 434, 511, 95, 4308, 930, 411, 4308, 1046, 34, 5779, 716, 19605, 326, 16929, 2619, 4835, 1771,...
self.body.append(doctest_to_latex(node[0].astext()))
pysrc = node[0].astext() if node.get('codeblock'): self.body.append(LaTeXDoctestColorizer().colorize_codeblock(pysrc)) else: self.body.append(doctest_to_latex(pysrc))
def visit_doctest_block(self, node): self.body.append(doctest_to_latex(node[0].astext())) raise SkipNode()
34c80e9cc587aee0d9bc04b467aa1896777da972 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3512/34c80e9cc587aee0d9bc04b467aa1896777da972/restructuredtext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2896, 299, 395, 67, 2629, 12, 2890, 16, 756, 4672, 21027, 1310, 273, 756, 63, 20, 8009, 689, 408, 1435, 309, 756, 18, 588, 2668, 710, 2629, 11, 4672, 365, 18, 3432, 18, 692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 67, 2896, 299, 395, 67, 2629, 12, 2890, 16, 756, 4672, 21027, 1310, 273, 756, 63, 20, 8009, 689, 408, 1435, 309, 756, 18, 588, 2668, 710, 2629, 11, 4672, 365, 18, 3432, 18, 692...
if i % 2: txt += CRLF
cell_l = cell_tmp[0].splitlines() cell_r = cell_tmp[1].splitlines() format = u'%%-%is|%%s%%s' % width_l for i in range(max(len(cell_l), len(cell_r))): if i >= len(cell_l): cell_l.append(width_l * ' ') elif i >= len(cell_r): cell_r.append('') txt += format % (cell_l[i], cell_r[i], CRLF)
def format_props(self): tkt = self.ticket fields = [f for f in tkt.fields if f['name'] not in ('summary', 'cc', 'time', 'changetime')] width = [0, 0, 0, 0] i = 0 for f in fields: if f['type'] == 'textarea': continue fname = f['name'] if not fname in tkt.values: continue fval = tkt[fname] or '' if fval.find('\n') != -1:...
a236fa5a91c14bf05a5e75792fe8c23dc871ff4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/a236fa5a91c14bf05a5e75792fe8c23dc871ff4a/notification.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 67, 9693, 12, 2890, 4672, 268, 8629, 273, 365, 18, 16282, 1466, 273, 306, 74, 364, 284, 316, 268, 8629, 18, 2821, 309, 284, 3292, 529, 3546, 486, 316, 7707, 7687, 2187, 296, 952, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 740, 67, 9693, 12, 2890, 4672, 268, 8629, 273, 365, 18, 16282, 1466, 273, 306, 74, 364, 284, 316, 268, 8629, 18, 2821, 309, 284, 3292, 529, 3546, 486, 316, 7707, 7687, 2187, 296, 952, ...
self.invalidate_attrs(['natoms','molecules']) def ensure_toplevel_group(self):
def ensure_toplevel_group(self):
def addmol(self, mol): #bruce 050228 revised this for Part (was on assy) and for inval/update of part-summary attrs. """(Public method:) Add a chunk to this Part (usually the "current Part"). Invalidate part attributes which summarize part content (e.g. bbox, drawLevel).
0abde4f5ce347d2e9de87cb0501caffd0127e8c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/0abde4f5ce347d2e9de87cb0501caffd0127e8c2/part.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 21260, 12, 2890, 16, 12629, 4672, 468, 2848, 3965, 15331, 3103, 6030, 283, 26779, 333, 364, 6393, 261, 17416, 603, 1551, 93, 13, 471, 364, 316, 1125, 19, 2725, 434, 1087, 17, 7687, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 21260, 12, 2890, 16, 12629, 4672, 468, 2848, 3965, 15331, 3103, 6030, 283, 26779, 333, 364, 6393, 261, 17416, 603, 1551, 93, 13, 471, 364, 316, 1125, 19, 2725, 434, 1087, 17, 7687, ...
text = utils.unescape(text)
target = utils.unescape(target)
def __call__(self, typ, rawtext, text, lineno, inliner, options={}, content=[]): env = inliner.document.settings.env if not typ: typ = env.config.default_role else: typ = typ.lower() if ':' not in typ: domain, role = '', typ classes = ['xref', role] else: domain, role = typ.split(':', 1) classes = ['xref', domain, '%s-...
27d6120528b655a08ee4c4038c1e05e93ee55b7d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/27d6120528b655a08ee4c4038c1e05e93ee55b7d/roles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 3815, 16, 1831, 955, 16, 977, 16, 7586, 16, 316, 7511, 264, 16, 702, 28793, 913, 33, 8526, 4672, 1550, 273, 316, 7511, 264, 18, 5457, 18, 4272, 18, 307...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1991, 972, 12, 2890, 16, 3815, 16, 1831, 955, 16, 977, 16, 7586, 16, 316, 7511, 264, 16, 702, 28793, 913, 33, 8526, 4672, 1550, 273, 316, 7511, 264, 18, 5457, 18, 4272, 18, 307...
print "store at position", (self.positioner_storage.value + 1) self.diseqccommand("store", self.positioner_storage.value + 1)
print "store at position", int(self.positioner_storage.value) self.diseqccommand("store", int(self.positioner_storage.value)
def greenKey(self): entry = self.getCurrentConfigPath() if entry == "move": if self.isMoving: self.diseqccommand("stop") self.isMoving = False self.stopOnLock = False else: self.isMoving = True self.stopOnLock = True self.diseqccommand("moveWest", 0) self.updateColors("move") elif entry == "finemove": print "stepping w...
094ce8fe71fe874774ba9ade2801ae4069333b96 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/094ce8fe71fe874774ba9ade2801ae4069333b96/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10004, 653, 12, 2890, 4672, 1241, 273, 365, 18, 588, 3935, 22341, 1435, 309, 1241, 422, 315, 8501, 6877, 309, 365, 18, 291, 49, 13767, 30, 365, 18, 72, 784, 30675, 3076, 2932, 5681, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10004, 653, 12, 2890, 4672, 1241, 273, 365, 18, 588, 3935, 22341, 1435, 309, 1241, 422, 315, 8501, 6877, 309, 365, 18, 291, 49, 13767, 30, 365, 18, 72, 784, 30675, 3076, 2932, 5681, 79...
('share/doc/specto', ['COPYING', 'VERSION', 'ChangeLog', 'README']),
('share/doc/specto', give_files('data/doc/', '')),
def give_mo_tuples(langs): mo_tuple_list=[] for lang in langs.split(' '): mo_tuple_list.append( (give_mo_path(lang),[give_mo_file(lang)]) ) return mo_tuple_list
2136e0811b4be6126b893b56dbd73708a0287c8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10818/2136e0811b4be6126b893b56dbd73708a0287c8a/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8492, 67, 8683, 67, 17705, 12, 4936, 87, 4672, 7344, 67, 8052, 67, 1098, 33, 8526, 364, 3303, 316, 26467, 18, 4939, 2668, 296, 4672, 7344, 67, 8052, 67, 1098, 18, 6923, 12, 261, 75, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8492, 67, 8683, 67, 17705, 12, 4936, 87, 4672, 7344, 67, 8052, 67, 1098, 33, 8526, 364, 3303, 316, 26467, 18, 4939, 2668, 296, 4672, 7344, 67, 8052, 67, 1098, 18, 6923, 12, 261, 75, ...
print mount_cmd
def mount(self, mountpoint, fstype=None, args='', record=True): """ Mount this partition to a mount point
662f76bda53f3b39610e52556ebe4e8573de519d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/662f76bda53f3b39610e52556ebe4e8573de519d/base_partition.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5344, 12, 2890, 16, 27122, 16, 20223, 388, 33, 7036, 16, 833, 2218, 2187, 1409, 33, 5510, 4672, 3536, 13076, 333, 3590, 358, 279, 5344, 1634, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5344, 12, 2890, 16, 27122, 16, 20223, 388, 33, 7036, 16, 833, 2218, 2187, 1409, 33, 5510, 4672, 3536, 13076, 333, 3590, 358, 279, 5344, 1634, 2, -100, -100, -100, -100, -100, -100, -100,...
cp.set("condor-max-jobs","lalapps_followupmcmc_coh_full_data","20")
cp.set("condor-max-jobs","lalapps_followupmcmc_coh_playground","20")
def __init__(self, config=None): cp = ConfigParser.ConfigParser() self.cp = cp self.time_now = "_".join([str(i) for i in time_method.gmtime()[0:6]]) home_base = self.__home_dirs() # CONDOR SECTION NEEDED BY THINGS IN INSPIRAL.PY cp.add_section("condor") cp.set("condor","datafind",self.which("ligo_data_find")) cp.set("...
fbf41dae1becc395e41529503c66d15d76d69f76 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/fbf41dae1becc395e41529503c66d15d76d69f76/stfu_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 642, 33, 7036, 4672, 3283, 273, 25076, 18, 809, 2678, 1435, 365, 18, 4057, 273, 3283, 365, 18, 957, 67, 3338, 273, 8802, 18, 5701, 3816, 701, 12, 77, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 642, 33, 7036, 4672, 3283, 273, 25076, 18, 809, 2678, 1435, 365, 18, 4057, 273, 3283, 365, 18, 957, 67, 3338, 273, 8802, 18, 5701, 3816, 701, 12, 77, 1...
register("lynx", None, GenericBrowser("lynx %s"))
register("lynx", None, GenericBrowser("lynx '%s'"))
def open_new(self, url): self.open(url)
46c10b5d4d4760582d55a0edda6f8c7d9d5995ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/46c10b5d4d4760582d55a0edda6f8c7d9d5995ee/webbrowser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 2704, 12, 2890, 16, 880, 4672, 365, 18, 3190, 12, 718, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1696, 67, 2704, 12, 2890, 16, 880, 4672, 365, 18, 3190, 12, 718, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.module.SetParameterAsString(key,parameterValueString)
self.module.SetParameterAsString(parameterLabel,parameterValueString)
def Execute ( self, *args, **keywords ):
885cd8bd1df2453a39053676a2b8a109cc6358aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12580/885cd8bd1df2453a39053676a2b8a109cc6358aa/Slicer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 261, 365, 16, 380, 1968, 16, 2826, 11771, 262, 30, 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, ...
[ 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 261, 365, 16, 380, 1968, 16, 2826, 11771, 262, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
raise InternalError("Could not find System ID in getSystemId output.")
raise InternalError("Could not find Service Tag in getSystemId output.")
def getServiceTag(): output = cmdFactory_getSystemId() for line in output.split("\n"): if line.startswith("Service Tag:"): first, id = line.split(":", 1) return id.strip() raise InternalError("Could not find System ID in getSystemId output.")
3643ba833dadee0b711c9143cb42516e8381da42 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/36/3643ba833dadee0b711c9143cb42516e8381da42/biosHdr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6373, 1805, 13332, 876, 273, 1797, 1733, 67, 588, 3163, 548, 1435, 364, 980, 316, 876, 18, 4939, 31458, 82, 6, 4672, 309, 980, 18, 17514, 1918, 2932, 1179, 4034, 2773, 4672, 1122, 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, 6373, 1805, 13332, 876, 273, 1797, 1733, 67, 588, 3163, 548, 1435, 364, 980, 316, 876, 18, 4939, 31458, 82, 6, 4672, 309, 980, 18, 17514, 1918, 2932, 1179, 4034, 2773, 4672, 1122, 16, ...
index = int(atom[1]['index'].split(',')[0])
index = int(elem[1]['index'].split(',')[0])
def _processThat(self,atom, sessionID): # That atoms (inside templates) are the output equivilant of # <input> elements; they return one of the Kernel's previous # responses, as specified by the optional 'index' attribute. outputHistory = self.getPredicate(self._outputHistory, sessionID) index = 1 try: # According to t...
cdb5ca51cf362e7f41cc166060e200bc84fcb1e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6428/cdb5ca51cf362e7f41cc166060e200bc84fcb1e8/Kernel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 18163, 12, 2890, 16, 7466, 16, 13737, 4672, 468, 12466, 9006, 261, 28091, 5539, 13, 854, 326, 876, 1298, 427, 330, 970, 434, 468, 411, 2630, 34, 2186, 31, 2898, 327, 1245, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 18163, 12, 2890, 16, 7466, 16, 13737, 4672, 468, 12466, 9006, 261, 28091, 5539, 13, 854, 326, 876, 1298, 427, 330, 970, 434, 468, 411, 2630, 34, 2186, 31, 2898, 327, 1245, 4...
sage: K.hilbert_class_field('h') Number Field in h with defining polynomial x^6 + 2*x^5 + 70*x^4 + 90*x^3 + 1631*x^2 + 1196*x + 12743 """ f = self.hilbert_class_polynomial() C = self.composite_fields(NumberField(f,'x'),names) assert len(C) == 1 return C[0]
""" f = self.hilbert_class_field_defining_polynomial() return self.extension(f, names)
def hilbert_class_field(self, names): r""" Returns the Hilbert class field of this quadratic field as an absolute extension of $\QQ$. For a polynomial that defines a relative extension see the \code{hilbert_class_polynomial} command.
2a259e3659e2fbb631c618303984449cc23e8057 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2a259e3659e2fbb631c618303984449cc23e8057/number_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 330, 25925, 67, 1106, 67, 1518, 12, 2890, 16, 1257, 4672, 436, 8395, 2860, 326, 670, 330, 25925, 667, 652, 434, 333, 26146, 652, 487, 392, 4967, 2710, 434, 271, 64, 53, 53, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 330, 25925, 67, 1106, 67, 1518, 12, 2890, 16, 1257, 4672, 436, 8395, 2860, 326, 670, 330, 25925, 667, 652, 434, 333, 26146, 652, 487, 392, 4967, 2710, 434, 271, 64, 53, 53, 8, 1...
prcotup = (name, None, (None, None, None)) if po.checkPrco(prcotype, prcotup): if not result.has_key(po.pkgid): result[po.pkgid] = po if prcotype != 'provides' or name[0] != '/': if not result.has_key(po.pkgid): result[po.pkgid] = po else: fileresults = self.searchFiles(name) for pkg in fileresults: if not result.has...
result[po.pkgid] = po
def searchPrco(self, name, prcotype): result = self._cache[prcotype].get(name) if result is not None: return result
32e0bb632f841936571ce3db59a89332c96ea39c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/32e0bb632f841936571ce3db59a89332c96ea39c/rpmsack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 28763, 83, 12, 2890, 16, 508, 16, 846, 71, 10570, 4672, 225, 563, 273, 365, 6315, 2493, 63, 683, 71, 10570, 8009, 588, 12, 529, 13, 309, 563, 353, 486, 599, 30, 327, 563, 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, 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, 1623, 28763, 83, 12, 2890, 16, 508, 16, 846, 71, 10570, 4672, 225, 563, 273, 365, 6315, 2493, 63, 683, 71, 10570, 8009, 588, 12, 529, 13, 309, 563, 353, 486, 599, 30, 327, 563, 2, ...
tb.open(currms)
try: tb.open(currms) except Exception, e: if str(e)[-15:] == " does not exist": print "tb could not open", currms else: print "Error", e, "from tb.open(", currms, ")" break
def checkMSes(holderdict, dir, files): """ Updates holderdict['msdict'] with a list of MSes in dir that match holderdict['musthave'] and holderdict['mspat'] as in lsms(musthave, mspat, combine, sortfirst, remind). If holderdict['doprint']=True a blurb about each ms will be printed as it is found, using holderdict['rem...
52c5edd3cfc6ef3629fdfca40911afff5139c38e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/52c5edd3cfc6ef3629fdfca40911afff5139c38e/lsms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 3537, 281, 12, 4505, 1576, 16, 1577, 16, 1390, 4672, 3536, 15419, 10438, 1576, 3292, 959, 1576, 3546, 598, 279, 666, 434, 9238, 281, 316, 1577, 716, 845, 10438, 1576, 3292, 11926, 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, 866, 3537, 281, 12, 4505, 1576, 16, 1577, 16, 1390, 4672, 3536, 15419, 10438, 1576, 3292, 959, 1576, 3546, 598, 279, 666, 434, 9238, 281, 316, 1577, 716, 845, 10438, 1576, 3292, 11926, 2...
return cost, gradient, last_y def single_shooting(model, initial_u=0.4):
return gradient, last_y, gradparams def single_shooting(model, initial_u=0.4, GRADIENT_THRESHOLD=0.0001):
def _shoot(model, start_time, end_time): """ Does a single "shot". Model parameters must be set BEFORE calling this method. @note: Currently written specifically for VDP. @note: Currently only supports inputs. @note: Assumes cost function is not directly dependent on parameters (in this case - input u). @param start_...
733964346bd705d3e3fa78795693f8a99289c936 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/733964346bd705d3e3fa78795693f8a99289c936/shooting.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 674, 1632, 12, 2284, 16, 787, 67, 957, 16, 679, 67, 957, 4672, 3536, 9637, 279, 2202, 315, 2415, 9654, 3164, 1472, 1297, 506, 444, 21203, 4440, 333, 707, 18, 225, 632, 7652, 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, 674, 1632, 12, 2284, 16, 787, 67, 957, 16, 679, 67, 957, 4672, 3536, 9637, 279, 2202, 315, 2415, 9654, 3164, 1472, 1297, 506, 444, 21203, 4440, 333, 707, 18, 225, 632, 7652, 30, ...
def runTest(self): self.fail("Unimplemented test case.")
def runTest(self): self.assertTrue(self._device.unit_get_size(_ped.UNIT_SECTOR) == 512) self.assertTrue(self._device.unit_get_size(_ped.UNIT_BYTE) == 1) self.assertTrue(self._device.unit_get_size(_ped.UNIT_KILOBYTE) == 1000) self.assertTrue(self._device.unit_get_size(_ped.UNIT_MEGABYTE) == 1000000) self.assertTrue(self...
def runTest(self): self.assert_(_ped.unit_get_default() >= 0)
847fac1ced1638374708c39bfdeebc45dc437fd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5978/847fac1ced1638374708c39bfdeebc45dc437fd2/test_ped.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 4709, 12, 2890, 4672, 365, 18, 11231, 67, 24899, 1845, 18, 4873, 67, 588, 67, 1886, 1435, 1545, 374, 13, 2, 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, 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, 1086, 4709, 12, 2890, 4672, 365, 18, 11231, 67, 24899, 1845, 18, 4873, 67, 588, 67, 1886, 1435, 1545, 374, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
lines.append('%s "%s"' % (commandparams_info[name][0], option1.replace('"', '\\"')))
lines.append('%s "%s"' % (commandparams_info[name][0], option1.replace('\\', '\\\\').replace('"', '\\"')))
def convert_commandparams(document): """ Convert \begin_inset LatexCommand \cmdname[opt1][opt2]{arg} \end_inset to \begin_inset LatexCommand cmdname name1 "opt1" name2 "opt2" name3 "arg" \end_inset name1, name2 and name3 can be different for each command.
7feaac16d224b7adb406eb79810b2b84e4816ca0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/7feaac16d224b7adb406eb79810b2b84e4816ca0/lyx_1_5.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 3076, 2010, 12, 5457, 4672, 3536, 4037, 225, 521, 10086, 67, 267, 542, 11134, 338, 2189, 521, 4172, 529, 63, 3838, 21, 6362, 3838, 22, 7073, 3175, 97, 521, 409, 67, 267, 542,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1765, 67, 3076, 2010, 12, 5457, 4672, 3536, 4037, 225, 521, 10086, 67, 267, 542, 11134, 338, 2189, 521, 4172, 529, 63, 3838, 21, 6362, 3838, 22, 7073, 3175, 97, 521, 409, 67, 267, 542,...
yield None
pass
def run(self): try: # this yields a different set of start refs every time we start a new traversal # force creation of a new workingListSelector inside the while loop right off the bat workingListSelector = nullGen() # this holds the current step of the current traversal curObjRef = None while True: # yield up here in...
8550b2c0e30d9dcdc5f2804f1ae0e09c06d39181 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/8550b2c0e30d9dcdc5f2804f1ae0e09c06d39181/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 468, 333, 16932, 279, 3775, 444, 434, 787, 9047, 3614, 813, 732, 787, 279, 394, 15940, 468, 2944, 6710, 434, 279, 394, 5960, 682, 4320, 4832, 326, 1323, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 775, 30, 468, 333, 16932, 279, 3775, 444, 434, 787, 9047, 3614, 813, 732, 787, 279, 394, 15940, 468, 2944, 6710, 434, 279, 394, 5960, 682, 4320, 4832, 326, 1323, ...
raise ValueError, "the modulus must be a positive integer"
raise ValueError, "the modulus must be a positive integer"
def solve_mod_enumerate(eqns, modulus): r""" Return all solutions to an equation or list of equations modulo the given integer modulus. Each equation must involve only polynomials in 1 or many variables. The solutions are returned as `n`-tuples, where `n` is the number of variables appearing anywhere in the given equa...
8f4c71f8fd8021c24517c053b5e8c155999f9c61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8f4c71f8fd8021c24517c053b5e8c155999f9c61/relation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12439, 67, 1711, 67, 7924, 12600, 12, 11253, 2387, 16, 24770, 4672, 436, 8395, 2000, 777, 22567, 358, 392, 15778, 578, 666, 434, 30369, 26109, 326, 864, 3571, 24770, 18, 8315, 15778, 1297,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12439, 67, 1711, 67, 7924, 12600, 12, 11253, 2387, 16, 24770, 4672, 436, 8395, 2000, 777, 22567, 358, 392, 15778, 578, 666, 434, 30369, 26109, 326, 864, 3571, 24770, 18, 8315, 15778, 1297,...
if req:
if req and not req.sent_headers:
def communicate(self): """Read each request and respond appropriately.""" try: while True: # (re)set req to None so that if something goes wrong in # the RequestHandlerClass constructor, the error doesn't # get written to the previous request. req = None req = self.RequestHandlerClass(self.wfile, self.environ, self.wsg...
f3c2b678e65b5cc0bf721e52eedaa6b13a3eca4b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/82/f3c2b678e65b5cc0bf721e52eedaa6b13a3eca4b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15541, 12, 2890, 4672, 3536, 1994, 1517, 590, 471, 6846, 21419, 12123, 775, 30, 1323, 1053, 30, 468, 261, 266, 13, 542, 1111, 358, 599, 1427, 716, 309, 5943, 13998, 7194, 316, 468, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15541, 12, 2890, 4672, 3536, 1994, 1517, 590, 471, 6846, 21419, 12123, 775, 30, 1323, 1053, 30, 468, 261, 266, 13, 542, 1111, 358, 599, 1427, 716, 309, 5943, 13998, 7194, 316, 468, 326, ...
if type(command) is ClassType and issubclass(klass, Command):
if type(command) is ClassType and issubclass(command, Command):
def _show_help (self, parser, global_options=1, display_options=1, commands=[]): """Show help for the setup script command-line in the form of several lists of command-line options. 'parser' should be a FancyGetopt instance; do not expect it to be returned in the same state, as its option table will be reset to make i...
45ce5ee58e9269aa155c4ee33e313089f162540a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/45ce5ee58e9269aa155c4ee33e313089f162540a/dist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4500, 67, 5201, 261, 2890, 16, 2082, 16, 2552, 67, 2116, 33, 21, 16, 2562, 67, 2116, 33, 21, 16, 4364, 33, 8526, 4672, 3536, 5706, 2809, 364, 326, 3875, 2728, 1296, 17, 1369, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4500, 67, 5201, 261, 2890, 16, 2082, 16, 2552, 67, 2116, 33, 21, 16, 2562, 67, 2116, 33, 21, 16, 4364, 33, 8526, 4672, 3536, 5706, 2809, 364, 326, 3875, 2728, 1296, 17, 1369, 31...
x= Bcfg2.Client.XML.SubElement(entry, "Instance", name=entry.get('name'), version=vers, arch=arch, release=rel, epoch=epoch)
x = Bcfg2.Client.XML.SubElement(entry, "Instance", name=entry.get('name'), version=vers, arch=arch, release=rel, epoch=epoch)
def VerifyPackage(self, entry, modlist): pinned_version = None if entry.get('version', False) == 'auto': # old style entry; synthesize Instances from current installed if entry.get('name') not in self.yum_installed and \ entry.get('name') not in self.yum_avail: # new entry; fall back to default entry.set('version', 'an...
09fcf23f499c3743f2e5634510cc9d2d8b9949e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11867/09fcf23f499c3743f2e5634510cc9d2d8b9949e9/YUMng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 2261, 12, 2890, 16, 1241, 16, 681, 1098, 4672, 26193, 67, 1589, 273, 599, 309, 1241, 18, 588, 2668, 1589, 2187, 1083, 13, 422, 296, 6079, 4278, 468, 1592, 2154, 1241, 31, 6194, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 2261, 12, 2890, 16, 1241, 16, 681, 1098, 4672, 26193, 67, 1589, 273, 599, 309, 1241, 18, 588, 2668, 1589, 2187, 1083, 13, 422, 296, 6079, 4278, 468, 1592, 2154, 1241, 31, 6194, 7...
dlg=wxMessageDialog(self, 'Save changes?', NAME, wxYES_NO | wxCANCEL | wxICON_QUESTION)
dlg=wxMessageDialog(self, 'Save changes?', NAME, wxYES_NO | wxCANCEL | wxICON_QUESTION)
def CheckEditorChanges(self): go_ahead = true if self.editor != None: if self.editor.IsModified: dlg=wxMessageDialog(self, 'Save changes?', NAME, wxYES_NO | wxCANCEL | wxICON_QUESTION) result = dlg.ShowModal() if result == wxID_YES: file = self.tree.GetItemText(self.activeitem) self.editor.SaveFile(file) if result == w...
3ba07fe9c5b636ef447aa47e40d9f258c1d32e0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/3ba07fe9c5b636ef447aa47e40d9f258c1d32e0a/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2073, 6946, 7173, 12, 2890, 4672, 1960, 67, 11617, 273, 638, 309, 365, 18, 9177, 480, 599, 30, 309, 365, 18, 9177, 18, 2520, 4575, 30, 25840, 33, 27226, 1079, 6353, 12, 2890, 16, 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, 2073, 6946, 7173, 12, 2890, 4672, 1960, 67, 11617, 273, 638, 309, 365, 18, 9177, 480, 599, 30, 309, 365, 18, 9177, 18, 2520, 4575, 30, 25840, 33, 27226, 1079, 6353, 12, 2890, 16, 296, ...
self._addParameter(self.workflow,'SystemConfig','JDLReqt',config,description)
self._addParameter( self.workflow, 'SystemConfig', 'JDLReqt', config, description )
def setSystemConfig(self, config): """Helper function.
50b3322668816ba92ea3f9b253d993dc34c53a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50b3322668816ba92ea3f9b253d993dc34c53a21/Job.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 3163, 809, 12, 2890, 16, 642, 4672, 3536, 2276, 445, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 3163, 809, 12, 2890, 16, 642, 4672, 3536, 2276, 445, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
class BotoServerError(Exception):
class BotoServerError(StandardError):
def __str__(self): return 'S3Error: %s' % self.reason
f408146ce65bb7e2f0f3ac7f0b19dd6a04a8963e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/f408146ce65bb7e2f0f3ac7f0b19dd6a04a8963e/exception.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 296, 55, 23, 668, 30, 738, 87, 11, 738, 365, 18, 10579, 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...
[ 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 296, 55, 23, 668, 30, 738, 87, 11, 738, 365, 18, 10579, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
old = sysconfig._config_vars.get('VERSION')
old = sysconfig.get_config_vars().get('VERSION')
def test_version_int(self): source = self.mkdtemp() target = self.mkdtemp() expected = self.write_sample_scripts(source)
98bfc6d5baf057a6023a5038d676d6009b5c5d68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/98bfc6d5baf057a6023a5038d676d6009b5c5d68/test_build_scripts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1589, 67, 474, 12, 2890, 4672, 1084, 273, 365, 18, 24816, 72, 5814, 1435, 1018, 273, 365, 18, 24816, 72, 5814, 1435, 2665, 273, 365, 18, 2626, 67, 6358, 67, 12827, 12, 3168, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1589, 67, 474, 12, 2890, 4672, 1084, 273, 365, 18, 24816, 72, 5814, 1435, 1018, 273, 365, 18, 24816, 72, 5814, 1435, 2665, 273, 365, 18, 2626, 67, 6358, 67, 12827, 12, 3168, ...
def test_amino_acids_pro_l_aminoacid(self): StructureTest(dir="amino_acids", test="pro_l_aminoacid") def test_amino_acids_ser_l_aminoacid(self): StructureTest(dir="amino_acids", test="ser_l_aminoacid") def test_amino_acids_thr_l_aminoacid(self): StructureTest(dir="amino_acids", test="thr_l_aminoacid") def test_amino_ac...
def test_amino_acids_pro_l_aminoacid(self): StructureTest(dir="amino_acids", test="pro_l_aminoacid")
1b04cff6e27f660e98e628b425c09e2c157b0350 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/1b04cff6e27f660e98e628b425c09e2c157b0350/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 301, 15020, 67, 1077, 2232, 67, 685, 67, 80, 67, 301, 15020, 1077, 350, 12, 2890, 4672, 13348, 4709, 12, 1214, 1546, 301, 15020, 67, 1077, 2232, 3113, 1842, 1546, 685, 67, 80...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 301, 15020, 67, 1077, 2232, 67, 685, 67, 80, 67, 301, 15020, 1077, 350, 12, 2890, 4672, 13348, 4709, 12, 1214, 1546, 301, 15020, 67, 1077, 2232, 3113, 1842, 1546, 685, 67, 80...
self.dbg('suid/sgid: %s mode 0%o', path, mode & 07777)
self.info('suid/sgid: %s mode 0%o', path, mode & 07777)
def doFile(self, path):
127a4db6683a2662d5c12a5fedf28da3a4c43c2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/127a4db6683a2662d5c12a5fedf28da3a4c43c2c/packagepolicy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 812, 12, 2890, 16, 589, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 812, 12, 2890, 16, 589, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
1/(1 - (1/r))
1/(1 - 1/r)
def _repr_(self, simplify=True): """ TESTS: sage: a = (1-1/r)^(-1); a 1/(1 - (1/r)) sage: a.derivative(r) -1/((1 - (1/r))^2*r^2)
b3ba17c1357de84983fbf0c3d95f1ba232a95810 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b3ba17c1357de84983fbf0c3d95f1ba232a95810/calculus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12715, 67, 12, 2890, 16, 16499, 33, 5510, 4672, 3536, 22130, 55, 30, 272, 410, 30, 279, 273, 261, 21, 17, 21, 19, 86, 13, 66, 19236, 21, 1769, 279, 404, 19, 12, 21, 300, 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, 389, 12715, 67, 12, 2890, 16, 16499, 33, 5510, 4672, 3536, 22130, 55, 30, 272, 410, 30, 279, 273, 261, 21, 17, 21, 19, 86, 13, 66, 19236, 21, 1769, 279, 404, 19, 12, 21, 300, 404, ...
(-2.1598449493429825, -0.83146961230254546), (-1.9634954084936207,
(-2.1598449493429825, -0.831469612302545...), (-1.9634954084936207,
def generate_plot_points(f, xrange, plot_points=5, adaptive_tolerance=0.01, adaptive_recursion=5, randomize = True): r""" Calculate plot points for a function f in the interval xrange. The adaptive refinement algorithm for plotting a function f. See the docstring for plot for a description of the algorithm. INPUT: f -...
7d47c9787ca7bd441904f4820a1ea3c72893977e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7d47c9787ca7bd441904f4820a1ea3c72893977e/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 4032, 67, 4139, 12, 74, 16, 12314, 16, 3207, 67, 4139, 33, 25, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 2744, 554, 273, 1053, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 67, 4032, 67, 4139, 12, 74, 16, 12314, 16, 3207, 67, 4139, 33, 25, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 2744, 554, 273, 1053, 467...
print moves assert len(moves) == 18
assert len(moves) == 18, listToSan(board, (move[0] for move in moves)) board.applyFen("8/p7/6kp/3K4/6PP/8/8/8 b - - 0 1") moves = probeEndGameTable(board) assert len(moves) == 7, listToSan(board, (move[0] for move in moves)) board.applyFen("8/p6k/2K5/7R/6PP/8/8/8 b - - 0 66") moves = probeEndGameTable(board) assert l...
def probeEndGameTable (board): fen = board.asFen().split()[0] + " w - - 0 1" if (fen,board.color) in table: return table[(fen,board.color)] # k4it has all 6-men tables except 5 vs. 1 whites = bitLength(board.friends[WHITE]) blacks = bitLength(board.friends[BLACK]) if whites >= 5 or blacks >= 5 or whites+blacks >= 7: ...
2938467cb07839fd68786e0e9a310306cfd4652c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5339/2938467cb07839fd68786e0e9a310306cfd4652c/egtb_k4it.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10695, 1638, 12496, 1388, 261, 3752, 4672, 225, 284, 275, 273, 11094, 18, 345, 42, 275, 7675, 4939, 1435, 63, 20, 65, 397, 315, 341, 300, 300, 374, 404, 6, 309, 261, 74, 275, 16, 375...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10695, 1638, 12496, 1388, 261, 3752, 4672, 225, 284, 275, 273, 11094, 18, 345, 42, 275, 7675, 4939, 1435, 63, 20, 65, 397, 315, 341, 300, 300, 374, 404, 6, 309, 261, 74, 275, 16, 375...
'gslcblas',
'cblas',
def pyx_preparse(s): r""" Preparse a Pyx file * include cdefs.pxi, interrupt.pxi, stdsage.pxi * parse clang pragma (c or c++) * parse clib pragma (additional libraries to link in) * parse cinclude (additional include directories) The pragmas: \begin{description} \item[clang] may be either c or c++ indicating whether a...
c7107fde3c8d028674795d278a46b1ec55c9f73a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c7107fde3c8d028674795d278a46b1ec55c9f73a/cython.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2395, 92, 67, 1484, 2670, 12, 87, 4672, 436, 8395, 2962, 2670, 279, 4707, 92, 585, 380, 2341, 276, 12537, 18, 4430, 77, 16, 13123, 18, 4430, 77, 16, 2044, 87, 410, 18, 4430, 77, 380,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2395, 92, 67, 1484, 2670, 12, 87, 4672, 436, 8395, 2962, 2670, 279, 4707, 92, 585, 380, 2341, 276, 12537, 18, 4430, 77, 16, 13123, 18, 4430, 77, 16, 2044, 87, 410, 18, 4430, 77, 380,...
self.setText(("%dMB " + _("free diskspace")) % (free))
self.setText(("%d MB " + _("free diskspace")) % (free))
def update(self): try: stat = os.statvfs(self.path) except OSError: return -1 if self.type == self.FREE: free = stat.f_bfree / 1000 * stat.f_bsize / 1000 self.setText(("%dMB " + _("free diskspace")) % (free))
69154b84821e28e3edbad143b0d634872d26ed1f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/69154b84821e28e3edbad143b0d634872d26ed1f/DiskInfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 775, 30, 610, 273, 1140, 18, 5642, 90, 2556, 12, 2890, 18, 803, 13, 1335, 10002, 30, 327, 300, 21, 225, 309, 365, 18, 723, 422, 365, 18, 28104, 30, 4843, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 4672, 775, 30, 610, 273, 1140, 18, 5642, 90, 2556, 12, 2890, 18, 803, 13, 1335, 10002, 30, 327, 300, 21, 225, 309, 365, 18, 723, 422, 365, 18, 28104, 30, 4843, 273, ...
'revisions': fields.one2many('stock.production.lot.revision','lot_id','Revisions'),
'revisions': fields.one2many('stock.production.lot.revision', 'lot_id', 'Revisions'),
def _stock_search(self, cr, uid, obj, name, args): locations = self.pool.get('stock.location').search(cr, uid, [('usage','=','internal')]) cr.execute('''select prodlot_id, sum(name) from stock_report_prodlots where location_id in ('''+','.join(map(str, locations)) +''') group by prodlot_id having sum(name) ''' + str(...
369221b47101072e094ad2d02fe2edd2b47690aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/369221b47101072e094ad2d02fe2edd2b47690aa/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15381, 67, 3072, 12, 2890, 16, 4422, 16, 4555, 16, 1081, 16, 508, 16, 833, 4672, 7838, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3562, 16063, 3072, 12, 3353, 16, 4555, 16, 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, 15381, 67, 3072, 12, 2890, 16, 4422, 16, 4555, 16, 1081, 16, 508, 16, 833, 4672, 7838, 273, 365, 18, 6011, 18, 588, 2668, 15381, 18, 3562, 16063, 3072, 12, 3353, 16, 4555, 16, 3...
find_template(self._db.config.TEMPLATES,
template = find_template(self._db.config.TEMPLATES,
def history(self, direction='descending', dre=re.compile('\d+')): l = ['<table class="history">' '<tr><th colspan="4" class="header">', _('History'), '</th></tr><tr>', _('<th>Date</th>'), _('<th>User</th>'), _('<th>Action</th>'), _('<th>Args</th>'), '</tr>'] current = {} comments = {} history = self._klass.history(self...
1ea8cff47f70916ee19486dfd32766235b849f94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/1ea8cff47f70916ee19486dfd32766235b849f94/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4927, 12, 2890, 16, 4068, 2218, 5569, 2846, 2187, 302, 266, 33, 266, 18, 11100, 2668, 64, 72, 6797, 3719, 30, 328, 273, 10228, 32, 2121, 667, 1546, 8189, 7918, 2368, 313, 4438, 451, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4927, 12, 2890, 16, 4068, 2218, 5569, 2846, 2187, 302, 266, 33, 266, 18, 11100, 2668, 64, 72, 6797, 3719, 30, 328, 273, 10228, 32, 2121, 667, 1546, 8189, 7918, 2368, 313, 4438, 451, 20...
-delta: a complete function from [states]x[alphabets]->[states]. See note below.
-delta: a complete function from [states]x[alphabets]->[states].
def __init__(self, states, alphabet, delta, start, accepts): """The inputs to the class are as follows: -states: a lists containing the states of the DFA -alphabet: a list containing the symbols in the DFA's alphabet -delta: a complete function from [states]x[alphabets]->[states]. See note below. -start: the state at w...
80c1b71e9c8ea4ac42726626f14559bbb054f938 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3455/80c1b71e9c8ea4ac42726626f14559bbb054f938/DFA.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5493, 16, 10877, 16, 3622, 16, 787, 16, 8104, 4672, 3536, 1986, 4540, 358, 326, 667, 854, 487, 13040, 30, 300, 7992, 30, 279, 6035, 4191, 326, 5493, 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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5493, 16, 10877, 16, 3622, 16, 787, 16, 8104, 4672, 3536, 1986, 4540, 358, 326, 667, 854, 487, 13040, 30, 300, 7992, 30, 279, 6035, 4191, 326, 5493, 434,...
_dict = {str8('0'): b'', str8('a'): b'Python:', str8('b'): b'Programming', str8('c'): b'the', str8('d'): b'way', str8('f'): b'Guido', str8('g'): b'intended',
_dict = {'0': b'', 'a': b'Python:', 'b': b'Programming', 'c': b'the', 'd': b'way', 'f': b'Guido', 'g': b'intended',
def _delete_files(): # we don't know the precise name the underlying database uses # so we use glob to locate all names for f in glob.glob(_fname + "*"): try: os.unlink(f) except OSError: pass
a7950c9ae8bb29eda405259ef104af2935e68026 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/a7950c9ae8bb29eda405259ef104af2935e68026/test_anydbm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3733, 67, 2354, 13332, 468, 732, 2727, 1404, 5055, 326, 31293, 508, 326, 6808, 2063, 4692, 468, 1427, 732, 999, 4715, 358, 10627, 777, 1257, 364, 284, 316, 4715, 18, 10581, 24899, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 3733, 67, 2354, 13332, 468, 732, 2727, 1404, 5055, 326, 31293, 508, 326, 6808, 2063, 4692, 468, 1427, 732, 999, 4715, 358, 10627, 777, 1257, 364, 284, 316, 4715, 18, 10581, 24899, 1...
candidates = [2, 2.2, 2L, 2+4j, [1], (2,), None, Empty(), Coerce(3), Cmp(4), RCmp(5)] def test():
def do_infix_binops():
def __rcmp__(self, other): return cmp(other, self.arg)
2bbeef47d95c3b3357d695587233b30eef56ad20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2bbeef47d95c3b3357d695587233b30eef56ad20/test_coercion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1310, 1291, 972, 12, 2890, 16, 1308, 4672, 327, 9411, 12, 3011, 16, 365, 18, 3175, 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, ...
[ 1, 1, 1, 1, 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, 1001, 1310, 1291, 972, 12, 2890, 16, 1308, 4672, 327, 9411, 12, 3011, 16, 365, 18, 3175, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if r not in (1,2,4): raise TypeError, "r must be in (1,2,4)"
if r not in (1, 2, 4): raise TypeError, "r must be in (1, 2, 4)"
def __init__(self,n=1,r=1,c=1,e=4, star=False, **kwargs): """ Small Scale Variants of the AES.
cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 82, 33, 21, 16, 86, 33, 21, 16, 71, 33, 21, 16, 73, 33, 24, 16, 10443, 33, 8381, 16, 2826, 4333, 4672, 3536, 9425, 454, 12591, 11487, 4388, 434, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 82, 33, 21, 16, 86, 33, 21, 16, 71, 33, 21, 16, 73, 33, 24, 16, 10443, 33, 8381, 16, 2826, 4333, 4672, 3536, 9425, 454, 12591, 11487, 4388, 434, 326,...
return dynamic.Dispatch(dispatch, userName, CDispatch, typeinfo, UnicodeToString=UnicodeToString,clsctx=clsctx)
if WrapperClass is None: WrapperClass = CDispatch return dynamic.Dispatch(dispatch, userName, WrapperClass, typeinfo, UnicodeToString=UnicodeToString,clsctx=clsctx)
def __WrapDispatch(dispatch, userName = None, resultCLSID = None, typeinfo = None, \ UnicodeToString = NeedUnicodeConversions, clsctx = pythoncom.CLSCTX_SERVER): """ Helper function to return a makepy generated class for a CLSID if it exists, otherwise cope by using CDispatch. """ if resultCLSID is None: try: typeinfo ...
1d54902740e43c37a9c06b39d448dcc0c95aa1cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/1d54902740e43c37a9c06b39d448dcc0c95aa1cc/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2964, 5325, 12, 10739, 16, 12065, 273, 599, 16, 563, 39, 3045, 734, 273, 599, 16, 618, 1376, 273, 599, 16, 521, 9633, 5808, 273, 12324, 16532, 29287, 16, 2028, 5900, 273, 5790, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2964, 5325, 12, 10739, 16, 12065, 273, 599, 16, 563, 39, 3045, 734, 273, 599, 16, 618, 1376, 273, 599, 16, 521, 9633, 5808, 273, 12324, 16532, 29287, 16, 2028, 5900, 273, 5790, 8...
def reset():
def reset(self):
def reset(): self.called = False
3ffe2cb437e5c5ef179a32d974b9041a6bc31b6a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12364/3ffe2cb437e5c5ef179a32d974b9041a6bc31b6a/pyparsing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2715, 12, 2890, 4672, 365, 18, 11777, 273, 1083, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2715, 12, 2890, 4672, 365, 18, 11777, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
srctz = pytz.timezone('GMT') date_gmt = date_1.replace(tzinfo=srctz).astimezone(desttz).strftime('%Y-%m-%d %H:%M:%S')
date_gmt = date_1.replace(tzinfo=pytz.utc).astimezone(desttz).strftime('%Y-%m-%d %H:%M:%S')
def create_ics(self, cr, uid, datas, name, ical, context=None): """ create calendaring and scheduling information @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param context: A standard dictionary for contextual values """
bd76d0a66a42c534bfa21fa9e408b13c13e60ae3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/bd76d0a66a42c534bfa21fa9e408b13c13e60ae3/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2102, 12, 2890, 16, 4422, 16, 4555, 16, 5386, 16, 508, 16, 277, 771, 16, 819, 33, 7036, 4672, 3536, 752, 5686, 310, 471, 21895, 1779, 632, 891, 365, 30, 1021, 733, 4407, 632...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2102, 12, 2890, 16, 4422, 16, 4555, 16, 5386, 16, 508, 16, 277, 771, 16, 819, 33, 7036, 4672, 3536, 752, 5686, 310, 471, 21895, 1779, 632, 891, 365, 30, 1021, 733, 4407, 632...
class TestSuite:
class TestSuite(object):
def failIfAlmostEqual(self, first, second, places=7, msg=None): """Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
17322bbb89cc284ccf9b00c40cc8dfa84e535b81 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/17322bbb89cc284ccf9b00c40cc8dfa84e535b81/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2321, 2047, 1067, 10329, 5812, 12, 2890, 16, 1122, 16, 2205, 16, 12576, 33, 27, 16, 1234, 33, 7036, 4672, 3536, 3754, 309, 326, 2795, 2184, 854, 3959, 487, 11383, 635, 3675, 7114, 16729,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2321, 2047, 1067, 10329, 5812, 12, 2890, 16, 1122, 16, 2205, 16, 12576, 33, 27, 16, 1234, 33, 7036, 4672, 3536, 3754, 309, 326, 2795, 2184, 854, 3959, 487, 11383, 635, 3675, 7114, 16729,...
self.db[msg.getDBKey()] = attributes
key = msg.getDBKey() assert key is not None, "None is not a valid key." self.db[key] = attributes
def store_msg(self, msg): if self.db is not None: msg.date_modified = time.time() attributes = [] for att in msg.stored_attributes: attributes.append((att, getattr(msg, att))) self.db[msg.getDBKey()] = attributes self.store()
ad869c9e37f393c530111692811e39d152145add /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/ad869c9e37f393c530111692811e39d152145add/message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1707, 67, 3576, 12, 2890, 16, 1234, 4672, 309, 365, 18, 1966, 353, 486, 599, 30, 1234, 18, 712, 67, 7342, 273, 813, 18, 957, 1435, 1677, 273, 5378, 364, 2403, 316, 1234, 18, 22601, 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, 1707, 67, 3576, 12, 2890, 16, 1234, 4672, 309, 365, 18, 1966, 353, 486, 599, 30, 1234, 18, 712, 67, 7342, 273, 813, 18, 957, 1435, 1677, 273, 5378, 364, 2403, 316, 1234, 18, 22601, 6...
Returns the adjacency matrix of the digraph. Each vertex is represented by its position in the list returned by the vertices()
Returns the adjacency matrix of the digraph as a matrix over the field of two elements. Each vertex is represented by its position in the list returned by the vertices()
def adjacency_matrix(self, sparse=True): """ Returns the adjacency matrix of the digraph. Each vertex is represented by its position in the list returned by the vertices() function. EXAMPLE: sage: D = DiGraph( { 0: [1,2,3], 1: [0,2], 2: [3], 3: [4], 4: [0,5], 5: [1] } ) sage: D.adjacency_matrix() [0 1 1 1 0 0] [1 0 1 ...
951646f007938314e04fe4ab322062c54f6ad448 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/951646f007938314e04fe4ab322062c54f6ad448/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25220, 67, 5667, 12, 2890, 16, 9387, 33, 5510, 4672, 3536, 2860, 326, 25220, 3148, 434, 326, 3097, 1483, 487, 279, 3148, 1879, 326, 652, 434, 2795, 2186, 18, 8315, 5253, 353, 10584, 635,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25220, 67, 5667, 12, 2890, 16, 9387, 33, 5510, 4672, 3536, 2860, 326, 25220, 3148, 434, 326, 3097, 1483, 487, 279, 3148, 1879, 326, 652, 434, 2795, 2186, 18, 8315, 5253, 353, 10584, 635,...
-0.70710678118654746), (-0.39269908169872414, -0.38268343236508978),
-0.707106781186547...), (-0.39269908169872414, -0.38268343236508978),
def generate_plot_points(f, xrange, plot_points=5, adaptive_tolerance=0.01, adaptive_recursion=5, randomize = True): r""" Calculate plot points for a function f in the interval xrange. The adaptive refinement algorithm for plotting a function f. See the docstring for plot for a description of the algorithm. INPUT: f -...
d460fe3470a8ce0486f8ddea6d37bf0a22dcf1c8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/d460fe3470a8ce0486f8ddea6d37bf0a22dcf1c8/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 4032, 67, 4139, 12, 74, 16, 12314, 16, 3207, 67, 4139, 33, 25, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 2744, 554, 273, 1053, 467...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 67, 4032, 67, 4139, 12, 74, 16, 12314, 16, 3207, 67, 4139, 33, 25, 16, 5855, 688, 67, 25456, 33, 20, 18, 1611, 16, 5855, 688, 67, 31347, 33, 25, 16, 2744, 554, 273, 1053, 467...
msgs += method + "Q flux density test failure, got " + str(got) \
msgs += test + "Q flux density test failure, got " + str(got) \
def run_imfit(): default('imfit') return imfit(imagename=noisy_image, mask=mask, includepix=includepix, excludepix=excludepix)
8fe115edb6ed8f2c163424551e075e57f916f51d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2098/8fe115edb6ed8f2c163424551e075e57f916f51d/test_imfit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 381, 7216, 13332, 805, 2668, 381, 7216, 6134, 327, 709, 7216, 12, 15374, 1069, 33, 2135, 291, 93, 67, 2730, 16, 3066, 33, 4455, 16, 2341, 14861, 33, 6702, 14861, 16, 4433, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 67, 381, 7216, 13332, 805, 2668, 381, 7216, 6134, 327, 709, 7216, 12, 15374, 1069, 33, 2135, 291, 93, 67, 2730, 16, 3066, 33, 4455, 16, 2341, 14861, 33, 6702, 14861, 16, 4433, 14...
includes=includes, include_dirs=include_dirs)
compilation_info=eci)
def llexternal(name, args, result, **kwds): return rffi.llexternal(name, args, result, includes=includes, libraries=libraries, include_dirs=[str(c_dir)], **kwds)
67d3e7ef82b9a40be17b45856f79b216443737af /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/67d3e7ef82b9a40be17b45856f79b216443737af/ll_thread.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 4149, 1174, 12, 529, 16, 833, 16, 563, 16, 2826, 25577, 4672, 327, 436, 1403, 77, 18, 80, 4149, 1174, 12, 529, 16, 833, 16, 563, 16, 6104, 33, 18499, 16, 14732, 33, 31417, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 4149, 1174, 12, 529, 16, 833, 16, 563, 16, 2826, 25577, 4672, 327, 436, 1403, 77, 18, 80, 4149, 1174, 12, 529, 16, 833, 16, 563, 16, 6104, 33, 18499, 16, 14732, 33, 31417, 16, ...
if self.config['console']: RemoteConsole(self).interact()
if self.config['console']: RemoteConsole(self).interact()
def main(self): if self.config['rebuild']: self.server.debug.rebuild(self.key, self.config['rebuild'])
3b0cda8b08e475777ee5f1c16ab222c92f5e91c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9478/3b0cda8b08e475777ee5f1c16ab222c92f5e91c8/debug_tool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 2890, 4672, 309, 365, 18, 1425, 3292, 266, 3510, 3546, 30, 365, 18, 3567, 18, 4148, 18, 266, 3510, 12, 2890, 18, 856, 16, 365, 18, 1425, 3292, 266, 3510, 19486, 2, 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, 2774, 12, 2890, 4672, 309, 365, 18, 1425, 3292, 266, 3510, 3546, 30, 365, 18, 3567, 18, 4148, 18, 266, 3510, 12, 2890, 18, 856, 16, 365, 18, 1425, 3292, 266, 3510, 19486, 2, -100, -1...
def killAllInstances(self): """ Kill all firefox and ff crash reporter instances. """
def killAllInstances(self): """Kill all firefox and ff crash reporter instances."""
def __init__(self, profile, automated, firefox_bin): """ Set firefox vars. """ self.killAllInstances() self.browser_command = [firefox_bin] if automated: self.browser_command.extend(['-P', profile])
9218dc2f0d51ce53383e4b7217791f435ce38d06 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1918/9218dc2f0d51ce53383e4b7217791f435ce38d06/browser_launchers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3042, 16, 18472, 690, 16, 4452, 13873, 67, 4757, 4672, 3536, 1000, 4452, 13873, 4153, 18, 3536, 365, 18, 16418, 1595, 5361, 1435, 365, 18, 11213, 67, 3076,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3042, 16, 18472, 690, 16, 4452, 13873, 67, 4757, 4672, 3536, 1000, 4452, 13873, 4153, 18, 3536, 365, 18, 16418, 1595, 5361, 1435, 365, 18, 11213, 67, 3076,...
def RevGitFile(filename, key, value): """Update and push the git file.
def setUp(self): self.mox = mox.Mox()
def RevGitFile(filename, key, value): """Update and push the git file. Args: filename: file to modify that is in a git repo already key: board or host package type e.g. x86-dogfood value: string representing the version of the prebuilt that has been uploaded. """ prebuilt_branch = 'prebuilt_branch' old_cwd = os.getcwd...
4f33955508ba50045082608b1047ea86854e7297 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/4f33955508ba50045082608b1047ea86854e7297/prebuilt_unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 81, 2409, 273, 312, 2409, 18, 49, 2409, 1435, 225, 6634, 30, 1544, 30, 585, 358, 5612, 716, 353, 316, 279, 5071, 3538, 1818, 498, 30, 11094, 578, 1479, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24292, 12, 2890, 4672, 365, 18, 81, 2409, 273, 312, 2409, 18, 49, 2409, 1435, 225, 6634, 30, 1544, 30, 585, 358, 5612, 716, 353, 316, 279, 5071, 3538, 1818, 498, 30, 11094, 578, 1479, ...
if not self.token: getpagehtml_result = self.multicall()[0] else: token_result, getpagehtml_result = self.multicall() command.data = getpagehtml_result return token_result
command.data = self._get_multicall_result(command.jid)
def get_page_html(self, command): """Returns a html-formatted page"""
25284c0617e77665bbac79aac6877ac6691d5038 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/25284c0617e77665bbac79aac6877ac6691d5038/xmlrpcbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2433, 67, 2620, 12, 2890, 16, 1296, 4672, 3536, 1356, 279, 1729, 17, 14897, 1363, 8395, 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, 336, 67, 2433, 67, 2620, 12, 2890, 16, 1296, 4672, 3536, 1356, 279, 1729, 17, 14897, 1363, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
_unreachable_names[name] = 2
_unreachable_names[name] = 1
def _unreachable_name_for(val_doc, docindex): assert isinstance(val_doc, ValueDoc) # [xx] (when) does this help? if (isinstance(val_doc, ModuleDoc) and len(val_doc.canonical_name)==1 and val_doc.package is None): for root_val in docindex.root: if root_val.canonical_name == val_doc.canonical_name: if root_val != val_do...
d6f70ed40e8e374ae1518023f9807be279e3536a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/d6f70ed40e8e374ae1518023f9807be279e3536a/docbuilder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 318, 17246, 67, 529, 67, 1884, 12, 1125, 67, 2434, 16, 997, 1615, 4672, 1815, 1549, 12, 1125, 67, 2434, 16, 1445, 1759, 13, 225, 468, 306, 5279, 65, 261, 13723, 13, 1552, 333, 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, 389, 318, 17246, 67, 529, 67, 1884, 12, 1125, 67, 2434, 16, 997, 1615, 4672, 1815, 1549, 12, 1125, 67, 2434, 16, 1445, 1759, 13, 225, 468, 306, 5279, 65, 261, 13723, 13, 1552, 333, 2...
if isSingleCylinder:
if isSingleCylinder:
def writepov(self, file, dispdef, col): ##Huaicai 1/15/05: It seems the attributes from __setup__update() is not correct, ## at least for pov file writing, so compute it here locally. To fix bug 346,347 disp=max(self.atom1.display, self.atom2.display) if disp == diDEFAULT: disp = dispdef color1 = col or self.atom1.elem...
8458fbfe4c9e599a4e7092a28b468082d5fe6e91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/8458fbfe4c9e599a4e7092a28b468082d5fe6e91/bonds.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 84, 1527, 12, 2890, 16, 585, 16, 16232, 536, 16, 645, 4672, 7541, 44, 11886, 335, 10658, 404, 19, 3600, 19, 6260, 30, 2597, 12001, 326, 1677, 628, 1001, 8401, 972, 2725, 1435, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 84, 1527, 12, 2890, 16, 585, 16, 16232, 536, 16, 645, 4672, 7541, 44, 11886, 335, 10658, 404, 19, 3600, 19, 6260, 30, 2597, 12001, 326, 1677, 628, 1001, 8401, 972, 2725, 1435, 35...
if not ch:
if not ch:
def client_thread(lock, sock): """ Non-blocking I/O on sys.stdin is not allowd in Python for win32 (because select.select() uses winsock, and thus only works for sockets). So we use threads. This thread talks to the local parent cvs process. """ buffer = "" while not sys.stdin.closed: ch = sys.stdin.read(1) #@TODO: hu...
bfcada8ca6075027d797f1ab22af2f60ef449670 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8821/bfcada8ca6075027d797f1ab22af2f60ef449670/cvssh.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1004, 67, 5930, 12, 739, 16, 7313, 4672, 3536, 3858, 17, 18926, 467, 19, 51, 603, 2589, 18, 21772, 353, 486, 1699, 72, 316, 6600, 364, 5657, 1578, 261, 26274, 2027, 18, 4025, 1435, 469...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1004, 67, 5930, 12, 739, 16, 7313, 4672, 3536, 3858, 17, 18926, 467, 19, 51, 603, 2589, 18, 21772, 353, 486, 1699, 72, 316, 6600, 364, 5657, 1578, 261, 26274, 2027, 18, 4025, 1435, 469...
def action_create(self, cr, uid, ids, context=None):
def execute(self, cr, uid, ids, context=None):
def action_create(self, cr, uid, ids, context=None): data=self.read(cr, uid, ids, [])[0] dir_obj = self.pool.get('document.directory') dir_cont_obj = self.pool.get('document.directory.content') dir_id = dir_obj.search(cr, uid, [('name', '=', 'Calendars')]) if dir_id: dir_id = dir_id[0] else: dir_id = dir_obj.create(cr,...
844e999700f9b97629ed3f5597c11aa55ac6e253 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/844e999700f9b97629ed3f5597c11aa55ac6e253/document_ics_config_wizard.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 501, 33, 2890, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 5378, 25146, 20, 65, 1577, 67, 2603, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 501, 33, 2890, 18, 896, 12, 3353, 16, 4555, 16, 3258, 16, 5378, 25146, 20, 65, 1577, 67, 2603, 273, 365, 18, ...
"""Update tree with the source code of the editor"""
"""Rebuild the entire tree Calls the L{addMacrosToTree} to rebuild the tree after all the items below the root item have been deleted. """
def update(self, evt=None): """Update tree with the source code of the editor""" self.DeleteChildren(self.root) keywords = self.findKeywordHierarchy(self.mode.__class__) # Getting the names of macros for a specific major mode may fail if no # macros exist for keyword in keywords: self.appendAllFromMajorMode(keyword) ...
70abca23389a59a4244c98a09854234e0d0b0505 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/70abca23389a59a4244c98a09854234e0d0b0505/macro.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 6324, 33, 7036, 4672, 3536, 426, 3510, 326, 7278, 2151, 225, 23665, 326, 511, 95, 1289, 9990, 6973, 774, 2471, 97, 358, 13419, 326, 2151, 1839, 777, 326, 1516, 5712, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 6324, 33, 7036, 4672, 3536, 426, 3510, 326, 7278, 2151, 225, 23665, 326, 511, 95, 1289, 9990, 6973, 774, 2471, 97, 358, 13419, 326, 2151, 1839, 777, 326, 1516, 5712, ...
self.getDB().associate(secDB, self.getGenre, db.DB_CREATE) self.finish_test(secDB)
self.getDB().associate(self.secDB, self.getGenre, db.DB_CREATE) self.finish_test(self.secDB)
def test02_associateAfterDB(self): if verbose: print '\n', '-=' * 30 print "Running %s.test02_associateAfterDB..." % \ self.__class__.__name__
d13f8be3c6fcbcf8944bc3d2b0d65df71d53f114 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d13f8be3c6fcbcf8944bc3d2b0d65df71d53f114/test_associate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3103, 67, 11577, 4436, 2290, 12, 2890, 4672, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813, 3103, 67, 11577, 4436, 2290, 7070, 738,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3103, 67, 11577, 4436, 2290, 12, 2890, 4672, 309, 3988, 30, 1172, 2337, 82, 2187, 2400, 2218, 380, 5196, 1172, 315, 7051, 738, 87, 18, 3813, 3103, 67, 11577, 4436, 2290, 7070, 738,...
Flags.set_trust_timestamp(True)
Flags.set_trust_timestamps(True)
def accumulate(images): '''Accumulate dose as a function of image epoch.''' dose = { } integrated_dose = { } for i in images: dd = Diffdump() dd.set_image(i) header = dd.readheader() d = header['exposure_time'] e = header['epoch'] dose[e] = d keys = dose.keys() keys.sort() accum = 0.0 for k in keys: integrated_...
48cfb6022f8442c6f94df5b4efbba0f7cfd63135 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3290/48cfb6022f8442c6f94df5b4efbba0f7cfd63135/DoseAccumulate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21757, 12, 7369, 4672, 9163, 8973, 31284, 741, 307, 487, 279, 445, 434, 1316, 7632, 1093, 6309, 225, 741, 307, 273, 288, 289, 31121, 67, 72, 2584, 273, 288, 289, 225, 364, 277, 316, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21757, 12, 7369, 4672, 9163, 8973, 31284, 741, 307, 487, 279, 445, 434, 1316, 7632, 1093, 6309, 225, 741, 307, 273, 288, 289, 31121, 67, 72, 2584, 273, 288, 289, 225, 364, 277, 316, 46...
@param style_name the name of one of the style in CFG_WRAP_STYLES. By default is set to DEFAULT.
@param style the name of one of the style in CFG_WRAP_STYLES. By default the double_star style is used.
def wrap_text_in_a_box(body='', title='', style_name='DEFAULT', **args): """Return a nicely formatted text box: e.g. ****************** ** title ** **--------------** ** body ** ****************** Indentation and newline are respected. @param body the main text @param title an optional title @param styl...
cb951b23235794474c152d16125d047c3cdbb82b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1780/cb951b23235794474c152d16125d047c3cdbb82b/textutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 67, 955, 67, 267, 67, 69, 67, 2147, 12, 3432, 2218, 2187, 2077, 2218, 2187, 2154, 67, 529, 2218, 5280, 2187, 2826, 1968, 4672, 3536, 990, 279, 11562, 2357, 4955, 977, 3919, 30, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 67, 955, 67, 267, 67, 69, 67, 2147, 12, 3432, 2218, 2187, 2077, 2218, 2187, 2154, 67, 529, 2218, 5280, 2187, 2826, 1968, 4672, 3536, 990, 279, 11562, 2357, 4955, 977, 3919, 30, 4...
self.bufferInfo["incoming"] = buf self.bufferInfo["outgoing"] = buf
self.socketInfo = {"closed":False,"localip":"","localport":0,"remoteip":"","remoteport":0} self.buffer = "" self.bufferInfo = {"incoming":buf,"outgoing":buf} self.socketLocks = {"main":getlock(),"nodata":getlock(),"outgoing":getlock()}
def __init__(self, id, mux, buf, info): # Initialize self.id = id self.mux = mux self.bufferInfo["incoming"] = buf self.bufferInfo["outgoing"] = buf # Inject or override socket info given to use for key, value in info: self.socketInfo[key] = value
c37b97bba15a8b09425588f9b67749b496d89933 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/c37b97bba15a8b09425588f9b67749b496d89933/Multiplexer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 612, 16, 8260, 16, 1681, 16, 1123, 4672, 468, 9190, 365, 18, 350, 273, 612, 365, 18, 81, 2616, 273, 8260, 282, 365, 18, 7814, 966, 273, 12528, 12204, 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, 1001, 2738, 972, 12, 2890, 16, 612, 16, 8260, 16, 1681, 16, 1123, 4672, 468, 9190, 365, 18, 350, 273, 612, 365, 18, 81, 2616, 273, 8260, 282, 365, 18, 7814, 966, 273, 12528, 12204, 6...
if msg: msg = '\n'+msg
if msg: out = '\n'+msg else: out = ''
def wrapper(*a,**k): if msg: msg = '\n'+msg raise nose.SkipTest("Skipping test for function: %s%s" % (func.__name__,msg))
0e9cfc59bbad45b95a054eaff9487dcb0b1a4d87 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4224/0e9cfc59bbad45b95a054eaff9487dcb0b1a4d87/decorators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4053, 30857, 69, 16, 636, 79, 4672, 309, 1234, 30, 596, 273, 2337, 82, 11, 15, 3576, 469, 30, 596, 273, 875, 1002, 1158, 307, 18, 6368, 4709, 2932, 16877, 1842, 364, 445, 30, 738, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4053, 30857, 69, 16, 636, 79, 4672, 309, 1234, 30, 596, 273, 2337, 82, 11, 15, 3576, 469, 30, 596, 273, 875, 1002, 1158, 307, 18, 6368, 4709, 2932, 16877, 1842, 364, 445, 30, 738, 87...
def GetNumInvalidValues(self, func):
def GetNumInvalidValues(self):
def GetNumInvalidValues(self, func): """returns the number of invalid values to be tested.""" return 0
85c6d6739a81098c35cb35c3430f038ed4f5ddab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/85c6d6739a81098c35cb35c3430f038ed4f5ddab/build_gles2_cmd_buffer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 2578, 1941, 1972, 12, 2890, 4672, 3536, 6154, 326, 1300, 434, 2057, 924, 358, 506, 18432, 12123, 327, 374, 2, 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, 968, 2578, 1941, 1972, 12, 2890, 4672, 3536, 6154, 326, 1300, 434, 2057, 924, 358, 506, 18432, 12123, 327, 374, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.assertEqual([(u'', u'---------'), ('image+debian-osgeo', 'image+debian-osgeo'), ('image+ubuntu-lucid', 'image+ubuntu-lucid')], form.fields['os'].choices)
self.assertEqual([(u'', u'---------'), ('image+debian-osgeo', 'Debian Osgeo'), ('image+ubuntu-lucid', 'Ubuntu Lucid')], form.fields['os'].choices)
def test_cluster_init(self): """ Tests initializing a form with a Cluster Verifies: * cluster choices are set correctly * node choices are set correctly """ # no cluster form = NewVirtualMachineForm(user, None) self.assertEqual([(u'', u'---------')], form.fields['pnode'].choices) self.assertEqual([(u'', u'---------')...
4b9d952604c73e797b3e747ab58323253654be84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10509/4b9d952604c73e797b3e747ab58323253654be84/virtual_machine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7967, 67, 2738, 12, 2890, 4672, 3536, 7766, 87, 22584, 279, 646, 598, 279, 5584, 225, 6160, 5032, 30, 380, 2855, 7246, 854, 444, 8783, 380, 756, 7246, 854, 444, 8783, 3536, 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, 1842, 67, 7967, 67, 2738, 12, 2890, 4672, 3536, 7766, 87, 22584, 279, 646, 598, 279, 5584, 225, 6160, 5032, 30, 380, 2855, 7246, 854, 444, 8783, 380, 756, 7246, 854, 444, 8783, 3536, 2...
OWGUI.separator(box7, width=20)
def __init__(self,parent=None, signalManager = None, name = "Linear Projection", graphClass = None): OWVisWidget.__init__(self, parent, signalManager, name, TRUE)
cbacee0aa84afb9bb2ddf1fa32442f23cd390f3b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/cbacee0aa84afb9bb2ddf1fa32442f23cd390f3b/OWLinProj.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 33, 7036, 16, 4277, 1318, 273, 599, 16, 508, 273, 315, 15982, 21288, 3113, 2667, 797, 273, 599, 4672, 18233, 3282, 4609, 16186, 2738, 972, 12, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 33, 7036, 16, 4277, 1318, 273, 599, 16, 508, 273, 315, 15982, 21288, 3113, 2667, 797, 273, 599, 4672, 18233, 3282, 4609, 16186, 2738, 972, 12, 2890, ...
'on_quit_button_clicked': self.on_close,
'on_close_button_clicked': self.on_close,
def _setup_signal_connections(self, builder): ''' Creates some GTK signals connections
157477ec15a6b62d07e58cf24abf7a1cac560331 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/157477ec15a6b62d07e58cf24abf7a1cac560331/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8401, 67, 10420, 67, 13313, 12, 2890, 16, 2089, 4672, 9163, 10210, 2690, 19688, 47, 11505, 5921, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8401, 67, 10420, 67, 13313, 12, 2890, 16, 2089, 4672, 9163, 10210, 2690, 19688, 47, 11505, 5921, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.comments = Comment.objects.get_latest( limit, ignore_blocked=ignore_blocked)
self.comments = Comment.objects. \ latest(limit, ignore_blocked=ignore_blocked).all()
def __init__(self, limit=5, show_title=False, ignore_blocked=False): self.comments = Comment.objects.get_latest( limit, ignore_blocked=ignore_blocked) self.show_title = show_title
9b3673eeca21e84945b5f10eedd2b6cec9578fd0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/9b3673eeca21e84945b5f10eedd2b6cec9578fd0/widgets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1800, 33, 25, 16, 2405, 67, 2649, 33, 8381, 16, 2305, 67, 23156, 33, 8381, 4672, 365, 18, 9231, 273, 9821, 18, 6911, 18, 521, 4891, 12, 3595, 16, 2305,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1800, 33, 25, 16, 2405, 67, 2649, 33, 8381, 16, 2305, 67, 23156, 33, 8381, 4672, 365, 18, 9231, 273, 9821, 18, 6911, 18, 521, 4891, 12, 3595, 16, 2305,...