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
pass
cursor = gdk.Cursor(gdk.TARGET) def beginState(self): self.gui.canvas.window.set_cursor(self.cursor) def endState(self): self.gui.canvas.window.set_cursor(None)
def update(self, x, y): viewport = self.gui.gw_viewport1 ha = viewport.get_hadjustment() va = viewport.get_vadjustment()
bcbfa4e1f582b47498cec1f1ef0411a1110c4a5b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2289/bcbfa4e1f582b47498cec1f1ef0411a1110c4a5b/frontend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 619, 16, 677, 4672, 10482, 273, 365, 18, 20292, 18, 28500, 67, 28852, 21, 10677, 273, 10482, 18, 588, 67, 76, 13362, 475, 1435, 14162, 273, 10482, 18, 588, 67, 90, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 12, 2890, 16, 619, 16, 677, 4672, 10482, 273, 365, 18, 20292, 18, 28500, 67, 28852, 21, 10677, 273, 10482, 18, 588, 67, 76, 13362, 475, 1435, 14162, 273, 10482, 18, 588, 67, 90, ...
self.data[k] = v
self[k] = v
def update(self, dict): if isinstance(dict, UserDict): self.data.update(dict.data) elif isinstance(dict, type(self.data)): self.data.update(dict) else: for k, v in dict.items(): self.data[k] = v
d2e29ee863abd7fa3085e893f57c333bb6fc5520 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d2e29ee863abd7fa3085e893f57c333bb6fc5520/UserDict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 2065, 4672, 309, 1549, 12, 1576, 16, 2177, 5014, 4672, 365, 18, 892, 18, 2725, 12, 1576, 18, 892, 13, 1327, 1549, 12, 1576, 16, 618, 12, 2890, 18, 892, 3719, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 12, 2890, 16, 2065, 4672, 309, 1549, 12, 1576, 16, 2177, 5014, 4672, 365, 18, 892, 18, 2725, 12, 1576, 18, 892, 13, 1327, 1549, 12, 1576, 16, 618, 12, 2890, 18, 892, 3719, 30, ...
if prvpkg is not pkg]
if prvpkg.name != pkg.name]
def setChangeSet(self, changeset): self.reset() for pkg in changeset: op = changeset[pkg]
4b381ed62afda47fee455db12f17ed5d80c4d192 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8317/4b381ed62afda47fee455db12f17ed5d80c4d192/pm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 21565, 12, 2890, 16, 22463, 4672, 365, 18, 6208, 1435, 364, 3475, 316, 22463, 30, 1061, 273, 22463, 63, 10657, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 21565, 12, 2890, 16, 22463, 4672, 365, 18, 6208, 1435, 364, 3475, 316, 22463, 30, 1061, 273, 22463, 63, 10657, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if self.iDebugLevel == 0:
if self.sDebugMode == 'console':
def DebugStr(self, sDebugInfo): """Handles Debug-Output from all classes.
54ffec807df4acdcdd8fab12b225a27dbe06e238 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/54ffec807df4acdcdd8fab12b225a27dbe06e238/pManager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4015, 1585, 12, 2890, 16, 272, 2829, 966, 4672, 3536, 8788, 4015, 17, 1447, 628, 777, 3318, 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, ...
[ 1, 1, 1, 1, 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, 4015, 1585, 12, 2890, 16, 272, 2829, 966, 4672, 3536, 8788, 4015, 17, 1447, 628, 777, 3318, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
lines = [s.replace('\t', SPACE8) for s in text.split('\n')]
lines = [s.replace('\t', SPACE8) for s in text.splitlines()]
def _split_header(self, text): maxheaderlen = self.__maxheaderlen # Find out whether any lines in the header are really longer than # maxheaderlen characters wide. There could be continuation lines # that actually shorten it. Also, replace hard tabs with 8 spaces. lines = [s.replace('\t', SPACE8) for s in text.split(...
062749ac577be62c2f14fe61c2167c9c5b909ea3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/062749ac577be62c2f14fe61c2167c9c5b909ea3/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4939, 67, 3374, 12, 2890, 16, 977, 4672, 943, 3374, 1897, 273, 365, 16186, 1896, 3374, 1897, 468, 4163, 596, 2856, 1281, 2362, 316, 326, 1446, 854, 8654, 7144, 2353, 468, 943, 3374,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4939, 67, 3374, 12, 2890, 16, 977, 4672, 943, 3374, 1897, 273, 365, 16186, 1896, 3374, 1897, 468, 4163, 596, 2856, 1281, 2362, 316, 326, 1446, 854, 8654, 7144, 2353, 468, 943, 3374,...
self._tempdir = get_rl_tempdir('reportlab_test','tmp_%d' % time()) _testmodulename = os.path.join(self._tempdir,'test_module_%d.py' % time())
s = `int(time())` + `self.count` self.count += 1 self._tempdir = get_rl_tempdir('reportlab_test','tmp_%s' % s) _testmodulename = os.path.join(self._tempdir,'test_module_%s.py' % s)
def setUp(self): from time import time from reportlab.lib.utils import get_rl_tempdir self._tempdir = get_rl_tempdir('reportlab_test','tmp_%d' % time()) _testmodulename = os.path.join(self._tempdir,'test_module_%d.py' % time()) f = open(_testmodulename,'w') f.write('__all__=[]\n') f.close() self._testmodulename = os.pa...
74ac6fa43aa73d493b0c40e2b4f19048783deeee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/74ac6fa43aa73d493b0c40e2b4f19048783deeee/test_lib_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 628, 813, 1930, 813, 628, 2605, 7411, 18, 2941, 18, 5471, 1930, 336, 67, 1321, 67, 5814, 1214, 272, 273, 1375, 474, 12, 957, 10756, 68, 397, 1375, 2890, 18, 1883...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 628, 813, 1930, 813, 628, 2605, 7411, 18, 2941, 18, 5471, 1930, 336, 67, 1321, 67, 5814, 1214, 272, 273, 1375, 474, 12, 957, 10756, 68, 397, 1375, 2890, 18, 1883...
for row in self.db.view("seeds2/seeds", keys=keys, include_docs=True)
for row in self.db.view("seeds/seeds", keys=keys, include_docs=True)
def update_editions(self, ctx, editions): editions = list(editions) logging.info("works_db: BEGIN update_editions %s", len(editions)) # remove duplicate entries from editions editions = dict((e['key'], e) for e in editions).values() keys = [e['key'] for e in editions] old_works = dict((row.key, row.doc) for row in sel...
8e3e83c196bc1e0c4dd00cba3f0ef64c0530501b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/8e3e83c196bc1e0c4dd00cba3f0ef64c0530501b/updater.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 329, 5029, 12, 2890, 16, 1103, 16, 1675, 5029, 4672, 1675, 5029, 273, 666, 12, 329, 5029, 13, 2907, 18, 1376, 2932, 18597, 67, 1966, 30, 19270, 1089, 67, 329, 5029, 738, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 329, 5029, 12, 2890, 16, 1103, 16, 1675, 5029, 4672, 1675, 5029, 273, 666, 12, 329, 5029, 13, 2907, 18, 1376, 2932, 18597, 67, 1966, 30, 19270, 1089, 67, 329, 5029, 738, 87, ...
def pread(self, bytes, offset): return misc.pread(self.fd, bytes, offset)
def pread(self, bytes, offset): return misc.pread(self.fd, bytes, offset)
2c9c45d466d9f36b257b07acc15ff8878d3665ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8747/2c9c45d466d9f36b257b07acc15ff8878d3665ac/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 361, 12, 2890, 16, 1731, 16, 1384, 4672, 327, 20448, 18, 84, 896, 12, 2890, 18, 8313, 16, 1731, 16, 1384, 13, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 361, 12, 2890, 16, 1731, 16, 1384, 4672, 327, 20448, 18, 84, 896, 12, 2890, 18, 8313, 16, 1731, 16, 1384, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
elif S_ISDIR(res['Value'].filemode):
elif S_ISDIR( res['Value'].filemode ):
def isDirectory(self,lfn): """ Determine whether the path is a directory """ res = self.__checkArgumentFormat(lfn) if not res['OK']: return res lfns = res['Value'] # If we have less than three lfns to query a session doesn't make sense created = False if len(lfns) > 2: created = self.__openSession() failed = {} success...
6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10126, 12, 2890, 16, 80, 4293, 4672, 3536, 10229, 2856, 326, 589, 353, 279, 1867, 3536, 400, 273, 365, 16186, 1893, 1379, 1630, 12, 80, 4293, 13, 309, 486, 400, 3292, 3141, 3546, 30, 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, 10126, 12, 2890, 16, 80, 4293, 4672, 3536, 10229, 2856, 326, 589, 353, 279, 1867, 3536, 400, 273, 365, 16186, 1893, 1379, 1630, 12, 80, 4293, 13, 309, 486, 400, 3292, 3141, 3546, 30, 3...
initialcolor = self.__initialcolor,
def show(self): if not self.__pw: self.__pw, self.__sb = \ Main.build(master = self.__master, initialcolor = self.__initialcolor, initfile = self.__initfile, ignore = self.__ignore) Main.run(self.__pw, self.__sb) rgbtuple = self.__sb.current_rgb() self.__pw.withdraw() # check to see if the cancel button was pushed if s...
2be858230a1253b773a7e0d004ac84fae785d8b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2be858230a1253b773a7e0d004ac84fae785d8b9/pyColorChooser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 4672, 309, 486, 365, 16186, 14921, 30, 365, 16186, 14921, 16, 365, 16186, 18366, 273, 521, 12740, 18, 3510, 12, 7525, 273, 365, 16186, 7525, 16, 1208, 768, 273, 365, 1618...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 12, 2890, 4672, 309, 486, 365, 16186, 14921, 30, 365, 16186, 14921, 16, 365, 16186, 18366, 273, 521, 12740, 18, 3510, 12, 7525, 273, 365, 16186, 7525, 16, 1208, 768, 273, 365, 1618...
mtype = mimetypes.guess_type(file)[0]
mtype = mimetypes.guess_type(filename)[0]
def open_local_file(self, req): import email.utils import mimetypes host = req.get_host() file = req.get_selector() localfile = url2pathname(file) try: stats = os.stat(localfile) size = stats.st_size modified = email.utils.formatdate(stats.st_mtime, usegmt=True) mtype = mimetypes.guess_type(file)[0] headers = mimetools...
57cdcfc095fd502fa5bea98f1a18d8f1de936210 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/57cdcfc095fd502fa5bea98f1a18d8f1de936210/urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 3729, 67, 768, 12, 2890, 16, 1111, 4672, 1930, 2699, 18, 5471, 1930, 20369, 15180, 1479, 273, 1111, 18, 588, 67, 2564, 1435, 585, 273, 1111, 18, 588, 67, 9663, 1435, 1191, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1696, 67, 3729, 67, 768, 12, 2890, 16, 1111, 4672, 1930, 2699, 18, 5471, 1930, 20369, 15180, 1479, 273, 1111, 18, 588, 67, 2564, 1435, 585, 273, 1111, 18, 588, 67, 9663, 1435, 1191, 76...
self.assertEqual(cap.getvalue(), data)
self.assertEqual(cap.getvalue(), data*2)
def test_send(self): self.evt = threading.Event() cap = StringIO() threading.Thread(target=capture_server, args=(self.evt,cap)).start() time.sleep(1) # Give server time to initialize
aee5a827355b46b7a15ad7ea34293a734ab672a8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/aee5a827355b46b7a15ad7ea34293a734ab672a8/test_asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4661, 12, 2890, 4672, 365, 18, 73, 11734, 273, 17254, 18, 1133, 1435, 3523, 273, 15777, 1435, 17254, 18, 3830, 12, 3299, 33, 19250, 67, 3567, 16, 833, 28657, 2890, 18, 73, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4661, 12, 2890, 4672, 365, 18, 73, 11734, 273, 17254, 18, 1133, 1435, 3523, 273, 15777, 1435, 17254, 18, 3830, 12, 3299, 33, 19250, 67, 3567, 16, 833, 28657, 2890, 18, 73, 11...
results.append(page)
imagePage = ImagePage(page.site(), page.title()) results.append(imagePage)
def imagelinks(self, followRedirects = False, loose = False): """ Gives the images the page shows, as a list of Page objects. This includes images in galleries. If loose is set to true, this will find anything that looks like it could be an image. This is useful for finding, say, images that are passed as parameters to...
4533a666d4a7cc618f4769355db41503436a4951 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/4533a666d4a7cc618f4769355db41503436a4951/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8902, 27269, 87, 12, 2890, 16, 2805, 21978, 273, 1083, 16, 28393, 273, 1083, 4672, 3536, 611, 3606, 326, 4602, 326, 1363, 17975, 16, 487, 279, 666, 434, 3460, 2184, 18, 1220, 6104, 4602,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8902, 27269, 87, 12, 2890, 16, 2805, 21978, 273, 1083, 16, 28393, 273, 1083, 4672, 3536, 611, 3606, 326, 4602, 326, 1363, 17975, 16, 487, 279, 666, 434, 3460, 2184, 18, 1220, 6104, 4602,...
results = sorted(results, cmp=lambda x, y : cmp( (x.comments.strip() if x.comments else ''), (y.comments.strip() if y.comments else '') ), reverse=True)
results = list(filter(filter_metadata_results, results)) check_for_covers(results) words = ("the", "a", "an", "of", "and") prefix_pat = re.compile(r'^(%s)\s+'%("|".join(words))) trailing_paren_pat = re.compile(r'\(.*\)$') whitespace_pat = re.compile(r'\s+') def sort_func(x, y): def cleanup_title(s): s = s.strip().lo...
def search(title=None, author=None, publisher=None, isbn=None, isbndb_key=None, verbose=0): assert not(title is None and author is None and publisher is None and \ isbn is None) from calibre.customize.ui import metadata_sources, migrate_isbndb_key migrate_isbndb_key() if isbn is not None: isbn = re.sub(r'[^a-zA-Z0-9]',...
41b4a5dd96c5f129a915445e9a715e2d1988fd3f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/41b4a5dd96c5f129a915445e9a715e2d1988fd3f/fetch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2649, 33, 7036, 16, 2869, 33, 7036, 16, 12855, 33, 7036, 16, 24205, 33, 7036, 16, 24205, 1966, 67, 856, 33, 7036, 16, 3988, 33, 20, 4672, 1815, 486, 12, 2649, 353, 599, 471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 12, 2649, 33, 7036, 16, 2869, 33, 7036, 16, 12855, 33, 7036, 16, 24205, 33, 7036, 16, 24205, 1966, 67, 856, 33, 7036, 16, 3988, 33, 20, 4672, 1815, 486, 12, 2649, 353, 599, 471...
""" sentence_split = '' for delimiter in _DELIMITERS_SENTENCES: sentence_split += '\\' + delimiter sentence_split = '[' + sentence_split + ']' sentences = re.split(sentence_split, text.strip()) sentences = map(str.strip, sentences) sentences = filter(lambda s : s != '', sentences) return sentences
def test_split_sentences_trailing(self): self.assertEquals(lipsum._split_sentences("Hello. Hi. Hello"), ["Hello", "Hi", "Hello"]) self.assertEquals(lipsum._split_sentences(" Hello. Hi. Hello "), ["Hello", "Hi", "Hello"]) self.assertEquals(lipsum._split_sentences(".. Hello... Hi.... Hello "), ["Hello", "Hi", "Hello"...
def _split_sentences(text): """ Splits a piece of text into sentences, separated by periods, question marks and exclamation marks. """ sentence_split = '' for delimiter in _DELIMITERS_SENTENCES: sentence_split += '\\' + delimiter sentence_split = '[' + sentence_split + ']' sentences = re.split(sentence_split, text.str...
fa9e6662a1f30cb272942f25e233798ee7edac45 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3480/fa9e6662a1f30cb272942f25e233798ee7edac45/testlipsum.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4939, 67, 27393, 12, 955, 4672, 3536, 5385, 87, 279, 11151, 434, 977, 1368, 14951, 16, 8936, 635, 12777, 16, 5073, 13999, 471, 4687, 301, 367, 13999, 18, 225, 1652, 1842, 67, 4939, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4939, 67, 27393, 12, 955, 4672, 3536, 5385, 87, 279, 11151, 434, 977, 1368, 14951, 16, 8936, 635, 12777, 16, 5073, 13999, 471, 4687, 301, 367, 13999, 18, 225, 1652, 1842, 67, 4939, ...
inst = object.im_self note = (inst and ' method of %s instance' % classname(inst.__class__, mod) or ' unbound %s method' % classname(imclass, mod))
if object.im_self: note = ' method of %s instance' % classname( object.im_self.__class__, mod) else: note = ' unbound %s method' % classname(imclass,mod)
def docroutine(self, object, name=None, mod=None, cl=None): """Produce text documentation for a function or method object.""" realname = object.__name__ name = name or realname note = '' skipdocs = 0 if inspect.ismethod(object): imclass = object.im_class if cl: if imclass is not cl: note = ' from ' + classname(imclass,...
a5cd89f93dfc2b451a5a589ac3cd84fbcdd53c4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a5cd89f93dfc2b451a5a589ac3cd84fbcdd53c4f/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 22640, 12, 2890, 16, 733, 16, 508, 33, 7036, 16, 681, 33, 7036, 16, 927, 33, 7036, 4672, 3536, 25884, 977, 7323, 364, 279, 445, 578, 707, 733, 12123, 2863, 529, 273, 733, 16186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 997, 22640, 12, 2890, 16, 733, 16, 508, 33, 7036, 16, 681, 33, 7036, 16, 927, 33, 7036, 4672, 3536, 25884, 977, 7323, 364, 279, 445, 578, 707, 733, 12123, 2863, 529, 273, 733, 16186, ...
self._dict[value] = index
def insert(self, index, value): index %= len(self) if index > len(self): raise IndexError if value in self: return index %= len(self) self._list.insert(index, value) self._dict[value] = index
df8b146eb0ed4ec51ea2ff8cec3b642c375153e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5397/df8b146eb0ed4ec51ea2ff8cec3b642c375153e2/collections_.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 12, 2890, 16, 770, 16, 460, 4672, 770, 30582, 562, 12, 2890, 13, 309, 770, 405, 562, 12, 2890, 4672, 1002, 10195, 309, 460, 316, 365, 30, 327, 770, 30582, 562, 12, 2890, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2243, 12, 2890, 16, 770, 16, 460, 4672, 770, 30582, 562, 12, 2890, 13, 309, 770, 405, 562, 12, 2890, 4672, 1002, 10195, 309, 460, 316, 365, 30, 327, 770, 30582, 562, 12, 2890, 13, 36...
_field_metadata = [
_field_metadata_prototype = [
def __init__(self, icon_dict): for a in self.category_icons: if a not in icon_dict: raise ValueError('Missing category icon [%s]'%a) self[a] = icon_dict[a]
a5cadce60355a8afc49c0bd37375fff78db84d3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/a5cadce60355a8afc49c0bd37375fff78db84d3e/field_metadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4126, 67, 1576, 4672, 364, 279, 316, 365, 18, 4743, 67, 14516, 30, 309, 279, 486, 316, 4126, 67, 1576, 30, 1002, 2068, 2668, 4841, 3150, 4126, 9799, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4126, 67, 1576, 4672, 364, 279, 316, 365, 18, 4743, 67, 14516, 30, 309, 279, 486, 316, 4126, 67, 1576, 30, 1002, 2068, 2668, 4841, 3150, 4126, 9799, 87, ...
if self.startFrame != self.currentFrame: self.assy.changed()
if self.startFrame != self.currentFrame: self.assy.changed()
def _close(self): """Close movie file and adjust atom positions. """ if DEBUG1: print "movie._close() called. self.isOpen =", self.isOpen if not self.isOpen: return self._pause(0) self.fileobj.close() # Close the movie file. self.movend() # Unfreeze atoms. if self.startFrame != self.currentFrame: self.assy.changed() #...
24ec98e92cce1edae8e7f2ec2a62ea15df77b26e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/24ec98e92cce1edae8e7f2ec2a62ea15df77b26e/movie.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4412, 12, 2890, 4672, 3536, 4605, 21360, 585, 471, 5765, 3179, 6865, 18, 3536, 309, 6369, 21, 30, 1172, 315, 8683, 13120, 6315, 4412, 1435, 2566, 18, 365, 18, 291, 3678, 273, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4412, 12, 2890, 4672, 3536, 4605, 21360, 585, 471, 5765, 3179, 6865, 18, 3536, 309, 6369, 21, 30, 1172, 315, 8683, 13120, 6315, 4412, 1435, 2566, 18, 365, 18, 291, 3678, 273, 3113, ...
self.__insert_at_mark(end,"\n")
def __subtask(self,line_nbr,anchor) : start_i = self.buff.get_iter_at_line(line_nbr) start = self.buff.create_mark("start",start_i,True) end_i = start_i.copy() end_i.forward_line() end = self.buff.create_mark("end",end_i,False) self.buff.delete(start_i,end_i) bullet =' ↪ ' self.__insert_at_mark(start,bullet) self.__ap...
06ff57a18621fff1bf2a1e9ed614a114974658ae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8234/06ff57a18621fff1bf2a1e9ed614a114974658ae/taskview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1717, 4146, 12, 2890, 16, 1369, 67, 82, 2848, 16, 16215, 13, 294, 787, 67, 77, 273, 365, 18, 20664, 18, 588, 67, 2165, 67, 270, 67, 1369, 12, 1369, 67, 82, 2848, 13, 787, 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, 1001, 1717, 4146, 12, 2890, 16, 1369, 67, 82, 2848, 16, 16215, 13, 294, 787, 67, 77, 273, 365, 18, 20664, 18, 588, 67, 2165, 67, 270, 67, 1369, 12, 1369, 67, 82, 2848, 13, 787, 273...
OUTPUT: (int) The rank of this subgroup of the Mordell-Weil group.
def rank(self): """ Return the rank of this subgroup of the Mordell-Weil group.
9932a677a12413086a59217c4c0d425b0543b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/9932a677a12413086a59217c4c0d425b0543b6eb/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6171, 12, 2890, 4672, 3536, 2000, 326, 6171, 434, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, 3218, 330, 1041, 18, 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, 6171, 12, 2890, 4672, 3536, 2000, 326, 6171, 434, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, 3218, 330, 1041, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
parameter_depth is not used now
2008-05-11 put NA rate into passing parameters as well. too much memory consumption on each computing node
def generate_parameters(self, parameter_names, parameter_depth=2): """ parameter_depth is not used now """ sys.stderr.write( "Generating parameter settings ...") param_d = PassingData() for parameter_name in parameter_names: parameter_value = getattr(self, parameter_name) parameter_value = parameter_value.split(',') pa...
a46758a9629fa3a5b2dc6c161205942bbbfc5976 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/a46758a9629fa3a5b2dc6c161205942bbbfc5976/MpiQCCall.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 3977, 12, 2890, 16, 1569, 67, 1973, 16, 1569, 67, 5979, 33, 22, 4672, 3536, 4044, 28, 17, 6260, 17, 2499, 1378, 28182, 4993, 1368, 9588, 1472, 487, 5492, 18, 4885, 9816, 3778...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 3977, 12, 2890, 16, 1569, 67, 1973, 16, 1569, 67, 5979, 33, 22, 4672, 3536, 4044, 28, 17, 6260, 17, 2499, 1378, 28182, 4993, 1368, 9588, 1472, 487, 5492, 18, 4885, 9816, 3778...
self.videoWidget.stop()
if self.playing: self.videoWidget.play() pass else: self.videoWidget.stop()
def on_frameScale_value_changed(self, control): frame = int(control.get_value()) time = getFrameTime(self.frameRate, frame) #print frame, time
2755be35ba194cebae1fc0fa27da9ba7d82e83fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10170/2755be35ba194cebae1fc0fa27da9ba7d82e83fe/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3789, 5587, 67, 1132, 67, 6703, 12, 2890, 16, 3325, 4672, 2623, 273, 509, 12, 7098, 18, 588, 67, 1132, 10756, 813, 273, 25396, 950, 12, 2890, 18, 3789, 4727, 16, 2623, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 67, 3789, 5587, 67, 1132, 67, 6703, 12, 2890, 16, 3325, 4672, 2623, 273, 509, 12, 7098, 18, 588, 67, 1132, 10756, 813, 273, 25396, 950, 12, 2890, 18, 3789, 4727, 16, 2623, 13, 4...
conn = xmlrpclib.ServerProxy(self._uri+ '/xmlrpc/object') address = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.partner.address', 'search', [('email','=',ustr(mail_id))]) if not address: return None else: add_rec = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.partn...
conn = xmlrpclib.ServerProxy(self._uri+ '/xmlrpc/object') address = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.partner.address', 'search', [('email','=',ustr(mail_id))]) if not address: return None else: add_rec = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.partn...
def SearchPartner(self, mail_id = ""): conn = xmlrpclib.ServerProxy(self._uri+ '/xmlrpc/object') address = execute( conn, 'execute', self._dbname, int(self._uid), self._pwd, 'res.partner.address', 'search', [('email','=',ustr(mail_id))]) if not address: return None else: add_rec = execute( conn, 'execute', self._dbname...
bc3c1f7a22dbca3c418f700cf48883617e53933e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/bc3c1f7a22dbca3c418f700cf48883617e53933e/tiny_xmlrpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5167, 1988, 1224, 12, 2890, 16, 4791, 67, 350, 273, 1408, 4672, 1487, 273, 2025, 13832, 830, 495, 18, 2081, 3886, 12, 2890, 6315, 1650, 15, 1173, 2902, 7452, 19, 1612, 6134, 1758, 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, 5167, 1988, 1224, 12, 2890, 16, 4791, 67, 350, 273, 1408, 4672, 1487, 273, 2025, 13832, 830, 495, 18, 2081, 3886, 12, 2890, 6315, 1650, 15, 1173, 2902, 7452, 19, 1612, 6134, 1758, 273, ...
}
},
def fycomp(x,y): x = x.replace("y","i")+x.count("y")*"!" y = y.replace("y","i")+y.count("y")*"!" return cmp(x,y)
77cecfff76b24ad925a7f4c6c2fcb6ef188eb0ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/77cecfff76b24ad925a7f4c6c2fcb6ef188eb0ff/wikipedia_family.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 28356, 2919, 12, 92, 16, 93, 4672, 619, 273, 619, 18, 2079, 2932, 93, 15937, 77, 7923, 15, 92, 18, 1883, 2932, 93, 7923, 7388, 4442, 677, 273, 677, 18, 2079, 2932, 93, 15937, 77, 792...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28356, 2919, 12, 92, 16, 93, 4672, 619, 273, 619, 18, 2079, 2932, 93, 15937, 77, 7923, 15, 92, 18, 1883, 2932, 93, 7923, 7388, 4442, 677, 273, 677, 18, 2079, 2932, 93, 15937, 77, 792...
stat(reclist, query_terms, col_size, lwords)
print query_terms print col_size stat(reclist, query_terms)
def word_frequency(lwords, lrecIDs, min_relevance,verbose=0): """input: list of words, ['ellis', 'muon'] optional list of recIDs output: sorted list of recIDs by summary word frequencies, e.g. [[23,34], [344,24], [1,01]] if not possible (e.g. all stopwords), then return empty list""" startCreate = time.time() query_te...
8a040ea1c4e2ba68a120c489d438fc9222a0144d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/8a040ea1c4e2ba68a120c489d438fc9222a0144d/bibrank_record_sorter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2076, 67, 14092, 12, 80, 3753, 16, 328, 3927, 5103, 16, 1131, 67, 16599, 5882, 16, 11369, 33, 20, 4672, 3536, 2630, 30, 666, 434, 4511, 16, 10228, 1165, 291, 2187, 296, 13297, 265, 354...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2076, 67, 14092, 12, 80, 3753, 16, 328, 3927, 5103, 16, 1131, 67, 16599, 5882, 16, 11369, 33, 20, 4672, 3536, 2630, 30, 666, 434, 4511, 16, 10228, 1165, 291, 2187, 296, 13297, 265, 354...
('model', '=', model),
('model.model', '=', model),
def get(self, cursor, user, name, model, res_ids=None, context=None): """ Return property value for each res_ids name: property name model: object name """ model_field_obj = self.pool.get('ir.model.field') res = {}
4273190f868e851be7eccab85d979ec182791acc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/4273190f868e851be7eccab85d979ec182791acc/property.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 3347, 16, 729, 16, 508, 16, 938, 16, 400, 67, 2232, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 2000, 1272, 460, 364, 1517, 400, 67, 2232, 508, 30, 1272, 508, 938, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3347, 16, 729, 16, 508, 16, 938, 16, 400, 67, 2232, 33, 7036, 16, 819, 33, 7036, 4672, 3536, 2000, 1272, 460, 364, 1517, 400, 67, 2232, 508, 30, 1272, 508, 938, ...
zipopen = zipfp.open(TESTFN, 'rU') for line in zipopen: data2 += line
with zipfp.open(TESTFN, 'rU') as zipopen: for line in zipopen: data2 += line
def test_univeral_readaheads(self): f = io.BytesIO()
df64e4ebf884a9041c9514c1c88905dd4793c799 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/df64e4ebf884a9041c9514c1c88905dd4793c799/test_zipfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 1667, 287, 67, 896, 11617, 87, 12, 2890, 4672, 284, 273, 2527, 18, 2160, 4294, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 318, 1667, 287, 67, 896, 11617, 87, 12, 2890, 4672, 284, 273, 2527, 18, 2160, 4294, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
sim.getRNG().setSeed(12345)
sim.getRNG().set(seed=12345)
def outputstat(pop): 'Calculate and output statistics, ignored' return True
205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 876, 5642, 12, 5120, 4672, 296, 8695, 471, 876, 7691, 16, 5455, 11, 327, 1053, 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...
[ 1, 1, 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, 876, 5642, 12, 5120, 4672, 296, 8695, 471, 876, 7691, 16, 5455, 11, 327, 1053, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
name = randstr(100) description = randstr(254) min_role_id = random.sample(roles.values(), 1)[0]
def random_attribute_type(): return { 'name': randstr(100), 'description': randstr(254), 'min_role_id': random.sample(roles.values(), 1)[0], }
def unicmp(a, b, encoding = "utf-8"): """ When connected directly to the DB, values are returned as raw 8-bit strings that may need to be decoded (as UTF-8 by default) in order to compare them against expected Python Unicode strings. """ is8bit = re.compile("[\x80-\xff]").search if isinstance(a, str) and is8bit(a): a ...
f51dbe12c30f8473b083ea86b3dade41e56f4615 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/f51dbe12c30f8473b083ea86b3dade41e56f4615/Test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 640, 335, 1291, 12, 69, 16, 324, 16, 2688, 273, 315, 3158, 17, 28, 6, 4672, 3536, 5203, 5840, 5122, 358, 326, 2383, 16, 924, 854, 2106, 487, 1831, 1725, 17, 3682, 2064, 716, 2026, 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, 640, 335, 1291, 12, 69, 16, 324, 16, 2688, 273, 315, 3158, 17, 28, 6, 4672, 3536, 5203, 5840, 5122, 358, 326, 2383, 16, 924, 854, 2106, 487, 1831, 1725, 17, 3682, 2064, 716, 2026, 16...
def closing(self, node):
def closing(s, node):
def closing(self, node): return u""
01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2/Packer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7647, 12, 87, 16, 756, 4672, 327, 582, 3660, 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, ...
[ 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, 7647, 12, 87, 16, 756, 4672, 327, 582, 3660, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
from_here=None, to_there=None,
def __init__(self, fft_map=None, unit_cell=None, raw_map=None, from_here=None, to_there=None, periodic=False, positive_iso_level=None, iso_level_positive_range_fraction=None, negative_iso_level=None, iso_level_negative_range_fraction=None, wires=True, **kwds): if fft_map is not None: unit_cell = fft_map.unit_cell() sup...
71cf9b7262aee546e28184245876057920ea0e4b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/71cf9b7262aee546e28184245876057920ea0e4b/map_viewer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 15741, 67, 1458, 33, 7036, 16, 2836, 67, 3855, 33, 7036, 16, 1831, 67, 1458, 33, 7036, 16, 17478, 33, 8381, 16, 6895, 67, 9699, 67, 2815, 33, 7036, 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, 15741, 67, 1458, 33, 7036, 16, 2836, 67, 3855, 33, 7036, 16, 1831, 67, 1458, 33, 7036, 16, 17478, 33, 8381, 16, 6895, 67, 9699, 67, 2815, 33, 7036, 16,...
key = key[6:] start, end = self.elements.get(key, (None, None))
tag = key[6:] start, end = self.elements.get(tag, (None, None))
def __fixdict(self, dict): for key, val in dict.items(): if key[:6] == 'start_': key = key[6:] start, end = self.elements.get(key, (None, None)) if start is None: self.elements[key] = val, end elif key[:4] == 'end_': key = key[4:] start, end = self.elements.get(key, (None, None)) if end is None: self.elements[key] = st...
8c6117203386cee5e01c906d59759a6387af33b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8c6117203386cee5e01c906d59759a6387af33b5/xmllib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 904, 1576, 12, 2890, 16, 2065, 4672, 364, 498, 16, 1244, 316, 2065, 18, 3319, 13332, 309, 498, 10531, 26, 65, 422, 296, 1937, 67, 4278, 1047, 273, 498, 63, 26, 26894, 787, 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, 904, 1576, 12, 2890, 16, 2065, 4672, 364, 498, 16, 1244, 316, 2065, 18, 3319, 13332, 309, 498, 10531, 26, 65, 422, 296, 1937, 67, 4278, 1047, 273, 498, 63, 26, 26894, 787, 16, ...
reader = XMLFileReader(downloader.getInputStream())
reader = XMLFileReader(downloader.getInputStream(), 0)
def stripPrecompiled(string): if string.startswith('precompiled/'): return string[12:] return string
bd2f45ebedbffca8c4281f05e785cde2684b695c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12827/bd2f45ebedbffca8c4281f05e785cde2684b695c/update-fiji.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 1386, 19397, 12, 1080, 4672, 309, 533, 18, 17514, 1918, 2668, 1484, 19397, 2473, 4672, 327, 533, 63, 2138, 26894, 327, 533, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 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, 2569, 1386, 19397, 12, 1080, 4672, 309, 533, 18, 17514, 1918, 2668, 1484, 19397, 2473, 4672, 327, 533, 63, 2138, 26894, 327, 533, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
fileDict = {'LFN':lfn,'Status':'Waiting'}
if not fileDict.has_key('Status'): fileDict['Status']='Waiting'
def __setRegistrationRequest(self,lfn,se,catalog): """ Sets a registration request. """ self.log.info('Setting registration request for %s at %s.' % (lfn,se)) result = self.request.addSubRequest({'Attributes':{'Operation':'registerFile','ExecutionOrder':0, 'TargetSE':se,'Catalogue':catalog}},'register') if not result['...
7a20f605299fa7e624d8f2dad9d33a602c724dde /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/7a20f605299fa7e624d8f2dad9d33a602c724dde/FailoverTransfer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 7843, 691, 12, 2890, 16, 80, 4293, 16, 307, 16, 7199, 4672, 3536, 11511, 279, 7914, 590, 18, 3536, 365, 18, 1330, 18, 1376, 2668, 5568, 7914, 590, 364, 738, 87, 622, 738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 7843, 691, 12, 2890, 16, 80, 4293, 16, 307, 16, 7199, 4672, 3536, 11511, 279, 7914, 590, 18, 3536, 365, 18, 1330, 18, 1376, 2668, 5568, 7914, 590, 364, 738, 87, 622, 738, ...
self.terminalProtocol.clearInputLine() self.terminalProtocol.recv_char = True self.terminalProtocol.barrier(barrier) try: while True: type, value = self._receive() if type == 'key': key = value[0] if allowed is None or key in allowed: self.terminalProtocol.lineBuffer.append(str(key)) self.terminalProtocol.terminal.wr...
try: self.terminalProtocol.clearInputLine() self.terminalProtocol.recv_char = True self.terminalProtocol.barrier(barrier) try: while True: type, value = self._receive() if type == 'key': key = value[0] if allowed is None or key in allowed: self.terminalProtocol.lineBuffer.append(str(key)) self.terminalProtocol.termin...
def recv_char(self, allowed=[], barrier=1): if self.terminalProtocol is None: raise ConnectionDone self.terminalProtocol.clearInputLine() self.terminalProtocol.recv_char = True # because it's like a modal dialog box that steals focus, wait for at least 1 second # since the last keypress to avoid accidental input self.t...
95154775e42ac733d1d39dc1ff04dd1451f82f4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/95154775e42ac733d1d39dc1ff04dd1451f82f4e/console.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10665, 67, 3001, 12, 2890, 16, 2935, 22850, 6487, 24651, 33, 21, 4672, 309, 365, 18, 15979, 5752, 353, 599, 30, 1002, 4050, 7387, 365, 18, 15979, 5752, 18, 8507, 1210, 1670, 1435, 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, 10665, 67, 3001, 12, 2890, 16, 2935, 22850, 6487, 24651, 33, 21, 4672, 309, 365, 18, 15979, 5752, 353, 599, 30, 1002, 4050, 7387, 365, 18, 15979, 5752, 18, 8507, 1210, 1670, 1435, 365, ...
:type addr: str or 4-tuple
:type addr: str, or 2- or 4-tuple
def connect(self, addr, ipv6=True): """ Connects to the host specified in address.
90682baa5ab5e105fb31ca84cac0f9a398304906 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11722/90682baa5ab5e105fb31ca84cac0f9a398304906/sockets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 3091, 16, 9205, 26, 33, 5510, 4672, 3536, 8289, 87, 358, 326, 1479, 1269, 316, 1758, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3077, 12, 2890, 16, 3091, 16, 9205, 26, 33, 5510, 4672, 3536, 8289, 87, 358, 326, 1479, 1269, 316, 1758, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
slqs = [
sqls = [
def check_redundant_identifier(con, archive_id=None): if archive_id is None: slqs = [ "delete from INTEGRITY_CHECK where PROBLEM_CODE='RID'", """ insert into INTEGRITY_CHECK (Object_ID, Value, Problem_Code) select distinct ai.Item_ID, '', 'RID' from ARCHIVED_ITEM ai, METADATA_ELEM me where ai.Item_ID = me.Item_ID and ...
d92b878307536acd0ca079582f31d7891ad2eb83 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8937/d92b878307536acd0ca079582f31d7891ad2eb83/integrity.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1118, 15362, 67, 5644, 12, 591, 16, 5052, 67, 350, 33, 7036, 4672, 309, 5052, 67, 350, 353, 599, 30, 1847, 87, 273, 306, 315, 3733, 628, 2120, 1448, 6997, 4107, 67, 10687, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1118, 15362, 67, 5644, 12, 591, 16, 5052, 67, 350, 33, 7036, 4672, 309, 5052, 67, 350, 353, 599, 30, 1847, 87, 273, 306, 315, 3733, 628, 2120, 1448, 6997, 4107, 67, 10687, 1...
@todo: Use different node styles for different subclasses of APIDoc
:todo: Use different node styles for different subclasses of APIDoc
def add_valdoc_nodes(graph, val_docs, linker, context): """ @todo: Use different node styles for different subclasses of APIDoc """ nodes = {} val_docs = sorted(val_docs, key=lambda d:d.canonical_name) for i, val_doc in enumerate(val_docs): label = val_doc.canonical_name.contextualize(context.canonical_name) node = nod...
4fd00cb76a91e928d53ac929aeb644a26b8ebe1b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3512/4fd00cb76a91e928d53ac929aeb644a26b8ebe1b/dotgraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 1125, 2434, 67, 4690, 12, 4660, 16, 1244, 67, 8532, 16, 28058, 16, 819, 4672, 3536, 294, 9012, 30, 2672, 3775, 756, 5687, 364, 3775, 15320, 434, 14410, 734, 504, 3536, 2199, 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, 527, 67, 1125, 2434, 67, 4690, 12, 4660, 16, 1244, 67, 8532, 16, 28058, 16, 819, 4672, 3536, 294, 9012, 30, 2672, 3775, 756, 5687, 364, 3775, 15320, 434, 14410, 734, 504, 3536, 2199, 2...
msg = "Warning: %s (default %r) starts out %r from prefs db" % \ (self, self._dfltval, self.value)
msg = "Warning: %s (default %r) starts out %r %s" % \ (self, self._dfltval, self.value, self.starts_out_from_where)
def __init__(self, name, dtype, prefs_key = False, non_debug = False, subs = ()): #bruce 060124 added prefs_key & non_debug options #e for now, name is used locally (for UI, etc, and maybe for prefs db); # whether/how to find this obj using name is up to the caller self.name = name assert name and type(name) == type(""...
72671981e8aacdcc18d27b42fd7d85222f9b2cc7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/72671981e8aacdcc18d27b42fd7d85222f9b2cc7/debug_prefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 3182, 16, 15503, 67, 856, 273, 1083, 16, 1661, 67, 4148, 273, 1083, 16, 11630, 273, 1832, 4672, 468, 2848, 3965, 13026, 1611, 3247, 3096, 15503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 3182, 16, 15503, 67, 856, 273, 1083, 16, 1661, 67, 4148, 273, 1083, 16, 11630, 273, 1832, 4672, 468, 2848, 3965, 13026, 1611, 3247, 3096, 15503, ...
traceback.print_exc ()
info = sys.exc_info() traceback.print_exception(info[0], info[1], info[2])
def do_POST(self): status = 500 try: if self.server.config.dumpHeadersIn: s = 'Incoming HTTP headers' debugHeader(s) print self.raw_requestline.strip() print "\n".join(map (lambda x: x.strip(), self.headers.headers)) debugFooter(s)
5b186302f8f1c672ef6bf6596713491b0dc61f98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5b186302f8f1c672ef6bf6596713491b0dc61f98/SOAP.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3798, 12, 2890, 4672, 1267, 273, 6604, 775, 30, 309, 365, 18, 3567, 18, 1425, 18, 8481, 3121, 382, 30, 272, 273, 296, 20370, 2239, 1607, 11, 1198, 1864, 12, 87, 13, 1172, 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, 741, 67, 3798, 12, 2890, 4672, 1267, 273, 6604, 775, 30, 309, 365, 18, 3567, 18, 1425, 18, 8481, 3121, 382, 30, 272, 273, 296, 20370, 2239, 1607, 11, 1198, 1864, 12, 87, 13, 1172, 36...
def __init__(self): SimpleXMLRPCDispatcher.__init__(self)
def __init__(self, allow_none=False): SimpleXMLRPCDispatcher.__init__(self, allow_none)
def __init__(self): SimpleXMLRPCDispatcher.__init__(self)
abc39365bd1065be5983597fe24f8dddbe98dbc6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/abc39365bd1065be5983597fe24f8dddbe98dbc6/SimpleXMLRPCServer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 4477, 4201, 8087, 6681, 16186, 2738, 972, 12, 2890, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 4477, 4201, 8087, 6681, 16186, 2738, 972, 12, 2890, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.referencesR = re.compile('<references */>', re.IGNORECASE)
self.referencesR = re.compile('<references.*?/>', re.IGNORECASE)
def __init__(self, generator, always = False): self.generator = generator self.always = always self.site = wikipedia.getSite() self.refR = re.compile('</ref>', re.IGNORECASE) self.referencesR = re.compile('<references */>', re.IGNORECASE) try: self.referencesTemplates = referencesTemplates[wikipedia.getSite().family.na...
c88d1eb8ab5fc7a13326d3b05024eeaee892ed6d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/c88d1eb8ab5fc7a13326d3b05024eeaee892ed6d/noreferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4456, 16, 3712, 273, 1083, 4672, 365, 18, 8812, 273, 4456, 365, 18, 17737, 273, 3712, 365, 18, 4256, 273, 21137, 18, 588, 4956, 1435, 365, 18, 1734, 54, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4456, 16, 3712, 273, 1083, 4672, 365, 18, 8812, 273, 4456, 365, 18, 17737, 273, 3712, 365, 18, 4256, 273, 21137, 18, 588, 4956, 1435, 365, 18, 1734, 54, ...
if gpod.itdb_get_mountpoint(self._itdb): if not gpod.itdb_shuffle_write(self._itdb, None): raise DatabaseException("Unable to save shuffle database on %s" % self._itdb.mountpoint)
def close(self): """Save and close the database.
0c62a56dd9a840c56cfbb5d9070bf3c97c4ac3ab /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12459/0c62a56dd9a840c56cfbb5d9070bf3c97c4ac3ab/ipod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 3536, 4755, 471, 1746, 326, 2063, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 3536, 4755, 471, 1746, 326, 2063, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
QToolTip.add(self.density_conv_combox,self.__tr("Selects the accuracy of the electron density convergence for the energy calculation.")) QWhatsThis.add(self.density_conv_combox,self.__tr("Selects the accuracy of the electron density convergence for the energy calculation."))
QToolTip.add(self.density_conv_combox,self.__tr("Accuracy of the electron density convergence (CONV)")) QWhatsThis.add(self.density_conv_combox,self.__tr("Selects the accuracy of the electron density convergence for the calculation (CONV)."))
def languageChange(self): self.setCaption(self.__tr("GAMESS Properties")) self.psetslbl_2_2.setText(self.__tr("Name :")) self.textLabel1_2_3.setText(self.__tr("Calculate :")) self.textLabel1_3.setText(self.__tr("Description :")) self.textLabel1_3_2.setText(self.__tr("Color :")) self.name_linedit.setText(QString.null) Q...
24f41dc8e19de3c29875b1970aa782574333c759 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/24f41dc8e19de3c29875b1970aa782574333c759/GamessPropDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2653, 3043, 12, 2890, 4672, 365, 18, 542, 21158, 12, 2890, 16186, 313, 2932, 43, 1642, 1260, 6183, 6, 3719, 365, 18, 84, 542, 2069, 3083, 67, 22, 67, 22, 18, 542, 1528, 12, 2890, 161...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2653, 3043, 12, 2890, 4672, 365, 18, 542, 21158, 12, 2890, 16186, 313, 2932, 43, 1642, 1260, 6183, 6, 3719, 365, 18, 84, 542, 2069, 3083, 67, 22, 67, 22, 18, 542, 1528, 12, 2890, 161...
mismatched.append('%s, expected: %s, actual: %s' % (key, value, actual[key]))
mismatched.append('%s, expected: %s, actual: %s' % (key, value, actual[key]))
def assertDictContainsSubset(self, expected, actual, msg=None): """Checks whether actual is a superset of expected.""" missing = [] mismatched = [] for key, value in expected.iteritems(): if key not in actual: missing.append(key) elif value != actual[key]: mismatched.append('%s, expected: %s, actual: %s' % (key, value,...
7a86bcbe412ed8eb1698bc883b52fe7bf5f24160 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/7a86bcbe412ed8eb1698bc883b52fe7bf5f24160/case.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 5014, 10846, 20315, 12, 2890, 16, 2665, 16, 3214, 16, 1234, 33, 7036, 4672, 3536, 4081, 2856, 3214, 353, 279, 1169, 21686, 434, 2665, 12123, 3315, 273, 5378, 7524, 11073, 273, 5378, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1815, 5014, 10846, 20315, 12, 2890, 16, 2665, 16, 3214, 16, 1234, 33, 7036, 4672, 3536, 4081, 2856, 3214, 353, 279, 1169, 21686, 434, 2665, 12123, 3315, 273, 5378, 7524, 11073, 273, 5378, ...
if str(result[0].__class__) == "docutils.nodes.paragraph":
print "MMP-PRST: class is %s" % str(result[0].__class__) if result[0].__class__ == docutils.nodes.paragraph:
role_def = ".. role:: mm(mm)\n :systemcntxt: %s\n\n" % src
ca4acb1b53db0dbface2c84dd6bd5e6a4bdb0958 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11984/ca4acb1b53db0dbface2c84dd6bd5e6a4bdb0958/MMParser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2478, 67, 536, 273, 315, 838, 2478, 2866, 9740, 12, 7020, 5153, 82, 294, 4299, 13085, 15239, 30, 738, 87, 64, 82, 64, 82, 6, 738, 1705, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2478, 67, 536, 273, 315, 838, 2478, 2866, 9740, 12, 7020, 5153, 82, 294, 4299, 13085, 15239, 30, 738, 87, 64, 82, 64, 82, 6, 738, 1705, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
log_data = '';
log_data = ''
def _publish_test_log_files_ ( unused, dir, names ): for file in names: if os.path.basename( file ) == 'test_log.xml': utils.log( 'Publishing test log "%s"' % os.path.join(dir,file) ) if dart_server: log_xml = open(os.path.join(dir,file)).read().translate(ascii_only_table) #~ utils.log( '--- XML:\n%s' % log_xml) log_do...
f667f2f54c3468e35f3a3fce87ded627e7ba3d40 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7959/f667f2f54c3468e35f3a3fce87ded627e7ba3d40/collect_and_upload_logs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 6543, 67, 3813, 67, 1330, 67, 2354, 67, 261, 10197, 16, 1577, 16, 1257, 262, 30, 364, 585, 316, 1257, 30, 309, 1140, 18, 803, 18, 13909, 12, 585, 262, 422, 296, 3813, 67, 1330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6543, 67, 3813, 67, 1330, 67, 2354, 67, 261, 10197, 16, 1577, 16, 1257, 262, 30, 364, 585, 316, 1257, 30, 309, 1140, 18, 803, 18, 13909, 12, 585, 262, 422, 296, 3813, 67, 1330, ...
if not wsc.check_user(uid):
if not wsc.check_user(uid, 'cfgwebsearch'):
def modifytranslations(req, colID, ln=cdslang, sel_type='', trans = [], confirm=-1): navtrail_previous_links = wsc.getnavtrail() + """&gt; <a class=navtrail href="%s/admin/websearch/websearchadmin.py/">Edit Collection Tree</a> """ % (weburl) try: uid = getUid(req) except MySQLdb.Error, e: return error_page(req) if no...
64768d1c90331fa30ff327f07b134d7b2140dd2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/64768d1c90331fa30ff327f07b134d7b2140dd2a/websearchadmin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5612, 13457, 12, 3658, 16, 645, 734, 16, 7211, 33, 4315, 2069, 539, 16, 357, 67, 723, 2218, 2187, 906, 273, 5378, 16, 6932, 29711, 21, 4672, 8775, 15565, 67, 11515, 67, 7135, 273, 341,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5612, 13457, 12, 3658, 16, 645, 734, 16, 7211, 33, 4315, 2069, 539, 16, 357, 67, 723, 2218, 2187, 906, 273, 5378, 16, 6932, 29711, 21, 4672, 8775, 15565, 67, 11515, 67, 7135, 273, 341,...
new_price = float(price) * from_uom.rate
new_price = price * Decimal(str(from_uom.rate))
def compute_price(self, cursor, user, from_uom, price, to_uom=False): """ Convert price for given uom's. from_uom and to_uom should be browse records. """ if not from_uom or not price or not to_uom: return price if from_uom.category.id <> to_uom.category.id: return price if from_uom.factor >= 1.0: new_price = float(pri...
6864894139ace8c4aeff87ec481618aeddd0c6d1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9285/6864894139ace8c4aeff87ec481618aeddd0c6d1/uom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 8694, 12, 2890, 16, 3347, 16, 729, 16, 628, 67, 89, 362, 16, 6205, 16, 358, 67, 89, 362, 33, 8381, 4672, 3536, 4037, 6205, 364, 864, 582, 362, 1807, 18, 628, 67, 89, 362,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 8694, 12, 2890, 16, 3347, 16, 729, 16, 628, 67, 89, 362, 16, 6205, 16, 358, 67, 89, 362, 33, 8381, 4672, 3536, 4037, 6205, 364, 864, 582, 362, 1807, 18, 628, 67, 89, 362,...
return "%s"%self.list
return "%s"%self._list
def __repr__(self): return "%s"%self.list
b232e334b7d1e2db7b497ef4bf9f429f6c79bb74 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b232e334b7d1e2db7b497ef4bf9f429f6c79bb74/tensor_product.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 2213, 87, 28385, 2890, 18, 1098, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 2213, 87, 28385, 2890, 18, 1098, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
_startx = _startx
_startx = startx
def setup(**geometry): """ Sets the size and position of the main window. Keywords are width, height, startx and starty: width: either a size in pixels or a fraction of the screen. Default is 50% of screen. height: either the height in pixels or a fraction of the screen. Default is 75% of screen. Setting either widt...
f9a4e2e8931472cfab817f08a4fbaa558246b5b3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/f9a4e2e8931472cfab817f08a4fbaa558246b5b3/turtle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 636, 14330, 4672, 3536, 11511, 326, 963, 471, 1754, 434, 326, 2774, 2742, 18, 225, 1929, 3753, 854, 1835, 16, 2072, 16, 787, 92, 471, 787, 93, 30, 225, 1835, 30, 3344, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 636, 14330, 4672, 3536, 11511, 326, 963, 471, 1754, 434, 326, 2774, 2742, 18, 225, 1929, 3753, 854, 1835, 16, 2072, 16, 787, 92, 471, 787, 93, 30, 225, 1835, 30, 3344, 279, ...
def python_docs(self, event=None): self.display_docs(self.help_url)
def python_docs(self, event=None): os.startfile(self.help_url) else: def python_docs(self, event=None): self.display_docs(self.help_url)
def help_dialog(self, event=None): fn=os.path.join(os.path.abspath(os.path.dirname(__file__)),'help.txt') textView.TextViewer(self.top,'Help',fn)
931625dc77cfd527b059e579615d517d8d994110 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/931625dc77cfd527b059e579615d517d8d994110/EditorWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 67, 12730, 12, 2890, 16, 871, 33, 7036, 4672, 2295, 33, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 5113, 803, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 13, 3631, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 67, 12730, 12, 2890, 16, 871, 33, 7036, 4672, 2295, 33, 538, 18, 803, 18, 5701, 12, 538, 18, 803, 18, 5113, 803, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 13, 3631, 11,...
"CVSRevision":"$Revision: 1.179 $",
"CVSRevision":"$Revision: 1.180 $",
def callingparams(self): """Returns list of parameters to save with results.""" #Form dictionary of inputs params = {"ystart":self.ystart, "tstart":self.tstart, "tend":self.tend, "tstep_wanted":self.tstep_wanted, "tstep_min":self.tstep_min, "eps":self.eps, "dxsav":self.dxsav, "solver":self.solver, "classname":self.__cl...
0004f757033e5f461c6393ba8f43b6a9f4f4c101 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7283/0004f757033e5f461c6393ba8f43b6a9f4f4c101/cosmomodels.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4440, 2010, 12, 2890, 4672, 3536, 1356, 666, 434, 1472, 358, 1923, 598, 1686, 12123, 468, 1204, 3880, 434, 4540, 859, 273, 12528, 1094, 485, 6877, 2890, 18, 1094, 485, 16, 315, 88, 1937,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4440, 2010, 12, 2890, 4672, 3536, 1356, 666, 434, 1472, 358, 1923, 598, 1686, 12123, 468, 1204, 3880, 434, 4540, 859, 273, 12528, 1094, 485, 6877, 2890, 18, 1094, 485, 16, 315, 88, 1937,...
Do whatever needed before replay the changeset.
Do whatever needed before replay and return the adapted changeset.
def _adaptChangeset(self, changeset): """ Do whatever needed before replay the changeset.
9aa2e1ff3667d36b73befcf6f9a6b7b909da3977 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5981/9aa2e1ff3667d36b73befcf6f9a6b7b909da3977/target.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19195, 29743, 12, 2890, 16, 22463, 4672, 3536, 2256, 15098, 3577, 1865, 16033, 326, 22463, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 19195, 29743, 12, 2890, 16, 22463, 4672, 3536, 2256, 15098, 3577, 1865, 16033, 326, 22463, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
print 123, _active_menu_item
def render_admin_response(template_name, _active_menu_item=None, **values): """Works pretty much like the normal `render_response` function but it emits some events to collect navigation items and injects that into the template context. This also gets the flashes messages from the user session and injects them into the...
97b34869855085ec21c99a57399dee8905b45fd9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12815/97b34869855085ec21c99a57399dee8905b45fd9/admin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 67, 3666, 67, 2740, 12, 3202, 67, 529, 16, 389, 3535, 67, 5414, 67, 1726, 33, 7036, 16, 2826, 2372, 4672, 3536, 16663, 7517, 9816, 3007, 326, 2212, 1375, 5902, 67, 2740, 68, 445,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3666, 67, 2740, 12, 3202, 67, 529, 16, 389, 3535, 67, 5414, 67, 1726, 33, 7036, 16, 2826, 2372, 4672, 3536, 16663, 7517, 9816, 3007, 326, 2212, 1375, 5902, 67, 2740, 68, 445,...
elif trainnew and os.path.isdir(os.path.join(path, "new")): maildir_train(h, os.path.join(path, "new"), is_spam, force)
def train(h, path, is_spam, force, trainnew): if not os.path.exists(path): raise ValueError("Nonexistent path: %s" % path) elif os.path.isfile(path): mbox_train(h, path, is_spam, force) elif trainnew and os.path.isdir(os.path.join(path, "new")): maildir_train(h, os.path.join(path, "new"), is_spam, force) elif os.path.i...
0486c449f6e84130a09806fdec107fe5b0218e2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/0486c449f6e84130a09806fdec107fe5b0218e2a/mboxtrain.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4691, 12, 76, 16, 589, 16, 353, 67, 1752, 301, 16, 2944, 16, 4691, 2704, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 803, 4672, 1002, 2068, 2932, 3989, 19041, 589, 30, 738, 87, 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, 4691, 12, 76, 16, 589, 16, 353, 67, 1752, 301, 16, 2944, 16, 4691, 2704, 4672, 309, 486, 1140, 18, 803, 18, 1808, 12, 803, 4672, 1002, 2068, 2932, 3989, 19041, 589, 30, 738, 87, 6, ...
fo = open(test_support.TESTFN, "rb")
fo = open(test_support.TESTFN, "r", encoding="ascii")
def test_print(self): d = self.type2test(range(200)) d.append(d) d.extend(range(200,400)) d.append(d) d.append(400) try: fo = open(test_support.TESTFN, "wb") fo.write(str(d)) fo.close() fo = open(test_support.TESTFN, "rb") self.assertEqual(fo.read(), repr(d)) finally: fo.close() os.remove(test_support.TESTFN)
08be05fb283b26901305d925adda79448e0863b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/08be05fb283b26901305d925adda79448e0863b0/list_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1188, 12, 2890, 4672, 302, 273, 365, 18, 723, 22, 3813, 12, 3676, 12, 6976, 3719, 302, 18, 6923, 12, 72, 13, 302, 18, 14313, 12, 3676, 12, 6976, 16, 16010, 3719, 302, 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, 1842, 67, 1188, 12, 2890, 4672, 302, 273, 365, 18, 723, 22, 3813, 12, 3676, 12, 6976, 3719, 302, 18, 6923, 12, 72, 13, 302, 18, 14313, 12, 3676, 12, 6976, 16, 16010, 3719, 302, 18, ...
self.sizer.Add(self.term.textctrl, 0, wx.ALIGN_CENTRE | wx.ALL, 2)
self.sizer.Add(self.term.textctrl, 1, wx.ALIGN_CENTRE | wx.ALL | wx.GROW, 2)
def finish_init(self): wx.Frame.__init__(self, None, -1, name = ("SoL for " + self.dname + " connection " + str(self.cnum)))
7cb6c3871e2a9501116e25587e6529e18916f8be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3867/7cb6c3871e2a9501116e25587e6529e18916f8be/_SoL.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 67, 2738, 12, 2890, 4672, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 300, 21, 16, 508, 273, 7566, 10225, 48, 364, 315, 397, 365, 18, 72, 529, 397, 315, 1459, 315,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4076, 67, 2738, 12, 2890, 4672, 7075, 18, 3219, 16186, 2738, 972, 12, 2890, 16, 599, 16, 300, 21, 16, 508, 273, 7566, 10225, 48, 364, 315, 397, 365, 18, 72, 529, 397, 315, 1459, 315,...
self.dimensions = {} self._dims = []
def _dim_array(self): """Read a dict with dimensions names and sizes.""" assert self.read(4) in [ZERO, NC_DIMENSION] count = self._unpack_int()
5b0268473bcd757e7ad74092b5f4f955361dfb8e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12971/5b0268473bcd757e7ad74092b5f4f955361dfb8e/netcdf.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3509, 67, 1126, 12, 2890, 4672, 3536, 1994, 279, 2065, 598, 5769, 1257, 471, 8453, 12123, 1815, 365, 18, 896, 12, 24, 13, 316, 306, 24968, 16, 423, 39, 67, 2565, 958, 3156, 1146, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3509, 67, 1126, 12, 2890, 4672, 3536, 1994, 279, 2065, 598, 5769, 1257, 471, 8453, 12123, 1815, 365, 18, 896, 12, 24, 13, 316, 306, 24968, 16, 423, 39, 67, 2565, 958, 3156, 1146, ...
Z = newvar() uthread(sleep, X, Z) uthread(sleep, Y, Z) wait(Z)
Barrier = newvar() uthread(sleep, X, Barrier) uthread(sleep, Y, Barrier) print "waiting for the barrier to be bound" wait(Barrier)
def wait_two(X, Y): Z = newvar() uthread(sleep, X, Z) uthread(sleep, Y, Z) wait(Z) if is_free(Y): return 1 return 2
4b2c513e9e31d47e1aa819d3b2d02c9c8bfee672 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/4b2c513e9e31d47e1aa819d3b2d02c9c8bfee672/test_logicobjspace.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 67, 15415, 12, 60, 16, 1624, 4672, 16654, 10342, 273, 394, 1401, 1435, 225, 795, 896, 12, 19607, 16, 1139, 16, 16654, 10342, 13, 225, 795, 896, 12, 19607, 16, 1624, 16, 16654, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2529, 67, 15415, 12, 60, 16, 1624, 4672, 16654, 10342, 273, 394, 1401, 1435, 225, 795, 896, 12, 19607, 16, 1139, 16, 16654, 10342, 13, 225, 795, 896, 12, 19607, 16, 1624, 16, 16654, 10...
del(self.messagelist[uid])
del self.messagelist[uid]
def deletemessages(self, uidlist): # Weed out ones not in self.messagelist uidlist = [uid for uid in uidlist if uid in self.messagelist] if not len(uidlist): return
817a10ce0f545a37cc5d47f1bd69c8436d6ec740 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5335/817a10ce0f545a37cc5d47f1bd69c8436d6ec740/IMAP.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6578, 351, 1753, 12, 2890, 16, 4555, 1098, 4672, 468, 1660, 329, 596, 5945, 486, 316, 365, 18, 81, 403, 346, 5449, 4555, 1098, 273, 306, 1911, 364, 4555, 316, 4555, 1098, 309, 4555, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6578, 351, 1753, 12, 2890, 16, 4555, 1098, 4672, 468, 1660, 329, 596, 5945, 486, 316, 365, 18, 81, 403, 346, 5449, 4555, 1098, 273, 306, 1911, 364, 4555, 316, 4555, 1098, 309, 4555, 31...
"""
"""
def execute(self, inputs, update = 0, last = 0): """ Created: 29.05.2006, KP Description: Execute the filter with given inputs and return the output """ if not ProcessingFilter.ProcessingFilter.execute(self, inputs): return None image = self.getInput(1)
6d7b572696d4ecdce2049b45a6e109836f3272c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/6d7b572696d4ecdce2049b45a6e109836f3272c9/SegmentationFilters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 4540, 16, 1089, 273, 374, 16, 1142, 273, 374, 4672, 3536, 12953, 30, 12899, 18, 6260, 18, 6976, 26, 16, 1475, 52, 6507, 30, 7903, 326, 1034, 598, 864, 4540, 471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 16, 4540, 16, 1089, 273, 374, 16, 1142, 273, 374, 4672, 3536, 12953, 30, 12899, 18, 6260, 18, 6976, 26, 16, 1475, 52, 6507, 30, 7903, 326, 1034, 598, 864, 4540, 471, ...
if name is not None and name in self._pkgmatch_fails:
if name is not None and name in self._pkgname_fails:
def _search(self, name=None, epoch=None, ver=None, rel=None, arch=None): '''List of matching packages, to zero or more of NEVRA.''' if name is not None and name in self._pkgmatch_fails: return []
17f7ebdd2c0a7df34c31fd3dd5e87a988a46e38e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/17f7ebdd2c0a7df34c31fd3dd5e87a988a46e38e/rpmsack.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3072, 12, 2890, 16, 508, 33, 7036, 16, 7632, 33, 7036, 16, 1924, 33, 7036, 16, 1279, 33, 7036, 16, 6637, 33, 7036, 4672, 9163, 682, 434, 3607, 5907, 16, 358, 3634, 578, 1898, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3072, 12, 2890, 16, 508, 33, 7036, 16, 7632, 33, 7036, 16, 1924, 33, 7036, 16, 1279, 33, 7036, 16, 6637, 33, 7036, 4672, 9163, 682, 434, 3607, 5907, 16, 358, 3634, 578, 1898, 43...
def rebuild(verbose, per_page, commit_each):
def rebuild(verbose, per_page, commit_each, app_models=None):
def rebuild(verbose, per_page, commit_each): def after_index(obj): if verbose: sys.stdout.write('.') sys.stdout.flush() for space in IndexSpace.instances: for model, indexers in space.get_indexers().iteritems(): for indexer in indexers: indexer.clear() indexer.update(None, after_index, per_page, commit_each)
37d63969ac742928cd0a05ebf798f66bfa0d226e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4645/37d63969ac742928cd0a05ebf798f66bfa0d226e/index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13419, 12, 11369, 16, 1534, 67, 2433, 16, 3294, 67, 13798, 16, 595, 67, 7665, 33, 7036, 4672, 1652, 1839, 67, 1615, 12, 2603, 4672, 309, 3988, 30, 2589, 18, 10283, 18, 2626, 2668, 1093...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13419, 12, 11369, 16, 1534, 67, 2433, 16, 3294, 67, 13798, 16, 595, 67, 7665, 33, 7036, 4672, 1652, 1839, 67, 1615, 12, 2603, 4672, 309, 3988, 30, 2589, 18, 10283, 18, 2626, 2668, 1093...
self.address = self.add_entry_row(table, 1, "Load address:", 8)
self.address = self.add_entry_row(table, 1, "Load address:", 6)
def add_table_content(self, table): chooser = gtk.FileChooserButton('Select a File') chooser.set_local_only(True) # Hatari cannot access URIs chooser.set_width_chars(12) self.file = self.add_widget_row(table, 0, "File name:", chooser) self.address = self.add_entry_row(table, 1, "Load address:", 8) self.address.connect...
129a9cbee3e4185bd081ca4982b04d8bc84d3455 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2811/129a9cbee3e4185bd081ca4982b04d8bc84d3455/debugui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2121, 67, 1745, 12, 2890, 16, 1014, 4672, 5011, 13164, 273, 22718, 18, 812, 17324, 3616, 2668, 3391, 279, 1387, 6134, 5011, 13164, 18, 542, 67, 3729, 67, 3700, 12, 5510, 13, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 2121, 67, 1745, 12, 2890, 16, 1014, 4672, 5011, 13164, 273, 22718, 18, 812, 17324, 3616, 2668, 3391, 279, 1387, 6134, 5011, 13164, 18, 542, 67, 3729, 67, 3700, 12, 5510, 13, 2...
self.hit_time = time.strftime('%d/%b/%I:%H:%M:%S %z')
self.hit_time = time.strftime('%d/%b/%Y:%H:%M:%S %z')
def __init__(self, *args, **kwargs): self.get_transaction_hook = get_transaction self.hitlogger = logging.getLogger('access') self.hit_time = time.strftime('%d/%b/%I:%H:%M:%S %z') http.Request.__init__(self, *args, **kwargs)
342fe6b29508bd3f1276050fac05d2c8053798de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/342fe6b29508bd3f1276050fac05d2c8053798de/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 4672, 365, 18, 588, 67, 7958, 67, 4476, 273, 336, 67, 7958, 365, 18, 15989, 4901, 273, 2907, 18, 588, 3328, 2668, 3860, 6134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 380, 1968, 16, 2826, 4333, 4672, 365, 18, 588, 67, 7958, 67, 4476, 273, 336, 67, 7958, 365, 18, 15989, 4901, 273, 2907, 18, 588, 3328, 2668, 3860, 6134, ...
if opts.enable_output is True:
if opts.enable_output:
def write_html_output(opts, args, fnameList, tagLists, \ doThumb=True, cbcweb = False, mapList = [],\ comment=None, CoincSummTable=None ): """ @param opts: The options from the calling code @param args: The args from the calling code @param fnameList: A list of the filenames @param tagLists: A list for the tags, gettin...
f08d6d5573aa333bf04ec6dd7a5ccb36f7944b2f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/f08d6d5573aa333bf04ec6dd7a5ccb36f7944b2f/InspiralUtils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 2620, 67, 2844, 12, 4952, 16, 833, 16, 5299, 682, 16, 1047, 7432, 16, 521, 741, 18922, 33, 5510, 16, 2875, 71, 4875, 273, 1083, 16, 852, 682, 273, 5378, 17211, 2879, 33, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 2620, 67, 2844, 12, 4952, 16, 833, 16, 5299, 682, 16, 1047, 7432, 16, 521, 741, 18922, 33, 5510, 16, 2875, 71, 4875, 273, 1083, 16, 852, 682, 273, 5378, 17211, 2879, 33, 70...
cell_input_resize(cell);
def javascript(): s = async_lib() s+= r"""
c0dfc8e72af993664b0551337631ebffd95ae52a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c0dfc8e72af993664b0551337631ebffd95ae52a/js.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11341, 13332, 272, 273, 4326, 67, 2941, 1435, 272, 15, 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, ...
[ 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, 11341, 13332, 272, 273, 4326, 67, 2941, 1435, 272, 15, 33, 436, 8395, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Collection area of units: acre are barn hectare rood section square_chain square_meter township
Collection of units of area: acre are barn hectare rood section square_chain square_meter township
def __getattr__(self, name): """ Return the unit with the given name.
afa182b98d85f0d6cf77cba8b29bc55e8d9d841a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/afa182b98d85f0d6cf77cba8b29bc55e8d9d841a/units.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 1747, 972, 12, 2890, 16, 508, 4672, 3536, 2000, 326, 2836, 598, 326, 864, 508, 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, 1001, 588, 1747, 972, 12, 2890, 16, 508, 4672, 3536, 2000, 326, 2836, 598, 326, 864, 508, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
def __eq__(self):
def __eq__(self, other):
def __eq__(self): return (isinstance(other, ValueUID) and self._shortname == other._shortname and self._base == other._base)
bc6fdb1f7c2fbb84eaa1f05b7b62cee151e2b503 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/bc6fdb1f7c2fbb84eaa1f05b7b62cee151e2b503/uid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 1308, 4672, 327, 261, 291, 1336, 12, 3011, 16, 1445, 3060, 13, 471, 365, 6315, 28650, 422, 1308, 6315, 28650, 471, 365, 6315, 1969, 422, 1308, 6315, 1969,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 11253, 972, 12, 2890, 16, 1308, 4672, 327, 261, 291, 1336, 12, 3011, 16, 1445, 3060, 13, 471, 365, 6315, 28650, 422, 1308, 6315, 28650, 471, 365, 6315, 1969, 422, 1308, 6315, 1969,...
"""
For graphs without a boundary, circular planar is the same as planar:: sage: g = graphs.KrackhardtKiteGraph() sage: g.is_circular_planar() True """ boundary = self.get_boundary() if not boundary: return self.is_planar(on_embedding, kuratowski, set_embedding, set_pos)
def is_circular_planar(self, ordered=True, kuratowski=False, set_embedding=False, set_pos=False): """ A graph (with nonempty boundary) is circular planar if it has a planar embedding in which all boundary vertices can be drawn in order on a disc boundary, with all the interior vertices drawn inside the disc. Returns T...
836868c2d31c96e5f08cdfab71945dd066a12d47 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/836868c2d31c96e5f08cdfab71945dd066a12d47/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 11614, 9559, 67, 7088, 297, 12, 2890, 16, 5901, 33, 5510, 16, 417, 295, 270, 543, 7771, 77, 33, 8381, 16, 444, 67, 23744, 33, 8381, 16, 444, 67, 917, 33, 8381, 4672, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 11614, 9559, 67, 7088, 297, 12, 2890, 16, 5901, 33, 5510, 16, 417, 295, 270, 543, 7771, 77, 33, 8381, 16, 444, 67, 23744, 33, 8381, 16, 444, 67, 917, 33, 8381, 4672, 225, ...
function_signature = FUNCTION + function_name("name") + LPARN + Optional( function_arguments("args") ) + RPARN + Optional( type("type"), "void" )
function_signature = FUNCTION + function_name("name") + LPARN + Optional( function_arguments("args") ) + RPARN + Optional( type, "void" )("type")
def getMetaData(s,l,t): meta = ASMetaTag(t.name) for att in t.attributes: if att.key == "": meta.addParam(att.value) else: meta.addParam(att.value,att.key) return meta
ababd9dd17799852f307bb8364775121dd501d1c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/886/ababd9dd17799852f307bb8364775121dd501d1c/asGrammar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23028, 12, 87, 16, 80, 16, 88, 4672, 2191, 273, 5355, 2781, 1805, 12, 88, 18, 529, 13, 225, 364, 2403, 316, 268, 18, 4350, 30, 309, 2403, 18, 856, 422, 1408, 30, 2191, 18, 1289, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23028, 12, 87, 16, 80, 16, 88, 4672, 2191, 273, 5355, 2781, 1805, 12, 88, 18, 529, 13, 225, 364, 2403, 316, 268, 18, 4350, 30, 309, 2403, 18, 856, 422, 1408, 30, 2191, 18, 1289, 78...
self._scan_line('AC', uhandle, consumer.accession, exactly_one=1)
self._scan_line('AC', uhandle, consumer.accession, any_number=1)
def _scan_ac(self, uhandle, consumer): self._scan_line('AC', uhandle, consumer.accession, exactly_one=1)
97cab9650c77db8e14e2b14bc9d0c8eb9fc29a26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/97cab9650c77db8e14e2b14bc9d0c8eb9fc29a26/SProt.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 9871, 67, 1077, 12, 2890, 16, 582, 4110, 16, 4765, 4672, 565, 365, 6315, 9871, 67, 1369, 2668, 2226, 2187, 582, 4110, 16, 4765, 18, 3860, 285, 16, 1281, 67, 2696, 33, 21, 13, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 9871, 67, 1077, 12, 2890, 16, 582, 4110, 16, 4765, 4672, 565, 365, 6315, 9871, 67, 1369, 2668, 2226, 2187, 582, 4110, 16, 4765, 18, 3860, 285, 16, 1281, 67, 2696, 33, 21, 13, 22...
def __init__(self, fhandle=None, wrapwidth=78):
def __init__(self, fpath=None, wrapwidth=78):
def __init__(self, fhandle=None, wrapwidth=78): """ MOFile constructor. See _BaseFile.__construct. """ _BaseFile.__init__(self, fhandle, wrapwidth) self.magic_number = None self.version = 0
418b31415acbfe149b6979cf1e06619eed712454 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9209/418b31415acbfe149b6979cf1e06619eed712454/polib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 13543, 33, 7036, 16, 2193, 2819, 33, 8285, 4672, 3536, 16070, 812, 3885, 18, 2164, 389, 2171, 812, 16186, 10062, 18, 3536, 389, 2171, 812, 16186, 2738, 972...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13543, 33, 7036, 16, 2193, 2819, 33, 8285, 4672, 3536, 16070, 812, 3885, 18, 2164, 389, 2171, 812, 16186, 10062, 18, 3536, 389, 2171, 812, 16186, 2738, 972...
if not se_utils.se_rm(os.path.join(pathSE, name_dest)):
procRM = se_utils.se_rm(os.path.join(pathSE, name_dest)) if procRM.wait() != 0:
def incInfo(x): infos[x] = infos.get(x, 0) + 1
e76b3aedba65f87878b88516a5b506e24c9559f3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8443/e76b3aedba65f87878b88516a5b506e24c9559f3/downloadFromSE.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7290, 966, 12, 92, 4672, 10626, 63, 92, 65, 273, 10626, 18, 588, 12, 92, 16, 374, 13, 397, 404, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7290, 966, 12, 92, 4672, 10626, 63, 92, 65, 273, 10626, 18, 588, 12, 92, 16, 374, 13, 397, 404, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
else: if object: page = html.page(describe(object), html.document(object, object.__name__)) file = open(key + '.html', 'w') file.write(page) file.close() print 'wrote', key + '.html' else: print 'no Python documentation found for %s' % repr(key)
def writedoc(key, forceload=0): """Write HTML documentation to a file in the current directory.""" try: object = locate(key, forceload) except ErrorDuringImport, value: print value else: if object: page = html.page(describe(object), html.document(object, object.__name__)) file = open(key + '.html', 'w') file.write(page...
cde41bcc25c9cb64e7aa3b9b560c2d73c44c5044 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/cde41bcc25c9cb64e7aa3b9b560c2d73c44c5044/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 329, 504, 12, 856, 16, 364, 2183, 6189, 33, 20, 4672, 3536, 3067, 3982, 7323, 358, 279, 585, 316, 326, 783, 1867, 12123, 775, 30, 733, 273, 10627, 12, 856, 16, 364, 2183, 6189, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 329, 504, 12, 856, 16, 364, 2183, 6189, 33, 20, 4672, 3536, 3067, 3982, 7323, 358, 279, 585, 316, 326, 783, 1867, 12123, 775, 30, 733, 273, 10627, 12, 856, 16, 364, 2183, 6189, ...
if self.prefixSignatureRegEx.match(aSignature):
if self.irrelevantSignatureRegEx.match(aSignature):
def generateSignatureFromList(self, signatureList): newSignatureList = [] prefixFound = False for aSignature in signatureList: if self.prefixSignatureRegEx.match(aSignature): if prefixFound: newSignatureList.append(aSignature) continue newSignatureList.append(aSignature) if not self.prefixSignatureRegEx.match(aSignatur...
b9411c3235aa647ade30b9e207070461a6dc2cda /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12383/b9411c3235aa647ade30b9e207070461a6dc2cda/processor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 5374, 1265, 682, 12, 2890, 16, 3372, 682, 4672, 394, 5374, 682, 273, 5378, 1633, 2043, 273, 1083, 364, 279, 5374, 316, 3372, 682, 30, 309, 365, 18, 481, 27719, 5374, 1617, 424, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 5374, 1265, 682, 12, 2890, 16, 3372, 682, 4672, 394, 5374, 682, 273, 5378, 1633, 2043, 273, 1083, 364, 279, 5374, 316, 3372, 682, 30, 309, 365, 18, 481, 27719, 5374, 1617, 424, 1...
ext = '.php'
filename = 'index.php'
def buildWWW(): global DSTROOT ; DSTROOT = os.path.join( DSTROOT, 'www' ) # Hack to get around dependency problems for lang in LANGUAGES: if lang == 'en': ext = '.php' else: ext = '.' + lang + '.php' remove( os.path.join( DSTROOT, 'index' + ext ) ) makeNews() makeTemplates() for lang in LANGUAGES: TEMPLATE_DATA[lang...
079d3d39b2931e8d3dd32ec74da8d7df7939e999 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4747/079d3d39b2931e8d3dd32ec74da8d7df7939e999/buildit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 19989, 59, 13332, 2552, 463, 882, 9185, 274, 463, 882, 9185, 273, 1140, 18, 803, 18, 5701, 12, 463, 882, 9185, 16, 296, 5591, 11, 262, 225, 468, 670, 484, 358, 336, 6740, 4904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 19989, 59, 13332, 2552, 463, 882, 9185, 274, 463, 882, 9185, 273, 1140, 18, 803, 18, 5701, 12, 463, 882, 9185, 16, 296, 5591, 11, 262, 225, 468, 670, 484, 358, 336, 6740, 4904, ...
n_in=32*4*4, n_out=500)
n_in=50*4*4, n_out=500)
def evaluate_lenet5(learning_rate=0.0001, n_iter=1000, dataset='mnist.pkl.gz'): print 'learning_rate = ', learning_rate rng = numpy.random.RandomState(23455) train_batches, valid_batches, test_batches = load_dataset(dataset) ishape = (28,28) # this is the size of MNIST images batch_size = 20 # sized of the min...
865ed2ce1ebc93572eeaf6cd553710102fe1bfc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/242/865ed2ce1ebc93572eeaf6cd553710102fe1bfc8/convolutional_mlp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5956, 67, 1897, 278, 25, 12, 21455, 67, 5141, 33, 20, 18, 13304, 16, 290, 67, 2165, 33, 18088, 16, 3709, 2218, 13607, 376, 18, 5465, 80, 18, 9764, 11, 4672, 1172, 296, 21455, 67, 514...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5956, 67, 1897, 278, 25, 12, 21455, 67, 5141, 33, 20, 18, 13304, 16, 290, 67, 2165, 33, 18088, 16, 3709, 2218, 13607, 376, 18, 5465, 80, 18, 9764, 11, 4672, 1172, 296, 21455, 67, 514...
rtype = dom_to_html(rval.type(), container) else: rtype = '&nbsp;'
rtype = ('\n<font size="-1">'+ self._dom_to_html(rval.type(), container, 8)+ "</font>") else: rtype = '&nbsp;'
def _func_summary(self, functions, sort_order, heading='Function Summary'): """ @return: The HTML code for a function summary table. This is used by L{_module_to_html} to list the functions in a module; and by L{_class_to_html} to list member functions. @rtype: C{string} """ functions = self._sort(functions, sort_orde...
62ff4e473663c51d0a945a451e36120f11d9450a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/62ff4e473663c51d0a945a451e36120f11d9450a/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 7687, 12, 2890, 16, 4186, 16, 1524, 67, 1019, 16, 11053, 2218, 2083, 17967, 11, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 445, 4916, 1014, 18, 225, 1220, 353,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 7687, 12, 2890, 16, 4186, 16, 1524, 67, 1019, 16, 11053, 2218, 2083, 17967, 11, 4672, 3536, 632, 2463, 30, 1021, 3982, 981, 364, 279, 445, 4916, 1014, 18, 225, 1220, 353,...
vis = self.group_visibility(self.groupInfo.groupObj)
vis = self.group_visibility()
def set_group_private(self): self.set_group_visibility(self.everyone) self.set_messages_visibility(self.group) self.set_files_visibility(self.group) self.set_joinability_request()
183b14521a461530e2fc41cea5fee0a00c232720 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6272/183b14521a461530e2fc41cea5fee0a00c232720/changebasicprivacy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 1655, 67, 1152, 12, 2890, 4672, 365, 18, 542, 67, 1655, 67, 14422, 12, 2890, 18, 20434, 476, 13, 365, 18, 542, 67, 6833, 67, 14422, 12, 2890, 18, 1655, 13, 365, 18, 542, 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, 444, 67, 1655, 67, 1152, 12, 2890, 4672, 365, 18, 542, 67, 1655, 67, 14422, 12, 2890, 18, 20434, 476, 13, 365, 18, 542, 67, 6833, 67, 14422, 12, 2890, 18, 1655, 13, 365, 18, 542, 6...
assert(version == 0)
if version == 0: version += 1 if version == 1: data['thumbURL'] = "resource:images/feedicon.png" version += 1 assert(version == 2)
def __setstate__(self,state): (version, data) = state assert(version == 0) data['updating'] = False
c9109f8e984f28385edfa8cd144687c5d82b83fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/c9109f8e984f28385edfa8cd144687c5d82b83fa/feed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 2019, 972, 12, 2890, 16, 2019, 4672, 261, 1589, 16, 501, 13, 273, 919, 309, 1177, 422, 374, 30, 1177, 1011, 404, 309, 1177, 422, 404, 30, 501, 3292, 21639, 1785, 3546, 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, 1001, 542, 2019, 972, 12, 2890, 16, 2019, 4672, 261, 1589, 16, 501, 13, 273, 919, 309, 1177, 422, 374, 30, 1177, 1011, 404, 309, 1177, 422, 404, 30, 501, 3292, 21639, 1785, 3546, 273, ...
"""
"""
def flimage_warp(pImage, p2, p3, p4, p5): """ flimage_warp(pImage, p2, p3, p4, p5) -> num. """ retval = _flimage_warp(pImage, p2, p3, p4, p5) return retval
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 2730, 67, 905, 84, 12, 84, 2040, 16, 293, 22, 16, 293, 23, 16, 293, 24, 16, 293, 25, 4672, 3536, 1183, 2730, 67, 905, 84, 12, 84, 2040, 16, 293, 22, 16, 293, 23, 16, 293, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2730, 67, 905, 84, 12, 84, 2040, 16, 293, 22, 16, 293, 23, 16, 293, 24, 16, 293, 25, 4672, 3536, 1183, 2730, 67, 905, 84, 12, 84, 2040, 16, 293, 22, 16, 293, 23, 16, 293, ...
"""Draw a colorful collection of lines and circles. """ p = QPainter()
p = self.painter
def paintEvent(self, e): """Draw a colorful collection of lines and circles. """ p = QPainter() w, h = self.width, self.height w3, h3 = w / 3, h / 3 radius = 10 p.begin(self.frame1) p.eraseRect(0, 0, w, h) p.setPen(QPen(Qt.black)) p.setBrush(QBrush(Qt.blue)) i = 0 for x, y in self.comp.positions(): if x**2 + y**2 > 5.0...
a345b3a7256c53c6d1e33b9e6f4af9771ffc75e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/a345b3a7256c53c6d1e33b9e6f4af9771ffc75e7/jello.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12574, 1133, 12, 2890, 16, 425, 4672, 293, 273, 365, 18, 84, 11606, 341, 16, 366, 273, 365, 18, 2819, 16, 365, 18, 4210, 341, 23, 16, 366, 23, 273, 341, 342, 890, 16, 366, 342, 890...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12574, 1133, 12, 2890, 16, 425, 4672, 293, 273, 365, 18, 84, 11606, 341, 16, 366, 273, 365, 18, 2819, 16, 365, 18, 4210, 341, 23, 16, 366, 23, 273, 341, 342, 890, 16, 366, 342, 890...
def render_changes(self, context, data): item = context.tag.patternGenerator('item') tag = context.tag
self.url = url @page.renderer def changes(self, request, tag): item = tag.patternGenerator('item')
def __init__(self, root): self.root = root
eeb67df63d05845b53ad47cd1ff7658325b074cc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5471/eeb67df63d05845b53ad47cd1ff7658325b074cc/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1365, 4672, 365, 18, 3085, 273, 1365, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1365, 4672, 365, 18, 3085, 273, 1365, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
exception, = done if exception: raise exception
if self.done is not True: raise self.done
def set_done(exception): done.append(exception) g.mainquit()
b218cd7f78db7dee5b1ca89ce667fb4a33a2c7ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4591/b218cd7f78db7dee5b1ca89ce667fb4a33a2c7ae/processes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8734, 12, 4064, 4672, 2731, 18, 6923, 12, 4064, 13, 314, 18, 5254, 27176, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8734, 12, 4064, 4672, 2731, 18, 6923, 12, 4064, 13, 314, 18, 5254, 27176, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
elemTable = PeriodicTable.getAllElements()
elementTable = PeriodicTable.getAllElements()
def write_art_file(filename): """ Writes the Atom Rendering Table (ART) file, which contains all the atom rendering properties needed by QuteMol. Each atom is on a separate line. Lines starting with '#' are comment lines. <filename> - ART filename """ assert type(filename) == type(" ") from elements import PeriodicTab...
56125dae90531c2c58d7b319f6586881b702b552 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/56125dae90531c2c58d7b319f6586881b702b552/qutemol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 485, 67, 768, 12, 3459, 4672, 3536, 30053, 326, 7149, 18018, 3555, 261, 4928, 13, 585, 16, 1492, 1914, 777, 326, 3179, 9782, 1790, 3577, 635, 2238, 624, 49, 355, 18, 8315, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 485, 67, 768, 12, 3459, 4672, 3536, 30053, 326, 7149, 18018, 3555, 261, 4928, 13, 585, 16, 1492, 1914, 777, 326, 3179, 9782, 1790, 3577, 635, 2238, 624, 49, 355, 18, 8315, 31...
exp = line.category_id.base
base = line.category_id.base value = line.amount
def compute_sheet(self, cr, uid, ids, context={}): emp_pool = self.pool.get('hr.employee') slip_pool = self.pool.get('hr.payslip') func_pool = self.pool.get('hr.employee.grade') slip_line_pool = self.pool.get('hr.payslip.line') holiday_pool = self.pool.get('hr.holidays') vals = self.read(cr, uid, ids)[0] emp_ids = ids...
be8d1f3f08714c0f37c3c42fbc3beeb2f650951d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/be8d1f3f08714c0f37c3c42fbc3beeb2f650951d/hr_payroll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 8118, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 801, 84, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, 351, 2817, 1340, 6134, 272, 3169, 67, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 8118, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 801, 84, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 7256, 18, 351, 2817, 1340, 6134, 272, 3169, 67, 60...
pass
del self._current_context[-1]
def endPrefixMapping(self, prefix): pass
d2e8ed58c83ecc5390d6cf99651b791350b04e61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d2e8ed58c83ecc5390d6cf99651b791350b04e61/saxutils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 679, 2244, 3233, 12, 2890, 16, 1633, 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, ...
[ 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, 679, 2244, 3233, 12, 2890, 16, 1633, 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...
Return ``True`` if ``I`` and ``J`` are equivalaent as right ideals.
Return ``True`` if ``I`` and ``J`` are equivalent as right ideals.
def is_equivalent(I, J, B=10): """ Return ``True`` if ``I`` and ``J`` are equivalaent as right ideals.
aa7c8c5c25a8f62637a37f480aa5f24e29d7fbee /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/aa7c8c5c25a8f62637a37f480aa5f24e29d7fbee/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 14298, 6505, 12, 45, 16, 804, 16, 605, 33, 2163, 4672, 3536, 2000, 12176, 5510, 10335, 309, 12176, 45, 10335, 471, 12176, 46, 10335, 854, 1298, 5162, 69, 319, 487, 2145, 10572, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 67, 14298, 6505, 12, 45, 16, 804, 16, 605, 33, 2163, 4672, 3536, 2000, 12176, 5510, 10335, 309, 12176, 45, 10335, 471, 12176, 46, 10335, 854, 1298, 5162, 69, 319, 487, 2145, 10572, ...
new_rps = [] for total_len in range(common_prefix_len+1, len(index)): new_rps.append(self.root_rp.new_index(index[:total_len])) new_rps.append(rp) return new_rps
for total_len in range(common_prefix_len+1, len(index)+1): yield self.root_rp.new_index(index[:total_len])
def get_new_rp_list(self, rp, old_index, index): """Return list of new rp's between old_index and index""" for i in range(len(index)-1, -1, -1): if old_index[:i] == index[:i]: common_prefix_len = i break else: assert 0
df3aca5b1781434ded9f0e6cebbecef42b5db01f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8033/df3aca5b1781434ded9f0e6cebbecef42b5db01f/restore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2704, 67, 13832, 67, 1098, 12, 2890, 16, 8715, 16, 1592, 67, 1615, 16, 770, 4672, 3536, 990, 666, 434, 394, 8715, 1807, 3086, 1592, 67, 1615, 471, 770, 8395, 364, 277, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 2704, 67, 13832, 67, 1098, 12, 2890, 16, 8715, 16, 1592, 67, 1615, 16, 770, 4672, 3536, 990, 666, 434, 394, 8715, 1807, 3086, 1592, 67, 1615, 471, 770, 8395, 364, 277, 316, ...
error, desc = commands.getstatusoutput("xsltproc xep.xsl xep-" + nr + ".xml > " + XEPPATH + "/xep-" + nr + ".html") if not checkError(error, desc): return False error, desc = commands.getstatusoutput("xsltproc ref.xsl xep-" + nr + ".xml > " + XEPPATH + "/refs/reference.XSF.XEP-" + nr + ".xml") if not checkError(error,...
error, desc = executeCommand("xsltproc xep.xsl xep-" + nr + ".xml > " + XEPPATH + "/xep-" + nr + ".html") if not checkError(error, desc): return False error, desc = executeCommand("xsltproc ref.xsl xep-" + nr + ".xml > " + XEPPATH + "/refs/reference.XSF.XEP-" + nr + ".xml") if not checkError(error, desc): return False...
def buildXHTML( file ): nr = re.match("xep-(\d\d\d\d).xml", file).group(1) error, desc = commands.getstatusoutput("xsltproc xep.xsl xep-" + nr + ".xml > " + XEPPATH + "/xep-" + nr + ".html") if not checkError(error, desc): return False error, desc = commands.getstatusoutput("xsltproc ref.xsl xep-" + nr + ".xml > " + X...
c48521c5c739ae238f0623f2a23e1f09ad509054 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3519/c48521c5c739ae238f0623f2a23e1f09ad509054/gen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 60, 4870, 12, 585, 262, 30, 9884, 273, 283, 18, 1916, 2932, 92, 881, 17, 4713, 72, 64, 72, 64, 72, 64, 72, 2934, 2902, 3113, 585, 2934, 1655, 12, 21, 13, 555, 16, 3044, 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, 1361, 60, 4870, 12, 585, 262, 30, 9884, 273, 283, 18, 1916, 2932, 92, 881, 17, 4713, 72, 64, 72, 64, 72, 64, 72, 2934, 2902, 3113, 585, 2934, 1655, 12, 21, 13, 555, 16, 3044, 273, ...
ref=marks_cache.get(str(rev),None)
ref=get_parent_mark(rev,marks_cache)
def export_tags(ui,repo,marks_cache,start,end,count,authors): l=repo.tagslist() for tag,node in l: # ignore latest revision if tag=='tip': continue rev=repo.changelog.rev(node) # ignore those tags not in our import range if rev<start or rev>=end: continue ref=marks_cache.get(str(rev),None) if ref==None: sys.stderr.wri...
af2237607c130c1a1744e7efd0ab1876b257bcbd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12824/af2237607c130c1a1744e7efd0ab1876b257bcbd/hg2git.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3359, 67, 4156, 12, 4881, 16, 7422, 16, 17439, 67, 2493, 16, 1937, 16, 409, 16, 1883, 16, 19368, 4672, 328, 33, 7422, 18, 4156, 1098, 1435, 364, 1047, 16, 2159, 316, 328, 30, 468, 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, 3359, 67, 4156, 12, 4881, 16, 7422, 16, 17439, 67, 2493, 16, 1937, 16, 409, 16, 1883, 16, 19368, 4672, 328, 33, 7422, 18, 4156, 1098, 1435, 364, 1047, 16, 2159, 316, 328, 30, 468, 23...
raise Client.MemcachedStringEncodingError, ("Keys must be str()'s, not "
raise Client.MemcachedStringEncodingError("Keys must be str()'s, not "
def check_key(key, key_extra_len=0): """Checks sanity of key. Fails if: Key length is > SERVER_MAX_KEY_LENGTH (Raises MemcachedKeyLength). Contains control characters (Raises MemcachedKeyCharacterError). Is not a string (Raises MemcachedStringEncodingError) Is an unicode string (Raises MemcachedStringEncodingError) I...
aa973f034fdfe4801db987afda8191177edefc04 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11935/aa973f034fdfe4801db987afda8191177edefc04/memcache.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 856, 12, 856, 16, 498, 67, 7763, 67, 1897, 33, 20, 4672, 3536, 4081, 16267, 434, 498, 18, 225, 8911, 87, 309, 30, 1929, 769, 353, 405, 15061, 67, 6694, 67, 3297, 67, 7096, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 856, 12, 856, 16, 498, 67, 7763, 67, 1897, 33, 20, 4672, 3536, 4081, 16267, 434, 498, 18, 225, 8911, 87, 309, 30, 1929, 769, 353, 405, 15061, 67, 6694, 67, 3297, 67, 7096, ...
val = os.environ['LD_PRELOAD'] pos = string.find(val, 'libgdkxft.so') if pos >= 0: os.environ['LD_PRELOAD'] = val[:pos] + val[pos+12:]
valarr = string.split(os.environ['LD_PRELOAD'], ' ') for x in valarr[:]: if string.find(x, 'libgdkxft.so') >= 0: valarr.remove(x) os.environ['LD_PRELOAD'] = string.join(valarr, ' ')
def addpath(envvar, path): try: envval = os.environ[envvar] if string.find(envval, path) < 0: envval = path + ':' + envval except KeyError: envval = path os.environ[envvar] = envval
0567ee9ac11902c22c9d8f113d6f5ba14c6e1ff0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4596/0567ee9ac11902c22c9d8f113d6f5ba14c6e1ff0/jhbuild.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 803, 12, 3074, 1401, 16, 589, 4672, 775, 30, 1550, 1125, 273, 1140, 18, 28684, 63, 3074, 1401, 65, 309, 533, 18, 4720, 12, 3074, 1125, 16, 589, 13, 411, 374, 30, 1550, 1125, 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, 527, 803, 12, 3074, 1401, 16, 589, 4672, 775, 30, 1550, 1125, 273, 1140, 18, 28684, 63, 3074, 1401, 65, 309, 533, 18, 4720, 12, 3074, 1125, 16, 589, 13, 411, 374, 30, 1550, 1125, 273...
assert(not ps.getLeaf("Gd10").allCertain())
assert(ps.getLeaf("Gd10").allCertain())
def testPredictSplits8(self): print "\ntest 8 begins" ps = PredictSplits("Gd", "Gd03", ['Titan', 'Angel', 'Gargoyle', 'Gargoyle', 'Centaur', 'Centaur', 'Ogre', 'Ogre'])
a1e7652b31db9e2944ecac12c1206a83ec9b73fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3755/a1e7652b31db9e2944ecac12c1206a83ec9b73fd/test_predictsplits.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 21362, 16582, 28, 12, 2890, 4672, 1172, 1548, 496, 395, 1725, 17874, 6, 4250, 273, 19166, 933, 16582, 2932, 43, 72, 3113, 315, 43, 72, 4630, 3113, 10228, 56, 305, 304, 2187, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 21362, 16582, 28, 12, 2890, 4672, 1172, 1548, 496, 395, 1725, 17874, 6, 4250, 273, 19166, 933, 16582, 2932, 43, 72, 3113, 315, 43, 72, 4630, 3113, 10228, 56, 305, 304, 2187, 296, ...
if persist:
if self.persist:
def do_command(self, command): if not command.endswith("\n"): command += "\n" try: self.socket.send("COMMAND " + command + "\n") except IOError, e: self.socket = None if persist: del persistent_connections[self.socketurl] raise MKLivestatusSocketError(str(e))
ef4d2027324daae38711a51cb3673f015a0e6cd7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5589/ef4d2027324daae38711a51cb3673f015a0e6cd7/livestatus.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 3076, 12, 2890, 16, 1296, 4672, 309, 486, 1296, 18, 5839, 1918, 31458, 82, 6, 4672, 1296, 1011, 1548, 82, 6, 775, 30, 365, 18, 7814, 18, 4661, 2932, 19104, 315, 397, 1296, 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, 741, 67, 3076, 12, 2890, 16, 1296, 4672, 309, 486, 1296, 18, 5839, 1918, 31458, 82, 6, 4672, 1296, 1011, 1548, 82, 6, 775, 30, 365, 18, 7814, 18, 4661, 2932, 19104, 315, 397, 1296, 3...
"Exception in thread " + self.get_name() +
"Exception in thread " + self.name +
def __bootstrap_inner(self): try: self.__ident = _get_ident() self.__started.set() _active_limbo_lock.acquire() _active[self.__ident] = self del _limbo[self] _active_limbo_lock.release() if __debug__: self._note("%s.__bootstrap(): thread started", self)
ff1261e48676828c9cdaff688866a7fdd0ce2716 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/ff1261e48676828c9cdaff688866a7fdd0ce2716/threading.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12722, 67, 7872, 12, 2890, 4672, 775, 30, 365, 16186, 6392, 273, 389, 588, 67, 6392, 1435, 365, 16186, 14561, 18, 542, 1435, 389, 3535, 67, 7091, 1075, 67, 739, 18, 1077, 1039, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12722, 67, 7872, 12, 2890, 4672, 775, 30, 365, 16186, 6392, 273, 389, 588, 67, 6392, 1435, 365, 16186, 14561, 18, 542, 1435, 389, 3535, 67, 7091, 1075, 67, 739, 18, 1077, 1039, 1...
def topic(self, channel, topic):
def topic(self, channel, topic=None): """Attempt to set the topic of the given channel, or ask what it is. If topic is None, then I sent a topic query instead of trying to set the topic. The server should respond with a TOPIC message containing the current topic of the given channel. """
def topic(self, channel, topic): # << TOPIC #xtestx :fff if channel[0] not in '&#!+': channel = '#' + channel self.sendLine("TOPIC %s :%s" % (channel, topic))
494b9d5f056c28f6e92951c0c9e52f9889d54b93 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/494b9d5f056c28f6e92951c0c9e52f9889d54b93/irc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3958, 12, 2890, 16, 1904, 16, 3958, 33, 7036, 4672, 3536, 7744, 358, 444, 326, 3958, 434, 326, 864, 1904, 16, 578, 6827, 4121, 518, 353, 18, 225, 971, 3958, 353, 599, 16, 1508, 467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3958, 12, 2890, 16, 1904, 16, 3958, 33, 7036, 4672, 3536, 7744, 358, 444, 326, 3958, 434, 326, 864, 1904, 16, 578, 6827, 4121, 518, 353, 18, 225, 971, 3958, 353, 599, 16, 1508, 467, ...