rem
stringlengths
2
226k
add
stringlengths
0
227k
context
stringlengths
8
228k
meta
stringlengths
156
215
input_ids
list
attention_mask
list
labels
list
self.attr_content.append(AttributeGroupDefinition(self))
content.append(AttributeGroupReference(self))
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node)
5b20f2b0904cc43a45210136aca4b3c019980b52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5b20f2b0904cc43a45210136aca4b3c019980b52/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, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
cont = compute_paragraph(stream, _tag_name, attributes, None) content.extend(cont) content[-1] += (build_end_tag(_tag_name))
def compute_link(stream, _tag_name, attributes): """ stream : parser stream """ content = [] has_content = False attrs = {} if exist_attribute(attributes, ['href']): attrs['href'] = attributes.get((URI, 'href')) # Reencode the entities because the a tags # are decoded again by the reportlab para parser. href = XMLContent.encode(attrs['href']) content.append('<a href="%s">' % href) if exist_attribute(attributes, ['id', 'name'], at_least=True): name = attributes.get((URI, 'id'), attributes.get((URI, 'name'))) if len(content): content[0] += '<a name="%s"/>' % name else: content.append('<a name="%s">' % name) cont = compute_paragraph(stream, _tag_name, attributes, None) content.extend(cont) content[-1] += (build_end_tag(_tag_name)) return ' '.join(content)
b6d57a7e1fa01810144e8abd9202e1ee1ca5fa8a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/b6d57a7e1fa01810144e8abd9202e1ee1ca5fa8a/rml2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3671, 67, 1232, 12, 3256, 16, 389, 2692, 67, 529, 16, 1677, 4672, 3536, 1407, 294, 2082, 1407, 3536, 225, 913, 273, 5378, 711, 67, 1745, 273, 1083, 3422, 273, 2618, 309, 1005, 67, 4589, 12, 4350, 16, 10228, 7547, 3546, 4672, 3422, 3292, 7547, 3546, 273, 1677, 18, 588, 12443, 3098, 16, 296, 7547, 26112, 468, 868, 3015, 326, 5140, 2724, 326, 279, 2342, 468, 854, 6383, 3382, 635, 326, 2605, 7411, 12602, 2082, 18, 3897, 273, 3167, 1350, 18, 3015, 12, 7039, 3292, 7547, 19486, 913, 18, 6923, 2668, 32, 69, 3897, 11613, 87, 7918, 738, 3897, 13, 309, 1005, 67, 4589, 12, 4350, 16, 10228, 350, 2187, 296, 529, 17337, 622, 67, 16446, 33, 5510, 4672, 508, 273, 1677, 18, 588, 12443, 3098, 16, 296, 350, 19899, 1677, 18, 588, 12443, 3098, 16, 296, 529, 11, 20349, 309, 562, 12, 1745, 4672, 913, 63, 20, 65, 1011, 2368, 69, 508, 11613, 87, 6, 18280, 738, 508, 469, 30, 913, 18, 6923, 2668, 32, 69, 508, 11613, 87, 7918, 738, 508, 13, 327, 296, 2418, 5701, 12, 1745, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3671, 67, 1232, 12, 3256, 16, 389, 2692, 67, 529, 16, 1677, 4672, 3536, 1407, 294, 2082, 1407, 3536, 225, 913, 273, 5378, 711, 67, 1745, 273, 1083, 3422, 273, 2618, 309, 1005, 67, 4589, 12, 4350, 16, 10228, 7547, 3546, 4672, 3422, 3292, 7547, 3546, 273, 1677, 18, 588, 12443, 3098, 16, 296, 7547, 26112, 468, 868, 3015, 326, 5140, 2724, 326, 279, 2342, 468, 854, 6383, 3382, 635, 326, 2605, 7411, 12602, 2082, 18, 3897, 273, 3167, 1350, 18, 3015, 12, 7039, 3292, 7547, 19486, 913, 18, 6923, 2668, 32, 69, 3897, 11613, 87, 7918, 738, 3897, 13, 309, 1005, 67, 4589, 12, 4350, 16, 10228, 350, 2187, 296, 529, 17337, 622, 67, 16446, 33, 5510, 2 ]
J = self.index_set()
J = range(len(self.index_set()))
def __rmul__(self,other): """ Implements scalar multiplication (on the right).
b5d444db2992a10837c0e2ccaebfd79325c6361e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/b5d444db2992a10837c0e2ccaebfd79325c6361e/dft.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8864, 332, 972, 12, 2890, 16, 3011, 4672, 3536, 29704, 4981, 23066, 261, 265, 326, 2145, 2934, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 8864, 332, 972, 12, 2890, 16, 3011, 4672, 3536, 29704, 4981, 23066, 261, 265, 326, 2145, 2934, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
""" mysql database connectivity """ try: db=MySQLdb.connect(host=DATABASE_HOST,user=DATABASE_USER,passwd=DATABASE_PASSWD, port=int(DATABASE_PORT), db=DATABASE_NAME) except MySQLdb.OperationalError: plog('error connecting to mysql database.\n - check config: bbs.cfg\n') exit(1) plog('database %s on %s connected.' % (DATABASE_NAME, DATABASE_HOST)) return db
""" mysql database connectivity """ try: db = MySQLdb.connect(host=DATABASE_HOST,user=DATABASE_USER,passwd=DATABASE_PASSWD, port=int(DATABASE_PORT), db=DATABASE_NAME) except MySQLdb.OperationalError: plog('error connecting to mysql database.\n - check config: bbs.cfg\n') exit(1) plog('database %s on %s connected.' % (DATABASE_NAME, DATABASE_HOST)) return db
def _db(DATABASE_HOST, DATABASE_PORT, DATABASE_USER, DATABASE_PASSWD, DATABASE_NAME): """ mysql database connectivity """ try: db=MySQLdb.connect(host=DATABASE_HOST,user=DATABASE_USER,passwd=DATABASE_PASSWD, port=int(DATABASE_PORT), db=DATABASE_NAME) except MySQLdb.OperationalError: plog('error connecting to mysql database.\n - check config: bbs.cfg\n') exit(1) plog('database %s on %s connected.' % (DATABASE_NAME, DATABASE_HOST)) return db
9f0495ce7066cd2385a6fdae1f019f7da433c5a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6760/9f0495ce7066cd2385a6fdae1f019f7da433c5a4/chloe.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1966, 12, 22366, 67, 8908, 16, 17998, 67, 6354, 16, 17998, 67, 4714, 16, 17998, 67, 10884, 16006, 16, 17998, 67, 1985, 4672, 3536, 7219, 2063, 20301, 3536, 775, 30, 1319, 273, 13485, 1966, 18, 3612, 12, 2564, 33, 22366, 67, 8908, 16, 1355, 33, 22366, 67, 4714, 16, 24002, 33, 22366, 67, 10884, 16006, 16, 1756, 33, 474, 12, 22366, 67, 6354, 3631, 1319, 33, 22366, 67, 1985, 13, 1335, 13485, 1966, 18, 2988, 287, 668, 30, 293, 1330, 2668, 1636, 14244, 358, 7219, 2063, 8403, 82, 300, 866, 642, 30, 324, 2038, 18, 7066, 64, 82, 6134, 2427, 12, 21, 13, 225, 293, 1330, 2668, 6231, 738, 87, 603, 738, 87, 5840, 1093, 738, 261, 22366, 67, 1985, 16, 17998, 67, 8908, 3719, 327, 1319, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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366, 67, 8908, 16, 17998, 67, 6354, 16, 17998, 67, 4714, 16, 17998, 67, 10884, 16006, 16, 17998, 67, 1985, 4672, 3536, 7219, 2063, 20301, 3536, 775, 30, 1319, 273, 13485, 1966, 18, 3612, 12, 2564, 33, 22366, 67, 8908, 16, 1355, 33, 22366, 67, 4714, 16, 24002, 33, 22366, 67, 10884, 16006, 16, 1756, 33, 474, 12, 22366, 67, 6354, 3631, 1319, 33, 22366, 67, 1985, 13, 1335, 13485, 1966, 18, 2988, 287, 668, 30, 293, 1330, 2668, 1636, 14244, 358, 7219, 2063, 8403, 82, 300, 866, 642, 30, 324, 2038, 18, 7066, 64, 82, 6134, 2427, 12, 21, 13, 225, 293, 1330, 2668, 6231, 738, 87, 603, 738, 87, 5840, 1093, 738, 261, 2 ]
def BuildStructures(self, metadata):
def BuildStructures(self, _):
def BuildStructures(self, metadata): '''Build a set of structures tailored to the client metadata''' return []
1c445056e1b7868dffc6d566d14eaa806f11f926 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/1c445056e1b7868dffc6d566d14eaa806f11f926/Plugin.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 3823, 1823, 12, 2890, 16, 389, 4672, 9163, 3116, 279, 444, 434, 12597, 5798, 7653, 358, 326, 1004, 1982, 26418, 327, 5378, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3998, 3823, 1823, 12, 2890, 16, 389, 4672, 9163, 3116, 279, 444, 434, 12597, 5798, 7653, 358, 326, 1004, 1982, 26418, 327, 5378, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
blank = inputfile.next(); blank = inputfile.next(); blank = inputfile.next()
blank = inputfile.next() blank = inputfile.next() if len(blank) > 2: blank = inputfile.next() blank = inputfile.next() blank = inputfile.next()
def extract(self, inputfile, fupdate=0.05, cupdate=0.002): """Extract information from the file object inputfile.""" oldstep = 0 # Used to avoid extracting the final geometry twice in a GeoOpt NOTFOUND, GETLAST, NOMORE = range(3) finalgeometry = NOTFOUND # Used for calculating the scftarget (variables names taken from the ADF manual) accint = SCFconv = sconv2 = None # keep track of nosym and unrestricted case to parse Energies since it doens't have an all Irreps section nosymflag = False unrestrictedflag = False for line in inputfile: self.updateprogress(inputfile, "Unsupported Information", cupdate) if line.find("INPUT FILE") >= 0:
749cb1d34dc3e574b4220456c6c97a7bb41fa2d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8167/749cb1d34dc3e574b4220456c6c97a7bb41fa2d6/adfparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2608, 12, 2890, 16, 810, 768, 16, 284, 2725, 33, 20, 18, 6260, 16, 276, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 585, 733, 810, 768, 12123, 225, 1592, 4119, 273, 374, 225, 468, 10286, 358, 4543, 27117, 326, 727, 5316, 13605, 316, 279, 9385, 6179, 4269, 9294, 16, 4978, 14378, 16, 423, 1872, 8607, 273, 1048, 12, 23, 13, 727, 14330, 273, 4269, 9294, 225, 468, 10286, 364, 21046, 326, 888, 1222, 826, 261, 7528, 1257, 9830, 628, 326, 432, 4577, 11297, 13, 4078, 474, 273, 8795, 42, 4896, 273, 272, 4896, 22, 273, 599, 225, 468, 3455, 3298, 434, 26628, 2942, 471, 640, 29306, 648, 358, 1109, 512, 1224, 20921, 3241, 518, 741, 773, 1404, 1240, 392, 777, 467, 86, 266, 1121, 2442, 26628, 2942, 6420, 273, 1083, 640, 29306, 6420, 273, 1083, 225, 364, 980, 316, 810, 768, 30, 225, 365, 18, 2725, 8298, 12, 2630, 768, 16, 315, 8544, 15353, 3113, 276, 2725, 13, 225, 309, 980, 18, 4720, 2932, 15934, 7527, 7923, 1545, 374, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2608, 12, 2890, 16, 810, 768, 16, 284, 2725, 33, 20, 18, 6260, 16, 276, 2725, 33, 20, 18, 24908, 4672, 3536, 4976, 1779, 628, 326, 585, 733, 810, 768, 12123, 225, 1592, 4119, 273, 374, 225, 468, 10286, 358, 4543, 27117, 326, 727, 5316, 13605, 316, 279, 9385, 6179, 4269, 9294, 16, 4978, 14378, 16, 423, 1872, 8607, 273, 1048, 12, 23, 13, 727, 14330, 273, 4269, 9294, 225, 468, 10286, 364, 21046, 326, 888, 1222, 826, 261, 7528, 1257, 9830, 628, 326, 432, 4577, 11297, 13, 4078, 474, 273, 8795, 42, 4896, 273, 272, 4896, 22, 273, 599, 225, 468, 3455, 3298, 434, 26628, 2942, 471, 640, 29306, 648, 358, 1109, 512, 1224, 20921, 3241, 518, 2 ]
return ProcessorResult(False, _("Not Implemented"))
return ProcessorResult(self.key, False, _("Not Implemented"))
def capture_authorized_payment(self, authorization, testing=False, order=None, amount=NOTSET): """Capture a single payment, must be overridden to function""" self.log.warn('Module does not implement capture_payment: %s', self.key) return ProcessorResult(False, _("Not Implemented"))
4ed616007e1d7993a74af691a9de6794aef4fe9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/171/4ed616007e1d7993a74af691a9de6794aef4fe9d/base.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7477, 67, 8434, 67, 9261, 12, 2890, 16, 6093, 16, 7769, 33, 8381, 16, 1353, 33, 7036, 16, 3844, 33, 4400, 4043, 4672, 3536, 12372, 279, 2202, 5184, 16, 1297, 506, 11000, 358, 445, 8395, 365, 18, 1330, 18, 8935, 2668, 3120, 1552, 486, 2348, 7477, 67, 9261, 30, 738, 87, 2187, 365, 18, 856, 13, 327, 15476, 1253, 12, 8381, 16, 389, 2932, 1248, 18788, 6, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7477, 67, 8434, 67, 9261, 12, 2890, 16, 6093, 16, 7769, 33, 8381, 16, 1353, 33, 7036, 16, 3844, 33, 4400, 4043, 4672, 3536, 12372, 279, 2202, 5184, 16, 1297, 506, 11000, 358, 445, 8395, 365, 18, 1330, 18, 8935, 2668, 3120, 1552, 486, 2348, 7477, 67, 9261, 30, 738, 87, 2187, 365, 18, 856, 13, 327, 15476, 1253, 12, 8381, 16, 389, 2932, 1248, 18788, 6, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
while x < w:
while x < x1:
def _clear_dc(self, dc, rect): N = 16 dc.Clear() dc.SetBrush(self._checkboard_brush) dc.SetPen(wx.TRANSPARENT_PEN) x0, y0, w, h = rect y1 = (y0 + w + N - 1) // N * N y1 = (y0 + h + N - 1) // N * N x0 = x0 // N * N y0 = y0 // N * N o = oo = (x0 ^ y0) & 1 y = y0 while y < h: o = not oo x = x0 while x < w: if o: dc.DrawRectangle(x, y, N, N) x += N o = not o y += N oo = not oo
98bf4acecad0f391e6d8f2e29a67794212cc144e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3683/98bf4acecad0f391e6d8f2e29a67794212cc144e/page.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8507, 67, 7201, 12, 2890, 16, 6744, 16, 4917, 4672, 423, 273, 2872, 6744, 18, 9094, 1435, 6744, 18, 694, 19114, 1218, 12, 2890, 6315, 1893, 3752, 67, 2848, 1218, 13, 6744, 18, 694, 24251, 12, 27226, 18, 8989, 3118, 37, 7480, 67, 52, 1157, 13, 619, 20, 16, 677, 20, 16, 341, 16, 366, 273, 4917, 677, 21, 273, 261, 93, 20, 397, 341, 397, 423, 300, 404, 13, 368, 423, 380, 423, 677, 21, 273, 261, 93, 20, 397, 366, 397, 423, 300, 404, 13, 368, 423, 380, 423, 619, 20, 273, 619, 20, 368, 423, 380, 423, 677, 20, 273, 677, 20, 368, 423, 380, 423, 320, 273, 320, 83, 273, 261, 92, 20, 3602, 677, 20, 13, 473, 404, 677, 273, 677, 20, 1323, 677, 411, 366, 30, 320, 273, 486, 320, 83, 619, 273, 619, 20, 1323, 619, 411, 619, 21, 30, 309, 320, 30, 6744, 18, 6493, 19463, 12, 92, 16, 677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, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 8507, 67, 7201, 12, 2890, 16, 6744, 16, 4917, 4672, 423, 273, 2872, 6744, 18, 9094, 1435, 6744, 18, 694, 19114, 1218, 12, 2890, 6315, 1893, 3752, 67, 2848, 1218, 13, 6744, 18, 694, 24251, 12, 27226, 18, 8989, 3118, 37, 7480, 67, 52, 1157, 13, 619, 20, 16, 677, 20, 16, 341, 16, 366, 273, 4917, 677, 21, 273, 261, 93, 20, 397, 341, 397, 423, 300, 404, 13, 368, 423, 380, 423, 677, 21, 273, 261, 93, 20, 397, 366, 397, 423, 300, 404, 13, 368, 423, 380, 423, 619, 20, 273, 619, 20, 368, 423, 380, 423, 677, 20, 273, 677, 20, 368, 423, 380, 423, 320, 273, 320, 83, 273, 261, 92, 20, 2 ]
return cmdutil.findcmd(self._getUI(), cmd, commands.table)
if cmdutil.findcmd.func_code.co_varnames[0] == "ui": return cmdutil.findcmd(self._getUI(), cmd, commands.table) else: return cmdutil.findcmd(cmd, commands.table)
def findcmd(cmd): return cmdutil.findcmd(self._getUI(), cmd, commands.table)
58bb0d2746dffe665a361adc67bc15a0ca3728a3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5981/58bb0d2746dffe665a361adc67bc15a0ca3728a3/hg.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 4172, 12, 4172, 4672, 327, 24884, 18, 4720, 4172, 12, 2890, 6315, 588, 5370, 9334, 1797, 16, 4364, 18, 2121, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1104, 4172, 12, 4172, 4672, 327, 24884, 18, 4720, 4172, 12, 2890, 6315, 588, 5370, 9334, 1797, 16, 4364, 18, 2121, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self._indxr_mosaic = float(o.split('>')[1].split()[0])
ms = float(o.split('>')[1].split()[0]) mosaic_spreads.append(ms)
def _index(self): '''Implement the indexer interface.'''
18979c3273b7035ec88d3f13b963de27bad1113f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3290/18979c3273b7035ec88d3f13b963de27bad1113f/Mosflm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1615, 12, 2890, 4672, 9163, 5726, 326, 12635, 1560, 1093, 6309, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1615, 12, 2890, 4672, 9163, 5726, 326, 12635, 1560, 1093, 6309, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
engine.execute(DDL('REVOKE UPDATE ON log FROM pkgdbadmin;'))
engine.execute('BEGIN; REVOKE UPDATE ON log FROM pkgdbadmin; COMMIT;')
def transform(relation, table, attribute): ''' Transforms userids into usernames table - pkgdb.model attribute - string 'owner' or 'userid' ''' print 'transforming ' + relation.__name__ for id, owner in zip(select([relation.id]).execute(), select([getattr(relation, attribute)]).execute()): ownername = people[int(owner[0])]['username'] table.update('id=%s' % id[0], values={attribute:ownername}).execute() print 'flushing ' + relation.__name__ session.flush()
f8da11248bff1618d73709bab80ecff38b48dffa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9953/f8da11248bff1618d73709bab80ecff38b48dffa/pkgdb-0.3.10-0.3.11.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 12, 5488, 16, 1014, 16, 1566, 4672, 9163, 2604, 9741, 31892, 1368, 27675, 225, 1014, 300, 3475, 1966, 18, 2284, 1566, 300, 533, 296, 8443, 11, 578, 296, 8339, 11, 9163, 1172, 296, 6547, 310, 296, 397, 2533, 16186, 529, 972, 364, 612, 16, 3410, 316, 3144, 12, 4025, 3816, 5488, 18, 350, 65, 2934, 8837, 9334, 2027, 3816, 588, 1747, 12, 5488, 16, 1566, 25887, 2934, 8837, 1435, 4672, 3410, 529, 273, 16951, 63, 474, 12, 8443, 63, 20, 5717, 23962, 5053, 3546, 1014, 18, 2725, 2668, 350, 5095, 87, 11, 738, 612, 63, 20, 6487, 924, 5899, 4589, 30, 8443, 529, 97, 2934, 8837, 1435, 1172, 296, 11330, 310, 296, 397, 2533, 16186, 529, 972, 1339, 18, 11330, 1435, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2510, 12, 5488, 16, 1014, 16, 1566, 4672, 9163, 2604, 9741, 31892, 1368, 27675, 225, 1014, 300, 3475, 1966, 18, 2284, 1566, 300, 533, 296, 8443, 11, 578, 296, 8339, 11, 9163, 1172, 296, 6547, 310, 296, 397, 2533, 16186, 529, 972, 364, 612, 16, 3410, 316, 3144, 12, 4025, 3816, 5488, 18, 350, 65, 2934, 8837, 9334, 2027, 3816, 588, 1747, 12, 5488, 16, 1566, 25887, 2934, 8837, 1435, 4672, 3410, 529, 273, 16951, 63, 474, 12, 8443, 63, 20, 5717, 23962, 5053, 3546, 1014, 18, 2725, 2668, 350, 5095, 87, 11, 738, 612, 63, 20, 6487, 924, 5899, 4589, 30, 8443, 529, 97, 2934, 8837, 1435, 1172, 296, 11330, 310, 296, 397, 2533, 16186, 529, 972, 2 ]
zip_cmd = "7za a \"%s\" nonlocalized" % self.build
zip_cmd = "%s a \"%s\" nonlocalized" % (SEVENZIP_BIN, self.build)
def repackBuild(self): zip_cmd = "7za a \"%s\" nonlocalized" % self.build shellCommand(zip_cmd)
5cb6fbdd734ac0c785378340542d00fd69c55600 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10262/5cb6fbdd734ac0c785378340542d00fd69c55600/partner-repacks.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2071, 484, 3116, 12, 2890, 4672, 3144, 67, 4172, 273, 2213, 87, 279, 22049, 87, 2412, 1661, 3729, 1235, 6, 738, 261, 1090, 58, 1157, 13951, 67, 12615, 16, 365, 18, 3510, 13, 5972, 2189, 12, 4450, 67, 4172, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2071, 484, 3116, 12, 2890, 4672, 3144, 67, 4172, 273, 2213, 87, 279, 22049, 87, 2412, 1661, 3729, 1235, 6, 738, 261, 1090, 58, 1157, 13951, 67, 12615, 16, 365, 18, 3510, 13, 5972, 2189, 12, 4450, 67, 4172, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
getattr(self, '_write_%s' % self._writer,
getattr(self, '_write_%s' % self.writer,
def render(self, source, destination): parts = self.publish_parts(source) getattr(self, '_write_%s' % self._writer, self.default_writer)(self.template % parts, destination) destination.flush()
dbe6749e6aa8ae4ea90f39a35943664b181c539b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13745/dbe6749e6aa8ae4ea90f39a35943664b181c539b/rendering.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1084, 16, 2929, 4672, 2140, 273, 365, 18, 6543, 67, 6019, 12, 3168, 13, 3869, 12, 2890, 16, 2070, 2626, 10185, 87, 11, 738, 365, 18, 6299, 16, 365, 18, 1886, 67, 6299, 21433, 2890, 18, 3202, 738, 2140, 16, 2929, 13, 2929, 18, 11330, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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4672, 2140, 273, 365, 18, 6543, 67, 6019, 12, 3168, 13, 3869, 12, 2890, 16, 2070, 2626, 10185, 87, 11, 738, 365, 18, 6299, 16, 365, 18, 1886, 67, 6299, 21433, 2890, 18, 3202, 738, 2140, 16, 2929, 13, 2929, 18, 11330, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
res = run_sql("SELECT b.id FROM bibrec_bibdoc bb JOIN bibdoc b on bb.id_bibdoc=b.id WHERE bb.id_bibrec=%s AND b.docname=%s", (self.recid, self.docname))
res = run_sql("SELECT b.id FROM bibrec_bibdoc bb JOIN bibdoc b on bb.id_bibdoc=b.id WHERE bb.id_bibrec=%s AND b.docname=%s", (self.recid, newname))
def changeName(self, newname): """Rename the bibdoc name. New name must not be already used by the linked bibrecs.""" res = run_sql("SELECT b.id FROM bibrec_bibdoc bb JOIN bibdoc b on bb.id_bibdoc=b.id WHERE bb.id_bibrec=%s AND b.docname=%s", (self.recid, self.docname)) if res: raise StandardError, "A bibdoc called %s already exists for recid %s" % (self.docname, self.recid) run_sql("update bibdoc set docname=%s where id=%s", (newname, self.id,)) for f in os.listdir(self.basedir): if f.startswith(self.docname): shutil.move('%s/%s' % (self.basedir, f), '%s/%s' % (self.basedir, f.replace(self.docname, newname, 1))) self.docname = newname Md5Folder(self.basedir).update() self.touch() self.BuildFileList() self.BuildRelatedFileList()
0205aab376eaef7e17205944d62ef5d121c83eee /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/0205aab376eaef7e17205944d62ef5d121c83eee/file.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2549, 461, 12, 2890, 16, 26722, 4672, 3536, 16019, 326, 25581, 2434, 508, 18, 1166, 508, 1297, 486, 506, 1818, 1399, 635, 326, 8459, 25581, 266, 2143, 12123, 400, 273, 1086, 67, 4669, 2932, 4803, 324, 18, 350, 4571, 25581, 3927, 67, 70, 495, 2434, 7129, 7645, 25581, 2434, 324, 603, 7129, 18, 350, 67, 70, 495, 2434, 33, 70, 18, 350, 4852, 7129, 18, 350, 67, 70, 495, 3927, 5095, 87, 4116, 324, 18, 2434, 529, 5095, 87, 3113, 261, 2890, 18, 3927, 350, 16, 26722, 3719, 309, 400, 30, 1002, 31160, 16, 315, 37, 25581, 2434, 2566, 738, 87, 1818, 1704, 364, 1950, 350, 738, 87, 6, 738, 261, 2890, 18, 2434, 529, 16, 365, 18, 3927, 350, 13, 1086, 67, 4669, 2932, 2725, 25581, 2434, 444, 997, 529, 5095, 87, 1625, 612, 5095, 87, 3113, 261, 2704, 529, 16, 365, 18, 350, 16, 3719, 364, 284, 316, 1140, 18, 1098, 1214, 12, 2890, 18, 31722, 4672, 309, 284, 18, 17514, 1918, 12, 2890, 18, 2434, 529, 4672, 11060, 18, 8501, 29909, 87, 5258, 87, 11, 738, 261, 2890, 18, 31722, 16, 284, 3631, 1995, 87, 5258, 87, 11, 738, 261, 2890, 18, 31722, 16, 284, 18, 2079, 12, 2890, 18, 2434, 529, 16, 26722, 16, 404, 20349, 365, 18, 2434, 529, 273, 26722, 490, 72, 25, 3899, 12, 2890, 18, 31722, 2934, 2725, 1435, 365, 18, 14084, 1435, 365, 18, 3116, 26098, 1435, 365, 18, 3116, 8017, 26098, 1435, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2549, 461, 12, 2890, 16, 26722, 4672, 3536, 16019, 326, 25581, 2434, 508, 18, 1166, 508, 1297, 486, 506, 1818, 1399, 635, 326, 8459, 25581, 266, 2143, 12123, 400, 273, 1086, 67, 4669, 2932, 4803, 324, 18, 350, 4571, 25581, 3927, 67, 70, 495, 2434, 7129, 7645, 25581, 2434, 324, 603, 7129, 18, 350, 67, 70, 495, 2434, 33, 70, 18, 350, 4852, 7129, 18, 350, 67, 70, 495, 3927, 5095, 87, 4116, 324, 18, 2434, 529, 5095, 87, 3113, 261, 2890, 18, 3927, 350, 16, 26722, 3719, 309, 400, 30, 1002, 31160, 16, 315, 37, 25581, 2434, 2566, 738, 87, 1818, 1704, 364, 1950, 350, 738, 87, 6, 738, 261, 2890, 18, 2434, 529, 16, 365, 18, 2 ]
return self._coerce_impl(x) except PropTypeError, msg: raise TypeError, msg
return self._coerce_from_special_method(x) except TypeError: raise except AttributeError, msg: pass try: return self._coerce_impl(x, use_special=False)
def __call__(self, x): r""" Create a new object in self from x.
51db3b4ba3e1601df442dc6dc63910c90aac5b5a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/51db3b4ba3e1601df442dc6dc63910c90aac5b5a/expect.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 4672, 436, 8395, 1788, 279, 394, 733, 316, 365, 628, 619, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 619, 4672, 436, 8395, 1788, 279, 394, 733, 316, 365, 628, 619, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'UID', 'ACTION', 'REQUEST-STATUS', 'TZID', 'BUSYTYPE']
'UID', 'ACTION', 'REQUEST-STATUS', 'BUSYTYPE']
def transformFromNative(cls, obj): """Convert the list of tuples in obj.value to strings.""" if obj.isNative: obj.isNative = False transformed = [] for tup in obj.value: transformed.append(periodToString(tup, cls.forceUTC)) if len(transformed) > 0: tzid = TimezoneComponent.registerTzinfo(tup[0].tzinfo) if not cls.forceUTC and tzid is not None: obj.tzid_param = tzid obj.value = ','.join(transformed)
7ef3d8ea30baa05f1f06aef74068bc3e6c5c8c60 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9169/7ef3d8ea30baa05f1f06aef74068bc3e6c5c8c60/icalendar.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 1265, 9220, 12, 6429, 16, 1081, 4672, 3536, 2723, 326, 666, 434, 10384, 316, 1081, 18, 1132, 358, 2064, 12123, 309, 1081, 18, 291, 9220, 30, 1081, 18, 291, 9220, 273, 1083, 10220, 273, 5378, 364, 15822, 316, 1081, 18, 1132, 30, 10220, 18, 6923, 12, 6908, 5808, 12, 88, 416, 16, 2028, 18, 5734, 11471, 3719, 309, 562, 12, 6547, 329, 13, 405, 374, 30, 6016, 350, 273, 2647, 3486, 1841, 18, 4861, 56, 94, 1376, 12, 88, 416, 63, 20, 8009, 12994, 1376, 13, 309, 486, 2028, 18, 5734, 11471, 471, 6016, 350, 353, 486, 599, 30, 1081, 18, 12994, 350, 67, 891, 273, 6016, 350, 225, 1081, 18, 1132, 273, 3316, 18, 5701, 12, 6547, 329, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2510, 1265, 9220, 12, 6429, 16, 1081, 4672, 3536, 2723, 326, 666, 434, 10384, 316, 1081, 18, 1132, 358, 2064, 12123, 309, 1081, 18, 291, 9220, 30, 1081, 18, 291, 9220, 273, 1083, 10220, 273, 5378, 364, 15822, 316, 1081, 18, 1132, 30, 10220, 18, 6923, 12, 6908, 5808, 12, 88, 416, 16, 2028, 18, 5734, 11471, 3719, 309, 562, 12, 6547, 329, 13, 405, 374, 30, 6016, 350, 273, 2647, 3486, 1841, 18, 4861, 56, 94, 1376, 12, 88, 416, 63, 20, 8009, 12994, 1376, 13, 309, 486, 2028, 18, 5734, 11471, 471, 6016, 350, 353, 486, 599, 30, 1081, 18, 12994, 350, 67, 891, 273, 6016, 350, 225, 1081, 18, 1132, 273, 3316, 18, 5701, 12, 2 ]
None, [cty.POINTER(FL_OBJECT), cty.c_double, cty.c_double],
None, [cty.POINTER(FL_OBJECT), cty.c_double, cty.c_double],
def fl_set_dial_return(ob, value): """ fl_set_dial_return(ob, value) """ _fl_set_dial_return(ob, value)
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 25909, 67, 2463, 12, 947, 16, 460, 4672, 3536, 1183, 67, 542, 67, 25909, 67, 2463, 12, 947, 16, 460, 13, 3536, 225, 389, 2242, 67, 542, 67, 25909, 67, 2463, 12, 947, 16, 460, 13, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1183, 67, 542, 67, 25909, 67, 2463, 12, 947, 16, 460, 4672, 3536, 1183, 67, 542, 67, 25909, 67, 2463, 12, 947, 16, 460, 13, 3536, 225, 389, 2242, 67, 542, 67, 25909, 67, 2463, 12, 947, 16, 460, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
@param id: structure type ID
@param sid: structure type ID
def SetStrucName(id, name): """ Change structure name @param id: structure type ID @param name: new name of the structure @return: != 0 - ok """ return idaapi.set_struc_name(id, name)
244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1585, 5286, 461, 12, 350, 16, 508, 4672, 3536, 7576, 3695, 508, 225, 632, 891, 7348, 30, 3695, 618, 1599, 632, 891, 508, 30, 394, 508, 434, 326, 3695, 225, 632, 2463, 30, 480, 374, 300, 1529, 3536, 327, 612, 69, 2425, 18, 542, 67, 701, 5286, 67, 529, 12, 350, 16, 508, 13, 282, 2, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1000, 1585, 5286, 461, 12, 350, 16, 508, 4672, 3536, 7576, 3695, 508, 225, 632, 891, 7348, 30, 3695, 618, 1599, 632, 891, 508, 30, 394, 508, 434, 326, 3695, 225, 632, 2463, 30, 480, 374, 300, 1529, 3536, 327, 612, 69, 2425, 18, 542, 67, 701, 5286, 67, 529, 12, 350, 16, 508, 13, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
andi t3, t3, 32 or reg, reg, t3
andi t4, t3, 32, flags=(EZF,) or reg, reg, t4 mov t1, t1, t3, flags=(nCEZF,)
def macroop BSF_R_P { rdip t7 mov t1, t1, t0, dataSize=8 ld t1, seg, riprel, disp # Determine if the input was zero, and also move it to a temp reg. and t1, t1, t1, flags=(ZF,) bri t0, label("end"), flags=(CZF,) # Zero out the result register mov reg, reg, t0 subi t2, t1, 1 xor t1, t2, t1 # Bit 6 srli t3, t1, 32, dataSize=8 andi t3, t3, 32 or reg, reg, t3 # Bit 5 srli t3, t1, 16, dataSize=8 andi t3, t3, 16 or reg, reg, t3 # Bit 4 srli t3, t1, 8, dataSize=8 andi t3, t3, 8 or reg, reg, t3 # Bit 3 srli t3, t1, 4, dataSize=8 andi t3, t3, 4 or reg, reg, t3 # Bit 2 srli t3, t1, 2, dataSize=8 andi t3, t3, 2 or reg, reg, t3 # Bit 1 srli t3, t1, 1, dataSize=8 andi t3, t3, 1 or reg, reg, t3
8e2991b529fd63f4d7c56518ebfbd2424f964172 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6787/8e2991b529fd63f4d7c56518ebfbd2424f964172/bit_scan.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 22395, 67, 54, 67, 52, 288, 225, 9437, 625, 268, 27, 5730, 268, 21, 16, 268, 21, 16, 268, 20, 16, 30216, 33, 28, 16916, 268, 21, 16, 2291, 16, 436, 625, 2878, 16, 16232, 225, 468, 10229, 309, 326, 810, 1703, 3634, 16, 471, 2546, 3635, 518, 358, 279, 1906, 960, 18, 471, 268, 21, 16, 268, 21, 16, 268, 21, 16, 2943, 28657, 62, 42, 16, 13, 324, 566, 268, 20, 16, 1433, 2932, 409, 6, 3631, 2943, 28657, 39, 62, 42, 16, 13, 225, 468, 12744, 596, 326, 563, 1744, 5730, 960, 16, 960, 16, 268, 20, 225, 720, 77, 268, 22, 16, 268, 21, 16, 404, 17586, 268, 21, 16, 268, 22, 16, 268, 21, 225, 468, 6539, 1666, 9133, 549, 268, 23, 16, 268, 21, 16, 3847, 16, 30216, 33, 28, 471, 77, 268, 24, 16, 268, 23, 16, 3847, 16, 2943, 28657, 41, 62, 42, 16, 13, 578, 960, 16, 960, 16, 268, 24, 5730, 268, 21, 16, 268, 21, 16, 268, 23, 16, 2943, 28657, 82, 1441, 62, 42, 16, 13, 225, 468, 6539, 1381, 9133, 549, 268, 23, 16, 268, 21, 16, 2872, 16, 30216, 33, 28, 471, 77, 268, 23, 16, 268, 23, 16, 2872, 578, 960, 16, 960, 16, 268, 23, 225, 468, 6539, 1059, 9133, 549, 268, 23, 16, 268, 21, 16, 1725, 16, 30216, 33, 28, 471, 77, 268, 23, 16, 268, 23, 16, 1725, 578, 960, 16, 960, 16, 268, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 11522, 556, 605, 22395, 67, 54, 67, 52, 288, 225, 9437, 625, 268, 27, 5730, 268, 21, 16, 268, 21, 16, 268, 20, 16, 30216, 33, 28, 16916, 268, 21, 16, 2291, 16, 436, 625, 2878, 16, 16232, 225, 468, 10229, 309, 326, 810, 1703, 3634, 16, 471, 2546, 3635, 518, 358, 279, 1906, 960, 18, 471, 268, 21, 16, 268, 21, 16, 268, 21, 16, 2943, 28657, 62, 42, 16, 13, 324, 566, 268, 20, 16, 1433, 2932, 409, 6, 3631, 2943, 28657, 39, 62, 42, 16, 13, 225, 468, 12744, 596, 326, 563, 1744, 5730, 960, 16, 960, 16, 268, 20, 225, 720, 77, 268, 22, 16, 268, 21, 16, 404, 17586, 268, 21, 16, 268, 2 ]
for dir in __tmp_dirs: shutil.rmtree(dir) __tmp_dirs= []
pid = os.getpid() if pid not in __tmp_dirs: return for dir in __tmp_dirs[pid]: try: shutil.rmtree(dir) except OSError, e: if e.errno == 2: pass __tmp_dirs[pid] = []
def __clean_tmp_dirs(): """Erase temporary directories that were created by the get_tmp_dir() function and that are still present. """ global __tmp_dirs for dir in __tmp_dirs: shutil.rmtree(dir) __tmp_dirs= []
53d9f3f8f8cfc853e95f6b0e2aab394f81cb83b9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12268/53d9f3f8f8cfc853e95f6b0e2aab394f81cb83b9/utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6200, 67, 5645, 67, 8291, 13332, 3536, 41, 5648, 6269, 6402, 716, 4591, 2522, 635, 326, 336, 67, 5645, 67, 1214, 1435, 445, 471, 716, 854, 4859, 3430, 18, 3536, 2552, 1001, 5645, 67, 8291, 225, 4231, 273, 1140, 18, 588, 6610, 1435, 309, 4231, 486, 316, 1001, 5645, 67, 8291, 30, 327, 364, 1577, 316, 1001, 5645, 67, 8291, 63, 6610, 14542, 775, 30, 11060, 18, 86, 17371, 12, 1214, 13, 1335, 10002, 16, 425, 30, 309, 425, 18, 19088, 422, 576, 30, 1342, 1001, 5645, 67, 8291, 63, 6610, 65, 273, 5378, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 6200, 67, 5645, 67, 8291, 13332, 3536, 41, 5648, 6269, 6402, 716, 4591, 2522, 635, 326, 336, 67, 5645, 67, 1214, 1435, 445, 471, 716, 854, 4859, 3430, 18, 3536, 2552, 1001, 5645, 67, 8291, 225, 4231, 273, 1140, 18, 588, 6610, 1435, 309, 4231, 486, 316, 1001, 5645, 67, 8291, 30, 327, 364, 1577, 316, 1001, 5645, 67, 8291, 63, 6610, 14542, 775, 30, 11060, 18, 86, 17371, 12, 1214, 13, 1335, 10002, 16, 425, 30, 309, 425, 18, 19088, 422, 576, 30, 1342, 1001, 5645, 67, 8291, 63, 6610, 65, 273, 5378, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __init__(data = None)
def __init__(data = None):
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 841) else quickfix.IntField.__init__(self, 841, data)
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 9803, 13, 469, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 9803, 16, 501, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 892, 273, 599, 4672, 309, 501, 422, 599, 30, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 9803, 13, 469, 9549, 904, 18, 1702, 974, 16186, 2738, 972, 12, 2890, 16, 1725, 9803, 16, 501, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return X509.X509(c)
return X509.X509(c, 1)
def get_peer_cert(self): c=m2.ssl_get_peer_cert(self.ssl) if c is None: return None return X509.X509(c)
00b626b1ae2f8b02ab6849a0340d53a65bd27866 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/00b626b1ae2f8b02ab6849a0340d53a65bd27866/Connection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12210, 67, 7593, 12, 2890, 4672, 276, 33, 81, 22, 18, 8157, 67, 588, 67, 12210, 67, 7593, 12, 2890, 18, 8157, 13, 309, 276, 353, 599, 30, 327, 599, 225, 327, 1139, 5995, 18, 60, 5995, 12, 71, 16, 404, 13, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 12210, 67, 7593, 12, 2890, 4672, 276, 33, 81, 22, 18, 8157, 67, 588, 67, 12210, 67, 7593, 12, 2890, 18, 8157, 13, 309, 276, 353, 599, 30, 327, 599, 225, 327, 1139, 5995, 18, 60, 5995, 12, 71, 16, 404, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
s += "%s\n" % ip
s += "%s netmask %s\n" % (ip, netmask)
def write_host_file_sunos(self, ip, device): s = '<file name="/etc/hostname.%s">\n' % device s += "%s\n" % ip s += '</file>\n' self.addText(s)
c648f91283e4672a6d000eda65c577697a536cb1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7066/c648f91283e4672a6d000eda65c577697a536cb1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 2564, 67, 768, 67, 16924, 538, 12, 2890,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 2564, 67, 768, 67, 16924, 538, 12, 2890, 16, 2359, 16, 2346, 4672, 272, 273, 2368, 768, 508, 1546, 19, 14175, 19, 10358, 7866, 87, 6, 5333, 82, 11, 738, 2346, 272, 1011, 2213, 87, 24172, 738, 87, 64, 82, 6, 738, 261, 625, 16, 24172, 13, 272, 1011, 4357, 768, 5333, 82, 11, 365, 18, 1289, 1528, 12, 87, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
session.modified):
session.should_save):
def finalize(self, request, session): if request.user.auth_method == 'setuid': userobj = request._setuid_real_user setuid = request.user.id else: userobj = request.user setuid = None logging.debug("finalize userobj = %r, setuid = %r" % (userobj, setuid)) cfg = request.cfg # we use different cookie names for different wikis: cookie_name = get_cookie_name(request, name=request.cfg.cookie_name, usage=self.cookie_usage) # we always use path='/' except if explicitly overridden by configuration, # which is usually not needed and not recommended: cookie_path = cfg.cookie_path or '/' if userobj and userobj.valid: session['user.id'] = userobj.id session['user.auth_method'] = userobj.auth_method session['user.auth_attribs'] = userobj.auth_attribs if setuid: session['setuid'] = setuid elif 'setuid' in session: del session['setuid'] logging.debug("after auth: storing valid user into session: %r" % userobj.name) else: logging.debug("after auth: user is invalid") if 'user.id' in session: logging.debug("after auth: destroying session: %r" % session) self.destroy_session(request, session) logging.debug("after auth: deleting session cookie!") request.delete_cookie(cookie_name, path=cookie_path, domain=cfg.cookie_domain)
e42433dfef2f71b42210790866823ee481f53888 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/e42433dfef2f71b42210790866823ee481f53888/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 12, 2890, 16, 590, 16, 1339, 4672, 309, 590, 18, 1355, 18, 1944, 67, 2039, 422, 296, 542, 1911, 4278, 729, 2603, 273, 590, 6315, 542, 1911, 67, 7688, 67, 1355, 444, 1911, 273, 590, 18, 1355, 18, 350, 469, 30, 729, 2603, 273, 590, 18, 1355, 444, 1911, 273, 599, 2907, 18, 4148, 2932, 30343, 729, 2603, 273, 738, 86, 16, 444, 1911, 273, 738, 86, 6, 738, 261, 1355, 2603, 16, 444, 1911, 3719, 2776, 273, 590, 18, 7066, 468, 732, 999, 3775, 3878, 1257, 364, 3775, 341, 1766, 291, 30, 3878, 67, 529, 273, 336, 67, 8417, 67, 529, 12, 2293, 16, 508, 33, 2293, 18, 7066, 18, 8417, 67, 529, 16, 4084, 33, 2890, 18, 8417, 67, 9167, 13, 468, 732, 3712, 999, 589, 2218, 2473, 1335, 309, 8122, 11000, 635, 1664, 16, 468, 1492, 353, 11234, 486, 3577, 471, 486, 14553, 30, 3878, 67, 803, 273, 2776, 18, 8417, 67, 803, 578, 2023, 309, 729, 2603, 471, 729, 2603, 18, 877, 30, 1339, 3292, 1355, 18, 350, 3546, 273, 729, 2603, 18, 350, 1339, 3292, 1355, 18, 1944, 67, 2039, 3546, 273, 729, 2603, 18, 1944, 67, 2039, 1339, 3292, 1355, 18, 1944, 67, 19617, 3546, 273, 729, 2603, 18, 1944, 67, 19617, 309, 444, 1911, 30, 1339, 3292, 542, 1911, 3546, 273, 444, 1911, 1327, 296, 542, 1911, 11, 316, 1339, 30, 1464, 1339, 3292, 542, 1911, 3546, 2907, 18, 4148, 2932, 5205, 1357, 30, 15729, 923, 729, 1368, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 12, 2890, 16, 590, 16, 1339, 4672, 309, 590, 18, 1355, 18, 1944, 67, 2039, 422, 296, 542, 1911, 4278, 729, 2603, 273, 590, 6315, 542, 1911, 67, 7688, 67, 1355, 444, 1911, 273, 590, 18, 1355, 18, 350, 469, 30, 729, 2603, 273, 590, 18, 1355, 444, 1911, 273, 599, 2907, 18, 4148, 2932, 30343, 729, 2603, 273, 738, 86, 16, 444, 1911, 273, 738, 86, 6, 738, 261, 1355, 2603, 16, 444, 1911, 3719, 2776, 273, 590, 18, 7066, 468, 732, 999, 3775, 3878, 1257, 364, 3775, 341, 1766, 291, 30, 3878, 67, 529, 273, 336, 67, 8417, 67, 529, 12, 2293, 16, 508, 33, 2293, 18, 7066, 18, 8417, 67, 529, 16, 4084, 33, 2 ]
initial bound 2.62270974833657e117
initial bound 2.6227097483365...e117
def S_integral_points(self, S, mw_base='auto', both_signs=False, verbose=False, proof=None): """ Computes all S-integral points (up to sign) on this elliptic curve. INPUT: S -- list of primes mw_base -- list of EllipticCurvePoint generating the Mordell-Weil group of E (default: 'auto' - calls self.gens()) both_signs -- True/False (default False): if True the output contains both P and -P, otherwise only one of each pair. verbose -- True/False (default False): if True, some details of the computation are output. proof -- True/False (default True): if True ALL S-integral points will be returned. If False, the MW basis will be computed with the proof=False flag, and also the time-consuming final call to S_integral_x_coords_with_abs_bounded_by(abs_bound) is omitted. Use this only if the computation takes too long, but be warned that then it cannot be guaranteed that all S-integral points will be found. OUTPUT: A sorted list of all the S-integral points on E (up to sign unless both_signs is True) NOTES: The complexity increases exponentially in the rank of curve E and in the length of S. The computation time (but not the output!) depends on the Mordell-Weil basis. If mw_base is given but is not a basis for the Mordell-Weil group (modulo torsion), S-integral points which are not in the subgroup generated by the given points will almost certainly not be listed. NOTE: Testing of this function has revealed some inputs where it fails due to p-adic precision issues. For example, EllipticCurve("7690e1").S_integral_points([13,2]) fails as of version 3.2.2. This is being tracked at \#4805. Please report any other observed failures to sage-support. EXAMPLES: A curve of rank 3 with no torsion points sage: E=EllipticCurve([0,0,1,-7,6]) sage: P1=E.point((2,0)); P2=E.point((-1,3)); P3=E.point((4,6)) sage: a=E.S_integral_points(S=[2,3], mw_base=[P1,P2,P3], verbose=True);a max_S: 3 len_S: 3 len_tors: 1 lambda 0.485997517468... k1,k2,k3,k4 6.68597129142710e234 1.31952866480763 3.31908110593519e9 2.42767548272846e17 mw_base [(1 : -1 : 1), (2 : 0 : 1), (0 : -3 : 1)] mw_base_log [0.667789378224099, 0.552642660712417, 0.818477222895703] mp [5, 7] mw_base_p_log [[2^2 + 2^3 + 2^6 + 2^7 + 2^8 + 2^9 + 2^14 + 2^15 + 2^18 + 2^19 + O(2^20), 2^2 + 2^3 + 2^5 + 2^6 + 2^9 + 2^11 + 2^12 + 2^14 + 2^15 + 2^16 + 2^18 + O(2^20), 2 + 2^3 + 2^6 + 2^7 + 2^8 + 2^9 + 2^11 + 2^12 + 2^13 + 2^16 + 2^17 + 2^19 + O(2^20)], [2*3^2 + 2*3^5 + 2*3^6 + 2*3^7 + 3^8 + 3^9 + 2*3^10 + 3^12 + 2*3^14 + 3^15 + 3^17 + 2*3^19 + O(3^20), 2*3 + 2*3^2 + 2*3^3 + 2*3^4 + 2*3^6 + 2*3^7 + 2*3^8 + 3^10 + 2*3^12 + 3^13 + 2*3^14 + 3^15 + 3^18 + O(3^20), 3 + 3^2 + 2*3^3 + 3^6 + 2*3^7 + 2*3^8 + 3^9 + 2*3^11 + 2*3^12 + 2*3^13 + 3^15 + 2*3^16 + 3^18 + 2*3^19 + O(3^20)]] k5,k6,k7 0.321154513240... 1.55246328915... 0.161999172489... initial bound 2.62270974833657e117 bound_list [58, 58, 58] bound_list [8, 9, 9] bound_list [8, 7, 7] bound_list [8, 7, 7] starting search of points using coefficient bound 8 x-coords of S-integral points via linear combination of mw_base and torsion: [-3, -26/9, -8159/2916, -2759/1024, -151/64, -1343/576, -2, -7/4, -1, -47/256, 0, 1/4, 4/9, 9/16, 58/81, 7/9, 6169/6561, 1, 17/16, 2, 33/16, 172/81, 9/4, 25/9, 3, 31/9, 4, 25/4, 1793/256, 8, 625/64, 11, 14, 21, 37, 52, 6142/81, 93, 4537/36, 342, 406, 816, 207331217/4096] starting search of extra S-integer points with absolute value bounded by 3.89321964979420 x-coords of points with bounded absolute value [-3, -2, -1, 0, 1, 2] Total number of S-integral points: 43 [(-3 : 0 : 1), (-26/9 : 28/27 : 1), (-8159/2916 : 233461/157464 : 1), (-2759/1024 : 60819/32768 : 1), (-151/64 : 1333/512 : 1), (-1343/576 : 36575/13824 : 1), (-2 : 3 : 1), (-7/4 : 25/8 : 1), (-1 : 3 : 1), (-47/256 : 9191/4096 : 1), (0 : 2 : 1), (1/4 : 13/8 : 1), (4/9 : 35/27 : 1), (9/16 : 69/64 : 1), (58/81 : 559/729 : 1), (7/9 : 17/27 : 1), (6169/6561 : 109871/531441 : 1), (1 : 0 : 1), (17/16 : -25/64 : 1), (2 : 0 : 1), (33/16 : 17/64 : 1), (172/81 : 350/729 : 1), (9/4 : 7/8 : 1), (25/9 : 64/27 : 1), (3 : 3 : 1), (31/9 : 116/27 : 1), (4 : 6 : 1), (25/4 : 111/8 : 1), (1793/256 : 68991/4096 : 1), (8 : 21 : 1), (625/64 : 14839/512 : 1), (11 : 35 : 1), (14 : 51 : 1), (21 : 95 : 1), (37 : 224 : 1), (52 : 374 : 1), (6142/81 : 480700/729 : 1), (93 : 896 : 1), (4537/36 : 305425/216 : 1), (342 : 6324 : 1), (406 : 8180 : 1), (816 : 23309 : 1), (207331217/4096 : 2985362173625/262144 : 1)]
37d28b071d0d8d35874225db8855ec5bb17975fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/37d28b071d0d8d35874225db8855ec5bb17975fc/ell_rational_field.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 348, 67, 14970, 23811, 67, 4139, 12, 2890, 16, 348, 16, 14721, 67, 1969, 2218, 6079, 2187, 3937, 67, 2977, 87, 33, 8381, 16, 3988, 33, 8381, 16, 14601, 33, 7036, 4672, 3536, 14169, 281, 777, 348, 17, 14970, 23811, 3143, 261, 416, 358, 1573, 13, 603, 333, 415, 549, 21507, 8882, 18, 225, 12943, 30, 348, 1493, 666, 434, 846, 4485, 14721, 67, 1969, 1493, 666, 434, 10426, 549, 21507, 9423, 2148, 12516, 326, 490, 517, 1165, 17, 3218, 330, 1041, 434, 512, 261, 1886, 30, 296, 6079, 11, 300, 4097, 365, 18, 23730, 10756, 3937, 67, 2977, 87, 1493, 1053, 19, 8381, 261, 1886, 1083, 4672, 309, 1053, 326, 876, 1914, 3937, 453, 471, 300, 52, 16, 3541, 1338, 1245, 434, 1517, 3082, 18, 3988, 1493, 1053, 19, 8381, 261, 1886, 1083, 4672, 309, 1053, 16, 2690, 3189, 434, 326, 16039, 854, 876, 18, 14601, 1493, 1053, 19, 8381, 261, 1886, 1053, 4672, 309, 1053, 8061, 348, 17, 14970, 23811, 3143, 903, 506, 2106, 18, 225, 971, 1083, 16, 326, 16948, 10853, 903, 506, 8470, 598, 326, 14601, 33, 8381, 2982, 16, 471, 2546, 326, 813, 17, 17664, 310, 727, 745, 358, 348, 67, 14970, 23811, 67, 92, 67, 9076, 67, 1918, 67, 5113, 67, 26220, 67, 1637, 12, 5113, 67, 3653, 13, 353, 16195, 18, 225, 2672, 333, 1338, 309, 326, 16039, 5530, 4885, 1525, 16, 1496, 506, 1894, 329, 716, 1508, 518, 2780, 506, 15403, 716, 777, 348, 17, 14970, 23811, 3143, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 348, 67, 14970, 23811, 67, 4139, 12, 2890, 16, 348, 16, 14721, 67, 1969, 2218, 6079, 2187, 3937, 67, 2977, 87, 33, 8381, 16, 3988, 33, 8381, 16, 14601, 33, 7036, 4672, 3536, 14169, 281, 777, 348, 17, 14970, 23811, 3143, 261, 416, 358, 1573, 13, 603, 333, 415, 549, 21507, 8882, 18, 225, 12943, 30, 348, 1493, 666, 434, 846, 4485, 14721, 67, 1969, 1493, 666, 434, 10426, 549, 21507, 9423, 2148, 12516, 326, 490, 517, 1165, 17, 3218, 330, 1041, 434, 512, 261, 1886, 30, 296, 6079, 11, 300, 4097, 365, 18, 23730, 10756, 3937, 67, 2977, 87, 1493, 1053, 19, 8381, 261, 1886, 1083, 4672, 309, 1053, 326, 876, 1914, 3937, 453, 471, 300, 52, 2 ]
diffs = [value for value in L2 if not L1.count(value) > 0 ] default = 'Following values were not found from first list: ' default += ', '.join(diffs) _verify_condition(len(diffs) == 0, default, msg, values)
diffs = ', '.join([ str(item) for item in L2 if item not in L1 ]) default = 'Following values were not found from first list: ' + diffs _verify_condition(diffs == '', default, msg, values)
def list_should_contain_sub_list(self, L1, L2, msg=None, values=True): """Fails if not all of the elements in L2 are found in L1. The order of values and the number of values are not taken into acount. See the use of 'msg' and 'values' from the 'List Should Be Equal' keyword. """ diffs = [value for value in L2 if not L1.count(value) > 0 ] default = 'Following values were not found from first list: ' default += ', '.join(diffs) _verify_condition(len(diffs) == 0, default, msg, values)
9e3b0b6f2f5e1229f613f2fc11d15a4072f9d6db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/9e3b0b6f2f5e1229f613f2fc11d15a4072f9d6db/Collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 13139, 67, 28744, 67, 1717, 67, 1098, 12, 2890, 16, 511, 21, 16, 511, 22, 16, 1234, 33, 7036, 16, 924, 33, 5510, 4672, 3536, 30800, 309, 486, 777, 434, 326, 2186, 316, 511, 22, 854, 1392, 316, 511, 21, 18, 225, 1021, 1353, 434, 924, 471, 326, 1300, 434, 924, 854, 486, 9830, 1368, 1721, 592, 18, 225, 2164, 326, 999, 434, 296, 3576, 11, 471, 296, 2372, 11, 628, 326, 296, 682, 9363, 4823, 9057, 11, 4932, 18, 3536, 15250, 273, 306, 1132, 364, 460, 316, 511, 22, 309, 486, 511, 21, 18, 1883, 12, 1132, 13, 405, 374, 308, 805, 273, 296, 8328, 310, 924, 4591, 486, 1392, 628, 1122, 666, 30, 296, 805, 1011, 2265, 2418, 5701, 12, 11593, 2556, 13, 389, 8705, 67, 4175, 12, 1897, 12, 11593, 2556, 13, 422, 374, 16, 805, 16, 1234, 16, 924, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 666, 67, 13139, 67, 28744, 67, 1717, 67, 1098, 12, 2890, 16, 511, 21, 16, 511, 22, 16, 1234, 33, 7036, 16, 924, 33, 5510, 4672, 3536, 30800, 309, 486, 777, 434, 326, 2186, 316, 511, 22, 854, 1392, 316, 511, 21, 18, 225, 1021, 1353, 434, 924, 471, 326, 1300, 434, 924, 854, 486, 9830, 1368, 1721, 592, 18, 225, 2164, 326, 999, 434, 296, 3576, 11, 471, 296, 2372, 11, 628, 326, 296, 682, 9363, 4823, 9057, 11, 4932, 18, 3536, 15250, 273, 306, 1132, 364, 460, 316, 511, 22, 309, 486, 511, 21, 18, 1883, 12, 1132, 13, 405, 374, 308, 805, 273, 296, 8328, 310, 924, 4591, 486, 1392, 628, 1122, 666, 30, 296, 2 ]
reads in a FASTQ (PHRED) file and re-saves it as another FASTQ (PHRED) file:
reads in a standard Sanger style FASTQ file (using PHRED scores) and re-saves it as another FASTQ (PHRED) file:
def QualPhredIterator(handle, alphabet = single_letter_alphabet, title2ids = None) : """For QUAL files which include PHRED quality scores, but no sequence. For example, consider this short QUAL file:: >EAS54_6_R1_2_1_413_324 26 26 18 26 26 26 26 26 26 26 26 26 26 26 26 22 26 26 26 26 26 26 26 23 23 >EAS54_6_R1_2_1_540_792 26 26 26 26 26 26 26 26 26 26 26 22 26 26 26 26 26 12 26 26 26 18 26 23 18 >EAS54_6_R1_2_1_443_348 26 26 26 26 26 26 26 26 26 26 26 24 26 22 26 26 13 22 26 18 24 18 18 18 18 Using this module directly you might run: >>> handle = open("Quality/example.qual", "rU") >>> for record in QualPhredIterator(handle) : ... print record.id, record.seq EAS54_6_R1_2_1_413_324 ????????????????????????? EAS54_6_R1_2_1_540_792 ????????????????????????? EAS54_6_R1_2_1_443_348 ????????????????????????? >>> handle.close() Typically however, you would call this via Bio.SeqIO instead with "qual" as the format: >>> from Bio import SeqIO >>> handle = open("Quality/example.qual", "rU") >>> for record in SeqIO.parse(handle, "qual") : ... print record.id, record.seq EAS54_6_R1_2_1_413_324 ????????????????????????? EAS54_6_R1_2_1_540_792 ????????????????????????? EAS54_6_R1_2_1_443_348 ????????????????????????? >>> handle.close() Becase QUAL files don't contain the sequence string itself, the seq property is set to an UnknownSeq object. As no alphabet was given, this has defaulted to a generic single letter alphabet and the character "?" used. By specifying a nucleotide alphabet, "N" is used instead: >>> from Bio import SeqIO >>> from Bio.Alphabet import generic_dna >>> handle = open("Quality/example.qual", "rU") >>> for record in SeqIO.parse(handle, "qual", alphabet=generic_dna) : ... print record.id, record.seq EAS54_6_R1_2_1_413_324 NNNNNNNNNNNNNNNNNNNNNNNNN EAS54_6_R1_2_1_540_792 NNNNNNNNNNNNNNNNNNNNNNNNN EAS54_6_R1_2_1_443_348 NNNNNNNNNNNNNNNNNNNNNNNNN >>> handle.close() However, the quality scores themselves are available as a list of integers in each record's per-letter-annotation: >>> print record.letter_annotations["phred_quality"] [26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 24, 26, 22, 26, 26, 13, 22, 26, 18, 24, 18, 18, 18, 18] You can still slice one of these SeqRecord objects with an UnknownSeq: >>> sub_record = record[5:10] >>> print sub_record.id, sub_record.letter_annotations["phred_quality"] EAS54_6_R1_2_1_443_348 [26, 26, 26, 26, 26] """ #Skip any text before the first record (e.g. blank lines, comments) while True : line = handle.readline() if line == "" : return #Premature end of file, or just empty? if line[0] == ">" : break while True : if line[0]!=">" : raise ValueError("Records in Fasta files should start with '>' character") if title2ids : id, name, descr = title2ids(line[1:].rstrip()) else : descr = line[1:].rstrip() id = descr.split()[0] name = id qualities = [] line = handle.readline() while True: if not line : break if line[0] == ">": break qualities.extend([int(word) for word in line.split()]) line = handle.readline() if qualities : if min(qualities) < 0 or max(qualities) > 90 : raise ValueError(("Quality score range for %s is %i to %i, outside the " \ +"expected 0 to 90. Perhaps these are Solexa/Illumina " \ +"scores, and not PHRED scores?") \ % (id, min(qualities), max(qualities))) #Return the record and then continue... record = SeqRecord(UnknownSeq(len(qualities), alphabet), id = id, name = name, description = descr) record.letter_annotations["phred_quality"] = qualities yield record if not line : return #StopIteration assert False, "Should not reach this line"
ca957491dd42f6d15dc267230d1a6ebbd10491c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/ca957491dd42f6d15dc267230d1a6ebbd10491c1/QualityIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15029, 3731, 1118, 3198, 12, 4110, 16, 10877, 273, 2202, 67, 13449, 67, 287, 8907, 16, 2077, 22, 2232, 273, 599, 13, 294, 3536, 1290, 10110, 1013, 1390, 1492, 2341, 15490, 5879, 9312, 8474, 16, 1496, 1158, 3102, 18, 225, 2457, 3454, 16, 5260, 333, 3025, 10110, 1013, 585, 2866, 225, 405, 41, 3033, 6564, 67, 26, 67, 54, 21, 67, 22, 67, 21, 67, 24, 3437, 67, 1578, 24, 10659, 10659, 6549, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 11201, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10213, 10213, 405, 41, 3033, 6564, 67, 26, 67, 54, 21, 67, 22, 67, 21, 67, 6564, 20, 67, 7235, 22, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 11201, 10659, 10659, 10659, 10659, 10659, 2593, 10659, 10659, 10659, 6549, 10659, 10213, 6549, 405, 41, 3033, 6564, 67, 26, 67, 54, 21, 67, 22, 67, 21, 67, 6334, 23, 67, 5026, 28, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 4248, 10659, 11201, 10659, 10659, 5958, 11201, 10659, 6549, 4248, 6549, 6549, 6549, 6549, 225, 11637, 333, 1605, 5122, 1846, 4825, 1086, 30, 225, 4080, 1640, 273, 1696, 2932, 14846, 19, 8236, 18, 3369, 3113, 315, 86, 57, 7923, 4080, 364, 1409, 316, 15029, 3731, 1118, 3198, 12, 4110, 13, 294, 1372, 377, 1172, 1409, 18, 350, 16, 1409, 18, 5436, 512, 3033, 6564, 67, 26, 67, 54, 21, 67, 22, 67, 21, 67, 24, 3437, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 15029, 3731, 1118, 3198, 12, 4110, 16, 10877, 273, 2202, 67, 13449, 67, 287, 8907, 16, 2077, 22, 2232, 273, 599, 13, 294, 3536, 1290, 10110, 1013, 1390, 1492, 2341, 15490, 5879, 9312, 8474, 16, 1496, 1158, 3102, 18, 225, 2457, 3454, 16, 5260, 333, 3025, 10110, 1013, 585, 2866, 225, 405, 41, 3033, 6564, 67, 26, 67, 54, 21, 67, 22, 67, 21, 67, 24, 3437, 67, 1578, 24, 10659, 10659, 6549, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 11201, 10659, 10659, 10659, 10659, 10659, 10659, 10659, 10213, 10213, 405, 41, 3033, 6564, 67, 26, 67, 54, 21, 67, 22, 67, 21, 67, 6564, 20, 67, 7235, 22, 10659, 10659, 10659, 10659, 2 ]
print q
def vfolder_set(id, name, query, parent): cursor = sqmail.db.cursor() q = "UPDATE vfolders SET name='%s', query='%s', parent=%d WHERE id=%d"\ % (sqmail.db.escape(name), sqmail.db.escape(query), parent, id) print q cursor.execute(q)
fde2418a5ead2e41f7b3698418f1637d21d6229c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3083/fde2418a5ead2e41f7b3698418f1637d21d6229c/vfolder.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 5609, 67, 542, 12, 350, 16, 508, 16, 843, 16, 982, 4672, 3347, 273, 4744, 4408, 18, 1966, 18, 9216, 1435, 1043, 273, 315, 8217, 331, 16064, 7855, 508, 28713, 87, 2187, 843, 28713, 87, 2187, 982, 5095, 72, 4852, 612, 5095, 72, 12691, 738, 261, 11410, 4408, 18, 1966, 18, 6939, 12, 529, 3631, 4744, 4408, 18, 1966, 18, 6939, 12, 2271, 3631, 982, 16, 612, 13, 3347, 18, 8837, 12, 85, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 331, 5609, 67, 542, 12, 350, 16, 508, 16, 843, 16, 982, 4672, 3347, 273, 4744, 4408, 18, 1966, 18, 9216, 1435, 1043, 273, 315, 8217, 331, 16064, 7855, 508, 28713, 87, 2187, 843, 28713, 87, 2187, 982, 5095, 72, 4852, 612, 5095, 72, 12691, 738, 261, 11410, 4408, 18, 1966, 18, 6939, 12, 529, 3631, 4744, 4408, 18, 1966, 18, 6939, 12, 2271, 3631, 982, 16, 612, 13, 3347, 18, 8837, 12, 85, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise IOError(popen.stderr.read()) for line in popen.stdout:
raise IOError(stderr.decode("mbcs")) stdout = stdout.decode("mbcs") for line in stdout.split("\n"):
def query_vcvarsall(version, arch="x86"): """Launch vcvarsall.bat and read the settings from its environment """ vcvarsall = find_vcvarsall(version) interesting = set(("include", "lib", "libpath", "path")) result = {} if vcvarsall is None: raise IOError("Unable to find vcvarsall.bat") popen = subprocess.Popen('"%s" %s & set' % (vcvarsall, arch), stdout=subprocess.PIPE, stderr=subprocess.PIPE) if popen.wait() != 0: raise IOError(popen.stderr.read()) for line in popen.stdout: line = Reg.convert_mbcs(line) if '=' not in line: continue line = line.strip() key, value = line.split('=') key = key.lower() if key in interesting: if value.endswith(os.pathsep): value = value[:-1] result[key] = value if len(result) != len(interesting): raise ValueError(str(list(result.keys()))) return result
cbdb705c887fb9c7feaa83ad93c365448926b110 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/cbdb705c887fb9c7feaa83ad93c365448926b110/msvc9compiler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 4227, 4699, 454, 12, 1589, 16, 6637, 1546, 92, 5292, 6, 4672, 3536, 9569, 12802, 4699, 454, 18, 28260, 471, 855, 326, 1947, 628, 2097, 3330, 3536, 12802, 4699, 454, 273, 1104, 67, 4227, 4699, 454, 12, 1589, 13, 26122, 273, 444, 12, 2932, 6702, 3113, 315, 2941, 3113, 315, 2941, 803, 3113, 315, 803, 6, 3719, 563, 273, 2618, 225, 309, 12802, 4699, 454, 353, 599, 30, 1002, 8340, 2932, 3370, 358, 1104, 12802, 4699, 454, 18, 28260, 7923, 30925, 273, 6652, 18, 52, 3190, 22076, 9, 87, 6, 738, 87, 473, 444, 11, 738, 261, 4227, 4699, 454, 16, 6637, 3631, 3909, 33, 1717, 2567, 18, 27602, 16, 4514, 33, 1717, 2567, 18, 27602, 13, 309, 30925, 18, 7048, 1435, 480, 374, 30, 1002, 8340, 12, 11241, 18, 3922, 2932, 1627, 2143, 6, 3719, 225, 3909, 273, 3909, 18, 3922, 2932, 1627, 2143, 7923, 364, 980, 316, 3909, 18, 4939, 31458, 82, 6, 4672, 980, 273, 2526, 18, 6283, 67, 1627, 2143, 12, 1369, 13, 309, 5214, 486, 316, 980, 30, 1324, 980, 273, 980, 18, 6406, 1435, 498, 16, 460, 273, 980, 18, 4939, 2668, 2218, 13, 498, 273, 498, 18, 8167, 1435, 309, 498, 316, 26122, 30, 309, 460, 18, 5839, 1918, 12, 538, 18, 803, 10814, 4672, 460, 273, 460, 10531, 17, 21, 65, 563, 63, 856, 65, 273, 460, 225, 309, 562, 12, 2088, 13, 480, 562, 12, 2761, 10100, 4672, 1002, 2068, 12, 701, 12, 1098, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 67, 4227, 4699, 454, 12, 1589, 16, 6637, 1546, 92, 5292, 6, 4672, 3536, 9569, 12802, 4699, 454, 18, 28260, 471, 855, 326, 1947, 628, 2097, 3330, 3536, 12802, 4699, 454, 273, 1104, 67, 4227, 4699, 454, 12, 1589, 13, 26122, 273, 444, 12, 2932, 6702, 3113, 315, 2941, 3113, 315, 2941, 803, 3113, 315, 803, 6, 3719, 563, 273, 2618, 225, 309, 12802, 4699, 454, 353, 599, 30, 1002, 8340, 2932, 3370, 358, 1104, 12802, 4699, 454, 18, 28260, 7923, 30925, 273, 6652, 18, 52, 3190, 22076, 9, 87, 6, 738, 87, 473, 444, 11, 738, 261, 4227, 4699, 454, 16, 6637, 3631, 3909, 33, 1717, 2567, 18, 27602, 16, 4514, 33, 1717, 2567, 18, 27602, 2 ]
assert_equal(str(tp(1.2)), str(float(1.2)),
assert_equal(locale.format("%f",tp(1.2)), locale.format("%f",float(1.2)),
def _test_locale_independance(tp): # XXX: How to query locale on a given system ? # French is one language where the decimal is ',' not '.', and should be # relatively common on many systems curloc = locale.getlocale(locale.LC_NUMERIC) try: if not sys.platform == 'win32': locale.setlocale(locale.LC_NUMERIC, 'fr_FR') else: locale.setlocale(locale.LC_NUMERIC, 'FRENCH') assert_equal(str(tp(1.2)), str(float(1.2)), err_msg='Failed locale test for type %s' % tp) finally: locale.setlocale(locale.LC_NUMERIC, locale=curloc)
a5ca79d91f5ded5bee86407605e3f2004af3e6a6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/a5ca79d91f5ded5bee86407605e3f2004af3e6a6/test_print.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3813, 67, 6339, 67, 267, 5817, 1359, 12, 6834, 4672, 468, 11329, 30, 9017, 358, 843, 2573, 603, 279, 864, 2619, 692, 225, 468, 478, 26728, 353, 1245, 2653, 1625, 326, 6970, 353, 3316, 486, 2611, 16, 471, 1410, 506, 468, 1279, 17526, 2975, 603, 4906, 14908, 662, 1829, 273, 2573, 18, 588, 6339, 12, 6339, 18, 13394, 67, 22998, 13, 775, 30, 309, 486, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 2573, 18, 542, 6339, 12, 6339, 18, 13394, 67, 22998, 16, 296, 4840, 67, 9981, 6134, 469, 30, 2573, 18, 542, 6339, 12, 6339, 18, 13394, 67, 22998, 16, 296, 42, 24296, 1792, 6134, 225, 1815, 67, 9729, 12, 6339, 18, 2139, 27188, 74, 3113, 6834, 12, 21, 18, 22, 13, 3631, 2573, 18, 2139, 27188, 74, 3113, 5659, 12, 21, 18, 22, 13, 3631, 393, 67, 3576, 2218, 2925, 2573, 1842, 364, 618, 738, 87, 11, 738, 8071, 13, 3095, 30, 2573, 18, 542, 6339, 12, 6339, 18, 13394, 67, 22998, 16, 2573, 33, 1397,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 316, 326, 981, 30, 1652, 389, 3813, 67, 6339, 67, 267, 5817, 1359, 12, 6834, 4672, 468, 11329, 30, 9017, 358, 843, 2573, 603, 279, 864, 2619, 692, 225, 468, 478, 26728, 353, 1245, 2653, 1625, 326, 6970, 353, 3316, 486, 2611, 16, 471, 1410, 506, 468, 1279, 17526, 2975, 603, 4906, 14908, 662, 1829, 273, 2573, 18, 588, 6339, 12, 6339, 18, 13394, 67, 22998, 13, 775, 30, 309, 486, 2589, 18, 9898, 422, 296, 8082, 1578, 4278, 2573, 18, 542, 6339, 12, 6339, 18, 13394, 67, 22998, 16, 296, 4840, 67, 9981, 6134, 469, 30, 2573, 18, 542, 6339, 12, 6339, 18, 13394, 67, 22998, 16, 296, 42, 24296, 1792, 6134, 225, 1815, 67, 9729, 12, 6339, 18, 2139, 27188, 74, 2 ]
if p.__baseClassName__ == 'NonLin': p.nNaNs = len(isnan(p.c(p.xk))) + len(isnan(p.h(p.xk)))
if p.__baseClassName__ == 'NonLin': p.nNaNs = len(where(isnan(p.c(p.xk)))[0]) + len(where(isnan(p.h(p.xk)))[0])
def __decodeIterFcnArgs__(self, p, *args, **kwargs): """ decode and assign x, f, maxConstr (and/or other fields) to p.iterValues """ fArg = True
b47e58e6d7e8169a2938a760957e4f83958301cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6196/b47e58e6d7e8169a2938a760957e4f83958301cf/baseSolver.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3922, 2360, 42, 10305, 2615, 972, 12, 2890, 16, 225, 293, 16, 225, 380, 1968, 16, 225, 2826, 4333, 4672, 3536, 2495, 471, 2683, 619, 16, 284, 16, 943, 442, 701, 261, 464, 19, 280, 1308, 1466, 13, 358, 293, 18, 2165, 1972, 3536, 284, 4117, 225, 273, 1053, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 3922, 2360, 42, 10305, 2615, 972, 12, 2890, 16, 225, 293, 16, 225, 380, 1968, 16, 225, 2826, 4333, 4672, 3536, 2495, 471, 2683, 619, 16, 284, 16, 943, 442, 701, 261, 464, 19, 280, 1308, 1466, 13, 358, 293, 18, 2165, 1972, 3536, 284, 4117, 225, 273, 1053, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
id='c4o4i7m2lbamc4k26sc2vokh5g%40group.calendar.google.com'):
id='python.gcal.test%40gmail.com'):
def _DeleteCalendarSubscription(self, id='c4o4i7m2lbamc4k26sc2vokh5g%40group.calendar.google.com'): """Deletes the subscription to the calendar with the specified ID.""" print 'Deleting the calendar subscription with ID: %s' % id calendar_url = ( 'http://www.google.com/calendar/feeds/default/allcalendars/full/%s' % id) calendar_entry = self.cal_client.GetCalendarListEntry(calendar_url) self.cal_client.DeleteCalendarEntry(calendar_entry.GetEditLink().href)
0fd73016e9ed2e0b1a268ba70f42439a3feaa2eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10620/0fd73016e9ed2e0b1a268ba70f42439a3feaa2eb/calendarExample.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2613, 7335, 6663, 12, 2890, 16, 612, 2218, 8103, 18, 75, 771, 18, 3813, 9, 7132, 75, 4408, 18, 832, 11, 4672, 3536, 7551, 326, 4915, 358, 326, 5686, 598, 326, 1269, 1599, 12123, 1172, 296, 20433, 326, 5686, 4915, 598, 1599, 30, 738, 87, 11, 738, 612, 5686, 67, 718, 273, 261, 296, 2505, 2207, 5591, 18, 9536, 18, 832, 19, 11650, 19, 7848, 87, 19, 1886, 19, 454, 11650, 87, 19, 2854, 5258, 87, 11, 738, 612, 13, 5686, 67, 4099, 273, 365, 18, 771, 67, 2625, 18, 967, 7335, 27899, 12, 11650, 67, 718, 13, 365, 18, 771, 67, 2625, 18, 2613, 7335, 1622, 12, 11650, 67, 4099, 18, 967, 4666, 2098, 7675, 7547, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2613, 7335, 6663, 12, 2890, 16, 612, 2218, 8103, 18, 75, 771, 18, 3813, 9, 7132, 75, 4408, 18, 832, 11, 4672, 3536, 7551, 326, 4915, 358, 326, 5686, 598, 326, 1269, 1599, 12123, 1172, 296, 20433, 326, 5686, 4915, 598, 1599, 30, 738, 87, 11, 738, 612, 5686, 67, 718, 273, 261, 296, 2505, 2207, 5591, 18, 9536, 18, 832, 19, 11650, 19, 7848, 87, 19, 1886, 19, 454, 11650, 87, 19, 2854, 5258, 87, 11, 738, 612, 13, 5686, 67, 4099, 273, 365, 18, 771, 67, 2625, 18, 967, 7335, 27899, 12, 11650, 67, 718, 13, 365, 18, 771, 67, 2625, 18, 2613, 7335, 1622, 12, 11650, 67, 4099, 18, 967, 4666, 2098, 7675, 7547, 2 ]
assert(c.readlines(),
assert(c.readlines() ==
def test_array(self): a =np.array( [[1,2],[3,4]], float) c = StringIO.StringIO() np.savetxt(c, a) c.seek(0) assert(c.readlines(), ['1.000000000000000000e+00 2.000000000000000000e+00\n', '3.000000000000000000e+00 4.000000000000000000e+00\n'])
e39cb02e227e168f8b3b55c455820c47e2d6c4c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/e39cb02e227e168f8b3b55c455820c47e2d6c4c1/test_io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 1126, 12, 2890, 4672, 279, 273, 6782, 18, 1126, 12, 12167, 21, 16, 22, 6487, 63, 23, 16, 24, 65, 6487, 1431, 13, 276, 273, 15777, 18, 780, 4294, 1435, 1130, 18, 87, 842, 278, 15239, 12, 71, 16, 279, 13, 276, 18, 16508, 12, 20, 13, 1815, 12, 71, 18, 896, 3548, 1435, 422, 10228, 21, 18, 12648, 2787, 9449, 73, 15, 713, 576, 18, 12648, 2787, 9449, 73, 15, 713, 64, 82, 2187, 296, 23, 18, 12648, 2787, 9449, 73, 15, 713, 1059, 18, 12648, 2787, 9449, 73, 15, 713, 64, 82, 19486, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 422, 10228, 21, 18, 12648, 2787, 9449, 73, 15, 713, 576, 18, 12648, 2787, 9449, 73, 15, 713, 64, 82, 2187, 296, 23, 18, 12648, 2787, 9449, 73, 15, 713, 1059, 18, 12648, 2787, 9449, 73, 15, 713, 64, 82, 19486, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
x, y = fox.pos
x, y = map(int, fox.pos)
def _paint_gamefield(self): """ Draw the board. """ # Fill self.arena of black self.arena.fill((0, 0, 0))
268ecf8b3d592ec2a5dd56bcb180cf4c21706bde /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4543/268ecf8b3d592ec2a5dd56bcb180cf4c21706bde/bubbles.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 84, 1598, 67, 13957, 1518, 12, 2890, 4672, 3536, 10184, 326, 11094, 18, 3536, 468, 14192, 365, 18, 834, 6582, 434, 7721, 365, 18, 834, 6582, 18, 5935, 12443, 20, 16, 374, 16, 374, 3719, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 834, 6582, 434, 7721, 365, 18, 834, 6582, 18, 5935, 12443, 20, 16, 374, 16, 374, 3719, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
site.manage_permission(PERMISSION_ADD_ANSWER, ('Anonymous', 'Authenticated'), acquire=0) site.manage_permission(PERMISSION_VIEW_REPORTS, ('Anonymous', 'Authenticated'), acquire=0)
site.manage_permission(PERMISSION_ADD_ANSWER, ('Anonymous', ), acquire=0) site.manage_permission(PERMISSION_VIEW_REPORTS, ('Anonymous', ), acquire=0)
def manage_configureSecurity(self): """Configure security for surveys: - Manager + Administrator: add/manage survey templates - Contributor: add/manage questionnaires (surveys) - Anonymous + Authenticated: add answer (take survey) & view reports """ site = self.getSite() zLOG.LOG('NaayaSurvey', zLOG.INFO, 'Configuring security for surveys on site %s' % (site.absolute_url(1))) site.manage_permission(PERMISSION_MANAGE_SURVEYTEMPLATE, ('Manager', 'Administrator'), acquire=0) site.manage_permission(PERMISSION_ADD_SURVEYTEMPLATE, ('Manager', 'Administrator'), acquire=0) site.manage_permission(PERMISSION_ADD_ATTACHMENT, ('Manager', 'Administrator'), acquire=0) site.manage_permission(PERMISSION_ADD_WIDGETS, ('Manager', 'Administrator'), acquire=0) site.manage_permission(PERMISSION_ADD_REPORT, ('Manager', 'Administrator'), acquire=0) site.manage_permission(PERMISSION_ADD_STATISTICS, ('Manager', 'Administrator'), acquire=0)
9e247f38ce4d7c42e35db84ceb62d1addbc8ab5f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/9e247f38ce4d7c42e35db84ceb62d1addbc8ab5f/SurveyTool.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 14895, 4368, 12, 2890, 4672, 3536, 11207, 4373, 364, 14902, 87, 30, 300, 8558, 397, 7807, 14207, 30, 527, 19, 12633, 14902, 5539, 300, 735, 19293, 30, 527, 19, 12633, 5073, 6582, 2814, 261, 21448, 87, 13, 300, 29775, 397, 3123, 6096, 30, 527, 5803, 261, 22188, 14902, 13, 473, 1476, 10557, 3536, 2834, 273, 365, 18, 588, 4956, 1435, 998, 4842, 18, 4842, 2668, 24101, 528, 69, 22165, 2187, 998, 4842, 18, 5923, 16, 296, 809, 4017, 4373, 364, 14902, 87, 603, 2834, 738, 87, 11, 738, 261, 4256, 18, 12547, 67, 718, 12, 21, 20349, 2834, 18, 12633, 67, 9827, 12, 23330, 67, 9560, 2833, 67, 26397, 58, 2602, 12205, 16, 7707, 1318, 2187, 296, 4446, 14207, 19899, 10533, 33, 20, 13, 2834, 18, 12633, 67, 9827, 12, 23330, 67, 8355, 67, 26397, 58, 2602, 12205, 16, 7707, 1318, 2187, 296, 4446, 14207, 19899, 10533, 33, 20, 13, 2834, 18, 12633, 67, 9827, 12, 23330, 67, 8355, 67, 789, 9833, 1792, 3212, 16, 7707, 1318, 2187, 296, 4446, 14207, 19899, 10533, 33, 20, 13, 2834, 18, 12633, 67, 9827, 12, 23330, 67, 8355, 67, 59, 734, 3264, 55, 16, 7707, 1318, 2187, 296, 4446, 14207, 19899, 10533, 33, 20, 13, 2834, 18, 12633, 67, 9827, 12, 23330, 67, 8355, 67, 22710, 16, 7707, 1318, 2187, 296, 4446, 14207, 19899, 10533, 33, 20, 13, 2834, 18, 12633, 67, 9827, 12, 23330, 67, 8355, 67, 28549, 5511, 28919, 16, 7707, 1318, 2187, 296, 4446, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10680, 67, 14895, 4368, 12, 2890, 4672, 3536, 11207, 4373, 364, 14902, 87, 30, 300, 8558, 397, 7807, 14207, 30, 527, 19, 12633, 14902, 5539, 300, 735, 19293, 30, 527, 19, 12633, 5073, 6582, 2814, 261, 21448, 87, 13, 300, 29775, 397, 3123, 6096, 30, 527, 5803, 261, 22188, 14902, 13, 473, 1476, 10557, 3536, 2834, 273, 365, 18, 588, 4956, 1435, 998, 4842, 18, 4842, 2668, 24101, 528, 69, 22165, 2187, 998, 4842, 18, 5923, 16, 296, 809, 4017, 4373, 364, 14902, 87, 603, 2834, 738, 87, 11, 738, 261, 4256, 18, 12547, 67, 718, 12, 21, 20349, 2834, 18, 12633, 67, 9827, 12, 23330, 67, 9560, 2833, 67, 26397, 58, 2602, 12205, 16, 7707, 1318, 2187, 2 ]
opts = Variables(ARGUMENTS)
opts = Variables(args=ARGUMENTS)
def SetupForSENF(env, senf_paths = []): senf_paths.extend(('senf', '../senf', os.path.dirname(os.path.dirname(__file__)), '/usr/local', '/usr')) env.Append( LIBS = [ 'senf', 'rt', '$BOOSTREGEXLIB', '$BOOSTIOSTREAMSLIB', '$BOOSTSIGNALSLIB', '$BOOSTFSLIB' ], BOOSTREGEXLIB = 'boost_regex', BOOSTIOSTREAMSLIB = 'boost_iostreams', BOOSTSIGNALSLIB = 'boost_signals', BOOSTFSLIB = 'boost_filesystem', CXXFLAGS = [ '-Wno-long-long', '$CXXFLAGS_' ], CXXFLAGS_ = BuildTypeOptions('CXXFLAGS'), CPPDEFINES = [ '$expandLogOption', '$CPPDEFINES_' ], expandLogOption = expandLogOption, CPPDEFINES_ = BuildTypeOptions('CPPDEFINES'), LINKFLAGS = [ '-rdynamic', '$LINKFLAGS_' ], LINKFLAGS_ = BuildTypeOptions('LINKFLAGS'), LOGLEVELS = [ '$LOGLEVELS_' ], LOGLEVELS_ = BuildTypeOptions('LOGLEVELS'), ) env.SetDefault( CXXFLAGS_final = [], CXXFLAGS_normal = [], CXXFLAGS_debug = [], CPPDEFINES_final = [], CPPDEFINES_normal = [], CPPDEFINES_debug = [], LINKFLAGS_final = [], LINKFLAGS_normal = [], LINKFLAGS_debug = [], LOGLEVELS_final = [], LOGLEVELS_normal = [], LOGLEVELS_debug = [], ) # Interpret command line options opts = Variables(ARGUMENTS) opts.Add( 'LOGLEVELS', 'Special log levels. Syntax: <stream>|[<area>]|<level> ...', '${"$LOGLEVELS_"+(final and "final" or "debug")}' ) opts.Add( BoolOption('final', 'Build final (optimized) build', False) ) opts.Add( BoolOption('debug', 'Link in debug symbols', False) ) opts.Update(env) env.Replace(**dict(opts.UnknownVariables())) env.Help(opts.GenerateHelpText(env)) # If we have a symbolic link (or directory) 'senf', we use it as our # senf repository for path in senf_paths: if not path.startswith('/') : sconspath = '#/%s' % path else : sconspath = path if os.path.exists(os.path.join(path,"senf/config.hh")): print "\nUsing SENF in '%s'\n" \ % ('/..' in sconspath and os.path.abspath(path) or sconspath) env.Append( LIBPATH = [ sconspath ], CPPPATH = [ sconspath ], BUNDLEDIR = sconspath ) try: env.MergeFlags(file(os.path.join(path,"senf.conf")).read()) except IOError: print "(SENF configuration file 'senf.conf' not found, assuming non-final SENF)" env.Append(CPPDEFINES = [ 'SENF_DEBUG' ]) break elif os.path.exists(os.path.join(path,"include/senf/config.hh")): print "\nUsing system SENF in '%s/'\n" % sconspath env.Append(BUNDLEDIR = os.path.join(sconspath,"lib/senf")) break else: print "\nSENF library not found .. trying build anyway !!\n"
43a4ec7f465ca93b2dc4c4441098233e212cadab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2548/43a4ec7f465ca93b2dc4c4441098233e212cadab/senfutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10939, 1290, 1090, 26473, 12, 3074, 16, 28901, 74, 67, 4481, 273, 5378, 4672, 28901, 74, 67, 4481, 18, 14313, 12, 2668, 87, 275, 74, 2187, 25226, 87, 275, 74, 2187, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 13, 3631, 1173, 13640, 19, 3729, 2187, 1173, 13640, 26112, 1550, 18, 5736, 12, 8961, 12692, 2868, 273, 306, 296, 87, 275, 74, 2187, 296, 3797, 2187, 3365, 5315, 4005, 12472, 14484, 2187, 3365, 5315, 4005, 45, 4005, 10715, 55, 14484, 2187, 3365, 5315, 4005, 11260, 1013, 55, 14484, 2187, 3365, 5315, 4005, 4931, 14484, 11, 308, 16, 9784, 4005, 12472, 14484, 377, 273, 296, 25018, 67, 7584, 2187, 9784, 4005, 45, 4005, 10715, 55, 14484, 273, 296, 25018, 67, 77, 669, 793, 87, 2187, 9784, 4005, 11260, 1013, 55, 14484, 282, 273, 296, 25018, 67, 29659, 2187, 9784, 4005, 4931, 14484, 3639, 273, 296, 25018, 67, 17846, 2187, 225, 385, 5619, 17836, 1850, 273, 306, 2400, 59, 2135, 17, 5748, 17, 5748, 2187, 3365, 39, 5619, 17836, 4623, 308, 16, 385, 5619, 17836, 67, 540, 273, 3998, 559, 1320, 2668, 39, 5619, 17836, 19899, 225, 5181, 52, 12904, 3740, 55, 3639, 273, 306, 3365, 12320, 1343, 1895, 2187, 3365, 4258, 52, 12904, 3740, 55, 4623, 308, 16, 4542, 1343, 1895, 282, 273, 4542, 1343, 1895, 16, 5181, 52, 12904, 3740, 55, 67, 4202, 273, 3998, 559, 1320, 2668, 4258, 52, 12904, 3740, 55, 19899, 225, 22926, 17836, 540, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 10939, 1290, 1090, 26473, 12, 3074, 16, 28901, 74, 67, 4481, 273, 5378, 4672, 28901, 74, 67, 4481, 18, 14313, 12, 2668, 87, 275, 74, 2187, 25226, 87, 275, 74, 2187, 1140, 18, 803, 18, 12287, 12, 538, 18, 803, 18, 12287, 12, 972, 768, 972, 13, 3631, 1173, 13640, 19, 3729, 2187, 1173, 13640, 26112, 1550, 18, 5736, 12, 8961, 12692, 2868, 273, 306, 296, 87, 275, 74, 2187, 296, 3797, 2187, 3365, 5315, 4005, 12472, 14484, 2187, 3365, 5315, 4005, 45, 4005, 10715, 55, 14484, 2187, 3365, 5315, 4005, 11260, 1013, 55, 14484, 2187, 3365, 5315, 4005, 4931, 14484, 11, 308, 16, 9784, 4005, 12472, 14484, 377, 273, 296, 25018, 67, 7584, 2187, 9784, 4005, 45, 2 ]
self._instancesUnrequestedTable.remove(instance)
def clearTemporary(self): """ Removes all tables only built temporarily as to satisfy build dependencies. This method is called before L{build()} terminates. If the build process is interruptes (e.g. by the user pressing Ctrl+C), this method should be called as to make sure that these temporary tables are removed and not included in later builds. """ # remove tables that where only created as build dependencies if hasattr(self, '_instancesUnrequestedTable'): for instance in self._instancesUnrequestedTable: if not self.quiet: warn("Removing table '" + instance.PROVIDES \ + "' as it was only created to solve build " \ + "dependencies") try: instance.remove() self._instancesUnrequestedTable.remove(instance) except OperationalError: pass # remove old metadata if instance.PROVIDES in self.db.tables: del self.db.tables[instance.PROVIDES]
22c6ec91d4f40de6a2c37aea1b97e35895275a84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11128/22c6ec91d4f40de6a2c37aea1b97e35895275a84/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 11685, 12, 2890, 4672, 3536, 20284, 777, 4606, 1338, 6650, 18917, 487, 358, 18866, 1361, 5030, 18, 1220, 707, 353, 2566, 1865, 511, 95, 3510, 17767, 30559, 18, 971, 326, 1361, 1207, 353, 13123, 281, 261, 73, 18, 75, 18, 635, 326, 729, 11779, 310, 30715, 15, 39, 3631, 333, 707, 1410, 506, 2566, 487, 358, 1221, 3071, 716, 4259, 6269, 4606, 854, 3723, 471, 486, 5849, 316, 5137, 10736, 18, 3536, 468, 1206, 4606, 716, 1625, 1338, 2522, 487, 1361, 5030, 309, 3859, 12, 2890, 16, 2070, 10162, 984, 19065, 1388, 11, 4672, 364, 791, 316, 365, 6315, 10162, 984, 19065, 1388, 30, 309, 486, 365, 18, 20380, 30, 1894, 2932, 18939, 1014, 2119, 397, 791, 18, 3373, 15472, 3991, 521, 397, 2491, 487, 518, 1703, 1338, 2522, 358, 12439, 1361, 315, 521, 397, 315, 11037, 7923, 775, 30, 791, 18, 4479, 1435, 1335, 4189, 287, 668, 30, 1342, 468, 1206, 1592, 1982, 309, 791, 18, 3373, 15472, 3991, 316, 365, 18, 1966, 18, 9373, 30, 1464, 365, 18, 1966, 18, 9373, 63, 1336, 18, 3373, 15472, 3991, 65, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2424, 11685, 12, 2890, 4672, 3536, 20284, 777, 4606, 1338, 6650, 18917, 487, 358, 18866, 1361, 5030, 18, 1220, 707, 353, 2566, 1865, 511, 95, 3510, 17767, 30559, 18, 971, 326, 1361, 1207, 353, 13123, 281, 261, 73, 18, 75, 18, 635, 326, 729, 11779, 310, 30715, 15, 39, 3631, 333, 707, 1410, 506, 2566, 487, 358, 1221, 3071, 716, 4259, 6269, 4606, 854, 3723, 471, 486, 5849, 316, 5137, 10736, 18, 3536, 468, 1206, 4606, 716, 1625, 1338, 2522, 487, 1361, 5030, 309, 3859, 12, 2890, 16, 2070, 10162, 984, 19065, 1388, 11, 4672, 364, 791, 316, 365, 6315, 10162, 984, 19065, 1388, 30, 309, 486, 365, 18, 20380, 30, 1894, 2932, 18939, 1014, 2119, 397, 791, 2 ]
self.call('execute_shell')
directory = os.getcwd() proj = self.boss.call_command('projectmanager', 'get_current_project') if proj is not None: directory = proj.source_directory self.call('execute_shell', kwdict={'directory': directory})
def act_terminal(self, action): """Start a shell in a terminal emulator.""" self.call('execute_shell')
21d0147f99dfe741e48c91b099b75bd4dafad50f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/21d0147f99dfe741e48c91b099b75bd4dafad50f/terminal.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1328, 67, 15979, 12, 2890, 16, 1301, 4672, 3536, 1685, 279, 5972, 316, 279, 8651, 801, 11775, 12123, 365, 18, 1991, 2668, 8837, 67, 10304, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1328, 67, 15979, 12, 2890, 16, 1301, 4672, 3536, 1685, 279, 5972, 316, 279, 8651, 801, 11775, 12123, 365, 18, 1991, 2668, 8837, 67, 10304, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.getOption('toneMarkType') != 'Numbers':
if toneMarkType != 'Numbers':
def __init__(self, **options): """ Creates an instance of the CantoneseIPAOperator.
3393604da067ca36b1da468c96a925bae792aff6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11128/3393604da067ca36b1da468c96a925bae792aff6/operator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 2826, 2116, 4672, 3536, 10210, 392, 791, 434, 326, 385, 970, 265, 3392, 2579, 37, 5592, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.pport.setData(0xFF) self.pport.setAutoFeed(0)
epcs.pport.setData(0xFF) epcs.pport.setAutoFeed(1) epcs.clearPPDataBit(3) epcs.clearPPDataBit(2)
def close(self): self.pport.setData(0xFF) self.pport.setAutoFeed(0) #disable BB II tristate buffers to drive
9691aa8e280dcdfb47ce8ab9d1e1bf9df0e8b837 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/714/9691aa8e280dcdfb47ce8ab9d1e1bf9df0e8b837/update.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 365, 18, 84, 655, 18, 542, 751, 12, 20, 6356, 13, 365, 18, 84, 655, 18, 542, 4965, 8141, 12, 20, 13, 468, 8394, 21752, 23076, 433, 376, 340, 9664, 358, 14316, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1746, 12, 2890, 4672, 365, 18, 84, 655, 18, 542, 751, 12, 20, 6356, 13, 365, 18, 84, 655, 18, 542, 4965, 8141, 12, 20, 13, 468, 8394, 21752, 23076, 433, 376, 340, 9664, 358, 14316, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
OUTPUT: - an order in a quaternion algebra
OUTPUT: an order in a quaternion algebra
def right_order(self): """ Return the right order associated to this fractional ideal.
1fe7e945a5e69662d3b79300c558387c31fea323 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/1fe7e945a5e69662d3b79300c558387c31fea323/quaternion_algebra.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2145, 67, 1019, 12, 2890, 4672, 3536, 2000, 326, 2145, 1353, 3627, 358, 333, 20462, 23349, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2145, 67, 1019, 12, 2890, 4672, 3536, 2000, 326, 2145, 1353, 3627, 358, 333, 20462, 23349, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
where k_i is the degree of node i, [1]. A coefficient for
where k_i is the degree of vertex i, [1]. A coefficient for
def clustering_average(self): r""" Returns the average clustering coefficient.
139028392b54ae237314b7536b21897e9b1d7ed3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/139028392b54ae237314b7536b21897e9b1d7ed3/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18743, 67, 15621, 12, 2890, 4672, 436, 8395, 2860, 326, 8164, 18743, 16554, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18743, 67, 15621, 12, 2890, 4672, 436, 8395, 2860, 326, 8164, 18743, 16554, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"""Reports the current navigator object"""
def script_navigatorObject_current(self,keyPress,nextScript): """Reports the current navigator object""" curObject=api.getNavigatorObject() if not isinstance(curObject,NVDAObjects.baseType.NVDAObject): audio.speakMessage(_("no navigator object")) return curObject.speakObject() return False
c6388e71ad509ca538ed8be17f21eeb912f2f689 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/c6388e71ad509ca538ed8be17f21eeb912f2f689/_default.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2728, 67, 82, 13061, 921, 67, 2972, 12, 2890, 16, 856, 11840, 16, 4285, 3651, 4672, 662, 921, 33, 2425, 18, 588, 22817, 921, 1435, 309, 486, 1549, 12, 1397, 921, 16, 11679, 9793, 4710, 18, 1969, 559, 18, 11679, 9793, 921, 4672, 7447, 18, 87, 10244, 1079, 24899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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2728, 67, 82, 13061, 921, 67, 2972, 12, 2890, 16, 856, 11840, 16, 4285, 3651, 4672, 662, 921, 33, 2425, 18, 588, 22817, 921, 1435, 309, 486, 1549, 12, 1397, 921, 16, 11679, 9793, 4710, 18, 1969, 559, 18, 11679, 9793, 921, 4672, 7447, 18, 87, 10244, 1079, 24899, 2932, 2135, 19796, 733, 6, 3719, 327, 662, 921, 18, 87, 10244, 921, 1435, 327, 1083, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
columnSQLWhitelist = "%s, %s" % (self.retcolsSQLWhitelist, columnSQLWhitelist)
columnSQLWhitelist = "`%s`, %s" % ("`, `".join(self.wherecolsWhitelist), self.retcolsSQLWhitelist)
def start(self): if self.factory == None: raise ParamError("this module need reference to fatory and database connection pool")
2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5428/2d6b03ec5735bdc3185b3b5ecbcfa402ac08edae/ListBW.py
[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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 12, 2890, 4672, 309, 365, 18, 6848, 422, 599, 30, 1002, 3014, 668, 2932, 2211, 1605, 1608, 2114, 358, 284, 8452, 471, 2063, 1459, 2845, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if isinstance(doc, VariableDoc) and doc.is_public is False:
if is_private:
def write_toc_section(self, out, name, docs, fullname=True): if not docs: return
28d88ae14617650a4a829fae94668100dc4e2b05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/28d88ae14617650a4a829fae94668100dc4e2b05/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1391, 67, 3464, 12, 2890, 16, 596, 16, 508, 16, 3270, 16, 13321, 33, 5510, 4672, 309, 486, 3270, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 67, 1391, 67, 3464, 12, 2890, 16, 596, 16, 508, 16, 3270, 16, 13321, 33, 5510, 4672, 309, 486, 3270, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
pacc,accChildID=IAccessibleHandler.accessibleObjectFromEvent(docHandle,IAccessiblehandler.OBJID_CLIENT,ID)
pacc,accChildID=IAccessibleHandler.accessibleObjectFromEvent(docHandle,IAccessibleHandler.OBJID_CLIENT,ID)
def _activateField(self,docHandle,ID): try: pacc,accChildID=IAccessibleHandler.accessibleObjectFromEvent(docHandle,IAccessiblehandler.OBJID_CLIENT,ID) role=pacc.accRole(accChildID) if role in (IAccessibleHandler.ROLE_SYSTEM_COMBOBOX,IAccessibleHandler.ROLE_SYSTEM_TEXT,IAccessibleHandler.ROLE_SYSTEM_LIST): api.toggleVirtualBufferPassThrough() else: pacc.accDoDefaultAction(accChildID) except: pass
4c3736031ccceb18a139f85dbdd5a9b975967cc6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/4c3736031ccceb18a139f85dbdd5a9b975967cc6/IAccessible.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10014, 974, 12, 2890, 16, 2434, 3259, 16, 734, 4672, 775, 30, 6790, 952, 16, 8981, 1763, 734, 33, 45, 10451, 1503, 18, 26037, 921, 1265, 1133, 12, 2434, 3259, 16, 45, 10451, 1503, 18, 24547, 734, 67, 11935, 16, 734, 13, 2478, 33, 8774, 952, 18, 8981, 2996, 12, 8981, 1763, 734, 13, 309, 2478, 316, 261, 45, 10451, 1503, 18, 16256, 67, 14318, 67, 4208, 5315, 16876, 16, 45, 10451, 1503, 18, 16256, 67, 14318, 67, 5151, 16, 45, 10451, 1503, 18, 16256, 67, 14318, 67, 7085, 4672, 1536, 18, 14401, 6466, 1892, 6433, 14287, 1435, 469, 30, 6790, 952, 18, 8981, 3244, 1868, 1803, 12, 8981, 1763, 734, 13, 1335, 30, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10014, 974, 12, 2890, 16, 2434, 3259, 16, 734, 4672, 775, 30, 6790, 952, 16, 8981, 1763, 734, 33, 45, 10451, 1503, 18, 26037, 921, 1265, 1133, 12, 2434, 3259, 16, 45, 10451, 1503, 18, 24547, 734, 67, 11935, 16, 734, 13, 2478, 33, 8774, 952, 18, 8981, 2996, 12, 8981, 1763, 734, 13, 309, 2478, 316, 261, 45, 10451, 1503, 18, 16256, 67, 14318, 67, 4208, 5315, 16876, 16, 45, 10451, 1503, 18, 16256, 67, 14318, 67, 5151, 16, 45, 10451, 1503, 18, 16256, 67, 14318, 67, 7085, 4672, 1536, 18, 14401, 6466, 1892, 6433, 14287, 1435, 469, 30, 6790, 952, 18, 8981, 3244, 1868, 1803, 12, 8981, 1763, 734, 13, 1335, 30, 1342, 2, -100, -100 ]
rc, output, m = self.shell.cmd1('%s%s' % (self.__get_cmd_prefix_hack__(binary=True),cmd),allowed_exit=[0,255])
rc, output, m = self.shell.cmd1('%s%s' % (self.__get_cmd_prefix_hack__(binary=exec_bin),cmd),allowed_exit=[0,255])
def cancelMultiple(self, jobids): '''Cancel multiple jobs in one LCG job cancellation call'''
ccdaf9c21baff52cb6e7248f0892c69ca3083c28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/ccdaf9c21baff52cb6e7248f0892c69ca3083c28/Grid.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3755, 8438, 12, 2890, 16, 1719, 2232, 4672, 9163, 6691, 3229, 6550, 316, 1245, 511, 20585, 1719, 7272, 745, 26418, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3755, 8438, 12, 2890, 16, 1719, 2232, 4672, 9163, 6691, 3229, 6550, 316, 1245, 511, 20585, 1719, 7272, 745, 26418, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def test_nonexisting_u(self): self.assertRaises(OSError, startfile, "nonexisting.vbs")
def test_nonexisting_u(self): self.assertRaises(OSError, startfile, "nonexisting.vbs")
d0d16046a38b3b6b2f8c7cb9623e6d95ea4f4e10 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d0d16046a38b3b6b2f8c7cb9623e6d95ea4f4e10/test_startfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5836, 11711, 67, 89, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 4618, 668, 16, 787, 768, 16, 315, 5836, 11711, 18, 90, 2038, 7923, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 5836, 11711, 67, 89, 12, 2890, 4672, 365, 18, 11231, 12649, 6141, 12, 4618, 668, 16, 787, 768, 16, 315, 5836, 11711, 18, 90, 2038, 7923, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if self.current:
if isinstance(self.current,tuple) and len(self.current) == 2:
def preWidgetRemove(self, instance): if self.current: self.current[1].onDeselect(self.session) instance.selectionChanged.get().remove(self.selectionChanged) instance.setContent(None)
896c84d2406e5c2a16a98539f10b9695027eace9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/896c84d2406e5c2a16a98539f10b9695027eace9/ConfigList.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 4609, 3288, 12, 2890, 16, 791, 4672, 309, 1549, 12, 2890, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 675, 4609, 3288, 12, 2890, 16, 791, 4672, 309, 1549, 12, 2890, 18, 2972, 16, 8052, 13, 471, 562, 12, 2890, 18, 2972, 13, 422, 576, 30, 365, 18, 2972, 63, 21, 8009, 265, 6305, 13759, 12, 2890, 18, 3184, 13, 791, 18, 10705, 5033, 18, 588, 7675, 4479, 12, 2890, 18, 10705, 5033, 13, 791, 18, 542, 1350, 12, 7036, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def __init__(self): self.ID = '' self.DE = [] self.AN = [] self.CA = '' self.CF = [] self.CC = [] self.DI = [] self.PR = [] self.DR = []
def __init__(self): self.ID = '' self.DE = [] self.AN = [] self.CA = '' self.CF = [] self.CC = [] self.DI = [] self.PR = [] self.DR = [] def __repr__(self): if self.ID: if self.DE: return "%s (%s, %s)" % (self.__class__.__name__, self.ID, self.DE[0]) else: return "%s (%s)" % (self.__class__.__name__, self.ID) else: return "%s ( )" % (self.__class__.__name__) def __str__(self): output = "ID: " + self.ID output += " DE: " + repr(self.DE) output += " AN: " + repr(self.AN) output += " CA: '" + self.CA + "'" output += " CF: " + repr(self.CF) output += " CC: " + repr(self.CC) output += " DI: " + repr(self.DI) output += " PR: " + repr(self.PR) output += " DR: %d Records" % len(self.DR) return output
def __init__(self): self.ID = '' self.DE = [] self.AN = [] self.CA = '' self.CF = [] self.CC = [] # one comment per line self.DI = [] self.PR = [] self.DR = []
6861d39781a897f3383ba47c3bbdfd115a054114 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/6861d39781a897f3383ba47c3bbdfd115a054114/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 734, 273, 875, 365, 18, 1639, 273, 5378, 365, 18, 1258, 273, 5378, 365, 18, 3587, 273, 875, 365, 18, 8955, 273, 5378, 365, 18, 6743, 273, 5378, 282, 468, 1245, 2879, 1534, 980, 365, 18, 2565, 273, 5378, 365, 18, 8025, 273, 5378, 365, 18, 6331, 273, 5378, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 972, 12, 2890, 4672, 365, 18, 734, 273, 875, 365, 18, 1639, 273, 5378, 365, 18, 1258, 273, 5378, 365, 18, 3587, 273, 875, 365, 18, 8955, 273, 5378, 365, 18, 6743, 273, 5378, 282, 468, 1245, 2879, 1534, 980, 365, 18, 2565, 273, 5378, 365, 18, 8025, 273, 5378, 365, 18, 6331, 273, 5378, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
keyws = []
outlist = [] compositesOf = [] compositesList = [] compositesOUT = [] keys2drop = [] composites = {} compositesIDX = {}
def generate_keywords_rdf(textfile, dictfile, output, outwords, mode): """ A method that generates keywords from an rdf thesaurus. """ keylist = [] keyws = [] counts = {} entries = [] ns_skos = rdflib.Namespace("http://www.w3.org/2004/02/skos/core#") ns_dc=rdflib.Namespace("http://purl.org/dc/elements/1.1/") ns_rdf=rdflib.Namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#") ns_concept=rdflib.Namespace("http://cain.nbii.org/thesauri/CERESTheme.rdf") store = rdflib.Graph() store.load(dictfile) size = int(os.stat(textfile).st_size) rtmp = open(textfile, 'r') if mode == 1: # Fast mode: analysing only abstract + title + middle portion of document # Abstract and title is never more than 20% of whole document. text_string = str(rtmp.read(int(size*0.2))) throw_away = str(rtmp.read(int(size*0.25))) text_string += str(rtmp.read(int(size*0.2))) else: # Slow mode: get all document text_string = str(rtmp.read()) # text_string = text_string.lower() rtmp.close() try: if text_string.find("Keywords:"): safe_keys = text_string.split("Keywords:")[1].split("\n")[0] elif text_string.find("Key words:"): safe_keys = text_string.split("Key words:")[1].split("\n")[0] elif text_string.find("Key Words:"): safe_keys = text_string.split("Key Words:")[1].split("\n")[0] except: safe_keys = "" for s,pref in store.subject_objects(ns_skos["prefLabel"]): dictOUT = 0 dictOUT_alt = 0 safeOUT = 0 alternatives = " " broaders = " " narrowers = " " relateds = " " safekey = 0 if pref[:2].isupper(): # First two letters are uppercase. This could be an acronym. Better leave case untouched pattern = sre.compile('\\b' + pref.strip() + '\\b') else: # Let's do some case insensitive search pattern = sre.compile('\\b' + pref.strip() + '\\b', sre.I) dictOUT = len(sre.findall(pattern,text_string)) safeOUT = len(sre.findall(pattern,safe_keys)) for alt in store.objects(s, ns_skos["altLabel"]): if alt[:2].isupper(): # First two letters are uppercase. This could be an acronym. Better leave case untouched pattern_alt = sre.compile('\\b' + alt.strip() + '\\b') else: # Let's do some case insensitive search pattern_alt = sre.compile('\\b' + alt.strip() + '\\b', sre.I) dictOUT_alt += len(sre.findall(pattern_alt,text_string)) safeOUT += len(sre.findall(pattern_alt,safe_keys)) alternatives += alt.strip() + ", " alternatives = alternatives[:-2] dictOUT_total = int(dictOUT) + int(dictOUT_alt) if dictOUT_total>1: if safeOUT>0: safekey = safeOUT for bro in store.objects(s, ns_skos["broader"]): bro_link = store.value(bro, ns_skos["prefLabel"], any=True) if bro_link: broaders += bro_link.strip() + ", " for nar in store.objects(s, ns_skos["narrower"]): nar_link = store.value(nar, ns_skos["prefLabel"], any=True) if nar_link: narrowers += nar_link.strip() + ", " for rel in store.objects(s, ns_skos["related"]): rel_link = store.value(rel, ns_skos["prefLabel"], any=True) if rel_link: relateds += rel_link.strip() + ", " broaders = broaders[:-2] narrowers = narrowers[:-2] relateds = relateds[:-2] keylist.append([dictOUT_total, dictOUT, dictOUT_alt, pref.strip(), alternatives, relateds, broaders, narrowers, safekey]) keylist.sort() keylist.reverse() if output == 0: details = "\n" for i in range(outwords): details += str(keylist[i][3]) + " ("+ str(keylist[i][0]) if int(keylist[i][8])>0: details += "*" details += ")\n" if len(str(keylist[i][4]))>1: details += " UF (" + str(keylist[i][2]) + "):" + str(keylist[i][4]) + "\n" if len(str(keylist[i][5]))>1: details += " RT:" + str(keylist[i][5]) + "\n" if len(str(keylist[i][6]))>1: details += " BT:" + str(keylist[i][6]) + "\n" if len(str(keylist[i][7]))>1: details += " NT:" + str(keylist[i][7]) + "\n" details += "\n" print details else: makeTagCloud(keylist, outwords) return keyws
e370f85299a0a2ebca37fc2311af0cdcffe61261 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2594/e370f85299a0a2ebca37fc2311af0cdcffe61261/bibclassifylib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 11771, 67, 19299, 12, 955, 768, 16, 2065, 768, 16, 876, 16, 596, 3753, 16, 1965, 4672, 3536, 432, 707, 716, 6026, 7093, 628, 392, 9160, 286, 281, 28659, 407, 18, 3536, 498, 1098, 273, 5378, 596, 1098, 273, 5378, 532, 1724, 281, 951, 273, 5378, 532, 1724, 281, 682, 273, 5378, 532, 1724, 281, 5069, 273, 5378, 1311, 22, 7285, 273, 5378, 225, 532, 1724, 281, 273, 2618, 532, 1724, 281, 25647, 273, 2618, 225, 6880, 273, 2618, 3222, 273, 5378, 225, 3153, 67, 7771, 538, 273, 9160, 2941, 18, 3402, 2932, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 24, 19, 3103, 19, 7771, 538, 19, 3644, 7, 7923, 3153, 67, 7201, 33, 19299, 2941, 18, 3402, 2932, 2505, 2207, 84, 718, 18, 3341, 19, 7201, 19, 6274, 19, 21, 18, 21, 4898, 13, 3153, 67, 19299, 33, 19299, 2941, 18, 3402, 2932, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 21, 11984, 19, 3103, 19, 3787, 17, 19299, 17, 14308, 17, 2387, 7, 7923, 3153, 67, 25770, 33, 19299, 2941, 18, 3402, 2932, 2505, 2207, 71, 530, 18, 6423, 2835, 18, 3341, 19, 7915, 69, 1650, 19, 39, 654, 11027, 76, 4698, 18, 19299, 7923, 225, 1707, 273, 9160, 2941, 18, 4137, 1435, 1707, 18, 945, 12, 1576, 768, 13, 225, 963, 273, 509, 12, 538, 18, 5642, 12, 955, 768, 2934, 334, 67, 1467, 13, 436, 5645, 273, 1696, 12, 955, 768, 16, 296, 86, 6134, 225, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2103, 67, 11771, 67, 19299, 12, 955, 768, 16, 2065, 768, 16, 876, 16, 596, 3753, 16, 1965, 4672, 3536, 432, 707, 716, 6026, 7093, 628, 392, 9160, 286, 281, 28659, 407, 18, 3536, 498, 1098, 273, 5378, 596, 1098, 273, 5378, 532, 1724, 281, 951, 273, 5378, 532, 1724, 281, 682, 273, 5378, 532, 1724, 281, 5069, 273, 5378, 1311, 22, 7285, 273, 5378, 225, 532, 1724, 281, 273, 2618, 532, 1724, 281, 25647, 273, 2618, 225, 6880, 273, 2618, 3222, 273, 5378, 225, 3153, 67, 7771, 538, 273, 9160, 2941, 18, 3402, 2932, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 6976, 24, 19, 3103, 19, 7771, 538, 19, 3644, 7, 7923, 3153, 67, 7201, 2 ]
pixbuf = gtk.gdk.pixbuf_new_from_file(bgimage)
pixbuf = pb_new(bgimage)
def _set_background(self, widget, ccontext = None, bounds = None): 'Set the background of `widget` to a color or image.' if not widget.window: return False if ccontext is None: ccontext = widget.window.cairo_create() if bounds is None: bounds = widget.window.get_size() if self._black and widget is self.pres: bgtype = 'color' bgcolor1 = bgcolor2 = (0, 0, 0) elif self._logo and widget is self.pres: if not hasattr(self,"_logo_pbuf"): try: self._logo_pbuf = gtk.gdk.pixbuf_new_from_file_at_size( config.get("screen", "logo"), int(bounds[0]/1.5), int(bounds[1]/1.5)) except gobject.GError: exposong.log.error('Could not open logo "%s".', config.get('screen', 'logo')) self._logo_pbuf = None bg = c2dec(config.getcolor("screen", "logo_bg")) ccontext.set_source_rgb(bg[0], bg[1], bg[2]) ccontext.paint() if self._logo_pbuf <> None: ccontext.set_source_pixbuf(self._logo_pbuf, (bounds[0]-self._logo_pbuf.get_width())/2, (bounds[1]-self._logo_pbuf.get_height())/2) ccontext.paint() return else: bgtype = config.get("screen", "bg_type") bgimage = config.get("screen", "bg_image") bgcolor1 = config.getcolor("screen", "bg_color_1") bgcolor2 = config.getcolor("screen", "bg_color_2") if bgtype == "image": if bgimage == "": pass bgkey = str(bounds[0])+'x'+str(bounds[1]) try: if self.bg_dirty or bgkey not in self.bg_img: pixbuf = gtk.gdk.pixbuf_new_from_file(bgimage) self.bg_img[bgkey] = pixbuf.scale_simple(bounds[0], bounds[1], gtk.gdk.INTERP_BILINEAR) except gobject.GError: exposong.log.error('Could not open background file "%s".', bgimage) if hasattr(self, 'bg_img') and bgkey in self.bg_img: del self.bg_img[bgkey] config.set("screen", "bg_image", "") config.set("screen", "bg_type", "color") exposong.bgselect.bgselect.set_background_to_color() else: ccontext.set_source_pixbuf(self.bg_img[bgkey], 0, 0) ccontext.paint() return finally: self.bg_dirty = False elif bgtype == 'color': color = (c2dec(bgcolor1), c2dec(bgcolor2)) if len(color) >= 3 and isinstance(color[0], (float, int)): # Draw a solid color ccontext.set_source_rgb(color[0], color[1], color[2]) ccontext.paint() elif isinstance(color[0], tuple): # Draw a gradiant if config.get("screen", "bg_angle") == u"\u2193": #Down gr_x1 = gr_y1 = gr_x2 = 0 gr_y2 = bounds[1] elif config.get("screen", "bg_angle") == u'\u2199': #Down-Left gr_x2 = gr_y1 = 0 (gr_x1, gr_y2) = bounds elif config.get("screen", "bg_angle") == u'\u2192': #Right gr_x1 = gr_y1 = gr_y2 = 0 gr_x2 = bounds[0] else: # Down-Right gr_x1 = gr_y1 = 0 (gr_x2, gr_y2) = bounds gradient = cairo.LinearGradient(gr_x1, gr_y1, gr_x2, gr_y2) for i in range(len(color)): gradient.add_color_stop_rgb(1.0*i/(len(color)-1), color[i][0], color[i][1], color[i][2]) ccontext.rectangle(0,0, bounds[0], bounds[1]) ccontext.set_source(gradient) ccontext.fill() else: exposong.log.error('_set_background: Incorrect color `%s`.', repr(color))
def195fbc59dc45ac51d9246f0090a00f2161242 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5029/def195fbc59dc45ac51d9246f0090a00f2161242/screen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 9342, 12, 2890, 16, 3604, 16, 276, 2472, 273, 599, 16, 4972, 273, 599, 4672, 296, 694, 326, 5412, 434, 1375, 6587, 68, 358, 279, 2036, 578, 1316, 1093, 309, 486, 3604, 18, 5668, 30, 327, 1083, 225, 309, 276, 2472, 353, 599, 30, 276, 2472, 273, 3604, 18, 5668, 18, 5353, 11373, 67, 2640, 1435, 309, 4972, 353, 599, 30, 4972, 273, 3604, 18, 5668, 18, 588, 67, 1467, 1435, 225, 309, 365, 6315, 11223, 471, 3604, 353, 365, 18, 12202, 30, 7611, 723, 273, 296, 3266, 11, 31509, 21, 273, 31509, 22, 273, 261, 20, 16, 374, 16, 374, 13, 1327, 365, 6315, 19882, 471, 3604, 353, 365, 18, 12202, 30, 309, 486, 3859, 12, 2890, 10837, 67, 19882, 67, 84, 4385, 6, 4672, 775, 30, 365, 6315, 19882, 67, 84, 4385, 273, 22718, 18, 75, 2883, 18, 14861, 4385, 67, 2704, 67, 2080, 67, 768, 67, 270, 67, 1467, 12, 642, 18, 588, 2932, 9252, 3113, 315, 19882, 6, 3631, 509, 12, 10576, 63, 20, 18537, 21, 18, 25, 3631, 509, 12, 10576, 63, 21, 18537, 21, 18, 25, 3719, 1335, 314, 1612, 18, 43, 668, 30, 431, 917, 932, 18, 1330, 18, 1636, 2668, 4445, 486, 1696, 19128, 2213, 87, 12013, 16, 642, 18, 588, 2668, 9252, 2187, 296, 19882, 26112, 365, 6315, 19882, 67, 84, 4385, 273, 599, 7611, 273, 276, 22, 4924, 12, 1425, 18, 588, 3266, 2932, 9252, 3113, 315, 19882, 67, 12370, 6, 3719, 276, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 9342, 12, 2890, 16, 3604, 16, 276, 2472, 273, 599, 16, 4972, 273, 599, 4672, 296, 694, 326, 5412, 434, 1375, 6587, 68, 358, 279, 2036, 578, 1316, 1093, 309, 486, 3604, 18, 5668, 30, 327, 1083, 225, 309, 276, 2472, 353, 599, 30, 276, 2472, 273, 3604, 18, 5668, 18, 5353, 11373, 67, 2640, 1435, 309, 4972, 353, 599, 30, 4972, 273, 3604, 18, 5668, 18, 588, 67, 1467, 1435, 225, 309, 365, 6315, 11223, 471, 3604, 353, 365, 18, 12202, 30, 7611, 723, 273, 296, 3266, 11, 31509, 21, 273, 31509, 22, 273, 261, 20, 16, 374, 16, 374, 13, 1327, 365, 6315, 19882, 471, 3604, 353, 365, 18, 12202, 30, 309, 486, 2 ]
max_new_combo.set_selected(value)
max_new_combo.set_selected(max_new_values.index(value))
def _build_auto_download(channel, grid): auto_download_cbx = widgetset.Checkbox(_("Pause Auto-Downloading when this many items are unplayed:")) grid.pack(auto_download_cbx, grid.ALIGN_RIGHT) max_new_options = [ ("1", _("1 unplayed item")), ("3", _("3 unplayed items")), ("5", _("5 unplayed items")), ("10", _("10 unplayed items")), ("15", _("15 unplayed items")) ] max_new_values = [e[0] for e in max_new_options] max_new_combo = widgetset.OptionMenu([e[1] for e in max_new_options]) if channel.max_new == u"unlimited": auto_download_cbx.set_checked(False) max_new_combo.set_selected(2) max_new_combo.disable() else: auto_download_cbx.set_checked(True) value = channel.max_new if value < 1: value = 1 else: while value not in max_new_values and value > 1: value = value - 1 max_new_combo.set_selected(value) def max_new_changed(widget, index): value = max_new_options[index][0] messages.SetFeedMaxNew(channel, int(value)).send_to_backend() def checkbox_changed(widget): if widget.get_checked(): max_new_combo.enable() max_new_changed(max_new_combo, 2) else: max_new_combo.disable() max_new_changed(max_new_combo, 2) messages.SetFeedMaxNew(channel, u"unlimited").send_to_backend() grid.pack(max_new_combo, grid.ALIGN_LEFT) max_new_combo.connect('changed', max_new_changed) auto_download_cbx.connect('toggled', checkbox_changed)
9ff90a52b32bccb8adf48128fd7d75572e26038c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/9ff90a52b32bccb8adf48128fd7d75572e26038c/feedsettingspanel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 6079, 67, 7813, 12, 4327, 16, 3068, 4672, 3656, 67, 7813, 67, 7358, 92, 273, 3604, 542, 18, 21272, 24899, 2932, 19205, 8064, 17, 27217, 1347, 333, 4906, 1516, 854, 640, 1601, 329, 2773, 3719, 3068, 18, 2920, 12, 6079, 67, 7813, 67, 7358, 92, 16, 3068, 18, 26439, 67, 11847, 13, 225, 943, 67, 2704, 67, 2116, 273, 306, 7566, 21, 3113, 389, 2932, 21, 640, 1601, 329, 761, 7923, 3631, 7566, 23, 3113, 389, 2932, 23, 640, 1601, 329, 1516, 7923, 3631, 7566, 25, 3113, 389, 2932, 25, 640, 1601, 329, 1516, 7923, 3631, 7566, 2163, 3113, 389, 2932, 2163, 640, 1601, 329, 1516, 7923, 3631, 7566, 3600, 3113, 389, 2932, 3600, 640, 1601, 329, 1516, 6, 3719, 308, 225, 943, 67, 2704, 67, 2372, 273, 306, 73, 63, 20, 65, 364, 425, 316, 943, 67, 2704, 67, 2116, 65, 943, 67, 2704, 67, 25053, 273, 3604, 542, 18, 1895, 4599, 3816, 73, 63, 21, 65, 364, 425, 316, 943, 67, 2704, 67, 2116, 5717, 225, 309, 1904, 18, 1896, 67, 2704, 422, 582, 6, 318, 21325, 6877, 3656, 67, 7813, 67, 7358, 92, 18, 542, 67, 4532, 12, 8381, 13, 943, 67, 2704, 67, 25053, 18, 542, 67, 8109, 12, 22, 13, 943, 67, 2704, 67, 25053, 18, 8394, 1435, 469, 30, 3656, 67, 7813, 67, 7358, 92, 18, 542, 67, 4532, 12, 5510, 13, 460, 273, 1904, 18, 1896, 67, 2704, 309, 460, 411, 404, 30, 460, 273, 404, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 3510, 67, 6079, 67, 7813, 12, 4327, 16, 3068, 4672, 3656, 67, 7813, 67, 7358, 92, 273, 3604, 542, 18, 21272, 24899, 2932, 19205, 8064, 17, 27217, 1347, 333, 4906, 1516, 854, 640, 1601, 329, 2773, 3719, 3068, 18, 2920, 12, 6079, 67, 7813, 67, 7358, 92, 16, 3068, 18, 26439, 67, 11847, 13, 225, 943, 67, 2704, 67, 2116, 273, 306, 7566, 21, 3113, 389, 2932, 21, 640, 1601, 329, 761, 7923, 3631, 7566, 23, 3113, 389, 2932, 23, 640, 1601, 329, 1516, 7923, 3631, 7566, 25, 3113, 389, 2932, 25, 640, 1601, 329, 1516, 7923, 3631, 7566, 2163, 3113, 389, 2932, 2163, 640, 1601, 329, 1516, 7923, 3631, 7566, 3600, 3113, 389, 2932, 3600, 640, 2 ]
'active_uom' :fields.many2one('product.uom', string = "Active UoM"), 'state' : fields.selection([('draft','Draft'),('validated','Validated')],'State',readonly=True), 'analyzed_period1_id' : fields.many2one('stock.period' , 'Period1', readonly=True, states={'draft':[('readonly',False)]},), 'analyzed_period2_id' : fields.many2one('stock.period' , 'Period2', readonly=True, states={'draft':[('readonly',False)]},), 'analyzed_period3_id' : fields.many2one('stock.period' , 'Period3', readonly=True, states={'draft':[('readonly',False)]},), 'analyzed_period4_id' : fields.many2one('stock.period' , 'Period4', readonly=True, states={'draft':[('readonly',False)]},), 'analyzed_period5_id' : fields.many2one('stock.period' , 'Period5', readonly=True, states={'draft':[('readonly',False)]},), 'analyzed_user_id' : fields.many2one('res.users' , 'This User', required=False, readonly=True, states={'draft':[('readonly',False)]},), 'analyzed_dept_id' : fields.many2one('hr.department' , 'This Department', required=False, \
'active_uom': fields.many2one('product.uom', string = "Active UoM"), 'state': fields.selection([('draft','Draft'),('validated','Validated')],'State',readonly=True), 'analyzed_period1_id': fields.many2one('stock.period' , 'Period1', readonly=True, states={'draft':[('readonly',False)]},), 'analyzed_period2_id': fields.many2one('stock.period' , 'Period2', readonly=True, states={'draft':[('readonly',False)]},), 'analyzed_period3_id': fields.many2one('stock.period' , 'Period3', readonly=True, states={'draft':[('readonly',False)]},), 'analyzed_period4_id': fields.many2one('stock.period' , 'Period4', readonly=True, states={'draft':[('readonly',False)]},), 'analyzed_period5_id': fields.many2one('stock.period' , 'Period5', readonly=True, states={'draft':[('readonly',False)]},), 'analyzed_user_id': fields.many2one('res.users' , 'This User', required=False, readonly=True, states={'draft':[('readonly',False)]},), 'analyzed_dept_id': fields.many2one('hr.department' , 'This Department', required=False, \
def create_forecast(self,cr, uid, ids, context={}): product_obj = self.pool.get('product.product') forecast_obj=self.pool.get('stock.sale.forecast') mod_obj =self.pool.get('ir.model.data') for f in self.browse(cr, uid, ids, context): prod_categ_obj=self.pool.get('product.category') template_obj=self.pool.get('product.template') categ_ids = f.product_categ_id1.id and [f.product_categ_id1.id] or [] prod_categ_ids=prod_categ_obj.search(cr,uid,[('parent_id','child_of',categ_ids)]) templates_ids = template_obj.search(cr,uid,[('categ_id','in',prod_categ_ids)]) products_ids = product_obj.search(cr,uid,[('product_tmpl_id','in',templates_ids)]) if len(products_ids)==0: raise osv.except_osv(_('Error !'), _('No products in selected category !')) copy = f.copy_forecast for p in product_obj.browse(cr, uid, products_ids,{}): if len(forecast_obj.search(cr, uid, [('product_id','=',p.id) , \ ('period_id','=',f.period_id1.id), \ ('user_id','=',uid), \ ('warehouse_id','=',f.warehouse_id1.id)]))== 0: forecast_qty = 0.0
6a21b5d661b74602c870fac41f3c8c42e8bc6c33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/6a21b5d661b74602c870fac41f3c8c42e8bc6c33/stock_planning.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1405, 4155, 12, 2890, 16, 3353, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 3017, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 5896, 6134, 18763, 67, 2603, 33, 2890, 18, 6011, 18, 588, 2668, 15381, 18, 87, 5349, 18, 1405, 4155, 6134, 681, 67, 2603, 273, 2890, 18, 6011, 18, 588, 2668, 481, 18, 2284, 18, 892, 6134, 364, 284, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 10791, 67, 71, 1287, 67, 2603, 33, 2890, 18, 6011, 18, 588, 2668, 5896, 18, 4743, 6134, 1542, 67, 2603, 33, 2890, 18, 6011, 18, 588, 2668, 5896, 18, 3202, 6134, 276, 1287, 67, 2232, 273, 225, 284, 18, 5896, 67, 71, 1287, 67, 350, 21, 18, 350, 471, 306, 74, 18, 5896, 67, 71, 1287, 67, 350, 21, 18, 350, 65, 578, 5378, 10791, 67, 71, 1287, 67, 2232, 33, 17672, 67, 71, 1287, 67, 2603, 18, 3072, 12, 3353, 16, 1911, 16, 63, 2668, 2938, 67, 350, 17023, 3624, 67, 792, 2187, 71, 1287, 67, 2232, 13, 5717, 5539, 67, 2232, 273, 1542, 67, 2603, 18, 3072, 12, 3353, 16, 1911, 16, 63, 2668, 71, 1287, 67, 350, 17023, 267, 2187, 17672, 67, 71, 1287, 67, 2232, 13, 5717, 10406, 67, 2232, 273, 3017, 67, 2603, 18, 3072, 12, 3353, 16, 1911, 16, 63, 2668, 5896, 67, 24717, 67, 350, 17023, 267, 2187, 8502, 67, 2232, 13, 5717, 309, 562, 12, 18736, 67, 2232, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 1405, 4155, 12, 2890, 16, 3353, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 3017, 67, 2603, 273, 365, 18, 6011, 18, 588, 2668, 5896, 18, 5896, 6134, 18763, 67, 2603, 33, 2890, 18, 6011, 18, 588, 2668, 15381, 18, 87, 5349, 18, 1405, 4155, 6134, 681, 67, 2603, 273, 2890, 18, 6011, 18, 588, 2668, 481, 18, 2284, 18, 892, 6134, 364, 284, 316, 365, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 16, 819, 4672, 10791, 67, 71, 1287, 67, 2603, 33, 2890, 18, 6011, 18, 588, 2668, 5896, 18, 4743, 6134, 1542, 67, 2603, 33, 2890, 18, 6011, 18, 588, 2668, 5896, 18, 3202, 6134, 276, 1287, 67, 2232, 273, 225, 284, 18, 2 ]
class BytesAsStringTest(test.string_tests.BaseTest): type2test = bytearray
class FixedStringTest(test.string_tests.BaseTest):
def test_returns_new_copy(self): val = self.marshal(b'1234') # On immutable types these MAY return a reference to themselves # but on mutable types like bytearray they MUST return a new copy. for methname in ('zfill', 'rjust', 'ljust', 'center'): method = getattr(val, methname) newval = method(3) self.assertEqual(val, newval) self.assertTrue(val is not newval, methname+' returned self on a mutable object')
2173c9b6ea125ff58e99e0718de1b65c0a64c48c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/2173c9b6ea125ff58e99e0718de1b65c0a64c48c/test_bytes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 6154, 67, 2704, 67, 3530, 12, 2890, 4672, 1244, 273, 365, 18, 3108, 12, 70, 11, 28462, 6134, 468, 2755, 11732, 1953, 4259, 490, 5255, 327, 279, 2114, 358, 20968, 468, 1496, 603, 16074, 1953, 3007, 14552, 2898, 10685, 327, 279, 394, 1610, 18, 364, 7917, 529, 316, 7707, 94, 5935, 2187, 296, 86, 3732, 2187, 296, 80, 3732, 2187, 296, 5693, 11, 4672, 707, 273, 3869, 12, 1125, 16, 7917, 529, 13, 394, 1125, 273, 707, 12, 23, 13, 365, 18, 11231, 5812, 12, 1125, 16, 394, 1125, 13, 365, 18, 11231, 5510, 12, 1125, 353, 486, 394, 1125, 16, 7917, 529, 6797, 2106, 365, 603, 279, 16074, 733, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2704, 67, 3530, 12, 2890, 4672, 1244, 273, 365, 18, 3108, 12, 70, 11, 28462, 6134, 468, 2755, 11732, 1953, 4259, 490, 5255, 327, 279, 2114, 358, 20968, 468, 1496, 603, 16074, 1953, 3007, 14552, 2898, 10685, 327, 279, 394, 1610, 18, 364, 7917, 529, 316, 7707, 94, 5935, 2187, 296, 86, 3732, 2187, 296, 80, 3732, 2187, 296, 5693, 11, 4672, 707, 273, 3869, 12, 1125, 16, 7917, 529, 13, 394, 1125, 273, 707, 12, 23, 13, 365, 18, 11231, 5812, 12, 1125, 16, 394, 1125, 13, 365, 18, 11231, 5510, 12, 1125, 353, 486, 394, 1125, 16, 7917, 529, 6797, 2106, 365, 603, 279, 16074, 733, 6134, 2, -100, -100, -100, -100, -100 ]
torrent_def = load(filename) append(torrent_def.get_infohash())
try: torrent_def = load(filename) except: print >> sys.stderr, "MetadataHandler.load_recently_collected_torrents() Invalid .torrent file", filename else: append(torrent_def.get_infohash())
torrent_def = load(filename)
615388664266b27ee10013729f43116dd79e46d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/615388664266b27ee10013729f43116dd79e46d1/MetadataHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 17351, 67, 536, 273, 1262, 12, 3459, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 17351, 67, 536, 273, 1262, 12, 3459, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if connected and busy == False:
if connected and not busy:
def get_worker_count(self, connected, busy): """ Returns the number of workers. Parameters: connected -- bool busy -- bool """ if connected and busy == False: query = """SELECT workers FROM monitors WHERE connected AND NOT busy""" elif connected and busy == True: query = """SELECT workers FROM monitors WHERE connected AND busy""" elif connected: query = """SELECT workers FROM monitors WHERE connected""" else: query = "SELECT workers FROM monitors WHERE NOT connected" cur = self.con.cursor() cur.execute(query) result = cur.fetchall() return sum(w[0] for w in result)
6db6ad8a8427866f180dfe6984c842274f2461c3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/6db6ad8a8427866f180dfe6984c842274f2461c3/monitordb.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10124, 67, 1883, 12, 2890, 16, 5840, 16, 21697, 4672, 3536, 2860, 326, 1300, 434, 9798, 18, 225, 7012, 30, 5840, 1493, 1426, 21697, 1493, 1426, 225, 3536, 225, 309, 5840, 471, 486, 21697, 30, 843, 273, 3536, 4803, 9798, 4571, 22389, 4852, 5840, 4116, 4269, 21697, 8395, 1327, 5840, 471, 21697, 422, 1053, 30, 843, 273, 3536, 4803, 9798, 4571, 22389, 4852, 5840, 4116, 21697, 8395, 1327, 5840, 30, 843, 273, 3536, 4803, 9798, 4571, 22389, 4852, 5840, 8395, 469, 30, 843, 273, 315, 4803, 9798, 4571, 22389, 4852, 4269, 5840, 6, 225, 662, 273, 365, 18, 591, 18, 9216, 1435, 662, 18, 8837, 12, 2271, 13, 225, 563, 273, 662, 18, 5754, 454, 1435, 225, 327, 2142, 12, 91, 63, 20, 65, 364, 341, 316, 563, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 10124, 67, 1883, 12, 2890, 16, 5840, 16, 21697, 4672, 3536, 2860, 326, 1300, 434, 9798, 18, 225, 7012, 30, 5840, 1493, 1426, 21697, 1493, 1426, 225, 3536, 225, 309, 5840, 471, 486, 21697, 30, 843, 273, 3536, 4803, 9798, 4571, 22389, 4852, 5840, 4116, 4269, 21697, 8395, 1327, 5840, 471, 21697, 422, 1053, 30, 843, 273, 3536, 4803, 9798, 4571, 22389, 4852, 5840, 4116, 21697, 8395, 1327, 5840, 30, 843, 273, 3536, 4803, 9798, 4571, 22389, 4852, 5840, 8395, 469, 30, 843, 273, 315, 4803, 9798, 4571, 22389, 4852, 4269, 5840, 6, 225, 662, 273, 365, 18, 591, 18, 9216, 1435, 662, 18, 8837, 12, 2271, 13, 225, 563, 273, 662, 18, 5754, 454, 1435, 2 ]
@param pos Position to set the focal point
@param pos: Position to set the focal point @type pos: tuple
def setFocalPoint(self,*pos): """ Sets the focal point of the Camera with the Scene
96b00238a8d5cd11876b111a3518775124c30a4c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/96b00238a8d5cd11876b111a3518775124c30a4c/camera.py
[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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24340, 23735, 2148, 12, 2890, 16, 14, 917, 4672, 3536, 11511, 326, 284, 23735, 1634, 434, 326, 30355, 598, 326, 29347, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
except (ftplib.Error, ValueError):
except (ftplib.Error, ValueError, AttributeError):
def fetch(self, ftp, item): import ftplib
861b75208424d5414e224dc444118325e21518ad /local1/tlutelli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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2158, 12, 2890, 16, 13487, 16, 761, 4672, 1930, 11038, 6673, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
toHost, toFull = self.splitTo(args[0])
toFull = self.stripAddress(args[0])
def onRcptTo(self, command, args): toHost, toFull = self.splitTo(args[0]) if toFull == options["smtpproxy", "spam_address"]: self.train_as_spam = True self.train_as_ham = False self.blockData = True self.push("250 OK\r\n") return None elif toFull == options["smtpproxy", "ham_address"]: self.train_as_ham = True self.train_as_spam = False self.blockData = True self.push("250 OK\r\n") return None else: self.blockData = False return "%s:%s" % (command, ' '.join(args))
03d20440083fb456b233dc890ae2baf7eae5ecf1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/03d20440083fb456b233dc890ae2baf7eae5ecf1/sb_smtpproxy.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 603, 24599, 337, 774, 12, 2890, 16, 1296, 16, 833, 4672, 358, 5080, 273, 365, 18, 6406, 1887, 12, 1968, 63, 20, 5717, 309, 358, 5080, 422, 702, 9614, 20278, 5656, 3113, 315, 1752, 301, 67, 2867, 11929, 30, 365, 18, 9754, 67, 345, 67, 1752, 301, 273, 1053, 365, 18, 9754, 67, 345, 67, 31698, 273, 1083, 365, 18, 2629, 751, 273, 1053, 365, 18, 6206, 2932, 26520, 7791, 64, 86, 64, 82, 7923, 327, 599, 1327, 358, 5080, 422, 702, 9614, 20278, 5656, 3113, 315, 31698, 67, 2867, 11929, 30, 365, 18, 9754, 67, 345, 67, 31698, 273, 1053, 365, 18, 9754, 67, 345, 67, 1752, 301, 273, 1083, 365, 18, 2629, 751, 273, 1053, 365, 18, 6206, 2932, 26520, 7791, 64, 86, 64, 82, 7923, 327, 599, 469, 30, 365, 18, 2629, 751, 273, 1083, 327, 2213, 87, 5319, 87, 6, 738, 261, 3076, 16, 296, 2418, 5701, 12, 1968, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1752, 301, 67, 2867, 11929, 30, 365, 18, 9754, 67, 345, 67, 1752, 301, 273, 1053, 365, 18, 9754, 67, 345, 67, 31698, 273, 1083, 365, 18, 2629, 751, 273, 1053, 365, 18, 6206, 2932, 26520, 7791, 64, 86, 64, 82, 7923, 327, 599, 1327, 358, 5080, 422, 702, 9614, 20278, 5656, 3113, 315, 31698, 67, 2867, 11929, 30, 365, 18, 9754, 67, 345, 67, 31698, 273, 1053, 365, 18, 9754, 67, 345, 67, 1752, 301, 273, 1083, 365, 18, 2629, 751, 273, 1053, 365, 2 ]
RebuilddLog().info("Launching network servers")
RebuilddLog().info("Launching network server")
def daemon(self): RebuilddLog().info("Starting rebuildd %s" % __version__) self.daemonize()
8808f04505010be04a2ec8abd7e733aeb27d45a6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5334/8808f04505010be04a2ec8abd7e733aeb27d45a6/Rebuildd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8131, 12, 2890, 4672, 868, 70, 89, 330, 449, 1343, 7675, 1376, 2932, 11715, 283, 70, 89, 330, 449, 738, 87, 6, 738, 1001, 1589, 972, 13, 365, 18, 21511, 554, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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316, 326, 981, 30, 1652, 8131, 12, 2890, 4672, 868, 70, 89, 330, 449, 1343, 7675, 1376, 2932, 11715, 283, 70, 89, 330, 449, 738, 87, 6, 738, 1001, 1589, 972, 13, 365, 18, 21511, 554, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
y += codomain(c)*misc.mul([ im_gens[i]**m[i] for i in range(n) ])
y += codomain(c)*misc.mul([ im_gens[i]**m[i] for i in range(n) if m[i] ])
def _im_gens_(self, codomain, im_gens): """ EXAMPLES: sage: R.<x,y> = PolynomialRing(QQ, 2) sage: f = R.hom([y,x], R) sage: f(x^2 + 3*y^5) 3*x^5 + y^2 """ n = self.parent().ngens() if n == 0: return codomain._coerce_(self) y = codomain(0) for (m,c) in self.element().dict().iteritems(): y += codomain(c)*misc.mul([ im_gens[i]**m[i] for i in range(n) ]) return y
61c2105a2123ac414702636f9ca4345d04a477d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/61c2105a2123ac414702636f9ca4345d04a477d6/multi_polynomial_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 381, 67, 23730, 67, 12, 2890, 16, 11012, 1530, 16, 709, 67, 23730, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 534, 22782, 92, 16, 93, 34, 273, 6730, 13602, 10369, 12, 53, 53, 16, 576, 13, 272, 410, 30, 284, 273, 534, 18, 17125, 3816, 93, 16, 92, 6487, 534, 13, 272, 410, 30, 284, 12, 92, 66, 22, 397, 890, 14, 93, 66, 25, 13, 890, 14, 92, 66, 25, 397, 677, 66, 22, 3536, 290, 273, 365, 18, 2938, 7675, 3368, 773, 1435, 309, 290, 422, 374, 30, 327, 11012, 1530, 6315, 2894, 2765, 67, 12, 2890, 13, 677, 273, 11012, 1530, 12, 20, 13, 364, 261, 81, 16, 71, 13, 316, 365, 18, 2956, 7675, 1576, 7675, 2165, 3319, 13332, 677, 1011, 11012, 1530, 12, 71, 17653, 23667, 18, 16411, 3816, 709, 67, 23730, 63, 77, 65, 636, 81, 63, 77, 65, 364, 277, 316, 1048, 12, 82, 13, 309, 312, 63, 77, 65, 308, 13, 327, 677, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 381, 67, 23730, 67, 12, 2890, 16, 11012, 1530, 16, 709, 67, 23730, 4672, 3536, 5675, 8900, 11386, 30, 272, 410, 30, 534, 22782, 92, 16, 93, 34, 273, 6730, 13602, 10369, 12, 53, 53, 16, 576, 13, 272, 410, 30, 284, 273, 534, 18, 17125, 3816, 93, 16, 92, 6487, 534, 13, 272, 410, 30, 284, 12, 92, 66, 22, 397, 890, 14, 93, 66, 25, 13, 890, 14, 92, 66, 25, 397, 677, 66, 22, 3536, 290, 273, 365, 18, 2938, 7675, 3368, 773, 1435, 309, 290, 422, 374, 30, 327, 11012, 1530, 6315, 2894, 2765, 67, 12, 2890, 13, 677, 273, 11012, 1530, 12, 20, 13, 364, 261, 81, 16, 71, 13, 316, 365, 2 ]
def set_last_pos(self, notebook, page, page_num): self.last_pos = page_num
def select_current_tab(self, notebook, user_data, page): self.tabs.get_children()[page].set_active(True)
38142c77f3dc358917b2a802d6e5c0620bfa67f7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11147/38142c77f3dc358917b2a802d6e5c0620bfa67f7/guake.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 2972, 67, 7032, 12, 2890, 16, 14718, 16, 729, 67, 892, 16, 1363, 4672, 365, 18, 16056, 18, 588, 67, 5906, 1435, 63, 2433,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2027, 67, 2972, 67, 7032, 12, 2890, 16, 14718, 16, 729, 67, 892, 16, 1363, 4672, 365, 18, 16056, 18, 588, 67, 5906, 1435, 63, 2433, 8009, 542, 67, 3535, 12, 5510, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return '<%s %s at %x>' % (self.__class__.__name__, ' '.join (status), id (self))
return '<%s at %
def __repr__ (self): try: status = [] if self.accepting and self.addr: status.append ('listening') elif self.connected: status.append ('connected') if self.addr: if type(self.addr) == types.TupleType: status.append ('%s:%d' % self.addr) else: status.append (self.addr) return '<%s %s at %x>' % (self.__class__.__name__, ' '.join (status), id (self)) except: pass
e04b67a7e3880897ea72aa0effb9870b71f4f41f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e04b67a7e3880897ea72aa0effb9870b71f4f41f/asyncore.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 261, 2890, 4672, 775, 30, 1267, 273, 5378, 309, 365, 18, 9436, 310, 471, 365, 18, 4793, 30, 1267, 18, 6923, 7707, 18085, 310, 6134, 1327, 365, 18, 8537, 30, 1267, 18, 6923, 7707, 8537, 6134, 309, 365, 18, 4793, 30, 309, 618, 12, 2890, 18, 4793, 13, 422, 1953, 18, 9038, 559, 30, 1267, 18, 6923, 7707, 9, 87, 5319, 72, 11, 738, 365, 18, 4793, 13, 469, 30, 1267, 18, 6923, 261, 2890, 18, 4793, 13, 327, 2368, 9, 87, 622, 738, 1335, 30, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 12715, 972, 261, 2890, 4672, 775, 30, 1267, 273, 5378, 309, 365, 18, 9436, 310, 471, 365, 18, 4793, 30, 1267, 18, 6923, 7707, 18085, 310, 6134, 1327, 365, 18, 8537, 30, 1267, 18, 6923, 7707, 8537, 6134, 309, 365, 18, 4793, 30, 309, 618, 12, 2890, 18, 4793, 13, 422, 1953, 18, 9038, 559, 30, 1267, 18, 6923, 7707, 9, 87, 5319, 72, 11, 738, 365, 18, 4793, 13, 469, 30, 1267, 18, 6923, 261, 2890, 18, 4793, 13, 327, 2368, 9, 87, 622, 738, 1335, 30, 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, -100, -100, -100, -100 ]
self.log(5, '-->Potential Provider: %s' % inst_str)
self.log(5, 'Potential Provider: %s' % inst_str)
def _requiringFromInstalled(self, requiringPkg, requirement, errorlist): """processes the dependency resolution for a dep where the requiring package is installed""" (name, arch, epoch, ver, rel) = requiringPkg (needname, needflags, needversion) = requirement niceformatneed = rpmUtils.miscutils.formatRequire(needname, needversion, needflags) checkdeps = 0 missingdep = 0 reqpkg_print = '%s.%s %s:%s-%s' % requiringPkg # we must first find out why the requirement is no longer there # we must find out what provides/provided it from the rpmdb (if anything) # then check to see if that thing is being acted upon by the transaction set # if it is then we need to find out what is being done to it and act accordingly rpmdbNames = self.rpmdb.getNamePkgList() needmode = None # mode in the transaction of the needed pkg (if any) if needname in rpmdbNames: needmode = self.tsInfo.getMode(name=needname) else: self.log(5, 'Needed Require is not a package name. Looking up: %s' % niceformatneed) providers = self.rpmdb.whatProvides(needname, needflags, needversion) for insttuple in providers: inst_str = '%s.%s %s:%s-%s' % insttuple (i_n, i_a, i_e, i_v, i_r) = insttuple self.log(5, '-->Potential Provider: %s' % inst_str) thismode = self.tsInfo.getMode(name=i_n, arch=i_a, epoch=i_e, ver=i_v, rel=i_r) if thismode is None and self.conf.getConfigOption('exactarch'): # check for mode by the same name+arch thismode = self.tsInfo.getMode(name=i_n, arch=i_a) if thismode is None and not self.conf.getConfigOption('exactarch'): # check for mode by just the name thismode = self.tsInfo.getMode(name=i_n) if thismode is not None: needmode = thismode self.log(5, '-->Mode is %s for provider of %s: %s' % (needmode, niceformatneed, inst_str)) break self.log(5, 'Mode for pkg providing %s: %s' % (niceformatneed, needmode)) if needmode in ['e']: self.log(5, 'TSINFO: %s package requiring %s marked as erase' % (reqpkg_print, needname)) pkg = packages.YumInstalledPackage(self.rpmdb.returnHeaderByTuple(requiringPkg)[0]) txmbr = self.tsInfo.addErase(pkg) txmbr.setAsDep() # I should figure out what it's depending on - grrr checkdeps = 1 if needmode in ['i', 'u']: self.doUpdateSetup() uplist = self.up.getUpdatesList(name=name) po = None # if there's an update for the reqpkg, then update it if len(uplist) > 0: if not self.conf.getConfigOption('exactarch'): pkgs = self.pkgSack.returnNewestByName(name) archs = [] for pkg in pkgs: (n,a,e,v,r) = pkg.pkgtup() archs.append(a) a = rpmUtils.arch.getBestArchFromList(archs) po = self.pkgSack.returnNewestByNameArch((n,a)) else: po = self.pkgSack.returnNewestByNameArch((name,arch)) if po.pkgtup() not in uplist: po = None
eab32cfd7b29888d5e24d1b7e70577597c3f37d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/eab32cfd7b29888d5e24d1b7e70577597c3f37d9/depsolve.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4523, 11256, 1265, 16747, 12, 2890, 16, 29468, 11264, 16, 12405, 16, 555, 1098, 4672, 3536, 18675, 326, 4904, 7861, 364, 279, 5993, 1625, 326, 29468, 2181, 353, 5876, 8395, 261, 529, 16, 6637, 16, 7632, 16, 1924, 16, 1279, 13, 273, 29468, 11264, 261, 14891, 529, 16, 1608, 7133, 16, 1608, 1589, 13, 273, 12405, 13752, 2139, 14891, 273, 25228, 1989, 18, 23667, 5471, 18, 2139, 8115, 12, 14891, 529, 16, 1608, 1589, 16, 1608, 7133, 13, 866, 14877, 273, 374, 3315, 15037, 273, 374, 1111, 10657, 67, 1188, 273, 1995, 87, 7866, 87, 738, 87, 5319, 87, 6456, 87, 11, 738, 29468, 11264, 225, 468, 732, 1297, 1122, 1104, 596, 11598, 326, 12405, 353, 1158, 7144, 1915, 468, 732, 1297, 1104, 596, 4121, 8121, 19, 29206, 518, 628, 326, 8715, 27574, 261, 430, 6967, 13, 468, 1508, 866, 358, 2621, 309, 716, 7757, 353, 3832, 1328, 329, 12318, 635, 326, 2492, 444, 468, 309, 518, 353, 1508, 732, 1608, 358, 1104, 596, 4121, 353, 3832, 2731, 358, 518, 471, 1328, 15905, 8715, 27574, 1557, 273, 365, 18, 13832, 27574, 18, 17994, 11264, 682, 1435, 1608, 3188, 273, 599, 468, 1965, 316, 326, 2492, 434, 326, 3577, 3475, 261, 430, 1281, 13, 309, 1608, 529, 316, 8715, 27574, 1557, 30, 1608, 3188, 273, 365, 18, 3428, 966, 18, 588, 2309, 12, 529, 33, 14891, 529, 13, 469, 30, 365, 18, 1330, 12, 25, 16, 296, 11449, 12981, 353, 486, 279, 2181, 508, 18, 10176, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4523, 11256, 1265, 16747, 12, 2890, 16, 29468, 11264, 16, 12405, 16, 555, 1098, 4672, 3536, 18675, 326, 4904, 7861, 364, 279, 5993, 1625, 326, 29468, 2181, 353, 5876, 8395, 261, 529, 16, 6637, 16, 7632, 16, 1924, 16, 1279, 13, 273, 29468, 11264, 261, 14891, 529, 16, 1608, 7133, 16, 1608, 1589, 13, 273, 12405, 13752, 2139, 14891, 273, 25228, 1989, 18, 23667, 5471, 18, 2139, 8115, 12, 14891, 529, 16, 1608, 1589, 16, 1608, 7133, 13, 866, 14877, 273, 374, 3315, 15037, 273, 374, 1111, 10657, 67, 1188, 273, 1995, 87, 7866, 87, 738, 87, 5319, 87, 6456, 87, 11, 738, 29468, 11264, 225, 468, 732, 1297, 1122, 1104, 596, 11598, 326, 12405, 353, 1158, 2 ]
elif quoted and not skipquote and char == '"' and next != '"': quoted = False elif quoted and char == '"' and next == '"': skipquote = True
elif quoted and not skipquote and char == '"': if next == '"': skipquote = 2 else: quoted = False
def parse_quoted_separated(args, separator=',', name_value=True, seplimit=0): """ Parses the given arguments according to the other parameters. If name_value is True, it parses keyword arguments (name=value) and returns the keyword arguments in the second return value (a dict) and positional arguments that occurred after any keyword argument in the third return value (a list). The first return value always contains the positional arguments, if name_value is False only it is present. Arguments can be quoted with a double-quote ('"') and the quote can be escaped by doubling it, the separator and equal sign (for keyword args) can both be quoted, when keyword args are enabled then the name of a keyword argument can also be quoted. Values that are not given are returned as None, while the empty string as a value can be achieved by quoting it; keys are never returned as None. If a name or value does not start with a quote, then the quote character looses its special meaning for that name or value. @param args: arguments to parse @param separator: the argument separator, defaults to a comma (',') @param name_value: indicates whether to parse keyword arguments @param seplimit: limits the number of parsed arguments @rtype: tuple, list @returns: if name_value is False, returns a list of arguments, otherwise a list of positional, a dict of keyword and a list of trailing arguments """ idx = 0 if not isinstance(args, unicode): raise TypeError('args must be unicode') max = len(args) ret_positional = [] # positional argument return value ret_trailing = [] # trailing arguments return value positional = ret_positional keyword = {} # keyword arguments curname = u'' # current name, initially value as well (name=value) cur = None # current value cur_quoted = False # indicates whether value was quoted, # needed None vs. u'' handling quoted = False # we're inside quotes skipquote = False # next quote is a quoted quote noquote = False # no quotes expected because word didn't start with one seplimit_reached = False # number of separators exhausted separator_count = 0 # number of separators encountered SPACE = [' ', '\t', ] nextitemsep = [separator] # used for skipping trailing space if name_value: nextitemsep.append('=') while idx < max: char = args[idx] next = None if idx + 1 < max: next = args[idx+1] if not quoted and char in SPACE: spaces = '' # accumulate all space while char in SPACE and idx < max - 1: spaces += char idx += 1 char = args[idx] # remove space if args end with it if char in SPACE and idx == max - 1: break # remove space at end of argument if char in nextitemsep: continue idx -= 1 if not cur is None: if cur: cur = cur + spaces elif curname: curname = curname + spaces elif not quoted and name_value and char == '=': if cur is None: cur = u'' cur_quoted = False else: cur += '=' noquote = False elif not quoted and not seplimit_reached and char == separator: if cur is None: cur = curname curname = None if not cur and not cur_quoted: cur = None if curname is not None: keyword[curname] = cur positional = ret_trailing else: positional.append(cur) curname = u'' cur = None noquote = False cur_quoted = False separator_count += 1 if seplimit and separator_count >= seplimit: seplimit_reached = True nextitemsep.remove(separator) elif not quoted and not noquote and char == '"': quoted = True cur_quoted = True elif quoted and not skipquote and char == '"' and next != '"': quoted = False elif quoted and char == '"' and next == '"': skipquote = True else: if cur is not None: cur = cur + char else: curname = curname + char skipquote = False noquote = True idx += 1 if cur is None: cur = curname curname = None cur_present = cur is not None if not cur and not cur_quoted: cur = None if curname is not None: keyword[curname] = cur elif cur_present: positional.append(cur) if name_value: return ret_positional, keyword, ret_trailing else: return ret_positional
d55f0e0b3558e3714bd7802a274db38f2c718ca2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/888/d55f0e0b3558e3714bd7802a274db38f2c718ca2/wikiutil.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 15179, 67, 24622, 12, 1968, 16, 4182, 33, 2187, 2187, 508, 67, 1132, 33, 5510, 16, 695, 412, 1038, 33, 20, 4672, 3536, 2280, 2420, 326, 864, 1775, 4888, 358, 326, 1308, 1472, 18, 971, 508, 67, 1132, 353, 1053, 16, 518, 8940, 4932, 1775, 261, 529, 33, 1132, 13, 471, 1135, 326, 4932, 1775, 316, 326, 2205, 327, 460, 261, 69, 2065, 13, 471, 16780, 1775, 716, 7841, 1839, 1281, 4932, 1237, 316, 326, 12126, 327, 460, 261, 69, 666, 2934, 1021, 1122, 327, 460, 3712, 1914, 326, 16780, 1775, 16, 309, 508, 67, 1132, 353, 1083, 1338, 518, 353, 3430, 18, 225, 13599, 848, 506, 9298, 598, 279, 1645, 17, 6889, 261, 4970, 6134, 471, 326, 3862, 848, 506, 8345, 635, 741, 440, 310, 518, 16, 326, 4182, 471, 3959, 1573, 261, 1884, 4932, 833, 13, 848, 3937, 506, 9298, 16, 1347, 4932, 833, 854, 3696, 1508, 326, 508, 434, 279, 4932, 1237, 848, 2546, 506, 9298, 18, 225, 6876, 716, 854, 486, 864, 854, 2106, 487, 599, 16, 1323, 326, 1008, 533, 487, 279, 460, 848, 506, 20186, 2155, 635, 29911, 518, 31, 1311, 854, 5903, 2106, 487, 599, 18, 225, 971, 279, 508, 578, 460, 1552, 486, 787, 598, 279, 3862, 16, 1508, 326, 3862, 3351, 437, 538, 281, 2097, 4582, 12256, 364, 716, 508, 578, 460, 18, 225, 632, 891, 833, 30, 1775, 358, 1109, 632, 891, 4182, 30, 326, 1237, 4182, 16, 3467, 358, 279, 8716, 261, 2187, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1109, 67, 15179, 67, 24622, 12, 1968, 16, 4182, 33, 2187, 2187, 508, 67, 1132, 33, 5510, 16, 695, 412, 1038, 33, 20, 4672, 3536, 2280, 2420, 326, 864, 1775, 4888, 358, 326, 1308, 1472, 18, 971, 508, 67, 1132, 353, 1053, 16, 518, 8940, 4932, 1775, 261, 529, 33, 1132, 13, 471, 1135, 326, 4932, 1775, 316, 326, 2205, 327, 460, 261, 69, 2065, 13, 471, 16780, 1775, 716, 7841, 1839, 1281, 4932, 1237, 316, 326, 12126, 327, 460, 261, 69, 666, 2934, 1021, 1122, 327, 460, 3712, 1914, 326, 16780, 1775, 16, 309, 508, 67, 1132, 353, 1083, 1338, 518, 353, 3430, 18, 225, 13599, 848, 506, 9298, 598, 279, 1645, 17, 6889, 261, 4970, 6134, 2 ]
lineno: current line number of line
def _GetPlatformUpdateAction(self, line, lineno, tests, platform): """Check the platform option and return the action needs to be taken.
8eb26144f32b9dc19ff34c5291f421ac2bf50daa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/8eb26144f32b9dc19ff34c5291f421ac2bf50daa/test_expectations.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 967, 8201, 1891, 1803, 12, 2890, 16, 980, 16, 7586, 16, 7434, 16, 4072, 4672, 3536, 1564, 326, 4072, 1456, 471, 327, 326, 1301, 4260, 358, 506, 9830, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 967, 8201, 1891, 1803, 12, 2890, 16, 980, 16, 7586, 16, 7434, 16, 4072, 4672, 3536, 1564, 326, 4072, 1456, 471, 327, 326, 1301, 4260, 358, 506, 9830, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.focusTile = tile
if self.player.game.host: tile.setFlag(QGraphicsItem.ItemIsFocusable, False) else: self.focusTile = tile
def _add(self, data): """get tile or meld from the selector board""" if isinstance(data, Meld): data.tiles = [] for pair in data.contentPairs: data.tiles.append(self.__addTile(Tile(pair.lower()))) for tile in data.tiles[1:]: if self.player.game.host == '': tile.setFlag(QGraphicsItem.ItemIsFocusable, False) self.focusTile = data.tiles[0] else: tile = Tile(data) # flower, season self.__addTile(tile) self.focusTile = tile # TODO: not if remote game self.placeTiles()
a641b2dc7be52fea34d11135378634ba97cc924a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/a641b2dc7be52fea34d11135378634ba97cc924a/board.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 1289, 12, 2890, 16, 501, 4672, 3536, 588, 4769, 578, 312, 488, 628, 326, 3451, 11094, 8395, 309, 1549, 12, 892, 16, 490, 488, 4672, 501, 18, 28366, 273, 5378, 364, 3082, 316, 501, 18, 1745, 10409, 30, 501, 18, 28366, 18, 6923, 12, 2890, 16186, 1289, 9337, 12, 9337, 12, 6017, 18, 8167, 1435, 20349, 364, 4769, 316, 501, 18, 28366, 63, 21, 30, 14542, 309, 365, 18, 14872, 18, 13957, 18, 2564, 422, 875, 30, 4769, 18, 542, 4678, 12, 53, 17558, 1180, 18, 1180, 2520, 9233, 429, 16, 1083, 13, 365, 18, 13923, 9337, 273, 501, 18, 28366, 63, 20, 65, 469, 30, 4769, 273, 13791, 12, 892, 13, 468, 4693, 264, 16, 15874, 365, 16186, 1289, 9337, 12, 15368, 13, 309, 365, 18, 14872, 18, 13957, 18, 2564, 30, 4769, 18, 542, 4678, 12, 53, 17558, 1180, 18, 1180, 2520, 9233, 429, 16, 1083, 13, 469, 30, 365, 18, 13923, 9337, 273, 4769, 468, 2660, 30, 486, 309, 2632, 7920, 365, 18, 964, 27669, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16, 501, 4672, 3536, 588, 4769, 578, 312, 488, 628, 326, 3451, 11094, 8395, 309, 1549, 12, 892, 16, 490, 488, 4672, 501, 18, 28366, 273, 5378, 364, 3082, 316, 501, 18, 1745, 10409, 30, 501, 18, 28366, 18, 6923, 12, 2890, 16186, 1289, 9337, 12, 9337, 12, 6017, 18, 8167, 1435, 20349, 364, 4769, 316, 501, 18, 28366, 63, 21, 30, 14542, 309, 365, 18, 14872, 18, 13957, 18, 2564, 422, 875, 30, 4769, 18, 542, 4678, 12, 53, 17558, 1180, 18, 1180, 2520, 9233, 429, 16, 1083, 13, 365, 18, 13923, 9337, 273, 501, 18, 28366, 63, 20, 65, 469, 30, 4769, 273, 13791, 12, 892, 13, 468, 4693, 264, 16, 15874, 2 ]
c.Run()
def call_instance_start(self, node, instance, extra_args): """Starts an instance.
ecfe94918845683627f97b646872fde40247176b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/ecfe94918845683627f97b646872fde40247176b/rpc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 1336, 67, 1937, 12, 2890, 16, 756, 16, 791, 16, 2870, 67, 1968, 4672, 3536, 11203, 392, 791, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 745, 67, 1336, 67, 1937, 12, 2890, 16, 756, 16, 791, 16, 2870, 67, 1968, 4672, 3536, 11203, 392, 791, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try: body = [output, extra] except NameError: body = [output]
body = [output]
def perform_removefield(colID, ln, fldID='', fldvID='', fmeth='', callback='yes', confirm=0): """form to remove a field from a collection. colID - the current collection, remove the field from this collection. sel_ln - remove the field with this language fldID - remove the field with this id""" if fmeth == "soo": field = "sort option" elif fmeth == "sew": field = "search field" elif fmeth == "seo": field = "search option" else: field = "field" subtitle = """<a name="6.4"><a name="7.4"><a name="8.4"></a>Remove %s""" % field output = "" col_dict = dict(get_def_name('', "collection")) fld_dict = dict(get_def_name('', "field")) res = get_fld_value() fldv_dict = dict(map(lambda x: (x[0], x[1]), res)) if colID and fldID: colID = int(colID) fldID = int(fldID) if fldvID and fldvID != "None": fldvID = int(fldvID) if confirm in ["0", 0]: text = """Do you want to remove the %s '%s' %s from the collection '%s'.""" % (field, fld_dict[fldID], (fldvID not in["", "None"] and "with value '%s'" % fldv_dict[fldvID] or ''), col_dict[colID]) output += createhiddenform(action="removefield#6.5", text=text, button="Confirm", colID=colID, fldID=fldID, fldvID=fldvID, fmeth=fmeth, confirm=1) elif confirm in ["1", 1]: res = remove_fld(colID, fldID, fldvID) output += write_outcome(res) try: body = [output, extra] except NameError: body = [output] output = "<br>" + addadminbox(subtitle, body) if fmeth == "soo": return perform_showsortoptions(colID, ln, content=output) elif fmeth == "sew": return perform_showsearchfields(colID, ln, content=output) elif fmeth == "seo": return perform_showsearchoptions(colID, ln, content=output)
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, 4479, 1518, 12, 1293, 734, 16, 7211, 16, 9880, 734, 2218, 2187, 9880, 90, 734, 2218, 2187, 10940, 546, 2218, 2187, 1348, 2218, 9707, 2187, 6932, 33, 20, 4672, 3536, 687, 358, 1206, 279, 652, 628, 279, 1849, 18, 645, 734, 300, 326, 783, 1849, 16, 1206, 326, 652, 628, 333, 1849, 18, 357, 67, 2370, 300, 1206, 326, 652, 598, 333, 2653, 9880, 734, 300, 1206, 326, 652, 598, 333, 612, 8395, 225, 309, 10940, 546, 422, 315, 2048, 83, 6877, 652, 273, 315, 3804, 1456, 6, 1327, 10940, 546, 422, 315, 307, 91, 6877, 652, 273, 315, 3072, 652, 6, 1327, 10940, 546, 422, 315, 21999, 6877, 652, 273, 315, 3072, 1456, 6, 469, 30, 652, 273, 315, 1518, 6, 225, 20281, 273, 3536, 32, 69, 508, 1546, 26, 18, 24, 14050, 69, 508, 1546, 27, 18, 24, 14050, 69, 508, 1546, 28, 18, 24, 13762, 69, 34, 3288, 738, 87, 8395, 738, 652, 876, 225, 273, 1408, 645, 67, 1576, 273, 2065, 12, 588, 67, 536, 67, 529, 2668, 2187, 315, 5548, 6, 3719, 9880, 67, 1576, 273, 2065, 12, 588, 67, 536, 67, 529, 2668, 2187, 315, 1518, 6, 3719, 400, 273, 336, 67, 19794, 67, 1132, 1435, 9880, 90, 67, 1576, 273, 2065, 12, 1458, 12, 14661, 619, 30, 261, 92, 63, 20, 6487, 619, 63, 21, 65, 3631, 400, 3719, 225, 309, 645, 734, 471, 9880, 734, 30, 645, 734, 273, 509, 12, 1293, 734, 13, 9880, 734, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3073, 67, 4479, 1518, 12, 1293, 734, 16, 7211, 16, 9880, 734, 2218, 2187, 9880, 90, 734, 2218, 2187, 10940, 546, 2218, 2187, 1348, 2218, 9707, 2187, 6932, 33, 20, 4672, 3536, 687, 358, 1206, 279, 652, 628, 279, 1849, 18, 645, 734, 300, 326, 783, 1849, 16, 1206, 326, 652, 628, 333, 1849, 18, 357, 67, 2370, 300, 1206, 326, 652, 598, 333, 2653, 9880, 734, 300, 1206, 326, 652, 598, 333, 612, 8395, 225, 309, 10940, 546, 422, 315, 2048, 83, 6877, 652, 273, 315, 3804, 1456, 6, 1327, 10940, 546, 422, 315, 307, 91, 6877, 652, 273, 315, 3072, 652, 6, 1327, 10940, 546, 422, 315, 21999, 6877, 652, 273, 315, 3072, 1456, 6, 469, 2 ]
self.f.write(s)
self._fd.write(s)
def _send_cmd(self, *args): s = " ".join(map(str, args)) + "\n" self.f.write(s)
8c9c6a050ae410643cad6448d45e21a5993a5657 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8495/8c9c6a050ae410643cad6448d45e21a5993a5657/protocol.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4661, 67, 4172, 12, 2890, 16, 380, 1968, 4672, 272, 273, 315, 3552, 5701, 12, 1458, 12, 701, 16, 833, 3719, 397, 1548, 82, 6, 365, 18, 74, 18, 2626, 12, 87, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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12, 1458, 12, 701, 16, 833, 3719, 397, 1548, 82, 6, 365, 18, 74, 18, 2626, 12, 87, 13, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
trip.id = trip_id
trip.id = ("%s_%s") % (trip_id, line)
def ImportTrips(self, trips_file): "Imports the rec_frt.mdv file." for trip_id, trip_starttime, line, strli, direction, \ stoptime_id, schedule_id, daytype_id, restriction_id, \ dest_station_id, dest_stop_id, trip_type in \ ReadCSV(trips_file, ['FRT_FID', 'FRT_START', 'LI_NR', 'STR_LI_VAR', 'LI_RI_NR', 'FGR_NR', 'FPL_KUERZEL', 'TAGESMERKMAL_NR', 'VB', 'FRT_HP_AUS', 'HALTEPUNKT_NR_ZIEL', 'FAHRTART_NR']): if trip_type != '1': continue # 1=normal, 2=empty, 3=from depot, 4=to depot, 5=other trip = Trip() trip.id = trip_id trip.starttime = int(trip_starttime) trip.route = self.routes[line] dest_station = self.stations[dest_station_id] pattern_id = u'Pat.%s.%s.%s' % (line, strli, direction) trip.pattern = self.patterns[pattern_id] trip.stoptimes = trip.pattern.stoptimes[stoptime_id] if restriction_id: service_id = u'VB%s.%s' % (schedule_id, restriction_id) else: service_id = u'C%s.%s' % (schedule_id, daytype_id) trip.service_id = service_id assert len(self.services[service_id]) > 0 self.trips[trip.id] = trip
6dab947c05f2f9068bc9e68f0933968782363f3a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6302/6dab947c05f2f9068bc9e68f0933968782363f3a/import_ch_zurich.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6164, 6251, 1121, 12, 2890, 16, 433, 7146, 67, 768, 4672, 315, 13347, 326, 1950, 67, 74, 3797, 18, 1264, 90, 585, 1199, 364, 20654, 67, 350, 16, 20654, 67, 1937, 957, 16, 980, 16, 609, 549, 16, 4068, 16, 225, 521, 384, 3838, 494, 67, 350, 16, 4788, 67, 350, 16, 2548, 723, 67, 350, 16, 9318, 67, 350, 16, 225, 521, 1570, 67, 17894, 67, 350, 16, 1570, 67, 5681, 67, 350, 16, 20654, 67, 723, 316, 225, 521, 2720, 16570, 12, 313, 7146, 67, 768, 16, 10228, 9981, 56, 67, 42, 734, 2187, 296, 9981, 56, 67, 7570, 2187, 296, 2053, 67, 50, 54, 2187, 296, 3902, 67, 2053, 67, 7716, 2187, 296, 2053, 67, 2259, 67, 50, 54, 2187, 296, 42, 6997, 67, 50, 54, 2187, 296, 42, 6253, 67, 47, 57, 654, 62, 2247, 2187, 296, 56, 2833, 7303, 654, 47, 49, 1013, 67, 50, 54, 2187, 296, 58, 38, 2187, 296, 9981, 56, 67, 2500, 67, 37, 3378, 2187, 296, 44, 1013, 1448, 52, 16141, 56, 67, 50, 54, 67, 62, 45, 2247, 2187, 296, 2046, 44, 12185, 4928, 67, 50, 54, 3546, 4672, 309, 20654, 67, 723, 480, 296, 21, 4278, 1324, 225, 468, 404, 33, 6130, 16, 576, 33, 5531, 16, 890, 33, 2080, 5993, 352, 16, 1059, 33, 869, 5993, 352, 16, 1381, 33, 3011, 20654, 273, 10000, 84, 1435, 565, 20654, 18, 350, 273, 7566, 9, 87, 10185, 87, 7923, 738, 261, 25125, 67, 350, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6164, 6251, 1121, 12, 2890, 16, 433, 7146, 67, 768, 4672, 315, 13347, 326, 1950, 67, 74, 3797, 18, 1264, 90, 585, 1199, 364, 20654, 67, 350, 16, 20654, 67, 1937, 957, 16, 980, 16, 609, 549, 16, 4068, 16, 225, 521, 384, 3838, 494, 67, 350, 16, 4788, 67, 350, 16, 2548, 723, 67, 350, 16, 9318, 67, 350, 16, 225, 521, 1570, 67, 17894, 67, 350, 16, 1570, 67, 5681, 67, 350, 16, 20654, 67, 723, 316, 225, 521, 2720, 16570, 12, 313, 7146, 67, 768, 16, 10228, 9981, 56, 67, 42, 734, 2187, 296, 9981, 56, 67, 7570, 2187, 296, 2053, 67, 50, 54, 2187, 296, 3902, 67, 2053, 67, 7716, 2187, 296, 2053, 67, 2 ]
def hooke_isotrope_direct_3d(E,nu):
def hooke_direct_isotrope_3d(E,nu):
def hooke_isotrope_direct_3d(E,nu): l = E * nu / (1. + nu) / (1. - 2. * nu) m = 2. * E / (1. + nu) H = matrix([ [l+m, l , l , 0., 0., 0.], [ l , l+m, l , 0., 0., 0.], [ l , l , l+m, 0., 0., 0.], [ 0., 0., 0., m , 0., 0.], [ 0., 0., 0., 0., m , 0.], [ 0., 0., 0., 0., 0., m ], ]) return H
402060dc3a14a004eadcae82df01dca84caae3cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8320/402060dc3a14a004eadcae82df01dca84caae3cd/material_help.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3953, 73, 67, 7205, 67, 17693, 303, 347, 67, 23, 72, 12, 41, 16, 13053, 4672, 328, 273, 512, 380, 9244, 342, 261, 21, 18, 397, 9244, 13, 342, 261, 21, 18, 300, 576, 18, 380, 9244, 13, 312, 273, 576, 18, 380, 512, 342, 261, 21, 18, 397, 9244, 13, 670, 273, 3148, 3816, 306, 80, 15, 81, 16, 225, 328, 269, 225, 328, 269, 374, 12990, 374, 12990, 374, 18, 6487, 306, 328, 269, 328, 15, 81, 16, 225, 328, 269, 374, 12990, 374, 12990, 374, 18, 6487, 306, 328, 269, 225, 328, 269, 328, 15, 81, 16, 374, 12990, 374, 12990, 374, 18, 6487, 306, 374, 12990, 225, 374, 12990, 225, 374, 12990, 312, 269, 374, 12990, 374, 18, 6487, 306, 374, 12990, 225, 374, 12990, 225, 374, 12990, 374, 12990, 312, 269, 374, 18, 6487, 306, 374, 12990, 225, 374, 12990, 225, 374, 12990, 374, 12990, 374, 12990, 312, 308, 16, 308, 13, 327, 670, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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13, 312, 273, 576, 18, 380, 512, 342, 261, 21, 18, 397, 9244, 13, 670, 273, 3148, 3816, 306, 80, 15, 81, 16, 225, 328, 269, 225, 328, 269, 374, 12990, 374, 12990, 374, 18, 6487, 306, 328, 269, 328, 15, 81, 16, 225, 328, 269, 374, 12990, 374, 12990, 374, 18, 6487, 306, 328, 269, 225, 328, 269, 328, 15, 81, 16, 374, 12990, 374, 12990, 374, 18, 6487, 306, 374, 12990, 225, 374, 12990, 225, 374, 12990, 312, 269, 2 ]
Index '0' means the first position, '1' the second and so on. Similarly, '-1' is the last position, '-2' the second last, and so on. Using an index that does not exist on the list causes an error. The index can be either an integer or a string that can be converted to an integer.
Index '0' means the first position, '1' the second and so on. Similarly, '-1' is the last position, '-2' the second last, and so on. Using an index that does not exist on the list causes an error. The index can be either an integer or a string that can be converted to an integer.
def remove_from_list(self, L, index): """Removes and returns the value specified with an index from L. Index '0' means the first position, '1' the second and so on. Similarly, '-1' is the last position, '-2' the second last, and so on. Using an index that does not exist on the list causes an error. The index can be either an integer or a string that can be converted to an integer. Example: | ${x} = | Remove From List | ${L2} | 0 | => ${x} == 'a' ${L2} == ['b'] """ try: return L.pop(self._index_to_int(index)) except IndexError: self._index_error(L, index)
2f5075140c0afeaf5bda26b5924aceb3478d1a14 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/2f5075140c0afeaf5bda26b5924aceb3478d1a14/Collections.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 2080, 67, 1098, 12, 2890, 16, 511, 16, 770, 4672, 3536, 6220, 471, 1135, 326, 460, 1269, 598, 392, 770, 628, 511, 18, 225, 3340, 296, 20, 11, 4696, 326, 1122, 1754, 16, 296, 21, 11, 326, 2205, 471, 1427, 603, 18, 22967, 715, 16, 2400, 21, 11, 353, 326, 1142, 1754, 16, 2400, 22, 11, 326, 2205, 1142, 16, 471, 1427, 603, 18, 11637, 392, 770, 716, 1552, 486, 1005, 603, 326, 666, 14119, 392, 555, 18, 1021, 770, 848, 506, 3344, 392, 3571, 578, 279, 533, 716, 848, 506, 5970, 358, 392, 3571, 18, 225, 5090, 30, 571, 3531, 92, 97, 273, 571, 3581, 6338, 987, 571, 3531, 48, 22, 97, 571, 374, 571, 516, 3531, 92, 97, 422, 296, 69, 11, 3531, 48, 22, 97, 422, 10228, 70, 3546, 3536, 775, 30, 327, 511, 18, 5120, 12, 2890, 6315, 1615, 67, 869, 67, 474, 12, 1615, 3719, 1335, 10195, 30, 365, 6315, 1615, 67, 1636, 12, 48, 16, 770, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 2080, 67, 1098, 12, 2890, 16, 511, 16, 770, 4672, 3536, 6220, 471, 1135, 326, 460, 1269, 598, 392, 770, 628, 511, 18, 225, 3340, 296, 20, 11, 4696, 326, 1122, 1754, 16, 296, 21, 11, 326, 2205, 471, 1427, 603, 18, 22967, 715, 16, 2400, 21, 11, 353, 326, 1142, 1754, 16, 2400, 22, 11, 326, 2205, 1142, 16, 471, 1427, 603, 18, 11637, 392, 770, 716, 1552, 486, 1005, 603, 326, 666, 14119, 392, 555, 18, 1021, 770, 848, 506, 3344, 392, 3571, 578, 279, 533, 716, 848, 506, 5970, 358, 392, 3571, 18, 225, 5090, 30, 571, 3531, 92, 97, 273, 571, 3581, 6338, 987, 571, 3531, 48, 22, 97, 571, 374, 571, 2 ]
msg = queue.get(timeout=5) self.assertEqual("Message %d" % i, msg.body)
try: msg = queue.get(timeout=5) self.assertEqual("Message %d" % i, msg.body) except Empty: self.fail("Failed to find expected message containing 'Message %d'" % i)
def test_pull_from_queue(self): session = self.session
e359bd8628372d869c8180ecd9f3e2507532b10f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/198/e359bd8628372d869c8180ecd9f3e2507532b10f/federation.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13469, 67, 2080, 67, 4000, 12, 2890, 4672, 1339, 273, 365, 18, 3184, 2, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 13469, 67, 2080, 67, 4000, 12, 2890, 4672, 1339, 273, 365, 18, 3184, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
notification_center.post_notification('BonjourAccountDidAddNeighbour', sender=self.account,
NotificationCenter().post_notification('BonjourAccountDidAddNeighbour', sender=self.account,
def _resolve_cb(self, file, flags, interface_index, error_code, fullname, host_target, port, txtrecord): notification_center = NotificationCenter() settings = SIPSimpleSettings() if error_code == bonjour.kDNSServiceErr_NoError: txt = bonjour.TXTRecord.parse(txtrecord) contact = txt['contact'].strip('<>') if 'contact' in txt else None if contact: display_name = txt['name'].decode('utf-8') if 'name' in txt else None host = re.match(r'^(.*?)(\.local)?\.?$', host_target).group(1) uri = FrozenSIPURI.parse(contact) transport = uri.parameters.get('transport', 'udp') if transport in settings.sip.transport_list and uri != self.account.contact[transport] and uri not in self._neighbours: self._neighbours.add(uri) notification_center.post_notification('BonjourAccountDidAddNeighbour', sender=self.account, data=TimestampedNotificationData(display_name=display_name, host=host, uri=uri)) BonjourFile(file, 'resolution').close()
dee5c0545c8ca1bc3f9219ea078ee0dca8662a2c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/dee5c0545c8ca1bc3f9219ea078ee0dca8662a2c/account.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10828, 67, 7358, 12, 2890, 16, 585, 16, 2943, 16, 1560, 67, 1615, 16, 555, 67, 710, 16, 13321, 16, 1479, 67, 3299, 16, 1756, 16, 6463, 3366, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 1947, 273, 348, 2579, 5784, 2628, 1435, 309, 555, 67, 710, 422, 324, 265, 78, 477, 18, 79, 11602, 1179, 2524, 67, 2279, 668, 30, 6463, 273, 324, 265, 78, 477, 18, 29399, 2115, 18, 2670, 12, 5830, 3366, 13, 5388, 273, 6463, 3292, 8994, 29489, 6406, 2668, 32, 1870, 13, 309, 296, 8994, 11, 316, 6463, 469, 599, 309, 5388, 30, 2562, 67, 529, 273, 6463, 3292, 529, 29489, 3922, 2668, 3158, 17, 28, 6134, 309, 296, 529, 11, 316, 6463, 469, 599, 1479, 273, 283, 18, 1916, 12, 86, 19856, 21110, 4713, 18, 3729, 9945, 5834, 35, 8, 2187, 1479, 67, 3299, 2934, 1655, 12, 21, 13, 2003, 273, 478, 9808, 17739, 3098, 18, 2670, 12, 8994, 13, 4736, 273, 2003, 18, 3977, 18, 588, 2668, 13049, 2187, 296, 26029, 6134, 309, 4736, 316, 1947, 18, 28477, 18, 13049, 67, 1098, 471, 2003, 480, 365, 18, 4631, 18, 8994, 63, 13049, 65, 471, 2003, 486, 316, 365, 6315, 11166, 4390, 30, 365, 6315, 11166, 4390, 18, 1289, 12, 1650, 13, 8050, 8449, 7675, 2767, 67, 9927, 2668, 38, 265, 78, 477, 3032, 18250, 986, 13577, 477, 2187, 5793, 33, 2890, 18, 4631, 16, 501, 33, 4921, 329, 4386, 751, 12, 5417, 67, 529, 33, 5417, 67, 529, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10828, 67, 7358, 12, 2890, 16, 585, 16, 2943, 16, 1560, 67, 1615, 16, 555, 67, 710, 16, 13321, 16, 1479, 67, 3299, 16, 1756, 16, 6463, 3366, 4672, 3851, 67, 5693, 273, 8050, 8449, 1435, 1947, 273, 348, 2579, 5784, 2628, 1435, 309, 555, 67, 710, 422, 324, 265, 78, 477, 18, 79, 11602, 1179, 2524, 67, 2279, 668, 30, 6463, 273, 324, 265, 78, 477, 18, 29399, 2115, 18, 2670, 12, 5830, 3366, 13, 5388, 273, 6463, 3292, 8994, 29489, 6406, 2668, 32, 1870, 13, 309, 296, 8994, 11, 316, 6463, 469, 599, 309, 5388, 30, 2562, 67, 529, 273, 6463, 3292, 529, 29489, 3922, 2668, 3158, 17, 28, 6134, 309, 296, 529, 11, 316, 2 ]
FProcessEntry32 = TProcessEntry32() FProcessEntry32.dwSize = ctypes.sizeof(TProcessEntry32) ContinueLoop = winKernel.kernel32.Process32First(FSnapshotHandle, ctypes.byref(FProcessEntry32)) appName = str()
FProcessEntry32 = processEntry32W() FProcessEntry32.dwSize = ctypes.sizeof(processEntry32W) ContinueLoop = winKernel.kernel32.Process32FirstW(FSnapshotHandle, ctypes.byref(FProcessEntry32)) appName = unicode()
def getAppNameFromProcessID(processID,includeExt=False): """Finds out the application name of the given process. @param processID: the ID of the process handle of the application you wish to get the name of. @type processID: int @param includeExt: C{True} to include the extension of the application's executable filename, C{False} to exclude it. @type window: bool @returns: application name @rtype: str """ if processID==NVDAProcessID: return "nvda.exe" if includeExt else "nvda" FSnapshotHandle = winKernel.kernel32.CreateToolhelp32Snapshot (2,0) FProcessEntry32 = TProcessEntry32() FProcessEntry32.dwSize = ctypes.sizeof(TProcessEntry32) ContinueLoop = winKernel.kernel32.Process32First(FSnapshotHandle, ctypes.byref(FProcessEntry32)) appName = str() while ContinueLoop: if FProcessEntry32.th32ProcessID == processID: appName = FProcessEntry32.szExeFile break ContinueLoop = winKernel.kernel32.Process32Next(FSnapshotHandle, ctypes.byref(FProcessEntry32)) winKernel.kernel32.CloseHandle(FSnapshotHandle) if not includeExt: appName=os.path.splitext(appName)[0].lower() log.debug("appName: %s"%appName) return appName
60c4f26c14bf43df3043f17a7ec31366d069bed9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9340/60c4f26c14bf43df3043f17a7ec31366d069bed9/appModuleHandler.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13697, 461, 1265, 2227, 734, 12, 2567, 734, 16, 6702, 2482, 33, 8381, 4672, 3536, 8947, 596, 326, 2521, 508, 434, 326, 864, 1207, 18, 632, 891, 1207, 734, 30, 326, 1599, 434, 326, 1207, 1640, 434, 326, 2521, 1846, 14302, 358, 336, 326, 508, 434, 18, 632, 723, 1207, 734, 30, 509, 632, 891, 2341, 2482, 30, 385, 95, 5510, 97, 358, 2341, 326, 2710, 434, 326, 2521, 1807, 9070, 1544, 16, 385, 95, 8381, 97, 358, 4433, 518, 18, 632, 723, 2742, 30, 1426, 632, 6154, 30, 2521, 508, 632, 86, 723, 30, 609, 3536, 309, 1207, 734, 631, 11679, 9793, 2227, 734, 30, 327, 315, 16588, 2414, 18, 14880, 6, 309, 2341, 2482, 469, 315, 16588, 2414, 6, 478, 4568, 3259, 273, 5657, 11286, 18, 8111, 1578, 18, 1684, 6364, 5201, 1578, 4568, 261, 22, 16, 20, 13, 478, 2227, 1622, 1578, 273, 1207, 1622, 1578, 59, 1435, 478, 2227, 1622, 1578, 18, 22512, 1225, 273, 6983, 18, 1467, 792, 12, 2567, 1622, 1578, 59, 13, 16773, 6452, 273, 5657, 11286, 18, 8111, 1578, 18, 2227, 1578, 3759, 59, 12, 42, 4568, 3259, 16, 6983, 18, 1637, 1734, 12, 42, 2227, 1622, 1578, 3719, 10236, 273, 5252, 1435, 1323, 16773, 6452, 30, 309, 478, 2227, 1622, 1578, 18, 451, 1578, 2227, 734, 422, 1207, 734, 30, 10236, 273, 478, 2227, 1622, 1578, 18, 24575, 424, 73, 812, 898, 16773, 6452, 273, 5657, 11286, 18, 8111, 1578, 18, 2227, 1578, 2134, 12, 42, 4568, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13697, 461, 1265, 2227, 734, 12, 2567, 734, 16, 6702, 2482, 33, 8381, 4672, 3536, 8947, 596, 326, 2521, 508, 434, 326, 864, 1207, 18, 632, 891, 1207, 734, 30, 326, 1599, 434, 326, 1207, 1640, 434, 326, 2521, 1846, 14302, 358, 336, 326, 508, 434, 18, 632, 723, 1207, 734, 30, 509, 632, 891, 2341, 2482, 30, 385, 95, 5510, 97, 358, 2341, 326, 2710, 434, 326, 2521, 1807, 9070, 1544, 16, 385, 95, 8381, 97, 358, 4433, 518, 18, 632, 723, 2742, 30, 1426, 632, 6154, 30, 2521, 508, 632, 86, 723, 30, 609, 3536, 309, 1207, 734, 631, 11679, 9793, 2227, 734, 30, 327, 315, 16588, 2414, 18, 14880, 6, 309, 2341, 2482, 469, 315, 2 ]
if fn.ext in ['.map', '.txt', '.s']:
if fn.ext in ['.map', '.txt', '.s', '.e', '.rgb']:
def process_files(self): from openalea.core.data import DataFactory
f9f008ef8d8def9d631bc4a1f6676d20b4e357e3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11338/f9f008ef8d8def9d631bc4a1f6676d20b4e357e3/vlab.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1207, 67, 2354, 12, 2890, 4672, 628, 1696, 5349, 69, 18, 3644, 18, 892, 1930, 1910, 1733, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 628, 1696, 5349, 69, 18, 3644, 18, 892, 1930, 1910, 1733, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
this sample. The quantity describes a value of certain type. See the units property to know more. Measurement can be None on failed tests only. >>> sample = QuantitativeSample('test-id', None, ... test_result='fail') >>> sample.measurement is None True We expect to have some value if the test was carried out correctly. ValueError is raised if this is not the case: >>> sample = QuantitativeSample('test-id', None, ... test_result='pass') Traceback (most recent call last): ... ValueError: Measurement cannot be None if the test succeeded Measurement must be a number. Either int, long or float: >>> sample.measurement = 10 >>> sample.measurement = 10L >>> sample.measurement = 10.0
a test result. The quantity describes a value of certain type. See the units property to know more. Measurement must be a number. Either int, long, float or Decimal: >>> result = TestResult('some-test', 'unknown') >>> result.measurement = 10 >>> result.measurement = 10L >>> result.measurement = 10.0 >>> result.measurement = Decimal('10.0')
def _set_measurement(self, value): valid_types = (int, long, float, Decimal, NoneType) if not isinstance(value, valid_types): raise TypeError("Measurement must be an int, long, float, Decimal or None") self._measurement = value
68740da0547f7b206d1f5a4417258818b8e84b36 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7382/68740da0547f7b206d1f5a4417258818b8e84b36/test_result.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 16944, 12, 2890, 16, 460, 4672, 923, 67, 2352, 273, 261, 474, 16, 1525, 16, 1431, 16, 11322, 16, 599, 559, 13, 309, 486, 1549, 12, 1132, 16, 923, 67, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 542, 67, 16944, 12, 2890, 16, 460, 4672, 923, 67, 2352, 273, 261, 474, 16, 1525, 16, 1431, 16, 11322, 16, 599, 559, 13, 309, 486, 1549, 12, 1132, 16, 923, 67, 2352, 4672, 1002, 3580, 2932, 17933, 1297, 506, 392, 509, 16, 1525, 16, 1431, 16, 11322, 578, 599, 7923, 365, 6315, 16944, 273, 460, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
super(BrowserView, self).__init__(context, request)
super(AnalyticsViewlet, self).__init__(context, request)
def __init__(self, context, request, view, manager): super(BrowserView, self).__init__(context, request) self.__parent__ = view self.context = context self.request = request self.view = view self.manager = manager
4c71b4c01d3831c556984d0c2e76159bf71d4841 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12185/4c71b4c01d3831c556984d0c2e76159bf71d4841/view.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 16, 590, 16, 1476, 16, 3301, 4672, 2240, 12, 15675, 1767, 1810, 16, 365, 2934, 972, 2738, 972, 12, 2472, 16, 590, 13, 365, 16186, 2938, 972, 273, 1476, 365, 18, 2472, 273, 819, 365, 18, 2293, 273, 590, 365, 18, 1945, 273, 1476, 365, 18, 4181, 273, 3301, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 819, 16, 590, 16, 1476, 16, 3301, 4672, 2240, 12, 15675, 1767, 1810, 16, 365, 2934, 972, 2738, 972, 12, 2472, 16, 590, 13, 365, 16186, 2938, 972, 273, 1476, 365, 18, 2472, 273, 819, 365, 18, 2293, 273, 590, 365, 18, 1945, 273, 1476, 365, 18, 4181, 273, 3301, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
print request.encode("utf-8")
def _process_request(self, connection, request): """ Post the data and return the XML response """ print request.encode("utf-8") conn = urllib2.Request(url=connection, data=request.encode("utf-8")) f = urllib2.urlopen(conn) all_results = f.read() return(fromstring(all_results))
429a6daa5a3d3a4efbcc18ef4786db328eb0d750 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/429a6daa5a3d3a4efbcc18ef4786db328eb0d750/shipper.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 2293, 12, 2890, 16, 1459, 16, 590, 4672, 3536, 5616, 326, 501, 471, 327, 326, 3167, 766, 3536, 1487, 273, 11527, 22, 18, 691, 12, 718, 33, 4071, 16, 501, 33, 2293, 18, 3015, 2932, 3158, 17, 28, 6, 3719, 284, 273, 11527, 22, 18, 295, 18589, 12, 4646, 13, 777, 67, 4717, 273, 284, 18, 896, 1435, 327, 12, 2080, 1080, 12, 454, 67, 4717, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2567, 67, 2293, 12, 2890, 16, 1459, 16, 590, 4672, 3536, 5616, 326, 501, 471, 327, 326, 3167, 766, 3536, 1487, 273, 11527, 22, 18, 691, 12, 718, 33, 4071, 16, 501, 33, 2293, 18, 3015, 2932, 3158, 17, 28, 6, 3719, 284, 273, 11527, 22, 18, 295, 18589, 12, 4646, 13, 777, 67, 4717, 273, 284, 18, 896, 1435, 327, 12, 2080, 1080, 12, 454, 67, 4717, 3719, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
l = document.body[m].find(option)
l = lines[m].find(option)
def remove_option(document, m, option): ''' removes option from line m. returns whether we did anything ''' l = document.body[m].find(option) if l == -1: return False val = document.body[m][l:].split('"')[1] document.body[m] = document.body[m][:l - 1] + document.body[m][l+len(option + '="' + val + '"'):] return True
2d7bbab89f976fbaa4f3e7109a92ddbf721dc4c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/2d7bbab89f976fbaa4f3e7109a92ddbf721dc4c9/lyx_2_0.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1206, 67, 3482, 12, 5457, 16, 312, 16, 1456, 4672, 9163, 7157, 1456, 628, 980, 312, 18, 1135, 2856, 732, 5061, 6967, 9163, 328, 273, 2362, 63, 81, 8009, 4720, 12, 3482, 13, 309, 328, 422, 300, 21, 30, 327, 1083, 1244, 273, 1668, 18, 3432, 63, 81, 6362, 80, 30, 8009, 4939, 2668, 5187, 25146, 21, 65, 1668, 18, 3432, 63, 81, 65, 273, 1668, 18, 3432, 63, 81, 6362, 30, 80, 300, 404, 65, 397, 1668, 18, 3432, 63, 81, 6362, 80, 15, 1897, 12, 3482, 397, 28261, 397, 1244, 397, 4754, 4672, 65, 327, 1053, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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9163, 328, 273, 2362, 63, 81, 8009, 4720, 12, 3482, 13, 309, 328, 422, 300, 21, 30, 327, 1083, 1244, 273, 1668, 18, 3432, 63, 81, 6362, 80, 30, 8009, 4939, 2668, 5187, 25146, 21, 65, 1668, 18, 3432, 63, 81, 65, 273, 1668, 18, 3432, 63, 81, 6362, 30, 80, 300, 404, 65, 397, 1668, 18, 3432, 63, 81, 6362, 80, 15, 1897, 12, 3482, 397, 28261, 397, 1244, 397, 4754, 4672, 65, 327, 1053, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
newSection.load(row)
newSection.load_row(row)
def __init__(self): self.data = {} sql = "SELECT section_code, sort_order, only_registered, only_admin, only_sysadmin FROM section" cursor = db.select(sql) while (1): row = cursor.fetchone() if row==None: break newSection = Section() newSection.load(row) self.data[newSection.code] = newSection
076b15b1c97d57e9f42e83a3568b1d2350396f3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/076b15b1c97d57e9f42e83a3568b1d2350396f3e/WebLayer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 892, 273, 2618, 1847, 273, 315, 4803, 2442, 67, 710, 16, 1524, 67, 1019, 16, 1338, 67, 14327, 16, 1338, 67, 3666, 16, 1338, 67, 9499, 3666, 4571, 2442, 6, 3347, 273, 1319, 18, 4025, 12, 4669, 13, 1323, 261, 21, 4672, 1027, 273, 3347, 18, 5754, 476, 1435, 309, 1027, 631, 7036, 30, 898, 394, 5285, 273, 10092, 1435, 394, 5285, 18, 945, 67, 492, 12, 492, 13, 365, 18, 892, 63, 2704, 5285, 18, 710, 65, 273, 394, 5285, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 4672, 365, 18, 892, 273, 2618, 1847, 273, 315, 4803, 2442, 67, 710, 16, 1524, 67, 1019, 16, 1338, 67, 14327, 16, 1338, 67, 3666, 16, 1338, 67, 9499, 3666, 4571, 2442, 6, 3347, 273, 1319, 18, 4025, 12, 4669, 13, 1323, 261, 21, 4672, 1027, 273, 3347, 18, 5754, 476, 1435, 309, 1027, 631, 7036, 30, 898, 394, 5285, 273, 10092, 1435, 394, 5285, 18, 945, 67, 492, 12, 492, 13, 365, 18, 892, 63, 2704, 5285, 18, 710, 65, 273, 394, 5285, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
def test07_EnvRemoveAndRename(self):
def test08_EnvRemoveAndRename(self):
def test07_EnvRemoveAndRename(self): if not self.env: return
02ec8a6bc5174b4725b144ea32bc810ca238d4fa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/02ec8a6bc5174b4725b144ea32bc810ca238d4fa/test_basics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6840, 67, 3491, 3288, 1876, 16019, 12, 2890, 4672, 309, 486, 365, 18, 3074, 30, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 6840, 67, 3491, 3288, 1876, 16019, 12, 2890, 4672, 309, 486, 365, 18, 3074, 30, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try: import profile
try: from profile import Profile
def _profile(): try: import profile except ImportError: print >>sys.stderr, "Could not import profile module!" return try: prof = profile.Profile() prof = prof.runctx('main(*parse_arguments())', globals(), {}) except SystemExit: pass prof.dump_stats('profile.out') return # Use the pstats statistical browser. This is made unnecessarily # difficult because the whole browser is wrapped in an # if __name__=='__main__' clause. try: import pstats except ImportError: log.error("Could not import pstats -- skipping browser") try: pstats_pyfile = os.path.splitext(pstats.__file__)[0]+'.py' sys.argv = ['pstats.py', 'profile.out'] print execfile(pstats_pyfile, {'__name__':'__main__'}) except: print 'Could not run the pstats browser' print 'Profiling output is in "profile.out"'
5d6bcb2be94a45c7d30f850d8083ca4aa45acab3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5d6bcb2be94a45c7d30f850d8083ca4aa45acab3/cli.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 5040, 13332, 775, 30, 628, 3042, 1930, 11357, 1335, 11308, 30, 1172, 1671, 9499, 18, 11241, 16, 315, 4445, 486, 1930, 3042, 1605, 4442, 327, 775, 30, 9214, 273, 3042, 18, 4029, 1435, 9214, 273, 9214, 18, 2681, 5900, 2668, 5254, 30857, 2670, 67, 7099, 10756, 2187, 10941, 9334, 2618, 13, 1335, 25454, 30, 1342, 9214, 18, 8481, 67, 5296, 2668, 5040, 18, 659, 6134, 327, 225, 468, 2672, 326, 293, 5296, 610, 376, 1706, 4748, 18, 225, 1220, 353, 7165, 16209, 21513, 468, 3122, 17551, 2724, 326, 7339, 4748, 353, 5805, 316, 392, 468, 309, 1001, 529, 972, 18920, 972, 5254, 7250, 6591, 18, 775, 30, 1930, 293, 5296, 1335, 11308, 30, 613, 18, 1636, 2932, 4445, 486, 1930, 293, 5296, 1493, 14195, 4748, 7923, 775, 30, 293, 5296, 67, 2074, 768, 273, 1140, 18, 803, 18, 4939, 408, 12, 84, 5296, 16186, 768, 972, 25146, 20, 3737, 10332, 2074, 11, 2589, 18, 19485, 273, 10228, 84, 5296, 18, 2074, 2187, 296, 5040, 18, 659, 3546, 1172, 1196, 768, 12, 84, 5296, 67, 2074, 768, 16, 13666, 972, 529, 7250, 2497, 972, 5254, 7250, 6792, 1335, 30, 1172, 296, 4445, 486, 1086, 326, 293, 5296, 4748, 11, 225, 1172, 296, 27012, 4973, 876, 353, 316, 315, 5040, 18, 659, 5187, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 5040, 13332, 775, 30, 628, 3042, 1930, 11357, 1335, 11308, 30, 1172, 1671, 9499, 18, 11241, 16, 315, 4445, 486, 1930, 3042, 1605, 4442, 327, 775, 30, 9214, 273, 3042, 18, 4029, 1435, 9214, 273, 9214, 18, 2681, 5900, 2668, 5254, 30857, 2670, 67, 7099, 10756, 2187, 10941, 9334, 2618, 13, 1335, 25454, 30, 1342, 9214, 18, 8481, 67, 5296, 2668, 5040, 18, 659, 6134, 327, 225, 468, 2672, 326, 293, 5296, 610, 376, 1706, 4748, 18, 225, 1220, 353, 7165, 16209, 21513, 468, 3122, 17551, 2724, 326, 7339, 4748, 353, 5805, 316, 392, 468, 309, 1001, 529, 972, 18920, 972, 5254, 7250, 6591, 18, 775, 30, 1930, 293, 5296, 1335, 11308, 30, 613, 18, 1636, 2932, 2 ]
return ( ext, self._utranslate(msg)) def _utranslate(self, msg): context = aq_inner(self.context) return context.utranslate(msg, domain="collective.plonefinder")
context = aq_inner(self.context) return context.translate(msg, domain="collective.plonefinder")
def ul_content_types_infos (self, mediaupload): """ return some content types infos depending on mediaupload type mediaupload could be 'image', 'video', 'audio' or any extension like '*.doc' """ context = aq_inner(self.context) ext = '*.*;' msg = u'Choose files to upload' if mediaupload == 'image' : ext = '*.jpg;*.jpeg;*.gif;*.png;' msg = u'Choose images to upload' elif mediaupload == 'video' : ext = '*.flv;*.avi;*.wmv;*.mpg;' msg = u'Choose video files to upload' elif mediaupload == 'audio' : ext = '*.mp3;*.wav;*.ogg;*.mp4;*.wma;*.aif;' msg = u'Choose audio files to upload' else : ext = mediaupload msg = u'Choose file for upload : ' + ext # XXX fixme : the _ (SiteMessageFactory) doesn't work #return ( ext, _(msg)) return ( ext, self._utranslate(msg))
c2974a3aaa5def9528fc291ed30519c23bc94720 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9052/c2974a3aaa5def9528fc291ed30519c23bc94720/finder_upload.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7493, 67, 1745, 67, 2352, 67, 18227, 261, 2890, 16, 3539, 6327, 4672, 3536, 327, 2690, 913, 1953, 10626, 8353, 603, 3539, 6327, 618, 3539, 6327, 3377, 506, 296, 2730, 2187, 296, 9115, 2187, 296, 11509, 11, 578, 1281, 2710, 3007, 19962, 2434, 11, 3536, 819, 273, 279, 85, 67, 7872, 12, 2890, 18, 2472, 13, 1110, 273, 14609, 4509, 4359, 1234, 273, 582, 11, 24529, 1390, 358, 3617, 11, 309, 3539, 6327, 422, 296, 2730, 11, 294, 1110, 273, 19962, 14362, 31, 11146, 14423, 31, 11146, 13905, 31, 11146, 6446, 4359, 1234, 273, 582, 11, 24529, 4602, 358, 3617, 11, 1327, 3539, 6327, 422, 296, 9115, 11, 294, 1110, 273, 19962, 2242, 90, 31, 11146, 69, 522, 31, 11146, 91, 17509, 31, 11146, 1291, 75, 4359, 1234, 273, 582, 11, 24529, 6191, 1390, 358, 3617, 11, 1327, 3539, 6327, 422, 296, 11509, 11, 294, 1110, 273, 19962, 1291, 23, 31, 11146, 24801, 31, 11146, 23972, 31, 11146, 1291, 24, 31, 11146, 91, 2540, 31, 11146, 69, 430, 4359, 1234, 273, 582, 11, 24529, 7447, 1390, 358, 3617, 11, 469, 294, 1110, 273, 3539, 6327, 1234, 273, 582, 11, 24529, 585, 364, 3617, 294, 296, 397, 1110, 225, 468, 11329, 2917, 3501, 294, 326, 389, 261, 4956, 1079, 1733, 13, 3302, 1404, 1440, 468, 2463, 261, 1110, 16, 389, 12, 3576, 3719, 327, 261, 1110, 16, 365, 6315, 89, 13929, 12, 3576, 3719, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7493, 67, 1745, 67, 2352, 67, 18227, 261, 2890, 16, 3539, 6327, 4672, 3536, 327, 2690, 913, 1953, 10626, 8353, 603, 3539, 6327, 618, 3539, 6327, 3377, 506, 296, 2730, 2187, 296, 9115, 2187, 296, 11509, 11, 578, 1281, 2710, 3007, 19962, 2434, 11, 3536, 819, 273, 279, 85, 67, 7872, 12, 2890, 18, 2472, 13, 1110, 273, 14609, 4509, 4359, 1234, 273, 582, 11, 24529, 1390, 358, 3617, 11, 309, 3539, 6327, 422, 296, 2730, 11, 294, 1110, 273, 19962, 14362, 31, 11146, 14423, 31, 11146, 13905, 31, 11146, 6446, 4359, 1234, 273, 582, 11, 24529, 4602, 358, 3617, 11, 1327, 3539, 6327, 422, 296, 9115, 11, 294, 1110, 273, 19962, 2242, 90, 31, 11146, 69, 522, 2 ]
'UNICODE': ('ref/strings', 'encodings unicode TYPES STRING'),
'UNICODE': ('ref/strings', 'encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPES'),
def writedocs(dir, pkgpath='', done=None): """Write out HTML documentation for all modules in a directory tree.""" if done is None: done = {} for file in os.listdir(dir): path = os.path.join(dir, file) if ispackage(path): writedocs(path, pkgpath + file + '.', done) elif os.path.isfile(path): modname = inspect.getmodulename(path) if modname: if modname == '__init__': modname = pkgpath[:-1] # remove trailing period else: modname = pkgpath + modname if modname not in done: done[modname] = 1 writedoc(modname)
75f2fef7a72402f7608264e0f256819e7f2c5b29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/75f2fef7a72402f7608264e0f256819e7f2c5b29/pydoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 329, 22280, 12, 1214, 16, 3475, 803, 2218, 2187, 2731, 33, 7036, 4672, 3536, 3067, 596, 3982, 7323, 364, 777, 4381, 316, 279, 1867, 2151, 12123, 309, 2731, 353, 599, 30, 2731, 273, 2618, 364, 585, 316, 1140, 18, 1098, 1214, 12, 1214, 4672, 589, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 585, 13, 309, 353, 5610, 12, 803, 4672, 2518, 329, 22280, 12, 803, 16, 3475, 803, 397, 585, 397, 2611, 16, 2731, 13, 1327, 1140, 18, 803, 18, 291, 768, 12, 803, 4672, 16037, 273, 5334, 18, 588, 1711, 332, 1069, 12, 803, 13, 309, 16037, 30, 309, 16037, 422, 4940, 2738, 972, 4278, 16037, 273, 3475, 803, 10531, 17, 21, 65, 468, 1206, 7341, 3879, 469, 30, 16037, 273, 3475, 803, 397, 16037, 309, 16037, 486, 316, 2731, 30, 2731, 63, 1711, 529, 65, 273, 404, 2518, 329, 504, 12, 1711, 529, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2518, 329, 22280, 12, 1214, 16, 3475, 803, 2218, 2187, 2731, 33, 7036, 4672, 3536, 3067, 596, 3982, 7323, 364, 777, 4381, 316, 279, 1867, 2151, 12123, 309, 2731, 353, 599, 30, 2731, 273, 2618, 364, 585, 316, 1140, 18, 1098, 1214, 12, 1214, 4672, 589, 273, 1140, 18, 803, 18, 5701, 12, 1214, 16, 585, 13, 309, 353, 5610, 12, 803, 4672, 2518, 329, 22280, 12, 803, 16, 3475, 803, 397, 585, 397, 2611, 16, 2731, 13, 1327, 1140, 18, 803, 18, 291, 768, 12, 803, 4672, 16037, 273, 5334, 18, 588, 1711, 332, 1069, 12, 803, 13, 309, 16037, 30, 309, 16037, 422, 4940, 2738, 972, 4278, 16037, 273, 3475, 803, 10531, 17, 21, 65, 468, 2 ]
runfail(command)
run(command)
def create_any_object(pid): command = OSDCommand().set_create(pid) command.attr_build(OSDAttr(ATTR_GET, CUR_CMD_ATTR_PG, CCAP_OID, \ CCAP_OID_LEN)) attr = run(command) return ntohll(attr.val)
252a7e17c8cc59b5c8fc2bda44307ecec26b1d21 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11094/252a7e17c8cc59b5c8fc2bda44307ecec26b1d21/test-collection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 67, 2273, 67, 1612, 12, 6610, 4672, 1296, 273, 5932, 40, 2189, 7675, 542, 67, 2640, 12, 6610, 13, 1296, 18, 1747, 67, 3510, 12, 4618, 40, 3843, 12, 12043, 67, 3264, 16, 4706, 67, 19473, 67, 12043, 67, 18679, 16, 16525, 2203, 67, 12945, 16, 521, 16525, 2203, 67, 12945, 67, 13017, 3719, 1604, 273, 1086, 12, 3076, 13, 327, 290, 869, 76, 2906, 12, 1747, 18, 1125, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 67, 18679, 16, 16525, 2203, 67, 12945, 16, 521, 16525, 2203, 67, 12945, 67, 13017, 3719, 1604, 273, 1086, 12, 3076, 13, 327, 290, 869, 76, 2906, 12, 1747, 18, 1125, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
sage: for i in range(10): G.add_vertex(name=i)
sage: G.add_vertices(range(10)) Graph on 10 vertices
def add_path(self, vertices): """ Adds a cycle to the graph with the given vertices. If the vertices are already present, only the edges are added.
8876590b467e53206ef240a7504b67e554522ae4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8876590b467e53206ef240a7504b67e554522ae4/graph.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 803, 12, 2890, 16, 6928, 4672, 3536, 15605, 279, 8589, 358, 326, 2667, 598, 326, 864, 6928, 18, 971, 326, 6928, 854, 1818, 3430, 16, 1338, 326, 5231, 854, 3096, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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12, 2890, 16, 6928, 4672, 3536, 15605, 279, 8589, 358, 326, 2667, 598, 326, 864, 6928, 18, 971, 326, 6928, 854, 1818, 3430, 16, 1338, 326, 5231, 854, 3096, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
import cStringIO s = cStringIO.StringIO()
s = []
def make_table(self,fromlines,tolines,fromdesc='',todesc='',context=False, numlines=5): """Returns HTML table of side by side comparison with change highlights
37a93df12625acb7635b8d1d2f949000f6eba0b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/37a93df12625acb7635b8d1d2f949000f6eba0b0/difflib.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2121, 12, 2890, 16, 2080, 3548, 16, 3490, 1465, 16, 2080, 5569, 2218, 2187, 88, 369, 742, 2218, 2187, 2472, 33, 8381, 16, 818, 3548, 33, 25, 4672, 3536, 1356, 3982, 1014, 434, 4889, 635, 4889, 5826, 598, 2549, 8839, 87, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 2121, 12, 2890, 16, 2080, 3548, 16, 3490, 1465, 16, 2080, 5569, 2218, 2187, 88, 369, 742, 2218, 2187, 2472, 33, 8381, 16, 818, 3548, 33, 25, 4672, 3536, 1356, 3982, 1014, 434, 4889, 635, 4889, 5826, 598, 2549, 8839, 87, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
value = self._value
if value is None: value = self._value
def menu(self, size=None, height=None, showid=0, additional=[], sort_on=None, **conditions): ''' Render a form <select> list for this property.
5b1813e3f3108a95ebc7661eae8787addf7d4e2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/5b1813e3f3108a95ebc7661eae8787addf7d4e2e/templating.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 12, 2890, 16, 963, 33, 7036, 16, 2072, 33, 7036, 16, 2405, 350, 33, 20, 16, 3312, 22850, 6487, 1524, 67, 265, 33, 7036, 16, 2826, 6381, 4672, 9163, 6987, 279, 646, 411, 4025, 34, 666, 364, 333, 1272, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3824, 12, 2890, 16, 963, 33, 7036, 16, 2072, 33, 7036, 16, 2405, 350, 33, 20, 16, 3312, 22850, 6487, 1524, 67, 265, 33, 7036, 16, 2826, 6381, 4672, 9163, 6987, 279, 646, 411, 4025, 34, 666, 364, 333, 1272, 18, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
gps,gps,\
iStart,iStop,\
def queryDB(self,gps=None,window=int(30)): """ Takes two arguments the gps time as an integer and the window to search around this time with default to 30 seconds. It returns a dictionary variable assesible via X["ifo"] which will be a list of [flag,version,start,stop,active] """ try: dbSocket=self.__createRawCursor__() except: self.__connectDB__() dbSocket=self.__createRawCursor__() results=dict() for table in self.ifoList: results[table]=list() iStart=int(gps)-int(window) iStop=int(gps)+int(window) commandString=\ "select * from %s where\ (((start<=%i) and (stop >= %i)) or\
573aadf480fc5908360cf32dead51191be975ef4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/573aadf480fc5908360cf32dead51191be975ef4/fu_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 2290, 12, 2890, 16, 75, 1121, 33, 7036, 16, 5668, 33, 474, 12, 5082, 3719, 30, 3536, 23004, 2795, 1775, 326, 20985, 813, 487, 392, 3571, 471, 326, 2742, 358, 1623, 6740, 333, 813, 598, 805, 358, 5196, 3974, 18, 2597, 1135, 279, 3880, 2190, 1551, 281, 1523, 3970, 1139, 9614, 20299, 11929, 1492, 903, 506, 279, 666, 434, 306, 6420, 16, 1589, 16, 1937, 16, 5681, 16, 3535, 65, 225, 3536, 775, 30, 1319, 4534, 33, 2890, 16186, 2640, 4809, 6688, 972, 1435, 1335, 30, 365, 16186, 3612, 2290, 972, 1435, 1319, 4534, 33, 2890, 16186, 2640, 4809, 6688, 972, 1435, 1686, 33, 1576, 1435, 364, 1014, 316, 365, 18, 20299, 682, 30, 1686, 63, 2121, 65, 33, 1098, 1435, 277, 1685, 33, 474, 12, 75, 1121, 24950, 474, 12, 5668, 13, 277, 4947, 33, 474, 12, 75, 1121, 27921, 474, 12, 5668, 13, 1296, 780, 18206, 315, 4025, 380, 628, 738, 87, 1625, 64, 261, 12443, 1937, 32, 5095, 77, 13, 471, 261, 5681, 1545, 738, 77, 3719, 578, 64, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 843, 2290, 12, 2890, 16, 75, 1121, 33, 7036, 16, 5668, 33, 474, 12, 5082, 3719, 30, 3536, 23004, 2795, 1775, 326, 20985, 813, 487, 392, 3571, 471, 326, 2742, 358, 1623, 6740, 333, 813, 598, 805, 358, 5196, 3974, 18, 2597, 1135, 279, 3880, 2190, 1551, 281, 1523, 3970, 1139, 9614, 20299, 11929, 1492, 903, 506, 279, 666, 434, 306, 6420, 16, 1589, 16, 1937, 16, 5681, 16, 3535, 65, 225, 3536, 775, 30, 1319, 4534, 33, 2890, 16186, 2640, 4809, 6688, 972, 1435, 1335, 30, 365, 16186, 3612, 2290, 972, 1435, 1319, 4534, 33, 2890, 16186, 2640, 4809, 6688, 972, 1435, 1686, 33, 1576, 1435, 364, 1014, 316, 365, 18, 20299, 682, 30, 1686, 63, 2121, 2 ]
disk=['tap:qcow:%s,xvda1,w'] vif = [ 'bridge=br%s,mac=%s' ] memory=%i vcpus=%i root="/dev/xvda1" extra='xencons=tty' '''%(kernel, ramdisk, image, bridge, macAddr, memory, cores)
'''%(kernel, ramdisk)
def createXenConfig(self, vmName, image, macAddr, bridge, memory, cores, hints, id): fn = os.path.join("/tmp", vmName) vmType = hints.get('vmtype', self.defaultVmType) print 'starting vm with type: ', vmType bootstr = '' if vmType == 'pvgrub': # FIXME: untested, requires Xen 3.3 bootstr = '''
787afd97a19dbc056f066117a0e80a968ac780eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5161/787afd97a19dbc056f066117a0e80a968ac780eb/xenpv.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 752, 60, 275, 809, 12, 2890, 16, 4268, 461, 16, 1316, 16, 5318, 3178, 16, 10105, 16, 3778, 16, 15355, 16, 13442, 16, 612, 4672, 2295, 273, 1140, 18, 803, 18, 5701, 2932, 19, 5645, 3113, 4268, 461, 13, 4268, 559, 273, 13442, 18, 588, 2668, 3489, 723, 2187, 365, 18, 1886, 22143, 559, 13, 1172, 296, 18526, 4268, 598, 618, 30, 2265, 4268, 559, 4835, 701, 273, 875, 309, 4268, 559, 422, 296, 25224, 3197, 373, 4278, 468, 9852, 30, 640, 88, 3149, 16, 4991, 1139, 275, 890, 18, 23, 4835, 701, 273, 9163, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4268, 559, 273, 13442, 18, 588, 2668, 3489, 723, 2187, 365, 18, 1886, 22143, 559, 13, 1172, 296, 18526, 4268, 598, 618, 30, 2265, 4268, 559, 4835, 701, 273, 875, 309, 4268, 559, 422, 296, 25224, 3197, 373, 4278, 468, 9852, 30, 640, 88, 3149, 16, 4991, 1139, 275, 890, 18, 23, 4835, 701, 273, 9163, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
raise SyntaxError("duplicate argument '%s' in function definition" % arg.name)
raise SyntaxError("duplicate argument '%s' in function definition" % name)
def __init__(self, space, func, isLambda, class_name, mod): self.module = mod if isLambda: name = "<lambda>" else: assert isinstance(func, ast.Function) name = func.name # Find duplicated arguments. argnames = {} for arg in func.argnames: if isinstance(arg, ast.AssName): if arg.name in argnames: raise SyntaxError("duplicate argument '%s' in function definition" % arg.name) argnames[arg.name] = 1 elif isinstance(arg, ast.AssTuple): for name in arg.getArgNames(): if name in argnames: raise SyntaxError("duplicate argument '%s' in function definition" % arg.name) argnames[name] = 1 if 'None' in argnames: raise SyntaxError('assignment to None is not allowed')
6f7b2eb5b9bf7bb68086caefab3cd8ce5156db31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/6f7b2eb5b9bf7bb68086caefab3cd8ce5156db31/pycodegen.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3476, 16, 1326, 16, 353, 12025, 16, 667, 67, 529, 16, 681, 4672, 365, 18, 2978, 273, 681, 309, 353, 12025, 30, 508, 273, 3532, 14661, 2984, 469, 30, 1815, 1549, 12, 644, 16, 3364, 18, 2083, 13, 508, 273, 1326, 18, 529, 468, 4163, 16975, 1775, 18, 1501, 1973, 273, 2618, 364, 1501, 316, 1326, 18, 297, 1600, 753, 30, 309, 1549, 12, 3175, 16, 3364, 18, 2610, 461, 4672, 309, 1501, 18, 529, 316, 1501, 1973, 30, 1002, 18453, 2932, 17342, 1237, 1995, 87, 11, 316, 445, 2379, 6, 738, 508, 13, 1501, 1973, 63, 3175, 18, 529, 65, 273, 404, 1327, 1549, 12, 3175, 16, 3364, 18, 2610, 9038, 4672, 364, 508, 316, 1501, 18, 588, 4117, 1557, 13332, 309, 508, 316, 1501, 1973, 30, 1002, 18453, 2932, 17342, 1237, 1995, 87, 11, 316, 445, 2379, 6, 738, 508, 13, 1501, 1973, 63, 529, 65, 273, 404, 309, 296, 7036, 11, 316, 1501, 1973, 30, 1002, 18453, 2668, 12960, 358, 599, 353, 486, 2935, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 3476, 16, 1326, 16, 353, 12025, 16, 667, 67, 529, 16, 681, 4672, 365, 18, 2978, 273, 681, 309, 353, 12025, 30, 508, 273, 3532, 14661, 2984, 469, 30, 1815, 1549, 12, 644, 16, 3364, 18, 2083, 13, 508, 273, 1326, 18, 529, 468, 4163, 16975, 1775, 18, 1501, 1973, 273, 2618, 364, 1501, 316, 1326, 18, 297, 1600, 753, 30, 309, 1549, 12, 3175, 16, 3364, 18, 2610, 461, 4672, 309, 1501, 18, 529, 316, 1501, 1973, 30, 1002, 18453, 2932, 17342, 1237, 1995, 87, 11, 316, 445, 2379, 6, 738, 508, 13, 1501, 1973, 63, 3175, 18, 529, 65, 273, 404, 1327, 1549, 12, 3175, 16, 3364, 18, 2610, 9038, 2 ]
towrite = "hello, world\n"
towrite = b"hello, world\n"
def test_file(self): import time, rfc822, socket h = urllib2.FileHandler() o = h.parent = MockOpener()
4fead076f64e4ca974f7b8fbab47c4adeda9d2d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/4fead076f64e4ca974f7b8fbab47c4adeda9d2d9/test_urllib2.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 768, 12, 2890, 4672, 1930, 813, 16, 16590, 24532, 16, 2987, 366, 273, 11527, 22, 18, 28942, 1435, 320, 273, 366, 18, 2938, 273, 7867, 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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 768, 12, 2890, 4672, 1930, 813, 16, 16590, 24532, 16, 2987, 366, 273, 11527, 22, 18, 28942, 1435, 320, 273, 366, 18, 2938, 273, 7867, 3817, 708, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
exts.append( Extension("itertools", ["itertoolsmodule.c"]) )
def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
aee60ebe47fc679ae2c2eb07a53e154e977f0bf7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/aee60ebe47fc679ae2c2eb07a53e154e977f0bf7/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 2941, 6134, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 6702, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 6702, 6134, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5966, 67, 6400, 12, 2890, 4672, 468, 7693, 716, 342, 13640, 19, 3729, 353, 3712, 1399, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 12083, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 2941, 6134, 527, 67, 1214, 67, 869, 67, 1098, 12, 2890, 18, 9576, 18, 6702, 67, 8291, 16, 1173, 13640, 19, 3729, 19, 6702, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
u"%s - %d" % (name, self.GetCount(name)))
u"%s - %d" % (name, self._open.get(name, 0))) self._open[name] = self._open.get(name, 0) + 1
def PutItemOnShelf(self, shelfid): """Put an item on the shelf @param shelfid: id of the ShelfItem to open
2875f4e5101473250cc46cf390c2d34f4fb7fccf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3530/2875f4e5101473250cc46cf390c2d34f4fb7fccf/iface.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4399, 1180, 1398, 1555, 19079, 12, 2890, 16, 699, 19079, 350, 4672, 3536, 6426, 392, 761, 603, 326, 699, 19079, 632, 891, 699, 19079, 350, 30, 612, 434, 326, 2638, 19079, 1180, 358, 1696, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4399, 1180, 1398, 1555, 19079, 12, 2890, 16, 699, 19079, 350, 4672, 3536, 6426, 392, 761, 603, 326, 699, 19079, 632, 891, 699, 19079, 350, 30, 612, 434, 326, 2638, 19079, 1180, 358, 1696, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
a permutation group G. The ordering is that given by GAP.
a permutation group `G`. The ordering is that given by GAP.
def conjugacy_classes_representatives(self): """ Returns a complete list of representatives of conjugacy classes in a permutation group G. The ordering is that given by GAP. EXAMPLES:: sage: G = PermutationGroup([[(1,2),(3,4)], [(1,2,3,4)]]) sage: cl = G.conjugacy_classes_representatives(); cl [(), (2,4), (1,2)(3,4), (1,2,3,4), (1,3)(2,4)] sage: cl[3] in G True :: sage: G = SymmetricGroup(5) sage: G.conjugacy_classes_representatives () [(), (1,2), (1,2)(3,4), (1,2,3), (1,2,3)(4,5), (1,2,3,4), (1,2,3,4,5)] AUTHORS:
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, 10550, 637, 3505, 67, 4701, 67, 28205, 8785, 12, 2890, 4672, 3536, 2860, 279, 3912, 666, 434, 2406, 8785, 434, 10550, 637, 3505, 3318, 316, 279, 17440, 1041, 1375, 43, 8338, 1021, 9543, 353, 716, 864, 635, 611, 2203, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 611, 273, 13813, 9245, 1114, 3816, 63, 12, 21, 16, 22, 3631, 12, 23, 16, 24, 13, 6487, 306, 12, 21, 16, 22, 16, 23, 16, 24, 25887, 5717, 272, 410, 30, 927, 273, 611, 18, 591, 78, 637, 3505, 67, 4701, 67, 28205, 8785, 5621, 927, 306, 9334, 261, 22, 16, 24, 3631, 261, 21, 16, 22, 21433, 23, 16, 24, 3631, 261, 21, 16, 22, 16, 23, 16, 24, 3631, 261, 21, 16, 23, 21433, 22, 16, 24, 25887, 272, 410, 30, 927, 63, 23, 65, 316, 611, 1053, 225, 493, 225, 272, 410, 30, 611, 273, 10042, 6899, 1114, 12, 25, 13, 272, 410, 30, 611, 18, 591, 78, 637, 3505, 67, 4701, 67, 28205, 8785, 1832, 306, 9334, 261, 21, 16, 22, 3631, 261, 21, 16, 22, 21433, 23, 16, 24, 3631, 261, 21, 16, 22, 16, 23, 3631, 261, 21, 16, 22, 16, 23, 21433, 24, 16, 25, 3631, 261, 21, 16, 22, 16, 23, 16, 24, 3631, 261, 21, 16, 22, 16, 23, 16, 24, 16, 25, 25887, 225, 12790, 14006, 30, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10550, 637, 3505, 67, 4701, 67, 28205, 8785, 12, 2890, 4672, 3536, 2860, 279, 3912, 666, 434, 2406, 8785, 434, 10550, 637, 3505, 3318, 316, 279, 17440, 1041, 1375, 43, 8338, 1021, 9543, 353, 716, 864, 635, 611, 2203, 18, 225, 5675, 8900, 11386, 2866, 225, 272, 410, 30, 611, 273, 13813, 9245, 1114, 3816, 63, 12, 21, 16, 22, 3631, 12, 23, 16, 24, 13, 6487, 306, 12, 21, 16, 22, 16, 23, 16, 24, 25887, 5717, 272, 410, 30, 927, 273, 611, 18, 591, 78, 637, 3505, 67, 4701, 67, 28205, 8785, 5621, 927, 306, 9334, 261, 22, 16, 24, 3631, 261, 21, 16, 22, 21433, 23, 16, 24, 3631, 261, 21, 16, 22, 16, 23, 2 ]
return self._DictIterator(2,self)
return self._DictIterator(2)
def itervalues(self): """ obj.itervalues() -> an iterator over the values of obj ordered by self.field_order """ return self._DictIterator(2,self)
579d2b0d74c64f5c9a73587dd87d4cda3aafef04 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/579d2b0d74c64f5c9a73587dd87d4cda3aafef04/MythBase.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24607, 12, 2890, 4672, 3536, 1081, 18, 2165, 2372, 1435, 317, 392, 2775, 1879, 326, 924, 434, 1081, 5901, 635, 365, 18, 1518, 67, 1019, 3536, 327, 365, 6315, 5014, 3198, 12, 22, 13, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 24607, 12, 2890, 4672, 3536, 1081, 18, 2165, 2372, 1435, 317, 392, 2775, 1879, 326, 924, 434, 1081, 5901, 635, 365, 18, 1518, 67, 1019, 3536, 327, 365, 6315, 5014, 3198, 12, 22, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if not check_group(node)
if not check_group(node):
def check_group(node): if node.get('groups'): groups = node.get('groups').split(',') can_see = False access_pool = self.pool.get('ir.model.access') for group in groups: can_see = can_see or access_pool.check_groups(cr, user, group) if can_see: break if not can_see: node.set('invisible', '1') if 'attrs' in node.attrib: del(node.attrib['attrs']) #avoid making field visible later del(node.attrib['groups']) return can_see
ed15d62ef5774df129160534c2a212db9c95aefc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/ed15d62ef5774df129160534c2a212db9c95aefc/orm.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1655, 12, 2159, 4672, 309, 756, 18, 588, 2668, 4650, 11, 4672, 3252, 273, 756, 18, 588, 2668, 4650, 16063, 4939, 12, 2187, 6134, 848, 67, 5946, 273, 1083, 2006, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 18, 3860, 6134, 364, 1041, 316, 3252, 30, 848, 67, 5946, 273, 848, 67, 5946, 578, 2006, 67, 6011, 18, 1893, 67, 4650, 12, 3353, 16, 729, 16, 1041, 13, 309, 848, 67, 5946, 30, 898, 309, 486, 848, 67, 5946, 30, 756, 18, 542, 2668, 267, 8613, 2187, 296, 21, 6134, 309, 296, 7039, 11, 316, 756, 18, 14588, 30, 1464, 12, 2159, 18, 14588, 3292, 7039, 19486, 468, 842, 839, 10480, 652, 6021, 5137, 1464, 12, 2159, 18, 14588, 3292, 4650, 19486, 327, 848, 67, 5946, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 866, 67, 1655, 12, 2159, 4672, 309, 756, 18, 588, 2668, 4650, 11, 4672, 3252, 273, 756, 18, 588, 2668, 4650, 16063, 4939, 12, 2187, 6134, 848, 67, 5946, 273, 1083, 2006, 67, 6011, 273, 365, 18, 6011, 18, 588, 2668, 481, 18, 2284, 18, 3860, 6134, 364, 1041, 316, 3252, 30, 848, 67, 5946, 273, 848, 67, 5946, 578, 2006, 67, 6011, 18, 1893, 67, 4650, 12, 3353, 16, 729, 16, 1041, 13, 309, 848, 67, 5946, 30, 898, 309, 486, 848, 67, 5946, 30, 756, 18, 542, 2668, 267, 8613, 2187, 296, 21, 6134, 309, 296, 7039, 11, 316, 756, 18, 14588, 30, 1464, 12, 2159, 18, 14588, 3292, 7039, 19486, 468, 842, 839, 10480, 652, 2 ]