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
self._parser.parse(filename)
self._parser.parse(handler)
def parse(self, handler): """Parses the XML data
c4626aa11d0225fe36ff83675a0400ed8226078c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/c4626aa11d0225fe36ff83675a0400ed8226078c/NCBIXML.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 12, 2890, 16, 1838, 4672, 3536, 6656, 326, 3167, 501, 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, 1109, 12, 2890, 16, 1838, 4672, 3536, 6656, 326, 3167, 501, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
setups.pop(item).finish()
setups.pop(item).throw(threado.Finished())
def run(self): setups = dict() while True: updated, discarded = yield self.inner
cd597199d3636d4f8f1256edb6066fffda48b41b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14361/cd597199d3636d4f8f1256edb6066fffda48b41b/config.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3875, 87, 273, 2065, 1435, 1323, 1053, 30, 3526, 16, 20076, 273, 2824, 365, 18, 7872, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3875, 87, 273, 2065, 1435, 1323, 1053, 30, 3526, 16, 20076, 273, 2824, 365, 18, 7872, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
_rec_name = 'name' _columns = { 'name': fields.char('Object', size=64), 'model': fields.char('Object Name', size=64), }
def instanciate(self, cr, user, model, context={}): class x_custom_model(osv.osv): pass x_custom_model._name = model x_custom_model._module = False x_custom_model.createInstance(self.pool, '', cr) x_custom_model._rec_name = 'x_name'
4e13d9b40a74b0e21a0a6afdcafb30e8cf5b5a93 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/4e13d9b40a74b0e21a0a6afdcafb30e8cf5b5a93/ir_model.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 316, 27866, 3840, 12, 2890, 16, 4422, 16, 729, 16, 938, 16, 819, 12938, 4672, 667, 619, 67, 3662, 67, 2284, 12, 538, 90, 18, 538, 90, 4672, 1342, 619, 67, 3662, 67, 2284, 6315, 529, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 316, 27866, 3840, 12, 2890, 16, 4422, 16, 729, 16, 938, 16, 819, 12938, 4672, 667, 619, 67, 3662, 67, 2284, 12, 538, 90, 18, 538, 90, 4672, 1342, 619, 67, 3662, 67, 2284, 6315, 529, ...
class ReportToExch(quickfix.BoolField): def __init__(self, data = None): if data == None: quickfix.BoolField.__init__(self, 113) else: quickfix.BoolField.__init__(self, 113, data) class LocateReqd(quickfix.BoolField): def __init__(self, data = None): if data == None: quickfix.BoolField.__init__(self, 114) else: quickfix.BoolField.__init__(self, 114, data)
def __init__(self, data = None): if data == None: quickfix.StringField.__init__(self, 112) else: quickfix.StringField.__init__(self, 112, data)
b195a30ce1679e0269bc776f2f6e3591488def1f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/b195a30ce1679e0269bc776f2f6e3591488def1f/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 23543, 13, 469, 30, 9549, 904, 18, 780, 974, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 501, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 23543, 13, 469, 30, 9549, 904, 18, 780, 974, 1618...
info.varlist.add(self.typename, '*ret')
info.varlist.add(ptype[:-1], '*ret')
def write_return(self, ptype, ownsreturn, info): if ptype[-1] == '*': info.varlist.add(self.typename, '*ret') ret = 'ret' else: info.varlist.add(self.typename, 'ret') ret = '&ret' ownsreturn = 0 # of course it can't own a ref to a local var ... info.codeafter.append(self.ret_tmpl % { 'typecode': self.typecode, 'ret': ret, 'copy': ownsreturn and 'FALSE' or 'TRUE'})
d14595f0524e11bd5a3f4cc233adf44ac161cf03 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1020/d14595f0524e11bd5a3f4cc233adf44ac161cf03/argtypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 2463, 12, 2890, 16, 24203, 16, 29065, 2463, 16, 1123, 4672, 309, 24203, 18919, 21, 65, 422, 5306, 30, 1123, 18, 1401, 1098, 18, 1289, 12, 27672, 10531, 17, 21, 6487, 14609, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2463, 12, 2890, 16, 24203, 16, 29065, 2463, 16, 1123, 4672, 309, 24203, 18919, 21, 65, 422, 5306, 30, 1123, 18, 1401, 1098, 18, 1289, 12, 27672, 10531, 17, 21, 6487, 14609, 1...
_children['{%s}transparency' % gdata.GDATA_NAMESPACE] = ('transparency',
_children['{%s}transparency' % gdata.GDATA_NAMESPACE] = ('transparency',
def __init__(self, value='false', *args, **kwargs): atom.AtomBase.__init__(self, *args, **kwargs) self.value = value
6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 460, 2218, 5743, 2187, 380, 1968, 16, 2826, 4333, 4672, 3179, 18, 3641, 2171, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 13, 365, 18, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 460, 2218, 5743, 2187, 380, 1968, 16, 2826, 4333, 4672, 3179, 18, 3641, 2171, 16186, 2738, 972, 12, 2890, 16, 380, 1968, 16, 2826, 4333, 13, 365, 18, 113...
"""Runs a test by comparing results to those expected and only failing if something is wrong. """
"""Run a test by comparing results to those expected and only failing if something is wrong. Use _printTest to generate data for this test. """
def _assertTest(): """Runs a test by comparing results to those expected and only failing if something is wrong. """ testSet = ( ['::', '', 1, ['', '', '', '', ''], 0.0, 0.0, '0:00:00', ['0:00:00', '0:00:00.0', '0:00:00.00']], ['-::', '', 1, ['-', '', '', '', ''], -0.0, -0.0, '0:00:00', ['0:00:00', '0:00:00.0', '0:00:00.00']], ['-0:00:00.01', '', 1, ['-', '0', '00', '00', '.01'], -2.77777777778e-06, -0.01, '-0:00:00.01', ['-0:00:00', '-0:00:00.0', '-0:00:00.01']], [' +1', '', 1, ['+', '1', ''], 1.0, 1.0, '1', ['1:00:00', '1:00:00.0', '1:00:00.00']], ['-1.2345', '', 1, ['-', '1', '.2345'], -1.2345, -1.2345, '-1.2345', ['-1:14:04', '-1:14:04.2', '-1:14:04.20']], ['-123::', '', 1, ['-', '123', '', '', ''], -123.0, -442800.0, '-123:00:00', ['-123:00:00', '-123:00:00.0', '-123:00:00.00']], ['-123:4', '', 1, ['-', '123', '4', ''], -123.066666666667, -7384.0, '-123:04', ['-123:03:60', '-123:03:60.0', '-123:03:60.00']], ['-123:45', '', 1, ['-', '123', '45', ''], -123.75, -7425.0, '-123:45', ['-123:45:00', '-123:45:00.0', '-123:45:00.00']], ['-123:4.56789', '', 1, ['-', '123', '4', '.56789'], -123.0761315, -7384.56789, '-123:04.56789', ['-123:04:34', '-123:04:34.1', '-123:04:34.07']], ['-123:45.6789', '', 1, ['-', '123', '45', '.6789'], -123.761315, -7425.6789, '-123:45.6789', ['-123:45:41', '-123:45:40.7', '-123:45:40.73']], ['1:2:', '', 1, ['', '1', '2', '', ''], 1.0333333333, 3720.0, '1:02:00', ['1:02:00', '1:02:00.0', '1:02:00.00']], ['1:2:3', '', 1, ['', '1', '2', '3', ''], 1.03416666667, 3723.0, '1:02:03', ['1:02:03', '1:02:03.0', '1:02:03.00']], ['1:2:3.456789', '', 1, ['', '1', '2', '3', '.456789'], 1.0342935525, 3723.456789, '1:02:03.456789', ['1:02:03', '1:02:03.5', '1:02:03.46']], ['1:23:4', '', 1, ['', '1', '23', '4', ''], 1.3844444444, 4984.0, '1:23:04', ['1:23:04', '1:23:04.0', '1:23:04.00']], ['1:23:45', '', 1, ['', '1', '23', '45', ''], 1.3958333333, 5025.0, '1:23:45', ['1:23:45', '1:23:45.0', '1:23:45.00']], ['123:45:6.789', '', 1, ['', '123', '45', '6', '.789'], 123.7518858333, 445506.789, '123:45:06.789', ['123:45:07', '123:45:06.8', '123:45:06.79']], ['123:45:56.789', '', 1, ['', '123', '45', '56', '.789'], 123.765774722, 445556.789, '123:45:56.789', ['123:45:57', '123:45:56.8', '123:45:56.79']], ['-0::12.34', 'bug test; the sign must be retained', 1, ['-', '0', '', '12', '.34'], -0.00342777778, -12.34, '-0:00:12.34', ['-0:00:12', '-0:00:12.3', '-0:00:12.34']], ['-::12.34', 'a weird gray area, but it works', 1, ['-', '', '', '12', '.34'], -0.00342777778, -12.34, '-0:00:12.34', ['-0:00:12', '-0:00:12.3', '-0:00:12.34']], ['::12.34', '', 1, ['', '', '', '12', '.34'], 0.00342777778, 12.34, '0:00:12.34', ['0:00:12', '0:00:12.3', '0:00:12.34']], ['1:23.4567', '', 1, ['', '1', '23', '.4567'], 1.390945, 83.4567, '1:23.4567', ['1:23:27', '1:23:27.4', '1:23:27.40']], ['-1.234567', '', 1, ['-', '1', '.234567'], -1.234567, -1.234567, '-1.234567', ['-1:14:04', '-1:14:04.4', '-1:14:04.44']], ['-1:abadstr', 'invalid characters', 0, None, None, None, None, None], ['-1:2343:24', 'too many minutes digits', 0, None, None, None, None, None], ['1:-1:24', 'minus sign in wrong place', 0, None, None, None, None, None], ) def locAssert(fmt, res, func, *args, **kargs): assert fmt % (res,) == fmt % (func(*args, **kargs),), "%r != %r = %s(*%r, **%r)" % (res, func(*args, **kargs), func.__name__, args, kargs) nErrors = 0 for testStr, commentStr, isOK, splitStr, degVal, secVal, neatStr, dmsStr02 in testSet: try: locAssert("%r", splitStr, splitDMSStr, testStr) locAssert("%.8g", degVal, degFromDMSStr, testStr) locAssert("%.8g", secVal, secFromDMSStr, testStr) locAssert("%r", neatStr, neatenDMSStr, testStr) locAssert("%r", dmsStr02[0], dmsStrFromDeg, degVal, 3, 0) locAssert("%r", dmsStr02[1], dmsStrFromDeg, degVal, 3, 1) locAssert("%r", dmsStr02[2], dmsStrFromDeg, degVal, 3, 2) if not isOK: print "unexpected success on %r" % testStr nErrors += 1 except StandardError, e: if isOK: print "unexpected failure on %r\n\t%s\nskipping other tests on this value" % (testStr, e) nErrors += 1 if nErrors == 0: print "RO.StringUtil passed" else: print "RO.StringUtil failed with %d errors" % nErrors
a5c12743960cc44ddb0aa0f21361c8697521f18c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/a5c12743960cc44ddb0aa0f21361c8697521f18c/StringUtil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 11231, 4709, 13332, 3536, 1997, 279, 1842, 635, 17553, 1686, 358, 5348, 2665, 471, 1338, 21311, 309, 5943, 353, 7194, 18, 225, 2672, 389, 1188, 4709, 358, 2103, 501, 364, 333, 1842, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11231, 4709, 13332, 3536, 1997, 279, 1842, 635, 17553, 1686, 358, 5348, 2665, 471, 1338, 21311, 309, 5943, 353, 7194, 18, 225, 2672, 389, 1188, 4709, 358, 2103, 501, 364, 333, 1842, ...
NSApplication.sharedApplication().setDelegate_(self.app_controller)
miroapp = MiroApplication.sharedApplication() miroapp.setDelegate_(self.app_controller)
def run(self): logging.info("OSX version: %s %s %s", platform.system(), platform.release(), platform.machine()) try: import libtorrent logging.info("libtorrent: %s", libtorrent.version) except AttributeError: logging.info("libtorrent: unknown version") except ImportError: logging.exception("libtorrent won't load") try: import pycurl logging.info("pycurl: %s", pycurl.version) except ImportError: logging.exception("pycurl won't load") self.app_controller = AppController.alloc().initWithApp_(self) NSApplication.sharedApplication().setDelegate_(self.app_controller) NSApplicationMain(sys.argv)
6d6738c0116e537782c2cf221b58c1c956a7d798 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/6d6738c0116e537782c2cf221b58c1c956a7d798/application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2907, 18, 1376, 2932, 4618, 60, 1177, 30, 4202, 738, 87, 738, 87, 738, 87, 3113, 4072, 18, 4299, 9334, 4072, 18, 9340, 9334, 4072, 18, 9149, 10756, 775, 30, 1930,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2907, 18, 1376, 2932, 4618, 60, 1177, 30, 4202, 738, 87, 738, 87, 738, 87, 3113, 4072, 18, 4299, 9334, 4072, 18, 9340, 9334, 4072, 18, 9149, 10756, 775, 30, 1930,...
if self._eoln != '\n': import EasyDialogs ok = EasyDialogs.AskYesNoCancel('Warning: "%s" does not have Unix line-endings' % self.title, 1, yes='OK', no='') if not ok: return
def _run(self): if self.run_with_interpreter: if self.editgroup.editor.changed: import EasyDialogs import Qd; Qd.InitCursor() save = EasyDialogs.AskYesNoCancel('Save "%s" before running?' % self.title, 1) if save > 0: if self.domenu_save(): return elif save < 0: return if not self.path: raise W.AlertError, "Can't run unsaved file" self._run_with_interpreter() elif self.run_with_cl_interpreter: # Until universal newline support if self._eoln != '\n': import EasyDialogs ok = EasyDialogs.AskYesNoCancel('Warning: "%s" does not have Unix line-endings' % self.title, 1, yes='OK', no='') if not ok: return if self.editgroup.editor.changed: import EasyDialogs import Qd; Qd.InitCursor() save = EasyDialogs.AskYesNoCancel('Save "%s" before running?' % self.title, 1) if save > 0: if self.domenu_save(): return elif save < 0: return if not self.path: raise W.AlertError, "Can't run unsaved file" self._run_with_cl_interpreter() else: pytext = self.editgroup.editor.get() globals, file, modname = self.getenvironment() self.execstring(pytext, globals, globals, file, modname)
cc05327f1a884449e59676683450b01d0a266b10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/cc05327f1a884449e59676683450b01d0a266b10/PyEdit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 12, 2890, 4672, 309, 365, 18, 2681, 67, 1918, 67, 2761, 11599, 30, 309, 365, 18, 4619, 1655, 18, 9177, 18, 6703, 30, 1930, 29442, 11885, 14072, 1930, 2238, 72, 31, 2238, 72,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2681, 12, 2890, 4672, 309, 365, 18, 2681, 67, 1918, 67, 2761, 11599, 30, 309, 365, 18, 4619, 1655, 18, 9177, 18, 6703, 30, 1930, 29442, 11885, 14072, 1930, 2238, 72, 31, 2238, 72,...
self.tree.openElements.pop() self.parser.parseError()
self.parser.parseError(_(u"Unexpected implied end tag (" +\ self.tree.openElements[-1].name + u") in the table phase.")) self.tree.openElements.pop()
def clearStackToTableContext(self): # "clear the stack back to a table context" while self.tree.openElements[-1].name not in ("table", "html"): self.tree.openElements.pop() self.parser.parseError() # When the current node is <html> it's an innerHTML case
d714b17ea5dc88de01658fc32a1153e84dbce4ff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9368/d714b17ea5dc88de01658fc32a1153e84dbce4ff/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 2624, 774, 1388, 1042, 12, 2890, 4672, 468, 315, 8507, 326, 2110, 1473, 358, 279, 1014, 819, 6, 1323, 365, 18, 3413, 18, 3190, 3471, 18919, 21, 8009, 529, 486, 316, 7566, 2121, 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, 2424, 2624, 774, 1388, 1042, 12, 2890, 4672, 468, 315, 8507, 326, 2110, 1473, 358, 279, 1014, 819, 6, 1323, 365, 18, 3413, 18, 3190, 3471, 18919, 21, 8009, 529, 486, 316, 7566, 2121, 3...
url='http://localhost/?q=%s')
url=self._localhost_prefix + '?q=%s')
def testAddSearchEngine(self): """Test searching using keyword of user-added search engine.""" self.AddSearchEngine(title='foo', keyword='foo.com', url='http://localhost/?q=%s') self.SetOmniboxText('foo.com foobar') self.OmniboxAcceptInput() self.assertEqual('http://localhost/?q=foobar', self.GetActiveTabURL().spec())
86d1d325053e5dfbb521e381887f0ba2cc498628 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/86d1d325053e5dfbb521e381887f0ba2cc498628/search_engines.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 986, 2979, 4410, 12, 2890, 4672, 3536, 4709, 15300, 1450, 4932, 434, 729, 17, 9665, 1623, 4073, 12123, 365, 18, 986, 2979, 4410, 12, 2649, 2218, 11351, 2187, 4932, 2218, 11351, 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, 986, 2979, 4410, 12, 2890, 4672, 3536, 4709, 15300, 1450, 4932, 434, 729, 17, 9665, 1623, 4073, 12123, 365, 18, 986, 2979, 4410, 12, 2649, 2218, 11351, 2187, 4932, 2218, 11351, 18, ...
return unicode(data[:2:-1], 'unicode_internal')
return unicode(data[:2][::-1], 'unicode_internal')
def decode_character(data): return unicode(data[:2:-1], 'unicode_internal')
fae6e6dc979fae96ba77bb09c3f7bf4352f496d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/fae6e6dc979fae96ba77bb09c3f7bf4352f496d6/IO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2495, 67, 11560, 12, 892, 4672, 327, 5252, 12, 892, 10531, 22, 30, 17, 21, 6487, 296, 9124, 67, 7236, 6134, 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, 2495, 67, 11560, 12, 892, 4672, 327, 5252, 12, 892, 10531, 22, 30, 17, 21, 6487, 296, 9124, 67, 7236, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
def qexp(self, n):
def q_expansion(self, n):
def qexp(self, n): r""" The q-expansion of self at the cusp at infinity.
6c49e305a99a53b33668c57e4313507f70f7ee17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/6c49e305a99a53b33668c57e4313507f70f7ee17/etaproducts.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1043, 67, 2749, 12162, 12, 2890, 16, 290, 4672, 436, 8395, 1021, 1043, 17, 2749, 12162, 434, 365, 622, 326, 27964, 84, 622, 27272, 18, 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, 0, 0, 0, 0, 0, 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, 1043, 67, 2749, 12162, 12, 2890, 16, 290, 4672, 436, 8395, 1021, 1043, 17, 2749, 12162, 434, 365, 622, 326, 27964, 84, 622, 27272, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.cursor.execute(sql,(self.process_id, self.state_vec[(ver,val)], ifo,
self.cursor.execute(sql,(self.process_id, self.state_vec[ifo][(ver,val)], ifo,
def publish_state(self, ifo, start_time, start_time_ns, end_time, end_time_ns, ver, val ): """ Publish a state segment for a state vector in the database """
6bf02ddd12b5e9b19e0efa822323b45ba5187a07 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/6bf02ddd12b5e9b19e0efa822323b45ba5187a07/statedb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3808, 67, 2019, 12, 2890, 16, 21479, 16, 787, 67, 957, 16, 787, 67, 957, 67, 2387, 16, 679, 67, 957, 16, 679, 67, 957, 67, 2387, 16, 1924, 16, 1244, 262, 30, 3536, 9761, 279, 919, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3808, 67, 2019, 12, 2890, 16, 21479, 16, 787, 67, 957, 16, 787, 67, 957, 67, 2387, 16, 679, 67, 957, 16, 679, 67, 957, 67, 2387, 16, 1924, 16, 1244, 262, 30, 3536, 9761, 279, 919, ...
init = os.path.join(path, '__init__.py') initc = os.path.join(path, '__init__.pyc') if os.path.isfile(init) or os.path.isfile(initc): return 1
for ext in ['.py', '.pyc', '.pyo']: if os.path.isfile(os.path.join(path, '__init__' + ext)): return 1
def ispackage(path): """Guess whether a path refers to a package directory.""" if os.path.isdir(path): init = os.path.join(path, '__init__.py') initc = os.path.join(path, '__init__.pyc') if os.path.isfile(init) or os.path.isfile(initc): return 1
54a838fe1421d6e6829cabc42e7f398722140804 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/54a838fe1421d6e6829cabc42e7f398722140804/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 5610, 12, 803, 4672, 3536, 15977, 2856, 279, 589, 21368, 358, 279, 2181, 1867, 12123, 309, 1140, 18, 803, 18, 291, 1214, 12, 803, 4672, 364, 1110, 316, 10228, 18, 2074, 2187, 2418, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 5610, 12, 803, 4672, 3536, 15977, 2856, 279, 589, 21368, 358, 279, 2181, 1867, 12123, 309, 1140, 18, 803, 18, 291, 1214, 12, 803, 4672, 364, 1110, 316, 10228, 18, 2074, 2187, 2418, ...
self.health = health
self.health = gdata.health.service.HealthService() self.health.ClientLogin(username, password, source='Health Client Unit Tests')
def setUp(self): self.health = health self.profile_list_feed = self.health.GetProfileListFeed() self.profile_id = self.profile_list_feed.entry[0].GetProfileId()
4b0039babc7592f2056fec24dc1589bad7422090 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/4b0039babc7592f2056fec24dc1589bad7422090/service_test.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 13267, 273, 314, 892, 18, 13267, 18, 3278, 18, 7802, 1179, 1435, 365, 18, 13267, 18, 1227, 5358, 12, 5053, 16, 2201, 16, 1084, 2218, 7802, 2445, 8380, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24292, 12, 2890, 4672, 365, 18, 13267, 273, 314, 892, 18, 13267, 18, 3278, 18, 7802, 1179, 1435, 365, 18, 13267, 18, 1227, 5358, 12, 5053, 16, 2201, 16, 1084, 2218, 7802, 2445, 8380, 7...
svn("ci").wait()
def main(): use_pre = len(sys.argv) > 1 and 'pre' in sys.argv url = "svn+ssh://svn.cern.ch/reps/gaudi" proj = "Gaudi" container = "GaudiRelease" packages = gather_new_versions("requirements") packages[container] = extract_version("requirements") tempdir = tempfile.mkdtemp() try: os.chdir(tempdir) # prepare repository structure (and move to its top level) os.chdir(checkout_structure(url, proj)) # note that the project does not have "-pre" pvers = "%s_%s" % (proj.upper(), packages[container]) # prepare project tag ptagdir = "%s/tags/%s/%s" % (proj, proj.upper(), pvers) if not svn_exists(ptagdir): svn("mkdir", ptagdir).wait() svn("cp", "%s/trunk/cmt" % proj, ptagdir + "/cmt").wait() # prepare package tags tag_re = re.compile(r"^v(\d+)r(\d+)(?:p(\d+))$") for p in packages: tag = packages[p] pktagdir = "%s/tags/%s/%s" % (proj, p, tag) # I have to make the tag if it doesn't exist and (if we use -pre tags) # neither the -pre tag exists. no_tag = not svn_exists(pktagdir) make_tag = no_tag or (use_pre and no_tag and not svn_exists(pktagdir + "-pre")) if make_tag: if use_pre: pktagdir += "-pre" svn("cp", "%s/trunk/%s" % (proj, p), pktagdir).wait() # Atlas type of tag tagElements = tag_re.match(tag) if tagElements: tagElements = "-".join([ "%02d" % int(el or "0") for el in tagElements.groups() ]) pktagdir = "%s/tags/%s/%s-%s" % (proj, p, p, tagElements) svn("cp", "%s/trunk/%s" % (proj, p), pktagdir).wait() else: if not no_tag: svn("up", "-N", pktagdir).wait() # needed for the copy in the global tag if not use_pre: # prepare the full global tag too for p in packages: tag = packages[p] pktagdir = "%s/tags/%s/%s" % (proj, p, tag) svn("cp", pktagdir, "%s/%s" % (ptagdir, p)).wait() svn("ci").wait() finally: shutil.rmtree(tempdir, ignore_errors = True) return 0
caa763ff6414da0aea124f54336380f2e9c7a812 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9140/caa763ff6414da0aea124f54336380f2e9c7a812/tag_release.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 999, 67, 1484, 273, 562, 12, 9499, 18, 19485, 13, 405, 404, 471, 296, 1484, 11, 316, 225, 2589, 18, 19485, 880, 273, 315, 31505, 15, 10975, 2207, 31505, 18, 14770, 18, 343...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 999, 67, 1484, 273, 562, 12, 9499, 18, 19485, 13, 405, 404, 471, 296, 1484, 11, 316, 225, 2589, 18, 19485, 880, 273, 315, 31505, 15, 10975, 2207, 31505, 18, 14770, 18, 343...
object_id = models.PositiveIntegerField()
object_id = models.CharField(max_length=150)
def create(self, object, action, **kwargs): ct = ContentType.objects.get_for_model(object.__class__)
6983e1f274b8c086942b1383ab3c0845bcc9d04c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4645/6983e1f274b8c086942b1383ab3c0845bcc9d04c/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 733, 16, 1301, 16, 2826, 4333, 4672, 5691, 273, 11691, 18, 6911, 18, 588, 67, 1884, 67, 2284, 12, 1612, 16186, 1106, 972, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 733, 16, 1301, 16, 2826, 4333, 4672, 5691, 273, 11691, 18, 6911, 18, 588, 67, 1884, 67, 2284, 12, 1612, 16186, 1106, 972, 13, 2, -100, -100, -100, -100, -100, -100, ...
_d=d+(self._tzinfo[tz].info(t)[0]/86400.0) yr,mo,dy=self._calendarday(_d+jd1901) _s=(_d-int(_d))*86400.0 hr=int(_s/3600) _s=_s-(hr*3600) mn=int(_s/60) sc=_s-(mn*60)
x=d+(self._tzinfo[tz].info(t)[0]/86400.0) yr,mo,dy=self._calendarday(x+jd1901) x=(x-int(x))*86400.0 hr=int(x/3600) x=x-(hr*3600) mn=int(x/60) sc=x-(mn*60)
def __init__(self,*args): """Return a new date-time object
92b0ff07ac42eb6719c4d212edd1adf91e39d066 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/92b0ff07ac42eb6719c4d212edd1adf91e39d066/DateTime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 14, 1968, 4672, 3536, 990, 279, 394, 1509, 17, 957, 733, 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, 1001, 2738, 972, 12, 2890, 16, 14, 1968, 4672, 3536, 990, 279, 394, 1509, 17, 957, 733, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
verify(complex(a).__class__ is complex)
veris(complex(a).__class__, complex)
def __repr__(self): return "%.17gj%+.17g" % (self.imag, self.real)
b1b7e702cae6f65e6d146f8881c14f933fe52efd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b1b7e702cae6f65e6d146f8881c14f933fe52efd/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 26209, 4033, 75, 78, 9, 15, 18, 4033, 75, 6, 738, 261, 2890, 18, 15374, 16, 365, 18, 7688, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 26209, 4033, 75, 78, 9, 15, 18, 4033, 75, 6, 738, 261, 2890, 18, 15374, 16, 365, 18, 7688, 13, 2, -100, -100, -100, -100, -100, -100, -100, -10...
if reply != "cancel":
if str(reply) != "cancel":
def close(self): reply = self.maybesave() if reply != "cancel": self._close() return reply
f65385c959164ccfa1b4d35c2ef4c94bcad56e32 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/f65385c959164ccfa1b4d35c2ef4c94bcad56e32/EditorWindow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 4332, 273, 365, 18, 24877, 70, 281, 836, 1435, 309, 609, 12, 10629, 13, 480, 315, 10996, 6877, 365, 6315, 4412, 1435, 327, 4332, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 4332, 273, 365, 18, 24877, 70, 281, 836, 1435, 309, 609, 12, 10629, 13, 480, 315, 10996, 6877, 365, 6315, 4412, 1435, 327, 4332, 2, -100, -100, -100, -100, -100, ...
from Numeric import array, Float
def __init__(self, calc, atoms=None): self.calc = calc self.atoms = calc.GetListOfAtoms()
89358f58fa7285389788f3ca327c3972e926d85c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5735/89358f58fa7285389788f3ca327c3972e926d85c/old.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7029, 16, 9006, 33, 7036, 4672, 365, 18, 12448, 273, 7029, 365, 18, 14937, 273, 7029, 18, 967, 682, 951, 14280, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7029, 16, 9006, 33, 7036, 4672, 365, 18, 12448, 273, 7029, 365, 18, 14937, 273, 7029, 18, 967, 682, 951, 14280, 1435, 2, -100, -100, -100, -100, -100, -1...
def fl_notify_object(obj, cause): """ fl_notify_object(obj, cause) """ _fl_notify_object(obj, cause)
def fl_notify_object(pObject, cause): """ fl_notify_object(pObject, cause) """ _fl_notify_object(pObject, cause)
def fl_notify_object(obj, cause): """ fl_notify_object(obj, cause) """ _fl_notify_object(obj, cause)
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, 67, 12336, 67, 1612, 12, 84, 921, 16, 4620, 4672, 3536, 1183, 67, 12336, 67, 1612, 12, 84, 921, 16, 4620, 13, 3536, 225, 389, 2242, 67, 12336, 67, 1612, 12, 84, 921, 16, 4620, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1183, 67, 12336, 67, 1612, 12, 84, 921, 16, 4620, 4672, 3536, 1183, 67, 12336, 67, 1612, 12, 84, 921, 16, 4620, 13, 3536, 225, 389, 2242, 67, 12336, 67, 1612, 12, 84, 921, 16, 4620, ...
Column('size', label=_('Size'), align='right'),
Column('size', label=_('Size'), align='right'),
def history(page, pagename, request): # show history as default _ = request.getText
f23aaa071053ca9885d9ca3dea13be3568ea755c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/f23aaa071053ca9885d9ca3dea13be3568ea755c/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4927, 12, 2433, 16, 4262, 1069, 16, 590, 4672, 468, 2405, 4927, 487, 805, 389, 273, 590, 18, 588, 1528, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4927, 12, 2433, 16, 4262, 1069, 16, 590, 4672, 468, 2405, 4927, 487, 805, 389, 273, 590, 18, 588, 1528, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if not at in self.baggage: self.dragobjs.append(at)
if not at in baggage: dragatoms.append(at)
def atomsSetup(self, a): '''Setup for a click or double-click of real atom <a>, but also handles setup of dragging of real atom <a> and all other currently selected atoms. ''' self.objectSetup(a) self.baggage = [] self.nonbaggage = [] #all_nonbaggage = [] # NIY. mark 060202. selatoms = self.o.assy.selatoms_list() # Accumulate all the baggage from the selected atoms, which can include # selected atoms if a selected atom is another selected atom's baggage. # BTW, it is not possible for an atom to end up in self.baggage twice. for at in selatoms[:]: baggage, nonbaggage = at.baggage_and_other_neighbors() self.baggage += baggage # the baggage we'll keep. #all_nonbaggage += nonbaggage # dragobjs contains all the selected atoms minus atoms that are also # baggage. It is critical that dragobjs does not contain any baggage # atoms or they will be moved twice in atomsDrag(), so we removed them here. for at in selatoms[:]: if not at in self.baggage: # no baggage atoms in dragobjs. self.dragobjs.append(at) # Accumulate all the nonbaggage bonded to the selected atoms. # We also need to keep a record of which selected atom belongs to # each nonbaggage atom. This is not implemented yet, but will be needed # to get atomsDrag() to work properly. I'm commenting it out for now. # mark 060202. #for at in all_nonbaggage[:]: # if not at in self.dragobjs: # self.nonbaggage.append(at) # Debugging print statements. mark 060202. #print "dragobjs = ", self.dragobjs #print "baggage = ", self.baggage #print "nonbaggage = ", self.nonbaggage
e4a846430da32f8219706ecaa3f18f53cca635c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/e4a846430da32f8219706ecaa3f18f53cca635c5/selectMode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9006, 7365, 12, 2890, 16, 279, 4672, 9163, 7365, 364, 279, 4682, 578, 1645, 17, 7475, 434, 2863, 3179, 411, 69, 20401, 1496, 2546, 7372, 3875, 434, 25434, 434, 2863, 3179, 411, 69, 34, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9006, 7365, 12, 2890, 16, 279, 4672, 9163, 7365, 364, 279, 4682, 578, 1645, 17, 7475, 434, 2863, 3179, 411, 69, 20401, 1496, 2546, 7372, 3875, 434, 25434, 434, 2863, 3179, 411, 69, 34, ...
self.covar = zeros([nn, nn], dtype=float)
self.covar = numpy.zeros([nn, nn], dtype=float)
def iterfunct(myfunct, p, iter, fnorm, functkw=None, parinfo=None, quiet=0, dof=None, [iterkw keywords here])
14558c711c4693ee25ced2a48d6eaf300224bc75 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/682/14558c711c4693ee25ced2a48d6eaf300224bc75/mpfit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 74, 6931, 12, 4811, 74, 6931, 16, 293, 16, 1400, 16, 2295, 535, 16, 12882, 9987, 33, 7036, 16, 779, 1376, 33, 7036, 16, 10902, 33, 20, 16, 741, 74, 33, 7036, 16, 306, 2165, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1400, 74, 6931, 12, 4811, 74, 6931, 16, 293, 16, 1400, 16, 2295, 535, 16, 12882, 9987, 33, 7036, 16, 779, 1376, 33, 7036, 16, 10902, 33, 20, 16, 741, 74, 33, 7036, 16, 306, 2165, 9...
raise unittest.SkipTest("sys.__stdout__ is not a tty")
raise TestSkipped("sys.__stdout__ is not a tty")
def main(stdscr): curses.savetty() try: module_funcs(stdscr) window_funcs(stdscr) test_userptr_without_set(stdscr) test_resize_term(stdscr) finally: curses.resetty()
4631bb8c6f21bed9cefe5a558532555533fd1581 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/4631bb8c6f21bed9cefe5a558532555533fd1581/test_curses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 5084, 24638, 4672, 30436, 18, 87, 842, 22084, 1435, 775, 30, 1605, 67, 17728, 12, 5084, 24638, 13, 2742, 67, 17728, 12, 5084, 24638, 13, 1842, 67, 1355, 6723, 67, 13299, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 12, 5084, 24638, 4672, 30436, 18, 87, 842, 22084, 1435, 775, 30, 1605, 67, 17728, 12, 5084, 24638, 13, 2742, 67, 17728, 12, 5084, 24638, 13, 1842, 67, 1355, 6723, 67, 13299, 67, ...
pkg_path = os.popen('grep -A 30 -E "^Package: dpkg$" ' +
pkg_path = '/' + os.popen('grep -A 30 -E "^Package: dpkg$" ' +
def test_findPkgHash(self): lastDefer = defer.Deferred() pkg_hash = os.popen('grep -A 30 -E "^Package: dpkg$" ' + '/var/lib/apt/lists/' + self.packagesFile + ' | grep -E "^SHA1:" | head -n 1' + ' | cut -d\ -f 2').read().rstrip('\n') pkg_path = os.popen('grep -A 30 -E "^Package: dpkg$" ' + '/var/lib/apt/lists/' + self.packagesFile + ' | grep -E "^Filename:" | head -n 1' + ' | cut -d\ -f 2').read().rstrip('\n')
53607bdd5893956a70875b6468a609eecb518300 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/665/53607bdd5893956a70875b6468a609eecb518300/AptPackages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4720, 11264, 2310, 12, 2890, 4672, 1142, 758, 586, 273, 2220, 18, 16886, 1435, 225, 3475, 67, 2816, 273, 1140, 18, 84, 3190, 2668, 11556, 84, 300, 37, 5196, 300, 41, 15017, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 4720, 11264, 2310, 12, 2890, 4672, 1142, 758, 586, 273, 2220, 18, 16886, 1435, 225, 3475, 67, 2816, 273, 1140, 18, 84, 3190, 2668, 11556, 84, 300, 37, 5196, 300, 41, 15017, 2...
if graphic_file.find(self.graphic_suffix[graphic_type]) == -1:
if graphic_file.find(self.graphic_suffix[graphic_type]) == -1:
def processMythTvMetaData(self): '''Check each video file in the mythvideo directories download graphics files and meta data then update MythTV data base meta data with any new information. ''' # If there were directories specified move them and update the MythTV db meta data accordingly if self.config['video_dir']: if len(self.config['video_dir']) % 2 == 0: validFiles = self._moveVideoFiles(self.config['video_dir']) else: sys.stderr.write(u"\n! Error: When specifying target (file or directory) to move to a destination (directory) they must always be in pairs (target and destination directory).\nYou specified an uneven number of variables (%d) for target and destination pairs.\nVariable count (%s)\n" % (len(self.config['video_dir']), self.config['video_dir'])) sys.exit(False)
6089d4d60f2dab84c6af9981c242684b162de38e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13713/6089d4d60f2dab84c6af9981c242684b162de38e/jamu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12062, 451, 56, 90, 6998, 12, 2890, 4672, 9163, 1564, 1517, 6191, 585, 316, 326, 3399, 451, 9115, 6402, 4224, 17313, 1390, 471, 2191, 501, 1508, 1089, 8005, 451, 15579, 501, 1026, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 12062, 451, 56, 90, 6998, 12, 2890, 4672, 9163, 1564, 1517, 6191, 585, 316, 326, 3399, 451, 9115, 6402, 4224, 17313, 1390, 471, 2191, 501, 1508, 1089, 8005, 451, 15579, 501, 1026, ...
write_action(asset, False);
write_action(asset, False)
def write_action(asset, webgl_mode): filename = posixpath.splitext(posixpath.basename(asset['path']))[0] filename = filename.replace('.','_') filename = filename.replace('-','_') filename = filename.lower() name = "convert_" + filename if webgl_mode: name = name + "_webgl" output = asset['path'].replace('convert_', '') output_base = posixpath.splitext(output)[0] output_tgz = output_base + ".o3dtgz" output_json = output_base + "/scene.json" output = output_tgz if webgl_mode: output = output_json output_dir = posixpath.dirname(output) output_file.write(" {\n") output_file.write(" 'action_name': '%s',\n" % name) output_file.write(" 'inputs': [\n") output_file.write(" '<(PRODUCT_DIR)/o3dConverter',\n") output_file.write(" '../o3d_assets/samples/%s',\n" % asset['path']) output_file.write(" ],\n") output_file.write(" 'outputs': [\n") if sys.platform[:5] == 'linux': # TODO(gspencer): This is a HACK! We shouldn't need to put the # absolute path here, but currently on Linux (scons), it is unable # to copy generated items out of the source tree (because the # repository mojo fails to find it and puts in the wrong path). output_file.write(" '%s',\n" % posixpath.abspath(output)) else: output_file.write(" '../samples/%s',\n" % output) output_file.write(" ],\n") output_file.write(" 'action': [\n") output_file.write(" '<(PRODUCT_DIR)/o3dConverter',\n") output_file.write(" '--no-condition',\n") output_file.write(" '--up-axis=%s',\n" % asset['up']) if webgl_mode: output_file.write(" '--no-binary',\n") output_file.write(" '--no-archive',\n") output_file.write(" '--convert-dds-to-png',\n") output_file.write(" '--convert-cg-to-glsl',\n") output_file.write(" '../o3d_assets/samples/%s',\n" % asset['path']) if webgl_mode: output_file.write(" '../samples/%s',\n" % output_tgz) else: output_file.write(" '<(_outputs)',\n") output_file.write(" ],\n") output_file.write(" },\n")
ff183afab99ef55906d114db40364a8e4070620f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/ff183afab99ef55906d114db40364a8e4070620f/samples_gen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1128, 12, 9406, 16, 3311, 7043, 67, 3188, 4672, 1544, 273, 16366, 803, 18, 4939, 408, 12, 24463, 803, 18, 13909, 12, 9406, 3292, 803, 3546, 3719, 63, 20, 65, 1544, 273, 1544,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1128, 12, 9406, 16, 3311, 7043, 67, 3188, 4672, 1544, 273, 16366, 803, 18, 4939, 408, 12, 24463, 803, 18, 13909, 12, 9406, 3292, 803, 3546, 3719, 63, 20, 65, 1544, 273, 1544,...
(srcdir,) = sysconfig.get_config_vars('srcdir') if not srcdir: inc_dir = sysconfig.get_python_inc() else: inc_dir = sysconfig.get_python_inc() self.assert_(os.path.isdir(inc_dir)) inc_dir = os.path.join(os.getcwd(), srcdir, 'Include') inc_dir = os.path.normpath(inc_dir) self.assert_(os.path.isdir(inc_dir), inc_dir)
inc_dir = sysconfig.get_python_inc() self.assertTrue(os.path.isdir(inc_dir), inc_dir)
def test_get_python_inc(self): # The check for srcdir is copied from Python's setup.py, # and is necessary to make this test pass when building # Python in a directory other than the source directory. (srcdir,) = sysconfig.get_config_vars('srcdir') if not srcdir: inc_dir = sysconfig.get_python_inc() else: # This test is not really a proper test: when building # Python from source, even in the same directory, # we won't be testing the same thing as when running # distutils' tests on an installed Python. Nevertheless, # let's try to do our best: if we are running Python's # unittests from a build directory that is not the source # directory, the normal inc_dir will exist, it will just not # contain anything of interest. inc_dir = sysconfig.get_python_inc() self.assert_(os.path.isdir(inc_dir)) # Now test the source location, to make sure Python.h does # exist. inc_dir = os.path.join(os.getcwd(), srcdir, 'Include') inc_dir = os.path.normpath(inc_dir) self.assert_(os.path.isdir(inc_dir), inc_dir) python_h = os.path.join(inc_dir, "Python.h") self.assert_(os.path.isfile(python_h), python_h)
d08ab9b5e2e377e847525bb41a2120a36b08de7e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/d08ab9b5e2e377e847525bb41a2120a36b08de7e/test_sysconfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 8103, 67, 9523, 12, 2890, 4672, 468, 1021, 866, 364, 1705, 1214, 353, 9268, 628, 6600, 1807, 3875, 18, 2074, 16, 468, 471, 353, 4573, 358, 1221, 333, 1842, 1342, 134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 588, 67, 8103, 67, 9523, 12, 2890, 4672, 468, 1021, 866, 364, 1705, 1214, 353, 9268, 628, 6600, 1807, 3875, 18, 2074, 16, 468, 471, 353, 4573, 358, 1221, 333, 1842, 1342, 134...
class IOVEntry():
class IOVEntry:
def __str__(self): return "rcd: \'" + tuple.__getitem__(self,0) + "\' label: \'" + tuple.__getitem__(self,1) + "\'"
4b38e17c7e59fca8d75414b61f70693aec4a64c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7996/4b38e17c7e59fca8d75414b61f70693aec4a64c2/gt_tools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 315, 1310, 72, 30, 521, 4970, 397, 3193, 16186, 31571, 972, 12, 2890, 16, 20, 13, 397, 1548, 11, 1433, 30, 521, 4970, 397, 3193, 16186, 31571, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 327, 315, 1310, 72, 30, 521, 4970, 397, 3193, 16186, 31571, 972, 12, 2890, 16, 20, 13, 397, 1548, 11, 1433, 30, 521, 4970, 397, 3193, 16186, 31571, 972,...
modpath = path.join(self.prodsDir, modLst[0], 'Extensions', modLst[1]+'.py') return string.replace(modpath, '<LocalFS::directory>', '<LocalFS::file>')
modpath = os.path.join(self.prodsDir, modLst[0], 'Extensions', modLst[1]+'.py') return modpath.replace('<LocalFS::directory>', '<LocalFS::file>')
def getExtPath(self, module): modLst = string.split(module, '.') if len(modLst) == 1: modpath = path.join(self.zopeDir, 'Extensions', modLst[0] + '.py') else: modpath = path.join(self.prodsDir, modLst[0], 'Extensions', modLst[1]+'.py') return string.replace(modpath, '<LocalFS::directory>', '<LocalFS::file>')
98cda4c49b17d3296fc5632de5467f70704f3dd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/98cda4c49b17d3296fc5632de5467f70704f3dd5/ExtMethDlg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2482, 743, 12, 2890, 16, 1605, 4672, 681, 28134, 273, 533, 18, 4939, 12, 2978, 16, 2611, 13, 309, 562, 12, 1711, 28134, 13, 422, 404, 30, 681, 803, 273, 589, 18, 5701, 12, 2890,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 2482, 743, 12, 2890, 16, 1605, 4672, 681, 28134, 273, 533, 18, 4939, 12, 2978, 16, 2611, 13, 309, 562, 12, 1711, 28134, 13, 422, 404, 30, 681, 803, 273, 589, 18, 5701, 12, 2890,...
warnings.filterwarnings("error", r"""^struct.*""", DeprecationWarning) warnings.filterwarnings("error", r""".*format requires.*""", DeprecationWarning)
warnings.filterwarnings("error", category=DeprecationWarning)
def _with_warning_restore(*args, **kw): with test.test_support.catch_warning(): # Grrr, we need this function to warn every time. Without removing # the warningregistry, running test_tarfile then test_struct would fail # on 64-bit platforms. globals = func.func_globals if '__warningregistry__' in globals: del globals['__warningregistry__'] warnings.filterwarnings("error", r"""^struct.*""", DeprecationWarning) warnings.filterwarnings("error", r""".*format requires.*""", DeprecationWarning) return func(*args, **kw)
8688926981c4f0d3e7ba00de92d38ca6b352673a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/8688926981c4f0d3e7ba00de92d38ca6b352673a/test_struct.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1918, 67, 8551, 67, 13991, 30857, 1968, 16, 2826, 9987, 4672, 598, 1842, 18, 3813, 67, 13261, 18, 14683, 67, 8551, 13332, 468, 611, 523, 86, 16, 732, 1608, 333, 445, 358, 1894, 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, 389, 1918, 67, 8551, 67, 13991, 30857, 1968, 16, 2826, 9987, 4672, 598, 1842, 18, 3813, 67, 13261, 18, 14683, 67, 8551, 13332, 468, 611, 523, 86, 16, 732, 1608, 333, 445, 358, 1894, 36...
query1, query2 = target_obj.search([
query1, query2 = target_obj.search(cursor, user, [
def _rec_get(ids, table, parent): if not ids: return [] ids2 = table.search(cursor, user, [(parent, 'in', ids), (parent, '!=', False)], context=context) return ids + _rec_get(ids2, table, parent)
390d2c04977dc7aff4747746069d323e015fd97d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9266/390d2c04977dc7aff4747746069d323e015fd97d/modelsql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 588, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 9216, 16, 729, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3927, 67, 588, 12, 2232, 16, 1014, 16, 982, 4672, 309, 486, 3258, 30, 327, 5378, 3258, 22, 273, 1014, 18, 3072, 12, 9216, 16, 729, 16, 306, 12, 2938, 16, 296, 267, 2187, 3258, ...
for x in self.hints['easy']: self.do_hint("easy", x[0], x[1]) for x in self.hints["force-hint"]: self.do_hint("force-hint", x[0], x[1])
if not self.options.actions: for x in self.hints['easy']: self.do_hint("easy", x[0], x[1]) for x in self.hints["force-hint"]: self.do_hint("force-hint", x[0], x[1])
def upgrade_testing(self): """Upgrade testing using the unstable packages
d5362ad8a66b3cf545afb782387a1c2c01d551e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/d5362ad8a66b3cf545afb782387a1c2c01d551e2/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8400, 67, 3813, 310, 12, 2890, 4672, 3536, 10784, 7769, 1450, 326, 640, 15021, 5907, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8400, 67, 3813, 310, 12, 2890, 4672, 3536, 10784, 7769, 1450, 326, 640, 15021, 5907, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
iter = self.children.firstIter() while iter != self.children.lastIter(): yield iter.value() iter.forward()
return iter(self.children)
def iterchildren(self): iter = self.children.firstIter() while iter != self.children.lastIter(): yield iter.value() iter.forward()
0e48e4375e9b1f72312268de61ceb963e31ceab3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/0e48e4375e9b1f72312268de61ceb963e31ceab3/tablemodel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 5906, 12, 2890, 4672, 1400, 273, 365, 18, 5906, 18, 3645, 2360, 1435, 1323, 1400, 480, 365, 18, 5906, 18, 2722, 2360, 13332, 2824, 1400, 18, 1132, 1435, 1400, 18, 11565, 1435, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 5906, 12, 2890, 4672, 1400, 273, 365, 18, 5906, 18, 3645, 2360, 1435, 1323, 1400, 480, 365, 18, 5906, 18, 2722, 2360, 13332, 2824, 1400, 18, 1132, 1435, 1400, 18, 11565, 1435, 2, ...
re_format = re.compile('%\(([A-Za-z0-9]+)\)')
re_format = re.compile(r'%\(([A-Za-z0-9]+)\)') re_sub = re.compile(r'[\\\*\?\"\<\>\|]+')
def split(self): if self.skip_splitting: return None re_format = re.compile('%\(([A-Za-z0-9]+)\)')
7d4beffa462d433461418693912ab266d7401e5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13688/7d4beffa462d433461418693912ab266d7401e5e/m4b.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 4672, 309, 365, 18, 7457, 67, 4939, 1787, 30, 327, 599, 225, 283, 67, 2139, 273, 283, 18, 11100, 29909, 30351, 3816, 37, 17, 15948, 17, 94, 20, 17, 29, 16004, 2506, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1416, 12, 2890, 4672, 309, 365, 18, 7457, 67, 4939, 1787, 30, 327, 599, 225, 283, 67, 2139, 273, 283, 18, 11100, 29909, 30351, 3816, 37, 17, 15948, 17, 94, 20, 17, 29, 16004, 2506, 1...
v.StartCapture()
lastid = 0
def record(v, filename, audiofilename): import thread x, y = gl.getsize() vout = VFile.VoutFile().init(filename) vout.format = 'rgb8' vout.width = x vout.height = y vout.writeheader() buffer = [] thread.start_new_thread(saveframes, (vout, buffer)) if audiofilename: initaudio(audiofilename, buffer) gl.wintitle('(rec) ' + filename) v.StartCapture() t0 = time.millitimer() while not gl.qtest(): if v.GetCaptured() > 2: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y) cd.UnlockCaptureData() buffer.append(data, t) else: time.millisleep(10) v.StopCapture() while v.GetCaptured() > 0: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y) cd.UnlockCaptureData() buffer.append(data, t) buffer.append(None) # Sentinel gl.wintitle('(done) ' + filename)
62f6bc8e55ef2d0e226b1c3ad7b9aca58407ab7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/62f6bc8e55ef2d0e226b1c3ad7b9aca58407ab7a/Vrec.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1409, 12, 90, 16, 1544, 16, 20232, 77, 792, 2550, 4672, 1930, 2650, 619, 16, 677, 273, 5118, 18, 588, 1467, 1435, 331, 659, 273, 776, 812, 18, 58, 659, 812, 7675, 2738, 12, 3459, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1409, 12, 90, 16, 1544, 16, 20232, 77, 792, 2550, 4672, 1930, 2650, 619, 16, 677, 273, 5118, 18, 588, 1467, 1435, 331, 659, 273, 776, 812, 18, 58, 659, 812, 7675, 2738, 12, 3459, 13,...
items.append(RecordingItem(parent=parent, channel=p.channel, start=p.start, stop=p.stop))
items.append(ProgramItem(scheduled, self.parent))
def get_items(self, parent): items = [] rec = tvserver.recordings.list() for p in rec: scheduled = tvserver.recordings.get(p.channel, p.start, p.stop) if scheduled and not scheduled.status in ('deleted', 'missed'): items.append(RecordingItem(parent=parent, channel=p.channel, start=p.start, stop=p.stop))
b0175fd8c4e0f36e533ae4cc3f93ef65bbe09967 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11399/b0175fd8c4e0f36e533ae4cc3f93ef65bbe09967/scheduled.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3319, 12, 2890, 16, 982, 4672, 1516, 273, 5378, 1950, 273, 13521, 3567, 18, 3366, 899, 18, 1098, 1435, 364, 293, 316, 1950, 30, 9755, 273, 13521, 3567, 18, 3366, 899, 18, 588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3319, 12, 2890, 16, 982, 4672, 1516, 273, 5378, 1950, 273, 13521, 3567, 18, 3366, 899, 18, 1098, 1435, 364, 293, 316, 1950, 30, 9755, 273, 13521, 3567, 18, 3366, 899, 18, 588,...
path = self._getMockPath()
def _getMockEnvironment(self): path = self._getMockPath() env = os.environ.copy() if not env.has_key('PYTHONPATH'): env['PYTHONPATH'] = path else: env['PYTHONPATH'] += os.pathsep + path return env
385bb0fcea4b2de5eb215b831ad577f7f549b7e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/385bb0fcea4b2de5eb215b831ad577f7f549b7e0/test_output.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 9865, 5494, 12, 2890, 4672, 1550, 273, 1140, 18, 28684, 18, 3530, 1435, 309, 486, 1550, 18, 5332, 67, 856, 2668, 16235, 20131, 4211, 11, 4672, 1550, 3292, 16235, 20131, 4211, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 9865, 5494, 12, 2890, 4672, 1550, 273, 1140, 18, 28684, 18, 3530, 1435, 309, 486, 1550, 18, 5332, 67, 856, 2668, 16235, 20131, 4211, 11, 4672, 1550, 3292, 16235, 20131, 4211, 3...
for key, val in special_keys.items():
for key, val in tuple(special_keys.items()):
def parse_keybinding(obj): """ Translate a keybinding to a sequence of integers Example: lol<CR> => (108, 111, 108, 10) """ assert isinstance(obj, (tuple, int, str)) if isinstance(obj, tuple): for char in obj: yield char elif isinstance(obj, int): yield obj elif isinstance(obj, str): in_brackets = False bracket_content = None for char in obj: if in_brackets: if char == '>': in_brackets = False string = ''.join(bracket_content).lower() try: keys = special_keys[string] for key in keys: yield key except KeyError: yield ord('<') for c in bracket_content: yield ord(c) yield ord('>') except TypeError: yield keys # it was no tuple, just an int else: bracket_content.append(char) else: if char == '<': in_brackets = True bracket_content = [] else: yield ord(char) if in_brackets: yield ord('<') for c in bracket_content: yield ord(c)
72c70a2df45b957fee8c755e8bc953e4126dd2fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5729/72c70a2df45b957fee8c755e8bc953e4126dd2fb/keybinding_parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 856, 7374, 12, 2603, 4672, 3536, 16820, 279, 498, 7374, 358, 279, 3102, 434, 12321, 225, 5090, 30, 328, 355, 32, 5093, 34, 282, 516, 282, 261, 21770, 16, 16344, 16, 23515, 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, 1109, 67, 856, 7374, 12, 2603, 4672, 3536, 16820, 279, 498, 7374, 358, 279, 3102, 434, 12321, 225, 5090, 30, 328, 355, 32, 5093, 34, 282, 516, 282, 261, 21770, 16, 16344, 16, 23515, 16...
return self.send_at("AT%%IPSYS=%d" % ICERA_ALLOWED_DICT[mode],
return self.send_at("AT%%IPSYS=%d" % self.custom.allowed_dict[mode],
def set_allowed_mode_cb(orig=None): self.device.set_property(consts.NET_INTFACE, "AllowedMode", mode) return orig
0f84d56ef6244b753df0676d75539bdf56d157f1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12036/0f84d56ef6244b753df0676d75539bdf56d157f1/icera.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 8151, 67, 3188, 67, 7358, 12, 4949, 33, 7036, 4672, 365, 18, 5964, 18, 542, 67, 4468, 12, 10248, 87, 18, 14843, 67, 3217, 11300, 16, 315, 5042, 2309, 3113, 1965, 13, 327, 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, 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, 8151, 67, 3188, 67, 7358, 12, 4949, 33, 7036, 4672, 365, 18, 5964, 18, 542, 67, 4468, 12, 10248, 87, 18, 14843, 67, 3217, 11300, 16, 315, 5042, 2309, 3113, 1965, 13, 327, 16...
""" Return a canonical representation of path in the repos. """
"""Return a canonical representation of path in the repos."""
def normalize_path(self, path): """ Return a canonical representation of path in the repos. """ return NotImplementedError
0091f73d9ddb2e28de9da1a025ba0c0cfaf2b458 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/0091f73d9ddb2e28de9da1a025ba0c0cfaf2b458/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3883, 67, 803, 12, 2890, 16, 589, 4672, 3536, 990, 279, 7378, 4335, 434, 589, 316, 326, 13686, 12123, 327, 11206, 2, 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, 3883, 67, 803, 12, 2890, 16, 589, 4672, 3536, 990, 279, 7378, 4335, 434, 589, 316, 326, 13686, 12123, 327, 11206, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
g_mutex.acquire()
def run(self): running = 1 while running: message = self.client.recv(self.size) if message: f = open(self.address[0], 'w') message = '<p><strong>' + self.address[0] + '</strong>: ' + message + '</p>\n' f.write(message) f.close()
aac66149c7f7124331b709f2373f2618c3c2e307 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/228/aac66149c7f7124331b709f2373f2618c3c2e307/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 3549, 273, 404, 1323, 3549, 30, 883, 273, 365, 18, 2625, 18, 18334, 12, 2890, 18, 1467, 13, 309, 883, 30, 284, 273, 1696, 12, 2890, 18, 2867, 63, 20, 6487, 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, 1086, 12, 2890, 4672, 3549, 273, 404, 1323, 3549, 30, 883, 273, 365, 18, 2625, 18, 18334, 12, 2890, 18, 1467, 13, 309, 883, 30, 284, 273, 1696, 12, 2890, 18, 2867, 63, 20, 6487, 296,...
maya.cmds.menu( menu, edit=True, postMenuCommand = lambda : __postMenu( menu, definition ) )
maya.cmds.menu( menu, edit=True, postMenuCommand = IECore.curry( __postMenu, menu, definition ) )
def createMenu( definition, parent, label="", insertAfter=None, radialPosition=None, button = 3 ) : menu = None if maya.cmds.window( parent, query=True, exists=True ) : # parent is a window - we're sticking it in the menubar menu = maya.cmds.menu( label=label, parent=parent, tearOff=True ) elif maya.cmds.menu( parent, query=True, exists=True ) : # parent is a menu - we're adding a submenu kw = {} if not (insertAfter is None) : kw["insertAfter"] = insertAfter if radialPosition : kw["radialPosition"] = radialPosition menu = maya.cmds.menuItem( label=label, parent=parent, tearOff=True, subMenu=True, **kw ) else : # assume parent is a control which can accept a popup menu menu = maya.cmds.popupMenu( parent=parent, button=button ) maya.cmds.menu( menu, edit=True, postMenuCommand = lambda : __postMenu( menu, definition ) ) return menu
6036f0068292833f1e58c5abaf993d60a806bec9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9042/6036f0068292833f1e58c5abaf993d60a806bec9/createMenu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 4599, 12, 2379, 16, 982, 16, 1433, 1546, 3113, 2243, 4436, 33, 7036, 16, 27884, 2555, 33, 7036, 16, 3568, 273, 890, 262, 294, 225, 3824, 273, 599, 309, 2026, 69, 18, 24680, 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, 752, 4599, 12, 2379, 16, 982, 16, 1433, 1546, 3113, 2243, 4436, 33, 7036, 16, 27884, 2555, 33, 7036, 16, 3568, 273, 890, 262, 294, 225, 3824, 273, 599, 309, 2026, 69, 18, 24680, 18, ...
This keyword reads the specified file and returns only lines matching the `pattern`. `encoding` defines the encoding of the file. By default, the value is 'UTF-8', which means that UTF-8 and ASCII-encoded files are read correctly. `pattern_type` defines how the given pattern is interpreted as explained below. `pattern_type` argument is case-insensitive and may contain other text. For example, 'regexp', 'REGEXP' and 'Pattern is a regexp' are all considered equal. - If `pattern_type` contains either the string 'simple' or 'glob', the `pattern` is considered a simple pattern and lines returned only if they match it. (1) - If `pattern_type` contains either the string 'regular expression' or 'regexp', the `pattern` is considered a regular expression and only lines matching it returned. (2) - If `pattern_type` contains the string 'case insensitive' the `pattern` is considered a literal string and lines returned, if they contain the string, regardless of the case. - Otherwise the pattern is considered a literal string and lines returned, if they contain the string exactly. This is the default. 1) Simple pattern matching is similar as matching files in a shell, and it is always case-sensitive. In the pattern, '*' matches to anything and '?' matches to any single character. 2) Regular expression check is done using the Python 're' module, which has a pattern syntax derived from Perl and thus also very similar to the one in Java. See the following documents from more details about regexps in general and their Python implementation in particular. 're' Module Documentation: http://docs.python.org/lib/module-re.html Regular Expression HOWTO: http://www.amk.ca/python/howto/regex/ Note that if you want to use flags (e.g. re.IGNORECASE), you have to embed them into the pattern (e.g. '(?i)pattern'). Note also that backslash is an escape character in Robot Framework test data, and possible backslashes in patterns must thus be escaped with another backslash (e.g. '\\\\d\\\\w+').
This keyword reads the specified file and returns only lines matching the `pattern`. `encoding` specifies the encoding of the file the same way as with `Get File` keyword. `pattern_type` defines how the given pattern is interpreted as explained below. `pattern_type` argument is case-insensitive and may contain other text. For example, 'regexp', 'REGEXP' and 'Pattern is a regexp' are all considered equal. 1) If `pattern_type` contains either the strings 'simple' or 'glob', the `pattern` is considered a simple glob pattern having same semantics as patterns given to `File Should Exist` keyword. 2) If `pattern_type` contains either 'simple' or 'glob', and additionally contains 'case-insensitive' or 'case insensitive', the glob pattern is considered case-insensitive. This functionality is available in 2.0.2 version and newer. 3) If `pattern_type` contains either the string 'regular expression' or 'regexp', the `pattern` is considered a regular expression. See built-in keyword `Should Match Regexp` for more information about how to use regular expressions in the test data. 4) If `pattern_type` contains either 'case-insensitive' or 'case insensitive' (but does not contain 'simple' or 'glob'), `pattern` is considered a literal string and lines returned, if they contain the string, regardless of the case. 5) Otherwise the pattern is considered a literal string and lines returned, if they contain the string.
def grep_file(self, path, pattern, pattern_type='literal string', encoding='UTF-8'): """Returns the contents of a specified file grepped using `pattern`. This keyword reads the specified file and returns only lines matching the `pattern`. `encoding` defines the encoding of the file. By default, the value is 'UTF-8', which means that UTF-8 and ASCII-encoded files are read correctly. `pattern_type` defines how the given pattern is interpreted as explained below. `pattern_type` argument is case-insensitive and may contain other text. For example, 'regexp', 'REGEXP' and 'Pattern is a regexp' are all considered equal. - If `pattern_type` contains either the string 'simple' or 'glob', the `pattern` is considered a simple pattern and lines returned only if they match it. (1) - If `pattern_type` contains either the string 'regular expression' or 'regexp', the `pattern` is considered a regular expression and only lines matching it returned. (2) - If `pattern_type` contains the string 'case insensitive' the `pattern` is considered a literal string and lines returned, if they contain the string, regardless of the case. - Otherwise the pattern is considered a literal string and lines returned, if they contain the string exactly. This is the default. 1) Simple pattern matching is similar as matching files in a shell, and it is always case-sensitive. In the pattern, '*' matches to anything and '?' matches to any single character.
6f8bd1e5c5b0db8d92d174d89dc27677542321fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/6f8bd1e5c5b0db8d92d174d89dc27677542321fb/OperatingSystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23366, 67, 768, 12, 2890, 16, 589, 16, 1936, 16, 1936, 67, 723, 2218, 13107, 533, 2187, 2688, 2218, 5159, 17, 28, 11, 4672, 3536, 1356, 326, 2939, 434, 279, 1269, 585, 23366, 1845, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23366, 67, 768, 12, 2890, 16, 589, 16, 1936, 16, 1936, 67, 723, 2218, 13107, 533, 2187, 2688, 2218, 5159, 17, 28, 11, 4672, 3536, 1356, 326, 2939, 434, 279, 1269, 585, 23366, 1845, 145...
self.l_arm_angles = l_arm_angles self.l_arm_efforts = l_arm_efforts
self.arm_angles[1] = arm_angles[1] self.arm_efforts[1] = arm_efforts[1]
def joint_states_cb(self, data): r_arm_angles = [] r_arm_efforts = [] l_arm_angles = [] l_arm_efforts = [] r_jt_idx_list = [17, 18, 16, 20, 19, 21, 22] l_jt_idx_list = [31, 32, 30, 34, 33, 35, 36] for i,nm in enumerate(self.joint_nm_list): idx = r_jt_idx_list[i] if data.name[idx] != 'r_'+nm+'_joint': raise RuntimeError('joint angle name does not match. Expected: %s, Actual: %s i: %d'%('r_'+nm+'_joint', data.name[idx], i)) r_arm_angles.append(data.position[idx]) r_arm_efforts.append(data.effort[idx])
3a682eff0bfca2c49f435a978c645b4e046ad110 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8117/3a682eff0bfca2c49f435a978c645b4e046ad110/simple_arm_trajectories.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15916, 67, 7992, 67, 7358, 12, 2890, 16, 501, 4672, 436, 67, 4610, 67, 12356, 273, 5378, 436, 67, 4610, 67, 17098, 499, 87, 273, 5378, 328, 67, 4610, 67, 12356, 273, 5378, 328, 67, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15916, 67, 7992, 67, 7358, 12, 2890, 16, 501, 4672, 436, 67, 4610, 67, 12356, 273, 5378, 436, 67, 4610, 67, 17098, 499, 87, 273, 5378, 328, 67, 4610, 67, 12356, 273, 5378, 328, 67, 4...
x = 1.0 / wavelen * 10000.0
nm_to_micron = 1/1000.0 x = 1.0 / (wavelen * nm_to_micron)
def setupCCMab(self, wavelen=None): """Calculate a(x) and b(x) for CCM dust model. (x=1/wavelen). Returns a(x) and b(x) can be common to many seds, wavelen is the same. """ # This extinction law taken from Cardelli, Clayton and Mathis ApJ 1989. # The general form is A_l / A(V) = a(x) + b(x)/R_V (where x=1/lambda in microns), # then different values for a(x) and b(x) depending on wavelength regime. # Also, the extinction is parametrized as R_v = A_v / E(B-V). # Magnitudes of extinction (A_l) translates to flux by a_l = -2.5log(f_red / f_nonred). if wavelen == None: wavelen = n.copy(self.wavelen) a_x = n.zeros(len(wavelen), dtype='float') b_x = n.zeros(len(wavelen), dtype='float') # Convert wavelength to x (in inverse microns). x = n.empty(len(wavelen), dtype=float) x = 1.0 / wavelen * 10000.0 # Dust in infrared 0.3 /mu < x < 1.1 /mu (inverse microns). condition = (x>=0.3) & (x<=1.1) if len(a_x[condition]) > 0 : y = x[condition] a_x[condition] = 0.574 * y**1.61 b_x[condition] = -0.527 * y**1.61 # Dust in optical/NIR 1.1 /mu < x < 3.3 /mu region. condition = (x >=1.1) & (x<=3.3) if len(a_x[condition])>0: y = x[condition] - 1.82 a_x[condition] = 1 + 0.17699*y - 0.50447*y**2 - 0.02427*y**3 + 0.72085*y**4 a_x[condition] = a_x[condition] + 0.01979*y**5 - 0.77530*y**6 + 0.32999*y**7 b_x[condition] = 1.41338*y + 2.28305*y**2 + 1.07233*y**3 - 5.38434*y**4 b_x[condition] = b_x[condition] - 0.62251*y**5 + 5.30260*y**6 - 2.09002*y**7 # Dust in ultraviolet and UV (if needed for high-z) 3.3 /mu< x< 8 /mu. condition = (x>=3.3) & (x<5.9) if len(a_x[condition])>0: y = x[condition] a_x[condition] = 1.752 - 0.316*y - 0.104/((y-4.67)**2 + 0.341) b_x[condition] = -3.090 + 1.825*y + 1.206/((y-4.62)**2 + 0.263) condition = (x>5.9) & (x<8) if len(a_x[condition])>0: y = x[condition] Fa_x = n.empty(len(a_x[condition]), dtype=float) Fb_x = n.empty(len(a_x[condition]), dtype=float) Fa_x = -0.04473*(y-5.9)**2 - 0.009779*(y-5.9)**3 Fb_x = 0.2130*(y-5.9)**2 + 0.1207*(y-5.9)**3 a_x[condition] = 1.752 - 0.316*y - 0.104/((y-4.67)**2 + 0.341) + Fa_x b_x[condition] = -3.090 + 1.825*y + 1.206/((y-4.62)**2 + 0.263) + Fb_x # Dust in far UV (if needed for high-z) 8 /mu < x < 10 /mu region. condition = (x >= 8) & (x<= 10.) if len(a_x[condition])>0: y = x[condition]-8.0 a_x[condition] = -1.073 - 0.628*(y) + 0.137*(y)**2 - 0.070*(y)**3 b_x[condition] = 13.670 + 4.257*(y) - 0.420*(y)**2 + 0.374*(y)**3 return a_x, b_x
fe3b601823c6a418c550ad220bad597f52e218ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/91/fe3b601823c6a418c550ad220bad597f52e218ef/Sed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 6743, 49, 378, 12, 2890, 16, 341, 7882, 275, 33, 7036, 4672, 3536, 8695, 279, 12, 92, 13, 471, 324, 12, 92, 13, 364, 385, 9611, 302, 641, 938, 18, 261, 92, 33, 21, 19, 91, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6743, 49, 378, 12, 2890, 16, 341, 7882, 275, 33, 7036, 4672, 3536, 8695, 279, 12, 92, 13, 471, 324, 12, 92, 13, 364, 385, 9611, 302, 641, 938, 18, 261, 92, 33, 21, 19, 91, ...
self._p_changed = 1 util.redirect(RESPONSE, 'atse_editor',
self._schemas[schema_id] = S util.redirect(RESPONSE, schema_template,
def atse_fieldMoveLeft(self, schema_id, name, RESPONSE=None): """ move a field of a schemata to the left""" S = self.atse_getSchemaById(schema_id) S.moveField(name, -1) self._p_changed = 1 util.redirect(RESPONSE, 'atse_editor', self.translate('atse_field_moved_up', default='Field moved up'), schemata=S[name].schemata, schema_id=schema_id, field=name)
9b0c0ef734f88dbdf55f2ae8fbea0706d81ca338 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/9b0c0ef734f88dbdf55f2ae8fbea0706d81ca338/SchemaEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 622, 307, 67, 1518, 7607, 3910, 12, 2890, 16, 1963, 67, 350, 16, 508, 16, 20645, 33, 7036, 4672, 3536, 3635, 279, 652, 434, 279, 30140, 396, 358, 326, 2002, 8395, 348, 273, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 622, 307, 67, 1518, 7607, 3910, 12, 2890, 16, 1963, 67, 350, 16, 508, 16, 20645, 33, 7036, 4672, 3536, 3635, 279, 652, 434, 279, 30140, 396, 358, 326, 2002, 8395, 348, 273, 365, 18, ...
print >>self.stdout, """alias [name [command [parameter parameter ...] ]]
print >>self.stdout, """alias [name [command [parameter parameter ...]]]
def help_alias(self): print >>self.stdout, """alias [name [command [parameter parameter ...] ]]
f856eefea3958fc4346d1e2b34b70f05aa053bdc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/f856eefea3958fc4346d1e2b34b70f05aa053bdc/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 67, 4930, 12, 2890, 4672, 1172, 1671, 2890, 18, 10283, 16, 3536, 4930, 306, 529, 306, 3076, 306, 6775, 1569, 1372, 65, 12011, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2809, 67, 4930, 12, 2890, 4672, 1172, 1671, 2890, 18, 10283, 16, 3536, 4930, 306, 529, 306, 3076, 306, 6775, 1569, 1372, 65, 12011, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return Inf
return _Inf
def ln(self, context=None): """Returns the natural (base e) logarithm of self."""
ebab68ad25421add045049bc0a87fbe7000ec3f7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/ebab68ad25421add045049bc0a87fbe7000ec3f7/decimal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7211, 12, 2890, 16, 819, 33, 7036, 4672, 3536, 1356, 326, 15145, 261, 1969, 425, 13, 613, 31249, 434, 365, 12123, 2, 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, 7211, 12, 2890, 16, 819, 33, 7036, 4672, 3536, 1356, 326, 15145, 261, 1969, 425, 13, 613, 31249, 434, 365, 12123, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
return interfaces.ActiveStatus return interfaces.InactiveStatus
return ActiveStatus return InactiveStatus
def __get__(self, inst, klass): registration = inst if registration is None: return self
7e5cbe1942b8f9364be5de8c9301955e1d09f59d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9537/7e5cbe1942b8f9364be5de8c9301955e1d09f59d/back35.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 972, 12, 2890, 16, 1804, 16, 7352, 4672, 7914, 273, 1804, 309, 7914, 353, 599, 30, 327, 365, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 588, 972, 12, 2890, 16, 1804, 16, 7352, 4672, 7914, 273, 1804, 309, 7914, 353, 599, 30, 327, 365, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
except UnboundLocalError:
except NameError:
def inner(): return y
26bf803ab2e93ea2b3170492061f2248a8e6559d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/26bf803ab2e93ea2b3170492061f2248a8e6559d/test_scope.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3443, 13332, 327, 677, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3443, 13332, 327, 677, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
self.string = list(string)
self.index = 0 self.string = string
def __init__(self, string):
b42c811cba34ab2f6d1db22aed5bc7f0dab153bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b42c811cba34ab2f6d1db22aed5bc7f0dab153bb/sre_parse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 533, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 533, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
elif arch == "i386":
elif arch == "i386\n":
def GetVersion(Key): # # Only read the file if an environment variable is "missing" (they # usually all are, ok), and only read it once. # #print("WriteVariablesIntoEnvironment:3") Value = Versions.get(Key) if Value: return Value # # CM3VERSION d5.7.1 # CM3VERSIONNUM 050701 # CM3LASTCHANGED 2009-01-21 # RegExp = re.compile("(" + "|".join(Versions.keys()) + ") (.+)$", re.IGNORECASE) ShFilePath = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "version") for Line in open(ShFilePath): Match = RegExp.match(Line) if Match: MatchKey = Match.group(1) # # We are here because one of them wasn't found, but we should be # sure only to overwrite what we don't have. # if not Versions[MatchKey]: Value = Match.group(2) Versions[MatchKey] = Value exec("%s = \"%s\"" % (MatchKey, Value), locals(), globals()) # # Make sure we found every key in the file (at least those # not defined in the environment) # MissingKey = None for Item in Versions.iteritems(): #print(Item) if Item[1] is None: MissingKey = Item[0] File = __file__ sys.stderr.write("%(File)s: %(MissingKey)s not found in %(ShFilePath)s\n" % vars()) if MissingKey: sys.exit(1) return Versions.get(Key)
b6421bbe23f654b6e3c65b2ac6c03d22cdb6498d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9328/b6421bbe23f654b6e3c65b2ac6c03d22cdb6498d/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1444, 12, 653, 4672, 468, 468, 5098, 855, 326, 585, 309, 392, 3330, 2190, 353, 315, 7337, 6, 261, 451, 402, 468, 11234, 777, 854, 16, 1529, 3631, 471, 1338, 855, 518, 3647, 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, 968, 1444, 12, 653, 4672, 468, 468, 5098, 855, 326, 585, 309, 392, 3330, 2190, 353, 315, 7337, 6, 261, 451, 402, 468, 11234, 777, 854, 16, 1529, 3631, 471, 1338, 855, 518, 3647, 18, ...
xmlconfig = XMLConfigParser(join(abspath(dirname(__file__)),"module","config","core.xml"))
xmlconfig = XMLConfigParser(join(abspath(dirname(__file__)),"module","config","core.xml"), join(abspath(dirname(__file__)),"module","config","core_default.xml"))
def white(string): return "\033[1;37m" + string + "\033[0m"
fbee6325c4079768f330b51fa125411c8ab2967b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/fbee6325c4079768f330b51fa125411c8ab2967b/pyLoadCli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9578, 12, 1080, 4672, 327, 1548, 15265, 63, 21, 31, 6418, 81, 6, 397, 533, 397, 1548, 15265, 63, 20, 81, 6, 225, 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, 9578, 12, 1080, 4672, 327, 1548, 15265, 63, 21, 31, 6418, 81, 6, 397, 533, 397, 1548, 15265, 63, 20, 81, 6, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
0x0404: "zh_TW", 0x0804: "zh_CN",
0x0436: "af_ZA", 0x041c: "sq_AL", 0x0401: "ar_SA", 0x0801: "ar_IQ", 0x0c01: "ar_EG", 0x1001: "ar_LY", 0x1401: "ar_DZ", 0x1801: "ar_MA", 0x1c01: "ar_TN", 0x2001: "ar_OM", 0x2401: "ar_YE", 0x2801: "ar_SY", 0x2c01: "ar_JO", 0x3001: "ar_LB", 0x3401: "ar_KW", 0x3801: "ar_AE", 0x3c01: "ar_BH", 0x4001: "ar_QA", 0x042b: "hy_AM", 0x042c: "az_AZ", 0x082c: "az_AZ", 0x042d: "eu_ES", 0x0423: "be_BY", 0x0445: "bn_IN", 0x201a: "bs_BA", 0x141a: "bs_BA", 0x047e: "br_FR", 0x0402: "bg_BG", 0x0403: "ca_ES", 0x0004: "zh_CHS", 0x0404: "zh_TW", 0x0804: "zh_CN", 0x0c04: "zh_HK", 0x1004: "zh_SG", 0x1404: "zh_MO", 0x7c04: "zh_CHT", 0x041a: "hr_HR", 0x101a: "hr_BA", 0x0405: "cs_CZ",
def getpreferredencoding(do_setlocale = True): """Return the charset that the user is likely using, according to the system configuration.""" if do_setlocale: oldloc = setlocale(LC_CTYPE) setlocale(LC_CTYPE, "") result = nl_langinfo(CODESET) setlocale(LC_CTYPE, oldloc) return result else: return nl_langinfo(CODESET)
494d0666bbd1c51595495abf757828b8dafb2dd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/494d0666bbd1c51595495abf757828b8dafb2dd7/locale.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23616, 5999, 12, 2896, 67, 542, 6339, 273, 1053, 4672, 3536, 990, 326, 4856, 716, 326, 729, 353, 10374, 1450, 16, 4888, 358, 326, 2619, 1664, 12123, 309, 741, 67, 542, 6339, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23616, 5999, 12, 2896, 67, 542, 6339, 273, 1053, 4672, 3536, 990, 326, 4856, 716, 326, 729, 353, 10374, 1450, 16, 4888, 358, 326, 2619, 1664, 12123, 309, 741, 67, 542, 6339, 30, 1...
_v03 and '_my_state' or '_state',
_noInstanceState and '_my_state' or '_state',
def __delattr__( klas, attrname): 'deleting attributes of the klas comes here - try restore the StaticType' try: st = klas.StaticType[ attrname] except KeyError: _Base.__metaclass__.__delattr__( klas, attrname) else: setattr( klas, attrname, st)
11b821f504d2225414d6487ef5b3b2c61c246af6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10808/11b821f504d2225414d6487ef5b3b2c61c246af6/sa2static.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3771, 1747, 972, 12, 417, 9521, 16, 1604, 529, 4672, 296, 19003, 310, 1677, 434, 326, 417, 9521, 14535, 2674, 300, 775, 5217, 326, 10901, 559, 11, 775, 30, 384, 273, 417, 9521, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3771, 1747, 972, 12, 417, 9521, 16, 1604, 529, 4672, 296, 19003, 310, 1677, 434, 326, 417, 9521, 14535, 2674, 300, 775, 5217, 326, 10901, 559, 11, 775, 30, 384, 273, 417, 9521, 1...
autotexts.append( t )
autotexts.append( t )
def pie( self, explode = None, colors = None, autopct = None, pctdistance = 0.6, shadow = False ):
e1fab6a8b4522a8c8de872b610947c90d87e201a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/e1fab6a8b4522a8c8de872b610947c90d87e201a/PieGraph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 1385, 12, 365, 16, 3172, 273, 599, 16, 5740, 273, 599, 16, 2059, 556, 299, 273, 599, 16, 19857, 8969, 273, 374, 18, 26, 16, 10510, 273, 1083, 262, 30, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 293, 1385, 12, 365, 16, 3172, 273, 599, 16, 5740, 273, 599, 16, 2059, 556, 299, 273, 599, 16, 19857, 8969, 273, 374, 18, 26, 16, 10510, 273, 1083, 262, 30, 2, -100, -100, -100, -100,...
list3 = []
def exclusion_list(): prelist = [] load_pages() for page, path in exclusion_file_list(): f = codecs.open(path, "r", 'utf-8') data = f.read() f.close() # wikipedia:en:Wikipedia:Mirrors and forks prelist += re.findall("(?i)url\s*=\s*<nowiki>(?:http://)?(.*?)</nowiki>", data) prelist += re.findall("(?i)\*\s*Site:\s*\[?(?:http://)?(.*?)\]?", data) # wikipedia:it:Wikipedia:Cloni if 'copyright/it/Cloni.txt' in path: prelist += re.findall('(?i)^==(?!=)\s*\[?\s*(?:<nowiki>)?(?:http://)?(.*?)(?:</nowiki>)?\s*\]?\s*==', data) #prelist += re.findall("(?i)<h2>\s*(?:http://)?(.*?)\s*</h2>", data) list1 = [] for entry in prelist: list1 += entry.split(", ") list2 = [] for entry in list1: list2 += entry.split("and ") list3 = [] for entry in list2: entry = re.sub("http://", "", entry) if entry: if '/' in entry: list3 += [re.sub(" .*", "", entry[:entry.rfind('/')])] else: list3 += [re.sub(" .*", "", entry)] #list3 += [re.sub("/.*", "", entry)] f = codecs.open('copyright/exclusion_list.txt', 'r','utf-8') list3 += re.sub(" ?#.*","",f.read()).splitlines() f.close() return list3
3beea3ddf6e89467781f05f3ad781372015c8411 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3beea3ddf6e89467781f05f3ad781372015c8411/copyright.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21244, 67, 1098, 13332, 675, 1098, 273, 5378, 1262, 67, 7267, 1435, 364, 1363, 16, 589, 316, 21244, 67, 768, 67, 1098, 13332, 284, 273, 17437, 18, 3190, 12, 803, 16, 315, 86, 3113, 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, 21244, 67, 1098, 13332, 675, 1098, 273, 5378, 1262, 67, 7267, 1435, 364, 1363, 16, 589, 316, 21244, 67, 768, 67, 1098, 13332, 284, 273, 17437, 18, 3190, 12, 803, 16, 315, 86, 3113, 296...
menu.append((_('Reveal File'), lambda : app.widgetapp.open_file(item.video_path)))
def play_and_stop(): app.playback_manager.start_with_items([item])
e96486d64407d2add2a6b90d5f642752ae931928 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/e96486d64407d2add2a6b90d5f642752ae931928/itemcontextmenu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6599, 67, 464, 67, 5681, 13332, 595, 18, 1601, 823, 67, 4181, 18, 1937, 67, 1918, 67, 3319, 3816, 1726, 5717, 2, 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, 6599, 67, 464, 67, 5681, 13332, 595, 18, 1601, 823, 67, 4181, 18, 1937, 67, 1918, 67, 3319, 3816, 1726, 5717, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"""Given a reference line, attepmt to locate instances of citation
"""Given a reference line, attempt to locate instances of citation
def standardize_and_markup_numeration_of_citations_in_line(line): """Given a reference line, attepmt to locate instances of citation 'numeration' in the line. Upon finding some numeration, re-arrange it into a standard order, and mark it up with tags. Will process numeration in the following order: Delete the colon and expressions such as Serie, vol, V. inside the pattern <serie : volume> E.g.: Replace the string 'Series A, Vol 4' with 'A 4' Then, the 4 main numeration patterns: Pattern 0 (was pattern 3): <x, vol, page, year> <v, [FS]?, p, y> <[FS]?, v, p, y> Pattern 1: <x, vol, year, page> <v, [FS]?, y, p> <[FS]?, v, y, p> Pattern 2: <vol, serie, year, page> <v, s, [FS]?, y, p> <v, [FS]?, s, y, p Pattern 4: <vol, serie, page, year> <v, s, [FS]?, p, y> <v, [FS]?, s, p, y> @param line: (string) the reference line. @return: (string) the reference line after numeration has been checked and possibly recognized/marked-up. """ line = re_strip_series_and_volume_labels[0].sub(re_strip_series_and_volume_labels[1], line) line = re_numeration_vol_nucphys_page_yr[0].sub(re_numeration_vol_nucphys_page_yr[1], line) line = re_numeration_nucphys_vol_page_yr[0].sub(re_numeration_nucphys_vol_page_yr[1], line) line = re_numeration_vol_nucphys_yr_page[0].sub(re_numeration_vol_nucphys_yr_page[1], line) line = re_numeration_nucphys_vol_yr_page[0].sub(re_numeration_nucphys_vol_yr_page[1], line) line = re_numeration_vol_series_nucphys_yr_page[0].sub(re_numeration_vol_series_nucphys_yr_page[1], line) line = re_numeration_vol_nucphys_series_yr_page[0].sub(re_numeration_vol_nucphys_series_yr_page[1], line) line = re_numeration_vol_series_nucphys_page_yr[0].sub(re_numeration_vol_series_nucphys_page_yr[1], line) line = re_numeration_vol_nucphys_series_page_yr[0].sub(re_numeration_vol_nucphys_series_page_yr[1], line) line = re_numeration_yr_vol_page[0].sub(re_numeration_yr_vol_page[1], \ line) return line
4f63bfe58dc96cfe23ab0f0c42cbb2980b2e7a6e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/4f63bfe58dc96cfe23ab0f0c42cbb2980b2e7a6e/refextract.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4529, 554, 67, 464, 67, 15056, 67, 2107, 7067, 67, 792, 67, 71, 18282, 67, 267, 67, 1369, 12, 1369, 4672, 3536, 6083, 279, 2114, 980, 16, 4395, 358, 10627, 3884, 434, 21145, 296, 2107,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4529, 554, 67, 464, 67, 15056, 67, 2107, 7067, 67, 792, 67, 71, 18282, 67, 267, 67, 1369, 12, 1369, 4672, 3536, 6083, 279, 2114, 980, 16, 4395, 358, 10627, 3884, 434, 21145, 296, 2107,...
return "(%s%s %s)" % (n.value, props(), o(n[0],i,c))
return "(%s%s %s)" % (n.value.upper(), props(), o(n[0],i,c))
def props(): if c["include_props"]: props_to_include = [x for x in ("lineno", "start", "end", "readOnly") if hasattr(n, x)] if len(props_to_include) > 0: s = " (@" for prop in props_to_include: s += " (%s %s)" % (prop, getattr(n, prop)) return s +")" return ""
df699fbcef0551b57fbcf593691a41515ef3b880 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4710/df699fbcef0551b57fbcf593691a41515ef3b880/sexp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3458, 13332, 309, 276, 9614, 6702, 67, 9693, 11929, 30, 3458, 67, 869, 67, 6702, 273, 306, 92, 364, 619, 316, 7566, 17782, 3113, 315, 1937, 3113, 315, 409, 3113, 315, 896, 3386, 7923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3458, 13332, 309, 276, 9614, 6702, 67, 9693, 11929, 30, 3458, 67, 869, 67, 6702, 273, 306, 92, 364, 619, 316, 7566, 17782, 3113, 315, 1937, 3113, 315, 409, 3113, 315, 896, 3386, 7923, ...
self.ids.append(gutils.trim(element,'<a href="view.php?page=film&fid=','">')) self.titles.append(gutils.trim(element,">","</a>"))
elementid = gutils.digits_only( gutils.trim(element,'<a href="view.php?page=film&fid=','">') ) if elementid != 0: self.ids.append(elementid) self.titles.append(gutils.trim(element,">","</a>"))
def get_searches(self): elements = string.split(self.page,"<br>")
6dd280707e2a1c5e8b7fb4161976b0c377d92880 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2687/6dd280707e2a1c5e8b7fb4161976b0c377d92880/PluginMovieOFDb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3072, 281, 12, 2890, 4672, 2186, 273, 533, 18, 4939, 12, 2890, 18, 2433, 10837, 32, 2848, 2984, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 3072, 281, 12, 2890, 4672, 2186, 273, 533, 18, 4939, 12, 2890, 18, 2433, 10837, 32, 2848, 2984, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
indexer.update([change.object], after_index, transaction, flush)
indexer.update([change.object], after_index, use_transaction, flush)
def after_index(obj): if verbose: sys.stdout.write('.') sys.stdout.flush()
8cabc0f58df244c2ca465778c8dcf121434fc38d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4645/8cabc0f58df244c2ca465778c8dcf121434fc38d/index.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1839, 67, 1615, 12, 2603, 4672, 309, 3988, 30, 2589, 18, 10283, 18, 2626, 2668, 1093, 13, 2589, 18, 10283, 18, 11330, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1839, 67, 1615, 12, 2603, 4672, 309, 3988, 30, 2589, 18, 10283, 18, 2626, 2668, 1093, 13, 2589, 18, 10283, 18, 11330, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
7/2 1/2 3 4/3 2.82842712475 1
(7/2) (1/2) 3 (4/3) 2.82842712475 1
def test(): '''\ Test function for rat module. The expected output is (module some differences in floating precission): -1 -1 0 0L 0.1 (0.1+0j) [Rat(1,2), Rat(-3,10), Rat(1,25), Rat(1,4)] [Rat(-3,10), Rat(1,25), Rat(1,4), Rat(1,2)] 0 11/10 11/10 1.1 OK 2 1.5 3/2 (1.5+1.5j) 15707963/5000000 2 2 2.0 (2+0j) 4 0 4 1 4 0 3.5 0.5 3.0 1.33333333333 2.82842712475 1 7/2 1/2 3 4/3 2.82842712475 1 (3.5+1.5j) (0.5-1.5j) (3+3j) (0.666666666667-0.666666666667j) (1.43248815986+2.43884761145j) 1 1.5 1 1.5 (1.5+0j) 3.5 -0.5 3.0 0.75 2.25 -1 3.0 0.0 2.25 1.0 1.83711730709 0 3.0 0.0 2.25 1.0 1.83711730709 1 (3+1.5j) -1.5j (2.25+2.25j) (0.5-0.5j) (1.50768393746+1.04970907623j) -1 3/2 1 1.5 (1.5+0j) 7/2 -1/2 3 3/4 9/4 -1 3.0 0.0 2.25 1.0 1.83711730709 -1 3 0 9/4 1 1.83711730709 0 (3+1.5j) -1.5j (2.25+2.25j) (0.5-0.5j) (1.50768393746+1.04970907623j) -1 (1.5+1.5j) (1.5+1.5j) (3.5+1.5j) (-0.5+1.5j) (3+3j) (0.75+0.75j) 4.5j -1 (3+1.5j) 1.5j (2.25+2.25j) (1+1j) (1.18235814075+2.85446505899j) 1 (3+1.5j) 1.5j (2.25+2.25j) (1+1j) (1.18235814075+2.85446505899j) 1 (3+3j) 0j 4.5j (1+0j) (-0.638110484918+0.705394566962j) 0 ''' print rat(-1L, 1) print rat(1, -1) a = rat(1, 10) print int(a), long(a), float(a), complex(a) b = rat(2, 5) l = [a+b, a-b, a*b, a/b] print l l.sort() print l print rat(0, 1) print a+1 print a+1L print a+1.0 try: print rat(1, 0) raise SystemError, 'should have been ZeroDivisionError' except ZeroDivisionError: print 'OK' print rat(2), rat(1.5), rat(3, 2), rat(1.5+1.5j), rat(31415926,10000000) list = [2, 1.5, rat(3,2), 1.5+1.5j] for i in list: print i, if type(i) is not ComplexType: print int(i), float(i), print complex(i) print for j in list: print i + j, i - j, i * j, i / j, i ** j, cmp(i, j)
22442234d27ccf460643cc9f5ef327c3f778d61e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/22442234d27ccf460643cc9f5ef327c3f778d61e/Rat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 875, 8314, 7766, 445, 364, 15183, 1605, 18, 225, 1021, 2665, 876, 353, 261, 2978, 2690, 16440, 316, 13861, 13382, 19710, 4672, 300, 21, 300, 21, 374, 374, 48, 374, 18, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 13332, 875, 8314, 7766, 445, 364, 15183, 1605, 18, 225, 1021, 2665, 876, 353, 261, 2978, 2690, 16440, 316, 13861, 13382, 19710, 4672, 300, 21, 300, 21, 374, 374, 48, 374, 18, 21, ...
leveltuple = (1, 0, 2, 3, 4,)
leveltuple = (1, 0, 2, 3,)
def do(self): f = self.doDownload() # FIXME: we should probably read in the patch directly now # that we aren't just applying in a pipeline
0e2a9a8e7528449814094d5a1e4efcb437729517 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/0e2a9a8e7528449814094d5a1e4efcb437729517/source.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 12, 2890, 4672, 284, 273, 365, 18, 2896, 7109, 1435, 468, 9852, 30, 732, 1410, 8656, 855, 316, 326, 4729, 5122, 2037, 468, 716, 732, 11526, 1404, 2537, 13650, 316, 279, 5873, 2, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 12, 2890, 4672, 284, 273, 365, 18, 2896, 7109, 1435, 468, 9852, 30, 732, 1410, 8656, 855, 316, 326, 4729, 5122, 2037, 468, 716, 732, 11526, 1404, 2537, 13650, 316, 279, 5873, 2, -...
self.downloads.append(d)
self.get_downloads().append(d)
def add_download(self, d): max_queued = int(self.get_setting('max_queued', 0)) if max_queued and (len(self.downloads) >= max_queued): raise Exception('Too many downloads queued (see "max_queued" config var)')
a1911aafcb90976a58220f7b22d873526957c643 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12636/a1911aafcb90976a58220f7b22d873526957c643/manager.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 7813, 12, 2890, 16, 302, 4672, 943, 67, 19499, 273, 509, 12, 2890, 18, 588, 67, 8920, 2668, 1896, 67, 19499, 2187, 374, 3719, 309, 943, 67, 19499, 471, 261, 1897, 12, 2890, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 7813, 12, 2890, 16, 302, 4672, 943, 67, 19499, 273, 509, 12, 2890, 18, 588, 67, 8920, 2668, 1896, 67, 19499, 2187, 374, 3719, 309, 943, 67, 19499, 471, 261, 1897, 12, 2890, ...
prefs = PimpPreferences() prefs.check()
prefs = PimpPreferences(**prefargs) rv = prefs.check() if rv: sys.stdout.write(rv)
def _run(mode, verbose, force, args): """Engine for the main program""" prefs = PimpPreferences() prefs.check() db = PimpDatabase(prefs) db.appendURL(prefs.pimpDatabase) if mode == 'dump': db.dump(sys.stdout) elif mode =='list': if not args: args = db.listnames() print "%-20.20s\t%s" % ("Package", "Description") print for pkgname in args: pkg = db.find(pkgname) if pkg: description = pkg.description() pkgname = pkg.fullname() else: description = 'Error: no such package' print "%-20.20s\t%s" % (pkgname, description) if verbose: print "\tHome page:\t", pkg.homepage() print "\tDownload URL:\t", pkg.downloadURL() elif mode =='status': if not args: args = db.listnames() print "%-20.20s\t%s\t%s" % ("Package", "Installed", "Message") print for pkgname in args: pkg = db.find(pkgname) if pkg: status, msg = pkg.installed() pkgname = pkg.fullname() else: status = 'error' msg = 'No such package' print "%-20.20s\t%-9.9s\t%s" % (pkgname, status, msg) if verbose and status == "no": prereq = pkg.prerequisites() for pkg, msg in prereq: if not pkg: pkg = '' else: pkg = pkg.fullname() print "%-20.20s\tRequirement: %s %s" % ("", pkg, msg) elif mode == 'install': if not args: print 'Please specify packages to install' sys.exit(1) inst = PimpInstaller(db) for pkgname in args: pkg = db.find(pkgname) if not pkg: print '%s: No such package' % pkgname continue list, messages = inst.prepareInstall(pkg, force) if messages and not force: print "%s: Not installed:" % pkgname for m in messages: print "\t", m else: if verbose: output = sys.stdout else: output = None messages = inst.install(list, output) if messages: print "%s: Not installed:" % pkgname for m in messages: print "\t", m
f8bf4615a43803c5eb5e55f9fb649d1cfda0a270 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f8bf4615a43803c5eb5e55f9fb649d1cfda0a270/pimp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 12, 3188, 16, 3988, 16, 2944, 16, 833, 4672, 3536, 4410, 364, 326, 2774, 5402, 8395, 225, 15503, 273, 453, 14532, 12377, 12, 636, 25724, 1968, 13, 5633, 273, 15503, 18, 1893, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2681, 12, 3188, 16, 3988, 16, 2944, 16, 833, 4672, 3536, 4410, 364, 326, 2774, 5402, 8395, 225, 15503, 273, 453, 14532, 12377, 12, 636, 25724, 1968, 13, 5633, 273, 15503, 18, 1893, ...
errors.append(StructuringError(estr, heading_token))
errors.append(StructuringError(estr, heading_token.startline))
def _add_section(doc, heading_token, stack, indent_stack, errors, warnings): """Add a new section to the DOM tree, with the given heading.""" if indent_stack[-1] == None: indent_stack[-1] = heading_token.indent elif indent_stack[-1] != heading_token.indent: estr = "Improper heading indentation." errors.append(StructuringError(estr, heading_token)) # Check for errors. for tok in stack[2:]: if tok.tagName != "section": estr = "Headings must occur at the top level." errors.append(StructuringError(estr, heading_token)) break if (heading_token.level+2) > len(stack): estr = "Wrong underline character for heading." errors.append(StructuringError(estr, heading_token)) # Pop the appropriate number of headings so we're at the # correct level. stack[heading_token.level+2:] = [] indent_stack[heading_token.level+2:] = [] # Colorize the heading head = _colorize(doc, heading_token, errors, warnings, 'heading') # Add the section's and heading's DOM elements. sec = doc.createElement("section") stack[-1].appendChild(sec) stack.append(sec) sec.appendChild(head) indent_stack.append(None)
7bf7c136593a0f12e906094a55f7b8f591c5abaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7bf7c136593a0f12e906094a55f7b8f591c5abaf/epytext.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 3464, 12, 2434, 16, 11053, 67, 2316, 16, 2110, 16, 3504, 67, 3772, 16, 1334, 16, 5599, 4672, 3536, 986, 279, 394, 2442, 358, 326, 4703, 2151, 16, 598, 326, 864, 11053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 67, 3464, 12, 2434, 16, 11053, 67, 2316, 16, 2110, 16, 3504, 67, 3772, 16, 1334, 16, 5599, 4672, 3536, 986, 279, 394, 2442, 358, 326, 4703, 2151, 16, 598, 326, 864, 11053, ...
a = self.dispatch['return'](self.cur[-2], t)
a = self.dispatch['return'](self, self.cur[-2], t)
def simulate_cmd_complete(self): t = self.get_time() - self.t while self.cur[-1]: # We *can* cause assertion errors here if # dispatch_trace_return checks for a frame match! a = self.dispatch['return'](self.cur[-2], t) t = 0 self.t = self.get_time() - t
e5b78a4bafbe2eee27f64fd9f04f745a2a189bd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e5b78a4bafbe2eee27f64fd9f04f745a2a189bd3/profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20089, 67, 4172, 67, 6226, 12, 2890, 4672, 268, 273, 365, 18, 588, 67, 957, 1435, 300, 365, 18, 88, 1323, 365, 18, 1397, 18919, 21, 14542, 468, 1660, 380, 4169, 14, 4620, 11240, 1334, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20089, 67, 4172, 67, 6226, 12, 2890, 4672, 268, 273, 365, 18, 588, 67, 957, 1435, 300, 365, 18, 88, 1323, 365, 18, 1397, 18919, 21, 14542, 468, 1660, 380, 4169, 14, 4620, 11240, 1334, ...
if isinstance(s, None):
if s is None:
def form_argument(self, x): if x.shape(): # Get symmetry mapping if any e = x.element() s = None if isinstance(e, TensorElement): s = e.symmetry() if isinstance(s, None): s = {} # Map component throught the symmetry mapping c = self.component() c = s.get(c, c) return x[c] return x
418382bf7ecf558be0f2c4a19e3050538d2396cf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/624/418382bf7ecf558be0f2c4a19e3050538d2396cf/transformations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 646, 67, 3446, 12, 2890, 16, 619, 4672, 309, 619, 18, 4867, 13332, 468, 968, 26144, 2874, 309, 1281, 425, 273, 619, 18, 2956, 1435, 272, 273, 599, 309, 1549, 12, 73, 16, 13422, 1046, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 646, 67, 3446, 12, 2890, 16, 619, 4672, 309, 619, 18, 4867, 13332, 468, 968, 26144, 2874, 309, 1281, 425, 273, 619, 18, 2956, 1435, 272, 273, 599, 309, 1549, 12, 73, 16, 13422, 1046, ...
box = (xd, y_diff, x, (y-y_diff))
box = (int(xd), int(y_diff), int(x), int(y-y_diff))
def create_size(self, photosize): if self.size_exists(photosize): return if not os.path.isdir(self.cache_path()): os.makedirs(self.cache_path()) try: im = Image.open(self.get_image_filename()) except IOError: return if im.size == photosize.size(): shutil.copy(self.get_image_filename(), self._get_SIZE_path(photosize)) return cur_width, cur_height = im.size new_width, new_height = photosize.size() if photosize.crop: ratio = max(float(new_width)/cur_width,float(new_height)/cur_height) x = (cur_width * ratio) y = (cur_height * ratio) xd = abs(new_width - x) yd = abs(new_height - y) x_diff = int(xd / 2) y_diff = int(yd / 2) if self.crop_from == 'top': box = (x_diff, 0, (x-x_diff), new_height) elif self.crop_from == 'left': box = (0, y_diff, new_width, (y-y_diff)) elif self.crop_from == 'bottom': box = (x_diff, yd, (x-x_diff), y) # y - yd = new_height elif self.crop_from == 'right': box = (xd, y_diff, x, (y-y_diff)) # x - xd = new_width else: box = (x_diff, y_diff, (x-x_diff), (y-y_diff)) resized = im.resize((int(x), int(y)), Image.ANTIALIAS).crop(box) else: if not new_width == 0 and not new_height == 0: if cur_width > cur_height: ratio = float(new_width)/cur_width else: ratio = float(new_height)/cur_height else: if new_width == 0: ratio = float(new_height)/cur_height else: ratio = float(new_width)/cur_width resized = im.resize((int(cur_width*ratio), int(cur_height*ratio)), Image.ANTIALIAS) if self.filter_set is not None: filter_set = self.filter_set.filters.all() elif photosize.filter_set is not None: filter_set = list(photosize.filter_set.filters.all()) else: filter_set = None if filter_set is not None: for f in filter_set: filter = getattr(ImageFilter, f.name, None) if filter is not None: resized = resized.filter(filter) resized_filename = getattr(self, "get_%s_path" % photosize.name)() try: if im.format == 'JPEG': resized.save(resized_filename, 'JPEG', quality=photosize.quality, optimize=True) else: resized.save(resized_filename) except IOError, e: if os.path.isfile(resized_filename): os.unlink(resized_filename) raise e
ea960d93c117c05d566049c4805cfbfaedb62662 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10711/ea960d93c117c05d566049c4805cfbfaedb62662/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1467, 12, 2890, 16, 18185, 554, 4672, 309, 365, 18, 1467, 67, 1808, 12, 29121, 554, 4672, 327, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 2890, 18, 2493, 67, 803, 1435, 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, 752, 67, 1467, 12, 2890, 16, 18185, 554, 4672, 309, 365, 18, 1467, 67, 1808, 12, 29121, 554, 4672, 327, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 2890, 18, 2493, 67, 803, 1435, 467...
""" Tear down test fixtures """
""" Tear down test fixtures. """
def tearDown(self): """ Tear down test fixtures """ scaffold.mock_restore()
33a5bfc655a6417210c5c80d9f942714bf596533 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4939/33a5bfc655a6417210c5c80d9f942714bf596533/test_daemon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 268, 2091, 4164, 12, 2890, 4672, 3536, 399, 2091, 2588, 1842, 23302, 18, 3536, 20992, 18, 22851, 67, 13991, 1435, 2, 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, 268, 2091, 4164, 12, 2890, 4672, 3536, 399, 2091, 2588, 1842, 23302, 18, 3536, 20992, 18, 22851, 67, 13991, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
roles = [local_roles_map[name], roles_map[pseudoperm]]
roles = (local_roles_map[name],) + roles_map[pseudoperm]
def makeCMFWikiPage(id, title, file): ob = CMFWikiPage(file, __name__=id) ob.title = title ob.parents = [] username = getSecurityManager().getUser().getUserName() ob.manage_addLocalRoles(username, ['Owner']) ob.setSubOwner('both') initPageMetadata(ob) for name, perm in ob._perms.items(): pseudoperm = default_perms[name] local_roles_map = ob._local_roles_map roles_map = ob._roles_map roles = [local_roles_map[name], roles_map[pseudoperm]] ob.manage_permission(perm, roles=roles) return ob
2262b1426eb2bef7e8d92c63a8c506f11ee616d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/2262b1426eb2bef7e8d92c63a8c506f11ee616d3/CMFWikiPage.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 9611, 42, 25438, 1964, 12, 350, 16, 2077, 16, 585, 4672, 3768, 273, 385, 13542, 25438, 1964, 12, 768, 16, 1001, 529, 972, 33, 350, 13, 3768, 18, 2649, 273, 2077, 3768, 18, 12606,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 9611, 42, 25438, 1964, 12, 350, 16, 2077, 16, 585, 4672, 3768, 273, 385, 13542, 25438, 1964, 12, 768, 16, 1001, 529, 972, 33, 350, 13, 3768, 18, 2649, 273, 2077, 3768, 18, 12606,...
'state' : fields.selection([('pending','Pending'),('processing','Processing'),('done','Done')], 'Status', readonly=True),
'state' : fields.selection([('Running','running'),('Error','error')], 'Status', readonly=True),
def _customer_gender_code(self, cr, uid, ids, name, args, context={}): result ={} for id in ids: code="" cust_gender = self.browse(cr,uid,[id])[0] if cust_gender.lang_id: if not cust_gender.from_gender_id: code='_'.join([cust_gender.lang_id.code, cust_gender.to_gender_id.name]) else: code='_'.join([cust_gender.lang_id.code, 'from', cust_gender.from_gender_id.name, 'to', cust_gender.to_gender_id.name]) else: if not cust_gender.from_gender_id: code=cust_gender.to_gender_id.name else: code='_'.join(['from', cust_gender.from_gender_id.name, 'to', cust_gender.to_gender_id.name]) result[id]=code return result
855146a0c52e9d6cd07e948188c68b011482b7f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/855146a0c52e9d6cd07e948188c68b011482b7f1/customer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10061, 67, 27638, 67, 710, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 273, 2916, 364, 612, 316, 3258, 30, 981, 1546, 6, 276, 641, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10061, 67, 27638, 67, 710, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 508, 16, 833, 16, 819, 12938, 4672, 563, 273, 2916, 364, 612, 316, 3258, 30, 981, 1546, 6, 276, 641, 67, ...
except IOError: print "Warning: can't open %path" %path
except IOError, msg: print "!! Warning: can't open %s \n\t" %path, msg return None
def _get_raw_desc(self, pac, to_get):
1a2369be258ddb63fcc038c54dfe2023cfd38aa1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/1a2369be258ddb63fcc038c54dfe2023cfd38aa1/pacman.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1899, 67, 5569, 12, 2890, 16, 293, 1077, 16, 358, 67, 588, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 1899, 67, 5569, 12, 2890, 16, 293, 1077, 16, 358, 67, 588, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Rational cuspidal subgroup with invariants [3, 3, 9] over QQ of Jacobian of the modular curve associated to the congruence subgroup Gamma0(54)
Rational cuspidal subgroup with invariants [3, 3, 9] over QQ of Abelian variety J0(54) of dimension 4
def rational_cuspidal_subgroup(self): """ Return the subgroup of this modular abelian variety generated by rational cusps.
62147d82541f9aed0900f78cd10df5f262f228f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/62147d82541f9aed0900f78cd10df5f262f228f5/abvar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 8371, 67, 71, 407, 6610, 287, 67, 1717, 1655, 12, 2890, 4672, 3536, 2000, 326, 720, 1655, 434, 333, 681, 2490, 1223, 292, 2779, 1394, 14369, 4374, 635, 436, 8371, 27964, 1121, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 436, 8371, 67, 71, 407, 6610, 287, 67, 1717, 1655, 12, 2890, 4672, 3536, 2000, 326, 720, 1655, 434, 333, 681, 2490, 1223, 292, 2779, 1394, 14369, 4374, 635, 436, 8371, 27964, 1121, 18, ...
elif collection[2] == 'Extras Packages for Enterprise Linux':
elif collection[1] == 'Fedora EPEL':
def set_branch_info(self): '''Set the branch information. All the branches we setup need to have branch information added. ''' self.dbCmd.execute("select id, name, version from collection") collections = {} for collection in self.dbCmd.fetchall(): cid = collection[0] collections[cid] = {'id' : cid} if collection[1] == 'Fedora': collections[cid]['branchname'] = 'F-' + collection[2] collections[cid]['disttag'] = '.fc' + collection[2] elif collection[2] == 'Fedora Extras': collections[cid]['branchname'] = 'FC-' + collection[2] collections[cid]['disttag'] = '.fc' + collection[2] elif collection[2] == 'Red Hat Linux': collections[cid]['branchname'] = 'RHL-' + collection[2] collections[cid]['disttag'] = '.rhl' + collection[2] elif collection[2] == 'Extras Packages for Enterprise Linux': collections[cid]['branchname'] = 'EL-' + collection[2] collections[cid]['disttag'] = '.el' + collection[2] elif collection[2] == 'One Laptop Per Child': collections[cid]['branchname'] = 'OLPC-' + collection[2] collections[cid]['disttag'] = '.olpc' + collection[2] else: logging.warning('%s is not a known collection. Please set branch information manually' % cid) del (collections[cid]) continue
207a9ae6fdfc28643d37feaf12c85459e5d63192 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/207a9ae6fdfc28643d37feaf12c85459e5d63192/pkgdb-import.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 7500, 67, 1376, 12, 2890, 4672, 9163, 694, 326, 3803, 1779, 18, 225, 4826, 326, 11483, 732, 3875, 1608, 358, 1240, 3803, 1779, 3096, 18, 9163, 365, 18, 1966, 5931, 18, 8837, 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, 444, 67, 7500, 67, 1376, 12, 2890, 4672, 9163, 694, 326, 3803, 1779, 18, 225, 4826, 326, 11483, 732, 3875, 1608, 358, 1240, 3803, 1779, 3096, 18, 9163, 365, 18, 1966, 5931, 18, 8837, 2...
def __init__(self, serviceref, begin, end, name, description, eit, disabled = False, justplay = False, afterEvent = AFTEREVENT.NONE, checkOldTimers = False):
def __init__(self, serviceref, begin, end, name, description, eit, disabled = False, justplay = False, afterEvent = AFTEREVENT.NONE, checkOldTimers = False, dirname = None):
def __init__(self, serviceref, begin, end, name, description, eit, disabled = False, justplay = False, afterEvent = AFTEREVENT.NONE, checkOldTimers = False): timer.TimerEntry.__init__(self, int(begin), int(end))
bc937acb188ea59ced7d67ceaa91f2598db39ab9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/bc937acb188ea59ced7d67ceaa91f2598db39ab9/RecordTimer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 24658, 822, 74, 16, 2376, 16, 679, 16, 508, 16, 2477, 16, 425, 305, 16, 5673, 273, 1083, 16, 2537, 1601, 273, 1083, 16, 1839, 1133, 273, 18651, 10454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24658, 822, 74, 16, 2376, 16, 679, 16, 508, 16, 2477, 16, 425, 305, 16, 5673, 273, 1083, 16, 2537, 1601, 273, 1083, 16, 1839, 1133, 273, 18651, 10454, ...
swig_opts = ['-O', '-templatereduce', '-shadow', '-python', '-c++', '-keyword', '-nodefaultctor'],
swig_opts = ['-O', '-shadow', '-c++', '-keyword',],
def setRank(off, dad): 'The rank of offspring can increase or drop to zero randomly' off.rank = (dad.rank + randint(-1, 1)) % 3
53b36487bc2c5932f3f9daab36bff5e28167df6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/53b36487bc2c5932f3f9daab36bff5e28167df6f/userGuide.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12925, 12, 3674, 16, 302, 361, 4672, 296, 1986, 6171, 434, 21174, 11638, 848, 10929, 578, 3640, 358, 3634, 20153, 11, 3397, 18, 11500, 273, 261, 72, 361, 18, 11500, 397, 16783, 1923...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 12925, 12, 3674, 16, 302, 361, 4672, 296, 1986, 6171, 434, 21174, 11638, 848, 10929, 578, 3640, 358, 3634, 20153, 11, 3397, 18, 11500, 273, 261, 72, 361, 18, 11500, 397, 16783, 1923...
return True if (self.can_write) : self.mcl_state_machine.send_raw_message(testmsg(self.sent[self.counter])) self.bclock.acquire() self.can_write = False self.bclock.release() return True
else: msg = testmsg(self.sent[self.counter]) print "Sending ", repr(msg) self.mcl_sm.send_raw_message(msg) return False
def write_cb(self, socket, *args): #print "CAN WRITE" if ( self.counter >= len(testmsg(self.sent)) ): self.stop_session() return True
58de439d6e74c4b1556bf0b35da03b7a41012af1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8028/58de439d6e74c4b1556bf0b35da03b7a41012af1/test1_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 7358, 12, 2890, 16, 2987, 16, 380, 1968, 4672, 468, 1188, 315, 39, 1258, 20967, 6, 309, 261, 365, 18, 7476, 1545, 562, 12, 3813, 3576, 12, 2890, 18, 7569, 3719, 262, 30, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 7358, 12, 2890, 16, 2987, 16, 380, 1968, 4672, 468, 1188, 315, 39, 1258, 20967, 6, 309, 261, 365, 18, 7476, 1545, 562, 12, 3813, 3576, 12, 2890, 18, 7569, 3719, 262, 30, 36...
try: sys.stdout = myrepl sys.stderr = myrepl def start(main_loop, user_data): if exec_args: bpargs.exec_code(interpreter, exec_args) if not options.interactive: raise urwid.ExitMainLoop() if not exec_args: sys.path.insert(0, '') filename = os.environ.get('PYTHONSTARTUP') if filename and os.path.isfile(filename): with open(filename, 'r') as f: if py3: interpreter.runsource(f.read(), filename, 'exec') else: interpreter.runsource(f.read(), filename, 'exec', encode=False) if banner is not None: repl.write(banner) repl.write('\n') myrepl.start() def run_find_coroutine(): if find_coroutine(): main_loop.event_loop.alarm(0, run_find_coroutine) run_find_coroutine() loop.set_alarm_in(0, start) while True: try: loop.run() except KeyboardInterrupt: loop.set_alarm_in(0, lambda *args: myrepl.keyboard_interrupt()) continue break if config.hist_length: histfilename = os.path.expanduser(config.hist_file) myrepl.rl_history.save(histfilename, locale.getpreferredencoding()) finally: sys.stdin = orig_stdin sys.stderr = orig_stderr sys.stdout = orig_stdout
def run_with_screen_before_mainloop(): try: sys.stdin = None sys.stdout = myrepl sys.stderr = myrepl loop.set_alarm_in(0, start) while True: try: loop.run() except KeyboardInterrupt: loop.set_alarm_in( 0, lambda *args: myrepl.keyboard_interrupt()) continue break if config.hist_length: histfilename = os.path.expanduser(config.hist_file) myrepl.rl_history.save(histfilename, locale.getpreferredencoding()) finally: sys.stdin = orig_stdin sys.stderr = orig_stderr sys.stdout = orig_stdout def start(main_loop, user_data): if exec_args: bpargs.exec_code(interpreter, exec_args) if not options.interactive: raise urwid.ExitMainLoop() if not exec_args: sys.path.insert(0, '') filename = os.environ.get('PYTHONSTARTUP') if filename and os.path.isfile(filename): with open(filename, 'r') as f: if py3: interpreter.runsource(f.read(), filename, 'exec') else: interpreter.runsource(f.read(), filename, 'exec', encode=False) if banner is not None: repl.write(banner) repl.write('\n') myrepl.start() def run_find_coroutine(): if find_coroutine(): main_loop.event_loop.alarm(0, run_find_coroutine) run_find_coroutine() loop.screen.run_wrapper(run_with_screen_before_mainloop)
def sigint(*args): reactor.callFromThread(myrepl.keyboard_interrupt)
f48c1504d501e57d21f2c601a6e28dfa8fb82495 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6932/f48c1504d501e57d21f2c601a6e28dfa8fb82495/urwid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3553, 474, 30857, 1968, 4672, 19178, 18, 1991, 1265, 3830, 12, 4811, 26745, 18, 31486, 67, 31847, 13, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3553, 474, 30857, 1968, 4672, 19178, 18, 1991, 1265, 3830, 12, 4811, 26745, 18, 31486, 67, 31847, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
strandPairsToBond.append((new_endBaseAtomList[2],
strandPairsToBond.append((new_endBaseAtomList[2],
def _fuse_new_dna_with_original_duplex(self, new_endBaseAtomList, endBaseAtomList): """ Fuse the new dna strand (and axxis) end atom to the original dna TODO: method needs to be renamed The original dna may be a single stranded dna or a duplex. Until 2008-04-02 ,it was possible to create or modify only a duplex and thats why the name 'duplex' @see: self.modify() @see: B_Dna_PAM3_SingleStrand._fuse_new_dna_with_original_duplex() """ #FUSE new duplex with the original duplex #strand1 chunks chunkList1 = \ [ new_endBaseAtomList[0].molecule, self._resizeEndStrand1Atom.molecule] #Axis chunks chunkList2 = \ [ new_endBaseAtomList[1].molecule, self._resizeEndAxisAtom.molecule] if endBaseAtomList[2]: #strand2 chunks chunkList3 = \ [new_endBaseAtomList[2].molecule, endBaseAtomList[2].molecule] else: chunkList3 = [] #Set the chunk color and chunk display of the new duplex such that #it matches with the original duplex chunk color and display #Actually, fusing the chunks should have taken care of this, but #for some unknown reasons, its not happening. May be because #chunks are not 'merged'? ... Setting display and color for new #duplex chunk is explicitely done below. Fixes bug 2711 for chunkPair in (chunkList1, chunkList2, chunkList3): if chunkPair: display = chunkPair[1].display color = chunkPair[1].color chunkPair[0].setDisplay(display) if color: chunkPair[0].setcolor(color) #Original implementation which relied on on fuse chunks for finding #bondable atom pairs within a tolerance limit. This is no longer #used and can be removed after more testing of explicit bonding #done in self._bond_atoms_in_atomPairs() (called below) #-- Ninad 2008-04-14 ##self.fuseBasePairChunks(chunkList1) ##self.fuseBasePairChunks(chunkList2, fuseTolerance = 1.5) ##if chunkList3: ##self.fuseBasePairChunks(chunkList3) strandPairsToBond = [ (new_endBaseAtomList[0], self._resizeEndStrand1Atom)] if endBaseAtomList[2]: strandPairsToBond.append((new_endBaseAtomList[2], endBaseAtomList[2])) axisAtomPairsToBond = [ (new_endBaseAtomList[1], self._resizeEndAxisAtom)] self._bond_strandAtom_pairs(strandPairsToBond) #Create explicit bonds between the end base atoms #(like done in self._bond_bare_strandAtoms_with_orig_axisAtoms()) #instead of relying on fuse chunks (which relies on finding #bondable atom pairs within a tolerance limit. This fixes bug 2798 #-- Ninad 2008-04-14 self._bond_atoms_in_atomPairs(axisAtomPairsToBond) #Now replace the overlapping axis atoms with the corresponding #original axis atoms, make bonds between strand and axis atoms as needed #see this method docstrings for details self._replace_overlapping_axisAtoms_of_new_dna(new_endBaseAtomList)
2937dd0cfe13ce5cba6560a12fe467c224444ffe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/2937dd0cfe13ce5cba6560a12fe467c224444ffe/DnaDuplex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 74, 1202, 67, 2704, 67, 5176, 69, 67, 1918, 67, 8830, 67, 72, 2268, 92, 12, 2890, 16, 394, 67, 409, 2171, 3641, 682, 16, 679, 2171, 3641, 682, 4672, 3536, 478, 1202, 326, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 74, 1202, 67, 2704, 67, 5176, 69, 67, 1918, 67, 8830, 67, 72, 2268, 92, 12, 2890, 16, 394, 67, 409, 2171, 3641, 682, 16, 679, 2171, 3641, 682, 4672, 3536, 478, 1202, 326, 394, ...
newCEs = len(getCEs)
newCEs = len(getCEs['Value'])
def __checkCEsForJob(self,job,jdlFile): """ Method to check number of suitable CEs for job and prevent Pilot submission for jobs with no available CEs. Wraps around list-match command. """ minimumCEs = 1 #this will only catch jobs that the RB cannot schedule noCEsAvailable = self.jobsWithoutCEs submitFlag = True
18fd1e57f42b37f01a480912af20ec9774a20781 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/18fd1e57f42b37f01a480912af20ec9774a20781/gLitePilotDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 1441, 28388, 2278, 12, 2890, 16, 4688, 16, 78, 5761, 812, 4672, 3536, 2985, 358, 866, 1300, 434, 10631, 385, 6705, 364, 1719, 471, 5309, 453, 22797, 8515, 364, 6550, 598, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1893, 1441, 28388, 2278, 12, 2890, 16, 4688, 16, 78, 5761, 812, 4672, 3536, 2985, 358, 866, 1300, 434, 10631, 385, 6705, 364, 1719, 471, 5309, 453, 22797, 8515, 364, 6550, 598, 115...
self.decode(data)
self.decode(data,password)
def __init__(self,data=None,app=None,name=None,title=None,password=None): ''' @param data: (Optional) See decode() @param app: (Optional) Set Application-Name @param name: (Optional) Set Notification-Name @param title: (Optional) Set Notification Title @param password: (Optional) Password to use while encoding/decoding messages ''' _GNTPBase.__init__(self,'NOTIFY') self.headers = {} self.resources = {} if password: self.set_password(password) self.requiredHeaders = [ 'Application-Name', 'Notification-Name', 'Notification-Title' ] if data: self.decode(data) else: if app: self.headers['Application-Name'] = app if name: self.headers['Notification-Name'] = name if title: self.headers['Notification-Title'] = title
c4f20dffc1daebaba9ed74c0bd3f71f2414a12b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13176/c4f20dffc1daebaba9ed74c0bd3f71f2414a12b7/gntp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 892, 33, 7036, 16, 2910, 33, 7036, 16, 529, 33, 7036, 16, 2649, 33, 7036, 16, 3664, 33, 7036, 4672, 9163, 225, 632, 891, 501, 30, 261, 6542, 13, 2164, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 892, 33, 7036, 16, 2910, 33, 7036, 16, 529, 33, 7036, 16, 2649, 33, 7036, 16, 3664, 33, 7036, 4672, 9163, 225, 632, 891, 501, 30, 261, 6542, 13, 2164, ...
self._get_index_items(see, link, index)
self._get_term_index_items(see, link, index)
def _extract_index(self): """ @return: A dictionary mapping from terms to lists of source documents. @rtype: C{dictionary} """ index = {} for (uid, doc) in self._docmap.items(): if (not self._show_private) and self._is_private(`uid`): continue if uid.is_function(): link = Link(`uid`, uid.module()) elif uid.is_method(): link = Link(`uid`, uid.cls()) else: link = Link(`uid`, uid)
7e1af2abc702612461ceeb001b4b551d49cb71d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7e1af2abc702612461ceeb001b4b551d49cb71d3/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8004, 67, 1615, 12, 2890, 4672, 3536, 632, 2463, 30, 432, 3880, 2874, 628, 6548, 358, 6035, 434, 1084, 7429, 18, 632, 86, 723, 30, 385, 95, 15556, 97, 3536, 770, 273, 2618, 364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8004, 67, 1615, 12, 2890, 4672, 3536, 632, 2463, 30, 432, 3880, 2874, 628, 6548, 358, 6035, 434, 1084, 7429, 18, 632, 86, 723, 30, 385, 95, 15556, 97, 3536, 770, 273, 2618, 364, ...
pixmaps = discover_data_files('pixmaps', 'xpm') icons = discover_data_files('icons', 'svg') uis = discover_data_files('glade', 'glade')
def main(): """The main script.""" packages = find_packages('pida'), services = find_entry_points('services', 'Service') plugins = find_entry_points('plugins', 'Plugin') editors = find_entry_points('editors', 'Service') pixmaps = discover_data_files('pixmaps', 'xpm') icons = discover_data_files('icons', 'svg') uis = discover_data_files('glade', 'glade') setup(name='pida', version=VERSION_STRING, author='Ali Afshar', author_email='aafshar@gmail.com', url='http://pida.berlios.de', download_url='http://pida.berlios.de/index.php/PIDA:Downloads', description=('A Python IDE written in Python and GTK, ' 'which uses Vim as its editor.'), long_description='Please visit the Pida website for more details.', packages=find_packages(), package_dir = {'pida': 'pida'}, package_data={ 'pida': ['data/glade/*.glade', 'data/pixmaps/*.xpm', 'data/icons/*.svg', 'data/forkscripts/*.py', 'data/version', 'data/icons/pida-icon.png', 'data/AUTHORS', 'data/CONTRIBUTORS', 'data/COPYING'], }, entry_points = { 'console_scripts': [ 'pida = pida.core.application:main', ], 'gui_scripts': [], 'pida.services' : services, 'pida.plugins' : plugins, 'pida.editors' : editors, }, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: X11 Applications', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development'] )
c91661c576e86a666c2ae751f01948cc2bc38373 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/c91661c576e86a666c2ae751f01948cc2bc38373/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 1986, 2774, 2728, 12123, 5907, 273, 1104, 67, 10308, 2668, 6610, 69, 19899, 4028, 273, 1104, 67, 4099, 67, 4139, 2668, 8387, 2187, 296, 1179, 6134, 4799, 273, 1104, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 3536, 1986, 2774, 2728, 12123, 5907, 273, 1104, 67, 10308, 2668, 6610, 69, 19899, 4028, 273, 1104, 67, 4099, 67, 4139, 2668, 8387, 2187, 296, 1179, 6134, 4799, 273, 1104, 67, ...
for fmt in ('B', 'H', 'I', 'L', 'b', 'h', 'i', 'l'):
for fmt in ('B', 'H', 'I', 'L', 'Q', 'b', 'h', 'i', 'l', 'q'):
def XXXtest_1530559(self): # XXX This is broken: see the bug report # SF bug 1530559. struct.pack raises TypeError where it used to convert. for endian in ('', '>', '<'): for fmt in ('B', 'H', 'I', 'L', 'b', 'h', 'i', 'l'): self.check_float_coerce(endian + fmt, 1.0) self.check_float_coerce(endian + fmt, 1.5)
463dc4bf26c37c5f90cfe9328087976a0bdc5757 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/463dc4bf26c37c5f90cfe9328087976a0bdc5757/test_struct.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11329, 3813, 67, 3600, 5082, 2539, 29, 12, 2890, 4672, 468, 11329, 1220, 353, 12933, 30, 2621, 326, 7934, 2605, 468, 21318, 7934, 4711, 5082, 2539, 29, 18, 1958, 18, 2920, 14183, 3580, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11329, 3813, 67, 3600, 5082, 2539, 29, 12, 2890, 4672, 468, 11329, 1220, 353, 12933, 30, 2621, 326, 7934, 2605, 468, 21318, 7934, 4711, 5082, 2539, 29, 18, 1958, 18, 2920, 14183, 3580, 1...
_write_long(36 + self._datawritten)
_write_long(self._file, 36 + self._datawritten)
def _patchheader(self): if self._datawritten == self._datalength: return curpos = self._file.tell() self._file.seek(self._form_length_pos, 0) _write_long(36 + self._datawritten) self._file.seek(self._data_length_pos, 0) _write_long(self._file, self._datawritten) self._file.seek(curpos, 0) self._datalength = self._datawritten
33577efee6ad54c8566f8cd66b5129fe1856c135 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/33577efee6ad54c8566f8cd66b5129fe1856c135/wave.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2272, 3374, 12, 2890, 4672, 309, 365, 6315, 892, 9748, 422, 365, 6315, 72, 3145, 1288, 30, 327, 662, 917, 273, 365, 6315, 768, 18, 88, 1165, 1435, 365, 6315, 768, 18, 16508, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2272, 3374, 12, 2890, 4672, 309, 365, 6315, 892, 9748, 422, 365, 6315, 72, 3145, 1288, 30, 327, 662, 917, 273, 365, 6315, 768, 18, 88, 1165, 1435, 365, 6315, 768, 18, 16508, 12, ...
- ``pdflatex`` - bool (optional, default False): whether to use pdflatex.
- ``engine`` - string: latex engine to use.
def _run_latex_(filename, debug=False, density=150, pdflatex=None, png=False, do_in_background=False): """ This runs LaTeX on the TeX file "filename.tex". It produces files "filename.dvi" (or "filename.pdf"` if ``pdflatex`` is ``True``) and if ``png`` is True, "filename.png". If ``png`` is True and dvipng can't convert the dvi file to png (because of postscript specials or other issues), then dvips is called, and the PS file is converted to a png file. INPUT: - ``filename`` - string: file to process, including full path - ``debug`` - bool (optional, default False): whether to print verbose debugging output - ``density`` - integer (optional, default 150): how big output image is. - ``pdflatex`` - bool (optional, default False): whether to use pdflatex. - ``png`` - bool (optional, default False): whether to produce a png file. - ``do_in_background`` - bool (optional, default False): whether to run in the background. OUTPUT: string, which could be a string starting with 'Error' (if there was a problem), or it could be 'pdf' or 'dvi'. If ``pdflatex`` is False, then a dvi file is created, but if there appear to be problems with it (because of PS special commands, for example), then a pdf file is created instead. The function returns 'dvi' or 'pdf' to indicate which type of file is created. (Detecting problems requires that dvipng be installed; if it is not, then the dvi file is not checked for problems and 'dvi' is returned.) If ``pdflatex`` is True and there are no errors, then 'pdf' is returned. .. warning:: If ``png`` is True, then when using latex (the default), you must have 'dvipng' (or 'dvips' and 'convert') installed on your operating system, or this command won't work. When using pdflatex, you must have 'convert' installed. EXAMPLES:: sage: from sage.misc.latex import _run_latex_, _latex_file_ sage: file = os.path.join(SAGE_TMP, "temp.tex") sage: O = open(file, 'w') sage: O.write(_latex_file_([ZZ[x], RR])); O.close() sage: _run_latex_(file) # random - depends on whether latex is installed 'dvi' """ if pdflatex is None: pdflatex = _Latex_prefs._option["pdflatex"] if not pdflatex and not have_latex(): print "Error: LaTeX does not seem to be installed. Download it from" print "ctan.org and try again." return "Error" if pdflatex and not have_pdflatex(): print "Error: PDFLaTeX does not seem to be installed. Download it from" print "ctan.org and try again." return "Error" # if png output + latex, check to see if dvipng or convert is installed. if png: if not pdflatex and not (have_dvipng() or have_convert()): print "" print "Error: neither dvipng nor convert (from the ImageMagick suite)" print "appear to be installed. Displaying LaTeX or PDFLaTeX output" print "requires at least one of these programs, so please install" print "and try again." print "" print "Go to http://sourceforge.net/projects/dvipng/ and" print "http://www.imagemagick.org to download these programs." return "Error" # if png output + pdflatex, check to see if convert is installed. elif pdflatex and not have_convert(): print "" print "Error: convert (from the ImageMagick suite) does not" print "appear to be installed. Displaying PDFLaTeX output" print "requires this program, so please install and try again." print "" print "Go to http://www.imagemagick.org to download it." return "Error" # check_validity: check to see if the dvi file is okay by trying # to convert to a png file. if this fails, return_suffix will be # set to "pdf". return_suffix is the return value for this # function. # # thus if not png output, check validity of dvi output if dvipng # or convert is installed. else: check_validity = have_dvipng() # set up filenames, other strings: base, filename = os.path.split(filename) filename = os.path.splitext(filename)[0] # get rid of extension if len(filename.split()) > 1: raise ValueError, "filename must contain no spaces" if not debug: redirect=' 2>/dev/null 1>/dev/null ' else: redirect='' if do_in_background: background = ' &' else: background = '' if pdflatex: command = "pdflatex" # 'suffix' is used in the string 'convert' ... suffix = "pdf" return_suffix = "pdf" else: command = "latex" suffix = "ps" return_suffix = "dvi" # Define the commands to be used: lt = 'cd "%s"&& sage-native-execute %s \\\\nonstopmode \\\\input{%s.tex} %s'%(base, command, filename, redirect) # dvipng is run with the 'picky' option: this means that if # there are warnings, no png file is created. dvipng = 'cd "%s"&& sage-native-execute dvipng --picky -q -T tight -D %s %s.dvi -o %s.png'%(base, density, filename, filename) dvips = 'sage-native-execute dvips %s.dvi %s'%(filename, redirect) ps2pdf = 'sage-native-execute ps2pdf %s.ps %s'%(filename, redirect) # We seem to need a larger size when using convert compared to # when using dvipng: density = int(1.4 * density / 1.3) convert = 'sage-native-execute convert -density %sx%s -trim %s.%s %s.png %s '%\ (density,density, filename, suffix, filename, redirect) e = 1 # it is possible to get through the following commands # without running a program, so in that case we force error if pdflatex: if png: cmd = ' && '.join([lt, convert]) else: cmd = lt if debug: print cmd e = os.system(cmd + ' ' + redirect + background) else: # latex, not pdflatex if (png or check_validity): if have_dvipng(): cmd = ' && '.join([lt, dvipng]) if debug: print cmd e = os.system(cmd + ' ' + redirect) dvipng_error = not os.path.exists(base + '/' + filename + '.png') # If there is no png file, then either the latex # process failed or dvipng failed. Assume that dvipng # failed, and try running dvips and convert. (If the # latex process failed, then dvips and convert will # fail also, so we'll still catch the error.) if dvipng_error: if png: if have_convert(): cmd = ' && '.join(['cd "%s"'%(base,), dvips, convert]) if debug: print "'dvipng' failed; trying 'convert' instead..." print cmd e = os.system(cmd + ' ' + redirect + background) else: print "Error: 'dvipng' failed and 'convert' is not installed." return "Error: dvipng failed." else: # not png, i.e., check_validity return_suffix = "pdf" cmd = ' && '.join(['cd "%s"'%(base,), dvips, ps2pdf]) if debug: print "bad dvi file; running dvips and ps2pdf instead..." print cmd e = os.system(cmd) if e: # error running dvips and/or ps2pdf command = "pdflatex" lt = 'cd "%s"&& sage-native-execute %s \\\\nonstopmode \\\\input{%s.tex} %s'%(base, command, filename, redirect) if debug: print "error running dvips and ps2pdf; trying pdflatex instead..." print cmd e = os.system(cmd + background) else: # don't have dvipng, so must have convert. run latex, dvips, convert. cmd = ' && '.join([lt, dvips, convert]) if debug: print cmd e = os.system(cmd + ' ' + redirect + background) if e: print "An error occurred." try: print open(base + '/' + filename + '.log').read() except IOError: pass return "Error latexing slide." return return_suffix
f861246ed3920cddfa7558f769e8b83392788530 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f861246ed3920cddfa7558f769e8b83392788530/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 67, 26264, 67, 12, 3459, 16, 1198, 33, 8381, 16, 12142, 33, 23014, 16, 8169, 26264, 33, 7036, 16, 14476, 33, 8381, 16, 741, 67, 267, 67, 9342, 33, 8381, 4672, 3536, 1220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2681, 67, 26264, 67, 12, 3459, 16, 1198, 33, 8381, 16, 12142, 33, 23014, 16, 8169, 26264, 33, 7036, 16, 14476, 33, 8381, 16, 741, 67, 267, 67, 9342, 33, 8381, 4672, 3536, 1220, ...
:Parameters: kpts : (n1,n2,n3) or [k1,k2,k3,...] or one of these
Parameters: kpts: (n1,n2,n3) or [k1,k2,k3,...] or one of these
def set_kpts(self, kpts): ''' set the kpt grid.
3d3ba6582bced478d5fcb8a3fcd5ebe6c3da70bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/3d3ba6582bced478d5fcb8a3fcd5ebe6c3da70bd/jacapo.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 79, 1092, 12, 2890, 16, 417, 1092, 4672, 9163, 444, 326, 417, 337, 3068, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 79, 1092, 12, 2890, 16, 417, 1092, 4672, 9163, 444, 326, 417, 337, 3068, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
pixbuf = gcompris.utils.load_pixmap("draw/down.png"),
pixbuf = gcompris.utils.load_pixmap(gcompris.skin.image_to_skin("draw/down.png")),
def draw_playing_area(self):
71d2a5f1e776d1abf498b3c50bbff69637e75673 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/71d2a5f1e776d1abf498b3c50bbff69637e75673/anim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3724, 67, 1601, 310, 67, 5036, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 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, 3724, 67, 1601, 310, 67, 5036, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
emitted_ids = 0 while pending_ids and emitted_ids < 100:
while pending_ids:
def get(self): if ChromeFrameMe(self): return lookup_id = self.request.path[6:] results = [] pending_ids = [lookup_id] needed_ids = set([lookup_id]) emitted_ids = 0 while pending_ids and emitted_ids < 100: # Pick one. id = pending_ids[0] pending_ids = pending_ids[1:] # Fetch it. w = Word.get(id) if w: # Collect each word. results.append({ 'id': id, 'intrinsic': w.intrinsic, 'definition': w.definition, 'description': w.description, }) # Add new words needed. for cw in w.definition: if cw not in needed_ids: needed_ids.add(cw) pending_ids.append(cw) # Count how many we've emitted. emitted_ids += 1 if self.request.get('raw'): self.response.headers['Content-Type'] = 'text/plain' for r in results: self.response.out.write('%s %d %s\n' % ( r['id'], r['intrinsic'], ' '.join(r['definition']))) else: path = os.path.join(os.path.dirname(__file__), 'templates/dump.html') self.response.out.write(template.render(path, { 'results': results, }))
0c84d023adea3c40a625ba9babebfa0e54e91be7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3507/0c84d023adea3c40a625ba9babebfa0e54e91be7/iconforth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 309, 15159, 3219, 4667, 12, 2890, 4672, 327, 3689, 67, 350, 273, 365, 18, 2293, 18, 803, 63, 26, 26894, 1686, 273, 5378, 4634, 67, 2232, 273, 306, 8664, 67, 350, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 309, 15159, 3219, 4667, 12, 2890, 4672, 327, 3689, 67, 350, 273, 365, 18, 2293, 18, 803, 63, 26, 26894, 1686, 273, 5378, 4634, 67, 2232, 273, 306, 8664, 67, 350, ...
""" RESTRICTS GRAND MEA Subtracts D-variable cell-mean for each between- subj group, and then adds back each D-variable's grand mean. """ errors = subtr_cellmeans(workd,subjslots) grandDmeans = expand_dims(mean(workd,0),0) errors = errors + transpose(grandDmeans) sserr = multivar_SScalc(errors) return sserr
""" RESTRICTS GRAND MEA Subtracts D-variable cell-mean for each between- subj group, and then adds back each D-variable's grand mean. """ errors = subtr_cellmeans(workd,subjslots) grandDmeans = expand_dims(mean(workd,0),0) errors = errors + transpose(grandDmeans) sserr = multivar_SScalc(errors) return sserr
def d_restrict_mean(workd,subjslots): """ RESTRICTS GRAND MEA Subtracts D-variable cell-mean for each between-
3bb739baad4fb4f21aa19b39fbb10f6aa5c1a041 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/3bb739baad4fb4f21aa19b39fbb10f6aa5c1a041/stats.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 67, 30604, 67, 7079, 12, 1252, 72, 16, 1717, 78, 18875, 4672, 3536, 8392, 2259, 1268, 55, 15228, 4307, 7733, 37, 225, 2592, 1575, 87, 463, 17, 6105, 2484, 17, 7079, 364, 1517, 308...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 302, 67, 30604, 67, 7079, 12, 1252, 72, 16, 1717, 78, 18875, 4672, 3536, 8392, 2259, 1268, 55, 15228, 4307, 7733, 37, 225, 2592, 1575, 87, 463, 17, 6105, 2484, 17, 7079, 364, 1517, 308...
return result
return result def copy(self, cr, uid, id, default=None, context={}): return super(crm_case, self).copy(cr, uid, str2int(id), default, context)
def read(self, cr, uid, ids, fields=None, context={}, load='_classic_read'): """ logic for recurrent event example : 123-20091111170822""" if context and context.has_key('read'): return super(crm_case, self).read(cr, uid, ids, fields=fields, context=context, load=load) if not type(ids) == list : # Called from code ids = int(str(ids).split('-')[0]) res = super(crm_case, self).read(cr, uid, ids, fields=fields, context=context, load=load) return res else: ids = map(lambda x:int(str(x).split('-')[0]), ids) res = super(crm_case, self).read(cr, uid, ids, fields=fields, context=context, load=load) read_ids = ",".join([str(x) for x in ids]) cr.execute('select id,rrule,rdates from crm_case where id in (%s)' % read_ids) rrules = filter(lambda x: not x['rrule']==None, cr.dictfetchall()) rdates = [] if not rrules: return res result = res + [] for data in rrules: if data['rrule'] and data['rdates']: # delete 2nd condition at last rdates = eval(data['rdates']) for res_temp in res: if res_temp['id'] == data['id']: val = res_temp if rdates: result.remove(val)
6ef425eb9ba53031aed0c6d62efd20dc99d4dc99 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/6ef425eb9ba53031aed0c6d62efd20dc99d4dc99/crm_calendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 1466, 33, 7036, 16, 819, 28793, 1262, 2218, 67, 1106, 335, 67, 896, 11, 4672, 3536, 540, 4058, 364, 283, 2972, 871, 3454, 294, 17335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 1466, 33, 7036, 16, 819, 28793, 1262, 2218, 67, 1106, 335, 67, 896, 11, 4672, 3536, 540, 4058, 364, 283, 2972, 871, 3454, 294, 17335, ...
blanks = " "
blanks = " "
def create_disulfides(self, disulfide_distance_cutoff, model_indices, conformer_indices, log=None): if (model_indices is not None): model_indices = model_indices.select(self.cystein_sulphur_i_seqs) conformer_indices = conformer_indices.select(self.cystein_sulphur_i_seqs) asu_mappings = self.special_position_settings.asu_mappings( buffer_thickness=disulfide_distance_cutoff) sulphur_sites_cart = self.sites_cart.select(self.cystein_sulphur_i_seqs) asu_mappings.process_sites_cart( original_sites=sulphur_sites_cart, site_symmetry_table=self.site_symmetry_table().select( self.cystein_sulphur_i_seqs)) pair_asu_table = crystal.pair_asu_table(asu_mappings=asu_mappings) nonbonded_proxies = geometry_restraints.nonbonded_sorted_asu_proxies( model_indices=model_indices, conformer_indices=conformer_indices, nonbonded_params=geometry_restraints.nonbonded_params( default_distance=1), nonbonded_types=flex.std_string(conformer_indices.size()), nonbonded_distance_cutoff_plus_buffer=disulfide_distance_cutoff, shell_asu_tables=[pair_asu_table]) labels = [self.stage_1.atom_attributes_list[i_seq].pdb_format() for i_seq in self.cystein_sulphur_i_seqs] for proxy in nonbonded_proxies.simple: pair_asu_table.add_pair(proxy.i_seqs) for proxy in nonbonded_proxies.asu: pair_asu_table.add_pair(proxy) pair_sym_table = pair_asu_table.extract_pair_sym_table() if (log is not None): n_simple, n_symmetry = 0, 0 for sym_pair in pair_sym_table.iterator(): if (sym_pair.rt_mx_ji.is_unit_mx()): n_simple += 1 else: n_symmetry += 1 print >> log, " Number of disulfides: simple=%d, symmetry=%d" % ( n_simple, n_symmetry) if (n_symmetry == 0): blanks = "" else: blanks = " " max_distance_model = 0 frac = asu_mappings.unit_cell().fractionalize orth = asu_mappings.unit_cell().orthogonalize for sym_pair in pair_sym_table.iterator(): distance_model = geometry_restraints.bond( [sulphur_sites_cart[sym_pair.i_seq], orth(sym_pair.rt_mx_ji*frac(sulphur_sites_cart[sym_pair.j_seq]))], distance_ideal=0, weight=1).distance_model max_distance_model = max(max_distance_model, distance_model) if (log is not None): if (sym_pair.rt_mx_ji.is_unit_mx()): disulfide_type = "Simple disulfide:%s" % blanks else: disulfide_type = "Symmetry disulfide:" print >> log, " %s %s - %s distance=%.2f" % tuple( [disulfide_type] + [labels[i_seq] for i_seq in sym_pair.i_seqs()] + [distance_model]), if (not sym_pair.rt_mx_ji.is_unit_mx()): print >> log, sym_pair.rt_mx_ji, print >> log return pair_sym_table, max_distance_model
643f9d42b1262696c028c68646f1bea763cc85e6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/643f9d42b1262696c028c68646f1bea763cc85e6/pdb_interpretation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2251, 332, 74, 4369, 12, 2890, 16, 1015, 332, 74, 831, 67, 8969, 67, 16131, 16, 938, 67, 6836, 16, 356, 7208, 67, 6836, 16, 613, 33, 7036, 4672, 309, 261, 2284, 67, 6836, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2251, 332, 74, 4369, 12, 2890, 16, 1015, 332, 74, 831, 67, 8969, 67, 16131, 16, 938, 67, 6836, 16, 356, 7208, 67, 6836, 16, 613, 33, 7036, 4672, 309, 261, 2284, 67, 6836, ...
this = apply(_quickfix.new_TargetStrategyParameters, args)
this = _quickfix.new_TargetStrategyParameters(*args)
def __init__(self, *args): this = apply(_quickfix.new_TargetStrategyParameters, args) try: self.this.append(this) except: self.this = this
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 2326, 4525, 2402, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 2326, 4525, 2402, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, ...
def nextURL(self, clear=True):
def nextURL(self, clear=False):
def nextURL(self, clear=True): request = self.request
ce1e5f4ff30975b3a849e11656a87b174b71ed79 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12537/ce1e5f4ff30975b3a849e11656a87b174b71ed79/login.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1024, 1785, 12, 2890, 16, 2424, 33, 8381, 4672, 590, 273, 365, 18, 2293, 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, 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, 1024, 1785, 12, 2890, 16, 2424, 33, 8381, 4672, 590, 273, 365, 18, 2293, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...