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, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, 45...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
'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, 335...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, 335...
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, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 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, 1...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 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,...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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,...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 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...
"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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 3...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 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, ...
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, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 380, 1968, 4672, 333, 273, 389, 19525, 904, 18, 2704, 67, 758, 287, 310, 7437, 30857, 1968, 13, 775, 30, 365, 18, 2211, 18, 6923, 12, 2211, 13, 1335, 3...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 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, ...
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, 904, 18, 5265, 974, 16186, 2738, 972, 12, 2890, 16, 30537, 13, 469, 9549, 904, 18, 5265, 974, 16186, 2738, 972, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 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, 26...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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,...
_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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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...
['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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 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,...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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,...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 145...
"""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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 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,...
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, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 6...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -...
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, 2151, 5469, 17, 416, 2511, 603, 3880, 9163, 679, 717, 273, 365, 18, 409, 717, 22034, 933, 273, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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,...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 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,...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 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...
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, 218...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 218...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 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, ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, 365, 18, 4106, 273, 1696, 2932, 19, 5645, 19, 7590, 18, 1330, 3113, 315, 6046, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 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, ...
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, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 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, ...
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, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 1...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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,...
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, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, 1...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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,...
'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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, 29...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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,...
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, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 44...
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, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 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, 27...
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, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 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, 1...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, 1086, 487, 1001, 5254, 972, 358, 454...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2681, 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, 454...
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, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 4...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
"""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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, ...
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, 7596, 16, 1743, 15098, 11058, 854, 16265, 18, 3536, 309, 365, 6315, 955, 594, 353, 599, 30, 365, 6315, 955, 594, 273, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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/0a0e4f57e86817b5ed43489a7c227ec1593d0921/sudoku.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 353, 67, 12708, 12, 2890, 16, 1300, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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,...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 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...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -1...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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,...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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,...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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...
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, 12, 2890, 16, 508, 16, 2699, 67, 280, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 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, ...
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, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 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, 73...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -10...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 27...
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, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 50...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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,...
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, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, 3...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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, ...
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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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, -...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 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, ...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 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...
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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, ...
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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 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...