rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
idprof = sock.execute(dbname, uid, 'admin', 'ir.module.module', 'search', [('name','=',prof)])
idprof = sock.execute(dbname, uid, 'admin', 'ir.module.module', 'search', [('name','=',prof)]) if l10n:
def wizard_run(wizname, fieldvalues={}, endstate='end'): wiz_id = sock4.create(dbname, uid, 'admin', wizname) state = 'init' datas = {'form':{}} while state!=endstate: res = sock4.execute(dbname, uid, 'admin', wiz_id, datas, state, {}) if 'datas' in res: datas['form'].update( res['datas'] ) if res['type']=='form': for field in res['fields'].keys(): datas['form'][field] = res['fields'][field].get('value', False) state = res['state'][-1][0] datas['form'].update(fieldvalues) elif res['type']=='state': state = res['state'] return True
7c1d25a6812e34799546830cd4cf8e3b8c7ec6fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12853/7c1d25a6812e34799546830cd4cf8e3b8c7ec6fd/check_profile_l10n_all.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24204, 67, 2681, 12, 91, 452, 529, 16, 652, 2372, 28793, 679, 2019, 2218, 409, 11, 4672, 341, 452, 67, 350, 273, 7313, 24, 18, 2640, 12, 20979, 16, 4555, 16, 296, 3666, 2187, 341, 452, 529, 13, 919, 273, 296, 2738, 11, 5386, 273, 13666, 687, 4278, 2916, 97, 1323, 919, 5, 33, 409, 2019, 30, 400, 273, 7313, 24, 18, 8837, 12, 20979, 16, 4555, 16, 296, 3666, 2187, 341, 452, 67, 350, 16, 5386, 16, 919, 16, 2618, 13, 309, 296, 13178, 11, 316, 400, 30, 5386, 3292, 687, 29489, 2725, 12, 400, 3292, 13178, 3546, 262, 309, 400, 3292, 723, 3546, 18920, 687, 4278, 364, 652, 316, 400, 3292, 2821, 29489, 2452, 13332, 5386, 3292, 687, 3546, 63, 1518, 65, 273, 400, 3292, 2821, 3546, 63, 1518, 8009, 588, 2668, 1132, 2187, 1083, 13, 919, 273, 400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0, 0, 0, 0, 0, 0, 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, 24204, 67, 2681, 12, 91, 452, 529, 16, 652, 2372, 28793, 679, 2019, 2218, 409, 11, 4672, 341, 452, 67, 350, 273, 7313, 24, 18, 2640, 12, 20979, 16, 4555, 16, 296, 3666, 2187, 341, 452, 529, 13, 919, 273, 296, 2738, 11, 5386, 273, 13666, 687, 4278, 2916, 97, 1323, 919, 5, 33, 409, 2019, 30, 400, 273, 7313, 24, 18, 8837, 12, 20979, 16, 4555, 16, 296, 3666, 2187, 341, 452, 67, 350, 16, 5386, 16, 919, 16, 2618, 13, 309, 296, 13178, 11, 316, 400, 30, 5386, 3292, 687, 29489, 2725, 12, 400, 3292, 13178, 3546, 262, 309, 400, 3292, 723, 3546, 18920, 687, 4278, 364, 652, 316, 400, 3292, 2821, 29489, 2452, 13332, 5386, 2 ]
if hasattr(objDef, 'animDict'):
if hasattr(objDef, 'animDict') and objDef.animDict != {}:
def addNewObject(self, typeName, uid = None, model = None, parent=None, anim = None, fSelectObject=True, nodePath=None, nameStr=None): """ function to add new obj to the scene """ if parent is None: parent = self.editor.NPParent
140d0ab80bfbe1cbeae65429659503e2e1495179 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/140d0ab80bfbe1cbeae65429659503e2e1495179/ObjectMgrBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20973, 921, 12, 2890, 16, 8173, 16, 4555, 273, 599, 16, 938, 273, 599, 16, 982, 33, 7036, 16, 10536, 273, 599, 16, 284, 3391, 921, 33, 5510, 16, 20758, 33, 7036, 16, 508, 1585, 33, 7036, 4672, 3536, 445, 358, 527, 394, 1081, 358, 326, 9065, 3536, 309, 982, 353, 599, 30, 982, 273, 365, 18, 9177, 18, 23430, 3054, 2, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 20973, 921, 12, 2890, 16, 8173, 16, 4555, 273, 599, 16, 938, 273, 599, 16, 982, 33, 7036, 16, 10536, 273, 599, 16, 284, 3391, 921, 33, 5510, 16, 20758, 33, 7036, 16, 508, 1585, 33, 7036, 4672, 3536, 445, 358, 527, 394, 1081, 358, 326, 9065, 3536, 309, 982, 353, 599, 30, 982, 273, 365, 18, 9177, 18, 23430, 3054, 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, -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, -100, -100, -100 ]
cif = CifFile.ReadCif(fname)
cif = CifFile.ReadCif('file:/%s' % fname)
def _read_cbf_header(self, image): '''Read the contents of the header of this image.'''
9a5555e740f3fbb248b3bcc5ac33ab17caff3b8f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3290/9a5555e740f3fbb248b3bcc5ac33ab17caff3b8f/ReadHeaderCBF.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 7358, 74, 67, 3374, 12, 2890, 16, 1316, 4672, 9163, 1994, 326, 2939, 434, 326, 1446, 434, 333, 1316, 1093, 6309, 2, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 896, 67, 7358, 74, 67, 3374, 12, 2890, 16, 1316, 4672, 9163, 1994, 326, 2939, 434, 326, 1446, 434, 333, 1316, 1093, 6309, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'SAGE External System Code (e.g., PARI, MAGMA, etc.)',
'Sage External System Code (e.g., PARI, MAGMA, etc.)',
def bundle(self, filename, options='', url=None, base=None, to=None): r""" Create an hg changeset bundle with the given filename against the repository at the given url (which is by default the 'official' SAGE repository, unless push_url() is changed in a setup file).
020bc5a17817481601e8ed113c19ee97bf3f96b0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/020bc5a17817481601e8ed113c19ee97bf3f96b0/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3440, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 3352, 622, 326, 864, 880, 261, 12784, 353, 635, 805, 326, 296, 3674, 22354, 11, 348, 2833, 3352, 16, 3308, 1817, 67, 718, 1435, 353, 3550, 316, 279, 3875, 585, 2934, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3440, 12, 2890, 16, 1544, 16, 702, 2218, 2187, 880, 33, 7036, 16, 1026, 33, 7036, 16, 358, 33, 7036, 4672, 436, 8395, 1788, 392, 22576, 22463, 3440, 598, 326, 864, 1544, 5314, 326, 3352, 622, 326, 864, 880, 261, 12784, 353, 635, 805, 326, 296, 3674, 22354, 11, 348, 2833, 3352, 16, 3308, 1817, 67, 718, 1435, 353, 3550, 316, 279, 3875, 585, 2934, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __init__(self, methodName=None):
def __init__(self, methodName):
def __init__(self, methodName=None): super(TestCase, self).__init__(methodName) self._testMethodName = methodName testMethod = getattr(self, methodName) self._parents = [testMethod, self] self._parents.extend(util.getPythonContainers(testMethod)) self._shared = (hasattr(self, 'setUpClass') or hasattr(self, 'tearDownClass')) if self._shared: self._prepareClassFixture() if not hasattr(self.__class__, '_instances'): self._initInstances() self.__class__._instances.add(self) self._passed = False
b7e78eb5833d66795b80f1516df69db55622316c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/b7e78eb5833d66795b80f1516df69db55622316c/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4918, 4672, 2240, 12, 4709, 2449, 16, 365, 2934, 972, 2738, 972, 12, 2039, 461, 13, 365, 6315, 3813, 11666, 273, 4918, 1842, 1305, 273, 3869, 12, 2890, 16, 4918, 13, 365, 6315, 12606, 273, 306, 3813, 1305, 16, 365, 65, 365, 6315, 12606, 18, 14313, 12, 1367, 18, 588, 15774, 11177, 12, 3813, 1305, 3719, 365, 6315, 11574, 273, 261, 5332, 1747, 12, 2890, 16, 296, 542, 1211, 797, 6134, 578, 3859, 12, 2890, 16, 296, 736, 297, 4164, 797, 26112, 309, 365, 6315, 11574, 30, 365, 6315, 9366, 797, 26392, 1435, 309, 486, 3859, 12, 2890, 16186, 1106, 972, 16, 2070, 10162, 11, 4672, 365, 6315, 2738, 5361, 1435, 365, 16186, 1106, 972, 6315, 10162, 18, 1289, 12, 2890, 13, 365, 6315, 23603, 273, 1083, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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16, 4918, 13, 365, 6315, 12606, 273, 306, 3813, 1305, 16, 365, 65, 365, 6315, 12606, 18, 14313, 12, 1367, 18, 588, 15774, 11177, 12, 3813, 1305, 3719, 365, 6315, 11574, 273, 261, 5332, 1747, 12, 2890, 16, 296, 542, 1211, 797, 6134, 578, 3859, 12, 2890, 16, 296, 736, 297, 4164, 797, 26112, 309, 365, 6315, 11574, 30, 365, 6315, 9366, 797, 26392, 1435, 309, 486, 3859, 12, 2890, 16186, 1106, 972, 16, 2070, 10162, 11, 4672, 365, 6315, 2738, 5361, 1435, 365, 2 ]
class Canvas(textobject._PDFColorSetter,CanvasStringDrawer):
class Canvas(textobject._PDFColorSetter):
def pushCopy(self): '''the states must be shared across push/pop, but the values not''' x = self.__class__() x._d = self._d.copy() x._c = self._c return x
83a5c2021d8e13f4065a93ed4bea35105604ba6a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/83a5c2021d8e13f4065a93ed4bea35105604ba6a/canvas.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 2951, 12, 2890, 4672, 9163, 5787, 5493, 1297, 506, 5116, 10279, 1817, 19, 5120, 16, 1496, 326, 924, 486, 26418, 619, 273, 365, 16186, 1106, 972, 1435, 619, 6315, 72, 273, 365, 6315, 72, 18, 3530, 1435, 619, 6315, 71, 273, 365, 6315, 71, 327, 619, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1817, 2951, 12, 2890, 4672, 9163, 5787, 5493, 1297, 506, 5116, 10279, 1817, 19, 5120, 16, 1496, 326, 924, 486, 26418, 619, 273, 365, 16186, 1106, 972, 1435, 619, 6315, 72, 273, 365, 6315, 72, 18, 3530, 1435, 619, 6315, 71, 273, 365, 6315, 71, 327, 619, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
vcom_task = Task.simple_task_type('vcom', '${VCOM} ${VCOMFLAGS} ${SRC}', color='GREEN', before='cxx', ext_in=".vhd", vars=['VCOM', 'VCOMFLAGS'])
vcom_task = Task.simple_task_type('vcom', '${VCOM} ${_VCOMFLAGS} ${SRC}', color='GREEN', before='cxx', ext_in=".vhd", vars=['VCOM', '_VCOMFLAGS'])
def vsim_task_str(self): return "vsim: do %s -> %s\n" % (self.dotask, self.target)
7c31064d730fec5e3b83aa4842fea01bd5df60db /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/209/7c31064d730fec5e3b83aa4842fea01bd5df60db/modelsim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6195, 381, 67, 4146, 67, 701, 12, 2890, 4672, 327, 315, 6904, 381, 30, 741, 738, 87, 317, 738, 87, 64, 82, 6, 738, 261, 2890, 18, 9811, 835, 16, 365, 18, 3299, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6195, 381, 67, 4146, 67, 701, 12, 2890, 4672, 327, 315, 6904, 381, 30, 741, 738, 87, 317, 738, 87, 64, 82, 6, 738, 261, 2890, 18, 9811, 835, 16, 365, 18, 3299, 13, 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, -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, -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, -100, -100, -100 ]
import scipy.special ans = str(scipy.special.sph_jn(int(n),float(var))) ans = ans.replace("(","") ans = ans.replace(")","") ans = ans.replace("j","*I") return sage_eval(ans)
from scipy.special.specfun import sphj return sphj(int(n), float(var))[1][-1]
def spherical_bessel_J(n, var, algorithm="maxima"): r""" Returns the spherical Bessel function of the first kind for integers n -1. Reference: AS 10.1.8 page 437 and AS 10.1.15 page 439. EXAMPLES:: sage: spherical_bessel_J(2,x) ((3/x^2 - 1)*sin(x) - 3*cos(x)/x)/x """ if algorithm=="scipy": import scipy.special ans = str(scipy.special.sph_jn(int(n),float(var))) ans = ans.replace("(","") ans = ans.replace(")","") ans = ans.replace("j","*I") return sage_eval(ans) elif algorithm == 'maxima': _init() return meval("spherical_bessel_j(%s,%s)"%(ZZ(n),var)) else: raise ValueError, "unknown algorithm '%s'"%algorithm
394dfa38f63f3b63a7555c2762afda676f9b712a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/394dfa38f63f3b63a7555c2762afda676f9b712a/special.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 21570, 67, 70, 403, 292, 67, 46, 12, 82, 16, 569, 16, 4886, 1546, 1896, 13888, 6, 4672, 436, 8395, 2860, 326, 272, 21570, 605, 403, 292, 445, 434, 326, 1122, 3846, 364, 12321, 290, 300, 21, 18, 225, 6268, 30, 5355, 1728, 18, 21, 18, 28, 1363, 1059, 6418, 471, 5355, 1728, 18, 21, 18, 3600, 1363, 1059, 5520, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 272, 21570, 67, 70, 403, 292, 67, 46, 12, 22, 16, 92, 13, 14015, 23, 19, 92, 66, 22, 300, 404, 17653, 21861, 12, 92, 13, 300, 890, 14, 14445, 12, 92, 13176, 92, 13176, 92, 3536, 309, 4886, 31713, 1017, 9126, 6877, 628, 10966, 18, 9371, 18, 2793, 12125, 1930, 272, 844, 78, 327, 272, 844, 78, 12, 474, 12, 82, 3631, 1431, 12, 1401, 3719, 63, 21, 6362, 17, 21, 65, 1327, 4886, 422, 296, 1896, 13888, 4278, 389, 2738, 1435, 327, 1791, 1125, 2932, 87, 21570, 67, 70, 403, 292, 67, 78, 9275, 87, 15529, 87, 2225, 17105, 27096, 12, 82, 3631, 1401, 3719, 469, 30, 1002, 2068, 16, 315, 8172, 4886, 1995, 87, 4970, 9, 12743, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 272, 21570, 67, 70, 403, 292, 67, 46, 12, 82, 16, 569, 16, 4886, 1546, 1896, 13888, 6, 4672, 436, 8395, 2860, 326, 272, 21570, 605, 403, 292, 445, 434, 326, 1122, 3846, 364, 12321, 290, 300, 21, 18, 225, 6268, 30, 5355, 1728, 18, 21, 18, 28, 1363, 1059, 6418, 471, 5355, 1728, 18, 21, 18, 3600, 1363, 1059, 5520, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 272, 21570, 67, 70, 403, 292, 67, 46, 12, 22, 16, 92, 13, 14015, 23, 19, 92, 66, 22, 300, 404, 17653, 21861, 12, 92, 13, 300, 890, 14, 14445, 12, 92, 13176, 92, 13176, 92, 3536, 309, 4886, 31713, 1017, 9126, 6877, 628, 10966, 18, 9371, 2 ]
self.status()
def __repr__(self): self.status() return "Hg repository '%s' in directory %s"%(self.__name, self.__dir)
02cfcb3154608284928c28969b88f297bb09e778 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/02cfcb3154608284928c28969b88f297bb09e778/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 12, 2890, 4672, 327, 315, 44, 75, 3352, 1995, 87, 11, 316, 1867, 738, 87, 6, 17105, 2890, 16186, 529, 16, 365, 16186, 1214, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 315, 44, 75, 3352, 1995, 87, 11, 316, 1867, 738, 87, 6, 17105, 2890, 16186, 529, 16, 365, 16186, 1214, 13, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def trialMakePolyList(v):
def trialMakePolyList(v):
def trialMakePolyList(v): pMat = [] for i in range(size(v)): pMat += [polyMat[i] * v[i]] segs = [] for corner, edges, planes in polyTab: pts = size(planes) for i in range(pts): segs += [pMat[corner], pMat[planes[i]]] segs += [pMat[planes[i]], pMat[planes[(i+1)%pts]]] return segs
d137aadae12afd03386c3c85863a6b2893ded503 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/d137aadae12afd03386c3c85863a6b2893ded503/drawer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12950, 6464, 12487, 682, 12, 90, 4672, 293, 15947, 273, 5378, 364, 277, 316, 1048, 12, 1467, 12, 90, 3719, 30, 293, 15947, 1011, 306, 16353, 15947, 63, 77, 65, 380, 331, 63, 77, 13563, 225, 23114, 273, 5378, 364, 11055, 16, 5231, 16, 31634, 316, 7573, 5661, 30, 13397, 273, 963, 12, 7088, 281, 13, 364, 277, 316, 1048, 12, 1092, 4672, 23114, 1011, 306, 84, 15947, 63, 30519, 6487, 293, 15947, 63, 7088, 281, 63, 77, 13563, 65, 23114, 1011, 306, 84, 15947, 63, 7088, 281, 63, 77, 65, 6487, 293, 15947, 63, 7088, 281, 63, 12, 77, 15, 21, 13, 9, 1092, 13563, 65, 225, 327, 23114, 282, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12950, 6464, 12487, 682, 12, 90, 4672, 293, 15947, 273, 5378, 364, 277, 316, 1048, 12, 1467, 12, 90, 3719, 30, 293, 15947, 1011, 306, 16353, 15947, 63, 77, 65, 380, 331, 63, 77, 13563, 225, 23114, 273, 5378, 364, 11055, 16, 5231, 16, 31634, 316, 7573, 5661, 30, 13397, 273, 963, 12, 7088, 281, 13, 364, 277, 316, 1048, 12, 1092, 4672, 23114, 1011, 306, 84, 15947, 63, 30519, 6487, 293, 15947, 63, 7088, 281, 63, 77, 13563, 65, 23114, 1011, 306, 84, 15947, 63, 7088, 281, 63, 77, 65, 6487, 293, 15947, 63, 7088, 281, 63, 12, 77, 15, 21, 13, 9, 1092, 13563, 65, 225, 327, 23114, 282, 2, -100, -100, -100, -100, -100, -100, -100 ]
def _prep_compile(self, sources, output_dir, depends=None): """Decide which souce files must be recompiled. Determine the list of object files corresponding to 'sources', and figure out which ones really need to be recompiled. Return a list of all object files and a dictionary telling which source files can be skipped. """ objects = self.object_filenames(sources, output_dir=output_dir) assert len(objects) == len(sources) if self.force: skip_source = {} for source in sources: skip_source[source] = 0 elif depends is None: skip_source = {} for source in sources: skip_source[source] = 1 n_sources, n_objects = newer_pairwise(sources, objects) for source in n_sources: skip_source[source] = 0 else: skip_source = {} L = depends[:] + [None] for i in range(len(objects)): source = sources[i] L[-1] = source if newer_group(L, objects[i]): skip_source[source] = 0 else: skip_source[source] = 1 return objects, skip_source
def _fix_compile_args (self, output_dir, macros, include_dirs): """Typecheck and fix-up some of the arguments to the 'compile()' method, and return fixed-up values. Specifically: if 'output_dir' is None, replaces it with 'self.output_dir'; ensures that 'macros' is a list, and augments it with 'self.macros'; ensures that 'include_dirs' is a list, and augments it with 'self.include_dirs'. Guarantees that the returned values are of the correct type, i.e. for 'output_dir' either string or None, and for 'macros' and 'include_dirs' either list or None. """ if output_dir is None: output_dir = self.output_dir elif type (output_dir) is not StringType: raise TypeError, "'output_dir' must be a string or None"
b293024314eb7b21eec80dd2cebe28a87661b28b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/b293024314eb7b21eec80dd2cebe28a87661b28b/ccompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 67, 11100, 67, 1968, 261, 2890, 16, 876, 67, 1214, 16, 24302, 16, 2341, 67, 8291, 4672, 3536, 559, 1893, 471, 2917, 17, 416, 2690, 434, 326, 1775, 358, 326, 296, 11100, 11866, 707, 16, 471, 327, 5499, 17, 416, 924, 18, 225, 23043, 1230, 30, 309, 296, 2844, 67, 1214, 11, 353, 599, 16, 12878, 518, 598, 296, 2890, 18, 2844, 67, 1214, 13506, 11932, 716, 296, 5821, 6973, 11, 353, 279, 666, 16, 471, 31350, 1346, 518, 598, 296, 2890, 18, 5821, 6973, 13506, 11932, 716, 296, 6702, 67, 8291, 11, 353, 279, 666, 16, 471, 31350, 1346, 518, 598, 296, 2890, 18, 6702, 67, 8291, 10332, 6467, 9106, 281, 716, 326, 2106, 924, 854, 434, 326, 3434, 618, 16, 277, 18, 73, 18, 364, 296, 2844, 67, 1214, 11, 3344, 533, 578, 599, 16, 471, 364, 296, 5821, 6973, 11, 471, 296, 6702, 67, 8291, 11, 3344, 666, 578, 599, 18, 3536, 309, 876, 67, 1214, 353, 599, 30, 876, 67, 1214, 273, 365, 18, 2844, 67, 1214, 1327, 618, 261, 2844, 67, 1214, 13, 353, 486, 31570, 30, 1002, 3580, 16, 2491, 2844, 67, 1214, 11, 1297, 506, 279, 533, 578, 599, 6, 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, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 904, 67, 11100, 67, 1968, 261, 2890, 16, 876, 67, 1214, 16, 24302, 16, 2341, 67, 8291, 4672, 3536, 559, 1893, 471, 2917, 17, 416, 2690, 434, 326, 1775, 358, 326, 296, 11100, 11866, 707, 16, 471, 327, 5499, 17, 416, 924, 18, 225, 23043, 1230, 30, 309, 296, 2844, 67, 1214, 11, 353, 599, 16, 12878, 518, 598, 296, 2890, 18, 2844, 67, 1214, 13506, 11932, 716, 296, 5821, 6973, 11, 353, 279, 666, 16, 471, 31350, 1346, 518, 598, 296, 2890, 18, 5821, 6973, 13506, 11932, 716, 296, 6702, 67, 8291, 11, 353, 279, 666, 16, 471, 31350, 1346, 518, 598, 296, 2890, 18, 6702, 67, 8291, 10332, 6467, 9106, 281, 716, 326, 2106, 924, 2 ]
"NS_GET_IID(%s), %s);\n" % (type.name, jsvalPtr))
"resultiface, %s);\n" % jsvalPtr)
def writeResultConv(f, type, paramNum, jsvalPtr, jsvalRef): """ Emit code to convert the C++ variable `result` to a jsval. The emitted code contains a return statement; it returns JS_TRUE on success, JS_FALSE on error. """ # From NativeData2JS. typeName = getBuiltinOrNativeTypeName(type) if typeName is not None: template = resultConvTemplates.get(typeName) if template is not None: values = {'jsvalRef': jsvalRef, 'jsvalPtr': jsvalPtr} f.write(substitute(template, values)) return # else fall through; this type isn't supported yet elif isInterfaceType(type): if isVariantType(type): f.write(" return xpc_qsVariantToJsval(ccx, result, %d, %s);\n" % (paramNum, jsvalPtr)) return else: f.write(" return xpc_qsXPCOMObjectToJsval(ccx, result, " "NS_GET_IID(%s), %s);\n" % (type.name, jsvalPtr)) return warn("Unable to convert result of type %s" % type.name) f.write(" !; // TODO - Convert `result` to jsval, store in `%s`.\n" % jsvalRef) f.write(" return xpc_qsThrow(cx, NS_ERROR_UNEXPECTED); // FIXME\n")
b10cc8d19e2aa919583f608bf70ff0b7f0fa915b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/b10cc8d19e2aa919583f608bf70ff0b7f0fa915b/qsgen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 1253, 17467, 12, 74, 16, 618, 16, 579, 2578, 16, 3828, 1125, 5263, 16, 3828, 1125, 1957, 4672, 3536, 16008, 981, 358, 1765, 326, 385, 9904, 2190, 1375, 2088, 68, 358, 279, 3828, 1125, 18, 225, 1021, 17826, 981, 1914, 279, 327, 3021, 31, 518, 1135, 6756, 67, 18724, 603, 2216, 16, 6756, 67, 21053, 603, 555, 18, 3536, 468, 6338, 16717, 751, 22, 6479, 18, 8173, 273, 2882, 4853, 267, 1162, 9220, 7947, 12, 723, 13, 309, 8173, 353, 486, 599, 30, 1542, 273, 563, 17467, 8218, 18, 588, 12, 723, 461, 13, 309, 1542, 353, 486, 599, 30, 924, 273, 13666, 2924, 1125, 1957, 4278, 3828, 1125, 1957, 16, 296, 2924, 1125, 5263, 4278, 3828, 1125, 5263, 97, 284, 18, 2626, 12, 1717, 17207, 12, 3202, 16, 924, 3719, 327, 468, 469, 4159, 3059, 31, 333, 618, 5177, 1404, 3260, 4671, 1327, 21456, 559, 12, 723, 4672, 309, 353, 9356, 559, 12, 723, 4672, 284, 18, 2626, 2932, 565, 327, 619, 2436, 67, 12926, 9356, 774, 8382, 1125, 12, 952, 92, 16, 563, 16, 738, 72, 16, 738, 87, 20472, 82, 6, 738, 261, 891, 2578, 16, 3828, 1125, 5263, 3719, 327, 469, 30, 284, 18, 2626, 2932, 565, 327, 619, 2436, 67, 12926, 60, 3513, 1872, 921, 774, 8382, 1125, 12, 952, 92, 16, 563, 16, 315, 315, 2088, 31479, 16, 738, 87, 20472, 82, 6, 738, 3828, 1125, 5263, 13, 327, 225, 1894, 2932, 3370, 358, 1765, 563, 434, 618, 738, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1253, 17467, 12, 74, 16, 618, 16, 579, 2578, 16, 3828, 1125, 5263, 16, 3828, 1125, 1957, 4672, 3536, 16008, 981, 358, 1765, 326, 385, 9904, 2190, 1375, 2088, 68, 358, 279, 3828, 1125, 18, 225, 1021, 17826, 981, 1914, 279, 327, 3021, 31, 518, 1135, 6756, 67, 18724, 603, 2216, 16, 6756, 67, 21053, 603, 555, 18, 3536, 468, 6338, 16717, 751, 22, 6479, 18, 8173, 273, 2882, 4853, 267, 1162, 9220, 7947, 12, 723, 13, 309, 8173, 353, 486, 599, 30, 1542, 273, 563, 17467, 8218, 18, 588, 12, 723, 461, 13, 309, 1542, 353, 486, 599, 30, 924, 273, 13666, 2924, 1125, 1957, 4278, 3828, 1125, 1957, 16, 296, 2924, 1125, 5263, 4278, 3828, 2 ]
self.command = ' '.join(line.split[1:])
self.command = ' '.join(line.split[1:])\
def __init__(self, line=''): if not line: self.m, self.h, self.dom, self.mon, self.dow = ['*'] * 5 self.command = '' elif line[0] == '@': self.special = line.split()[0] self.command = ' '.join(line.split[1:]) if line.split()[1] else '' else: params = line.split() self.m, self.h, self.dom, self.mon, self.dow = params[:5] self.command = ' '.join(params[5:])
bbe1e559c7443fe5150489469d739f0ef06da4e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3600/bbe1e559c7443fe5150489469d739f0ef06da4e3/backend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 980, 2218, 11, 4672, 309, 486, 980, 30, 365, 18, 81, 16, 365, 18, 76, 16, 365, 18, 9859, 16, 365, 18, 2586, 16, 365, 18, 72, 543, 273, 10228, 14, 3546, 380, 1381, 365, 18, 3076, 273, 875, 1327, 980, 63, 20, 65, 422, 4622, 4278, 365, 18, 9371, 273, 980, 18, 4939, 1435, 63, 20, 65, 365, 18, 3076, 273, 296, 2418, 5701, 12, 1369, 18, 4939, 63, 21, 26894, 5153, 309, 980, 18, 4939, 1435, 63, 21, 65, 469, 875, 469, 30, 859, 273, 980, 18, 4939, 1435, 365, 18, 81, 16, 365, 18, 76, 16, 365, 18, 9859, 16, 365, 18, 2586, 16, 365, 18, 72, 543, 273, 859, 10531, 25, 65, 365, 18, 3076, 273, 296, 2418, 5701, 12, 2010, 63, 25, 30, 5717, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 980, 2218, 11, 4672, 309, 486, 980, 30, 365, 18, 81, 16, 365, 18, 76, 16, 365, 18, 9859, 16, 365, 18, 2586, 16, 365, 18, 72, 543, 273, 10228, 14, 3546, 380, 1381, 365, 18, 3076, 273, 875, 1327, 980, 63, 20, 65, 422, 4622, 4278, 365, 18, 9371, 273, 980, 18, 4939, 1435, 63, 20, 65, 365, 18, 3076, 273, 296, 2418, 5701, 12, 1369, 18, 4939, 63, 21, 26894, 5153, 309, 980, 18, 4939, 1435, 63, 21, 65, 469, 875, 469, 30, 859, 273, 980, 18, 4939, 1435, 365, 18, 81, 16, 365, 18, 76, 16, 365, 18, 9859, 16, 365, 18, 2586, 16, 365, 18, 72, 543, 273, 2 ]
rational). If p is (a/b), takes the principle b'th root of self,
rational). If p is (a/b), takes the principal b'th root of self,
def __pow__(self, e): """ self^p returns the p'th power of self (where p can be an arbitrary rational). If p is (a/b), takes the principle b'th root of self, then takes that to the a'th power. (Note that this differs from __pow__ on algebraic reals, where real roots are preferred over principle roots if they exist.)
ac5afda2de8f73e61caafce882f95206af1d8e02 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/ac5afda2de8f73e61caafce882f95206af1d8e02/qqbar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 23509, 972, 12, 2890, 16, 425, 4672, 3536, 365, 66, 84, 1135, 326, 293, 1404, 76, 7212, 434, 365, 261, 6051, 293, 848, 506, 392, 11078, 436, 8371, 2934, 225, 971, 293, 353, 261, 69, 19, 70, 3631, 5530, 326, 8897, 324, 1404, 76, 1365, 434, 365, 16, 1508, 5530, 716, 358, 326, 279, 1404, 76, 7212, 18, 225, 261, 8067, 716, 333, 21944, 628, 1001, 23509, 972, 603, 524, 29087, 335, 283, 1031, 16, 1625, 2863, 12876, 854, 9119, 1879, 846, 9523, 2444, 12876, 309, 2898, 1005, 12998, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 3631, 5530, 326, 8897, 324, 1404, 76, 1365, 434, 365, 16, 1508, 5530, 716, 358, 326, 279, 1404, 76, 7212, 18, 225, 261, 8067, 716, 333, 21944, 628, 1001, 23509, 972, 603, 524, 29087, 335, 283, 1031, 16, 1625, 2863, 12876, 854, 9119, 1879, 846, 9523, 2444, 12876, 309, 2898, 1005, 12998, 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, -100 ]
this = apply(_quickfix.new_DealingCapacity, args)
this = _quickfix.new_DealingCapacity(*args)
def __init__(self, *args): this = apply(_quickfix.new_DealingCapacity, 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, 758, 287, 310, 7437, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 758, 287, 310, 7437, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 30, 365, 18, 2211, 273, 333, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print "$Id: plotsnrchisq_pipe.py,v 1.9 2007/05/14 21:28:06 channa Exp $"
print "$Id: plotsnrchisq_pipe.py,v 1.10 2007/05/14 21:43:51 channa Exp $"
def plotsnrchisq(gpsTime,frameFile,outputPath,inspProcParams,tableFile): rsqThreshold = 0; for row in inspProcParams: if row.param == "--channel-name": chanStringBase = row.value ifoName = str(row.value).split(":",1) if row.param == "--segment-length": segLen = eval(row.value) if row.param == "--sample-rate": sampleRate = eval(row.value) if row.param == "--segment-overlap": segOverlap = eval(row.value) if (row.param == "--chisq-delta") or (row.param == "--minimal-match"): chisqDelta = eval(row.value) if row.param =="--chisq-bins": chisqBins = eval(row.value) if row.param == "--snr-threshold": snrThreshold = eval(row.value) if row.param == "--chisq-threshold": chisqThreshold = eval(row.value) if row.param == "--rsq-veto-threshold": rsqThreshold = eval(row.value) if row.param == "--trig-start-time": trigStart = eval(row.value) segLenSec = segLen / sampleRate segOverlapSec = segOverlap / sampleRate chanString = chanStringBase + "_SNRSQ_0" # find the start time of the first channel # BE CAREFUL ! it is assumed that the sampling frequency is higher than 200 Hz testOnFirstChannel = Fr.frgetvect(frameFile,chanString,-1,0.01,0) gpsStart = testOnFirstChannel[1] if (trigStart): trigPosition = int((trigStart - gpsStart) / (segLenSec -segOverlapSec)) else: trigPosition = 0 position = int((eval(gpsTime) - gpsStart) / (segLenSec -segOverlapSec)) \ - trigPosition chanNumber = str(position) chanNameSnr = chanStringBase + "_SNRSQ_" + chanNumber chanNameChisq = chanStringBase + '_CHISQ_' + chanNumber # now, read the data !! # The window width should be an input argument maybe ? duration = 2.0 # startWindow = float(gpsTime) - duration/2. # squareSnr_tuple = Fr.frgetvect(frameFile,chanNameSnr,startWindow,duration,0) squareSnr_tuple = Fr.frgetvect(frameFile,chanNameSnr,-1,segLenSec,0) squareChisq_tuple = Fr.frgetvect(frameFile,chanNameChisq,-1,segLenSec,0) snr_position = float(gpsTime) - ( float(squareSnr_tuple[1]) + \ (segLenSec-segOverlapSec)*position ) chisq_position = float(gpsTime) - ( float(squareChisq_tuple[1]) + \ (segLenSec-segOverlapSec)*position ) # compute the snr vector snr_vector = sqrt(squareSnr_tuple[0]) # print squareSnr_tuple snr_time = array(range(0, segLen)) * squareSnr_tuple[3][0] - snr_position # compute the r^2 rsq_vector = squareChisq_tuple[0] chisq_time = array(range(0, segLen)) * squareChisq_tuple[3][0] - chisq_position # compute the normalized chisq chisqNorm_vector = rsq_vector/(1 + chisqDelta/chisqBins*squareSnr_tuple[0]) # define the time boundaries of the plot snr_start = (snr_position - duration/2.) * 1/squareSnr_tuple[3][0] snr_stop = (snr_position + duration/2.) * 1/squareSnr_tuple[3][0] chisq_start = (chisq_position - duration/2.) * 1/squareChisq_tuple[3][0] chisq_stop = (chisq_position + duration/2.) * 1/squareChisq_tuple[3][0] #prepare the thresholds to be plotted snrThreshVect = int( duration * 1/squareSnr_tuple[3][0] ) * [snrThreshold] if(chisqThreshold < 100.): chisqThreshVect = int( duration * 1/squareChisq_tuple[3][0] ) * [chisqThreshold] if(rsqThreshold > 0 & rsqThreshold < 100.): rsqThreshVect = int( duration * 1/squareChisq_tuple[3][0] ) * [rsqThreshold] # Now plot the snr time serie !! figure(1) plot(snr_time[int(snr_start):int(snr_stop)],snr_vector[int(snr_start):int(snr_stop)]) hold(1) plot(snr_time[int(snr_start):int(snr_stop)],snrThreshVect) hold(0) xlim(-duration/2., duration/2.) xlabel('time (s)',size='x-large') ylabel(r'snr',size='x-large') grid() title(ifoName[0] + ' trigger: ' + gpsTime) figName = ifoName[0] + '_' + str(gpsTime).replace(".","_") + '_snr.png' savefig(outputPath +"/" + figName) tableFile = open(container.locallink,'a') table = HTMLTable() table.add_column('<img width=400 src="' + figName +'">','SNR') figure(11) plot(snr_time[int(snr_start):int(snr_stop)],snr_vector[int(snr_start):int(snr_stop)]) hold(1) plot(snr_time[int(snr_start):int(snr_stop)],snrThreshVect) hold(0) xlim(-duration/20., duration/20.) xlabel('time (s)',size='x-large') ylabel(r'snr',size='x-large') grid() title(ifoName[0] + ' trigger: ' + gpsTime + ' Zoom') figName = ifoName[0] + '_' + str(gpsTime).replace(".","_") + '_snr_zoom.png' savefig(outputPath +"/" + figName) table.add_column('<img width=400 src="' + figName +'">','SNR ZOOM') table.write(tableFile) tableFile.close() ### END CHADS CHANGES ### # Now plot the r^2 time serie !! figure(2) plot(chisq_time[int(chisq_start):int(chisq_stop)],rsq_vector[int(chisq_start):int(chisq_stop)]) if(chisqThreshold < 100.): hold(1) plot(rsqThreshVect) hold(0) xlim(-duration/2., duration/2.) xlabel('time (s)',size='x-large') ylabel(r'chisq/p',size='x-large') grid() title(ifoName[0] + ' trigger: ' + gpsTime) savefig(ifoName[0] + '_' + str(gpsTime).replace(".","_") + '_rsq.png') figure(22) plot(chisq_time[int(chisq_start):int(chisq_stop)],rsq_vector[int(chisq_start):int(chisq_stop)]) if(chisqThreshold < 100.): hold(1) plot(rsqThreshVect) hold(0) xlim(-duration/20., duration/20.) xlabel('time (s)',size='x-large') ylabel(r'chisq/p',size='x-large') grid() title(ifoName[0] + ' trigger: ' + gpsTime + ' Zoom') savefig(ifoName[0] + '_' + str(gpsTime).replace(".","_") + '_rsq_zoom.png') # Now plot the normalized chisq time serie !! figure(3) plot(chisq_time[int(chisq_start):int(chisq_stop)],chisqNorm_vector[int(chisq_start):int(chisq_stop)]) if(rsqThreshold > 0 & rsqThreshold < 100.): hold(1) plot(chisqThreshVect) hold(0) xlim(-duration/2., duration/2.) xlabel('time (s)',size='x-large') ylabel(r'chisq / (p + Delta * snrsq)',size='x-large') grid(1) title(ifoName[0] + ' trigger: ' + gpsTime) savefig(ifoName[0] + '_' + str(gpsTime).replace(".","_") + '_chisq.png') figure(33) plot(chisq_time[int(chisq_start):int(chisq_stop)],chisqNorm_vector[int(chisq_start):int(chisq_stop)]) if(rsqThreshold > 0 & rsqThreshold < 100.): hold(1) plot(chisqThreshVect) hold(0) xlim(-duration/20., duration/20.) xlabel('time (s)',size='x-large') ylabel(r'chisq / (p + Delta * snrsq)',size='x-large') grid(1) title(ifoName[0] + ' trigger: ' + gpsTime + ' Zoom') savefig(ifoName[0] + '_' + str(gpsTime).replace(".","_") + '_chisq_zoom.png')
c4d2198cea6ff30c6d5f1aa9bee69af1c499079e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/c4d2198cea6ff30c6d5f1aa9bee69af1c499079e/plotsnrchisq_pipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 8134, 86, 343, 291, 85, 12, 75, 1121, 950, 16, 3789, 812, 16, 2844, 743, 16, 267, 1752, 15417, 1370, 16, 2121, 812, 4672, 225, 3597, 85, 7614, 273, 374, 31, 225, 364, 1027, 316, 316, 1752, 15417, 1370, 30, 309, 1027, 18, 891, 422, 5238, 4327, 17, 529, 6877, 3861, 780, 2171, 273, 1027, 18, 1132, 21479, 461, 273, 609, 12, 492, 18, 1132, 2934, 4939, 2932, 2773, 16, 21, 13, 309, 1027, 18, 891, 422, 5238, 9273, 17, 2469, 6877, 2291, 2891, 273, 5302, 12, 492, 18, 1132, 13, 309, 1027, 18, 891, 422, 5238, 6358, 17, 5141, 6877, 27505, 273, 5302, 12, 492, 18, 1132, 13, 309, 1027, 18, 891, 422, 5238, 9273, 17, 17946, 6877, 2291, 17411, 273, 5302, 12, 492, 18, 1132, 13, 309, 261, 492, 18, 891, 422, 5238, 343, 291, 85, 17, 9878, 7923, 578, 261, 492, 18, 891, 422, 5238, 1154, 2840, 17, 1916, 6, 4672, 462, 291, 85, 9242, 273, 5302, 12, 492, 18, 1132, 13, 309, 1027, 18, 891, 422, 6, 413, 343, 291, 85, 17, 11862, 6877, 462, 291, 85, 38, 2679, 273, 5302, 12, 492, 18, 1132, 13, 309, 1027, 18, 891, 422, 5238, 8134, 86, 17, 8699, 6877, 29248, 7614, 273, 5302, 12, 492, 18, 1132, 13, 309, 1027, 18, 891, 422, 5238, 343, 291, 85, 17, 8699, 6877, 462, 291, 85, 7614, 273, 5302, 12, 492, 18, 1132, 13, 309, 1027, 18, 891, 422, 5238, 5453, 85, 17, 90, 11453, 17, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3207, 8134, 86, 343, 291, 85, 12, 75, 1121, 950, 16, 3789, 812, 16, 2844, 743, 16, 267, 1752, 15417, 1370, 16, 2121, 812, 4672, 225, 3597, 85, 7614, 273, 374, 31, 225, 364, 1027, 316, 316, 1752, 15417, 1370, 30, 309, 1027, 18, 891, 422, 5238, 4327, 17, 529, 6877, 3861, 780, 2171, 273, 1027, 18, 1132, 21479, 461, 273, 609, 12, 492, 18, 1132, 2934, 4939, 2932, 2773, 16, 21, 13, 309, 1027, 18, 891, 422, 5238, 9273, 17, 2469, 6877, 2291, 2891, 273, 5302, 12, 492, 18, 1132, 13, 309, 1027, 18, 891, 422, 5238, 6358, 17, 5141, 6877, 27505, 273, 5302, 12, 492, 18, 1132, 13, 309, 1027, 18, 891, 422, 5238, 9273, 17, 2 ]
calling search. So calling search up to height 20 then calling saturate results in another search up to height 18.
calling :meth:`search()`. So calling :meth:`search()` up to height 20 then calling :meth:`saturate()` results in another search up to height 18.
def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group.
9932a677a12413086a59217c4c0d425b0543b6eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/9932a677a12413086a59217c4c0d425b0543b6eb/interface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, 3218, 330, 1041, 18, 2, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5942, 295, 340, 12, 2890, 16, 943, 67, 16382, 29711, 21, 16, 14800, 67, 683, 4485, 67, 3700, 33, 8381, 4672, 436, 8395, 25793, 295, 340, 333, 720, 1655, 434, 326, 490, 517, 1165, 17, 3218, 330, 1041, 18, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.DoubleField.__init__(self, 133) else quickfix.DoubleField.__init__(self, 133, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 30537, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 30537, 16, 501, 13, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if sys.argv[1:]: n_runs = int(sys.argv[1]) refinement_test.ls_cycle_repeats = n_runs else: n_runs = 1
from libtbx.option_parser import option_parser command_line = (option_parser() .option(None, "--fix_random_seeds", action="store_true", default=False) .option(None, "--runs", type='int', default=1) ).process(args=sys.argv[1:]) if command_line.options.fix_random_seeds: flex.set_random_seed(1) random.seed(2) n_runs = command_line.options.runs if n_runs > 1: refinement_test.ls_cycle_repeats = n_runs exercise_normal_equations()
def run(): libtbx.utils.show_times_at_exit() import sys if sys.argv[1:]: n_runs = int(sys.argv[1]) refinement_test.ls_cycle_repeats = n_runs else: n_runs = 1 special_positions_test(n_runs).run() exercise_normal_equations()
37b49af7901c1d7a36c16a828f1befd554bdea51 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/37b49af7901c1d7a36c16a828f1befd554bdea51/tst_least_squares.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 13332, 2561, 18587, 92, 18, 5471, 18, 4500, 67, 8293, 67, 270, 67, 8593, 1435, 1930, 2589, 628, 2561, 18587, 92, 18, 3482, 67, 4288, 1930, 1456, 67, 4288, 1296, 67, 1369, 273, 261, 3482, 67, 4288, 1435, 263, 3482, 12, 7036, 16, 5238, 904, 67, 9188, 67, 307, 9765, 3113, 1301, 1546, 2233, 67, 3767, 3113, 805, 33, 8381, 13, 263, 3482, 12, 7036, 16, 5238, 20152, 3113, 618, 2218, 474, 2187, 805, 33, 21, 13, 262, 18, 2567, 12, 1968, 33, 9499, 18, 19485, 63, 21, 30, 5717, 309, 1296, 67, 1369, 18, 2116, 18, 904, 67, 9188, 67, 307, 9765, 30, 16600, 18, 542, 67, 9188, 67, 12407, 12, 21, 13, 2744, 18, 12407, 12, 22, 13, 290, 67, 20152, 273, 1296, 67, 1369, 18, 2116, 18, 20152, 309, 290, 67, 20152, 405, 404, 30, 25994, 820, 67, 3813, 18, 3251, 67, 13946, 67, 28956, 2323, 273, 290, 67, 20152, 24165, 67, 6130, 67, 14298, 1012, 1435, 4582, 67, 12388, 67, 3813, 12, 82, 67, 20152, 2934, 2681, 1435, 24165, 67, 6130, 67, 14298, 1012, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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456, 67, 4288, 1296, 67, 1369, 273, 261, 3482, 67, 4288, 1435, 263, 3482, 12, 7036, 16, 5238, 904, 67, 9188, 67, 307, 9765, 3113, 1301, 1546, 2233, 67, 3767, 3113, 805, 33, 8381, 13, 263, 3482, 12, 7036, 16, 5238, 20152, 3113, 618, 2218, 474, 2187, 805, 33, 21, 13, 262, 18, 2567, 12, 1968, 33, 9499, 18, 19485, 63, 21, 30, 5717, 309, 1296, 67, 1369, 18, 2116, 18, 904, 67, 9188, 67, 307, 9765, 30, 16600, 18, 542, 67, 9188, 67, 12407, 12, 21, 13, 2744, 18, 12407, 2 ]
assert flex.grid().set_focus(1).focus() == (1,) assert flex.grid().set_focus(1,2).focus() == (1,2,) assert flex.grid().set_focus(1,2,3).focus() == (1,2,3) assert flex.grid().set_focus(1,2,3,4).focus() == (1,2,3,4) assert flex.grid().set_focus(1,2,3,4,5).focus() == (1,2,3,4,5) assert flex.grid().set_focus(1,2,3,4,5,6).focus() == (1,2,3,4,5,6)
assert flex.grid(1).set_focus(1).focus() == (1,) assert flex.grid(1,2).set_focus(1,2).focus() == (1,2,) assert flex.grid(1,2,3).set_focus(1,2,3).focus() == (1,2,3) assert flex.grid(1,2,3,4).set_focus(1,2,3,4).focus() == (1,2,3,4) assert flex.grid(1,2,3,4,5).set_focus(1,2,3,4,5).focus() == (1,2,3,4,5) assert flex.grid(1,2,3,4,5,6).set_focus(1,2,3,4,5,6).focus() == (1,2,3,4,5,6)
def exercise_flex_grid(): g = flex.grid() assert g.nd() == 0 assert g.size_1d() == 0 assert not g.has_origin() assert g.origin() == () assert g.all() == () assert g.last() == () assert g.last(1) == () assert g.last(0) == () assert g.is_0_based() assert not g.is_padded() assert not g.is_trivial_1d() g = flex.grid((2,3,5)) assert g.nd() == 3 assert g.size_1d() == 30 assert g.origin() == (0,0,0) assert g.all() == (2,3,5) assert g.last() == (2,3,5) assert g.last(1) == (2,3,5) assert g.last(0) == (1,2,4) assert g((0,0,0)) == 0 assert g((1,2,4)) == 29 assert g.is_0_based() assert not g.is_padded() assert not g.is_trivial_1d() assert flex.grid(1).all() == (1,) assert flex.grid(1,2).all() == (1,2,) assert flex.grid(1,2,3).all() == (1,2,3) assert flex.grid(1,2,3,4).all() == (1,2,3,4) assert flex.grid(1,2,3,4,5).all() == (1,2,3,4,5) assert flex.grid(1,2,3,4,5,6).all() == (1,2,3,4,5,6) assert flex.grid().set_focus(1).focus() == (1,) assert flex.grid().set_focus(1,2).focus() == (1,2,) assert flex.grid().set_focus(1,2,3).focus() == (1,2,3) assert flex.grid().set_focus(1,2,3,4).focus() == (1,2,3,4) assert flex.grid().set_focus(1,2,3,4,5).focus() == (1,2,3,4,5) assert flex.grid().set_focus(1,2,3,4,5,6).focus() == (1,2,3,4,5,6) g = flex.grid((1,2,3), (4,6,8)) assert g.nd() == 3 assert g.size_1d() == 60 assert g.has_origin() assert g.origin() == (1,2,3) assert g.all() == (3,4,5) assert g.last() == (4,6,8) assert g.last(1) == (4,6,8) assert g.last(0) == (3,5,7) assert g((1,2,3)) == 0 assert g((3,5,7)) == 59 assert not g.is_valid_index((0,0,0)) assert not g.is_0_based() assert not g.is_padded() assert not g.is_trivial_1d() g = flex.grid((1,2,3), (4,6,8), 0) assert g.nd() == 3 assert g.size_1d() == 120 assert g.origin() == (1,2,3) assert g.all() == (4,5,6) assert g.last() == (5,7,9) assert g.last(1) == (5,7,9) assert g.last(0) == (4,6,8) assert g((1,2,3)) == 0 assert g((4,6,8)) == 119 assert not g.is_valid_index((0,0,0)) assert not g.is_valid_index((5,0,0)) assert not g.is_0_based() assert not g.is_padded() assert not g.is_trivial_1d() assert not g.has_focus() g.set_focus((3,-9,5)) assert g.has_focus() assert g.focus() == (3,-9,5) assert g.focus(False) == (2,-10,4) g.set_focus((3,-9,5), False) assert g.focus() == (4,-8,6) assert not g.is_0_based() assert g.is_padded() assert not g.is_trivial_1d() s = pickle.dumps(g) l = pickle.loads(s) assert g.origin() == l.origin() assert g.all() == l.all() assert g.focus() == l.focus() assert g == l assert not g != l l = flex.grid((1,2,4), (4,6,8), 0).set_focus((3,-9,5)) assert not g == l assert g != l l = flex.grid((1,2,3), (4,7,8), 0).set_focus((3,-9,5)) assert not g == l assert g != l l = flex.grid((1,2,3), (4,6,8), 0).set_focus((4,-9,5)) assert not g == l assert g != l g = flex.grid((1,2,3)) assert g.shift_origin() == g g = flex.grid((1,2,3), (4,6,8)) s = g.shift_origin() assert s.origin() == (0,0,0) assert s.all() == g.all() assert s.focus() == (3,4,5) assert s.focus_size_1d() == g.size_1d() g = flex.grid((1,2,3), (4,6,8)).set_focus((3,5,7)) assert g.focus_size_1d() == 2*3*4 s = g.shift_origin() assert s.origin() == (0,0,0) assert s.all() == g.all() assert s.focus() == (2,3,4)
bbf8bb0a447c23a4aef85ae21b929ee322041ec6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/bbf8bb0a447c23a4aef85ae21b929ee322041ec6/tst_flex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 67, 27592, 67, 5222, 13332, 314, 273, 16600, 18, 5222, 1435, 1815, 314, 18, 4880, 1435, 422, 374, 1815, 314, 18, 1467, 67, 21, 72, 1435, 422, 374, 1815, 486, 314, 18, 5332, 67, 10012, 1435, 1815, 314, 18, 10012, 1435, 422, 1832, 1815, 314, 18, 454, 1435, 422, 1832, 1815, 314, 18, 2722, 1435, 422, 1832, 1815, 314, 18, 2722, 12, 21, 13, 422, 1832, 1815, 314, 18, 2722, 12, 20, 13, 422, 1832, 1815, 314, 18, 291, 67, 20, 67, 12261, 1435, 1815, 486, 314, 18, 291, 67, 6982, 785, 1435, 1815, 486, 314, 18, 291, 67, 313, 20109, 67, 21, 72, 1435, 314, 273, 16600, 18, 5222, 12443, 22, 16, 23, 16, 25, 3719, 1815, 314, 18, 4880, 1435, 422, 890, 1815, 314, 18, 1467, 67, 21, 72, 1435, 422, 5196, 1815, 314, 18, 10012, 1435, 422, 261, 20, 16, 20, 16, 20, 13, 1815, 314, 18, 454, 1435, 422, 261, 22, 16, 23, 16, 25, 13, 1815, 314, 18, 2722, 1435, 422, 261, 22, 16, 23, 16, 25, 13, 1815, 314, 18, 2722, 12, 21, 13, 422, 261, 22, 16, 23, 16, 25, 13, 1815, 314, 18, 2722, 12, 20, 13, 422, 261, 21, 16, 22, 16, 24, 13, 1815, 314, 12443, 20, 16, 20, 16, 20, 3719, 422, 374, 1815, 314, 12443, 21, 16, 22, 16, 24, 3719, 422, 12899, 1815, 314, 18, 291, 67, 20, 67, 12261, 1435, 1815, 486, 314, 18, 291, 67, 6982, 785, 1435, 1815, 486, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24165, 67, 27592, 67, 5222, 13332, 314, 273, 16600, 18, 5222, 1435, 1815, 314, 18, 4880, 1435, 422, 374, 1815, 314, 18, 1467, 67, 21, 72, 1435, 422, 374, 1815, 486, 314, 18, 5332, 67, 10012, 1435, 1815, 314, 18, 10012, 1435, 422, 1832, 1815, 314, 18, 454, 1435, 422, 1832, 1815, 314, 18, 2722, 1435, 422, 1832, 1815, 314, 18, 2722, 12, 21, 13, 422, 1832, 1815, 314, 18, 2722, 12, 20, 13, 422, 1832, 1815, 314, 18, 291, 67, 20, 67, 12261, 1435, 1815, 486, 314, 18, 291, 67, 6982, 785, 1435, 1815, 486, 314, 18, 291, 67, 313, 20109, 67, 21, 72, 1435, 314, 273, 16600, 18, 5222, 12443, 22, 16, 23, 16, 25, 3719, 2 ]
print query, print 'report=' in query print not report_id in query
def _render_view(self, req, db, id): """Retrieve the report results and pre-process them for rendering."""
d01c79a20a24809b4ed7d35fa0f4baab97d68d04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/d01c79a20a24809b4ed7d35fa0f4baab97d68d04/report.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5902, 67, 1945, 12, 2890, 16, 1111, 16, 1319, 16, 612, 4672, 3536, 5767, 326, 2605, 1686, 471, 675, 17, 2567, 2182, 364, 9782, 12123, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5902, 67, 1945, 12, 2890, 16, 1111, 16, 1319, 16, 612, 4672, 3536, 5767, 326, 2605, 1686, 471, 675, 17, 2567, 2182, 364, 9782, 12123, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if filename.lower().find('chgcar') != -1 or len(self.chg) == 1: format = "chgcar"
if filename.lower().find('chgcar') != -1: format = 'chgcar' elif filename.lower().find('chg') != -1: format = 'chg' elif len(self.chg) == 1: format = 'chgcar'
def write(self, filename='CHG', format=None): """Write VASP charge density in CHG format
faff8ab41a4f3236e4b65a87950bf2459bd694ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/faff8ab41a4f3236e4b65a87950bf2459bd694ca/vasp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 1544, 2218, 1792, 43, 2187, 740, 33, 7036, 4672, 3536, 3067, 776, 3033, 52, 13765, 12142, 316, 6469, 43, 740, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1045, 12, 2890, 16, 1544, 2218, 1792, 43, 2187, 740, 33, 7036, 4672, 3536, 3067, 776, 3033, 52, 13765, 12142, 316, 6469, 43, 740, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
_dictionaryEntries = None def getDictionaryEntries(dictionary): global _dictionaryEntries if not _dictionaryEntries: db = dbconnector.getDBConnector() table = db.tables[dictionary] _dictionaryEntries = db.selectRows( select([table.c.HeadwordTraditional, table.c.HeadwordSimplified, table.c.Reading], distinct=True)\ .order_by(table.c.HeadwordTraditional)) return _dictionaryEntries def checkCharacterReading(entryList, readingName, readingOptions={},
def checkCharacterReading(dictionary, readingName, readingOptions={},
def getReadingOperator(readingName, readingOptions={}): global _readingOperator if not _readingOperator: readingFactory = ReadingFactory() _readingOperator = readingFactory.createReadingOperator(readingName, **readingOptions) return _readingOperator
03ee2902c9101f1e847d6ed9b78fc134a514e71a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/03ee2902c9101f1e847d6ed9b78fc134a514e71a/checkcedict.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 15714, 5592, 12, 21803, 461, 16, 6453, 1320, 12938, 4672, 2552, 389, 21803, 5592, 309, 486, 389, 21803, 5592, 30, 6453, 1733, 273, 31941, 1733, 1435, 389, 21803, 5592, 273, 6453, 1733, 18, 2640, 15714, 5592, 12, 21803, 461, 16, 2826, 21803, 1320, 13, 327, 389, 21803, 5592, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15714, 5592, 12, 21803, 461, 16, 6453, 1320, 12938, 4672, 2552, 389, 21803, 5592, 309, 486, 389, 21803, 5592, 30, 6453, 1733, 273, 31941, 1733, 1435, 389, 21803, 5592, 273, 6453, 1733, 18, 2640, 15714, 5592, 12, 21803, 461, 16, 2826, 21803, 1320, 13, 327, 389, 21803, 5592, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
['sage/modules/vector_modn_dense.pyx'])
['sage/modules/vector_modn_dense.pyx'])
def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False
697d48ce28ff4d12606adf26a8fb095216c31678 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/697d48ce28ff4d12606adf26a8fb095216c31678/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 2704, 264, 12, 768, 21, 16, 585, 22, 4672, 3536, 2000, 1053, 309, 3344, 585, 22, 1552, 486, 1005, 578, 353, 12156, 2353, 585, 21, 18, 225, 971, 585, 21, 1552, 486, 1005, 16, 3712, 327, 1083, 18, 3536, 309, 486, 1140, 18, 803, 18, 1808, 12, 768, 21, 4672, 327, 1083, 309, 486, 1140, 18, 803, 18, 1808, 12, 768, 22, 4672, 327, 1053, 309, 1140, 18, 803, 18, 588, 10838, 12, 768, 22, 13, 411, 1140, 18, 803, 18, 588, 10838, 12, 768, 21, 4672, 327, 1053, 327, 1083, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 16, 3712, 327, 1083, 18, 3536, 309, 486, 1140, 18, 803, 18, 1808, 12, 768, 21, 4672, 327, 1083, 309, 486, 1140, 18, 803, 18, 1808, 12, 768, 22, 4672, 327, 1053, 309, 1140, 18, 803, 18, 588, 10838, 12, 768, 22, 13, 411, 1140, 18, 803, 18, 588, 10838, 12, 768, 21, 4672, 327, 1053, 327, 1083, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.use_latex_toc:
if 'contents' in node['classes'] and self.use_latex_toc:
def visit_topic(self, node): self.topic_classes = node['classes'] if self.use_latex_toc: self.body.append('\\tableofcontents\n\n\\bigskip\n') self.topic_classes = [] raise nodes.SkipNode
728bed18a85c7e38c0686bef7c5aa5b0bc455ca2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/728bed18a85c7e38c0686bef7c5aa5b0bc455ca2/latex2e.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 10476, 12, 2890, 16, 756, 4672, 365, 18, 10476, 67, 4701, 273, 756, 3292, 4701, 3546, 309, 296, 3980, 11, 316, 756, 3292, 4701, 3546, 471, 365, 18, 1202, 67, 26264, 67, 1391, 30, 365, 18, 3432, 18, 6923, 2668, 1695, 2121, 792, 3980, 64, 82, 64, 82, 1695, 14002, 7457, 64, 82, 6134, 365, 18, 10476, 67, 4701, 273, 5378, 1002, 2199, 18, 6368, 907, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 10476, 12, 2890, 16, 756, 4672, 365, 18, 10476, 67, 4701, 273, 756, 3292, 4701, 3546, 309, 296, 3980, 11, 316, 756, 3292, 4701, 3546, 471, 365, 18, 1202, 67, 26264, 67, 1391, 30, 365, 18, 3432, 18, 6923, 2668, 1695, 2121, 792, 3980, 64, 82, 64, 82, 1695, 14002, 7457, 64, 82, 6134, 365, 18, 10476, 67, 4701, 273, 5378, 1002, 2199, 18, 6368, 907, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
extraHeaders = { 'Ticket' : self.ticket } else: extraHeaders = None
def _putItem(self, item): """ putItem should publish an item and return etag/date, etc. """
9407bec8d667ad0d61415abd978106b23f8daadc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9407bec8d667ad0d61415abd978106b23f8daadc/Sharing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 458, 1180, 12, 2890, 16, 761, 4672, 3536, 1378, 1180, 1410, 3808, 392, 761, 471, 327, 13655, 19, 712, 16, 5527, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 458, 1180, 12, 2890, 16, 761, 4672, 3536, 1378, 1180, 1410, 3808, 392, 761, 471, 327, 13655, 19, 712, 16, 5527, 18, 3536, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if __name__ == "__main__": __builtins__._ = None else: __builtins__['_'] = None
import builtins builtins._ = None
def run(self, test, compileflags=None, out=None, clear_globs=True): """ Run the examples in `test`, and display the results using the writer function `out`.
e1adf1357de1e60ce715c25abd6507a75d15d8c3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/e1adf1357de1e60ce715c25abd6507a75d15d8c3/doctest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 1842, 16, 4074, 7133, 33, 7036, 16, 596, 33, 7036, 16, 2424, 67, 10581, 87, 33, 5510, 4672, 3536, 1939, 326, 10991, 316, 1375, 3813, 9191, 471, 2562, 326, 1686, 1450, 326, 2633, 445, 1375, 659, 8338, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16, 1842, 16, 4074, 7133, 33, 7036, 16, 596, 33, 7036, 16, 2424, 67, 10581, 87, 33, 5510, 4672, 3536, 1939, 326, 10991, 316, 1375, 3813, 9191, 471, 2562, 326, 1686, 1450, 326, 2633, 445, 1375, 659, 8338, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""Returns the appropriate TestInfo object for the file. Mostly this means that we look up the timeout value (in ms) to use for the given test file. By default we use TestRunner.DEFAULT_TEST_TIMEOUT_MS (currently 10 secs), but that can be overridden with the --timeout-ms command line argument. Tests marked SLOW are allowed to be up to ten times slower than the normal timeout value."""
"""Returns the appropriate TestInfo object for the file. Mostly this is used for looking up the timeout value (in ms) to use for the given test."""
def _GetTestInfoForFile(self, test_file): """Returns the appropriate TestInfo object for the file. Mostly this means that we look up the timeout value (in ms) to use for the given test file. By default we use TestRunner.DEFAULT_TEST_TIMEOUT_MS (currently 10 secs), but that can be overridden with the --timeout-ms command line argument. Tests marked SLOW are allowed to be up to ten times slower than the normal timeout value.""" if self._expectations.HasModifier(test_file, test_expectations.SLOW): return TestInfo(test_file, str(10 * int(options.time_out_ms))) return TestInfo(test_file, self._options.time_out_ms)
99fcffb2f8d3711c3a21de6d596e83faf021d2bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/99fcffb2f8d3711c3a21de6d596e83faf021d2bd/run_webkit_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 967, 4709, 966, 1290, 812, 12, 2890, 16, 1842, 67, 768, 4672, 3536, 1356, 326, 5505, 7766, 966, 733, 364, 326, 585, 18, 22099, 715, 333, 353, 1399, 364, 7849, 731, 326, 2021, 460, 261, 267, 4086, 13, 358, 999, 364, 326, 864, 1842, 12123, 309, 365, 6315, 12339, 1012, 18, 5582, 9829, 12, 3813, 67, 768, 16, 1842, 67, 12339, 1012, 18, 55, 4130, 4672, 327, 7766, 966, 12, 3813, 67, 768, 16, 609, 12, 2163, 380, 509, 12, 2116, 18, 957, 67, 659, 67, 959, 20349, 327, 7766, 966, 12, 3813, 67, 768, 16, 365, 6315, 2116, 18, 957, 67, 659, 67, 959, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 967, 4709, 966, 1290, 812, 12, 2890, 16, 1842, 67, 768, 4672, 3536, 1356, 326, 5505, 7766, 966, 733, 364, 326, 585, 18, 22099, 715, 333, 353, 1399, 364, 7849, 731, 326, 2021, 460, 261, 267, 4086, 13, 358, 999, 364, 326, 864, 1842, 12123, 309, 365, 6315, 12339, 1012, 18, 5582, 9829, 12, 3813, 67, 768, 16, 1842, 67, 12339, 1012, 18, 55, 4130, 4672, 327, 7766, 966, 12, 3813, 67, 768, 16, 609, 12, 2163, 380, 509, 12, 2116, 18, 957, 67, 659, 67, 959, 20349, 327, 7766, 966, 12, 3813, 67, 768, 16, 365, 6315, 2116, 18, 957, 67, 659, 67, 959, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
else: punishableAvg = totalAvg stoptime = (totalAvg - cpulimit) * totaltime * 2
def enforce_cpu_quota(readfobj, cpulimit, frequency, childpid): global totaltime, totalcpu elapsedtime, percentused = get_time_and_cpu_percent(readfobj) # They get a free pass (likely their first or last time) if elapsedtime == 0.0: return # Increment total time totaltime += elapsedtime # Increment CPU use if ((totalcpu/totaltime) >= cpulimit): totalcpu += percentused*elapsedtime # Don't apply max function, allow the average to drop else: # Set a minimum for percentused, enfore a use it or lose it policy totalcpu += max(percentused, cpulimit)*elapsedtime # Update rolling info if len(rollingCPU) == ROLLING_PERIOD: rollingCPU.pop(0) rollingIntervals.pop(0) rollingCPU.append(percentused*elapsedtime) rollingIntervals.append(elapsedtime) # Caclulate Averages add = lambda x, y: x+y rollingTotalCPU = reduce(add, rollingCPU) rollingTotalTime = reduce(add, rollingIntervals) rollingAvg = rollingTotalCPU/rollingTotalTime totalAvg = (totalcpu/totaltime) # Determine which average to use if rollingAvg > totalAvg: punishableAvg = rollingAvg stoptime = (rollingTotalTime / frequency) * (rollingAvg - cpulimit) * 2 else: punishableAvg = totalAvg stoptime = (totalAvg - cpulimit) * totaltime * 2 #print (totalcpu/totaltime), percentused, elapsedtime, totaltime, totalcpu #print totaltime, ",", (totalcpu/totaltime), "," , rollingAvg, ",", percentused #print totaltime , "," ,rollingAvg, ",", totalAvg, ",", percentused # If average CPU use is fine, then continue #if (totalcpu/totaltime) <= cpulimit: if punishableAvg <= cpulimit: time.sleep(frequency) # If we don't sleep, this process burns cpu doing nothing return # They must be punished by stopping os.kill(childpid, signal.SIGSTOP) # we'll stop them for at least long enough to even out the damage # why does this formula work? Where does *2 come from? # I checked and sleep is sleeping the full time... # I've verified the os.times() data tracks perfectly... # I've tried it will different publishing frequencies and it works... # this formula works for different cpulimits as well # for very low sleep rates, this doesn't work. The time is way over. # for high sleep rates, this works fine. # Old Stop Time #stoptime = (((percentused-cpulimit) / cpulimit)-1) * elapsedtime * 2 # New stoptime # Determine how far over the limit the average, and punish progressively # Also, unsure about the *2 but it does seem to work.... #stoptime = ((totalcpu/totaltime) - cpulimit) * totaltime * 2 #stoptime = (punishableAvg - cpulimit) * totaltime * 2 # Sanity Check # There is no reason to punish a process for more than # frequency / cpulimit # BECAUSE that means that if a process uses 100% during a sampling interval, # the resulting stop+use interval should average to the CPU limit # stoptime = min(frequency/cpulimit, stoptime) #print "Stopping: ", stoptime time.sleep(stoptime) # And now they can start back up! os.kill(childpid, signal.SIGCONT) # If stoptime < frequency, then we would over-sample if we don't sleep if (stoptime < frequency): time.sleep(frequency-stoptime)
57cc65f7602baf18d5f7417c8dbc3ce7a1f6aa79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7263/57cc65f7602baf18d5f7417c8dbc3ce7a1f6aa79/nonportable.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12980, 67, 11447, 67, 23205, 12, 896, 27936, 16, 3283, 332, 1038, 16, 8670, 16, 1151, 6610, 4672, 2552, 2078, 957, 16, 2078, 11447, 225, 9613, 957, 16, 5551, 3668, 273, 336, 67, 957, 67, 464, 67, 11447, 67, 8849, 12, 896, 27936, 13, 225, 468, 16448, 336, 279, 4843, 1342, 261, 24178, 3675, 1122, 578, 1142, 813, 13, 309, 9613, 957, 422, 374, 18, 20, 30, 327, 225, 468, 17883, 2078, 813, 2078, 957, 1011, 9613, 957, 468, 17883, 12154, 999, 309, 14015, 4963, 11447, 19, 4963, 957, 13, 1545, 3283, 332, 1038, 4672, 2078, 11447, 1011, 5551, 3668, 14, 26201, 957, 468, 7615, 1404, 2230, 943, 445, 16, 1699, 326, 8164, 358, 3640, 469, 30, 468, 1000, 279, 5224, 364, 5551, 3668, 16, 570, 1405, 279, 999, 518, 578, 29612, 518, 3329, 2078, 11447, 1011, 943, 12, 8849, 3668, 16, 3283, 332, 1038, 17653, 26201, 957, 225, 468, 2315, 21793, 1123, 309, 562, 12, 15742, 15222, 13, 422, 534, 1741, 26789, 67, 28437, 30, 21793, 15222, 18, 5120, 12, 20, 13, 21793, 24224, 18, 5120, 12, 20, 13, 21793, 15222, 18, 6923, 12, 8849, 3668, 14, 26201, 957, 13, 21793, 24224, 18, 6923, 12, 26201, 957, 13, 225, 468, 385, 10150, 6243, 432, 502, 1023, 527, 273, 3195, 619, 16, 677, 30, 619, 15, 93, 21793, 5269, 15222, 273, 5459, 12, 1289, 16, 21793, 15222, 13, 21793, 5269, 950, 273, 5459, 12, 1289, 16, 21793, 24224, 13, 21793, 22823, 273, 21793, 5269, 15222, 19, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12980, 67, 11447, 67, 23205, 12, 896, 27936, 16, 3283, 332, 1038, 16, 8670, 16, 1151, 6610, 4672, 2552, 2078, 957, 16, 2078, 11447, 225, 9613, 957, 16, 5551, 3668, 273, 336, 67, 957, 67, 464, 67, 11447, 67, 8849, 12, 896, 27936, 13, 225, 468, 16448, 336, 279, 4843, 1342, 261, 24178, 3675, 1122, 578, 1142, 813, 13, 309, 9613, 957, 422, 374, 18, 20, 30, 327, 225, 468, 17883, 2078, 813, 2078, 957, 1011, 9613, 957, 468, 17883, 12154, 999, 309, 14015, 4963, 11447, 19, 4963, 957, 13, 1545, 3283, 332, 1038, 4672, 2078, 11447, 1011, 5551, 3668, 14, 26201, 957, 468, 7615, 1404, 2230, 943, 445, 16, 1699, 326, 8164, 358, 3640, 469, 30, 468, 2 ]
sys.path = [ norm_path(p) for p in sys.path ] ROBOTDIR = norm_path(os.path.dirname(os.path.abspath(__file__)))
ROBOTDIR = os.path.dirname(os.path.abspath(__file__))
def remove_path(path): path = norm_path(path) while path in sys.path: sys.path.remove(path)
94bbe917c2c4dfd733d4240e01d56a21b2abe07a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/94bbe917c2c4dfd733d4240e01d56a21b2abe07a/pythonpathsetter.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 803, 12, 803, 4672, 589, 273, 4651, 67, 803, 12, 803, 13, 1323, 589, 316, 2589, 18, 803, 30, 2589, 18, 803, 18, 4479, 12, 803, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1206, 67, 803, 12, 803, 4672, 589, 273, 4651, 67, 803, 12, 803, 13, 1323, 589, 316, 2589, 18, 803, 30, 2589, 18, 803, 18, 4479, 12, 803, 13, 282, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100 ]
if isinstance(b, str):
if not type(b) == tuple:
def calc_prob(self, tree, parent=None): '''walking a tree bottom-up based on dictionary ''' endog = self.endog datadict = self.datadict paramsind = self.paramsind branchsum = self.branchsum
43e417321b16e1b7068d0a6d62ba8cbda226a35c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/43e417321b16e1b7068d0a6d62ba8cbda226a35c/treewalkerclass.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 67, 7748, 12, 2890, 16, 2151, 16, 982, 33, 7036, 4672, 9163, 11348, 310, 279, 2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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7029, 67, 7748, 12, 2890, 16, 2151, 16, 982, 33, 7036, 4672, 9163, 11348, 310, 279, 2151, 5469, 17, 416, 2511, 603, 3880, 9163, 679, 717, 273, 365, 18, 409, 717, 22034, 933, 273, 365, 18, 3404, 361, 933, 859, 728, 273, 365, 18, 2010, 728, 3803, 1364, 273, 365, 18, 7500, 1364, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if module == 'chandler': print 'Nothing to be done for module', module log.write('Nothing to be done for module ' + module + '\n') log.write(separator) continue
if module == 'chandler' and not svnChanges['external'] and not svnChanges['internal']: makeTargets = dbgStr + " " + clean + " install purge"
def doBuild(buildmode, workingDir, log, svnChanges, clean='realclean'): # We only build external if there were changes in it # We build internal if external or internal were changed # We never build in chandler, because there is nothing to build if buildmode == "debug": dbgStr = "DEBUG=1" else: dbgStr = "" buildRoot = os.path.join(workingDir, 'external') print 'Setting BUILD_ROOT=', buildRoot log.write('Setting BUILD_ROOT=' + buildRoot + '\n') os.putenv('BUILD_ROOT', buildRoot) try: for module in reposModules: print module, "..." log.write("- - - - " + module + " - - - - - - -\n") if module == 'external' and not svnChanges['external']: print 'Nothing to be done for module', module log.write('Nothing to be done for module ' + module + '\n') log.write(separator) continue if module == 'internal' and not svnChanges['external'] and not svnChanges['internal']: print 'Nothing to be done for module', module log.write('Nothing to be done for module ' + module + '\n') log.write(separator) continue if module == 'chandler': print 'Nothing to be done for module', module log.write('Nothing to be done for module ' + module + '\n') log.write(separator) continue moduleDir = os.path.join(workingDir, module) print "cd", moduleDir log.write("cd " + moduleDir + "\n") os.chdir(moduleDir) print "Doing make " + dbgStr + " " + clean + " world\n" log.write("Doing make " + dbgStr + " " + clean + " world\n") outputList = hardhatutil.executeCommandReturnOutput( [buildenv['make'], dbgStr, clean, "world"]) hardhatutil.dumpOutputList(outputList, log) log.write(separator) except hardhatutil.ExternalCommandErrorWithOutputList, e: print "build error" log.write("***Error during build***\n") log.write(separator) log.write("Build log:" + "\n") hardhatutil.dumpOutputList(e.outputList, log) log.write(separator) forceBuildNextCycle(log, workingDir) raise e except Exception, e: print "build error" log.write("***Error during build***\n") log.write(separator) log.write("No build log!\n") log.write(separator) forceBuildNextCycle(log, workingDir) raise e
b13de730b44dccc5fe915b9135f4168cc5544b02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/b13de730b44dccc5fe915b9135f4168cc5544b02/fullchandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 3116, 12, 3510, 3188, 16, 5960, 1621, 16, 613, 16, 5893, 82, 7173, 16, 2721, 2218, 7688, 6200, 11, 4672, 468, 1660, 1338, 1361, 3903, 309, 1915, 4591, 3478, 316, 518, 468, 1660, 1361, 2713, 309, 3903, 578, 2713, 4591, 3550, 468, 1660, 5903, 1361, 316, 462, 464, 749, 16, 2724, 1915, 353, 5083, 358, 1361, 309, 1361, 3188, 422, 315, 4148, 6877, 28966, 1585, 273, 315, 9394, 33, 21, 6, 469, 30, 28966, 1585, 273, 1408, 225, 1361, 2375, 273, 225, 1140, 18, 803, 18, 5701, 12, 20478, 1621, 16, 296, 9375, 6134, 1172, 296, 5568, 30054, 67, 9185, 33, 2187, 1361, 2375, 613, 18, 2626, 2668, 5568, 30054, 67, 9185, 2218, 397, 1361, 2375, 397, 2337, 82, 6134, 1140, 18, 458, 3074, 2668, 20215, 67, 9185, 2187, 1361, 2375, 13, 225, 775, 30, 364, 1605, 316, 13686, 7782, 30, 1172, 1605, 16, 26456, 613, 18, 2626, 2932, 17, 300, 300, 300, 315, 397, 1605, 397, 315, 300, 300, 300, 300, 300, 300, 300, 64, 82, 7923, 225, 309, 1605, 422, 296, 9375, 11, 471, 486, 5893, 82, 7173, 3292, 9375, 3546, 30, 1172, 296, 23814, 358, 506, 2731, 364, 1605, 2187, 1605, 613, 18, 2626, 2668, 23814, 358, 506, 2731, 364, 1605, 296, 397, 1605, 397, 2337, 82, 6134, 613, 18, 2626, 12, 11287, 13, 1324, 309, 1605, 422, 296, 7236, 11, 471, 486, 5893, 82, 7173, 3292, 9375, 3546, 471, 486, 5893, 82, 7173, 3292, 7236, 3546, 30, 1172, 296, 23814, 358, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 3116, 12, 3510, 3188, 16, 5960, 1621, 16, 613, 16, 5893, 82, 7173, 16, 2721, 2218, 7688, 6200, 11, 4672, 468, 1660, 1338, 1361, 3903, 309, 1915, 4591, 3478, 316, 518, 468, 1660, 1361, 2713, 309, 3903, 578, 2713, 4591, 3550, 468, 1660, 5903, 1361, 316, 462, 464, 749, 16, 2724, 1915, 353, 5083, 358, 1361, 309, 1361, 3188, 422, 315, 4148, 6877, 28966, 1585, 273, 315, 9394, 33, 21, 6, 469, 30, 28966, 1585, 273, 1408, 225, 1361, 2375, 273, 225, 1140, 18, 803, 18, 5701, 12, 20478, 1621, 16, 296, 9375, 6134, 1172, 296, 5568, 30054, 67, 9185, 33, 2187, 1361, 2375, 613, 18, 2626, 2668, 5568, 30054, 67, 9185, 2218, 397, 1361, 2375, 397, 2 ]
method=True,store=True, type='datetime', string='Max. Planned Date', select=2), 'move_lines': fields.one2many('stock.move', 'picking_id', 'Move lines',states={'done':[('readonly',True)],'cancel':[('readonly',True)]}),
method=True, store=True, type='datetime', string='Max. Planned Date', select=2), 'move_lines': fields.one2many('stock.move', 'picking_id', 'Move lines', states={'done': [('readonly', True)], 'cancel': [('readonly', True)]}),
def create(self, cr, user, vals, context=None): if ('name' not in vals) or (vals.get('name')=='/'): vals['name'] = self.pool.get('ir.sequence').get(cr, user, 'stock.picking') return super(stock_picking, self).create(cr, user, vals, context)
369221b47101072e094ad2d02fe2edd2b47690aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/369221b47101072e094ad2d02fe2edd2b47690aa/stock.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 4422, 16, 729, 16, 5773, 16, 819, 33, 7036, 4672, 309, 7707, 529, 11, 486, 316, 5773, 13, 578, 261, 4524, 18, 588, 2668, 529, 6134, 18920, 2473, 4672, 5773, 3292, 529, 3546, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 6178, 16063, 588, 12, 3353, 16, 729, 16, 296, 15381, 18, 11503, 310, 6134, 327, 2240, 12, 15381, 67, 11503, 310, 16, 365, 2934, 2640, 12, 3353, 16, 729, 16, 5773, 16, 819, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 18, 588, 2668, 481, 18, 6178, 16063, 588, 12, 3353, 16, 729, 16, 296, 15381, 18, 11503, 310, 6134, 327, 2240, 12, 15381, 67, 11503, 310, 16, 365, 2934, 2640, 12, 3353, 16, 729, 16, 5773, 16, 819, 13, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
f = self.get_time()
f = get_time()
def calibrate(self, m): # Modified by Tim Peters n = m s = self.get_time() while n: self.simple() n = n - 1 f = self.get_time() my_simple = f - s #print "Simple =", my_simple,
7c76e9ea47c5473c749a68d4ceef4f076daffc4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7c76e9ea47c5473c749a68d4ceef4f076daffc4a/profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 26139, 5141, 12, 2890, 16, 312, 4672, 468, 21154, 635, 12652, 453, 1032, 290, 273, 312, 272, 273, 365, 18, 588, 67, 957, 1435, 1323, 290, 30, 365, 18, 9647, 1435, 290, 273, 290, 300, 404, 284, 273, 336, 67, 957, 1435, 3399, 67, 9647, 273, 284, 300, 272, 468, 1188, 315, 5784, 273, 3113, 3399, 67, 9647, 16, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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141, 12, 2890, 16, 312, 4672, 468, 21154, 635, 12652, 453, 1032, 290, 273, 312, 272, 273, 365, 18, 588, 67, 957, 1435, 1323, 290, 30, 365, 18, 9647, 1435, 290, 273, 290, 300, 404, 284, 273, 336, 67, 957, 1435, 3399, 67, 9647, 273, 284, 300, 272, 468, 1188, 315, 5784, 273, 3113, 3399, 67, 9647, 16, 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, -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, -100, -100, -100, -100, -100 ]
This callback will be called with one method, this instance.
This callback will be called with one argument, this instance.
def notifyOnDisconnect(self, callback): """Register a callback to be called if our broker gets disconnected.
1a93ab3e183ef6bc5d75ed809d92737628e44232 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/1a93ab3e183ef6bc5d75ed809d92737628e44232/pb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5066, 1398, 18895, 12, 2890, 16, 1348, 4672, 3536, 3996, 279, 1348, 358, 506, 2566, 309, 3134, 8625, 5571, 17853, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 5066, 1398, 18895, 12, 2890, 16, 1348, 4672, 3536, 3996, 279, 1348, 358, 506, 2566, 309, 3134, 8625, 5571, 17853, 18, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
options.ramdb = True options.create = True parcelPath = Utility.initParcelEnv(options, chandlerDir) pluginEnv, pluginEggs = Utility.initPluginEnv(Globals.options, Globals.options.pluginPath) view = Utility.initRepository(repositoryDir, options) Utility.initParcels(options, view, parcelPath) Utility.initPlugins(Globals.options, view, pluginEnv, pluginEggs)
def generateModelDocs(options, outputDir=None): urlRoot = '/docs/current/model' chandlerDir = Utility.locateChandlerDirectory() repositoryDir = Utility.locateRepositoryDirectory(chandlerDir, options) if not outputDir: modelDir = os.path.join(chandlerDir, 'docs', 'model') else: modelDir = os.path.join(outputDir, 'model') options.ramdb = True # force ramdb options.create = True # force a repository wipe parcelPath = Utility.initParcelEnv(options, chandlerDir) pluginEnv, pluginEggs = Utility.initPluginEnv(Globals.options, Globals.options.pluginPath) view = Utility.initRepository(repositoryDir, options) Utility.initParcels(options, view, parcelPath) Utility.initPlugins(Globals.options, view, pluginEnv, pluginEggs) if not os.path.isdir(modelDir): _mkdirs(modelDir) conf = { 'directory': modelDir, 'urlRoot': urlRoot, 'css': '%s/schema.css' % urlRoot, } for root in view.iterRoots(): processItem(root, generateSchemaDocument, conf) generateIndex(view, conf) shutil.copy(os.path.join(chandlerDir, 'tools', 'schema.css'), os.path.join(modelDir, 'schema.css')) Utility.stopRepository(view)
0ac9b659361825b14b17130480cba4fa87a2569a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/0ac9b659361825b14b17130480cba4fa87a2569a/gen_docs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 1488, 12656, 12, 2116, 16, 21412, 33, 7036, 4672, 880, 2375, 4202, 273, 1173, 8532, 19, 2972, 19, 2284, 11, 462, 464, 749, 1621, 282, 273, 13134, 18, 25450, 782, 464, 749, 2853, 1435, 3352, 1621, 273, 13134, 18, 25450, 3305, 2853, 12, 343, 464, 749, 1621, 16, 702, 13, 225, 309, 486, 21412, 30, 938, 1621, 273, 1140, 18, 803, 18, 5701, 12, 343, 464, 749, 1621, 16, 296, 8532, 2187, 296, 2284, 6134, 469, 30, 938, 1621, 273, 1140, 18, 803, 18, 5701, 12, 2844, 1621, 16, 296, 2284, 6134, 225, 702, 18, 1940, 1966, 225, 273, 1053, 468, 2944, 24975, 1966, 702, 18, 2640, 273, 1053, 468, 2944, 279, 3352, 341, 3151, 225, 779, 2183, 743, 273, 13134, 18, 2738, 1553, 2183, 3491, 12, 2116, 16, 462, 464, 749, 1621, 13, 1909, 3491, 16, 1909, 41, 75, 564, 273, 13134, 18, 2738, 3773, 3491, 12, 19834, 18, 2116, 16, 18901, 1031, 18, 2116, 18, 4094, 743, 13, 1476, 273, 13134, 18, 2738, 3305, 12, 9071, 1621, 16, 702, 13, 225, 13134, 18, 2738, 1553, 2183, 87, 12, 2116, 16, 1476, 16, 779, 2183, 743, 13, 13134, 18, 2738, 9461, 12, 19834, 18, 2116, 16, 1476, 16, 1909, 3491, 16, 1909, 41, 75, 564, 13, 225, 309, 486, 1140, 18, 803, 18, 291, 1214, 12, 2284, 1621, 4672, 389, 24816, 8291, 12, 2284, 1621, 13, 225, 2195, 273, 288, 296, 5149, 4278, 938, 1621, 16, 296, 718, 2375, 4278, 282, 880, 2375, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 1488, 12656, 12, 2116, 16, 21412, 33, 7036, 4672, 880, 2375, 4202, 273, 1173, 8532, 19, 2972, 19, 2284, 11, 462, 464, 749, 1621, 282, 273, 13134, 18, 25450, 782, 464, 749, 2853, 1435, 3352, 1621, 273, 13134, 18, 25450, 3305, 2853, 12, 343, 464, 749, 1621, 16, 702, 13, 225, 309, 486, 21412, 30, 938, 1621, 273, 1140, 18, 803, 18, 5701, 12, 343, 464, 749, 1621, 16, 296, 8532, 2187, 296, 2284, 6134, 469, 30, 938, 1621, 273, 1140, 18, 803, 18, 5701, 12, 2844, 1621, 16, 296, 2284, 6134, 225, 702, 18, 1940, 1966, 225, 273, 1053, 468, 2944, 24975, 1966, 702, 18, 2640, 273, 1053, 468, 2944, 279, 3352, 341, 3151, 225, 779, 2 ]
for inv in self.browse(cr, uid, ids, context): print inv.name, inv.amount_total for line in inv.invoice_line: print line.price_subtotal
invoices = self.read(cr, uid, ids, ['state']) unlink_ids = [] for t in invoices: if t['state'] in ('draft', 'cancel'): unlink_ids.append(t['id']) else: raise osv.except_osv(_('Invalid action !'), _('Cannot delete invoice(s) that are already opened or paid !')) osv.osv.unlink(self, cr, uid, unlink_ids, context=context) return True
def unlink(self, cr, uid, ids, context=None): for inv in self.browse(cr, uid, ids, context): print inv.name, inv.amount_total for line in inv.invoice_line: print line.price_subtotal
86597698aa994e439adbb2af281cd3fdad58165a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/86597698aa994e439adbb2af281cd3fdad58165a/invoice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 364, 2198, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 1172, 2198, 18, 529, 16, 2198, 18, 8949, 67, 4963, 364, 980, 316, 2198, 18, 16119, 67, 1369, 30, 1172, 980, 18, 8694, 67, 1717, 4963, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8255, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 33, 7036, 4672, 364, 2198, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 1172, 2198, 18, 529, 16, 2198, 18, 8949, 67, 4963, 364, 980, 316, 2198, 18, 16119, 67, 1369, 30, 1172, 980, 18, 8694, 67, 1717, 4963, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ifp = open(srcfss.as_pathname(), 'rb') ofp = open(dstfss.as_pathname(), 'wb')
ifp = open(src, 'rb') ofp = open(dst, 'wb')
def copy(src, dst, createpath=0, copydates=1, forcetype=None): """Copy a file, including finder info, resource fork, etc""" if createpath: mkdirs(os.path.split(dst)[0]) srcfss = macfs.FSSpec(src) dstfss = macfs.FSSpec(dst) ifp = open(srcfss.as_pathname(), 'rb') ofp = open(dstfss.as_pathname(), 'wb') d = ifp.read(BUFSIZ) while d: ofp.write(d) d = ifp.read(BUFSIZ) ifp.close() ofp.close() ifp = openrf(srcfss.as_pathname(), '*rb') ofp = openrf(dstfss.as_pathname(), '*wb') d = ifp.read(BUFSIZ) while d: ofp.write(d) d = ifp.read(BUFSIZ) ifp.close() ofp.close() sf = srcfss.GetFInfo() df = dstfss.GetFInfo() df.Creator, df.Type = sf.Creator, sf.Type if forcetype != None: df.Type = forcetype df.Flags = (sf.Flags & (kIsStationary|kNameLocked|kHasBundle|kIsInvisible|kIsAlias)) dstfss.SetFInfo(df) if copydates: crdate, mddate, bkdate = srcfss.GetDates() dstfss.SetDates(crdate, mddate, bkdate) touched(dstfss)
fee7a54e3e4b7473743856c6f2bb29c101f46603 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/fee7a54e3e4b7473743856c6f2bb29c101f46603/macostools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 4816, 16, 3046, 16, 752, 803, 33, 20, 16, 1610, 9683, 33, 21, 16, 364, 71, 5872, 33, 7036, 4672, 3536, 2951, 279, 585, 16, 6508, 7532, 1123, 16, 1058, 12515, 16, 5527, 8395, 309, 752, 803, 30, 18095, 12, 538, 18, 803, 18, 4939, 12, 11057, 25146, 20, 5717, 1705, 74, 1049, 273, 5318, 2556, 18, 42, 1260, 705, 12, 4816, 13, 3046, 74, 1049, 273, 5318, 2556, 18, 42, 1260, 705, 12, 11057, 13, 225, 309, 84, 273, 1696, 12, 4816, 16, 296, 6731, 6134, 434, 84, 273, 1696, 12, 11057, 16, 296, 9464, 6134, 302, 273, 309, 84, 18, 896, 12, 3000, 42, 2320, 62, 13, 1323, 302, 30, 434, 84, 18, 2626, 12, 72, 13, 302, 273, 309, 84, 18, 896, 12, 3000, 42, 2320, 62, 13, 309, 84, 18, 4412, 1435, 434, 84, 18, 4412, 1435, 225, 309, 84, 273, 1696, 5809, 12, 4816, 74, 1049, 18, 345, 67, 28336, 9334, 14609, 6731, 6134, 434, 84, 273, 1696, 5809, 12, 11057, 74, 1049, 18, 345, 67, 28336, 9334, 14609, 9464, 6134, 302, 273, 309, 84, 18, 896, 12, 3000, 42, 2320, 62, 13, 1323, 302, 30, 434, 84, 18, 2626, 12, 72, 13, 302, 273, 309, 84, 18, 896, 12, 3000, 42, 2320, 62, 13, 309, 84, 18, 4412, 1435, 434, 84, 18, 4412, 1435, 225, 9033, 273, 1705, 74, 1049, 18, 967, 42, 966, 1435, 3013, 273, 3046, 74, 1049, 18, 967, 42, 966, 1435, 3013, 18, 10636, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 4816, 16, 3046, 16, 752, 803, 33, 20, 16, 1610, 9683, 33, 21, 16, 364, 71, 5872, 33, 7036, 4672, 3536, 2951, 279, 585, 16, 6508, 7532, 1123, 16, 1058, 12515, 16, 5527, 8395, 309, 752, 803, 30, 18095, 12, 538, 18, 803, 18, 4939, 12, 11057, 25146, 20, 5717, 1705, 74, 1049, 273, 5318, 2556, 18, 42, 1260, 705, 12, 4816, 13, 3046, 74, 1049, 273, 5318, 2556, 18, 42, 1260, 705, 12, 11057, 13, 225, 309, 84, 273, 1696, 12, 4816, 16, 296, 6731, 6134, 434, 84, 273, 1696, 12, 11057, 16, 296, 9464, 6134, 302, 273, 309, 84, 18, 896, 12, 3000, 42, 2320, 62, 13, 1323, 302, 30, 434, 84, 18, 2626, 2 ]
ldflags = self.ldflags_shared_debug
ld_args = self.ldflags_shared_debug[:]
def link_shared_object (self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0, extra_preargs=None, extra_postargs=None, build_temp=None):
c58c5177419a3703cb2c6397471ab1e8756a6755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c58c5177419a3703cb2c6397471ab1e8756a6755/bcppcompiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 3099, 67, 12083, 67, 8291, 33, 7036, 16, 3359, 67, 15536, 33, 7036, 16, 1198, 33, 20, 16, 2870, 67, 1484, 1968, 33, 7036, 16, 2870, 67, 2767, 1968, 33, 7036, 16, 1361, 67, 5814, 33, 7036, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 326, 22398, 316, 326, 981, 30, 1652, 1692, 67, 11574, 67, 1612, 261, 2890, 16, 2184, 16, 876, 67, 3459, 16, 876, 67, 1214, 33, 7036, 16, 14732, 33, 7036, 16, 5313, 67, 8291, 33, 7036, 16, 3099, 67, 12083, 67, 8291, 33, 7036, 16, 3359, 67, 15536, 33, 7036, 16, 1198, 33, 20, 16, 2870, 67, 1484, 1968, 33, 7036, 16, 2870, 67, 2767, 1968, 33, 7036, 16, 1361, 67, 5814, 33, 7036, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, -100, -100 ]
EVT_LEFT_DCLICK(self, self.OnGotoSource)
EVT_LEFT_DCLICK(self, self.OnGotoSource)
def __init__(self, parent, debugger):#, flist, browser): wxListCtrl.__init__(self, parent, wxID_BREAKVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Module', wxLIST_FORMAT_LEFT, 90) self.InsertColumn(1, 'Line', wxLIST_FORMAT_CENTER, 40) self.InsertColumn(2, 'Ignore', wxLIST_FORMAT_CENTER, 45) self.InsertColumn(3, 'Hits', wxLIST_FORMAT_CENTER, 45) self.InsertColumn(4, 'Condition', wxLIST_FORMAT_LEFT, 250)
872f754eafee36b7b9b20954604570707e5cd36c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/872f754eafee36b7b9b20954604570707e5cd36c/Debugger.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 19977, 4672, 7, 16, 284, 1098, 16, 4748, 4672, 7075, 682, 12418, 16186, 2738, 972, 12, 2890, 16, 982, 16, 7075, 734, 67, 27960, 12145, 16, 2154, 273, 7075, 13394, 67, 22710, 571, 7075, 13394, 67, 20184, 67, 1090, 48, 262, 365, 18, 4600, 1494, 12, 20, 16, 296, 3120, 2187, 7075, 7085, 67, 7254, 67, 10066, 16, 8566, 13, 365, 18, 4600, 1494, 12, 21, 16, 296, 1670, 2187, 7075, 7085, 67, 7254, 67, 19835, 16, 8063, 13, 365, 18, 4600, 1494, 12, 22, 16, 296, 3777, 2187, 7075, 7085, 67, 7254, 67, 19835, 16, 12292, 13, 365, 18, 4600, 1494, 12, 23, 16, 296, 20950, 2187, 7075, 7085, 67, 7254, 67, 19835, 16, 12292, 13, 365, 18, 4600, 1494, 12, 24, 16, 296, 3418, 2187, 7075, 7085, 67, 7254, 67, 10066, 16, 16927, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 982, 16, 19977, 4672, 7, 16, 284, 1098, 16, 4748, 4672, 7075, 682, 12418, 16186, 2738, 972, 12, 2890, 16, 982, 16, 7075, 734, 67, 27960, 12145, 16, 2154, 273, 7075, 13394, 67, 22710, 571, 7075, 13394, 67, 20184, 67, 1090, 48, 262, 365, 18, 4600, 1494, 12, 20, 16, 296, 3120, 2187, 7075, 7085, 67, 7254, 67, 10066, 16, 8566, 13, 365, 18, 4600, 1494, 12, 21, 16, 296, 1670, 2187, 7075, 7085, 67, 7254, 67, 19835, 16, 8063, 13, 365, 18, 4600, 1494, 12, 22, 16, 296, 3777, 2187, 7075, 7085, 67, 7254, 67, 19835, 16, 12292, 13, 365, 18, 4600, 1494, 12, 23, 16, 296, 20950, 2187, 7075, 7085, 2 ]
self.prohibit_importing('debian.debian_support') self.mock_imports('launch_control.sw_profile') mocker = Mocker() obj = mocker.replace('debian_bundle.debian_support.version_compare') mocker.replay() import launch_control.sw_profile self.assertTrue(launch_control.sw_profile.debian_version_compare is obj) mocker.verify() mocker.restore()
try: import debian except ImportError: pass else: self.prohibit_importing('debian.debian_support') self.mock_imports('launch_control.sw_profile') mocker = Mocker() obj = mocker.replace('debian_bundle.debian_support.version_compare') mocker.replay() import launch_control.sw_profile self.assertTrue(launch_control.sw_profile.debian_version_compare is obj) mocker.verify() mocker.restore()
def test_debian_import_failure(self): """ Make sure we import debian_bundle if debian is not available """ self.prohibit_importing('debian.debian_support') self.mock_imports('launch_control.sw_profile') mocker = Mocker() obj = mocker.replace('debian_bundle.debian_support.version_compare') mocker.replay() import launch_control.sw_profile self.assertTrue(launch_control.sw_profile.debian_version_compare is obj) mocker.verify() mocker.restore()
dca9f2f5f76d60bccbb7c30194b7d789cf436e20 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12617/dca9f2f5f76d60bccbb7c30194b7d789cf436e20/sw_profile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 31888, 2779, 67, 5666, 67, 12251, 12, 2890, 4672, 3536, 4344, 3071, 732, 1930, 18202, 2779, 67, 9991, 309, 18202, 2779, 353, 486, 2319, 3536, 365, 18, 685, 31597, 67, 5666, 310, 2668, 31888, 2779, 18, 31888, 2779, 67, 13261, 6134, 365, 18, 22851, 67, 21350, 2668, 20738, 67, 7098, 18, 5328, 67, 5040, 6134, 5416, 264, 273, 490, 6203, 1435, 1081, 273, 5416, 264, 18, 2079, 2668, 31888, 2779, 67, 9991, 18, 31888, 2779, 67, 13261, 18, 1589, 67, 9877, 6134, 5416, 264, 18, 266, 1601, 1435, 1930, 8037, 67, 7098, 18, 5328, 67, 5040, 365, 18, 11231, 5510, 12, 20738, 67, 7098, 18, 5328, 67, 5040, 18, 31888, 2779, 67, 1589, 67, 9877, 353, 1081, 13, 5416, 264, 18, 8705, 1435, 5416, 264, 18, 13991, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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31888, 2779, 67, 5666, 67, 12251, 12, 2890, 4672, 3536, 4344, 3071, 732, 1930, 18202, 2779, 67, 9991, 309, 18202, 2779, 353, 486, 2319, 3536, 365, 18, 685, 31597, 67, 5666, 310, 2668, 31888, 2779, 18, 31888, 2779, 67, 13261, 6134, 365, 18, 22851, 67, 21350, 2668, 20738, 67, 7098, 18, 5328, 67, 5040, 6134, 5416, 264, 273, 490, 6203, 1435, 1081, 273, 5416, 264, 18, 2079, 2668, 31888, 2779, 67, 9991, 18, 31888, 2779, 67, 13261, 18, 1589, 67, 9877, 6134, 5416, 264, 18, 266, 1601, 1435, 1930, 8037, 67, 7098, 18, 5328, 67, 5040, 365, 18, 11231, 5510, 12, 20738, 67, 7098, 18, 5328, 67, 5040, 18, 31888, 2779, 67, 1589, 67, 9877, 353, 2 ]
return _get_element_list(self, 'descendant::draw:page', draw_style=style, regex=regex)
return _get_element_list(self, 'descendant::draw:page', draw_style=style, regex=regex)
def get_draw_page_list(self, style=None, regex=None): return _get_element_list(self, 'descendant::draw:page', draw_style=style, regex=regex)
ce277637ece39c490aa0e17baab70b714a014dd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10612/ce277637ece39c490aa0e17baab70b714a014dd4/element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 9446, 67, 2433, 67, 1098, 12, 2890, 16, 2154, 33, 7036, 16, 3936, 33, 7036, 4672, 327, 389, 588, 67, 2956, 67, 1098, 12, 2890, 16, 296, 26236, 970, 2866, 9446, 30, 2433, 2187, 3724, 67, 4060, 33, 4060, 16, 3936, 33, 7584, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9446, 67, 2433, 67, 1098, 12, 2890, 16, 2154, 33, 7036, 16, 3936, 33, 7036, 4672, 327, 389, 588, 67, 2956, 67, 1098, 12, 2890, 16, 296, 26236, 970, 2866, 9446, 30, 2433, 2187, 3724, 67, 4060, 33, 4060, 16, 3936, 33, 7584, 13, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return os.path.join(self.working_dir, self.job_file_name)
return os.path.join(self.work_dir, self.job_file_name)
def job_file(self): return os.path.join(self.working_dir, self.job_file_name)
0e1a8878339575b302cf159e8b9d71fbaa0d82ec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4219/0e1a8878339575b302cf159e8b9d71fbaa0d82ec/launcher.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1719, 67, 768, 12, 2890, 4672, 327, 1140, 18, 803, 18, 5701, 12, 2890, 18, 20478, 67, 1214, 16, 365, 18, 4688, 67, 768, 67, 529, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1719, 67, 768, 12, 2890, 4672, 327, 1140, 18, 803, 18, 5701, 12, 2890, 18, 20478, 67, 1214, 16, 365, 18, 4688, 67, 768, 67, 529, 13, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def test_wait_for_individual_cancel(self):
def test_wait_for_individual_cancel_while_waiting(self):
def test_wait_for_individual_cancel(self): def end_call(): time.sleep(1) f2.cancel() call1.set_can()
07724f0d7feafe4d50dece6f82a1962cbc64edc4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4870/07724f0d7feafe4d50dece6f82a1962cbc64edc4/test_futures.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7048, 67, 1884, 67, 22032, 5557, 67, 10996, 67, 17523, 67, 20241, 12, 2890, 4672, 1652, 679, 67, 1991, 13332, 813, 18, 19607, 12, 21, 13, 284, 22, 18, 10996, 1435, 745, 21, 18, 542, 67, 4169, 1435, 2, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 7048, 67, 1884, 67, 22032, 5557, 67, 10996, 67, 17523, 67, 20241, 12, 2890, 4672, 1652, 679, 67, 1991, 13332, 813, 18, 19607, 12, 21, 13, 284, 22, 18, 10996, 1435, 745, 21, 18, 542, 67, 4169, 1435, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try: err, =self.command(23, "id", "error", (self.lid,)) except: self.log_traceback() self.connected=0 del connection_dict[self.lid] self.lid=None self.core.close() self.abort_channel.close() del self.core, self.abort_channel self.core=None self.abortChannel=None
if self.connected: try: err, =self.command(23, "id", "error", (self.lid,)) except: self.log_traceback() self.connected=0 del connection_dict[self.lid] self.lid=None self.core.close() self.abort_channel.close() del self.core, self.abort_channel self.core=None self.abortChannel=None
def disconnect(self): try: err, =self.command(23, "id", "error", (self.lid,)) #execute destroy_link except: self.log_traceback() #if we can't close nicely, we'll close anyway self.connected=0 del connection_dict[self.lid] self.lid=None self.core.close() self.abort_channel.close() del self.core, self.abort_channel self.core=None self.abortChannel=None
2ecea56fec4a466c983e0862abb4e1245d2011ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6028/2ecea56fec4a466c983e0862abb4e1245d2011ca/vxi_11.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9479, 12, 2890, 4672, 775, 30, 393, 16, 273, 2890, 18, 3076, 12, 4366, 16, 225, 315, 350, 3113, 315, 1636, 3113, 261, 2890, 18, 80, 350, 16, 3719, 468, 8837, 5546, 67, 1232, 1335, 30, 365, 18, 1330, 67, 21696, 1435, 468, 430, 732, 848, 1404, 1746, 11562, 2357, 16, 732, 5614, 1746, 13466, 225, 365, 18, 8537, 33, 20, 1464, 1459, 67, 1576, 63, 2890, 18, 80, 350, 65, 365, 18, 80, 350, 33, 7036, 365, 18, 3644, 18, 4412, 1435, 365, 18, 18623, 67, 4327, 18, 4412, 1435, 1464, 365, 18, 3644, 16, 365, 18, 18623, 67, 4327, 365, 18, 3644, 33, 7036, 365, 18, 18623, 2909, 33, 7036, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 9479, 12, 2890, 4672, 775, 30, 393, 16, 273, 2890, 18, 3076, 12, 4366, 16, 225, 315, 350, 3113, 315, 1636, 3113, 261, 2890, 18, 80, 350, 16, 3719, 468, 8837, 5546, 67, 1232, 1335, 30, 365, 18, 1330, 67, 21696, 1435, 468, 430, 732, 848, 1404, 1746, 11562, 2357, 16, 732, 5614, 1746, 13466, 225, 365, 18, 8537, 33, 20, 1464, 1459, 67, 1576, 63, 2890, 18, 80, 350, 65, 365, 18, 80, 350, 33, 7036, 365, 18, 3644, 18, 4412, 1435, 365, 18, 18623, 67, 4327, 18, 4412, 1435, 1464, 365, 18, 3644, 16, 365, 18, 18623, 67, 4327, 365, 18, 3644, 33, 7036, 365, 18, 18623, 2909, 33, 7036, 225, 2, -100, -100, -100, -100, -100 ]
self.update() def update(self):
def __init__(self, rect, attr=None): Window.__init__(self, rect) if not attr: attr = curses.color_pair(070) self.attr = attr self.update()
81f45d44cd2cbe55af809e0d0331bb0aa12fb74f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/454/81f45d44cd2cbe55af809e0d0331bb0aa12fb74f/Curses.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 4917, 16, 1604, 33, 7036, 4672, 6076, 16186, 2738, 972, 12, 2890, 16, 4917, 13, 309, 486, 1604, 30, 1604, 273, 30436, 18, 3266, 67, 6017, 12, 20, 7301, 13, 365, 18, 1747, 273, 1604, 365, 18, 2725, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 30436, 18, 3266, 67, 6017, 12, 20, 7301, 13, 365, 18, 1747, 273, 1604, 365, 18, 2725, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, -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 ]
if sys.platform=='win32' and ('install' in sys.argv or 'install_ext' in sys.argv):
if sys.hexversion<0x2030000 and sys.platform=='win32' and ('install' in sys.argv or 'install_ext' in sys.argv):
def pfxJoin(pfx,*N): R=[] for n in N: R.append(pJoin(pfx,n)) return R
f43fb40f8f2a84ee29fb78f853c6b109499dffdd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/f43fb40f8f2a84ee29fb78f853c6b109499dffdd/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31592, 4572, 12, 14241, 92, 16, 14, 50, 4672, 534, 33, 8526, 364, 290, 316, 423, 30, 534, 18, 6923, 12, 84, 4572, 12, 14241, 92, 16, 82, 3719, 327, 534, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31592, 4572, 12, 14241, 92, 16, 14, 50, 4672, 534, 33, 8526, 364, 290, 316, 423, 30, 534, 18, 6923, 12, 84, 4572, 12, 14241, 92, 16, 82, 3719, 327, 534, 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, -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, -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, -100, -100, -100, -100, -100, -100 ]
timeaware = timetz(now.hour, now.minute, now.second, now.microsecond, tzinfo=tz55)
timeaware = now.timetz().replace(tzinfo=tz55)
def test_tz_aware_arithmetic(self): import random
1410f22e181c04b0c2bf26fede019523e36a5459 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1410f22e181c04b0c2bf26fede019523e36a5459/test_datetime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12994, 67, 30799, 67, 297, 16368, 12, 2890, 4672, 1930, 2744, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12994, 67, 30799, 67, 297, 16368, 12, 2890, 4672, 1930, 2744, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
subsequent_indent=subsequent_indent))
subsequent_indent=subsequent_indent) wrappedLines = [] for line in t.split('\n'): wrappedLines += wrapper.wrap(line.rstrip()) return '\n'.join(wrappedLines)
def wrap(t, cols=75, initial_indent='', subsequent_indent=''): try: import textwrap return '\n'.join(textwrap.wrap(t, replace_whitespace=0, width=cols, break_long_words=0, initial_indent=initial_indent, subsequent_indent=subsequent_indent)) except ImportError: return t
fdbf7afefbe36b1cdaf1e43e2261a635f45aa26b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/fdbf7afefbe36b1cdaf1e43e2261a635f45aa26b/Notify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2193, 12, 88, 16, 5347, 33, 5877, 16, 2172, 67, 9355, 2218, 2187, 10815, 67, 9355, 2218, 11, 4672, 775, 30, 1930, 30271, 327, 2337, 82, 10332, 5701, 12, 955, 4113, 18, 4113, 12, 88, 16, 1453, 67, 18777, 33, 20, 16, 1835, 33, 6842, 16, 898, 67, 5748, 67, 3753, 33, 20, 16, 2172, 67, 9355, 33, 6769, 67, 9355, 16, 10815, 67, 9355, 33, 1717, 9116, 67, 9355, 13, 5805, 5763, 273, 5378, 364, 980, 316, 268, 18, 4939, 2668, 64, 82, 11, 4672, 5805, 5763, 1011, 4053, 18, 4113, 12, 1369, 18, 86, 6406, 10756, 225, 327, 2337, 82, 10332, 5701, 12, 18704, 5763, 13, 225, 1335, 11308, 30, 327, 268, 282, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2193, 12, 88, 16, 5347, 33, 5877, 16, 2172, 67, 9355, 2218, 2187, 10815, 67, 9355, 2218, 11, 4672, 775, 30, 1930, 30271, 327, 2337, 82, 10332, 5701, 12, 955, 4113, 18, 4113, 12, 88, 16, 1453, 67, 18777, 33, 20, 16, 1835, 33, 6842, 16, 898, 67, 5748, 67, 3753, 33, 20, 16, 2172, 67, 9355, 33, 6769, 67, 9355, 16, 10815, 67, 9355, 33, 1717, 9116, 67, 9355, 13, 5805, 5763, 273, 5378, 364, 980, 316, 268, 18, 4939, 2668, 64, 82, 11, 4672, 5805, 5763, 1011, 4053, 18, 4113, 12, 1369, 18, 86, 6406, 10756, 225, 327, 2337, 82, 10332, 5701, 12, 18704, 5763, 13, 225, 1335, 11308, 30, 327, 268, 282, 2, -100, -100, -100 ]
if not self.movie or not self.movie.filename: msg = redmsg("No tracefile exists for this part. To create one, run a simulation.") env.history.message(cmd + msg) return 1 self.traceFile = self.movie.get_trace_filename()
def setup(self): """Setup the Plot Tool dialog, including populating the combobox with plotting options. """ # To setup the Plot Tool, we need to do the following: # 1. Make sure there is a valid DPB file. This is temporary since the Plot Tool will # soon allow the user to open and plot any trace file. # 2. From the DPB filename, construct the trace filename and GNUplot filename. # 3. Read the header from the trace file to obtain: # - Date and time # - Trajectory (DPB) filename. This is redundant now, but will be necessary when # Plot Tool allows the user to open and plot any trace file. # - The number of columns of data in the trace file so we can... # 4. Populate the plot combobox with the graph names # Make sure there is a DPB file for the assy. if not self.movie or not self.movie.filename: msg = redmsg("No tracefile exists for this part. To create one, run a simulation.") env.history.message(cmd + msg) return 1 # Construct the trace file name. self.traceFile = self.movie.get_trace_filename() # Make sure the tracefile exists if not os.path.exists(self.traceFile): msg = redmsg("Trace file [" + self.traceFile + "] is missing. Plot aborted.") env.history.message(cmd + msg) return 1 # Construct the GNUplot filename. self.plotFile = self.movie.get_GNUplot_filename() # Now we read specific lines of the traceFile to read parts of the header we need. # I will change this soon so that we can find this header info without knowing what line they are on. # Mark 050310 #bruce 060105: changing this now, to fix bug 1266. # If we've opened the tracefile once during this session, we # must check to see if the trace file has changed on disk. # To avoid this issue we reopen it every time and make sure to close it # and don't use any sort of line cache. # Mark had a comment about this but I [bruce 060105] am not sure what he meant by it: # Doesn't appear to be an issue calling checkcache before getline. #linecache.checkcache() # He also had some commented out code such as "#linecache.getline(self.traceFile, 5)" # which I've removed (as of rev 1.32).
d7b7ec716f285241b2f07ff7b0c3092d6ef42db1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/d7b7ec716f285241b2f07ff7b0c3092d6ef42db1/PlotTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 4672, 3536, 7365, 326, 15211, 13288, 6176, 16, 6508, 3650, 1776, 326, 3894, 27570, 598, 20947, 702, 18, 3536, 468, 2974, 3875, 326, 15211, 13288, 16, 732, 1608, 358, 741, 326, 3751, 30, 468, 404, 18, 4344, 3071, 1915, 353, 279, 923, 463, 20724, 585, 18, 1220, 353, 6269, 3241, 326, 15211, 13288, 903, 468, 377, 17136, 1699, 326, 729, 358, 1696, 471, 3207, 1281, 2606, 585, 18, 468, 576, 18, 6338, 326, 463, 20724, 1544, 16, 4872, 326, 2606, 1544, 471, 611, 50, 57, 4032, 1544, 18, 468, 890, 18, 2720, 326, 1446, 628, 326, 2606, 585, 358, 7161, 30, 468, 282, 300, 2167, 471, 813, 468, 282, 300, 2197, 19528, 261, 8640, 38, 13, 1544, 18, 225, 1220, 353, 19530, 2037, 16, 1496, 903, 506, 4573, 1347, 468, 1377, 15211, 13288, 5360, 326, 729, 358, 1696, 471, 3207, 1281, 2606, 585, 18, 468, 282, 300, 1021, 1300, 434, 2168, 434, 501, 316, 326, 2606, 585, 1427, 732, 848, 2777, 468, 1059, 18, 22254, 326, 3207, 3894, 27570, 598, 326, 2667, 1257, 225, 468, 4344, 3071, 1915, 353, 279, 463, 20724, 585, 364, 326, 1551, 93, 18, 309, 486, 365, 18, 8683, 13120, 578, 486, 365, 18, 8683, 13120, 18, 3459, 30, 1234, 273, 1755, 3576, 2932, 2279, 2606, 768, 1704, 364, 333, 1087, 18, 225, 2974, 752, 1245, 16, 1086, 279, 14754, 1199, 13, 1550, 18, 8189, 18, 2150, 12, 4172, 397, 1234, 13, 327, 404, 225, 468, 14291, 326, 2606, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 12, 2890, 4672, 3536, 7365, 326, 15211, 13288, 6176, 16, 6508, 3650, 1776, 326, 3894, 27570, 598, 20947, 702, 18, 3536, 468, 2974, 3875, 326, 15211, 13288, 16, 732, 1608, 358, 741, 326, 3751, 30, 468, 404, 18, 4344, 3071, 1915, 353, 279, 923, 463, 20724, 585, 18, 1220, 353, 6269, 3241, 326, 15211, 13288, 903, 468, 377, 17136, 1699, 326, 729, 358, 1696, 471, 3207, 1281, 2606, 585, 18, 468, 576, 18, 6338, 326, 463, 20724, 1544, 16, 4872, 326, 2606, 1544, 471, 611, 50, 57, 4032, 1544, 18, 468, 890, 18, 2720, 326, 1446, 628, 326, 2606, 585, 358, 7161, 30, 468, 282, 300, 2167, 471, 813, 468, 282, 300, 2197, 19528, 261, 8640, 38, 2 ]
self.buffer = open("/tmp/redirect.log", "wt")
self.buffer = open("/tmp/redirect.log", "at", 0)
def createLogger(self): """ """ self.buffer = open("/tmp/redirect.log", "wt")
d06b69fb05d2caacc88f8983a8f607b2f1a0672b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10164/d06b69fb05d2caacc88f8983a8f607b2f1a0672b/redirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 3328, 12, 2890, 4672, 3536, 3536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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3328, 12, 2890, 4672, 3536, 3536, 365, 18, 4106, 273, 1696, 2932, 19, 5645, 19, 7590, 18, 1330, 3113, 315, 6046, 7923, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def _set_tunnel(self, host, port=None):
def _set_tunnel(self, host, port=None, headers=None):
def _set_tunnel(self, host, port=None): """ Sets up the host and the port for the HTTP CONNECT Tunnelling.
b7205d0db3e110cd9d98bc9a567bc7a74a0b2292 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/b7205d0db3e110cd9d98bc9a567bc7a74a0b2292/httplib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 19878, 12, 2890, 16, 1479, 16, 1756, 33, 7036, 16, 1607, 33, 7036, 4672, 3536, 11511, 731, 326, 1479, 471, 326, 1756, 364, 326, 2239, 21593, 399, 318, 82, 1165, 310, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 542, 67, 19878, 12, 2890, 16, 1479, 16, 1756, 33, 7036, 16, 1607, 33, 7036, 4672, 3536, 11511, 731, 326, 1479, 471, 326, 1756, 364, 326, 2239, 21593, 399, 318, 82, 1165, 310, 18, 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, -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, -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, -100, -100 ]
changed_cb=self.prefs_lyrics_location_changed) display_lyrics_location_hbox = gtk.HBox(spacing=12) display_lyrics_location_hbox.pack_end(display_lyrics_location, False, False) display_lyrics_location_hbox.pack_end(savelyrics_label, False, False) display_lyrics_location_hbox.set_sensitive(self.config.show_lyrics) display_lyrics.connect('toggled', prefs_lyrics_toggled, display_lyrics_location_hbox) display_trayicon = gtk.CheckButton(_("System _tray icon")) display_trayicon.set_active(self.config.show_trayicon) display_trayicon.set_sensitive(trayicon_available) display_widgets = (display_playback, display_progress, display_statusbar, display_trayicon, display_lyrics, display_lyrics_location_hbox, display_art, display_stylized_hbox, display_art_hbox, display_art_location_hbox) display_table = gtk.Table(len(display_widgets), 1, False) for i, widget in enumerate(display_widgets): display_table.attach(widget, 0, 1, i, i+1, gtk.FILL|gtk.EXPAND, gtk.FILL) display_alignment = gtk.Alignment(0.5, 0.5, 1.0, 1.0) display_alignment.set_padding(12, 0, 12, 0) display_alignment.add(display_table) display_frame.add(display_alignment) display_tab = gtk.Alignment(0.5, 0.5, 1.0, 1.0) display_tab.set_padding(12, 12, 12, 12) display_tab.add(display_frame) return display_tab, display_trayicon def behavior_tab(self, display_trayicon, prefs_trayicon_toggled, trayicon_in_use, sticky_toggled, ontop_toggled, decorated_toggled, infofile_changed):
changed_cb=self._lyrics_location_changed) lyrics_location_hbox = gtk.HBox(spacing=12) lyrics_location_hbox.pack_end(lyrics_location, False, False) lyrics_location_hbox.pack_end(savelyrics_label, False, False) lyrics_location_hbox.set_sensitive(self.config.show_lyrics) lyrics.connect('toggled', lyrics_toggled, lyrics_location_hbox) trayicon = gtk.CheckButton(_("System _tray icon")) trayicon.set_active(self.config.show_trayicon) trayicon.set_sensitive(trayicon_available) widgets = (playback, progress, statusbar, trayicon, lyrics, lyrics_location_hbox, art, stylized_hbox, art_hbox, art_location_hbox) table = gtk.Table(len(widgets), 1, False) for i, widget in enumerate(widgets): table.attach(widget, 0, 1, i, i+1, gtk.FILL|gtk.EXPAND, gtk.FILL) alignment = gtk.Alignment(0.5, 0.5, 1.0, 1.0) alignment.set_padding(12, 0, 12, 0) alignment.add(table) frame.add(alignment) tab = gtk.Alignment(0.5, 0.5, 1.0, 1.0) tab.set_padding(12, 12, 12, 12) tab.add(frame) return tab, trayicon def behavior_tab(self, display_trayicon, trayicon_toggled, trayicon_in_use, sticky_toggled, ontop_toggled, decorated_toggled, infofile_changed):
def display_tab(self, prefs_stylized_toggled, prefs_art_toggled, prefs_playback_toggled, prefs_progress_toggled, prefs_statusbar_toggled, prefs_lyrics_toggled, trayicon_available): """Construct and layout the display tab""" displaylabel = ui.label(markup='<b>' + _('Display') + '</b>') display_frame = gtk.Frame() display_frame.set_label_widget(displaylabel) display_frame.set_shadow_type(gtk.SHADOW_NONE)
7d41f2105c0d58643150b6472b6b9676150f38e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/7d41f2105c0d58643150b6472b6b9676150f38e3/preferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 7032, 12, 2890, 16, 15503, 67, 334, 93, 80, 1235, 67, 88, 23972, 1259, 16, 15503, 67, 485, 67, 88, 23972, 1259, 16, 15503, 67, 1601, 823, 67, 88, 23972, 1259, 16, 15503, 67, 8298, 67, 88, 23972, 1259, 16, 15503, 67, 2327, 3215, 67, 88, 23972, 1259, 16, 15503, 67, 715, 1512, 87, 67, 88, 23972, 1259, 16, 268, 435, 3950, 67, 5699, 4672, 3536, 7249, 471, 3511, 326, 2562, 3246, 8395, 2562, 1925, 273, 5915, 18, 1925, 12, 15056, 2218, 32, 70, 1870, 397, 389, 2668, 4236, 6134, 397, 4357, 70, 1870, 13, 2562, 67, 3789, 273, 22718, 18, 3219, 1435, 2562, 67, 3789, 18, 542, 67, 1925, 67, 6587, 12, 5417, 1925, 13, 2562, 67, 3789, 18, 542, 67, 19119, 67, 723, 12, 4521, 79, 18, 2664, 1880, 7306, 67, 9826, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2562, 67, 7032, 12, 2890, 16, 15503, 67, 334, 93, 80, 1235, 67, 88, 23972, 1259, 16, 15503, 67, 485, 67, 88, 23972, 1259, 16, 15503, 67, 1601, 823, 67, 88, 23972, 1259, 16, 15503, 67, 8298, 67, 88, 23972, 1259, 16, 15503, 67, 2327, 3215, 67, 88, 23972, 1259, 16, 15503, 67, 715, 1512, 87, 67, 88, 23972, 1259, 16, 268, 435, 3950, 67, 5699, 4672, 3536, 7249, 471, 3511, 326, 2562, 3246, 8395, 2562, 1925, 273, 5915, 18, 1925, 12, 15056, 2218, 32, 70, 1870, 397, 389, 2668, 4236, 6134, 397, 4357, 70, 1870, 13, 2562, 67, 3789, 273, 22718, 18, 3219, 1435, 2562, 67, 3789, 18, 542, 67, 1925, 67, 6587, 12, 5417, 1925, 13, 2 ]
modules = [player, trackFactory, db, randomizer]
modules = [player, trackFactory, db, randomizer, self]
def run(self): # Do platform-dependent imports, and choose a player type. For # now, we just choose it based on the platform... system = platform.system() self._logger.debug("Running on "+system+".") player = None if system == 'Windows': self._logger.debug("Loading Winamp module.") import WinampWindows player = WinampWindows.WinampWindows(self._loggerFactory, self._noQueue, self._configParser) ## should be called early elif system == 'FreeBSD': self._logger.debug("Loading XMMS module.") import XMMS player = XMMS.XMMS(self._loggerFactory, self._noQueue, self._configParser) elif system == 'Mac OS X': self._logger.debug("Loading iTunes module.") import iTunesMacOS player = iTunesMacOS.iTunesMacOS(self._noQueue)
ea1fb344907d2152656b6f962bb98a9984978a6a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/ea1fb344907d2152656b6f962bb98a9984978a6a/Main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 2256, 4072, 17, 10891, 10095, 16, 471, 9876, 279, 7291, 618, 18, 2457, 468, 2037, 16, 732, 2537, 9876, 518, 2511, 603, 326, 4072, 2777, 2619, 273, 4072, 18, 4299, 1435, 365, 6315, 4901, 18, 4148, 2932, 7051, 603, 13773, 4299, 9078, 1199, 13, 7291, 273, 599, 309, 2619, 422, 296, 10399, 4278, 365, 6315, 4901, 18, 4148, 2932, 10515, 21628, 931, 1605, 1199, 13, 1930, 21628, 931, 10399, 7291, 273, 21628, 931, 10399, 18, 18049, 931, 10399, 12, 2890, 6315, 4901, 1733, 16, 365, 6315, 2135, 3183, 16, 365, 6315, 1425, 2678, 13, 7541, 1410, 506, 2566, 11646, 1327, 2619, 422, 296, 9194, 30780, 4278, 365, 6315, 4901, 18, 4148, 2932, 10515, 1139, 49, 3537, 1605, 1199, 13, 1930, 1139, 49, 3537, 7291, 273, 1139, 49, 3537, 18, 60, 49, 3537, 12, 2890, 6315, 4901, 1733, 16, 365, 6315, 2135, 3183, 16, 365, 6315, 1425, 2678, 13, 1327, 2619, 422, 296, 9990, 5932, 1139, 4278, 365, 6315, 4901, 18, 4148, 2932, 10515, 277, 56, 27490, 1605, 1199, 13, 1930, 277, 56, 27490, 9990, 4618, 7291, 273, 277, 56, 27490, 9990, 4618, 18, 77, 56, 27490, 9990, 4618, 12, 2890, 6315, 2135, 3183, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 468, 2256, 4072, 17, 10891, 10095, 16, 471, 9876, 279, 7291, 618, 18, 2457, 468, 2037, 16, 732, 2537, 9876, 518, 2511, 603, 326, 4072, 2777, 2619, 273, 4072, 18, 4299, 1435, 365, 6315, 4901, 18, 4148, 2932, 7051, 603, 13773, 4299, 9078, 1199, 13, 7291, 273, 599, 309, 2619, 422, 296, 10399, 4278, 365, 6315, 4901, 18, 4148, 2932, 10515, 21628, 931, 1605, 1199, 13, 1930, 21628, 931, 10399, 7291, 273, 21628, 931, 10399, 18, 18049, 931, 10399, 12, 2890, 6315, 4901, 1733, 16, 365, 6315, 2135, 3183, 16, 365, 6315, 1425, 2678, 13, 7541, 1410, 506, 2566, 11646, 1327, 2619, 422, 296, 9194, 30780, 4278, 365, 6315, 4901, 18, 4148, 2932, 10515, 2 ]
if connected == 1: gnucap += "R999999999 0 " for component in self.components: if component.is_connected(): gnucap += str(component.get_nodes()[0].get_wires()[0].get_wire_id()) break gnucap += " 1f\n"
gnucap += "R999999999 0 " for component in self.components: if component.is_connected(): gnucap += str(component.get_nodes()[0].get_wires()[0].get_wire_id()) break gnucap += " 1f\n"
def call_gnucap(self): if not self.components: if debug: print "call_gnucap: No component" self.gnucap_timer = 0 return
712088d0003c9f34241e32e9fc653c82b72742d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/712088d0003c9f34241e32e9fc653c82b72742d6/electric.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 1600, 5286, 438, 12, 2890, 4672, 309, 486, 365, 18, 8119, 30, 309, 1198, 30, 1172, 315, 1991, 67, 1600, 5286, 438, 30, 2631, 1794, 6, 365, 18, 1600, 5286, 438, 67, 12542, 273, 374, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 745, 67, 1600, 5286, 438, 12, 2890, 4672, 309, 486, 365, 18, 8119, 30, 309, 1198, 30, 1172, 315, 1991, 67, 1600, 5286, 438, 30, 2631, 1794, 6, 365, 18, 1600, 5286, 438, 67, 12542, 273, 374, 327, 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, -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, -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 ]
x, y -- top-left coordinate
i, j -- index of this cell in the map
def get_neighbor(self, cell, direction): '''Get the neighbor HexCell in the given direction which is one of self.UP, self.DOWN, self.UP_LEFT, self.UP_RIGHT, self.DOWN_LEFT or self.DOWN_RIGHT.
ae46287e32a1e7a487f4f47ee34d687ee3d6604c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/ae46287e32a1e7a487f4f47ee34d687ee3d6604c/tiles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 18168, 12, 2890, 16, 2484, 16, 4068, 4672, 9163, 967, 326, 10553, 15734, 4020, 316, 326, 864, 4068, 1492, 353, 1245, 434, 365, 18, 3079, 16, 365, 18, 12711, 16, 365, 18, 3079, 67, 10066, 16, 365, 18, 3079, 67, 11847, 16, 365, 18, 12711, 67, 10066, 578, 365, 18, 12711, 67, 11847, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 10553, 15734, 4020, 316, 326, 864, 4068, 1492, 353, 1245, 434, 365, 18, 3079, 16, 365, 18, 12711, 16, 365, 18, 3079, 67, 10066, 16, 365, 18, 3079, 67, 11847, 16, 365, 18, 12711, 67, 10066, 578, 365, 18, 12711, 67, 11847, 18, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100 ]
m['Date'] = util.datestr(start_time, "%a, %d %b %Y %H:%M:%S %1%2")
m['Date'] = email.Utils.formatdate(start_time[0])
def getaddrs(opt, prpt, default = None): addrs = opts.get(opt) or (ui.config('email', opt) or ui.config('patchbomb', opt) or prompt(ui, prpt, default)).split(',') return [mail.addressencode(ui, a.strip(), _charsets, opts.get('test')) for a in addrs if a.strip()]
9f26a8abb86b5bfad9352e04b5c5cb9e4d95c868 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/9f26a8abb86b5bfad9352e04b5c5cb9e4d95c868/patchbomb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 18, 588, 12, 3838, 13, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, 2272, 70, 16659, 2187, 2153, 13, 578, 6866, 12, 4881, 16, 846, 337, 16, 805, 13, 2934, 4939, 12, 2187, 6134, 327, 306, 4408, 18, 2867, 3015, 12, 4881, 16, 279, 18, 6406, 9334, 389, 3001, 4424, 16, 1500, 18, 588, 2668, 3813, 26112, 364, 279, 316, 11755, 309, 279, 18, 6406, 1435, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23305, 12, 3838, 16, 846, 337, 16, 805, 273, 599, 4672, 11755, 273, 1500, 18, 588, 12, 3838, 13, 578, 261, 4881, 18, 1425, 2668, 3652, 2187, 2153, 13, 578, 5915, 18, 1425, 2668, 2272, 70, 16659, 2187, 2153, 13, 578, 6866, 12, 4881, 16, 846, 337, 16, 805, 13, 2934, 4939, 12, 2187, 6134, 327, 306, 4408, 18, 2867, 3015, 12, 4881, 16, 279, 18, 6406, 9334, 389, 3001, 4424, 16, 1500, 18, 588, 2668, 3813, 26112, 364, 279, 316, 11755, 309, 279, 18, 6406, 1435, 65, 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, -100, -100 ]
outs, upds = theano.scan(f, sequences=[input], outputs_info=[self.memory])
outs, upds = theano.scan(f, sequences=[input], outputs_info=[self.memory, cost])
def f(inp, mem): self.base_layer.build(T.join(1, T.unbroadcast(T.shape_padleft(inp),0), mem), inp_shape) return self.base_layer.output
be398f5295ae3c6c999c3358899e2a341413174d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3400/be398f5295ae3c6c999c3358899e2a341413174d/recurrent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 12, 31647, 16, 1663, 4672, 365, 18, 1969, 67, 6363, 18, 3510, 12, 56, 18, 5701, 12, 21, 16, 399, 18, 318, 19805, 12, 56, 18, 4867, 67, 6982, 4482, 12, 31647, 3631, 20, 3631, 1663, 3631, 12789, 67, 4867, 13, 327, 365, 18, 1969, 67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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 284, 12, 31647, 16, 1663, 4672, 365, 18, 1969, 67, 6363, 18, 3510, 12, 56, 18, 5701, 12, 21, 16, 399, 18, 318, 19805, 12, 56, 18, 4867, 67, 6982, 4482, 12, 31647, 3631, 20, 3631, 1663, 3631, 12789, 67, 4867, 13, 327, 365, 18, 1969, 67, 6363, 18, 2844, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if os.path.exists(dest_path): os.remove(dest_path) shutil.copyfile(sub_path, dest_path)
if sub_path != dest_path: if os.path.exists(dest_path): os.remove(dest_path) shutil.copyfile(sub_path, dest_path)
def copy_subtitle_file(sub_path, video_path): """Copies the subtitle file located at sub_path alongside the video file located at video_path. It also changes the name so that the subtitle file follows the rules of sidecar files. Returns the path the subtitle file was copied to. """ from miro import iso_639 sub_basename = os.path.basename(sub_path) match = re.match("(.*)(\....?)(\..*)", sub_basename) if match is not None: sub_basename_root = match.group(1) sub_language = match.group(2) sub_ext = match.group(3) if iso_639.find(sub_language[1:]) is not None: sub_ext = sub_language + sub_ext else: sub_basename_root = sub_basename_root + sub_language else: sub_basename_root, sub_ext = os.path.splitext(sub_basename) video_basename = os.path.basename(video_path) video_basename_root, video_ext = os.path.splitext(video_basename) if sub_basename_root != video_basename_root: sub_basename = video_basename_root + sub_ext dest_path = os.path.join(os.path.dirname(video_path), sub_basename) if os.path.exists(dest_path): os.remove(dest_path) shutil.copyfile(sub_path, dest_path) return dest_path
18e12c017bd10a63c6bd1bbc5286f86d5b6e9c4f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/18e12c017bd10a63c6bd1bbc5286f86d5b6e9c4f/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 1717, 2649, 67, 768, 12, 1717, 67, 803, 16, 6191, 67, 803, 4672, 3536, 15670, 326, 20281, 585, 13801, 622, 720, 67, 803, 524, 7260, 831, 326, 6191, 585, 13801, 622, 6191, 67, 803, 18, 225, 2597, 2546, 3478, 326, 508, 1427, 716, 326, 20281, 585, 13040, 326, 2931, 434, 4889, 9815, 1390, 18, 225, 2860, 326, 589, 326, 20281, 585, 1703, 9268, 358, 18, 3536, 628, 312, 11373, 1930, 8702, 67, 21607, 225, 720, 67, 13909, 273, 1140, 18, 803, 18, 13909, 12, 1717, 67, 803, 13, 845, 273, 283, 18, 1916, 2932, 14361, 4713, 6265, 8535, 4713, 838, 14, 2225, 16, 720, 67, 13909, 13, 309, 845, 353, 486, 599, 30, 720, 67, 13909, 67, 3085, 273, 845, 18, 1655, 12, 21, 13, 720, 67, 4923, 273, 845, 18, 1655, 12, 22, 13, 720, 67, 408, 273, 845, 18, 1655, 12, 23, 13, 309, 8702, 67, 21607, 18, 4720, 12, 1717, 67, 4923, 63, 21, 30, 5717, 353, 486, 599, 30, 720, 67, 408, 273, 720, 67, 4923, 397, 720, 67, 408, 469, 30, 720, 67, 13909, 67, 3085, 273, 720, 67, 13909, 67, 3085, 397, 720, 67, 4923, 469, 30, 720, 67, 13909, 67, 3085, 16, 720, 67, 408, 273, 1140, 18, 803, 18, 4939, 408, 12, 1717, 67, 13909, 13, 225, 6191, 67, 13909, 273, 1140, 18, 803, 18, 13909, 12, 9115, 67, 803, 13, 6191, 67, 13909, 67, 3085, 16, 6191, 67, 408, 273, 1140, 18, 803, 18, 4939, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 1717, 2649, 67, 768, 12, 1717, 67, 803, 16, 6191, 67, 803, 4672, 3536, 15670, 326, 20281, 585, 13801, 622, 720, 67, 803, 524, 7260, 831, 326, 6191, 585, 13801, 622, 6191, 67, 803, 18, 225, 2597, 2546, 3478, 326, 508, 1427, 716, 326, 20281, 585, 13040, 326, 2931, 434, 4889, 9815, 1390, 18, 225, 2860, 326, 589, 326, 20281, 585, 1703, 9268, 358, 18, 3536, 628, 312, 11373, 1930, 8702, 67, 21607, 225, 720, 67, 13909, 273, 1140, 18, 803, 18, 13909, 12, 1717, 67, 803, 13, 845, 273, 283, 18, 1916, 2932, 14361, 4713, 6265, 8535, 4713, 838, 14, 2225, 16, 720, 67, 13909, 13, 309, 845, 353, 486, 599, 30, 720, 67, 13909, 2 ]
INSTR_PATH = os.path.join(JOKOSHER_PATH, "Instruments")
INSTR_PATHS = (os.path.join(JOKOSHER_PATH, "Instruments"), os.path.expanduser("~/.jokosher/instruments"))
def idleCacheInstruments(): global instrumentPropertyList, _alreadyCached, _cacheGeneratorObject if _alreadyCached: #Stop idle_add from calling us again return False #create the generator if it hasnt been already if not _cacheGeneratorObject: _cacheGeneratorObject = _cacheInstrumentsGenerator() try: instrumentPropertyList.append(_cacheGeneratorObject.next()) #Make sure idle add calls us again return True except StopIteration: _alreadyCached = True #sort the instruments alphabetically #using the lowercase of the name (at index 0) instrumentPropertyList.sort(key=lambda x: x[0].lower()) #Stop idle_add from calling us again return False
ab5982e39937049ad0236f66503ac44e5aa93167 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/ab5982e39937049ad0236f66503ac44e5aa93167/Globals.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12088, 1649, 19228, 87, 13332, 2552, 10353, 1396, 682, 16, 389, 17583, 9839, 16, 389, 2493, 3908, 921, 309, 389, 17583, 9839, 30, 468, 4947, 12088, 67, 1289, 628, 4440, 584, 3382, 327, 1083, 468, 2640, 326, 4456, 309, 518, 711, 496, 2118, 1818, 309, 486, 389, 2493, 3908, 921, 30, 389, 2493, 3908, 921, 273, 389, 2493, 19228, 87, 3908, 1435, 225, 775, 30, 10353, 1396, 682, 18, 6923, 24899, 2493, 3908, 921, 18, 4285, 10756, 468, 6464, 3071, 12088, 527, 4097, 584, 3382, 327, 1053, 1335, 16179, 30, 389, 17583, 9839, 273, 1053, 225, 468, 3804, 326, 29555, 10877, 6478, 468, 9940, 326, 12400, 434, 326, 508, 261, 270, 770, 374, 13, 10353, 1396, 682, 18, 3804, 12, 856, 33, 14661, 619, 30, 619, 63, 20, 8009, 8167, 10756, 468, 4947, 12088, 67, 1289, 628, 4440, 584, 3382, 327, 1083, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12088, 1649, 19228, 87, 13332, 2552, 10353, 1396, 682, 16, 389, 17583, 9839, 16, 389, 2493, 3908, 921, 309, 389, 17583, 9839, 30, 468, 4947, 12088, 67, 1289, 628, 4440, 584, 3382, 327, 1083, 468, 2640, 326, 4456, 309, 518, 711, 496, 2118, 1818, 309, 486, 389, 2493, 3908, 921, 30, 389, 2493, 3908, 921, 273, 389, 2493, 19228, 87, 3908, 1435, 225, 775, 30, 10353, 1396, 682, 18, 6923, 24899, 2493, 3908, 921, 18, 4285, 10756, 468, 6464, 3071, 12088, 527, 4097, 584, 3382, 327, 1053, 1335, 16179, 30, 389, 17583, 9839, 273, 1053, 225, 468, 3804, 326, 29555, 10877, 6478, 468, 9940, 326, 12400, 434, 326, 508, 261, 270, 770, 374, 13, 10353, 1396, 682, 18, 2 ]
self.secStrucTextEdit.insertHtml(fixedPitchSequence)
self.secStrucTextEdit.setHtml(fixedPitchSequence)
def setSecondaryStructure(self, inSequence, inRestoreCursor = True): """ Set the secondary structure of the protein @param inSequence: The new sequence. @type inSequence: QString @param inRestoreCursor: restore cursor position @type inRestoreCursor: bool """ cursor = self.sequenceTextEdit.textCursor() cursorMate = self.secStrucTextEdit.textCursor() cursorMate2 = self.aaRulerTextEdit.textCursor() if cursor.position() == len(self.sequenceTextEdit.toPlainText()): selectionStart = 0 selectionEnd = 0 elif cursor.position() == -1: selectionStart = 0 selectionEnd = 0 else: selectionStart = cursor.selectionStart() selectionEnd = cursor.selectionEnd() fixedPitchSequence = self._getFormattedSequence(inSequence) self.secStrucTextEdit.insertHtml(fixedPitchSequence) if inRestoreCursor: cursor.setPosition(selectionStart, QTextCursor.MoveAnchor) cursor.setPosition(selectionEnd, QTextCursor.KeepAnchor) self.sequenceTextEdit.setTextCursor( cursor ) cursorMate.setPosition(selectionStart, QTextCursor.MoveAnchor) cursorMate.setPosition(selectionEnd, QTextCursor.KeepAnchor) self.secStrucTextEdit.setTextCursor( cursorMate ) cursorMate2.setPosition(selectionStart, QTextCursor.MoveAnchor) cursorMate2.setPosition(selectionEnd, QTextCursor.KeepAnchor) self.aaRulerTextEdit.setTextCursor( cursorMate2 ) return
ee1906b1c674050edc0c2a79b4084695cc35cce7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/ee1906b1c674050edc0c2a79b4084695cc35cce7/ProteinSequenceEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 14893, 6999, 12, 2890, 16, 316, 4021, 16, 316, 10874, 6688, 225, 273, 225, 1053, 4672, 3536, 1000, 326, 9946, 3695, 434, 326, 14314, 225, 632, 891, 316, 4021, 30, 1021, 394, 3102, 18, 632, 723, 225, 316, 4021, 30, 2238, 780, 225, 632, 891, 316, 10874, 6688, 30, 5217, 3347, 1754, 632, 723, 225, 316, 10874, 6688, 30, 1426, 3536, 3347, 1850, 273, 225, 365, 18, 6178, 1528, 4666, 18, 955, 6688, 1435, 3347, 49, 340, 1377, 273, 225, 365, 18, 3321, 1585, 5286, 1528, 4666, 18, 955, 6688, 1435, 3347, 49, 340, 22, 377, 273, 225, 365, 18, 7598, 54, 17040, 1528, 4666, 18, 955, 6688, 1435, 309, 3347, 18, 3276, 1435, 422, 562, 12, 2890, 18, 6178, 1528, 4666, 18, 869, 13360, 1528, 1435, 4672, 4421, 1685, 225, 273, 374, 4421, 1638, 565, 273, 374, 1327, 3347, 18, 3276, 1435, 422, 300, 21, 30, 4421, 1685, 225, 273, 374, 4421, 1638, 565, 273, 374, 469, 30, 4421, 1685, 225, 273, 225, 3347, 18, 10705, 1685, 1435, 4421, 1638, 565, 273, 225, 3347, 18, 10705, 1638, 1435, 225, 5499, 52, 1437, 4021, 273, 365, 6315, 588, 18298, 4021, 12, 267, 4021, 13, 365, 18, 3321, 1585, 5286, 1528, 4666, 18, 542, 4353, 12, 12429, 52, 1437, 4021, 13, 309, 316, 10874, 6688, 30, 3347, 18, 542, 2555, 12, 10705, 1685, 16, 30337, 6688, 18, 7607, 11605, 13, 3347, 18, 542, 2555, 12, 10705, 1638, 16, 30337, 6688, 18, 11523, 11605, 13, 365, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14893, 6999, 12, 2890, 16, 316, 4021, 16, 316, 10874, 6688, 225, 273, 225, 1053, 4672, 3536, 1000, 326, 9946, 3695, 434, 326, 14314, 225, 632, 891, 316, 4021, 30, 1021, 394, 3102, 18, 632, 723, 225, 316, 4021, 30, 2238, 780, 225, 632, 891, 316, 10874, 6688, 30, 5217, 3347, 1754, 632, 723, 225, 316, 10874, 6688, 30, 1426, 3536, 3347, 1850, 273, 225, 365, 18, 6178, 1528, 4666, 18, 955, 6688, 1435, 3347, 49, 340, 1377, 273, 225, 365, 18, 3321, 1585, 5286, 1528, 4666, 18, 955, 6688, 1435, 3347, 49, 340, 22, 377, 273, 225, 365, 18, 7598, 54, 17040, 1528, 4666, 18, 955, 6688, 1435, 309, 3347, 18, 3276, 1435, 422, 562, 12, 2 ]
print ' char *p;'
print ' if (g_getenv ("GIMP_COMPOSITE"))' print ' {' print ' gimp_composite_options.use = TRUE;' print ' g_printerr ("Using new image composite functions\\n");' print ' }'
def gimp_composite_init(function_tables): for o in function_tables: print 'extern void %s_init();' % (functionnameify(o[0])) pass print '' print 'void' print 'gimp_composite_init()' print '{' print ' char *p;' print '' print ' if ((p = getenv("GIMP_COMPOSITE"))) {' print ' gimp_composite_options.use = atol(p);' print ' g_printerr("Using new image composite functions\n");' print ' }' print '' print ' if (!gimp_composite_options.initialised) {' for o in function_tables: print ' %s_init();' % (functionnameify(o[0])) pass print ' gimp_composite_options.initialised = 1;' print ' }' print '}' pass
73af860ff4a9ad2d64dbee32023a1ec49e63a340 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/73af860ff4a9ad2d64dbee32023a1ec49e63a340/make-gimp-composite-dispatch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 14532, 67, 27676, 67, 2738, 12, 915, 67, 9373, 4672, 364, 320, 316, 445, 67, 9373, 30, 1172, 296, 338, 798, 918, 738, 87, 67, 2738, 1435, 4359, 738, 261, 915, 529, 1164, 12, 83, 63, 20, 22643, 1342, 225, 1172, 875, 1172, 296, 6459, 11, 1172, 296, 75, 14532, 67, 27676, 67, 2738, 11866, 1172, 9790, 1172, 296, 225, 309, 261, 75, 67, 588, 3074, 7566, 43, 9883, 67, 4208, 24595, 7923, 2506, 1172, 296, 565, 13666, 1172, 296, 1377, 314, 14532, 67, 27676, 67, 2116, 18, 1202, 273, 5383, 4359, 1172, 296, 1377, 314, 67, 1188, 370, 7566, 7736, 394, 1316, 9635, 4186, 1695, 82, 8863, 11, 1172, 296, 565, 27770, 1172, 875, 1172, 296, 225, 309, 14015, 84, 273, 11740, 2932, 43, 9883, 67, 4208, 24595, 6, 20349, 13666, 1172, 296, 565, 314, 14532, 67, 27676, 67, 2116, 18, 1202, 273, 26322, 12, 84, 13869, 1172, 296, 565, 314, 67, 1188, 370, 2932, 7736, 394, 1316, 9635, 4186, 64, 82, 8863, 11, 1172, 296, 225, 27770, 1172, 875, 225, 1172, 296, 225, 309, 16051, 75, 14532, 67, 27676, 67, 2116, 18, 6769, 5918, 13, 13666, 225, 364, 320, 316, 445, 67, 9373, 30, 1172, 296, 565, 738, 87, 67, 2738, 1435, 4359, 738, 261, 915, 529, 1164, 12, 83, 63, 20, 22643, 1342, 225, 1172, 296, 565, 314, 14532, 67, 27676, 67, 2116, 18, 6769, 5918, 273, 404, 4359, 1172, 296, 225, 27770, 1172, 9571, 1342, 225, 2, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 14532, 67, 27676, 67, 2738, 12, 915, 67, 9373, 4672, 364, 320, 316, 445, 67, 9373, 30, 1172, 296, 338, 798, 918, 738, 87, 67, 2738, 1435, 4359, 738, 261, 915, 529, 1164, 12, 83, 63, 20, 22643, 1342, 225, 1172, 875, 1172, 296, 6459, 11, 1172, 296, 75, 14532, 67, 27676, 67, 2738, 11866, 1172, 9790, 1172, 296, 225, 309, 261, 75, 67, 588, 3074, 7566, 43, 9883, 67, 4208, 24595, 7923, 2506, 1172, 296, 565, 13666, 1172, 296, 1377, 314, 14532, 67, 27676, 67, 2116, 18, 1202, 273, 5383, 4359, 1172, 296, 1377, 314, 67, 1188, 370, 7566, 7736, 394, 1316, 9635, 4186, 1695, 82, 8863, 11, 1172, 296, 565, 27770, 1172, 875, 1172, 296, 2 ]
'certificat': terp.get('certificat', ''),
'certificate': terp.get('certificate', ''),
def download(self, cr, uid, ids, download=True, context=None): res = [] for mod in self.browse(cr, uid, ids, context=context): if not mod.url: continue match = re.search('-([a-zA-Z0-9\._-]+)(\.zip)', mod.url, re.I) version = '0' if match: version = match.group(1) if parse_version(mod.installed_version or '0') >= parse_version(version): continue res.append(mod.url) if not download: continue zipfile = urllib.urlopen(mod.url).read() fname = addons.get_module_path(mod.name+'.zip') try: fp = file(fname, 'wb') fp.write(zipfile) fp.close() except IOError, e: raise orm.except_orm(_('Error'), _('Can not create the module file:\n %s') % (fname,)) terp = self.get_module_info(mod.name) self.write(cr, uid, mod.id, { 'description': terp.get('description', ''), 'shortdesc': terp.get('name', ''), 'author': terp.get('author', 'Unknown'), 'website': terp.get('website', ''), 'license': terp.get('license', 'GPL-2'), 'certificat': terp.get('certificat', ''), }) cr.execute('DELETE FROM ir_module_module_dependency ' \ 'WHERE module_id = %s', (mod.id,)) self._update_dependencies(cr, uid, mod.id, terp.get('depends', [])) self._update_category(cr, uid, mod.id, terp.get('category', 'Uncategorized')) # Import module zimp = zipimport.zipimporter(fname) zimp.load_module(mod.name) return res
63d6e4443f732e89575e572aa847fb865fb79aa7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/63d6e4443f732e89575e572aa847fb865fb79aa7/module.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 4224, 33, 5510, 16, 819, 33, 7036, 4672, 400, 273, 5378, 364, 681, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33, 2472, 4672, 309, 486, 681, 18, 718, 30, 1324, 845, 273, 283, 18, 3072, 2668, 17, 3816, 69, 17, 9600, 17, 62, 20, 17, 29, 5834, 67, 17, 7941, 4713, 18, 4450, 13, 2187, 681, 18, 718, 16, 283, 18, 45, 13, 1177, 273, 296, 20, 11, 309, 845, 30, 1177, 273, 845, 18, 1655, 12, 21, 13, 309, 1109, 67, 1589, 12, 1711, 18, 13435, 67, 1589, 578, 296, 20, 6134, 1545, 1109, 67, 1589, 12, 1589, 4672, 1324, 400, 18, 6923, 12, 1711, 18, 718, 13, 309, 486, 4224, 30, 1324, 18823, 273, 11527, 18, 295, 18589, 12, 1711, 18, 718, 2934, 896, 1435, 5299, 273, 31439, 18, 588, 67, 2978, 67, 803, 12, 1711, 18, 529, 6797, 18, 4450, 6134, 775, 30, 4253, 273, 585, 12, 12749, 16, 296, 9464, 6134, 4253, 18, 2626, 12, 4450, 768, 13, 4253, 18, 4412, 1435, 1335, 8340, 16, 425, 30, 1002, 13969, 18, 14137, 67, 535, 24899, 2668, 668, 19899, 389, 2668, 2568, 486, 752, 326, 1605, 585, 5581, 82, 738, 87, 6134, 738, 261, 12749, 16, 3719, 19272, 84, 273, 365, 18, 588, 67, 2978, 67, 1376, 12, 1711, 18, 529, 13, 365, 18, 2626, 12, 3353, 16, 4555, 16, 681, 18, 350, 16, 288, 296, 3384, 4278, 19272, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4224, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 4224, 33, 5510, 16, 819, 33, 7036, 4672, 400, 273, 5378, 364, 681, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 33, 2472, 4672, 309, 486, 681, 18, 718, 30, 1324, 845, 273, 283, 18, 3072, 2668, 17, 3816, 69, 17, 9600, 17, 62, 20, 17, 29, 5834, 67, 17, 7941, 4713, 18, 4450, 13, 2187, 681, 18, 718, 16, 283, 18, 45, 13, 1177, 273, 296, 20, 11, 309, 845, 30, 1177, 273, 845, 18, 1655, 12, 21, 13, 309, 1109, 67, 1589, 12, 1711, 18, 13435, 67, 1589, 578, 296, 20, 6134, 1545, 1109, 67, 1589, 12, 1589, 4672, 1324, 400, 18, 2 ]
reqheader = struct.pack("!BBBBB",version, command, rsv, atype, len(hostname))
reqheader = struct.pack("!BBBB",version, command, rsv, atype) if atype == 0x03: reqheader += struct.pack("!B", len(hostname))
def socks5ResolveRequest(hostname, atype=0x03, command=0xF0): version = 5 rsv = 0 port = 0 reqheader = struct.pack("!BBBBB",version, command, rsv, atype, len(hostname)) portstr = struct.pack("!H",port) return "%s%s%s"%(reqheader,hostname,portstr)
6b3f6afb5863e670cf69c1c5219e1177e2ab26b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7483/6b3f6afb5863e670cf69c1c5219e1177e2ab26b2/tor-resolve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7313, 87, 25, 8460, 691, 12, 10358, 16, 30965, 33, 20, 92, 4630, 16, 1296, 33, 20, 16275, 20, 4672, 1177, 273, 1381, 3597, 90, 273, 374, 1756, 273, 374, 1111, 3374, 273, 1958, 18, 2920, 2932, 5, 9676, 9676, 3113, 1589, 16, 1296, 16, 3597, 90, 16, 30965, 13, 309, 30965, 422, 374, 92, 4630, 30, 1111, 3374, 1011, 1958, 18, 2920, 2932, 5, 38, 3113, 562, 12, 10358, 3719, 1756, 701, 273, 1958, 18, 2920, 2932, 5, 44, 3113, 655, 13, 327, 2213, 87, 9, 87, 9, 87, 6, 17105, 3658, 3374, 16, 10358, 16, 655, 701, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7313, 87, 25, 8460, 691, 12, 10358, 16, 30965, 33, 20, 92, 4630, 16, 1296, 33, 20, 16275, 20, 4672, 1177, 273, 1381, 3597, 90, 273, 374, 1756, 273, 374, 1111, 3374, 273, 1958, 18, 2920, 2932, 5, 9676, 9676, 3113, 1589, 16, 1296, 16, 3597, 90, 16, 30965, 13, 309, 30965, 422, 374, 92, 4630, 30, 1111, 3374, 1011, 1958, 18, 2920, 2932, 5, 38, 3113, 562, 12, 10358, 3719, 1756, 701, 273, 1958, 18, 2920, 2932, 5, 44, 3113, 655, 13, 327, 2213, 87, 9, 87, 9, 87, 6, 17105, 3658, 3374, 16, 10358, 16, 655, 701, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
result = self._escapeString(authorDN)
result = self._escapeString( authorDN )
def __setSiteStatusInMask(self,site,status,authorDN='Unknown',comment='No comment'): """ Set the given site status to 'status' or add a new active site """
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 542, 4956, 1482, 382, 5796, 12, 2890, 16, 4256, 16, 2327, 16, 4161, 8609, 2218, 4874, 2187, 3469, 2218, 2279, 2879, 11, 4672, 3536, 225, 1000, 326, 864, 2834, 1267, 358, 296, 2327, 11, 578, 527, 279, 394, 2695, 2834, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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834, 1267, 358, 296, 2327, 11, 578, 527, 279, 394, 2695, 2834, 3536, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
x0 -- (0) default starting guess
x0 -- (0) default starting guess (overwritten with final value)
def bicg(A, b, x0=None, tol=1e-5, maxiter=None, xtype=None, callback=None): """Use BIConjugate Gradient iteration to solve A x = b Inputs: A -- An array or an object with matvec(x) and rmatvec(x) methods to represent A * x and A^H * x respectively. May also have psolve(b) and rpsolve(b) methods for representing solutions to the preconditioning equations M * x = b and M^H * x = b respectively. b -- An n-length vector Outputs: x -- The converged solution info -- output result 0 : successful exit >0 : convergence to tolerance not achieved, number of iterations <0 : illegal input or breakdown Optional Inputs: x0 -- (0) default starting guess tol -- (1e-5) relative tolerance to achieve maxiter -- (10*n) maximum number of iterations xtype -- The type of the result. If None, then it will be determined from A.dtype.char and b. If A does not have a typecode method then it will compute A.matvec(x0) to get a typecode. To save the extra computation when A does not have a typecode attribute use xtype=0 for the same type as b or use xtype='f','d','F',or 'D' callback -- an optional user-supplied function to call after each iteration. It is called as callback(xk), where xk is the current parameter vector. """ b = sb.asarray(b)+0.0 n = len(b) if maxiter is None: maxiter = n*10 x = x0 if x is None: x = sb.zeros(n) if xtype is None: try: atyp = A.dtype.char except AttributeError: atyp = None if atyp is None: atyp = A.matvec(x).dtype.char typ = _coerce_rules[b.dtype.char,atyp] elif xtype == 0: typ = b.dtype.char else: typ = xtype if typ not in 'fdFD': raise ValueError, "xtype must be 'f', 'd', 'F', or 'D'" x = sb.asarray(x,typ) b = sb.asarray(b,typ) matvec, psolve, rmatvec, rpsolve = (None,)*4 ltr = _type_conv[typ] revcom = _iterative.__dict__[ltr+'bicgrevcom'] stoptest = _iterative.__dict__[ltr+'stoptest2'] resid = tol ndx1 = 1 ndx2 = -1 work = sb.zeros(6*n,typ) ijob = 1 info = 0 ftflag = True bnrm2 = -1.0 iter_ = maxiter while True: olditer = iter_ x, iter_, resid, info, ndx1, ndx2, sclr1, sclr2, ijob = \ revcom(b, x, work, iter_, resid, info, ndx1, ndx2, ijob) if callback is not None and iter_ > olditer: callback(x) slice1 = slice(ndx1-1, ndx1-1+n) slice2 = slice(ndx2-1, ndx2-1+n) if (ijob == -1): break elif (ijob == 1): if matvec is None: matvec = get_matvec(A) work[slice2] *= sclr2 work[slice2] += sclr1*matvec(work[slice1]) elif (ijob == 2): if rmatvec is None: rmatvec = get_rmatvec(A) work[slice2] *= sclr2 work[slice2] += sclr1*rmatvec(work[slice1]) elif (ijob == 3): if psolve is None: psolve = get_psolve(A) work[slice1] = psolve(work[slice2]) elif (ijob == 4): if rpsolve is None: rpsolve = get_rpsolve(A) work[slice1] = rpsolve(work[slice2]) elif (ijob == 5): if matvec is None: matvec = get_matvec(A) work[slice2] *= sclr2 work[slice2] += sclr1*matvec(x) elif (ijob == 6): if ftflag: info = -1 ftflag = False bnrm2, resid, info = stoptest(work[slice1], b, bnrm2, tol, info) ijob = 2 return x, info
813b4e6e6d06aca25d02aaa8a246c6d0200f0096 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/813b4e6e6d06aca25d02aaa8a246c6d0200f0096/iterative.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 335, 75, 12, 37, 16, 324, 16, 619, 20, 33, 7036, 16, 6085, 33, 21, 73, 17, 25, 16, 25743, 33, 7036, 16, 619, 723, 33, 7036, 16, 1348, 33, 7036, 4672, 3536, 3727, 605, 45, 442, 78, 31529, 25846, 6532, 358, 12439, 432, 619, 273, 324, 225, 24472, 30, 225, 432, 1493, 282, 1922, 526, 578, 392, 733, 598, 4834, 8799, 12, 92, 13, 471, 6692, 270, 8799, 12, 92, 13, 2590, 358, 2406, 432, 380, 619, 471, 432, 66, 44, 380, 619, 19629, 18, 225, 16734, 2546, 1240, 4250, 5390, 12, 70, 13, 471, 436, 1121, 5390, 12, 70, 13, 2590, 364, 5123, 22567, 358, 326, 24148, 310, 30369, 490, 380, 619, 273, 324, 471, 490, 66, 44, 380, 619, 273, 324, 19629, 18, 324, 1493, 282, 1922, 290, 17, 2469, 3806, 225, 26168, 30, 225, 619, 225, 1493, 225, 1021, 14581, 2423, 6959, 1123, 1493, 876, 563, 374, 225, 294, 6873, 2427, 405, 20, 294, 25200, 358, 10673, 486, 20186, 2155, 16, 1300, 434, 11316, 411, 20, 294, 16720, 810, 578, 898, 2378, 225, 4055, 24472, 30, 225, 619, 20, 225, 1493, 261, 20, 13, 805, 5023, 7274, 261, 1643, 9748, 598, 727, 460, 13, 6085, 1493, 261, 21, 73, 17, 25, 13, 3632, 10673, 358, 20186, 537, 25743, 1493, 261, 2163, 14, 82, 13, 4207, 1300, 434, 11316, 619, 723, 225, 1493, 225, 1021, 618, 434, 326, 563, 18, 225, 971, 599, 16, 1508, 518, 903, 506, 11383, 628, 432, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 335, 75, 12, 37, 16, 324, 16, 619, 20, 33, 7036, 16, 6085, 33, 21, 73, 17, 25, 16, 25743, 33, 7036, 16, 619, 723, 33, 7036, 16, 1348, 33, 7036, 4672, 3536, 3727, 605, 45, 442, 78, 31529, 25846, 6532, 358, 12439, 432, 619, 273, 324, 225, 24472, 30, 225, 432, 1493, 282, 1922, 526, 578, 392, 733, 598, 4834, 8799, 12, 92, 13, 471, 6692, 270, 8799, 12, 92, 13, 2590, 358, 2406, 432, 380, 619, 471, 432, 66, 44, 380, 619, 19629, 18, 225, 16734, 2546, 1240, 4250, 5390, 12, 70, 13, 471, 436, 1121, 5390, 12, 70, 13, 2590, 364, 5123, 22567, 358, 326, 24148, 310, 30369, 490, 380, 619, 273, 324, 471, 2 ]
path = 'xmlrpc-private' netloc = netloc.split('@', 1)[-1]
path = os.path.join(path, 'xmlrpc-private') netloc = netloc.rsplit('@', 1)[-1]
def __init__(self, rbuilderUrl, user, pw): scheme, netloc, path, query, fragment = urlparse.urlsplit(rbuilderUrl) path = 'xmlrpc-private' netloc = netloc.split('@', 1)[-1] netloc = '%s:%s@' % (user, pw) + netloc rbuilderUrl = urlparse.urlunsplit( (scheme, netloc, path, query, fragment))
9e439cf11b693b8679104b8c826d784f045b5405 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8749/9e439cf11b693b8679104b8c826d784f045b5405/rbuilderclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 7138, 953, 1489, 16, 729, 16, 8772, 4672, 4355, 16, 17345, 16, 589, 16, 843, 16, 5481, 273, 15185, 18, 718, 4939, 12, 6731, 953, 1489, 13, 225, 589, 273, 1140, 18, 803, 18, 5701, 12, 803, 16, 296, 2902, 7452, 17, 1152, 6134, 17345, 273, 17345, 18, 86, 4939, 2668, 36, 2187, 404, 13, 18919, 21, 65, 17345, 273, 1995, 87, 5319, 87, 20887, 738, 261, 1355, 16, 8772, 13, 397, 17345, 7138, 953, 1489, 273, 225, 15185, 18, 718, 318, 4939, 12, 261, 9068, 16, 17345, 16, 589, 16, 843, 16, 5481, 3719, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7138, 953, 1489, 16, 729, 16, 8772, 4672, 4355, 16, 17345, 16, 589, 16, 843, 16, 5481, 273, 15185, 18, 718, 4939, 12, 6731, 953, 1489, 13, 225, 589, 273, 1140, 18, 803, 18, 5701, 12, 803, 16, 296, 2902, 7452, 17, 1152, 6134, 17345, 273, 17345, 18, 86, 4939, 2668, 36, 2187, 404, 13, 18919, 21, 65, 17345, 273, 1995, 87, 5319, 87, 20887, 738, 261, 1355, 16, 8772, 13, 397, 17345, 7138, 953, 1489, 273, 225, 15185, 18, 718, 318, 4939, 12, 261, 9068, 16, 17345, 16, 589, 16, 843, 16, 5481, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.section_level = 0
self.section_level = 1
def __init__(self, document): #nodes.SparseNodeVisitor.__init__(self, document) nodes.GenericNodeVisitor.__init__(self, document) self.settings = document.settings self.section_level = 0 self.section_count = 0 # Create ElementTree content and styles documents. if WhichElementTree == 'lxml': root = Element( 'office:document-content', nsmap=CONTENT_NAMESPACE_DICT, ) else: root = Element( 'office:document-content', attrib=CONTENT_NAMESPACE_ATTRIB, ) self.content_tree = etree.ElementTree(element=root) self.current_element = root SubElement(root, 'office:scripts') SubElement(root, 'office:font-face-decls') el = SubElement(root, 'office:automatic-styles') self.automatic_styles = el el = SubElement(root, 'office:body') el = SubElement(el, 'office:text') self.current_element = el
6783ed83a012a9a36121e2dfd2d40824a51ffa75 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1278/6783ed83a012a9a36121e2dfd2d40824a51ffa75/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1668, 4672, 468, 4690, 18, 20565, 907, 7413, 16186, 2738, 972, 12, 2890, 16, 1668, 13, 2199, 18, 7014, 907, 7413, 16186, 2738, 972, 12, 2890, 16, 1668, 13, 365, 18, 4272, 273, 1668, 18, 4272, 365, 18, 3464, 67, 2815, 273, 404, 365, 18, 3464, 67, 1883, 273, 374, 468, 1788, 22566, 913, 471, 5687, 7429, 18, 309, 21918, 1046, 2471, 422, 296, 80, 2902, 4278, 1365, 273, 3010, 12, 296, 19789, 30, 5457, 17, 1745, 2187, 3153, 1458, 33, 9689, 67, 11368, 67, 31456, 16, 262, 469, 30, 1365, 273, 3010, 12, 296, 19789, 30, 5457, 17, 1745, 2187, 5885, 33, 9689, 67, 11368, 67, 26741, 16, 262, 365, 18, 1745, 67, 3413, 273, 12031, 18, 1046, 2471, 12, 2956, 33, 3085, 13, 365, 18, 2972, 67, 2956, 273, 1365, 5479, 12, 3085, 16, 296, 19789, 30, 12827, 6134, 5479, 12, 3085, 16, 296, 19789, 30, 5776, 17, 865, 17, 323, 6429, 6134, 415, 273, 5479, 12, 3085, 16, 296, 19789, 30, 5854, 4941, 17, 10218, 6134, 365, 18, 5854, 4941, 67, 10218, 273, 415, 415, 273, 5479, 12, 3085, 16, 296, 19789, 30, 3432, 6134, 415, 273, 5479, 12, 292, 16, 296, 19789, 30, 955, 6134, 365, 18, 2972, 67, 2956, 273, 415, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 972, 12, 2890, 16, 1668, 4672, 468, 4690, 18, 20565, 907, 7413, 16186, 2738, 972, 12, 2890, 16, 1668, 13, 2199, 18, 7014, 907, 7413, 16186, 2738, 972, 12, 2890, 16, 1668, 13, 365, 18, 4272, 273, 1668, 18, 4272, 365, 18, 3464, 67, 2815, 273, 404, 365, 18, 3464, 67, 1883, 273, 374, 468, 1788, 22566, 913, 471, 5687, 7429, 18, 309, 21918, 1046, 2471, 422, 296, 80, 2902, 4278, 1365, 273, 3010, 12, 296, 19789, 30, 5457, 17, 1745, 2187, 3153, 1458, 33, 9689, 67, 11368, 67, 31456, 16, 262, 469, 30, 1365, 273, 3010, 12, 296, 19789, 30, 5457, 17, 1745, 2187, 5885, 33, 9689, 67, 11368, 67, 26741, 16, 262, 365, 18, 2 ]
Uses C{r.RemoveComponents} to specify that the C{:devel} and
Uses C{r.removeComponents} to specify that the C{:devel} and
def removeComponents(self, componentList, groupName = None): """ B{C{r.removeComponents()}} - Define components which should not be installed by default
6aaa06786be94a9f84afd30f0d6094ea841a9f48 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8747/6aaa06786be94a9f84afd30f0d6094ea841a9f48/grouprecipe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 7171, 12, 2890, 16, 1794, 682, 16, 11619, 273, 599, 4672, 3536, 605, 95, 39, 95, 86, 18, 4479, 7171, 1435, 9090, 300, 13184, 4085, 1492, 1410, 486, 506, 5876, 635, 805, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1206, 7171, 12, 2890, 16, 1794, 682, 16, 11619, 273, 599, 4672, 3536, 605, 95, 39, 95, 86, 18, 4479, 7171, 1435, 9090, 300, 13184, 4085, 1492, 1410, 486, 506, 5876, 635, 805, 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, -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, -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, -100, -100, -100, -100 ]
self.run(statement, globals=globals_, locals=locals_)
self.run(statement)
def _runscript(self, filename): # Start with fresh empty copy of globals and locals and tell the script # that it's being run as __main__ to avoid scripts being able to access # the pdb.py namespace. globals_ = {"__name__" : "__main__"} locals_ = globals_
b6ae6aa8ac8abb9350f2ae2186d609116676c661 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/b6ae6aa8ac8abb9350f2ae2186d609116676c661/pdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 4263, 12, 2890, 16, 1544, 4672, 468, 3603, 598, 12186, 1008, 1610, 434, 10941, 471, 8985, 471, 9276, 326, 2728, 468, 716, 518, 1807, 3832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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2681, 4263, 12, 2890, 16, 1544, 4672, 468, 3603, 598, 12186, 1008, 1610, 434, 10941, 471, 8985, 471, 9276, 326, 2728, 468, 716, 518, 1807, 3832, 1086, 487, 1001, 5254, 972, 358, 4543, 8873, 3832, 7752, 358, 2006, 468, 326, 10892, 18, 2074, 1981, 18, 10941, 67, 273, 12528, 972, 529, 14437, 294, 10425, 5254, 14437, 97, 8985, 67, 273, 10941, 67, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, -100, -100, -100, -100 ]
return
return
def copy_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check if the targetted item is a key if not target.item or not target.item.hasscript( 'key' ): char.socket.clilocmessage(501679) return # Also a blank key? if not target.item.hastag('lock'): char.socket.clilocmessage(501675) return # Check if the player can reach the item if not char.canreach(target.item,5): char.socket.clilocmessage(501661) return # Tinkering check (15%-30%, 25% chance of loosing the key on failure) if char.checkskill(TINKERING, 150, 300): key.settag('lock',target.item.gettag('lock')) key.resendtooltip() char.socket.clilocmessage(501676) else: char.socket.clilocmessage(501677) # 25% chance of destroying the blank key if random.randint(1,4) == 1: char.socket.clilocmessage(501678) key.remove()
516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 2740, 12, 3001, 16, 833, 16, 1018, 4672, 309, 562, 12, 1968, 13, 480, 404, 30, 327, 225, 498, 273, 341, 355, 74, 2920, 18, 4720, 1726, 12, 1968, 63, 20, 5717, 309, 486, 498, 578, 486, 1149, 18, 4169, 12974, 12, 856, 16, 25, 4672, 1149, 18, 7814, 18, 830, 330, 504, 2150, 12, 9172, 6028, 21, 13, 327, 225, 468, 2073, 309, 326, 1018, 2344, 761, 353, 279, 498, 309, 486, 1018, 18, 1726, 578, 486, 1018, 18, 1726, 18, 76, 428, 9118, 12, 296, 856, 11, 262, 30, 1149, 18, 7814, 18, 830, 330, 504, 2150, 12, 9172, 26, 7235, 13, 327, 225, 468, 8080, 279, 7052, 498, 35, 309, 486, 1018, 18, 1726, 18, 76, 689, 346, 2668, 739, 11, 4672, 1149, 18, 7814, 18, 830, 330, 504, 2150, 12, 9172, 26, 5877, 13, 327, 225, 468, 2073, 309, 326, 7291, 848, 9287, 326, 761, 309, 486, 1149, 18, 4169, 12974, 12, 3299, 18, 1726, 16, 25, 4672, 1149, 18, 7814, 18, 830, 330, 504, 2150, 12, 9172, 6028, 21, 13, 327, 225, 468, 399, 754, 264, 310, 866, 261, 3600, 9, 17, 5082, 9, 16, 6969, 9, 17920, 434, 437, 538, 310, 326, 498, 603, 5166, 13, 309, 1149, 18, 1893, 7771, 737, 12, 56, 8476, 654, 1360, 16, 18478, 16, 11631, 4672, 498, 18, 542, 2692, 2668, 739, 2187, 3299, 18, 1726, 18, 588, 2692, 2668, 739, 26112, 498, 18, 455, 409, 19798, 1435, 1149, 18, 7814, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 67, 2740, 12, 3001, 16, 833, 16, 1018, 4672, 309, 562, 12, 1968, 13, 480, 404, 30, 327, 225, 498, 273, 341, 355, 74, 2920, 18, 4720, 1726, 12, 1968, 63, 20, 5717, 309, 486, 498, 578, 486, 1149, 18, 4169, 12974, 12, 856, 16, 25, 4672, 1149, 18, 7814, 18, 830, 330, 504, 2150, 12, 9172, 6028, 21, 13, 327, 225, 468, 2073, 309, 326, 1018, 2344, 761, 353, 279, 498, 309, 486, 1018, 18, 1726, 578, 486, 1018, 18, 1726, 18, 76, 428, 9118, 12, 296, 856, 11, 262, 30, 1149, 18, 7814, 18, 830, 330, 504, 2150, 12, 9172, 26, 7235, 13, 327, 225, 468, 8080, 279, 7052, 498, 35, 309, 486, 1018, 18, 2 ]
self.jigAtomSetAction.setText(self.__tr("Atom Set"))
self.jigsAtomSetAction.setText(self.__tr("Atom Set"))
def languageChange(self): self.setCaption(self.__tr("nanoENGINEER-1")) self.fileOpenAction.setText(self.__tr("Open")) self.fileOpenAction.setMenuText(self.__tr("&Open...")) self.fileOpenAction.setAccel(self.__tr("Ctrl+O")) self.fileSaveAction.setText(self.__tr("Save")) self.fileSaveAction.setMenuText(self.__tr("&Save")) self.fileSaveAction.setAccel(self.__tr("Ctrl+S")) self.fileSaveAsAction.setText(self.__tr("Save As")) self.fileSaveAsAction.setMenuText(self.__tr("Save &As...")) self.fileSaveAsAction.setAccel(QString.null) self.fileImageAction.setText(self.__tr("&Image...")) self.fileImageAction.setMenuText(self.__tr("&Image...")) self.fileImageAction.setAccel(self.__tr("Ctrl+I")) self.fileExitAction.setText(self.__tr("Exit")) self.fileExitAction.setMenuText(self.__tr("E&xit")) self.fileExitAction.setAccel(QString.null) self.editUndoAction.setText(self.__tr("Undo")) self.editUndoAction.setMenuText(self.__tr("&Undo")) self.editUndoAction.setAccel(self.__tr("Ctrl+Z")) self.editRedoAction.setText(self.__tr("Redo")) self.editRedoAction.setMenuText(self.__tr("&Redo")) self.editRedoAction.setAccel(self.__tr("Ctrl+Y")) self.editCutAction.setText(self.__tr("Cut")) self.editCutAction.setMenuText(self.__tr("&Cut")) self.editCutAction.setAccel(self.__tr("Ctrl+X")) self.editCopyAction.setText(self.__tr("Copy")) self.editCopyAction.setMenuText(self.__tr("C&opy")) self.editCopyAction.setAccel(self.__tr("Ctrl+C")) self.editPasteAction.setText(self.__tr("Paste")) self.editPasteAction.setMenuText(self.__tr("&Paste")) self.editPasteAction.setAccel(self.__tr("Ctrl+V")) self.editFindAction.setText(self.__tr("Find")) self.editFindAction.setMenuText(self.__tr("&Find...")) self.helpContentsAction.setText(self.__tr("Contents")) self.helpContentsAction.setMenuText(self.__tr("&Contents...")) self.helpContentsAction.setAccel(QString.null) self.helpAboutAction.setText(self.__tr("About nanoENGINEER-1")) self.helpAboutAction.setMenuText(self.__tr("&About nanoENGINEER-1")) self.helpAboutAction.setAccel(QString.null) self.setViewFitToWindowAction.setText(self.__tr("Fit to Window")) self.setViewFitToWindowAction.setMenuText(self.__tr("&Fit to Window")) self.setViewFitToWindowAction.setToolTip(self.__tr("Fit to Window (Ctrl+F)")) self.setViewFitToWindowAction.setAccel(self.__tr("Ctrl+F")) self.fileCloseAction.setText(self.__tr("Close")) self.fileCloseAction.setMenuText(self.__tr("&Close")) self.viewDefviewAction.setText(self.__tr("Orientations")) self.viewDefviewAction.setMenuText(self.__tr("Orientations")) self.viewDefviewAction.setToolTip(self.__tr("Default Views")) self.dispBGColorAction.setText(self.__tr("Background Color...")) self.dispBGColorAction.setMenuText(self.__tr("&Background Color...")) self.selectAllAction.setText(self.__tr("All")) self.selectAllAction.setMenuText(self.__tr("&All")) self.selectAllAction.setToolTip(self.__tr("Select All")) self.selectAllAction.setAccel(self.__tr("Ctrl+A")) self.selectNoneAction.setText(self.__tr("None")) self.selectNoneAction.setMenuText(self.__tr("&None")) self.selectNoneAction.setToolTip(self.__tr("Select None")) self.selectInvertAction.setText(self.__tr("Invert")) self.selectInvertAction.setMenuText(self.__tr("&Invert")) self.selectInvertAction.setToolTip(self.__tr("Select Invert")) self.selectInvertAction.setAccel(self.__tr("Ctrl+Shift+I")) self.ccAddLayerAction.setText(self.__tr("Add Layer")) self.ccAddLayerAction.setMenuText(self.__tr("Add Layer")) self.ccAddLayerAction.setToolTip(self.__tr("Add a new layer.(Maximum is 6 layer)")) self.toolsDoneAction.setText(self.__tr("Done")) self.toolsDoneAction.setMenuText(self.__tr("Done")) self.toolsCancelAction.setText(self.__tr("Cancel")) self.toolsCancelAction.setMenuText(self.__tr("Cancel")) self.editDeleteAction.setText(self.__tr("Delete")) self.editDeleteAction.setMenuText(self.__tr("&Delete")) self.editDeleteAction.setToolTip(self.__tr("Delete (Del)")) self.editDeleteAction.setAccel(self.__tr("Del")) self.viewToolbarsAction.setText(self.__tr("Toolbars")) self.viewToolbarsAction.setMenuText(self.__tr("&Toolbars")) self.dispObjectColorAction.setText(self.__tr("Chunk Color")) self.dispObjectColorAction.setMenuText(self.__tr("&Chunk Color...")) self.dispOpenBondsAction.setText(self.__tr("Display Open Bonds")) self.dispOpenBondsAction.setMenuText(self.__tr("Display Open Bonds")) self.modifyHydrogenateAction.setText(self.__tr("Hydrogenate")) self.modifyHydrogenateAction.setMenuText(self.__tr("&Hydrogenate")) self.modifyHydrogenateAction.setToolTip(self.__tr("Hydrogenate")) self.modifyPassivateAction.setText(self.__tr("Passivate")) self.modifyPassivateAction.setMenuText(self.__tr("&Passivate")) self.modifyPassivateAction.setToolTip(self.__tr("Passivate (Ctrl+P)")) self.modifyPassivateAction.setAccel(self.__tr("Ctrl+P")) self.jigsMotorAction.setText(self.__tr("Rotary Motor")) self.jigsMotorAction.setMenuText(self.__tr("&Rotary Motor")) self.modifyMinimizeSelAction.setText(self.__tr("Minimize Selection")) self.modifyMinimizeSelAction.setMenuText(self.__tr("&Minimize Selection")) self.modifyMinimizeSelAction.setToolTip(self.__tr("Minimize Selection (Ctrl+M)")) self.modifyMinimizeSelAction.setAccel(self.__tr("Ctrl+M")) self.toggleFileTbarAction.setText(self.__tr("File")) self.toggleFileTbarAction.setMenuText(self.__tr("File")) self.toggleEditTbarAction.setText(self.__tr("Edit")) self.toggleEditTbarAction.setMenuText(self.__tr("Edit")) self.toggleViewTbarAction.setText(self.__tr("View")) self.toggleViewTbarAction.setMenuText(self.__tr("View")) self.toggleModelDispTbarAction.setText(self.__tr("Model Display")) self.toggleModelDispTbarAction.setMenuText(self.__tr("Model Display")) self.toggleSelectTbarAction.setText(self.__tr("Select")) self.toggleSelectTbarAction.setMenuText(self.__tr("Select")) self.toggleToolsTbarAction.setText(self.__tr("Tools")) self.toggleToolsTbarAction.setMenuText(self.__tr("Tools")) self.fileSetWorkDirAction.setText(self.__tr("Set Working Directory...")) self.fileSetWorkDirAction.setMenuText(self.__tr("Set &Working Directory...")) self.dispTrihedronAction.setText(self.__tr("Trihedron")) self.dispTrihedronAction.setMenuText(self.__tr("Trihedron")) self.dispTrihedronAction.setToolTip(self.__tr("Display Trihedron")) self.dispDatumPlanesAction.setText(self.__tr("Display Datum Planes")) self.dispDatumPlanesAction.setMenuText(self.__tr("Display Datum Planes")) self.dispCsysAction.setText(self.__tr("Display Coordinate System")) self.dispCsysAction.setMenuText(self.__tr("Display Coordinate System")) self.dispDatumLinesAction.setText(self.__tr("Display Datum Lines")) self.dispDatumLinesAction.setMenuText(self.__tr("Display Datum Lines")) self.dispGridAction.setText(self.__tr("Display Grid")) self.dispGridAction.setMenuText(self.__tr("Display Grid")) self.selectConnectedAction.setText(self.__tr("Connected")) self.selectConnectedAction.setMenuText(self.__tr("&Connected")) self.selectConnectedAction.setToolTip(self.__tr("Select Connected")) self.selectConnectedAction.setAccel(self.__tr("Ctrl+Shift+C")) self.selectDoublyAction.setText(self.__tr("Doubly")) self.selectDoublyAction.setMenuText(self.__tr("&Doubly")) self.selectDoublyAction.setToolTip(self.__tr("Select Doubly")) self.editPrefsAction.setText(self.__tr("Preferences")) self.editPrefsAction.setMenuText(self.__tr("Pre&ferences...")) self.editPrefsAction.setToolTip(self.__tr("Preferences")) self.jigsBearingAction.setText(self.__tr("Bearing")) self.jigsBearingAction.setMenuText(self.__tr("&Bearing")) self.jigsSpringAction.setText(self.__tr("Spring")) self.jigsSpringAction.setMenuText(self.__tr("&Spring")) self.jigsDynoAction.setText(self.__tr("Dyno")) self.jigsDynoAction.setMenuText(self.__tr("&Dyno")) self.jigsHeatsinkAction.setText(self.__tr("Heatsin&k")) self.jigsHeatsinkAction.setMenuText(self.__tr("Heatsin&k")) self.jigsAnchorAction.setText(self.__tr("Anchor")) self.jigsAnchorAction.setMenuText(self.__tr("&Anchor")) self.jigsHandleAction.setText(self.__tr("Handle")) self.jigsHandleAction.setMenuText(self.__tr("&Handle")) self.modifySeparateAction.setText(self.__tr("Separate")) self.modifySeparateAction.setMenuText(self.__tr("&Separate")) self.orient100Action.setText(self.__tr("Surface 100")) self.orient100Action.setMenuText(self.__tr("Surface 100")) self.orient110Action.setText(self.__tr("Surface 110")) self.orient110Action.setMenuText(self.__tr("Surface 110")) self.orient111Action.setText(self.__tr("Surface 111")) self.orient111Action.setMenuText(self.__tr("Surface 111")) self.setViewFrontAction.setText(self.__tr("Front")) self.setViewFrontAction.setMenuText(self.__tr("&Front")) self.setViewFrontAction.setToolTip(self.__tr("Front View")) self.setViewBackAction.setText(self.__tr("Back")) self.setViewBackAction.setMenuText(self.__tr("&Back")) self.setViewBackAction.setToolTip(self.__tr("Back View")) self.setViewTopAction.setText(self.__tr("Top")) self.setViewTopAction.setMenuText(self.__tr("&Top")) self.setViewTopAction.setToolTip(self.__tr("Top View")) self.setViewBottomAction.setText(self.__tr("Bottom")) self.setViewBottomAction.setMenuText(self.__tr("Botto&m")) self.setViewBottomAction.setToolTip(self.__tr("Bottom View")) self.setViewRightAction.setText(self.__tr("Right")) self.setViewRightAction.setMenuText(self.__tr("&Right")) self.setViewRightAction.setToolTip(self.__tr("Right View")) self.setViewRightAction.setStatusTip(self.__tr("Right View")) self.setViewLeftAction.setText(self.__tr("Left")) self.setViewLeftAction.setMenuText(self.__tr("&Left")) self.setViewLeftAction.setToolTip(self.__tr("Left View")) self.setViewHomeAction.setText(self.__tr("Home")) self.setViewHomeAction.setMenuText(self.__tr("&Home")) self.setViewHomeAction.setToolTip(self.__tr("Home View (Home)")) self.setViewHomeAction.setAccel(self.__tr("Home")) self.setViewRecenterAction.setText(self.__tr("Recenter")) self.setViewRecenterAction.setMenuText(self.__tr("&Recenter")) self.setViewRecenterAction.setToolTip(self.__tr("Recenter (Ctrl+R)")) self.setViewRecenterAction.setAccel(self.__tr("Ctrl+R")) self.jigsLinearMotorAction.setText(self.__tr("Linear Motor")) self.jigsLinearMotorAction.setMenuText(self.__tr("&Linear Motor")) self.toggleModifyTbarAction.setText(self.__tr("Modify")) self.toggleModifyTbarAction.setMenuText(self.__tr("Modify")) self.toolsStartOverAction.setText(self.__tr("Start Over")) self.toolsStartOverAction.setMenuText(self.__tr("Start Over")) self.toolsBackUpAction.setText(self.__tr("Back Up")) self.toolsBackUpAction.setMenuText(self.__tr("Back Up")) self.fileClearAction.setText(self.__tr("Clear")) self.fileClearAction.setMenuText(self.__tr("C&lear")) self.modifyCopyBondAction.setText(self.__tr("Copy Bond")) self.modifyCopyBondAction.setMenuText(self.__tr("&Copy Bond")) self.modifyEdgeBondAction.setText(self.__tr("Edge Bond")) self.modifyEdgeBondAction.setMenuText(self.__tr("Ed&ge Bond")) self.modifyMergeAction.setText(self.__tr("Merge")) self.modifyMergeAction.setMenuText(self.__tr("Mer&ge")) self.toggleDatumDispTbarAction.setText(self.__tr("Datum Display")) self.toggleDatumDispTbarAction.setMenuText(self.__tr("Datum Display")) self.modifySetElementAction.setText(self.__tr("Element Selector")) self.modifySetElementAction.setMenuText(self.__tr("&Element Selector...")) self.fileInsertAction.setText(self.__tr("Inser&t...")) self.fileInsertAction.setMenuText(self.__tr("Inser&t...")) self.modifyDehydrogenateAction.setText(self.__tr("Dehydrogenate")) self.modifyDehydrogenateAction.setMenuText(self.__tr("&Dehydrogenate")) self.toggleGridsTbarAction.setText(self.__tr("Grids")) self.toggleGridsTbarAction.setMenuText(self.__tr("Grids")) self.dispCPKAction.setText(self.__tr("CPK")) self.dispCPKAction.setMenuText(self.__tr("CPK")) self.dispDefaultAction.setText(self.__tr("Default")) self.dispDefaultAction.setMenuText(self.__tr("Default")) self.dispInvisAction.setText(self.__tr("Invisible")) self.dispInvisAction.setMenuText(self.__tr("Invisible")) self.dispLinesAction.setText(self.__tr("Lines")) self.dispLinesAction.setMenuText(self.__tr("Lines")) self.dispTubesAction.setText(self.__tr("Tubes")) self.dispTubesAction.setMenuText(self.__tr("Tubes")) self.dispVdWAction.setText(self.__tr("VdW")) self.dispVdWAction.setMenuText(self.__tr("VdW")) self.setPerspectiveActionGroup.setText(self.__tr("ActionGroup")) self.setPerspectiveActionGroup.setMenuText(self.__tr("ActionGroup")) self.setViewOrthoAction.setText(self.__tr("Orthographic Projection")) self.setViewOrthoAction.setMenuText(self.__tr("Orthographic Projection")) self.setViewOrthoAction.setToolTip(self.__tr("Orthographic Projection")) self.setViewPerspecAction.setText(self.__tr("Perspective Projection")) self.setViewPerspecAction.setMenuText(self.__tr("Perspective Projection")) self.setViewPerspecAction.setToolTip(self.__tr("Perspective Projection")) self.toolsModeActionGroup.setText(self.__tr("ActionGroup")) self.toolsModeActionGroup.setMenuText(self.__tr("ActionGroup")) self.toolsDepositAtomAction.setText(self.__tr("Build Atoms")) self.toolsDepositAtomAction.setMenuText(self.__tr("Build &Atoms")) self.toolsDepositAtomAction.setToolTip(self.__tr("Build Atoms")) self.toolsCookieCutAction.setText(self.__tr("Cookie Cutter")) self.toolsCookieCutAction.setMenuText(self.__tr("&Cookie Cutter")) self.toolsCookieCutAction.setToolTip(self.__tr("Cookie Cutter")) self.toolsExtrudeAction.setText(self.__tr("Extrude")) self.toolsExtrudeAction.setMenuText(self.__tr("&Extrude")) self.toolsExtrudeAction.setToolTip(self.__tr("Extrude")) self.toolsRevolveAction.setText(self.__tr("Revolve")) self.toolsRevolveAction.setMenuText(self.__tr("&Revolve")) self.toolsRevolveAction.setToolTip(self.__tr("Revolve")) self.toolsMirrorAction.setText(self.__tr("Mirror")) self.toolsMirrorAction.setMenuText(self.__tr("Mi&rror")) self.toolsMirrorAction.setToolTip(self.__tr("Mirror")) self.toolsMirrorCircularBoundaryAction.setText(self.__tr("Mirror Circular Boundary")) self.toolsMirrorCircularBoundaryAction.setMenuText(self.__tr("Mirror Circular &Boundary")) self.toolsMirrorCircularBoundaryAction.setToolTip(self.__tr("Mirror Circular Boundary")) self.simMoviePlayerAction.setText(self.__tr("Movie Player")) self.simMoviePlayerAction.setMenuText(self.__tr("&Movie Player")) self.simMoviePlayerAction.setToolTip(self.__tr("Movie Player")) self.toolsAddBondAction.setText(self.__tr("Add Bond")) self.toolsAddBondAction.setMenuText(self.__tr("Add Bond")) self.toolsAddBondAction.setToolTip(self.__tr("Add Bond")) self.toolsDeleteBondAction.setText(self.__tr("Delete Bond")) self.toolsDeleteBondAction.setMenuText(self.__tr("Delete Bond")) self.toolsDeleteBondAction.setToolTip(self.__tr("Delete Bond")) self.toolsSelectAtomsAction.setText(self.__tr("Select Atoms")) self.toolsSelectAtomsAction.setMenuText(self.__tr("Select Atoms")) self.toolsSelectAtomsAction.setToolTip(self.__tr("Select Atoms")) self.toolsSelectMoleculesAction.setText(self.__tr("Select Chunks")) self.toolsSelectMoleculesAction.setMenuText(self.__tr("Select Chunks")) self.toolsSelectMoleculesAction.setToolTip(self.__tr("Select Chunks")) self.toolsMoveMoleculeAction.setText(self.__tr("Move Chunks")) self.toolsMoveMoleculeAction.setMenuText(self.__tr("Move Chunks")) self.toolsMoveMoleculeAction.setToolTip(self.__tr("Move Chunks")) self.toolsFuseChunksAction.setText(self.__tr("Fuse Chunks")) self.toolsFuseChunksAction.setMenuText(self.__tr("Fuse Chunks")) self.toolsFuseChunksAction.setToolTip(self.__tr("Fuse Chunks")) self.toolsFuseAtomsAction.setText(self.__tr("Fuse Atoms")) self.toolsFuseAtomsAction.setToolTip(self.__tr("Fuse Atoms")) self.modifyStretchAction.setText(self.__tr("Stretch")) self.modifyStretchAction.setMenuText(self.__tr("S&tretch")) self.MoveOptionsGroup.setText(self.__tr("Move Chunks")) self.MoveOptionsGroup.setMenuText(self.__tr("Move Chunks")) self.transXAction.setText(self.__tr("X Transformation")) self.transXAction.setMenuText(self.__tr("X Transformation")) self.transXAction.setToolTip(self.__tr("X Transformation")) self.transYAction.setText(self.__tr("Y Transformation")) self.transYAction.setMenuText(self.__tr("Y Transformation")) self.transYAction.setToolTip(self.__tr("Y Transformation")) self.transZAction.setText(self.__tr("Z Transformation")) self.transZAction.setMenuText(self.__tr("Z Transformation")) self.transZAction.setToolTip(self.__tr("Z Transformation")) self.rotXAction.setText(self.__tr("X Rotation")) self.rotXAction.setMenuText(self.__tr("X Rotation")) self.rotXAction.setToolTip(self.__tr("X Rotation")) self.rotYAction.setText(self.__tr("Y Rotation")) self.rotYAction.setMenuText(self.__tr("Y Rotation")) self.rotYAction.setToolTip(self.__tr("Y Rotation")) self.rotZAction.setText(self.__tr("Z Rotation")) self.rotZAction.setMenuText(self.__tr("Z Rotation")) self.rotZAction.setToolTip(self.__tr("Z Rotation")) self.moveFreeAction.setText(self.__tr("Mov")) self.moveFreeAction.setMenuText(self.__tr("Move")) self.moveFreeAction.setToolTip(self.__tr("Move")) self.rotFreeAction.setText(self.__tr("Rotate ")) self.rotFreeAction.setMenuText(self.__tr("Rotate Molecule Unconstrained")) self.rotFreeAction.setToolTip(self.__tr("Rotate Molecule Unconstrained")) self.moveConstrainedAction.setText(self.__tr("Move/Rotate Constrained")) self.moveConstrainedAction.setMenuText(self.__tr("Move/Rotate Constrained")) self.moveConstrainedAction.setToolTip(self.__tr("Move/Rotate Constrained")) self.moveXAction.setText(self.__tr("Move X")) self.moveXAction.setMenuText(self.__tr("Move X")) self.moveXAction.setToolTip(self.__tr("Move X")) self.moveYAction.setText(self.__tr("Move Y")) self.moveYAction.setMenuText(self.__tr("Move Y")) self.moveYAction.setToolTip(self.__tr("Move Y")) self.nullAction.setText(QString.null) self.nullAction.setMenuText(QString.null) self.jigsStatAction.setText(self.__tr("Thermostat")) self.jigsStatAction.setMenuText(self.__tr("Thermo&stat")) self.dispResetChunkColorAction.setText(self.__tr("Reset Chunk Color")) self.dispResetChunkColorAction.setMenuText(self.__tr("&Reset Chunk Color")) self.helpWhatsThisAction.setText(self.__tr("What's This")) self.helpWhatsThisAction.setMenuText(self.__tr("What's This")) self.movieResetAction.setText(self.__tr("Reset Movie")) self.movieResetAction.setMenuText(self.__tr("Reset Movie")) self.moviePlayRevActiveAction.setText(self.__tr("Play Reverse")) self.moviePlayRevActiveAction.setMenuText(self.__tr("Play Reverse")) self.moviePlayActiveAction.setText(self.__tr("Play Forward")) self.moviePlayActiveAction.setMenuText(self.__tr("Play Forward")) self.movieMoveToEndAction.setText(self.__tr("Advance To End")) self.movieMoveToEndAction.setMenuText(self.__tr("Advance To End")) self.moviePauseAction.setText(self.__tr("Pause")) self.moviePauseAction.setMenuText(self.__tr("Pause")) self.moviePlayAction.setText(self.__tr("Play Forward")) self.moviePlayAction.setMenuText(self.__tr("Play Forward")) self.moviePlayAction.setToolTip(self.__tr("Play Forward")) self.setViewHomeToCurrentAction.setText(self.__tr("Set Home View to Current View")) self.setViewHomeToCurrentAction.setMenuText(self.__tr("Set Home View to &Current View")) self.modifyAlignCommonAxisAction.setText(self.__tr("Align to Common Axis")) self.modifyAlignCommonAxisAction.setMenuText(self.__tr("Align to &Common Axis")) self.dispSetEltable1Action.setText(self.__tr("Set Atom Colors to Default")) self.dispSetEltable1Action.setMenuText(self.__tr("Set Atom Colors to Default")) self.dispSetEltable2Action.setText(self.__tr("Set Atom Colors to Alternate")) self.dispSetEltable2Action.setMenuText(self.__tr("Set Atom Colors to Alternate")) self.movieDoneAction.setText(self.__tr("Done")) self.movieDoneAction.setMenuText(self.__tr("Done")) self.movieNextFrameAction.setText(self.__tr("Next")) self.movieNextFrameAction.setMenuText(self.__tr("Next")) self.moviePrevFrameAction.setText(self.__tr("Prev")) self.moviePrevFrameAction.setMenuText(self.__tr("Prev")) self.fileSaveMovieAction.setText(self.__tr("Save Movie")) self.fileSaveMovieAction.setMenuText(self.__tr("Save Movie")) self.moviePlayRevAction.setText(self.__tr("Play Reverse")) self.moviePlayRevAction.setMenuText(self.__tr("Play Reverse")) self.fileOpenMovieAction.setText(self.__tr("Open Movie File")) self.fileOpenMovieAction.setMenuText(self.__tr("Open Movie File")) self.movieInfoAction.setText(self.__tr("Movie Information")) self.movieInfoAction.setMenuText(self.__tr("Movie Information")) self.zoomToolAction.setText(self.__tr("Zoom Tool")) self.zoomToolAction.setMenuText(self.__tr("&Zoom Tool")) self.panToolAction.setText(self.__tr("Pan Tool")) self.panToolAction.setMenuText(self.__tr("&Pan Tool")) self.rotateWindowAction.setText(self.__tr("Action")) self.rotateWindowAction.setMenuText(self.__tr("Action")) self.jigsThermoAction.setText(self.__tr("Thermometer")) self.jigsThermoAction.setMenuText(self.__tr("&Thermometer")) self.panDoneAction.setText(self.__tr("Done")) self.panDoneAction.setMenuText(self.__tr("Done")) self.rotateToolAction.setText(self.__tr("Rotate Tool")) self.rotateToolAction.setMenuText(self.__tr("Rotate Tool")) self.modifyDeleteBondsAction.setText(self.__tr("Delete Bonds")) self.modifyDeleteBondsAction.setMenuText(self.__tr("Delete &Bonds")) self.dispElementColorSettingsAction.setText(self.__tr("Element Color Settings...")) self.dispElementColorSettingsAction.setMenuText(self.__tr("Element Color Settings...")) self.simSetupAction.setText(self.__tr("Simulator Setup")) self.simSetupAction.setMenuText(self.__tr("Simulator Setup...")) self.simPlotToolAction.setText(self.__tr("Plot Tool")) self.simPlotToolAction.setMenuText(self.__tr("Plot Tool...")) self.dispLightingAction.setText(self.__tr("Lighting")) self.dispLightingAction.setMenuText(self.__tr("Lighting...")) self.dispResetAtomsDisplayAction.setText(self.__tr("Reset Atoms Display")) self.dispResetAtomsDisplayAction.setMenuText(self.__tr("Reset Atoms Display")) self.dispShowInvisAtomsAction.setText(self.__tr("Show Invisible Atoms")) self.dispShowInvisAtomsAction.setMenuText(self.__tr("Show Invisible Atoms")) self.cookieCutterViewActionGroup.setText(self.__tr("ActionGroup")) self.cookieCutterViewActionGroup.setMenuText(self.__tr("ActionGroup")) self.CookieSelectionGroup.setText(self.__tr("ActionGroup")) self.CookieSelectionGroup.setMenuText(self.__tr("ActionGroup")) self.CircleSelAction.setText(self.__tr("Circle Center")) self.CircleSelAction.setMenuText(self.__tr("Circle Center")) self.CircleSelAction.setToolTip(self.__tr("Circle Center")) self.RectCtrSelAction.setText(self.__tr("Rectangle Center")) self.RectCtrSelAction.setMenuText(self.__tr("Rectangle Center")) self.RectCtrSelAction.setToolTip(self.__tr("Rectangle Center")) self.HexagonSelAction.setText(self.__tr("Hexagon Center")) self.HexagonSelAction.setMenuText(self.__tr("Hexagon Center")) self.HexagonSelAction.setToolTip(self.__tr("Hexagon Center")) self.TriangleSelAction.setText(self.__tr("Triangle Center")) self.TriangleSelAction.setMenuText(self.__tr("Triangle Center")) self.TriangleSelAction.setToolTip(self.__tr("Triangle Center")) self.RectCornerSelAction.setText(self.__tr("Rectangle Corners")) self.RectCornerSelAction.setMenuText(self.__tr("Rectangle Corners")) self.RectCornerSelAction.setToolTip(self.__tr("Rectangle Corners")) self.LassoSelAction.setText(self.__tr("Lasso Selection")) self.LassoSelAction.setMenuText(self.__tr("Lasso Selection")) self.LassoSelAction.setToolTip(self.__tr("Lasso Selection")) self.DefaultSelAction.setText(self.__tr("Default Selection")) self.DefaultSelAction.setMenuText(self.__tr("Default Selection")) self.DefaultSelAction.setToolTip(self.__tr("Default Selection")) self.DiamondSelAction.setText(self.__tr("Diamond Center")) self.DiamondSelAction.setMenuText(self.__tr("Diamond Center")) self.DiamondSelAction.setToolTip(self.__tr("Diamond Center")) self.SquareSelAction.setText(self.__tr("Square Center")) self.SquareSelAction.setMenuText(self.__tr("Square Center")) self.SquareSelAction.setToolTip(self.__tr("Square Center")) self.moveDeltaPlusAction.setText(self.__tr("Move Delta (+)")) self.moveDeltaPlusAction.setMenuText(self.__tr("Move Delta (+)")) self.moveAbsoluteAction.setText(self.__tr("Move Absolute")) self.moveAbsoluteAction.setMenuText(self.__tr("Move Absolute")) self.modifyMinimizeAllAction.setText(self.__tr("Minimize All")) self.modifyMinimizeAllAction.setMenuText(self.__tr("Minimize All")) self.moveDeltaMinusAction.setText(self.__tr("Move Delta (-)")) self.moveDeltaMinusAction.setMenuText(self.__tr("Move Delta (-)")) self.modifyInvertAction.setText(self.__tr("Invert")) self.modifyInvertAction.setMenuText(self.__tr("&Invert")) self.rotateClockwiseAction.setText(self.__tr("Rotate Clockwise")) self.rotateClockwiseAction.setMenuText(self.__tr("Rotate Clockwise")) self.rotateCounterClockwiseAction.setText(self.__tr("Rotate Counter Clockwise")) self.rotateCounterClockwiseAction.setMenuText(self.__tr("Rotate Counter Clockwise")) self.jigsGamessAction.setText(self.__tr("Gamess")) self.jigsGamessAction.setMenuText(self.__tr("Gamess")) self.simJobManagerAction.setText(self.__tr("Job Manager...")) self.simJobManagerAction.setMenuText(self.__tr("Job Manager...")) self.serverManagerAction.setText(self.__tr("Server Manager...")) self.serverManagerAction.setMenuText(self.__tr("Server Manager...")) self.moveThetaMinusAction.setText(self.__tr("Rotate Theta (-)")) self.moveThetaMinusAction.setMenuText(self.__tr("Rotate Theta (-)")) self.moveThetaPlusAction.setText(self.__tr("Rotate Theta (+)")) self.moveThetaPlusAction.setMenuText(self.__tr("Rotate Theta (+)")) self.setViewOppositeAction.setText(self.__tr("Opposite")) self.setViewOppositeAction.setMenuText(self.__tr("Opposite")) self.setViewOppositeAction.setToolTip(self.__tr("Opposite View")) self.setViewOppositeAction.setStatusTip(self.__tr("Opposite View")) self.modifyMMKitAction.setText(self.__tr("Molecular Modeling Kit")) self.modifyMMKitAction.setToolTip(self.__tr("Modeling Kit")) self.helpMouseControlsAction.setText(self.__tr("Mouse Controls...")) self.helpMouseControlsAction.setToolTip(self.__tr("Mouse Controls")) self.helpMouseControlsAction.setWhatsThis(self.__tr("Displays help for mouse controls")) self.helpKeyboardShortcutsAction.setText(self.__tr("Keyboard Shortcuts...")) self.helpKeyboardShortcutsAction.setToolTip(self.__tr("Keyboard Shortcuts")) self.helpKeyboardShortcutsAction.setWhatsThis(self.__tr("Displays help for keyboard shortcuts")) self.modifyCenterCommonAxisAction.setText(self.__tr("Center on Common Axis")) self.simNanoHiveAction.setText(self.__tr("Nano-Hive")) self.simNanoHiveAction.setMenuText(self.__tr("Nano-Hive...")) self.jigsGridPlaneAction.setText(self.__tr("Grid Plane")) self.jigsESPImageAction.setText(self.__tr("ESP Image")) self.jigsESPImageAction.setMenuText(self.__tr("ESP Image")) self.selectExpandAction.setText(self.__tr("Expand")) self.selectExpandAction.setToolTip(self.__tr("Expand Selection (Ctrl+D)")) self.selectExpandAction.setAccel(self.__tr("Ctrl+D")) self.selectContractAction.setText(self.__tr("Contract")) self.selectContractAction.setToolTip(self.__tr("Contract Selection (Ctrl+Shift+D)")) self.selectContractAction.setAccel(self.__tr("Ctrl+Shift+D")) self.jigAtomSetAction.setText(self.__tr("Atom Set")) self.fileSaveSelectionAction.setText(self.__tr("Save Selection...")) self.setViewPlus90Action.setText(self.__tr("Rotate +90")) self.setViewMinus90Action.setText(self.__tr("Rotate -90")) self.jigsDistanceAction.setText(self.__tr("Measure Distance")) self.jigsDistanceAction.setMenuText(self.__tr("Measure Distance")) self.jigsAngleAction.setText(self.__tr("Measure Angle")) self.jigsAngleAction.setMenuText(self.__tr("Measure Angle")) self.jigsDihedralAction.setText(self.__tr("Measure Dihedral")) self.jigsDihedralAction.setMenuText(self.__tr("Measure Dihedral")) self.insertNanotubeAction.setText(self.__tr("Nanotube")) self.insertNanotubeAction.setToolTip(self.__tr("Nanotube Generator")) self.helpGraphicsCardAction.setText(self.__tr("Graphics Card Info")) self.helpGraphicsCardAction.setMenuText(self.__tr("Graphics Card Info...")) self.setViewNormalToAction.setText(self.__tr("Normal To")) self.setViewNormalToAction.setToolTip(self.__tr("Normal To")) self.setViewParallelToAction.setText(self.__tr("Parallel To")) self.setViewParallelToAction.setToolTip(self.__tr("Parallel To")) self.fileToolbar.setLabel(self.__tr("File")) self.editToolbar.setLabel(self.__tr("Edit")) self.viewToolbar.setLabel(self.__tr("View")) self.molecularDispToolbar.setLabel(self.__tr("Display Modes")) self.selectToolbar.setLabel(self.__tr("Select")) self.helpToolbar.setLabel(self.__tr("Help")) self.selectAtomsDashboard.setLabel(self.__tr("Select Atoms")) self.textLabel2_2.setText(self.__tr("Select Atoms")) self.cookieCutterDashboard.setLabel(self.__tr("Cookie Cutter")) self.ccLabel.setText(self.__tr("Cookie Cutter")) self.moveChunksDashboard.setLabel(self.__tr("Move Chunks")) self.textLabel1.setText(self.__tr("Move Chunks")) self.moviePlayerDashboard.setLabel(self.__tr("Movie Player Dashboard")) self.textLabel1_4.setText(self.__tr("Movie Player")) self.skipTL.setText(self.__tr("Skip:")) self.frameLabel.setText(self.__tr("Frame (500 total):")) self.frameNumberSB.setPrefix(QString.null) self.movieLoop_checkbox.setText(self.__tr("Loop")) self.selectMolDashboard.setLabel(self.__tr("Select Molecule")) self.textLabel1_2.setText(self.__tr("Select Chunks")) self.zoomDashboard.setLabel(self.__tr("Zoom Tool")) self.zoomTextLabel.setText(self.__tr("Zoom Tool")) self.panDashboard.setLabel(self.__tr("Pan Tool")) self.panTextLabel.setText(self.__tr("Pan Tool")) self.rotateDashboard.setLabel(self.__tr("Rotate Tool")) self.rotateTextLabel.setText(self.__tr("Rotate Tool")) self.fuseChunksDashboard.setLabel(self.__tr("Fuse Chunks")) self.textLabel1_3.setText(self.__tr("Fuse Chunks")) self.depositAtomDashboard.setLabel(self.__tr("Build Dashboard")) self.cookieSelectDashboard.setLabel(self.__tr("Toolbar")) self.modifyToolbar.setLabel(self.__tr("Modify")) self.toolsToolbar.setLabel(self.__tr("Tools")) self.datumDispDashboard.setLabel(self.__tr("Datum Display")) self.simToolbar.setLabel(self.__tr("Simulator")) if self.MenuBar.findItem(4): self.MenuBar.findItem(4).setText(self.__tr("&File")) if self.MenuBar.findItem(5): self.MenuBar.findItem(5).setText(self.__tr("&Edit")) if self.MenuBar.findItem(6): self.MenuBar.findItem(6).setText(self.__tr("&View")) if self.MenuBar.findItem(7): self.MenuBar.findItem(7).setText(self.__tr("&Insert")) if self.MenuBar.findItem(8): self.MenuBar.findItem(8).setText(self.__tr("&Display")) if self.MenuBar.findItem(9): self.MenuBar.findItem(9).setText(self.__tr("&Select")) if self.MenuBar.findItem(10): self.MenuBar.findItem(10).setText(self.__tr("&Modify")) if self.MenuBar.findItem(11): self.MenuBar.findItem(11).setText(self.__tr("&Tools")) if self.MenuBar.findItem(12): self.MenuBar.findItem(12).setText(self.__tr("&Jigs")) if self.MenuBar.findItem(13): self.MenuBar.findItem(13).setText(self.__tr("Simulator")) if self.MenuBar.findItem(14): self.MenuBar.findItem(14).setText(self.__tr("&Help"))
60e6bb271f2753e161f309e8cf0bf2108593416a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/60e6bb271f2753e161f309e8cf0bf2108593416a/MainWindowUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2653, 3043, 12, 2890, 4672, 365, 18, 542, 21158, 12, 2890, 16186, 313, 2932, 13569, 83, 28980, 654, 17, 21, 6, 3719, 365, 18, 768, 3678, 1803, 18, 542, 1528, 12, 2890, 16186, 313, 2932, 3678, 6, 3719, 365, 18, 768, 3678, 1803, 18, 542, 4599, 1528, 12, 2890, 16186, 313, 2932, 10, 3678, 7070, 3719, 365, 18, 768, 3678, 1803, 18, 542, 18019, 12, 2890, 16186, 313, 2932, 12418, 15, 51, 6, 3719, 365, 18, 768, 4755, 1803, 18, 542, 1528, 12, 2890, 16186, 313, 2932, 4755, 6, 3719, 365, 18, 768, 4755, 1803, 18, 542, 4599, 1528, 12, 2890, 16186, 313, 2932, 10, 4755, 6, 3719, 365, 18, 768, 4755, 1803, 18, 542, 18019, 12, 2890, 16186, 313, 2932, 12418, 15, 55, 6, 3719, 365, 18, 768, 4755, 1463, 1803, 18, 542, 1528, 12, 2890, 16186, 313, 2932, 4755, 2970, 6, 3719, 365, 18, 768, 4755, 1463, 1803, 18, 542, 4599, 1528, 12, 2890, 16186, 313, 2932, 4755, 473, 1463, 7070, 3719, 365, 18, 768, 4755, 1463, 1803, 18, 542, 18019, 12, 53, 780, 18, 2011, 13, 365, 18, 768, 2040, 1803, 18, 542, 1528, 12, 2890, 16186, 313, 2932, 10, 2040, 7070, 3719, 365, 18, 768, 2040, 1803, 18, 542, 4599, 1528, 12, 2890, 16186, 313, 2932, 10, 2040, 7070, 3719, 365, 18, 768, 2040, 1803, 18, 542, 18019, 12, 2890, 16186, 313, 2932, 12418, 15, 45, 6, 3719, 365, 18, 768, 6767, 1803, 18, 542, 1528, 12, 2890, 16186, 313, 2932, 6767, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2653, 3043, 12, 2890, 4672, 365, 18, 542, 21158, 12, 2890, 16186, 313, 2932, 13569, 83, 28980, 654, 17, 21, 6, 3719, 365, 18, 768, 3678, 1803, 18, 542, 1528, 12, 2890, 16186, 313, 2932, 3678, 6, 3719, 365, 18, 768, 3678, 1803, 18, 542, 4599, 1528, 12, 2890, 16186, 313, 2932, 10, 3678, 7070, 3719, 365, 18, 768, 3678, 1803, 18, 542, 18019, 12, 2890, 16186, 313, 2932, 12418, 15, 51, 6, 3719, 365, 18, 768, 4755, 1803, 18, 542, 1528, 12, 2890, 16186, 313, 2932, 4755, 6, 3719, 365, 18, 768, 4755, 1803, 18, 542, 4599, 1528, 12, 2890, 16186, 313, 2932, 10, 4755, 6, 3719, 365, 18, 768, 4755, 1803, 18, 542, 18019, 12, 2890, 2 ]
self.whatsthis_btn = QToolButton(self.body_frame,"whatsthis_btn")
self.whatsthis_btn = QPushButton(self.body_frame,"whatsthis_btn") self.whatsthis_btn.setMaximumSize(QSize(40,32767))
def __init__(self,parent = None,name = None,modal = 0,fl = 0): QDialog.__init__(self,parent,name,modal,fl)
1f7092c169c3c14428b2af6b56699d1a00aff2fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/1f7092c169c3c14428b2af6b56699d1a00aff2fb/DnaGeneratorDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2938, 273, 599, 16, 529, 273, 599, 16, 17638, 273, 374, 16, 2242, 273, 374, 4672, 2238, 6353, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 17638, 16, 2242, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2938, 273, 599, 16, 529, 273, 599, 16, 17638, 273, 374, 16, 2242, 273, 374, 4672, 2238, 6353, 16186, 2738, 972, 12, 2890, 16, 2938, 16, 529, 16, 17638, 16, 2242, 13, 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, -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, -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 ]
"""Yield submodule names+loaders recursively, for path or sys.path"""
"""Yields (module_loader, name, ispkg) for all modules recursively on path, or, if path is None, all accessible modules. 'path' should be either None or a list of paths to look for modules in. 'prefix' is a string to output on the front of every module name on output. Note that this function must import all *packages* (NOT all modules!) on the given path, in order to access the __path__ attribute to find submodules. 'onerror' is a function which gets called with one argument (the name of the package which was being imported) if an ImportError occurs trying to import a package. By default the ImportError is caught and ignored. Examples: walk_packages() : list all modules python can access walk_packages(ctypes.__path__, ctypes.__name__+'.') : list all submodules of ctypes """
def walk_packages(path=None, prefix='', onerror=None): """Yield submodule names+loaders recursively, for path or sys.path""" def seen(p, m={}): if p in m: return True m[p] = True for importer, name, ispkg in iter_modules(path, prefix): yield importer, name, ispkg if ispkg: try: __import__(name) except ImportError: if onerror is not None: onerror() else: path = getattr(sys.modules[name], '__path__', None) or [] # don't traverse path items we've seen before path = [p for p in path if not seen(p)] for item in walk_packages(path, name+'.'): yield item
bd5eb1a60ecc3c0d20a9ea453053fa50ae173312 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/bd5eb1a60ecc3c0d20a9ea453053fa50ae173312/pkgutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5442, 67, 10308, 12, 803, 33, 7036, 16, 1633, 2218, 2187, 20991, 33, 7036, 4672, 3536, 16348, 87, 261, 2978, 67, 6714, 16, 508, 16, 353, 10657, 13, 364, 777, 4381, 8536, 603, 589, 16, 578, 16, 309, 589, 353, 599, 16, 777, 12718, 4381, 18, 225, 296, 803, 11, 1410, 506, 3344, 599, 578, 279, 666, 434, 2953, 358, 2324, 364, 4381, 316, 18, 225, 296, 3239, 11, 353, 279, 533, 358, 876, 603, 326, 6641, 434, 3614, 1605, 508, 603, 876, 18, 225, 3609, 716, 333, 445, 1297, 1930, 777, 380, 10308, 14, 261, 4400, 777, 4381, 24949, 603, 326, 864, 589, 16, 316, 1353, 358, 2006, 326, 1001, 803, 972, 1566, 358, 1104, 720, 6400, 18, 225, 296, 265, 1636, 11, 353, 279, 445, 1492, 5571, 2566, 598, 1245, 1237, 261, 5787, 508, 434, 326, 2181, 1492, 1703, 3832, 9101, 13, 309, 392, 11308, 9938, 8374, 358, 1930, 279, 2181, 18, 2525, 805, 326, 11308, 353, 13537, 471, 5455, 18, 225, 19830, 30, 5442, 67, 10308, 1435, 294, 666, 777, 4381, 5790, 848, 2006, 5442, 67, 10308, 12, 299, 989, 16186, 803, 972, 16, 6983, 16186, 529, 972, 6797, 1093, 13, 294, 666, 777, 720, 6400, 434, 6983, 3536, 225, 1652, 5881, 12, 84, 16, 312, 12938, 4672, 309, 293, 316, 312, 30, 327, 1053, 312, 63, 84, 65, 273, 1053, 225, 364, 15198, 16, 508, 16, 353, 10657, 316, 1400, 67, 6400, 12, 803, 16, 1633, 4672, 2824, 15198, 16, 508, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5442, 67, 10308, 12, 803, 33, 7036, 16, 1633, 2218, 2187, 20991, 33, 7036, 4672, 3536, 16348, 87, 261, 2978, 67, 6714, 16, 508, 16, 353, 10657, 13, 364, 777, 4381, 8536, 603, 589, 16, 578, 16, 309, 589, 353, 599, 16, 777, 12718, 4381, 18, 225, 296, 803, 11, 1410, 506, 3344, 599, 578, 279, 666, 434, 2953, 358, 2324, 364, 4381, 316, 18, 225, 296, 3239, 11, 353, 279, 533, 358, 876, 603, 326, 6641, 434, 3614, 1605, 508, 603, 876, 18, 225, 3609, 716, 333, 445, 1297, 1930, 777, 380, 10308, 14, 261, 4400, 777, 4381, 24949, 603, 326, 864, 589, 16, 316, 1353, 358, 2006, 326, 1001, 803, 972, 1566, 358, 1104, 720, 6400, 2 ]
for img in item.data.xpath('//h:img[@src]', namespace=XPNSMAP): href = item.abshref(img.get('src'))
for img in path(item.data): href = item.abshref(img.get('src'))
def remove_first_image(self): for i, item in enumerate(self.oeb.spine): if i > 2: break for img in item.data.xpath('//h:img[@src]', namespace=XPNSMAP): href = item.abshref(img.get('src')) image = self.oeb.manifest.hrefs.get(href, None) if image is not None: self.log('Removing first image', img.get('src')) self.oeb.manifest.remove(image) img.getparent().remove(img) return
f5fb4d9a6ce8c731328bb2da1d16ee8cedafa9ab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/f5fb4d9a6ce8c731328bb2da1d16ee8cedafa9ab/jacket.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 3645, 67, 2730, 12, 2890, 4672, 364, 277, 16, 761, 316, 4241, 12, 2890, 18, 15548, 70, 18, 1752, 558, 4672, 309, 277, 405, 576, 30, 898, 364, 3774, 316, 589, 12, 1726, 18, 892, 4672, 3897, 225, 273, 761, 18, 378, 674, 1734, 12, 6081, 18, 588, 2668, 4816, 26112, 1316, 273, 365, 18, 15548, 70, 18, 14357, 18, 7547, 87, 18, 588, 12, 7547, 16, 599, 13, 309, 1316, 353, 486, 599, 30, 365, 18, 1330, 2668, 18939, 1122, 1316, 2187, 3774, 18, 588, 2668, 4816, 26112, 365, 18, 15548, 70, 18, 14357, 18, 4479, 12, 2730, 13, 3774, 18,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1206, 67, 3645, 67, 2730, 12, 2890, 4672, 364, 277, 16, 761, 316, 4241, 12, 2890, 18, 15548, 70, 18, 1752, 558, 4672, 309, 277, 405, 576, 30, 898, 364, 3774, 316, 589, 12, 1726, 18, 892, 4672, 3897, 225, 273, 761, 18, 378, 674, 1734, 12, 6081, 18, 588, 2668, 4816, 26112, 1316, 273, 365, 18, 15548, 70, 18, 14357, 18, 7547, 87, 18, 588, 12, 7547, 16, 599, 13, 309, 1316, 353, 486, 599, 30, 365, 18, 1330, 2668, 18939, 1122, 1316, 2187, 3774, 18, 588, 2668, 4816, 26112, 365, 18, 15548, 70, 18, 14357, 18, 4479, 12, 2730, 13, 3774, 18, 588, 2938, 7675, 4479, 12, 6081, 13, 327, 2, -100, -100, -100, -100, -100, -100 ]
self.statuses = config.get('plugins', self.c_statuses)
self.statuses = config.get('plugins', self.c_statuses).split()
def __init__(self): try: self.accounts = config.get('plugins', self.c_accounts).split() except: self.accounts = [] config.set('plugins', self.c_accounts, '')
24a5de3faaf31e123f1b96a3a84045348d8831fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4764/24a5de3faaf31e123f1b96a3a84045348d8831fd/gajim_status.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 775, 30, 365, 18, 13739, 273, 642, 18, 588, 2668, 8057, 2187, 365, 18, 71, 67, 13739, 2934, 4939, 1435, 1335, 30, 365, 18, 13739, 273, 5378, 642, 18, 542, 2668, 8057, 2187, 365, 18, 71, 67, 13739, 16, 28707, 2, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 775, 30, 365, 18, 13739, 273, 642, 18, 588, 2668, 8057, 2187, 365, 18, 71, 67, 13739, 2934, 4939, 1435, 1335, 30, 365, 18, 13739, 273, 5378, 642, 18, 542, 2668, 8057, 2187, 365, 18, 71, 67, 13739, 16, 28707, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for (vbo, data, length) in self._vbos:
for surface in self._vbos: vbo = surface.update length = surface.important
def paint(self): """ For all of the known terrain, render whatever faces are exposed. """ if self._texture is None: self._texture = self._createTexture()
2b8b4943e45ecd5955a03d25ad6e104987bd13ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6742/2b8b4943e45ecd5955a03d25ad6e104987bd13ca/view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12574, 12, 2890, 4672, 3536, 2457, 777, 434, 326, 4846, 19272,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 12574, 12, 2890, 4672, 3536, 2457, 777, 434, 326, 4846, 19272, 7596, 16, 1743, 15098, 11058, 854, 16265, 18, 3536, 309, 365, 6315, 955, 594, 353, 599, 30, 365, 6315, 955, 594, 273, 365, 6315, 2640, 10967, 1435, 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, -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, -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 ]
return make_uid(obj)
try: return make_uid(obj, make_uid(obj_parent), obj_name) except: pass
def findUID(name, container, docmap=None): """ Attempt to find the UID for the object that can be accessed with the name C{name} from the module C{module}. @param name: The name used to identify the object. @type name: C{string} @param container: The UID of the class or module containing the object. @type container: L{UID} @param docmap: A documentation map, which is used to check if C{name} is the name of a module variable, class variable, or instance variable. @type docmap: L{objdoc.DocMap} @return: The UID for the object that can be accessed with the name C{name} from the module C{module}; or C{None} if no object was found. @rtype: L{UID} or C{None} """ if container is None: return None if not (container.is_module() or container.is_class()): raise ValueError('Bad container %r' % container) # Is it the short name for a member of the containing class? if container.is_class(): if _is_variable_in(name, container, docmap): val = None # it may not be a real object return make_uid(val, container, name) elif container.value().__dict__.has_key(name): cls = container.value() obj = cls.__dict__[name] if type(obj) is _FunctionType: return make_uid(new.instancemethod(obj, None, cls)) else: return make_uid(obj) else: container = container.module() module = container.value() components = name.split('.') # Is it a variable in the containing module? if _is_variable_in(name, container, docmap): val = None # it may not be a real object return make_uid(val, container, name) # Is it an object in the containing module? try: obj = module for component in components: try: obj = obj.__dict__[component] except: raise KeyError() return make_uid(obj) except KeyError: pass # Is it a module name? The module name may be relative to the # containing module, or any of its ancestors. modcomponents = container.name().split('.') for i in range(len(modcomponents)-1, -1, -1): try: modname = '.'.join(modcomponents[:i]+[name]) return(make_uid(import_module(modname))) except: pass # Is it an object in a module? The module part of the name may be # relative to the containing module, or any of its ancestors. modcomponents = container.name().split('.') for i in range(len(modcomponents)-1, -1, -1): for j in range(len(components)-1, 0, -1): try: modname = '.'.join(modcomponents[:i]+components[:j]) objname = '.'.join(components[j:]) mod = import_module(modname) if _is_variable_in(name, make_uid(mod), docmap): val = None # it may not be a real object return make_uid(val, container, name) obj = getattr(import_module(modname), objname) return make_uid(obj) except: pass # We couldn't find it; return None. return None
bc6fdb1f7c2fbb84eaa1f05b7b62cee151e2b503 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/bc6fdb1f7c2fbb84eaa1f05b7b62cee151e2b503/uid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 3060, 12, 529, 16, 1478, 16, 997, 1458, 33, 7036, 4672, 3536, 12864, 358, 1104, 326, 10034, 364, 326, 733, 716, 848, 506, 15539, 598, 326, 508, 385, 95, 529, 97, 628, 326, 1605, 385, 95, 2978, 5496, 225, 632, 891, 508, 30, 1021, 508, 1399, 358, 9786, 326, 733, 18, 632, 723, 508, 30, 385, 95, 1080, 97, 632, 891, 1478, 30, 1021, 10034, 434, 326, 667, 578, 1605, 4191, 326, 733, 18, 632, 723, 1478, 30, 511, 95, 3060, 97, 632, 891, 997, 1458, 30, 432, 7323, 852, 16, 1492, 353, 1399, 358, 866, 309, 385, 95, 529, 97, 353, 326, 508, 434, 279, 1605, 2190, 16, 667, 2190, 16, 578, 791, 2190, 18, 632, 723, 997, 1458, 30, 511, 95, 2603, 2434, 18, 1759, 863, 97, 632, 2463, 30, 1021, 10034, 364, 326, 733, 716, 848, 506, 15539, 598, 326, 508, 385, 95, 529, 97, 628, 326, 1605, 385, 95, 2978, 20451, 578, 385, 95, 7036, 97, 309, 1158, 733, 1703, 1392, 18, 632, 86, 723, 30, 511, 95, 3060, 97, 578, 385, 95, 7036, 97, 3536, 309, 1478, 353, 599, 30, 327, 599, 309, 486, 261, 3782, 18, 291, 67, 2978, 1435, 578, 1478, 18, 291, 67, 1106, 1435, 4672, 1002, 2068, 2668, 6434, 1478, 738, 86, 11, 738, 1478, 13, 225, 468, 2585, 518, 326, 3025, 508, 364, 279, 3140, 434, 326, 4191, 667, 35, 309, 1478, 18, 291, 67, 1106, 13332, 309, 389, 291, 67, 6105, 67, 267, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 3060, 12, 529, 16, 1478, 16, 997, 1458, 33, 7036, 4672, 3536, 12864, 358, 1104, 326, 10034, 364, 326, 733, 716, 848, 506, 15539, 598, 326, 508, 385, 95, 529, 97, 628, 326, 1605, 385, 95, 2978, 5496, 225, 632, 891, 508, 30, 1021, 508, 1399, 358, 9786, 326, 733, 18, 632, 723, 508, 30, 385, 95, 1080, 97, 632, 891, 1478, 30, 1021, 10034, 434, 326, 667, 578, 1605, 4191, 326, 733, 18, 632, 723, 1478, 30, 511, 95, 3060, 97, 632, 891, 997, 1458, 30, 432, 7323, 852, 16, 1492, 353, 1399, 358, 866, 309, 385, 95, 529, 97, 353, 326, 508, 434, 279, 1605, 2190, 16, 667, 2190, 16, 578, 791, 2190, 18, 632, 2 ]
def is_possible(self, number):
def is_legal(self, number): if((self.cursqre[0] == None) or (self.cursqre[1] == None)): return
def is_possible(self, number):
0a0e4f57e86817b5ed43489a7c227ec1593d0921 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/0a0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 12708, 12, 2890, 16, 1300, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, -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, -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, -100, -100 ]
else
else:
def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 762) else quickfix.StringField.__init__(self, 762, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 2371, 8898, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 2371, 8898, 16, 501, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 892, 273, 599, 13, 309, 501, 422, 599, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 2371, 8898, 13, 469, 30, 9549, 904, 18, 780, 974, 16186, 2738, 972, 12, 2890, 16, 2371, 8898, 16, 501, 13, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
success = S.interrupt(INTERRUPT_TRIES, timeout=0.3, quit_on_fail=False)
success = S.interrupt(INTERRUPT_TRIES, quit_on_fail=False)
def interrupt(self): """ Interrupt all currently queued up calculations.
c81c01df0258310c7766b76faf4614132793dfb7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/c81c01df0258310c7766b76faf4614132793dfb7/worksheet.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13123, 12, 2890, 4672, 3536, 3094, 4483, 777, 4551, 12234, 731, 20882, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13123, 12, 2890, 4672, 3536, 3094, 4483, 777, 4551, 12234, 731, 20882, 18, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
metaio.StripTableName(SnglInspiralTable.tableName): SnglInspiralIDs,
def __init__(self, n = 0): ILWD.__init__(self, "ligolw_mon", "event_id", n)
1c8ee0a75a4bfb8d06bdf83f82720a91911aa701 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/1c8ee0a75a4bfb8d06bdf83f82720a91911aa701/lsctables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 290, 273, 374, 4672, 467, 48, 16006, 16186, 2738, 972, 12, 2890, 16, 315, 80, 360, 355, 91, 67, 2586, 3113, 315, 2575, 67, 350, 3113, 290, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 290, 273, 374, 4672, 467, 48, 16006, 16186, 2738, 972, 12, 2890, 16, 315, 80, 360, 355, 91, 67, 2586, 3113, 315, 2575, 67, 350, 3113, 290, 13, 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, -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, -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, -100, -100, -100 ]
copyfile(gp.oldpath, gp.path)
src, dst = [util.canonpath(cwd, cwd, x) for x in [gp.oldpath, gp.path]] copyfile(src, dst)
def closefile(): if not current_file: return 0 current_file.close() if rejmerge: rejmerge(current_file) return len(current_file.rej)
eff24b7c0b9f1720f9a75d109bf2354da1a89f37 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/eff24b7c0b9f1720f9a75d109bf2354da1a89f37/patch.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 768, 13332, 309, 486, 783, 67, 768, 30, 327, 374, 783, 67, 768, 18, 4412, 1435, 309, 283, 78, 2702, 30, 283, 78, 2702, 12, 2972, 67, 768, 13, 327, 562, 12, 2972, 67, 768, 18, 266, 78, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 327, 374, 783, 67, 768, 18, 4412, 1435, 309, 283, 78, 2702, 30, 283, 78, 2702, 12, 2972, 67, 768, 13, 327, 562, 12, 2972, 67, 768, 18, 266, 78, 13, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try: if 'cpus' in cfg and type(cfg['cpus']) != list: cpus = [] for c in cfg['cpus'].split(','): if c.find('-') != -1: (x, y) = c.split('-') for i in range(int(x), int(y)+1): cpus.append(int(i)) else: if c[0] == '^': cpus = [x for x in cpus if x != int(c[1:])]
if 'cpus' in cfg: cpus = [] if type(cfg['cpus']) == list: try: for c in cfg['cpus']: cpus.append(int(c)) cfg['cpus'] = cpus except ValueError, e: raise XendConfigError('cpus = %s: %s' % (cfg['cpus'], e)) else: try: for c in cfg['cpus'].split(','): if c.find('-') != -1: (x, y) = c.split('-') for i in range(int(x), int(y)+1): cpus.append(int(i))
def _parse_sxp(self, sxp_cfg): """ Populate this XendConfig using the parsed SXP.
08ed26a8af7ca6fe5e8d209f39b551732f46ebac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/08ed26a8af7ca6fe5e8d209f39b551732f46ebac/XendConfig.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 87, 23829, 12, 2890, 16, 13280, 84, 67, 7066, 4672, 3536, 22254, 333, 1139, 409, 809, 1450, 326, 2707, 348, 60, 52, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2670, 67, 87, 23829, 12, 2890, 16, 13280, 84, 67, 7066, 4672, 3536, 22254, 333, 1139, 409, 809, 1450, 326, 2707, 348, 60, 52, 18, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Committer("Tony Chang", "tony@chromium.org", "tony^work"),
def __init__(self, name, email_or_emails, irc_nickname=None): Committer.__init__(self, name, email_or_emails, irc_nickname) self.can_review = True
c7e150ab49e6130bd4cd8270970f4f8649dbcf61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/c7e150ab49e6130bd4cd8270970f4f8649dbcf61/committers.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 508, 16, 2699, 67, 280, 67, 22762, 16, 277, 1310, 67, 17091, 529, 33, 7036, 4672, 10269, 387, 16186, 2738, 972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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 508, 16, 2699, 67, 280, 67, 22762, 16, 277, 1310, 67, 17091, 529, 33, 7036, 4672, 10269, 387, 16186, 2738, 972, 12, 2890, 16, 508, 16, 2699, 67, 280, 67, 22762, 16, 277, 1310, 67, 17091, 529, 13, 365, 18, 4169, 67, 16041, 273, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if session.connection(Recipe).execute(recipe_table.update(
elif session.connection(Recipe).execute(recipe_table.update(
def queued_recipes(*args): working = SystemStatus.by_name(u'Working') recipes = Recipe.query()\ .join('status')\ .join('systems')\ .join(['recipeset','priority'])\ .filter( or_( and_(Recipe.status==TaskStatus.by_name(u'Queued'), System.user==None, System.status==working, RecipeSet.lab_controller==None ), and_(Recipe.status==TaskStatus.by_name(u'Queued'), System.user==None, System.status==working, RecipeSet.lab_controller_id==System.lab_controller_id ) ) ) # Order recipes by priority. # FIXME Add secondary order by number of matched systems. if True: recipes = recipes.order_by(TaskPriority.id.desc()) if not recipes.count(): return False log.debug("Entering queued_recipes routine") for recipe in recipes: session.begin() try: systems = recipe.dyn_systems.filter(and_(System.user==None, System.status==working)) # Order systems by owner, then Group, finally shared for everyone. # FIXME Make this configurable, so that a user can specify their scheduling # preference from the job. # <recipe><scheduler method='random|fair|owner|group'/></recipe> if True: user = recipe.recipeset.job.owner systems = systems.order_by(case([(System.owner==user, 1), (System.owner!=user and Group.systems==None, 2)], else_=3)) if recipe.recipeset.lab_controller: # First recipe of a recipeSet determines the lab_controller systems = systems.filter( System.lab_controller==recipe.recipeset.lab_controller ) system = systems.first() if system: log.debug("System : %s is available for Recipe %s" % (system, recipe.id)) # Check to see if user still has proper permissions to use system # Remember the mapping of available systems could have happend hours or even # days ago and groups or loans could have been put in place since. if not System.free(user).filter(System.fqdn == system).first(): log.debug("System : %s recipe: %s no longer has access. removing" % (system, recipe.id)) recipe.systems.remove(system) # Atomic operation to put recipe in Scheduled state if session.connection(Recipe).execute(recipe_table.update( and_(recipe_table.c.id==recipe.id, recipe_table.c.status_id==TaskStatus.by_name(u'Queued').id)), status_id=TaskStatus.by_name(u'Scheduled').id).rowcount == 1: recipe.createRepo() # Even though the above put the recipe in the "Scheduled" state # it did not execute the update_status method. recipe.schedule() # Atomic operation to reserve the system if session.connection(Recipe).execute(system_table.update( and_(system_table.c.id==system.id, system_table.c.user_id==None)), user_id=recipe.recipeset.job.owner.user_id).rowcount == 1: recipe.system = system recipe.recipeset.lab_controller = system.lab_controller recipe.systems = [] # Create the watchdog without an Expire time. log.debug("Created watchdog for recipe id: %s and system: %s" % (recipe.id, system)) recipe.watchdog = Watchdog(system=recipe.system) activity = SystemActivity(recipe.recipeset.job.owner, "Scheduler", "Reserved", "User", "", "%s" % recipe.recipeset.job.owner ) system.activity.append(activity) log.info("recipe ID %s moved from Queued to Scheduled" % recipe.id) else: # The system was taken from underneath us. Put recipe # back into queued state and try again. raise BX(_('System %s was stolen from underneath us. will try again.' % system)) else: #Some other thread beat us. Skip this recipe now. # Depending on scheduler load it should be safe to run multiple # Queued processes.. Also, systems that we don't directly # control, for example, systems at a remote location that can # pull jobs but not have any pushed onto them. These systems # could take a recipe and put it in running state. Not sure how # to deal with multi-host jobs at remote locations. May need to # enforce single recipes for remote execution. pass session.commit() except exceptions.Exception, e: session.rollback() log.error("Failed to commit due to :%s" % e) session.close() log.debug("Exiting queued_recipes routine") return True
7f33ab29e7eac9ff60c1dd919a70844527be92ea /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/7f33ab29e7eac9ff60c1dd919a70844527be92ea/beakerd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12234, 67, 266, 3449, 281, 30857, 1968, 4672, 5960, 273, 2332, 1482, 18, 1637, 67, 529, 12, 89, 11, 14836, 6134, 5863, 281, 273, 7776, 3151, 18, 2271, 1435, 64, 263, 5701, 2668, 2327, 11, 5153, 263, 5701, 2668, 4299, 87, 11, 5153, 263, 5701, 12, 3292, 266, 3449, 281, 278, 17023, 8457, 3546, 5153, 263, 2188, 12, 578, 67, 12, 471, 67, 12, 5650, 3151, 18, 2327, 631, 2174, 1482, 18, 1637, 67, 529, 12, 89, 11, 21039, 19899, 2332, 18, 1355, 631, 7036, 16, 2332, 18, 2327, 631, 20478, 16, 7776, 3151, 694, 18, 7411, 67, 5723, 631, 7036, 262, 16, 471, 67, 12, 5650, 3151, 18, 2327, 631, 2174, 1482, 18, 1637, 67, 529, 12, 89, 11, 21039, 19899, 2332, 18, 1355, 631, 7036, 16, 2332, 18, 2327, 631, 20478, 16, 7776, 3151, 694, 18, 7411, 67, 5723, 67, 350, 631, 3163, 18, 7411, 67, 5723, 67, 350, 262, 262, 262, 468, 4347, 5863, 281, 635, 4394, 18, 468, 9852, 1436, 9946, 1353, 635, 1300, 434, 4847, 14908, 18, 309, 1053, 30, 5863, 281, 273, 5863, 281, 18, 1019, 67, 1637, 12, 2174, 8183, 18, 350, 18, 5569, 10756, 309, 486, 5863, 281, 18, 1883, 13332, 327, 1083, 613, 18, 4148, 2932, 10237, 310, 12234, 67, 266, 3449, 281, 12245, 7923, 364, 16100, 316, 5863, 281, 30, 1339, 18, 10086, 1435, 775, 30, 14908, 273, 16100, 18, 28595, 67, 4299, 87, 18, 2188, 12, 464, 67, 12, 3163, 18, 1355, 631, 7036, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12234, 67, 266, 3449, 281, 30857, 1968, 4672, 5960, 273, 2332, 1482, 18, 1637, 67, 529, 12, 89, 11, 14836, 6134, 5863, 281, 273, 7776, 3151, 18, 2271, 1435, 64, 263, 5701, 2668, 2327, 11, 5153, 263, 5701, 2668, 4299, 87, 11, 5153, 263, 5701, 12, 3292, 266, 3449, 281, 278, 17023, 8457, 3546, 5153, 263, 2188, 12, 578, 67, 12, 471, 67, 12, 5650, 3151, 18, 2327, 631, 2174, 1482, 18, 1637, 67, 529, 12, 89, 11, 21039, 19899, 2332, 18, 1355, 631, 7036, 16, 2332, 18, 2327, 631, 20478, 16, 7776, 3151, 694, 18, 7411, 67, 5723, 631, 7036, 262, 16, 471, 67, 12, 5650, 3151, 18, 2327, 631, 2174, 1482, 18, 1637, 67, 529, 12, 2 ]
yield ('csv', _('Comma-delimited Text'), 'csv',
yield ('csv', _("Comma-delimited Text"), 'csv',
def get_supported_conversions(self): yield ('csv', _('Comma-delimited Text'), 'csv', 'trac.ticket.Ticket', 'text/csv', 8) yield ('tab', _('Tab-delimited Text'), 'tsv', 'trac.ticket.Ticket', 'text/tab-separated-values', 8) yield ('rss', _('RSS Feed'), 'xml', 'trac.ticket.Ticket', 'application/rss+xml', 8)
a8a6442302dc21bfc63206a71113b0375cb3c946 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/a8a6442302dc21bfc63206a71113b0375cb3c946/web_ui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 4127, 67, 591, 10169, 12, 2890, 4672, 2824, 7707, 6715, 2187, 389, 2932, 15594, 17, 3771, 1038, 329, 3867, 6, 3631, 296, 6715, 2187, 296, 313, 1077, 18, 16282, 18, 13614, 2187, 296, 955, 19, 6715, 2187, 1725, 13, 2824, 7707, 7032, 2187, 389, 2668, 5661, 17, 3771, 1038, 329, 3867, 19899, 296, 25338, 2187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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4127, 67, 591, 10169, 12, 2890, 4672, 2824, 7707, 6715, 2187, 389, 2932, 15594, 17, 3771, 1038, 329, 3867, 6, 3631, 296, 6715, 2187, 296, 313, 1077, 18, 16282, 18, 13614, 2187, 296, 955, 19, 6715, 2187, 1725, 13, 2824, 7707, 7032, 2187, 389, 2668, 5661, 17, 3771, 1038, 329, 3867, 19899, 296, 25338, 2187, 296, 313, 1077, 18, 16282, 18, 13614, 2187, 296, 955, 19, 7032, 17, 24622, 17, 2372, 2187, 1725, 13, 2824, 7707, 25151, 2187, 389, 2668, 31211, 14013, 19899, 296, 2902, 2187, 296, 313, 1077, 18, 16282, 18, 13614, 2187, 296, 3685, 19, 25151, 15, 2902, 2187, 1725, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.revision and self.root:
if self.revision and self.clean_root:
def GetFilename(self): file = self.file if self.revision and self.root: if self.srcdir: # strip the base path off # but we actually want the last dir in srcdir file = os.path.normpath(file) # the lower() is to handle win32+vc8, where # the source filenames come out all lowercase, # but the srcdir can be mixed case if file.lower().startswith(self.srcdir.lower()): file = file[len(self.srcdir):] (head, tail) = os.path.split(self.srcdir) if tail == "": tail = os.path.basename(head) file = tail + file return "cvs:%s:%s:%s" % (self.root, file, self.revision) return file
237293f2635f411eb4f2d7a1758b1b6b20490cb7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/237293f2635f411eb4f2d7a1758b1b6b20490cb7/symbolstore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 5359, 12, 2890, 4672, 585, 273, 365, 18, 768, 309, 365, 18, 13057, 471, 365, 18, 6200, 67, 3085, 30, 309, 365, 18, 4816, 1214, 30, 468, 2569, 326, 1026, 589, 3397, 468, 1496, 732, 6013, 2545, 326, 1142, 1577, 316, 1705, 1214, 585, 273, 1140, 18, 803, 18, 7959, 803, 12, 768, 13, 468, 326, 2612, 1435, 353, 358, 1640, 5657, 1578, 15, 4227, 28, 16, 1625, 468, 326, 1084, 9066, 12404, 596, 777, 12400, 16, 468, 1496, 326, 1705, 1214, 848, 506, 7826, 648, 309, 585, 18, 8167, 7675, 17514, 1918, 12, 2890, 18, 4816, 1214, 18, 8167, 1435, 4672, 585, 273, 585, 63, 1897, 12, 2890, 18, 4816, 1214, 4672, 65, 261, 1978, 16, 5798, 13, 273, 1140, 18, 803, 18, 4939, 12, 2890, 18, 4816, 1214, 13, 309, 5798, 422, 1408, 30, 5798, 273, 1140, 18, 803, 18, 13909, 12, 1978, 13, 585, 273, 5798, 397, 585, 327, 315, 71, 6904, 5319, 87, 5319, 87, 5319, 87, 6, 738, 261, 2890, 18, 3085, 16, 585, 16, 365, 18, 13057, 13, 327, 585, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 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, 968, 5359, 12, 2890, 4672, 585, 273, 365, 18, 768, 309, 365, 18, 13057, 471, 365, 18, 6200, 67, 3085, 30, 309, 365, 18, 4816, 1214, 30, 468, 2569, 326, 1026, 589, 3397, 468, 1496, 732, 6013, 2545, 326, 1142, 1577, 316, 1705, 1214, 585, 273, 1140, 18, 803, 18, 7959, 803, 12, 768, 13, 468, 326, 2612, 1435, 353, 358, 1640, 5657, 1578, 15, 4227, 28, 16, 1625, 468, 326, 1084, 9066, 12404, 596, 777, 12400, 16, 468, 1496, 326, 1705, 1214, 848, 506, 7826, 648, 309, 585, 18, 8167, 7675, 17514, 1918, 12, 2890, 18, 4816, 1214, 18, 8167, 1435, 4672, 585, 273, 585, 63, 1897, 12, 2890, 18, 4816, 1214, 4672, 65, 261, 1978, 16, 2 ]
print "Group order now ",n1*n2,"=",n1,"*",n2
print "Subgroup order now ",n1*n2,"=",n1,"*",n2 if not group_order_known: M = n1*n2 c1 = (upper/M).floor() if c1 == (lower/M).ceil(): group_order_known = True lower = upper = N = c1*M if debug: print "Group order now determined to be ",N
def abelian_group(self, debug=False): r""" Returns the abelian group structure of the group of points on this elliptic curve.
7e0308bfa96d392f0529a28f30a5ec4774dcfbb8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7e0308bfa96d392f0529a28f30a5ec4774dcfbb8/ell_finite_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1223, 292, 2779, 67, 1655, 12, 2890, 16, 1198, 33, 8381, 4672, 436, 8395, 2860, 326, 1223, 292, 2779, 1041, 3695, 434, 326, 1041, 434, 3143, 603, 333, 415, 549, 21507, 8882, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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890, 16, 1198, 33, 8381, 4672, 436, 8395, 2860, 326, 1223, 292, 2779, 1041, 3695, 434, 326, 1041, 434, 3143, 603, 333, 415, 549, 21507, 8882, 18, 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, -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, -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, -100, -100, -100, -100 ]
data['url'] = '%s/%s' % (config['base_url'], data['pi_bl'])
data['url'] = '%s%s' % (config['base_url'], data['pi_bl'])
def blosxom_process_path_info(args): """ Process HTTP PATH_INFO for URI according to path specifications, fill in data dict accordingly The paths specification looks like this: - C{/foo.html} and C{/cat/foo.html} - file foo.* in / and /cat - C{/cat} - category - C{/2002} - year - C{/2002/Feb} (or 02) - Year and Month - C{/cat/2002/Feb/31} - year and month day in category. To simplify checking, four digits directory name is not allowed. @param args: dict containing the incoming Request object @type args: L{Pyblosxom.pyblosxom.Request} """ request = args['request'] config = request.getConfiguration() data = request.getData() pyhttp = request.getHttp() logger = tools.getLogger() form = request.getForm() # figure out which flavour to use. the flavour is determined # by looking at the "flav" post-data variable, the "flav" # query string variable, the "default_flavour" setting in the # config.py file, or "html" flav = config.get("default_flavour", "html") if form.has_key("flav"): flav = form["flav"].value data['flavour'] = flav data['pi_yr'] = '' data['pi_mo'] = '' data['pi_da'] = '' path_info = pyhttp.get("PATH_INFO", "") data['path_info'] = path_info data['root_datadir'] = config['datadir'] data["pi_bl"] = path_info # first we check to see if this is a request for an index and we can pluck # the extension (which is certainly a flavour) right off. newpath, ext = os.path.splitext(path_info) if newpath.endswith("/index") and ext: # there is a flavour-like thing, so that's our new flavour # and we adjust the path_info to the new filename data["flavour"] = ext[1:] path_info = newpath if path_info.startswith("/"): path_info = path_info[1:] absolute_path = os.path.join(config["datadir"], path_info) if os.path.isdir(absolute_path): # this is an absolute path data['root_datadir'] = absolute_path data['bl_type'] = 'dir' elif absolute_path.endswith("/index") and \ os.path.isdir(absolute_path[:-6]): # this is an absolute path with /index at the end of it data['root_datadir'] = absolute_path[:-6] data['bl_type'] = 'dir' else: # this is either a file or a date ext = tools.what_ext(data["extensions"].keys(), absolute_path) if not ext: # it's possible we didn't find the file because it's got a flavour # thing at the end--so try removing it and checking again. newpath, flav = os.path.splitext(absolute_path) if flav: ext = tools.what_ext(data["extensions"].keys(), newpath) if ext: # there is a flavour-like thing, so that's our new flavour # and we adjust the absolute_path and path_info to the new # filename data["flavour"] = flav[1:] absolute_path = newpath path_info, flav = os.path.splitext(path_info) if ext: # this is a file data["bl_type"] = "file" data["root_datadir"] = absolute_path + "." + ext else: data["bl_type"] = "dir" path_info = path_info.split("/") # it's possible to have category/category/year/month/day # (or something like that) so we pluck off the categories # here. pi_bl = "" while len(path_info) > 0 and \ not (len(path_info[0]) == 4 and path_info[0].isdigit()): pi_bl = os.path.join(pi_bl, path_info.pop(0)) # handle the case where we do in fact have a category # preceeding the date. if pi_bl: data["pi_bl"] = pi_bl data["root_datadir"] = os.path.join(config["datadir"], pi_bl) if len(path_info) > 0: item = path_info.pop(0) # handle a year token if len(item) == 4 and item.isdigit(): data['pi_yr'] = item item = "" if (len(path_info) > 0): item = path_info.pop(0) # handle a month token if item in tools.MONTHS: data['pi_mo'] = item item = "" if (len(path_info) > 0): item = path_info.pop(0) # handle a day token if len(item) == 2 and item.isdigit(): data["pi_da"] = item item = "" if len(path_info) > 0: item = path_info.pop(0) # if the last item we picked up was "index", then we # just ditch it because we don't need it. if item == "index": item = "" # if we picked off an item we don't recognize and/or # there is still stuff in path_info to pluck out, then # it's likely this wasn't a date. if item or len(path_info) > 0: data["bl_type"] = "dir" data["root_datadir"] = absolute_path # figure out the blog_title_with_path data variable blog_title = config["blog_title"] if data['pi_bl'] != '': data['blog_title_with_path'] = '%s : %s' % (blog_title, data['pi_bl']) else: data['blog_title_with_path'] = blog_title # construct our final URL data['url'] = '%s/%s' % (config['base_url'], data['pi_bl'])
9bacc6df036b3644a3a45aa76336cda9dae6cbc2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11836/9bacc6df036b3644a3a45aa76336cda9dae6cbc2/pyblosxom.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 383, 30319, 362, 67, 2567, 67, 803, 67, 1376, 12, 1968, 4672, 3536, 4389, 2239, 7767, 67, 5923, 364, 3699, 4888, 358, 589, 21950, 16, 3636, 316, 501, 2065, 15905, 225, 1021, 2953, 7490, 10192, 3007, 333, 30, 300, 385, 95, 19, 11351, 18, 2620, 97, 471, 385, 95, 19, 2574, 19, 11351, 18, 2620, 97, 300, 585, 8431, 4509, 316, 342, 471, 342, 2574, 300, 385, 95, 19, 2574, 97, 300, 3150, 300, 385, 95, 19, 6976, 22, 97, 300, 3286, 300, 385, 95, 19, 6976, 22, 19, 2954, 70, 97, 261, 280, 17896, 13, 300, 16666, 471, 10337, 300, 385, 95, 19, 2574, 19, 6976, 22, 19, 2954, 70, 19, 6938, 97, 300, 3286, 471, 3138, 2548, 316, 3150, 18, 2974, 16499, 6728, 16, 12792, 6815, 1867, 508, 353, 486, 2935, 18, 225, 632, 891, 833, 30, 2065, 4191, 326, 6935, 1567, 733, 632, 723, 833, 30, 511, 95, 9413, 70, 383, 30319, 362, 18, 2074, 70, 383, 30319, 362, 18, 691, 97, 3536, 590, 273, 833, 3292, 2293, 3546, 642, 273, 590, 18, 588, 1750, 1435, 501, 273, 590, 18, 588, 751, 1435, 2395, 2505, 273, 590, 18, 588, 2940, 1435, 225, 1194, 273, 8513, 18, 588, 3328, 1435, 225, 646, 273, 590, 18, 588, 1204, 1435, 225, 468, 7837, 596, 1492, 31227, 477, 358, 999, 18, 225, 326, 31227, 477, 353, 11383, 468, 635, 7849, 622, 326, 315, 2242, 842, 6, 1603, 17, 892, 2190, 16, 326, 315, 2242, 842, 6, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 324, 383, 30319, 362, 67, 2567, 67, 803, 67, 1376, 12, 1968, 4672, 3536, 4389, 2239, 7767, 67, 5923, 364, 3699, 4888, 358, 589, 21950, 16, 3636, 316, 501, 2065, 15905, 225, 1021, 2953, 7490, 10192, 3007, 333, 30, 300, 385, 95, 19, 11351, 18, 2620, 97, 471, 385, 95, 19, 2574, 19, 11351, 18, 2620, 97, 300, 585, 8431, 4509, 316, 342, 471, 342, 2574, 300, 385, 95, 19, 2574, 97, 300, 3150, 300, 385, 95, 19, 6976, 22, 97, 300, 3286, 300, 385, 95, 19, 6976, 22, 19, 2954, 70, 97, 261, 280, 17896, 13, 300, 16666, 471, 10337, 300, 385, 95, 19, 2574, 19, 6976, 22, 19, 2954, 70, 19, 6938, 97, 300, 3286, 471, 2 ]
if other.label:
if other.label and other.id != other.label:
def copyAttributes(self, other): if other.xy: self.xy = other.xy if other.label: self.label = other.label if other.color: self.color = other.color if other.style: self.style = other.style if other.numbered: self.numbered = other.numbered if other.background: self.background = other.background if other.description: self.description = other.description if other.width: self.width = other.width if other.height: self.height = other.height
d2af7c8c5277402e1368bc9b0c85dfbeb117c201 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/81/d2af7c8c5277402e1368bc9b0c85dfbeb117c201/blockdiag.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 2498, 12, 2890, 16, 1308, 4672, 309, 1308, 18, 1698, 30, 365, 18, 1698, 273, 1308, 18, 1698, 309, 1308, 18, 1925, 471, 1308, 18, 350, 480, 1308, 18, 1925, 30, 365, 18, 1925, 273, 1308, 18, 1925, 309, 1308, 18, 3266, 30, 365, 18, 3266, 273, 1308, 18, 3266, 309, 1308, 18, 4060, 30, 365, 18, 4060, 273, 1308, 18, 4060, 309, 1308, 18, 2696, 329, 30, 365, 18, 2696, 329, 273, 1308, 18, 2696, 329, 309, 1308, 18, 9342, 30, 365, 18, 9342, 273, 1308, 18, 9342, 309, 1308, 18, 3384, 30, 365, 18, 3384, 273, 1308, 18, 3384, 309, 1308, 18, 2819, 30, 365, 18, 2819, 273, 1308, 18, 2819, 309, 1308, 18, 4210, 30, 365, 18, 4210, 273, 1308, 18, 4210, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 2498, 12, 2890, 16, 1308, 4672, 309, 1308, 18, 1698, 30, 365, 18, 1698, 273, 1308, 18, 1698, 309, 1308, 18, 1925, 471, 1308, 18, 350, 480, 1308, 18, 1925, 30, 365, 18, 1925, 273, 1308, 18, 1925, 309, 1308, 18, 3266, 30, 365, 18, 3266, 273, 1308, 18, 3266, 309, 1308, 18, 4060, 30, 365, 18, 4060, 273, 1308, 18, 4060, 309, 1308, 18, 2696, 329, 30, 365, 18, 2696, 329, 273, 1308, 18, 2696, 329, 309, 1308, 18, 9342, 30, 365, 18, 9342, 273, 1308, 18, 9342, 309, 1308, 18, 3384, 30, 365, 18, 3384, 273, 1308, 18, 3384, 309, 1308, 18, 2819, 30, 365, 18, 2819, 273, 1308, 18, 2819, 309, 1308, 18, 4210, 2 ]
name, round(self.scale,2)))
name, round(scale,2)))
def LibraryCall(self): # 63 (off,a,b,c,d)=unpack('<hIIII', self.bgl.read(18)) name="%08x%08x%08x%08x" % (a,b,c,d) if name in self.output.friendly: friendly=self.output.friendly[name] elif name in self.output.stock: friendly=self.output.stock[name] else: friendly=name if self.libname: # recursive call in library self.output.log('Unsupported request for object %s in %s' % (friendly, self.comment)) return if self.matrix[-1]: heading=self.matrix[-1].heading() # not really # handle translation loc=self.loc.biased(self.matrix[-1].m[3][0]*self.scale, -self.matrix[-1].m[3][2]*self.scale) else: heading=0 loc=self.loc if self.debug: self.debug.write("LibraryCall %s %s\n%s\n" % (name,friendly,self.matrix[-1])) self.output.objplc.append((loc, heading, self.complexity, name, round(self.scale,2))) if self.altmsl: self.output.log('Absolute altitude (%sm) for object %s at (%10.6f, %11.6f) in %s' % (round(self.altmsl,2), friendly, self.loc.lat, self.loc.lon, self.comment)) elif self.alt: self.output.log('Non-zero altitude (%sm) for object %s at (%10.6f, %11.6f) in %s' % (round(self.alt,2), friendly, self.loc.lat, self.loc.lon, self.comment))
d87ee6f81b21f2c4fda5318c88bdcdd71b150057 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11663/d87ee6f81b21f2c4fda5318c88bdcdd71b150057/convbgl.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18694, 1477, 12, 2890, 4672, 202, 7, 13746, 261, 3674, 16, 69, 16, 70, 16, 71, 16, 72, 13, 33, 17309, 2668, 32, 76, 6954, 6954, 2187, 365, 18, 70, 7043, 18, 896, 12, 2643, 3719, 508, 11613, 6840, 92, 9, 6840, 92, 9, 6840, 92, 9, 6840, 92, 6, 738, 261, 69, 16, 70, 16, 71, 16, 72, 13, 309, 508, 316, 365, 18, 2844, 18, 29111, 30, 13118, 33, 2890, 18, 2844, 18, 29111, 63, 529, 65, 1327, 508, 316, 365, 18, 2844, 18, 15381, 30, 13118, 33, 2890, 18, 2844, 18, 15381, 63, 529, 65, 469, 30, 13118, 33, 529, 309, 365, 18, 2941, 529, 30, 468, 5904, 745, 316, 5313, 365, 18, 2844, 18, 1330, 2668, 8544, 590, 364, 733, 738, 87, 316, 738, 87, 11, 738, 261, 29111, 16, 365, 18, 3469, 3719, 327, 309, 365, 18, 5667, 18919, 21, 14542, 11053, 33, 2890, 18, 5667, 18919, 21, 8009, 19948, 1435, 202, 7, 486, 8654, 468, 1640, 4794, 1515, 33, 2890, 18, 1829, 18, 13266, 8905, 12, 2890, 18, 5667, 18919, 21, 8009, 81, 63, 23, 6362, 20, 5772, 2890, 18, 5864, 16, 300, 2890, 18, 5667, 18919, 21, 8009, 81, 63, 23, 6362, 22, 5772, 2890, 18, 5864, 13, 469, 30, 11053, 33, 20, 1515, 33, 2890, 18, 1829, 309, 365, 18, 4148, 30, 365, 18, 4148, 18, 2626, 2932, 9313, 1477, 738, 87, 738, 87, 64, 82, 9, 87, 64, 82, 6, 738, 261, 529, 16, 29111, 16, 2890, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18694, 1477, 12, 2890, 4672, 202, 7, 13746, 261, 3674, 16, 69, 16, 70, 16, 71, 16, 72, 13, 33, 17309, 2668, 32, 76, 6954, 6954, 2187, 365, 18, 70, 7043, 18, 896, 12, 2643, 3719, 508, 11613, 6840, 92, 9, 6840, 92, 9, 6840, 92, 9, 6840, 92, 6, 738, 261, 69, 16, 70, 16, 71, 16, 72, 13, 309, 508, 316, 365, 18, 2844, 18, 29111, 30, 13118, 33, 2890, 18, 2844, 18, 29111, 63, 529, 65, 1327, 508, 316, 365, 18, 2844, 18, 15381, 30, 13118, 33, 2890, 18, 2844, 18, 15381, 63, 529, 65, 469, 30, 13118, 33, 529, 309, 365, 18, 2941, 529, 30, 468, 5904, 745, 316, 5313, 365, 18, 2844, 18, 2 ]
item = self.GetPyData(id)
def ExpandContainer (self, openedContainers, id): item = self.GetPyData(id) try: expand = openedContainers [item.getUUID()] except: return
538d775ef0987b49832bb1a2e5975c7da5efc900 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/538d775ef0987b49832bb1a2e5975c7da5efc900/ContainerBlocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 16429, 2170, 261, 2890, 16, 10191, 11177, 16, 612, 4672, 775, 30, 4542, 273, 10191, 11177, 306, 1726, 18, 588, 5562, 1435, 65, 1335, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16429, 2170, 261, 2890, 16, 10191, 11177, 16, 612, 4672, 775, 30, 4542, 273, 10191, 11177, 306, 1726, 18, 588, 5562, 1435, 65, 1335, 30, 327, 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, -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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if num_modules <= 70: sys.stderr.write(']')
if num_files <= 70: sys.stderr.write(']')
def progress_callback(file, doc, verbosity=options['verbosity'], num_files=num_files, file_num=[1]): if verbosity==1: if file_num[0] == 1 and num_files <= 70: sys.stderr.write(' [') if (file_num[0] % 60) == 1 and num_files > 70: sys.stderr.write(' [%3d%%] ' % (100.0*file_num[0]/num_files)) sys.stderr.write('.') sys.stderr.softspace = 1 if (file_num[0] % 60) == 0 and num_files > 70: print >>sys.stderr if file_num[0] == num_files: if num_modules <= 70: sys.stderr.write(']') print >>sys.stderr elif verbosity>1: TRACE_FORMAT = ((' [%%%dd/%d]' % (len(`num_files`), num_files)) + ' Writing docs for %s %s') if doc and doc.uid().is_module(): print >>sys.stderr, (TRACE_FORMAT % (file_num[0], 'module:', doc.uid())) elif doc and doc.uid().is_class(): print >>sys.stderr, (TRACE_FORMAT % (file_num[0], 'class: ', doc.uid())) else: print >>sys.stderr, (TRACE_FORMAT % (file_num[0], 'file: ', os.path.basename(file))) file_num[0] += 1
2f8fde43e27ea795b3323abc9a5f5829238d8c08 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/2f8fde43e27ea795b3323abc9a5f5829238d8c08/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4007, 67, 3394, 12, 768, 16, 997, 16, 11561, 33, 2116, 3292, 16629, 8807, 17337, 818, 67, 2354, 33, 2107, 67, 2354, 16, 585, 67, 2107, 22850, 21, 65, 4672, 309, 11561, 631, 21, 30, 309, 585, 67, 2107, 63, 20, 65, 422, 404, 471, 818, 67, 2354, 1648, 16647, 30, 2589, 18, 11241, 18, 2626, 2668, 225, 306, 6134, 309, 261, 768, 67, 2107, 63, 20, 65, 738, 4752, 13, 422, 404, 471, 818, 67, 2354, 405, 16647, 30, 2589, 18, 11241, 18, 2626, 2668, 225, 9799, 23, 72, 11438, 65, 296, 738, 261, 6625, 18, 20, 14, 768, 67, 2107, 63, 20, 18537, 2107, 67, 2354, 3719, 2589, 18, 11241, 18, 2626, 2668, 1093, 13, 2589, 18, 11241, 18, 9269, 2981, 273, 404, 309, 261, 768, 67, 2107, 63, 20, 65, 738, 4752, 13, 422, 374, 471, 818, 67, 2354, 405, 16647, 30, 1172, 1671, 9499, 18, 11241, 309, 585, 67, 2107, 63, 20, 65, 422, 818, 67, 2354, 30, 309, 818, 67, 2354, 1648, 16647, 30, 2589, 18, 11241, 18, 2626, 2668, 3864, 13, 1172, 1671, 9499, 18, 11241, 1327, 11561, 34, 21, 30, 12734, 67, 7254, 273, 261, 2668, 225, 9799, 11438, 449, 5258, 72, 3864, 738, 261, 1897, 12, 68, 2107, 67, 2354, 68, 3631, 818, 67, 2354, 3719, 397, 296, 10423, 310, 3270, 364, 738, 87, 738, 87, 6134, 309, 997, 471, 997, 18, 1911, 7675, 291, 67, 2978, 13332, 1172, 1671, 9499, 18, 11241, 16, 261, 23827, 67, 7254, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4007, 67, 3394, 12, 768, 16, 997, 16, 11561, 33, 2116, 3292, 16629, 8807, 17337, 818, 67, 2354, 33, 2107, 67, 2354, 16, 585, 67, 2107, 22850, 21, 65, 4672, 309, 11561, 631, 21, 30, 309, 585, 67, 2107, 63, 20, 65, 422, 404, 471, 818, 67, 2354, 1648, 16647, 30, 2589, 18, 11241, 18, 2626, 2668, 225, 306, 6134, 309, 261, 768, 67, 2107, 63, 20, 65, 738, 4752, 13, 422, 404, 471, 818, 67, 2354, 405, 16647, 30, 2589, 18, 11241, 18, 2626, 2668, 225, 9799, 23, 72, 11438, 65, 296, 738, 261, 6625, 18, 20, 14, 768, 67, 2107, 63, 20, 18537, 2107, 67, 2354, 3719, 2589, 18, 11241, 18, 2626, 2668, 1093, 13, 2589, 2 ]
db.create_table('shortterm_adlogentry', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('ts', self.gf('django.db.models.fields.DateTimeField')()), ('ipaddr', self.gf('django.db.models.fields.CharField')(max_length=32)), ('agent', self.gf('django.db.models.fields.CharField')(max_length=256)), )) db.send_create_signal('shortterm', ['AdLogEntry'])
def forwards(self, orm): # Adding model 'AdLogEntry' db.create_table('shortterm_adlogentry', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('ts', self.gf('django.db.models.fields.DateTimeField')()), ('ipaddr', self.gf('django.db.models.fields.CharField')(max_length=32)), ('agent', self.gf('django.db.models.fields.CharField')(max_length=256)), )) db.send_create_signal('shortterm', ['AdLogEntry'])
6cd63885478004e45d58e9bdbaa96ad38b570b02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/6cd63885478004e45d58e9bdbaa96ad38b570b02/0001_initial.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24578, 12, 2890, 16, 13969, 4672, 225, 468, 21240, 938, 296, 1871, 25548, 11, 1319, 18, 2640, 67, 2121, 2668, 6620, 6408, 67, 361, 1330, 4099, 2187, 261, 7707, 350, 2187, 365, 18, 75, 74, 2668, 24573, 18, 1966, 18, 7665, 18, 2821, 18, 4965, 974, 6134, 12, 8258, 67, 856, 33, 5510, 13, 3631, 7707, 3428, 2187, 365, 18, 75, 74, 2668, 24573, 18, 1966, 18, 7665, 18, 2821, 18, 5096, 974, 6134, 1435, 3631, 7707, 625, 4793, 2187, 365, 18, 75, 74, 2668, 24573, 18, 1966, 18, 7665, 18, 2821, 18, 2156, 974, 6134, 12, 1896, 67, 2469, 33, 1578, 13, 3631, 7707, 5629, 2187, 365, 18, 75, 74, 2668, 24573, 18, 1966, 18, 7665, 18, 2821, 18, 2156, 974, 6134, 12, 1896, 67, 2469, 33, 5034, 13, 3631, 8623, 1319, 18, 4661, 67, 2640, 67, 10420, 2668, 6620, 6408, 2187, 10228, 1871, 25548, 19486, 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, 0, 0, 0, 0, 0, 0, 0, 0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, 6408, 67, 361, 1330, 4099, 2187, 261, 7707, 350, 2187, 365, 18, 75, 74, 2668, 24573, 18, 1966, 18, 7665, 18, 2821, 18, 4965, 974, 6134, 12, 8258, 67, 856, 33, 5510, 13, 3631, 7707, 3428, 2187, 365, 18, 75, 74, 2668, 24573, 18, 1966, 18, 7665, 18, 2821, 18, 5096, 974, 6134, 1435, 3631, 7707, 625, 4793, 2187, 365, 18, 75, 74, 2668, 24573, 18, 1966, 18, 7665, 18, 2821, 18, 2156, 974, 6134, 12, 1896, 67, 2469, 33, 1578, 13, 3631, 7707, 5629, 2187, 365, 18, 75, 74, 2668, 24573, 18, 1966, 18, 7665, 18, 2 ]
def close(self):
def close(self):
def close(self):
f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f1d302d15f45741d8b0d5e81b4b0e5a61c6fa580/binhex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1652, 1746, 12, 2890, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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, -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, -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, -100, -100, -100, -100, -100, -100 ]
def __init(self, request_id, filename, code):
def __init__(self, request_id, filename, code):
def __init(self, request_id, filename, code): self.requestID = request_id self.filename = filename self.action = code
afab9c8f706f90731f09922367ec2dc7a2ea7d33 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11867/afab9c8f706f90731f09922367ec2dc7a2ea7d33/FileMonitor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 590, 67, 350, 16, 1544, 16, 981, 4672, 365, 18, 2293, 734, 273, 590, 67, 350, 365, 18, 3459, 273, 1544, 365, 18, 1128, 273, 981, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 590, 67, 350, 16, 1544, 16, 981, 4672, 365, 18, 2293, 734, 273, 590, 67, 350, 365, 18, 3459, 273, 1544, 365, 18, 1128, 273, 981, 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, -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, -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, -100, -100, -100, -100, -100 ]
if self.friendly_name is not null:
if self.friendly_name is not None:
def __str__(self): """ Returns a string """ res = str(self.rangestart) + ' .. ' + str(self.rangeend) + ' <' + str(self.name) + '>'
210ec3eacb24a9ee1ee9c9f18a194915b172f64b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12041/210ec3eacb24a9ee1ee9c9f18a194915b172f64b/models.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 701, 972, 12, 2890, 4672, 3536, 2860, 279, 533, 3536, 400, 273, 609, 12, 2890, 18, 86, 539, 27893, 13, 397, 296, 6116, 296, 397, 609, 12, 2890, 18, 3676, 409, 13, 397, 296, 411, 11, 397, 609, 12, 2890, 18, 529, 13, 397, 7481, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 701, 972, 12, 2890, 4672, 3536, 2860, 279, 533, 3536, 400, 273, 609, 12, 2890, 18, 86, 539, 27893, 13, 397, 296, 6116, 296, 397, 609, 12, 2890, 18, 3676, 409, 13, 397, 296, 411, 11, 397, 609, 12, 2890, 18, 529, 13, 397, 7481, 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, -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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if cleanup:
if cleanup and outputdata:
def doTidy(value, field, request, cleanup=0): """Tidy the data in 'value' for the field in the current request Optional cleanup: * removes header/footer of the output data * Removes warnings from the error data Return None for 'nothing done' else return (nerrors, nwarnings, outputdata, errordata) """ # we can't use the mimetype from the field because it's updated *after* # validation so we must get it from the request tf_name = '%s_text_format' % field.getName() text_format = getattr(request, tf_name, '') # MX_TIDY_MIMETYPES configuration option isn't empty # and the current text_format isn't in the list if MX_TIDY_MIMETYPES and text_format not in MX_TIDY_MIMETYPES: # do not filter this mime type return # it's a file upload if isinstance(value, FileUpload): # *mmh* ok it's a file upload but a file upload could destroy # the layout, too. # the validator can be called many times, we have to rewind # the FileUpload. value.seek(0) value = correctEncoding(value.read()) else: value = wrapValueInHTML(value) result = mx_tidy(value, **MX_TIDY_OPTIONS) nerrors, nwarnings, outputdata, errordata = result # parse and change the error data errordata = parseErrorData(errordata, removeWarnings=cleanup) if cleanup: # unwrap tidied output data outputdata = unwrapValueFromHTML(outputdata) return nerrors, nwarnings, outputdata, errordata
7bc58f22e692d9fd70bfc9760bcb11bf8518dc03 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11956/7bc58f22e692d9fd70bfc9760bcb11bf8518dc03/validators.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 56, 29609, 12, 1132, 16, 652, 16, 590, 16, 6686, 33, 20, 4672, 3536, 56, 29609, 326, 501, 316, 296, 1132, 11, 364, 326, 652, 316, 326, 783, 590, 225, 4055, 6686, 30, 380, 7157, 1446, 19, 14723, 434, 326, 876, 501, 380, 20284, 5599, 628, 326, 555, 501, 225, 2000, 599, 364, 296, 30874, 2731, 11, 469, 327, 261, 82, 4324, 16, 290, 12103, 16, 876, 892, 16, 393, 517, 396, 13, 3536, 468, 732, 848, 1404, 999, 326, 12595, 628, 326, 652, 2724, 518, 1807, 3526, 380, 5205, 14, 468, 3379, 1427, 732, 1297, 336, 518, 628, 326, 590, 3253, 67, 529, 377, 273, 1995, 87, 67, 955, 67, 2139, 11, 738, 652, 18, 17994, 1435, 977, 67, 2139, 273, 3869, 12, 2293, 16, 3253, 67, 529, 16, 28707, 225, 468, 26929, 67, 56, 734, 61, 67, 18178, 10564, 1664, 1456, 5177, 1404, 1008, 468, 471, 326, 783, 977, 67, 2139, 5177, 1404, 316, 326, 666, 309, 26929, 67, 56, 734, 61, 67, 18178, 10564, 471, 977, 67, 2139, 486, 316, 26929, 67, 56, 734, 61, 67, 18178, 10564, 30, 468, 741, 486, 1034, 333, 4892, 618, 327, 225, 468, 518, 1807, 279, 585, 3617, 309, 1549, 12, 1132, 16, 1387, 4777, 4672, 468, 380, 7020, 76, 14, 1529, 518, 1807, 279, 585, 3617, 1496, 279, 585, 3617, 3377, 5546, 468, 326, 3511, 16, 4885, 18, 468, 326, 4213, 848, 506, 2566, 4906, 4124, 16, 732, 1240, 358, 12881, 468, 326, 1387, 4777, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 56, 29609, 12, 1132, 16, 652, 16, 590, 16, 6686, 33, 20, 4672, 3536, 56, 29609, 326, 501, 316, 296, 1132, 11, 364, 326, 652, 316, 326, 783, 590, 225, 4055, 6686, 30, 380, 7157, 1446, 19, 14723, 434, 326, 876, 501, 380, 20284, 5599, 628, 326, 555, 501, 225, 2000, 599, 364, 296, 30874, 2731, 11, 469, 327, 261, 82, 4324, 16, 290, 12103, 16, 876, 892, 16, 393, 517, 396, 13, 3536, 468, 732, 848, 1404, 999, 326, 12595, 628, 326, 652, 2724, 518, 1807, 3526, 380, 5205, 14, 468, 3379, 1427, 732, 1297, 336, 518, 628, 326, 590, 3253, 67, 529, 377, 273, 1995, 87, 67, 955, 67, 2139, 11, 738, 652, 18, 17994, 2 ]
if os.path.exists(filename):
if os.path.lexists(filename):
def list_files(self): dirs = [ "~/.beagle/Indexes", "~/.beagle/Log", "~/.beagle/TextCache" ] for dirname in dirs: dirname = os.path.expanduser(dirname) for filename in FileUtilities.children_in_directory(dirname, False): if os.path.exists(filename): yield filename
18478f728f52d5b096698cd1aacebf770b66e683 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/18478f728f52d5b096698cd1aacebf770b66e683/CleanerBackend.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 2354, 12, 2890, 4672, 7717, 273, 306, 19910, 15865, 2196, 346, 298, 19, 8639, 3113, 19910, 15865, 2196, 346, 298, 19, 1343, 3113, 19910, 15865, 2196, 346, 298, 19, 1528, 1649, 6, 308, 364, 4283, 316, 7717, 30, 4283, 273, 1140, 18, 803, 18, 12320, 1355, 12, 12287, 13, 364, 1544, 316, 1387, 11864, 18, 5906, 67, 267, 67, 5149, 12, 12287, 16, 1083, 4672, 309, 1140, 18, 803, 18, 4149, 1486, 12, 3459, 4672, 2824, 1544, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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4672, 7717, 273, 306, 19910, 15865, 2196, 346, 298, 19, 8639, 3113, 19910, 15865, 2196, 346, 298, 19, 1343, 3113, 19910, 15865, 2196, 346, 298, 19, 1528, 1649, 6, 308, 364, 4283, 316, 7717, 30, 4283, 273, 1140, 18, 803, 18, 12320, 1355, 12, 12287, 13, 364, 1544, 316, 1387, 11864, 18, 5906, 67, 267, 67, 5149, 12, 12287, 16, 1083, 4672, 309, 1140, 18, 803, 18, 4149, 1486, 12, 3459, 4672, 2824, 1544, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]