rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
l = ['<select name="%s"' % name]
l = ['<select name="%s">' % name]
def tzfield(prop, name, default): if pytz: value = prop.plain() if '' == value: value = default else: try: value = "Etc/GMT%+d" % int(value) except ValueError: pass l = ['<select name="%s"' % name] for zone in pytz.all_timezones: s = ' ' if zone == value: s = 'selected=selected ' z = cgi.escape(zone) l.append('<option...
2f8f57f90ffdd091c8e18b6cb25b21e0819d072f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1906/2f8f57f90ffdd091c8e18b6cb25b21e0819d072f/timezone.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6016, 1518, 12, 5986, 16, 508, 16, 805, 4672, 309, 29039, 30, 460, 273, 2270, 18, 7446, 1435, 309, 875, 422, 460, 30, 460, 273, 805, 469, 30, 775, 30, 460, 273, 315, 41, 5111, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6016, 1518, 12, 5986, 16, 508, 16, 805, 4672, 309, 29039, 30, 460, 273, 2270, 18, 7446, 1435, 309, 875, 422, 460, 30, 460, 273, 805, 469, 30, 775, 30, 460, 273, 315, 41, 5111, 19, ...
return content[:-1]
return content
def confirm(cookie): """Return data for cookie, removing it from db, or None if not found.""" # Acquire the pending database lock, letting TimeOutError percolate up. lock = LockFile.LockFile(LOCKFILE) lock.lock(timeout=30) try: # Load the database db = _load() missing = [] content = db.get(cookie, missing) if content i...
34f6cd590b41a5247b0c1bc7ba990a7e286ee04a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/34f6cd590b41a5247b0c1bc7ba990a7e286ee04a/Pending.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6932, 12, 8417, 4672, 3536, 990, 501, 364, 3878, 16, 9427, 518, 628, 1319, 16, 578, 599, 309, 486, 1392, 12123, 468, 28822, 326, 4634, 2063, 2176, 16, 2231, 1787, 2647, 1182, 668, 1534, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6932, 12, 8417, 4672, 3536, 990, 501, 364, 3878, 16, 9427, 518, 628, 1319, 16, 578, 599, 309, 486, 1392, 12123, 468, 28822, 326, 4634, 2063, 2176, 16, 2231, 1787, 2647, 1182, 668, 1534, ...
if (os.path.isdir(src)) and (os.path.split(src)[1] in [scaled,thumb]):
if (os.path.isdir(src)) and (os.path.split(src)[1] in [config.ScaledImages["Suffix"],config.Thumbnails["Suffix"]]):
def start(self,List): """ Lance les calculs """ self.startSignal.emit(self.__label, len(List))
68bab74027a8ab80c2633287327377b36ac0c2d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12328/68bab74027a8ab80c2633287327377b36ac0c2d4/imagizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 16, 682, 4672, 3536, 511, 1359, 18022, 3026, 87, 3536, 365, 18, 1937, 11208, 18, 18356, 12, 2890, 16186, 1925, 16, 562, 12, 682, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 16, 682, 4672, 3536, 511, 1359, 18022, 3026, 87, 3536, 365, 18, 1937, 11208, 18, 18356, 12, 2890, 16186, 1925, 16, 562, 12, 682, 3719, 2, -100, -100, -100, -100, -100, -...
M = Matrix(k,r,r,[a+1,a,a,a+1])
M = Matrix(k, r, r, [a+1, a, a, a+1])
def mix_columns_matrix(self): """ Return the MixColumns matrix.
e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6843, 67, 5112, 67, 5667, 12, 2890, 4672, 3536, 2000, 326, 31043, 3380, 3148, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 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, 6843, 67, 5112, 67, 5667, 12, 2890, 4672, 3536, 2000, 326, 31043, 3380, 3148, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.assertEqual(entry.category[0].label, 'presentation')
self.assertEqual(entry.category[0].label, 'viewed') self.assertEqual(entry.category[1].label, 'presentation')
def testUploadAndDeletePresentation(self): ms = gdata.MediaSource(file_path='test.ppt', content_type='application/vnd.ms-powerpoint') entry = self.doclist.UploadPresentation(ms, 'test preso') self.assertEqual(entry.title.text, 'test preso') self.assertEqual(entry.category[0].label, 'presentation') self.assert_(isinstan...
6a1d41e0ebd05471e1aa915fdf0a98f4af4bce69 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5609/6a1d41e0ebd05471e1aa915fdf0a98f4af4bce69/service_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 4777, 1876, 2613, 6351, 367, 12, 2890, 4672, 4086, 273, 314, 892, 18, 5419, 1830, 12, 768, 67, 803, 2218, 3813, 18, 84, 337, 2187, 913, 67, 723, 2218, 3685, 19, 11169, 18, 959, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4777, 1876, 2613, 6351, 367, 12, 2890, 4672, 4086, 273, 314, 892, 18, 5419, 1830, 12, 768, 67, 803, 2218, 3813, 18, 84, 337, 2187, 913, 67, 723, 2218, 3685, 19, 11169, 18, 959, ...
"""
sage: G.name() """ if new is None: if self._nxg.name != '': return self._nxg.name else: return None
def name(self, new=''): """ Returns the name of the (di)graph.
c82c3b1d63c6e68bbc5d7d8ba8eaa40df7beb166 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/c82c3b1d63c6e68bbc5d7d8ba8eaa40df7beb166/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 12, 2890, 16, 394, 2218, 11, 4672, 87, 410, 30, 611, 18, 529, 1435, 225, 3536, 309, 394, 353, 599, 30, 309, 365, 6315, 16769, 75, 18, 529, 480, 875, 30, 327, 365, 6315, 16769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 508, 12, 2890, 16, 394, 2218, 11, 4672, 87, 410, 30, 611, 18, 529, 1435, 225, 3536, 309, 394, 353, 599, 30, 309, 365, 6315, 16769, 75, 18, 529, 480, 875, 30, 327, 365, 6315, 16769, ...
Only available for \code{hg_sage.}
Only available for the \code{hg_sage} repository.
def clone(self, name, rev=None): r""" Clone the current branch of the SAGE library, and make it active.
b2a1c87733cedabacafe0a7e864d2694da68488e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/b2a1c87733cedabacafe0a7e864d2694da68488e/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3236, 12, 2890, 16, 508, 16, 5588, 33, 7036, 4672, 436, 8395, 12758, 326, 783, 3803, 434, 326, 348, 2833, 5313, 16, 471, 1221, 518, 2695, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3236, 12, 2890, 16, 508, 16, 5588, 33, 7036, 4672, 436, 8395, 12758, 326, 783, 3803, 434, 326, 348, 2833, 5313, 16, 471, 1221, 518, 2695, 18, 2, -100, -100, -100, -100, -100, -100, -10...
raise ValueError, "empty header"
raise ValueError("empty header")
def frombuf(cls, buf): """Construct a TarInfo object from a 512 byte string buffer. """ if len(buf) != BLOCKSIZE: raise ValueError, "truncated header" if buf.count(NUL) == BLOCKSIZE: raise ValueError, "empty header"
a080e25938abc4d1161007bb915b3848123a4f64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a080e25938abc4d1161007bb915b3848123a4f64/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 4385, 12, 6429, 16, 1681, 4672, 3536, 7249, 279, 20334, 966, 733, 628, 279, 13908, 1160, 533, 1613, 18, 3536, 309, 562, 12, 4385, 13, 480, 14073, 4574, 30, 1002, 2068, 16, 315, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 4385, 12, 6429, 16, 1681, 4672, 3536, 7249, 279, 20334, 966, 733, 628, 279, 13908, 1160, 533, 1613, 18, 3536, 309, 562, 12, 4385, 13, 480, 14073, 4574, 30, 1002, 2068, 16, 315, 23...
def entryconfigure(self, x, y, **kw): return self.tk.call(self, 'entryconfigure', x, y, *self._options(None, kw))
def entryconfigure(self, x, y, cnf=None, **kw): return self._configure(('entryconfigure', x, y), cnf, kw)
def entryconfigure(self, x, y, **kw): return self.tk.call(self, 'entryconfigure', x, y, *self._options(None, kw))
397bd1e740c0cb08bf2c290975bc250bb4aa0f2e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/397bd1e740c0cb08bf2c290975bc250bb4aa0f2e/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1241, 14895, 12, 2890, 16, 619, 16, 677, 16, 2826, 9987, 4672, 327, 365, 18, 16099, 18, 1991, 12, 2890, 16, 296, 4099, 14895, 2187, 619, 16, 677, 16, 380, 2890, 6315, 2116, 12, 7036, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1241, 14895, 12, 2890, 16, 619, 16, 677, 16, 2826, 9987, 4672, 327, 365, 18, 16099, 18, 1991, 12, 2890, 16, 296, 4099, 14895, 2187, 619, 16, 677, 16, 380, 2890, 6315, 2116, 12, 7036, ...
words[0] = '\\fB' + words[0] + '\\fR'
words[0] = '\\fB' + words[0] + '\\fR '
def macro_B(self, line): words = line.split() words[0] = '\\fB' + words[0] + '\\fR' self.text(' '.join(words))
b9cf07b3c13ddb0889a2377566267a4285d8d287 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/b9cf07b3c13ddb0889a2377566267a4285d8d287/man2lore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 67, 38, 12, 2890, 16, 980, 4672, 4511, 273, 980, 18, 4939, 1435, 4511, 63, 20, 65, 273, 3718, 74, 38, 11, 397, 4511, 63, 20, 65, 397, 3718, 74, 54, 296, 365, 18, 955, 2668, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 67, 38, 12, 2890, 16, 980, 4672, 4511, 273, 980, 18, 4939, 1435, 4511, 63, 20, 65, 273, 3718, 74, 38, 11, 397, 4511, 63, 20, 65, 397, 3718, 74, 54, 296, 365, 18, 955, 2668, ...
s.stdin = self.restricted_stdin s.stdout = self.restricted_stdout s.stderr = self.restricted_stderr sys.stdin = self.delegate_stdin sys.stdout = self.delegate_stdout sys.stderr = self.delegate_stderr
s.stdin = self.restricted_stdin s.stdout = self.restricted_stdout s.stderr = self.restricted_stderr sys.stdin = self.delegate_stdin sys.stdout = self.delegate_stdout sys.stderr = self.delegate_stderr
def set_files(self):
ca6ae39a786f3d7535cba0f2aef10692eb750051 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ca6ae39a786f3d7535cba0f2aef10692eb750051/rexec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 2354, 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, ...
[ 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, 444, 67, 2354, 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...
file = unquote(file)
def open_local_file(self, url): import mimetypes, mimetools, StringIO mtype = mimetypes.guess_type(url)[0] headers = mimetools.Message(StringIO.StringIO( 'Content-Type: %s\n' % (mtype or 'text/plain'))) host, file = splithost(url) if not host: return addinfourl( open(url2pathname(file), 'rb'), headers, 'file:'+file) ho...
33add0a95aa6c5ba5dbb8cae7b51a253209ecd6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/33add0a95aa6c5ba5dbb8cae7b51a253209ecd6f/urllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 3729, 67, 768, 12, 2890, 16, 880, 4672, 1930, 20369, 15180, 16, 20369, 278, 8192, 16, 15777, 22189, 273, 20369, 15180, 18, 20885, 67, 723, 12, 718, 25146, 20, 65, 1607, 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, 1696, 67, 3729, 67, 768, 12, 2890, 16, 880, 4672, 1930, 20369, 15180, 16, 20369, 278, 8192, 16, 15777, 22189, 273, 20369, 15180, 18, 20885, 67, 723, 12, 718, 25146, 20, 65, 1607, 273, ...
current_servers=( """ % (ver, out))
%s_servers=( """ % (ver, out, out))
def dumpattr(self, what, dest): dest.write("# ") for i in range(len(what)+4): dest.write("-") dest.write("\n") dest.write("# - %s -\n" % what.upper()) dest.write("# ") for i in range(len(self.country)+4): dest.write("-") dest.write("\n")
446f717043b91ac3bf0b0c8086ed182dcaee8917 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11991/446f717043b91ac3bf0b0c8086ed182dcaee8917/mirrors.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 1747, 12, 2890, 16, 4121, 16, 1570, 4672, 1570, 18, 2626, 2932, 7, 9369, 364, 277, 316, 1048, 12, 1897, 12, 23770, 27921, 24, 4672, 1570, 18, 2626, 2932, 17, 7923, 1570, 18, 2626...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 1747, 12, 2890, 16, 4121, 16, 1570, 4672, 1570, 18, 2626, 2932, 7, 9369, 364, 277, 316, 1048, 12, 1897, 12, 23770, 27921, 24, 4672, 1570, 18, 2626, 2932, 17, 7923, 1570, 18, 2626...
def _fetch_row(self): return self.result.fetch_row_as_dict() def _fetch_rows(self, size): return self.result.fetch_rows_as_dict(size) def _fetch_all_rows(self): return self.result.fetch_all_rows_as_dict()
def _fetch_row(self): return self._result.fetch_row_as_dict() def _fetch_rows(self, size): return self._result.fetch_rows_as_dict(size) def _fetch_all_rows(self): return self._result.fetch_all_rows_as_dict()
def _fetch_row(self): return self.result.fetch_row_as_dict()
4dcca6779b980ae173a387375f0f35be5e3fead3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10477/4dcca6779b980ae173a387375f0f35be5e3fead3/MySQLdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5754, 67, 492, 12, 2890, 4672, 327, 365, 18, 2088, 18, 5754, 67, 492, 67, 345, 67, 1576, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5754, 67, 492, 12, 2890, 4672, 327, 365, 18, 2088, 18, 5754, 67, 492, 67, 345, 67, 1576, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.update_all_section_data()
def get_memory_mapped_image(self, max_virtual_address=0x10000000, ImageBase=None): """Returns the data corresponding to the memory layout of the PE file. The data includes the PE header and the sections loaded at offsets corresponding to their relative virtual addresses. (the VirtualAddress section header member). Any...
cd44c5a15607839646e8bfd332a2bfd25114fac3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4177/cd44c5a15607839646e8bfd332a2bfd25114fac3/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7858, 67, 13654, 67, 2730, 12, 2890, 16, 943, 67, 12384, 67, 2867, 33, 20, 92, 21, 17877, 16, 3421, 2171, 33, 7036, 4672, 3536, 1356, 326, 501, 4656, 358, 326, 3778, 3511, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7858, 67, 13654, 67, 2730, 12, 2890, 16, 943, 67, 12384, 67, 2867, 33, 20, 92, 21, 17877, 16, 3421, 2171, 33, 7036, 4672, 3536, 1356, 326, 501, 4656, 358, 326, 3778, 3511, 4...
self._instrument.set(self._parameter, val)
self._instrument.set(self._parameter, val, callback=lambda *x: True)
def do_set(self): self._dirty = False val = self.get_text() self._instrument.set(self._parameter, val)
36f61eb1a5b324a2be1617e6033eb112e4e0344e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6471/36f61eb1a5b324a2be1617e6033eb112e4e0344e/frontpanel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 542, 12, 2890, 4672, 365, 6315, 18013, 273, 1083, 1244, 273, 365, 18, 588, 67, 955, 1435, 365, 6315, 22818, 18, 542, 12, 2890, 6315, 6775, 16, 1244, 13, 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, 741, 67, 542, 12, 2890, 4672, 365, 6315, 18013, 273, 1083, 1244, 273, 365, 18, 588, 67, 955, 1435, 365, 6315, 22818, 18, 542, 12, 2890, 6315, 6775, 16, 1244, 13, 2, -100, -100, -100, ...
if q2.label == "RUNNING" or q2.label == "INIT_ERROR" or q2.label == "TODO": session.close() return q2
ret = [] ret.append( { 'id' : q2.id, 'label' : q2.label, 'item' : ""} )
def getLocationSynchroState(self, uuid): """ Attempt to see if a location uuid needs to be synced, or not
c2d98e0a952027fbb8c7c906a7931041d0c3586b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/c2d98e0a952027fbb8c7c906a7931041d0c3586b/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13312, 55, 2515, 303, 1119, 12, 2890, 16, 3822, 4672, 3536, 12864, 358, 2621, 309, 279, 2117, 3822, 4260, 358, 506, 21048, 16, 578, 486, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 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, 13312, 55, 2515, 303, 1119, 12, 2890, 16, 3822, 4672, 3536, 12864, 358, 2621, 309, 279, 2117, 3822, 4260, 358, 506, 21048, 16, 578, 486, 2, -100, -100, -100, -100, -100, -100, -100, -100...
self._GetAuthCookie(auth_token)
self._GetAuthCookie(host, auth_token)
def _Authenticate(self): """Authenticates the user.
fd1440d3a0fce7d5a886f9a67c1bc1469aa97957 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/fd1440d3a0fce7d5a886f9a67c1bc1469aa97957/upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 17618, 12, 2890, 4672, 3536, 1730, 4499, 815, 326, 729, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 389, 17618, 12, 2890, 4672, 3536, 1730, 4499, 815, 326, 729, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if os.path.isdir(path):
if os.path.isdir(path) and not os.path.islink(path):
def remove(paths): for path in braceGlob(paths): if os.path.isdir(path): log.warning('Not removing directory %s', path) elif os.path.exists(path) or os.path.islink(path): log.debug('deleting [file] %s', path) os.remove(path) else: log.warning('file %s does not exist when attempting to delete [file]', path)
47a2dfca7d6dcea4ba5632de275b4d0823b04584 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/47a2dfca7d6dcea4ba5632de275b4d0823b04584/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 4481, 4672, 364, 589, 316, 22500, 13499, 12, 4481, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 803, 13, 471, 486, 1140, 18, 803, 18, 291, 1232, 12, 803, 4672, 613, 18, 855...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 12, 4481, 4672, 364, 589, 316, 22500, 13499, 12, 4481, 4672, 309, 1140, 18, 803, 18, 291, 1214, 12, 803, 13, 471, 486, 1140, 18, 803, 18, 291, 1232, 12, 803, 4672, 613, 18, 855...
configVar(vars)
def endParse(self): # !!! Debugging Prints !!! # print "* endParse:" # print " includes: " + str(self.includePats) # print " excludes: " + str(self.excludePats) # print " levels: " + str(self.levels) # print " missings: " + str(self.missings)
a32fd692dd1e30de835cd0c6d09d9bec8f3ccf92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/a32fd692dd1e30de835cd0c6d09d9bec8f3ccf92/dws.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 3201, 12, 2890, 4672, 468, 401, 8548, 4015, 1998, 3038, 87, 401, 8548, 468, 1172, 15902, 679, 3201, 2773, 468, 1172, 315, 377, 6104, 30, 315, 397, 609, 12, 2890, 18, 6702, 52, 232...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 3201, 12, 2890, 4672, 468, 401, 8548, 4015, 1998, 3038, 87, 401, 8548, 468, 1172, 15902, 679, 3201, 2773, 468, 1172, 315, 377, 6104, 30, 315, 397, 609, 12, 2890, 18, 6702, 52, 232...
return
return 'break'
def check_module_event(self, event): filename = self.getfilename() if not filename: return if not self.checksyntax(filename): return if not self.tabnanny(filename): return
1adb239ef3ebf62b7cd46fc2588e4c8920d11370 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/1adb239ef3ebf62b7cd46fc2588e4c8920d11370/ScriptBinding.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2978, 67, 2575, 12, 2890, 16, 871, 4672, 1544, 273, 365, 18, 588, 3459, 1435, 309, 486, 1544, 30, 327, 296, 8820, 11, 309, 486, 365, 18, 12366, 5392, 12, 3459, 4672, 327, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 2978, 67, 2575, 12, 2890, 16, 871, 4672, 1544, 273, 365, 18, 588, 3459, 1435, 309, 486, 1544, 30, 327, 296, 8820, 11, 309, 486, 365, 18, 12366, 5392, 12, 3459, 4672, 327, 29...
self.primality = [false]
self.primality = [False]
def find_factor(self, n, factor_digits=None, B1=2000, **kwds): """ Splits off a single factor of n. See ECM.factor() """ if not 'c' in kwds: kwds['c'] = 1000000000 if not 'I' in kwds: kwds['I'] = 1 if not factor_digits is None: B1 = self.recommended_B1(factor_digits) kwds['one'] = '' kwds['cofdec'] = '' self.__cmd = se...
38f067f99ab720ab235c9ffeb4a7002e44609b52 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/38f067f99ab720ab235c9ffeb4a7002e44609b52/ecm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 6812, 12, 2890, 16, 290, 16, 5578, 67, 16649, 33, 7036, 16, 605, 21, 33, 17172, 16, 2826, 25577, 4672, 3536, 5385, 87, 3397, 279, 2202, 5578, 434, 290, 18, 2164, 7773, 49, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 67, 6812, 12, 2890, 16, 290, 16, 5578, 67, 16649, 33, 7036, 16, 605, 21, 33, 17172, 16, 2826, 25577, 4672, 3536, 5385, 87, 3397, 279, 2202, 5578, 434, 290, 18, 2164, 7773, 49, ...
milestone = Milestone(self.__env, name)
milestone = Milestone(self.env_open(), name)
def _do_milestone_remove(self, name): milestone = Milestone(self.__env, name) milestone.delete()
132f03448459e7c8907500129479bb5f6c5bc47a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/132f03448459e7c8907500129479bb5f6c5bc47a/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 81, 18270, 67, 4479, 12, 2890, 16, 508, 4672, 28664, 273, 490, 18270, 12, 2890, 18, 3074, 67, 3190, 9334, 508, 13, 28664, 18, 3733, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2896, 67, 81, 18270, 67, 4479, 12, 2890, 16, 508, 4672, 28664, 273, 490, 18270, 12, 2890, 18, 3074, 67, 3190, 9334, 508, 13, 28664, 18, 3733, 1435, 2, -100, -100, -100, -100, -100...
var t = cell.value.replace('<','<span><</span>');
var t = cell.value.replaceAll("<","&lt;");
def notebook_lib(): s= r"""
66ca27ed890b3822ca58f3212d187a2dff2050b9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/66ca27ed890b3822ca58f3212d187a2dff2050b9/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14718, 67, 2941, 13332, 272, 33, 436, 8395, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 14718, 67, 2941, 13332, 272, 33, 436, 8395, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
def updateGitMirrors():
def updateGitMirrors(verbose):
def updateGitMirrors(): if not os.path.isdir(grepodir): print "No directory", grepodir, "is setup." return #return # The following is all disabled: print "Downloading from git mirrors." for (repo, dirname, maxchanges) in gitrepos: #print repo d = grepodir + "/" + dirname if repo.startswith("rsync://"): os.system("rs...
94d20b21f590864868f298ea6932a0b043609361 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/94d20b21f590864868f298ea6932a0b043609361/oldpyrpm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 11540, 49, 27026, 12, 11369, 4672, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 11556, 7832, 481, 4672, 1172, 315, 2279, 1867, 3113, 5174, 7832, 481, 16, 315, 291, 3875, 1199, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 11540, 49, 27026, 12, 11369, 4672, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 11556, 7832, 481, 4672, 1172, 315, 2279, 1867, 3113, 5174, 7832, 481, 16, 315, 291, 3875, 1199, 327, ...
width = font_metrics.maxWidth() * 81 + margin
width = font_metrics.width(' ') * 81 + margin
def sizeHint(self): """ Reimplemented to suggest a size that is 80 characters wide and 25 lines high. """ font_metrics = QtGui.QFontMetrics(self.font) margin = (self._control.frameWidth() + self._control.document().documentMargin()) * 2 style = self.style() splitwidth = style.pixelMetric(QtGui.QStyle.PM_SplitterWidth)
a15035c6a848ca97d262a28caefc88d331d40042 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4217/a15035c6a848ca97d262a28caefc88d331d40042/console_widget.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 963, 7002, 12, 2890, 4672, 3536, 868, 21099, 358, 19816, 279, 963, 716, 353, 8958, 3949, 14812, 471, 6969, 2362, 3551, 18, 3536, 3512, 67, 9597, 273, 23425, 18, 53, 5711, 5653, 12, 2890,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 963, 7002, 12, 2890, 4672, 3536, 868, 21099, 358, 19816, 279, 963, 716, 353, 8958, 3949, 14812, 471, 6969, 2362, 3551, 18, 3536, 3512, 67, 9597, 273, 23425, 18, 53, 5711, 5653, 12, 2890,...
'`' : 49, '\\' : 51, ' :' : 59,
'`' : 49, '\\' : 51, ',' : 59,
def _get_key_value(self, keyval): # A - Z / a - z _char_key = {'a' : 38, 'b' : 56, 'c' : 54, 'd' : 40, 'e' : 26, 'f' : 41, 'g' : 42, 'h' : 43, 'i' : 31, 'j' : 44, 'k' : 45, 'l' : 46, 'm' : 58, 'n' : 57, 'o' : 32, 'p' : 33, 'q' : 24, 'r' : 27, 's' : 39, 't' : 28, 'u' : 30, 'v' : 55, 'w' : 25, 'x' : 53, 'y' : 29, 'z' : 5...
ef98c102f96c2679122dad78a63e493f90a64fef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11266/ef98c102f96c2679122dad78a63e493f90a64fef/keypress_actions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 856, 67, 1132, 12, 2890, 16, 498, 1125, 4672, 468, 432, 300, 2285, 342, 279, 300, 998, 389, 3001, 67, 856, 273, 13666, 69, 11, 294, 18012, 16, 296, 70, 11, 294, 13850, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 856, 67, 1132, 12, 2890, 16, 498, 1125, 4672, 468, 432, 300, 2285, 342, 279, 300, 998, 389, 3001, 67, 856, 273, 13666, 69, 11, 294, 18012, 16, 296, 70, 11, 294, 13850, ...
if self.manager.disable >= ERROR: return
def error(self, msg, *args, **kwargs): """ Log 'msg % args' with severity 'ERROR'.
daa6f254c6cf5acad6fb56bc9f360ec26407b409 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/daa6f254c6cf5acad6fb56bc9f360ec26407b409/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 2890, 16, 1234, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1827, 296, 3576, 738, 833, 11, 598, 11426, 296, 3589, 10332, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 555, 12, 2890, 16, 1234, 16, 380, 1968, 16, 2826, 4333, 4672, 3536, 1827, 296, 3576, 738, 833, 11, 598, 11426, 296, 3589, 10332, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
.. math:: \\left[\\frac{T+Kp+t}{T-Kp-t}\\right]^{K}$$\\left|\\Omega\\right|
.. math:: \\left[\\frac{T+Kp+t}{T-Kp-t}\\right]^{K}\\left|\\Omega\\right|
def fit(self, method="ols", structural=None, dfk=None, maxlag=None, ic=None, trend="c"): """ Fit the VAR model
7f446d935a3f8abff9eef12c011a30893b194a29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/7f446d935a3f8abff9eef12c011a30893b194a29/var.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4845, 12, 2890, 16, 707, 1546, 3528, 3113, 1958, 3766, 33, 7036, 16, 3013, 79, 33, 7036, 16, 943, 22532, 33, 7036, 16, 13579, 33, 7036, 16, 268, 20262, 1546, 71, 6, 4672, 3536, 30504, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4845, 12, 2890, 16, 707, 1546, 3528, 3113, 1958, 3766, 33, 7036, 16, 3013, 79, 33, 7036, 16, 943, 22532, 33, 7036, 16, 13579, 33, 7036, 16, 268, 20262, 1546, 71, 6, 4672, 3536, 30504, ...
ll = self.GetCurrentLine()
def OnShellEnter(self, event): self.BeginUndoAction() try:
5ad21a150f4933abf1d43fc72ecf4bb2d6645cee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5ad21a150f4933abf1d43fc72ecf4bb2d6645cee/ShellEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 13220, 10237, 12, 2890, 16, 871, 4672, 365, 18, 8149, 31224, 1803, 1435, 775, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 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, 2755, 13220, 10237, 12, 2890, 16, 871, 4672, 365, 18, 8149, 31224, 1803, 1435, 775, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
def Init(self, manager, explorer): ButtonDeleteAsEventBase.Init(self, manager, explorer) image = "delete_as_spam.bmp" self.Caption = "Delete As Spam" self.TooltipText = \ "Move the selected message to the Spam folder,\n" \ "and train the system that this is Spam." SetButtonImage(self, image, manager)
def Init(self, manager, explorer): ButtonDeleteAsEventBase.Init(self, manager, explorer) image = "delete_as_spam.bmp" self.Caption = "Delete As Spam" self.TooltipText = \ "Move the selected message to the Spam folder,\n" \ "and train the system that this is Spam." SetButtonImage(self, image, manager)
55a16a1b281412a69ed1283ebe9656651300e35c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/55a16a1b281412a69ed1283ebe9656651300e35c/addin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4378, 12, 2890, 16, 3301, 16, 22147, 4672, 12569, 2613, 1463, 1133, 2171, 18, 2570, 12, 2890, 16, 3301, 16, 22147, 13, 1316, 273, 315, 3733, 67, 345, 67, 1752, 301, 18, 70, 1291, 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, 4378, 12, 2890, 16, 3301, 16, 22147, 4672, 12569, 2613, 1463, 1133, 2171, 18, 2570, 12, 2890, 16, 3301, 16, 22147, 13, 1316, 273, 315, 3733, 67, 345, 67, 1752, 301, 18, 70, 1291, 6, ...
def run_test(self, func):
def run_and_compare(self, func, events):
def compare_events(self, line_offset, events, expected_events): events = [(l - line_offset, e) for (l, e) in events] if events != expected_events: self.fail( "events did not match expectation:\n" + "\n".join(difflib.ndiff([str(x) for x in expected_events], [str(x) for x in events])))
df977bfeb0d6fe925678570f2b09edf101670dfb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/df977bfeb0d6fe925678570f2b09edf101670dfb/test_trace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 67, 5989, 12, 2890, 16, 980, 67, 3348, 16, 2641, 16, 2665, 67, 5989, 4672, 2641, 273, 306, 12, 80, 300, 980, 67, 3348, 16, 425, 13, 364, 261, 80, 16, 425, 13, 316, 2641, 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, 3400, 67, 5989, 12, 2890, 16, 980, 67, 3348, 16, 2641, 16, 2665, 67, 5989, 4672, 2641, 273, 306, 12, 80, 300, 980, 67, 3348, 16, 425, 13, 364, 261, 80, 16, 425, 13, 316, 2641, 65, ...
path='/nofile-or-directory-to-be-deleted')
path='/static/upload/nofile-or-directory-to-be-deleted')
def test_delete_file_or_directory_not_existent(self): """Test deletion of a not existent file or directory.""" self.exists_mock.return_value = False self.mockify(exists_mock=self.exists_mock, path='/nofile-or-directory-to-be-deleted')
9e4515155641162b4734bc23173fb8517537c1f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3536/9e4515155641162b4734bc23173fb8517537c1f1/views.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 3733, 67, 768, 67, 280, 67, 5149, 67, 902, 67, 19041, 12, 2890, 4672, 3536, 4709, 10899, 434, 279, 486, 30364, 585, 578, 1867, 12123, 365, 18, 1808, 67, 22851, 18, 2463, 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, 1842, 67, 3733, 67, 768, 67, 280, 67, 5149, 67, 902, 67, 19041, 12, 2890, 4672, 3536, 4709, 10899, 434, 279, 486, 30364, 585, 578, 1867, 12123, 365, 18, 1808, 67, 22851, 18, 2463, 67, ...
s += ' s_bases.push_back(std::make_pair(ROOT::Reflex::Base( ROOT::Reflex::GetType< %s >(), ROOT::Reflex::BaseOffset< %s,%s >::Get(),%s), %d));\n' % (bname, cl, bname, b[1], b[2]) s += ' return &s_bases;\n'
s += ' s_bases.push_back(std::make_pair(seal::reflex::Base( seal::reflex::getType< %s >(), seal::reflex::baseOffset< %s,%s >::get(),%s), %d));\n' % (bname, cl, bname, b[1], b[2]) s += ' }\n return &s_bases;\n' s += '}\n' return s def genGetNewDelFunctionsDecl( self, attrs, args ) : return 'static void* method%s( ...
def genGetBasesTableDef( self, attrs, args ) : cid = attrs['context'] cl = self.genTypeName(cid, colon=True) clt = string.translate(str(cl), self.transtable) s = 'static void* method%s( void*, const std::vector<void*>&, void*)\n{\n' %( attrs['id'], ) s += ' static std::vector<std::pair<ROOT::Reflex::B...
ffb9f0da8a7880be4eeb238ef118e10f537928fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4350/ffb9f0da8a7880be4eeb238ef118e10f537928fe/gendict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3157, 967, 38, 3304, 1388, 3262, 12, 365, 16, 3422, 16, 833, 262, 294, 7504, 1377, 273, 3422, 3292, 2472, 3546, 927, 4202, 273, 365, 18, 4507, 7947, 12, 13478, 16, 13336, 33, 5510, 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, 3157, 967, 38, 3304, 1388, 3262, 12, 365, 16, 3422, 16, 833, 262, 294, 7504, 1377, 273, 3422, 3292, 2472, 3546, 927, 4202, 273, 365, 18, 4507, 7947, 12, 13478, 16, 13336, 33, 5510, 13,...
help=self.list.__doc__, )
help=self.apply.__doc__, ) parser.set_defaults(action=self.list)
def init_argparser(self, parser): """Add our arguments to a parser """ actions = parser.add_mutually_exclusive_group() actions.add_argument( '--list', dest='action', action='store_const', const=self.list, help=self.list.__doc__, ) actions.add_argument( '--generate', dest='action', action='store_const', const=self.gener...
7c55946201fe9d4433d53e6e7658213ee5127bc9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14549/7c55946201fe9d4433d53e6e7658213ee5127bc9/distributions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1208, 67, 3175, 4288, 12, 2890, 16, 2082, 4672, 3536, 986, 3134, 1775, 358, 279, 2082, 3536, 4209, 273, 2082, 18, 1289, 67, 10735, 3452, 67, 23792, 67, 1655, 1435, 4209, 18, 1289, 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, 3175, 4288, 12, 2890, 16, 2082, 4672, 3536, 986, 3134, 1775, 358, 279, 2082, 3536, 4209, 273, 2082, 18, 1289, 67, 10735, 3452, 67, 23792, 67, 1655, 1435, 4209, 18, 1289, 67, ...
raise ValueError, "MsgId has already been set, cannot be changed"
raise ValueError, "MsgId has already been set, cannot be changed" + `self.id` + `id`
def setId(self, id): if self.id and self.id != id: raise ValueError, "MsgId has already been set, cannot be changed"
b63e4a518aa9066d78410bc4189ecd3c2614bad4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/b63e4a518aa9066d78410bc4189ecd3c2614bad4/message.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10446, 12, 2890, 16, 612, 4672, 309, 365, 18, 350, 471, 365, 18, 350, 480, 612, 30, 1002, 2068, 16, 315, 3332, 548, 711, 1818, 2118, 444, 16, 2780, 506, 3550, 6, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10446, 12, 2890, 16, 612, 4672, 309, 365, 18, 350, 471, 365, 18, 350, 480, 612, 30, 1002, 2068, 16, 315, 3332, 548, 711, 1818, 2118, 444, 16, 2780, 506, 3550, 6, 2, -100, -100, -100,...
register.filter('taxed_sale_price', sale_price)
register.filter('taxed_sale_price', taxed_sale_price)
def taxed_sale_price(product): """Returns the product unit price with the best auto discount applied and taxes included.""" taxer = satchmo_tax._get_taxprocessor() price = untaxed_sale_price(product) price = price + taxer.by_price(product.taxClass, price) return price
e34349006fe7eb835d55d0bbbb06f853c5f2f7e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/171/e34349006fe7eb835d55d0bbbb06f853c5f2f7e3/satchmo_discounts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5320, 329, 67, 87, 5349, 67, 8694, 12, 5896, 4672, 3536, 1356, 326, 3017, 2836, 6205, 598, 326, 3796, 3656, 12137, 6754, 471, 5320, 281, 5849, 12123, 5320, 264, 273, 272, 505, 8683, 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, 5320, 329, 67, 87, 5349, 67, 8694, 12, 5896, 4672, 3536, 1356, 326, 3017, 2836, 6205, 598, 326, 3796, 3656, 12137, 6754, 471, 5320, 281, 5849, 12123, 5320, 264, 273, 272, 505, 8683, 67, ...
if len (parts) > 2: self.create_namespace ('/' + parent, verbose=verbose) return self.create_namespace (path, description,
if len(parts) > 2: self.create_namespace('/' + parent, verbose=verbose) return self.create_namespace(path, description,
def create_namespace (self, path, description='', createParentIfNeeded=True, verbose=False): """Creates the namespace specified by path using the description given.
e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 4937, 261, 2890, 16, 589, 16, 2477, 2218, 2187, 752, 3054, 18299, 33, 5510, 16, 3988, 33, 8381, 4672, 3536, 2729, 326, 1981, 1269, 635, 589, 1450, 326, 2477, 864, 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, 752, 67, 4937, 261, 2890, 16, 589, 16, 2477, 2218, 2187, 752, 3054, 18299, 33, 5510, 16, 3988, 33, 8381, 4672, 3536, 2729, 326, 1981, 1269, 635, 589, 1450, 326, 2477, 864, 18, 2, -100,...
curr_pos = e.scenePos()
curr_pos = self.selector.mapFromScene(e.scenePos())
def mouseReleaseEvent(self,e): curr_pos = e.scenePos() x = min(self.selector.startPoint.x(),curr_pos.x()) y = min(self.selector.startPoint.y(),curr_pos.y()) w = max(self.selector.startPoint.x(),curr_pos.x()) - x h = max(self.selector.startPoint.y(),curr_pos.y()) - y if self.selector.startPoint == curr_pos: self.selecto...
259ff5736e95ef329503c0cbd1635e83345101e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/259ff5736e95ef329503c0cbd1635e83345101e9/qt4render.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 7391, 1133, 12, 2890, 16, 73, 4672, 4306, 67, 917, 273, 365, 18, 9663, 18, 1458, 1265, 14370, 12, 73, 18, 23694, 1616, 10756, 619, 273, 1131, 12, 2890, 18, 9663, 18, 1937, 2148, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7644, 7391, 1133, 12, 2890, 16, 73, 4672, 4306, 67, 917, 273, 365, 18, 9663, 18, 1458, 1265, 14370, 12, 73, 18, 23694, 1616, 10756, 619, 273, 1131, 12, 2890, 18, 9663, 18, 1937, 2148, ...
password = forms.CharField(max_length=50, widget=forms.PasswordInput(attrs={'size':30}), required=False) confirmation = forms.CharField(max_length=50, widget=forms.PasswordInput(attrs={'size':30}), required=False)
password = forms.CharField(max_length=50, widget=forms.PasswordInput(attrs={'size':30, 'autocomplete': 'off'}), required=False) confirmation = forms.CharField(max_length=50, widget=forms.PasswordInput(attrs={'size':30, 'autocomplete': 'off'}), required=False)
def __init__(self, name_check=False, email_check=False, *args, **kwargs): super(ExperimenterForm, self).__init__(*args, **kwargs) self.name_check=name_check self.email_check=email_check try: self.fields['default_group'] = DefaultGroupField(choices=kwargs['initial']['default'], widget=forms.RadioSelect(), required=True...
1b34cc31fcc05c09bec2e5557c02c3a370c77a12 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12409/1b34cc31fcc05c09bec2e5557c02c3a370c77a12/forms.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 67, 1893, 33, 8381, 16, 2699, 67, 1893, 33, 8381, 16, 380, 1968, 16, 2826, 4333, 4672, 2240, 12, 424, 457, 381, 2328, 1204, 16, 365, 2934, 972, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 67, 1893, 33, 8381, 16, 2699, 67, 1893, 33, 8381, 16, 380, 1968, 16, 2826, 4333, 4672, 2240, 12, 424, 457, 381, 2328, 1204, 16, 365, 2934, 972, 27...
if self.positions.shape != atoms.positions.shape:
if (self.positions is None or self.positions.shape != atoms.positions.shape):
def update(self, atoms): if (self.positions is None or self.positions.shape != atoms.positions.shape or (self.positions != atoms.get_positions()).any() or (self.incar_parameters != self.old_incar_parameters) or (self.input_parameters != self.old_input_parameters) or not self.converged ): if self.positions.shape != atom...
7b5b1c9f8283555dd9923201cdd32bd48c392bc9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/7b5b1c9f8283555dd9923201cdd32bd48c392bc9/vasp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 9006, 4672, 309, 261, 2890, 18, 12388, 353, 599, 578, 365, 18, 12388, 18, 4867, 480, 9006, 18, 12388, 18, 4867, 578, 261, 2890, 18, 12388, 480, 9006, 18, 588, 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, 1089, 12, 2890, 16, 9006, 4672, 309, 261, 2890, 18, 12388, 353, 599, 578, 365, 18, 12388, 18, 4867, 480, 9006, 18, 12388, 18, 4867, 578, 261, 2890, 18, 12388, 480, 9006, 18, 588, 67, ...
def run(self, t): gen = self.channel_get(self.is_end) for a in gen: if t: time.sleep(t)
def process(self): pass
ded18ea04e28c60af8a7b2d7e1ab8546cbd7b8f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/ded18ea04e28c60af8a7b2d7e1ab8546cbd7b8f5/proto_new.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 4672, 1342, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12, 2890, 4672, 1342, 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, -...
`(k, s)` where `k` is the index of the symbol obtained by acting
``(k, s)`` where `k` is the index of the symbol obtained by acting
def apply_S(self, j): """ Apply the matrix `S=[0,1;-1,0]` to the `j`-th Manin symbol.
e265517a575a65b09b817a2b1feaf73c31f0ba93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/e265517a575a65b09b817a2b1feaf73c31f0ba93/manin_symbols.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 55, 12, 2890, 16, 525, 4672, 3536, 5534, 326, 3148, 1375, 55, 22850, 20, 16, 21, 31, 17, 21, 16, 20, 65, 68, 358, 326, 1375, 78, 68, 17, 451, 8660, 267, 3273, 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, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2230, 67, 55, 12, 2890, 16, 525, 4672, 3536, 5534, 326, 3148, 1375, 55, 22850, 20, 16, 21, 31, 17, 21, 16, 20, 65, 68, 358, 326, 1375, 78, 68, 17, 451, 8660, 267, 3273, 18, 2, -1...
cmd = ["dlltool", "--dllname", os.path.join(jdk_home,"jre\\bin\\client\\jvm.dll"), "--output-lib","libjvm.a", "--input-def","jvm.def", "--kill-at"] p = subprocess.Popen(cmd) p.communicate() if jdk_home is not None: jdk_include = os.path.join(jdk_home, "include") jdk_include_plat = os.path.join(jdk_include, sys.platfor...
if sys.platform.startswith('win'): cmd = ["dlltool", "--dllname", os.path.join(jdk_home,"jre\\bin\\client\\jvm.dll"), "--output-lib","libjvm.a", "--input-def","jvm.def", "--kill-at"] p = subprocess.Popen(cmd) p.communicate() if jdk_home is not None: jdk_include = os.path.join(jdk_home, "include") jdk_include_plat =...
def configuration(): extensions = [] if sys.platform.startswith('win'): extensions += [Extension(name="_get_proper_case_filename", sources=["get_proper_case_filename.c"], libraries=["shlwapi", "shell32", "ole32"], extra_compile_args=['-O3'])] # # Find JAVA_HOME, possibly from Windows registry # java_home = find_javahom...
56bb4f355ae8e32d27013160ff765d2c9c16738d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2870/56bb4f355ae8e32d27013160ff765d2c9c16738d/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1664, 13332, 4418, 273, 5378, 309, 2589, 18, 9898, 18, 17514, 1918, 2668, 8082, 11, 4672, 4418, 1011, 306, 3625, 12, 529, 1546, 67, 588, 67, 22754, 67, 3593, 67, 3459, 3113, 5550, 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, 1664, 13332, 4418, 273, 5378, 309, 2589, 18, 9898, 18, 17514, 1918, 2668, 8082, 11, 4672, 4418, 1011, 306, 3625, 12, 529, 1546, 67, 588, 67, 22754, 67, 3593, 67, 3459, 3113, 5550, 33, ...
if output: output += ' and '
if output: output += ' and '
def headerstrong(query=1, **ids): """transform keyword=value pairs to string with value in strong text. **ids - a dictionary of pairs to create string from query - 1 -> try to find names to ids of role, user and action. 0 -> do not try to find names, use the value passed on """ output = '' value = '' table = '' for...
23f82669a784517b3dd8a1acd98ec74aa6e40517 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1931/23f82669a784517b3dd8a1acd98ec74aa6e40517/webaccessadmin_lib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1607, 313, 932, 12, 2271, 33, 21, 16, 2826, 2232, 4672, 3536, 6547, 4932, 33, 1132, 5574, 358, 533, 598, 460, 316, 11773, 977, 18, 225, 2826, 2232, 300, 279, 3880, 434, 5574, 358, 752,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1607, 313, 932, 12, 2271, 33, 21, 16, 2826, 2232, 4672, 3536, 6547, 4932, 33, 1132, 5574, 358, 533, 598, 460, 316, 11773, 977, 18, 225, 2826, 2232, 300, 279, 3880, 434, 5574, 358, 752,...
<h1>Shared by Lostriver.net<br></h1>
<h1>Shared by %s<br></h1>
def get(self, base_url): if self.request.host == "t.lostriver.net": self.redirect("http://twitter.com/LucienLu") elif ((self.request.host == "s.lostriver.net") or \ (self.request.host == "s." + APP_ID + ".appspot.com")): short_item = db.get(db.Key.from_path('Short_links', 'N:%s' % self.request.path_qs)) if not short_it...
6f12422431cd6563b7702f2a8723e30b272b2a1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1797/6f12422431cd6563b7702f2a8723e30b272b2a1d/edu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 1026, 67, 718, 4672, 309, 365, 18, 2293, 18, 2564, 422, 315, 88, 18, 383, 701, 1667, 18, 2758, 6877, 365, 18, 7590, 2932, 2505, 2207, 19406, 18, 832, 19, 48, 5286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 1026, 67, 718, 4672, 309, 365, 18, 2293, 18, 2564, 422, 315, 88, 18, 383, 701, 1667, 18, 2758, 6877, 365, 18, 7590, 2932, 2505, 2207, 19406, 18, 832, 19, 48, 5286,...
return False
return True
def isSystemDLL(pathname): if os.path.basename(pathname).lower() in DLLS_TO_INCLUDE: return False else: return origIsSystemDLL(pathname)
633d9d1747d02b306278e25c75e53332a8316b04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/633d9d1747d02b306278e25c75e53332a8316b04/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 3163, 40, 4503, 12, 28336, 4672, 309, 1140, 18, 803, 18, 13909, 12, 28336, 2934, 8167, 1435, 316, 463, 48, 3045, 67, 4296, 67, 26003, 30, 327, 1053, 469, 30, 327, 1647, 2520, 3163...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 3163, 40, 4503, 12, 28336, 4672, 309, 1140, 18, 803, 18, 13909, 12, 28336, 2934, 8167, 1435, 316, 463, 48, 3045, 67, 4296, 67, 26003, 30, 327, 1053, 469, 30, 327, 1647, 2520, 3163...
'win': '_pyautolib.dll',
'win': '_pyautolib.pyd',
def _ParseArgs(self): parser = optparse.OptionParser() parser.add_option( '-d', '--outdir', type='string', default=None, help='Directory in which to setup. This is typically the directory ' 'where the binaries would go when compiled from source.') parser.add_option( '-p', '--platform', type='string', default=pyauto_uti...
19d57619949a9c224ebacc5c65a8ae750f09af36 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/19d57619949a9c224ebacc5c65a8ae750f09af36/fetch_prebuilt_pyauto.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3201, 2615, 12, 2890, 4672, 2082, 273, 2153, 2670, 18, 1895, 2678, 1435, 2082, 18, 1289, 67, 3482, 12, 2400, 72, 2187, 3534, 659, 1214, 2187, 618, 2218, 1080, 2187, 805, 33, 7036, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3201, 2615, 12, 2890, 4672, 2082, 273, 2153, 2670, 18, 1895, 2678, 1435, 2082, 18, 1289, 67, 3482, 12, 2400, 72, 2187, 3534, 659, 1214, 2187, 618, 2218, 1080, 2187, 805, 33, 7036, ...
proxy_rest = proxy_parsed[2] + '?' + proxy_parsed[3]
if proxy_parsed[2] == '': proxy_rest = '' else: proxy_rest = proxy_parsed[2] + '?' + proxy_parsed[3]
def doProxyDict(self): if self._proxy_dict: return
c462a78525ca381eec0a1e4ede3ef217c2a21a37 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/c462a78525ca381eec0a1e4ede3ef217c2a21a37/yumRepo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 3886, 5014, 12, 2890, 4672, 309, 365, 6315, 5656, 67, 1576, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3886, 5014, 12, 2890, 4672, 309, 365, 6315, 5656, 67, 1576, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return most1 - most2
if most1 == most2: if self.name.split('.')[1][0] not in ['C', 'B']: return 0 prio1 = int(self.name.split('.')[1][1:2]) prio2 = int(other.name.split('.')[1][1:2]) return prio1 - prio2 else: return most1 - most2
def __cmp__(self, other): fields = ['all', 'image', 'classes', 'bundles', 'attributes', 'hostname'] try: most1 = [index for index in range(len(fields)) if getattr(self, fields[index])][0] except IndexError: most1 = 0 try: most2 = [index for index in range(len(fields)) if getattr(other, fields[index])][0] except IndexEr...
23a158721e547c29e682be15b197a089c9af0e1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/23a158721e547c29e682be15b197a089c9af0e1a/Cfg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 1466, 273, 10228, 454, 2187, 296, 2730, 2187, 296, 4701, 2187, 296, 22773, 2187, 296, 4350, 2187, 296, 10358, 3546, 775, 30, 4486, 21, 273, 306...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 9625, 972, 12, 2890, 16, 1308, 4672, 1466, 273, 10228, 454, 2187, 296, 2730, 2187, 296, 4701, 2187, 296, 22773, 2187, 296, 4350, 2187, 296, 10358, 3546, 775, 30, 4486, 21, 273, 306...
def addText(self, text, nobr = 1): if nobr: self.text.append("<nobr>" + text + "</nobr>\n") else: self.text.append(text) self.text.ensureVisible(0, self.text.contentsHeight())
def showFolders(self): self.updateGroups = [] self.dontUpdateGroups = [] try: vf = open(self.downfile) self.downstuff, self.updateGroups, self.dontUpdateGroups = self.readLocalVersionFile(vf.readlines(), updateGroups = 1) vf.close() except: self.addText("Failed to locate file '%s'. There is no information on Orange fol...
a02e8d7153f2c4738602d3234a7588184bd80c5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/a02e8d7153f2c4738602d3234a7588184bd80c5f/updateOrange.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 14885, 12, 2890, 4672, 365, 18, 2725, 3621, 273, 5378, 365, 18, 72, 1580, 1891, 3621, 273, 5378, 775, 30, 28902, 273, 1696, 12, 2890, 18, 2378, 768, 13, 365, 18, 2378, 334, 3809,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14885, 12, 2890, 4672, 365, 18, 2725, 3621, 273, 5378, 365, 18, 72, 1580, 1891, 3621, 273, 5378, 775, 30, 28902, 273, 1696, 12, 2890, 18, 2378, 768, 13, 365, 18, 2378, 334, 3809,...
state.is_linked = False if sid not in self.sessions: self.sessions[sid] = {}
def handle(self, server, state): cfg = self.cfg() log = self.log() sid = server.id() update = False state.is_linked = False if sid not in self.sessions: self.sessions[sid] = {} if state.session in self.sessions[sid]: if state.identity != self.sessions[sid][state.session].identity: update = True if state.context != ...
bf006394da1f11d6ffa68a6257cfce611cb6472e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6845/bf006394da1f11d6ffa68a6257cfce611cb6472e/bf2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 16, 1438, 16, 919, 4672, 2776, 273, 365, 18, 7066, 1435, 613, 273, 365, 18, 1330, 1435, 7348, 273, 1438, 18, 350, 1435, 1089, 273, 1083, 309, 919, 18, 3184, 316, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 12, 2890, 16, 1438, 16, 919, 4672, 2776, 273, 365, 18, 7066, 1435, 613, 273, 365, 18, 1330, 1435, 7348, 273, 1438, 18, 350, 1435, 1089, 273, 1083, 309, 919, 18, 3184, 316, 365, ...
usageString = """\ Usage: gencache [-q] [-d] [-r] -q - Quiet -d - Dump the cache (typelibrary description and filename). -r - Rebuild the cache dictionary from the existing .py files """
def _Dump(): print "Cache is in directory", win32com.__gen_path__ files = glob.glob(win32com.__gen_path__+ "\*.py") for file in files: name = os.path.splitext(os.path.split(file)[1])[0] if name[0] != '_': mod = _GetModule(name) print "%s - %s" % (mod.__doc__, name)
30d8e1a170440f55892496dca4fd90293d824217 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/30d8e1a170440f55892496dca4fd90293d824217/gencache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10628, 13332, 1172, 315, 1649, 353, 316, 1867, 3113, 5657, 1578, 832, 16186, 4507, 67, 803, 972, 1390, 273, 4715, 18, 10581, 12, 8082, 1578, 832, 16186, 4507, 67, 803, 972, 15, 1548...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10628, 13332, 1172, 315, 1649, 353, 316, 1867, 3113, 5657, 1578, 832, 16186, 4507, 67, 803, 972, 1390, 273, 4715, 18, 10581, 12, 8082, 1578, 832, 16186, 4507, 67, 803, 972, 15, 1548...
class DamnVideoLoader(thr.Thread):
class DamnVideoLoader(DamnThread):
def onClose(self, event): DV.prefs = DamnVidPrefs() # Reload from ini self.Close(True)
371889325452e864707c025214d1b8c204b791d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11142/371889325452e864707c025214d1b8c204b791d0/DamnVid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25738, 12, 2890, 16, 871, 4672, 463, 58, 18, 1484, 2556, 273, 463, 301, 82, 58, 350, 1386, 2556, 1435, 468, 23086, 628, 6896, 365, 18, 4605, 12, 5510, 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, 25738, 12, 2890, 16, 871, 4672, 463, 58, 18, 1484, 2556, 273, 463, 301, 82, 58, 350, 1386, 2556, 1435, 468, 23086, 628, 6896, 365, 18, 4605, 12, 5510, 13, 2, -100, -100, -100, -100, ...
*New in Pygments 1.0.*
*New in Pygments 0.10.*
def analyse_text(text): if text[:7] == 'Index: ': return True if text[:5] == 'diff ': return True if text[:4] == '--- ': return 0.9
d73d7e87a38960b3dc269c0ad748369c9da73bab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6148/d73d7e87a38960b3dc269c0ad748369c9da73bab/text.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31087, 67, 955, 12, 955, 4672, 309, 977, 10531, 27, 65, 422, 296, 1016, 30, 4290, 327, 1053, 309, 977, 10531, 25, 65, 422, 296, 5413, 4290, 327, 1053, 309, 977, 10531, 24, 65, 422, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31087, 67, 955, 12, 955, 4672, 309, 977, 10531, 27, 65, 422, 296, 1016, 30, 4290, 327, 1053, 309, 977, 10531, 25, 65, 422, 296, 5413, 4290, 327, 1053, 309, 977, 10531, 24, 65, 422, 3...
"overrides method from DebugMenuMixin"
""" overrides method from DebugMenuMixin """
def debug_menu_items(self): #bruce 050515 "overrides method from DebugMenuMixin" super = DebugMenuMixin usual = super.debug_menu_items(self) # list of (text, callable) pairs, None for separator ours = list(usual) try: # submenu for available custom modes [bruce 050515] #e should add special text to the item for current...
9dc95351096c9deab5f64e3e704bde7a93f95b49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/9dc95351096c9deab5f64e3e704bde7a93f95b49/GLPane.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1198, 67, 5414, 67, 3319, 12, 2890, 4672, 468, 2848, 3965, 374, 3361, 25, 3600, 3536, 9515, 707, 628, 4015, 4599, 14439, 3536, 2240, 273, 4015, 4599, 14439, 25669, 273, 2240, 18, 4148, 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, 1198, 67, 5414, 67, 3319, 12, 2890, 4672, 468, 2848, 3965, 374, 3361, 25, 3600, 3536, 9515, 707, 628, 4015, 4599, 14439, 3536, 2240, 273, 4015, 4599, 14439, 25669, 273, 2240, 18, 4148, 6...
handled = self._do_key_press_event_readonly(event)
if self._do_key_press_event_readonly(event): return True else: return gtk.TextView.do_key_press_event(self, event)
def do_key_press_event(self, event): # Returns boolean whether we handled the event or it should continue to emit # Key bindings in standard input mode: # Tab at start of line indents line # Shift-Tab and optionally Backspace at start of line unindent line # Space, Tab and some other characters trigger word autof...
d717425ec286b5fe4cdde8a913785456666fb516 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4103/d717425ec286b5fe4cdde8a913785456666fb516/pageview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 856, 67, 1028, 67, 2575, 12, 2890, 16, 871, 4672, 468, 2860, 1250, 2856, 732, 7681, 326, 871, 578, 518, 1410, 1324, 358, 3626, 468, 1929, 7394, 316, 4529, 810, 1965, 30, 468, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 856, 67, 1028, 67, 2575, 12, 2890, 16, 871, 4672, 468, 2860, 1250, 2856, 732, 7681, 326, 871, 578, 518, 1410, 1324, 358, 3626, 468, 1929, 7394, 316, 4529, 810, 1965, 30, 468, ...
self.logger.verbose( '_update:', cmd )
self.logger.debug( '_update:', cmd )
def _update(self,cmd, conn=False ): """ execute MySQL update command return S_OK with number of updated registers upon success return S_ERROR upon error """ self.logger.verbose( '_update:', cmd )
dbbfc2e9691b79636765e7ead3e5df27861504bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/dbbfc2e9691b79636765e7ead3e5df27861504bc/MySQL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 12, 2890, 16, 4172, 16, 1487, 33, 8381, 262, 30, 3536, 1836, 13485, 1089, 1296, 327, 348, 67, 3141, 598, 1300, 434, 3526, 10285, 12318, 2216, 327, 348, 67, 3589, 12318, 555, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 12, 2890, 16, 4172, 16, 1487, 33, 8381, 262, 30, 3536, 1836, 13485, 1089, 1296, 327, 348, 67, 3141, 598, 1300, 434, 3526, 10285, 12318, 2216, 327, 348, 67, 3589, 12318, 555, ...
boot_dir = os.path.join(prefix, 'boot') if not os.path.isdir(boot_dir): os.mkdir(boot_dir) arch = get_file_arch('vmlinux') image = os.path.join('arch', arch, 'boot', self.build_target) force_copy(image, boot_dir + '/vmlinuz-' + tag) force_copy('vmlinux', boot_dir + '/vmlinux-' + tag) force_copy('System.map', boot_dir ...
self.boot_dir = os.path.join(prefix, 'boot') if not os.path.isdir(self.boot_dir): os.mkdir(self.boot_dir) self.arch = get_file_arch('vmlinux') image = os.path.join('arch', self.arch, 'boot', self.build_target) self.image = self.boot_dir + '/vmlinuz-' + tag self.vmlinux = self.boot_dir + '/vmlinux-' + tag self.system...
def install(self, tag='autotest', prefix = '/'): """make install in the kernel tree""" os.chdir(self.build_dir) if not os.path.isdir(prefix): os.mkdir(prefix) boot_dir = os.path.join(prefix, 'boot') if not os.path.isdir(boot_dir): os.mkdir(boot_dir)
6e61ce436e2903cac41c6ea0e00266ea834546d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12268/6e61ce436e2903cac41c6ea0e00266ea834546d5/kernel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3799, 12, 2890, 16, 1047, 2218, 5854, 352, 395, 2187, 1633, 273, 2023, 4672, 3536, 6540, 3799, 316, 326, 5536, 2151, 8395, 1140, 18, 343, 1214, 12, 2890, 18, 3510, 67, 1214, 13, 225, 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, 3799, 12, 2890, 16, 1047, 2218, 5854, 352, 395, 2187, 1633, 273, 2023, 4672, 3536, 6540, 3799, 316, 326, 5536, 2151, 8395, 1140, 18, 343, 1214, 12, 2890, 18, 3510, 67, 1214, 13, 225, 3...
result = interact(handler.load(), 'System-wide preferences')
options = handler.load() if options['noargs']: EasyDialogs.Message('Warning: system-wide sys.argv processing is off.\nIf you dropped an applet I have not seen it.') result = interact(options, 'System-wide preferences')
def edit_preferences(): handler = pythonprefs.PythonOptions() result = interact(handler.load(), 'System-wide preferences') if result: handler.save(result)
df34f5a8e0a42e0d6825e64214c2eaf4dc105f7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/df34f5a8e0a42e0d6825e64214c2eaf4dc105f7f/EditPythonPrefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 67, 23219, 13332, 1838, 273, 5790, 1484, 2556, 18, 15774, 1320, 1435, 702, 273, 1838, 18, 945, 1435, 309, 702, 3292, 2135, 1968, 3546, 30, 29442, 11885, 14072, 18, 1079, 2668, 6210, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3874, 67, 23219, 13332, 1838, 273, 5790, 1484, 2556, 18, 15774, 1320, 1435, 702, 273, 1838, 18, 945, 1435, 309, 702, 3292, 2135, 1968, 3546, 30, 29442, 11885, 14072, 18, 1079, 2668, 6210, ...
data['subject'] = _("New attachment added to page %(pagename)s on %(sitename)s") % {
data['subject'] = _("[%(sitename)s] New attachment added to page %(pagename)s") % {
def attachment_added(request, _, page_name, attach_name, attach_size): """Formats a message used to notify about new attachments @param _: a gettext function @return: a dict with notification data """ data = {} data['subject'] = _("New attachment added to page %(pagename)s on %(sitename)s") % { 'pagename': page_name...
e2085c8ea5484a1ca7f1b57bc380b4a3bd60c019 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/e2085c8ea5484a1ca7f1b57bc380b4a3bd60c019/notification.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6042, 67, 9665, 12, 2293, 16, 389, 16, 1363, 67, 529, 16, 3306, 67, 529, 16, 3306, 67, 1467, 4672, 3536, 8976, 279, 883, 1399, 358, 5066, 2973, 394, 10065, 225, 632, 891, 389, 30, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6042, 67, 9665, 12, 2293, 16, 389, 16, 1363, 67, 529, 16, 3306, 67, 529, 16, 3306, 67, 1467, 4672, 3536, 8976, 279, 883, 1399, 358, 5066, 2973, 394, 10065, 225, 632, 891, 389, 30, 27...
this = apply(_quickfix.new_FinancialStatus, args)
this = _quickfix.new_FinancialStatus(*args)
def __init__(self, *args): this = apply(_quickfix.new_FinancialStatus, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 6187, 19292, 649, 1482, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 6187, 19292, 649, 1482, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, ...
self.send("Classified Examples", data)
self.send("Examples", data) self.send("Classified Examples", data.domain.classVar and data or None)
def sendData(self): if self.data: conzer = orange.DomainContinuizer() conzer.zeroBased = self.zeroBased conzer.continuousTreatment = self.continuousTreatment conzer.multinomialTreatment = self.multinomialTreats[self.multinomialTreatment][1] if self.classTreatment == 3: domain = conzer(self.data, 0, self.targetValue) el...
04cbf439d12d5d7af73d3d52e1636eb90c5309d3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/04cbf439d12d5d7af73d3d52e1636eb90c5309d3/OWContinuize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 751, 12, 2890, 4672, 309, 365, 18, 892, 30, 356, 24355, 273, 578, 726, 18, 3748, 660, 6860, 1824, 1435, 356, 24355, 18, 7124, 9802, 273, 365, 18, 7124, 9802, 356, 24355, 18, 3105...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 751, 12, 2890, 4672, 309, 365, 18, 892, 30, 356, 24355, 273, 578, 726, 18, 3748, 660, 6860, 1824, 1435, 356, 24355, 18, 7124, 9802, 273, 365, 18, 7124, 9802, 356, 24355, 18, 3105...
DBGPROP_INFO_NAME = 0x1 DBGPROP_INFO_TYPE = 0x2 DBGPROP_INFO_VALUE = 0x4 DBGPROP_INFO_FULLNAME = 0x20 DBGPROP_INFO_ATTRIBUTES = 0x8 DBGPROP_INFO_DEBUGPROP = 0x10 DBGPROP_INFO_AUTOEXPAND = 0x8000000
def MakeEnumDebugProperty(object, dwFieldSpec, nRadix, iid): name_vals = [] if hasattr(object, "has_key"): name_vals = object.items() infos = [] for name, val in name_vals: infos.append(GetPropertyInfo(name, val, dwFieldSpec, nRadix, 0)) return _wrap(EnumDebugPropertyInfo(infos), axdebug.IID_IEnumDebugPropertyInfo) de...
def GetResultAsDebugProperty(self): result = _wrap(DebugProperty(self.code, self.hresult, self.result), axdebug.IID_IDebugProperty) return self.hresult, result
92973b96a32b07b9d3756ee81fe411364017b393 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/92973b96a32b07b9d3756ee81fe411364017b393/expressions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1253, 1463, 2829, 1396, 12, 2890, 4672, 563, 273, 389, 4113, 12, 2829, 1396, 12, 2890, 18, 710, 16, 365, 18, 76, 2088, 16, 365, 18, 2088, 3631, 1740, 4148, 18, 45, 734, 67, 734,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1253, 1463, 2829, 1396, 12, 2890, 4672, 563, 273, 389, 4113, 12, 2829, 1396, 12, 2890, 18, 710, 16, 365, 18, 76, 2088, 16, 365, 18, 2088, 3631, 1740, 4148, 18, 45, 734, 67, 734,...
if nd != -9999:
if nd != -9999.0:
def dods_6(): if gdaltest.dods_dr is None: return 'skip' nd = gdaltest.dods_grid_ds.GetRasterBand(1).GetNoDataValue() if nd != -9999: gdaltest.post_reason( 'nodata value wrong or missing.' ) print nd return 'fail' else: return 'success'
c092c7bab385c6a07867b2e578cb15d0988ed191 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10290/c092c7bab385c6a07867b2e578cb15d0988ed191/dods.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 369, 87, 67, 26, 13332, 309, 15551, 2390, 395, 18, 72, 369, 87, 67, 3069, 353, 599, 30, 327, 296, 7457, 11, 225, 5346, 273, 15551, 2390, 395, 18, 72, 369, 87, 67, 5222, 67, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 369, 87, 67, 26, 13332, 309, 15551, 2390, 395, 18, 72, 369, 87, 67, 3069, 353, 599, 30, 327, 296, 7457, 11, 225, 5346, 273, 15551, 2390, 395, 18, 72, 369, 87, 67, 5222, 67, 23...
def initializeParameters(self):
def initializeParameters( self ):
def isProxyValid(self,valid=1000): """ Check if the stored proxy is valid """ if not self.valid: result = S_ERROR('Proxy is not valid for the requested length') result['Value'] = 0 return result delta = self.valid - dateTime() totalSeconds = delta[0]*86400+delta[1] if totalSeconds > valid: return S_OK(totalSeconds-vali...
3d103a1ec7530dcfac38e6ccc642be862e663b73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/3d103a1ec7530dcfac38e6ccc642be862e663b73/ComputingElement.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 3886, 1556, 12, 2890, 16, 877, 33, 18088, 4672, 3536, 2073, 309, 326, 4041, 2889, 353, 923, 3536, 309, 486, 365, 18, 877, 30, 563, 273, 348, 67, 3589, 2668, 3886, 353, 486, 923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3886, 1556, 12, 2890, 16, 877, 33, 18088, 4672, 3536, 2073, 309, 326, 4041, 2889, 353, 923, 3536, 309, 486, 365, 18, 877, 30, 563, 273, 348, 67, 3589, 2668, 3886, 353, 486, 923, ...
path = urllib.unquote(path) if rev: return '<a class="source" href="%s">%s</a>' \ % (formatter.href.browser(path, rev=rev), label) else: return '<a class="source" href="%s">%s</a>' \ % (formatter.href.browser(path), label)
return '<a class="source" href="%s">%s</a>' \ % (formatter.href.browser(path, rev=rev), label)
def _format_link(self, formatter, ns, path, label): rev = None match = img_re.search(path) if formatter.flavor != 'oneliner' and match: return '<img src="%s" alt="%s" />' % \ (formatter.href.file(path, format='raw'), label) match = rev_re.search(path) if match: path = match.group(1) rev = match.group(2) label = urllib....
616da62f50ea82f0a23e87479e26d0aef6f233ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/616da62f50ea82f0a23e87479e26d0aef6f233ca/Browser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2139, 67, 1232, 12, 2890, 16, 4453, 16, 3153, 16, 589, 16, 1433, 4672, 5588, 273, 599, 845, 273, 3774, 67, 266, 18, 3072, 12, 803, 13, 309, 4453, 18, 2242, 9444, 480, 296, 265, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2139, 67, 1232, 12, 2890, 16, 4453, 16, 3153, 16, 589, 16, 1433, 4672, 5588, 273, 599, 845, 273, 3774, 67, 266, 18, 3072, 12, 803, 13, 309, 4453, 18, 2242, 9444, 480, 296, 265, ...
if F.derivative(v)(xyz).valuation(P) == 0:
c = (F.derivative(v))(xyz) try: val = c.valuation(P) except AttributeError: val = c.constant_coefficient().valuation(P) if val == 0:
def has_good_reduction(self, P=None): r""" Returns True iff this point has good reduction modulo a prime.
a7261752a1acc25f7ecc8724c23f8d22a0b90361 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/a7261752a1acc25f7ecc8724c23f8d22a0b90361/ell_point.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 711, 67, 19747, 67, 1118, 4062, 12, 2890, 16, 453, 33, 7036, 4672, 436, 8395, 2860, 1053, 21437, 333, 1634, 711, 7494, 20176, 26109, 279, 17014, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 711, 67, 19747, 67, 1118, 4062, 12, 2890, 16, 453, 33, 7036, 4672, 436, 8395, 2860, 1053, 21437, 333, 1634, 711, 7494, 20176, 26109, 279, 17014, 18, 2, -100, -100, -100, -100, -100, -100...
sage: for i in range(10): G.add_vertex(name=i)
sage: G.add_vertices(range(10)) Graph on 10 vertices
def add_cycle(self, vertices): """ Adds a cycle to the graph with the given vertices. If the vertices are already present, only the edges are added.
8876590b467e53206ef240a7504b67e554522ae4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8876590b467e53206ef240a7504b67e554522ae4/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 13946, 12, 2890, 16, 6928, 4672, 3536, 15605, 279, 8589, 358, 326, 2667, 598, 326, 864, 6928, 18, 971, 326, 6928, 854, 1818, 3430, 16, 1338, 326, 5231, 854, 3096, 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, 527, 67, 13946, 12, 2890, 16, 6928, 4672, 3536, 15605, 279, 8589, 358, 326, 2667, 598, 326, 864, 6928, 18, 971, 326, 6928, 854, 1818, 3430, 16, 1338, 326, 5231, 854, 3096, 18, 2, -100,...
self.dsel = OWGUI.checkBox(self.outbox, self, "sendSelection", "Send data selection") self.csel = OWGUI.radioButtonsInBox(self.outbox, self, 'sendDataType', ['Examples with class conflict', 'Examples with class agreement'], box='Data selection', tooltips=['Data instances with different true and predictied class.', 'Da...
self.commitBtn = OWGUI.button(self.outbox, self, "Send Predictions", callback=self.sendpredictions)
def __init__(self, parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, "Predictions")
63e34d56e155a4f1aba288f36a71868771294735 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/63e34d56e155a4f1aba288f36a71868771294735/OWPredictions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 315, 20766, 87, 7923, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 33, 7036, 16, 4277, 1318, 273, 599, 4672, 18233, 4609, 16186, 2738, 972, 12, 2890, 16, 982, 16, 4277, 1318, 16, 315, 20766, 87, 7923, 2, -100, -100,...
if output.startswith('A') and output.endswith(filename.upper()):
if output.startswith('A') and output.find(filename.upper()) >= 0:
def _SvnAdd(self, filename): """Add the file to SVN repository.
3c540b02313d07c4d0ef92a837fc6d2ccb401f45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/3c540b02313d07c4d0ef92a837fc6d2ccb401f45/rebaseline.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 55, 25031, 986, 12, 2890, 16, 1544, 4672, 3536, 986, 326, 585, 358, 29537, 50, 3352, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 55, 25031, 986, 12, 2890, 16, 1544, 4672, 3536, 986, 326, 585, 358, 29537, 50, 3352, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
with self._lock:
with phil:
def copy(self, source, dest, name=None): """ Copy an object or group (Requires HDF5 1.8).
b1a598a2d723040490bcce9fa07057de259dfbab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10380/b1a598a2d723040490bcce9fa07057de259dfbab/highlevel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 1084, 16, 1570, 16, 508, 33, 7036, 4672, 3536, 5631, 392, 733, 578, 1041, 261, 21671, 21673, 25, 404, 18, 28, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 1084, 16, 1570, 16, 508, 33, 7036, 4672, 3536, 5631, 392, 733, 578, 1041, 261, 21671, 21673, 25, 404, 18, 28, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -10...
channel = self.server.get_channel(channel_name)
channel = self.server.get_channel(None, channel_name)
def render_publish(self, environ, start_response): form = get_form(environ) channel_name = form.get('channel_name', None) if not channel_name: raise Exception("Missing channel_name") payload = form.get('payload', 'null') originator = form.get('originator', None) channel = self.server.get_channel(channel_name) channel.p...
71916b826131f9db47f5fa668303df7d35dfc892 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13219/71916b826131f9db47f5fa668303df7d35dfc892/rest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 6543, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 646, 273, 336, 67, 687, 12, 28684, 13, 1904, 67, 529, 273, 646, 18, 588, 2668, 4327, 67, 529, 2187, 599, 13, 309, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 6543, 12, 2890, 16, 5473, 16, 787, 67, 2740, 4672, 646, 273, 336, 67, 687, 12, 28684, 13, 1904, 67, 529, 273, 646, 18, 588, 2668, 4327, 67, 529, 2187, 599, 13, 309, 486, ...
return cmp(str(x), str(y))
if pydevd_constants.IS_PY3K: return (str(x) > str(y)) - (str(x) < str(y)) else: return cmp(str(x), str(y))
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: return cmp(str(x), str(y))
bec2c2b32dab80adfbc63624b2e35204d7eeee62 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12157/bec2c2b32dab80adfbc63624b2e35204d7eeee62/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, ...
self.outstanding_jobs = [Job(code=self.code % i, username='yqiang') for i in range(1, n+1)]
self.outstanding_jobs = [Job(code=self.code % i, username='yqiang') for i in range(1, n+1)]
def __init__(self, DSage, n, name='DistributedFunctionTest'): DistributedFunction.__init__(self, DSage) self.n = n self.name = name self.result = 0 self.results = [] self.code = """DSAGE_RESULT=%s""" self.outstanding_jobs = [Job(code=self.code % i, username='yqiang') for i in range(1, n+1)]
1cdc3a55e21e3042c99309b04c6ce9ab3dc36189 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/1cdc3a55e21e3042c99309b04c6ce9ab3dc36189/dist_function.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 8678, 410, 16, 290, 16, 508, 2218, 1669, 11050, 2083, 4709, 11, 4672, 27877, 2083, 16186, 2738, 972, 12, 2890, 16, 8678, 410, 13, 365, 18, 82, 273, 290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8678, 410, 16, 290, 16, 508, 2218, 1669, 11050, 2083, 4709, 11, 4672, 27877, 2083, 16186, 2738, 972, 12, 2890, 16, 8678, 410, 13, 365, 18, 82, 273, 290, ...
str = "".join([self._data[i] for i in range(self._size)]) return self.space.wrap(str)
data = "".join([self._data[i] for i in range(self._size)]) return self.space.wrap(data)
def _to_str(self): str = "".join([self._data[i] for i in range(self._size)]) return self.space.wrap(str)
490daf5312c57c5b8ec887614c2449486a62ac47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/490daf5312c57c5b8ec887614c2449486a62ac47/interp_mmap.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 67, 701, 12, 2890, 4672, 609, 273, 1408, 18, 5701, 3816, 2890, 6315, 892, 63, 77, 65, 364, 277, 316, 1048, 12, 2890, 6315, 1467, 13, 5717, 327, 365, 18, 2981, 18, 4113, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 869, 67, 701, 12, 2890, 4672, 609, 273, 1408, 18, 5701, 3816, 2890, 6315, 892, 63, 77, 65, 364, 277, 316, 1048, 12, 2890, 6315, 1467, 13, 5717, 327, 365, 18, 2981, 18, 4113, 12,...
if info: errout = self.editor.erroutFrm
if info and self.editor:
def updateOutputWindow(self): while self.debug_client: info = self.debug_client.pollStreams() if info: errout = self.editor.erroutFrm stdout_text, stderr_text = info if stdout_text: errout.appendToOutput(stdout_text) #self.appendToOutputWindow(stdout_text) if stderr_text: errout.appendToErrors(stderr_text) #self.append...
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 1447, 3829, 12, 2890, 4672, 1323, 365, 18, 4148, 67, 2625, 30, 1123, 273, 365, 18, 4148, 67, 2625, 18, 13835, 10301, 1435, 309, 1123, 471, 365, 18, 9177, 30, 3909, 67, 955, 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, 1089, 1447, 3829, 12, 2890, 4672, 1323, 365, 18, 4148, 67, 2625, 30, 1123, 273, 365, 18, 4148, 67, 2625, 18, 13835, 10301, 1435, 309, 1123, 471, 365, 18, 9177, 30, 3909, 67, 955, 16, ...
label.set_alignment(1.0, 0.5) left_box.pack_start(label, False, False)
label.set_alignment(1.0, 1.0) left_box.pack_start(label, True, True)
def __init__(self, window): self._num_thumbs = 0 gtk.Dialog.__init__(self, _('Thumbnail maintenance'), window, 0, (gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE)) button = self.add_button(_('Cleanup'), gtk.RESPONSE_OK) button.set_image(gtk.image_new_from_stock( gtk.STOCK_CLEAR, gtk.ICON_SIZE_BUTTON)) self.set_has_separator(False...
fbb57777a9eb4465721f752c609b40f490899846 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14624/fbb57777a9eb4465721f752c609b40f490899846/thumbremover.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2742, 4672, 365, 6315, 2107, 67, 451, 10099, 273, 374, 22718, 18, 6353, 16186, 2738, 972, 12, 2890, 16, 389, 2668, 16270, 18388, 19899, 2742, 16, 374, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2742, 4672, 365, 6315, 2107, 67, 451, 10099, 273, 374, 22718, 18, 6353, 16186, 2738, 972, 12, 2890, 16, 389, 2668, 16270, 18388, 19899, 2742, 16, 374, 16, ...
instance = OutputPhenotype(hostname=hostname, dbname=dbname, schema=schema, output_fname=output_fname,
instance = OutputPhenotype(hostname=hostname, dbname=dbname, user=user, passwd=passwd, output_fname=output_fname,
def run(self): import MySQLdb conn = MySQLdb.connect(db=self.dbname, host=self.hostname, user = self.user, passwd = self.passwd) curs = conn.cursor() phenotype_method_id2index, method_id_name_ls = self.get_phenotype_method_id_info(curs, self.phenotype_avg_table, self.phenotype_method_table) ecotype_id2index, ecotype_...
fe03562f857a6b091914f3eccc5ecff0660f3258 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/fe03562f857a6b091914f3eccc5ecff0660f3258/OutputPhenotype.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1930, 13485, 1966, 1487, 273, 13485, 1966, 18, 3612, 12, 1966, 33, 2890, 18, 20979, 16, 1479, 33, 2890, 18, 10358, 16, 729, 273, 365, 18, 1355, 16, 19093, 273, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 1930, 13485, 1966, 1487, 273, 13485, 1966, 18, 3612, 12, 1966, 33, 2890, 18, 20979, 16, 1479, 33, 2890, 18, 10358, 16, 729, 273, 365, 18, 1355, 16, 19093, 273, 36...
wikipedia.output(u"Skipping %s because it has been deleted." % imageName)
wikipedia.output(u"Skipping %s because it has been deleted." % self.imageName)
def checkStep(self, smartdetection): # nothing = Defining an empty image description nothing = ['', ' ', ' ', ' ', '\n', '\n ', '\n ', '\n\n', '\n \n', ' \n', ' \n ', ' \n \n'] # something = Minimal requirements for an image description. # If this fits, no tagging will take place (if there aren't other issues) # MI...
13ae2b2efc0f23258500db58afe50ac2fd09d224 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/13ae2b2efc0f23258500db58afe50ac2fd09d224/checkimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 4160, 12, 2890, 16, 13706, 27515, 4672, 468, 5083, 273, 18003, 310, 392, 1008, 1316, 2477, 5083, 273, 10228, 2187, 296, 2265, 296, 225, 2265, 296, 282, 2265, 2337, 82, 2187, 2337, 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, 866, 4160, 12, 2890, 16, 13706, 27515, 4672, 468, 5083, 273, 18003, 310, 392, 1008, 1316, 2477, 5083, 273, 10228, 2187, 296, 2265, 296, 225, 2265, 296, 282, 2265, 2337, 82, 2187, 2337, 8...
bold = ('<strong>', '</strong>') bold_open = self.tag_open_p(bold)
italic = ('<i>', '</i>') italic_open = self.tag_open_p(italic)
def _bolditalic_formatter(self, match, fullmatch): bold = ('<strong>', '</strong>') bold_open = self.tag_open_p(bold) tmp = '' if not bold_open: tmp += bold[0] self.open_tag(*bold) tmp += self._italic_formatter(match, fullmatch) if bold_open: tmp += bold[1] self.close_tag(bold[1]) return tmp
94f1c837647f81515aed3d9f2dbc89611785f10d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/94f1c837647f81515aed3d9f2dbc89611785f10d/formatter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 16390, 7053, 335, 67, 12354, 12, 2890, 16, 845, 16, 1983, 1916, 4672, 31709, 273, 7707, 32, 77, 1870, 16, 4357, 77, 1870, 13, 31709, 67, 3190, 273, 365, 18, 2692, 67, 3190, 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, 389, 16390, 7053, 335, 67, 12354, 12, 2890, 16, 845, 16, 1983, 1916, 4672, 31709, 273, 7707, 32, 77, 1870, 16, 4357, 77, 1870, 13, 31709, 67, 3190, 273, 365, 18, 2692, 67, 3190, 67, ...
return os.path.join(settings.data_directory, self.path)
return os.path.join(settings.data_directory, path)
def normalized(self): if os.path.isabs(self.path): return self.path from sipsimple.configuration.settings import SIPSimpleSettings settings = SIPSimpleSettings() return os.path.join(settings.data_directory, self.path)
0ec4fa1fa2f0dcc5c5f16bd957dd91582f26c7fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/0ec4fa1fa2f0dcc5c5f16bd957dd91582f26c7fe/datatypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5640, 12, 2890, 4672, 309, 1140, 18, 803, 18, 291, 5113, 12, 2890, 18, 803, 4672, 327, 365, 18, 803, 628, 272, 7146, 2052, 18, 7025, 18, 4272, 1930, 348, 2579, 5784, 2628, 1947, 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, 5640, 12, 2890, 4672, 309, 1140, 18, 803, 18, 291, 5113, 12, 2890, 18, 803, 4672, 327, 365, 18, 803, 628, 272, 7146, 2052, 18, 7025, 18, 4272, 1930, 348, 2579, 5784, 2628, 1947, 273, ...
BUFFER_SIZE = 1024 * 1024
def get_analysis_ctx(self, plate_id): """Retrieves a plate analysis context for a given plate.""" original_files = dict() original_file_image_map = dict() images = self.find_images_for_plate(plate_id) for i, image in enumerate(images): for annotation_link in image.copyAnnotationLinks(): annotation = annotation_link.chi...
d41167a88f38296b70050acbb13f4d60c66ff062 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/d41167a88f38296b70050acbb13f4d60c66ff062/populate_roi.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12746, 67, 5900, 12, 2890, 16, 21972, 67, 350, 4672, 3536, 6960, 279, 21972, 6285, 819, 364, 279, 864, 21972, 12123, 2282, 67, 2354, 273, 2065, 1435, 2282, 67, 768, 67, 2730, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12746, 67, 5900, 12, 2890, 16, 21972, 67, 350, 4672, 3536, 6960, 279, 21972, 6285, 819, 364, 279, 864, 21972, 12123, 2282, 67, 2354, 273, 2065, 1435, 2282, 67, 768, 67, 2730, ...
items[j] = items[j1]
l.ll_setitem_fast(j, l.ll_getitem_fast(j1))
def ll_pop_zero(func, l): length = l.length if func is dum_checkidx and (length == 0): raise IndexError newlength = length - 1 res = l.items[0] j = 0 items = l.items j1 = j+1 while j < newlength: items[j] = items[j1] j = j1 j1 += 1 ITEM = typeOf(l).TO.ITEM if isinstance(ITEM, Ptr): items[newlength] = nullptr(ITEM.TO) _...
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, 7124, 12, 644, 16, 328, 4672, 769, 273, 328, 18, 2469, 309, 1326, 353, 4569, 67, 1893, 3465, 471, 261, 2469, 422, 374, 4672, 1002, 10195, 394, 2469, 273, 769, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7124, 12, 644, 16, 328, 4672, 769, 273, 328, 18, 2469, 309, 1326, 353, 4569, 67, 1893, 3465, 471, 261, 2469, 422, 374, 4672, 1002, 10195, 394, 2469, 273, 769, 300, ...
self.exportAttributes(outfile, level, namespace_, name_='AbstractCells')
self.exportAttributes(outfile, level, [], namespace_, name_='AbstractCells')
def export(self, outfile, level, namespace_='', name_='AbstractCells', namespacedef_=''): showIndent(outfile, level) outfile.write('<%s%s%s' % (namespace_, name_, namespacedef_ and ' ' + namespacedef_ or '', )) self.exportAttributes(outfile, level, namespace_, name_='AbstractCells') outfile.write(' xmlns:xsi="http://ww...
10f2a4b3101435822c472af9b202a5a0bb496366 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/10f2a4b3101435822c472af9b202a5a0bb496366/_nexml.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 12, 2890, 16, 8756, 16, 1801, 16, 1981, 67, 2218, 2187, 508, 67, 2218, 7469, 10505, 2187, 1981, 536, 67, 2218, 11, 4672, 2405, 7790, 12, 26050, 16, 1801, 13, 8756, 18, 2626, 2668...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12, 2890, 16, 8756, 16, 1801, 16, 1981, 67, 2218, 2187, 508, 67, 2218, 7469, 10505, 2187, 1981, 536, 67, 2218, 11, 4672, 2405, 7790, 12, 26050, 16, 1801, 13, 8756, 18, 2626, 2668...
document.body.insert(z-2, "\\bar default")
document.body.insert(z - 2, "\\bar default")
def revert_flex_inset(document, name, LaTeXname, position): " Convert flex insets to TeX code " i = position while True: i = find_token(document.body, '\\begin_inset Flex ' + name, i) if i == -1: return z = find_end_of_inset(document.body, i) if z == -1: document.warning("Malformed LyX document: Can't find end of Flex ...
bcd8b9a1f1241c461beb5db1d5a69424a9a25950 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/bcd8b9a1f1241c461beb5db1d5a69424a9a25950/lyx_2_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 27592, 67, 267, 542, 12, 5457, 16, 508, 16, 21072, 21575, 60, 529, 16, 1754, 4672, 315, 4037, 16600, 23576, 358, 28602, 60, 981, 315, 277, 273, 1754, 1323, 1053, 30, 277, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15226, 67, 27592, 67, 267, 542, 12, 5457, 16, 508, 16, 21072, 21575, 60, 529, 16, 1754, 4672, 315, 4037, 16600, 23576, 358, 28602, 60, 981, 315, 277, 273, 1754, 1323, 1053, 30, 277, 27...
_('POLICY') + ']:' +
_('POLICY') + ':]' +
def usage(): print _('Usage: tuna [OPTIONS]') fmt = '\t%-40s %s' print fmt % ('-h, --help', _('Give this help list')) print fmt % ('-g, --gui', _('Start the GUI')) print fmt % ('-c, --cpus=' + _('CPU-LIST'), _('%(cpulist)s affected by commands') % \ {"cpulist": _('CPU-LIST')}) print fmt % ('-C, --affect_child...
85bb5d7ed6957bc6b116be91e546d2369f7580b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3406/85bb5d7ed6957bc6b116be91e546d2369f7580b1/tuna-cmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 389, 2668, 5357, 30, 268, 31172, 306, 12422, 3864, 13, 1325, 273, 2337, 88, 9, 17, 7132, 87, 738, 87, 11, 1172, 1325, 738, 7707, 17, 76, 16, 1493, 5201, 2187, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 389, 2668, 5357, 30, 268, 31172, 306, 12422, 3864, 13, 1325, 273, 2337, 88, 9, 17, 7132, 87, 738, 87, 11, 1172, 1325, 738, 7707, 17, 76, 16, 1493, 5201, 2187, 1082, ...
if not self.check_auth(irc, msg, args): return if len(queue.msgcache) > 0: irc.reply("Warning: still syncing (%i)" % len(queue.msgcache))
user = self.check_auth(irc, msg, args) if not user: return if capab(user, 'admin'): if len(queue.msgcache) > 0: irc.reply("Warning: still syncing (%i)" % len(queue.msgcache))
def banlog(self, irc, msg, args, target, channel): """<nick|hostmask> [<channel>]
353e8a3cb6570f78f25b8d8c4070231630fbefe3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3106/353e8a3cb6570f78f25b8d8c4070231630fbefe3/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25732, 1330, 12, 2890, 16, 277, 1310, 16, 1234, 16, 833, 16, 1018, 16, 1904, 4672, 3536, 32, 17091, 96, 2564, 4455, 34, 306, 32, 4327, 34, 65, 2, 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, 25732, 1330, 12, 2890, 16, 277, 1310, 16, 1234, 16, 833, 16, 1018, 16, 1904, 4672, 3536, 32, 17091, 96, 2564, 4455, 34, 306, 32, 4327, 34, 65, 2, -100, -100, -100, -100, -100, -100, ...
return u'\r\n'.join(list(value))
if value == self.context.missing_value or value == self.context._type(): return self._missing else: return u'\r\n'.join(list(value))
def _toFormValue(self, value): return u'\r\n'.join(list(value))
b330b1388be71e27d6e843d3f36ed642d2572176 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10421/b330b1388be71e27d6e843d3f36ed642d2572176/seo_configlet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 1204, 620, 12, 2890, 16, 460, 4672, 327, 582, 8314, 86, 64, 82, 10332, 5701, 12, 1098, 12, 1132, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 1204, 620, 12, 2890, 16, 460, 4672, 327, 582, 8314, 86, 64, 82, 10332, 5701, 12, 1098, 12, 1132, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
self.savePen('gridmaj', self.grid.majPen())
self.savePen('majorgrid/pen', self.grid.majPen())
def on_actionMajorStyle_triggered(self): if changePen(self, self.grid.majPen, self.grid.setMajPen): self.savePen('gridmaj', self.grid.majPen()) self.plot.replot()
14ad4626440885b949068a9ed1513d52a79f0e96 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3979/14ad4626440885b949068a9ed1513d52a79f0e96/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 1128, 17581, 2885, 67, 10668, 329, 12, 2890, 4672, 309, 2549, 24251, 12, 2890, 16, 365, 18, 5222, 18, 12585, 24251, 16, 365, 18, 5222, 18, 542, 49, 4365, 24251, 4672, 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, 603, 67, 1128, 17581, 2885, 67, 10668, 329, 12, 2890, 4672, 309, 2549, 24251, 12, 2890, 16, 365, 18, 5222, 18, 12585, 24251, 16, 365, 18, 5222, 18, 542, 49, 4365, 24251, 4672, 365, 18,...
self.values = {'mean': {'mu': None 'sd': None 't': None 'resid': None
self.values = {'mean': {'mu': None, 'sd': None, 't': None, 'resid': None,
def __init__(self): raise NotImplementedError self.values = {'mean': {'mu': None 'sd': None 't': None 'resid': None 'df_resid': None, 'scale': None}, 'varatio': {'varatio': None 'varfix': None}}
1f861389fb2f8e30d30472e727304e77159b578d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12658/1f861389fb2f8e30d30472e727304e77159b578d/onesample.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 1002, 11206, 365, 18, 2372, 273, 13666, 7079, 4278, 13666, 13297, 4278, 599, 16, 296, 6427, 4278, 599, 16, 296, 88, 4278, 599, 16, 296, 15567, 4278, 599,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 1002, 11206, 365, 18, 2372, 273, 13666, 7079, 4278, 13666, 13297, 4278, 599, 16, 296, 6427, 4278, 599, 16, 296, 88, 4278, 599, 16, 296, 15567, 4278, 599,...
""" fl_create_select(p1, p2, p3, p4, p5, p6) -> object ref.
""" fl_create_select(p1, p2, p3, p4, p5, p6) -> object
def fl_create_select(p1, p2, p3, p4, p5, p6): """ fl_create_select(p1, p2, p3, p4, p5, p6) -> object ref. """ retval = _fl_create_select(p1, p2, p3, p4, p5, p6) return retval
8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 2640, 67, 4025, 12, 84, 21, 16, 293, 22, 16, 293, 23, 16, 293, 24, 16, 293, 25, 16, 293, 26, 4672, 3536, 1183, 67, 2640, 67, 4025, 12, 84, 21, 16, 293, 22, 16, 293, 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, 1183, 67, 2640, 67, 4025, 12, 84, 21, 16, 293, 22, 16, 293, 23, 16, 293, 24, 16, 293, 25, 16, 293, 26, 4672, 3536, 1183, 67, 2640, 67, 4025, 12, 84, 21, 16, 293, 22, 16, 293, 2...
So here we assume all rdiff-backup events were recorded in "increments" increments, and if it's in-between we pick the older one here.
So if restore_to_time is inbetween two increments, return the older one.
def get_rest_time(cls, restore_to_time): """Return older time, if restore_to_time is in between two inc times
81d6374f3b5427954b077f724a90597d1721119e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/783/81d6374f3b5427954b077f724a90597d1721119e/restore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8792, 67, 957, 12, 6429, 16, 5217, 67, 869, 67, 957, 4672, 3536, 990, 12156, 813, 16, 309, 5217, 67, 869, 67, 957, 353, 316, 3086, 2795, 7290, 4124, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 8792, 67, 957, 12, 6429, 16, 5217, 67, 869, 67, 957, 4672, 3536, 990, 12156, 813, 16, 309, 5217, 67, 869, 67, 957, 353, 316, 3086, 2795, 7290, 4124, 2, -100, -100, -100, -10...
self.tk.call(self._w, 'delete', from_, to)
self.tk.call(self._w, 'delete', from_, to)
def delete(self, from_, to=None):
b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 12, 2890, 16, 628, 67, 16, 358, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1430, 12, 2890, 16, 628, 67, 16, 358, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
_string = p.sub(r"\1$\\rightarrow$\2", _string)
string = p.sub(r"\1$\\rightarrow$\2", string)
def transform(string): """ convert/transform one line """ global frame_opened, enum_item_level # nasty thing to do global frame_header, frame_footer, next_frame_footer preamble = "" # for enumeration/itemize environment commands # handle itemizing/enumerations p = re.compile("^([\*\#]+).*$") m = p.match(string) ...
1947325dce6126afe82562ecb94d6cdf480ca241 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14466/1947325dce6126afe82562ecb94d6cdf480ca241/wiki2beamer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 12, 1080, 4672, 3536, 1765, 19, 6547, 1245, 980, 3536, 2552, 2623, 67, 25304, 16, 2792, 67, 1726, 67, 2815, 565, 468, 290, 689, 93, 7757, 358, 741, 2552, 2623, 67, 3374, 16, 2623...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 12, 1080, 4672, 3536, 1765, 19, 6547, 1245, 980, 3536, 2552, 2623, 67, 25304, 16, 2792, 67, 1726, 67, 2815, 565, 468, 290, 689, 93, 7757, 358, 741, 2552, 2623, 67, 3374, 16, 2623...
processfile(filename) def processfile(fullname):
try: processfile(filename) except MacOS.Error, arg: print "Error getting terminology:", arg print "Retry, manually parsing resources" processfile_fromresource(filename) def processfile_fromresource(fullname):
def main(): if len(sys.argv) > 1: for filename in sys.argv[1:]: processfile(filename) else: filename = EasyDialogs.AskFileForOpen(message='Select file with aeut/aete resource:') if not filename: sys.exit(0) processfile(filename)
fa1bf1c518528ae8ec9b24ce452edc930ec80a7d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/fa1bf1c518528ae8ec9b24ce452edc930ec80a7d/gensuitemodule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 309, 562, 12, 9499, 18, 19485, 13, 405, 404, 30, 364, 1544, 316, 2589, 18, 19485, 63, 21, 30, 14542, 1207, 768, 12, 3459, 13, 469, 30, 1544, 273, 29442, 11885, 14072, 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, 2774, 13332, 309, 562, 12, 9499, 18, 19485, 13, 405, 404, 30, 364, 1544, 316, 2589, 18, 19485, 63, 21, 30, 14542, 1207, 768, 12, 3459, 13, 469, 30, 1544, 273, 29442, 11885, 14072, 18, ...
class EisensteinExtensionRingLazy(EisensteinExtensionGeneric, pAdicLazyRingGeneric): def __init__(self, poly, prec, halt, print_mode, names): EisensteinExtensionGeneric.__init__(self, poly, prec, print_mode, names, EisensteinExtensionLazyElement) pAdicLazyRingGeneric.__init__(self, poly.base_ring().prime(), prec, print...
def __init__(self, poly, prec, halt, print_mode, names): EisensteinExtensionGeneric.__init__(self, poly, prec, print_mode, names, EisensteinExtensionCappedRelativeElement)
0f057e2127f2ea6d70a9e20884218a7ef6dea886 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0f057e2127f2ea6d70a9e20884218a7ef6dea886/padic_extension_leaves.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 16, 18389, 16, 1172, 67, 3188, 16, 1257, 4672, 512, 291, 275, 334, 13685, 3625, 7014, 16186, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 16, 18389, 16, 1172, 67, 3188, 16, 1257, 4672, 512, 291, 275, 334, 13685, 3625, 7014, 16186, 2738, 972, 12, 2890, 16, 7573, 16, 13382, 1...
it total == None:
if total == None:
def contributingUsers(self, step=None, total=None): """Return a set of usernames (or IPs) of users who edited this page.
a49159d31667c00c71c2615f11aa8102afd0295d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/a49159d31667c00c71c2615f11aa8102afd0295d/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13608, 8490, 6588, 12, 2890, 16, 2235, 33, 7036, 16, 2078, 33, 7036, 4672, 3536, 990, 279, 444, 434, 27675, 261, 280, 23842, 13, 434, 3677, 10354, 18532, 333, 1363, 18, 2, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13608, 8490, 6588, 12, 2890, 16, 2235, 33, 7036, 16, 2078, 33, 7036, 4672, 3536, 990, 279, 444, 434, 27675, 261, 280, 23842, 13, 434, 3677, 10354, 18532, 333, 1363, 18, 2, -100, -100, ...
f.write(" %12.12f" % (z[ref]*sc[ref]))
if model.get_scaling_method() & jmodelica.jmi.JMI_SCALING_VARIABLES > 0: f.write(" %12.12f" % (z[ref]*sc[ref])) else: f.write(" %12.12f" % (z[ref]))
def export_result_dymola(model, data, file_name='', format='txt'): """ Export an optimization or simulation result to file in Dymolas result file format. The parameter values are read from the z vector of the model object and the time series are read from the data argument. Parameters: model -- A Model object. data --...
18a9eb96a8d42323b9b3a0d4c90b79f231de3046 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7711/18a9eb96a8d42323b9b3a0d4c90b79f231de3046/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 2088, 67, 72, 2942, 355, 69, 12, 2284, 16, 501, 16, 585, 67, 529, 2218, 2187, 740, 2218, 5830, 11, 4672, 3536, 11054, 392, 14850, 578, 14754, 563, 358, 585, 316, 463, 2942, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 67, 2088, 67, 72, 2942, 355, 69, 12, 2284, 16, 501, 16, 585, 67, 529, 2218, 2187, 740, 2218, 5830, 11, 4672, 3536, 11054, 392, 14850, 578, 14754, 563, 358, 585, 316, 463, 2942, ...
result.attrs['dls'] = self.dbs
result.attrs['dls'] = 'dbs'
def save(self): """ _save_
c00750ec531b0ac718304d016d293823c3054bf8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8886/c00750ec531b0ac718304d016d293823c3054bf8/DropMaker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 12, 2890, 4672, 3536, 389, 5688, 67, 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, 1923, 12, 2890, 4672, 3536, 389, 5688, 67, 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...