rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
data = simplejson.dumps(request.POST['json'])
def ajax_schedule_class(self, request, tl, one, two, module, extra, prog): if not request.POST.has_key('json'): raise ESPError(False), "This URL is intended to be used for client<->server communication; it's not for human-readable content."
44838a9a08be2b6a7f14955f6210e2ff0f554fd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/44838a9a08be2b6a7f14955f6210e2ff0f554fd2/ajaxschedulingmodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10733, 67, 10676, 67, 1106, 12, 2890, 16, 590, 16, 8332, 16, 1245, 16, 2795, 16, 1605, 16, 2870, 16, 11243, 4672, 309, 486, 590, 18, 3798, 18, 5332, 67, 856, 2668, 1977, 11, 4672, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10733, 67, 10676, 67, 1106, 12, 2890, 16, 590, 16, 8332, 16, 1245, 16, 2795, 16, 1605, 16, 2870, 16, 11243, 4672, 309, 486, 590, 18, 3798, 18, 5332, 67, 856, 2668, 1977, 11, 4672, 10...
'ur': 'http://stuvel.eu/projects/flickrapi',
'url': 'http://stuvel.eu/projects/flickrapi',
def run_command(self, command): '''Builds the documentation if needed, then passes control to the superclass' run_command(...) method. '''
ddd661ca4835dab8a4bc611c827090f65ab5a172 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/501/ddd661ca4835dab8a4bc611c827090f65ab5a172/_setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 3076, 12, 2890, 16, 1296, 4672, 9163, 7746, 326, 7323, 309, 3577, 16, 1508, 11656, 3325, 358, 326, 12098, 11, 1086, 67, 3076, 5825, 13, 707, 18, 9163, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 3076, 12, 2890, 16, 1296, 4672, 9163, 7746, 326, 7323, 309, 3577, 16, 1508, 11656, 3325, 358, 326, 12098, 11, 1086, 67, 3076, 5825, 13, 707, 18, 9163, 2, -100, -100, -100, -1...
if self._status & Item.NODIRTY: return getattr(self, name).itemChanged(item, attribute)
if not (item.isDeleting() or self._isNoDirty()): getattr(self, name).itemChanged(item, attribute)
def _filteredItemChanged(self, op, item, attribute, name):
d623db1b05ebbad73c506fdf625f733d8e117cc9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d623db1b05ebbad73c506fdf625f733d8e117cc9/Item.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12071, 1180, 5033, 12, 2890, 16, 1061, 16, 761, 16, 1566, 16, 508, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12071, 1180, 5033, 12, 2890, 16, 1061, 16, 761, 16, 1566, 16, 508, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return {'value':{'location_id': False , 'location_dest_id' : False}}
return {'value': { 'location_id': False, 'location_dest_id': False } }
def onchange_operation_type(self, cr, uid, ids, type,guarantee_limit): if not type: return {'value':{'location_id': False , 'location_dest_id' : False}} stock_id = self.pool.get('stock.location').search(cr, uid, [('name','=','Stock')])[0] produc_id = self.pool.get('stock.location').search(cr, uid, [('name','=','Defaul...
0fe331ad2ffd5967cda7186e9110f283bdb71cab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/0fe331ad2ffd5967cda7186e9110f283bdb71cab/mrp_repair.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 7624, 67, 723, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 16, 6891, 9106, 73, 67, 3595, 4672, 309, 486, 618, 30, 327, 13666, 1132, 4278, 288, 296, 3562, 67, 350,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 7624, 67, 723, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 618, 16, 6891, 9106, 73, 67, 3595, 4672, 309, 486, 618, 30, 327, 13666, 1132, 4278, 288, 296, 3562, 67, 350,...
generic_ppc64.__init__(self,myspec)
arch_ppc64.__init__(self,myspec)
def __init__(self,myspec): generic_ppc64.__init__(self,myspec) self.settings["CFLAGS"]="-O2 -pipe -mcpu=power5 -mtune=power5" self.settings["CXXFLAGS"]="-O2 -pipe -mcpu=power5 -mtune=power5"
4ce444ffe2ca89bd7b24677dc8f1d83016c6b737 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/4ce444ffe2ca89bd7b24677dc8f1d83016c6b737/ppc64.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 81, 1900, 705, 4672, 6637, 67, 84, 2436, 1105, 16186, 2738, 972, 12, 2890, 16, 81, 1900, 705, 13, 365, 18, 4272, 9614, 8955, 6552, 55, 11929, 1546, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 81, 1900, 705, 4672, 6637, 67, 84, 2436, 1105, 16186, 2738, 972, 12, 2890, 16, 81, 1900, 705, 13, 365, 18, 4272, 9614, 8955, 6552, 55, 11929, 1546, 17, ...
username = raw_input("Username:") password = getpass.getpass("Password:")
self.username = raw_input("Username:") self.password = getpass.getpass("Password:")
def request(self, name, *args): while True: try: result = GraphingWiki.request(self, name, *args) except AuthorizationRequired: # Redirecting stdout to stderr for these queries oldStdout = sys.stdout sys.stdout = sys.stderr
58c510e0f381c2b9864507bc7cb9b4eee77eeee5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/58c510e0f381c2b9864507bc7cb9b4eee77eeee5/wiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 590, 12, 2890, 16, 508, 16, 380, 1968, 4672, 1323, 1053, 30, 775, 30, 563, 273, 5601, 310, 25438, 18, 2293, 12, 2890, 16, 508, 16, 380, 1968, 13, 1335, 10234, 3705, 30, 468, 9942, 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, 590, 12, 2890, 16, 508, 16, 380, 1968, 4672, 1323, 1053, 30, 775, 30, 563, 273, 5601, 310, 25438, 18, 2293, 12, 2890, 16, 508, 16, 380, 1968, 13, 1335, 10234, 3705, 30, 468, 9942, 31...
c=self.xpath_eval("ns:*",{'ns':self.ns.getContent()})
c=self.xpath_eval("ns:*",{'ns':self.ns})
def get_condition(self): c=self.xpath_eval("ns:*",{'ns':self.ns.getContent()}) if not c: self.upgrade() c=self.xpath_eval("ns:*",{'ns':self.ns.getContent()}) if not c: return None return c[0]
fd56a1cbfc7601f40ffa88d6d9e8e24e70835a8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/fd56a1cbfc7601f40ffa88d6d9e8e24e70835a8b/error.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4175, 12, 2890, 4672, 276, 33, 2890, 18, 18644, 67, 8622, 2932, 2387, 30, 14, 3113, 27828, 2387, 4278, 2890, 18, 2387, 6792, 309, 486, 276, 30, 365, 18, 15097, 1435, 276, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4175, 12, 2890, 4672, 276, 33, 2890, 18, 18644, 67, 8622, 2932, 2387, 30, 14, 3113, 27828, 2387, 4278, 2890, 18, 2387, 6792, 309, 486, 276, 30, 365, 18, 15097, 1435, 276, 33, ...
except:
except:
def getIcon(self, relative_to_portal=0): try: mimetype_registry=getToolByName(self,'mimetypes_registry',None) contenttype = self.getField('file').getContentType(self) if ICONMAP.has_key(contenttype): icon = quote(ICONMAP[contenttype]) elif ICONMAP.has_key(contenttype.split('/')[0]): icon = quote(ICONMAP[contenttype.spl...
f6b07328b703533ddff52a9387e7bfbdc3a2f138 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/f6b07328b703533ddff52a9387e7bfbdc3a2f138/ATFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21724, 12, 2890, 16, 3632, 67, 869, 67, 24386, 33, 20, 4672, 775, 30, 12595, 67, 9893, 33, 588, 6364, 5911, 12, 2890, 11189, 81, 381, 15180, 67, 9893, 2187, 7036, 13, 27704, 273, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21724, 12, 2890, 16, 3632, 67, 869, 67, 24386, 33, 20, 4672, 775, 30, 12595, 67, 9893, 33, 588, 6364, 5911, 12, 2890, 11189, 81, 381, 15180, 67, 9893, 2187, 7036, 13, 27704, 273, 365, ...
print log_tuple fn, lno, func = log_tuple
if len(log_tuple) == 3: fn, lno, func = log_tuple elif len(log_tuple) == 2: fn, lno = log_tuple func = '(unknown function)'
def _log(self, level, msg, args, exc_info=None,callback=None,title=None,prefill=None,type='log'): """ Refactoring of the low-level logging which creates a LogRecord and then calls the handlers of this logger to handle the record to add event supports """ if logging._srcfile: log_tuple = logging.Logger.findCaller(self) ...
24ef97cd877cc5ca2bad039eb0430723506240a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/24ef97cd877cc5ca2bad039eb0430723506240a1/log_types.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1330, 12, 2890, 16, 1801, 16, 1234, 16, 833, 16, 3533, 67, 1376, 33, 7036, 16, 3394, 33, 7036, 16, 2649, 33, 7036, 16, 1484, 5935, 33, 7036, 16, 723, 2218, 1330, 11, 4672, 3536,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1330, 12, 2890, 16, 1801, 16, 1234, 16, 833, 16, 3533, 67, 1376, 33, 7036, 16, 3394, 33, 7036, 16, 2649, 33, 7036, 16, 1484, 5935, 33, 7036, 16, 723, 2218, 1330, 11, 4672, 3536,...
for src in self._sources:
for src in self.getSourcePathList():
def fetchAllSources(self, refreshFilter=None, skipFilter=None):
c96edcc481c35b03bbdad4b114f6feadc3350008 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/c96edcc481c35b03bbdad4b114f6feadc3350008/packagerecipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12817, 8628, 12, 2890, 16, 4460, 1586, 33, 7036, 16, 2488, 1586, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12817, 8628, 12, 2890, 16, 4460, 1586, 33, 7036, 16, 2488, 1586, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
2) 'group" or P2IT.PROFILE (2) for a profile
2) 'group' or P2IT.PROFILE (2) for a profile
def getTargetSynchroState(self, uuid, target_type): """ get the synchronization state of a target
f92ceeba4937d7650685e4df7ba272f835343770 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/f92ceeba4937d7650685e4df7ba272f835343770/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8571, 55, 2515, 303, 1119, 12, 2890, 16, 3822, 16, 1018, 67, 723, 4672, 3536, 336, 326, 24488, 919, 434, 279, 1018, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8571, 55, 2515, 303, 1119, 12, 2890, 16, 3822, 16, 1018, 67, 723, 4672, 3536, 336, 326, 24488, 919, 434, 279, 1018, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
decorator = 'gtk-window-decorator'
decorator = gwd
def default_decorator(): 'Find the default decorator to use' # Use kwd if kde but not gnome if is_installed('kde-window-decorator') and kde and not gnome: decorator = 'kde-window-decorator' # Use gwd if gnome but not kde elif is_installed('gtk-window-decorator') and gnome and not kde: decorator = 'gtk-window-decorato...
872228b43897c33ab8a9c2a41a9fa9f139d62dbe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/909/872228b43897c33ab8a9c2a41a9fa9f139d62dbe/libfusionicon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 805, 67, 19142, 13332, 296, 3125, 326, 805, 7367, 358, 999, 11, 225, 468, 2672, 417, 3623, 309, 417, 323, 1496, 486, 22908, 1742, 309, 353, 67, 13435, 2668, 79, 323, 17, 5668, 17, 1914...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 805, 67, 19142, 13332, 296, 3125, 326, 805, 7367, 358, 999, 11, 225, 468, 2672, 417, 3623, 309, 417, 323, 1496, 486, 22908, 1742, 309, 353, 67, 13435, 2668, 79, 323, 17, 5668, 17, 1914...
layer_name = dialogs.ask_for_name(self, _("Layer name"), "New Layer")
layer_name = dialogs.ask_for_name(self, _("Name"), "")
def change_name(self, *ignore): layer_name = dialogs.ask_for_name(self, _("Layer name"), "New Layer") if layer_name: self.layer.name = layer_name self.layer_name.set_text(layer_name)
fa08ff4ae584c23e5712c79fef315eae8185c0e4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/fa08ff4ae584c23e5712c79fef315eae8185c0e4/layerswindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 67, 529, 12, 2890, 16, 380, 6185, 4672, 3018, 67, 529, 273, 7609, 14072, 18, 835, 67, 1884, 67, 529, 12, 2890, 16, 389, 2932, 461, 6, 3631, 1408, 13, 309, 3018, 67, 529, 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, 2549, 67, 529, 12, 2890, 16, 380, 6185, 4672, 3018, 67, 529, 273, 7609, 14072, 18, 835, 67, 1884, 67, 529, 12, 2890, 16, 389, 2932, 461, 6, 3631, 1408, 13, 309, 3018, 67, 529, 30, ...
self.assertTrue(usersite in sys.path)
self.assertIn(usersite, sys.path)
def test_s_option(self): usersite = site.USER_SITE self.assertTrue(usersite in sys.path)
c866588d2bb7dde3fc14ec64c6fe3ce476a08353 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/c866588d2bb7dde3fc14ec64c6fe3ce476a08353/test_site.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 87, 67, 3482, 12, 2890, 4672, 3677, 1137, 273, 2834, 18, 4714, 67, 20609, 365, 18, 11231, 5510, 12, 5577, 1137, 316, 2589, 18, 803, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 87, 67, 3482, 12, 2890, 4672, 3677, 1137, 273, 2834, 18, 4714, 67, 20609, 365, 18, 11231, 5510, 12, 5577, 1137, 316, 2589, 18, 803, 13, 2, -100, -100, -100, -100, -100, -100,...
view = lambda *arg: None
def test_multiview_replaces_traditional_view(self): from zope.component import getSiteManager from zope.interface import Interface from repoze.bfg.interfaces import IRequest from repoze.bfg.interfaces import IView from repoze.bfg.interfaces import IMultiView from repoze.bfg.interfaces import IViewPermission context = D...
a5a9547555f07596cfc0c15a46a8d3281eb531c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14321/a5a9547555f07596cfc0c15a46a8d3281eb531c9/test_zcml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5421, 427, 983, 67, 266, 11350, 67, 313, 361, 6457, 67, 1945, 12, 2890, 4672, 628, 998, 1306, 18, 4652, 1930, 11021, 1318, 628, 998, 1306, 18, 5831, 1930, 6682, 628, 3538, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5421, 427, 983, 67, 266, 11350, 67, 313, 361, 6457, 67, 1945, 12, 2890, 4672, 628, 998, 1306, 18, 4652, 1930, 11021, 1318, 628, 998, 1306, 18, 5831, 1930, 6682, 628, 3538, 84...
gflieds = dict(map(lambda x: (x, 0), ufields.split(',')) + \ map(lambda x: (x, 1), pfields.split(',')))
g_fields = dict( map(lambda x: (x, FORM_USERNAME), ufields.split(',')) + \ map(lambda x: (x, FORM_PASSWORD), pfields.split(',')) )
def start(self, reader): self.sessions = {}
968802cc3fd7bddc23804216cfc04928b9bb40d9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11468/968802cc3fd7bddc23804216cfc04928b9bb40d9/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 16, 2949, 4672, 365, 18, 16794, 273, 2618, 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, 787, 12, 2890, 16, 2949, 4672, 365, 18, 16794, 273, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
table.tacticaloverview { width: 100%; margin-top: 0px;}
table.tacticaloverview { border-collapse: separate; border-spacing: 3px; width: 100%; margin-top: 0px;}
def render_tactical_overview(): headers = \ "Stats: state >= 0\n" \ "Stats: state > 0\n" \ "Stats: state > 0\n" \ "Stats: acknowledged = 0\n" \ "StatsAnd: 2\n" try: svcdata = html.live.query_summed_stats("GET services\n" + headers) hstdata = html.live.query_summed_stats("GET hosts\n" + headers) except livestatus.MKLiv...
ca5c921249f35e6d2e7d33b2cf81bec529a3da80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/ca5c921249f35e6d2e7d33b2cf81bec529a3da80/shipped.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 88, 621, 1706, 67, 26081, 13332, 1607, 273, 521, 315, 4195, 30, 919, 1545, 374, 64, 82, 6, 521, 315, 4195, 30, 919, 405, 374, 64, 82, 6, 521, 315, 4195, 30, 919, 405, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 67, 88, 621, 1706, 67, 26081, 13332, 1607, 273, 521, 315, 4195, 30, 919, 1545, 374, 64, 82, 6, 521, 315, 4195, 30, 919, 405, 374, 64, 82, 6, 521, 315, 4195, 30, 919, 405, 374...
return "install %s: running \"%s\" failed" % self.fullname()
return "install %s: running \"%s\" failed" % \ (self.fullname(), installcmd)
def installPackageOnly(self, output=None): """Install a single source package. If output is given it should be a file-like object and it will receive a log of what happened.""" if self._dict.has_key('Pre-install-command'): if self._cmd(output, self._buildDirname, self._dict['Pre-install-command']): return "pre-instal...
af04f1cfeabe41aa95ebaa5a3a7858a94f2a3446 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/af04f1cfeabe41aa95ebaa5a3a7858a94f2a3446/pimp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 2261, 3386, 12, 2890, 16, 876, 33, 7036, 4672, 3536, 6410, 279, 2202, 1084, 2181, 18, 225, 971, 876, 353, 864, 518, 1410, 506, 279, 585, 17, 5625, 733, 471, 518, 903, 6798, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3799, 2261, 3386, 12, 2890, 16, 876, 33, 7036, 4672, 3536, 6410, 279, 2202, 1084, 2181, 18, 225, 971, 876, 353, 864, 518, 1410, 506, 279, 585, 17, 5625, 733, 471, 518, 903, 6798, 279, ...
top_header, _ = parts[0][0]
top_header = parts[0][0][0]
def fetch_mails(inner, self, filter): result, data = yield inner.sub(self.call("uid", "SEARCH", None, filter)) if not data or not data[0]: return
4d5c52bd7040cce07af96882c3c38c634c27ae1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14361/4d5c52bd7040cce07af96882c3c38c634c27ae1c/imapbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 4408, 87, 12, 7872, 16, 365, 16, 1034, 4672, 563, 16, 501, 273, 2824, 3443, 18, 1717, 12, 2890, 18, 1991, 2932, 1911, 3113, 315, 17251, 3113, 599, 16, 1034, 3719, 309, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 67, 4408, 87, 12, 7872, 16, 365, 16, 1034, 4672, 563, 16, 501, 273, 2824, 3443, 18, 1717, 12, 2890, 18, 1991, 2932, 1911, 3113, 315, 17251, 3113, 599, 16, 1034, 3719, 309, 486, ...
self.base_url = 'http://%s:%d%s' % (host, port, cgi_location)
self.base_url = 'http://%s:%d%s' % (host, port, self.cgi_location)
def init_request(self): core.Request.init_request(self) options = self.req.get_options()
6dd9448a64abd0009bba682072aca687ca1e5ef9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/6dd9448a64abd0009bba682072aca687ca1e5ef9/ModPythonHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 2293, 12, 2890, 4672, 2922, 18, 691, 18, 2738, 67, 2293, 12, 2890, 13, 702, 273, 365, 18, 3658, 18, 588, 67, 2116, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 67, 2293, 12, 2890, 4672, 2922, 18, 691, 18, 2738, 67, 2293, 12, 2890, 13, 702, 273, 365, 18, 3658, 18, 588, 67, 2116, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
file, tpos) pos=tend
f, tpos) pos = tend
def read_transaction_header(file, pos, file_size): # Read the transaction record file.seek(pos) h = file.read(23) if len(h) < 23: raise EOFError tid, stl, status, ul, dl, el = unpack(">8s8scHHH",h) if el < 0: el=t32-el tl=u64(stl) if status=='c': raise EOFError if pos+(tl+8) > file_size: error("bad transaction leng...
9bf5e2e14a6436c3a8e756728b18bc7a4b7dd814 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/9bf5e2e14a6436c3a8e756728b18bc7a4b7dd814/fsrecover.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 7958, 67, 3374, 12, 768, 16, 949, 16, 585, 67, 1467, 4672, 468, 2720, 326, 2492, 1409, 585, 18, 16508, 12, 917, 13, 366, 273, 585, 18, 896, 12, 4366, 13, 309, 562, 12, 76,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7958, 67, 3374, 12, 768, 16, 949, 16, 585, 67, 1467, 4672, 468, 2720, 326, 2492, 1409, 585, 18, 16508, 12, 917, 13, 366, 273, 585, 18, 896, 12, 4366, 13, 309, 562, 12, 76,...
url = msg.getQuerynode().T.url.getData()
url = msg.getTag("query").T.url.getData()
def _process(self): self.msg = self._receive(False) if self.msg != None: #print "OOB IQ RECEIVED" # Check type of oob iq if self.msg.getType() == "error": # Check error code try: if self.msg.getTag('error').getAttr("code") == "404": pass elif self.msg.getTag('error').getAttr("code") == "406": pass except: # WTF pass el...
3fd3d787c8af9fa40be6b7e2507de52eb463020d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10121/3fd3d787c8af9fa40be6b7e2507de52eb463020d/Agent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 12, 2890, 4672, 365, 18, 3576, 273, 365, 6315, 18149, 12, 8381, 13, 309, 365, 18, 3576, 480, 599, 30, 468, 1188, 315, 51, 5704, 26950, 2438, 1441, 20764, 6, 468, 2073, 618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 4672, 365, 18, 3576, 273, 365, 6315, 18149, 12, 8381, 13, 309, 365, 18, 3576, 480, 599, 30, 468, 1188, 315, 51, 5704, 26950, 2438, 1441, 20764, 6, 468, 2073, 618, ...
L{http://doc.trolltech.com/4.2/qtoolbutton.html}
U{B{QToolButton} <http://doc.trolltech.com/4.2/qtoolbutton.html>}
def changeRotateOption(self, button): """ Change the rotate option. @param button: QToolButton that decides the type of rotate operation to be set. @type button: QToolButton L{http://doc.trolltech.com/4.2/qtoolbutton.html} """ buttonText = str(button.text()) assert buttonText in ['ROTATEX', 'ROTATEY', 'ROTATEZ', 'R...
9212476e2dac5fe7a9c408893cfa497626fa650f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/9212476e2dac5fe7a9c408893cfa497626fa650f/MovePropertyManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 16357, 1895, 12, 2890, 16, 3568, 4672, 3536, 7576, 326, 8534, 1456, 18, 225, 632, 891, 3568, 30, 2238, 6364, 3616, 716, 2109, 4369, 326, 618, 434, 8534, 1674, 358, 506, 444, 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, 2549, 16357, 1895, 12, 2890, 16, 3568, 4672, 3536, 7576, 326, 8534, 1456, 18, 225, 632, 891, 3568, 30, 2238, 6364, 3616, 716, 2109, 4369, 326, 618, 434, 8534, 1674, 358, 506, 444, 18, ...
result = included_segments - excluded_segments
result = result - excluded_segments
def run_query_segments(doc, proc_id, engine, gps_start_time, gps_end_time, included_segments_string, excluded_segments_string = None, write_segments = True, start_pad = 0, end_pad = 0): """Runs a segment query. This was originally part of ligolw_query_segments, but now is also used by ligolw_segments_from_cats. The w...
941cbec3cd967dd8d4b3d92c884d54234b955b90 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/941cbec3cd967dd8d4b3d92c884d54234b955b90/segmentdb_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 2271, 67, 12838, 12, 2434, 16, 5418, 67, 350, 16, 4073, 16, 20985, 67, 1937, 67, 957, 16, 20985, 67, 409, 67, 957, 16, 5849, 67, 12838, 67, 1080, 16, 8845, 67, 12838, 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, 1086, 67, 2271, 67, 12838, 12, 2434, 16, 5418, 67, 350, 16, 4073, 16, 20985, 67, 1937, 67, 957, 16, 20985, 67, 409, 67, 957, 16, 5849, 67, 12838, 67, 1080, 16, 8845, 67, 12838, 67, ...
f_out = outfolder + '/TemplateCleaner.log' l = LogFile( f_out, mode='w') shutil.copytree( T.testRoot() + '/Mod/project/templates/nr', outfolder + '/templates/nr' ) c = TemplateCleaner( outfolder, log=l)
self.f_out = self.outfolder + '/TemplateCleaner.log' self.l = LogFile( self.f_out, mode='w') shutil.copytree( T.testRoot() + '/Mod/project/templates/nr', self.outfolder + '/templates/nr' ) def cleanUp(self): T.tryRemove( self.outfolder, tree=1 ) def test_TemplateCleaner(self): """Mod.TemplateCleaner test""" import ...
def run( self, local=0 ): """ run function test @param local: transfer local variables to global and perform other tasks only when run locally @type local: 1|0 @return: 1 @rtype: int """ import tempfile import shutil from Biskit.LogFile import LogFile
3c67395bc83ba0fdd19fdd2ce8fa8bd5278f16c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/3c67395bc83ba0fdd19fdd2ce8fa8bd5278f16c9/TemplateCleaner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 365, 16, 1191, 33, 20, 262, 30, 3536, 1086, 445, 1842, 225, 632, 891, 1191, 30, 7412, 1191, 3152, 358, 2552, 471, 3073, 1308, 4592, 1338, 1347, 1086, 13760, 632, 723, 225, 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, 1086, 12, 365, 16, 1191, 33, 20, 262, 30, 3536, 1086, 445, 1842, 225, 632, 891, 1191, 30, 7412, 1191, 3152, 358, 2552, 471, 3073, 1308, 4592, 1338, 1347, 1086, 13760, 632, 723, 225, 11...
return self.name + '(' + xcoord + ',' + ycoord + ')'
return self.name + '(' + str(self.xcoord) + ',' + str(self.ycoord) + ')'
def __unicode__(self): return self.name + '(' + xcoord + ',' + ycoord + ')'
13c8a952043c99ac3209e5531dc2a589ea77ca4a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1965/13c8a952043c99ac3209e5531dc2a589ea77ca4a/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 327, 365, 18, 529, 397, 7321, 397, 619, 5732, 397, 3316, 397, 677, 5732, 397, 5777, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 327, 365, 18, 529, 397, 7321, 397, 619, 5732, 397, 3316, 397, 677, 5732, 397, 5777, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
class URLBookmarks(RecentFiles): """Open the previously saved URL.
class FileCabinet(RecentFiles): """Open a previously saved URL.
def action(self, index=-1, multiplier=1): assert self.dprint("opening file %s" % (self.storage[index])) self.frame.open(self.storage[index])
d31fbfc834159b6ce3ad2ea806caedd981ece285 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/d31fbfc834159b6ce3ad2ea806caedd981ece285/openrecent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 2890, 16, 770, 29711, 21, 16, 15027, 33, 21, 4672, 1815, 365, 18, 72, 1188, 2932, 3190, 310, 585, 738, 87, 6, 738, 261, 2890, 18, 5697, 63, 1615, 22643, 365, 18, 3789, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 12, 2890, 16, 770, 29711, 21, 16, 15027, 33, 21, 4672, 1815, 365, 18, 72, 1188, 2932, 3190, 310, 585, 738, 87, 6, 738, 261, 2890, 18, 5697, 63, 1615, 22643, 365, 18, 3789, 18, ...
if os.path.exists(group_home) and os.path.isdir(os.path.realpath(group_home)):
if os.path.exists(group_home) \ and os.path.isdir(os.path.realpath(group_home)):
def __check_group(self, group, minimal=True, batch=False, auto_answer=None, force=False):
2c25685af98e96114695a04efeb86385220aeb9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2c25685af98e96114695a04efeb86385220aeb9c/groups.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 67, 1655, 12, 2890, 16, 1041, 16, 16745, 33, 5510, 16, 2581, 33, 8381, 16, 3656, 67, 13490, 33, 7036, 16, 2944, 33, 8381, 4672, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 67, 1655, 12, 2890, 16, 1041, 16, 16745, 33, 5510, 16, 2581, 33, 8381, 16, 3656, 67, 13490, 33, 7036, 16, 2944, 33, 8381, 4672, 2, -100, -100, -100, -100, -100, -100, -100,...
dest = list(g[groups.name_to_gid(gname)]['memberUid'])
dest = list(group['memberUid'])
def edit(uri, http_user, name): """Edit a group.""" users.reload() groups.reload() u = users.users g = groups.groups title = _("Editing group %s") % name data = w.page_body_start(uri, http_user, ctxtnav, title, False) try: group = g[groups.name_to_gid(name)] sys = groups.is_system_group(name) dbl_lists ...
b115301aa7a3230e2ebf55808ae6e08d4c08f2cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/b115301aa7a3230e2ebf55808ae6e08d4c08f2cc/groups.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 12, 1650, 16, 1062, 67, 1355, 16, 508, 4672, 3536, 4666, 279, 1041, 12123, 225, 3677, 18, 17517, 1435, 3252, 18, 17517, 1435, 225, 582, 273, 3677, 18, 5577, 314, 273, 3252, 18, 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, 3874, 12, 1650, 16, 1062, 67, 1355, 16, 508, 4672, 3536, 4666, 279, 1041, 12123, 225, 3677, 18, 17517, 1435, 3252, 18, 17517, 1435, 225, 582, 273, 3677, 18, 5577, 314, 273, 3252, 18, 4...
s += e.DumpHTML()
if e.Visible: s += e.DumpHTML()
def DumpHTML(self): s = '' if self.Visible: for e in self.Elements: s += e.DumpHTML()
022c643798019a271022515f760ff00746f5c08e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3600/022c643798019a271022515f760ff00746f5c08e/ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18242, 4870, 12, 2890, 4672, 272, 273, 875, 309, 365, 18, 6207, 30, 364, 425, 316, 365, 18, 3471, 30, 272, 1011, 425, 18, 10628, 4870, 1435, 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, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18242, 4870, 12, 2890, 4672, 272, 273, 875, 309, 365, 18, 6207, 30, 364, 425, 316, 365, 18, 3471, 30, 272, 1011, 425, 18, 10628, 4870, 1435, 2, -100, -100, -100, -100, -100, -100, -100...
del self.old._v_is_cp
del self.new._v_is_cp
def migrate_references(self): """Migrate references annotation.""" # Restor the references annotation if hasattr(self, REFERENCE_ANNOTATION): at_references = getattr(self, REFERENCE_ANNOTATION) setattr(self.new, REFERENCE_ANNOTATION, at_references) # Run the reference manage_afterAdd to transition all copied # referenc...
531c7221b337eb84d54242448030a9c4585d2fd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11946/531c7221b337eb84d54242448030a9c4585d2fd1/archetypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13187, 67, 14353, 12, 2890, 4672, 3536, 19594, 5351, 3204, 12123, 468, 6320, 280, 326, 5351, 3204, 309, 3859, 12, 2890, 16, 22898, 67, 24922, 4672, 622, 67, 14353, 273, 3869, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13187, 67, 14353, 12, 2890, 4672, 3536, 19594, 5351, 3204, 12123, 468, 6320, 280, 326, 5351, 3204, 309, 3859, 12, 2890, 16, 22898, 67, 24922, 4672, 622, 67, 14353, 273, 3869, 12, 2890, 1...
class MusicFixture(Fixture):
class MusicFixture(AspyFixture):
def run(self): repos = self.sl.history_repository repos.clear_history()
43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd/aspyplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 13686, 273, 365, 18, 2069, 18, 8189, 67, 9071, 13686, 18, 8507, 67, 8189, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12, 2890, 4672, 13686, 273, 365, 18, 2069, 18, 8189, 67, 9071, 13686, 18, 8507, 67, 8189, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
stn(self.name, 100),
stn(name, 100),
def tobuf(self, posix=False): """Return a tar header block as a 512 byte string. """ parts = [ stn(self.name, 100), itn(self.mode & 07777, 8, posix), itn(self.uid, 8, posix), itn(self.gid, 8, posix), itn(self.size, 12, posix), itn(self.mtime, 12, posix), " ", # checksum field self.type, stn(self.linkname, 100), ...
81f02e34efadb27c8e3954e259e5638999815387 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/81f02e34efadb27c8e3954e259e5638999815387/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 4385, 12, 2890, 16, 16366, 33, 8381, 4672, 3536, 990, 279, 8232, 1446, 1203, 487, 279, 13908, 1160, 533, 18, 3536, 2140, 273, 306, 384, 82, 12, 529, 16, 2130, 3631, 518, 82, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 358, 4385, 12, 2890, 16, 16366, 33, 8381, 4672, 3536, 990, 279, 8232, 1446, 1203, 487, 279, 13908, 1160, 533, 18, 3536, 2140, 273, 306, 384, 82, 12, 529, 16, 2130, 3631, 518, 82, 12, ...
src = src[src.find('<'):]
def parse_html(self): ''' Create lxml ElementTree from HTML ''' self.log_info('\tParsing '+os.sep.join(self.htmlfile.path.split(os.sep)[-3:])) src = open(self.htmlfile.path, 'rb').read().decode(self.htmlfile.encoding, 'replace').strip() src = src[src.find('<'):] src = self.preprocess(src) # lxml chokes on unicode input...
c769c35b1d3b6f42c656c87df0857bd6e300dda0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/c769c35b1d3b6f42c656c87df0857bd6e300dda0/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2620, 12, 2890, 4672, 9163, 1788, 328, 2902, 22566, 628, 3982, 9163, 365, 18, 1330, 67, 1376, 2668, 64, 88, 13963, 15126, 538, 18, 10814, 18, 5701, 12, 2890, 18, 2620, 768, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 2620, 12, 2890, 4672, 9163, 1788, 328, 2902, 22566, 628, 3982, 9163, 365, 18, 1330, 67, 1376, 2668, 64, 88, 13963, 15126, 538, 18, 10814, 18, 5701, 12, 2890, 18, 2620, 768, 1...
def make_binj_fragment(dag, seg, tag, offset, flow, fhigh, fratio, injection_bands):
def make_binj_fragment(dag, seg, tag, offset, flow, fhigh): fratio = 0.9999999 * (fhigh / flow) ** (1.0 / binjjob.injection_bands)
def make_binj_fragment(dag, seg, tag, offset, flow, fhigh, fratio, injection_bands): # one injection every time-step / pi seconds period = injection_bands * float(binjjob.get_opts()["time-step"]) / math.pi start = seg[0] - seg[0] % period + period * offset node = BurstInjNode(binjjob) node.set_start(start) node.set_en...
b2f9cca63cb8b82a5294c75a5545f7b0c1c54261 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/b2f9cca63cb8b82a5294c75a5545f7b0c1c54261/power.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 4757, 78, 67, 11956, 12, 30204, 16, 2291, 16, 1047, 16, 1384, 16, 4693, 16, 7625, 2031, 4672, 565, 3812, 4197, 273, 374, 18, 7991, 11984, 380, 261, 74, 8766, 342, 4693, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 4757, 78, 67, 11956, 12, 30204, 16, 2291, 16, 1047, 16, 1384, 16, 4693, 16, 7625, 2031, 4672, 565, 3812, 4197, 273, 374, 18, 7991, 11984, 380, 261, 74, 8766, 342, 4693, 13, ...
self.assertEqual(cap.getvalue(), data)
self.assertEqual(cap.getvalue(), data*2)
def test_send(self): self.evt = threading.Event() cap = StringIO() threading.Thread(target=capture_server, args=(self.evt,cap)).start() time.sleep(1) # Give server time to initialize
8eab424fb556f2d67f5eb043c724df7634eeb80d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/8eab424fb556f2d67f5eb043c724df7634eeb80d/test_asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4661, 12, 2890, 4672, 365, 18, 73, 11734, 273, 17254, 18, 1133, 1435, 3523, 273, 15777, 1435, 17254, 18, 3830, 12, 3299, 33, 19250, 67, 3567, 16, 833, 28657, 2890, 18, 73, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4661, 12, 2890, 4672, 365, 18, 73, 11734, 273, 17254, 18, 1133, 1435, 3523, 273, 15777, 1435, 17254, 18, 3830, 12, 3299, 33, 19250, 67, 3567, 16, 833, 28657, 2890, 18, 73, 11...
self.fp.write("\n_propdeclarations = {\n") proplist = self.namemappers[0].getall('property') proplist.sort() for k, v in proplist: self.fp.write("\t%s : %s,\n" % (`k`, v)) self.fp.write("}\n") self.fp.write("\n_compdeclarations = {\n") complist = self.namemappers[0].getall('comparison') complist.sort() for k, v in com...
def dumpindex(self): if not self.fp: return self.fp.write("\n#\n# Indices of types declared in this module\n#\n") self.fp.write("_classdeclarations = {\n") classlist = self.namemappers[0].getall('class') classlist.sort() for k, v in classlist: self.fp.write("\t%s : %s,\n" % (`k`, v)) self.fp.write("}\n") self.fp.writ...
6837f918c71f69db051ca807d304f933ea994e8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6837f918c71f69db051ca807d304f933ea994e8d/gensuitemodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 1615, 12, 2890, 4672, 309, 486, 365, 18, 7944, 30, 327, 365, 18, 7944, 18, 2626, 31458, 82, 7, 64, 82, 7, 23046, 434, 1953, 7886, 316, 333, 1605, 64, 82, 7, 64, 82, 7923, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4657, 1615, 12, 2890, 4672, 309, 486, 365, 18, 7944, 30, 327, 365, 18, 7944, 18, 2626, 31458, 82, 7, 64, 82, 7, 23046, 434, 1953, 7886, 316, 333, 1605, 64, 82, 7, 64, 82, 7923, 225...
self.catalog = getToolByName(self.context,'portal_catalog')
self.catalog = catalog = getToolByName(self.context,'portal_catalog')
def search(self, kwargs): self.catalog = getToolByName(self.context,'portal_catalog') # if IATTopic.providedBy(self.context): # contentsMethod = self.context.queryCatalog # else: # contentsMethod = self.context.getFolderContents query = self.build_query(**kwargs) self.contents = self.catalog(**query) self.len_...
7f51c621619b4772a6d119cf98a0fe0f887f5e12 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11908/7f51c621619b4772a6d119cf98a0fe0f887f5e12/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2890, 16, 1205, 4672, 365, 18, 7199, 273, 6222, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 11189, 24386, 67, 7199, 6134, 468, 309, 467, 789, 6657, 18, 29206, 858, 12, 2890, 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, 1623, 12, 2890, 16, 1205, 4672, 365, 18, 7199, 273, 6222, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 11189, 24386, 67, 7199, 6134, 468, 309, 467, 789, 6657, 18, 29206, 858, 12, 2890, 18...
print "Got extra data too! Ick."
print "Got extra data too: %r"%m
def resolve(hostname, sockshost, socksport, socksver=4): assert socksver in (4,5) if socksver == 4: fmt = socks4AResolveRequest parse = socks4AParseResponse else: fmt = socks5ResolveRequest parse = socks5ParseResponse s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((sockshost,socksport)) if socksver == ...
ba578f0ed63128d4d245b1d40c0ac01d90f8a0da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7483/ba578f0ed63128d4d245b1d40c0ac01d90f8a0da/tor-resolve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 12, 10358, 16, 7313, 674, 669, 16, 7313, 87, 655, 16, 7313, 87, 502, 33, 24, 4672, 1815, 7313, 87, 502, 316, 261, 24, 16, 25, 13, 309, 7313, 87, 502, 422, 1059, 30, 1325, 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, 2245, 12, 10358, 16, 7313, 674, 669, 16, 7313, 87, 655, 16, 7313, 87, 502, 33, 24, 4672, 1815, 7313, 87, 502, 316, 261, 24, 16, 25, 13, 309, 7313, 87, 502, 422, 1059, 30, 1325, 273...
% (4 * (self.__vendor_name,)) curs = conn.cursor() curs.execute(query, (one_day, ed))
% self.__vendor_name curs = conn.cursor() if host: curs.execute(query, (one_day, ed, host)) elif user: curs.execute(query, (one_day, ed, user)) else: curs.execute(query, (one_day, ed))
def get_plot(self, end_date, report_days, host=None, user=None, email=None): if email: return None
23256af1e8e77c746a31d94ef7f2cab0675707b6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/23256af1e8e77c746a31d94ef7f2cab0675707b6/untangle_base_webfilter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4032, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 4032, 12, 2890, 16, 679, 67, 712, 16, 2605, 67, 9810, 16, 1479, 33, 7036, 16, 729, 33, 7036, 16, 2699, 33, 7036, 4672, 309, 2699, 30, 327, 599, 2, -100, -100, -100, -100, ...
print 'debug: type(%s) = %s' % (p, type(p))
def is_running(self): """Return whether the program is currently running""" for running in self.running: test = running[0] pathname = running[1] if 'exe' == test and 'posix' == os.name: if Unix.is_running(pathname): print "debug: process '%s' is running" % pathname return True elif 'exe' == test and 'nt' == os.name: fo...
81ebf96f51f8a0d9b962133c9818379d4a3f281d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7853/81ebf96f51f8a0d9b962133c9818379d4a3f281d/Cleaner.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 8704, 12, 2890, 4672, 3536, 990, 2856, 326, 5402, 353, 4551, 3549, 8395, 364, 3549, 316, 365, 18, 8704, 30, 1842, 273, 3549, 63, 20, 65, 9806, 273, 3549, 63, 21, 65, 309, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 67, 8704, 12, 2890, 4672, 3536, 990, 2856, 326, 5402, 353, 4551, 3549, 8395, 364, 3549, 316, 365, 18, 8704, 30, 1842, 273, 3549, 63, 20, 65, 9806, 273, 3549, 63, 21, 65, 309, 29...
continue
ke.uChar.UnicodeChar = u(chr(cnum)) ke.wVirtualKeyCode = ctypes.windll.user32.VkKeyScanA(cnum + 96) ke.dwControlKeyState = LEFT_CTRL_PRESSED
def write_plain (self, text): # {{{
45b3ffa285f1c4ec62b7007921f9b992dab7b001 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4294/45b3ffa285f1c4ec62b7007921f9b992dab7b001/conque_sole_subprocess.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 7446, 261, 2890, 16, 977, 4672, 468, 10179, 95, 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, 1045, 67, 7446, 261, 2890, 16, 977, 4672, 468, 10179, 95, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
expected = 'In 3.x, hex() converts the result of __index__ to hexidecimal.'
expected = 'In 3.x, hex() converts the result of __index__ to hexadecimal.'
def __oct__(self): return "07"
cdb62fdbfdf02783b7a2fd615818cb0fa4e2c133 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/cdb62fdbfdf02783b7a2fd615818cb0fa4e2c133/test_py3kwarn.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 13410, 972, 12, 2890, 4672, 327, 315, 8642, 6, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 13410, 972, 12, 2890, 4672, 327, 315, 8642, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
re_reader("(.*?) (.*?)\000", fd, sze, fname))
re_reader("(?s)(.*?) (.*?)\000", fd, sze, fname))
def download_and_sort(self): dlname = REDUCE_DL % this_partition() ensure_path(dlname, False) msg("Reduce will be downloaded to %s" % dlname) out_fd = file(dlname + ".partial", "w") for fname in self.inputs: sze, fd = connect_input(fname) for k, v in fun_reduce_reader(fd, sze, fname): if " " in k: err("Spaces are not a...
61d6a597fa8470d096f584545649881c20ee1fa1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/373/61d6a597fa8470d096f584545649881c20ee1fa1/disco_worker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 67, 464, 67, 3804, 12, 2890, 4672, 8910, 529, 273, 14411, 57, 1441, 67, 8914, 738, 333, 67, 10534, 1435, 3387, 67, 803, 12, 5761, 529, 16, 1083, 13, 1234, 2932, 12944, 903, 506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4224, 67, 464, 67, 3804, 12, 2890, 4672, 8910, 529, 273, 14411, 57, 1441, 67, 8914, 738, 333, 67, 10534, 1435, 3387, 67, 803, 12, 5761, 529, 16, 1083, 13, 1234, 2932, 12944, 903, 506, ...
if self.section_level > 0: self.body.append('}\n')
pass
def depart_title(self, node): if self.section_level > 0: self.body.append('}\n')
793bd6f0b5819190ee6514a8c1fd76ce326454ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/793bd6f0b5819190ee6514a8c1fd76ce326454ef/python_latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 2649, 12, 2890, 16, 756, 4672, 309, 365, 18, 3464, 67, 2815, 405, 374, 30, 365, 18, 3432, 18, 6923, 2668, 6280, 82, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26000, 67, 2649, 12, 2890, 16, 756, 4672, 309, 365, 18, 3464, 67, 2815, 405, 374, 30, 365, 18, 3432, 18, 6923, 2668, 6280, 82, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
time.sleep(1)
try: time.sleep(1) except IOError: log.log( "<eddie>scheduler(), IOError received by sleep(1) pass
def scheduler(q, Config, die_event): """The Eddie scheduler thread. This thread tracks the queue of waiting checks and executes them in their own thread as required. It attempts to limit the number of actual checking threads running to keep things sane.""" while not die_event.isSet(): while threading.activeCount() ...
460921beb874a0dc87d289364e7cccdbb268abe8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/460921beb874a0dc87d289364e7cccdbb268abe8/eddie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8129, 12, 85, 16, 1903, 16, 10387, 67, 2575, 4672, 3536, 1986, 512, 449, 1385, 8129, 2650, 18, 225, 1220, 2650, 13933, 326, 2389, 434, 7336, 4271, 471, 11997, 2182, 316, 3675, 4953, 2650...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8129, 12, 85, 16, 1903, 16, 10387, 67, 2575, 4672, 3536, 1986, 512, 449, 1385, 8129, 2650, 18, 225, 1220, 2650, 13933, 326, 2389, 434, 7336, 4271, 471, 11997, 2182, 316, 3675, 4953, 2650...
sage: octave.set('x', '2')
sage: octave.set('x', '2')
def get(self, var): """ Get the value of the variable var.
1ab3f0068e14292037fefc56266a3fd1a2658927 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1ab3f0068e14292037fefc56266a3fd1a2658927/octave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 569, 4672, 3536, 968, 326, 460, 434, 326, 2190, 569, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 569, 4672, 3536, 968, 326, 460, 434, 326, 2190, 569, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
Filter the changesets and extract the deleted entries.
Facility to extract a list of deleted entries.
def removedEntries(self): """ Filter the changesets and extract the deleted entries. """
9589a2a5ed083087076030dbaba6309f788d97df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/9589a2a5ed083087076030dbaba6309f788d97df/changes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3723, 5400, 12, 2890, 4672, 3536, 12618, 1889, 358, 2608, 279, 666, 434, 4282, 3222, 18, 3536, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3723, 5400, 12, 2890, 4672, 3536, 12618, 1889, 358, 2608, 279, 666, 434, 4282, 3222, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sockerror("close");
sockerror("close"); if self->local_address: land_free(self->local_address) if self->remote_address: land_free(self->remote_address)
def land_net_del(LandNet *self): """ Deletes a connection. Make sure to reclaim any buffers you have assigned to it first. """ land_net_disconnect(self) # Close socket. if closesocket(self->sock): sockerror("close"); land_free(self)
4eb61e798256f12c03c487d14ad7817eac2632fa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/930/4eb61e798256f12c03c487d14ad7817eac2632fa/net.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19193, 67, 2758, 67, 3771, 12, 29398, 7308, 380, 2890, 4672, 3536, 17973, 279, 1459, 18, 4344, 3071, 358, 283, 14784, 1281, 9664, 1846, 1240, 6958, 358, 518, 1122, 18, 3536, 19193, 67, 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, 19193, 67, 2758, 67, 3771, 12, 29398, 7308, 380, 2890, 4672, 3536, 17973, 279, 1459, 18, 4344, 3071, 358, 283, 14784, 1281, 9664, 1846, 1240, 6958, 358, 518, 1122, 18, 3536, 19193, 67, 2...
return wa if b==widget else b
if b==widget: wa.control = b.control return wa else: return b
def doubleSpin(widget, master, value, min, max, step=1, box=None, label=None, labelWidth=None, orientation=None, tooltip=None, callback=None, debuggingEnabled = 1, controlWidth = None, callbackOnReturn = False, checked = "", checkCallback = None, posttext = None, addToLayout=True, alignment = Qt.AlignLeft): #widget, ma...
130223b55188082ff3ca26f07c6852c7c200ae66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6366/130223b55188082ff3ca26f07c6852c7c200ae66/OWGUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1645, 3389, 267, 12, 6587, 16, 4171, 16, 460, 16, 1131, 16, 943, 16, 2235, 33, 21, 16, 3919, 33, 7036, 16, 1433, 33, 7036, 16, 1433, 2384, 33, 7036, 16, 9820, 33, 7036, 16, 11915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 3389, 267, 12, 6587, 16, 4171, 16, 460, 16, 1131, 16, 943, 16, 2235, 33, 21, 16, 3919, 33, 7036, 16, 1433, 33, 7036, 16, 1433, 2384, 33, 7036, 16, 9820, 33, 7036, 16, 11915, ...
extra_exclude = '--exclude-from=%s' % exclude_file
extra_exclude = ['--exclude-from=%s' % exclude_file]
def __tree_status(files = [], tree_id = 'HEAD', unknown = False, noexclude = True): """Returns a list of pairs - [status, filename] """ os.system('git-update-cache --refresh > /dev/null') cache_files = [] # unknown files if unknown: exclude_file = os.path.join(base_dir, 'info', 'exclude') base_exclude = ['--exclude=%...
3c6fbd2cb3fd1d2a18585d3c13cd4517021b2f36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/3c6fbd2cb3fd1d2a18585d3c13cd4517021b2f36/git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3413, 67, 2327, 12, 2354, 273, 5378, 16, 2151, 67, 350, 273, 296, 12458, 2187, 5917, 273, 1083, 16, 1158, 10157, 273, 1053, 4672, 3536, 1356, 279, 666, 434, 5574, 300, 306, 2327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3413, 67, 2327, 12, 2354, 273, 5378, 16, 2151, 67, 350, 273, 296, 12458, 2187, 5917, 273, 1083, 16, 1158, 10157, 273, 1053, 4672, 3536, 1356, 279, 666, 434, 5574, 300, 306, 2327, ...
sl = socket_listener( repl.stdin, buffer, repl.pid )
sl = socket_listener( repl_stdin, buffer, repl_pid )
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, ...
a(menu.selected, self)
a()
def eventhandler(self, event): """ Eventhandler for menu control """ menu = self.menustack[-1]
1da4b7a0a27baca173d607f25a760aef4501a5a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/1da4b7a0a27baca173d607f25a760aef4501a5a7/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 4672, 3536, 2587, 4176, 364, 3824, 3325, 3536, 3824, 273, 365, 18, 27617, 641, 484, 18919, 21, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 871, 4176, 12, 2890, 16, 871, 4672, 3536, 2587, 4176, 364, 3824, 3325, 3536, 3824, 273, 365, 18, 27617, 641, 484, 18919, 21, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.body.append(self.context.pop())
self.body.append('}')
def depart_inline(self, node): self.body.append(self.context.pop())
ed0abdb5db877dcbb02815b3989607b66d92de4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1532/ed0abdb5db877dcbb02815b3989607b66d92de4c/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 10047, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 12, 2890, 18, 2472, 18, 5120, 10756, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26000, 67, 10047, 12, 2890, 16, 756, 4672, 365, 18, 3432, 18, 6923, 12, 2890, 18, 2472, 18, 5120, 10756, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pass
pass
def styleShutdown(self, style, URI, data): """Callback function when a stylesheet using it is destroyed"""
f13db5792e28b6252cd02c1e28b40b8d9eace3c4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3857/f13db5792e28b6252cd02c1e28b40b8d9eace3c4/libxsl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2154, 10961, 12, 2890, 16, 2154, 16, 3699, 16, 501, 4672, 3536, 2428, 445, 1347, 279, 13820, 1450, 518, 353, 17689, 8395, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2154, 10961, 12, 2890, 16, 2154, 16, 3699, 16, 501, 4672, 3536, 2428, 445, 1347, 279, 13820, 1450, 518, 353, 17689, 8395, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
sys.stdout.write("About to start TCP server...\n")
def test_main(): rootLogger = logging.getLogger("") rootLogger.setLevel(logging.DEBUG) hdlr = logging.StreamHandler(sys.stdout) fmt = logging.Formatter(logging.BASIC_FORMAT) hdlr.setFormatter(fmt) rootLogger.addHandler(hdlr) #Set up a handler such that all events are sent via a socket to the log #receiver (logrecv). #...
2a1d51602b98effa0feddc2427ba5d8cd0641b77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2a1d51602b98effa0feddc2427ba5d8cd0641b77/test_logging.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1365, 3328, 273, 2907, 18, 588, 3328, 2932, 7923, 1365, 3328, 18, 542, 2355, 12, 11167, 18, 9394, 13, 366, 5761, 86, 273, 2907, 18, 1228, 1503, 12, 9499, 18, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5254, 13332, 1365, 3328, 273, 2907, 18, 588, 3328, 2932, 7923, 1365, 3328, 18, 542, 2355, 12, 11167, 18, 9394, 13, 366, 5761, 86, 273, 2907, 18, 1228, 1503, 12, 9499, 18, 102...
PREFIX+'/tmp/dtool_have_helix.dat', PREFIX+'/tmp/dtool_have_vrpn.dat', PREFIX+'/tmp/dtool_have_nspr.dat', PREFIX+'/tmp/dtool_have_freetype.dat',
'built/tmp/dtool_have_helix.dat', 'built/tmp/dtool_have_vrpn.dat', 'built/tmp/dtool_have_nspr.dat', 'built/tmp/dtool_have_freetype.dat',
if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n"
bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/bc5fc1af0298e68a51a18dc8bc8da9f86c4f411e/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 1125, 422, 296, 2124, 12904, 11, 4672, 2195, 273, 2195, 397, 6619, 318, 536, 315, 397, 498, 397, 1548, 82, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 1125, 422, 296, 2124, 12904, 11, 4672, 2195, 273, 2195, 397, 6619, 318, 536, 315, 397, 498, 397, 1548, 82, 6, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
self._curObjRef = ContainerRef(curObjRef, indirection=Indirection(evalStr='.__dict__'))
self._curObjRef = ContainerRef(Indirection(evalStr='.__dict__'), curObjRef)
def run(self): taskMgr.doMethodLater(self._nextCheckDelay, self._checkForLeaks, self.getCheckTaskName())
88950518abcce43f6828c7e417218c4bdb6988d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/88950518abcce43f6828c7e417218c4bdb6988d8/ContainerLeakDetector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1562, 9455, 18, 2896, 1305, 20607, 12, 2890, 6315, 4285, 1564, 6763, 16, 365, 6315, 1893, 1290, 1682, 581, 87, 16, 365, 18, 588, 1564, 2174, 461, 10756, 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, 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, 12, 2890, 4672, 1562, 9455, 18, 2896, 1305, 20607, 12, 2890, 6315, 4285, 1564, 6763, 16, 365, 6315, 1893, 1290, 1682, 581, 87, 16, 365, 18, 588, 1564, 2174, 461, 10756, 2, -100, ...
import sys modules = sorted(name for name, mod in sys.modules.iteritems() if mod_exists(mod))
new_mod_text = SelectableText("-- update me --") new_mod_entry = urwid.AttrWrap(new_mod_text, None, "focused selectable")
def mod_exists(mod): if not hasattr(mod, "__file__"): return False filename = mod.__file__
c264df31611a7e5636577f8e669691f104c85040 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12738/c264df31611a7e5636577f8e669691f104c85040/debugger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 681, 67, 1808, 12, 1711, 4672, 309, 486, 3859, 12, 1711, 16, 10425, 768, 14437, 4672, 327, 1083, 1544, 273, 681, 16186, 768, 972, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 681, 67, 1808, 12, 1711, 4672, 309, 486, 3859, 12, 1711, 16, 10425, 768, 14437, 4672, 327, 1083, 1544, 273, 681, 16186, 768, 972, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
'nocompress' : lambda d: rand.choice(['false']),
'nocompress' : lambda d: rand.choice(['true']),
def INPUT_SPEC(rand): return { # Time/space costs: # -C 1,2,3,4,5,6,7 'large_look' : lambda d: rand.choice([9]), 'large_step' : lambda d: rand.choice([2, 3, 8, 15]), 'small_chain' : lambda d: rand.choice([40, 10, 4, 1]), 'small_lchain' : lambda d: rand.choice([x for x in [10, 4, 2, 1] if x <= d['small_chain']]), 'ma...
be82d71d583c6a1c6cbc035c1f4002fe972c09ce /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9009/be82d71d583c6a1c6cbc035c1f4002fe972c09ce/xdelta3-regtest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12943, 67, 13847, 12, 7884, 4672, 327, 288, 225, 468, 2647, 19, 2981, 22793, 30, 225, 468, 300, 39, 404, 16, 22, 16, 23, 16, 24, 16, 25, 16, 26, 16, 27, 296, 14095, 67, 7330, 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, 12943, 67, 13847, 12, 7884, 4672, 327, 288, 225, 468, 2647, 19, 2981, 22793, 30, 225, 468, 300, 39, 404, 16, 22, 16, 23, 16, 24, 16, 25, 16, 26, 16, 27, 296, 14095, 67, 7330, 11, ...
client = jack.Client('jack_bus_connect')
global monitor_client monitor_client = jack.Client('jack_bus_connect')
def _init() : try : client = jack.Client('jack_bus_connect') except jack.NotConnectedError: print "jackd not running" sys.exit()
7966e22855b4c00c398506a8416f929e50d01492 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1456/7966e22855b4c00c398506a8416f929e50d01492/jack_bus_connect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 1435, 294, 775, 294, 2552, 6438, 67, 2625, 6438, 67, 2625, 273, 525, 484, 18, 1227, 2668, 78, 484, 67, 9274, 67, 3612, 6134, 1335, 525, 484, 18, 1248, 8932, 668, 30, 1172, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 1435, 294, 775, 294, 2552, 6438, 67, 2625, 6438, 67, 2625, 273, 525, 484, 18, 1227, 2668, 78, 484, 67, 9274, 67, 3612, 6134, 1335, 525, 484, 18, 1248, 8932, 668, 30, 1172, ...
'openerp-server.service',
'openerp-server.service',
def run(self): # create startup script start_script = "#!/bin/sh\ncd %s\nexec %s ./openerp-server.py $@\n" % (opj(self.install_libbase, "openerp-server"), sys.executable) # write script f = open('openerp-server', 'w') f.write(start_script) f.close() install.run(self)
ff2608cc2bab4a2e3aca8af750882283eb6f7e4d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/ff2608cc2bab4a2e3aca8af750882283eb6f7e4d/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 752, 11850, 2728, 787, 67, 4263, 273, 6619, 5, 19, 4757, 19, 674, 64, 82, 4315, 738, 87, 64, 82, 4177, 738, 87, 263, 19, 25098, 84, 17, 3567, 18, 2074, 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, 1086, 12, 2890, 4672, 468, 752, 11850, 2728, 787, 67, 4263, 273, 6619, 5, 19, 4757, 19, 674, 64, 82, 4315, 738, 87, 64, 82, 4177, 738, 87, 263, 19, 25098, 84, 17, 3567, 18, 2074, 2...
def getSetter(targetObj, valueName, prefix='set'):
def getSetter(targetObj, valueName):
def getSetter(targetObj, valueName, prefix='set'): # getSetter(smiley, 'pos') -> smiley.setPos return getattr(targetObj, getSetterName(valueName, prefix))
b3c75ef6790058aadf797b0280da9100f372364a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/b3c75ef6790058aadf797b0280da9100f372364a/PythonUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 8465, 12, 3299, 2675, 16, 460, 461, 4672, 468, 336, 8465, 12, 4808, 398, 93, 16, 296, 917, 6134, 317, 3029, 398, 93, 18, 542, 1616, 327, 3869, 12, 3299, 2675, 16, 336, 8465, 461...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 8465, 12, 3299, 2675, 16, 460, 461, 4672, 468, 336, 8465, 12, 4808, 398, 93, 16, 296, 917, 6134, 317, 3029, 398, 93, 18, 542, 1616, 327, 3869, 12, 3299, 2675, 16, 336, 8465, 461...
pipe = os.popen(cmd)
with os.popen(cmd) as pipe: for line in pipe: words = line.lower().split() for i in range(len(words)): if words[i] in hw_identifiers: return int( words[get_index(i)].replace(':', ''), 16)
def _find_mac(command, args, hw_identifiers, get_index): import os for dir in ['', '/sbin/', '/usr/sbin']: executable = os.path.join(dir, command) if not os.path.exists(executable): continue try: # LC_ALL to get English output, 2>/dev/null to # prevent output on stderr cmd = 'LC_ALL=C %s %s 2>/dev/null' % (executable,...
c976884bae9d052be78a937c95ada7c573ab901f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/c976884bae9d052be78a937c95ada7c573ab901f/uuid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4720, 67, 5821, 12, 3076, 16, 833, 16, 16139, 67, 20218, 16, 336, 67, 1615, 4672, 1930, 1140, 364, 1577, 316, 10228, 2187, 1173, 87, 4757, 19, 2187, 1173, 13640, 19, 87, 4757, 354...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4720, 67, 5821, 12, 3076, 16, 833, 16, 16139, 67, 20218, 16, 336, 67, 1615, 4672, 1930, 1140, 364, 1577, 316, 10228, 2187, 1173, 87, 4757, 19, 2187, 1173, 13640, 19, 87, 4757, 354...
base_uri = base_uri._reduri
rbase_uri = base_uri._reduri else: rbase_uri = None
def __init__(self,querystring,base_uri=None,query_language="rdql"): if base_uri is not None: base_uri = base_uri._reduri global _world global _debug if _debug: print "Creating query for language '"+query_language+"', base '"+str(base_uri)+"': "+querystring
fd7c031031ec0ac08c4a9519bf32ff0ab61e9369 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/fd7c031031ec0ac08c4a9519bf32ff0ab61e9369/RDF.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2271, 1080, 16, 1969, 67, 1650, 33, 7036, 16, 2271, 67, 4923, 1546, 13623, 1217, 6, 4672, 309, 1026, 67, 1650, 353, 486, 599, 30, 436, 1969, 67, 1650, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2271, 1080, 16, 1969, 67, 1650, 33, 7036, 16, 2271, 67, 4923, 1546, 13623, 1217, 6, 4672, 309, 1026, 67, 1650, 353, 486, 599, 30, 436, 1969, 67, 1650, ...
self.h9 = h9
self.h9 = gdata.health.service.HealthService(use_h9_sandbox=True) self.h9.ClientLogin(username, password, source='H9 Client Unit Tests')
def setUp(self): self.h9 = h9 self.profile_list_feed = self.h9.GetProfileListFeed()
7db56efc3b0c60a54796b2b4dd6f95cd3495f093 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5609/7db56efc3b0c60a54796b2b4dd6f95cd3495f093/service_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 76, 29, 273, 314, 892, 18, 13267, 18, 3278, 18, 7802, 1179, 12, 1202, 67, 76, 29, 67, 27004, 33, 5510, 13, 365, 18, 76, 29, 18, 1227, 5358, 12, 5053...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 76, 29, 273, 314, 892, 18, 13267, 18, 3278, 18, 7802, 1179, 12, 1202, 67, 76, 29, 67, 27004, 33, 5510, 13, 365, 18, 76, 29, 18, 1227, 5358, 12, 5053...
if k<0: k=-2 l=uri.find("/", k+2) if uri[l+1:l+2] != "/" and base[l+1:l+2] != "/": return uri[l:]
if k<0: k=-2 l=uri.find("/", k+2) if uri[l+1:l+2] != "/" and base[l+1:l+2] != "/" and uri[:l]==base[:l]: return uri[l:]
def refTo(base, uri): """figure out a relative URI reference from base to uri Your regular relative URI algorithm -- never trust anyone else's ;-) This one checks that it uses a root-realtive one where that is all they share. Now uses root-relative where no path is shared. This is a matter of taste but tends to give ...
86683d9ef5aace84c7bcf2172757a06b9f3fbc5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/86683d9ef5aace84c7bcf2172757a06b9f3fbc5e/uripath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1278, 774, 12, 1969, 16, 2003, 4672, 3536, 19675, 596, 279, 3632, 3699, 2114, 628, 1026, 358, 2003, 225, 20471, 6736, 3632, 3699, 4886, 1493, 5903, 10267, 1281, 476, 469, 1807, 274, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1278, 774, 12, 1969, 16, 2003, 4672, 3536, 19675, 596, 279, 3632, 3699, 2114, 628, 1026, 358, 2003, 225, 20471, 6736, 3632, 3699, 4886, 1493, 5903, 10267, 1281, 476, 469, 1807, 274, 17, ...
template = """ <profile namespace="condor" key="universe">%s</profile>\n""" xml = xml + template % (node.job().get_universe())
if node.get_dax_collapse(): template = """ <profile namespace="condor" key="universe">vanilla</profile>\n""" xml = xml + template else: template = """ <profile namespace="condor" key="universe">%s</profile>\n""" xml = xml + template % (node.job().get_universe())
def write_abstract_dag(self): """ Write all the nodes in the workflow to the DAX file. """ if not self.__dax_file_path: # this workflow is not dax-compatible, so don't write a dax return try: dagfile = open( self.__dax_file_path, 'w' ) except: raise CondorDAGError, "Cannot open file " + self.__dag_file_path
255a08e876302f4eeb69caffc79bc50efc28a9bf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/255a08e876302f4eeb69caffc79bc50efc28a9bf/pipeline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 17801, 67, 30204, 12, 2890, 4672, 3536, 2598, 777, 326, 2199, 316, 326, 6095, 358, 326, 463, 2501, 585, 18, 3536, 309, 486, 365, 16186, 72, 651, 67, 768, 67, 803, 30, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 17801, 67, 30204, 12, 2890, 4672, 3536, 2598, 777, 326, 2199, 316, 326, 6095, 358, 326, 463, 2501, 585, 18, 3536, 309, 486, 365, 16186, 72, 651, 67, 768, 67, 803, 30, 468, ...
l_uid = uid l_gid = gid
result = self.getUserAndGroupID(credDict) if not result['OK']: return result ( l_uid, l_gid ) = result['Value']
def makeDirectory(self,path,uid=0,gid=0,status=0): """Create a new directory. The return value is the dictionary containing all the parameters of the newly created directory """
7c9f9bf86a8a3adc7278acbcec8e46c5cbd104b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7c9f9bf86a8a3adc7278acbcec8e46c5cbd104b8/FileCatalogDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 2853, 12, 2890, 16, 803, 16, 1911, 33, 20, 16, 15780, 33, 20, 16, 2327, 33, 20, 4672, 3536, 1684, 279, 394, 1867, 18, 1021, 327, 460, 353, 326, 3880, 4191, 777, 326, 1472, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 2853, 12, 2890, 16, 803, 16, 1911, 33, 20, 16, 15780, 33, 20, 16, 2327, 33, 20, 4672, 3536, 1684, 279, 394, 1867, 18, 1021, 327, 460, 353, 326, 3880, 4191, 777, 326, 1472, 434,...
try: if button != "cancel" and getattr(self, "cmd_" + button) == "None": list.remove(button) except: self.logger.warning(_("Command for button %s is undefined, removing." % button)) list.remove(button)
if button != "cancel": try: self.logger.debug(_("Cmd Value for %s: %s" % (button, getattr(self, "cmd_" + button)))) if getattr(self, "cmd_" + button) == "None": self.logger.warning(_("Command for button %s is undefined, removing." % button)) list.remove(button) except: self.logger.warning(_("Command for button %s is un...
def load_config(self, config): """ Load the configuration file and parse entries, when encountering a issue change safe defaults """ self.parser = ConfigParser.SafeConfigParser() self.parser.read(config) # Set some safe defaults self.opacity = 50 self.button_theme = "default" self.bgcolor = gtk.gdk.color_parse("black...
350d3ce38d2ccfc09eec6874759b2fb39ae4e4d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11198/350d3ce38d2ccfc09eec6874759b2fb39ae4e4d6/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 1425, 12, 2890, 16, 642, 4672, 3536, 4444, 326, 1664, 585, 471, 1109, 3222, 16, 1347, 8273, 310, 279, 5672, 2549, 4183, 3467, 3536, 225, 365, 18, 4288, 273, 25076, 18, 9890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 67, 1425, 12, 2890, 16, 642, 4672, 3536, 4444, 326, 1664, 585, 471, 1109, 3222, 16, 1347, 8273, 310, 279, 5672, 2549, 4183, 3467, 3536, 225, 365, 18, 4288, 273, 25076, 18, 9890, ...
def OnEnter(self, event): for nv in self.nameValues: if nv.editing: nv.propEditor.inspectorPost(false) def OnUndo(self, event): pass def OnCrsUp(self, event): if len(self.nameValues) > 1: for idx in range(1, len(self.nameValues)): if self.nameValues[idx].editing: self.propertySelected(self.nameValues[idx-1]) break e...
def OnEnter(self, event): for nv in self.nameValues: if nv.editing: nv.propEditor.inspectorPost(false)
746f53548fb8bb54a235b1bfa31a4bdb769818e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/746f53548fb8bb54a235b1bfa31a4bdb769818e8/Inspector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 10237, 12, 2890, 16, 871, 4672, 364, 8779, 316, 365, 18, 529, 1972, 30, 309, 8779, 18, 4619, 310, 30, 8779, 18, 5986, 6946, 18, 12009, 280, 3349, 12, 5743, 13, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 10237, 12, 2890, 16, 871, 4672, 364, 8779, 316, 365, 18, 529, 1972, 30, 309, 8779, 18, 4619, 310, 30, 8779, 18, 5986, 6946, 18, 12009, 280, 3349, 12, 5743, 13, 2, -100, -100, -...
rootRegex = re.compile(r'^\S+?:/+(?:[^\s/]*@)?(\S+)$')
def GetFilename(self): file = self.file if self.revision and self.clean_root: if self.srcdir: # strip the base path off # but we actually want the last dir in srcdir file = os.path.normpath(file) # the lower() is to handle win32+vc8, where # the source filenames come out all lowercase, # but the srcdir can be mixed cas...
fca74268434622be076655b83818d383d4c0c5bb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/fca74268434622be076655b83818d383d4c0c5bb/symbolstore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 5359, 12, 2890, 4672, 585, 273, 365, 18, 768, 309, 365, 18, 13057, 471, 365, 18, 6200, 67, 3085, 30, 309, 365, 18, 4816, 1214, 30, 468, 2569, 326, 1026, 589, 3397, 468, 1496, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 968, 5359, 12, 2890, 4672, 585, 273, 365, 18, 768, 309, 365, 18, 13057, 471, 365, 18, 6200, 67, 3085, 30, 309, 365, 18, 4816, 1214, 30, 468, 2569, 326, 1026, 589, 3397, 468, 1496, 73...
print "P Pick deleted"
msg = "P Pick deleted" appendTextview(self.textviewStdOut, msg)
def delP(self): try: del self.dicts[self.stPt]['P'] print "P Pick deleted" except: pass
b822b77814749ba0fa0b0a638d2c2e8ccf514f6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b822b77814749ba0fa0b0a638d2c2e8ccf514f6c/obspyck.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 52, 12, 2890, 4672, 775, 30, 1464, 365, 18, 16287, 63, 2890, 18, 334, 16484, 23962, 52, 3546, 1234, 273, 315, 52, 23038, 4282, 6, 714, 1528, 1945, 12, 2890, 18, 955, 1945, 10436,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1464, 52, 12, 2890, 4672, 775, 30, 1464, 365, 18, 16287, 63, 2890, 18, 334, 16484, 23962, 52, 3546, 1234, 273, 315, 52, 23038, 4282, 6, 714, 1528, 1945, 12, 2890, 18, 955, 1945, 10436,...
return self._bind(('bind', 'all'), sequence, func, add)
return self._bind(('bind', 'all'), sequence, func, add, 0)
def bind_all(self, sequence=None, func=None, add=None): return self._bind(('bind', 'all'), sequence, func, add)
50dd91ea1624becb3e4d5c9b48293158592f2efa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/50dd91ea1624becb3e4d5c9b48293158592f2efa/Tkinter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1993, 67, 454, 12, 2890, 16, 3102, 33, 7036, 16, 1326, 33, 7036, 16, 527, 33, 7036, 4672, 327, 365, 6315, 4376, 12, 2668, 4376, 2187, 296, 454, 19899, 3102, 16, 1326, 16, 527, 13, 2,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1993, 67, 454, 12, 2890, 16, 3102, 33, 7036, 16, 1326, 33, 7036, 16, 527, 33, 7036, 4672, 327, 365, 6315, 4376, 12, 2668, 4376, 2187, 296, 454, 19899, 3102, 16, 1326, 16, 527, 13, 2,...
if hasattr(g, 'input_add_full'):
import gobject if not hasattr(gobject, 'io_add_watch'):
def start(self): """Create the subprocess. Calls pre_fork() and forks. The parent then calls parent_post_fork() and returns, while the child calls child_post_fork() and then child_run().""" assert self.child is None
fb8a3c1f376c5ca91634408680d42317649dd200 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4591/fb8a3c1f376c5ca91634408680d42317649dd200/processes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 3536, 1684, 326, 6652, 18, 23665, 675, 67, 23335, 1435, 471, 364, 7904, 18, 1021, 982, 1508, 4097, 982, 67, 2767, 67, 23335, 1435, 471, 1135, 16, 1323, 326, 1151, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 787, 12, 2890, 4672, 3536, 1684, 326, 6652, 18, 23665, 675, 67, 23335, 1435, 471, 364, 7904, 18, 1021, 982, 1508, 4097, 982, 67, 2767, 67, 23335, 1435, 471, 1135, 16, 1323, 326, 1151, ...
stream = self.core_process_stream(media)
stream = self.core_process_read(media)
def run(self): q = self.q while True: it = q.get(1) if self.lp == 0: self.logger.write('Error : Station ' + self.short_name + ' have no media to stream !') break media = self.get_next_media() self.counter += 1 q.task_done()
87d071aaaa9f5f2fc366cfc7af11d22b039044ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12047/87d071aaaa9f5f2fc366cfc7af11d22b039044ba/deefuzz.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1043, 273, 365, 18, 85, 1323, 1053, 30, 518, 273, 1043, 18, 588, 12, 21, 13, 309, 365, 18, 9953, 422, 374, 30, 365, 18, 4901, 18, 2626, 2668, 668, 294, 934, 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, 1086, 12, 2890, 4672, 1043, 273, 365, 18, 85, 1323, 1053, 30, 518, 273, 1043, 18, 588, 12, 21, 13, 309, 365, 18, 9953, 422, 374, 30, 365, 18, 4901, 18, 2626, 2668, 668, 294, 934, 3...
nRange = range(400,425)
nRange = range(400,450)
def all(): outDir = "/tmp/tmpPlate" nRange = range(400,425) # Generate the top level file containing pointers on all f = open('/tmp/allDSS.json', 'w') f.write('{\n') f.write('"minResolution" : 0.1,\n') f.write('"luminance" : 1,\n') f.write('"subTiles" : \n[\n') for i in nRange: plateName = "N%.3i" % i ti = createTile(...
909e04948409b68ce242484b706d1cc611284d2e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7604/909e04948409b68ce242484b706d1cc611284d2e/dssheaderToJSON.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 777, 13332, 596, 1621, 273, 2206, 5645, 19, 5645, 1749, 340, 6, 290, 2655, 273, 1048, 12, 16010, 16, 24, 3361, 13, 225, 468, 6654, 326, 1760, 1801, 585, 4191, 13857, 603, 777, 284, 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, 777, 13332, 596, 1621, 273, 2206, 5645, 19, 5645, 1749, 340, 6, 290, 2655, 273, 1048, 12, 16010, 16, 24, 3361, 13, 225, 468, 6654, 326, 1760, 1801, 585, 4191, 13857, 603, 777, 284, 273...
"""Represents how severe a issue is""" title=models.CharField(max_length=50) order=models.IntegerField(max_length=3) def __unicode__(self): return self.title class Admin: pass class Meta: verbose_name = 'issue severity' verbose_name_plural = 'issue severity' ordering = ['order']
"""Represents how severe a issue is""" title=models.CharField(max_length=50) order=models.IntegerField(max_length=3) def __unicode__(self): return self.title class Admin: pass class Meta: verbose_name = 'issue severity' verbose_name_plural = 'issue severity' ordering = ['order']
def __unicode__(self): return self.title
d5fe6d8f6b0ff4bd6c696e2a57d531f122944e82 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14843/d5fe6d8f6b0ff4bd6c696e2a57d531f122944e82/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 327, 365, 18, 2649, 225, 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, 1001, 9124, 972, 12, 2890, 4672, 327, 365, 18, 2649, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
modname = doc.uid().module().name()
modname = uid.module().name()
def _class_to_html(self, uid): 'Return an HTML page for a Class' doc = self._docmap[uid] modname = doc.uid().module().name() descr = doc.descr() # Name & summary str = self._header(`uid`) str += self._navbar('class', uid) if self._show_both: str += self._public_private_link(uid) str += self._start_of('Class Descriptio...
ad5bc28e61fc8837c138ad9d0c6ffb1dd1b518ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ad5bc28e61fc8837c138ad9d0c6ffb1dd1b518ec/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1106, 67, 869, 67, 2620, 12, 2890, 16, 4555, 4672, 296, 990, 392, 3982, 1363, 364, 279, 1659, 11, 997, 273, 365, 6315, 2434, 1458, 63, 1911, 65, 16037, 273, 4555, 18, 2978, 7675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1106, 67, 869, 67, 2620, 12, 2890, 16, 4555, 4672, 296, 990, 392, 3982, 1363, 364, 279, 1659, 11, 997, 273, 365, 6315, 2434, 1458, 63, 1911, 65, 16037, 273, 4555, 18, 2978, 7675, ...
if self.verbose > 1:
if self.options.verbose > 1:
def best_upgrade(self, current, dest, target_dbname): current_dir = os.path.join(self.base_dir(), current) if self.options.verbose > 1: print ('Looking in %s for upgraders' % self.shorten_filename(current_dir)) upgraders = [] for fn in os.listdir(current_dir): match = self.upgrade_regex.search(fn) if not match: if self...
53c6db08f599b4b42e84b5cef85aa631286985ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/53c6db08f599b4b42e84b5cef85aa631286985ce/command.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3796, 67, 15097, 12, 2890, 16, 783, 16, 1570, 16, 1018, 67, 20979, 4672, 783, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 1969, 67, 1214, 9334, 783, 13, 309, 365, 18, 2116,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3796, 67, 15097, 12, 2890, 16, 783, 16, 1570, 16, 1018, 67, 20979, 4672, 783, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 1969, 67, 1214, 9334, 783, 13, 309, 365, 18, 2116,...
VoucherLine()
account_voucher_line()
def onchange_line_account(self, cr, uid, ids, account_id, type, type1): if not account_id: return {'value' : {'account_id' : False, 'type' : False ,'amount':False}} obj = self.pool.get('account.account') acc_id = False if type1 in ('rec_voucher','bank_rec_voucher', 'journal_voucher'): acc_id = obj.browse(cr, uid, acco...
ab1423b7f3a0860088715f85782ab9044241f25f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/ab1423b7f3a0860088715f85782ab9044241f25f/account_voucher_payment.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 1369, 67, 4631, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 2236, 67, 350, 16, 618, 16, 618, 21, 4672, 309, 486, 2236, 67, 350, 30, 327, 13666, 1132, 11, 294, 13666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 3427, 67, 1369, 67, 4631, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 2236, 67, 350, 16, 618, 16, 618, 21, 4672, 309, 486, 2236, 67, 350, 30, 327, 13666, 1132, 11, 294, 13666, ...
resubmittedJobs.append(jobs[i])
resubmittedJobs.append(jobIDs[oldID])
def master_resubmit(self,jobs): '''Resubmit failed subjobs''' jobIDs = {} for job in jobs: jobIDs[job.backend.id] = job
19635ee9205007eed09eb74c9ba5407951f8ffa8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/19635ee9205007eed09eb74c9ba5407951f8ffa8/Panda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4171, 67, 455, 373, 1938, 12, 2890, 16, 10088, 4672, 9163, 607, 373, 1938, 2535, 720, 10088, 26418, 1719, 5103, 273, 2618, 364, 1719, 316, 6550, 30, 1719, 5103, 63, 4688, 18, 9993, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4171, 67, 455, 373, 1938, 12, 2890, 16, 10088, 4672, 9163, 607, 373, 1938, 2535, 720, 10088, 26418, 1719, 5103, 273, 2618, 364, 1719, 316, 6550, 30, 1719, 5103, 63, 4688, 18, 9993, 18, ...
def err_exit(title, rc): py_pjsua.perror(THIS_FILE, title, rc) exit(1) def log_cb(level, str, len): if level <= C_LOG_LEVEL: print str, def write_log(level, str): log_cb(level, str + "\n", 0)
def on_call_transfer_request(call_id, dst, code): write_log(3, "Call transfer request from " + `call_id` + " to " + dst + " with code " + `code`)
3c428090ed3e7468f690caea388eb6ae0181de84 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1549/3c428090ed3e7468f690caea388eb6ae0181de84/pjsua_app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1991, 67, 13866, 67, 2293, 12, 1991, 67, 350, 16, 3046, 16, 981, 4672, 1045, 67, 1330, 12, 23, 16, 315, 1477, 7412, 590, 628, 315, 397, 1375, 1991, 67, 350, 68, 397, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 67, 1991, 67, 13866, 67, 2293, 12, 1991, 67, 350, 16, 3046, 16, 981, 4672, 1045, 67, 1330, 12, 23, 16, 315, 1477, 7412, 590, 628, 315, 397, 1375, 1991, 67, 350, 68, 397, 315, ...
for u,v in self.edges(labels = False): p.add_constraint( r_edge_used[(u,v)] + r_edge_used[(v,u)] - f_edge_used(u,v), min = 0)
for u, v in self.edges(labels=False): p.add_constraint(r_edge_used[(u,v)] + r_edge_used[(v,u)] - f_edge_used(u,v), min=0)
def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``.
815c98d316de2356ea416011f877811bcf39fae3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/815c98d316de2356ea416011f877811bcf39fae3/generic_graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 273, 599, 16, 268, 273, 599, 16, 13747, 273, 1083, 16, 4886, 273, 315, 49, 2627, 52, 3113, 12776, 273, 599, 16, 3988, 273, 374, 4672, 436, 8395, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12163, 67, 803, 12, 2890, 16, 272, 273, 599, 16, 268, 273, 599, 16, 13747, 273, 1083, 16, 4886, 273, 315, 49, 2627, 52, 3113, 12776, 273, 599, 16, 3988, 273, 374, 4672, 436, 8395, 28...
for source in all_examples: tree = PhyloXML.read(source) self.assert_(len(tree.clades))
for source in self.all_examples: phylo = PhyloXML.read(source) self.assert_(len(phylo.phylogenies))
def test_core(self): """Verify the presence of core elements within the tree.""" for source in all_examples: tree = PhyloXML.read(source) self.assert_(len(tree.clades))
f51f547a1c830da651d4ef263501812ea40c28ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/f51f547a1c830da651d4ef263501812ea40c28ae/test_PhyloXML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3644, 12, 2890, 4672, 3536, 8097, 326, 9805, 434, 2922, 2186, 3470, 326, 2151, 12123, 364, 1084, 316, 777, 67, 16858, 30, 2151, 273, 4360, 93, 383, 4201, 18, 896, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3644, 12, 2890, 4672, 3536, 8097, 326, 9805, 434, 2922, 2186, 3470, 326, 2151, 12123, 364, 1084, 316, 777, 67, 16858, 30, 2151, 273, 4360, 93, 383, 4201, 18, 896, 12, 3168, 1...
raise ValueError(('list item %d does not begin with '+ 'an identifier.') % n)
raise ValueError(_BAD_ITEM % n)
def handle_consolidated_bullet_list(self, items, tagname): # Check the contents of the list. In particular, each list # item should have the form: # - `arg`: description... n = 0 for item in items: n += 1 if item.tagname != 'list_item' or len(item) == 0: raise ValueError('bad bulleted list (bad child %d).' % n) if i...
f19c94ad92618a44c37f8aa46282df200249f1b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/f19c94ad92618a44c37f8aa46282df200249f1b7/restructuredtext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 8559, 7953, 690, 67, 70, 19994, 67, 1098, 12, 2890, 16, 1516, 16, 25586, 4672, 468, 2073, 326, 2939, 434, 326, 666, 18, 225, 657, 6826, 16, 1517, 666, 468, 761, 1410, 1240, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 67, 8559, 7953, 690, 67, 70, 19994, 67, 1098, 12, 2890, 16, 1516, 16, 25586, 4672, 468, 2073, 326, 2939, 434, 326, 666, 18, 225, 657, 6826, 16, 1517, 666, 468, 761, 1410, 1240, ...
-- nbunch - The nodes to inspect. If nbunch=None, returns data for all nodes in the graph
-- nbunch - The vertices to inspect. If nbunch=None, returns data for all vertices in the graph
def cluster_triangles(self, nbunch=None, with_labels=False): r""" Returns the number of triangles for nbunch of nodes as an ordered list.
139028392b54ae237314b7536b21897e9b1d7ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/139028392b54ae237314b7536b21897e9b1d7ed3/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2855, 67, 16857, 12356, 12, 2890, 16, 4264, 4384, 33, 7036, 16, 598, 67, 5336, 33, 8381, 4672, 436, 8395, 2860, 326, 1300, 434, 19959, 364, 4264, 4384, 434, 2199, 487, 392, 5901, 666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2855, 67, 16857, 12356, 12, 2890, 16, 4264, 4384, 33, 7036, 16, 598, 67, 5336, 33, 8381, 4672, 436, 8395, 2860, 326, 1300, 434, 19959, 364, 4264, 4384, 434, 2199, 487, 392, 5901, 666, ...
mosyms.append(self.normalisesym(temp)) if temp[0]=='e': mosyms.append(self.normalisesym(temp))
for j in range(multiple[temp[0]]): mosyms.append(self.normalisesym(temp))
def parse(self, fupdate=0.05, cupdate=0.002): """Extract information from the logfile.""" inputfile = open(self.filename, "r") if self.progress: inputfile.seek(0, 2) #go to end of file nstep = inputfile.tell() inputfile.seek(0) self.progress.initialize(nstep) oldstep = 0
bbbbd8327ffb0d8ba37c3b8f150943e46953e08f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/bbbbd8327ffb0d8ba37c3b8f150943e46953e08f/gamessukparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 284, 2725, 33, 20, 18, 6260, 16, 276, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 16, 315, 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, 1109, 12, 2890, 16, 284, 2725, 33, 20, 18, 6260, 16, 276, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 16, 315, 8...
buf.append(self.handle_nodelist(tmpl))
buf.append(self.handle_node_list(tmpl))
def handle_include(self, node): """ Include another template at the current position. """ buf = [self.indent('# INCLUDED TEMPLATE %r' % node.filename)] tmpl = self.environment.loader.parse(node.template, node.filename) buf.append(self.handle_nodelist(tmpl)) buf.append(self.indent('# END OF INCLUSION')) return '\n'.join...
8b8b4b70b0d3a5049ba6a08bbe9e1e442e552c67 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14446/8b8b4b70b0d3a5049ba6a08bbe9e1e442e552c67/python.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 6702, 12, 2890, 16, 756, 4672, 3536, 12672, 4042, 1542, 622, 326, 783, 1754, 18, 3536, 1681, 273, 306, 2890, 18, 9355, 2668, 7, 2120, 11686, 7660, 20835, 738, 86, 11, 738, 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, 1640, 67, 6702, 12, 2890, 16, 756, 4672, 3536, 12672, 4042, 1542, 622, 326, 783, 1754, 18, 3536, 1681, 273, 306, 2890, 18, 9355, 2668, 7, 2120, 11686, 7660, 20835, 738, 86, 11, 738, 75...
if self.selCmp and self.selCmp.designer: self.selCmp.designer.saveOnClose = false self.selCmp.designer.Close()
if self.selDesgn: self.selDesgn.saveOnClose = false self.selDesgn.Close()
def OnCancel(self, event): if self.selCmp and self.selCmp.designer: self.selCmp.designer.saveOnClose = false self.selCmp.designer.Close()
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 6691, 12, 2890, 16, 871, 4672, 309, 365, 18, 1786, 31832, 471, 365, 18, 1786, 31832, 18, 16934, 264, 30, 365, 18, 1786, 31832, 18, 16934, 264, 18, 5688, 1398, 4605, 273, 629, 365...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 6691, 12, 2890, 16, 871, 4672, 309, 365, 18, 1786, 31832, 471, 365, 18, 1786, 31832, 18, 16934, 264, 30, 365, 18, 1786, 31832, 18, 16934, 264, 18, 5688, 1398, 4605, 273, 629, 365...
if fileObj.hasContents: linkGroup = fileObj.linkGroup() if linkGroup: l = linkGroups.setdefault(linkGroup, []) l.append(path) (contentType, contents) = \ self.cs.getFileContents(pathId, fileId) if contentType == changeset.ChangedFileTypes.ptr: targetPtrId = contents.get().read() l = delayedRestores.setdefault(targetPt...
fileObj.restore(None, destdir, destdir + path)
def _expandChangeset(self): destdir = self.macros.destdir
bf1e72ee2b72891b3212d17590a07a0ffdab40e5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/bf1e72ee2b72891b3212d17590a07a0ffdab40e5/derivedrecipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 12320, 29743, 12, 2890, 4672, 1570, 1214, 273, 365, 18, 5821, 6973, 18, 10488, 1214, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12320, 29743, 12, 2890, 4672, 1570, 1214, 273, 365, 18, 5821, 6973, 18, 10488, 1214, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
WebKitScripts.run_webkit_tests(launch_safari=not options.non_interactive, fail_fast=options.non_interactive, quiet=options.quiet, port=port)
WebKitLandingScripts.run_webkit_tests(launch_safari=not self._options.non_interactive, fail_fast=self._options.non_interactive, quiet=self._options.quiet, port=self._port)
def test(self): # When running non-interactively we don't want to launch Safari and we want to exit after the first failure. WebKitScripts.run_webkit_tests(launch_safari=not options.non_interactive, fail_fast=options.non_interactive, quiet=options.quiet, port=port)
9b18cc782ab2aafe944a536a5455932b03785414 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/9b18cc782ab2aafe944a536a5455932b03785414/landingsequence.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2890, 4672, 468, 5203, 3549, 1661, 17, 2761, 621, 4492, 732, 2727, 1404, 2545, 358, 8037, 26690, 471, 732, 2545, 358, 2427, 1839, 326, 1122, 5166, 18, 2999, 14102, 15041, 18, 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, 12, 2890, 4672, 468, 5203, 3549, 1661, 17, 2761, 621, 4492, 732, 2727, 1404, 2545, 358, 8037, 26690, 471, 732, 2545, 358, 2427, 1839, 326, 1122, 5166, 18, 2999, 14102, 15041, 18, 2...
groups = sorted(self.saved_groups) for g1,g2 in zip(groups[:-1], groups[1:]): g = g1 + 1 if g < g2: break else: g = g2 + 1
g = max(self.saved_groups) + 1
def test_initgroups(self): # find missing group
e5a9101519ded4efc38611d2f93594f3fe04147f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/e5a9101519ded4efc38611d2f93594f3fe04147f/test_posix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2738, 4650, 12, 2890, 4672, 468, 1104, 3315, 1041, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2738, 4650, 12, 2890, 4672, 468, 1104, 3315, 1041, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
drs_list.append(self.parse(sentence, args)) drs_list.append(drs_list[-1].resolve()) drs_list.append(drs_list[-1].resolve())
drs_list.append(self.parse(sentence, utter=True)) readings.append(drs_list[-1].readings()[0])
def test(self, cases, **args): for number, sentence, expected, error in cases: if expected is not None: expected_drs = self.logic_parser.parse(expected) else: expected_drs = None
41333f24075b92c496577eeb7b2781f204c0df9b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2768/41333f24075b92c496577eeb7b2781f204c0df9b/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 2890, 16, 6088, 16, 2826, 1968, 4672, 364, 1300, 16, 7515, 16, 2665, 16, 555, 316, 6088, 30, 309, 2665, 353, 486, 599, 30, 2665, 67, 3069, 87, 273, 365, 18, 28339, 67, 4288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 12, 2890, 16, 6088, 16, 2826, 1968, 4672, 364, 1300, 16, 7515, 16, 2665, 16, 555, 316, 6088, 30, 309, 2665, 353, 486, 599, 30, 2665, 67, 3069, 87, 273, 365, 18, 28339, 67, 4288...
if not i % 2:
if i % 2:
def format_props(self): tkt = self.ticket fields = [f for f in tkt.fields if f['type'] != 'textarea' and f['name'] not in ('summary', 'cc')] t = self.modtime or tkt.time_changed width = [0, 0, 0, 0] for i, f in enum([f['name'] for f in fields]): if not tkt.values.has_key(f): continue fval = tkt[f] if fval.find('\n') > ...
f1ab6093ddcbd5043fbfaafca5b5e06bde87313b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/f1ab6093ddcbd5043fbfaafca5b5e06bde87313b/Notify.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, 723, 3546, 480, 296, 16701, 11, 471, 284, 3292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 723, 3546, 480, 296, 16701, 11, 471, 284, 3292, ...
Z = dataList[0] X = Z.getDomain().getX()
escriptZ = dataList[0] escriptX = escriptZ.getDomain().getX()
def setData(self, *dataList, **options): """ Set data to the plot
cd4aefd6501a46432131840f7455b36b75e33c79 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/cd4aefd6501a46432131840f7455b36b75e33c79/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7929, 12, 2890, 16, 380, 892, 682, 16, 2826, 2116, 4672, 3536, 1000, 501, 358, 326, 3207, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7929, 12, 2890, 16, 380, 892, 682, 16, 2826, 2116, 4672, 3536, 1000, 501, 358, 326, 3207, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
fh.write('%block %s\n' % key)
fh.write('%%block %s\n' % key)
def write_fdf(self, atoms): """Write input parameters to fdf-file.""" fh = open(self.label + '.fdf', 'w')
6b0569e893b7731a419f795c3d8b87c2b0e9871d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5735/6b0569e893b7731a419f795c3d8b87c2b0e9871d/siesta.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 74, 2180, 12, 2890, 16, 9006, 4672, 3536, 3067, 810, 1472, 358, 284, 2180, 17, 768, 12123, 7625, 273, 1696, 12, 2890, 18, 1925, 397, 2418, 74, 2180, 2187, 296, 91, 6134, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 74, 2180, 12, 2890, 16, 9006, 4672, 3536, 3067, 810, 1472, 358, 284, 2180, 17, 768, 12123, 7625, 273, 1696, 12, 2890, 18, 1925, 397, 2418, 74, 2180, 2187, 296, 91, 6134, 2, ...
stream = self._open() StreamHandler.__init__(self, stream)
StreamHandler.__init__(self, self._open())
def __init__(self, filename, mode='a', encoding=None, delay=0): """ Open the specified file and use it as the stream for logging. """ #keep the absolute path, otherwise derived classes which use this #may come a cropper when the current directory changes if codecs is None: encoding = None self.baseFilename = os.path.ab...
092df1481241f5c01dda32cf95b2e5920babfcfc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/092df1481241f5c01dda32cf95b2e5920babfcfc/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1544, 16, 1965, 2218, 69, 2187, 2688, 33, 7036, 16, 4624, 33, 20, 4672, 3536, 3502, 326, 1269, 585, 471, 999, 518, 487, 326, 1407, 364, 2907, 18, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1544, 16, 1965, 2218, 69, 2187, 2688, 33, 7036, 16, 4624, 33, 20, 4672, 3536, 3502, 326, 1269, 585, 471, 999, 518, 487, 326, 1407, 364, 2907, 18, 3536, ...
"""An AddressList encapsulates a list of parsed RFC822 addresses."""
"""An AddressList encapsulates a list of parsed RFC 2822 addresses."""
def getphraselist(self): """Parse a sequence of RFC-822 phrases.
1fb22bb24fd395a12a225b2418ea8d22d5b37610 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1fb22bb24fd395a12a225b2418ea8d22d5b37610/_parseaddr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 844, 21636, 5449, 12, 2890, 4672, 3536, 3201, 279, 3102, 434, 8372, 17, 24532, 31413, 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, ...
[ 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 844, 21636, 5449, 12, 2890, 4672, 3536, 3201, 279, 3102, 434, 8372, 17, 24532, 31413, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
sectionid=sectionid.replace('nbsp;','')
sectionid=sectionid.replace('&nbsp;','')
def sectionheader(text,level,beginmarkup): #output of headinglevels to console if checklevels: print text.rstrip('\n') levelstr='='*level remuster='%s.*?%s' %(levelstr,levelstr) such=re.compile(remuster,re.DOTALL) for treffer in such.findall(text): sectiontitle=treffer.replace(levelstr,'') sectiontitle=sectiontitle.str...
caa8bf8158cb2a3ab25a09d0ff4a91b0baf37239 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1692/caa8bf8158cb2a3ab25a09d0ff4a91b0baf37239/wiki2docbook.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2442, 3374, 12, 955, 16, 2815, 16, 10086, 15056, 4672, 468, 2844, 434, 910, 1714, 941, 87, 358, 2983, 309, 866, 12095, 30, 1172, 977, 18, 86, 6406, 2668, 64, 82, 6134, 1801, 701, 2218,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2442, 3374, 12, 955, 16, 2815, 16, 10086, 15056, 4672, 468, 2844, 434, 910, 1714, 941, 87, 358, 2983, 309, 866, 12095, 30, 1172, 977, 18, 86, 6406, 2668, 64, 82, 6134, 1801, 701, 2218,...