rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
sequencelengths
256
256
attention_mask
sequencelengths
256
256
labels
sequencelengths
128
128
def make_classes(filename, class_text, superclass = None, namespace = 'core', add_constructor_overloads = False, superclass_aterm = None):
def make_classes(filename, class_text, superclass = None, namespace = 'core', add_constructor_overloads = False, superclass_aterm = None, generate_is_functions = False):
def make_classes(filename, class_text, superclass = None, namespace = 'core', add_constructor_overloads = False, superclass_aterm = None): classes = parse_classes(class_text, superclass, use_base_class_name = True) # skip the classes with a namespace qualifier (they are defined elsewhere) classes = [c for c in classes if c.qualifier() == ''] class_definitions = [c.class_inline_definition(namespace, True, add_constructor_overloads) for c in classes] if path(filename).isdir(): for i in range(len(class_definitions)): fname = path(filename).normcase() / ('%s.h' % classes[i].name()) text = class_definitions[i] insert_text_in_file(fname, text, 'generated class %s' % classes[i].name()) else: ctext = '\n'.join(class_definitions) if superclass != None and superclass_aterm != None: text = Class(superclass_aterm, '%s()' % superclass, 'class %s' % superclass, superclass = None, use_base_class_name = False).class_inline_definition(namespace, True, add_constructor_overloads) # TODO: this code should be generated in a cleaner way text = re.sub('check_term', 'check_rule', text) ctext = text + ctext insert_text_in_file(filename, ctext, 'generated classes')
5ed2a19ec2a0549e3e5846be6cbf059eee0cdf07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1522/5ed2a19ec2a0549e3e5846be6cbf059eee0cdf07/generate_classes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1221, 67, 4701, 12, 3459, 16, 667, 67, 955, 16, 12098, 273, 599, 16, 1981, 273, 296, 3644, 2187, 527, 67, 12316, 67, 1643, 17135, 273, 1083, 16, 12098, 67, 270, 1035, 273, 599, 16, 2103, 67, 291, 67, 10722, 273, 1083, 4672, 3318, 273, 1109, 67, 4701, 12, 1106, 67, 955, 16, 12098, 16, 999, 67, 1969, 67, 1106, 67, 529, 273, 1053, 13, 225, 468, 2488, 326, 3318, 598, 279, 1981, 12327, 261, 451, 402, 854, 2553, 25795, 13, 3318, 273, 306, 71, 364, 276, 316, 3318, 309, 276, 18, 28157, 1435, 422, 875, 65, 225, 667, 67, 13314, 273, 306, 71, 18, 1106, 67, 10047, 67, 6907, 12, 4937, 16, 1053, 16, 527, 67, 12316, 67, 1643, 17135, 13, 364, 276, 316, 3318, 65, 225, 309, 589, 12, 3459, 2934, 291, 1214, 13332, 364, 277, 316, 1048, 12, 1897, 12, 1106, 67, 13314, 3719, 30, 5299, 273, 589, 12, 3459, 2934, 7959, 3593, 1435, 342, 7707, 9, 87, 18, 76, 11, 738, 3318, 63, 77, 8009, 529, 10756, 977, 273, 667, 67, 13314, 63, 77, 65, 2243, 67, 955, 67, 267, 67, 768, 12, 12749, 16, 977, 16, 296, 11168, 667, 738, 87, 11, 738, 3318, 63, 77, 8009, 529, 10756, 469, 30, 276, 955, 273, 2337, 82, 10332, 5701, 12, 1106, 67, 13314, 13, 309, 12098, 480, 599, 471, 12098, 67, 270, 1035, 480, 599, 30, 977, 273, 1659, 12, 9565, 1106, 67, 270, 1035, 16, 1995, 87, 11866, 738, 12098, 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, 1221, 67, 4701, 12, 3459, 16, 667, 67, 955, 16, 12098, 273, 599, 16, 1981, 273, 296, 3644, 2187, 527, 67, 12316, 67, 1643, 17135, 273, 1083, 16, 12098, 67, 270, 1035, 273, 599, 16, 2103, 67, 291, 67, 10722, 273, 1083, 4672, 3318, 273, 1109, 67, 4701, 12, 1106, 67, 955, 16, 12098, 16, 999, 67, 1969, 67, 1106, 67, 529, 273, 1053, 13, 225, 468, 2488, 326, 3318, 598, 279, 1981, 12327, 261, 451, 402, 854, 2553, 25795, 13, 3318, 273, 306, 71, 364, 276, 316, 3318, 309, 276, 18, 28157, 1435, 422, 875, 65, 225, 667, 67, 13314, 273, 306, 71, 18, 1106, 67, 10047, 67, 6907, 12, 4937, 16, 1053, 16, 527, 67, 12316, 2 ]
result = str(self)
result = unicode(self)
def gedcom(self): """ Return GEDCOM code for this line and all of its sub-lines """ result = str(self) for e in self.children_lines(): result += '\n' + e.gedcom() return result
2676f19fbbbabb51ef234a342e5a7a6ac612ff24 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14621/2676f19fbbbabb51ef234a342e5a7a6ac612ff24/simplepyged.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23036, 12, 2890, 4672, 3536, 2000, 611, 2056, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23036, 12, 2890, 4672, 3536, 2000, 611, 2056, 4208, 981, 364, 333, 980, 471, 777, 434, 2097, 720, 17, 3548, 3536, 563, 273, 5252, 12, 2890, 13, 364, 425, 316, 365, 18, 5906, 67, 3548, 13332, 563, 1011, 2337, 82, 11, 397, 425, 18, 23739, 1435, 327, 563, 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 ]
assert len(old.dbxrefs) == len(new.dbxrefs) assert Set(old.dbxrefs) == Set(new.dbxrefs)
if len(old.dbxrefs) > 0 and len(new.dbxrefs) > 0 : assert len(old.dbxrefs) == len(new.dbxrefs) assert Set(old.dbxrefs) == Set(new.dbxrefs)
def compare_records(old, new) : """Compare two SeqRecord or DBSeqRecord objects""" #Sequence: compare_sequences(old.seq, new.seq) #Basics: assert old.id == new.id assert old.name == new.name assert old.description == new.description #database cross references: assert len(old.dbxrefs) == len(new.dbxrefs) assert Set(old.dbxrefs) == Set(new.dbxrefs) #Should we allow change in order? #Features: assert len(old.features) == len(new.features) for old_f, new_f in zip(old.features, new.features) : compare_features(old_f, new_f) #Annotation: # #TODO - See Bug 2396 for why some annotations are never recorded. #However, we are also seeing some "extra" annotations appearing, #such as 'cross_references', 'dates', 'references', 'data_file_division' # #assert len(old.annotations) == len(new.annotations), \ # "Different annotations\nOld extra: %s\nNew extra: %s" % \ # (Set(old.annotations.keys()).difference(new.annotations.keys()), # Set(new.annotations.keys()).difference(old.annotations.keys())) # #In the short term, just compare any shared keys: for key in Set(old.annotations.keys()).intersection(new.annotations.keys()) : if key == "references" : assert len(old.annotations[key]) == len(new.annotations[key]) for old_r, new_r in zip(old.annotations[key], new.annotations[key]) : compare_references(old_r, new_r) elif type(old.annotations[key]) == type(new.annotations[key]) : assert old.annotations[key] == new.annotations[key] elif isinstance(old.annotations[key], str) \ and isinstance(new.annotations[key], list) : #Any annotation which is a single string gets turned into #a list containing one string by BioSQL at the moment. assert [old.annotations[key]] == new.annotations[key] elif isinstance(old.annotations[key], list) \ and isinstance(new.annotations[key], str) : assert old.annotations[key] == [new.annotations[key]]
f20baedb872711e8ab15883554470ab8e0afdb19 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7167/f20baedb872711e8ab15883554470ab8e0afdb19/test_BioSQL_SeqIO.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3400, 67, 7094, 12, 1673, 16, 394, 13, 294, 3536, 8583, 2795, 14367, 2115, 578, 2383, 6926, 2115, 2184, 8395, 468, 4021, 30, 3400, 67, 17190, 12, 1673, 18, 5436, 16, 394, 18, 5436, 13, 468, 11494, 2102, 30, 1815, 1592, 18, 350, 422, 394, 18, 350, 1815, 1592, 18, 529, 422, 394, 18, 529, 1815, 1592, 18, 3384, 422, 394, 18, 3384, 468, 6231, 6828, 5351, 30, 309, 562, 12, 1673, 18, 1966, 92, 9316, 13, 405, 374, 471, 562, 12, 2704, 18, 1966, 92, 9316, 13, 405, 374, 294, 282, 1815, 562, 12, 1673, 18, 1966, 92, 9316, 13, 422, 562, 12, 2704, 18, 1966, 92, 9316, 13, 1815, 1000, 12, 1673, 18, 1966, 92, 9316, 13, 422, 1000, 12, 2704, 18, 1966, 92, 9316, 13, 468, 14309, 732, 1699, 2549, 316, 1353, 35, 468, 8696, 30, 1815, 562, 12, 1673, 18, 7139, 13, 422, 562, 12, 2704, 18, 7139, 13, 364, 1592, 67, 74, 16, 394, 67, 74, 316, 3144, 12, 1673, 18, 7139, 16, 394, 18, 7139, 13, 294, 3400, 67, 7139, 12, 1673, 67, 74, 16, 394, 67, 74, 13, 225, 468, 3257, 30, 468, 468, 6241, 300, 2164, 16907, 576, 5520, 26, 364, 11598, 2690, 5617, 854, 5903, 16421, 18, 468, 44, 543, 6084, 16, 732, 854, 2546, 2621, 310, 2690, 315, 7763, 6, 5617, 7226, 5968, 16, 468, 87, 2648, 487, 296, 14653, 67, 14353, 2187, 296, 9683, 2187, 296, 14353, 2187, 296, 892, 67, 768, 67, 2892, 1951, 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, 3400, 67, 7094, 12, 1673, 16, 394, 13, 294, 3536, 8583, 2795, 14367, 2115, 578, 2383, 6926, 2115, 2184, 8395, 468, 4021, 30, 3400, 67, 17190, 12, 1673, 18, 5436, 16, 394, 18, 5436, 13, 468, 11494, 2102, 30, 1815, 1592, 18, 350, 422, 394, 18, 350, 1815, 1592, 18, 529, 422, 394, 18, 529, 1815, 1592, 18, 3384, 422, 394, 18, 3384, 468, 6231, 6828, 5351, 30, 309, 562, 12, 1673, 18, 1966, 92, 9316, 13, 405, 374, 471, 562, 12, 2704, 18, 1966, 92, 9316, 13, 405, 374, 294, 282, 1815, 562, 12, 1673, 18, 1966, 92, 9316, 13, 422, 562, 12, 2704, 18, 1966, 92, 9316, 13, 1815, 1000, 12, 1673, 18, 1966, 92, 9316, 2 ]
path = settings.get_path('media', 'text')
path = settings.get('path', 'text')
def medialist(): answer = dict() answer['all'] = [] answer['audio'] = [] answer['video'] = [] answer['txt'] = [] path = settings.get_path('media', 'video') if isdir(path): for f in listdir(path): if f[0] != '.': answer['video'].append(f) path = settings.get_path('media', 'audio') if isdir(path): for f in listdir(path): if f[0] != '.': answer['audio'].append(f) path = settings.get_path('media', 'text') if isdir(path): for f in listdir(path): if f[0] != '.': answer['txt'].append(f) for i, liste in answer.items(): answer[i] = sorted(liste) return sendjson(answer)
51facfeb68610261965ab21601f5f4fb22a22223 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4363/51facfeb68610261965ab21601f5f4fb22a22223/server.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6735, 649, 376, 13332, 5803, 273, 2065, 1435, 5803, 3292, 454, 3546, 273, 5378, 5803, 3292, 11509, 3546, 273, 5378, 5803, 3292, 9115, 3546, 273, 5378, 5803, 3292, 5830, 3546, 273, 5378, 225, 589, 273, 1947, 18, 588, 67, 803, 2668, 5829, 2187, 296, 9115, 6134, 309, 9783, 12, 803, 4672, 364, 284, 316, 13529, 12, 803, 4672, 309, 284, 63, 20, 65, 480, 2611, 30, 5803, 3292, 9115, 29489, 6923, 12, 74, 13, 225, 589, 273, 1947, 18, 588, 67, 803, 2668, 5829, 2187, 296, 11509, 6134, 309, 9783, 12, 803, 4672, 364, 284, 316, 13529, 12, 803, 4672, 309, 284, 63, 20, 65, 480, 2611, 30, 5803, 3292, 11509, 29489, 6923, 12, 74, 13, 225, 589, 273, 1947, 18, 588, 2668, 803, 2187, 296, 955, 6134, 309, 9783, 12, 803, 4672, 364, 284, 316, 13529, 12, 803, 4672, 309, 284, 63, 20, 65, 480, 2611, 30, 5803, 3292, 5830, 29489, 6923, 12, 74, 13, 225, 364, 277, 16, 31614, 316, 5803, 18, 3319, 13332, 5803, 63, 77, 65, 273, 3115, 12, 1098, 73, 13, 225, 327, 1366, 1977, 12, 13490, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6735, 649, 376, 13332, 5803, 273, 2065, 1435, 5803, 3292, 454, 3546, 273, 5378, 5803, 3292, 11509, 3546, 273, 5378, 5803, 3292, 9115, 3546, 273, 5378, 5803, 3292, 5830, 3546, 273, 5378, 225, 589, 273, 1947, 18, 588, 67, 803, 2668, 5829, 2187, 296, 9115, 6134, 309, 9783, 12, 803, 4672, 364, 284, 316, 13529, 12, 803, 4672, 309, 284, 63, 20, 65, 480, 2611, 30, 5803, 3292, 9115, 29489, 6923, 12, 74, 13, 225, 589, 273, 1947, 18, 588, 67, 803, 2668, 5829, 2187, 296, 11509, 6134, 309, 9783, 12, 803, 4672, 364, 284, 316, 13529, 12, 803, 4672, 309, 284, 63, 20, 65, 480, 2611, 30, 5803, 3292, 11509, 29489, 6923, 12, 74, 13, 225, 589, 2 ]
if self.subwidget_list.has_key(name): self.tk.call(self._w, 'invoke', name)
if self.subwidget_list.has_key(name): self.tk.call(self._w, 'invoke', name)
def invoke(self, name):
b0e44d61d9e592e1acd6aa05eac9704ba5776f61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b0e44d61d9e592e1acd6aa05eac9704ba5776f61/Tix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4356, 12, 2890, 16, 508, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, -100, -100, -100, -100, -100, -100, -100 ]
if 'manifest' in err.message: msg = str(err) else:
msg = str(err) if 'manifest' not in msg:
def run_wsgi(self, req):
c826e3de422a2da6f61c440779290c6f4d0691b8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/c826e3de422a2da6f61c440779290c6f4d0691b8/hgweb_mod.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 67, 28539, 12, 2890, 16, 1111, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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1086, 67, 28539, 12, 2890, 16, 1111, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
gateGump.addText( 170, 150, "Trinsic " )
gateGump.addText( 170, 150, "Trinsic" )
def sendGump( char, item ): char.soundeffect( 0x58 ) # noclose, nomove gump gateGump = cGump( 1, 1, 0, 30, 30 ) # trammel gateGump.startPage( 1 ) gateGump.addBackground( 9200, 300, 255 ) gateGump.addText( 40, 40, "Pick your destination: (Trammel)" ) gateGump.addButton( 47, 207, 0xFA5, 0xFA7, 0 ) gateGump.addText( 80, 210, "CANCEL" ) # facets gateGump.addText( 70, 70, "Trammel", 12 ) gateGump.addPageButton( 48, 72, 0x4B9, 0x4BA, 1 ) gateGump.addText( 70, 90, "Felucca" ) gateGump.addPageButton( 48, 95, 0x4B9, 0x4BA, 2 ) gateGump.addText( 70, 110, "Ilshenar" ) gateGump.addPageButton( 48, 115, 0x4B9, 0x4BA, 3 ) # gates gateGump.addText( 170, 70, "Britain" ) gateGump.addButton( 150, 75, 0x837, 0x838, 5 ) gateGump.addText( 170, 90, "Magincia" ) gateGump.addButton( 150, 95, 0x837, 0x838, 6 ) gateGump.addText( 170, 110, "Moonglow" ) gateGump.addButton( 150, 115, 0x837, 0x838, 7 ) gateGump.addText( 170, 130, "Skara Brae" ) gateGump.addButton( 150, 135, 0x837, 0x838, 8 ) gateGump.addText( 170, 150, "Trinsic" ) gateGump.addButton( 150, 155, 0x837, 0x838, 9 ) gateGump.addText( 170, 170, "Vesper" ) gateGump.addButton( 150, 175, 0x837, 0x838, 10 ) gateGump.addText( 170, 190, "Yew" ) gateGump.addButton( 150, 195, 0x837, 0x838, 11 ) gateGump.addText( 170, 210, "Jhelom" ) gateGump.addButton( 150, 215, 0x837, 0x838, 12 ) # felucca gateGump.startPage( 2 ) gateGump.addBackground( 9200, 300, 255 ) gateGump.addText( 40, 40, "Pick your destination: (Felucca)" ) gateGump.addButton( 47, 207, 0xFA5, 0xFA7, 0 ) gateGump.addText( 80, 210, "CANCEL " ) # facets gateGump.addText( 70, 70, "Trammel " ) gateGump.addPageButton( 48, 72, 0x4B9, 0x4BA, 1 ) gateGump.addText( 70, 90, "Felucca ", 12 ) gateGump.addPageButton( 48, 95, 0x4B9, 0x4BA, 2 ) gateGump.addText( 70, 110, "Ilshenar " ) gateGump.addPageButton( 48, 115, 0x4B9, 0x4BA, 3 ) # gates gateGump.addText( 170, 70, "Britain " ) gateGump.addButton( 150, 75, 0x837, 0x838, 13 ) gateGump.addText( 170, 90, "Magincia " ) gateGump.addButton( 150, 95, 0x837, 0x838, 14 ) gateGump.addText( 170, 110, "Moonglow " ) gateGump.addButton( 150, 115, 0x837, 0x838, 15 ) gateGump.addText( 170, 130, "Skara Brae " ) gateGump.addButton( 150, 135, 0x837, 0x838, 16 ) gateGump.addText( 170, 150, "Trinsic " ) gateGump.addButton( 150, 155, 0x837, 0x838, 17 ) gateGump.addText( 170, 170, "Vesper " ) gateGump.addButton( 150, 175, 0x837, 0x838, 18 ) gateGump.addText( 170, 190, "Yew " ) gateGump.addButton( 150, 195, 0x837, 0x838, 19 ) gateGump.addText( 170, 210, "Jhelom " ) gateGump.addButton( 150, 215, 0x837, 0x838, 20 ) # ilshenar gateGump.startPage( 3 ) gateGump.addBackground( 9200, 300, 255 ) gateGump.addText( 40, 40, "Pick your destination: (Ilshenar)" ) gateGump.addButton( 47, 207, 0xFA5, 0xFA7, 0 ) gateGump.addText( 80, 210, "CANCEL " ) # facets gateGump.addText( 70, 70, "Trammel " ) gateGump.addPageButton( 48, 72, 0x4B9, 0x4BA, 1 ) gateGump.addText( 70, 90, "Felucca " ) gateGump.addPageButton( 48, 95, 0x4B9, 0x4BA, 2 ) gateGump.addText( 70, 110, "Ilshenar ", 12 ) gateGump.addPageButton( 48, 115, 0x4B9, 0x4BA, 3 ) # #gates gateGump.addText( 170, 70, "Compassion" ) gateGump.addButton( 150, 75, 0x837, 0x838, 21 ) gateGump.addText( 170, 90, "Honesty" ) gateGump.addButton( 150, 95, 0x837, 0x838, 22 ) gateGump.addText( 170, 110, "Honor" ) gateGump.addButton( 150, 115, 0x837, 0x838, 23 ) gateGump.addText( 170, 130, "Humility" ) gateGump.addButton( 150, 135, 0x837, 0x838, 24 ) gateGump.addText( 170, 150, "Justice" ) gateGump.addButton( 150, 155, 0x837, 0x838, 25 ) gateGump.addText( 170, 170, "Sacrifice" ) gateGump.addButton( 150, 175, 0x837, 0x838, 26 ) gateGump.addText( 170, 190, "Spirituality" ) gateGump.addButton( 150, 195, 0x837, 0x838, 27 ) gateGump.addText( 170, 210, "Valor" ) gateGump.addButton( 150, 215, 0x837, 0x838, 28 ) gateGump.addText( 170, 230, "Chaos" ) gateGump.addButton( 150, 235, 0x837, 0x838, 29 ) # set callback function and its arguments gateGump.setCallback( "moongate.gateCallback" ) # send it gateGump.setArgs( [ item ] ) gateGump.send( char ) # attach tag char.settag( "moongate", 1 )
fa762406a204038e4f2a446679a18b75f632c2ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/fa762406a204038e4f2a446679a18b75f632c2ac/moongate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1366, 43, 2801, 12, 1149, 16, 761, 262, 30, 1149, 18, 87, 465, 536, 74, 386, 12, 374, 92, 8204, 262, 468, 30601, 2061, 16, 12457, 841, 314, 2801, 12611, 43, 2801, 273, 276, 43, 2801, 12, 404, 16, 404, 16, 374, 16, 5196, 16, 5196, 262, 468, 433, 301, 81, 292, 12611, 43, 2801, 18, 1937, 1964, 12, 404, 262, 12611, 43, 2801, 18, 1289, 8199, 12, 2468, 6976, 16, 11631, 16, 4561, 262, 12611, 43, 2801, 18, 1289, 1528, 12, 8063, 16, 8063, 16, 315, 17968, 3433, 2929, 30, 261, 1070, 301, 81, 292, 2225, 262, 12611, 43, 2801, 18, 1289, 3616, 12, 17495, 16, 4200, 27, 16, 374, 92, 2046, 25, 16, 374, 92, 2046, 27, 16, 374, 262, 12611, 43, 2801, 18, 1289, 1528, 12, 8958, 16, 576, 2163, 16, 315, 25268, 6, 262, 468, 21681, 12611, 43, 2801, 18, 1289, 1528, 12, 16647, 16, 16647, 16, 315, 1070, 301, 81, 292, 3113, 2593, 262, 12611, 43, 2801, 18, 1289, 1964, 3616, 12, 9934, 16, 19387, 16, 374, 92, 24, 38, 29, 16, 374, 92, 24, 12536, 16, 404, 262, 12611, 43, 2801, 18, 1289, 1528, 12, 16647, 16, 8566, 16, 315, 42, 292, 89, 952, 69, 6, 262, 12611, 43, 2801, 18, 1289, 1964, 3616, 12, 9934, 16, 16848, 16, 374, 92, 24, 38, 29, 16, 374, 92, 24, 12536, 16, 576, 262, 12611, 43, 2801, 18, 1289, 1528, 12, 16647, 16, 20168, 16, 315, 45, 80, 674, 6804, 6, 262, 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, 1366, 43, 2801, 12, 1149, 16, 761, 262, 30, 1149, 18, 87, 465, 536, 74, 386, 12, 374, 92, 8204, 262, 468, 30601, 2061, 16, 12457, 841, 314, 2801, 12611, 43, 2801, 273, 276, 43, 2801, 12, 404, 16, 404, 16, 374, 16, 5196, 16, 5196, 262, 468, 433, 301, 81, 292, 12611, 43, 2801, 18, 1937, 1964, 12, 404, 262, 12611, 43, 2801, 18, 1289, 8199, 12, 2468, 6976, 16, 11631, 16, 4561, 262, 12611, 43, 2801, 18, 1289, 1528, 12, 8063, 16, 8063, 16, 315, 17968, 3433, 2929, 30, 261, 1070, 301, 81, 292, 2225, 262, 12611, 43, 2801, 18, 1289, 3616, 12, 17495, 16, 4200, 27, 16, 374, 92, 2046, 25, 16, 374, 92, 2046, 2 ]
except rpmUtils.RpmUtilsError, e: log.exception("Cannot find/open srpm: %s. Error was: %s" % (srpm, str(e))) raise mock.exceptions.Error("Cannot find/open srpm: %s. Error was: %s" % (srpm, str(e)))
except (rpmUtils.RpmUtilsError,), e: raise mock.exception.Error, "Cannot find/open srpm: %s. Error: %s" % (srpm, ''.join(e))
def getSrpmHeader(srpms): ts = rpmUtils.transaction.initReadOnlyTransaction() for srpm in srpms: try: hdr = rpmUtils.miscutils.hdrFromPackage(ts, srpm) except rpmUtils.RpmUtilsError, e: log.exception("Cannot find/open srpm: %s. Error was: %s" % (srpm, str(e))) raise mock.exceptions.Error("Cannot find/open srpm: %s. Error was: %s" % (srpm, str(e))) if hdr[rpm.RPMTAG_SOURCEPACKAGE] != 1: raise mock.exceptions.Error("File is not an srpm: %s." % srpm ) yield hdr
7e6993f7f65419a9e605ea03e72cacafdd32860a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7328/7e6993f7f65419a9e605ea03e72cacafdd32860a/util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1322, 86, 7755, 1864, 12, 11254, 84, 959, 4672, 3742, 273, 25228, 1989, 18, 7958, 18, 2738, 12066, 3342, 1435, 364, 9133, 7755, 316, 9133, 84, 959, 30, 775, 30, 7723, 273, 25228, 1989, 18, 23667, 5471, 18, 16587, 1265, 2261, 12, 3428, 16, 9133, 7755, 13, 1335, 261, 86, 7755, 1989, 18, 54, 7755, 1989, 668, 16, 3631, 425, 30, 1002, 5416, 18, 4064, 18, 668, 16, 315, 4515, 1104, 19, 3190, 9133, 7755, 30, 738, 87, 18, 1068, 30, 738, 87, 6, 738, 261, 11254, 7755, 16, 875, 18, 5701, 12, 73, 3719, 225, 309, 7723, 63, 86, 7755, 18, 54, 52, 6152, 1781, 67, 6537, 19077, 65, 480, 404, 30, 1002, 5416, 18, 11855, 18, 668, 2932, 812, 353, 486, 392, 9133, 7755, 30, 738, 87, 1199, 738, 9133, 7755, 262, 225, 2824, 7723, 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,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 273, 25228, 1989, 18, 7958, 18, 2738, 12066, 3342, 1435, 364, 9133, 7755, 316, 9133, 84, 959, 30, 775, 30, 7723, 273, 25228, 1989, 18, 23667, 5471, 18, 16587, 1265, 2261, 12, 3428, 16, 9133, 7755, 13, 1335, 261, 86, 7755, 1989, 18, 54, 7755, 1989, 668, 16, 3631, 425, 30, 1002, 5416, 18, 4064, 18, 668, 16, 315, 4515, 1104, 19, 3190, 9133, 7755, 30, 738, 87, 18, 1068, 30, 738, 87, 6, 738, 261, 11254, 7755, 16, 875, 18, 5701, 12, 73, 3719, 225, 309, 7723, 63, 86, 7755, 18, 54, 52, 6152, 1781, 67, 6537, 19077, 65, 480, 404, 30, 1002, 5416, 18, 11855, 18, 2 ]
settings = registry.forInterface(IRecensioSettings)
try: settings = registry.forInterface(IRecensioSettings) except KeyError: settings = dict()
def handleTransition(self, info): membership_tool = getToolByName(self.context, 'portal_membership') user = membership_tool.getAuthenticatedMember() mailhost = getToolByName(self.context, 'MailHost') root = getToolByName(self.context, 'portal_url').getPortalObject() mail_info = IMailSchema(root) mail_from = '%s <%s>' % (mail_info.email_from_name, mail_info.email_from_address) user_email = user.getProperty('email')
f46453582494b135951a948be11b1eb2e71d9fd6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10562/f46453582494b135951a948be11b1eb2e71d9fd6/workflow.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 8850, 12, 2890, 16, 1123, 4672, 12459, 67, 6738, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 24386, 67, 19679, 6134, 729, 273, 12459, 67, 6738, 18, 588, 15606, 4419, 1435, 4791, 2564, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 6759, 2594, 6134, 1365, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 24386, 67, 718, 16063, 588, 24395, 921, 1435, 4791, 67, 1376, 273, 6246, 671, 3078, 12, 3085, 13, 4791, 67, 2080, 273, 1995, 87, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1640, 8850, 12, 2890, 16, 1123, 4672, 12459, 67, 6738, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 24386, 67, 19679, 6134, 729, 273, 12459, 67, 6738, 18, 588, 15606, 4419, 1435, 4791, 2564, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 6759, 2594, 6134, 1365, 273, 336, 6364, 5911, 12, 2890, 18, 2472, 16, 296, 24386, 67, 718, 16063, 588, 24395, 921, 1435, 4791, 67, 1376, 273, 6246, 671, 3078, 12, 3085, 13, 4791, 67, 2080, 273, 1995, 87, 23930, 87, 1870, 738, 261, 4408, 67, 1376, 18, 3652, 67, 2080, 67, 529, 16, 4791, 67, 1376, 18, 3652, 67, 2080, 67, 2867, 13, 729, 67, 3652, 273, 729, 18, 588, 1396, 2668, 2 ]
print packages
def finalize_options(self): # By the time finalize_options is called, install.install_lib is # set to the fixed directory, so we set the installdir to install_lib. # The # install_data class uses ('install_data', 'install_dir') instead. self.set_undefined_options('install', ('install_lib', 'install_dir')) install_data.finalize_options(self)
abf4db591ca7da2003b01e4bbcaf319e375af1af /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/abf4db591ca7da2003b01e4bbcaf319e375af1af/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 67, 2116, 12, 2890, 4672, 468, 2525, 326, 813, 12409, 67, 2116, 353, 2566, 16, 3799, 18, 5425, 67, 2941, 353, 468, 444, 358, 326, 5499, 1867, 16, 1427, 732, 444, 326, 3799, 1214, 358, 3799, 67, 2941, 18, 468, 1021, 468, 3799, 67, 892, 667, 4692, 7707, 5425, 67, 892, 2187, 296, 5425, 67, 1214, 6134, 3560, 18, 365, 18, 542, 67, 5978, 67, 2116, 2668, 5425, 2187, 7707, 5425, 67, 2941, 2187, 296, 5425, 67, 1214, 26112, 3799, 67, 892, 18, 30343, 67, 2116, 12, 2890, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12409, 67, 2116, 12, 2890, 4672, 468, 2525, 326, 813, 12409, 67, 2116, 353, 2566, 16, 3799, 18, 5425, 67, 2941, 353, 468, 444, 358, 326, 5499, 1867, 16, 1427, 732, 444, 326, 3799, 1214, 358, 3799, 67, 2941, 18, 468, 1021, 468, 3799, 67, 892, 667, 4692, 7707, 5425, 67, 892, 2187, 296, 5425, 67, 1214, 6134, 3560, 18, 365, 18, 542, 67, 5978, 67, 2116, 2668, 5425, 2187, 7707, 5425, 67, 2941, 2187, 296, 5425, 67, 1214, 26112, 3799, 67, 892, 18, 30343, 67, 2116, 12, 2890, 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 ]
"expected-one-end-tag-but-got-another", {"expectedName": "body", "gotName": node.name})
"end-tag-too-early", {"name": token["name"]}) node = self.tree.openElements.pop() while node.name != token["name"]: node = self.tree.openElements.pop() def endTagHeading(self, token): for item in headingElements: if self.tree.elementInScope(item): self.tree.generateImpliedEndTags()
def endTagBody(self, token): if not self.tree.elementInScope("body"): self.parser.parseError() return elif self.tree.openElements[-1].name != "body": for node in self.tree.openElements[2:]: if node.name not in frozenset(("dd", "dt", "li", "optgroup", "option", "p", "rp", "rt", "tbody", "td", "tfoot", "th", "thead", "tr", "body", "html")): #Not sure this is the correct name for the parse error self.parser.parseError( "expected-one-end-tag-but-got-another", {"expectedName": "body", "gotName": node.name}) break self.parser.phase = self.parser.phases["afterBody"]
7b800000ab5eed9d02fde3c4b884769a0bfbf17a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4487/7b800000ab5eed9d02fde3c4b884769a0bfbf17a/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 2250, 12, 2890, 16, 1147, 4672, 309, 486, 365, 18, 3413, 18, 2956, 382, 3876, 2932, 3432, 6, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 327, 1327, 365, 18, 3413, 18, 3190, 3471, 18919, 21, 8009, 529, 480, 315, 3432, 6877, 364, 756, 316, 365, 18, 3413, 18, 3190, 3471, 63, 22, 30, 14542, 309, 756, 18, 529, 486, 316, 23462, 12, 2932, 449, 3113, 315, 7510, 3113, 315, 549, 3113, 315, 3838, 1655, 3113, 315, 3482, 3113, 315, 84, 3113, 315, 13832, 3113, 315, 3797, 3113, 315, 20779, 3113, 315, 4465, 3113, 315, 88, 10923, 3113, 315, 451, 3113, 315, 24604, 3113, 315, 313, 3113, 315, 3432, 3113, 315, 2620, 6, 3719, 30, 468, 1248, 3071, 333, 353, 326, 3434, 508, 364, 326, 1109, 555, 365, 18, 4288, 18, 2670, 668, 12, 315, 409, 17, 2692, 17, 16431, 17, 2091, 715, 3113, 12528, 529, 6877, 1147, 9614, 529, 11929, 6792, 756, 273, 365, 18, 3413, 18, 3190, 3471, 18, 5120, 1435, 1323, 756, 18, 529, 480, 1147, 9614, 529, 11929, 30, 756, 273, 365, 18, 3413, 18, 3190, 3471, 18, 5120, 1435, 225, 1652, 29765, 21867, 12, 2890, 16, 1147, 4672, 364, 761, 316, 11053, 3471, 30, 309, 365, 18, 3413, 18, 2956, 382, 3876, 12, 1726, 4672, 365, 18, 3413, 18, 7163, 2828, 2092, 1638, 3453, 1435, 898, 365, 18, 4288, 18, 13961, 273, 365, 18, 4288, 18, 844, 3304, 9614, 5205, 2250, 11929, 2, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 29765, 2250, 12, 2890, 16, 1147, 4672, 309, 486, 365, 18, 3413, 18, 2956, 382, 3876, 2932, 3432, 6, 4672, 365, 18, 4288, 18, 2670, 668, 1435, 327, 1327, 365, 18, 3413, 18, 3190, 3471, 18919, 21, 8009, 529, 480, 315, 3432, 6877, 364, 756, 316, 365, 18, 3413, 18, 3190, 3471, 63, 22, 30, 14542, 309, 756, 18, 529, 486, 316, 23462, 12, 2932, 449, 3113, 315, 7510, 3113, 315, 549, 3113, 315, 3838, 1655, 3113, 315, 3482, 3113, 315, 84, 3113, 315, 13832, 3113, 315, 3797, 3113, 315, 20779, 3113, 315, 4465, 3113, 315, 88, 10923, 3113, 315, 451, 3113, 315, 24604, 3113, 315, 313, 3113, 315, 3432, 3113, 315, 2620, 6, 3719, 30, 468, 1248, 2 ]
dec_flags, next_input, decoded_chars = self._snapshot
dec_flags, next_input = self._snapshot
def tell(self): if not self._seekable: raise IOError("underlying stream is not seekable") if not self._telling: raise IOError("telling position disabled by next() call") self.flush() position = self.buffer.tell() decoder = self._decoder if decoder is None or self._snapshot is None: if self._decoded_text: # This should never happen. raise AssertionError("pending decoded text") return position
dbe28e573e5c1227777db9dd630fac7732b81374 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/dbe28e573e5c1227777db9dd630fac7732b81374/io.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 9276, 12, 2890, 4672, 309, 486, 365, 6315, 16508, 429, 30, 1002, 8340, 2932, 9341, 6291, 1407, 353, 486, 6520, 429, 7923, 309, 486, 365, 6315, 88, 1165, 310, 30, 1002, 8340, 2932, 88, 1165, 310, 1754, 5673, 635, 1024, 1435, 745, 7923, 365, 18, 11330, 1435, 1754, 273, 365, 18, 4106, 18, 88, 1165, 1435, 8320, 273, 365, 6315, 21070, 309, 8320, 353, 599, 578, 365, 6315, 11171, 353, 599, 30, 309, 365, 6315, 26646, 67, 955, 30, 468, 1220, 1410, 5903, 5865, 18, 1002, 12068, 2932,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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, 9276, 12, 2890, 4672, 309, 486, 365, 6315, 16508, 429, 30, 1002, 8340, 2932, 9341, 6291, 1407, 353, 486, 6520, 429, 7923, 309, 486, 365, 6315, 88, 1165, 310, 30, 1002, 8340, 2932, 88, 1165, 310, 1754, 5673, 635, 1024, 1435, 745, 7923, 365, 18, 11330, 1435, 1754, 273, 365, 18, 4106, 18, 88, 1165, 1435, 8320, 273, 365, 6315, 21070, 309, 8320, 353, 599, 578, 365, 6315, 11171, 353, 599, 30, 309, 365, 6315, 26646, 67, 955, 30, 468, 1220, 1410, 5903, 5865, 18, 1002, 12068, 2932, 9561, 6383, 977, 7923, 327, 1754, 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 ]
fclose = rffi.llexternal('fopen', [FILEP], rffi.INT)
fclose = rffi.llexternal('fclose', [FILEP], rffi.INT)
def test_opaque_obj_2(self): FILEP = rffi.COpaquePtr('FILE') fopen = rffi.llexternal('fopen', [rffi.CCHARP, rffi.CCHARP], FILEP) fclose = rffi.llexternal('fopen', [FILEP], rffi.INT) tmppath = udir.join('test_ll2ctypes.test_opaque_obj_2') ll_file = fopen(str(tmppath), "w") assert ll_file fclose(ll_file) assert tmppath.check(file=1) #assert not ALLOCATED --- fails, because ll2ctypes misses the # fact that fclose() frees 'll_file'
4e10c6577c9359b4b9185ab131c800c928513946 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/4e10c6577c9359b4b9185ab131c800c928513946/test_ll2ctypes.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 556, 14886, 67, 2603, 67, 22, 12, 2890, 4672, 7527, 52, 273, 436, 1403, 77, 18, 39, 3817, 14886, 5263, 2668, 3776, 6134, 9607, 273, 436, 1403, 77, 18, 80, 4149, 1174, 2668, 74, 3190, 2187, 306, 86, 1403, 77, 18, 39, 7305, 52, 16, 436, 1403, 77, 18, 39, 7305, 52, 6487, 7527, 52, 13, 11099, 273, 436, 1403, 77, 18, 80, 4149, 1174, 2668, 74, 4412, 2187, 306, 3776, 52, 6487, 436, 1403, 77, 18, 3217, 13, 1853, 803, 273, 582, 1214, 18, 5701, 2668, 3813, 67, 2906, 22, 299, 989, 18, 3813, 67, 556, 14886, 67, 2603, 67, 22, 6134, 6579, 67, 768, 273, 9607, 12, 701, 12, 5645, 803, 3631, 315, 91, 7923, 1815, 6579, 67, 768, 11099, 12, 2906, 67, 768, 13, 1815, 1853, 803, 18, 1893, 12, 768, 33, 21, 13, 468, 11231, 486, 7981, 1502, 13890, 9948, 6684, 16, 2724, 6579, 22, 299, 989, 12543, 281, 326, 468, 7682, 5410, 716, 11099, 1435, 284, 5312, 296, 2906, 67, 768, 11, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 556, 14886, 67, 2603, 67, 22, 12, 2890, 4672, 7527, 52, 273, 436, 1403, 77, 18, 39, 3817, 14886, 5263, 2668, 3776, 6134, 9607, 273, 436, 1403, 77, 18, 80, 4149, 1174, 2668, 74, 3190, 2187, 306, 86, 1403, 77, 18, 39, 7305, 52, 16, 436, 1403, 77, 18, 39, 7305, 52, 6487, 7527, 52, 13, 11099, 273, 436, 1403, 77, 18, 80, 4149, 1174, 2668, 74, 4412, 2187, 306, 3776, 52, 6487, 436, 1403, 77, 18, 3217, 13, 1853, 803, 273, 582, 1214, 18, 5701, 2668, 3813, 67, 2906, 22, 299, 989, 18, 3813, 67, 556, 14886, 67, 2603, 67, 22, 6134, 6579, 67, 768, 273, 9607, 12, 701, 12, 5645, 803, 3631, 315, 91, 2 ]
@PYan[def ]@PYax[foo](bar): @PYan[pass]
@PY[k][def ]@PY[n+nf][foo](@PY[n][bar]): @PY[k][pass]
@PYan[def ]@PYax[foo](bar): @PYan[pass]
4d385e994dd93f663c8e5897bfa9d153388d863a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6148/4d385e994dd93f663c8e5897bfa9d153388d863a/latex.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 632, 16235, 304, 63, 536, 308, 36, 16235, 651, 63, 11351, 29955, 3215, 4672, 632, 16235, 304, 63, 5466, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 632, 16235, 304, 63, 536, 308, 36, 16235, 651, 63, 11351, 29955, 3215, 4672, 632, 16235, 304, 63, 5466, 65, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
implement this functionality
implement this functionality.
def gens(self): """ Placeholder function to return generators of an elliptic curve: derived classes such as EllipticCurve_rational_field implement this functionality
4f0514b45a47cdf92a6d781876aa0dd2f3653f54 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/4f0514b45a47cdf92a6d781876aa0dd2f3653f54/ell_generic.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 314, 773, 12, 2890, 4672, 3536, 13022, 4505, 445, 358, 327, 13327, 434, 392, 415, 549, 21507, 8882, 30, 10379, 3318, 4123, 487, 10426, 549, 21507, 9423, 67, 7034, 287, 67, 1518, 2348, 333, 14176, 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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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 ]
if not modname:
if not modname or '.' in modname:
def search_function(encoding): # Cache lookup entry = _cache.get(encoding, _unknown) if entry is not _unknown: return entry # Import the module: # # First try to find an alias for the normalized encoding # name and lookup the module using the aliased name, then try to # lookup the module using the standard import scheme, i.e. first # try in the encodings package, then at top-level. # norm_encoding = normalize_encoding(encoding) aliased_encoding = _aliases.get(norm_encoding) or \ _aliases.get(norm_encoding.replace('.', '_')) if aliased_encoding is not None: modnames = [aliased_encoding, norm_encoding] else: modnames = [norm_encoding] for modname in modnames: if not modname: continue try: mod = __import__('encodings.' + modname, globals(), locals(), _import_tail) except ImportError: pass else: break else: mod = None try: getregentry = mod.getregentry except AttributeError: # Not a codec module mod = None if mod is None: # Cache misses _cache[encoding] = None return None # Now ask the module for the registry entry entry = getregentry() if not isinstance(entry, codecs.CodecInfo): if not 4 <= len(entry) <= 7: raise CodecRegistryError,\ 'module "%s" (%s) failed to register' % \ (mod.__name__, mod.__file__) if not callable(entry[0]) or \ not callable(entry[1]) or \ (entry[2] is not None and not callable(entry[2])) or \ (entry[3] is not None and not callable(entry[3])) or \ (len(entry) > 4 and entry[4] is not None and not callable(entry[4])) or \ (len(entry) > 5 and entry[5] is not None and not callable(entry[5])): raise CodecRegistryError,\ 'incompatible codecs in module "%s" (%s)' % \ (mod.__name__, mod.__file__) if len(entry)<7 or entry[6] is None: entry += (None,)*(6-len(entry)) + (mod.__name__.split(".", 1)[1],) entry = codecs.CodecInfo(*entry) # Cache the codec registry entry _cache[encoding] = entry # Register its aliases (without overwriting previously registered # aliases) try: codecaliases = mod.getaliases() except AttributeError: pass else: for alias in codecaliases: if not _aliases.has_key(alias): _aliases[alias] = modname # Return the registry entry return entry
eb533353de86df950bf09fa515cb66ec9bd40906 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/eb533353de86df950bf09fa515cb66ec9bd40906/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 915, 12, 5999, 4672, 225, 468, 4379, 3689, 1241, 273, 389, 2493, 18, 588, 12, 5999, 16, 389, 8172, 13, 309, 1241, 353, 486, 389, 8172, 30, 327, 1241, 225, 468, 6164, 326, 1605, 30, 468, 468, 5783, 775, 358, 1104, 392, 2308, 364, 326, 5640, 2688, 468, 508, 471, 3689, 326, 1605, 1450, 326, 19218, 508, 16, 1508, 775, 358, 468, 3689, 326, 1605, 1450, 326, 4529, 1930, 4355, 16, 277, 18, 73, 18, 1122, 468, 775, 316, 326, 24118, 2181, 16, 1508, 622, 1760, 17, 2815, 18, 468, 4651, 67, 5999, 273, 3883, 67, 5999, 12, 5999, 13, 19218, 67, 5999, 273, 389, 13831, 18, 588, 12, 7959, 67, 5999, 13, 578, 521, 389, 13831, 18, 588, 12, 7959, 67, 5999, 18, 2079, 2668, 1093, 16, 4427, 3719, 309, 19218, 67, 5999, 353, 486, 599, 30, 681, 1973, 273, 306, 18083, 8905, 67, 5999, 16, 4651, 67, 5999, 65, 469, 30, 681, 1973, 273, 306, 7959, 67, 5999, 65, 364, 16037, 316, 681, 1973, 30, 309, 486, 16037, 578, 2611, 316, 16037, 30, 1324, 775, 30, 681, 273, 1001, 5666, 972, 2668, 1331, 369, 899, 1093, 397, 16037, 16, 10941, 9334, 8985, 9334, 389, 5666, 67, 13101, 13, 1335, 11308, 30, 1342, 469, 30, 898, 469, 30, 681, 273, 599, 225, 775, 30, 336, 1574, 4099, 273, 681, 18, 588, 1574, 4099, 1335, 6394, 30, 468, 2288, 279, 9196, 1605, 681, 273, 599, 225, 309, 681, 353, 599, 30, 468, 4379, 12543, 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, 1623, 67, 915, 12, 5999, 4672, 225, 468, 4379, 3689, 1241, 273, 389, 2493, 18, 588, 12, 5999, 16, 389, 8172, 13, 309, 1241, 353, 486, 389, 8172, 30, 327, 1241, 225, 468, 6164, 326, 1605, 30, 468, 468, 5783, 775, 358, 1104, 392, 2308, 364, 326, 5640, 2688, 468, 508, 471, 3689, 326, 1605, 1450, 326, 19218, 508, 16, 1508, 775, 358, 468, 3689, 326, 1605, 1450, 326, 4529, 1930, 4355, 16, 277, 18, 73, 18, 1122, 468, 775, 316, 326, 24118, 2181, 16, 1508, 622, 1760, 17, 2815, 18, 468, 4651, 67, 5999, 273, 3883, 67, 5999, 12, 5999, 13, 19218, 67, 5999, 273, 389, 13831, 18, 588, 12, 7959, 67, 5999, 13, 578, 521, 389, 2 ]
if operation == model[iter][2]: iterc = model.iter_children(iter)
if operation == model[__iter][2]: iterc = model.iter_children(__iter)
def get_operation_options(self, operation): """For the given operation ID, return a list of the selected option IDs.""" r = [] model = self.tree_store.get_model() iter = model.get_iter_root() while iter: #print "debug: get_operation_options: iter id = '%s', value='%s'" % (model[iter][2], model[iter][1]) if operation == model[iter][2]: iterc = model.iter_children(iter) if None == iterc: #print "debug: no children" return None while iterc: tuple = (model[iterc][2], model[iterc][1]) #print "debug: get_operation_options: tuple = '%s'" % (tuple,) r.append(tuple) iterc = model.iter_next(iterc) return r iter = model.iter_next(iter) return None
9d492cae068d04dccea7b824cceed2984729452a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7853/9d492cae068d04dccea7b824cceed2984729452a/GUI.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7624, 67, 2116, 12, 2890, 16, 1674, 4672, 3536, 1290, 326, 864, 1674, 1599, 16, 327, 279, 666, 434, 326, 3170, 1456, 7115, 12123, 436, 273, 5378, 938, 273, 365, 18, 3413, 67, 2233, 18, 588, 67, 2284, 1435, 1400, 273, 938, 18, 588, 67, 2165, 67, 3085, 1435, 1323, 1400, 30, 468, 1188, 315, 4148, 30, 336, 67, 7624, 67, 2116, 30, 1400, 612, 273, 1995, 87, 2187, 460, 28713, 87, 4970, 738, 261, 2284, 63, 2165, 6362, 22, 6487, 938, 63, 2165, 6362, 21, 5717, 309, 1674, 422, 938, 63, 972, 2165, 6362, 22, 14542, 1400, 71, 273, 938, 18, 2165, 67, 5906, 12, 972, 2165, 13, 309, 599, 422, 1400, 71, 30, 468, 1188, 315, 4148, 30, 1158, 2325, 6, 327, 599, 1323, 1400, 71, 30, 3193, 273, 261, 2284, 63, 2165, 71, 6362, 22, 6487, 938, 63, 2165, 71, 6362, 21, 5717, 468, 1188, 315, 4148, 30, 336, 67, 7624, 67, 2116, 30, 3193, 273, 1995, 87, 4970, 738, 261, 8052, 16, 13, 436, 18, 6923, 12, 8052, 13, 1400, 71, 273, 938, 18, 2165, 67, 4285, 12, 2165, 71, 13, 327, 436, 1400, 273, 938, 18, 2165, 67, 4285, 12, 2165, 13, 327, 599, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 7624, 67, 2116, 12, 2890, 16, 1674, 4672, 3536, 1290, 326, 864, 1674, 1599, 16, 327, 279, 666, 434, 326, 3170, 1456, 7115, 12123, 436, 273, 5378, 938, 273, 365, 18, 3413, 67, 2233, 18, 588, 67, 2284, 1435, 1400, 273, 938, 18, 588, 67, 2165, 67, 3085, 1435, 1323, 1400, 30, 468, 1188, 315, 4148, 30, 336, 67, 7624, 67, 2116, 30, 1400, 612, 273, 1995, 87, 2187, 460, 28713, 87, 4970, 738, 261, 2284, 63, 2165, 6362, 22, 6487, 938, 63, 2165, 6362, 21, 5717, 309, 1674, 422, 938, 63, 972, 2165, 6362, 22, 14542, 1400, 71, 273, 938, 18, 2165, 67, 5906, 12, 972, 2165, 13, 309, 599, 422, 1400, 71, 30, 468, 2 ]
e.g. splitFrag("abc and splitFrag("abcdef") = ("abcdef", "")
e.g. splitFragP("abc and splitFragP("abcdef") = ("abcdef", "")
def splitFragP(uriref, punct=0): """split a URI reference before the fragment Punctuation is kept. e.g. splitFrag("abc#def") = ("abc", "#def") and splitFrag("abcdef") = ("abcdef", "") """ i = rfind(uriref, "#") if i>= 0: return uriref[:i], uriref[i:] else: return uriref, ''
86683d9ef5aace84c7bcf2172757a06b9f3fbc5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/86683d9ef5aace84c7bcf2172757a06b9f3fbc5e/uripath.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1416, 19509, 52, 12, 295, 577, 74, 16, 25580, 33, 20, 4672, 3536, 4939, 279, 3699, 2114, 1865, 326, 5481, 225, 453, 15726, 353, 16555, 18, 225, 425, 18, 75, 18, 1416, 19509, 2932, 18947, 7, 536, 7923, 273, 7566, 18947, 3113, 6619, 536, 7923, 471, 1416, 19509, 2932, 28953, 7923, 273, 7566, 28953, 3113, 1408, 13, 3536, 277, 273, 31257, 12, 295, 577, 74, 16, 6619, 7923, 309, 277, 34, 33, 374, 30, 327, 8896, 577, 74, 10531, 77, 6487, 8896, 577, 74, 63, 77, 26894, 469, 30, 327, 8896, 577, 74, 16, 875, 282, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1416, 19509, 52, 12, 295, 577, 74, 16, 25580, 33, 20, 4672, 3536, 4939, 279, 3699, 2114, 1865, 326, 5481, 225, 453, 15726, 353, 16555, 18, 225, 425, 18, 75, 18, 1416, 19509, 2932, 18947, 7, 536, 7923, 273, 7566, 18947, 3113, 6619, 536, 7923, 471, 1416, 19509, 2932, 28953, 7923, 273, 7566, 28953, 3113, 1408, 13, 3536, 277, 273, 31257, 12, 295, 577, 74, 16, 6619, 7923, 309, 277, 34, 33, 374, 30, 327, 8896, 577, 74, 10531, 77, 6487, 8896, 577, 74, 63, 77, 26894, 469, 30, 327, 8896, 577, 74, 16, 875, 282, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
'move_created_ids': [], 'state': 'draft'
'move_lines2' : [], 'move_created_ids' : [], 'move_created_ids2' : [], 'product_lines' : [], 'state': 'draft', 'picking_id': False
def copy(self, cr, uid, id, default=None,context=None): if not default: default = {} default.update({ 'name': self.pool.get('ir.sequence').get(cr, uid, 'mrp.production'), 'move_lines' : [], 'move_created_ids': [], 'state': 'draft' }) return super(mrp_production, self).copy(cr, uid, id, default, context)
bb5d7cf5725bb6642838fc70717cbdc8b540588c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/bb5d7cf5725bb6642838fc70717cbdc8b540588c/mrp.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 2472, 33, 7036, 4672, 309, 486, 805, 30, 805, 273, 2618, 805, 18, 2725, 12590, 296, 529, 4278, 365, 18, 6011, 18, 588, 2668, 481, 18, 6178, 16063, 588, 12, 3353, 16, 4555, 16, 296, 81, 13832, 18, 17273, 19899, 296, 8501, 67, 3548, 11, 294, 5378, 16, 296, 8501, 67, 3548, 22, 11, 294, 5378, 16, 296, 8501, 67, 4824, 67, 2232, 11, 294, 5378, 16, 296, 8501, 67, 4824, 67, 2232, 22, 11, 294, 5378, 16, 296, 5896, 67, 3548, 11, 294, 5378, 16, 296, 2019, 4278, 296, 17153, 2187, 296, 11503, 310, 67, 350, 4278, 1083, 289, 13, 327, 2240, 12, 81, 13832, 67, 17273, 16, 365, 2934, 3530, 12, 3353, 16, 4555, 16, 612, 16, 805, 16, 819, 13, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1610, 12, 2890, 16, 4422, 16, 4555, 16, 612, 16, 805, 33, 7036, 16, 2472, 33, 7036, 4672, 309, 486, 805, 30, 805, 273, 2618, 805, 18, 2725, 12590, 296, 529, 4278, 365, 18, 6011, 18, 588, 2668, 481, 18, 6178, 16063, 588, 12, 3353, 16, 4555, 16, 296, 81, 13832, 18, 17273, 19899, 296, 8501, 67, 3548, 11, 294, 5378, 16, 296, 8501, 67, 3548, 22, 11, 294, 5378, 16, 296, 8501, 67, 4824, 67, 2232, 11, 294, 5378, 16, 296, 8501, 67, 4824, 67, 2232, 22, 11, 294, 5378, 16, 296, 5896, 67, 3548, 11, 294, 5378, 16, 296, 2019, 4278, 296, 17153, 2187, 296, 11503, 310, 67, 350, 4278, 1083, 289, 13, 327, 2240, 12, 2 ]
logLines = file(log, "r").readlines()[-500:] combined = "".join(logLines)
if not isinstance(log, unicode): log = unicode(log, sys.getfilesystemencoding()) f = codecs.open(log, encoding='utf-8', mode="r", errors="ignore") combined = u"".join(f.readlines()[-500:])
def __init__(self, parent, ID, logList, size=wx.DefaultSize, pos=wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE):
2446672daf9ede71c5d70b4c3e2391f912b821ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/2446672daf9ede71c5d70b4c3e2391f912b821ae/Util.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 1599, 16, 613, 682, 16, 963, 33, 27226, 18, 1868, 1225, 16, 949, 33, 27226, 18, 1868, 2555, 16, 2154, 33, 27226, 18, 5280, 67, 2565, 18683, 67, 15066, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 982, 16, 1599, 16, 613, 682, 16, 963, 33, 27226, 18, 1868, 1225, 16, 949, 33, 27226, 18, 1868, 2555, 16, 2154, 33, 27226, 18, 5280, 67, 2565, 18683, 67, 15066, 4672, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
cr.execute('select uid,res_type,res_id from wkf_instance where id=%s', (instance_id,))
cr.execute('select %s,res_type,res_id from wkf_instance where id=%s', (uid, instance_id,))
def trg_trigger(self, uid, res_type, res_id, cr): cr.execute('select instance_id from wkf_triggers where res_id=%s and model=%s', (res_id,res_type)) res = cr.fetchall() for (instance_id,) in res: cr.execute('select uid,res_type,res_id from wkf_instance where id=%s', (instance_id,)) ident = cr.fetchone() instance.update(cr, instance_id, ident)
64ffe9c6801181ede11dc388610990930d1a0160 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/64ffe9c6801181ede11dc388610990930d1a0160/wkf_service.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27229, 67, 10668, 12, 2890, 16, 4555, 16, 400, 67, 723, 16, 400, 67, 350, 16, 4422, 4672, 4422, 18, 8837, 2668, 4025, 791, 67, 350, 628, 26987, 74, 67, 313, 8060, 1625, 400, 67, 350, 5095, 87, 471, 938, 5095, 87, 2187, 261, 455, 67, 350, 16, 455, 67, 723, 3719, 400, 273, 4422, 18, 5754, 454, 1435, 364, 261, 1336, 67, 350, 16, 13, 316, 400, 30, 4422, 18, 8837, 2668, 4025, 738, 87, 16, 455, 67, 723, 16, 455, 67, 350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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 27229, 67, 10668, 12, 2890, 16, 4555, 16, 400, 67, 723, 16, 400, 67, 350, 16, 4422, 4672, 4422, 18, 8837, 2668, 4025, 791, 67, 350, 628, 26987, 74, 67, 313, 8060, 1625, 400, 67, 350, 5095, 87, 471, 938, 5095, 87, 2187, 261, 455, 67, 350, 16, 455, 67, 723, 3719, 400, 273, 4422, 18, 5754, 454, 1435, 364, 261, 1336, 67, 350, 16, 13, 316, 400, 30, 4422, 18, 8837, 2668, 4025, 738, 87, 16, 455, 67, 723, 16, 455, 67, 350, 628, 26987, 74, 67, 1336, 1625, 612, 5095, 87, 2187, 261, 1911, 16, 791, 67, 350, 16, 3719, 3390, 273, 4422, 18, 5754, 476, 1435, 791, 18, 2725, 12, 3353, 16, 791, 67, 350, 2 ]
ordiff = " or different atomtypes"
ordiff = " or different atomtype"
def bad_valence_explanation(self): #bruce 050806; revised 060703 ####@@@@ use more widely """Return the reason self's valence is bad (as a short text string), or '' if it's not bad. [#e Some callers might want an even shorter string; if so, we'll add an option to ask for that, and perhaps implement it by stripping off " -- " and whatever follows that.] """ # WARNING: keep the code of self.bad_valence() and self.bad_valence_explanation() in sync! bonds = self.bonds if self.element is Singlet: ok = (len(bonds) == 1) return (not ok) and "internal error: open bond with wrong number of bonds" or "" if self.atomtype.numbonds != len(bonds): ok = False return (not ok) and "wrong number of bonds" or "" minv, maxv = self.min_max_actual_valence() # min and max reasonable interpretations of actual valence, based on bond types want_valence = self.atomtype.valence ok = (minv <= want_valence <= maxv) if not ok: if len(self.element.atomtypes) > 1: ordiff = " or different atomtypes" else: ordiff = "" if maxv < want_valence: return "valence too small -- need higher bond orders" + ordiff elif minv > want_valence: return "valence too large -- need lower bond orders" + ordiff else: return "internal error in valence-checking code" else: return "" pass
31348f7eed0f20e9f6c9085a5d3ed19f3d851d70 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/31348f7eed0f20e9f6c9085a5d3ed19f3d851d70/chem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5570, 67, 1125, 802, 67, 338, 15854, 12, 2890, 4672, 468, 2848, 3965, 374, 3361, 3672, 26, 31, 283, 26779, 374, 4848, 27, 4630, 11849, 7, 30989, 30989, 999, 1898, 15481, 2357, 3536, 990, 326, 3971, 365, 1807, 1244, 802, 353, 5570, 261, 345, 279, 3025, 977, 533, 3631, 578, 875, 309, 518, 1807, 486, 5570, 18, 306, 7, 73, 10548, 19932, 4825, 2545, 392, 5456, 19623, 533, 31, 309, 1427, 16, 732, 5614, 527, 392, 1456, 358, 6827, 364, 716, 16, 471, 26282, 2348, 518, 635, 2569, 1382, 3397, 315, 1493, 315, 471, 15098, 13040, 716, 18, 65, 3536, 468, 9744, 30, 3455, 326, 981, 434, 365, 18, 8759, 67, 1125, 802, 1435, 471, 365, 18, 8759, 67, 1125, 802, 67, 338, 15854, 1435, 316, 3792, 5, 15692, 273, 365, 18, 70, 4096, 309, 365, 18, 2956, 353, 348, 310, 1810, 30, 1529, 273, 261, 1897, 12, 70, 4096, 13, 422, 404, 13, 327, 261, 902, 1529, 13, 471, 315, 7236, 555, 30, 1696, 8427, 598, 7194, 1300, 434, 15692, 6, 578, 1408, 309, 365, 18, 7466, 723, 18, 2107, 70, 4096, 480, 562, 12, 70, 4096, 4672, 1529, 273, 1083, 327, 261, 902, 1529, 13, 471, 315, 21530, 1300, 434, 15692, 6, 578, 1408, 1131, 90, 16, 943, 90, 273, 365, 18, 1154, 67, 1896, 67, 18672, 67, 1125, 802, 1435, 468, 1131, 471, 943, 23589, 10634, 1012, 434, 3214, 1244, 802, 16, 2511, 603, 8427, 1953, 2545, 67, 1125, 802, 273, 365, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5570, 67, 1125, 802, 67, 338, 15854, 12, 2890, 4672, 468, 2848, 3965, 374, 3361, 3672, 26, 31, 283, 26779, 374, 4848, 27, 4630, 11849, 7, 30989, 30989, 999, 1898, 15481, 2357, 3536, 990, 326, 3971, 365, 1807, 1244, 802, 353, 5570, 261, 345, 279, 3025, 977, 533, 3631, 578, 875, 309, 518, 1807, 486, 5570, 18, 306, 7, 73, 10548, 19932, 4825, 2545, 392, 5456, 19623, 533, 31, 309, 1427, 16, 732, 5614, 527, 392, 1456, 358, 6827, 364, 716, 16, 471, 26282, 2348, 518, 635, 2569, 1382, 3397, 315, 1493, 315, 471, 15098, 13040, 716, 18, 65, 3536, 468, 9744, 30, 3455, 326, 981, 434, 365, 18, 8759, 67, 1125, 802, 1435, 471, 365, 18, 8759, 2 ]
size = 0
size = default_string_size
def GetValidTypeInfos(typename, items=[]): if typename in internal_types: return internal_types[typename] else: result = type_model.match(typename) if result: values = result.groups() if values[0] == "UNSIGNED" and int(values[1]) in [i * 8 for i in xrange(1, 9)]: typeinfos = ("UNS%s"%values[1], None, "uint%s"%values[1], True) elif values[0] == "INTEGER" and int(values[1]) in [i * 8 for i in xrange(1, 9)]: typeinfos = ("INTEGER%s"%values[1], None, "int%s"%values[1], False) elif values[0] == "REAL" and int(values[1]) in (32, 64): typeinfos = ("%s%s"%(values[0], values[1]), None, "real%s"%values[1], False) elif values[0] == "VISIBLE_STRING": size = default_string_size for item in items: size = max(size, len(item)) if values[1] != "": size = max(size, int(values[1])) typeinfos = ("UNS8", size, "visible_string", False) elif values[0] == "DOMAIN": size = 0 for item in items: size = max(size, len(item)) typeinfos = ("UNS8*", size, "domain", False) elif values[0] == "BOOLEAN": typeinfos = ("UNS8", None, "boolean", False) else: raise ValueError, """!!! %s isn't a valid type for CanFestival."""%typename internal_types[typename] = typeinfos else: raise ValueError, """!!! %s isn't a valid type for CanFestival."""%typename return typeinfos
e95fe99abbb027b82659526ae95b36d566696430 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/116/e95fe99abbb027b82659526ae95b36d566696430/gen_cfile.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 968, 1556, 559, 7655, 12, 12846, 1069, 16, 1516, 33, 8526, 4672, 309, 26735, 316, 2713, 67, 2352, 30, 327, 2713, 67, 2352, 63, 12846, 1069, 65, 469, 30, 563, 273, 618, 67, 2284, 18, 1916, 12, 12846, 1069, 13, 309, 563, 30, 924, 273, 563, 18, 4650, 1435, 309, 924, 63, 20, 65, 422, 315, 2124, 21049, 6, 471, 509, 12, 2372, 63, 21, 5717, 316, 306, 77, 380, 1725, 364, 277, 316, 12314, 12, 21, 16, 2468, 13, 14542, 618, 18227, 273, 7566, 2124, 55, 9, 87, 28385, 2372, 63, 21, 6487, 599, 16, 315, 11890, 9, 87, 28385, 2372, 63, 21, 6487, 1053, 13, 1327, 924, 63, 20, 65, 422, 315, 14217, 6, 471, 509, 12, 2372, 63, 21, 5717, 316, 306, 77, 380, 1725, 364, 277, 316, 12314, 12, 21, 16, 2468, 13, 14542, 618, 18227, 273, 7566, 14217, 9, 87, 28385, 2372, 63, 21, 6487, 599, 16, 315, 474, 9, 87, 28385, 2372, 63, 21, 6487, 1083, 13, 1327, 924, 63, 20, 65, 422, 315, 31052, 6, 471, 509, 12, 2372, 63, 21, 5717, 316, 261, 1578, 16, 5178, 4672, 618, 18227, 273, 7566, 9, 87, 9, 87, 6, 17105, 2372, 63, 20, 6487, 924, 63, 21, 65, 3631, 599, 16, 315, 7688, 9, 87, 28385, 2372, 63, 21, 6487, 1083, 13, 1327, 924, 63, 20, 65, 422, 315, 29588, 67, 5804, 6877, 963, 273, 805, 67, 1080, 67, 1467, 364, 761, 316, 1516, 30, 963, 273, 943, 12, 1467, 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, 968, 1556, 559, 7655, 12, 12846, 1069, 16, 1516, 33, 8526, 4672, 309, 26735, 316, 2713, 67, 2352, 30, 327, 2713, 67, 2352, 63, 12846, 1069, 65, 469, 30, 563, 273, 618, 67, 2284, 18, 1916, 12, 12846, 1069, 13, 309, 563, 30, 924, 273, 563, 18, 4650, 1435, 309, 924, 63, 20, 65, 422, 315, 2124, 21049, 6, 471, 509, 12, 2372, 63, 21, 5717, 316, 306, 77, 380, 1725, 364, 277, 316, 12314, 12, 21, 16, 2468, 13, 14542, 618, 18227, 273, 7566, 2124, 55, 9, 87, 28385, 2372, 63, 21, 6487, 599, 16, 315, 11890, 9, 87, 28385, 2372, 63, 21, 6487, 1053, 13, 1327, 924, 63, 20, 65, 422, 315, 14217, 6, 471, 509, 2 ]
ntext = attr.varType == orange.VarTypes.Discrete and attr.values[val] or val
if attr.varType == orange.VarTypes.Discrete: if val < len(attr.values): ntext = attr.values[val] else: ntext = "?" else: ntext = str(val)
def paint(self, painter): btext = str(self.text()) meth, val = self.master.methods.get(btext, (0, None)) if meth: if meth == 2: ntext = self.master.data.domain[btext].varType == orange.VarTypes.Discrete and "major" or "avg" elif meth < 5: ntext = self.master.indiShorts[meth] elif meth: attr = self.master.data.domain[btext] ntext = attr.varType == orange.VarTypes.Discrete and attr.values[val] or val self.setText(btext + " -> " + ntext) painter.font().setBold(meth) QListBoxPixmap.paint(self, painter) if meth: self.setText(btext)
9a17d29a487dbaadf13f997d2af69a0138ecde83 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/9a17d29a487dbaadf13f997d2af69a0138ecde83/OWImpute.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12574, 12, 2890, 16, 21295, 4672, 324, 955, 273, 609, 12, 2890, 18, 955, 10756, 7917, 16, 1244, 273, 365, 18, 7525, 18, 5163, 18, 588, 12, 70, 955, 16, 261, 20, 16, 599, 3719, 309, 7917, 30, 309, 7917, 422, 576, 30, 290, 955, 273, 365, 18, 7525, 18, 892, 18, 4308, 63, 70, 955, 8009, 1401, 559, 422, 578, 726, 18, 1537, 2016, 18, 1669, 6883, 471, 315, 14019, 6, 578, 315, 14141, 6, 1327, 7917, 411, 1381, 30, 290, 955, 273, 365, 18, 7525, 18, 728, 77, 4897, 87, 63, 27305, 65, 1327, 7917, 30, 1604, 273, 365, 18, 7525, 18, 892, 18, 4308, 63, 70, 955, 65, 309, 1604, 18, 1401, 559, 422, 578, 726, 18, 1537, 2016, 18, 1669, 6883, 30, 309, 1244, 411, 562, 12, 1747, 18, 2372, 4672, 290, 955, 273, 1604, 18, 2372, 63, 1125, 65, 469, 30, 290, 955, 273, 13574, 469, 30, 290, 955, 273, 609, 12, 1125, 13, 365, 18, 542, 1528, 12, 70, 955, 397, 315, 317, 315, 397, 290, 955, 13, 21295, 18, 5776, 7675, 542, 38, 1673, 12, 27305, 13, 2238,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 324, 955, 273, 609, 12, 2890, 18, 955, 10756, 7917, 16, 1244, 273, 365, 18, 7525, 18, 5163, 18, 588, 12, 70, 955, 16, 261, 20, 16, 599, 3719, 309, 7917, 30, 309, 7917, 422, 576, 30, 290, 955, 273, 365, 18, 7525, 18, 892, 18, 4308, 63, 70, 955, 8009, 1401, 559, 422, 578, 726, 18, 1537, 2016, 18, 1669, 6883, 471, 315, 14019, 6, 578, 315, 14141, 6, 1327, 7917, 411, 1381, 30, 290, 955, 273, 365, 18, 7525, 18, 728, 77, 4897, 87, 63, 27305, 65, 1327, 7917, 30, 1604, 273, 365, 18, 7525, 18, 892, 18, 4308, 63, 70, 955, 65, 309, 1604, 18, 1401, 559, 422, 578, 2 ]
verify(inc(1) == 2)
verify(inc(1) == 11)
def adder(y): return global_nest_x + y
251ef9666e44792a71c5f1cb83c5b1f3b110a46f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/251ef9666e44792a71c5f1cb83c5b1f3b110a46f/test_scope.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 264, 12, 93, 4672, 327, 2552, 67, 30953, 67, 92, 397, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 527, 264, 12, 93, 4672, 327, 2552, 67, 30953, 67, 92, 397, 677, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
hit_hints_displayed = 0
def search_pattern(req, p=None, f=None, colls=None, m=None, hit_hints=0): """Searches for pattern 'p' and field 'f' and returns dict of recIDs HitLists per each collection in 'colls'. - Optionally, the function accepts the match type argument 'm'. If it is set (e.g. from advanced search interface), then it performs this kind of matching. If it is not set, then a guess is made. - Calls search_in_bibwords() and/or search_in_bibxxx() functions. - If hit_hints is set, than print lots of hints on current search. Useful for debugging and/or when search gives zero hits. - Called by main().""" ## create result set: results = HitList() results_used = 0 # not-yet-used flag, to be able to circumvent set operations ## if p is not defined, return all hits in given collections: if not p: results_out = {} for coll in colls: results_out[coll] = HitList() results_out[coll]._set = collrecs_cache[coll]._set results_out[coll]._nbhits = collrecs_cache[coll]._nbhits return results_out ## now we are sure to have some p: good. ## create search units: opft_items = create_opft_search_units(req, p, f, m) #req.write("<p>%s" % opft_items) hit_hints_displayed = 0 # did we already displayed some search hint? ## search regardless of collection: for opft_item in opft_items: results_for_opft_item = {} oi, pi, fi, ti = opft_item[0], opft_item[1], opft_item[2], opft_item[3] # firstly, launch search for this pattern item: if ti == 'a' or ti == 'r': # we are doing either direct bibxxx search or phrase search or regexp search results_for_opft_item = search_in_bibxxx(req, pi, fi, ti) elif ti == 'w': # we are doing bibwords search results_for_opft_item = search_in_bibwords(req, pi, fi) else: print_warning(req, "The search type '%s' is not defined." % ti, "Error") return(1) if hit_hints: results_for_opft_item.calculate_nbhits() if results_for_opft_item._nbhits == 0: hit_hints_displayed = 1 text = "Search term <strong>%s</strong>" % pi if fi: text += " inside <em>%s</em> " % fi print_warning(req, "%s did not match any record. Nearest terms are: %s" % (text, create_nearest_words_links(req.args, pi, fi)), "") if dbg: print_warning(req, "Item <strong>%s:%s</strong> gave %d hits." % (fi, pi, results_for_opft_item._nbhits), "") # secondly, apply the set intersect/union/disjunction functions: if dbg: t1 = os.times()[4] if results_used: if oi == '+': results.intersect(results_for_opft_item) elif oi == '-': results.difference(results_for_opft_item) elif oi == '|': results.union(results_for_opft_item) else: print_warning(req, "Invalid set operation %s." % oi, "Error") else: results = results_for_opft_item results_used = 1 if dbg: t2 = os.times()[4] print_warning(req, "Set operation '%s' took %.2f seconds." % (oi, (t2 - t1)), "Profile") ## return all hits if no collection list specified (useful for WebSearch Admin to determine collection ## recID universe): if colls == None: results.calculate_nbhits() return results ## intersect with collection universe: if dbg: t1 = os.times()[4] results_out = {} if colls: for coll in colls: results_out[coll] = HitList() results_out[coll]._set = Numeric.bitwise_and(results._set, collrecs_cache[coll]._set) if dbg: t2 = os.times()[4] print_warning(req, "Intersecting with collection hitlist universe took %.2f seconds." % ((t2 - t1)), "Profile") ## count number of hits: for coll in colls: results_out[coll].calculate_nbhits() if hit_hints and not hit_hints_displayed: if results._nbhits == 0: # pattern not found in any public/private collection: text = """All search terms matched but boolean query returned no hits. Please combine your search terms differently.""" url_args = req.args for opft_item in opft_items: oi, pi, fi, ti = opft_item[0], opft_item[1], opft_item[2], opft_item[3] url_args_new = re.sub(r'(^|\&)p=.*?(\&|$)', r'\1p='+urllib.quote(pi)+r'\2', url_args) url_args_new = re.sub(r'(^|\&)f=.*?(\&|$)', r'\1f='+urllib.quote(fi)+r'\2', url_args_new) text += """<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="%s/search.py?%s">%s</a> - about %s hits""" % \ (weburl, url_args_new, pi, get_word_nbhits(pi, fi)) print_warning(req, text, "") else: # pattern found but perhaps not in the collections chosen by the user: num = 0 for coll in colls: num += results_out[coll]._nbhits if num == 0: # try to search in Home: results_Home = HitList() results_Home._set = Numeric.bitwise_and(results._set, collrecs_cache[cdsname]._set) results_Home.calculate_nbhits() if results_Home._nbhits > 0: # some hits found in Home, so propose this search: url_args = req.args url_args = re.sub(r'(^|\&)cc=.*?(\&|$)', r'\2', url_args) url_args = re.sub(r'(^|\&)c=.*?(\&[^c]+=|$)', r'\2', url_args) url_args = re.sub(r'^\&+', '', url_args) url_args = re.sub(r'\&+$', '', url_args) print_warning(req, """Matches found in other public collections: <a href="%s/search.py?%s">%d hits</a>.""" % (weburl, url_args, results_Home._nbhits), "") else: # no hits found in Home, recommend different search terms: text = """All search terms matched but boolean query returned no hits. Please combine your search terms differently.""" url_args = req.args for opft_item in opft_items: oi, pi, fi, ti = opft_item[0], opft_item[1], opft_item[2], opft_item[3] url_args_new = re.sub(r'(^|\&)p=.*?(\&|$)', r'\1p='+urllib.quote(pi)+r'\2', url_args) url_args_new = re.sub(r'(^|\&)f=.*?(\&|$)', r'\1f='+urllib.quote(fi)+r'\2', url_args_new) text += """<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="%s/search.py?%s">%s</a> - about %s hits""" % \ (weburl, url_args_new, pi, get_word_nbhits(pi, fi)) print_warning(req, text, "") return results_out
f839501b02b6f1b955e60deafa542ab8007124be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/f839501b02b6f1b955e60deafa542ab8007124be/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1623, 67, 4951, 12, 3658, 16, 293, 33, 7036, 16, 284, 33, 7036, 16, 645, 3251, 33, 7036, 16, 312, 33, 7036, 16, 6800, 67, 24598, 33, 20, 4672, 3536, 16294, 364, 1936, 296, 84, 11, 471, 652, 296, 74, 11, 471, 1135, 2065, 434, 1950, 5103, 670, 305, 7432, 1534, 1517, 1849, 316, 296, 1293, 3251, 10332, 300, 20720, 16, 326, 445, 8104, 326, 845, 618, 1237, 296, 81, 10332, 971, 518, 353, 444, 261, 73, 18, 75, 18, 628, 16111, 1623, 1560, 3631, 1508, 518, 11199, 333, 3846, 434, 3607, 18, 225, 971, 518, 353, 486, 444, 16, 1508, 279, 7274, 353, 7165, 18, 300, 23665, 1623, 67, 267, 67, 70, 495, 3753, 1435, 471, 19, 280, 1623, 67, 267, 67, 70, 495, 18310, 1435, 4186, 18, 300, 971, 6800, 67, 24598, 353, 444, 16, 2353, 1172, 328, 6968, 434, 13442, 603, 783, 1623, 18, 225, 19256, 364, 10450, 471, 19, 280, 1347, 1623, 14758, 3634, 11076, 18, 300, 11782, 635, 2774, 1435, 12123, 225, 7541, 752, 563, 444, 30, 1686, 273, 670, 305, 682, 1435, 1686, 67, 3668, 273, 374, 468, 486, 17, 24404, 17, 3668, 2982, 16, 358, 506, 7752, 358, 29951, 616, 444, 5295, 225, 7541, 309, 293, 353, 486, 2553, 16, 327, 777, 11076, 316, 864, 6980, 30, 309, 486, 293, 30, 1686, 67, 659, 273, 2618, 364, 4508, 316, 645, 3251, 30, 1686, 67, 659, 63, 12910, 65, 273, 670, 305, 682, 1435, 1686, 67, 659, 63, 12910, 65, 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, 1623, 67, 4951, 12, 3658, 16, 293, 33, 7036, 16, 284, 33, 7036, 16, 645, 3251, 33, 7036, 16, 312, 33, 7036, 16, 6800, 67, 24598, 33, 20, 4672, 3536, 16294, 364, 1936, 296, 84, 11, 471, 652, 296, 74, 11, 471, 1135, 2065, 434, 1950, 5103, 670, 305, 7432, 1534, 1517, 1849, 316, 296, 1293, 3251, 10332, 300, 20720, 16, 326, 445, 8104, 326, 845, 618, 1237, 296, 81, 10332, 971, 518, 353, 444, 261, 73, 18, 75, 18, 628, 16111, 1623, 1560, 3631, 1508, 518, 11199, 333, 3846, 434, 3607, 18, 225, 971, 518, 353, 486, 444, 16, 1508, 279, 7274, 353, 7165, 18, 300, 23665, 1623, 67, 267, 67, 70, 495, 3753, 1435, 471, 19, 2 ]
Can we handle this without having to add the inline?
def visit_image(self, node): """ Need to intervene in the case of inline images. We need MoinMoin to give us the actual src line to the image and then we can feed this to the default html4css1 writer. NOTE: Since the writer can't "open" this image the scale attribute doesn't work without directly specifying the height or width (or both). TODO: Need to handle figures similarly. Can we handle this without having to add the inline? """ uri = node['uri'].lstrip() if uri.startswith('inline:'): self.process_inline(node, 'uri') # If its not a uri containing a ':' then its probably destined for # wiki space. # elif ':' not in uri: # self.process_wiki_target('inline:%s' % (uri)) html4css1.HTMLTranslator.visit_image(self, node)
140a51a76919d72931a4f49d46229d9f62125389 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/140a51a76919d72931a4f49d46229d9f62125389/rst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3757, 67, 2730, 12, 2890, 16, 756, 4672, 3536, 12324, 358, 1554, 3995, 73, 316, 326, 648, 434, 6370, 4602, 18, 1660, 1608, 490, 885, 49, 885, 358, 8492, 584, 326, 3214, 1705, 980, 358, 326, 1316, 471, 1508, 732, 848, 4746, 333, 358, 326, 805, 1729, 24, 5212, 21, 2633, 18, 5219, 30, 7897, 326, 2633, 848, 1404, 315, 3190, 6, 333, 1316, 326, 3159, 1566, 3302, 1404, 1440, 2887, 5122, 13664, 326, 2072, 578, 1835, 261, 280, 3937, 2934, 225, 2660, 30, 12324, 358, 1640, 4291, 1823, 7281, 715, 18, 3536, 2003, 273, 756, 3292, 1650, 29489, 80, 6406, 1435, 309, 2003, 18, 17514, 1918, 2668, 10047, 2497, 4672, 365, 18, 2567, 67, 10047, 12, 2159, 16, 296, 1650, 6134, 468, 971, 2097, 486, 279, 2003, 4191, 279, 3921, 1508, 2097, 8656, 1570, 1920, 364, 468, 9050, 3476, 18, 468, 1327, 3921, 486, 316, 2003, 30, 468, 365, 18, 2567, 67, 13044, 67, 3299, 2668, 10047, 5319, 87, 11, 738, 261, 1650, 3719, 1729, 24, 5212, 21, 18, 4870, 12233, 18, 11658, 67, 2730, 12, 2890, 16, 756, 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, 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1316, 471, 1508, 732, 848, 4746, 333, 358, 326, 805, 1729, 24, 5212, 21, 2633, 18, 5219, 30, 7897, 326, 2633, 848, 1404, 315, 3190, 6, 333, 1316, 326, 3159, 1566, 3302, 1404, 1440, 2887, 5122, 13664, 326, 2072, 578, 1835, 261, 280, 3937, 2934, 225, 2660, 30, 12324, 358, 1640, 4291, 1823, 7281, 715, 18, 3536, 2003, 273, 756, 3292, 1650, 29489, 80, 6406, 1435, 309, 2003, 18, 17514, 1918, 2668, 10047, 2497, 4672, 365, 18, 2567, 67, 10047, 12, 2159, 2 ]
for i in range(0, len(initial_rooms)):
for rm in rooms_to_delete:
def save_classroom(self, program): """ Steps for saving a classroom: - Find the previous list of resources - Create a new list of resources - Move over resource assignments - Delete old resources """
f3b5b7f97286580553bc413f4a464b43d8cd7ffc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12041/f3b5b7f97286580553bc413f4a464b43d8cd7ffc/resources.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 1106, 13924, 12, 2890, 16, 5402, 4672, 3536, 7780, 1121, 364, 12392, 279, 667, 13924, 30, 300, 282, 4163, 326, 2416, 666, 434, 2703, 300, 282, 1788, 279, 394, 666, 434, 2703, 300, 282, 9933, 1879, 1058, 13610, 300, 282, 2504, 1592, 2703, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1923, 67, 1106, 13924, 12, 2890, 16, 5402, 4672, 3536, 7780, 1121, 364, 12392, 279, 667, 13924, 30, 300, 282, 4163, 326, 2416, 666, 434, 2703, 300, 282, 1788, 279, 394, 666, 434, 2703, 300, 282, 9933, 1879, 1058, 13610, 300, 282, 2504, 1592, 2703, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
button.connect( 'clicked', self.custom_selection_button_clicked)
button.connect('clicked', self.custom_selection_button_clicked, label)
def new( self): if not hasattr( self, 'callback'): self.callback = None
5c7bd2ed7f418e7b0691fe3438c8e724a9d1e731 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12778/5c7bd2ed7f418e7b0691fe3438c8e724a9d1e731/gui.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 12, 365, 4672, 309, 486, 3859, 12, 365, 16, 296, 3394, 11, 4672, 365, 18, 3394, 273, 599, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 394, 12, 365, 4672, 309, 486, 3859, 12, 365, 16, 296, 3394, 11, 4672, 365, 18, 3394, 273, 599, 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 ]
info = grabURL(self.url,"GET")
info = grabURL(self.url,"GET", findHTTPAuth = findHTTPAuth)
def runDownloader(self, retry = False): if retry: pos = self.currentSize try: filehandle = file(self.filename,"r+b") filehandle.seek(pos) except: filehandle = file(self.filename,"w+b") self.currentSize = 0 totalSize = self.totalSize pos = 0 if totalSize > 0: filehandle.seek(totalSize-1) filehandle.write(' ') filehandle.seek(0) info = grabURL(self.url,"GET",pos, findHTTPAuth = findHTTPAuth) if info is None and pos > 0: pos = 0 self.currentSize = 0 info = grabURL(self.url,"GET") if info is None: self.state = "failed" self.reasonFailed = "Could not connect to server" return False else: #print "We don't have any INFO..." info = grabURL(self.url,"GET", findHTTPAuth = findHTTPAuth) if info is None: self.state = "failed" self.reasonFailed = "Could not connect to server" return False
51edeae78af17e160e98e10e9059e971b46b195b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/51edeae78af17e160e98e10e9059e971b46b195b/download.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 4164, 6714, 12, 2890, 16, 3300, 273, 1083, 4672, 309, 3300, 30, 949, 273, 365, 18, 2972, 1225, 775, 30, 585, 4110, 273, 585, 12, 2890, 18, 3459, 10837, 86, 15, 70, 7923, 585, 4110, 18, 16508, 12, 917, 13, 1335, 30, 585, 4110, 273, 585, 12, 2890, 18, 3459, 10837, 91, 15, 70, 7923, 365, 18, 2972, 1225, 273, 374, 24611, 273, 365, 18, 4963, 1225, 949, 273, 374, 309, 24611, 405, 374, 30, 585, 4110, 18, 16508, 12, 4963, 1225, 17, 21, 13, 585, 4110, 18, 2626, 2668, 8624, 585, 4110, 18, 16508, 12, 20, 13, 1123, 273, 11086, 1785, 12, 2890, 18, 718, 10837, 3264, 3113, 917, 16, 1104, 3693, 1730, 273, 1104, 3693, 1730, 13, 309, 1123, 353, 599, 471, 949, 405, 374, 30, 949, 273, 374, 365, 18, 2972, 1225, 273, 374, 1123, 273, 11086, 1785, 12, 2890, 18, 718, 10837, 3264, 3113, 1104, 3693, 1730, 273, 1104, 3693, 1730, 13, 309, 1123, 353, 599, 30, 365, 18, 2019, 273, 315, 7307, 6, 365, 18, 10579, 2925, 273, 315, 4445, 486, 3077, 358, 1438, 6, 327, 1083, 469, 30, 468, 1188, 315, 3218, 2727, 1404, 1240, 1281, 9286, 7070, 1123, 273, 11086, 1785, 12, 2890, 18, 718, 10837, 3264, 3113, 1104, 3693, 1730, 273, 1104, 3693, 1730, 13, 309, 1123, 353, 599, 30, 365, 18, 2019, 273, 315, 7307, 6, 365, 18, 10579, 2925, 273, 315, 4445, 486, 3077, 358, 1438, 6, 327, 1083, 2, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 4164, 6714, 12, 2890, 16, 3300, 273, 1083, 4672, 309, 3300, 30, 949, 273, 365, 18, 2972, 1225, 775, 30, 585, 4110, 273, 585, 12, 2890, 18, 3459, 10837, 86, 15, 70, 7923, 585, 4110, 18, 16508, 12, 917, 13, 1335, 30, 585, 4110, 273, 585, 12, 2890, 18, 3459, 10837, 91, 15, 70, 7923, 365, 18, 2972, 1225, 273, 374, 24611, 273, 365, 18, 4963, 1225, 949, 273, 374, 309, 24611, 405, 374, 30, 585, 4110, 18, 16508, 12, 4963, 1225, 17, 21, 13, 585, 4110, 18, 2626, 2668, 8624, 585, 4110, 18, 16508, 12, 20, 13, 1123, 273, 11086, 1785, 12, 2890, 18, 718, 10837, 3264, 3113, 917, 16, 1104, 3693, 1730, 273, 1104, 3693, 2 ]
path = path.replace('/', os.sep)
path = self._absnorm(path)
def touch(self, path): """Emulates the UNIX touch command. Creates a file, if it does not exist. Otherwise changes its access and modification times to the current time. Fails if used with the directories or the parent directory of the given file does not exist. """ path = path.replace('/', os.sep) if os.path.isdir(path): raise DataError("Cannot touch '%s' because it is a directory" % path) if not os.path.exists(os.path.dirname(path)): raise DataError("Cannot touch '%s' because its parent directory " "does not exist" % path) if os.path.exists(path): mtime = round(time.time()) os.utime(path, (mtime, mtime)) self._info("Touched existing file '%s'" % path) else: open(path, 'w').close() self._info("Touched new file '%s'" % path)
8394d54a14ff248630063a73df253438178dff53 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/8394d54a14ff248630063a73df253438178dff53/OperatingSystem.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6920, 12, 2890, 16, 589, 4672, 3536, 1514, 17099, 326, 23160, 6920, 1296, 18, 225, 10210, 279, 585, 16, 309, 518, 1552, 486, 1005, 18, 5272, 3478, 2097, 2006, 471, 11544, 4124, 358, 326, 783, 813, 18, 225, 8911, 87, 309, 1399, 598, 326, 6402, 578, 326, 982, 1867, 434, 326, 864, 585, 1552, 486, 1005, 18, 3536, 589, 273, 365, 6315, 5113, 7959, 12, 803, 13, 309, 1140, 18, 803, 18, 291, 1214, 12, 803, 4672, 1002, 1910, 668, 2932, 4515, 6920, 1995, 87, 11, 2724, 518, 353, 279, 1867, 6, 738, 589, 13, 309, 486, 1140, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 12287, 12, 803, 3719, 30, 1002, 1910, 668, 2932, 4515, 6920, 1995, 87, 11, 2724, 2097, 982, 1867, 315, 315, 20657, 486, 1005, 6, 738, 589, 13, 309, 1140, 18, 803, 18, 1808, 12, 803, 4672, 13158, 273, 3643, 12, 957, 18, 957, 10756, 1140, 18, 322, 494, 12, 803, 16, 261, 10838, 16, 13158, 3719, 365, 6315, 1376, 2932, 774, 19370, 2062, 585, 1995, 87, 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 316, 326, 981, 30, 1652, 6920, 12, 2890, 16, 589, 4672, 3536, 1514, 17099, 326, 23160, 6920, 1296, 18, 225, 10210, 279, 585, 16, 309, 518, 1552, 486, 1005, 18, 5272, 3478, 2097, 2006, 471, 11544, 4124, 358, 326, 783, 813, 18, 225, 8911, 87, 309, 1399, 598, 326, 6402, 578, 326, 982, 1867, 434, 326, 864, 585, 1552, 486, 1005, 18, 3536, 589, 273, 365, 6315, 5113, 7959, 12, 803, 13, 309, 1140, 18, 803, 18, 291, 1214, 12, 803, 4672, 1002, 1910, 668, 2932, 4515, 6920, 1995, 87, 11, 2724, 518, 353, 279, 1867, 6, 738, 589, 13, 309, 486, 1140, 18, 803, 18, 1808, 12, 538, 18, 803, 18, 12287, 12, 803, 3719, 30, 1002, 1910, 668, 2932, 4515, 6920, 2 ]
users = self._get_saved_user_info(CSV_FILE_DIR, CSV_FILE_NAME)
csv_file_dir = pwd.getpwnam(getpass.getuser()).pw_dir csv_file_dir += os.sep + '.bind10' + os.sep users = self._get_saved_user_info(csv_file_dir, CSV_FILE_NAME)
def login_to_cmdctl(self): '''Login to cmdctl with the username and password inputted from user. After the login is sucessful, the username and password will be saved in 'default_user.csv', when run the next time, username and password saved in 'default_user.csv' will be used first. ''' users = self._get_saved_user_info(CSV_FILE_DIR, CSV_FILE_NAME) for row in users: param = {'username': row[0], 'password' : row[1]} try: response = self.send_POST('/login', param) data = response.read().decode() except socket.error: raise FailToLogin()
6000bb171b66735393843be9a3cb2ab34f01c634 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6792/6000bb171b66735393843be9a3cb2ab34f01c634/bindcmd.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 67, 869, 67, 4172, 12930, 12, 2890, 4672, 9163, 5358, 358, 1797, 12930, 598, 326, 2718, 471, 2201, 810, 2344, 628, 729, 18, 7360, 326, 3925, 353, 1597, 614, 2706, 16, 326, 2718, 471, 2201, 903, 506, 5198, 316, 296, 1886, 67, 1355, 18, 6715, 2187, 1347, 1086, 326, 1024, 813, 16, 2718, 471, 2201, 5198, 316, 296, 1886, 67, 1355, 18, 6715, 11, 903, 506, 1399, 1122, 18, 9163, 6101, 67, 768, 67, 1214, 273, 14720, 18, 588, 14921, 17808, 12, 588, 5466, 18, 588, 1355, 1435, 2934, 14921, 67, 1214, 6101, 67, 768, 67, 1214, 1011, 1140, 18, 10814, 397, 2418, 4376, 2163, 11, 397, 1140, 18, 10814, 3677, 273, 365, 6315, 588, 67, 14077, 67, 1355, 67, 1376, 12, 6715, 67, 768, 67, 1214, 16, 10381, 67, 3776, 67, 1985, 13, 364, 1027, 316, 3677, 30, 579, 273, 13666, 5053, 4278, 1027, 63, 20, 6487, 296, 3664, 11, 294, 1027, 63, 21, 18322, 775, 30, 766, 273, 365, 18, 4661, 67, 3798, 2668, 19, 5819, 2187, 579, 13, 501, 273, 766, 18, 896, 7675, 3922, 1435, 1335, 2987, 18, 1636, 30, 1002, 8911, 774, 5358, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3925, 67, 869, 67, 4172, 12930, 12, 2890, 4672, 9163, 5358, 358, 1797, 12930, 598, 326, 2718, 471, 2201, 810, 2344, 628, 729, 18, 7360, 326, 3925, 353, 1597, 614, 2706, 16, 326, 2718, 471, 2201, 903, 506, 5198, 316, 296, 1886, 67, 1355, 18, 6715, 2187, 1347, 1086, 326, 1024, 813, 16, 2718, 471, 2201, 5198, 316, 296, 1886, 67, 1355, 18, 6715, 11, 903, 506, 1399, 1122, 18, 9163, 6101, 67, 768, 67, 1214, 273, 14720, 18, 588, 14921, 17808, 12, 588, 5466, 18, 588, 1355, 1435, 2934, 14921, 67, 1214, 6101, 67, 768, 67, 1214, 1011, 1140, 18, 10814, 397, 2418, 4376, 2163, 11, 397, 1140, 18, 10814, 3677, 273, 365, 6315, 588, 67, 14077, 2 ]
+ BasePlugin.manage_options
+ BasePlugin.manage_options
def updLocalRoles(self, path=None, row=None, roles=[], **params): """Update the specified roles.""" if not path: return if not self.localRoles.has_key(path): return if row is not None: try: self.localRoles[path][row]['_roles'] = roles except (IndexError, TypeError): logger.warning("updLocalRoles error updating row %s from %s" % (str(row), str(path)), exc_info=True) return if params: paramKeys = params.keys().sort() for ii in self.localRoles[path]: if sorted(ii.keys()) != paramKeys: continue # both the subcriteria and source dictionary # must have the same set of keys regexes = {} for jj in paramKeys: regexes[jj] = re.compile(ii[jj]) for jj in paramKeys: found = regexes[jj].search(params[jj]) and True or False if not found: break # This doesn't match, so no point in testing more else: # Got here as true, so it matched all, save it ii['_roles'] = roles
658979dd708af1ad2a51acbb78e8a8578ea50bda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11316/658979dd708af1ad2a51acbb78e8a8578ea50bda/permissions.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2166, 2042, 6898, 12, 2890, 16, 589, 33, 7036, 16, 1027, 33, 7036, 16, 4900, 22850, 6487, 2826, 2010, 4672, 3536, 1891, 326, 1269, 4900, 12123, 309, 486, 589, 30, 327, 309, 486, 365, 18, 3729, 6898, 18, 5332, 67, 856, 12, 803, 4672, 327, 309, 1027, 353, 486, 599, 30, 775, 30, 365, 18, 3729, 6898, 63, 803, 6362, 492, 23962, 67, 7774, 3546, 273, 4900, 1335, 261, 1016, 668, 16, 3580, 4672, 1194, 18, 8551, 2932, 5533, 2042, 6898, 555, 9702, 1027, 738, 87, 628, 738, 87, 6, 738, 261, 701, 12, 492, 3631, 609, 12, 803, 13, 3631, 3533, 67, 1376, 33, 5510, 13, 327, 309, 859, 30, 579, 2396, 273, 859, 18, 2452, 7675, 3804, 1435, 364, 6072, 316, 365, 18, 3729, 6898, 63, 803, 14542, 309, 3115, 12, 2835, 18, 2452, 10756, 480, 579, 2396, 30, 1324, 565, 468, 3937, 326, 720, 9714, 471, 1084, 3880, 468, 1297, 1240, 326, 1967, 444, 434, 1311, 28522, 273, 2618, 364, 10684, 316, 579, 2396, 30, 28522, 63, 78, 78, 65, 273, 283, 18, 11100, 12, 2835, 63, 78, 78, 5717, 364, 10684, 316, 579, 2396, 30, 1392, 273, 28522, 63, 78, 78, 8009, 3072, 12, 2010, 63, 78, 78, 5717, 471, 1053, 578, 1083, 309, 486, 1392, 30, 898, 468, 1220, 3302, 1404, 845, 16, 1427, 1158, 1634, 316, 7769, 1898, 469, 30, 468, 19578, 2674, 487, 638, 16, 1427, 518, 4847, 777, 16, 1923, 518, 6072, 3292, 67, 7774, 3546, 273, 4900, 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, 2166, 2042, 6898, 12, 2890, 16, 589, 33, 7036, 16, 1027, 33, 7036, 16, 4900, 22850, 6487, 2826, 2010, 4672, 3536, 1891, 326, 1269, 4900, 12123, 309, 486, 589, 30, 327, 309, 486, 365, 18, 3729, 6898, 18, 5332, 67, 856, 12, 803, 4672, 327, 309, 1027, 353, 486, 599, 30, 775, 30, 365, 18, 3729, 6898, 63, 803, 6362, 492, 23962, 67, 7774, 3546, 273, 4900, 1335, 261, 1016, 668, 16, 3580, 4672, 1194, 18, 8551, 2932, 5533, 2042, 6898, 555, 9702, 1027, 738, 87, 628, 738, 87, 6, 738, 261, 701, 12, 492, 3631, 609, 12, 803, 13, 3631, 3533, 67, 1376, 33, 5510, 13, 327, 309, 859, 30, 579, 2396, 273, 859, 18, 2452, 7675, 2 ]
output = [line for line in odata.split("\n") if line]
output = [line for line in odata.split("\n") if line.find('ERROR')]
def VerifyPackage(self, entry): '''Verify Package status for entry''' if not (entry.get('name') and entry.get('version')): print "Can't verify package, not enough data." return False cmdrc = system("/usr/bin/pkginfo -q -v \"%s\" %s" % (entry.get('version'), entry.get('name'))) if cmdrc != 0: self.CondPrint('debug', "Package %s version incorrect" % entry.get('name')) else: if entry.attrib.get('verify', 'true') == 'true': if self.setup['quick']: return True verp = Popen4("/usr/sbin/pkgchk -n %s" % (entry.get('name')), bufsize=16384) odata = '' vstat = verp.poll() while vstat == -1: odata += verp.fromchild.read() vstat = verp.poll() output = [line for line in odata.split("\n") if line] if vstat == 0: return True else: # if len([name for name in output if name.split()[-1] not in modlist]): # return True # else: self.CondPrint('debug', "Package %s content verification failed" % (entry.get('name'))) return False
5497b58292d88d49fe197fc5bdffbd06d86a348f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/5497b58292d88d49fe197fc5bdffbd06d86a348f/Solaris.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 8553, 2261, 12, 2890, 16, 1241, 4672, 9163, 8097, 7508, 1267, 364, 1241, 26418, 309, 486, 261, 4099, 18, 588, 2668, 529, 6134, 471, 1241, 18, 588, 2668, 1589, 26112, 30, 1172, 315, 2568, 1404, 3929, 2181, 16, 486, 7304, 501, 1199, 327, 1083, 1797, 1310, 273, 2619, 2932, 19, 13640, 19, 4757, 19, 10657, 1376, 300, 85, 300, 90, 22049, 87, 2412, 738, 87, 6, 738, 261, 4099, 18, 588, 2668, 1589, 19899, 1241, 18, 588, 2668, 529, 11, 20349, 309, 1797, 1310, 480, 374, 30, 365, 18, 12441, 5108, 2668, 4148, 2187, 315, 2261, 738, 87, 1177, 11332, 6, 738, 1241, 18, 588, 2668, 529, 26112, 469, 30, 309, 1241, 18, 14588, 18, 588, 2668, 8705, 2187, 296, 3767, 6134, 422, 296, 3767, 4278, 309, 365, 18, 8401, 3292, 19525, 3546, 30, 327, 1053, 1924, 84, 273, 14339, 24, 2932, 19, 13640, 19, 87, 4757, 19, 10657, 27038, 300, 82, 738, 87, 6, 738, 261, 4099, 18, 588, 2668, 529, 6134, 3631, 1681, 1467, 33, 2313, 17295, 13, 320, 892, 273, 875, 331, 5642, 273, 1924, 84, 18, 13835, 1435, 1323, 331, 5642, 422, 300, 21, 30, 320, 892, 1011, 1924, 84, 18, 2080, 3624, 18, 896, 1435, 331, 5642, 273, 1924, 84, 18, 13835, 1435, 876, 273, 306, 1369, 364, 980, 316, 320, 892, 18, 4939, 31458, 82, 7923, 309, 980, 18, 4720, 2668, 3589, 6134, 65, 309, 331, 5642, 422, 374, 30, 327, 1053, 469, 30, 468, 565, 309, 562, 3816, 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, 8553, 2261, 12, 2890, 16, 1241, 4672, 9163, 8097, 7508, 1267, 364, 1241, 26418, 309, 486, 261, 4099, 18, 588, 2668, 529, 6134, 471, 1241, 18, 588, 2668, 1589, 26112, 30, 1172, 315, 2568, 1404, 3929, 2181, 16, 486, 7304, 501, 1199, 327, 1083, 1797, 1310, 273, 2619, 2932, 19, 13640, 19, 4757, 19, 10657, 1376, 300, 85, 300, 90, 22049, 87, 2412, 738, 87, 6, 738, 261, 4099, 18, 588, 2668, 1589, 19899, 1241, 18, 588, 2668, 529, 11, 20349, 309, 1797, 1310, 480, 374, 30, 365, 18, 12441, 5108, 2668, 4148, 2187, 315, 2261, 738, 87, 1177, 11332, 6, 738, 1241, 18, 588, 2668, 529, 26112, 469, 30, 309, 1241, 18, 14588, 18, 588, 2668, 8705, 2 ]
reg_info = ioreg_info_dict[name] reg_desc = reg_info.getElements ('DESCRIPTION')[0].getData ()
try: reg_info = ioreg_info_dict[name] try: reg_desc = reg_info.getElements ('DESCRIPTION')[0].getData () except IndexError: reg_desc = '' except KeyError: reg_info = None
def dump_ioregs (root): path = ['AVRPART', 'MEMORY', 'IO_MEMORY'] io_mem = root.getSubTree (path) ioregs = io_mem.getElements () ioreg_info_dict = gather_io_info (root) print ' <ioregisters>' # Skip the first 6 elements since they are just give start and stop # addresses. for ioreg in ioregs[6:]: name = ioreg.name reg_info = ioreg_info_dict[name] reg_desc = reg_info.getElements ('DESCRIPTION')[0].getData () addr = ioreg.getElements ('IO_ADDR')[0].getData () if addr[0] == '$': addr = '0x' + addr[1:] if addr == "NA": addr = ioreg.getElements ('MEM_ADDR')[0].getData () else: # Add 0x20 so all addresses are memory mapped. addr = '0x%02x' % (int (addr, 16) + 0x20) print ' <ioreg name="%s" addr="%s">' % (name, addr) print_wrapped (' ','<description>%s</description>' % (reg_desc)) print ' <alt_name></alt_name>' for i in range (8): bit = 'BIT%d' % (i) bit_el = reg_info.getSubTree ([name, bit]) if bit_el is None: continue bit_name = bit_el.getElements ('NAME')[0].getData () bit_desc = bit_el.getElements ('DESCRIPTION')[0].getData () bit_access = bit_el.getElements ('ACCESS')[0].getData () bit_init_val = bit_el.getElements ('INIT_VAL')[0].getData () print ' <bit_field name="%s"' % (bit_name), print 'bit="%d"' % (i), print 'access="%s"' % (bit_access), print 'init="%s">' % (bit_init_val) if bit_desc: print_wrapped (' ', '<description>%s</description>' % (bit_desc)) print ' <alt_name></alt_name>' print ' </bit_field>' print ' </ioreg>' print ' </ioregisters>'
65496be2031264614c91230d0175c73a76f32ccd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4046/65496be2031264614c91230d0175c73a76f32ccd/Atmel2libc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4657, 67, 77, 479, 564, 261, 3085, 4672, 589, 273, 10228, 5856, 54, 15055, 2187, 296, 24329, 2187, 296, 4294, 67, 24329, 3546, 2527, 67, 3917, 273, 1365, 18, 588, 1676, 2471, 261, 803, 13, 277, 479, 564, 273, 2527, 67, 3917, 18, 588, 3471, 1832, 225, 277, 479, 75, 67, 1376, 67, 1576, 273, 11090, 67, 1594, 67, 1376, 261, 3085, 13, 225, 1172, 296, 225, 411, 77, 479, 75, 6045, 1870, 225, 468, 6611, 326, 1122, 1666, 2186, 3241, 2898, 854, 2537, 8492, 787, 471, 2132, 468, 6138, 18, 225, 364, 277, 479, 75, 316, 277, 479, 564, 63, 26, 30, 14542, 508, 273, 277, 479, 75, 18, 529, 775, 30, 960, 67, 1376, 273, 277, 479, 75, 67, 1376, 67, 1576, 63, 529, 65, 775, 30, 960, 67, 5569, 273, 960, 67, 1376, 18, 588, 3471, 7707, 15911, 6134, 63, 20, 8009, 588, 751, 1832, 1335, 10195, 30, 960, 67, 5569, 273, 875, 1335, 4999, 30, 960, 67, 1376, 273, 599, 225, 3091, 273, 277, 479, 75, 18, 588, 3471, 7707, 4294, 67, 14142, 6134, 63, 20, 8009, 588, 751, 1832, 309, 3091, 63, 20, 65, 422, 3365, 4278, 3091, 273, 296, 20, 92, 11, 397, 3091, 63, 21, 26894, 309, 3091, 422, 315, 11277, 6877, 3091, 273, 277, 479, 75, 18, 588, 3471, 7707, 12286, 67, 14142, 6134, 63, 20, 8009, 588, 751, 1832, 469, 30, 468, 1436, 374, 92, 3462, 1427, 777, 6138, 854, 3778, 5525, 18, 3091, 273, 296, 20, 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, 4657, 67, 77, 479, 564, 261, 3085, 4672, 589, 273, 10228, 5856, 54, 15055, 2187, 296, 24329, 2187, 296, 4294, 67, 24329, 3546, 2527, 67, 3917, 273, 1365, 18, 588, 1676, 2471, 261, 803, 13, 277, 479, 564, 273, 2527, 67, 3917, 18, 588, 3471, 1832, 225, 277, 479, 75, 67, 1376, 67, 1576, 273, 11090, 67, 1594, 67, 1376, 261, 3085, 13, 225, 1172, 296, 225, 411, 77, 479, 75, 6045, 1870, 225, 468, 6611, 326, 1122, 1666, 2186, 3241, 2898, 854, 2537, 8492, 787, 471, 2132, 468, 6138, 18, 225, 364, 277, 479, 75, 316, 277, 479, 564, 63, 26, 30, 14542, 508, 273, 277, 479, 75, 18, 529, 775, 30, 960, 67, 1376, 273, 277, 2 ]
print "\tS=%.2f" % s
print "S=%.2f" % s
def func(i): s = 0 n = 8e5 h = math.pi/2/n for j in xrange(int(n)): s += math.cos(i*j*h) s = abs(s*h) print "iteration #%i:" % i time.sleep(0.05) print "\tS=%.2f" % s return s
cca7769d1c8f553d026fb80fef74e4ac2bed403c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/cca7769d1c8f553d026fb80fef74e4ac2bed403c/symmetric_multi_processing.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 12, 77, 4672, 272, 273, 374, 290, 273, 1725, 73, 25, 366, 273, 4233, 18, 7259, 19, 22, 19, 82, 364, 525, 316, 12314, 12, 474, 12, 82, 3719, 30, 272, 1011, 4233, 18, 14445, 12, 77, 14, 78, 14, 76, 13, 272, 273, 2417, 12, 87, 14, 76, 13, 1172, 315, 16108, 31974, 77, 2773, 738, 277, 813, 18, 19607, 12, 20, 18, 6260, 13, 1172, 315, 55, 5095, 18, 22, 74, 6, 738, 272, 327, 272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1326, 12, 77, 4672, 272, 273, 374, 290, 273, 1725, 73, 25, 366, 273, 4233, 18, 7259, 19, 22, 19, 82, 364, 525, 316, 12314, 12, 474, 12, 82, 3719, 30, 272, 1011, 4233, 18, 14445, 12, 77, 14, 78, 14, 76, 13, 272, 273, 2417, 12, 87, 14, 76, 13, 1172, 315, 16108, 31974, 77, 2773, 738, 277, 813, 18, 19607, 12, 20, 18, 6260, 13, 1172, 315, 55, 5095, 18, 22, 74, 6, 738, 272, 327, 272, 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 ]
movie.commit()
objectstore.commit()
def add_movie(self, t_movies, t_languages=None, t_tags=None): # remove empty fields (insert default value instead - mostly "NULL") for i in t_movies.keys(): if t_movies[i] == '': t_movies.pop(i) for i in ["color","cond","layers","region","media_num"]: if t_movies[i] == -1: t_movies.pop(i) for i in ["volume_id","collection_id"]: if t_movies.has_key(i) and int(t_movies[i]) == 0: t_movies[i] = None if t_movies.has_key("year") and int(t_movies["year"]) < 1986: t_movies[i] = None
4b0c89054066122c9a487231e3cc72eebb555d01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2687/4b0c89054066122c9a487231e3cc72eebb555d01/sql.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 527, 67, 8683, 13120, 12, 2890, 16, 268, 67, 8683, 29028, 16, 268, 67, 14045, 33, 7036, 16, 268, 67, 4156, 33, 7036, 4672, 468, 1206, 1008, 1466, 261, 6387, 805, 460, 3560, 300, 23958, 315, 8560, 7923, 364, 277, 316, 268, 67, 8683, 29028, 18, 2452, 13332, 309, 268, 67, 8683, 29028, 63, 77, 65, 422, 875, 30, 268, 67, 8683, 29028, 18, 5120, 12, 77, 13, 364, 277, 316, 8247, 3266, 15937, 10013, 15937, 10396, 15937, 6858, 15937, 5829, 67, 2107, 11929, 30, 309, 268, 67, 8683, 29028, 63, 77, 65, 422, 300, 21, 30, 268, 67, 8683, 29028, 18, 5120, 12, 77, 13, 364, 277, 316, 8247, 9491, 67, 350, 15937, 5548, 67, 350, 11929, 30, 309, 268, 67, 8683, 29028, 18, 5332, 67, 856, 12, 77, 13, 471, 509, 12, 88, 67, 8683, 29028, 63, 77, 5717, 422, 374, 30, 268, 67, 8683, 29028, 63, 77, 65, 273, 599, 309, 268, 67, 8683, 29028, 18, 5332, 67, 856, 2932, 6874, 7923, 471, 509, 12, 88, 67, 8683, 29028, 9614, 6874, 6, 5717, 411, 5342, 5292, 30, 268, 67, 8683, 29028, 63, 77, 65, 273, 599, 2,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67, 14045, 33, 7036, 16, 268, 67, 4156, 33, 7036, 4672, 468, 1206, 1008, 1466, 261, 6387, 805, 460, 3560, 300, 23958, 315, 8560, 7923, 364, 277, 316, 268, 67, 8683, 29028, 18, 2452, 13332, 309, 268, 67, 8683, 29028, 63, 77, 65, 422, 875, 30, 268, 67, 8683, 29028, 18, 5120, 12, 77, 13, 364, 277, 316, 8247, 3266, 15937, 10013, 15937, 10396, 15937, 6858, 15937, 5829, 67, 2107, 11929, 30, 309, 268, 67, 8683, 29028, 63, 77, 65, 422, 300, 21, 30, 268, 67, 8683, 29028, 18, 5120, 12, 77, 13, 364, 277, 316, 8247, 9491, 67, 350, 15937, 5548, 67, 350, 11929, 2 ]
nuninst[arch] = sorted(broken) if len(nuninst[arch]) > 0:
for b in broken: if b not in nuninst[arch]: nuninst[arch].append(b) if len(nuninst[arch]) > len(nuninst_comp[arch]):
def iter_packages(self, packages, output): extra = [] nuninst_comp = self.get_nuninst()
fa6c1b506f7548b5fdf29486ef79b23c7680b1a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/fa6c1b506f7548b5fdf29486ef79b23c7680b1a2/britney.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 876, 4672, 2870, 273, 5378, 290, 318, 8591, 67, 2919, 273, 365, 18, 588, 67, 82, 318, 8591, 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,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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, 1652, 1400, 67, 10308, 12, 2890, 16, 5907, 16, 876, 4672, 2870, 273, 5378, 290, 318, 8591, 67, 2919, 273, 365, 18, 588, 67, 82, 318, 8591, 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, -100, -100, -100 ]
pass
d = { 'type':'xbmc.python.script', 'summary': 'script summary', 'name': 'MythBox', 'id': 'script.mythbox', 'profile': 'special://profile/addon_data/script.mythbox/', 'path':'/tmp/script.mythbox' } return d.get('id', 'TODO')
def getAddonInfo(self, id): ''' Returns the value of an addon property as a string id : string - id of the property that the module needs to access *Note, choices are (author, changelog, description, disclaimer, fanart. icon, id, name, path profile, stars, summary, type, version) You can use the above as keywords for arguments. example: version = self.Addon.getAddonInfo('version')
7f2668803d8e9e838e320e71a0caf1d3990445d0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12279/7f2668803d8e9e838e320e71a0caf1d3990445d0/xbmcaddon.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 27901, 966, 12, 2890, 16, 612, 4672, 9163, 2860, 326, 460, 434, 392, 15466, 1272, 487, 279, 533, 612, 3639, 294, 533, 300, 612, 434, 326, 1272, 716, 326, 1605, 4260, 358, 2006, 225, 380, 8067, 16, 7246, 854, 261, 4161, 16, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 27901, 966, 12, 2890, 16, 612, 4672, 9163, 2860, 326, 460, 434, 392, 15466, 1272, 487, 279, 533, 612, 3639, 294, 533, 300, 612, 434, 326, 1272, 716, 326, 1605, 4260, 358, 2006, 225, 380, 8067, 16, 7246, 854, 261, 4161, 16, 21182, 16, 2477, 16, 1015, 830, 69, 4417, 16, 26154, 485, 18, 4126, 16, 612, 16, 508, 16, 589, 3042, 16, 24084, 16, 4916, 16, 618, 16, 1177, 13, 4554, 848, 999, 326, 5721, 487, 7093, 364, 1775, 18, 225, 3454, 30, 1177, 273, 365, 18, 27901, 18, 588, 27901, 966, 2668, 1589, 6134, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return "; ".join(["%s=%s" % (v,k) for v,k in self._cookies[index].iteritems()])
outputDatas = '' for k,v in self._cookies[index].iteritems(): if v: outputDatas += "%s=%s; " % (k,v) else: outputDatas += "%s=none; " % k return outputDatas
def cookies(self, sysop = False): """Return a string containing the user's current cookies.""" self._loadCookies(sysop = sysop) index = self._userIndex(sysop) if self._cookies[index]: return "; ".join(["%s=%s" % (v,k) for v,k in self._cookies[index].iteritems()]) else: return None
19920505ef93268589d63f4f24ce429f800ab7e6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/19920505ef93268589d63f4f24ce429f800ab7e6/wikipedia.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7237, 12, 2890, 16, 2589, 556, 273, 1083, 4672, 3536, 990, 279, 533, 4191, 326, 729, 1807, 783, 7237, 12123, 365, 6315, 945, 16089, 12, 9499, 556, 273, 2589, 556, 13, 770, 273, 365, 6315, 1355, 1016, 12, 9499, 556, 13, 309, 365, 6315, 16240, 63, 1615, 14542, 876, 14305, 273, 875, 364, 417, 16, 90, 316, 365, 6315, 16240, 63, 1615, 8009, 2165, 3319, 13332, 309, 331, 30, 876, 14305, 1011, 2213, 87, 5095, 87, 31, 315, 738, 261, 79, 16, 90, 13, 469, 30, 225, 876, 14305, 1011, 2213, 87, 33, 6102, 31, 315, 738, 417, 327, 876, 14305, 469, 30, 327, 599, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7237, 12, 2890, 16, 2589, 556, 273, 1083, 4672, 3536, 990, 279, 533, 4191, 326, 729, 1807, 783, 7237, 12123, 365, 6315, 945, 16089, 12, 9499, 556, 273, 2589, 556, 13, 770, 273, 365, 6315, 1355, 1016, 12, 9499, 556, 13, 309, 365, 6315, 16240, 63, 1615, 14542, 876, 14305, 273, 875, 364, 417, 16, 90, 316, 365, 6315, 16240, 63, 1615, 8009, 2165, 3319, 13332, 309, 331, 30, 876, 14305, 1011, 2213, 87, 5095, 87, 31, 315, 738, 261, 79, 16, 90, 13, 469, 30, 225, 876, 14305, 1011, 2213, 87, 33, 6102, 31, 315, 738, 417, 327, 876, 14305, 469, 30, 327, 599, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return matrix_field.Matrix_field_sparse
return matrix_field_sparse.Matrix_field_sparse
def _get_matrix_class(self): K = self.base_ring() if self.is_dense(): if isinstance(K, rational_field.RationalField): return matrix_rational_dense.Matrix_rational_dense if isinstance(K, finite_field.FiniteField_prime_modn) and K.characteristic() <= matrix_modn_dense.MAX_MODULUS: return matrix_modn_dense.Matrix_modn_dense else: return matrix_field.Matrix_field else: if isinstance(K, rational_field.RationalField): #return matrix.Matrix_sparse_rational return matrix_rational_sparse.Matrix_rational_sparse elif sage.rings.number_field.all.is_CyclotomicField(K): return matrix.Matrix_sparse_cyclotomic # TODO: last of the old matrices return matrix_field.Matrix_field_sparse
d657da8c227cc32fe8b468192ffa0d2e35390341 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/d657da8c227cc32fe8b468192ffa0d2e35390341/matrix_space.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 5667, 67, 1106, 12, 2890, 4672, 1475, 273, 365, 18, 1969, 67, 8022, 1435, 309, 365, 18, 291, 67, 25942, 13332, 309, 1549, 12, 47, 16, 436, 8371, 67, 1518, 18, 54, 8371, 974, 4672, 327, 3148, 67, 7034, 287, 67, 25942, 18, 4635, 67, 7034, 287, 67, 25942, 309, 1549, 12, 47, 16, 25922, 67, 1518, 18, 26491, 974, 67, 16382, 67, 1711, 82, 13, 471, 1475, 18, 11560, 5846, 1435, 1648, 3148, 67, 1711, 82, 67, 25942, 18, 6694, 67, 6720, 1506, 3378, 30, 327, 3148, 67, 1711, 82, 67, 25942, 18, 4635, 67, 1711, 82, 67, 25942, 469, 30, 327, 3148, 67, 1518, 18, 4635, 67, 1518, 469, 30, 309, 1549, 12, 47, 16, 436, 8371, 67, 1518, 18, 54, 8371, 974, 4672, 468, 2463, 3148, 18, 4635, 67, 17472, 67, 7034, 287, 327, 3148, 67, 7034, 287, 67, 17472, 18, 4635, 67, 7034, 287, 67, 17472, 1327, 272, 410, 18, 86, 899, 18, 2696, 67, 1518, 18, 454, 18, 291, 67, 17992, 830, 352, 24721, 974, 12, 47, 4672, 327, 3148, 18, 4635, 67, 17472, 67, 2431, 830, 352, 24721, 468, 2660, 30, 1142, 434, 326, 1592, 16415, 327, 3148, 67, 1518, 18, 4635, 67, 1518, 67, 17472, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 67, 5667, 67, 1106, 12, 2890, 4672, 1475, 273, 365, 18, 1969, 67, 8022, 1435, 309, 365, 18, 291, 67, 25942, 13332, 309, 1549, 12, 47, 16, 436, 8371, 67, 1518, 18, 54, 8371, 974, 4672, 327, 3148, 67, 7034, 287, 67, 25942, 18, 4635, 67, 7034, 287, 67, 25942, 309, 1549, 12, 47, 16, 25922, 67, 1518, 18, 26491, 974, 67, 16382, 67, 1711, 82, 13, 471, 1475, 18, 11560, 5846, 1435, 1648, 3148, 67, 1711, 82, 67, 25942, 18, 6694, 67, 6720, 1506, 3378, 30, 327, 3148, 67, 1711, 82, 67, 25942, 18, 4635, 67, 1711, 82, 67, 25942, 469, 30, 327, 3148, 67, 1518, 18, 4635, 67, 1518, 469, 30, 309, 1549, 12, 2 ]
line = line[res.end(0):] return newline + line
pos = res.end(0) return newline + line[pos:]
def mime_decode(line): '''Decode a single line of quoted-printable text to 8bit.''' newline = '' while 1: res = mime_code.search(line) if res is None: break newline = newline + line[:res.start(0)] + \ chr(string.atoi(res.group(1), 16)) line = line[res.end(0):] return newline + line
2da64378fc8910a8cade10d25f8774ca051556f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2da64378fc8910a8cade10d25f8774ca051556f9/mimify.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4892, 67, 3922, 12, 1369, 4672, 9163, 6615, 279, 2202, 980, 434, 9298, 17, 1188, 429, 977, 358, 1725, 3682, 1093, 6309, 9472, 273, 875, 1323, 404, 30, 400, 273, 4892, 67, 710, 18, 3072, 12, 1369, 13, 309, 400, 353, 599, 30, 898, 9472, 273, 9472, 397, 980, 10531, 455, 18, 1937, 12, 20, 25887, 397, 521, 4513, 12, 1080,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4892, 67, 3922, 12, 1369, 4672, 9163, 6615, 279, 2202, 980, 434, 9298, 17, 1188, 429, 977, 358, 1725, 3682, 1093, 6309, 9472, 273, 875, 1323, 404, 30, 400, 273, 4892, 67, 710, 18, 3072, 12, 1369, 13, 309, 400, 353, 599, 30, 898, 9472, 273, 9472, 397, 980, 10531, 455, 18, 1937, 12, 20, 25887, 397, 521, 4513, 12, 1080, 18, 270, 11359, 12, 455, 18, 1655, 12, 21, 3631, 2872, 3719, 949, 273, 400, 18, 409, 12, 20, 13, 327, 9472, 397, 980, 63, 917, 26894, 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 ]
if rsoScalars.GetName(): print "sliceDirection.py: WARNING - ResliceOutput " \ "scalars are named." else: rsoScalars.SetName('ipw_reslice_output')
if rsoScalars: if rsoScalars.GetName(): print "sliceDirection.py: WARNING - ResliceOutput " \ "scalars are named." else: rsoScalars.SetName('ipw_reslice_output')
def addData(self, inputData): """Add inputData as a new layer. """ if inputData is None: raise Exception, "Hallo, the inputData is none. Doing nothing."
05f5911ec5d6632a55e783d373ada29ec4b152d9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/05f5911ec5d6632a55e783d373ada29ec4b152d9/sliceDirection.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21958, 12, 2890, 16, 24149, 4672, 3536, 986, 24149, 487, 279, 394, 3018, 18, 3536, 225, 309, 24149, 353, 599, 30, 1002, 1185, 16, 315, 44, 287, 383, 16, 326, 24149, 353, 6555, 18, 225, 2256, 310, 5083, 1199, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 21958, 12, 2890, 16, 24149, 4672, 3536, 986, 24149, 487, 279, 394, 3018, 18, 3536, 225, 309, 24149, 353, 599, 30, 1002, 1185, 16, 315, 44, 287, 383, 16, 326, 24149, 353, 6555, 18, 225, 2256, 310, 5083, 1199, 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 ]
leave_event = MouseEvent(x=event.x, y=event.y,
leave_event = MouseEvent(x=event.x, y=event.y,
def _dispatch_stateful_event(self, event, suffix): """ Dispatches a mouse event based on the current event_state. Overrides the default Interactor._dispatch_stateful_event by adding some default behavior to send all events to our contained children. "suffix" is the name of the mouse event as a suffix to the event state name, e.g. "_left_down" or "_window_enter". """
bd271ed92d5497a448e4eeec5aa3686b19867930 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13166/bd271ed92d5497a448e4eeec5aa3686b19867930/container.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10739, 67, 2019, 2706, 67, 2575, 12, 2890, 16, 871, 16, 3758, 4672, 3536, 11552, 281, 279, 7644, 871, 2511, 603, 326, 783, 871, 67, 2019, 18, 225, 531, 9857, 326, 805, 5294, 3362, 6315, 10739, 67, 2019, 2706, 67, 2575, 635, 6534, 2690, 805, 6885, 358, 1366, 777, 2641, 358, 3134, 7542, 2325, 18, 225, 315, 8477, 6, 353, 326, 508, 434, 326, 7644, 871, 487, 279, 3758, 358, 326, 871, 919, 508, 16, 425, 18, 75, 18, 4192, 4482, 67, 2378, 6, 578, 4192, 5668, 67, 2328, 9654, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 10739, 67, 2019, 2706, 67, 2575, 12, 2890, 16, 871, 16, 3758, 4672, 3536, 11552, 281, 279, 7644, 871, 2511, 603, 326, 783, 871, 67, 2019, 18, 225, 531, 9857, 326, 805, 5294, 3362, 6315, 10739, 67, 2019, 2706, 67, 2575, 635, 6534, 2690, 805, 6885, 358, 1366, 777, 2641, 358, 3134, 7542, 2325, 18, 225, 315, 8477, 6, 353, 326, 508, 434, 326, 7644, 871, 487, 279, 3758, 358, 326, 871, 919, 508, 16, 425, 18, 75, 18, 4192, 4482, 67, 2378, 6, 578, 4192, 5668, 67, 2328, 9654, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
group = transformNode(self.doc, "g", transform="") self.currGroup.appendChild(group)
currGroup, group = self.currGroup, transformNode(self.doc, "g", transform="") currGroup.appendChild(group)
def startGroup(self): if self.verbose: print "+++ begin SVGCanvas.startGroup" group = transformNode(self.doc, "g", transform="") self.currGroup.appendChild(group) self.currGroup = group if self.verbose: print "+++ end SVGCanvas.startGroup"
501bfb04bfdf39c5d6b8bebdade051927b8e7df6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/501bfb04bfdf39c5d6b8bebdade051927b8e7df6/renderSVG.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1114, 12, 2890, 4672, 309, 365, 18, 11369, 30, 1172, 315, 9904, 15, 2376, 11281, 12971, 18, 1937, 1114, 6, 4306, 1114, 16, 1041, 273, 365, 18, 17016, 1114, 16, 2510, 907, 12, 2890, 18, 2434, 16, 315, 75, 3113, 2510, 1546, 7923, 4306, 1114, 18, 6923, 1763, 12, 1655, 13, 365, 18, 17016, 1114, 273, 1041, 309, 365, 18, 11369, 30, 1172, 315, 9904, 15, 679, 11281, 12971, 18, 1937, 1114, 6, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1114, 12, 2890, 4672, 309, 365, 18, 11369, 30, 1172, 315, 9904, 15, 2376, 11281, 12971, 18, 1937, 1114, 6, 4306, 1114, 16, 1041, 273, 365, 18, 17016, 1114, 16, 2510, 907, 12, 2890, 18, 2434, 16, 315, 75, 3113, 2510, 1546, 7923, 4306, 1114, 18, 6923, 1763, 12, 1655, 13, 365, 18, 17016, 1114, 273, 1041, 309, 365, 18, 11369, 30, 1172, 315, 9904, 15, 679, 11281, 12971, 18, 1937, 1114, 6, 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 ]
bucketTableName = self.__getTableName( "bucket", typeName )
def regenerateBuckets( self, typeName ): retVal = self._getConnection() if not retVal[ 'OK' ]: return retVal connObj = retVal[ 'Value' ] bucketTableName = self.__getTableName( "bucket", typeName ) rawTableName = self.__getTableName( "type", typeName ) retVal = self.__startTransaction( connObj ) if not retVal[ 'OK' ]: return retVal gLogger.info( "Deleting buckets for %s" % typeName ) retVal = self._update( "DELETE FROM `%s`" % bucketTableName, conn = connObj ) if not retVal[ 'OK' ]: return retVal #Generate the common part of the query #SELECT fields startTimeTableField = "`%s`.startTime" % rawTableName endTimeTableField = "`%s`.endTime" % rawTableName sqlSUMSelectList = [] sqlSelectList = [] for field in self.dbCatalog[ typeName ][ 'keys' ]: sqlSUMSelectList.append( "`%s`.`%s`" % ( rawTableName, field ) ) sqlSelectList.append( "`%s`.`%s`" % ( rawTableName, field ) ) for field in self.dbCatalog[ typeName ][ 'values' ]: sqlSUMSelectList.append( "SUM( `%s`.`%s` )" % ( rawTableName, field ) ) sqlSelectList.append( "`%s`.`%s`" % ( rawTableName, field ) ) sumSelectString = ", ".join( sqlSUMSelectList ) selectString = ", ".join( sqlSelectList ) #Grouping fields sqlGroupList = [] for field in self.dbCatalog[ typeName ][ 'keys' ]: sqlGroupList.append( "`%s`.`%s`" % ( rawTableName, field ) ) groupingString = ", ".join( sqlGroupList ) #List to contain all queries sqlQueries = [] dateInclusiveConditions = [] countedField = "`%s`.`%s`" % ( rawTableName, self.dbCatalog[ typeName ][ 'keys' ][0] ) lastTime = Time.toEpoch() for iRange in range( len( self.dbBucketsLength[ typeName ] ) ): bucketTimeSpan = self.dbBucketsLength[ typeName ][iRange][0] bucketLength = self.dbBucketsLength[ typeName ][iRange][1] startT = lastTime - bucketTimeSpan endT = lastTime lastTime -= bucketTimeSpan bucketizedStart = self.__bucketizeDataField( startTimeTableField, bucketLength ) bucketizedEnd = self.__bucketizeDataField( endTimeTableField, bucketLength ) timeSelectString = "%s, %s" % ( bucketizedStart, bucketizedEnd ) #Is the last bucket? if iRange == len( self.dbBucketsLength[ typeName ] ) -1: whereString = "%s <= %d" % ( endTimeTableField, endT ) else: whereString = "%s > %d AND %s <= %d" % ( startTimeTableField, startT, endTimeTableField, endT ) dateInclusiveConditions.append( "( %s )" % whereString ) groupString = "%s, %s, %s" % ( groupingString, bucketizedStart, bucketizedEnd ) sqlQuery = "SELECT %s, %s, COUNT(%s) FROM `%s` WHERE %s GROUP BY %s" % ( timeSelectString, sumSelectString, countedField, rawTableName, whereString, groupString )
b82c71ef5eaee5196fe71bb607e42f044e971388 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/b82c71ef5eaee5196fe71bb607e42f044e971388/AccountingDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20821, 14517, 12, 365, 16, 8173, 262, 30, 12197, 273, 365, 6315, 588, 1952, 1435, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 1487, 2675, 273, 12197, 63, 296, 620, 11, 308, 1831, 7147, 273, 365, 16186, 588, 7147, 12, 315, 723, 3113, 8173, 262, 12197, 273, 365, 16186, 1937, 3342, 12, 1487, 2675, 262, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 314, 3328, 18, 1376, 12, 315, 20433, 9169, 364, 738, 87, 6, 738, 8173, 262, 12197, 273, 365, 6315, 2725, 12, 315, 6460, 4571, 12430, 87, 17039, 738, 2783, 7147, 16, 1487, 273, 1487, 2675, 262, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 468, 4625, 326, 2975, 1087, 434, 326, 843, 468, 4803, 1466, 8657, 1388, 974, 273, 11972, 9, 87, 8338, 1937, 950, 6, 738, 1831, 7147, 13859, 1388, 974, 273, 11972, 9, 87, 8338, 409, 950, 6, 738, 1831, 7147, 1847, 14020, 3391, 682, 273, 5378, 1847, 3391, 682, 273, 5378, 364, 652, 316, 365, 18, 1966, 9769, 63, 8173, 308, 63, 296, 2452, 11, 308, 30, 1847, 14020, 3391, 682, 18, 6923, 12, 11972, 9, 87, 16586, 9, 87, 17039, 738, 261, 1831, 7147, 16, 652, 262, 262, 1847, 3391, 682, 18, 6923, 12, 11972, 9, 87, 16586, 9, 87, 17039, 738, 261, 1831, 7147, 16, 652, 262, 262, 364, 652, 316, 365, 18, 1966, 9769, 63, 8173, 308, 63, 296, 2372, 11, 308, 30, 1847, 14020, 3391, 682, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 20821, 14517, 12, 365, 16, 8173, 262, 30, 12197, 273, 365, 6315, 588, 1952, 1435, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 1487, 2675, 273, 12197, 63, 296, 620, 11, 308, 1831, 7147, 273, 365, 16186, 588, 7147, 12, 315, 723, 3113, 8173, 262, 12197, 273, 365, 16186, 1937, 3342, 12, 1487, 2675, 262, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 314, 3328, 18, 1376, 12, 315, 20433, 9169, 364, 738, 87, 6, 738, 8173, 262, 12197, 273, 365, 6315, 2725, 12, 315, 6460, 4571, 12430, 87, 17039, 738, 2783, 7147, 16, 1487, 273, 1487, 2675, 262, 309, 486, 12197, 63, 296, 3141, 11, 308, 30, 327, 12197, 468, 4625, 2 ]
return x in ['cc-6-1x1', 'cc-12-2x3', 'cc-18-sq3xsq3', 'cc-18-1x1', 'cc-54-sq3xsq3', 'cc-54-1x1', 'cc-162-1x1']
return x in ['cc6_1x1', 'cc12_2x3', 'cc18_sq3xsq3', 'cc18_1x1', 'cc54_sq3xsq3', 'cc54_1x1', 'cc162_sq3xsq3', 'cc162_1x1']
def valid_kpts(x): if isinstance(x, str): return x in ['cc-6-1x1', 'cc-12-2x3', 'cc-18-sq3xsq3', 'cc-18-1x1', 'cc-54-sq3xsq3', 'cc-54-1x1', 'cc-162-1x1'] x = np.array(x) #empty arg is no good if x.shape == (): return False #monkhorst-pack elif x.shape == (3,) and ((x.dtype == 'int32') or (x.dtype == 'int64')): return True #user-defined list elif x.shape[1] == 3 and (str(x.dtype))[0:7] == 'float64': return True else: return False
e80ef4463e5dbe7a763e17fc667b9f280b9a926f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5735/e80ef4463e5dbe7a763e17fc667b9f280b9a926f/validate.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 923, 67, 79, 1092, 12, 92, 4672, 309, 1549, 12, 92, 16, 609, 4672, 327, 619, 316, 10228, 952, 26, 67, 21, 92, 21, 2187, 296, 952, 2138, 67, 22, 92, 23, 2187, 296, 952, 2643, 67, 11410, 23, 92, 11410, 23, 2187, 296, 952, 2643, 67, 21, 92, 21, 2187, 296, 952, 6564, 67, 11410, 23, 92, 11410, 23, 2187, 296, 952, 6564, 67, 21, 92, 21, 2187, 296, 952, 30042, 67, 11410, 23, 92, 11410, 23, 2187, 296, 952, 30042, 67, 21, 92, 21, 3546, 619, 273, 1130, 18, 1126, 12, 92, 13, 468, 5531, 1501, 353, 1158, 7494, 309, 619, 18, 4867, 422, 1832, 30, 327, 1083, 468, 2586, 79, 76, 280, 334, 17, 2920, 1327, 619, 18, 4867, 422, 261, 23, 16, 13, 471, 14015, 92, 18, 8972, 422, 296, 474, 1578, 6134, 578, 261, 92, 18, 8972, 422, 296, 474, 1105, 26112, 30, 327, 1053, 468, 1355, 17, 2178, 666, 1327, 619, 18, 4867, 63, 21, 65, 422, 890, 471, 261, 701, 12, 92, 18, 8972, 3719, 63, 20, 30, 27, 65, 422, 296, 5659, 1105, 4278, 327, 1053, 469, 30, 327, 1083, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 952, 2138, 67, 22, 92, 23, 2187, 296, 952, 2643, 67, 11410, 23, 92, 11410, 23, 2187, 296, 952, 2643, 67, 21, 92, 21, 2187, 296, 952, 6564, 67, 11410, 23, 92, 11410, 23, 2187, 296, 952, 6564, 67, 21, 92, 21, 2187, 296, 952, 30042, 67, 11410, 23, 92, 11410, 23, 2187, 296, 952, 30042, 67, 21, 92, 21, 3546, 619, 273, 1130, 18, 1126, 12, 92, 13, 468, 5531, 1501, 353, 1158, 7494, 309, 619, 18, 4867, 422, 1832, 30, 327, 1083, 468, 2586, 79, 76, 280, 334, 17, 2920, 2 ]
if isinstance(s, StringType): unicode(s, charset.get_output_charset()) elif isinstance(s, UnicodeType): for charset in USASCII, charset, UTF8: try: s = s.encode(charset.get_output_charset()) break except UnicodeError: pass else: assert False, 'Could not encode to utf-8'
if charset <> '8bit': if isinstance(s, StringType): incodec = charset.input_codec or 'us-ascii' ustr = unicode(s, incodec) outcodec = charset.output_codec or 'us-ascii' ustr.encode(outcodec) elif isinstance(s, UnicodeType): for charset in USASCII, charset, UTF8: try: outcodec = charset.output_codec or 'us-ascii' s = s.encode(outcodec) break except UnicodeError: pass else: assert False, 'utf-8 conversion failed'
def append(self, s, charset=None): """Append a string to the MIME header.
67f8f2fe2a93081aaac8ddc1409df4b05daf4fab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/67f8f2fe2a93081aaac8ddc1409df4b05daf4fab/Header.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 272, 16, 4856, 33, 7036, 4672, 3536, 5736, 279, 533, 358, 326, 13195, 1446, 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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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 272, 16, 4856, 33, 7036, 4672, 3536, 5736, 279, 533, 358, 326, 13195, 1446, 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 ]
'key': user.user_id(),
'key': userkey,
def get(self): user = users.get_current_user() client = gdata.docs.client.DocsClient(source='eveny-nebulae-v1') client.ClientLogin("[email protected]", "!@#$qwer", client.source) documents_feed = client.GetDocList(uri='/feeds/default/private/full/-/pending') if user: url = users.create_logout_url(self.request.uri) url_linktext = 'Logout' userkey = user.user_id()
aa9214f26c95d5e9400316ba56c88944fbf2090f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13529/aa9214f26c95d5e9400316ba56c88944fbf2090f/app.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 225, 729, 273, 3677, 18, 588, 67, 2972, 67, 1355, 1435, 1004, 273, 314, 892, 18, 8532, 18, 2625, 18, 12656, 1227, 12, 3168, 2218, 16728, 93, 17, 4644, 70, 5552, 73, 17, 90, 21, 6134, 1004, 18, 1227, 5358, 2932, 313, 267, 560, 18, 3813, 4819, 36, 75, 4408, 18, 832, 3113, 17528, 36, 30497, 85, 2051, 3113, 1004, 18, 3168, 13, 7429, 67, 7848, 273, 1004, 18, 967, 1759, 682, 12, 1650, 2218, 19, 7848, 87, 19, 1886, 19, 1152, 19, 2854, 19, 17, 19, 9561, 6134, 309, 729, 30, 880, 273, 3677, 18, 2640, 67, 21229, 67, 718, 12, 2890, 18, 2293, 18, 1650, 13, 880, 67, 1232, 955, 273, 296, 19456, 11, 729, 856, 273, 729, 18, 1355, 67, 350, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 12, 2890, 4672, 225, 729, 273, 3677, 18, 588, 67, 2972, 67, 1355, 1435, 1004, 273, 314, 892, 18, 8532, 18, 2625, 18, 12656, 1227, 12, 3168, 2218, 16728, 93, 17, 4644, 70, 5552, 73, 17, 90, 21, 6134, 1004, 18, 1227, 5358, 2932, 313, 267, 560, 18, 3813, 4819, 36, 75, 4408, 18, 832, 3113, 17528, 36, 30497, 85, 2051, 3113, 1004, 18, 3168, 13, 7429, 67, 7848, 273, 1004, 18, 967, 1759, 682, 12, 1650, 2218, 19, 7848, 87, 19, 1886, 19, 1152, 19, 2854, 19, 17, 19, 9561, 6134, 309, 729, 30, 880, 273, 3677, 18, 2640, 67, 21229, 67, 718, 12, 2890, 18, 2293, 18, 1650, 13, 880, 67, 1232, 955, 273, 296, 2 ]
{"type":tokenTypes["Characters"], "data":"This is a searchable index. Insert your search keywords here: "}) attributes = token["data"].copy()
{"type":tokenTypes["Characters"], "data":prompt}) attributes = token["data"].copy() if "action" in attributes: del attributes["action"] if "prompt" in attributes: del attributes["prompt"]
def startTagIsIndex(self, token): self.parser.parseError("deprecated-tag", {"name": "isindex"}) if self.tree.formPointer: return self.processStartTag(impliedTagToken("form", "StartTag")) self.processStartTag(impliedTagToken("hr", "StartTag")) self.processStartTag(impliedTagToken("p", "StartTag")) self.processStartTag(impliedTagToken("label", "StartTag")) # XXX Localization ... self.processCharacters( {"type":tokenTypes["Characters"], "data":"This is a searchable index. Insert your search keywords here: "}) attributes = token["data"].copy() #don't really need a copy here I think attributes["name"] = "isindex" self.processStartTag(impliedTagToken("input", "StartTag", attributes = attributes, selfClosing = token["selfClosing"])) self.processEndTag(impliedTagToken("label")) self.processEndTag(impliedTagToken("p")) self.processStartTag(impliedTagToken("hr", "StartTag")) self.processEndTag(impliedTagToken("form"))
3020a66862b5c04d850abb6b10186c1a39aee4c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9368/3020a66862b5c04d850abb6b10186c1a39aee4c9/html5parser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 2520, 1016, 12, 2890, 16, 1147, 4672, 365, 18, 4288, 18, 2670, 668, 2932, 14089, 17, 2692, 3113, 12528, 529, 6877, 315, 291, 1615, 6, 6792, 309, 365, 18, 3413, 18, 687, 4926, 30, 327, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 687, 3113, 315, 30512, 6, 3719, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 7256, 3113, 315, 30512, 6, 3719, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 84, 3113, 315, 30512, 6, 3719, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 1925, 3113, 315, 30512, 6, 3719, 468, 11329, 3566, 1588, 1372, 365, 18, 2567, 11600, 12, 12528, 723, 6877, 2316, 2016, 9614, 11600, 6, 6487, 315, 892, 6877, 13325, 6792, 1677, 273, 1147, 9614, 892, 6, 8009, 3530, 1435, 309, 315, 1128, 6, 316, 1677, 30, 1464, 1677, 9614, 1128, 11929, 309, 315, 13325, 6, 316, 1677, 30, 1464, 1677, 9614, 13325, 11929, 468, 19752, 1404, 8654, 1608, 279, 1610, 2674, 467, 15507, 1677, 9614, 529, 11929, 273, 315, 291, 1615, 6, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 2630, 3113, 315, 30512, 3113, 1677, 273, 1677, 16, 365, 15745, 273, 1147, 9614, 2890, 15745, 11929, 3719, 365, 18, 2567, 25633, 12, 381, 3110, 1805, 1345, 2932, 1925, 6, 3719, 365, 18, 2567, 25633, 12, 381, 3110, 1805, 1345, 2932, 84, 6, 3719, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 7256, 3113, 315, 30512, 6, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 1805, 2520, 1016, 12, 2890, 16, 1147, 4672, 365, 18, 4288, 18, 2670, 668, 2932, 14089, 17, 2692, 3113, 12528, 529, 6877, 315, 291, 1615, 6, 6792, 309, 365, 18, 3413, 18, 687, 4926, 30, 327, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 687, 3113, 315, 30512, 6, 3719, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 7256, 3113, 315, 30512, 6, 3719, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 84, 3113, 315, 30512, 6, 3719, 365, 18, 2567, 30512, 12, 381, 3110, 1805, 1345, 2932, 1925, 3113, 315, 30512, 6, 3719, 468, 11329, 3566, 1588, 1372, 365, 18, 2567, 11600, 12, 12528, 723, 6877, 2316, 2016, 9614, 11600, 2 ]
res.update({"False": "False", "True": "True", "user.id": "User"})
res.update({"False": "False", "True": "True", "User": "user.id"})
def _operand_get(self, cursor, user, obj_name='', level=3, recur=None, root_tech='', root=''): res = {} if not obj_name: obj_name = 'res.user' res.update({"False": "False", "True": "True", "user.id": "User"}) if not recur: recur = [] obj_fields = self.pool.get(obj_name).fields_get(cursor, user) key = obj_fields.keys() key.sort() for k in key:
415dc27e454010c170b6149badf91be14854a28f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/415dc27e454010c170b6149badf91be14854a28f/rule.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4063, 464, 67, 588, 12, 2890, 16, 3347, 16, 729, 16, 1081, 67, 529, 2218, 2187, 1801, 33, 23, 16, 8112, 33, 7036, 16, 1365, 67, 28012, 2218, 2187, 1365, 2218, 11, 4672, 400, 273, 2618, 309, 486, 1081, 67, 529, 30, 1081, 67, 529, 273, 296, 455, 18, 1355, 11, 400, 18, 2725, 12590, 6, 8381, 6877, 315, 8381, 3113, 315, 5510, 6877, 315, 5510, 3113, 315, 1299, 6877, 315, 1355, 18, 350, 6, 6792, 309, 486, 8112, 30, 8112, 273, 5378, 1081, 67, 2821, 273, 365, 18, 6011, 18, 588, 12, 2603, 67, 529, 2934, 2821, 67, 588, 12, 9216, 16, 729, 13, 498, 273, 1081, 67, 2821, 18, 2452, 1435, 498, 18, 3804, 1435, 364, 417, 316, 498, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 4063, 464, 67, 588, 12, 2890, 16, 3347, 16, 729, 16, 1081, 67, 529, 2218, 2187, 1801, 33, 23, 16, 8112, 33, 7036, 16, 1365, 67, 28012, 2218, 2187, 1365, 2218, 11, 4672, 400, 273, 2618, 309, 486, 1081, 67, 529, 30, 1081, 67, 529, 273, 296, 455, 18, 1355, 11, 400, 18, 2725, 12590, 6, 8381, 6877, 315, 8381, 3113, 315, 5510, 6877, 315, 5510, 3113, 315, 1299, 6877, 315, 1355, 18, 350, 6, 6792, 309, 486, 8112, 30, 8112, 273, 5378, 1081, 67, 2821, 273, 365, 18, 6011, 18, 588, 12, 2603, 67, 529, 2934, 2821, 67, 588, 12, 9216, 16, 729, 13, 498, 273, 1081, 67, 2821, 18, 2452, 1435, 498, 18, 3804, 1435, 2 ]
return replacement
return debug_info_replacement
def replacement(self, **form): try: if 'debugcount' not in form: raise ValueError('You must provide a debugcount parameter') debugcount = form.pop('debugcount') try: debugcount = int(debugcount) except ValueError: raise ValueError('Bad value for debugcount') if debugcount not in self.debug_infos: raise ValueError('Debug %s no longer found (maybe it has expired?)' % debugcount) debug_info = self.debug_infos[debugcount] return func(self, debug_info=debug_info, **form) except ValueError, e: form['headers']['status'] = '500 Server Error' return '<html>There was an error: %s</html>' % e
d0441ff28d999e1ade91f96ba9f46dc821fc0f2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/d0441ff28d999e1ade91f96ba9f46dc821fc0f2d/middleware.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6060, 12, 2890, 16, 2826, 687, 4672, 775, 30, 309, 296, 4148, 1883, 11, 486, 316, 646, 30, 1002, 2068, 2668, 6225, 1297, 5615, 279, 1198, 1883, 1569, 6134, 1198, 1883, 273, 646, 18, 5120, 2668, 4148, 1883, 6134, 775, 30, 1198, 1883, 273, 509, 12, 4148, 1883, 13, 1335, 2068, 30, 1002, 2068, 2668, 6434, 460, 364, 1198, 1883, 6134, 309, 1198, 1883, 486, 316, 365, 18, 4148, 67, 18227, 30, 1002, 2068, 2668, 2829, 738, 87, 1158, 7144, 1392, 261, 19133, 518, 711, 7708, 28897, 738, 1198, 1883, 13, 1198, 67, 1376, 273, 365, 18, 4148, 67, 18227, 63, 4148, 1883, 65, 327, 1326, 12, 2890, 16, 1198, 67, 1376, 33, 4148, 67, 1376, 16, 2826, 687, 13, 1335, 2068, 16, 425, 30, 646, 3292, 2485, 21712, 2327, 3546, 273, 296, 12483, 3224, 1068, 11, 327, 2368, 2620, 34, 9828, 1703, 392, 555, 30, 738, 87, 1757, 2620, 1870, 738, 425, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6060, 12, 2890, 16, 2826, 687, 4672, 775, 30, 309, 296, 4148, 1883, 11, 486, 316, 646, 30, 1002, 2068, 2668, 6225, 1297, 5615, 279, 1198, 1883, 1569, 6134, 1198, 1883, 273, 646, 18, 5120, 2668, 4148, 1883, 6134, 775, 30, 1198, 1883, 273, 509, 12, 4148, 1883, 13, 1335, 2068, 30, 1002, 2068, 2668, 6434, 460, 364, 1198, 1883, 6134, 309, 1198, 1883, 486, 316, 365, 18, 4148, 67, 18227, 30, 1002, 2068, 2668, 2829, 738, 87, 1158, 7144, 1392, 261, 19133, 518, 711, 7708, 28897, 738, 1198, 1883, 13, 1198, 67, 1376, 273, 365, 18, 4148, 67, 18227, 63, 4148, 1883, 65, 327, 1326, 12, 2890, 16, 1198, 67, 1376, 33, 4148, 67, 1376, 16, 2826, 2 ]
tz_value = _strptime.strptime("PDT", "%Z")[8]
tz_value = _strptime.strptime(tz_name, "%Z")[8]
def test_bad_timezone(self): # Explicitly test possibility of bad timezone; # when time.tzname[0] == time.tzname[1] and time.daylight if sys.platform == "mac": return #MacOS9 has severely broken timezone support. try: original_tzname = time.tzname original_daylight = time.daylight time.tzname = ("PDT", "PDT") time.daylight = 1 tz_value = _strptime.strptime("PDT", "%Z")[8] self.failUnlessEqual(tz_value, -1) finally: time.tzname = original_tzname time.daylight = original_daylight
73cb9cf18ef43f0249d6cf8e9a816681aea3a7c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/73cb9cf18ef43f0249d6cf8e9a816681aea3a7c8/test_strptime.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8759, 67, 12690, 12, 2890, 4672, 468, 24321, 715, 1842, 25547, 434, 5570, 6371, 31, 468, 1347, 813, 18, 12994, 529, 63, 20, 65, 422, 813, 18, 12994, 529, 63, 21, 65, 471, 813, 18, 2881, 5099, 309, 2589, 18, 9898, 422, 315, 5821, 6877, 327, 468, 9990, 4618, 29, 711, 6963, 2357, 12933, 6371, 2865, 18, 775, 30, 2282, 67, 12994, 529, 273, 813, 18, 12994, 529, 2282, 67, 2881, 5099, 273, 813, 18, 2881, 5099, 813, 18, 12994, 529, 273, 7566, 52, 9081, 3113, 315, 52, 9081, 7923, 813, 18, 2881, 5099, 273, 404, 6016, 67, 1132, 273, 389, 701, 10650, 18, 701, 10650, 12, 12994, 67, 529, 16, 2213, 62, 7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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 8759, 67, 12690, 12, 2890, 4672, 468, 24321, 715, 1842, 25547, 434, 5570, 6371, 31, 468, 1347, 813, 18, 12994, 529, 63, 20, 65, 422, 813, 18, 12994, 529, 63, 21, 65, 471, 813, 18, 2881, 5099, 309, 2589, 18, 9898, 422, 315, 5821, 6877, 327, 468, 9990, 4618, 29, 711, 6963, 2357, 12933, 6371, 2865, 18, 775, 30, 2282, 67, 12994, 529, 273, 813, 18, 12994, 529, 2282, 67, 2881, 5099, 273, 813, 18, 2881, 5099, 813, 18, 12994, 529, 273, 7566, 52, 9081, 3113, 315, 52, 9081, 7923, 813, 18, 2881, 5099, 273, 404, 6016, 67, 1132, 273, 389, 701, 10650, 18, 701, 10650, 12, 12994, 67, 529, 16, 2213, 62, 7923, 63, 28, 2 ]
res = res + cast[imag.typecode()](1j)*imag
try: res = res + _unit_imag[imag.typecode()] * imag except KeyError: res = res + 1j*imag
def _parse_mimatrix(fid,bytes): dclass, cmplx, nzmax =_parse_array_flags(fid) dims = _get_element(fid)[0] name = ''.join(asarray(_get_element(fid)[0]).astype('c')) tupdims = tuple(dims[::-1]) if dclass in mxArrays: result, unused =_get_element(fid) if type == mxCHAR_CLASS: result = ''.join(asarray(result).astype('c')) else: if cmplx: imag, unused =_get_element(fid) result = result + cast[imag.typecode()](1j) * imag result = squeeze(transpose(reshape(result,tupdims))) elif dclass == mxCELL_CLASS: length = product(dims) result = zeros(length, PyObject) for i in range(length): sa, unused = _get_element(fid) result[i]= sa result = squeeze(transpose(reshape(result,tupdims))) if rank(result)==0: result = result.toscalar() elif dclass == mxSTRUCT_CLASS: length = product(dims) result = zeros(length, PyObject) namelength = _get_element(fid)[0] # get field names names = _get_element(fid)[0] splitnames = [names[i:i+namelength] for i in \ xrange(0,len(names),namelength)] fieldnames = [''.join(asarray(x).astype('c')).strip('\x00') for x in splitnames] for i in range(length): result[i] = mat_struct() for element in fieldnames: val,unused = _get_element(fid) result[i].__dict__[element] = val result = squeeze(transpose(reshape(result,tupdims))) if rank(result)==0: result = result.toscalar() # object is like a structure with but with a class name elif dclass == mxOBJECT_CLASS: class_name = ''.join(asarray(_get_element(fid)[0]).astype('c')) length = product(dims) result = zeros(length, PyObject) namelength = _get_element(fid)[0] # get field names names = _get_element(fid)[0] splitnames = [names[i:i+namelength] for i in \ xrange(0,len(names),namelength)] fieldnames = [''.join(asarray(x).astype('c')).strip('\x00') for x in splitnames] for i in range(length): result[i] = mat_obj() result[i]._classname = class_name for element in fieldnames: val,unused = _get_element(fid) result[i].__dict__[element] = val result = squeeze(transpose(reshape(result,tupdims))) if rank(result)==0: result = result.toscalar() elif dclass == mxSPARSE_CLASS: rowind, unused = _get_element(fid) colind, unused = _get_element(fid) res, unused = _get_element(fid) if cmplx: imag, unused = _get_element(fid) res = res + cast[imag.typecode()](1j)*imag if have_sparse: spmat = scipy.sparse.csc_matrix(res, (rowind[:len(res)], colind), M=dims[0],N=dims[1]) result = spmat else: result = (dims, rowind, colind, res) return result, name
82336923e46646b284fc869728411818f823ced2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/82336923e46646b284fc869728411818f823ced2/mio.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 67, 81, 381, 1942, 12, 27268, 16, 3890, 4672, 302, 1106, 16, 5003, 412, 92, 16, 15062, 1896, 273, 67, 2670, 67, 1126, 67, 7133, 12, 27268, 13, 9914, 273, 389, 588, 67, 2956, 12, 27268, 25146, 20, 65, 508, 273, 875, 18, 5701, 12, 345, 1126, 24899, 588, 67, 2956, 12, 27268, 25146, 20, 65, 2934, 689, 388, 2668, 71, 26112, 15822, 8550, 273, 3193, 12, 8550, 63, 2866, 17, 21, 5717, 309, 302, 1106, 316, 7938, 12726, 30, 563, 16, 10197, 273, 67, 588, 67, 2956, 12, 27268, 13, 309, 618, 422, 7938, 7305, 67, 5237, 30, 563, 273, 875, 18, 5701, 12, 345, 1126, 12, 2088, 2934, 689, 388, 2668, 71, 26112, 469, 30, 309, 5003, 412, 92, 30, 8902, 16, 10197, 273, 67, 588, 67, 2956, 12, 27268, 13, 563, 273, 563, 397, 4812, 63, 15374, 18, 723, 710, 1435, 29955, 21, 78, 13, 380, 8902, 563, 273, 17173, 12, 2338, 4150, 12, 1955, 1273, 12, 2088, 16, 88, 416, 8550, 20349, 225, 1327, 302, 1106, 422, 7938, 27752, 67, 5237, 30, 769, 273, 3017, 12, 8550, 13, 563, 273, 4922, 12, 2469, 16, 4707, 921, 13, 364, 277, 316, 1048, 12, 2469, 4672, 7864, 16, 10197, 273, 389, 588, 67, 2956, 12, 27268, 13, 563, 63, 77, 65, 33, 7864, 563, 273, 17173, 12, 2338, 4150, 12, 1955, 1273, 12, 2088, 16, 88, 416, 8550, 20349, 309, 6171, 12, 2088, 13, 631, 20, 30, 563, 273, 563, 18, 14627, 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, 2670, 67, 81, 381, 1942, 12, 27268, 16, 3890, 4672, 302, 1106, 16, 5003, 412, 92, 16, 15062, 1896, 273, 67, 2670, 67, 1126, 67, 7133, 12, 27268, 13, 9914, 273, 389, 588, 67, 2956, 12, 27268, 25146, 20, 65, 508, 273, 875, 18, 5701, 12, 345, 1126, 24899, 588, 67, 2956, 12, 27268, 25146, 20, 65, 2934, 689, 388, 2668, 71, 26112, 15822, 8550, 273, 3193, 12, 8550, 63, 2866, 17, 21, 5717, 309, 302, 1106, 316, 7938, 12726, 30, 563, 16, 10197, 273, 67, 588, 67, 2956, 12, 27268, 13, 309, 618, 422, 7938, 7305, 67, 5237, 30, 563, 273, 875, 18, 5701, 12, 345, 1126, 12, 2088, 2934, 689, 388, 2668, 71, 26112, 469, 2 ]
value += self._safe_read(amt)
value.append(self._safe_read(amt))
def _read_chunked(self, amt): assert self.chunked != _UNKNOWN chunk_left = self.chunk_left value = b""
1a95b47e43d223629375829a9ba19835213e394a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/1a95b47e43d223629375829a9ba19835213e394a/client.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 896, 67, 6551, 329, 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, 389, 896, 67, 6551, 329, 12, 2890, 16, 25123, 4672, 1815, 365, 18, 6551, 329, 480, 389, 14737, 2441, 67, 4482, 273, 365, 18, 6551, 67, 4482, 460, 273, 324, 3660, 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 ]
def __findSubdirByMeta(self,meta,value,subdirFlag=True):
def __findSubdirByMeta( self, meta, value, subdirFlag = True ):
def __findSubdirByMeta(self,meta,value,subdirFlag=True): """ Find directories for the given meta datum. If the the meta datum type is a list, combine values in OR. In case the meta datum is 'Any', finds all the subdirectories for which the meta datum is defined at all. """ if type(value) == types.DictType: selectList = [] for operation,operand in value.items(): if operation in ['>','<','>=','<=']: if type(operand) == types.ListType: return S_ERROR('Illegal query: list of values for comparison operation') if type(operand) in [types.IntType,types.LongType]: selectList.append( "Value%s%d" % (operation,operand) ) elif type(operand) == types.FloatType: selectList.append( "Value%s%f" % (operation,operand) ) else: selectList.append( "Value%s'%s'" % (operation,operand) ) elif operation == 'in' or operation == "=": if type(operand) == types.ListType: vString = ','.join( [ "'"+str(x)+"'" for x in operand] ) selectList.append("Value IN (%s)" % vString) else: selectList.append("Value='%s'" % operand ) elif operation == 'nin' or operation == "!=": if type(operand) == types.ListType: vString = ','.join( [ "'"+str(x)+"'" for x in operand] ) selectList.append("Value NOT IN (%s)" % vString) else: selectList.append("Value!='%s'" % operand ) selectString = ' AND '.join(selectList) req = " SELECT DirID FROM FC_Meta_%s WHERE %s" % (meta,selectString) elif type(value) == types.ListType: vString = ','.join( [ "'"+str(x)+"'" for x in value] ) req = " SELECT DirID FROM FC_Meta_%s WHERE Value IN (%s) " % (meta,vString) else: if value == "Any": req = " SELECT DirID FROM FC_Meta_%s " % meta else: req = " SELECT DirID FROM FC_Meta_%s WHERE Value='%s' " % (meta,value) print req result = self._query(req) if not result['OK']: return result if not result['Value']: return S_OK([]) dirList = [] for row in result['Value']: dirID = row[0] dirList.append(dirID) if subdirFlag: result = self.dtree.getSubdirectoriesByID(dirID) if not result['OK']: return result dirList += result['Value'] return S_OK(dirList)
127f98379e5064d0a5d5df2ba7ce74c780770faa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/127f98379e5064d0a5d5df2ba7ce74c780770faa/DirectoryMetadata.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4720, 1676, 1214, 858, 2781, 12, 365, 16, 2191, 16, 460, 16, 16921, 4678, 273, 1053, 262, 30, 3536, 4163, 6402, 364, 326, 864, 2191, 12059, 18, 971, 326, 326, 2191, 12059, 618, 353, 279, 666, 16, 8661, 924, 316, 4869, 18, 657, 648, 326, 2191, 12059, 353, 296, 2961, 2187, 13094, 777, 326, 31220, 364, 1492, 326, 2191, 12059, 353, 2553, 622, 777, 18, 3536, 225, 309, 618, 12, 1132, 13, 422, 1953, 18, 5014, 559, 30, 2027, 682, 273, 5378, 364, 1674, 16, 4063, 464, 316, 460, 18, 3319, 13332, 309, 1674, 316, 10228, 1870, 11189, 32, 17023, 34, 33, 17023, 32, 2218, 14542, 309, 618, 12, 4063, 464, 13, 422, 1953, 18, 19366, 30, 327, 348, 67, 3589, 2668, 12195, 843, 30, 666, 434, 924, 364, 5826, 1674, 6134, 309, 618, 12, 4063, 464, 13, 316, 306, 2352, 18, 1702, 559, 16, 2352, 18, 3708, 559, 14542, 2027, 682, 18, 6923, 12, 315, 620, 9, 87, 9, 72, 6, 738, 261, 7624, 16, 4063, 464, 13, 262, 1327, 618, 12, 4063, 464, 13, 422, 1953, 18, 4723, 559, 30, 2027, 682, 18, 6923, 12, 315, 620, 9, 87, 9, 74, 6, 738, 261, 7624, 16, 4063, 464, 13, 262, 469, 30, 2027, 682, 18, 6923, 12, 315, 620, 9, 87, 11, 9, 87, 4970, 738, 261, 7624, 16, 4063, 464, 13, 262, 1327, 1674, 422, 296, 267, 11, 578, 1674, 422, 9671, 30, 309, 618, 12, 4063, 464, 13, 422, 1953, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 4720, 1676, 1214, 858, 2781, 12, 365, 16, 2191, 16, 460, 16, 16921, 4678, 273, 1053, 262, 30, 3536, 4163, 6402, 364, 326, 864, 2191, 12059, 18, 971, 326, 326, 2191, 12059, 618, 353, 279, 666, 16, 8661, 924, 316, 4869, 18, 657, 648, 326, 2191, 12059, 353, 296, 2961, 2187, 13094, 777, 326, 31220, 364, 1492, 326, 2191, 12059, 353, 2553, 622, 777, 18, 3536, 225, 309, 618, 12, 1132, 13, 422, 1953, 18, 5014, 559, 30, 2027, 682, 273, 5378, 364, 1674, 16, 4063, 464, 316, 460, 18, 3319, 13332, 309, 1674, 316, 10228, 1870, 11189, 32, 17023, 34, 33, 17023, 32, 2218, 14542, 309, 618, 12, 4063, 464, 13, 422, 1953, 18, 19366, 30, 2 ]
class BasicPasswordManager(object):
class BasicPasswordManager(urllib2.HTTPPasswordMgr):
def _getPathsToSearch(self, urlStr, suffixes): url = laUrl(urlStr)
b657130cf1c67f6da5b037b3909be8003264d29d /local1/tlutelli/issta_data/temp/all_python//python/2010_tem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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 588, 4466, 774, 2979, 12, 2890, 16, 25185, 16, 18333, 4672, 880, 273, 7125, 1489, 12, 718, 1585, 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 ]
wikipedia.output(u'No changes necessary: references tags found.')
wikipedia.output(u'No changes necessary: references tag found.')
def needsTreatment(self, page): # Show the title of the page we're working on. # Highlight the title in purple. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title()) try: oldText = page.get() oldTextCleaned = wikipedia.removeDisabledParts(oldText) if not self.refR.search(oldTextCleaned): wikipedia.output(u'No changes necessary: no ref tags found.') return False elif self.referencesR.search(oldTextCleaned): wikipedia.output(u'No changes necessary: references tags found.') return False else: for template in page.templates(): if template in self.referencesTemplates: wikipedia.output(u'No changes necessary: references template found.') return False wikipedia.output(u'Found ref without references.') return True except wikipedia.NoPage: wikipedia.output(u"Page %s does not exist?!" % page.aslink()) except wikipedia.IsRedirectPage: wikipedia.output(u"Page %s is a redirect; skipping." % page.aslink()) except wikipedia.LockedPage: wikipedia.output(u"Page %s is locked?!" % page.aslink()) return False
4f9a5c4c9ef35c7118dc79dc3fea9534ca34feaa /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/4f9a5c4c9ef35c7118dc79dc3fea9534ca34feaa/noreferences.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 4260, 56, 6150, 475, 12, 2890, 16, 1363, 4672, 468, 9674, 326, 2077, 434, 326, 1363, 732, 4565, 5960, 603, 18, 468, 31386, 326, 2077, 316, 5405, 1802, 18, 21137, 18, 2844, 12, 89, 12691, 82, 64, 82, 23012, 521, 4630, 95, 5099, 12688, 1802, 97, 9, 87, 64, 4630, 95, 1886, 97, 14360, 6, 738, 1363, 18, 2649, 10756, 775, 30, 1592, 1528, 273, 1363, 18, 588, 1435, 1592, 1528, 7605, 329, 273, 21137, 18, 4479, 8853, 4305, 12, 1673, 1528, 13, 309, 486, 365, 18, 1734, 54, 18, 3072, 12, 1673, 1528, 7605, 329, 4672, 21137, 18, 2844, 12, 89, 11, 2279, 3478, 4573, 30, 1158, 1278, 2342, 1392, 1093, 13, 327, 1083, 1327, 365, 18, 14353, 54, 18, 3072, 12, 1673, 1528, 7605, 329, 4672, 21137, 18, 2844, 12, 89, 11, 2279, 3478, 4573, 30, 5351, 1047, 1392, 1093, 13, 327, 1083, 469, 30, 364, 1542, 316, 1363, 18, 8502, 13332, 309, 1542, 316, 365, 18, 14353, 8218, 30, 21137, 18, 2844, 12, 89, 11, 2279, 3478, 4573, 30, 5351, 1542, 1392, 1093, 13, 327, 1083, 21137, 18, 2844, 12, 89, 11, 2043, 1278, 2887, 5351, 1093, 13, 327, 1053, 1335, 21137, 18, 2279, 1964, 30, 21137, 18, 2844, 12, 89, 6, 1964, 738, 87, 1552, 486, 1005, 35, 4442, 738, 1363, 18, 345, 1232, 10756, 1335, 21137, 18, 2520, 5961, 1964, 30, 21137, 18, 2844, 12, 89, 6, 1964, 738, 87, 353, 279, 3136, 31, 14195, 1199, 738, 1363, 18, 345, 1232, 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, 4260, 56, 6150, 475, 12, 2890, 16, 1363, 4672, 468, 9674, 326, 2077, 434, 326, 1363, 732, 4565, 5960, 603, 18, 468, 31386, 326, 2077, 316, 5405, 1802, 18, 21137, 18, 2844, 12, 89, 12691, 82, 64, 82, 23012, 521, 4630, 95, 5099, 12688, 1802, 97, 9, 87, 64, 4630, 95, 1886, 97, 14360, 6, 738, 1363, 18, 2649, 10756, 775, 30, 1592, 1528, 273, 1363, 18, 588, 1435, 1592, 1528, 7605, 329, 273, 21137, 18, 4479, 8853, 4305, 12, 1673, 1528, 13, 309, 486, 365, 18, 1734, 54, 18, 3072, 12, 1673, 1528, 7605, 329, 4672, 21137, 18, 2844, 12, 89, 11, 2279, 3478, 4573, 30, 1158, 1278, 2342, 1392, 1093, 13, 327, 1083, 1327, 365, 18, 2 ]
return S_ERROR('Parameter not found') else: return S_ERROR('Failed to access database')
return S_ERROR( 'Parameter not found' ) else: return S_ERROR( 'Failed to access database' )
def getJobOptParameter(self,jobID,parameter): """ Get optimizer parameters for the given job. """
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13024, 6179, 1662, 12, 2890, 16, 4688, 734, 16, 6775, 4672, 3536, 968, 13066, 1472, 364, 326, 864, 1719, 18, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 13024, 6179, 1662, 12, 2890, 16, 4688, 734, 16, 6775, 4672, 3536, 968, 13066, 1472, 364, 326, 864, 1719, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
parser.add_option("-l", "--user", action="store", dest="user",
optgrp.add_option("-S", action="store_true", dest="maxrc", help="return the largest of command return codes") optgrp.add_option("-b", "--dshbak", action="store_true", dest="gather", help="display results in a dshbak-like way") parser.add_option_group(optgrp) optgrp = optparse.OptionGroup(parser, "File copying") optgrp.add_option("-c", "--copy", action="store", dest="source_path", help="copy local file or directory to the nodes") optgrp.add_option("--dest", action="store", dest="dest_path", help="destination file or directory on the nodes") parser.add_option_group(optgrp) optgrp = optparse.OptionGroup(parser, "Ssh options") optgrp.add_option("-l", "--user", action="store", dest="user",
def clush_main(args): """Main clush script function""" # Default values nodeset_base, nodeset_exclude = NodeSet(), NodeSet() # # Argument management # usage = "%prog [options] command" parser = optparse.OptionParser(usage, version="%%prog %s" % version) parser.disable_interspersed_args() # Node selections optgrp = optparse.OptionGroup(parser, "Selecting target nodes") optgrp.add_option("-w", action="store", dest="nodes", help="nodes where to run the command") optgrp.add_option("-x", action="store", dest="exclude", help="exclude nodes from the node list") optgrp.add_option("-a", "--all", action="store_true", dest="nodes_all", help="run command on all nodes") optgrp.add_option("-g", "--group", action="store", dest="group", help="run command on a group of nodes") parser.add_option_group(optgrp) parser.add_option("-q", "--quiet", action="store_true", dest="quiet", help="be quiet, print essential output only") parser.add_option("-v", "--verbose", action="store_true", dest="verbose", help="be verbose, print informative messages") parser.add_option("-d", "--debug", action="store_true", dest="debug", help="output more messages for debugging purpose") parser.add_option("-N", action="store_false", dest="label", default=True, help="disable labeling of command line") parser.add_option("-l", "--user", action="store", dest="user", help="execute remote command as user") parser.add_option("-S", action="store_true", dest="maxrc", help="return the largest of command return codes") parser.add_option("-b", "--dshbak", action="store_true", dest="gather", help="display results in a dshbak-like way") # Copy parser.add_option("-c", "--copy", action="store", dest="source_path", help="copy local file or directory to the nodes") parser.add_option("--dest", action="store", dest="dest_path", help="destination file or directory on the nodes") parser.add_option("-f", "--fanout", action="store", dest="fanout", help="use a specified fanout", type="int") # Timeouts parser.add_option("-t", "--connect_timeout", action="store", dest="connect_timeout", help="limit time to connect to a node" ,type="int") parser.add_option("-u", "--command_timeout", action="store", dest="command_timeout", help="limit time for command to run on the node", type="int") (options, args) = parser.parse_args() # # Load config file # config = ClushConfig(options) # Apply command line overrides if options.quiet: config.set_main("verbosity", VERB_QUIET) if options.verbose: config.set_main("verbosity", VERB_VERB) if options.debug: config.set_main("verbosity", VERB_DEBUG) if options.fanout: config.set_main("fanout", overrides.fanout) if options.user: self.set_main("ssh_user", overrides.user) if options.connect_timeout: self.set_main("connect_timeout", overrides.connect_timeout) if options.command_timeout: self.set_main("command_timeout", overrides.command_timeout) # # Compute the nodeset # nodeset_base = NodeSet(options.nodes) nodeset_exclude = NodeSet(options.exclude) # Do we have nodes group? task = task_self() task.set_info("debug", config.get_verbosity() > 1) if options.nodes_all: command = config.get_nodes_all_command() task.shell(command, key="all") if options.group: command = config.get_nodes_group_command(options.group) task.shell(command, key="group") # Run needed external commands task.resume() for buf, keys in task.iter_buffers(): for line in buf.splitlines(): config.verbose_print(DEBUG, "Nodes from option %s: %s" % (','.join(keys), buf)) nodeset_base.add(line) # Do we have an exclude list? (-x ...) nodeset_base.difference_update(nodeset_exclude) if len(nodeset_base) < 1: parser.error('No node to run on.') config.verbose_print(VERB_DEBUG, "Final NodeSet is %s" % nodeset_base) # # Task management # stdin_isatty = sys.stdin.isatty() if stdin_isatty: # Standard input is a terminal and we want to perform some user # interactions in the main thread (using blocking calls), so # we run cluster commands in a new ClusterShell Task (a new # thread is created). task = Task() signal.signal(signal.SIGHUP, signal_handler) task.set_info("USER_handle_SIGHUP", True) else: # Perform everything in main thread. task.set_info("USER_handle_SIGHUP", False) timeout = 0 task.set_info("debug", config.get_verbosity() >= VERB_DEBUG) task.set_info("fanout", config.get_fanout() * 2) ssh_user = config.get_ssh_user() if ssh_user: task.set_info("ssh_user", ssh_user) ssh_path = config.get_ssh_path() if ssh_path: task.set_info("ssh_path", ssh_path) ssh_options = config.get_ssh_options() if ssh_options: task.set_info("ssh_options", ssh_options) connect_timeout = config.get_connect_timeout() task.set_info("connect_timeout", connect_timeout) timeout += connect_timeout command_timeout = config.get_command_timeout() task.set_info("command_timeout", command_timeout) if connect_timeout < 1e-3 or command_timeout < 1e-3: timeout = 0 else: timeout += command_timeout # Configure custom task related status task.set_info("USER_interactive", len(args) == 0 and not options.source_path) task.set_info("USER_running", False) if options.source_path and not options.dest_path: options.dest_path = options.source_path if options.source_path: if not options.dest_path: options.dest_path = options.source_path op = "copy source=%s dest=%s" % (options.source_path, options.dest_path) else: op = "command=\"%s\"" % ' '.join(args) config.verbose_print(VERB_VERB, "clush: nodeset=%s fanout=%d [timeout conn=%d " \ "cmd=%d] %s" % (nodeset_base, task.info("fanout")/2, task.info("connect_timeout"), task.info("command_timeout"), op)) if not task.info("USER_interactive"): if options.source_path: if not options.dest_path: options.dest_path = options.source_path run_copy(task, options.source_path, options.dest_path, nodeset_base, 0) else: run_command(task, ' '.join(args), nodeset_base, options.gather, timeout, options.label, config.get_verbosity()) if stdin_isatty: ttyloop(task, nodeset_base, options.gather, timeout, options.label, config.get_verbosity()) elif task.info("USER_interactive"): print >>sys.stderr, "ERROR: interactive mode requires a tty" os_.exit(1) # return the command retcode if options.maxrc: os._exit(task.max_retcode()) # return clush retcode else: os._exit(0)
96d07ce6e79c549159c502f12c931c42463ef2de /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11479/96d07ce6e79c549159c502f12c931c42463ef2de/clush.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 927, 1218, 67, 5254, 12, 1968, 4672, 3536, 6376, 927, 1218, 2728, 445, 8395, 225, 468, 2989, 924, 2199, 278, 67, 1969, 16, 2199, 278, 67, 10157, 273, 2029, 694, 9334, 2029, 694, 1435, 225, 468, 468, 5067, 11803, 468, 4084, 273, 2213, 14654, 306, 2116, 65, 1296, 6, 225, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 16, 1177, 1546, 11438, 14654, 738, 87, 6, 738, 1177, 13, 2082, 18, 8394, 67, 2761, 87, 457, 730, 67, 1968, 1435, 225, 468, 2029, 21738, 2153, 17532, 273, 2153, 2670, 18, 1895, 1114, 12, 4288, 16, 315, 3391, 310, 1018, 2199, 7923, 2153, 17532, 18, 1289, 67, 3482, 2932, 17, 91, 3113, 1301, 1546, 2233, 3113, 1570, 1546, 4690, 3113, 2809, 1546, 4690, 1625, 358, 1086, 326, 1296, 7923, 2153, 17532, 18, 1289, 67, 3482, 2932, 17, 92, 3113, 1301, 1546, 2233, 3113, 1570, 1546, 10157, 3113, 2809, 1546, 10157, 2199, 628, 326, 756, 666, 7923, 2153, 17532, 18, 1289, 67, 3482, 2932, 17, 69, 3113, 5238, 454, 3113, 1301, 1546, 2233, 67, 3767, 3113, 1570, 1546, 4690, 67, 454, 3113, 2809, 1546, 2681, 1296, 603, 777, 2199, 7923, 2153, 17532, 18, 1289, 67, 3482, 2932, 17, 75, 3113, 5238, 1655, 3113, 1301, 1546, 2233, 3113, 1570, 1546, 1655, 3113, 2809, 1546, 2681, 1296, 603, 279, 1041, 434, 2199, 7923, 225, 2082, 18, 1289, 67, 3482, 67, 1655, 12, 3838, 17532, 13, 225, 2082, 18, 1289, 67, 3482, 2932, 17, 85, 3113, 5238, 20380, 3113, 1301, 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, 927, 1218, 67, 5254, 12, 1968, 4672, 3536, 6376, 927, 1218, 2728, 445, 8395, 225, 468, 2989, 924, 2199, 278, 67, 1969, 16, 2199, 278, 67, 10157, 273, 2029, 694, 9334, 2029, 694, 1435, 225, 468, 468, 5067, 11803, 468, 4084, 273, 2213, 14654, 306, 2116, 65, 1296, 6, 225, 2082, 273, 2153, 2670, 18, 1895, 2678, 12, 9167, 16, 1177, 1546, 11438, 14654, 738, 87, 6, 738, 1177, 13, 2082, 18, 8394, 67, 2761, 87, 457, 730, 67, 1968, 1435, 225, 468, 2029, 21738, 2153, 17532, 273, 2153, 2670, 18, 1895, 1114, 12, 4288, 16, 315, 3391, 310, 1018, 2199, 7923, 2153, 17532, 18, 1289, 67, 3482, 2932, 17, 91, 3113, 1301, 1546, 2233, 3113, 1570, 1546, 2 ]
self.smtpServer[email.server_id.id].sendmail(str(email.server_id.email), email.to, tools.ustr(email.serialized_message))
msg= self._set_error(cr, uid, email.server_id.id, context) if msg in error_msg.keys(): queue.write(cr, uid, [email.id], {'error':error_msg[msg], 'state':'error'}) continue else: self.smtpServer[email.server_id.id].sendmail(str(email.server_id.email), email.to, tools.ustr(email.serialized_message))
def _send_emails(self, cr, uid, ids, context={}): fp = os.popen('ping www.google.com -c 1 -w 5',"r") if not fp.read(): return False queue = self.pool.get('email.smtpclient.queue') history = self.pool.get('email.smtpclient.history') queue.write(cr, uid, ids, {'state':'sending'}) error = [] sent = [] remove = [] open_server = [] for email in queue.browse(cr, uid, ids):
f0013a2bab5b38545f27bdafa1ba5cf23c99024c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7339/f0013a2bab5b38545f27bdafa1ba5cf23c99024c/smtpclient.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4661, 67, 22762, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 4253, 273, 1140, 18, 84, 3190, 2668, 1382, 8765, 18, 9536, 18, 832, 300, 71, 404, 300, 91, 1381, 2187, 6, 86, 7923, 309, 486, 4253, 18, 896, 13332, 327, 1083, 225, 2389, 273, 365, 18, 6011, 18, 588, 2668, 3652, 18, 87, 1010, 2436, 676, 18, 4000, 6134, 4927, 273, 365, 18, 6011, 18, 588, 2668, 3652, 18, 87, 1010, 2436, 676, 18, 8189, 6134, 2389, 18, 2626, 12, 3353, 16, 4555, 16, 3258, 16, 13666, 2019, 11, 2497, 87, 2846, 11, 6792, 555, 273, 5378, 3271, 273, 5378, 1206, 273, 5378, 1696, 67, 3567, 273, 5378, 364, 2699, 316, 2389, 18, 25731, 12, 3353, 16, 4555, 16, 3258, 4672, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 4661, 67, 22762, 12, 2890, 16, 4422, 16, 4555, 16, 3258, 16, 819, 12938, 4672, 4253, 273, 1140, 18, 84, 3190, 2668, 1382, 8765, 18, 9536, 18, 832, 300, 71, 404, 300, 91, 1381, 2187, 6, 86, 7923, 309, 486, 4253, 18, 896, 13332, 327, 1083, 225, 2389, 273, 365, 18, 6011, 18, 588, 2668, 3652, 18, 87, 1010, 2436, 676, 18, 4000, 6134, 4927, 273, 365, 18, 6011, 18, 588, 2668, 3652, 18, 87, 1010, 2436, 676, 18, 8189, 6134, 2389, 18, 2626, 12, 3353, 16, 4555, 16, 3258, 16, 13666, 2019, 11, 2497, 87, 2846, 11, 6792, 555, 273, 5378, 3271, 273, 5378, 1206, 273, 5378, 1696, 67, 3567, 273, 5378, 364, 2699, 316, 2389, 2 ]
log.debug("Started process %s" % self.pname)
log.debug("Started process %s: %s" % (self.pname, " ".join(self.cmd)))
def __init__(self, cmd, expect=EXPECT_EXIT_OK, drain=True): """Run cmd (should be a list of arguments) expect - if set verify expectation at end of test. drain - if true (default) drain stdout/stderr to files. """ if type(cmd) is type(""): cmd = [cmd] # Make it a list. self.cmd = [ str(x) for x in cmd ] popen2.Popen3.__init__(self, self.cmd, True) self.expect = expect self.pname = "%s-%d" % (os.path.split(self.cmd[0])[-1], self.pid) msg = "Process %s" % self.pname self.stdin = ExceptionWrapper(self.tochild, msg) self.stdout = Popen.OutStream(self.fromchild, self.outfile("out"), msg) self.stderr = Popen.OutStream(self.childerr, self.outfile("err"), msg) f = file(self.outfile("cmd"), "w") try: f.write(self.cmd_str()) finally: f.close() log.debug("Started process %s" % self.pname) if drain: self.drain()
3e3df38f1e52c70022c8b8d12e88f5772a29641f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/197/3e3df38f1e52c70022c8b8d12e88f5772a29641f/brokertest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 2738, 972, 12, 2890, 16, 1797, 16, 4489, 33, 2294, 1423, 1268, 67, 28682, 67, 3141, 16, 15427, 33, 5510, 4672, 3536, 1997, 1797, 261, 13139, 506, 279, 666, 434, 1775, 13, 4489, 300, 309, 444, 3929, 17733, 622, 679, 434, 1842, 18, 15427, 225, 300, 309, 638, 261, 1886, 13, 15427, 3909, 19, 11241, 358, 1390, 18, 3536, 309, 618, 12, 4172, 13, 353, 618, 2932, 6, 4672, 1797, 273, 306, 4172, 65, 468, 4344, 518, 279, 666, 18, 365, 18, 4172, 225, 273, 306, 609, 12, 92, 13, 364, 619, 316, 1797, 308, 30925, 22, 18, 52, 3190, 23, 16186, 2738, 972, 12, 2890, 16, 365, 18, 4172, 16, 1053, 13, 365, 18, 12339, 273, 4489, 365, 18, 84, 529, 273, 2213, 87, 6456, 72, 6, 738, 261, 538, 18, 803, 18, 4939, 12, 2890, 18, 4172, 63, 20, 5717, 18919, 21, 6487, 365, 18, 6610, 13, 1234, 273, 315, 2227, 738, 87, 6, 738, 365, 18, 84, 529, 365, 18, 21772, 273, 1185, 3611, 12, 2890, 18, 869, 3624, 16, 1234, 13, 365, 18, 10283, 273, 14339, 18, 1182, 1228, 12, 2890, 18, 2080, 3624, 16, 365, 18, 26050, 2932, 659, 6, 3631, 1234, 13, 365, 18, 11241, 273, 14339, 18, 1182, 1228, 12, 2890, 18, 3624, 370, 16, 365, 18, 26050, 2932, 370, 6, 3631, 1234, 13, 284, 273, 585, 12, 2890, 18, 26050, 2932, 4172, 6, 3631, 315, 91, 7923, 775, 30, 284, 18, 2626, 12, 2890, 18, 4172, 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, 1001, 2738, 972, 12, 2890, 16, 1797, 16, 4489, 33, 2294, 1423, 1268, 67, 28682, 67, 3141, 16, 15427, 33, 5510, 4672, 3536, 1997, 1797, 261, 13139, 506, 279, 666, 434, 1775, 13, 4489, 300, 309, 444, 3929, 17733, 622, 679, 434, 1842, 18, 15427, 225, 300, 309, 638, 261, 1886, 13, 15427, 3909, 19, 11241, 358, 1390, 18, 3536, 309, 618, 12, 4172, 13, 353, 618, 2932, 6, 4672, 1797, 273, 306, 4172, 65, 468, 4344, 518, 279, 666, 18, 365, 18, 4172, 225, 273, 306, 609, 12, 92, 13, 364, 619, 316, 1797, 308, 30925, 22, 18, 52, 3190, 23, 16186, 2738, 972, 12, 2890, 16, 365, 18, 4172, 16, 1053, 13, 365, 18, 12339, 273, 2 ]
_("Numeric entity couldn't be converted to character.")})
_("Numeric entity couldn't be converted to character (codepoint: U+%08x).") % charAsInt}) else: char = u"\uFFFD" self.tokenQueue.append({"type": "ParseError", "data": _("Numeric entity represents an illegal codepoint: U+%08x.") % charAsInt})
def consumeNumberEntity(self, isHex): """This function returns either U+FFFD or the character based on the decimal or hexadecimal representation. It also discards ";" if present. If not present self.tokenQueue.append({"type": "ParseError"}) is invoked. """
3b3d37440d70ae4e98b98ada10860ecb71ad4bd2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10463/3b3d37440d70ae4e98b98ada10860ecb71ad4bd2/tokenizer.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7865, 1854, 1943, 12, 2890, 16, 353, 7037, 4672, 3536, 2503, 445, 1135, 3344, 587, 15, 2246, 16894, 578, 326, 3351, 2511, 603, 326, 6970, 578, 20070, 4335, 18, 2597, 2546, 10388, 87, 11430, 309, 3430, 18, 971, 486,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7865, 1854, 1943, 12, 2890, 16, 353, 7037, 4672, 3536, 2503, 445, 1135, 3344, 587, 15, 2246, 16894, 578, 326, 3351, 2511, 603, 326, 6970, 578, 20070, 4335, 18, 2597, 2546, 10388, 87, 11430, 309, 3430, 18, 971, 486, 3430, 365, 18, 2316, 3183, 18, 6923, 12590, 6, 723, 6877, 315, 21004, 6, 6792, 353, 8187, 18, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
phiarray = n.empty((len(bandpasslist), len(bandpasslist[0].phi)), dtype='float')
phiarray = n.empty((len(bandpasslist), len(bandpasslist[0].wavelen)), dtype='float')
def setupPhiArray(self, bandpasslist): """Sets up a 2-d numpy phi array from bandpasslist suitable for input to manyMagCalc.
6368bc9141344c53f05c743661f18e35eea1ff29 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/91/6368bc9141344c53f05c743661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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 3875, 31905, 1076, 12, 2890, 16, 8937, 5466, 1098, 4672, 3536, 2785, 731, 279, 576, 17, 72, 3972, 7706, 526, 628, 8937, 5466, 1098, 10631, 364, 810, 358, 4906, 11372, 25779, 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 ]
def get_alphabetically_ordered_collection_list(level=0):
def get_alphabetically_ordered_collection_list(level=0, ln=cdslang):
def get_alphabetically_ordered_collection_list(level=0): """Returns nicely ordered (score respected) list of collections, more exactly list of tuples (collection name, printable collection name). Suitable for create_search_box().""" out = [] query = "SELECT id,name FROM collection ORDER BY name ASC" res = run_sql(query) for c_id, c_name in res: # make a nice printable name (e.g. truncate c_printable for for long collection names): if len(c_name)>30: c_printable = c_name[:30] + "..." else: c_printable = c_name if level: c_printable = " " + level * '-' + " " + c_printable out.append([c_name, c_printable]) return out
52e97757d0b9b7898bdc5d9d4e74647b1dbff5ca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2139/52e97757d0b9b7898bdc5d9d4e74647b1dbff5ca/search_engine.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 336, 67, 287, 8907, 6478, 67, 9885, 67, 5548, 67, 1098, 12, 2815, 33, 20, 16, 7211, 33, 4315, 2069, 539, 4672, 3536, 1356, 11562, 2357, 5901, 261, 6355, 400, 1789, 13, 666, 434, 6980, 16, 1898, 8950, 666, 434, 10384, 261, 5548, 508, 16, 23474, 1849, 508, 2934, 348, 89, 9085, 364, 752, 67, 3072, 67, 2147, 1435, 12123, 596, 273, 5378, 843, 273, 315, 4803, 612, 16, 529, 4571, 1849, 10205, 6953, 508, 8310, 6, 400, 273, 1086, 67, 4669, 12, 2271, 13, 364, 276, 67, 350, 16, 276, 67, 529, 316, 400, 30, 468, 1221, 279, 13752, 23474, 508, 261, 73, 18, 75, 18, 10310, 276, 67, 1188, 429, 364, 364, 1525, 1849, 1257, 4672, 309, 562, 12, 71, 67, 529, 13, 34, 5082, 30, 276, 67, 1188, 429, 273, 276, 67, 529, 10531, 5082, 65, 397, 26456, 469, 30, 276, 67, 1188, 429, 273, 276, 67, 529, 309, 1801, 30, 276, 67, 1188, 429, 273, 315, 315, 397, 1801, 380, 4014, 397, 315, 315, 397, 276, 67, 1188, 429, 596, 18, 6923, 3816, 71, 67, 529, 16, 276, 67, 1188, 429, 5717, 327, 596, 225, 2, 0, 0, 0, 0, 0, 0, 0, 0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, 539, 4672, 3536, 1356, 11562, 2357, 5901, 261, 6355, 400, 1789, 13, 666, 434, 6980, 16, 1898, 8950, 666, 434, 10384, 261, 5548, 508, 16, 23474, 1849, 508, 2934, 348, 89, 9085, 364, 752, 67, 3072, 67, 2147, 1435, 12123, 596, 273, 5378, 843, 273, 315, 4803, 612, 16, 529, 4571, 1849, 10205, 6953, 508, 8310, 6, 400, 273, 1086, 67, 4669, 12, 2271, 13, 364, 276, 67, 350, 16, 276, 67, 529, 316, 400, 30, 468, 1221, 279, 13752, 23474, 508, 261, 73, 18, 75, 18, 10310, 276, 67, 1188, 429, 364, 364, 1525, 1849, 1257, 4672, 2 ]
parser.add_option("-a", "--account-name", type="string", dest="account_name", help="The account name from which to read account settings. Corresponds to section Account_NAME in the configuration file.")
parser.add_option("-a", "--account-name", type="string", dest="account_name", help="The name of the account to use.")
def _NH_SCEngineGotException(self, notification): self.output.put('An exception occured within the SIP core:\n'+notification.data.traceback)
00e4b910a24065a9280d35c46aae6f5f73364490 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/00e4b910a24065a9280d35c46aae6f5f73364490/sip_register.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 2312, 4410, 15617, 503, 12, 2890, 16, 3851, 4672, 365, 18, 2844, 18, 458, 2668, 979, 1520, 16206, 3470, 326, 348, 2579, 2922, 5581, 82, 11, 15, 9927, 18, 892, 18, 21696, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 50, 44, 67, 2312, 4410, 15617, 503, 12, 2890, 16, 3851, 4672, 365, 18, 2844, 18, 458, 2668, 979, 1520, 16206, 3470, 326, 348, 2579, 2922, 5581, 82, 11, 15, 9927, 18, 892, 18, 21696, 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 ]
psfClumpIxx, psfClumIxy, psfClumpIyy = IzzMin, 0, IzzMin
psfClumpIxx, psfClumpIxy, psfClumpIyy = IzzMin, 0, IzzMin
def goodPsfCandidate(source): """Should this object be included in the Ixx v. Iyy image?"""
7cf529eed24b34c640f1e4bd8ab65b773e9f961f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6523/7cf529eed24b34c640f1e4bd8ab65b773e9f961f/MeasureSources.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7494, 18124, 74, 11910, 12, 3168, 4672, 3536, 14309, 333, 733, 506, 5849, 316, 326, 467, 5279, 331, 18, 467, 6795, 1316, 35, 8395, 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, 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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, 7494, 18124, 74, 11910, 12, 3168, 4672, 3536, 14309, 333, 733, 506, 5849, 316, 326, 467, 5279, 331, 18, 467, 6795, 1316, 35, 8395, 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 ]
P=1, Q=-1 fives the Fibonacci sequence.
P=1, Q=-1 gives the Fibonacci sequence.
def lucas_number1(n,P,Q): """ Returns then n-th Lucas number ``of the first kind'' (this is not standard terminology). The Lucas sequence $L^{(1)}_n$ is defined by the initial conditions $L^{(1)}_1=0$, $L^{(1)}_2=1$ and the recurrence relation $L^{(1)}_{n+2} = P*L^{(1)}_{n+1} - Q*L^{(1)}_n$. Wraps GAP's Lucas(...)[1]. P=1, Q=-1 fives the Fibonacci sequence. INPUT: n -- integer P, Q -- integer or rational numbers OUTPUT: integer or rational number EXAMPLES: sage: lucas_number1(5,1,-1) 5 sage: lucas_number1(6,1,-1) 8 sage: lucas_number1(7,1,-1) 13 sage: lucas_number1(7,1,-2) 43 sage: lucas_number1(5,2,3/5) 229/25 sage: lucas_number1(5,2,1.5) Traceback (most recent call last): ... TypeError: no canonical coercion from Real Field with 53 bits of precision to Rational Field There was a conjecture that the sequence $L_n$ defined by $L_{n+2} = L_{n+1} + L_n$, $L_1=1$, $L_2=3$, has the property that $n$ prime implies that $L_n$ is prime. sage: lucas = lambda n:(5/2)*lucas_number1(n,1,-1)+(1/2)*lucas_number2(n,1,-1) sage: [[lucas(n),is_prime(lucas(n)),n+1,is_prime(n+1)] for n in range(15)] [[1, False, 1, False], [3, True, 2, True], [4, False, 3, True], [7, True, 4, False], [11, True, 5, True], [18, False, 6, False], [29, True, 7, True], [47, True, 8, False], [76, False, 9, False], [123, False, 10, False], [199, True, 11, True], [322, False, 12, False], [521, True, 13, True], [843, False, 14, False], [1364, False, 15, False]] Can you use SAGE to find a counterexample to the conjecture? """ ans=gap.eval("Lucas(%s,%s,%s)[1]"%(QQ._coerce_(P),QQ._coerce_(Q),ZZ(n))) return sage_eval(ans)
124156ba54f96d76a32e2d36a03086ee3fd0aea4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/124156ba54f96d76a32e2d36a03086ee3fd0aea4/combinat.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 328, 5286, 345, 67, 2696, 21, 12, 82, 16, 52, 16, 53, 4672, 3536, 2860, 1508, 290, 17, 451, 511, 5286, 345, 1300, 12176, 792, 326, 1122, 3846, 6309, 261, 2211, 353, 486, 4529, 16122, 4676, 2934, 1021, 511, 5286, 345, 3102, 271, 48, 66, 95, 12, 21, 13, 9044, 82, 8, 353, 2553, 635, 326, 2172, 4636, 271, 48, 66, 95, 12, 21, 13, 9044, 21, 33, 20, 8, 16, 271, 48, 66, 95, 12, 21, 13, 9044, 22, 33, 21, 8, 471, 326, 25939, 2533, 271, 48, 66, 95, 12, 21, 13, 26197, 82, 15, 22, 97, 273, 453, 14, 48, 66, 95, 12, 21, 13, 26197, 82, 15, 21, 97, 300, 2238, 14, 48, 66, 95, 12, 21, 13, 9044, 82, 8, 18, 225, 678, 7506, 611, 2203, 1807, 511, 5286, 345, 5825, 25146, 21, 8009, 225, 453, 33, 21, 16, 2238, 29711, 21, 14758, 326, 478, 495, 265, 8981, 77, 3102, 18, 225, 12943, 30, 290, 1493, 3571, 453, 16, 2238, 1493, 3571, 578, 436, 8371, 5600, 225, 11550, 30, 3571, 578, 436, 8371, 1300, 225, 5675, 8900, 11386, 30, 272, 410, 30, 328, 5286, 345, 67, 2696, 21, 12, 25, 16, 21, 16, 17, 21, 13, 1381, 272, 410, 30, 328, 5286, 345, 67, 2696, 21, 12, 26, 16, 21, 16, 17, 21, 13, 1725, 272, 410, 30, 328, 5286, 345, 67, 2696, 21, 12, 27, 16, 21, 16, 17, 21, 13, 5958, 272, 410, 30, 328, 5286, 345, 67, 2696, 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, 328, 5286, 345, 67, 2696, 21, 12, 82, 16, 52, 16, 53, 4672, 3536, 2860, 1508, 290, 17, 451, 511, 5286, 345, 1300, 12176, 792, 326, 1122, 3846, 6309, 261, 2211, 353, 486, 4529, 16122, 4676, 2934, 1021, 511, 5286, 345, 3102, 271, 48, 66, 95, 12, 21, 13, 9044, 82, 8, 353, 2553, 635, 326, 2172, 4636, 271, 48, 66, 95, 12, 21, 13, 9044, 21, 33, 20, 8, 16, 271, 48, 66, 95, 12, 21, 13, 9044, 22, 33, 21, 8, 471, 326, 25939, 2533, 271, 48, 66, 95, 12, 21, 13, 26197, 82, 15, 22, 97, 273, 453, 14, 48, 66, 95, 12, 21, 13, 26197, 82, 15, 21, 97, 300, 2238, 14, 48, 66, 2 ]
def start_editing_cb(self, treeview, event):
def start_editing(self, treeview, event):
def start_editing_cb(self, treeview, event): """Make the treeview grab the focus and start editing the cell that the user has clicked to avoid confusion with two or three clicks before editing a keybinding.
de00492a8254b0d7a402011a0823338d7843934d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11147/de00492a8254b0d7a402011a0823338d7843934d/prefs.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 4619, 310, 12, 2890, 16, 2151, 1945, 16, 871, 4672, 3536, 6464, 326, 2151, 1945, 11086, 326, 7155, 471, 787, 15755, 326, 2484, 716, 326, 729, 711, 17688, 358, 4543, 31067, 598, 2795, 578, 8925, 27659, 1865, 15755, 279, 498, 7374, 18, 2, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 787, 67, 4619, 310, 12, 2890, 16, 2151, 1945, 16, 871, 4672, 3536, 6464, 326, 2151, 1945, 11086, 326, 7155, 471, 787, 15755, 326, 2484, 716, 326, 729, 711, 17688, 358, 4543, 31067, 598, 2795, 578, 8925, 27659, 1865, 15755, 279, 498, 7374, 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 ]
self._text_ctrl.Remove(self._text_ctrl.GetCaretPosition(), self._text_ctrl.GetLastPosition())
if (has_caret_accessors): self._text_ctrl.Remove(self._text_ctrl.GetCaretPosition(), self._text_ctrl.GetLastPosition())
def _write_status(self, status): self._text_ctrl.Freeze() self._text_ctrl.SetCaretPosition(0) self._text_ctrl.SetBasicStyle(self._basic_style) self._text_ctrl.SetDefaultStyle(self._default_style) self._set_kv("Full name", status.name) self._set_kv("Component", status.name.split('/')[-1]) self._set_kv("Hardware ID", status.hardware_id) self._set_kv("Level", stat_dict[status.level], self._last_status is not None and self._last_status.level != status.level) self._set_kv("Message", status.message, self._last_status is not None and self._last_status.message != status.message) self._text_ctrl.Newline() for value in status.values: changed = False if (self._last_values.has_key(value.key) and self._last_values[value.key] != value.value): changed = True self._set_kv(value.key, value.value, changed) self._last_values[value.key] = value.value self._text_ctrl.EndAllStyles() self._text_ctrl.Remove(self._text_ctrl.GetCaretPosition(), self._text_ctrl.GetLastPosition()) self._text_ctrl.Thaw() self._last_status = status
b8b89a6c02af50a92d4b90909cbe9df3af6f5f9f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10233/b8b89a6c02af50a92d4b90909cbe9df3af6f5f9f/viewer_panel.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 2327, 12, 2890, 16, 1267, 4672, 365, 6315, 955, 67, 16277, 18, 9194, 8489, 1435, 225, 365, 6315, 955, 67, 16277, 18, 694, 39, 20731, 2555, 12, 20, 13, 225, 365, 6315, 955, 67, 16277, 18, 694, 8252, 2885, 12, 2890, 6315, 13240, 67, 4060, 13, 365, 6315, 955, 67, 16277, 18, 694, 1868, 2885, 12, 2890, 6315, 1886, 67, 4060, 13, 365, 6315, 542, 67, 18152, 2932, 5080, 508, 3113, 1267, 18, 529, 13, 365, 6315, 542, 67, 18152, 2932, 1841, 3113, 1267, 18, 529, 18, 4939, 2668, 2473, 13, 18919, 21, 5717, 365, 6315, 542, 67, 18152, 2932, 44, 14519, 1599, 3113, 1267, 18, 25118, 67, 350, 13, 365, 6315, 542, 67, 18152, 2932, 2355, 3113, 610, 67, 1576, 63, 2327, 18, 2815, 6487, 365, 6315, 2722, 67, 2327, 353, 486, 599, 471, 365, 6315, 2722, 67, 2327, 18, 2815, 480, 1267, 18, 2815, 13, 365, 6315, 542, 67, 18152, 2932, 1079, 3113, 1267, 18, 2150, 16, 365, 6315, 2722, 67, 2327, 353, 486, 599, 471, 365, 6315, 2722, 67, 2327, 18, 2150, 480, 1267, 18, 2150, 13, 365, 6315, 955, 67, 16277, 18, 26754, 1435, 225, 364, 460, 316, 1267, 18, 2372, 30, 3550, 273, 1083, 309, 261, 2890, 6315, 2722, 67, 2372, 18, 5332, 67, 856, 12, 1132, 18, 856, 13, 471, 365, 6315, 2722, 67, 2372, 63, 1132, 18, 856, 65, 480, 460, 18, 1132, 4672, 3550, 273, 1053, 225, 365, 6315, 542, 67, 18152, 12, 1132, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2626, 67, 2327, 12, 2890, 16, 1267, 4672, 365, 6315, 955, 67, 16277, 18, 9194, 8489, 1435, 225, 365, 6315, 955, 67, 16277, 18, 694, 39, 20731, 2555, 12, 20, 13, 225, 365, 6315, 955, 67, 16277, 18, 694, 8252, 2885, 12, 2890, 6315, 13240, 67, 4060, 13, 365, 6315, 955, 67, 16277, 18, 694, 1868, 2885, 12, 2890, 6315, 1886, 67, 4060, 13, 365, 6315, 542, 67, 18152, 2932, 5080, 508, 3113, 1267, 18, 529, 13, 365, 6315, 542, 67, 18152, 2932, 1841, 3113, 1267, 18, 529, 18, 4939, 2668, 2473, 13, 18919, 21, 5717, 365, 6315, 542, 67, 18152, 2932, 44, 14519, 1599, 3113, 1267, 18, 25118, 67, 350, 13, 365, 6315, 542, 67, 18152, 2 ]
def write(self, text): return self.irc.write(text)
def write(self, text, channels = None): return self.irc.write(text, channels)
def write(self, text): return self.irc.write(text)
c6c43fc22cddaf89dc6f1baff5e8c0504474ee3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13981/c6c43fc22cddaf89dc6f1baff5e8c0504474ee3d/ircbot.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1045, 12, 2890, 16, 977, 4672, 327, 365, 18, 481, 71, 18, 2626, 12, 955, 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, 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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, 1045, 12, 2890, 16, 977, 4672, 327, 365, 18, 481, 71, 18, 2626, 12, 955, 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 ]
def followup(self, inj, ifo ):
def followup(self, inj, ifo, tag = None ):
def followup(self, inj, ifo ): """ Do the followup procedure for the missed injection 'inj' and create the several time-series for INSPIRAL, THINCA and the trigbank. The return value is the name of the created html file @param inj: sim_inspiral table of the missed injection @param ifo : The current IFO """ def fillTable(page, contents ): """ Making life easier... """
098f1967c466e5dd8f2c3c2287152a59fa7af9cc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3592/098f1967c466e5dd8f2c3c2287152a59fa7af9cc/followup_missed.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2805, 416, 12, 2890, 16, 316, 78, 16, 21479, 16, 1047, 273, 599, 262, 30, 3536, 2256, 326, 2805, 416, 12131, 364, 326, 25143, 10380, 296, 267, 78, 11, 471, 752, 326, 11392, 813, 17, 10222, 364, 2120, 22694, 54, 1013, 16, 7662, 706, 3587, 471, 326, 23142, 10546, 18, 1021, 327, 460, 353, 326, 508, 434, 326, 2522, 1729, 585, 632, 891, 316, 78, 30, 3142, 67, 267, 1752, 481, 287, 1014, 434, 326, 25143, 10380, 632, 891,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 2805, 416, 12, 2890, 16, 316, 78, 16, 21479, 16, 1047, 273, 599, 262, 30, 3536, 2256, 326, 2805, 416, 12131, 364, 326, 25143, 10380, 296, 267, 78, 11, 471, 752, 326, 11392, 813, 17, 10222, 364, 2120, 22694, 54, 1013, 16, 7662, 706, 3587, 471, 326, 23142, 10546, 18, 1021, 327, 460, 353, 326, 508, 434, 326, 2522, 1729, 585, 632, 891, 316, 78, 30, 3142, 67, 267, 1752, 481, 287, 1014, 434, 326, 25143, 10380, 632, 891, 21479, 294, 1021, 783, 467, 3313, 3536, 225, 1652, 3636, 1388, 12, 2433, 16, 2939, 262, 30, 3536, 490, 6159, 17140, 15857, 2777, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
self.match_files(self.unmatched_files.files)
def _finalize_loading(self, error): if error: self.metadata.clear() self.metadata['album'] = _("[couldn't load album %s]") % self.id del self._new_metadata del self._new_tracks self.update() else: if not self._requests: for old_track, new_track in zip(self.tracks, self._new_tracks): for file in old_track.linked_files: new_track.linked_files.append(file) file.parent = new_track file.metadata.copy(new_track.metadata) file.update(signal=False) for track in self.tracks[len(self._new_tracks):]: for file in track.linked_files: file.move(self.unmatched_files) self.metadata = self._new_metadata self.tracks = self._new_tracks del self._new_metadata del self._new_tracks self.loaded = True for track in self.tracks: for file in track.linked_files: if file.orig_metadata: self.match_release_event(file.orig_metadata) break self.update() self.tagger.window.set_statusbar_message('Album %s loaded', self.id, timeout=3000) self.match_files(self.unmatched_files.files)
0c55a459eb50ce4b26b7ab5b2ee645981f862c2d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12415/0c55a459eb50ce4b26b7ab5b2ee645981f862c2d/album.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 30343, 67, 15174, 12, 2890, 16, 555, 4672, 309, 555, 30, 365, 18, 4165, 18, 8507, 1435, 365, 18, 4165, 3292, 25090, 3546, 273, 389, 2932, 63, 15195, 82, 1404, 1262, 14844, 738, 87, 4279, 13, 738, 365, 18, 350, 1464, 365, 6315, 2704, 67, 4165, 1464, 365, 6315, 2704, 67, 21499, 365, 18, 2725, 1435, 469, 30, 309, 486, 365, 6315, 11420, 30, 364, 1592, 67, 4101, 16, 394, 67, 4101, 316, 3144, 12, 2890, 18, 21499, 16, 365, 6315, 2704, 67, 21499, 4672, 364, 585, 316, 1592, 67, 4101, 18, 17738, 67, 2354, 30, 394, 67, 4101, 18, 17738, 67, 2354, 18, 6923, 12, 768, 13, 585, 18, 2938, 273, 394, 67, 4101, 585, 18, 4165, 18, 3530, 12, 2704, 67, 4101, 18, 4165, 13, 585, 18, 2725, 12, 10420, 33, 8381, 13, 364, 3298, 316, 365, 18, 21499, 63, 1897, 12, 2890, 6315, 2704, 67, 21499, 4672, 14542, 364, 585, 316, 3298, 18, 17738, 67, 2354, 30, 585, 18, 8501, 12, 2890, 18, 318, 11073, 67, 2354, 13, 365, 18, 4165, 273, 365, 6315, 2704, 67, 4165, 365, 18, 21499, 273, 365, 6315, 2704, 67, 21499, 1464, 365, 6315, 2704, 67, 4165, 1464, 365, 6315, 2704, 67, 21499, 365, 18, 4230, 273, 1053, 364, 3298, 316, 365, 18, 21499, 30, 364, 585, 316, 3298, 18, 17738, 67, 2354, 30, 309, 585, 18, 4949, 67, 4165, 30, 365, 18, 1916, 67, 9340, 67, 2575, 12, 768, 18, 4949, 67, 4165, 13, 898, 365, 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, 30343, 67, 15174, 12, 2890, 16, 555, 4672, 309, 555, 30, 365, 18, 4165, 18, 8507, 1435, 365, 18, 4165, 3292, 25090, 3546, 273, 389, 2932, 63, 15195, 82, 1404, 1262, 14844, 738, 87, 4279, 13, 738, 365, 18, 350, 1464, 365, 6315, 2704, 67, 4165, 1464, 365, 6315, 2704, 67, 21499, 365, 18, 2725, 1435, 469, 30, 309, 486, 365, 6315, 11420, 30, 364, 1592, 67, 4101, 16, 394, 67, 4101, 316, 3144, 12, 2890, 18, 21499, 16, 365, 6315, 2704, 67, 21499, 4672, 364, 585, 316, 1592, 67, 4101, 18, 17738, 67, 2354, 30, 394, 67, 4101, 18, 17738, 67, 2354, 18, 6923, 12, 768, 13, 585, 18, 2938, 273, 394, 67, 4101, 585, 18, 2 ]
self.chat_transport.start(remote_sdp[self._chat_sdp_index])
self.chat_transport.start(remote_sdp.media[self._chat_sdp_index])
def _update_chat(self, remote_sdp): if self.chat_transport.is_active: # TODO: what do we do with new SDP? pass else: self.chat_transport.start(remote_sdp[self._chat_sdp_index])
de0d1b5abb0da93ebe0cb7de23b22fac6927b5c0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/de0d1b5abb0da93ebe0cb7de23b22fac6927b5c0/session.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2725, 67, 10880, 12, 2890, 16, 2632, 67, 6427, 84, 4672, 309, 365, 18, 10880, 67, 13049, 18, 291, 67, 3535, 30, 468, 2660, 30, 4121, 741, 732, 741, 598, 394, 348, 8640, 35, 1342, 469, 30, 365, 18, 10880, 67, 13049, 18, 1937, 12, 7222, 67, 6427, 84, 63, 2890, 6315, 10880, 67, 6427, 84, 67, 1615, 5717, 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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1652, 389, 2725, 67, 10880, 12, 2890, 16, 2632, 67, 6427, 84, 4672, 309, 365, 18, 10880, 67, 13049, 18, 291, 67, 3535, 30, 468, 2660, 30, 4121, 741, 732, 741, 598, 394, 348, 8640, 35, 1342, 469, 30, 365, 18, 10880, 67, 13049, 18, 1937, 12, 7222, 67, 6427, 84, 63, 2890, 6315, 10880, 67, 6427, 84, 67, 1615, 5717, 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 ]
events = p.wait(4, 1)
events = p.wait(4, 1000)
def testControlAndWait(self): port = socket.socket() port.bind(('127.0.0.1', 0)) port.listen(1)
09f1fc70826634fec0dd123a6028d58c0f14463b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/09f1fc70826634fec0dd123a6028d58c0f14463b/test_epoll.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3367, 1876, 5480, 12, 2890, 4672, 1756, 273, 2987, 18, 7814, 1435, 1756, 18, 4376, 12, 2668, 14260, 18, 20, 18, 20, 18, 21, 2187, 374, 3719, 1756, 18, 18085, 12, 21, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 3367, 1876, 5480, 12, 2890, 4672, 1756, 273, 2987, 18, 7814, 1435, 1756, 18, 4376, 12, 2668, 14260, 18, 20, 18, 20, 18, 21, 2187, 374, 3719, 1756, 18, 18085, 12, 21, 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 ]
return self._parseExpr().data
return self._stripArray(self._parseExpr().data)
def _parse(self): dataLexeme = self.lexer.nextExprHdr() self._debugLog(dataLexeme, isRexpr=False) if dataLexeme.rTypeCode == DT_SEXP: return self._parseExpr().data else: raise NotImplementedError()
3e66c7a7cf3384248fc78eb4b3b177eb3e6c2421 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8984/3e66c7a7cf3384248fc78eb4b3b177eb3e6c2421/rparser.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2670, 12, 2890, 4672, 501, 14756, 4698, 273, 365, 18, 31731, 18, 4285, 4742, 14659, 1435, 365, 6315, 4148, 1343, 12, 892, 14756, 4698, 16, 353, 54, 8638, 33, 8381, 13, 309, 501, 14756, 4698, 18, 86, 15460, 422, 10696, 67, 1090, 60, 52, 30, 327, 365, 6315, 6406, 1076, 12, 2890, 6315, 2670, 4742, 7675, 892, 13, 469, 30, 1002, 11206, 1435, 2, 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, 389, 2670, 12, 2890, 4672, 501, 14756, 4698, 273, 365, 18, 31731, 18, 4285, 4742, 14659, 1435, 365, 6315, 4148, 1343, 12, 892, 14756, 4698, 16, 353, 54, 8638, 33, 8381, 13, 309, 501, 14756, 4698, 18, 86, 15460, 422, 10696, 67, 1090, 60, 52, 30, 327, 365, 6315, 6406, 1076, 12, 2890, 6315, 2670, 4742, 7675, 892, 13, 469, 30, 1002, 11206, 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 ]
if instance_class: params['DBInstanceClass'] = instance_class
if dbinstance_class: params['DBInstanceClass'] = dbinstance_class
def restore_dbinstance_from_point_in_time(self, source_instance_id, target_instance_id, use_latest=False, restore_time=None, dbinstance_class=None, port=None, availability_zone=None): """ Create a new DBInstance from a point in time. :type source_instance_id: string :param source_instance_id: The identifier for the source DBInstance. :type target_instance_id: string :param target_instance_id: The identifier of the new DBInstance.
2a904608f3c2030ab6df8aae3faab9a94c7e62b1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/2a904608f3c2030ab6df8aae3faab9a94c7e62b1/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 1966, 1336, 67, 2080, 67, 1153, 67, 267, 67, 957, 12, 2890, 16, 1084, 67, 1336, 67, 350, 16, 1018, 67, 1336, 67, 350, 16, 999, 67, 13550, 33, 8381, 16, 5217, 67, 957, 33, 7036, 16, 1319, 1336, 67, 1106, 33, 7036, 16, 1756, 33, 7036, 16, 13395, 67, 3486, 33, 7036, 4672, 225, 3536, 1788, 279, 394, 28153, 628, 279, 1634, 316, 813, 18, 225, 294, 723, 1084, 67, 1336, 67, 350, 30, 533, 294, 891, 1084, 67, 1336, 67, 350, 30, 1021, 2756, 364, 326, 1084, 28153, 18, 225, 294, 723, 1018, 67, 1336, 67, 350, 30, 533, 294, 891, 1018, 67, 1336, 67, 350, 30, 1021, 2756, 434, 326, 394, 28153, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 5217, 67, 1966, 1336, 67, 2080, 67, 1153, 67, 267, 67, 957, 12, 2890, 16, 1084, 67, 1336, 67, 350, 16, 1018, 67, 1336, 67, 350, 16, 999, 67, 13550, 33, 8381, 16, 5217, 67, 957, 33, 7036, 16, 1319, 1336, 67, 1106, 33, 7036, 16, 1756, 33, 7036, 16, 13395, 67, 3486, 33, 7036, 4672, 225, 3536, 1788, 279, 394, 28153, 628, 279, 1634, 316, 813, 18, 225, 294, 723, 1084, 67, 1336, 67, 350, 30, 533, 294, 891, 1084, 67, 1336, 67, 350, 30, 1021, 2756, 364, 326, 1084, 28153, 18, 225, 294, 723, 1018, 67, 1336, 67, 350, 30, 533, 294, 891, 1018, 67, 1336, 67, 350, 30, 1021, 2756, 434, 326, 394, 28153, 18, 2 ]
description = """Itools is a Python package that encapsulates several Python tools developed by the Itaapy company and other developers. The provided tools are:
description = """itools is a Python library, it groups a number of packages into a single meta-package for easier development and deployment. The packages included are:
def finalize_options (self): self.set_undefined_options('install', ('install_purelib', 'install_dir'), ('root', 'root'), ('force', 'force'), )
5a6ec107366afa260d2d078099d28e46810baf2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/5a6ec107366afa260d2d078099d28e46810baf2d/setup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 67, 2116, 261, 2890, 4672, 365, 18, 542, 67, 5978, 67, 2116, 2668, 5425, 2187, 7707, 5425, 67, 84, 594, 2941, 2187, 296, 5425, 67, 1214, 19899, 7707, 3085, 2187, 296, 3085, 19899, 7707, 5734, 2187, 296, 5734, 19899, 262, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12409, 67, 2116, 261, 2890, 4672, 365, 18, 542, 67, 5978, 67, 2116, 2668, 5425, 2187, 7707, 5425, 67, 84, 594, 2941, 2187, 296, 5425, 67, 1214, 19899, 7707, 3085, 2187, 296, 3085, 19899, 7707, 5734, 2187, 296, 5734, 19899, 262, 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 ]
if __version__ < '0.3.3':
if StrictVersion(__version__) < StrictVersion('0.3.3'):
def render(self, req, mimetype, content, filename=None, rev=None): try: from docutils import nodes from docutils.core import publish_string from docutils.parsers import rst from docutils.__init__ import __version__ except ImportError: raise TrarError, 'Docutils >= %s not found' % docutils_required if __version__ < '0.3.3': raise TracError, 'Docutils version >= %s required, %s found' \ % ('0.3.3', __version__)
e65aa6e81830def4622a4704c97cfcf427ca2a54 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/e65aa6e81830def4622a4704c97cfcf427ca2a54/rst.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1743, 12, 2890, 16, 1111, 16, 12595, 16, 913, 16, 1544, 33, 7036, 16, 5588, 33, 7036, 4672, 775, 30, 628, 997, 5471, 1930, 2199, 628, 997, 5471, 18, 3644, 1930, 3808, 67, 1080, 628, 997, 5471, 18, 11104, 1930, 13978, 628, 997, 5471, 16186, 2738, 972, 1930, 1001, 1589, 972, 1335, 11308, 30, 1002, 840, 297, 668, 16, 296, 1759, 5471, 1545, 738, 87, 486, 1392, 11, 738, 997, 5471, 67, 4718, 309, 22307, 1444, 12, 972, 1589, 972, 13, 411, 22307, 1444, 2668, 20, 18, 23, 18, 23, 11, 4672, 1002, 2197, 71, 668, 16, 296, 1759, 5471, 1177, 1545, 738, 87, 1931, 16, 738, 87, 1392, 11, 521, 738, 7707, 20, 18, 23, 18, 23, 2187, 1001, 1589, 972, 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,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890, 16, 1111, 16, 12595, 16, 913, 16, 1544, 33, 7036, 16, 5588, 33, 7036, 4672, 775, 30, 628, 997, 5471, 1930, 2199, 628, 997, 5471, 18, 3644, 1930, 3808, 67, 1080, 628, 997, 5471, 18, 11104, 1930, 13978, 628, 997, 5471, 16186, 2738, 972, 1930, 1001, 1589, 972, 1335, 11308, 30, 1002, 840, 297, 668, 16, 296, 1759, 5471, 1545, 738, 87, 486, 1392, 11, 738, 997, 5471, 67, 4718, 309, 22307, 1444, 12, 972, 1589, 972, 13, 411, 22307, 1444, 2668, 20, 18, 23, 18, 23, 11, 4672, 1002, 2197, 71, 668, 16, 296, 1759, 5471, 1177, 1545, 738, 87, 1931, 16, 738, 87, 1392, 11, 521, 738, 7707, 20, 18, 23, 18, 23, 2 ]
result.addError(self, self.__exc_info())
result.addError(self, self._exc_info())
def run(self, result=None): if result is None: result = self.defaultTestResult() result.startTest(self) testMethod = getattr(self, self.__testMethodName) try: try: self.setUp() except KeyboardInterrupt: raise except: result.addError(self, self.__exc_info()) return
dcb7d97fc6f9b6b40c3037899d0a94b46e4e2b77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/dcb7d97fc6f9b6b40c3037899d0a94b46e4e2b77/unittest.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 563, 33, 7036, 4672, 309, 563, 353, 599, 30, 563, 273, 365, 18, 1886, 4709, 1253, 1435, 563, 18, 1937, 4709, 12, 2890, 13, 1842, 1305, 273, 3869, 12, 2890, 16, 365, 16186, 3813, 11666, 13, 775, 30, 775, 30, 365, 18, 542, 1211, 1435, 1335, 19424, 30, 1002, 1335, 30, 563, 18, 1289, 668, 12, 2890, 16, 365, 6315, 10075, 67, 1376, 10756, 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,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 2890, 16, 563, 33, 7036, 4672, 309, 563, 353, 599, 30, 563, 273, 365, 18, 1886, 4709, 1253, 1435, 563, 18, 1937, 4709, 12, 2890, 13, 1842, 1305, 273, 3869, 12, 2890, 16, 365, 16186, 3813, 11666, 13, 775, 30, 775, 30, 365, 18, 542, 1211, 1435, 1335, 19424, 30, 1002, 1335, 30, 563, 18, 1289, 668, 12, 2890, 16, 365, 6315, 10075, 67, 1376, 10756, 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 ]
@type portType: type which implements C{IListeningPort}
@type portType: type which implements L{IListeningPort}
def listenWith(self, portType, *args, **kw): """Start an instance of the given C{portType} listening.
2049631dd0aa73ddfc33a2c3c8f41078e4f4fcf8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/2049631dd0aa73ddfc33a2c3c8f41078e4f4fcf8/interfaces.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6514, 1190, 12, 2890, 16, 1756, 559, 16, 380, 1968, 16, 2826, 9987, 4672, 3536, 1685, 392, 791, 434, 326, 864, 385, 95, 655, 559, 97, 13895, 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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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 6514, 1190, 12, 2890, 16, 1756, 559, 16, 380, 1968, 16, 2826, 9987, 4672, 3536, 1685, 392, 791, 434, 326, 864, 385, 95, 655, 559, 97, 13895, 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 ]
Receive requests for data matching given key via lineReceived, asks it's factory for the data with dictionary-style access, and returns the data to the requester.
chat = [ ]
def unquote(s): return urllib.unquote(s)
4c012f7357c0ef904a6dac6411f062bedd7a6228 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/4c012f7357c0ef904a6dac6411f062bedd7a6228/test_postfix.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25611, 12, 87, 4672, 327, 11527, 18, 318, 6889, 12, 87, 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,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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 25611, 12, 87, 4672, 327, 11527, 18, 318, 6889, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ki[x,y]=1.0 kernel=customKernel(ki,(n,n)) mi=convolveImage(transformImage(grad, '\l x: sqrt(sq(x[0])+sq(x[1]))'),kernel) gi=convolveImage(grad,kernel) gad=GrayImage(grad.size())
ki[x,y] = 1.0 kernel = customKernel(ki,(n,n)) mi = convolveImage(transformImage(grad, '\l x: sqrt(sq(x[0])+sq(x[1]))'),kernel) gi = convolveImage(grad,kernel) gad = GrayImage(grad.size())
def calcGradAngDisp(grad,n): ki=GrayImage(2*n+1,2*n+1) for x in range(0,ki.width()): for y in range(0,ki.height()): ki[x,y]=1.0 kernel=customKernel(ki,(n,n)) mi=convolveImage(transformImage(grad, '\l x: sqrt(sq(x[0])+sq(x[1]))'),kernel) gi=convolveImage(grad,kernel) gad=GrayImage(grad.size()) for x in range(0,gad.width()): for y in range(0,gad.height()): if (mi[x,y]>0): gad[x,y]=math.hypot(gi[x,y][0],gi[x,y][1])/mi[x,y] return gad
8925518c2ae9f74de3b734317beccbc4670dbd43 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10394/8925518c2ae9f74de3b734317beccbc4670dbd43/statistics.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 7029, 30420, 22757, 1669, 84, 12, 9974, 16, 82, 4672, 29027, 33, 23521, 2040, 12, 22, 14, 82, 15, 21, 16, 22, 14, 82, 15, 21, 13, 364, 619, 316, 1048, 12, 20, 16, 15299, 18, 2819, 1435, 4672, 364, 677, 316, 1048, 12, 20, 16, 15299, 18, 4210, 1435, 4672, 29027, 63, 92, 16, 93, 65, 273, 404, 18, 20, 5536, 273, 1679, 11286, 12, 15299, 16, 12, 82, 16, 82, 3719, 12837, 273, 6292, 5390, 2040, 12, 6547, 2040, 12, 9974, 16, 2337, 80, 619, 30, 5700, 12, 11410, 12, 92, 63, 20, 5717, 15, 11410, 12, 92, 63, 21, 5717, 2506, 3631, 8111, 13, 16221, 273, 6292, 5390, 2040, 12, 9974, 16, 8111, 13, 314, 361, 273, 12435, 2040, 12, 9974, 18, 1467, 10756, 364, 619, 316, 1048, 12, 20, 16, 75, 361, 18, 2819, 1435, 4672, 364, 677, 316, 1048, 12, 20, 16, 75, 361, 18, 4210, 1435, 4672, 309, 261, 9197, 63, 92, 16, 93, 65, 34, 20, 4672, 314, 361, 63, 92, 16, 93, 65, 33, 15949, 18, 76, 879, 352, 12, 10052, 63, 92, 16, 93, 6362, 20, 6487, 10052, 63, 92, 16, 93, 6362, 21, 5717, 19, 9197, 63, 92, 16, 93, 65, 225, 327, 314, 361, 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364, 619, 316, 1048, 12, 20, 16, 15299, 18, 2819, 1435, 4672, 364, 677, 316, 1048, 12, 20, 16, 15299, 18, 4210, 1435, 4672, 29027, 63, 92, 16, 93, 65, 273, 404, 18, 20, 5536, 273, 1679, 11286, 12, 15299, 16, 12, 82, 16, 82, 3719, 12837, 273, 6292, 5390, 2040, 12, 6547, 2040, 12, 9974, 16, 2337, 80, 619, 30, 5700, 12, 11410, 12, 92, 63, 20, 5717, 15, 11410, 12, 92, 63, 21, 5717, 2506, 3631, 8111, 13, 16221, 273, 6292, 5390, 2040, 12, 9974, 16, 8111, 13, 314, 2 ]
with open(file) as line:
for line in self.file_filter(file):
def set_config(self): """ Get config data from config files """
935626521615ded00a3448f9d631da6b7d652500 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11428/935626521615ded00a3448f9d631da6b7d652500/shr_backup.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 444, 67, 1425, 12, 2890, 4672, 3536, 968, 642, 501, 628, 642, 1390, 3536, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 4672, 3536, 968, 642, 501, 628, 642, 1390, 3536, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
fetch1 = start1 = pieces[0][0] if (self.seq1_strand == "-"): start1 = self.seq1_file.length - (start1+len(text1)) a.add_component(Component(self.seq1_src,fetch1,len(text1),self.seq1_strand,text=text1)) fetch2 = start2 = pieces[0][1] if (self.seq2_strand == "-"): start2 = self.seq2_file.length - (start2+len(text2)) a.add_component(Component(self.seq2_src,fetch2,len(text2),self.seq2_strand,text=text2))
a.add_component(Component(self.seq1_src,start1,size1,self.seq1_strand,text=text1)) a.add_component(Component(self.seq2_src,start2,size2,self.seq2_strand,text=text2))
def build_alignment(self,score,pieces): """converts a score and pieces to an alignment""" # build text self.open_seqs() text1 = text2 = "" end1 = end2 = None for (start1,start2,length,pctId) in pieces: if (end1 != None): if (start1 == end1): # insertion in sequence 2 text1 += self.seq1_gap * (start2-end2) text2 += self.seq2_file.get(end2,start2-end2) else: # insertion in sequence 1 text1 += self.seq1_file.get(end1,start1-end1) text2 += self.seq2_gap * (start1-end1)
b6156e7a74efb127970249c0d1159ffca2ec5cab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2104/b6156e7a74efb127970249c0d1159ffca2ec5cab/lav.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 14409, 12, 2890, 16, 6355, 16, 31016, 4672, 3536, 6283, 87, 279, 4462, 471, 10167, 358, 392, 8710, 8395, 468, 1361, 977, 365, 18, 3190, 67, 22437, 1435, 977, 21, 273, 977, 22, 273, 1408, 679, 21, 225, 273, 679, 22, 225, 273, 599, 364, 261, 1937, 21, 16, 1937, 22, 16, 2469, 16, 23989, 548, 13, 316, 10167, 30, 309, 261, 409, 21, 480, 599, 4672, 309, 261, 1937, 21, 422, 679, 21, 4672, 468, 12626, 316, 3102, 576, 977, 21, 1011, 365, 18, 5436, 21, 67, 14048, 380, 261, 1937, 22, 17, 409, 22, 13, 977, 22, 1011, 365, 18, 5436, 22, 67, 768, 18, 588, 12, 409, 22, 16, 1937, 22, 17, 409, 22, 13, 469, 30, 468, 12626, 316, 3102, 404, 977, 21, 1011, 365, 18, 5436, 21, 67, 768, 18, 588, 12, 409, 21, 16, 1937, 21, 17, 409, 21, 13, 977, 22, 1011, 365, 18, 5436, 22, 67, 14048, 380, 261, 1937, 21, 17, 409, 21, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1361, 67, 14409, 12, 2890, 16, 6355, 16, 31016, 4672, 3536, 6283, 87, 279, 4462, 471, 10167, 358, 392, 8710, 8395, 468, 1361, 977, 365, 18, 3190, 67, 22437, 1435, 977, 21, 273, 977, 22, 273, 1408, 679, 21, 225, 273, 679, 22, 225, 273, 599, 364, 261, 1937, 21, 16, 1937, 22, 16, 2469, 16, 23989, 548, 13, 316, 10167, 30, 309, 261, 409, 21, 480, 599, 4672, 309, 261, 1937, 21, 422, 679, 21, 4672, 468, 12626, 316, 3102, 576, 977, 21, 1011, 365, 18, 5436, 21, 67, 14048, 380, 261, 1937, 22, 17, 409, 22, 13, 977, 22, 1011, 365, 18, 5436, 22, 67, 768, 18, 588, 12, 409, 22, 16, 1937, 22, 17, 409, 2 ]
refs = []
refs = cellset()
def bodyprereferences(self): offsets = 0 refs = [] for child in self: refs.extend(_setmovepointer(child.prereferences(), offsets)) ioffsets = child.offsets() if ioffsets is None: refs.append(None) break offsets += ioffsets return set(refs)
71e0598bb7dc6d9b90f66161eeb283e8ddccc073 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2040/71e0598bb7dc6d9b90f66161eeb283e8ddccc073/esotope-bfc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1417, 683, 822, 2980, 12, 2890, 4672, 8738, 273, 374, 9047, 273, 2484, 542, 1435, 364, 1151, 316, 365, 30, 9047, 18, 14313, 24899, 542, 8501, 10437, 12, 3624, 18, 683, 822, 2980, 9334, 8738, 3719, 277, 16542, 273, 1151, 18, 16542, 1435, 309, 277, 16542, 353, 599, 30, 9047, 18, 6923, 12, 7036, 13, 898, 8738, 1011, 277, 16542, 327, 444, 12, 9316, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1417, 683, 822, 2980, 12, 2890, 4672, 8738, 273, 374, 9047, 273, 2484, 542, 1435, 364, 1151, 316, 365, 30, 9047, 18, 14313, 24899, 542, 8501, 10437, 12, 3624, 18, 683, 822, 2980, 9334, 8738, 3719, 277, 16542, 273, 1151, 18, 16542, 1435, 309, 277, 16542, 353, 599, 30, 9047, 18, 6923, 12, 7036, 13, 898, 8738, 1011, 277, 16542, 327, 444, 12, 9316, 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 ]
if doc.canonical_name[0].startswith('script-'): return ['Script %s' % str(doc.canonical_name)[7:]] elif doc.canonical_name is UNKNOWN:
if doc.canonical_name is UNKNOWN:
def breadcrumbs(self, doc): crumbs = [self._crumb(doc)]
97b116664d741f73a71e763cb163ea0cee2d5080 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/97b116664d741f73a71e763cb163ea0cee2d5080/html.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18414, 12, 2890, 16, 997, 4672, 4422, 10099, 273, 306, 2890, 6315, 3353, 3592, 12, 2434, 25887, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 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, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 18414, 12, 2890, 16, 997, 4672, 4422, 10099, 273, 306, 2890, 6315, 3353, 3592, 12, 2434, 25887, 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 ]
[1, 2, 3, 0, 5, 4]
[1, 2, 0, 4, 3]
def __call__(self, i): """ Returns the image of the integer i under this permutation. Alternately, if i is a list, tuple or string, returns the result of self acting on i.
6a7098ccb2401245a8a6f84f18602cde2d40ff44 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/6a7098ccb2401245a8a6f84f18602cde2d40ff44/permgroup_element.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1001, 1991, 972, 12, 2890, 16, 277, 4672, 3536, 2860, 326, 1316, 434, 326, 3571, 277, 3613, 333, 17440, 18, 21498, 5173, 16, 309, 277, 353, 279, 666, 16, 3193, 578, 533, 16, 1135, 326, 563, 434, 365, 1328, 310, 603, 277, 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, 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16, 3193, 578, 533, 16, 1135, 326, 563, 434, 365, 1328, 310, 603, 277, 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 ]
fixed_font = pygame.font.SysFont("Fixed", size=self.font_size)
fixed_font = pygame.font.SysFont("Fixed, Monospace, Courier", size=self.font_size)
def paint_notes(self): screen_size = self.screen.get_size() margin_x = self.screen.get_size()[0]/50 margin_y = self.screen.get_size()[1]/50 if not self.notes_surface: if self.font_size == None: self.font_size = self.screen.get_size()[1] / 12 font = pygame.font.SysFont("Helvetica, Sans, Arial", size=self.font_size) fixed_font = pygame.font.SysFont("Fixed", size=self.font_size)
296bd71dea92a4e3d38aa7085c4cb4b53e96aed5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3598/296bd71dea92a4e3d38aa7085c4cb4b53e96aed5/xpressent-remote.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12574, 67, 12903, 12, 2890, 4672, 5518, 67, 1467, 273, 365, 18, 9252, 18, 588, 67, 1467, 1435, 7333, 67, 92, 273, 365, 18, 9252, 18, 588, 67, 1467, 1435, 63, 20, 18537, 3361, 7333, 67, 93, 273, 365, 18, 9252, 18, 588, 67, 1467, 1435, 63, 21, 18537, 3361, 309, 486, 365, 18, 12903, 67, 18266, 30, 309, 365, 18, 5776, 67, 1467, 422, 599, 30, 365, 18, 5776, 67, 1467, 273, 365, 18, 9252, 18, 588, 67, 1467, 1435, 63, 21, 65, 342, 2593, 225, 3512, 273, 2395, 13957, 18, 5776, 18, 12712, 5711, 2932, 44, 292, 90, 7943, 69, 16, 348, 634, 16, 432, 566, 287, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 12574, 67, 12903, 12, 2890, 4672, 5518, 67, 1467, 273, 365, 18, 9252, 18, 588, 67, 1467, 1435, 7333, 67, 92, 273, 365, 18, 9252, 18, 588, 67, 1467, 1435, 63, 20, 18537, 3361, 7333, 67, 93, 273, 365, 18, 9252, 18, 588, 67, 1467, 1435, 63, 21, 18537, 3361, 309, 486, 365, 18, 12903, 67, 18266, 30, 309, 365, 18, 5776, 67, 1467, 422, 599, 30, 365, 18, 5776, 67, 1467, 273, 365, 18, 9252, 18, 588, 67, 1467, 1435, 63, 21, 65, 342, 2593, 225, 3512, 273, 2395, 13957, 18, 5776, 18, 12712, 5711, 2932, 44, 292, 90, 7943, 69, 16, 348, 634, 16, 432, 566, 287, 3113, 963, 33, 2890, 18, 5776, 67, 1467, 13, 2 ]
stdout, stderr = proc.communicate(stdin)
stdout, stderr = proc.communicate()
def run(editor, tool): import os.path from subprocess import Popen, PIPE import tempfile editor.message('Running ' + tool.title) fd, filename = tempfile.mkstemp() os.write(fd, tool.script) os.close(fd) stdin = get_stdin(editor, tool.input) command_to_run = ['/usr/bin/env', 'sh', filename] env = {} env.update(os.environ) env['FILENAME'] = editor.uri env['OFFSET'] = str(editor.cursor.get_offset()) proc = Popen(command_to_run, stdout=PIPE, stderr=PIPE, bufsize=1, stdin=PIPE if stdin else None, cwd=editor.project_root, env=env) on_finish = lambda: os.remove(filename) if tool.output == 'to-console': from snaked.core.console import consume_output consume_output(editor, proc, on_finish) else: stdout, stderr = proc.communicate(stdin) on_finish() process_stdout(editor, stdout, stderr, tool.output)
854896ef0d7e188eb92eda3c90b46755c6435032 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14800/854896ef0d7e188eb92eda3c90b46755c6435032/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1086, 12, 9177, 16, 5226, 4672, 1930, 1140, 18, 803, 628, 6652, 1930, 14339, 16, 11716, 1930, 13275, 225, 4858, 18, 2150, 2668, 7051, 296, 397, 5226, 18, 2649, 13, 225, 5194, 16, 1544, 273, 13275, 18, 24816, 19781, 84, 1435, 1140, 18, 2626, 12, 8313, 16, 5226, 18, 4263, 13, 1140, 18, 4412, 12, 8313, 13, 225, 8801, 273, 336, 67, 21772, 12, 9177, 16, 5226, 18, 2630, 13, 225, 1296, 67, 869, 67, 2681, 273, 10228, 19, 13640, 19, 4757, 19, 3074, 2187, 296, 674, 2187, 1544, 65, 225, 1550, 273, 2618, 1550, 18, 2725, 12, 538, 18, 28684, 13, 1550, 3292, 16080, 3546, 273, 4858, 18, 1650, 1550, 3292, 11271, 3546, 273, 609, 12, 9177, 18, 9216, 18, 588, 67, 3348, 10756, 225, 5418, 273, 14339, 12, 3076, 67, 869, 67, 2681, 16, 3909, 33, 27602, 16, 4514, 33, 27602, 16, 1681, 1467, 33, 21, 16, 8801, 33, 27602, 309, 8801, 469, 599, 16, 7239, 33, 9177, 18, 4406, 67, 3085, 16, 1550, 33, 3074, 13, 225, 603, 67, 13749, 273, 3195, 30, 1140, 18, 4479, 12, 3459, 13, 225, 309, 5226, 18, 2844, 422, 296, 869, 17, 8698, 4278, 628, 4556, 9477, 18, 3644, 18, 8698, 1930, 7865, 67, 2844, 7865, 67, 2844, 12, 9177, 16, 5418, 16, 603, 67, 13749, 13, 469, 30, 3909, 16, 4514, 273, 5418, 18, 5702, 318, 2659, 1435, 603, 67, 13749, 1435, 1207, 67, 10283, 12, 9177, 16, 3909, 16, 4514, 16, 5226, 18, 2844, 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, 1086, 12, 9177, 16, 5226, 4672, 1930, 1140, 18, 803, 628, 6652, 1930, 14339, 16, 11716, 1930, 13275, 225, 4858, 18, 2150, 2668, 7051, 296, 397, 5226, 18, 2649, 13, 225, 5194, 16, 1544, 273, 13275, 18, 24816, 19781, 84, 1435, 1140, 18, 2626, 12, 8313, 16, 5226, 18, 4263, 13, 1140, 18, 4412, 12, 8313, 13, 225, 8801, 273, 336, 67, 21772, 12, 9177, 16, 5226, 18, 2630, 13, 225, 1296, 67, 869, 67, 2681, 273, 10228, 19, 13640, 19, 4757, 19, 3074, 2187, 296, 674, 2187, 1544, 65, 225, 1550, 273, 2618, 1550, 18, 2725, 12, 538, 18, 28684, 13, 1550, 3292, 16080, 3546, 273, 4858, 18, 1650, 1550, 3292, 11271, 3546, 273, 609, 12, 9177, 2 ]
return
return 0
def _init_builtin_signature(self, func): """ Construct the signature for a builtin function or method from its docstring. If the docstring uses the standard convention of including a signature in the first line of the docstring (and formats that signature according to standard conventions), then it will be used to extract a signature. Otherwise, the signature will be set to a single varargs variable named C{"..."}.
7140f1248773f589eaa5826bd2b3d64a09ab01f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7140f1248773f589eaa5826bd2b3d64a09ab01f2/objdoc.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 2738, 67, 24553, 67, 8195, 12, 2890, 16, 1326, 4672, 3536, 14291, 326, 3372, 364, 279, 15273, 445, 578, 707, 628, 2097, 14525, 18, 225, 971, 326, 14525, 4692, 326, 4529, 15797, 434, 6508, 279, 3372, 316, 326, 1122, 980, 434, 326, 14525, 261, 464, 6449, 716, 3372, 4888, 358, 4529, 356, 24862, 3631, 1508, 518, 903, 506, 1399, 358, 2608, 279, 3372, 18, 5272, 16, 326, 3372, 903, 506, 444, 358, 279, 2202, 19732, 2190, 4141, 385, 16711, 7070, 5496, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 364, 279, 15273, 445, 578, 707, 628, 2097, 14525, 18, 225, 971, 326, 14525, 4692, 326, 4529, 15797, 434, 6508, 279, 3372, 316, 326, 1122, 980, 434, 326, 14525, 261, 464, 6449, 716, 3372, 4888, 358, 4529, 356, 24862, 3631, 1508, 518, 903, 506, 1399, 358, 2608, 279, 3372, 18, 5272, 16, 326, 3372, 903, 506, 444, 358, 279, 2202, 19732, 2190, 4141, 385, 16711, 7070, 5496, 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 ]
def show_changes_over_revisions(self, widget, data=None): rev_first = self.revisions[0]["revision"].value - 1 rev_last = self.revisions[-1]["revision"].value path_item = self.paths[0] url = self.caller.root_url + path_item from rabbitvcs.ui.changes import Changes Changes( url, rev_first, url, rev_last )
def view_diff_over_revisions(self, widget, data=None): rev_first = self.revisions[0]["revision"].value - 1 rev_last = self.revisions[-1]["revision"].value path_item = self.paths[0] url = self.caller.root_url + path_item self.caller.view_diff_for_path(url, latest_revision_number=rev_last, earliest_revision_number=rev_first)
14fca6f349c8c10fe6350a3532e07c51bbc19369 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/14fca6f349c8c10fe6350a3532e07c51bbc19369/log.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 67, 5413, 67, 1643, 67, 29892, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 5588, 67, 3645, 273, 365, 18, 29892, 63, 20, 6362, 6, 13057, 6, 8009, 1132, 300, 404, 5588, 67, 2722, 273, 365, 18, 29892, 18919, 21, 6362, 6, 13057, 6, 8009, 1132, 589, 67, 1726, 273, 365, 18, 4481, 63, 20, 65, 880, 273, 365, 18, 16140, 18, 3085, 67, 718, 397, 589, 67, 1726, 365, 18, 16140, 18, 1945, 67, 5413, 67, 1884, 67, 803, 12, 718, 16, 4891, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1476, 67, 5413, 67, 1643, 67, 29892, 12, 2890, 16, 3604, 16, 501, 33, 7036, 4672, 5588, 67, 3645, 273, 365, 18, 29892, 63, 20, 6362, 6, 13057, 6, 8009, 1132, 300, 404, 5588, 67, 2722, 273, 365, 18, 29892, 18919, 21, 6362, 6, 13057, 6, 8009, 1132, 589, 67, 1726, 273, 365, 18, 4481, 63, 20, 65, 880, 273, 365, 18, 16140, 18, 3085, 67, 718, 397, 589, 67, 1726, 365, 18, 16140, 18, 1945, 67, 5413, 67, 1884, 67, 803, 12, 718, 16, 4891, 67, 13057, 67, 2696, 33, 9083, 67, 2722, 16, 20674, 67, 13057, 67, 2696, 33, 9083, 67, 3645, 13, 225, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return "-0x%x" % abs(self._value) elif self._type == OPERAND_REGISTER:
return "-0x%x" % abs(self.value) elif self.type == OPERAND_REGISTER:
def _toText(self): if self._type == OPERAND_IMMEDIATE: if self._value >= 0: return "0x%x" % self._value else: return "-0x%x" % abs(self._value) elif self._type == OPERAND_REGISTER: return self.GetName() elif self._type == OPERAND_ABSOLUTE_ADDRESS: return '[0x%x]' % self._disp elif self._type == OPERAND_FAR_MEMORY: return '%s:%s' % (hex(self._seg), hex(self._off)) elif (self._type == OPERAND_MEMORY): result = "[" if self._base != None: result += Registers[self._base] + "+" if self._index != None: result += Registers[self._index] if self._scale > 1: result += "*%d" % self._scale if self._disp >= 0: result += "+0x%x" % self._disp else: result += "-0x%x" % abs(self._disp) return result + "]"
b8902f36bad23fcde94df6909e52326a5452b7ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4918/b8902f36bad23fcde94df6909e52326a5452b7ff/__init__.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 1528, 12, 2890, 4672, 309, 365, 6315, 723, 422, 17205, 4307, 67, 3445, 15971, 1777, 30, 309, 365, 6315, 1132, 1545, 374, 30, 327, 315, 20, 92, 9, 92, 6, 738, 365, 6315, 1132, 469, 30, 327, 3701, 20, 92, 9, 92, 6, 738, 2417, 12, 2890, 18, 1132, 13, 1327, 365, 18, 723, 422, 17205, 4307, 67, 27511, 30, 327, 365, 18, 967, 461, 1435, 1327, 365, 6315, 723, 422, 17205, 4307, 67, 2090, 26786, 67, 15140, 30, 327, 5271, 20, 92, 9, 92, 3864, 738, 365, 6315, 25453, 1327, 365, 6315, 723, 422, 17205, 4307, 67, 42, 985, 67, 24329, 30, 327, 1995, 87, 5319, 87, 11, 738, 261, 7118, 12, 2890, 6315, 5680, 3631, 3827, 12, 2890, 6315, 3674, 3719, 1327, 261, 2890, 6315, 723, 422, 17205, 4307, 67, 24329, 4672, 563, 273, 13626, 309, 365, 6315, 1969, 480, 599, 30, 563, 1011, 2526, 6045, 63, 2890, 6315, 1969, 65, 397, 17487, 309, 365, 6315, 1615, 480, 599, 30, 563, 1011, 2526, 6045, 63, 2890, 6315, 1615, 65, 309, 365, 6315, 5864, 405, 404, 30, 563, 1011, 15902, 9, 72, 6, 738, 365, 6315, 5864, 309, 365, 6315, 25453, 1545, 374, 30, 563, 1011, 13773, 20, 92, 9, 92, 6, 738, 365, 6315, 25453, 469, 30, 563, 1011, 3701, 20, 92, 9, 92, 6, 738, 2417, 12, 2890, 6315, 25453, 13, 327, 563, 397, 9870, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 869, 1528, 12, 2890, 4672, 309, 365, 6315, 723, 422, 17205, 4307, 67, 3445, 15971, 1777, 30, 309, 365, 6315, 1132, 1545, 374, 30, 327, 315, 20, 92, 9, 92, 6, 738, 365, 6315, 1132, 469, 30, 327, 3701, 20, 92, 9, 92, 6, 738, 2417, 12, 2890, 18, 1132, 13, 1327, 365, 18, 723, 422, 17205, 4307, 67, 27511, 30, 327, 365, 18, 967, 461, 1435, 1327, 365, 6315, 723, 422, 17205, 4307, 67, 2090, 26786, 67, 15140, 30, 327, 5271, 20, 92, 9, 92, 3864, 738, 365, 6315, 25453, 1327, 365, 6315, 723, 422, 17205, 4307, 67, 42, 985, 67, 24329, 30, 327, 1995, 87, 5319, 87, 11, 738, 261, 7118, 12, 2890, 6315, 5680, 2 ]
if nb_words_around == 0: break
def matches_any(w1): if compiled_pattern.search(' ' + w1 + ' '): return True else: return False
1233768c20983e54b91fe5f7f61eb55279e8b5b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/1233768c20983e54b91fe5f7f61eb55279e8b5b5/bibformat_utils.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1885, 67, 2273, 12, 91, 21, 4672, 309, 7743, 67, 4951, 18, 3072, 2668, 296, 397, 341, 21, 397, 296, 296, 4672, 327, 1053, 469, 30, 327, 1083, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1885, 67, 2273, 12, 91, 21, 4672, 309, 7743, 67, 4951, 18, 3072, 2668, 296, 397, 341, 21, 397, 296, 296, 4672, 327, 1053, 469, 30, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
del self[int(math.ceil(self.fraction * self.n)) + 1:]
del self[self.max:]
def append(self, value): hi = list.__len__(self) lo = 0 while lo < hi: mid = (lo + hi) // 2 if value > self[mid]: hi = mid else: lo = mid + 1 list.insert(self, lo, value) self.n += 1 del self[int(math.ceil(self.fraction * self.n)) + 1:]
100ea3653688b7e8410f2d89e206c93e259f5bd5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3592/100ea3653688b7e8410f2d89e206c93e259f5bd5/itertools.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 460, 4672, 10118, 273, 666, 16186, 1897, 972, 12, 2890, 13, 437, 273, 374, 1323, 437, 411, 10118, 30, 7501, 273, 261, 383, 397, 10118, 13, 368, 576, 309, 460, 405, 365, 63, 13138, 14542, 10118, 273, 7501, 469, 30, 437, 273, 7501, 397, 404, 666, 18, 6387, 12, 2890, 16, 437, 16, 460, 13, 365, 18, 82, 1011, 404, 1464, 365, 63, 474, 12, 15949, 18, 311, 330, 12, 2890, 18, 16744, 380, 365, 18, 82, 3719, 397, 404, 26894, 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,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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 714, 12, 2890, 16, 460, 4672, 10118, 273, 666, 16186, 1897, 972, 12, 2890, 13, 437, 273, 374, 1323, 437, 411, 10118, 30, 7501, 273, 261, 383, 397, 10118, 13, 368, 576, 309, 460, 405, 365, 63, 13138, 14542, 10118, 273, 7501, 469, 30, 437, 273, 7501, 397, 404, 666, 18, 6387, 12, 2890, 16, 437, 16, 460, 13, 365, 18, 82, 1011, 404, 1464, 365, 63, 474, 12, 15949, 18, 311, 330, 12, 2890, 18, 16744, 380, 365, 18, 82, 3719, 397, 404, 26894, 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 ]
class _TemporarilyImmutableSet(object):
class _TemporarilyImmutableSet(BaseSet):
def _as_temporarily_immutable(self): # Return self wrapped in a temporarily immutable set return _TemporarilyImmutableSet(self)
18952fe218a31e2eef50fe38038baad8fa07c355 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/18952fe218a31e2eef50fe38038baad8fa07c355/sets.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 345, 67, 874, 3831, 10243, 67, 381, 5146, 12, 2890, 4672, 468, 2000, 365, 5805, 316, 279, 18917, 11732, 444, 327, 389, 1837, 3831, 10243, 16014, 694, 12, 2890, 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, 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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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 389, 345, 67, 874, 3831, 10243, 67, 381, 5146, 12, 2890, 4672, 468, 2000, 365, 5805, 316, 279, 18917, 11732, 444, 327, 389, 1837, 3831, 10243, 16014, 694, 12, 2890, 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 ]
for cpu in cpu_online_map():
for cpu in autotest_utils.cpu_online_map():
def execute(self): # Check if the kernel supports cpu hotplug if autotest_utils.running_config(): autotest_utils.check_for_kernel_feature('HOTPLUG_CPU') # Check cpu nums, if equals 1, quit. if autotest_utils.count_cpus() == 1: print 'Just only single cpu online, quiting...' sys.exit() # Have a simple and quick check first, FIX me please. utils.system('dmesg -c > /dev/null') for cpu in cpu_online_map(): if os.path.isfile('/sys/devices/system/cpu/cpu%s/online' % cpu): utils.system('echo 0 > /sys/devices/system/cpu/cpu%s/online' % cpu, 1) utils.system('dmesg -c') time.sleep(3) utils.system('echo 1 > /sys/devices/system/cpu/cpu%s/online' % cpu, 1) utils.system('dmesg -c') time.sleep(3) # Begin this cpu hotplug test big guru. os.chdir(self.srcdir) profilers = self.job.profilers if not profilers.only(): utils.system('./runtests.sh')
89bfb7028cd84e27cc06ce68acc6ee65f498ecef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/89bfb7028cd84e27cc06ce68acc6ee65f498ecef/cpu_hotplug.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1836, 12, 2890, 4672, 468, 2073, 309, 326, 5536, 6146, 8326, 12811, 22045, 309, 2059, 352, 395, 67, 5471, 18, 8704, 67, 1425, 13332, 2059, 352, 395, 67, 5471, 18, 1893, 67, 1884, 67, 8111, 67, 7238, 2668, 44, 1974, 18567, 43, 67, 15222, 6134, 225, 468, 2073, 8326, 21060, 16, 309, 1606, 404, 16, 9706, 18, 309, 2059, 352, 395, 67, 5471, 18, 1883, 67, 20696, 1435, 422, 404, 30, 1172, 296, 19642, 1338, 2202, 8326, 12365, 16, 9706, 310, 7821, 2589, 18, 8593, 1435, 225, 468, 21940, 279, 4143, 471, 9549, 866, 1122, 16, 8563, 1791, 9582, 18, 2990, 18, 4299, 2668, 10956, 281, 75, 300, 71, 405, 342, 5206, 19, 2011, 6134, 364, 8326, 316, 2059, 352, 395, 67, 5471, 18, 11447, 67, 21026, 67, 1458, 13332, 309, 1140, 18, 803, 18, 291, 768, 2668, 19, 9499, 19, 12506, 19, 4299, 19, 11447, 19, 11447, 9, 87, 19, 21026, 11, 738, 8326, 4672, 2990, 18, 4299, 2668, 12946, 374, 405, 342, 9499, 19, 12506, 19, 4299, 19, 11447, 19, 11447, 9, 87, 19, 21026, 11, 738, 8326, 16, 404, 13, 2990, 18, 4299, 2668, 10956, 281, 75, 300, 71, 6134, 813, 18, 19607, 12, 23, 13, 2990, 18, 4299, 2668, 12946, 404, 405, 342, 9499, 19, 12506, 19, 4299, 19, 11447, 19, 11447, 9, 87, 19, 21026, 11, 738, 8326, 16, 404, 13, 2990, 18, 4299, 2668, 10956, 281, 75, 300, 71, 6134, 813, 18, 19607, 12, 23, 13, 225, 468, 14323, 333, 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, 1836, 12, 2890, 4672, 468, 2073, 309, 326, 5536, 6146, 8326, 12811, 22045, 309, 2059, 352, 395, 67, 5471, 18, 8704, 67, 1425, 13332, 2059, 352, 395, 67, 5471, 18, 1893, 67, 1884, 67, 8111, 67, 7238, 2668, 44, 1974, 18567, 43, 67, 15222, 6134, 225, 468, 2073, 8326, 21060, 16, 309, 1606, 404, 16, 9706, 18, 309, 2059, 352, 395, 67, 5471, 18, 1883, 67, 20696, 1435, 422, 404, 30, 1172, 296, 19642, 1338, 2202, 8326, 12365, 16, 9706, 310, 7821, 2589, 18, 8593, 1435, 225, 468, 21940, 279, 4143, 471, 9549, 866, 1122, 16, 8563, 1791, 9582, 18, 2990, 18, 4299, 2668, 10956, 281, 75, 300, 71, 405, 342, 5206, 19, 2011, 6134, 364, 8326, 316, 2 ]
'string, got a non-ascii byte: 0xe9$',
'string, got a non-ASCII byte: 0xe9$',
def test_from_format(self): # Ensure that PyUnicode_FromFormat() raises an error for a non-ascii # format string. from _testcapi import format_unicode
daa93cd9da888f62cf38feb688241c8d7e0d38ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/daa93cd9da888f62cf38feb688241c8d7e0d38ce/test_unicode.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 1842, 67, 2080, 67, 2139, 12, 2890, 4672, 468, 7693, 716, 4707, 16532, 67, 1265, 1630, 1435, 14183, 392, 555, 364, 279, 1661, 17, 9184, 468, 740, 533, 18, 628, 389, 3813, 71, 2425, 1930, 740, 67, 9124, 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,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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 ]
resdata = rh.createResourceStruct (filteredResources, formatAsTree=resources_tree, updateOnlyExistingSprites=True)
resdata = rh.createResourceStruct (filteredResources, formatAsTree=resources_tree, updateOnlyExistingSprites=True)
def addResourceInfoToPackages(script): for package in script.packages: package_resources = [] # TODO: the next is a hack, since package.classes are still id's package_classes = [x for x in script.classesObj if x.id in package.classes] for clazz in package_classes: package_resources.extend(clazz.resources) package.data.resources = rh.createResourceStruct(package_resources, formatAsTree=resources_tree, updateOnlyExistingSprites=True) return
db2e6d2276d7101707474e21424fb55f9658ed21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/db2e6d2276d7101707474e21424fb55f9658ed21/CodeGenerator.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23812, 966, 774, 11425, 12, 4263, 4672, 364, 2181, 316, 2728, 18, 10308, 30, 2181, 67, 4683, 273, 5378, 468, 2660, 30, 326, 1024, 353, 279, 11769, 16, 3241, 2181, 18, 4701, 854, 4859, 612, 1807, 2181, 67, 4701, 282, 273, 306, 92, 364, 619, 316, 2728, 18, 4701, 2675, 309, 619, 18, 350, 316, 2181, 18, 4701, 65, 364, 4003, 316, 2181, 67, 4701, 30, 2181, 67, 4683, 18, 14313, 12, 830, 3638, 18, 4683, 13, 2181, 18, 892, 18, 4683, 273, 6259, 18, 2640, 1420, 3823, 12, 5610, 67, 4683, 16, 740, 1463, 2471, 33, 4683, 67, 3413, 16, 1089, 3386, 9895, 3389, 24047, 33, 5510, 13, 327, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 23812, 966, 774, 11425, 12, 4263, 4672, 364, 2181, 316, 2728, 18, 10308, 30, 2181, 67, 4683, 273, 5378, 468, 2660, 30, 326, 1024, 353, 279, 11769, 16, 3241, 2181, 18, 4701, 854, 4859, 612, 1807, 2181, 67, 4701, 282, 273, 306, 92, 364, 619, 316, 2728, 18, 4701, 2675, 309, 619, 18, 350, 316, 2181, 18, 4701, 65, 364, 4003, 316, 2181, 67, 4701, 30, 2181, 67, 4683, 18, 14313, 12, 830, 3638, 18, 4683, 13, 2181, 18, 892, 18, 4683, 273, 6259, 18, 2640, 1420, 3823, 12, 5610, 67, 4683, 16, 740, 1463, 2471, 33, 4683, 67, 3413, 16, 1089, 3386, 9895, 3389, 24047, 33, 5510, 13, 327, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
if query == '' and et == '' and gz and es == '' and sd == '' and ed == '':
if query == '' and et == '' and not gz and es == '' and sd == '' and ed == '':
def getEventsListing(self, query='', languages=[], et='', gz='', es='', skey='', rkey=0, sd='', ed='', p_context=None, ps_start='', **kwargs): """ Returns a list of events """ if gz != '' and not isinstance(gz, list): gz = [gz] try: ps_start = int(ps_start) except: ps_start = 0 if skey not in ('start_date', ): skey = 'start_date' catalog_tool = self.getCatalogTool() search_args = dict( meta_type=[METATYPE_NYSEMEVENT], approved=1, sort_on=skey, sort_order=rkey == '1' and 'descending' or 'ascending' ) if query == '' and et == '' and gz and es == '' and sd == '' and ed == '': #no criteria then returns the 10 more recent brains = catalog_tool(**search_args) else: query = self.utStrEscapeForSearch(query) if languages: langs = languages else: langs = [self.gl_get_selected_language()] #Fulltext query for lang in langs: search_args['objectkeywords_' + lang] = query #Geographical coverage if gz: for lang in langs: for g in gz: lang_name = self.gl_get_language_name(lang) gz_trans = self.getCoverageGlossaryTrans(g, lang_name) search_args['coverage_' + lang] = gz_trans #Type sd = self.utConvertStringToDateTimeObj(sd) ed = self.utConvertStringToDateTimeObj(ed) if sd and ed: search_args['resource_date'] = [sd, ed] search_args['resource_date_range'] = 'minmax' elif sd: search_args['resource_date'] = sd search_args['resource_date_range'] = 'min' elif ed: search_args['resource_date'] = ed search_args['resource_date_range'] = 'max' if et: search_args['resource_type'] = et if es: search_args['resource_status'] = es brains = catalog_tool(**search_args)
dd7f43e0a57720ce394ab48a31b1f2c71e0cf467 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/dd7f43e0a57720ce394ab48a31b1f2c71e0cf467/SEMIDESite.py
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31215, 19081, 12, 2890, 16, 843, 2218, 2187, 8191, 22850, 6487, 3393, 2218, 2187, 14136, 2218, 2187, 5001, 2218, 2187, 272, 856, 2218, 2187, 436, 856, 33, 20, 16, 8349, 2218, 2187, 1675, 2218, 2187, 293, 67, 2472, 33, 7036, 16, 4250, 67, 1937, 2218, 2187, 2826, 4333, 4672, 3536, 2860, 279, 666, 434, 2641, 3536, 309, 14136, 480, 875, 471, 486, 1549, 12, 9764, 16, 666, 4672, 14136, 273, 306, 9764, 65, 775, 30, 565, 4250, 67, 1937, 273, 509, 12, 1121, 67, 1937, 13, 1335, 30, 4250, 67, 1937, 273, 374, 309, 272, 856, 486, 316, 7707, 1937, 67, 712, 2187, 262, 30, 272, 856, 273, 296, 1937, 67, 712, 11, 6222, 67, 6738, 273, 365, 18, 588, 9769, 6364, 1435, 1623, 67, 1968, 273, 2065, 12, 2191, 67, 723, 22850, 18315, 789, 1738, 67, 50, 61, 1090, 958, 6465, 6487, 20412, 33, 21, 16, 1524, 67, 265, 33, 87, 856, 16, 1524, 67, 1019, 33, 86, 856, 422, 296, 21, 11, 471, 296, 5569, 2846, 11, 578, 296, 3691, 2846, 11, 262, 309, 843, 422, 875, 471, 3393, 422, 875, 471, 486, 14136, 471, 5001, 422, 875, 471, 8349, 422, 875, 471, 1675, 422, 875, 30, 468, 2135, 3582, 1508, 1135, 326, 1728, 1898, 8399, 16430, 2679, 273, 6222, 67, 6738, 12, 636, 3072, 67, 1968, 13, 469, 30, 843, 273, 365, 18, 322, 1585, 8448, 1290, 2979, 12, 2271, 13, 309, 8191, 30, 26467, 273, 8191, 469, 30, 26467, 273, 306, 2890, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1652, 31215, 19081, 12, 2890, 16, 843, 2218, 2187, 8191, 22850, 6487, 3393, 2218, 2187, 14136, 2218, 2187, 5001, 2218, 2187, 272, 856, 2218, 2187, 436, 856, 33, 20, 16, 8349, 2218, 2187, 1675, 2218, 2187, 293, 67, 2472, 33, 7036, 16, 4250, 67, 1937, 2218, 2187, 2826, 4333, 4672, 3536, 2860, 279, 666, 434, 2641, 3536, 309, 14136, 480, 875, 471, 486, 1549, 12, 9764, 16, 666, 4672, 14136, 273, 306, 9764, 65, 775, 30, 565, 4250, 67, 1937, 273, 509, 12, 1121, 67, 1937, 13, 1335, 30, 4250, 67, 1937, 273, 374, 309, 272, 856, 486, 316, 7707, 1937, 67, 712, 2187, 262, 30, 272, 856, 273, 296, 1937, 67, 712, 11, 6222, 67, 6738, 273, 365, 2 ]