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
output.add_option("-v", "--verbose", action="store_true", default=True,
output.add_option("-v", "--verbose", action="store_true", dest="verbose",
def parse_cmdline(argv): 'Parse the command line.' # Help message and version string version = ( "Crash dumper using Win32DBG\n" "by Mario Vilas (mvilas at gmail.com)\n" "Version 1.0" ) usage = ( "\n" "\n" " Create a new process (parameters for the target must be escaped):\n" " %prog [options] -c <executable> [esc...
a602c666dccb773a61405d800e4b0f940598f5ef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/a602c666dccb773a61405d800e4b0f940598f5ef/crash_logger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 4172, 1369, 12, 19485, 4672, 296, 3201, 326, 1296, 980, 1093, 225, 468, 11288, 883, 471, 1177, 533, 1177, 273, 261, 315, 12893, 961, 24826, 1450, 21628, 1578, 2290, 43, 64, 82,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4172, 1369, 12, 19485, 4672, 296, 3201, 326, 1296, 980, 1093, 225, 468, 11288, 883, 471, 1177, 533, 1177, 273, 261, 315, 12893, 961, 24826, 1450, 21628, 1578, 2290, 43, 64, 82,...
NextURI = self.server.av_transport_server.get_variable(InstanceID, 'NextAVTransportURI').value
NextURI = self.server.av_transport_server.get_variable('NextAVTransportURI',InstanceID).value
def upnp_Seek(self, *args, **kwargs): InstanceID = int(kwargs['InstanceID']) Unit = kwargs['Unit'] Target = kwargs['Target'] if InstanceID != 0: return failure.Failure(errorCode(718)) if Unit in ['ABS_TIME','REL_TIME']: old_state = self.server.av_transport_server.get_variable('TransportState').value self.server.av_tran...
729fee3caa13a823d0e2315826959fb6b1c42d05 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11626/729fee3caa13a823d0e2315826959fb6b1c42d05/gstreamer_renderer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 731, 6782, 67, 16134, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 29390, 273, 509, 12, 4333, 3292, 1442, 734, 19486, 8380, 273, 1205, 3292, 2802, 3546, 5916, 273, 1205, 3292, 2326, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 731, 6782, 67, 16134, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 29390, 273, 509, 12, 4333, 3292, 1442, 734, 19486, 8380, 273, 1205, 3292, 2802, 3546, 5916, 273, 1205, 3292, 2326, 35...
win32file.SetCommTimeouts(self.hComPort, self._orgTimeouts)
try: win32file.SetCommTimeouts(self.hComPort, self._orgTimeouts) except win32file.error: pass
def close(self): """Close port""" if self._isOpen: if self.hComPort: #Restore original timeout values: win32file.SetCommTimeouts(self.hComPort, self._orgTimeouts) #Close COM-Port: win32file.CloseHandle(self.hComPort) win32file.CloseHandle(self._overlappedRead.hEvent) win32file.CloseHandle(self._overlappedWrite.hEvent) ...
b61320866cbbfc8a01c410c66a9d6c4484f1cc14 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2937/b61320866cbbfc8a01c410c66a9d6c4484f1cc14/serialwin32.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 3536, 4605, 1756, 8395, 309, 365, 6315, 291, 3678, 30, 309, 365, 18, 76, 799, 2617, 30, 468, 10874, 2282, 2021, 924, 30, 5657, 1578, 768, 18, 694, 12136, 2694, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 3536, 4605, 1756, 8395, 309, 365, 6315, 291, 3678, 30, 309, 365, 18, 76, 799, 2617, 30, 468, 10874, 2282, 2021, 924, 30, 5657, 1578, 768, 18, 694, 12136, 2694, 87...
def __init__(self, poly, prec, halt, print_mode, names): EisensteinExtensionGeneric.__init__(self, poly, prec, print_mode, names, EisensteinExtensionCappedRelativeElement)
def __init__(self, prepoly, poly, prec, halt, print_mode, shift_seed, names): unram_prec = (prec + poly.degree() - 1) // poly.degree() ntl_poly = ntl_ZZ_pX([a.lift() for a in poly.list()], poly.base_ring().prime()**unram_prec) shift_poly = ntl_ZZ_pX([a.lift() for a in shift_seed.list()], shift_seed.base_ring().prime()...
def __init__(self, poly, prec, halt, print_mode, names): EisensteinExtensionGeneric.__init__(self, poly, prec, print_mode, names, EisensteinExtensionCappedRelativeElement)
0f057e2127f2ea6d70a9e20884218a7ef6dea886 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0f057e2127f2ea6d70a9e20884218a7ef6dea886/padic_extension_leaves.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 16, 18389, 16, 1172, 67, 3188, 16, 1257, 4672, 512, 291, 275, 334, 13685, 3625, 7014, 16186, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 16, 18389, 16, 1172, 67, 3188, 16, 1257, 4672, 512, 291, 275, 334, 13685, 3625, 7014, 16186, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 1...
for c in h.categories: if not c.publiclist:
for hc in h.categories: if not hc.category.publiclist:
def _trim_hosts(hosts): '''remove hosts who have no public categories or hcurls''' orig_hosts = copy(hosts) i=0 for h in orig_hosts: i=i+1 found=False for c in h.categories: if not c.publiclist: continue if len(h.category_urls(c)) > 0: if _has_up2date_dirs(h, c): found=True break if not found: del hosts[i-1] return hos...
aa10d64835c32a13e295e59df8ee8c318d72da0e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13031/aa10d64835c32a13e295e59df8ee8c318d72da0e/controllers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5290, 67, 11588, 12, 11588, 4672, 9163, 4479, 7206, 10354, 1240, 1158, 1071, 6477, 578, 11684, 10518, 26418, 1647, 67, 11588, 273, 1610, 12, 11588, 13, 277, 33, 20, 364, 366, 316, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5290, 67, 11588, 12, 11588, 4672, 9163, 4479, 7206, 10354, 1240, 1158, 1071, 6477, 578, 11684, 10518, 26418, 1647, 67, 11588, 273, 1610, 12, 11588, 13, 277, 33, 20, 364, 366, 316, 1...
>>> booking = context.items[-1]
>>> booking = context.get('4')
... def objectIds(self):
11b478972152a15fce1de03ba52e6a7774bb2569 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10444/11b478972152a15fce1de03ba52e6a7774bb2569/add.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 733, 2673, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1372, 377, 1652, 733, 2673, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return self.info(path)['size']
return self.getinfo(path)['size']
def getsize(self, path):
11e0fa8a946fb3ce991ba0e46977d1175b48805a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5578/11e0fa8a946fb3ce991ba0e46977d1175b48805a/fs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30208, 12, 2890, 16, 589, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30208, 12, 2890, 16, 589, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
os.utime(dst, (st[stat.ST_ATIME], st[stat.ST_MTIME])) os.chmod(dst, mode)
if hasattr(os, 'utime'): os.utime(dst, (st[stat.ST_ATIME], st[stat.ST_MTIME])) if hasattr(os, 'chmod'): os.chmod(dst, mode)
def copystat(src, dst): """Copy all stat info (mode bits, atime and mtime) from src to dst""" st = os.stat(src) mode = stat.S_IMODE(st[stat.ST_MODE]) os.utime(dst, (st[stat.ST_ATIME], st[stat.ST_MTIME])) os.chmod(dst, mode)
27f410fe7fc3510002f55d8f913a5013585914a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/27f410fe7fc3510002f55d8f913a5013585914a9/shutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6529, 1094, 270, 12, 4816, 16, 3046, 4672, 3536, 2951, 777, 610, 1123, 261, 3188, 4125, 16, 622, 494, 471, 13158, 13, 628, 1705, 358, 3046, 8395, 384, 273, 1140, 18, 5642, 12, 4816, 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, 6529, 1094, 270, 12, 4816, 16, 3046, 4672, 3536, 2951, 777, 610, 1123, 261, 3188, 4125, 16, 622, 494, 471, 13158, 13, 628, 1705, 358, 3046, 8395, 384, 273, 1140, 18, 5642, 12, 4816, 13...
if workspace_id: workspace = Workspace.objects.get(pk = workspace_id) else: workspace = request.session['workspace']
workspace = request.session['workspace']
def load_items(request, view_type=None, unlimited=False, ): from datetime import datetime try: user = User.objects.get(pk=request.session['_auth_user_id']) workspace_id = request.POST.get('workspace_id') if workspace_id: workspace = Workspace.objects.get(pk = workspace_id) else: workspace = request.session['workspace...
83623b0cd87593f0127f08622b9169901fd01de0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4589/83623b0cd87593f0127f08622b9169901fd01de0/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 3319, 12, 2293, 16, 1476, 67, 723, 33, 7036, 16, 640, 21325, 33, 8381, 16, 262, 30, 628, 3314, 1930, 3314, 775, 30, 729, 273, 2177, 18, 6911, 18, 588, 12, 5465, 33, 2293, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3319, 12, 2293, 16, 1476, 67, 723, 33, 7036, 16, 640, 21325, 33, 8381, 16, 262, 30, 628, 3314, 1930, 3314, 775, 30, 729, 273, 2177, 18, 6911, 18, 588, 12, 5465, 33, 2293, ...
print >> sys.stderr, "REPLACING SOMETHING", replacement, shape_feature.shape_of[replacement]
def local_track_shape_i(node): try: shape_feature = node.env.shape_feature except: return if node in shape_feature.scheduled: assert isinstance(node.op, Shape_i) replacement = shape_feature.scheduled[node] #if len(shape_feature.shape_of[replacement])!=1: #import pdb;pdb.set_trace() print >> sys.stderr, "REPLACING SOMET...
f11ce936e1a3a07373542b1852bf0b60de28fb9f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/f11ce936e1a3a07373542b1852bf0b60de28fb9f/opt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1191, 67, 4101, 67, 4867, 67, 77, 12, 2159, 4672, 775, 30, 2179, 67, 7238, 273, 756, 18, 3074, 18, 4867, 67, 7238, 1335, 30, 327, 309, 756, 316, 2179, 67, 7238, 18, 23307, 30, 1815, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1191, 67, 4101, 67, 4867, 67, 77, 12, 2159, 4672, 775, 30, 2179, 67, 7238, 273, 756, 18, 3074, 18, 4867, 67, 7238, 1335, 30, 327, 309, 756, 316, 2179, 67, 7238, 18, 23307, 30, 1815, ...
name = self._read_string() length = self._unpack_int() if length == 0: length = None
name = self._unpack_string() length = self._unpack_int() or None
def _dim_array(self): """Read a dict with dimensions names and sizes.""" assert self.read(4) in [ZERO, NC_DIMENSION] count = self._unpack_int()
10f173ae17d920e2e13f35ad760832641e6b4a35 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/10f173ae17d920e2e13f35ad760832641e6b4a35/pupynere.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3509, 67, 1126, 12, 2890, 4672, 3536, 1994, 279, 2065, 598, 5769, 1257, 471, 8453, 12123, 1815, 365, 18, 896, 12, 24, 13, 316, 306, 24968, 16, 423, 39, 67, 2565, 958, 3156, 1146, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 3509, 67, 1126, 12, 2890, 4672, 3536, 1994, 279, 2065, 598, 5769, 1257, 471, 8453, 12123, 1815, 365, 18, 896, 12, 24, 13, 316, 306, 24968, 16, 423, 39, 67, 2565, 958, 3156, 1146, ...
if self.offset == 0: gl.color(0x800)
if gl.getdisplaymode() in (DMRGB, DMRGBDOUBLE): gl.RGBcolor(200, 200, 200)
def clear(self): if not self.colormapinited: raise CallError if self.offset == 0: gl.color(0x800) gl.clear() else: gl.clear()
4526f379bca5695b2144f1142f6a524d77bb7fe4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/4526f379bca5695b2144f1142f6a524d77bb7fe4/VFile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 12, 2890, 4672, 309, 486, 365, 18, 1293, 18804, 2738, 329, 30, 1002, 3049, 668, 309, 5118, 18, 588, 5417, 3188, 1435, 316, 261, 16125, 11343, 16, 30072, 11343, 17088, 4672, 5118, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2424, 12, 2890, 4672, 309, 486, 365, 18, 1293, 18804, 2738, 329, 30, 1002, 3049, 668, 309, 5118, 18, 588, 5417, 3188, 1435, 316, 261, 16125, 11343, 16, 30072, 11343, 17088, 4672, 5118, 1...
def _domain_force_get(self, cr, uid, ids, field_name, arg, context={}): res = {} for rule in self.browse(cr, uid, ids, context): eval_user_data = {'user': self.pool.get('res.users').browse(cr, 1, uid), 'time':time}
def __domain_calc(self, rule_dic, eval_data): """ Calculate the domain expression for some rule. @rule_dic is a dictionary with rule{'domain_force', 'operand', 'operator', 'field_name'} @eval_data a dictionary with context for eval() """
def _domain_force_get(self, cr, uid, ids, field_name, arg, context={}): res = {} for rule in self.browse(cr, uid, ids, context): eval_user_data = {'user': self.pool.get('res.users').browse(cr, 1, uid), 'time':time} res[rule.id] = eval(rule.domain_force, eval_user_data) return res
65b0532819da3241475c4413dd488cdff4c0736e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/65b0532819da3241475c4413dd488cdff4c0736e/ir_rule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4308, 67, 12448, 12, 2890, 16, 1720, 67, 15859, 16, 5302, 67, 892, 4672, 3536, 9029, 326, 2461, 2652, 364, 2690, 1720, 18, 632, 5345, 67, 15859, 353, 279, 3880, 598, 1720, 27828, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4308, 67, 12448, 12, 2890, 16, 1720, 67, 15859, 16, 5302, 67, 892, 4672, 3536, 9029, 326, 2461, 2652, 364, 2690, 1720, 18, 632, 5345, 67, 15859, 353, 279, 3880, 598, 1720, 27828, ...
self.ufeed.invalidate_counts()
self.ufeed.recalc_counts()
def update_finished(self): """ Called by subclasses to finish the update. """ if self.initialUpdate: self.initialUpdate = False startfrom = None itemToUpdate = None for latest in models.Item.latest_in_feed_view(self.ufeed_id): latest.eligibleForAutoDownload = True latest.signal_change() if self.ufeed.is_autodownloadabl...
c943da495a9f2a51d33403b0d27161b4e4dbd0e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/c943da495a9f2a51d33403b0d27161b4e4dbd0e2/feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 13527, 12, 2890, 4672, 3536, 11782, 635, 15320, 358, 4076, 326, 1089, 18, 3536, 309, 365, 18, 6769, 1891, 30, 365, 18, 6769, 1891, 273, 1083, 787, 2080, 273, 599, 761, 21267, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 13527, 12, 2890, 4672, 3536, 11782, 635, 15320, 358, 4076, 326, 1089, 18, 3536, 309, 365, 18, 6769, 1891, 30, 365, 18, 6769, 1891, 273, 1083, 787, 2080, 273, 599, 761, 21267, ...
found = self.investigateInspiral( trigCache.pfnlist(), inj, ifo, stage, self.number )
found = self.investigateInspiral( trigCache.pfnlist(), inj, ifo, \ stage, self.number )
def fillTable(page, contents ): """ Making life easier... """
97e32f7f2ca5cb3d7f0c99dedfdf52cb1afe6f09 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/97e32f7f2ca5cb3d7f0c99dedfdf52cb1afe6f09/followup_missed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3636, 1388, 12, 2433, 16, 2939, 262, 30, 3536, 490, 6159, 17140, 15857, 2777, 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, 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, 3636, 1388, 12, 2433, 16, 2939, 262, 30, 3536, 490, 6159, 17140, 15857, 2777, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
self.values = {} self.config = SafeConfigParser()
self.values = OrderedDict() self.config = RawConfigParser()
def __init__(self, path): self.path = path self.values = {} self.config = SafeConfigParser()
9a5b7260133c8c2517b2a381c513412b1a9969b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/9a5b7260133c8c2517b2a381c513412b1a9969b8/iniconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 589, 4672, 365, 18, 803, 273, 589, 365, 18, 2372, 273, 2618, 365, 18, 1425, 273, 14060, 809, 2678, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 589, 4672, 365, 18, 803, 273, 589, 365, 18, 2372, 273, 2618, 365, 18, 1425, 273, 14060, 809, 2678, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -10...
"""SMTP 'mail' command. Begins mail xfer session."""
"""SMTP 'mail' command -- begins mail xfer session."""
def mail(self,sender,options=[]): """SMTP 'mail' command. Begins mail xfer session.""" optionlist = '' if options and self.does_esmtp: optionlist = string.join(options, ' ') self.putcmd("mail", "FROM:%s %s" % (quoteaddr(sender) ,optionlist)) return self.getreply()
33277df4d8ce335176270f2501de2933739ddd3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/33277df4d8ce335176270f2501de2933739ddd3c/smtplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4791, 12, 2890, 16, 15330, 16, 2116, 33, 8526, 4672, 3536, 55, 14636, 296, 4408, 11, 1296, 1493, 17874, 4791, 619, 586, 1339, 12123, 1456, 1098, 273, 875, 309, 702, 471, 365, 18, 20657, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4791, 12, 2890, 16, 15330, 16, 2116, 33, 8526, 4672, 3536, 55, 14636, 296, 4408, 11, 1296, 1493, 17874, 4791, 619, 586, 1339, 12123, 1456, 1098, 273, 875, 309, 702, 471, 365, 18, 20657, ...
sage: print t1.to_cycles()
sage: t1.to_cycles()
def tau1(T1, T2, cells_map): r""" The definition of tau1 is: tau1 : T1 -> T1 tau1 = beta\^(-1)_2 beta_3 (composing left to right 000) where beta_i : T2 -> T1 changes just the i-th coordinate of a triple. EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: T1 = back_circulant(5) sage: x = isotopism( ...
79588eb9f6225f31a0fe90ef3cb590193d4561c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/79588eb9f6225f31a0fe90ef3cb590193d4561c1/latin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12284, 21, 12, 56, 21, 16, 399, 22, 16, 5983, 67, 1458, 4672, 436, 8395, 1021, 2379, 434, 12284, 21, 353, 30, 225, 12284, 21, 294, 399, 21, 317, 399, 21, 12284, 21, 273, 6796, 64, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12284, 21, 12, 56, 21, 16, 399, 22, 16, 5983, 67, 1458, 4672, 436, 8395, 1021, 2379, 434, 12284, 21, 353, 30, 225, 12284, 21, 294, 399, 21, 317, 399, 21, 12284, 21, 273, 6796, 64, ...
date_planned = (date_planned - relativedelta(company.security_lead)).strftime('%Y-%m-%d %H:%M:%S')
date_planned = (date_planned - timedelta(days=company.security_lead)).strftime('%Y-%m-%d %H:%M:%S')
def action_ship_create(self, cr, uid, ids, *args): picking_id = False company = self.pool.get('res.users').browse(cr, uid, uid).company_id for order in self.browse(cr, uid, ids, context={}): proc_ids = [] output_id = order.shop_id.warehouse_id.lot_output_id.id picking_id = False for line in order.order_line: proc_id = ...
d37ef0a57183ba5ed91064c8bbe32aea90f4a1d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d37ef0a57183ba5ed91064c8bbe32aea90f4a1d1/sale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1301, 67, 3261, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 6002, 310, 67, 350, 273, 1083, 9395, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 5577, 16063, 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, 1301, 67, 3261, 67, 2640, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 380, 1968, 4672, 6002, 310, 67, 350, 273, 1083, 9395, 273, 365, 18, 6011, 18, 588, 2668, 455, 18, 5577, 16063, 2...
if key != IHREAL:
if key != "IHREAL":
def setwarp(): "Change the warp factor." while True: key=scanner.next() if key != IHEOL: break scanner.chew() proutn(_("Warp factor- ")) scanner.chew() if key != IHREAL: huh() return if game.damage[DWARPEN] > 10.0: prout(_("Warp engines inoperative.")) return if damaged(DWARPEN) and scanner.real > 4.0: prout(_("Enginee...
af15867a294e48006eba4fd9997cae401ccbfb05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/af15867a294e48006eba4fd9997cae401ccbfb05/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 905, 84, 13332, 315, 3043, 326, 341, 11441, 5578, 1199, 1323, 1053, 30, 498, 33, 26842, 18, 4285, 1435, 309, 498, 480, 467, 3900, 1741, 30, 898, 7683, 18, 343, 359, 1435, 450, 322...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 905, 84, 13332, 315, 3043, 326, 341, 11441, 5578, 1199, 1323, 1053, 30, 498, 33, 26842, 18, 4285, 1435, 309, 498, 480, 467, 3900, 1741, 30, 898, 7683, 18, 343, 359, 1435, 450, 322...
pricetype_id = self.pool.get('product.pricelist').browse(cr, uid, pricelist_id).version_id[0].items_id[0].base field_name = self.pool.get('product.price.type').browse(cr, uid, pricetype_id).field
def get_real_price(pricelist_id, product_id): product_tmpl_id = self.pool.get('product.product').browse(cr, uid, product_id, context).product_tmpl_id.id pricetype_id = self.pool.get('product.pricelist').browse(cr, uid, pricelist_id).version_id[0].items_id[0].base field_name = self.pool.get('product.price.type').browse(...
09263c29730891dba703fcb1a2bfb60b2db55bf7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/09263c29730891dba703fcb1a2bfb60b2db55bf7/product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7688, 67, 8694, 12, 683, 335, 5449, 67, 350, 16, 3017, 67, 350, 4672, 3017, 67, 24717, 67, 350, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 5896, 16063, 25731, 12, 3353, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7688, 67, 8694, 12, 683, 335, 5449, 67, 350, 16, 3017, 67, 350, 4672, 3017, 67, 24717, 67, 350, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 5896, 16063, 25731, 12, 3353, 16...
def kmeans(self, pts, num_clusters, centers_init = "random", max_iterations = None,
def kmeans(self, pts, num_clusters, max_iterations = None,
def kmeans(self, pts, num_clusters, centers_init = "random", max_iterations = None, dtype = None, **kwargs): """ Runs kmeans on pts with num_clusters centroids. Returns a numpy array of size num_clusters x dim.
149ee94c322d8ffa93c01ab6dfa79f4c06d4755d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12913/149ee94c322d8ffa93c01ab6dfa79f4c06d4755d/index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 417, 18408, 12, 2890, 16, 13397, 16, 818, 67, 16806, 16, 943, 67, 19330, 273, 599, 16, 3182, 273, 599, 16, 2826, 4333, 4672, 3536, 1939, 87, 417, 18408, 603, 13397, 598, 818, 67, 16806...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 417, 18408, 12, 2890, 16, 13397, 16, 818, 67, 16806, 16, 943, 67, 19330, 273, 599, 16, 3182, 273, 599, 16, 2826, 4333, 4672, 3536, 1939, 87, 417, 18408, 603, 13397, 598, 818, 67, 16806...
w = [1]
w = [0] * N_over_d
def _coset_reduction_data_first_coord(G): """ Compute data used for determining the canonical coset representative of an element of SL_2(Z) modulo G. This function specfically returns data needed for the first part of the reduction step (the first coordinate).
7a1f047b64336e2196553d74196aafe4f02190df /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7a1f047b64336e2196553d74196aafe4f02190df/congroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14445, 278, 67, 1118, 4062, 67, 892, 67, 3645, 67, 5732, 12, 43, 4672, 3536, 8155, 501, 1399, 364, 23789, 326, 7378, 4987, 278, 23174, 434, 392, 930, 434, 348, 48, 67, 22, 12, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 14445, 278, 67, 1118, 4062, 67, 892, 67, 3645, 67, 5732, 12, 43, 4672, 3536, 8155, 501, 1399, 364, 23789, 326, 7378, 4987, 278, 23174, 434, 392, 930, 434, 348, 48, 67, 22, 12, 6...
decl_snippet = """
if hasattr(os, 'WCOREDUMP'): decl_snippet = """
def __init__(self): self.configure(CConfig)
88afe5583ccd4d0ab380c1124703143aa1d99f22 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/88afe5583ccd4d0ab380c1124703143aa1d99f22/ll_os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 14895, 12, 39, 809, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 14895, 12, 39, 809, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if value : self.DottedUnderline = True return self def SetDoubleUnderline( self, value ) :
if value: self.DottedUnderline = True return self def SetDoubleUnderline(self, value):
def SetDottedUnderline( self, value ) : self.DottedUnderline = False if value : self.DottedUnderline = True return self
13865299ef9bc077be9a5eaa4326b7a30307d828 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3330/13865299ef9bc077be9a5eaa4326b7a30307d828/PropertySets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 10412, 2344, 14655, 1369, 12, 365, 16, 460, 262, 294, 365, 18, 10412, 2344, 14655, 1369, 273, 1083, 309, 460, 294, 365, 18, 10412, 2344, 14655, 1369, 273, 1053, 327, 365, 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, 1000, 10412, 2344, 14655, 1369, 12, 365, 16, 460, 262, 294, 365, 18, 10412, 2344, 14655, 1369, 273, 1083, 309, 460, 294, 365, 18, 10412, 2344, 14655, 1369, 273, 1053, 327, 365, 2, -100, ...
>>> dump_tokens("x = 1 - y + 15 - 01 + 0x124 + z + a[5]")
>>> dump_tokens("x = 1 - y + 15 - 1 + 0x124 + z + a[5]")
>>> dump_tokens("def d01v_(a=1, *k, **w): pass")
06160749de86348e8e0743d0ff468f96f0c89d4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/06160749de86348e8e0743d0ff468f96f0c89d4c/test_tokenize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4080, 4657, 67, 7860, 2932, 536, 302, 1611, 90, 67, 12, 69, 33, 21, 16, 380, 79, 16, 2826, 91, 4672, 1342, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4080, 4657, 67, 7860, 2932, 536, 302, 1611, 90, 67, 12, 69, 33, 21, 16, 380, 79, 16, 2826, 91, 4672, 1342, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
new_password = forms.CharField(widget = forms.PasswordInput(),
new_password = forms.CharField(widget = forms.PasswordInput(),
def is_separator(self): return True
5ce365bd98826a8f4bb5c26c201e1750fca7e24f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11563/5ce365bd98826a8f4bb5c26c201e1750fca7e24f/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 11287, 12, 2890, 4672, 327, 1053, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 11287, 12, 2890, 4672, 327, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
return C(log_pari)
r, i = C(log_pari) wR, wI = E.period_lattice(emb).basis(prec=precision) k = (r/wR).floor() if k: r -= k*wR if self.is_on_identity_component(emb): return C(r) return C(r)+C(wI/2)
def elliptic_logarithm(self, embedding=None, precision=100, algorithm='pari'): """ Returns the elliptic logarithm of this elliptic curve point.
4af7cab0ea14839a0f0075ec0490074db7cd7fb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/4af7cab0ea14839a0f0075ec0490074db7cd7fb4/ell_point.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 415, 549, 21507, 67, 1330, 31249, 12, 2890, 16, 15853, 33, 7036, 16, 6039, 33, 6625, 16, 4886, 2218, 1065, 77, 11, 4672, 3536, 2860, 326, 415, 549, 21507, 613, 31249, 434, 333, 415, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 415, 549, 21507, 67, 1330, 31249, 12, 2890, 16, 15853, 33, 7036, 16, 6039, 33, 6625, 16, 4886, 2218, 1065, 77, 11, 4672, 3536, 2860, 326, 415, 549, 21507, 613, 31249, 434, 333, 415, 54...
version="0.3.3",
version="0.3.4",
def read(*rnames): return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
9b8326fdd3862a430219855b300a0e886272361b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4360/9b8326fdd3862a430219855b300a0e886272361b/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 30857, 86, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 86, 1973, 13, 2934, 896, 1435, 225, 2, 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, 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, 855, 30857, 86, 1973, 4672, 327, 1696, 12, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 3631, 380, 86, 1973, 13, 2934, 896, 1435, 225, 2, -100, -100, -100,...
opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:",
opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:l",
def main(argv = None): import getopt if argv is None: argv = sys.argv try: opts, prog_argv = getopt.getopt(argv[1:], "tcrRf:d:msC:", ["help", "version", "trace", "count", "report", "no-report", "file=", "logdir=", "missing", "ignore-module=", "ignore-dir=", "coverdir="]) except getopt.error, msg: print >> sys.stderr,...
c477681c3a8034551a1e2f52cb1b8688b955b46f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c477681c3a8034551a1e2f52cb1b8688b955b46f/trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 273, 599, 4672, 1930, 336, 3838, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 1500, 16, 11243, 67, 19485, 273, 336, 3838, 18, 588, 3838, 12, 1948...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 19485, 273, 599, 4672, 1930, 336, 3838, 225, 309, 5261, 353, 599, 30, 5261, 273, 2589, 18, 19485, 775, 30, 1500, 16, 11243, 67, 19485, 273, 336, 3838, 18, 588, 3838, 12, 1948...
self._update_keymap(evt.first_keycode, evt.count)
if evt.request == X.MappingKeyboard: self._update_keymap(evt.first_keycode, evt.count)
def refresh_keyboard_mapping(self, evt): """This method should be called once when a MappingNotify event is received, to update the keymap cache. evt should be the event object."""
435ffe862c8b107003d1a52c49c6728e8d41c424 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8084/435ffe862c8b107003d1a52c49c6728e8d41c424/display.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 67, 31486, 67, 6770, 12, 2890, 16, 6324, 4672, 3536, 2503, 707, 1410, 506, 2566, 3647, 1347, 279, 9408, 9168, 871, 353, 5079, 16, 358, 1089, 326, 498, 1458, 1247, 18, 6324, 1410, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4460, 67, 31486, 67, 6770, 12, 2890, 16, 6324, 4672, 3536, 2503, 707, 1410, 506, 2566, 3647, 1347, 279, 9408, 9168, 871, 353, 5079, 16, 358, 1089, 326, 498, 1458, 1247, 18, 6324, 1410, ...
(opt.timeout, opt.health_timeout))
(self.timeout, self.health_timeout))
def ApplyCongestionFactor(self, multiplier): self.timeout *= multiplier self.health_timeout *= multiplier print ('* General timeout is now %.1fs, Health timeout is now %.1fs' % (opt.timeout, opt.health_timeout))
ea61463e8a6101d228fb573b57f461ccfed2f48d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4170/ea61463e8a6101d228fb573b57f461ccfed2f48d/nameserver_list.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5534, 442, 75, 6868, 6837, 12, 2890, 16, 15027, 4672, 365, 18, 4538, 6413, 15027, 365, 18, 13267, 67, 4538, 6413, 15027, 1172, 7707, 14, 9544, 2021, 353, 2037, 12639, 21, 2556, 16, 11745...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5534, 442, 75, 6868, 6837, 12, 2890, 16, 15027, 4672, 365, 18, 4538, 6413, 15027, 365, 18, 13267, 67, 4538, 6413, 15027, 1172, 7707, 14, 9544, 2021, 353, 2037, 12639, 21, 2556, 16, 11745...
textcolor(DEFAULT)
textcolor(None)
def mayday(): # yell for help from nearest starbase # There's more than one way to move in this game! line = 0 chew() # Test for conditions which prevent calling for help if game.condition == "docked": prout(_("Lt. Uhura- \"But Captain, we're already docked.\"")) return if damaged(DRADIO): prout(_("Subspace radio dama...
f193d8f46652803cac87ddebc7593774a27b552c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/f193d8f46652803cac87ddebc7593774a27b552c/sst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2026, 2881, 13332, 468, 677, 1165, 364, 2809, 628, 11431, 10443, 1969, 468, 6149, 1807, 1898, 2353, 1245, 4031, 358, 3635, 316, 333, 7920, 5, 980, 273, 374, 462, 359, 1435, 468, 7766, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2026, 2881, 13332, 468, 677, 1165, 364, 2809, 628, 11431, 10443, 1969, 468, 6149, 1807, 1898, 2353, 1245, 4031, 358, 3635, 316, 333, 7920, 5, 980, 273, 374, 462, 359, 1435, 468, 7766, 36...
def __init__(self, name, series_dir, refs_dir): self.__series_dir = series_dir self.__name = name self.__dir = os.path.join(self.__series_dir, self.__name) self.__refs_dir = refs_dir self.__top_ref_file = os.path.join(self.__refs_dir, self.__name) self.__log_ref_file = os.path.join(self.__refs_dir, self.__name + '.log'...
def _set_dir(self, dir): self.__dir = dir def _dir(self): return self.__dir def create_empty_field(self, name): create_empty_file(os.path.join(self.__dir, name)) def _get_field(self, name, multiline = False):
def __init__(self, name, series_dir, refs_dir): self.__series_dir = series_dir self.__name = name self.__dir = os.path.join(self.__series_dir, self.__name) self.__refs_dir = refs_dir self.__top_ref_file = os.path.join(self.__refs_dir, self.__name) self.__log_ref_file = os.path.join(self.__refs_dir, self.__name + '.log'...
8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12366/8fe7e9f08ae6fe49cec66a8034e8495cbf77c6f3/stack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 4166, 67, 1214, 16, 9047, 67, 1214, 4672, 365, 16186, 10222, 67, 1214, 273, 4166, 67, 1214, 365, 16186, 529, 273, 508, 365, 16186, 1214, 273, 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, 1001, 2738, 972, 12, 2890, 16, 508, 16, 4166, 67, 1214, 16, 9047, 67, 1214, 4672, 365, 16186, 10222, 67, 1214, 273, 4166, 67, 1214, 365, 16186, 529, 273, 508, 365, 16186, 1214, 273, 11...
raise Error('cannot upack tarball with InputSandbox')
raise Exception('cannot upack tarball %s with InputSandbox'%tgzfile)
def getPackedInputSandbox(tarpath,dest_dir='.'): """Get all sandbox_files from tarball and write them to the workdir. This function is called by wrapper script at the run time. Arguments: 'tarpath': a path to the tarball 'dest_dir': a destination directory """ #tgzfile = os.path.join(src_dir,INPUT_TARBALL_NAME) tgzfil...
87003da009f3dbe1629e2fd2971d80aaad71ee07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/87003da009f3dbe1629e2fd2971d80aaad71ee07/WNSandbox.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30401, 329, 1210, 17881, 12, 11718, 803, 16, 10488, 67, 1214, 2218, 1093, 4672, 3536, 967, 777, 15202, 67, 2354, 628, 29441, 471, 1045, 2182, 358, 326, 22231, 18, 1220, 445, 353, 2566, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 30401, 329, 1210, 17881, 12, 11718, 803, 16, 10488, 67, 1214, 2218, 1093, 4672, 3536, 967, 777, 15202, 67, 2354, 628, 29441, 471, 1045, 2182, 358, 326, 22231, 18, 1220, 445, 353, 2566, 6...
time.sleep(1)
sleep(1)
def reconnect(self): self.parent.logger.info(_("Starting reconnect")) ip = re.match(".*Current IP Address: (.*)</body>.*", getURL("http://checkip.dyndns.org/")).group(1) self.parent.hookManager.beforeReconnecting(ip) reconn = subprocess.Popen(self.parent.config['reconnect']['method'])#, stdout=subprocess.PIPE) reconn.w...
2bced4f3d36304a614392dc703d32eb372e73e68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/2bced4f3d36304a614392dc703d32eb372e73e68/ThreadManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11812, 12, 2890, 4672, 365, 18, 2938, 18, 4901, 18, 1376, 24899, 2932, 11715, 11812, 6, 3719, 2359, 273, 283, 18, 1916, 2932, 4509, 3935, 2971, 5267, 30, 29049, 13, 1757, 3432, 34, 4509,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11812, 12, 2890, 4672, 365, 18, 2938, 18, 4901, 18, 1376, 24899, 2932, 11715, 11812, 6, 3719, 2359, 273, 283, 18, 1916, 2932, 4509, 3935, 2971, 5267, 30, 29049, 13, 1757, 3432, 34, 4509,...
if key not in exclude: form[key] = value
if key[0] == ';': continue if isinstance(value, tuple) and len(value) == 3: continue if key in exclude: continue form[key] = value
def come_back(self, message, goto=None, exclude=[], **kw): """ This is a handy method that builds a URI object from some parameters. It exists to make short some common patterns. """ # By default we come back to the referrer if goto is None: goto = self.request.referrer elif isinstance(goto, str): goto = uri.get_refere...
2675eeb822179959107ebd6923d92a9650cbf240 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/2675eeb822179959107ebd6923d92a9650cbf240/context.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12404, 67, 823, 12, 2890, 16, 883, 16, 2897, 33, 7036, 16, 4433, 22850, 6487, 2826, 9987, 4672, 3536, 1220, 353, 279, 948, 93, 707, 716, 10736, 279, 3699, 733, 628, 2690, 1472, 18, 259...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12404, 67, 823, 12, 2890, 16, 883, 16, 2897, 33, 7036, 16, 4433, 22850, 6487, 2826, 9987, 4672, 3536, 1220, 353, 279, 948, 93, 707, 716, 10736, 279, 3699, 733, 628, 2690, 1472, 18, 259...
raise IOError("Unable to modify Virtual Filesystem")
raise FuseError("Unable to modify Virtual Filesystem")
def mknod(self, path, mode, dev): raise IOError("Unable to modify Virtual Filesystem")
7d65d651f8f8c6336ef360445855945acade1ccb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5568/7d65d651f8f8c6336ef360445855945acade1ccb/pyflag_fuse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5028, 19888, 12, 2890, 16, 589, 16, 1965, 16, 4461, 4672, 1002, 478, 1202, 668, 2932, 3370, 358, 5612, 7269, 11205, 7923, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5028, 19888, 12, 2890, 16, 589, 16, 1965, 16, 4461, 4672, 1002, 478, 1202, 668, 2932, 3370, 358, 5612, 7269, 11205, 7923, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
p = Parser(Message.Message) msg = p.parse(fp)
msg = readMessage(path)
def __handlepost(self, record, value, comment, preserve, forward, addr): # For backwards compatibility with pre 2.0beta3 ptime, sender, subject, reason, filename, msgdata = record path = os.path.join(mm_cfg.DATA_DIR, filename) # Handle message preservation if preserve: parts = os.path.split(path)[1].split(DASH) parts[0...
bf085df4303c04c3c6e04d0192ad0fff5f9fb230 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/bf085df4303c04c3c6e04d0192ad0fff5f9fb230/ListAdmin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4110, 2767, 12, 2890, 16, 1409, 16, 460, 16, 2879, 16, 9420, 16, 5104, 16, 3091, 4672, 468, 2457, 12727, 8926, 598, 675, 576, 18, 20, 5758, 23, 293, 957, 16, 5793, 16, 3221, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4110, 2767, 12, 2890, 16, 1409, 16, 460, 16, 2879, 16, 9420, 16, 5104, 16, 3091, 4672, 468, 2457, 12727, 8926, 598, 675, 576, 18, 20, 5758, 23, 293, 957, 16, 5793, 16, 3221, 16...
another. `other' must have an .iterator() method.
another. `other` must have an .iterator() method.
def copyTransactionsFrom(self, other, verbose=0): """Copy transactions from another storage.
65df37866a84d3f5048116931d5872c773f2956a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/65df37866a84d3f5048116931d5872c773f2956a/BaseStorage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 14186, 1265, 12, 2890, 16, 1308, 16, 3988, 33, 20, 4672, 3536, 2951, 8938, 628, 4042, 2502, 18, 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, 1610, 14186, 1265, 12, 2890, 16, 1308, 16, 3988, 33, 20, 4672, 3536, 2951, 8938, 628, 4042, 2502, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
"""Copies list of mod files to clipboard.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_("List Mods...")) menu.AppendItem(menuItem) def Execute(self,event): text = bosh.modInfos.getModList() if (wx.TheClipboard.Open()): wx.TheClipboard.SetDat...
"""Copies list of mod files to clipboard.""" def AppendToMenu(self,menu,window,data): Link.AppendToMenu(self,menu,window,data) menuItem = wx.MenuItem(menu,self.id,_("List Mods...")) menu.AppendItem(menuItem) def Execute(self,event): text = bosh.modInfos.getModList() if (wx.TheClipboard.Open()): wx.TheClipboard.SetDat...
def Execute(self,event): """Handle menu selection.""" window = getattr(self,'gTank',None) or self.window #--Continue Query message = _("Apply an ini tweak to Fallout3.ini?\n\nWARNING: Incorrect tweaks can result in CTDs and even damage to you computer!") if not balt.askContinue(window,message,'bash.iniTweaks.continue',...
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 3536, 3259, 3824, 4421, 12123, 2742, 273, 3869, 12, 2890, 11189, 75, 56, 2304, 2187, 7036, 13, 578, 365, 18, 5668, 468, 413, 12378, 2770, 883, 273, 389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7903, 12, 2890, 16, 2575, 4672, 3536, 3259, 3824, 4421, 12123, 2742, 273, 3869, 12, 2890, 11189, 75, 56, 2304, 2187, 7036, 13, 578, 365, 18, 5668, 468, 413, 12378, 2770, 883, 273, 389, ...
if url == 'extra' and self.extra is not None:
if url == 'xdv:extra' and self.extra is not None:
def resolve(self, url, pubid, context): if url == 'rules': return self.resolve_string(self.rules, context) if url == 'extra' and self.extra is not None: return self.resolve_string(self.extra, context)
7cba8be7ac9eecc31e6d809c3c3a2b151d9ac280 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12188/7cba8be7ac9eecc31e6d809c3c3a2b151d9ac280/compiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 12, 2890, 16, 880, 16, 5634, 350, 16, 819, 4672, 309, 880, 422, 296, 7482, 4278, 327, 365, 18, 10828, 67, 1080, 12, 2890, 18, 7482, 16, 819, 13, 309, 880, 422, 296, 7669, 90, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2890, 16, 880, 16, 5634, 350, 16, 819, 4672, 309, 880, 422, 296, 7482, 4278, 327, 365, 18, 10828, 67, 1080, 12, 2890, 18, 7482, 16, 819, 13, 309, 880, 422, 296, 7669, 90, ...
else: wx.CallAfter(self.findDefinitionFinished, match, sel, defs)
def findDefinitionThread(self, ctx, filename, lineno, column, sel): try: defs = ctx.findDefinitionByCoordinates(filename, lineno, column) try: match = defs.next() except StopIteration: wx.CallAfter(wx.LogError, _("Couldn't find definition")) wx.CallAfter(self.model.editor.setStatus, _('BRM - Could not find definition')...
a283eca72df1693fa0cb4bce246fb7fb9e40dfe5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4325/a283eca72df1693fa0cb4bce246fb7fb9e40dfe5/BicycleRepairMan.plug-in.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 1852, 3830, 12, 2890, 16, 1103, 16, 1544, 16, 7586, 16, 1057, 16, 357, 4672, 775, 30, 17588, 273, 1103, 18, 4720, 1852, 858, 13431, 12, 3459, 16, 7586, 16, 1057, 13, 775, 30, 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, 1104, 1852, 3830, 12, 2890, 16, 1103, 16, 1544, 16, 7586, 16, 1057, 16, 357, 4672, 775, 30, 17588, 273, 1103, 18, 4720, 1852, 858, 13431, 12, 3459, 16, 7586, 16, 1057, 13, 775, 30, 8...
find_file(['/usr/include', '/usr/local/include'] + self.include_dirs, 'db_185.h') ):
find_file(inc_dirs, 'db_185.h') ):
def detect_modules(self): # XXX this always gets an empty list -- hardwiring to # a fixed list lib_dirs = self.compiler.library_dirs[:] lib_dirs += ['/lib', '/usr/lib', '/usr/local/lib'] exts = []
158a3d315561e40124b1fe947d545ed978d9fe78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/158a3d315561e40124b1fe947d545ed978d9fe78/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 11329, 333, 3712, 5571, 392, 1008, 666, 1493, 7877, 91, 11256, 358, 468, 279, 5499, 666, 2561, 67, 8291, 273, 365, 18, 9576, 18, 12083, 67, 8291, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 11329, 333, 3712, 5571, 392, 1008, 666, 1493, 7877, 91, 11256, 358, 468, 279, 5499, 666, 2561, 67, 8291, 273, 365, 18, 9576, 18, 12083, 67, 8291, 1...
while self.__reading_thread and self.__reading_thread.is_alive():
while self.__reading_thread and self.__reading_thread.is_active():
def close(self): # free parsed data if not self.is_opened(): return self.__open_status = False
99c31ae5bbd5f607698f28c5685c2eaf6283802b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11669/99c31ae5bbd5f607698f28c5685c2eaf6283802b/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 468, 4843, 2707, 501, 309, 486, 365, 18, 291, 67, 25304, 13332, 327, 365, 16186, 3190, 67, 2327, 273, 1083, 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, 1746, 12, 2890, 4672, 468, 4843, 2707, 501, 309, 486, 365, 18, 291, 67, 25304, 13332, 327, 365, 16186, 3190, 67, 2327, 273, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
substitute_var = getSubstitute(v.value)
substitute_vars = getSubstitute(v.value,skip_list) if not substitute_vars: break
def resolveGlobalVars(self, wf_parameters=None, step_parameters=None): """This function resolves global parameters of type @{value} within the ParameterCollection """
57c65312adb66a59a7366d76a3182a3b9364f020 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/57c65312adb66a59a7366d76a3182a3b9364f020/Parameter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 5160, 5555, 12, 2890, 16, 11578, 67, 3977, 33, 7036, 16, 2235, 67, 3977, 33, 7036, 4672, 3536, 2503, 445, 17385, 2552, 1472, 434, 618, 632, 95, 1132, 97, 3470, 326, 5498, 2532, 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, 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, 2245, 5160, 5555, 12, 2890, 16, 11578, 67, 3977, 33, 7036, 16, 2235, 67, 3977, 33, 7036, 4672, 3536, 2503, 445, 17385, 2552, 1472, 434, 618, 632, 95, 1132, 97, 3470, 326, 5498, 2532, 3...
raise self.failureException, \ (msg or '%r != %r' % (first, second))
raise self.failureException(msg or '%r != %r' % (first, second))
def failUnlessEqual(self, first, second, msg=None): """Fail if the two objects are unequal as determined by the '==' operator. """ if not first == second: raise self.failureException, \ (msg or '%r != %r' % (first, second))
dae1a6a4889a67d29c7e1638472625cc4ca3cdf3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/dae1a6a4889a67d29c7e1638472625cc4ca3cdf3/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2321, 984, 2656, 5812, 12, 2890, 16, 1122, 16, 2205, 16, 1234, 33, 7036, 4672, 3536, 3754, 309, 326, 2795, 2184, 854, 640, 9729, 487, 11383, 635, 326, 22853, 3726, 18, 3536, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2321, 984, 2656, 5812, 12, 2890, 16, 1122, 16, 2205, 16, 1234, 33, 7036, 4672, 3536, 3754, 309, 326, 2795, 2184, 854, 640, 9729, 487, 11383, 635, 326, 22853, 3726, 18, 3536, 309, 486, ...
self.win.vRTotal.text = res.formatTime(total)
if total == 0: self.win.vRTotal.text = _("N/A") else: self.win.vRTotal.text = res.formatTime(total)
def show(self): player = client.getPlayer() # title self.win.vRQueueTitle.text = _('Research queue [%d pts/turn]') % ( player.effSciPoints, ) self.win.title = _("Research [TL%d]") % player.techLevel # Known techs items = [] #~researchable = {} disabled = [] taskIDs = {} for task in player.rsrchQueue: taskIDs[task.techI...
00d22e77ca9bec3f2597fad4e769647907a7f3b8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/503/00d22e77ca9bec3f2597fad4e769647907a7f3b8/ResearchDlg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 4672, 7291, 273, 1004, 18, 588, 12148, 1435, 468, 2077, 365, 18, 8082, 18, 90, 54, 3183, 4247, 18, 955, 273, 389, 2668, 607, 73, 991, 2389, 9799, 72, 13397, 19, 20922, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 4672, 7291, 273, 1004, 18, 588, 12148, 1435, 468, 2077, 365, 18, 8082, 18, 90, 54, 3183, 4247, 18, 955, 273, 389, 2668, 607, 73, 991, 2389, 9799, 72, 13397, 19, 20922, ...
return 0
return False
def _do_cmp(f1, f2): bufsize = BUFSIZE fp1 = open(f1, 'rb') fp2 = open(f2, 'rb') while 1: b1 = fp1.read(bufsize) b2 = fp2.read(bufsize) if b1 != b2: return 0 if not b1: return 1
05595e9d73b2c05fcd9492cf8f5d126282b82053 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/05595e9d73b2c05fcd9492cf8f5d126282b82053/filecmp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 9625, 12, 74, 21, 16, 284, 22, 4672, 1681, 1467, 273, 10937, 42, 4574, 4253, 21, 273, 1696, 12, 74, 21, 16, 296, 6731, 6134, 4253, 22, 273, 1696, 12, 74, 22, 16, 296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 9625, 12, 74, 21, 16, 284, 22, 4672, 1681, 1467, 273, 10937, 42, 4574, 4253, 21, 273, 1696, 12, 74, 21, 16, 296, 6731, 6134, 4253, 22, 273, 1696, 12, 74, 22, 16, 296...
def read(self, size=1024): if not self.readable(): raise m2.Error("write-only") if self.closed or size<=0: return '' try: return m2.bio_read(self.bio, size) except RuntimeError: return ''
def read(self, size=4096): if not self.readable(): raise m2.Error("write-only") if self.closed or size<=0: return '' try: return m2.bio_read(self.bio, size) except RuntimeError: return ''
def read(self, size=1024): if not self.readable(): raise m2.Error("write-only") if self.closed or size<=0: return '' try: return m2.bio_read(self.bio, size) except RuntimeError: # XXX better error handling return ''
52768953b32ebd1acf4ab8995564ff0e0957a506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/52768953b32ebd1acf4ab8995564ff0e0957a506/BIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 963, 33, 2163, 3247, 4672, 309, 486, 365, 18, 11018, 13332, 1002, 312, 22, 18, 668, 2932, 2626, 17, 3700, 7923, 309, 365, 18, 12204, 578, 963, 32, 33, 20, 30, 327,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 963, 33, 2163, 3247, 4672, 309, 486, 365, 18, 11018, 13332, 1002, 312, 22, 18, 668, 2932, 2626, 17, 3700, 7923, 309, 365, 18, 12204, 578, 963, 32, 33, 20, 30, 327,...
'number_IBZ_kpoints'])
'number_IBZ_kpoints'], ncvars=[])
def set_kpts(self, kpts): ''' set the kpt grid.
28c3f2a245341cd8f82e1ffe9c9883dad13198ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/28c3f2a245341cd8f82e1ffe9c9883dad13198ad/jacapo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 79, 1092, 12, 2890, 16, 417, 1092, 4672, 9163, 444, 326, 417, 337, 3068, 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,...
[ 1, 1, 1, 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, 444, 67, 79, 1092, 12, 2890, 16, 417, 1092, 4672, 9163, 444, 326, 417, 337, 3068, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
installer = path.joinpath(source_path,path('installer')) if not installer.exists(): os.mkdir(installer)
os.mkdir(path.joinpath(source_path,path('installer')))
def installer(): ''' Right now this only makes a installer folder in the source dir ''' installer = path.joinpath(source_path,path('installer')) if not installer.exists(): os.mkdir(installer)
4452954ce1587acd9e2eec6bbf99e921c8594509 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3279/4452954ce1587acd9e2eec6bbf99e921c8594509/pavement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16050, 13332, 9163, 13009, 2037, 333, 1338, 7297, 279, 16050, 3009, 316, 326, 1084, 1577, 9163, 1140, 18, 26686, 12, 803, 18, 5701, 803, 12, 3168, 67, 803, 16, 803, 2668, 20163, 11, 2034...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16050, 13332, 9163, 13009, 2037, 333, 1338, 7297, 279, 16050, 3009, 316, 326, 1084, 1577, 9163, 1140, 18, 26686, 12, 803, 18, 5701, 803, 12, 3168, 67, 803, 16, 803, 2668, 20163, 11, 2034...
_write_data(writer, "<![CDATA[%s]]>" % self.data)
writer.write("<![CDATA[%s]]>" % self.data)
def writexml(self, writer, indent="", addindent="", newl=""): _write_data(writer, "<![CDATA[%s]]>" % self.data)
f5189e97178b0c77d23ec419bbcecbb5600b18e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f5189e97178b0c77d23ec419bbcecbb5600b18e7/minidom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 338, 781, 12, 2890, 16, 2633, 16, 3504, 1546, 3113, 527, 9355, 1546, 3113, 394, 80, 1546, 6, 4672, 389, 2626, 67, 892, 12, 6299, 16, 3532, 5, 63, 18375, 14451, 87, 13563, 2984, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 338, 781, 12, 2890, 16, 2633, 16, 3504, 1546, 3113, 527, 9355, 1546, 3113, 394, 80, 1546, 6, 4672, 389, 2626, 67, 892, 12, 6299, 16, 3532, 5, 63, 18375, 14451, 87, 13563, 2984, ...
logger.Error(errorstring)
logging.error(errorstring)
def CreateBlockDevice(disk, size, owner, on_primary, info): """Creates a block device for an instance. Args: disk: a ganeti.objects.Disk object size: the size of the physical underlying device owner: a string with the name of the instance on_primary: a boolean indicating if it is the primary node or not info: string t...
18682bca5711b7b492aeb3cd3a550087f1413e0b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/18682bca5711b7b492aeb3cd3a550087f1413e0b/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1788, 1768, 3654, 12, 10863, 16, 963, 16, 3410, 16, 603, 67, 8258, 16, 1123, 4672, 3536, 2729, 279, 1203, 2346, 364, 392, 791, 18, 225, 6634, 30, 4234, 30, 279, 314, 304, 278, 77, 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, 1788, 1768, 3654, 12, 10863, 16, 963, 16, 3410, 16, 603, 67, 8258, 16, 1123, 4672, 3536, 2729, 279, 1203, 2346, 364, 392, 791, 18, 225, 6634, 30, 4234, 30, 279, 314, 304, 278, 77, 18...
labelList=string.splitfields(labelline)
labelList=labelline.split()
def _data_map(labelline):
b6f4304a9e1c98ac4ed81730027b28d8219fd7b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/b6f4304a9e1c98ac4ed81730027b28d8219fd7b6/NOEtools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 892, 67, 1458, 12, 1925, 1369, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 892, 67, 1458, 12, 1925, 1369, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
customMsgBox(self, '%s:\n%s\n%s' % sys.exc_info(), 'error')
customMsgBox(self, '%s:\n%s\n%s' % sys.exc_info(), 'error')
def on_file_remove(self, event): if self.project <> None: item = self.tree.GetSelection() file = self.tree.GetItemText(item) if item != self.root and self.activeitem != self.root: self.tree.Delete(item) self.project.remove(file) self.projectSave() self.nb.SetPageText(0, 'Editor') self.editor.Clear() self.editor.Enable(...
0386dacaa4983ab8619dec87afda0aae584bc1ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/0386dacaa4983ab8619dec87afda0aae584bc1ad/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 768, 67, 4479, 12, 2890, 16, 871, 4672, 309, 365, 18, 4406, 2813, 599, 30, 761, 273, 365, 18, 3413, 18, 967, 6233, 1435, 585, 273, 365, 18, 3413, 18, 967, 1180, 1528, 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, 603, 67, 768, 67, 4479, 12, 2890, 16, 871, 4672, 309, 365, 18, 4406, 2813, 599, 30, 761, 273, 365, 18, 3413, 18, 967, 6233, 1435, 585, 273, 365, 18, 3413, 18, 967, 1180, 1528, 12, ...
for badarg in badargs:
def test_compare(self): t1 = timedelta(2, 3, 4) t2 = timedelta(2, 3, 4) self.failUnless(t1 == t2) self.failUnless(t1 <= t2) self.failUnless(t1 >= t2) self.failUnless(not t1 != t2) self.failUnless(not t1 < t2) self.failUnless(not t1 > t2) self.assertEqual(cmp(t1, t2), 0) self.assertEqual(cmp(t2, t1), 0)
d43d9d9fe8e29351c56a4519805cd0d96749e872 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d43d9d9fe8e29351c56a4519805cd0d96749e872/test_datetime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9877, 12, 2890, 4672, 268, 21, 273, 10661, 12, 22, 16, 890, 16, 1059, 13, 268, 22, 273, 10661, 12, 22, 16, 890, 16, 1059, 13, 365, 18, 6870, 984, 2656, 12, 88, 21, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 9877, 12, 2890, 4672, 268, 21, 273, 10661, 12, 22, 16, 890, 16, 1059, 13, 268, 22, 273, 10661, 12, 22, 16, 890, 16, 1059, 13, 365, 18, 6870, 984, 2656, 12, 88, 21, 422, ...
sess.save_or_update(newvalue)
sess.add(newvalue)
def set(self, state, newvalue, oldvalue, initiator): # process "save_update" cascade rules for when an instance is attached to another instance if oldvalue is newvalue: return newvalue sess = _state_session(state) if sess: prop = _state_mapper(state).get_property(self.key) if newvalue is not None and prop.cascade.save_...
0fc32d7825e9d9bf1dbcf3bbcd4cbf153e68fea5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1074/0fc32d7825e9d9bf1dbcf3bbcd4cbf153e68fea5/unitofwork.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 919, 16, 394, 1132, 16, 1592, 1132, 16, 26030, 4672, 468, 1207, 315, 5688, 67, 2725, 6, 17599, 2931, 364, 1347, 392, 791, 353, 7495, 358, 4042, 791, 309, 1592, 1132,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 919, 16, 394, 1132, 16, 1592, 1132, 16, 26030, 4672, 468, 1207, 315, 5688, 67, 2725, 6, 17599, 2931, 364, 1347, 392, 791, 353, 7495, 358, 4042, 791, 309, 1592, 1132,...
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 641) else quickfix.DoubleField.__init__(self, 641, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 5178, 21, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 5178, 21, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, ...
(rc,exists) = semanage_node_exists(self.sh, k)
(rc, exists) = semanage_node_exists(self.sh, k)
def __add(self, addr, mask, proto, serange, ctype): if addr == "": raise ValueError(_("Node Address is required"))
8ad29a27255b6eb5a4f8e1083ce9832034f3e205 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7147/8ad29a27255b6eb5a4f8e1083ce9832034f3e205/seobject.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1289, 12, 2890, 16, 3091, 16, 3066, 16, 3760, 16, 703, 726, 16, 11920, 4672, 309, 3091, 422, 1408, 30, 1002, 2068, 24899, 2932, 907, 5267, 353, 1931, 6, 3719, 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, 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, 1289, 12, 2890, 16, 3091, 16, 3066, 16, 3760, 16, 703, 726, 16, 11920, 4672, 309, 3091, 422, 1408, 30, 1002, 2068, 24899, 2932, 907, 5267, 353, 1931, 6, 3719, 2, -100, -100, -100...
import struct cfgdata = open (self.create_inifile()).read()
import struct self.mkpath(self.dist_dir) cfgdata = self.get_inidata()
def create_exe (self, arcname, fullname): import struct#, zlib
1ac9802748c26e716685f8ba19277d1a4dc0bcf1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/1ac9802748c26e716685f8ba19277d1a4dc0bcf1/bdist_wininst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 14880, 261, 2890, 16, 8028, 529, 16, 13321, 4672, 1930, 1958, 7, 16, 24220, 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, ...
[ 1, 1, 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, 752, 67, 14880, 261, 2890, 16, 8028, 529, 16, 13321, 4672, 1930, 1958, 7, 16, 24220, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
f.write(src.replace('from libprs500', 'from calibre'))
f.write(src.replace('from libprs500', 'from calibre').encode('utf-8'))
def compile_recipe(src): ''' Compile the code in src and return the first object that is a recipe or profile. @param src: Python source code @type src: string @return: Recipe/Profile class or None, if no such class was found in C{src} ''' global _tdir, _crep if _tdir is None: _tdir = path(PersistentTemporaryDirectory('...
857455241a89f54a93ba7e8750411c54834622e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/857455241a89f54a93ba7e8750411c54834622e9/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4074, 67, 3927, 3151, 12, 4816, 4672, 9163, 16143, 326, 981, 316, 1705, 471, 327, 326, 1122, 733, 716, 353, 279, 16100, 578, 3042, 18, 632, 891, 1705, 30, 6600, 1084, 981, 632, 723, 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, 4074, 67, 3927, 3151, 12, 4816, 4672, 9163, 16143, 326, 981, 316, 1705, 471, 327, 326, 1122, 733, 716, 353, 279, 16100, 578, 3042, 18, 632, 891, 1705, 30, 6600, 1084, 981, 632, 723, 17...
If no revision is given, the parent of the working directory is used, or tip if no revision is checked out. The manifest is the list of files being version controlled. If no revision is given then the first parent of the working directory is used.
If no revision is given, the first parent of the working directory is used, or the null revision if none is checked out.
def manifest(ui, repo, node=None, rev=None): """output the current or given revision of the project manifest Print a list of version controlled files for the given revision. If no revision is given, the parent of the working directory is used, or tip if no revision is checked out. The manifest is the list of files be...
f3d079e63bd844edb8e77c7460b84c7cd6b5e2cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/f3d079e63bd844edb8e77c7460b84c7cd6b5e2cd/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5643, 12, 4881, 16, 3538, 16, 756, 33, 7036, 16, 5588, 33, 7036, 4672, 3536, 2844, 326, 783, 578, 864, 6350, 434, 326, 1984, 5643, 225, 3038, 279, 666, 434, 1177, 25934, 1390, 364, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5643, 12, 4881, 16, 3538, 16, 756, 33, 7036, 16, 5588, 33, 7036, 4672, 3536, 2844, 326, 783, 578, 864, 6350, 434, 326, 1984, 5643, 225, 3038, 279, 666, 434, 1177, 25934, 1390, 364, 326...
def run_program(program_string, command_template=None):
def get_run_program(program_string, command_template=None):
def run_program(program_string, command_template=None): """ if command_template is not None, then program_string == program name and argv is given by command_template with %s replaced by the full path to the program. Else, program_string is interpreted as a shell command with first name being the program name. """ env...
9ba4309248f9b5a9d0f46ed2265fcbccb696b54b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7746/9ba4309248f9b5a9d0f46ed2265fcbccb696b54b/wutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2681, 67, 12890, 12, 12890, 67, 1080, 16, 1296, 67, 3202, 33, 7036, 4672, 3536, 309, 1296, 67, 3202, 353, 486, 599, 16, 1508, 5402, 67, 1080, 422, 5402, 508, 471, 5261, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2681, 67, 12890, 12, 12890, 67, 1080, 16, 1296, 67, 3202, 33, 7036, 4672, 3536, 309, 1296, 67, 3202, 353, 486, 599, 16, 1508, 5402, 67, 1080, 422, 5402, 508, 471, 5261, 353, ...
debug(" non-local domain %s contains no embedded dot", domain)
_debug(" non-local domain %s contains no embedded dot", domain)
def set_ok_domain(self, cookie, request): if self.is_blocked(cookie.domain): debug(" domain %s is in user block-list", cookie.domain) return False if self.is_not_allowed(cookie.domain): debug(" domain %s is not in user allow-list", cookie.domain) return False if cookie.domain_specified: req_host, erhn = eff_request...
e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e3485b205e7bc77f437c4e5fc2d8b00eefb7fc77/cookielib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 601, 67, 4308, 12, 2890, 16, 3878, 16, 590, 4672, 309, 365, 18, 291, 67, 23156, 12, 8417, 18, 4308, 4672, 1198, 2932, 282, 2461, 738, 87, 353, 316, 729, 1203, 17, 1098, 3113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 601, 67, 4308, 12, 2890, 16, 3878, 16, 590, 4672, 309, 365, 18, 291, 67, 23156, 12, 8417, 18, 4308, 4672, 1198, 2932, 282, 2461, 738, 87, 353, 316, 729, 1203, 17, 1098, 3113...
:rtype: datetime
:rtype: tuple :return: a tuple containing the new date, and the number of the field that was actually incremented
def _increment_field_value(self, dateval, fieldnum): """ Increments the designated field and resets all less significant fields to their minimum values.
49bd5938997d6eb2914bfb11baca4c0ee05911a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1127/49bd5938997d6eb2914bfb11baca4c0ee05911a7/triggers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 15016, 67, 1518, 67, 1132, 12, 2890, 16, 1509, 1125, 16, 652, 2107, 4672, 3536, 657, 1793, 1346, 326, 25264, 652, 471, 20063, 777, 5242, 14177, 1466, 358, 3675, 5224, 924, 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, 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, 15016, 67, 1518, 67, 1132, 12, 2890, 16, 1509, 1125, 16, 652, 2107, 4672, 3536, 657, 1793, 1346, 326, 25264, 652, 471, 20063, 777, 5242, 14177, 1466, 358, 3675, 5224, 924, 18, 2, ...
ServerClass = SocketServer.TCPServer):
ServerClass = BaseHTTPServer.HTTPServer):
def test(HandlerClass = SimpleHTTPRequestHandler, ServerClass = SocketServer.TCPServer): BaseHTTPServer.test(HandlerClass, ServerClass)
5c3b384a851b5f8f9a4f9a39a6869528d4444658 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/5c3b384a851b5f8f9a4f9a39a6869528d4444658/SimpleHTTPServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 12, 1503, 797, 273, 4477, 23891, 1503, 16, 3224, 797, 273, 3360, 3693, 2081, 18, 3693, 2081, 4672, 3360, 3693, 2081, 18, 3813, 12, 1503, 797, 16, 3224, 797, 13, 282, 2, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 1503, 797, 273, 4477, 23891, 1503, 16, 3224, 797, 273, 3360, 3693, 2081, 18, 3693, 2081, 4672, 3360, 3693, 2081, 18, 3813, 12, 1503, 797, 16, 3224, 797, 13, 282, 2, -100, -10...
def _all_the_same_control(self, matches):
def _all_the_same_checkbox(self, matches): """ Check whether all these controls are actually the the same checkbox. Hidden controls can combine with checkboxes, to allow form processors to ensure a False value is returned even if user does not check the checkbox. Without the hidden control, no value would be returned....
def _all_the_same_control(self, matches): name = None value = None for match in matches: if match.type not in ['submit', 'hidden']: return False if name is None: name = match.name value = match.value else: if match.name != name or match.value!= value: return False return True
707da8c1dada39d58a5a01be7a62abdab594b9f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8598/707da8c1dada39d58a5a01be7a62abdab594b9f5/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 454, 67, 5787, 67, 14307, 67, 12017, 12, 2890, 16, 1885, 4672, 3536, 2073, 2856, 777, 4259, 11022, 854, 6013, 326, 326, 1967, 11832, 18, 225, 22479, 11022, 848, 8661, 598, 11832, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 454, 67, 5787, 67, 14307, 67, 12017, 12, 2890, 16, 1885, 4672, 3536, 2073, 2856, 777, 4259, 11022, 854, 6013, 326, 326, 1967, 11832, 18, 225, 22479, 11022, 848, 8661, 598, 11832, 28...
raise VLCError(msg)
raise VLCError(repr(self.code) + " " + repr(msg))
def check(self): if self.code: msg = self.message libvlc.libvlc_exception_clear(self.ref()) raise VLCError(msg)
9923c18bcdafd5bacdb5765ffd7f11d3d21318b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/9923c18bcdafd5bacdb5765ffd7f11d3d21318b1/vlc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 4672, 309, 365, 18, 710, 30, 1234, 273, 365, 18, 2150, 2561, 27362, 18, 2941, 27362, 67, 4064, 67, 8507, 12, 2890, 18, 1734, 10756, 1002, 776, 13394, 668, 12, 3576, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 4672, 309, 365, 18, 710, 30, 1234, 273, 365, 18, 2150, 2561, 27362, 18, 2941, 27362, 67, 4064, 67, 8507, 12, 2890, 18, 1734, 10756, 1002, 776, 13394, 668, 12, 3576, 13, ...
srcmtime = max(path.getmtime(self.env.doc2path(docname)), template_mtime) if srcmtime > targetmtime: yield docname
try: srcmtime = max(path.getmtime(self.env.doc2path(docname)), template_mtime) if srcmtime > targetmtime: yield docname except EnvironmentError: pass
def get_outdated_docs(self): if self.templates_path: template_mtime = max(mtimes_of_files(self.templates_path, '.html')) else: template_mtime = 0 for docname in self.env.found_docs: if docname not in self.env.all_docs: yield docname continue targetname = self.env.doc2path(docname, self.outdir, self.out_suffix) try: tar...
30b17cb1e57b7154071a09c5603a05b3a79dc5c5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5532/30b17cb1e57b7154071a09c5603a05b3a79dc5c5/builder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 659, 12563, 67, 8532, 12, 2890, 4672, 309, 365, 18, 8502, 67, 803, 30, 1542, 67, 10838, 273, 943, 12, 1010, 4485, 67, 792, 67, 2354, 12, 2890, 18, 8502, 67, 803, 16, 2418, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 659, 12563, 67, 8532, 12, 2890, 4672, 309, 365, 18, 8502, 67, 803, 30, 1542, 67, 10838, 273, 943, 12, 1010, 4485, 67, 792, 67, 2354, 12, 2890, 18, 8502, 67, 803, 16, 2418, ...
The inverse of fft2d. This is really just inverse_fftnd with different
The inverse of fft2d. This is really just ifftn with different
def ifft2(a, s=None, axes=(-2,-1)): """ifft2(a, s=None, axes=(-2, -1)) The inverse of fft2d. This is really just inverse_fftnd with different default behavior.""" return _raw_fftnd(a, s, axes, ifft)
da320f43a5e3e34d7c12e138f3cd40c0a81dfc28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/da320f43a5e3e34d7c12e138f3cd40c0a81dfc28/fftpack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 309, 1222, 22, 12, 69, 16, 272, 33, 7036, 16, 6515, 33, 19236, 22, 16, 17, 21, 3719, 30, 3536, 430, 1222, 22, 12, 69, 16, 272, 33, 7036, 16, 6515, 33, 19236, 22, 16, 300, 21, 371...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 309, 1222, 22, 12, 69, 16, 272, 33, 7036, 16, 6515, 33, 19236, 22, 16, 17, 21, 3719, 30, 3536, 430, 1222, 22, 12, 69, 16, 272, 33, 7036, 16, 6515, 33, 19236, 22, 16, 300, 21, 371...
top_text = "Check online commits :: [%s/show.php?key=%s] :: [%s]\n%s" % (self.abs_appurl, a_user, a_logskey, a_logskey, top_text)
top_text = "Check online commits :: [%s/show.php?key=%s] :: [%s]\n%s" % (self.abs_appurl, a_logskey, a_logskey, top_text)
def processUser (self, a_user, a_filter, a_filter_fn, a_logskey): if self.use_basetag: basetag_url = "%s" % (self.config.SCMlogs_appurl) rel_appurl = "" else: basetag_url = "" rel_appurl = "%s/" % (self.config.SCMlogs_appurl)
127aee76e5627cd9eb09e160294dba9f89ac2674 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2574/127aee76e5627cd9eb09e160294dba9f89ac2674/SCMengine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 1299, 261, 2890, 16, 279, 67, 1355, 16, 279, 67, 2188, 16, 279, 67, 2188, 67, 4293, 16, 279, 67, 10011, 856, 4672, 309, 365, 18, 1202, 67, 70, 2759, 346, 30, 2580, 20788, 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, 1207, 1299, 261, 2890, 16, 279, 67, 1355, 16, 279, 67, 2188, 16, 279, 67, 2188, 67, 4293, 16, 279, 67, 10011, 856, 4672, 309, 365, 18, 1202, 67, 70, 2759, 346, 30, 2580, 20788, 67, ...
NAME = 'get_akismet_blocked_comments' TEMPLATE = 'akismet_widget.html'
name = 'akismet_blocked_comments' template = 'akismet_widget.html'
def show_akismet_stats(req): """Show the akismet control panel.""" api_key = req.app.cfg['akismet_spam_filter/apikey'] blog_url = req.app.cfg['zine/blog_url'] if req.app.cfg['maintenance_mode']: js_file = 'jquery.uicore.plus.tabs.js' else: js_file = 'jquery.uicore.plus.tabs.packed.js' add_script(url_for('akismet/share...
72c674b42203f2bba2b34f2b0cb16037f3e6845b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/72c674b42203f2bba2b34f2b0cb16037f3e6845b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 581, 6228, 278, 67, 5296, 12, 3658, 4672, 3536, 5706, 326, 20952, 6228, 278, 3325, 6594, 12123, 1536, 67, 856, 273, 1111, 18, 2910, 18, 7066, 3292, 581, 6228, 278, 67, 1752, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 581, 6228, 278, 67, 5296, 12, 3658, 4672, 3536, 5706, 326, 20952, 6228, 278, 3325, 6594, 12123, 1536, 67, 856, 273, 1111, 18, 2910, 18, 7066, 3292, 581, 6228, 278, 67, 1752, ...
file.write('<h3 id="subsection'+str(self.secNumber)+'.'+str(self.subNumber)+'">'+str(self.secNumber)+'.'+str(self.subNumber)+'. '+self.heading+'\n')
file.write('<h3 id="subsection'+str(self.secNumber)+'.'+str(self.subNumber+1)+'">'+str(self.secNumber)+'.'+str(self.subNumber)+'. '+self.heading+'\n')
def writeSubSectionHeader(self,file,type): if type == 'IUL': file.write('<h3 id="subsection'+str(self.secNumber)+'.'+str(self.subNumber)+'">'+str(self.secNumber)+'.'+str(self.subNumber)+'. '+self.heading+'\n') file.write('<a href="'+self.root+'/'+file.name.split('/')[-1]+'#fuwebtoc">[Back to TOC]</a></h3>\n')
3e08debc7e5adc6dfa187a8aaf89f858d8d82fb1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/3e08debc7e5adc6dfa187a8aaf89f858d8d82fb1/webUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1676, 5285, 1864, 12, 2890, 16, 768, 16, 723, 4672, 309, 618, 422, 296, 45, 1506, 4278, 585, 18, 2626, 2668, 32, 76, 23, 612, 1546, 1717, 3464, 11, 15, 701, 12, 2890, 18, 3321,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1676, 5285, 1864, 12, 2890, 16, 768, 16, 723, 4672, 309, 618, 422, 296, 45, 1506, 4278, 585, 18, 2626, 2668, 32, 76, 23, 612, 1546, 1717, 3464, 11, 15, 701, 12, 2890, 18, 3321,...
self.add_line("\n")
def generate(self): self.add_line("No.\tScore\tPoint", Color.PURPLE)
283f84a599e91b44ddef3cd069338c91e25bcb65 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/283f84a599e91b44ddef3cd069338c91e25bcb65/process.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 4672, 365, 18, 1289, 67, 1369, 2932, 2279, 8403, 88, 7295, 64, 88, 2148, 3113, 5563, 18, 52, 1099, 30099, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 12, 2890, 4672, 365, 18, 1289, 67, 1369, 2932, 2279, 8403, 88, 7295, 64, 88, 2148, 3113, 5563, 18, 52, 1099, 30099, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
cmds = ""
def delete_mozilla_url_history(path): """Delete URL history in Mozilla places.sqlite (Firefox 3 and family)""" # delete the URLs in moz_places places_suffix = "where id in (select " \ "moz_places.id from moz_places " \ "left join moz_inputhistory on moz_inputhistory.place_id = moz_places.id " \ "left join moz_bookmark...
04852388c62becdd034a5de773e3dc3b7a93d36d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7853/04852388c62becdd034a5de773e3dc3b7a93d36d/Special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 8683, 15990, 67, 718, 67, 8189, 12, 803, 4672, 3536, 2613, 1976, 4927, 316, 19058, 10745, 12576, 18, 19460, 261, 9723, 13873, 890, 471, 6755, 15574, 225, 468, 1430, 326, 10414, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1430, 67, 8683, 15990, 67, 718, 67, 8189, 12, 803, 4672, 3536, 2613, 1976, 4927, 316, 19058, 10745, 12576, 18, 19460, 261, 9723, 13873, 890, 471, 6755, 15574, 225, 468, 1430, 326, 10414, ...
self.window.connect("destroy",self.quit)
self.window.connect("destroy", self.quit)
def __init__(self, *args): self.param = args[0] self.version = args[1] self.datarootpath = args[2]
64cfb9e0b60a3a976c72fa9d5d722987641133b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3073/64cfb9e0b60a3a976c72fa9d5d722987641133b9/gtk_gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 365, 18, 891, 273, 833, 63, 20, 65, 365, 18, 1589, 273, 833, 63, 21, 65, 365, 18, 3404, 297, 1632, 803, 273, 833, 63, 22, 65, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 365, 18, 891, 273, 833, 63, 20, 65, 365, 18, 1589, 273, 833, 63, 21, 65, 365, 18, 3404, 297, 1632, 803, 273, 833, 63, 22, 65, 2, -...
super(SSLConnection, self).close()
if not ssl_want_read_or_write: super(SSLConnection, self).close()
def close(self): try: if isinstance(self.socket, ssl.SSLSocket): if self.socket._sslobj is not None: self.socket.unwrap() finally: super(SSLConnection, self).close()
042b47a5760db6ac99100e7b96df8e3cb7af713e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/042b47a5760db6ac99100e7b96df8e3cb7af713e/test_ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 775, 30, 309, 1549, 12, 2890, 18, 7814, 16, 5832, 18, 1260, 25831, 4672, 309, 365, 18, 7814, 6315, 1049, 383, 441, 353, 486, 599, 30, 365, 18, 7814, 18, 318, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 775, 30, 309, 1549, 12, 2890, 18, 7814, 16, 5832, 18, 1260, 25831, 4672, 309, 365, 18, 7814, 6315, 1049, 383, 441, 353, 486, 599, 30, 365, 18, 7814, 18, 318, 41...
if err.args[0] in (ssl.SSL_ERROR_EOF, ssl.SSL_ERROR_ZERO_RETURN):
if err.args[0] in (ssl.SSL_ERROR_EOF, ssl.SSL_ERROR_ZERO_RETURN, ssl.SSL_ERROR_WANT_READ, ssl.SSL_ERROR_WANT_WRITE):
def send(self, data): try: return super(SSLConnection, self).send(data) except ssl.SSLError, err: if err.args[0] in (ssl.SSL_ERROR_EOF, ssl.SSL_ERROR_ZERO_RETURN): return 0 raise
904da5e06ee1994e287b4511b8e2e647f3d98d27 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/904da5e06ee1994e287b4511b8e2e647f3d98d27/test_ftplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 12, 2890, 16, 501, 4672, 775, 30, 327, 2240, 12, 6745, 1952, 16, 365, 2934, 4661, 12, 892, 13, 1335, 5832, 18, 6745, 668, 16, 393, 30, 309, 393, 18, 1968, 63, 20, 65, 316, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1366, 12, 2890, 16, 501, 4672, 775, 30, 327, 2240, 12, 6745, 1952, 16, 365, 2934, 4661, 12, 892, 13, 1335, 5832, 18, 6745, 668, 16, 393, 30, 309, 393, 18, 1968, 63, 20, 65, 316, 26...
progressInfo = commands.getoutput('pgrep -fl tribler.py | grep -v pgrep')
progressInfo = commands.getoutput('pgrep -fl "tribler\.py" | grep -v pgrep')
def IsAnotherRunning(self): "Uses pgrep to find other tribler.py processes" # If no pgrep available, it will always start tribler progressInfo = commands.getoutput('pgrep -fl tribler.py | grep -v pgrep') numProcesses = len(progressInfo.split('\n')) if DEBUG: print 'ProgressInfo: %s, num: %d' % (progressInfo, numProcess...
2e240241d8b3656a82b60149a766025bb145a655 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9686/2e240241d8b3656a82b60149a766025bb145a655/tribler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2585, 37, 24413, 7051, 12, 2890, 4672, 315, 15128, 7184, 14462, 358, 1104, 1308, 433, 495, 749, 18, 2074, 8488, 6, 468, 971, 1158, 7184, 14462, 2319, 16, 518, 903, 3712, 787, 433, 495, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2585, 37, 24413, 7051, 12, 2890, 4672, 315, 15128, 7184, 14462, 358, 1104, 1308, 433, 495, 749, 18, 2074, 8488, 6, 468, 971, 1158, 7184, 14462, 2319, 16, 518, 903, 3712, 787, 433, 495, ...
g = self.subgraph( vertices = (v for v in self if vertex_used[v] >= .5), edges = ( (u,v,l) for u,v,l in self.edges() if f_edge_used(u,v) >= .5 ))
g = self.subgraph( vertices=(v for v in self if vertex_used[v] >= 0.5), edges=((u,v,l) for u, v, l in self.edges() if f_edge_used(u,v) >= 0.5))
def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``.
fbdfc46fda1150428e37faef1f31cd5518ab4374 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/fbdfc46fda1150428e37faef1f31cd5518ab4374/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...
return self.posts.select_related().order_by('created')[0]
try: return self.posts.select_related().order_by('created')[0] except IndexError: return None
def head(self): return self.posts.select_related().order_by('created')[0]
dd477a0a46126b0674476e7ecefee868304f1531 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13701/dd477a0a46126b0674476e7ecefee868304f1531/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 910, 12, 2890, 4672, 327, 365, 18, 11660, 18, 4025, 67, 9243, 7675, 1019, 67, 1637, 2668, 4824, 6134, 63, 20, 65, 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, 910, 12, 2890, 4672, 327, 365, 18, 11660, 18, 4025, 67, 9243, 7675, 1019, 67, 1637, 2668, 4824, 6134, 63, 20, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if protocol and not proxy_username: proxy_info = os.environ.get('%s_proxy' % protocol) if proxy_info and '@' in proxy_info: protocol_and_proxy_auth = proxy_info.split('@')[0].split(':')
if not proxy_username: if '@' in proxy_settings: protocol_and_proxy_auth = proxy_settings.split('@')[0].split(':')
def _get_proxy_auth(protocol=None): """Returns proxy authentication string for header. Will check environment variables for proxy authentiation info, starting with proxy(_/-)username and proxy(_/-)password before checking PROTOCOL_proxy for a [protocol://]username:password@host[:port] string. Args: protocol: String r...
fd7144c02bd0a385dbf6cd8b54d685ceef911565 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6580/fd7144c02bd0a385dbf6cd8b54d685ceef911565/http.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 5656, 67, 1944, 12, 8373, 33, 7036, 4672, 3536, 1356, 2889, 5107, 533, 364, 1446, 18, 225, 9980, 866, 3330, 3152, 364, 2889, 1357, 319, 7072, 1123, 16, 5023, 598, 2889, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 5656, 67, 1944, 12, 8373, 33, 7036, 4672, 3536, 1356, 2889, 5107, 533, 364, 1446, 18, 225, 9980, 866, 3330, 3152, 364, 2889, 1357, 319, 7072, 1123, 16, 5023, 598, 2889, 2...
a(formatstring((header for k in months), colwidth, c).rstrip())
headers = (header for k in months) a(formatstring(headers, colwidth, c).rstrip())
def formatyear(self, theyear, w=2, l=1, c=6, m=3): """ Returns a year's calendar as a multi-line string. """ w = max(2, w) l = max(1, l) c = max(2, c) colwidth = (w + 1) * 7 - 1 v = [] a = v.append a(repr(theyear).center(colwidth*m+c*(m-1)).rstrip()) a('\n'*l) header = self.formatweekheader(w) for (i, row) in enumerate...
48d5e508ebc136f8f67a2cb2bdd29e55324f5a95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/48d5e508ebc136f8f67a2cb2bdd29e55324f5a95/calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 740, 6874, 12, 2890, 16, 2898, 2091, 16, 341, 33, 22, 16, 328, 33, 21, 16, 276, 33, 26, 16, 312, 33, 23, 4672, 3536, 2860, 279, 3286, 1807, 5686, 487, 279, 3309, 17, 1369, 533, 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, 740, 6874, 12, 2890, 16, 2898, 2091, 16, 341, 33, 22, 16, 328, 33, 21, 16, 276, 33, 26, 16, 312, 33, 23, 4672, 3536, 2860, 279, 3286, 1807, 5686, 487, 279, 3309, 17, 1369, 533, 18,...
for oldItem in oldMenuList:
for oldItem in menuList:
def synchronizeItems(self): """ Install the menus into supplied menu list, and submenus into their menu items. """ oldMenuList = self.widget.getMenuItems () index = 0 for menuItem in self.dynamicChildren: # ensure that the menuItem has been instantiated if not hasattr (menuItem, "widget"): menuItem.widget = menuItem.i...
e3beff8bc3ce2e759a8bb84be125cb87ca4c7260 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e3beff8bc3ce2e759a8bb84be125cb87ca4c7260/DynamicContainerBlocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16978, 3126, 12, 2890, 4672, 3536, 10284, 326, 21374, 1368, 4580, 3824, 666, 16, 471, 720, 26065, 1368, 3675, 3824, 1516, 18, 3536, 1592, 4599, 682, 273, 365, 18, 6587, 18, 588, 4599, 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, 16978, 3126, 12, 2890, 4672, 3536, 10284, 326, 21374, 1368, 4580, 3824, 666, 16, 471, 720, 26065, 1368, 3675, 3824, 1516, 18, 3536, 1592, 4599, 682, 273, 365, 18, 6587, 18, 588, 4599, 31...
if edge1.flags() & CONTOUR_PROTECTION:
if edge1.flag(CONTOUR_SEGMENT):
def catMap(delaunayMap, includeTerminalPositions = False, joinMiddleThreshold = 1.61): """Extract a CAT (chordal axis transform) from a GeoMap object containing a Delaunay Triangulation. Assumes that all edges have only two points and that all finite regions are triangles (such a GeoMap is returned by delaunayMap()).""...
9780fdb920d074c0946e5e96a8fed5fb752733ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/9780fdb920d074c0946e5e96a8fed5fb752733ff/delaunay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6573, 863, 12, 3771, 69, 318, 528, 863, 16, 2341, 11336, 11024, 273, 1083, 16, 1233, 21924, 7614, 273, 404, 18, 9498, 4672, 3536, 4976, 279, 30210, 261, 343, 517, 287, 2654, 2510, 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, 6573, 863, 12, 3771, 69, 318, 528, 863, 16, 2341, 11336, 11024, 273, 1083, 16, 1233, 21924, 7614, 273, 404, 18, 9498, 4672, 3536, 4976, 279, 30210, 261, 343, 517, 287, 2654, 2510, 13, ...
>>> print system(zc.buildout.easy_install._safe_arg(sys.executable)+' '+ ... 'bootstrap.py'), *...
>>> print 'X'; print system( ... zc.buildout.easy_install._safe_arg(sys.executable)+' '+ ... 'bootstrap.py'), X...
def test_bootstrap_py(): """Make sure the bootstrap script actually works
b48f820aab691ca86f1aef273b364849f6a379b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11359/b48f820aab691ca86f1aef273b364849f6a379b2/tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12722, 67, 2074, 13332, 3536, 6464, 3071, 326, 7065, 2728, 6013, 6330, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12722, 67, 2074, 13332, 3536, 6464, 3071, 326, 7065, 2728, 6013, 6330, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
data = cPickle.dumps(value, self.binary)
data = _dumps(value, self.protocol)
def __setitem__(self, key, value): data = cPickle.dumps(value, self.binary) self.db[key] = data
f9c4a8b0d48c7569ef7f49ce143062df7be08a95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/f9c4a8b0d48c7569ef7f49ce143062df7be08a95/dbshelve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 498, 16, 460, 4672, 501, 273, 389, 13302, 1121, 12, 1132, 16, 365, 18, 8373, 13, 365, 18, 1966, 63, 856, 65, 273, 501, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 1726, 972, 12, 2890, 16, 498, 16, 460, 4672, 501, 273, 389, 13302, 1121, 12, 1132, 16, 365, 18, 8373, 13, 365, 18, 1966, 63, 856, 65, 273, 501, 2, -100, -100, -100, -100, ...
'invoice_ids': fields.many2many('account.invoice', 'purchase_invoice_rel', 'purchase_id', 'invoice_id', 'Taxes', help="Invoices generated for a purchase order"),
'invoice_ids': fields.many2many('account.invoice', 'purchase_invoice_rel', 'purchase_id', 'invoice_id', 'Invoices', help="Invoices generated for a purchase order"),
def _invoiced(self, cursor, user, ids, name, arg, context=None): res = {} for purchase in self.browse(cursor, user, ids, context=context): invoiced = False if purchase.invoiced_rate == 100.00: invoiced = True res[purchase.id] = invoiced return res
7ff1ae996ef02185b73fdfbecd656ef212d5bd85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/7ff1ae996ef02185b73fdfbecd656ef212d5bd85/purchase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16119, 72, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 400, 273, 2618, 364, 23701, 316, 365, 18, 25731, 12, 9216, 16, 729, 16, 3258, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16119, 72, 12, 2890, 16, 3347, 16, 729, 16, 3258, 16, 508, 16, 1501, 16, 819, 33, 7036, 4672, 400, 273, 2618, 364, 23701, 316, 365, 18, 25731, 12, 9216, 16, 729, 16, 3258, 16, ...
docs_single(completeVersion)
docs_single(complete_version)
def create_pydocs(): sys.path.append(os.getcwd() + "/src") import springpython if not os.path.exists("target/docs/pydoc"): os.mkdir("target/docs/pydoc") os.chdir("target/docs/pydoc") pydoc.writedoc("springpython") pydoc.writedoc("springpython.aop") pydoc.writedoc("springpython.aop.utils") pydoc.writedoc("springpytho...
8a405e7fd321a7d68e58ef7e892ad80717a33322 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7713/8a405e7fd321a7d68e58ef7e892ad80717a33322/build.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2074, 8532, 13332, 2589, 18, 803, 18, 6923, 12, 538, 18, 588, 11089, 1435, 397, 2206, 4816, 7923, 1930, 25974, 8103, 225, 309, 486, 1140, 18, 803, 18, 1808, 2932, 3299, 19, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2074, 8532, 13332, 2589, 18, 803, 18, 6923, 12, 538, 18, 588, 11089, 1435, 397, 2206, 4816, 7923, 1930, 25974, 8103, 225, 309, 486, 1140, 18, 803, 18, 1808, 2932, 3299, 19, 85...
return _('just now')
return self._('just now')
def pretty(self): ''' print up the date date using one of these nice formats.. ''' if self.year: if self.year == 1: s = _('1 year') else: s = _('%(number)s years')%{'number': self.year} elif self.month or self.day > 13: days = (self.month * 30) + self.day if days > 28: if int(days/30) > 1: s = _('%(number)s months')%{'...
57c5533dd07b22f90fb954d2494eab65061eef34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/57c5533dd07b22f90fb954d2494eab65061eef34/date.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7517, 12, 2890, 4672, 9163, 1172, 731, 326, 1509, 1509, 1450, 1245, 434, 4259, 13752, 6449, 838, 9163, 309, 365, 18, 6874, 30, 309, 365, 18, 6874, 422, 404, 30, 272, 273, 389, 2668, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7517, 12, 2890, 4672, 9163, 1172, 731, 326, 1509, 1509, 1450, 1245, 434, 4259, 13752, 6449, 838, 9163, 309, 365, 18, 6874, 30, 309, 365, 18, 6874, 422, 404, 30, 272, 273, 389, 2668, 21...
fieldsz = len(listname) + len('request')
fieldsz = len(listname) + len('-unsubscribe')
def _addvirtual(mlist, fp): listname = mlist.internal_name() fieldsz = len(listname) + len('request') hostname = mlist.host_name # Set up the mailman-loop address loopaddr = Utils.get_site_email(mlist.host_name, extra='loop') loopdest = Utils.ParseEmail(loopaddr)[0] # Seek to the end of the text file, but if it's empty...
70b967f500b30ec9349a65aaa6a8be4b3183c3dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/70b967f500b30ec9349a65aaa6a8be4b3183c3dd/Postfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 12384, 12, 781, 376, 16, 4253, 4672, 666, 529, 273, 312, 1098, 18, 7236, 67, 529, 1435, 1466, 94, 273, 562, 12, 1098, 529, 13, 397, 562, 2668, 17, 318, 9174, 6134, 5199, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 12384, 12, 781, 376, 16, 4253, 4672, 666, 529, 273, 312, 1098, 18, 7236, 67, 529, 1435, 1466, 94, 273, 562, 12, 1098, 529, 13, 397, 562, 2668, 17, 318, 9174, 6134, 5199, 2...
if self.should_save_image.value:
if object.should_save_image.value:
def run(self, workspace): objects = workspace.get_objects(self.object_name.value) if objects.has_parent_image: area_occupied = np.sum(objects.segmented[objects.parent_image.mask]>0) total_area = np.sum(objects.parent_image.mask) else: area_occupied = np.sum(objects.segmented > 0) total_area = np.product(objects.segment...
a0bb548da9fde1e6fd3c949608fd007fd37a3ee9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2870/a0bb548da9fde1e6fd3c949608fd007fd37a3ee9/measureimageareaoccupied.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 6003, 4672, 2184, 273, 6003, 18, 588, 67, 6911, 12, 2890, 18, 1612, 67, 529, 18, 1132, 13, 309, 2184, 18, 5332, 67, 2938, 67, 2730, 30, 5091, 67, 25049, 416, 2092...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16, 6003, 4672, 2184, 273, 6003, 18, 588, 67, 6911, 12, 2890, 18, 1612, 67, 529, 18, 1132, 13, 309, 2184, 18, 5332, 67, 2938, 67, 2730, 30, 5091, 67, 25049, 416, 2092...
if string.lower(self.infile[-4:]) == ".pdf":
if string.lower(self.infile[-4:]) == ".pdf" or \ string.lower(self.infile[-3:]) == ".ai":
def process(self): bandsize = 30000000 if (self.band): bandsize = 10000 cmd = self.command cmd = cmd + ' -dQUIET -dNOPAUSE -dBATCH -K1000000 ' if self.dpi: cmd = cmd + '-r%d ' % (self.dpi,) cmd = cmd + '-dMaxBitmap=%d ' % (bandsize,) cmd = cmd + '-sDEVICE=%s ' % (self.device,) cmd = cmd + '-sOutputFile=%s ' % (self.ou...
36d78db1aec25ddd2ec6eccf1359154328e21926 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/675/36d78db1aec25ddd2ec6eccf1359154328e21926/gstestgs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 4672, 8937, 1467, 273, 890, 17877, 309, 261, 2890, 18, 12752, 4672, 8937, 1467, 273, 12619, 225, 1797, 273, 365, 18, 3076, 1797, 273, 1797, 397, 296, 300, 72, 8627, 1584,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 4672, 8937, 1467, 273, 890, 17877, 309, 261, 2890, 18, 12752, 4672, 8937, 1467, 273, 12619, 225, 1797, 273, 365, 18, 3076, 1797, 273, 1797, 397, 296, 300, 72, 8627, 1584,...
cmd = "xm migrate -l %i %s"%(vmId, target)
cmd = "/usr/sbin/xm migrate -l %i %s"%(vmId, target)
def migrateVm(self, vmId, target, transportCookie): cmd = "xm migrate -l %i %s"%(vmId, target) r = os.system(cmd) if r != 0: # FIXME: throw exception print "migrate failed for VM %i"%vmId raise Exception, "migrate failed for VM %i"%vmId self.newvms.pop(vmId) return vmId
787afd97a19dbc056f066117a0e80a968ac780eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5161/787afd97a19dbc056f066117a0e80a968ac780eb/xenpv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13187, 22143, 12, 2890, 16, 4268, 548, 16, 1018, 16, 4736, 6151, 4672, 1797, 273, 2206, 13640, 19, 87, 4757, 19, 92, 81, 13187, 300, 80, 738, 77, 738, 87, 6, 17105, 3489, 548, 16, 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, 13187, 22143, 12, 2890, 16, 4268, 548, 16, 1018, 16, 4736, 6151, 4672, 1797, 273, 2206, 13640, 19, 87, 4757, 19, 92, 81, 13187, 300, 80, 738, 77, 738, 87, 6, 17105, 3489, 548, 16, 10...
self.mpav.stop = True while self.isAlive(): time.sleep(0.1)
self.mpav.stop = True while self.isAlive(): time.sleep(0.1)
def waitForCompletion(self): self.stop = True
a60082c2d4bcc60e0b690263f5d7b207dcafc3fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/a60082c2d4bcc60e0b690263f5d7b207dcafc3fe/rasterwand.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10712, 11238, 12, 2890, 4672, 365, 18, 5681, 273, 1053, 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, 10712, 11238, 12, 2890, 4672, 365, 18, 5681, 273, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.body.append('\\textbf{\\large '+ self.language.labels[name] + '}\n');
if name: self.body.append('\\textbf{\\large '+ self.language.labels[name] + '}\n');
def visit_admonition(self, node, name): self.body.append('\\begin{center}\\begin{sffamily}\n') self.body.append('\\fbox{\\parbox{\\admonitionwidth}{\n') self.body.append('\\textbf{\\large '+ self.language.labels[name] + '}\n'); self.body.append('\\vspace{2mm}\n')
0bc6157d426de8f760c23eea72ff3aae020a5954 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/0bc6157d426de8f760c23eea72ff3aae020a5954/latex2e.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 361, 2586, 608, 12, 2890, 16, 756, 16, 508, 4672, 365, 18, 3432, 18, 6923, 2668, 1695, 10086, 95, 5693, 97, 1695, 10086, 95, 87, 1403, 3954, 6280, 82, 6134, 365, 18, 3432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 361, 2586, 608, 12, 2890, 16, 756, 16, 508, 4672, 365, 18, 3432, 18, 6923, 2668, 1695, 10086, 95, 5693, 97, 1695, 10086, 95, 87, 1403, 3954, 6280, 82, 6134, 365, 18, 3432, ...
if ext == 'ps':
if ext == '.ps':
def save(self, filename='sage.png', xmin=None, xmax=None, ymin=None, ymax=None, figsize=DEFAULT_FIGSIZE, fig=None, sub=None, savenow=True, dpi=None): """
467e7b1f07811a5059c03b1971887ba802fa8a90 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/467e7b1f07811a5059c03b1971887ba802fa8a90/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 16, 1544, 2218, 87, 410, 18, 6446, 2187, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 4291, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1923, 12, 2890, 16, 1544, 2218, 87, 410, 18, 6446, 2187, 13777, 33, 7036, 16, 14016, 33, 7036, 16, 15763, 33, 7036, 16, 15275, 33, 7036, 16, 14697, 33, 5280, 67, 5236, 4574, 16, 4291, ...
points.append(self.point([one,zero,zero])) except TypeError:
t = self.point([one,zero,zero]) yield(t) except TypeError:
def rational_points(self, algorithm="enum", sort=True): r""" Return the rational points on this curve computed via enumeration.
98b600e283b76d988294a386cfe037b70de67ee1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/98b600e283b76d988294a386cfe037b70de67ee1/projective_curve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 8371, 67, 4139, 12, 2890, 16, 4886, 1546, 7924, 3113, 1524, 33, 5510, 4672, 436, 8395, 2000, 326, 436, 8371, 3143, 603, 333, 8882, 8470, 3970, 16836, 18, 225, 2, 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, 436, 8371, 67, 4139, 12, 2890, 16, 4886, 1546, 7924, 3113, 1524, 33, 5510, 4672, 436, 8395, 2000, 326, 436, 8371, 3143, 603, 333, 8882, 8470, 3970, 16836, 18, 225, 2, -100, -100, -100, ...
if self.args.has_key('updatetickets'): self.env.log.info('Updating milestone field of all tickets ' 'associated with milestone %s' % id) cursor.execute ('UPDATE ticket SET milestone = %s ' 'WHERE milestone = %s', name, id)
self.env.log.info('Updating milestone field of all tickets ' 'associated with milestone %s' % id) cursor.execute ('UPDATE ticket SET milestone = %s ' 'WHERE milestone = %s', name, id)
def update_milestone(self, id, name, date, descr): self.perm.assert_permission(perm.MILESTONE_MODIFY) cursor = self.db.cursor() self.env.log.debug("Updating milestone '%s'" % id) if self.args.has_key('save'): if self.args.has_key('updatetickets'): self.env.log.info('Updating milestone field of all tickets ' 'associated...
87c6b0626e61efd91f6187612c331c1bab7c33cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/87c6b0626e61efd91f6187612c331c1bab7c33cf/Milestone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 81, 18270, 12, 2890, 16, 612, 16, 508, 16, 1509, 16, 18426, 4672, 365, 18, 12160, 18, 11231, 67, 9827, 12, 12160, 18, 7492, 900, 882, 5998, 67, 6720, 12096, 13, 3347, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 81, 18270, 12, 2890, 16, 612, 16, 508, 16, 1509, 16, 18426, 4672, 365, 18, 12160, 18, 11231, 67, 9827, 12, 12160, 18, 7492, 900, 882, 5998, 67, 6720, 12096, 13, 3347, 273, ...