rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
found_cmd = r'tool\cmake\bin\%s' % found_cmd
found_cmd = r'..\tool\cmake\bin\%s' % self.cmake_cmd
def persist_cmake(self): if sys.platform == 'win32': version = '2.8.0' found_cmd = '' for test_cmd in (self.cmake_cmd, r'tool\cmake\bin\%s' % self.cmake_cmd): print 'Testing for CMake version %s at `%s`...' % (version, test_cmd) p = subprocess.Popen([test_cmd, '--version'], stdout=subprocess.PIPE, stderr=subprocess.PI...
f454dc64e3a0f9d4d7faf35dadf5eee4d798a48f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10355/f454dc64e3a0f9d4d7faf35dadf5eee4d798a48f/commands.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3898, 67, 71, 6540, 12, 2890, 4672, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 225, 1177, 273, 296, 22, 18, 28, 18, 20, 11, 1392, 67, 4172, 273, 875, 364, 1842, 67, 4172, 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, 3898, 67, 71, 6540, 12, 2890, 4672, 309, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 225, 1177, 273, 296, 22, 18, 28, 18, 20, 11, 1392, 67, 4172, 273, 875, 364, 1842, 67, 4172, 316, ...
def LoadFvImageName(XmlFvImageNames): XmlTag = "FvImageNames" FvImageName = XmlElement(XmlFvImageNames, XmlTag) return FvImageName def LoadFvImageOption(XmlFvImageOptions): XmlTag = "NameValue" FvImageOption = XmlElement(XmlFvImageOptions, XmlTag) return FvImageOption def LoadFvImage(XmlFvI...
def LoadDynamicPcdBuildDefinitions(XmlFpd): DynamicPcdBuildDefinitions = [] XmlTag = "PlatformSurfaceArea/DynamicPcdBuildDefinitions/PcdBuildData" return map(LoadPlatformPcdBuildData, XmlList(XmlFpd, XmlTag))
e3ad7624a34c23e19c67d615b2919203a867bc02 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/e3ad7624a34c23e19c67d615b2919203a867bc02/LoadFpd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 9791, 52, 4315, 3116, 7130, 12, 4432, 42, 22353, 4672, 12208, 52, 4315, 3116, 7130, 273, 5378, 5714, 1805, 273, 315, 8201, 11508, 5484, 19, 9791, 52, 4315, 3116, 7130, 19, 52, 4315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4444, 9791, 52, 4315, 3116, 7130, 12, 4432, 42, 22353, 4672, 12208, 52, 4315, 3116, 7130, 273, 5378, 5714, 1805, 273, 315, 8201, 11508, 5484, 19, 9791, 52, 4315, 3116, 7130, 19, 52, 4315...
except UnicodeError, arg: return False, u'Encoding Error: %s (%s)' % (arg.__class__.__name__, unicode(arg)) except httplib.error, arg: return False, u'HTTP Error: %s (%s)' % (arg.__class__.__name__, arg.line) except socket.error, arg:
except UnicodeError, error: return False, u'Encoding Error: %s (%s)' % (error.__class__.__name__, unicode(error)) except httplib.error, error: return False, u'HTTP Error: %s' % error.__class__.__name__ except socket.error, error:
def check(self, useHEAD = True): """ Returns True and the server status message if the page is alive. Otherwise returns false """ try: wasRedirected = self.resolveRedirect(useHEAD = useHEAD) except UnicodeError, arg: return False, u'Encoding Error: %s (%s)' % (arg.__class__.__name__, unicode(arg)) except httplib.error,...
920e0f300ade446cdbe0dadb5b3abc6cc854e52c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/920e0f300ade446cdbe0dadb5b3abc6cc854e52c/weblinkchecker.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 999, 12458, 273, 1053, 4672, 3536, 2860, 1053, 471, 326, 1438, 1267, 883, 309, 326, 1363, 353, 13714, 18, 5272, 1135, 629, 3536, 775, 30, 1703, 5961, 329, 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, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 12, 2890, 16, 999, 12458, 273, 1053, 4672, 3536, 2860, 1053, 471, 326, 1438, 1267, 883, 309, 326, 1363, 353, 13714, 18, 5272, 1135, 629, 3536, 775, 30, 1703, 5961, 329, 273, 365, ...
implements(IField)
if IInterface.providedBy(IField): implements(IField) else: __implements__ = IField
def fiddle(self, schema): pass
2cf993551f95bbb1759af05a816a6350dbc1ee55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12166/2cf993551f95bbb1759af05a816a6350dbc1ee55/mocks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 284, 3132, 12, 2890, 16, 1963, 4672, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 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, 284, 3132, 12, 2890, 16, 1963, 4672, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
if not all_repos:
if all_repos is None:
def get_repos(self, all_repos=None): """ Get all repos from db and for each repo create it's backend instance. and fill that backed with information from database :param all_repos: give specific repositories list, good for filtering """ if not all_repos: all_repos = self.sa.query(Repository)\ .order_by(Repository.repo...
146dec9cca1e7cbbe786f9444ed712c94aa2fed0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/146dec9cca1e7cbbe786f9444ed712c94aa2fed0/scm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 15564, 12, 2890, 16, 777, 67, 15564, 33, 7036, 4672, 3536, 968, 777, 13686, 628, 1319, 471, 364, 1517, 3538, 752, 518, 1807, 4221, 791, 18, 471, 3636, 716, 20732, 598, 1779, 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, 336, 67, 15564, 12, 2890, 16, 777, 67, 15564, 33, 7036, 4672, 3536, 968, 777, 13686, 628, 1319, 471, 364, 1517, 3538, 752, 518, 1807, 4221, 791, 18, 471, 3636, 716, 20732, 598, 1779, 6...
if prj != 'GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]]':
if prj != 'GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433],AUTHORITY["EPSG","4326"]]':
def dted_2(): ds = gdal.Open( 'data/n43.dt0' ) gt = ds.GetGeoTransform() max_error = 0.000001 if abs(gt[0] - (-80.004166666666663)) > max_error or abs(gt[1] - 0.0083333333333333332) > max_error \ or abs(gt[2] - 0) > max_error or abs(gt[3] - 44.00416666666667) > max_error \ or abs(gt[4] - 0) > max_error or abs(gt[5]...
57c730972bc29cfea1a37bf0a6d17ed4588a83d3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10290/57c730972bc29cfea1a37bf0a6d17ed4588a83d3/dted.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 2344, 67, 22, 13332, 225, 3780, 273, 15551, 287, 18, 3678, 12, 296, 892, 19, 82, 8942, 18, 7510, 20, 11, 262, 225, 9879, 273, 3780, 18, 967, 12447, 4059, 1435, 225, 943, 67, 163...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 302, 2344, 67, 22, 13332, 225, 3780, 273, 15551, 287, 18, 3678, 12, 296, 892, 19, 82, 8942, 18, 7510, 20, 11, 262, 225, 9879, 273, 3780, 18, 967, 12447, 4059, 1435, 225, 943, 67, 163...
"tapi": CM3_ALL or M3OSTYPE == "POSIX",
"tapi": CM3_ALL or M3OSTYPE == "WIN32",
def _FilterPackage(Package): PackageConditions = { "m3gdb": (M3GDB or CM3_GDB) and {"FreeBSD4": True, "LINUXLIBC6" : True, "SOLgnu" : True, "NetBSD2_i386" : True }.get(Target, False), "m3objfile": CM3_ALL or M3OSTYPE == "WIN32", "mklib": CM3_ALL or M3OSTYPE == "WIN32", "dll2lib": CM3_ALL, "fix_nl": CM3_ALL or M3OSTYPE...
858c6e5a156d91c49a04a6dea38d068cc7d4dc17 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9328/858c6e5a156d91c49a04a6dea38d068cc7d4dc17/pylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1586, 2261, 12, 2261, 4672, 7508, 8545, 273, 288, 315, 81, 23, 75, 1966, 6877, 261, 49, 23, 43, 2290, 578, 15871, 23, 67, 43, 2290, 13, 471, 12528, 9194, 30780, 24, 6877, 1053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1586, 2261, 12, 2261, 4672, 7508, 8545, 273, 288, 315, 81, 23, 75, 1966, 6877, 261, 49, 23, 43, 2290, 578, 15871, 23, 67, 43, 2290, 13, 471, 12528, 9194, 30780, 24, 6877, 1053, ...
except OSError:
except OSError:
def delete_db(settings): """Delete the old database.""" engine = settings.DATABASE_ENGINE if engine == 'sqlite3': try: os.unlink(settings.DATABASE_NAME) except OSError: pass elif engine == 'mysql': import _mysql s = _mysql.connect(host=settings.DATABASE_HOST, user=settings.DATABASE_USER, passwd=settings.DATABASE_PASSWO...
6bb4ee4e3413db8bff6866226b96bc305a1c8cd3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/171/6bb4ee4e3413db8bff6866226b96bc305a1c8cd3/load_data.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 1966, 12, 4272, 4672, 3536, 2613, 326, 1592, 2063, 12123, 4073, 273, 1947, 18, 22366, 67, 28980, 309, 4073, 422, 296, 19460, 23, 4278, 775, 30, 1140, 18, 318, 1232, 12, 4272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1430, 67, 1966, 12, 4272, 4672, 3536, 2613, 326, 1592, 2063, 12123, 4073, 273, 1947, 18, 22366, 67, 28980, 309, 4073, 422, 296, 19460, 23, 4278, 775, 30, 1140, 18, 318, 1232, 12, 4272, ...
result = diracAdmin.banSiteFromMask(site,comment,printOutput=True)
result = diracAdmin.banSiteFromMask( site, comment, printOutput = True )
def usage(): print 'Usage: %s <DIRAC site name> <COMMENT>" [--email=<True/False>]' %(Script.scriptName) print 'Note: emails should only be disabled for bulk operations.' DIRAC.exit(2)
2b204336b411589d2f99cfea8f7c7d239b7db197 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/2b204336b411589d2f99cfea8f7c7d239b7db197/dirac-admin-ban-site.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 411, 4537, 2226, 2834, 508, 34, 411, 12200, 2984, 306, 413, 3652, 27127, 5510, 19, 8381, 34, 3864, 8975, 3651, 18, 4263, 461, 13, 1172, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 296, 5357, 30, 738, 87, 411, 4537, 2226, 2834, 508, 34, 411, 12200, 2984, 306, 413, 3652, 27127, 5510, 19, 8381, 34, 3864, 8975, 3651, 18, 4263, 461, 13, 1172, 296, ...
atoms.set_constraint(FixAtoms(indices=fix))
atoms.set_constraint([FixAtoms(indices=fix)]+fix_cart) else: atoms.set_constraint(fix_cart)
def read_aims(filename): """Import FHI-aims geometry type files. Reads unitcell, atom positions and constraints from a geometry.in file. """ from ase import Atoms, FixAtoms atoms = Atoms() fd = open(filename, 'r') lines = fd.readlines() fd.close() positions = [] cell = [] symbols = [] fix = [] i = -1 for n, line in ...
df438801b6b59dedfcb56e9d333d40698705acc3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5572/df438801b6b59dedfcb56e9d333d40698705acc3/aims.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4581, 87, 12, 3459, 4672, 3536, 5010, 28705, 45, 17, 4581, 87, 5316, 618, 1390, 18, 225, 29185, 2836, 3855, 16, 3179, 6865, 471, 6237, 628, 279, 5316, 18, 267, 585, 18, 3536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 67, 4581, 87, 12, 3459, 4672, 3536, 5010, 28705, 45, 17, 4581, 87, 5316, 618, 1390, 18, 225, 29185, 2836, 3855, 16, 3179, 6865, 471, 6237, 628, 279, 5316, 18, 267, 585, 18, 3536, ...
@return: The object's C{__epydoc_sort__} list.
@return: A list specifying the sort order that should be used for the object's children. Elements that are in this list should appear before elements that are not in this list; and elements that are in this list should appear in the order that they appear in this list.
def sortorder(self): """ @return: The object's C{__epydoc_sort__} list. @rtype: C{list} of C{string} """ return self._sortorder
6d6fd676bcc4d861c9f4f28506061b79289f7f4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/6d6fd676bcc4d861c9f4f28506061b79289f7f4e/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 1019, 12, 2890, 4672, 3536, 632, 2463, 30, 432, 666, 13664, 326, 1524, 1353, 716, 1410, 506, 1399, 364, 326, 733, 1807, 2325, 18, 225, 17219, 716, 854, 316, 333, 666, 1410, 9788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1524, 1019, 12, 2890, 4672, 3536, 632, 2463, 30, 432, 666, 13664, 326, 1524, 1353, 716, 1410, 506, 1399, 364, 326, 733, 1807, 2325, 18, 225, 17219, 716, 854, 316, 333, 666, 1410, 9788, ...
msz = stats.f_bsize * stats.f_bavail
msz = stats.f_frsize * stats.f_bavail
def free_space(self, end_session=True): msz = csz = 0 if not iswindows: if self._main_prefix is not None: stats = os.statvfs(self._main_prefix) msz = stats.f_bsize * stats.f_bavail if self._card_prefix is not None: stats = os.statvfs(self._card_prefix) csz = stats.f_bsize * stats.f_bavail else: msz = self._windows_spac...
61d5c451430b7b7163acd8f520925b88033684cd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/61d5c451430b7b7163acd8f520925b88033684cd/driver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4843, 67, 2981, 12, 2890, 16, 679, 67, 3184, 33, 5510, 4672, 4086, 94, 273, 2873, 94, 273, 374, 309, 486, 353, 13226, 30, 309, 365, 6315, 5254, 67, 3239, 353, 486, 599, 30, 3177, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4843, 67, 2981, 12, 2890, 16, 679, 67, 3184, 33, 5510, 4672, 4086, 94, 273, 2873, 94, 273, 374, 309, 486, 353, 13226, 30, 309, 365, 6315, 5254, 67, 3239, 353, 486, 599, 30, 3177, 273...
mi = ActionItem(_('No configuration values'), None
mi = ActionItem(_('No configuration values'), None,
def create_config_menu(self): """ Create a config menu for the given path """ configuration_values = []
6d74b257cb2f0c0fa221d16bdb4761ba713648f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/6d74b257cb2f0c0fa221d16bdb4761ba713648f2/configuration.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1425, 67, 5414, 12, 2890, 4672, 3536, 1788, 279, 642, 3824, 364, 326, 864, 589, 3536, 1664, 67, 2372, 273, 5378, 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, 67, 1425, 67, 5414, 12, 2890, 4672, 3536, 1788, 279, 642, 3824, 364, 326, 864, 589, 3536, 1664, 67, 2372, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if left[0] == KERNING_CLASS_PREFIX:
if left[0] == "@":
def guessPairType(self, pair): """ >>> kerning = { ... ("@A_left", "@A_right") : 1, ... ("A1", "@A_right") : 2, ... ("@A_left", "A2") : 3, ... ("A3", "A3") : 4, ... } >>> groups = { ... "@A_left" : ["A", "A1", "A2", "A3"], ... "@A_right" : ["A", "A1", "A2", "A3"], ... } >>> obj = MathKerning(kerning, gr...
de2dfa43a24bfa2f4da392648b9c09be60d7df98 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8840/de2dfa43a24bfa2f4da392648b9c09be60d7df98/mathKerning.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7274, 4154, 559, 12, 2890, 16, 3082, 4672, 3536, 4080, 417, 264, 2093, 273, 288, 1372, 377, 7566, 36, 37, 67, 4482, 3113, 8787, 37, 67, 4083, 7923, 294, 404, 16, 1372, 377, 7566, 37, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7274, 4154, 559, 12, 2890, 16, 3082, 4672, 3536, 4080, 417, 264, 2093, 273, 288, 1372, 377, 7566, 36, 37, 67, 4482, 3113, 8787, 37, 67, 4083, 7923, 294, 404, 16, 1372, 377, 7566, 37, ...
environ['PATH_INFO'] = request_uri[len(root_uri):]
environ['PATH_INFO'] = urllib.unquote(request_uri[len(root_uri):])
def dispatch_request(environ, start_response): """Main entry point for the Trac web interface. @param environ: the WSGI environment dict @param start_response: the WSGI callback for starting the response """ if 'mod_python.options' in environ: options = environ['mod_python.options'] environ.setdefault('trac.env_path',...
524b7a9a76950acaed6962cd1487ddf1150f691c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/524b7a9a76950acaed6962cd1487ddf1150f691c/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3435, 67, 2293, 12, 28684, 16, 787, 67, 2740, 4672, 3536, 6376, 1241, 1634, 364, 326, 2197, 71, 3311, 1560, 18, 225, 632, 891, 5473, 30, 326, 7649, 13797, 3330, 2065, 632, 891, 787, 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, 3435, 67, 2293, 12, 28684, 16, 787, 67, 2740, 4672, 3536, 6376, 1241, 1634, 364, 326, 2197, 71, 3311, 1560, 18, 225, 632, 891, 5473, 30, 326, 7649, 13797, 3330, 2065, 632, 891, 787, 67...
self.create = wx.RadioButton(self, -1, _(u"Discard all my data and start from scratch")) sizer.Add(self.create, flag=wx.ALL, border=5) self.create.Bind(wx.EVT_LEFT_DCLICK, self.onButton)
self.undocheck = wx.RadioButton(self, -1, _(u"Discard recent changes until data integrity tests pass")) sizer.Add(self.undocheck, flag=wx.ALL, border=5) self.undocheck.Bind(wx.EVT_LEFT_DCLICK, self.onButton) self.create = wx.RadioButton(self, -1, _(u"Discard all my data and start from scratch")) sizer.Add(self.create,...
def __init__(self, exception=None): # Instead of calling wx.Dialog.__init__ we precreate the dialog # so we can set an extra style that must be set before # creation, and then we create the GUI dialog using the Create # method. pre = wx.PreDialog() style = wx.CAPTION pre.Create(None, -1, _(u"Startup Options for Chandle...
ac1678e560cf275adf66e2c101e6007abb13c163 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/ac1678e560cf275adf66e2c101e6007abb13c163/StartupOptionsDialog.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1520, 33, 7036, 4672, 468, 17561, 434, 4440, 7075, 18, 6353, 16186, 2738, 972, 732, 675, 2640, 326, 6176, 468, 1427, 732, 848, 444, 392, 2870, 2154, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1520, 33, 7036, 4672, 468, 17561, 434, 4440, 7075, 18, 6353, 16186, 2738, 972, 732, 675, 2640, 326, 6176, 468, 1427, 732, 848, 444, 392, 2870, 2154, 716, ...
x = i = H = pS = 0
x = i = H = pS = hx = 0
def split(self, availWidth, availHeight): canv = self.canv C = self._content x = i = H = pS = 0 n = len(C) I2W = {} for x in xrange(n): c = C[x] I = c._ptoinfo if I not in I2W.keys(): T = I.trailer Hdr = I.header tW, tH = _listWrapOn(T, availWidth, self.canv) tSB = T[0].getSpaceBefore() I2W[I] = T,tW,tH,tSB else: T,tW,...
8d8c0ec1fd140512007c83c05dcbc570c6560932 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/8d8c0ec1fd140512007c83c05dcbc570c6560932/flowables.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 15783, 2384, 16, 15783, 2686, 4672, 848, 90, 273, 365, 18, 4169, 90, 385, 273, 365, 6315, 1745, 619, 273, 277, 273, 670, 273, 293, 55, 273, 366, 92, 273, 374, 290...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 12, 2890, 16, 15783, 2384, 16, 15783, 2686, 4672, 848, 90, 273, 365, 18, 4169, 90, 385, 273, 365, 6315, 1745, 619, 273, 277, 273, 670, 273, 293, 55, 273, 366, 92, 273, 374, 290...
self.assertComplexIdentical(cmath.tanh(complex(0., .0j)), complex(0., .0j)) self.assertComplexIdentical(cmath.tanh(complex(0., -.0j)), complex(0., -.0j)) self.assertComplexIdentical(cmath.tanh(complex(-0., .0j)), complex(-0., .0j)) self.assertComplexIdentical(cmath.tanh(complex(-0., -.0j)), complex(-0., -.0j))
for z in complex_zeros: self.assertComplexIdentical(cmath.tanh(z), z)
def testTanhSign(self): self.assertComplexIdentical(cmath.tanh(complex(0., .0j)), complex(0., .0j)) self.assertComplexIdentical(cmath.tanh(complex(0., -.0j)), complex(0., -.0j)) self.assertComplexIdentical(cmath.tanh(complex(-0., .0j)), complex(-0., .0j)) self.assertComplexIdentical(cmath.tanh(complex(-0., -.0j)), comp...
204cd77183ab7f1b4d179d1abaaddf17e5b07be6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/204cd77183ab7f1b4d179d1abaaddf17e5b07be6/test_cmath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 56, 304, 76, 2766, 12, 2890, 4672, 365, 18, 11231, 12795, 6106, 1706, 12, 7670, 421, 18, 88, 304, 76, 12, 14259, 12, 20, 12990, 263, 20, 78, 13, 3631, 7233, 12, 20, 12990, 263,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 56, 304, 76, 2766, 12, 2890, 4672, 365, 18, 11231, 12795, 6106, 1706, 12, 7670, 421, 18, 88, 304, 76, 12, 14259, 12, 20, 12990, 263, 20, 78, 13, 3631, 7233, 12, 20, 12990, 263,...
try:
if self.lp: return self.get_bug_new(id) return self.get_bug_old(id) def get_bug_new(self, id): def _sort(task1, task2): statuses = ["Unknown", "Invalid", "Won't fix", "Fix Released", "Fix Committed", "New", "Incomplete", "Confirmed", "Triaged", "In Progress"] severities = ["Unknown", "Undecided", "Wishlist", "Low", "M...
def get_bug(self, id): try:
df10ce98f833e71d2487be9595b618b5a3e450ba /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3124/df10ce98f833e71d2487be9595b618b5a3e450ba/plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 925, 12, 2890, 16, 612, 4672, 775, 30, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 925, 12, 2890, 16, 612, 4672, 775, 30, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
database = config['PLC_DB_NAME'] archived_database = database + "_archived"
def usage(): print "Usage: %s [OPTION] UPGRADE_CONFIG_FILE " % sys.argv[0] print "Options:" print " -s, --schema=FILE Upgraded Database Schema" print " -t, --temp-dir=DIR Temp Directory" print " --help This message" sys.exit(1)
af98851618b632afb0a950644c796b7c633ace40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/af98851618b632afb0a950644c796b7c633ace40/upgrade-db.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 315, 5357, 30, 738, 87, 306, 7425, 65, 7376, 24554, 1639, 67, 7203, 67, 3776, 315, 738, 2589, 18, 19485, 63, 20, 65, 1172, 315, 1320, 2773, 1172, 315, 377, 300, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4084, 13332, 1172, 315, 5357, 30, 738, 87, 306, 7425, 65, 7376, 24554, 1639, 67, 7203, 67, 3776, 315, 738, 2589, 18, 19485, 63, 20, 65, 1172, 315, 1320, 2773, 1172, 315, 377, 300, 87, ...
EVT_LISTBOX(self.elementLb, wxID_STCSTYLEEDITDLGELEMENTLB, self.OnElementlbListbox) self.addCommonItemBtn = wxButton(id=wxID_STCSTYLEEDITDLGADDCOMMONITEMBTN, label='Add', name='addCommonItemBtn', parent=self, pos=wxPoint(8, 184), size=wxSize(80, 17), style=0)
self.elementLb.Bind(wx.EVT_LISTBOX, self.OnElementlbListbox, id=wxID_STCSTYLEEDITDLGELEMENTLB) self.addCommonItemBtn = wx.Button(id=wxID_STCSTYLEEDITDLGADDCOMMONITEMBTN, label='Add', name='addCommonItemBtn', parent=self, pos=wx.Point(8, 200), size=wx.Size(88, 17), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSi...
1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 16277, 87, 12, 2890, 16, 846, 496, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 7075, 6353, 16186, 2738, 972, 12, 2890, 16, 612, 33, 27226, 734, 67, 882, 39, 15066, 10776...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2738, 67, 16277, 87, 12, 2890, 16, 846, 496, 4672, 468, 4374, 707, 16, 2727, 1404, 3874, 7075, 6353, 16186, 2738, 972, 12, 2890, 16, 612, 33, 27226, 734, 67, 882, 39, 15066, 10776...
amount = str(data.balance).replace ('.', '')
amount = unicode((data.balance * 100).to_integral())
def prepareData(self, data): self.order = data # See tclink developer's guide for additional fields and info # convert amount to cents, no decimal point amount = str(data.balance).replace ('.', '')
9890d1fffb02d5878b8c2afce339223835517edf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/9890d1fffb02d5878b8c2afce339223835517edf/processor.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 751, 12, 2890, 16, 501, 4672, 365, 18, 1019, 273, 501, 468, 2164, 268, 830, 754, 8751, 1807, 7343, 364, 3312, 1466, 471, 1123, 468, 1765, 3844, 358, 276, 4877, 16, 1158, 6970, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2911, 751, 12, 2890, 16, 501, 4672, 365, 18, 1019, 273, 501, 468, 2164, 268, 830, 754, 8751, 1807, 7343, 364, 3312, 1466, 471, 1123, 468, 1765, 3844, 358, 276, 4877, 16, 1158, 6970, 16...
if x in self.ring():
if x.parent() == self.ring():
def _coerce_(self, x): if isinstance(x, fraction_field_element.FractionFieldElement) \ and x.parent() == self: return x if x in self.ring(): return self(x) raise TypeError, "no canonical coercion of x(=%s) into %s"%(x,self)
59a8c8150ddc834f677d2370b3a893453d7e07c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/59a8c8150ddc834f677d2370b3a893453d7e07c3/fraction_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2894, 2765, 67, 12, 2890, 16, 619, 4672, 309, 1549, 12, 92, 16, 8330, 67, 1518, 67, 2956, 18, 13724, 974, 1046, 13, 521, 471, 619, 18, 2938, 1435, 422, 365, 30, 327, 619, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2894, 2765, 67, 12, 2890, 16, 619, 4672, 309, 1549, 12, 92, 16, 8330, 67, 1518, 67, 2956, 18, 13724, 974, 1046, 13, 521, 471, 619, 18, 2938, 1435, 422, 365, 30, 327, 619, 309, ...
self.am_setModuleParam('shifterProxy','DataManager') self.am_setModuleParam('shifterProxyLocation',proxyLocation)
self.am_setModuleParam( 'shifterProxy', 'DataManager' ) self.am_setModuleParam( 'shifterProxyLocation', proxyLocation )
def initialize(self): self.TransferDB = TransferDB() self.useProxies = self.am_getOption('UseProxies','True').lower() in ( "y", "yes", "true" ) proxyLocation = self.am_getOption('ProxyLocation',False) if self.useProxies: self.am_setModuleParam('shifterProxy','DataManager') self.am_setModuleParam('shifterProxyLocation',...
75f9ff3f5f046181ee9f2e9b6a6d0d0b668c1251 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/75f9ff3f5f046181ee9f2e9b6a6d0d0b668c1251/FTSMonitorAgent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 365, 18, 5912, 2290, 273, 12279, 2290, 1435, 365, 18, 1202, 21488, 273, 365, 18, 301, 67, 588, 1895, 2668, 3727, 21488, 17023, 5510, 16063, 8167, 1435, 316, 261, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 365, 18, 5912, 2290, 273, 12279, 2290, 1435, 365, 18, 1202, 21488, 273, 365, 18, 301, 67, 588, 1895, 2668, 3727, 21488, 17023, 5510, 16063, 8167, 1435, 316, 261, 31...
return ret
self.callback(ret)
def processAnswer_15(self, message): '''looking for Mail eXchanger for the domain
6f47c1a0adeb35adc7a29f90a83a4050fca41779 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/6f47c1a0adeb35adc7a29f90a83a4050fca41779/dns.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 13203, 67, 3600, 12, 2890, 16, 883, 4672, 9163, 7330, 310, 364, 11542, 425, 60, 343, 11455, 364, 326, 2461, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 13203, 67, 3600, 12, 2890, 16, 883, 4672, 9163, 7330, 310, 364, 11542, 425, 60, 343, 11455, 364, 326, 2461, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
self.debug("dict word(%s) err(%s) loc(%s)" % (word, msg, loc))
self.Debug("dict word(%s) err(%s) loc(%s)" % (word, msg, loc))
def lookup_ciba(self, word): connect = httplib.HTTPConnection('cb.kingsoft.com', 80) connect.request("GET", "/search?s=%s&t=word&lang=utf-8" % (word.encode("UTF-8"), )) response = connect.getresponse() if response.status != 200: msg = "%d:%s" % (response.status, response.reason) loc = response.getheader("location") sel...
d0f1bbac00a761b0016dc9bc88dc6f9f32432278 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10749/d0f1bbac00a761b0016dc9bc88dc6f9f32432278/weblookup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 67, 71, 495, 69, 12, 2890, 16, 2076, 4672, 3077, 273, 15851, 6673, 18, 3693, 1952, 2668, 7358, 18, 79, 899, 4401, 18, 832, 2187, 8958, 13, 3077, 18, 2293, 2932, 3264, 3113, 2206,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3689, 67, 71, 495, 69, 12, 2890, 16, 2076, 4672, 3077, 273, 15851, 6673, 18, 3693, 1952, 2668, 7358, 18, 79, 899, 4401, 18, 832, 2187, 8958, 13, 3077, 18, 2293, 2932, 3264, 3113, 2206,...
address = imp_address))
address = imp_address, hint_name_table_rva = hint_name_table_rva))
def parse_imports(self, original_first_thunk, first_thunk, forwarder_chain): """Parse the imported symbols. It will fill a list, which will be avalable as the dictionary attribute "imports". Its keys will be the DLL names and the values all the symbols imported from that object. """ imported_symbols = [] imports_sect...
492d8eddd70fdf3fe0ba324cb87b808ddd402897 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4177/492d8eddd70fdf3fe0ba324cb87b808ddd402897/pefile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 21350, 12, 2890, 16, 2282, 67, 3645, 67, 451, 1683, 16, 1122, 67, 451, 1683, 16, 364, 20099, 67, 5639, 4672, 3536, 3201, 326, 9101, 7963, 18, 225, 2597, 903, 3636, 279, 666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 21350, 12, 2890, 16, 2282, 67, 3645, 67, 451, 1683, 16, 1122, 67, 451, 1683, 16, 364, 20099, 67, 5639, 4672, 3536, 3201, 326, 9101, 7963, 18, 225, 2597, 903, 3636, 279, 666, ...
if account: if len(models.Account.get_accounts_for_nickname(account.nickname)) > 1: user_key = email else: user_key = nick cache_timeout = 300
if (account and len(models.Account.get_accounts_for_nickname(account.nickname)) > 1): user_key = email
def show_user(email, arg=None, autoescape=None, memcache_results=None): """Render a link to the user's dashboard, with text being the nickname.""" if isinstance(email, users.User): email = email.email() if not arg: user = users.get_current_user() if user is not None and email == user.email(): return 'me' ret = None if...
19b3d737ff7c4d7ae891275966d796d7506780f7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/476/19b3d737ff7c4d7ae891275966d796d7506780f7/library.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 1355, 12, 3652, 16, 1501, 33, 7036, 16, 3656, 6939, 33, 7036, 16, 20549, 67, 4717, 33, 7036, 4672, 3536, 3420, 279, 1692, 358, 326, 729, 1807, 11825, 16, 598, 977, 3832, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2405, 67, 1355, 12, 3652, 16, 1501, 33, 7036, 16, 3656, 6939, 33, 7036, 16, 20549, 67, 4717, 33, 7036, 4672, 3536, 3420, 279, 1692, 358, 326, 729, 1807, 11825, 16, 598, 977, 3832, 326,...
IEEEFormatTestCase, IEEEOperationsTestCase, )
IEEEFormatTestCase)
def test_main(): test_support.run_unittest( FormatFunctionsTestCase, UnknownFormatTestCase, IEEEFormatTestCase, IEEEOperationsTestCase, )
d9597241d7678ad0888b5d15319c8d7f56f3538a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/d9597241d7678ad0888b5d15319c8d7f56f3538a/test_float.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1842, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 4077, 7503, 4709, 2449, 16, 9077, 1630, 4709, 2449, 16, 467, 9383, 41, 1630, 4709, 2449, 13, 225, 2, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5254, 13332, 1842, 67, 13261, 18, 2681, 67, 4873, 3813, 12, 4077, 7503, 4709, 2449, 16, 9077, 1630, 4709, 2449, 16, 467, 9383, 41, 1630, 4709, 2449, 13, 225, 2, -100, -100, -...
if gnode.parent:
if gnode.data['log'][-1][1] != 'root':
def sim_walk(gtree, snode, gnode, p, s_walk_time=0.0, g_walk_time=0.0, \ time_until_force=forcetime, eventlog=[]):
9e666bd2e1ce79720a70adc6d8dc1bb739182c1c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7683/9e666bd2e1ce79720a70adc6d8dc1bb739182c1c/sim_v2_2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3142, 67, 11348, 12, 75, 3413, 16, 272, 2159, 16, 314, 2159, 16, 293, 16, 272, 67, 11348, 67, 957, 33, 20, 18, 20, 16, 314, 67, 11348, 67, 957, 33, 20, 18, 20, 16, 521, 813, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3142, 67, 11348, 12, 75, 3413, 16, 272, 2159, 16, 314, 2159, 16, 293, 16, 272, 67, 11348, 67, 957, 33, 20, 18, 20, 16, 314, 67, 11348, 67, 957, 33, 20, 18, 20, 16, 521, 813, 67, ...
def load(self, raw): list_loaded = list() pos = 0 load_2 = True while 1: regl = "(\"|\')(.*?)(\"|\')(, |\])" pl = re.compile(regl, re.UNICODE) xl = pl.search(raw, pos) if xl == None: if len(list_loaded) >= 1: return list_loaded break elif len(done) == 0: break pos = xl.end() word = xl.group(2) if word not in list_loa...
def load(self, raw): list_loaded = list() pos = 0 load_2 = True while 1: regl = "(\"|\')(.*?)(\"|\')(, |\])" pl = re.compile(regl, re.UNICODE) xl = pl.search(raw, pos) if xl == None: if len(list_loaded) >= 1: return list_loaded break elif len(done) == 0: break pos = xl.end() word = xl.group(2) if word not in list_loa...
def load(self, raw): list_loaded = list() pos = 0 load_2 = True # I search with a regex how many user have not the talk page # and i put them in a list (i find it more easy and secure) while 1: regl = "(\"|\')(.*?)(\"|\')(, |\])" pl = re.compile(regl, re.UNICODE) xl = pl.search(raw, pos) if xl == None: if len(list_load...
81fef4c88acffaa26df691b3ebff2e48e9a2bdc9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/81fef4c88acffaa26df691b3ebff2e48e9a2bdc9/checkimages.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 16, 1831, 4672, 666, 67, 4230, 273, 666, 1435, 949, 273, 374, 1262, 67, 22, 273, 1053, 468, 467, 1623, 598, 279, 3936, 3661, 4906, 729, 1240, 486, 326, 26591, 1363, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1262, 12, 2890, 16, 1831, 4672, 666, 67, 4230, 273, 666, 1435, 949, 273, 374, 1262, 67, 22, 273, 1053, 468, 467, 1623, 598, 279, 3936, 3661, 4906, 729, 1240, 486, 326, 26591, 1363, 468...
setup_requires = 'setupdocs',
setup_requires = 'setupdocs>=1.0',
def run(self): distbuild.run(self) self.run_command('build_docs')
55b2cce4a4cb4feb0371f0e667be6203b0a6f152 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13168/55b2cce4a4cb4feb0371f0e667be6203b0a6f152/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2411, 3510, 18, 2681, 12, 2890, 13, 365, 18, 2681, 67, 3076, 2668, 3510, 67, 8532, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 4672, 2411, 3510, 18, 2681, 12, 2890, 13, 365, 18, 2681, 67, 3076, 2668, 3510, 67, 8532, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
del os.environ['DYLD_BIND_AT_LAUNCH']
def runTestCase(self): os.environ['DYLD_BIND_AT_LAUNCH'] = '1' fp = os.popen('/tmp/test.bin', 'r') del os.environ['DYLD_BIND_AT_LAUNCH'] data = fp.read() xit = fp.close() if xit != None: self.fail("Running failed[%s]"%(xit,)) return data
4a12c9814f2002d2d55207d66cb9c82e2048b8a0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/4a12c9814f2002d2d55207d66cb9c82e2048b8a0/dejagnu.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 4709, 2449, 12, 2890, 4672, 1140, 18, 28684, 3292, 40, 61, 12069, 67, 2708, 67, 789, 67, 2534, 2124, 1792, 3546, 273, 296, 21, 11, 4253, 273, 1140, 18, 84, 3190, 2668, 19, 5645, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4709, 2449, 12, 2890, 4672, 1140, 18, 28684, 3292, 40, 61, 12069, 67, 2708, 67, 789, 67, 2534, 2124, 1792, 3546, 273, 296, 21, 11, 4253, 273, 1140, 18, 84, 3190, 2668, 19, 5645, ...
else: was_on_both = False
elif left_protocol == 'irc': p.createDuplicateOnIRC() else: was_on_both = False
def removeParticipant(self, left_protocol, nickname, leave_message): """Remove the participant using nickname from the bridge. Raises a NoSuchParticipantException if nickname is not used in the bridge.""" was_on_both = None p = self.getParticipant(nickname) if p.protocol == 'xmpp': if left_protocol == 'irc': was_on_bo...
149dd43020f1e98a97573a2bc38f82171b550782 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9915/149dd43020f1e98a97573a2bc38f82171b550782/bridge.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 22540, 12, 2890, 16, 2002, 67, 8373, 16, 19570, 16, 8851, 67, 2150, 4672, 3536, 3288, 326, 14188, 1450, 19570, 628, 326, 10105, 18, 20497, 279, 5823, 22540, 503, 309, 19570, 353, 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, 1206, 22540, 12, 2890, 16, 2002, 67, 8373, 16, 19570, 16, 8851, 67, 2150, 4672, 3536, 3288, 326, 14188, 1450, 19570, 628, 326, 10105, 18, 20497, 279, 5823, 22540, 503, 309, 19570, 353, 4...
spe.removeEntityByInstance(spe.ownsWeapon(self.userid, weapon))
spe.removeEntityByInstance(pWeapons[weapon]["instance"])
def strip(self, levelStrip=False, exceptions=[]): ''' * Strips/removes all weapons from the player minus the knife and their current levels weapon.
02e919b0ad47effe0963368576895a6db2c8596f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4555/02e919b0ad47effe0963368576895a6db2c8596f/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2569, 12, 2890, 16, 1801, 16632, 33, 8381, 16, 4798, 33, 8526, 4672, 9163, 380, 3978, 7146, 19, 2764, 10829, 777, 732, 438, 7008, 628, 326, 7291, 12647, 326, 15516, 24723, 471, 3675, 783...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2569, 12, 2890, 16, 1801, 16632, 33, 8381, 16, 4798, 33, 8526, 4672, 9163, 380, 3978, 7146, 19, 2764, 10829, 777, 732, 438, 7008, 628, 326, 7291, 12647, 326, 15516, 24723, 471, 3675, 783...
self.client = self.user.createClient()
self.client = self.user.createClientWithCerts()
def testWhitelistAuthNOK(self): self.config["nuauth_tls_auth_by_cert"] = 0 self.config["session_authtype_whitelist_groups"] = "\"123\"" self.nuauth = Nuauth(self.config)
43e708e0646709fc09702b0ecd4dc971eab58098 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10929/43e708e0646709fc09702b0ecd4dc971eab58098/test_session_authtype.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 18927, 1730, 50, 3141, 12, 2890, 4672, 365, 18, 1425, 9614, 13053, 1944, 67, 17116, 67, 1944, 67, 1637, 67, 7593, 11929, 273, 374, 365, 18, 1425, 9614, 3184, 67, 5854, 647, 388, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18927, 1730, 50, 3141, 12, 2890, 4672, 365, 18, 1425, 9614, 13053, 1944, 67, 17116, 67, 1944, 67, 1637, 67, 7593, 11929, 273, 374, 365, 18, 1425, 9614, 3184, 67, 5854, 647, 388, ...
print "TCM/ConfigFS storage object already exists: " + cfs_dev_path return -1
tcm_err("TCM/ConfigFS storage object already exists: " + cfs_dev_path)
def tcm_createvirtdev(option, opt_str, value, parser): cfs_unsplit = str(value[0]) cfs_path_tmp = cfs_unsplit.split('/') hba_cfs = cfs_path_tmp[0] print " ConfigFS HBA: " + hba_cfs cfs_hba_path = tcm_get_cfs_prefix(hba_cfs) if (os.path.isdir(cfs_hba_path) == False): ret = os.mkdir(cfs_hba_path) if not ret: print "Succ...
f87b5169f3cb5a25973c98c2566aee7c9ce7268f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8449/f87b5169f3cb5a25973c98c2566aee7c9ce7268f/tcm_node.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1715, 81, 67, 2640, 14035, 5206, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 4672, 276, 2556, 67, 318, 4939, 273, 609, 12, 1132, 63, 20, 5717, 276, 2556, 67, 803, 67, 5645, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1715, 81, 67, 2640, 14035, 5206, 12, 3482, 16, 2153, 67, 701, 16, 460, 16, 2082, 4672, 276, 2556, 67, 318, 4939, 273, 609, 12, 1132, 63, 20, 5717, 276, 2556, 67, 803, 67, 5645, 273, ...
self.do_val(val, singular, val == vals[-1])
self.do_val(val, value_prefix, val == vals[-1])
def do_enum(self, enum): singular = enum.getAttribute('singular') or \ enum.getAttribute('value-prefix') or \ enum.getAttribute('name')
71c8ccfcbc2f9c0e09ff961af5df6058b31cd788 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7593/71c8ccfcbc2f9c0e09ff961af5df6058b31cd788/qt4-constants-gen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 7924, 12, 2890, 16, 2792, 4672, 10048, 273, 2792, 18, 588, 1499, 2668, 17835, 6134, 578, 521, 2792, 18, 588, 1499, 2668, 1132, 17, 3239, 6134, 578, 521, 2792, 18, 588, 1499, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 7924, 12, 2890, 16, 2792, 4672, 10048, 273, 2792, 18, 588, 1499, 2668, 17835, 6134, 578, 521, 2792, 18, 588, 1499, 2668, 1132, 17, 3239, 6134, 578, 521, 2792, 18, 588, 1499, 2...
EXAMPLES: These computations use pseudo-random numbers, so we set
EXAMPLES: These computations use pseudo-random numbers, so we set
def derived_series(self): """ Return the derived series of this group as a list of permutation groups. EXAMPLES: These computations use pseudo-random numbers, so we set the seed for reproducible testing. :: sage: set_random_seed(0) sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) sage: G.derived_series() # ran...
f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a/permgroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10379, 67, 10222, 12, 2890, 4672, 3536, 2000, 326, 10379, 4166, 434, 333, 1041, 487, 279, 666, 434, 17440, 3252, 18, 225, 5675, 8900, 11386, 30, 225, 8646, 5305, 1012, 999, 12454, 17, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10379, 67, 10222, 12, 2890, 4672, 3536, 2000, 326, 10379, 4166, 434, 333, 1041, 487, 279, 666, 434, 17440, 3252, 18, 225, 5675, 8900, 11386, 30, 225, 8646, 5305, 1012, 999, 12454, 17, 91...
if w.score != 42:
if w.score != 69:
def remove_unreachable(self): """Remove unreachable nodes and dangling edges.""" # Mark reachable nodes from the end for w in self.reverse_breadth(): w.score = 42 # Find and remove unreachable ones begone = {} for i, w in enumerate(self.nodes): if w.score != 42: begone[w] = 1 self.nodes[i] = None self.nodes = [w for w ...
3ca10ecb68dc5fa01bed239a079fe3e145ecdc1a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6303/3ca10ecb68dc5fa01bed239a079fe3e145ecdc1a/lattice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 318, 17246, 12, 2890, 4672, 3536, 3288, 25132, 2199, 471, 302, 539, 2456, 5231, 12123, 468, 6622, 19234, 2199, 628, 326, 679, 364, 341, 316, 365, 18, 9845, 67, 70, 25254, 13332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 318, 17246, 12, 2890, 4672, 3536, 3288, 25132, 2199, 471, 302, 539, 2456, 5231, 12123, 468, 6622, 19234, 2199, 628, 326, 679, 364, 341, 316, 365, 18, 9845, 67, 70, 25254, 13332...
return [ins for _,ins in self.body if is_jcc(ins.op) or is_dynjump(ins.op)][0]
return [ins for _, ins in self.body if is_jcc(ins.op) or is_dynjump(ins.op)][0]
def get_branch(self): return [ins for _,ins in self.body if is_jcc(ins.op) or is_dynjump(ins.op)][0]
63b309d6f3838e4cb5c2921faf3bb1472f46245c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4260/63b309d6f3838e4cb5c2921faf3bb1472f46245c/newslice.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7500, 12, 2890, 4672, 327, 306, 2679, 364, 389, 16, 2679, 316, 365, 18, 3432, 309, 353, 67, 78, 952, 12, 2679, 18, 556, 13, 578, 353, 67, 28595, 24574, 12, 2679, 18, 556, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 336, 67, 7500, 12, 2890, 4672, 327, 306, 2679, 364, 389, 16, 2679, 316, 365, 18, 3432, 309, 353, 67, 78, 952, 12, 2679, 18, 556, 13, 578, 353, 67, 28595, 24574, 12, 2679, 18, 556, ...
raise ValueError("Block size should be 128, 256 or 256 bits")
raise ValueError("Blocksize should be 16, 24 or 32")
def __init__(self,key,mode,IV,counter,blocksize): if (len(key) not in (16,24,32)) and type(key) is not tuple: raise ValueError("Key should be 128, 256 or 256 bits") if blocksize not in (16,24,32): raise ValueError("Block size should be 128, 256 or 256 bits") cipher_module = rijndael args = {'block_size':blocksize} self...
a690e15f692b9637614051020364bf4d64f8a403 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8009/a690e15f692b9637614051020364bf4d64f8a403/python_Rijndael.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 856, 16, 3188, 16, 8188, 16, 7476, 16, 2629, 1467, 4672, 309, 261, 1897, 12, 856, 13, 486, 316, 261, 2313, 16, 3247, 16, 1578, 3719, 471, 618, 12, 856,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 856, 16, 3188, 16, 8188, 16, 7476, 16, 2629, 1467, 4672, 309, 261, 1897, 12, 856, 13, 486, 316, 261, 2313, 16, 3247, 16, 1578, 3719, 471, 618, 12, 856,...
result = pilotAgentsDB.getPilotInfo(pilotRefs) if not result['OK']: self.log.error('Failed to get pilots info: %s' % result['Message'])
result = pilotAgentsDB.getPilotInfo( pilotRefs ) if not result['OK']: self.log.error( 'Failed to get pilots info: %s' % result['Message'] )
def updatePilotStatus(self): """ Update status of pilots in transient states """ for queue in self.queueDict: ce = self.queueDict[queue]['CE'] ceName = self.queueDict[queue]['CEName'] queueName = self.queueDict[queue]['QueueName'] result = pilotAgentsDB.selectPilots({'DestinationSite':ceName, 'Queue':queueName, 'GridTy...
fecf3d418a4e3a08002c58982e809e7e4b152546 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/fecf3d418a4e3a08002c58982e809e7e4b152546/SiteDirector.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 52, 22797, 1482, 12, 2890, 4672, 3536, 2315, 1267, 434, 24970, 6968, 316, 12315, 5493, 3536, 364, 2389, 316, 365, 18, 4000, 5014, 30, 5898, 273, 365, 18, 4000, 5014, 63, 4000, 2396...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 52, 22797, 1482, 12, 2890, 4672, 3536, 2315, 1267, 434, 24970, 6968, 316, 12315, 5493, 3536, 364, 2389, 316, 365, 18, 4000, 5014, 30, 5898, 273, 365, 18, 4000, 5014, 63, 4000, 2396...
_ret = _reg + " ZEROFILL"
_ret = _ret + " ZEROFILL"
def addSQLAttrs(self, str): _ret = str if str is None or len(str) < 1: return None
1d9d8f67ac058ee085a01493b02144d777ac7aed /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6718/1d9d8f67ac058ee085a01493b02144d777ac7aed/col.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 3997, 8262, 12, 2890, 16, 609, 4672, 389, 1349, 273, 609, 309, 609, 353, 599, 578, 562, 12, 701, 13, 411, 404, 30, 327, 599, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 3997, 8262, 12, 2890, 16, 609, 4672, 389, 1349, 273, 609, 309, 609, 353, 599, 578, 562, 12, 701, 13, 411, 404, 30, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
It's also not necessary to set theses line as a Subject destructor:
It's also not necessary to set these lines as a Subject destructor:
def clean(self): """ Delete the contents that are stored on disk for this Subject.
fd060612ab239e1de4ad43f442ae9d23e661fbaf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/fd060612ab239e1de4ad43f442ae9d23e661fbaf/interwiki.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 12, 2890, 4672, 3536, 2504, 326, 2939, 716, 854, 4041, 603, 4234, 364, 333, 9912, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2721, 12, 2890, 4672, 3536, 2504, 326, 2939, 716, 854, 4041, 603, 4234, 364, 333, 9912, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
binlib = os.path.join(prefix, 'lib/python/lib')
binlib = os.path.join(exec_prefix, 'lib/python/lib')
def main(): # overridable context prefix = PREFIX # settable with -p option extensions = [] path = sys.path # output files frozen_c = 'frozen.c' config_c = 'config.c' target = 'a.out' # normally derived from script name makefile = 'Makefile' # parse command line try: opts, args = getopt.getopt(sys.argv[1:], 'e:p:'...
bbf003ce64fe627cd70357565d8e6a46983244b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/bbf003ce64fe627cd70357565d8e6a46983244b7/freeze.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2774, 13332, 468, 5713, 27621, 819, 1633, 273, 17154, 1082, 202, 7, 444, 2121, 598, 300, 84, 1456, 4418, 273, 5378, 589, 273, 2589, 18, 803, 225, 468, 876, 1390, 12810, 67, 71, 273, 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, 2774, 13332, 468, 5713, 27621, 819, 1633, 273, 17154, 1082, 202, 7, 444, 2121, 598, 300, 84, 1456, 4418, 273, 5378, 589, 273, 2589, 18, 803, 225, 468, 876, 1390, 12810, 67, 71, 273, 29...
self.assertRaises(TypeError, list, imap(onearg, N(s)))
self.assertRaises(TypeError, imap, onearg, N(s))
def test_imap(self): for s in (range(10), range(0), range(100), (7,11), xrange(20,50,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(imap(onearg, g(s))), map(onearg, g(s))) self.assertEqual(list(imap(operator.pow, g(s), g(s))), map(operator.pow, g(s), g(s))) self.assertRaises(TypeError, imap, onearg, X(s)) sel...
5cb6bfcb86589e7d483f1ae2db98f69a231d8a0b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5cb6bfcb86589e7d483f1ae2db98f69a231d8a0b/test_itertools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 12161, 12, 2890, 4672, 364, 272, 316, 261, 3676, 12, 2163, 3631, 1048, 12, 20, 3631, 1048, 12, 6625, 3631, 261, 27, 16, 2499, 3631, 12314, 12, 3462, 16, 3361, 16, 25, 3719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12161, 12, 2890, 4672, 364, 272, 316, 261, 3676, 12, 2163, 3631, 1048, 12, 20, 3631, 1048, 12, 6625, 3631, 261, 27, 16, 2499, 3631, 12314, 12, 3462, 16, 3361, 16, 25, 3719, ...
self._cvariables.append(Var(name, descr, self._tmp_type[name]))
var.set_type(self._tmp_type[name])
def __init__(self, cls, verbosity=0): self._tmp_ivar = {} self._tmp_cvar = {} self._tmp_type = {} ObjDoc.__init__(self, cls, verbosity)
d3395d508175517a8a8289ffc33bd81b4ee231c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/d3395d508175517a8a8289ffc33bd81b4ee231c2/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2028, 16, 11561, 33, 20, 4672, 365, 6315, 5645, 67, 22647, 273, 2618, 365, 6315, 5645, 67, 71, 1401, 273, 2618, 365, 6315, 5645, 67, 723, 273, 2618, 1876...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16, 2028, 16, 11561, 33, 20, 4672, 365, 6315, 5645, 67, 22647, 273, 2618, 365, 6315, 5645, 67, 71, 1401, 273, 2618, 365, 6315, 5645, 67, 723, 273, 2618, 1876...
print "T -> R:", hex_dump(TR) print "TR == Next(TN, 96):", (pycrypto1.bytes_to_long(TR) ^ TR_x) == crypto1.prng_next(TN_l, 96)
print "T -> R:", hex_dump(TR) print "TR == Next(TN, 96):", (pycrypto1.bytes_to_long(TR) ^ TR_x) == crypto1.prng_next(TN_l, 96)
def hex_dump(string): """Dumps data as hexstrings""" return ' '.join(["%0.2X" % ord(x) for x in string])
89bd4c113a22373a47f433c0b409d086180f9265 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4505/89bd4c113a22373a47f433c0b409d086180f9265/mifareauth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3827, 67, 8481, 12, 1080, 4672, 3536, 29225, 501, 487, 3827, 10219, 8395, 327, 296, 2418, 5701, 3816, 28385, 20, 18, 22, 60, 6, 738, 4642, 12, 92, 13, 364, 619, 316, 533, 5717, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3827, 67, 8481, 12, 1080, 4672, 3536, 29225, 501, 487, 3827, 10219, 8395, 327, 296, 2418, 5701, 3816, 28385, 20, 18, 22, 60, 6, 738, 4642, 12, 92, 13, 364, 619, 316, 533, 5717, 225, ...
self.bind_tasks()
if tasks is None: tasks = self.bind_tasks()
def make_description(self): """ Returns the description of this project, in the context of the settings given. """ self.setup_config() self.bind_tasks() out = StringIO() title = self.title or self.name title = '%s (%s)' % (title, self.project_name) print >> out, underline(title) doc = self.__doc__ if doc == Project.__d...
c04155dc1a840f082863591272eb5ee0abc79307 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12796/c04155dc1a840f082863591272eb5ee0abc79307/project.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 3384, 12, 2890, 4672, 3536, 2860, 326, 2477, 434, 333, 1984, 16, 316, 326, 819, 434, 326, 1947, 864, 18, 3536, 365, 18, 8401, 67, 1425, 1435, 309, 4592, 353, 599, 30, 4592, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 3384, 12, 2890, 4672, 3536, 2860, 326, 2477, 434, 333, 1984, 16, 316, 326, 819, 434, 326, 1947, 864, 18, 3536, 365, 18, 8401, 67, 1425, 1435, 309, 4592, 353, 599, 30, 4592, ...
Greene '''
Greene 5th edition ''' if not exog is None: resid = sm.OLS(y, exog).fit()
def het_breushpagan(y,x): '''Lagrange Multiplier Heteroscedasticity Test by Breush-Pagan Notes ----- assumes x contains constant (for counting dof) need to check this again, is different in Greene p224 References ---------- http://en.wikipedia.org/wiki/Breusch%E2%80%93Pagan_test Greene ''' x = np.asarray(x) y = np....
65242e05db93602342fa77d2579bc8cae0fd6ea0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/65242e05db93602342fa77d2579bc8cae0fd6ea0/stattools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 278, 67, 6073, 1218, 9095, 304, 12, 93, 16, 92, 4672, 9163, 26093, 3676, 5991, 5742, 670, 847, 538, 3263, 8160, 560, 7766, 635, 605, 266, 1218, 17, 10156, 304, 225, 29584, 9135, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 366, 278, 67, 6073, 1218, 9095, 304, 12, 93, 16, 92, 4672, 9163, 26093, 3676, 5991, 5742, 670, 847, 538, 3263, 8160, 560, 7766, 635, 605, 266, 1218, 17, 10156, 304, 225, 29584, 9135, 1...
type = get_attr('type')
type = widget.attrib.get('type')
def readSkin(screen, skin, names, desktop): if not isinstance(names, list): names = [names] name = "<embedded-in-'%s'>" % screen.__class__.__name__ # try all skins, first existing one have priority for n in names: myscreen, path = lookupScreen(n) if myscreen is not None: # use this name for debug output name = n brea...
726a696a8d423d9f994767f2df01e135f07fca96 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/726a696a8d423d9f994767f2df01e135f07fca96/skin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 26827, 12, 9252, 16, 18705, 16, 1257, 16, 21304, 4672, 309, 486, 1549, 12, 1973, 16, 666, 4672, 1257, 273, 306, 1973, 65, 225, 508, 273, 3532, 20722, 17, 267, 6627, 9, 87, 28533, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 855, 26827, 12, 9252, 16, 18705, 16, 1257, 16, 21304, 4672, 309, 486, 1549, 12, 1973, 16, 666, 4672, 1257, 273, 306, 1973, 65, 225, 508, 273, 3532, 20722, 17, 267, 6627, 9, 87, 28533, ...
Stats.get_stats().inc("_get_bins_idxs")
def _get_bins_idxs(self, obj): Stats.get_stats().inc("_get_bins_idxs") pos = ( float(obj.pos[0]) / self.size[0] * self.cols, float(obj.pos[1]) / self.size[1] * self.rows ) bin_i = int(pos[0]) bin_j = int(pos[1]) i_pos = pos[0] - bin_i j_pos = pos[1] - bin_j
9b09cf6ef07d2ee54bff2ed908465c95a67128b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4253/9b09cf6ef07d2ee54bff2ed908465c95a67128b1/main.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 11862, 67, 24156, 12, 2890, 16, 1081, 4672, 949, 273, 261, 1431, 12, 2603, 18, 917, 63, 20, 5717, 342, 365, 18, 1467, 63, 20, 65, 380, 365, 18, 6842, 16, 1431, 12, 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, 389, 588, 67, 11862, 67, 24156, 12, 2890, 16, 1081, 4672, 949, 273, 261, 1431, 12, 2603, 18, 917, 63, 20, 5717, 342, 365, 18, 1467, 63, 20, 65, 380, 365, 18, 6842, 16, 1431, 12, 26...
self.__expiration_label.hide() self.__keep_link.hide() self.__dash.hide()
self._expiration_label.hide() self._keep_link.hide() self._dash.hide()
def handle_keep(widget): messages.KeepVideo(item_info.id).send_to_backend() self.__expiration_label.hide() self.__keep_link.hide() self.__dash.hide()
70532af449886ebb611f8ff5ded0591d3fc90765 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/70532af449886ebb611f8ff5ded0591d3fc90765/video.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 67, 10102, 12, 6587, 4672, 2743, 18, 11523, 10083, 12, 1726, 67, 1376, 18, 350, 2934, 4661, 67, 869, 67, 9993, 1435, 365, 16186, 19519, 67, 1925, 18, 11248, 1435, 365, 16186, 10102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 67, 10102, 12, 6587, 4672, 2743, 18, 11523, 10083, 12, 1726, 67, 1376, 18, 350, 2934, 4661, 67, 869, 67, 9993, 1435, 365, 16186, 19519, 67, 1925, 18, 11248, 1435, 365, 16186, 10102...
if self.debugging: print '--- writing', file
if self.debugging: print '!'*self.debugging, '--- writing', file
def do_node(self, args): self.endnode() self.nodelineno = 0 parts = string.splitfields(args, ',') while len(parts) < 4: parts.append('') for i in range(4): parts[i] = string.strip(parts[i]) self.nodelinks = parts [name, next, prev, up] = parts[:4] file = self.dirname + '/' + makefile(name) if self.filenames.has_key(fil...
db6f5c4045c0343f80223a59ad6975c71dc11049 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/db6f5c4045c0343f80223a59ad6975c71dc11049/texi2html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2159, 12, 2890, 16, 833, 4672, 365, 18, 409, 2159, 1435, 365, 18, 82, 1009, 267, 5764, 273, 374, 2140, 273, 533, 18, 4939, 2821, 12, 1968, 16, 3316, 13, 1323, 562, 12, 6019,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2159, 12, 2890, 16, 833, 4672, 365, 18, 409, 2159, 1435, 365, 18, 82, 1009, 267, 5764, 273, 374, 2140, 273, 533, 18, 4939, 2821, 12, 1968, 16, 3316, 13, 1323, 562, 12, 6019,...
if not obj.isDownloaded() or obj.isNonVideoFile(): return False try: rv = newlyDownloadedMemory[obj.getID()] except KeyError: rv = (obj.getState() == u"newly-downloaded") newlyDownloadedMemory[obj.getID()] = rv return rv
return (obj.isDownloaded() and not obj.isNonVideoFile() and (obj.getState() == u"newly-downloaded"))
def newWatchableItems(obj): if not obj.isDownloaded() or obj.isNonVideoFile(): return False try: rv = newlyDownloadedMemory[obj.getID()] except KeyError: rv = (obj.getState() == u"newly-downloaded") newlyDownloadedMemory[obj.getID()] = rv return rv
401a7c9b8d579876a4949bf19a7cd6caf6dfd61d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/401a7c9b8d579876a4949bf19a7cd6caf6dfd61d/filters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 5234, 429, 3126, 12, 2603, 4672, 327, 261, 2603, 18, 291, 4164, 4230, 1435, 471, 486, 1081, 18, 291, 3989, 10083, 812, 1435, 471, 261, 2603, 18, 588, 1119, 1435, 422, 582, 6, 2704...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 394, 5234, 429, 3126, 12, 2603, 4672, 327, 261, 2603, 18, 291, 4164, 4230, 1435, 471, 486, 1081, 18, 291, 3989, 10083, 812, 1435, 471, 261, 2603, 18, 588, 1119, 1435, 422, 582, 6, 2704...
Globals.app = self
Globals.application = self
def OnInit(self): """ Main application initialization. """ self.applicationResources=None self.association={} self.chandlerDirectory=None self.parcels={} self.storage=None self.model=None self.jabberClient = None self.presenceWindow = None self.chandlerDirectory = os.path.dirname (os.path.abspath (sys.argv[0]))
dd2e0936adb262b1b92258a24f1be45699c9ad8e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/dd2e0936adb262b1b92258a24f1be45699c9ad8e/Application.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2570, 12, 2890, 4672, 3536, 12740, 2521, 10313, 18, 3536, 365, 18, 3685, 3805, 33, 7036, 365, 18, 19358, 12938, 365, 18, 343, 464, 749, 2853, 33, 7036, 365, 18, 1065, 2183, 87, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2755, 2570, 12, 2890, 4672, 3536, 12740, 2521, 10313, 18, 3536, 365, 18, 3685, 3805, 33, 7036, 365, 18, 19358, 12938, 365, 18, 343, 464, 749, 2853, 33, 7036, 365, 18, 1065, 2183, 87, 1...
items.append(Playlist(playlist=filename, parent=parent, build=True))
items.append(Playlist(playlist=filename, parent=parent, display_type=display_type, build=True))
def get(self, parent, files): """ return a list of items based on the files """ items = []
d8e93ebc38b517084057c8d56a96856b53de42e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/d8e93ebc38b517084057c8d56a96856b53de42e7/playlist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 982, 16, 1390, 4672, 3536, 327, 279, 666, 434, 1516, 2511, 603, 326, 1390, 3536, 1516, 273, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 16, 982, 16, 1390, 4672, 3536, 327, 279, 666, 434, 1516, 2511, 603, 326, 1390, 3536, 1516, 273, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
newFrame.size.width = 824
newFrame.size.height = 198
def adjustContent(self, videoWindow, animate): newFrame = self.window().frame() if videoWindow.is_fullscreen: self.playbackControls.setHidden_(NO) newFrame.size.width = 824 else: self.playbackControls.setHidden_(YES) newFrame.size.width = 516 newFrame.origin.x = self.getHorizontalPosition(videoWindow, newFrame.size.wid...
89d9138373ff2ef66014f5b54b00c65e984fba71 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/89d9138373ff2ef66014f5b54b00c65e984fba71/overlay.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5765, 1350, 12, 2890, 16, 6191, 3829, 16, 14671, 4672, 394, 3219, 273, 365, 18, 5668, 7675, 3789, 1435, 309, 6191, 3829, 18, 291, 67, 2854, 9252, 30, 365, 18, 1601, 823, 16795, 18, 542...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5765, 1350, 12, 2890, 16, 6191, 3829, 16, 14671, 4672, 394, 3219, 273, 365, 18, 5668, 7675, 3789, 1435, 309, 6191, 3829, 18, 291, 67, 2854, 9252, 30, 365, 18, 1601, 823, 16795, 18, 542...
sysctls = setup_shm_sysctl(64*1048576) do_test("shm-perms") restore_shm_sysctl(sysctls)
do_shm_test("shm-perms", 64*1024*1024)
def functional_tests(): """ Run the set of functional tests. """ global linkhuge_wordsizes # Kernel background tests not requiring hugepage support do_test("zero_filesize_segment") # Library background tests not requiring hugepage support do_test("test_root") do_test("meminfo_nohuge") # Library tests requiring kerne...
c5f56f187505f039ebb692a615fefe766830b210 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3715/c5f56f187505f039ebb692a615fefe766830b210/run_tests.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18699, 67, 16341, 13332, 3536, 1939, 326, 444, 434, 18699, 7434, 18, 3536, 2552, 1692, 76, 21627, 67, 3753, 3128, 225, 468, 14556, 5412, 7434, 486, 29468, 366, 637, 17600, 2865, 741, 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, 18699, 67, 16341, 13332, 3536, 1939, 326, 444, 434, 18699, 7434, 18, 3536, 2552, 1692, 76, 21627, 67, 3753, 3128, 225, 468, 14556, 5412, 7434, 486, 29468, 366, 637, 17600, 2865, 741, 67, ...
sage: R == loads(dumps(R)) True
sage: TestSuite(R).run()
def __init__(self, ct, base_ring, prefix, cache, style): """ EXAMPLES::
7fa05b949ce753ba0d48f2e6f5125e6333b0ed1c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/7fa05b949ce753ba0d48f2e6f5125e6333b0ed1c/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 5691, 16, 1026, 67, 8022, 16, 1633, 16, 1247, 16, 2154, 4672, 3536, 5675, 8900, 11386, 2866, 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, 1001, 2738, 972, 12, 2890, 16, 5691, 16, 1026, 67, 8022, 16, 1633, 16, 1247, 16, 2154, 4672, 3536, 5675, 8900, 11386, 2866, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
l = changed.items() l.sort() for propname, oldvalue in l:
changed_items = changed.items() changed_items.sort() for propname, oldvalue in changed_items:
def generateChangeNote(self, nodeid, oldvalues): """Generate a change note that lists property changes """ if not isinstance(oldvalues, type({})): raise TypeError("'oldvalues' must be dict-like, not %s."% type(oldvalues))
4fb45a00e50dd335e0ee2308edb4b7e10dc3d794 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/4fb45a00e50dd335e0ee2308edb4b7e10dc3d794/roundupdb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 3043, 8067, 12, 2890, 16, 756, 350, 16, 1592, 2372, 4672, 3536, 4625, 279, 2549, 4721, 716, 6035, 1272, 3478, 3536, 309, 486, 1549, 12, 1673, 2372, 16, 618, 23506, 3719, 30, 1002, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3043, 8067, 12, 2890, 16, 756, 350, 16, 1592, 2372, 4672, 3536, 4625, 279, 2549, 4721, 716, 6035, 1272, 3478, 3536, 309, 486, 1549, 12, 1673, 2372, 16, 618, 23506, 3719, 30, 1002, ...
return self.indexmanager.index(props, path)
self.indexmanager.index(props, path) return uid
def create(self, props, filelike, can_move=False): if filelike: uid = self.indexmanager.index(props, None) if isinstance(filelike, basestring): # lets treat it as a filename filelike = open(filelike, "r") filelike.seek(0) path = self._writeContent(uid, filelike, replace=False, can_move=can_move) return self.indexmanage...
0a7e80f01ac0f96b15d1eeeda3386be40b8a9b7c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9394/0a7e80f01ac0f96b15d1eeeda3386be40b8a9b7c/backingstore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 12, 2890, 16, 3458, 16, 661, 292, 2547, 16, 848, 67, 8501, 33, 8381, 4672, 309, 661, 292, 2547, 30, 4555, 273, 365, 18, 1615, 4181, 18, 1615, 12, 9693, 16, 599, 13, 309, 1549, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3458, 16, 661, 292, 2547, 16, 848, 67, 8501, 33, 8381, 4672, 309, 661, 292, 2547, 30, 4555, 273, 365, 18, 1615, 4181, 18, 1615, 12, 9693, 16, 599, 13, 309, 1549, ...
cPickle.dumps(C())
cPickle.dumps(C(), 0)
def pickleslots(): if verbose: print("Testing pickling of classes with __slots__ ...") import pickle, pickle as cPickle # Pickling of classes with __slots__ but without __getstate__ should fail global B, C, D, E class B(object): pass for base in [object, B]: class C(base): __slots__ = ['a'] class D(C): pass try: pickle...
85def692392804d753756cd126aaeef97a432a2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/85def692392804d753756cd126aaeef97a432a2c/test_descr.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6002, 1040, 80, 6968, 13332, 309, 3988, 30, 1172, 2932, 22218, 6002, 2456, 434, 3318, 598, 1001, 18875, 972, 1372, 7923, 1930, 13379, 16, 13379, 487, 276, 17968, 298, 468, 23038, 2456, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6002, 1040, 80, 6968, 13332, 309, 3988, 30, 1172, 2932, 22218, 6002, 2456, 434, 3318, 598, 1001, 18875, 972, 1372, 7923, 1930, 13379, 16, 13379, 487, 276, 17968, 298, 468, 23038, 2456, 434...
(x1, y1)= real_item.get_canvas().convert_to_item_space(parent, bounds.x1, bounds.y1) (x2, y2)= real_item.get_canvas().convert_to_item_space(parent, bounds.x2, bounds.y2)
(x1, y1)= \ real_item.get_canvas().convert_to_item_space(parent, bounds.x1, bounds.y1) (x2, y2)= \ real_item.get_canvas().convert_to_item_space(parent, bounds.x2, bounds.y2) mx1 = min(x1, x2) my1 = min(y1, y2) x2 = max(x1, x2) y2 = max(y1, y2) x1 = mx1 y1 = my1
def resize_item_event(self, item, target, event, anchor_type): if self.running: return
7ff7be5bf755c0cd8d1824d7b1325b6c755ab74a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11306/7ff7be5bf755c0cd8d1824d7b1325b6c755ab74a/anim.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7041, 67, 1726, 67, 2575, 12, 2890, 16, 761, 16, 1018, 16, 871, 16, 6984, 67, 723, 4672, 309, 365, 18, 8704, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7041, 67, 1726, 67, 2575, 12, 2890, 16, 761, 16, 1018, 16, 871, 16, 6984, 67, 723, 4672, 309, 365, 18, 8704, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
"Missing cif modification: data_mod_%s\n" % apply.data_mod
"Missing CIF modification: data_mod_%s\n" % apply.data_mod
def process_apply_cif_modification(self, mon_lib_srv, log): self.apply_cif_modifications = {} sel_cache = None aal = self.stage_1.atom_attributes_list for apply in self.params.apply_cif_modification: if (apply.data_mod is None): continue print >> log, " apply_cif_modification:" print >> log, " data_mod:", apply.dat...
9ee78a991c928e4e2fb605e620d5170ffb367aaf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/9ee78a991c928e4e2fb605e620d5170ffb367aaf/pdb_interpretation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 9010, 67, 30674, 67, 31064, 12, 2890, 16, 6921, 67, 2941, 67, 20818, 16, 613, 4672, 365, 18, 9010, 67, 30674, 67, 1711, 6640, 273, 2618, 357, 67, 2493, 273, 599, 279, 287, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 9010, 67, 30674, 67, 31064, 12, 2890, 16, 6921, 67, 2941, 67, 20818, 16, 613, 4672, 365, 18, 9010, 67, 30674, 67, 1711, 6640, 273, 2618, 357, 67, 2493, 273, 599, 279, 287, ...
def save_float(self, object): self.write(FLOAT + `object` + '\n')
def save_float(self, object, pack=struct.pack): if self.bin: self.write(BINFLOAT + pack('>d', object)) else: self.write(FLOAT + `object` + '\n')
def save_float(self, object): self.write(FLOAT + `object` + '\n')
b71c45dff2998a741337d10d17805f110aef88be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b71c45dff2998a741337d10d17805f110aef88be/pickle.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 5659, 12, 2890, 16, 733, 4672, 365, 18, 2626, 12, 15640, 397, 1375, 1612, 68, 397, 2337, 82, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 5659, 12, 2890, 16, 733, 4672, 365, 18, 2626, 12, 15640, 397, 1375, 1612, 68, 397, 2337, 82, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return plot(funcs, tmin, tmax, parametric=True, **kwargs)
kwargs['parametric'] = True return plot(funcs, *args, **kwargs)
def parametric_plot(funcs, tmin, tmax, **kwargs): r""" \code{parametric_plot} takes two or three functions as a list or a tuple and makes a plot with the first function giving the $x$ coordinates, the second function giving the $y$ coordinates, and the third function (if present) giving the $z$ coordinates. INPUT: fun...
48280e868451e9ce9627c06c961c35617c602f61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/48280e868451e9ce9627c06c961c35617c602f61/plot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 579, 1591, 67, 4032, 12, 17728, 16, 268, 1154, 16, 28986, 16, 2826, 4333, 4672, 436, 8395, 521, 710, 95, 891, 1591, 67, 4032, 97, 5530, 2795, 578, 8925, 4186, 487, 279, 666, 578, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 579, 1591, 67, 4032, 12, 17728, 16, 268, 1154, 16, 28986, 16, 2826, 4333, 4672, 436, 8395, 521, 710, 95, 891, 1591, 67, 4032, 97, 5530, 2795, 578, 8925, 4186, 487, 279, 666, 578, 279, ...
res = self.__getFileIDsForLfns(resDict['Successful'].keys(),connection=connection) if not res['OK']: return res fileIDs,lfnFilesIDs = res['Value']
res = self.__getFileIDsForLfns( resDict['Successful'].keys(), connection = connection ) if not res['OK']: return res fileIDs, lfnFilesIDs = res['Value']
def setFileUsedSEForTransformation(self,transName,usedSE,lfns,connection=False): """ Set the UsedSE for supplied files and the Status = 'Processed' """ res = self._getConnectionTransID(connection,transName) if not res['OK']: return res connection = res['Value']['Connection'] transID = res['Value']['TransformationID'] r...
9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 19658, 6668, 1090, 1290, 15292, 12, 2890, 16, 2338, 461, 16, 3668, 1090, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 3536, 1000, 326, 10286, 1090, 364, 4580, 1390, 471, 326, 2685, 273, 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, 19658, 6668, 1090, 1290, 15292, 12, 2890, 16, 2338, 461, 16, 3668, 1090, 16, 20850, 2387, 16, 4071, 33, 8381, 4672, 3536, 1000, 326, 10286, 1090, 364, 4580, 1390, 471, 326, 2685, 273, 29...
store.append([text])
store.append(to_install_iter, [text])
def alpm_install_targets(self, targets, repo = None): # TODO: check if there's something searched for or a repo selected, and # update the pkg_treeview accordingly self.busy_status_label = self.all_widgets.get_widget('busy_status_label') number_pkgs_to_download =\ self.alpm_get_number_of_packages_to_download(targets)
406465af1625206c1b85268c2a144f8c51a0f1af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2759/406465af1625206c1b85268c2a144f8c51a0f1af/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 524, 7755, 67, 5425, 67, 11358, 12, 2890, 16, 5774, 16, 3538, 273, 599, 4672, 468, 2660, 30, 866, 309, 1915, 1807, 5943, 19242, 364, 578, 279, 3538, 3170, 16, 471, 468, 1089, 326, 3475...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 524, 7755, 67, 5425, 67, 11358, 12, 2890, 16, 5774, 16, 3538, 273, 599, 4672, 468, 2660, 30, 866, 309, 1915, 1807, 5943, 19242, 364, 578, 279, 3538, 3170, 16, 471, 468, 1089, 326, 3475...
j = 0
index = 0
def _update_keymap(self, first_keycode, count):
80f735cdc64cf9832b6079c69a006032251351c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8084/80f735cdc64cf9832b6079c69a006032251351c1/display.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 856, 1458, 12, 2890, 16, 1122, 67, 856, 710, 16, 1056, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 856, 1458, 12, 2890, 16, 1122, 67, 856, 710, 16, 1056, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
default_name=' %s (Copy)' % data.name super(dm_campaign_proposition, self).write(cr, uid, proposition_id, {'name':default_name, 'date_start':False, 'initial_proposition_id':id})
default_name = ' %s (Copy)' % data.name super(dm_campaign_proposition, self).write(cr, uid, proposition_id, {'name': default_name, 'date_start': False, 'initial_proposition_id': id})
def copy(self, cr, uid, id, default=None, context={}): """ Function to duplicate segments only if 'keep_segments' is set to yes else not to duplicate segments """ proposition_id = super(dm_campaign_proposition, self).copy(cr, uid, id, default, context=context) if 'camp_id' in default and default['camp_id']: self.write(...
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 12938, 4672, 3536, 4284, 358, 6751, 5155, 1338, 309, 296, 10102, 67, 12838, 11, 353, 444, 358, 12465, 469, 486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 819, 12938, 4672, 3536, 4284, 358, 6751, 5155, 1338, 309, 296, 10102, 67, 12838, 11, 353, 444, 358, 12465, 469, 486,...
return
return None
def newJob(self): """ _newJob_
b71b0eed54d6374c9d695e9c104870d495d8a924 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/b71b0eed54d6374c9d695e9c104870d495d8a924/ReqInjComponent.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 2278, 12, 2890, 4672, 3536, 389, 2704, 2278, 67, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 2278, 12, 2890, 4672, 3536, 389, 2704, 2278, 67, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
return Task.cont
return task.cont
def listenerPoll(self, task): if self.qcl.newConnectionAvailable(): rendezvous = PointerToConnection() netAddress = NetAddress() newConnection = PointerToConnection() retVal = self.qcl.getNewConnection(rendezvous, netAddress, newConnection) if not retVal: return
b04679f9e6c82b4862638364e7c858736f7abeeb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/b04679f9e6c82b4862638364e7c858736f7abeeb/ServerRepository.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2991, 19085, 12, 2890, 16, 1562, 4672, 309, 365, 18, 85, 830, 18, 2704, 1952, 5268, 13332, 1654, 323, 94, 90, 1481, 273, 7107, 774, 1952, 1435, 2901, 1887, 273, 8503, 1887, 1435, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2991, 19085, 12, 2890, 16, 1562, 4672, 309, 365, 18, 85, 830, 18, 2704, 1952, 5268, 13332, 1654, 323, 94, 90, 1481, 273, 7107, 774, 1952, 1435, 2901, 1887, 273, 8503, 1887, 1435, 394, ...
""" Return a compact representation of a revision in the repos. """
"""Return a compact representation of a revision in the repos."""
def short_rev(self, rev): """ Return a compact representation of a revision in the repos. """ return self.normalize_rev(rev)
0091f73d9ddb2e28de9da1a025ba0c0cfaf2b458 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/0091f73d9ddb2e28de9da1a025ba0c0cfaf2b458/api.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3025, 67, 9083, 12, 2890, 16, 5588, 4672, 3536, 990, 279, 6739, 4335, 434, 279, 6350, 316, 326, 13686, 12123, 327, 365, 18, 12237, 67, 9083, 12, 9083, 13, 225, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3025, 67, 9083, 12, 2890, 16, 5588, 4672, 3536, 990, 279, 6739, 4335, 434, 279, 6350, 316, 326, 13686, 12123, 327, 365, 18, 12237, 67, 9083, 12, 9083, 13, 225, 2, -100, -100, -100, -10...
pass def update_visit(self, visit_key, expiry): pass def shutdown(self, timeout=None): pass def run(self): pass
'''Update the visit information on the server''' fas = BaseClient(self.fasURL, self.debug) for visit_key in queue: log.info("updating visit (%s)", visit_key) fas._sessionCookie = Cookie.SimpleCookie() fas._sessionCookie[self.cookieName] = visit_key data = fas.send_request('', auth=True) fas.send_request()
def update_queued_visits(self, queue): # Let the visit_manager on the FAS server manage this pass
89251d7d57c5642c0d3984777ffb3e442526d505 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9952/89251d7d57c5642c0d3984777ffb3e442526d505/jsonfasvisit.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 19499, 67, 3516, 1282, 12, 2890, 16, 2389, 4672, 468, 10559, 326, 3757, 67, 4181, 603, 326, 478, 3033, 1438, 10680, 333, 1342, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1089, 67, 19499, 67, 3516, 1282, 12, 2890, 16, 2389, 4672, 468, 10559, 326, 3757, 67, 4181, 603, 326, 478, 3033, 1438, 10680, 333, 1342, 2, -100, -100, -100, -100, -100, -100, -100, -100...
remove_set, add_set, replace_tags = googlecl.base.generate_tag_sets(tags)
from atom import Summary if tags is not None: remove_set, add_set, replace_tags = googlecl.base.generate_tag_sets(tags)
def tag_photos(self, photo_entries, tags): """Add or remove tags on a list of photos.
60e1dd6903c0672676ed9ac2602940222c65a007 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/60e1dd6903c0672676ed9ac2602940222c65a007/service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1047, 67, 29121, 12, 2890, 16, 10701, 67, 8219, 16, 2342, 4672, 3536, 986, 578, 1206, 2342, 603, 279, 666, 434, 18185, 18, 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, 1047, 67, 29121, 12, 2890, 16, 10701, 67, 8219, 16, 2342, 4672, 3536, 986, 578, 1206, 2342, 603, 279, 666, 434, 18185, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
raise ExtractError, "could not change owner"
raise ExtractError("could not change owner")
def chown(self, tarinfo, targetpath): """Set owner of targetpath according to tarinfo. """ if pwd and hasattr(os, "geteuid") and os.geteuid() == 0: # We have to be root to do so. try: g = grp.getgrnam(tarinfo.gname)[2] except KeyError: try: g = grp.getgrgid(tarinfo.gid)[2] except KeyError: g = os.getgid() try: u = pwd....
e4751e3cdc8c271f24e46a6155f255b6e33da158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e4751e3cdc8c271f24e46a6155f255b6e33da158/tarfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 462, 995, 12, 2890, 16, 8232, 1376, 16, 1018, 803, 4672, 3536, 694, 3410, 434, 1018, 803, 4888, 358, 8232, 1376, 18, 3536, 309, 14720, 471, 3859, 12, 538, 16, 315, 588, 73, 1911, 7923,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 462, 995, 12, 2890, 16, 8232, 1376, 16, 1018, 803, 4672, 3536, 694, 3410, 434, 1018, 803, 4888, 358, 8232, 1376, 18, 3536, 309, 14720, 471, 3859, 12, 538, 16, 315, 588, 73, 1911, 7923,...
MarkerInterface,\
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) for child in contents: component = SplitQName(child.getTagName())[1] if component == 'annotation': self.annotation = Annotation(self) self.annotation.fromDom(child) continue break else: return if component == 'restriction': self.content...
6c6678d8443cc0ac1425216db36bdd74c2f8cb7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/6c6678d8443cc0ac1425216db36bdd74c2f8cb7b/XMLSchema.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 364, 1151, 316, 2939, 30, 1794, 273, 5385, 13688, 12, 3624, 18, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 628, 8832, 12, 2890, 16, 756, 4672, 365, 18, 542, 2498, 12, 2159, 13, 2939, 273, 365, 18, 588, 6323, 12, 2159, 13, 364, 1151, 316, 2939, 30, 1794, 273, 5385, 13688, 12, 3624, 18, 588...
c['MOIN_ID']['path'] = path
c[cookie_name]['path'] = path
def makeCookie(request, moin_id, maxage, expires): """ calculate a MOIN_ID cookie """ c = Cookie.SimpleCookie() cfg = request.cfg c['MOIN_ID'] = moin_id c['MOIN_ID']['max-age'] = maxage if cfg.cookie_domain: c['MOIN_ID']['domain'] = cfg.cookie_domain if cfg.cookie_path: c['MOIN_ID']['path'] = cfg.cookie_path else: path...
52d72a54d36dd3229ef30015f18438b64a2efc64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/52d72a54d36dd3229ef30015f18438b64a2efc64/auth.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 6151, 12, 2293, 16, 312, 885, 67, 350, 16, 943, 410, 16, 7368, 4672, 3536, 4604, 279, 490, 6266, 67, 734, 3878, 3536, 276, 273, 10201, 18, 5784, 6151, 1435, 2776, 273, 590, 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, 1221, 6151, 12, 2293, 16, 312, 885, 67, 350, 16, 943, 410, 16, 7368, 4672, 3536, 4604, 279, 490, 6266, 67, 734, 3878, 3536, 276, 273, 10201, 18, 5784, 6151, 1435, 2776, 273, 590, 18, ...
ret = ['<feedback xmlns="http://osafoundation.org/xmlns/feedback" version="0.3">']
ret = ['<feedback xmlns="http://osafoundation.org/xmlns/feedback" version="0.4">']
def buildXML(comments, email, optional, required): """ Given the possible fields in the error dialog, build an XML file of the data. """ ret = ['<feedback xmlns="http://osafoundation.org/xmlns/feedback" version="0.3">'] # The required field consists of field: value lines, followed by either # traceback or arbitrary ou...
9ba90be76cdb160407265d4d3334a370bc71f15a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/9ba90be76cdb160407265d4d3334a370bc71f15a/feedback.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4201, 12, 9231, 16, 2699, 16, 3129, 16, 1931, 4672, 3536, 16803, 326, 3323, 1466, 316, 326, 555, 6176, 16, 1361, 392, 3167, 585, 434, 326, 501, 18, 3536, 325, 273, 10228, 32, 125...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 4201, 12, 9231, 16, 2699, 16, 3129, 16, 1931, 4672, 3536, 16803, 326, 3323, 1466, 316, 326, 555, 6176, 16, 1361, 392, 3167, 585, 434, 326, 501, 18, 3536, 325, 273, 10228, 32, 125...
s = s + '%s:%s,' % (k, self._properties[k])
value = getattr( self, k, self._properties[k] ) if k == 'widget': value = value.__class__.__name__ s = s + '%s:%s,' % (k, value )
def toString(self): """Utility method for converting a Field to a string for the purpose of comparing fields. This comparison is used for determining whether a schema has changed in the auto update function. Right now it's pretty crude.""" # XXX fixme s = '%s: {' % self.__class__.__name__ sorted_keys = self._properti...
ce18ea6851443c561d3f359843304d34e49b66e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/ce18ea6851443c561d3f359843304d34e49b66e9/Field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1762, 12, 2890, 4672, 3536, 6497, 707, 364, 14540, 279, 2286, 358, 279, 533, 364, 326, 13115, 434, 17553, 1466, 18, 225, 1220, 5826, 353, 1399, 364, 23789, 2856, 279, 1963, 711, 3550, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1762, 12, 2890, 4672, 3536, 6497, 707, 364, 14540, 279, 2286, 358, 279, 533, 364, 326, 13115, 434, 17553, 1466, 18, 225, 1220, 5826, 353, 1399, 364, 23789, 2856, 279, 1963, 711, 3550, 31...
return "cannot use -d with -i or -o"
return "cannot use "+flag+" with -i or -o"
def change(ui, repo, *pats, **opts): """create or edit a change list Create or edit a change list. A change list is a group of files to be reviewed and submitted together, plus a textual description of the change. Change lists are referred to by simple alphanumeric names. Changes must be reviewed before they can be s...
790c9b59d674768bafd1cd45ffe856ee7db3b8ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6483/790c9b59d674768bafd1cd45ffe856ee7db3b8ce/codereview.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 12, 4881, 16, 3538, 16, 380, 84, 2323, 16, 2826, 4952, 4672, 3536, 2640, 578, 3874, 279, 2549, 666, 225, 1788, 578, 3874, 279, 2549, 666, 18, 432, 2549, 666, 353, 279, 1041, 434,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 12, 4881, 16, 3538, 16, 380, 84, 2323, 16, 2826, 4952, 4672, 3536, 2640, 578, 3874, 279, 2549, 666, 225, 1788, 578, 3874, 279, 2549, 666, 18, 432, 2549, 666, 353, 279, 1041, 434,...
indent_level=indent_level+1))
indent_level=indent_level+1))
def getLocalFieldSpecs(self, element, indent_level=0): """aggregates the different field specifications.""" field_specs = [] aggregatedClasses = []
aaa8dd12feab69fa4c32c6edec55ff12239613d8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11941/aaa8dd12feab69fa4c32c6edec55ff12239613d8/ArchetypesGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6993, 974, 15999, 12, 2890, 16, 930, 16, 3504, 67, 2815, 33, 20, 4672, 3536, 10751, 815, 326, 3775, 652, 21950, 12123, 652, 67, 15115, 273, 5378, 16165, 4818, 273, 5378, 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, 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, 6993, 974, 15999, 12, 2890, 16, 930, 16, 3504, 67, 2815, 33, 20, 4672, 3536, 10751, 815, 326, 3775, 652, 21950, 12123, 652, 67, 15115, 273, 5378, 16165, 4818, 273, 5378, 2, -100, -100, ...
if ((self.inputs != other.inputs) or (self.outputs != other.outputs)): raise ValueError, "State space systems have different shapes." A = concatenate(( concatenate((self.A, zeros((self.A.shape[0], other.A.shape[-1]))), axis=1), concatenate((other.B * self.C, other.A), axis=1))) B = concatenate((self.B, other.B * sel...
if (self.outputs != other.inputs): raise ValueError, "Number of first's outputs must match number \ of second's inputs." A = concatenate(( concatenate(( self.A, zeros((self.A.shape[0], other.A.shape[-1])) ),axis=1), concatenate(( other.B*self.C, other.A ),axis=1), ),axis=0) B = concatenate( (self.B, other.B*self...
def __mul__(self, other): # Check for a couple of special cases if (isinstance(other, (int, long, float, complex))): # Just multiplying by a scalar; change the output A, B = self.A, self.B; C = self.C * other; D = self.D * other;
62242c319538c8b49a700e601a613a17a607f82b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6610/62242c319538c8b49a700e601a613a17a607f82b/statesp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 4672, 468, 2073, 364, 279, 1825, 2268, 434, 4582, 6088, 309, 261, 291, 1336, 12, 3011, 16, 261, 474, 16, 1525, 16, 1431, 16, 7233, 3719, 4672, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 16411, 972, 12, 2890, 16, 1308, 4672, 468, 2073, 364, 279, 1825, 2268, 434, 4582, 6088, 309, 261, 291, 1336, 12, 3011, 16, 261, 474, 16, 1525, 16, 1431, 16, 7233, 3719, 4672, 468...
sys.path.append(self.subtest_dir)
def initialize(self): # Make it possible to import modules from the subtest dir self.subtest_dir = os.path.join(self.bindir, 'tests') sys.path.append(self.subtest_dir)
251fc3d793c5bda6dbfc8abfdf1bc498573600e0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/251fc3d793c5bda6dbfc8abfdf1bc498573600e0/kvm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 468, 4344, 518, 3323, 358, 1930, 4381, 628, 326, 720, 3813, 1577, 365, 18, 1717, 3813, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 4376, 481, 16, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4046, 12, 2890, 4672, 468, 4344, 518, 3323, 358, 1930, 4381, 628, 326, 720, 3813, 1577, 365, 18, 1717, 3813, 67, 1214, 273, 1140, 18, 803, 18, 5701, 12, 2890, 18, 4376, 481, 16, 296, ...
try:
def handlerB(self, *args): self.b_called = True if test_support.verbose: print "handlerB invoked", args raise HandlerBCalled(*args)
def force_test_exit(): # Sigh, both imports seem necessary to avoid errors. import os fork_pid = os.fork() if fork_pid: # In parent. return fork_pid # In child. import os, time try: # Wait 5 seconds longer than the expected alarm to give enough # time for the normal sequence of events to occur. This is # just a stop-...
9f2b93e03ac1b79f2a25aeb2c3b094fbe816d1d4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/9f2b93e03ac1b79f2a25aeb2c3b094fbe816d1d4/test_signal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3813, 67, 8593, 13332, 468, 348, 2031, 16, 3937, 10095, 19264, 4573, 358, 4543, 1334, 18, 1930, 1140, 12515, 67, 6610, 273, 1140, 18, 23335, 1435, 309, 12515, 67, 6610, 30, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2944, 67, 3813, 67, 8593, 13332, 468, 348, 2031, 16, 3937, 10095, 19264, 4573, 358, 4543, 1334, 18, 1930, 1140, 12515, 67, 6610, 273, 1140, 18, 23335, 1435, 309, 12515, 67, 6610, 30, 468...
return scal(div(gz, sqrt(x)), 0.5)
return scale(div(gz, sqrt(x)), 0.5)
def grad(x, gz): return scal(div(gz, sqrt(x)), 0.5)
9b27c788e7d2134a6d684c944022349650aa3cb2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12438/9b27c788e7d2134a6d684c944022349650aa3cb2/core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6058, 12, 92, 16, 14136, 4672, 327, 8292, 12, 2892, 12, 9764, 16, 5700, 12, 92, 13, 3631, 374, 18, 25, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6058, 12, 92, 16, 14136, 4672, 327, 8292, 12, 2892, 12, 9764, 16, 5700, 12, 92, 13, 3631, 374, 18, 25, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return color
fontsize = 10 if fontsize: attribs.append(("fontsize",fontsize)) if color: attribs.append(("color",color)) return attribs
def getNodeColor(classId): # return color according to size fsize = self._classes[classId]['size'] if fsize > 20000: color = "red" elif fsize > 5000: color = "green" else: color = "blue" return color
4c9d6258dcb0b5a86a91298d76d20597a63c4664 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/4c9d6258dcb0b5a86a91298d76d20597a63c4664/Generator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5973, 2957, 12, 1106, 548, 4672, 468, 14869, 273, 1728, 309, 14869, 30, 11460, 18, 6923, 12, 2932, 23055, 3113, 23055, 3719, 309, 2036, 30, 11460, 18, 6923, 12, 2932, 3266, 3113, 3266, 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, 5973, 2957, 12, 1106, 548, 4672, 468, 14869, 273, 1728, 309, 14869, 30, 11460, 18, 6923, 12, 2932, 23055, 3113, 23055, 3719, 309, 2036, 30, 11460, 18, 6923, 12, 2932, 3266, 3113, 3266, 3...
master_author = web.ctx.site.get(master)
master_author = web.ctx.site.get(master).dict()
def do_merge(self, master, old_keys): master_author = web.ctx.site.get(master) master_author['type']['key'] == '/type/author' edition_keys = set() work_keys = set() updates = [] master_needs_save = False for old in old_keys: q = { 'type': '/type/edition', 'authors': {'key': old}, 'works': None, 'limit': 10000, } editio...
2c4bd4059bbb4e193e0cb7153899ee13096a81bb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/2c4bd4059bbb4e193e0cb7153899ee13096a81bb/code.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2702, 12, 2890, 16, 4171, 16, 1592, 67, 2452, 4672, 4171, 67, 4161, 273, 3311, 18, 5900, 18, 4256, 18, 588, 12, 7525, 2934, 1576, 1435, 4171, 67, 4161, 3292, 723, 21712, 856, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 741, 67, 2702, 12, 2890, 16, 4171, 16, 1592, 67, 2452, 4672, 4171, 67, 4161, 273, 3311, 18, 5900, 18, 4256, 18, 588, 12, 7525, 2934, 1576, 1435, 4171, 67, 4161, 3292, 723, 21712, 856, ...
DNS_requests = {'A': _A, 'NS': _NS, 'MX': _MX, 'PTR': _PTR} def __init__ ( self, servers, failover=1, timeout=2, precision=1, ip=None ):
DNS_requests = { 'A': Request_A, 'NS': Request_NS, 'MX': Request_MX, 'PTR': Request_PTR } dns_ip = None dns_sent = 0 dns_failover = 1 def __init__ (self, servers):
def dns_collect (self, datagram, pos): "unpack a PTR resource record at pos" if datagram[pos:pos+4]== '\000\014\000\001': self.dns_ttl = _unpack_ttl (datagram, pos+4) self.dns_resources.append ( _unpack_name (datagram, pos+10) ) return True
79906933ee4150b4a6dc21c74f2849f7ab831a23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2577/79906933ee4150b4a6dc21c74f2849f7ab831a23/dns_client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6605, 67, 14676, 261, 2890, 16, 1150, 17049, 16, 949, 4672, 315, 17309, 279, 453, 4349, 1058, 1409, 622, 949, 6, 309, 1150, 17049, 63, 917, 30, 917, 15, 24, 65, 631, 2337, 3784, 64, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6605, 67, 14676, 261, 2890, 16, 1150, 17049, 16, 949, 4672, 315, 17309, 279, 453, 4349, 1058, 1409, 622, 949, 6, 309, 1150, 17049, 63, 917, 30, 917, 15, 24, 65, 631, 2337, 3784, 64, ...
line = f.readline() if not line:
line1 = f.readline() if not line1:
def _skip_to_nonblank(f, spacegroup): """Read lines from f until a nonblank line not starting with a hash (#) is encountered and returns the line.""" while True: line = f.readline() if not line: raise SpacegroupNotFoundError( 'invalid spacegroup %s, not found in data base'%spacegroup) line.strip() if line and not line....
6f4c55ef5b482e5dd9b72e728a5ba02ca06ab5d6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5572/6f4c55ef5b482e5dd9b72e728a5ba02ca06ab5d6/spacegroup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7457, 67, 869, 67, 5836, 12111, 12, 74, 16, 3476, 1655, 4672, 3536, 1994, 2362, 628, 284, 3180, 279, 1661, 12111, 980, 486, 5023, 598, 279, 1651, 23885, 13, 353, 9919, 471, 1135, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7457, 67, 869, 67, 5836, 12111, 12, 74, 16, 3476, 1655, 4672, 3536, 1994, 2362, 628, 284, 3180, 279, 1661, 12111, 980, 486, 5023, 598, 279, 1651, 23885, 13, 353, 9919, 471, 1135, ...
state.exempt_ips.add(ad.ip)
self.exempt_ips.add(ad.ip)
def setDNSIPCache(self, data):
7ecbfbb5047df6c87c2297fc449d5be835790dd5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8524/7ecbfbb5047df6c87c2297fc449d5be835790dd5/dtella_state.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 8609, 17739, 1649, 12, 2890, 16, 501, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 8609, 17739, 1649, 12, 2890, 16, 501, 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...
try: body = [output, extra] except NameError: body = [output]
body = [output]
def perform_modifycollectiontree(colID, ln, move_up='', move_down='', move_from='', move_to='', delete='', rtype='', callback='yes', confirm=0): """to modify the collection tree: move a collection up and down, delete a collection, or change the father of the collection. colID - the main collection of the tree, the root...
8dcf4c4b5c4b6097cd6d61f62b4123913eecc2ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/8dcf4c4b5c4b6097cd6d61f62b4123913eecc2ec/websearchadminlib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 17042, 5548, 3413, 12, 1293, 734, 16, 7211, 16, 3635, 67, 416, 2218, 2187, 3635, 67, 2378, 2218, 2187, 3635, 67, 2080, 2218, 2187, 3635, 67, 869, 2218, 2187, 1430, 2218, 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, 3073, 67, 17042, 5548, 3413, 12, 1293, 734, 16, 7211, 16, 3635, 67, 416, 2218, 2187, 3635, 67, 2378, 2218, 2187, 3635, 67, 2080, 2218, 2187, 3635, 67, 869, 2218, 2187, 1430, 2218, 2187, ...
- ``ct`` - The Cartan Type
- ``ct`` -- The Cartan Type
def WeylCharacterRing(ct, base_ring=ZZ, prefix=None, cache=False, style="lattice"): r""" A class for rings of Weyl characters. The Weyl character is a character of a semisimple (or reductive) Lie group or algebra. They form a ring, in which the addition and multiplication correspond to direct sum and tensor product of ...
40a1bdf0c8a0dea7ba5d2dd2b4dcc1a210f7c884 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/40a1bdf0c8a0dea7ba5d2dd2b4dcc1a210f7c884/weyl_characters.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 678, 402, 80, 7069, 10369, 12, 299, 16, 1026, 67, 8022, 33, 27096, 16, 1633, 33, 7036, 16, 1247, 33, 8381, 16, 2154, 1546, 80, 24966, 6, 4672, 436, 8395, 432, 667, 364, 26537, 434, 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, 678, 402, 80, 7069, 10369, 12, 299, 16, 1026, 67, 8022, 33, 27096, 16, 1633, 33, 7036, 16, 1247, 33, 8381, 16, 2154, 1546, 80, 24966, 6, 4672, 436, 8395, 432, 667, 364, 26537, 434, 6...
box2.onmouseout=kill_doclink;
box2.onmouseout=auto_kill_doclink;
def _colorize_re(tree, noparen=0): """ Recursively descend the given regexp parse tree to produce the HTML code for a colorized version of the regexp. @param tree: The regexp parse tree for the regexp that should be colorized. @type tree: L{sre_parse.SubPattern} @param noparen: If true, then don't include parenthases ...
cd4d6e5fbca5f698866ebe3598f5c2ca592983e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/cd4d6e5fbca5f698866ebe3598f5c2ca592983e0/html_colorize.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3266, 554, 67, 266, 12, 3413, 16, 28797, 7892, 33, 20, 4672, 3536, 31362, 10653, 326, 864, 7195, 1109, 2151, 358, 11402, 326, 3982, 981, 364, 279, 2036, 1235, 1177, 434, 326, 7195, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3266, 554, 67, 266, 12, 3413, 16, 28797, 7892, 33, 20, 4672, 3536, 31362, 10653, 326, 864, 7195, 1109, 2151, 358, 11402, 326, 3982, 981, 364, 279, 2036, 1235, 1177, 434, 326, 7195, ...
temp = coo_matrix(s, ijnew, dims=(M, N), nzmax=nzmax, dtype=dtype) temp = temp.tocsr()
temp = coo_matrix(s, ijnew, dims=dims, nzmax=nzmax, dtype=dtype).tocsr()
def __init__(self, arg1, dims=(None,None), nzmax=100, dtype='d', copy=False): spmatrix.__init__(self) if isdense(arg1): # Convert the dense matrix arg1 to CSR format if rank(arg1) == 2: s = asarray(arg1) ocsc = csc_matrix(transpose(s)) self.colind = ocsc.rowind self.indptr = ocsc.indptr self.data = ocsc.data self.shape...
0b2d25691f3b5b478761024814ba8dc28534e0fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/0b2d25691f3b5b478761024814ba8dc28534e0fb/sparse.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1501, 21, 16, 9914, 28657, 7036, 16, 7036, 3631, 15062, 1896, 33, 6625, 16, 3182, 2218, 72, 2187, 1610, 33, 8381, 4672, 1694, 5667, 16186, 2738, 972, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1501, 21, 16, 9914, 28657, 7036, 16, 7036, 3631, 15062, 1896, 33, 6625, 16, 3182, 2218, 72, 2187, 1610, 33, 8381, 4672, 1694, 5667, 16186, 2738, 972, 12, ...
str += epytext.to_html(freturn.descr())
str += dom_to_html(freturn.descr(), container)
def _func_details(self, functions, cls, heading='Function Details'): """Return a detailed description of the functions in a class or module.""" functions = self._sort(functions) if len(functions) == 0: return '' str = self._table_header(heading, 'details')+'</table>'
b1b93a7c8720ea1ae0c715da86bbf6fe1dbf094a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/b1b93a7c8720ea1ae0c715da86bbf6fe1dbf094a/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 990, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, 365, 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, 389, 644, 67, 6395, 12, 2890, 16, 4186, 16, 2028, 16, 11053, 2218, 2083, 21897, 11, 4672, 3536, 990, 279, 6864, 2477, 434, 326, 4186, 316, 279, 667, 578, 1605, 12123, 4186, 273, 365, 6...
if FetchBugReportsDebian.FetchBugsDebian(PackageName):
if FetchBugReportsDebian.FetchBugsDebian(PackageName) in [1,2]:
def run(request, response, func=find_first_match): '''Get items from the request Queue, process them with func(), put the results along with the Thread's name into the response Queue. Stop running when item is None.''' while 1: tuple_item_key = request.get() if tuple_item_key is None: break (key, item) = tuple_item_k...
dbe68c51c5eedd5b34b3221bde84ac25f8cc3e88 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12499/dbe68c51c5eedd5b34b3221bde84ac25f8cc3e88/pypt_core.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2293, 16, 766, 16, 1326, 33, 4720, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 180...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2293, 16, 766, 16, 1326, 33, 4720, 67, 3645, 67, 1916, 4672, 9163, 967, 1516, 628, 326, 590, 7530, 16, 1207, 2182, 598, 1326, 9334, 1378, 326, 1686, 7563, 598, 326, 4884, 180...
self.callbacks["set_opt"](option, True)
self.callbacks["set_opt"](option, "True")
def _cfg_set_prompt(self, option, prompt): # Ensure the items are enumerated t = self.callbacks["get_opt"](option) self.callbacks["set_opt"](option, True)
5799f4cc58d64e0a59114a54c172ecd0fb5a70c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12358/5799f4cc58d64e0a59114a54c172ecd0fb5a70c3/taglist.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7066, 67, 542, 67, 13325, 12, 2890, 16, 1456, 16, 6866, 4672, 468, 7693, 326, 1516, 854, 3557, 690, 268, 273, 365, 18, 13316, 9614, 588, 67, 3838, 11929, 12, 3482, 13, 365, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 7066, 67, 542, 67, 13325, 12, 2890, 16, 1456, 16, 6866, 4672, 468, 7693, 326, 1516, 854, 3557, 690, 268, 273, 365, 18, 13316, 9614, 588, 67, 3838, 11929, 12, 3482, 13, 365, 18, ...