rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
sf = StringIO(headers)
sf = StringIO(str(headers))
def ftp_open(self, req): import ftplib import mimetypes host = req.get_host() if not host: raise URLError('ftp error: no host given') host, port = splitport(host) if port is None: port = ftplib.FTP_PORT else: port = int(port)
89296f85946166991114ff61506202ae4605bc24 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/89296f85946166991114ff61506202ae4605bc24/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 3190, 12, 2890, 16, 1111, 4672, 1930, 11038, 6673, 1930, 20369, 15180, 1479, 273, 1111, 18, 588, 67, 2564, 1435, 309, 486, 1479, 30, 1002, 1976, 668, 2668, 11727, 555, 30, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13487, 67, 3190, 12, 2890, 16, 1111, 4672, 1930, 11038, 6673, 1930, 20369, 15180, 1479, 273, 1111, 18, 588, 67, 2564, 1435, 309, 486, 1479, 30, 1002, 1976, 668, 2668, 11727, 555, 30, 115...
prefix = m[0] for item in m: for i in range(len(prefix)): if prefix[:i+1] != item[:i+1]: prefix = prefix[:i] if i == 0: return '' break return prefix
s1 = min(m) s2 = max(m) n = min(len(s1), len(s2)) for i in xrange(n): if s1[i] != s2[i]: return s1[:i] return s1[:n]
def commonprefix(m): "Given a list of pathnames, returns the longest common leading component" if not m: return '' prefix = m[0] for item in m: for i in range(len(prefix)): if prefix[:i+1] != item[:i+1]: prefix = prefix[:i] if i == 0: return '' break return prefix
d04bdebb06ff2c76629ecb030df623125ffd8954 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d04bdebb06ff2c76629ecb030df623125ffd8954/posixpath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2975, 3239, 12, 81, 4672, 315, 6083, 279, 666, 434, 589, 1973, 16, 1135, 326, 12163, 2975, 7676, 1794, 6, 309, 486, 312, 30, 327, 875, 272, 21, 273, 1131, 12, 81, 13, 272, 22, 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, 2975, 3239, 12, 81, 4672, 315, 6083, 279, 666, 434, 589, 1973, 16, 1135, 326, 12163, 2975, 7676, 1794, 6, 309, 486, 312, 30, 327, 875, 272, 21, 273, 1131, 12, 81, 13, 272, 22, 273, ...
self.check_instance() self.specto_gconf = specto_gconf self.check_default_settings()
def __init__(self): self.DEBUG = DEBUG self.util = util
c498cb7e07445e2228d8a6b81133452fed2b59ee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10818/c498cb7e07445e2228d8a6b81133452fed2b59ee/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 9394, 273, 6369, 365, 18, 1367, 273, 1709, 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, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 9394, 273, 6369, 365, 18, 1367, 273, 1709, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
see the documentation for plot.
see the documentation for :func:`plot`.
def polar_plot(funcs, *args, **kwds): r""" ``polar_plot`` takes a single function or a list or tuple of functions and plots them with polar coordinates in the given domain. This function is equivalent to the plot command with the options ``polar=True`` and ``aspect_ratio=1``. For more help on options, see the document...
8bd751eb284941c294a29b0ed61ffc50187ae646 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8bd751eb284941c294a29b0ed61ffc50187ae646/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24244, 67, 4032, 12, 17728, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 12176, 3915, 297, 67, 4032, 10335, 5530, 279, 2202, 445, 578, 279, 666, 578, 3193, 434, 4186, 471, 17931, 218...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24244, 67, 4032, 12, 17728, 16, 380, 1968, 16, 2826, 25577, 4672, 436, 8395, 12176, 3915, 297, 67, 4032, 10335, 5530, 279, 2202, 445, 578, 279, 666, 578, 3193, 434, 4186, 471, 17931, 218...
numResults = paginator.count
try: numResults = paginator.count except: numResults = 0
def showResults(request): """Show the results for a query as either an alert or a search""" try: query = request.GET['q'] except: # if somebody is URL hacking at /search/results/ query = "" # this handles the alert creation form. if request.method == 'POST': from alert.userHandling.models import Alert # an alert has ...
0707e3d0d234fc8ee6e15c875fb48d1dce344f32 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6762/0707e3d0d234fc8ee6e15c875fb48d1dce344f32/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 3447, 12, 2293, 4672, 3536, 5706, 326, 1686, 364, 279, 843, 487, 3344, 392, 6881, 578, 279, 1623, 8395, 225, 775, 30, 843, 273, 590, 18, 3264, 3292, 85, 3546, 1335, 30, 468, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 3447, 12, 2293, 4672, 3536, 5706, 326, 1686, 364, 279, 843, 487, 3344, 392, 6881, 578, 279, 1623, 8395, 225, 775, 30, 843, 273, 590, 18, 3264, 3292, 85, 3546, 1335, 30, 468, 309,...
sys.exit('
sys.exit('
def compare_data_with(self, path2): path1 = self.data_dir + str(self.change_counter)
bfc20a799fb7ae7a0b6d7996e7ba0681bf49c856 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/736/bfc20a799fb7ae7a0b6d7996e7ba0681bf49c856/backupandrestore_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 67, 892, 67, 1918, 12, 2890, 16, 589, 22, 4672, 589, 21, 273, 365, 18, 892, 67, 1214, 397, 609, 12, 2890, 18, 3427, 67, 7476, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 67, 892, 67, 1918, 12, 2890, 16, 589, 22, 4672, 589, 21, 273, 365, 18, 892, 67, 1214, 397, 609, 12, 2890, 18, 3427, 67, 7476, 13, 2, -100, -100, -100, -100, -100, -100, -100, ...
tm2p.SetPoint1(roBounds[1], 0, 0) tm2p.SetPoint2(0, roBounds[3], 0)
tm2p.SetPoint1(roBounds[1] - roBounds[0], 0, 0) tm2p.SetPoint2(0, roBounds[3] - roBounds[2], 0)
def _syncOrthoViewWithIPW(self, orthoIdx): orthoView = self._orthoViews[orthoIdx] # find IPW that we're syncing with direction = orthoView['direction'] ipwDir = self._ipws[direction]
84c1eb2dd880117cbde103e9d144e516ad511eb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/84c1eb2dd880117cbde103e9d144e516ad511eb7/slice3d_vwr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8389, 1162, 451, 83, 1767, 1190, 2579, 59, 12, 2890, 16, 16208, 83, 4223, 4672, 16208, 83, 1767, 273, 365, 6315, 7825, 83, 9959, 63, 7825, 83, 4223, 65, 225, 468, 1104, 2971, 59, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8389, 1162, 451, 83, 1767, 1190, 2579, 59, 12, 2890, 16, 16208, 83, 4223, 4672, 16208, 83, 1767, 273, 365, 6315, 7825, 83, 9959, 63, 7825, 83, 4223, 65, 225, 468, 1104, 2971, 59, ...
path = self.file_path.encode("utf8") fp = open(path, "r") fp.seek(-128, 2) fp.read(3) self.title = UnicodeHelper.safe_unicode(self.remove_X00(fp.read(30))) if not self.title: if len(self.file_path) > 18: self.title = UnicodeHelper.safe_unicode("..." + self.file_path[-18:]) else: self.title = UnicodeHelper.safe_unicode...
id3_reader = Id3InfoReader(self.file_path) self.title = id3_reader.title self.artist = id3_reader.artist self.album = id3_reader.album self.year = id3_reader.year self.comment = id3_reader.comment self.number = id3_reader.number
def init_music(self): if self.file_path: path = self.file_path.encode("utf8") fp = open(path, "r") fp.seek(-128, 2) fp.read(3) self.title = UnicodeHelper.safe_unicode(self.remove_X00(fp.read(30))) if not self.title: if len(self.file_path) > 18: self.title = UnicodeHelper.safe_unicode("..." + self.file_path[-18:]) else...
43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5169/43a0f8d3d71fafa93f66b7de5c6311692b8b2ccd/aspyplayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 81, 14894, 12, 2890, 4672, 309, 365, 18, 768, 67, 803, 30, 612, 23, 67, 10530, 273, 3124, 23, 966, 2514, 12, 2890, 18, 768, 67, 803, 13, 365, 18, 2649, 273, 612, 23, 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, 1208, 67, 81, 14894, 12, 2890, 4672, 309, 365, 18, 768, 67, 803, 30, 612, 23, 67, 10530, 273, 3124, 23, 966, 2514, 12, 2890, 18, 768, 67, 803, 13, 365, 18, 2649, 273, 612, 23, 67, ...
self.gvoice_backend.set_dnd(True)
self.session.backend.set_dnd(True)
def SetPresence(self, status, message): if message: raise telepathy.errors.InvalidArgument("Messages aren't supported")
921437b90fb31fa0080ac3a706624ef66ccea7ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13096/921437b90fb31fa0080ac3a706624ef66ccea7ae/simple_presence.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 22590, 12, 2890, 16, 1267, 16, 883, 4672, 309, 883, 30, 1002, 268, 6516, 803, 93, 18, 4324, 18, 1941, 1379, 2932, 5058, 11526, 1404, 3260, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 1000, 22590, 12, 2890, 16, 1267, 16, 883, 4672, 309, 883, 30, 1002, 268, 6516, 803, 93, 18, 4324, 18, 1941, 1379, 2932, 5058, 11526, 1404, 3260, 7923, 2, -100, -100, -100, -100, -100, ...
if obtained != valid:
if not expected_result(obtained, valid):
def expand (file, entry, type = -1):
a5b45471485c35b80cfe0668a4fec1a12a72538b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14180/a5b45471485c35b80cfe0668a4fec1a12a72538b/testsuite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 261, 768, 16, 1241, 16, 618, 273, 300, 21, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4542, 261, 768, 16, 1241, 16, 618, 273, 300, 21, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
yg = str(yearguess)[-2:]
yg = int(str(yearguess)[-2:])
def getdate(s="", yearguess=None): """Attempt to parse the given string as a date. The format is unknown, but it's assumed that the broken American m/d/y isn't a possibility. It attempts to distinguish between d/m/y and y/m/d using the values, and handles any seperator. if dateorder (global) is 'DMY' or 'YMD', it over...
5c51764e2494692e5490202fc9b6cf69d2c13b6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8228/5c51764e2494692e5490202fc9b6cf69d2c13b6c/parseing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 712, 12, 87, 1546, 3113, 3286, 20885, 33, 7036, 4672, 3536, 7744, 358, 1109, 326, 864, 533, 487, 279, 1509, 18, 1021, 740, 353, 5917, 16, 1496, 518, 1807, 12034, 716, 326, 12933, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 712, 12, 87, 1546, 3113, 3286, 20885, 33, 7036, 4672, 3536, 7744, 358, 1109, 326, 864, 533, 487, 279, 1509, 18, 1021, 740, 353, 5917, 16, 1496, 518, 1807, 12034, 716, 326, 12933, ...
"h\x01h\x10l\x00\x00\x00\x01d\x00\x03barjl\x00\x00\x00\x01" "d\x00\x03foojjjjjjjjjjjjjjj")
"h\x01h\x10l\x00\x00\x00\x01d\x00\x03%sjl\x00\x00\x00\x01" "d\x00\x03%sjjjjjjjjjjjjjjj" % tuple(val))
def test_packSet(self): """ Test primary support for set. """ self.assertEquals( self.packer.packOneTerm(set([Atom("bar"), Atom("foo")])), "h\td\x00\x04setsa\x02a\x10a\x10a\x08aPa0h\x10jjjjjjjjjjjjjjjj" "h\x01h\x10l\x00\x00\x00\x01d\x00\x03barjl\x00\x00\x00\x01" "d\x00\x03foojjjjjjjjjjjjjjj")
4212961111ef40b10725c0b5be6d0471d1175fa5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10537/4212961111ef40b10725c0b5be6d0471d1175fa5/test_packer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2920, 694, 12, 2890, 4672, 3536, 7766, 3354, 2865, 364, 444, 18, 3536, 365, 18, 11231, 8867, 12, 365, 18, 2920, 264, 18, 2920, 3335, 4065, 12, 542, 3816, 3641, 2932, 3215, 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, 1842, 67, 2920, 694, 12, 2890, 4672, 3536, 7766, 3354, 2865, 364, 444, 18, 3536, 365, 18, 11231, 8867, 12, 365, 18, 2920, 264, 18, 2920, 3335, 4065, 12, 542, 3816, 3641, 2932, 3215, 6,...
if self.file_size == -1 or self.file_size == 0xFFFFFFFFL:
if self.file_size in (0xffffffffffffffffL, 0xffffffffL):
def _decodeExtra(self): # Try to decode the extra field. extra = self.extra unpack = struct.unpack while extra: tp, ln = unpack('<hh', extra[:4]) if tp == 1: if ln >= 24: counts = unpack('<qqq', extra[4:28]) elif ln == 16: counts = unpack('<qq', extra[4:20]) elif ln == 8: counts = unpack('<q', extra[4:12]) elif ln == 0...
42282b10b46702cb6d8edce0152e597e44fb6834 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/42282b10b46702cb6d8edce0152e597e44fb6834/zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3922, 7800, 12, 2890, 4672, 468, 6161, 358, 2495, 326, 2870, 652, 18, 2870, 273, 365, 18, 7763, 6167, 273, 1958, 18, 17309, 1323, 2870, 30, 8071, 16, 7211, 273, 6167, 2668, 32, 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, 389, 3922, 7800, 12, 2890, 4672, 468, 6161, 358, 2495, 326, 2870, 652, 18, 2870, 273, 365, 18, 7763, 6167, 273, 1958, 18, 17309, 1323, 2870, 30, 8071, 16, 7211, 273, 6167, 2668, 32, 21...
def output (self, key) :
def output(self, key):
def set_output(self, key, val) : """ Define the input value for the specified index/key """
0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/0ceea93f880b610f6ec05e7f6f0d32b2a4dd7e66/node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2844, 12, 2890, 16, 498, 16, 1244, 13, 294, 3536, 13184, 326, 810, 460, 364, 326, 1269, 770, 19, 856, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2844, 12, 2890, 16, 498, 16, 1244, 13, 294, 3536, 13184, 326, 810, 460, 364, 326, 1269, 770, 19, 856, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.pieces.append('</%(tag)s>' % locals())
self.pieces.append("</%(tag)s>" % locals())
def unknown_endtag(self, tag): # called for each end tag, e.g. for </pre>, tag will be 'pre' # Reconstruct the original end tag. if tag not in self.elements_no_end_tag: self.pieces.append('</%(tag)s>' % locals())
50cbe5fb44dbff087e8cca95d332bb7b7cc15747 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10695/50cbe5fb44dbff087e8cca95d332bb7b7cc15747/feedparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5917, 67, 409, 2692, 12, 2890, 16, 1047, 4672, 468, 2566, 364, 1517, 679, 1047, 16, 425, 18, 75, 18, 364, 7765, 1484, 20401, 1047, 903, 506, 296, 1484, 11, 468, 868, 10062, 326, 2282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5917, 67, 409, 2692, 12, 2890, 16, 1047, 4672, 468, 2566, 364, 1517, 679, 1047, 16, 425, 18, 75, 18, 364, 7765, 1484, 20401, 1047, 903, 506, 296, 1484, 11, 468, 868, 10062, 326, 2282, ...
self.editor = widget_type(pValue, pType)
reg = module_registry.registry constant_class = reg.get_module_by_name(param.identifier, param.type, param.namespace) widget_type = constant_class.get_widget_class() self.editor = widget_type(param)
def __init__(self, pValue, pType, pMethod, widget_type, parent=None): """ QParameterQuery(pValue: str, pType: str, parent: QWidget, pMethod: int) -> QParameterQuery Construct the widget layout """ QtGui.QWidget.__init__(self, parent) self.value = pValue self.type = pType layout = QtGui.QHBoxLayout() layout.setSpacing...
badb3e82d63bc53883daa3ae8605b5a599c3639c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/badb3e82d63bc53883daa3ae8605b5a599c3639c/query_tab.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 18326, 16, 29171, 16, 293, 1305, 16, 3604, 67, 723, 16, 982, 33, 7036, 4672, 3536, 2238, 1662, 1138, 12, 84, 620, 30, 609, 16, 29171, 30, 609, 16, 982,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18326, 16, 29171, 16, 293, 1305, 16, 3604, 67, 723, 16, 982, 33, 7036, 4672, 3536, 2238, 1662, 1138, 12, 84, 620, 30, 609, 16, 29171, 30, 609, 16, 982,...
Subwidgets Class ---------- ----- fsbox ExFileSelectBox""" def __init__(self, master, cnf={}, **kw): TixWidget.__init__(self, master, 'tixExFileSelectDialog', ['options'], cnf, kw) self.subwidget_list['fsbox'] = _dummyExFileSelectBox(self, 'fsbox')
Subwidgets Class ---------- ----- fsbox ExFileSelectBox""" def __init__(self, master, cnf={}, **kw): TixWidget.__init__(self, master, 'tixExFileSelectDialog', ['options'], cnf, kw) self.subwidget_list['fsbox'] = _dummyExFileSelectBox(self, 'fsbox')
def invoke(self):
0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4356, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4356, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def MakeInstallerOSX(): import compileall PYTHONV=SDK["PYTHONVERSION"].replace("python", "").strip() if (os.path.isfile("Panda3D-tpl-rw.dmg")): oscmd("rm -f Panda3D-tpl-rw.dmg") if (os.path.isdir("Panda3D-tpl-rw")): oscmd("hdiutil detach Panda3D-tpl-rw -quiet -force", True) oscmd("rm -rf Panda3D-tpl-rw") if (os.path.i...
def MakeInstallerLinux(): import compileall PYTHONV=SDK["PYTHONVERSION"] if (os.path.isdir("linuxroot")): oscmd("chmod -R 755 linuxroot") if (os.path.exists("/usr/bin/dpkg-deb")): oscmd("dpkg --print-architecture > built/tmp/architecture.txt") if (os.path.exists("/usr/bin/rpmbuild")): oscmd("rpm -E '%_target_cpu' > bui...
f7a6726c5099ebae926d5d09ee18a7f322e81784 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8543/f7a6726c5099ebae926d5d09ee18a7f322e81784/makepanda.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 18678, 19475, 13332, 1930, 4074, 454, 12191, 20131, 58, 33, 22625, 9614, 16235, 20131, 5757, 11929, 309, 261, 538, 18, 803, 18, 291, 1214, 2932, 20132, 3085, 6, 3719, 30, 31476, 1264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4344, 18678, 19475, 13332, 1930, 4074, 454, 12191, 20131, 58, 33, 22625, 9614, 16235, 20131, 5757, 11929, 309, 261, 538, 18, 803, 18, 291, 1214, 2932, 20132, 3085, 6, 3719, 30, 31476, 1264...
for t in self.getConf("owner").split():
for t in self.getConfig("owner").split():
def response(self, msg, origin=""): if origin == "": for t in self.getConf("owner").split(): self.sock.send("PRIVMSG %s :%s\r\n" % (t.strip(), msg)) else: self.sock.send("PRIVMSG %s :%s\r\n" % (origin.split("!", 1)[0], msg))
f0ef72d9754bb11d23a3064fcf0a17add7d850ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/f0ef72d9754bb11d23a3064fcf0a17add7d850ef/IRCInterface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 766, 12, 2890, 16, 1234, 16, 4026, 1546, 6, 4672, 309, 4026, 422, 1408, 30, 364, 268, 316, 365, 18, 588, 809, 2932, 8443, 20387, 4939, 13332, 365, 18, 15031, 18, 4661, 2932, 7698, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 766, 12, 2890, 16, 1234, 16, 4026, 1546, 6, 4672, 309, 4026, 422, 1408, 30, 364, 268, 316, 365, 18, 588, 809, 2932, 8443, 20387, 4939, 13332, 365, 18, 15031, 18, 4661, 2932, 7698, 58, ...
res = field.validate(value)
res = field.validate(value, instance=instance, field=field, REQUEST=REQUEST)
def validate(self, instance, REQUEST=None, errors=None, data=None, metadata=None): """Validate the state of the entire object""" if REQUEST: fieldset = REQUEST.form.get('fieldset', None) else: fieldset = None fields = []
d0c4c33f8cc0c913d926a57235f8f5c314fdb12a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/d0c4c33f8cc0c913d926a57235f8f5c314fdb12a/Schema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 16, 791, 16, 12492, 33, 7036, 16, 1334, 33, 7036, 16, 501, 33, 7036, 16, 1982, 33, 7036, 4672, 3536, 4270, 326, 919, 434, 326, 7278, 733, 8395, 309, 12492, 30, 16885, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1954, 12, 2890, 16, 791, 16, 12492, 33, 7036, 16, 1334, 33, 7036, 16, 501, 33, 7036, 16, 1982, 33, 7036, 4672, 3536, 4270, 326, 919, 434, 326, 7278, 733, 8395, 309, 12492, 30, 16885, ...
self.assertEquals(len(control), len(result), "%s is wrong for %s" % (type(result), initial)) for pvalue, jvalue in zip(control, result): self.assertEquals(pvalue, jvalue) def _list_op_test(self, initial_value, op_func, check_value):
self.assertEquals(len(control), len(result), "%s: length for %s does not match that of list" % (test_name, type_name)) for control_value, result_value in zip(control, result): self.assertEquals(control_value, result_value, "%s: values from %s do not match those from list" % (test_name, type_name)) def _list_op_test(se...
def check_list(self, control, results, initial): for result in results: try: len(result) except: print result self.assertEquals(len(control), len(result), "%s is wrong for %s" % (type(result), initial)) for pvalue, jvalue in zip(control, result): self.assertEquals(pvalue, jvalue)
672f5dd2074392f75b046c28ac89f4164cbe2c1b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6753/672f5dd2074392f75b046c28ac89f4164cbe2c1b/test_java_list_delegate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1098, 12, 2890, 16, 3325, 16, 1686, 16, 2172, 4672, 364, 563, 316, 1686, 30, 775, 30, 562, 12, 2088, 13, 1335, 30, 1172, 563, 365, 18, 11231, 8867, 12, 1897, 12, 7098, 3631,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1098, 12, 2890, 16, 3325, 16, 1686, 16, 2172, 4672, 364, 563, 316, 1686, 30, 775, 30, 562, 12, 2088, 13, 1335, 30, 1172, 563, 365, 18, 11231, 8867, 12, 1897, 12, 7098, 3631,...
print errors, "errors"
self.checkJoin(RFC2396_BASE, 'g:h', 'g:h') self.checkJoin(RFC2396_BASE, 'g', 'http://a/b/c/g') self.checkJoin(RFC2396_BASE, './g', 'http://a/b/c/g') self.checkJoin(RFC2396_BASE, 'g/', 'http://a/b/c/g/') self.checkJoin(RFC2396_BASE, '/g', 'http://a/g') self.checkJoin(RFC2396_BASE, '//g', 'http://g') self.checkJoin(RFC23...
def checkJoin(relurl, expected): global errors result = urlparse.urljoin(RFC1808_BASE, relurl) print "%-13s = %r" % (relurl, result) if result != expected: errors += 1 print "urljoin(%r, %r)" % (RFC1808_BASE, relurl) print ("expected %r,\n" " got %r") % (expected, result)
6ec967d066a9de43244a965fa4c5421f279b77f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/6ec967d066a9de43244a965fa4c5421f279b77f4/test_urlparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 4572, 12, 2878, 718, 16, 2665, 4672, 2552, 1334, 563, 273, 15185, 18, 718, 5701, 12, 17926, 2643, 6840, 67, 8369, 16, 1279, 718, 13, 1172, 2213, 17, 3437, 87, 273, 738, 86, 6, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 4572, 12, 2878, 718, 16, 2665, 4672, 2552, 1334, 563, 273, 15185, 18, 718, 5701, 12, 17926, 2643, 6840, 67, 8369, 16, 1279, 718, 13, 1172, 2213, 17, 3437, 87, 273, 738, 86, 6, 7...
assert self.policy.const_propagate, ( "hint() can only be used with a policy of const_propagate=True")
def hint_needs_constant(self, a): # Force the given LLRuntimeValue to be a fixed constant. must_restart = False fix_me = [a] while fix_me: a = fix_me.pop() assert isinstance(a, LLRuntimeValue) if a.becomes == "fixed": continue # already fixed print 'fixing:', a if a.becomes == "var": must_restart = True # this Va...
9ff1bb8b5ef2e3bd2c28b6210ffb0f9937ee702f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/9ff1bb8b5ef2e3bd2c28b6210ffb0f9937ee702f/llabstractinterp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7380, 67, 20600, 67, 14384, 12, 2890, 16, 279, 4672, 468, 11889, 326, 864, 29863, 5576, 620, 358, 506, 279, 5499, 5381, 18, 1297, 67, 19164, 273, 1083, 2917, 67, 3501, 273, 306, 69, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7380, 67, 20600, 67, 14384, 12, 2890, 16, 279, 4672, 468, 11889, 326, 864, 29863, 5576, 620, 358, 506, 279, 5499, 5381, 18, 1297, 67, 19164, 273, 1083, 2917, 67, 3501, 273, 306, 69, 65...
if self.parser.headPointer is not None:
if self.parser.openElements[-1] in ("title", "style", "script"):
def processNonSpaceCharacter(self, data): if self.parser.headPointer is not None: self.parser.openElements[-1].appendChild(TextNode(data)) else: self.parser.switchInsertionMode("afterHead") self.parser.processCharacter(data) """ if self.collectingCharacters: self.characterBuffer += data else: self.anythingElse() self.p...
48e2583c31acb49ae60a5b8f05b988486e8e0fcb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9368/48e2583c31acb49ae60a5b8f05b988486e8e0fcb/parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 3989, 3819, 7069, 12, 2890, 16, 501, 4672, 309, 365, 18, 4288, 18, 3190, 3471, 18919, 21, 65, 316, 7566, 2649, 3113, 315, 4060, 3113, 315, 4263, 6, 4672, 365, 18, 4288, 18, 3190,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3989, 3819, 7069, 12, 2890, 16, 501, 4672, 309, 365, 18, 4288, 18, 3190, 3471, 18919, 21, 65, 316, 7566, 2649, 3113, 315, 4060, 3113, 315, 4263, 6, 4672, 365, 18, 4288, 18, 3190,...
url, revnum = rev.encode(self.encoding).split('@', 1)
url, revnum = rev.encode(self.encoding).rsplit('@', 1)
def revsplit(self, rev): url, revnum = rev.encode(self.encoding).split('@', 1) revnum = int(revnum) parts = url.split('/', 1) uuid = parts.pop(0)[4:] mod = '' if parts: mod = '/' + parts[0] return uuid, mod, revnum
1702d7da01c6fa4d96c31bb868cb687aa8dab7cb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/1702d7da01c6fa4d96c31bb868cb687aa8dab7cb/subversion.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5588, 4939, 12, 2890, 16, 5588, 4672, 880, 16, 5588, 2107, 273, 5588, 18, 3015, 12, 2890, 18, 5999, 2934, 86, 4939, 2668, 36, 2187, 404, 13, 5588, 2107, 273, 509, 12, 9083, 2107, 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, 5588, 4939, 12, 2890, 16, 5588, 4672, 880, 16, 5588, 2107, 273, 5588, 18, 3015, 12, 2890, 18, 5999, 2934, 86, 4939, 2668, 36, 2187, 404, 13, 5588, 2107, 273, 509, 12, 9083, 2107, 13, ...
if isinstance(vals.get('_parent_purchase.currency'), (int, long)):
currency = vals.get('_parent_purchase.currency') if currency and isinstance(currency, (int, long)):
def on_change_with_amount(self, vals): currency_obj = self.pool.get('currency.currency') if vals.get('type') == 'line': if isinstance(vals.get('_parent_purchase.currency'), (int, long)): currency = currency_obj.browse( vals['_parent_purchase.currency']) else: currency = vals['_parent_purchase.currency'] amount = Decima...
cf9e7f9bb3947a300ed9b580be2d95da29a2019d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9276/cf9e7f9bb3947a300ed9b580be2d95da29a2019d/purchase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3427, 67, 1918, 67, 8949, 12, 2890, 16, 5773, 4672, 5462, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 7095, 18, 7095, 6134, 309, 5773, 18, 588, 2668, 723, 6134, 422, 296, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3427, 67, 1918, 67, 8949, 12, 2890, 16, 5773, 4672, 5462, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 7095, 18, 7095, 6134, 309, 5773, 18, 588, 2668, 723, 6134, 422, 296, 1...
plot.yrange = (0, len(spike_trains)-1)
plot.yrange = (-0.5, len(spike_trains)-0.5)
def plot_raster(spike_trains, plot=None, **style): """ Plot raster plot. """ import biggles # Compute trial number L = [ len(train) for train in spike_trains ] r = np.arange(len(spike_trains)) n = np.repeat(r, L) # Spike timings s = np.concatenate(tuple(spike_trains)) c = biggles.Points(s, n, type='dot') c.style(**...
2ab363a56510bc9bbc386e65baeaf98d22b44ad8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7039/2ab363a56510bc9bbc386e65baeaf98d22b44ad8/_thorns.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 67, 24215, 12, 1752, 2547, 67, 313, 4167, 16, 3207, 33, 7036, 16, 2826, 4060, 4672, 3536, 15211, 12553, 3207, 18, 3536, 1930, 5446, 75, 1040, 225, 468, 8155, 12950, 1300, 511, 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, 3207, 67, 24215, 12, 1752, 2547, 67, 313, 4167, 16, 3207, 33, 7036, 16, 2826, 4060, 4672, 3536, 15211, 12553, 3207, 18, 3536, 1930, 5446, 75, 1040, 225, 468, 8155, 12950, 1300, 511, 273,...
- ``index`` (int) is the index of the group generated by the
- ``index`` (int) -- the index of the group generated by the
def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group. INPUT: - ``max_prime`` (int, default -1) -- saturation is performed for all primes up to `max_prime`. If `-1` (default) then an upper bound is computed for the primes at which the subgroup may not be satura...
8b53e056cc765e689493ec9632c441ee03a3206a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8b53e056cc765e689493ec9632c441ee03a3206a/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, ...
res = self.pool.get('stock.location')._product_reserve(cr, uid, [move.location_id.id], move.product_id.id, move.product_qty, {'uom': move.product_uom.id})
res = self.pool.get('stock.location')._product_reserve(cr, uid, [move.location_id.id], move.product_id.id, move.product_qty, {'uom': move.product_uom.id}, lock=True)
def check_assign(self, cr, uid, ids, context=None): """ Checks the product type and accordingly writes the state. @return: No. of moves done """ done = [] count = 0 pickings = {} if context is None: context = {} for move in self.browse(cr, uid, ids, context=context): if move.product_id.type == 'consu': if move.state in...
fed8a6838f1bfe251e8f3b59483688b993f333a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fed8a6838f1bfe251e8f3b59483688b993f333a8/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 6145, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 3536, 13074, 326, 3017, 618, 471, 15905, 7262, 326, 919, 18, 632, 2463, 30, 2631, 18, 434, 13934, 2731, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 6145, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 3536, 13074, 326, 3017, 618, 471, 15905, 7262, 326, 919, 18, 632, 2463, 30, 2631, 18, 434, 13934, 2731, ...
while frm in temp[u'in'][type]:
if frm in temp[u'in'][type]:
def shelve_remove_in(new_data, (frm, to), linktype): import sys # sys.stderr.write('Starting to remove in\n') temp = new_data.get(to, {}) if not temp.has_key(u'in'): return for type in linktype: # sys.stderr.write("Removing %s %s %s\n" % (frm, to, linktype)) # eg. when the shelve is just started, it's empty if not tem...
988ed78fb4eda39b83ac53a5b0111bdd4557a71b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/988ed78fb4eda39b83ac53a5b0111bdd4557a71b/savegraphdata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 699, 292, 537, 67, 4479, 67, 267, 12, 2704, 67, 892, 16, 261, 4840, 81, 16, 358, 3631, 1692, 723, 4672, 1930, 2589, 468, 2589, 18, 11241, 18, 2626, 2668, 11715, 358, 1206, 316, 64, 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, 699, 292, 537, 67, 4479, 67, 267, 12, 2704, 67, 892, 16, 261, 4840, 81, 16, 358, 3631, 1692, 723, 4672, 1930, 2589, 468, 2589, 18, 11241, 18, 2626, 2668, 11715, 358, 1206, 316, 64, 8...
if not arch:
if not (arch and pkg[0] == '-'):
def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg`
b8d4deefd1e15dc48987f2d10c01b6f060204f30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/b8d4deefd1e15dc48987f2d10c01b6f060204f30/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 556, 67, 3168, 12, 2890, 16, 3475, 4672, 3536, 7001, 279, 2549, 358, 326, 7769, 7006, 487, 3764, 635, 1375, 10657, 68, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 556, 67, 3168, 12, 2890, 16, 3475, 4672, 3536, 7001, 279, 2549, 358, 326, 7769, 7006, 487, 3764, 635, 1375, 10657, 68, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
draw(0, xb, yb, -yb)
if xb: draw(0, xb, yb, -yb)
def draw(x0, x1, y0, y1):
8ae8e887f5c34159e20396b8f57e6eb1d58b979f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10962/8ae8e887f5c34159e20396b8f57e6eb1d58b979f/im.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 12, 92, 20, 16, 619, 21, 16, 677, 20, 16, 677, 21, 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...
[ 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, 3724, 12, 92, 20, 16, 619, 21, 16, 677, 20, 16, 677, 21, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if rawQueueStats.get('counters:deletes_processed_priority'): deletes_processed_priority = long(struct.unpack('>q', rawQueueStats['counters:deletes_processed_priority'])[0]) else:
def get_queue_statistics(self): """ Get a set of statistics from the HBase metrics table regarding processing queues """ aggStats = {} rawQueueStats = self._make_row_nice(self.client.getRow('metrics', 'crash_report_queues')[0]) if rawQueueStats.get('counters:inserts_unprocessed_legacy'): inserts_unprocessed_legacy = lo...
cadce30658d3300f051172e443dbfa5ec78d5b7e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12383/cadce30658d3300f051172e443dbfa5ec78d5b7e/hbaseClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4000, 67, 14438, 12, 2890, 4672, 3536, 968, 279, 444, 434, 7691, 628, 326, 30265, 4309, 1014, 29012, 4929, 11897, 3536, 10421, 4195, 273, 2618, 1831, 3183, 4195, 273, 365, 6315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4000, 67, 14438, 12, 2890, 4672, 3536, 968, 279, 444, 434, 7691, 628, 326, 30265, 4309, 1014, 29012, 4929, 11897, 3536, 10421, 4195, 273, 2618, 1831, 3183, 4195, 273, 365, 6315, ...
'href': req.href.browser(path, rev=rev or repos.youngest_rev), 'log_href': req.href.log(path, rev=rev or None), 'restr_changeset_href': req.href.changeset(node.rev, path),
'href': req.href.browser(path, rev=rev), 'log_href': req.href.log(path, rev=rev), 'restr_changeset_href': req.href.changeset(node.rev, node.created_path),
def process_request(self, req): path = req.args.get('path', '/') rev = req.args.get('rev')
ff699c79b8bbb51d38965f67cd0b1df9c110747b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/ff699c79b8bbb51d38965f67cd0b1df9c110747b/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 589, 273, 1111, 18, 1968, 18, 588, 2668, 803, 2187, 2023, 13, 5588, 273, 1111, 18, 1968, 18, 588, 2668, 9083, 6134, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2293, 12, 2890, 16, 1111, 4672, 589, 273, 1111, 18, 1968, 18, 588, 2668, 803, 2187, 2023, 13, 5588, 273, 1111, 18, 1968, 18, 588, 2668, 9083, 6134, 2, -100, -100, -100, -100,...
self.assertEquals(os.path.realpath(os.path.join(base, 'here', 'absolute.txt')),
self.assertEquals(os.path.join(base, 'here', 'absolute.txt'),
def test_getpath(self): base = os.path.dirname(self.filename) config = self._read() config.set('a', 'path_a', os.path.join(base, 'here', 'absolute.txt')) config.set('a', 'path_b', 'thisdir.txt') config.set('a', 'path_c', os.path.join(os.pardir, 'parentdir.txt'))
886fde18162d22bdb313cb00e2b68f191fbe708d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/886fde18162d22bdb313cb00e2b68f191fbe708d/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 803, 12, 2890, 4672, 1026, 273, 1140, 18, 803, 18, 12287, 12, 2890, 18, 3459, 13, 642, 273, 365, 6315, 896, 1435, 642, 18, 542, 2668, 69, 2187, 296, 803, 67, 69, 2187,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 803, 12, 2890, 4672, 1026, 273, 1140, 18, 803, 18, 12287, 12, 2890, 18, 3459, 13, 642, 273, 365, 6315, 896, 1435, 642, 18, 542, 2668, 69, 2187, 296, 803, 67, 69, 2187,...
self._insertRecord(dbTable, ps)
ins = self.createInsertString(dbTable,ps) self.execCommand0(ins)
def insertRecord(self, dbTable, ps): #runId = ps.get("RUNID") #dbName = "logs.%s" % runId #if self.dbExists(dbName) == False: # self.createDb(self,dbName) #self.insertRecord(ps, dbName) self._insertRecord(dbTable, ps)
dcff16115fd4b90da4b2aad9583613f6ddb7920b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6552/dcff16115fd4b90da4b2aad9583613f6ddb7920b/DatabaseLogger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 2115, 12, 2890, 16, 1319, 1388, 16, 4250, 4672, 468, 2681, 548, 273, 4250, 18, 588, 2932, 15238, 734, 7923, 468, 1966, 461, 273, 315, 10011, 7866, 87, 6, 738, 1086, 548, 468, 430...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 2115, 12, 2890, 16, 1319, 1388, 16, 4250, 4672, 468, 2681, 548, 273, 4250, 18, 588, 2932, 15238, 734, 7923, 468, 1966, 461, 273, 315, 10011, 7866, 87, 6, 738, 1086, 548, 468, 430...
return self.conn.request_get(method)
return self.conn.request_post(method)
def sync(self, repoid): method = "/repositories/%s/sync/" % repoid return self.conn.request_get(method)
b041b18173ea753bf33facffe295ddf72e21762c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/b041b18173ea753bf33facffe295ddf72e21762c/connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 12, 2890, 16, 2071, 839, 4672, 707, 273, 2206, 26626, 5258, 87, 19, 8389, 4898, 738, 2071, 839, 327, 365, 18, 4646, 18, 2293, 67, 588, 12, 2039, 13, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3792, 12, 2890, 16, 2071, 839, 4672, 707, 273, 2206, 26626, 5258, 87, 19, 8389, 4898, 738, 2071, 839, 327, 365, 18, 4646, 18, 2293, 67, 588, 12, 2039, 13, 2, -100, -100, -100, -100, ...
guide_notebooks = [ nb for nb in result[ "notebooks" ] if nb.name == u"Luminotes user guide" ]
anon_result = self.__users.current( None ) guide_notebooks = [ nb for nb in anon_result[ "notebooks" ] if nb.name == u"Luminotes user guide" ]
def guide( self, note_id = None, user_id = None ): """ Provide the information necessary to display the Luminotes user guide.
ae37f4d951e49ccae7506cf5f177d883a0ca3140 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6754/ae37f4d951e49ccae7506cf5f177d883a0ca3140/Root.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7343, 12, 365, 16, 4721, 67, 350, 273, 599, 16, 729, 67, 350, 273, 599, 262, 30, 3536, 26569, 326, 1779, 4573, 358, 2562, 326, 511, 20668, 6366, 729, 7343, 18, 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, 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, 7343, 12, 365, 16, 4721, 67, 350, 273, 599, 16, 729, 67, 350, 273, 599, 262, 30, 3536, 26569, 326, 1779, 4573, 358, 2562, 326, 511, 20668, 6366, 729, 7343, 18, 2, -100, -100, -100, -...
gen = XmlDumpReplacePageGenerator(xmlfilename, replacements, exceptions)
gen = XmlDumpReplacePageGenerator(xmlFilename, replacements, exceptions)
def main(): gen = None # How we want to retrieve information on which pages need to be changed. # Can either be 'xmldump', 'textfile' or 'userinput'. source = None # Array which will collect commandline parameters. # First element is original text, second element is replacement text. commandline_replacements = [] # A l...
cf52924669998eafb14056ed78d4c70bf084d972 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/cf52924669998eafb14056ed78d4c70bf084d972/replace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3157, 273, 599, 468, 9017, 732, 2545, 358, 4614, 1779, 603, 1492, 4689, 1608, 358, 506, 3550, 18, 468, 4480, 3344, 506, 296, 2902, 8481, 2187, 296, 955, 768, 11, 578, 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, 2774, 13332, 3157, 273, 599, 468, 9017, 732, 2545, 358, 4614, 1779, 603, 1492, 4689, 1608, 358, 506, 3550, 18, 468, 4480, 3344, 506, 296, 2902, 8481, 2187, 296, 955, 768, 11, 578, 296, ...
return _('[hidden]')
return self._('[hidden]')
def plain(self, escape=0, hyperlink=0): '''Render a "plain" representation of the property
b8b5dcad40d558bb420083124fa7c9603708cbf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/b8b5dcad40d558bb420083124fa7c9603708cbf4/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7351, 12, 2890, 16, 4114, 33, 20, 16, 9512, 1232, 33, 20, 4672, 9163, 3420, 279, 315, 7446, 6, 4335, 434, 326, 1272, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7351, 12, 2890, 16, 4114, 33, 20, 16, 9512, 1232, 33, 20, 4672, 9163, 3420, 279, 315, 7446, 6, 4335, 434, 326, 1272, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
self.ui.warn("patch %s not in series\n" % patch) sys.exit(1) if sno >= len(self.series): self.ui.warn("patch number %d is out of range\n" % sno) sys.exit(1) patch = self.series[sno] else: self.ui.warn("patch %s not in series\n" % patch) sys.exit(1) return patch
pass else: if sno < len(self.series): patch = self.series[sno] return patch if not strict: if res: return res minus = patch.rsplit('-', 1) if len(minus) > 1: res = partial_name(minus[0]) if res: i = self.series.index(res) try: off = int(minus[1] or 1) except(ValueError, OverflowError): pass else: if i - off >= 0: retu...
def lookup(self, patch): if patch == None: return None if patch in self.series: return patch if not os.path.isfile(os.path.join(self.path, patch)): try: sno = int(patch) except(ValueError, OverflowError): self.ui.warn("patch %s not in series\n" % patch) sys.exit(1) if sno >= len(self.series): self.ui.warn("patch number...
869bc559c3c1b4a664440f078e225f6f1bdf24dd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/869bc559c3c1b4a664440f078e225f6f1bdf24dd/mq.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 12, 2890, 16, 4729, 4672, 309, 4729, 422, 599, 30, 327, 599, 309, 4729, 316, 365, 18, 10222, 30, 327, 4729, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 538, 18, 803, 18, 5701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 12, 2890, 16, 4729, 4672, 309, 4729, 422, 599, 30, 327, 599, 309, 4729, 316, 365, 18, 10222, 30, 327, 4729, 309, 486, 1140, 18, 803, 18, 291, 768, 12, 538, 18, 803, 18, 5701, ...
The maximum line length can either be specified by maxlinelen, or you can pass in the name of the header field (e.g. "Subject") to let this class guess the best line length to use to prevent wrapping. The default maxlinelen is 76.
The maximum line length can be specified explicitly via maxlinelen. You can also pass None for maxlinelen and the name of a header field (e.g. "Subject") to let the constructor guess the best line length to use. The default maxlinelen is 76.
def __init__(self, s, charset=None, maxlinelen=MAXLINELEN, header_name=None): """Create a MIME-compliant header that can contain many languages.
6e140bb39c554f1c25c4fbddbd50829e7ad353ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6e140bb39c554f1c25c4fbddbd50829e7ad353ea/Header.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 272, 16, 4856, 33, 7036, 16, 943, 7511, 292, 275, 33, 6694, 5997, 13017, 16, 1446, 67, 529, 33, 7036, 4672, 3536, 1684, 279, 13195, 17, 832, 18515, 1446,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 272, 16, 4856, 33, 7036, 16, 943, 7511, 292, 275, 33, 6694, 5997, 13017, 16, 1446, 67, 529, 33, 7036, 4672, 3536, 1684, 279, 13195, 17, 832, 18515, 1446,...
return '%s - %s' % (self.city, self.address1)
return '%s - %s' % (self.city, self.address)
def __unicode__(self): return '%s - %s' % (self.city, self.address1)
e50fbe181a65359ccddf4ef0af8ea391ff321314 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1104/e50fbe181a65359ccddf4ef0af8ea391ff321314/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 327, 1995, 87, 300, 738, 87, 11, 738, 261, 2890, 18, 14240, 16, 365, 18, 2867, 21, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9124, 972, 12, 2890, 4672, 327, 1995, 87, 300, 738, 87, 11, 738, 261, 2890, 18, 14240, 16, 365, 18, 2867, 21, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
mul1s rax, reg mulel rax muleh rdx, flags=(OF,CF)
mul1s rax, reg, flags=(OF,CF) mulel rax muleh rdx
def macroop IMUL_R
b64d0bdeda1662091746c3695b4429fcc6f69342 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6787/b64d0bdeda1662091746c3695b4429fcc6f69342/multiply_and_divide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 6246, 1506, 67, 54, 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, 11522, 556, 6246, 1506, 67, 54, 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...
entries = njoin(path,'.svn','entries')
def _get_svn_revision(self,path): """ Return path's SVN revision number. """ entries = njoin(path,'.svn','entries') revision = None if os.path.isfile(entries): f = open(entries) m = re.search(r'revision="(?P<revision>\d+)"',f.read()) f.close() if m: revision = int(m.group('revision')) return revision
843327063a597e72376beb0dad5381a94b300df4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/843327063a597e72376beb0dad5381a94b300df4/misc_util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 31505, 67, 13057, 12, 2890, 16, 803, 4672, 3536, 2000, 589, 1807, 29537, 50, 6350, 1300, 18, 3536, 6350, 273, 599, 309, 1140, 18, 803, 18, 291, 768, 12, 8219, 4672, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 31505, 67, 13057, 12, 2890, 16, 803, 4672, 3536, 2000, 589, 1807, 29537, 50, 6350, 1300, 18, 3536, 6350, 273, 599, 309, 1140, 18, 803, 18, 291, 768, 12, 8219, 4672, 284, ...
last_date = datetime(record.name, '%Y-%m-%d') + relativedelta(months=1) - 1 task_obj=self.pool.get('project.task.work')
last_date = datetime.strptime(record.name, '%Y-%m-%d') + relativedelta(months=1) - relativedelta(days=1) task_obj = self.pool.get('project.task.work')
def _get_task_hours(self, cr, uid, ids, name,args,context): result = {} for record in self.browse(cr, uid, ids,context): last_date = datetime(record.name, '%Y-%m-%d') + relativedelta(months=1) - 1 task_obj=self.pool.get('project.task.work') task_ids = task_obj.search(cr, uid, [('user_id','=',record.user_id.id),('date',...
d0317628aade90d1d8015cae782440683b862e21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d0317628aade90d1d8015cae782440683b862e21/task_report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 4146, 67, 16814, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1968, 16, 2472, 4672, 563, 273, 2618, 364, 1409, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4146, 67, 16814, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1968, 16, 2472, 4672, 563, 273, 2618, 364, 1409, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258...
binomialSelection())
randomSelection())
def testBinomialSelection(self): 'Testing binomialSelection mating scheme (FIXME: imcomplete)' simu = simulator(population(10, loci=[1], ploidy=1), binomialSelection())
fbcd95cb11f0a0ee25d162265b7ec02e1ba11c4b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/fbcd95cb11f0a0ee25d162265b7ec02e1ba11c4b/test_05_matings.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 9913, 11496, 6233, 12, 2890, 4672, 296, 22218, 4158, 11496, 6233, 312, 1776, 4355, 261, 25810, 30, 709, 6226, 2506, 3142, 89, 273, 3142, 11775, 12, 23555, 12, 2163, 16, 1515, 77, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 9913, 11496, 6233, 12, 2890, 4672, 296, 22218, 4158, 11496, 6233, 312, 1776, 4355, 261, 25810, 30, 709, 6226, 2506, 3142, 89, 273, 3142, 11775, 12, 23555, 12, 2163, 16, 1515, 77, 2...
headers.
headers.
def extshelp(): doc = _(r''' Mercurial has the ability to add new features through the use of extensions. Extensions may add new commands, add options to existing commands, change the default behavior of commands, or implement hooks. Extensions are not loaded by default for a variety of reasons: they can increase star...
6559436b337b2c23d3cc0ede357a66e82d94a983 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/6559436b337b2c23d3cc0ede357a66e82d94a983/help.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1110, 674, 1992, 13332, 997, 273, 389, 12, 86, 26418, 14940, 1397, 649, 711, 326, 7123, 358, 527, 394, 4467, 3059, 326, 999, 434, 4418, 18, 23105, 2026, 527, 394, 4364, 16, 527, 702, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1110, 674, 1992, 13332, 997, 273, 389, 12, 86, 26418, 14940, 1397, 649, 711, 326, 7123, 358, 527, 394, 4467, 3059, 326, 999, 434, 4418, 18, 23105, 2026, 527, 394, 4364, 16, 527, 702, 3...
os.environ['DEMOCRACY_DOWNLOADER_LOG'] = \ config.get(prefs.DOWNLOADER_LOG_PATHNAME)
os.environ['DEMOCRACY_DOWNLOADER_LOG'] = config.get(prefs.DOWNLOADER_LOG_PATHNAME)
def launchDownloadDaemon(oldpid, env): killProcess(oldpid) for key, value in env.items(): os.environ[key] = value os.environ['DEMOCRACY_DOWNLOADER_LOG'] = \ config.get(prefs.DOWNLOADER_LOG_PATHNAME) # Start the downloader. We use the subprocess module to turn off the # console. One slightly awkward thing is that the ...
24edb968426de64c0cc9e61f085bf1ff09896f3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/24edb968426de64c0cc9e61f085bf1ff09896f3e/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8037, 7109, 12858, 12, 1673, 6610, 16, 1550, 4672, 8673, 2227, 12, 1673, 6610, 13, 364, 498, 16, 460, 316, 1550, 18, 3319, 13332, 1140, 18, 28684, 63, 856, 65, 273, 460, 1140, 18, 2868...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8037, 7109, 12858, 12, 1673, 6610, 16, 1550, 4672, 8673, 2227, 12, 1673, 6610, 13, 364, 498, 16, 460, 316, 1550, 18, 3319, 13332, 1140, 18, 28684, 63, 856, 65, 273, 460, 1140, 18, 2868...
for li, lc in ((_locale.RADIXCHAR, "decimal_point"), (_locale.THOUSEP, "thousands_sep")):
for lc in ("decimal_point", "thousands_sep"):
def test_lc_numeric_localeconv(self): # Test localeconv against known values for loc in candidate_locales: try: setlocale(LC_NUMERIC, loc) setlocale(LC_CTYPE, loc) except Error: continue for li, lc in ((_locale.RADIXCHAR, "decimal_point"), (_locale.THOUSEP, "thousands_sep")): self.numeric_tester('localeconv', localecon...
af7d345fb06e6621a9cf37afe65a93daf928046c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/af7d345fb06e6621a9cf37afe65a93daf928046c/test__locale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 17704, 67, 5246, 67, 3729, 17181, 90, 12, 2890, 4672, 468, 7766, 1191, 17181, 90, 5314, 4846, 924, 364, 1515, 316, 5500, 67, 22638, 30, 775, 30, 444, 6339, 12, 13394, 67, 229...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17704, 67, 5246, 67, 3729, 17181, 90, 12, 2890, 4672, 468, 7766, 1191, 17181, 90, 5314, 4846, 924, 364, 1515, 316, 5500, 67, 22638, 30, 775, 30, 444, 6339, 12, 13394, 67, 229...
('__setattr__', lambda self, name, value: self.setValue_forKey_(name, value)),
('__setattr__', lambda self, name, value: self.setValue_forKey_(value, name)),
def NSMutableData__setitem__(self, item, value): self.mutableBytes()[item] = value
e64f3ad5a7d6d992702cb434d81f790acc8cc9fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/e64f3ad5a7d6d992702cb434d81f790acc8cc9fb/_convenience.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 423, 7303, 3050, 751, 972, 542, 1726, 972, 12, 2890, 16, 761, 16, 460, 4672, 365, 18, 5146, 2160, 1435, 63, 1726, 65, 273, 460, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 423, 7303, 3050, 751, 972, 542, 1726, 972, 12, 2890, 16, 761, 16, 460, 4672, 365, 18, 5146, 2160, 1435, 63, 1726, 65, 273, 460, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
elif gv_x.fits_in_immediate():
elif gv_x.fits_in_uimm():
def _compare_u(self, op, gv_x, gv_y): gv_result = ConditionVar() if gv_y.fits_in_immediate(): self.insns.append( insn.CMPWLI(self.cmp2info[op], gv_result, [gv_x, gv_y])) elif gv_x.fits_in_immediate(): self.insns.append( insn.CMPWLI(self.cmp2info_flipped[op], gv_result, [gv_y, gv_x])) else: self.insns.append( insn.CMPWL...
1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/1a13bb2e4052fbbe77efb6b6dbf2fa6c38d03672/rgenop.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9877, 67, 89, 12, 2890, 16, 1061, 16, 11404, 67, 92, 16, 11404, 67, 93, 4672, 11404, 67, 2088, 273, 7949, 1537, 1435, 309, 11404, 67, 93, 18, 18352, 67, 267, 67, 381, 6785, 1333...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9877, 67, 89, 12, 2890, 16, 1061, 16, 11404, 67, 92, 16, 11404, 67, 93, 4672, 11404, 67, 2088, 273, 7949, 1537, 1435, 309, 11404, 67, 93, 18, 18352, 67, 267, 67, 381, 6785, 1333...
if os.path.getctime(file2) < os.path.getctime(file1):
if os.path.getmtime(file2) < os.path.getmtime(file1):
def is_older(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getctime(file2) < os.path.getctime(file1): return True return False
5af1bbb9572c371433e72ca638f5f8df34c52d27 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5af1bbb9572c371433e72ca638f5f8df34c52d27/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 1498, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16, 3712...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 1498, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16, 3712...
raise ScanError('Unable to scan %s' % file)
raise ConnectionError('Unable to scan %s' % file)
def scan_file(self, file): """ Scan a file or directory given by filename and stop on first virus or error found. Scan with archive support enabled.
bef3518a3bfa5e86c06cb84c8b0244be7487803a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8077/bef3518a3bfa5e86c06cb84c8b0244be7487803a/pyclamd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 67, 768, 12, 2890, 16, 585, 4672, 3536, 8361, 279, 585, 578, 1867, 864, 635, 1544, 471, 2132, 603, 1122, 16831, 407, 578, 555, 1392, 18, 8361, 598, 5052, 2865, 3696, 18, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4135, 67, 768, 12, 2890, 16, 585, 4672, 3536, 8361, 279, 585, 578, 1867, 864, 635, 1544, 471, 2132, 603, 1122, 16831, 407, 578, 555, 1392, 18, 8361, 598, 5052, 2865, 3696, 18, 2, -100,...
channelMap[cIndex] = lc.getName().getValue()
channelMap[cIndex] = lc.getName() and lc.getName().getValue() or str(cIndex)
def split_image(client, imageId, dir, unformattedImageName = "tubulin_P037_T%05d_C%s_Z%d_S1.tif", dims = ('T', 'C', 'Z')): """ Splits the image into component planes, which are saved as local tiffs according to unformattedImageName. E.g. myLocalDir/tubulin_P037_T%05d_C%s_Z%d_S1.tif which will be formatted according to ...
06f7011da8848a0b70f96e3b29b274813bb4c71d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/06f7011da8848a0b70f96e3b29b274813bb4c71d/script_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 67, 2730, 12, 2625, 16, 30225, 16, 1577, 16, 640, 14897, 2040, 461, 273, 315, 88, 373, 332, 267, 67, 52, 4630, 27, 67, 56, 9, 6260, 72, 67, 39, 9, 87, 67, 62, 9, 72, 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, 1416, 67, 2730, 12, 2625, 16, 30225, 16, 1577, 16, 640, 14897, 2040, 461, 273, 315, 88, 373, 332, 267, 67, 52, 4630, 27, 67, 56, 9, 6260, 72, 67, 39, 9, 87, 67, 62, 9, 72, 67, ...
self._current_ref.journal = content
if self._current_ref.journal : self._current_ref.journal += ' ' + content else : self._current_ref.journal = content
def journal(self, content): self._current_ref.journal = content
0dfd00f6ba76fc7874c15ac68b46856386a5d222 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/0dfd00f6ba76fc7874c15ac68b46856386a5d222/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13001, 12, 2890, 16, 913, 4672, 365, 6315, 2972, 67, 1734, 18, 22644, 273, 913, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13001, 12, 2890, 16, 913, 4672, 365, 6315, 2972, 67, 1734, 18, 22644, 273, 913, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
[0.99998760 ... 1.0000134]
[0.99999332 .. 1.0000077]
def heegner_index(self, D, min_p=3, prec=5, verbose=False): """ Return an interval that contains the SQUARE of the index of the Heegner point in the group of K-rational points *modulo torsion* on the twist of the elliptic curve by D, computed using the Gross-Zagier formula and/or a point search.
d044a5648ebd5e6728541f0dd4633acd2064b2f4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/d044a5648ebd5e6728541f0dd4633acd2064b2f4/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3904, 1332, 1224, 67, 1615, 12, 2890, 16, 463, 16, 225, 1131, 67, 84, 33, 23, 16, 13382, 33, 25, 16, 3988, 33, 8381, 4672, 3536, 2000, 392, 3673, 716, 1914, 326, 348, 17483, 434, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3904, 1332, 1224, 67, 1615, 12, 2890, 16, 463, 16, 225, 1131, 67, 84, 33, 23, 16, 13382, 33, 25, 16, 3988, 33, 8381, 4672, 3536, 2000, 392, 3673, 716, 1914, 326, 348, 17483, 434, 326...
res = self.createLink(links) if len(res['Value']['Successful']) == len(links.keys()):
res = self.createLink( links ) if len( res['Value']['Successful'] ) == len( links.keys() ):
def __createDataset(self,datasetName,lfns): res = self.__makeDirs(datasetName) if not res['OK']: return res links = {} for lfn in lfns: res = self.__getLFNGuid(lfn) if not res['OK']: return res else: link = "%s/%s" % (datasetName, res['Value']) links[link] = lfn res = self.createLink(links) if len(res['Value']['Success...
6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2640, 10656, 12, 2890, 16, 8682, 461, 16, 20850, 2387, 4672, 400, 273, 365, 16186, 6540, 9872, 12, 8682, 461, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 4716, 273, 2618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2640, 10656, 12, 2890, 16, 8682, 461, 16, 20850, 2387, 4672, 400, 273, 365, 16186, 6540, 9872, 12, 8682, 461, 13, 309, 486, 400, 3292, 3141, 3546, 30, 327, 400, 4716, 273, 2618, ...
class AssocHidden( builder.mapcontext.base_klas, Assoc):
class AssocHidden( mapcontext.base_klas, Assoc):
def resolve_assoc_hidden( builder, klasi): dbg = 'assoc' in config.debug or 'relation' in config.debug news = {} for k,klas in klasi.iteritems(): for attr, rel_typ in builder.mapcontext.iter_attr_local( klas, attr_base_klas= _Relation4AssocHidden, dbg=dbg ): Assoc, other_side_klas, other_side_attr = rel_typ.assoc_klas ...
3ec74980902c233e698220ca2698cdd77907f199 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10808/3ec74980902c233e698220ca2698cdd77907f199/relation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2245, 67, 14578, 67, 6345, 12, 2089, 16, 417, 9521, 77, 4672, 28966, 273, 296, 14578, 11, 316, 642, 18, 4148, 578, 296, 5488, 11, 316, 642, 18, 4148, 14783, 273, 2618, 364, 417, 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, 2245, 67, 14578, 67, 6345, 12, 2089, 16, 417, 9521, 77, 4672, 28966, 273, 296, 14578, 11, 316, 642, 18, 4148, 578, 296, 5488, 11, 316, 642, 18, 4148, 14783, 273, 2618, 364, 417, 16, ...
icons['file'] = mkicon('mimetypes/gtk-file')
icons['file'] = mkicon('mimetypes/text-x-preview')
def load_icons(): icons['edit-find'] = mkicon('actions/edit-find') icons['system-search'] = mkicon('actions/system-search') icons['add-file'] = mkicon('actions/add-files-to-archive') icons['add-folder'] = mkicon('actions/add-folder-to-archive') icons['list-remove'] = mkicon('actions/list-remove') icons['go-next'] = mki...
a4ea9d3dc0f882dc7d54634a666a99a9ce45554b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14305/a4ea9d3dc0f882dc7d54634a666a99a9ce45554b/qtui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 67, 14516, 13332, 17455, 3292, 4619, 17, 4720, 3546, 273, 5028, 3950, 2668, 4905, 19, 4619, 17, 4720, 6134, 17455, 3292, 4299, 17, 3072, 3546, 273, 5028, 3950, 2668, 4905, 19, 4299, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14516, 13332, 17455, 3292, 4619, 17, 4720, 3546, 273, 5028, 3950, 2668, 4905, 19, 4619, 17, 4720, 6134, 17455, 3292, 4299, 17, 3072, 3546, 273, 5028, 3950, 2668, 4905, 19, 4299, ...
skipyes = len(code); emit(0)
skipyes = _len(code); emit(0)
def fixup(literal, flags=flags): return _sre.getlower(literal, flags)
99965c47f74c2ff93d6757a9e0ee25d545898b7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/99965c47f74c2ff93d6757a9e0ee25d545898b7b/sre_compile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2917, 416, 12, 13107, 16, 2943, 33, 7133, 4672, 327, 389, 87, 266, 18, 588, 8167, 12, 13107, 16, 2943, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if func is dum_checkidx and (index >= l.length):
if func is dum_checkidx and (index >= l.ll_length()):
def ll_pop_nonneg(func, l, index): if func is dum_checkidx and (index >= l.length): raise IndexError res = l.items[index] ll_delitem_nonneg(dum_nocheck, l, index) return res
afabe8603c579750f81fa9c16896184dfa4a53b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/afabe8603c579750f81fa9c16896184dfa4a53b8/rlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6579, 67, 5120, 67, 5836, 14518, 12, 644, 16, 328, 16, 770, 4672, 309, 1326, 353, 4569, 67, 1893, 3465, 471, 261, 1615, 1545, 328, 18, 2906, 67, 2469, 1435, 4672, 1002, 10195, 400, 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, 6579, 67, 5120, 67, 5836, 14518, 12, 644, 16, 328, 16, 770, 4672, 309, 1326, 353, 4569, 67, 1893, 3465, 471, 261, 1615, 1545, 328, 18, 2906, 67, 2469, 1435, 4672, 1002, 10195, 400, 273...
for backend_class in conf["rapidsms"]["backends"]:
for backend_class in conf["rapidsms"]["backends"]:
def __configure(self, conf): level, file = conf["log"]["level"], conf["log"]["file"] self.logger = log.Logger(level, file)
b537282fc79557b7444253b1417b41567e6467e4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/b537282fc79557b7444253b1417b41567e6467e4/router.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 14895, 12, 2890, 16, 2195, 4672, 1801, 16, 585, 273, 2195, 9614, 1330, 6, 6362, 6, 2815, 6, 6487, 2195, 9614, 1330, 6, 6362, 6, 768, 11929, 365, 18, 4901, 273, 613, 18, 3328, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1001, 14895, 12, 2890, 16, 2195, 4672, 1801, 16, 585, 273, 2195, 9614, 1330, 6, 6362, 6, 2815, 6, 6487, 2195, 9614, 1330, 6, 6362, 6, 768, 11929, 365, 18, 4901, 273, 613, 18, 3328, 1...
if not self._user_allow(cr, uid, statement.id, context=context):
force_allow = context.get('force_allow',False) if not force_allow and not self._user_allow(cr, uid, statement.id, context=context):
def button_open(self, cr, uid, ids, context=None): """ Changes statement state to Running. @return: True """ if context is None: context = {} statement_pool = self.pool.get('account.bank.statement') for statement in statement_pool.browse(cr, uid, ids, context=context): vals = {}
abc40474e03ee0f6f1a855ecd461a7561adfe579 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/abc40474e03ee0f6f1a855ecd461a7561adfe579/account_cash_statement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3568, 67, 3190, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 3536, 17776, 3021, 919, 358, 20480, 18, 632, 2463, 30, 1053, 3536, 309, 819, 353, 599, 30, 819, 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, 3568, 67, 3190, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 3536, 17776, 3021, 919, 358, 20480, 18, 632, 2463, 30, 1053, 3536, 309, 819, 353, 599, 30, 819, 273, ...
sdp = SDP() sdp.setServerIP('127.0.0.1')
s = SDP() s.setServerIP('127.0.0.1')
def acceptedFakeCall(self, cookie): from shtoom.sdp import SDP, MediaDescription sdp = SDP() sdp.setServerIP('127.0.0.1') md = MediaDescription() s.addMediaDescription(md) md.setLocalPort(9876) print "accepted, got %r"%(cookie,) self.cookie = cookie d, self.d = self.d, None self.sip.app.startCall(self.cookie, sdp, d.ca...
ef425b11bf9addcbb2ea0667a972ab606ec8753f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1265/ef425b11bf9addcbb2ea0667a972ab606ec8753f/test_callcontrol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8494, 25462, 1477, 12, 2890, 16, 3878, 4672, 628, 272, 647, 4252, 18, 6427, 84, 1930, 348, 8640, 16, 6128, 3291, 272, 273, 348, 8640, 1435, 272, 18, 542, 2081, 2579, 2668, 14260, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8494, 25462, 1477, 12, 2890, 16, 3878, 4672, 628, 272, 647, 4252, 18, 6427, 84, 1930, 348, 8640, 16, 6128, 3291, 272, 273, 348, 8640, 1435, 272, 18, 542, 2081, 2579, 2668, 14260, 18, 2...
self.closed_pane = self.builder.get_object("closed_pane")
def _init_widget_aliases(self): self.window = self.builder.get_object("MainWindow") self.tagpopup = self.builder.get_object("tag_context_menu") self.nonworkviewtag_cb = self.builder.get_object("nonworkviewtag_mi") self.taskpopup = self.builder.get_object("task_context_menu") self.deferto...
2ea096fdd5d12a34e11a3897408834220ccc201f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/2ea096fdd5d12a34e11a3897408834220ccc201f/browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 6587, 67, 13831, 12, 2890, 4672, 365, 18, 5668, 2398, 273, 365, 18, 9574, 18, 588, 67, 1612, 2932, 6376, 3829, 7923, 365, 18, 2692, 16086, 6647, 273, 365, 18, 9574, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 6587, 67, 13831, 12, 2890, 4672, 365, 18, 5668, 2398, 273, 365, 18, 9574, 18, 588, 67, 1612, 2932, 6376, 3829, 7923, 365, 18, 2692, 16086, 6647, 273, 365, 18, 9574, 18, ...
confirmMainThread()
def get_rate(self): confirmMainThread() return 256
dad4fc88a54f5edbc781a136e2721baad72ddafc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/dad4fc88a54f5edbc781a136e2721baad72ddafc/gstreamerrenderer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 5141, 12, 2890, 4672, 327, 8303, 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, 336, 67, 5141, 12, 2890, 4672, 327, 8303, 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,...
sym += ":%i"%(repeat+1)
sym = self.normalisedegenerates(info[0],repeat)
def parse(self, fupdate=0.05, cupdate=0.002): """Extract information from the logfile.""" inputfile = open(self.filename, "r") if self.progress: inputfile.seek(0, 2) #go to end of file nstep = inputfile.tell() inputfile.seek(0) self.progress.initialize(nstep) oldstep = 0 # Used to avoid extracting the final geometry...
4d813821d7905dd2d4a89b9937ccfc1a378ec3a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/4d813821d7905dd2d4a89b9937ccfc1a378ec3a5/adfparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 284, 2725, 33, 20, 18, 6260, 16, 276, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 16, 315, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 284, 2725, 33, 20, 18, 6260, 16, 276, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 15204, 12123, 810, 768, 273, 1696, 12, 2890, 18, 3459, 16, 315, 8...
if q<0: q = len(text)
if q < 0: q = len(text)
def extract_line(text, index): """text may be a multiline string; extract only the line containing the given character index. >>> extract_line("abc\ndefgh\ni", 6) >>> 'defgh' >>> for i in (0, 2, 3, 4, 10): ... print extract_line("abc\ndefgh\ni", i) abc abc abc defgh defgh i """ p = text.rfind('\n', 0, index) + 1 q =...
19b3e00627d162f338cd2d1fc0b51ab3f352d38a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/19b3e00627d162f338cd2d1fc0b51ab3f352d38a/suspicious.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 67, 1369, 12, 955, 16, 770, 4672, 3536, 955, 2026, 506, 279, 19431, 533, 31, 2608, 1338, 326, 980, 4191, 326, 864, 3351, 770, 18, 225, 4080, 2608, 67, 1369, 2932, 18947, 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, 2608, 67, 1369, 12, 955, 16, 770, 4672, 3536, 955, 2026, 506, 279, 19431, 533, 31, 2608, 1338, 326, 980, 4191, 326, 864, 3351, 770, 18, 225, 4080, 2608, 67, 1369, 2932, 18947, 64, 82, ...
[-2.0, 1.0, 3.0, 1.0, -2.0, -2.0, -2.0, 1.0, 1.0, 1.0] sage: P.spectrum(laplacian=True) [5.0, 2.0, 1.48112136999e-16, 2.0, 5.0, 5.0, 5.0, 2.0, 2.0, 2.0]
[-2.0, -2.0, -2.0, -2.0, 1.0, 1.0, 1.0, 1.0, 1.0, 3.0] sage: P.spectrum(laplacian=True) [-1.41325497305e-16, 2.0, 2.0, 2.0, 2.0, 2.0, 5.0, 5.0, 5.0, 5.0]
def spectrum(self, laplacian=False): """ Returns the spectrum of the graph, the eigenvalues of the adjacency matrix INPUT: laplacian -- if True, use the Laplacian matrix instead (see self.kirchhoff_matrix()) EXAMPLE: sage: P = graphs.PetersenGraph() sage: P.spectrum() [-2.0, 1.0, 3.0, 1.0, -2.0, -2.0, -2.0, 1.0, 1.0,...
4b821d3d4fc70816c23e3c378ee913faa900f0cd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/4b821d3d4fc70816c23e3c378ee913faa900f0cd/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17970, 12, 2890, 16, 7125, 30538, 2779, 33, 8381, 4672, 3536, 2860, 326, 17970, 434, 326, 2667, 16, 326, 29831, 434, 326, 25220, 3148, 225, 12943, 30, 7125, 30538, 2779, 1493, 309, 1053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 17970, 12, 2890, 16, 7125, 30538, 2779, 33, 8381, 4672, 3536, 2860, 326, 17970, 434, 326, 2667, 16, 326, 29831, 434, 326, 25220, 3148, 225, 12943, 30, 7125, 30538, 2779, 1493, 309, 1053, ...
if not _urandomfd:
if _urandomfd is None:
def urandom(n): """urandom(n) -> str
97a6ee85db0512ced6a11d5850c537f721fedbfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/97a6ee85db0512ced6a11d5850c537f721fedbfa/os.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8896, 2111, 12, 82, 4672, 3536, 295, 2111, 12, 82, 13, 317, 609, 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...
[ 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, 8896, 2111, 12, 82, 4672, 3536, 295, 2111, 12, 82, 13, 317, 609, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
print summary.information_content()
print summary.information_content(e_freq_table=expected, chars_to_ignore=['-'])
def print_info_content(summary_info,fout=None,rep_record=0): """ Three column output: position, aa in representative sequence, ic_vector value""" fout = fout or sys.stdout if not summary_info.ic_vector: summary_info.information_content() rep_sequence = summary_info.alignment._records[rep_record].seq positions = summary...
d08efc194e6cad5fdd8bd4b46d93f7dee95240be /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/d08efc194e6cad5fdd8bd4b46d93f7dee95240be/AlignInfo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1376, 67, 1745, 12, 7687, 67, 1376, 16, 617, 322, 33, 7036, 16, 14462, 67, 3366, 33, 20, 4672, 3536, 935, 992, 1057, 876, 30, 1754, 16, 12391, 316, 23174, 3102, 16, 13579, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1172, 67, 1376, 67, 1745, 12, 7687, 67, 1376, 16, 617, 322, 33, 7036, 16, 14462, 67, 3366, 33, 20, 4672, 3536, 935, 992, 1057, 876, 30, 1754, 16, 12391, 316, 23174, 3102, 16, 13579, ...
config = ConfigParser() config.read([CFG_FILE, os.path.expanduser('~/%s' % CFG_FILE), options.configuration_file])
def parse_mail(options): # parse configuration if options.configuration: config = ConfigParser() config.read([CFG_FILE, os.path.expanduser('~/%s' % CFG_FILE), options.configuration_file]) section = options.configuration if not config.has_section(section): raise ValueError("Section '%s' not found in configuration file"...
540fb55d2d214b8af3bb8e3119ba72de0508ad40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/540fb55d2d214b8af3bb8e3119ba72de0508ad40/smtp2pcng.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 4408, 12, 2116, 4672, 225, 468, 1109, 1664, 309, 702, 18, 7025, 30, 225, 2442, 273, 702, 18, 7025, 309, 486, 642, 18, 5332, 67, 3464, 12, 3464, 4672, 1002, 2068, 2932, 5285, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4408, 12, 2116, 4672, 225, 468, 1109, 1664, 309, 702, 18, 7025, 30, 225, 2442, 273, 702, 18, 7025, 309, 486, 642, 18, 5332, 67, 3464, 12, 3464, 4672, 1002, 2068, 2932, 5285, ...
[output.write(generateChap(formatTime(Trims2ts[i][0],tcType), formatTime(Trims2ts[i][1],tcType),i+1,chapType)) for i in range(len(Trims2ts))]
[output.write(generateChap(formatTime(Trims2ts[i][0]), formatTime(Trims2ts[i][1]),i+1,chapType)) for i in range(len(Trims2ts))]
def main(): p = optparse.OptionParser(description='Grabs avisynth trims and outputs chapter file, qpfile and/or cuts audio (works with cfr and vfr input)', version='VFR Chapter Creator 0.7.1', usage='%prog [options] infile.avs{}'.format(" [outfile.avs]" if chapparseExists else "")) p.add_option('--label', '-l', action...
71f96ef73d9915935425b67dfff621761ff6819f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14863/71f96ef73d9915935425b67dfff621761ff6819f/vfr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 293, 273, 2153, 2670, 18, 1895, 2678, 12, 3384, 2218, 14571, 2038, 1712, 291, 878, 451, 2209, 87, 471, 6729, 23580, 585, 16, 22859, 768, 471, 19, 280, 6391, 87, 7447, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 225, 293, 273, 2153, 2670, 18, 1895, 2678, 12, 3384, 2218, 14571, 2038, 1712, 291, 878, 451, 2209, 87, 471, 6729, 23580, 585, 16, 22859, 768, 471, 19, 280, 6391, 87, 7447, ...
def javaMethods(self, type, clsname, ctorname, fields, depth): self.javaConstructors(type, clsname, ctorname, fields, depth)
def javaMethods(self, type, name, clsname, is_product, fields, depth): self.javaConstructors(type, name, clsname, is_product, fields, depth)
def javaMethods(self, type, clsname, ctorname, fields, depth):
ee5be5d3120673866db38dddd2302c0f7fa214b8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6753/ee5be5d3120673866db38dddd2302c0f7fa214b8/asdl_antlr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2252, 4712, 12, 2890, 16, 618, 16, 2028, 529, 16, 15120, 529, 16, 1466, 16, 3598, 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, ...
[ 1, 1, 1, 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, 2252, 4712, 12, 2890, 16, 618, 16, 2028, 529, 16, 15120, 529, 16, 1466, 16, 3598, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
tmpList.append(chan) zValueDict[sngl.ifo]=tmpList else: sys.stdout.write("Omega scan summary file not for for %s. ...skipping...\n"%sngl.ifo)
zValueDict[sngl.ifo].append(chan) if len(zValueDict[sngl.ifo]) == 0: sys.stdout.write("Omega scan summary file not or empty for %s. ...continuing...\n"%sngl.ifo)
def prepareChecklist(wikiFilename=None,wikiCoinc=None,wikiTree=None,file2URL=None): """ Method to prepare a checklist where data products are isolated in directory. """ endOfS5=int(875232014) wikiFileFinder=findFileType(wikiTree,wikiCoinc) # Check to see if wiki file with name already exists maxCount=0 while os.path.ex...
481b556f895e5b0b4caf0acaf35400d2993db8e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/481b556f895e5b0b4caf0acaf35400d2993db8e5/makeCheckListWiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 1564, 1098, 12, 13044, 5359, 33, 7036, 16, 13044, 27055, 71, 33, 7036, 16, 13044, 2471, 33, 7036, 16, 768, 22, 1785, 33, 7036, 4672, 3536, 2985, 358, 2911, 279, 866, 1098, 1625, ...
lang=part.lang context.update({'lang': lang})
if part.lang: context.update({'lang': part.lang})
def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, currency_id=False, context=None): if context is None: context = {} company_id = context.get('company_id',False) if not partner_id: raise osv.excep...
81f997998d110da6216677673e826ae33749b27e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/81f997998d110da6216677673e826ae33749b27e/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 16, 582, 362, 16, 26667, 33, 20, 16, 508, 2218, 2187, 618, 2218, 659, 67, 16119, 2187, 19170, 67, 350, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3017, 67, 350, 67, 3427, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 3017, 16, 582, 362, 16, 26667, 33, 20, 16, 508, 2218, 2187, 618, 2218, 659, 67, 16119, 2187, 19170, 67, 350, 33, ...
self.parse_con(sub, res or per, 'phh', Telephone, Has_fixed_home) self.parse_con(sub, res or per, 'faxh', Telephone, Has_fax_home)
self.parse_con(sub, per, 'phh', Telephone, Has_fixed_home) self.parse_con(sub, per, 'faxh', Telephone, Has_fax_home)
def parse_person_con(self, part, per, org=None): r'''Parse a person's contact details and attach them to a given Person node. @param org: if not None, then 'part' also defines an Organisation, so skip those contact details which pertain to the organisation (so we don't parse them twice) ''' # First, parse residences th...
6c32f5b78a49581b3eb4a922a27428bdc44045fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10902/6c32f5b78a49581b3eb4a922a27428bdc44045fa/model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 12479, 67, 591, 12, 2890, 16, 1087, 16, 1534, 16, 2358, 33, 7036, 4672, 436, 26418, 3201, 279, 6175, 1807, 5388, 3189, 471, 3306, 2182, 358, 279, 864, 11573, 756, 18, 632, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12479, 67, 591, 12, 2890, 16, 1087, 16, 1534, 16, 2358, 33, 7036, 4672, 436, 26418, 3201, 279, 6175, 1807, 5388, 3189, 471, 3306, 2182, 358, 279, 864, 11573, 756, 18, 632, 89...
def edit(self,name="",description=""):
@cherrypy.expose() def edit(self,ecomap,name="",description=""):
def edit(self,name="",description=""): es = EcomapSchema() try: d = es.to_python({'name' : name, 'description' : description, 'owner' : self.ecomap.ownerID}) self.ecomap.name = d['name'] self.ecomap.description = d['description'] self.ecomap.modified = DateTime.now() cherrypy.session['message'] = "changes saved" return...
bd620ed6e7bc94139cb8bd730d5c5775ee916a14 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5854/bd620ed6e7bc94139cb8bd730d5c5775ee916a14/controllers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 632, 343, 370, 28398, 18, 338, 4150, 1435, 1652, 3874, 12, 2890, 16, 30433, 438, 16, 529, 1546, 3113, 3384, 1546, 6, 4672, 5001, 273, 512, 832, 438, 3078, 1435, 775, 30, 302, 273, 5001, 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, 632, 343, 370, 28398, 18, 338, 4150, 1435, 1652, 3874, 12, 2890, 16, 30433, 438, 16, 529, 1546, 3113, 3384, 1546, 6, 4672, 5001, 273, 512, 832, 438, 3078, 1435, 775, 30, 302, 273, 5001, 18, ...
if var != 'None' and var not in numexpr_functions ]
if var not in ['None', 'False', 'True'] and var not in numexpr_functions ]
def _requiredExprVars(self, expression, uservars): """ Get the variables required by the `expression`.
2bee4dba2410da645f8a19ef48d770e0bd8b2782 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12687/2bee4dba2410da645f8a19ef48d770e0bd8b2782/Table.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4718, 4742, 5555, 12, 2890, 16, 2652, 16, 729, 4699, 4672, 3536, 968, 326, 3152, 1931, 635, 326, 1375, 8692, 8338, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4718, 4742, 5555, 12, 2890, 16, 2652, 16, 729, 4699, 4672, 3536, 968, 326, 3152, 1931, 635, 326, 1375, 8692, 8338, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if _restricted and _kwtemplater.matcher(filename):
if restrict and _kwtemplater.matcher(filename):
def wread(self, filename): data = super(kwrepo, self).wread(filename) if _restricted and _kwtemplater.matcher(filename): return _kwtemplater.shrink(data) return data
01cf4a27daa009e6a76a6fd38c59ab4cba059dc3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/01cf4a27daa009e6a76a6fd38c59ab4cba059dc3/keyword.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 896, 12, 2890, 16, 1544, 4672, 501, 273, 2240, 12, 9987, 7422, 16, 365, 2934, 91, 896, 12, 3459, 13, 309, 13108, 471, 389, 9987, 27380, 2045, 18, 22761, 12, 3459, 4672, 327, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 341, 896, 12, 2890, 16, 1544, 4672, 501, 273, 2240, 12, 9987, 7422, 16, 365, 2934, 91, 896, 12, 3459, 13, 309, 13108, 471, 389, 9987, 27380, 2045, 18, 22761, 12, 3459, 4672, 327, 389, ...
fp = open(pathname)
fp = open(pathname, "U")
def run_script(self, pathname): self.msg(2, "run_script", pathname) fp = open(pathname) stuff = ("", "r", imp.PY_SOURCE) self.load_module('__main__', fp, pathname, stuff)
74416af9dc7900d30c41a16d3b56cf4ea00ec137 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/74416af9dc7900d30c41a16d3b56cf4ea00ec137/modulefinder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 4263, 12, 2890, 16, 9806, 4672, 365, 18, 3576, 12, 22, 16, 315, 2681, 67, 4263, 3113, 9806, 13, 4253, 273, 1696, 12, 28336, 16, 315, 57, 7923, 10769, 273, 7566, 3113, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 4263, 12, 2890, 16, 9806, 4672, 365, 18, 3576, 12, 22, 16, 315, 2681, 67, 4263, 3113, 9806, 13, 4253, 273, 1696, 12, 28336, 16, 315, 57, 7923, 10769, 273, 7566, 3113, 315, ...
libvlc.libvlc_media_player_set_drawable(self.media_player, hwnd,
libvlc.libvlc_media_player_set_drawable(self.media_player, hwnd,
def on_realize(self, widget): hwnd = widget.window.handle libvlc.libvlc_media_player_set_drawable(self.media_player, hwnd, self.exc.ref()) self.exc.check()
2934e8b32a8c6a4773091ef2abaa54b3e4f5615d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/2934e8b32a8c6a4773091ef2abaa54b3e4f5615d/vlc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 7688, 554, 12, 2890, 16, 3604, 4672, 16139, 4880, 273, 3604, 18, 5668, 18, 4110, 2561, 27362, 18, 2941, 27362, 67, 5829, 67, 14872, 67, 542, 67, 9446, 429, 12, 2890, 18, 5829,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 67, 7688, 554, 12, 2890, 16, 3604, 4672, 16139, 4880, 273, 3604, 18, 5668, 18, 4110, 2561, 27362, 18, 2941, 27362, 67, 5829, 67, 14872, 67, 542, 67, 9446, 429, 12, 2890, 18, 5829,...
rsync = ("/usr/bin/rsync --timeout 10 -T /tmp -e '%s' '%s' '%s' "
rsync = ("/usr/bin/rsync -a -rlt --timeout 10 -T /tmp -e '%s' '%s' '%s' "
def rsync_to_xs(from_path, to_path, keyfile, user): # add a trailing slash to ensure # that we don't generate a subdir # at the remote end. rsync oddities... if not re.compile('/$').search(from_path): from_path = from_path + '/' ssh = '/usr/bin/ssh -F /dev/null -o "PasswordAuthentication no" -o "StrictHostKeyChecking...
dbae5b7e2cfef3354e0ef0ca4ea190351b38e0dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9380/dbae5b7e2cfef3354e0ef0ca4ea190351b38e0dc/ds-backup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3597, 1209, 67, 869, 67, 13713, 12, 2080, 67, 803, 16, 358, 67, 803, 16, 28632, 16, 729, 4672, 225, 468, 527, 279, 7341, 9026, 358, 3387, 468, 716, 732, 2727, 1404, 2103, 279, 16921, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3597, 1209, 67, 869, 67, 13713, 12, 2080, 67, 803, 16, 358, 67, 803, 16, 28632, 16, 729, 4672, 225, 468, 527, 279, 7341, 9026, 358, 3387, 468, 716, 732, 2727, 1404, 2103, 279, 16921, ...
if (x_num is not None and y_num is not None):
if x_num is not None and y_num is not None:
def compare_object_attrs(x, y): try: if (x == y): return 0 x_num = to_number(x) y_num = to_number(y) if (x_num is not None and y_num is not None): if x_num - y_num<0: return -1 else: return 1 if ('__len__' == x): return -1 if ('__len__' == y): return 1 return x.__cmp__(y) except: if pydevd_constants.IS_PY3K: return (s...
b244fbee21dc5d495fe77d258f79baf2422e8ff7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12157/b244fbee21dc5d495fe77d258f79baf2422e8ff7/pydevd_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 67, 1612, 67, 7039, 12, 92, 16, 677, 4672, 775, 30, 309, 261, 92, 422, 677, 4672, 327, 374, 619, 67, 2107, 273, 358, 67, 2696, 12, 92, 13, 677, 67, 2107, 273, 358, 67, 2696, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 67, 1612, 67, 7039, 12, 92, 16, 677, 4672, 775, 30, 309, 261, 92, 422, 677, 4672, 327, 374, 619, 67, 2107, 273, 358, 67, 2696, 12, 92, 13, 677, 67, 2107, 273, 358, 67, 2696, ...
f.grid(row=self.row, col=0, columnspan=2, sticky="we")
f.grid(row=self.row, column=0, columnspan=2, sticky="we")
def make_frame(self): f = Frame(self.top) f.grid(row=self.row, col=0, columnspan=2, sticky="we") self.row = self.row + 1 return f
1aa14334e0cdbdcf914cf51d4ad7c73dafbe38da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1aa14334e0cdbdcf914cf51d4ad7c73dafbe38da/SearchDialogBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 3789, 12, 2890, 4672, 284, 273, 8058, 12, 2890, 18, 3669, 13, 284, 18, 5222, 12, 492, 33, 2890, 18, 492, 16, 1057, 33, 20, 16, 1057, 3969, 33, 22, 16, 21750, 1546, 1814, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 67, 3789, 12, 2890, 4672, 284, 273, 8058, 12, 2890, 18, 3669, 13, 284, 18, 5222, 12, 492, 33, 2890, 18, 492, 16, 1057, 33, 20, 16, 1057, 3969, 33, 22, 16, 21750, 1546, 1814, ...
rev_a = '%s--%s' % (self.treeversion, old_rev) rev_b = '%s--%s' % (self.treeversion, rev)
def _update(self, rev): if rev == 'base-0': # Initialise 'base-0' revision self._obtainrevision(rev) else: self.ui.debug(_('applying revision %s...\n') % rev) revision = '%s--%s' % (self.treeversion, rev) changeset, status = self.runlines('replay', '-d', self.tmppath, revision) if status: # Something went wrong while m...
4abea8cc0b1299a55706ca0317f4f7f14e426c3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/4abea8cc0b1299a55706ca0317f4f7f14e426c3e/gnuarch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 12, 2890, 16, 5588, 4672, 309, 5588, 422, 296, 1969, 17, 20, 4278, 468, 31739, 296, 1969, 17, 20, 11, 6350, 365, 6315, 947, 5977, 13057, 12, 9083, 13, 469, 30, 365, 18, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2725, 12, 2890, 16, 5588, 4672, 309, 5588, 422, 296, 1969, 17, 20, 4278, 468, 31739, 296, 1969, 17, 20, 11, 6350, 365, 6315, 947, 5977, 13057, 12, 9083, 13, 469, 30, 365, 18, 48...
if len(filter(LegalChars.__contains__, key)) != len(key):
if any(c not in LegalChars for c in key):
def set(self, key, val, coded_val, LegalChars=_LegalChars): # First we verify that the key isn't a reserved word # Second we make sure it only contains legal characters if key.lower() in self._reserved: raise CookieError("Attempt to set a reserved key: %s" % key) if len(filter(LegalChars.__contains__, key)) != len(key)...
826eb7215b1e2a2a7c54b019aa1d02a56ead7ce1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/826eb7215b1e2a2a7c54b019aa1d02a56ead7ce1/Cookie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12, 2890, 16, 498, 16, 1244, 16, 29512, 67, 1125, 16, 17167, 287, 7803, 33, 67, 30697, 7803, 4672, 468, 5783, 732, 3929, 716, 326, 498, 5177, 1404, 279, 8735, 2076, 468, 7631, 732...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 498, 16, 1244, 16, 29512, 67, 1125, 16, 17167, 287, 7803, 33, 67, 30697, 7803, 4672, 468, 5783, 732, 3929, 716, 326, 498, 5177, 1404, 279, 8735, 2076, 468, 7631, 732...
exportRandomizationControls(questionContainer, containerItem, errors)
def exportStr(elemName, value, parent): elem = parent.appendChild( manifestDoc.createElementNS( NS_LLSMC_URI, NS_LLSMC + u':' + elemName)) text = multipleChoiceTest.unicodeDecode(value) if text: elem.appendChild(manifestDoc.createTextNode(text))
b76381232d226615c4e0e94f9765e919a2c106cd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7974/b76381232d226615c4e0e94f9765e919a2c106cd/qti.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 1585, 12, 10037, 461, 16, 460, 16, 982, 4672, 3659, 273, 982, 18, 6923, 1763, 12, 5643, 1759, 18, 2640, 1046, 3156, 12, 11472, 67, 48, 3045, 20022, 67, 3098, 16, 11472, 67, 48, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 1585, 12, 10037, 461, 16, 460, 16, 982, 4672, 3659, 273, 982, 18, 6923, 1763, 12, 5643, 1759, 18, 2640, 1046, 3156, 12, 11472, 67, 48, 3045, 20022, 67, 3098, 16, 11472, 67, 48, ...
self.handleAvatarZoneChange(av, zoneId)
messenger.send("avatarZoneChanged", [av, self.doId, zoneId])
def addObjectToGrid(self, av): assert self.notify.debug("addObjectToGrid %s" % av) # Get our pos relative to the island grid pos = av.getPos(self) # Figure out what zone in that island grid zoneId = self.getZoneFromXYZ(pos) # Do the wrtReparenting to the grid node self.handleAvatarZoneChange(av, zoneId)
1590f437435c31d3b9e3f371ffd8347ccbcf5868 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/1590f437435c31d3b9e3f371ffd8347ccbcf5868/DistributedCartesianGrid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31311, 774, 6313, 12, 2890, 16, 1712, 4672, 1815, 365, 18, 12336, 18, 4148, 2932, 1289, 921, 774, 6313, 738, 87, 6, 738, 1712, 13, 468, 968, 3134, 949, 3632, 358, 326, 353, 15733, 3068...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31311, 774, 6313, 12, 2890, 16, 1712, 4672, 1815, 365, 18, 12336, 18, 4148, 2932, 1289, 921, 774, 6313, 738, 87, 6, 738, 1712, 13, 468, 968, 3134, 949, 3632, 358, 326, 353, 15733, 3068...
return True else: return False
return existed
def remove_section(self, section): """Remove a file section.""" if section in self.__sections: del self.__sections[section] return True else: return False
05e74c488d7085fb533b40a9d6860ee732e784e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/05e74c488d7085fb533b40a9d6860ee732e784e4/ConfigParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 3464, 12, 2890, 16, 2442, 4672, 3536, 3288, 279, 585, 2442, 12123, 309, 2442, 316, 365, 16186, 11657, 30, 1464, 365, 16186, 11657, 63, 3464, 65, 327, 1053, 469, 30, 327, 1083, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 67, 3464, 12, 2890, 16, 2442, 4672, 3536, 3288, 279, 585, 2442, 12123, 309, 2442, 316, 365, 16186, 11657, 30, 1464, 365, 16186, 11657, 63, 3464, 65, 327, 1053, 469, 30, 327, 1083, ...
_cache[alias] = entry
if not aliases.aliases.has_key(alias): aliases.aliases[alias] = modname
def search_function(encoding): # Cache lookup entry = _cache.get(encoding,_unknown) if entry is not _unknown: return entry # Import the module modname = encoding.replace('-', '_') modname = aliases.aliases.get(modname,modname) try: mod = __import__(modname,globals(),locals(),'*') except ImportError,why: _cache[encodi...
09179cd15c8a446693e3715c6f0746ee6fe87cdb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/09179cd15c8a446693e3715c6f0746ee6fe87cdb/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 915, 12, 5999, 4672, 225, 468, 4379, 3689, 1241, 273, 389, 2493, 18, 588, 12, 5999, 16, 67, 8172, 13, 309, 1241, 353, 486, 389, 8172, 30, 327, 1241, 225, 468, 6164, 326, 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, 1623, 67, 915, 12, 5999, 4672, 225, 468, 4379, 3689, 1241, 273, 389, 2493, 18, 588, 12, 5999, 16, 67, 8172, 13, 309, 1241, 353, 486, 389, 8172, 30, 327, 1241, 225, 468, 6164, 326, 16...
where account_id =ANY(%s) \
where account_id IN %s \
def _last_worked_invoiced_date_calc (self, cr, uid, ids, name, arg, context={}): res = {} ids2 = self.search(cr, uid, [('parent_id', 'child_of', ids)]) if ids2: cr.execute("select account_analytic_line.account_id, max(date) \ from account_analytic_line \ where account_id =ANY(%s) \ and invoice_id is not null \ GROUP BY...
3c18c11c83e2549431192a3a0c1f46403db9d628 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8241/3c18c11c83e2549431192a3a0c1f46403db9d628/account_analytic_analysis.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2722, 67, 1252, 329, 67, 16119, 72, 67, 712, 67, 12448, 261, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 12938, 4672, 400, 273, 2618, 3258, 22, 273, 365, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2722, 67, 1252, 329, 67, 16119, 72, 67, 712, 67, 12448, 261, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 1501, 16, 819, 12938, 4672, 400, 273, 2618, 3258, 22, 273, 365, 18,...
contents['source'] = source
contents['source'] = source.replace("'", "\\'")
def processMonument(text, source, conn, cursor): ''' Process a single instance of the Tabelrij rijksmonument template ''' # First remove line breaks like \n and \r #text = text.replace(u'\n', u' ') #text = text.replace(u'\r', u' ') # The regexes to find all the fields fields = [u'objrijksnr', u'woonplaats', u'adres', ...
3e481197873b9f1acb9c7c4c531c448bcfb35269 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7426/3e481197873b9f1acb9c7c4c531c448bcfb35269/update_database.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 11415, 650, 12, 955, 16, 1084, 16, 1487, 16, 3347, 4672, 9163, 4389, 279, 2202, 791, 434, 326, 399, 873, 566, 78, 436, 8302, 7904, 2586, 650, 1542, 9163, 468, 5783, 1206, 980, 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, 1207, 11415, 650, 12, 955, 16, 1084, 16, 1487, 16, 3347, 4672, 9163, 4389, 279, 2202, 791, 434, 326, 399, 873, 566, 78, 436, 8302, 7904, 2586, 650, 1542, 9163, 468, 5783, 1206, 980, 16...
s = "r.set%s(%s)" % (self.sEdge, self.sVal) exec(s) self.setRect(r)
if self.sEdge == 'Top': diff = self.y() - event.scenePos().y() self.setPos(self.x(), event.scenePos().y()) self.setRect(0,0,r.width(),r.height() + diff) elif self.sEdge == 'Left': diff = self.x() - event.scenePos().x() self.setPos(event.scenePos().x(), self.y()) self.setRect(0,0,r.width()+diff,r.height()) elif self.sE...
def mouseMoveEvent(self, event): self.update()
d2d84cb97f276eb08f26640187a98f6a5cee7be7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2085/d2d84cb97f276eb08f26640187a98f6a5cee7be7/ocrwidget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 7607, 1133, 12, 2890, 16, 871, 4672, 365, 18, 2725, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 7607, 1133, 12, 2890, 16, 871, 4672, 365, 18, 2725, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.assertRaises(ValueError, time.strftime, '', (1900, 1, 0, 0, 0, 0, 0, 1, -1))
self.assertRaises(ValueError, time.strftime, '', (1900, 1, -1, 0, 0, 0, 0, 1, -1))
def test_strftime_bounds_checking(self): # Make sure that strftime() checks the bounds of the various parts #of the time tuple.
caebe22038d4de526ab34cfda98047f01c53fc9d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/caebe22038d4de526ab34cfda98047f01c53fc9d/test_time.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 701, 9982, 67, 10576, 67, 24609, 12, 2890, 4672, 468, 4344, 3071, 716, 10405, 1435, 4271, 326, 4972, 434, 326, 11191, 2140, 468, 792, 326, 813, 3193, 18, 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, 1842, 67, 701, 9982, 67, 10576, 67, 24609, 12, 2890, 4672, 468, 4344, 3071, 716, 10405, 1435, 4271, 326, 4972, 434, 326, 11191, 2140, 468, 792, 326, 813, 3193, 18, 2, -100, -100, -100, ...
"http://ns.adobe.com/xap/1.0/rights/Copyright") def verify(self): """Attempt to verify the embedded claim. Return one of the VERIFY_* constants defined in cctagutil.""" return cctagutil.lookup.verify(self.filename)
"http://ns.adobe.com/xap/1.0/rights/WebStatement")
def getMetadataUrl(self): """Return the URL where more metadata on this file may be found; this is provided by WCOP in ID3 and the webStatement in XMP."""
1517a4d2ccea608d3aaa61b9b0cf849de0d3f3d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2607/1517a4d2ccea608d3aaa61b9b0cf849de0d3f3d9/xmp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11159, 1489, 12, 2890, 4672, 3536, 990, 326, 1976, 1625, 1898, 1982, 603, 333, 585, 2026, 506, 1392, 31, 333, 353, 2112, 635, 678, 39, 3665, 316, 1599, 23, 471, 326, 3311, 3406, 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, 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, 11159, 1489, 12, 2890, 4672, 3536, 990, 326, 1976, 1625, 1898, 1982, 603, 333, 585, 2026, 506, 1392, 31, 333, 353, 2112, 635, 678, 39, 3665, 316, 1599, 23, 471, 326, 3311, 3406, 316, 1...
domdir = dom[i] if getattr(domdir[0],'id',None)=='fctau0':
domitem = dom[i] if getattr(domitem[0],'id',None)=='fctau0':
def __getitem__( self, varname ): """returns whatever the forecast set has that matches the given attribute, typically a DatasetVariable. """ if type(varname) is not str : raise CDMSError, "bad argument to forecasts[]"
d89492f6d43d83e591ac4c1662522679174b9637 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/41/d89492f6d43d83e591ac4c1662522679174b9637/forecast.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 365, 16, 15434, 262, 30, 3536, 6154, 15098, 326, 18763, 444, 711, 716, 1885, 326, 864, 1566, 16, 14755, 279, 10778, 3092, 18, 3536, 309, 618, 12, 1401, 529, 13, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 31571, 972, 12, 365, 16, 15434, 262, 30, 3536, 6154, 15098, 326, 18763, 444, 711, 716, 1885, 326, 864, 1566, 16, 14755, 279, 10778, 3092, 18, 3536, 309, 618, 12, 1401, 529, 13, 3...
pm = pm.scaledToWidth(width) self.setPixmap(pm)
self.pm = pm.scaledToWidth(width) self.setPixmap(self.pm) self.setSizePolicy
def resizeEvent(self, evt): width = self.width() pm = QPixmap.fromImage(self.img) pm = pm.scaledToWidth(width) self.setPixmap(pm)
cc2b9ae6344125569298062612c815f64111fcb2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12573/cc2b9ae6344125569298062612c815f64111fcb2/qt_plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7041, 1133, 12, 2890, 16, 6324, 4672, 1835, 273, 365, 18, 2819, 1435, 7430, 273, 2238, 21816, 1458, 18, 2080, 2040, 12, 2890, 18, 6081, 13, 7430, 273, 7430, 18, 20665, 774, 2384, 12, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7041, 1133, 12, 2890, 16, 6324, 4672, 1835, 273, 365, 18, 2819, 1435, 7430, 273, 2238, 21816, 1458, 18, 2080, 2040, 12, 2890, 18, 6081, 13, 7430, 273, 7430, 18, 20665, 774, 2384, 12, 2...
else
else:
def __init__(data = None) if data == None: quickfix.UtcTimeStampField.__init__(self, 342) else quickfix.UtcTimeStampField.__init__(self, 342, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 57, 5111, 21536, 974, 16186, 2738, 972, 12, 2890, 16, 890, 9452, 13, 469, 30, 9549, 904, 18, 57, 5111, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 57, 5111, 21536, 974, 16186, 2738, 972, 12, 2890, 16, 890, 9452, 13, 469, 30, 9549, 904, 18, 57, 5111, ...